lorgg-v2-components 0.0.217 → 0.0.218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lorgg-components.cjs.js +11 -11
- package/dist/lorgg-components.css +1 -1
- package/dist/lorgg-components.es.js +121 -120
- package/dist/lorgg-components.umd.js +15 -15
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var v3=Object.defineProperty;var y3=(e,t,n)=>t in e?v3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>(y3(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),ca=require("pinia"),Vr=require("vue-router"),Ap=ca.defineStore("toasts",{state:()=>({toasts:[]}),actions:{addToast(e){this.toasts.push(e),setTimeout(()=>{this.deleteToast(e)},e.time??1e4)},deleteToast(e){const t=this.toasts.indexOf(e);t!==-1&&this.toasts.splice(t,1)}}}),B3=["onClick"],w3={class:"toast-message"},b3={key:0,class:"toast-options"},_3=["href","onClick"],C3=o.defineComponent({__name:"ToastContainer",setup(e){const t=o.ref(null);return o.onMounted(()=>{t.value&&document.body.appendChild(t.value)}),(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:"toast-container",ref_key:"toastContainer",ref:t},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Ap)().toasts,(a,i)=>(o.openBlock(),o.createElementBlock("div",{key:i,class:o.normalizeClass(["toast",a.type]),onClick:s=>o.unref(Ap)().deleteToast(a)},[o.createElementVNode("div",w3,o.toDisplayString(a.message),1),a.options&&a.options.length?(o.openBlock(),o.createElementBlock("div",b3,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.options,(s,A)=>(o.openBlock(),o.createElementBlock("a",{key:A,class:"toast-option",href:s.link,target:"_blank",onClick:l=>s.onClick(a)},o.toDisplayString(s.message),9,_3))),128))])):o.createCommentVNode("",!0)],10,B3))),128))],512))}});const M=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Q2=M(C3,[["__scopeId","data-v-d1c03412"]]);var Jn=(e=>(e.Standard="client_Formats_Standard_name",e.Eternal="client_Formats_Eternal_name",e.CommonsOnly="client_Formats_CommonsOnly_name",e.Singleton="client_Deckbuilder_RulesFilters_Singleton",e.EvenCost="client_Formats_EvenCostCards_name",e))(Jn||{}),L2=(e=>(e.Normal="Normal",e.Ranked="Ranked",e))(L2||{}),ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},O2={},Us={},Wh={};Object.defineProperty(Wh,"__esModule",{value:!0});class Si{constructor(t){this.bytes=new Uint8Array(t)}get length(){return this.bytes.length}PopVarint(){let t=0,n=0,r=0;for(let a=0;a<this.bytes.length;a++){r++;const i=this.bytes[a]&Si.AllButMSB;if(t|=i<<n,(this.bytes[a]&Si.JustMSB)!=Si.JustMSB)return this.bytes=this.bytes.slice(r),t;n+=7}throw"Byte array did not contain valid varints."}sliceAndSet(t,n){this.bytes=this.bytes.slice(t,n)}get(t){return this.bytes[t]}static GetVarint(t){const n=new Uint8Array(10);let r=0;if(t==0)return new Uint8Array([0]);for(;t!==0;){let a=t&this.AllButMSB;t>>=7,t!=0&&(a|=this.JustMSB),n[r++]=a}return n.slice(0,r)}}Wh.default=Si;Si.AllButMSB=127;Si.JustMSB=128;var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.mergeUint8Arrays=Ds.sortDeck=void 0;function k3(e){e.sort((t,n)=>t.cardCode<n.cardCode?-1:1)}Ds.sortDeck=k3;function E3(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}Ds.mergeUint8Arrays=E3;var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.base32Decode=Qs.base32Encode=void 0;const lp="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";function S3(e){const t=e.byteLength,n=new Uint8Array(e);let r=0,a="",i=0;for(let s=0;s<t;s++)for(i=i<<8|n[s],r+=8;r>=5;)a+=lp[i>>>r-5&31],r-=5;for(r>0&&(a+=lp[i<<5-r&31]);a.length%8!==0;)a+="=";return a}Qs.base32Encode=S3;function x3(e){function t(A){const l=lp.indexOf(A);if(l===-1)throw new Error("Invalid character found: "+A);return l}const n=e.toUpperCase().replace(/\=+$/,"");let r=0,a=0,i=0;const s=new Uint8Array(n.length*5/8|0);for(let A=0;A<n.length;A++)i=i<<5|t(n[A]),r+=5,r>=8&&(s[a++]=i>>>r-8&255,r-=8);return s.buffer}Qs.base32Decode=x3;var F3=ys&&ys.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Us,"__esModule",{value:!0});Us.getCodeFromDeck=Us.getDeckFromCode=void 0;const lr=F3(Wh),rn=Ds,D1=Qs;class je{static getMinSupportedLibraryVersion(t){if(!t)return je.INITIAL_VERSION;const n=t.map(r=>r.cardCode.substr(2,2)).map(r=>this.FACTION_CODE_TO_LIBRARY_VERSION[r]||this.INITIAL_VERSION);return Math.max(...n)}static getDeckFromCode(t){const n=[],r=D1.base32Decode(t);if(!r)throw"Invalid deck code";const a=new lr.default(r);a.get(0)>>4;const i=a.get(0)&15;if(a.sliceAndSet(1),i>je.MAX_KNOWN_VERSION)throw"The provided code requires a higher version of this library; please update.";for(let s=3;s>0;s--){const A=a.PopVarint();for(let l=0;l<A;l++){const c=a.PopVarint(),u=a.PopVarint(),d=a.PopVarint();for(let f=0;f<c;f++){const p=a.PopVarint(),h=u.toString().padStart(2,"0"),g=this.INT_TO_FACTION_CODE[d],B=p.toString().padStart(3,"0"),m={cardCode:h+g+B,count:s};n.push(m)}}}for(;a.length>0;){const s=a.PopVarint(),A=a.PopVarint(),l=a.PopVarint(),c=a.PopVarint(),u=A.toString().padStart(2,"0"),d=this.INT_TO_FACTION_CODE[l],f=c.toString().padStart(3,"0"),p={cardCode:u+d+f,count:s};n.push(p)}return n}static getCodeFromDeck(t){const n=this.getDeckCodeBytes(t);return D1.base32Encode(n)}static getDeckCodeBytes(t){if(!je.ValidCardCodesAndCounts(t))throw"The provided deck contains invalid card codes.";const n=this.FORMAT<<this.MAX_KNOWN_VERSION|this.getMinSupportedLibraryVersion(t)&15;let r=new Uint8Array([n]);const a=[],i=[],s=[],A=[];for(const g of t)if(g.count==3)a.push(g);else if(g.count==2)i.push(g);else if(g.count==1)s.push(g);else{if(g.count<1)throw"Invalid count of "+g.count+" for card "+g.cardCode;A.push(g)}let l=je.GetGroupedOfs(a),c=je.GetGroupedOfs(i),u=je.GetGroupedOfs(s);l=je.SortGroupOf(l),c=je.SortGroupOf(c),u=je.SortGroupOf(u),rn.sortDeck(A);const d=je.EncodeGroupOf(l),f=je.EncodeGroupOf(c),p=je.EncodeGroupOf(u),h=je.EncodeNOfs(A);return r=rn.mergeUint8Arrays(r,d),r=rn.mergeUint8Arrays(r,f),r=rn.mergeUint8Arrays(r,p),r=rn.mergeUint8Arrays(r,h),r}static GetGroupedOfs(t){const n=[];for(;t.length>0;){const r=[],a=t[0].cardCode,{set:i,faction:s,number:A}=je.ParseCardCode(a);r.push(t[0]),t.shift();for(let l=t.length-1;l>=0;l--){const c=t[l].cardCode,u=Number(c.substring(0,2)),d=c.substring(2,4);u===i&&d===s&&(r.push(t[l]),t.splice(l,1))}n.push(r)}return n}static EncodeNOfs(t){let n=new Uint8Array;for(const r of t){n=rn.mergeUint8Arrays(n,lr.default.GetVarint(r.count));const{set:a,faction:i,number:s}=je.ParseCardCode(r.cardCode),A=this.FACTION_CODE_TO_INT[i];n=rn.mergeUint8Arrays(n,lr.default.GetVarint(a)),n=rn.mergeUint8Arrays(n,lr.default.GetVarint(A)),n=rn.mergeUint8Arrays(n,lr.default.GetVarint(s))}return n}static SortGroupOf(t){const n=t.sort((r,a)=>r.length<a.length?-1:1);return n.forEach(r=>rn.sortDeck(r)),n}static EncodeGroupOf(t){let n=new Uint8Array([]);n=rn.mergeUint8Arrays(n,lr.default.GetVarint(t.length));for(const r of t){n=rn.mergeUint8Arrays(n,lr.default.GetVarint(r.length));const a=r[0].cardCode,{set:i,faction:s}=je.ParseCardCode(a),A=this.FACTION_CODE_TO_INT[s];n=rn.mergeUint8Arrays(n,lr.default.GetVarint(i)),n=rn.mergeUint8Arrays(n,lr.default.GetVarint(A));for(const l of r){const c=l.cardCode,u=Number(c.substring(4,7));n=rn.mergeUint8Arrays(n,lr.default.GetVarint(u))}}return n}static ParseCardCode(t){return{set:Number(t.substring(0,2)),faction:t.substring(2,4),number:Number(t.substring(4,7))}}static ValidCardCodesAndCounts(t){for(const n of t){if(n.cardCode.length!=je.CARD_CODE_LENGTH||isNaN(Number(n.cardCode.substring(0,2))))return!1;const r=n.cardCode.substring(2,4);if(this.FACTION_CODE_TO_INT[r]===void 0||isNaN(Number(n.cardCode.substring(4,7)))||n.count<1)return!1}return!0}}je.CARD_CODE_LENGTH=7;je.MAX_KNOWN_VERSION=5;je.FORMAT=1;je.INITIAL_VERSION=1;je.FACTION_CODE_TO_INT={DE:0,FR:1,IO:2,NX:3,PZ:4,SI:5,BW:6,SH:7,MT:9,BC:10,RU:12};je.INT_TO_FACTION_CODE={0:"DE",1:"FR",2:"IO",3:"NX",4:"PZ",5:"SI",6:"BW",7:"SH",9:"MT",10:"BC",12:"RU"};je.FACTION_CODE_TO_LIBRARY_VERSION={DE:1,FR:1,IO:1,NX:1,PZ:1,SI:1,BW:2,MT:2,SH:3,BC:4,RU:5};const I3=e=>je.getDeckFromCode(e);Us.getDeckFromCode=I3;const T3=e=>je.getCodeFromDeck(e);Us.getCodeFromDeck=T3;var M2={};Object.defineProperty(M2,"__esModule",{value:!0});(function(e){var t=ys&&ys.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i),Object.defineProperty(r,s,{enumerable:!0,get:function(){return a[i]}})}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=ys&&ys.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Us,e),n(M2,e)})(O2);const on=ca.defineStore("cardJsonObject",{state:()=>({cardJsonObject:{}}),actions:{update(e){this.cardJsonObject=e}}}),ge=ca.defineStore("dataJson",{state:()=>({dataJson:{keywords:[],patches:{},ranks:[],rarities:[],regions:[],runeterraChampions:[],seasons:[],servers:[],sets:[],spellSpeeds:[],types:[],vocabTerms:[],cardFormats:[],formats:{},queues:{}}}),actions:{update(e){this.dataJson=e}}}),Kt=ca.defineStore("user",{state:()=>({user:void 0}),actions:{update(e){this.user=e}}}),Vu=ca.defineStore("aquiredCards",{state:()=>({acquiredCards:void 0}),actions:{update(){const e=Kt().user;if(!e||!e.cardCollectionCode){this.acquiredCards=void 0;return}this.acquiredCards=Bt(e.cardCollectionCode)}}});function mA(e){return/^\d+$/.test(e[0])}function Ls(e){return e===void 0?!1:e.supertype==="Champion"&&e.typeRef==="Unit"}function U3(e){if(e===void 0)return Math.random();typeof e=="string"&&(e=Number(e.split("").map(function(n){return n.charCodeAt(0)+1}).join("")));const t=Math.sin(e++)*1e4;return t-Math.floor(t)}function Q1(e){return`#${Math.floor(U3(e)*16777215).toString(16)}`}function $n(e,t=.5){return e>=t+.15||e>=1?"--color-excellent":e>=t+.05?"--color-good":e>=t+.005?"--color-good-lite":e<t+.005&&e>t-.005?"--color-median":e>=t-.05?"--color-bad-lite":"--color-bad"}function D3(e){const t=new Date,n=new Date(t);return n.setTime(n.getTime()+e*3600*1e3*24),n}function Ce(e,t=0,n){return e===null?"-":Number(e.toFixed(t)).toLocaleString(void 0,{maximumSignificantDigits:n===void 0?e>1e4?3:2:n})}function Q3(e,t){return Math.floor(Math.random()*(t-e)+e)}function L3(e,t){return e.reduce((n,r)=>{var a;return(n[a=t(r)]||(n[a]=[])).push(r),n},{})}function nu(e,t){var s;const n=Vu().acquiredCards;if(t&&n===void 0)return null;const r=on().cardJsonObject,a=ge().dataJson;let i=0;for(const A in e){const l=(s=a.rarities.find(u=>u.nameRef===r[A].rarityRef))==null?void 0:s.cost;if(l===void 0)continue;const c=t?Math.max(0,e[A]-((n??{})[A]??0)):e[A];i+=l*c}return i}function na(e,t,n){const r=[],a=[i=>Ls(i),i=>i.typeRef==="Landmark",i=>i.typeRef==="Unit"&&!Ls(i),i=>i.typeRef==="Spell",i=>i.typeRef==="Equipment"];for(;r.length<n;){const i=a.shift();if(!i)break;r.push(...O3(e.filter(i),t,n-r.length))}return r}function O3(e,t,n){return e.sort((r,a)=>t[a.cardCode]-t[r.cardCode]).sort((r,a)=>a.cost-r.cost).slice(0,n)}function Bt(e){return e===""?{}:O2.getDeckFromCode(e).reduce((t,n)=>({...t,[n.cardCode]:n.count}),{})}function Zt(e){return Object.keys(e).map(t=>on().cardJsonObject[t]).filter(t=>t!==void 0).sort((t,n)=>t.name.localeCompare(n.name)).sort((t,n)=>t.cost-n.cost)}function M3(e){return Ku(Bt(e))}function Ku(e){const t=on().cardJsonObject,n=Object.keys(e).map(r=>t[r]).filter(r=>r!==void 0);return WA(n)}function WA(e){const t=[];for(const a of e)a.regionRefs.length===1&&!t.includes(a.regionRefs[0])&&t.push(a.regionRefs[0]);if(e.every(a=>a.regionRefs.filter(i=>t.includes(i)).length>0))return t;const n=e.filter(a=>a.regionRefs.filter(i=>t.includes(i)).length===0);return new Set(n.flatMap(a=>a.regionRefs)).forEach(a=>{mA(a)||t.push(a)}),t}function yi(e,t,n=!1){var i,s;const r=ge().dataJson,a=`var(${((i=r.regions.find(A=>A.nameRef===e.regionRefs[0]))==null?void 0:i.color)||"--color-primary-2"}${n?"-rgb":""})`;if(e.regionRefs.length===1||!t||t.length<2)return a;for(const A of t)if(e.regionRefs.includes(A))return`var(${((s=r.regions.find(l=>l.nameRef===A))==null?void 0:s.color)||"--color-primary-2"}${n?"-rgb":""})`;return a}function N2(e){return Wa(`--color-${e}`)||Wa("--color-primary-2")}function Wa(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function Gh(e){var t,n;return mA(e)?((t=on().cardJsonObject[e])==null?void 0:t.name)||"Runeterra":(n=ge().dataJson.regions.find(r=>r.nameRef===e))==null?void 0:n.name}function N3(e,t){t||(t=Ku(e));const n={};for(const r of t)n[r]=0;for(const r in e){const a=on().cardJsonObject[r];a&&(n[jh(a,t)]+=e[r])}return n}function jh(e,t){for(const n of e.regionRefs)if(t.includes(n))return n;throw new Error("Card's region was unfound.")}function Yh(e){const t=Bt(e);return na(Zt(t),t,2).map(n=>n.name).join(" + ")}function P3(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}const t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t)}function GA(e,t,n=!0){return o.computed(()=>{if(e)return e;if(!t){if(n)throw new Error("CardProp or CardCodeProp must be defined.");return}return on().cardJsonObject[t]})}function H3(e,t,n){if(!e&&t&&(e=Zt(t)),!e&&n&&(e=Zt(Bt(n))),!e)throw new Error("At least one argument must be defined.");let r=[Jn.CommonsOnly,Jn.Eternal,Jn.Standard,Jn.EvenCost,Jn.Singleton];for(const a of e)r=r.filter(i=>a.formats.includes(i));return r}const ri=Symbol();var gt=(e=>(e.Banner="banner",e.Slice="slice",e.Full="full-art",e.Card="card",e.Icon="icon",e))(gt||{});const ye=ca.defineStore("callbacks",{state:()=>({callbacks:{playerRouterLinkCallback:()=>"404",playerIdRouterLinkCallback:()=>"404",cardCodeRouterLinkCallback:()=>"404",premiumLinkCallback:()=>"404",cardImageCallback:()=>"404",cardbackCallback:()=>"404",uploadDeckToLorCallback:()=>!1}}),actions:{update(e){this.callbacks=e}}});/*!
|
|
1
|
+
"use strict";var v3=Object.defineProperty;var y3=(e,t,n)=>t in e?v3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var R=(e,t,n)=>(y3(e,typeof t!="symbol"?t+"":t,n),n);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("vue"),ca=require("pinia"),Vr=require("vue-router"),Ap=ca.defineStore("toasts",{state:()=>({toasts:[]}),actions:{addToast(e){this.toasts.push(e),setTimeout(()=>{this.deleteToast(e)},e.time??1e4)},deleteToast(e){const t=this.toasts.indexOf(e);t!==-1&&this.toasts.splice(t,1)}}}),B3=["onClick"],w3={class:"toast-message"},b3={key:0,class:"toast-options"},_3=["href","onClick"],C3=o.defineComponent({__name:"ToastContainer",setup(e){const t=o.ref(null);return o.onMounted(()=>{t.value&&document.body.appendChild(t.value)}),(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:"toast-container",ref_key:"toastContainer",ref:t},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(Ap)().toasts,(a,i)=>(o.openBlock(),o.createElementBlock("div",{key:i,class:o.normalizeClass(["toast",a.type]),onClick:s=>o.unref(Ap)().deleteToast(a)},[o.createElementVNode("div",w3,o.toDisplayString(a.message),1),a.options&&a.options.length?(o.openBlock(),o.createElementBlock("div",b3,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.options,(s,A)=>(o.openBlock(),o.createElementBlock("a",{key:A,class:"toast-option",href:s.link,target:"_blank",onClick:l=>s.onClick(a)},o.toDisplayString(s.message),9,_3))),128))])):o.createCommentVNode("",!0)],10,B3))),128))],512))}});const M=(e,t)=>{const n=e.__vccOpts||e;for(const[r,a]of t)n[r]=a;return n},Q2=M(C3,[["__scopeId","data-v-d1c03412"]]);var Jn=(e=>(e.Standard="client_Formats_Standard_name",e.Eternal="client_Formats_Eternal_name",e.CommonsOnly="client_Formats_CommonsOnly_name",e.Singleton="client_Deckbuilder_RulesFilters_Singleton",e.EvenCost="client_Formats_EvenCostCards_name",e))(Jn||{}),L2=(e=>(e.Normal="Normal",e.Ranked="Ranked",e))(L2||{}),ys=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},O2={},Us={},Wh={};Object.defineProperty(Wh,"__esModule",{value:!0});class Si{constructor(t){this.bytes=new Uint8Array(t)}get length(){return this.bytes.length}PopVarint(){let t=0,n=0,r=0;for(let a=0;a<this.bytes.length;a++){r++;const i=this.bytes[a]&Si.AllButMSB;if(t|=i<<n,(this.bytes[a]&Si.JustMSB)!=Si.JustMSB)return this.bytes=this.bytes.slice(r),t;n+=7}throw"Byte array did not contain valid varints."}sliceAndSet(t,n){this.bytes=this.bytes.slice(t,n)}get(t){return this.bytes[t]}static GetVarint(t){const n=new Uint8Array(10);let r=0;if(t==0)return new Uint8Array([0]);for(;t!==0;){let a=t&this.AllButMSB;t>>=7,t!=0&&(a|=this.JustMSB),n[r++]=a}return n.slice(0,r)}}Wh.default=Si;Si.AllButMSB=127;Si.JustMSB=128;var Ds={};Object.defineProperty(Ds,"__esModule",{value:!0});Ds.mergeUint8Arrays=Ds.sortDeck=void 0;function k3(e){e.sort((t,n)=>t.cardCode<n.cardCode?-1:1)}Ds.sortDeck=k3;function E3(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}Ds.mergeUint8Arrays=E3;var Qs={};Object.defineProperty(Qs,"__esModule",{value:!0});Qs.base32Decode=Qs.base32Encode=void 0;const lp="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";function S3(e){const t=e.byteLength,n=new Uint8Array(e);let r=0,a="",i=0;for(let s=0;s<t;s++)for(i=i<<8|n[s],r+=8;r>=5;)a+=lp[i>>>r-5&31],r-=5;for(r>0&&(a+=lp[i<<5-r&31]);a.length%8!==0;)a+="=";return a}Qs.base32Encode=S3;function x3(e){function t(A){const l=lp.indexOf(A);if(l===-1)throw new Error("Invalid character found: "+A);return l}const n=e.toUpperCase().replace(/\=+$/,"");let r=0,a=0,i=0;const s=new Uint8Array(n.length*5/8|0);for(let A=0;A<n.length;A++)i=i<<5|t(n[A]),r+=5,r>=8&&(s[a++]=i>>>r-8&255,r-=8);return s.buffer}Qs.base32Decode=x3;var F3=ys&&ys.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Us,"__esModule",{value:!0});Us.getCodeFromDeck=Us.getDeckFromCode=void 0;const lr=F3(Wh),rn=Ds,D1=Qs;class je{static getMinSupportedLibraryVersion(t){if(!t)return je.INITIAL_VERSION;const n=t.map(r=>r.cardCode.substr(2,2)).map(r=>this.FACTION_CODE_TO_LIBRARY_VERSION[r]||this.INITIAL_VERSION);return Math.max(...n)}static getDeckFromCode(t){const n=[],r=D1.base32Decode(t);if(!r)throw"Invalid deck code";const a=new lr.default(r);a.get(0)>>4;const i=a.get(0)&15;if(a.sliceAndSet(1),i>je.MAX_KNOWN_VERSION)throw"The provided code requires a higher version of this library; please update.";for(let s=3;s>0;s--){const A=a.PopVarint();for(let l=0;l<A;l++){const c=a.PopVarint(),u=a.PopVarint(),d=a.PopVarint();for(let f=0;f<c;f++){const p=a.PopVarint(),h=u.toString().padStart(2,"0"),g=this.INT_TO_FACTION_CODE[d],B=p.toString().padStart(3,"0"),m={cardCode:h+g+B,count:s};n.push(m)}}}for(;a.length>0;){const s=a.PopVarint(),A=a.PopVarint(),l=a.PopVarint(),c=a.PopVarint(),u=A.toString().padStart(2,"0"),d=this.INT_TO_FACTION_CODE[l],f=c.toString().padStart(3,"0"),p={cardCode:u+d+f,count:s};n.push(p)}return n}static getCodeFromDeck(t){const n=this.getDeckCodeBytes(t);return D1.base32Encode(n)}static getDeckCodeBytes(t){if(!je.ValidCardCodesAndCounts(t))throw"The provided deck contains invalid card codes.";const n=this.FORMAT<<this.MAX_KNOWN_VERSION|this.getMinSupportedLibraryVersion(t)&15;let r=new Uint8Array([n]);const a=[],i=[],s=[],A=[];for(const g of t)if(g.count==3)a.push(g);else if(g.count==2)i.push(g);else if(g.count==1)s.push(g);else{if(g.count<1)throw"Invalid count of "+g.count+" for card "+g.cardCode;A.push(g)}let l=je.GetGroupedOfs(a),c=je.GetGroupedOfs(i),u=je.GetGroupedOfs(s);l=je.SortGroupOf(l),c=je.SortGroupOf(c),u=je.SortGroupOf(u),rn.sortDeck(A);const d=je.EncodeGroupOf(l),f=je.EncodeGroupOf(c),p=je.EncodeGroupOf(u),h=je.EncodeNOfs(A);return r=rn.mergeUint8Arrays(r,d),r=rn.mergeUint8Arrays(r,f),r=rn.mergeUint8Arrays(r,p),r=rn.mergeUint8Arrays(r,h),r}static GetGroupedOfs(t){const n=[];for(;t.length>0;){const r=[],a=t[0].cardCode,{set:i,faction:s,number:A}=je.ParseCardCode(a);r.push(t[0]),t.shift();for(let l=t.length-1;l>=0;l--){const c=t[l].cardCode,u=Number(c.substring(0,2)),d=c.substring(2,4);u===i&&d===s&&(r.push(t[l]),t.splice(l,1))}n.push(r)}return n}static EncodeNOfs(t){let n=new Uint8Array;for(const r of t){n=rn.mergeUint8Arrays(n,lr.default.GetVarint(r.count));const{set:a,faction:i,number:s}=je.ParseCardCode(r.cardCode),A=this.FACTION_CODE_TO_INT[i];n=rn.mergeUint8Arrays(n,lr.default.GetVarint(a)),n=rn.mergeUint8Arrays(n,lr.default.GetVarint(A)),n=rn.mergeUint8Arrays(n,lr.default.GetVarint(s))}return n}static SortGroupOf(t){const n=t.sort((r,a)=>r.length<a.length?-1:1);return n.forEach(r=>rn.sortDeck(r)),n}static EncodeGroupOf(t){let n=new Uint8Array([]);n=rn.mergeUint8Arrays(n,lr.default.GetVarint(t.length));for(const r of t){n=rn.mergeUint8Arrays(n,lr.default.GetVarint(r.length));const a=r[0].cardCode,{set:i,faction:s}=je.ParseCardCode(a),A=this.FACTION_CODE_TO_INT[s];n=rn.mergeUint8Arrays(n,lr.default.GetVarint(i)),n=rn.mergeUint8Arrays(n,lr.default.GetVarint(A));for(const l of r){const c=l.cardCode,u=Number(c.substring(4,7));n=rn.mergeUint8Arrays(n,lr.default.GetVarint(u))}}return n}static ParseCardCode(t){return{set:Number(t.substring(0,2)),faction:t.substring(2,4),number:Number(t.substring(4,7))}}static ValidCardCodesAndCounts(t){for(const n of t){if(n.cardCode.length!=je.CARD_CODE_LENGTH||isNaN(Number(n.cardCode.substring(0,2))))return!1;const r=n.cardCode.substring(2,4);if(this.FACTION_CODE_TO_INT[r]===void 0||isNaN(Number(n.cardCode.substring(4,7)))||n.count<1)return!1}return!0}}je.CARD_CODE_LENGTH=7;je.MAX_KNOWN_VERSION=5;je.FORMAT=1;je.INITIAL_VERSION=1;je.FACTION_CODE_TO_INT={DE:0,FR:1,IO:2,NX:3,PZ:4,SI:5,BW:6,SH:7,MT:9,BC:10,RU:12};je.INT_TO_FACTION_CODE={0:"DE",1:"FR",2:"IO",3:"NX",4:"PZ",5:"SI",6:"BW",7:"SH",9:"MT",10:"BC",12:"RU"};je.FACTION_CODE_TO_LIBRARY_VERSION={DE:1,FR:1,IO:1,NX:1,PZ:1,SI:1,BW:2,MT:2,SH:3,BC:4,RU:5};const I3=e=>je.getDeckFromCode(e);Us.getDeckFromCode=I3;const T3=e=>je.getCodeFromDeck(e);Us.getCodeFromDeck=T3;var M2={};Object.defineProperty(M2,"__esModule",{value:!0});(function(e){var t=ys&&ys.__createBinding||(Object.create?function(r,a,i,s){s===void 0&&(s=i),Object.defineProperty(r,s,{enumerable:!0,get:function(){return a[i]}})}:function(r,a,i,s){s===void 0&&(s=i),r[s]=a[i]}),n=ys&&ys.__exportStar||function(r,a){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&t(a,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Us,e),n(M2,e)})(O2);const on=ca.defineStore("cardJsonObject",{state:()=>({cardJsonObject:{}}),actions:{update(e){this.cardJsonObject=e}}}),ve=ca.defineStore("dataJson",{state:()=>({dataJson:{keywords:[],patches:{},ranks:[],rarities:[],regions:[],runeterraChampions:[],seasons:[],servers:[],sets:[],spellSpeeds:[],types:[],vocabTerms:[],cardFormats:[],formats:{},queues:{}}}),actions:{update(e){this.dataJson=e}}}),Kt=ca.defineStore("user",{state:()=>({user:void 0}),actions:{update(e){this.user=e}}}),Vu=ca.defineStore("aquiredCards",{state:()=>({acquiredCards:void 0}),actions:{update(){const e=Kt().user;if(!e||!e.cardCollectionCode){this.acquiredCards=void 0;return}this.acquiredCards=Bt(e.cardCollectionCode)}}});function mA(e){return/^\d+$/.test(e[0])}function Ls(e){return e===void 0?!1:e.supertype==="Champion"&&e.typeRef==="Unit"}function U3(e){if(e===void 0)return Math.random();typeof e=="string"&&(e=Number(e.split("").map(function(n){return n.charCodeAt(0)+1}).join("")));const t=Math.sin(e++)*1e4;return t-Math.floor(t)}function Q1(e){return`#${Math.floor(U3(e)*16777215).toString(16)}`}function $n(e,t=.5){return e>=t+.15||e>=1?"--color-excellent":e>=t+.05?"--color-good":e>=t+.005?"--color-good-lite":e<t+.005&&e>t-.005?"--color-median":e>=t-.05?"--color-bad-lite":"--color-bad"}function D3(e){const t=new Date,n=new Date(t);return n.setTime(n.getTime()+e*3600*1e3*24),n}function Ce(e,t=0,n){return e===null?"-":Number(e.toFixed(t)).toLocaleString(void 0,{maximumSignificantDigits:n===void 0?e>1e4?3:2:n})}function Q3(e,t){return Math.floor(Math.random()*(t-e)+e)}function L3(e,t){return e.reduce((n,r)=>{var a;return(n[a=t(r)]||(n[a]=[])).push(r),n},{})}function nu(e,t){var s;const n=Vu().acquiredCards;if(t&&n===void 0)return null;const r=on().cardJsonObject,a=ve().dataJson;let i=0;for(const A in e){const l=(s=a.rarities.find(u=>u.nameRef===r[A].rarityRef))==null?void 0:s.cost;if(l===void 0)continue;const c=t?Math.max(0,e[A]-((n??{})[A]??0)):e[A];i+=l*c}return i}function na(e,t,n){const r=[],a=[i=>Ls(i),i=>i.typeRef==="Landmark",i=>i.typeRef==="Unit"&&!Ls(i),i=>i.typeRef==="Spell",i=>i.typeRef==="Equipment"];for(;r.length<n;){const i=a.shift();if(!i)break;r.push(...O3(e.filter(i),t,n-r.length))}return r}function O3(e,t,n){return e.sort((r,a)=>t[a.cardCode]-t[r.cardCode]).sort((r,a)=>a.cost-r.cost).slice(0,n)}function Bt(e){return e===""?{}:O2.getDeckFromCode(e).reduce((t,n)=>({...t,[n.cardCode]:n.count}),{})}function Zt(e){return Object.keys(e).map(t=>on().cardJsonObject[t]).filter(t=>t!==void 0).sort((t,n)=>t.name.localeCompare(n.name)).sort((t,n)=>t.cost-n.cost)}function M3(e){return Ku(Bt(e))}function Ku(e){const t=on().cardJsonObject,n=Object.keys(e).map(r=>t[r]).filter(r=>r!==void 0);return WA(n)}function WA(e){const t=[];for(const a of e)a.regionRefs.length===1&&!t.includes(a.regionRefs[0])&&t.push(a.regionRefs[0]);if(e.every(a=>a.regionRefs.filter(i=>t.includes(i)).length>0))return t;const n=e.filter(a=>a.regionRefs.filter(i=>t.includes(i)).length===0);return new Set(n.flatMap(a=>a.regionRefs)).forEach(a=>{mA(a)||t.push(a)}),t}function yi(e,t,n=!1){var i,s;const r=ve().dataJson,a=`var(${((i=r.regions.find(A=>A.nameRef===e.regionRefs[0]))==null?void 0:i.color)||"--color-primary-2"}${n?"-rgb":""})`;if(e.regionRefs.length===1||!t||t.length<2)return a;for(const A of t)if(e.regionRefs.includes(A))return`var(${((s=r.regions.find(l=>l.nameRef===A))==null?void 0:s.color)||"--color-primary-2"}${n?"-rgb":""})`;return a}function N2(e){return Wa(`--color-${e}`)||Wa("--color-primary-2")}function Wa(e){return getComputedStyle(document.documentElement).getPropertyValue(e)}function Gh(e){var t,n;return mA(e)?((t=on().cardJsonObject[e])==null?void 0:t.name)||"Runeterra":(n=ve().dataJson.regions.find(r=>r.nameRef===e))==null?void 0:n.name}function N3(e,t){t||(t=Ku(e));const n={};for(const r of t)n[r]=0;for(const r in e){const a=on().cardJsonObject[r];a&&(n[jh(a,t)]+=e[r])}return n}function jh(e,t){for(const n of e.regionRefs)if(t.includes(n))return n;throw new Error("Card's region was unfound.")}function Yh(e){const t=Bt(e);return na(Zt(t),t,2).map(n=>n.name).join(" + ")}function P3(e){if(navigator.clipboard){navigator.clipboard.writeText(e);return}const t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t)}function GA(e,t,n=!0){return o.computed(()=>{if(e)return e;if(!t){if(n)throw new Error("CardProp or CardCodeProp must be defined.");return}return on().cardJsonObject[t]})}function H3(e,t,n){if(!e&&t&&(e=Zt(t)),!e&&n&&(e=Zt(Bt(n))),!e)throw new Error("At least one argument must be defined.");let r=[Jn.CommonsOnly,Jn.Eternal,Jn.Standard,Jn.EvenCost,Jn.Singleton];for(const a of e)r=r.filter(i=>a.formats.includes(i));return r}const ri=Symbol();var gt=(e=>(e.Banner="banner",e.Slice="slice",e.Full="full-art",e.Card="card",e.Icon="icon",e))(gt||{});const ge=ca.defineStore("callbacks",{state:()=>({callbacks:{playerRouterLinkCallback:()=>"404",playerIdRouterLinkCallback:()=>"404",cardCodeRouterLinkCallback:()=>"404",premiumLinkCallback:()=>"404",cardImageCallback:()=>"404",cardbackCallback:()=>"404",uploadDeckToLorCallback:()=>!1}}),actions:{update(e){this.callbacks=e}}});/*!
|
|
2
2
|
* shared v9.2.2
|
|
3
3
|
* (c) 2022 kazuya kawaguchi
|
|
4
4
|
* Released under the MIT License.
|
|
@@ -801,7 +801,7 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
801
801
|
color: var(--fa-inverse, #fff);
|
|
802
802
|
}`;function Cw(){var e=gw,t=vw,n=se.cssPrefix,r=se.replacementClass,a=kx;if(n!==e||r!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),A=new RegExp("\\.".concat(t),"g");a=a.replace(i,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(A,".".concat(r))}return a}var vv=!1;function rf(){se.autoAddCss&&!vv&&(Bx(Cw()),vv=!0)}var Ex={mixout:function(){return{dom:{css:Cw,insertCss:rf}}},hooks:function(){return{beforeDOMElementCreation:function(){rf()},beforeI2svg:function(){rf()}}}},aa=ja||{};aa[ra]||(aa[ra]={});aa[ra].styles||(aa[ra].styles={});aa[ra].hooks||(aa[ra].hooks={});aa[ra].shims||(aa[ra].shims=[]);var tr=aa[ra],kw=[],Sx=function e(){st.removeEventListener("DOMContentLoaded",e),iu=1,kw.map(function(t){return t()})},iu=!1;ua&&(iu=(st.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(st.readyState),iu||st.addEventListener("DOMContentLoaded",Sx));function xx(e){ua&&(iu?setTimeout(e,0):kw.push(e))}function XA(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,a=e.children,i=a===void 0?[]:a;return typeof e=="string"?_w(e):"<".concat(t," ").concat(bx(r),">").concat(i.map(XA).join(""),"</").concat(t,">")}function yv(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Fx=function(t,n){return function(r,a,i,s){return t.call(n,r,a,i,s)}},af=function(t,n,r,a){var i=Object.keys(t),s=i.length,A=a!==void 0?Fx(n,a):n,l,c,u;for(r===void 0?(l=1,u=t[i[0]]):(l=0,u=r);l<s;l++)c=i[l],u=A(u,t[c],c,t);return u};function Ix(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var i=e.charCodeAt(n++);(i&64512)==56320?t.push(((a&1023)<<10)+(i&1023)+65536):(t.push(a),n--)}else t.push(a)}return t}function Cp(e){var t=Ix(e);return t.length===1?t[0].toString(16):null}function Tx(e,t){var n=e.length,r=e.charCodeAt(t),a;return r>=55296&&r<=56319&&n>t+1&&(a=e.charCodeAt(t+1),a>=56320&&a<=57343)?(r-55296)*1024+a-56320+65536:r}function Bv(e){return Object.keys(e).reduce(function(t,n){var r=e[n],a=!!r.icon;return a?t[r.iconName]=r.icon:t[n]=r,t},{})}function kp(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,a=r===void 0?!1:r,i=Bv(t);typeof tr.hooks.addPack=="function"&&!a?tr.hooks.addPack(e,Bv(t)):tr.styles[e]=ee(ee({},tr.styles[e]||{}),i),e==="fas"&&kp("fa",t)}var Nl,Pl,Hl,ws=tr.styles,Ux=tr.shims,Dx=(Nl={},Lt(Nl,it,Object.values(bA[it])),Lt(Nl,vt,Object.values(bA[vt])),Nl),um=null,Ew={},Sw={},xw={},Fw={},Iw={},Qx=(Pl={},Lt(Pl,it,Object.keys(BA[it])),Lt(Pl,vt,Object.keys(BA[vt])),Pl);function Lx(e){return~hx.indexOf(e)}function Ox(e,t){var n=t.split("-"),r=n[0],a=n.slice(1).join("-");return r===e&&a!==""&&!Lx(a)?a:null}var Tw=function(){var t=function(i){return af(ws,function(s,A,l){return s[l]=af(A,i,{}),s},{})};Ew=t(function(a,i,s){if(i[3]&&(a[i[3]]=s),i[2]){var A=i[2].filter(function(l){return typeof l=="number"});A.forEach(function(l){a[l.toString(16)]=s})}return a}),Sw=t(function(a,i,s){if(a[s]=s,i[2]){var A=i[2].filter(function(l){return typeof l=="string"});A.forEach(function(l){a[l]=s})}return a}),Iw=t(function(a,i,s){var A=i[2];return a[s]=s,A.forEach(function(l){a[l]=s}),a});var n="far"in ws||se.autoFetchSvg,r=af(Ux,function(a,i){var s=i[0],A=i[1],l=i[2];return A==="far"&&!n&&(A="fas"),typeof s=="string"&&(a.names[s]={prefix:A,iconName:l}),typeof s=="number"&&(a.unicodes[s.toString(16)]={prefix:A,iconName:l}),a},{names:{},unicodes:{}});xw=r.names,Fw=r.unicodes,um=Xu(se.styleDefault,{family:se.familyDefault})};yx(function(e){um=Xu(e.styleDefault,{family:se.familyDefault})});Tw();function dm(e,t){return(Ew[e]||{})[t]}function Mx(e,t){return(Sw[e]||{})[t]}function bi(e,t){return(Iw[e]||{})[t]}function Uw(e){return xw[e]||{prefix:null,iconName:null}}function Nx(e){var t=Fw[e],n=dm("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ya(){return um}var fm=function(){return{prefix:null,iconName:null,rest:[]}};function Xu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?it:n,a=BA[r][e],i=wA[r][e]||wA[r][a],s=e in tr.styles?e:null;return i||s||null}var wv=(Hl={},Lt(Hl,it,Object.keys(bA[it])),Lt(Hl,vt,Object.keys(bA[vt])),Hl);function Ju(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,a=r===void 0?!1:r,i=(t={},Lt(t,it,"".concat(se.cssPrefix,"-").concat(it)),Lt(t,vt,"".concat(se.cssPrefix,"-").concat(vt)),t),s=null,A=it;(e.includes(i[it])||e.some(function(c){return wv[it].includes(c)}))&&(A=it),(e.includes(i[vt])||e.some(function(c){return wv[vt].includes(c)}))&&(A=vt);var l=e.reduce(function(c,u){var d=Ox(se.cssPrefix,u);if(ws[u]?(u=Dx[A].includes(u)?lx[A][u]:u,s=u,c.prefix=u):Qx[A].indexOf(u)>-1?(s=u,c.prefix=Xu(u,{family:A})):d?c.iconName=d:u!==se.replacementClass&&u!==i[it]&&u!==i[vt]&&c.rest.push(u),!a&&c.prefix&&c.iconName){var f=s==="fa"?Uw(c.iconName):{},p=bi(c.prefix,c.iconName);f.prefix&&(s=null),c.iconName=f.iconName||p||c.iconName,c.prefix=f.prefix||c.prefix,c.prefix==="far"&&!ws.far&&ws.fas&&!se.autoFetchSvg&&(c.prefix="fas")}return c},fm());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&A===vt&&(ws.fass||se.autoFetchSvg)&&(l.prefix="fass",l.iconName=bi(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||s==="fa")&&(l.prefix=Ya()||"fas"),l}var Px=function(){function e(){XS(this,e),this.definitions={}}return JS(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(A){n.definitions[A]=ee(ee({},n.definitions[A]||{}),s[A]),kp(A,s[A]);var l=bA[it][A];l&&kp(l,s[A]),Tw()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var a=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(a).map(function(i){var s=a[i],A=s.prefix,l=s.iconName,c=s.icon,u=c[2];n[A]||(n[A]={}),u.length>0&&u.forEach(function(d){typeof d=="string"&&(n[A][d]=c)}),n[A][l]=c}),n}}]),e}(),bv=[],bs={},Es={},Hx=Object.keys(Es);function Rx(e,t){var n=t.mixoutsTo;return bv=e,bs={},Object.keys(Es).forEach(function(r){Hx.indexOf(r)===-1&&delete Es[r]}),bv.forEach(function(r){var a=r.mixout?r.mixout():{};if(Object.keys(a).forEach(function(s){typeof a[s]=="function"&&(n[s]=a[s]),au(a[s])==="object"&&Object.keys(a[s]).forEach(function(A){n[s]||(n[s]={}),n[s][A]=a[s][A]})}),r.hooks){var i=r.hooks();Object.keys(i).forEach(function(s){bs[s]||(bs[s]=[]),bs[s].push(i[s])})}r.provides&&r.provides(Es)}),n}function Ep(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var i=bs[e]||[];return i.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function Oi(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=bs[e]||[];a.forEach(function(i){i.apply(null,n)})}function ia(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Es[e]?Es[e].apply(null,t):void 0}function Sp(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||Ya();if(t)return t=bi(n,t)||t,yv(Dw.definitions,n,t)||yv(tr.styles,n,t)}var Dw=new Px,Vx=function(){se.autoReplaceSvg=!1,se.observeMutations=!1,Oi("noAuto")},Kx={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return ua?(Oi("beforeI2svg",t),ia("pseudoElements2svg",t),ia("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;se.autoReplaceSvg===!1&&(se.autoReplaceSvg=!0),se.observeMutations=!0,xx(function(){zx({autoReplaceSvgRoot:n}),Oi("watch",t)})}},$x={icon:function(t){if(t===null)return null;if(au(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:bi(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Xu(t[0]);return{prefix:r,iconName:bi(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(se.cssPrefix,"-"))>-1||t.match(cx))){var a=Ju(t.split(" "),{skipLookups:!0});return{prefix:a.prefix||Ya(),iconName:bi(a.prefix,a.iconName)||a.iconName}}if(typeof t=="string"){var i=Ya();return{prefix:i,iconName:bi(i,t)||t}}}},Tn={noAuto:Vx,config:se,dom:Kx,parse:$x,library:Dw,findIconDefinition:Sp,toHtml:XA},zx=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?st:n;(Object.keys(tr.styles).length>0||se.autoFetchSvg)&&ua&&se.autoReplaceSvg&&Tn.dom.i2svg({node:r})};function Zu(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return XA(r)})}}),Object.defineProperty(e,"node",{get:function(){if(ua){var r=st.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function Wx(e){var t=e.children,n=e.main,r=e.mask,a=e.attributes,i=e.styles,s=e.transform;if(cm(s)&&n.found&&!r.found){var A=n.width,l=n.height,c={x:A/l/2,y:.5};a.style=qu(ee(ee({},i),{},{"transform-origin":"".concat(c.x+s.x/16,"em ").concat(c.y+s.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}function Gx(e){var t=e.prefix,n=e.iconName,r=e.children,a=e.attributes,i=e.symbol,s=i===!0?"".concat(t,"-").concat(se.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:ee(ee({},a),{},{id:s}),children:r}]}]}function pm(e){var t=e.icons,n=t.main,r=t.mask,a=e.prefix,i=e.iconName,s=e.transform,A=e.symbol,l=e.title,c=e.maskId,u=e.titleId,d=e.extra,f=e.watchable,p=f===void 0?!1:f,h=r.found?r:n,g=h.width,B=h.height,m=a==="fak",v=[se.replacementClass,i?"".concat(se.cssPrefix,"-").concat(i):""].filter(function(S){return d.classes.indexOf(S)===-1}).filter(function(S){return S!==""||!!S}).concat(d.classes).join(" "),w={children:[],attributes:ee(ee({},d.attributes),{},{"data-prefix":a,"data-icon":i,class:v,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(B)})},y=m&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/B*16*.0625,"em")}:{};p&&(w.attributes[Li]=""),l&&(w.children.push({tag:"title",attributes:{id:w.attributes["aria-labelledby"]||"title-".concat(u||CA())},children:[l]}),delete w.attributes.title);var b=ee(ee({},w),{},{prefix:a,iconName:i,main:n,mask:r,maskId:c,transform:s,symbol:A,styles:ee(ee({},y),d.styles)}),_=r.found&&n.found?ia("generateAbstractMask",b)||{children:[],attributes:{}}:ia("generateAbstractIcon",b)||{children:[],attributes:{}},C=_.children,E=_.attributes;return b.children=C,b.attributes=E,A?Gx(b):Wx(b)}function _v(e){var t=e.content,n=e.width,r=e.height,a=e.transform,i=e.title,s=e.extra,A=e.watchable,l=A===void 0?!1:A,c=ee(ee(ee({},s.attributes),i?{title:i}:{}),{},{class:s.classes.join(" ")});l&&(c[Li]="");var u=ee({},s.styles);cm(a)&&(u.transform=Cx({transform:a,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=qu(u);d.length>0&&(c.style=d);var f=[];return f.push({tag:"span",attributes:c,children:[t]}),i&&f.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),f}function jx(e){var t=e.content,n=e.title,r=e.extra,a=ee(ee(ee({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),i=qu(r.styles);i.length>0&&(a.style=i);var s=[];return s.push({tag:"span",attributes:a,children:[t]}),n&&s.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),s}var sf=tr.styles;function xp(e){var t=e[0],n=e[1],r=e.slice(4),a=am(r,1),i=a[0],s=null;return Array.isArray(i)?s={tag:"g",attributes:{class:"".concat(se.cssPrefix,"-").concat(wi.GROUP)},children:[{tag:"path",attributes:{class:"".concat(se.cssPrefix,"-").concat(wi.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(se.cssPrefix,"-").concat(wi.PRIMARY),fill:"currentColor",d:i[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:s}}var Yx={found:!1,width:512,height:512};function qx(e,t){!yw&&!se.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Fp(e,t){var n=t;return t==="fa"&&se.styleDefault!==null&&(t=Ya()),new Promise(function(r,a){if(ia("missingIconAbstract"),n==="fa"){var i=Uw(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&sf[t]&&sf[t][e]){var s=sf[t][e];return r(xp(s))}qx(e,t),r(ee(ee({},Yx),{},{icon:se.showMissingIcons&&e?ia("missingIconAbstract")||{}:{}}))})}var Cv=function(){},Ip=se.measurePerformance&&Ul&&Ul.mark&&Ul.measure?Ul:{mark:Cv,measure:Cv},To='FA "6.4.0"',Xx=function(t){return Ip.mark("".concat(To," ").concat(t," begins")),function(){return Qw(t)}},Qw=function(t){Ip.mark("".concat(To," ").concat(t," ends")),Ip.measure("".concat(To," ").concat(t),"".concat(To," ").concat(t," begins"),"".concat(To," ").concat(t," ends"))},hm={begin:Xx,end:Qw},Oc=function(){};function kv(e){var t=e.getAttribute?e.getAttribute(Li):null;return typeof t=="string"}function Jx(e){var t=e.getAttribute?e.getAttribute(sm):null,n=e.getAttribute?e.getAttribute(om):null;return t&&n}function Zx(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(se.replacementClass)}function eF(){if(se.autoReplaceSvg===!0)return Mc.replace;var e=Mc[se.autoReplaceSvg];return e||Mc.replace}function tF(e){return st.createElementNS("http://www.w3.org/2000/svg",e)}function nF(e){return st.createElement(e)}function Lw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?tF:nF:n;if(typeof e=="string")return st.createTextNode(e);var a=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){a.setAttribute(s,e.attributes[s])});var i=e.children||[];return i.forEach(function(s){a.appendChild(Lw(s,{ceFn:r}))}),a}function rF(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Mc={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(a){n.parentNode.insertBefore(Lw(a),n)}),n.getAttribute(Li)===null&&se.keepOriginalSource){var r=st.createComment(rF(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~lm(n).indexOf(se.replacementClass))return Mc.replace(t);var a=new RegExp("".concat(se.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var i=r[0].attributes.class.split(" ").reduce(function(A,l){return l===se.replacementClass||l.match(a)?A.toSvg.push(l):A.toNode.push(l),A},{toNode:[],toSvg:[]});r[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var s=r.map(function(A){return XA(A)}).join(`
|
|
803
803
|
`);n.setAttribute(Li,""),n.innerHTML=s}};function Ev(e){e()}function Ow(e,t){var n=typeof t=="function"?t:Oc;if(e.length===0)n();else{var r=Ev;se.mutateApproach===ox&&(r=ja.requestAnimationFrame||Ev),r(function(){var a=eF(),i=hm.begin("mutate");e.map(a),i(),n()})}}var mm=!1;function Mw(){mm=!0}function Tp(){mm=!1}var su=null;function Sv(e){if(mv&&se.observeMutations){var t=e.treeCallback,n=t===void 0?Oc:t,r=e.nodeCallback,a=r===void 0?Oc:r,i=e.pseudoElementsCallback,s=i===void 0?Oc:i,A=e.observeMutationsRoot,l=A===void 0?st:A;su=new mv(function(c){if(!mm){var u=Ya();Zs(c).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!kv(d.addedNodes[0])&&(se.searchPseudoElements&&s(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&se.searchPseudoElements&&s(d.target.parentNode),d.type==="attributes"&&kv(d.target)&&~px.indexOf(d.attributeName))if(d.attributeName==="class"&&Jx(d.target)){var f=Ju(lm(d.target)),p=f.prefix,h=f.iconName;d.target.setAttribute(sm,p||u),h&&d.target.setAttribute(om,h)}else Zx(d.target)&&a(d.target)})}}),ua&&su.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function aF(){su&&su.disconnect()}function iF(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,a){var i=a.split(":"),s=i[0],A=i.slice(1);return s&&A.length>0&&(r[s]=A.join(":").trim()),r},{})),n}function sF(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",a=Ju(lm(e));return a.prefix||(a.prefix=Ya()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&r.length>0&&(a.iconName=Mx(a.prefix,e.innerText)||dm(a.prefix,Cp(e.innerText))),!a.iconName&&se.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function oF(e){var t=Zs(e.attributes).reduce(function(a,i){return a.name!=="class"&&a.name!=="style"&&(a[i.name]=i.value),a},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return se.autoA11y&&(n?t["aria-labelledby"]="".concat(se.replacementClass,"-title-").concat(r||CA()):(t["aria-hidden"]="true",t.focusable="false")),t}function AF(){return{iconName:null,title:null,titleId:null,prefix:null,transform:vr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function xv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=sF(e),r=n.iconName,a=n.prefix,i=n.rest,s=oF(e),A=Ep("parseNodeAttributes",{},e),l=t.styleParser?iF(e):[];return ee({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:vr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:s}},A)}var lF=tr.styles;function Nw(e){var t=se.autoReplaceSvg==="nest"?xv(e,{styleParser:!1}):xv(e);return~t.extra.classes.indexOf(Bw)?ia("generateLayersText",e,t):ia("generateSvgReplacementMutation",e,t)}var qa=new Set;Am.map(function(e){qa.add("fa-".concat(e))});Object.keys(BA[it]).map(qa.add.bind(qa));Object.keys(BA[vt]).map(qa.add.bind(qa));qa=YA(qa);function Fv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!ua)return Promise.resolve();var n=st.documentElement.classList,r=function(d){return n.add("".concat(gv,"-").concat(d))},a=function(d){return n.remove("".concat(gv,"-").concat(d))},i=se.autoFetchSvg?qa:Am.map(function(u){return"fa-".concat(u)}).concat(Object.keys(lF));i.includes("fa")||i.push("fa");var s=[".".concat(Bw,":not([").concat(Li,"])")].concat(i.map(function(u){return".".concat(u,":not([").concat(Li,"])")})).join(", ");if(s.length===0)return Promise.resolve();var A=[];try{A=Zs(e.querySelectorAll(s))}catch{}if(A.length>0)r("pending"),a("complete");else return Promise.resolve();var l=hm.begin("onTree"),c=A.reduce(function(u,d){try{var f=Nw(d);f&&u.push(f)}catch(p){yw||p.name==="MissingIcon"&&console.error(p)}return u},[]);return new Promise(function(u,d){Promise.all(c).then(function(f){Ow(f,function(){r("active"),r("complete"),a("pending"),typeof t=="function"&&t(),l(),u()})}).catch(function(f){l(),d(f)})})}function cF(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;Nw(e).then(function(n){n&&Ow([n],t)})}function uF(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Sp(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Sp(a||{})),e(r,ee(ee({},n),{},{mask:a}))}}var dF=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,a=r===void 0?vr:r,i=n.symbol,s=i===void 0?!1:i,A=n.mask,l=A===void 0?null:A,c=n.maskId,u=c===void 0?null:c,d=n.title,f=d===void 0?null:d,p=n.titleId,h=p===void 0?null:p,g=n.classes,B=g===void 0?[]:g,m=n.attributes,v=m===void 0?{}:m,w=n.styles,y=w===void 0?{}:w;if(t){var b=t.prefix,_=t.iconName,C=t.icon;return Zu(ee({type:"icon"},t),function(){return Oi("beforeDOMElementCreation",{iconDefinition:t,params:n}),se.autoA11y&&(f?v["aria-labelledby"]="".concat(se.replacementClass,"-title-").concat(h||CA()):(v["aria-hidden"]="true",v.focusable="false")),pm({icons:{main:xp(C),mask:l?xp(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:b,iconName:_,transform:ee(ee({},vr),a),symbol:s,title:f,maskId:u,titleId:h,extra:{attributes:v,styles:y,classes:B}})})}},fF={mixout:function(){return{icon:uF(dF)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=Fv,n.nodeCallback=cF,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,a=r===void 0?st:r,i=n.callback,s=i===void 0?function(){}:i;return Fv(a,s)},t.generateSvgReplacementMutation=function(n,r){var a=r.iconName,i=r.title,s=r.titleId,A=r.prefix,l=r.transform,c=r.symbol,u=r.mask,d=r.maskId,f=r.extra;return new Promise(function(p,h){Promise.all([Fp(a,A),u.iconName?Fp(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var B=am(g,2),m=B[0],v=B[1];p([n,pm({icons:{main:m,mask:v},prefix:A,iconName:a,transform:l,symbol:c,maskId:d,title:i,titleId:s,extra:f,watchable:!0})])}).catch(h)})},t.generateAbstractIcon=function(n){var r=n.children,a=n.attributes,i=n.main,s=n.transform,A=n.styles,l=qu(A);l.length>0&&(a.style=l);var c;return cm(s)&&(c=ia("generateAbstractTransformGrouping",{main:i,transform:s,containerWidth:i.width,iconWidth:i.width})),r.push(c||i.icon),{children:r,attributes:a}}}},pF={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.classes,i=a===void 0?[]:a;return Zu({type:"layer"},function(){Oi("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(A){Array.isArray(A)?A.map(function(l){s=s.concat(l.abstract)}):s=s.concat(A.abstract)}),[{tag:"span",attributes:{class:["".concat(se.cssPrefix,"-layers")].concat(YA(i)).join(" ")},children:s}]})}}}},hF={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.title,i=a===void 0?null:a,s=r.classes,A=s===void 0?[]:s,l=r.attributes,c=l===void 0?{}:l,u=r.styles,d=u===void 0?{}:u;return Zu({type:"counter",content:n},function(){return Oi("beforeDOMElementCreation",{content:n,params:r}),jx({content:n.toString(),title:i,extra:{attributes:c,styles:d,classes:["".concat(se.cssPrefix,"-layers-counter")].concat(YA(A))}})})}}}},mF={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.transform,i=a===void 0?vr:a,s=r.title,A=s===void 0?null:s,l=r.classes,c=l===void 0?[]:l,u=r.attributes,d=u===void 0?{}:u,f=r.styles,p=f===void 0?{}:f;return Zu({type:"text",content:n},function(){return Oi("beforeDOMElementCreation",{content:n,params:r}),_v({content:n,transform:ee(ee({},vr),i),title:A,extra:{attributes:d,styles:p,classes:["".concat(se.cssPrefix,"-layers-text")].concat(YA(c))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var a=r.title,i=r.transform,s=r.extra,A=null,l=null;if(mw){var c=parseInt(getComputedStyle(n).fontSize,10),u=n.getBoundingClientRect();A=u.width/c,l=u.height/c}return se.autoA11y&&!a&&(s.attributes["aria-hidden"]="true"),Promise.resolve([n,_v({content:n.innerHTML,width:A,height:l,transform:i,title:a,extra:s,watchable:!0})])}}},gF=new RegExp('"',"ug"),Iv=[1105920,1112319];function vF(e){var t=e.replace(gF,""),n=Tx(t,0),r=n>=Iv[0]&&n<=Iv[1],a=t.length===2?t[0]===t[1]:!1;return{value:Cp(a?t[0]:t),isSecondary:r||a}}function Tv(e,t){var n="".concat(sx).concat(t.replace(":","-"));return new Promise(function(r,a){if(e.getAttribute(n)!==null)return r();var i=Zs(e.children),s=i.filter(function(C){return C.getAttribute(_p)===t})[0],A=ja.getComputedStyle(e,t),l=A.getPropertyValue("font-family").match(ux),c=A.getPropertyValue("font-weight"),u=A.getPropertyValue("content");if(s&&!l)return e.removeChild(s),r();if(l&&u!=="none"&&u!==""){var d=A.getPropertyValue("content"),f=~["Sharp"].indexOf(l[2])?vt:it,p=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?wA[f][l[2].toLowerCase()]:dx[f][c],h=vF(d),g=h.value,B=h.isSecondary,m=l[0].startsWith("FontAwesome"),v=dm(p,g),w=v;if(m){var y=Nx(g);y.iconName&&y.prefix&&(v=y.iconName,p=y.prefix)}if(v&&!B&&(!s||s.getAttribute(sm)!==p||s.getAttribute(om)!==w)){e.setAttribute(n,w),s&&e.removeChild(s);var b=AF(),_=b.extra;_.attributes[_p]=t,Fp(v,p).then(function(C){var E=pm(ee(ee({},b),{},{icons:{main:C,mask:fm()},prefix:p,iconName:w,extra:_,watchable:!0})),S=st.createElement("svg");t==="::before"?e.insertBefore(S,e.firstChild):e.appendChild(S),S.outerHTML=E.map(function(D){return XA(D)}).join(`
|
|
804
|
-
`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function yF(e){return Promise.all([Tv(e,"::before"),Tv(e,"::after")])}function BF(e){return e.parentNode!==document.head&&!~Ax.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(_p)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Uv(e){if(ua)return new Promise(function(t,n){var r=Zs(e.querySelectorAll("*")).filter(BF).map(yF),a=hm.begin("searchPseudoElements");Mw(),Promise.all(r).then(function(){a(),Tp(),t()}).catch(function(){a(),Tp(),n()})})}var wF={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Uv,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?st:r;se.searchPseudoElements&&Uv(a)}}},Dv=!1,bF={mixout:function(){return{dom:{unwatch:function(){Mw(),Dv=!0}}}},hooks:function(){return{bootstrap:function(){Sv(Ep("mutationObserverCallbacks",{}))},noAuto:function(){aF()},watch:function(n){var r=n.observeMutationsRoot;Dv?Tp():Sv(Ep("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Qv=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),s=i[0],A=i.slice(1).join("-");if(s&&A==="h")return r.flipX=!0,r;if(s&&A==="v")return r.flipY=!0,r;if(A=parseFloat(A),isNaN(A))return r;switch(s){case"grow":r.size=r.size+A;break;case"shrink":r.size=r.size-A;break;case"left":r.x=r.x-A;break;case"right":r.x=r.x+A;break;case"up":r.y=r.y-A;break;case"down":r.y=r.y+A;break;case"rotate":r.rotate=r.rotate+A;break}return r},n)},_F={mixout:function(){return{parse:{transform:function(n){return Qv(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=Qv(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,s=n.iconWidth,A={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),c="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),u="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(c," ").concat(u)},f={transform:"translate(".concat(s/2*-1," -256)")},p={outer:A,inner:d,path:f};return{tag:"g",attributes:ee({},p.outer),children:[{tag:"g",attributes:ee({},p.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ee(ee({},r.icon.attributes),p.path)}]}]}}}},of={x:0,y:0,width:"100%",height:"100%"};function Lv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function CF(e){return e.tag==="g"?e.children:[e]}var kF={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Ju(a.split(" ").map(function(s){return s.trim()})):fm();return i.prefix||(i.prefix=Ya()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,s=n.mask,A=n.maskId,l=n.transform,c=i.width,u=i.icon,d=s.width,f=s.icon,p=_x({transform:l,containerWidth:d,iconWidth:c}),h={tag:"rect",attributes:ee(ee({},of),{},{fill:"white"})},g=u.children?{children:u.children.map(Lv)}:{},B={tag:"g",attributes:ee({},p.inner),children:[Lv(ee({tag:u.tag,attributes:ee(ee({},u.attributes),p.path)},g))]},m={tag:"g",attributes:ee({},p.outer),children:[B]},v="mask-".concat(A||CA()),w="clip-".concat(A||CA()),y={tag:"mask",attributes:ee(ee({},of),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,m]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:CF(f)},y]};return r.push(b,{tag:"rect",attributes:ee({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(v,")")},of)}),{children:r,attributes:a}}}},EF={provides:function(t){var n=!1;ja.matchMedia&&(n=ja.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:ee(ee({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=ee(ee({},i),{},{attributeName:"opacity"}),A={tag:"circle",attributes:ee(ee({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||A.children.push({tag:"animate",attributes:ee(ee({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ee(ee({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(A),r.push({tag:"path",attributes:ee(ee({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ee(ee({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ee(ee({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ee(ee({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},SF={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},xF=[Ex,fF,pF,hF,mF,wF,bF,_F,kF,EF,SF];Rx(xF,{mixoutsTo:Tn});Tn.noAuto;var Pw=Tn.config,Ov=Tn.library;Tn.dom;var ou=Tn.parse;Tn.findIconDefinition;Tn.toHtml;var FF=Tn.icon;Tn.layer;var IF=Tn.text;Tn.counter;var TF={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},UF=TF,DF={prefix:"fas",iconName:"sort-down",icon:[320,512,["sort-desc"],"f0dd","M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128z"]},QF={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},LF=QF,OF={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},MF=OF,NF={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},PF={prefix:"fas",iconName:"circle-chevron-down",icon:[512,512,["chevron-circle-down"],"f13a","M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM135 241c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l87 87 87-87c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 345c-9.4 9.4-24.6 9.4-33.9 0L135 241z"]},HF=PF,RF={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},VF={prefix:"fas",iconName:"share-nodes",icon:[448,512,["share-alt"],"f1e0","M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"]},KF={prefix:"fas",iconName:"hand",icon:[512,512,[129306,9995,"hand-paper"],"f256","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V336c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64H304c97.2 0 176-78.8 176-176V128c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V32z"]},$F=KF,zF={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},WF={prefix:"fas",iconName:"maximize",icon:[512,512,["expand-arrows-alt"],"f31e","M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2s14.8-12.5 14.8-22.2V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z"]},GF={prefix:"fas",iconName:"arrow-right-to-bracket",icon:[512,512,["sign-in"],"f090","M352 96l64 0c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c53 0 96-43 96-96l0-256c0-53-43-96-96-96l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-9.4 182.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L242.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"]},jF={prefix:"fas",iconName:"crown",icon:[576,512,[128081],"f521","M309 106c11.4-7 19-19.7 19-34c0-22.1-17.9-40-40-40s-40 17.9-40 40c0 14.4 7.6 27 19 34L209.7 220.6c-9.1 18.2-32.7 23.4-48.6 10.7L72 160c5-6.7 8-15 8-24c0-22.1-17.9-40-40-40S0 113.9 0 136s17.9 40 40 40c.2 0 .5 0 .7 0L86.4 427.4c5.5 30.4 32 52.6 63 52.6H426.6c30.9 0 57.4-22.1 63-52.6L535.3 176c.2 0 .5 0 .7 0c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40c0 9 3 17.3 8 24l-89.1 71.3c-15.9 12.7-39.5 7.5-48.6-10.7L309 106z"]},YF={prefix:"fas",iconName:"unlock",icon:[448,512,[128275],"f09c","M144 144c0-44.2 35.8-80 80-80c31.9 0 59.4 18.6 72.3 45.7c7.6 16 26.7 22.8 42.6 15.2s22.8-26.7 15.2-42.6C331 33.7 281.5 0 224 0C144.5 0 80 64.5 80 144v48H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V256c0-35.3-28.7-64-64-64H144V144z"]},qF={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z"]},XF={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6h96 32H424c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},JF={prefix:"fas",iconName:"newspaper",icon:[512,512,[128240],"f1ea","M96 96c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H80c-44.2 0-80-35.8-80-80V128c0-17.7 14.3-32 32-32s32 14.3 32 32V400c0 8.8 7.2 16 16 16s16-7.2 16-16V96zm64 24v80c0 13.3 10.7 24 24 24H296c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm208-8c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zM160 304c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},ZF={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"]},e5={prefix:"fas",iconName:"language",icon:[640,512,[],"f1ab","M0 128C0 92.7 28.7 64 64 64H256h48 16H576c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H320 304 256 64c-35.3 0-64-28.7-64-64V128zm320 0V384H576V128H320zM178.3 175.9c-3.2-7.2-10.4-11.9-18.3-11.9s-15.1 4.7-18.3 11.9l-64 144c-4.5 10.1 .1 21.9 10.2 26.4s21.9-.1 26.4-10.2l8.9-20.1h73.6l8.9 20.1c4.5 10.1 16.3 14.6 26.4 10.2s14.6-16.3 10.2-26.4l-64-144zM160 233.2L179 276H141l19-42.8zM448 164c11 0 20 9 20 20v4h44 16c11 0 20 9 20 20s-9 20-20 20h-2l-1.6 4.5c-8.9 24.4-22.4 46.6-39.6 65.4c.9 .6 1.8 1.1 2.7 1.6l18.9 11.3c9.5 5.7 12.5 18 6.9 27.4s-18 12.5-27.4 6.9l-18.9-11.3c-4.5-2.7-8.8-5.5-13.1-8.5c-10.6 7.5-21.9 14-34 19.4l-3.6 1.6c-10.1 4.5-21.9-.1-26.4-10.2s.1-21.9 10.2-26.4l3.6-1.6c6.4-2.9 12.6-6.1 18.5-9.8l-12.2-12.2c-7.8-7.8-7.8-20.5 0-28.3s20.5-7.8 28.3 0l14.6 14.6 .5 .5c12.4-13.1 22.5-28.3 29.8-45H448 376c-11 0-20-9-20-20s9-20 20-20h52v-4c0-11 9-20 20-20z"]},t5={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},n5={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7H336c-8.8 0-16-7.2-16-16V118.6c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},r5={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},a5=r5,i5={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},s5={prefix:"fas",iconName:"sort-up",icon:[320,512,["sort-asc"],"f0de","M182.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},o5={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},A5={prefix:"fas",iconName:"table-cells",icon:[512,512,["th"],"f00a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm88 64v64H64V96h88zm56 0h88v64H208V96zm240 0v64H360V96h88zM64 224h88v64H64V224zm232 0v64H208V224h88zm64 0h88v64H360V224zM152 352v64H64V352h88zm56 0h88v64H208V352zm240 0v64H360V352h88z"]},l5=A5,c5={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},u5=c5,d5={prefix:"fas",iconName:"camera",icon:[512,512,[62258,"camera-alt"],"f030","M149.1 64.8L138.7 96H64C28.7 96 0 124.7 0 160V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H373.3L362.9 64.8C356.4 45.2 338.1 32 317.4 32H194.6c-20.7 0-39 13.2-45.5 32.8zM256 192a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},f5={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},p5={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},h5=p5,m5={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},g5=m5,v5={prefix:"fas",iconName:"rotate-right",icon:[512,512,["redo-alt","rotate-forward"],"f2f9","M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"]},y5={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},B5=y5,w5={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},b5={prefix:"fas",iconName:"ranking-star",icon:[640,512,[],"e561","M353.8 54.1L330.2 6.3c-3.9-8.3-16.1-8.6-20.4 0L286.2 54.1l-52.3 7.5c-9.3 1.4-13.3 12.9-6.4 19.8l38 37-9 52.1c-1.4 9.3 8.2 16.5 16.8 12.2l46.9-24.8 46.6 24.4c8.6 4.3 18.3-2.9 16.8-12.2l-9-52.1 38-36.6c6.8-6.8 2.9-18.3-6.4-19.8l-52.3-7.5zM256 256c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32V288c0-17.7-14.3-32-32-32H256zM32 320c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H160c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zm416 96v64c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V416c0-17.7-14.3-32-32-32H480c-17.7 0-32 14.3-32 32z"]},_5={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M272 0H396.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128H192v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},C5={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},k5={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},E5=k5,S5={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},x5={prefix:"fas",iconName:"hammer",icon:[576,512,[128296],"f6e3","M413.5 237.5c-28.2 4.8-58.2-3.6-80-25.4l-38.1-38.1C280.4 159 272 138.8 272 117.6V105.5L192.3 62c-5.3-2.9-8.6-8.6-8.3-14.7s3.9-11.5 9.5-14l47.2-21C259.1 4.2 279 0 299.2 0h18.1c36.7 0 72 14 98.7 39.1l44.6 42c24.2 22.8 33.2 55.7 26.6 86L503 183l8-8c9.4-9.4 24.6-9.4 33.9 0l24 24c9.4 9.4 9.4 24.6 0 33.9l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-24-24c-9.4-9.4-9.4-24.6 0-33.9l8-8-17.5-17.5zM27.4 377.1L260.9 182.6c3.5 4.9 7.5 9.6 11.8 14l38.1 38.1c6 6 12.4 11.2 19.2 15.7L134.9 484.6c-14.5 17.4-36 27.4-58.6 27.4C34.1 512 0 477.8 0 435.7c0-22.6 10.1-44.1 27.4-58.6z"]},F5={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},I5=F5,T5={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},U5={prefix:"fas",iconName:"magnifying-glass-plus",icon:[512,512,["search-plus"],"f00e","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24V232h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H232V120c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"]},D5=U5,Q5={prefix:"fas",iconName:"books",icon:[512,512,[128218],"f5db","M0 32C0 14.3 14.3 0 32 0H96c17.7 0 32 14.3 32 32V96H0V32zm0 96H128V384H0V128zM0 416H128v64c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V416zM160 32c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32V96H160V32zm0 96H288V384H160V128zm0 288H288v64c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V416zm203.6-19.9L320 232.6V142.8l100.4-26.9 66 247.4L363.6 396.1zM412.2 85L320 109.6V11l36.9-9.9c16.9-4.6 34.4 5.5 38.9 22.6L412.2 85zM371.8 427l122.8-32.9 16.3 61.1c4.5 17-5.5 34.5-22.5 39.1l-61.4 16.5c-16.9 4.6-34.4-5.5-38.9-22.6L371.8 427z"]},L5={prefix:"fas",iconName:"treasure-chest",icon:[576,512,[],"f723","M0 160v96H128V32C57.3 32 0 89.3 0 160zM0 432c0 26.5 21.5 48 48 48h80V288H0V432zM416 288H352v32c0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32V288H160V480H416V288zM528 480c26.5 0 48-21.5 48-48V288H448V480h80zm48-320c0-70.7-57.3-128-128-128V256H576V160zM416 256V32H160V256h64V224c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32v32h64zM304 240c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16V240z"]},O5={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},M5={prefix:"fas",iconName:"chart-mixed",icon:[512,512,["analytics"],"f643","M500 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L319.4 151.5 211.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L12 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L192.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L500 89zM160 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM32 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm288-64c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V320c0-17.7-14.3-32-32-32zm96-32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32z"]},N5={prefix:"fas",iconName:"chart-simple-horizontal",icon:[448,512,[],"e474","M400 320c26.5 0 48-21.5 48-48l0-32c0-26.5-21.5-48-48-48L48 192c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l352 0zM208 480c26.5 0 48-21.5 48-48l0-32c0-26.5-21.5-48-48-48L48 352c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l160 0zM384 112l0-32c0-26.5-21.5-48-48-48L48 32C21.5 32 0 53.5 0 80l0 32c0 26.5 21.5 48 48 48l288 0c26.5 0 48-21.5 48-48z"]},P5={prefix:"fas",iconName:"cards-blank",icon:[640,512,[],"e4df","M27.8 118.8C1.2 134.2-7.9 168.2 7.5 194.9l167 289.3c15.4 26.6 49.4 35.8 76.1 20.4L443.4 393.2c26.6-15.4 35.8-49.4 20.4-76.1L296.8 27.8C281.4 1.2 247.3-7.9 220.7 7.5L27.8 118.8zM459.4 420.9L324.1 499c9.7 8.1 22.2 13 35.9 13H584c30.9 0 56-25.1 56-56V120c0-30.9-25.1-56-56-56H360c-1.8 0-3.5 .1-5.3 .2L491.5 301.1c24.2 41.9 9.8 95.6-32.1 119.8z"]},H5={prefix:"fab",iconName:"discord",icon:[640,512,[],"f392","M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"]},R5={prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"]},V5={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"]},K5={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function $5(){Ov.add(HF,w5,D5,t5,E5,C5,f5,u5,i5,T5,a5,ZF,s5,DF,RF,YF,NF,B5,e5,l5,WF,_5,$F,n5,MF,UF,g5,K5,XF,V5,R5,H5,LF,I5,h5,VF,qF,P5,L5,JF,M5,Q5,b5,x5,N5,O5,GF,v5,d5,o5,S5,jF,zF),Ov.add({prefix:"fak",iconName:"chart-decks",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zM352 464c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16z"]},{prefix:"fak",iconName:"chart-cards",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm480-96c0-16-16-32-32-32H448c-16 0-32.6 16-32.6 32s0 176 .6 192s16 32 32 32h96c16 0 32-16 32-32V256z"]},{prefix:"fak",iconName:"chart-decks-2",icon:[603,512,[],"","M467.1 210.8c4.3 0-60.2 0 15.1 0C467.8 108.4 377.7 0 271.4 0c-5.1 0-10.1 .2-15.1 .6V225.9h75.3c0-15.1 45.2-15.1 135.5-15.1zM301.5 346.4c0-27.1 0-45.2 0-75.3H211.1V30.6C93.4 38.4 .3 136.3 .3 256c0 124.8 101.2 225.9 225.9 225.9c41.2 0 42.1 4.2 75.3-15.1c0-45.2 0-80.5 0-120.5zm45.2 105.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1z"]},{prefix:"fak",iconName:"chart-cards-2",icon:[603,512,[],"","M376.8 195.8c28.3-14.2 60.2 0 75.3 30.1h60.2c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2V256c0 24.9 20.2 45.2 45.2 45.2H256.3c-15.1-30.1 15.1-45.2 15.1-45.2s75.3-45.2 105.4-60.2zm-90.4 256c12.8 0 45.2 0 45.2 0L271.4 331.3H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H286.4zM452.1 105.4V75.3c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H406.9c24.9 0 45.2-20.2 45.2-45.2zM285.8 273.7c-13.8 8.2-18.5 26.2-10.5 40.3l86.4 153.2c8 14.1 25.6 19 39.4 10.8l99.8-59c13.8-8.2 18.5-26.2 10.6-40.3L425 225.5c-8-14.1-25.6-18.9-39.4-10.7l-99.9 58.9zM509.2 433.7l-70 41.3c5 4.3 11.5 6.9 18.6 6.9h116c16 0 29-13.3 29-29.6V274.4c0-16.4-13-29.6-29-29.6h-116c-.9 0-1.8 .1-2.7 .1l70.8 125.4c12.5 22.2 5.1 50.6-16.6 63.4z"]})}const Hw=ca.defineStore("searchBarOptions",{state:()=>({cardOptions:[],playerOptions:[]}),actions:{addOption(e){if(e.type==="card"){if(this.cardOptions.findIndex(t=>t.link===e.link)!==-1){console.log("Repeat Link",e);return}this.cardOptions.length>=5&&this.cardOptions.shift(),this.cardOptions.push(e)}else{if(this.playerOptions.findIndex(t=>t.link===e.link)!==-1){console.log("Repeat Link",e);return}this.playerOptions.length>=5&&this.playerOptions.shift(),this.playerOptions.push(e)}this.sync()},startup(){this.cardOptions=JSON.parse(localStorage.getItem("search-bar-options-card")??"[]"),this.playerOptions=JSON.parse(localStorage.getItem("search-bar-options-player")??"[]")},sync(){localStorage.setItem("search-bar-options-card",JSON.stringify(this.cardOptions)),localStorage.setItem("search-bar-options-player",JSON.stringify(this.playerOptions))}}}),z5=ca.defineStore("filters",{state:()=>({filters:{}}),actions:{update(e){for(let t in e)this.filters[t]=e[t];this.sync()},startup(){this.filters=JSON.parse(localStorage.getItem("filters")??"{}")},sync(){localStorage.setItem("filters",JSON.stringify(this.filters))}}}),Rw=ca.defineStore("cardJson",{state:()=>({cardJson:[]}),actions:{update(e){this.cardJson=e}}});function Mv(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function gm(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Mv(t[n])&&Mv(e[n])&&Object.keys(t[n]).length>0&&gm(e[n],t[n])})}const Vw={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function zi(){const e=typeof document<"u"?document:{};return gm(e,Vw),e}const W5={document:Vw,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Un(){const e=typeof window<"u"?window:{};return gm(e,W5),e}function G5(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Up(e,t=0){return setTimeout(e,t)}function Au(){return Date.now()}function j5(e){const t=Un();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function Y5(e,t="x"){const n=Un();let r,a,i;const s=j5(e);return n.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(A=>A.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=i.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=i.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function Rl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function q5(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Cn(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!q5(a)){const i=Object.keys(Object(a)).filter(s=>n.indexOf(s)<0);for(let s=0,A=i.length;s<A;s+=1){const l=i[s],c=Object.getOwnPropertyDescriptor(a,l);c!==void 0&&c.enumerable&&(Rl(t[l])&&Rl(a[l])?a[l].__swiper__?t[l]=a[l]:Cn(t[l],a[l]):!Rl(t[l])&&Rl(a[l])?(t[l]={},a[l].__swiper__?t[l]=a[l]:Cn(t[l],a[l])):t[l]=a[l])}}}return t}function Vl(e,t,n){e.style.setProperty(t,n)}function Kw({swiper:e,targetPosition:t,side:n}){const r=Un(),a=-e.translate;let i=null,s;const A=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>a?"next":"prev",c=(d,f)=>l==="next"&&d>=f||l==="prev"&&d<=f,u=()=>{s=new Date().getTime(),i===null&&(i=s);const d=Math.max(Math.min((s-i)/A,1),0),f=.5-Math.cos(d*Math.PI)/2;let p=a+f*(t-a);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function yr(e,t=""){return[...e.children].filter(n=>n.matches(t))}function $w(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function X5(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function J5(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Fa(e,t){return Un().getComputedStyle(e,null).getPropertyValue(t)}function Nv(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Z5(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Pv(e,t,n){const r=Un();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Af;function e8(){const e=Un(),t=zi();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function zw(){return Af||(Af=e8()),Af}let lf;function t8({userAgent:e}={}){const t=zw(),n=Un(),r=n.navigator.platform,a=e||n.navigator.userAgent,i={ios:!1,android:!1},s=n.screen.width,A=n.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/);let c=a.match(/(iPad).*OS\s([\d_]+)/);const u=a.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r==="Win32";let p=r==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&h.indexOf(`${s}x${A}`)>=0&&(c=a.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!f&&(i.os="android",i.android=!0),(c||d||u)&&(i.os="ios",i.ios=!0),i}function n8(e={}){return lf||(lf=t8(e)),lf}let cf;function r8(){const e=Un();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[a,i]=r.split("Version/")[1].split(" ")[0].split(".").map(s=>Number(s));t=a<16||a===16&&i<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function a8(){return cf||(cf=r8()),cf}function i8({swiper:e,on:t,emit:n}){const r=Un();let a=null,i=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},A=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(u=>{i=r.requestAnimationFrame(()=>{const{width:d,height:f}=e;let p=d,h=f;u.forEach(({contentBoxSize:g,contentRect:B,target:m})=>{m&&m!==e.el||(p=B?B.width:(g[0]||g).inlineSize,h=B?B.height:(g[0]||g).blockSize)}),(p!==d||h!==f)&&s()})}),a.observe(e.el))},l=()=>{i&&r.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){A();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",c)})}function s8({swiper:e,extendParams:t,on:n,emit:r}){const a=[],i=Un(),s=(c,u={})=>{const d=i.MutationObserver||i.WebkitMutationObserver,f=new d(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const h=function(){r("observerUpdate",p[0])};i.requestAnimationFrame?i.requestAnimationFrame(h):i.setTimeout(h,0)});f.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:typeof u.childList>"u"?!0:u.childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),a.push(f)},A=()=>{if(e.params.observer){if(e.params.observeParents){const c=Z5(e.el);for(let u=0;u<c.length;u+=1)s(c[u])}s(e.el,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},l=()=>{a.forEach(c=>{c.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",A),n("destroy",l)}const o8={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...i){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,i)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(A=>{A.apply(a,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(A=>{A.apply(a,r)})}),t}};function A8(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Fa(r,"padding-left")||0,10)-parseInt(Fa(r,"padding-right")||0,10),n=n-parseInt(Fa(r,"padding-top")||0,10)-parseInt(Fa(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function l8(){const e=this;function t(T){return e.isHorizontal()?T:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[T]}function n(T,F){return parseFloat(T.getPropertyValue(t(F))||0)}const r=e.params,{wrapperEl:a,slidesEl:i,size:s,rtlTranslate:A,wrongRTL:l}=e,c=e.virtual&&r.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=yr(i,`.${e.params.slideClass}, swiper-slide`),f=c?e.virtual.slides.length:d.length;let p=[];const h=[],g=[];let B=r.slidesOffsetBefore;typeof B=="function"&&(B=r.slidesOffsetBefore.call(e));let m=r.slidesOffsetAfter;typeof m=="function"&&(m=r.slidesOffsetAfter.call(e));const v=e.snapGrid.length,w=e.slidesGrid.length;let y=r.spaceBetween,b=-B,_=0,C=0;if(typeof s>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*s:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y,d.forEach(T=>{A?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(Vl(a,"--swiper-centered-offset-before",""),Vl(a,"--swiper-centered-offset-after",""));const E=r.grid&&r.grid.rows>1&&e.grid;E&&e.grid.initSlides(f);let S;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(T=>typeof r.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<f;T+=1){S=0;let F;if(d[T]&&(F=d[T]),E&&e.grid.updateSlide(T,F,f,t),!(d[T]&&Fa(F,"display")==="none")){if(r.slidesPerView==="auto"){D&&(d[T].style[t("width")]="");const U=getComputedStyle(F),Y=F.style.transform,X=F.style.webkitTransform;if(Y&&(F.style.transform="none"),X&&(F.style.webkitTransform="none"),r.roundLengths)S=e.isHorizontal()?Pv(F,"width",!0):Pv(F,"height",!0);else{const j=n(U,"width"),K=n(U,"padding-left"),Ae=n(U,"padding-right"),$=n(U,"margin-left"),ie=n(U,"margin-right"),ce=U.getPropertyValue("box-sizing");if(ce&&ce==="border-box")S=j+$+ie;else{const{clientWidth:Be,offsetWidth:xe}=F;S=j+K+Ae+$+ie+(xe-Be)}}Y&&(F.style.transform=Y),X&&(F.style.webkitTransform=X),r.roundLengths&&(S=Math.floor(S))}else S=(s-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(S=Math.floor(S)),d[T]&&(d[T].style[t("width")]=`${S}px`);d[T]&&(d[T].swiperSlideSize=S),g.push(S),r.centeredSlides?(b=b+S/2+_/2+y,_===0&&T!==0&&(b=b-s/2-y),T===0&&(b=b-s/2-y),Math.abs(b)<1/1e3&&(b=0),r.roundLengths&&(b=Math.floor(b)),C%r.slidesPerGroup===0&&p.push(b),h.push(b)):(r.roundLengths&&(b=Math.floor(b)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&p.push(b),h.push(b),b=b+S+y),e.virtualSize+=S+y,_=S,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+m,A&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(a.style.width=`${e.virtualSize+y}px`),r.setWrapperSize&&(a.style[t("width")]=`${e.virtualSize+y}px`),E&&e.grid.updateWrapperSize(S,p,t),!r.centeredSlides){const T=[];for(let F=0;F<p.length;F+=1){let U=p[F];r.roundLengths&&(U=Math.floor(U)),p[F]<=e.virtualSize-s&&T.push(U)}p=T,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(c&&r.loop){const T=g[0]+y;if(r.slidesPerGroup>1){const F=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),U=T*r.slidesPerGroup;for(let Y=0;Y<F;Y+=1)p.push(p[p.length-1]+U)}for(let F=0;F<e.virtual.slidesBefore+e.virtual.slidesAfter;F+=1)r.slidesPerGroup===1&&p.push(p[p.length-1]+T),h.push(h[h.length-1]+T),e.virtualSize+=T}if(p.length===0&&(p=[0]),y!==0){const T=e.isHorizontal()&&A?"marginLeft":t("marginRight");d.filter((F,U)=>!r.cssMode||r.loop?!0:U!==d.length-1).forEach(F=>{F.style[T]=`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let T=0;g.forEach(U=>{T+=U+(y||0)}),T-=y;const F=T-s;p=p.map(U=>U<0?-B:U>F?F+m:U)}if(r.centerInsufficientSlides){let T=0;if(g.forEach(F=>{T+=F+(y||0)}),T-=y,T<s){const F=(s-T)/2;p.forEach((U,Y)=>{p[Y]=U-F}),h.forEach((U,Y)=>{h[Y]=U+F})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Vl(a,"--swiper-centered-offset-before",`${-p[0]}px`),Vl(a,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const T=-e.snapGrid[0],F=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(U=>U+T),e.slidesGrid=e.slidesGrid.map(U=>U+F)}if(f!==u&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==w&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const T=`${r.containerModifierClass}backface-hidden`,F=e.el.classList.contains(T);f<=r.maxBackfaceHiddenSlides?F||e.el.classList.add(T):F&&e.el.classList.remove(T)}}function c8(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=A=>r?t.slides[t.getSlideIndexByData(A)]:t.slides[A];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(A=>{n.push(A)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const A=t.activeIndex+i;if(A>t.slides.length&&!r)break;n.push(s(A))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const A=n[i].offsetHeight;a=A>a?A:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function u8(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function d8(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;a&&(s=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let A=n.spaceBetween;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*t.size:typeof A=="string"&&(A=parseFloat(A));for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const d=(s+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+A),f=(s-i[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+A),p=-(s-u),h=p+t.slidesSizesGrid[l];(p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=a?-d:d,c.originalProgress=a?-f:f}}function f8(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:s,progressLoop:A}=t;const l=i,c=s;if(r===0)a=0,i=!0,s=!0;else{a=(e-t.minTranslate())/r;const u=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;i=u||a<=0,s=d||a>=1,u&&(a=0),d&&(a=1)}if(n.loop){const u=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[u],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],g=Math.abs(e);g>=f?A=(g-f)/h:A=(g+h-p)/h,A>1&&(A-=1)}Object.assign(t,{progress:a,progressLoop:A,isBeginning:i,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!i||c&&!s)&&t.emit("fromEdge"),t.emit("progress",a)}function p8(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,i=e.virtual&&n.virtual.enabled,s=l=>yr(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let A;if(i)if(n.loop){let l=a-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),A=s(`[data-swiper-slide-index="${l}"]`)}else A=s(`[data-swiper-slide-index="${a}"]`);else A=t[a];if(A){A.classList.add(n.slideActiveClass);let l=J5(A,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=X5(A,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const Nc=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const a=r.querySelector(`.${e.params.lazyPreloaderClass}`);a&&a.remove()}},Hv=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Dp=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex,i=a+r-1;if(e.params.rewind)for(let s=a-t;s<=i+t;s+=1){const A=(s%n+n)%n;A!==a&&A>i&&Hv(e,A)}else for(let s=Math.max(i-t,0);s<=Math.min(i+t,n-1);s+=1)s!==a&&s>i&&Hv(e,s)};function h8(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?a=i:r>=t[i]&&r<t[i+1]&&(a=i+1):r>=t[i]&&(a=i);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function m8(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:i,realIndex:s,snapIndex:A}=t;let l=e,c;const u=f=>{let p=f-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof l>"u"&&(l=h8(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const f=Math.min(a.slidesPerGroupSkip,l);c=f+Math.floor((l-f)/a.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===i){c!==A&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(l));return}let d;t.virtual&&a.virtual.enabled&&a.loop?d=u(l):t.slides[l]?d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):d=l,Object.assign(t,{previousSnapIndex:A,snapIndex:c,previousRealIndex:s,realIndex:d,previousIndex:i,activeIndex:l}),t.initialized&&Dp(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function g8(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let a=!1,i;if(r){for(let s=0;s<t.slides.length;s+=1)if(t.slides[s]===r){a=!0,i=s;break}}if(r&&a)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=i;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const v8={updateSize:A8,updateSlides:l8,updateAutoHeight:c8,updateSlidesOffset:u8,updateSlidesProgress:d8,updateProgress:f8,updateSlidesClasses:p8,updateActiveIndex:m8,updateClickedSlide:g8};function y8(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:i}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let s=Y5(i,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function B8(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:i,progress:s}=n;let A=0,l=0;const c=0;n.isHorizontal()?A=r?-e:e:l=e,a.roundLengths&&(A=Math.floor(A),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?A:l,a.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-A:-l:a.virtualTranslate||(n.isHorizontal()?A-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${A}px, ${l}px, ${c}px)`);let u;const d=n.maxTranslate()-n.minTranslate();d===0?u=0:u=(e-n.minTranslate())/d,u!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function w8(){return-this.snapGrid[0]}function b8(){return-this.snapGrid[this.snapGrid.length-1]}function _8(e=0,t=this.params.speed,n=!0,r=!0,a){const i=this,{params:s,wrapperEl:A}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const l=i.minTranslate(),c=i.maxTranslate();let u;if(r&&e>l?u=l:r&&e<c?u=c:u=e,i.updateProgress(u),s.cssMode){const d=i.isHorizontal();if(t===0)A[d?"scrollLeft":"scrollTop"]=-u;else{if(!i.support.smoothScroll)return Kw({swiper:i,targetPosition:-u,side:d?"left":"top"}),!0;A.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(u),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(u),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(f){!i||i.destroyed||f.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}const C8={getTranslate:y8,setTranslate:B8,minTranslate:w8,maxTranslate:b8,translateTo:_8};function k8(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function Ww({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:i}=e;let s=n;if(s||(a>i?s="next":a<i?s="prev":s="reset"),e.emit(`transition${r}`),t&&a!==i){if(s==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function E8(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Ww({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function S8(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Ww({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const x8={setTransition:k8,transitionStart:E8,transitionEnd:S8};function F8(e=0,t=this.params.speed,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;s<0&&(s=0);const{params:A,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=i;if(i.animating&&A.preventInteractionOnTransition||!h&&!r&&!a)return!1;const g=Math.min(i.params.slidesPerGroupSkip,s);let B=g+Math.floor((s-g)/i.params.slidesPerGroup);B>=l.length&&(B=l.length-1);const m=-l[B];if(A.normalizeSlideIndex)for(let w=0;w<c.length;w+=1){const y=-Math.floor(m*100),b=Math.floor(c[w]*100),_=Math.floor(c[w+1]*100);typeof c[w+1]<"u"?y>=b&&y<_-(_-b)/2?s=w:y>=b&&y<_&&(s=w+1):y>=b&&(s=w)}if(i.initialized&&s!==d&&(!i.allowSlideNext&&m<i.translate&&m<i.minTranslate()||!i.allowSlidePrev&&m>i.translate&&m>i.maxTranslate()&&(d||0)!==s))return!1;s!==(u||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(m);let v;if(s>d?v="next":s<d?v="prev":v="reset",f&&-m===i.translate||!f&&m===i.translate)return i.updateActiveIndex(s),A.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),A.effect!=="slide"&&i.setTranslate(m),v!=="reset"&&(i.transitionStart(n,v),i.transitionEnd(n,v)),!1;if(A.cssMode){const w=i.isHorizontal(),y=f?m:-m;if(t===0){const b=i.virtual&&i.params.virtual.enabled;b&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),b&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[w?"scrollLeft":"scrollTop"]=y})):p[w?"scrollLeft":"scrollTop"]=y,b&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return Kw({swiper:i,targetPosition:y,side:w?"left":"top"}),!0;p.scrollTo({[w?"left":"top"]:y,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(m),i.updateActiveIndex(s),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,v),t===0?i.transitionEnd(n,v):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(y){!i||i.destroyed||y.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,v))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function I8(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;let i=e;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?i=i+a.virtual.slidesBefore:i=a.getSlideIndexByData(i)),a.slideTo(i,t,n,r)}function T8(e=this.params.speed,t=!0,n){const r=this,{enabled:a,params:i,animating:s}=r;if(!a)return r;let A=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(A=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<i.slidesPerGroupSkip?1:A,c=r.virtual&&i.virtual.enabled;if(i.loop){if(s&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function U8(e=this.params.speed,t=!0,n){const r=this,{params:a,snapGrid:i,slidesGrid:s,rtlTranslate:A,enabled:l,animating:c}=r;if(!l)return r;const u=r.virtual&&a.virtual.enabled;if(a.loop){if(c&&!u&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=A?r.translate:-r.translate;function f(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}const p=f(d),h=i.map(m=>f(m));let g=i[h.indexOf(p)-1];if(typeof g>"u"&&a.cssMode){let m;i.forEach((v,w)=>{p>=v&&(m=w)}),typeof m<"u"&&(g=i[m>0?m-1:m])}let B=0;if(typeof g<"u"&&(B=s.indexOf(g),B<0&&(B=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(B=B-r.slidesPerViewDynamic("previous",!0)+1,B=Math.max(B,0))),a.rewind&&r.isBeginning){const m=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(m,e,t,n)}return r.slideTo(B,e,t,n)}function D8(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function Q8(e=this.params.speed,t=!0,n,r=.5){const a=this;let i=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,i),A=s+Math.floor((i-s)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[A]){const c=a.snapGrid[A],u=a.snapGrid[A+1];l-c>(u-c)*r&&(i+=a.params.slidesPerGroup)}else{const c=a.snapGrid[A-1],u=a.snapGrid[A];l-c<=(u-c)*r&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,n)}function L8(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.clickedIndex,i;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(yr(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Up(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(yr(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Up(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}const O8={slideTo:F8,slideToLoop:I8,slideNext:T8,slidePrev:U8,slideReset:D8,slideToClosest:Q8,slideToClickedSlide:L8};function M8(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;yr(r,`.${n.slideClass}, swiper-slide`).forEach((i,s)=>{i.setAttribute("data-swiper-slide-index",s)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function N8({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,byController:i,byMousewheel:s}={}){const A=this;if(!A.params.loop)return;A.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:u,slidesEl:d,params:f}=A;if(A.allowSlidePrev=!0,A.allowSlideNext=!0,A.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&A.snapIndex===0?A.slideTo(A.virtual.slides.length,0,!1,!0):f.centeredSlides&&A.snapIndex<f.slidesPerView?A.slideTo(A.virtual.slides.length+A.snapIndex,0,!1,!0):A.snapIndex===A.snapGrid.length-1&&A.slideTo(A.virtual.slidesBefore,0,!1,!0)),A.allowSlidePrev=c,A.allowSlideNext=u,A.emit("loopFix");return}const p=f.slidesPerView==="auto"?A.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let h=f.loopedSlides||p;h%f.slidesPerGroup!==0&&(h+=f.slidesPerGroup-h%f.slidesPerGroup),A.loopedSlides=h;const g=[],B=[];let m=A.activeIndex;typeof a>"u"?a=A.getSlideIndex(A.slides.filter(_=>_.classList.contains(f.slideActiveClass))[0]):m=a;const v=n==="next"||!n,w=n==="prev"||!n;let y=0,b=0;if(a<h){y=Math.max(h-a,f.slidesPerGroup);for(let _=0;_<h-a;_+=1){const C=_-Math.floor(_/l.length)*l.length;g.push(l.length-C-1)}}else if(a>A.slides.length-h*2){b=Math.max(a-(A.slides.length-h*2),f.slidesPerGroup);for(let _=0;_<b;_+=1){const C=_-Math.floor(_/l.length)*l.length;B.push(C)}}if(w&&g.forEach(_=>{A.slides[_].swiperLoopMoveDOM=!0,d.prepend(A.slides[_]),A.slides[_].swiperLoopMoveDOM=!1}),v&&B.forEach(_=>{A.slides[_].swiperLoopMoveDOM=!0,d.append(A.slides[_]),A.slides[_].swiperLoopMoveDOM=!1}),A.recalcSlides(),f.slidesPerView==="auto"&&A.updateSlides(),f.watchSlidesProgress&&A.updateSlidesOffset(),t){if(g.length>0&&w)if(typeof e>"u"){const _=A.slidesGrid[m],E=A.slidesGrid[m+y]-_;s?A.setTranslate(A.translate-E):(A.slideTo(m+y,0,!1,!0),r&&(A.touches[A.isHorizontal()?"startX":"startY"]+=E))}else r&&A.slideToLoop(e,0,!1,!0);else if(B.length>0&&v)if(typeof e>"u"){const _=A.slidesGrid[m],E=A.slidesGrid[m-b]-_;s?A.setTranslate(A.translate-E):(A.slideTo(m-b,0,!1,!0),r&&(A.touches[A.isHorizontal()?"startX":"startY"]+=E))}else A.slideToLoop(e,0,!1,!0)}if(A.allowSlidePrev=c,A.allowSlideNext=u,A.controller&&A.controller.control&&!i){const _={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(A.controller.control)?A.controller.control.forEach(C=>{!C.destroyed&&C.params.loop&&C.loopFix(_)}):A.controller.control instanceof A.constructor&&A.controller.control.params.loop&&A.controller.control.loopFix(_)}A.emit("loopFix")}function P8(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const H8={loopCreate:M8,loopFix:N8,loopDestroy:P8};function R8(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function V8(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const K8={setGrabCursor:R8,unsetGrabCursor:V8};function $8(e,t=this){function n(r){if(!r||r===zi()||r===Un())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function z8(e){const t=this,n=zi(),r=Un(),a=t.touchEventsData;a.evCache.push(e);const{params:i,touches:s,enabled:A}=t;if(!A||!i.simulateTouch&&e.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(i.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||a.isTouched&&a.isMoved)return;const u=!!i.noSwipingClass&&i.noSwipingClass!=="",d=e.composedPath?e.composedPath():e.path;u&&l.target&&l.target.shadowRoot&&d&&(c=d[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,p=!!(l.target&&l.target.shadowRoot);if(i.noSwiping&&(p?$8(f,c):c.closest(f))){t.allowClick=!0;return}if(i.swipeHandler&&!c.closest(i.swipeHandler))return;s.currentX=l.pageX,s.currentY=l.pageY;const h=s.currentX,g=s.currentY,B=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,m=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(B&&(h<=m||h>=r.innerWidth-m))if(B==="prevent")e.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=h,s.startY=g,a.touchStartTime=Au(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let v=!0;c.matches(a.focusableElements)&&(v=!1,c.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const w=v&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||w)&&!c.isContentEditable&&l.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function W8(e){const t=zi(),n=this,r=n.touchEventsData,{params:a,touches:i,rtlTranslate:s,enabled:A}=n;if(!A||!a.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=r.evCache.findIndex(_=>_.pointerId===l.pointerId);c>=0&&(r.evCache[c]=l);const u=r.evCache.length>1?r.evCache[0]:l,d=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){i.startX=d,i.startY=f;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:d,startY:f,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:d,currentY:f}),r.touchStartTime=Au());return}if(a.touchReleaseOnEdges&&!a.loop){if(n.isVertical()){if(f<i.startY&&n.translate<=n.maxTranslate()||f>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(d<i.startX&&n.translate<=n.maxTranslate()||d>i.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;i.currentX=d,i.currentY=f;const p=i.currentX-i.startX,h=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let _;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:p*p+h*h>=25&&(_=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?_>a.touchAngle:90-_>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&l.cancelable&&l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation();let g=n.isHorizontal()?p:h,B=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(g=Math.abs(g)*(s?1:-1),B=Math.abs(B)*(s?1:-1)),i.diff=g,g*=a.touchRatio,s&&(g=-g,B=-B);const m=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=B>0?"prev":"next";const v=n.params.loop&&!a.cssMode;if(!r.isMoved){if(v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const _=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(_)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let w;r.isMoved&&m!==n.touchesDirection&&v&&Math.abs(g)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),w=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let y=!0,b=a.resistanceRatio;if(a.touchReleaseOnEdges&&(b=0),g>0?(v&&!w&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**b))):g<0&&(v&&!w&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-g)**b))),y&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(g)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function G8(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(w=>w.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:a,touches:i,rtlTranslate:s,slidesGrid:A,enabled:l}=t;if(!l||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=Au(),d=u-n.touchStartTime;if(t.allowClick){const w=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(w&&w[0]||c.target),t.emit("tap click",c),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Au(),Up(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(a.followFinger?f=s?t.translate:-t.translate:f=-n.currentTranslate,a.cssMode)return;if(t.params.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=0,h=t.slidesSizesGrid[0];for(let w=0;w<A.length;w+=w<a.slidesPerGroupSkip?1:a.slidesPerGroup){const y=w<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof A[w+y]<"u"?f>=A[w]&&f<A[w+y]&&(p=w,h=A[w+y]-A[w]):f>=A[w]&&(p=w,h=A[A.length-1]-A[A.length-2])}let g=null,B=null;a.rewind&&(t.isBeginning?B=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const m=(f-A[p])/h,v=p<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(m>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:p+v):t.slideTo(p)),t.swipeDirection==="prev"&&(m>1-a.longSwipesRatio?t.slideTo(p+v):B!==null&&m<0&&Math.abs(m)>a.longSwipesRatio?t.slideTo(B):t.slideTo(p))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+v):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:p+v),t.swipeDirection==="prev"&&t.slideTo(B!==null?B:p))}}function Rv(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:i}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const A=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!A?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function j8(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Y8(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function q8(e){const t=this;Nc(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let Vv=!1;function X8(){}const Gw=(e,t)=>{const n=zi(),{params:r,el:a,wrapperEl:i,device:s}=e,A=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;a[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:A}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[l]("click",e.onClick,!0),r.cssMode&&i[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Rv,!0):e[c]("observerUpdate",Rv,!0),a[l]("load",e.onLoad,{capture:!0})};function J8(){const e=this,t=zi(),{params:n}=e;e.onTouchStart=z8.bind(e),e.onTouchMove=W8.bind(e),e.onTouchEnd=G8.bind(e),n.cssMode&&(e.onScroll=Y8.bind(e)),e.onClick=j8.bind(e),e.onLoad=q8.bind(e),Vv||(t.addEventListener("touchstart",X8),Vv=!0),Gw(e,"on")}function Z8(){Gw(this,"off")}const e6={attachEvents:J8,detachEvents:Z8},Kv=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function t6(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const s=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const l=(s in i?i[s]:void 0)||e.originalParams,c=Kv(e,r),u=Kv(e,l),d=r.enabled;c&&!u?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(a.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(g=>{const B=r[g]&&r[g].enabled,m=l[g]&&l[g].enabled;B&&!m&&e[g].disable(),!B&&m&&e[g].enable()});const f=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);f&&n&&e.changeDirection(),Cn(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!h?e.disable():!d&&h&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function n6(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=Un(),i=t==="window"?a.innerHeight:n.clientHeight,s=Object.keys(e).map(A=>{if(typeof A=="string"&&A.indexOf("@")===0){const l=parseFloat(A.substr(1));return{value:i*l,point:A}}return{value:A,point:A}});s.sort((A,l)=>parseInt(A.value,10)-parseInt(l.value,10));for(let A=0;A<s.length;A+=1){const{point:l,value:c}=s[A];t==="window"?a.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}const r6={setBreakpoint:t6,getBreakpoint:n6};function a6(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function i6(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:i}=e,s=a6(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),a.classList.add(...t),e.emitContainerClasses()}function s6(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const o6={addClasses:i6,removeClasses:s6};function A6(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const l6={checkOverflow:A6},$v={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function c6(e,t){return function(r={}){const a=Object.keys(r)[0],i=r[a];if(typeof i!="object"||i===null){Cn(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&e[a]===!0&&(e[a]={auto:!0}),!(a in e&&"enabled"in i)){Cn(t,r);return}e[a]===!0&&(e[a]={enabled:!0}),typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),Cn(t,r)}}const uf={eventsEmitter:o8,update:v8,translate:C8,transition:x8,slide:O8,loop:H8,grabCursor:K8,events:e6,breakpoints:r6,checkOverflow:l6,classes:o6},df={};let kA=class Pr{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=Cn({},r),n&&!r.el&&(r.el=n);const a=zi();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const l=[];return a.querySelectorAll(r.el).forEach(c=>{const u=Cn({},r,{el:c});l.push(new Pr(u))}),l}const i=this;i.__swiper__=!0,i.support=zw(),i.device=n8({userAgent:r.userAgent}),i.browser=a8(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const s={};i.modules.forEach(l=>{l({params:r,swiper:i,extendParams:c6(r,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const A=Cn({},$v,s);return i.params=Cn({},A,df,r),i.originalParams=Cn({},i.params),i.passedParams=Cn({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(l=>{i.on(l,i.params.on[l])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=yr(n,`.${r.slideClass}, swiper-slide`),i=Nv(a[0]);return Nv(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=yr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),s=(r.maxTranslate()-a)*t+a;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:i,slidesGrid:s,slidesSizesGrid:A,size:l,activeIndex:c}=r;let u=1;if(a.centeredSlides){let d=i[c].swiperSlideSize,f;for(let p=c+1;p<i.length;p+=1)i[p]&&!f&&(d+=i[p].swiperSlideSize,u+=1,d>l&&(f=!0));for(let p=c-1;p>=0;p-=1)i[p]&&!f&&(d+=i[p].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(t==="current")for(let d=c+1;d<i.length;d+=1)(n?s[d]+A[d]-s[c]<l:s[d]-s[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)s[c]-s[d]<l&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Nc(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const s=t.rtlTranslate?t.translate*-1:t.translate,A=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(A),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(t.params.freeMode&&t.params.freeMode.enabled)a(),t.params.autoHeight&&t.updateAutoHeight();else{if((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides){const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(s.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):yr(r,a())[0])();return!s&&n.params.createElements&&(s=$w("div",n.params.wrapperClass),r.append(s),yr(r,`.${n.params.slideClass}`).forEach(A=>{s.append(A)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement?r:s,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Fa(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Fa(r,"direction")==="rtl"),wrongRTL:Fa(s,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete?Nc(n,a):a.addEventListener("load",i=>{Nc(n,i.target)})}),Dp(n),n.initialized=!0,Dp(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:a,el:i,wrapperEl:s,slides:A}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),i.removeAttribute("style"),s.removeAttribute("style"),A&&A.length&&A.forEach(l=>{l.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,G5(r)),r.destroyed=!0),null}static extendDefaults(t){Cn(df,t)}static get extendedDefaults(){return df}static get defaults(){return $v}static installModule(t){Pr.prototype.__modules__||(Pr.prototype.__modules__=[]);const n=Pr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Pr.installModule(n)),Pr):(Pr.installModule(t),Pr)}};Object.keys(uf).forEach(e=>{Object.keys(uf[e]).forEach(t=>{kA.prototype[t]=uf[e][t]})});kA.use([i8,s8]);function u6(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let i=yr(e.el,`.${r[a]}`)[0];i||(i=$w("div",r[a]),i.className=r[a],e.el.append(i)),n[a]=i,t[a]=i}}),n}function d6({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const a=h=>(Array.isArray(h)||(h=[h].filter(g=>!!g)),h);function i(h){let g;return h&&typeof h=="string"&&e.isElement&&(g=e.el.shadowRoot.querySelector(h),g)?g:(h&&(typeof h=="string"&&(g=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&g.length>1&&e.el.querySelectorAll(h).length===1&&(g=e.el.querySelector(h))),h&&!g?h:g)}function s(h,g){const B=e.params.navigation;h=a(h),h.forEach(m=>{m&&(m.classList[g?"add":"remove"](...B.disabledClass.split(" ")),m.tagName==="BUTTON"&&(m.disabled=g),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](B.lockClass))})}function A(){const{nextEl:h,prevEl:g}=e.navigation;if(e.params.loop){s(g,!1),s(h,!1);return}s(g,e.isBeginning&&!e.params.rewind),s(h,e.isEnd&&!e.params.rewind)}function l(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const h=e.params.navigation;if(e.params.navigation=u6(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let g=i(h.nextEl),B=i(h.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:B}),g=a(g),B=a(B);const m=(v,w)=>{v&&v.addEventListener("click",w==="next"?c:l),!e.enabled&&v&&v.classList.add(...h.lockClass.split(" "))};g.forEach(v=>m(v,"next")),B.forEach(v=>m(v,"prev"))}function d(){let{nextEl:h,prevEl:g}=e.navigation;h=a(h),g=a(g);const B=(m,v)=>{m.removeEventListener("click",v==="next"?c:l),m.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(m=>B(m,"next")),g.forEach(m=>B(m,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(u(),A())}),n("toEdge fromEdge lock unlock",()=>{A()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:h,prevEl:g}=e.navigation;h=a(h),g=a(g),[...h,...g].filter(B=>!!B).forEach(B=>B.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(h,g)=>{let{nextEl:B,prevEl:m}=e.navigation;B=a(B),m=a(m);const v=g.target;if(e.params.navigation.hideOnClick&&!m.includes(v)&&!B.includes(v)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let w;B.length?w=B[0].classList.contains(e.params.navigation.hiddenClass):m.length&&(w=m[0].classList.contains(e.params.navigation.hiddenClass)),r(w===!0?"navigationShow":"navigationHide"),[...B,...m].filter(y=>!!y).forEach(y=>y.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),A()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:p,update:A,init:u,destroy:d})}function Mi(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Ia(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Mi(t[r])&&Mi(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Ia(e[r],t[r]):e[r]=t[r]})}function jw(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Yw(e={}){return e.pagination&&typeof e.pagination.el>"u"}function qw(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Xw(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function f6(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Jw=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function zv(e={},t=!0){const n={on:{}},r={},a={};Ia(n,kA.defaults),Ia(n,kA.extendedDefaults),n._emitClasses=!0,n.init=!1;const i={},s=Jw.map(l=>l.replace(/_/,"")),A=Object.assign({},e);return Object.keys(A).forEach(l=>{typeof e[l]>"u"||(s.indexOf(l)>=0?Mi(e[l])?(n[l]={},a[l]={},Ia(n[l],e[l]),Ia(a[l],e[l])):(n[l]=e[l],a[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:i[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:a,rest:i,events:r}}function p6({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:i},s){jw(s)&&t&&n&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),Yw(s)&&r&&(i.params.pagination.el=r,i.originalParams.pagination.el=r),qw(s)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function h6(e,t,n,r,a){const i=[];if(!t)return i;const s=l=>{i.indexOf(l)<0&&i.push(l)};if(n&&r){const l=r.map(a),c=n.map(a);l.join("")!==c.join("")&&s("children"),r.length!==n.length&&s("children")}return Jw.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Mi(e[l])&&Mi(t[l])){const c=Object.keys(e[l]),u=Object.keys(t[l]);c.length!==u.length?s(l):(c.forEach(d=>{e[l][d]!==t[l][d]&&s(l)}),u.forEach(d=>{e[l][d]!==t[l][d]&&s(l)}))}else e[l]!==t[l]&&s(l)}),i}function ff(e,t,n){e===void 0&&(e={});const r=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i=(s,A)=>{Array.isArray(s)&&s.forEach(l=>{const c=typeof l.type=="symbol";A==="default"&&(A="container-end"),c&&l.children?i(l.children,A):l.type&&(l.type.name==="SwiperSlide"||l.type.name==="AsyncComponentWrapper")?r.push(l):a[A]&&a[A].push(l)})};return Object.keys(e).forEach(s=>{if(typeof e[s]!="function")return;const A=e[s]();i(A,s)}),n.value=t.value,t.value=r,{slides:r,slots:a}}function m6({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:i,scrollbarEl:s,paginationEl:A}){const l=r.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:h}=e;let g,B,m,v,w,y,b,_;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(g=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(B=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||A)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(m=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(v=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||i)&&(n.navigation.nextEl||a)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(w=!0);const C=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),c[E].prevEl=void 0,c[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),c[E].el=void 0,e[E].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?y=!0:!c.loop&&n.loop?b=!0:_=!0),l.forEach(E=>{if(Mi(c[E])&&Mi(n[E]))Ia(c[E],n[E]),(E==="navigation"||E==="pagination"||E==="scrollbar")&&"enabled"in n[E]&&!n[E].enabled&&C(E);else{const S=n[E];(S===!0||S===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?S===!1&&C(E):c[E]=n[E]}}),l.includes("controller")&&!B&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),r.includes("children")&&t&&c.loop&&(_=!0),g&&h.init()&&h.update(!0),B&&(e.controller.control=c.controller.control),m&&(e.isElement&&(!A||typeof A=="string")&&(A=document.createElement("div"),A.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(A)),A&&(c.pagination.el=A),u.init(),u.render(),u.update()),v&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(s)),s&&(c.scrollbar.el=s),f.init(),f.updateSize(),f.setTranslate()),w&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(i))),a&&(c.navigation.nextEl=a),i&&(c.navigation.prevEl=i),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(y||_)&&e.loopDestroy(),(b||_)&&e.loopCreate(),e.update()}function g6(e,t,n){if(!n)return null;const r=u=>{let d=u;return u<0?d=t.length+u:d>=t.length&&(d=d-t.length),d},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:s}=n,A=e.value.params.loop?-t.length:0,l=e.value.params.loop?t.length*2:t.length,c=[];for(let u=A;u<l;u+=1)u>=i&&u<=s&&c.push(t[r(u)]);return c.map(u=>(u.props||(u.props={}),u.props.style||(u.props.style={}),u.props.swiperRef=e,u.props.style=a,o.h(u.type,{...u.props},u.children)))}const v6=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},Zw={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:r}=t;const{tag:a,wrapperTag:i}=e,s=o.ref("swiper"),A=o.ref(null),l=o.ref(!1),c=o.ref(!1),u=o.ref(null),d=o.ref(null),f=o.ref(null),p={value:[]},h={value:[]},g=o.ref(null),B=o.ref(null),m=o.ref(null),v=o.ref(null),{params:w,passedParams:y}=zv(e,!1);ff(n,p,h),f.value=y,h.value=p.value;const b=()=>{ff(n,p,h),l.value=!0};w.onAny=function(E){for(var S=arguments.length,D=new Array(S>1?S-1:0),T=1;T<S;T++)D[T-1]=arguments[T];r(E,...D)},Object.assign(w.on,{_beforeBreakpoint:b,_containerClasses(E,S){s.value=S}});const _={...w};if(delete _.wrapperClass,d.value=new kA(_),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=p.value;const E={cache:!1,slides:p.value,renderExternal:S=>{A.value=S},renderExternalUpdate:!1};Ia(d.value.params.virtual,E),Ia(d.value.originalParams.virtual,E)}o.onUpdated(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:E}=zv(e,!1),S=h6(E,f.value,p.value,h.value,D=>D.props&&D.props.key);f.value=E,(S.length||l.value)&&d.value&&!d.value.destroyed&&m6({swiper:d.value,slides:p.value,passedParams:E,changedParams:S,nextEl:g.value,prevEl:B.value,scrollbarEl:v.value,paginationEl:m.value}),l.value=!1}),o.provide("swiper",d),o.watch(A,()=>{o.nextTick(()=>{v6(d.value)})}),o.onMounted(()=>{u.value&&(p6({el:u.value,nextEl:g.value,prevEl:B.value,paginationEl:m.value,scrollbarEl:v.value,swiper:d.value},w),r("swiper",d.value))}),o.onBeforeUnmount(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function C(E){return w.virtual?g6(d,E,A.value):(E.forEach((S,D)=>{S.props||(S.props={}),S.props.swiperRef=d,S.props.swiperSlideIndex=D}),E)}return()=>{const{slides:E,slots:S}=ff(n,p,h);return o.h(a,{ref:u,class:Xw(s.value)},[S["container-start"],o.h(i,{class:f6(w.wrapperClass)},[S["wrapper-start"],C(E),S["wrapper-end"]]),jw(e)&&[o.h("div",{ref:B,class:"swiper-button-prev"}),o.h("div",{ref:g,class:"swiper-button-next"})],qw(e)&&o.h("div",{ref:v,class:"swiper-scrollbar"}),Yw(e)&&o.h("div",{ref:m,class:"swiper-pagination"}),S["container-end"]])}}},eb={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,r=!1;const{swiperRef:a}=e,i=o.ref(null),s=o.ref("swiper-slide"),A=o.ref(!1);function l(d,f,p){f===i.value&&(s.value=p)}o.onMounted(()=>{!a||!a.value||(a.value.on("_slideClass",l),r=!0)}),o.onBeforeUpdate(()=>{r||!a||!a.value||(a.value.on("_slideClass",l),r=!0)}),o.onUpdated(()=>{!i.value||!a||!a.value||(typeof e.swiperSlideIndex<"u"&&(i.value.swiperSlideIndex=e.swiperSlideIndex),a.value.destroyed&&s.value!=="swiper-slide"&&(s.value="swiper-slide"))}),o.onBeforeUnmount(()=>{!a||!a.value||a.value.off("_slideClass",l)});const c=o.computed(()=>({isActive:s.value.indexOf("swiper-slide-active")>=0,isVisible:s.value.indexOf("swiper-slide-visible")>=0,isPrev:s.value.indexOf("swiper-slide-prev")>=0,isNext:s.value.indexOf("swiper-slide-next")>=0}));o.provide("swiperSlide",c);const u=()=>{A.value=!0};return()=>o.h(e.tag,{class:Xw(`${s.value}`),ref:i,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&a&&a.value&&a.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?o.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[n.default&&n.default(c.value),e.lazy&&!A.value&&o.h("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),e.lazy&&!A.value&&o.h("div",{class:"swiper-lazy-preloader"})])}};const y6={cardCodes:{type:Array,required:!0,default:[]}},B6=o.defineComponent({__name:"RevealCarousel",props:y6,setup(e){var A;const t=e,n=[d6],r=o.ref(null),a=o.ref((A=r.value)==null?void 0:A.clientWidth),i=o.computed(()=>a.value===void 0?!0:a.value<400);function s(){var l;a.value=(l=r.value)==null?void 0:l.clientWidth}return o.onMounted(()=>{window.addEventListener("resize",s),s()}),o.onUnmounted(()=>{window.removeEventListener("resize",s)}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"revealCarousel",ref:r,class:"reveal-carousel"},[o.createVNode(o.unref(Zw),{"slides-per-view":"auto","space-between":15,"centered-slides":i.value,navigation:!0,modules:n},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.cardCodes,u=>(o.openBlock(),o.createBlock(o.unref(eb),{key:u},{default:o.withCtx(()=>[o.createVNode(o.unref(Yd),{class:"card-item-called","card-code-prop":u,"is-root":!0},null,8,["card-code-prop"])]),_:2},1024))),128))]),_:1},8,["centered-slides"])],512))}});const vm=M(B6,[["__scopeId","data-v-30819122"]]),w6={fetchSeachResult:{type:Function,required:!0,default:()=>[]}};var gn="top",Wn="bottom",Gn="right",vn="left",ym="auto",JA=[gn,Wn,Gn,vn],Ps="start",EA="end",b6="clippingParents",tb="viewport",mo="popper",_6="reference",Wv=JA.reduce(function(e,t){return e.concat([t+"-"+Ps,t+"-"+EA])},[]),nb=[].concat(JA,[ym]).reduce(function(e,t){return e.concat([t,t+"-"+Ps,t+"-"+EA])},[]),C6="beforeRead",k6="read",E6="afterRead",S6="beforeMain",x6="main",F6="afterMain",I6="beforeWrite",T6="write",U6="afterWrite",D6=[C6,k6,E6,S6,x6,F6,I6,T6,U6];function _r(e){return e?(e.nodeName||"").toLowerCase():null}function In(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ni(e){var t=In(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=In(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bm(e){if(typeof ShadowRoot>"u")return!1;var t=In(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!zn(i)||!_r(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var A=a[s];A===!1?i.removeAttribute(s):i.setAttribute(s,A===!0?"":A)}))})}function L6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),A=s.reduce(function(l,c){return l[c]="",l},{});!zn(a)||!_r(a)||(Object.assign(a.style,A),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}const rb={name:"applyStyles",enabled:!0,phase:"write",fn:Q6,effect:L6,requires:["computeStyles"]};function Br(e){return e.split("-")[0]}var xi=Math.max,lu=Math.min,Hs=Math.round;function Qp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ab(){return!/^((?!chrome|android).)*safari/i.test(Qp())}function Rs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&zn(e)&&(a=e.offsetWidth>0&&Hs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Hs(r.height)/e.offsetHeight||1);var s=Ni(e)?In(e):window,A=s.visualViewport,l=!ab()&&n,c=(r.left+(l&&A?A.offsetLeft:0))/a,u=(r.top+(l&&A?A.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function wm(e){var t=Rs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ib(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sa(e){return In(e).getComputedStyle(e)}function O6(e){return["table","td","th"].indexOf(_r(e))>=0}function ii(e){return((Ni(e)?e.ownerDocument:e.document)||window.document).documentElement}function ed(e){return _r(e)==="html"?e:e.assignedSlot||e.parentNode||(Bm(e)?e.host:null)||ii(e)}function Gv(e){return!zn(e)||sa(e).position==="fixed"?null:e.offsetParent}function M6(e){var t=/firefox/i.test(Qp()),n=/Trident/i.test(Qp());if(n&&zn(e)){var r=sa(e);if(r.position==="fixed")return null}var a=ed(e);for(Bm(a)&&(a=a.host);zn(a)&&["html","body"].indexOf(_r(a))<0;){var i=sa(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function ZA(e){for(var t=In(e),n=Gv(e);n&&O6(n)&&sa(n).position==="static";)n=Gv(n);return n&&(_r(n)==="html"||_r(n)==="body"&&sa(n).position==="static")?t:n||M6(e)||t}function bm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jo(e,t,n){return xi(e,lu(t,n))}function N6(e,t,n){var r=jo(e,t,n);return r>n?n:r}function sb(){return{top:0,right:0,bottom:0,left:0}}function ob(e){return Object.assign({},sb(),e)}function Ab(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var P6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ob(typeof t!="number"?t:Ab(t,JA))};function H6(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,A=Br(n.placement),l=bm(A),c=[vn,Gn].indexOf(A)>=0,u=c?"height":"width";if(!(!i||!s)){var d=P6(a.padding,n),f=wm(i),p=l==="y"?gn:vn,h=l==="y"?Wn:Gn,g=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],B=s[l]-n.rects.reference[l],m=ZA(i),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=g/2-B/2,y=d[p],b=v-f[u]-d[h],_=v/2-f[u]/2+w,C=jo(y,_,b),E=l;n.modifiersData[r]=(t={},t[E]=C,t.centerOffset=C-_,t)}}function R6(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ib(t.elements.popper,a)&&(t.elements.arrow=a))}const V6={name:"arrow",enabled:!0,phase:"main",fn:H6,effect:R6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vs(e){return e.split("-")[1]}var K6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $6(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Hs(n*a)/a||0,y:Hs(r*a)/a||0}}function jv(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,A=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,h=s.y,g=h===void 0?0:h,B=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=B.x,g=B.y;var m=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),w=vn,y=gn,b=window;if(c){var _=ZA(n),C="clientHeight",E="clientWidth";if(_===In(n)&&(_=ii(n),sa(_).position!=="static"&&A==="absolute"&&(C="scrollHeight",E="scrollWidth")),_=_,a===gn||(a===vn||a===Gn)&&i===EA){y=Wn;var S=d&&_===b&&b.visualViewport?b.visualViewport.height:_[C];g-=S-r.height,g*=l?1:-1}if(a===vn||(a===gn||a===Wn)&&i===EA){w=Gn;var D=d&&_===b&&b.visualViewport?b.visualViewport.width:_[E];p-=D-r.width,p*=l?1:-1}}var T=Object.assign({position:A},c&&K6),F=u===!0?$6({x:p,y:g},In(n)):{x:p,y:g};if(p=F.x,g=F.y,l){var U;return Object.assign({},T,(U={},U[y]=v?"0":"",U[w]=m?"0":"",U.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",U))}return Object.assign({},T,(t={},t[y]=v?g+"px":"",t[w]=m?p+"px":"",t.transform="",t))}function z6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,A=n.roundOffsets,l=A===void 0?!0:A,c={placement:Br(t.placement),variation:Vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const W6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:z6,data:{}};var Kl={passive:!0};function G6(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,A=s===void 0?!0:s,l=In(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Kl)}),A&&l.addEventListener("resize",n.update,Kl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Kl)}),A&&l.removeEventListener("resize",n.update,Kl)}}const j6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:G6,data:{}};var Y6={left:"right",right:"left",bottom:"top",top:"bottom"};function Pc(e){return e.replace(/left|right|bottom|top/g,function(t){return Y6[t]})}var q6={start:"end",end:"start"};function Yv(e){return e.replace(/start|end/g,function(t){return q6[t]})}function _m(e){var t=In(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cm(e){return Rs(ii(e)).left+_m(e).scrollLeft}function X6(e,t){var n=In(e),r=ii(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,A=0,l=0;if(a){i=a.width,s=a.height;var c=ab();(c||!c&&t==="fixed")&&(A=a.offsetLeft,l=a.offsetTop)}return{width:i,height:s,x:A+Cm(e),y:l}}function J6(e){var t,n=ii(e),r=_m(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=xi(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=xi(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),A=-r.scrollLeft+Cm(e),l=-r.scrollTop;return sa(a||n).direction==="rtl"&&(A+=xi(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:A,y:l}}function km(e){var t=sa(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function lb(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:zn(e)&&km(e)?e:lb(ed(e))}function Yo(e,t){var n;t===void 0&&(t=[]);var r=lb(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=In(r),s=a?[i].concat(i.visualViewport||[],km(r)?r:[]):r,A=t.concat(s);return a?A:A.concat(Yo(ed(s)))}function Lp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z6(e,t){var n=Rs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qv(e,t,n){return t===tb?Lp(X6(e,n)):Ni(t)?Z6(t,n):Lp(J6(ii(e)))}function eI(e){var t=Yo(ed(e)),n=["absolute","fixed"].indexOf(sa(e).position)>=0,r=n&&zn(e)?ZA(e):e;return Ni(r)?t.filter(function(a){return Ni(a)&&ib(a,r)&&_r(a)!=="body"}):[]}function tI(e,t,n,r){var a=t==="clippingParents"?eI(e):[].concat(t),i=[].concat(a,[n]),s=i[0],A=i.reduce(function(l,c){var u=qv(e,c,r);return l.top=xi(u.top,l.top),l.right=lu(u.right,l.right),l.bottom=lu(u.bottom,l.bottom),l.left=xi(u.left,l.left),l},qv(e,s,r));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function cb(e){var t=e.reference,n=e.element,r=e.placement,a=r?Br(r):null,i=r?Vs(r):null,s=t.x+t.width/2-n.width/2,A=t.y+t.height/2-n.height/2,l;switch(a){case gn:l={x:s,y:t.y-n.height};break;case Wn:l={x:s,y:t.y+t.height};break;case Gn:l={x:t.x+t.width,y:A};break;case vn:l={x:t.x-n.width,y:A};break;default:l={x:t.x,y:t.y}}var c=a?bm(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ps:l[c]=l[c]-(t[u]/2-n[u]/2);break;case EA:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function SA(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,A=n.boundary,l=A===void 0?b6:A,c=n.rootBoundary,u=c===void 0?tb:c,d=n.elementContext,f=d===void 0?mo:d,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,B=g===void 0?0:g,m=ob(typeof B!="number"?B:Ab(B,JA)),v=f===mo?_6:mo,w=e.rects.popper,y=e.elements[h?v:f],b=tI(Ni(y)?y:y.contextElement||ii(e.elements.popper),l,u,s),_=Rs(e.elements.reference),C=cb({reference:_,element:w,strategy:"absolute",placement:a}),E=Lp(Object.assign({},w,C)),S=f===mo?E:_,D={top:b.top-S.top+m.top,bottom:S.bottom-b.bottom+m.bottom,left:b.left-S.left+m.left,right:S.right-b.right+m.right},T=e.modifiersData.offset;if(f===mo&&T){var F=T[a];Object.keys(D).forEach(function(U){var Y=[Gn,Wn].indexOf(U)>=0?1:-1,X=[gn,Wn].indexOf(U)>=0?"y":"x";D[U]+=F[X]*Y})}return D}function nI(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,A=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?nb:l,u=Vs(r),d=u?A?Wv:Wv.filter(function(h){return Vs(h)===u}):JA,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,g){return h[g]=SA(e,{placement:g,boundary:a,rootBoundary:i,padding:s})[Br(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function rI(e){if(Br(e)===ym)return[];var t=Pc(e);return[Yv(e),t,Yv(t)]}function aI(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,A=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,B=t.options.placement,m=Br(B),v=m===B,w=l||(v||!h?[Pc(B)]:rI(B)),y=[B].concat(w).reduce(function(fe,re){return fe.concat(Br(re)===ym?nI(t,{placement:re,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):re)},[]),b=t.rects.reference,_=t.rects.popper,C=new Map,E=!0,S=y[0],D=0;D<y.length;D++){var T=y[D],F=Br(T),U=Vs(T)===Ps,Y=[gn,Wn].indexOf(F)>=0,X=Y?"width":"height",j=SA(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),K=Y?U?Gn:vn:U?Wn:gn;b[X]>_[X]&&(K=Pc(K));var Ae=Pc(K),$=[];if(i&&$.push(j[F]<=0),A&&$.push(j[K]<=0,j[Ae]<=0),$.every(function(fe){return fe})){S=T,E=!1;break}C.set(T,$)}if(E)for(var ie=h?3:1,ce=function(re){var N=y.find(function(ne){var He=C.get(ne);if(He)return He.slice(0,re).every(function(lt){return lt})});if(N)return S=N,"break"},Be=ie;Be>0;Be--){var xe=ce(Be);if(xe==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const iI={name:"flip",enabled:!0,phase:"main",fn:aI,requiresIfExists:["offset"],data:{_skip:!1}};function Xv(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Jv(e){return[gn,Gn,Wn,vn].some(function(t){return e[t]>=0})}function sI(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=SA(t,{elementContext:"reference"}),A=SA(t,{altBoundary:!0}),l=Xv(s,r),c=Xv(A,a,i),u=Jv(l),d=Jv(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const oI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sI};function AI(e,t,n){var r=Br(e),a=[vn,gn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],A=i[1];return s=s||0,A=(A||0)*a,[vn,Gn].indexOf(r)>=0?{x:A,y:s}:{x:s,y:A}}function lI(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=nb.reduce(function(u,d){return u[d]=AI(d,t.rects,i),u},{}),A=s[t.placement],l=A.x,c=A.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const cI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lI};function uI(e){var t=e.state,n=e.name;t.modifiersData[n]=cb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const dI={name:"popperOffsets",enabled:!0,phase:"read",fn:uI,data:{}};function fI(e){return e==="x"?"y":"x"}function pI(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,A=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,B=SA(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=Br(t.placement),v=Vs(t.placement),w=!v,y=bm(m),b=fI(y),_=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,S=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,D=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(_){if(i){var U,Y=y==="y"?gn:vn,X=y==="y"?Wn:Gn,j=y==="y"?"height":"width",K=_[y],Ae=K+B[Y],$=K-B[X],ie=p?-E[j]/2:0,ce=v===Ps?C[j]:E[j],Be=v===Ps?-E[j]:-C[j],xe=t.elements.arrow,fe=p&&xe?wm(xe):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sb(),N=re[Y],ne=re[X],He=jo(0,C[j],fe[j]),lt=w?C[j]/2-ie-He-N-D.mainAxis:ce-He-N-D.mainAxis,It=w?-C[j]/2+ie+He+ne+D.mainAxis:Be+He+ne+D.mainAxis,wt=t.elements.arrow&&ZA(t.elements.arrow),Qn=wt?y==="y"?wt.clientTop||0:wt.clientLeft||0:0,x=(U=T==null?void 0:T[y])!=null?U:0,k=K+lt-x-Qn,Q=K+It-x,z=jo(p?lu(Ae,k):Ae,K,p?xi($,Q):$);_[y]=z,F[y]=z-K}if(A){var oe,pe=y==="x"?gn:vn,Tt=y==="x"?Wn:Gn,mt=_[b],wn=b==="y"?"height":"width",ze=mt+B[pe],O=mt-B[Tt],P=[gn,vn].indexOf(m)!==-1,tt=(oe=T==null?void 0:T[b])!=null?oe:0,nt=P?ze:mt-C[wn]-E[wn]-tt+D.altAxis,Ar=P?mt+C[wn]+E[wn]-tt-D.altAxis:O,Ln=p&&P?N6(nt,mt,Ar):jo(p?nt:ze,mt,p?Ar:O);_[b]=Ln,F[b]=Ln-mt}t.modifiersData[r]=F}}const hI={name:"preventOverflow",enabled:!0,phase:"main",fn:pI,requiresIfExists:["offset"]};function mI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gI(e){return e===In(e)||!zn(e)?_m(e):mI(e)}function vI(e){var t=e.getBoundingClientRect(),n=Hs(t.width)/e.offsetWidth||1,r=Hs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yI(e,t,n){n===void 0&&(n=!1);var r=zn(t),a=zn(t)&&vI(t),i=ii(t),s=Rs(e,a,n),A={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((_r(t)!=="body"||km(i))&&(A=gI(t)),zn(t)?(l=Rs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Cm(i))),{x:s.left+A.scrollLeft-l.x,y:s.top+A.scrollTop-l.y,width:s.width,height:s.height}}function BI(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(A){if(!n.has(A)){var l=t.get(A);l&&a(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function wI(e){var t=BI(e);return D6.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function bI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _I(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zv={placement:"bottom",modifiers:[],strategy:"absolute"};function e0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function CI(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Zv:a;return function(A,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zv,i),modifiersData:{},elements:{reference:A,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(m){var v=typeof m=="function"?m(u.options):m;g(),u.options=Object.assign({},i,u.options,v),u.scrollParents={reference:Ni(A)?Yo(A):A.contextElement?Yo(A.contextElement):[],popper:Yo(l)};var w=wI(_I([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(y){return y.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var m=u.elements,v=m.reference,w=m.popper;if(e0(v,w)){u.rects={reference:yI(v,ZA(w),u.options.strategy==="fixed"),popper:wm(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var b=u.orderedModifiers[y],_=b.fn,C=b.options,E=C===void 0?{}:C,S=b.name;typeof _=="function"&&(u=_({state:u,options:E,name:S,instance:p})||u)}}}},update:bI(function(){return new Promise(function(B){p.forceUpdate(),B(u)})}),destroy:function(){g(),f=!0}};if(!e0(A,l))return p;p.setOptions(c).then(function(B){!f&&c.onFirstUpdate&&c.onFirstUpdate(B)});function h(){u.orderedModifiers.forEach(function(B){var m=B.name,v=B.options,w=v===void 0?{}:v,y=B.effect;if(typeof y=="function"){var b=y({state:u,name:m,instance:p,options:w}),_=function(){};d.push(b||_)}})}function g(){d.forEach(function(B){return B()}),d=[]}return p}}var kI=[j6,dI,W6,rb,cI,iI,hI,V6,oI],EI=CI({defaultModifiers:kI}),SI="tippy-box",ub="tippy-content",xI="tippy-backdrop",db="tippy-arrow",fb="tippy-svg-arrow",hi={passive:!0,capture:!0},pb=function(){return document.body};function FI(e,t){return{}.hasOwnProperty.call(e,t)}function pf(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Em(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function hb(e,t){return typeof e=="function"?e.apply(void 0,t):e}function t0(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function II(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function TI(e){return e.split(/\s+/).filter(Boolean)}function hs(e){return[].concat(e)}function n0(e,t){e.indexOf(t)===-1&&e.push(t)}function UI(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function DI(e){return e.split("-")[0]}function cu(e){return[].slice.call(e)}function r0(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function qo(){return document.createElement("div")}function xA(e){return["Element","Fragment"].some(function(t){return Em(e,t)})}function QI(e){return Em(e,"NodeList")}function LI(e){return Em(e,"MouseEvent")}function OI(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function MI(e){return xA(e)?[e]:QI(e)?cu(e):Array.isArray(e)?e:cu(document.querySelectorAll(e))}function hf(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function a0(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function NI(e){var t,n=hs(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function PI(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var i=a.popperRect,s=a.popperState,A=a.props,l=A.interactiveBorder,c=DI(s.placement),u=s.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,h=c==="left"?u.right.x:0,g=i.top-r+d>l,B=r-i.bottom-f>l,m=i.left-n+p>l,v=n-i.right-h>l;return g||B||m||v})}function mf(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function i0(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var mr={isTouch:!1},s0=0;function HI(){mr.isTouch||(mr.isTouch=!0,window.performance&&document.addEventListener("mousemove",mb))}function mb(){var e=performance.now();e-s0<20&&(mr.isTouch=!1,document.removeEventListener("mousemove",mb)),s0=e}function RI(){var e=document.activeElement;if(OI(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function VI(){document.addEventListener("touchstart",HI,hi),window.addEventListener("blur",RI)}var KI=typeof window<"u"&&typeof document<"u",$I=KI?!!window.msCrypto:!1;function is(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function o0(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function zI(e){return o0(`
|
|
804
|
+
`),e.removeAttribute(n),r()}).catch(a)}else r()}else r()})}function yF(e){return Promise.all([Tv(e,"::before"),Tv(e,"::after")])}function BF(e){return e.parentNode!==document.head&&!~Ax.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(_p)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function Uv(e){if(ua)return new Promise(function(t,n){var r=Zs(e.querySelectorAll("*")).filter(BF).map(yF),a=hm.begin("searchPseudoElements");Mw(),Promise.all(r).then(function(){a(),Tp(),t()}).catch(function(){a(),Tp(),n()})})}var wF={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=Uv,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,a=r===void 0?st:r;se.searchPseudoElements&&Uv(a)}}},Dv=!1,bF={mixout:function(){return{dom:{unwatch:function(){Mw(),Dv=!0}}}},hooks:function(){return{bootstrap:function(){Sv(Ep("mutationObserverCallbacks",{}))},noAuto:function(){aF()},watch:function(n){var r=n.observeMutationsRoot;Dv?Tp():Sv(Ep("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},Qv=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,a){var i=a.toLowerCase().split("-"),s=i[0],A=i.slice(1).join("-");if(s&&A==="h")return r.flipX=!0,r;if(s&&A==="v")return r.flipY=!0,r;if(A=parseFloat(A),isNaN(A))return r;switch(s){case"grow":r.size=r.size+A;break;case"shrink":r.size=r.size-A;break;case"left":r.x=r.x-A;break;case"right":r.x=r.x+A;break;case"up":r.y=r.y-A;break;case"down":r.y=r.y+A;break;case"rotate":r.rotate=r.rotate+A;break}return r},n)},_F={mixout:function(){return{parse:{transform:function(n){return Qv(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-transform");return a&&(n.transform=Qv(a)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,a=n.transform,i=n.containerWidth,s=n.iconWidth,A={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(a.x*32,", ").concat(a.y*32,") "),c="scale(".concat(a.size/16*(a.flipX?-1:1),", ").concat(a.size/16*(a.flipY?-1:1),") "),u="rotate(".concat(a.rotate," 0 0)"),d={transform:"".concat(l," ").concat(c," ").concat(u)},f={transform:"translate(".concat(s/2*-1," -256)")},p={outer:A,inner:d,path:f};return{tag:"g",attributes:ee({},p.outer),children:[{tag:"g",attributes:ee({},p.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:ee(ee({},r.icon.attributes),p.path)}]}]}}}},of={x:0,y:0,width:"100%",height:"100%"};function Lv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function CF(e){return e.tag==="g"?e.children:[e]}var kF={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-mask"),i=a?Ju(a.split(" ").map(function(s){return s.trim()})):fm();return i.prefix||(i.prefix=Ya()),n.mask=i,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,a=n.attributes,i=n.main,s=n.mask,A=n.maskId,l=n.transform,c=i.width,u=i.icon,d=s.width,f=s.icon,p=_x({transform:l,containerWidth:d,iconWidth:c}),h={tag:"rect",attributes:ee(ee({},of),{},{fill:"white"})},g=u.children?{children:u.children.map(Lv)}:{},B={tag:"g",attributes:ee({},p.inner),children:[Lv(ee({tag:u.tag,attributes:ee(ee({},u.attributes),p.path)},g))]},m={tag:"g",attributes:ee({},p.outer),children:[B]},v="mask-".concat(A||CA()),w="clip-".concat(A||CA()),y={tag:"mask",attributes:ee(ee({},of),{},{id:v,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[h,m]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:w},children:CF(f)},y]};return r.push(b,{tag:"rect",attributes:ee({fill:"currentColor","clip-path":"url(#".concat(w,")"),mask:"url(#".concat(v,")")},of)}),{children:r,attributes:a}}}},EF={provides:function(t){var n=!1;ja.matchMedia&&(n=ja.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],a={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:ee(ee({},a),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=ee(ee({},i),{},{attributeName:"opacity"}),A={tag:"circle",attributes:ee(ee({},a),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||A.children.push({tag:"animate",attributes:ee(ee({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:ee(ee({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(A),r.push({tag:"path",attributes:ee(ee({},a),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:ee(ee({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:ee(ee({},a),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:ee(ee({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},SF={hooks:function(){return{parseNodeAttributes:function(n,r){var a=r.getAttribute("data-fa-symbol"),i=a===null?!1:a===""?!0:a;return n.symbol=i,n}}}},xF=[Ex,fF,pF,hF,mF,wF,bF,_F,kF,EF,SF];Rx(xF,{mixoutsTo:Tn});Tn.noAuto;var Pw=Tn.config,Ov=Tn.library;Tn.dom;var ou=Tn.parse;Tn.findIconDefinition;Tn.toHtml;var FF=Tn.icon;Tn.layer;var IF=Tn.text;Tn.counter;var TF={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0H284.2c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64S14.3 32 32 32h96l7.2-14.3zM32 128H416V448c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16V432c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"]},UF=TF,DF={prefix:"fas",iconName:"sort-down",icon:[320,512,["sort-desc"],"f0dd","M182.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128z"]},QF={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},LF=QF,OF={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1v32c0 8.8 7.2 16 16 16h32zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},MF=OF,NF={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"]},PF={prefix:"fas",iconName:"circle-chevron-down",icon:[512,512,["chevron-circle-down"],"f13a","M256 0a256 256 0 1 0 0 512A256 256 0 1 0 256 0zM135 241c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l87 87 87-87c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L273 345c-9.4 9.4-24.6 9.4-33.9 0L135 241z"]},HF=PF,RF={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},VF={prefix:"fas",iconName:"share-nodes",icon:[448,512,["share-alt"],"f1e0","M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"]},KF={prefix:"fas",iconName:"hand",icon:[512,512,[129306,9995,"hand-paper"],"f256","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V336c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64H304c97.2 0 176-78.8 176-176V128c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V64c0-17.7-14.3-32-32-32s-32 14.3-32 32V240c0 8.8-7.2 16-16 16s-16-7.2-16-16V32z"]},$F=KF,zF={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},WF={prefix:"fas",iconName:"maximize",icon:[512,512,["expand-arrows-alt"],"f31e","M200 32H56C42.7 32 32 42.7 32 56V200c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l40-40 79 79-79 79L73 295c-6.9-6.9-17.2-8.9-26.2-5.2S32 302.3 32 312V456c0 13.3 10.7 24 24 24H200c9.7 0 18.5-5.8 22.2-14.8s1.7-19.3-5.2-26.2l-40-40 79-79 79 79-40 40c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H456c13.3 0 24-10.7 24-24V312c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2l-40 40-79-79 79-79 40 40c6.9 6.9 17.2 8.9 26.2 5.2s14.8-12.5 14.8-22.2V56c0-13.3-10.7-24-24-24H312c-9.7 0-18.5 5.8-22.2 14.8s-1.7 19.3 5.2 26.2l40 40-79 79-79-79 40-40c6.9-6.9 8.9-17.2 5.2-26.2S209.7 32 200 32z"]},GF={prefix:"fas",iconName:"arrow-right-to-bracket",icon:[512,512,["sign-in"],"f090","M352 96l64 0c17.7 0 32 14.3 32 32l0 256c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l64 0c53 0 96-43 96-96l0-256c0-53-43-96-96-96l-64 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm-9.4 182.6c12.5-12.5 12.5-32.8 0-45.3l-128-128c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L242.7 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l210.7 0-73.4 73.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l128-128z"]},jF={prefix:"fas",iconName:"crown",icon:[576,512,[128081],"f521","M309 106c11.4-7 19-19.7 19-34c0-22.1-17.9-40-40-40s-40 17.9-40 40c0 14.4 7.6 27 19 34L209.7 220.6c-9.1 18.2-32.7 23.4-48.6 10.7L72 160c5-6.7 8-15 8-24c0-22.1-17.9-40-40-40S0 113.9 0 136s17.9 40 40 40c.2 0 .5 0 .7 0L86.4 427.4c5.5 30.4 32 52.6 63 52.6H426.6c30.9 0 57.4-22.1 63-52.6L535.3 176c.2 0 .5 0 .7 0c22.1 0 40-17.9 40-40s-17.9-40-40-40s-40 17.9-40 40c0 9 3 17.3 8 24l-89.1 71.3c-15.9 12.7-39.5 7.5-48.6-10.7L309 106z"]},YF={prefix:"fas",iconName:"unlock",icon:[448,512,[128275],"f09c","M144 144c0-44.2 35.8-80 80-80c31.9 0 59.4 18.6 72.3 45.7c7.6 16 26.7 22.8 42.6 15.2s22.8-26.7 15.2-42.6C331 33.7 281.5 0 224 0C144.5 0 80 64.5 80 144v48H64c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V256c0-35.3-28.7-64-64-64H144V144z"]},qF={prefix:"fas",iconName:"gift",icon:[512,512,[127873],"f06b","M190.5 68.8L225.3 128H224 152c-22.1 0-40-17.9-40-40s17.9-40 40-40h2.2c14.9 0 28.8 7.9 36.3 20.8zM64 88c0 14.4 3.5 28 9.6 40H32c-17.7 0-32 14.3-32 32v64c0 17.7 14.3 32 32 32H480c17.7 0 32-14.3 32-32V160c0-17.7-14.3-32-32-32H438.4c6.1-12 9.6-25.6 9.6-40c0-48.6-39.4-88-88-88h-2.2c-31.9 0-61.5 16.9-77.7 44.4L256 85.5l-24.1-41C215.7 16.9 186.1 0 154.2 0H152C103.4 0 64 39.4 64 88zm336 0c0 22.1-17.9 40-40 40H288h-1.3l34.8-59.2C329.1 55.9 342.9 48 357.8 48H360c22.1 0 40 17.9 40 40zM32 288V464c0 26.5 21.5 48 48 48H224V288H32zM288 512H432c26.5 0 48-21.5 48-48V288H288V512z"]},XF={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6h96 32H424c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},JF={prefix:"fas",iconName:"newspaper",icon:[512,512,[128240],"f1ea","M96 96c0-35.3 28.7-64 64-64H448c35.3 0 64 28.7 64 64V416c0 35.3-28.7 64-64 64H80c-44.2 0-80-35.8-80-80V128c0-17.7 14.3-32 32-32s32 14.3 32 32V400c0 8.8 7.2 16 16 16s16-7.2 16-16V96zm64 24v80c0 13.3 10.7 24 24 24H296c13.3 0 24-10.7 24-24V120c0-13.3-10.7-24-24-24H184c-13.3 0-24 10.7-24 24zm208-8c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H384c-8.8 0-16 7.2-16 16zM160 304c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16zm0 96c0 8.8 7.2 16 16 16H432c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},ZF={prefix:"fas",iconName:"sort",icon:[320,512,["unsorted"],"f0dc","M137.4 41.4c12.5-12.5 32.8-12.5 45.3 0l128 128c9.2 9.2 11.9 22.9 6.9 34.9s-16.6 19.8-29.6 19.8H32c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9l128-128zm0 429.3l-128-128c-9.2-9.2-11.9-22.9-6.9-34.9s16.6-19.8 29.6-19.8H288c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9l-128 128c-12.5 12.5-32.8 12.5-45.3 0z"]},e8={prefix:"fas",iconName:"language",icon:[640,512,[],"f1ab","M0 128C0 92.7 28.7 64 64 64H256h48 16H576c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H320 304 256 64c-35.3 0-64-28.7-64-64V128zm320 0V384H576V128H320zM178.3 175.9c-3.2-7.2-10.4-11.9-18.3-11.9s-15.1 4.7-18.3 11.9l-64 144c-4.5 10.1 .1 21.9 10.2 26.4s21.9-.1 26.4-10.2l8.9-20.1h73.6l8.9 20.1c4.5 10.1 16.3 14.6 26.4 10.2s14.6-16.3 10.2-26.4l-64-144zM160 233.2L179 276H141l19-42.8zM448 164c11 0 20 9 20 20v4h44 16c11 0 20 9 20 20s-9 20-20 20h-2l-1.6 4.5c-8.9 24.4-22.4 46.6-39.6 65.4c.9 .6 1.8 1.1 2.7 1.6l18.9 11.3c9.5 5.7 12.5 18 6.9 27.4s-18 12.5-27.4 6.9l-18.9-11.3c-4.5-2.7-8.8-5.5-13.1-8.5c-10.6 7.5-21.9 14-34 19.4l-3.6 1.6c-10.1 4.5-21.9-.1-26.4-10.2s.1-21.9 10.2-26.4l3.6-1.6c6.4-2.9 12.6-6.1 18.5-9.8l-12.2-12.2c-7.8-7.8-7.8-20.5 0-28.3s20.5-7.8 28.3 0l14.6 14.6 .5 .5c12.4-13.1 22.5-28.3 29.8-45H448 376c-11 0-20-9-20-20s9-20 20-20h52v-4c0-11 9-20 20-20z"]},t8={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32H472c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9V448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6V320.9L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},n8={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7H336c-8.8 0-16-7.2-16-16V118.6c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},r8={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},a8=r8,i8={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},s8={prefix:"fas",iconName:"sort-up",icon:[320,512,["sort-asc"],"f0de","M182.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8H288c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},o8={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},A8={prefix:"fas",iconName:"table-cells",icon:[512,512,["th"],"f00a","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zm88 64v64H64V96h88zm56 0h88v64H208V96zm240 0v64H360V96h88zM64 224h88v64H64V224zm232 0v64H208V224h88zm64 0h88v64H360V224zM152 352v64H64V352h88zm56 0h88v64H208V352zm240 0v64H360V352h88z"]},l8=A8,c8={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},u8=c8,d8={prefix:"fas",iconName:"camera",icon:[512,512,[62258,"camera-alt"],"f030","M149.1 64.8L138.7 96H64C28.7 96 0 124.7 0 160V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H373.3L362.9 64.8C356.4 45.2 338.1 32 317.4 32H194.6c-20.7 0-39 13.2-45.5 32.8zM256 192a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},f8={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},p8={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},h8=p8,m8={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},g8=m8,v8={prefix:"fas",iconName:"rotate-right",icon:[512,512,["redo-alt","rotate-forward"],"f2f9","M463.5 224H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1c-87.5 87.5-87.5 229.3 0 316.8s229.3 87.5 316.8 0c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0c-62.5 62.5-163.8 62.5-226.3 0s-62.5-163.8 0-226.3c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5z"]},y8={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},B8=y8,w8={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},b8={prefix:"fas",iconName:"ranking-star",icon:[640,512,[],"e561","M353.8 54.1L330.2 6.3c-3.9-8.3-16.1-8.6-20.4 0L286.2 54.1l-52.3 7.5c-9.3 1.4-13.3 12.9-6.4 19.8l38 37-9 52.1c-1.4 9.3 8.2 16.5 16.8 12.2l46.9-24.8 46.6 24.4c8.6 4.3 18.3-2.9 16.8-12.2l-9-52.1 38-36.6c6.8-6.8 2.9-18.3-6.4-19.8l-52.3-7.5zM256 256c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H384c17.7 0 32-14.3 32-32V288c0-17.7-14.3-32-32-32H256zM32 320c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H160c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32H32zm416 96v64c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V416c0-17.7-14.3-32-32-32H480c-17.7 0-32 14.3-32 32z"]},_8={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M272 0H396.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128H192v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},C8={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},k8={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},E8=k8,S8={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},x8={prefix:"fas",iconName:"hammer",icon:[576,512,[128296],"f6e3","M413.5 237.5c-28.2 4.8-58.2-3.6-80-25.4l-38.1-38.1C280.4 159 272 138.8 272 117.6V105.5L192.3 62c-5.3-2.9-8.6-8.6-8.3-14.7s3.9-11.5 9.5-14l47.2-21C259.1 4.2 279 0 299.2 0h18.1c36.7 0 72 14 98.7 39.1l44.6 42c24.2 22.8 33.2 55.7 26.6 86L503 183l8-8c9.4-9.4 24.6-9.4 33.9 0l24 24c9.4 9.4 9.4 24.6 0 33.9l-88 88c-9.4 9.4-24.6 9.4-33.9 0l-24-24c-9.4-9.4-9.4-24.6 0-33.9l8-8-17.5-17.5zM27.4 377.1L260.9 182.6c3.5 4.9 7.5 9.6 11.8 14l38.1 38.1c6 6 12.4 11.2 19.2 15.7L134.9 484.6c-14.5 17.4-36 27.4-58.6 27.4C34.1 512 0 477.8 0 435.7c0-22.6 10.1-44.1 27.4-58.6z"]},F8={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c62.2-62.2 162.7-62.5 225.3-1L327 183c-6.9 6.9-8.9 17.2-5.2 26.2s12.5 14.8 22.2 14.8H463.5c0 0 0 0 0 0H472c13.3 0 24-10.7 24-24V72c0-9.7-5.8-18.5-14.8-22.2s-19.3-1.7-26.2 5.2L413.4 96.6c-87.6-86.5-228.7-86.2-315.8 1C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5c7.7-21.8 20.2-42.3 37.8-59.8zM16 312v7.6 .7V440c0 9.7 5.8 18.5 14.8 22.2s19.3 1.7 26.2-5.2l41.6-41.6c87.6 86.5 228.7 86.2 315.8-1c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.2 62.2-162.7 62.5-225.3 1L185 329c6.9-6.9 8.9-17.2 5.2-26.2s-12.5-14.8-22.2-14.8H48.4h-.7H40c-13.3 0-24 10.7-24 24z"]},I8=F8,T8={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},U8={prefix:"fas",iconName:"magnifying-glass-plus",icon:[512,512,["search-plus"],"f00e","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24V232h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H232V120c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H120c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"]},D8=U8,Q8={prefix:"fas",iconName:"books",icon:[512,512,[128218],"f5db","M0 32C0 14.3 14.3 0 32 0H96c17.7 0 32 14.3 32 32V96H0V32zm0 96H128V384H0V128zM0 416H128v64c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32V416zM160 32c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32V96H160V32zm0 96H288V384H160V128zm0 288H288v64c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V416zm203.6-19.9L320 232.6V142.8l100.4-26.9 66 247.4L363.6 396.1zM412.2 85L320 109.6V11l36.9-9.9c16.9-4.6 34.4 5.5 38.9 22.6L412.2 85zM371.8 427l122.8-32.9 16.3 61.1c4.5 17-5.5 34.5-22.5 39.1l-61.4 16.5c-16.9 4.6-34.4-5.5-38.9-22.6L371.8 427z"]},L8={prefix:"fas",iconName:"treasure-chest",icon:[576,512,[],"f723","M0 160v96H128V32C57.3 32 0 89.3 0 160zM0 432c0 26.5 21.5 48 48 48h80V288H0V432zM416 288H352v32c0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32V288H160V480H416V288zM528 480c26.5 0 48-21.5 48-48V288H448V480h80zm48-320c0-70.7-57.3-128-128-128V256H576V160zM416 256V32H160V256h64V224c0-17.7 14.3-32 32-32h64c17.7 0 32 14.3 32 32v32h64zM304 240c0-8.8-7.2-16-16-16s-16 7.2-16 16v64c0 8.8 7.2 16 16 16s16-7.2 16-16V240z"]},O8={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},M8={prefix:"fas",iconName:"chart-mixed",icon:[512,512,["analytics"],"f643","M500 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L319.4 151.5 211.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L12 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L192.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L500 89zM160 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM32 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm288-64c-17.7 0-32 14.3-32 32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V320c0-17.7-14.3-32-32-32zm96-32V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32z"]},N8={prefix:"fas",iconName:"chart-simple-horizontal",icon:[448,512,[],"e474","M400 320c26.5 0 48-21.5 48-48l0-32c0-26.5-21.5-48-48-48L48 192c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l352 0zM208 480c26.5 0 48-21.5 48-48l0-32c0-26.5-21.5-48-48-48L48 352c-26.5 0-48 21.5-48 48l0 32c0 26.5 21.5 48 48 48l160 0zM384 112l0-32c0-26.5-21.5-48-48-48L48 32C21.5 32 0 53.5 0 80l0 32c0 26.5 21.5 48 48 48l288 0c26.5 0 48-21.5 48-48z"]},P8={prefix:"fas",iconName:"cards-blank",icon:[640,512,[],"e4df","M27.8 118.8C1.2 134.2-7.9 168.2 7.5 194.9l167 289.3c15.4 26.6 49.4 35.8 76.1 20.4L443.4 393.2c26.6-15.4 35.8-49.4 20.4-76.1L296.8 27.8C281.4 1.2 247.3-7.9 220.7 7.5L27.8 118.8zM459.4 420.9L324.1 499c9.7 8.1 22.2 13 35.9 13H584c30.9 0 56-25.1 56-56V120c0-30.9-25.1-56-56-56H360c-1.8 0-3.5 .1-5.3 .2L491.5 301.1c24.2 41.9 9.8 95.6-32.1 119.8z"]},H8={prefix:"fab",iconName:"discord",icon:[640,512,[],"f392","M524.531,69.836a1.5,1.5,0,0,0-.764-.7A485.065,485.065,0,0,0,404.081,32.03a1.816,1.816,0,0,0-1.923.91,337.461,337.461,0,0,0-14.9,30.6,447.848,447.848,0,0,0-134.426,0,309.541,309.541,0,0,0-15.135-30.6,1.89,1.89,0,0,0-1.924-.91A483.689,483.689,0,0,0,116.085,69.137a1.712,1.712,0,0,0-.788.676C39.068,183.651,18.186,294.69,28.43,404.354a2.016,2.016,0,0,0,.765,1.375A487.666,487.666,0,0,0,176.02,479.918a1.9,1.9,0,0,0,2.063-.676A348.2,348.2,0,0,0,208.12,430.4a1.86,1.86,0,0,0-1.019-2.588,321.173,321.173,0,0,1-45.868-21.853,1.885,1.885,0,0,1-.185-3.126c3.082-2.309,6.166-4.711,9.109-7.137a1.819,1.819,0,0,1,1.9-.256c96.229,43.917,200.41,43.917,295.5,0a1.812,1.812,0,0,1,1.924.233c2.944,2.426,6.027,4.851,9.132,7.16a1.884,1.884,0,0,1-.162,3.126,301.407,301.407,0,0,1-45.89,21.83,1.875,1.875,0,0,0-1,2.611,391.055,391.055,0,0,0,30.014,48.815,1.864,1.864,0,0,0,2.063.7A486.048,486.048,0,0,0,610.7,405.729a1.882,1.882,0,0,0,.765-1.352C623.729,277.594,590.933,167.465,524.531,69.836ZM222.491,337.58c-28.972,0-52.844-26.587-52.844-59.239S193.056,219.1,222.491,219.1c29.665,0,53.306,26.82,52.843,59.239C275.334,310.993,251.924,337.58,222.491,337.58Zm195.38,0c-28.971,0-52.843-26.587-52.843-59.239S388.437,219.1,417.871,219.1c29.667,0,53.307,26.82,52.844,59.239C470.715,310.993,447.538,337.58,417.871,337.58Z"]},R8={prefix:"fab",iconName:"reddit-alien",icon:[512,512,[],"f281","M440.3 203.5c-15 0-28.2 6.2-37.9 15.9-35.7-24.7-83.8-40.6-137.1-42.3L293 52.3l88.2 19.8c0 21.6 17.6 39.2 39.2 39.2 22 0 39.7-18.1 39.7-39.7s-17.6-39.7-39.7-39.7c-15.4 0-28.7 9.3-35.3 22l-97.4-21.6c-4.9-1.3-9.7 2.2-11 7.1L246.3 177c-52.9 2.2-100.5 18.1-136.3 42.8-9.7-10.1-23.4-16.3-38.4-16.3-55.6 0-73.8 74.6-22.9 100.1-1.8 7.9-2.6 16.3-2.6 24.7 0 83.8 94.4 151.7 210.3 151.7 116.4 0 210.8-67.9 210.8-151.7 0-8.4-.9-17.2-3.1-25.1 49.9-25.6 31.5-99.7-23.8-99.7zM129.4 308.9c0-22 17.6-39.7 39.7-39.7 21.6 0 39.2 17.6 39.2 39.7 0 21.6-17.6 39.2-39.2 39.2-22 .1-39.7-17.6-39.7-39.2zm214.3 93.5c-36.4 36.4-139.1 36.4-175.5 0-4-3.5-4-9.7 0-13.7 3.5-3.5 9.7-3.5 13.2 0 27.8 28.5 120 29 149 0 3.5-3.5 9.7-3.5 13.2 0 4.1 4 4.1 10.2.1 13.7zm-.8-54.2c-21.6 0-39.2-17.6-39.2-39.2 0-22 17.6-39.7 39.2-39.7 22 0 39.7 17.6 39.7 39.7-.1 21.5-17.7 39.2-39.7 39.2z"]},V8={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z"]},K8={prefix:"fab",iconName:"twitter",icon:[512,512,[],"f099","M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"]};function $8(){Ov.add(HF,w8,D8,t8,E8,C8,f8,u8,i8,T8,a8,ZF,s8,DF,RF,YF,NF,B8,e8,l8,WF,_8,$F,n8,MF,UF,g8,K8,XF,V8,R8,H8,LF,I8,h8,VF,qF,P8,L8,JF,M8,Q8,b8,x8,N8,O8,GF,v8,d8,o8,S8,jF,zF),Ov.add({prefix:"fak",iconName:"chart-decks",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zM352 464c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16zm0-64c0 16 16 16 32 16l160 0c16 0 32 0 32-16s-16-16-32-16H384c-16 0-32 0-32 16z"]},{prefix:"fak",iconName:"chart-cards",icon:[640,512,[],"","M564 89c13.8-11 16-31.2 5-45s-31.2-16-45-5L383.4 151.5 275.2 70.4c-11.7-8.8-27.8-8.5-39.2 .6L76 199c-13.8 11-16 31.2-5 45s31.2 16 45 5L256.6 136.5l108.2 81.1c11.7 8.8 27.8 8.5 39.2-.6L564 89zM224 256V448c0 17.7 14.3 32 32 32s32-14.3 32-32V256c0-17.7-14.3-32-32-32s-32 14.3-32 32zM96 352v96c0 17.7 14.3 32 32 32s32-14.3 32-32V352c0-17.7-14.3-32-32-32s-32 14.3-32 32zm480-96c0-16-16-32-32-32H448c-16 0-32.6 16-32.6 32s0 176 .6 192s16 32 32 32h96c16 0 32-16 32-32V256z"]},{prefix:"fak",iconName:"chart-decks-2",icon:[603,512,[],"","M467.1 210.8c4.3 0-60.2 0 15.1 0C467.8 108.4 377.7 0 271.4 0c-5.1 0-10.1 .2-15.1 .6V225.9h75.3c0-15.1 45.2-15.1 135.5-15.1zM301.5 346.4c0-27.1 0-45.2 0-75.3H211.1V30.6C93.4 38.4 .3 136.3 .3 256c0 124.8 101.2 225.9 225.9 225.9c41.2 0 42.1 4.2 75.3-15.1c0-45.2 0-80.5 0-120.5zm45.2 105.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1zm0-90.4c0 30.1 30.1 30.1 30.1 30.1H557.5s30.1 0 30.1-30.1s-30.1-30.1-30.1-30.1H376.8s-30.1 0-30.1 30.1z"]},{prefix:"fak",iconName:"chart-cards-2",icon:[603,512,[],"","M376.8 195.8c28.3-14.2 60.2 0 75.3 30.1h60.2c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2V256c0 24.9 20.2 45.2 45.2 45.2H256.3c-15.1-30.1 15.1-45.2 15.1-45.2s75.3-45.2 105.4-60.2zm-90.4 256c12.8 0 45.2 0 45.2 0L271.4 331.3H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H286.4zM452.1 105.4V75.3c0-24.9-20.2-45.2-45.2-45.2H135.9c-24.9 0-45.2 20.2-45.2 45.2v30.1c0 24.9 20.2 45.2 45.2 45.2H406.9c24.9 0 45.2-20.2 45.2-45.2zM285.8 273.7c-13.8 8.2-18.5 26.2-10.5 40.3l86.4 153.2c8 14.1 25.6 19 39.4 10.8l99.8-59c13.8-8.2 18.5-26.2 10.6-40.3L425 225.5c-8-14.1-25.6-18.9-39.4-10.7l-99.9 58.9zM509.2 433.7l-70 41.3c5 4.3 11.5 6.9 18.6 6.9h116c16 0 29-13.3 29-29.6V274.4c0-16.4-13-29.6-29-29.6h-116c-.9 0-1.8 .1-2.7 .1l70.8 125.4c12.5 22.2 5.1 50.6-16.6 63.4z"]})}const Hw=ca.defineStore("searchBarOptions",{state:()=>({cardOptions:[],playerOptions:[]}),actions:{addOption(e){if(e.type==="card"){if(this.cardOptions.findIndex(t=>t.link===e.link)!==-1){console.log("Repeat Link",e);return}this.cardOptions.length>=5&&this.cardOptions.shift(),this.cardOptions.push(e)}else{if(this.playerOptions.findIndex(t=>t.link===e.link)!==-1){console.log("Repeat Link",e);return}this.playerOptions.length>=5&&this.playerOptions.shift(),this.playerOptions.push(e)}this.sync()},startup(){this.cardOptions=JSON.parse(localStorage.getItem("search-bar-options-card")??"[]"),this.playerOptions=JSON.parse(localStorage.getItem("search-bar-options-player")??"[]")},sync(){localStorage.setItem("search-bar-options-card",JSON.stringify(this.cardOptions)),localStorage.setItem("search-bar-options-player",JSON.stringify(this.playerOptions))}}}),z8=ca.defineStore("filters",{state:()=>({filters:{}}),actions:{update(e){for(let t in e)this.filters[t]=e[t];this.sync()},startup(){this.filters=JSON.parse(localStorage.getItem("filters")??"{}")},sync(){localStorage.setItem("filters",JSON.stringify(this.filters))}}}),Rw=ca.defineStore("cardJson",{state:()=>({cardJson:[]}),actions:{update(e){this.cardJson=e}}});function Mv(e){return e!==null&&typeof e=="object"&&"constructor"in e&&e.constructor===Object}function gm(e={},t={}){Object.keys(t).forEach(n=>{typeof e[n]>"u"?e[n]=t[n]:Mv(t[n])&&Mv(e[n])&&Object.keys(t[n]).length>0&&gm(e[n],t[n])})}const Vw={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector(){return null},querySelectorAll(){return[]},getElementById(){return null},createEvent(){return{initEvent(){}}},createElement(){return{children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName(){return[]}}},createElementNS(){return{}},importNode(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function zi(){const e=typeof document<"u"?document:{};return gm(e,Vw),e}const W8={document:Vw,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle(){return{getPropertyValue(){return""}}},Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia(){return{}},requestAnimationFrame(e){return typeof setTimeout>"u"?(e(),null):setTimeout(e,0)},cancelAnimationFrame(e){typeof setTimeout>"u"||clearTimeout(e)}};function Un(){const e=typeof window<"u"?window:{};return gm(e,W8),e}function G8(e){const t=e;Object.keys(t).forEach(n=>{try{t[n]=null}catch{}try{delete t[n]}catch{}})}function Up(e,t=0){return setTimeout(e,t)}function Au(){return Date.now()}function j8(e){const t=Un();let n;return t.getComputedStyle&&(n=t.getComputedStyle(e,null)),!n&&e.currentStyle&&(n=e.currentStyle),n||(n=e.style),n}function Y8(e,t="x"){const n=Un();let r,a,i;const s=j8(e);return n.WebKitCSSMatrix?(a=s.transform||s.webkitTransform,a.split(",").length>6&&(a=a.split(", ").map(A=>A.replace(",",".")).join(", ")),i=new n.WebKitCSSMatrix(a==="none"?"":a)):(i=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),t==="x"&&(n.WebKitCSSMatrix?a=i.m41:r.length===16?a=parseFloat(r[12]):a=parseFloat(r[4])),t==="y"&&(n.WebKitCSSMatrix?a=i.m42:r.length===16?a=parseFloat(r[13]):a=parseFloat(r[5])),a||0}function Rl(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function q8(e){return typeof window<"u"&&typeof window.HTMLElement<"u"?e instanceof HTMLElement:e&&(e.nodeType===1||e.nodeType===11)}function Cn(...e){const t=Object(e[0]),n=["__proto__","constructor","prototype"];for(let r=1;r<e.length;r+=1){const a=e[r];if(a!=null&&!q8(a)){const i=Object.keys(Object(a)).filter(s=>n.indexOf(s)<0);for(let s=0,A=i.length;s<A;s+=1){const l=i[s],c=Object.getOwnPropertyDescriptor(a,l);c!==void 0&&c.enumerable&&(Rl(t[l])&&Rl(a[l])?a[l].__swiper__?t[l]=a[l]:Cn(t[l],a[l]):!Rl(t[l])&&Rl(a[l])?(t[l]={},a[l].__swiper__?t[l]=a[l]:Cn(t[l],a[l])):t[l]=a[l])}}}return t}function Vl(e,t,n){e.style.setProperty(t,n)}function Kw({swiper:e,targetPosition:t,side:n}){const r=Un(),a=-e.translate;let i=null,s;const A=e.params.speed;e.wrapperEl.style.scrollSnapType="none",r.cancelAnimationFrame(e.cssModeFrameID);const l=t>a?"next":"prev",c=(d,f)=>l==="next"&&d>=f||l==="prev"&&d<=f,u=()=>{s=new Date().getTime(),i===null&&(i=s);const d=Math.max(Math.min((s-i)/A,1),0),f=.5-Math.cos(d*Math.PI)/2;let p=a+f*(t-a);if(c(p,t)&&(p=t),e.wrapperEl.scrollTo({[n]:p}),c(p,t)){e.wrapperEl.style.overflow="hidden",e.wrapperEl.style.scrollSnapType="",setTimeout(()=>{e.wrapperEl.style.overflow="",e.wrapperEl.scrollTo({[n]:p})}),r.cancelAnimationFrame(e.cssModeFrameID);return}e.cssModeFrameID=r.requestAnimationFrame(u)};u()}function yr(e,t=""){return[...e.children].filter(n=>n.matches(t))}function $w(e,t=[]){const n=document.createElement(e);return n.classList.add(...Array.isArray(t)?t:[t]),n}function X8(e,t){const n=[];for(;e.previousElementSibling;){const r=e.previousElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function J8(e,t){const n=[];for(;e.nextElementSibling;){const r=e.nextElementSibling;t?r.matches(t)&&n.push(r):n.push(r),e=r}return n}function Fa(e,t){return Un().getComputedStyle(e,null).getPropertyValue(t)}function Nv(e){let t=e,n;if(t){for(n=0;(t=t.previousSibling)!==null;)t.nodeType===1&&(n+=1);return n}}function Z8(e,t){const n=[];let r=e.parentElement;for(;r;)t?r.matches(t)&&n.push(r):n.push(r),r=r.parentElement;return n}function Pv(e,t,n){const r=Un();return n?e[t==="width"?"offsetWidth":"offsetHeight"]+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-right":"margin-top"))+parseFloat(r.getComputedStyle(e,null).getPropertyValue(t==="width"?"margin-left":"margin-bottom")):e.offsetWidth}let Af;function e5(){const e=Un(),t=zi();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}function zw(){return Af||(Af=e5()),Af}let lf;function t5({userAgent:e}={}){const t=zw(),n=Un(),r=n.navigator.platform,a=e||n.navigator.userAgent,i={ios:!1,android:!1},s=n.screen.width,A=n.screen.height,l=a.match(/(Android);?[\s\/]+([\d.]+)?/);let c=a.match(/(iPad).*OS\s([\d_]+)/);const u=a.match(/(iPod)(.*OS\s([\d_]+))?/),d=!c&&a.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f=r==="Win32";let p=r==="MacIntel";const h=["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"];return!c&&p&&t.touch&&h.indexOf(`${s}x${A}`)>=0&&(c=a.match(/(Version)\/([\d.]+)/),c||(c=[0,1,"13_0_0"]),p=!1),l&&!f&&(i.os="android",i.android=!0),(c||d||u)&&(i.os="ios",i.ios=!0),i}function n5(e={}){return lf||(lf=t5(e)),lf}let cf;function r5(){const e=Un();let t=!1;function n(){const r=e.navigator.userAgent.toLowerCase();return r.indexOf("safari")>=0&&r.indexOf("chrome")<0&&r.indexOf("android")<0}if(n()){const r=String(e.navigator.userAgent);if(r.includes("Version/")){const[a,i]=r.split("Version/")[1].split(" ")[0].split(".").map(s=>Number(s));t=a<16||a===16&&i<2}}return{isSafari:t||n(),needPerspectiveFix:t,isWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)}}function a5(){return cf||(cf=r5()),cf}function i5({swiper:e,on:t,emit:n}){const r=Un();let a=null,i=null;const s=()=>{!e||e.destroyed||!e.initialized||(n("beforeResize"),n("resize"))},A=()=>{!e||e.destroyed||!e.initialized||(a=new ResizeObserver(u=>{i=r.requestAnimationFrame(()=>{const{width:d,height:f}=e;let p=d,h=f;u.forEach(({contentBoxSize:g,contentRect:B,target:m})=>{m&&m!==e.el||(p=B?B.width:(g[0]||g).inlineSize,h=B?B.height:(g[0]||g).blockSize)}),(p!==d||h!==f)&&s()})}),a.observe(e.el))},l=()=>{i&&r.cancelAnimationFrame(i),a&&a.unobserve&&e.el&&(a.unobserve(e.el),a=null)},c=()=>{!e||e.destroyed||!e.initialized||n("orientationchange")};t("init",()=>{if(e.params.resizeObserver&&typeof r.ResizeObserver<"u"){A();return}r.addEventListener("resize",s),r.addEventListener("orientationchange",c)}),t("destroy",()=>{l(),r.removeEventListener("resize",s),r.removeEventListener("orientationchange",c)})}function s5({swiper:e,extendParams:t,on:n,emit:r}){const a=[],i=Un(),s=(c,u={})=>{const d=i.MutationObserver||i.WebkitMutationObserver,f=new d(p=>{if(e.__preventObserver__)return;if(p.length===1){r("observerUpdate",p[0]);return}const h=function(){r("observerUpdate",p[0])};i.requestAnimationFrame?i.requestAnimationFrame(h):i.setTimeout(h,0)});f.observe(c,{attributes:typeof u.attributes>"u"?!0:u.attributes,childList:typeof u.childList>"u"?!0:u.childList,characterData:typeof u.characterData>"u"?!0:u.characterData}),a.push(f)},A=()=>{if(e.params.observer){if(e.params.observeParents){const c=Z8(e.el);for(let u=0;u<c.length;u+=1)s(c[u])}s(e.el,{childList:e.params.observeSlideChildren}),s(e.wrapperEl,{attributes:!1})}},l=()=>{a.forEach(c=>{c.disconnect()}),a.splice(0,a.length)};t({observer:!1,observeParents:!1,observeSlideChildren:!1}),n("init",A),n("destroy",l)}const o5={on(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;const a=n?"unshift":"push";return e.split(" ").forEach(i=>{r.eventsListeners[i]||(r.eventsListeners[i]=[]),r.eventsListeners[i][a](t)}),r},once(e,t,n){const r=this;if(!r.eventsListeners||r.destroyed||typeof t!="function")return r;function a(...i){r.off(e,a),a.__emitterProxy&&delete a.__emitterProxy,t.apply(r,i)}return a.__emitterProxy=t,r.on(e,a,n)},onAny(e,t){const n=this;if(!n.eventsListeners||n.destroyed||typeof e!="function")return n;const r=t?"unshift":"push";return n.eventsAnyListeners.indexOf(e)<0&&n.eventsAnyListeners[r](e),n},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsAnyListeners)return t;const n=t.eventsAnyListeners.indexOf(e);return n>=0&&t.eventsAnyListeners.splice(n,1),t},off(e,t){const n=this;return!n.eventsListeners||n.destroyed||!n.eventsListeners||e.split(" ").forEach(r=>{typeof t>"u"?n.eventsListeners[r]=[]:n.eventsListeners[r]&&n.eventsListeners[r].forEach((a,i)=>{(a===t||a.__emitterProxy&&a.__emitterProxy===t)&&n.eventsListeners[r].splice(i,1)})}),n},emit(...e){const t=this;if(!t.eventsListeners||t.destroyed||!t.eventsListeners)return t;let n,r,a;return typeof e[0]=="string"||Array.isArray(e[0])?(n=e[0],r=e.slice(1,e.length),a=t):(n=e[0].events,r=e[0].data,a=e[0].context||t),r.unshift(a),(Array.isArray(n)?n:n.split(" ")).forEach(s=>{t.eventsAnyListeners&&t.eventsAnyListeners.length&&t.eventsAnyListeners.forEach(A=>{A.apply(a,[s,...r])}),t.eventsListeners&&t.eventsListeners[s]&&t.eventsListeners[s].forEach(A=>{A.apply(a,r)})}),t}};function A5(){const e=this;let t,n;const r=e.el;typeof e.params.width<"u"&&e.params.width!==null?t=e.params.width:t=r.clientWidth,typeof e.params.height<"u"&&e.params.height!==null?n=e.params.height:n=r.clientHeight,!(t===0&&e.isHorizontal()||n===0&&e.isVertical())&&(t=t-parseInt(Fa(r,"padding-left")||0,10)-parseInt(Fa(r,"padding-right")||0,10),n=n-parseInt(Fa(r,"padding-top")||0,10)-parseInt(Fa(r,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(n)&&(n=0),Object.assign(e,{width:t,height:n,size:e.isHorizontal()?t:n}))}function l5(){const e=this;function t(T){return e.isHorizontal()?T:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[T]}function n(T,F){return parseFloat(T.getPropertyValue(t(F))||0)}const r=e.params,{wrapperEl:a,slidesEl:i,size:s,rtlTranslate:A,wrongRTL:l}=e,c=e.virtual&&r.virtual.enabled,u=c?e.virtual.slides.length:e.slides.length,d=yr(i,`.${e.params.slideClass}, swiper-slide`),f=c?e.virtual.slides.length:d.length;let p=[];const h=[],g=[];let B=r.slidesOffsetBefore;typeof B=="function"&&(B=r.slidesOffsetBefore.call(e));let m=r.slidesOffsetAfter;typeof m=="function"&&(m=r.slidesOffsetAfter.call(e));const v=e.snapGrid.length,w=e.slidesGrid.length;let y=r.spaceBetween,b=-B,_=0,C=0;if(typeof s>"u")return;typeof y=="string"&&y.indexOf("%")>=0?y=parseFloat(y.replace("%",""))/100*s:typeof y=="string"&&(y=parseFloat(y)),e.virtualSize=-y,d.forEach(T=>{A?T.style.marginLeft="":T.style.marginRight="",T.style.marginBottom="",T.style.marginTop=""}),r.centeredSlides&&r.cssMode&&(Vl(a,"--swiper-centered-offset-before",""),Vl(a,"--swiper-centered-offset-after",""));const E=r.grid&&r.grid.rows>1&&e.grid;E&&e.grid.initSlides(f);let S;const D=r.slidesPerView==="auto"&&r.breakpoints&&Object.keys(r.breakpoints).filter(T=>typeof r.breakpoints[T].slidesPerView<"u").length>0;for(let T=0;T<f;T+=1){S=0;let F;if(d[T]&&(F=d[T]),E&&e.grid.updateSlide(T,F,f,t),!(d[T]&&Fa(F,"display")==="none")){if(r.slidesPerView==="auto"){D&&(d[T].style[t("width")]="");const U=getComputedStyle(F),Y=F.style.transform,X=F.style.webkitTransform;if(Y&&(F.style.transform="none"),X&&(F.style.webkitTransform="none"),r.roundLengths)S=e.isHorizontal()?Pv(F,"width",!0):Pv(F,"height",!0);else{const j=n(U,"width"),K=n(U,"padding-left"),Ae=n(U,"padding-right"),$=n(U,"margin-left"),ie=n(U,"margin-right"),ce=U.getPropertyValue("box-sizing");if(ce&&ce==="border-box")S=j+$+ie;else{const{clientWidth:Be,offsetWidth:xe}=F;S=j+K+Ae+$+ie+(xe-Be)}}Y&&(F.style.transform=Y),X&&(F.style.webkitTransform=X),r.roundLengths&&(S=Math.floor(S))}else S=(s-(r.slidesPerView-1)*y)/r.slidesPerView,r.roundLengths&&(S=Math.floor(S)),d[T]&&(d[T].style[t("width")]=`${S}px`);d[T]&&(d[T].swiperSlideSize=S),g.push(S),r.centeredSlides?(b=b+S/2+_/2+y,_===0&&T!==0&&(b=b-s/2-y),T===0&&(b=b-s/2-y),Math.abs(b)<1/1e3&&(b=0),r.roundLengths&&(b=Math.floor(b)),C%r.slidesPerGroup===0&&p.push(b),h.push(b)):(r.roundLengths&&(b=Math.floor(b)),(C-Math.min(e.params.slidesPerGroupSkip,C))%e.params.slidesPerGroup===0&&p.push(b),h.push(b),b=b+S+y),e.virtualSize+=S+y,_=S,C+=1}}if(e.virtualSize=Math.max(e.virtualSize,s)+m,A&&l&&(r.effect==="slide"||r.effect==="coverflow")&&(a.style.width=`${e.virtualSize+y}px`),r.setWrapperSize&&(a.style[t("width")]=`${e.virtualSize+y}px`),E&&e.grid.updateWrapperSize(S,p,t),!r.centeredSlides){const T=[];for(let F=0;F<p.length;F+=1){let U=p[F];r.roundLengths&&(U=Math.floor(U)),p[F]<=e.virtualSize-s&&T.push(U)}p=T,Math.floor(e.virtualSize-s)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-s)}if(c&&r.loop){const T=g[0]+y;if(r.slidesPerGroup>1){const F=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/r.slidesPerGroup),U=T*r.slidesPerGroup;for(let Y=0;Y<F;Y+=1)p.push(p[p.length-1]+U)}for(let F=0;F<e.virtual.slidesBefore+e.virtual.slidesAfter;F+=1)r.slidesPerGroup===1&&p.push(p[p.length-1]+T),h.push(h[h.length-1]+T),e.virtualSize+=T}if(p.length===0&&(p=[0]),y!==0){const T=e.isHorizontal()&&A?"marginLeft":t("marginRight");d.filter((F,U)=>!r.cssMode||r.loop?!0:U!==d.length-1).forEach(F=>{F.style[T]=`${y}px`})}if(r.centeredSlides&&r.centeredSlidesBounds){let T=0;g.forEach(U=>{T+=U+(y||0)}),T-=y;const F=T-s;p=p.map(U=>U<0?-B:U>F?F+m:U)}if(r.centerInsufficientSlides){let T=0;if(g.forEach(F=>{T+=F+(y||0)}),T-=y,T<s){const F=(s-T)/2;p.forEach((U,Y)=>{p[Y]=U-F}),h.forEach((U,Y)=>{h[Y]=U+F})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:h,slidesSizesGrid:g}),r.centeredSlides&&r.cssMode&&!r.centeredSlidesBounds){Vl(a,"--swiper-centered-offset-before",`${-p[0]}px`),Vl(a,"--swiper-centered-offset-after",`${e.size/2-g[g.length-1]/2}px`);const T=-e.snapGrid[0],F=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(U=>U+T),e.slidesGrid=e.slidesGrid.map(U=>U+F)}if(f!==u&&e.emit("slidesLengthChange"),p.length!==v&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),h.length!==w&&e.emit("slidesGridLengthChange"),r.watchSlidesProgress&&e.updateSlidesOffset(),!c&&!r.cssMode&&(r.effect==="slide"||r.effect==="fade")){const T=`${r.containerModifierClass}backface-hidden`,F=e.el.classList.contains(T);f<=r.maxBackfaceHiddenSlides?F||e.el.classList.add(T):F&&e.el.classList.remove(T)}}function c5(e){const t=this,n=[],r=t.virtual&&t.params.virtual.enabled;let a=0,i;typeof e=="number"?t.setTransition(e):e===!0&&t.setTransition(t.params.speed);const s=A=>r?t.slides[t.getSlideIndexByData(A)]:t.slides[A];if(t.params.slidesPerView!=="auto"&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(A=>{n.push(A)});else for(i=0;i<Math.ceil(t.params.slidesPerView);i+=1){const A=t.activeIndex+i;if(A>t.slides.length&&!r)break;n.push(s(A))}else n.push(s(t.activeIndex));for(i=0;i<n.length;i+=1)if(typeof n[i]<"u"){const A=n[i].offsetHeight;a=A>a?A:a}(a||a===0)&&(t.wrapperEl.style.height=`${a}px`)}function u5(){const e=this,t=e.slides,n=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let r=0;r<t.length;r+=1)t[r].swiperSlideOffset=(e.isHorizontal()?t[r].offsetLeft:t[r].offsetTop)-n-e.cssOverflowAdjustment()}function d5(e=this&&this.translate||0){const t=this,n=t.params,{slides:r,rtlTranslate:a,snapGrid:i}=t;if(r.length===0)return;typeof r[0].swiperSlideOffset>"u"&&t.updateSlidesOffset();let s=-e;a&&(s=e),r.forEach(l=>{l.classList.remove(n.slideVisibleClass)}),t.visibleSlidesIndexes=[],t.visibleSlides=[];let A=n.spaceBetween;typeof A=="string"&&A.indexOf("%")>=0?A=parseFloat(A.replace("%",""))/100*t.size:typeof A=="string"&&(A=parseFloat(A));for(let l=0;l<r.length;l+=1){const c=r[l];let u=c.swiperSlideOffset;n.cssMode&&n.centeredSlides&&(u-=r[0].swiperSlideOffset);const d=(s+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+A),f=(s-i[0]+(n.centeredSlides?t.minTranslate():0)-u)/(c.swiperSlideSize+A),p=-(s-u),h=p+t.slidesSizesGrid[l];(p>=0&&p<t.size-1||h>1&&h<=t.size||p<=0&&h>=t.size)&&(t.visibleSlides.push(c),t.visibleSlidesIndexes.push(l),r[l].classList.add(n.slideVisibleClass)),c.progress=a?-d:d,c.originalProgress=a?-f:f}}function f5(e){const t=this;if(typeof e>"u"){const u=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*u||0}const n=t.params,r=t.maxTranslate()-t.minTranslate();let{progress:a,isBeginning:i,isEnd:s,progressLoop:A}=t;const l=i,c=s;if(r===0)a=0,i=!0,s=!0;else{a=(e-t.minTranslate())/r;const u=Math.abs(e-t.minTranslate())<1,d=Math.abs(e-t.maxTranslate())<1;i=u||a<=0,s=d||a>=1,u&&(a=0),d&&(a=1)}if(n.loop){const u=t.getSlideIndexByData(0),d=t.getSlideIndexByData(t.slides.length-1),f=t.slidesGrid[u],p=t.slidesGrid[d],h=t.slidesGrid[t.slidesGrid.length-1],g=Math.abs(e);g>=f?A=(g-f)/h:A=(g+h-p)/h,A>1&&(A-=1)}Object.assign(t,{progress:a,progressLoop:A,isBeginning:i,isEnd:s}),(n.watchSlidesProgress||n.centeredSlides&&n.autoHeight)&&t.updateSlidesProgress(e),i&&!l&&t.emit("reachBeginning toEdge"),s&&!c&&t.emit("reachEnd toEdge"),(l&&!i||c&&!s)&&t.emit("fromEdge"),t.emit("progress",a)}function p5(){const e=this,{slides:t,params:n,slidesEl:r,activeIndex:a}=e,i=e.virtual&&n.virtual.enabled,s=l=>yr(r,`.${n.slideClass}${l}, swiper-slide${l}`)[0];t.forEach(l=>{l.classList.remove(n.slideActiveClass,n.slideNextClass,n.slidePrevClass)});let A;if(i)if(n.loop){let l=a-e.virtual.slidesBefore;l<0&&(l=e.virtual.slides.length+l),l>=e.virtual.slides.length&&(l-=e.virtual.slides.length),A=s(`[data-swiper-slide-index="${l}"]`)}else A=s(`[data-swiper-slide-index="${a}"]`);else A=t[a];if(A){A.classList.add(n.slideActiveClass);let l=J8(A,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!l&&(l=t[0]),l&&l.classList.add(n.slideNextClass);let c=X8(A,`.${n.slideClass}, swiper-slide`)[0];n.loop&&!c===0&&(c=t[t.length-1]),c&&c.classList.add(n.slidePrevClass)}e.emitSlidesClasses()}const Nc=(e,t)=>{if(!e||e.destroyed||!e.params)return;const n=()=>e.isElement?"swiper-slide":`.${e.params.slideClass}`,r=t.closest(n());if(r){const a=r.querySelector(`.${e.params.lazyPreloaderClass}`);a&&a.remove()}},Hv=(e,t)=>{if(!e.slides[t])return;const n=e.slides[t].querySelector('[loading="lazy"]');n&&n.removeAttribute("loading")},Dp=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const n=e.slides.length;if(!n||!t||t<0)return;t=Math.min(t,n);const r=e.params.slidesPerView==="auto"?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),a=e.activeIndex,i=a+r-1;if(e.params.rewind)for(let s=a-t;s<=i+t;s+=1){const A=(s%n+n)%n;A!==a&&A>i&&Hv(e,A)}else for(let s=Math.max(i-t,0);s<=Math.min(i+t,n-1);s+=1)s!==a&&s>i&&Hv(e,s)};function h5(e){const{slidesGrid:t,params:n}=e,r=e.rtlTranslate?e.translate:-e.translate;let a;for(let i=0;i<t.length;i+=1)typeof t[i+1]<"u"?r>=t[i]&&r<t[i+1]-(t[i+1]-t[i])/2?a=i:r>=t[i]&&r<t[i+1]&&(a=i+1):r>=t[i]&&(a=i);return n.normalizeSlideIndex&&(a<0||typeof a>"u")&&(a=0),a}function m5(e){const t=this,n=t.rtlTranslate?t.translate:-t.translate,{snapGrid:r,params:a,activeIndex:i,realIndex:s,snapIndex:A}=t;let l=e,c;const u=f=>{let p=f-t.virtual.slidesBefore;return p<0&&(p=t.virtual.slides.length+p),p>=t.virtual.slides.length&&(p-=t.virtual.slides.length),p};if(typeof l>"u"&&(l=h5(t)),r.indexOf(n)>=0)c=r.indexOf(n);else{const f=Math.min(a.slidesPerGroupSkip,l);c=f+Math.floor((l-f)/a.slidesPerGroup)}if(c>=r.length&&(c=r.length-1),l===i){c!==A&&(t.snapIndex=c,t.emit("snapIndexChange")),t.params.loop&&t.virtual&&t.params.virtual.enabled&&(t.realIndex=u(l));return}let d;t.virtual&&a.virtual.enabled&&a.loop?d=u(l):t.slides[l]?d=parseInt(t.slides[l].getAttribute("data-swiper-slide-index")||l,10):d=l,Object.assign(t,{previousSnapIndex:A,snapIndex:c,previousRealIndex:s,realIndex:d,previousIndex:i,activeIndex:l}),t.initialized&&Dp(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),s!==d&&t.emit("realIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&t.emit("slideChange")}function g5(e){const t=this,n=t.params,r=e.closest(`.${n.slideClass}, swiper-slide`);let a=!1,i;if(r){for(let s=0;s<t.slides.length;s+=1)if(t.slides[s]===r){a=!0,i=s;break}}if(r&&a)t.clickedSlide=r,t.virtual&&t.params.virtual.enabled?t.clickedIndex=parseInt(r.getAttribute("data-swiper-slide-index"),10):t.clickedIndex=i;else{t.clickedSlide=void 0,t.clickedIndex=void 0;return}n.slideToClickedSlide&&t.clickedIndex!==void 0&&t.clickedIndex!==t.activeIndex&&t.slideToClickedSlide()}const v5={updateSize:A5,updateSlides:l5,updateAutoHeight:c5,updateSlidesOffset:u5,updateSlidesProgress:d5,updateProgress:f5,updateSlidesClasses:p5,updateActiveIndex:m5,updateClickedSlide:g5};function y5(e=this.isHorizontal()?"x":"y"){const t=this,{params:n,rtlTranslate:r,translate:a,wrapperEl:i}=t;if(n.virtualTranslate)return r?-a:a;if(n.cssMode)return a;let s=Y8(i,e);return s+=t.cssOverflowAdjustment(),r&&(s=-s),s||0}function B5(e,t){const n=this,{rtlTranslate:r,params:a,wrapperEl:i,progress:s}=n;let A=0,l=0;const c=0;n.isHorizontal()?A=r?-e:e:l=e,a.roundLengths&&(A=Math.floor(A),l=Math.floor(l)),n.previousTranslate=n.translate,n.translate=n.isHorizontal()?A:l,a.cssMode?i[n.isHorizontal()?"scrollLeft":"scrollTop"]=n.isHorizontal()?-A:-l:a.virtualTranslate||(n.isHorizontal()?A-=n.cssOverflowAdjustment():l-=n.cssOverflowAdjustment(),i.style.transform=`translate3d(${A}px, ${l}px, ${c}px)`);let u;const d=n.maxTranslate()-n.minTranslate();d===0?u=0:u=(e-n.minTranslate())/d,u!==s&&n.updateProgress(e),n.emit("setTranslate",n.translate,t)}function w5(){return-this.snapGrid[0]}function b5(){return-this.snapGrid[this.snapGrid.length-1]}function _5(e=0,t=this.params.speed,n=!0,r=!0,a){const i=this,{params:s,wrapperEl:A}=i;if(i.animating&&s.preventInteractionOnTransition)return!1;const l=i.minTranslate(),c=i.maxTranslate();let u;if(r&&e>l?u=l:r&&e<c?u=c:u=e,i.updateProgress(u),s.cssMode){const d=i.isHorizontal();if(t===0)A[d?"scrollLeft":"scrollTop"]=-u;else{if(!i.support.smoothScroll)return Kw({swiper:i,targetPosition:-u,side:d?"left":"top"}),!0;A.scrollTo({[d?"left":"top"]:-u,behavior:"smooth"})}return!0}return t===0?(i.setTransition(0),i.setTranslate(u),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionEnd"))):(i.setTransition(t),i.setTranslate(u),n&&(i.emit("beforeTransitionStart",t,a),i.emit("transitionStart")),i.animating||(i.animating=!0,i.onTranslateToWrapperTransitionEnd||(i.onTranslateToWrapperTransitionEnd=function(f){!i||i.destroyed||f.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onTranslateToWrapperTransitionEnd),i.onTranslateToWrapperTransitionEnd=null,delete i.onTranslateToWrapperTransitionEnd,n&&i.emit("transitionEnd"))}),i.wrapperEl.addEventListener("transitionend",i.onTranslateToWrapperTransitionEnd))),!0}const C5={getTranslate:y5,setTranslate:B5,minTranslate:w5,maxTranslate:b5,translateTo:_5};function k5(e,t){const n=this;n.params.cssMode||(n.wrapperEl.style.transitionDuration=`${e}ms`),n.emit("setTransition",e,t)}function Ww({swiper:e,runCallbacks:t,direction:n,step:r}){const{activeIndex:a,previousIndex:i}=e;let s=n;if(s||(a>i?s="next":a<i?s="prev":s="reset"),e.emit(`transition${r}`),t&&a!==i){if(s==="reset"){e.emit(`slideResetTransition${r}`);return}e.emit(`slideChangeTransition${r}`),s==="next"?e.emit(`slideNextTransition${r}`):e.emit(`slidePrevTransition${r}`)}}function E5(e=!0,t){const n=this,{params:r}=n;r.cssMode||(r.autoHeight&&n.updateAutoHeight(),Ww({swiper:n,runCallbacks:e,direction:t,step:"Start"}))}function S5(e=!0,t){const n=this,{params:r}=n;n.animating=!1,!r.cssMode&&(n.setTransition(0),Ww({swiper:n,runCallbacks:e,direction:t,step:"End"}))}const x5={setTransition:k5,transitionStart:E5,transitionEnd:S5};function F5(e=0,t=this.params.speed,n=!0,r,a){typeof e=="string"&&(e=parseInt(e,10));const i=this;let s=e;s<0&&(s=0);const{params:A,snapGrid:l,slidesGrid:c,previousIndex:u,activeIndex:d,rtlTranslate:f,wrapperEl:p,enabled:h}=i;if(i.animating&&A.preventInteractionOnTransition||!h&&!r&&!a)return!1;const g=Math.min(i.params.slidesPerGroupSkip,s);let B=g+Math.floor((s-g)/i.params.slidesPerGroup);B>=l.length&&(B=l.length-1);const m=-l[B];if(A.normalizeSlideIndex)for(let w=0;w<c.length;w+=1){const y=-Math.floor(m*100),b=Math.floor(c[w]*100),_=Math.floor(c[w+1]*100);typeof c[w+1]<"u"?y>=b&&y<_-(_-b)/2?s=w:y>=b&&y<_&&(s=w+1):y>=b&&(s=w)}if(i.initialized&&s!==d&&(!i.allowSlideNext&&m<i.translate&&m<i.minTranslate()||!i.allowSlidePrev&&m>i.translate&&m>i.maxTranslate()&&(d||0)!==s))return!1;s!==(u||0)&&n&&i.emit("beforeSlideChangeStart"),i.updateProgress(m);let v;if(s>d?v="next":s<d?v="prev":v="reset",f&&-m===i.translate||!f&&m===i.translate)return i.updateActiveIndex(s),A.autoHeight&&i.updateAutoHeight(),i.updateSlidesClasses(),A.effect!=="slide"&&i.setTranslate(m),v!=="reset"&&(i.transitionStart(n,v),i.transitionEnd(n,v)),!1;if(A.cssMode){const w=i.isHorizontal(),y=f?m:-m;if(t===0){const b=i.virtual&&i.params.virtual.enabled;b&&(i.wrapperEl.style.scrollSnapType="none",i._immediateVirtual=!0),b&&!i._cssModeVirtualInitialSet&&i.params.initialSlide>0?(i._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{p[w?"scrollLeft":"scrollTop"]=y})):p[w?"scrollLeft":"scrollTop"]=y,b&&requestAnimationFrame(()=>{i.wrapperEl.style.scrollSnapType="",i._immediateVirtual=!1})}else{if(!i.support.smoothScroll)return Kw({swiper:i,targetPosition:y,side:w?"left":"top"}),!0;p.scrollTo({[w?"left":"top"]:y,behavior:"smooth"})}return!0}return i.setTransition(t),i.setTranslate(m),i.updateActiveIndex(s),i.updateSlidesClasses(),i.emit("beforeTransitionStart",t,r),i.transitionStart(n,v),t===0?i.transitionEnd(n,v):i.animating||(i.animating=!0,i.onSlideToWrapperTransitionEnd||(i.onSlideToWrapperTransitionEnd=function(y){!i||i.destroyed||y.target===this&&(i.wrapperEl.removeEventListener("transitionend",i.onSlideToWrapperTransitionEnd),i.onSlideToWrapperTransitionEnd=null,delete i.onSlideToWrapperTransitionEnd,i.transitionEnd(n,v))}),i.wrapperEl.addEventListener("transitionend",i.onSlideToWrapperTransitionEnd)),!0}function I5(e=0,t=this.params.speed,n=!0,r){typeof e=="string"&&(e=parseInt(e,10));const a=this;let i=e;return a.params.loop&&(a.virtual&&a.params.virtual.enabled?i=i+a.virtual.slidesBefore:i=a.getSlideIndexByData(i)),a.slideTo(i,t,n,r)}function T5(e=this.params.speed,t=!0,n){const r=this,{enabled:a,params:i,animating:s}=r;if(!a)return r;let A=i.slidesPerGroup;i.slidesPerView==="auto"&&i.slidesPerGroup===1&&i.slidesPerGroupAuto&&(A=Math.max(r.slidesPerViewDynamic("current",!0),1));const l=r.activeIndex<i.slidesPerGroupSkip?1:A,c=r.virtual&&i.virtual.enabled;if(i.loop){if(s&&!c&&i.loopPreventsSliding)return!1;r.loopFix({direction:"next"}),r._clientLeft=r.wrapperEl.clientLeft}return i.rewind&&r.isEnd?r.slideTo(0,e,t,n):r.slideTo(r.activeIndex+l,e,t,n)}function U5(e=this.params.speed,t=!0,n){const r=this,{params:a,snapGrid:i,slidesGrid:s,rtlTranslate:A,enabled:l,animating:c}=r;if(!l)return r;const u=r.virtual&&a.virtual.enabled;if(a.loop){if(c&&!u&&a.loopPreventsSliding)return!1;r.loopFix({direction:"prev"}),r._clientLeft=r.wrapperEl.clientLeft}const d=A?r.translate:-r.translate;function f(m){return m<0?-Math.floor(Math.abs(m)):Math.floor(m)}const p=f(d),h=i.map(m=>f(m));let g=i[h.indexOf(p)-1];if(typeof g>"u"&&a.cssMode){let m;i.forEach((v,w)=>{p>=v&&(m=w)}),typeof m<"u"&&(g=i[m>0?m-1:m])}let B=0;if(typeof g<"u"&&(B=s.indexOf(g),B<0&&(B=r.activeIndex-1),a.slidesPerView==="auto"&&a.slidesPerGroup===1&&a.slidesPerGroupAuto&&(B=B-r.slidesPerViewDynamic("previous",!0)+1,B=Math.max(B,0))),a.rewind&&r.isBeginning){const m=r.params.virtual&&r.params.virtual.enabled&&r.virtual?r.virtual.slides.length-1:r.slides.length-1;return r.slideTo(m,e,t,n)}return r.slideTo(B,e,t,n)}function D5(e=this.params.speed,t=!0,n){const r=this;return r.slideTo(r.activeIndex,e,t,n)}function Q5(e=this.params.speed,t=!0,n,r=.5){const a=this;let i=a.activeIndex;const s=Math.min(a.params.slidesPerGroupSkip,i),A=s+Math.floor((i-s)/a.params.slidesPerGroup),l=a.rtlTranslate?a.translate:-a.translate;if(l>=a.snapGrid[A]){const c=a.snapGrid[A],u=a.snapGrid[A+1];l-c>(u-c)*r&&(i+=a.params.slidesPerGroup)}else{const c=a.snapGrid[A-1],u=a.snapGrid[A];l-c<=(u-c)*r&&(i-=a.params.slidesPerGroup)}return i=Math.max(i,0),i=Math.min(i,a.slidesGrid.length-1),a.slideTo(i,e,t,n)}function L5(){const e=this,{params:t,slidesEl:n}=e,r=t.slidesPerView==="auto"?e.slidesPerViewDynamic():t.slidesPerView;let a=e.clickedIndex,i;const s=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;i=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-r/2||a>e.slides.length-e.loopedSlides+r/2?(e.loopFix(),a=e.getSlideIndex(yr(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Up(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-r?(e.loopFix(),a=e.getSlideIndex(yr(n,`${s}[data-swiper-slide-index="${i}"]`)[0]),Up(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}const O5={slideTo:F5,slideToLoop:I5,slideNext:T5,slidePrev:U5,slideReset:D5,slideToClosest:Q5,slideToClickedSlide:L5};function M5(e){const t=this,{params:n,slidesEl:r}=t;if(!n.loop||t.virtual&&t.params.virtual.enabled)return;yr(r,`.${n.slideClass}, swiper-slide`).forEach((i,s)=>{i.setAttribute("data-swiper-slide-index",s)}),t.loopFix({slideRealIndex:e,direction:n.centeredSlides?void 0:"next"})}function N5({slideRealIndex:e,slideTo:t=!0,direction:n,setTranslate:r,activeSlideIndex:a,byController:i,byMousewheel:s}={}){const A=this;if(!A.params.loop)return;A.emit("beforeLoopFix");const{slides:l,allowSlidePrev:c,allowSlideNext:u,slidesEl:d,params:f}=A;if(A.allowSlidePrev=!0,A.allowSlideNext=!0,A.virtual&&f.virtual.enabled){t&&(!f.centeredSlides&&A.snapIndex===0?A.slideTo(A.virtual.slides.length,0,!1,!0):f.centeredSlides&&A.snapIndex<f.slidesPerView?A.slideTo(A.virtual.slides.length+A.snapIndex,0,!1,!0):A.snapIndex===A.snapGrid.length-1&&A.slideTo(A.virtual.slidesBefore,0,!1,!0)),A.allowSlidePrev=c,A.allowSlideNext=u,A.emit("loopFix");return}const p=f.slidesPerView==="auto"?A.slidesPerViewDynamic():Math.ceil(parseFloat(f.slidesPerView,10));let h=f.loopedSlides||p;h%f.slidesPerGroup!==0&&(h+=f.slidesPerGroup-h%f.slidesPerGroup),A.loopedSlides=h;const g=[],B=[];let m=A.activeIndex;typeof a>"u"?a=A.getSlideIndex(A.slides.filter(_=>_.classList.contains(f.slideActiveClass))[0]):m=a;const v=n==="next"||!n,w=n==="prev"||!n;let y=0,b=0;if(a<h){y=Math.max(h-a,f.slidesPerGroup);for(let _=0;_<h-a;_+=1){const C=_-Math.floor(_/l.length)*l.length;g.push(l.length-C-1)}}else if(a>A.slides.length-h*2){b=Math.max(a-(A.slides.length-h*2),f.slidesPerGroup);for(let _=0;_<b;_+=1){const C=_-Math.floor(_/l.length)*l.length;B.push(C)}}if(w&&g.forEach(_=>{A.slides[_].swiperLoopMoveDOM=!0,d.prepend(A.slides[_]),A.slides[_].swiperLoopMoveDOM=!1}),v&&B.forEach(_=>{A.slides[_].swiperLoopMoveDOM=!0,d.append(A.slides[_]),A.slides[_].swiperLoopMoveDOM=!1}),A.recalcSlides(),f.slidesPerView==="auto"&&A.updateSlides(),f.watchSlidesProgress&&A.updateSlidesOffset(),t){if(g.length>0&&w)if(typeof e>"u"){const _=A.slidesGrid[m],E=A.slidesGrid[m+y]-_;s?A.setTranslate(A.translate-E):(A.slideTo(m+y,0,!1,!0),r&&(A.touches[A.isHorizontal()?"startX":"startY"]+=E))}else r&&A.slideToLoop(e,0,!1,!0);else if(B.length>0&&v)if(typeof e>"u"){const _=A.slidesGrid[m],E=A.slidesGrid[m-b]-_;s?A.setTranslate(A.translate-E):(A.slideTo(m-b,0,!1,!0),r&&(A.touches[A.isHorizontal()?"startX":"startY"]+=E))}else A.slideToLoop(e,0,!1,!0)}if(A.allowSlidePrev=c,A.allowSlideNext=u,A.controller&&A.controller.control&&!i){const _={slideRealIndex:e,slideTo:!1,direction:n,setTranslate:r,activeSlideIndex:a,byController:!0};Array.isArray(A.controller.control)?A.controller.control.forEach(C=>{!C.destroyed&&C.params.loop&&C.loopFix(_)}):A.controller.control instanceof A.constructor&&A.controller.control.params.loop&&A.controller.control.loopFix(_)}A.emit("loopFix")}function P5(){const e=this,{params:t,slidesEl:n}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const r=[];e.slides.forEach(a=>{const i=typeof a.swiperSlideIndex>"u"?a.getAttribute("data-swiper-slide-index")*1:a.swiperSlideIndex;r[i]=a}),e.slides.forEach(a=>{a.removeAttribute("data-swiper-slide-index")}),r.forEach(a=>{n.append(a)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}const H5={loopCreate:M5,loopFix:N5,loopDestroy:P5};function R5(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const n=t.params.touchEventsTarget==="container"?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),n.style.cursor="move",n.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})}function V5(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e[e.params.touchEventsTarget==="container"?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}const K5={setGrabCursor:R5,unsetGrabCursor:V5};function $5(e,t=this){function n(r){if(!r||r===zi()||r===Un())return null;r.assignedSlot&&(r=r.assignedSlot);const a=r.closest(e);return!a&&!r.getRootNode?null:a||n(r.getRootNode().host)}return n(t)}function z5(e){const t=this,n=zi(),r=Un(),a=t.touchEventsData;a.evCache.push(e);const{params:i,touches:s,enabled:A}=t;if(!A||!i.simulateTouch&&e.pointerType==="mouse"||t.animating&&i.preventInteractionOnTransition)return;!t.animating&&i.cssMode&&i.loop&&t.loopFix();let l=e;l.originalEvent&&(l=l.originalEvent);let c=l.target;if(i.touchEventsTarget==="wrapper"&&!t.wrapperEl.contains(c)||"which"in l&&l.which===3||"button"in l&&l.button>0||a.isTouched&&a.isMoved)return;const u=!!i.noSwipingClass&&i.noSwipingClass!=="",d=e.composedPath?e.composedPath():e.path;u&&l.target&&l.target.shadowRoot&&d&&(c=d[0]);const f=i.noSwipingSelector?i.noSwipingSelector:`.${i.noSwipingClass}`,p=!!(l.target&&l.target.shadowRoot);if(i.noSwiping&&(p?$5(f,c):c.closest(f))){t.allowClick=!0;return}if(i.swipeHandler&&!c.closest(i.swipeHandler))return;s.currentX=l.pageX,s.currentY=l.pageY;const h=s.currentX,g=s.currentY,B=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,m=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(B&&(h<=m||h>=r.innerWidth-m))if(B==="prevent")e.preventDefault();else return;Object.assign(a,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=h,s.startY=g,a.touchStartTime=Au(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,i.threshold>0&&(a.allowThresholdMove=!1);let v=!0;c.matches(a.focusableElements)&&(v=!1,c.nodeName==="SELECT"&&(a.isTouched=!1)),n.activeElement&&n.activeElement.matches(a.focusableElements)&&n.activeElement!==c&&n.activeElement.blur();const w=v&&t.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||w)&&!c.isContentEditable&&l.preventDefault(),t.params.freeMode&&t.params.freeMode.enabled&&t.freeMode&&t.animating&&!i.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",l)}function W5(e){const t=zi(),n=this,r=n.touchEventsData,{params:a,touches:i,rtlTranslate:s,enabled:A}=n;if(!A||!a.simulateTouch&&e.pointerType==="mouse")return;let l=e;if(l.originalEvent&&(l=l.originalEvent),!r.isTouched){r.startMoving&&r.isScrolling&&n.emit("touchMoveOpposite",l);return}const c=r.evCache.findIndex(_=>_.pointerId===l.pointerId);c>=0&&(r.evCache[c]=l);const u=r.evCache.length>1?r.evCache[0]:l,d=u.pageX,f=u.pageY;if(l.preventedByNestedSwiper){i.startX=d,i.startY=f;return}if(!n.allowTouchMove){l.target.matches(r.focusableElements)||(n.allowClick=!1),r.isTouched&&(Object.assign(i,{startX:d,startY:f,prevX:n.touches.currentX,prevY:n.touches.currentY,currentX:d,currentY:f}),r.touchStartTime=Au());return}if(a.touchReleaseOnEdges&&!a.loop){if(n.isVertical()){if(f<i.startY&&n.translate<=n.maxTranslate()||f>i.startY&&n.translate>=n.minTranslate()){r.isTouched=!1,r.isMoved=!1;return}}else if(d<i.startX&&n.translate<=n.maxTranslate()||d>i.startX&&n.translate>=n.minTranslate())return}if(t.activeElement&&l.target===t.activeElement&&l.target.matches(r.focusableElements)){r.isMoved=!0,n.allowClick=!1;return}if(r.allowTouchCallbacks&&n.emit("touchMove",l),l.targetTouches&&l.targetTouches.length>1)return;i.currentX=d,i.currentY=f;const p=i.currentX-i.startX,h=i.currentY-i.startY;if(n.params.threshold&&Math.sqrt(p**2+h**2)<n.params.threshold)return;if(typeof r.isScrolling>"u"){let _;n.isHorizontal()&&i.currentY===i.startY||n.isVertical()&&i.currentX===i.startX?r.isScrolling=!1:p*p+h*h>=25&&(_=Math.atan2(Math.abs(h),Math.abs(p))*180/Math.PI,r.isScrolling=n.isHorizontal()?_>a.touchAngle:90-_>a.touchAngle)}if(r.isScrolling&&n.emit("touchMoveOpposite",l),typeof r.startMoving>"u"&&(i.currentX!==i.startX||i.currentY!==i.startY)&&(r.startMoving=!0),r.isScrolling||n.zoom&&n.params.zoom&&n.params.zoom.enabled&&r.evCache.length>1){r.isTouched=!1;return}if(!r.startMoving)return;n.allowClick=!1,!a.cssMode&&l.cancelable&&l.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&l.stopPropagation();let g=n.isHorizontal()?p:h,B=n.isHorizontal()?i.currentX-i.previousX:i.currentY-i.previousY;a.oneWayMovement&&(g=Math.abs(g)*(s?1:-1),B=Math.abs(B)*(s?1:-1)),i.diff=g,g*=a.touchRatio,s&&(g=-g,B=-B);const m=n.touchesDirection;n.swipeDirection=g>0?"prev":"next",n.touchesDirection=B>0?"prev":"next";const v=n.params.loop&&!a.cssMode;if(!r.isMoved){if(v&&n.loopFix({direction:n.swipeDirection}),r.startTranslate=n.getTranslate(),n.setTransition(0),n.animating){const _=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});n.wrapperEl.dispatchEvent(_)}r.allowMomentumBounce=!1,a.grabCursor&&(n.allowSlideNext===!0||n.allowSlidePrev===!0)&&n.setGrabCursor(!0),n.emit("sliderFirstMove",l)}let w;r.isMoved&&m!==n.touchesDirection&&v&&Math.abs(g)>=1&&(n.loopFix({direction:n.swipeDirection,setTranslate:!0}),w=!0),n.emit("sliderMove",l),r.isMoved=!0,r.currentTranslate=g+r.startTranslate;let y=!0,b=a.resistanceRatio;if(a.touchReleaseOnEdges&&(b=0),g>0?(v&&!w&&r.currentTranslate>(a.centeredSlides?n.minTranslate()-n.size/2:n.minTranslate())&&n.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),r.currentTranslate>n.minTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.minTranslate()-1+(-n.minTranslate()+r.startTranslate+g)**b))):g<0&&(v&&!w&&r.currentTranslate<(a.centeredSlides?n.maxTranslate()+n.size/2:n.maxTranslate())&&n.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:n.slides.length-(a.slidesPerView==="auto"?n.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),r.currentTranslate<n.maxTranslate()&&(y=!1,a.resistance&&(r.currentTranslate=n.maxTranslate()+1-(n.maxTranslate()-r.startTranslate-g)**b))),y&&(l.preventedByNestedSwiper=!0),!n.allowSlideNext&&n.swipeDirection==="next"&&r.currentTranslate<r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&n.swipeDirection==="prev"&&r.currentTranslate>r.startTranslate&&(r.currentTranslate=r.startTranslate),!n.allowSlidePrev&&!n.allowSlideNext&&(r.currentTranslate=r.startTranslate),a.threshold>0)if(Math.abs(g)>a.threshold||r.allowThresholdMove){if(!r.allowThresholdMove){r.allowThresholdMove=!0,i.startX=i.currentX,i.startY=i.currentY,r.currentTranslate=r.startTranslate,i.diff=n.isHorizontal()?i.currentX-i.startX:i.currentY-i.startY;return}}else{r.currentTranslate=r.startTranslate;return}!a.followFinger||a.cssMode||((a.freeMode&&a.freeMode.enabled&&n.freeMode||a.watchSlidesProgress)&&(n.updateActiveIndex(),n.updateSlidesClasses()),n.params.freeMode&&a.freeMode.enabled&&n.freeMode&&n.freeMode.onTouchMove(),n.updateProgress(r.currentTranslate),n.setTranslate(r.currentTranslate))}function G5(e){const t=this,n=t.touchEventsData,r=n.evCache.findIndex(w=>w.pointerId===e.pointerId);if(r>=0&&n.evCache.splice(r,1),["pointercancel","pointerout","pointerleave"].includes(e.type)&&!(e.type==="pointercancel"&&(t.browser.isSafari||t.browser.isWebView)))return;const{params:a,touches:i,rtlTranslate:s,slidesGrid:A,enabled:l}=t;if(!l||!a.simulateTouch&&e.pointerType==="mouse")return;let c=e;if(c.originalEvent&&(c=c.originalEvent),n.allowTouchCallbacks&&t.emit("touchEnd",c),n.allowTouchCallbacks=!1,!n.isTouched){n.isMoved&&a.grabCursor&&t.setGrabCursor(!1),n.isMoved=!1,n.startMoving=!1;return}a.grabCursor&&n.isMoved&&n.isTouched&&(t.allowSlideNext===!0||t.allowSlidePrev===!0)&&t.setGrabCursor(!1);const u=Au(),d=u-n.touchStartTime;if(t.allowClick){const w=c.path||c.composedPath&&c.composedPath();t.updateClickedSlide(w&&w[0]||c.target),t.emit("tap click",c),d<300&&u-n.lastClickTime<300&&t.emit("doubleTap doubleClick",c)}if(n.lastClickTime=Au(),Up(()=>{t.destroyed||(t.allowClick=!0)}),!n.isTouched||!n.isMoved||!t.swipeDirection||i.diff===0||n.currentTranslate===n.startTranslate){n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;return}n.isTouched=!1,n.isMoved=!1,n.startMoving=!1;let f;if(a.followFinger?f=s?t.translate:-t.translate:f=-n.currentTranslate,a.cssMode)return;if(t.params.freeMode&&a.freeMode.enabled){t.freeMode.onTouchEnd({currentPos:f});return}let p=0,h=t.slidesSizesGrid[0];for(let w=0;w<A.length;w+=w<a.slidesPerGroupSkip?1:a.slidesPerGroup){const y=w<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;typeof A[w+y]<"u"?f>=A[w]&&f<A[w+y]&&(p=w,h=A[w+y]-A[w]):f>=A[w]&&(p=w,h=A[A.length-1]-A[A.length-2])}let g=null,B=null;a.rewind&&(t.isBeginning?B=t.params.virtual&&t.params.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(g=0));const m=(f-A[p])/h,v=p<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(d>a.longSwipesMs){if(!a.longSwipes){t.slideTo(t.activeIndex);return}t.swipeDirection==="next"&&(m>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?g:p+v):t.slideTo(p)),t.swipeDirection==="prev"&&(m>1-a.longSwipesRatio?t.slideTo(p+v):B!==null&&m<0&&Math.abs(m)>a.longSwipesRatio?t.slideTo(B):t.slideTo(p))}else{if(!a.shortSwipes){t.slideTo(t.activeIndex);return}t.navigation&&(c.target===t.navigation.nextEl||c.target===t.navigation.prevEl)?c.target===t.navigation.nextEl?t.slideTo(p+v):t.slideTo(p):(t.swipeDirection==="next"&&t.slideTo(g!==null?g:p+v),t.swipeDirection==="prev"&&t.slideTo(B!==null?B:p))}}function Rv(){const e=this,{params:t,el:n}=e;if(n&&n.offsetWidth===0)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:r,allowSlidePrev:a,snapGrid:i}=e,s=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const A=s&&t.loop;(t.slidesPerView==="auto"||t.slidesPerView>1)&&e.isEnd&&!e.isBeginning&&!e.params.centeredSlides&&!A?e.slideTo(e.slides.length-1,0,!1,!0):e.params.loop&&!s?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=a,e.allowSlideNext=r,e.params.watchOverflow&&i!==e.snapGrid&&e.checkOverflow()}function j5(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}function Y5(){const e=this,{wrapperEl:t,rtlTranslate:n,enabled:r}=e;if(!r)return;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,e.translate===0&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();let a;const i=e.maxTranslate()-e.minTranslate();i===0?a=0:a=(e.translate-e.minTranslate())/i,a!==e.progress&&e.updateProgress(n?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}function q5(e){const t=this;Nc(t,e.target),!(t.params.cssMode||t.params.slidesPerView!=="auto"&&!t.params.autoHeight)&&t.update()}let Vv=!1;function X5(){}const Gw=(e,t)=>{const n=zi(),{params:r,el:a,wrapperEl:i,device:s}=e,A=!!r.nested,l=t==="on"?"addEventListener":"removeEventListener",c=t;a[l]("pointerdown",e.onTouchStart,{passive:!1}),n[l]("pointermove",e.onTouchMove,{passive:!1,capture:A}),n[l]("pointerup",e.onTouchEnd,{passive:!0}),n[l]("pointercancel",e.onTouchEnd,{passive:!0}),n[l]("pointerout",e.onTouchEnd,{passive:!0}),n[l]("pointerleave",e.onTouchEnd,{passive:!0}),(r.preventClicks||r.preventClicksPropagation)&&a[l]("click",e.onClick,!0),r.cssMode&&i[l]("scroll",e.onScroll),r.updateOnWindowResize?e[c](s.ios||s.android?"resize orientationchange observerUpdate":"resize observerUpdate",Rv,!0):e[c]("observerUpdate",Rv,!0),a[l]("load",e.onLoad,{capture:!0})};function J5(){const e=this,t=zi(),{params:n}=e;e.onTouchStart=z5.bind(e),e.onTouchMove=W5.bind(e),e.onTouchEnd=G5.bind(e),n.cssMode&&(e.onScroll=Y5.bind(e)),e.onClick=j5.bind(e),e.onLoad=q5.bind(e),Vv||(t.addEventListener("touchstart",X5),Vv=!0),Gw(e,"on")}function Z5(){Gw(this,"off")}const e6={attachEvents:J5,detachEvents:Z5},Kv=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;function t6(){const e=this,{realIndex:t,initialized:n,params:r,el:a}=e,i=r.breakpoints;if(!i||i&&Object.keys(i).length===0)return;const s=e.getBreakpoint(i,e.params.breakpointsBase,e.el);if(!s||e.currentBreakpoint===s)return;const l=(s in i?i[s]:void 0)||e.originalParams,c=Kv(e,r),u=Kv(e,l),d=r.enabled;c&&!u?(a.classList.remove(`${r.containerModifierClass}grid`,`${r.containerModifierClass}grid-column`),e.emitContainerClasses()):!c&&u&&(a.classList.add(`${r.containerModifierClass}grid`),(l.grid.fill&&l.grid.fill==="column"||!l.grid.fill&&r.grid.fill==="column")&&a.classList.add(`${r.containerModifierClass}grid-column`),e.emitContainerClasses()),["navigation","pagination","scrollbar"].forEach(g=>{const B=r[g]&&r[g].enabled,m=l[g]&&l[g].enabled;B&&!m&&e[g].disable(),!B&&m&&e[g].enable()});const f=l.direction&&l.direction!==r.direction,p=r.loop&&(l.slidesPerView!==r.slidesPerView||f);f&&n&&e.changeDirection(),Cn(e.params,l);const h=e.params.enabled;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),d&&!h?e.disable():!d&&h&&e.enable(),e.currentBreakpoint=s,e.emit("_beforeBreakpoint",l),p&&n&&(e.loopDestroy(),e.loopCreate(t),e.updateSlides()),e.emit("breakpoint",l)}function n6(e,t="window",n){if(!e||t==="container"&&!n)return;let r=!1;const a=Un(),i=t==="window"?a.innerHeight:n.clientHeight,s=Object.keys(e).map(A=>{if(typeof A=="string"&&A.indexOf("@")===0){const l=parseFloat(A.substr(1));return{value:i*l,point:A}}return{value:A,point:A}});s.sort((A,l)=>parseInt(A.value,10)-parseInt(l.value,10));for(let A=0;A<s.length;A+=1){const{point:l,value:c}=s[A];t==="window"?a.matchMedia(`(min-width: ${c}px)`).matches&&(r=l):c<=n.clientWidth&&(r=l)}return r||"max"}const r6={setBreakpoint:t6,getBreakpoint:n6};function a6(e,t){const n=[];return e.forEach(r=>{typeof r=="object"?Object.keys(r).forEach(a=>{r[a]&&n.push(t+a)}):typeof r=="string"&&n.push(t+r)}),n}function i6(){const e=this,{classNames:t,params:n,rtl:r,el:a,device:i}=e,s=a6(["initialized",n.direction,{"free-mode":e.params.freeMode&&n.freeMode.enabled},{autoheight:n.autoHeight},{rtl:r},{grid:n.grid&&n.grid.rows>1},{"grid-column":n.grid&&n.grid.rows>1&&n.grid.fill==="column"},{android:i.android},{ios:i.ios},{"css-mode":n.cssMode},{centered:n.cssMode&&n.centeredSlides},{"watch-progress":n.watchSlidesProgress}],n.containerModifierClass);t.push(...s),a.classList.add(...t),e.emitContainerClasses()}function s6(){const e=this,{el:t,classNames:n}=e;t.classList.remove(...n),e.emitContainerClasses()}const o6={addClasses:i6,removeClasses:s6};function A6(){const e=this,{isLocked:t,params:n}=e,{slidesOffsetBefore:r}=n;if(r){const a=e.slides.length-1,i=e.slidesGrid[a]+e.slidesSizesGrid[a]+r*2;e.isLocked=e.size>i}else e.isLocked=e.snapGrid.length===1;n.allowSlideNext===!0&&(e.allowSlideNext=!e.isLocked),n.allowSlidePrev===!0&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}const l6={checkOverflow:A6},$v={init:!0,direction:"horizontal",oneWayMovement:!1,touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopedSlides:null,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function c6(e,t){return function(r={}){const a=Object.keys(r)[0],i=r[a];if(typeof i!="object"||i===null){Cn(t,r);return}if(["navigation","pagination","scrollbar"].indexOf(a)>=0&&e[a]===!0&&(e[a]={auto:!0}),!(a in e&&"enabled"in i)){Cn(t,r);return}e[a]===!0&&(e[a]={enabled:!0}),typeof e[a]=="object"&&!("enabled"in e[a])&&(e[a].enabled=!0),e[a]||(e[a]={enabled:!1}),Cn(t,r)}}const uf={eventsEmitter:o5,update:v5,translate:C5,transition:x5,slide:O5,loop:H5,grabCursor:K5,events:e6,breakpoints:r6,checkOverflow:l6,classes:o6},df={};let kA=class Pr{constructor(...t){let n,r;t.length===1&&t[0].constructor&&Object.prototype.toString.call(t[0]).slice(8,-1)==="Object"?r=t[0]:[n,r]=t,r||(r={}),r=Cn({},r),n&&!r.el&&(r.el=n);const a=zi();if(r.el&&typeof r.el=="string"&&a.querySelectorAll(r.el).length>1){const l=[];return a.querySelectorAll(r.el).forEach(c=>{const u=Cn({},r,{el:c});l.push(new Pr(u))}),l}const i=this;i.__swiper__=!0,i.support=zw(),i.device=n5({userAgent:r.userAgent}),i.browser=a5(),i.eventsListeners={},i.eventsAnyListeners=[],i.modules=[...i.__modules__],r.modules&&Array.isArray(r.modules)&&i.modules.push(...r.modules);const s={};i.modules.forEach(l=>{l({params:r,swiper:i,extendParams:c6(r,s),on:i.on.bind(i),once:i.once.bind(i),off:i.off.bind(i),emit:i.emit.bind(i)})});const A=Cn({},$v,s);return i.params=Cn({},A,df,r),i.originalParams=Cn({},i.params),i.passedParams=Cn({},r),i.params&&i.params.on&&Object.keys(i.params.on).forEach(l=>{i.on(l,i.params.on[l])}),i.params&&i.params.onAny&&i.onAny(i.params.onAny),Object.assign(i,{enabled:i.params.enabled,el:n,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal(){return i.params.direction==="horizontal"},isVertical(){return i.params.direction==="vertical"},activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:i.params.allowSlideNext,allowSlidePrev:i.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:i.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,evCache:[]},allowClick:!0,allowTouchMove:i.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),i.emit("_swiper"),i.params.init&&i.init(),i}getSlideIndex(t){const{slidesEl:n,params:r}=this,a=yr(n,`.${r.slideClass}, swiper-slide`),i=Nv(a[0]);return Nv(t)-i}getSlideIndexByData(t){return this.getSlideIndex(this.slides.filter(n=>n.getAttribute("data-swiper-slide-index")*1===t)[0])}recalcSlides(){const t=this,{slidesEl:n,params:r}=t;t.slides=yr(n,`.${r.slideClass}, swiper-slide`)}enable(){const t=this;t.enabled||(t.enabled=!0,t.params.grabCursor&&t.setGrabCursor(),t.emit("enable"))}disable(){const t=this;t.enabled&&(t.enabled=!1,t.params.grabCursor&&t.unsetGrabCursor(),t.emit("disable"))}setProgress(t,n){const r=this;t=Math.min(Math.max(t,0),1);const a=r.minTranslate(),s=(r.maxTranslate()-a)*t+a;r.translateTo(s,typeof n>"u"?0:n),r.updateActiveIndex(),r.updateSlidesClasses()}emitContainerClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=t.el.className.split(" ").filter(r=>r.indexOf("swiper")===0||r.indexOf(t.params.containerModifierClass)===0);t.emit("_containerClasses",n.join(" "))}getSlideClasses(t){const n=this;return n.destroyed?"":t.className.split(" ").filter(r=>r.indexOf("swiper-slide")===0||r.indexOf(n.params.slideClass)===0).join(" ")}emitSlidesClasses(){const t=this;if(!t.params._emitClasses||!t.el)return;const n=[];t.slides.forEach(r=>{const a=t.getSlideClasses(r);n.push({slideEl:r,classNames:a}),t.emit("_slideClass",r,a)}),t.emit("_slideClasses",n)}slidesPerViewDynamic(t="current",n=!1){const r=this,{params:a,slides:i,slidesGrid:s,slidesSizesGrid:A,size:l,activeIndex:c}=r;let u=1;if(a.centeredSlides){let d=i[c].swiperSlideSize,f;for(let p=c+1;p<i.length;p+=1)i[p]&&!f&&(d+=i[p].swiperSlideSize,u+=1,d>l&&(f=!0));for(let p=c-1;p>=0;p-=1)i[p]&&!f&&(d+=i[p].swiperSlideSize,u+=1,d>l&&(f=!0))}else if(t==="current")for(let d=c+1;d<i.length;d+=1)(n?s[d]+A[d]-s[c]<l:s[d]-s[c]<l)&&(u+=1);else for(let d=c-1;d>=0;d-=1)s[c]-s[d]<l&&(u+=1);return u}update(){const t=this;if(!t||t.destroyed)return;const{snapGrid:n,params:r}=t;r.breakpoints&&t.setBreakpoint(),[...t.el.querySelectorAll('[loading="lazy"]')].forEach(s=>{s.complete&&Nc(t,s)}),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();function a(){const s=t.rtlTranslate?t.translate*-1:t.translate,A=Math.min(Math.max(s,t.maxTranslate()),t.minTranslate());t.setTranslate(A),t.updateActiveIndex(),t.updateSlidesClasses()}let i;if(t.params.freeMode&&t.params.freeMode.enabled)a(),t.params.autoHeight&&t.updateAutoHeight();else{if((t.params.slidesPerView==="auto"||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides){const s=t.virtual&&t.params.virtual.enabled?t.virtual.slides:t.slides;i=t.slideTo(s.length-1,0,!1,!0)}else i=t.slideTo(t.activeIndex,0,!1,!0);i||a()}r.watchOverflow&&n!==t.snapGrid&&t.checkOverflow(),t.emit("update")}changeDirection(t,n=!0){const r=this,a=r.params.direction;return t||(t=a==="horizontal"?"vertical":"horizontal"),t===a||t!=="horizontal"&&t!=="vertical"||(r.el.classList.remove(`${r.params.containerModifierClass}${a}`),r.el.classList.add(`${r.params.containerModifierClass}${t}`),r.emitContainerClasses(),r.params.direction=t,r.slides.forEach(i=>{t==="vertical"?i.style.width="":i.style.height=""}),r.emit("changeDirection"),n&&r.update()),r}changeLanguageDirection(t){const n=this;n.rtl&&t==="rtl"||!n.rtl&&t==="ltr"||(n.rtl=t==="rtl",n.rtlTranslate=n.params.direction==="horizontal"&&n.rtl,n.rtl?(n.el.classList.add(`${n.params.containerModifierClass}rtl`),n.el.dir="rtl"):(n.el.classList.remove(`${n.params.containerModifierClass}rtl`),n.el.dir="ltr"),n.update())}mount(t){const n=this;if(n.mounted)return!0;let r=t||n.params.el;if(typeof r=="string"&&(r=document.querySelector(r)),!r)return!1;r.swiper=n,r.shadowEl&&(n.isElement=!0);const a=()=>`.${(n.params.wrapperClass||"").trim().split(" ").join(".")}`;let s=(()=>r&&r.shadowRoot&&r.shadowRoot.querySelector?r.shadowRoot.querySelector(a()):yr(r,a())[0])();return!s&&n.params.createElements&&(s=$w("div",n.params.wrapperClass),r.append(s),yr(r,`.${n.params.slideClass}`).forEach(A=>{s.append(A)})),Object.assign(n,{el:r,wrapperEl:s,slidesEl:n.isElement?r:s,mounted:!0,rtl:r.dir.toLowerCase()==="rtl"||Fa(r,"direction")==="rtl",rtlTranslate:n.params.direction==="horizontal"&&(r.dir.toLowerCase()==="rtl"||Fa(r,"direction")==="rtl"),wrongRTL:Fa(s,"display")==="-webkit-box"}),!0}init(t){const n=this;return n.initialized||n.mount(t)===!1||(n.emit("beforeInit"),n.params.breakpoints&&n.setBreakpoint(),n.addClasses(),n.updateSize(),n.updateSlides(),n.params.watchOverflow&&n.checkOverflow(),n.params.grabCursor&&n.enabled&&n.setGrabCursor(),n.params.loop&&n.virtual&&n.params.virtual.enabled?n.slideTo(n.params.initialSlide+n.virtual.slidesBefore,0,n.params.runCallbacksOnInit,!1,!0):n.slideTo(n.params.initialSlide,0,n.params.runCallbacksOnInit,!1,!0),n.params.loop&&n.loopCreate(),n.attachEvents(),[...n.el.querySelectorAll('[loading="lazy"]')].forEach(a=>{a.complete?Nc(n,a):a.addEventListener("load",i=>{Nc(n,i.target)})}),Dp(n),n.initialized=!0,Dp(n),n.emit("init"),n.emit("afterInit")),n}destroy(t=!0,n=!0){const r=this,{params:a,el:i,wrapperEl:s,slides:A}=r;return typeof r.params>"u"||r.destroyed||(r.emit("beforeDestroy"),r.initialized=!1,r.detachEvents(),a.loop&&r.loopDestroy(),n&&(r.removeClasses(),i.removeAttribute("style"),s.removeAttribute("style"),A&&A.length&&A.forEach(l=>{l.classList.remove(a.slideVisibleClass,a.slideActiveClass,a.slideNextClass,a.slidePrevClass),l.removeAttribute("style"),l.removeAttribute("data-swiper-slide-index")})),r.emit("destroy"),Object.keys(r.eventsListeners).forEach(l=>{r.off(l)}),t!==!1&&(r.el.swiper=null,G8(r)),r.destroyed=!0),null}static extendDefaults(t){Cn(df,t)}static get extendedDefaults(){return df}static get defaults(){return $v}static installModule(t){Pr.prototype.__modules__||(Pr.prototype.__modules__=[]);const n=Pr.prototype.__modules__;typeof t=="function"&&n.indexOf(t)<0&&n.push(t)}static use(t){return Array.isArray(t)?(t.forEach(n=>Pr.installModule(n)),Pr):(Pr.installModule(t),Pr)}};Object.keys(uf).forEach(e=>{Object.keys(uf[e]).forEach(t=>{kA.prototype[t]=uf[e][t]})});kA.use([i5,s5]);function u6(e,t,n,r){return e.params.createElements&&Object.keys(r).forEach(a=>{if(!n[a]&&n.auto===!0){let i=yr(e.el,`.${r[a]}`)[0];i||(i=$w("div",r[a]),i.className=r[a],e.el.append(i)),n[a]=i,t[a]=i}}),n}function d6({swiper:e,extendParams:t,on:n,emit:r}){t({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),e.navigation={nextEl:null,prevEl:null};const a=h=>(Array.isArray(h)||(h=[h].filter(g=>!!g)),h);function i(h){let g;return h&&typeof h=="string"&&e.isElement&&(g=e.el.shadowRoot.querySelector(h),g)?g:(h&&(typeof h=="string"&&(g=[...document.querySelectorAll(h)]),e.params.uniqueNavElements&&typeof h=="string"&&g.length>1&&e.el.querySelectorAll(h).length===1&&(g=e.el.querySelector(h))),h&&!g?h:g)}function s(h,g){const B=e.params.navigation;h=a(h),h.forEach(m=>{m&&(m.classList[g?"add":"remove"](...B.disabledClass.split(" ")),m.tagName==="BUTTON"&&(m.disabled=g),e.params.watchOverflow&&e.enabled&&m.classList[e.isLocked?"add":"remove"](B.lockClass))})}function A(){const{nextEl:h,prevEl:g}=e.navigation;if(e.params.loop){s(g,!1),s(h,!1);return}s(g,e.isBeginning&&!e.params.rewind),s(h,e.isEnd&&!e.params.rewind)}function l(h){h.preventDefault(),!(e.isBeginning&&!e.params.loop&&!e.params.rewind)&&(e.slidePrev(),r("navigationPrev"))}function c(h){h.preventDefault(),!(e.isEnd&&!e.params.loop&&!e.params.rewind)&&(e.slideNext(),r("navigationNext"))}function u(){const h=e.params.navigation;if(e.params.navigation=u6(e,e.originalParams.navigation,e.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(h.nextEl||h.prevEl))return;let g=i(h.nextEl),B=i(h.prevEl);Object.assign(e.navigation,{nextEl:g,prevEl:B}),g=a(g),B=a(B);const m=(v,w)=>{v&&v.addEventListener("click",w==="next"?c:l),!e.enabled&&v&&v.classList.add(...h.lockClass.split(" "))};g.forEach(v=>m(v,"next")),B.forEach(v=>m(v,"prev"))}function d(){let{nextEl:h,prevEl:g}=e.navigation;h=a(h),g=a(g);const B=(m,v)=>{m.removeEventListener("click",v==="next"?c:l),m.classList.remove(...e.params.navigation.disabledClass.split(" "))};h.forEach(m=>B(m,"next")),g.forEach(m=>B(m,"prev"))}n("init",()=>{e.params.navigation.enabled===!1?p():(u(),A())}),n("toEdge fromEdge lock unlock",()=>{A()}),n("destroy",()=>{d()}),n("enable disable",()=>{let{nextEl:h,prevEl:g}=e.navigation;h=a(h),g=a(g),[...h,...g].filter(B=>!!B).forEach(B=>B.classList[e.enabled?"remove":"add"](e.params.navigation.lockClass))}),n("click",(h,g)=>{let{nextEl:B,prevEl:m}=e.navigation;B=a(B),m=a(m);const v=g.target;if(e.params.navigation.hideOnClick&&!m.includes(v)&&!B.includes(v)){if(e.pagination&&e.params.pagination&&e.params.pagination.clickable&&(e.pagination.el===v||e.pagination.el.contains(v)))return;let w;B.length?w=B[0].classList.contains(e.params.navigation.hiddenClass):m.length&&(w=m[0].classList.contains(e.params.navigation.hiddenClass)),r(w===!0?"navigationShow":"navigationHide"),[...B,...m].filter(y=>!!y).forEach(y=>y.classList.toggle(e.params.navigation.hiddenClass))}});const f=()=>{e.el.classList.remove(...e.params.navigation.navigationDisabledClass.split(" ")),u(),A()},p=()=>{e.el.classList.add(...e.params.navigation.navigationDisabledClass.split(" ")),d()};Object.assign(e.navigation,{enable:f,disable:p,update:A,init:u,destroy:d})}function Mi(e){return typeof e=="object"&&e!==null&&e.constructor&&Object.prototype.toString.call(e).slice(8,-1)==="Object"}function Ia(e,t){const n=["__proto__","constructor","prototype"];Object.keys(t).filter(r=>n.indexOf(r)<0).forEach(r=>{typeof e[r]>"u"?e[r]=t[r]:Mi(t[r])&&Mi(e[r])&&Object.keys(t[r]).length>0?t[r].__swiper__?e[r]=t[r]:Ia(e[r],t[r]):e[r]=t[r]})}function jw(e={}){return e.navigation&&typeof e.navigation.nextEl>"u"&&typeof e.navigation.prevEl>"u"}function Yw(e={}){return e.pagination&&typeof e.pagination.el>"u"}function qw(e={}){return e.scrollbar&&typeof e.scrollbar.el>"u"}function Xw(e=""){const t=e.split(" ").map(r=>r.trim()).filter(r=>!!r),n=[];return t.forEach(r=>{n.indexOf(r)<0&&n.push(r)}),n.join(" ")}function f6(e=""){return e?e.includes("swiper-wrapper")?e:`swiper-wrapper ${e}`:"swiper-wrapper"}const Jw=["eventsPrefix","injectStyles","injectStylesUrls","modules","init","_direction","oneWayMovement","touchEventsTarget","initialSlide","_speed","cssMode","updateOnWindowResize","resizeObserver","nested","focusableElements","_enabled","_width","_height","preventInteractionOnTransition","userAgent","url","_edgeSwipeDetection","_edgeSwipeThreshold","_freeMode","_autoHeight","setWrapperSize","virtualTranslate","_effect","breakpoints","_spaceBetween","_slidesPerView","maxBackfaceHiddenSlides","_grid","_slidesPerGroup","_slidesPerGroupSkip","_slidesPerGroupAuto","_centeredSlides","_centeredSlidesBounds","_slidesOffsetBefore","_slidesOffsetAfter","normalizeSlideIndex","_centerInsufficientSlides","_watchOverflow","roundLengths","touchRatio","touchAngle","simulateTouch","_shortSwipes","_longSwipes","longSwipesRatio","longSwipesMs","_followFinger","allowTouchMove","_threshold","touchMoveStopPropagation","touchStartPreventDefault","touchStartForcePreventDefault","touchReleaseOnEdges","uniqueNavElements","_resistance","_resistanceRatio","_watchSlidesProgress","_grabCursor","preventClicks","preventClicksPropagation","_slideToClickedSlide","_loop","loopedSlides","loopPreventsSliding","_rewind","_allowSlidePrev","_allowSlideNext","_swipeHandler","_noSwiping","noSwipingClass","noSwipingSelector","passiveListeners","containerModifierClass","slideClass","slideActiveClass","slideVisibleClass","slideNextClass","slidePrevClass","wrapperClass","lazyPreloaderClass","lazyPreloadPrevNext","runCallbacksOnInit","observer","observeParents","observeSlideChildren","a11y","_autoplay","_controller","coverflowEffect","cubeEffect","fadeEffect","flipEffect","creativeEffect","cardsEffect","hashNavigation","history","keyboard","mousewheel","_navigation","_pagination","parallax","_scrollbar","_thumbs","virtual","zoom","control"];function zv(e={},t=!0){const n={on:{}},r={},a={};Ia(n,kA.defaults),Ia(n,kA.extendedDefaults),n._emitClasses=!0,n.init=!1;const i={},s=Jw.map(l=>l.replace(/_/,"")),A=Object.assign({},e);return Object.keys(A).forEach(l=>{typeof e[l]>"u"||(s.indexOf(l)>=0?Mi(e[l])?(n[l]={},a[l]={},Ia(n[l],e[l]),Ia(a[l],e[l])):(n[l]=e[l],a[l]=e[l]):l.search(/on[A-Z]/)===0&&typeof e[l]=="function"?t?r[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:n.on[`${l[2].toLowerCase()}${l.substr(3)}`]=e[l]:i[l]=e[l])}),["navigation","pagination","scrollbar"].forEach(l=>{n[l]===!0&&(n[l]={}),n[l]===!1&&delete n[l]}),{params:n,passedParams:a,rest:i,events:r}}function p6({el:e,nextEl:t,prevEl:n,paginationEl:r,scrollbarEl:a,swiper:i},s){jw(s)&&t&&n&&(i.params.navigation.nextEl=t,i.originalParams.navigation.nextEl=t,i.params.navigation.prevEl=n,i.originalParams.navigation.prevEl=n),Yw(s)&&r&&(i.params.pagination.el=r,i.originalParams.pagination.el=r),qw(s)&&a&&(i.params.scrollbar.el=a,i.originalParams.scrollbar.el=a),i.init(e)}function h6(e,t,n,r,a){const i=[];if(!t)return i;const s=l=>{i.indexOf(l)<0&&i.push(l)};if(n&&r){const l=r.map(a),c=n.map(a);l.join("")!==c.join("")&&s("children"),r.length!==n.length&&s("children")}return Jw.filter(l=>l[0]==="_").map(l=>l.replace(/_/,"")).forEach(l=>{if(l in e&&l in t)if(Mi(e[l])&&Mi(t[l])){const c=Object.keys(e[l]),u=Object.keys(t[l]);c.length!==u.length?s(l):(c.forEach(d=>{e[l][d]!==t[l][d]&&s(l)}),u.forEach(d=>{e[l][d]!==t[l][d]&&s(l)}))}else e[l]!==t[l]&&s(l)}),i}function ff(e,t,n){e===void 0&&(e={});const r=[],a={"container-start":[],"container-end":[],"wrapper-start":[],"wrapper-end":[]},i=(s,A)=>{Array.isArray(s)&&s.forEach(l=>{const c=typeof l.type=="symbol";A==="default"&&(A="container-end"),c&&l.children?i(l.children,A):l.type&&(l.type.name==="SwiperSlide"||l.type.name==="AsyncComponentWrapper")?r.push(l):a[A]&&a[A].push(l)})};return Object.keys(e).forEach(s=>{if(typeof e[s]!="function")return;const A=e[s]();i(A,s)}),n.value=t.value,t.value=r,{slides:r,slots:a}}function m6({swiper:e,slides:t,passedParams:n,changedParams:r,nextEl:a,prevEl:i,scrollbarEl:s,paginationEl:A}){const l=r.filter(E=>E!=="children"&&E!=="direction"&&E!=="wrapperClass"),{params:c,pagination:u,navigation:d,scrollbar:f,virtual:p,thumbs:h}=e;let g,B,m,v,w,y,b,_;r.includes("thumbs")&&n.thumbs&&n.thumbs.swiper&&c.thumbs&&!c.thumbs.swiper&&(g=!0),r.includes("controller")&&n.controller&&n.controller.control&&c.controller&&!c.controller.control&&(B=!0),r.includes("pagination")&&n.pagination&&(n.pagination.el||A)&&(c.pagination||c.pagination===!1)&&u&&!u.el&&(m=!0),r.includes("scrollbar")&&n.scrollbar&&(n.scrollbar.el||s)&&(c.scrollbar||c.scrollbar===!1)&&f&&!f.el&&(v=!0),r.includes("navigation")&&n.navigation&&(n.navigation.prevEl||i)&&(n.navigation.nextEl||a)&&(c.navigation||c.navigation===!1)&&d&&!d.prevEl&&!d.nextEl&&(w=!0);const C=E=>{e[E]&&(e[E].destroy(),E==="navigation"?(e.isElement&&(e[E].prevEl.remove(),e[E].nextEl.remove()),c[E].prevEl=void 0,c[E].nextEl=void 0,e[E].prevEl=void 0,e[E].nextEl=void 0):(e.isElement&&e[E].el.remove(),c[E].el=void 0,e[E].el=void 0))};r.includes("loop")&&e.isElement&&(c.loop&&!n.loop?y=!0:!c.loop&&n.loop?b=!0:_=!0),l.forEach(E=>{if(Mi(c[E])&&Mi(n[E]))Ia(c[E],n[E]),(E==="navigation"||E==="pagination"||E==="scrollbar")&&"enabled"in n[E]&&!n[E].enabled&&C(E);else{const S=n[E];(S===!0||S===!1)&&(E==="navigation"||E==="pagination"||E==="scrollbar")?S===!1&&C(E):c[E]=n[E]}}),l.includes("controller")&&!B&&e.controller&&e.controller.control&&c.controller&&c.controller.control&&(e.controller.control=c.controller.control),r.includes("children")&&t&&p&&c.virtual.enabled&&(p.slides=t,p.update(!0)),r.includes("children")&&t&&c.loop&&(_=!0),g&&h.init()&&h.update(!0),B&&(e.controller.control=c.controller.control),m&&(e.isElement&&(!A||typeof A=="string")&&(A=document.createElement("div"),A.classList.add("swiper-pagination"),e.el.shadowEl.appendChild(A)),A&&(c.pagination.el=A),u.init(),u.render(),u.update()),v&&(e.isElement&&(!s||typeof s=="string")&&(s=document.createElement("div"),s.classList.add("swiper-scrollbar"),e.el.shadowEl.appendChild(s)),s&&(c.scrollbar.el=s),f.init(),f.updateSize(),f.setTranslate()),w&&(e.isElement&&((!a||typeof a=="string")&&(a=document.createElement("div"),a.classList.add("swiper-button-next"),e.el.shadowEl.appendChild(a)),(!i||typeof i=="string")&&(i=document.createElement("div"),i.classList.add("swiper-button-prev"),e.el.shadowEl.appendChild(i))),a&&(c.navigation.nextEl=a),i&&(c.navigation.prevEl=i),d.init(),d.update()),r.includes("allowSlideNext")&&(e.allowSlideNext=n.allowSlideNext),r.includes("allowSlidePrev")&&(e.allowSlidePrev=n.allowSlidePrev),r.includes("direction")&&e.changeDirection(n.direction,!1),(y||_)&&e.loopDestroy(),(b||_)&&e.loopCreate(),e.update()}function g6(e,t,n){if(!n)return null;const r=u=>{let d=u;return u<0?d=t.length+u:d>=t.length&&(d=d-t.length),d},a=e.value.isHorizontal()?{[e.value.rtlTranslate?"right":"left"]:`${n.offset}px`}:{top:`${n.offset}px`},{from:i,to:s}=n,A=e.value.params.loop?-t.length:0,l=e.value.params.loop?t.length*2:t.length,c=[];for(let u=A;u<l;u+=1)u>=i&&u<=s&&c.push(t[r(u)]);return c.map(u=>(u.props||(u.props={}),u.props.style||(u.props.style={}),u.props.swiperRef=e,u.props.style=a,o.h(u.type,{...u.props},u.children)))}const v6=e=>{!e||e.destroyed||!e.params.virtual||e.params.virtual&&!e.params.virtual.enabled||(e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.parallax&&e.params.parallax&&e.params.parallax.enabled&&e.parallax.setTranslate())},Zw={name:"Swiper",props:{tag:{type:String,default:"div"},wrapperTag:{type:String,default:"div"},modules:{type:Array,default:void 0},init:{type:Boolean,default:void 0},direction:{type:String,default:void 0},oneWayMovement:{type:Boolean,default:void 0},touchEventsTarget:{type:String,default:void 0},initialSlide:{type:Number,default:void 0},speed:{type:Number,default:void 0},cssMode:{type:Boolean,default:void 0},updateOnWindowResize:{type:Boolean,default:void 0},resizeObserver:{type:Boolean,default:void 0},nested:{type:Boolean,default:void 0},focusableElements:{type:String,default:void 0},width:{type:Number,default:void 0},height:{type:Number,default:void 0},preventInteractionOnTransition:{type:Boolean,default:void 0},userAgent:{type:String,default:void 0},url:{type:String,default:void 0},edgeSwipeDetection:{type:[Boolean,String],default:void 0},edgeSwipeThreshold:{type:Number,default:void 0},autoHeight:{type:Boolean,default:void 0},setWrapperSize:{type:Boolean,default:void 0},virtualTranslate:{type:Boolean,default:void 0},effect:{type:String,default:void 0},breakpoints:{type:Object,default:void 0},spaceBetween:{type:[Number,String],default:void 0},slidesPerView:{type:[Number,String],default:void 0},maxBackfaceHiddenSlides:{type:Number,default:void 0},slidesPerGroup:{type:Number,default:void 0},slidesPerGroupSkip:{type:Number,default:void 0},slidesPerGroupAuto:{type:Boolean,default:void 0},centeredSlides:{type:Boolean,default:void 0},centeredSlidesBounds:{type:Boolean,default:void 0},slidesOffsetBefore:{type:Number,default:void 0},slidesOffsetAfter:{type:Number,default:void 0},normalizeSlideIndex:{type:Boolean,default:void 0},centerInsufficientSlides:{type:Boolean,default:void 0},watchOverflow:{type:Boolean,default:void 0},roundLengths:{type:Boolean,default:void 0},touchRatio:{type:Number,default:void 0},touchAngle:{type:Number,default:void 0},simulateTouch:{type:Boolean,default:void 0},shortSwipes:{type:Boolean,default:void 0},longSwipes:{type:Boolean,default:void 0},longSwipesRatio:{type:Number,default:void 0},longSwipesMs:{type:Number,default:void 0},followFinger:{type:Boolean,default:void 0},allowTouchMove:{type:Boolean,default:void 0},threshold:{type:Number,default:void 0},touchMoveStopPropagation:{type:Boolean,default:void 0},touchStartPreventDefault:{type:Boolean,default:void 0},touchStartForcePreventDefault:{type:Boolean,default:void 0},touchReleaseOnEdges:{type:Boolean,default:void 0},uniqueNavElements:{type:Boolean,default:void 0},resistance:{type:Boolean,default:void 0},resistanceRatio:{type:Number,default:void 0},watchSlidesProgress:{type:Boolean,default:void 0},grabCursor:{type:Boolean,default:void 0},preventClicks:{type:Boolean,default:void 0},preventClicksPropagation:{type:Boolean,default:void 0},slideToClickedSlide:{type:Boolean,default:void 0},loop:{type:Boolean,default:void 0},loopedSlides:{type:Number,default:void 0},loopPreventsSliding:{type:Boolean,default:void 0},rewind:{type:Boolean,default:void 0},allowSlidePrev:{type:Boolean,default:void 0},allowSlideNext:{type:Boolean,default:void 0},swipeHandler:{type:Boolean,default:void 0},noSwiping:{type:Boolean,default:void 0},noSwipingClass:{type:String,default:void 0},noSwipingSelector:{type:String,default:void 0},passiveListeners:{type:Boolean,default:void 0},containerModifierClass:{type:String,default:void 0},slideClass:{type:String,default:void 0},slideActiveClass:{type:String,default:void 0},slideVisibleClass:{type:String,default:void 0},slideNextClass:{type:String,default:void 0},slidePrevClass:{type:String,default:void 0},wrapperClass:{type:String,default:void 0},lazyPreloaderClass:{type:String,default:void 0},lazyPreloadPrevNext:{type:Number,default:void 0},runCallbacksOnInit:{type:Boolean,default:void 0},observer:{type:Boolean,default:void 0},observeParents:{type:Boolean,default:void 0},observeSlideChildren:{type:Boolean,default:void 0},a11y:{type:[Boolean,Object],default:void 0},autoplay:{type:[Boolean,Object],default:void 0},controller:{type:Object,default:void 0},coverflowEffect:{type:Object,default:void 0},cubeEffect:{type:Object,default:void 0},fadeEffect:{type:Object,default:void 0},flipEffect:{type:Object,default:void 0},creativeEffect:{type:Object,default:void 0},cardsEffect:{type:Object,default:void 0},hashNavigation:{type:[Boolean,Object],default:void 0},history:{type:[Boolean,Object],default:void 0},keyboard:{type:[Boolean,Object],default:void 0},mousewheel:{type:[Boolean,Object],default:void 0},navigation:{type:[Boolean,Object],default:void 0},pagination:{type:[Boolean,Object],default:void 0},parallax:{type:[Boolean,Object],default:void 0},scrollbar:{type:[Boolean,Object],default:void 0},thumbs:{type:Object,default:void 0},virtual:{type:[Boolean,Object],default:void 0},zoom:{type:[Boolean,Object],default:void 0},grid:{type:[Object],default:void 0},freeMode:{type:[Boolean,Object],default:void 0},enabled:{type:Boolean,default:void 0}},emits:["_beforeBreakpoint","_containerClasses","_slideClass","_slideClasses","_swiper","_freeModeNoMomentumRelease","activeIndexChange","afterInit","autoplay","autoplayStart","autoplayStop","autoplayPause","autoplayResume","autoplayTimeLeft","beforeDestroy","beforeInit","beforeLoopFix","beforeResize","beforeSlideChangeStart","beforeTransitionStart","breakpoint","changeDirection","click","disable","doubleTap","doubleClick","destroy","enable","fromEdge","hashChange","hashSet","init","keyPress","lock","loopFix","momentumBounce","navigationHide","navigationShow","navigationPrev","navigationNext","observerUpdate","orientationchange","paginationHide","paginationRender","paginationShow","paginationUpdate","progress","reachBeginning","reachEnd","realIndexChange","resize","scroll","scrollbarDragEnd","scrollbarDragMove","scrollbarDragStart","setTransition","setTranslate","slideChange","slideChangeTransitionEnd","slideChangeTransitionStart","slideNextTransitionEnd","slideNextTransitionStart","slidePrevTransitionEnd","slidePrevTransitionStart","slideResetTransitionStart","slideResetTransitionEnd","sliderMove","sliderFirstMove","slidesLengthChange","slidesGridLengthChange","snapGridLengthChange","snapIndexChange","swiper","tap","toEdge","touchEnd","touchMove","touchMoveOpposite","touchStart","transitionEnd","transitionStart","unlock","update","virtualUpdate","zoomChange"],setup(e,t){let{slots:n,emit:r}=t;const{tag:a,wrapperTag:i}=e,s=o.ref("swiper"),A=o.ref(null),l=o.ref(!1),c=o.ref(!1),u=o.ref(null),d=o.ref(null),f=o.ref(null),p={value:[]},h={value:[]},g=o.ref(null),B=o.ref(null),m=o.ref(null),v=o.ref(null),{params:w,passedParams:y}=zv(e,!1);ff(n,p,h),f.value=y,h.value=p.value;const b=()=>{ff(n,p,h),l.value=!0};w.onAny=function(E){for(var S=arguments.length,D=new Array(S>1?S-1:0),T=1;T<S;T++)D[T-1]=arguments[T];r(E,...D)},Object.assign(w.on,{_beforeBreakpoint:b,_containerClasses(E,S){s.value=S}});const _={...w};if(delete _.wrapperClass,d.value=new kA(_),d.value.virtual&&d.value.params.virtual.enabled){d.value.virtual.slides=p.value;const E={cache:!1,slides:p.value,renderExternal:S=>{A.value=S},renderExternalUpdate:!1};Ia(d.value.params.virtual,E),Ia(d.value.originalParams.virtual,E)}o.onUpdated(()=>{!c.value&&d.value&&(d.value.emitSlidesClasses(),c.value=!0);const{passedParams:E}=zv(e,!1),S=h6(E,f.value,p.value,h.value,D=>D.props&&D.props.key);f.value=E,(S.length||l.value)&&d.value&&!d.value.destroyed&&m6({swiper:d.value,slides:p.value,passedParams:E,changedParams:S,nextEl:g.value,prevEl:B.value,scrollbarEl:v.value,paginationEl:m.value}),l.value=!1}),o.provide("swiper",d),o.watch(A,()=>{o.nextTick(()=>{v6(d.value)})}),o.onMounted(()=>{u.value&&(p6({el:u.value,nextEl:g.value,prevEl:B.value,paginationEl:m.value,scrollbarEl:v.value,swiper:d.value},w),r("swiper",d.value))}),o.onBeforeUnmount(()=>{d.value&&!d.value.destroyed&&d.value.destroy(!0,!1)});function C(E){return w.virtual?g6(d,E,A.value):(E.forEach((S,D)=>{S.props||(S.props={}),S.props.swiperRef=d,S.props.swiperSlideIndex=D}),E)}return()=>{const{slides:E,slots:S}=ff(n,p,h);return o.h(a,{ref:u,class:Xw(s.value)},[S["container-start"],o.h(i,{class:f6(w.wrapperClass)},[S["wrapper-start"],C(E),S["wrapper-end"]]),jw(e)&&[o.h("div",{ref:B,class:"swiper-button-prev"}),o.h("div",{ref:g,class:"swiper-button-next"})],qw(e)&&o.h("div",{ref:v,class:"swiper-scrollbar"}),Yw(e)&&o.h("div",{ref:m,class:"swiper-pagination"}),S["container-end"]])}}},eb={name:"SwiperSlide",props:{tag:{type:String,default:"div"},swiperRef:{type:Object,required:!1},swiperSlideIndex:{type:Number,default:void 0,required:!1},zoom:{type:Boolean,default:void 0,required:!1},lazy:{type:Boolean,default:!1,required:!1},virtualIndex:{type:[String,Number],default:void 0}},setup(e,t){let{slots:n}=t,r=!1;const{swiperRef:a}=e,i=o.ref(null),s=o.ref("swiper-slide"),A=o.ref(!1);function l(d,f,p){f===i.value&&(s.value=p)}o.onMounted(()=>{!a||!a.value||(a.value.on("_slideClass",l),r=!0)}),o.onBeforeUpdate(()=>{r||!a||!a.value||(a.value.on("_slideClass",l),r=!0)}),o.onUpdated(()=>{!i.value||!a||!a.value||(typeof e.swiperSlideIndex<"u"&&(i.value.swiperSlideIndex=e.swiperSlideIndex),a.value.destroyed&&s.value!=="swiper-slide"&&(s.value="swiper-slide"))}),o.onBeforeUnmount(()=>{!a||!a.value||a.value.off("_slideClass",l)});const c=o.computed(()=>({isActive:s.value.indexOf("swiper-slide-active")>=0,isVisible:s.value.indexOf("swiper-slide-visible")>=0,isPrev:s.value.indexOf("swiper-slide-prev")>=0,isNext:s.value.indexOf("swiper-slide-next")>=0}));o.provide("swiperSlide",c);const u=()=>{A.value=!0};return()=>o.h(e.tag,{class:Xw(`${s.value}`),ref:i,"data-swiper-slide-index":typeof e.virtualIndex>"u"&&a&&a.value&&a.value.params.loop?e.swiperSlideIndex:e.virtualIndex,onLoadCapture:u},e.zoom?o.h("div",{class:"swiper-zoom-container","data-swiper-zoom":typeof e.zoom=="number"?e.zoom:void 0},[n.default&&n.default(c.value),e.lazy&&!A.value&&o.h("div",{class:"swiper-lazy-preloader"})]):[n.default&&n.default(c.value),e.lazy&&!A.value&&o.h("div",{class:"swiper-lazy-preloader"})])}};const y6={cardCodes:{type:Array,required:!0,default:[]}},B6=o.defineComponent({__name:"RevealCarousel",props:y6,setup(e){var A;const t=e,n=[d6],r=o.ref(null),a=o.ref((A=r.value)==null?void 0:A.clientWidth),i=o.computed(()=>a.value===void 0?!0:a.value<400);function s(){var l;a.value=(l=r.value)==null?void 0:l.clientWidth}return o.onMounted(()=>{window.addEventListener("resize",s),s()}),o.onUnmounted(()=>{window.removeEventListener("resize",s)}),(l,c)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"revealCarousel",ref:r,class:"reveal-carousel"},[o.createVNode(o.unref(Zw),{"slides-per-view":"auto","space-between":15,"centered-slides":i.value,navigation:!0,modules:n},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.cardCodes,u=>(o.openBlock(),o.createBlock(o.unref(eb),{key:u},{default:o.withCtx(()=>[o.createVNode(o.unref(Yd),{class:"card-item-called","card-code-prop":u,"is-root":!0,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(u)},null,8,["card-code-prop","router-link"])]),_:2},1024))),128))]),_:1},8,["centered-slides"])],512))}});const vm=M(B6,[["__scopeId","data-v-e6480629"]]),w6={fetchSeachResult:{type:Function,required:!0,default:()=>[]}};var gn="top",Wn="bottom",Gn="right",vn="left",ym="auto",JA=[gn,Wn,Gn,vn],Ps="start",EA="end",b6="clippingParents",tb="viewport",mo="popper",_6="reference",Wv=JA.reduce(function(e,t){return e.concat([t+"-"+Ps,t+"-"+EA])},[]),nb=[].concat(JA,[ym]).reduce(function(e,t){return e.concat([t,t+"-"+Ps,t+"-"+EA])},[]),C6="beforeRead",k6="read",E6="afterRead",S6="beforeMain",x6="main",F6="afterMain",I6="beforeWrite",T6="write",U6="afterWrite",D6=[C6,k6,E6,S6,x6,F6,I6,T6,U6];function _r(e){return e?(e.nodeName||"").toLowerCase():null}function In(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ni(e){var t=In(e).Element;return e instanceof t||e instanceof Element}function zn(e){var t=In(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bm(e){if(typeof ShadowRoot>"u")return!1;var t=In(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Q6(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},i=t.elements[n];!zn(i)||!_r(i)||(Object.assign(i.style,r),Object.keys(a).forEach(function(s){var A=a[s];A===!1?i.removeAttribute(s):i.setAttribute(s,A===!0?"":A)}))})}function L6(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var a=t.elements[r],i=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),A=s.reduce(function(l,c){return l[c]="",l},{});!zn(a)||!_r(a)||(Object.assign(a.style,A),Object.keys(i).forEach(function(l){a.removeAttribute(l)}))})}}const rb={name:"applyStyles",enabled:!0,phase:"write",fn:Q6,effect:L6,requires:["computeStyles"]};function Br(e){return e.split("-")[0]}var xi=Math.max,lu=Math.min,Hs=Math.round;function Qp(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function ab(){return!/^((?!chrome|android).)*safari/i.test(Qp())}function Rs(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,i=1;t&&zn(e)&&(a=e.offsetWidth>0&&Hs(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Hs(r.height)/e.offsetHeight||1);var s=Ni(e)?In(e):window,A=s.visualViewport,l=!ab()&&n,c=(r.left+(l&&A?A.offsetLeft:0))/a,u=(r.top+(l&&A?A.offsetTop:0))/i,d=r.width/a,f=r.height/i;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function wm(e){var t=Rs(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ib(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Bm(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sa(e){return In(e).getComputedStyle(e)}function O6(e){return["table","td","th"].indexOf(_r(e))>=0}function ii(e){return((Ni(e)?e.ownerDocument:e.document)||window.document).documentElement}function ed(e){return _r(e)==="html"?e:e.assignedSlot||e.parentNode||(Bm(e)?e.host:null)||ii(e)}function Gv(e){return!zn(e)||sa(e).position==="fixed"?null:e.offsetParent}function M6(e){var t=/firefox/i.test(Qp()),n=/Trident/i.test(Qp());if(n&&zn(e)){var r=sa(e);if(r.position==="fixed")return null}var a=ed(e);for(Bm(a)&&(a=a.host);zn(a)&&["html","body"].indexOf(_r(a))<0;){var i=sa(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function ZA(e){for(var t=In(e),n=Gv(e);n&&O6(n)&&sa(n).position==="static";)n=Gv(n);return n&&(_r(n)==="html"||_r(n)==="body"&&sa(n).position==="static")?t:n||M6(e)||t}function bm(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function jo(e,t,n){return xi(e,lu(t,n))}function N6(e,t,n){var r=jo(e,t,n);return r>n?n:r}function sb(){return{top:0,right:0,bottom:0,left:0}}function ob(e){return Object.assign({},sb(),e)}function Ab(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var P6=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ob(typeof t!="number"?t:Ab(t,JA))};function H6(e){var t,n=e.state,r=e.name,a=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,A=Br(n.placement),l=bm(A),c=[vn,Gn].indexOf(A)>=0,u=c?"height":"width";if(!(!i||!s)){var d=P6(a.padding,n),f=wm(i),p=l==="y"?gn:vn,h=l==="y"?Wn:Gn,g=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],B=s[l]-n.rects.reference[l],m=ZA(i),v=m?l==="y"?m.clientHeight||0:m.clientWidth||0:0,w=g/2-B/2,y=d[p],b=v-f[u]-d[h],_=v/2-f[u]/2+w,C=jo(y,_,b),E=l;n.modifiersData[r]=(t={},t[E]=C,t.centerOffset=C-_,t)}}function R6(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||ib(t.elements.popper,a)&&(t.elements.arrow=a))}const V6={name:"arrow",enabled:!0,phase:"main",fn:H6,effect:R6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vs(e){return e.split("-")[1]}var K6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $6(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:Hs(n*a)/a||0,y:Hs(r*a)/a||0}}function jv(e){var t,n=e.popper,r=e.popperRect,a=e.placement,i=e.variation,s=e.offsets,A=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=s.x,p=f===void 0?0:f,h=s.y,g=h===void 0?0:h,B=typeof u=="function"?u({x:p,y:g}):{x:p,y:g};p=B.x,g=B.y;var m=s.hasOwnProperty("x"),v=s.hasOwnProperty("y"),w=vn,y=gn,b=window;if(c){var _=ZA(n),C="clientHeight",E="clientWidth";if(_===In(n)&&(_=ii(n),sa(_).position!=="static"&&A==="absolute"&&(C="scrollHeight",E="scrollWidth")),_=_,a===gn||(a===vn||a===Gn)&&i===EA){y=Wn;var S=d&&_===b&&b.visualViewport?b.visualViewport.height:_[C];g-=S-r.height,g*=l?1:-1}if(a===vn||(a===gn||a===Wn)&&i===EA){w=Gn;var D=d&&_===b&&b.visualViewport?b.visualViewport.width:_[E];p-=D-r.width,p*=l?1:-1}}var T=Object.assign({position:A},c&&K6),F=u===!0?$6({x:p,y:g},In(n)):{x:p,y:g};if(p=F.x,g=F.y,l){var U;return Object.assign({},T,(U={},U[y]=v?"0":"",U[w]=m?"0":"",U.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",U))}return Object.assign({},T,(t={},t[y]=v?g+"px":"",t[w]=m?p+"px":"",t.transform="",t))}function z6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,i=n.adaptive,s=i===void 0?!0:i,A=n.roundOffsets,l=A===void 0?!0:A,c={placement:Br(t.placement),variation:Vs(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,jv(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jv(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const W6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:z6,data:{}};var Kl={passive:!0};function G6(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,A=s===void 0?!0:s,l=In(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(u){u.addEventListener("scroll",n.update,Kl)}),A&&l.addEventListener("resize",n.update,Kl),function(){i&&c.forEach(function(u){u.removeEventListener("scroll",n.update,Kl)}),A&&l.removeEventListener("resize",n.update,Kl)}}const j6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:G6,data:{}};var Y6={left:"right",right:"left",bottom:"top",top:"bottom"};function Pc(e){return e.replace(/left|right|bottom|top/g,function(t){return Y6[t]})}var q6={start:"end",end:"start"};function Yv(e){return e.replace(/start|end/g,function(t){return q6[t]})}function _m(e){var t=In(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Cm(e){return Rs(ii(e)).left+_m(e).scrollLeft}function X6(e,t){var n=In(e),r=ii(e),a=n.visualViewport,i=r.clientWidth,s=r.clientHeight,A=0,l=0;if(a){i=a.width,s=a.height;var c=ab();(c||!c&&t==="fixed")&&(A=a.offsetLeft,l=a.offsetTop)}return{width:i,height:s,x:A+Cm(e),y:l}}function J6(e){var t,n=ii(e),r=_m(e),a=(t=e.ownerDocument)==null?void 0:t.body,i=xi(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=xi(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),A=-r.scrollLeft+Cm(e),l=-r.scrollTop;return sa(a||n).direction==="rtl"&&(A+=xi(n.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:A,y:l}}function km(e){var t=sa(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function lb(e){return["html","body","#document"].indexOf(_r(e))>=0?e.ownerDocument.body:zn(e)&&km(e)?e:lb(ed(e))}function Yo(e,t){var n;t===void 0&&(t=[]);var r=lb(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),i=In(r),s=a?[i].concat(i.visualViewport||[],km(r)?r:[]):r,A=t.concat(s);return a?A:A.concat(Yo(ed(s)))}function Lp(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z6(e,t){var n=Rs(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function qv(e,t,n){return t===tb?Lp(X6(e,n)):Ni(t)?Z6(t,n):Lp(J6(ii(e)))}function eI(e){var t=Yo(ed(e)),n=["absolute","fixed"].indexOf(sa(e).position)>=0,r=n&&zn(e)?ZA(e):e;return Ni(r)?t.filter(function(a){return Ni(a)&&ib(a,r)&&_r(a)!=="body"}):[]}function tI(e,t,n,r){var a=t==="clippingParents"?eI(e):[].concat(t),i=[].concat(a,[n]),s=i[0],A=i.reduce(function(l,c){var u=qv(e,c,r);return l.top=xi(u.top,l.top),l.right=lu(u.right,l.right),l.bottom=lu(u.bottom,l.bottom),l.left=xi(u.left,l.left),l},qv(e,s,r));return A.width=A.right-A.left,A.height=A.bottom-A.top,A.x=A.left,A.y=A.top,A}function cb(e){var t=e.reference,n=e.element,r=e.placement,a=r?Br(r):null,i=r?Vs(r):null,s=t.x+t.width/2-n.width/2,A=t.y+t.height/2-n.height/2,l;switch(a){case gn:l={x:s,y:t.y-n.height};break;case Wn:l={x:s,y:t.y+t.height};break;case Gn:l={x:t.x+t.width,y:A};break;case vn:l={x:t.x-n.width,y:A};break;default:l={x:t.x,y:t.y}}var c=a?bm(a):null;if(c!=null){var u=c==="y"?"height":"width";switch(i){case Ps:l[c]=l[c]-(t[u]/2-n[u]/2);break;case EA:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function SA(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,i=n.strategy,s=i===void 0?e.strategy:i,A=n.boundary,l=A===void 0?b6:A,c=n.rootBoundary,u=c===void 0?tb:c,d=n.elementContext,f=d===void 0?mo:d,p=n.altBoundary,h=p===void 0?!1:p,g=n.padding,B=g===void 0?0:g,m=ob(typeof B!="number"?B:Ab(B,JA)),v=f===mo?_6:mo,w=e.rects.popper,y=e.elements[h?v:f],b=tI(Ni(y)?y:y.contextElement||ii(e.elements.popper),l,u,s),_=Rs(e.elements.reference),C=cb({reference:_,element:w,strategy:"absolute",placement:a}),E=Lp(Object.assign({},w,C)),S=f===mo?E:_,D={top:b.top-S.top+m.top,bottom:S.bottom-b.bottom+m.bottom,left:b.left-S.left+m.left,right:S.right-b.right+m.right},T=e.modifiersData.offset;if(f===mo&&T){var F=T[a];Object.keys(D).forEach(function(U){var Y=[Gn,Wn].indexOf(U)>=0?1:-1,X=[gn,Wn].indexOf(U)>=0?"y":"x";D[U]+=F[X]*Y})}return D}function nI(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,i=n.rootBoundary,s=n.padding,A=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?nb:l,u=Vs(r),d=u?A?Wv:Wv.filter(function(h){return Vs(h)===u}):JA,f=d.filter(function(h){return c.indexOf(h)>=0});f.length===0&&(f=d);var p=f.reduce(function(h,g){return h[g]=SA(e,{placement:g,boundary:a,rootBoundary:i,padding:s})[Br(g)],h},{});return Object.keys(p).sort(function(h,g){return p[h]-p[g]})}function rI(e){if(Br(e)===ym)return[];var t=Pc(e);return[Yv(e),t,Yv(t)]}function aI(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,A=s===void 0?!0:s,l=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=p===void 0?!0:p,g=n.allowedAutoPlacements,B=t.options.placement,m=Br(B),v=m===B,w=l||(v||!h?[Pc(B)]:rI(B)),y=[B].concat(w).reduce(function(fe,re){return fe.concat(Br(re)===ym?nI(t,{placement:re,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:g}):re)},[]),b=t.rects.reference,_=t.rects.popper,C=new Map,E=!0,S=y[0],D=0;D<y.length;D++){var T=y[D],F=Br(T),U=Vs(T)===Ps,Y=[gn,Wn].indexOf(F)>=0,X=Y?"width":"height",j=SA(t,{placement:T,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),K=Y?U?Gn:vn:U?Wn:gn;b[X]>_[X]&&(K=Pc(K));var Ae=Pc(K),$=[];if(i&&$.push(j[F]<=0),A&&$.push(j[K]<=0,j[Ae]<=0),$.every(function(fe){return fe})){S=T,E=!1;break}C.set(T,$)}if(E)for(var ie=h?3:1,ce=function(re){var N=y.find(function(ne){var He=C.get(ne);if(He)return He.slice(0,re).every(function(lt){return lt})});if(N)return S=N,"break"},Be=ie;Be>0;Be--){var xe=ce(Be);if(xe==="break")break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}}const iI={name:"flip",enabled:!0,phase:"main",fn:aI,requiresIfExists:["offset"],data:{_skip:!1}};function Xv(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Jv(e){return[gn,Gn,Wn,vn].some(function(t){return e[t]>=0})}function sI(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,i=t.modifiersData.preventOverflow,s=SA(t,{elementContext:"reference"}),A=SA(t,{altBoundary:!0}),l=Xv(s,r),c=Xv(A,a,i),u=Jv(l),d=Jv(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const oI={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:sI};function AI(e,t,n){var r=Br(e),a=[vn,gn].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=i[0],A=i[1];return s=s||0,A=(A||0)*a,[vn,Gn].indexOf(r)>=0?{x:A,y:s}:{x:s,y:A}}function lI(e){var t=e.state,n=e.options,r=e.name,a=n.offset,i=a===void 0?[0,0]:a,s=nb.reduce(function(u,d){return u[d]=AI(d,t.rects,i),u},{}),A=s[t.placement],l=A.x,c=A.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=s}const cI={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lI};function uI(e){var t=e.state,n=e.name;t.modifiersData[n]=cb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const dI={name:"popperOffsets",enabled:!0,phase:"read",fn:uI,data:{}};function fI(e){return e==="x"?"y":"x"}function pI(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,i=a===void 0?!0:a,s=n.altAxis,A=s===void 0?!1:s,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,B=SA(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),m=Br(t.placement),v=Vs(t.placement),w=!v,y=bm(m),b=fI(y),_=t.modifiersData.popperOffsets,C=t.rects.reference,E=t.rects.popper,S=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,D=typeof S=="number"?{mainAxis:S,altAxis:S}:Object.assign({mainAxis:0,altAxis:0},S),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(_){if(i){var U,Y=y==="y"?gn:vn,X=y==="y"?Wn:Gn,j=y==="y"?"height":"width",K=_[y],Ae=K+B[Y],$=K-B[X],ie=p?-E[j]/2:0,ce=v===Ps?C[j]:E[j],Be=v===Ps?-E[j]:-C[j],xe=t.elements.arrow,fe=p&&xe?wm(xe):{width:0,height:0},re=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:sb(),N=re[Y],ne=re[X],He=jo(0,C[j],fe[j]),lt=w?C[j]/2-ie-He-N-D.mainAxis:ce-He-N-D.mainAxis,It=w?-C[j]/2+ie+He+ne+D.mainAxis:Be+He+ne+D.mainAxis,wt=t.elements.arrow&&ZA(t.elements.arrow),Qn=wt?y==="y"?wt.clientTop||0:wt.clientLeft||0:0,x=(U=T==null?void 0:T[y])!=null?U:0,k=K+lt-x-Qn,Q=K+It-x,z=jo(p?lu(Ae,k):Ae,K,p?xi($,Q):$);_[y]=z,F[y]=z-K}if(A){var oe,pe=y==="x"?gn:vn,Tt=y==="x"?Wn:Gn,mt=_[b],wn=b==="y"?"height":"width",ze=mt+B[pe],O=mt-B[Tt],P=[gn,vn].indexOf(m)!==-1,tt=(oe=T==null?void 0:T[b])!=null?oe:0,nt=P?ze:mt-C[wn]-E[wn]-tt+D.altAxis,Ar=P?mt+C[wn]+E[wn]-tt-D.altAxis:O,Ln=p&&P?N6(nt,mt,Ar):jo(p?nt:ze,mt,p?Ar:O);_[b]=Ln,F[b]=Ln-mt}t.modifiersData[r]=F}}const hI={name:"preventOverflow",enabled:!0,phase:"main",fn:pI,requiresIfExists:["offset"]};function mI(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function gI(e){return e===In(e)||!zn(e)?_m(e):mI(e)}function vI(e){var t=e.getBoundingClientRect(),n=Hs(t.width)/e.offsetWidth||1,r=Hs(t.height)/e.offsetHeight||1;return n!==1||r!==1}function yI(e,t,n){n===void 0&&(n=!1);var r=zn(t),a=zn(t)&&vI(t),i=ii(t),s=Rs(e,a,n),A={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((_r(t)!=="body"||km(i))&&(A=gI(t)),zn(t)?(l=Rs(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):i&&(l.x=Cm(i))),{x:s.left+A.scrollLeft-l.x,y:s.top+A.scrollTop-l.y,width:s.width,height:s.height}}function BI(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function a(i){n.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(A){if(!n.has(A)){var l=t.get(A);l&&a(l)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||a(i)}),r}function wI(e){var t=BI(e);return D6.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function bI(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _I(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Zv={placement:"bottom",modifiers:[],strategy:"absolute"};function e0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function CI(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,i=a===void 0?Zv:a;return function(A,l,c){c===void 0&&(c=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zv,i),modifiersData:{},elements:{reference:A,popper:l},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(m){var v=typeof m=="function"?m(u.options):m;g(),u.options=Object.assign({},i,u.options,v),u.scrollParents={reference:Ni(A)?Yo(A):A.contextElement?Yo(A.contextElement):[],popper:Yo(l)};var w=wI(_I([].concat(r,u.options.modifiers)));return u.orderedModifiers=w.filter(function(y){return y.enabled}),h(),p.update()},forceUpdate:function(){if(!f){var m=u.elements,v=m.reference,w=m.popper;if(e0(v,w)){u.rects={reference:yI(v,ZA(w),u.options.strategy==="fixed"),popper:wm(w)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(D){return u.modifiersData[D.name]=Object.assign({},D.data)});for(var y=0;y<u.orderedModifiers.length;y++){if(u.reset===!0){u.reset=!1,y=-1;continue}var b=u.orderedModifiers[y],_=b.fn,C=b.options,E=C===void 0?{}:C,S=b.name;typeof _=="function"&&(u=_({state:u,options:E,name:S,instance:p})||u)}}}},update:bI(function(){return new Promise(function(B){p.forceUpdate(),B(u)})}),destroy:function(){g(),f=!0}};if(!e0(A,l))return p;p.setOptions(c).then(function(B){!f&&c.onFirstUpdate&&c.onFirstUpdate(B)});function h(){u.orderedModifiers.forEach(function(B){var m=B.name,v=B.options,w=v===void 0?{}:v,y=B.effect;if(typeof y=="function"){var b=y({state:u,name:m,instance:p,options:w}),_=function(){};d.push(b||_)}})}function g(){d.forEach(function(B){return B()}),d=[]}return p}}var kI=[j6,dI,W6,rb,cI,iI,hI,V6,oI],EI=CI({defaultModifiers:kI}),SI="tippy-box",ub="tippy-content",xI="tippy-backdrop",db="tippy-arrow",fb="tippy-svg-arrow",hi={passive:!0,capture:!0},pb=function(){return document.body};function FI(e,t){return{}.hasOwnProperty.call(e,t)}function pf(e,t,n){if(Array.isArray(e)){var r=e[t];return r??(Array.isArray(n)?n[t]:n)}return e}function Em(e,t){var n={}.toString.call(e);return n.indexOf("[object")===0&&n.indexOf(t+"]")>-1}function hb(e,t){return typeof e=="function"?e.apply(void 0,t):e}function t0(e,t){if(t===0)return e;var n;return function(r){clearTimeout(n),n=setTimeout(function(){e(r)},t)}}function II(e,t){var n=Object.assign({},e);return t.forEach(function(r){delete n[r]}),n}function TI(e){return e.split(/\s+/).filter(Boolean)}function hs(e){return[].concat(e)}function n0(e,t){e.indexOf(t)===-1&&e.push(t)}function UI(e){return e.filter(function(t,n){return e.indexOf(t)===n})}function DI(e){return e.split("-")[0]}function cu(e){return[].slice.call(e)}function r0(e){return Object.keys(e).reduce(function(t,n){return e[n]!==void 0&&(t[n]=e[n]),t},{})}function qo(){return document.createElement("div")}function xA(e){return["Element","Fragment"].some(function(t){return Em(e,t)})}function QI(e){return Em(e,"NodeList")}function LI(e){return Em(e,"MouseEvent")}function OI(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function MI(e){return xA(e)?[e]:QI(e)?cu(e):Array.isArray(e)?e:cu(document.querySelectorAll(e))}function hf(e,t){e.forEach(function(n){n&&(n.style.transitionDuration=t+"ms")})}function a0(e,t){e.forEach(function(n){n&&n.setAttribute("data-state",t)})}function NI(e){var t,n=hs(e),r=n[0];return r!=null&&(t=r.ownerDocument)!=null&&t.body?r.ownerDocument:document}function PI(e,t){var n=t.clientX,r=t.clientY;return e.every(function(a){var i=a.popperRect,s=a.popperState,A=a.props,l=A.interactiveBorder,c=DI(s.placement),u=s.modifiersData.offset;if(!u)return!0;var d=c==="bottom"?u.top.y:0,f=c==="top"?u.bottom.y:0,p=c==="right"?u.left.x:0,h=c==="left"?u.right.x:0,g=i.top-r+d>l,B=r-i.bottom-f>l,m=i.left-n+p>l,v=n-i.right-h>l;return g||B||m||v})}function mf(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[r](a,n)})}function i0(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=n.getRootNode==null||(r=n.getRootNode())==null?void 0:r.host}return!1}var mr={isTouch:!1},s0=0;function HI(){mr.isTouch||(mr.isTouch=!0,window.performance&&document.addEventListener("mousemove",mb))}function mb(){var e=performance.now();e-s0<20&&(mr.isTouch=!1,document.removeEventListener("mousemove",mb)),s0=e}function RI(){var e=document.activeElement;if(OI(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function VI(){document.addEventListener("touchstart",HI,hi),window.addEventListener("blur",RI)}var KI=typeof window<"u"&&typeof document<"u",$I=KI?!!window.msCrypto:!1;function is(e){var t=e==="destroy"?"n already-":" ";return[e+"() was called on a"+t+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function o0(e){var t=/[ \t]{2,}/g,n=/^[ \t]*/gm;return e.replace(t," ").replace(n,"").trim()}function zI(e){return o0(`
|
|
805
805
|
%ctippy.js
|
|
806
806
|
|
|
807
807
|
%c`+o0(e)+`
|
|
@@ -821,8 +821,8 @@ svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
|
|
|
821
821
|
`,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
|
|
822
822
|
|
|
823
823
|
`,`1) content: element.innerHTML
|
|
824
|
-
`,"2) content: () => element.cloneNode(true)"].join(" "))}var A=a.reduce(function(l,c){var u=c&&eT(c,r);return u&&l.push(u),l},[]);return xA(e)?A[0]:A}qe.defaultProps=xn;qe.setDefaultProps=qI;qe.currentInput=mr;Object.assign({},rb,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});qe.setDefaultProps({render:wb});const bb={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},isRoot:{type:Boolean,required:!0},quantityNeeded:{type:Number,required:!1,default:void 0},deckList:{type:Object,required:!1,default(){return{}}},isDeckBuilder:{type:Boolean,required:!1,default:!1},showTippyLocation:{type:String,required:!1,default:null}},tT=["alt","src"],nT={key:0,class:"quantity-ticks-container"},rT={key:0},aT={key:0,class:"card-info-quantity-possessed"},iT={key:1,class:"line"},sT={class:"card-info-title"},oT={class:"card-info-text"},AT={key:2,class:"line"},lT={key:3,class:"card-info-text"},cT={key:1,class:"associated-card-container"},uT=o.defineComponent({__name:"CardItem",props:bb,setup(e){const t=e,{t:n}=J(),r=o.ref(null),a=o.ref(null);let i=null;const s=o.ref(!1),A=GA(t.cardProp,t.cardCodeProp),l=o.computed(()=>A.value===void 0||f.value===null?null:t.quantityNeeded!==void 0&&f.value<t.quantityNeeded?"bad":null),c=o.computed(()=>{if(A.value===void 0)return[];const m=[];if(t.isRoot)for(const v of A.value.associatedCardRefs)m.push(on().cardJsonObject[v]);return m}),u=o.computed(()=>{if(A.value===void 0)return[];const m=[];for(const v of A.value.keywordRefs){const w=
|
|
825
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_b={exports:{}};(function(e){(function(t){var n=function(m,v,w){if(!c(v)||d(v)||f(v)||p(v)||l(v))return v;var y,b=0,_=0;if(u(v))for(y=[],_=v.length;b<_;b++)y.push(n(m,v[b],w));else{y={};for(var C in v)Object.prototype.hasOwnProperty.call(v,C)&&(y[m(C,w)]=n(m,v[C],w))}return y},r=function(m,v){v=v||{};var w=v.separator||"_",y=v.split||/(?=[A-Z])/;return m.split(y).join(w)},a=function(m){return h(m)?m:(m=m.replace(/[\-_\s]+(.)?/g,function(v,w){return w?w.toUpperCase():""}),m.substr(0,1).toLowerCase()+m.substr(1))},i=function(m){var v=a(m);return v.substr(0,1).toUpperCase()+v.substr(1)},s=function(m,v){return r(m,v).toLowerCase()},A=Object.prototype.toString,l=function(m){return typeof m=="function"},c=function(m){return m===Object(m)},u=function(m){return A.call(m)=="[object Array]"},d=function(m){return A.call(m)=="[object Date]"},f=function(m){return A.call(m)=="[object RegExp]"},p=function(m){return A.call(m)=="[object Boolean]"},h=function(m){return m=m-0,m===m},g=function(m,v){var w=v&&"process"in v?v.process:v;return typeof w!="function"?m:function(y,b){return w(y,m,b)}},B={camelize:a,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(m,v){return n(g(a,v),m)},decamelizeKeys:function(m,v){return n(g(s,v),m,v)},pascalizeKeys:function(m,v){return n(g(i,v),m)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=B:t.humps=B})(wT)})(_b);var bT=_b.exports,_T=["class","style"];function CT(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=bT.camelize(n.slice(0,r)),i=n.slice(r+1).trim();return t[a]=i,t},{})}function kT(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Sm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(l){return Sm(l)}),a=Object.keys(e.attributes||{}).reduce(function(l,c){var u=e.attributes[c];switch(c){case"class":l.class=kT(u);break;case"style":l.style=CT(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,A=mT(n,_T);return o.h(e.tag,er(er(er({},t),{},{class:a.class,style:er(er({},a.style),s)},a.attrs),A),r)}var Cb=!1;try{Cb=process.env.NODE_ENV==="production"}catch{}function ET(){if(!Cb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Xo(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?un({},e,t):{}}function ST(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},un(t,"fa-".concat(e.size),e.size!==null),un(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),un(t,"fa-pull-".concat(e.pull),e.pull!==null),un(t,"fa-swap-opacity",e.swapOpacity),un(t,"fa-bounce",e.bounce),un(t,"fa-shake",e.shake),un(t,"fa-beat",e.beat),un(t,"fa-fade",e.fade),un(t,"fa-beat-fade",e.beatFade),un(t,"fa-flash",e.flash),un(t,"fa-spin-pulse",e.spinPulse),un(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function d0(e){if(e&&uu(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ou.icon)return ou.icon(e);if(e===null)return null;if(uu(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var ke=o.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,a=o.computed(function(){return d0(t.icon)}),i=o.computed(function(){return Xo("classes",ST(t))}),s=o.computed(function(){return Xo("transform",typeof t.transform=="string"?ou.transform(t.transform):t.transform)}),A=o.computed(function(){return Xo("mask",d0(t.mask))}),l=o.computed(function(){return FF(a.value,er(er(er(er({},i.value),s.value),A.value),{},{symbol:t.symbol,title:t.title}))});o.watch(l,function(u){if(!u)return ET("Could not find one or more icon(s)",a.value,A.value)},{immediate:!0});var c=o.computed(function(){return l.value?Sm(l.value.abstract[0],{},r):null});return function(){return c.value}}});o.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,a=Pw.familyPrefix,i=o.computed(function(){return["".concat(a,"-layers")].concat(Pp(t.fixedWidth?["".concat(a,"-fw")]:[]))});return function(){return o.h("div",{class:i.value},r.default?r.default():[])}}});o.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,a=Pw.familyPrefix,i=o.computed(function(){return Xo("classes",[].concat(Pp(t.counter?["".concat(a,"-layers-counter")]:[]),Pp(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),s=o.computed(function(){return Xo("transform",typeof t.transform=="string"?ou.transform(t.transform):t.transform)}),A=o.computed(function(){var c=IF(t.value.toString(),er(er({},s.value),i.value)),u=c.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),l=o.computed(function(){return Sm(A.value,{},r)});return function(){return l.value}}});const xT={class:"card-slice"},FT={key:0,class:"mana-hexagon"},IT={class:"mana-number"},TT={class:"card-name"},UT={key:1,class:"quantity"},DT={class:"quantity-background"},QT={class:"plus-minus-content"},LT={class:"plus-minus-quantity"},OT=o.defineComponent({__name:"CardSliceItem",props:dT,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e;console.log("props.color",n.color);const r=GA(n.cardProp,n.cardCodeProp,!1),a=o.ref(null),i=o.ref(null),s=o.ref(null),A=o.ref(null),l=o.computed(()=>{let f=n.color;return!f&&r.value&&(f=yi(r.value,null,!0)),n.color===null&&(f="var(--color-background-2-rgb)"),{"--color":f}}),c=o.computed(()=>r.value?ye().callbacks.cardImageCallback(r.value.cardCode,gt.Slice):""),u=o.computed(()=>{const f=["card-slice-wrapper"];return n.maintainAspectRatio&&f.push("maintain-aspect-ratio"),f}),d=o.computed(()=>{const f=Vu().acquiredCards;return r.value===void 0||n.quantityNumber===void 0||n.quantityNumber>3||f===void 0||n.showPlusMinus?null:(f[r.value.cardCode]??0)<n.quantityNumber?"missing-quantity":null});return o.onMounted(()=>{n.ignoreCardItem||qe(a.value,{content:s.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:f=>{const p=f.popper.innerHTML.includes("right")?"right-start":"left-start";A.value=p},onHidden:()=>{A.value=null}})}),(f,p)=>{const h=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(h,{to:n.routerLink},{default:o.withCtx(()=>{var g,B;return[o.createElementVNode("div",{ref_key:"cardSlice",ref:a,class:o.normalizeClass(u.value)},[o.createElementVNode("div",xT,[o.createElementVNode("div",{class:"card-image",style:o.normalizeStyle({backgroundImage:`url(${c.value})`})},null,4),o.createElementVNode("div",{class:"region-gradient",style:o.normalizeStyle(l.value)},null,4),n.manaNumber!==null?(o.openBlock(),o.createElementBlock("div",FT,[o.createVNode(el,{class:"hexagon-icon"}),o.createElementVNode("div",IT,o.toDisplayString(n.manaNumber??((g=o.unref(r))==null?void 0:g.cost)),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",TT,o.toDisplayString(n.name??((B=o.unref(r))==null?void 0:B.name)),1),n.quantityNumber!==void 0&&n.quantityNumber!==null?(o.openBlock(),o.createElementBlock("div",UT,[o.createElementVNode("div",DT,[o.createElementVNode("p",{class:o.normalizeClass(["num-quantity",d.value])},o.toDisplayString(n.quantityNumber),3)])])):o.createCommentVNode("",!0),n.showPlusMinus?(o.openBlock(),o.createElementBlock("div",{key:2,class:"plus-minus",onClick:p[2]||(p[2]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("div",QT,[o.createElementVNode("div",{class:"plus-minus-icon",onClick:p[0]||(p[0]=o.withModifiers(m=>{var v;return t("update:card-quantity",{cardCode:((v=o.unref(r))==null?void 0:v.cardCode)??"",quantity:-1})},["prevent"]))},[o.createVNode(o.unref(ke),{icon:"minus",class:"icon"})]),o.createElementVNode("div",{class:"plus-minus-icon",onClick:p[1]||(p[1]=o.withModifiers(m=>{var v;return t("update:card-quantity",{cardCode:((v=o.unref(r))==null?void 0:v.cardCode)??"",quantity:1})},["prevent"]))},[o.createVNode(o.unref(ke),{icon:"plus",class:"icon"})]),o.createElementVNode("div",LT,o.toDisplayString(n.quantityNumber),1)])])):o.createCommentVNode("",!0)])],2),o.createElementVNode("div",{ref_key:"cardItemWrapper",ref:s,class:"card-item-container"},[o.unref(r)&&!f.ignoreCardItem?(o.openBlock(),o.createBlock(Pi,{key:0,ref_key:"cardItem",ref:i,"is-root":!0,"card-prop":o.unref(r),"quantity-needed":n.quantityNumber,"show-tippy-location":A.value,class:"card-image-hover"},null,8,["card-prop","quantity-needed","show-tippy-location"])):o.createCommentVNode("",!0)],512)]}),_:1},8,["to"])}}});const $t=M(OT,[["__scopeId","data-v-dc5cfc42"]]);function fr(e){return[null,void 0].indexOf(e)!==-1}function MT(e,t,n){const{object:r,valueProp:a,mode:i}=o.toRefs(e),s=o.getCurrentInstance().proxy,A=n.iv,l=(d,f=!0)=>{A.value=u(d);const p=c(d);t.emit("change",p,s),f&&(t.emit("input",p),t.emit("update:modelValue",p))},c=d=>r.value||fr(d)?d:Array.isArray(d)?d.map(f=>f[a.value]):d[a.value],u=d=>fr(d)?i.value==="single"?{}:[]:d;return{update:l}}function NT(e,t){const{value:n,modelValue:r,mode:a,valueProp:i}=o.toRefs(e),s=o.ref(a.value!=="single"?[]:{}),A=r&&r.value!==void 0?r:n,l=o.computed(()=>a.value==="single"?s.value[i.value]:s.value.map(u=>u[i.value])),c=o.computed(()=>a.value!=="single"?s.value.map(u=>u[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:A,externalValue:A,textValue:c,plainValue:l}}function PT(e,t,n){const{regex:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,i=n.isOpen,s=n.open,A=o.ref(null),l=o.ref(null),c=()=>{A.value=""},u=p=>{A.value=p.target.value},d=p=>{if(r&&r.value){let h=r.value;typeof h=="string"&&(h=new RegExp(h)),p.key.match(h)||p.preventDefault()}},f=p=>{if(r&&r.value){let g=(p.clipboardData||window.clipboardData).getData("Text"),B=r.value;typeof B=="string"&&(B=new RegExp(B)),g.split("").every(m=>!!m.match(B))||p.preventDefault()}t.emit("paste",p,a)};return o.watch(A,p=>{!i.value&&p&&s(),t.emit("search-change",p,a)}),{search:A,input:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function HT(e,t,n){const{groupSelect:r,mode:a,groups:i,disabledProp:s}=o.toRefs(e),A=o.ref(null),l=u=>{u===void 0||u!==null&&u[s.value]||i.value&&u&&u.group&&(a.value==="single"||!r.value)||(A.value=u)};return{pointer:A,setPointer:l,clearPointer:()=>{l(null)}}}function vf(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function RT(e){return Object.prototype.toString.call(e)==="[object Object]"}function VT(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,a){return r===n[a]})}function KT(e,t,n){const{options:r,mode:a,trackBy:i,limit:s,hideSelected:A,createTag:l,createOption:c,label:u,appendNewTag:d,appendNewOption:f,multipleLabel:p,object:h,loading:g,delay:B,resolveOnLoad:m,minChars:v,filterResults:w,clearOnSearch:y,clearOnSelect:b,valueProp:_,allowAbsent:C,groupLabel:E,canDeselect:S,max:D,strict:T,closeOnSelect:F,closeOnDeselect:U,groups:Y,reverse:X,infinite:j,groupOptions:K,groupHideEmpty:Ae,groupSelect:$,onCreate:ie,disabledProp:ce,searchStart:Be,searchFilter:xe}=o.toRefs(e),fe=o.getCurrentInstance().proxy,re=n.iv,N=n.ev,ne=n.search,He=n.clearSearch,lt=n.update,It=n.pointer,wt=n.clearPointer,Qn=n.focus,x=n.deactivate,k=n.close,Q=n.localize,z=o.ref([]),oe=o.ref([]),pe=o.ref(!1),Tt=o.ref(null),mt=o.ref(j.value&&s.value===-1?10:s.value),wn=o.computed(()=>l.value||c.value||!1),ze=o.computed(()=>d.value!==void 0?d.value:f.value!==void 0?f.value:!0),O=o.computed(()=>{if(Y.value){let I=nt.value||[],W=[];return I.forEach(Te=>{Jd(Te[K.value]).forEach(bt=>{W.push(Object.assign({},bt,Te[ce.value]?{[ce.value]:!0}:{}))})}),W}else{let I=Jd(oe.value||[]);return z.value.length&&(I=I.concat(z.value)),I}}),P=o.computed(()=>{let I=O.value;return X.value&&(I=I.reverse()),ga.value.length&&(I=ga.value.concat(I)),Xd(I)}),tt=o.computed(()=>{let I=P.value;return mt.value>0&&(I=I.slice(0,mt.value)),I}),nt=o.computed(()=>{if(!Y.value)return[];let I=[],W=oe.value||[];return z.value.length&&I.push({[E.value]:" ",[K.value]:[...z.value],__CREATE__:!0}),I.concat(W)}),Ar=o.computed(()=>{let I=[...nt.value].map(W=>({...W}));return ga.value.length&&(I[0]&&I[0].__CREATE__?I[0][K.value]=[...ga.value,...I[0][K.value]]:I=[{[E.value]:" ",[K.value]:[...ga.value],__CREATE__:!0}].concat(I)),I}),Ln=o.computed(()=>{if(!Y.value)return[];let I=Ar.value;return m3((I||[]).map((W,Te)=>{const bt=Jd(W[K.value]);return{...W,index:Te,group:!0,[K.value]:Xd(bt,!1).map(po=>Object.assign({},po,W[ce.value]?{[ce.value]:!0}:{})),__VISIBLE__:Xd(bt).map(po=>Object.assign({},po,W[ce.value]?{[ce.value]:!0}:{}))}}))}),On=o.computed(()=>{switch(a.value){case"single":return!fr(re.value[_.value]);case"multiple":case"tags":return!fr(re.value)&&re.value.length>0}}),qn=o.computed(()=>p!==void 0&&p.value!==void 0?p.value(re.value,fe):re.value&&re.value.length>1?`${re.value.length} options selected`:"1 option selected"),co=o.computed(()=>!O.value.length&&!pe.value&&!ga.value.length),ns=o.computed(()=>O.value.length>0&&tt.value.length==0&&(ne.value&&Y.value||!Y.value)),ga=o.computed(()=>wn.value===!1||!ne.value?[]:f3(ne.value)!==-1?[]:[{[_.value]:ne.value,[L.value]:ne.value,[u.value]:ne.value,__CREATE__:!0}]),L=o.computed(()=>i.value||u.value),ae=o.computed(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),ue=o.computed(()=>g.value||pe.value),Ie=I=>{switch(typeof I!="object"&&(I=Dr(I)),a.value){case"single":lt(I);break;case"multiple":case"tags":lt(re.value.concat(I));break}t.emit("select",Ot(I),I,fe)},_e=I=>{switch(typeof I!="object"&&(I=Dr(I)),a.value){case"single":uo();break;case"tags":case"multiple":lt(Array.isArray(I)?re.value.filter(W=>I.map(Te=>Te[_.value]).indexOf(W[_.value])===-1):re.value.filter(W=>W[_.value]!=I[_.value]));break}t.emit("deselect",Ot(I),I,fe)},Ot=I=>h.value?I:I[_.value],nn=I=>{_e(I)},va=(I,W)=>{if(W.button!==0){W.preventDefault();return}nn(I)},uo=()=>{t.emit("clear",fe),lt(ae.value)},Rt=I=>{if(I.group!==void 0)return a.value==="single"?!1:d3(I[K.value])&&I[K.value].length;switch(a.value){case"single":return!fr(re.value)&&re.value[_.value]==I[_.value];case"tags":case"multiple":return!fr(re.value)&&re.value.map(W=>W[_.value]).indexOf(I[_.value])!==-1}},li=I=>I[ce.value]===!0,ya=()=>D===void 0||D.value===-1||!On.value&&D.value>0?!1:re.value.length>=D.value,Ba=I=>{if(!li(I)){if(ie&&ie.value&&!Rt(I)&&I.__CREATE__&&(I={...I},delete I.__CREATE__,I=ie.value(I,fe),I instanceof Promise)){pe.value=!0,I.then(W=>{pe.value=!1,Sl(W)});return}Sl(I)}},Sl=I=>{switch(I.__CREATE__&&(I={...I},delete I.__CREATE__),a.value){case"single":if(I&&Rt(I)){S.value&&_e(I),U.value&&(wt(),k());return}I&&wa(I),b.value&&He(),F.value&&(wt(),k()),I&&Ie(I);break;case"multiple":if(I&&Rt(I)){_e(I),U.value&&(wt(),k());return}if(ya()){t.emit("max",fe);return}I&&(wa(I),Ie(I)),b.value&&He(),A.value&&wt(),F.value&&k();break;case"tags":if(I&&Rt(I)){_e(I),U.value&&(wt(),k());return}if(ya()){t.emit("max",fe);return}I&&wa(I),b.value&&He(),I&&Ie(I),A.value&&wt(),F.value&&k();break}F.value||Qn()},fo=I=>{if(!(li(I)||a.value==="single"||!$.value)){switch(a.value){case"multiple":case"tags":u3(I[K.value])?_e(I[K.value]):Ie(I[K.value].filter(W=>re.value.map(Te=>Te[_.value]).indexOf(W[_.value])===-1).filter(W=>!W[ce.value]).filter((W,Te)=>re.value.length+1+Te<=D.value||D.value===-1));break}F.value&&x()}},wa=I=>{Dr(I[_.value])===void 0&&wn.value&&(t.emit("tag",I[_.value],fe),t.emit("option",I[_.value],fe),t.emit("create",I[_.value],fe),ze.value&&h3(I),He())},c3=()=>{a.value!=="single"&&Ie(tt.value.filter(I=>!I.disabled&&!Rt(I)))},u3=I=>I.find(W=>!Rt(W)&&!W[ce.value])===void 0,d3=I=>I.find(W=>!Rt(W))===void 0,Dr=I=>O.value[O.value.map(W=>String(W[_.value])).indexOf(String(I))],f3=(I,W=!0)=>O.value.map(Te=>parseInt(Te[L.value])==Te[L.value]?parseInt(Te[L.value]):Te[L.value]).indexOf(parseInt(I)==I?parseInt(I):I),p3=I=>["tags","multiple"].indexOf(a.value)!==-1&&A.value&&Rt(I),h3=I=>{z.value.push(I)},m3=I=>Ae.value?I.filter(W=>ne.value?W.__VISIBLE__.length:W[K.value].length):I.filter(W=>ne.value?W.__VISIBLE__.length:!0),Xd=(I,W=!0)=>{let Te=I;if(ne.value&&w.value){let bt=xe.value;bt||(bt=(po,oce)=>{let U1=vf(Q(po[L.value]),T.value);return Be.value?U1.startsWith(vf(ne.value,T.value)):U1.indexOf(vf(ne.value,T.value))!==-1}),Te=Te.filter(bt)}return A.value&&W&&(Te=Te.filter(bt=>!p3(bt))),Te},Jd=I=>{let W=I;return RT(W)&&(W=Object.keys(W).map(Te=>{let bt=W[Te];return{[_.value]:Te,[L.value]:bt,[u.value]:bt}})),W=W.map(Te=>typeof Te=="object"?Te:{[_.value]:Te,[L.value]:Te,[u.value]:Te}),W},xl=()=>{fr(N.value)||(re.value=Il(N.value))},Fl=I=>(pe.value=!0,new Promise((W,Te)=>{r.value(ne.value,fe).then(bt=>{oe.value=bt||[],typeof I=="function"&&I(bt),pe.value=!1}).catch(bt=>{console.error(bt),oe.value=[],pe.value=!1}).finally(()=>{W()})})),Zd=()=>{if(On.value)if(a.value==="single"){let I=Dr(re.value[_.value]);if(I!==void 0){let W=I[u.value];re.value[u.value]=W,h.value&&(N.value[u.value]=W)}}else re.value.forEach((I,W)=>{let Te=Dr(re.value[W][_.value]);if(Te!==void 0){let bt=Te[u.value];re.value[W][u.value]=bt,h.value&&(N.value[W][u.value]=bt)}})},g3=I=>{Fl(I)},Il=I=>fr(I)?a.value==="single"?{}:[]:h.value?I:a.value==="single"?Dr(I)||(C.value?{[u.value]:I,[_.value]:I,[L.value]:I}:{}):I.filter(W=>!!Dr(W)||C.value).map(W=>Dr(W)||{[u.value]:W,[_.value]:W,[L.value]:W}),T1=()=>{Tt.value=o.watch(ne,I=>{I.length<v.value||!I&&v.value!==0||(pe.value=!0,y.value&&(oe.value=[]),setTimeout(()=>{I==ne.value&&r.value(ne.value,fe).then(W=>{(I==ne.value||!ne.value)&&(oe.value=W,It.value=tt.value.filter(Te=>Te[ce.value]!==!0)[0]||null,pe.value=!1)}).catch(W=>{console.error(W)})},B.value))},{flush:"sync"})};if(a.value!=="single"&&!fr(N.value)&&!Array.isArray(N.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return r&&typeof r.value=="function"?m.value?Fl(xl):h.value==!0&&xl():(oe.value=r.value,xl()),B.value>-1&&T1(),o.watch(B,(I,W)=>{Tt.value&&Tt.value(),I>=0&&T1()}),o.watch(N,I=>{if(fr(I)){lt(Il(I),!1);return}switch(a.value){case"single":(h.value?I[_.value]!=re.value[_.value]:I!=re.value[_.value])&<(Il(I),!1);break;case"multiple":case"tags":VT(h.value?I.map(W=>W[_.value]):I,re.value.map(W=>W[_.value]))||lt(Il(I),!1);break}},{deep:!0}),o.watch(r,(I,W)=>{typeof e.options=="function"?m.value&&(!W||I&&I.toString()!==W.toString())&&Fl():(oe.value=e.options,Object.keys(re.value).length||xl(),Zd())}),o.watch(u,Zd),{pfo:P,fo:tt,filteredOptions:tt,hasSelected:On,multipleLabelText:qn,eo:O,extendedOptions:O,eg:nt,extendedGroups:nt,fg:Ln,filteredGroups:Ln,noOptions:co,noResults:ns,resolving:pe,busy:ue,offset:mt,select:Ie,deselect:_e,remove:nn,selectAll:c3,clear:uo,isSelected:Rt,isDisabled:li,isMax:ya,getOption:Dr,handleOptionClick:Ba,handleGroupClick:fo,handleTagRemove:va,refreshOptions:g3,resolveOptions:Fl,refreshLabels:Zd}}function $T(e,t,n){const{valueProp:r,showOptions:a,searchable:i,groupLabel:s,groups:A,mode:l,groupSelect:c,disabledProp:u,groupOptions:d}=o.toRefs(e),f=n.fo,p=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,B=n.search,m=n.pointer,v=n.setPointer,w=n.clearPointer,y=n.multiselect,b=n.isOpen,_=o.computed(()=>f.value.filter(N=>!N[u.value])),C=o.computed(()=>p.value.filter(N=>!N[u.value])),E=o.computed(()=>l.value!=="single"&&c.value),S=o.computed(()=>m.value&&m.value.group),D=o.computed(()=>fe(m.value)),T=o.computed(()=>{const N=S.value?m.value:fe(m.value),ne=C.value.map(lt=>lt[s.value]).indexOf(N[s.value]);let He=C.value[ne-1];return He===void 0&&(He=U.value),He}),F=o.computed(()=>{let N=C.value.map(ne=>ne.label).indexOf(S.value?m.value[s.value]:fe(m.value)[s.value])+1;return C.value.length<=N&&(N=0),C.value[N]}),U=o.computed(()=>[...C.value].slice(-1)[0]),Y=o.computed(()=>m.value.__VISIBLE__.filter(N=>!N[u.value])[0]),X=o.computed(()=>{const N=D.value.__VISIBLE__.filter(ne=>!ne[u.value]);return N[N.map(ne=>ne[r.value]).indexOf(m.value[r.value])-1]}),j=o.computed(()=>{const N=fe(m.value).__VISIBLE__.filter(ne=>!ne[u.value]);return N[N.map(ne=>ne[r.value]).indexOf(m.value[r.value])+1]}),K=o.computed(()=>[...T.value.__VISIBLE__.filter(N=>!N[u.value])].slice(-1)[0]),Ae=o.computed(()=>[...U.value.__VISIBLE__.filter(N=>!N[u.value])].slice(-1)[0]),$=N=>m.value&&(!N.group&&m.value[r.value]===N[r.value]||N.group!==void 0&&m.value[s.value]===N[s.value])?!0:void 0,ie=()=>{v(_.value[0]||null)},ce=()=>{!m.value||m.value[u.value]===!0||(S.value?g(m.value):h(m.value))},Be=()=>{if(m.value===null)v((A.value&&E.value?C.value[0].__CREATE__?_.value[0]:C.value[0]:_.value[0])||null);else if(A.value&&E.value){let N=S.value?Y.value:j.value;N===void 0&&(N=F.value,N.__CREATE__&&(N=N[d.value][0])),v(N||null)}else{let N=_.value.map(ne=>ne[r.value]).indexOf(m.value[r.value])+1;_.value.length<=N&&(N=0),v(_.value[N]||null)}o.nextTick(()=>{re()})},xe=()=>{if(m.value===null){let N=_.value[_.value.length-1];A.value&&E.value&&(N=Ae.value,N===void 0&&(N=U.value)),v(N||null)}else if(A.value&&E.value){let N=S.value?K.value:X.value;N===void 0&&(N=S.value?T.value:D.value,N.__CREATE__&&(N=K.value,N===void 0&&(N=T.value))),v(N||null)}else{let N=_.value.map(ne=>ne[r.value]).indexOf(m.value[r.value])-1;N<0&&(N=_.value.length-1),v(_.value[N]||null)}o.nextTick(()=>{re()})},fe=N=>C.value.find(ne=>ne.__VISIBLE__.map(He=>He[r.value]).indexOf(N[r.value])!==-1),re=()=>{let N=y.value.querySelector("[data-pointed]");if(!N)return;let ne=N.parentElement.parentElement;A.value&&(ne=S.value?N.parentElement.parentElement.parentElement:N.parentElement.parentElement.parentElement.parentElement),N.offsetTop+N.offsetHeight>ne.clientHeight+ne.scrollTop&&(ne.scrollTop=N.offsetTop+N.offsetHeight-ne.clientHeight),N.offsetTop<ne.scrollTop&&(ne.scrollTop=N.offsetTop)};return o.watch(B,N=>{i.value&&(N.length&&a.value?ie():w())}),o.watch(b,N=>{if(N){let ne=y.value.querySelectorAll("[data-selected]")[0];if(!ne)return;let He=ne.parentElement.parentElement;o.nextTick(()=>{He.scrollTop>0||(He.scrollTop=ne.offsetTop)})}}),{pointer:m,canPointGroups:E,isPointed:$,setPointerFirst:ie,selectPointer:ce,forwardPointer:Be,backwardPointer:xe}}function zT(e,t,n){const{disabled:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,i=o.ref(!1);return{isOpen:i,open:()=>{i.value||r.value||(i.value=!0,t.emit("open",a))},close:()=>{i.value&&(i.value=!1,t.emit("close",a))}}}function WT(e,t,n){const{searchable:r,disabled:a,clearOnBlur:i}=o.toRefs(e),s=n.input,A=n.open,l=n.close,c=n.clearSearch,u=n.isOpen,d=o.ref(null),f=o.ref(null),p=o.ref(null),h=o.ref(!1),g=o.ref(!1),B=o.computed(()=>r.value||a.value?-1:0),m=()=>{r.value&&s.value.blur(),f.value.blur()},v=()=>{r.value&&!a.value&&s.value.focus()},w=(S=!0)=>{a.value||(h.value=!0,S&&A())},y=()=>{h.value=!1,setTimeout(()=>{h.value||(l(),i.value&&c())},1)};return{multiselect:d,wrapper:f,tags:p,tabindex:B,isActive:h,mouseClicked:g,blur:m,focus:v,activate:w,deactivate:y,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||w(g.value)},handleFocusOut:()=>{y()},handleCaretClick:()=>{y(),m()},handleMousedown:S=>{g.value=!0,u.value&&(S.target.isEqualNode(f.value)||S.target.isEqualNode(p.value))?setTimeout(()=>{y()},0):document.activeElement.isEqualNode(f.value)&&!u.value&&w(),setTimeout(()=>{g.value=!1},0)}}}function GT(e,t,n){const{mode:r,addTagOn:a,openDirection:i,searchable:s,showOptions:A,valueProp:l,groups:c,addOptionOn:u,createTag:d,createOption:f,reverse:p}=o.toRefs(e),h=o.getCurrentInstance().proxy,g=n.iv,B=n.update,m=n.search,v=n.setPointer,w=n.selectPointer,y=n.backwardPointer,b=n.forwardPointer,_=n.multiselect,C=n.wrapper,E=n.tags,S=n.isOpen,D=n.open,T=n.blur,F=n.fo,U=o.computed(()=>d.value||f.value||!1),Y=o.computed(()=>a.value!==void 0?a.value:u.value!==void 0?u.value:["enter"]),X=()=>{r.value==="tags"&&!A.value&&U.value&&s.value&&!c.value&&v(F.value[F.value.map($=>$[l.value]).indexOf(m.value)])},j=$=>{let ie=$.length-1;for(;ie>=0&&($[ie].remove===!1||$[ie].disabled);)ie--;return ie<0||$.splice(ie,1),$};return{handleKeydown:$=>{t.emit("keydown",$,h);let ie,ce;switch(["ArrowLeft","ArrowRight","Enter"].indexOf($.key)!==-1&&r.value==="tags"&&(ie=[..._.value.querySelectorAll("[data-tags] > *")].filter(Be=>Be!==E.value),ce=ie.findIndex(Be=>Be===document.activeElement)),$.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(m.value)===-1||g.value.length===0)return;B(j([...g.value]));break;case"Enter":if($.preventDefault(),$.keyCode===229)return;if(ce!==-1&&ce!==void 0){B([...g.value].filter((Be,xe)=>xe!==ce)),ce===ie.length-1&&(ie.length-1?ie[ie.length-2].focus():s.value?E.value.querySelector("input").focus():C.value.focus());return}if(Y.value.indexOf("enter")===-1&&U.value)return;X(),w();break;case" ":if(!U.value&&!s.value){$.preventDefault(),X(),w();return}if(!U.value)return!1;if(Y.value.indexOf("space")===-1&&U.value)return;$.preventDefault(),X(),w();break;case"Tab":case";":case",":if(Y.value.indexOf($.key.toLowerCase())===-1||!U.value)return;X(),w(),$.preventDefault();break;case"Escape":T();break;case"ArrowUp":if($.preventDefault(),!A.value)return;S.value||D(),y();break;case"ArrowDown":if($.preventDefault(),!A.value)return;S.value||D(),b();break;case"ArrowLeft":if(s.value&&E.value&&E.value.querySelector("input").selectionStart||$.shiftKey||r.value!=="tags"||!g.value||!g.value.length)return;$.preventDefault(),ce===-1?ie[ie.length-1].focus():ce>0&&ie[ce-1].focus();break;case"ArrowRight":if(ce===-1||$.shiftKey||r.value!=="tags"||!g.value||!g.value.length)return;$.preventDefault(),ie.length>ce+1?ie[ce+1].focus():s.value?E.value.querySelector("input").focus():s.value||C.value.focus();break}},handleKeyup:$=>{t.emit("keyup",$,h)},preparePointer:X}}function jT(e,t,n){const{classes:r,disabled:a,openDirection:i,showOptions:s}=o.toRefs(e),A=n.isOpen,l=n.isPointed,c=n.isSelected,u=n.isDisabled,d=n.isActive,f=n.canPointGroups,p=n.resolving,h=n.fo,g=o.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),B=o.computed(()=>!!(A.value&&s.value&&(!p.value||p.value&&h.value.length)));return{classList:o.computed(()=>{const v=g.value;return{container:[v.container].concat(a.value?v.containerDisabled:[]).concat(B.value&&i.value==="top"?v.containerOpenTop:[]).concat(B.value&&i.value!=="top"?v.containerOpen:[]).concat(d.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(a.value?v.tagDisabled:[]),tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(A.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(i.value==="top"?v.dropdownTop:[]).concat(!A.value||!s.value||!B.value?v.dropdownHidden:[]),options:[v.options].concat(i.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:w=>{let y=[v.groupLabel];return l(w)?y.push(c(w)?v.groupLabelSelectedPointed:v.groupLabelPointed):c(w)&&f.value?y.push(u(w)?v.groupLabelSelectedDisabled:v.groupLabelSelected):u(w)&&y.push(v.groupLabelDisabled),f.value&&y.push(v.groupLabelPointable),y},groupOptions:v.groupOptions,option:(w,y)=>{let b=[v.option];return l(w)?b.push(c(w)?v.optionSelectedPointed:v.optionPointed):c(w)?b.push(u(w)?v.optionSelectedDisabled:v.optionSelected):(u(w)||y&&u(y))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:B}}function YT(e,t,n){const{limit:r,infinite:a}=o.toRefs(e),i=n.isOpen,s=n.offset,A=n.search,l=n.pfo,c=n.eo,u=o.ref(null),d=o.ref(null),f=o.computed(()=>s.value<l.value.length),p=g=>{const{isIntersecting:B,target:m}=g[0];if(B){const v=m.offsetParent,w=v.scrollTop;s.value+=r.value==-1?10:r.value,o.nextTick(()=>{v.scrollTop=w})}},h=()=>{i.value&&s.value<l.value.length?u.value.observe(d.value):!i.value&&u.value&&u.value.disconnect()};return o.watch(i,()=>{a.value&&h()}),o.watch(A,()=>{a.value&&(s.value=r.value,h())},{flush:"post"}),o.watch(c,()=>{a.value&&h()},{immediate:!1,flush:"post"}),o.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(p))}),{hasMore:f,infiniteLoader:d}}function qT(e,t,n){const{placeholder:r,id:a,valueProp:i,label:s,mode:A,groupLabel:l,aria:c,searchable:u}=o.toRefs(e),d=n.pointer,f=n.iv,p=n.hasSelected,h=n.multipleLabelText,g=o.ref(null),B=o.computed(()=>{let F=[];return a&&a.value&&F.push(a.value),F.push("assist"),F.join("-")}),m=o.computed(()=>{let F=[];return a&&a.value&&F.push(a.value),F.push("multiselect-options"),F.join("-")}),v=o.computed(()=>{let F=[];if(a&&a.value&&F.push(a.value),d.value)return F.push(d.value.group?"multiselect-group":"multiselect-option"),F.push(d.value.group?d.value.index:d.value[i.value]),F.join("-")}),w=o.computed(()=>r.value),y=o.computed(()=>A.value!=="single"),b=o.computed(()=>{let F="";return A.value==="single"&&p.value&&(F+=f.value[s.value]),A.value==="multiple"&&p.value&&(F+=h.value),A.value==="tags"&&p.value&&(F+=f.value.map(U=>U[s.value]).join(", ")),F}),_=o.computed(()=>{let F={...c.value};return u.value&&(F["aria-labelledby"]=F["aria-labelledby"]?`${B.value} ${F["aria-labelledby"]}`:B.value,b.value&&F["aria-label"]&&(F["aria-label"]=`${b.value}, ${F["aria-label"]}`)),F}),C=F=>{let U=[];return a&&a.value&&U.push(a.value),U.push("multiselect-option"),U.push(F[i.value]),U.join("-")},E=F=>{let U=[];return a&&a.value&&U.push(a.value),U.push("multiselect-group"),U.push(F.index),U.join("-")},S=F=>{let U=[];return U.push(F),U.join(" ")},D=F=>{let U=[];return U.push(F),U.join(" ")},T=F=>`${F} ❎`;return o.onMounted(()=>{if(a&&a.value&&document&&document.querySelector){let F=document.querySelector(`[for="${a.value}"]`);g.value=F?F.innerText:null}}),{arias:_,ariaLabel:b,ariaAssist:B,ariaControls:m,ariaPlaceholder:w,ariaMultiselectable:y,ariaActiveDescendant:v,ariaOptionId:C,ariaOptionLabel:S,ariaGroupId:E,ariaGroupLabel:D,ariaTagLabel:T}}function XT(e,t,n){const{locale:r,fallbackLocale:a}=o.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function JT(e,t,n,r={}){return n.forEach(a=>{a&&(r={...r,...a(e,t,r)})}),r}var Wt={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return JT(e,t,[XT,NT,HT,zT,PT,MT,WT,KT,YT,$T,GT,jT,qT])}};const ZT=["id","dir"],eU=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],tU=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],nU=["onKeyup","aria-label"],rU=["onClick"],aU=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],iU=["innerHTML"],sU=["id"],oU=["id","aria-label","aria-selected"],AU=["data-pointed","onMouseenter","onClick"],lU=["innerHTML"],cU=["aria-label"],uU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],dU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],fU=["innerHTML"],pU=["innerHTML"],hU=["value"],mU=["name","value"],gU=["name","value"],vU=["id"];function yU(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{ref:"multiselect",class:o.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[o.createElementVNode("div",o.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[o.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=o.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,tU)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.classList.tags),"data-tags":""},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.iv,(s,A,l)=>o.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:o.withKeys(c=>e.handleTagRemove(s,c),["enter"]),key:l,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[o.createTextVNode(o.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(e.classList.tagRemove),onClick:o.withModifiers(c=>e.handleTagRemove(s,c),["stop"])},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,rU)):o.createCommentVNode("v-if",!0)],42,nU))])),256)),o.createElementVNode("div",{class:o.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[o.createCommentVNode(" Used for measuring search width "),o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagsSearchCopy)},o.toDisplayString(e.search),3),o.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=o.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,aU)):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?o.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.singleLabel)},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.singleLabelText)},o.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?o.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,iU)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?o.renderSlot(e.$slots,"placeholder",{key:4},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},o.toDisplayString(n.placeholder),3)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Spinner "),n.loading||e.resolving?o.renderSlot(e.$slots,"spinner",{key:5},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?o.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[o.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:o.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=o.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.clearIcon)},null,2)],34)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Caret "),n.caret&&n.showOptions?o.renderSlot(e.$slots,"caret",{key:7},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0)],16,eU),o.createCommentVNode(" Options "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.dropdown),tabindex:"-1"},[o.renderSlot(e.$slots,"beforelist",{options:e.fo}),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.fg,(s,A,l)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.group),key:l,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:c=>e.setPointer(s,A),onClick:c=>e.handleGroupClick(s)},[o.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[o.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,lU)])],42,AU)),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.__VISIBLE__,(c,u,d)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(c,s)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:d,onMouseenter:f=>e.setPointer(c),onClick:f=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(c[n.label])),1)])],42,uU))),128))],10,cU)],10,oU))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.fo,(s,A,l)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:l,onMouseenter:c=>e.setPointer(s),onClick:c=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(s[n.label])),1)])],42,dU))),128))],10,sU),e.noOptions?o.renderSlot(e.$slots,"nooptions",{key:0},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,fU)]):o.createCommentVNode("v-if",!0),e.noResults?o.renderSlot(e.$slots,"noresults",{key:1},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,pU)]):o.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[o.renderSlot(e.$slots,"infinite",{},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):o.createCommentVNode("v-if",!0),o.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),o.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(o.openBlock(),o.createElementBlock("input",{key:0,class:o.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,hU)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Native input support "),n.nativeSupport?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.mode=="single"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,mU)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.plainValue,(s,A)=>(o.openBlock(),o.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:A},null,8,gU))),128))],64)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},o.toDisplayString(e.ariaLabel),11,vU)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Create height for empty input "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.spacer)},null,2)],42,ZT)}Wt.render=yU;Wt.__file="src/Multiselect.vue";const BU={class:"search-bar"},wU=o.defineComponent({__name:"SearchBar",props:w6,setup(e){const t=e,{t:n}=J(),r=o.ref(""),a=Vr.useRouter();function i(A,l,c){c.clear(),c.search=r.value,a.push(l.link),Hw().addOption(l)}function s(A){r.value=A}return(A,l)=>(o.openBlock(),o.createElementBlock("div",BU,[o.createVNode(o.unref(Wt),{placeholder:o.unref(n)("navigation.searchPlaceholder"),"value-prop":"link","clear-on-blur":!1,"clear-on-search":!1,"clear-on-select":!1,"close-on-select":!0,delay:0,"filter-results":!1,groups:!0,"min-chars":0,"resolve-on-load":!1,searchable:!0,options:t.fetchSeachResult,onOpen:l[0]||(l[0]=c=>{c.noOptions&&c.resolveOptions()}),onSearchChange:s,onSelect:i},{option:o.withCtx(({option:c})=>[c.type==="card"?(o.openBlock(),o.createBlock($t,{key:`card-${c.card.cardCode}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":c.card,"router-link":c.link},null,8,["card-prop","router-link"])):(o.openBlock(),o.createBlock($t,{key:`player-${c.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":c.cardCode,color:c.color,name:c.name,"mana-number":c.rank,"router-link":c.link},null,8,["card-code-prop","color","name","mana-number","router-link"]))]),_:1},8,["placeholder","options"])]))}});const td=M(wU,[["__scopeId","data-v-f53c910f"]]),bU={class:"social-links"},_U={href:"https://discord.gg/tGTSXgDFVU"},CU={href:"https://twitter.com/LORGG__"},kU=o.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",bU,[o.createElementVNode("a",_U,[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-brands fa-discord"})]),o.createElementVNode("a",CU,[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-brands fa-twitter"})])]))}});const xm=M(kU,[["__scopeId","data-v-e6a74c37"]]),EU={showModal:{type:Boolean,required:!0,default:!1}},SU=["onClick"],xU=o.defineComponent({__name:"ModalItem",props:EU,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=o.ref(null),a=o.ref(!1);function i(){a.value&&t("update:showModal",!1)}o.onBeforeUnmount(()=>{var A;(A=r.value)==null||A.remove()});function s(){setTimeout(()=>{a.value=!1},1)}return o.watch(()=>n.showModal,()=>{n.showModal&&o.nextTick(()=>{r.value&&document.body.appendChild(r.value)})}),(A,l)=>n.showModal?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"modalItem",ref:r,class:"modal-item",onMousedown:l[0]||(l[0]=o.withModifiers(c=>a.value=!0,["self"])),onClick:o.withModifiers(i,["self"]),onMouseup:s},[o.renderSlot(A.$slots,"default",{},void 0,!0)],40,SU)):o.createCommentVNode("",!0)}});const si=M(xU,[["__scopeId","data-v-ab68e9be"]]),FU={filterArray:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},IU={class:"filter"},TU={key:0,class:"top"},UU={key:0,class:"title"},DU=o.defineComponent({__name:"SidePanelSectionPane",props:FU,emits:["clear:filterArray"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.filterArray&&n.filterArray.length>0?"clickable":null);function a(){t("clear:filterArray")}return(i,s)=>{const A=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",IU,[n.title||i.filterArray?(o.openBlock(),o.createElementBlock("div",TU,[n.title?(o.openBlock(),o.createElementBlock("h2",UU,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),i.filterArray?o.withDirectives((o.openBlock(),o.createElementBlock("p",{key:1,class:o.normalizeClass(["clear",r.value]),onClick:a},null,2)),[[A,"general.clear"]]):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const dt=M(DU,[["__scopeId","data-v-741cceed"]]),QU={filterArray:{type:Array,required:!0,default:[]}},LU=["placeholder"],OU=o.defineComponent({__name:"FilterSampleSize",props:QU,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray),i=o.ref("");let s=setTimeout(()=>{},0);a.value.length>0&&(i.value=a.value[0]),o.watch(a,()=>{t("update:filterArray",a.value)}),o.watch(i,()=>{s&&clearTimeout(s),s=setTimeout(()=>{a.value.splice(0),i.value&&Number(i.value)>=10&&a.value.push(i.value)},1e3)});function A(){a.value.splice(0),i.value=""}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a.value,title:o.unref(r)("general.sampleSize"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),placeholder:o.unref(r)("general.minimumMatches"),type:"number",min:"10",step:"10"},null,8,LU),[[o.vModelText,i.value]])]),_:1},8,["filter-array","title"]))}});const eo=M(OU,[["__scopeId","data-v-727f5a58"]]),MU={filterArray:{type:Array,required:!0,default:[]}},NU={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},PU=["selected"],HU={class:"checkbox-name"},RU=o.defineComponent({__name:"CheckboxItem",props:NU,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=o.computed(()=>(console.log(n.icon),{content:n.icon}));function a(){t("update:isSelected",!n.isSelected)}return(i,s)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:a},[n.icon?(o.openBlock(),o.createElementBlock("div",{key:0,class:"checkbox-icon",style:o.normalizeStyle(r.value)},null,4)):o.createCommentVNode("",!0),o.createElementVNode("div",HU,o.toDisplayString(n.prompt),1)],8,PU))}});const qt=M(RU,[["__scopeId","data-v-ab8b99a4"]]),VU={selectedOption:{type:Number,required:!0,default:-1},options:{type:Array,required:!0,default:[]}},KU=e=>(o.pushScopeId("data-v-d5d9745a"),e=e(),o.popScopeId(),e),$U={class:"toggle-switch"},zU=KU(()=>o.createElementVNode("div",{class:"selection"},null,-1)),WU=[zU],GU=["onClick"],jU={class:"option flex-center"},YU={class:"option-text"},qU=o.defineComponent({__name:"ToggleSwitch",props:VU,emits:["update:selectedOption"],setup(e,{emit:t}){const n=e,r=o.computed(()=>({left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${n.selectedOption})`,width:`calc((100% - calc(var(--spacing-1) * 2)) / ${n.options.length})`}));function a(s){return{cursor:n.selectedOption!=s?"pointer":"default",left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${s})`,width:`${1/n.options.length*100}%`}}function i(s){t("update:selectedOption",s)}return(s,A)=>(o.openBlock(),o.createElementBlock("div",$U,[o.withDirectives(o.createElementVNode("div",{class:"selection-container",style:o.normalizeStyle(r.value)},WU,4),[[o.vShow,s.selectedOption>-1]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.options,(l,c)=>(o.openBlock(),o.createElementBlock("div",{key:c,ref_for:!0,ref:"option-container",style:o.normalizeStyle(a(c)),class:"option-container",onClick:u=>i(c)},[o.createElementVNode("div",jU,[o.createElementVNode("h1",YU,o.toDisplayString(l),1)])],12,GU))),128))]))}});const nd=M(qU,[["__scopeId","data-v-d5d9745a"]]),XU={class:"checkboxes-container"},JU=o.defineComponent({__name:"FilterRanks",props:MU,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>ge().dataJson.ranks.sort((c,u)=>u.order-c.order)),i=o.reactive(n.filterArray),s=o.ref(0);o.watch(i,()=>{t("update:filterArray",i)}),o.watch(s,()=>{s.value===0?i.splice(0):s.value===1&&(i.splice(0),i.push("Platinum","Diamond","Masters"))});function A(){i.splice(0),s.value=0}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(dt,{"filter-array":i,title:o.unref(r)("general.ranks"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",XU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,d=>(o.openBlock(),o.createBlock(qt,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(nd,{"selected-option":s.value,"onUpdate:selectedOption":u[0]||(u[0]=d=>s.value=d),options:[o.unref(r)("general.allRanks"),o.unref(r)("general.platPlus")]},null,8,["selected-option","options"])])]),_:1},8,["filter-array","title"]))}});const kb=M(JU,[["__scopeId","data-v-af7bc2a0"]]),ZU={filterArray:{type:Array,required:!0,default:[]}},eD={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},tD=["selected"],nD={class:"prompt"},rD=o.defineComponent({__name:"CheckboxItemManaCost",props:eD,emits:["update:isSelected"],setup(e,{emit:t}){const n=e;function r(){t("update:isSelected",!n.isSelected)}return(a,i)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:r},[o.createVNode(el),o.createElementVNode("div",nD,o.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,tD))}});const du=M(rD,[["__scopeId","data-v-2c74c2ed"]]),aD={class:"checkbox-rows-container"},iD={class:"top-row checkbox-items-container"},sD={class:"bottom-row checkbox-items-container"},oD=o.defineComponent({__name:"FilterManaCost",props:ZU,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=Array(6).fill(1).map((l,c)=>c),i=Array(5).fill(1).map((l,c)=>c+6);function s(l){let c;n.filterArray.includes(l)?c=n.filterArray.filter(u=>u!==l):c=[...n.filterArray,l],t("update:filterArray",c)}function A(){t("update:filterArray",[])}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":n.filterArray,title:o.unref(r)("general.manaCost"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",aD,[o.createElementVNode("div",iD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),u=>(o.openBlock(),o.createBlock(du,{key:u,class:"checkbox-item-mana-cost",prompt:u,"is-selected":n.filterArray.includes(u),"onUpdate:isSelected":d=>s(u)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))]),o.createElementVNode("div",sD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),u=>(o.openBlock(),o.createBlock(du,{key:u,class:"checkbox-item-mana-cost",prompt:u,"is-selected":n.filterArray.includes(u),"onUpdate:isSelected":d=>s(u)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])])]),_:1},8,["filter-array","title"]))}});const Fm=M(oD,[["__scopeId","data-v-a94d786a"]]),AD={filterArray:{type:Array,required:!0,default:[]}},lD={class:"checkboxes-container"},Im=o.defineComponent({__name:"FilterRarities",props:AD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>ge().dataJson.rarities.filter(l=>l.nameRef!=="None")),i=o.reactive(n.filterArray);o.watch(i,()=>{t("update:filterArray",i)});function s(){i.splice(0)}function A(l){const c=i.indexOf(l);if(c===-1){i.push(l);return}i.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":i,title:o.unref(r)("general.rarities"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",lD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,u=>(o.openBlock(),o.createBlock(qt,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":i.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),cD={filterArray:{type:Array,required:!0,default:[]}},uD={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},dD=["src"],fD={class:"multiselect-tag-remove"},pD=["onMousedown"],hD=["src"],Tm=o.defineComponent({__name:"FilterSets",props:cD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray);o.watch(a,()=>{t("update:filterArray",a.value)});function i(){a.value.splice(0)}return(s,A)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a.value,title:o.unref(r)("general.sets"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":A[0]||(A[0]=l=>a.value=l),placeholder:o.unref(r)("general.sets"),class:"runeterra-select",mode:"tags",options:o.unref(ge)().dataJson.sets,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:l,handleTagRemove:c})=>[o.createElementVNode("span",uD,[o.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,dD),o.createElementVNode("span",fD,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(u=>c(l,u),["prevent"])},null,40,pD)])])]),option:o.withCtx(({option:l})=>[o.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,hD),o.createTextVNode(" "+o.toDisplayString(l.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),mD={filterArray:{type:Array,required:!0,default:[]}},gD={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},vD=["src"],yD={class:"multiselect-tag-remove"},BD=["onMousedown"],wD=["src"],Um=o.defineComponent({__name:"FilterKeywords",props:mD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray),i=o.computed(()=>ge().dataJson.keywords.filter(A=>A.showInFilter));o.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a.value,title:o.unref(r)("general.keywords"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createVNode(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:o.unref(r)("general.keywords"),class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:c,handleTagRemove:u})=>[o.createElementVNode("span",gD,[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,vD),o.createElementVNode("span",yD,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(d=>u(c,d),["prevent"])},null,40,BD)])])]),option:o.withCtx(({option:c})=>[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,wD),o.createTextVNode(" "+o.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),bD={filterArray:{type:Array,required:!0,default:[]}},_D={class:"checkboxes-container"},to=o.defineComponent({__name:"FilterServers",props:bD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterArray);o.watch(a,()=>{t("update:filterArray",a)});function i(){a.splice(0)}function s(A){const l=a.indexOf(A);if(l===-1){a.push(A);return}a.splice(l,1)}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a,title:o.unref(r)("general.servers"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",_D,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(ge)().dataJson.servers,c=>(o.openBlock(),o.createBlock(qt,{key:c.nameRef,prompt:c.name,"is-selected":a.includes(c.nameRef),"onUpdate:isSelected":u=>s(c.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),CD={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},kD={class:"checkboxes-container"},ED=o.defineComponent({__name:"FilterTime",props:CD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterArray),i=o.ref(null),s=o.ref(null),A=a.find(p=>p.startsWith("patch_"));A&&(i.value=A);const l=a.find(p=>p.startsWith("season_"));l&&(s.value=l);const c=o.computed(()=>n.allowZero&&a.filter(p=>p.startsWith("patch")).length>0||!n.allowZero&&a.filter(p=>!p.startsWith("patch")).length===0);o.watch(a,()=>{t("update:filterArray",a)}),o.watch(i,(p,h)=>{u(p,h)}),o.watch(s,(p,h)=>{u(p,h)});function u(p,h){console.log(h,p),h&&a.splice(a.indexOf(h),1),p&&a.push(p),console.log(a)}function d(){a.splice(0),i.value=null,s.value=null}function f(p){a.splice(0),(n.allowZero||p!=="patch")&&a.push(p),p==="patch"&&i.value&&a.push(i.value),p==="season"&&s.value&&a.push(s.value)}return(p,h)=>{const g=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(dt,{class:"side-panel-section-pane","filter-array":a,title:o.unref(r)("general.time"),"onClear:filterArray":d},{default:o.withCtx(()=>{var B;return[o.createElementVNode("div",kD,[o.createVNode(qt,{prompt:o.unref(r)("general.patch"),"is-selected":c.value,"onUpdate:isSelected":h[0]||(h[0]=m=>f("patch"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.season"),"is-selected":a.includes("season"),"onUpdate:isSelected":h[1]||(h[1]=m=>f("season"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.pastDays",7),"is-selected":a.includes("7days"),"onUpdate:isSelected":h[2]||(h[2]=m=>f("7days"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.pastDays",3),"is-selected":a.includes("3days"),"onUpdate:isSelected":h[3]||(h[3]=m=>f("3days"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.pastHours",24),"is-selected":a.includes("24hours"),"onUpdate:isSelected":h[4]||(h[4]=m=>f("24hours"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.pastHour"),"is-selected":a.includes("1hour"),"onUpdate:isSelected":h[5]||(h[5]=m=>f("1hour"))},null,8,["prompt","is-selected"]),c.value?(o.openBlock(),o.createBlock(o.unref(Wt),{key:0,modelValue:i.value,"onUpdate:modelValue":h[6]||(h[6]=m=>i.value=m),options:o.unref(ge)().dataJson.patches,searchable:!0,label:"name","value-prop":"nameRef",placeholder:o.unref(r)("general.patches")},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0),a.includes("season")?(o.openBlock(),o.createBlock(o.unref(Wt),{key:1,modelValue:s.value,"onUpdate:modelValue":h[7]||(h[7]=m=>s.value=m),options:o.unref(ge)().dataJson.seasons,searchable:!0,label:"name","value-prop":"nameRef",placeholder:o.unref(r)("general.seasons")},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0),(B=o.unref(Kt)().user)!=null&&B.isPremium?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(g,{key:2,to:o.unref(ye)().callbacks.premiumLinkCallback(),class:"premium-barrier"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(r)("general.premiumBarrier")),1)]),_:1},8,["to"]))])]}),_:1},8,["filter-array","title"])}}});const Wi=M(ED,[["__scopeId","data-v-e91493d6"]]),SD={filterArray:{type:Array,required:!0,default:[]}},xD={cardCodes:{type:[Array,String,null],required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},FD=o.defineComponent({__name:"CardMultiselect",props:xD,emits:["update:cardCodes"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.cardCodes),i=o.computed(()=>{let s=Rw().cardJson.sort((A,l)=>A.name.localeCompare(l.name));return n.filterCallback&&(s=s.filter(n.filterCallback)),s});return o.watch(a,()=>{t("update:cardCodes",a.value)}),(s,A)=>(o.openBlock(),o.createBlock(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":A[0]||(A[0]=l=>a.value=l),class:"multiselect",placeholder:o.unref(r)("cards.cards"),mode:n.mode,options:i.value,infinite:!0,limit:10,searchable:!0,label:"name","value-prop":"cardCode"},null,8,["modelValue","placeholder","mode","options"]))}});const Dm=M(FD,[["__scopeId","data-v-e46bd34a"]]),rd=o.defineComponent({__name:"FilterCardCodes",props:SD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray);o.watch(a,()=>{console.log("watch(filterArray)",a.value),t("update:filterArray",a.value)});function i(){a.value.splice(0)}function s(A){return A.collectible}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a.value,title:o.unref(r)("cards.cards"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(Dm,{cardCodes:a.value,"onUpdate:cardCodes":l[0]||(l[0]=c=>a.value=c),mode:"tags","filter-callback":s},null,8,["cardCodes"])]),_:1},8,["filter-array","title"]))}}),ID={filterArray:{type:Array,required:!0,default:[]}},TD={class:"checkboxes-container"},UD=o.defineComponent({__name:"FilterRegions",props:ID,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterArray),i=o.ref([]);i.value.push(...a.filter(l=>mA(l))),o.watch(a,()=>{t("update:filterArray",a)}),o.watch(i,(l,c)=>{let u=l.find(d=>!c.includes(d));if(u||(u=c.find(d=>!l.includes(d)),u))return A(u)});function s(){a.splice(0),i.value.slice(0)}function A(l){const c=a.indexOf(l);if(c===-1){a.push(l),l==="Runeterra"&&a.push(...i.value);return}if(a.splice(c,1),l==="Runeterra")for(let u=0;u<a.length;u++)mA(a[u])&&a.splice(u--,1)}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a,title:o.unref(r)("general.regions"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",TD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(ge)().dataJson.regions,u=>(o.openBlock(),o.createBlock(qt,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":a.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(qt,{class:"runeterra",prompt:"Runeterra","is-selected":a.includes("Runeterra"),"onUpdate:isSelected":c[0]||(c[0]=u=>A("Runeterra"))},null,8,["is-selected"]),a.includes("Runeterra")?(o.openBlock(),o.createBlock(o.unref(Wt),{key:0,modelValue:i.value,"onUpdate:modelValue":c[1]||(c[1]=u=>i.value=u),class:"runeterra-select",mode:"tags",options:o.unref(ge)().dataJson.runeterraChampions,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const tl=M(UD,[["__scopeId","data-v-c93a9e90"]]),DD={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},QD={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},LD={class:"checkboxes-container"},OD=o.defineComponent({__name:"FilterFormat",props:QD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>{const d=ge().dataJson.queues;return Object.values(ge().dataJson.formats).filter(f=>f.availableQueues.some(p=>!d[p].excludeInMassFilter))}),i=o.computed(()=>a.value.filter(d=>!d.inDropdown)),s=o.computed(()=>a.value.filter(d=>d.inDropdown)),A=o.reactive(n.filterArray),l=o.ref(null);o.onMounted(()=>{A.length>0&&s.value.map(d=>d.nameRef).includes(A[0])&&(l.value=A[0])}),o.watch(A,()=>{t("update:filterArray",A),A.length===0&&(l.value=null)}),o.watch(l,()=>{l.value&&(A.splice(0),A.push(l.value))});function c(d){l.value=null,A.splice(0),d!==Jn.Standard&&A.push(d)}function u(){A.splice(0)}return(d,f)=>(o.openBlock(),o.createBlock(dt,{"filter-array":A,title:o.unref(r)("general.format"),"onClear:filterArray":u},{default:o.withCtx(()=>[o.createElementVNode("div",LD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createBlock(qt,{prompt:p.name,"is-selected":A.includes(p.nameRef)||!n.allowZero&&p.nameRef==="Standard"&&A.length===0,"onUpdate:isSelected":h=>c(p.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),256)),s.value.length>0?(o.openBlock(),o.createBlock(o.unref(Wt),{key:0,modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=p=>l.value=p),options:s.value,searchable:!1,placeholder:o.unref(r)("general.otherFormats"),label:"name","value-prop":"nameRef",onClear:u},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const nl=M(OD,[["__scopeId","data-v-22de9b40"]]),MD={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},rl=o.defineComponent({__name:"FilterQueues",props:MD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray),i=o.computed(()=>Object.values(ge().dataJson.queues).filter(A=>n.availableQueues.includes(A.nameRef)&&!A.excludeInMassFilter));o.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(A,l)=>n.availableQueues.length>1?(o.openBlock(),o.createBlock(dt,{key:0,"filter-array":a.value,title:o.unref(r)("general.queues"),"onClear:filterArray":s},{default:o.withCtx(()=>{var c,u;return[o.createVNode(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=d=>a.value=d),placeholder:(u=(c=i.value)==null?void 0:c.find(d=>d.nameRef===o.unref(L2).Ranked))==null?void 0:u.name,class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])]}),_:1},8,["filter-array","title"])):o.createCommentVNode("",!0)}}),ND={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},PD={class:"filter"},HD={key:0,class:"top"},RD=o.defineComponent({__name:"SidePanel",props:ND,emits:["clear:filterObject"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.filterObject&&Object.values(n.filterObject).some(i=>i.length>0)?"clickable":null);function a(){t("clear:filterObject")}return(i,s)=>{const A=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",PD,[n.showClearAll&&n.filterObject?(o.openBlock(),o.createElementBlock("div",HD,[o.withDirectives(o.createElementVNode("p",{class:o.normalizeClass(["clear",r.value]),onClick:a},null,2),[[A,"general.clearAll"]])])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const no=M(RD,[["__scopeId","data-v-6a93fcc1"]]),Eb=o.defineComponent({__name:"FilterDecks",props:DD,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);o.watch(r,()=>{t("update:filters",r)});const a=o.computed(()=>{var s;return(s=ge().dataJson.formats[r.formatFilters[0]??"Standard"])==null?void 0:s.availableQueues});function i(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,A)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":i},{default:o.withCtx(()=>[o.createVNode(tl,{"filter-array":r.regionFilters,"onUpdate:filterArray":A[0]||(A[0]=l=>r.regionFilters=l)},null,8,["filter-array"]),o.createVNode(rd,{"filter-array":r.cardFilters,"onUpdate:filterArray":A[1]||(A[1]=l=>r.cardFilters=l)},null,8,["filter-array"]),o.createVNode(nl,{"filter-array":r.formatFilters,"onUpdate:filterArray":A[2]||(A[2]=l=>r.formatFilters=l)},null,8,["filter-array"]),n.includeDataFilters?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(rl,{"filter-array":r.queueFilters,"onUpdate:filterArray":A[3]||(A[3]=l=>r.queueFilters=l),"available-queues":a.value},null,8,["filter-array","available-queues"]),o.createVNode(eo,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":A[4]||(A[4]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),o.createVNode(Wi,{"filter-array":r.timeFilters,"onUpdate:filterArray":A[5]||(A[5]=l=>r.timeFilters=l)},null,8,["filter-array"]),o.createVNode(to,{"filter-array":r.serverFilters,"onUpdate:filterArray":A[6]||(A[6]=l=>r.serverFilters=l)},null,8,["filter-array"])],64)):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),VD={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},KD={filterArray:{type:Array,required:!0,default:[]},placeholder:{type:String,required:!1},title:{type:String,required:!1,default:"Text"}},$D=["placeholder"],zD=o.defineComponent({__name:"FilterText",props:KD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,r=o.ref(n.filterArray),a=o.ref("");let i=setTimeout(()=>{},0);r.value.length>0&&(a.value=r.value[0]),o.watch(r,()=>{t("update:filterArray",r.value)}),o.watch(a,()=>{i&&clearTimeout(i),i=setTimeout(()=>{r.value.splice(0),a.value&&r.value.push(a.value)},1e3)});function s(){r.value.splice(0),a.value=""}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":r.value,title:n.title,"onClear:filterArray":s},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:n.placeholder,type:"text"},null,8,$D),[[o.vModelText,a.value]])]),_:1},8,["filter-array","title"]))}});const IA=M(zD,[["__scopeId","data-v-e9c34cae"]]),Sb=o.defineComponent({__name:"FilterProfile",props:VD,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filters);o.watch(a,()=>{t("update:filters",a)});const i=o.computed(()=>{var A;return a.formatFilters.length===0?[]:(A=ge().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:A.availableQueues});function s(){for(const[,A]of Object.entries(a))A.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":s},{default:o.withCtx(()=>[o.createVNode(tl,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.regionFilters=c)},null,8,["filter-array"]),o.createVNode(rd,{"filter-array":a.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.cardFilters=c)},null,8,["filter-array"]),o.createVNode(IA,{"filter-array":a.deckCodeFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>a.deckCodeFilters=c),placeholder:o.unref(r)("general.deckCode"),title:o.unref(r)("general.deckCode")},null,8,["filter-array","placeholder","title"]),o.createVNode(IA,{"filter-array":a.playerFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>a.playerFilters=c),placeholder:o.unref(r)("general.players"),title:o.unref(r)("general.players")},null,8,["filter-array","placeholder","title"]),o.createVNode(eo,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>a.sampleSizeFilters=c)},null,8,["filter-array"]),o.createVNode(nl,{"allow-zero":!0,"filter-array":a.formatFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>a.formatFilters=c)},null,8,["filter-array"]),o.createVNode(rl,{"filter-array":a.queueFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>a.queueFilters=c),"available-queues":i.value},null,8,["filter-array","available-queues"]),o.createVNode(Wi,{"allow-zero":!0,"filter-array":a.timeFilters,"onUpdate:filterArray":l[7]||(l[7]=c=>a.timeFilters=c)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}}),WD={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},GD={class:"advanced-filter-item"},jD=["value"],YD=o.defineComponent({__name:"AdvancedFilterItem",props:WD,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=[{value:"attack",label:r("cards.attack")},{value:"health",label:r("cards.health")},{value:"cost",label:r("cards.cost")},{value:"quantityOwned",label:r("cards.quantityOwned")}],i=o.ref(n.filterValue.attribute);o.watch(i,()=>{t("update:filterValue",{attribute:i.value,equality:n.filterValue.equality,number:n.filterValue.number})});function s(){let l=">";n.filterValue.equality===">"?l="<":n.filterValue.equality==="<"&&(l="="),t("update:filterValue",{attribute:n.filterValue.attribute,equality:l,number:n.filterValue.number})}function A(l){t("update:filterValue",{attribute:n.filterValue.attribute,equality:n.filterValue.equality,number:Number(l.target.value)})}return(l,c)=>(o.openBlock(),o.createElementBlock("div",GD,[o.createVNode(o.unref(Wt),{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),class:"advanced-attribute",options:a,"can-clear":!1,label:"label","value-prop":"value"},null,8,["modelValue"]),o.createElementVNode("div",{class:"equality-button",onClick:s},o.toDisplayString(n.filterValue.equality),1),o.createElementVNode("input",{type:"number",class:"equality-number",value:n.filterValue.number,onInput:A},null,40,jD)]))}});const Qm=M(YD,[["__scopeId","data-v-eb2d535d"]]),qD={filterValue:{type:Array,required:!0,default:[]}},XD=o.defineComponent({__name:"FilterAdvanced",props:qD,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterValue);o.watch(a,()=>{t("update:filterValue",a)});function i(){a.splice(0)}function s(){a.push({attribute:"attack",equality:">",number:0})}return(A,l)=>(o.openBlock(),o.createBlock(dt,{class:"advanced-filters","filter-array":a,title:o.unref(r)("general.advanced"),"onClear:filterArray":i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a,(c,u)=>(o.openBlock(),o.createBlock(Qm,{key:u,"filter-value":a[u],"onUpdate:filterValue":d=>a[u]=d,class:"advanced-filter-item"},null,8,["filter-value","onUpdate:filterValue"]))),128)),o.createElementVNode("div",{class:"new-advanced-filter",onClick:s},o.toDisplayString(o.unref(r)("general.newAdvancedFilter")),1)]),_:1},8,["filter-array","title"]))}});const Lm=M(XD,[["__scopeId","data-v-6c23ee29"]]),JD={filterArray:{type:Array,required:!0,default:[]}},ZD={class:"checkboxes-container"},Om=o.defineComponent({__name:"FilterTypes",props:JD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>ge().dataJson.types.filter(l=>["Unit","Spell","Landmark","Equipment"].includes(l.nameRef))),i=o.reactive(n.filterArray);o.watch(i,()=>{t("update:filterArray",i)});function s(){i.splice(0)}function A(l){const c=i.indexOf(l);if(c===-1){i.push(l);return}i.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":n.filterArray,title:o.unref(r)("general.types"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",ZD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,u=>(o.openBlock(),o.createBlock(qt,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":i.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),eQ={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[],textFilters:[],cardFormatFilters:[]}}},tQ={filterArray:{type:Array,required:!0,default:[]}},nQ={class:"checkboxes-container"},rQ=o.defineComponent({__name:"FilterCardFormats",props:tQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterArray);o.watch(a,()=>{t("update:filterArray",a)});function i(){a.splice(0)}function s(A){const l=a.indexOf(A);if(l===-1){a.push(A);return}a.splice(l,1)}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a,title:o.unref(r)("general.format"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",nQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(ge)().dataJson.cardFormats.filter(c=>[o.unref(Jn).Standard,o.unref(Jn).Eternal].includes(c.nameRef)),c=>(o.openBlock(),o.createBlock(qt,{key:c.nameRef,prompt:c.name,"is-selected":a.includes(c.nameRef),"onUpdate:isSelected":u=>s(c.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),xb=o.defineComponent({__name:"FilterCards",props:eQ,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filters);o.watch(a,()=>{t("update:filters",a)});const i=o.computed(()=>{var A;return"formatFilters"in a?(A=ge().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:A.availableQueues:[]});function s(){for(const[,A]of Object.entries(a))A.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":s},{default:o.withCtx(()=>[o.createVNode(o.unref(IA),{"filter-array":a.textFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.textFilters=c),placeholder:o.unref(r)("general.text"),title:o.unref(r)("general.text")},null,8,["filter-array","placeholder","title"]),o.createVNode(Fm,{"filter-array":a.manaCostFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.manaCostFilters=c)},null,8,["filter-array"]),"cardFormatFilters"in a?(o.openBlock(),o.createBlock(rQ,{key:0,"filter-array":a.cardFormatFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>a.cardFormatFilters=c)},null,8,["filter-array"])):o.createCommentVNode("",!0),o.createVNode(tl,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>a.regionFilters=c)},null,8,["filter-array"]),o.createVNode(Om,{"filter-array":a.typeFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>a.typeFilters=c)},null,8,["filter-array"]),o.createVNode(Im,{"filter-array":a.rarityFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>a.rarityFilters=c)},null,8,["filter-array"]),o.createVNode(Tm,{"filter-array":a.setFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>a.setFilters=c)},null,8,["filter-array"]),o.createVNode(Um,{"filter-array":a.keywordFilters,"onUpdate:filterArray":l[7]||(l[7]=c=>a.keywordFilters=c)},null,8,["filter-array"]),o.createVNode(Lm,{"filter-value":a.advancedFilters,"onUpdate:filterValue":l[8]||(l[8]=c=>a.advancedFilters=c)},null,8,["filter-value"]),"serverFilters"in a?(o.openBlock(),o.createBlock(o.unref(to),{key:1,"filter-array":a.serverFilters,"onUpdate:filterArray":l[9]||(l[9]=c=>a.serverFilters=c)},null,8,["filter-array"])):o.createCommentVNode("",!0),"timeFilters"in a?(o.openBlock(),o.createBlock(Wi,{key:2,"filter-array":a.timeFilters,"onUpdate:filterArray":l[10]||(l[10]=c=>a.timeFilters=c)},null,8,["filter-array"])):o.createCommentVNode("",!0),"formatFilters"in a?(o.openBlock(),o.createBlock(nl,{key:3,"filter-array":a.formatFilters,"onUpdate:filterArray":l[11]||(l[11]=c=>a.formatFilters=c)},null,8,["filter-array"])):o.createCommentVNode("",!0),"queueFilters"in a?(o.openBlock(),o.createBlock(rl,{key:4,"filter-array":a.queueFilters,"onUpdate:filterArray":l[12]||(l[12]=c=>a.queueFilters=c),"available-queues":i.value},null,8,["filter-array","available-queues"])):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),aQ={regionRef:{type:String,required:!0,default:"Ionia"}},iQ={text:{type:String,required:!0,default:""}},sQ=["innerHTML"],oQ=o.defineComponent({__name:"TippyText",props:iQ,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,sQ))}});const ad=M(oQ,[["__scopeId","data-v-715107fe"]]),AQ={class:"region-item"},lQ=["alt","src"],cQ=o.defineComponent({__name:"RegionItem",props:aQ,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.computed(()=>ge().dataJson.regions.find(i=>i.nameRef==t.regionRef)??ge().dataJson.runeterraChampions.find(i=>i.nameRef===t.regionRef));return o.onMounted(()=>{qe(n.value,{content:r.value,arrow:!0})}),(i,s)=>{var A,l,c;return o.openBlock(),o.createElementBlock("div",AQ,[o.createElementVNode("img",{ref_key:"regionImg",ref:n,alt:(A=a.value)==null?void 0:A.name,src:(l=a.value)==null?void 0:l.icon,class:"region-img"},null,8,lQ),o.createElementVNode("div",{ref_key:"regionTippy",ref:r},[o.createVNode(ad,{text:(c=a.value)==null?void 0:c.name},null,8,["text"])],512)])}}});const al=M(cQ,[["__scopeId","data-v-3d756f50"]]),uQ={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},dQ={class:"regions-line"},fQ={key:0,class:"describe-regions"},pQ={class:"lines"},hQ=o.defineComponent({__name:"RegionsLine",props:uQ,setup(e){const t=e,{t:n}=J(),r=o.computed(()=>t.deck?t.deck:Bt(t.deckCode)),a=o.computed(()=>t.cards?t.cards:Zt(r.value)),i=o.computed(()=>{const A={};for(const l of Ku(r.value))A[l]=0;for(const l of a.value)for(const c of l.regionRefs)c in A&&(A[c]+=r.value[l.cardCode]);return A});function s(A,l){return{flexGrow:A,backgroundColor:`var(--color-${l}, var(--color-Runeterra))`}}return(A,l)=>(o.openBlock(),o.createElementBlock("div",dQ,[t.describeRegions?(o.openBlock(),o.createElementBlock("div",fQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"region-description"},[o.createVNode(al,{"region-ref":u,class:"icon"},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString(`${c} ${o.unref(n)("general.cards")}`),1)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",pQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,style:o.normalizeStyle(s(c,u)),class:"region-line"},null,4))),128))])]))}});const Mm=M(hQ,[["__scopeId","data-v-f1f94f8b"]]),mQ={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardCode:{type:String,required:!0,default:"01IO001"},toggledStats:{type:Object,required:!0,default:{matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!1,kept:!1,drawnWinrate:!1,turnsHeld:!1,turnPlayed:!1}},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},region:{type:String,required:!0,default:""},wins:{type:Number,required:!0,default:1},inclusion:{type:Number,required:!0,default:.5},avgCopies:{type:Number,required:!0,default:1},mulliganWinrate:{type:Number,required:!1,default:void 0},keptInMulligan:{type:Number,required:!1,default:void 0},drawnWinrate:{type:Number,required:!1,default:void 0},turnsHeld:{type:Number,required:!1,default:void 0},turnPlayed:{type:Number,required:!1,default:void 0}},gQ={class:"cards-row-background-wrapper"},vQ={class:"cards-row-background"},yQ={class:"cards-row wrapper"},BQ={key:0,class:"column-content"},wQ={key:2,class:"column-content"},bQ={key:3,class:"column-content"},_Q={key:5,class:"column-content"},CQ={key:7,class:"column-content"},kQ={key:8,class:"column-content"},EQ=o.defineComponent({__name:"CardsRow",props:mQ,setup(e){const t=e,n=o.computed(()=>["",ye().callbacks.cardImageCallback(t.cardCode,gt.Banner)]);return(r,a)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"cards-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",gQ,[o.createElementVNode("div",vQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${s})`})},null,4))),128))])]),o.createElementVNode("div",yQ,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode($t,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!1,color:`var(--color-${t.region}-rgb, var(--color-primary-2-rgb))`,"router-link":t.routerLink},null,8,["card-code-prop","color","router-link"])]),t.toggledStats.matches?(o.openBlock(),o.createElementBlock("div",BQ,o.toDisplayString(o.unref(Ce)(t.matches)),1)):o.createCommentVNode("",!0),t.toggledStats.winrate?(o.openBlock(),o.createElementBlock("div",{key:1,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,2,3)+"%"),5)):o.createCommentVNode("",!0),t.toggledStats.inclusion?(o.openBlock(),o.createElementBlock("div",wQ,o.toDisplayString(o.unref(Ce)(t.inclusion*100,2,3)+"%"),1)):o.createCommentVNode("",!0),t.toggledStats.avgCopies?(o.openBlock(),o.createElementBlock("div",bQ,o.toDisplayString(o.unref(Ce)(t.avgCopies,2,3)),1)):o.createCommentVNode("",!0),t.toggledStats.mulliganWinrate?(o.openBlock(),o.createElementBlock("div",{key:4,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.mulliganWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.mulliganWinrate?o.unref(Ce)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(o.openBlock(),o.createElementBlock("div",_Q,o.toDisplayString(t.keptInMulligan?o.unref(Ce)(t.keptInMulligan*100,2,3)+"%":"-"),1)):o.createCommentVNode("",!0),t.toggledStats.drawnWinrate?(o.openBlock(),o.createElementBlock("div",{key:6,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.drawnWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.drawnWinrate?o.unref(Ce)(t.drawnWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.turnPlayed?(o.openBlock(),o.createElementBlock("div",CQ,o.toDisplayString(t.turnPlayed?o.unref(Ce)(t.turnPlayed,2,3):"-"),1)):o.createCommentVNode("",!0),t.toggledStats.turnsHeld?(o.openBlock(),o.createElementBlock("div",kQ,o.toDisplayString(t.turnsHeld?o.unref(Ce)(t.turnsHeld,2,3):"-"),1)):o.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Nm=M(EQ,[["__scopeId","data-v-e0c98d3c"]]),SQ={cardRows:{type:Array,required:!0,default:[]},cardsRowToggle:{type:Object,requied:!0,default:{card:!0,matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!0,keptInMulligan:!0,drawnWinrate:!0,turnsHeld:!0,turnPlayed:!0}},loading:{type:Boolean,required:!1,default:!1}};var ve=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(ve||{});const xQ={headingItems:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}};const FQ={},IQ={class:"loader"};function TQ(e,t){return o.openBlock(),o.createElementBlock("div",IQ)}const Pm=M(FQ,[["render",TQ],["__scopeId","data-v-91218ab0"]]),UQ=e=>(o.pushScopeId("data-v-8353300c"),e=e(),o.popScopeId(),e),DQ={class:"table-wrapper"},QQ={class:"table no-scrollbar"},LQ=UQ(()=>o.createElementVNode("div",{class:"heading-background-outer"},[o.createElementVNode("div",{class:"heading-background-absolute"}),o.createElementVNode("div",{class:"heading-background-inner"})],-1)),OQ={class:"heading wrapper"},MQ=["onClick"],NQ={class:"sort-icons"},PQ={key:0,class:"no-content loading"},HQ=o.defineComponent({__name:"LargeTable",props:xQ,emits:["toggleSort"],setup(e,{emit:t}){const n=e,{t:r}=J(),a={"--background-image":`url(${ye().callbacks.cardImageCallback("01FR008",gt.Full)})`},i=o.computed(()=>n.headingItems.filter(s=>s.isShown));return(s,A)=>(o.openBlock(),o.createElementBlock("div",DQ,[o.createElementVNode("div",QQ,[LQ,o.createElementVNode("div",OQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,l=>(o.openBlock(),o.createElementBlock("div",{key:l.title,class:o.normalizeClass(["heading-cell column-content",l.sortDirection]),onClick:c=>t("toggleSort",l.id)},[o.createElementVNode("div",null,o.toDisplayString(l.title),1),o.createElementVNode("div",NQ,[o.createVNode(o.unref(ke),{icon:"sort-up",class:"sort-icon"}),o.createVNode(o.unref(ke),{icon:"sort-down",class:"sort-icon"})])],10,MQ))),128))]),o.renderSlot(s.$slots,"default",{},()=>[n.loading?(o.openBlock(),o.createElementBlock("div",PQ,[o.createVNode(Pm)])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"no-content no-results",style:a},[o.createElementVNode("h2",null,o.toDisplayString(o.unref(r)("general.noResults")),1),o.createElementVNode("h4",null,o.toDisplayString(o.unref(r)("general.tryAgain")),1)]))],!0)])]))}});const da=M(HQ,[["__scopeId","data-v-8353300c"]]);function Gi(e,t){const n=t.value.find(a=>a.id===e);if(!n||n.sortDirection===ve.NOT_SORTABLE)return null;const r=n.sortDirection;return RQ(t),r===ve.NEITHER?n.sortDirection=ve.DOWN:r===ve.DOWN?n.sortDirection=ve.UP:n.sortDirection=ve.DOWN,n}function RQ(e){e.value.forEach(t=>{t.sortDirection!==ve.NOT_SORTABLE&&(t.sortDirection=ve.NEITHER)})}const VQ=o.defineComponent({__name:"CardsTable",props:SQ,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=[{id:"card",isAlwaysShown:!0,isSortable:!1,title:r("general.card")},{id:"matches",isAlwaysShown:!1,isSortable:!0,title:r("general.matches")},{id:"winrate",isAlwaysShown:!1,isSortable:!0,title:r("general.winrate")},{id:"inclusion",isAlwaysShown:!1,isSortable:!0,title:r("general.inclusion")},{id:"avgCopies",isAlwaysShown:!1,isSortable:!0,title:r("general.avgCopies")},{id:"mulliganWinrate",isAlwaysShown:!1,isSortable:!0,title:r("general.mulliganWinrate")},{id:"keptInMulligan",isAlwaysShown:!1,isSortable:!0,title:r("general.keptInMulligan")},{id:"drawnWinrate",isAlwaysShown:!1,isSortable:!0,title:r("general.drawnWinrate")},{id:"turnsHeld",isAlwaysShown:!1,isSortable:!0,title:r("general.turnsHeld")},{id:"turnPlayed",isAlwaysShown:!1,isSortable:!0,title:r("general.turnPlayed")}];let i=!1;const s=o.ref(a.map(c=>{let u=ve.NEITHER;return c.isSortable||(u=ve.NOT_SORTABLE),!i&&c.isSortable&&(u=ve.DOWN,i=!0),{id:c.id,isShown:n.cardsRowToggle[c.id],sortDirection:u,title:c.title}})),A=o.computed(()=>({"--table-grid-template-columns":`repeat(${Object.values(n.cardsRowToggle).reduce((u,d)=>d?u+1:u,0)}, 1fr)`}));function l(c){const u=Gi(c,s);u&&t("sort-updated",u)}return(c,u)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":s.value,style:o.normalizeStyle(A.value),onToggleSort:l},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.cardRows,(d,f)=>(o.openBlock(),o.createBlock(Nm,{key:d.cardCode+d.region,"card-code":d.cardCode,matches:d.matches,wins:d.wins,index:f+2,"avg-copies":d.avgCopies,"drawn-winrate":d.drawnWinrate,"kept-in-mulligan":d.keptInMulligan,"mulligan-winrate":d.mulliganWinrate,inclusion:d.inclusion,"turns-held":d.turnsHeld,"turn-played":d.turnPlayed,"toggled-stats":n.cardsRowToggle,region:d.region,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(d.cardCode)},null,8,["card-code","matches","wins","index","avg-copies","drawn-winrate","kept-in-mulligan","mulligan-winrate","inclusion","turns-held","turn-played","toggled-stats","region","router-link"]))),128))]),_:1},8,["loading","heading-items","style"]))}});const Fb=M(VQ,[["__scopeId","data-v-1894b267"]]),KQ={regions:{type:Array,required:!0,default:[]}},$Q={class:"deck-highlight-regions"},zQ=o.defineComponent({__name:"DeckHighlightRegions",props:KQ,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",$Q,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.regions,a=>(o.openBlock(),o.createElementBlock("div",{key:a,class:"region-item-wrapper"},[o.createVNode(al,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const il=M(zQ,[["__scopeId","data-v-d28f95f4"]]),WQ={},GQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"},jQ=o.createStaticVNode('<path fill="#146743" d="m271 136-54 90 150 316 14-50 29-312-51-130-88 86Z"></path><path fill="#419a4a" d="m356 121-75 105 86 316 14-50 29-312-54-59Z"></path><path fill="#baffb6" d="M410 180 359 50l-3 71 54 59Z"></path><path fill="#437f41" d="m359 50-88 86 10 90 75-105 3-71ZM281 360l86 182-86-316v134Z"></path><path fill="#419a4a" d="m454 332 28 33-33 85-4-13-8-85 17-20Z"></path>',5),YQ=[jQ];function qQ(e,t){return o.openBlock(),o.createElementBlock("svg",GQ,YQ)}const Hm=M(WQ,[["render",qQ]]),XQ={deck:{type:Object,required:!0,default:{}}},JQ=e=>(o.pushScopeId("data-v-25f680e9"),e=e(),o.popScopeId(),e),ZQ={class:"gems-text"},eL={class:"gems-cost-title"},tL={class:"gems-cost-value"},nL=JQ(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),rL={class:"gems-cost-title"},aL={class:"gems-cost-value"},iL=o.defineComponent({__name:"GemsCost",props:XQ,setup(e){const t=e,{t:n}=J(),r=o.ref(null),a=o.ref(null),i=o.computed(()=>nu(t.deck,!1)),s=o.computed(()=>nu(t.deck,!0));return o.onMounted(()=>{qe(r.value,{content:a.value,arrow:!0,duration:0})}),(A,l)=>{var c,u,d;return o.openBlock(),o.createElementBlock("div",{ref_key:"gemsCostDiv",ref:r,class:"gems-cost"},[o.createVNode(Hm,{class:"shards-icon"}),o.createElementVNode("div",ZQ,o.toDisplayString((c=s.value!==null?s.value:i.value)==null?void 0:c.toLocaleString()),1),o.createElementVNode("div",{ref_key:"gemsCostTippyDiv",ref:a,class:"gems-cost-tippy"},[s.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",eL,o.toDisplayString(o.unref(n)("deck.personalCost")),1),o.createElementVNode("div",tL,o.toDisplayString((u=s.value)==null?void 0:u.toLocaleString()),1),nL],64)):o.createCommentVNode("",!0),o.createElementVNode("div",rL,o.toDisplayString(o.unref(n)("deck.originalCost")),1),o.createElementVNode("div",aL,o.toDisplayString((d=i.value)==null?void 0:d.toLocaleString()),1)],512)],512)}}});const Rm=M(iL,[["__scopeId","data-v-25f680e9"]]),sL={class:"language-selection"},oL={class:"selection-panel"},AL=o.defineComponent({__name:"LanguageSelection",setup(e){const{locale:t,availableLocales:n}=J(),r={en:"English",de:"Deutsch",es:"Español",fr:"Français",it:"Italiano",ja:"日本語",ko:"한국어",pl:"Polski",pt:"Português",th:"ไทย",tr:"Türkçe",ru:"Русский",zh:"中文"},a=Vr.useRoute(),i=o.ref(!1),s=o.computed(()=>n.sort(l=>l===t.value?-1:1));function A(){i.value=!0}return(l,c)=>{const u=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",sL,[o.createVNode(o.unref(ke),{ref:"languageIcon",icon:"language",class:"icon",onClick:A},null,512),o.createVNode(si,{"show-modal":i.value,"onUpdate:showModal":c[0]||(c[0]=d=>i.value=d)},{default:o.withCtx(()=>[o.createElementVNode("div",oL,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,d=>(o.openBlock(),o.createBlock(u,{class:o.normalizeClass(o.unref(t)===d?"selected":""),locale:d,key:d,to:{...o.unref(a),params:{...o.unref(a).params,lang:d}}},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r[d]),1)]),_:2},1032,["class","locale","to"]))),128))])]),_:1},8,["show-modal"])])}}});const TA=M(AL,[["__scopeId","data-v-8a6f5e0d"]]),lL={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},Ib={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1},regions:{type:Array,required:!1,default:void 0},colorOverride:{type:String,required:!1,default:void 0}},cL={class:"circle-card-item"},uL=["alt","src"],dL=o.defineComponent({__name:"CircleCardItem",props:Ib,setup(e){const t=e,n=GA(t.cardProp,t.cardCodeProp,!0),r=o.ref(null),a=o.ref(null),i=o.ref(null),s=o.ref(null),A=o.computed(()=>{var c;return ye().callbacks.cardImageCallback(((c=n.value)==null?void 0:c.cardCode)??"",gt.Icon)}),l=o.computed(()=>n.value===void 0?"--color-primary-2":yi(n.value,t.regions));return o.onMounted(()=>{t.ignoreCardItem||qe(r.value,{content:a.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:c=>{const u=c.popper.innerHTML.includes("right")?"right-start":"left-start";s.value=u},onHidden:()=>{s.value=null}})}),(c,u)=>{const d=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",cL,[o.createVNode(d,{to:t.routerLink,class:"circle-card-link",onClick:u[0]||(u[0]=o.withModifiers(()=>{},["stop","prevent"]))},{default:o.withCtx(()=>{var f;return[o.createElementVNode("img",{ref_key:"circleCardImg",ref:r,alt:(f=o.unref(n))==null?void 0:f.name,src:A.value,class:"circle-card-img",style:o.normalizeStyle({borderColor:t.colorOverride??l.value})},null,12,uL)]}),_:1},8,["to"]),o.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!c.ignoreCardItem&&o.unref(n)?(o.openBlock(),o.createBlock(Pi,{key:0,ref_key:"cardItem",ref:i,"card-code-prop":o.unref(n).cardCode,"is-deck-builder":!1,"is-root":!0,"show-tippy-location":s.value},null,8,["card-code-prop","show-tippy-location"])):o.createCommentVNode("",!0)],512)])}}});const fa=M(dL,[["__scopeId","data-v-3ea9e838"]]),fL={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]}},pL={class:"deck-highlight-cards"},hL=o.defineComponent({__name:"DeckHighlightCards",props:fL,setup(e){const t=e,n=o.computed(()=>{if(t.cards)return t.cards;if(t.cardCodes)return t.cardCodes.map(r=>on().cardJsonObject[r]).filter(r=>r!==void 0);throw new Error("Cards or CardCodes must be defined.")});return(r,a)=>(o.openBlock(),o.createElementBlock("div",pL,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:i.cardCode??s,class:"circle-card-item-wrapper"},[o.createVNode(fa,{class:"circle-card-item","card-prop":i,regions:t.regions,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(i.cardCode)},null,8,["card-prop","regions","router-link"])]))),128))]))}});const sl=M(hL,[["__scopeId","data-v-021c3530"]]),mL=o.defineComponent({__name:"ArchetypeSidePanelHighlight",props:lL,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(dt,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createVNode(il,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),o.createVNode(sl,{class:o.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const id=M(mL,[["__scopeId","data-v-ff538f6f"]]),gL={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},builtDeckProps:{type:Object,required:!1,default:void 0}},vL={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
|
|
824
|
+
`,"2) content: () => element.cloneNode(true)"].join(" "))}var A=a.reduce(function(l,c){var u=c&&eT(c,r);return u&&l.push(u),l},[]);return xA(e)?A[0]:A}qe.defaultProps=xn;qe.setDefaultProps=qI;qe.currentInput=mr;Object.assign({},rb,{effect:function(t){var n=t.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow)}});qe.setDefaultProps({render:wb});const bb={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},isRoot:{type:Boolean,required:!0},quantityNeeded:{type:Number,required:!1,default:void 0},deckList:{type:Object,required:!1,default(){return{}}},isDeckBuilder:{type:Boolean,required:!1,default:!1},showTippyLocation:{type:String,required:!1,default:null}},tT=["alt","src"],nT={key:0,class:"quantity-ticks-container"},rT={key:0},aT={key:0,class:"card-info-quantity-possessed"},iT={key:1,class:"line"},sT={class:"card-info-title"},oT={class:"card-info-text"},AT={key:2,class:"line"},lT={key:3,class:"card-info-text"},cT={key:1,class:"associated-card-container"},uT=o.defineComponent({__name:"CardItem",props:bb,setup(e){const t=e,{t:n}=J(),r=o.ref(null),a=o.ref(null);let i=null;const s=o.ref(!1),A=GA(t.cardProp,t.cardCodeProp),l=o.computed(()=>A.value===void 0||f.value===null?null:t.quantityNeeded!==void 0&&f.value<t.quantityNeeded?"bad":null),c=o.computed(()=>{if(A.value===void 0)return[];const m=[];if(t.isRoot)for(const v of A.value.associatedCardRefs)m.push(on().cardJsonObject[v]);return m}),u=o.computed(()=>{if(A.value===void 0)return[];const m=[];for(const v of A.value.keywordRefs){const w=ve().dataJson.keywords.find(y=>y.nameRef===v);w&&m.push(w)}return m}),d=o.computed(()=>t.isRoot&&(f.value!==null||A.value&&(A.value.keywordRefs.length>0||A.value.associatedCardRefs.length>0))),f=o.computed(()=>{var v;const m=Vu().acquiredCards;return m===void 0?null:m[((v=A.value)==null?void 0:v.cardCode)??0]??0}),p=o.computed(()=>A.value===void 0?null:t.isDeckBuilder&&t.deckList[A.value.cardCode]===3?"disabled":null);o.watch(()=>t.showTippyLocation,m=>{i&&(m?(i.setProps({placement:m}),i.show()):i.hide())});function h(){window.addEventListener("keyup",m=>{m.key=="Shift"&&(s.value=!1)})}function g(){window.addEventListener("keydown",m=>{m.key=="Shift"&&(s.value=!0)})}function B(m){return A.value===void 0?null:t.isDeckBuilder?!(A.value.cardCode in t.deckList)||m>t.deckList[A.value.cardCode]?"disabled":null:m>(f.value??0)?"disabled":null}return o.onMounted(()=>{(A.value===void 0||f.value!==null||A.value.keywordRefs.length>0||A.value.associatedCardRefs.length>0)&&(i=qe(r.value,{allowHTML:!0,content:a.value,placement:"right-start",duration:0,role:"card-info",maxWidth:"50vw",touch:!1})),(A.value===void 0||A.value.associatedCardRefs.length>0)&&(h(),g())}),(m,v)=>{var y,b,_;const w=o.resolveComponent("CardItem",!0);return o.openBlock(),o.createElementBlock("div",{class:"card-item-container",onMouseover:v[0]||(v[0]=C=>!0),onMouseleave:v[1]||(v[1]=C=>!1)},[o.createElementVNode("img",{ref_key:"cardItem",ref:r,alt:(y=o.unref(A))==null?void 0:y.name,class:o.normalizeClass(["card-item",p.value]),src:o.unref(ge)().callbacks.cardImageCallback(((b=o.unref(A))==null?void 0:b.cardCode)??"",o.unref(gt).Card)},null,10,tT),m.isDeckBuilder&&((_=o.unref(A))!=null&&_.collectible)?(o.openBlock(),o.createElementBlock("div",nT,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(3,C=>o.createElementVNode("div",{key:C,class:o.normalizeClass(["quantity-tick",B(C)])},null,2)),64))])):o.createCommentVNode("",!0),o.createElementVNode("div",{ref_key:"cardInfo",ref:a,class:o.normalizeClass(s.value?null:"card-info")},[!s.value&&d.value&&o.unref(A)?(o.openBlock(),o.createElementBlock("div",rT,[f.value!==null?(o.openBlock(),o.createElementBlock("div",aT,[o.createTextVNode(o.toDisplayString(o.unref(n)("general.youHave"))+" ",1),o.createElementVNode("b",{class:o.normalizeClass(l.value)},o.toDisplayString(f.value+" / "+(m.quantityNeeded||3)),3)])):o.createCommentVNode("",!0),f.value!==null&&(o.unref(A).keywordRefs.length>0||o.unref(A).associatedCardRefs.length>0)?(o.openBlock(),o.createElementBlock("hr",iT)):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.value,C=>(o.openBlock(),o.createElementBlock("div",{key:C.nameRef,class:"card-info-section"},[o.createElementVNode("h4",sT,o.toDisplayString(C.name),1),o.createElementVNode("p",oT,o.toDisplayString(C.description),1)]))),128)),o.unref(A).keywordRefs.length>0&&o.unref(A).associatedCardRefs.length>0?(o.openBlock(),o.createElementBlock("hr",AT)):o.createCommentVNode("",!0),o.unref(A).associatedCardRefs.length>0?(o.openBlock(),o.createElementBlock("div",lT,o.toDisplayString(o.unref(n)("general.holdShiftForAssociated")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("div",cT,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(c.value,C=>(o.openBlock(),o.createBlock(w,{key:C.cardCode,"card-code-prop":C.cardCode,"is-deck-builder":!1,"is-root":!1,class:"associated-card"},null,8,["card-code-prop"]))),128))]))],2)],32)}}});const Pi=M(uT,[["__scopeId","data-v-bdd119d0"]]),dT={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1,default:void 0},color:{type:[String,null],required:!1,default:void 0},name:{type:String,required:!1,default:void 0},manaNumber:{type:[Number,null],required:!1,default:void 0},routerLink:{type:[Object,String],required:!1,default:"404"},quantityNumber:{type:Number,required:!1,default:void 0},maintainAspectRatio:{type:Boolean,required:!1,default:!0},showPlusMinus:{type:Boolean,required:!1,default:!1}},fT="data:image/svg+xml;base64,ICA8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDMxIDM2Ij4KICAgIDxkZWZzPgogICAgICA8bGluZWFyR3JhZGllbnQKICAgICAgICBpZD0iYSIKICAgICAgICB4MT0iLjA4IgogICAgICAgIHkxPSIuODIiCiAgICAgICAgeDI9IjEiCiAgICAgICAgeTI9Ii4xOSIKICAgICAgICBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIKICAgICAgPgogICAgICAgIDxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzA0NjZjOCIgLz4KICAgICAgICA8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IiMwMDNhOWUiIC8+CiAgICAgIDwvbGluZWFyR3JhZGllbnQ+CiAgICA8L2RlZnM+CiAgICA8ZyB0cmFuc2Zvcm09InJvdGF0ZSg5MCAxNS41IDE1LjUpIiBmaWxsPSJ1cmwoI2EpIj4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMjMuNTUgMzAuNWgtMTEuMWE1LjUyIDUuNTIgMCAwIDEtNC43NS0yLjc0bC01LjUyLTkuNWE1LjUxIDUuNTEgMCAwIDEgMC01LjUybDUuNTItOS41QTUuNTIgNS41MiAwIDAgMSAxMi40NS41aDExLjFhNS41MiA1LjUyIDAgMCAxIDQuNzUgMi43NGw1LjUyIDkuNWMuOTkgMS43Ljk5IDMuODIgMCA1LjUybC01LjUyIDkuNWE1LjUyIDUuNTIgMCAwIDEtNC43NSAyLjc0WiIKICAgICAgLz4KICAgICAgPHBhdGgKICAgICAgICBkPSJNMTIuNDUgMWMtMS43NyAwLTMuNDMuOTUtNC4zMiAyLjQ5bC01LjUyIDkuNWE1LjAxIDUuMDEgMCAwIDAgMCA1LjAybDUuNTIgOS41QTUuMDIgNS4wMiAwIDAgMCAxMi40NSAzMGgxMS4xYzEuNzcgMCAzLjQzLS45NSA0LjMyLTIuNDlsNS41Mi05LjVjLjktMS41NS45LTMuNDcgMC01LjAybC01LjUyLTkuNUE1LjAyIDUuMDIgMCAwIDAgMjMuNTUgMWgtMTEuMW0wLTFoMTEuMWE2IDYgMCAwIDEgNS4xOCAyLjk5bDUuNTIgOS41YTYgNiAwIDAgMSAwIDYuMDJsLTUuNTIgOS41QTYgNiAwIDAgMSAyMy41NSAzMWgtMTEuMWE2IDYgMCAwIDEtNS4xOC0yLjk5bC01LjUyLTkuNWE2IDYgMCAwIDEgMC02LjAybDUuNTItOS41QTYgNiAwIDAgMSAxMi40NSAwWiIKICAgICAgICBmaWxsPSIjZmZjNTNlIgogICAgICAvPgogICAgPC9nPgogIDwvc3ZnPg==",pT=["src"],el=o.defineComponent({__name:"ManaHexagonIcon",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("img",{src:o.unref(fT)},null,8,pT))}});function u0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u0(Object(n),!0).forEach(function(r){un(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uu(e){"@babel/helpers - typeof";return uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uu(e)}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hT(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function mT(e,t){if(e==null)return{};var n=hT(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pp(e){return gT(e)||vT(e)||yT(e)||BT()}function gT(e){if(Array.isArray(e))return Hp(e)}function vT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yT(e,t){if(e){if(typeof e=="string")return Hp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hp(e,t)}}function Hp(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BT(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
825
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var wT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},_b={exports:{}};(function(e){(function(t){var n=function(m,v,w){if(!c(v)||d(v)||f(v)||p(v)||l(v))return v;var y,b=0,_=0;if(u(v))for(y=[],_=v.length;b<_;b++)y.push(n(m,v[b],w));else{y={};for(var C in v)Object.prototype.hasOwnProperty.call(v,C)&&(y[m(C,w)]=n(m,v[C],w))}return y},r=function(m,v){v=v||{};var w=v.separator||"_",y=v.split||/(?=[A-Z])/;return m.split(y).join(w)},a=function(m){return h(m)?m:(m=m.replace(/[\-_\s]+(.)?/g,function(v,w){return w?w.toUpperCase():""}),m.substr(0,1).toLowerCase()+m.substr(1))},i=function(m){var v=a(m);return v.substr(0,1).toUpperCase()+v.substr(1)},s=function(m,v){return r(m,v).toLowerCase()},A=Object.prototype.toString,l=function(m){return typeof m=="function"},c=function(m){return m===Object(m)},u=function(m){return A.call(m)=="[object Array]"},d=function(m){return A.call(m)=="[object Date]"},f=function(m){return A.call(m)=="[object RegExp]"},p=function(m){return A.call(m)=="[object Boolean]"},h=function(m){return m=m-0,m===m},g=function(m,v){var w=v&&"process"in v?v.process:v;return typeof w!="function"?m:function(y,b){return w(y,m,b)}},B={camelize:a,decamelize:s,pascalize:i,depascalize:s,camelizeKeys:function(m,v){return n(g(a,v),m)},decamelizeKeys:function(m,v){return n(g(s,v),m,v)},pascalizeKeys:function(m,v){return n(g(i,v),m)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=B:t.humps=B})(wT)})(_b);var bT=_b.exports,_T=["class","style"];function CT(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),a=bT.camelize(n.slice(0,r)),i=n.slice(r+1).trim();return t[a]=i,t},{})}function kT(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function Sm(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var r=(e.children||[]).map(function(l){return Sm(l)}),a=Object.keys(e.attributes||{}).reduce(function(l,c){var u=e.attributes[c];switch(c){case"class":l.class=kT(u);break;case"style":l.style=CT(u);break;default:l.attrs[c]=u}return l},{attrs:{},class:{},style:{}});n.class;var i=n.style,s=i===void 0?{}:i,A=mT(n,_T);return o.h(e.tag,er(er(er({},t),{},{class:a.class,style:er(er({},a.style),s)},a.attrs),A),r)}var Cb=!1;try{Cb=process.env.NODE_ENV==="production"}catch{}function ET(){if(!Cb&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Xo(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?un({},e,t):{}}function ST(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},un(t,"fa-".concat(e.size),e.size!==null),un(t,"fa-rotate-".concat(e.rotation),e.rotation!==null),un(t,"fa-pull-".concat(e.pull),e.pull!==null),un(t,"fa-swap-opacity",e.swapOpacity),un(t,"fa-bounce",e.bounce),un(t,"fa-shake",e.shake),un(t,"fa-beat",e.beat),un(t,"fa-fade",e.fade),un(t,"fa-beat-fade",e.beatFade),un(t,"fa-flash",e.flash),un(t,"fa-spin-pulse",e.spinPulse),un(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map(function(r){return n[r]?r:null}).filter(function(r){return r})}function d0(e){if(e&&uu(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(ou.icon)return ou.icon(e);if(e===null)return null;if(uu(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var ke=o.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(t,n){var r=n.attrs,a=o.computed(function(){return d0(t.icon)}),i=o.computed(function(){return Xo("classes",ST(t))}),s=o.computed(function(){return Xo("transform",typeof t.transform=="string"?ou.transform(t.transform):t.transform)}),A=o.computed(function(){return Xo("mask",d0(t.mask))}),l=o.computed(function(){return FF(a.value,er(er(er(er({},i.value),s.value),A.value),{},{symbol:t.symbol,title:t.title}))});o.watch(l,function(u){if(!u)return ET("Could not find one or more icon(s)",a.value,A.value)},{immediate:!0});var c=o.computed(function(){return l.value?Sm(l.value.abstract[0],{},r):null});return function(){return c.value}}});o.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var r=n.slots,a=Pw.familyPrefix,i=o.computed(function(){return["".concat(a,"-layers")].concat(Pp(t.fixedWidth?["".concat(a,"-fw")]:[]))});return function(){return o.h("div",{class:i.value},r.default?r.default():[])}}});o.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(t){return["bottom-left","bottom-right","top-left","top-right"].indexOf(t)>-1}}},setup:function(t,n){var r=n.attrs,a=Pw.familyPrefix,i=o.computed(function(){return Xo("classes",[].concat(Pp(t.counter?["".concat(a,"-layers-counter")]:[]),Pp(t.position?["".concat(a,"-layers-").concat(t.position)]:[])))}),s=o.computed(function(){return Xo("transform",typeof t.transform=="string"?ou.transform(t.transform):t.transform)}),A=o.computed(function(){var c=IF(t.value.toString(),er(er({},s.value),i.value)),u=c.abstract;return t.counter&&(u[0].attributes.class=u[0].attributes.class.replace("fa-layers-text","")),u[0]}),l=o.computed(function(){return Sm(A.value,{},r)});return function(){return l.value}}});const xT={class:"card-slice"},FT={key:0,class:"mana-hexagon"},IT={class:"mana-number"},TT={class:"card-name"},UT={key:1,class:"quantity"},DT={class:"quantity-background"},QT={class:"plus-minus-content"},LT={class:"plus-minus-quantity"},OT=o.defineComponent({__name:"CardSliceItem",props:dT,emits:["update:card-quantity"],setup(e,{emit:t}){const n=e;console.log("props.color",n.color);const r=GA(n.cardProp,n.cardCodeProp,!1),a=o.ref(null),i=o.ref(null),s=o.ref(null),A=o.ref(null),l=o.computed(()=>{let f=n.color;return!f&&r.value&&(f=yi(r.value,null,!0)),n.color===null&&(f="var(--color-background-2-rgb)"),{"--color":f}}),c=o.computed(()=>r.value?ge().callbacks.cardImageCallback(r.value.cardCode,gt.Slice):""),u=o.computed(()=>{const f=["card-slice-wrapper"];return n.maintainAspectRatio&&f.push("maintain-aspect-ratio"),f}),d=o.computed(()=>{const f=Vu().acquiredCards;return r.value===void 0||n.quantityNumber===void 0||n.quantityNumber>3||f===void 0||n.showPlusMinus?null:(f[r.value.cardCode]??0)<n.quantityNumber?"missing-quantity":null});return o.onMounted(()=>{n.ignoreCardItem||qe(a.value,{content:s.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:f=>{const p=f.popper.innerHTML.includes("right")?"right-start":"left-start";A.value=p},onHidden:()=>{A.value=null}})}),(f,p)=>{const h=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(h,{to:n.routerLink},{default:o.withCtx(()=>{var g,B;return[o.createElementVNode("div",{ref_key:"cardSlice",ref:a,class:o.normalizeClass(u.value)},[o.createElementVNode("div",xT,[o.createElementVNode("div",{class:"card-image",style:o.normalizeStyle({backgroundImage:`url(${c.value})`})},null,4),o.createElementVNode("div",{class:"region-gradient",style:o.normalizeStyle(l.value)},null,4),n.manaNumber!==null?(o.openBlock(),o.createElementBlock("div",FT,[o.createVNode(el,{class:"hexagon-icon"}),o.createElementVNode("div",IT,o.toDisplayString(n.manaNumber??((g=o.unref(r))==null?void 0:g.cost)),1)])):o.createCommentVNode("",!0),o.createElementVNode("div",TT,o.toDisplayString(n.name??((B=o.unref(r))==null?void 0:B.name)),1),n.quantityNumber!==void 0&&n.quantityNumber!==null?(o.openBlock(),o.createElementBlock("div",UT,[o.createElementVNode("div",DT,[o.createElementVNode("p",{class:o.normalizeClass(["num-quantity",d.value])},o.toDisplayString(n.quantityNumber),3)])])):o.createCommentVNode("",!0),n.showPlusMinus?(o.openBlock(),o.createElementBlock("div",{key:2,class:"plus-minus",onClick:p[2]||(p[2]=o.withModifiers(()=>{},["prevent"]))},[o.createElementVNode("div",QT,[o.createElementVNode("div",{class:"plus-minus-icon",onClick:p[0]||(p[0]=o.withModifiers(m=>{var v;return t("update:card-quantity",{cardCode:((v=o.unref(r))==null?void 0:v.cardCode)??"",quantity:-1})},["prevent"]))},[o.createVNode(o.unref(ke),{icon:"minus",class:"icon"})]),o.createElementVNode("div",{class:"plus-minus-icon",onClick:p[1]||(p[1]=o.withModifiers(m=>{var v;return t("update:card-quantity",{cardCode:((v=o.unref(r))==null?void 0:v.cardCode)??"",quantity:1})},["prevent"]))},[o.createVNode(o.unref(ke),{icon:"plus",class:"icon"})]),o.createElementVNode("div",LT,o.toDisplayString(n.quantityNumber),1)])])):o.createCommentVNode("",!0)])],2),o.createElementVNode("div",{ref_key:"cardItemWrapper",ref:s,class:"card-item-container"},[o.unref(r)&&!f.ignoreCardItem?(o.openBlock(),o.createBlock(Pi,{key:0,ref_key:"cardItem",ref:i,"is-root":!0,"card-prop":o.unref(r),"quantity-needed":n.quantityNumber,"show-tippy-location":A.value,class:"card-image-hover"},null,8,["card-prop","quantity-needed","show-tippy-location"])):o.createCommentVNode("",!0)],512)]}),_:1},8,["to"])}}});const $t=M(OT,[["__scopeId","data-v-dc5cfc42"]]);function fr(e){return[null,void 0].indexOf(e)!==-1}function MT(e,t,n){const{object:r,valueProp:a,mode:i}=o.toRefs(e),s=o.getCurrentInstance().proxy,A=n.iv,l=(d,f=!0)=>{A.value=u(d);const p=c(d);t.emit("change",p,s),f&&(t.emit("input",p),t.emit("update:modelValue",p))},c=d=>r.value||fr(d)?d:Array.isArray(d)?d.map(f=>f[a.value]):d[a.value],u=d=>fr(d)?i.value==="single"?{}:[]:d;return{update:l}}function NT(e,t){const{value:n,modelValue:r,mode:a,valueProp:i}=o.toRefs(e),s=o.ref(a.value!=="single"?[]:{}),A=r&&r.value!==void 0?r:n,l=o.computed(()=>a.value==="single"?s.value[i.value]:s.value.map(u=>u[i.value])),c=o.computed(()=>a.value!=="single"?s.value.map(u=>u[i.value]).join(","):s.value[i.value]);return{iv:s,internalValue:s,ev:A,externalValue:A,textValue:c,plainValue:l}}function PT(e,t,n){const{regex:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,i=n.isOpen,s=n.open,A=o.ref(null),l=o.ref(null),c=()=>{A.value=""},u=p=>{A.value=p.target.value},d=p=>{if(r&&r.value){let h=r.value;typeof h=="string"&&(h=new RegExp(h)),p.key.match(h)||p.preventDefault()}},f=p=>{if(r&&r.value){let g=(p.clipboardData||window.clipboardData).getData("Text"),B=r.value;typeof B=="string"&&(B=new RegExp(B)),g.split("").every(m=>!!m.match(B))||p.preventDefault()}t.emit("paste",p,a)};return o.watch(A,p=>{!i.value&&p&&s(),t.emit("search-change",p,a)}),{search:A,input:l,clearSearch:c,handleSearchInput:u,handleKeypress:d,handlePaste:f}}function HT(e,t,n){const{groupSelect:r,mode:a,groups:i,disabledProp:s}=o.toRefs(e),A=o.ref(null),l=u=>{u===void 0||u!==null&&u[s.value]||i.value&&u&&u.group&&(a.value==="single"||!r.value)||(A.value=u)};return{pointer:A,setPointer:l,clearPointer:()=>{l(null)}}}function vf(e,t=!0){return t?String(e).toLowerCase().trim():String(e).toLowerCase().normalize("NFD").trim().replace(new RegExp(/æ/g),"ae").replace(new RegExp(/œ/g),"oe").replace(new RegExp(/ø/g),"o").replace(/\p{Diacritic}/gu,"")}function RT(e){return Object.prototype.toString.call(e)==="[object Object]"}function VT(e,t){const n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,a){return r===n[a]})}function KT(e,t,n){const{options:r,mode:a,trackBy:i,limit:s,hideSelected:A,createTag:l,createOption:c,label:u,appendNewTag:d,appendNewOption:f,multipleLabel:p,object:h,loading:g,delay:B,resolveOnLoad:m,minChars:v,filterResults:w,clearOnSearch:y,clearOnSelect:b,valueProp:_,allowAbsent:C,groupLabel:E,canDeselect:S,max:D,strict:T,closeOnSelect:F,closeOnDeselect:U,groups:Y,reverse:X,infinite:j,groupOptions:K,groupHideEmpty:Ae,groupSelect:$,onCreate:ie,disabledProp:ce,searchStart:Be,searchFilter:xe}=o.toRefs(e),fe=o.getCurrentInstance().proxy,re=n.iv,N=n.ev,ne=n.search,He=n.clearSearch,lt=n.update,It=n.pointer,wt=n.clearPointer,Qn=n.focus,x=n.deactivate,k=n.close,Q=n.localize,z=o.ref([]),oe=o.ref([]),pe=o.ref(!1),Tt=o.ref(null),mt=o.ref(j.value&&s.value===-1?10:s.value),wn=o.computed(()=>l.value||c.value||!1),ze=o.computed(()=>d.value!==void 0?d.value:f.value!==void 0?f.value:!0),O=o.computed(()=>{if(Y.value){let I=nt.value||[],W=[];return I.forEach(Te=>{Jd(Te[K.value]).forEach(bt=>{W.push(Object.assign({},bt,Te[ce.value]?{[ce.value]:!0}:{}))})}),W}else{let I=Jd(oe.value||[]);return z.value.length&&(I=I.concat(z.value)),I}}),P=o.computed(()=>{let I=O.value;return X.value&&(I=I.reverse()),ga.value.length&&(I=ga.value.concat(I)),Xd(I)}),tt=o.computed(()=>{let I=P.value;return mt.value>0&&(I=I.slice(0,mt.value)),I}),nt=o.computed(()=>{if(!Y.value)return[];let I=[],W=oe.value||[];return z.value.length&&I.push({[E.value]:" ",[K.value]:[...z.value],__CREATE__:!0}),I.concat(W)}),Ar=o.computed(()=>{let I=[...nt.value].map(W=>({...W}));return ga.value.length&&(I[0]&&I[0].__CREATE__?I[0][K.value]=[...ga.value,...I[0][K.value]]:I=[{[E.value]:" ",[K.value]:[...ga.value],__CREATE__:!0}].concat(I)),I}),Ln=o.computed(()=>{if(!Y.value)return[];let I=Ar.value;return m3((I||[]).map((W,Te)=>{const bt=Jd(W[K.value]);return{...W,index:Te,group:!0,[K.value]:Xd(bt,!1).map(po=>Object.assign({},po,W[ce.value]?{[ce.value]:!0}:{})),__VISIBLE__:Xd(bt).map(po=>Object.assign({},po,W[ce.value]?{[ce.value]:!0}:{}))}}))}),On=o.computed(()=>{switch(a.value){case"single":return!fr(re.value[_.value]);case"multiple":case"tags":return!fr(re.value)&&re.value.length>0}}),qn=o.computed(()=>p!==void 0&&p.value!==void 0?p.value(re.value,fe):re.value&&re.value.length>1?`${re.value.length} options selected`:"1 option selected"),co=o.computed(()=>!O.value.length&&!pe.value&&!ga.value.length),ns=o.computed(()=>O.value.length>0&&tt.value.length==0&&(ne.value&&Y.value||!Y.value)),ga=o.computed(()=>wn.value===!1||!ne.value?[]:f3(ne.value)!==-1?[]:[{[_.value]:ne.value,[L.value]:ne.value,[u.value]:ne.value,__CREATE__:!0}]),L=o.computed(()=>i.value||u.value),ae=o.computed(()=>{switch(a.value){case"single":return null;case"multiple":case"tags":return[]}}),ue=o.computed(()=>g.value||pe.value),Ie=I=>{switch(typeof I!="object"&&(I=Dr(I)),a.value){case"single":lt(I);break;case"multiple":case"tags":lt(re.value.concat(I));break}t.emit("select",Ot(I),I,fe)},_e=I=>{switch(typeof I!="object"&&(I=Dr(I)),a.value){case"single":uo();break;case"tags":case"multiple":lt(Array.isArray(I)?re.value.filter(W=>I.map(Te=>Te[_.value]).indexOf(W[_.value])===-1):re.value.filter(W=>W[_.value]!=I[_.value]));break}t.emit("deselect",Ot(I),I,fe)},Ot=I=>h.value?I:I[_.value],nn=I=>{_e(I)},va=(I,W)=>{if(W.button!==0){W.preventDefault();return}nn(I)},uo=()=>{t.emit("clear",fe),lt(ae.value)},Rt=I=>{if(I.group!==void 0)return a.value==="single"?!1:d3(I[K.value])&&I[K.value].length;switch(a.value){case"single":return!fr(re.value)&&re.value[_.value]==I[_.value];case"tags":case"multiple":return!fr(re.value)&&re.value.map(W=>W[_.value]).indexOf(I[_.value])!==-1}},li=I=>I[ce.value]===!0,ya=()=>D===void 0||D.value===-1||!On.value&&D.value>0?!1:re.value.length>=D.value,Ba=I=>{if(!li(I)){if(ie&&ie.value&&!Rt(I)&&I.__CREATE__&&(I={...I},delete I.__CREATE__,I=ie.value(I,fe),I instanceof Promise)){pe.value=!0,I.then(W=>{pe.value=!1,Sl(W)});return}Sl(I)}},Sl=I=>{switch(I.__CREATE__&&(I={...I},delete I.__CREATE__),a.value){case"single":if(I&&Rt(I)){S.value&&_e(I),U.value&&(wt(),k());return}I&&wa(I),b.value&&He(),F.value&&(wt(),k()),I&&Ie(I);break;case"multiple":if(I&&Rt(I)){_e(I),U.value&&(wt(),k());return}if(ya()){t.emit("max",fe);return}I&&(wa(I),Ie(I)),b.value&&He(),A.value&&wt(),F.value&&k();break;case"tags":if(I&&Rt(I)){_e(I),U.value&&(wt(),k());return}if(ya()){t.emit("max",fe);return}I&&wa(I),b.value&&He(),I&&Ie(I),A.value&&wt(),F.value&&k();break}F.value||Qn()},fo=I=>{if(!(li(I)||a.value==="single"||!$.value)){switch(a.value){case"multiple":case"tags":u3(I[K.value])?_e(I[K.value]):Ie(I[K.value].filter(W=>re.value.map(Te=>Te[_.value]).indexOf(W[_.value])===-1).filter(W=>!W[ce.value]).filter((W,Te)=>re.value.length+1+Te<=D.value||D.value===-1));break}F.value&&x()}},wa=I=>{Dr(I[_.value])===void 0&&wn.value&&(t.emit("tag",I[_.value],fe),t.emit("option",I[_.value],fe),t.emit("create",I[_.value],fe),ze.value&&h3(I),He())},c3=()=>{a.value!=="single"&&Ie(tt.value.filter(I=>!I.disabled&&!Rt(I)))},u3=I=>I.find(W=>!Rt(W)&&!W[ce.value])===void 0,d3=I=>I.find(W=>!Rt(W))===void 0,Dr=I=>O.value[O.value.map(W=>String(W[_.value])).indexOf(String(I))],f3=(I,W=!0)=>O.value.map(Te=>parseInt(Te[L.value])==Te[L.value]?parseInt(Te[L.value]):Te[L.value]).indexOf(parseInt(I)==I?parseInt(I):I),p3=I=>["tags","multiple"].indexOf(a.value)!==-1&&A.value&&Rt(I),h3=I=>{z.value.push(I)},m3=I=>Ae.value?I.filter(W=>ne.value?W.__VISIBLE__.length:W[K.value].length):I.filter(W=>ne.value?W.__VISIBLE__.length:!0),Xd=(I,W=!0)=>{let Te=I;if(ne.value&&w.value){let bt=xe.value;bt||(bt=(po,oce)=>{let U1=vf(Q(po[L.value]),T.value);return Be.value?U1.startsWith(vf(ne.value,T.value)):U1.indexOf(vf(ne.value,T.value))!==-1}),Te=Te.filter(bt)}return A.value&&W&&(Te=Te.filter(bt=>!p3(bt))),Te},Jd=I=>{let W=I;return RT(W)&&(W=Object.keys(W).map(Te=>{let bt=W[Te];return{[_.value]:Te,[L.value]:bt,[u.value]:bt}})),W=W.map(Te=>typeof Te=="object"?Te:{[_.value]:Te,[L.value]:Te,[u.value]:Te}),W},xl=()=>{fr(N.value)||(re.value=Il(N.value))},Fl=I=>(pe.value=!0,new Promise((W,Te)=>{r.value(ne.value,fe).then(bt=>{oe.value=bt||[],typeof I=="function"&&I(bt),pe.value=!1}).catch(bt=>{console.error(bt),oe.value=[],pe.value=!1}).finally(()=>{W()})})),Zd=()=>{if(On.value)if(a.value==="single"){let I=Dr(re.value[_.value]);if(I!==void 0){let W=I[u.value];re.value[u.value]=W,h.value&&(N.value[u.value]=W)}}else re.value.forEach((I,W)=>{let Te=Dr(re.value[W][_.value]);if(Te!==void 0){let bt=Te[u.value];re.value[W][u.value]=bt,h.value&&(N.value[W][u.value]=bt)}})},g3=I=>{Fl(I)},Il=I=>fr(I)?a.value==="single"?{}:[]:h.value?I:a.value==="single"?Dr(I)||(C.value?{[u.value]:I,[_.value]:I,[L.value]:I}:{}):I.filter(W=>!!Dr(W)||C.value).map(W=>Dr(W)||{[u.value]:W,[_.value]:W,[L.value]:W}),T1=()=>{Tt.value=o.watch(ne,I=>{I.length<v.value||!I&&v.value!==0||(pe.value=!0,y.value&&(oe.value=[]),setTimeout(()=>{I==ne.value&&r.value(ne.value,fe).then(W=>{(I==ne.value||!ne.value)&&(oe.value=W,It.value=tt.value.filter(Te=>Te[ce.value]!==!0)[0]||null,pe.value=!1)}).catch(W=>{console.error(W)})},B.value))},{flush:"sync"})};if(a.value!=="single"&&!fr(N.value)&&!Array.isArray(N.value))throw new Error(`v-model must be an array when using "${a.value}" mode`);return r&&typeof r.value=="function"?m.value?Fl(xl):h.value==!0&&xl():(oe.value=r.value,xl()),B.value>-1&&T1(),o.watch(B,(I,W)=>{Tt.value&&Tt.value(),I>=0&&T1()}),o.watch(N,I=>{if(fr(I)){lt(Il(I),!1);return}switch(a.value){case"single":(h.value?I[_.value]!=re.value[_.value]:I!=re.value[_.value])&<(Il(I),!1);break;case"multiple":case"tags":VT(h.value?I.map(W=>W[_.value]):I,re.value.map(W=>W[_.value]))||lt(Il(I),!1);break}},{deep:!0}),o.watch(r,(I,W)=>{typeof e.options=="function"?m.value&&(!W||I&&I.toString()!==W.toString())&&Fl():(oe.value=e.options,Object.keys(re.value).length||xl(),Zd())}),o.watch(u,Zd),{pfo:P,fo:tt,filteredOptions:tt,hasSelected:On,multipleLabelText:qn,eo:O,extendedOptions:O,eg:nt,extendedGroups:nt,fg:Ln,filteredGroups:Ln,noOptions:co,noResults:ns,resolving:pe,busy:ue,offset:mt,select:Ie,deselect:_e,remove:nn,selectAll:c3,clear:uo,isSelected:Rt,isDisabled:li,isMax:ya,getOption:Dr,handleOptionClick:Ba,handleGroupClick:fo,handleTagRemove:va,refreshOptions:g3,resolveOptions:Fl,refreshLabels:Zd}}function $T(e,t,n){const{valueProp:r,showOptions:a,searchable:i,groupLabel:s,groups:A,mode:l,groupSelect:c,disabledProp:u,groupOptions:d}=o.toRefs(e),f=n.fo,p=n.fg,h=n.handleOptionClick,g=n.handleGroupClick,B=n.search,m=n.pointer,v=n.setPointer,w=n.clearPointer,y=n.multiselect,b=n.isOpen,_=o.computed(()=>f.value.filter(N=>!N[u.value])),C=o.computed(()=>p.value.filter(N=>!N[u.value])),E=o.computed(()=>l.value!=="single"&&c.value),S=o.computed(()=>m.value&&m.value.group),D=o.computed(()=>fe(m.value)),T=o.computed(()=>{const N=S.value?m.value:fe(m.value),ne=C.value.map(lt=>lt[s.value]).indexOf(N[s.value]);let He=C.value[ne-1];return He===void 0&&(He=U.value),He}),F=o.computed(()=>{let N=C.value.map(ne=>ne.label).indexOf(S.value?m.value[s.value]:fe(m.value)[s.value])+1;return C.value.length<=N&&(N=0),C.value[N]}),U=o.computed(()=>[...C.value].slice(-1)[0]),Y=o.computed(()=>m.value.__VISIBLE__.filter(N=>!N[u.value])[0]),X=o.computed(()=>{const N=D.value.__VISIBLE__.filter(ne=>!ne[u.value]);return N[N.map(ne=>ne[r.value]).indexOf(m.value[r.value])-1]}),j=o.computed(()=>{const N=fe(m.value).__VISIBLE__.filter(ne=>!ne[u.value]);return N[N.map(ne=>ne[r.value]).indexOf(m.value[r.value])+1]}),K=o.computed(()=>[...T.value.__VISIBLE__.filter(N=>!N[u.value])].slice(-1)[0]),Ae=o.computed(()=>[...U.value.__VISIBLE__.filter(N=>!N[u.value])].slice(-1)[0]),$=N=>m.value&&(!N.group&&m.value[r.value]===N[r.value]||N.group!==void 0&&m.value[s.value]===N[s.value])?!0:void 0,ie=()=>{v(_.value[0]||null)},ce=()=>{!m.value||m.value[u.value]===!0||(S.value?g(m.value):h(m.value))},Be=()=>{if(m.value===null)v((A.value&&E.value?C.value[0].__CREATE__?_.value[0]:C.value[0]:_.value[0])||null);else if(A.value&&E.value){let N=S.value?Y.value:j.value;N===void 0&&(N=F.value,N.__CREATE__&&(N=N[d.value][0])),v(N||null)}else{let N=_.value.map(ne=>ne[r.value]).indexOf(m.value[r.value])+1;_.value.length<=N&&(N=0),v(_.value[N]||null)}o.nextTick(()=>{re()})},xe=()=>{if(m.value===null){let N=_.value[_.value.length-1];A.value&&E.value&&(N=Ae.value,N===void 0&&(N=U.value)),v(N||null)}else if(A.value&&E.value){let N=S.value?K.value:X.value;N===void 0&&(N=S.value?T.value:D.value,N.__CREATE__&&(N=K.value,N===void 0&&(N=T.value))),v(N||null)}else{let N=_.value.map(ne=>ne[r.value]).indexOf(m.value[r.value])-1;N<0&&(N=_.value.length-1),v(_.value[N]||null)}o.nextTick(()=>{re()})},fe=N=>C.value.find(ne=>ne.__VISIBLE__.map(He=>He[r.value]).indexOf(N[r.value])!==-1),re=()=>{let N=y.value.querySelector("[data-pointed]");if(!N)return;let ne=N.parentElement.parentElement;A.value&&(ne=S.value?N.parentElement.parentElement.parentElement:N.parentElement.parentElement.parentElement.parentElement),N.offsetTop+N.offsetHeight>ne.clientHeight+ne.scrollTop&&(ne.scrollTop=N.offsetTop+N.offsetHeight-ne.clientHeight),N.offsetTop<ne.scrollTop&&(ne.scrollTop=N.offsetTop)};return o.watch(B,N=>{i.value&&(N.length&&a.value?ie():w())}),o.watch(b,N=>{if(N){let ne=y.value.querySelectorAll("[data-selected]")[0];if(!ne)return;let He=ne.parentElement.parentElement;o.nextTick(()=>{He.scrollTop>0||(He.scrollTop=ne.offsetTop)})}}),{pointer:m,canPointGroups:E,isPointed:$,setPointerFirst:ie,selectPointer:ce,forwardPointer:Be,backwardPointer:xe}}function zT(e,t,n){const{disabled:r}=o.toRefs(e),a=o.getCurrentInstance().proxy,i=o.ref(!1);return{isOpen:i,open:()=>{i.value||r.value||(i.value=!0,t.emit("open",a))},close:()=>{i.value&&(i.value=!1,t.emit("close",a))}}}function WT(e,t,n){const{searchable:r,disabled:a,clearOnBlur:i}=o.toRefs(e),s=n.input,A=n.open,l=n.close,c=n.clearSearch,u=n.isOpen,d=o.ref(null),f=o.ref(null),p=o.ref(null),h=o.ref(!1),g=o.ref(!1),B=o.computed(()=>r.value||a.value?-1:0),m=()=>{r.value&&s.value.blur(),f.value.blur()},v=()=>{r.value&&!a.value&&s.value.focus()},w=(S=!0)=>{a.value||(h.value=!0,S&&A())},y=()=>{h.value=!1,setTimeout(()=>{h.value||(l(),i.value&&c())},1)};return{multiselect:d,wrapper:f,tags:p,tabindex:B,isActive:h,mouseClicked:g,blur:m,focus:v,activate:w,deactivate:y,handleFocusIn:S=>{S.target.closest("[data-tags]")&&S.target.nodeName!=="INPUT"||S.target.closest("[data-clear]")||w(g.value)},handleFocusOut:()=>{y()},handleCaretClick:()=>{y(),m()},handleMousedown:S=>{g.value=!0,u.value&&(S.target.isEqualNode(f.value)||S.target.isEqualNode(p.value))?setTimeout(()=>{y()},0):document.activeElement.isEqualNode(f.value)&&!u.value&&w(),setTimeout(()=>{g.value=!1},0)}}}function GT(e,t,n){const{mode:r,addTagOn:a,openDirection:i,searchable:s,showOptions:A,valueProp:l,groups:c,addOptionOn:u,createTag:d,createOption:f,reverse:p}=o.toRefs(e),h=o.getCurrentInstance().proxy,g=n.iv,B=n.update,m=n.search,v=n.setPointer,w=n.selectPointer,y=n.backwardPointer,b=n.forwardPointer,_=n.multiselect,C=n.wrapper,E=n.tags,S=n.isOpen,D=n.open,T=n.blur,F=n.fo,U=o.computed(()=>d.value||f.value||!1),Y=o.computed(()=>a.value!==void 0?a.value:u.value!==void 0?u.value:["enter"]),X=()=>{r.value==="tags"&&!A.value&&U.value&&s.value&&!c.value&&v(F.value[F.value.map($=>$[l.value]).indexOf(m.value)])},j=$=>{let ie=$.length-1;for(;ie>=0&&($[ie].remove===!1||$[ie].disabled);)ie--;return ie<0||$.splice(ie,1),$};return{handleKeydown:$=>{t.emit("keydown",$,h);let ie,ce;switch(["ArrowLeft","ArrowRight","Enter"].indexOf($.key)!==-1&&r.value==="tags"&&(ie=[..._.value.querySelectorAll("[data-tags] > *")].filter(Be=>Be!==E.value),ce=ie.findIndex(Be=>Be===document.activeElement)),$.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(m.value)===-1||g.value.length===0)return;B(j([...g.value]));break;case"Enter":if($.preventDefault(),$.keyCode===229)return;if(ce!==-1&&ce!==void 0){B([...g.value].filter((Be,xe)=>xe!==ce)),ce===ie.length-1&&(ie.length-1?ie[ie.length-2].focus():s.value?E.value.querySelector("input").focus():C.value.focus());return}if(Y.value.indexOf("enter")===-1&&U.value)return;X(),w();break;case" ":if(!U.value&&!s.value){$.preventDefault(),X(),w();return}if(!U.value)return!1;if(Y.value.indexOf("space")===-1&&U.value)return;$.preventDefault(),X(),w();break;case"Tab":case";":case",":if(Y.value.indexOf($.key.toLowerCase())===-1||!U.value)return;X(),w(),$.preventDefault();break;case"Escape":T();break;case"ArrowUp":if($.preventDefault(),!A.value)return;S.value||D(),y();break;case"ArrowDown":if($.preventDefault(),!A.value)return;S.value||D(),b();break;case"ArrowLeft":if(s.value&&E.value&&E.value.querySelector("input").selectionStart||$.shiftKey||r.value!=="tags"||!g.value||!g.value.length)return;$.preventDefault(),ce===-1?ie[ie.length-1].focus():ce>0&&ie[ce-1].focus();break;case"ArrowRight":if(ce===-1||$.shiftKey||r.value!=="tags"||!g.value||!g.value.length)return;$.preventDefault(),ie.length>ce+1?ie[ce+1].focus():s.value?E.value.querySelector("input").focus():s.value||C.value.focus();break}},handleKeyup:$=>{t.emit("keyup",$,h)},preparePointer:X}}function jT(e,t,n){const{classes:r,disabled:a,openDirection:i,showOptions:s}=o.toRefs(e),A=n.isOpen,l=n.isPointed,c=n.isSelected,u=n.isDisabled,d=n.isActive,f=n.canPointGroups,p=n.resolving,h=n.fo,g=o.computed(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),B=o.computed(()=>!!(A.value&&s.value&&(!p.value||p.value&&h.value.length)));return{classList:o.computed(()=>{const v=g.value;return{container:[v.container].concat(a.value?v.containerDisabled:[]).concat(B.value&&i.value==="top"?v.containerOpenTop:[]).concat(B.value&&i.value!=="top"?v.containerOpen:[]).concat(d.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(a.value?v.tagDisabled:[]),tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(A.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(i.value==="top"?v.dropdownTop:[]).concat(!A.value||!s.value||!B.value?v.dropdownHidden:[]),options:[v.options].concat(i.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:w=>{let y=[v.groupLabel];return l(w)?y.push(c(w)?v.groupLabelSelectedPointed:v.groupLabelPointed):c(w)&&f.value?y.push(u(w)?v.groupLabelSelectedDisabled:v.groupLabelSelected):u(w)&&y.push(v.groupLabelDisabled),f.value&&y.push(v.groupLabelPointable),y},groupOptions:v.groupOptions,option:(w,y)=>{let b=[v.option];return l(w)?b.push(c(w)?v.optionSelectedPointed:v.optionPointed):c(w)?b.push(u(w)?v.optionSelectedDisabled:v.optionSelected):(u(w)||y&&u(y))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:B}}function YT(e,t,n){const{limit:r,infinite:a}=o.toRefs(e),i=n.isOpen,s=n.offset,A=n.search,l=n.pfo,c=n.eo,u=o.ref(null),d=o.ref(null),f=o.computed(()=>s.value<l.value.length),p=g=>{const{isIntersecting:B,target:m}=g[0];if(B){const v=m.offsetParent,w=v.scrollTop;s.value+=r.value==-1?10:r.value,o.nextTick(()=>{v.scrollTop=w})}},h=()=>{i.value&&s.value<l.value.length?u.value.observe(d.value):!i.value&&u.value&&u.value.disconnect()};return o.watch(i,()=>{a.value&&h()}),o.watch(A,()=>{a.value&&(s.value=r.value,h())},{flush:"post"}),o.watch(c,()=>{a.value&&h()},{immediate:!1,flush:"post"}),o.onMounted(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(p))}),{hasMore:f,infiniteLoader:d}}function qT(e,t,n){const{placeholder:r,id:a,valueProp:i,label:s,mode:A,groupLabel:l,aria:c,searchable:u}=o.toRefs(e),d=n.pointer,f=n.iv,p=n.hasSelected,h=n.multipleLabelText,g=o.ref(null),B=o.computed(()=>{let F=[];return a&&a.value&&F.push(a.value),F.push("assist"),F.join("-")}),m=o.computed(()=>{let F=[];return a&&a.value&&F.push(a.value),F.push("multiselect-options"),F.join("-")}),v=o.computed(()=>{let F=[];if(a&&a.value&&F.push(a.value),d.value)return F.push(d.value.group?"multiselect-group":"multiselect-option"),F.push(d.value.group?d.value.index:d.value[i.value]),F.join("-")}),w=o.computed(()=>r.value),y=o.computed(()=>A.value!=="single"),b=o.computed(()=>{let F="";return A.value==="single"&&p.value&&(F+=f.value[s.value]),A.value==="multiple"&&p.value&&(F+=h.value),A.value==="tags"&&p.value&&(F+=f.value.map(U=>U[s.value]).join(", ")),F}),_=o.computed(()=>{let F={...c.value};return u.value&&(F["aria-labelledby"]=F["aria-labelledby"]?`${B.value} ${F["aria-labelledby"]}`:B.value,b.value&&F["aria-label"]&&(F["aria-label"]=`${b.value}, ${F["aria-label"]}`)),F}),C=F=>{let U=[];return a&&a.value&&U.push(a.value),U.push("multiselect-option"),U.push(F[i.value]),U.join("-")},E=F=>{let U=[];return a&&a.value&&U.push(a.value),U.push("multiselect-group"),U.push(F.index),U.join("-")},S=F=>{let U=[];return U.push(F),U.join(" ")},D=F=>{let U=[];return U.push(F),U.join(" ")},T=F=>`${F} ❎`;return o.onMounted(()=>{if(a&&a.value&&document&&document.querySelector){let F=document.querySelector(`[for="${a.value}"]`);g.value=F?F.innerText:null}}),{arias:_,ariaLabel:b,ariaAssist:B,ariaControls:m,ariaPlaceholder:w,ariaMultiselectable:y,ariaActiveDescendant:v,ariaOptionId:C,ariaOptionLabel:S,ariaGroupId:E,ariaGroupLabel:D,ariaTagLabel:T}}function XT(e,t,n){const{locale:r,fallbackLocale:a}=o.toRefs(e);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[a.value]?s[a.value]:s&&a.value&&s[a.value.toUpperCase()]?s[a.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function JT(e,t,n,r={}){return n.forEach(a=>{a&&(r={...r,...a(e,t,r)})}),r}var Wt={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:String,required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1}},setup(e,t){return JT(e,t,[XT,NT,HT,zT,PT,MT,WT,KT,YT,$T,GT,jT,qT])}};const ZT=["id","dir"],eU=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],tU=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],nU=["onKeyup","aria-label"],rU=["onClick"],aU=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],iU=["innerHTML"],sU=["id"],oU=["id","aria-label","aria-selected"],AU=["data-pointed","onMouseenter","onClick"],lU=["innerHTML"],cU=["aria-label"],uU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],dU=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],fU=["innerHTML"],pU=["innerHTML"],hU=["value"],mU=["name","value"],gU=["name","value"],vU=["id"];function yU(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",{ref:"multiselect",class:o.normalizeClass(e.classList.container),id:n.searchable?void 0:n.id,dir:n.rtl?"rtl":void 0,onFocusin:t[10]||(t[10]=(...s)=>e.handleFocusIn&&e.handleFocusIn(...s)),onFocusout:t[11]||(t[11]=(...s)=>e.handleFocusOut&&e.handleFocusOut(...s)),onKeyup:t[12]||(t[12]=(...s)=>e.handleKeyup&&e.handleKeyup(...s)),onKeydown:t[13]||(t[13]=(...s)=>e.handleKeydown&&e.handleKeydown(...s))},[o.createElementVNode("div",o.mergeProps({class:e.classList.wrapper,onMousedown:t[9]||(t[9]=(...s)=>e.handleMousedown&&e.handleMousedown(...s)),ref:"wrapper",tabindex:e.tabindex,"aria-controls":n.searchable?void 0:e.ariaControls,"aria-placeholder":n.searchable?void 0:e.ariaPlaceholder,"aria-expanded":n.searchable?void 0:e.isOpen,"aria-activedescendant":n.searchable?void 0:e.ariaActiveDescendant,"aria-multiselectable":n.searchable?void 0:e.ariaMultiselectable,role:n.searchable?void 0:"combobox"},n.searchable?{}:e.arias),[o.createCommentVNode(" Search "),n.mode!=="tags"&&n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.search,autocomplete:n.autocomplete,id:n.searchable?n.id:void 0,onInput:t[0]||(t[0]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[1]||(t[1]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[2]||(t[2]=o.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,tU)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Tags (with search) "),n.mode=="tags"?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(e.classList.tags),"data-tags":""},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.iv,(s,A,l)=>o.renderSlot(e.$slots,"tag",{option:s,handleTagRemove:e.handleTagRemove,disabled:n.disabled},()=>[(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass([e.classList.tag,s.disabled?e.classList.tagDisabled:null]),tabindex:"-1",onKeyup:o.withKeys(c=>e.handleTagRemove(s,c),["enter"]),key:l,"aria-label":e.ariaTagLabel(e.localize(s[n.label]))},[o.createTextVNode(o.toDisplayString(e.localize(s[n.label]))+" ",1),!n.disabled&&!s.disabled?(o.openBlock(),o.createElementBlock("span",{key:0,class:o.normalizeClass(e.classList.tagRemove),onClick:o.withModifiers(c=>e.handleTagRemove(s,c),["stop"])},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagRemoveIcon)},null,2)],10,rU)):o.createCommentVNode("v-if",!0)],42,nU))])),256)),o.createElementVNode("div",{class:o.normalizeClass(e.classList.tagsSearchWrapper),ref:"tags"},[o.createCommentVNode(" Used for measuring search width "),o.createElementVNode("span",{class:o.normalizeClass(e.classList.tagsSearchCopy)},o.toDisplayString(e.search),3),o.createCommentVNode(" Actual search input "),n.searchable&&!n.disabled?(o.openBlock(),o.createElementBlock("input",o.mergeProps({key:0,type:n.inputType,modelValue:e.search,value:e.search,class:e.classList.tagsSearch,id:n.searchable?n.id:void 0,autocomplete:n.autocomplete,onInput:t[3]||(t[3]=(...s)=>e.handleSearchInput&&e.handleSearchInput(...s)),onKeypress:t[4]||(t[4]=(...s)=>e.handleKeypress&&e.handleKeypress(...s)),onPaste:t[5]||(t[5]=o.withModifiers((...s)=>e.handlePaste&&e.handlePaste(...s),["stop"])),ref:"input","aria-controls":e.ariaControls,"aria-placeholder":e.ariaPlaceholder,"aria-expanded":e.isOpen,"aria-activedescendant":e.ariaActiveDescendant,"aria-multiselectable":e.ariaMultiselectable,role:"combobox"},{...n.attrs,...e.arias}),null,16,aU)):o.createCommentVNode("v-if",!0)],2)],2)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Single label "),n.mode=="single"&&e.hasSelected&&!e.search&&e.iv?o.renderSlot(e.$slots,"singlelabel",{key:2,value:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.singleLabel)},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.singleLabelText)},o.toDisplayString(e.localize(e.iv[n.label])),3)],2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Multiple label "),n.mode=="multiple"&&e.hasSelected&&!e.search?o.renderSlot(e.$slots,"multiplelabel",{key:3,values:e.iv},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.multipleLabel),innerHTML:e.multipleLabelText},null,10,iU)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Placeholder "),n.placeholder&&!e.hasSelected&&!e.search?o.renderSlot(e.$slots,"placeholder",{key:4},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.placeholder),"aria-hidden":"true"},o.toDisplayString(n.placeholder),3)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Spinner "),n.loading||e.resolving?o.renderSlot(e.$slots,"spinner",{key:5},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.spinner),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Clear "),e.hasSelected&&!n.disabled&&n.canClear&&!e.busy?o.renderSlot(e.$slots,"clear",{key:6,clear:e.clear},()=>[o.createElementVNode("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:o.normalizeClass(e.classList.clear),onClick:t[6]||(t[6]=(...s)=>e.clear&&e.clear(...s)),onKeyup:t[7]||(t[7]=o.withKeys((...s)=>e.clear&&e.clear(...s),["enter"]))},[o.createElementVNode("span",{class:o.normalizeClass(e.classList.clearIcon)},null,2)],34)]):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Caret "),n.caret&&n.showOptions?o.renderSlot(e.$slots,"caret",{key:7},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.caret),onClick:t[8]||(t[8]=(...s)=>e.handleCaretClick&&e.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):o.createCommentVNode("v-if",!0)],16,eU),o.createCommentVNode(" Options "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.dropdown),tabindex:"-1"},[o.renderSlot(e.$slots,"beforelist",{options:e.fo}),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.options),id:e.ariaControls,role:"listbox"},[n.groups?(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:0},o.renderList(e.fg,(s,A,l)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.group),key:l,id:e.ariaGroupId(s),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),"aria-selected":e.isSelected(s),role:"option"},[s.__CREATE__?o.createCommentVNode("v-if",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(e.classList.groupLabel(s)),"data-pointed":e.isPointed(s),onMouseenter:c=>e.setPointer(s,A),onClick:c=>e.handleGroupClick(s)},[o.renderSlot(e.$slots,"grouplabel",{group:s,isSelected:e.isSelected,isPointed:e.isPointed},()=>[o.createElementVNode("span",{innerHTML:e.localize(s[n.groupLabel])},null,8,lU)])],42,AU)),o.createElementVNode("ul",{class:o.normalizeClass(e.classList.groupOptions),"aria-label":e.ariaGroupLabel(e.localize(s[n.groupLabel])),role:"group"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.__VISIBLE__,(c,u,d)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(c,s)),"data-pointed":e.isPointed(c),"data-selected":e.isSelected(c)||void 0,key:d,onMouseenter:f=>e.setPointer(c),onClick:f=>e.handleOptionClick(c),id:e.ariaOptionId(c),"aria-selected":e.isSelected(c),"aria-label":e.ariaOptionLabel(e.localize(c[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:c,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(c[n.label])),1)])],42,uU))),128))],10,cU)],10,oU))),128)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.fo,(s,A,l)=>(o.openBlock(),o.createElementBlock("li",{class:o.normalizeClass(e.classList.option(s)),"data-pointed":e.isPointed(s),"data-selected":e.isSelected(s)||void 0,key:l,onMouseenter:c=>e.setPointer(s),onClick:c=>e.handleOptionClick(s),id:e.ariaOptionId(s),"aria-selected":e.isSelected(s),"aria-label":e.ariaOptionLabel(e.localize(s[n.label])),role:"option"},[o.renderSlot(e.$slots,"option",{option:s,isSelected:e.isSelected,isPointed:e.isPointed,search:e.search},()=>[o.createElementVNode("span",null,o.toDisplayString(e.localize(s[n.label])),1)])],42,dU))),128))],10,sU),e.noOptions?o.renderSlot(e.$slots,"nooptions",{key:0},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noOptions),innerHTML:e.localize(n.noOptionsText)},null,10,fU)]):o.createCommentVNode("v-if",!0),e.noResults?o.renderSlot(e.$slots,"noresults",{key:1},()=>[o.createElementVNode("div",{class:o.normalizeClass(e.classList.noResults),innerHTML:e.localize(n.noResultsText)},null,10,pU)]):o.createCommentVNode("v-if",!0),n.infinite&&e.hasMore?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.inifinite),ref:"infiniteLoader"},[o.renderSlot(e.$slots,"infinite",{},()=>[o.createElementVNode("span",{class:o.normalizeClass(e.classList.inifiniteSpinner)},null,2)])],2)):o.createCommentVNode("v-if",!0),o.renderSlot(e.$slots,"afterlist",{options:e.fo})],2),o.createCommentVNode(" Hacky input element to show HTML5 required warning "),n.required?(o.openBlock(),o.createElementBlock("input",{key:0,class:o.normalizeClass(e.classList.fakeInput),tabindex:"-1",value:e.textValue,required:""},null,10,hU)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Native input support "),n.nativeSupport?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[n.mode=="single"?(o.openBlock(),o.createElementBlock("input",{key:0,type:"hidden",name:n.name,value:e.plainValue!==void 0?e.plainValue:""},null,8,mU)):(o.openBlock(!0),o.createElementBlock(o.Fragment,{key:1},o.renderList(e.plainValue,(s,A)=>(o.openBlock(),o.createElementBlock("input",{type:"hidden",name:`${n.name}[]`,value:s,key:A},null,8,gU))),128))],64)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Screen reader assistive text "),n.searchable&&e.hasSelected?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(e.classList.assist),id:e.ariaAssist,"aria-hidden":"true"},o.toDisplayString(e.ariaLabel),11,vU)):o.createCommentVNode("v-if",!0),o.createCommentVNode(" Create height for empty input "),o.createElementVNode("div",{class:o.normalizeClass(e.classList.spacer)},null,2)],42,ZT)}Wt.render=yU;Wt.__file="src/Multiselect.vue";const BU={class:"search-bar"},wU=o.defineComponent({__name:"SearchBar",props:w6,setup(e){const t=e,{t:n}=J(),r=o.ref(""),a=Vr.useRouter();function i(A,l,c){c.clear(),c.search=r.value,a.push(l.link),Hw().addOption(l)}function s(A){r.value=A}return(A,l)=>(o.openBlock(),o.createElementBlock("div",BU,[o.createVNode(o.unref(Wt),{placeholder:o.unref(n)("navigation.searchPlaceholder"),"value-prop":"link","clear-on-blur":!1,"clear-on-search":!1,"clear-on-select":!1,"close-on-select":!0,delay:0,"filter-results":!1,groups:!0,"min-chars":0,"resolve-on-load":!1,searchable:!0,options:t.fetchSeachResult,onOpen:l[0]||(l[0]=c=>{c.noOptions&&c.resolveOptions()}),onSearchChange:s,onSelect:i},{option:o.withCtx(({option:c})=>[c.type==="card"?(o.openBlock(),o.createBlock($t,{key:`card-${c.card.cardCode}`,class:"card-slice-item","maintain-aspect-ratio":!0,"card-prop":c.card,"router-link":c.link},null,8,["card-prop","router-link"])):(o.openBlock(),o.createBlock($t,{key:`player-${c.link}`,class:"card-slice-item","maintain-aspect-ratio":!0,"ignore-card-item":!0,"card-code-prop":c.cardCode,color:c.color,name:c.name,"mana-number":c.rank,"router-link":c.link},null,8,["card-code-prop","color","name","mana-number","router-link"]))]),_:1},8,["placeholder","options"])]))}});const td=M(wU,[["__scopeId","data-v-f53c910f"]]),bU={class:"social-links"},_U={href:"https://discord.gg/tGTSXgDFVU"},CU={href:"https://twitter.com/LORGG__"},kU=o.defineComponent({__name:"SocialLinks",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("div",bU,[o.createElementVNode("a",_U,[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-brands fa-discord"})]),o.createElementVNode("a",CU,[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-brands fa-twitter"})])]))}});const xm=M(kU,[["__scopeId","data-v-e6a74c37"]]),EU={showModal:{type:Boolean,required:!0,default:!1}},SU=["onClick"],xU=o.defineComponent({__name:"ModalItem",props:EU,emits:["update:showModal"],setup(e,{emit:t}){const n=e,r=o.ref(null),a=o.ref(!1);function i(){a.value&&t("update:showModal",!1)}o.onBeforeUnmount(()=>{var A;(A=r.value)==null||A.remove()});function s(){setTimeout(()=>{a.value=!1},1)}return o.watch(()=>n.showModal,()=>{n.showModal&&o.nextTick(()=>{r.value&&document.body.appendChild(r.value)})}),(A,l)=>n.showModal?(o.openBlock(),o.createElementBlock("div",{key:0,ref_key:"modalItem",ref:r,class:"modal-item",onMousedown:l[0]||(l[0]=o.withModifiers(c=>a.value=!0,["self"])),onClick:o.withModifiers(i,["self"]),onMouseup:s},[o.renderSlot(A.$slots,"default",{},void 0,!0)],40,SU)):o.createCommentVNode("",!0)}});const si=M(xU,[["__scopeId","data-v-ab68e9be"]]),FU={filterArray:{type:Array,required:!1,default:void 0},title:{type:String,required:!1,default:void 0}},IU={class:"filter"},TU={key:0,class:"top"},UU={key:0,class:"title"},DU=o.defineComponent({__name:"SidePanelSectionPane",props:FU,emits:["clear:filterArray"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.filterArray&&n.filterArray.length>0?"clickable":null);function a(){t("clear:filterArray")}return(i,s)=>{const A=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",IU,[n.title||i.filterArray?(o.openBlock(),o.createElementBlock("div",TU,[n.title?(o.openBlock(),o.createElementBlock("h2",UU,o.toDisplayString(n.title),1)):o.createCommentVNode("",!0),i.filterArray?o.withDirectives((o.openBlock(),o.createElementBlock("p",{key:1,class:o.normalizeClass(["clear",r.value]),onClick:a},null,2)),[[A,"general.clear"]]):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const dt=M(DU,[["__scopeId","data-v-741cceed"]]),QU={filterArray:{type:Array,required:!0,default:[]}},LU=["placeholder"],OU=o.defineComponent({__name:"FilterSampleSize",props:QU,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray),i=o.ref("");let s=setTimeout(()=>{},0);a.value.length>0&&(i.value=a.value[0]),o.watch(a,()=>{t("update:filterArray",a.value)}),o.watch(i,()=>{s&&clearTimeout(s),s=setTimeout(()=>{a.value.splice(0),i.value&&Number(i.value)>=10&&a.value.push(i.value)},1e3)});function A(){a.value.splice(0),i.value=""}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a.value,title:o.unref(r)("general.sampleSize"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),placeholder:o.unref(r)("general.minimumMatches"),type:"number",min:"10",step:"10"},null,8,LU),[[o.vModelText,i.value]])]),_:1},8,["filter-array","title"]))}});const eo=M(OU,[["__scopeId","data-v-727f5a58"]]),MU={filterArray:{type:Array,required:!0,default:[]}},NU={isSelected:{type:Boolean,required:!0,default:!1},icon:{type:String,required:!1,default:void 0},prompt:{type:String,required:!0,default:""}},PU=["selected"],HU={class:"checkbox-name"},RU=o.defineComponent({__name:"CheckboxItem",props:NU,emits:["update:isSelected"],setup(e,{emit:t}){const n=e,r=o.computed(()=>(console.log(n.icon),{content:n.icon}));function a(){t("update:isSelected",!n.isSelected)}return(i,s)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:a},[n.icon?(o.openBlock(),o.createElementBlock("div",{key:0,class:"checkbox-icon",style:o.normalizeStyle(r.value)},null,4)):o.createCommentVNode("",!0),o.createElementVNode("div",HU,o.toDisplayString(n.prompt),1)],8,PU))}});const qt=M(RU,[["__scopeId","data-v-ab8b99a4"]]),VU={selectedOption:{type:Number,required:!0,default:-1},options:{type:Array,required:!0,default:[]}},KU=e=>(o.pushScopeId("data-v-d5d9745a"),e=e(),o.popScopeId(),e),$U={class:"toggle-switch"},zU=KU(()=>o.createElementVNode("div",{class:"selection"},null,-1)),WU=[zU],GU=["onClick"],jU={class:"option flex-center"},YU={class:"option-text"},qU=o.defineComponent({__name:"ToggleSwitch",props:VU,emits:["update:selectedOption"],setup(e,{emit:t}){const n=e,r=o.computed(()=>({left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${n.selectedOption})`,width:`calc((100% - calc(var(--spacing-1) * 2)) / ${n.options.length})`}));function a(s){return{cursor:n.selectedOption!=s?"pointer":"default",left:`calc(var(--spacing-1) + (100% - calc(var(--spacing-1) * 2)) / ${n.options.length} * ${s})`,width:`${1/n.options.length*100}%`}}function i(s){t("update:selectedOption",s)}return(s,A)=>(o.openBlock(),o.createElementBlock("div",$U,[o.withDirectives(o.createElementVNode("div",{class:"selection-container",style:o.normalizeStyle(r.value)},WU,4),[[o.vShow,s.selectedOption>-1]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.options,(l,c)=>(o.openBlock(),o.createElementBlock("div",{key:c,ref_for:!0,ref:"option-container",style:o.normalizeStyle(a(c)),class:"option-container",onClick:u=>i(c)},[o.createElementVNode("div",jU,[o.createElementVNode("h1",YU,o.toDisplayString(l),1)])],12,GU))),128))]))}});const nd=M(qU,[["__scopeId","data-v-d5d9745a"]]),XU={class:"checkboxes-container"},JU=o.defineComponent({__name:"FilterRanks",props:MU,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>ve().dataJson.ranks.sort((c,u)=>u.order-c.order)),i=o.reactive(n.filterArray),s=o.ref(0);o.watch(i,()=>{t("update:filterArray",i)}),o.watch(s,()=>{s.value===0?i.splice(0):s.value===1&&(i.splice(0),i.push("Platinum","Diamond","Masters"))});function A(){i.splice(0),s.value=0}function l(c){const u=i.indexOf(c);if(u===-1){i.push(c);return}i.splice(u,1)}return(c,u)=>(o.openBlock(),o.createBlock(dt,{"filter-array":i,title:o.unref(r)("general.ranks"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",XU,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,d=>(o.openBlock(),o.createBlock(qt,{key:d.nameRef,icon:`url(${d.icon})`,prompt:d.name,"is-selected":i.includes(d.nameRef),"onUpdate:isSelected":f=>l(d.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(nd,{"selected-option":s.value,"onUpdate:selectedOption":u[0]||(u[0]=d=>s.value=d),options:[o.unref(r)("general.allRanks"),o.unref(r)("general.platPlus")]},null,8,["selected-option","options"])])]),_:1},8,["filter-array","title"]))}});const kb=M(JU,[["__scopeId","data-v-af7bc2a0"]]),ZU={filterArray:{type:Array,required:!0,default:[]}},eD={isSelected:{type:Boolean,required:!0,default:!1},prompt:{type:Number,required:!0,default:""}},tD=["selected"],nD={class:"prompt"},rD=o.defineComponent({__name:"CheckboxItemManaCost",props:eD,emits:["update:isSelected"],setup(e,{emit:t}){const n=e;function r(){t("update:isSelected",!n.isSelected)}return(a,i)=>(o.openBlock(),o.createElementBlock("button",{class:"checkbox-item",selected:n.isSelected,onClick:r},[o.createVNode(el),o.createElementVNode("div",nD,o.toDisplayString(n.prompt===10?"+":n.prompt),1)],8,tD))}});const du=M(rD,[["__scopeId","data-v-2c74c2ed"]]),aD={class:"checkbox-rows-container"},iD={class:"top-row checkbox-items-container"},sD={class:"bottom-row checkbox-items-container"},oD=o.defineComponent({__name:"FilterManaCost",props:ZU,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=Array(6).fill(1).map((l,c)=>c),i=Array(5).fill(1).map((l,c)=>c+6);function s(l){let c;n.filterArray.includes(l)?c=n.filterArray.filter(u=>u!==l):c=[...n.filterArray,l],t("update:filterArray",c)}function A(){t("update:filterArray",[])}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":n.filterArray,title:o.unref(r)("general.manaCost"),"onClear:filterArray":A},{default:o.withCtx(()=>[o.createElementVNode("div",aD,[o.createElementVNode("div",iD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),u=>(o.openBlock(),o.createBlock(du,{key:u,class:"checkbox-item-mana-cost",prompt:u,"is-selected":n.filterArray.includes(u),"onUpdate:isSelected":d=>s(u)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))]),o.createElementVNode("div",sD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(i),u=>(o.openBlock(),o.createBlock(du,{key:u,class:"checkbox-item-mana-cost",prompt:u,"is-selected":n.filterArray.includes(u),"onUpdate:isSelected":d=>s(u)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])])]),_:1},8,["filter-array","title"]))}});const Fm=M(oD,[["__scopeId","data-v-a94d786a"]]),AD={filterArray:{type:Array,required:!0,default:[]}},lD={class:"checkboxes-container"},Im=o.defineComponent({__name:"FilterRarities",props:AD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>ve().dataJson.rarities.filter(l=>l.nameRef!=="None")),i=o.reactive(n.filterArray);o.watch(i,()=>{t("update:filterArray",i)});function s(){i.splice(0)}function A(l){const c=i.indexOf(l);if(c===-1){i.push(l);return}i.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":i,title:o.unref(r)("general.rarities"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",lD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,u=>(o.openBlock(),o.createBlock(qt,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":i.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),cD={filterArray:{type:Array,required:!0,default:[]}},uD={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},dD=["src"],fD={class:"multiselect-tag-remove"},pD=["onMousedown"],hD=["src"],Tm=o.defineComponent({__name:"FilterSets",props:cD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray);o.watch(a,()=>{t("update:filterArray",a.value)});function i(){a.value.splice(0)}return(s,A)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a.value,title:o.unref(r)("general.sets"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":A[0]||(A[0]=l=>a.value=l),placeholder:o.unref(r)("general.sets"),class:"runeterra-select",mode:"tags",options:o.unref(ve)().dataJson.sets,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:l,handleTagRemove:c})=>[o.createElementVNode("span",uD,[o.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,dD),o.createElementVNode("span",fD,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(u=>c(l,u),["prevent"])},null,40,pD)])])]),option:o.withCtx(({option:l})=>[o.createElementVNode("img",{class:"label-icon",src:l.icon},null,8,hD),o.createTextVNode(" "+o.toDisplayString(l.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),mD={filterArray:{type:Array,required:!0,default:[]}},gD={class:"multiselect-tag",tabindex:"-1","aria-label":"{{option.name}} ❎"},vD=["src"],yD={class:"multiselect-tag-remove"},BD=["onMousedown"],wD=["src"],Um=o.defineComponent({__name:"FilterKeywords",props:mD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray),i=o.computed(()=>ve().dataJson.keywords.filter(A=>A.showInFilter));o.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a.value,title:o.unref(r)("general.keywords"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createVNode(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:o.unref(r)("general.keywords"),class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},{tag:o.withCtx(({option:c,handleTagRemove:u})=>[o.createElementVNode("span",gD,[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,vD),o.createElementVNode("span",yD,[o.createElementVNode("span",{class:"multiselect-tag-remove-icon",onMousedown:o.withModifiers(d=>u(c,d),["prevent"])},null,40,BD)])])]),option:o.withCtx(({option:c})=>[o.createElementVNode("img",{class:"label-icon",src:c.icon},null,8,wD),o.createTextVNode(" "+o.toDisplayString(c.name),1)]),_:1},8,["modelValue","placeholder","options"])]),_:1},8,["filter-array","title"]))}}),bD={filterArray:{type:Array,required:!0,default:[]}},_D={class:"checkboxes-container"},to=o.defineComponent({__name:"FilterServers",props:bD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterArray);o.watch(a,()=>{t("update:filterArray",a)});function i(){a.splice(0)}function s(A){const l=a.indexOf(A);if(l===-1){a.push(A);return}a.splice(l,1)}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a,title:o.unref(r)("general.servers"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",_D,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(ve)().dataJson.servers,c=>(o.openBlock(),o.createBlock(qt,{key:c.nameRef,prompt:c.name,"is-selected":a.includes(c.nameRef),"onUpdate:isSelected":u=>s(c.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),CD={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},kD={class:"checkboxes-container"},ED=o.defineComponent({__name:"FilterTime",props:CD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterArray),i=o.ref(null),s=o.ref(null),A=a.find(p=>p.startsWith("patch_"));A&&(i.value=A);const l=a.find(p=>p.startsWith("season_"));l&&(s.value=l);const c=o.computed(()=>n.allowZero&&a.filter(p=>p.startsWith("patch")).length>0||!n.allowZero&&a.filter(p=>!p.startsWith("patch")).length===0);o.watch(a,()=>{t("update:filterArray",a)}),o.watch(i,(p,h)=>{u(p,h)}),o.watch(s,(p,h)=>{u(p,h)});function u(p,h){console.log(h,p),h&&a.splice(a.indexOf(h),1),p&&a.push(p),console.log(a)}function d(){a.splice(0),i.value=null,s.value=null}function f(p){a.splice(0),(n.allowZero||p!=="patch")&&a.push(p),p==="patch"&&i.value&&a.push(i.value),p==="season"&&s.value&&a.push(s.value)}return(p,h)=>{const g=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(dt,{class:"side-panel-section-pane","filter-array":a,title:o.unref(r)("general.time"),"onClear:filterArray":d},{default:o.withCtx(()=>{var B;return[o.createElementVNode("div",kD,[o.createVNode(qt,{prompt:o.unref(r)("general.patch"),"is-selected":c.value,"onUpdate:isSelected":h[0]||(h[0]=m=>f("patch"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.season"),"is-selected":a.includes("season"),"onUpdate:isSelected":h[1]||(h[1]=m=>f("season"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.pastDays",7),"is-selected":a.includes("7days"),"onUpdate:isSelected":h[2]||(h[2]=m=>f("7days"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.pastDays",3),"is-selected":a.includes("3days"),"onUpdate:isSelected":h[3]||(h[3]=m=>f("3days"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.pastHours",24),"is-selected":a.includes("24hours"),"onUpdate:isSelected":h[4]||(h[4]=m=>f("24hours"))},null,8,["prompt","is-selected"]),o.createVNode(qt,{prompt:o.unref(r)("general.pastHour"),"is-selected":a.includes("1hour"),"onUpdate:isSelected":h[5]||(h[5]=m=>f("1hour"))},null,8,["prompt","is-selected"]),c.value?(o.openBlock(),o.createBlock(o.unref(Wt),{key:0,modelValue:i.value,"onUpdate:modelValue":h[6]||(h[6]=m=>i.value=m),options:o.unref(ve)().dataJson.patches,searchable:!0,label:"name","value-prop":"nameRef",placeholder:o.unref(r)("general.patches")},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0),a.includes("season")?(o.openBlock(),o.createBlock(o.unref(Wt),{key:1,modelValue:s.value,"onUpdate:modelValue":h[7]||(h[7]=m=>s.value=m),options:o.unref(ve)().dataJson.seasons,searchable:!0,label:"name","value-prop":"nameRef",placeholder:o.unref(r)("general.seasons")},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0),(B=o.unref(Kt)().user)!=null&&B.isPremium?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(g,{key:2,to:o.unref(ge)().callbacks.premiumLinkCallback(),class:"premium-barrier"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(r)("general.premiumBarrier")),1)]),_:1},8,["to"]))])]}),_:1},8,["filter-array","title"])}}});const Wi=M(ED,[["__scopeId","data-v-e91493d6"]]),SD={filterArray:{type:Array,required:!0,default:[]}},xD={cardCodes:{type:[Array,String,null],required:!0,default:[]},filterCallback:{type:Function,required:!1,default:()=>!0},mode:{type:String,required:!1,default:"tags"}},FD=o.defineComponent({__name:"CardMultiselect",props:xD,emits:["update:cardCodes"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.cardCodes),i=o.computed(()=>{let s=Rw().cardJson.sort((A,l)=>A.name.localeCompare(l.name));return n.filterCallback&&(s=s.filter(n.filterCallback)),s});return o.watch(a,()=>{t("update:cardCodes",a.value)}),(s,A)=>(o.openBlock(),o.createBlock(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":A[0]||(A[0]=l=>a.value=l),class:"multiselect",placeholder:o.unref(r)("cards.cards"),mode:n.mode,options:i.value,infinite:!0,limit:10,searchable:!0,label:"name","value-prop":"cardCode"},null,8,["modelValue","placeholder","mode","options"]))}});const Dm=M(FD,[["__scopeId","data-v-e46bd34a"]]),rd=o.defineComponent({__name:"FilterCardCodes",props:SD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray);o.watch(a,()=>{console.log("watch(filterArray)",a.value),t("update:filterArray",a.value)});function i(){a.value.splice(0)}function s(A){return A.collectible}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a.value,title:o.unref(r)("cards.cards"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createVNode(Dm,{cardCodes:a.value,"onUpdate:cardCodes":l[0]||(l[0]=c=>a.value=c),mode:"tags","filter-callback":s},null,8,["cardCodes"])]),_:1},8,["filter-array","title"]))}}),ID={filterArray:{type:Array,required:!0,default:[]}},TD={class:"checkboxes-container"},UD=o.defineComponent({__name:"FilterRegions",props:ID,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterArray),i=o.ref([]);i.value.push(...a.filter(l=>mA(l))),o.watch(a,()=>{t("update:filterArray",a)}),o.watch(i,(l,c)=>{let u=l.find(d=>!c.includes(d));if(u||(u=c.find(d=>!l.includes(d)),u))return A(u)});function s(){a.splice(0),i.value.slice(0)}function A(l){const c=a.indexOf(l);if(c===-1){a.push(l),l==="Runeterra"&&a.push(...i.value);return}if(a.splice(c,1),l==="Runeterra")for(let u=0;u<a.length;u++)mA(a[u])&&a.splice(u--,1)}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a,title:o.unref(r)("general.regions"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",TD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(ve)().dataJson.regions,u=>(o.openBlock(),o.createBlock(qt,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":a.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128)),o.createVNode(qt,{class:"runeterra",prompt:"Runeterra","is-selected":a.includes("Runeterra"),"onUpdate:isSelected":c[0]||(c[0]=u=>A("Runeterra"))},null,8,["is-selected"]),a.includes("Runeterra")?(o.openBlock(),o.createBlock(o.unref(Wt),{key:0,modelValue:i.value,"onUpdate:modelValue":c[1]||(c[1]=u=>i.value=u),class:"runeterra-select",mode:"tags",options:o.unref(ve)().dataJson.runeterraChampions,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","options"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const tl=M(UD,[["__scopeId","data-v-c93a9e90"]]),DD={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},QD={filterArray:{type:Array,required:!0,default:[]},allowZero:{type:Boolean,required:!1,default:!1}},LD={class:"checkboxes-container"},OD=o.defineComponent({__name:"FilterFormat",props:QD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>{const d=ve().dataJson.queues;return Object.values(ve().dataJson.formats).filter(f=>f.availableQueues.some(p=>!d[p].excludeInMassFilter))}),i=o.computed(()=>a.value.filter(d=>!d.inDropdown)),s=o.computed(()=>a.value.filter(d=>d.inDropdown)),A=o.reactive(n.filterArray),l=o.ref(null);o.onMounted(()=>{A.length>0&&s.value.map(d=>d.nameRef).includes(A[0])&&(l.value=A[0])}),o.watch(A,()=>{t("update:filterArray",A),A.length===0&&(l.value=null)}),o.watch(l,()=>{l.value&&(A.splice(0),A.push(l.value))});function c(d){l.value=null,A.splice(0),d!==Jn.Standard&&A.push(d)}function u(){A.splice(0)}return(d,f)=>(o.openBlock(),o.createBlock(dt,{"filter-array":A,title:o.unref(r)("general.format"),"onClear:filterArray":u},{default:o.withCtx(()=>[o.createElementVNode("div",LD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createBlock(qt,{prompt:p.name,"is-selected":A.includes(p.nameRef)||!n.allowZero&&p.nameRef==="Standard"&&A.length===0,"onUpdate:isSelected":h=>c(p.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),256)),s.value.length>0?(o.openBlock(),o.createBlock(o.unref(Wt),{key:0,modelValue:l.value,"onUpdate:modelValue":f[0]||(f[0]=p=>l.value=p),options:s.value,searchable:!1,placeholder:o.unref(r)("general.otherFormats"),label:"name","value-prop":"nameRef",onClear:u},null,8,["modelValue","options","placeholder"])):o.createCommentVNode("",!0)])]),_:1},8,["filter-array","title"]))}});const nl=M(OD,[["__scopeId","data-v-22de9b40"]]),MD={filterArray:{type:Array,required:!0,default:[]},availableQueues:{type:Array,required:!0,default:[]}},rl=o.defineComponent({__name:"FilterQueues",props:MD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.filterArray),i=o.computed(()=>Object.values(ve().dataJson.queues).filter(A=>n.availableQueues.includes(A.nameRef)&&!A.excludeInMassFilter));o.watch(a,()=>{t("update:filterArray",a.value)});function s(){a.value.splice(0)}return(A,l)=>n.availableQueues.length>1?(o.openBlock(),o.createBlock(dt,{key:0,"filter-array":a.value,title:o.unref(r)("general.queues"),"onClear:filterArray":s},{default:o.withCtx(()=>{var c,u;return[o.createVNode(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":l[0]||(l[0]=d=>a.value=d),placeholder:(u=(c=i.value)==null?void 0:c.find(d=>d.nameRef===o.unref(L2).Ranked))==null?void 0:u.name,class:"runeterra-select",mode:"tags",options:i.value,searchable:!0,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])]}),_:1},8,["filter-array","title"])):o.createCommentVNode("",!0)}}),ND={filterObject:{type:Object,required:!1,default:void 0},showClearAll:{type:Boolean,required:!1,default:!0}},PD={class:"filter"},HD={key:0,class:"top"},RD=o.defineComponent({__name:"SidePanel",props:ND,emits:["clear:filterObject"],setup(e,{emit:t}){const n=e,r=o.computed(()=>n.filterObject&&Object.values(n.filterObject).some(i=>i.length>0)?"clickable":null);function a(){t("clear:filterObject")}return(i,s)=>{const A=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",PD,[n.showClearAll&&n.filterObject?(o.openBlock(),o.createElementBlock("div",HD,[o.withDirectives(o.createElementVNode("p",{class:o.normalizeClass(["clear",r.value]),onClick:a},null,2),[[A,"general.clearAll"]])])):o.createCommentVNode("",!0),o.renderSlot(i.$slots,"default",{},void 0,!0)])}}});const no=M(RD,[["__scopeId","data-v-6a93fcc1"]]),Eb=o.defineComponent({__name:"FilterDecks",props:DD,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);o.watch(r,()=>{t("update:filters",r)});const a=o.computed(()=>{var s;return(s=ve().dataJson.formats[r.formatFilters[0]??"Standard"])==null?void 0:s.availableQueues});function i(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,A)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":i},{default:o.withCtx(()=>[o.createVNode(tl,{"filter-array":r.regionFilters,"onUpdate:filterArray":A[0]||(A[0]=l=>r.regionFilters=l)},null,8,["filter-array"]),o.createVNode(rd,{"filter-array":r.cardFilters,"onUpdate:filterArray":A[1]||(A[1]=l=>r.cardFilters=l)},null,8,["filter-array"]),o.createVNode(nl,{"filter-array":r.formatFilters,"onUpdate:filterArray":A[2]||(A[2]=l=>r.formatFilters=l)},null,8,["filter-array"]),n.includeDataFilters?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(rl,{"filter-array":r.queueFilters,"onUpdate:filterArray":A[3]||(A[3]=l=>r.queueFilters=l),"available-queues":a.value},null,8,["filter-array","available-queues"]),o.createVNode(eo,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":A[4]||(A[4]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),o.createVNode(Wi,{"filter-array":r.timeFilters,"onUpdate:filterArray":A[5]||(A[5]=l=>r.timeFilters=l)},null,8,["filter-array"]),o.createVNode(to,{"filter-array":r.serverFilters,"onUpdate:filterArray":A[6]||(A[6]=l=>r.serverFilters=l)},null,8,["filter-array"])],64)):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),VD={filters:{type:Object,required:!0,default:{cardFilters:[],regionFilters:[],sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},includeDataFilters:{type:Boolean,required:!1,default:!0}},KD={filterArray:{type:Array,required:!0,default:[]},placeholder:{type:String,required:!1},title:{type:String,required:!1,default:"Text"}},$D=["placeholder"],zD=o.defineComponent({__name:"FilterText",props:KD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,r=o.ref(n.filterArray),a=o.ref("");let i=setTimeout(()=>{},0);r.value.length>0&&(a.value=r.value[0]),o.watch(r,()=>{t("update:filterArray",r.value)}),o.watch(a,()=>{i&&clearTimeout(i),i=setTimeout(()=>{r.value.splice(0),a.value&&r.value.push(a.value)},1e3)});function s(){r.value.splice(0),a.value=""}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":r.value,title:n.title,"onClear:filterArray":s},{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=c=>a.value=c),placeholder:n.placeholder,type:"text"},null,8,$D),[[o.vModelText,a.value]])]),_:1},8,["filter-array","title"]))}});const IA=M(zD,[["__scopeId","data-v-e9c34cae"]]),Sb=o.defineComponent({__name:"FilterProfile",props:VD,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filters);o.watch(a,()=>{t("update:filters",a)});const i=o.computed(()=>{var A;return a.formatFilters.length===0?[]:(A=ve().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:A.availableQueues});function s(){for(const[,A]of Object.entries(a))A.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":s},{default:o.withCtx(()=>[o.createVNode(tl,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.regionFilters=c)},null,8,["filter-array"]),o.createVNode(rd,{"filter-array":a.cardFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.cardFilters=c)},null,8,["filter-array"]),o.createVNode(IA,{"filter-array":a.deckCodeFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>a.deckCodeFilters=c),placeholder:o.unref(r)("general.deckCode"),title:o.unref(r)("general.deckCode")},null,8,["filter-array","placeholder","title"]),o.createVNode(IA,{"filter-array":a.playerFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>a.playerFilters=c),placeholder:o.unref(r)("general.players"),title:o.unref(r)("general.players")},null,8,["filter-array","placeholder","title"]),o.createVNode(eo,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>a.sampleSizeFilters=c)},null,8,["filter-array"]),o.createVNode(nl,{"allow-zero":!0,"filter-array":a.formatFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>a.formatFilters=c)},null,8,["filter-array"]),o.createVNode(rl,{"filter-array":a.queueFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>a.queueFilters=c),"available-queues":i.value},null,8,["filter-array","available-queues"]),o.createVNode(Wi,{"allow-zero":!0,"filter-array":a.timeFilters,"onUpdate:filterArray":l[7]||(l[7]=c=>a.timeFilters=c)},null,8,["filter-array"])]),_:1},8,["filter-object"]))}}),WD={filterValue:{type:Object,required:!0,default:{attribute:"attack",equality:">",number:0}}},GD={class:"advanced-filter-item"},jD=["value"],YD=o.defineComponent({__name:"AdvancedFilterItem",props:WD,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=[{value:"attack",label:r("cards.attack")},{value:"health",label:r("cards.health")},{value:"cost",label:r("cards.cost")},{value:"quantityOwned",label:r("cards.quantityOwned")}],i=o.ref(n.filterValue.attribute);o.watch(i,()=>{t("update:filterValue",{attribute:i.value,equality:n.filterValue.equality,number:n.filterValue.number})});function s(){let l=">";n.filterValue.equality===">"?l="<":n.filterValue.equality==="<"&&(l="="),t("update:filterValue",{attribute:n.filterValue.attribute,equality:l,number:n.filterValue.number})}function A(l){t("update:filterValue",{attribute:n.filterValue.attribute,equality:n.filterValue.equality,number:Number(l.target.value)})}return(l,c)=>(o.openBlock(),o.createElementBlock("div",GD,[o.createVNode(o.unref(Wt),{modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=u=>i.value=u),class:"advanced-attribute",options:a,"can-clear":!1,label:"label","value-prop":"value"},null,8,["modelValue"]),o.createElementVNode("div",{class:"equality-button",onClick:s},o.toDisplayString(n.filterValue.equality),1),o.createElementVNode("input",{type:"number",class:"equality-number",value:n.filterValue.number,onInput:A},null,40,jD)]))}});const Qm=M(YD,[["__scopeId","data-v-eb2d535d"]]),qD={filterValue:{type:Array,required:!0,default:[]}},XD=o.defineComponent({__name:"FilterAdvanced",props:qD,emits:["update:filterValue"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterValue);o.watch(a,()=>{t("update:filterValue",a)});function i(){a.splice(0)}function s(){a.push({attribute:"attack",equality:">",number:0})}return(A,l)=>(o.openBlock(),o.createBlock(dt,{class:"advanced-filters","filter-array":a,title:o.unref(r)("general.advanced"),"onClear:filterArray":i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a,(c,u)=>(o.openBlock(),o.createBlock(Qm,{key:u,"filter-value":a[u],"onUpdate:filterValue":d=>a[u]=d,class:"advanced-filter-item"},null,8,["filter-value","onUpdate:filterValue"]))),128)),o.createElementVNode("div",{class:"new-advanced-filter",onClick:s},o.toDisplayString(o.unref(r)("general.newAdvancedFilter")),1)]),_:1},8,["filter-array","title"]))}});const Lm=M(XD,[["__scopeId","data-v-6c23ee29"]]),JD={filterArray:{type:Array,required:!0,default:[]}},ZD={class:"checkboxes-container"},Om=o.defineComponent({__name:"FilterTypes",props:JD,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>ve().dataJson.types.filter(l=>["Unit","Spell","Landmark","Equipment"].includes(l.nameRef))),i=o.reactive(n.filterArray);o.watch(i,()=>{t("update:filterArray",i)});function s(){i.splice(0)}function A(l){const c=i.indexOf(l);if(c===-1){i.push(l);return}i.splice(c,1)}return(l,c)=>(o.openBlock(),o.createBlock(dt,{"filter-array":n.filterArray,title:o.unref(r)("general.types"),"onClear:filterArray":s},{default:o.withCtx(()=>[o.createElementVNode("div",ZD,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,u=>(o.openBlock(),o.createBlock(qt,{key:u.nameRef,icon:`url(${u.icon})`,prompt:u.name,"is-selected":i.includes(u.nameRef),"onUpdate:isSelected":d=>A(u.nameRef)},null,8,["icon","prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),eQ={filters:{type:Object,required:!0,default:{advancedFilters:[],regionFilters:[],manaCostFilters:[],typeFilters:[],rarityFilters:[],setFilters:[],keywordFilters:[],textFilters:[],cardFormatFilters:[]}}},tQ={filterArray:{type:Array,required:!0,default:[]}},nQ={class:"checkboxes-container"},rQ=o.defineComponent({__name:"FilterCardFormats",props:tQ,emits:["update:filterArray"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filterArray);o.watch(a,()=>{t("update:filterArray",a)});function i(){a.splice(0)}function s(A){const l=a.indexOf(A);if(l===-1){a.push(A);return}a.splice(l,1)}return(A,l)=>(o.openBlock(),o.createBlock(dt,{"filter-array":a,title:o.unref(r)("general.format"),"onClear:filterArray":i},{default:o.withCtx(()=>[o.createElementVNode("div",nQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(ve)().dataJson.cardFormats.filter(c=>[o.unref(Jn).Standard,o.unref(Jn).Eternal].includes(c.nameRef)),c=>(o.openBlock(),o.createBlock(qt,{key:c.nameRef,prompt:c.name,"is-selected":a.includes(c.nameRef),"onUpdate:isSelected":u=>s(c.nameRef)},null,8,["prompt","is-selected","onUpdate:isSelected"]))),128))])]),_:1},8,["filter-array","title"]))}}),xb=o.defineComponent({__name:"FilterCards",props:eQ,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filters);o.watch(a,()=>{t("update:filters",a)});const i=o.computed(()=>{var A;return"formatFilters"in a?(A=ve().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:A.availableQueues:[]});function s(){for(const[,A]of Object.entries(a))A.splice(0)}return(A,l)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":s},{default:o.withCtx(()=>[o.createVNode(o.unref(IA),{"filter-array":a.textFilters,"onUpdate:filterArray":l[0]||(l[0]=c=>a.textFilters=c),placeholder:o.unref(r)("general.text"),title:o.unref(r)("general.text")},null,8,["filter-array","placeholder","title"]),o.createVNode(Fm,{"filter-array":a.manaCostFilters,"onUpdate:filterArray":l[1]||(l[1]=c=>a.manaCostFilters=c)},null,8,["filter-array"]),"cardFormatFilters"in a?(o.openBlock(),o.createBlock(rQ,{key:0,"filter-array":a.cardFormatFilters,"onUpdate:filterArray":l[2]||(l[2]=c=>a.cardFormatFilters=c)},null,8,["filter-array"])):o.createCommentVNode("",!0),o.createVNode(tl,{"filter-array":a.regionFilters,"onUpdate:filterArray":l[3]||(l[3]=c=>a.regionFilters=c)},null,8,["filter-array"]),o.createVNode(Om,{"filter-array":a.typeFilters,"onUpdate:filterArray":l[4]||(l[4]=c=>a.typeFilters=c)},null,8,["filter-array"]),o.createVNode(Im,{"filter-array":a.rarityFilters,"onUpdate:filterArray":l[5]||(l[5]=c=>a.rarityFilters=c)},null,8,["filter-array"]),o.createVNode(Tm,{"filter-array":a.setFilters,"onUpdate:filterArray":l[6]||(l[6]=c=>a.setFilters=c)},null,8,["filter-array"]),o.createVNode(Um,{"filter-array":a.keywordFilters,"onUpdate:filterArray":l[7]||(l[7]=c=>a.keywordFilters=c)},null,8,["filter-array"]),o.createVNode(Lm,{"filter-value":a.advancedFilters,"onUpdate:filterValue":l[8]||(l[8]=c=>a.advancedFilters=c)},null,8,["filter-value"]),"serverFilters"in a?(o.openBlock(),o.createBlock(o.unref(to),{key:1,"filter-array":a.serverFilters,"onUpdate:filterArray":l[9]||(l[9]=c=>a.serverFilters=c)},null,8,["filter-array"])):o.createCommentVNode("",!0),"timeFilters"in a?(o.openBlock(),o.createBlock(Wi,{key:2,"filter-array":a.timeFilters,"onUpdate:filterArray":l[10]||(l[10]=c=>a.timeFilters=c)},null,8,["filter-array"])):o.createCommentVNode("",!0),"formatFilters"in a?(o.openBlock(),o.createBlock(nl,{key:3,"filter-array":a.formatFilters,"onUpdate:filterArray":l[11]||(l[11]=c=>a.formatFilters=c)},null,8,["filter-array"])):o.createCommentVNode("",!0),"queueFilters"in a?(o.openBlock(),o.createBlock(rl,{key:4,"filter-array":a.queueFilters,"onUpdate:filterArray":l[12]||(l[12]=c=>a.queueFilters=c),"available-queues":i.value},null,8,["filter-array","available-queues"])):o.createCommentVNode("",!0)]),_:1},8,["filter-object"]))}}),aQ={regionRef:{type:String,required:!0,default:"Ionia"}},iQ={text:{type:String,required:!0,default:""}},sQ=["innerHTML"],oQ=o.defineComponent({__name:"TippyText",props:iQ,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:"tippy-text",innerHTML:t.text},null,8,sQ))}});const ad=M(oQ,[["__scopeId","data-v-715107fe"]]),AQ={class:"region-item"},lQ=["alt","src"],cQ=o.defineComponent({__name:"RegionItem",props:aQ,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.computed(()=>ve().dataJson.regions.find(i=>i.nameRef==t.regionRef)??ve().dataJson.runeterraChampions.find(i=>i.nameRef===t.regionRef));return o.onMounted(()=>{qe(n.value,{content:r.value,arrow:!0})}),(i,s)=>{var A,l,c;return o.openBlock(),o.createElementBlock("div",AQ,[o.createElementVNode("img",{ref_key:"regionImg",ref:n,alt:(A=a.value)==null?void 0:A.name,src:(l=a.value)==null?void 0:l.icon,class:"region-img"},null,8,lQ),o.createElementVNode("div",{ref_key:"regionTippy",ref:r},[o.createVNode(ad,{text:(c=a.value)==null?void 0:c.name},null,8,["text"])],512)])}}});const al=M(cQ,[["__scopeId","data-v-3d756f50"]]),uQ={deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},cards:{type:Array,required:!1},describeRegions:{type:Boolean,required:!1,default:!1}},dQ={class:"regions-line"},fQ={key:0,class:"describe-regions"},pQ={class:"lines"},hQ=o.defineComponent({__name:"RegionsLine",props:uQ,setup(e){const t=e,{t:n}=J(),r=o.computed(()=>t.deck?t.deck:Bt(t.deckCode)),a=o.computed(()=>t.cards?t.cards:Zt(r.value)),i=o.computed(()=>{const A={};for(const l of Ku(r.value))A[l]=0;for(const l of a.value)for(const c of l.regionRefs)c in A&&(A[c]+=r.value[l.cardCode]);return A});function s(A,l){return{flexGrow:A,backgroundColor:`var(--color-${l}, var(--color-Runeterra))`}}return(A,l)=>(o.openBlock(),o.createElementBlock("div",dQ,[t.describeRegions?(o.openBlock(),o.createElementBlock("div",fQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,class:"region-description"},[o.createVNode(al,{"region-ref":u,class:"icon"},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString(`${c} ${o.unref(n)("general.cards")}`),1)]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",pQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(c,u)=>(o.openBlock(),o.createElementBlock("div",{key:u,style:o.normalizeStyle(s(c,u)),class:"region-line"},null,4))),128))])]))}});const Mm=M(hQ,[["__scopeId","data-v-f1f94f8b"]]),mQ={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardCode:{type:String,required:!0,default:"01IO001"},toggledStats:{type:Object,required:!0,default:{matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!1,kept:!1,drawnWinrate:!1,turnsHeld:!1,turnPlayed:!1}},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},region:{type:String,required:!0,default:""},wins:{type:Number,required:!0,default:1},inclusion:{type:Number,required:!0,default:.5},avgCopies:{type:Number,required:!0,default:1},mulliganWinrate:{type:Number,required:!1,default:void 0},keptInMulligan:{type:Number,required:!1,default:void 0},drawnWinrate:{type:Number,required:!1,default:void 0},turnsHeld:{type:Number,required:!1,default:void 0},turnPlayed:{type:Number,required:!1,default:void 0}},gQ={class:"cards-row-background-wrapper"},vQ={class:"cards-row-background"},yQ={class:"cards-row wrapper"},BQ={key:0,class:"column-content"},wQ={key:2,class:"column-content"},bQ={key:3,class:"column-content"},_Q={key:5,class:"column-content"},CQ={key:7,class:"column-content"},kQ={key:8,class:"column-content"},EQ=o.defineComponent({__name:"CardsRow",props:mQ,setup(e){const t=e,n=o.computed(()=>["",ge().callbacks.cardImageCallback(t.cardCode,gt.Banner)]);return(r,a)=>{const i=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(i,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"cards-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",gQ,[o.createElementVNode("div",vQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,s=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${s})`})},null,4))),128))])]),o.createElementVNode("div",yQ,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:a[0]||(a[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode($t,{class:"card-slice-item","card-code-prop":t.cardCode,"maintain-aspect-ratio":!1,color:`var(--color-${t.region}-rgb, var(--color-primary-2-rgb))`,"router-link":t.routerLink},null,8,["card-code-prop","color","router-link"])]),t.toggledStats.matches?(o.openBlock(),o.createElementBlock("div",BQ,o.toDisplayString(o.unref(Ce)(t.matches)),1)):o.createCommentVNode("",!0),t.toggledStats.winrate?(o.openBlock(),o.createElementBlock("div",{key:1,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,2,3)+"%"),5)):o.createCommentVNode("",!0),t.toggledStats.inclusion?(o.openBlock(),o.createElementBlock("div",wQ,o.toDisplayString(o.unref(Ce)(t.inclusion*100,2,3)+"%"),1)):o.createCommentVNode("",!0),t.toggledStats.avgCopies?(o.openBlock(),o.createElementBlock("div",bQ,o.toDisplayString(o.unref(Ce)(t.avgCopies,2,3)),1)):o.createCommentVNode("",!0),t.toggledStats.mulliganWinrate?(o.openBlock(),o.createElementBlock("div",{key:4,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.mulliganWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.mulliganWinrate?o.unref(Ce)(t.mulliganWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.keptInMulligan?(o.openBlock(),o.createElementBlock("div",_Q,o.toDisplayString(t.keptInMulligan?o.unref(Ce)(t.keptInMulligan*100,2,3)+"%":"-"),1)):o.createCommentVNode("",!0),t.toggledStats.drawnWinrate?(o.openBlock(),o.createElementBlock("div",{key:6,class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.drawnWinrate,t.wins/t.matches)})`})},o.toDisplayString(t.drawnWinrate?o.unref(Ce)(t.drawnWinrate*100,2,3)+"%":"-"),5)):o.createCommentVNode("",!0),t.toggledStats.turnPlayed?(o.openBlock(),o.createElementBlock("div",CQ,o.toDisplayString(t.turnPlayed?o.unref(Ce)(t.turnPlayed,2,3):"-"),1)):o.createCommentVNode("",!0),t.toggledStats.turnsHeld?(o.openBlock(),o.createElementBlock("div",kQ,o.toDisplayString(t.turnsHeld?o.unref(Ce)(t.turnsHeld,2,3):"-"),1)):o.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const Nm=M(EQ,[["__scopeId","data-v-e0c98d3c"]]),SQ={cardRows:{type:Array,required:!0,default:[]},cardsRowToggle:{type:Object,requied:!0,default:{card:!0,matches:!0,winrate:!0,inclusion:!0,avgCopies:!0,mulliganWinrate:!0,keptInMulligan:!0,drawnWinrate:!0,turnsHeld:!0,turnPlayed:!0}},loading:{type:Boolean,required:!1,default:!1}};var ye=(e=>(e.UP="sort-up",e.DOWN="sort-down",e.NEITHER="sort-neither",e.NOT_SORTABLE="not-sortable",e))(ye||{});const xQ={headingItems:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}};const FQ={},IQ={class:"loader"};function TQ(e,t){return o.openBlock(),o.createElementBlock("div",IQ)}const Pm=M(FQ,[["render",TQ],["__scopeId","data-v-91218ab0"]]),UQ=e=>(o.pushScopeId("data-v-8353300c"),e=e(),o.popScopeId(),e),DQ={class:"table-wrapper"},QQ={class:"table no-scrollbar"},LQ=UQ(()=>o.createElementVNode("div",{class:"heading-background-outer"},[o.createElementVNode("div",{class:"heading-background-absolute"}),o.createElementVNode("div",{class:"heading-background-inner"})],-1)),OQ={class:"heading wrapper"},MQ=["onClick"],NQ={class:"sort-icons"},PQ={key:0,class:"no-content loading"},HQ=o.defineComponent({__name:"LargeTable",props:xQ,emits:["toggleSort"],setup(e,{emit:t}){const n=e,{t:r}=J(),a={"--background-image":`url(${ge().callbacks.cardImageCallback("01FR008",gt.Full)})`},i=o.computed(()=>n.headingItems.filter(s=>s.isShown));return(s,A)=>(o.openBlock(),o.createElementBlock("div",DQ,[o.createElementVNode("div",QQ,[LQ,o.createElementVNode("div",OQ,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,l=>(o.openBlock(),o.createElementBlock("div",{key:l.title,class:o.normalizeClass(["heading-cell column-content",l.sortDirection]),onClick:c=>t("toggleSort",l.id)},[o.createElementVNode("div",null,o.toDisplayString(l.title),1),o.createElementVNode("div",NQ,[o.createVNode(o.unref(ke),{icon:"sort-up",class:"sort-icon"}),o.createVNode(o.unref(ke),{icon:"sort-down",class:"sort-icon"})])],10,MQ))),128))]),o.renderSlot(s.$slots,"default",{},()=>[n.loading?(o.openBlock(),o.createElementBlock("div",PQ,[o.createVNode(Pm)])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"no-content no-results",style:a},[o.createElementVNode("h2",null,o.toDisplayString(o.unref(r)("general.noResults")),1),o.createElementVNode("h4",null,o.toDisplayString(o.unref(r)("general.tryAgain")),1)]))],!0)])]))}});const da=M(HQ,[["__scopeId","data-v-8353300c"]]);function Gi(e,t){const n=t.value.find(a=>a.id===e);if(!n||n.sortDirection===ye.NOT_SORTABLE)return null;const r=n.sortDirection;return RQ(t),r===ye.NEITHER?n.sortDirection=ye.DOWN:r===ye.DOWN?n.sortDirection=ye.UP:n.sortDirection=ye.DOWN,n}function RQ(e){e.value.forEach(t=>{t.sortDirection!==ye.NOT_SORTABLE&&(t.sortDirection=ye.NEITHER)})}const VQ=o.defineComponent({__name:"CardsTable",props:SQ,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=[{id:"card",isAlwaysShown:!0,isSortable:!1,title:r("general.card")},{id:"matches",isAlwaysShown:!1,isSortable:!0,title:r("general.matches")},{id:"winrate",isAlwaysShown:!1,isSortable:!0,title:r("general.winrate")},{id:"inclusion",isAlwaysShown:!1,isSortable:!0,title:r("general.inclusion")},{id:"avgCopies",isAlwaysShown:!1,isSortable:!0,title:r("general.avgCopies")},{id:"mulliganWinrate",isAlwaysShown:!1,isSortable:!0,title:r("general.mulliganWinrate")},{id:"keptInMulligan",isAlwaysShown:!1,isSortable:!0,title:r("general.keptInMulligan")},{id:"drawnWinrate",isAlwaysShown:!1,isSortable:!0,title:r("general.drawnWinrate")},{id:"turnsHeld",isAlwaysShown:!1,isSortable:!0,title:r("general.turnsHeld")},{id:"turnPlayed",isAlwaysShown:!1,isSortable:!0,title:r("general.turnPlayed")}];let i=!1;const s=o.ref(a.map(c=>{let u=ye.NEITHER;return c.isSortable||(u=ye.NOT_SORTABLE),!i&&c.isSortable&&(u=ye.DOWN,i=!0),{id:c.id,isShown:n.cardsRowToggle[c.id],sortDirection:u,title:c.title}})),A=o.computed(()=>({"--table-grid-template-columns":`repeat(${Object.values(n.cardsRowToggle).reduce((u,d)=>d?u+1:u,0)}, 1fr)`}));function l(c){const u=Gi(c,s);u&&t("sort-updated",u)}return(c,u)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":s.value,style:o.normalizeStyle(A.value),onToggleSort:l},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.cardRows,(d,f)=>(o.openBlock(),o.createBlock(Nm,{key:d.cardCode+d.region,"card-code":d.cardCode,matches:d.matches,wins:d.wins,index:f+2,"avg-copies":d.avgCopies,"drawn-winrate":d.drawnWinrate,"kept-in-mulligan":d.keptInMulligan,"mulligan-winrate":d.mulliganWinrate,inclusion:d.inclusion,"turns-held":d.turnsHeld,"turn-played":d.turnPlayed,"toggled-stats":n.cardsRowToggle,region:d.region,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(d.cardCode)},null,8,["card-code","matches","wins","index","avg-copies","drawn-winrate","kept-in-mulligan","mulligan-winrate","inclusion","turns-held","turn-played","toggled-stats","region","router-link"]))),128))]),_:1},8,["loading","heading-items","style"]))}});const Fb=M(VQ,[["__scopeId","data-v-1894b267"]]),KQ={regions:{type:Array,required:!0,default:[]}},$Q={class:"deck-highlight-regions"},zQ=o.defineComponent({__name:"DeckHighlightRegions",props:KQ,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",$Q,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.regions,a=>(o.openBlock(),o.createElementBlock("div",{key:a,class:"region-item-wrapper"},[o.createVNode(al,{class:"region-item","region-ref":a},null,8,["region-ref"])]))),128))]))}});const il=M(zQ,[["__scopeId","data-v-d28f95f4"]]),WQ={},GQ={xmlns:"http://www.w3.org/2000/svg",viewBox:"215.7 48.9 276.9 496"},jQ=o.createStaticVNode('<path fill="#146743" d="m271 136-54 90 150 316 14-50 29-312-51-130-88 86Z"></path><path fill="#419a4a" d="m356 121-75 105 86 316 14-50 29-312-54-59Z"></path><path fill="#baffb6" d="M410 180 359 50l-3 71 54 59Z"></path><path fill="#437f41" d="m359 50-88 86 10 90 75-105 3-71ZM281 360l86 182-86-316v134Z"></path><path fill="#419a4a" d="m454 332 28 33-33 85-4-13-8-85 17-20Z"></path>',5),YQ=[jQ];function qQ(e,t){return o.openBlock(),o.createElementBlock("svg",GQ,YQ)}const Hm=M(WQ,[["render",qQ]]),XQ={deck:{type:Object,required:!0,default:{}}},JQ=e=>(o.pushScopeId("data-v-25f680e9"),e=e(),o.popScopeId(),e),ZQ={class:"gems-text"},eL={class:"gems-cost-title"},tL={class:"gems-cost-value"},nL=JQ(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),rL={class:"gems-cost-title"},aL={class:"gems-cost-value"},iL=o.defineComponent({__name:"GemsCost",props:XQ,setup(e){const t=e,{t:n}=J(),r=o.ref(null),a=o.ref(null),i=o.computed(()=>nu(t.deck,!1)),s=o.computed(()=>nu(t.deck,!0));return o.onMounted(()=>{qe(r.value,{content:a.value,arrow:!0,duration:0})}),(A,l)=>{var c,u,d;return o.openBlock(),o.createElementBlock("div",{ref_key:"gemsCostDiv",ref:r,class:"gems-cost"},[o.createVNode(Hm,{class:"shards-icon"}),o.createElementVNode("div",ZQ,o.toDisplayString((c=s.value!==null?s.value:i.value)==null?void 0:c.toLocaleString()),1),o.createElementVNode("div",{ref_key:"gemsCostTippyDiv",ref:a,class:"gems-cost-tippy"},[s.value?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",eL,o.toDisplayString(o.unref(n)("deck.personalCost")),1),o.createElementVNode("div",tL,o.toDisplayString((u=s.value)==null?void 0:u.toLocaleString()),1),nL],64)):o.createCommentVNode("",!0),o.createElementVNode("div",rL,o.toDisplayString(o.unref(n)("deck.originalCost")),1),o.createElementVNode("div",aL,o.toDisplayString((d=i.value)==null?void 0:d.toLocaleString()),1)],512)],512)}}});const Rm=M(iL,[["__scopeId","data-v-25f680e9"]]),sL={class:"language-selection"},oL={class:"selection-panel"},AL=o.defineComponent({__name:"LanguageSelection",setup(e){const{locale:t,availableLocales:n}=J(),r={en:"English",de:"Deutsch",es:"Español",fr:"Français",it:"Italiano",ja:"日本語",ko:"한국어",pl:"Polski",pt:"Português",th:"ไทย",tr:"Türkçe",ru:"Русский",zh:"中文"},a=Vr.useRoute(),i=o.ref(!1),s=o.computed(()=>n.sort(l=>l===t.value?-1:1));function A(){i.value=!0}return(l,c)=>{const u=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",sL,[o.createVNode(o.unref(ke),{ref:"languageIcon",icon:"language",class:"icon",onClick:A},null,512),o.createVNode(si,{"show-modal":i.value,"onUpdate:showModal":c[0]||(c[0]=d=>i.value=d)},{default:o.withCtx(()=>[o.createElementVNode("div",oL,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,d=>(o.openBlock(),o.createBlock(u,{class:o.normalizeClass(o.unref(t)===d?"selected":""),locale:d,key:d,to:{...o.unref(a),params:{...o.unref(a).params,lang:d}}},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(r[d]),1)]),_:2},1032,["class","locale","to"]))),128))])]),_:1},8,["show-modal"])])}}});const TA=M(AL,[["__scopeId","data-v-8a6f5e0d"]]),lL={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]}},Ib={routerLink:{type:Object,required:!0,default:{path:"/404"}},cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0},ignoreCardItem:{type:Boolean,required:!1},regions:{type:Array,required:!1,default:void 0},colorOverride:{type:String,required:!1,default:void 0}},cL={class:"circle-card-item"},uL=["alt","src"],dL=o.defineComponent({__name:"CircleCardItem",props:Ib,setup(e){const t=e,n=GA(t.cardProp,t.cardCodeProp,!0),r=o.ref(null),a=o.ref(null),i=o.ref(null),s=o.ref(null),A=o.computed(()=>{var c;return ge().callbacks.cardImageCallback(((c=n.value)==null?void 0:c.cardCode)??"",gt.Icon)}),l=o.computed(()=>n.value===void 0?"--color-primary-2":yi(n.value,t.regions));return o.onMounted(()=>{t.ignoreCardItem||qe(r.value,{content:a.value,placement:"right",arrow:!0,touch:!1,duration:0,role:"card-image",onShown:c=>{const u=c.popper.innerHTML.includes("right")?"right-start":"left-start";s.value=u},onHidden:()=>{s.value=null}})}),(c,u)=>{const d=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",cL,[o.createVNode(d,{to:t.routerLink,class:"circle-card-link",onClick:u[0]||(u[0]=o.withModifiers(()=>{},["stop","prevent"]))},{default:o.withCtx(()=>{var f;return[o.createElementVNode("img",{ref_key:"circleCardImg",ref:r,alt:(f=o.unref(n))==null?void 0:f.name,src:A.value,class:"circle-card-img",style:o.normalizeStyle({borderColor:t.colorOverride??l.value})},null,12,uL)]}),_:1},8,["to"]),o.createElementVNode("div",{ref_key:"circleCardTippy",ref:a,class:"circle-card-tippy"},[!c.ignoreCardItem&&o.unref(n)?(o.openBlock(),o.createBlock(Pi,{key:0,ref_key:"cardItem",ref:i,"card-code-prop":o.unref(n).cardCode,"is-deck-builder":!1,"is-root":!0,"show-tippy-location":s.value},null,8,["card-code-prop","show-tippy-location"])):o.createCommentVNode("",!0)],512)])}}});const fa=M(dL,[["__scopeId","data-v-3ea9e838"]]),fL={cards:{type:Array,required:!1,default:void 0},cardCodes:{type:Array,required:!1,default:void 0},regions:{type:Array,required:!1,default:[]}},pL={class:"deck-highlight-cards"},hL=o.defineComponent({__name:"DeckHighlightCards",props:fL,setup(e){const t=e,n=o.computed(()=>{if(t.cards)return t.cards;if(t.cardCodes)return t.cardCodes.map(r=>on().cardJsonObject[r]).filter(r=>r!==void 0);throw new Error("Cards or CardCodes must be defined.")});return(r,a)=>(o.openBlock(),o.createElementBlock("div",pL,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:i.cardCode??s,class:"circle-card-item-wrapper"},[o.createVNode(fa,{class:"circle-card-item","card-prop":i,regions:t.regions,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(i.cardCode)},null,8,["card-prop","regions","router-link"])]))),128))]))}});const sl=M(hL,[["__scopeId","data-v-021c3530"]]),mL=o.defineComponent({__name:"ArchetypeSidePanelHighlight",props:lL,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createBlock(dt,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createVNode(il,{class:"deck-highlight-regions",regions:t.regions},null,8,["regions"]),o.createVNode(sl,{class:o.normalizeClass(["deck-highlight-cards",t.cardCodes.length===1?"single":""]),"card-codes":t.cardCodes},null,8,["class","card-codes"])]),_:1}))}});const id=M(mL,[["__scopeId","data-v-ff538f6f"]]),gL={deckcode:{type:String,required:!0,default:""},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}},builtDeckProps:{type:Object,required:!1,default:void 0}},vL={deckCode:{type:String,required:!0,default:""},info:{type:String,required:!0,default:"typeRef"}};/*!
|
|
826
826
|
* @kurkle/color v0.3.2
|
|
827
827
|
* https://github.com/kurkle/color#readme
|
|
828
828
|
* (c) 2023 Jukka Kurkela
|
|
@@ -839,7 +839,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
839
839
|
* Released under the MIT License
|
|
840
840
|
*/class rM{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,r,a){const i=n.listeners[a],s=n.duration;i.forEach(A=>A({chart:t,initial:n.initial,numSteps:s,currentStep:Math.min(r-n.start,s)}))}_refresh(){this._request||(this._running=!0,this._request=Hb.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,a)=>{if(!r.running||!r.items.length)return;const i=r.items;let s=i.length-1,A=!1,l;for(;s>=0;--s)l=i[s],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),A=!0):(i[s]=i[i.length-1],i.pop());A&&(a.draw(),this._notify(a,r,t,"progress")),i.length||(r.running=!1,this._notify(a,r,t,"complete"),r.initial=!1),n+=i.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,a)=>Math.max(r,a._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let a=r.length-1;for(;a>=0;--a)r[a].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Hr=new rM;const Q0="transparent",aM={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=C0(e||Q0),a=r.valid&&C0(t||Q0);return a&&a.valid?a.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class iM{constructor(t,n,r,a){const i=n[r];a=rt([t.to,a,i,t.from]);const s=rt([t.from,i,a]);this._active=!0,this._fn=t.fn||aM[t.type||typeof s],this._easing=eA[t.easing]||eA.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=s,this._to=a,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const a=this._target[this._prop],i=r-this._start,s=this._duration-i;this._start=r,this._duration=Math.floor(Math.max(s,t.duration)),this._total+=i,this._loop=!!t.loop,this._to=rt([t.to,n,a,t.from]),this._from=rt([t.from,a,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,a=this._prop,i=this._from,s=this._loop,A=this._to;let l;if(this._active=i!==A&&(s||n<r),!this._active){this._target[a]=A,this._notify(!0);return}if(n<0){this._target[a]=i;return}l=n/r%2,l=s&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[a]=this._fn(i,A,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let a=0;a<r.length;a++)r[a][n]()}}class tg{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!we(t))return;const n=Object.keys(pt.animation),r=this._properties;Object.getOwnPropertyNames(t).forEach(a=>{const i=t[a];if(!we(i))return;const s={};for(const A of n)s[A]=i[A];(Me(i.properties)&&i.properties||[a]).forEach(A=>{(A===a||!r.has(A))&&r.set(A,s)})})}_animateOptions(t,n){const r=n.options,a=oM(t,r);if(!a)return[];const i=this._createAnimations(a,r);return r.$shared&&sM(t.options.$animations,r).then(()=>{t.options=r},()=>{}),i}_createAnimations(t,n){const r=this._properties,a=[],i=t.$animations||(t.$animations={}),s=Object.keys(n),A=Date.now();let l;for(l=s.length-1;l>=0;--l){const c=s[l];if(c.charAt(0)==="$")continue;if(c==="options"){a.push(...this._animateOptions(t,n));continue}const u=n[c];let d=i[c];const f=r.get(c);if(d)if(f&&d.active()){d.update(f,u,A);continue}else d.cancel();if(!f||!f.duration){t[c]=u;continue}i[c]=d=new iM(f,t,c,u),a.push(d)}return a}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Hr.add(this._chart,r),!0}}function sM(e,t){const n=[],r=Object.keys(t);for(let a=0;a<r.length;a++){const i=e[r[a]];i&&i.active()&&n.push(i.wait())}return Promise.all(n)}function oM(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function L0(e,t){const n=e&&e.options||{},r=n.reverse,a=n.min===void 0?t:0,i=n.max===void 0?t:0;return{start:r?i:a,end:r?a:i}}function AM(e,t,n){if(n===!1)return!1;const r=L0(e,n),a=L0(t,n);return{top:a.end,right:r.end,bottom:a.start,left:r.start}}function lM(e){let t,n,r,a;return we(e)?(t=e.top,n=e.right,r=e.bottom,a=e.left):t=n=r=a=e,{top:t,right:n,bottom:r,left:a,disabled:e===!1}}function i_(e,t){const n=[],r=e._getSortedDatasetMetas(t);let a,i;for(a=0,i=r.length;a<i;++a)n.push(r[a].index);return n}function O0(e,t,n,r={}){const a=e.keys,i=r.mode==="single";let s,A,l,c;if(t!==null){for(s=0,A=a.length;s<A;++s){if(l=+a[s],l===n){if(r.all)continue;break}c=e.values[l],ft(c)&&(i||t===0||wr(t)===wr(c))&&(t+=c)}return t}}function cM(e){const t=Object.keys(e),n=new Array(t.length);let r,a,i;for(r=0,a=t.length;r<a;++r)i=t[r],n[r]={x:i,y:e[i]};return n}function M0(e,t){const n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function uM(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function dM(e){const{min:t,max:n,minDefined:r,maxDefined:a}=e.getUserBounds();return{min:r?t:Number.NEGATIVE_INFINITY,max:a?n:Number.POSITIVE_INFINITY}}function fM(e,t,n){const r=e[t]||(e[t]={});return r[n]||(r[n]={})}function N0(e,t,n,r){for(const a of t.getMatchingVisibleMetas(r).reverse()){const i=e[a.index];if(n&&i>0||!n&&i<0)return a.index}return null}function P0(e,t){const{chart:n,_cachedMeta:r}=e,a=n._stacks||(n._stacks={}),{iScale:i,vScale:s,index:A}=r,l=i.axis,c=s.axis,u=uM(i,s,r),d=t.length;let f;for(let p=0;p<d;++p){const h=t[p],{[l]:g,[c]:B}=h,m=h._stacks||(h._stacks={});f=m[c]=fM(a,u,g),f[A]=B,f._top=N0(f,s,!0,r.type),f._bottom=N0(f,s,!1,r.type);const v=f._visualValues||(f._visualValues={});v[A]=B}}function bf(e,t){const n=e.scales;return Object.keys(n).filter(r=>n[r].axis===t).shift()}function pM(e,t){return oi(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function hM(e,t,n){return oi(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function go(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const a of t){const i=a._stacks;if(!i||i[r]===void 0||i[r][n]===void 0)return;delete i[r][n],i[r]._visualValues!==void 0&&i[r]._visualValues[n]!==void 0&&delete i[r]._visualValues[n]}}}const _f=e=>e==="reset"||e==="none",H0=(e,t)=>t?e:Object.assign({},e),mM=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:i_(n,!0),values:null};class rr{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=M0(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&go(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),a=(d,f,p,h)=>d==="x"?f:d==="r"?h:p,i=n.xAxisID=de(r.xAxisID,bf(t,"x")),s=n.yAxisID=de(r.yAxisID,bf(t,"y")),A=n.rAxisID=de(r.rAxisID,bf(t,"r")),l=n.indexAxis,c=n.iAxisID=a(l,i,s,A),u=n.vAxisID=a(l,s,i,A);n.xScale=this.getScaleForId(i),n.yScale=this.getScaleForId(s),n.rScale=this.getScaleForId(A),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&w0(this._data,this),t._stacked&&go(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(we(n))this._data=cM(n);else if(r!==n){if(r){w0(r,this);const a=this._cachedMeta;go(a),a._parsed=[]}n&&Object.isExtensible(n)&&tO(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let a=!1;this._dataCheck();const i=n._stacked;n._stacked=M0(n.vScale,n),n.stack!==r.stack&&(a=!0,go(n),n.stack=r.stack),this._resyncElements(t),(a||i!==n._stacked)&&P0(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:a}=this,{iScale:i,_stacked:s}=r,A=i.axis;let l=t===0&&n===a.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,f;if(this._parsing===!1)r._parsed=a,r._sorted=!0,f=a;else{Me(a[t])?f=this.parseArrayData(r,a,t,n):we(a[t])?f=this.parseObjectData(r,a,t,n):f=this.parsePrimitiveData(r,a,t,n);const p=()=>d[A]===null||c&&d[A]<c[A];for(u=0;u<n;++u)r._parsed[u+t]=d=f[u],l&&(p()&&(l=!1),c=d);r._sorted=l}s&&P0(this,f)}parsePrimitiveData(t,n,r,a){const{iScale:i,vScale:s}=t,A=i.axis,l=s.axis,c=i.getLabels(),u=i===s,d=new Array(a);let f,p,h;for(f=0,p=a;f<p;++f)h=f+r,d[f]={[A]:u||i.parse(c[h],h),[l]:s.parse(n[h],h)};return d}parseArrayData(t,n,r,a){const{xScale:i,yScale:s}=t,A=new Array(a);let l,c,u,d;for(l=0,c=a;l<c;++l)u=l+r,d=n[u],A[l]={x:i.parse(d[0],u),y:s.parse(d[1],u)};return A}parseObjectData(t,n,r,a){const{xScale:i,yScale:s}=t,{xAxisKey:A="x",yAxisKey:l="y"}=this._parsing,c=new Array(a);let u,d,f,p;for(u=0,d=a;u<d;++u)f=u+r,p=n[f],c[u]={x:i.parse(Xa(p,A),f),y:s.parse(Xa(p,l),f)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,r){const a=this.chart,i=this._cachedMeta,s=n[t.axis],A={keys:i_(a,!0),values:n._stacks[t.axis]._visualValues};return O0(A,s,i.index,{mode:r})}updateRangeFromParsed(t,n,r,a){const i=r[n.axis];let s=i===null?NaN:i;const A=a&&r._stacks[n.axis];a&&A&&(a.values=A,s=O0(a,i,this._cachedMeta.index)),t.min=Math.min(t.min,s),t.max=Math.max(t.max,s)}getMinMax(t,n){const r=this._cachedMeta,a=r._parsed,i=r._sorted&&t===r.iScale,s=a.length,A=this._getOtherScale(t),l=mM(n,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=dM(A);let f,p;function h(){p=a[f];const g=p[A.axis];return!ft(p[t.axis])||u>g||d<g}for(f=0;f<s&&!(!h()&&(this.updateRangeFromParsed(c,t,p,l),i));++f);if(i){for(f=s-1;f>=0;--f)if(!h()){this.updateRangeFromParsed(c,t,p,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let a,i,s;for(a=0,i=n.length;a<i;++a)s=n[a][t.axis],ft(s)&&r.push(s);return r}getMaxOverflow(){return!1}getLabelAndValue(t){const n=this._cachedMeta,r=n.iScale,a=n.vScale,i=this.getParsed(t);return{label:r?""+r.getLabelForValue(i[r.axis]):"",value:a?""+a.getLabelForValue(i[a.axis]):""}}_update(t){const n=this._cachedMeta;this.update(t||"default"),n._clip=lM(de(this.options.clip,AM(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,n=this.chart,r=this._cachedMeta,a=r.data||[],i=n.chartArea,s=[],A=this._drawStart||0,l=this._drawCount||a.length-A,c=this.options.drawActiveElementsOnTop;let u;for(r.dataset&&r.dataset.draw(t,i,A,l),u=A;u<A+l;++u){const d=a[u];d.hidden||(d.active&&c?s.push(d):d.draw(t,i))}for(u=0;u<s.length;++u)s[u].draw(t,i)}getStyle(t,n){const r=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(r):this.resolveDataElementOptions(t||0,r)}getContext(t,n,r){const a=this.getDataset();let i;if(t>=0&&t<this._cachedMeta.data.length){const s=this._cachedMeta.data[t];i=s.$context||(s.$context=hM(this.getContext(),t,s)),i.parsed=this.getParsed(t),i.raw=a.data[t],i.index=i.dataIndex=t}else i=this.$context||(this.$context=pM(this.chart.getContext(),this.index)),i.dataset=a,i.index=i.datasetIndex=this.index;return i.active=!!n,i.mode=r,i}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",r){const a=n==="active",i=this._cachedDataOpts,s=t+"-"+n,A=i[s],l=this.enableOptionSharing&&Bn(r);if(A)return H0(A,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=a?[`${t}Hover`,"hover",t,""]:[t,""],f=c.getOptionScopes(this.getDataset(),u),p=Object.keys(pt.elements[t]),h=()=>this.getContext(r,a,n),g=c.resolveNamedOptions(f,p,h,d);return g.$shared&&(g.$shared=l,i[s]=Object.freeze(H0(g,l))),g}_resolveAnimations(t,n,r){const a=this.chart,i=this._cachedDataOpts,s=`animation-${n}`,A=i[s];if(A)return A;let l;if(a.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),f=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(f,this.getContext(t,r,n))}const c=new tg(a,l&&l.animations);return l&&l._cacheable&&(i[s]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||_f(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),a=this._sharedOptions,i=this.getSharedOptions(r),s=this.includeOptions(n,i)||i!==a;return this.updateSharedOptions(i,n,r),{sharedOptions:i,includeOptions:s}}updateElement(t,n,r,a){_f(a)?Object.assign(t,r):this._resolveAnimations(n,a).update(t,r)}updateSharedOptions(t,n,r){t&&!_f(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,a){t.active=a;const i=this.getStyle(n,a);this._resolveAnimations(n,r,a).update(t,{options:!a&&this.getSharedOptions(i)||i})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[A,l,c]of this._syncList)this[A](l,c);this._syncList=[];const a=r.length,i=n.length,s=Math.min(i,a);s&&this.parse(0,s),i>a?this._insertElements(a,i-a,t):i<a&&this._removeElements(i,a-i)}_insertElements(t,n,r=!0){const a=this._cachedMeta,i=a.data,s=t+n;let A;const l=c=>{for(c.length+=n,A=c.length-1;A>=s;A--)c[A]=c[A-n]};for(l(i),A=t;A<s;++A)i[A]=new this.dataElementType;this._parsing&&l(a._parsed),this.parse(t,n),r&&this.updateElements(i,t,n,"reset")}updateElements(t,n,r,a){}_removeElements(t,n){const r=this._cachedMeta;if(this._parsing){const a=r._parsed.splice(t,n);r._stacked&&go(r,a)}r.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[n,r,a]=t;this[n](r,a)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,n){n&&this._sync(["_removeElements",t,n]);const r=arguments.length-2;r&&this._sync(["_insertElements",t,r])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}R(rr,"defaults",{}),R(rr,"datasetElementType",null),R(rr,"dataElementType",null);function gM(e,t){if(!e._cache.$bar){const n=e.getMatchingVisibleMetas(t);let r=[];for(let a=0,i=n.length;a<i;a++)r=r.concat(n[a].controller.getAllParsedValues(e));e._cache.$bar=Pb(r.sort((a,i)=>a-i))}return e._cache.$bar}function vM(e){const t=e.iScale,n=gM(t,e.type);let r=t._length,a,i,s,A;const l=()=>{s===32767||s===-32768||(Bn(A)&&(r=Math.min(r,Math.abs(s-A)||r)),A=s)};for(a=0,i=n.length;a<i;++a)s=t.getPixelForValue(n[a]),l();for(A=void 0,a=0,i=t.ticks.length;a<i;++a)s=t.getPixelForTick(a),l();return r}function yM(e,t,n,r){const a=n.barThickness;let i,s;return Ee(a)?(i=t.min*n.categoryPercentage,s=n.barPercentage):(i=a*r,s=1),{chunk:i/r,ratio:s,start:t.pixels[e]-i/2}}function BM(e,t,n,r){const a=t.pixels,i=a[e];let s=e>0?a[e-1]:null,A=e<a.length-1?a[e+1]:null;const l=n.categoryPercentage;s===null&&(s=i-(A===null?t.end-t.start:A-i)),A===null&&(A=i+i-s);const c=i-(i-Math.min(s,A))/2*l;return{chunk:Math.abs(A-s)/2*l/r,ratio:n.barPercentage,start:c}}function wM(e,t,n,r){const a=n.parse(e[0],r),i=n.parse(e[1],r),s=Math.min(a,i),A=Math.max(a,i);let l=s,c=A;Math.abs(s)>Math.abs(A)&&(l=A,c=s),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:a,end:i,min:s,max:A}}function s_(e,t,n,r){return Me(e)?wM(e,t,n,r):t[n.axis]=n.parse(e,r),t}function R0(e,t,n,r){const a=e.iScale,i=e.vScale,s=a.getLabels(),A=a===i,l=[];let c,u,d,f;for(c=n,u=n+r;c<u;++c)f=t[c],d={},d[a.axis]=A||a.parse(s[c],c),l.push(s_(f,d,i,c));return l}function Cf(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function bM(e,t,n){return e!==0?wr(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function _M(e){let t,n,r,a,i;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(a="end",i="start"):(a="start",i="end"),{start:n,end:r,reverse:t,top:a,bottom:i}}function CM(e,t,n,r){let a=t.borderSkipped;const i={};if(!a){e.borderSkipped=i;return}if(a===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:s,end:A,reverse:l,top:c,bottom:u}=_M(e);a==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?a=c:(n._bottom||0)===r?a=u:(i[V0(u,s,A,l)]=!0,a=c)),i[V0(a,s,A,l)]=!0,e.borderSkipped=i}function V0(e,t,n,r){return r?(e=kM(e,t,n),e=K0(e,n,t)):e=K0(e,t,n),e}function kM(e,t,n){return e===t?n:e===n?t:e}function K0(e,t,n){return e==="start"?t:e==="end"?n:e}function EM(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}class Hc extends rr{parsePrimitiveData(t,n,r,a){return R0(t,n,r,a)}parseArrayData(t,n,r,a){return R0(t,n,r,a)}parseObjectData(t,n,r,a){const{iScale:i,vScale:s}=t,{xAxisKey:A="x",yAxisKey:l="y"}=this._parsing,c=i.axis==="x"?A:l,u=s.axis==="x"?A:l,d=[];let f,p,h,g;for(f=r,p=r+a;f<p;++f)g=n[f],h={},h[i.axis]=i.parse(Xa(g,c),f),d.push(s_(Xa(g,u),h,s,f));return d}updateRangeFromParsed(t,n,r,a){super.updateRangeFromParsed(t,n,r,a);const i=r._custom;i&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,i.min),t.max=Math.max(t.max,i.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const n=this._cachedMeta,{iScale:r,vScale:a}=n,i=this.getParsed(t),s=i._custom,A=Cf(s)?"["+s.start+", "+s.end+"]":""+a.getLabelForValue(i[a.axis]);return{label:""+r.getLabelForValue(i[r.axis]),value:A}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,r,a){const i=a==="reset",{index:s,_cachedMeta:{vScale:A}}=this,l=A.getBasePixel(),c=A.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:f}=this._getSharedOptions(n,a);for(let p=n;p<n+r;p++){const h=this.getParsed(p),g=i||Ee(h[A.axis])?{base:l,head:l}:this._calculateBarValuePixels(p),B=this._calculateBarIndexPixels(p,u),m=(h._stacks||{})[A.axis],v={horizontal:c,base:g.base,enableBorderRadius:!m||Cf(h._custom)||s===m._top||s===m._bottom,x:c?g.head:B.center,y:c?B.center:g.head,height:c?B.size:Math.abs(g.size),width:c?Math.abs(g.size):B.size};f&&(v.options=d||this.resolveDataElementOptions(p,t[p].active?"active":a));const w=v.options||t[p].options;CM(v,w,m,s),EM(v,w,u.ratio),this.updateElement(t[p],p,v,a)}}_getStacks(t,n){const{iScale:r}=this._cachedMeta,a=r.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),i=r.options.stacked,s=[],A=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(Ee(u)||isNaN(u))return!0};for(const l of a)if(!(n!==void 0&&A(l))&&((i===!1||s.indexOf(l.stack)===-1||i===void 0&&l.stack===void 0)&&s.push(l.stack),l.index===t))break;return s.length||s.push(void 0),s}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const a=this._getStacks(t,r),i=n!==void 0?a.indexOf(n):-1;return i===-1?a.length-1:i}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,a=[];let i,s;for(i=0,s=n.data.length;i<s;++i)a.push(r.getPixelForValue(this.getParsed(i)[r.axis],i));const A=t.barThickness;return{min:A||vM(n),pixels:a,start:r._startPixel,end:r._endPixel,stackCount:this._getStackCount(),scale:r,grouped:t.grouped,ratio:A?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:n,_stacked:r,index:a},options:{base:i,minBarLength:s}}=this,A=i||0,l=this.getParsed(t),c=l._custom,u=Cf(c);let d=l[n.axis],f=0,p=r?this.applyStack(n,l,r):d,h,g;p!==d&&(f=p-d,p=d),u&&(d=c.barStart,p=c.barEnd-c.barStart,d!==0&&wr(d)!==wr(c.barEnd)&&(f=0),f+=d);const B=!Ee(i)&&!u?i:f;let m=n.getPixelForValue(B);if(this.chart.getDataVisibility(t)?h=n.getPixelForValue(f+p):h=m,g=h-m,Math.abs(g)<s){g=bM(g,n,A)*s,d===A&&(m-=g/2);const v=n.getPixelForDecimal(0),w=n.getPixelForDecimal(1),y=Math.min(v,w),b=Math.max(v,w);m=Math.max(Math.min(m,b),y),h=m+g,r&&!u&&(l._stacks[n.axis]._visualValues[a]=n.getValueForPixel(h)-n.getValueForPixel(m))}if(m===n.getPixelForValue(A)){const v=wr(g)*n.getLineWidthForValue(A)/2;m+=v,g-=v}return{size:g,base:m,head:h,center:h+g/2}}_calculateBarIndexPixels(t,n){const r=n.scale,a=this.options,i=a.skipNull,s=de(a.maxBarThickness,1/0);let A,l;if(n.grouped){const c=i?this._getStackCount(t):n.stackCount,u=a.barThickness==="flex"?BM(t,n,a,c):yM(t,n,a,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,i?t:void 0);A=u.start+u.chunk*d+u.chunk/2,l=Math.min(s,u.chunk*u.ratio)}else A=r.getPixelForValue(this.getParsed(t)[r.axis],t),l=Math.min(s,n.min*n.ratio);return{base:A-l/2,head:A+l/2,center:A,size:l}}draw(){const t=this._cachedMeta,n=t.vScale,r=t.data,a=r.length;let i=0;for(;i<a;++i)this.getParsed(i)[n.axis]!==null&&r[i].draw(this._ctx)}}R(Hc,"id","bar"),R(Hc,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),R(Hc,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});class Rc extends rr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,r,a){const i=super.parsePrimitiveData(t,n,r,a);for(let s=0;s<i.length;s++)i[s]._custom=this.resolveDataElementOptions(s+r).radius;return i}parseArrayData(t,n,r,a){const i=super.parseArrayData(t,n,r,a);for(let s=0;s<i.length;s++){const A=n[r+s];i[s]._custom=de(A[2],this.resolveDataElementOptions(s+r).radius)}return i}parseObjectData(t,n,r,a){const i=super.parseObjectData(t,n,r,a);for(let s=0;s<i.length;s++){const A=n[r+s];i[s]._custom=de(A&&A.r&&+A.r,this.resolveDataElementOptions(s+r).radius)}return i}getMaxOverflow(){const t=this._cachedMeta.data;let n=0;for(let r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:i}=n,s=this.getParsed(t),A=a.getLabelForValue(s.x),l=i.getLabelForValue(s.y),c=s._custom;return{label:r[t]||"",value:"("+A+", "+l+(c?", "+c:"")+")"}}update(t){const n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:A}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(n,a),u=s.axis,d=A.axis;for(let f=n;f<n+r;f++){const p=t[f],h=!i&&this.getParsed(f),g={},B=g[u]=i?s.getPixelForDecimal(.5):s.getPixelForValue(h[u]),m=g[d]=i?A.getBasePixel():A.getPixelForValue(h[d]);g.skip=isNaN(B)||isNaN(m),c&&(g.options=l||this.resolveDataElementOptions(f,p.active?"active":a),i&&(g.options.radius=0)),this.updateElement(p,f,g,a)}}resolveDataElementOptions(t,n){const r=this.getParsed(t);let a=super.resolveDataElementOptions(t,n);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const i=a.radius;return n!=="active"&&(a.radius=0),a.radius+=de(r&&r._custom,i),a}}R(Rc,"id","bubble"),R(Rc,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),R(Rc,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});function SM(e,t,n){let r=1,a=1,i=0,s=0;if(t<Ze){const A=e,l=A+t,c=Math.cos(A),u=Math.sin(A),d=Math.cos(l),f=Math.sin(l),p=(w,y,b)=>DA(w,A,l,!0)?1:Math.max(y,y*n,b,b*n),h=(w,y,b)=>DA(w,A,l,!0)?-1:Math.min(y,y*n,b,b*n),g=p(0,c,d),B=p(et,u,f),m=h(Qe,c,d),v=h(Qe+et,u,f);r=(g-m)/2,a=(B-v)/2,i=-(g+m)/2,s=-(B+v)/2}return{ratioX:r,ratioY:a,offsetX:i,offsetY:s}}class _i extends rr{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){const r=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=r;else{let i=l=>+r[l];if(we(r[t])){const{key:l="value"}=this._parsing;i=c=>+Xa(r[c],l)}let s,A;for(s=t,A=t+n;s<A;++s)a._parsed[s]=i(s)}}_getRotation(){return xt(this.options.rotation-90)}_getCircumference(){return xt(this.options.circumference)}_getRotationExtents(){let t=Ze,n=-Ze;for(let r=0;r<this.chart.data.datasets.length;++r)if(this.chart.isDatasetVisible(r)&&this.chart.getDatasetMeta(r).type===this._type){const a=this.chart.getDatasetMeta(r).controller,i=a._getRotation(),s=a._getCircumference();t=Math.min(t,i),n=Math.max(n,i+s)}return{rotation:t,circumference:n-t}}update(t){const n=this.chart,{chartArea:r}=n,a=this._cachedMeta,i=a.data,s=this.getMaxBorderWidth()+this.getMaxOffset(i)+this.options.spacing,A=Math.max((Math.min(r.width,r.height)-s)/2,0),l=Math.min(VL(this.options.cutout,A),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:f,ratioY:p,offsetX:h,offsetY:g}=SM(d,u,l),B=(r.width-s)/f,m=(r.height-s)/p,v=Math.max(Math.min(B,m)/2,0),w=Qb(this.options.radius,v),y=Math.max(w*l,0),b=(w-y)/this._getVisibleDatasetWeightTotal();this.offsetX=h*w,this.offsetY=g*w,a.total=this.calculateTotal(),this.outerRadius=w-b*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-b*c,0),this.updateElements(i,0,i.length,t)}_circumference(t,n){const r=this.options,a=this._cachedMeta,i=this._getCircumference();return n&&r.animation.animateRotate||!this.chart.getDataVisibility(t)||a._parsed[t]===null||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*i/Ze)}updateElements(t,n,r,a){const i=a==="reset",s=this.chart,A=s.chartArea,c=s.options.animation,u=(A.left+A.right)/2,d=(A.top+A.bottom)/2,f=i&&c.animateScale,p=f?0:this.innerRadius,h=f?0:this.outerRadius,{sharedOptions:g,includeOptions:B}=this._getSharedOptions(n,a);let m=this._getRotation(),v;for(v=0;v<n;++v)m+=this._circumference(v,i);for(v=n;v<n+r;++v){const w=this._circumference(v,i),y=t[v],b={x:u+this.offsetX,y:d+this.offsetY,startAngle:m,endAngle:m+w,circumference:w,outerRadius:h,innerRadius:p};B&&(b.options=g||this.resolveDataElementOptions(v,y.active?"active":a)),m+=w,this.updateElement(y,v,b,a)}}calculateTotal(){const t=this._cachedMeta,n=t.data;let r=0,a;for(a=0;a<n.length;a++){const i=t._parsed[a];i!==null&&!isNaN(i)&&this.chart.getDataVisibility(a)&&!n[a].hidden&&(r+=Math.abs(i))}return r}calculateCircumference(t){const n=this._cachedMeta.total;return n>0&&!isNaN(t)?Ze*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],i=Al(n._parsed[t],r.options.locale);return{label:a[t]||"",value:i}}getMaxBorderWidth(t){let n=0;const r=this.chart;let a,i,s,A,l;if(!t){for(a=0,i=r.data.datasets.length;a<i;++a)if(r.isDatasetVisible(a)){s=r.getDatasetMeta(a),t=s.data,A=s.controller;break}}if(!t)return 0;for(a=0,i=t.length;a<i;++a)l=A.resolveDataElementOptions(a),l.borderAlign!=="inner"&&(n=Math.max(n,l.borderWidth||0,l.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let r=0,a=t.length;r<a;++r){const i=this.resolveDataElementOptions(r);n=Math.max(n,i.offset||0,i.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let r=0;r<t;++r)this.chart.isDatasetVisible(r)&&(n+=this._getRingWeight(r));return n}_getRingWeight(t){return Math.max(de(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}R(_i,"id","doughnut"),R(_i,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),R(_i,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),R(_i,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=t.legend.options;return n.labels.map((i,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:a,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}}});class Vc extends rr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:a=[],_dataset:i}=n,s=this.chart._animationsDisabled;let{start:A,count:l}=Vb(n,a,s);this._drawStart=A,this._drawCount=l,Kb(n)&&(A=0,l=a.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!i._decimated,r.points=a;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!s,options:c},t),this.updateElements(a,A,l,t)}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:A,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,a),f=s.axis,p=A.axis,{spanGaps:h,segment:g}=this.options,B=Ja(h)?h:Number.POSITIVE_INFINITY,m=this.chart._animationsDisabled||i||a==="none",v=n+r,w=t.length;let y=n>0&&this.getParsed(n-1);for(let b=0;b<w;++b){const _=t[b],C=m?_:{};if(b<n||b>=v){C.skip=!0;continue}const E=this.getParsed(b),S=Ee(E[p]),D=C[f]=s.getPixelForValue(E[f],b),T=C[p]=i||S?A.getBasePixel():A.getPixelForValue(l?this.applyStack(A,E,l):E[p],b);C.skip=isNaN(D)||isNaN(T)||S,C.stop=b>0&&Math.abs(E[f]-y[f])>B,g&&(C.parsed=E,C.raw=c.data[b]),d&&(C.options=u||this.resolveDataElementOptions(b,_.active?"active":a)),m||this.updateElement(_,b,C,a),y=E}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,a=t.data||[];if(!a.length)return r;const i=a[0].size(this.resolveDataElementOptions(0)),s=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(r,i,s)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}R(Vc,"id","line"),R(Vc,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),R(Vc,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class nA extends rr{constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,a=r.data.labels||[],i=Al(n._parsed[t].r,r.options.locale);return{label:a[t]||"",value:i}}parseObjectData(t,n,r,a){return Xb.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){const t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((r,a)=>{const i=this.getParsed(a).r;!isNaN(i)&&this.chart.getDataVisibility(a)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))}),n}_updateRadius(){const t=this.chart,n=t.chartArea,r=t.options,a=Math.min(n.right-n.left,n.bottom-n.top),i=Math.max(a/2,0),s=Math.max(r.cutoutPercentage?i/100*r.cutoutPercentage:1,0),A=(i-s)/t.getVisibleDatasetCount();this.outerRadius=i-A*this.index,this.innerRadius=this.outerRadius-A}updateElements(t,n,r,a){const i=a==="reset",s=this.chart,l=s.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,f=c.getIndexAngle(0)-.5*Qe;let p=f,h;const g=360/this.countVisibleElements();for(h=0;h<n;++h)p+=this._computeAngle(h,a,g);for(h=n;h<n+r;h++){const B=t[h];let m=p,v=p+this._computeAngle(h,a,g),w=s.getDataVisibility(h)?c.getDistanceFromCenterForValue(this.getParsed(h).r):0;p=v,i&&(l.animateScale&&(w=0),l.animateRotate&&(m=v=f));const y={x:u,y:d,innerRadius:0,outerRadius:w,startAngle:m,endAngle:v,options:this.resolveDataElementOptions(h,B.active?"active":a)};this.updateElement(B,h,y,a)}}countVisibleElements(){const t=this._cachedMeta;let n=0;return t.data.forEach((r,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&n++}),n}_computeAngle(t,n,r){return this.chart.getDataVisibility(t)?xt(this.resolveDataElementOptions(t,n).angle||r):0}}R(nA,"id","polarArea"),R(nA,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),R(nA,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const n=t.data;if(n.labels.length&&n.datasets.length){const{labels:{pointStyle:r,color:a}}=t.legend.options;return n.labels.map((i,s)=>{const l=t.getDatasetMeta(0).controller.getStyle(s);return{text:i,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:a,lineWidth:l.borderWidth,pointStyle:r,hidden:!t.getDataVisibility(s),index:s}})}return[]}},onClick(t,n,r){r.chart.toggleDataVisibility(n.index),r.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class $p extends _i{}R($p,"id","pie"),R($p,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class Kc extends rr{getLabelAndValue(t){const n=this._cachedMeta.vScale,r=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(r[n.axis])}}parseObjectData(t,n,r,a){return Xb.bind(this)(t,n,r,a)}update(t){const n=this._cachedMeta,r=n.dataset,a=n.data||[],i=n.iScale.getLabels();if(r.points=a,t!=="resize"){const s=this.resolveDatasetElementOptions(t);this.options.showLine||(s.borderWidth=0);const A={_loop:!0,_fullLoop:i.length===a.length,options:s};this.updateElement(r,void 0,A,t)}this.updateElements(a,0,a.length,t)}updateElements(t,n,r,a){const i=this._cachedMeta.rScale,s=a==="reset";for(let A=n;A<n+r;A++){const l=t[A],c=this.resolveDataElementOptions(A,l.active?"active":a),u=i.getPointPositionForValue(A,this.getParsed(A).r),d=s?i.xCenter:u.x,f=s?i.yCenter:u.y,p={x:d,y:f,angle:u.angle,skip:isNaN(d)||isNaN(f),options:c};this.updateElement(l,A,p,a)}}}R(Kc,"id","radar"),R(Kc,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),R(Kc,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});class $c extends rr{getLabelAndValue(t){const n=this._cachedMeta,r=this.chart.data.labels||[],{xScale:a,yScale:i}=n,s=this.getParsed(t),A=a.getLabelForValue(s.x),l=i.getLabelForValue(s.y);return{label:r[t]||"",value:"("+A+", "+l+")"}}update(t){const n=this._cachedMeta,{data:r=[]}=n,a=this.chart._animationsDisabled;let{start:i,count:s}=Vb(n,r,a);if(this._drawStart=i,this._drawCount=s,Kb(n)&&(i=0,s=r.length),this.options.showLine){const{dataset:A,_dataset:l}=n;A._chart=this.chart,A._datasetIndex=this.index,A._decimated=!!l._decimated,A.points=r;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(A,void 0,{animated:!a,options:c},t)}this.updateElements(r,i,s,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,r,a){const i=a==="reset",{iScale:s,vScale:A,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(n,a),d=this.getSharedOptions(u),f=this.includeOptions(a,d),p=s.axis,h=A.axis,{spanGaps:g,segment:B}=this.options,m=Ja(g)?g:Number.POSITIVE_INFINITY,v=this.chart._animationsDisabled||i||a==="none";let w=n>0&&this.getParsed(n-1);for(let y=n;y<n+r;++y){const b=t[y],_=this.getParsed(y),C=v?b:{},E=Ee(_[h]),S=C[p]=s.getPixelForValue(_[p],y),D=C[h]=i||E?A.getBasePixel():A.getPixelForValue(l?this.applyStack(A,_,l):_[h],y);C.skip=isNaN(S)||isNaN(D)||E,C.stop=y>0&&Math.abs(_[p]-w[p])>m,B&&(C.parsed=_,C.raw=c.data[y]),f&&(C.options=d||this.resolveDataElementOptions(y,b.active?"active":a)),v||this.updateElement(b,y,C,a),w=_}this.updateSharedOptions(d,a,u)}getMaxOverflow(){const t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let A=0;for(let l=n.length-1;l>=0;--l)A=Math.max(A,n[l].size(this.resolveDataElementOptions(l))/2);return A>0&&A}const r=t.dataset,a=r.options&&r.options.borderWidth||0;if(!n.length)return a;const i=n[0].size(this.resolveDataElementOptions(0)),s=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(a,i,s)/2}}R($c,"id","scatter"),R($c,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),R($c,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var xM=Object.freeze({__proto__:null,BarController:Hc,BubbleController:Rc,DoughnutController:_i,LineController:Vc,PieController:$p,PolarAreaController:nA,RadarController:Kc,ScatterController:$c});function ui(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class ng{constructor(t){R(this,"options");this.options=t||{}}static override(t){Object.assign(ng.prototype,t)}init(){}formats(){return ui()}parse(){return ui()}format(){return ui()}add(){return ui()}diff(){return ui()}startOf(){return ui()}endOf(){return ui()}}var o_={_date:ng};function FM(e,t,n,r){const{controller:a,data:i,_sorted:s}=e,A=a._cachedMeta.iScale;if(A&&t===A.axis&&t!=="r"&&s&&i.length){const l=A._reversePixels?ZL:jr;if(r){if(a._sharedOptions){const c=i[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(i,t,n-u),f=l(i,t,n+u);return{lo:d.lo,hi:f.hi}}}}else return l(i,t,n)}return{lo:0,hi:i.length-1}}function ul(e,t,n,r,a){const i=e.getSortedVisibleDatasetMetas(),s=n[t];for(let A=0,l=i.length;A<l;++A){const{index:c,data:u}=i[A],{lo:d,hi:f}=FM(i[A],t,s,a);for(let p=d;p<=f;++p){const h=u[p];h.skip||r(h,c,p)}}}function IM(e){const t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(r,a){const i=t?Math.abs(r.x-a.x):0,s=n?Math.abs(r.y-a.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(s,2))}}function kf(e,t,n,r,a){const i=[];return!a&&!e.isPointInArea(t)||ul(e,n,t,function(A,l,c){!a&&!Yr(A,e.chartArea,0)||A.inRange(t.x,t.y,r)&&i.push({element:A,datasetIndex:l,index:c})},!0),i}function TM(e,t,n,r){let a=[];function i(s,A,l){const{startAngle:c,endAngle:u}=s.getProps(["startAngle","endAngle"],r),{angle:d}=Mb(s,{x:t.x,y:t.y});DA(d,c,u)&&a.push({element:s,datasetIndex:A,index:l})}return ul(e,n,t,i),a}function UM(e,t,n,r,a,i){let s=[];const A=IM(n);let l=Number.POSITIVE_INFINITY;function c(u,d,f){const p=u.inRange(t.x,t.y,a);if(r&&!p)return;const h=u.getCenterPoint(a);if(!(!!i||e.isPointInArea(h))&&!p)return;const B=A(t,h);B<l?(s=[{element:u,datasetIndex:d,index:f}],l=B):B===l&&s.push({element:u,datasetIndex:d,index:f})}return ul(e,n,t,c),s}function Ef(e,t,n,r,a,i){return!i&&!e.isPointInArea(t)?[]:n==="r"&&!r?TM(e,t,n,a):UM(e,t,n,r,a,i)}function $0(e,t,n,r,a){const i=[],s=n==="x"?"inXRange":"inYRange";let A=!1;return ul(e,n,t,(l,c,u)=>{l[s](t[n],a)&&(i.push({element:l,datasetIndex:c,index:u}),A=A||l.inRange(t.x,t.y,a))}),r&&!A?[]:i}var DM={evaluateInteractionItems:ul,modes:{index(e,t,n,r){const a=mi(t,e),i=n.axis||"x",s=n.includeInvisible||!1,A=n.intersect?kf(e,a,i,r,s):Ef(e,a,i,!1,r,s),l=[];return A.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=A[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const a=mi(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;let A=n.intersect?kf(e,a,i,r,s):Ef(e,a,i,!1,r,s);if(A.length>0){const l=A[0].datasetIndex,c=e.getDatasetMeta(l).data;A=[];for(let u=0;u<c.length;++u)A.push({element:c[u],datasetIndex:l,index:u})}return A},point(e,t,n,r){const a=mi(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return kf(e,a,i,r,s)},nearest(e,t,n,r){const a=mi(t,e),i=n.axis||"xy",s=n.includeInvisible||!1;return Ef(e,a,i,n.intersect,r,s)},x(e,t,n,r){const a=mi(t,e);return $0(e,a,"x",n.intersect,r)},y(e,t,n,r){const a=mi(t,e);return $0(e,a,"y",n.intersect,r)}}};const A_=["left","top","right","bottom"];function vo(e,t){return e.filter(n=>n.pos===t)}function z0(e,t){return e.filter(n=>A_.indexOf(n.pos)===-1&&n.box.axis===t)}function yo(e,t){return e.sort((n,r)=>{const a=t?r:n,i=t?n:r;return a.weight===i.weight?a.index-i.index:a.weight-i.weight})}function QM(e){const t=[];let n,r,a,i,s,A;for(n=0,r=(e||[]).length;n<r;++n)a=e[n],{position:i,options:{stack:s,stackWeight:A=1}}=a,t.push({index:n,box:a,pos:i,horizontal:a.isHorizontal(),weight:a.weight,stack:s&&i+s,stackWeight:A});return t}function LM(e){const t={};for(const n of e){const{stack:r,pos:a,stackWeight:i}=n;if(!r||!A_.includes(a))continue;const s=t[r]||(t[r]={count:0,placed:0,weight:0,size:0});s.count++,s.weight+=i}return t}function OM(e,t){const n=LM(e),{vBoxMaxWidth:r,hBoxMaxHeight:a}=t;let i,s,A;for(i=0,s=e.length;i<s;++i){A=e[i];const{fullSize:l}=A.box,c=n[A.stack],u=c&&A.stackWeight/c.weight;A.horizontal?(A.width=u?u*r:l&&t.availableWidth,A.height=a):(A.width=r,A.height=u?u*a:l&&t.availableHeight)}return n}function MM(e){const t=QM(e),n=yo(t.filter(c=>c.box.fullSize),!0),r=yo(vo(t,"left"),!0),a=yo(vo(t,"right")),i=yo(vo(t,"top"),!0),s=yo(vo(t,"bottom")),A=z0(t,"x"),l=z0(t,"y");return{fullSize:n,leftAndTop:r.concat(i),rightAndBottom:a.concat(l).concat(s).concat(A),chartArea:vo(t,"chartArea"),vertical:r.concat(a).concat(l),horizontal:i.concat(s).concat(A)}}function W0(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function l_(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function NM(e,t,n,r){const{pos:a,box:i}=n,s=e.maxPadding;if(!we(a)){n.size&&(e[a]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?i.height:i.width),n.size=d.size/d.count,e[a]+=n.size}i.getPadding&&l_(s,i.getPadding());const A=Math.max(0,t.outerWidth-W0(s,e,"left","right")),l=Math.max(0,t.outerHeight-W0(s,e,"top","bottom")),c=A!==e.w,u=l!==e.h;return e.w=A,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function PM(e){const t=e.maxPadding;function n(r){const a=Math.max(t[r]-e[r],0);return e[r]+=a,a}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function HM(e,t){const n=t.maxPadding;function r(a){const i={left:0,top:0,right:0,bottom:0};return a.forEach(s=>{i[s]=Math.max(t[s],n[s])}),i}return r(e?["left","right"]:["top","bottom"])}function Do(e,t,n,r){const a=[];let i,s,A,l,c,u;for(i=0,s=e.length,c=0;i<s;++i){A=e[i],l=A.box,l.update(A.width||t.w,A.height||t.h,HM(A.horizontal,t));const{same:d,other:f}=NM(t,n,A,r);c|=d&&a.length,u=u||f,l.fullSize||a.push(A)}return c&&Do(a,t,n,r)||u}function Xl(e,t,n,r,a){e.top=n,e.left=t,e.right=t+r,e.bottom=n+a,e.width=r,e.height=a}function G0(e,t,n,r){const a=n.padding;let{x:i,y:s}=t;for(const A of e){const l=A.box,c=r[A.stack]||{count:1,placed:0,weight:1},u=A.stackWeight/c.weight||1;if(A.horizontal){const d=t.w*u,f=c.size||l.height;Bn(c.start)&&(s=c.start),l.fullSize?Xl(l,a.left,s,n.outerWidth-a.right-a.left,f):Xl(l,t.left+c.placed,s,d,f),c.start=s,c.placed+=d,s=l.bottom}else{const d=t.h*u,f=c.size||l.width;Bn(c.start)&&(i=c.start),l.fullSize?Xl(l,i,a.top,f,n.outerHeight-a.bottom-a.top):Xl(l,i,t.top+c.placed,f,d),c.start=i,c.placed+=d,i=l.right}}t.x=i,t.y=s}var Xt={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){const n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,r){if(!e)return;const a=Et(e.options.layout.padding),i=Math.max(t-a.width,0),s=Math.max(n-a.height,0),A=MM(e.boxes),l=A.vertical,c=A.horizontal;Ke(e.boxes,g=>{typeof g.beforeLayout=="function"&&g.beforeLayout()});const u=l.reduce((g,B)=>B.box.options&&B.box.options.display===!1?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:a,availableWidth:i,availableHeight:s,vBoxMaxWidth:i/2/u,hBoxMaxHeight:s/2}),f=Object.assign({},a);l_(f,Et(r));const p=Object.assign({maxPadding:f,w:i,h:s,x:a.left,y:a.top},a),h=OM(l.concat(c),d);Do(A.fullSize,p,d,h),Do(l,p,d,h),Do(c,p,d,h)&&Do(l,p,d,h),PM(p),G0(A.leftAndTop,p,d,h),p.x+=p.w,p.y+=p.h,G0(A.rightAndBottom,p,d,h),e.chartArea={left:p.left,top:p.top,right:p.left+p.w,bottom:p.top+p.h,height:p.h,width:p.w},Ke(A.chartArea,g=>{const B=g.box;Object.assign(B,e.chartArea),B.update(p.w,p.h,{left:0,top:0,right:0,bottom:0})})}};class c_{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,a){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,a?Math.floor(n/a):r)}}isAttached(t){return!0}updateConfig(t){}}class RM extends c_{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const zc="$chartjs",VM={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},j0=e=>e===null||e==="";function KM(e,t){const n=e.style,r=e.getAttribute("height"),a=e.getAttribute("width");if(e[zc]={initial:{height:r,width:a,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",j0(a)){const i=I0(e,"width");i!==void 0&&(e.width=i)}if(j0(r))if(e.style.height==="")e.height=e.width/(t||2);else{const i=I0(e,"height");i!==void 0&&(e.height=i)}return e}const u_=WO?{passive:!0}:!1;function $M(e,t,n){e.addEventListener(t,n,u_)}function zM(e,t,n){e.canvas.removeEventListener(t,n,u_)}function WM(e,t){const n=VM[e.type]||e.type,{x:r,y:a}=mi(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:a!==void 0?a:null}}function yu(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function GM(e,t,n){const r=e.canvas,a=new MutationObserver(i=>{let s=!1;for(const A of i)s=s||yu(A.addedNodes,r),s=s&&!yu(A.removedNodes,r);s&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}function jM(e,t,n){const r=e.canvas,a=new MutationObserver(i=>{let s=!1;for(const A of i)s=s||yu(A.removedNodes,r),s=s&&!yu(A.addedNodes,r);s&&n()});return a.observe(document,{childList:!0,subtree:!0}),a}const QA=new Map;let Y0=0;function d_(){const e=window.devicePixelRatio;e!==Y0&&(Y0=e,QA.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function YM(e,t){QA.size||window.addEventListener("resize",d_),QA.set(e,t)}function qM(e){QA.delete(e),QA.size||window.removeEventListener("resize",d_)}function XM(e,t,n){const r=e.canvas,a=r&&eg(r);if(!a)return;const i=Rb((A,l)=>{const c=a.clientWidth;n(A,l),c<a.clientWidth&&n()},window),s=new ResizeObserver(A=>{const l=A[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||i(c,u)});return s.observe(a),YM(e,i),s}function Sf(e,t,n){n&&n.disconnect(),t==="resize"&&qM(e)}function JM(e,t,n){const r=e.canvas,a=Rb(i=>{e.ctx!==null&&n(WM(i,e))},e);return $M(r,t,a),a}class ZM extends c_{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(KM(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[zc])return!1;const r=n[zc].initial;["height","width"].forEach(i=>{const s=r[i];Ee(s)?n.removeAttribute(i):n.setAttribute(i,s)});const a=r.style||{};return Object.keys(a).forEach(i=>{n.style[i]=a[i]}),n.width=n.width,delete n[zc],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const a=t.$proxies||(t.$proxies={}),s={attach:GM,detach:jM,resize:XM}[n]||JM;a[n]=s(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),a=r[n];if(!a)return;({attach:Sf,detach:Sf,resize:Sf}[n]||zM)(t,n,a),r[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,a){return zO(t,n,r,a)}isAttached(t){const n=eg(t);return!!(n&&n.isConnected)}}function e7(e){return!Zb()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?RM:ZM}var Lc;let An=(Lc=class{constructor(){R(this,"x");R(this,"y");R(this,"active",!1);R(this,"options");R(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Ja(this.x)&&Ja(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const a={};return t.forEach(i=>{a[i]=r[i]&&r[i].active()?r[i]._to:this[i]}),a}},R(Lc,"defaults",{}),R(Lc,"defaultRoutes"),Lc);function t7(e,t){const n=e.options.ticks,r=n7(e),a=Math.min(n.maxTicksLimit||r,r),i=n.major.enabled?a7(t):[],s=i.length,A=i[0],l=i[s-1],c=[];if(s>a)return i7(t,c,i,s/a),c;const u=r7(i,t,a);if(s>0){let d,f;const p=s>1?Math.round((l-A)/(s-1)):null;for(Jl(t,c,u,Ee(p)?0:A-p,A),d=0,f=s-1;d<f;d++)Jl(t,c,u,i[d],i[d+1]);return Jl(t,c,u,l,Ee(p)?t.length:l+p),c}return Jl(t,c,u),c}function n7(e){const t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),a=e._maxLength/n;return Math.floor(Math.min(r,a))}function r7(e,t,n){const r=s7(e),a=t.length/n;if(!r)return Math.max(a,1);const i=YL(r);for(let s=0,A=i.length-1;s<A;s++){const l=i[s];if(l>a)return l}return Math.max(a,1)}function a7(e){const t=[];let n,r;for(n=0,r=e.length;n<r;n++)e[n].major&&t.push(n);return t}function i7(e,t,n,r){let a=0,i=n[0],s;for(r=Math.ceil(r),s=0;s<e.length;s++)s===i&&(t.push(e[s]),a++,i=n[a*r])}function Jl(e,t,n,r,a){const i=de(r,0),s=Math.min(de(a,e.length),e.length);let A=0,l,c,u;for(n=Math.ceil(n),a&&(l=a-r,n=l/Math.floor(l/n)),u=i;u<0;)A++,u=Math.round(i+A*n);for(c=Math.max(i,0);c<s;c++)c===u&&(t.push(e[c]),A++,u=Math.round(i+A*n))}function s7(e){const t=e.length;let n,r;if(t<2)return!1;for(r=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==r)return!1;return r}const o7=e=>e==="left"?"right":e==="right"?"left":e,q0=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,X0=(e,t)=>Math.min(t||e,e);function J0(e,t){const n=[],r=e.length/t,a=e.length;let i=0;for(;i<a;i+=r)n.push(e[Math.floor(i)]);return n}function A7(e,t,n){const r=e.ticks.length,a=Math.min(t,r-1),i=e._startPixel,s=e._endPixel,A=1e-6;let l=e.getPixelForTick(a),c;if(!(n&&(r===1?c=Math.max(l-i,s-l):t===0?c=(e.getPixelForTick(1)-l)/2:c=(l-e.getPixelForTick(a-1))/2,l+=a<t?c:-c,l<i-A||l>s+A)))return l}function l7(e,t){Ke(e,n=>{const r=n.gc,a=r.length/2;let i;if(a>t){for(i=0;i<a;++i)delete n.data[r[i]];r.splice(0,a)}})}function Bo(e){return e.drawTicks?e.tickLength:0}function Z0(e,t){if(!e.display)return 0;const n=ht(e.font,t),r=Et(e.padding);return(Me(e.text)?e.text.length:1)*n.lineHeight+r.height}function c7(e,t){return oi(e,{scale:t,type:"scale"})}function u7(e,t,n){return oi(e,{tick:n,index:t,type:"tick"})}function d7(e,t,n){let r=jm(e);return(n&&t!=="right"||!n&&t==="right")&&(r=o7(r)),r}function f7(e,t,n,r){const{top:a,left:i,bottom:s,right:A,chart:l}=e,{chartArea:c,scales:u}=l;let d=0,f,p,h;const g=s-a,B=A-i;if(e.isHorizontal()){if(p=jt(r,i,A),we(n)){const m=Object.keys(n)[0],v=n[m];h=u[m].getPixelForValue(v)+g-t}else n==="center"?h=(c.bottom+c.top)/2+g-t:h=q0(e,n,t);f=A-i}else{if(we(n)){const m=Object.keys(n)[0],v=n[m];p=u[m].getPixelForValue(v)-B+t}else n==="center"?p=(c.left+c.right)/2-B+t:p=q0(e,n,t);h=jt(r,s,a),d=n==="left"?-et:et}return{titleX:p,titleY:h,maxWidth:f,rotation:d}}class ji extends An{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:r,_suggestedMax:a}=this;return t=_n(t,Number.POSITIVE_INFINITY),n=_n(n,Number.NEGATIVE_INFINITY),r=_n(r,Number.POSITIVE_INFINITY),a=_n(a,Number.NEGATIVE_INFINITY),{min:_n(t,r),max:_n(n,a),minDefined:ft(t),maxDefined:ft(n)}}getMinMax(t){let{min:n,max:r,minDefined:a,maxDefined:i}=this.getUserBounds(),s;if(a&&i)return{min:n,max:r};const A=this.getMatchingVisibleMetas();for(let l=0,c=A.length;l<c;++l)s=A[l].controller.getMinMax(this,t),a||(n=Math.min(n,s.min)),i||(r=Math.max(r,s.max));return n=i&&n>r?r:n,r=a&&n>r?n:r,{min:_n(n,_n(r,n)),max:_n(r,_n(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Re(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:a,grace:i,ticks:s}=this.options,A=s.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_O(this,i,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=A<this.ticks.length;this._convertTicksToLabels(l?J0(this.ticks,A):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),s.display&&(s.autoSkip||s.source==="auto")&&(this.ticks=t7(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,r;this.isHorizontal()?(n=this.left,r=this.right):(n=this.top,r=this.bottom,t=!t),this._startPixel=n,this._endPixel=r,this._reversePixels=t,this._length=r-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Re(this.options.afterUpdate,[this])}beforeSetDimensions(){Re(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Re(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),Re(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Re(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const n=this.options.ticks;let r,a,i;for(r=0,a=t.length;r<a;r++)i=t[r],i.label=Re(n.callback,[i.value,r,t],this)}afterTickToLabelConversion(){Re(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Re(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,n=t.ticks,r=X0(this.ticks.length,t.ticks.maxTicksLimit),a=n.minRotation||0,i=n.maxRotation;let s=a,A,l,c;if(!this._isVisible()||!n.display||a>=i||r<=1||!this.isHorizontal()){this.labelRotation=a;return}const u=this._getLabelSizes(),d=u.widest.width,f=u.highest.height,p=Pt(this.chart.width-d,0,this.maxWidth);A=t.offset?this.maxWidth/r:p/(r-1),d+6>A&&(A=p/(r-(t.offset?.5:1)),l=this.maxHeight-Bo(t.grid)-n.padding-Z0(t.title,this.chart.options.font),c=Math.sqrt(d*d+f*f),s=sd(Math.min(Math.asin(Pt((u.highest.height+6)/A,-1,1)),Math.asin(Pt(l/c,-1,1))-Math.asin(Pt(f/c,-1,1)))),s=Math.max(a,Math.min(i,s))),this.labelRotation=s}afterCalculateLabelRotation(){Re(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Re(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:a,grid:i}}=this,s=this._isVisible(),A=this.isHorizontal();if(s){const l=Z0(a,n.options.font);if(A?(t.width=this.maxWidth,t.height=Bo(i)+l):(t.height=this.maxHeight,t.width=Bo(i)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:f}=this._getLabelSizes(),p=r.padding*2,h=xt(this.labelRotation),g=Math.cos(h),B=Math.sin(h);if(A){const m=r.mirror?0:B*d.width+g*f.height;t.height=Math.min(this.maxHeight,t.height+m+p)}else{const m=r.mirror?0:g*d.width+B*f.height;t.width=Math.min(this.maxWidth,t.width+m+p)}this._calculatePadding(c,u,B,g)}}this._handleMargins(),A?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,r,a){const{ticks:{align:i,padding:s},position:A}=this.options,l=this.labelRotation!==0,c=A!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let f=0,p=0;l?c?(f=a*t.width,p=r*n.height):(f=r*t.height,p=a*n.width):i==="start"?p=n.width:i==="end"?f=t.width:i!=="inner"&&(f=t.width/2,p=n.width/2),this.paddingLeft=Math.max((f-u+s)*this.width/(this.width-u),0),this.paddingRight=Math.max((p-d+s)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;i==="start"?(u=0,d=t.height):i==="end"&&(u=n.height,d=0),this.paddingTop=u+s,this.paddingBottom=d+s}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Re(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,r;for(n=0,r=t.length;n<r;n++)Ee(t[n].label)&&(t.splice(n,1),r--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const n=this.options.ticks.sampleSize;let r=this.ticks;n<r.length&&(r=J0(r,n)),this._labelSizes=t=this._computeLabelSizes(r,r.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,r){const{ctx:a,_longestTextCache:i}=this,s=[],A=[],l=Math.floor(n/X0(n,r));let c=0,u=0,d,f,p,h,g,B,m,v,w,y,b;for(d=0;d<n;d+=l){if(h=t[d].label,g=this._resolveTickFontOptions(d),a.font=B=g.string,m=i[B]=i[B]||{data:{},gc:[]},v=g.lineHeight,w=y=0,!Ee(h)&&!Me(h))w=gu(a,m.data,m.gc,w,h),y=v;else if(Me(h))for(f=0,p=h.length;f<p;++f)b=h[f],!Ee(b)&&!Me(b)&&(w=gu(a,m.data,m.gc,w,b),y+=v);s.push(w),A.push(y),c=Math.max(w,c),u=Math.max(y,u)}l7(i,n);const _=s.indexOf(c),C=A.indexOf(u),E=S=>({width:s[S]||0,height:A[S]||0});return{first:E(0),last:E(n-1),widest:E(_),highest:E(C),widths:s,heights:A}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return JL(this._alignToPixels?ci(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&t<n.length){const r=n[t];return r.$context||(r.$context=u7(this.getContext(),t,r))}return this.$context||(this.$context=c7(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,n=xt(this.labelRotation),r=Math.abs(Math.cos(n)),a=Math.abs(Math.sin(n)),i=this._getLabelSizes(),s=t.autoSkipPadding||0,A=i?i.widest.width+s:0,l=i?i.highest.height+s:0;return this.isHorizontal()?l*r>A*a?A/r:l/a:l*a<A*r?l/r:A/a}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const n=this.axis,r=this.chart,a=this.options,{grid:i,position:s,border:A}=a,l=i.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),f=Bo(i),p=[],h=A.setContext(this.getContext()),g=h.display?h.width:0,B=g/2,m=function(j){return ci(r,j,g)};let v,w,y,b,_,C,E,S,D,T,F,U;if(s==="top")v=m(this.bottom),C=this.bottom-f,S=v-B,T=m(t.top)+B,U=t.bottom;else if(s==="bottom")v=m(this.top),T=t.top,U=m(t.bottom)-B,C=v+B,S=this.top+f;else if(s==="left")v=m(this.right),_=this.right-f,E=v-B,D=m(t.left)+B,F=t.right;else if(s==="right")v=m(this.left),D=t.left,F=m(t.right)-B,_=v+B,E=this.left+f;else if(n==="x"){if(s==="center")v=m((t.top+t.bottom)/2+.5);else if(we(s)){const j=Object.keys(s)[0],K=s[j];v=m(this.chart.scales[j].getPixelForValue(K))}T=t.top,U=t.bottom,C=v+B,S=C+f}else if(n==="y"){if(s==="center")v=m((t.left+t.right)/2);else if(we(s)){const j=Object.keys(s)[0],K=s[j];v=m(this.chart.scales[j].getPixelForValue(K))}_=v-B,E=_-f,D=t.left,F=t.right}const Y=de(a.ticks.maxTicksLimit,d),X=Math.max(1,Math.ceil(d/Y));for(w=0;w<d;w+=X){const j=this.getContext(w),K=i.setContext(j),Ae=A.setContext(j),$=K.lineWidth,ie=K.color,ce=Ae.dash||[],Be=Ae.dashOffset,xe=K.tickWidth,fe=K.tickColor,re=K.tickBorderDash||[],N=K.tickBorderDashOffset;y=A7(this,w,l),y!==void 0&&(b=ci(r,y,$),c?_=E=D=F=b:C=S=T=U=b,p.push({tx1:_,ty1:C,tx2:E,ty2:S,x1:D,y1:T,x2:F,y2:U,width:$,color:ie,borderDash:ce,borderDashOffset:Be,tickWidth:xe,tickColor:fe,tickBorderDash:re,tickBorderDashOffset:N}))}return this._ticksLength=d,this._borderValue=v,p}_computeLabelItems(t){const n=this.axis,r=this.options,{position:a,ticks:i}=r,s=this.isHorizontal(),A=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=i,f=Bo(r.grid),p=f+u,h=d?-u:p,g=-xt(this.labelRotation),B=[];let m,v,w,y,b,_,C,E,S,D,T,F,U="middle";if(a==="top")_=this.bottom-h,C=this._getXAxisLabelAlignment();else if(a==="bottom")_=this.top+h,C=this._getXAxisLabelAlignment();else if(a==="left"){const X=this._getYAxisLabelAlignment(f);C=X.textAlign,b=X.x}else if(a==="right"){const X=this._getYAxisLabelAlignment(f);C=X.textAlign,b=X.x}else if(n==="x"){if(a==="center")_=(t.top+t.bottom)/2+p;else if(we(a)){const X=Object.keys(a)[0],j=a[X];_=this.chart.scales[X].getPixelForValue(j)+p}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(a==="center")b=(t.left+t.right)/2-p;else if(we(a)){const X=Object.keys(a)[0],j=a[X];b=this.chart.scales[X].getPixelForValue(j)}C=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(l==="start"?U="top":l==="end"&&(U="bottom"));const Y=this._getLabelSizes();for(m=0,v=A.length;m<v;++m){w=A[m],y=w.label;const X=i.setContext(this.getContext(m));E=this.getPixelForTick(m)+i.labelOffset,S=this._resolveTickFontOptions(m),D=S.lineHeight,T=Me(y)?y.length:1;const j=T/2,K=X.color,Ae=X.textStrokeColor,$=X.textStrokeWidth;let ie=C;s?(b=E,C==="inner"&&(m===v-1?ie=this.options.reverse?"left":"right":m===0?ie=this.options.reverse?"right":"left":ie="center"),a==="top"?c==="near"||g!==0?F=-T*D+D/2:c==="center"?F=-Y.highest.height/2-j*D+D:F=-Y.highest.height+D/2:c==="near"||g!==0?F=D/2:c==="center"?F=Y.highest.height/2-j*D:F=Y.highest.height-T*D,d&&(F*=-1),g!==0&&!X.showLabelBackdrop&&(b+=D/2*Math.sin(g))):(_=E,F=(1-T)*D/2);let ce;if(X.showLabelBackdrop){const Be=Et(X.backdropPadding),xe=Y.heights[m],fe=Y.widths[m];let re=F-Be.top,N=0-Be.left;switch(U){case"middle":re-=xe/2;break;case"bottom":re-=xe;break}switch(C){case"center":N-=fe/2;break;case"right":N-=fe;break}ce={left:N,top:re,width:fe+Be.width,height:xe+Be.height,color:X.backdropColor}}B.push({label:y,font:S,textOffset:F,options:{rotation:g,color:K,strokeColor:Ae,strokeWidth:$,textAlign:ie,textBaseline:U,translation:[b,_],backdrop:ce}})}return B}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-xt(this.labelRotation))return t==="top"?"left":"right";let a="center";return n.align==="start"?a="left":n.align==="end"?a="right":n.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:a,padding:i}}=this.options,s=this._getLabelSizes(),A=t+i,l=s.widest.width;let c,u;return n==="left"?a?(u=this.right+i,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-A,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?a?(u=this.left+i,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+A,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:n},left:r,top:a,width:i,height:s}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,a,i,s),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const a=this.ticks.findIndex(i=>i.value===t);return a>=0?n.setContext(this.getContext(a)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let i,s;const A=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(i=0,s=a.length;i<s;++i){const l=a[i];n.drawOnChartArea&&A({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),n.drawTicks&&A({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:n,options:{border:r,grid:a}}=this,i=r.setContext(this.getContext()),s=r.display?i.width:0;if(!s)return;const A=a.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,f;this.isHorizontal()?(c=ci(t,this.left,s)-s/2,u=ci(t,this.right,A)+A/2,d=f=l):(d=ci(t,this.top,s)-s/2,f=ci(t,this.bottom,A)+A/2,c=u=l),n.save(),n.lineWidth=i.width,n.strokeStyle=i.color,n.beginPath(),n.moveTo(c,d),n.lineTo(u,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;const r=this.ctx,a=this._computeLabelArea();a&&ll(r,a);const i=this.getLabelItems(t);for(const s of i){const A=s.options,l=s.font,c=s.label,u=s.textOffset;Ri(r,c,0,u,l,A)}a&&cl(r)}drawTitle(){const{ctx:t,options:{position:n,title:r,reverse:a}}=this;if(!r.display)return;const i=ht(r.font),s=Et(r.padding),A=r.align;let l=i.lineHeight/2;n==="bottom"||n==="center"||we(n)?(l+=s.bottom,Me(r.text)&&(l+=i.lineHeight*(r.text.length-1))):l+=s.top;const{titleX:c,titleY:u,maxWidth:d,rotation:f}=f7(this,l,n,A);Ri(t,r.text,0,0,i,{color:r.color,maxWidth:d,rotation:f,textAlign:d7(A,n,a),textBaseline:"middle",translation:[c,u]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,n=t.ticks&&t.ticks.z||0,r=de(t.grid&&t.grid.z,-1),a=de(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==ji.prototype.draw?[{z:n,draw:i=>{this.draw(i)}}]:[{z:r,draw:i=>{this.drawBackground(),this.drawGrid(i),this.drawTitle()}},{z:a,draw:()=>{this.drawBorder()}},{z:n,draw:i=>{this.drawLabels(i)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",a=[];let i,s;for(i=0,s=n.length;i<s;++i){const A=n[i];A[r]===this.id&&(!t||A.type===t)&&a.push(A)}return a}_resolveTickFontOptions(t){const n=this.options.ticks.setContext(this.getContext(t));return ht(n.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Zl{constructor(t,n,r){this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const n=Object.getPrototypeOf(t);let r;m7(n)&&(r=this.register(n));const a=this.items,i=t.id,s=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+t);return i in a||(a[i]=t,p7(t,s,r),this.override&&pt.override(t.id,t.overrides)),s}get(t){return this.items[t]}unregister(t){const n=this.items,r=t.id,a=this.scope;r in n&&delete n[r],a&&r in pt[a]&&(delete pt[a][r],this.override&&delete Hi[r])}}function p7(e,t,n){const r=Cr(Object.create(null),[n?pt.get(n):{},pt.get(t),e.defaults]);pt.set(t,r),e.defaultRoutes&&h7(t,e.defaultRoutes),e.descriptors&&pt.describe(t,e.descriptors)}function h7(e,t){Object.keys(t).forEach(n=>{const r=n.split("."),a=r.pop(),i=[e].concat(r).join("."),s=t[n].split("."),A=s.pop(),l=s.join(".");pt.route(i,a,l,A)})}function m7(e){return"id"in e&&"defaults"in e}class g7{constructor(){this.controllers=new Zl(rr,"datasets",!0),this.elements=new Zl(An,"elements"),this.plugins=new Zl(Object,"plugins"),this.scales=new Zl(ji,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,n,r){[...n].forEach(a=>{const i=r||this._getRegistryForType(a);r||i.isForType(a)||i===this.plugins&&a.id?this._exec(t,i,a):Ke(a,s=>{const A=r||this._getRegistryForType(s);this._exec(t,A,s)})})}_exec(t,n,r){const a=zm(t);Re(r["before"+a],[],r),n[t](r),Re(r["after"+a],[],r)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){const r=this._typedRegistries[n];if(r.isForType(t))return r}return this.plugins}_get(t,n,r){const a=n.get(t);if(a===void 0)throw new Error('"'+t+'" is not a registered '+r+".");return a}}var pr=new g7;class v7{constructor(){this._init=[]}notify(t,n,r,a){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const i=a?this._descriptors(t).filter(a):this._descriptors(t),s=this._notify(i,t,n,r);return n==="afterDestroy"&&(this._notify(i,t,"stop"),this._notify(this._init,t,"uninstall")),s}_notify(t,n,r,a){a=a||{};for(const i of t){const s=i.plugin,A=s[r],l=[n,a,i.options];if(Re(A,l,s)===!1&&a.cancelable)return!1}return!0}invalidate(){Ee(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){const r=t&&t.config,a=de(r.options&&r.options.plugins,{}),i=y7(r);return a===!1&&!n?[]:w7(t,i,a,n)}_notifyStateChanges(t){const n=this._oldCache||[],r=this._cache,a=(i,s)=>i.filter(A=>!s.some(l=>A.plugin.id===l.plugin.id));this._notify(a(n,r),t,"stop"),this._notify(a(r,n),t,"start")}}function y7(e){const t={},n=[],r=Object.keys(pr.plugins.items);for(let i=0;i<r.length;i++)n.push(pr.getPlugin(r[i]));const a=e.plugins||[];for(let i=0;i<a.length;i++){const s=a[i];n.indexOf(s)===-1&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}function B7(e,t){return!t&&e===!1?null:e===!0?{}:e}function w7(e,{plugins:t,localIds:n},r,a){const i=[],s=e.getContext();for(const A of t){const l=A.id,c=B7(r[l],a);c!==null&&i.push({plugin:A,options:b7(e.config,{plugin:A,local:n[l]},c,s)})}return i}function b7(e,{plugin:t,local:n},r,a){const i=e.pluginScopeKeys(t),s=e.getOptionScopes(r,i);return n&&t.defaults&&s.push(t.defaults),e.createResolver(s,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function zp(e,t){const n=pt.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function _7(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function C7(e,t){return e===t?"_index_":"_value_"}function ey(e){if(e==="x"||e==="y"||e==="r")return e}function k7(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Wp(e,...t){if(ey(e))return e;for(const n of t){const r=n.axis||k7(n.position)||e.length>1&&ey(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function ty(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function E7(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return ty(e,"x",n[0])||ty(e,"y",n[0])}return{}}function S7(e,t){const n=Hi[e.type]||{scales:{}},r=t.scales||{},a=zp(e.type,t),i=Object.create(null);return Object.keys(r).forEach(s=>{const A=r[s];if(!we(A))return console.error(`Invalid scale configuration for scale: ${s}`);if(A._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${s}`);const l=Wp(s,A,E7(s,e),pt.scales[A.type]),c=C7(l,a),u=n.scales||{};i[s]=Jo(Object.create(null),[{axis:l},A,u[l],u[c]])}),e.data.datasets.forEach(s=>{const A=s.type||e.type,l=s.indexAxis||zp(A,t),u=(Hi[A]||{}).scales||{};Object.keys(u).forEach(d=>{const f=_7(d,l),p=s[f+"AxisID"]||f;i[p]=i[p]||Object.create(null),Jo(i[p],[{axis:f},r[p],u[d]])})}),Object.keys(i).forEach(s=>{const A=i[s];Jo(A,[pt.scales[A.type],pt.scale])}),i}function f_(e){const t=e.options||(e.options={});t.plugins=de(t.plugins,{}),t.scales=S7(e,t)}function p_(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function x7(e){return e=e||{},e.data=p_(e.data),f_(e),e}const ny=new Map,h_=new Set;function ec(e,t){let n=ny.get(e);return n||(n=t(),ny.set(e,n),h_.add(n)),n}const wo=(e,t,n)=>{const r=Xa(t,n);r!==void 0&&e.add(r)};class F7{constructor(t){this._config=x7(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=p_(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),f_(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ec(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return ec(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return ec(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return ec(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let a=r.get(t);return(!a||n)&&(a=new Map,r.set(t,a)),a}getOptionScopes(t,n,r){const{options:a,type:i}=this,s=this._cachedScopes(t,r),A=s.get(n);if(A)return A;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>wo(l,t,d))),u.forEach(d=>wo(l,a,d)),u.forEach(d=>wo(l,Hi[i]||{},d)),u.forEach(d=>wo(l,pt,d)),u.forEach(d=>wo(l,Vp,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),h_.has(n)&&s.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Hi[n]||{},pt.datasets[n]||{},{type:n},pt,Vp]}resolveNamedOptions(t,n,r,a=[""]){const i={$shared:!0},{resolver:s,subPrefixes:A}=ry(this._resolverCache,t,a);let l=s;if(T7(s,n)){i.$shared=!1,r=yn(r)?r():r;const c=this.createResolver(t,r,A);l=zs(s,r,c)}for(const c of n)i[c]=l[c];return i}createResolver(t,n,r=[""],a){const{resolver:i}=ry(this._resolverCache,t,r);return we(n)?zs(i,n,void 0,a):i}}function ry(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const a=n.join();let i=r.get(a);return i||(i={resolver:Xm(t,n),subPrefixes:n.filter(A=>!A.toLowerCase().includes("hover"))},r.set(a,i)),i}const I7=e=>we(e)&&Object.getOwnPropertyNames(e).reduce((t,n)=>t||yn(e[n]),!1);function T7(e,t){const{isScriptable:n,isIndexable:r}=Gb(e);for(const a of t){const i=n(a),s=r(a),A=(s||i)&&e[a];if(i&&(yn(A)||I7(A))||s&&Me(A))return!0}return!1}var U7="4.3.0";const D7=["top","bottom","left","right","chartArea"];function ay(e,t){return e==="top"||e==="bottom"||D7.indexOf(e)===-1&&t==="x"}function iy(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function sy(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),Re(n&&n.onComplete,[e],t)}function Q7(e){const t=e.chart,n=t.options.animation;Re(n&&n.onProgress,[e],t)}function m_(e){return Zb()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const Wc={},oy=e=>{const t=m_(e);return Object.values(Wc).filter(n=>n.canvas===t).pop()};function L7(e,t,n){const r=Object.keys(e);for(const a of r){const i=+a;if(i>=t){const s=e[a];delete e[a],(n>0||i>t)&&(e[i+n]=s)}}}function O7(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function M7(e){const{xScale:t,yScale:n}=e;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}class Oe{static register(...t){pr.add(...t),Ay()}static unregister(...t){pr.remove(...t),Ay()}constructor(t,n){const r=this.config=new F7(n),a=m_(t),i=oy(a);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const s=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||e7(a)),this.platform.updateConfig(r);const A=this.platform.acquireContext(a,s.aspectRatio),l=A&&A.canvas,c=l&&l.height,u=l&&l.width;if(this.id=RL(),this.ctx=A,this.canvas=l,this.width=u,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new v7,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=nO(d=>this.update(d),s.resizeDelay||0),this._dataChanges=[],Wc[this.id]=this,!A||!l){console.error("Failed to create chart: can't acquire context from the given item");return}Hr.listen(this,"complete",sy),Hr.listen(this,"progress",Q7),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:n},width:r,height:a,_aspectRatio:i}=this;return Ee(t)?n&&i?i:a?r/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return pr}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():F0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return E0(this.canvas,this.ctx),this}stop(){return Hr.stop(this),this}resize(t,n){Hr.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){const r=this.options,a=this.canvas,i=r.maintainAspectRatio&&this.aspectRatio,s=this.platform.getMaximumSize(a,t,n,i),A=r.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=s.width,this.height=s.height,this._aspectRatio=this.aspectRatio,F0(this,A,!0)&&(this.notifyPlugins("resize",{size:s}),Re(r.onResize,[this,s],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const n=this.options.scales||{};Ke(n,(r,a)=>{r.id=a})}buildOrUpdateScales(){const t=this.options,n=t.scales,r=this.scales,a=Object.keys(r).reduce((s,A)=>(s[A]=!1,s),{});let i=[];n&&(i=i.concat(Object.keys(n).map(s=>{const A=n[s],l=Wp(s,A),c=l==="r",u=l==="x";return{options:A,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ke(i,s=>{const A=s.options,l=A.id,c=Wp(l,A),u=de(A.type,s.dtype);(A.position===void 0||ay(A.position,c)!==ay(s.dposition))&&(A.position=s.dposition),a[l]=!0;let d=null;if(l in r&&r[l].type===u)d=r[l];else{const f=pr.getScale(u);d=new f({id:l,type:u,ctx:this.ctx,chart:this}),r[d.id]=d}d.init(A,t)}),Ke(a,(s,A)=>{s||delete r[A]}),Ke(r,s=>{Xt.configure(this,s,s.options),Xt.addBox(this,s)})}_updateMetasets(){const t=this._metasets,n=this.data.datasets.length,r=t.length;if(t.sort((a,i)=>a.index-i.index),r>n){for(let a=n;a<r;++a)this._destroyDatasetMeta(a);t.splice(n,r-n)}this._sortedMetasets=t.slice(0).sort(iy("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((r,a)=>{n.filter(i=>i===r._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const t=[],n=this.data.datasets;let r,a;for(this._removeUnreferencedMetasets(),r=0,a=n.length;r<a;r++){const i=n[r];let s=this.getDatasetMeta(r);const A=i.type||this.config.type;if(s.type&&s.type!==A&&(this._destroyDatasetMeta(r),s=this.getDatasetMeta(r)),s.type=A,s.indexAxis=i.indexAxis||zp(A,this.options),s.order=i.order||0,s.index=r,s.label=""+i.label,s.visible=this.isDatasetVisible(r),s.controller)s.controller.updateIndex(r),s.controller.linkScales();else{const l=pr.getController(A),{datasetElementType:c,dataElementType:u}=pt.datasets[A];Object.assign(l,{dataElementType:pr.getElement(u),datasetElementType:c&&pr.getElement(c)}),s.controller=new l(this,r),t.push(s.controller)}}return this._updateMetasets(),t}_resetElements(){Ke(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const n=this.config;n.update();const r=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let s=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),f=!a&&i.indexOf(d)===-1;d.buildOrUpdateElements(f),s=Math.max(+d.getMaxOverflow(),s)}s=this._minPadding=r.layout.autoPadding?s:0,this._updateLayout(s),a||Ke(i,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(iy("z","_idx"));const{_active:A,_lastEvent:l}=this;l?this._eventHandler(l,!0):A.length&&this._updateHoverStyles(A,A,!0),this.render()}_updateScales(){Ke(this.scales,t=>{Xt.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,n=new Set(Object.keys(this._listeners)),r=new Set(t.events);(!v0(n,r)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(const{method:r,start:a,count:i}of n){const s=r==="_removeElements"?-i:i;L7(t,a,s)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const n=this.data.datasets.length,r=i=>new Set(t.filter(s=>s[0]===i).map((s,A)=>A+","+s.splice(1).join(","))),a=r(0);for(let i=1;i<n;i++)if(!v0(a,r(i)))return;return Array.from(a).map(i=>i.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Xt.update(this,this.width,this.height,t);const n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],Ke(this.boxes,a=>{r&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,i)=>{a._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,r=this.data.datasets.length;n<r;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,r=this.data.datasets.length;n<r;++n)this._updateDataset(n,yn(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){const r=this.getDatasetMeta(t),a={meta:r,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(r.controller._update(n),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Hr.has(this)?this.attached&&!Hr.running(this)&&Hr.start(this):(this.draw(),sy({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:r,height:a}=this._resizeBeforeDraw;this._resize(r,a),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const n=this._sortedMetasets,r=[];let a,i;for(a=0,i=n.length;a<i;++a){const s=n[a];(!t||s.visible)&&r.push(s)}return r}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const n=this.ctx,r=t._clip,a=!r.disabled,i=M7(t)||this.chartArea,s={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(a&&ll(n,{left:r.left===!1?0:i.left-r.left,right:r.right===!1?this.width:i.right+r.right,top:r.top===!1?0:i.top-r.top,bottom:r.bottom===!1?this.height:i.bottom+r.bottom}),t.controller.draw(),a&&cl(n),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Yr(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,r,a){const i=DM.modes[n];return typeof i=="function"?i(this,t,r,a):[]}getDatasetMeta(t){const n=this.data.datasets[t],r=this._metasets;let a=r.filter(i=>i&&i._dataset===n).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},r.push(a)),a}getContext(){return this.$context||(this.$context=oi(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const n=this.data.datasets[t];if(!n)return!1;const r=this.getDatasetMeta(t);return typeof r.hidden=="boolean"?!r.hidden:!n.hidden}setDatasetVisibility(t,n){const r=this.getDatasetMeta(t);r.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,r){const a=r?"show":"hide",i=this.getDatasetMeta(t),s=i.controller._resolveAnimations(void 0,a);Bn(n)?(i.data[n].hidden=!r,this.update()):(this.setDatasetVisibility(t,r),s.update(i,{visible:r}),this.update(A=>A.datasetIndex===t?a:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){const n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),Hr.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),E0(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete Wc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,n=this.platform,r=(i,s)=>{n.addEventListener(this,i,s),t[i]=s},a=(i,s,A)=>{i.offsetX=s,i.offsetY=A,this._eventHandler(i)};Ke(this.options.events,i=>r(i,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,n=this.platform,r=(l,c)=>{n.addEventListener(this,l,c),t[l]=c},a=(l,c)=>{t[l]&&(n.removeEventListener(this,l,c),delete t[l])},i=(l,c)=>{this.canvas&&this.resize(l,c)};let s;const A=()=>{a("attach",A),this.attached=!0,this.resize(),r("resize",i),r("detach",s)};s=()=>{this.attached=!1,a("resize",i),this._stop(),this._resize(0,0),r("attach",A)},n.isAttached(this.canvas)?A():s()}unbindEvents(){Ke(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Ke(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,r){const a=r?"set":"remove";let i,s,A,l;for(n==="dataset"&&(i=this.getDatasetMeta(t[0].datasetIndex),i.controller["_"+a+"DatasetHoverStyle"]()),A=0,l=t.length;A<l;++A){s=t[A];const c=s&&this.getDatasetMeta(s.datasetIndex).controller;c&&c[a+"HoverStyle"](s.element,s.datasetIndex,s.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const n=this._active||[],r=t.map(({datasetIndex:i,index:s})=>{const A=this.getDatasetMeta(i);if(!A)throw new Error("No dataset found at index "+i);return{datasetIndex:i,element:A.data[s],index:s}});!fu(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}notifyPlugins(t,n,r){return this._plugins.notify(this,t,n,r)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,r){const a=this.options.hover,i=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),s=i(n,t),A=r?t:i(t,n);s.length&&this.updateHoverStyle(s,a.mode,!1),A.length&&a.mode&&this.updateHoverStyle(A,a.mode,!0)}_eventHandler(t,n){const r={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},a=s=>(s.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",r,a)===!1)return;const i=this._handleEvent(t,n,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,a),(i||r.changed)&&this.render(),this}_handleEvent(t,n,r){const{_active:a=[],options:i}=this,s=n,A=this._getActiveElements(t,a,r,s),l=GL(t),c=O7(t,this._lastEvent,r,l);r&&(this._lastEvent=null,Re(i.onHover,[t,A,this],this),l&&Re(i.onClick,[t,A,this],this));const u=!fu(A,a);return(u||n)&&(this._active=A,this._updateHoverStyles(A,a,n)),this._lastEvent=c,u}_getActiveElements(t,n,r,a){if(t.type==="mouseout")return[];if(!r)return n;const i=this.options.hover;return this.getElementsAtEventForMode(t,i.mode,i,a)}}R(Oe,"defaults",pt),R(Oe,"instances",Wc),R(Oe,"overrides",Hi),R(Oe,"registry",pr),R(Oe,"version",U7),R(Oe,"getChart",oy);function Ay(){return Ke(Oe.instances,e=>e._plugins.invalidate())}function N7(e,t,n){const{startAngle:r,pixelMargin:a,x:i,y:s,outerRadius:A,innerRadius:l}=t;let c=a/A;e.beginPath(),e.arc(i,s,A,r-c,n+c),l>a?(c=a/l,e.arc(i,s,l,n+c,r-c,!0)):e.arc(i,s,a,n+et,r-et),e.closePath(),e.clip()}function P7(e){return qm(e,["outerStart","outerEnd","innerStart","innerEnd"])}function H7(e,t,n,r){const a=P7(e.options.borderRadius),i=(n-t)/2,s=Math.min(i,r*t/2),A=l=>{const c=(n-Math.min(i,l))*r/2;return Pt(l,0,Math.min(i,c))};return{outerStart:A(a.outerStart),outerEnd:A(a.outerEnd),innerStart:Pt(a.innerStart,0,s),innerEnd:Pt(a.innerEnd,0,s)}}function os(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Bu(e,t,n,r,a,i){const{x:s,y:A,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),f=u>0?u+r+n+c:0;let p=0;const h=a-l;if(r){const X=u>0?u-r:0,j=d>0?d-r:0,K=(X+j)/2,Ae=K!==0?h*K/(K+r):h;p=(h-Ae)/2}const g=Math.max(.001,h*d-n/Qe)/d,B=(h-g)/2,m=l+B+p,v=a-B-p,{outerStart:w,outerEnd:y,innerStart:b,innerEnd:_}=H7(t,f,d,v-m),C=d-w,E=d-y,S=m+w/C,D=v-y/E,T=f+b,F=f+_,U=m+b/T,Y=v-_/F;if(e.beginPath(),i){const X=(S+D)/2;if(e.arc(s,A,d,S,X),e.arc(s,A,d,X,D),y>0){const $=os(E,D,s,A);e.arc($.x,$.y,y,D,v+et)}const j=os(F,v,s,A);if(e.lineTo(j.x,j.y),_>0){const $=os(F,Y,s,A);e.arc($.x,$.y,_,v+et,Y+Math.PI)}const K=(v-_/f+(m+b/f))/2;if(e.arc(s,A,f,v-_/f,K,!0),e.arc(s,A,f,K,m+b/f,!0),b>0){const $=os(T,U,s,A);e.arc($.x,$.y,b,U+Math.PI,m-et)}const Ae=os(C,m,s,A);if(e.lineTo(Ae.x,Ae.y),w>0){const $=os(C,S,s,A);e.arc($.x,$.y,w,m-et,S)}}else{e.moveTo(s,A);const X=Math.cos(S)*d+s,j=Math.sin(S)*d+A;e.lineTo(X,j);const K=Math.cos(D)*d+s,Ae=Math.sin(D)*d+A;e.lineTo(K,Ae)}e.closePath()}function R7(e,t,n,r,a){const{fullCircles:i,startAngle:s,circumference:A}=t;let l=t.endAngle;if(i){Bu(e,t,n,r,l,a);for(let c=0;c<i;++c)e.fill();isNaN(A)||(l=s+(A%Ze||Ze))}return Bu(e,t,n,r,l,a),e.fill(),l}function V7(e,t,n,r,a){const{fullCircles:i,startAngle:s,circumference:A,options:l}=t,{borderWidth:c,borderJoinStyle:u,borderDash:d,borderDashOffset:f}=l,p=l.borderAlign==="inner";if(!c)return;e.setLineDash(d||[]),e.lineDashOffset=f,p?(e.lineWidth=c*2,e.lineJoin=u||"round"):(e.lineWidth=c,e.lineJoin=u||"bevel");let h=t.endAngle;if(i){Bu(e,t,n,r,h,a);for(let g=0;g<i;++g)e.stroke();isNaN(A)||(h=s+(A%Ze||Ze))}p&&N7(e,t,h),i||(Bu(e,t,n,r,h,a),e.stroke())}class _s extends An{constructor(n){super();R(this,"circumference");R(this,"endAngle");R(this,"fullCircles");R(this,"innerRadius");R(this,"outerRadius");R(this,"pixelMargin");R(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,n&&Object.assign(this,n)}inRange(n,r,a){const i=this.getProps(["x","y"],a),{angle:s,distance:A}=Mb(i,{x:n,y:r}),{startAngle:l,endAngle:c,innerRadius:u,outerRadius:d,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],a),p=(this.options.spacing+this.options.borderWidth)/2,g=de(f,c-l)>=Ze||DA(s,l,c),B=Gr(A,u+p,d+p);return g&&B}getCenterPoint(n){const{x:r,y:a,startAngle:i,endAngle:s,innerRadius:A,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:c,spacing:u}=this.options,d=(i+s)/2,f=(A+l+u+c)/2;return{x:r+Math.cos(d)*f,y:a+Math.sin(d)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){const{options:r,circumference:a}=this,i=(r.offset||0)/4,s=(r.spacing||0)/2,A=r.circular;if(this.pixelMargin=r.borderAlign==="inner"?.33:0,this.fullCircles=a>Ze?Math.floor(a/Ze):0,a===0||this.innerRadius<0||this.outerRadius<0)return;n.save();const l=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(l)*i,Math.sin(l)*i);const c=1-Math.sin(Math.min(Qe,a||0)),u=i*c;n.fillStyle=r.backgroundColor,n.strokeStyle=r.borderColor,R7(n,this,u,s,A),V7(n,this,u,s,A),n.restore()}}R(_s,"id","arc"),R(_s,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),R(_s,"defaultRoutes",{backgroundColor:"backgroundColor"}),R(_s,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function g_(e,t,n=t){e.lineCap=de(n.borderCapStyle,t.borderCapStyle),e.setLineDash(de(n.borderDash,t.borderDash)),e.lineDashOffset=de(n.borderDashOffset,t.borderDashOffset),e.lineJoin=de(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=de(n.borderWidth,t.borderWidth),e.strokeStyle=de(n.borderColor,t.borderColor)}function K7(e,t,n){e.lineTo(n.x,n.y)}function $7(e){return e.stepped?pO:e.tension||e.cubicInterpolationMode==="monotone"?hO:K7}function v_(e,t,n={}){const r=e.length,{start:a=0,end:i=r-1}=n,{start:s,end:A}=t,l=Math.max(a,s),c=Math.min(i,A),u=a<s&&i<s||a>A&&i>A;return{count:r,start:l,loop:t.loop,ilen:c<l&&!u?r+c-l:c-l}}function z7(e,t,n,r){const{points:a,options:i}=t,{count:s,start:A,loop:l,ilen:c}=v_(a,n,r),u=$7(i);let{move:d=!0,reverse:f}=r||{},p,h,g;for(p=0;p<=c;++p)h=a[(A+(f?c-p:p))%s],!h.skip&&(d?(e.moveTo(h.x,h.y),d=!1):u(e,g,h,f,i.stepped),g=h);return l&&(h=a[(A+(f?c:0))%s],u(e,g,h,f,i.stepped)),!!l}function W7(e,t,n,r){const a=t.points,{count:i,start:s,ilen:A}=v_(a,n,r),{move:l=!0,reverse:c}=r||{};let u=0,d=0,f,p,h,g,B,m;const v=y=>(s+(c?A-y:y))%i,w=()=>{g!==B&&(e.lineTo(u,B),e.lineTo(u,g),e.lineTo(u,m))};for(l&&(p=a[v(0)],e.moveTo(p.x,p.y)),f=0;f<=A;++f){if(p=a[v(f)],p.skip)continue;const y=p.x,b=p.y,_=y|0;_===h?(b<g?g=b:b>B&&(B=b),u=(d*u+y)/++d):(w(),e.lineTo(y,b),h=_,d=0,g=B=b),m=b}w()}function Gp(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?W7:z7}function G7(e){return e.stepped?GO:e.tension||e.cubicInterpolationMode==="monotone"?jO:gi}function j7(e,t,n,r){let a=t._path;a||(a=t._path=new Path2D,t.path(a,n,r)&&a.closePath()),g_(e,t.options),e.stroke(a)}function Y7(e,t,n,r){const{segments:a,options:i}=t,s=Gp(t);for(const A of a)g_(e,i,A.style),e.beginPath(),s(e,t,A,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const q7=typeof Path2D=="function";function X7(e,t,n,r){q7&&!t.options.segment?j7(e,t,n,r):Y7(e,t,n,r)}class Da extends An{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const a=r.spanGaps?this._loop:this._fullLoop;PO(this._points,r,t,a,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=eM(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,a=t[n],i=this.points,s=a_(this,{property:n,start:a,end:a});if(!s.length)return;const A=[],l=G7(r);let c,u;for(c=0,u=s.length;c<u;++c){const{start:d,end:f}=s[c],p=i[d],h=i[f];if(p===h){A.push(p);continue}const g=Math.abs((a-p[n])/(h[n]-p[n])),B=l(p,h,g,r.stepped);B[n]=t[n],A.push(B)}return A.length===1?A[0]:A}pathSegment(t,n,r){return Gp(this)(t,this,n,r)}path(t,n,r){const a=this.segments,i=Gp(this);let s=this._loop;n=n||0,r=r||this.points.length-n;for(const A of a)s&=i(t,this,A,{start:n,end:n+r-1});return!!s}draw(t,n,r,a){const i=this.options||{};(this.points||[]).length&&i.borderWidth&&(t.save(),X7(t,this,r,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}R(Da,"id","line"),R(Da,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),R(Da,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),R(Da,"descriptors",{_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"});function ly(e,t,n,r){const a=e.options,{[n]:i}=e.getProps([n],r);return Math.abs(t-i)<a.radius+a.hitRadius}class rA extends An{constructor(n){super();R(this,"parsed");R(this,"skip");R(this,"stop");this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,n&&Object.assign(this,n)}inRange(n,r,a){const i=this.options,{x:s,y:A}=this.getProps(["x","y"],a);return Math.pow(n-s,2)+Math.pow(r-A,2)<Math.pow(i.hitRadius+i.radius,2)}inXRange(n,r){return ly(this,n,"x",r)}inYRange(n,r){return ly(this,n,"y",r)}getCenterPoint(n){const{x:r,y:a}=this.getProps(["x","y"],n);return{x:r,y:a}}size(n){n=n||this.options||{};let r=n.radius||0;r=Math.max(r,r&&n.hoverRadius||0);const a=r&&n.borderWidth||0;return(r+a)*2}draw(n,r){const a=this.options;this.skip||a.radius<.1||!Yr(this,r,this.size(a)/2)||(n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.fillStyle=a.backgroundColor,Kp(n,a,this.x,this.y))}getRange(){const n=this.options||{};return n.radius+n.hitRadius}}R(rA,"id","point"),R(rA,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),R(rA,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});function y_(e,t){const{x:n,y:r,base:a,width:i,height:s}=e.getProps(["x","y","base","width","height"],t);let A,l,c,u,d;return e.horizontal?(d=s/2,A=Math.min(n,a),l=Math.max(n,a),c=r-d,u=r+d):(d=i/2,A=n-d,l=n+d,c=Math.min(r,a),u=Math.max(r,a)),{left:A,top:c,right:l,bottom:u}}function Qa(e,t,n,r){return e?0:Pt(t,n,r)}function J7(e,t,n){const r=e.options.borderWidth,a=e.borderSkipped,i=Wb(r);return{t:Qa(a.top,i.top,0,n),r:Qa(a.right,i.right,0,t),b:Qa(a.bottom,i.bottom,0,n),l:Qa(a.left,i.left,0,t)}}function Z7(e,t,n){const{enableBorderRadius:r}=e.getProps(["enableBorderRadius"]),a=e.options.borderRadius,i=Ra(a),s=Math.min(t,n),A=e.borderSkipped,l=r||we(a);return{topLeft:Qa(!l||A.top||A.left,i.topLeft,0,s),topRight:Qa(!l||A.top||A.right,i.topRight,0,s),bottomLeft:Qa(!l||A.bottom||A.left,i.bottomLeft,0,s),bottomRight:Qa(!l||A.bottom||A.right,i.bottomRight,0,s)}}function eN(e){const t=y_(e),n=t.right-t.left,r=t.bottom-t.top,a=J7(e,n/2,r/2),i=Z7(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:i},inner:{x:t.left+a.l,y:t.top+a.t,w:n-a.l-a.r,h:r-a.t-a.b,radius:{topLeft:Math.max(0,i.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,i.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,i.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,i.bottomRight-Math.max(a.b,a.r))}}}}function xf(e,t,n,r){const a=t===null,i=n===null,A=e&&!(a&&i)&&y_(e,r);return A&&(a||Gr(t,A.left,A.right))&&(i||Gr(n,A.top,A.bottom))}function tN(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function nN(e,t){e.rect(t.x,t.y,t.w,t.h)}function Ff(e,t,n={}){const r=e.x!==n.x?-t:0,a=e.y!==n.y?-t:0,i=(e.x+e.w!==n.x+n.w?t:0)-r,s=(e.y+e.h!==n.y+n.h?t:0)-a;return{x:e.x+r,y:e.y+a,w:e.w+i,h:e.h+s,radius:e.radius}}class aA extends An{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:n,options:{borderColor:r,backgroundColor:a}}=this,{inner:i,outer:s}=eN(this),A=tN(s.radius)?$s:nN;t.save(),(s.w!==i.w||s.h!==i.h)&&(t.beginPath(),A(t,Ff(s,n,i)),t.clip(),A(t,Ff(i,-n,s)),t.fillStyle=r,t.fill("evenodd")),t.beginPath(),A(t,Ff(i,n)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,n,r){return xf(this,t,n,r)}inXRange(t,n){return xf(this,t,null,n)}inYRange(t,n){return xf(this,null,t,n)}getCenterPoint(t){const{x:n,y:r,base:a,horizontal:i}=this.getProps(["x","y","base","horizontal"],t);return{x:i?(n+a)/2:n,y:i?r:(r+a)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}R(aA,"id","bar"),R(aA,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),R(aA,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var rN=Object.freeze({__proto__:null,ArcElement:_s,BarElement:aA,LineElement:Da,PointElement:rA});const jp=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],cy=jp.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function B_(e){return jp[e%jp.length]}function w_(e){return cy[e%cy.length]}function aN(e,t){return e.borderColor=B_(t),e.backgroundColor=w_(t),++t}function iN(e,t){return e.backgroundColor=e.data.map(()=>B_(t++)),t}function sN(e,t){return e.backgroundColor=e.data.map(()=>w_(t++)),t}function oN(e){let t=0;return(n,r)=>{const a=e.getDatasetMeta(r).controller;a instanceof _i?t=iN(n,t):a instanceof nA?t=sN(n,t):a&&(t=aN(n,t))}}function uy(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function AN(e){return e&&(e.borderColor||e.backgroundColor)}var lN={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,n){if(!n.enabled)return;const{data:{datasets:r},options:a}=e.config,{elements:i}=a;if(!n.forceOverride&&(uy(r)||AN(a)||i&&uy(i)))return;const s=oN(e);r.forEach(s)}};function cN(e,t,n,r,a){const i=a.samples||r;if(i>=n)return e.slice(t,t+n);const s=[],A=(n-2)/(i-2);let l=0;const c=t+n-1;let u=t,d,f,p,h,g;for(s[l++]=e[u],d=0;d<i-2;d++){let B=0,m=0,v;const w=Math.floor((d+1)*A)+1+t,y=Math.min(Math.floor((d+2)*A)+1,n)+t,b=y-w;for(v=w;v<y;v++)B+=e[v].x,m+=e[v].y;B/=b,m/=b;const _=Math.floor(d*A)+1+t,C=Math.min(Math.floor((d+1)*A)+1,n)+t,{x:E,y:S}=e[u];for(p=h=-1,v=_;v<C;v++)h=.5*Math.abs((E-B)*(e[v].y-S)-(E-e[v].x)*(m-S)),h>p&&(p=h,f=e[v],g=v);s[l++]=f,u=g}return s[l++]=e[c],s}function uN(e,t,n,r){let a=0,i=0,s,A,l,c,u,d,f,p,h,g;const B=[],m=t+n-1,v=e[t].x,y=e[m].x-v;for(s=t;s<t+n;++s){A=e[s],l=(A.x-v)/y*r,c=A.y;const b=l|0;if(b===u)c<h?(h=c,d=s):c>g&&(g=c,f=s),a=(i*a+A.x)/++i;else{const _=s-1;if(!Ee(d)&&!Ee(f)){const C=Math.min(d,f),E=Math.max(d,f);C!==p&&C!==_&&B.push({...e[C],x:a}),E!==p&&E!==_&&B.push({...e[E],x:a})}s>0&&_!==p&&B.push(e[_]),B.push(A),u=b,i=0,h=g=c,d=f=p=s}}return B}function b_(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function dy(e){e.data.datasets.forEach(t=>{b_(t)})}function dN(e,t){const n=t.length;let r=0,a;const{iScale:i}=e,{min:s,max:A,minDefined:l,maxDefined:c}=i.getUserBounds();return l&&(r=Pt(jr(t,i.axis,s).lo,0,n-1)),c?a=Pt(jr(t,i.axis,A).hi+1,r,n)-r:a=n-r,{start:r,count:a}}var fN={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,n)=>{if(!n.enabled){dy(e);return}const r=e.width;e.data.datasets.forEach((a,i)=>{const{_data:s,indexAxis:A}=a,l=e.getDatasetMeta(i),c=s||a.data;if(rt([A,e.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const u=e.scales[l.xAxisID];if(u.type!=="linear"&&u.type!=="time"||e.options.parsing)return;let{start:d,count:f}=dN(l,c);const p=n.threshold||4*r;if(f<=p){b_(a);return}Ee(s)&&(a._data=c,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}}));let h;switch(n.algorithm){case"lttb":h=cN(c,d,f,r,n);break;case"min-max":h=uN(c,d,f,r);break;default:throw new Error(`Unsupported decimation algorithm '${n.algorithm}'`)}a._decimated=h})},destroy(e){dy(e)}};function pN(e,t,n){const r=e.segments,a=e.points,i=t.points,s=[];for(const A of r){let{start:l,end:c}=A;c=rg(l,c,a);const u=Yp(n,a[l],a[c],A.loop);if(!t.segments){s.push({source:A,target:u,start:a[l],end:a[c]});continue}const d=a_(t,u);for(const f of d){const p=Yp(n,i[f.start],i[f.end],f.loop),h=r_(A,a,p);for(const g of h)s.push({source:g,target:f,start:{[n]:fy(u,p,"start",Math.max)},end:{[n]:fy(u,p,"end",Math.min)}})}}return s}function Yp(e,t,n,r){if(r)return;let a=t[e],i=n[e];return e==="angle"&&(a=kn(a),i=kn(i)),{property:e,start:a,end:i}}function hN(e,t){const{x:n=null,y:r=null}=e||{},a=t.points,i=[];return t.segments.forEach(({start:s,end:A})=>{A=rg(s,A,a);const l=a[s],c=a[A];r!==null?(i.push({x:l.x,y:r}),i.push({x:c.x,y:r})):n!==null&&(i.push({x:n,y:l.y}),i.push({x:n,y:c.y}))}),i}function rg(e,t,n){for(;t>e;t--){const r=n[t];if(!isNaN(r.x)&&!isNaN(r.y))break}return t}function fy(e,t,n,r){return e&&t?r(e[n],t[n]):e?e[n]:t?t[n]:0}function __(e,t){let n=[],r=!1;return Me(e)?(r=!0,n=e):n=hN(e,t),n.length?new Da({points:n,options:{tension:0},_loop:r,_fullLoop:r}):null}function py(e){return e&&e.fill!==!1}function mN(e,t,n){let a=e[t].fill;const i=[t];let s;if(!n)return a;for(;a!==!1&&i.indexOf(a)===-1;){if(!ft(a))return a;if(s=e[a],!s)return!1;if(s.visible)return a;i.push(a),a=s.fill}return!1}function gN(e,t,n){const r=wN(e);if(we(r))return isNaN(r.value)?!1:r;let a=parseFloat(r);return ft(a)&&Math.floor(a)===a?vN(r[0],t,a,n):["origin","start","end","stack","shape"].indexOf(r)>=0&&r}function vN(e,t,n,r){return(e==="-"||e==="+")&&(n=t+n),n===t||n<0||n>=r?!1:n}function yN(e,t){let n=null;return e==="start"?n=t.bottom:e==="end"?n=t.top:we(e)?n=t.getPixelForValue(e.value):t.getBasePixel&&(n=t.getBasePixel()),n}function BN(e,t,n){let r;return e==="start"?r=n:e==="end"?r=t.options.reverse?t.min:t.max:we(e)?r=e.value:r=t.getBaseValue(),r}function wN(e){const t=e.options,n=t.fill;let r=de(n&&n.target,n);return r===void 0&&(r=!!t.backgroundColor),r===!1||r===null?!1:r===!0?"origin":r}function bN(e){const{scale:t,index:n,line:r}=e,a=[],i=r.segments,s=r.points,A=_N(t,n);A.push(__({x:null,y:t.bottom},r));for(let l=0;l<i.length;l++){const c=i[l];for(let u=c.start;u<=c.end;u++)CN(a,s[u],A)}return new Da({points:a,options:{}})}function _N(e,t){const n=[],r=e.getMatchingVisibleMetas("line");for(let a=0;a<r.length;a++){const i=r[a];if(i.index===t)break;i.hidden||n.unshift(i.dataset)}return n}function CN(e,t,n){const r=[];for(let a=0;a<n.length;a++){const i=n[a],{first:s,last:A,point:l}=kN(i,t,"x");if(!(!l||s&&A)){if(s)r.unshift(l);else if(e.push(l),!A)break}}e.push(...r)}function kN(e,t,n){const r=e.interpolate(t,n);if(!r)return{};const a=r[n],i=e.segments,s=e.points;let A=!1,l=!1;for(let c=0;c<i.length;c++){const u=i[c],d=s[u.start][n],f=s[u.end][n];if(Gr(a,d,f)){A=a===d,l=a===f;break}}return{first:A,last:l,point:r}}class C_{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,n,r){const{x:a,y:i,radius:s}=this;return n=n||{start:0,end:Ze},t.arc(a,i,s,n.end,n.start,!0),!r.bounds}interpolate(t){const{x:n,y:r,radius:a}=this,i=t.angle;return{x:n+Math.cos(i)*a,y:r+Math.sin(i)*a,angle:i}}}function EN(e){const{chart:t,fill:n,line:r}=e;if(ft(n))return SN(t,n);if(n==="stack")return bN(e);if(n==="shape")return!0;const a=xN(e);return a instanceof C_?a:__(a,r)}function SN(e,t){const n=e.getDatasetMeta(t);return n&&e.isDatasetVisible(t)?n.dataset:null}function xN(e){return(e.scale||{}).getPointPositionForValue?IN(e):FN(e)}function FN(e){const{scale:t={},fill:n}=e,r=yN(n,t);if(ft(r)){const a=t.isHorizontal();return{x:a?r:null,y:a?null:r}}return null}function IN(e){const{scale:t,fill:n}=e,r=t.options,a=t.getLabels().length,i=r.reverse?t.max:t.min,s=BN(n,t,i),A=[];if(r.grid.circular){const l=t.getPointPositionForValue(0,i);return new C_({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(s)})}for(let l=0;l<a;++l)A.push(t.getPointPositionForValue(l,s));return A}function If(e,t,n){const r=EN(t),{line:a,scale:i,axis:s}=t,A=a.options,l=A.fill,c=A.backgroundColor,{above:u=c,below:d=c}=l||{};r&&a.points.length&&(ll(e,n),TN(e,{line:a,target:r,above:u,below:d,area:n,scale:i,axis:s}),cl(e))}function TN(e,t){const{line:n,target:r,above:a,below:i,area:s,scale:A}=t,l=n._loop?"angle":t.axis;e.save(),l==="x"&&i!==a&&(hy(e,r,s.top),my(e,{line:n,target:r,color:a,scale:A,property:l}),e.restore(),e.save(),hy(e,r,s.bottom)),my(e,{line:n,target:r,color:i,scale:A,property:l}),e.restore()}function hy(e,t,n){const{segments:r,points:a}=t;let i=!0,s=!1;e.beginPath();for(const A of r){const{start:l,end:c}=A,u=a[l],d=a[rg(l,c,a)];i?(e.moveTo(u.x,u.y),i=!1):(e.lineTo(u.x,n),e.lineTo(u.x,u.y)),s=!!t.pathSegment(e,A,{move:s}),s?e.closePath():e.lineTo(d.x,n)}e.lineTo(t.first().x,n),e.closePath(),e.clip()}function my(e,t){const{line:n,target:r,property:a,color:i,scale:s}=t,A=pN(n,r,a);for(const{source:l,target:c,start:u,end:d}of A){const{style:{backgroundColor:f=i}={}}=l,p=r!==!0;e.save(),e.fillStyle=f,UN(e,s,p&&Yp(a,u,d)),e.beginPath();const h=!!n.pathSegment(e,l);let g;if(p){h?e.closePath():gy(e,r,d,a);const B=!!r.pathSegment(e,c,{move:h,reverse:!0});g=h&&B,g||gy(e,r,u,a)}e.closePath(),e.fill(g?"evenodd":"nonzero"),e.restore()}}function UN(e,t,n){const{top:r,bottom:a}=t.chart.chartArea,{property:i,start:s,end:A}=n||{};i==="x"&&(e.beginPath(),e.rect(s,r,A-s,a-r),e.clip())}function gy(e,t,n,r){const a=t.interpolate(n,r);a&&e.lineTo(a.x,a.y)}var DN={id:"filler",afterDatasetsUpdate(e,t,n){const r=(e.data.datasets||[]).length,a=[];let i,s,A,l;for(s=0;s<r;++s)i=e.getDatasetMeta(s),A=i.dataset,l=null,A&&A.options&&A instanceof Da&&(l={visible:e.isDatasetVisible(s),index:s,fill:gN(A,s,r),chart:e,axis:i.controller.options.indexAxis,scale:i.vScale,line:A}),i.$filler=l,a.push(l);for(s=0;s<r;++s)l=a[s],!(!l||l.fill===!1)&&(l.fill=mN(a,s,n.propagate))},beforeDraw(e,t,n){const r=n.drawTime==="beforeDraw",a=e.getSortedVisibleDatasetMetas(),i=e.chartArea;for(let s=a.length-1;s>=0;--s){const A=a[s].$filler;A&&(A.line.updateControlPoints(i,A.axis),r&&A.fill&&If(e.ctx,A,i))}},beforeDatasetsDraw(e,t,n){if(n.drawTime!=="beforeDatasetsDraw")return;const r=e.getSortedVisibleDatasetMetas();for(let a=r.length-1;a>=0;--a){const i=r[a].$filler;py(i)&&If(e.ctx,i,e.chartArea)}},beforeDatasetDraw(e,t,n){const r=t.meta.$filler;!py(r)||n.drawTime!=="beforeDatasetDraw"||If(e.ctx,r,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const vy=(e,t)=>{let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},QN=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class yy extends An{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=Re(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,a)=>t.sort(r,a,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,a=ht(r.font),i=a.size,s=this._computeTitleHeight(),{boxWidth:A,itemHeight:l}=vy(r,i);let c,u;n.font=a.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(s,i,A,l)+10):(u=this.maxHeight,c=this._fitCols(s,a,A,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,a){const{ctx:i,maxWidth:s,options:{labels:{padding:A}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=a+A;let d=t;i.textAlign="left",i.textBaseline="middle";let f=-1,p=-u;return this.legendItems.forEach((h,g)=>{const B=r+n/2+i.measureText(h.text).width;(g===0||c[c.length-1]+B+2*A>s)&&(d+=u,c[c.length-(g>0?0:1)]=0,p+=u,f++),l[g]={left:0,top:p,row:f,width:B,height:a},c[c.length-1]+=B+A}),d}_fitCols(t,n,r,a){const{ctx:i,maxHeight:s,options:{labels:{padding:A}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=s-t;let d=A,f=0,p=0,h=0,g=0;return this.legendItems.forEach((B,m)=>{const{itemWidth:v,itemHeight:w}=LN(r,n,i,B,a);m>0&&p+w+2*A>u&&(d+=f+A,c.push({width:f,height:p}),h+=f+A,g++,f=p=0),l[m]={left:h,top:p,col:g,width:v,height:w},f=Math.max(f,v),p+=w+A}),d+=f,c.push({width:f,height:p}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:a},rtl:i}}=this,s=Ss(i,this.left,this.width);if(this.isHorizontal()){let A=0,l=jt(r,this.left+a,this.right-this.lineWidths[A]);for(const c of n)A!==c.row&&(A=c.row,l=jt(r,this.left+a,this.right-this.lineWidths[A])),c.top+=this.top+t+a,c.left=s.leftForLtr(s.x(l),c.width),l+=c.width+a}else{let A=0,l=jt(r,this.top+t+a,this.bottom-this.columnSizes[A].height);for(const c of n)c.col!==A&&(A=c.col,l=jt(r,this.top+t+a,this.bottom-this.columnSizes[A].height)),c.top=l,c.left+=this.left+a,c.left=s.leftForLtr(s.x(c.left),c.width),l+=c.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;ll(t,this),this._draw(),cl(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:a}=this,{align:i,labels:s}=t,A=pt.color,l=Ss(t.rtl,this.left,this.width),c=ht(s.font),{padding:u}=s,d=c.size,f=d/2;let p;this.drawTitle(),a.textAlign=l.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;const{boxWidth:h,boxHeight:g,itemHeight:B}=vy(s,d),m=function(_,C,E){if(isNaN(h)||h<=0||isNaN(g)||g<0)return;a.save();const S=de(E.lineWidth,1);if(a.fillStyle=de(E.fillStyle,A),a.lineCap=de(E.lineCap,"butt"),a.lineDashOffset=de(E.lineDashOffset,0),a.lineJoin=de(E.lineJoin,"miter"),a.lineWidth=S,a.strokeStyle=de(E.strokeStyle,A),a.setLineDash(de(E.lineDash,[])),s.usePointStyle){const D={radius:g*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:S},T=l.xPlus(_,h/2),F=C+f;zb(a,D,T,F,s.pointStyleWidth&&h)}else{const D=C+Math.max((d-g)/2,0),T=l.leftForLtr(_,h),F=Ra(E.borderRadius);a.beginPath(),Object.values(F).some(U=>U!==0)?$s(a,{x:T,y:D,w:h,h:g,radius:F}):a.rect(T,D,h,g),a.fill(),S!==0&&a.stroke()}a.restore()},v=function(_,C,E){Ri(a,E.text,_,C+B/2,c,{strikethrough:E.hidden,textAlign:l.textAlign(E.textAlign)})},w=this.isHorizontal(),y=this._computeTitleHeight();w?p={x:jt(i,this.left+u,this.right-r[0]),y:this.top+u+y,line:0}:p={x:this.left+u,y:jt(i,this.top+y+u,this.bottom-n[0].height),line:0},e_(this.ctx,t.textDirection);const b=B+u;this.legendItems.forEach((_,C)=>{a.strokeStyle=_.fontColor,a.fillStyle=_.fontColor;const E=a.measureText(_.text).width,S=l.textAlign(_.textAlign||(_.textAlign=s.textAlign)),D=h+f+E;let T=p.x,F=p.y;l.setWidth(this.width),w?C>0&&T+D+u>this.right&&(F=p.y+=b,p.line++,T=p.x=jt(i,this.left+u,this.right-r[p.line])):C>0&&F+b>this.bottom&&(T=p.x=T+n[p.line].width+u,p.line++,F=p.y=jt(i,this.top+y+u,this.bottom-n[p.line].height));const U=l.x(T);if(m(U,F,_),T=rO(S,T+h+f,w?T+D:this.right,t.rtl),v(l.x(T),F,_),w)p.x+=D+u;else if(typeof _.text!="string"){const Y=c.lineHeight;p.y+=k_(_,Y)}else p.y+=b}),t_(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=ht(n.font),a=Et(n.padding);if(!n.display)return;const i=Ss(t.rtl,this.left,this.width),s=this.ctx,A=n.position,l=r.size/2,c=a.top+l;let u,d=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),u=this.top+c,d=jt(t.align,d,this.right-f);else{const h=this.columnSizes.reduce((g,B)=>Math.max(g,B.height),0);u=c+jt(t.align,this.top,this.bottom-h-t.labels.padding-this._computeTitleHeight())}const p=jt(A,d,d+f);s.textAlign=i.textAlign(jm(A)),s.textBaseline="middle",s.strokeStyle=n.color,s.fillStyle=n.color,s.font=r.string,Ri(s,n.text,p,u,r)}_computeTitleHeight(){const t=this.options.title,n=ht(t.font),r=Et(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,a,i;if(Gr(t,this.left,this.right)&&Gr(n,this.top,this.bottom)){for(i=this.legendHitBoxes,r=0;r<i.length;++r)if(a=i[r],Gr(t,a.left,a.left+a.width)&&Gr(n,a.top,a.top+a.height))return this.legendItems[r]}return null}handleEvent(t){const n=this.options;if(!NN(t.type,n))return;const r=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const a=this._hoveredItem,i=QN(a,r);a&&!i&&Re(n.onLeave,[t,a,this],this),this._hoveredItem=r,r&&!i&&Re(n.onHover,[t,r,this],this)}else r&&Re(n.onClick,[t,r,this],this)}}function LN(e,t,n,r,a){const i=ON(r,e,t,n),s=MN(a,r,t.lineHeight);return{itemWidth:i,itemHeight:s}}function ON(e,t,n,r){let a=e.text;return a&&typeof a!="string"&&(a=a.reduce((i,s)=>i.length>s.length?i:s)),t+n.size/2+r.measureText(a).width}function MN(e,t,n){let r=e;return typeof t.text!="string"&&(r=k_(t,n)),r}function k_(e,t){const n=e.text?e.text.length+.5:0;return t*n}function NN(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var PN={id:"legend",_element:yy,start(e,t,n){const r=e.legend=new yy({ctx:e.ctx,options:n,chart:e});Xt.configure(e,r,n),Xt.addBox(e,r)},stop(e){Xt.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;Xt.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,a=n.chart;a.isDatasetVisible(r)?(a.hide(r),t.hidden=!0):(a.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:a,color:i,useBorderRadius:s,borderRadius:A}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Et(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:i,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:a||c.textAlign,borderRadius:s&&(A||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ag extends An{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const a=Me(r.text)?r.text.length:1;this._padding=Et(r.padding);const i=a*ht(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=i:this.width=i}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:a,right:i,options:s}=this,A=s.align;let l=0,c,u,d;return this.isHorizontal()?(u=jt(A,r,i),d=n+t,c=i-r):(s.position==="left"?(u=r+t,d=jt(A,a,n),l=Qe*-.5):(u=i-t,d=jt(A,n,a),l=Qe*.5),c=a-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=ht(n.font),i=r.lineHeight/2+this._padding.top,{titleX:s,titleY:A,maxWidth:l,rotation:c}=this._drawArgs(i);Ri(t,n.text,0,0,r,{color:n.color,maxWidth:l,rotation:c,textAlign:jm(n.align),textBaseline:"middle",translation:[s,A]})}}function HN(e,t){const n=new ag({ctx:e.ctx,options:t,chart:e});Xt.configure(e,n,t),Xt.addBox(e,n),e.titleBlock=n}var RN={id:"title",_element:ag,start(e,t,n){HN(e,n)},stop(e){const t=e.titleBlock;Xt.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;Xt.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const tc=new WeakMap;var VN={id:"subtitle",start(e,t,n){const r=new ag({ctx:e.ctx,options:n,chart:e});Xt.configure(e,r,n),Xt.addBox(e,r),tc.set(e,r)},stop(e){Xt.removeBox(e,tc.get(e)),tc.delete(e)},beforeUpdate(e,t,n){const r=tc.get(e);Xt.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Qo={average(e){if(!e.length)return!1;let t,n,r=0,a=0,i=0;for(t=0,n=e.length;t<n;++t){const s=e[t].element;if(s&&s.hasValue()){const A=s.tooltipPosition();r+=A.x,a+=A.y,++i}}return{x:r/i,y:a/i}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,a=Number.POSITIVE_INFINITY,i,s,A;for(i=0,s=e.length;i<s;++i){const l=e[i].element;if(l&&l.hasValue()){const c=l.getCenterPoint(),u=Ks(t,c);u<a&&(a=u,A=l)}}if(A){const l=A.tooltipPosition();n=l.x,r=l.y}return{x:n,y:r}}};function dr(e,t){return t&&(Me(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Rr(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
|
|
841
841
|
`)>-1?e.split(`
|
|
842
|
-
`):e}function KN(e,t){const{element:n,datasetIndex:r,index:a}=t,i=e.getDatasetMeta(r).controller,{label:s,value:A}=i.getLabelAndValue(a);return{chart:e,label:s,parsed:i.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:A,dataset:i.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function By(e,t){const n=e.chart.ctx,{body:r,footer:a,title:i}=e,{boxWidth:s,boxHeight:A}=t,l=ht(t.bodyFont),c=ht(t.titleFont),u=ht(t.footerFont),d=i.length,f=a.length,p=r.length,h=Et(t.padding);let g=h.height,B=0,m=r.reduce((y,b)=>y+b.before.length+b.lines.length+b.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),m){const y=t.displayColors?Math.max(A,l.lineHeight):l.lineHeight;g+=p*y+(m-p)*l.lineHeight+(m-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0;const w=function(y){B=Math.max(B,n.measureText(y).width+v)};return n.save(),n.font=c.string,Ke(e.title,w),n.font=l.string,Ke(e.beforeBody.concat(e.afterBody),w),v=t.displayColors?s+2+t.boxPadding:0,Ke(r,y=>{Ke(y.before,w),Ke(y.lines,w),Ke(y.after,w)}),v=0,n.font=u.string,Ke(e.footer,w),n.restore(),B+=h.width,{width:B,height:g}}function $N(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function zN(e,t,n,r){const{x:a,width:i}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&a+i+s>t.width||e==="right"&&a-i-s<0)return!0}function WN(e,t,n,r){const{x:a,width:i}=n,{width:s,chartArea:{left:A,right:l}}=e;let c="center";return r==="center"?c=a<=(A+l)/2?"left":"right":a<=i/2?c="left":a>=s-i/2&&(c="right"),zN(c,e,t,n)&&(c="center"),c}function wy(e,t,n){const r=n.yAlign||t.yAlign||$N(e,n);return{xAlign:n.xAlign||t.xAlign||WN(e,t,n,r),yAlign:r}}function GN(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function jN(e,t,n){let{y:r,height:a}=e;return t==="top"?r+=n:t==="bottom"?r-=a+n:r-=a/2,r}function by(e,t,n,r){const{caretSize:a,caretPadding:i,cornerRadius:s}=e,{xAlign:A,yAlign:l}=n,c=a+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Ra(s);let h=GN(t,A);const g=jN(t,l,c);return l==="center"?A==="left"?h+=c:A==="right"&&(h-=c):A==="left"?h-=Math.max(u,f)+a:A==="right"&&(h+=Math.max(d,p)+a),{x:Pt(h,0,r.width-t.width),y:Pt(g,0,r.height-t.height)}}function nc(e,t,n){const r=Et(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function _y(e){return dr([],Rr(e))}function YN(e,t,n){return oi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Cy(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const E_={beforeTitle:Lr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Lr,beforeBody:Lr,beforeLabel:Lr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Ee(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Lr,afterBody:Lr,beforeFooter:Lr,footer:Lr,afterFooter:Lr};function cn(e,t,n,r){const a=e[t].call(n,r);return typeof a>"u"?E_[t].call(n,r):a}class qp extends An{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,i=new tg(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=YN(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,a=cn(r,"beforeTitle",this,t),i=cn(r,"title",this,t),s=cn(r,"afterTitle",this,t);let A=[];return A=dr(A,Rr(a)),A=dr(A,Rr(i)),A=dr(A,Rr(s)),A}getBeforeBody(t,n){return _y(cn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,a=[];return Ke(t,i=>{const s={before:[],lines:[],after:[]},A=Cy(r,i);dr(s.before,Rr(cn(A,"beforeLabel",this,i))),dr(s.lines,cn(A,"label",this,i)),dr(s.after,Rr(cn(A,"afterLabel",this,i))),a.push(s)}),a}getAfterBody(t,n){return _y(cn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,a=cn(r,"beforeFooter",this,t),i=cn(r,"footer",this,t),s=cn(r,"afterFooter",this,t);let A=[];return A=dr(A,Rr(a)),A=dr(A,Rr(i)),A=dr(A,Rr(s)),A}_createItems(t){const n=this._active,r=this.chart.data,a=[],i=[],s=[];let A=[],l,c;for(l=0,c=n.length;l<c;++l)A.push(KN(this.chart,n[l]));return t.filter&&(A=A.filter((u,d,f)=>t.filter(u,d,f,r))),t.itemSort&&(A=A.sort((u,d)=>t.itemSort(u,d,r))),Ke(A,u=>{const d=Cy(t.callbacks,u);a.push(cn(d,"labelColor",this,u)),i.push(cn(d,"labelPointStyle",this,u)),s.push(cn(d,"labelTextColor",this,u))}),this.labelColors=a,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=A,A}update(t,n){const r=this.options.setContext(this.getContext()),a=this._active;let i,s=[];if(!a.length)this.opacity!==0&&(i={opacity:0});else{const A=Qo[r.position].call(this,a,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=By(this,r),c=Object.assign({},A,l),u=wy(this.chart,r,c),d=by(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:A.x,caretY:A.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,a){const i=this.getCaretPosition(t,r,a);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:a,yAlign:i}=this,{caretSize:s,cornerRadius:A}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Ra(A),{x:f,y:p}=t,{width:h,height:g}=n;let B,m,v,w,y,b;return i==="center"?(y=p+g/2,a==="left"?(B=f,m=B-s,w=y+s,b=y-s):(B=f+h,m=B+s,w=y-s,b=y+s),v=B):(a==="left"?m=f+Math.max(l,u)+s:a==="right"?m=f+h-Math.max(c,d)-s:m=this.caretX,i==="top"?(w=p,y=w-s,B=m-s,v=m+s):(w=p+g,y=w+s,B=m+s,v=m-s),b=w),{x1:B,x2:m,x3:v,y1:w,y2:y,y3:b}}drawTitle(t,n,r){const a=this.title,i=a.length;let s,A,l;if(i){const c=Ss(r.rtl,this.x,this.width);for(t.x=nc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=ht(r.titleFont),A=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<i;++l)n.fillText(a[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+A,l+1===i&&(t.y+=r.titleMarginBottom-A)}}_drawColorBox(t,n,r,a,i){const s=this.labelColors[r],A=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=i,u=ht(i.bodyFont),d=nc(this,"left",i),f=a.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,h=n.y+p;if(i.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:1},B=a.leftForLtr(f,c)+c/2,m=h+l/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Kp(t,g,B,m),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,Kp(t,g,B,m)}else{t.lineWidth=we(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const g=a.leftForLtr(f,c),B=a.leftForLtr(a.xPlus(f,1),c-2),m=Ra(s.borderRadius);Object.values(m).some(v=>v!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,$s(t,{x:g,y:h,w:c,h:l,radius:m}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),$s(t,{x:B,y:h+1,w:c-2,h:l-2,radius:m}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(g,h,c,l),t.strokeRect(g,h,c,l),t.fillStyle=s.backgroundColor,t.fillRect(B,h+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:a}=this,{bodySpacing:i,bodyAlign:s,displayColors:A,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=ht(r.bodyFont);let f=d.lineHeight,p=0;const h=Ss(r.rtl,this.x,this.width),g=function(E){n.fillText(E,h.x(t.x+p),t.y+f/2),t.y+=f+i},B=h.textAlign(s);let m,v,w,y,b,_,C;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,t.x=nc(this,B,r),n.fillStyle=r.bodyColor,Ke(this.beforeBody,g),p=A&&B!=="right"?s==="center"?c/2+u:c+2+u:0,y=0,_=a.length;y<_;++y){for(m=a[y],v=this.labelTextColors[y],n.fillStyle=v,Ke(m.before,g),w=m.lines,A&&w.length&&(this._drawColorBox(n,t,y,h,r),f=Math.max(d.lineHeight,l)),b=0,C=w.length;b<C;++b)g(w[b]),f=d.lineHeight;Ke(m.after,g)}p=0,f=d.lineHeight,Ke(this.afterBody,g),t.y-=i}drawFooter(t,n,r){const a=this.footer,i=a.length;let s,A;if(i){const l=Ss(r.rtl,this.x,this.width);for(t.x=nc(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=ht(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,A=0;A<i;++A)n.fillText(a[A],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,a){const{xAlign:i,yAlign:s}=this,{x:A,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:h}=Ra(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(A+d,l),s==="top"&&this.drawCaret(t,n,r,a),n.lineTo(A+c-f,l),n.quadraticCurveTo(A+c,l,A+c,l+f),s==="center"&&i==="right"&&this.drawCaret(t,n,r,a),n.lineTo(A+c,l+u-h),n.quadraticCurveTo(A+c,l+u,A+c-h,l+u),s==="bottom"&&this.drawCaret(t,n,r,a),n.lineTo(A+p,l+u),n.quadraticCurveTo(A,l+u,A,l+u-p),s==="center"&&i==="left"&&this.drawCaret(t,n,r,a),n.lineTo(A,l+d),n.quadraticCurveTo(A,l,A+d,l),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,a=r&&r.x,i=r&&r.y;if(a||i){const s=Qo[t.position].call(this,this._active,this._eventPosition);if(!s)return;const A=this._size=By(this,t),l=Object.assign({},s,this._size),c=wy(n,t,l),u=by(t,l,c,n);(a._to!==u.x||i._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=A.width,this.height=A.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Et(n.padding),A=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&A&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,a,n),e_(t,n.textDirection),i.y+=s.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),t_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,a=t.map(({datasetIndex:A,index:l})=>{const c=this.chart.getDatasetMeta(A);if(!c)throw new Error("Cannot find a dataset at index "+A);return{datasetIndex:A,element:c.data[l],index:l}}),i=!fu(r,a),s=this._positionChanged(a,n);(i||s)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,i=this._active||[],s=this._getActiveElements(t,i,n,r),A=this._positionChanged(s,t),l=n||!fu(s,i)||A;return l&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,a){const i=this.options;if(t.type==="mouseout")return[];if(!a)return n;const s=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:a,options:i}=this,s=Qo[i.position].call(this,t,n);return s!==!1&&(r!==s.x||a!==s.y)}}R(qp,"positioners",Qo);var qN={id:"tooltip",_element:qp,positioners:Qo,afterInit(e,t,n){n&&(e.tooltip=new qp({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:E_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},XN=Object.freeze({__proto__:null,Colors:lN,Decimation:fN,Filler:DN,Legend:PN,SubTitle:VN,Title:RN,Tooltip:qN});const JN=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function ZN(e,t,n,r){const a=e.indexOf(t);if(a===-1)return JN(e,t,n,r);const i=e.lastIndexOf(t);return a!==i?n:a}const e9=(e,t)=>e===null?null:Pt(Math.round(e),0,t);function ky(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Xp extends ji{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:a,label:i}of n)r[a]===i&&r.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Ee(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:ZN(r,t,de(n,t),this._addedLabels),e9(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(a=this.getLabels().length-1)),this.min=r,this.max=a}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,a=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)a.push({value:s});return a}getLabelForValue(t){return ky.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}R(Xp,"id","category"),R(Xp,"defaults",{ticks:{callback:ky}});function t9(e,t){const n=[],{bounds:a,step:i,min:s,max:A,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=i||1,h=u-1,{min:g,max:B}=t,m=!Ee(s),v=!Ee(A),w=!Ee(c),y=(B-g)/(d+1);let b=y0((B-g)/h/p)*p,_,C,E,S;if(b<1e-14&&!m&&!v)return[{value:g},{value:B}];S=Math.ceil(B/b)-Math.floor(g/b),S>h&&(b=y0(S*b/h/p)*p),Ee(l)||(_=Math.pow(10,l),b=Math.ceil(b*_)/_),a==="ticks"?(C=Math.floor(g/b)*b,E=Math.ceil(B/b)*b):(C=g,E=B),m&&v&&i&&qL((A-s)/i,b/1e3)?(S=Math.round(Math.min((A-s)/b,u)),b=(A-s)/S,C=s,E=A):w?(C=m?s:C,E=v?A:E,S=c-1,b=(E-C)/S):(S=(E-C)/b,Zo(S,Math.round(S),b/1e3)?S=Math.round(S):S=Math.ceil(S));const D=Math.max(B0(b),B0(C));_=Math.pow(10,Ee(l)?D:l),C=Math.round(C*_)/_,E=Math.round(E*_)/_;let T=0;for(m&&(f&&C!==s?(n.push({value:s}),C<s&&T++,Zo(Math.round((C+T*b)*_)/_,s,Ey(s,y,e))&&T++):C<s&&T++);T<S;++T){const F=Math.round((C+T*b)*_)/_;if(v&&F>A)break;n.push({value:F})}return v&&f&&E!==A?n.length&&Zo(n[n.length-1].value,A,Ey(A,y,e))?n[n.length-1].value=A:n.push({value:A}):(!v||E===A)&&n.push({value:E}),n}function Ey(e,t,{horizontal:n,minRotation:r}){const a=xt(r),i=(n?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class wu extends ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Ee(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:a,max:i}=this;const s=l=>a=n?a:l,A=l=>i=r?i:l;if(t){const l=wr(a),c=wr(i);l<0&&c<0?A(0):l>0&&c>0&&s(0)}if(a===i){let l=i===0?1:Math.abs(i*.05);A(i+l),t||s(a-l)}this.min=a,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,a;return r?(a=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const a={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=t9(a,i);return t.bounds==="ticks"&&Ob(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const a=(r-n)/Math.max(t.length-1,1)/2;n-=a,r+=a}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Al(t,this.chart.options.locale,this.options.ticks.format)}}class Jp extends wu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ft(t)?t:0,this.max=ft(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=xt(this.options.ticks.minRotation),a=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}R(Jp,"id","linear"),R(Jp,"defaults",{ticks:{callback:od.formatters.numeric}});const LA=e=>Math.floor(Ua(e)),di=(e,t)=>Math.pow(10,LA(e)+t);function Sy(e){return e/Math.pow(10,LA(e))===1}function xy(e,t,n){const r=Math.pow(10,n),a=Math.floor(e/r);return Math.ceil(t/r)-a}function n9(e,t){const n=t-e;let r=LA(n);for(;xy(e,t,r)>10;)r++;for(;xy(e,t,r)<10;)r--;return Math.min(r,LA(e))}function r9(e,{min:t,max:n}){t=_n(e.min,t);const r=[],a=LA(t);let i=n9(t,n),s=i<0?Math.pow(10,Math.abs(i)):1;const A=Math.pow(10,i),l=a>i?Math.pow(10,a):0,c=Math.round((t-l)*s)/s,u=Math.floor((t-l)/A/10)*A*10;let d=Math.floor((c-u)/Math.pow(10,i)),f=_n(e.min,Math.round((l+u+d*Math.pow(10,i))*s)/s);for(;f<n;)r.push({value:f,major:Sy(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,s=i>=0?1:s),f=Math.round((l+u+d*Math.pow(10,i))*s)/s;const p=_n(e.max,f);return r.push({value:p,major:Sy(p),significand:d}),r}class Zp extends ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=wu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return ft(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ft(t)?Math.max(0,t):null,this.max=ft(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ft(this._userMin)&&(this.min=t===di(this.min,0)?di(this.min,-1):di(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,a=this.max;const i=A=>r=t?r:A,s=A=>a=n?a:A;r===a&&(r<=0?(i(1),s(10)):(i(di(r,-1)),s(di(a,1)))),r<=0&&i(di(a,-1)),a<=0&&s(di(r,1)),this.min=r,this.max=a}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=r9(n,this);return t.bounds==="ticks"&&Ob(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Al(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ua(t),this._valueRange=Ua(this.max)-Ua(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ua(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}R(Zp,"id","logarithmic"),R(Zp,"defaults",{ticks:{callback:od.formatters.logarithmic,major:{enabled:!0}}});function eh(e){const t=e.ticks;if(t.display&&e.display){const n=Et(t.backdropPadding);return de(t.font&&t.font.size,pt.font.size)+n.height}return 0}function a9(e,t,n){return n=Me(n)?n:[n],{w:fO(e,t.string,n),h:n.length*t.lineHeight}}function Fy(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function i9(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],a=[],i=e._pointLabels.length,s=e.options.pointLabels,A=s.centerPointLabels?Qe/i:0;for(let l=0;l<i;l++){const c=s.setContext(e.getPointLabelContext(l));a[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+a[l],A),d=ht(c.font),f=a9(e.ctx,d,e._pointLabels[l]);r[l]=f;const p=kn(e.getIndexAngle(l)+A),h=Math.round(sd(p)),g=Fy(h,u.x,f.w,0,180),B=Fy(h,u.y,f.h,90,270);s9(n,t,p,g,B)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=l9(e,r,a)}function s9(e,t,n,r,a){const i=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let A=0,l=0;r.start<t.l?(A=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-A)):r.end>t.r&&(A=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+A)),a.start<t.t?(l=(t.t-a.start)/s,e.t=Math.min(e.t,t.t-l)):a.end>t.b&&(l=(a.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function o9(e,t,n){const r=e.drawingArea,{extra:a,additionalAngle:i,padding:s,size:A}=n,l=e.getPointPosition(t,r+a+s,i),c=Math.round(sd(kn(l.angle+et))),u=d9(l.y,A.h,c),d=c9(c),f=u9(l.x,A.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+A.w,bottom:u+A.h}}function A9(e,t){if(!t)return!0;const{left:n,top:r,right:a,bottom:i}=e;return!(Yr({x:n,y:r},t)||Yr({x:n,y:i},t)||Yr({x:a,y:r},t)||Yr({x:a,y:i},t))}function l9(e,t,n){const r=[],a=e._pointLabels.length,i=e.options,{centerPointLabels:s,display:A}=i.pointLabels,l={extra:eh(i)/2,additionalAngle:s?Qe/a:0};let c;for(let u=0;u<a;u++){l.padding=n[u],l.size=t[u];const d=o9(e,u,l);r.push(d),A==="auto"&&(d.visible=A9(d,c),d.visible&&(c=d))}return r}function c9(e){return e===0||e===180?"center":e<180?"left":"right"}function u9(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function d9(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function f9(e,t,n){const{left:r,top:a,right:i,bottom:s}=n,{backdropColor:A}=t;if(!Ee(A)){const l=Ra(t.borderRadius),c=Et(t.backdropPadding);e.fillStyle=A;const u=r-c.left,d=a-c.top,f=i-r+c.width,p=s-a+c.height;Object.values(l).some(h=>h!==0)?(e.beginPath(),$s(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function p9(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let a=t-1;a>=0;a--){const i=e._pointLabelItems[a];if(!i.visible)continue;const s=r.setContext(e.getPointLabelContext(a));f9(n,s,i);const A=ht(s.font),{x:l,y:c,textAlign:u}=i;Ri(n,e._pointLabels[a],l,c+A.lineHeight/2,A,{color:s.color,textAlign:u,textBaseline:"middle"})}}function S_(e,t,n,r){const{ctx:a}=e;if(n)a.arc(e.xCenter,e.yCenter,t,0,Ze);else{let i=e.getPointPosition(0,t);a.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=e.getPointPosition(s,t),a.lineTo(i.x,i.y)}}function h9(e,t,n,r,a){const i=e.ctx,s=t.circular,{color:A,lineWidth:l}=t;!s&&!r||!A||!l||n<0||(i.save(),i.strokeStyle=A,i.lineWidth=l,i.setLineDash(a.dash),i.lineDashOffset=a.dashOffset,i.beginPath(),S_(e,n,s,r),i.closePath(),i.stroke(),i.restore())}function m9(e,t,n){return oi(e,{label:n,index:t,type:"pointLabel"})}class Lo extends wu{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Et(eh(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=ft(t)&&!isNaN(t)?t:0,this.max=ft(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/eh(this.options))}generateTickLabels(t){wu.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const a=Re(this.options.pointLabels.callback,[n,r],this);return a||a===0?a:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?i9(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,a){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,a))}getIndexAngle(t){const n=Ze/(this._pointLabels.length||1),r=this.options.startAngle||0;return kn(t*n+xt(r))}getDistanceFromCenterForValue(t){if(Ee(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Ee(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return m9(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const a=this.getIndexAngle(t)-et+r;return{x:Math.cos(a)*n+this.xCenter,y:Math.sin(a)*n+this.yCenter,angle:a}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:a,bottom:i}=this._pointLabelItems[t];return{left:n,top:r,right:a,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),S_(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:a,border:i}=n,s=this._pointLabels.length;let A,l,c;if(n.pointLabels.display&&p9(this,s),a.display&&this.ticks.forEach((u,d)=>{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=a.setContext(f),h=i.setContext(f);h9(this,p,l,s,h)}}),r.display){for(t.save(),A=s-1;A>=0;A--){const u=r.setContext(this.getPointLabelContext(A)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(A,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const a=this.getIndexAngle(0);let i,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((A,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=ht(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,s=t.measureText(A.label).width,t.fillStyle=c.backdropColor;const d=Et(c.backdropPadding);t.fillRect(-s/2-d.left,-i-u.size/2-d.top,s+d.width,u.size+d.height)}Ri(t,A.label,0,-i,u,{color:c.color})}),t.restore()}drawTitle(){}}R(Lo,"id","radialLinear"),R(Lo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:od.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),R(Lo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),R(Lo,"descriptors",{angleLines:{_fallback:"grid"}});const ld={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},mn=Object.keys(ld);function g9(e,t){return e-t}function Iy(e,t){if(Ee(t))return null;const n=e._adapter,{parser:r,round:a,isoWeekday:i}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),ft(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(a&&(s=a==="week"&&(Ja(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,a)),+s)}function Ty(e,t,n,r){const a=mn.length;for(let i=mn.indexOf(e);i<a-1;++i){const s=ld[mn[i]],A=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(A*s.size))<=r)return mn[i]}return mn[a-1]}function v9(e,t,n,r,a){for(let i=mn.length-1;i>=mn.indexOf(n);i--){const s=mn[i];if(ld[s].common&&e._adapter.diff(a,r,s)>=t-1)return s}return mn[n?mn.indexOf(n):0]}function y9(e){for(let t=mn.indexOf(e)+1,n=mn.length;t<n;++t)if(ld[mn[t]].common)return mn[t]}function Uy(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:a}=Gm(n,t),i=n[r]>=t?n[r]:n[a];e[i]=!0}}function B9(e,t,n,r){const a=e._adapter,i=+a.startOf(t[0].value,r),s=t[t.length-1].value;let A,l;for(A=i;A<=s;A=+a.add(A,1,r))l=n[A],l>=0&&(t[l].major=!0);return t}function Dy(e,t,n){const r=[],a={},i=t.length;let s,A;for(s=0;s<i;++s)A=t[s],a[A]=s,r.push({value:A,major:!1});return i===0||!n?r:B9(e,r,a,n)}class OA extends ji{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),a=this._adapter=new o_._date(t.adapters.date);a.init(n),Jo(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Iy(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:a,max:i,minDefined:s,maxDefined:A}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(a=Math.min(a,c.min)),!A&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!s||!A)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),a=ft(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),i=ft(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,i-1),this.max=Math.max(a+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const i=this.min,s=this.max,A=eO(a,i,s);return this._unit=n.unit||(r.autoSkip?Ty(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):v9(this,A.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:y9(this._unit),this.initOffsets(a),t.reverse&&A.reverse(),Dy(this,A,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,a,i;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?n=1-a:n=(this.getDecimalForValue(t[1])-a)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Pt(n,0,s),r=Pt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,a=this.options,i=a.time,s=i.unit||Ty(i.minUnit,n,r,this._getLabelCapacity(n)),A=de(a.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=Ja(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":s),t.diff(r,n,s)>1e5*A)throw new Error(n+" and "+r+" are too far apart with stepSize of "+A+" "+s);const h=a.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f<r;f=+t.add(f,A,s),p++)Uy(u,f,h);return(f===r||a.bounds==="ticks"||p===1)&&Uy(u,f,h),Object.keys(u).sort((g,B)=>g-B).map(g=>+g)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const a=this.options.time.displayFormats,i=this._unit,s=n||a[i];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,a){const i=this.options,s=i.ticks.callback;if(s)return Re(s,[t,n,r],this);const A=i.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&A[l],d=c&&A[c],f=r[n],p=c&&d&&f&&f.major;return this._adapter.format(t,a||(p?d:u))}generateTickLabels(t){let n,r,a;for(n=0,r=t.length;n<r;++n)a=t[n],a.label=this._tickFormatFunction(a.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,a=xt(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(a),s=Math.sin(a),A=this._resolveTickFontOptions(0).size;return{w:r*i+A*s,h:r*s+A*i}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,i=this._tickFormatFunction(t,0,Dy(this,[t],this._majorUnit),a),s=this._getLabelSize(i),A=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return A>0?A:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)t=t.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)t.push(Iy(this,a[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Pb(t.sort(g9))}}R(OA,"id","time"),R(OA,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function rc(e,t,n){let r=0,a=e.length-1,i,s,A,l;n?(t>=e[r].pos&&t<=e[a].pos&&({lo:r,hi:a}=jr(e,"pos",t)),{pos:i,time:A}=e[r],{pos:s,time:l}=e[a]):(t>=e[r].time&&t<=e[a].time&&({lo:r,hi:a}=jr(e,"time",t)),{time:i,pos:A}=e[r],{time:s,pos:l}=e[a]);const c=s-i;return c?A+(l-A)*(t-i)/c:A}class th extends OA{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=rc(n,this.min),this._tableRange=rc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,a=[],i=[];let s,A,l,c,u;for(s=0,A=t.length;s<A;++s)c=t[s],c>=n&&c<=r&&a.push(c);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,A=a.length;s<A;++s)u=a[s+1],l=a[s-1],c=a[s],Math.round((u+l)/2)!==c&&i.push({time:c,pos:s/(A-1)});return i}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(rc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return rc(this._table,r*this._tableRange+this._minPos,!0)}}R(th,"id","timeseries"),R(th,"defaults",OA.defaults);var w9=Object.freeze({__proto__:null,CategoryScale:Xp,LinearScale:Jp,LogarithmicScale:Zp,RadialLinearScale:Lo,TimeScale:OA,TimeSeriesScale:th});const Sr=[xM,rN,XN,w9];var b9=typeof global=="object"&&global&&global.Object===Object&&global;const x_=b9;var _9=typeof self=="object"&&self&&self.Object===Object&&self,C9=x_||_9||Function("return this")();const xr=C9;var k9=xr.Symbol;const Za=k9;var F_=Object.prototype,E9=F_.hasOwnProperty,S9=F_.toString,bo=Za?Za.toStringTag:void 0;function x9(e){var t=E9.call(e,bo),n=e[bo];try{e[bo]=void 0;var r=!0}catch{}var a=S9.call(e);return r&&(t?e[bo]=n:delete e[bo]),a}var F9=Object.prototype,I9=F9.toString;function T9(e){return I9.call(e)}var U9="[object Null]",D9="[object Undefined]",Qy=Za?Za.toStringTag:void 0;function dl(e){return e==null?e===void 0?D9:U9:Qy&&Qy in Object(e)?x9(e):T9(e)}function Vi(e){return e!=null&&typeof e=="object"}var Q9=Array.isArray;const Gs=Q9;function fl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var L9="[object AsyncFunction]",O9="[object Function]",M9="[object GeneratorFunction]",N9="[object Proxy]";function I_(e){if(!fl(e))return!1;var t=dl(e);return t==O9||t==M9||t==L9||t==N9}var P9=xr["__core-js_shared__"];const Tf=P9;var Ly=function(){var e=/[^.]+$/.exec(Tf&&Tf.keys&&Tf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function H9(e){return!!Ly&&Ly in e}var R9=Function.prototype,V9=R9.toString;function Yi(e){if(e!=null){try{return V9.call(e)}catch{}try{return e+""}catch{}}return""}var K9=/[\\^$.*+?()[\]{}|]/g,$9=/^\[object .+?Constructor\]$/,z9=Function.prototype,W9=Object.prototype,G9=z9.toString,j9=W9.hasOwnProperty,Y9=RegExp("^"+G9.call(j9).replace(K9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q9(e){if(!fl(e)||H9(e))return!1;var t=I_(e)?Y9:$9;return t.test(Yi(e))}function X9(e,t){return e==null?void 0:e[t]}function qi(e,t){var n=X9(e,t);return q9(n)?n:void 0}var J9=qi(xr,"WeakMap");const nh=J9;var Oy=Object.create,Z9=function(){function e(){}return function(t){if(!fl(t))return{};if(Oy)return Oy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const eP=Z9;function tP(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var nP=function(){try{var e=qi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const My=nP;function rP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var aP=9007199254740991,iP=/^(?:0|[1-9]\d*)$/;function sP(e,t){var n=typeof e;return t=t??aP,!!t&&(n=="number"||n!="symbol"&&iP.test(e))&&e>-1&&e%1==0&&e<t}function T_(e,t,n){t=="__proto__"&&My?My(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ig(e,t){return e===t||e!==e&&t!==t}var oP=Object.prototype,AP=oP.hasOwnProperty;function U_(e,t,n){var r=e[t];(!(AP.call(e,t)&&ig(r,n))||n===void 0&&!(t in e))&&T_(e,t,n)}function cd(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var A=t[i],l=r?r(n[A],e[A],A,n,e):void 0;l===void 0&&(l=e[A]),a?T_(n,A,l):U_(n,A,l)}return n}var lP=9007199254740991;function D_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lP}function sg(e){return e!=null&&D_(e.length)&&!I_(e)}var cP=Object.prototype;function ud(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||cP;return e===n}function uP(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var dP="[object Arguments]";function Ny(e){return Vi(e)&&dl(e)==dP}var Q_=Object.prototype,fP=Q_.hasOwnProperty,pP=Q_.propertyIsEnumerable,hP=Ny(function(){return arguments}())?Ny:function(e){return Vi(e)&&fP.call(e,"callee")&&!pP.call(e,"callee")};const L_=hP;function mP(){return!1}var O_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Py=O_&&typeof module=="object"&&module&&!module.nodeType&&module,gP=Py&&Py.exports===O_,Hy=gP?xr.Buffer:void 0,vP=Hy?Hy.isBuffer:void 0,yP=vP||mP;const MA=yP;var BP="[object Arguments]",wP="[object Array]",bP="[object Boolean]",_P="[object Date]",CP="[object Error]",kP="[object Function]",EP="[object Map]",SP="[object Number]",xP="[object Object]",FP="[object RegExp]",IP="[object Set]",TP="[object String]",UP="[object WeakMap]",DP="[object ArrayBuffer]",QP="[object DataView]",LP="[object Float32Array]",OP="[object Float64Array]",MP="[object Int8Array]",NP="[object Int16Array]",PP="[object Int32Array]",HP="[object Uint8Array]",RP="[object Uint8ClampedArray]",VP="[object Uint16Array]",KP="[object Uint32Array]",at={};at[LP]=at[OP]=at[MP]=at[NP]=at[PP]=at[HP]=at[RP]=at[VP]=at[KP]=!0;at[BP]=at[wP]=at[DP]=at[bP]=at[QP]=at[_P]=at[CP]=at[kP]=at[EP]=at[SP]=at[xP]=at[FP]=at[IP]=at[TP]=at[UP]=!1;function $P(e){return Vi(e)&&D_(e.length)&&!!at[dl(e)]}function og(e){return function(t){return e(t)}}var M_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,iA=M_&&typeof module=="object"&&module&&!module.nodeType&&module,zP=iA&&iA.exports===M_,Uf=zP&&x_.process,WP=function(){try{var e=iA&&iA.require&&iA.require("util").types;return e||Uf&&Uf.binding&&Uf.binding("util")}catch{}}();const js=WP;var Ry=js&&js.isTypedArray,GP=Ry?og(Ry):$P;const Ag=GP;var jP=Object.prototype,YP=jP.hasOwnProperty;function N_(e,t){var n=Gs(e),r=!n&&L_(e),a=!n&&!r&&MA(e),i=!n&&!r&&!a&&Ag(e),s=n||r||a||i,A=s?uP(e.length,String):[],l=A.length;for(var c in e)(t||YP.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||sP(c,l)))&&A.push(c);return A}function P_(e,t){return function(n){return e(t(n))}}var qP=P_(Object.keys,Object);const XP=qP;var JP=Object.prototype,ZP=JP.hasOwnProperty;function H_(e){if(!ud(e))return XP(e);var t=[];for(var n in Object(e))ZP.call(e,n)&&n!="constructor"&&t.push(n);return t}function lg(e){return sg(e)?N_(e):H_(e)}function eH(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var tH=Object.prototype,nH=tH.hasOwnProperty;function rH(e){if(!fl(e))return eH(e);var t=ud(e),n=[];for(var r in e)r=="constructor"&&(t||!nH.call(e,r))||n.push(r);return n}function cg(e){return sg(e)?N_(e,!0):rH(e)}var aH=qi(Object,"create");const NA=aH;function iH(){this.__data__=NA?NA(null):{},this.size=0}function sH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var oH="__lodash_hash_undefined__",AH=Object.prototype,lH=AH.hasOwnProperty;function cH(e){var t=this.__data__;if(NA){var n=t[e];return n===oH?void 0:n}return lH.call(t,e)?t[e]:void 0}var uH=Object.prototype,dH=uH.hasOwnProperty;function fH(e){var t=this.__data__;return NA?t[e]!==void 0:dH.call(t,e)}var pH="__lodash_hash_undefined__";function hH(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=NA&&t===void 0?pH:t,this}function Ki(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ki.prototype.clear=iH;Ki.prototype.delete=sH;Ki.prototype.get=cH;Ki.prototype.has=fH;Ki.prototype.set=hH;function mH(){this.__data__=[],this.size=0}function dd(e,t){for(var n=e.length;n--;)if(ig(e[n][0],t))return n;return-1}var gH=Array.prototype,vH=gH.splice;function yH(e){var t=this.__data__,n=dd(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vH.call(t,n,1),--this.size,!0}function BH(e){var t=this.__data__,n=dd(t,e);return n<0?void 0:t[n][1]}function wH(e){return dd(this.__data__,e)>-1}function bH(e,t){var n=this.__data__,r=dd(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pa.prototype.clear=mH;pa.prototype.delete=yH;pa.prototype.get=BH;pa.prototype.has=wH;pa.prototype.set=bH;var _H=qi(xr,"Map");const PA=_H;function CH(){this.size=0,this.__data__={hash:new Ki,map:new(PA||pa),string:new Ki}}function kH(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fd(e,t){var n=e.__data__;return kH(t)?n[typeof t=="string"?"string":"hash"]:n.map}function EH(e){var t=fd(this,e).delete(e);return this.size-=t?1:0,t}function SH(e){return fd(this,e).get(e)}function xH(e){return fd(this,e).has(e)}function FH(e,t){var n=fd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xi.prototype.clear=CH;Xi.prototype.delete=EH;Xi.prototype.get=SH;Xi.prototype.has=xH;Xi.prototype.set=FH;function R_(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var IH=P_(Object.getPrototypeOf,Object);const V_=IH;function TH(){this.__data__=new pa,this.size=0}function UH(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function DH(e){return this.__data__.get(e)}function QH(e){return this.__data__.has(e)}var LH=200;function OH(e,t){var n=this.__data__;if(n instanceof pa){var r=n.__data__;if(!PA||r.length<LH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xi(r)}return n.set(e,t),this.size=n.size,this}function Zr(e){var t=this.__data__=new pa(e);this.size=t.size}Zr.prototype.clear=TH;Zr.prototype.delete=UH;Zr.prototype.get=DH;Zr.prototype.has=QH;Zr.prototype.set=OH;function MH(e,t){return e&&cd(t,lg(t),e)}function NH(e,t){return e&&cd(t,cg(t),e)}var K_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vy=K_&&typeof module=="object"&&module&&!module.nodeType&&module,PH=Vy&&Vy.exports===K_,Ky=PH?xr.Buffer:void 0,$y=Ky?Ky.allocUnsafe:void 0;function HH(e,t){if(t)return e.slice();var n=e.length,r=$y?$y(n):new e.constructor(n);return e.copy(r),r}function RH(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}function $_(){return[]}var VH=Object.prototype,KH=VH.propertyIsEnumerable,zy=Object.getOwnPropertySymbols,$H=zy?function(e){return e==null?[]:(e=Object(e),RH(zy(e),function(t){return KH.call(e,t)}))}:$_;const ug=$H;function zH(e,t){return cd(e,ug(e),t)}var WH=Object.getOwnPropertySymbols,GH=WH?function(e){for(var t=[];e;)R_(t,ug(e)),e=V_(e);return t}:$_;const z_=GH;function jH(e,t){return cd(e,z_(e),t)}function W_(e,t,n){var r=t(e);return Gs(e)?r:R_(r,n(e))}function rh(e){return W_(e,lg,ug)}function YH(e){return W_(e,cg,z_)}var qH=qi(xr,"DataView");const ah=qH;var XH=qi(xr,"Promise");const ih=XH;var JH=qi(xr,"Set");const sh=JH;var Wy="[object Map]",ZH="[object Object]",Gy="[object Promise]",jy="[object Set]",Yy="[object WeakMap]",qy="[object DataView]",eR=Yi(ah),tR=Yi(PA),nR=Yi(ih),rR=Yi(sh),aR=Yi(nh),vi=dl;(ah&&vi(new ah(new ArrayBuffer(1)))!=qy||PA&&vi(new PA)!=Wy||ih&&vi(ih.resolve())!=Gy||sh&&vi(new sh)!=jy||nh&&vi(new nh)!=Yy)&&(vi=function(e){var t=dl(e),n=t==ZH?e.constructor:void 0,r=n?Yi(n):"";if(r)switch(r){case eR:return qy;case tR:return Wy;case nR:return Gy;case rR:return jy;case aR:return Yy}return t});const Ys=vi;var iR=Object.prototype,sR=iR.hasOwnProperty;function oR(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&sR.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var AR=xr.Uint8Array;const bu=AR;function dg(e){var t=new e.constructor(e.byteLength);return new bu(t).set(new bu(e)),t}function lR(e,t){var n=t?dg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var cR=/\w*$/;function uR(e){var t=new e.constructor(e.source,cR.exec(e));return t.lastIndex=e.lastIndex,t}var Xy=Za?Za.prototype:void 0,Jy=Xy?Xy.valueOf:void 0;function dR(e){return Jy?Object(Jy.call(e)):{}}function fR(e,t){var n=t?dg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var pR="[object Boolean]",hR="[object Date]",mR="[object Map]",gR="[object Number]",vR="[object RegExp]",yR="[object Set]",BR="[object String]",wR="[object Symbol]",bR="[object ArrayBuffer]",_R="[object DataView]",CR="[object Float32Array]",kR="[object Float64Array]",ER="[object Int8Array]",SR="[object Int16Array]",xR="[object Int32Array]",FR="[object Uint8Array]",IR="[object Uint8ClampedArray]",TR="[object Uint16Array]",UR="[object Uint32Array]";function DR(e,t,n){var r=e.constructor;switch(t){case bR:return dg(e);case pR:case hR:return new r(+e);case _R:return lR(e,n);case CR:case kR:case ER:case SR:case xR:case FR:case IR:case TR:case UR:return fR(e,n);case mR:return new r;case gR:case BR:return new r(e);case vR:return uR(e);case yR:return new r;case wR:return dR(e)}}function QR(e){return typeof e.constructor=="function"&&!ud(e)?eP(V_(e)):{}}var LR="[object Map]";function OR(e){return Vi(e)&&Ys(e)==LR}var Zy=js&&js.isMap,MR=Zy?og(Zy):OR;const NR=MR;var PR="[object Set]";function HR(e){return Vi(e)&&Ys(e)==PR}var eB=js&&js.isSet,RR=eB?og(eB):HR;const VR=RR;var KR=1,$R=2,zR=4,G_="[object Arguments]",WR="[object Array]",GR="[object Boolean]",jR="[object Date]",YR="[object Error]",j_="[object Function]",qR="[object GeneratorFunction]",XR="[object Map]",JR="[object Number]",Y_="[object Object]",ZR="[object RegExp]",eV="[object Set]",tV="[object String]",nV="[object Symbol]",rV="[object WeakMap]",aV="[object ArrayBuffer]",iV="[object DataView]",sV="[object Float32Array]",oV="[object Float64Array]",AV="[object Int8Array]",lV="[object Int16Array]",cV="[object Int32Array]",uV="[object Uint8Array]",dV="[object Uint8ClampedArray]",fV="[object Uint16Array]",pV="[object Uint32Array]",Xe={};Xe[G_]=Xe[WR]=Xe[aV]=Xe[iV]=Xe[GR]=Xe[jR]=Xe[sV]=Xe[oV]=Xe[AV]=Xe[lV]=Xe[cV]=Xe[XR]=Xe[JR]=Xe[Y_]=Xe[ZR]=Xe[eV]=Xe[tV]=Xe[nV]=Xe[uV]=Xe[dV]=Xe[fV]=Xe[pV]=!0;Xe[YR]=Xe[j_]=Xe[rV]=!1;function Gc(e,t,n,r,a,i){var s,A=t&KR,l=t&$R,c=t&zR;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!fl(e))return e;var u=Gs(e);if(u){if(s=oR(e),!A)return tP(e,s)}else{var d=Ys(e),f=d==j_||d==qR;if(MA(e))return HH(e,A);if(d==Y_||d==G_||f&&!a){if(s=l||f?{}:QR(e),!A)return l?jH(e,NH(s,e)):zH(e,MH(s,e))}else{if(!Xe[d])return a?e:{};s=DR(e,d,A)}}i||(i=new Zr);var p=i.get(e);if(p)return p;i.set(e,s),VR(e)?e.forEach(function(B){s.add(Gc(B,t,n,B,e,i))}):NR(e)&&e.forEach(function(B,m){s.set(m,Gc(B,t,n,m,e,i))});var h=c?l?YH:rh:l?cg:lg,g=u?void 0:h(e);return rP(g||e,function(B,m){g&&(m=B,B=e[m]),U_(s,m,Gc(B,t,n,m,e,i))}),s}var hV=1,mV=4;function _o(e){return Gc(e,hV|mV)}var gV="__lodash_hash_undefined__";function vV(e){return this.__data__.set(e,gV),this}function yV(e){return this.__data__.has(e)}function _u(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xi;++t<n;)this.add(e[t])}_u.prototype.add=_u.prototype.push=vV;_u.prototype.has=yV;function BV(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function wV(e,t){return e.has(t)}var bV=1,_V=2;function q_(e,t,n,r,a,i){var s=n&bV,A=e.length,l=t.length;if(A!=l&&!(s&&l>A))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&_V?new _u:void 0;for(i.set(e,t),i.set(t,e);++d<A;){var h=e[d],g=t[d];if(r)var B=s?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(B!==void 0){if(B)continue;f=!1;break}if(p){if(!BV(t,function(m,v){if(!wV(p,v)&&(h===m||a(h,m,n,r,i)))return p.push(v)})){f=!1;break}}else if(!(h===g||a(h,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function CV(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function kV(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var EV=1,SV=2,xV="[object Boolean]",FV="[object Date]",IV="[object Error]",TV="[object Map]",UV="[object Number]",DV="[object RegExp]",QV="[object Set]",LV="[object String]",OV="[object Symbol]",MV="[object ArrayBuffer]",NV="[object DataView]",tB=Za?Za.prototype:void 0,Df=tB?tB.valueOf:void 0;function PV(e,t,n,r,a,i,s){switch(n){case NV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case MV:return!(e.byteLength!=t.byteLength||!i(new bu(e),new bu(t)));case xV:case FV:case UV:return ig(+e,+t);case IV:return e.name==t.name&&e.message==t.message;case DV:case LV:return e==t+"";case TV:var A=CV;case QV:var l=r&EV;if(A||(A=kV),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=SV,s.set(e,t);var u=q_(A(e),A(t),r,a,i,s);return s.delete(e),u;case OV:if(Df)return Df.call(e)==Df.call(t)}return!1}var HV=1,RV=Object.prototype,VV=RV.hasOwnProperty;function KV(e,t,n,r,a,i){var s=n&HV,A=rh(e),l=A.length,c=rh(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var f=A[d];if(!(s?f in t:VV.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var B=s;++d<l;){f=A[d];var m=e[f],v=t[f];if(r)var w=s?r(v,m,f,t,e,i):r(m,v,f,e,t,i);if(!(w===void 0?m===v||a(m,v,n,r,i):w)){g=!1;break}B||(B=f=="constructor")}if(g&&!B){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var $V=1,nB="[object Arguments]",rB="[object Array]",ac="[object Object]",zV=Object.prototype,aB=zV.hasOwnProperty;function WV(e,t,n,r,a,i){var s=Gs(e),A=Gs(t),l=s?rB:Ys(e),c=A?rB:Ys(t);l=l==nB?ac:l,c=c==nB?ac:c;var u=l==ac,d=c==ac,f=l==c;if(f&&MA(e)){if(!MA(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new Zr),s||Ag(e)?q_(e,t,n,r,a,i):PV(e,t,l,n,r,a,i);if(!(n&$V)){var p=u&&aB.call(e,"__wrapped__"),h=d&&aB.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,B=h?t.value():t;return i||(i=new Zr),a(g,B,n,r,i)}}return f?(i||(i=new Zr),KV(e,t,n,r,a,i)):!1}function X_(e,t,n,r,a){return e===t?!0:e==null||t==null||!Vi(e)&&!Vi(t)?e!==e&&t!==t:WV(e,t,n,r,X_,a)}var GV="[object Map]",jV="[object Set]",YV=Object.prototype,qV=YV.hasOwnProperty;function XV(e){if(e==null)return!0;if(sg(e)&&(Gs(e)||typeof e=="string"||typeof e.splice=="function"||MA(e)||Ag(e)||L_(e)))return!e.length;var t=Ys(e);if(t==GV||t==jV)return!e.size;if(ud(e))return!H_(e).length;for(var n in e)if(qV.call(e,n))return!1;return!0}function iB(e,t){return X_(e,t)}var JV=Object.defineProperty,ZV=Object.defineProperties,eK=Object.getOwnPropertyDescriptors,sB=Object.getOwnPropertySymbols,tK=Object.prototype.hasOwnProperty,nK=Object.prototype.propertyIsEnumerable,oB=(e,t,n)=>t in e?JV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rK=(e,t)=>{for(var n in t||(t={}))tK.call(t,n)&&oB(e,n,t[n]);if(sB)for(var n of sB(t))nK.call(t,n)&&oB(e,n,t[n]);return e},aK=(e,t)=>ZV(e,eK(t));function iK(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var Ai=(e,t)=>{const n={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},r=iK(e);return o.defineComponent({name:r,props:n,emits:{"labels:update":()=>!0,"chart:update":a=>!0,"chart:destroy":()=>!0,"chart:render":a=>!0},setup(a,{emit:i,expose:s}){const A=o.ref(null),l=`${a.chartId}`;let c=o.shallowRef(null);o.watch(()=>a.chartData,u,{deep:!0}),o.watch(()=>a.options,B=>{c.value&&B&&(c.value.options=_o(B),h())},{deep:!0});function u(B){if(c.value){let m=c.value;iB(B.labels,c.value.data.labels)||(m.data.labels=B.labels,f()),iB(B.datasets,c.value.data.datasets)||B.datasets.forEach((v,w)=>{var y,b;if(XV(v))m.data.datasets=[];else{const _=_o(m.data),C=Object.keys((b=(y=_.datasets)==null?void 0:y[w])!=null?b:{}),E=Object.keys(v);C.filter(D=>D!=="_meta"&&E.indexOf(D)===-1).forEach(D=>{m.data.datasets[w]&&delete m.data.datasets[w][D]});for(const D in v){const T=_o(v[D]);m.data.datasets[w]||(m.data.datasets[w]={}),v.hasOwnProperty(D)&&T!=null&&m&&(m.data.datasets[w][D]=T)}}}),h()}else c.value&&g(),d()}function d(){A.value?(c.value=new Oe(A.value,{data:_o(a.chartData),type:t,options:_o(a.options),plugins:a.plugins}),p()):console.error(`Error on component ${r}, canvas cannot be rendered. Check if the render appends server-side`)}function f(){i("labels:update"),a.onLabelsUpdate&&a.onLabelsUpdate()}function p(){c.value&&(i("chart:render",c.value),a.onChartRender&&a.onChartRender(c.value))}function h(){c.value&&(c.value.update(),i("chart:update",c.value),a.onChartUpdate&&a.onChartUpdate(c.value))}function g(){c.value&&c.value.destroy(),i("chart:destroy"),a.onChartDestroy&&a.onChartDestroy()}return o.onMounted(d),o.onBeforeUnmount(()=>{c.value&&c.value.destroy()}),s({canvasRef:A,renderChart:d,chartInstance:c,canvasId:l,update:h}),()=>o.h("div",{style:aK(rK({maxWidth:"100%"},a.styles),{position:"relative"}),class:a.cssClasses},[o.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:l,width:a.width,height:a.height,ref:A})])}})},pd=Ai("bar-chart","bar"),hd=Ai("doughnut-chart","doughnut"),J_=Ai("line-chart","line");Ai("pie-chart","pie");Ai("polar-chart","polarArea");Ai("radar-chart","radar");Ai("bubble-chart","bubble");Ai("scatter-chart","scatter");const Cu=o.defineComponent({__name:"InfoDoughnutChart",props:vL,setup(e){const t=e,n=o.ref(null);Oe.register(...Sr);const r=o.computed(()=>{const i=t.info==="typeRef"?"types":"rarities",s={},A=Bt(t.deckCode);for(const c in A){const u=on().cardJsonObject[c];if(u===void 0)continue;let d=u[t.info];d==="Unit"&&(d=u.supertype==="Champion"?"Champion":"Follower"),s[d]===void 0&&(s[d]=0),s[d]+=A[c]}const l=[];for(const c in s){const u=ge().dataJson[i].find(f=>f.nameRef===c),d={key:c,value:s[c],color:u==null?void 0:u.color,name:u==null?void 0:u.name,order:u==null?void 0:u.order};l.push(d)}return console.log(l),l.sort((c,u)=>c.order-u.order),{labels:l.map(c=>c.name),datasets:[{data:l.map(c=>c.value),backgroundColor:l.map(c=>c.color)}]}}),a={cutout:55,layout:{padding:{top:10,bottom:10}},elements:{arc:{borderWidth:0}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(i){const s=[],A=i.data.labels;for(let l=0;l<i.data.labels.length;l++)s.push({text:`${A[l]} (${i.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:Wa("--color-0"),fillStyle:i.data.datasets[0].backgroundColor[l]});return s}}},datalabels:{display:!1}}};return(i,s)=>(o.openBlock(),o.createBlock(o.unref(hd),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),sK={deck:{type:Object,required:!1,default:void 0},deckCode:{type:String,required:!1,default:void 0},paddingTop:{type:Number,required:!1,default:10},showDataLabels:{type:Boolean,required:!1,default:!0},dataLabelsOffset:{type:Number,required:!1,default:-10},tooltipsEnabled:{type:Boolean,required:!1,default:!0},displayXScale:{type:Boolean,required:!1,default:!0},animation:{type:Boolean,required:!1}};//! moment.js
|
|
842
|
+
`):e}function KN(e,t){const{element:n,datasetIndex:r,index:a}=t,i=e.getDatasetMeta(r).controller,{label:s,value:A}=i.getLabelAndValue(a);return{chart:e,label:s,parsed:i.getParsed(a),raw:e.data.datasets[r].data[a],formattedValue:A,dataset:i.getDataset(),dataIndex:a,datasetIndex:r,element:n}}function By(e,t){const n=e.chart.ctx,{body:r,footer:a,title:i}=e,{boxWidth:s,boxHeight:A}=t,l=ht(t.bodyFont),c=ht(t.titleFont),u=ht(t.footerFont),d=i.length,f=a.length,p=r.length,h=Et(t.padding);let g=h.height,B=0,m=r.reduce((y,b)=>y+b.before.length+b.lines.length+b.after.length,0);if(m+=e.beforeBody.length+e.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),m){const y=t.displayColors?Math.max(A,l.lineHeight):l.lineHeight;g+=p*y+(m-p)*l.lineHeight+(m-1)*t.bodySpacing}f&&(g+=t.footerMarginTop+f*u.lineHeight+(f-1)*t.footerSpacing);let v=0;const w=function(y){B=Math.max(B,n.measureText(y).width+v)};return n.save(),n.font=c.string,Ke(e.title,w),n.font=l.string,Ke(e.beforeBody.concat(e.afterBody),w),v=t.displayColors?s+2+t.boxPadding:0,Ke(r,y=>{Ke(y.before,w),Ke(y.lines,w),Ke(y.after,w)}),v=0,n.font=u.string,Ke(e.footer,w),n.restore(),B+=h.width,{width:B,height:g}}function $N(e,t){const{y:n,height:r}=t;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}function zN(e,t,n,r){const{x:a,width:i}=r,s=n.caretSize+n.caretPadding;if(e==="left"&&a+i+s>t.width||e==="right"&&a-i-s<0)return!0}function WN(e,t,n,r){const{x:a,width:i}=n,{width:s,chartArea:{left:A,right:l}}=e;let c="center";return r==="center"?c=a<=(A+l)/2?"left":"right":a<=i/2?c="left":a>=s-i/2&&(c="right"),zN(c,e,t,n)&&(c="center"),c}function wy(e,t,n){const r=n.yAlign||t.yAlign||$N(e,n);return{xAlign:n.xAlign||t.xAlign||WN(e,t,n,r),yAlign:r}}function GN(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function jN(e,t,n){let{y:r,height:a}=e;return t==="top"?r+=n:t==="bottom"?r-=a+n:r-=a/2,r}function by(e,t,n,r){const{caretSize:a,caretPadding:i,cornerRadius:s}=e,{xAlign:A,yAlign:l}=n,c=a+i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:p}=Ra(s);let h=GN(t,A);const g=jN(t,l,c);return l==="center"?A==="left"?h+=c:A==="right"&&(h-=c):A==="left"?h-=Math.max(u,f)+a:A==="right"&&(h+=Math.max(d,p)+a),{x:Pt(h,0,r.width-t.width),y:Pt(g,0,r.height-t.height)}}function nc(e,t,n){const r=Et(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function _y(e){return dr([],Rr(e))}function YN(e,t,n){return oi(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Cy(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const E_={beforeTitle:Lr,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:Lr,beforeBody:Lr,beforeLabel:Lr,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return Ee(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:Lr,afterBody:Lr,beforeFooter:Lr,footer:Lr,afterFooter:Lr};function cn(e,t,n,r){const a=e[t].call(n,r);return typeof a>"u"?E_[t].call(n,r):a}class qp extends An{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),a=r.enabled&&n.options.animation&&r.animations,i=new tg(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=YN(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,a=cn(r,"beforeTitle",this,t),i=cn(r,"title",this,t),s=cn(r,"afterTitle",this,t);let A=[];return A=dr(A,Rr(a)),A=dr(A,Rr(i)),A=dr(A,Rr(s)),A}getBeforeBody(t,n){return _y(cn(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,a=[];return Ke(t,i=>{const s={before:[],lines:[],after:[]},A=Cy(r,i);dr(s.before,Rr(cn(A,"beforeLabel",this,i))),dr(s.lines,cn(A,"label",this,i)),dr(s.after,Rr(cn(A,"afterLabel",this,i))),a.push(s)}),a}getAfterBody(t,n){return _y(cn(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,a=cn(r,"beforeFooter",this,t),i=cn(r,"footer",this,t),s=cn(r,"afterFooter",this,t);let A=[];return A=dr(A,Rr(a)),A=dr(A,Rr(i)),A=dr(A,Rr(s)),A}_createItems(t){const n=this._active,r=this.chart.data,a=[],i=[],s=[];let A=[],l,c;for(l=0,c=n.length;l<c;++l)A.push(KN(this.chart,n[l]));return t.filter&&(A=A.filter((u,d,f)=>t.filter(u,d,f,r))),t.itemSort&&(A=A.sort((u,d)=>t.itemSort(u,d,r))),Ke(A,u=>{const d=Cy(t.callbacks,u);a.push(cn(d,"labelColor",this,u)),i.push(cn(d,"labelPointStyle",this,u)),s.push(cn(d,"labelTextColor",this,u))}),this.labelColors=a,this.labelPointStyles=i,this.labelTextColors=s,this.dataPoints=A,A}update(t,n){const r=this.options.setContext(this.getContext()),a=this._active;let i,s=[];if(!a.length)this.opacity!==0&&(i={opacity:0});else{const A=Qo[r.position].call(this,a,this._eventPosition);s=this._createItems(r),this.title=this.getTitle(s,r),this.beforeBody=this.getBeforeBody(s,r),this.body=this.getBody(s,r),this.afterBody=this.getAfterBody(s,r),this.footer=this.getFooter(s,r);const l=this._size=By(this,r),c=Object.assign({},A,l),u=wy(this.chart,r,c),d=by(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:A.x,caretY:A.y}}this._tooltipItems=s,this.$context=void 0,i&&this._resolveAnimations().update(this,i),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,a){const i=this.getCaretPosition(t,r,a);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(t,n,r){const{xAlign:a,yAlign:i}=this,{caretSize:s,cornerRadius:A}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Ra(A),{x:f,y:p}=t,{width:h,height:g}=n;let B,m,v,w,y,b;return i==="center"?(y=p+g/2,a==="left"?(B=f,m=B-s,w=y+s,b=y-s):(B=f+h,m=B+s,w=y-s,b=y+s),v=B):(a==="left"?m=f+Math.max(l,u)+s:a==="right"?m=f+h-Math.max(c,d)-s:m=this.caretX,i==="top"?(w=p,y=w-s,B=m-s,v=m+s):(w=p+g,y=w+s,B=m+s,v=m-s),b=w),{x1:B,x2:m,x3:v,y1:w,y2:y,y3:b}}drawTitle(t,n,r){const a=this.title,i=a.length;let s,A,l;if(i){const c=Ss(r.rtl,this.x,this.width);for(t.x=nc(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",s=ht(r.titleFont),A=r.titleSpacing,n.fillStyle=r.titleColor,n.font=s.string,l=0;l<i;++l)n.fillText(a[l],c.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+A,l+1===i&&(t.y+=r.titleMarginBottom-A)}}_drawColorBox(t,n,r,a,i){const s=this.labelColors[r],A=this.labelPointStyles[r],{boxHeight:l,boxWidth:c}=i,u=ht(i.bodyFont),d=nc(this,"left",i),f=a.x(d),p=l<u.lineHeight?(u.lineHeight-l)/2:0,h=n.y+p;if(i.usePointStyle){const g={radius:Math.min(c,l)/2,pointStyle:A.pointStyle,rotation:A.rotation,borderWidth:1},B=a.leftForLtr(f,c)+c/2,m=h+l/2;t.strokeStyle=i.multiKeyBackground,t.fillStyle=i.multiKeyBackground,Kp(t,g,B,m),t.strokeStyle=s.borderColor,t.fillStyle=s.backgroundColor,Kp(t,g,B,m)}else{t.lineWidth=we(s.borderWidth)?Math.max(...Object.values(s.borderWidth)):s.borderWidth||1,t.strokeStyle=s.borderColor,t.setLineDash(s.borderDash||[]),t.lineDashOffset=s.borderDashOffset||0;const g=a.leftForLtr(f,c),B=a.leftForLtr(a.xPlus(f,1),c-2),m=Ra(s.borderRadius);Object.values(m).some(v=>v!==0)?(t.beginPath(),t.fillStyle=i.multiKeyBackground,$s(t,{x:g,y:h,w:c,h:l,radius:m}),t.fill(),t.stroke(),t.fillStyle=s.backgroundColor,t.beginPath(),$s(t,{x:B,y:h+1,w:c-2,h:l-2,radius:m}),t.fill()):(t.fillStyle=i.multiKeyBackground,t.fillRect(g,h,c,l),t.strokeRect(g,h,c,l),t.fillStyle=s.backgroundColor,t.fillRect(B,h+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:a}=this,{bodySpacing:i,bodyAlign:s,displayColors:A,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=ht(r.bodyFont);let f=d.lineHeight,p=0;const h=Ss(r.rtl,this.x,this.width),g=function(E){n.fillText(E,h.x(t.x+p),t.y+f/2),t.y+=f+i},B=h.textAlign(s);let m,v,w,y,b,_,C;for(n.textAlign=s,n.textBaseline="middle",n.font=d.string,t.x=nc(this,B,r),n.fillStyle=r.bodyColor,Ke(this.beforeBody,g),p=A&&B!=="right"?s==="center"?c/2+u:c+2+u:0,y=0,_=a.length;y<_;++y){for(m=a[y],v=this.labelTextColors[y],n.fillStyle=v,Ke(m.before,g),w=m.lines,A&&w.length&&(this._drawColorBox(n,t,y,h,r),f=Math.max(d.lineHeight,l)),b=0,C=w.length;b<C;++b)g(w[b]),f=d.lineHeight;Ke(m.after,g)}p=0,f=d.lineHeight,Ke(this.afterBody,g),t.y-=i}drawFooter(t,n,r){const a=this.footer,i=a.length;let s,A;if(i){const l=Ss(r.rtl,this.x,this.width);for(t.x=nc(this,r.footerAlign,r),t.y+=r.footerMarginTop,n.textAlign=l.textAlign(r.footerAlign),n.textBaseline="middle",s=ht(r.footerFont),n.fillStyle=r.footerColor,n.font=s.string,A=0;A<i;++A)n.fillText(a[A],l.x(t.x),t.y+s.lineHeight/2),t.y+=s.lineHeight+r.footerSpacing}}drawBackground(t,n,r,a){const{xAlign:i,yAlign:s}=this,{x:A,y:l}=t,{width:c,height:u}=r,{topLeft:d,topRight:f,bottomLeft:p,bottomRight:h}=Ra(a.cornerRadius);n.fillStyle=a.backgroundColor,n.strokeStyle=a.borderColor,n.lineWidth=a.borderWidth,n.beginPath(),n.moveTo(A+d,l),s==="top"&&this.drawCaret(t,n,r,a),n.lineTo(A+c-f,l),n.quadraticCurveTo(A+c,l,A+c,l+f),s==="center"&&i==="right"&&this.drawCaret(t,n,r,a),n.lineTo(A+c,l+u-h),n.quadraticCurveTo(A+c,l+u,A+c-h,l+u),s==="bottom"&&this.drawCaret(t,n,r,a),n.lineTo(A+p,l+u),n.quadraticCurveTo(A,l+u,A,l+u-p),s==="center"&&i==="left"&&this.drawCaret(t,n,r,a),n.lineTo(A,l+d),n.quadraticCurveTo(A,l,A+d,l),n.closePath(),n.fill(),a.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,a=r&&r.x,i=r&&r.y;if(a||i){const s=Qo[t.position].call(this,this._active,this._eventPosition);if(!s)return;const A=this._size=By(this,t),l=Object.assign({},s,this._size),c=wy(n,t,l),u=by(t,l,c,n);(a._to!==u.x||i._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=A.width,this.height=A.height,this.caretX=s.x,this.caretY=s.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const a={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const s=Et(n.padding),A=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&A&&(t.save(),t.globalAlpha=r,this.drawBackground(i,t,a,n),e_(t,n.textDirection),i.y+=s.top,this.drawTitle(i,t,n),this.drawBody(i,t,n),this.drawFooter(i,t,n),t_(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,a=t.map(({datasetIndex:A,index:l})=>{const c=this.chart.getDatasetMeta(A);if(!c)throw new Error("Cannot find a dataset at index "+A);return{datasetIndex:A,element:c.data[l],index:l}}),i=!fu(r,a),s=this._positionChanged(a,n);(i||s)&&(this._active=a,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,i=this._active||[],s=this._getActiveElements(t,i,n,r),A=this._positionChanged(s,t),l=n||!fu(s,i)||A;return l&&(this._active=s,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,a){const i=this.options;if(t.type==="mouseout")return[];if(!a)return n;const s=this.chart.getElementsAtEventForMode(t,i.mode,i,r);return i.reverse&&s.reverse(),s}_positionChanged(t,n){const{caretX:r,caretY:a,options:i}=this,s=Qo[i.position].call(this,t,n);return s!==!1&&(r!==s.x||a!==s.y)}}R(qp,"positioners",Qo);var qN={id:"tooltip",_element:qp,positioners:Qo,afterInit(e,t,n){n&&(e.tooltip=new qp({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){const n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:E_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},XN=Object.freeze({__proto__:null,Colors:lN,Decimation:fN,Filler:DN,Legend:PN,SubTitle:VN,Title:RN,Tooltip:qN});const JN=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function ZN(e,t,n,r){const a=e.indexOf(t);if(a===-1)return JN(e,t,n,r);const i=e.lastIndexOf(t);return a!==i?n:a}const e9=(e,t)=>e===null?null:Pt(Math.round(e),0,t);function ky(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Xp extends ji{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:a,label:i}of n)r[a]===i&&r.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Ee(t))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===t?n:ZN(r,t,de(n,t),this._addedLabels),e9(n,r.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let{min:r,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(r=0),n||(a=this.getLabels().length-1)),this.min=r,this.max=a}buildTicks(){const t=this.min,n=this.max,r=this.options.offset,a=[];let i=this.getLabels();i=t===0&&n===i.length-1?i:i.slice(t,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let s=t;s<=n;s++)a.push({value:s});return a}getLabelForValue(t){return ky.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}R(Xp,"id","category"),R(Xp,"defaults",{ticks:{callback:ky}});function t9(e,t){const n=[],{bounds:a,step:i,min:s,max:A,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:f}=e,p=i||1,h=u-1,{min:g,max:B}=t,m=!Ee(s),v=!Ee(A),w=!Ee(c),y=(B-g)/(d+1);let b=y0((B-g)/h/p)*p,_,C,E,S;if(b<1e-14&&!m&&!v)return[{value:g},{value:B}];S=Math.ceil(B/b)-Math.floor(g/b),S>h&&(b=y0(S*b/h/p)*p),Ee(l)||(_=Math.pow(10,l),b=Math.ceil(b*_)/_),a==="ticks"?(C=Math.floor(g/b)*b,E=Math.ceil(B/b)*b):(C=g,E=B),m&&v&&i&&qL((A-s)/i,b/1e3)?(S=Math.round(Math.min((A-s)/b,u)),b=(A-s)/S,C=s,E=A):w?(C=m?s:C,E=v?A:E,S=c-1,b=(E-C)/S):(S=(E-C)/b,Zo(S,Math.round(S),b/1e3)?S=Math.round(S):S=Math.ceil(S));const D=Math.max(B0(b),B0(C));_=Math.pow(10,Ee(l)?D:l),C=Math.round(C*_)/_,E=Math.round(E*_)/_;let T=0;for(m&&(f&&C!==s?(n.push({value:s}),C<s&&T++,Zo(Math.round((C+T*b)*_)/_,s,Ey(s,y,e))&&T++):C<s&&T++);T<S;++T){const F=Math.round((C+T*b)*_)/_;if(v&&F>A)break;n.push({value:F})}return v&&f&&E!==A?n.length&&Zo(n[n.length-1].value,A,Ey(A,y,e))?n[n.length-1].value=A:n.push({value:A}):(!v||E===A)&&n.push({value:E}),n}function Ey(e,t,{horizontal:n,minRotation:r}){const a=xt(r),i=(n?Math.sin(a):Math.cos(a))||.001,s=.75*t*(""+e).length;return Math.min(t/i,s)}class wu extends ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,n){return Ee(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:a,max:i}=this;const s=l=>a=n?a:l,A=l=>i=r?i:l;if(t){const l=wr(a),c=wr(i);l<0&&c<0?A(0):l>0&&c>0&&s(0)}if(a===i){let l=i===0?1:Math.abs(i*.05);A(i+l),t||s(a-l)}this.min=a,this.max=i}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,a;return r?(a=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),n=n||11),n&&(a=Math.min(n,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const a={maxTicks:r,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,s=t9(a,i);return t.bounds==="ticks"&&Ob(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const a=(r-n)/Math.max(t.length-1,1)/2;n-=a,r+=a}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Al(t,this.chart.options.locale,this.options.ticks.format)}}class Jp extends wu{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ft(t)?t:0,this.max=ft(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=xt(this.options.ticks.minRotation),a=(t?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}R(Jp,"id","linear"),R(Jp,"defaults",{ticks:{callback:od.formatters.numeric}});const LA=e=>Math.floor(Ua(e)),di=(e,t)=>Math.pow(10,LA(e)+t);function Sy(e){return e/Math.pow(10,LA(e))===1}function xy(e,t,n){const r=Math.pow(10,n),a=Math.floor(e/r);return Math.ceil(t/r)-a}function n9(e,t){const n=t-e;let r=LA(n);for(;xy(e,t,r)>10;)r++;for(;xy(e,t,r)<10;)r--;return Math.min(r,LA(e))}function r9(e,{min:t,max:n}){t=_n(e.min,t);const r=[],a=LA(t);let i=n9(t,n),s=i<0?Math.pow(10,Math.abs(i)):1;const A=Math.pow(10,i),l=a>i?Math.pow(10,a):0,c=Math.round((t-l)*s)/s,u=Math.floor((t-l)/A/10)*A*10;let d=Math.floor((c-u)/Math.pow(10,i)),f=_n(e.min,Math.round((l+u+d*Math.pow(10,i))*s)/s);for(;f<n;)r.push({value:f,major:Sy(f),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(i++,d=2,s=i>=0?1:s),f=Math.round((l+u+d*Math.pow(10,i))*s)/s;const p=_n(e.max,f);return r.push({value:p,major:Sy(p),significand:d}),r}class Zp extends ji{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=wu.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return ft(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=ft(t)?Math.max(0,t):null,this.max=ft(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ft(this._userMin)&&(this.min=t===di(this.min,0)?di(this.min,-1):di(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,a=this.max;const i=A=>r=t?r:A,s=A=>a=n?a:A;r===a&&(r<=0?(i(1),s(10)):(i(di(r,-1)),s(di(a,1)))),r<=0&&i(di(a,-1)),a<=0&&s(di(r,1)),this.min=r,this.max=a}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=r9(n,this);return t.bounds==="ticks"&&Ob(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Al(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Ua(t),this._valueRange=Ua(this.max)-Ua(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Ua(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}R(Zp,"id","logarithmic"),R(Zp,"defaults",{ticks:{callback:od.formatters.logarithmic,major:{enabled:!0}}});function eh(e){const t=e.ticks;if(t.display&&e.display){const n=Et(t.backdropPadding);return de(t.font&&t.font.size,pt.font.size)+n.height}return 0}function a9(e,t,n){return n=Me(n)?n:[n],{w:fO(e,t.string,n),h:n.length*t.lineHeight}}function Fy(e,t,n,r,a){return e===r||e===a?{start:t-n/2,end:t+n/2}:e<r||e>a?{start:t-n,end:t}:{start:t,end:t+n}}function i9(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],a=[],i=e._pointLabels.length,s=e.options.pointLabels,A=s.centerPointLabels?Qe/i:0;for(let l=0;l<i;l++){const c=s.setContext(e.getPointLabelContext(l));a[l]=c.padding;const u=e.getPointPosition(l,e.drawingArea+a[l],A),d=ht(c.font),f=a9(e.ctx,d,e._pointLabels[l]);r[l]=f;const p=kn(e.getIndexAngle(l)+A),h=Math.round(sd(p)),g=Fy(h,u.x,f.w,0,180),B=Fy(h,u.y,f.h,90,270);s9(n,t,p,g,B)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=l9(e,r,a)}function s9(e,t,n,r,a){const i=Math.abs(Math.sin(n)),s=Math.abs(Math.cos(n));let A=0,l=0;r.start<t.l?(A=(t.l-r.start)/i,e.l=Math.min(e.l,t.l-A)):r.end>t.r&&(A=(r.end-t.r)/i,e.r=Math.max(e.r,t.r+A)),a.start<t.t?(l=(t.t-a.start)/s,e.t=Math.min(e.t,t.t-l)):a.end>t.b&&(l=(a.end-t.b)/s,e.b=Math.max(e.b,t.b+l))}function o9(e,t,n){const r=e.drawingArea,{extra:a,additionalAngle:i,padding:s,size:A}=n,l=e.getPointPosition(t,r+a+s,i),c=Math.round(sd(kn(l.angle+et))),u=d9(l.y,A.h,c),d=c9(c),f=u9(l.x,A.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:f,top:u,right:f+A.w,bottom:u+A.h}}function A9(e,t){if(!t)return!0;const{left:n,top:r,right:a,bottom:i}=e;return!(Yr({x:n,y:r},t)||Yr({x:n,y:i},t)||Yr({x:a,y:r},t)||Yr({x:a,y:i},t))}function l9(e,t,n){const r=[],a=e._pointLabels.length,i=e.options,{centerPointLabels:s,display:A}=i.pointLabels,l={extra:eh(i)/2,additionalAngle:s?Qe/a:0};let c;for(let u=0;u<a;u++){l.padding=n[u],l.size=t[u];const d=o9(e,u,l);r.push(d),A==="auto"&&(d.visible=A9(d,c),d.visible&&(c=d))}return r}function c9(e){return e===0||e===180?"center":e<180?"left":"right"}function u9(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function d9(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function f9(e,t,n){const{left:r,top:a,right:i,bottom:s}=n,{backdropColor:A}=t;if(!Ee(A)){const l=Ra(t.borderRadius),c=Et(t.backdropPadding);e.fillStyle=A;const u=r-c.left,d=a-c.top,f=i-r+c.width,p=s-a+c.height;Object.values(l).some(h=>h!==0)?(e.beginPath(),$s(e,{x:u,y:d,w:f,h:p,radius:l}),e.fill()):e.fillRect(u,d,f,p)}}function p9(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let a=t-1;a>=0;a--){const i=e._pointLabelItems[a];if(!i.visible)continue;const s=r.setContext(e.getPointLabelContext(a));f9(n,s,i);const A=ht(s.font),{x:l,y:c,textAlign:u}=i;Ri(n,e._pointLabels[a],l,c+A.lineHeight/2,A,{color:s.color,textAlign:u,textBaseline:"middle"})}}function S_(e,t,n,r){const{ctx:a}=e;if(n)a.arc(e.xCenter,e.yCenter,t,0,Ze);else{let i=e.getPointPosition(0,t);a.moveTo(i.x,i.y);for(let s=1;s<r;s++)i=e.getPointPosition(s,t),a.lineTo(i.x,i.y)}}function h9(e,t,n,r,a){const i=e.ctx,s=t.circular,{color:A,lineWidth:l}=t;!s&&!r||!A||!l||n<0||(i.save(),i.strokeStyle=A,i.lineWidth=l,i.setLineDash(a.dash),i.lineDashOffset=a.dashOffset,i.beginPath(),S_(e,n,s,r),i.closePath(),i.stroke(),i.restore())}function m9(e,t,n){return oi(e,{label:n,index:t,type:"pointLabel"})}class Lo extends wu{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Et(eh(this.options)/2),n=this.width=this.maxWidth-t.width,r=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+r/2+t.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!1);this.min=ft(t)&&!isNaN(t)?t:0,this.max=ft(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/eh(this.options))}generateTickLabels(t){wu.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,r)=>{const a=Re(this.options.pointLabels.callback,[n,r],this);return a||a===0?a:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?i9(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,a){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,a))}getIndexAngle(t){const n=Ze/(this._pointLabels.length||1),r=this.options.startAngle||0;return kn(t*n+xt(r))}getDistanceFromCenterForValue(t){if(Ee(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(Ee(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t<n.length){const r=n[t];return m9(this.getContext(),t,r)}}getPointPosition(t,n,r=0){const a=this.getIndexAngle(t)-et+r;return{x:Math.cos(a)*n+this.xCenter,y:Math.sin(a)*n+this.yCenter,angle:a}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:n,top:r,right:a,bottom:i}=this._pointLabelItems[t];return{left:n,top:r,right:a,bottom:i}}drawBackground(){const{backgroundColor:t,grid:{circular:n}}=this.options;if(t){const r=this.ctx;r.save(),r.beginPath(),S_(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}drawGrid(){const t=this.ctx,n=this.options,{angleLines:r,grid:a,border:i}=n,s=this._pointLabels.length;let A,l,c;if(n.pointLabels.display&&p9(this,s),a.display&&this.ticks.forEach((u,d)=>{if(d!==0){l=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(d),p=a.setContext(f),h=i.setContext(f);h9(this,p,l,s,h)}}),r.display){for(t.save(),A=s-1;A>=0;A--){const u=r.setContext(this.getPointLabelContext(A)),{color:d,lineWidth:f}=u;!f||!d||(t.lineWidth=f,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(A,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const a=this.getIndexAngle(0);let i,s;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((A,l)=>{if(l===0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=ht(c.font);if(i=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,s=t.measureText(A.label).width,t.fillStyle=c.backdropColor;const d=Et(c.backdropPadding);t.fillRect(-s/2-d.left,-i-u.size/2-d.top,s+d.width,u.size+d.height)}Ri(t,A.label,0,-i,u,{color:c.color})}),t.restore()}drawTitle(){}}R(Lo,"id","radialLinear"),R(Lo,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:od.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),R(Lo,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),R(Lo,"descriptors",{angleLines:{_fallback:"grid"}});const ld={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},mn=Object.keys(ld);function g9(e,t){return e-t}function Iy(e,t){if(Ee(t))return null;const n=e._adapter,{parser:r,round:a,isoWeekday:i}=e._parseOpts;let s=t;return typeof r=="function"&&(s=r(s)),ft(s)||(s=typeof r=="string"?n.parse(s,r):n.parse(s)),s===null?null:(a&&(s=a==="week"&&(Ja(i)||i===!0)?n.startOf(s,"isoWeek",i):n.startOf(s,a)),+s)}function Ty(e,t,n,r){const a=mn.length;for(let i=mn.indexOf(e);i<a-1;++i){const s=ld[mn[i]],A=s.steps?s.steps:Number.MAX_SAFE_INTEGER;if(s.common&&Math.ceil((n-t)/(A*s.size))<=r)return mn[i]}return mn[a-1]}function v9(e,t,n,r,a){for(let i=mn.length-1;i>=mn.indexOf(n);i--){const s=mn[i];if(ld[s].common&&e._adapter.diff(a,r,s)>=t-1)return s}return mn[n?mn.indexOf(n):0]}function y9(e){for(let t=mn.indexOf(e)+1,n=mn.length;t<n;++t)if(ld[mn[t]].common)return mn[t]}function Uy(e,t,n){if(!n)e[t]=!0;else if(n.length){const{lo:r,hi:a}=Gm(n,t),i=n[r]>=t?n[r]:n[a];e[i]=!0}}function B9(e,t,n,r){const a=e._adapter,i=+a.startOf(t[0].value,r),s=t[t.length-1].value;let A,l;for(A=i;A<=s;A=+a.add(A,1,r))l=n[A],l>=0&&(t[l].major=!0);return t}function Dy(e,t,n){const r=[],a={},i=t.length;let s,A;for(s=0;s<i;++s)A=t[s],a[A]=s,r.push({value:A,major:!1});return i===0||!n?r:B9(e,r,a,n)}class OA extends ji{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){const r=t.time||(t.time={}),a=this._adapter=new o_._date(t.adapters.date);a.init(n),Jo(r.displayFormats,a.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:Iy(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,n=this._adapter,r=t.time.unit||"day";let{min:a,max:i,minDefined:s,maxDefined:A}=this.getUserBounds();function l(c){!s&&!isNaN(c.min)&&(a=Math.min(a,c.min)),!A&&!isNaN(c.max)&&(i=Math.max(i,c.max))}(!s||!A)&&(l(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&l(this.getMinMax(!1))),a=ft(a)&&!isNaN(a)?a:+n.startOf(Date.now(),r),i=ft(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(a,i-1),this.max=Math.max(a+1,i)}_getLabelBounds(){const t=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],r=t[t.length-1]),{min:n,max:r}}buildTicks(){const t=this.options,n=t.time,r=t.ticks,a=r.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const i=this.min,s=this.max,A=eO(a,i,s);return this._unit=n.unit||(r.autoSkip?Ty(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):v9(this,A.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:y9(this._unit),this.initOffsets(a),t.reverse&&A.reverse(),Dy(this,A,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,r=0,a,i;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?n=1-a:n=(this.getDecimalForValue(t[1])-a)/2,i=this.getDecimalForValue(t[t.length-1]),t.length===1?r=i:r=(i-this.getDecimalForValue(t[t.length-2]))/2);const s=t.length<3?.5:.25;n=Pt(n,0,s),r=Pt(r,0,s),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,a=this.options,i=a.time,s=i.unit||Ty(i.minUnit,n,r,this._getLabelCapacity(n)),A=de(a.ticks.stepSize,1),l=s==="week"?i.isoWeekday:!1,c=Ja(l)||l===!0,u={};let d=n,f,p;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":s),t.diff(r,n,s)>1e5*A)throw new Error(n+" and "+r+" are too far apart with stepSize of "+A+" "+s);const h=a.ticks.source==="data"&&this.getDataTimestamps();for(f=d,p=0;f<r;f=+t.add(f,A,s),p++)Uy(u,f,h);return(f===r||a.bounds==="ticks"||p===1)&&Uy(u,f,h),Object.keys(u).sort((g,B)=>g-B).map(g=>+g)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const a=this.options.time.displayFormats,i=this._unit,s=n||a[i];return this._adapter.format(t,s)}_tickFormatFunction(t,n,r,a){const i=this.options,s=i.ticks.callback;if(s)return Re(s,[t,n,r],this);const A=i.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&A[l],d=c&&A[c],f=r[n],p=c&&d&&f&&f.major;return this._adapter.format(t,a||(p?d:u))}generateTickLabels(t){let n,r,a;for(n=0,r=t.length;n<r;++n)a=t[n],a.label=this._tickFormatFunction(a.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const n=this._offsets,r=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(t){const n=this.options.ticks,r=this.ctx.measureText(t).width,a=xt(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(a),s=Math.sin(a),A=this._resolveTickFontOptions(0).size;return{w:r*i+A*s,h:r*s+A*i}}_getLabelCapacity(t){const n=this.options.time,r=n.displayFormats,a=r[n.unit]||r.millisecond,i=this._tickFormatFunction(t,0,Dy(this,[t],this._majorUnit),a),s=this._getLabelSize(i),A=Math.floor(this.isHorizontal()?this.width/s.w:this.height/s.h)-1;return A>0?A:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(n=0,r=a.length;n<r;++n)t=t.concat(a[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let n,r;if(t.length)return t;const a=this.getLabels();for(n=0,r=a.length;n<r;++n)t.push(Iy(this,a[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return Pb(t.sort(g9))}}R(OA,"id","time"),R(OA,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function rc(e,t,n){let r=0,a=e.length-1,i,s,A,l;n?(t>=e[r].pos&&t<=e[a].pos&&({lo:r,hi:a}=jr(e,"pos",t)),{pos:i,time:A}=e[r],{pos:s,time:l}=e[a]):(t>=e[r].time&&t<=e[a].time&&({lo:r,hi:a}=jr(e,"time",t)),{time:i,pos:A}=e[r],{time:s,pos:l}=e[a]);const c=s-i;return c?A+(l-A)*(t-i)/c:A}class th extends OA{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=rc(n,this.min),this._tableRange=rc(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,a=[],i=[];let s,A,l,c,u;for(s=0,A=t.length;s<A;++s)c=t[s],c>=n&&c<=r&&a.push(c);if(a.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(s=0,A=a.length;s<A;++s)u=a[s+1],l=a[s-1],c=a[s],Math.round((u+l)/2)!==c&&i.push({time:c,pos:s/(A-1)});return i}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(rc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return rc(this._table,r*this._tableRange+this._minPos,!0)}}R(th,"id","timeseries"),R(th,"defaults",OA.defaults);var w9=Object.freeze({__proto__:null,CategoryScale:Xp,LinearScale:Jp,LogarithmicScale:Zp,RadialLinearScale:Lo,TimeScale:OA,TimeSeriesScale:th});const Sr=[xM,rN,XN,w9];var b9=typeof global=="object"&&global&&global.Object===Object&&global;const x_=b9;var _9=typeof self=="object"&&self&&self.Object===Object&&self,C9=x_||_9||Function("return this")();const xr=C9;var k9=xr.Symbol;const Za=k9;var F_=Object.prototype,E9=F_.hasOwnProperty,S9=F_.toString,bo=Za?Za.toStringTag:void 0;function x9(e){var t=E9.call(e,bo),n=e[bo];try{e[bo]=void 0;var r=!0}catch{}var a=S9.call(e);return r&&(t?e[bo]=n:delete e[bo]),a}var F9=Object.prototype,I9=F9.toString;function T9(e){return I9.call(e)}var U9="[object Null]",D9="[object Undefined]",Qy=Za?Za.toStringTag:void 0;function dl(e){return e==null?e===void 0?D9:U9:Qy&&Qy in Object(e)?x9(e):T9(e)}function Vi(e){return e!=null&&typeof e=="object"}var Q9=Array.isArray;const Gs=Q9;function fl(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var L9="[object AsyncFunction]",O9="[object Function]",M9="[object GeneratorFunction]",N9="[object Proxy]";function I_(e){if(!fl(e))return!1;var t=dl(e);return t==O9||t==M9||t==L9||t==N9}var P9=xr["__core-js_shared__"];const Tf=P9;var Ly=function(){var e=/[^.]+$/.exec(Tf&&Tf.keys&&Tf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function H9(e){return!!Ly&&Ly in e}var R9=Function.prototype,V9=R9.toString;function Yi(e){if(e!=null){try{return V9.call(e)}catch{}try{return e+""}catch{}}return""}var K9=/[\\^$.*+?()[\]{}|]/g,$9=/^\[object .+?Constructor\]$/,z9=Function.prototype,W9=Object.prototype,G9=z9.toString,j9=W9.hasOwnProperty,Y9=RegExp("^"+G9.call(j9).replace(K9,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function q9(e){if(!fl(e)||H9(e))return!1;var t=I_(e)?Y9:$9;return t.test(Yi(e))}function X9(e,t){return e==null?void 0:e[t]}function qi(e,t){var n=X9(e,t);return q9(n)?n:void 0}var J9=qi(xr,"WeakMap");const nh=J9;var Oy=Object.create,Z9=function(){function e(){}return function(t){if(!fl(t))return{};if(Oy)return Oy(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const eP=Z9;function tP(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var nP=function(){try{var e=qi(Object,"defineProperty");return e({},"",{}),e}catch{}}();const My=nP;function rP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var aP=9007199254740991,iP=/^(?:0|[1-9]\d*)$/;function sP(e,t){var n=typeof e;return t=t??aP,!!t&&(n=="number"||n!="symbol"&&iP.test(e))&&e>-1&&e%1==0&&e<t}function T_(e,t,n){t=="__proto__"&&My?My(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ig(e,t){return e===t||e!==e&&t!==t}var oP=Object.prototype,AP=oP.hasOwnProperty;function U_(e,t,n){var r=e[t];(!(AP.call(e,t)&&ig(r,n))||n===void 0&&!(t in e))&&T_(e,t,n)}function cd(e,t,n,r){var a=!n;n||(n={});for(var i=-1,s=t.length;++i<s;){var A=t[i],l=r?r(n[A],e[A],A,n,e):void 0;l===void 0&&(l=e[A]),a?T_(n,A,l):U_(n,A,l)}return n}var lP=9007199254740991;function D_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=lP}function sg(e){return e!=null&&D_(e.length)&&!I_(e)}var cP=Object.prototype;function ud(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||cP;return e===n}function uP(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var dP="[object Arguments]";function Ny(e){return Vi(e)&&dl(e)==dP}var Q_=Object.prototype,fP=Q_.hasOwnProperty,pP=Q_.propertyIsEnumerable,hP=Ny(function(){return arguments}())?Ny:function(e){return Vi(e)&&fP.call(e,"callee")&&!pP.call(e,"callee")};const L_=hP;function mP(){return!1}var O_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Py=O_&&typeof module=="object"&&module&&!module.nodeType&&module,gP=Py&&Py.exports===O_,Hy=gP?xr.Buffer:void 0,vP=Hy?Hy.isBuffer:void 0,yP=vP||mP;const MA=yP;var BP="[object Arguments]",wP="[object Array]",bP="[object Boolean]",_P="[object Date]",CP="[object Error]",kP="[object Function]",EP="[object Map]",SP="[object Number]",xP="[object Object]",FP="[object RegExp]",IP="[object Set]",TP="[object String]",UP="[object WeakMap]",DP="[object ArrayBuffer]",QP="[object DataView]",LP="[object Float32Array]",OP="[object Float64Array]",MP="[object Int8Array]",NP="[object Int16Array]",PP="[object Int32Array]",HP="[object Uint8Array]",RP="[object Uint8ClampedArray]",VP="[object Uint16Array]",KP="[object Uint32Array]",at={};at[LP]=at[OP]=at[MP]=at[NP]=at[PP]=at[HP]=at[RP]=at[VP]=at[KP]=!0;at[BP]=at[wP]=at[DP]=at[bP]=at[QP]=at[_P]=at[CP]=at[kP]=at[EP]=at[SP]=at[xP]=at[FP]=at[IP]=at[TP]=at[UP]=!1;function $P(e){return Vi(e)&&D_(e.length)&&!!at[dl(e)]}function og(e){return function(t){return e(t)}}var M_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,iA=M_&&typeof module=="object"&&module&&!module.nodeType&&module,zP=iA&&iA.exports===M_,Uf=zP&&x_.process,WP=function(){try{var e=iA&&iA.require&&iA.require("util").types;return e||Uf&&Uf.binding&&Uf.binding("util")}catch{}}();const js=WP;var Ry=js&&js.isTypedArray,GP=Ry?og(Ry):$P;const Ag=GP;var jP=Object.prototype,YP=jP.hasOwnProperty;function N_(e,t){var n=Gs(e),r=!n&&L_(e),a=!n&&!r&&MA(e),i=!n&&!r&&!a&&Ag(e),s=n||r||a||i,A=s?uP(e.length,String):[],l=A.length;for(var c in e)(t||YP.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||sP(c,l)))&&A.push(c);return A}function P_(e,t){return function(n){return e(t(n))}}var qP=P_(Object.keys,Object);const XP=qP;var JP=Object.prototype,ZP=JP.hasOwnProperty;function H_(e){if(!ud(e))return XP(e);var t=[];for(var n in Object(e))ZP.call(e,n)&&n!="constructor"&&t.push(n);return t}function lg(e){return sg(e)?N_(e):H_(e)}function eH(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var tH=Object.prototype,nH=tH.hasOwnProperty;function rH(e){if(!fl(e))return eH(e);var t=ud(e),n=[];for(var r in e)r=="constructor"&&(t||!nH.call(e,r))||n.push(r);return n}function cg(e){return sg(e)?N_(e,!0):rH(e)}var aH=qi(Object,"create");const NA=aH;function iH(){this.__data__=NA?NA(null):{},this.size=0}function sH(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var oH="__lodash_hash_undefined__",AH=Object.prototype,lH=AH.hasOwnProperty;function cH(e){var t=this.__data__;if(NA){var n=t[e];return n===oH?void 0:n}return lH.call(t,e)?t[e]:void 0}var uH=Object.prototype,dH=uH.hasOwnProperty;function fH(e){var t=this.__data__;return NA?t[e]!==void 0:dH.call(t,e)}var pH="__lodash_hash_undefined__";function hH(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=NA&&t===void 0?pH:t,this}function Ki(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ki.prototype.clear=iH;Ki.prototype.delete=sH;Ki.prototype.get=cH;Ki.prototype.has=fH;Ki.prototype.set=hH;function mH(){this.__data__=[],this.size=0}function dd(e,t){for(var n=e.length;n--;)if(ig(e[n][0],t))return n;return-1}var gH=Array.prototype,vH=gH.splice;function yH(e){var t=this.__data__,n=dd(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():vH.call(t,n,1),--this.size,!0}function BH(e){var t=this.__data__,n=dd(t,e);return n<0?void 0:t[n][1]}function wH(e){return dd(this.__data__,e)>-1}function bH(e,t){var n=this.__data__,r=dd(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function pa(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}pa.prototype.clear=mH;pa.prototype.delete=yH;pa.prototype.get=BH;pa.prototype.has=wH;pa.prototype.set=bH;var _H=qi(xr,"Map");const PA=_H;function CH(){this.size=0,this.__data__={hash:new Ki,map:new(PA||pa),string:new Ki}}function kH(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function fd(e,t){var n=e.__data__;return kH(t)?n[typeof t=="string"?"string":"hash"]:n.map}function EH(e){var t=fd(this,e).delete(e);return this.size-=t?1:0,t}function SH(e){return fd(this,e).get(e)}function xH(e){return fd(this,e).has(e)}function FH(e,t){var n=fd(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xi.prototype.clear=CH;Xi.prototype.delete=EH;Xi.prototype.get=SH;Xi.prototype.has=xH;Xi.prototype.set=FH;function R_(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var IH=P_(Object.getPrototypeOf,Object);const V_=IH;function TH(){this.__data__=new pa,this.size=0}function UH(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function DH(e){return this.__data__.get(e)}function QH(e){return this.__data__.has(e)}var LH=200;function OH(e,t){var n=this.__data__;if(n instanceof pa){var r=n.__data__;if(!PA||r.length<LH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Xi(r)}return n.set(e,t),this.size=n.size,this}function Zr(e){var t=this.__data__=new pa(e);this.size=t.size}Zr.prototype.clear=TH;Zr.prototype.delete=UH;Zr.prototype.get=DH;Zr.prototype.has=QH;Zr.prototype.set=OH;function MH(e,t){return e&&cd(t,lg(t),e)}function NH(e,t){return e&&cd(t,cg(t),e)}var K_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vy=K_&&typeof module=="object"&&module&&!module.nodeType&&module,PH=Vy&&Vy.exports===K_,Ky=PH?xr.Buffer:void 0,$y=Ky?Ky.allocUnsafe:void 0;function HH(e,t){if(t)return e.slice();var n=e.length,r=$y?$y(n):new e.constructor(n);return e.copy(r),r}function RH(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}function $_(){return[]}var VH=Object.prototype,KH=VH.propertyIsEnumerable,zy=Object.getOwnPropertySymbols,$H=zy?function(e){return e==null?[]:(e=Object(e),RH(zy(e),function(t){return KH.call(e,t)}))}:$_;const ug=$H;function zH(e,t){return cd(e,ug(e),t)}var WH=Object.getOwnPropertySymbols,GH=WH?function(e){for(var t=[];e;)R_(t,ug(e)),e=V_(e);return t}:$_;const z_=GH;function jH(e,t){return cd(e,z_(e),t)}function W_(e,t,n){var r=t(e);return Gs(e)?r:R_(r,n(e))}function rh(e){return W_(e,lg,ug)}function YH(e){return W_(e,cg,z_)}var qH=qi(xr,"DataView");const ah=qH;var XH=qi(xr,"Promise");const ih=XH;var JH=qi(xr,"Set");const sh=JH;var Wy="[object Map]",ZH="[object Object]",Gy="[object Promise]",jy="[object Set]",Yy="[object WeakMap]",qy="[object DataView]",eR=Yi(ah),tR=Yi(PA),nR=Yi(ih),rR=Yi(sh),aR=Yi(nh),vi=dl;(ah&&vi(new ah(new ArrayBuffer(1)))!=qy||PA&&vi(new PA)!=Wy||ih&&vi(ih.resolve())!=Gy||sh&&vi(new sh)!=jy||nh&&vi(new nh)!=Yy)&&(vi=function(e){var t=dl(e),n=t==ZH?e.constructor:void 0,r=n?Yi(n):"";if(r)switch(r){case eR:return qy;case tR:return Wy;case nR:return Gy;case rR:return jy;case aR:return Yy}return t});const Ys=vi;var iR=Object.prototype,sR=iR.hasOwnProperty;function oR(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&sR.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var AR=xr.Uint8Array;const bu=AR;function dg(e){var t=new e.constructor(e.byteLength);return new bu(t).set(new bu(e)),t}function lR(e,t){var n=t?dg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var cR=/\w*$/;function uR(e){var t=new e.constructor(e.source,cR.exec(e));return t.lastIndex=e.lastIndex,t}var Xy=Za?Za.prototype:void 0,Jy=Xy?Xy.valueOf:void 0;function dR(e){return Jy?Object(Jy.call(e)):{}}function fR(e,t){var n=t?dg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var pR="[object Boolean]",hR="[object Date]",mR="[object Map]",gR="[object Number]",vR="[object RegExp]",yR="[object Set]",BR="[object String]",wR="[object Symbol]",bR="[object ArrayBuffer]",_R="[object DataView]",CR="[object Float32Array]",kR="[object Float64Array]",ER="[object Int8Array]",SR="[object Int16Array]",xR="[object Int32Array]",FR="[object Uint8Array]",IR="[object Uint8ClampedArray]",TR="[object Uint16Array]",UR="[object Uint32Array]";function DR(e,t,n){var r=e.constructor;switch(t){case bR:return dg(e);case pR:case hR:return new r(+e);case _R:return lR(e,n);case CR:case kR:case ER:case SR:case xR:case FR:case IR:case TR:case UR:return fR(e,n);case mR:return new r;case gR:case BR:return new r(e);case vR:return uR(e);case yR:return new r;case wR:return dR(e)}}function QR(e){return typeof e.constructor=="function"&&!ud(e)?eP(V_(e)):{}}var LR="[object Map]";function OR(e){return Vi(e)&&Ys(e)==LR}var Zy=js&&js.isMap,MR=Zy?og(Zy):OR;const NR=MR;var PR="[object Set]";function HR(e){return Vi(e)&&Ys(e)==PR}var eB=js&&js.isSet,RR=eB?og(eB):HR;const VR=RR;var KR=1,$R=2,zR=4,G_="[object Arguments]",WR="[object Array]",GR="[object Boolean]",jR="[object Date]",YR="[object Error]",j_="[object Function]",qR="[object GeneratorFunction]",XR="[object Map]",JR="[object Number]",Y_="[object Object]",ZR="[object RegExp]",eV="[object Set]",tV="[object String]",nV="[object Symbol]",rV="[object WeakMap]",aV="[object ArrayBuffer]",iV="[object DataView]",sV="[object Float32Array]",oV="[object Float64Array]",AV="[object Int8Array]",lV="[object Int16Array]",cV="[object Int32Array]",uV="[object Uint8Array]",dV="[object Uint8ClampedArray]",fV="[object Uint16Array]",pV="[object Uint32Array]",Xe={};Xe[G_]=Xe[WR]=Xe[aV]=Xe[iV]=Xe[GR]=Xe[jR]=Xe[sV]=Xe[oV]=Xe[AV]=Xe[lV]=Xe[cV]=Xe[XR]=Xe[JR]=Xe[Y_]=Xe[ZR]=Xe[eV]=Xe[tV]=Xe[nV]=Xe[uV]=Xe[dV]=Xe[fV]=Xe[pV]=!0;Xe[YR]=Xe[j_]=Xe[rV]=!1;function Gc(e,t,n,r,a,i){var s,A=t&KR,l=t&$R,c=t&zR;if(n&&(s=a?n(e,r,a,i):n(e)),s!==void 0)return s;if(!fl(e))return e;var u=Gs(e);if(u){if(s=oR(e),!A)return tP(e,s)}else{var d=Ys(e),f=d==j_||d==qR;if(MA(e))return HH(e,A);if(d==Y_||d==G_||f&&!a){if(s=l||f?{}:QR(e),!A)return l?jH(e,NH(s,e)):zH(e,MH(s,e))}else{if(!Xe[d])return a?e:{};s=DR(e,d,A)}}i||(i=new Zr);var p=i.get(e);if(p)return p;i.set(e,s),VR(e)?e.forEach(function(B){s.add(Gc(B,t,n,B,e,i))}):NR(e)&&e.forEach(function(B,m){s.set(m,Gc(B,t,n,m,e,i))});var h=c?l?YH:rh:l?cg:lg,g=u?void 0:h(e);return rP(g||e,function(B,m){g&&(m=B,B=e[m]),U_(s,m,Gc(B,t,n,m,e,i))}),s}var hV=1,mV=4;function _o(e){return Gc(e,hV|mV)}var gV="__lodash_hash_undefined__";function vV(e){return this.__data__.set(e,gV),this}function yV(e){return this.__data__.has(e)}function _u(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Xi;++t<n;)this.add(e[t])}_u.prototype.add=_u.prototype.push=vV;_u.prototype.has=yV;function BV(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function wV(e,t){return e.has(t)}var bV=1,_V=2;function q_(e,t,n,r,a,i){var s=n&bV,A=e.length,l=t.length;if(A!=l&&!(s&&l>A))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&_V?new _u:void 0;for(i.set(e,t),i.set(t,e);++d<A;){var h=e[d],g=t[d];if(r)var B=s?r(g,h,d,t,e,i):r(h,g,d,e,t,i);if(B!==void 0){if(B)continue;f=!1;break}if(p){if(!BV(t,function(m,v){if(!wV(p,v)&&(h===m||a(h,m,n,r,i)))return p.push(v)})){f=!1;break}}else if(!(h===g||a(h,g,n,r,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function CV(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}function kV(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var EV=1,SV=2,xV="[object Boolean]",FV="[object Date]",IV="[object Error]",TV="[object Map]",UV="[object Number]",DV="[object RegExp]",QV="[object Set]",LV="[object String]",OV="[object Symbol]",MV="[object ArrayBuffer]",NV="[object DataView]",tB=Za?Za.prototype:void 0,Df=tB?tB.valueOf:void 0;function PV(e,t,n,r,a,i,s){switch(n){case NV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case MV:return!(e.byteLength!=t.byteLength||!i(new bu(e),new bu(t)));case xV:case FV:case UV:return ig(+e,+t);case IV:return e.name==t.name&&e.message==t.message;case DV:case LV:return e==t+"";case TV:var A=CV;case QV:var l=r&EV;if(A||(A=kV),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=SV,s.set(e,t);var u=q_(A(e),A(t),r,a,i,s);return s.delete(e),u;case OV:if(Df)return Df.call(e)==Df.call(t)}return!1}var HV=1,RV=Object.prototype,VV=RV.hasOwnProperty;function KV(e,t,n,r,a,i){var s=n&HV,A=rh(e),l=A.length,c=rh(t),u=c.length;if(l!=u&&!s)return!1;for(var d=l;d--;){var f=A[d];if(!(s?f in t:VV.call(t,f)))return!1}var p=i.get(e),h=i.get(t);if(p&&h)return p==t&&h==e;var g=!0;i.set(e,t),i.set(t,e);for(var B=s;++d<l;){f=A[d];var m=e[f],v=t[f];if(r)var w=s?r(v,m,f,t,e,i):r(m,v,f,e,t,i);if(!(w===void 0?m===v||a(m,v,n,r,i):w)){g=!1;break}B||(B=f=="constructor")}if(g&&!B){var y=e.constructor,b=t.constructor;y!=b&&"constructor"in e&&"constructor"in t&&!(typeof y=="function"&&y instanceof y&&typeof b=="function"&&b instanceof b)&&(g=!1)}return i.delete(e),i.delete(t),g}var $V=1,nB="[object Arguments]",rB="[object Array]",ac="[object Object]",zV=Object.prototype,aB=zV.hasOwnProperty;function WV(e,t,n,r,a,i){var s=Gs(e),A=Gs(t),l=s?rB:Ys(e),c=A?rB:Ys(t);l=l==nB?ac:l,c=c==nB?ac:c;var u=l==ac,d=c==ac,f=l==c;if(f&&MA(e)){if(!MA(t))return!1;s=!0,u=!1}if(f&&!u)return i||(i=new Zr),s||Ag(e)?q_(e,t,n,r,a,i):PV(e,t,l,n,r,a,i);if(!(n&$V)){var p=u&&aB.call(e,"__wrapped__"),h=d&&aB.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,B=h?t.value():t;return i||(i=new Zr),a(g,B,n,r,i)}}return f?(i||(i=new Zr),KV(e,t,n,r,a,i)):!1}function X_(e,t,n,r,a){return e===t?!0:e==null||t==null||!Vi(e)&&!Vi(t)?e!==e&&t!==t:WV(e,t,n,r,X_,a)}var GV="[object Map]",jV="[object Set]",YV=Object.prototype,qV=YV.hasOwnProperty;function XV(e){if(e==null)return!0;if(sg(e)&&(Gs(e)||typeof e=="string"||typeof e.splice=="function"||MA(e)||Ag(e)||L_(e)))return!e.length;var t=Ys(e);if(t==GV||t==jV)return!e.size;if(ud(e))return!H_(e).length;for(var n in e)if(qV.call(e,n))return!1;return!0}function iB(e,t){return X_(e,t)}var JV=Object.defineProperty,ZV=Object.defineProperties,eK=Object.getOwnPropertyDescriptors,sB=Object.getOwnPropertySymbols,tK=Object.prototype.hasOwnProperty,nK=Object.prototype.propertyIsEnumerable,oB=(e,t,n)=>t in e?JV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,rK=(e,t)=>{for(var n in t||(t={}))tK.call(t,n)&&oB(e,n,t[n]);if(sB)for(var n of sB(t))nK.call(t,n)&&oB(e,n,t[n]);return e},aK=(e,t)=>ZV(e,eK(t));function iK(e){return(e.match(/[a-zA-Z0-9]+/g)||[]).map(t=>`${t.charAt(0).toUpperCase()}${t.slice(1)}`).join("")}var Ai=(e,t)=>{const n={chartData:{type:Object,required:!0},options:{type:Object,required:!1},chartId:{default:e,type:String},width:{default:400,type:Number},height:{default:400,type:Number},cssClasses:{type:String,default:""},styles:{type:Object},plugins:{type:Array,default:()=>[]},onLabelsUpdate:{type:Function},onChartUpdate:{type:Function},onChartDestroy:{type:Function},onChartRender:{type:Function}},r=iK(e);return o.defineComponent({name:r,props:n,emits:{"labels:update":()=>!0,"chart:update":a=>!0,"chart:destroy":()=>!0,"chart:render":a=>!0},setup(a,{emit:i,expose:s}){const A=o.ref(null),l=`${a.chartId}`;let c=o.shallowRef(null);o.watch(()=>a.chartData,u,{deep:!0}),o.watch(()=>a.options,B=>{c.value&&B&&(c.value.options=_o(B),h())},{deep:!0});function u(B){if(c.value){let m=c.value;iB(B.labels,c.value.data.labels)||(m.data.labels=B.labels,f()),iB(B.datasets,c.value.data.datasets)||B.datasets.forEach((v,w)=>{var y,b;if(XV(v))m.data.datasets=[];else{const _=_o(m.data),C=Object.keys((b=(y=_.datasets)==null?void 0:y[w])!=null?b:{}),E=Object.keys(v);C.filter(D=>D!=="_meta"&&E.indexOf(D)===-1).forEach(D=>{m.data.datasets[w]&&delete m.data.datasets[w][D]});for(const D in v){const T=_o(v[D]);m.data.datasets[w]||(m.data.datasets[w]={}),v.hasOwnProperty(D)&&T!=null&&m&&(m.data.datasets[w][D]=T)}}}),h()}else c.value&&g(),d()}function d(){A.value?(c.value=new Oe(A.value,{data:_o(a.chartData),type:t,options:_o(a.options),plugins:a.plugins}),p()):console.error(`Error on component ${r}, canvas cannot be rendered. Check if the render appends server-side`)}function f(){i("labels:update"),a.onLabelsUpdate&&a.onLabelsUpdate()}function p(){c.value&&(i("chart:render",c.value),a.onChartRender&&a.onChartRender(c.value))}function h(){c.value&&(c.value.update(),i("chart:update",c.value),a.onChartUpdate&&a.onChartUpdate(c.value))}function g(){c.value&&c.value.destroy(),i("chart:destroy"),a.onChartDestroy&&a.onChartDestroy()}return o.onMounted(d),o.onBeforeUnmount(()=>{c.value&&c.value.destroy()}),s({canvasRef:A,renderChart:d,chartInstance:c,canvasId:l,update:h}),()=>o.h("div",{style:aK(rK({maxWidth:"100%"},a.styles),{position:"relative"}),class:a.cssClasses},[o.h("canvas",{style:{maxWidth:"100%",maxHeight:"100%"},id:l,width:a.width,height:a.height,ref:A})])}})},pd=Ai("bar-chart","bar"),hd=Ai("doughnut-chart","doughnut"),J_=Ai("line-chart","line");Ai("pie-chart","pie");Ai("polar-chart","polarArea");Ai("radar-chart","radar");Ai("bubble-chart","bubble");Ai("scatter-chart","scatter");const Cu=o.defineComponent({__name:"InfoDoughnutChart",props:vL,setup(e){const t=e,n=o.ref(null);Oe.register(...Sr);const r=o.computed(()=>{const i=t.info==="typeRef"?"types":"rarities",s={},A=Bt(t.deckCode);for(const c in A){const u=on().cardJsonObject[c];if(u===void 0)continue;let d=u[t.info];d==="Unit"&&(d=u.supertype==="Champion"?"Champion":"Follower"),s[d]===void 0&&(s[d]=0),s[d]+=A[c]}const l=[];for(const c in s){const u=ve().dataJson[i].find(f=>f.nameRef===c),d={key:c,value:s[c],color:u==null?void 0:u.color,name:u==null?void 0:u.name,order:u==null?void 0:u.order};l.push(d)}return console.log(l),l.sort((c,u)=>c.order-u.order),{labels:l.map(c=>c.name),datasets:[{data:l.map(c=>c.value),backgroundColor:l.map(c=>c.color)}]}}),a={cutout:55,layout:{padding:{top:10,bottom:10}},elements:{arc:{borderWidth:0}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(i){const s=[],A=i.data.labels;for(let l=0;l<i.data.labels.length;l++)s.push({text:`${A[l]} (${i.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:Wa("--color-0"),fillStyle:i.data.datasets[0].backgroundColor[l]});return s}}},datalabels:{display:!1}}};return(i,s)=>(o.openBlock(),o.createBlock(o.unref(hd),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),sK={deck:{type:Object,required:!1,default:void 0},deckCode:{type:String,required:!1,default:void 0},paddingTop:{type:Number,required:!1,default:10},showDataLabels:{type:Boolean,required:!1,default:!0},dataLabelsOffset:{type:Number,required:!1,default:-10},tooltipsEnabled:{type:Boolean,required:!1,default:!0},displayXScale:{type:Boolean,required:!1,default:!0},animation:{type:Boolean,required:!1}};//! moment.js
|
|
843
843
|
//! version : 2.29.4
|
|
844
844
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
845
845
|
//! license : MIT
|
|
@@ -864,9 +864,9 @@ V.version="2.29.4";oK(ot);V.fn=H;V.min=j$;V.max=Y$;V.now=q$;V.utc=Fr;V.unix=CW;V
|
|
|
864
864
|
* https://www.chartjs.org/chartjs-plugin-annotation/index
|
|
865
865
|
* (c) 2023 chartjs-plugin-annotation Contributors
|
|
866
866
|
* Released under the MIT License
|
|
867
|
-
*/const hB={modes:{point(e,t){return Xc(e,t,{intersect:!0})},nearest(e,t,n){return TG(e,t,n)},x(e,t,n){return Xc(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return Xc(e,t,{intersect:n.intersect,axis:"y"})}}};function Dg(e,t,n){return(hB.modes[n.mode]||hB.modes.nearest)(e,t,n)}function FG(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function IG(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function Xc(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):FG(r,t,n.axis))}function TG(e,t,n){let r=Number.POSITIVE_INFINITY;return Xc(e,t,n).reduce((a,i)=>{const s=i.getCenterPoint(),A=IG(t,s,n.axis),l=Ks(t,A);return l<r?(a=[i],r=l):l===r&&a.push(i),a},[]).sort((a,i)=>a._index-i._index).slice(0,1)}const UG=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,ki=.001,Fd=(e,t,n)=>Math.min(n,Math.max(t,e));function DG(e,t,n){for(const r of Object.keys(e))e[r]=Fd(e[r],t,n);return e}function QG(e,t,n,r){if(!e||!t||n<=0)return!1;const a=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+a,2)}function JC(e,{x:t,y:n,x2:r,y2:a},i,s){const A=s/2,l=e.x>=t-A-ki&&e.x<=r+A+ki,c=e.y>=n-A-ki&&e.y<=a+A+ki;return i==="x"?l:(i==="y"||l)&&c}function io(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function LG(e,t,n,r=!0){const a=n.split(".");let i=0;for(const s of t.split(".")){const A=a[i++];if(parseInt(s,10)<parseInt(A,10))break;if(UG(A,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const ZC=e=>typeof e=="string"&&e.endsWith("%"),ek=e=>parseFloat(e)/100,tk=e=>Fd(ek(e),0,1);function Qg(e,t){return t==="start"?0:t==="end"?e:ZC(t)?tk(t)*e:e/2}function ei(e,t,n=!0){return typeof t=="number"?t:ZC(t)?(n?tk(t):ek(t))*e:e}function OG(e,t){const{x:n,width:r}=e,a=t.textAlign;return a==="center"?n+r/2:a==="end"||a==="right"?n+r:n}function Lg(e,t="center"){return we(e)?{x:de(e.x,t),y:de(e.y,t)}:(e=de(e,t),{x:e,y:e})}function nk(e){return e&&(Bn(e.xValue)||Bn(e.yValue))}function vl(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return ak(t,r)}else return;return MG(t,r,Re(a,[{chart:e,properties:t,options:n}]))}function rk(e,t,n){let r=!1;return t.forEach(a=>{yn(e[a])?(r=!0,n[a]=e[a]):Bn(n[a])&&delete n[a]}),r}function ak({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function MG(e,t,n){if(n===!0)return ak(e,t);if(we(n))return n}const Pf=new Map,NG=e=>isNaN(e)||e<=0,PG=e=>e.reduce(function(t,n){return t+=n.string,t},"");function Id(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function Og(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(xt(r)),e.translate(-t,-n))}function ti(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function so(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function Mg(e,t){const n=t.content;if(Id(n))return{width:ei(n.width,t.width),height:ei(n.height,t.height)};const r=t.font,a=Me(r)?r.map(l=>ht(l)):[ht(r)],i=t.textStrokeWidth,s=Me(n)?n:[n],A=s.join()+PG(a)+i+(e._measureText?"-spriting":"");return Pf.has(A)||Pf.set(A,$G(e,s,a,i)),Pf.get(A)}function ik(e,t,n){const{x:r,y:a,width:i,height:s}=t;e.save(),so(e,n);const A=ti(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),$s(e,{x:r,y:a,w:i,h:s,radius:DG(Ra(n.borderRadius),0,Math.min(i,s)/2)}),e.closePath(),e.fill(),A&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function HG(e,t,n){const r=n.content;if(Id(r)){e.save(),e.globalAlpha=GG(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const a=Me(r)?r:[r],i=n.font,s=Me(i)?i.map(d=>ht(d)):[ht(i)],A=n.color,l=Me(A)?A:[A],c=OG(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,RG(e,n)&&zG(e,{x:c,y:u},a,s),WG(e,{x:c,y:u},a,{fonts:s,colors:l}),e.restore()}function RG(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function VG(e,t,n,r){const{radius:a,options:i}=t,s=i.pointStyle,A=i.rotation;let l=(A||0)*Wm;if(Id(s)){e.save(),e.translate(n,r),e.rotate(l),e.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),e.restore();return}NG(a)||KG(e,{x:n,y:r,radius:a,rotation:A,style:s,rad:l})}function KG(e,{x:t,y:n,radius:r,rotation:a,style:i,rad:s}){let A,l,c,u;switch(e.beginPath(),i){default:e.arc(t,n,r,0,Ze),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=mu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=mu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),e.closePath();break;case"rectRounded":u=r*.516,c=r-u,A=Math.cos(s+Pn)*c,l=Math.sin(s+Pn)*c,e.arc(t-A,n-l,u,s-Qe,s-et),e.arc(t+l,n-A,u,s-et,s),e.arc(t+A,n+l,u,s,s+et),e.arc(t-l,n+A,u,s+et,s+Qe),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,e.rect(t-c,n-c,2*c,2*c);break}s+=Pn;case"rectRot":A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+l,n-A),e.lineTo(t+A,n+l),e.lineTo(t-l,n+A),e.closePath();break;case"crossRot":s+=Pn;case"cross":A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A);break;case"star":A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A),s+=Pn,A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A);break;case"line":A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(s)*r,n+Math.sin(s)*r);break}e.fill()}function $G(e,t,n,r){e.save();const a=t.length;let i=0,s=r;for(let A=0;A<a;A++){const l=n[Math.min(A,n.length-1)];e.font=l.string;const c=t[A];i=Math.max(i,e.measureText(c).width+r),s+=l.lineHeight}return e.restore(),{width:i,height:s}}function zG(e,{x:t,y:n},r,a){e.beginPath();let i=0;r.forEach(function(s,A){const l=a[Math.min(A,a.length-1)],c=l.lineHeight;e.font=l.string,e.strokeText(s,t,n+c/2+i),i+=c}),e.stroke()}function WG(e,{x:t,y:n},r,{fonts:a,colors:i}){let s=0;r.forEach(function(A,l){const c=i[Math.min(l,i.length-1)],u=a[Math.min(l,a.length-1)],d=u.lineHeight;e.beginPath(),e.font=u.string,e.fillStyle=c,e.fillText(A,t,n+d/2+s),s+=d,e.fill()})}function GG(e,t){const n=Ja(e)?e:t;return Ja(n)?Fd(n,0,1):1}const mB={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function qs(e,t,n){return t=typeof t=="number"?t:e.parse(t),ft(t)?e.getPixelForValue(t):n}function $i(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const a=n.charAt(0),i=Object.values(e).filter(s=>s.axis&&s.axis===a);return i.length?i[0].id:a}function sk(e,t){if(e){const n=e.options.reverse,r=qs(e,t.min,n?t.end:t.start),a=qs(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function ok(e,t){const{chartArea:n,scales:r}=e,a=r[$i(r,t,"xScaleID")],i=r[$i(r,t,"yScaleID")];let s=n.width/2,A=n.height/2;return a&&(s=qs(a,t.xValue,a.left+a.width/2)),i&&(A=qs(i,t.yValue,i.top+i.height/2)),{x:s,y:A}}function Ng(e,t){const n=e.scales,r=n[$i(n,t,"xScaleID")],a=n[$i(n,t,"yScaleID")];if(!r&&!a)return{};let{left:i,right:s}=r||e.chartArea,{top:A,bottom:l}=a||e.chartArea;const c=gB(r,{min:t.xMin,max:t.xMax,start:i,end:s});i=c.start,s=c.end;const u=gB(a,{min:t.yMin,max:t.yMax,start:l,end:A});return A=u.start,l=u.end,{x:i,y:A,x2:s,y2:l,width:s-i,height:l-A,centerX:i+(s-i)/2,centerY:A+(l-A)/2}}function Ak(e,t){if(!nk(t)){const n=Ng(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const a=r*2,i=n.centerX+t.xAdjust,s=n.centerY+t.yAdjust;return{x:i-r,y:s-r,x2:i+r,y2:s+r,centerX:i,centerY:s,width:a,height:a,radius:r}}return YG(e,t)}function jG(e,t){const{scales:n,chartArea:r}=e,a=n[t.scaleID],i={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return a?qG(a,i,t):XG(n,i,t),i}function lk(e,t,n){const r=Ng(e,t);return r.initProperties=vl(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:ej(e,r,t),initProperties:r.initProperties}],r}function YG(e,t){const n=ok(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function gB(e,t){const n=sk(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function qG(e,t,n){const r=qs(e,n.value,NaN),a=qs(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function XG(e,t,n){for(const r of Object.keys(mB)){const a=e[$i(e,n,r)];if(a){const{min:i,max:s,start:A,end:l,startProp:c,endProp:u}=mB[r],d=sk(a,{min:n[i],max:n[s],start:a[A],end:a[l]});t[c]=d.start,t[u]=d.end}}}function JG({properties:e,options:t},n,r,a){const{x:i,x2:s,width:A}=e;return ck({start:i,end:s,size:A,borderWidth:t.borderWidth},{position:r.x,padding:{start:a.left,end:a.right},adjust:t.label.xAdjust,size:n.width})}function ZG({properties:e,options:t},n,r,a){const{y:i,y2:s,height:A}=e;return ck({start:i,end:s,size:A,borderWidth:t.borderWidth},{position:r.y,padding:{start:a.top,end:a.bottom},adjust:t.label.yAdjust,size:n.height})}function ck(e,t){const{start:n,end:r,borderWidth:a}=e,{position:i,padding:{start:s,end:A},adjust:l}=t,c=r-a-n-s-A-t.size;return n+a/2+l+Qg(c,i)}function ej(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=Lg(r.position),i=Et(r.padding),s=Mg(e.ctx,r),A=JG({properties:t,options:n},s,a,i),l=ZG({properties:t,options:n},s,a,i),c=s.width+i.width,u=s.height+i.height;return{x:A,y:l,x2:A+c,y2:l+u,width:c,height:u,centerX:A+c/2,centerY:l+u/2,rotation:r.rotation}}function Zi(e,t,n){const r=Math.cos(n),a=Math.sin(n),i=t.x,s=t.y;return{x:i+r*(e.x-i)-a*(e.y-s),y:s+a*(e.x-i)+r*(e.y-s)}}const hh=["enter","leave"],Pg=hh.concat("click");function tj(e,t,n){t.listened=rk(n,Pg,t.listeners),t.moveListened=!1,t._getElements=Dg,hh.forEach(r=>{yn(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&yn(r.click)&&(t.listened=!0),t.moveListened||hh.forEach(a=>{yn(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function nj(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return rj(e,t,n);case"click":return aj(e,t,n)}}function rj(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=Dg(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const i={state:e,event:t};let s=vB(i,"leave",a,r);return vB(i,"enter",r,a)||s}function vB({state:e,event:t},n,r,a){let i;for(const s of r)a.indexOf(s)<0&&(i=uk(s.options[n]||e.listeners[n],s,t)||i);return i}function aj(e,t,n){const r=e.listeners,a=Dg(e,t,n.interaction);let i;for(const s of a)i=uk(s.options.click||r.click,s,t)||i;return i}function uk(e,t,n){return Re(e,[t.$context,n])===!0}const Tu=["afterDraw","beforeDraw"];function ij(e,t,n){const r=t.visibleElements;t.hooked=rk(n,Tu,t.hooks),t.hooked||r.forEach(a=>{t.hooked||Tu.forEach(i=>{yn(a.options[i])&&(t.hooked=!0)})})}function yB(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return Re(r,[t.$context])}}function sj(e,t,n){const r=uj(e.scales,t,n);let a=BB(t,r,"min","suggestedMin");a=BB(t,r,"max","suggestedMax")||a,a&&yn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function oj(e,t){for(const n of e)lj(n,t)}function BB(e,t,n,r){if(ft(t[n])&&!Aj(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function Aj(e,t,n){return Bn(e[t])||Bn(e[n])}function lj(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=$i(t,e,n);r&&!t[r]&&cj(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function cj(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(Bn(e[n+r]))return!0;return!1}function uj(e,t,n){const r=t.axis,a=t.id,i=r+"ScaleID",s={min:de(t.min,Number.NEGATIVE_INFINITY),max:de(t.max,Number.POSITIVE_INFINITY)};for(const A of n)A.scaleID===a?wB(A,t,["value","endValue"],s):$i(e,A,i)===a&&wB(A,t,[r+"Min",r+"Max",r+"Value"],s);return s}function wB(e,t,n,r){for(const a of n){const i=e[a];if(Bn(i)){const s=t.parse(i);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class oo extends An{inRange(t,n,r,a){const{x:i,y:s}=Zi({x:t,y:n},this.getCenterPoint(a),xt(-this.options.rotation));return JC({x:i,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return io(this,t)}draw(t){t.save(),Og(t,this.getCenterPoint(),this.options.rotation),ik(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return lk(t,n)}}oo.id="boxAnnotation";oo.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};oo.defaultRoutes={borderColor:"color",backgroundColor:"color"};oo.descriptors={label:{_fallback:!0}};const dk=["left","bottom","top","right"];class yl extends An{inRange(t,n,r,a){const{x:i,y:s}=Zi({x:t,y:n},this.getCenterPoint(a),xt(-this.rotation));return JC({x:i,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return io(this,t)}draw(t){const n=this.options,r=!Bn(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),Og(t,this.getCenterPoint(),this.rotation),fj(t,this),ik(t,this,n),HG(t,Bj(this),n),t.restore())}resolveElementProperties(t,n){let r;if(nk(n))r=ok(t,n);else{const{centerX:A,centerY:l}=Ng(t,n);r={x:A,y:l}}const a=Et(n.padding),i=Mg(t.ctx,n),s=dj(r,i,n,a);return{initProperties:vl(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}}yl.id="labelAnnotation";yl.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};yl.defaultRoutes={borderColor:"color"};function dj(e,t,n,r){const a=t.width+r.width+n.borderWidth,i=t.height+r.height+n.borderWidth,s=Lg(n.position,"center"),A=bB(e.x,a,n.xAdjust,s.x),l=bB(e.y,i,n.yAdjust,s.y);return{x:A,y:l,x2:A+a,y2:l+i,width:a,height:i,centerX:A+a/2,centerY:l+i/2}}function bB(e,t,n=0,r){return e-Qg(t,r)+n}function fj(e,t){const{pointX:n,pointY:r,options:a}=t,i=a.callout,s=i&&i.display&&vj(t,i);if(!s||wj(t,i,s))return;if(e.save(),e.beginPath(),!ti(e,i))return e.restore();const{separatorStart:l,separatorEnd:c}=pj(t,s),{sideStart:u,sideEnd:d}=mj(t,s,l);(i.margin>0||a.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(c.x,c.y)),e.moveTo(u.x,u.y),e.lineTo(d.x,d.y);const f=Zi({x:n,y:r},t.getCenterPoint(),xt(-t.rotation));e.lineTo(f.x,f.y),e.stroke(),e.restore()}function pj(e,t){const{x:n,y:r,x2:a,y2:i}=e,s=hj(e,t);let A,l;return t==="left"||t==="right"?(A={x:n+s,y:r},l={x:A.x,y:i}):(A={x:n,y:r+s},l={x:a,y:A.y}),{separatorStart:A,separatorEnd:l}}function hj(e,t){const{width:n,height:r,options:a}=e,i=a.callout.margin+a.borderWidth/2;return t==="right"?n+i:t==="bottom"?r+i:-i}function mj(e,t,n){const{y:r,width:a,height:i,options:s}=e,A=s.callout.start,l=gj(t,s.callout);let c,u;return t==="left"||t==="right"?(c={x:n.x,y:r+ei(i,A)},u={x:c.x+l,y:c.y}):(c={x:n.x+ei(a,A),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function gj(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function vj(e,t){const n=t.position;return dk.includes(n)?n:yj(e,t)}function yj(e,t){const{x:n,y:r,x2:a,y2:i,width:s,height:A,pointX:l,pointY:c,centerX:u,centerY:d,rotation:f}=e,p={x:u,y:d},h=t.start,g=ei(s,h),B=ei(A,h),m=[n,n+g,n+g,a],v=[r+B,i,r,i],w=[];for(let y=0;y<4;y++){const b=Zi({x:m[y],y:v[y]},p,xt(f));w.push({position:dk[y],distance:Ks(b,{x:l,y:c})})}return w.sort((y,b)=>y.distance-b.distance)[0].position}function Bj({x:e,y:t,width:n,height:r,options:a}){const i=a.borderWidth/2,s=Et(a.padding);return{x:e+s.left+i,y:t+s.top+i,width:n-s.left-s.right-a.borderWidth,height:r-s.top-s.bottom-a.borderWidth}}function wj(e,t,n){const{pointX:r,pointY:a}=e,i=t.margin;let s=r,A=a;return n==="left"?s+=i:n==="right"?s-=i:n==="top"?A+=i:n==="bottom"&&(A-=i),e.inRange(s,A)}const Hg=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),mh=(e,t,n)=>Hg(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,_B=(e,t,n)=>Hg(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,Oo=e=>e*e,bj=(e,t,{x:n,y:r,x2:a,y2:i},s)=>s==="y"?{start:Math.min(r,i),end:Math.max(r,i),value:t}:{start:Math.min(n,a),end:Math.max(n,a),value:e},CB=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,gh=(e,t,n,r)=>({x:CB(e.x,t.x,n.x,r),y:CB(e.y,t.y,n.y,r)}),kB=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),EB=(e,t,n,r)=>-Math.atan2(kB(e.x,t.x,n.x,r),kB(e.y,t.y,n.y,r))+.5*Qe;class Bl extends An{inRange(t,n,r,a){const i=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const s={mouseX:t,mouseY:n},{path:A,ctx:l}=this;if(A){ti(l,this.options);const{chart:u}=this.$context,d=t*u.currentDevicePixelRatio,f=n*u.currentDevicePixelRatio,p=l.isPointInStroke(A,d,f)||vh(this,s,a);return l.restore(),p}const c=Oo(i);return Ej(this,s,c,a)||vh(this,s,a)}return _j(this,{mouseX:t,mouseY:n},r,{hBorderWidth:i,useFinalPosition:a})}getCenterPoint(t){return io(this,t)}draw(t){const{x:n,y:r,x2:a,y2:i,cp:s,options:A}=this;if(t.save(),!ti(t,A))return t.restore();so(t,A);const l=Math.sqrt(Math.pow(a-n,2)+Math.pow(i-r,2));if(A.curve&&s)return Qj(t,this,s,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=fk(this),p=Math.atan2(i-r,a-n);t.translate(n,r),t.rotate(p),t.beginPath(),t.moveTo(0+d,0),t.lineTo(l-f,0),t.shadowColor=A.borderShadowColor,t.stroke(),yh(t,0,d,c),yh(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=jG(t,n),{x:a,y:i,x2:s,y2:A}=r,l=Cj(r,t.chartArea),c=l?kj({x:a,y:i},{x:s,y:A},t.chartArea):{x:a,y:i,x2:s,y2:A,width:Math.abs(s-a),height:Math.abs(A-i)};if(c.centerX=(s+a)/2,c.centerY=(A+i)/2,c.initProperties=vl(t,c,n),n.curve){const d={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=Dj(c,n,Ks(d,f))}const u=Sj(t,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}Bl.id="lineAnnotation";const SB={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Bl.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},SB),fill:!1,length:12,start:Object.assign({},SB),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},yl.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Bl.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};Bl.defaultRoutes={borderColor:"color"};function _j(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:i}){const s=bj(t,n,e.getProps(["x","y","x2","y2"],i),r);return s.value>=s.start-a&&s.value<=s.end+a||vh(e,{mouseX:t,mouseY:n},i,r)}function Cj({x:e,y:t,x2:n,y2:r},{top:a,right:i,bottom:s,left:A}){return!(e<A&&n<A||e>i&&n>i||t<a&&r<a||t>s&&r>s)}function xB({x:e,y:t},n,{top:r,right:a,bottom:i,left:s}){return e<s&&(t=_B(s,{x:e,y:t},n),e=s),e>a&&(t=_B(a,{x:e,y:t},n),e=a),t<r&&(e=mh(r,{x:e,y:t},n),t=r),t>i&&(e=mh(i,{x:e,y:t},n),t=i),{x:e,y:t}}function kj(e,t,n){const{x:r,y:a}=xB(e,t,n),{x:i,y:s}=xB(t,e,n);return{x:r,y:a,x2:i,y2:s,width:Math.abs(i-r),height:Math.abs(s-a)}}function Ej(e,{mouseX:t,mouseY:n},r=ki,a){const{x:i,y:s,x2:A,y2:l}=e.getProps(["x","y","x2","y2"],a),c=A-i,u=l-s,d=Oo(c)+Oo(u),f=d===0?-1:((t-i)*c+(n-s)*u)/d;let p,h;return f<0?(p=i,h=s):f>1?(p=A,h=l):(p=i+f*c,h=s+f*u),Oo(t-p)+Oo(n-h)<=r}function vh(e,{mouseX:t,mouseY:n},r,a){const i=e.label;return i.options.display&&i.inRange(t,n,a,r)}function Sj(e,t,n){const r=n.borderWidth,a=Et(n.padding),i=Mg(e.ctx,n),s=i.width+a.width+r,A=i.height+a.height+r;return Fj(t,n,{width:s,height:A,padding:a},e.chartArea)}function xj(e){const{x:t,y:n,x2:r,y2:a}=e,i=Math.atan2(a-n,r-t);return i>Qe/2?i-Qe:i<Qe/-2?i+Qe:i}function Fj(e,t,n,r){const{width:a,height:i,padding:s}=n,{xAdjust:A,yAdjust:l}=t,c={x:e.x,y:e.y},u={x:e.x2,y:e.y2},d=t.rotation==="auto"?xj(e):xt(t.rotation),f=Ij(a,i,d),p=Tj(e,t,{labelSize:f,padding:s},r),h=e.cp?gh(c,e.cp,u,p):Hg(c,u,p),g={size:f.w,min:r.left,max:r.right,padding:s.left},B={size:f.h,min:r.top,max:r.bottom,padding:s.top},m=IB(h.x,g)+A,v=IB(h.y,B)+l;return{x:m-a/2,y:v-i/2,x2:m+a/2,y2:v+i/2,centerX:m,centerY:v,pointX:h.x,pointY:h.y,width:a,height:i,rotation:sd(d)}}function Ij(e,t,n){const r=Math.cos(n),a=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*a),h:Math.abs(e*a)+Math.abs(t*r)}}function Tj(e,t,n,r){let a;const i=Uj(e,r);return t.position==="start"?a=FB({w:e.x2-e.x,h:e.y2-e.y},n,t,i):t.position==="end"?a=1-FB({w:e.x-e.x2,h:e.y-e.y2},n,t,i):a=Qg(1,t.position),a}function FB(e,t,n,r){const{labelSize:a,padding:i}=t,s=e.w*r.dx,A=e.h*r.dy,l=s>0&&(a.w/2+i.left-r.x)/s,c=A>0&&(a.h/2+i.top-r.y)/A;return Fd(Math.max(l,c),0,.25)}function Uj(e,t){const{x:n,x2:r,y:a,y2:i}=e,s=Math.min(a,i)-t.top,A=Math.min(n,r)-t.left,l=t.bottom-Math.max(a,i),c=t.right-Math.max(n,r);return{x:Math.min(A,c),y:Math.min(s,l),dx:A<=c?1:-1,dy:s<=l?1:-1}}function IB(e,t){const{size:n,min:r,max:a,padding:i}=t,s=n/2;return n>a-r?(a+r)/2:(r>=e-i-s&&(e=r+i+s),a<=e+i+s&&(e=a-i-s),e)}function fk(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:TB(e,n),endAdjust:TB(e,r)}}function TB(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,a=e.options.borderWidth/2,i={x:n,y:r+a};return Math.abs(mh(0,i,{x:0,y:a}))}function yh(e,t,n,r){if(!r||!r.display)return;const{length:a,width:i,fill:s,backgroundColor:A,borderColor:l}=r,c=Math.abs(t-a)+n;e.beginPath(),so(e,r),ti(e,r),e.moveTo(c,-i),e.lineTo(t+n,0),e.lineTo(c,i),s===!0?(e.fillStyle=A||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function Dj(e,t,n){const{x:r,y:a,x2:i,y2:s,centerX:A,centerY:l}=e,c=Math.atan2(s-a,i-r),u=Lg(t.controlPoint,0),d={x:A+ei(n,u.x,!1),y:l+ei(n,u.y,!1)};return Zi(d,{x:A,y:l},c)}function UB(e,{x:t,y:n},{angle:r,adjust:a},i){!i||!i.display||(e.save(),e.translate(t,n),e.rotate(r),yh(e,0,-a,i),e.restore())}function Qj(e,t,n,r){const{x:a,y:i,x2:s,y2:A,options:l}=t,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=fk(t),p={x:a,y:i},h={x:s,y:A},g=EB(p,n,h,0),B=EB(p,n,h,1)-Qe,m=gh(p,n,h,d/r),v=gh(p,n,h,1-f/r),w=new Path2D;e.beginPath(),w.moveTo(m.x,m.y),w.quadraticCurveTo(n.x,n.y,v.x,v.y),e.shadowColor=l.borderShadowColor,e.stroke(w),t.path=w,t.ctx=e,UB(e,m,{angle:g,adjust:d},c),UB(e,v,{angle:B,adjust:f},u)}class wl extends An{inRange(t,n,r,a){const i=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return Lj({x:t,y:n},this.getProps(["width","height","centerX","centerY"],a),i,s);const{x:A,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],a),d=s/2,f=r==="y"?{start:l,end:u}:{start:A,end:c},p=Zi({x:t,y:n},this.getCenterPoint(a),xt(-i));return p[r]>=f.start-d-ki&&p[r]<=f.end+d+ki}getCenterPoint(t){return io(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:i,options:s}=this;t.save(),Og(t,this.getCenterPoint(),s.rotation),so(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const A=ti(t,s);t.ellipse(a,i,r/2,n/2,Qe/2,0,2*Qe),t.fill(),A&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return lk(t,n,!0)}}wl.id="ellipseAnnotation";wl.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},oo.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};wl.defaultRoutes={borderColor:"color",backgroundColor:"color"};wl.descriptors={label:{_fallback:!0}};function Lj(e,t,n,r){const{width:a,height:i,centerX:s,centerY:A}=t,l=a/2,c=i/2;if(l<=0||c<=0)return!1;const u=xt(n||0),d=r/2||0,f=Math.cos(u),p=Math.sin(u),h=Math.pow(f*(e.x-s)+p*(e.y-A),2),g=Math.pow(p*(e.x-s)-f*(e.y-A),2);return h/Math.pow(l+d,2)+g/Math.pow(c+d,2)<=1.0001}class Td extends An{inRange(t,n,r,a){const{x:i,y:s,x2:A,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],a),u=this.options.borderWidth;if(r!=="x"&&r!=="y")return QG({x:t,y:n},this.getCenterPoint(a),c/2,u);const d=u/2,f=r==="y"?{start:s,end:l,value:n}:{start:i,end:A,value:t};return f.value>=f.start-d&&f.value<=f.end+d}getCenterPoint(t){return io(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,so(t,n);const a=ti(t,n);VG(t,this,this.centerX,this.centerY),a&&!Id(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=Ak(t,n);return r.initProperties=vl(t,r,n,!0),r}}Td.id="pointAnnotation";Td.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Td.defaultRoutes={borderColor:"color",backgroundColor:"color"};class Ud extends An{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&Mj(this.elements,t,n,a);const i=Zi({x:t,y:n},this.getCenterPoint(a),xt(-this.options.rotation)),s=this.elements.map(c=>r==="y"?c.bY:c.bX),A=Math.min(...s),l=Math.max(...s);return i[r]>=A&&i[r]<=l}getCenterPoint(t){return io(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,so(t,r);const a=ti(t,r);let i=!0;for(const s of n)i?(t.moveTo(s.x,s.y),i=!1):t.lineTo(s.x,s.y);t.closePath(),t.fill(),a&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=Ak(t,n),{sides:a,rotation:i}=n,s=[],A=2*Qe/a;let l=i*Wm;for(let c=0;c<a;c++,l+=A){const u=Oj(r,n,l);u.initProperties=vl(t,r,n),s.push(u)}return r.elements=s,r}}Ud.id="polygonAnnotation";Ud.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Ud.defaultRoutes={borderColor:"color",backgroundColor:"color"};function Oj({centerX:e,centerY:t},{radius:n,borderWidth:r},a){const i=r/2,s=Math.sin(a),A=Math.cos(a),l={x:e+s*n,y:t-A*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+i),bY:t-A*(n+i)}}}function Mj(e,t,n,r){let a=!1,i=e[e.length-1].getProps(["bX","bY"],r);for(const s of e){const A=s.getProps(["bX","bY"],r);A.bY>n!=i.bY>n&&t<(i.bX-A.bX)*(n-A.bY)/(i.bY-A.bY)+A.bX&&(a=!a),i=A}return a}const Ka={box:oo,ellipse:wl,label:yl,line:Bl,point:Td,polygon:Ud};Object.keys(Ka).forEach(e=>{pt.describe(`elements.${Ka[e].id}`,{_fallback:"plugins.annotation.common"})});const Nj={update:Object.assign},Pj=Pg.concat(Tu),DB=(e,t)=>we(t)?wh(e,t):e,Bh=e=>e==="color"||e==="font";function Rg(e="line"){return Ka[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function Hj(e,t,n,r){const a=Vj(e,n.animations,r),i=t.annotations,s=zj(t.elements,i);for(let A=0;A<i.length;A++){const l=i[A],c=pk(s,A,l.type),u=l.setContext($j(e,c,l)),d=c.resolveElementProperties(e,u);d.skip=Rj(d),"elements"in d&&(Kj(c,d.elements,u,a),delete d.elements),Bn(c.x)||Object.assign(c,d),Object.assign(c,d.initProperties),d.options=hk(u),a.update(c,d)}}function Rj(e){return isNaN(e.x)||isNaN(e.y)}function Vj(e,t,n){return n==="reset"||n==="none"||n==="resize"?Nj:new tg(e,t)}function Kj(e,t,n,r){const a=e.elements||(e.elements=[]);a.length=t.length;for(let i=0;i<t.length;i++){const s=t[i],A=s.properties,l=pk(a,i,s.type,s.initProperties),c=n[s.optionScope].override(s);A.options=hk(c),r.update(l,A)}}function pk(e,t,n,r){const a=Ka[Rg(n)];let i=e[t];return(!i||!(i instanceof a))&&(i=e[t]=new a,Object.assign(i,r)),i}function hk(e){const t=Ka[Rg(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,wh(e,t.defaults),wh(e,t.defaultRoutes));for(const r of Pj)n[r]=e[r];return n}function wh(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],i=e[r];Bh(r)&&Me(i)?n[r]=i.map(s=>DB(s,a)):n[r]=DB(i,a)}return n}function $j(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function zj(e,t){const n=t.length,r=e.length;if(r<n){const a=n-r;e.splice(r,0,...new Array(a))}else r>n&&e.splice(n,r-n);return e}var Wj="2.2.1";const Ca=new Map,Gj=Pg.concat(Tu);var es={id:"annotation",version:Wj,beforeRegister(){LG("chart.js","3.7",Oe.version)},afterRegister(){Oe.register(Ka)},afterUnregister(){Oe.unregister(Ka)},beforeInit(e){Ca.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=Ca.get(e),a=r.annotations=[];let i=n.annotations;we(i)?Object.keys(i).forEach(s=>{const A=i[s];we(A)&&(A.id=s,a.push(A))}):Me(i)&&a.push(...i),oj(a,e.scales)},afterDataLimits(e,t){const n=Ca.get(e);sj(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=Ca.get(e);tj(e,r,n),Hj(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),ij(e,r,n)},beforeDatasetsDraw(e,t,n){uc(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){uc(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){uc(e,"beforeDraw",n.clip)},afterDraw(e,t,n){uc(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=Ca.get(e);nj(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){Ca.delete(e)},_getState(e){return Ca.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!Gj.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Ka[Rg(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Bh,_fallback:!0},_indexable:Bh}},additionalOptionScopes:[""]};function uc(e,t,n){const{ctx:r,chartArea:a}=e,i=Ca.get(e);n&&ll(r,a);const s=jj(i.visibleElements,t).sort((A,l)=>A.element.options.z-l.element.options.z);for(const A of s)Yj(r,a,i,A);n&&cl(r)}function jj(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const a of r.elements)a.options.display&&a.options.drawTime===t&&n.push({element:a});return n}function Yj(e,t,n,r){const a=r.element;r.main?(yB(n,a,"beforeDraw"),a.draw(e,t),yB(n,a,"afterDraw")):a.draw(e,t)}const bl=o.defineComponent({__name:"ManaCurveChart",props:sK,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es),Oe.register(xd);const a={topLeft:9999,topRight:9999,bottomLeft:9999,bottomRight:9999},i=o.computed(()=>["0","1","2","3","4","5","6","7","8","9","+"]),s=o.computed(()=>{if(console.log(t.deck),t.deck)return t.deck;if(console.log(t.deckCode),t.deckCode)return Bt(t.deckCode);throw console.log("props.deckCode"),new Error("Deck or DeckCode must be defined")}),A=o.computed(()=>{const u={},d=Ku(s.value);for(const f of d)u[f]=i.value.map(()=>0);for(const f in s.value){const p=on().cardJsonObject[f];if(p===void 0)continue;const h=jh(p,d);if(p.cost>10){u[h][10]+=s.value[f];continue}u[h][p.cost]+=s.value[f]}return u}),l=o.computed(()=>{const u=[];for(let d=0;d<Object.keys(A.value).length;d++){const f=Object.keys(A.value)[d];u.push({backgroundColor:N2(f),data:A.value[f],borderRadius:a,borderSkipped:!1,label:Gh(f),barPercentage:.5},{backgroundColor:"transparent",data:A.value[f].map(p=>p>0?1:0)})}return{labels:i.value,datasets:u}}),c={responsive:!0,animation:t.animation,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:t.tooltipsEnabled,mode:"index",intersect:!1,filter(u){return u.datasetIndex%2===0&&u.formattedValue!=="0"},callbacks:{title(u){return u.length===0?"":n("deck.numManaCards",{num:u[0].label==="+"?"10+":u[0].label})},footer(u){if(u.length===0)return"";let d=0;for(let f=0;f<u[0].chart.data.datasets.length;f++)f%2!==1&&(d+=u[0].chart.data.datasets[f].data[u[0].dataIndex]);return`${n("general.total")}: ${d}`}}},datalabels:{align:"end",anchor:"end",offset:t.dataLabelsOffset,formatter(u,d){let f=0;for(let p=0;p<d.chart.data.datasets.length;p++)p%2!==1&&(f+=d.chart.data.datasets[p].data[d.dataIndex]);return f||""},display(u){return t.showDataLabels?u.datasetIndex===u.chart.data.datasets.length-1:!1}}},scales:{x:{stacked:!0,grid:{display:!1},display:t.displayXScale},y:{stacked:!0,grid:{display:!1},display:!1}},layout:{padding:{top:t.paddingTop}}};return(u,d)=>(o.openBlock(),o.createBlock(o.unref(pd),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),qj={playerId:{type:Number,required:!0,default:1},playerName:{type:String,required:!0,default:""},selectedIconCard:{type:String,required:!1,default:void 0},selectedBannerColor:{type:String,required:!1,default:void 0},createdAt:{type:Date,required:!0,default:new Date},updatedAt:{type:Date,required:!0,default:new Date}},Xj={class:"player"},Jj={class:"row"},Zj={class:"prompt"},eY={class:"value"},tY={class:"row"},nY={class:"prompt"},rY={class:"value"},aY=o.defineComponent({__name:"BuiltDeckHighlight",props:qj,setup(e){const t=e,n=o.inject(ri),{t:r}=J();return(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(dt,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createElementVNode("div",Xj,[o.createVNode(fa,{class:"circle-card-item","card-code-prop":t.selectedIconCard??"05BC160","ignore-card-item":!0,"color-override":t.selectedBannerColor,"router-link":o.unref(ye)().callbacks.playerIdRouterLinkCallback(t.playerId)},null,8,["card-code-prop","color-override","router-link"]),o.createVNode(s,{to:o.unref(ye)().callbacks.playerIdRouterLinkCallback(t.playerId),class:"name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.playerName),1)]),_:1},8,["to"])]),o.createElementVNode("div",Jj,[o.createElementVNode("div",Zj,o.toDisplayString(o.unref(r)("general.createdAt")),1),o.createElementVNode("div",eY,o.toDisplayString(o.unref(n)(t.createdAt).fromNow()),1)]),o.createElementVNode("div",tY,[o.createElementVNode("div",nY,o.toDisplayString(o.unref(r)("general.updatedAt")),1),o.createElementVNode("div",rY,o.toDisplayString(o.unref(n)(t.updatedAt).fromNow()),1)])]),_:1})}}});const iY=M(aY,[["__scopeId","data-v-9743903e"]]),sY=o.defineComponent({__name:"DeckSidePanel",props:gL,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filters),i=o.computed(()=>M3(n.deckcode)),s=o.computed(()=>Object.keys(Bt(n.deckcode)).filter(c=>Ls(on().cardJsonObject[c]))),A=o.computed(()=>{var c;return(c=ge().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:c.availableQueues});o.watch(a,()=>{t("update:filters",a)});function l(){for(const[,c]of Object.entries(a))c.splice(0)}return(c,u)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":l},{default:o.withCtx(()=>[n.builtDeckProps?(o.openBlock(),o.createBlock(iY,o.normalizeProps(o.mergeProps({key:0},n.builtDeckProps)),null,16)):o.createCommentVNode("",!0),o.createVNode(id,{"card-codes":s.value,regions:i.value},null,8,["card-codes","regions"]),o.createVNode(dt,{title:o.unref(r)("general.regions")},{default:o.withCtx(()=>[o.createVNode(Mm,{"deck-code":n.deckcode,"describe-regions":!0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(dt,{title:o.unref(r)("general.manaCurve")},{default:o.withCtx(()=>[o.createVNode(bl,{class:"mana-curve-chart","deck-code":n.deckcode,"padding-top":5,"show-data-labels":!0,"data-labels-offset":-5,"tooltips-enabled":!0,"display-x-scale":!0,animation:void 0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(dt,{title:o.unref(r)("general.type")},{default:o.withCtx(()=>[o.createVNode(Cu,{class:"side-panel-chart","deck-code":n.deckcode,info:"typeRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(dt,{title:o.unref(r)("general.rarity")},{default:o.withCtx(()=>[o.createVNode(Cu,{class:"side-panel-chart","deck-code":n.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(eo,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":u[0]||(u[0]=d=>a.sampleSizeFilters=d)},null,8,["filter-array"]),o.createVNode(Wi,{"filter-array":a.timeFilters,"onUpdate:filterArray":u[1]||(u[1]=d=>a.timeFilters=d)},null,8,["filter-array"]),o.createVNode(to,{"filter-array":a.serverFilters,"onUpdate:filterArray":u[2]||(u[2]=d=>a.serverFilters=d)},null,8,["filter-array"]),o.createVNode(nl,{"filter-array":a.formatFilters,"onUpdate:filterArray":u[3]||(u[3]=d=>a.formatFilters=d)},null,8,["filter-array"]),o.createVNode(rl,{"filter-array":a.queueFilters,"onUpdate:filterArray":u[4]||(u[4]=d=>a.queueFilters=d),"available-queues":A.value},null,8,["filter-array","available-queues"])]),_:1},8,["filter-object"]))}});const mk=M(sY,[["__scopeId","data-v-b95c4f38"]]),oY={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}}},_l=e=>(o.pushScopeId("data-v-380c3647"),e=e(),o.popScopeId(),e),AY={class:"deck-summary"},lY={class:"deck-cards"},cY={class:"champions-landmarks column"},uY={key:0,class:"type"},dY={class:"type-heading"},fY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/champion.svg"},null,-1)),pY={class:"title"},hY={class:"type-quantity"},mY={class:"card-container"},gY={key:1,class:"type column"},vY={class:"type-heading"},yY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/landmark.svg"},null,-1)),BY={class:"title"},wY={class:"type-quantity"},bY={class:"card-container"},_Y={key:2,class:"type column"},CY={class:"type-heading"},kY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/equipment.svg"},null,-1)),EY={class:"title"},SY={class:"type-quantity"},xY={class:"card-container"},FY={key:0,class:"type column"},IY={class:"type-heading"},TY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/follower.svg"},null,-1)),UY={class:"title"},DY={class:"type-quantity"},QY={class:"card-container"},LY={key:1,class:"type"},OY={class:"type-heading"},MY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/spell.svg"},null,-1)),NY={class:"title"},PY={class:"type-quantity"},HY={class:"card-container"},RY=o.defineComponent({__name:"DeckSummary",props:oY,setup(e){const t=e,n=o.computed(()=>t.cardsProp?t.cardsProp:Zt(t.deck)),r=o.computed(()=>WA(n.value)),a=o.computed(()=>n.value.filter(u=>Ls(u))),i=o.computed(()=>n.value.filter(u=>u.typeRef==="Unit"&&u.supertype==="")),s=o.computed(()=>n.value.filter(u=>u.typeRef==="Spell")),A=o.computed(()=>n.value.filter(u=>u.typeRef==="Landmark")),l=o.computed(()=>n.value.filter(u=>u.typeRef==="Equipment"));function c(u){return u.reduce((d,f)=>d+t.deck[f.cardCode],0)}return(u,d)=>{const f=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",AY,[o.createElementVNode("div",lY,[o.createElementVNode("div",cY,[a.value.length>0?(o.openBlock(),o.createElementBlock("div",uY,[o.createElementVNode("div",dY,[fY,o.withDirectives(o.createElementVNode("div",pY,null,512),[[f,"general.champions"]]),o.createElementVNode("p",hY,o.toDisplayString(c(a.value)),1)]),o.createElementVNode("div",mY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),A.value.length>0?(o.openBlock(),o.createElementBlock("div",gY,[o.createElementVNode("div",vY,[yY,o.withDirectives(o.createElementVNode("div",BY,null,512),[[f,"general.landmarks"]]),o.createElementVNode("p",wY,o.toDisplayString(c(A.value)),1)]),o.createElementVNode("div",bY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),l.value.length>0?(o.openBlock(),o.createElementBlock("div",_Y,[o.createElementVNode("div",CY,[kY,o.withDirectives(o.createElementVNode("div",EY,null,512),[[f,"general.equipments"]]),o.createElementVNode("p",SY,o.toDisplayString(c(l.value)),1)]),o.createElementVNode("div",xY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0)]),i.value.length>0?(o.openBlock(),o.createElementBlock("div",FY,[o.createElementVNode("div",IY,[TY,o.withDirectives(o.createElementVNode("div",UY,null,512),[[f,"general.followers"]]),o.createElementVNode("p",DY,o.toDisplayString(c(i.value)),1)]),o.createElementVNode("div",QY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),s.value.length>0?(o.openBlock(),o.createElementBlock("div",LY,[o.createElementVNode("div",OY,[MY,o.withDirectives(o.createElementVNode("div",NY,null,512),[[f,"general.spells"]]),o.createElementVNode("p",PY,o.toDisplayString(c(s.value)),1)]),o.createElementVNode("div",HY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0)])])}}});const Dd=M(RY,[["__scopeId","data-v-380c3647"]]),VY={deckCode:{type:String,required:!0,default:""}},Qd=o.defineComponent({__name:"CopyDeckButton",props:VY,setup(e){const t=e,{t:n}=J(),r=o.ref(null);let a,i;o.onMounted(()=>{i=qe(r.value,{content:n("deck.copyDeckCode"),arrow:!0}),a=qe(r.value,{content:n("deck.deckCodeCopied"),trigger:"manual",arrow:!0})});function s(){P3(t.deckCode),i.hide(),a.show()}return(A,l)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s},[o.createVNode(o.unref(ke),{icon:"copy",class:"icon"})],512))}}),KY={deckId:{type:Number,required:!0,default:-1}},Vg=o.defineComponent({__name:"DeleteDeckButton",props:KY,setup(e){const{t}=J(),n=o.ref(null);return o.onMounted(()=>{qe(n.value,{content:t("deck.deleteDeck"),arrow:!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:"trash-alt",class:"icon"})],512))}}),Kg=o.defineComponent({__name:"EditDeckNameButton",setup(e){const{t}=J(),n=o.ref(null);return o.onMounted(()=>{qe(n.value,{content:t("deck.editDeckName"),arrow:!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:"pencil-alt",class:"icon"})],512))}}),$Y={routerLink:{type:Object,required:!0,default:{path:"/404"}}},zY=o.defineComponent({__name:"OpenArchetypePageButton",props:$Y,setup(e){const t=e,{t:n}=J(),r=o.ref(null);return o.onMounted(()=>{qe(r.value,{content:n("deck.openArchetypePage"),arrow:!0})}),(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(s,{to:t.routerLink},{default:o.withCtx(()=>[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},o.toDisplayString(o.unref(n)("archetype.abbreviation")),513)]),_:1},8,["to"])}}});const $g=M(zY,[["__scopeId","data-v-b921ee68"]]),WY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},zg=o.defineComponent({__name:"OpenInDeckBuilderButton",props:WY,setup(e){const t=e,{t:n}=J(),r=o.ref(null);return o.onMounted(()=>{qe(r.value,{content:n("deck.openInDeckBuilder"),arrow:!0})}),(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(s,{to:t.routerLink},{default:o.withCtx(()=>[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:"hammer",class:"icon"})],512)]),_:1},8,["to"])}}}),GY={deck:{type:Object,required:!0,default:{}}},jY={deck:{type:Object,required:!0,default:{}}},YY={class:"simulate-mulligan"},qY={class:"cards"},XY={class:"buttons"},JY=o.defineComponent({__name:"SimulateMulligan",props:jY,setup(e){const t=e,{t:n}=J(),r=o.computed(()=>{const c=[];for(const u in t.deck)for(let d=0;d<t.deck[u];d++)c.push(u);return c}),a=o.computed(()=>{const c=Array.from(r.value);for(const u of i.value)u!==null&&c.splice(c.indexOf(u.cardCode),1);return c}),i=o.ref([null,null,null,null]);function s(){i.value.fill(null),l()}function A(){var c;for(let u=0;u<i.value.length;u++)i.value[u]===null||!((c=i.value[u])!=null&&c.isSelected)||(i.value[u]=null);l()}function l(){for(;i.value.some(c=>c===null);)i.value[i.value.indexOf(null)]={cardCode:a.value[Q3(0,a.value.length)],isSelected:!1};console.log(i.value)}return l(),(c,u)=>(o.openBlock(),o.createElementBlock("div",YY,[o.createElementVNode("div",qY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value.filter(d=>d!==null),(d,f)=>(o.openBlock(),o.createBlock(Pi,{key:d.cardCode+f,"card-code-prop":d.cardCode,"is-root":!0,style:o.normalizeStyle(d.isSelected?{opacity:.5}:null),onClick:p=>d.isSelected=!d.isSelected},null,8,["card-code-prop","style","onClick"]))),128))]),o.createElementVNode("div",XY,[o.createElementVNode("button",{class:"primary-button",onClick:s},o.toDisplayString(o.unref(n)("deck.replaceAllCards")),1),o.createElementVNode("button",{class:"primary-button",onClick:A},o.toDisplayString(o.unref(n)("deck.replaceSelectedCards")),1)])]))}});const Wg=M(JY,[["__scopeId","data-v-e3540f85"]]),ZY={class:"simulate-mulligan-wrapper"},eq=o.defineComponent({__name:"SimulateMulliganButton",props:GY,setup(e){const t=e,{t:n}=J(),r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{qe(r.value,{content:n("deck.simulateMulligan"),arrow:!0})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=A=>a.value=!0)},[o.createVNode(o.unref(ke),{icon:"hand-paper"})],512),o.createVNode(si,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=A=>a.value=A)},{default:o.withCtx(()=>[o.createElementVNode("div",ZY,[o.createVNode(Wg,{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const Ld=M(eq,[["__scopeId","data-v-63aa9043"]]),tq={deckIsPrivate:{type:Boolean,required:!0,default:!0}},Gg=o.defineComponent({__name:"UpdateDeckPrivacyButton",props:tq,setup(e){const t=e,{t:n}=J(),r=o.ref(null);let a;return o.onMounted(()=>{a=qe(r.value,{content:`${n("deck.updatePrivacy")}:
|
|
867
|
+
*/const hB={modes:{point(e,t){return Xc(e,t,{intersect:!0})},nearest(e,t,n){return TG(e,t,n)},x(e,t,n){return Xc(e,t,{intersect:n.intersect,axis:"x"})},y(e,t,n){return Xc(e,t,{intersect:n.intersect,axis:"y"})}}};function Dg(e,t,n){return(hB.modes[n.mode]||hB.modes.nearest)(e,t,n)}function FG(e,t,n){return n!=="x"&&n!=="y"?e.inRange(t.x,t.y,"x",!0)||e.inRange(t.x,t.y,"y",!0):e.inRange(t.x,t.y,n,!0)}function IG(e,t,n){return n==="x"?{x:e.x,y:t.y}:n==="y"?{x:t.x,y:e.y}:t}function Xc(e,t,n){return e.visibleElements.filter(r=>n.intersect?r.inRange(t.x,t.y):FG(r,t,n.axis))}function TG(e,t,n){let r=Number.POSITIVE_INFINITY;return Xc(e,t,n).reduce((a,i)=>{const s=i.getCenterPoint(),A=IG(t,s,n.axis),l=Ks(t,A);return l<r?(a=[i],r=l):l===r&&a.push(i),a},[]).sort((a,i)=>a._index-i._index).slice(0,1)}const UG=(e,t)=>t>e||e.length>t.length&&e.slice(0,t.length)===t,ki=.001,Fd=(e,t,n)=>Math.min(n,Math.max(t,e));function DG(e,t,n){for(const r of Object.keys(e))e[r]=Fd(e[r],t,n);return e}function QG(e,t,n,r){if(!e||!t||n<=0)return!1;const a=r/2;return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<=Math.pow(n+a,2)}function JC(e,{x:t,y:n,x2:r,y2:a},i,s){const A=s/2,l=e.x>=t-A-ki&&e.x<=r+A+ki,c=e.y>=n-A-ki&&e.y<=a+A+ki;return i==="x"?l:(i==="y"||l)&&c}function io(e,t){const{centerX:n,centerY:r}=e.getProps(["centerX","centerY"],t);return{x:n,y:r}}function LG(e,t,n,r=!0){const a=n.split(".");let i=0;for(const s of t.split(".")){const A=a[i++];if(parseInt(s,10)<parseInt(A,10))break;if(UG(A,s)){if(r)throw new Error(`${e} v${n} is not supported. v${t} or newer is required.`);return!1}}return!0}const ZC=e=>typeof e=="string"&&e.endsWith("%"),ek=e=>parseFloat(e)/100,tk=e=>Fd(ek(e),0,1);function Qg(e,t){return t==="start"?0:t==="end"?e:ZC(t)?tk(t)*e:e/2}function ei(e,t,n=!0){return typeof t=="number"?t:ZC(t)?(n?tk(t):ek(t))*e:e}function OG(e,t){const{x:n,width:r}=e,a=t.textAlign;return a==="center"?n+r/2:a==="end"||a==="right"?n+r:n}function Lg(e,t="center"){return we(e)?{x:de(e.x,t),y:de(e.y,t)}:(e=de(e,t),{x:e,y:e})}function nk(e){return e&&(Bn(e.xValue)||Bn(e.yValue))}function vl(e,t,n,r=!1){const a=n.init;if(a){if(a===!0)return ak(t,r)}else return;return MG(t,r,Re(a,[{chart:e,properties:t,options:n}]))}function rk(e,t,n){let r=!1;return t.forEach(a=>{yn(e[a])?(r=!0,n[a]=e[a]):Bn(n[a])&&delete n[a]}),r}function ak({centerX:e,centerY:t},n){return n?{centerX:e,centerY:t,radius:0,width:0,height:0}:{x:e,y:t,x2:e,y2:t,width:0,height:0}}function MG(e,t,n){if(n===!0)return ak(e,t);if(we(n))return n}const Pf=new Map,NG=e=>isNaN(e)||e<=0,PG=e=>e.reduce(function(t,n){return t+=n.string,t},"");function Id(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object HTMLImageElement]"||t==="[object HTMLCanvasElement]"}}function Og(e,{x:t,y:n},r){r&&(e.translate(t,n),e.rotate(xt(r)),e.translate(-t,-n))}function ti(e,t){if(t&&t.borderWidth)return e.lineCap=t.borderCapStyle,e.setLineDash(t.borderDash),e.lineDashOffset=t.borderDashOffset,e.lineJoin=t.borderJoinStyle,e.lineWidth=t.borderWidth,e.strokeStyle=t.borderColor,!0}function so(e,t){e.shadowColor=t.backgroundShadowColor,e.shadowBlur=t.shadowBlur,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY}function Mg(e,t){const n=t.content;if(Id(n))return{width:ei(n.width,t.width),height:ei(n.height,t.height)};const r=t.font,a=Me(r)?r.map(l=>ht(l)):[ht(r)],i=t.textStrokeWidth,s=Me(n)?n:[n],A=s.join()+PG(a)+i+(e._measureText?"-spriting":"");return Pf.has(A)||Pf.set(A,$G(e,s,a,i)),Pf.get(A)}function ik(e,t,n){const{x:r,y:a,width:i,height:s}=t;e.save(),so(e,n);const A=ti(e,n);e.fillStyle=n.backgroundColor,e.beginPath(),$s(e,{x:r,y:a,w:i,h:s,radius:DG(Ra(n.borderRadius),0,Math.min(i,s)/2)}),e.closePath(),e.fill(),A&&(e.shadowColor=n.borderShadowColor,e.stroke()),e.restore()}function HG(e,t,n){const r=n.content;if(Id(r)){e.save(),e.globalAlpha=GG(n.opacity,r.style.opacity),e.drawImage(r,t.x,t.y,t.width,t.height),e.restore();return}const a=Me(r)?r:[r],i=n.font,s=Me(i)?i.map(d=>ht(d)):[ht(i)],A=n.color,l=Me(A)?A:[A],c=OG(t,n),u=t.y+n.textStrokeWidth/2;e.save(),e.textBaseline="middle",e.textAlign=n.textAlign,RG(e,n)&&zG(e,{x:c,y:u},a,s),WG(e,{x:c,y:u},a,{fonts:s,colors:l}),e.restore()}function RG(e,t){if(t.textStrokeWidth>0)return e.lineJoin="round",e.miterLimit=2,e.lineWidth=t.textStrokeWidth,e.strokeStyle=t.textStrokeColor,!0}function VG(e,t,n,r){const{radius:a,options:i}=t,s=i.pointStyle,A=i.rotation;let l=(A||0)*Wm;if(Id(s)){e.save(),e.translate(n,r),e.rotate(l),e.drawImage(s,-s.width/2,-s.height/2,s.width,s.height),e.restore();return}NG(a)||KG(e,{x:n,y:r,radius:a,rotation:A,style:s,rad:l})}function KG(e,{x:t,y:n,radius:r,rotation:a,style:i,rad:s}){let A,l,c,u;switch(e.beginPath(),i){default:e.arc(t,n,r,0,Ze),e.closePath();break;case"triangle":e.moveTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=mu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),s+=mu,e.lineTo(t+Math.sin(s)*r,n-Math.cos(s)*r),e.closePath();break;case"rectRounded":u=r*.516,c=r-u,A=Math.cos(s+Pn)*c,l=Math.sin(s+Pn)*c,e.arc(t-A,n-l,u,s-Qe,s-et),e.arc(t+l,n-A,u,s-et,s),e.arc(t+A,n+l,u,s,s+et),e.arc(t-l,n+A,u,s+et,s+Qe),e.closePath();break;case"rect":if(!a){c=Math.SQRT1_2*r,e.rect(t-c,n-c,2*c,2*c);break}s+=Pn;case"rectRot":A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+l,n-A),e.lineTo(t+A,n+l),e.lineTo(t-l,n+A),e.closePath();break;case"crossRot":s+=Pn;case"cross":A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A);break;case"star":A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A),s+=Pn,A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l),e.moveTo(t+l,n-A),e.lineTo(t-l,n+A);break;case"line":A=Math.cos(s)*r,l=Math.sin(s)*r,e.moveTo(t-A,n-l),e.lineTo(t+A,n+l);break;case"dash":e.moveTo(t,n),e.lineTo(t+Math.cos(s)*r,n+Math.sin(s)*r);break}e.fill()}function $G(e,t,n,r){e.save();const a=t.length;let i=0,s=r;for(let A=0;A<a;A++){const l=n[Math.min(A,n.length-1)];e.font=l.string;const c=t[A];i=Math.max(i,e.measureText(c).width+r),s+=l.lineHeight}return e.restore(),{width:i,height:s}}function zG(e,{x:t,y:n},r,a){e.beginPath();let i=0;r.forEach(function(s,A){const l=a[Math.min(A,a.length-1)],c=l.lineHeight;e.font=l.string,e.strokeText(s,t,n+c/2+i),i+=c}),e.stroke()}function WG(e,{x:t,y:n},r,{fonts:a,colors:i}){let s=0;r.forEach(function(A,l){const c=i[Math.min(l,i.length-1)],u=a[Math.min(l,a.length-1)],d=u.lineHeight;e.beginPath(),e.font=u.string,e.fillStyle=c,e.fillText(A,t,n+d/2+s),s+=d,e.fill()})}function GG(e,t){const n=Ja(e)?e:t;return Ja(n)?Fd(n,0,1):1}const mB={xScaleID:{min:"xMin",max:"xMax",start:"left",end:"right",startProp:"x",endProp:"x2"},yScaleID:{min:"yMin",max:"yMax",start:"bottom",end:"top",startProp:"y",endProp:"y2"}};function qs(e,t,n){return t=typeof t=="number"?t:e.parse(t),ft(t)?e.getPixelForValue(t):n}function $i(e,t,n){const r=t[n];if(r||n==="scaleID")return r;const a=n.charAt(0),i=Object.values(e).filter(s=>s.axis&&s.axis===a);return i.length?i[0].id:a}function sk(e,t){if(e){const n=e.options.reverse,r=qs(e,t.min,n?t.end:t.start),a=qs(e,t.max,n?t.start:t.end);return{start:r,end:a}}}function ok(e,t){const{chartArea:n,scales:r}=e,a=r[$i(r,t,"xScaleID")],i=r[$i(r,t,"yScaleID")];let s=n.width/2,A=n.height/2;return a&&(s=qs(a,t.xValue,a.left+a.width/2)),i&&(A=qs(i,t.yValue,i.top+i.height/2)),{x:s,y:A}}function Ng(e,t){const n=e.scales,r=n[$i(n,t,"xScaleID")],a=n[$i(n,t,"yScaleID")];if(!r&&!a)return{};let{left:i,right:s}=r||e.chartArea,{top:A,bottom:l}=a||e.chartArea;const c=gB(r,{min:t.xMin,max:t.xMax,start:i,end:s});i=c.start,s=c.end;const u=gB(a,{min:t.yMin,max:t.yMax,start:l,end:A});return A=u.start,l=u.end,{x:i,y:A,x2:s,y2:l,width:s-i,height:l-A,centerX:i+(s-i)/2,centerY:A+(l-A)/2}}function Ak(e,t){if(!nk(t)){const n=Ng(e,t);let r=t.radius;(!r||isNaN(r))&&(r=Math.min(n.width,n.height)/2,t.radius=r);const a=r*2,i=n.centerX+t.xAdjust,s=n.centerY+t.yAdjust;return{x:i-r,y:s-r,x2:i+r,y2:s+r,centerX:i,centerY:s,width:a,height:a,radius:r}}return YG(e,t)}function jG(e,t){const{scales:n,chartArea:r}=e,a=n[t.scaleID],i={x:r.left,y:r.top,x2:r.right,y2:r.bottom};return a?qG(a,i,t):XG(n,i,t),i}function lk(e,t,n){const r=Ng(e,t);return r.initProperties=vl(e,r,t,n),r.elements=[{type:"label",optionScope:"label",properties:ej(e,r,t),initProperties:r.initProperties}],r}function YG(e,t){const n=ok(e,t),r=t.radius*2;return{x:n.x-t.radius+t.xAdjust,y:n.y-t.radius+t.yAdjust,x2:n.x+t.radius+t.xAdjust,y2:n.y+t.radius+t.yAdjust,centerX:n.x+t.xAdjust,centerY:n.y+t.yAdjust,radius:t.radius,width:r,height:r}}function gB(e,t){const n=sk(e,t)||t;return{start:Math.min(n.start,n.end),end:Math.max(n.start,n.end)}}function qG(e,t,n){const r=qs(e,n.value,NaN),a=qs(e,n.endValue,r);e.isHorizontal()?(t.x=r,t.x2=a):(t.y=r,t.y2=a)}function XG(e,t,n){for(const r of Object.keys(mB)){const a=e[$i(e,n,r)];if(a){const{min:i,max:s,start:A,end:l,startProp:c,endProp:u}=mB[r],d=sk(a,{min:n[i],max:n[s],start:a[A],end:a[l]});t[c]=d.start,t[u]=d.end}}}function JG({properties:e,options:t},n,r,a){const{x:i,x2:s,width:A}=e;return ck({start:i,end:s,size:A,borderWidth:t.borderWidth},{position:r.x,padding:{start:a.left,end:a.right},adjust:t.label.xAdjust,size:n.width})}function ZG({properties:e,options:t},n,r,a){const{y:i,y2:s,height:A}=e;return ck({start:i,end:s,size:A,borderWidth:t.borderWidth},{position:r.y,padding:{start:a.top,end:a.bottom},adjust:t.label.yAdjust,size:n.height})}function ck(e,t){const{start:n,end:r,borderWidth:a}=e,{position:i,padding:{start:s,end:A},adjust:l}=t,c=r-a-n-s-A-t.size;return n+a/2+l+Qg(c,i)}function ej(e,t,n){const r=n.label;r.backgroundColor="transparent",r.callout.display=!1;const a=Lg(r.position),i=Et(r.padding),s=Mg(e.ctx,r),A=JG({properties:t,options:n},s,a,i),l=ZG({properties:t,options:n},s,a,i),c=s.width+i.width,u=s.height+i.height;return{x:A,y:l,x2:A+c,y2:l+u,width:c,height:u,centerX:A+c/2,centerY:l+u/2,rotation:r.rotation}}function Zi(e,t,n){const r=Math.cos(n),a=Math.sin(n),i=t.x,s=t.y;return{x:i+r*(e.x-i)-a*(e.y-s),y:s+a*(e.x-i)+r*(e.y-s)}}const hh=["enter","leave"],Pg=hh.concat("click");function tj(e,t,n){t.listened=rk(n,Pg,t.listeners),t.moveListened=!1,t._getElements=Dg,hh.forEach(r=>{yn(n[r])&&(t.moveListened=!0)}),(!t.listened||!t.moveListened)&&t.annotations.forEach(r=>{!t.listened&&yn(r.click)&&(t.listened=!0),t.moveListened||hh.forEach(a=>{yn(r[a])&&(t.listened=!0,t.moveListened=!0)})})}function nj(e,t,n){if(e.listened)switch(t.type){case"mousemove":case"mouseout":return rj(e,t,n);case"click":return aj(e,t,n)}}function rj(e,t,n){if(!e.moveListened)return;let r;t.type==="mousemove"?r=Dg(e,t,n.interaction):r=[];const a=e.hovered;e.hovered=r;const i={state:e,event:t};let s=vB(i,"leave",a,r);return vB(i,"enter",r,a)||s}function vB({state:e,event:t},n,r,a){let i;for(const s of r)a.indexOf(s)<0&&(i=uk(s.options[n]||e.listeners[n],s,t)||i);return i}function aj(e,t,n){const r=e.listeners,a=Dg(e,t,n.interaction);let i;for(const s of a)i=uk(s.options.click||r.click,s,t)||i;return i}function uk(e,t,n){return Re(e,[t.$context,n])===!0}const Tu=["afterDraw","beforeDraw"];function ij(e,t,n){const r=t.visibleElements;t.hooked=rk(n,Tu,t.hooks),t.hooked||r.forEach(a=>{t.hooked||Tu.forEach(i=>{yn(a.options[i])&&(t.hooked=!0)})})}function yB(e,t,n){if(e.hooked){const r=t.options[n]||e.hooks[n];return Re(r,[t.$context])}}function sj(e,t,n){const r=uj(e.scales,t,n);let a=BB(t,r,"min","suggestedMin");a=BB(t,r,"max","suggestedMax")||a,a&&yn(t.handleTickRangeOptions)&&t.handleTickRangeOptions()}function oj(e,t){for(const n of e)lj(n,t)}function BB(e,t,n,r){if(ft(t[n])&&!Aj(e.options,n,r)){const a=e[n]!==t[n];return e[n]=t[n],a}}function Aj(e,t,n){return Bn(e[t])||Bn(e[n])}function lj(e,t){for(const n of["scaleID","xScaleID","yScaleID"]){const r=$i(t,e,n);r&&!t[r]&&cj(e,n)&&console.warn(`No scale found with id '${r}' for annotation '${e.id}'`)}}function cj(e,t){if(t==="scaleID")return!0;const n=t.charAt(0);for(const r of["Min","Max","Value"])if(Bn(e[n+r]))return!0;return!1}function uj(e,t,n){const r=t.axis,a=t.id,i=r+"ScaleID",s={min:de(t.min,Number.NEGATIVE_INFINITY),max:de(t.max,Number.POSITIVE_INFINITY)};for(const A of n)A.scaleID===a?wB(A,t,["value","endValue"],s):$i(e,A,i)===a&&wB(A,t,[r+"Min",r+"Max",r+"Value"],s);return s}function wB(e,t,n,r){for(const a of n){const i=e[a];if(Bn(i)){const s=t.parse(i);r.min=Math.min(r.min,s),r.max=Math.max(r.max,s)}}}class oo extends An{inRange(t,n,r,a){const{x:i,y:s}=Zi({x:t,y:n},this.getCenterPoint(a),xt(-this.options.rotation));return JC({x:i,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return io(this,t)}draw(t){t.save(),Og(t,this.getCenterPoint(),this.options.rotation),ik(t,this,this.options),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return lk(t,n)}}oo.id="boxAnnotation";oo.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:{backgroundColor:"transparent",borderWidth:0,callout:{display:!1},color:"black",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:void 0,textAlign:"start",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};oo.defaultRoutes={borderColor:"color",backgroundColor:"color"};oo.descriptors={label:{_fallback:!0}};const dk=["left","bottom","top","right"];class yl extends An{inRange(t,n,r,a){const{x:i,y:s}=Zi({x:t,y:n},this.getCenterPoint(a),xt(-this.rotation));return JC({x:i,y:s},this.getProps(["x","y","x2","y2"],a),r,this.options.borderWidth)}getCenterPoint(t){return io(this,t)}draw(t){const n=this.options,r=!Bn(this._visible)||this._visible;!n.display||!n.content||!r||(t.save(),Og(t,this.getCenterPoint(),this.rotation),fj(t,this),ik(t,this,n),HG(t,Bj(this),n),t.restore())}resolveElementProperties(t,n){let r;if(nk(n))r=ok(t,n);else{const{centerX:A,centerY:l}=Ng(t,n);r={x:A,y:l}}const a=Et(n.padding),i=Mg(t.ctx,n),s=dj(r,i,n,a);return{initProperties:vl(t,s,n),pointX:r.x,pointY:r.y,...s,rotation:n.rotation}}}yl.id="labelAnnotation";yl.defaults={adjustScaleRange:!0,backgroundColor:"transparent",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:0,borderShadowColor:"transparent",borderWidth:0,callout:{borderCapStyle:"butt",borderColor:void 0,borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:1,display:!1,margin:5,position:"auto",side:5,start:"50%"},color:"black",content:null,display:!0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:void 0},height:void 0,init:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};yl.defaultRoutes={borderColor:"color"};function dj(e,t,n,r){const a=t.width+r.width+n.borderWidth,i=t.height+r.height+n.borderWidth,s=Lg(n.position,"center"),A=bB(e.x,a,n.xAdjust,s.x),l=bB(e.y,i,n.yAdjust,s.y);return{x:A,y:l,x2:A+a,y2:l+i,width:a,height:i,centerX:A+a/2,centerY:l+i/2}}function bB(e,t,n=0,r){return e-Qg(t,r)+n}function fj(e,t){const{pointX:n,pointY:r,options:a}=t,i=a.callout,s=i&&i.display&&vj(t,i);if(!s||wj(t,i,s))return;if(e.save(),e.beginPath(),!ti(e,i))return e.restore();const{separatorStart:l,separatorEnd:c}=pj(t,s),{sideStart:u,sideEnd:d}=mj(t,s,l);(i.margin>0||a.borderWidth===0)&&(e.moveTo(l.x,l.y),e.lineTo(c.x,c.y)),e.moveTo(u.x,u.y),e.lineTo(d.x,d.y);const f=Zi({x:n,y:r},t.getCenterPoint(),xt(-t.rotation));e.lineTo(f.x,f.y),e.stroke(),e.restore()}function pj(e,t){const{x:n,y:r,x2:a,y2:i}=e,s=hj(e,t);let A,l;return t==="left"||t==="right"?(A={x:n+s,y:r},l={x:A.x,y:i}):(A={x:n,y:r+s},l={x:a,y:A.y}),{separatorStart:A,separatorEnd:l}}function hj(e,t){const{width:n,height:r,options:a}=e,i=a.callout.margin+a.borderWidth/2;return t==="right"?n+i:t==="bottom"?r+i:-i}function mj(e,t,n){const{y:r,width:a,height:i,options:s}=e,A=s.callout.start,l=gj(t,s.callout);let c,u;return t==="left"||t==="right"?(c={x:n.x,y:r+ei(i,A)},u={x:c.x+l,y:c.y}):(c={x:n.x+ei(a,A),y:n.y},u={x:c.x,y:c.y+l}),{sideStart:c,sideEnd:u}}function gj(e,t){const n=t.side;return e==="left"||e==="top"?-n:n}function vj(e,t){const n=t.position;return dk.includes(n)?n:yj(e,t)}function yj(e,t){const{x:n,y:r,x2:a,y2:i,width:s,height:A,pointX:l,pointY:c,centerX:u,centerY:d,rotation:f}=e,p={x:u,y:d},h=t.start,g=ei(s,h),B=ei(A,h),m=[n,n+g,n+g,a],v=[r+B,i,r,i],w=[];for(let y=0;y<4;y++){const b=Zi({x:m[y],y:v[y]},p,xt(f));w.push({position:dk[y],distance:Ks(b,{x:l,y:c})})}return w.sort((y,b)=>y.distance-b.distance)[0].position}function Bj({x:e,y:t,width:n,height:r,options:a}){const i=a.borderWidth/2,s=Et(a.padding);return{x:e+s.left+i,y:t+s.top+i,width:n-s.left-s.right-a.borderWidth,height:r-s.top-s.bottom-a.borderWidth}}function wj(e,t,n){const{pointX:r,pointY:a}=e,i=t.margin;let s=r,A=a;return n==="left"?s+=i:n==="right"?s-=i:n==="top"?A+=i:n==="bottom"&&(A-=i),e.inRange(s,A)}const Hg=(e,t,n)=>({x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}),mh=(e,t,n)=>Hg(t,n,Math.abs((e-t.y)/(n.y-t.y))).x,_B=(e,t,n)=>Hg(t,n,Math.abs((e-t.x)/(n.x-t.x))).y,Oo=e=>e*e,bj=(e,t,{x:n,y:r,x2:a,y2:i},s)=>s==="y"?{start:Math.min(r,i),end:Math.max(r,i),value:t}:{start:Math.min(n,a),end:Math.max(n,a),value:e},CB=(e,t,n,r)=>(1-r)*(1-r)*e+2*(1-r)*r*t+r*r*n,gh=(e,t,n,r)=>({x:CB(e.x,t.x,n.x,r),y:CB(e.y,t.y,n.y,r)}),kB=(e,t,n,r)=>2*(1-r)*(t-e)+2*r*(n-t),EB=(e,t,n,r)=>-Math.atan2(kB(e.x,t.x,n.x,r),kB(e.y,t.y,n.y,r))+.5*Qe;class Bl extends An{inRange(t,n,r,a){const i=this.options.borderWidth/2;if(r!=="x"&&r!=="y"){const s={mouseX:t,mouseY:n},{path:A,ctx:l}=this;if(A){ti(l,this.options);const{chart:u}=this.$context,d=t*u.currentDevicePixelRatio,f=n*u.currentDevicePixelRatio,p=l.isPointInStroke(A,d,f)||vh(this,s,a);return l.restore(),p}const c=Oo(i);return Ej(this,s,c,a)||vh(this,s,a)}return _j(this,{mouseX:t,mouseY:n},r,{hBorderWidth:i,useFinalPosition:a})}getCenterPoint(t){return io(this,t)}draw(t){const{x:n,y:r,x2:a,y2:i,cp:s,options:A}=this;if(t.save(),!ti(t,A))return t.restore();so(t,A);const l=Math.sqrt(Math.pow(a-n,2)+Math.pow(i-r,2));if(A.curve&&s)return Qj(t,this,s,l),t.restore();const{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=fk(this),p=Math.atan2(i-r,a-n);t.translate(n,r),t.rotate(p),t.beginPath(),t.moveTo(0+d,0),t.lineTo(l-f,0),t.shadowColor=A.borderShadowColor,t.stroke(),yh(t,0,d,c),yh(t,l,-f,u),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){const r=jG(t,n),{x:a,y:i,x2:s,y2:A}=r,l=Cj(r,t.chartArea),c=l?kj({x:a,y:i},{x:s,y:A},t.chartArea):{x:a,y:i,x2:s,y2:A,width:Math.abs(s-a),height:Math.abs(A-i)};if(c.centerX=(s+a)/2,c.centerY=(A+i)/2,c.initProperties=vl(t,c,n),n.curve){const d={x:c.x,y:c.y},f={x:c.x2,y:c.y2};c.cp=Dj(c,n,Ks(d,f))}const u=Sj(t,c,n.label);return u._visible=l,c.elements=[{type:"label",optionScope:"label",properties:u,initProperties:c.initProperties}],c}}Bl.id="lineAnnotation";const SB={backgroundColor:void 0,backgroundShadowColor:void 0,borderColor:void 0,borderDash:void 0,borderDashOffset:void 0,borderShadowColor:void 0,borderWidth:void 0,display:void 0,fill:void 0,length:void 0,shadowBlur:void 0,shadowOffsetX:void 0,shadowOffsetY:void 0,width:void 0};Bl.defaults={adjustScaleRange:!0,arrowHeads:{display:!1,end:Object.assign({},SB),fill:!1,length:12,start:Object.assign({},SB),width:6},borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:2,curve:!1,controlPoint:{y:"-50%"},display:!0,endValue:void 0,init:void 0,label:{backgroundColor:"rgba(0,0,0,0.8)",backgroundShadowColor:"transparent",borderCapStyle:"butt",borderColor:"black",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderRadius:6,borderShadowColor:"transparent",borderWidth:0,callout:Object.assign({},yl.defaults.callout),color:"#fff",content:null,display:!1,drawTime:void 0,font:{family:void 0,lineHeight:void 0,size:void 0,style:void 0,weight:"bold"},height:void 0,opacity:void 0,padding:6,position:"center",rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,textAlign:"center",textStrokeColor:void 0,textStrokeWidth:0,width:void 0,xAdjust:0,yAdjust:0,z:void 0},scaleID:void 0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,value:void 0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};Bl.descriptors={arrowHeads:{start:{_fallback:!0},end:{_fallback:!0},_fallback:!0}};Bl.defaultRoutes={borderColor:"color"};function _j(e,{mouseX:t,mouseY:n},r,{hBorderWidth:a,useFinalPosition:i}){const s=bj(t,n,e.getProps(["x","y","x2","y2"],i),r);return s.value>=s.start-a&&s.value<=s.end+a||vh(e,{mouseX:t,mouseY:n},i,r)}function Cj({x:e,y:t,x2:n,y2:r},{top:a,right:i,bottom:s,left:A}){return!(e<A&&n<A||e>i&&n>i||t<a&&r<a||t>s&&r>s)}function xB({x:e,y:t},n,{top:r,right:a,bottom:i,left:s}){return e<s&&(t=_B(s,{x:e,y:t},n),e=s),e>a&&(t=_B(a,{x:e,y:t},n),e=a),t<r&&(e=mh(r,{x:e,y:t},n),t=r),t>i&&(e=mh(i,{x:e,y:t},n),t=i),{x:e,y:t}}function kj(e,t,n){const{x:r,y:a}=xB(e,t,n),{x:i,y:s}=xB(t,e,n);return{x:r,y:a,x2:i,y2:s,width:Math.abs(i-r),height:Math.abs(s-a)}}function Ej(e,{mouseX:t,mouseY:n},r=ki,a){const{x:i,y:s,x2:A,y2:l}=e.getProps(["x","y","x2","y2"],a),c=A-i,u=l-s,d=Oo(c)+Oo(u),f=d===0?-1:((t-i)*c+(n-s)*u)/d;let p,h;return f<0?(p=i,h=s):f>1?(p=A,h=l):(p=i+f*c,h=s+f*u),Oo(t-p)+Oo(n-h)<=r}function vh(e,{mouseX:t,mouseY:n},r,a){const i=e.label;return i.options.display&&i.inRange(t,n,a,r)}function Sj(e,t,n){const r=n.borderWidth,a=Et(n.padding),i=Mg(e.ctx,n),s=i.width+a.width+r,A=i.height+a.height+r;return Fj(t,n,{width:s,height:A,padding:a},e.chartArea)}function xj(e){const{x:t,y:n,x2:r,y2:a}=e,i=Math.atan2(a-n,r-t);return i>Qe/2?i-Qe:i<Qe/-2?i+Qe:i}function Fj(e,t,n,r){const{width:a,height:i,padding:s}=n,{xAdjust:A,yAdjust:l}=t,c={x:e.x,y:e.y},u={x:e.x2,y:e.y2},d=t.rotation==="auto"?xj(e):xt(t.rotation),f=Ij(a,i,d),p=Tj(e,t,{labelSize:f,padding:s},r),h=e.cp?gh(c,e.cp,u,p):Hg(c,u,p),g={size:f.w,min:r.left,max:r.right,padding:s.left},B={size:f.h,min:r.top,max:r.bottom,padding:s.top},m=IB(h.x,g)+A,v=IB(h.y,B)+l;return{x:m-a/2,y:v-i/2,x2:m+a/2,y2:v+i/2,centerX:m,centerY:v,pointX:h.x,pointY:h.y,width:a,height:i,rotation:sd(d)}}function Ij(e,t,n){const r=Math.cos(n),a=Math.sin(n);return{w:Math.abs(e*r)+Math.abs(t*a),h:Math.abs(e*a)+Math.abs(t*r)}}function Tj(e,t,n,r){let a;const i=Uj(e,r);return t.position==="start"?a=FB({w:e.x2-e.x,h:e.y2-e.y},n,t,i):t.position==="end"?a=1-FB({w:e.x-e.x2,h:e.y-e.y2},n,t,i):a=Qg(1,t.position),a}function FB(e,t,n,r){const{labelSize:a,padding:i}=t,s=e.w*r.dx,A=e.h*r.dy,l=s>0&&(a.w/2+i.left-r.x)/s,c=A>0&&(a.h/2+i.top-r.y)/A;return Fd(Math.max(l,c),0,.25)}function Uj(e,t){const{x:n,x2:r,y:a,y2:i}=e,s=Math.min(a,i)-t.top,A=Math.min(n,r)-t.left,l=t.bottom-Math.max(a,i),c=t.right-Math.max(n,r);return{x:Math.min(A,c),y:Math.min(s,l),dx:A<=c?1:-1,dy:s<=l?1:-1}}function IB(e,t){const{size:n,min:r,max:a,padding:i}=t,s=n/2;return n>a-r?(a+r)/2:(r>=e-i-s&&(e=r+i+s),a<=e+i+s&&(e=a-i-s),e)}function fk(e){const t=e.options,n=t.arrowHeads&&t.arrowHeads.start,r=t.arrowHeads&&t.arrowHeads.end;return{startOpts:n,endOpts:r,startAdjust:TB(e,n),endAdjust:TB(e,r)}}function TB(e,t){if(!t||!t.display)return 0;const{length:n,width:r}=t,a=e.options.borderWidth/2,i={x:n,y:r+a};return Math.abs(mh(0,i,{x:0,y:a}))}function yh(e,t,n,r){if(!r||!r.display)return;const{length:a,width:i,fill:s,backgroundColor:A,borderColor:l}=r,c=Math.abs(t-a)+n;e.beginPath(),so(e,r),ti(e,r),e.moveTo(c,-i),e.lineTo(t+n,0),e.lineTo(c,i),s===!0?(e.fillStyle=A||l,e.closePath(),e.fill(),e.shadowColor="transparent"):e.shadowColor=r.borderShadowColor,e.stroke()}function Dj(e,t,n){const{x:r,y:a,x2:i,y2:s,centerX:A,centerY:l}=e,c=Math.atan2(s-a,i-r),u=Lg(t.controlPoint,0),d={x:A+ei(n,u.x,!1),y:l+ei(n,u.y,!1)};return Zi(d,{x:A,y:l},c)}function UB(e,{x:t,y:n},{angle:r,adjust:a},i){!i||!i.display||(e.save(),e.translate(t,n),e.rotate(r),yh(e,0,-a,i),e.restore())}function Qj(e,t,n,r){const{x:a,y:i,x2:s,y2:A,options:l}=t,{startOpts:c,endOpts:u,startAdjust:d,endAdjust:f}=fk(t),p={x:a,y:i},h={x:s,y:A},g=EB(p,n,h,0),B=EB(p,n,h,1)-Qe,m=gh(p,n,h,d/r),v=gh(p,n,h,1-f/r),w=new Path2D;e.beginPath(),w.moveTo(m.x,m.y),w.quadraticCurveTo(n.x,n.y,v.x,v.y),e.shadowColor=l.borderShadowColor,e.stroke(w),t.path=w,t.ctx=e,UB(e,m,{angle:g,adjust:d},c),UB(e,v,{angle:B,adjust:f},u)}class wl extends An{inRange(t,n,r,a){const i=this.options.rotation,s=this.options.borderWidth;if(r!=="x"&&r!=="y")return Lj({x:t,y:n},this.getProps(["width","height","centerX","centerY"],a),i,s);const{x:A,y:l,x2:c,y2:u}=this.getProps(["x","y","x2","y2"],a),d=s/2,f=r==="y"?{start:l,end:u}:{start:A,end:c},p=Zi({x:t,y:n},this.getCenterPoint(a),xt(-i));return p[r]>=f.start-d-ki&&p[r]<=f.end+d+ki}getCenterPoint(t){return io(this,t)}draw(t){const{width:n,height:r,centerX:a,centerY:i,options:s}=this;t.save(),Og(t,this.getCenterPoint(),s.rotation),so(t,this.options),t.beginPath(),t.fillStyle=s.backgroundColor;const A=ti(t,s);t.ellipse(a,i,r/2,n/2,Qe/2,0,2*Qe),t.fill(),A&&(t.shadowColor=s.borderShadowColor,t.stroke()),t.restore()}get label(){return this.elements&&this.elements[0]}resolveElementProperties(t,n){return lk(t,n,!0)}}wl.id="ellipseAnnotation";wl.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,label:Object.assign({},oo.defaults.label),rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xMax:void 0,xMin:void 0,xScaleID:void 0,yMax:void 0,yMin:void 0,yScaleID:void 0,z:0};wl.defaultRoutes={borderColor:"color",backgroundColor:"color"};wl.descriptors={label:{_fallback:!0}};function Lj(e,t,n,r){const{width:a,height:i,centerX:s,centerY:A}=t,l=a/2,c=i/2;if(l<=0||c<=0)return!1;const u=xt(n||0),d=r/2||0,f=Math.cos(u),p=Math.sin(u),h=Math.pow(f*(e.x-s)+p*(e.y-A),2),g=Math.pow(p*(e.x-s)-f*(e.y-A),2);return h/Math.pow(l+d,2)+g/Math.pow(c+d,2)<=1.0001}class Td extends An{inRange(t,n,r,a){const{x:i,y:s,x2:A,y2:l,width:c}=this.getProps(["x","y","x2","y2","width"],a),u=this.options.borderWidth;if(r!=="x"&&r!=="y")return QG({x:t,y:n},this.getCenterPoint(a),c/2,u);const d=u/2,f=r==="y"?{start:s,end:l,value:n}:{start:i,end:A,value:t};return f.value>=f.start-d&&f.value<=f.end+d}getCenterPoint(t){return io(this,t)}draw(t){const n=this.options,r=n.borderWidth;if(n.radius<.1)return;t.save(),t.fillStyle=n.backgroundColor,so(t,n);const a=ti(t,n);VG(t,this,this.centerX,this.centerY),a&&!Id(n.pointStyle)&&(t.shadowColor=n.borderShadowColor,t.stroke()),t.restore(),n.borderWidth=r}resolveElementProperties(t,n){const r=Ak(t,n);return r.initProperties=vl(t,r,n,!0),r}}Td.id="pointAnnotation";Td.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderDash:[],borderDashOffset:0,borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,pointStyle:"circle",radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Td.defaultRoutes={borderColor:"color",backgroundColor:"color"};class Ud extends An{inRange(t,n,r,a){if(r!=="x"&&r!=="y")return this.options.radius>=.1&&this.elements.length>1&&Mj(this.elements,t,n,a);const i=Zi({x:t,y:n},this.getCenterPoint(a),xt(-this.options.rotation)),s=this.elements.map(c=>r==="y"?c.bY:c.bX),A=Math.min(...s),l=Math.max(...s);return i[r]>=A&&i[r]<=l}getCenterPoint(t){return io(this,t)}draw(t){const{elements:n,options:r}=this;t.save(),t.beginPath(),t.fillStyle=r.backgroundColor,so(t,r);const a=ti(t,r);let i=!0;for(const s of n)i?(t.moveTo(s.x,s.y),i=!1):t.lineTo(s.x,s.y);t.closePath(),t.fill(),a&&(t.shadowColor=r.borderShadowColor,t.stroke()),t.restore()}resolveElementProperties(t,n){const r=Ak(t,n),{sides:a,rotation:i}=n,s=[],A=2*Qe/a;let l=i*Wm;for(let c=0;c<a;c++,l+=A){const u=Oj(r,n,l);u.initProperties=vl(t,r,n),s.push(u)}return r.elements=s,r}}Ud.id="polygonAnnotation";Ud.defaults={adjustScaleRange:!0,backgroundShadowColor:"transparent",borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderShadowColor:"transparent",borderWidth:1,display:!0,init:void 0,point:{radius:0},radius:10,rotation:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,sides:3,xAdjust:0,xMax:void 0,xMin:void 0,xScaleID:void 0,xValue:void 0,yAdjust:0,yMax:void 0,yMin:void 0,yScaleID:void 0,yValue:void 0,z:0};Ud.defaultRoutes={borderColor:"color",backgroundColor:"color"};function Oj({centerX:e,centerY:t},{radius:n,borderWidth:r},a){const i=r/2,s=Math.sin(a),A=Math.cos(a),l={x:e+s*n,y:t-A*n};return{type:"point",optionScope:"point",properties:{x:l.x,y:l.y,centerX:l.x,centerY:l.y,bX:e+s*(n+i),bY:t-A*(n+i)}}}function Mj(e,t,n,r){let a=!1,i=e[e.length-1].getProps(["bX","bY"],r);for(const s of e){const A=s.getProps(["bX","bY"],r);A.bY>n!=i.bY>n&&t<(i.bX-A.bX)*(n-A.bY)/(i.bY-A.bY)+A.bX&&(a=!a),i=A}return a}const Ka={box:oo,ellipse:wl,label:yl,line:Bl,point:Td,polygon:Ud};Object.keys(Ka).forEach(e=>{pt.describe(`elements.${Ka[e].id}`,{_fallback:"plugins.annotation.common"})});const Nj={update:Object.assign},Pj=Pg.concat(Tu),DB=(e,t)=>we(t)?wh(e,t):e,Bh=e=>e==="color"||e==="font";function Rg(e="line"){return Ka[e]?e:(console.warn(`Unknown annotation type: '${e}', defaulting to 'line'`),"line")}function Hj(e,t,n,r){const a=Vj(e,n.animations,r),i=t.annotations,s=zj(t.elements,i);for(let A=0;A<i.length;A++){const l=i[A],c=pk(s,A,l.type),u=l.setContext($j(e,c,l)),d=c.resolveElementProperties(e,u);d.skip=Rj(d),"elements"in d&&(Kj(c,d.elements,u,a),delete d.elements),Bn(c.x)||Object.assign(c,d),Object.assign(c,d.initProperties),d.options=hk(u),a.update(c,d)}}function Rj(e){return isNaN(e.x)||isNaN(e.y)}function Vj(e,t,n){return n==="reset"||n==="none"||n==="resize"?Nj:new tg(e,t)}function Kj(e,t,n,r){const a=e.elements||(e.elements=[]);a.length=t.length;for(let i=0;i<t.length;i++){const s=t[i],A=s.properties,l=pk(a,i,s.type,s.initProperties),c=n[s.optionScope].override(s);A.options=hk(c),r.update(l,A)}}function pk(e,t,n,r){const a=Ka[Rg(n)];let i=e[t];return(!i||!(i instanceof a))&&(i=e[t]=new a,Object.assign(i,r)),i}function hk(e){const t=Ka[Rg(e.type)],n={};n.id=e.id,n.type=e.type,n.drawTime=e.drawTime,Object.assign(n,wh(e,t.defaults),wh(e,t.defaultRoutes));for(const r of Pj)n[r]=e[r];return n}function wh(e,t){const n={};for(const r of Object.keys(t)){const a=t[r],i=e[r];Bh(r)&&Me(i)?n[r]=i.map(s=>DB(s,a)):n[r]=DB(i,a)}return n}function $j(e,t,n){return t.$context||(t.$context=Object.assign(Object.create(e.getContext()),{element:t,id:n.id,type:"annotation"}))}function zj(e,t){const n=t.length,r=e.length;if(r<n){const a=n-r;e.splice(r,0,...new Array(a))}else r>n&&e.splice(n,r-n);return e}var Wj="2.2.1";const Ca=new Map,Gj=Pg.concat(Tu);var es={id:"annotation",version:Wj,beforeRegister(){LG("chart.js","3.7",Oe.version)},afterRegister(){Oe.register(Ka)},afterUnregister(){Oe.unregister(Ka)},beforeInit(e){Ca.set(e,{annotations:[],elements:[],visibleElements:[],listeners:{},listened:!1,moveListened:!1,hooks:{},hooked:!1,hovered:[]})},beforeUpdate(e,t,n){const r=Ca.get(e),a=r.annotations=[];let i=n.annotations;we(i)?Object.keys(i).forEach(s=>{const A=i[s];we(A)&&(A.id=s,a.push(A))}):Me(i)&&a.push(...i),oj(a,e.scales)},afterDataLimits(e,t){const n=Ca.get(e);sj(e,t.scale,n.annotations.filter(r=>r.display&&r.adjustScaleRange))},afterUpdate(e,t,n){const r=Ca.get(e);tj(e,r,n),Hj(e,r,n,t.mode),r.visibleElements=r.elements.filter(a=>!a.skip&&a.options.display),ij(e,r,n)},beforeDatasetsDraw(e,t,n){uc(e,"beforeDatasetsDraw",n.clip)},afterDatasetsDraw(e,t,n){uc(e,"afterDatasetsDraw",n.clip)},beforeDraw(e,t,n){uc(e,"beforeDraw",n.clip)},afterDraw(e,t,n){uc(e,"afterDraw",n.clip)},beforeEvent(e,t,n){const r=Ca.get(e);nj(r,t.event,n)&&(t.changed=!0)},afterDestroy(e){Ca.delete(e)},_getState(e){return Ca.get(e)},defaults:{animations:{numbers:{properties:["x","y","x2","y2","width","height","centerX","centerY","pointX","pointY","radius"],type:"number"}},clip:!0,interaction:{mode:void 0,axis:void 0,intersect:void 0},common:{drawTime:"afterDatasetsDraw",init:!1,label:{}}},descriptors:{_indexable:!1,_scriptable:e=>!Gj.includes(e)&&e!=="init",annotations:{_allKeys:!1,_fallback:(e,t)=>`elements.${Ka[Rg(t.type)].id}`},interaction:{_fallback:!0},common:{label:{_indexable:Bh,_fallback:!0},_indexable:Bh}},additionalOptionScopes:[""]};function uc(e,t,n){const{ctx:r,chartArea:a}=e,i=Ca.get(e);n&&ll(r,a);const s=jj(i.visibleElements,t).sort((A,l)=>A.element.options.z-l.element.options.z);for(const A of s)Yj(r,a,i,A);n&&cl(r)}function jj(e,t){const n=[];for(const r of e)if(r.options.drawTime===t&&n.push({element:r,main:!0}),r.elements&&r.elements.length)for(const a of r.elements)a.options.display&&a.options.drawTime===t&&n.push({element:a});return n}function Yj(e,t,n,r){const a=r.element;r.main?(yB(n,a,"beforeDraw"),a.draw(e,t),yB(n,a,"afterDraw")):a.draw(e,t)}const bl=o.defineComponent({__name:"ManaCurveChart",props:sK,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es),Oe.register(xd);const a={topLeft:9999,topRight:9999,bottomLeft:9999,bottomRight:9999},i=o.computed(()=>["0","1","2","3","4","5","6","7","8","9","+"]),s=o.computed(()=>{if(console.log(t.deck),t.deck)return t.deck;if(console.log(t.deckCode),t.deckCode)return Bt(t.deckCode);throw console.log("props.deckCode"),new Error("Deck or DeckCode must be defined")}),A=o.computed(()=>{const u={},d=Ku(s.value);for(const f of d)u[f]=i.value.map(()=>0);for(const f in s.value){const p=on().cardJsonObject[f];if(p===void 0)continue;const h=jh(p,d);if(p.cost>10){u[h][10]+=s.value[f];continue}u[h][p.cost]+=s.value[f]}return u}),l=o.computed(()=>{const u=[];for(let d=0;d<Object.keys(A.value).length;d++){const f=Object.keys(A.value)[d];u.push({backgroundColor:N2(f),data:A.value[f],borderRadius:a,borderSkipped:!1,label:Gh(f),barPercentage:.5},{backgroundColor:"transparent",data:A.value[f].map(p=>p>0?1:0)})}return{labels:i.value,datasets:u}}),c={responsive:!0,animation:t.animation,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:t.tooltipsEnabled,mode:"index",intersect:!1,filter(u){return u.datasetIndex%2===0&&u.formattedValue!=="0"},callbacks:{title(u){return u.length===0?"":n("deck.numManaCards",{num:u[0].label==="+"?"10+":u[0].label})},footer(u){if(u.length===0)return"";let d=0;for(let f=0;f<u[0].chart.data.datasets.length;f++)f%2!==1&&(d+=u[0].chart.data.datasets[f].data[u[0].dataIndex]);return`${n("general.total")}: ${d}`}}},datalabels:{align:"end",anchor:"end",offset:t.dataLabelsOffset,formatter(u,d){let f=0;for(let p=0;p<d.chart.data.datasets.length;p++)p%2!==1&&(f+=d.chart.data.datasets[p].data[d.dataIndex]);return f||""},display(u){return t.showDataLabels?u.datasetIndex===u.chart.data.datasets.length-1:!1}}},scales:{x:{stacked:!0,grid:{display:!1},display:t.displayXScale},y:{stacked:!0,grid:{display:!1},display:!1}},layout:{padding:{top:t.paddingTop}}};return(u,d)=>(o.openBlock(),o.createBlock(o.unref(pd),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),qj={playerId:{type:Number,required:!0,default:1},playerName:{type:String,required:!0,default:""},selectedIconCard:{type:String,required:!1,default:void 0},selectedBannerColor:{type:String,required:!1,default:void 0},createdAt:{type:Date,required:!0,default:new Date},updatedAt:{type:Date,required:!0,default:new Date}},Xj={class:"player"},Jj={class:"row"},Zj={class:"prompt"},eY={class:"value"},tY={class:"row"},nY={class:"prompt"},rY={class:"value"},aY=o.defineComponent({__name:"BuiltDeckHighlight",props:qj,setup(e){const t=e,n=o.inject(ri),{t:r}=J();return(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(dt,{class:"archetype-side-panel-highlight"},{default:o.withCtx(()=>[o.createElementVNode("div",Xj,[o.createVNode(fa,{class:"circle-card-item","card-code-prop":t.selectedIconCard??"05BC160","ignore-card-item":!0,"color-override":t.selectedBannerColor,"router-link":o.unref(ge)().callbacks.playerIdRouterLinkCallback(t.playerId)},null,8,["card-code-prop","color-override","router-link"]),o.createVNode(s,{to:o.unref(ge)().callbacks.playerIdRouterLinkCallback(t.playerId),class:"name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.playerName),1)]),_:1},8,["to"])]),o.createElementVNode("div",Jj,[o.createElementVNode("div",Zj,o.toDisplayString(o.unref(r)("general.createdAt")),1),o.createElementVNode("div",eY,o.toDisplayString(o.unref(n)(t.createdAt).fromNow()),1)]),o.createElementVNode("div",tY,[o.createElementVNode("div",nY,o.toDisplayString(o.unref(r)("general.updatedAt")),1),o.createElementVNode("div",rY,o.toDisplayString(o.unref(n)(t.updatedAt).fromNow()),1)])]),_:1})}}});const iY=M(aY,[["__scopeId","data-v-9743903e"]]),sY=o.defineComponent({__name:"DeckSidePanel",props:gL,emits:["update:filters"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.reactive(n.filters),i=o.computed(()=>M3(n.deckcode)),s=o.computed(()=>Object.keys(Bt(n.deckcode)).filter(c=>Ls(on().cardJsonObject[c]))),A=o.computed(()=>{var c;return(c=ve().dataJson.formats[a.formatFilters[0]??"Standard"])==null?void 0:c.availableQueues});o.watch(a,()=>{t("update:filters",a)});function l(){for(const[,c]of Object.entries(a))c.splice(0)}return(c,u)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":l},{default:o.withCtx(()=>[n.builtDeckProps?(o.openBlock(),o.createBlock(iY,o.normalizeProps(o.mergeProps({key:0},n.builtDeckProps)),null,16)):o.createCommentVNode("",!0),o.createVNode(id,{"card-codes":s.value,regions:i.value},null,8,["card-codes","regions"]),o.createVNode(dt,{title:o.unref(r)("general.regions")},{default:o.withCtx(()=>[o.createVNode(Mm,{"deck-code":n.deckcode,"describe-regions":!0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(dt,{title:o.unref(r)("general.manaCurve")},{default:o.withCtx(()=>[o.createVNode(bl,{class:"mana-curve-chart","deck-code":n.deckcode,"padding-top":5,"show-data-labels":!0,"data-labels-offset":-5,"tooltips-enabled":!0,"display-x-scale":!0,animation:void 0},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(dt,{title:o.unref(r)("general.type")},{default:o.withCtx(()=>[o.createVNode(Cu,{class:"side-panel-chart","deck-code":n.deckcode,info:"typeRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(dt,{title:o.unref(r)("general.rarity")},{default:o.withCtx(()=>[o.createVNode(Cu,{class:"side-panel-chart","deck-code":n.deckcode,info:"rarityRef"},null,8,["deck-code"])]),_:1},8,["title"]),o.createVNode(eo,{"filter-array":a.sampleSizeFilters,"onUpdate:filterArray":u[0]||(u[0]=d=>a.sampleSizeFilters=d)},null,8,["filter-array"]),o.createVNode(Wi,{"filter-array":a.timeFilters,"onUpdate:filterArray":u[1]||(u[1]=d=>a.timeFilters=d)},null,8,["filter-array"]),o.createVNode(to,{"filter-array":a.serverFilters,"onUpdate:filterArray":u[2]||(u[2]=d=>a.serverFilters=d)},null,8,["filter-array"]),o.createVNode(nl,{"filter-array":a.formatFilters,"onUpdate:filterArray":u[3]||(u[3]=d=>a.formatFilters=d)},null,8,["filter-array"]),o.createVNode(rl,{"filter-array":a.queueFilters,"onUpdate:filterArray":u[4]||(u[4]=d=>a.queueFilters=d),"available-queues":A.value},null,8,["filter-array","available-queues"])]),_:1},8,["filter-object"]))}});const mk=M(sY,[["__scopeId","data-v-b95c4f38"]]),oY={cardsProp:{type:Object,required:!1,default:void 0},deck:{type:Object,required:!0,default:{}}},_l=e=>(o.pushScopeId("data-v-380c3647"),e=e(),o.popScopeId(),e),AY={class:"deck-summary"},lY={class:"deck-cards"},cY={class:"champions-landmarks column"},uY={key:0,class:"type"},dY={class:"type-heading"},fY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/champion.svg"},null,-1)),pY={class:"title"},hY={class:"type-quantity"},mY={class:"card-container"},gY={key:1,class:"type column"},vY={class:"type-heading"},yY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/landmark.svg"},null,-1)),BY={class:"title"},wY={class:"type-quantity"},bY={class:"card-container"},_Y={key:2,class:"type column"},CY={class:"type-heading"},kY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/equipment.svg"},null,-1)),EY={class:"title"},SY={class:"type-quantity"},xY={class:"card-container"},FY={key:0,class:"type column"},IY={class:"type-heading"},TY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/follower.svg"},null,-1)),UY={class:"title"},DY={class:"type-quantity"},QY={class:"card-container"},LY={key:1,class:"type"},OY={class:"type-heading"},MY=_l(()=>o.createElementVNode("img",{class:"icon",src:"https://lor.gg/images/spell.svg"},null,-1)),NY={class:"title"},PY={class:"type-quantity"},HY={class:"card-container"},RY=o.defineComponent({__name:"DeckSummary",props:oY,setup(e){const t=e,n=o.computed(()=>t.cardsProp?t.cardsProp:Zt(t.deck)),r=o.computed(()=>WA(n.value)),a=o.computed(()=>n.value.filter(u=>Ls(u))),i=o.computed(()=>n.value.filter(u=>u.typeRef==="Unit"&&u.supertype==="")),s=o.computed(()=>n.value.filter(u=>u.typeRef==="Spell")),A=o.computed(()=>n.value.filter(u=>u.typeRef==="Landmark")),l=o.computed(()=>n.value.filter(u=>u.typeRef==="Equipment"));function c(u){return u.reduce((d,f)=>d+t.deck[f.cardCode],0)}return(u,d)=>{const f=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",AY,[o.createElementVNode("div",lY,[o.createElementVNode("div",cY,[a.value.length>0?(o.openBlock(),o.createElementBlock("div",uY,[o.createElementVNode("div",dY,[fY,o.withDirectives(o.createElementVNode("div",pY,null,512),[[f,"general.champions"]]),o.createElementVNode("p",hY,o.toDisplayString(c(a.value)),1)]),o.createElementVNode("div",mY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),A.value.length>0?(o.openBlock(),o.createElementBlock("div",gY,[o.createElementVNode("div",vY,[yY,o.withDirectives(o.createElementVNode("div",BY,null,512),[[f,"general.landmarks"]]),o.createElementVNode("p",wY,o.toDisplayString(c(A.value)),1)]),o.createElementVNode("div",bY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),l.value.length>0?(o.openBlock(),o.createElementBlock("div",_Y,[o.createElementVNode("div",CY,[kY,o.withDirectives(o.createElementVNode("div",EY,null,512),[[f,"general.equipments"]]),o.createElementVNode("p",SY,o.toDisplayString(c(l.value)),1)]),o.createElementVNode("div",xY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0)]),i.value.length>0?(o.openBlock(),o.createElementBlock("div",FY,[o.createElementVNode("div",IY,[TY,o.withDirectives(o.createElementVNode("div",UY,null,512),[[f,"general.followers"]]),o.createElementVNode("p",DY,o.toDisplayString(c(i.value)),1)]),o.createElementVNode("div",QY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0),s.value.length>0?(o.openBlock(),o.createElementBlock("div",LY,[o.createElementVNode("div",OY,[MY,o.withDirectives(o.createElementVNode("div",NY,null,512),[[f,"general.spells"]]),o.createElementVNode("p",PY,o.toDisplayString(c(s.value)),1)]),o.createElementVNode("div",HY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,p=>(o.openBlock(),o.createBlock($t,{key:p.cardCode,"card-prop":p,color:o.unref(yi)(p,r.value,!0),name:p.name,"mana-number":p.cost,"quantity-number":t.deck[p.cardCode],"maintain-aspect-ratio":!0,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(p.cardCode)},null,8,["card-prop","color","name","mana-number","quantity-number","router-link"]))),128))])])):o.createCommentVNode("",!0)])])}}});const Dd=M(RY,[["__scopeId","data-v-380c3647"]]),VY={deckCode:{type:String,required:!0,default:""}},Qd=o.defineComponent({__name:"CopyDeckButton",props:VY,setup(e){const t=e,{t:n}=J(),r=o.ref(null);let a,i;o.onMounted(()=>{i=qe(r.value,{content:n("deck.copyDeckCode"),arrow:!0}),a=qe(r.value,{content:n("deck.deckCodeCopied"),trigger:"manual",arrow:!0})});function s(){P3(t.deckCode),i.hide(),a.show()}return(A,l)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s},[o.createVNode(o.unref(ke),{icon:"copy",class:"icon"})],512))}}),KY={deckId:{type:Number,required:!0,default:-1}},Vg=o.defineComponent({__name:"DeleteDeckButton",props:KY,setup(e){const{t}=J(),n=o.ref(null);return o.onMounted(()=>{qe(n.value,{content:t("deck.deleteDeck"),arrow:!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:"trash-alt",class:"icon"})],512))}}),Kg=o.defineComponent({__name:"EditDeckNameButton",setup(e){const{t}=J(),n=o.ref(null);return o.onMounted(()=>{qe(n.value,{content:t("deck.editDeckName"),arrow:!0})}),(r,a)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:n,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:"pencil-alt",class:"icon"})],512))}}),$Y={routerLink:{type:Object,required:!0,default:{path:"/404"}}},zY=o.defineComponent({__name:"OpenArchetypePageButton",props:$Y,setup(e){const t=e,{t:n}=J(),r=o.ref(null);return o.onMounted(()=>{qe(r.value,{content:n("deck.openArchetypePage"),arrow:!0})}),(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(s,{to:t.routerLink},{default:o.withCtx(()=>[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},o.toDisplayString(o.unref(n)("archetype.abbreviation")),513)]),_:1},8,["to"])}}});const $g=M(zY,[["__scopeId","data-v-b921ee68"]]),WY={routerLink:{type:Object,required:!0,default:{path:"/404"}}},zg=o.defineComponent({__name:"OpenInDeckBuilderButton",props:WY,setup(e){const t=e,{t:n}=J(),r=o.ref(null);return o.onMounted(()=>{qe(r.value,{content:n("deck.openInDeckBuilder"),arrow:!0})}),(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(s,{to:t.routerLink},{default:o.withCtx(()=>[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:"hammer",class:"icon"})],512)]),_:1},8,["to"])}}}),GY={deck:{type:Object,required:!0,default:{}}},jY={deck:{type:Object,required:!0,default:{}}},YY={class:"simulate-mulligan"},qY={class:"cards"},XY={class:"buttons"},JY=o.defineComponent({__name:"SimulateMulligan",props:jY,setup(e){const t=e,{t:n}=J(),r=o.computed(()=>{const c=[];for(const u in t.deck)for(let d=0;d<t.deck[u];d++)c.push(u);return c}),a=o.computed(()=>{const c=Array.from(r.value);for(const u of i.value)u!==null&&c.splice(c.indexOf(u.cardCode),1);return c}),i=o.ref([null,null,null,null]);function s(){i.value.fill(null),l()}function A(){var c;for(let u=0;u<i.value.length;u++)i.value[u]===null||!((c=i.value[u])!=null&&c.isSelected)||(i.value[u]=null);l()}function l(){for(;i.value.some(c=>c===null);)i.value[i.value.indexOf(null)]={cardCode:a.value[Q3(0,a.value.length)],isSelected:!1};console.log(i.value)}return l(),(c,u)=>(o.openBlock(),o.createElementBlock("div",YY,[o.createElementVNode("div",qY,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value.filter(d=>d!==null),(d,f)=>(o.openBlock(),o.createBlock(Pi,{key:d.cardCode+f,"card-code-prop":d.cardCode,"is-root":!0,style:o.normalizeStyle(d.isSelected?{opacity:.5}:null),onClick:p=>d.isSelected=!d.isSelected},null,8,["card-code-prop","style","onClick"]))),128))]),o.createElementVNode("div",XY,[o.createElementVNode("button",{class:"primary-button",onClick:s},o.toDisplayString(o.unref(n)("deck.replaceAllCards")),1),o.createElementVNode("button",{class:"primary-button",onClick:A},o.toDisplayString(o.unref(n)("deck.replaceSelectedCards")),1)])]))}});const Wg=M(JY,[["__scopeId","data-v-e3540f85"]]),ZY={class:"simulate-mulligan-wrapper"},eq=o.defineComponent({__name:"SimulateMulliganButton",props:GY,setup(e){const t=e,{t:n}=J(),r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{qe(r.value,{content:n("deck.simulateMulligan"),arrow:!0})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=A=>a.value=!0)},[o.createVNode(o.unref(ke),{icon:"hand-paper"})],512),o.createVNode(si,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=A=>a.value=A)},{default:o.withCtx(()=>[o.createElementVNode("div",ZY,[o.createVNode(Wg,{deck:t.deck},null,8,["deck"])])]),_:1},8,["show-modal"])]))}});const Ld=M(eq,[["__scopeId","data-v-63aa9043"]]),tq={deckIsPrivate:{type:Boolean,required:!0,default:!0}},Gg=o.defineComponent({__name:"UpdateDeckPrivacyButton",props:tq,setup(e){const t=e,{t:n}=J(),r=o.ref(null);let a;return o.onMounted(()=>{a=qe(r.value,{content:`${n("deck.updatePrivacy")}:
|
|
868
868
|
${t.deckIsPrivate?n("deck.deckPrivate"):n("deck.deckPublic")}`,arrow:!0})}),o.watch(()=>t.deckIsPrivate,i=>{a.setContent(`${n("deck.updatePrivacy")}:
|
|
869
|
-
${n(i?"deck.deckPrivate":"deck.deckPublic")}`)}),(i,s)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:t.deckIsPrivate?"lock":"unlock",class:"icon"},null,8,["icon"])],512))}}),nq={},rq={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 496"},aq=o.createElementVNode("path",{d:"M75.8 25.4a3527.2 3527.2 0 0 1-32.2 16.2A429.1 429.1 0 0 0 24.8 51a117.6 117.6 0 0 0-8.6 4.4c-5.7 2.7-7.5 8-5.8 17 .2 1.2.6 4.9.8 8.2l.8 8.8c.2 1.5.4 4.2.4 6 0 1.8.2 3.8.4 4.6.2.8.5 3.8.6 6.8.1 3 .4 6 .6 6.6.2.7.5 3.5.6 6.3 0 2.7.4 6.3.6 7.8l.8 8.7c.2 3.3.7 8.2 1 10.8.3 2.6.6 6.2.6 8 0 1.8.2 3.8.4 4.6.2.7.5 3.7.6 6.6.2 2.8.4 6 .6 7 .2.8.5 4 .6 7.1.2 3 .4 6 .6 6.7.2.7.5 3.7.6 6.8.1 3 .3 5.7.5 6 .2.3.6 5 1.3 14.4C24 231 24 231 29.7 235.6A74.8 74.8 0 0 1 50 259.2c4.9 10.3 5.3 24 1 36.6l-1.5 5.3c0 .3-.4 1.3-1 2.2L47 307c-.3 1-1.4 3.2-2.3 4.7a43 43 0 0 1-6.2 9.3c-3.8 4.5-4.8 8.2-3.7 13 .4 2 1.4 10.4 1.8 15.6.2 1.9.4 3.8.6 4.3.2.4.6 3.4.8 6.5.3 3.2.7 6.2.9 6.8.2.5.5 3.4.7 6.4.2 3 .6 6 .8 6.6.2.6.6 3.3.8 6 .4 5 .9 8.6 1.8 14.2.3 2 .6 4.4.6 5.5 0 1.1.3 4 .8 6.6l1 7.4c.5 6.2 2.2 8.1 9.8 10.8a99.5 99.5 0 0 1 10 4c1.7.5 3.2 1.1 3.4 1.3.7.5 6.2 2.8 6.8 2.8.3 0 1.7.5 3 1.2l4.2 1.6 5.8 2.4a82.2 82.2 0 0 0 8.8 3.6l5 2c2.1.6 5 1.8 6.7 2.6 1.6.7 3.5 1.5 4.1 1.6l4 1.6c1.5.7 4 1.7 5.4 2.1l8 3.1a193.7 193.7 0 0 0 15.8 6.3l3.6 1.4 5.3 2.1c1.8.9 4.5 2 6 2.5 1.5.4 3 1 3.5 1.3a100 100 0 0 1 14.2 5.5l4.6 1.9a56 56 0 0 0 5.2 1.8 62 62 0 0 1 6.2 2.3c4 1.8 9.9.7 20.7-4 1.6-.7 3-1.3 3.4-1.3a60.5 60.5 0 0 1 9.3-3.7 73.4 73.4 0 0 0 8.9-3.3l4.9-2c1.6-.8 4.2-1.9 5.8-2.4 1.6-.5 3.5-1.2 4.2-1.6a41 41 0 0 1 4.3-1.7c1.7-.5 4-1.4 5.1-2 2.3-1.1 7-3 13.6-5.3a85.1 85.1 0 0 0 11-4.5 675 675 0 0 0 23.4-9.3 53 53 0 0 1 5.6-2.2 38 38 0 0 0 4.2-1.6l4-1.6 4.6-1.8c2.8-1.4 13.9-5.8 14.4-5.8 1.2 0 6.7-2.6 8.2-4 2.4-2 3.2-3.7 3.4-7.1l.8-6.7c1.2-7.8 1.8-13 1.8-14.9 0-1 .3-3 .6-4.3.3-1.3.7-4.9 1-7.8.2-3 .5-6 .8-6.6.2-.7.6-3.7.8-6.7.2-3 .6-5.9.8-6.4a245.2 245.2 0 0 1 2.9-23.7c.1-1.8.5-4.7.8-6.6 1.2-9.6 1-10.1-5.2-18a40 40 0 0 1-5-8.1l-1.5-3c0-.3-.7-2.1-1.6-4.2a54 54 0 0 1-3.6-10.4c-.8-2.4-2.1-12.5-2.1-16.3a44.4 44.4 0 0 1 10-27 103 103 0 0 1 16.8-16.1c2.8-2.2 3.9-6.1 4-14.8 0-1.6.3-3.7.5-4.6.2-1 .5-4.1.6-7.1.1-3 .4-6.1.6-7 .2-.9.5-4 .6-7 .1-2.9.3-5.5.5-5.7.1-.3.4-2.8.5-5.7l.7-8.8c.6-4.6 1.5-15 2.4-28 .2-2.7.5-5 .6-5.2l.5-5.6c0-3 .3-6 .6-7 .2-1 .5-4.2.6-7.2.1-3 .4-6 .6-6.8.2-.8.5-3.7.6-6.6.1-2.9.4-6 .6-6.8.2-.9.4-3 .4-4.6 0-1.7.2-4.4.4-6l.8-8.2.9-10c1-10.5.1-12.9-6.1-15.8l-4.4-2.1-5.8-3-8.2-4A783.8 783.8 0 0 0 342 34.7l-32.5-16.2c-1.5-.5-11-.6-110.2-.6H90.6l-14.8 7.4m228.5 32.4a129 129 0 0 0 11.7 5.6c.6.2 6.6 3 13.4 6.4 6.8 3.3 13.4 6.5 14.7 7 8 3.1 8.4 5 7 30.2a905.9 905.9 0 0 0-.8 19.4 354.8 354.8 0 0 0-1.2 15.8l-.7 11.8c-.8 13.3-1.2 18.8-1.6 21.2-.2 1.4-.4 4.2-.4 6.2s-.2 4.3-.4 5.2c-.2.9-.4 4.3-.6 7.6-.1 3.2-.3 6-.4 6.2-.1.2-.4 3.2-.6 6.7-.4 7.8-.9 9-5.1 13.6a92.3 92.3 0 0 0-19.5 31 73.8 73.8 0 0 0-2.8 44.1c.2 1.1.6 3 1 4.2.5 1.2 1.3 3.9 1.8 6a75.2 75.2 0 0 0 8 18.3 74 74 0 0 0 3.2 5.7c3.8 5.8 5 11.5 3.5 17a48 48 0 0 0-.7 6.6 67 67 0 0 1-.7 7.2 77 77 0 0 0-.7 7.2l-.8 9.2-1.8 19c-.8 10.2-.9 11.3-1.8 13.3-1 2.3-3.8 5.1-5.6 5.6l-4.4 1.8c-4.7 2.2-11 4.9-15.8 6.7-2.2.8-5 2-6.4 2.7l-4 1.7-3.8 1.6-4.6 2-4.4 1.6a227.8 227.8 0 0 0-12.4 5.3c-2.2 1-4.3 1.9-4.6 1.9-.3 0-1.2.4-1.9.8s-2.7 1.2-4.4 1.8a55 55 0 0 0-5.5 2.3l-5 2.2a52 52 0 0 0-4 1.7c-.7.4-3 1.3-4.9 2a83.9 83.9 0 0 0-9.5 3.8c-.6.2-2.6 1-4.6 2-2 1-4.7 2-6 2.5-1.4.4-3.4 1.3-4.5 1.9l-2.5 1c-.3 0-2.2.7-4.2 1.6-4.8 2-6.5 2-10.2.3a80.4 80.4 0 0 0-9.8-4l-4.8-2a80 80 0 0 1-4.8-2 13017.1 13017.1 0 0 0-27.6-11.6c-1.8-.7-4.1-1.7-5.2-2l-3.8-1.7c-1-.5-2.6-1.1-3.6-1.4-1-.3-3.6-1.3-5.8-2.4a66.4 66.4 0 0 0-7.6-3.2c-.6-.5-6.3-2.8-6.9-2.8a23 23 0 0 1-3.6-1.4 114 114 0 0 0-5.5-2.4c-1.3-.5-3.5-1.4-4.8-2.1-1.3-.7-3.6-1.6-5-2a45 45 0 0 1-4.8-2 22 22 0 0 0-3.4-1.5c-.6-.1-3.1-1.2-5.6-2.4l-5.9-2.6c-4-1.3-6.1-5.8-6.5-13.6-.1-2.8-.4-5.8-.6-6.7-.2-1-.6-4.4-.8-7.6l-.8-9.5-.8-9.2a75 75 0 0 0-.8-7.6c-.2-1-.5-4-.6-6.5-.1-2.6-.4-5.6-.7-6.7a20.5 20.5 0 0 1 3.3-17 2248.4 2248.4 0 0 1 6-11 82.4 82.4 0 0 0 7.8-22.4l1-4.4a87.8 87.8 0 0 0-1.2-34.2A98.2 98.2 0 0 0 58.4 219c-2-2-3.2-4.4-3.2-6.6l-.6-7.8c-.6-6-1-11.6-1.8-24.1-.2-3.6-.5-6.7-.6-7a1106.2 1106.2 0 0 1-4.6-81.1l-.1-8.3 1.5-2.5c1.4-2.2 2-2.6 4.6-3.9a2066.4 2066.4 0 0 0 24.6-12l16-7.6c2-1 4.1-1.9 4.9-2 .7-.2 46.3-.3 101.3-.3h100l3.9 2m-185 29c-3 .4-2 4.6 2.7 11.6a84.9 84.9 0 0 1 10 23.4c.7 5 .8 249.2.2 252.4a39.4 39.4 0 0 1-5 12.5c-.7 1.4-2.8 4.7-4.8 7.4-3.6 5-4.1 6.2-3.6 7.2.5.7 70.4 1 72.7.3 2.3-.8 2-2-1-5.8a60 60 0 0 1-3.2-4.5l-2.6-3.6a45.5 45.5 0 0 1-4.8-9.7c-.8-2.1-.8-3.4-1-34.6 0-40.3 0-42 1.7-43.5l10.3-8.8c7-5.7 10.7-8.9 10.7-9.1 0-.5 4-3.2 4.4-3 .6.4 2 3.7 4.6 11.6 1.4 4.4 3.1 9.3 3.8 10.8a296.1 296.1 0 0 1 7.1 20l1.4 3.8a158.4 158.4 0 0 0 3.7 10.4 63 63 0 0 0 1.6 4.4l1.7 4.6a199.6 199.6 0 0 0 3.8 10.8l5 13.8c2.3 5.3 1.4 15.2-1.7 18.8a41.8 41.8 0 0 1-3.7 6.8c-3.2 5.2-3.3 6.4 0 6.9 4.2.6 71 .3 71.5-.3.8-1 .1-2.3-3-5.6a67.7 67.7 0 0 1-8.5-10.8c-1.9-3-6.3-14.2-10.5-26.2-3-8.4-3.7-10.5-5-13.6l-1.4-4c0-.5-.5-2-1.2-3.4s-1.2-2.9-1.2-3.2a40 40 0 0 0-2.6-7.2 156.6 156.6 0 0 1-12-33.6l-2-5.6c-.9-1.5-3.5-8.7-5.5-15-.9-2.8-1.8-5.2-2-5.5-.2-.2-.8-2-1.5-3.8l-3.4-9.7c-3-8.3-3-7.9.3-12a202.4 202.4 0 0 0 12-17.2c1-1.3 2.1-3.4 2.8-4.7.6-1.3 1.7-3.1 2.3-4 .7-.9 1.2-1.8 1.2-2 0-.6 2.7-6.3 3.6-7.5.4-.6 1-1.7 1.2-2.6l1.8-4.2c1.5-3 1.9-4 4.4-12.2l2.6-8.2a39 39 0 0 0 1.2-5.4 111 111 0 0 0 0-46.5 53.4 53.4 0 0 0-41.2-37.5 133 133 0 0 0-22-3.2c-2.5-.3-94.1-.5-95.9-.3m92.5 38a26 26 0 0 1 18.7 18.6 36 36 0 0 0 1.4 4 108.6 108.6 0 0 1-3.4 40 73.8 73.8 0 0 1-12.7 24c-1.5 2.5-8.5 10.5-12 13.9a120.1 120.1 0 0 1-13.7 12.1 52.5 52.5 0 0 1-4.6 3.7l-3.9 2.8c-1 .8-2 1.4-2.2 1.3-.4-.2-.7-120.8-.3-121.6 0-.2 6.4-.3 14.1-.3h14l4.6 1.4",fill:"#cca444","fill-rule":"evenodd"},null,-1),iq=[aq];function sq(e,t){return o.openBlock(),o.createElementBlock("svg",rq,iq)}const jg=M(nq,[["render",sq]]),oq={deckCode:{type:String,required:!0,default:""},deckName:{type:String,required:!0,default:""}},Aq=o.defineComponent({__name:"UploadDeckToLorButton",props:oq,setup(e){const t=e,{t:n}=J(),r=o.computed(()=>Kt().user?n("deck.uploadDeckToLor"):n("deck.signInToUpload")),a=o.ref(null);let i;function s(){Kt().user&&ye().callbacks.uploadDeckToLorCallback(t.deckCode,t.deckName)}return o.onMounted(()=>{i=qe(a.value,{content:r.value,arrow:!0})}),o.watch(r,()=>{i.setContent(r.value)}),(A,l)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:a,class:"circle-button",onClick:s},[o.createVNode(jg)],512))}});const Od=M(Aq,[["__scopeId","data-v-b942bc9b"]]),lq={class:"primary-button"},Yg=o.defineComponent({__name:"ShareButton",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("button",lq,[o.createVNode(o.unref(ke),{icon:"share-nodes"}),o.createElementVNode("span",null,[o.renderSlot(t.$slots,"default")])]))}}),gk={isPrivate:{type:Boolean,required:!1,default:!1},showUploaded:{type:Boolean,required:!1,default:!1},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:void 0},deckName:{type:String,required:!1,default:void 0},deckCode:{type:String,required:!0,default:"CUCACBIKYYAQCBQMAEBAMCI5F4EAMCQLB4IRGFI2D4WACAQGBIIBQAA"},deckId:{type:Number,required:!1,default:void 0},showButtons:{type:Object,required:!1,default:{deleteDeck:!0,updateDeckPrivacy:!0,editDeckName:!0,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0}}},cq={class:"deck-buttons"},uq={key:0,class:"owned-deck-buttons buttons"},dq={class:"normal-buttons buttons"},fq=o.defineComponent({__name:"DeckButtons",props:gk,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>Bt(n.deckCode));return console.log(a),(i,s)=>(o.openBlock(),o.createElementBlock("div",cq,[n.showButtons.deleteDeck||n.showButtons.updateDeckPrivacy||n.showButtons.editDeckName?(o.openBlock(),o.createElementBlock("div",uq,[n.showButtons.deleteDeck?(o.openBlock(),o.createBlock(Vg,{key:0,onClick:s[0]||(s[0]=A=>t("click:delete"))})):o.createCommentVNode("",!0),n.showButtons.updateDeckPrivacy?(o.openBlock(),o.createBlock(Gg,{key:1,"deck-is-private":n.isPrivate,onClick:s[1]||(s[1]=A=>t("click:update-privacy"))},null,8,["deck-is-private"])):o.createCommentVNode("",!0),n.showButtons.editDeckName?(o.openBlock(),o.createBlock(Kg,{key:2,onClick:s[2]||(s[2]=A=>t("click:edit-name"))})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",dq,[n.showButtons.gemsCost?(o.openBlock(),o.createBlock(Rm,{key:0,class:"gems-cost",deck:a.value},null,8,["deck"])):o.createCommentVNode("",!0),n.showButtons.openArchetypePage?(o.openBlock(),o.createBlock($g,{key:1,"router-link":n.archetypeRouterLink},null,8,["router-link"])):o.createCommentVNode("",!0),n.showButtons.simulateMulligan?(o.openBlock(),o.createBlock(Ld,{key:2,deck:a.value},null,8,["deck"])):o.createCommentVNode("",!0),n.showButtons.openInDeckBuilder?(o.openBlock(),o.createBlock(zg,{key:3,"router-link":n.deckBuilderRouterLink},null,8,["router-link"])):o.createCommentVNode("",!0),n.showButtons.copyDeckCode?(o.openBlock(),o.createBlock(Qd,{key:4,"deck-code":n.deckCode},null,8,["deck-code"])):o.createCommentVNode("",!0),n.showButtons.uploadDeckToLor?(o.openBlock(),o.createBlock(Od,{key:5,"deck-code":n.deckCode,"deck-name":n.deckName??o.unref(Yh)(n.deckCode)},null,8,["deck-code","deck-name"])):o.createCommentVNode("",!0),n.showButtons.shareDeck?(o.openBlock(),o.createBlock(Yg,{key:6,class:"share-button",onClick:s[3]||(s[3]=A=>t("click:share"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(r)("deck.shareDeck")),1)]),_:1})):o.createCommentVNode("",!0)])]))}});const Ao=M(fq,[["__scopeId","data-v-427da7ee"]]),pq={cards:{type:Array,required:!1},deck:{type:Object,required:!1},deckCode:{type:String,required:!0,default:""},deckName:{type:String,required:!1,default:void 0},isSaving:{type:Boolean,required:!1,default:!1},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},hq={element:{type:Object,required:!0,default:""}};/*!
|
|
869
|
+
${n(i?"deck.deckPrivate":"deck.deckPublic")}`)}),(i,s)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:t.deckIsPrivate?"lock":"unlock",class:"icon"},null,8,["icon"])],512))}}),nq={},rq={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 496"},aq=o.createElementVNode("path",{d:"M75.8 25.4a3527.2 3527.2 0 0 1-32.2 16.2A429.1 429.1 0 0 0 24.8 51a117.6 117.6 0 0 0-8.6 4.4c-5.7 2.7-7.5 8-5.8 17 .2 1.2.6 4.9.8 8.2l.8 8.8c.2 1.5.4 4.2.4 6 0 1.8.2 3.8.4 4.6.2.8.5 3.8.6 6.8.1 3 .4 6 .6 6.6.2.7.5 3.5.6 6.3 0 2.7.4 6.3.6 7.8l.8 8.7c.2 3.3.7 8.2 1 10.8.3 2.6.6 6.2.6 8 0 1.8.2 3.8.4 4.6.2.7.5 3.7.6 6.6.2 2.8.4 6 .6 7 .2.8.5 4 .6 7.1.2 3 .4 6 .6 6.7.2.7.5 3.7.6 6.8.1 3 .3 5.7.5 6 .2.3.6 5 1.3 14.4C24 231 24 231 29.7 235.6A74.8 74.8 0 0 1 50 259.2c4.9 10.3 5.3 24 1 36.6l-1.5 5.3c0 .3-.4 1.3-1 2.2L47 307c-.3 1-1.4 3.2-2.3 4.7a43 43 0 0 1-6.2 9.3c-3.8 4.5-4.8 8.2-3.7 13 .4 2 1.4 10.4 1.8 15.6.2 1.9.4 3.8.6 4.3.2.4.6 3.4.8 6.5.3 3.2.7 6.2.9 6.8.2.5.5 3.4.7 6.4.2 3 .6 6 .8 6.6.2.6.6 3.3.8 6 .4 5 .9 8.6 1.8 14.2.3 2 .6 4.4.6 5.5 0 1.1.3 4 .8 6.6l1 7.4c.5 6.2 2.2 8.1 9.8 10.8a99.5 99.5 0 0 1 10 4c1.7.5 3.2 1.1 3.4 1.3.7.5 6.2 2.8 6.8 2.8.3 0 1.7.5 3 1.2l4.2 1.6 5.8 2.4a82.2 82.2 0 0 0 8.8 3.6l5 2c2.1.6 5 1.8 6.7 2.6 1.6.7 3.5 1.5 4.1 1.6l4 1.6c1.5.7 4 1.7 5.4 2.1l8 3.1a193.7 193.7 0 0 0 15.8 6.3l3.6 1.4 5.3 2.1c1.8.9 4.5 2 6 2.5 1.5.4 3 1 3.5 1.3a100 100 0 0 1 14.2 5.5l4.6 1.9a56 56 0 0 0 5.2 1.8 62 62 0 0 1 6.2 2.3c4 1.8 9.9.7 20.7-4 1.6-.7 3-1.3 3.4-1.3a60.5 60.5 0 0 1 9.3-3.7 73.4 73.4 0 0 0 8.9-3.3l4.9-2c1.6-.8 4.2-1.9 5.8-2.4 1.6-.5 3.5-1.2 4.2-1.6a41 41 0 0 1 4.3-1.7c1.7-.5 4-1.4 5.1-2 2.3-1.1 7-3 13.6-5.3a85.1 85.1 0 0 0 11-4.5 675 675 0 0 0 23.4-9.3 53 53 0 0 1 5.6-2.2 38 38 0 0 0 4.2-1.6l4-1.6 4.6-1.8c2.8-1.4 13.9-5.8 14.4-5.8 1.2 0 6.7-2.6 8.2-4 2.4-2 3.2-3.7 3.4-7.1l.8-6.7c1.2-7.8 1.8-13 1.8-14.9 0-1 .3-3 .6-4.3.3-1.3.7-4.9 1-7.8.2-3 .5-6 .8-6.6.2-.7.6-3.7.8-6.7.2-3 .6-5.9.8-6.4a245.2 245.2 0 0 1 2.9-23.7c.1-1.8.5-4.7.8-6.6 1.2-9.6 1-10.1-5.2-18a40 40 0 0 1-5-8.1l-1.5-3c0-.3-.7-2.1-1.6-4.2a54 54 0 0 1-3.6-10.4c-.8-2.4-2.1-12.5-2.1-16.3a44.4 44.4 0 0 1 10-27 103 103 0 0 1 16.8-16.1c2.8-2.2 3.9-6.1 4-14.8 0-1.6.3-3.7.5-4.6.2-1 .5-4.1.6-7.1.1-3 .4-6.1.6-7 .2-.9.5-4 .6-7 .1-2.9.3-5.5.5-5.7.1-.3.4-2.8.5-5.7l.7-8.8c.6-4.6 1.5-15 2.4-28 .2-2.7.5-5 .6-5.2l.5-5.6c0-3 .3-6 .6-7 .2-1 .5-4.2.6-7.2.1-3 .4-6 .6-6.8.2-.8.5-3.7.6-6.6.1-2.9.4-6 .6-6.8.2-.9.4-3 .4-4.6 0-1.7.2-4.4.4-6l.8-8.2.9-10c1-10.5.1-12.9-6.1-15.8l-4.4-2.1-5.8-3-8.2-4A783.8 783.8 0 0 0 342 34.7l-32.5-16.2c-1.5-.5-11-.6-110.2-.6H90.6l-14.8 7.4m228.5 32.4a129 129 0 0 0 11.7 5.6c.6.2 6.6 3 13.4 6.4 6.8 3.3 13.4 6.5 14.7 7 8 3.1 8.4 5 7 30.2a905.9 905.9 0 0 0-.8 19.4 354.8 354.8 0 0 0-1.2 15.8l-.7 11.8c-.8 13.3-1.2 18.8-1.6 21.2-.2 1.4-.4 4.2-.4 6.2s-.2 4.3-.4 5.2c-.2.9-.4 4.3-.6 7.6-.1 3.2-.3 6-.4 6.2-.1.2-.4 3.2-.6 6.7-.4 7.8-.9 9-5.1 13.6a92.3 92.3 0 0 0-19.5 31 73.8 73.8 0 0 0-2.8 44.1c.2 1.1.6 3 1 4.2.5 1.2 1.3 3.9 1.8 6a75.2 75.2 0 0 0 8 18.3 74 74 0 0 0 3.2 5.7c3.8 5.8 5 11.5 3.5 17a48 48 0 0 0-.7 6.6 67 67 0 0 1-.7 7.2 77 77 0 0 0-.7 7.2l-.8 9.2-1.8 19c-.8 10.2-.9 11.3-1.8 13.3-1 2.3-3.8 5.1-5.6 5.6l-4.4 1.8c-4.7 2.2-11 4.9-15.8 6.7-2.2.8-5 2-6.4 2.7l-4 1.7-3.8 1.6-4.6 2-4.4 1.6a227.8 227.8 0 0 0-12.4 5.3c-2.2 1-4.3 1.9-4.6 1.9-.3 0-1.2.4-1.9.8s-2.7 1.2-4.4 1.8a55 55 0 0 0-5.5 2.3l-5 2.2a52 52 0 0 0-4 1.7c-.7.4-3 1.3-4.9 2a83.9 83.9 0 0 0-9.5 3.8c-.6.2-2.6 1-4.6 2-2 1-4.7 2-6 2.5-1.4.4-3.4 1.3-4.5 1.9l-2.5 1c-.3 0-2.2.7-4.2 1.6-4.8 2-6.5 2-10.2.3a80.4 80.4 0 0 0-9.8-4l-4.8-2a80 80 0 0 1-4.8-2 13017.1 13017.1 0 0 0-27.6-11.6c-1.8-.7-4.1-1.7-5.2-2l-3.8-1.7c-1-.5-2.6-1.1-3.6-1.4-1-.3-3.6-1.3-5.8-2.4a66.4 66.4 0 0 0-7.6-3.2c-.6-.5-6.3-2.8-6.9-2.8a23 23 0 0 1-3.6-1.4 114 114 0 0 0-5.5-2.4c-1.3-.5-3.5-1.4-4.8-2.1-1.3-.7-3.6-1.6-5-2a45 45 0 0 1-4.8-2 22 22 0 0 0-3.4-1.5c-.6-.1-3.1-1.2-5.6-2.4l-5.9-2.6c-4-1.3-6.1-5.8-6.5-13.6-.1-2.8-.4-5.8-.6-6.7-.2-1-.6-4.4-.8-7.6l-.8-9.5-.8-9.2a75 75 0 0 0-.8-7.6c-.2-1-.5-4-.6-6.5-.1-2.6-.4-5.6-.7-6.7a20.5 20.5 0 0 1 3.3-17 2248.4 2248.4 0 0 1 6-11 82.4 82.4 0 0 0 7.8-22.4l1-4.4a87.8 87.8 0 0 0-1.2-34.2A98.2 98.2 0 0 0 58.4 219c-2-2-3.2-4.4-3.2-6.6l-.6-7.8c-.6-6-1-11.6-1.8-24.1-.2-3.6-.5-6.7-.6-7a1106.2 1106.2 0 0 1-4.6-81.1l-.1-8.3 1.5-2.5c1.4-2.2 2-2.6 4.6-3.9a2066.4 2066.4 0 0 0 24.6-12l16-7.6c2-1 4.1-1.9 4.9-2 .7-.2 46.3-.3 101.3-.3h100l3.9 2m-185 29c-3 .4-2 4.6 2.7 11.6a84.9 84.9 0 0 1 10 23.4c.7 5 .8 249.2.2 252.4a39.4 39.4 0 0 1-5 12.5c-.7 1.4-2.8 4.7-4.8 7.4-3.6 5-4.1 6.2-3.6 7.2.5.7 70.4 1 72.7.3 2.3-.8 2-2-1-5.8a60 60 0 0 1-3.2-4.5l-2.6-3.6a45.5 45.5 0 0 1-4.8-9.7c-.8-2.1-.8-3.4-1-34.6 0-40.3 0-42 1.7-43.5l10.3-8.8c7-5.7 10.7-8.9 10.7-9.1 0-.5 4-3.2 4.4-3 .6.4 2 3.7 4.6 11.6 1.4 4.4 3.1 9.3 3.8 10.8a296.1 296.1 0 0 1 7.1 20l1.4 3.8a158.4 158.4 0 0 0 3.7 10.4 63 63 0 0 0 1.6 4.4l1.7 4.6a199.6 199.6 0 0 0 3.8 10.8l5 13.8c2.3 5.3 1.4 15.2-1.7 18.8a41.8 41.8 0 0 1-3.7 6.8c-3.2 5.2-3.3 6.4 0 6.9 4.2.6 71 .3 71.5-.3.8-1 .1-2.3-3-5.6a67.7 67.7 0 0 1-8.5-10.8c-1.9-3-6.3-14.2-10.5-26.2-3-8.4-3.7-10.5-5-13.6l-1.4-4c0-.5-.5-2-1.2-3.4s-1.2-2.9-1.2-3.2a40 40 0 0 0-2.6-7.2 156.6 156.6 0 0 1-12-33.6l-2-5.6c-.9-1.5-3.5-8.7-5.5-15-.9-2.8-1.8-5.2-2-5.5-.2-.2-.8-2-1.5-3.8l-3.4-9.7c-3-8.3-3-7.9.3-12a202.4 202.4 0 0 0 12-17.2c1-1.3 2.1-3.4 2.8-4.7.6-1.3 1.7-3.1 2.3-4 .7-.9 1.2-1.8 1.2-2 0-.6 2.7-6.3 3.6-7.5.4-.6 1-1.7 1.2-2.6l1.8-4.2c1.5-3 1.9-4 4.4-12.2l2.6-8.2a39 39 0 0 0 1.2-5.4 111 111 0 0 0 0-46.5 53.4 53.4 0 0 0-41.2-37.5 133 133 0 0 0-22-3.2c-2.5-.3-94.1-.5-95.9-.3m92.5 38a26 26 0 0 1 18.7 18.6 36 36 0 0 0 1.4 4 108.6 108.6 0 0 1-3.4 40 73.8 73.8 0 0 1-12.7 24c-1.5 2.5-8.5 10.5-12 13.9a120.1 120.1 0 0 1-13.7 12.1 52.5 52.5 0 0 1-4.6 3.7l-3.9 2.8c-1 .8-2 1.4-2.2 1.3-.4-.2-.7-120.8-.3-121.6 0-.2 6.4-.3 14.1-.3h14l4.6 1.4",fill:"#cca444","fill-rule":"evenodd"},null,-1),iq=[aq];function sq(e,t){return o.openBlock(),o.createElementBlock("svg",rq,iq)}const jg=M(nq,[["render",sq]]),oq={deckCode:{type:String,required:!0,default:""},deckName:{type:String,required:!0,default:""}},Aq=o.defineComponent({__name:"UploadDeckToLorButton",props:oq,setup(e){const t=e,{t:n}=J(),r=o.computed(()=>Kt().user?n("deck.uploadDeckToLor"):n("deck.signInToUpload")),a=o.ref(null);let i;function s(){Kt().user&&ge().callbacks.uploadDeckToLorCallback(t.deckCode,t.deckName)}return o.onMounted(()=>{i=qe(a.value,{content:r.value,arrow:!0})}),o.watch(r,()=>{i.setContent(r.value)}),(A,l)=>(o.openBlock(),o.createElementBlock("button",{ref_key:"button",ref:a,class:"circle-button",onClick:s},[o.createVNode(jg)],512))}});const Od=M(Aq,[["__scopeId","data-v-b942bc9b"]]),lq={class:"primary-button"},Yg=o.defineComponent({__name:"ShareButton",setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("button",lq,[o.createVNode(o.unref(ke),{icon:"share-nodes"}),o.createElementVNode("span",null,[o.renderSlot(t.$slots,"default")])]))}}),gk={isPrivate:{type:Boolean,required:!1,default:!1},showUploaded:{type:Boolean,required:!1,default:!1},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:void 0},deckName:{type:String,required:!1,default:void 0},deckCode:{type:String,required:!0,default:"CUCACBIKYYAQCBQMAEBAMCI5F4EAMCQLB4IRGFI2D4WACAQGBIIBQAA"},deckId:{type:Number,required:!1,default:void 0},showButtons:{type:Object,required:!1,default:{deleteDeck:!0,updateDeckPrivacy:!0,editDeckName:!0,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0}}},cq={class:"deck-buttons"},uq={key:0,class:"owned-deck-buttons buttons"},dq={class:"normal-buttons buttons"},fq=o.defineComponent({__name:"DeckButtons",props:gk,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>Bt(n.deckCode));return console.log(a),(i,s)=>(o.openBlock(),o.createElementBlock("div",cq,[n.showButtons.deleteDeck||n.showButtons.updateDeckPrivacy||n.showButtons.editDeckName?(o.openBlock(),o.createElementBlock("div",uq,[n.showButtons.deleteDeck?(o.openBlock(),o.createBlock(Vg,{key:0,onClick:s[0]||(s[0]=A=>t("click:delete"))})):o.createCommentVNode("",!0),n.showButtons.updateDeckPrivacy?(o.openBlock(),o.createBlock(Gg,{key:1,"deck-is-private":n.isPrivate,onClick:s[1]||(s[1]=A=>t("click:update-privacy"))},null,8,["deck-is-private"])):o.createCommentVNode("",!0),n.showButtons.editDeckName?(o.openBlock(),o.createBlock(Kg,{key:2,onClick:s[2]||(s[2]=A=>t("click:edit-name"))})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",dq,[n.showButtons.gemsCost?(o.openBlock(),o.createBlock(Rm,{key:0,class:"gems-cost",deck:a.value},null,8,["deck"])):o.createCommentVNode("",!0),n.showButtons.openArchetypePage?(o.openBlock(),o.createBlock($g,{key:1,"router-link":n.archetypeRouterLink},null,8,["router-link"])):o.createCommentVNode("",!0),n.showButtons.simulateMulligan?(o.openBlock(),o.createBlock(Ld,{key:2,deck:a.value},null,8,["deck"])):o.createCommentVNode("",!0),n.showButtons.openInDeckBuilder?(o.openBlock(),o.createBlock(zg,{key:3,"router-link":n.deckBuilderRouterLink},null,8,["router-link"])):o.createCommentVNode("",!0),n.showButtons.copyDeckCode?(o.openBlock(),o.createBlock(Qd,{key:4,"deck-code":n.deckCode},null,8,["deck-code"])):o.createCommentVNode("",!0),n.showButtons.uploadDeckToLor?(o.openBlock(),o.createBlock(Od,{key:5,"deck-code":n.deckCode,"deck-name":n.deckName??o.unref(Yh)(n.deckCode)},null,8,["deck-code","deck-name"])):o.createCommentVNode("",!0),n.showButtons.shareDeck?(o.openBlock(),o.createBlock(Yg,{key:6,class:"share-button",onClick:s[3]||(s[3]=A=>t("click:share"))},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(r)("deck.shareDeck")),1)]),_:1})):o.createCommentVNode("",!0)])]))}});const Ao=M(fq,[["__scopeId","data-v-427da7ee"]]),pq={cards:{type:Array,required:!1},deck:{type:Object,required:!1},deckCode:{type:String,required:!0,default:""},deckName:{type:String,required:!1,default:void 0},isSaving:{type:Boolean,required:!1,default:!1},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},hq={element:{type:Object,required:!0,default:""}};/*!
|
|
870
870
|
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
|
|
871
871
|
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
|
|
872
872
|
* Released under MIT License
|
|
@@ -887,10 +887,10 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
887
887
|
content: "" !important;
|
|
888
888
|
display: none !important;
|
|
889
889
|
}`,tte=function(e){nte(e,"."+Vh+Zee+F2+`
|
|
890
|
-
.`+Kh+ete+F2)},nte=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},p4=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),rte=function(){function e(t,n){this.context=t,this._options=n,this._cache={}}return e.prototype.addImage=function(t){var n=Promise.resolve();return this.has(t)||(ip(t)||ote(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),n},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return sn(this,void 0,void 0,function(){var n,r,a,i,s=this;return Gt(this,function(A){switch(A.label){case 0:return n=p4.isSameOrigin(t),r=!ap(t)&&this._options.useCORS===!0&&Vt.SUPPORT_CORS_IMAGES&&!n,a=!ap(t)&&!n&&!ip(t)&&typeof this._options.proxy=="string"&&Vt.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!ap(t)&&!ip(t)&&!a&&!r?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,c){var u=new Image;u.onload=function(){return l(u)},u.onerror=c,(Ate(i)||r)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return l(u)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,A.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,s){var A=Vt.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(A==="text")i(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(f){return s(f)},!1),d.readAsDataURL(l.response)}else s("Failed to proxy resource "+a+" with status code "+l.status)},l.onerror=s;var c=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+c+"url="+encodeURIComponent(t)+"&responseType="+A),A!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=A),n._options.imageTimeout){var u=n._options.imageTimeout;l.timeout=u,l.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+a)}}l.send()})},e}(),ate=/^data:image\/svg\+xml/i,ite=/^data:image\/.*;base64,/i,ste=/^data:image\/.*/i,ote=function(e){return Vt.SUPPORT_SVG_DRAWING||!lte(e)},ap=function(e){return ste.test(e)},Ate=function(e){return ite.test(e)},ip=function(e){return e.substr(0,4)==="blob"},lte=function(e){return e.substr(-3).toLowerCase()==="svg"||ate.test(e)},q=function(){function e(t,n){this.type=0,this.x=t,this.y=n}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),fs=function(e,t,n){return new q(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Tc=function(){function e(t,n,r,a){this.type=1,this.start=t,this.startControl=n,this.endControl=r,this.end=a}return e.prototype.subdivide=function(t,n){var r=fs(this.start,this.startControl,t),a=fs(this.startControl,this.endControl,t),i=fs(this.endControl,this.end,t),s=fs(r,a,t),A=fs(a,i,t),l=fs(s,A,t);return n?new e(this.start,r,s,l):new e(l,A,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Rn=function(e){return e.type===1},cte=function(){function e(t){var n=t.styles,r=t.bounds,a=Ro(n.borderTopLeftRadius,r.width,r.height),i=a[0],s=a[1],A=Ro(n.borderTopRightRadius,r.width,r.height),l=A[0],c=A[1],u=Ro(n.borderBottomRightRadius,r.width,r.height),d=u[0],f=u[1],p=Ro(n.borderBottomLeftRadius,r.width,r.height),h=p[0],g=p[1],B=[];B.push((i+l)/r.width),B.push((h+d)/r.width),B.push((s+g)/r.height),B.push((c+f)/r.height);var m=Math.max.apply(Math,B);m>1&&(i/=m,s/=m,l/=m,c/=m,d/=m,f/=m,h/=m,g/=m);var v=r.width-l,w=r.height-f,y=r.width-d,b=r.height-g,_=n.borderTopWidth,C=n.borderRightWidth,E=n.borderBottomWidth,S=n.borderLeftWidth,D=Je(n.paddingTop,t.bounds.width),T=Je(n.paddingRight,t.bounds.width),F=Je(n.paddingBottom,t.bounds.width),U=Je(n.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ct(r.left+S/3,r.top+_/3,i-S/3,s-_/3,Ve.TOP_LEFT):new q(r.left+S/3,r.top+_/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ct(r.left+v,r.top+_/3,l-C/3,c-_/3,Ve.TOP_RIGHT):new q(r.left+r.width-C/3,r.top+_/3),this.bottomRightBorderDoubleOuterBox=d>0||f>0?ct(r.left+y,r.top+w,d-C/3,f-E/3,Ve.BOTTOM_RIGHT):new q(r.left+r.width-C/3,r.top+r.height-E/3),this.bottomLeftBorderDoubleOuterBox=h>0||g>0?ct(r.left+S/3,r.top+b,h-S/3,g-E/3,Ve.BOTTOM_LEFT):new q(r.left+S/3,r.top+r.height-E/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ct(r.left+S*2/3,r.top+_*2/3,i-S*2/3,s-_*2/3,Ve.TOP_LEFT):new q(r.left+S*2/3,r.top+_*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ct(r.left+v,r.top+_*2/3,l-C*2/3,c-_*2/3,Ve.TOP_RIGHT):new q(r.left+r.width-C*2/3,r.top+_*2/3),this.bottomRightBorderDoubleInnerBox=d>0||f>0?ct(r.left+y,r.top+w,d-C*2/3,f-E*2/3,Ve.BOTTOM_RIGHT):new q(r.left+r.width-C*2/3,r.top+r.height-E*2/3),this.bottomLeftBorderDoubleInnerBox=h>0||g>0?ct(r.left+S*2/3,r.top+b,h-S*2/3,g-E*2/3,Ve.BOTTOM_LEFT):new q(r.left+S*2/3,r.top+r.height-E*2/3),this.topLeftBorderStroke=i>0||s>0?ct(r.left+S/2,r.top+_/2,i-S/2,s-_/2,Ve.TOP_LEFT):new q(r.left+S/2,r.top+_/2),this.topRightBorderStroke=i>0||s>0?ct(r.left+v,r.top+_/2,l-C/2,c-_/2,Ve.TOP_RIGHT):new q(r.left+r.width-C/2,r.top+_/2),this.bottomRightBorderStroke=d>0||f>0?ct(r.left+y,r.top+w,d-C/2,f-E/2,Ve.BOTTOM_RIGHT):new q(r.left+r.width-C/2,r.top+r.height-E/2),this.bottomLeftBorderStroke=h>0||g>0?ct(r.left+S/2,r.top+b,h-S/2,g-E/2,Ve.BOTTOM_LEFT):new q(r.left+S/2,r.top+r.height-E/2),this.topLeftBorderBox=i>0||s>0?ct(r.left,r.top,i,s,Ve.TOP_LEFT):new q(r.left,r.top),this.topRightBorderBox=l>0||c>0?ct(r.left+v,r.top,l,c,Ve.TOP_RIGHT):new q(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||f>0?ct(r.left+y,r.top+w,d,f,Ve.BOTTOM_RIGHT):new q(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=h>0||g>0?ct(r.left,r.top+b,h,g,Ve.BOTTOM_LEFT):new q(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?ct(r.left+S,r.top+_,Math.max(0,i-S),Math.max(0,s-_),Ve.TOP_LEFT):new q(r.left+S,r.top+_),this.topRightPaddingBox=l>0||c>0?ct(r.left+Math.min(v,r.width-C),r.top+_,v>r.width+C?0:Math.max(0,l-C),Math.max(0,c-_),Ve.TOP_RIGHT):new q(r.left+r.width-C,r.top+_),this.bottomRightPaddingBox=d>0||f>0?ct(r.left+Math.min(y,r.width-S),r.top+Math.min(w,r.height-E),Math.max(0,d-C),Math.max(0,f-E),Ve.BOTTOM_RIGHT):new q(r.left+r.width-C,r.top+r.height-E),this.bottomLeftPaddingBox=h>0||g>0?ct(r.left+S,r.top+Math.min(b,r.height-E),Math.max(0,h-S),Math.max(0,g-E),Ve.BOTTOM_LEFT):new q(r.left+S,r.top+r.height-E),this.topLeftContentBox=i>0||s>0?ct(r.left+S+U,r.top+_+D,Math.max(0,i-(S+U)),Math.max(0,s-(_+D)),Ve.TOP_LEFT):new q(r.left+S+U,r.top+_+D),this.topRightContentBox=l>0||c>0?ct(r.left+Math.min(v,r.width+S+U),r.top+_+D,v>r.width+S+U?0:l-S+U,c-(_+D),Ve.TOP_RIGHT):new q(r.left+r.width-(C+T),r.top+_+D),this.bottomRightContentBox=d>0||f>0?ct(r.left+Math.min(y,r.width-(S+U)),r.top+Math.min(w,r.height+_+D),Math.max(0,d-(C+T)),f-(E+F),Ve.BOTTOM_RIGHT):new q(r.left+r.width-(C+T),r.top+r.height-(E+F)),this.bottomLeftContentBox=h>0||g>0?ct(r.left+S+U,r.top+b,Math.max(0,h-(S+U)),g-(E+F),Ve.BOTTOM_LEFT):new q(r.left+S+U,r.top+r.height-(E+F))}return e}(),Ve;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ve||(Ve={}));var ct=function(e,t,n,r,a){var i=4*((Math.sqrt(2)-1)/3),s=n*i,A=r*i,l=e+n,c=t+r;switch(a){case Ve.TOP_LEFT:return new Tc(new q(e,c),new q(e,c-A),new q(l-s,t),new q(l,t));case Ve.TOP_RIGHT:return new Tc(new q(e,t),new q(e+s,t),new q(l,c-A),new q(l,c));case Ve.BOTTOM_RIGHT:return new Tc(new q(l,t),new q(l,t+A),new q(e+s,c),new q(e,c));case Ve.BOTTOM_LEFT:default:return new Tc(new q(l,c),new q(l-s,c),new q(e,t+A),new q(e,t))}},Pu=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},ute=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Hu=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},dte=function(){function e(t,n,r){this.offsetX=t,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return e}(),Uc=function(){function e(t,n){this.path=t,this.target=n,this.type=1}return e}(),fte=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),pte=function(e){return e.type===0},h4=function(e){return e.type===1},hte=function(e){return e.type===2},I2=function(e,t){return e.length===t.length?e.some(function(n,r){return n===t[r]}):!1},mte=function(e,t,n,r,a){return e.map(function(i,s){switch(s){case 0:return i.add(t,n);case 1:return i.add(t+r,n);case 2:return i.add(t+r,n+a);case 3:return i.add(t,n+a)}return i})},m4=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),g4=function(){function e(t,n){if(this.container=t,this.parent=n,this.effects=[],this.curves=new cte(this.container),this.container.styles.opacity<1&&this.effects.push(new fte(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new dte(r,a,i))}if(this.container.styles.overflowX!==0){var s=Pu(this.curves),A=Hu(this.curves);I2(s,A)?this.effects.push(new Uc(s,6)):(this.effects.push(new Uc(s,2)),this.effects.push(new Uc(A,4)))}}return e.prototype.getEffects=function(t){for(var n=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,a=this.effects.slice(0);r;){var i=r.effects.filter(function(l){return!h4(l)});if(n||r.container.styles.position!==0||!r.parent){if(a.unshift.apply(a,i),n=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Pu(r.curves),A=Hu(r.curves);I2(s,A)||a.unshift(new Uc(A,6))}}else a.unshift.apply(a,i);r=r.parent}return a.filter(function(l){return Ut(l.target,t)})},e}(),$h=function(e,t,n,r){e.container.elements.forEach(function(a){var i=Ut(a.flags,4),s=Ut(a.flags,2),A=new g4(a,e);Ut(a.styles.display,2048)&&r.push(A);var l=Ut(a.flags,8)?[]:r;if(i||s){var c=i||a.styles.isPositioned()?n:t,u=new m4(A);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var d=a.styles.zIndex.order;if(d<0){var f=0;c.negativeZIndex.some(function(h,g){return d>h.element.container.styles.zIndex.order?(f=g,!1):f>0}),c.negativeZIndex.splice(f,0,u)}else if(d>0){var p=0;c.positiveZIndex.some(function(h,g){return d>=h.element.container.styles.zIndex.order?(p=g+1,!1):p>0}),c.positiveZIndex.splice(p,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);$h(A,u,i?u:n,l)}else a.styles.isInlineLevel()?t.inlineLevel.push(A):t.nonInlineLevel.push(A),$h(A,t,n,l);Ut(a.flags,8)&&v4(a,l)})},v4=function(e,t){for(var n=e instanceof Ph?e.start:1,r=e instanceof Ph?e.reversed:!1,a=0;a<t.length;a++){var i=t[a];i.container instanceof t4&&typeof i.container.value=="number"&&i.container.value!==0&&(n=i.container.value),i.listValue=zA(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},gte=function(e){var t=new g4(e,null),n=new m4(t),r=[];return $h(t,n,n,r),v4(t.container,r),n},T2=function(e,t){switch(t){case 0:return Kn(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Kn(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Kn(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Kn(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},vte=function(e,t){switch(t){case 0:return Kn(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Kn(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Kn(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Kn(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},yte=function(e,t){switch(t){case 0:return Kn(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Kn(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Kn(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Kn(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Bte=function(e,t){switch(t){case 0:return Dc(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Dc(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Dc(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Dc(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Dc=function(e,t){var n=[];return Rn(e)?n.push(e.subdivide(.5,!1)):n.push(e),Rn(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Kn=function(e,t,n,r){var a=[];return Rn(e)?a.push(e.subdivide(.5,!1)):a.push(e),Rn(n)?a.push(n.subdivide(.5,!0)):a.push(n),Rn(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),Rn(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},y4=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Ru=function(e){var t=e.styles,n=e.bounds,r=Je(t.paddingLeft,n.width),a=Je(t.paddingRight,n.width),i=Je(t.paddingTop,n.width),s=Je(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+a),-(t.borderTopWidth+t.borderBottomWidth+i+s))},wte=function(e,t){return e===0?t.bounds:e===2?Ru(t):y4(t)},bte=function(e,t){return e===0?t.bounds:e===2?Ru(t):y4(t)},sp=function(e,t,n){var r=wte(vs(e.styles.backgroundOrigin,t),e),a=bte(vs(e.styles.backgroundClip,t),e),i=_te(vs(e.styles.backgroundSize,t),n,r),s=i[0],A=i[1],l=Ro(vs(e.styles.backgroundPosition,t),r.width-s,r.height-A),c=Cte(vs(e.styles.backgroundRepeat,t),l,i,r,a),u=Math.round(r.left+l[0]),d=Math.round(r.top+l[1]);return[c,u,d,s,A]},ps=function(e){return We(e)&&e.value===Ts.AUTO},Qc=function(e){return typeof e=="number"},_te=function(e,t,n){var r=t[0],a=t[1],i=t[2],s=e[0],A=e[1];if(!s)return[0,0];if(St(s)&&A&&St(A))return[Je(s,n.width),Je(A,n.height)];var l=Qc(i);if(We(s)&&(s.value===Ts.CONTAIN||s.value===Ts.COVER)){if(Qc(i)){var c=n.width/n.height;return c<i!=(s.value===Ts.COVER)?[n.width,n.width/i]:[n.height*i,n.height]}return[n.width,n.height]}var u=Qc(r),d=Qc(a),f=u||d;if(ps(s)&&(!A||ps(A))){if(u&&d)return[r,a];if(!l&&!f)return[n.width,n.height];if(f&&l){var p=u?r:a*i,h=d?a:r/i;return[p,h]}var g=u?r:n.width,B=d?a:n.height;return[g,B]}if(l){var m=0,v=0;return St(s)?m=Je(s,n.width):St(A)&&(v=Je(A,n.height)),ps(s)?m=v*i:(!A||ps(A))&&(v=m/i),[m,v]}var w=null,y=null;if(St(s)?w=Je(s,n.width):A&&St(A)&&(y=Je(A,n.height)),w!==null&&(!A||ps(A))&&(y=u&&d?w/r*a:n.height),y!==null&&ps(s)&&(w=u&&d?y/a*r:n.width),w!==null&&y!==null)return[w,y];throw new Error("Unable to calculate background-size for element")},vs=function(e,t){var n=e[t];return typeof n>"u"?e[0]:n},Cte=function(e,t,n,r,a){var i=t[0],s=t[1],A=n[0],l=n[1];switch(e){case 2:return[new q(Math.round(r.left),Math.round(r.top+s)),new q(Math.round(r.left+r.width),Math.round(r.top+s)),new q(Math.round(r.left+r.width),Math.round(l+r.top+s)),new q(Math.round(r.left),Math.round(l+r.top+s))];case 3:return[new q(Math.round(r.left+i),Math.round(r.top)),new q(Math.round(r.left+i+A),Math.round(r.top)),new q(Math.round(r.left+i+A),Math.round(r.height+r.top)),new q(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new q(Math.round(r.left+i),Math.round(r.top+s)),new q(Math.round(r.left+i+A),Math.round(r.top+s)),new q(Math.round(r.left+i+A),Math.round(r.top+s+l)),new q(Math.round(r.left+i),Math.round(r.top+s+l))];default:return[new q(Math.round(a.left),Math.round(a.top)),new q(Math.round(a.left+a.width),Math.round(a.top)),new q(Math.round(a.left+a.width),Math.round(a.height+a.top)),new q(Math.round(a.left),Math.round(a.height+a.top))]}},kte="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",U2="Hidden Text",Ete=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,n){var r=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),a.src=kte,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=n,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(U2)),r.appendChild(i),r.appendChild(a);var A=a.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(U2)),r.style.lineHeight="normal",a.style.verticalAlign="super";var l=a.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:A,middle:l}},e.prototype.getMetrics=function(t,n){var r=t+" "+n;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,n)),this._data[r]},e}(),B4=function(){function e(t,n){this.context=t,this.options=n}return e}(),Ste=1e4,xte=function(e){or(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a._activeEffects=[],a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),r.canvas||(a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px"),a.fontMetrics=new Ete(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),a}return t.prototype.applyEffects=function(n){for(var r=this;this._activeEffects.length;)this.popEffect();n.forEach(function(a){return r.applyEffect(a)})},t.prototype.applyEffect=function(n){this.ctx.save(),hte(n)&&(this.ctx.globalAlpha=n.opacity),pte(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),h4(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(n){return sn(this,void 0,void 0,function(){var r;return Gt(this,function(a){switch(a.label){case 0:return r=n.element.container.styles,r.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(n){return sn(this,void 0,void 0,function(){return Gt(this,function(r){switch(r.label){case 0:if(Ut(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(n)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(n,r,a){var i=this;if(r===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+a);else{var s=e1(n.text);s.reduce(function(A,l){return i.ctx.fillText(l,A,n.bounds.top+a),A+i.ctx.measureText(l).width},n.bounds.left)}},t.prototype.createFontStyle=function(n){var r=n.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),a=Dte(n.fontFamily).join(", "),i=kl(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,r,n.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(n,r){return sn(this,void 0,void 0,function(){var a,i,s,A,l,c,u,d,f=this;return Gt(this,function(p){return a=this.createFontStyle(r),i=a[0],s=a[1],A=a[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,A),c=l.baseline,u=l.middle,d=r.paintOrder,n.textBounds.forEach(function(h){d.forEach(function(g){switch(g){case 0:f.ctx.fillStyle=Mt(r.color),f.renderTextWithLetterSpacing(h,r.letterSpacing,c);var B=r.textShadow;B.length&&h.text.trim().length&&(B.slice(0).reverse().forEach(function(m){f.ctx.shadowColor=Mt(m.color),f.ctx.shadowOffsetX=m.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=m.offsetY.number*f.options.scale,f.ctx.shadowBlur=m.blur.number,f.renderTextWithLetterSpacing(h,r.letterSpacing,c)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=Mt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(m){switch(m){case 1:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top+c),h.bounds.width,1);break;case 2:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top),h.bounds.width,1);break;case 3:f.ctx.fillRect(h.bounds.left,Math.ceil(h.bounds.top+u),h.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&h.text.trim().length&&(f.ctx.strokeStyle=Mt(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(h.text,h.bounds.left,h.bounds.top+c)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(n,r,a){if(a&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var i=Ru(n),s=Hu(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,n.intrinsicWidth,n.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(n){return sn(this,void 0,void 0,function(){var r,a,i,s,A,l,v,v,c,u,d,f,y,p,h,b,g,B,m,v,w,y,b;return Gt(this,function(_){switch(_.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,a=n.curves,i=r.styles,s=0,A=r.textNodes,_.label=1;case 1:return s<A.length?(l=A[s],[4,this.renderTextNode(l,i)]):[3,4];case 2:_.sent(),_.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof Jk))return[3,8];_.label=5;case 5:return _.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=_.sent(),this.renderReplacedElement(r,a,v),[3,8];case 7:return _.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Zk&&this.renderReplacedElement(r,a,r.canvas),!(r instanceof e4))return[3,12];_.label=9;case 9:return _.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=_.sent(),this.renderReplacedElement(r,a,v),[3,12];case 11:return _.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof a4&&r.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:u=_.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),_.label=14;case 14:if(r instanceof t1&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===Lu?r.checked&&(this.ctx.save(),this.path([new q(r.bounds.left+d*.39363,r.bounds.top+d*.79),new q(r.bounds.left+d*.16,r.bounds.top+d*.5549),new q(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new q(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new q(r.bounds.left+d*.72983,r.bounds.top+d*.23),new q(r.bounds.left+d*.84,r.bounds.top+d*.34085),new q(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=Mt(y2),this.ctx.fill(),this.ctx.restore()):r.type===Ou&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=Mt(y2),this.ctx.fill(),this.ctx.restore())),Fte(r)&&r.value.length){switch(f=this.createFontStyle(i),y=f[0],p=f[1],h=this.fontMetrics.getMetrics(y,p).baseline,this.ctx.font=y,this.ctx.fillStyle=Mt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Tte(r.styles.textAlign),b=Ru(r),g=0,r.styles.textAlign){case 1:g+=b.width/2;break;case 2:g+=b.width;break}B=b.add(g,0,0,-b.height/2+1),this.ctx.save(),this.path([new q(b.left,b.top),new q(b.left+b.width,b.top),new q(b.left+b.width,b.top+b.height),new q(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new fA(r.value,B),i.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ut(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(m=r.styles.listStyleImage,m.type!==0)return[3,18];v=void 0,w=m.url,_.label=15;case 15:return _.trys.push([15,17,,18]),[4,this.context.cache.match(w)];case 16:return v=_.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return _.sent(),this.context.logger.error("Error loading list-style-image "+w),[3,18];case 18:return[3,20];case 19:n.listValue&&r.styles.listStyleType!==-1&&(y=this.createFontStyle(i)[0],this.ctx.font=y,this.ctx.fillStyle=Mt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new Aa(r.bounds.left,r.bounds.top+Je(r.styles.paddingTop,r.bounds.width),r.bounds.width,n2(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new fA(n.listValue,b),i.letterSpacing,n2(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),_.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(n){return sn(this,void 0,void 0,function(){var r,a,m,i,s,m,A,l,m,c,u,m,d,f,m,p,h,m,g,B,m;return Gt(this,function(v){switch(v.label){case 0:if(Ut(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:v.sent(),r=0,a=n.negativeZIndex,v.label=2;case 2:return r<a.length?(m=a[r],[4,this.renderStack(m)]):[3,5];case 3:v.sent(),v.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:v.sent(),i=0,s=n.nonInlineLevel,v.label=7;case 7:return i<s.length?(m=s[i],[4,this.renderNode(m)]):[3,10];case 8:v.sent(),v.label=9;case 9:return i++,[3,7];case 10:A=0,l=n.nonPositionedFloats,v.label=11;case 11:return A<l.length?(m=l[A],[4,this.renderStack(m)]):[3,14];case 12:v.sent(),v.label=13;case 13:return A++,[3,11];case 14:c=0,u=n.nonPositionedInlineLevel,v.label=15;case 15:return c<u.length?(m=u[c],[4,this.renderStack(m)]):[3,18];case 16:v.sent(),v.label=17;case 17:return c++,[3,15];case 18:d=0,f=n.inlineLevel,v.label=19;case 19:return d<f.length?(m=f[d],[4,this.renderNode(m)]):[3,22];case 20:v.sent(),v.label=21;case 21:return d++,[3,19];case 22:p=0,h=n.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return p<h.length?(m=h[p],[4,this.renderStack(m)]):[3,26];case 24:v.sent(),v.label=25;case 25:return p++,[3,23];case 26:g=0,B=n.positiveZIndex,v.label=27;case 27:return g<B.length?(m=B[g],[4,this.renderStack(m)]):[3,30];case 28:v.sent(),v.label=29;case 29:return g++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},t.prototype.formatPath=function(n){var r=this;n.forEach(function(a,i){var s=Rn(a)?a.start:a;i===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Rn(a)&&r.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},t.prototype.renderRepeat=function(n,r,a,i){this.path(n),this.ctx.fillStyle=r,this.ctx.translate(a,i),this.ctx.fill(),this.ctx.translate(-a,-i)},t.prototype.resizeImage=function(n,r,a){var i;if(n.width===r&&n.height===a)return n;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,A=s.createElement("canvas");A.width=Math.max(1,r),A.height=Math.max(1,a);var l=A.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,r,a),A},t.prototype.renderBackgroundImage=function(n){return sn(this,void 0,void 0,function(){var r,a,i,s,A,l;return Gt(this,function(c){switch(c.label){case 0:r=n.styles.backgroundImage.length-1,a=function(u){var d,f,p,D,j,K,U,Y,E,h,D,j,K,U,Y,g,B,m,v,w,y,b,_,C,E,S,D,T,F,U,Y,X,j,K,Ae,$,ie,ce,Be,xe,fe,re;return Gt(this,function(N){switch(N.label){case 0:if(u.type!==0)return[3,5];d=void 0,f=u.url,N.label=1;case 1:return N.trys.push([1,3,,4]),[4,i.context.cache.match(f)];case 2:return d=N.sent(),[3,4];case 3:return N.sent(),i.context.logger.error("Error loading background-image "+f),[3,4];case 4:return d&&(p=sp(n,r,[d.width,d.height,d.width/d.height]),D=p[0],j=p[1],K=p[2],U=p[3],Y=p[4],E=i.ctx.createPattern(i.resizeImage(d,U,Y),"repeat"),i.renderRepeat(D,E,j,K)),[3,6];case 5:pJ(u)?(h=sp(n,r,[null,null,null]),D=h[0],j=h[1],K=h[2],U=h[3],Y=h[4],g=lJ(u.angle,U,Y),B=g[0],m=g[1],v=g[2],w=g[3],y=g[4],b=document.createElement("canvas"),b.width=U,b.height=Y,_=b.getContext("2d"),C=_.createLinearGradient(m,w,v,y),e2(u.stops,B).forEach(function(ne){return C.addColorStop(ne.stop,Mt(ne.color))}),_.fillStyle=C,_.fillRect(0,0,U,Y),U>0&&Y>0&&(E=i.ctx.createPattern(b,"repeat"),i.renderRepeat(D,E,j,K))):hJ(u)&&(S=sp(n,r,[null,null,null]),D=S[0],T=S[1],F=S[2],U=S[3],Y=S[4],X=u.position.length===0?[Xg]:u.position,j=Je(X[0],U),K=Je(X[X.length-1],Y),Ae=cJ(u,j,K,U,Y),$=Ae[0],ie=Ae[1],$>0&&ie>0&&(ce=i.ctx.createRadialGradient(T+j,F+K,0,T+j,F+K,$),e2(u.stops,$*2).forEach(function(ne){return ce.addColorStop(ne.stop,Mt(ne.color))}),i.path(D),i.ctx.fillStyle=ce,$!==ie?(Be=n.bounds.left+.5*n.bounds.width,xe=n.bounds.top+.5*n.bounds.height,fe=ie/$,re=1/fe,i.ctx.save(),i.ctx.translate(Be,xe),i.ctx.transform(1,0,0,fe,0,0),i.ctx.translate(-Be,-xe),i.ctx.fillRect(T,re*(F-xe)+xe,U,Y*re),i.ctx.restore()):i.ctx.fill())),N.label=6;case 6:return r--,[2]}})},i=this,s=0,A=n.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<A.length?(l=A[s],[5,a(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(n,r,a){return sn(this,void 0,void 0,function(){return Gt(this,function(i){return this.path(T2(a,r)),this.ctx.fillStyle=Mt(n),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(n,r,a,i){return sn(this,void 0,void 0,function(){var s,A;return Gt(this,function(l){switch(l.label){case 0:return r<3?[4,this.renderSolidBorder(n,a,i)]:[3,2];case 1:return l.sent(),[2];case 2:return s=vte(i,a),this.path(s),this.ctx.fillStyle=Mt(n),this.ctx.fill(),A=yte(i,a),this.path(A),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(n){return sn(this,void 0,void 0,function(){var r,a,i,s,A,l,c,u,d=this;return Gt(this,function(f){switch(f.label){case 0:return this.applyEffects(n.getEffects(2)),r=n.container.styles,a=!za(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=Ite(vs(r.backgroundClip,0),n.curves),a||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),za(r.backgroundColor)||(this.ctx.fillStyle=Mt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(p){d.ctx.save();var h=Pu(n.curves),g=p.inset?0:Ste,B=mte(h,-g+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(d.path(h),d.ctx.clip(),d.mask(B)):(d.mask(h),d.ctx.clip(),d.path(B)),d.ctx.shadowOffsetX=p.offsetX.number+g,d.ctx.shadowOffsetY=p.offsetY.number,d.ctx.shadowColor=Mt(p.color),d.ctx.shadowBlur=p.blur.number,d.ctx.fillStyle=p.inset?Mt(p.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),f.label=2;case 2:A=0,l=0,c=i,f.label=3;case 3:return l<c.length?(u=c[l],u.style!==0&&!za(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,A,n.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,A,n.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,A,n.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,A,n.curves)];case 10:f.sent(),f.label=11;case 11:A++,f.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(n,r,a,i,s){return sn(this,void 0,void 0,function(){var A,l,c,u,d,f,p,h,g,B,m,v,w,y,b,_,b,_;return Gt(this,function(C){return this.ctx.save(),A=Bte(i,a),l=T2(i,a),s===2&&(this.path(l),this.ctx.clip()),Rn(l[0])?(c=l[0].start.x,u=l[0].start.y):(c=l[0].x,u=l[0].y),Rn(l[1])?(d=l[1].end.x,f=l[1].end.y):(d=l[1].x,f=l[1].y),a===0||a===2?p=Math.abs(c-d):p=Math.abs(u-f),this.ctx.beginPath(),s===3?this.formatPath(A):this.formatPath(l.slice(0,2)),h=r<3?r*3:r*2,g=r<3?r*2:r,s===3&&(h=r,g=r),B=!0,p<=h*2?B=!1:p<=h*2+g?(m=p/(2*h+g),h*=m,g*=m):(v=Math.floor((p+g)/(h+g)),w=(p-v*h)/(v-1),y=(p-(v+1)*h)/v,g=y<=0||Math.abs(g-w)<Math.abs(g-y)?w:y),B&&(s===3?this.ctx.setLineDash([0,h+g]):this.ctx.setLineDash([h,g])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Mt(n),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Rn(l[0])&&(b=l[3],_=l[0],this.ctx.beginPath(),this.formatPath([new q(b.end.x,b.end.y),new q(_.start.x,_.start.y)]),this.ctx.stroke()),Rn(l[1])&&(b=l[1],_=l[2],this.ctx.beginPath(),this.formatPath([new q(b.end.x,b.end.y),new q(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(n){return sn(this,void 0,void 0,function(){var r;return Gt(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Mt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=gte(n),[4,this.renderStack(r)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(B4),Fte=function(e){return e instanceof r4||e instanceof n4?!0:e instanceof t1&&e.type!==Ou&&e.type!==Lu},Ite=function(e,t){switch(e){case 0:return Pu(t);case 2:return ute(t);case 1:default:return Hu(t)}},Tte=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ute=["-apple-system","system-ui"],Dte=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return Ute.indexOf(t)===-1}):e},Qte=function(e){or(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=r,a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),a}return t.prototype.render=function(n){return sn(this,void 0,void 0,function(){var r,a;return Gt(this,function(i){switch(i.label){case 0:return r=Nh(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Lte(r)];case 1:return a=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Mt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(B4),Lte=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Ote=function(){function e(t){var n=t.id,r=t.enabled;this.id=n,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,dc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,dc([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,dc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,dc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),Mte=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Ote({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new rte(this,t)}return e.instanceCount=1,e}(),Nte=function(e,t){return t===void 0&&(t={}),Pte(e,t)};typeof window<"u"&&p4.setContext(window);var Pte=function(e,t){return sn(void 0,void 0,void 0,function(){var n,r,a,i,s,A,l,c,u,d,f,p,h,g,B,m,v,w,y,b,C,_,C,E,S,D,T,F,U,Y,X,j,K,Ae,$,ie,ce,Be,xe,fe;return Gt(this,function(re){switch(re.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=e.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(r=n.defaultView,!r)throw new Error("Document is not attached to a Window");return a={allowTaint:(E=t.allowTaint)!==null&&E!==void 0?E:!1,imageTimeout:(S=t.imageTimeout)!==null&&S!==void 0?S:15e3,proxy:t.proxy,useCORS:(D=t.useCORS)!==null&&D!==void 0?D:!1},i=_h({logging:(T=t.logging)!==null&&T!==void 0?T:!0,cache:t.cache},a),s={windowWidth:(F=t.windowWidth)!==null&&F!==void 0?F:r.innerWidth,windowHeight:(U=t.windowHeight)!==null&&U!==void 0?U:r.innerHeight,scrollX:(Y=t.scrollX)!==null&&Y!==void 0?Y:r.pageXOffset,scrollY:(X=t.scrollY)!==null&&X!==void 0?X:r.pageYOffset},A=new Aa(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new Mte(i,A),c=(j=t.foreignObjectRendering)!==null&&j!==void 0?j:!1,u={allowTaint:(K=t.allowTaint)!==null&&K!==void 0?K:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+A.width+"x"+A.height+" scrolled to "+-A.left+","+-A.top),d=new x2(l,e,u),f=d.clonedReferenceElement,f?[4,d.toIFrame(n,A)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=re.sent(),h=n1(f)||Hee(f)?mq(f.ownerDocument):Md(l,f),g=h.width,B=h.height,m=h.left,v=h.top,w=Hte(l,f,t.backgroundColor),y={canvas:t.canvas,backgroundColor:w,scale:($=(Ae=t.scale)!==null&&Ae!==void 0?Ae:r.devicePixelRatio)!==null&&$!==void 0?$:1,x:((ie=t.x)!==null&&ie!==void 0?ie:0)+m,y:((ce=t.y)!==null&&ce!==void 0?ce:0)+v,width:(Be=t.width)!==null&&Be!==void 0?Be:Math.ceil(g),height:(xe=t.height)!==null&&xe!==void 0?xe:Math.ceil(B)},c?(l.logger.debug("Document cloned, using foreign object rendering"),C=new Qte(l,y),[4,C.render(f)]):[3,3];case 2:return b=re.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+m+","+v+" with size "+g+"x"+B+" using computed rendering"),l.logger.debug("Starting DOM parsing"),_=s4(l,f),w===_.styles.backgroundColor&&(_.styles.backgroundColor=ta.TRANSPARENT),l.logger.debug("Starting renderer for element at "+y.x+","+y.y+" with size "+y.width+"x"+y.height),C=new xte(l,y),[4,C.render(_)];case 4:b=re.sent(),re.label=5;case 5:return(!((fe=t.removeContainer)!==null&&fe!==void 0)||fe)&&(x2.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,b]}})})},Hte=function(e,t,n){var r=t.ownerDocument,a=r.documentElement?uA(e,getComputedStyle(r.documentElement).backgroundColor):ta.TRANSPARENT,i=r.body?uA(e,getComputedStyle(r.body).backgroundColor):ta.TRANSPARENT,s=typeof n=="string"?uA(e,n):n===null?ta.TRANSPARENT:4294967295;return t===r.documentElement?za(a)?za(i)?s:i:a:s};const Rte=o.defineComponent({__name:"CaptureButton",props:hq,setup(e){const t=e,{t:n}=J(),r=o.ref(null);o.onMounted(()=>{qe(r.value,{content:n("general.captureImage"),arrow:!0})});function a(){console.log(t.element.tagName),Nte(t.element,{imageTimeout:1e4,allowTaint:!0,foreignObjectRendering:!0}).then(l=>{console.log(l),i(l.toDataURL(),"file-name.png")})}function i(l,c){const u=document.createElement("a");typeof u.download!="string"?window.open(l):(u.href=l,u.download=c,A(s,u))}function s(l){l.click()}function A(l,c){document.body.appendChild(c),l(c),document.body.removeChild(c)}return(l,c)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:a},[o.createVNode(o.unref(ke),{icon:"camera"})],512)]))}});const Vte=M(Rte,[["__scopeId","data-v-4b809ad3"]]),Kte={class:"top"},$te={class:"top-left"},zte={key:1,class:"buttons"},Wte={class:"buttons no-scrollbar"},Gte=o.defineComponent({__name:"DeckPreview",props:pq,emits:["click:share","click:edit-name","click:update-privacy","click:delete","click:save"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(),i=o.ref(n.deckName??Yh(n.deckCode)),s=o.ref(!1),A=o.computed(()=>n.deck?n.deck:Bt(n.deckCode)),l=o.computed(()=>n.cards?n.cards:Zt(A.value)),c=o.computed(()=>{var f;const d=(f=na(l.value,A.value,1)[0])==null?void 0:f.cardCode;return{"--deck-summary-background":`url(${ye().callbacks.cardImageCallback(d??"",gt.Full)})`}});function u(){console.log(n.deckCode),t("click:save",{deckName:i.value,deckCode:n.deckCode,isPrivate:s.value})}return(d,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-preview no-scrollbar",n.isSaving?"saving":""])},[o.createElementVNode("div",Kte,[o.createElementVNode("div",$te,[n.isSaving?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,class:"deck-name","onUpdate:modelValue":f[0]||(f[0]=p=>i.value=p)},null,512)),[[o.vModelText,i.value]]):(o.openBlock(),o.createElementBlock("div",zte,[o.createVNode(Vte,{element:a.value},null,8,["element"])]))]),o.createElementVNode("div",Wte,[o.createVNode(Ao,o.mergeProps(n.deckButtonsProps,{class:"desktop deck-buttons","onClick:updatePrivacy":f[1]||(f[1]=p=>t("click:update-privacy")),"onClick:editName":f[2]||(f[2]=p=>t("click:edit-name")),"onClick:delete":f[3]||(f[3]=p=>t("click:delete")),"onClick:share":f[4]||(f[4]=p=>t("click:share"))}),null,16),o.createVNode(o.unref(I1),o.mergeProps(n.deckButtonsProps,{class:"mobile dropdown","onClick:updatePrivacy":f[5]||(f[5]=p=>t("click:update-privacy")),"onClick:editName":f[6]||(f[6]=p=>t("click:edit-name")),"onClick:delete":f[7]||(f[7]=p=>t("click:delete")),"onClick:share":f[8]||(f[8]=p=>t("click:share"))}),null,16),n.isSaving?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fancy-button",onClick:u},o.toDisplayString(o.unref(r)("general.save")),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:"deck-summary-wrapper",style:o.normalizeStyle(c.value),ref_key:"deckSummary",ref:a},[o.createVNode(Dd,{deck:A.value},null,8,["deck"])],4)],2))}});const Gd=M(Gte,[["__scopeId","data-v-5716c6cc"]]),jte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},Yte={class:"deck-highlight-eye"},qte=o.defineComponent({__name:"DeckHighlightEye",props:jte,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.ref(!1),i=o.ref(!1),s=o.computed(()=>t.deck?t.deck:Bt(t.deckCode)),A=o.computed(()=>t.cards?t.cards:Zt(s.value));o.onMounted(()=>{var c;qe((c=r.value)==null?void 0:c.$el,{content:n.value,arrow:!0,duration:0,maxWidth:"90vw",touch:!1,onShow(){a.value=!0},onCreate(u){A.value.length<1||u.popper.style.setProperty("--tippy-background",`url(${ye().callbacks.cardImageCallback(na(A.value,s.value,1)[0].cardCode??"",gt.Full)})`)}})});function l(){i.value=!0}return(c,u)=>(o.openBlock(),o.createElementBlock("div",Yte,[o.createVNode(o.unref(ke),{ref_key:"eyeIcon",ref:r,icon:"eye",class:"icon",onClick:l},null,512),o.createElementVNode("div",{ref_key:"deckSummary",ref:n,class:"deck-summary-wrapper"},[a.value?(o.openBlock(),o.createBlock(Dd,{key:0,class:"deck-summary",deck:s.value,"cards-prop":A.value},null,8,["deck","cards-prop"])):o.createCommentVNode("",!0)],512),o.createVNode(si,{"show-modal":i.value,"onUpdate:showModal":u[0]||(u[0]=d=>i.value=d)},{default:o.withCtx(()=>[o.createVNode(Gd,{cards:A.value,deck:s.value,"deck-code":t.deckCode,"deck-buttons-props":t.deckButtonsProps},null,8,["cards","deck","deck-code","deck-buttons-props"])]),_:1},8,["show-modal"])]))}});const jd=M(qte,[["__scopeId","data-v-a655bad6"]]),Xte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},showEye:{type:Boolean,required:!1,default:!0},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},Jte=o.defineComponent({__name:"DeckHighlight",props:Xte,setup(e){const t=e,n=o.computed(()=>t.deck?t.deck:Bt(t.deckCode)),r=o.computed(()=>t.cards?t.cards:Zt(n.value)),a=o.computed(()=>WA(r.value)),i=o.computed(()=>r.value.filter(s=>Ls(s)));return(s,A)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-highlight",t.showEye?"":"hide-eye"])},[o.createVNode(il,{class:"deck-highlight-regions",regions:a.value},null,8,["regions"]),o.createVNode(sl,{class:"deck-highlight-cards",cards:i.value,regions:a.value},null,8,["cards","regions"]),o.createVNode(jd,{class:"deck-highlight-eye",cards:r.value,deck:n.value,"deck-code":t.deckCode,"deck-buttons-props":t.deckButtonsProps},null,8,["cards","deck","deck-code","deck-buttons-props"])],2))}});const la=M(Jte,[["__scopeId","data-v-7d2e0511"]]),Zte={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}}},w4=o.defineComponent({__name:"ArchetypeSidePanel",props:Zte,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);o.watch(r,()=>{t("update:filters",r)});const a=o.computed(()=>{var s;return(s=ge().dataJson.formats[r.formatFilters[0]??"Standard"])==null?void 0:s.availableQueues});function i(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,A)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":i},{default:o.withCtx(()=>[o.createVNode(id,{"card-codes":n.cardCodes,regions:n.regions},null,8,["card-codes","regions"]),o.createVNode(eo,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":A[0]||(A[0]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),o.createVNode(Wi,{"filter-array":r.timeFilters,"onUpdate:filterArray":A[1]||(A[1]=l=>r.timeFilters=l)},null,8,["filter-array"]),o.createVNode(to,{"filter-array":r.serverFilters,"onUpdate:filterArray":A[2]||(A[2]=l=>r.serverFilters=l)},null,8,["filter-array"]),o.createVNode(nl,{"filter-array":r.formatFilters,"onUpdate:filterArray":A[3]||(A[3]=l=>r.formatFilters=l)},null,8,["filter-array"]),o.createVNode(rl,{"filter-array":r.queueFilters,"onUpdate:filterArray":A[4]||(A[4]=l=>r.queueFilters=l),"available-queues":a.value},null,8,["filter-array","available-queues"])]),_:1},8,["filter-object"]))}}),ene={routerLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:"404"},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},type:{type:String,required:!0,default:"data"},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!1,default:1},wins:{type:Number,required:!1,default:1},comparedDeckCode:{type:String,required:!1,default:""},isPrivate:{type:Boolean,required:!1,default:!1},id:{type:Number,required:!1,default:1},name:{type:String,required:!1,default:""},updatedAt:{type:Number,required:!1,default:1},createdAt:{type:Number,required:!1,default:1}},tne={...Ib,difference:{type:Number,required:!0,default:1}},nne={class:"deck-difference-item"},rne=o.defineComponent({__name:"DeckDifferenceItem",props:tne,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",nne,[o.createVNode(fa,{"card-code-prop":t.cardCodeProp,"card-prop":t.cardProp,regions:t.regions,"ignore-card-item":t.ignoreCardItem,"router-link":t.routerLink},null,8,["card-code-prop","card-prop","regions","ignore-card-item","router-link"]),o.createElementVNode("div",{class:o.normalizeClass(["difference",t.difference>0?"positive":"negative"])},o.toDisplayString(`${t.difference>0?"+":""}${t.difference}`),3)]))}});const r1=M(rne,[["__scopeId","data-v-cdadc542"]]),ane={differences:{type:Array,required:!0,default:[]}},ine={class:"deck-differences no-scrollbar"},sne=o.defineComponent({__name:"DeckDifferences",props:ane,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",ine,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.differences,a=>(o.openBlock(),o.createBlock(r1,{key:a.cardCodeProp,"card-code-prop":a.cardCodeProp,"card-prop":a.cardProp,difference:a.difference,"ignore-card-item":a.ignoreCardItem,regions:a.regions,"router-link":a.routerLink},null,8,["card-code-prop","card-prop","difference","ignore-card-item","regions","router-link"]))),128))]))}});const a1=M(sne,[["__scopeId","data-v-e4cddaa9"]]),one=e=>(o.pushScopeId("data-v-c6070031"),e=e(),o.popScopeId(),e),Ane={class:"table-card-row-background-wrapper"},lne={class:"table-card-row-background"},cne=one(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),une=[cne],dne={class:"decks-row wrapper"},fne={class:"column-content"},pne={class:"column-content"},hne={class:"column-content"},mne={class:"column-content"},gne={key:2,class:"column-content"},vne={class:"column-content cost"},yne={key:3,class:"column-content deck-differences-column"},Bne=o.defineComponent({__name:"DecksRow",props:ene,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,r=o.inject(ri),a=o.ref(!1),i=o.computed(()=>Bt(n.deckCode)),s=o.computed(()=>Zt(i.value)),A=o.computed(()=>na(s.value,i.value,2).map(u=>ye().callbacks.cardImageCallback(u.cardCode,gt.Banner))),l=o.computed(()=>({showButtons:{deleteDeck:n.type==="built"?n.showOwnerButtons:!1,updateDeckPrivacy:n.type==="built"?n.showOwnerButtons:!1,editDeckName:n.type==="built"?n.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:n.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:n.deckCode,deckBuilderRouterLink:n.deckBuilderRouterLink,archetypeRouterLink:n.type==="built"?void 0:n.archetypeRouterLink,deckId:n.type==="built"?n.id:void 0,deckName:n.type==="built"?n.name:void 0,isPrivate:n.type==="built"?n.isPrivate:void 0})),c=o.computed(()=>{const u=[];if(n.type!=="similar")return u;const d=Bt(n.comparedDeckCode);for(const[f,p]of Object.entries(i.value))p!==d[f]&&u.push({cardCodeProp:f,difference:p-(d[f]??0),ignoreCardItem:!1,routerLink:ye().callbacks.cardCodeRouterLinkCallback(f)});for(const[f,p]of Object.entries(d))p===i.value[f]||u.some(h=>h.cardCodeProp===f)||u.push({cardCodeProp:f,difference:(i.value[f]??0)-p,ignoreCardItem:!1,routerLink:ye().callbacks.cardCodeRouterLinkCallback(f)});return u});return(u,d)=>{const f=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(f,{to:n.routerLink,class:"wrapper"},{default:o.withCtx(()=>{var p;return[o.createElementVNode("div",{class:"decks-row-wrapper wrapper",style:o.normalizeStyle({"--index":n.index})},[o.createElementVNode("div",Ane,[o.createElementVNode("div",lne,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value,h=>(o.openBlock(),o.createElementBlock("div",{key:h,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${h})`})},une,4))),128))])]),o.createElementVNode("div",dne,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:d[0]||(d[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(la,{"deck-code":n.deckCode,deck:i.value,cards:s.value,"deck-buttons-props":{...l.value,showButtons:{...l.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck","cards","deck-buttons-props"])]),n.type==="data"||n.type==="similar"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",fne,o.toDisplayString(o.unref(Ce)(n.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(n.wins/n.matches)})`})},o.toDisplayString(o.unref(Ce)(n.wins/n.matches*100,1,3))+"% ",5)],64)):n.type==="built"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",pne,o.toDisplayString(n.name),1),o.createElementVNode("div",hne,o.toDisplayString(o.unref(r)(n.updatedAt).fromNow()),1),o.createElementVNode("div",mne,o.toDisplayString(o.unref(r)(n.createdAt).fromNow()),1)],64)):o.createCommentVNode("",!0),n.type!=="similar"?(o.openBlock(),o.createElementBlock("div",gne,[o.createVNode(bl,{class:"mana-curve-chart","deck-code":n.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!1,animation:!1},null,8,["deck-code"])])):o.createCommentVNode("",!0),o.createElementVNode("div",vne,o.toDisplayString((p=o.unref(nu)(i.value,!0)??o.unref(nu)(i.value,!1))==null?void 0:p.toLocaleString()),1),n.type==="similar"?(o.openBlock(),o.createElementBlock("div",yne,[o.createVNode(a1,{differences:c.value},null,8,["differences"])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["column-content options-button",a.value?"show":"hide"]),onClick:d[6]||(d[6]=o.withModifiers(h=>a.value=!a.value,["stop","prevent"]))},[o.createVNode(Ao,o.mergeProps({onClick:d[1]||(d[1]=o.withModifiers(()=>{},["stop","prevent"])),class:"deck-buttons"},l.value,{"onClick:updatePrivacy":d[2]||(d[2]=h=>t("click:update-privacy")),"onClick:editName":d[3]||(d[3]=h=>t("click:edit-name")),"onClick:delete":d[4]||(d[4]=h=>t("click:delete")),"onClick:share":d[5]||(d[5]=h=>t("click:share"))}),null,16),o.createVNode(o.unref(ke),{icon:"ellipsis-v"})],2)])],4)]}),_:1},8,["to"])}}});const El=M(Bne,[["__scopeId","data-v-c6070031"]]),wne={},bne={class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 172 172"},_ne=o.createStaticVNode('<g fill="none" stroke-miterlimit="10" style="mix-blend-mode:normal;"><g stroke="var(--color-primary-2)" stroke-width="20" stroke-linejoin="round"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M86 16.65C47.761 16.65 16.65 47.76 16.65 86c0 38.239 31.111 69.35 69.35 69.35 38.239 0 69.35-31.111 69.35-69.35 0-38.239-31.111-69.35-69.35-69.35m0-3.853c40.427 0 73.203 32.776 73.203 73.203S126.427 159.203 86 159.203 12.797 126.427 12.797 86 45.573 12.797 86 12.797z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M93.706 55.178a7.706 7.706 0 1 1-15.412 0 7.706 7.706 0 0 1 15.412 0zM97.558 120.675v3.853H74.442v-3.853h3.852v-42.38h-3.852v-3.853h19.264v46.233z" fill="var(--color-primary-2)" stroke-width="17.92"></path></g><path d="M8.944 163.056V8.944h154.112v154.112z"></path><g stroke-width="1" stroke-linejoin="miter"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-background-1)"></path><path d="M86 16.65c38.239 0 69.35 31.111 69.35 69.35 0 38.239-31.111 69.35-69.35 69.35-38.239 0-69.35-31.111-69.35-69.35 0-38.239 31.111-69.35 69.35-69.35m0-3.853c-40.427 0-73.203 32.776-73.203 73.203S45.573 159.203 86 159.203 159.203 126.427 159.203 86 126.427 12.797 86 12.797z" fill="var(--color-background-1)"></path><path d="M86 47.472a7.706 7.706 0 1 0 0 15.411 7.706 7.706 0 0 0 0-15.411zM93.706 120.675V74.442H74.442v3.852h3.852v42.381h-3.852v3.853h23.116v-3.853z" fill="var(--color-primary-2)"></path></g></g>',1),Cne=[_ne];function kne(e,t){return o.openBlock(),o.createElementBlock("svg",bne,Cne)}const i1=M(wne,[["render",kne]]),Ene={...bb,routerLink:{type:Object,required:!0,default:{path:"/404"}}},Sne={class:"card-item-link-wrapper"},xne={key:0,class:"card-item-wrapper"},Fne={key:1,class:"card-item-wrapper"},Ine={class:"link-icon"},Tne=o.defineComponent({__name:"CardItemLinkWrapper",props:Ene,setup(e){const t=e;return(n,r)=>{const a=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",Sne,[n.isDeckBuilder?(o.openBlock(),o.createElementBlock("div",Fne,[o.createVNode(Pi,o.normalizeProps(o.guardReactiveProps(t)),null,16),o.createVNode(a,{class:"link-icon-link",to:t.routerLink},{default:o.withCtx(()=>[o.createElementVNode("div",Ine,[o.createVNode(i1)])]),_:1},8,["to"])])):(o.openBlock(),o.createElementBlock("div",xne,[o.createVNode(a,{to:t.routerLink},{default:o.withCtx(()=>[o.createVNode(Pi,o.normalizeProps(o.guardReactiveProps(t)),null,16)]),_:1},8,["to"])]))])}}});const Yd=M(Tne,[["__scopeId","data-v-89823586"]]),qd={items:{type:Array,required:!0,default:[]},fetchSeachResult:{type:Function,required:!0,default:()=>[]},loginLink:{type:String,required:!0,default:"/"},homeLink:{type:[String,Object],required:!0,default:"/"},links:{type:Object,required:!0,default:{gift:{path:"/404"},settings:{path:"/404"},profile:{path:"/404"}}}},Une={class:"navigation-top-desktop"},Dne={class:"left content"},Qne={class:"right content"},Lne=["href"],One=o.defineComponent({__name:"NavigationTopDesktop",props:qd,emits:["click:sign-in"],setup(e,{emit:t}){const n=e,{t:r}=J();return(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",Une,[o.createElementVNode("div",Dne,[o.createVNode(td,{"fetch-seach-result":n.fetchSeachResult,class:"search-bar"},null,8,["fetch-seach-result"]),o.renderSlot(a.$slots,"default",{},void 0,!0)]),o.createElementVNode("div",Qne,[o.createVNode(xm,{class:"social-links"}),o.createVNode(TA,{class:"language-selection"}),o.unref(Kt)().user?(o.openBlock(),o.createBlock(s,{key:0,to:n.links.profile,class:"profile-name"},{default:o.withCtx(()=>{var A;return[o.createTextVNode(o.toDisplayString((A=o.unref(Kt)().user)==null?void 0:A.name),1)]}),_:1},8,["to"])):(o.openBlock(),o.createElementBlock("a",{key:1,onAuxclick:i[0]||(i[0]=A=>t("click:sign-in")),onPointerdown:i[1]||(i[1]=A=>t("click:sign-in")),onClick:i[2]||(i[2]=A=>t("click:sign-in")),target:"_blank",href:n.loginLink,class:"fancy-button"},o.toDisplayString(o.unref(r)("general.signIn")),41,Lne))])])}}});const s1=M(One,[["__scopeId","data-v-e7708683"]]),Mne={card:{type:Object,required:!0,default:{associatedCardRefs:["06NX013T1"],regionRefs:["Noxus","06RU002"],attack:1,cost:2,health:1,description:"<link=keyword.PlaySkillMark><sprite name=SkillMark><style=Keyword>Play</style></link>: <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stun</style></link> an enemy or if it's already <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stunned</style></link> deal 2 to it instead.",descriptionRaw:"Play: Stun an enemy or if it's already Stunned deal 2 to it instead.",levelupDescription:"",levelupDescriptionRaw:"",flavorText:`"Student: Sydell Kythera
|
|
890
|
+
.`+Kh+ete+F2)},nte=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}},p4=function(){function e(){}return e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e._origin="about:blank",e}(),rte=function(){function e(t,n){this.context=t,this._options=n,this._cache={}}return e.prototype.addImage=function(t){var n=Promise.resolve();return this.has(t)||(ip(t)||ote(t))&&(this._cache[t]=this.loadImage(t)).catch(function(){}),n},e.prototype.match=function(t){return this._cache[t]},e.prototype.loadImage=function(t){return sn(this,void 0,void 0,function(){var n,r,a,i,s=this;return Gt(this,function(A){switch(A.label){case 0:return n=p4.isSameOrigin(t),r=!ap(t)&&this._options.useCORS===!0&&Vt.SUPPORT_CORS_IMAGES&&!n,a=!ap(t)&&!n&&!ip(t)&&typeof this._options.proxy=="string"&&Vt.SUPPORT_CORS_XHR&&!r,!n&&this._options.allowTaint===!1&&!ap(t)&&!ip(t)&&!a&&!r?[2]:(i=t,a?[4,this.proxy(i)]:[3,2]);case 1:i=A.sent(),A.label=2;case 2:return this.context.logger.debug("Added image "+t.substring(0,256)),[4,new Promise(function(l,c){var u=new Image;u.onload=function(){return l(u)},u.onerror=c,(Ate(i)||r)&&(u.crossOrigin="anonymous"),u.src=i,u.complete===!0&&setTimeout(function(){return l(u)},500),s._options.imageTimeout>0&&setTimeout(function(){return c("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,A.sent()]}})})},e.prototype.has=function(t){return typeof this._cache[t]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(t){var n=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var a=t.substring(0,256);return new Promise(function(i,s){var A=Vt.SUPPORT_RESPONSE_TYPE?"blob":"text",l=new XMLHttpRequest;l.onload=function(){if(l.status===200)if(A==="text")i(l.response);else{var d=new FileReader;d.addEventListener("load",function(){return i(d.result)},!1),d.addEventListener("error",function(f){return s(f)},!1),d.readAsDataURL(l.response)}else s("Failed to proxy resource "+a+" with status code "+l.status)},l.onerror=s;var c=r.indexOf("?")>-1?"&":"?";if(l.open("GET",""+r+c+"url="+encodeURIComponent(t)+"&responseType="+A),A!=="text"&&l instanceof XMLHttpRequest&&(l.responseType=A),n._options.imageTimeout){var u=n._options.imageTimeout;l.timeout=u,l.ontimeout=function(){return s("Timed out ("+u+"ms) proxying "+a)}}l.send()})},e}(),ate=/^data:image\/svg\+xml/i,ite=/^data:image\/.*;base64,/i,ste=/^data:image\/.*/i,ote=function(e){return Vt.SUPPORT_SVG_DRAWING||!lte(e)},ap=function(e){return ste.test(e)},Ate=function(e){return ite.test(e)},ip=function(e){return e.substr(0,4)==="blob"},lte=function(e){return e.substr(-3).toLowerCase()==="svg"||ate.test(e)},q=function(){function e(t,n){this.type=0,this.x=t,this.y=n}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),fs=function(e,t,n){return new q(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},Tc=function(){function e(t,n,r,a){this.type=1,this.start=t,this.startControl=n,this.endControl=r,this.end=a}return e.prototype.subdivide=function(t,n){var r=fs(this.start,this.startControl,t),a=fs(this.startControl,this.endControl,t),i=fs(this.endControl,this.end,t),s=fs(r,a,t),A=fs(a,i,t),l=fs(s,A,t);return n?new e(this.start,r,s,l):new e(l,A,i,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Rn=function(e){return e.type===1},cte=function(){function e(t){var n=t.styles,r=t.bounds,a=Ro(n.borderTopLeftRadius,r.width,r.height),i=a[0],s=a[1],A=Ro(n.borderTopRightRadius,r.width,r.height),l=A[0],c=A[1],u=Ro(n.borderBottomRightRadius,r.width,r.height),d=u[0],f=u[1],p=Ro(n.borderBottomLeftRadius,r.width,r.height),h=p[0],g=p[1],B=[];B.push((i+l)/r.width),B.push((h+d)/r.width),B.push((s+g)/r.height),B.push((c+f)/r.height);var m=Math.max.apply(Math,B);m>1&&(i/=m,s/=m,l/=m,c/=m,d/=m,f/=m,h/=m,g/=m);var v=r.width-l,w=r.height-f,y=r.width-d,b=r.height-g,_=n.borderTopWidth,C=n.borderRightWidth,E=n.borderBottomWidth,S=n.borderLeftWidth,D=Je(n.paddingTop,t.bounds.width),T=Je(n.paddingRight,t.bounds.width),F=Je(n.paddingBottom,t.bounds.width),U=Je(n.paddingLeft,t.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||s>0?ct(r.left+S/3,r.top+_/3,i-S/3,s-_/3,Ve.TOP_LEFT):new q(r.left+S/3,r.top+_/3),this.topRightBorderDoubleOuterBox=i>0||s>0?ct(r.left+v,r.top+_/3,l-C/3,c-_/3,Ve.TOP_RIGHT):new q(r.left+r.width-C/3,r.top+_/3),this.bottomRightBorderDoubleOuterBox=d>0||f>0?ct(r.left+y,r.top+w,d-C/3,f-E/3,Ve.BOTTOM_RIGHT):new q(r.left+r.width-C/3,r.top+r.height-E/3),this.bottomLeftBorderDoubleOuterBox=h>0||g>0?ct(r.left+S/3,r.top+b,h-S/3,g-E/3,Ve.BOTTOM_LEFT):new q(r.left+S/3,r.top+r.height-E/3),this.topLeftBorderDoubleInnerBox=i>0||s>0?ct(r.left+S*2/3,r.top+_*2/3,i-S*2/3,s-_*2/3,Ve.TOP_LEFT):new q(r.left+S*2/3,r.top+_*2/3),this.topRightBorderDoubleInnerBox=i>0||s>0?ct(r.left+v,r.top+_*2/3,l-C*2/3,c-_*2/3,Ve.TOP_RIGHT):new q(r.left+r.width-C*2/3,r.top+_*2/3),this.bottomRightBorderDoubleInnerBox=d>0||f>0?ct(r.left+y,r.top+w,d-C*2/3,f-E*2/3,Ve.BOTTOM_RIGHT):new q(r.left+r.width-C*2/3,r.top+r.height-E*2/3),this.bottomLeftBorderDoubleInnerBox=h>0||g>0?ct(r.left+S*2/3,r.top+b,h-S*2/3,g-E*2/3,Ve.BOTTOM_LEFT):new q(r.left+S*2/3,r.top+r.height-E*2/3),this.topLeftBorderStroke=i>0||s>0?ct(r.left+S/2,r.top+_/2,i-S/2,s-_/2,Ve.TOP_LEFT):new q(r.left+S/2,r.top+_/2),this.topRightBorderStroke=i>0||s>0?ct(r.left+v,r.top+_/2,l-C/2,c-_/2,Ve.TOP_RIGHT):new q(r.left+r.width-C/2,r.top+_/2),this.bottomRightBorderStroke=d>0||f>0?ct(r.left+y,r.top+w,d-C/2,f-E/2,Ve.BOTTOM_RIGHT):new q(r.left+r.width-C/2,r.top+r.height-E/2),this.bottomLeftBorderStroke=h>0||g>0?ct(r.left+S/2,r.top+b,h-S/2,g-E/2,Ve.BOTTOM_LEFT):new q(r.left+S/2,r.top+r.height-E/2),this.topLeftBorderBox=i>0||s>0?ct(r.left,r.top,i,s,Ve.TOP_LEFT):new q(r.left,r.top),this.topRightBorderBox=l>0||c>0?ct(r.left+v,r.top,l,c,Ve.TOP_RIGHT):new q(r.left+r.width,r.top),this.bottomRightBorderBox=d>0||f>0?ct(r.left+y,r.top+w,d,f,Ve.BOTTOM_RIGHT):new q(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=h>0||g>0?ct(r.left,r.top+b,h,g,Ve.BOTTOM_LEFT):new q(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||s>0?ct(r.left+S,r.top+_,Math.max(0,i-S),Math.max(0,s-_),Ve.TOP_LEFT):new q(r.left+S,r.top+_),this.topRightPaddingBox=l>0||c>0?ct(r.left+Math.min(v,r.width-C),r.top+_,v>r.width+C?0:Math.max(0,l-C),Math.max(0,c-_),Ve.TOP_RIGHT):new q(r.left+r.width-C,r.top+_),this.bottomRightPaddingBox=d>0||f>0?ct(r.left+Math.min(y,r.width-S),r.top+Math.min(w,r.height-E),Math.max(0,d-C),Math.max(0,f-E),Ve.BOTTOM_RIGHT):new q(r.left+r.width-C,r.top+r.height-E),this.bottomLeftPaddingBox=h>0||g>0?ct(r.left+S,r.top+Math.min(b,r.height-E),Math.max(0,h-S),Math.max(0,g-E),Ve.BOTTOM_LEFT):new q(r.left+S,r.top+r.height-E),this.topLeftContentBox=i>0||s>0?ct(r.left+S+U,r.top+_+D,Math.max(0,i-(S+U)),Math.max(0,s-(_+D)),Ve.TOP_LEFT):new q(r.left+S+U,r.top+_+D),this.topRightContentBox=l>0||c>0?ct(r.left+Math.min(v,r.width+S+U),r.top+_+D,v>r.width+S+U?0:l-S+U,c-(_+D),Ve.TOP_RIGHT):new q(r.left+r.width-(C+T),r.top+_+D),this.bottomRightContentBox=d>0||f>0?ct(r.left+Math.min(y,r.width-(S+U)),r.top+Math.min(w,r.height+_+D),Math.max(0,d-(C+T)),f-(E+F),Ve.BOTTOM_RIGHT):new q(r.left+r.width-(C+T),r.top+r.height-(E+F)),this.bottomLeftContentBox=h>0||g>0?ct(r.left+S+U,r.top+b,Math.max(0,h-(S+U)),g-(E+F),Ve.BOTTOM_LEFT):new q(r.left+S+U,r.top+r.height-(E+F))}return e}(),Ve;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ve||(Ve={}));var ct=function(e,t,n,r,a){var i=4*((Math.sqrt(2)-1)/3),s=n*i,A=r*i,l=e+n,c=t+r;switch(a){case Ve.TOP_LEFT:return new Tc(new q(e,c),new q(e,c-A),new q(l-s,t),new q(l,t));case Ve.TOP_RIGHT:return new Tc(new q(e,t),new q(e+s,t),new q(l,c-A),new q(l,c));case Ve.BOTTOM_RIGHT:return new Tc(new q(l,t),new q(l,t+A),new q(e+s,c),new q(e,c));case Ve.BOTTOM_LEFT:default:return new Tc(new q(l,c),new q(l-s,c),new q(e,t+A),new q(e,t))}},Pu=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},ute=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},Hu=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},dte=function(){function e(t,n,r){this.offsetX=t,this.offsetY=n,this.matrix=r,this.type=0,this.target=6}return e}(),Uc=function(){function e(t,n){this.path=t,this.target=n,this.type=1}return e}(),fte=function(){function e(t){this.opacity=t,this.type=2,this.target=6}return e}(),pte=function(e){return e.type===0},h4=function(e){return e.type===1},hte=function(e){return e.type===2},I2=function(e,t){return e.length===t.length?e.some(function(n,r){return n===t[r]}):!1},mte=function(e,t,n,r,a){return e.map(function(i,s){switch(s){case 0:return i.add(t,n);case 1:return i.add(t+r,n);case 2:return i.add(t+r,n+a);case 3:return i.add(t,n+a)}return i})},m4=function(){function e(t){this.element=t,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),g4=function(){function e(t,n){if(this.container=t,this.parent=n,this.effects=[],this.curves=new cte(this.container),this.container.styles.opacity<1&&this.effects.push(new fte(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,a=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new dte(r,a,i))}if(this.container.styles.overflowX!==0){var s=Pu(this.curves),A=Hu(this.curves);I2(s,A)?this.effects.push(new Uc(s,6)):(this.effects.push(new Uc(s,2)),this.effects.push(new Uc(A,4)))}}return e.prototype.getEffects=function(t){for(var n=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,a=this.effects.slice(0);r;){var i=r.effects.filter(function(l){return!h4(l)});if(n||r.container.styles.position!==0||!r.parent){if(a.unshift.apply(a,i),n=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=Pu(r.curves),A=Hu(r.curves);I2(s,A)||a.unshift(new Uc(A,6))}}else a.unshift.apply(a,i);r=r.parent}return a.filter(function(l){return Ut(l.target,t)})},e}(),$h=function(e,t,n,r){e.container.elements.forEach(function(a){var i=Ut(a.flags,4),s=Ut(a.flags,2),A=new g4(a,e);Ut(a.styles.display,2048)&&r.push(A);var l=Ut(a.flags,8)?[]:r;if(i||s){var c=i||a.styles.isPositioned()?n:t,u=new m4(A);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var d=a.styles.zIndex.order;if(d<0){var f=0;c.negativeZIndex.some(function(h,g){return d>h.element.container.styles.zIndex.order?(f=g,!1):f>0}),c.negativeZIndex.splice(f,0,u)}else if(d>0){var p=0;c.positiveZIndex.some(function(h,g){return d>=h.element.container.styles.zIndex.order?(p=g+1,!1):p>0}),c.positiveZIndex.splice(p,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);$h(A,u,i?u:n,l)}else a.styles.isInlineLevel()?t.inlineLevel.push(A):t.nonInlineLevel.push(A),$h(A,t,n,l);Ut(a.flags,8)&&v4(a,l)})},v4=function(e,t){for(var n=e instanceof Ph?e.start:1,r=e instanceof Ph?e.reversed:!1,a=0;a<t.length;a++){var i=t[a];i.container instanceof t4&&typeof i.container.value=="number"&&i.container.value!==0&&(n=i.container.value),i.listValue=zA(n,i.container.styles.listStyleType,!0),n+=r?-1:1}},gte=function(e){var t=new g4(e,null),n=new m4(t),r=[];return $h(t,n,n,r),v4(t.container,r),n},T2=function(e,t){switch(t){case 0:return Kn(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return Kn(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return Kn(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return Kn(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},vte=function(e,t){switch(t){case 0:return Kn(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return Kn(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return Kn(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return Kn(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},yte=function(e,t){switch(t){case 0:return Kn(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return Kn(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return Kn(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return Kn(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},Bte=function(e,t){switch(t){case 0:return Dc(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return Dc(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return Dc(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return Dc(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},Dc=function(e,t){var n=[];return Rn(e)?n.push(e.subdivide(.5,!1)):n.push(e),Rn(t)?n.push(t.subdivide(.5,!0)):n.push(t),n},Kn=function(e,t,n,r){var a=[];return Rn(e)?a.push(e.subdivide(.5,!1)):a.push(e),Rn(n)?a.push(n.subdivide(.5,!0)):a.push(n),Rn(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),Rn(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},y4=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},Ru=function(e){var t=e.styles,n=e.bounds,r=Je(t.paddingLeft,n.width),a=Je(t.paddingRight,n.width),i=Je(t.paddingTop,n.width),s=Je(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,i+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+a),-(t.borderTopWidth+t.borderBottomWidth+i+s))},wte=function(e,t){return e===0?t.bounds:e===2?Ru(t):y4(t)},bte=function(e,t){return e===0?t.bounds:e===2?Ru(t):y4(t)},sp=function(e,t,n){var r=wte(vs(e.styles.backgroundOrigin,t),e),a=bte(vs(e.styles.backgroundClip,t),e),i=_te(vs(e.styles.backgroundSize,t),n,r),s=i[0],A=i[1],l=Ro(vs(e.styles.backgroundPosition,t),r.width-s,r.height-A),c=Cte(vs(e.styles.backgroundRepeat,t),l,i,r,a),u=Math.round(r.left+l[0]),d=Math.round(r.top+l[1]);return[c,u,d,s,A]},ps=function(e){return We(e)&&e.value===Ts.AUTO},Qc=function(e){return typeof e=="number"},_te=function(e,t,n){var r=t[0],a=t[1],i=t[2],s=e[0],A=e[1];if(!s)return[0,0];if(St(s)&&A&&St(A))return[Je(s,n.width),Je(A,n.height)];var l=Qc(i);if(We(s)&&(s.value===Ts.CONTAIN||s.value===Ts.COVER)){if(Qc(i)){var c=n.width/n.height;return c<i!=(s.value===Ts.COVER)?[n.width,n.width/i]:[n.height*i,n.height]}return[n.width,n.height]}var u=Qc(r),d=Qc(a),f=u||d;if(ps(s)&&(!A||ps(A))){if(u&&d)return[r,a];if(!l&&!f)return[n.width,n.height];if(f&&l){var p=u?r:a*i,h=d?a:r/i;return[p,h]}var g=u?r:n.width,B=d?a:n.height;return[g,B]}if(l){var m=0,v=0;return St(s)?m=Je(s,n.width):St(A)&&(v=Je(A,n.height)),ps(s)?m=v*i:(!A||ps(A))&&(v=m/i),[m,v]}var w=null,y=null;if(St(s)?w=Je(s,n.width):A&&St(A)&&(y=Je(A,n.height)),w!==null&&(!A||ps(A))&&(y=u&&d?w/r*a:n.height),y!==null&&ps(s)&&(w=u&&d?y/a*r:n.width),w!==null&&y!==null)return[w,y];throw new Error("Unable to calculate background-size for element")},vs=function(e,t){var n=e[t];return typeof n>"u"?e[0]:n},Cte=function(e,t,n,r,a){var i=t[0],s=t[1],A=n[0],l=n[1];switch(e){case 2:return[new q(Math.round(r.left),Math.round(r.top+s)),new q(Math.round(r.left+r.width),Math.round(r.top+s)),new q(Math.round(r.left+r.width),Math.round(l+r.top+s)),new q(Math.round(r.left),Math.round(l+r.top+s))];case 3:return[new q(Math.round(r.left+i),Math.round(r.top)),new q(Math.round(r.left+i+A),Math.round(r.top)),new q(Math.round(r.left+i+A),Math.round(r.height+r.top)),new q(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new q(Math.round(r.left+i),Math.round(r.top+s)),new q(Math.round(r.left+i+A),Math.round(r.top+s)),new q(Math.round(r.left+i+A),Math.round(r.top+s+l)),new q(Math.round(r.left+i),Math.round(r.top+s+l))];default:return[new q(Math.round(a.left),Math.round(a.top)),new q(Math.round(a.left+a.width),Math.round(a.top)),new q(Math.round(a.left+a.width),Math.round(a.height+a.top)),new q(Math.round(a.left),Math.round(a.height+a.top))]}},kte="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",U2="Hidden Text",Ete=function(){function e(t){this._data={},this._document=t}return e.prototype.parseMetrics=function(t,n){var r=this._document.createElement("div"),a=this._document.createElement("img"),i=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=t,r.style.fontSize=n,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),a.src=kte,a.width=1,a.height=1,a.style.margin="0",a.style.padding="0",a.style.verticalAlign="baseline",i.style.fontFamily=t,i.style.fontSize=n,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(U2)),r.appendChild(i),r.appendChild(a);var A=a.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(U2)),r.style.lineHeight="normal",a.style.verticalAlign="super";var l=a.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:A,middle:l}},e.prototype.getMetrics=function(t,n){var r=t+" "+n;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(t,n)),this._data[r]},e}(),B4=function(){function e(t,n){this.context=t,this.options=n}return e}(),Ste=1e4,xte=function(e){or(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a._activeEffects=[],a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),r.canvas||(a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px"),a.fontMetrics=new Ete(document),a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.ctx.textBaseline="bottom",a._activeEffects=[],a.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),a}return t.prototype.applyEffects=function(n){for(var r=this;this._activeEffects.length;)this.popEffect();n.forEach(function(a){return r.applyEffect(a)})},t.prototype.applyEffect=function(n){this.ctx.save(),hte(n)&&(this.ctx.globalAlpha=n.opacity),pte(n)&&(this.ctx.translate(n.offsetX,n.offsetY),this.ctx.transform(n.matrix[0],n.matrix[1],n.matrix[2],n.matrix[3],n.matrix[4],n.matrix[5]),this.ctx.translate(-n.offsetX,-n.offsetY)),h4(n)&&(this.path(n.path),this.ctx.clip()),this._activeEffects.push(n)},t.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},t.prototype.renderStack=function(n){return sn(this,void 0,void 0,function(){var r;return Gt(this,function(a){switch(a.label){case 0:return r=n.element.container.styles,r.isVisible()?[4,this.renderStackContent(n)]:[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}})})},t.prototype.renderNode=function(n){return sn(this,void 0,void 0,function(){return Gt(this,function(r){switch(r.label){case 0:if(Ut(n.container.flags,16))debugger;return n.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(n)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(n)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},t.prototype.renderTextWithLetterSpacing=function(n,r,a){var i=this;if(r===0)this.ctx.fillText(n.text,n.bounds.left,n.bounds.top+a);else{var s=e1(n.text);s.reduce(function(A,l){return i.ctx.fillText(l,A,n.bounds.top+a),A+i.ctx.measureText(l).width},n.bounds.left)}},t.prototype.createFontStyle=function(n){var r=n.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),a=Dte(n.fontFamily).join(", "),i=kl(n.fontSize)?""+n.fontSize.number+n.fontSize.unit:n.fontSize.number+"px";return[[n.fontStyle,r,n.fontWeight,i,a].join(" "),a,i]},t.prototype.renderTextNode=function(n,r){return sn(this,void 0,void 0,function(){var a,i,s,A,l,c,u,d,f=this;return Gt(this,function(p){return a=this.createFontStyle(r),i=a[0],s=a[1],A=a[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",l=this.fontMetrics.getMetrics(s,A),c=l.baseline,u=l.middle,d=r.paintOrder,n.textBounds.forEach(function(h){d.forEach(function(g){switch(g){case 0:f.ctx.fillStyle=Mt(r.color),f.renderTextWithLetterSpacing(h,r.letterSpacing,c);var B=r.textShadow;B.length&&h.text.trim().length&&(B.slice(0).reverse().forEach(function(m){f.ctx.shadowColor=Mt(m.color),f.ctx.shadowOffsetX=m.offsetX.number*f.options.scale,f.ctx.shadowOffsetY=m.offsetY.number*f.options.scale,f.ctx.shadowBlur=m.blur.number,f.renderTextWithLetterSpacing(h,r.letterSpacing,c)}),f.ctx.shadowColor="",f.ctx.shadowOffsetX=0,f.ctx.shadowOffsetY=0,f.ctx.shadowBlur=0),r.textDecorationLine.length&&(f.ctx.fillStyle=Mt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(m){switch(m){case 1:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top+c),h.bounds.width,1);break;case 2:f.ctx.fillRect(h.bounds.left,Math.round(h.bounds.top),h.bounds.width,1);break;case 3:f.ctx.fillRect(h.bounds.left,Math.ceil(h.bounds.top+u),h.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&h.text.trim().length&&(f.ctx.strokeStyle=Mt(r.webkitTextStrokeColor),f.ctx.lineWidth=r.webkitTextStrokeWidth,f.ctx.lineJoin=window.chrome?"miter":"round",f.ctx.strokeText(h.text,h.bounds.left,h.bounds.top+c)),f.ctx.strokeStyle="",f.ctx.lineWidth=0,f.ctx.lineJoin="miter";break}})}),[2]})})},t.prototype.renderReplacedElement=function(n,r,a){if(a&&n.intrinsicWidth>0&&n.intrinsicHeight>0){var i=Ru(n),s=Hu(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(a,0,0,n.intrinsicWidth,n.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},t.prototype.renderNodeContent=function(n){return sn(this,void 0,void 0,function(){var r,a,i,s,A,l,v,v,c,u,d,f,y,p,h,b,g,B,m,v,w,y,b;return Gt(this,function(_){switch(_.label){case 0:this.applyEffects(n.getEffects(4)),r=n.container,a=n.curves,i=r.styles,s=0,A=r.textNodes,_.label=1;case 1:return s<A.length?(l=A[s],[4,this.renderTextNode(l,i)]):[3,4];case 2:_.sent(),_.label=3;case 3:return s++,[3,1];case 4:if(!(r instanceof Jk))return[3,8];_.label=5;case 5:return _.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return v=_.sent(),this.renderReplacedElement(r,a,v),[3,8];case 7:return _.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Zk&&this.renderReplacedElement(r,a,r.canvas),!(r instanceof e4))return[3,12];_.label=9;case 9:return _.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return v=_.sent(),this.renderReplacedElement(r,a,v),[3,12];case 11:return _.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof a4&&r.tree?(c=new t(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,c.render(r.tree)]):[3,14];case 13:u=_.sent(),r.width&&r.height&&this.ctx.drawImage(u,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),_.label=14;case 14:if(r instanceof t1&&(d=Math.min(r.bounds.width,r.bounds.height),r.type===Lu?r.checked&&(this.ctx.save(),this.path([new q(r.bounds.left+d*.39363,r.bounds.top+d*.79),new q(r.bounds.left+d*.16,r.bounds.top+d*.5549),new q(r.bounds.left+d*.27347,r.bounds.top+d*.44071),new q(r.bounds.left+d*.39694,r.bounds.top+d*.5649),new q(r.bounds.left+d*.72983,r.bounds.top+d*.23),new q(r.bounds.left+d*.84,r.bounds.top+d*.34085),new q(r.bounds.left+d*.39363,r.bounds.top+d*.79)]),this.ctx.fillStyle=Mt(y2),this.ctx.fill(),this.ctx.restore()):r.type===Ou&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+d/2,r.bounds.top+d/2,d/4,0,Math.PI*2,!0),this.ctx.fillStyle=Mt(y2),this.ctx.fill(),this.ctx.restore())),Fte(r)&&r.value.length){switch(f=this.createFontStyle(i),y=f[0],p=f[1],h=this.fontMetrics.getMetrics(y,p).baseline,this.ctx.font=y,this.ctx.fillStyle=Mt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Tte(r.styles.textAlign),b=Ru(r),g=0,r.styles.textAlign){case 1:g+=b.width/2;break;case 2:g+=b.width;break}B=b.add(g,0,0,-b.height/2+1),this.ctx.save(),this.path([new q(b.left,b.top),new q(b.left+b.width,b.top),new q(b.left+b.width,b.top+b.height),new q(b.left,b.top+b.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new fA(r.value,B),i.letterSpacing,h),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Ut(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(m=r.styles.listStyleImage,m.type!==0)return[3,18];v=void 0,w=m.url,_.label=15;case 15:return _.trys.push([15,17,,18]),[4,this.context.cache.match(w)];case 16:return v=_.sent(),this.ctx.drawImage(v,r.bounds.left-(v.width+10),r.bounds.top),[3,18];case 17:return _.sent(),this.context.logger.error("Error loading list-style-image "+w),[3,18];case 18:return[3,20];case 19:n.listValue&&r.styles.listStyleType!==-1&&(y=this.createFontStyle(i)[0],this.ctx.font=y,this.ctx.fillStyle=Mt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",b=new Aa(r.bounds.left,r.bounds.top+Je(r.styles.paddingTop,r.bounds.width),r.bounds.width,n2(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new fA(n.listValue,b),i.letterSpacing,n2(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),_.label=20;case 20:return[2]}})})},t.prototype.renderStackContent=function(n){return sn(this,void 0,void 0,function(){var r,a,m,i,s,m,A,l,m,c,u,m,d,f,m,p,h,m,g,B,m;return Gt(this,function(v){switch(v.label){case 0:if(Ut(n.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(n.element)];case 1:v.sent(),r=0,a=n.negativeZIndex,v.label=2;case 2:return r<a.length?(m=a[r],[4,this.renderStack(m)]):[3,5];case 3:v.sent(),v.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(n.element)];case 6:v.sent(),i=0,s=n.nonInlineLevel,v.label=7;case 7:return i<s.length?(m=s[i],[4,this.renderNode(m)]):[3,10];case 8:v.sent(),v.label=9;case 9:return i++,[3,7];case 10:A=0,l=n.nonPositionedFloats,v.label=11;case 11:return A<l.length?(m=l[A],[4,this.renderStack(m)]):[3,14];case 12:v.sent(),v.label=13;case 13:return A++,[3,11];case 14:c=0,u=n.nonPositionedInlineLevel,v.label=15;case 15:return c<u.length?(m=u[c],[4,this.renderStack(m)]):[3,18];case 16:v.sent(),v.label=17;case 17:return c++,[3,15];case 18:d=0,f=n.inlineLevel,v.label=19;case 19:return d<f.length?(m=f[d],[4,this.renderNode(m)]):[3,22];case 20:v.sent(),v.label=21;case 21:return d++,[3,19];case 22:p=0,h=n.zeroOrAutoZIndexOrTransformedOrOpacity,v.label=23;case 23:return p<h.length?(m=h[p],[4,this.renderStack(m)]):[3,26];case 24:v.sent(),v.label=25;case 25:return p++,[3,23];case 26:g=0,B=n.positiveZIndex,v.label=27;case 27:return g<B.length?(m=B[g],[4,this.renderStack(m)]):[3,30];case 28:v.sent(),v.label=29;case 29:return g++,[3,27];case 30:return[2]}})})},t.prototype.mask=function(n){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(n.slice(0).reverse()),this.ctx.closePath()},t.prototype.path=function(n){this.ctx.beginPath(),this.formatPath(n),this.ctx.closePath()},t.prototype.formatPath=function(n){var r=this;n.forEach(function(a,i){var s=Rn(a)?a.start:a;i===0?r.ctx.moveTo(s.x,s.y):r.ctx.lineTo(s.x,s.y),Rn(a)&&r.ctx.bezierCurveTo(a.startControl.x,a.startControl.y,a.endControl.x,a.endControl.y,a.end.x,a.end.y)})},t.prototype.renderRepeat=function(n,r,a,i){this.path(n),this.ctx.fillStyle=r,this.ctx.translate(a,i),this.ctx.fill(),this.ctx.translate(-a,-i)},t.prototype.resizeImage=function(n,r,a){var i;if(n.width===r&&n.height===a)return n;var s=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,A=s.createElement("canvas");A.width=Math.max(1,r),A.height=Math.max(1,a);var l=A.getContext("2d");return l.drawImage(n,0,0,n.width,n.height,0,0,r,a),A},t.prototype.renderBackgroundImage=function(n){return sn(this,void 0,void 0,function(){var r,a,i,s,A,l;return Gt(this,function(c){switch(c.label){case 0:r=n.styles.backgroundImage.length-1,a=function(u){var d,f,p,D,j,K,U,Y,E,h,D,j,K,U,Y,g,B,m,v,w,y,b,_,C,E,S,D,T,F,U,Y,X,j,K,Ae,$,ie,ce,Be,xe,fe,re;return Gt(this,function(N){switch(N.label){case 0:if(u.type!==0)return[3,5];d=void 0,f=u.url,N.label=1;case 1:return N.trys.push([1,3,,4]),[4,i.context.cache.match(f)];case 2:return d=N.sent(),[3,4];case 3:return N.sent(),i.context.logger.error("Error loading background-image "+f),[3,4];case 4:return d&&(p=sp(n,r,[d.width,d.height,d.width/d.height]),D=p[0],j=p[1],K=p[2],U=p[3],Y=p[4],E=i.ctx.createPattern(i.resizeImage(d,U,Y),"repeat"),i.renderRepeat(D,E,j,K)),[3,6];case 5:pJ(u)?(h=sp(n,r,[null,null,null]),D=h[0],j=h[1],K=h[2],U=h[3],Y=h[4],g=lJ(u.angle,U,Y),B=g[0],m=g[1],v=g[2],w=g[3],y=g[4],b=document.createElement("canvas"),b.width=U,b.height=Y,_=b.getContext("2d"),C=_.createLinearGradient(m,w,v,y),e2(u.stops,B).forEach(function(ne){return C.addColorStop(ne.stop,Mt(ne.color))}),_.fillStyle=C,_.fillRect(0,0,U,Y),U>0&&Y>0&&(E=i.ctx.createPattern(b,"repeat"),i.renderRepeat(D,E,j,K))):hJ(u)&&(S=sp(n,r,[null,null,null]),D=S[0],T=S[1],F=S[2],U=S[3],Y=S[4],X=u.position.length===0?[Xg]:u.position,j=Je(X[0],U),K=Je(X[X.length-1],Y),Ae=cJ(u,j,K,U,Y),$=Ae[0],ie=Ae[1],$>0&&ie>0&&(ce=i.ctx.createRadialGradient(T+j,F+K,0,T+j,F+K,$),e2(u.stops,$*2).forEach(function(ne){return ce.addColorStop(ne.stop,Mt(ne.color))}),i.path(D),i.ctx.fillStyle=ce,$!==ie?(Be=n.bounds.left+.5*n.bounds.width,xe=n.bounds.top+.5*n.bounds.height,fe=ie/$,re=1/fe,i.ctx.save(),i.ctx.translate(Be,xe),i.ctx.transform(1,0,0,fe,0,0),i.ctx.translate(-Be,-xe),i.ctx.fillRect(T,re*(F-xe)+xe,U,Y*re),i.ctx.restore()):i.ctx.fill())),N.label=6;case 6:return r--,[2]}})},i=this,s=0,A=n.styles.backgroundImage.slice(0).reverse(),c.label=1;case 1:return s<A.length?(l=A[s],[5,a(l)]):[3,4];case 2:c.sent(),c.label=3;case 3:return s++,[3,1];case 4:return[2]}})})},t.prototype.renderSolidBorder=function(n,r,a){return sn(this,void 0,void 0,function(){return Gt(this,function(i){return this.path(T2(a,r)),this.ctx.fillStyle=Mt(n),this.ctx.fill(),[2]})})},t.prototype.renderDoubleBorder=function(n,r,a,i){return sn(this,void 0,void 0,function(){var s,A;return Gt(this,function(l){switch(l.label){case 0:return r<3?[4,this.renderSolidBorder(n,a,i)]:[3,2];case 1:return l.sent(),[2];case 2:return s=vte(i,a),this.path(s),this.ctx.fillStyle=Mt(n),this.ctx.fill(),A=yte(i,a),this.path(A),this.ctx.fill(),[2]}})})},t.prototype.renderNodeBackgroundAndBorders=function(n){return sn(this,void 0,void 0,function(){var r,a,i,s,A,l,c,u,d=this;return Gt(this,function(f){switch(f.label){case 0:return this.applyEffects(n.getEffects(2)),r=n.container.styles,a=!za(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],s=Ite(vs(r.backgroundClip,0),n.curves),a||r.boxShadow.length?(this.ctx.save(),this.path(s),this.ctx.clip(),za(r.backgroundColor)||(this.ctx.fillStyle=Mt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(n.container)]):[3,2];case 1:f.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(p){d.ctx.save();var h=Pu(n.curves),g=p.inset?0:Ste,B=mte(h,-g+(p.inset?1:-1)*p.spread.number,(p.inset?1:-1)*p.spread.number,p.spread.number*(p.inset?-2:2),p.spread.number*(p.inset?-2:2));p.inset?(d.path(h),d.ctx.clip(),d.mask(B)):(d.mask(h),d.ctx.clip(),d.path(B)),d.ctx.shadowOffsetX=p.offsetX.number+g,d.ctx.shadowOffsetY=p.offsetY.number,d.ctx.shadowColor=Mt(p.color),d.ctx.shadowBlur=p.blur.number,d.ctx.fillStyle=p.inset?Mt(p.color):"rgba(0,0,0,1)",d.ctx.fill(),d.ctx.restore()}),f.label=2;case 2:A=0,l=0,c=i,f.label=3;case 3:return l<c.length?(u=c[l],u.style!==0&&!za(u.color)&&u.width>0?u.style!==2?[3,5]:[4,this.renderDashedDottedBorder(u.color,u.width,A,n.curves,2)]:[3,11]):[3,13];case 4:return f.sent(),[3,11];case 5:return u.style!==3?[3,7]:[4,this.renderDashedDottedBorder(u.color,u.width,A,n.curves,3)];case 6:return f.sent(),[3,11];case 7:return u.style!==4?[3,9]:[4,this.renderDoubleBorder(u.color,u.width,A,n.curves)];case 8:return f.sent(),[3,11];case 9:return[4,this.renderSolidBorder(u.color,A,n.curves)];case 10:f.sent(),f.label=11;case 11:A++,f.label=12;case 12:return l++,[3,3];case 13:return[2]}})})},t.prototype.renderDashedDottedBorder=function(n,r,a,i,s){return sn(this,void 0,void 0,function(){var A,l,c,u,d,f,p,h,g,B,m,v,w,y,b,_,b,_;return Gt(this,function(C){return this.ctx.save(),A=Bte(i,a),l=T2(i,a),s===2&&(this.path(l),this.ctx.clip()),Rn(l[0])?(c=l[0].start.x,u=l[0].start.y):(c=l[0].x,u=l[0].y),Rn(l[1])?(d=l[1].end.x,f=l[1].end.y):(d=l[1].x,f=l[1].y),a===0||a===2?p=Math.abs(c-d):p=Math.abs(u-f),this.ctx.beginPath(),s===3?this.formatPath(A):this.formatPath(l.slice(0,2)),h=r<3?r*3:r*2,g=r<3?r*2:r,s===3&&(h=r,g=r),B=!0,p<=h*2?B=!1:p<=h*2+g?(m=p/(2*h+g),h*=m,g*=m):(v=Math.floor((p+g)/(h+g)),w=(p-v*h)/(v-1),y=(p-(v+1)*h)/v,g=y<=0||Math.abs(g-w)<Math.abs(g-y)?w:y),B&&(s===3?this.ctx.setLineDash([0,h+g]):this.ctx.setLineDash([h,g])),s===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=Mt(n),this.ctx.stroke(),this.ctx.setLineDash([]),s===2&&(Rn(l[0])&&(b=l[3],_=l[0],this.ctx.beginPath(),this.formatPath([new q(b.end.x,b.end.y),new q(_.start.x,_.start.y)]),this.ctx.stroke()),Rn(l[1])&&(b=l[1],_=l[2],this.ctx.beginPath(),this.formatPath([new q(b.end.x,b.end.y),new q(_.start.x,_.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},t.prototype.render=function(n){return sn(this,void 0,void 0,function(){var r;return Gt(this,function(a){switch(a.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Mt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=gte(n),[4,this.renderStack(r)];case 1:return a.sent(),this.applyEffects([]),[2,this.canvas]}})})},t}(B4),Fte=function(e){return e instanceof r4||e instanceof n4?!0:e instanceof t1&&e.type!==Ou&&e.type!==Lu},Ite=function(e,t){switch(e){case 0:return Pu(t);case 2:return ute(t);case 1:default:return Hu(t)}},Tte=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ute=["-apple-system","system-ui"],Dte=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(t){return Ute.indexOf(t)===-1}):e},Qte=function(e){or(t,e);function t(n,r){var a=e.call(this,n,r)||this;return a.canvas=r.canvas?r.canvas:document.createElement("canvas"),a.ctx=a.canvas.getContext("2d"),a.options=r,a.canvas.width=Math.floor(r.width*r.scale),a.canvas.height=Math.floor(r.height*r.scale),a.canvas.style.width=r.width+"px",a.canvas.style.height=r.height+"px",a.ctx.scale(a.options.scale,a.options.scale),a.ctx.translate(-r.x,-r.y),a.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),a}return t.prototype.render=function(n){return sn(this,void 0,void 0,function(){var r,a;return Gt(this,function(i){switch(i.label){case 0:return r=Nh(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,n),[4,Lte(r)];case 1:return a=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Mt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(a,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},t}(B4),Lte=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Ote=function(){function e(t){var n=t.id,r=t.enabled;this.id=n,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,dc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,dc([this.id,this.getTime()+"ms"],t))},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,dc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,dc([this.id,this.getTime()+"ms"],t)):this.info.apply(this,t))},e.instances={},e}(),Mte=function(){function e(t,n){var r;this.windowBounds=n,this.instanceName="#"+e.instanceCount++,this.logger=new Ote({id:this.instanceName,enabled:t.logging}),this.cache=(r=t.cache)!==null&&r!==void 0?r:new rte(this,t)}return e.instanceCount=1,e}(),Nte=function(e,t){return t===void 0&&(t={}),Pte(e,t)};typeof window<"u"&&p4.setContext(window);var Pte=function(e,t){return sn(void 0,void 0,void 0,function(){var n,r,a,i,s,A,l,c,u,d,f,p,h,g,B,m,v,w,y,b,C,_,C,E,S,D,T,F,U,Y,X,j,K,Ae,$,ie,ce,Be,xe,fe;return Gt(this,function(re){switch(re.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(n=e.ownerDocument,!n)throw new Error("Element is not attached to a Document");if(r=n.defaultView,!r)throw new Error("Document is not attached to a Window");return a={allowTaint:(E=t.allowTaint)!==null&&E!==void 0?E:!1,imageTimeout:(S=t.imageTimeout)!==null&&S!==void 0?S:15e3,proxy:t.proxy,useCORS:(D=t.useCORS)!==null&&D!==void 0?D:!1},i=_h({logging:(T=t.logging)!==null&&T!==void 0?T:!0,cache:t.cache},a),s={windowWidth:(F=t.windowWidth)!==null&&F!==void 0?F:r.innerWidth,windowHeight:(U=t.windowHeight)!==null&&U!==void 0?U:r.innerHeight,scrollX:(Y=t.scrollX)!==null&&Y!==void 0?Y:r.pageXOffset,scrollY:(X=t.scrollY)!==null&&X!==void 0?X:r.pageYOffset},A=new Aa(s.scrollX,s.scrollY,s.windowWidth,s.windowHeight),l=new Mte(i,A),c=(j=t.foreignObjectRendering)!==null&&j!==void 0?j:!1,u={allowTaint:(K=t.allowTaint)!==null&&K!==void 0?K:!1,onclone:t.onclone,ignoreElements:t.ignoreElements,inlineImages:c,copyStyles:c},l.logger.debug("Starting document clone with size "+A.width+"x"+A.height+" scrolled to "+-A.left+","+-A.top),d=new x2(l,e,u),f=d.clonedReferenceElement,f?[4,d.toIFrame(n,A)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return p=re.sent(),h=n1(f)||Hee(f)?mq(f.ownerDocument):Md(l,f),g=h.width,B=h.height,m=h.left,v=h.top,w=Hte(l,f,t.backgroundColor),y={canvas:t.canvas,backgroundColor:w,scale:($=(Ae=t.scale)!==null&&Ae!==void 0?Ae:r.devicePixelRatio)!==null&&$!==void 0?$:1,x:((ie=t.x)!==null&&ie!==void 0?ie:0)+m,y:((ce=t.y)!==null&&ce!==void 0?ce:0)+v,width:(Be=t.width)!==null&&Be!==void 0?Be:Math.ceil(g),height:(xe=t.height)!==null&&xe!==void 0?xe:Math.ceil(B)},c?(l.logger.debug("Document cloned, using foreign object rendering"),C=new Qte(l,y),[4,C.render(f)]):[3,3];case 2:return b=re.sent(),[3,5];case 3:return l.logger.debug("Document cloned, element located at "+m+","+v+" with size "+g+"x"+B+" using computed rendering"),l.logger.debug("Starting DOM parsing"),_=s4(l,f),w===_.styles.backgroundColor&&(_.styles.backgroundColor=ta.TRANSPARENT),l.logger.debug("Starting renderer for element at "+y.x+","+y.y+" with size "+y.width+"x"+y.height),C=new xte(l,y),[4,C.render(_)];case 4:b=re.sent(),re.label=5;case 5:return(!((fe=t.removeContainer)!==null&&fe!==void 0)||fe)&&(x2.destroy(p)||l.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),l.logger.debug("Finished rendering"),[2,b]}})})},Hte=function(e,t,n){var r=t.ownerDocument,a=r.documentElement?uA(e,getComputedStyle(r.documentElement).backgroundColor):ta.TRANSPARENT,i=r.body?uA(e,getComputedStyle(r.body).backgroundColor):ta.TRANSPARENT,s=typeof n=="string"?uA(e,n):n===null?ta.TRANSPARENT:4294967295;return t===r.documentElement?za(a)?za(i)?s:i:a:s};const Rte=o.defineComponent({__name:"CaptureButton",props:hq,setup(e){const t=e,{t:n}=J(),r=o.ref(null);o.onMounted(()=>{qe(r.value,{content:n("general.captureImage"),arrow:!0})});function a(){console.log(t.element.tagName),Nte(t.element,{imageTimeout:1e4,allowTaint:!0,foreignObjectRendering:!0}).then(l=>{console.log(l),i(l.toDataURL(),"file-name.png")})}function i(l,c){const u=document.createElement("a");typeof u.download!="string"?window.open(l):(u.href=l,u.download=c,A(s,u))}function s(l){l.click()}function A(l,c){document.body.appendChild(c),l(c),document.body.removeChild(c)}return(l,c)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:a},[o.createVNode(o.unref(ke),{icon:"camera"})],512)]))}});const Vte=M(Rte,[["__scopeId","data-v-4b809ad3"]]),Kte={class:"top"},$te={class:"top-left"},zte={key:1,class:"buttons"},Wte={class:"buttons no-scrollbar"},Gte=o.defineComponent({__name:"DeckPreview",props:pq,emits:["click:share","click:edit-name","click:update-privacy","click:delete","click:save"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(),i=o.ref(n.deckName??Yh(n.deckCode)),s=o.ref(!1),A=o.computed(()=>n.deck?n.deck:Bt(n.deckCode)),l=o.computed(()=>n.cards?n.cards:Zt(A.value)),c=o.computed(()=>{var f;const d=(f=na(l.value,A.value,1)[0])==null?void 0:f.cardCode;return{"--deck-summary-background":`url(${ge().callbacks.cardImageCallback(d??"",gt.Full)})`}});function u(){console.log(n.deckCode),t("click:save",{deckName:i.value,deckCode:n.deckCode,isPrivate:s.value})}return(d,f)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-preview no-scrollbar",n.isSaving?"saving":""])},[o.createElementVNode("div",Kte,[o.createElementVNode("div",$te,[n.isSaving?o.withDirectives((o.openBlock(),o.createElementBlock("input",{key:0,class:"deck-name","onUpdate:modelValue":f[0]||(f[0]=p=>i.value=p)},null,512)),[[o.vModelText,i.value]]):(o.openBlock(),o.createElementBlock("div",zte,[o.createVNode(Vte,{element:a.value},null,8,["element"])]))]),o.createElementVNode("div",Wte,[o.createVNode(Ao,o.mergeProps(n.deckButtonsProps,{class:"desktop deck-buttons","onClick:updatePrivacy":f[1]||(f[1]=p=>t("click:update-privacy")),"onClick:editName":f[2]||(f[2]=p=>t("click:edit-name")),"onClick:delete":f[3]||(f[3]=p=>t("click:delete")),"onClick:share":f[4]||(f[4]=p=>t("click:share"))}),null,16),o.createVNode(o.unref(I1),o.mergeProps(n.deckButtonsProps,{class:"mobile dropdown","onClick:updatePrivacy":f[5]||(f[5]=p=>t("click:update-privacy")),"onClick:editName":f[6]||(f[6]=p=>t("click:edit-name")),"onClick:delete":f[7]||(f[7]=p=>t("click:delete")),"onClick:share":f[8]||(f[8]=p=>t("click:share"))}),null,16),n.isSaving?(o.openBlock(),o.createElementBlock("div",{key:0,class:"fancy-button",onClick:u},o.toDisplayString(o.unref(r)("general.save")),1)):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:"deck-summary-wrapper",style:o.normalizeStyle(c.value),ref_key:"deckSummary",ref:a},[o.createVNode(Dd,{deck:A.value},null,8,["deck"])],4)],2))}});const Gd=M(Gte,[["__scopeId","data-v-5716c6cc"]]),jte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},Yte={class:"deck-highlight-eye"},qte=o.defineComponent({__name:"DeckHighlightEye",props:jte,setup(e){const t=e,n=o.ref(null),r=o.ref(null),a=o.ref(!1),i=o.ref(!1),s=o.computed(()=>t.deck?t.deck:Bt(t.deckCode)),A=o.computed(()=>t.cards?t.cards:Zt(s.value));o.onMounted(()=>{var c;qe((c=r.value)==null?void 0:c.$el,{content:n.value,arrow:!0,duration:0,maxWidth:"90vw",touch:!1,onShow(){a.value=!0},onCreate(u){A.value.length<1||u.popper.style.setProperty("--tippy-background",`url(${ge().callbacks.cardImageCallback(na(A.value,s.value,1)[0].cardCode??"",gt.Full)})`)}})});function l(){i.value=!0}return(c,u)=>(o.openBlock(),o.createElementBlock("div",Yte,[o.createVNode(o.unref(ke),{ref_key:"eyeIcon",ref:r,icon:"eye",class:"icon",onClick:l},null,512),o.createElementVNode("div",{ref_key:"deckSummary",ref:n,class:"deck-summary-wrapper"},[a.value?(o.openBlock(),o.createBlock(Dd,{key:0,class:"deck-summary",deck:s.value,"cards-prop":A.value},null,8,["deck","cards-prop"])):o.createCommentVNode("",!0)],512),o.createVNode(si,{"show-modal":i.value,"onUpdate:showModal":u[0]||(u[0]=d=>i.value=d)},{default:o.withCtx(()=>[o.createVNode(Gd,{cards:A.value,deck:s.value,"deck-code":t.deckCode,"deck-buttons-props":t.deckButtonsProps},null,8,["cards","deck","deck-code","deck-buttons-props"])]),_:1},8,["show-modal"])]))}});const jd=M(qte,[["__scopeId","data-v-a655bad6"]]),Xte={cards:{type:Array,required:!1},deckCode:{type:String,required:!0,default:""},deck:{type:Object,required:!1},showEye:{type:Boolean,required:!1,default:!0},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},Jte=o.defineComponent({__name:"DeckHighlight",props:Xte,setup(e){const t=e,n=o.computed(()=>t.deck?t.deck:Bt(t.deckCode)),r=o.computed(()=>t.cards?t.cards:Zt(n.value)),a=o.computed(()=>WA(r.value)),i=o.computed(()=>r.value.filter(s=>Ls(s)));return(s,A)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-highlight",t.showEye?"":"hide-eye"])},[o.createVNode(il,{class:"deck-highlight-regions",regions:a.value},null,8,["regions"]),o.createVNode(sl,{class:"deck-highlight-cards",cards:i.value,regions:a.value},null,8,["cards","regions"]),o.createVNode(jd,{class:"deck-highlight-eye",cards:r.value,deck:n.value,"deck-code":t.deckCode,"deck-buttons-props":t.deckButtonsProps},null,8,["cards","deck","deck-code","deck-buttons-props"])],2))}});const la=M(Jte,[["__scopeId","data-v-7d2e0511"]]),Zte={cardCodes:{type:Array,required:!0,default:[]},regions:{type:Array,required:!0,default:[]},filters:{type:Object,required:!0,default:{sampleSizeFilters:[],serverFilters:[],timeFilters:[],formatFilters:[],queueFilters:[]}}},w4=o.defineComponent({__name:"ArchetypeSidePanel",props:Zte,emits:["update:filters"],setup(e,{emit:t}){const n=e,r=o.reactive(n.filters);o.watch(r,()=>{t("update:filters",r)});const a=o.computed(()=>{var s;return(s=ve().dataJson.formats[r.formatFilters[0]??"Standard"])==null?void 0:s.availableQueues});function i(){for(const[,s]of Object.entries(r))s.splice(0)}return(s,A)=>(o.openBlock(),o.createBlock(no,{"filter-object":n.filters,"onClear:filterObject":i},{default:o.withCtx(()=>[o.createVNode(id,{"card-codes":n.cardCodes,regions:n.regions},null,8,["card-codes","regions"]),o.createVNode(eo,{"filter-array":r.sampleSizeFilters,"onUpdate:filterArray":A[0]||(A[0]=l=>r.sampleSizeFilters=l)},null,8,["filter-array"]),o.createVNode(Wi,{"filter-array":r.timeFilters,"onUpdate:filterArray":A[1]||(A[1]=l=>r.timeFilters=l)},null,8,["filter-array"]),o.createVNode(to,{"filter-array":r.serverFilters,"onUpdate:filterArray":A[2]||(A[2]=l=>r.serverFilters=l)},null,8,["filter-array"]),o.createVNode(nl,{"filter-array":r.formatFilters,"onUpdate:filterArray":A[3]||(A[3]=l=>r.formatFilters=l)},null,8,["filter-array"]),o.createVNode(rl,{"filter-array":r.queueFilters,"onUpdate:filterArray":A[4]||(A[4]=l=>r.queueFilters=l),"available-queues":a.value},null,8,["filter-array","available-queues"])]),_:1},8,["filter-object"]))}}),ene={routerLink:{type:Object,required:!0,default:"404"},archetypeRouterLink:{type:Object,required:!1,default:"404"},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},type:{type:String,required:!0,default:"data"},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!1,default:1},wins:{type:Number,required:!1,default:1},comparedDeckCode:{type:String,required:!1,default:""},isPrivate:{type:Boolean,required:!1,default:!1},id:{type:Number,required:!1,default:1},name:{type:String,required:!1,default:""},updatedAt:{type:Number,required:!1,default:1},createdAt:{type:Number,required:!1,default:1}},tne={...Ib,difference:{type:Number,required:!0,default:1}},nne={class:"deck-difference-item"},rne=o.defineComponent({__name:"DeckDifferenceItem",props:tne,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",nne,[o.createVNode(fa,{"card-code-prop":t.cardCodeProp,"card-prop":t.cardProp,regions:t.regions,"ignore-card-item":t.ignoreCardItem,"router-link":t.routerLink},null,8,["card-code-prop","card-prop","regions","ignore-card-item","router-link"]),o.createElementVNode("div",{class:o.normalizeClass(["difference",t.difference>0?"positive":"negative"])},o.toDisplayString(`${t.difference>0?"+":""}${t.difference}`),3)]))}});const r1=M(rne,[["__scopeId","data-v-cdadc542"]]),ane={differences:{type:Array,required:!0,default:[]}},ine={class:"deck-differences no-scrollbar"},sne=o.defineComponent({__name:"DeckDifferences",props:ane,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",ine,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.differences,a=>(o.openBlock(),o.createBlock(r1,{key:a.cardCodeProp,"card-code-prop":a.cardCodeProp,"card-prop":a.cardProp,difference:a.difference,"ignore-card-item":a.ignoreCardItem,regions:a.regions,"router-link":a.routerLink},null,8,["card-code-prop","card-prop","difference","ignore-card-item","regions","router-link"]))),128))]))}});const a1=M(sne,[["__scopeId","data-v-e4cddaa9"]]),one=e=>(o.pushScopeId("data-v-c6070031"),e=e(),o.popScopeId(),e),Ane={class:"table-card-row-background-wrapper"},lne={class:"table-card-row-background"},cne=one(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),une=[cne],dne={class:"decks-row wrapper"},fne={class:"column-content"},pne={class:"column-content"},hne={class:"column-content"},mne={class:"column-content"},gne={key:2,class:"column-content"},vne={class:"column-content cost"},yne={key:3,class:"column-content deck-differences-column"},Bne=o.defineComponent({__name:"DecksRow",props:ene,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,r=o.inject(ri),a=o.ref(!1),i=o.computed(()=>Bt(n.deckCode)),s=o.computed(()=>Zt(i.value)),A=o.computed(()=>na(s.value,i.value,2).map(u=>ge().callbacks.cardImageCallback(u.cardCode,gt.Banner))),l=o.computed(()=>({showButtons:{deleteDeck:n.type==="built"?n.showOwnerButtons:!1,updateDeckPrivacy:n.type==="built"?n.showOwnerButtons:!1,editDeckName:n.type==="built"?n.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:n.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:n.deckCode,deckBuilderRouterLink:n.deckBuilderRouterLink,archetypeRouterLink:n.type==="built"?void 0:n.archetypeRouterLink,deckId:n.type==="built"?n.id:void 0,deckName:n.type==="built"?n.name:void 0,isPrivate:n.type==="built"?n.isPrivate:void 0})),c=o.computed(()=>{const u=[];if(n.type!=="similar")return u;const d=Bt(n.comparedDeckCode);for(const[f,p]of Object.entries(i.value))p!==d[f]&&u.push({cardCodeProp:f,difference:p-(d[f]??0),ignoreCardItem:!1,routerLink:ge().callbacks.cardCodeRouterLinkCallback(f)});for(const[f,p]of Object.entries(d))p===i.value[f]||u.some(h=>h.cardCodeProp===f)||u.push({cardCodeProp:f,difference:(i.value[f]??0)-p,ignoreCardItem:!1,routerLink:ge().callbacks.cardCodeRouterLinkCallback(f)});return u});return(u,d)=>{const f=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(f,{to:n.routerLink,class:"wrapper"},{default:o.withCtx(()=>{var p;return[o.createElementVNode("div",{class:"decks-row-wrapper wrapper",style:o.normalizeStyle({"--index":n.index})},[o.createElementVNode("div",Ane,[o.createElementVNode("div",lne,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(A.value,h=>(o.openBlock(),o.createElementBlock("div",{key:h,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${h})`})},une,4))),128))])]),o.createElementVNode("div",dne,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:d[0]||(d[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(la,{"deck-code":n.deckCode,deck:i.value,cards:s.value,"deck-buttons-props":{...l.value,showButtons:{...l.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck","cards","deck-buttons-props"])]),n.type==="data"||n.type==="similar"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",fne,o.toDisplayString(o.unref(Ce)(n.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(n.wins/n.matches)})`})},o.toDisplayString(o.unref(Ce)(n.wins/n.matches*100,1,3))+"% ",5)],64)):n.type==="built"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",pne,o.toDisplayString(n.name),1),o.createElementVNode("div",hne,o.toDisplayString(o.unref(r)(n.updatedAt).fromNow()),1),o.createElementVNode("div",mne,o.toDisplayString(o.unref(r)(n.createdAt).fromNow()),1)],64)):o.createCommentVNode("",!0),n.type!=="similar"?(o.openBlock(),o.createElementBlock("div",gne,[o.createVNode(bl,{class:"mana-curve-chart","deck-code":n.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!1,animation:!1},null,8,["deck-code"])])):o.createCommentVNode("",!0),o.createElementVNode("div",vne,o.toDisplayString((p=o.unref(nu)(i.value,!0)??o.unref(nu)(i.value,!1))==null?void 0:p.toLocaleString()),1),n.type==="similar"?(o.openBlock(),o.createElementBlock("div",yne,[o.createVNode(a1,{differences:c.value},null,8,["differences"])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["column-content options-button",a.value?"show":"hide"]),onClick:d[6]||(d[6]=o.withModifiers(h=>a.value=!a.value,["stop","prevent"]))},[o.createVNode(Ao,o.mergeProps({onClick:d[1]||(d[1]=o.withModifiers(()=>{},["stop","prevent"])),class:"deck-buttons"},l.value,{"onClick:updatePrivacy":d[2]||(d[2]=h=>t("click:update-privacy")),"onClick:editName":d[3]||(d[3]=h=>t("click:edit-name")),"onClick:delete":d[4]||(d[4]=h=>t("click:delete")),"onClick:share":d[5]||(d[5]=h=>t("click:share"))}),null,16),o.createVNode(o.unref(ke),{icon:"ellipsis-v"})],2)])],4)]}),_:1},8,["to"])}}});const El=M(Bne,[["__scopeId","data-v-c6070031"]]),wne={},bne={class:"icon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 172 172"},_ne=o.createStaticVNode('<g fill="none" stroke-miterlimit="10" style="mix-blend-mode:normal;"><g stroke="var(--color-primary-2)" stroke-width="20" stroke-linejoin="round"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M86 16.65C47.761 16.65 16.65 47.76 16.65 86c0 38.239 31.111 69.35 69.35 69.35 38.239 0 69.35-31.111 69.35-69.35 0-38.239-31.111-69.35-69.35-69.35m0-3.853c40.427 0 73.203 32.776 73.203 73.203S126.427 159.203 86 159.203 12.797 126.427 12.797 86 45.573 12.797 86 12.797z" fill="var(--color-primary)" stroke-width="17.92"></path><path d="M93.706 55.178a7.706 7.706 0 1 1-15.412 0 7.706 7.706 0 0 1 15.412 0zM97.558 120.675v3.853H74.442v-3.853h3.852v-42.38h-3.852v-3.853h19.264v46.233z" fill="var(--color-primary-2)" stroke-width="17.92"></path></g><path d="M8.944 163.056V8.944h154.112v154.112z"></path><g stroke-width="1" stroke-linejoin="miter"><path d="M86 157.277c-39.302 0-71.277-31.975-71.277-71.277S46.698 14.723 86 14.723 157.277 46.698 157.277 86 125.302 157.277 86 157.277z" fill="var(--color-background-1)"></path><path d="M86 16.65c38.239 0 69.35 31.111 69.35 69.35 0 38.239-31.111 69.35-69.35 69.35-38.239 0-69.35-31.111-69.35-69.35 0-38.239 31.111-69.35 69.35-69.35m0-3.853c-40.427 0-73.203 32.776-73.203 73.203S45.573 159.203 86 159.203 159.203 126.427 159.203 86 126.427 12.797 86 12.797z" fill="var(--color-background-1)"></path><path d="M86 47.472a7.706 7.706 0 1 0 0 15.411 7.706 7.706 0 0 0 0-15.411zM93.706 120.675V74.442H74.442v3.852h3.852v42.381h-3.852v3.853h23.116v-3.853z" fill="var(--color-primary-2)"></path></g></g>',1),Cne=[_ne];function kne(e,t){return o.openBlock(),o.createElementBlock("svg",bne,Cne)}const i1=M(wne,[["render",kne]]),Ene={...bb,routerLink:{type:Object,required:!0,default:{path:"/404"}}},Sne={class:"card-item-link-wrapper"},xne={key:0,class:"card-item-wrapper"},Fne={key:1,class:"card-item-wrapper"},Ine={class:"link-icon"},Tne=o.defineComponent({__name:"CardItemLinkWrapper",props:Ene,setup(e){const t=e;return(n,r)=>{const a=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",Sne,[n.isDeckBuilder?(o.openBlock(),o.createElementBlock("div",Fne,[o.createVNode(Pi,o.normalizeProps(o.guardReactiveProps(t)),null,16),o.createVNode(a,{class:"link-icon-link",to:t.routerLink},{default:o.withCtx(()=>[o.createElementVNode("div",Ine,[o.createVNode(i1)])]),_:1},8,["to"])])):(o.openBlock(),o.createElementBlock("div",xne,[o.createVNode(a,{to:t.routerLink},{default:o.withCtx(()=>[o.createVNode(Pi,o.normalizeProps(o.guardReactiveProps(t)),null,16)]),_:1},8,["to"])]))])}}});const Yd=M(Tne,[["__scopeId","data-v-89823586"]]),qd={items:{type:Array,required:!0,default:[]},fetchSeachResult:{type:Function,required:!0,default:()=>[]},loginLink:{type:String,required:!0,default:"/"},homeLink:{type:[String,Object],required:!0,default:"/"},links:{type:Object,required:!0,default:{gift:{path:"/404"},settings:{path:"/404"},profile:{path:"/404"}}}},Une={class:"navigation-top-desktop"},Dne={class:"left content"},Qne={class:"right content"},Lne=["href"],One=o.defineComponent({__name:"NavigationTopDesktop",props:qd,emits:["click:sign-in"],setup(e,{emit:t}){const n=e,{t:r}=J();return(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",Une,[o.createElementVNode("div",Dne,[o.createVNode(td,{"fetch-seach-result":n.fetchSeachResult,class:"search-bar"},null,8,["fetch-seach-result"]),o.renderSlot(a.$slots,"default",{},void 0,!0)]),o.createElementVNode("div",Qne,[o.createVNode(xm,{class:"social-links"}),o.createVNode(TA,{class:"language-selection"}),o.unref(Kt)().user?(o.openBlock(),o.createBlock(s,{key:0,to:n.links.profile,class:"profile-name"},{default:o.withCtx(()=>{var A;return[o.createTextVNode(o.toDisplayString((A=o.unref(Kt)().user)==null?void 0:A.name),1)]}),_:1},8,["to"])):(o.openBlock(),o.createElementBlock("a",{key:1,onAuxclick:i[0]||(i[0]=A=>t("click:sign-in")),onPointerdown:i[1]||(i[1]=A=>t("click:sign-in")),onClick:i[2]||(i[2]=A=>t("click:sign-in")),target:"_blank",href:n.loginLink,class:"fancy-button"},o.toDisplayString(o.unref(r)("general.signIn")),41,Lne))])])}}});const s1=M(One,[["__scopeId","data-v-e7708683"]]),Mne={card:{type:Object,required:!0,default:{associatedCardRefs:["06NX013T1"],regionRefs:["Noxus","06RU002"],attack:1,cost:2,health:1,description:"<link=keyword.PlaySkillMark><sprite name=SkillMark><style=Keyword>Play</style></link>: <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stun</style></link> an enemy or if it's already <link=keyword.Stun><sprite name=Stunned><style=Keyword>Stunned</style></link> deal 2 to it instead.",descriptionRaw:"Play: Stun an enemy or if it's already Stunned deal 2 to it instead.",levelupDescription:"",levelupDescriptionRaw:"",flavorText:`"Student: Sydell Kythera
|
|
891
891
|
Teacher: J. Willough
|
|
892
892
|
Report: I am spiderbit on left forearm. Sydell claims a misunderstanding, but his smirk belies his innocence. He is ordered to two weeks additional chores (refectory)."
|
|
893
|
-
- Ravenbloom discipline card`,artistName:"Polar Engine",name:"Spell Slinger",cardCode:"06NX013",keywords:["Fearsome"],keywordRefs:["Fearsome"],spellSpeedRef:"",rarityRef:"Common",subtypes:["SPIDER"],subtypeRefs:["SPIDER"],supertype:"",typeRef:"Unit",collectible:!0,set:"Set6",createdAt:"2022-09-09",updatedAt:"2022-09-14"}}},Nne={class:"card-similar-cards"},Pne=o.defineComponent({__name:"CardSimilarCards",props:Mne,setup(e){const t=e;function n(a,i,s){if(a.length===10&&s<a[0].points)return;let A=0;for(;A<a.length&&a[A].points<s;)A++;a.splice(A,0,{cardCode:i,points:s}),a.length>10&&a.splice(0,1)}const r=o.computed(()=>{const a=[],i=on().cardJsonObject;let s=0;for(const A in i){if(A===t.card.cardCode||t.card.collectible&&!i[A].collectible)continue;s=0;const l=i[A];for(const c of l.regionRefs)for(const u of t.card.regionRefs)c===u&&(s+=2);for(const c of l.subtypes)for(const u of t.card.subtypes)c===u&&(s+=2);for(const c of l.keywordRefs)for(const u of t.card.keywordRefs)c===u&&(s+=1);l.typeRef===t.card.typeRef&&(s+=3),l.rarityRef!=="None"&&l.rarityRef===t.card.rarityRef&&(s+=1),l.typeRef==="Unit"&&t.card.typeRef==="Unit"&&(s+=(9-Math.abs(l.attack-t.card.attack))/3,s+=(9-Math.abs(l.health-t.card.health))/3),s+=(12-Math.abs(l.cost-t.card.cost))/3,n(a,A,s)}return a.reverse().map(A=>on().cardJsonObject[A.cardCode])});return(a,i)=>(o.openBlock(),o.createElementBlock("div",Nne,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,s=>(o.openBlock(),o.createBlock(o.unref(Yd),{key:s.cardCode,"card-prop":s,"is-root":!0,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(s.cardCode)},null,8,["card-prop","router-link"]))),128))]))}});const b4=M(Pne,[["__scopeId","data-v-4db54a8d"]]),Hne={logoType:{type:String,required:!0,default:"logo-and-text"}},_4=e=>(o.pushScopeId("data-v-bb0b24b5"),e=e(),o.popScopeId(),e),Rne={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 862.33 136.654"},Vne=o.createStaticVNode('<path d="M0 2.947h18.418V115.29h77.35v18.416H0Z" data-v-bb0b24b5></path><path d="M205.729 0a68.327 68.327 0 1 1-68.326 68.331A68.3 68.3 0 0 1 205.729 0Zm0 118.236a49.908 49.908 0 1 0-49.909-49.909 49.948 49.948 0 0 0 49.909 49.904Z" data-v-bb0b24b5></path><path d="M396.538 2.947a42.211 42.211 0 0 1 41.991 41.991 41.554 41.554 0 0 1-32.046 40.7l29.1 48.067H414.22l-28.363-46.962h-32.046v46.962h-18.416V68.326h39.413l-39.413-65.38Zm0 65.38a23.481 23.481 0 1 0 0-46.962h-28.73l28.363 46.962Z" data-v-bb0b24b5></path><path d="M495.266 115.291h18.418v18.416h-18.418Z" data-v-bb0b24b5></path><path d="M685.517 60.778v72.928h-18.418v-6.443a68.378 68.378 0 1 1 12.894-107.926l-12.894 13.076a49.909 49.909 0 1 0 0 71.827V79.192h-49.726V60.779Z" data-v-bb0b24b5></path><path d="M862.33 60.778v72.928h-18.417v-6.443a68.379 68.379 0 1 1 12.89-107.926l-12.89 13.076a49.909 49.909 0 1 0 0 71.827V79.192H794.19V60.779Z" data-v-bb0b24b5></path>',6),Kne=[Vne],$ne={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 926.43 201.096"},zne=o.createStaticVNode('<path d="M251.125 49.347h14.423v87.978h60.574v14.422h-75Z" data-v-bb0b24b5></path><path d="M412.235 47.039a53.507 53.507 0 1 1-53.508 53.507 53.487 53.487 0 0 1 53.508-53.507Zm0 92.592a39.084 39.084 0 1 0-39.085-39.084 39.115 39.115 0 0 0 39.085 39.084Z" data-v-bb0b24b5></path><path d="M561.66 49.347a33.056 33.056 0 0 1 32.884 32.884 32.542 32.542 0 0 1-25.1 31.873l22.787 37.642h-16.729l-22.212-36.777h-25.1v36.777h-14.422v-51.2h30.865l-30.865-51.2Zm0 51.2a18.388 18.388 0 1 0 0-36.776h-22.5l22.211 36.776Z" data-v-bb0b24b5></path><path d="M638.976 137.325h14.423v14.422h-14.423Z" data-v-bb0b24b5></path><path d="M787.964 94.635v57.111h-14.422V146.7a53.547 53.547 0 1 1 10.1-84.518l-10.1 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M926.429 94.635v57.111h-14.423V146.7A53.548 53.548 0 1 1 922.1 62.182l-10.094 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z" data-v-bb0b24b5></path><path d="M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z" data-v-bb0b24b5></path>',8),Wne=[zne],Gne={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201.1 201.12"},jne=_4(()=>o.createElementVNode("path",{d:"M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z"},null,-1)),Yne=_4(()=>o.createElementVNode("path",{d:"M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z"},null,-1)),qne=[jne,Yne],Xne=o.defineComponent({__name:"LogoIcon",props:Hne,setup(e){const t=e;return(n,r)=>t.logoType==="text-only"?(o.openBlock(),o.createElementBlock("svg",Rne,Kne)):t.logoType==="logo-and-text"?(o.openBlock(),o.createElementBlock("svg",$ne,Wne)):(o.openBlock(),o.createElementBlock("svg",Gne,qne))}});const Js=M(Xne,[["__scopeId","data-v-bb0b24b5"]]),Jne={class:"dashboard-sign-up"},Zne={class:"top"},ere={class:"subtitle"},tre={class:"fancy-button"},nre=o.defineComponent({__name:"DashboardSignUp",setup(e){const{t}=J();return(n,r)=>(o.openBlock(),o.createElementBlock("div",Jne,[o.createElementVNode("div",Zne,[o.createVNode(Js,{"logo-type":"text-only",class:"logo-icon"}),o.createElementVNode("div",ere,o.toDisplayString(o.unref(t)("general.becomeTheMaster")),1)]),o.createElementVNode("div",tre,o.toDisplayString(o.unref(t)("general.signIn")),1)]))}});const C4=M(nre,[["__scopeId","data-v-a8d77f09"]]),rre={deckCode:{type:String,required:!0,default:""},gameMode:{type:String,required:!0,default:""},gameType:{type:String,required:!0,default:""},isAttackingFirst:{type:Boolean,required:!0,default:!0},isVictory:{type:Boolean,required:!0,default:""},opponentDeckCode:{type:String,required:!0,default:""},opponentName:{type:String,required:!0,default:""},playedAt:{type:Date,required:!0,default:new Date},opponentRouterLink:{type:Object,required:!0,default:""},archetypeRouterLink:{type:Object,required:!0,default:""},deckBuilderRouterLink:{type:Object,required:!0,default:""},opponentArchetypeRouterLink:{type:Object,required:!0,default:""},opponentDeckBuilderRouterLink:{type:Object,required:!0,default:""}},are=e=>(o.pushScopeId("data-v-ded4c38a"),e=e(),o.popScopeId(),e),ire={class:"match-item"},sre=are(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),ore=[sre],Are={class:"details"},lre={class:"match-details"},cre={class:"game-type"},ure={class:"time"},dre={class:"main"},fre={class:"container"},pre={class:"container"},hre=o.defineComponent({__name:"MatchItem",props:rre,setup(e){const t=e,{t:n}=J(),r=o.inject(ri),a=o.computed(()=>Bt(t.deckCode)),i=o.computed(()=>Bt(t.opponentDeckCode)),s=o.computed(()=>[na(Zt(a.value),a.value,1)[0],na(Zt(i.value),i.value,1)[0]].map(c=>ye().callbacks.cardImageCallback(c.cardCode,gt.Banner))),A=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.archetypeRouterLink})),l=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:t.opponentDeckCode,deckBuilderRouterLink:t.opponentDeckBuilderRouterLink,archetypeRouterLink:t.opponentArchetypeRouterLink}));return(c,u)=>{const d=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",ire,[o.createElementVNode("div",{class:"background",style:o.normalizeStyle({"--background-image":`url(${s.value[0]})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,f=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${f})`})},ore,4))),128))],4),o.createElementVNode("div",Are,[o.createElementVNode("div",lre,[o.createElementVNode("div",cre,o.toDisplayString(t.gameType)+" - "+o.toDisplayString(t.gameMode),1),o.createElementVNode("div",ure,o.toDisplayString(o.unref(r)(t.playedAt).fromNow()),1)]),o.createVNode(d,{to:t.opponentRouterLink,class:"opponent-details"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.opponentName),1)]),_:1},8,["to"])]),o.createElementVNode("div",dre,[o.createElementVNode("div",fre,[o.createVNode(la,{class:"deck-highlight",deck:a.value,"deck-code":t.deckCode,"deck-buttons-props":A.value},null,8,["deck","deck-code","deck-buttons-props"])]),o.createElementVNode("div",{class:"container results",style:o.normalizeStyle({color:t.isVictory?"var(--color-good)":"var(--color-bad)"})},o.toDisplayString(t.isVictory?o.unref(n)("general.victory"):o.unref(n)("general.defeat")),5),o.createElementVNode("div",pre,[o.createVNode(la,{class:"deck-highlight opponent",deck:i.value,"deck-code":t.opponentDeckCode,"deck-buttons-props":l.value},null,8,["deck","deck-code","deck-buttons-props"])])])])}}});const k4=M(hre,[["__scopeId","data-v-ded4c38a"]]),mre={players:{type:Array,required:!0,default:[]}},gre={class:"leaderboard-top-10-region"},vre=o.defineComponent({__name:"LeaderboardTop10Region",props:mre,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",gre,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.players,a=>(o.openBlock(),o.createBlock($t,{key:`${a.name}${a.rank}`,"card-code-prop":a.selected_banner_card??void 0,color:a.selected_banner_color??"var(--color-background-2-rgb)","mana-number":a.rank,name:a.name,"quantity-number":a.lp,"ignore-card-item":!0,"router-link":o.unref(ye)().callbacks.playerRouterLinkCallback(a)},null,8,["card-code-prop","color","mana-number","name","quantity-number","router-link"]))),128))]))}});const o1=M(vre,[["__scopeId","data-v-41d779ee"]]),yre={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:null},favorite_deck:{type:String,required:!0,default:null},lp:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:null},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},selected_banner_card:{type:String,required:!1,default:null},selected_banner_color:{type:String,required:!1,default:null},server:{type:String,required:!0,default:"americas"},updated_at:{type:String,required:!0,default:""},user_id:{type:Number,required:!0,default:null},wins:{type:Number,required:!0,default:null},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},Bre={class:"leaderboard-detail-row-background-wrapper"},wre={class:"leaderboard-detail-row-background"},bre={class:"leaderboard-detail-row wrapper"},_re={key:1,class:"column-content"},Cre={key:3,class:"column-content"},kre={key:4,class:"column-content"},Ere={key:6,class:"column-content deck-highlight-wrapper"},Sre={key:1},xre=o.defineComponent({__name:"LeaderboardDetailRow",props:yre,setup(e){const t=e,n=o.computed(()=>t.selected_banner_card?["",ye().callbacks.cardImageCallback(t.selected_banner_card,gt.Banner)]:[]),r=o.computed(()=>t.change===null||t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(s,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"leaderboard-detail-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",Bre,[o.createElementVNode("div",wre,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,A=>(o.openBlock(),o.createElementBlock("div",{key:A,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${A})`})},null,4))),128))])]),o.createElementVNode("div",bre,[t.shownColumns.player?(o.openBlock(),o.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:i[0]||(i[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode($t,{class:"card-slice-item","card-code-prop":t.selected_banner_card??void 0,color:t.selected_banner_color??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank,name:t.name,"maintain-aspect-ratio":!1,"router-link":t.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):o.createCommentVNode("",!0),t.shownColumns.lp?(o.openBlock(),o.createElementBlock("div",_re,o.toDisplayString(o.unref(Ce)(t.lp,0,10)),1)):o.createCommentVNode("",!0),t.shownColumns.change?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["column-content change",r.value])},[t.change!==null?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(t.change?o.unref(Ce)(Math.abs(t.change),0,10):""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[],64))],2)):o.createCommentVNode("",!0),t.shownColumns.wins?(o.openBlock(),o.createElementBlock("div",Cre,o.toDisplayString(o.unref(Ce)(t.wins)),1)):o.createCommentVNode("",!0),t.shownColumns.matches?(o.openBlock(),o.createElementBlock("div",kre,o.toDisplayString(o.unref(Ce)(t.matches)),1)):o.createCommentVNode("",!0),t.shownColumns.winrate?(o.openBlock(),o.createElementBlock("div",{key:5,class:"column-content",style:o.normalizeStyle({color:t.wins===null||t.matches===null?"var(--color-primary-2)":`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(t.matches===null||t.wins===null?"-":o.unref(Ce)(t.wins/t.matches*100,1,3)+"%"),5)):o.createCommentVNode("",!0),t.shownColumns.deck?(o.openBlock(),o.createElementBlock("div",Ere,[t.favorite_deck?(o.openBlock(),o.createBlock(la,{key:0,"deck-code":t.favorite_deck},null,8,["deck-code"])):(o.openBlock(),o.createElementBlock("span",Sre,"-"))])):o.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const A1=M(xre,[["__scopeId","data-v-2ce9c554"]]),Fre={routerLink:{type:Object,required:!0,default:{path:"/404"}},playerRouterLink:{type:Object,required:!1,default:{path:"/404"}},deckCode:{type:String,required:!0,default:""},type:{type:String,required:!0,default:"built"},wins:{type:Number,required:!1,default:0},matches:{type:Number,required:!1,default:0},deckId:{type:Number,required:!1,default:0},userName:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:0},deckName:{type:String,required:!1,default:""},updatedAt:{type:Date,required:!1,default:new Date},archetypeRouterLink:{type:Object,required:!1,default:void 0},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},isPrivate:{type:Boolean,required:!1,default:!1}};const Ire={},Tre=e=>(o.pushScopeId("data-v-5b8e191d"),e=e(),o.popScopeId(),e),Ure={xmlns:"http://www.w3.org/2000/svg",viewBox:"25.21 66.56 353.98 269.42"},Dre=Tre(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M95 67.249c-9.442 3.237-27.165 14.29-35.055 21.862-11.985 11.504-13.495 17.449-8.521 33.553 2.884 9.338 3.125 12.31 1.653 20.336-.565 3.08-1.282 7.497-1.593 9.816-.654 4.859-1.507 6.968-3.167 7.827-3.347 1.731-6.07-.959-12.46-12.308-3.227-5.732-5.32-5.733-7.478-.002-2.901 7.705-4.229 34.074-2.178 43.267 2.612 11.708 12.146 22.248 23.887 26.408 8.91 3.158 11.435 5.049 14.233 10.662 8.79 17.627 7.541 23.49-4.121 19.348-1.98-.704-5.67-2.014-8.2-2.912-14.356-5.094-16.5 2.124-5.514 18.561 11.421 17.088 27.745 24.899 44.255 21.178 8.934-2.013 10.069-1.524 24.2 10.428 6.649 5.624 4.594 9.455-6.606 12.316-12.406 3.169-15.535 4.779-15.535 7.993 0 5.469 18.596 14.356 38.74 18.513l8.26 1.705 9.6-.008c15.176-.013 24.599-3.381 27.766-9.923 3.23-6.671-3.138-11.752-20.405-16.279-12.779-3.351-30.021-11.869-38.294-18.917-1.247-1.063-3.897-3.157-5.888-4.655-4.364-3.282-4.942-3.837-11.668-11.218-11.085-12.163-22.048-27.835-28.466-40.688-3.51-7.033-9.477-26.526-11.236-36.712-.456-2.64-1.19-6.571-1.631-8.736-2.292-11.243-2.558-44.967-.409-51.864 1.238-3.974 3.331-7.113 8.743-13.113 5.167-5.728 14.42-17.676 17.042-22.003C102.408 72.867 105.053 63.804 95 67.249m208.422.186c-3.908 3.908 15.994 38.934 31.232 54.965 10.996 11.569 10.723 10.583 10.696 38.6-.019 19.623-.295 24.066-1.963 31.6-.536 2.42-1.261 5.93-1.612 7.8-2.746 14.637-10.641 36.205-16.189 44.223-.904 1.308-3.281 4.807-5.282 7.777-10.021 14.873-21.298 27.434-32.304 35.985-8.729 6.78-14.267 10.233-24.2 15.088-5.783 2.826-8.281 3.691-18.309 6.339-18.029 4.761-23.977 11.711-16.463 19.235 10.208 10.222 41.826 8.98 67.937-2.669 18.937-8.448 18.603-13.956-1.126-18.585-11.879-2.787-13.761-6.768-6.284-13.29 10.684-9.318 15.331-11.406 22.045-9.904 19.751 4.416 38.64-5.948 49.204-26.999 7.093-14.133 2.492-17.531-14.547-10.743-14.009 5.581-15.808 2.355-8.334-14.948 3.515-8.137 5.055-9.639 13.261-12.938 12.256-4.926 18.075-9.526 22.289-17.62 5.112-9.82 6.884-21.96 4.955-33.951-.425-2.64-.978-6.6-1.229-8.8-1.713-15.016-5.073-17.902-10.183-8.747-8.477 15.19-14.387 14.824-15.445-.955-.217-3.244-.773-7.942-1.234-10.441-1.032-5.581-.845-7.054 2.093-16.489 4.123-13.244 3.044-19.481-4.99-28.827-11.239-13.075-39.907-29.817-44.018-25.706M154.939 85.232c-3.352.569-6.053 1.748-19.923 8.695-19.225 9.629-19.157 9.528-16.851 24.998.866 5.807 1.256 10.746 2.045 25.875.132 2.53.594 6.94 1.026 9.8.433 2.86 1.057 8.516 1.389 12.568.904 11.063 1.161 11.837 5.636 16.979 4.078 4.685 5.623 6.898 6.554 9.385 3.192 8.532 2.461 17.086-2.219 25.952-4.076 7.723-4.323 11.769-1.59 26.116.523 2.75 1.15 7.416 1.392 10.369.858 10.47 1.649 11.962 8.002 15.115 3.337 1.656 44.33 18.375 56 22.839 5.951 2.277 6.046 2.253 32.8-8.361 37.31-14.801 37.429-14.853 39.694-17.327 1.98-2.162 3.87-11.183 4.91-23.435.346-4.07.906-9.11 1.245-11.2.888-5.479.613-6.76-3.053-14.2-6.949-14.101-6.029-23.115 3.597-35.251 5.448-6.868 6.466-11.089 7.811-32.387.335-5.301.967-11.781 1.404-14.4.437-2.619.971-7.732 1.186-11.362.214-3.63.597-9.435.85-12.9.575-7.874.303-9.161-2.449-11.613-2.137-1.902-25.779-13.911-30.595-15.54L251 85l-47-.059c-25.85-.032-47.928.099-49.061.291m58.368 27.111c31.052 5.446 39.083 34.191 18.288 65.457-6.499 9.772-6.864 11.713-3.691 19.6.885 2.2 4.129 10.93 7.209 19.4 6.148 16.906 11.122 29.697 12.978 33.378C252.452 258.825 249.46 261 233.2 261c-15.701 0-17.591-1.169-15.554-9.621 1.257-5.212-1.044-13.36-9.338-33.066-3.593-8.535-8.291-9.515-11.759-2.453l-1.149 2.34v27.6l1.543 4.506c3.059 8.927 1.215 10.438-13.143 10.775-17.559.412-20.099-1.187-16.9-10.64l1.3-3.841V131l-1.322-3.6c-4.295-11.694-3.493-14.57 4.276-15.338 4.722-.467 39.199-.237 42.153.281m-15.188 22.413c-2.764 1.746-2.719 1.382-2.719 21.844 0 17.841.025 18.442.822 19.799 1.436 2.445 3.249 2.141 6.676-1.119 11.294-10.747 15.557-31.235 7.868-37.817-3.234-2.768-10.192-4.257-12.647-2.707"},null,-1)),Qre=[Dre];function Lre(e,t){return o.openBlock(),o.createElementBlock("svg",Ure,Qre)}const l1=M(Ire,[["render",Lre],["__scopeId","data-v-5b8e191d"]]);const Ore={},Mre=e=>(o.pushScopeId("data-v-5b6f3d5e"),e=e(),o.popScopeId(),e),Nre={xmlns:"http://www.w3.org/2000/svg",viewBox:"58.93 70.36 282.28 264.88"},Pre=Mre(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M74.274 70.98C70.143 72.453 70 73.187 70 92.989c0 21.375-.191 20.705 7.953 27.937 2.556 2.269 6.54 5.914 8.854 8.1 2.315 2.186 5.915 5.497 8 7.359 2.086 1.861 5.953 5.468 8.593 8.015 2.64 2.547 6.42 5.963 8.4 7.591 1.98 1.628 5.94 5.133 8.8 7.788 2.86 2.654 7 6.432 9.2 8.395 2.2 1.962 5.98 5.503 8.4 7.868s6.59 6.158 9.268 8.429c4.882 4.142 12.716 11.282 23.838 21.729 3.28 3.08 7.792 7.123 10.028 8.985 2.236 1.861 5.776 5.021 7.866 7.021s5.69 5.329 8 7.396c2.31 2.068 6.81 6.22 10 9.226 3.19 3.007 7.69 7.081 10 9.053 21.285 18.171 21.513 18.953 9.193 31.537-11.486 11.732-11.469 11.443-1.589 26.173 10.712 15.973 10.896 15.947 20.619-2.991 11.834-23.052 13.416-25.365 25.434-37.203 11.725-11.549 16.26-14.348 43.754-26.997 11.527-5.303 11.173-7.25-3.018-16.595-15.492-10.2-15.171-10.208-26.226.594-13.433 13.125-12.533 13.445-37.919-13.489-3.986-4.229-12.558-13.143-19.048-19.807-6.49-6.665-13.69-14.274-16-16.909-2.31-2.635-9.78-10.466-16.6-17.402-6.82-6.936-15.279-15.667-18.799-19.402-3.519-3.734-11.46-11.95-17.645-18.256-6.186-6.306-13.297-13.768-15.802-16.581-20.002-22.467-26.5-28.126-33.898-29.522-4.553-.859-33.002-.901-35.382-.051m216.926.059c-7.757 1.18-15.308 7.452-32.457 26.961-2.998 3.41-10.947 11.813-17.664 18.674-18.498 18.89-18.283 16.816-3.329 32.126 5.05 5.17 11.341 11.83 13.981 14.8 10.629 11.958 10.819 11.943 25.898-2.122 3.206-2.991 7.616-6.926 9.8-8.745 2.184-1.819 6.041-5.312 8.571-7.763 4.366-4.231 7.244-6.886 21.639-19.97 13.379-12.161 12.447-9.635 12.278-33.282-.166-23.132 1.735-21.089-19.717-21.188-11.529-.052-16.118.07-19 .509M100.353 214.552c-2.773.991-20.47 12.72-22.081 14.635-1.619 1.924-1.444 3.394.643 5.394 1.846 1.768 16.397 9.364 26.085 13.616 11.889 5.218 13.609 6.491 26.829 19.866 11.076 11.206 10.481 10.327 20.611 30.449 11.967 23.77 11.22 23.54 22.788 7.024 10.227-14.603 10.258-13.976-1.248-25.724-10.551-10.773-10.909-12.12-5.142-19.314 4.67-5.824 3.236-8.817-9.202-19.218-2.55-2.132-6.976-6.088-9.836-8.791-8.553-8.083-10.094-8.421-16.842-3.693-6.031 4.224-8.258 3.44-18.406-6.477-8.442-8.25-10.183-9.202-14.199-7.767m-3.956 64.232c-2.342.689-4.018 2.019-10.527 8.355-3.778 3.678-8.94 8.499-11.47 10.715-7.557 6.617-12.117 11.625-13.871 15.235-4.825 9.931 1.8 21.016 12.924 21.628 6.239.343 9.298-1.455 19.527-11.475 3.971-3.89 9.903-9.585 13.182-12.657 13.369-12.524 13.444-13.102 3.039-23.437-7.544-7.493-10.098-9.161-12.804-8.364m203.369.571c-2.737 1.275-13.946 12.139-15.534 15.057-2.288 4.204-1.446 5.641 9.351 15.954 4.28 4.089 10.49 10.054 13.8 13.257 13.601 13.162 21.004 14.833 29.242 6.6 8.552-8.547 5.312-18.062-11.025-32.369-2.53-2.215-7.718-7.063-11.529-10.773-8.942-8.704-10.453-9.52-14.305-7.726"},null,-1)),Hre=[Pre];function Rre(e,t){return o.openBlock(),o.createElementBlock("svg",Nre,Hre)}const c1=M(Ore,[["render",Rre],["__scopeId","data-v-5b6f3d5e"]]);const Vre={},Kre=e=>(o.pushScopeId("data-v-81223df9"),e=e(),o.popScopeId(),e),$re={xmlns:"http://www.w3.org/2000/svg",viewBox:"5.25 32.41 384.35 392.23"},zre=Kre(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M196.56 32.706c-.242.162-.643.68-.891 1.151-.464.882-6.181 23.37-7.663 30.143-2.029 9.277-13.207 54.007-16.187 64.776-2.401 8.677-2.227 10.411 1.102 11.036 2.465.462 8.894-4.762 13.798-11.212 1.004-1.32 2.566-3.21 3.473-4.2.906-.99 2.417-2.935 3.358-4.322 2.851-4.205 4.112-4.166 7.292.224.916 1.264 2.6 3.288 3.743 4.498 1.142 1.21 3.257 3.64 4.698 5.401 6.387 7.801 10.008 10.411 12.645 9.115 2.896-1.422 3.516 2.259-6.28-37.316-2.423-9.79-4.945-20.05-5.603-22.8-8.63-36.06-11.562-46.819-12.753-46.794-.161.003-.49.138-.732.3m-77.835 9.868c-4.03 2.43-9.532 6.24-14.703 10.181-9.024 6.878-10.169 7.804-13.417 10.853-1.763 1.654-4.015 3.621-5.005 4.371-.99.75-3.702 3.177-6.026 5.393-2.324 2.215-5.474 5.198-7 6.628-3.458 3.241-9.993 10.614-12.232 13.8-.928 1.32-2.79 3.75-4.139 5.4-1.349 1.65-3.548 4.53-4.888 6.4-1.34 1.87-2.926 3.85-3.524 4.4-.599.55-2.45 2.8-4.113 5-1.663 2.2-3.953 5.08-5.087 6.4-1.134 1.32-3.261 4.11-4.725 6.2-1.464 2.09-3.443 4.88-4.399 6.2-8.17 11.289-23.812 36.82-24.163 39.441-.282 2.099.484 2.895 3.842 3.991 24.399 7.967 28.64 32.858 8.613 50.547-4.2 3.71-4.802 4.749-4.005 6.917 1.139 3.094 4.592 10.511 5.944 12.767.771 1.285 2.411 4.317 3.645 6.737s3.462 6.311 4.95 8.646c1.489 2.336 3.697 5.821 4.907 7.746 7.683 12.222 15.624 23.335 21.97 30.748 1.666 1.947 4.165 4.917 5.552 6.6 3.393 4.116 18.291 19.067 22.278 22.357 1.76 1.452 4.28 3.669 5.6 4.926 3.052 2.907 14.983 11.823 22.898 17.112 3.353 2.241 7.313 5.202 8.8 6.581 1.486 1.378 4.005 3.554 5.597 4.836 1.592 1.282 3.752 3.43 4.8 4.774 1.048 1.344 3.54 4.161 5.538 6.259 5.088 5.343 11.547 13.615 14.195 18.181 5.189 8.946 7.369 7.129 5.539-4.618-.458-2.942-.98-6.518-1.161-7.948-.906-7.167-3.701-21.63-4.87-25.2-4.277-13.062-8.002-19.195-11.662-19.199-2.363-.002-5.716-2.286-11.474-7.815-1.65-1.585-4.08-3.663-5.4-4.619-3.099-2.244-19.447-18.69-23.229-23.367-1.601-1.98-4.093-4.95-5.536-6.6-7.749-8.854-11.713-14.165-20.9-28-2.557-3.85-5.634-8.44-6.837-10.2-5.081-7.431-6.634-10.061-11.099-18.794-2.586-5.056-5.616-10.546-6.735-12.2-2.255-3.333-6.408-12.086-7.014-14.781-.886-3.942 4.505-17.812 11.748-30.225 1.155-1.98 3.322-5.76 4.815-8.4 3.088-5.461 12.353-19.487 14.344-21.717.729-.816 2.922-3.643 4.874-6.283 4.239-5.731 12.608-16.065 16.623-20.525 2.06-2.289 2.639-4.032 4.337-13.06 1.059-5.628 4.403-17.624 6.027-21.615.626-1.54 2.075-5.23 3.219-8.2 1.145-2.97 2.752-6.75 3.572-8.4.82-1.65 2.428-5.16 3.571-7.8 1.144-2.64 2.587-5.61 3.206-6.6.619-.99 2.405-4.315 3.97-7.388 4.164-8.182 3.716-10.062-1.631-6.838m152.701-1.017c-.394.638.802 3.336 6.061 13.68 7.714 15.171 14.334 30.793 16.444 38.805.428 1.627 1.251 4.578 1.828 6.558.577 1.98 1.741 6.957 2.586 11.061 1.741 8.459 1.616 8.201 7.055 14.569 3.573 4.183 5.806 6.933 12.8 15.763 17.7 22.344 38.646 60.307 37.177 67.379-.676 3.251-8.705 20.112-15.157 31.828-5.617 10.199-23.977 36.675-29.818 43-.813.88-2.297 2.68-3.298 4-1.001 1.32-2.399 2.94-3.107 3.6-.707.66-2.331 2.55-3.608 4.2-2.713 3.505-27.938 28.771-31.236 31.286-1.235.943-3.395 2.69-4.8 3.883-3.642 3.095-5.699 4.303-7.862 4.618-2.822.411-3.4.977-5.808 5.693-5.426 10.628-7.737 19.106-9.9 36.32-.194 1.54-.629 4.211-.968 5.935-.693 3.535-.813 9.292-.225 10.839.813 2.137 2.274 1.116 6.546-4.574 1.239-1.65 3.164-4.08 4.277-5.4 1.114-1.32 3.412-4.11 5.106-6.2 7.458-9.199 18.47-19.652 26.23-24.899 20.895-14.128 42.028-32.329 55.15-47.501 1.998-2.31 4.673-5.28 5.945-6.6 3.106-3.225 9.323-11.242 16.556-21.349 10.726-14.987 23-38.069 23-43.251 0-1.421-.265-1.773-3.657-4.866-13.765-12.547-17.154-26-10.012-39.734 2.918-5.61 7.799-9.456 15.469-12.187 3.788-1.349 5.4-2.597 5.4-4.181 0-2.486-15.591-29.304-21.703-37.33-.964-1.266-2.992-4.102-4.507-6.302-3.233-4.697-12.836-17.271-16.037-21-1.228-1.43-5.14-5.903-8.693-9.939-3.553-4.037-7.9-9.063-9.66-11.17-6.962-8.333-21.833-22.69-29.55-28.528-2.007-1.519-6.922-5.237-10.921-8.262-11.116-8.41-16.153-11.28-17.103-9.744M179.2 51.341c-.55.296-3.07 1.762-5.6 3.259-2.53 1.498-7.39 4.339-10.8 6.313-3.41 1.975-7.46 4.406-9 5.403-1.54.997-6.847 4.239-11.794 7.206-15.808 9.481-31.025 19.992-33.345 23.033-1.987 2.605-3.944 11.726-2.958 13.789 1.055 2.209 2.118 1.698 11.097-5.333 19.356-15.157 31.76-23.788 34.211-23.805 1.433-.01 2.574 1.182 4.172 4.361 3.175 6.314 4.208 6.746 8.866 3.708 1.623-1.058 4.259-2.7 5.857-3.649 4.495-2.667 4.798-3.169 6.895-11.426.447-1.76 1.8-7.035 3.006-11.723 2.901-11.276 2.809-12.968-.607-11.136m34.667.526c-1.284 1.284 5.221 27.239 7.638 30.478.938 1.256 7.903 6.113 11.489 8.011 3.101 1.642 4.066 1.08 6.79-3.956 3.49-6.451 3.98-6.45 13.616.006 7.527 5.044 20.023 14.489 26.751 20.221 9.473 8.07 11.523 7.245 8.835-3.555-1.659-6.668-2.042-7.168-10.078-13.136-6.485-4.816-28.683-18.844-36.308-22.944-1.98-1.065-5.329-2.973-7.442-4.24-2.113-1.267-5.623-3.289-7.8-4.492-2.177-1.203-5.758-3.194-7.958-4.424-3.846-2.15-4.957-2.545-5.533-1.969m-66.528 42.131c-.473.191-2.293 1.395-4.044 2.675-1.75 1.28-5.216 3.767-7.702 5.527-15.252 10.8-20.061 14.74-30.518 25-7.651 7.506-10.953 11.189-16.78 18.709-1.488 1.92-3.502 4.491-4.476 5.713-1.563 1.962-6.305 8.602-12.875 18.026-8.992 12.898-21.491 35.511-21.525 38.94-.019 2.036 3.141 9.239 6.762 15.412.709 1.21 2.606 4.63 4.214 7.6 11.397 21.048 20.971 33.763 39.005 51.803 19.754 19.761 24.958 24.424 43.868 39.309 9.849 7.752 9.183 9.072 9.042-17.927-.125-24.038.191-22.035-3.762-23.789-1.495-.662-4.107-2.852-9.61-8.053-4.156-3.929-9.331-8.762-11.501-10.742-4.157-3.792-11.026-11.294-14.652-16.001-1.186-1.54-2.888-3.63-3.782-4.644-.894-1.015-2.767-3.535-4.162-5.6-1.86-2.755-3.274-4.326-5.305-5.893-5.021-3.876-15.634-18.493-17.185-23.669-1.028-3.43 6.996-14.13 20.767-27.694 7.562-7.448 8.393-7.601 12.523-2.294.939 1.207 3.069 3.647 4.733 5.422 1.664 1.775 3.892 4.25 4.951 5.5 2.585 3.051 3.779 3.1 7.712.317 4.055-2.87 16.785-15.892 17.142-17.536.331-1.521.569-.625-3.411-12.797-4.73-14.467-6.033-11.772 12.572-26.006 4.48-3.426 4.785-3.849 4.555-6.302-.189-2.012-4.81-13.623-7.882-19.804-.82-1.65-2.009-4.335-2.641-5.966-1.772-4.57-3.648-6.198-6.033-5.236m96.668.395c-.807.807-2.36 3.975-4.415 9.007-.629 1.54-2.336 5.5-3.793 8.8-6.848 15.511-6.888 14.52.812 19.977 8.955 6.347 14.589 11.497 14.589 13.337-.001.946-3.853 12.713-6.344 19.376-1.908 5.104-1.758 5.362 9.369 16.04 11.414 10.953 11.327 10.936 17.454 3.294 1.565-1.952 8.193-9.257 9.696-10.687 2.159-2.052 4.75-.516 12.425 7.366 14.713 15.111 20.166 22.564 19.029 26.01-.732 2.216-7.044 12.21-9.14 14.469-1.679 1.811-4.565 5.349-11.089 13.6-8.574 10.841-41.872 43.429-47.041 46.036-3.976 2.006-3.759.609-3.759 24.2 0 22.706-.039 22.382 2.721 22.382 1.569 0 2.82-.883 13.163-9.293 1.696-1.379 4.396-3.568 6-4.864 1.604-1.297 4.176-3.562 5.716-5.034 1.54-1.471 3.97-3.592 5.4-4.712 1.43-1.121 3.86-3.33 5.4-4.911 1.54-1.58 3.7-3.585 4.8-4.454 3.3-2.61 18.909-17.902 21.546-21.109 1.35-1.642 3.464-4.074 4.698-5.404 2.215-2.389 3.163-3.563 8.898-11.019 7.577-9.85 14.393-21.081 21.886-36.056 5.889-11.771 5.957-12.57 1.607-18.893-.659-.959-2.706-4.332-4.548-7.497-7.471-12.836-15.422-25.234-21.131-32.954-13.902-18.797-15.65-20.983-22.616-28.278-7.44-7.792-13.149-13.243-18.142-17.322-7.348-6.003-18.73-14.447-28.138-20.874-2.216-1.514-3.895-1.691-5.053-.533m-48.324 38.234c-.492.345-1.784 1.944-2.871 3.555-2.76 4.091-6.753 8.511-10.568 11.697-1.784 1.491-9.814 9.219-17.844 17.174-8.03 7.954-15.767 15.427-17.193 16.605-1.426 1.178-6.663 6.102-11.637 10.942-4.975 4.84-14.224 13.736-20.555 19.769-12.119 11.549-13.028 12.587-12.985 14.831.042 2.222.386 2.728 5.306 7.8 2.561 2.64 6.154 6.375 7.986 8.3 5.068 5.328 4.972 5.368 18.52-7.778 5.647-5.48 6.33-5.384 13.358 1.876 1.43 1.478 6.38 6.205 11 10.506s14.823 14.086 22.674 21.744c17.648 17.215 15.94 16.543 23.171 9.12 2.555-2.623 5.293-5.283 6.085-5.912 1.798-1.43 21.471-20.066 26.871-25.456 7.915-7.901 16.576-15.779 17.64-16.046 1.759-.441 3.27.704 10.693 8.098 8.234 8.203 9.025 8.556 11.835 5.279.787-.919 2.988-3.304 4.891-5.3 11.519-12.086 11.901-13.498 5.206-19.285-1.686-1.458-10.356-9.712-19.266-18.343-8.91-8.631-17.28-16.642-18.6-17.803-1.32-1.16-5.756-5.46-9.857-9.555-13.461-13.439-19.294-19.065-22.743-21.936-4.84-4.029-11.755-11.258-15.099-15.785-3.522-4.767-4.303-5.299-6.018-4.097m2.802 27.673c.335.385 1.442 2.328 2.46 4.318 1.977 3.863 6.153 8.307 16.146 17.182 2.23 1.98 5.461 5.196 7.181 7.146 1.721 1.951 4.658 4.92 6.528 6.597 13.563 12.168 15.184 14.028 14.195 16.285-.513 1.169-10.056 10.824-15.845 16.029-1.677 1.509-8.247 7.714-14.6 13.789-15.23 14.565-15.45 14.754-17.166 14.754-1.572 0-2.598-.881-16.275-13.988-4.24-4.063-12.901-12.339-19.247-18.392-11.302-10.781-12.662-12.29-12.662-14.049 0-.61 3.353-4.137 11.3-11.884 6.215-6.059 13.19-12.935 15.5-15.281 2.31-2.346 5.763-5.566 7.674-7.157 5.063-4.214 8.072-7.596 9.55-10.734 2.323-4.934 3.832-6.258 5.261-4.615m-2.368 9.95c-.265.113-1.38 1.408-2.476 2.878-1.977 2.648-14.1 14.843-18.559 18.667-1.275 1.094-5.46 5.272-9.3 9.285-7.641 7.986-7.921 8.488-6.192 11.11 1.133 1.72 37.333 37.449 37.81 37.319 1.004-.273 37.7-37.781 37.942-38.781.143-.59.087-1.526-.124-2.08-.428-1.128-12.115-13.671-14.262-15.309-.758-.578-6.175-6.02-12.038-12.095-10.112-10.476-11.405-11.586-12.801-10.994m2.203 16.313c1.773.925 21.6 21.18 21.9 22.373.147.585.144 1.553-.006 2.15-.348 1.389-22.144 23.394-23.007 23.23-.334-.064-5.602-5.183-11.707-11.376-14.563-14.772-14.98-10.815 3.09-29.282 7.377-7.538 8.003-7.995 9.73-7.095m-16.023 95.832c-1.603 1.261-15.227 23.557-15.633 25.583-.163.818.3 3.34 1.382 7.526.895 3.463 2.229 8.906 2.966 12.096 1.606 6.958 7.686 30.805 12.085 47.4 1.75 6.6 3.462 13.17 3.805 14.6 2.478 10.341 6.74 26.114 7.411 27.429.446.875 1.034 2.724 1.307 4.11.889 4.517 2.575 4.686 3.753.378.379-1.385 1.284-4.407 2.012-6.717.727-2.31 1.728-6 2.222-8.2.495-2.2 1.149-4.99 1.455-6.2 2.792-11.062 9.84-38.585 11.933-46.6 1.437-5.5 3.071-11.98 3.632-14.4.56-2.42 1.807-7.37 2.77-11 2.989-11.267 4.603-18.241 4.603-19.885 0-2.163-.932-3.846-9.589-17.315-1.485-2.31-3.156-5.01-3.714-6-2.806-4.983-5.381-4.588-10.137 1.555-2.771 3.579-3.209 4.54-3.962 8.681-2.699 14.846-3.756 15.117-6.183 1.582-1.658-9.245-8.484-17.481-12.118-14.623"},null,-1)),Wre=[zre];function Gre(e,t){return o.openBlock(),o.createElementBlock("svg",$re,Wre)}const u1=M(Vre,[["render",Gre],["__scopeId","data-v-81223df9"]]),jre=e=>(o.pushScopeId("data-v-08c75490"),e=e(),o.popScopeId(),e),Yre=jre(()=>o.createElementVNode("div",{class:"background"},null,-1)),qre={class:"content"},Xre={class:"format"},Jre={class:"format-text"},Zre={key:0,class:"details built"},eae={class:"title"},tae={class:"extra-info"},nae={class:"info-time"},rae={key:1,class:"details stats"},aae={class:"stat-column"},iae={class:"descriptor"},sae={class:"stat-column"},oae={class:"number"},Aae={class:"descriptor"},lae=o.defineComponent({__name:"DeckBlock",props:Fre,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.inject(ri),i=o.ref(!1),s=o.computed(()=>Bt(n.deckCode)),A=o.computed(()=>Zt(s.value)),l=o.computed(()=>WA(A.value)),c=o.computed(()=>A.value.filter(h=>Ls(h))),u=o.computed(()=>{var g;const h=(g=na(A.value,s.value,1)[0])==null?void 0:g.cardCode;return{"--background-image":`url(${ye().callbacks.cardImageCallback(h??"",gt.Full)})`}}),d=o.computed(()=>H3(A.value)),f=o.computed(()=>d.value.map(h=>ge().dataJson.cardFormats.find(g=>g.nameRef===h)).filter(h=>h!==void 0).sort((h,g)=>h.order-g.order)[0]),p=o.computed(()=>({showButtons:{deleteDeck:n.type==="built"?n.showOwnerButtons:!1,updateDeckPrivacy:n.type==="built"?n.showOwnerButtons:!1,editDeckName:n.type==="built"?n.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:n.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:n.deckCode,deckBuilderRouterLink:n.deckBuilderRouterLink,archetypeRouterLink:n.type==="built"?void 0:n.archetypeRouterLink,deckId:n.type==="built"?n.deckId:void 0,deckName:n.type==="built"?n.deckName:void 0,isPrivate:n.type==="built"?n.isPrivate:void 0}));return(h,g)=>{const B=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(B,{to:n.routerLink},{default:o.withCtx(()=>{var m,v,w;return[o.createElementVNode("div",{class:o.normalizeClass(["built-deck-preview",i.value?"show":"hide"]),style:o.normalizeStyle(u.value)},[Yre,o.createVNode(jd,{class:"deck-highlight-eye icon","deck-code":n.deckCode,onClick:g[0]||(g[0]=o.withModifiers(()=>{},["stop","prevent"])),"deck-buttons-props":{...p.value,showButtons:{...p.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck-buttons-props"]),o.createElementVNode("div",{class:"options-button icon",onClick:g[1]||(g[1]=o.withModifiers(y=>i.value=!i.value,["stop","prevent"]))},[o.createVNode(o.unref(ke),{icon:"ellipsis-v"})]),o.createVNode(Ao,o.mergeProps({class:"deck-buttons",onClick:g[2]||(g[2]=o.withModifiers(()=>{},["stop","prevent"])),"onClick:delete":g[3]||(g[3]=y=>t("click:delete")),"onClick:editName":g[4]||(g[4]=y=>t("click:edit-name")),"onClick:share":g[5]||(g[5]=y=>t("click:share")),"onClick:updatePrivacy":g[6]||(g[6]=y=>t("click:update-privacy"))},p.value),null,16),o.createVNode(il,{class:"deck-highlight-regions deck-highlight-section",regions:l.value},null,8,["regions"]),o.createElementVNode("div",qre,[o.createElementVNode("div",Xre,[((m=f.value)==null?void 0:m.nameRef)===o.unref(Jn).Eternal?(o.openBlock(),o.createBlock(l1,{key:0,class:"format-icon"})):((v=f.value)==null?void 0:v.nameRef)===o.unref(Jn).Standard?(o.openBlock(),o.createBlock(c1,{key:1,class:"format-icon"})):(o.openBlock(),o.createBlock(u1,{key:2,class:"format-icon"})),o.createElementVNode("span",Jre,o.toDisplayString((w=f.value)==null?void 0:w.name),1)]),o.createVNode(sl,{class:"deck-highlight-cards deck-highlight-section",cards:c.value},null,8,["cards"])]),n.type==="built"?(o.openBlock(),o.createElementBlock("div",Zre,[o.createElementVNode("div",eae,o.toDisplayString(n.deckName),1),o.createElementVNode("div",tae,[o.createElementVNode("div",{class:"info-user",onClick:g[7]||(g[7]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(B,{to:n.playerRouterLink},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.userName),1)]),_:1},8,["to"])]),o.createElementVNode("div",nae,o.toDisplayString(o.unref(a)(n.updatedAt).fromNow()),1)])])):o.createCommentVNode("",!0),n.type==="stats"?(o.openBlock(),o.createElementBlock("div",rae,[o.createElementVNode("div",aae,[o.createElementVNode("div",{class:"number",style:o.normalizeStyle({color:`var(${o.unref($n)(n.wins/n.matches)})`})},o.toDisplayString(o.unref(Ce)(n.wins/n.matches*100,1,3))+"% ",5),o.createElementVNode("div",iae,o.toDisplayString(o.unref(r)("general.winrate")),1)]),o.createElementVNode("div",sae,[o.createElementVNode("div",oae,o.toDisplayString(o.unref(Ce)(n.matches,0,10)),1),o.createElementVNode("div",Aae,o.toDisplayString(o.unref(r)("general.matches")),1)])])):o.createCommentVNode("",!0)],6)]}),_:1},8,["to"])}}});const E4=M(lae,[["__scopeId","data-v-08c75490"]]),cae={headingItems:{type:Array,required:!0,default:[]}},uae={class:"table-wrapper"},dae={class:"table no-scrollbar"},fae={class:"heading wrapper"},pae=o.defineComponent({__name:"SmallTable",props:cae,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",uae,[o.createElementVNode("div",dae,[o.createElementVNode("div",fae,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.headingItems,a=>(o.openBlock(),o.createElementBlock("div",{key:a.title,class:"heading-cell column-content"},[o.createElementVNode("div",null,o.toDisplayString(a.title),1)]))),128)),o.renderSlot(n.$slots,"heading",{},void 0,!0)]),o.renderSlot(n.$slots,"default",{},void 0,!0)])]))}});const ts=M(pae,[["__scopeId","data-v-20cc8387"]]),hae={players:{type:Array,required:!0,default:[]}},mae=e=>(o.pushScopeId("data-v-48a25357"),e=e(),o.popScopeId(),e),gae={class:"leaderboard-top"},vae=mae(()=>o.createElementVNode("div",{class:"heading-background"},null,-1)),yae={class:"heading-wrapper"},Bae=o.defineComponent({__name:"LeaderboardTop",props:hae,setup(e){const t=e,n=o.computed(()=>ge().dataJson.servers.map(r=>t.players.filter(a=>a.server===r.nameRef).sort((a,i)=>a.rank-i.rank).slice(0,10)));return(r,a)=>(o.openBlock(),o.createElementBlock("div",gae,[vae,o.createElementVNode("div",yae,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(ge)().dataJson.servers,i=>(o.openBlock(),o.createElementBlock("div",{key:i.nameRef,class:"heading"},o.toDisplayString(i.name),1))),128))]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"top-10"},[o.createVNode(o1,{players:i},null,8,["players"])]))),128))]))}});const S4=M(Bae,[["__scopeId","data-v-48a25357"]]),wae={flipped:{type:Boolean,required:!0,default:!0},cardCode:{type:String,required:!0,default:"01IO001"}},bae={class:"card-item-3d"},_ae=o.defineComponent({__name:"CardItem3d",props:wae,setup(e){const t=e,n=o.computed(()=>{const i=GA(void 0,t.cardCode,!0);if(i.value===void 0)return{};const s=i.value.regionRefs[0]??"Runeterra";return{content:`url(${ye().callbacks.cardbackCallback(s)})`}}),r=o.computed(()=>({"background-image":`url("${ye().callbacks.cardImageCallback(t.cardCode,gt.Card)}")`,"background-size":"cover"})),a=o.computed(()=>t.flipped?["flipped"]:[]);return(i,s)=>(o.openBlock(),o.createElementBlock("div",bae,[o.createElementVNode("div",{class:o.normalizeClass(["card",a.value])},[o.createElementVNode("div",{class:"front face",style:o.normalizeStyle(n.value)},null,4),o.createElementVNode("div",{class:"back face",style:o.normalizeStyle(r.value)},null,4)],2)]))}});const d1=M(_ae,[["__scopeId","data-v-1f9dece8"]]),Cae={cardFlips:{type:Array,required:!0,default:[]},chosenCardCode:{type:String,required:!0,default:null},opensAvailable:{type:Number,required:!0,default:0}},kae={class:"card-lottery"},Eae={class:"cards"},Sae={key:0,class:"bottom"},xae={class:"slice"},Fae={class:"circle-slice-item-wrapper"},Iae={class:"options"},Tae={class:"icon"},Uae={class:"circle-card-item-wrapper"},Dae=o.defineComponent({__name:"CardLottery",props:Cae,emits:["update:cardFlips","update:chosenCardCode","click:setBanner","click:setIcon","click:openAnother"],setup(e,{emit:t}){const n=e;function r(a){t("update:chosenCardCode",a.cardCode),a.flipped=!0;for(const i of n.cardFlips)a!==i&&setTimeout(()=>{i.display=!1},1e3)}return(a,i)=>{var A,l,c;const s=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",kae,[o.createElementVNode("div",Eae,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.cardFlips,u=>(o.openBlock(),o.createElementBlock("div",{key:`${u.cardCode}`,class:o.normalizeClass(["card-item-3d-wrapper",u.display?null:"hide"])},[o.createVNode(d1,{flipped:u.flipped,"card-code":u.cardCode,onClick:d=>r(u)},null,8,["flipped","card-code","onClick"])],2))),128))]),a.chosenCardCode?(o.openBlock(),o.createElementBlock("div",Sae,[o.createElementVNode("div",xae,[o.createElementVNode("div",Fae,[o.createVNode($t,{name:(A=o.unref(Kt)().user)==null?void 0:A.name,"mana-number":1,"card-code-prop":a.chosenCardCode,"ignore-card-item":!0,color:((l=o.unref(Kt)().user)==null?void 0:l.selectedBannerColor)??"var(--color-background-2-rgb)","router-link":""},null,8,["name","card-code-prop","color"])])]),o.createElementVNode("div",Iae,[o.withDirectives(o.createElementVNode("button",{onClick:i[0]||(i[0]=u=>t("click:setBanner")),class:"fancy-button"},null,512),[[s,"cardLottery.setBanner"]]),o.withDirectives(o.createElementVNode("button",{onClick:i[1]||(i[1]=u=>t("click:setIcon")),class:"fancy-button"},null,512),[[s,"cardLottery.setIcon"]]),o.createElementVNode("button",{class:"fancy-button",onClick:i[2]||(i[2]=u=>t("click:openAnother"))},[o.withDirectives(o.createElementVNode("span",null,null,512),[[s,"cardLottery.openAnother"]]),o.createElementVNode("span",null," ("+o.toDisplayString(n.opensAvailable)+") ",1)])]),o.createElementVNode("div",Tae,[o.createElementVNode("div",Uae,[o.createVNode(fa,{"color-override":((c=o.unref(Kt)().user)==null?void 0:c.selectedBannerColor)??"var(--color-primary-2)","card-code-prop":a.chosenCardCode,"ignore-card-item":!0,"router-link":""},null,8,["color-override","card-code-prop"])])])])):o.createCommentVNode("",!0)])}}});const x4=M(Dae,[["__scopeId","data-v-53ddcbb6"]]),Qae={bannerCardCode:{type:String,required:!0,default:""},bannerColor:{type:String,required:!0,default:""},iconCardCode:{type:String,required:!0,default:""},name:{type:String,required:!0,default:""},server:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},premiumExpiration:{type:Date,required:!1,default:null},isPremiumRenewing:{type:Boolean,required:!0,default:!1},routerLink:{type:Object,required:!0,default:""},premiumLink:{type:Object,required:!0,default:""}},Lae={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:2},cutout:{type:Number,required:!1,default:145}},f1=o.defineComponent({__name:"WinrateDoughnutChart",props:Lae,setup(e){const t=e,n=o.ref(null);Oe.register(...Sr);const r=o.computed(()=>({labels:["Wins","Losses"],datasets:[{data:[t.wins,t.matches-t.wins],backgroundColor:["#00adff","#ff5153"]}]})),a={cutout:t.cutout,elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1},datalabels:{display:!1}}},i=[{id:"text",beforeDraw:function(s){const A=s.chartArea.width,l=s.chartArea.height,c=s.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const d=s.data.datasets[0].data[0],f=s.data.datasets[0].data[1],p=(d/(d+f)*100).toFixed(2)+"%",h=Math.round((A-c.measureText(p).width)/2),g=l/2;d>f?c.fillStyle="#00adff":d<f?c.fillStyle="#ff5153":c.fillStyle="#ffffff",c.fillText(p,h,g),c.save()}}];return(s,A)=>(o.openBlock(),o.createBlock(o.unref(hd),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:i},null,8,["chart-data"]))}}),Oae={class:"dashboard-profile"},Mae={class:"profile-banner"},Nae=["src"],Pae={class:"edit-banner"},Hae={class:"profile-text"},Rae={class:"profile-region"},Vae={class:"profile-tiles"},Kae={class:"profile-tile"},$ae={class:"tile-content"},zae={class:"games-text"},Wae={class:"tile-text"},Gae={class:"profile-tile"},jae={class:"chart-container"},Yae={class:"tile-content"},qae={class:"tile-text"},Xae={key:0,class:"profile-premium-expiration"},Jae={class:"profile-premium-expiration-time"},Zae=o.defineComponent({__name:"DashboardProfile",props:Qae,setup(e){const t=e,{t:n}=J(),r=o.inject(ri);return(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",Oae,[o.createElementVNode("div",Mae,[o.createElementVNode("img",{alt:"Profile Banner",src:o.unref(ye)().callbacks.cardImageCallback(t.bannerCardCode??"05BC160",o.unref(gt).Banner),class:"profile-banner-img"},null,8,Nae),o.createVNode(fa,{"card-code-prop":t.iconCardCode??"05BC160","ignore-card-item":!0,"color-override":t.bannerColor,"router-link":t.routerLink},null,8,["card-code-prop","color-override","router-link"]),o.createElementVNode("div",Pae,[o.createVNode(o.unref(ke),{icon:"pencil-alt"})])]),o.createElementVNode("div",Hae,[o.createVNode(s,{to:t.routerLink,class:"profile-name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.name),1)]),_:1},8,["to"]),o.createElementVNode("div",Rae,o.toDisplayString(t.server),1)]),o.createElementVNode("div",Vae,[o.createElementVNode("div",Kae,[o.createElementVNode("div",$ae,[o.createElementVNode("div",zae,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1)]),o.createElementVNode("div",Wae,o.toDisplayString(o.unref(n)("general.gamesPlayed")),1)]),o.createElementVNode("div",Gae,[o.createElementVNode("div",jae,[o.createElementVNode("div",Yae,[o.createVNode(f1,{matches:t.matches,wins:t.wins,cutout:30},null,8,["matches","wins"])])]),o.createElementVNode("div",qae,o.toDisplayString(o.unref(n)("general.winrate")),1)])]),t.premiumExpiration?(o.openBlock(),o.createElementBlock("div",Xae,[o.createTextVNode(o.toDisplayString(o.unref(n)("general.premium"))+" "+o.toDisplayString(t.isPremiumRenewing?o.unref(n)("general.renews"):o.unref(n)("general.expires"))+" ",1),o.createElementVNode("b",Jae,o.toDisplayString(o.unref(r)(t.premiumExpiration).fromNow()),1)])):(o.openBlock(),o.createBlock(s,{key:1,to:t.premiumLink,class:"profile-premium fancy-button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("general.getPremium")),1)]),_:1},8,["to"]))])}}});const F4=M(Zae,[["__scopeId","data-v-592eac82"]]),eie={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"totalPlayers"},server:{type:String,required:!1}};function tie(e,t){const{t:n}=J();Oe.register(es),e.plugins||(e.plugins={}),e.plugins.annotation||(e.plugins.annotation={}),e.plugins.annotation.annotations=[];let r=new Date("1972-01-01"),a=new Date("3000-12-01");for(const s of t)s>r&&(r=s),s<a&&(a=s);const i=[];for(const s of Object.values(ge().dataJson.patches))new Date(s.startTime)<=r&&new Date(s.startTime)>=a&&i.push(s);for(const s of i)e.plugins.annotation.annotations.push({type:"line",xMin:s.startTime,xMax:s.startTime,borderColor:"rgba(255, 255, 255, 0.1)",borderDash:[10,5],borderWidth:1,label:{content:`${n("general.patch")} ${s.name}`,display:!0,position:"start",font:{weight:"normal"},backgroundColor:"rgba(0,0,0,0.2)"}})}const I4=o.defineComponent({__name:"LeaderboardChart",props:eie,setup(e){const t=e,n=o.ref();Oe.register(...Sr),Oe.register(es);const r=o.computed(()=>t.data.slice().sort((s,A)=>+s.date-+A.date)),a=o.computed(()=>{let s;return t.type==="totalPlayers"?s=ge().dataJson.servers.filter(A=>t.server===null?!0:A.nameRef===t.server).map(A=>({label:A.name,borderColor:Q1(A.nameRef),data:r.value.filter(l=>l.server===A.nameRef).map(l=>l.players),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})):s=r.value.reduce((A,l)=>A.includes(l.name)?A:[...A,l.name],[]).map(A=>({label:A,borderColor:Q1(A),data:r.value.filter(l=>l.name===A).map(l=>t.type==="lp"?l.lp:l.rank),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})),{labels:r.value.map(A=>A.date).filter((A,l,c)=>c.findIndex(u=>u.getTime()===A.getTime())===l),datasets:s}}),i={plugins:{legend:{display:!0},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};return tie(i,t.data.map(s=>s.date)),(s,A)=>(o.openBlock(),o.createBlock(o.unref(J_),{ref_key:"chart",ref:n,"chart-data":a.value,options:i},null,8,["chart-data"]))}}),nie={data:{type:Array,required:!0,default:[]},type:{type:Object,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},T4=o.defineComponent({__name:"CardQuantityBarChart",props:nie,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es),Oe.register(xd);const a=o.computed(()=>({labels:t.data.map(s=>s.quantity),datasets:[{backgroundColor:t.data.map(s=>s.wins*2>=s.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:t.data.map(s=>t.type==="winrate"?s.wins/s.matches*100-t.baseline:s.matches)}]})),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(s){return`${n("general.quantity")}: ${s[0].label}`},label(s){return t.type==="winrate"?(s.dataset.data[s.dataIndex]+t.baseline).toFixed(2)+"%":s.dataset.data[s.dataIndex].toString()},footer(s){return[`${n("general.matches")}: ${t.data[s[0].dataIndex].matches}`,`${n("general.wins")}: ${t.data[s[0].dataIndex].wins}`]}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:t.type==="winrate"?n("general.winrate"):n("general.matches")},ticks:{callback(s){return t.type==="winrate"?s+t.baseline+"%":s}}},x:{title:{display:!0,text:n("general.quantity")}}}};return(s,A)=>(o.openBlock(),o.createBlock(o.unref(pd),{ref_key:"chart",ref:r,"chart-data":a.value,options:i},null,8,["chart-data"]))}}),rie={data:{type:Array,required:!0,default:""}},U4=o.defineComponent({__name:"WinsLossesBarChart",props:rie,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es),Oe.register(xd);const a=o.computed(()=>t.data.length===0?!1:typeof t.data[0].column!="string"),i=o.computed(()=>a.value?t.data.slice().sort((u,d)=>u.column.getTime()-d.column.getTime()):t.data),s=o.computed(()=>[...new Set(i.value.map(u=>u.column))]),A=o.computed(()=>({losses:i.value.map(u=>u.matches-u.wins),wins:i.value.map(u=>u.wins)})),l=o.computed(()=>({labels:s.value,datasets:Object.entries(A.value).map((u,d)=>({backgroundColor:u[0]==="wins"?`rgba(${Wa("--color-good-rgb")}, 0.5)`:`rgba(${Wa("--color-bad-rgb")}, 0.5)`,data:u[1],borderRadius:d===0?{topLeft:0,topRight:0,bottomLeft:10,bottomRight:10}:{topLeft:10,topRight:10,bottomLeft:0,bottomRight:0},borderSkipped:!1,label:n(`general.${u[0]}`),barPercentage:.5}))})),c={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{footer(u){if(u.length===0)return"";let d=0;const f=u[0].chart.data.datasets[1].data[u[0].dataIndex];for(let p=0;p<u[0].chart.data.datasets.length;p++)d+=u[0].chart.data.datasets[p].data[u[0].dataIndex];return`${n("general.total")}: ${d}
|
|
894
|
-
${n("general.winrate")}: ${Ce(f/d*100,1,3)}%`}}},datalabels:{align:"end",anchor:"end",formatter(u,d){const f=i.value[d.dataIndex];return Ce(f.wins/f.matches*100,2)+"%"},display(u){return u.datasetIndex===u.chart.data.datasets.length-1}}},scales:{x:{type:a.value?"time":"category",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"},stacked:!0,grid:{display:!1}},y:{stacked:!0,grid:{display:!1},display:!0}}};return(u,d)=>(o.openBlock(),o.createBlock(o.unref(pd),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),aie={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},D4=o.defineComponent({__name:"RoundCardInfoBarChart",props:aie,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es),Oe.register(xd);const a=o.computed(()=>Object.values(L3(t.data,A=>A.copy))),i=o.computed(()=>({labels:Array.from(t.data.reduce((A,l)=>A.add(l.round),new Set)),datasets:a.value.map(A=>{var l;return{backgroundColor:A.map(c=>c.wins*2>=c.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:A.map(c=>c.wins/c.matches*100-t.baseline),label:`${n("general.copy")} ${(l=A[0])==null?void 0:l.copy}`}})})),s={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(A){return`${n("general.round")}: ${A[0].label}`},label(A){return(A.dataset.data[A.dataIndex]+t.baseline).toFixed(2)+"%"},footer(A){const l=[];for(const c of a.value)c[A[0].dataIndex]!==void 0&&l.push(`${n("general.copy")} ${c[A[0].dataIndex].copy}`,`${n("general.matches")}: ${c[A[0].dataIndex].matches}`,`${n("general.wins")}: ${c[A[0].dataIndex].wins}`);return l}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:n("general.winrate")},ticks:{callback(A){return A+t.baseline+"%"}}},x:{title:{display:!0,text:t.type==="drawn"?n("cards.roundDrawn"):n("cards.roundPlayed")}}}};return(A,l)=>(o.openBlock(),o.createBlock(o.unref(pd),{ref_key:"chart",ref:r,"chart-data":i.value,options:s},null,8,["chart-data"]))}}),iie={data:{type:Array,required:!0,default:[]},baseline:{type:Number,required:!1,default:50},type:{type:String,required:!0,default:"winrate"},yAxis:{type:String,required:!0,default:"date"}},Q4=o.defineComponent({__name:"LineChart",props:iie,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es);const a=o.computed(()=>({labels:t.data.map(A=>A.label),datasets:[{borderColor:"rgba(255, 255, 255, 0.1)",data:t.data.map(A=>A.totalMatches&&t.type==="playrate"?A.matches/(A.totalMatches??1)*100:A.winrate*100),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"},{pointBackgroundColor:"rgba(255, 255, 255, 0)",data:t.data.map(()=>t.baseline),borderColor:"rgba(0, 0, 0, 0.05)"}]})),i=o.computed(()=>({plugins:{legend:{display:!1},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1,filter:function(A){return A.datasetIndex===0},callbacks:{label(A){let l=A.dataset.label||"";return l&&(l+=": "),l+=A.parsed.y+"%",l},footer:A=>{let l="";return A[0].dataIndex!==null&&t.data[A[0].dataIndex].matches&&(l+=`${n("general.matches")}: ${t.data[A[0].dataIndex].matches}`),l}}},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:t.yAxis==="date"?{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}:void 0}})),s=[{id:"chartGradient",beforeDraw:function(A){if(!A.scales.y)return;const l=A.ctx.createLinearGradient(0,0,0,A.height);if(l.addColorStop(0,"rgba(0, 173, 255, 0.25)"),t.type==="playrate"){l.addColorStop(1,"rgba(0, 173, 255, 0)"),A.config.data.datasets[0].fill={target:1,above:l},A.update();return}const c=A.scales.y,u=Math.max.apply(null,A.data.datasets[0].data),d=c.getPixelForValue(u),f=c.getPixelForValue(50),p=Math.min(Math.min.apply(null,A.data.datasets[0].data),50),h=c.getPixelForValue(p),g=Math.max(Math.min((f-d)/(h-d),1),0);l.addColorStop(Math.max(g-.08,0),"rgba(0, 173, 255, 0)");const B=A.ctx.createLinearGradient(0,0,0,A.height);B.addColorStop(g,"rgba(255, 81, 83, 0)"),B.addColorStop(1,"rgba(255, 81, 83, 0.25)"),A.config.data.datasets[0].fill={target:1,above:l,below:B},A.update()}}];return(A,l)=>(o.openBlock(),o.createBlock(o.unref(J_),{ref_key:"chart",ref:r,"chart-data":a.value,options:i.value,plugins:s},null,8,["chart-data","options"]))}}),sie={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},oie=o.defineComponent({__name:"BuiltDecksTable",props:sie,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"deck",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.deck")},{id:"name",isShown:!0,sortDirection:ve.NEITHER,title:r("general.name")},{id:"updatedAt",isShown:!0,sortDirection:ve.DOWN,title:r("general.updated")},{id:"createdAt",isShown:!0,sortDirection:ve.NEITHER,title:r("general.created")},{id:"manaCurve",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.cost")}]);function i(s){const A=Gi(s,a);A&&t("sort-updated",A)}return(s,A)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.deckRows,(l,c)=>(o.openBlock(),o.createBlock(El,{id:l.id,key:l.id,type:"built","deck-code":l.deckCode,name:l.name,"created-at":l.createdAt,"updated-at":l.updatedAt,index:c+2},null,8,["id","deck-code","name","created-at","updated-at","index"]))),128))]),_:1},8,["loading","heading-items"]))}});const L4=M(oie,[["__scopeId","data-v-3cbac27b"]]),Aie={regionNameRef:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},lie={class:"wrapper"},cie={class:"champion-column column-content"},uie={class:"matches-column column-content"},die=o.defineComponent({__name:"ProfileRegionRow",props:Aie,setup(e){const t=e,n=o.computed(()=>ge().dataJson.regions.find(a=>a.nameRef===t.regionNameRef)),r=o.computed(()=>{var a;return ye().callbacks.cardImageCallback(((a=n.value)==null?void 0:a.cardCode)??"",gt.Banner)});return(a,i)=>{var s;return o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),o.createElementVNode("div",lie,[o.createElementVNode("div",cie,[o.createVNode(al,{"region-ref":t.regionNameRef},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString((s=n.value)==null?void 0:s.name),1)]),o.createElementVNode("div",uie,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,1,3))+"% ",5)])],4)}}});const p1=M(die,[["__scopeId","data-v-b0ce9955"]]),fie={rows:{type:Array,required:!0,default:[]}},pie=o.defineComponent({__name:"ProfileRegionTable",props:fie,setup(e){const t=e,{t:n}=J(),r=[{title:n("general.regions"),id:"regions"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(p1,{key:s.regionNameRef,"region-name-ref":s.regionNameRef,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["region-name-ref","matches","wins","index"]))),128))]),_:1}))}});const O4=M(pie,[["__scopeId","data-v-2dae645c"]]),hie={rows:{type:Array,required:!0,default:[]}},mie={archetypeId:{type:Number,required:!0,default:0},deckCode:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},gie={class:"wrapper"},vie={class:"champion-column column-content"},yie={class:"matches-column column-content"},Bie=o.defineComponent({__name:"ProfileArchetypeRow",props:mie,setup(e){const t=e,n=o.computed(()=>Bt(t.deckCode)),r=o.computed(()=>Zt(n.value)),a=o.computed(()=>{var s;const i=(s=na(r.value,n.value,1)[0])==null?void 0:s.cardCode;return ye().callbacks.cardImageCallback(i??"",gt.Banner)});return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${a.value})`})},null,4),o.createElementVNode("div",gie,[o.createElementVNode("div",vie,[o.createVNode(la,{"deck-code":t.deckCode},null,8,["deck-code"])]),o.createElementVNode("div",yie,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,1,3))+"% ",5)])],4))}});const h1=M(Bie,[["__scopeId","data-v-d5c99255"]]),wie=o.defineComponent({__name:"ProfileArchetypeTable",props:hie,setup(e){const t=e,{t:n}=J(),r=[{title:n("general.archetypes"),id:"archetypes"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(h1,{key:s.archetypeId,"archetype-id":s.archetypeId,"deck-code":s.deckCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["archetype-id","deck-code","matches","wins","index"]))),128))]),_:1}))}});const M4=M(wie,[["__scopeId","data-v-f883a9d9"]]),bie={selectedRegion:{type:String,required:!0,default:null},selectedPlayers:{type:Array,required:!0,default:[]},selectedGraphOption:{type:String,required:!0,default:"totalPlayers"},players:{type:Array,required:!0,default:[]},updatedAt:{type:Number,required:!0,default:0},isGraphShown:{type:Boolean,required:!0,default:!1}},_ie={class:"leaderboard-options"},Cie={class:"multiselects"},kie={class:"details"},Eie={class:"players"},Sie={class:"updated"},xie=o.defineComponent({__name:"LeaderboardOptions",props:bie,emits:["update:selectedPlayers","update:selectedRegion","update:selectedGraphOption"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.inject(ri),i=[{name:r("leaderboard.lp"),nameRef:"lp"},{name:r("leaderboard.rank"),nameRef:"rank"},{name:r("leaderboard.totalPlayers"),nameRef:"totalPlayers"}],s=o.ref(n.selectedRegion),A=o.ref(n.selectedPlayers),l=o.ref(n.selectedGraphOption),c=o.computed(()=>s.value===null?n.players:n.players.filter(u=>u.server===s.value));return o.watch(s,u=>{t("update:selectedRegion",u),t("update:selectedPlayers",[])}),o.watch(A,u=>{t("update:selectedPlayers",u)}),o.watch(l,u=>{t("update:selectedGraphOption",u)}),o.watch(()=>n.selectedPlayers,u=>{A.value=u}),o.watch(()=>n.selectedRegion,u=>{s.value=u}),o.watch(()=>n.selectedGraphOption,u=>{l.value=u}),o.watch(()=>n.isGraphShown,u=>{u&&A.value.length>0&&(l.value="lp")}),(u,d)=>(o.openBlock(),o.createElementBlock("div",_ie,[o.createElementVNode("div",Cie,[o.createVNode(o.unref(Wt),{modelValue:A.value,"onUpdate:modelValue":d[0]||(d[0]=f=>A.value=f),placeholder:o.unref(r)("general.players"),mode:s.value?"tags":"disabled",options:c.value,searchable:!0,label:"name","value-prop":"name"},null,8,["modelValue","placeholder","mode","options"]),o.createVNode(o.unref(Wt),{modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=f=>s.value=f),placeholder:o.unref(r)("general.server"),options:o.unref(ge)().dataJson.servers,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"]),n.isGraphShown?(o.openBlock(),o.createBlock(o.unref(Wt),{key:0,modelValue:l.value,"onUpdate:modelValue":d[2]||(d[2]=f=>l.value=f),options:i,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",kie,[o.createElementVNode("div",Eie,[o.createTextVNode(o.toDisplayString(o.unref(r)("leaderboard.totalPlayers"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(Ce)(c.value.length)),1)]),o.createElementVNode("div",Sie,[o.createTextVNode(o.toDisplayString(o.unref(r)("leaderboard.updated"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)(n.updatedAt*60*1e3).fromNow()),1)])])]))}});const N4=M(xie,[["__scopeId","data-v-0689a8b2"]]),Fie={deckRows:{type:Array,required:!0,default:[]},originalDeckcode:{type:String,required:!0,default:""},loading:{type:Boolean,required:!1,default:!1}},Iie=o.defineComponent({__name:"SimilarDecksTable",props:Fie,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"deck",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:ve.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:ve.NEITHER,title:r("general.winrate")},{id:"cost",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.cost")},{id:"differences",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.deckDifferences")}]);function i(s){const A=Gi(s,a);A&&t("sort-updated",A)}return(s,A)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.deckRows,(l,c)=>(o.openBlock(),o.createBlock(El,o.mergeProps({key:l.deckCode},l,{type:"similar",index:c+2,"compared-deck-code":n.originalDeckcode}),null,16,["index","compared-deck-code"]))),128))]),_:1},8,["loading","heading-items"]))}});const P4=M(Iie,[["__scopeId","data-v-65e706f5"]]),Tie={heading:{type:String,required:!1,default:""}},Uie={class:"top"},Die={class:"heading"},Qie={class:"chart"},Lie=o.defineComponent({__name:"StatisticsPaneContainer",props:Tie,setup(e){const t=e,n=o.ref(null),r=o.ref(!1);function a(){var i;r.value?document.exitFullscreen():(i=n.value)==null||i.requestFullscreen()}return o.onMounted(()=>{var i;(i=n.value)==null||i.addEventListener("fullscreenchange",()=>{r.value=document.fullscreenElement!==null})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"statitisticsPaneContainer",ref:n,class:o.normalizeClass(["statitistics-pane-container",r.value?"full-screen":""])},[o.createElementVNode("div",Uie,[o.createElementVNode("div",Die,o.toDisplayString(t.heading),1),o.createVNode(o.unref(ke),{class:"maximize-icon",icon:"fa-maximize",onClick:a})]),o.createElementVNode("div",Qie,[o.renderSlot(i.$slots,"default",{},void 0,!0)])],2))}});const hA=M(Lie,[["__scopeId","data-v-f00b184f"]]);function Oie({swiper:e,on:t}){t("beforeInit",()=>{if(e.params.effect!=="carousel")return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const n={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,n),Object.assign(e.originalParams,n)}),t("progress",()=>{if(e.params.effect!=="carousel")return;const n=.2,r=e.slides.length;for(let a=0;a<e.slides.length;a+=1){const i=e.slides[a],s=e.slides[a].progress,A=Math.abs(s);let l=1;A>1&&(l=(A-1)*.3+1);const c=i.querySelectorAll(".swiper-carousel-animate-opacity"),u=`${s*l*50}%`,d=1-A*n,f=r-Math.abs(Math.round(s));i.style.transform=`translateX(${u}) scale(${d})`,i.style.zIndex=f,A>3?i.style.opacity=0:i.style.opacity=1,c.forEach(p=>{p.style.opacity=1-A/3})}}),t("setTransition",(n,r)=>{if(e.params.effect==="carousel")for(let a=0;a<e.slides.length;a+=1){const i=e.slides[a],s=i.querySelectorAll(".swiper-carousel-animate-opacity");i.style.transitionDuration=`${r}ms`,s.forEach(A=>{A.style.transitionDuration=`${r}ms`})}})}const Mie={activeIndex:{type:Number,required:!0,default:0},cardCodes:{type:Array,required:!0,default:[]}},Nie={class:"card-carousel"},Pie=["src"],Hie=o.defineComponent({__name:"CardCarousel",props:Mie,emits:["update:activeIndex"],setup(e,{emit:t}){const n=e;console.log(n);const r=[Oie];function a(i){t("update:activeIndex",i.activeIndex)}return(i,s)=>(o.openBlock(),o.createElementBlock("div",Nie,[o.createVNode(o.unref(Zw),{effect:"carousel","grab-cursor":!0,loop:!1,"looped-slides":5,"slides-per-view":"auto",modules:r,"slide-to-clicked-slide":!0,onActiveIndexChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.cardCodes,A=>(o.openBlock(),o.createBlock(o.unref(eb),{key:A},{default:o.withCtx(()=>[o.createElementVNode("img",{src:o.unref(ye)().callbacks.cardImageCallback(A,o.unref(gt).Card)},null,8,Pie)]),_:2},1024))),128))]),_:1})]))}});const H4=M(Hie,[["__scopeId","data-v-6fc8ea3c"]]),Rie={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},showDetails:{type:Boolean,required:!1,default:!0}},Vie={class:"wins-losses-line"},Kie={key:0,class:"details"},$ie={class:"wl-record"},zie={class:"lines"},Wie=o.defineComponent({__name:"WinsLossesLine",props:Rie,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",Vie,[t.showDetails?(o.openBlock(),o.createElementBlock("div",Kie,[o.createElementVNode("span",$ie,o.toDisplayString(t.wins)+"W "+o.toDisplayString(t.matches-t.wins)+"L - ",1),o.createElementVNode("span",{style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,1,3))+"%",5)])):o.createCommentVNode("",!0),o.createElementVNode("div",zie,[t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:"wins line",style:o.normalizeStyle({flexGrow:t.wins})},null,4)):o.createCommentVNode("",!0),t.matches-t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:1,class:"losses line",style:o.normalizeStyle({flexGrow:t.matches-t.wins})},null,4)):o.createCommentVNode("",!0)])]))}});const m1=M(Wie,[["__scopeId","data-v-511803da"]]),Gie={cardCode:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},jie={key:0,class:"wrapper"},Yie={class:"champion-column column-content"},qie={class:"matches-column column-content"},Xie=o.defineComponent({__name:"DashboardCardRow",props:Gie,setup(e){const t=e,n=o.computed(()=>on().cardJsonObject[t.cardCode]),r=o.computed(()=>{var a;return ye().callbacks.cardImageCallback(((a=n.value)==null?void 0:a.cardCode)??"",gt.Banner)});return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),n.value?(o.openBlock(),o.createElementBlock("div",jie,[o.createElementVNode("div",Yie,[o.createVNode(fa,{class:"circle-card-item","card-prop":n.value,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(t.cardCode)},null,8,["card-prop","router-link"]),o.createElementVNode("span",null,o.toDisplayString(n.value.name),1)]),o.createElementVNode("div",qie,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,1,3))+"% ",5)])):o.createCommentVNode("",!0)],4))}});const g1=M(Xie,[["__scopeId","data-v-47d946ce"]]),Jie={class:"card-page-toggle"},Zie=o.defineComponent({__name:"CardTogglePage",setup(e){const{t}=J(),n=o.ref(0);return(r,a)=>(o.openBlock(),o.createElementBlock("div",Jie,[o.createVNode(nd,{"selected-option":n.value,"onUpdate:selectedOption":a[0]||(a[0]=i=>n.value=i),options:[o.unref(t)("cards.recommendedDecks"),o.unref(t)("cards.similarCards"),o.unref(t)("general.statistics")]},null,8,["selected-option","options"])]))}});const R4=M(Zie,[["__scopeId","data-v-07d07f20"]]),ese=o.defineComponent({setup(){return{}},mounted(){const e=Bt("EUAACAIEA54Q6AIGBECACBQKF4AQIBQGAECAOUYBAECBWAICAYKACAIFFUAQIBAOAIDAOBJIAIDAYBIIAIDAMGY5AMDAEGI4EIBQMAYTC4RAGBQABIMCQAYGAUBQMHY");console.log(e),console.log(N3(e))}}),tse=o.createElementVNode("h1",null,"TestComponent",-1),nse=[tse];function rse(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",null,nse)}const V4=M(ese,[["render",rse]]),ase={name:{type:String,required:!0,default:""},selectedBannerCard:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},lp:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},ise={class:"wrapper"},sse={class:"champion-column column-content"},ose={class:"mana-hexagon"},Ase={class:"mana-number"},lse={class:"name"},cse={class:"matches-column column-content"},use=o.defineComponent({__name:"DashboardLeaderboardRow",props:ase,setup(e){const t=e,n=o.computed(()=>t.selectedBannerCard===void 0?null:ye().callbacks.cardImageCallback(t.selectedBannerCard,gt.Banner)),r=o.computed(()=>t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${n.value})`,"--background-color":t.index%2===0?"var(--color-background-0)":"transparent"})},null,4),o.createElementVNode("div",ise,[o.createElementVNode("div",sse,[o.createElementVNode("div",ose,[o.createVNode(el,{class:"hexagon-icon"}),o.createElementVNode("div",Ase,o.toDisplayString(t.rank),1)]),o.createElementVNode("div",lse,o.toDisplayString(t.name),1)]),o.createElementVNode("div",cse,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1),o.createElementVNode("div",{class:o.normalizeClass(["column-content change",r.value])},[t.change!==void 0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(o.unref(Ce)(Math.abs(t.change),0,10)),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Test ")],64))],2)])],4))}});const v1=M(use,[["__scopeId","data-v-7abf758d"]]),dse={date:{type:String,required:!0,default:""},available:{type:Boolean,required:!0,default:!1},activated:{type:Boolean,required:!0,default:!1},soon:{type:Boolean,required:!0,default:!1}},op="data:image/webp;base64,UklGRpQVAABXRUJQVlA4WAoAAAAQAAAAYwAAjQAAQUxQSAEBAAABgGPb2rHn+e3KTunUNntXPyaQKSSV7UzBSfejizkD26htPU/y/lZETABIK2xW2koVX0DKFxXZrLR1CQD2y3vah6PpUeLxnXviuwEBtL5SPz6/Ur+8Urvl0EbGQLccWsPjXH6DO+jg+vQSZGh5Zb7XaAp7aPEKbezzKMKEWuP+C7y0xdzV6gXkWif7drOyTtj34Mg99QL28KAcr5B14g0yAyo5p94gzytkn7Dv3qZz49xvzM6hzi5ffHrankNevMXZzIDUhuFfDw2PdKQr1SqVSqX+rUqbPfP8et2YqFKjqgz1I8ODA8O/7SnjAnC4qIBvGNm18wGdw0WF/6jMFcCfBwBWUDggbBQAABBDAJ0BKmQAjgAAwBIliAKSzJgM/yf5TextXv8H/bv2BwHdg+Vdzn/0vWB/tPVF5h36ofrv14vMX+3Xq2/7v1cf2b1AP6l/gOtp9A/9x/Th/dX4aP7X/2f3C9rXBZ+F2Jr4/8+/kPzM9c3+w73vS/++9CP5x+Df1n9q/dL2b8DflTqHfln9a/0/Ar209A7vn37/+R6R/YP/le4H/Ov63/oeSc9E9g3+ef3T/s/4z2Uf/P/Zelr6a/9f+k+BH+df27/reu51QB6l8J+19f+pT6sZj+zE2+wE9vWoNfcEz0oTpvLjAO+Oa0LQ0Jow+wnjIYPuMNdJgebCP0A0x9HFV9m1SGgYnekuqE7R0gGfFSqVDdnmaEzLXqoY5ab7mI283b2U6qHsm1LaV2sv3hWYD74YbO9I365ZyH7IOZW2np5xzxY1uNwlx8m3/TlZpshWOQCUqQEaeXuo/NGNB7fPAFQA9spGF46iKOVdiy4H51LojrONPcDzWBAEuAoyxYSjdLl+yL79WxDhr4xWsGpRCikM1q5cdoxI5DzxmQC+WU34EWnl4CUNbIztZ0DdID1a0xmf9PiWSXfO4bZPzx8wcVrzgmGBY4h9fhG06Eg8Pe4iO3CVETaIxrPsQBwT/o2De9RYWlsdvaDBCRFNqTIhtugVNyhTOM/+NHgy2FRNW55uPOcszqLATAsZl/DQCkGM1H3/Q6b8yOWsaDQ8wYl8YUfoAP7u3JuG7XFiqpPFp/zTze9Dk0t236U3vstNlqJ6SMY/EUhcAaCy3g3fU1aSTwRLVo/tbHheprGIHpVpNqjxBzS1OFaBnyrYoywF4mxQQRjLtYqhSzPDGyjl/+mVF30ZwM1deMxjDDSwpabr//JIfGwSajIir7csLqBcPmzLwiG0X8yyOdc6OggQUYZentENwuvqEfj4tkP5AdpcIlLP6PXPTMLwXYC5UVVGobBIg429evsLhW4cFRY7HS7kzF/loDieDUMVuHgsMHmBlHbV0ft7uggiS+/oURoyeFXHtbAffBaM7WcIS0lh3dr/hH+xcEKpG6voqahtySY9unVDK4Ma+M4J9OXSo71s3dEeACMKt+lj+FBWDsCJDXpu9Lm3VLbYyT5aF4l0kiGnDuTyRednJJxXlv9ZB2XqhFRCRxK1YE9sx6PGzx8h1YQvNTO5vUl/nAq/pglypqDeR1DHey3IRtZsO/1/M12zYhtN58HYvZriSE/pzLhUGdKAnDJN+N1zpts+c79KrZYjR5+LC8mqTp3zA107/ruodw4OhlDLLtEkHoK0aL6L9kgYkVYuk051/J0iVKO6TrNDjtGCXCzQ61VHH07nEMhfWQqzs+eEOnCdem+/mp99Y5moGhX/AG8JXlhIt15Lv5D60Crp8RJMOD93GDx3WmltCm+Uv1YUslp6iqCDT9pJkbrVnz19cge4T3b7AMrWIAxvDVSB+GjGkX/VQXtjcfsYyHhBaNDOrAPmMkk43eLISRFlsUW9xJ70I7YqMi4KkLA5BSawyrIJeGDRRPpOyqXBJ3he27M6nYaDUcu/dw+zKZFrH6JJepygQiw9/gTA8qAo9Wy4TxVrbJ3iVIyWD9tN6kW+H0ATrOZcaPr4mEoJATghh5iOmN12PTvewVv3VhiUXfqV2BWbUrqWHOkvUgcNaMRXkTobbwOziNe7s9Ub8f1fyJJ+KoqDjl5TXGTKJf71c5O8PiHEwUijMoTg1GNrxg/iyd2pvikPHJ/LeYRAjV77bM1tdlnWBYiABeF3lU6zrp/qqdxhb8P33GXLOZC+7Q+k29zjZyKON23ZtaPwSL1oDj4jmqXJ0DV/iWA+79rebbt2US+K8ARkowLBGCyDHGaKBFXplZu5qY2Jr6P0YUmkj8Se0bToxblcTq3Yo99+M+HkAnRjvQ6iVKId8+YXuXpHdWG2e0XjaXsZ6IBomXeg/qv7XzhWsqrLDSmmSG1scFVF9w5hYj02X4QIhwfHS9DJ46kN1NvcCouEHbUnMQHzUsndQ/LXToevL3LcziuwhLIDliY5NZVQGbChii5WdshXFpqLTnMoSx/QLlWVrcEpCWeg1QCKc32cIAdHGm85bWc1BWWymuRFjr5Tgp3b9TPWLbmnJyb+oSemQmbAPvG9LJIqXmr2xCr0TGmDluE4zO8vaZ/YMEtA9ObEVpVaRj/fqmgL6oHMSW8btJ19nVA62zSzzTuNWJjkN2Zx/t3a5oddkCmbJATg/9VKopqZllxD/GmhAA2Z+o2Yl+CoH3mwuLLPslUy54VmjbhRr+FyR7akdBlYodQHYMNcOKTqhcRGICgXOLTRXn27nIzblK2s7Ts8zAeHmG48CpkdL0ogJ+mrFlrUonC65itjH25Zybm2oM+zxGTTFmy3qhxeF44T6UObeh1vuD/xnjE7NOi28jLT2p7QOjRifMsWRKF8A1+4WnZwba/telVJ0M6W12iygb8UFKOypj4S3LoX1Sx+DIoHPssoAW9iBseVXrDaK8AUOd4jhVQ1WZXhAyQrLt5vuLNMEaFbCq0RltFolGtQ9UYWId2iCWWUAob/O5rzCZMRGWlrXfqV2OMsz7NzL8MkLUlj/XCo/PHG7Lqo/QabVPLqTejIyn8VMf75hXLI4vX3fFT9uVIjfrLe3wDtwo3hgQlrT+8wtcHIkMnpF1wK0Pmi3q3dt+cBzJ7twZjPrXbla5YVz18ptitmRDERECQ67qfzqNrl2C9pLJ/q1f/Ew/JY3Fr/02nDtq35QZ0dZYgfTf47HOzzo4UjL+noRi2L+dBj0fBp9NznpszWtf/ViprbM+6Zzv1l+tD4U3Zu//+Oey/Lgbh8EQfzgm9i59POCMUU/7sNjnSLils28YksYWNbznb3xcNIpy2wR85ntEWFLTuHfln1UVFAUGGrZdmWz6JzqNPxD0AeXjf8ntg4NCbxgB8iohTpMedkpD2q9xEEUXBeo8yuCJKNjP+zg/AYfX9/PVLZWqo5l/XXgtH2ABNTFqA2942K8zLTN4rjFvA8KqN5rmSofCljeENG145859vlNSmeR0T1U7KZ/z6Q/crwGbDY1f9Cmfzjf7MsZklghfj/1shlyq7gSv5Ym375SxDw/iDuj67jYdGOBVjmpB1mnV158my0bdh75nONKc2vK8ZjU+iNXS/P8aJUAiRFk7st3bV5h9baGPOQqbOk4dWjw8NUN7nwm0fmJQ5vp73I/A4UZ8eqf638Gkr3pXrHvUebaPb+xcIzBDE1Nvcojfb/5nm95LL0aHg1iKt36a6uavLgIvpkN7Qo3TujZX95S02Bjz3vhFXVLmBFQCYemOTW9uc4LHakG8kU8VevsB1HT+S1RQKKGdo8JtG9raNhNJjHGLqolgRumnusF3c3ABwOjbQhbjjfMQpu7cdy6J0DTh2hatG32udWg1LPdR9fsVpjEysfGQ0GDDxrvx9YwIGgSRZOZpNEJop4ey3CbpHsmfbpTu+aiszsvP5P6WtQ92vlZ8hxGp2cmnFD2MB6+gQ0hM7eZRxHsKG0+WcpmGsBbtEcNBFvUhbVul/oh7JL+W7adTjOuAVWYVYoTud4ovKjSckZfM1oTXnO4Ky5/LPkQICBB53iz2cdoAWm7owZYQ/S/m4Uwya+G8RezTLMacJChJKqvaibSzfr1bLY6Vry/907SR/JMI7gNWKaUF3Vba3b5b0HxlnFvPrH9H/e+v/zKavQWUONrFVDJYy1XBQUKeYi/Nk2TjiR28KllKGnB2Fq4UnOXuNFR6A2fOnv22Ud48xB8MDHPdrkiVnT362fvOFVnTizjBiQ8TsDnPCs9yEBp16IVDSPomLlWtRkTdEKM6vtCfOz5kpT/0/f18Zx1GX1lvHApIkCfMiNePrIQ9HXD0kmtO7+kdpnb01upiB8fDivDuW+Q0T9Ekbl4PcAAl6+TEntzh67pMz09ikbexC0m6HJHt2TiTtEeCNtLfTWM7HNNFnyoD6HOVEHxiygPZ4y8pyIEJY6J8xwz4TjpyIsHs3cFHpgqfjkUgTFx3uclUbtjRvRXWkgXyZd2ysup9AT8mS0ZJxbARswqXFxJaMDemxOcr6pMmpUPPx6m3QAAnD5YW7H7ATCMs7x2pa2P++IZrqP5lRbgR3bmPDGNdaK0MJWIdUEp/KMOQS9B6vwdVSLl/8mjT5CxXSx2VxxrgGTVW6NBBuTmP9Vt9ZOQ0d0ORGcg++/xMiPrl91fbiMOVAa5GRuhKUhIpUCxVplYkot97+71nhgPlFn6t3NoJKsWX7ecxQQ2Ju2lHT7kO007o0voWXVBgS4t1L3tHfiGWu9NcmCjKwt8PwHn/Jz3v6Uek7SG+ZjCMiakQpmV+0QrjA09K3jZfQgUr+zs/3n/X1zZPPLWk+TlywRK6p0/qbliMMhyXFKbGpTXqvlvBC2Fr58dVvfouGrlfh72hq6YOaZn9zdQWPqbjtqIg8g9QxZzL954uK2OuI1JJittRNNcVSSra2lACV/Ej7Or5II6lx2C3FjqTsrh4UXCcUZWtsOA24NHIJ9CzFmsC4IyIOUXhZEN65l9PYCkjNWKaNz89kPq2+4ye1/jzAuDDg2RrKp/FNIKhhKO0YSPaLz9ODfQTLJhMTpPAXm+xLB0oX7Vo75znqCKyJvmxCmfzANcHkBciBEuOOq68Zl6RZtvaAB0xxFCOfvwBwUY+0qWjfW5PVAaY9bzRJlL100JT3b2kkKDbSW1JXvJqoC/Gubz7CPLYlMJ8dNbim9ydCev9Yq4uzuFENwzKxXa/+CJOmjxzMMCUO8Et1aezpZRwhRESDWtEzJpOKzapC0Hy+M9LX92rbTLKuAfIs+t2RLVUI914oLWgqjEfsM+8o8Tp+U+TRjZ2FF4Ksvp2tGNUiwUapjWbERc67w9nCCgSfLo/c3J1nQLygbzMoJrH4FojgB5aomLL3Qu6IHsRkYhXeYS5oHE0EyRRQXDSEsr4Agr+Yfe5rM854ckE/Yjtm9JnUazZfvvxW2UhxIs9N1m706CP2Ypvs1i7dW+ZmqMCL6uSL+C7hOyycrmvY3Y1YHfIm/pn6u2tgqDN0Y/mZKlUtFq431+zZtpV7+M8ImZf+ou67QEQgXKlc5nxIRUn4WPWlDg2J+6ifiADxcmoRbqWCcG7PR1aUBaLcdSH9KfyF9wgQEj3V+4gyQIa/4JZICFGBUF1BBpZ/anb9TggFs64t+P8eXsWK/kYO+YjSiRyclvKR6hdZRs3hsPY5i7CnmpMUZIns0Ir1ZD8T38M3GM2CcjVW7dG8+0pgw9Si3W5RQrSQjYNq/0A9slLyqiv6ZjrmJFk8Vumsh0VfVPiE7vzqDoxlssE+RqwjJb7DCYE6MHby3aDhaThUE8lgQ7wHTzwoT6IwKqw1ofiTrBycnkdgSKnNEcAgmEQm/Nc4SfKQIjYFgAC+IZeC+S8/pKr8oSNd53EyIK7cuYgnPCUSYn8K2wZD3f/HeVjWIk2EaqRQNZvhCL9pMdwBR8OFRxr36qHCqSx2ZPJOQ3MOPk7swYH4B1QSo4K5tY7/RSl69ftU132HNN0NDfzsvWmBTzVLArpA8RY9LCv7PQ+tbH+6xQWWT4zo41H0hZroZB9Y1BRkiR1jU2XXIQzjY8M2WxSCUywHQOItrSSuDf43zfF+0pXshiSJh3wkP7UVjoF1JMXAPzr2YtxaKFTaZHj0t+e2KUYnGCPDMRt/jsJ1VNqvqGMjhbzmK/Ji7jcaK0nVU2t150c0NRtZlmCiRa7hpNnWe8JlN946yTf4mBY6we5YtS+tHlFzb6xxXgSNdAJUQ/Cf/gbr1MOYnfNPn7tgsduJnySBfUxlhueUByJNOC3T+QE5gELLjR8V/YThTkoJl7a4clEiUTt+fUCWTdjRcJgg8LQSvOspSnGQ5o5a42FBWa2brKLjpnmcroiLKuqJ8SM/UeCuF78esGhAuc2nC0jXZv12w17el7YAcHrpA2Vx+Jv6X5ok4PxVseLzfIY9wbb0nrOCAU3Gg/eKUcu2emB7XfMAgEbBPf7tOMUfluV4zeGsAFHhH3jCmTT0ie7YZP13tsgzt6I+llT2GnDkU9ylV0Rjzdl92EnAJhLyZovmJn2r+3xytit6NWsWFNLk8xZeFTY6cWoqEtVA2HoX/dvgwba3wkOMiZHRRnDWc5OHZ8DvUufoI4BEp4lLz8LqDcJ4U2ROGcH/tNtLAWpov5bBWwYZghIsAyxK4elFVxROoKzEytuvDaHjB85srMddi0+wpvq8Gv2hadSObXFOTXuJYuca+dVPRPg6i8Jy4YRCCcvDJ9h/G4pHs8UtxcagVPFP3LtdVn8qwgiO4/RkY/NvkpOnzPrgtjKA9F25cFO/iEV1SONr2YEg2e21jHzxn1BpHOC+VjkYP6+XVfhyW3FnO55pyGqelLpWnIMcvLUb/nYZluleyUZSt9yjLLW6HyeMT/TsCJpQ+TixJzS2a/JQRc+igKZAJCN5f4pHylBS/nTZQqff5FAhr6QbQIbB+3sfEH7dCB5G4BcRU/hWRacndN8it2rV+0OL+q9WuSGBeFROmtq7ko9ZK00n9mGhhm+CYaUiUyUpdNEhcjDi72xSDSPr5PIlg4ecGmxXOzJMAvwi7oAQQg+Yf0/4z2VCGkFCJ+brkSSZLb8fs2G2c+fYVn/tnAmmooSpfNyJw90LiRdDuQbQ93BQWt3azhV9TEBsPGFE3GGkTw0krNqcURqAQKzvXr2bnhO8KRWoWG7XliqBjI/qGv4UOSaZGwIFqc88q1XuMWRIvW6Cy0jaeljlEotz0AFnDGH2Aq1Pn6SREslqfkNcbIyJ/ZH8oMeXhw4Ua92QnhLp909o39dtaOK/eyzPuAH0ev2kS5g9sKHUC7eEoZIBtPPDrdsGXKpr+L+P9BRvo7OcKaVBxchzd2ZLrq/KC+l5UF0ZSfFqSW6UE0inppd0zfwM2/igkrgcDqi6fKcNBLQO3Yh9ysmWdD7EQ2ZnQ1rzdxuR59XgwjJvDgAAA",fse={class:"reveal-day-option-wrapper"},pse={class:"card-wrapper"},hse=["src"],mse={class:"card-wrapper"},gse=["src"],vse={class:"card-wrapper"},yse=["src"],Bse=o.defineComponent({__name:"RevealDayOption",props:dse,setup(e){const t=e,n=o.inject(ri),r=o.ref(null),a=o.ref(null),i=o.computed(()=>new Date(`${t.date}"T10:00:00-08:00"`)),s=o.computed(()=>i.value.getTime()<new Date().getTime()),A=o.computed(()=>s.value?`Revealed Cards
|
|
893
|
+
- Ravenbloom discipline card`,artistName:"Polar Engine",name:"Spell Slinger",cardCode:"06NX013",keywords:["Fearsome"],keywordRefs:["Fearsome"],spellSpeedRef:"",rarityRef:"Common",subtypes:["SPIDER"],subtypeRefs:["SPIDER"],supertype:"",typeRef:"Unit",collectible:!0,set:"Set6",createdAt:"2022-09-09",updatedAt:"2022-09-14"}}},Nne={class:"card-similar-cards"},Pne=o.defineComponent({__name:"CardSimilarCards",props:Mne,setup(e){const t=e;function n(a,i,s){if(a.length===10&&s<a[0].points)return;let A=0;for(;A<a.length&&a[A].points<s;)A++;a.splice(A,0,{cardCode:i,points:s}),a.length>10&&a.splice(0,1)}const r=o.computed(()=>{const a=[],i=on().cardJsonObject;let s=0;for(const A in i){if(A===t.card.cardCode||t.card.collectible&&!i[A].collectible)continue;s=0;const l=i[A];for(const c of l.regionRefs)for(const u of t.card.regionRefs)c===u&&(s+=2);for(const c of l.subtypes)for(const u of t.card.subtypes)c===u&&(s+=2);for(const c of l.keywordRefs)for(const u of t.card.keywordRefs)c===u&&(s+=1);l.typeRef===t.card.typeRef&&(s+=3),l.rarityRef!=="None"&&l.rarityRef===t.card.rarityRef&&(s+=1),l.typeRef==="Unit"&&t.card.typeRef==="Unit"&&(s+=(9-Math.abs(l.attack-t.card.attack))/3,s+=(9-Math.abs(l.health-t.card.health))/3),s+=(12-Math.abs(l.cost-t.card.cost))/3,n(a,A,s)}return a.reverse().map(A=>on().cardJsonObject[A.cardCode])});return(a,i)=>(o.openBlock(),o.createElementBlock("div",Nne,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value,s=>(o.openBlock(),o.createBlock(o.unref(Yd),{key:s.cardCode,"card-prop":s,"is-root":!0,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(s.cardCode)},null,8,["card-prop","router-link"]))),128))]))}});const b4=M(Pne,[["__scopeId","data-v-4db54a8d"]]),Hne={logoType:{type:String,required:!0,default:"logo-and-text"}},_4=e=>(o.pushScopeId("data-v-bb0b24b5"),e=e(),o.popScopeId(),e),Rne={key:0,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 862.33 136.654"},Vne=o.createStaticVNode('<path d="M0 2.947h18.418V115.29h77.35v18.416H0Z" data-v-bb0b24b5></path><path d="M205.729 0a68.327 68.327 0 1 1-68.326 68.331A68.3 68.3 0 0 1 205.729 0Zm0 118.236a49.908 49.908 0 1 0-49.909-49.909 49.948 49.948 0 0 0 49.909 49.904Z" data-v-bb0b24b5></path><path d="M396.538 2.947a42.211 42.211 0 0 1 41.991 41.991 41.554 41.554 0 0 1-32.046 40.7l29.1 48.067H414.22l-28.363-46.962h-32.046v46.962h-18.416V68.326h39.413l-39.413-65.38Zm0 65.38a23.481 23.481 0 1 0 0-46.962h-28.73l28.363 46.962Z" data-v-bb0b24b5></path><path d="M495.266 115.291h18.418v18.416h-18.418Z" data-v-bb0b24b5></path><path d="M685.517 60.778v72.928h-18.418v-6.443a68.378 68.378 0 1 1 12.894-107.926l-12.894 13.076a49.909 49.909 0 1 0 0 71.827V79.192h-49.726V60.779Z" data-v-bb0b24b5></path><path d="M862.33 60.778v72.928h-18.417v-6.443a68.379 68.379 0 1 1 12.89-107.926l-12.89 13.076a49.909 49.909 0 1 0 0 71.827V79.192H794.19V60.779Z" data-v-bb0b24b5></path>',6),Kne=[Vne],$ne={key:1,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 926.43 201.096"},zne=o.createStaticVNode('<path d="M251.125 49.347h14.423v87.978h60.574v14.422h-75Z" data-v-bb0b24b5></path><path d="M412.235 47.039a53.507 53.507 0 1 1-53.508 53.507 53.487 53.487 0 0 1 53.508-53.507Zm0 92.592a39.084 39.084 0 1 0-39.085-39.084 39.115 39.115 0 0 0 39.085 39.084Z" data-v-bb0b24b5></path><path d="M561.66 49.347a33.056 33.056 0 0 1 32.884 32.884 32.542 32.542 0 0 1-25.1 31.873l22.787 37.642h-16.729l-22.212-36.777h-25.1v36.777h-14.422v-51.2h30.865l-30.865-51.2Zm0 51.2a18.388 18.388 0 1 0 0-36.776h-22.5l22.211 36.776Z" data-v-bb0b24b5></path><path d="M638.976 137.325h14.423v14.422h-14.423Z" data-v-bb0b24b5></path><path d="M787.964 94.635v57.111h-14.422V146.7a53.547 53.547 0 1 1 10.1-84.518l-10.1 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M926.429 94.635v57.111h-14.423V146.7A53.548 53.548 0 1 1 922.1 62.182l-10.094 10.24a39.084 39.084 0 1 0 0 56.248v-19.616h-38.939v-14.42Z" data-v-bb0b24b5></path><path d="M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z" data-v-bb0b24b5></path><path d="M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z" data-v-bb0b24b5></path>',8),Wne=[zne],Gne={key:2,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 201.1 201.12"},jne=_4(()=>o.createElementVNode("path",{d:"M100.548 0A100.548 100.548 0 0 1 201.1 100.548a98.177 98.177 0 0 1-3.633 26.46c-.011-.011-17.535 0-17.535 0s5.292-19.211 5.292-26.46a84.672 84.672 0 0 0-169.344 0c0 46.782 39.667 84.672 84.672 84.672s73.348-43.16 73.348-43.16h18.252A100.558 100.558 0 1 1 100.548 0Z"},null,-1)),Yne=_4(()=>o.createElementVNode("path",{d:"M108.72 45.643c19.711 0 36.623 15.51 36.623 34.994 0 16.991-12.308 31.253-28.078 34.994l15.87 25.34h59.707s-4 7.623-11.509 11.243-18.271 3.238-18.271 3.238h-38.473l-24.415-39.821H72.097v39.821h-15.87V99.945h34.182l-34.182-54.3Zm0 54.3c11.2 0 20.753-8.242 20.753-19.307s-9.557-19.307-20.753-19.307H84.304l24.416 38.614Z"},null,-1)),qne=[jne,Yne],Xne=o.defineComponent({__name:"LogoIcon",props:Hne,setup(e){const t=e;return(n,r)=>t.logoType==="text-only"?(o.openBlock(),o.createElementBlock("svg",Rne,Kne)):t.logoType==="logo-and-text"?(o.openBlock(),o.createElementBlock("svg",$ne,Wne)):(o.openBlock(),o.createElementBlock("svg",Gne,qne))}});const Js=M(Xne,[["__scopeId","data-v-bb0b24b5"]]),Jne={class:"dashboard-sign-up"},Zne={class:"top"},ere={class:"subtitle"},tre={class:"fancy-button"},nre=o.defineComponent({__name:"DashboardSignUp",setup(e){const{t}=J();return(n,r)=>(o.openBlock(),o.createElementBlock("div",Jne,[o.createElementVNode("div",Zne,[o.createVNode(Js,{"logo-type":"text-only",class:"logo-icon"}),o.createElementVNode("div",ere,o.toDisplayString(o.unref(t)("general.becomeTheMaster")),1)]),o.createElementVNode("div",tre,o.toDisplayString(o.unref(t)("general.signIn")),1)]))}});const C4=M(nre,[["__scopeId","data-v-a8d77f09"]]),rre={deckCode:{type:String,required:!0,default:""},gameMode:{type:String,required:!0,default:""},gameType:{type:String,required:!0,default:""},isAttackingFirst:{type:Boolean,required:!0,default:!0},isVictory:{type:Boolean,required:!0,default:""},opponentDeckCode:{type:String,required:!0,default:""},opponentName:{type:String,required:!0,default:""},playedAt:{type:Date,required:!0,default:new Date},opponentRouterLink:{type:Object,required:!0,default:""},archetypeRouterLink:{type:Object,required:!0,default:""},deckBuilderRouterLink:{type:Object,required:!0,default:""},opponentArchetypeRouterLink:{type:Object,required:!0,default:""},opponentDeckBuilderRouterLink:{type:Object,required:!0,default:""}},are=e=>(o.pushScopeId("data-v-ded4c38a"),e=e(),o.popScopeId(),e),ire={class:"match-item"},sre=are(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),ore=[sre],Are={class:"details"},lre={class:"match-details"},cre={class:"game-type"},ure={class:"time"},dre={class:"main"},fre={class:"container"},pre={class:"container"},hre=o.defineComponent({__name:"MatchItem",props:rre,setup(e){const t=e,{t:n}=J(),r=o.inject(ri),a=o.computed(()=>Bt(t.deckCode)),i=o.computed(()=>Bt(t.opponentDeckCode)),s=o.computed(()=>[na(Zt(a.value),a.value,1)[0],na(Zt(i.value),i.value,1)[0]].map(c=>ge().callbacks.cardImageCallback(c.cardCode,gt.Banner))),A=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.archetypeRouterLink})),l=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:t.opponentDeckCode,deckBuilderRouterLink:t.opponentDeckBuilderRouterLink,archetypeRouterLink:t.opponentArchetypeRouterLink}));return(c,u)=>{const d=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",ire,[o.createElementVNode("div",{class:"background",style:o.normalizeStyle({"--background-image":`url(${s.value[0]})`})},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(s.value,f=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${f})`})},ore,4))),128))],4),o.createElementVNode("div",Are,[o.createElementVNode("div",lre,[o.createElementVNode("div",cre,o.toDisplayString(t.gameType)+" - "+o.toDisplayString(t.gameMode),1),o.createElementVNode("div",ure,o.toDisplayString(o.unref(r)(t.playedAt).fromNow()),1)]),o.createVNode(d,{to:t.opponentRouterLink,class:"opponent-details"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.opponentName),1)]),_:1},8,["to"])]),o.createElementVNode("div",dre,[o.createElementVNode("div",fre,[o.createVNode(la,{class:"deck-highlight",deck:a.value,"deck-code":t.deckCode,"deck-buttons-props":A.value},null,8,["deck","deck-code","deck-buttons-props"])]),o.createElementVNode("div",{class:"container results",style:o.normalizeStyle({color:t.isVictory?"var(--color-good)":"var(--color-bad)"})},o.toDisplayString(t.isVictory?o.unref(n)("general.victory"):o.unref(n)("general.defeat")),5),o.createElementVNode("div",pre,[o.createVNode(la,{class:"deck-highlight opponent",deck:i.value,"deck-code":t.opponentDeckCode,"deck-buttons-props":l.value},null,8,["deck","deck-code","deck-buttons-props"])])])])}}});const k4=M(hre,[["__scopeId","data-v-ded4c38a"]]),mre={players:{type:Array,required:!0,default:[]}},gre={class:"leaderboard-top-10-region"},vre=o.defineComponent({__name:"LeaderboardTop10Region",props:mre,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",gre,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.players,a=>(o.openBlock(),o.createBlock($t,{key:`${a.name}${a.rank}`,"card-code-prop":a.selected_banner_card??void 0,color:a.selected_banner_color??"var(--color-background-2-rgb)","mana-number":a.rank,name:a.name,"quantity-number":a.lp,"ignore-card-item":!0,"router-link":o.unref(ge)().callbacks.playerRouterLinkCallback(a)},null,8,["card-code-prop","color","mana-number","name","quantity-number","router-link"]))),128))]))}});const o1=M(vre,[["__scopeId","data-v-41d779ee"]]),yre={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:null},favorite_deck:{type:String,required:!0,default:null},lp:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:null},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},selected_banner_card:{type:String,required:!1,default:null},selected_banner_color:{type:String,required:!1,default:null},server:{type:String,required:!0,default:"americas"},updated_at:{type:String,required:!0,default:""},user_id:{type:Number,required:!0,default:null},wins:{type:Number,required:!0,default:null},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},Bre={class:"leaderboard-detail-row-background-wrapper"},wre={class:"leaderboard-detail-row-background"},bre={class:"leaderboard-detail-row wrapper"},_re={key:1,class:"column-content"},Cre={key:3,class:"column-content"},kre={key:4,class:"column-content"},Ere={key:6,class:"column-content deck-highlight-wrapper"},Sre={key:1},xre=o.defineComponent({__name:"LeaderboardDetailRow",props:yre,setup(e){const t=e,n=o.computed(()=>t.selected_banner_card?["",ge().callbacks.cardImageCallback(t.selected_banner_card,gt.Banner)]:[]),r=o.computed(()=>t.change===null||t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(s,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"leaderboard-detail-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",Bre,[o.createElementVNode("div",wre,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,A=>(o.openBlock(),o.createElementBlock("div",{key:A,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${A})`})},null,4))),128))])]),o.createElementVNode("div",bre,[t.shownColumns.player?(o.openBlock(),o.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:i[0]||(i[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode($t,{class:"card-slice-item","card-code-prop":t.selected_banner_card??void 0,color:t.selected_banner_color??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank,name:t.name,"maintain-aspect-ratio":!1,"router-link":t.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):o.createCommentVNode("",!0),t.shownColumns.lp?(o.openBlock(),o.createElementBlock("div",_re,o.toDisplayString(o.unref(Ce)(t.lp,0,10)),1)):o.createCommentVNode("",!0),t.shownColumns.change?(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["column-content change",r.value])},[t.change!==null?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(t.change?o.unref(Ce)(Math.abs(t.change),0,10):""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[],64))],2)):o.createCommentVNode("",!0),t.shownColumns.wins?(o.openBlock(),o.createElementBlock("div",Cre,o.toDisplayString(o.unref(Ce)(t.wins)),1)):o.createCommentVNode("",!0),t.shownColumns.matches?(o.openBlock(),o.createElementBlock("div",kre,o.toDisplayString(o.unref(Ce)(t.matches)),1)):o.createCommentVNode("",!0),t.shownColumns.winrate?(o.openBlock(),o.createElementBlock("div",{key:5,class:"column-content",style:o.normalizeStyle({color:t.wins===null||t.matches===null?"var(--color-primary-2)":`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(t.matches===null||t.wins===null?"-":o.unref(Ce)(t.wins/t.matches*100,1,3)+"%"),5)):o.createCommentVNode("",!0),t.shownColumns.deck?(o.openBlock(),o.createElementBlock("div",Ere,[t.favorite_deck?(o.openBlock(),o.createBlock(la,{key:0,"deck-code":t.favorite_deck},null,8,["deck-code"])):(o.openBlock(),o.createElementBlock("span",Sre,"-"))])):o.createCommentVNode("",!0)])],4)]),_:1},8,["to"])}}});const A1=M(xre,[["__scopeId","data-v-2ce9c554"]]),Fre={routerLink:{type:Object,required:!0,default:{path:"/404"}},playerRouterLink:{type:Object,required:!1,default:{path:"/404"}},deckCode:{type:String,required:!0,default:""},type:{type:String,required:!0,default:"built"},wins:{type:Number,required:!1,default:0},matches:{type:Number,required:!1,default:0},deckId:{type:Number,required:!1,default:0},userName:{type:String,required:!1,default:""},userId:{type:Number,required:!1,default:0},deckName:{type:String,required:!1,default:""},updatedAt:{type:Date,required:!1,default:new Date},archetypeRouterLink:{type:Object,required:!1,default:void 0},deckBuilderRouterLink:{type:Object,required:!0,default:"404"},showOwnerButtons:{type:Boolean,required:!1,default:!1},isPrivate:{type:Boolean,required:!1,default:!1}};const Ire={},Tre=e=>(o.pushScopeId("data-v-5b8e191d"),e=e(),o.popScopeId(),e),Ure={xmlns:"http://www.w3.org/2000/svg",viewBox:"25.21 66.56 353.98 269.42"},Dre=Tre(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M95 67.249c-9.442 3.237-27.165 14.29-35.055 21.862-11.985 11.504-13.495 17.449-8.521 33.553 2.884 9.338 3.125 12.31 1.653 20.336-.565 3.08-1.282 7.497-1.593 9.816-.654 4.859-1.507 6.968-3.167 7.827-3.347 1.731-6.07-.959-12.46-12.308-3.227-5.732-5.32-5.733-7.478-.002-2.901 7.705-4.229 34.074-2.178 43.267 2.612 11.708 12.146 22.248 23.887 26.408 8.91 3.158 11.435 5.049 14.233 10.662 8.79 17.627 7.541 23.49-4.121 19.348-1.98-.704-5.67-2.014-8.2-2.912-14.356-5.094-16.5 2.124-5.514 18.561 11.421 17.088 27.745 24.899 44.255 21.178 8.934-2.013 10.069-1.524 24.2 10.428 6.649 5.624 4.594 9.455-6.606 12.316-12.406 3.169-15.535 4.779-15.535 7.993 0 5.469 18.596 14.356 38.74 18.513l8.26 1.705 9.6-.008c15.176-.013 24.599-3.381 27.766-9.923 3.23-6.671-3.138-11.752-20.405-16.279-12.779-3.351-30.021-11.869-38.294-18.917-1.247-1.063-3.897-3.157-5.888-4.655-4.364-3.282-4.942-3.837-11.668-11.218-11.085-12.163-22.048-27.835-28.466-40.688-3.51-7.033-9.477-26.526-11.236-36.712-.456-2.64-1.19-6.571-1.631-8.736-2.292-11.243-2.558-44.967-.409-51.864 1.238-3.974 3.331-7.113 8.743-13.113 5.167-5.728 14.42-17.676 17.042-22.003C102.408 72.867 105.053 63.804 95 67.249m208.422.186c-3.908 3.908 15.994 38.934 31.232 54.965 10.996 11.569 10.723 10.583 10.696 38.6-.019 19.623-.295 24.066-1.963 31.6-.536 2.42-1.261 5.93-1.612 7.8-2.746 14.637-10.641 36.205-16.189 44.223-.904 1.308-3.281 4.807-5.282 7.777-10.021 14.873-21.298 27.434-32.304 35.985-8.729 6.78-14.267 10.233-24.2 15.088-5.783 2.826-8.281 3.691-18.309 6.339-18.029 4.761-23.977 11.711-16.463 19.235 10.208 10.222 41.826 8.98 67.937-2.669 18.937-8.448 18.603-13.956-1.126-18.585-11.879-2.787-13.761-6.768-6.284-13.29 10.684-9.318 15.331-11.406 22.045-9.904 19.751 4.416 38.64-5.948 49.204-26.999 7.093-14.133 2.492-17.531-14.547-10.743-14.009 5.581-15.808 2.355-8.334-14.948 3.515-8.137 5.055-9.639 13.261-12.938 12.256-4.926 18.075-9.526 22.289-17.62 5.112-9.82 6.884-21.96 4.955-33.951-.425-2.64-.978-6.6-1.229-8.8-1.713-15.016-5.073-17.902-10.183-8.747-8.477 15.19-14.387 14.824-15.445-.955-.217-3.244-.773-7.942-1.234-10.441-1.032-5.581-.845-7.054 2.093-16.489 4.123-13.244 3.044-19.481-4.99-28.827-11.239-13.075-39.907-29.817-44.018-25.706M154.939 85.232c-3.352.569-6.053 1.748-19.923 8.695-19.225 9.629-19.157 9.528-16.851 24.998.866 5.807 1.256 10.746 2.045 25.875.132 2.53.594 6.94 1.026 9.8.433 2.86 1.057 8.516 1.389 12.568.904 11.063 1.161 11.837 5.636 16.979 4.078 4.685 5.623 6.898 6.554 9.385 3.192 8.532 2.461 17.086-2.219 25.952-4.076 7.723-4.323 11.769-1.59 26.116.523 2.75 1.15 7.416 1.392 10.369.858 10.47 1.649 11.962 8.002 15.115 3.337 1.656 44.33 18.375 56 22.839 5.951 2.277 6.046 2.253 32.8-8.361 37.31-14.801 37.429-14.853 39.694-17.327 1.98-2.162 3.87-11.183 4.91-23.435.346-4.07.906-9.11 1.245-11.2.888-5.479.613-6.76-3.053-14.2-6.949-14.101-6.029-23.115 3.597-35.251 5.448-6.868 6.466-11.089 7.811-32.387.335-5.301.967-11.781 1.404-14.4.437-2.619.971-7.732 1.186-11.362.214-3.63.597-9.435.85-12.9.575-7.874.303-9.161-2.449-11.613-2.137-1.902-25.779-13.911-30.595-15.54L251 85l-47-.059c-25.85-.032-47.928.099-49.061.291m58.368 27.111c31.052 5.446 39.083 34.191 18.288 65.457-6.499 9.772-6.864 11.713-3.691 19.6.885 2.2 4.129 10.93 7.209 19.4 6.148 16.906 11.122 29.697 12.978 33.378C252.452 258.825 249.46 261 233.2 261c-15.701 0-17.591-1.169-15.554-9.621 1.257-5.212-1.044-13.36-9.338-33.066-3.593-8.535-8.291-9.515-11.759-2.453l-1.149 2.34v27.6l1.543 4.506c3.059 8.927 1.215 10.438-13.143 10.775-17.559.412-20.099-1.187-16.9-10.64l1.3-3.841V131l-1.322-3.6c-4.295-11.694-3.493-14.57 4.276-15.338 4.722-.467 39.199-.237 42.153.281m-15.188 22.413c-2.764 1.746-2.719 1.382-2.719 21.844 0 17.841.025 18.442.822 19.799 1.436 2.445 3.249 2.141 6.676-1.119 11.294-10.747 15.557-31.235 7.868-37.817-3.234-2.768-10.192-4.257-12.647-2.707"},null,-1)),Qre=[Dre];function Lre(e,t){return o.openBlock(),o.createElementBlock("svg",Ure,Qre)}const l1=M(Ire,[["render",Lre],["__scopeId","data-v-5b8e191d"]]);const Ore={},Mre=e=>(o.pushScopeId("data-v-5b6f3d5e"),e=e(),o.popScopeId(),e),Nre={xmlns:"http://www.w3.org/2000/svg",viewBox:"58.93 70.36 282.28 264.88"},Pre=Mre(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M74.274 70.98C70.143 72.453 70 73.187 70 92.989c0 21.375-.191 20.705 7.953 27.937 2.556 2.269 6.54 5.914 8.854 8.1 2.315 2.186 5.915 5.497 8 7.359 2.086 1.861 5.953 5.468 8.593 8.015 2.64 2.547 6.42 5.963 8.4 7.591 1.98 1.628 5.94 5.133 8.8 7.788 2.86 2.654 7 6.432 9.2 8.395 2.2 1.962 5.98 5.503 8.4 7.868s6.59 6.158 9.268 8.429c4.882 4.142 12.716 11.282 23.838 21.729 3.28 3.08 7.792 7.123 10.028 8.985 2.236 1.861 5.776 5.021 7.866 7.021s5.69 5.329 8 7.396c2.31 2.068 6.81 6.22 10 9.226 3.19 3.007 7.69 7.081 10 9.053 21.285 18.171 21.513 18.953 9.193 31.537-11.486 11.732-11.469 11.443-1.589 26.173 10.712 15.973 10.896 15.947 20.619-2.991 11.834-23.052 13.416-25.365 25.434-37.203 11.725-11.549 16.26-14.348 43.754-26.997 11.527-5.303 11.173-7.25-3.018-16.595-15.492-10.2-15.171-10.208-26.226.594-13.433 13.125-12.533 13.445-37.919-13.489-3.986-4.229-12.558-13.143-19.048-19.807-6.49-6.665-13.69-14.274-16-16.909-2.31-2.635-9.78-10.466-16.6-17.402-6.82-6.936-15.279-15.667-18.799-19.402-3.519-3.734-11.46-11.95-17.645-18.256-6.186-6.306-13.297-13.768-15.802-16.581-20.002-22.467-26.5-28.126-33.898-29.522-4.553-.859-33.002-.901-35.382-.051m216.926.059c-7.757 1.18-15.308 7.452-32.457 26.961-2.998 3.41-10.947 11.813-17.664 18.674-18.498 18.89-18.283 16.816-3.329 32.126 5.05 5.17 11.341 11.83 13.981 14.8 10.629 11.958 10.819 11.943 25.898-2.122 3.206-2.991 7.616-6.926 9.8-8.745 2.184-1.819 6.041-5.312 8.571-7.763 4.366-4.231 7.244-6.886 21.639-19.97 13.379-12.161 12.447-9.635 12.278-33.282-.166-23.132 1.735-21.089-19.717-21.188-11.529-.052-16.118.07-19 .509M100.353 214.552c-2.773.991-20.47 12.72-22.081 14.635-1.619 1.924-1.444 3.394.643 5.394 1.846 1.768 16.397 9.364 26.085 13.616 11.889 5.218 13.609 6.491 26.829 19.866 11.076 11.206 10.481 10.327 20.611 30.449 11.967 23.77 11.22 23.54 22.788 7.024 10.227-14.603 10.258-13.976-1.248-25.724-10.551-10.773-10.909-12.12-5.142-19.314 4.67-5.824 3.236-8.817-9.202-19.218-2.55-2.132-6.976-6.088-9.836-8.791-8.553-8.083-10.094-8.421-16.842-3.693-6.031 4.224-8.258 3.44-18.406-6.477-8.442-8.25-10.183-9.202-14.199-7.767m-3.956 64.232c-2.342.689-4.018 2.019-10.527 8.355-3.778 3.678-8.94 8.499-11.47 10.715-7.557 6.617-12.117 11.625-13.871 15.235-4.825 9.931 1.8 21.016 12.924 21.628 6.239.343 9.298-1.455 19.527-11.475 3.971-3.89 9.903-9.585 13.182-12.657 13.369-12.524 13.444-13.102 3.039-23.437-7.544-7.493-10.098-9.161-12.804-8.364m203.369.571c-2.737 1.275-13.946 12.139-15.534 15.057-2.288 4.204-1.446 5.641 9.351 15.954 4.28 4.089 10.49 10.054 13.8 13.257 13.601 13.162 21.004 14.833 29.242 6.6 8.552-8.547 5.312-18.062-11.025-32.369-2.53-2.215-7.718-7.063-11.529-10.773-8.942-8.704-10.453-9.52-14.305-7.726"},null,-1)),Hre=[Pre];function Rre(e,t){return o.openBlock(),o.createElementBlock("svg",Nre,Hre)}const c1=M(Ore,[["render",Rre],["__scopeId","data-v-5b6f3d5e"]]);const Vre={},Kre=e=>(o.pushScopeId("data-v-81223df9"),e=e(),o.popScopeId(),e),$re={xmlns:"http://www.w3.org/2000/svg",viewBox:"5.25 32.41 384.35 392.23"},zre=Kre(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M196.56 32.706c-.242.162-.643.68-.891 1.151-.464.882-6.181 23.37-7.663 30.143-2.029 9.277-13.207 54.007-16.187 64.776-2.401 8.677-2.227 10.411 1.102 11.036 2.465.462 8.894-4.762 13.798-11.212 1.004-1.32 2.566-3.21 3.473-4.2.906-.99 2.417-2.935 3.358-4.322 2.851-4.205 4.112-4.166 7.292.224.916 1.264 2.6 3.288 3.743 4.498 1.142 1.21 3.257 3.64 4.698 5.401 6.387 7.801 10.008 10.411 12.645 9.115 2.896-1.422 3.516 2.259-6.28-37.316-2.423-9.79-4.945-20.05-5.603-22.8-8.63-36.06-11.562-46.819-12.753-46.794-.161.003-.49.138-.732.3m-77.835 9.868c-4.03 2.43-9.532 6.24-14.703 10.181-9.024 6.878-10.169 7.804-13.417 10.853-1.763 1.654-4.015 3.621-5.005 4.371-.99.75-3.702 3.177-6.026 5.393-2.324 2.215-5.474 5.198-7 6.628-3.458 3.241-9.993 10.614-12.232 13.8-.928 1.32-2.79 3.75-4.139 5.4-1.349 1.65-3.548 4.53-4.888 6.4-1.34 1.87-2.926 3.85-3.524 4.4-.599.55-2.45 2.8-4.113 5-1.663 2.2-3.953 5.08-5.087 6.4-1.134 1.32-3.261 4.11-4.725 6.2-1.464 2.09-3.443 4.88-4.399 6.2-8.17 11.289-23.812 36.82-24.163 39.441-.282 2.099.484 2.895 3.842 3.991 24.399 7.967 28.64 32.858 8.613 50.547-4.2 3.71-4.802 4.749-4.005 6.917 1.139 3.094 4.592 10.511 5.944 12.767.771 1.285 2.411 4.317 3.645 6.737s3.462 6.311 4.95 8.646c1.489 2.336 3.697 5.821 4.907 7.746 7.683 12.222 15.624 23.335 21.97 30.748 1.666 1.947 4.165 4.917 5.552 6.6 3.393 4.116 18.291 19.067 22.278 22.357 1.76 1.452 4.28 3.669 5.6 4.926 3.052 2.907 14.983 11.823 22.898 17.112 3.353 2.241 7.313 5.202 8.8 6.581 1.486 1.378 4.005 3.554 5.597 4.836 1.592 1.282 3.752 3.43 4.8 4.774 1.048 1.344 3.54 4.161 5.538 6.259 5.088 5.343 11.547 13.615 14.195 18.181 5.189 8.946 7.369 7.129 5.539-4.618-.458-2.942-.98-6.518-1.161-7.948-.906-7.167-3.701-21.63-4.87-25.2-4.277-13.062-8.002-19.195-11.662-19.199-2.363-.002-5.716-2.286-11.474-7.815-1.65-1.585-4.08-3.663-5.4-4.619-3.099-2.244-19.447-18.69-23.229-23.367-1.601-1.98-4.093-4.95-5.536-6.6-7.749-8.854-11.713-14.165-20.9-28-2.557-3.85-5.634-8.44-6.837-10.2-5.081-7.431-6.634-10.061-11.099-18.794-2.586-5.056-5.616-10.546-6.735-12.2-2.255-3.333-6.408-12.086-7.014-14.781-.886-3.942 4.505-17.812 11.748-30.225 1.155-1.98 3.322-5.76 4.815-8.4 3.088-5.461 12.353-19.487 14.344-21.717.729-.816 2.922-3.643 4.874-6.283 4.239-5.731 12.608-16.065 16.623-20.525 2.06-2.289 2.639-4.032 4.337-13.06 1.059-5.628 4.403-17.624 6.027-21.615.626-1.54 2.075-5.23 3.219-8.2 1.145-2.97 2.752-6.75 3.572-8.4.82-1.65 2.428-5.16 3.571-7.8 1.144-2.64 2.587-5.61 3.206-6.6.619-.99 2.405-4.315 3.97-7.388 4.164-8.182 3.716-10.062-1.631-6.838m152.701-1.017c-.394.638.802 3.336 6.061 13.68 7.714 15.171 14.334 30.793 16.444 38.805.428 1.627 1.251 4.578 1.828 6.558.577 1.98 1.741 6.957 2.586 11.061 1.741 8.459 1.616 8.201 7.055 14.569 3.573 4.183 5.806 6.933 12.8 15.763 17.7 22.344 38.646 60.307 37.177 67.379-.676 3.251-8.705 20.112-15.157 31.828-5.617 10.199-23.977 36.675-29.818 43-.813.88-2.297 2.68-3.298 4-1.001 1.32-2.399 2.94-3.107 3.6-.707.66-2.331 2.55-3.608 4.2-2.713 3.505-27.938 28.771-31.236 31.286-1.235.943-3.395 2.69-4.8 3.883-3.642 3.095-5.699 4.303-7.862 4.618-2.822.411-3.4.977-5.808 5.693-5.426 10.628-7.737 19.106-9.9 36.32-.194 1.54-.629 4.211-.968 5.935-.693 3.535-.813 9.292-.225 10.839.813 2.137 2.274 1.116 6.546-4.574 1.239-1.65 3.164-4.08 4.277-5.4 1.114-1.32 3.412-4.11 5.106-6.2 7.458-9.199 18.47-19.652 26.23-24.899 20.895-14.128 42.028-32.329 55.15-47.501 1.998-2.31 4.673-5.28 5.945-6.6 3.106-3.225 9.323-11.242 16.556-21.349 10.726-14.987 23-38.069 23-43.251 0-1.421-.265-1.773-3.657-4.866-13.765-12.547-17.154-26-10.012-39.734 2.918-5.61 7.799-9.456 15.469-12.187 3.788-1.349 5.4-2.597 5.4-4.181 0-2.486-15.591-29.304-21.703-37.33-.964-1.266-2.992-4.102-4.507-6.302-3.233-4.697-12.836-17.271-16.037-21-1.228-1.43-5.14-5.903-8.693-9.939-3.553-4.037-7.9-9.063-9.66-11.17-6.962-8.333-21.833-22.69-29.55-28.528-2.007-1.519-6.922-5.237-10.921-8.262-11.116-8.41-16.153-11.28-17.103-9.744M179.2 51.341c-.55.296-3.07 1.762-5.6 3.259-2.53 1.498-7.39 4.339-10.8 6.313-3.41 1.975-7.46 4.406-9 5.403-1.54.997-6.847 4.239-11.794 7.206-15.808 9.481-31.025 19.992-33.345 23.033-1.987 2.605-3.944 11.726-2.958 13.789 1.055 2.209 2.118 1.698 11.097-5.333 19.356-15.157 31.76-23.788 34.211-23.805 1.433-.01 2.574 1.182 4.172 4.361 3.175 6.314 4.208 6.746 8.866 3.708 1.623-1.058 4.259-2.7 5.857-3.649 4.495-2.667 4.798-3.169 6.895-11.426.447-1.76 1.8-7.035 3.006-11.723 2.901-11.276 2.809-12.968-.607-11.136m34.667.526c-1.284 1.284 5.221 27.239 7.638 30.478.938 1.256 7.903 6.113 11.489 8.011 3.101 1.642 4.066 1.08 6.79-3.956 3.49-6.451 3.98-6.45 13.616.006 7.527 5.044 20.023 14.489 26.751 20.221 9.473 8.07 11.523 7.245 8.835-3.555-1.659-6.668-2.042-7.168-10.078-13.136-6.485-4.816-28.683-18.844-36.308-22.944-1.98-1.065-5.329-2.973-7.442-4.24-2.113-1.267-5.623-3.289-7.8-4.492-2.177-1.203-5.758-3.194-7.958-4.424-3.846-2.15-4.957-2.545-5.533-1.969m-66.528 42.131c-.473.191-2.293 1.395-4.044 2.675-1.75 1.28-5.216 3.767-7.702 5.527-15.252 10.8-20.061 14.74-30.518 25-7.651 7.506-10.953 11.189-16.78 18.709-1.488 1.92-3.502 4.491-4.476 5.713-1.563 1.962-6.305 8.602-12.875 18.026-8.992 12.898-21.491 35.511-21.525 38.94-.019 2.036 3.141 9.239 6.762 15.412.709 1.21 2.606 4.63 4.214 7.6 11.397 21.048 20.971 33.763 39.005 51.803 19.754 19.761 24.958 24.424 43.868 39.309 9.849 7.752 9.183 9.072 9.042-17.927-.125-24.038.191-22.035-3.762-23.789-1.495-.662-4.107-2.852-9.61-8.053-4.156-3.929-9.331-8.762-11.501-10.742-4.157-3.792-11.026-11.294-14.652-16.001-1.186-1.54-2.888-3.63-3.782-4.644-.894-1.015-2.767-3.535-4.162-5.6-1.86-2.755-3.274-4.326-5.305-5.893-5.021-3.876-15.634-18.493-17.185-23.669-1.028-3.43 6.996-14.13 20.767-27.694 7.562-7.448 8.393-7.601 12.523-2.294.939 1.207 3.069 3.647 4.733 5.422 1.664 1.775 3.892 4.25 4.951 5.5 2.585 3.051 3.779 3.1 7.712.317 4.055-2.87 16.785-15.892 17.142-17.536.331-1.521.569-.625-3.411-12.797-4.73-14.467-6.033-11.772 12.572-26.006 4.48-3.426 4.785-3.849 4.555-6.302-.189-2.012-4.81-13.623-7.882-19.804-.82-1.65-2.009-4.335-2.641-5.966-1.772-4.57-3.648-6.198-6.033-5.236m96.668.395c-.807.807-2.36 3.975-4.415 9.007-.629 1.54-2.336 5.5-3.793 8.8-6.848 15.511-6.888 14.52.812 19.977 8.955 6.347 14.589 11.497 14.589 13.337-.001.946-3.853 12.713-6.344 19.376-1.908 5.104-1.758 5.362 9.369 16.04 11.414 10.953 11.327 10.936 17.454 3.294 1.565-1.952 8.193-9.257 9.696-10.687 2.159-2.052 4.75-.516 12.425 7.366 14.713 15.111 20.166 22.564 19.029 26.01-.732 2.216-7.044 12.21-9.14 14.469-1.679 1.811-4.565 5.349-11.089 13.6-8.574 10.841-41.872 43.429-47.041 46.036-3.976 2.006-3.759.609-3.759 24.2 0 22.706-.039 22.382 2.721 22.382 1.569 0 2.82-.883 13.163-9.293 1.696-1.379 4.396-3.568 6-4.864 1.604-1.297 4.176-3.562 5.716-5.034 1.54-1.471 3.97-3.592 5.4-4.712 1.43-1.121 3.86-3.33 5.4-4.911 1.54-1.58 3.7-3.585 4.8-4.454 3.3-2.61 18.909-17.902 21.546-21.109 1.35-1.642 3.464-4.074 4.698-5.404 2.215-2.389 3.163-3.563 8.898-11.019 7.577-9.85 14.393-21.081 21.886-36.056 5.889-11.771 5.957-12.57 1.607-18.893-.659-.959-2.706-4.332-4.548-7.497-7.471-12.836-15.422-25.234-21.131-32.954-13.902-18.797-15.65-20.983-22.616-28.278-7.44-7.792-13.149-13.243-18.142-17.322-7.348-6.003-18.73-14.447-28.138-20.874-2.216-1.514-3.895-1.691-5.053-.533m-48.324 38.234c-.492.345-1.784 1.944-2.871 3.555-2.76 4.091-6.753 8.511-10.568 11.697-1.784 1.491-9.814 9.219-17.844 17.174-8.03 7.954-15.767 15.427-17.193 16.605-1.426 1.178-6.663 6.102-11.637 10.942-4.975 4.84-14.224 13.736-20.555 19.769-12.119 11.549-13.028 12.587-12.985 14.831.042 2.222.386 2.728 5.306 7.8 2.561 2.64 6.154 6.375 7.986 8.3 5.068 5.328 4.972 5.368 18.52-7.778 5.647-5.48 6.33-5.384 13.358 1.876 1.43 1.478 6.38 6.205 11 10.506s14.823 14.086 22.674 21.744c17.648 17.215 15.94 16.543 23.171 9.12 2.555-2.623 5.293-5.283 6.085-5.912 1.798-1.43 21.471-20.066 26.871-25.456 7.915-7.901 16.576-15.779 17.64-16.046 1.759-.441 3.27.704 10.693 8.098 8.234 8.203 9.025 8.556 11.835 5.279.787-.919 2.988-3.304 4.891-5.3 11.519-12.086 11.901-13.498 5.206-19.285-1.686-1.458-10.356-9.712-19.266-18.343-8.91-8.631-17.28-16.642-18.6-17.803-1.32-1.16-5.756-5.46-9.857-9.555-13.461-13.439-19.294-19.065-22.743-21.936-4.84-4.029-11.755-11.258-15.099-15.785-3.522-4.767-4.303-5.299-6.018-4.097m2.802 27.673c.335.385 1.442 2.328 2.46 4.318 1.977 3.863 6.153 8.307 16.146 17.182 2.23 1.98 5.461 5.196 7.181 7.146 1.721 1.951 4.658 4.92 6.528 6.597 13.563 12.168 15.184 14.028 14.195 16.285-.513 1.169-10.056 10.824-15.845 16.029-1.677 1.509-8.247 7.714-14.6 13.789-15.23 14.565-15.45 14.754-17.166 14.754-1.572 0-2.598-.881-16.275-13.988-4.24-4.063-12.901-12.339-19.247-18.392-11.302-10.781-12.662-12.29-12.662-14.049 0-.61 3.353-4.137 11.3-11.884 6.215-6.059 13.19-12.935 15.5-15.281 2.31-2.346 5.763-5.566 7.674-7.157 5.063-4.214 8.072-7.596 9.55-10.734 2.323-4.934 3.832-6.258 5.261-4.615m-2.368 9.95c-.265.113-1.38 1.408-2.476 2.878-1.977 2.648-14.1 14.843-18.559 18.667-1.275 1.094-5.46 5.272-9.3 9.285-7.641 7.986-7.921 8.488-6.192 11.11 1.133 1.72 37.333 37.449 37.81 37.319 1.004-.273 37.7-37.781 37.942-38.781.143-.59.087-1.526-.124-2.08-.428-1.128-12.115-13.671-14.262-15.309-.758-.578-6.175-6.02-12.038-12.095-10.112-10.476-11.405-11.586-12.801-10.994m2.203 16.313c1.773.925 21.6 21.18 21.9 22.373.147.585.144 1.553-.006 2.15-.348 1.389-22.144 23.394-23.007 23.23-.334-.064-5.602-5.183-11.707-11.376-14.563-14.772-14.98-10.815 3.09-29.282 7.377-7.538 8.003-7.995 9.73-7.095m-16.023 95.832c-1.603 1.261-15.227 23.557-15.633 25.583-.163.818.3 3.34 1.382 7.526.895 3.463 2.229 8.906 2.966 12.096 1.606 6.958 7.686 30.805 12.085 47.4 1.75 6.6 3.462 13.17 3.805 14.6 2.478 10.341 6.74 26.114 7.411 27.429.446.875 1.034 2.724 1.307 4.11.889 4.517 2.575 4.686 3.753.378.379-1.385 1.284-4.407 2.012-6.717.727-2.31 1.728-6 2.222-8.2.495-2.2 1.149-4.99 1.455-6.2 2.792-11.062 9.84-38.585 11.933-46.6 1.437-5.5 3.071-11.98 3.632-14.4.56-2.42 1.807-7.37 2.77-11 2.989-11.267 4.603-18.241 4.603-19.885 0-2.163-.932-3.846-9.589-17.315-1.485-2.31-3.156-5.01-3.714-6-2.806-4.983-5.381-4.588-10.137 1.555-2.771 3.579-3.209 4.54-3.962 8.681-2.699 14.846-3.756 15.117-6.183 1.582-1.658-9.245-8.484-17.481-12.118-14.623"},null,-1)),Wre=[zre];function Gre(e,t){return o.openBlock(),o.createElementBlock("svg",$re,Wre)}const u1=M(Vre,[["render",Gre],["__scopeId","data-v-81223df9"]]),jre=e=>(o.pushScopeId("data-v-08c75490"),e=e(),o.popScopeId(),e),Yre=jre(()=>o.createElementVNode("div",{class:"background"},null,-1)),qre={class:"content"},Xre={class:"format"},Jre={class:"format-text"},Zre={key:0,class:"details built"},eae={class:"title"},tae={class:"extra-info"},nae={class:"info-time"},rae={key:1,class:"details stats"},aae={class:"stat-column"},iae={class:"descriptor"},sae={class:"stat-column"},oae={class:"number"},Aae={class:"descriptor"},lae=o.defineComponent({__name:"DeckBlock",props:Fre,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.inject(ri),i=o.ref(!1),s=o.computed(()=>Bt(n.deckCode)),A=o.computed(()=>Zt(s.value)),l=o.computed(()=>WA(A.value)),c=o.computed(()=>A.value.filter(h=>Ls(h))),u=o.computed(()=>{var g;const h=(g=na(A.value,s.value,1)[0])==null?void 0:g.cardCode;return{"--background-image":`url(${ge().callbacks.cardImageCallback(h??"",gt.Full)})`}}),d=o.computed(()=>H3(A.value)),f=o.computed(()=>d.value.map(h=>ve().dataJson.cardFormats.find(g=>g.nameRef===h)).filter(h=>h!==void 0).sort((h,g)=>h.order-g.order)[0]),p=o.computed(()=>({showButtons:{deleteDeck:n.type==="built"?n.showOwnerButtons:!1,updateDeckPrivacy:n.type==="built"?n.showOwnerButtons:!1,editDeckName:n.type==="built"?n.showOwnerButtons:!1,gemsCost:!1,openArchetypePage:n.type!=="built",simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:n.deckCode,deckBuilderRouterLink:n.deckBuilderRouterLink,archetypeRouterLink:n.type==="built"?void 0:n.archetypeRouterLink,deckId:n.type==="built"?n.deckId:void 0,deckName:n.type==="built"?n.deckName:void 0,isPrivate:n.type==="built"?n.isPrivate:void 0}));return(h,g)=>{const B=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(B,{to:n.routerLink},{default:o.withCtx(()=>{var m,v,w;return[o.createElementVNode("div",{class:o.normalizeClass(["built-deck-preview",i.value?"show":"hide"]),style:o.normalizeStyle(u.value)},[Yre,o.createVNode(jd,{class:"deck-highlight-eye icon","deck-code":n.deckCode,onClick:g[0]||(g[0]=o.withModifiers(()=>{},["stop","prevent"])),"deck-buttons-props":{...p.value,showButtons:{...p.value.showButtons,gemsCost:!0,shareDeck:!0}}},null,8,["deck-code","deck-buttons-props"]),o.createElementVNode("div",{class:"options-button icon",onClick:g[1]||(g[1]=o.withModifiers(y=>i.value=!i.value,["stop","prevent"]))},[o.createVNode(o.unref(ke),{icon:"ellipsis-v"})]),o.createVNode(Ao,o.mergeProps({class:"deck-buttons",onClick:g[2]||(g[2]=o.withModifiers(()=>{},["stop","prevent"])),"onClick:delete":g[3]||(g[3]=y=>t("click:delete")),"onClick:editName":g[4]||(g[4]=y=>t("click:edit-name")),"onClick:share":g[5]||(g[5]=y=>t("click:share")),"onClick:updatePrivacy":g[6]||(g[6]=y=>t("click:update-privacy"))},p.value),null,16),o.createVNode(il,{class:"deck-highlight-regions deck-highlight-section",regions:l.value},null,8,["regions"]),o.createElementVNode("div",qre,[o.createElementVNode("div",Xre,[((m=f.value)==null?void 0:m.nameRef)===o.unref(Jn).Eternal?(o.openBlock(),o.createBlock(l1,{key:0,class:"format-icon"})):((v=f.value)==null?void 0:v.nameRef)===o.unref(Jn).Standard?(o.openBlock(),o.createBlock(c1,{key:1,class:"format-icon"})):(o.openBlock(),o.createBlock(u1,{key:2,class:"format-icon"})),o.createElementVNode("span",Jre,o.toDisplayString((w=f.value)==null?void 0:w.name),1)]),o.createVNode(sl,{class:"deck-highlight-cards deck-highlight-section",cards:c.value},null,8,["cards"])]),n.type==="built"?(o.openBlock(),o.createElementBlock("div",Zre,[o.createElementVNode("div",eae,o.toDisplayString(n.deckName),1),o.createElementVNode("div",tae,[o.createElementVNode("div",{class:"info-user",onClick:g[7]||(g[7]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(B,{to:n.playerRouterLink},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(n.userName),1)]),_:1},8,["to"])]),o.createElementVNode("div",nae,o.toDisplayString(o.unref(a)(n.updatedAt).fromNow()),1)])])):o.createCommentVNode("",!0),n.type==="stats"?(o.openBlock(),o.createElementBlock("div",rae,[o.createElementVNode("div",aae,[o.createElementVNode("div",{class:"number",style:o.normalizeStyle({color:`var(${o.unref($n)(n.wins/n.matches)})`})},o.toDisplayString(o.unref(Ce)(n.wins/n.matches*100,1,3))+"% ",5),o.createElementVNode("div",iae,o.toDisplayString(o.unref(r)("general.winrate")),1)]),o.createElementVNode("div",sae,[o.createElementVNode("div",oae,o.toDisplayString(o.unref(Ce)(n.matches,0,10)),1),o.createElementVNode("div",Aae,o.toDisplayString(o.unref(r)("general.matches")),1)])])):o.createCommentVNode("",!0)],6)]}),_:1},8,["to"])}}});const E4=M(lae,[["__scopeId","data-v-08c75490"]]),cae={headingItems:{type:Array,required:!0,default:[]}},uae={class:"table-wrapper"},dae={class:"table no-scrollbar"},fae={class:"heading wrapper"},pae=o.defineComponent({__name:"SmallTable",props:cae,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",uae,[o.createElementVNode("div",dae,[o.createElementVNode("div",fae,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.headingItems,a=>(o.openBlock(),o.createElementBlock("div",{key:a.title,class:"heading-cell column-content"},[o.createElementVNode("div",null,o.toDisplayString(a.title),1)]))),128)),o.renderSlot(n.$slots,"heading",{},void 0,!0)]),o.renderSlot(n.$slots,"default",{},void 0,!0)])]))}});const ts=M(pae,[["__scopeId","data-v-20cc8387"]]),hae={players:{type:Array,required:!0,default:[]}},mae=e=>(o.pushScopeId("data-v-48a25357"),e=e(),o.popScopeId(),e),gae={class:"leaderboard-top"},vae=mae(()=>o.createElementVNode("div",{class:"heading-background"},null,-1)),yae={class:"heading-wrapper"},Bae=o.defineComponent({__name:"LeaderboardTop",props:hae,setup(e){const t=e,n=o.computed(()=>ve().dataJson.servers.map(r=>t.players.filter(a=>a.server===r.nameRef).sort((a,i)=>a.rank-i.rank).slice(0,10)));return(r,a)=>(o.openBlock(),o.createElementBlock("div",gae,[vae,o.createElementVNode("div",yae,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(ve)().dataJson.servers,i=>(o.openBlock(),o.createElementBlock("div",{key:i.nameRef,class:"heading"},o.toDisplayString(i.name),1))),128))]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.value,(i,s)=>(o.openBlock(),o.createElementBlock("div",{key:s,class:"top-10"},[o.createVNode(o1,{players:i},null,8,["players"])]))),128))]))}});const S4=M(Bae,[["__scopeId","data-v-48a25357"]]),wae={flipped:{type:Boolean,required:!0,default:!0},cardCode:{type:String,required:!0,default:"01IO001"}},bae={class:"card-item-3d"},_ae=o.defineComponent({__name:"CardItem3d",props:wae,setup(e){const t=e,n=o.computed(()=>{const i=GA(void 0,t.cardCode,!0);if(i.value===void 0)return{};const s=i.value.regionRefs[0]??"Runeterra";return{content:`url(${ge().callbacks.cardbackCallback(s)})`}}),r=o.computed(()=>({"background-image":`url("${ge().callbacks.cardImageCallback(t.cardCode,gt.Card)}")`,"background-size":"cover"})),a=o.computed(()=>t.flipped?["flipped"]:[]);return(i,s)=>(o.openBlock(),o.createElementBlock("div",bae,[o.createElementVNode("div",{class:o.normalizeClass(["card",a.value])},[o.createElementVNode("div",{class:"front face",style:o.normalizeStyle(n.value)},null,4),o.createElementVNode("div",{class:"back face",style:o.normalizeStyle(r.value)},null,4)],2)]))}});const d1=M(_ae,[["__scopeId","data-v-1f9dece8"]]),Cae={cardFlips:{type:Array,required:!0,default:[]},chosenCardCode:{type:String,required:!0,default:null},opensAvailable:{type:Number,required:!0,default:0}},kae={class:"card-lottery"},Eae={class:"cards"},Sae={key:0,class:"bottom"},xae={class:"slice"},Fae={class:"circle-slice-item-wrapper"},Iae={class:"options"},Tae={class:"icon"},Uae={class:"circle-card-item-wrapper"},Dae=o.defineComponent({__name:"CardLottery",props:Cae,emits:["update:cardFlips","update:chosenCardCode","click:setBanner","click:setIcon","click:openAnother"],setup(e,{emit:t}){const n=e;function r(a){t("update:chosenCardCode",a.cardCode),a.flipped=!0;for(const i of n.cardFlips)a!==i&&setTimeout(()=>{i.display=!1},1e3)}return(a,i)=>{var A,l,c;const s=o.resolveDirective("t");return o.openBlock(),o.createElementBlock("div",kae,[o.createElementVNode("div",Eae,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.cardFlips,u=>(o.openBlock(),o.createElementBlock("div",{key:`${u.cardCode}`,class:o.normalizeClass(["card-item-3d-wrapper",u.display?null:"hide"])},[o.createVNode(d1,{flipped:u.flipped,"card-code":u.cardCode,onClick:d=>r(u)},null,8,["flipped","card-code","onClick"])],2))),128))]),a.chosenCardCode?(o.openBlock(),o.createElementBlock("div",Sae,[o.createElementVNode("div",xae,[o.createElementVNode("div",Fae,[o.createVNode($t,{name:(A=o.unref(Kt)().user)==null?void 0:A.name,"mana-number":1,"card-code-prop":a.chosenCardCode,"ignore-card-item":!0,color:((l=o.unref(Kt)().user)==null?void 0:l.selectedBannerColor)??"var(--color-background-2-rgb)","router-link":""},null,8,["name","card-code-prop","color"])])]),o.createElementVNode("div",Iae,[o.withDirectives(o.createElementVNode("button",{onClick:i[0]||(i[0]=u=>t("click:setBanner")),class:"fancy-button"},null,512),[[s,"cardLottery.setBanner"]]),o.withDirectives(o.createElementVNode("button",{onClick:i[1]||(i[1]=u=>t("click:setIcon")),class:"fancy-button"},null,512),[[s,"cardLottery.setIcon"]]),o.createElementVNode("button",{class:"fancy-button",onClick:i[2]||(i[2]=u=>t("click:openAnother"))},[o.withDirectives(o.createElementVNode("span",null,null,512),[[s,"cardLottery.openAnother"]]),o.createElementVNode("span",null," ("+o.toDisplayString(n.opensAvailable)+") ",1)])]),o.createElementVNode("div",Tae,[o.createElementVNode("div",Uae,[o.createVNode(fa,{"color-override":((c=o.unref(Kt)().user)==null?void 0:c.selectedBannerColor)??"var(--color-primary-2)","card-code-prop":a.chosenCardCode,"ignore-card-item":!0,"router-link":""},null,8,["color-override","card-code-prop"])])])])):o.createCommentVNode("",!0)])}}});const x4=M(Dae,[["__scopeId","data-v-53ddcbb6"]]),Qae={bannerCardCode:{type:String,required:!0,default:""},bannerColor:{type:String,required:!0,default:""},iconCardCode:{type:String,required:!0,default:""},name:{type:String,required:!0,default:""},server:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},premiumExpiration:{type:Date,required:!1,default:null},isPremiumRenewing:{type:Boolean,required:!0,default:!1},routerLink:{type:Object,required:!0,default:""},premiumLink:{type:Object,required:!0,default:""}},Lae={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:2},cutout:{type:Number,required:!1,default:145}},f1=o.defineComponent({__name:"WinrateDoughnutChart",props:Lae,setup(e){const t=e,n=o.ref(null);Oe.register(...Sr);const r=o.computed(()=>({labels:["Wins","Losses"],datasets:[{data:[t.wins,t.matches-t.wins],backgroundColor:["#00adff","#ff5153"]}]})),a={cutout:t.cutout,elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1},datalabels:{display:!1}}},i=[{id:"text",beforeDraw:function(s){const A=s.chartArea.width,l=s.chartArea.height,c=s.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const d=s.data.datasets[0].data[0],f=s.data.datasets[0].data[1],p=(d/(d+f)*100).toFixed(2)+"%",h=Math.round((A-c.measureText(p).width)/2),g=l/2;d>f?c.fillStyle="#00adff":d<f?c.fillStyle="#ff5153":c.fillStyle="#ffffff",c.fillText(p,h,g),c.save()}}];return(s,A)=>(o.openBlock(),o.createBlock(o.unref(hd),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:i},null,8,["chart-data"]))}}),Oae={class:"dashboard-profile"},Mae={class:"profile-banner"},Nae=["src"],Pae={class:"edit-banner"},Hae={class:"profile-text"},Rae={class:"profile-region"},Vae={class:"profile-tiles"},Kae={class:"profile-tile"},$ae={class:"tile-content"},zae={class:"games-text"},Wae={class:"tile-text"},Gae={class:"profile-tile"},jae={class:"chart-container"},Yae={class:"tile-content"},qae={class:"tile-text"},Xae={key:0,class:"profile-premium-expiration"},Jae={class:"profile-premium-expiration-time"},Zae=o.defineComponent({__name:"DashboardProfile",props:Qae,setup(e){const t=e,{t:n}=J(),r=o.inject(ri);return(a,i)=>{const s=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",Oae,[o.createElementVNode("div",Mae,[o.createElementVNode("img",{alt:"Profile Banner",src:o.unref(ge)().callbacks.cardImageCallback(t.bannerCardCode??"05BC160",o.unref(gt).Banner),class:"profile-banner-img"},null,8,Nae),o.createVNode(fa,{"card-code-prop":t.iconCardCode??"05BC160","ignore-card-item":!0,"color-override":t.bannerColor,"router-link":t.routerLink},null,8,["card-code-prop","color-override","router-link"]),o.createElementVNode("div",Pae,[o.createVNode(o.unref(ke),{icon:"pencil-alt"})])]),o.createElementVNode("div",Hae,[o.createVNode(s,{to:t.routerLink,class:"profile-name"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(t.name),1)]),_:1},8,["to"]),o.createElementVNode("div",Rae,o.toDisplayString(t.server),1)]),o.createElementVNode("div",Vae,[o.createElementVNode("div",Kae,[o.createElementVNode("div",$ae,[o.createElementVNode("div",zae,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1)]),o.createElementVNode("div",Wae,o.toDisplayString(o.unref(n)("general.gamesPlayed")),1)]),o.createElementVNode("div",Gae,[o.createElementVNode("div",jae,[o.createElementVNode("div",Yae,[o.createVNode(f1,{matches:t.matches,wins:t.wins,cutout:30},null,8,["matches","wins"])])]),o.createElementVNode("div",qae,o.toDisplayString(o.unref(n)("general.winrate")),1)])]),t.premiumExpiration?(o.openBlock(),o.createElementBlock("div",Xae,[o.createTextVNode(o.toDisplayString(o.unref(n)("general.premium"))+" "+o.toDisplayString(t.isPremiumRenewing?o.unref(n)("general.renews"):o.unref(n)("general.expires"))+" ",1),o.createElementVNode("b",Jae,o.toDisplayString(o.unref(r)(t.premiumExpiration).fromNow()),1)])):(o.openBlock(),o.createBlock(s,{key:1,to:t.premiumLink,class:"profile-premium fancy-button"},{default:o.withCtx(()=>[o.createTextVNode(o.toDisplayString(o.unref(n)("general.getPremium")),1)]),_:1},8,["to"]))])}}});const F4=M(Zae,[["__scopeId","data-v-592eac82"]]),eie={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"totalPlayers"},server:{type:String,required:!1}};function tie(e,t){const{t:n}=J();Oe.register(es),e.plugins||(e.plugins={}),e.plugins.annotation||(e.plugins.annotation={}),e.plugins.annotation.annotations=[];let r=new Date("1972-01-01"),a=new Date("3000-12-01");for(const s of t)s>r&&(r=s),s<a&&(a=s);const i=[];for(const s of Object.values(ve().dataJson.patches))new Date(s.startTime)<=r&&new Date(s.startTime)>=a&&i.push(s);for(const s of i)e.plugins.annotation.annotations.push({type:"line",xMin:s.startTime,xMax:s.startTime,borderColor:"rgba(255, 255, 255, 0.1)",borderDash:[10,5],borderWidth:1,label:{content:`${n("general.patch")} ${s.name}`,display:!0,position:"start",font:{weight:"normal"},backgroundColor:"rgba(0,0,0,0.2)"}})}const I4=o.defineComponent({__name:"LeaderboardChart",props:eie,setup(e){const t=e,n=o.ref();Oe.register(...Sr),Oe.register(es);const r=o.computed(()=>t.data.slice().sort((s,A)=>+s.date-+A.date)),a=o.computed(()=>{let s;return t.type==="totalPlayers"?s=ve().dataJson.servers.filter(A=>t.server===null?!0:A.nameRef===t.server).map(A=>({label:A.name,borderColor:Q1(A.nameRef),data:r.value.filter(l=>l.server===A.nameRef).map(l=>l.players),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})):s=r.value.reduce((A,l)=>A.includes(l.name)?A:[...A,l.name],[]).map(A=>({label:A,borderColor:Q1(A),data:r.value.filter(l=>l.name===A).map(l=>t.type==="lp"?l.lp:l.rank),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"})),{labels:r.value.map(A=>A.date).filter((A,l,c)=>c.findIndex(u=>u.getTime()===A.getTime())===l),datasets:s}}),i={plugins:{legend:{display:!0},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}}};return tie(i,t.data.map(s=>s.date)),(s,A)=>(o.openBlock(),o.createBlock(o.unref(J_),{ref_key:"chart",ref:n,"chart-data":a.value,options:i},null,8,["chart-data"]))}}),nie={data:{type:Array,required:!0,default:[]},type:{type:Object,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},T4=o.defineComponent({__name:"CardQuantityBarChart",props:nie,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es),Oe.register(xd);const a=o.computed(()=>({labels:t.data.map(s=>s.quantity),datasets:[{backgroundColor:t.data.map(s=>s.wins*2>=s.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:t.data.map(s=>t.type==="winrate"?s.wins/s.matches*100-t.baseline:s.matches)}]})),i={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(s){return`${n("general.quantity")}: ${s[0].label}`},label(s){return t.type==="winrate"?(s.dataset.data[s.dataIndex]+t.baseline).toFixed(2)+"%":s.dataset.data[s.dataIndex].toString()},footer(s){return[`${n("general.matches")}: ${t.data[s[0].dataIndex].matches}`,`${n("general.wins")}: ${t.data[s[0].dataIndex].wins}`]}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:t.type==="winrate"?n("general.winrate"):n("general.matches")},ticks:{callback(s){return t.type==="winrate"?s+t.baseline+"%":s}}},x:{title:{display:!0,text:n("general.quantity")}}}};return(s,A)=>(o.openBlock(),o.createBlock(o.unref(pd),{ref_key:"chart",ref:r,"chart-data":a.value,options:i},null,8,["chart-data"]))}}),rie={data:{type:Array,required:!0,default:""}},U4=o.defineComponent({__name:"WinsLossesBarChart",props:rie,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es),Oe.register(xd);const a=o.computed(()=>t.data.length===0?!1:typeof t.data[0].column!="string"),i=o.computed(()=>a.value?t.data.slice().sort((u,d)=>u.column.getTime()-d.column.getTime()):t.data),s=o.computed(()=>[...new Set(i.value.map(u=>u.column))]),A=o.computed(()=>({losses:i.value.map(u=>u.matches-u.wins),wins:i.value.map(u=>u.wins)})),l=o.computed(()=>({labels:s.value,datasets:Object.entries(A.value).map((u,d)=>({backgroundColor:u[0]==="wins"?`rgba(${Wa("--color-good-rgb")}, 0.5)`:`rgba(${Wa("--color-bad-rgb")}, 0.5)`,data:u[1],borderRadius:d===0?{topLeft:0,topRight:0,bottomLeft:10,bottomRight:10}:{topLeft:10,topRight:10,bottomLeft:0,bottomRight:0},borderSkipped:!1,label:n(`general.${u[0]}`),barPercentage:.5}))})),c={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!1},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{footer(u){if(u.length===0)return"";let d=0;const f=u[0].chart.data.datasets[1].data[u[0].dataIndex];for(let p=0;p<u[0].chart.data.datasets.length;p++)d+=u[0].chart.data.datasets[p].data[u[0].dataIndex];return`${n("general.total")}: ${d}
|
|
894
|
+
${n("general.winrate")}: ${Ce(f/d*100,1,3)}%`}}},datalabels:{align:"end",anchor:"end",formatter(u,d){const f=i.value[d.dataIndex];return Ce(f.wins/f.matches*100,2)+"%"},display(u){return u.datasetIndex===u.chart.data.datasets.length-1}}},scales:{x:{type:a.value?"time":"category",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"},stacked:!0,grid:{display:!1}},y:{stacked:!0,grid:{display:!1},display:!0}}};return(u,d)=>(o.openBlock(),o.createBlock(o.unref(pd),{ref_key:"chart",ref:r,"chart-data":l.value,options:c},null,8,["chart-data"]))}}),aie={data:{type:Array,required:!0,default:[]},type:{type:String,required:!0,default:"winrate"},baseline:{type:Number,required:!1,default:50}},D4=o.defineComponent({__name:"RoundCardInfoBarChart",props:aie,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es),Oe.register(xd);const a=o.computed(()=>Object.values(L3(t.data,A=>A.copy))),i=o.computed(()=>({labels:Array.from(t.data.reduce((A,l)=>A.add(l.round),new Set)),datasets:a.value.map(A=>{var l;return{backgroundColor:A.map(c=>c.wins*2>=c.matches?"rgba(0, 173, 255, 0.5)":"rgba(255, 81, 83, 0.5)"),borderWidth:0,borderRadius:9999,data:A.map(c=>c.wins/c.matches*100-t.baseline),label:`${n("general.copy")} ${(l=A[0])==null?void 0:l.copy}`}})})),s={responsive:!0,maintainAspectRatio:!1,plugins:{legend:{display:!0},tooltip:{enabled:!0,mode:"index",intersect:!1,callbacks:{title(A){return`${n("general.round")}: ${A[0].label}`},label(A){return(A.dataset.data[A.dataIndex]+t.baseline).toFixed(2)+"%"},footer(A){const l=[];for(const c of a.value)c[A[0].dataIndex]!==void 0&&l.push(`${n("general.copy")} ${c[A[0].dataIndex].copy}`,`${n("general.matches")}: ${c[A[0].dataIndex].matches}`,`${n("general.wins")}: ${c[A[0].dataIndex].wins}`);return l}}},datalabels:{display:!1}},scales:{y:{title:{display:!0,text:n("general.winrate")},ticks:{callback(A){return A+t.baseline+"%"}}},x:{title:{display:!0,text:t.type==="drawn"?n("cards.roundDrawn"):n("cards.roundPlayed")}}}};return(A,l)=>(o.openBlock(),o.createBlock(o.unref(pd),{ref_key:"chart",ref:r,"chart-data":i.value,options:s},null,8,["chart-data"]))}}),iie={data:{type:Array,required:!0,default:[]},baseline:{type:Number,required:!1,default:50},type:{type:String,required:!0,default:"winrate"},yAxis:{type:String,required:!0,default:"date"}},Q4=o.defineComponent({__name:"LineChart",props:iie,setup(e){const t=e,{t:n}=J(),r=o.ref();Oe.register(...Sr),Oe.register(es);const a=o.computed(()=>({labels:t.data.map(A=>A.label),datasets:[{borderColor:"rgba(255, 255, 255, 0.1)",data:t.data.map(A=>A.totalMatches&&t.type==="playrate"?A.matches/(A.totalMatches??1)*100:A.winrate*100),pointBackgroundColor:"rgba(255, 255, 255, 0.25)"},{pointBackgroundColor:"rgba(255, 255, 255, 0)",data:t.data.map(()=>t.baseline),borderColor:"rgba(0, 0, 0, 0.05)"}]})),i=o.computed(()=>({plugins:{legend:{display:!1},tooltip:{mode:"nearest",position:"nearest",axis:"x",intersect:!1,filter:function(A){return A.datasetIndex===0},callbacks:{label(A){let l=A.dataset.label||"";return l&&(l+=": "),l+=A.parsed.y+"%",l},footer:A=>{let l="";return A[0].dataIndex!==null&&t.data[A[0].dataIndex].matches&&(l+=`${n("general.matches")}: ${t.data[A[0].dataIndex].matches}`),l}}},annotation:{annotations:[]},datalabels:{display:!1}},elements:{line:{tension:.25}},scales:{x:t.yAxis==="date"?{type:"time",time:{unit:"day",displayFormats:{day:"MMM D"},tooltipFormat:"MMM D"}}:void 0}})),s=[{id:"chartGradient",beforeDraw:function(A){if(!A.scales.y)return;const l=A.ctx.createLinearGradient(0,0,0,A.height);if(l.addColorStop(0,"rgba(0, 173, 255, 0.25)"),t.type==="playrate"){l.addColorStop(1,"rgba(0, 173, 255, 0)"),A.config.data.datasets[0].fill={target:1,above:l},A.update();return}const c=A.scales.y,u=Math.max.apply(null,A.data.datasets[0].data),d=c.getPixelForValue(u),f=c.getPixelForValue(50),p=Math.min(Math.min.apply(null,A.data.datasets[0].data),50),h=c.getPixelForValue(p),g=Math.max(Math.min((f-d)/(h-d),1),0);l.addColorStop(Math.max(g-.08,0),"rgba(0, 173, 255, 0)");const B=A.ctx.createLinearGradient(0,0,0,A.height);B.addColorStop(g,"rgba(255, 81, 83, 0)"),B.addColorStop(1,"rgba(255, 81, 83, 0.25)"),A.config.data.datasets[0].fill={target:1,above:l,below:B},A.update()}}];return(A,l)=>(o.openBlock(),o.createBlock(o.unref(J_),{ref_key:"chart",ref:r,"chart-data":a.value,options:i.value,plugins:s},null,8,["chart-data","options"]))}}),sie={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},oie=o.defineComponent({__name:"BuiltDecksTable",props:sie,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"deck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.deck")},{id:"name",isShown:!0,sortDirection:ye.NEITHER,title:r("general.name")},{id:"updatedAt",isShown:!0,sortDirection:ye.DOWN,title:r("general.updated")},{id:"createdAt",isShown:!0,sortDirection:ye.NEITHER,title:r("general.created")},{id:"manaCurve",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.cost")}]);function i(s){const A=Gi(s,a);A&&t("sort-updated",A)}return(s,A)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.deckRows,(l,c)=>(o.openBlock(),o.createBlock(El,{id:l.id,key:l.id,type:"built","deck-code":l.deckCode,name:l.name,"created-at":l.createdAt,"updated-at":l.updatedAt,index:c+2},null,8,["id","deck-code","name","created-at","updated-at","index"]))),128))]),_:1},8,["loading","heading-items"]))}});const L4=M(oie,[["__scopeId","data-v-3cbac27b"]]),Aie={regionNameRef:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},lie={class:"wrapper"},cie={class:"champion-column column-content"},uie={class:"matches-column column-content"},die=o.defineComponent({__name:"ProfileRegionRow",props:Aie,setup(e){const t=e,n=o.computed(()=>ve().dataJson.regions.find(a=>a.nameRef===t.regionNameRef)),r=o.computed(()=>{var a;return ge().callbacks.cardImageCallback(((a=n.value)==null?void 0:a.cardCode)??"",gt.Banner)});return(a,i)=>{var s;return o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),o.createElementVNode("div",lie,[o.createElementVNode("div",cie,[o.createVNode(al,{"region-ref":t.regionNameRef},null,8,["region-ref"]),o.createElementVNode("span",null,o.toDisplayString((s=n.value)==null?void 0:s.name),1)]),o.createElementVNode("div",uie,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,1,3))+"% ",5)])],4)}}});const p1=M(die,[["__scopeId","data-v-b0ce9955"]]),fie={rows:{type:Array,required:!0,default:[]}},pie=o.defineComponent({__name:"ProfileRegionTable",props:fie,setup(e){const t=e,{t:n}=J(),r=[{title:n("general.regions"),id:"regions"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(p1,{key:s.regionNameRef,"region-name-ref":s.regionNameRef,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["region-name-ref","matches","wins","index"]))),128))]),_:1}))}});const O4=M(pie,[["__scopeId","data-v-2dae645c"]]),hie={rows:{type:Array,required:!0,default:[]}},mie={archetypeId:{type:Number,required:!0,default:0},deckCode:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},gie={class:"wrapper"},vie={class:"champion-column column-content"},yie={class:"matches-column column-content"},Bie=o.defineComponent({__name:"ProfileArchetypeRow",props:mie,setup(e){const t=e,n=o.computed(()=>Bt(t.deckCode)),r=o.computed(()=>Zt(n.value)),a=o.computed(()=>{var s;const i=(s=na(r.value,n.value,1)[0])==null?void 0:s.cardCode;return ge().callbacks.cardImageCallback(i??"",gt.Banner)});return(i,s)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${a.value})`})},null,4),o.createElementVNode("div",gie,[o.createElementVNode("div",vie,[o.createVNode(la,{"deck-code":t.deckCode},null,8,["deck-code"])]),o.createElementVNode("div",yie,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,1,3))+"% ",5)])],4))}});const h1=M(Bie,[["__scopeId","data-v-d5c99255"]]),wie=o.defineComponent({__name:"ProfileArchetypeTable",props:hie,setup(e){const t=e,{t:n}=J(),r=[{title:n("general.archetypes"),id:"archetypes"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(h1,{key:s.archetypeId,"archetype-id":s.archetypeId,"deck-code":s.deckCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["archetype-id","deck-code","matches","wins","index"]))),128))]),_:1}))}});const M4=M(wie,[["__scopeId","data-v-f883a9d9"]]),bie={selectedRegion:{type:String,required:!0,default:null},selectedPlayers:{type:Array,required:!0,default:[]},selectedGraphOption:{type:String,required:!0,default:"totalPlayers"},players:{type:Array,required:!0,default:[]},updatedAt:{type:Number,required:!0,default:0},isGraphShown:{type:Boolean,required:!0,default:!1}},_ie={class:"leaderboard-options"},Cie={class:"multiselects"},kie={class:"details"},Eie={class:"players"},Sie={class:"updated"},xie=o.defineComponent({__name:"LeaderboardOptions",props:bie,emits:["update:selectedPlayers","update:selectedRegion","update:selectedGraphOption"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.inject(ri),i=[{name:r("leaderboard.lp"),nameRef:"lp"},{name:r("leaderboard.rank"),nameRef:"rank"},{name:r("leaderboard.totalPlayers"),nameRef:"totalPlayers"}],s=o.ref(n.selectedRegion),A=o.ref(n.selectedPlayers),l=o.ref(n.selectedGraphOption),c=o.computed(()=>s.value===null?n.players:n.players.filter(u=>u.server===s.value));return o.watch(s,u=>{t("update:selectedRegion",u),t("update:selectedPlayers",[])}),o.watch(A,u=>{t("update:selectedPlayers",u)}),o.watch(l,u=>{t("update:selectedGraphOption",u)}),o.watch(()=>n.selectedPlayers,u=>{A.value=u}),o.watch(()=>n.selectedRegion,u=>{s.value=u}),o.watch(()=>n.selectedGraphOption,u=>{l.value=u}),o.watch(()=>n.isGraphShown,u=>{u&&A.value.length>0&&(l.value="lp")}),(u,d)=>(o.openBlock(),o.createElementBlock("div",_ie,[o.createElementVNode("div",Cie,[o.createVNode(o.unref(Wt),{modelValue:A.value,"onUpdate:modelValue":d[0]||(d[0]=f=>A.value=f),placeholder:o.unref(r)("general.players"),mode:s.value?"tags":"disabled",options:c.value,searchable:!0,label:"name","value-prop":"name"},null,8,["modelValue","placeholder","mode","options"]),o.createVNode(o.unref(Wt),{modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=f=>s.value=f),placeholder:o.unref(r)("general.server"),options:o.unref(ve)().dataJson.servers,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"]),n.isGraphShown?(o.openBlock(),o.createBlock(o.unref(Wt),{key:0,modelValue:l.value,"onUpdate:modelValue":d[2]||(d[2]=f=>l.value=f),options:i,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",kie,[o.createElementVNode("div",Eie,[o.createTextVNode(o.toDisplayString(o.unref(r)("leaderboard.totalPlayers"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(Ce)(c.value.length)),1)]),o.createElementVNode("div",Sie,[o.createTextVNode(o.toDisplayString(o.unref(r)("leaderboard.updated"))+": ",1),o.createElementVNode("span",null,o.toDisplayString(o.unref(a)(n.updatedAt*60*1e3).fromNow()),1)])])]))}});const N4=M(xie,[["__scopeId","data-v-0689a8b2"]]),Fie={deckRows:{type:Array,required:!0,default:[]},originalDeckcode:{type:String,required:!0,default:""},loading:{type:Boolean,required:!1,default:!1}},Iie=o.defineComponent({__name:"SimilarDecksTable",props:Fie,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"deck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:ye.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:ye.NEITHER,title:r("general.winrate")},{id:"cost",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.cost")},{id:"differences",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.deckDifferences")}]);function i(s){const A=Gi(s,a);A&&t("sort-updated",A)}return(s,A)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.deckRows,(l,c)=>(o.openBlock(),o.createBlock(El,o.mergeProps({key:l.deckCode},l,{type:"similar",index:c+2,"compared-deck-code":n.originalDeckcode}),null,16,["index","compared-deck-code"]))),128))]),_:1},8,["loading","heading-items"]))}});const P4=M(Iie,[["__scopeId","data-v-65e706f5"]]),Tie={heading:{type:String,required:!1,default:""}},Uie={class:"top"},Die={class:"heading"},Qie={class:"chart"},Lie=o.defineComponent({__name:"StatisticsPaneContainer",props:Tie,setup(e){const t=e,n=o.ref(null),r=o.ref(!1);function a(){var i;r.value?document.exitFullscreen():(i=n.value)==null||i.requestFullscreen()}return o.onMounted(()=>{var i;(i=n.value)==null||i.addEventListener("fullscreenchange",()=>{r.value=document.fullscreenElement!==null})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"statitisticsPaneContainer",ref:n,class:o.normalizeClass(["statitistics-pane-container",r.value?"full-screen":""])},[o.createElementVNode("div",Uie,[o.createElementVNode("div",Die,o.toDisplayString(t.heading),1),o.createVNode(o.unref(ke),{class:"maximize-icon",icon:"fa-maximize",onClick:a})]),o.createElementVNode("div",Qie,[o.renderSlot(i.$slots,"default",{},void 0,!0)])],2))}});const hA=M(Lie,[["__scopeId","data-v-f00b184f"]]);function Oie({swiper:e,on:t}){t("beforeInit",()=>{if(e.params.effect!=="carousel")return;e.classNames.push(`${e.params.containerModifierClass}carousel`);const n={watchSlidesProgress:!0,centeredSlides:!0};Object.assign(e.params,n),Object.assign(e.originalParams,n)}),t("progress",()=>{if(e.params.effect!=="carousel")return;const n=.2,r=e.slides.length;for(let a=0;a<e.slides.length;a+=1){const i=e.slides[a],s=e.slides[a].progress,A=Math.abs(s);let l=1;A>1&&(l=(A-1)*.3+1);const c=i.querySelectorAll(".swiper-carousel-animate-opacity"),u=`${s*l*50}%`,d=1-A*n,f=r-Math.abs(Math.round(s));i.style.transform=`translateX(${u}) scale(${d})`,i.style.zIndex=f,A>3?i.style.opacity=0:i.style.opacity=1,c.forEach(p=>{p.style.opacity=1-A/3})}}),t("setTransition",(n,r)=>{if(e.params.effect==="carousel")for(let a=0;a<e.slides.length;a+=1){const i=e.slides[a],s=i.querySelectorAll(".swiper-carousel-animate-opacity");i.style.transitionDuration=`${r}ms`,s.forEach(A=>{A.style.transitionDuration=`${r}ms`})}})}const Mie={activeIndex:{type:Number,required:!0,default:0},cardCodes:{type:Array,required:!0,default:[]}},Nie={class:"card-carousel"},Pie=["src"],Hie=o.defineComponent({__name:"CardCarousel",props:Mie,emits:["update:activeIndex"],setup(e,{emit:t}){const n=e;console.log(n);const r=[Oie];function a(i){t("update:activeIndex",i.activeIndex)}return(i,s)=>(o.openBlock(),o.createElementBlock("div",Nie,[o.createVNode(o.unref(Zw),{effect:"carousel","grab-cursor":!0,loop:!1,"looped-slides":5,"slides-per-view":"auto",modules:r,"slide-to-clicked-slide":!0,onActiveIndexChange:a},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.cardCodes,A=>(o.openBlock(),o.createBlock(o.unref(eb),{key:A},{default:o.withCtx(()=>[o.createElementVNode("img",{src:o.unref(ge)().callbacks.cardImageCallback(A,o.unref(gt).Card)},null,8,Pie)]),_:2},1024))),128))]),_:1})]))}});const H4=M(Hie,[["__scopeId","data-v-6fc8ea3c"]]),Rie={wins:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},showDetails:{type:Boolean,required:!1,default:!0}},Vie={class:"wins-losses-line"},Kie={key:0,class:"details"},$ie={class:"wl-record"},zie={class:"lines"},Wie=o.defineComponent({__name:"WinsLossesLine",props:Rie,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",Vie,[t.showDetails?(o.openBlock(),o.createElementBlock("div",Kie,[o.createElementVNode("span",$ie,o.toDisplayString(t.wins)+"W "+o.toDisplayString(t.matches-t.wins)+"L - ",1),o.createElementVNode("span",{style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,1,3))+"%",5)])):o.createCommentVNode("",!0),o.createElementVNode("div",zie,[t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:0,class:"wins line",style:o.normalizeStyle({flexGrow:t.wins})},null,4)):o.createCommentVNode("",!0),t.matches-t.wins!==0?(o.openBlock(),o.createElementBlock("div",{key:1,class:"losses line",style:o.normalizeStyle({flexGrow:t.matches-t.wins})},null,4)):o.createCommentVNode("",!0)])]))}});const m1=M(Wie,[["__scopeId","data-v-511803da"]]),Gie={cardCode:{type:String,required:!0,default:"01IO001"},matches:{type:Number,required:!0,default:0},wins:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},jie={key:0,class:"wrapper"},Yie={class:"champion-column column-content"},qie={class:"matches-column column-content"},Xie=o.defineComponent({__name:"DashboardCardRow",props:Gie,setup(e){const t=e,n=o.computed(()=>on().cardJsonObject[t.cardCode]),r=o.computed(()=>{var a;return ge().callbacks.cardImageCallback(((a=n.value)==null?void 0:a.cardCode)??"",gt.Banner)});return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${r.value})`})},null,4),n.value?(o.openBlock(),o.createElementBlock("div",jie,[o.createElementVNode("div",Yie,[o.createVNode(fa,{class:"circle-card-item","card-prop":n.value,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(t.cardCode)},null,8,["card-prop","router-link"]),o.createElementVNode("span",null,o.toDisplayString(n.value.name),1)]),o.createElementVNode("div",qie,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1),o.createElementVNode("div",{class:"winrate-column column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,1,3))+"% ",5)])):o.createCommentVNode("",!0)],4))}});const g1=M(Xie,[["__scopeId","data-v-47d946ce"]]),Jie={class:"card-page-toggle"},Zie=o.defineComponent({__name:"CardTogglePage",setup(e){const{t}=J(),n=o.ref(0);return(r,a)=>(o.openBlock(),o.createElementBlock("div",Jie,[o.createVNode(nd,{"selected-option":n.value,"onUpdate:selectedOption":a[0]||(a[0]=i=>n.value=i),options:[o.unref(t)("cards.recommendedDecks"),o.unref(t)("cards.similarCards"),o.unref(t)("general.statistics")]},null,8,["selected-option","options"])]))}});const R4=M(Zie,[["__scopeId","data-v-07d07f20"]]),ese=o.defineComponent({setup(){return{}},mounted(){const e=Bt("EUAACAIEA54Q6AIGBECACBQKF4AQIBQGAECAOUYBAECBWAICAYKACAIFFUAQIBAOAIDAOBJIAIDAYBIIAIDAMGY5AMDAEGI4EIBQMAYTC4RAGBQABIMCQAYGAUBQMHY");console.log(e),console.log(N3(e))}}),tse=o.createElementVNode("h1",null,"TestComponent",-1),nse=[tse];function rse(e,t,n,r,a,i){return o.openBlock(),o.createElementBlock("div",null,nse)}const V4=M(ese,[["render",rse]]),ase={name:{type:String,required:!0,default:""},selectedBannerCard:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},matches:{type:Number,required:!0,default:0},lp:{type:Number,required:!0,default:0},change:{type:Number,required:!0,default:0},index:{type:Number,required:!0,default:0}},ise={class:"wrapper"},sse={class:"champion-column column-content"},ose={class:"mana-hexagon"},Ase={class:"mana-number"},lse={class:"name"},cse={class:"matches-column column-content"},use=o.defineComponent({__name:"DashboardLeaderboardRow",props:ase,setup(e){const t=e,n=o.computed(()=>t.selectedBannerCard===void 0?null:ge().callbacks.cardImageCallback(t.selectedBannerCard,gt.Banner)),r=o.computed(()=>t.change===void 0?[]:t.change===0?["neutral"]:[t.change>0?"good":"bad"]);return(a,i)=>(o.openBlock(),o.createElementBlock("div",{class:"profile-champion-row wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"small-table-background",style:o.normalizeStyle({"--background-image":`url(${n.value})`,"--background-color":t.index%2===0?"var(--color-background-0)":"transparent"})},null,4),o.createElementVNode("div",ise,[o.createElementVNode("div",sse,[o.createElementVNode("div",ose,[o.createVNode(el,{class:"hexagon-icon"}),o.createElementVNode("div",Ase,o.toDisplayString(t.rank),1)]),o.createElementVNode("div",lse,o.toDisplayString(t.name),1)]),o.createElementVNode("div",cse,o.toDisplayString(o.unref(Ce)(t.matches,0,10)),1),o.createElementVNode("div",{class:o.normalizeClass(["column-content change",r.value])},[t.change!==void 0?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-chevron-down"}),o.createElementVNode("span",null,o.toDisplayString(o.unref(Ce)(Math.abs(t.change),0,10)),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(" Test ")],64))],2)])],4))}});const v1=M(use,[["__scopeId","data-v-7abf758d"]]),dse={date:{type:String,required:!0,default:""},available:{type:Boolean,required:!0,default:!1},activated:{type:Boolean,required:!0,default:!1},soon:{type:Boolean,required:!0,default:!1}},op="data:image/webp;base64,UklGRpQVAABXRUJQVlA4WAoAAAAQAAAAYwAAjQAAQUxQSAEBAAABgGPb2rHn+e3KTunUNntXPyaQKSSV7UzBSfejizkD26htPU/y/lZETABIK2xW2koVX0DKFxXZrLR1CQD2y3vah6PpUeLxnXviuwEBtL5SPz6/Ur+8Urvl0EbGQLccWsPjXH6DO+jg+vQSZGh5Zb7XaAp7aPEKbezzKMKEWuP+C7y0xdzV6gXkWif7drOyTtj34Mg99QL28KAcr5B14g0yAyo5p94gzytkn7Dv3qZz49xvzM6hzi5ffHrankNevMXZzIDUhuFfDw2PdKQr1SqVSqX+rUqbPfP8et2YqFKjqgz1I8ODA8O/7SnjAnC4qIBvGNm18wGdw0WF/6jMFcCfBwBWUDggbBQAABBDAJ0BKmQAjgAAwBIliAKSzJgM/yf5TextXv8H/bv2BwHdg+Vdzn/0vWB/tPVF5h36ofrv14vMX+3Xq2/7v1cf2b1AP6l/gOtp9A/9x/Th/dX4aP7X/2f3C9rXBZ+F2Jr4/8+/kPzM9c3+w73vS/++9CP5x+Df1n9q/dL2b8DflTqHfln9a/0/Ar209A7vn37/+R6R/YP/le4H/Ov63/oeSc9E9g3+ef3T/s/4z2Uf/P/Zelr6a/9f+k+BH+df27/reu51QB6l8J+19f+pT6sZj+zE2+wE9vWoNfcEz0oTpvLjAO+Oa0LQ0Jow+wnjIYPuMNdJgebCP0A0x9HFV9m1SGgYnekuqE7R0gGfFSqVDdnmaEzLXqoY5ab7mI283b2U6qHsm1LaV2sv3hWYD74YbO9I365ZyH7IOZW2np5xzxY1uNwlx8m3/TlZpshWOQCUqQEaeXuo/NGNB7fPAFQA9spGF46iKOVdiy4H51LojrONPcDzWBAEuAoyxYSjdLl+yL79WxDhr4xWsGpRCikM1q5cdoxI5DzxmQC+WU34EWnl4CUNbIztZ0DdID1a0xmf9PiWSXfO4bZPzx8wcVrzgmGBY4h9fhG06Eg8Pe4iO3CVETaIxrPsQBwT/o2De9RYWlsdvaDBCRFNqTIhtugVNyhTOM/+NHgy2FRNW55uPOcszqLATAsZl/DQCkGM1H3/Q6b8yOWsaDQ8wYl8YUfoAP7u3JuG7XFiqpPFp/zTze9Dk0t236U3vstNlqJ6SMY/EUhcAaCy3g3fU1aSTwRLVo/tbHheprGIHpVpNqjxBzS1OFaBnyrYoywF4mxQQRjLtYqhSzPDGyjl/+mVF30ZwM1deMxjDDSwpabr//JIfGwSajIir7csLqBcPmzLwiG0X8yyOdc6OggQUYZentENwuvqEfj4tkP5AdpcIlLP6PXPTMLwXYC5UVVGobBIg429evsLhW4cFRY7HS7kzF/loDieDUMVuHgsMHmBlHbV0ft7uggiS+/oURoyeFXHtbAffBaM7WcIS0lh3dr/hH+xcEKpG6voqahtySY9unVDK4Ma+M4J9OXSo71s3dEeACMKt+lj+FBWDsCJDXpu9Lm3VLbYyT5aF4l0kiGnDuTyRednJJxXlv9ZB2XqhFRCRxK1YE9sx6PGzx8h1YQvNTO5vUl/nAq/pglypqDeR1DHey3IRtZsO/1/M12zYhtN58HYvZriSE/pzLhUGdKAnDJN+N1zpts+c79KrZYjR5+LC8mqTp3zA107/ruodw4OhlDLLtEkHoK0aL6L9kgYkVYuk051/J0iVKO6TrNDjtGCXCzQ61VHH07nEMhfWQqzs+eEOnCdem+/mp99Y5moGhX/AG8JXlhIt15Lv5D60Crp8RJMOD93GDx3WmltCm+Uv1YUslp6iqCDT9pJkbrVnz19cge4T3b7AMrWIAxvDVSB+GjGkX/VQXtjcfsYyHhBaNDOrAPmMkk43eLISRFlsUW9xJ70I7YqMi4KkLA5BSawyrIJeGDRRPpOyqXBJ3he27M6nYaDUcu/dw+zKZFrH6JJepygQiw9/gTA8qAo9Wy4TxVrbJ3iVIyWD9tN6kW+H0ATrOZcaPr4mEoJATghh5iOmN12PTvewVv3VhiUXfqV2BWbUrqWHOkvUgcNaMRXkTobbwOziNe7s9Ub8f1fyJJ+KoqDjl5TXGTKJf71c5O8PiHEwUijMoTg1GNrxg/iyd2pvikPHJ/LeYRAjV77bM1tdlnWBYiABeF3lU6zrp/qqdxhb8P33GXLOZC+7Q+k29zjZyKON23ZtaPwSL1oDj4jmqXJ0DV/iWA+79rebbt2US+K8ARkowLBGCyDHGaKBFXplZu5qY2Jr6P0YUmkj8Se0bToxblcTq3Yo99+M+HkAnRjvQ6iVKId8+YXuXpHdWG2e0XjaXsZ6IBomXeg/qv7XzhWsqrLDSmmSG1scFVF9w5hYj02X4QIhwfHS9DJ46kN1NvcCouEHbUnMQHzUsndQ/LXToevL3LcziuwhLIDliY5NZVQGbChii5WdshXFpqLTnMoSx/QLlWVrcEpCWeg1QCKc32cIAdHGm85bWc1BWWymuRFjr5Tgp3b9TPWLbmnJyb+oSemQmbAPvG9LJIqXmr2xCr0TGmDluE4zO8vaZ/YMEtA9ObEVpVaRj/fqmgL6oHMSW8btJ19nVA62zSzzTuNWJjkN2Zx/t3a5oddkCmbJATg/9VKopqZllxD/GmhAA2Z+o2Yl+CoH3mwuLLPslUy54VmjbhRr+FyR7akdBlYodQHYMNcOKTqhcRGICgXOLTRXn27nIzblK2s7Ts8zAeHmG48CpkdL0ogJ+mrFlrUonC65itjH25Zybm2oM+zxGTTFmy3qhxeF44T6UObeh1vuD/xnjE7NOi28jLT2p7QOjRifMsWRKF8A1+4WnZwba/telVJ0M6W12iygb8UFKOypj4S3LoX1Sx+DIoHPssoAW9iBseVXrDaK8AUOd4jhVQ1WZXhAyQrLt5vuLNMEaFbCq0RltFolGtQ9UYWId2iCWWUAob/O5rzCZMRGWlrXfqV2OMsz7NzL8MkLUlj/XCo/PHG7Lqo/QabVPLqTejIyn8VMf75hXLI4vX3fFT9uVIjfrLe3wDtwo3hgQlrT+8wtcHIkMnpF1wK0Pmi3q3dt+cBzJ7twZjPrXbla5YVz18ptitmRDERECQ67qfzqNrl2C9pLJ/q1f/Ew/JY3Fr/02nDtq35QZ0dZYgfTf47HOzzo4UjL+noRi2L+dBj0fBp9NznpszWtf/ViprbM+6Zzv1l+tD4U3Zu//+Oey/Lgbh8EQfzgm9i59POCMUU/7sNjnSLils28YksYWNbznb3xcNIpy2wR85ntEWFLTuHfln1UVFAUGGrZdmWz6JzqNPxD0AeXjf8ntg4NCbxgB8iohTpMedkpD2q9xEEUXBeo8yuCJKNjP+zg/AYfX9/PVLZWqo5l/XXgtH2ABNTFqA2942K8zLTN4rjFvA8KqN5rmSofCljeENG145859vlNSmeR0T1U7KZ/z6Q/crwGbDY1f9Cmfzjf7MsZklghfj/1shlyq7gSv5Ym375SxDw/iDuj67jYdGOBVjmpB1mnV158my0bdh75nONKc2vK8ZjU+iNXS/P8aJUAiRFk7st3bV5h9baGPOQqbOk4dWjw8NUN7nwm0fmJQ5vp73I/A4UZ8eqf638Gkr3pXrHvUebaPb+xcIzBDE1Nvcojfb/5nm95LL0aHg1iKt36a6uavLgIvpkN7Qo3TujZX95S02Bjz3vhFXVLmBFQCYemOTW9uc4LHakG8kU8VevsB1HT+S1RQKKGdo8JtG9raNhNJjHGLqolgRumnusF3c3ABwOjbQhbjjfMQpu7cdy6J0DTh2hatG32udWg1LPdR9fsVpjEysfGQ0GDDxrvx9YwIGgSRZOZpNEJop4ey3CbpHsmfbpTu+aiszsvP5P6WtQ92vlZ8hxGp2cmnFD2MB6+gQ0hM7eZRxHsKG0+WcpmGsBbtEcNBFvUhbVul/oh7JL+W7adTjOuAVWYVYoTud4ovKjSckZfM1oTXnO4Ky5/LPkQICBB53iz2cdoAWm7owZYQ/S/m4Uwya+G8RezTLMacJChJKqvaibSzfr1bLY6Vry/907SR/JMI7gNWKaUF3Vba3b5b0HxlnFvPrH9H/e+v/zKavQWUONrFVDJYy1XBQUKeYi/Nk2TjiR28KllKGnB2Fq4UnOXuNFR6A2fOnv22Ud48xB8MDHPdrkiVnT362fvOFVnTizjBiQ8TsDnPCs9yEBp16IVDSPomLlWtRkTdEKM6vtCfOz5kpT/0/f18Zx1GX1lvHApIkCfMiNePrIQ9HXD0kmtO7+kdpnb01upiB8fDivDuW+Q0T9Ekbl4PcAAl6+TEntzh67pMz09ikbexC0m6HJHt2TiTtEeCNtLfTWM7HNNFnyoD6HOVEHxiygPZ4y8pyIEJY6J8xwz4TjpyIsHs3cFHpgqfjkUgTFx3uclUbtjRvRXWkgXyZd2ysup9AT8mS0ZJxbARswqXFxJaMDemxOcr6pMmpUPPx6m3QAAnD5YW7H7ATCMs7x2pa2P++IZrqP5lRbgR3bmPDGNdaK0MJWIdUEp/KMOQS9B6vwdVSLl/8mjT5CxXSx2VxxrgGTVW6NBBuTmP9Vt9ZOQ0d0ORGcg++/xMiPrl91fbiMOVAa5GRuhKUhIpUCxVplYkot97+71nhgPlFn6t3NoJKsWX7ecxQQ2Ju2lHT7kO007o0voWXVBgS4t1L3tHfiGWu9NcmCjKwt8PwHn/Jz3v6Uek7SG+ZjCMiakQpmV+0QrjA09K3jZfQgUr+zs/3n/X1zZPPLWk+TlywRK6p0/qbliMMhyXFKbGpTXqvlvBC2Fr58dVvfouGrlfh72hq6YOaZn9zdQWPqbjtqIg8g9QxZzL954uK2OuI1JJittRNNcVSSra2lACV/Ej7Or5II6lx2C3FjqTsrh4UXCcUZWtsOA24NHIJ9CzFmsC4IyIOUXhZEN65l9PYCkjNWKaNz89kPq2+4ye1/jzAuDDg2RrKp/FNIKhhKO0YSPaLz9ODfQTLJhMTpPAXm+xLB0oX7Vo75znqCKyJvmxCmfzANcHkBciBEuOOq68Zl6RZtvaAB0xxFCOfvwBwUY+0qWjfW5PVAaY9bzRJlL100JT3b2kkKDbSW1JXvJqoC/Gubz7CPLYlMJ8dNbim9ydCev9Yq4uzuFENwzKxXa/+CJOmjxzMMCUO8Et1aezpZRwhRESDWtEzJpOKzapC0Hy+M9LX92rbTLKuAfIs+t2RLVUI914oLWgqjEfsM+8o8Tp+U+TRjZ2FF4Ksvp2tGNUiwUapjWbERc67w9nCCgSfLo/c3J1nQLygbzMoJrH4FojgB5aomLL3Qu6IHsRkYhXeYS5oHE0EyRRQXDSEsr4Agr+Yfe5rM854ckE/Yjtm9JnUazZfvvxW2UhxIs9N1m706CP2Ypvs1i7dW+ZmqMCL6uSL+C7hOyycrmvY3Y1YHfIm/pn6u2tgqDN0Y/mZKlUtFq431+zZtpV7+M8ImZf+ou67QEQgXKlc5nxIRUn4WPWlDg2J+6ifiADxcmoRbqWCcG7PR1aUBaLcdSH9KfyF9wgQEj3V+4gyQIa/4JZICFGBUF1BBpZ/anb9TggFs64t+P8eXsWK/kYO+YjSiRyclvKR6hdZRs3hsPY5i7CnmpMUZIns0Ir1ZD8T38M3GM2CcjVW7dG8+0pgw9Si3W5RQrSQjYNq/0A9slLyqiv6ZjrmJFk8Vumsh0VfVPiE7vzqDoxlssE+RqwjJb7DCYE6MHby3aDhaThUE8lgQ7wHTzwoT6IwKqw1ofiTrBycnkdgSKnNEcAgmEQm/Nc4SfKQIjYFgAC+IZeC+S8/pKr8oSNd53EyIK7cuYgnPCUSYn8K2wZD3f/HeVjWIk2EaqRQNZvhCL9pMdwBR8OFRxr36qHCqSx2ZPJOQ3MOPk7swYH4B1QSo4K5tY7/RSl69ftU132HNN0NDfzsvWmBTzVLArpA8RY9LCv7PQ+tbH+6xQWWT4zo41H0hZroZB9Y1BRkiR1jU2XXIQzjY8M2WxSCUywHQOItrSSuDf43zfF+0pXshiSJh3wkP7UVjoF1JMXAPzr2YtxaKFTaZHj0t+e2KUYnGCPDMRt/jsJ1VNqvqGMjhbzmK/Ji7jcaK0nVU2t150c0NRtZlmCiRa7hpNnWe8JlN946yTf4mBY6we5YtS+tHlFzb6xxXgSNdAJUQ/Cf/gbr1MOYnfNPn7tgsduJnySBfUxlhueUByJNOC3T+QE5gELLjR8V/YThTkoJl7a4clEiUTt+fUCWTdjRcJgg8LQSvOspSnGQ5o5a42FBWa2brKLjpnmcroiLKuqJ8SM/UeCuF78esGhAuc2nC0jXZv12w17el7YAcHrpA2Vx+Jv6X5ok4PxVseLzfIY9wbb0nrOCAU3Gg/eKUcu2emB7XfMAgEbBPf7tOMUfluV4zeGsAFHhH3jCmTT0ie7YZP13tsgzt6I+llT2GnDkU9ylV0Rjzdl92EnAJhLyZovmJn2r+3xytit6NWsWFNLk8xZeFTY6cWoqEtVA2HoX/dvgwba3wkOMiZHRRnDWc5OHZ8DvUufoI4BEp4lLz8LqDcJ4U2ROGcH/tNtLAWpov5bBWwYZghIsAyxK4elFVxROoKzEytuvDaHjB85srMddi0+wpvq8Gv2hadSObXFOTXuJYuca+dVPRPg6i8Jy4YRCCcvDJ9h/G4pHs8UtxcagVPFP3LtdVn8qwgiO4/RkY/NvkpOnzPrgtjKA9F25cFO/iEV1SONr2YEg2e21jHzxn1BpHOC+VjkYP6+XVfhyW3FnO55pyGqelLpWnIMcvLUb/nYZluleyUZSt9yjLLW6HyeMT/TsCJpQ+TixJzS2a/JQRc+igKZAJCN5f4pHylBS/nTZQqff5FAhr6QbQIbB+3sfEH7dCB5G4BcRU/hWRacndN8it2rV+0OL+q9WuSGBeFROmtq7ko9ZK00n9mGhhm+CYaUiUyUpdNEhcjDi72xSDSPr5PIlg4ecGmxXOzJMAvwi7oAQQg+Yf0/4z2VCGkFCJ+brkSSZLb8fs2G2c+fYVn/tnAmmooSpfNyJw90LiRdDuQbQ93BQWt3azhV9TEBsPGFE3GGkTw0krNqcURqAQKzvXr2bnhO8KRWoWG7XliqBjI/qGv4UOSaZGwIFqc88q1XuMWRIvW6Cy0jaeljlEotz0AFnDGH2Aq1Pn6SREslqfkNcbIyJ/ZH8oMeXhw4Ua92QnhLp909o39dtaOK/eyzPuAH0ev2kS5g9sKHUC7eEoZIBtPPDrdsGXKpr+L+P9BRvo7OcKaVBxchzd2ZLrq/KC+l5UF0ZSfFqSW6UE0inppd0zfwM2/igkrgcDqi6fKcNBLQO3Yh9ysmWdD7EQ2ZnQ1rzdxuR59XgwjJvDgAAA",fse={class:"reveal-day-option-wrapper"},pse={class:"card-wrapper"},hse=["src"],mse={class:"card-wrapper"},gse=["src"],vse={class:"card-wrapper"},yse=["src"],Bse=o.defineComponent({__name:"RevealDayOption",props:dse,setup(e){const t=e,n=o.inject(ri),r=o.ref(null),a=o.ref(null),i=o.computed(()=>(console.log(t.date,`${t.date}T10:00:00-08:00`),new Date(`${t.date}T10:00:00-08:00`))),s=o.computed(()=>i.value.getTime()<new Date().getTime()),A=o.computed(()=>(console.log(i.value),s.value?`Revealed Cards
|
|
895
895
|
${i.value.toLocaleDateString()}`:`Cards Revealed
|
|
896
|
-
${n(i.value).fromNow()}`),l=o.computed(()=>{const c=[];return t.activated&&c.push("activated"),t.soon&&c.push("soon"),s.value&&c.push("past"),c});return o.onMounted(()=>{qe(r.value,{content:a.value,arrow:!0,delay:[0,0],duration:[0,0]})}),(c,u)=>(o.openBlock(),o.createElementBlock("div",fse,[o.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:o.normalizeClass(["reveal-day-option",l.value])},[o.createElementVNode("div",pse,[o.createElementVNode("img",{src:o.unref(op),alt:"card",class:"card"},null,8,hse)]),o.createElementVNode("div",mse,[o.createElementVNode("img",{src:o.unref(op),alt:"card",class:"card"},null,8,gse)]),o.createElementVNode("div",vse,[o.createElementVNode("img",{src:o.unref(op),alt:"card",class:"card"},null,8,yse)])],2),o.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[o.createVNode(ad,{text:A.value},null,8,["text"])],512)]))}});const y1=M(Bse,[["__scopeId","data-v-c5163ae1"]]),wse={days:{type:Array,required:!0,default:[]},date:{type:String,required:!0,default:""}},bse=e=>(o.pushScopeId("data-v-3ca708c1"),e=e(),o.popScopeId(),e),_se={class:"reveal-day-options"},Cse=bse(()=>o.createElementVNode("div",{class:"line"},null,-1)),kse=o.defineComponent({__name:"RevealDayOptions",props:wse,emits:["update:date"],setup(e,{emit:t}){const n=e;function r(a){n.days[a].available&&t("update:date",n.days[a].date)}return(a,i)=>(o.openBlock(),o.createElementBlock("div",_se,[Cse,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.days,(s,A)=>(o.openBlock(),o.createBlock(y1,{key:s.date,date:s.date,activated:s.date===n.date,soon:s.soon,available:s.available,onClick:l=>r(A)},null,8,["date","activated","soon","available","onClick"]))),128))]))}});const K4=M(kse,[["__scopeId","data-v-3ca708c1"]]),Ese={cardCodes:{type:Array,required:!0,default:[]}},Sse=o.defineComponent({__name:"DashboardNewCards",props:Ese,setup(e){const t=e,{t:n}=J(),r=[{title:n("general.newCards"),id:"newCards"}];return(a,i)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[o.createVNode(vm,{class:"reveal-carousel","card-codes":t.cardCodes},null,8,["card-codes"])]),_:1}))}});const $4=M(Sse,[["__scopeId","data-v-89a26f2c"]]),xse={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},Fse=o.defineComponent({__name:"LeaderboardDetailTable",props:xse,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"player",isShown:n.shownColumns.player,sortDirection:ve.UP,title:r("general.player")},{id:"lp",isShown:n.shownColumns.lp,sortDirection:ve.NEITHER,title:r("general.lp")},{id:"change",isShown:n.shownColumns.change,sortDirection:ve.NEITHER,title:r("general.change")},{id:"wins",isShown:n.shownColumns.wins,sortDirection:ve.NEITHER,title:r("general.wins")},{id:"matches",isShown:n.shownColumns.matches,sortDirection:ve.NEITHER,title:r("general.matches")},{id:"winrate",isShown:n.shownColumns.winrate,sortDirection:ve.NEITHER,title:r("general.winrate")},{id:"deck",isShown:n.shownColumns.deck,sortDirection:ve.NOT_SORTABLE,title:r("general.favoriteDeck")}]),i=o.computed(()=>({"--columns":a.value.filter(A=>A.isShown).length}));function s(A){const l=Gi(A,a);l&&t("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,style:o.normalizeStyle(i.value),"heading-items":a.value,onToggleSort:s},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.players,(c,u)=>(o.openBlock(),o.createBlock(A1,o.mergeProps({key:`${c.rank}${c.name}${c.user_id}`},c,{index:u+2,"shown-columns":n.shownColumns,"router-link":o.unref(ye)().callbacks.playerRouterLinkCallback(c)}),null,16,["index","shown-columns","router-link"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const z4=M(Fse,[["__scopeId","data-v-11a25b9c"]]);const Ise={},Tse=e=>(o.pushScopeId("data-v-c8a918ec"),e=e(),o.popScopeId(),e),Use={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},Dse=Tse(()=>o.createElementVNode("path",{d:"M107 57.2C23 99 25 97.6 22.2 106.3c-3.4 10.4-6 4 43.5 103.1l44 88.3.5-6.6c.4-4.6 1-7.7 2.4-10.4l1.9-3.7-40-80.8c-22.1-44.4-40.1-81.5-40.1-82.4 0-5-.9-4.5 78-43.9l75-37.4 3.4 1.1 3.3 1.2 49.8 99.6c33 65.8 49.8 100.4 49.8 102 0 4.9-1 5.5-28.2 19.2l-26 13 15.4.1h15.4l13.9-6.9c19.2-9.6 23.1-14 23.2-25.6v-5.7L257 129.6C221.5 58.6 206 28 204 26c-4-4.2-9.6-6.5-15.8-6.5h-5.1L107 57.2m121.5-15.8 3.5 7h29.6c26 0 29.7.2 31.3 1.3 4 2.8 4 1.9 4 68v61.6l6.6 12.9 6.6 12.9v-76.3c0-90 .7-84.8-11.8-91.7l-4.2-2.3-34.6-.3-34.6-.2 3.6 7m95.7 42.1V91l24.3 12.1c25.1 12.5 28 14.5 28 18.7 0 1.3-10.8 24-26.1 55l-26.2 53 .2 14.9.2 14.8 32.8-65.8 32.8-65.8v-5.5a20 20 0 0 0-7-16 739.5 739.5 0 0 0-58.6-30.6c-.2 0-.4 3.4-.4 7.6M126.5 285.1c-4.2 4.2-2 10.3 4 11.4 1.5.2 57.1.3 123.6.2l120.9-.2 1.9-2c3-3 3-6.9 0-9.8l-1.8-1.9H128.8l-2.3 2.3m1.9 25.8c-4.5 1.8-5.5 7.5-1.9 11l2.3 2.3h122.4c130.4 0 125.8.1 127.2-3.5 1.5-3.8.3-7.8-2.7-9.4-2.5-1.3-244-1.7-247.3-.4m-2.3 29.3c-2.6 2.6-2.6 6.6.2 9.3l2 2h246.8l1.9-1.9c2.6-2.6 2.6-7.2.1-9.6l-1.8-1.7H128l-2 1.9m.6 27c-3.7 3.5-3 8.9 1.4 11.1 2.6 1.3 9.8 1.4 124.8 1.2l122-.2 2-2c3-3 3-6.9 0-9.8l-1.8-1.9H251.7c-122.8 0-123.3 0-125 1.6"},null,-1)),Qse=[Dse];function Lse(e,t){return o.openBlock(),o.createElementBlock("svg",Use,Qse)}const W4=M(Ise,[["render",Lse],["__scopeId","data-v-c8a918ec"]]);const Ose={},Mse=e=>(o.pushScopeId("data-v-4a6733fd"),e=e(),o.popScopeId(),e),Nse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"},Pse=Mse(()=>o.createElementVNode("path",{d:"m178 26.2-8.6 1.8-9.6 2c-2.6.6-6.6 1.5-8.8 1.8-2.2.4-5.7 1-7.8 1.6l-8.8 1.8-8.8 1.8-8.6 1.8c-2.6.5-6.2 1.2-8 1.7l-8.8 1.7-8.6 1.8-6.6 1.4c-3.2.5-14.1 2.9-18.3 3.9-4.2 1-4.4 2.2-2.2 15.1 4.2 24.3 5.2 51.8 2.9 80.4l-.8 10.8c-.2 2-.8 6.9-1.4 10.6-.6 3.7-1.5 9-1.8 11.8-.4 2.8-1.2 7-1.8 9.6a138 138 0 0 0-1.8 8.3c-.3 2-1.1 5.3-1.8 7.4l-1.6 6.1c-.8 4-3.8 14.2-7.1 23.6a191.2 191.2 0 0 1-5.7 15.3L39 259.8c-.7 2-1.7 4.2-2.1 5l-8.5 17c-3.4 7-3.6 6.6 11.3 17a13873.6 13873.6 0 0 1 92 64.6c17.4 12.3 16.5 12.7 18-8L151 332c.6-12 .9-16 2-30.4.6-7.2 1-13.3 1.8-30.2l1.2-18c1.6-20.9 3-46.9 2.6-48.9-.4-2.3-1.8-2.8-5-1.8-9.2 3-18 4.4-23 3.7-15.1-2-25.3-12.8-29.8-31.8a95.5 95.5 0 0 1-2.6-29.8c0-19.7.1-20 5.5-21.6a691 691 0 0 0 14.5-4.2 583.1 583.1 0 0 0 24-6.8 88 88 0 0 0 6.4-1.8c2-.6 4.9-1.5 6.4-1.8 1.5-.3 4.7-1.3 7-2l5-1.4 5-1.4c12-3.9 13.8-3.9 28.5.4a746 746 0 0 0 23 6.5c.4.2 2.3.8 4.3 1.3 2 .4 5.2 1.4 7.2 2l6.4 1.8c1.5.3 4.2 1 5.8 1.6l7.4 2.2c19 5 18.6 4.5 18.6 24.2 0 48.9-20.7 71.2-55 59.3-6.4-2.2-6.8-1.3-5.6 13a948 948 0 0 1 1.8 30.3c.2 4.7.9 14.2 1.4 21 1.1 14.4 1.6 22.6 2.2 34.8.2 4.8.9 14.7 1.4 21.8 1 12.3 1.2 16.4 2.2 36 .9 16.2-.6 16.4 26.2-2.6a2102.7 2102.7 0 0 1 24.8-17.3c2.6-2 7.1-5 10-7.1a3744.4 3744.4 0 0 1 30.2-21.1l17.8-12.5c13.2-9.2 14-9.9 13.7-12.5-.2-2-.5-2.7-3.4-8.1a164.8 164.8 0 0 1-10.7-22.4 292 292 0 0 1-9.5-25.4 292 292 0 0 1-7.2-25.2 345.8 345.8 0 0 1-10.4-64.4c-.9-7.7-.6-44.7.4-53.6l1.7-15.4 1.4-10.6c2-9.4 2-10.2-.1-11.7-.7-.4-2.1-1-3.2-1l-6.5-1.5-9.5-2c-2.7-.4-6.7-1.2-8.8-1.8l-6.9-1.4c-1.7-.3-5.7-1-9-1.8l-9.8-2c-2-.3-5.5-1-7.6-1.6l-8.8-1.8-8.8-1.8c-2.1-.5-5.6-1.3-7.8-1.6-2.2-.4-5.8-1.1-8-1.7l-9.4-2c-3-.4-7.3-1.3-9.6-1.9a28.3 28.3 0 0 0-14.8 0"},null,-1)),Hse=[Pse];function Rse(e,t){return o.openBlock(),o.createElementBlock("svg",Nse,Hse)}const B1=M(Ose,[["render",Rse],["__scopeId","data-v-4a6733fd"]]);const Vse={},Kse=e=>(o.pushScopeId("data-v-b519ac08"),e=e(),o.popScopeId(),e),$se={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"},zse=Kse(()=>o.createElementVNode("path",{d:"M53.8 32.8c-2.6 1-8.3 12.9-13.6 28l-2.1 5.8c-.4 1.1-1.1 3.5-1.5 5.4L35 78.8a84.1 84.1 0 0 0-2.6 14.1c0 2.7.8 4.1 7.4 12.5 16.7 21.3 16.7 21 2.2 21-13.3 0-13-.3-12.7 11.8.2 8.4.7 11.8 1.9 14.2.9 1.7 1.7 2.7 27 35.3 8.1 10.6 7.8 11.5-4.2 11.5-11.9 0-12 .3-4.4 16.9a269.4 269.4 0 0 0 28.7 47.7c8.4 11 8.6 11.5 9 19.8.5 8 1.1 11.4 4.3 24.4 7 28.8 30 57 60 73.2a97 97 0 0 1 5 2.8l3 1.4c1.5.5 3.5 1.4 4.5 2 2.8 1.4 10.6 4 11.6 3.6 2.1-.5 2.4-3.6 1-10.6-.6-2.6-1.4-7.3-1.9-10.6-.4-3.2-1.2-7.6-1.6-9.7a218 218 0 0 1-2.6-15.1l-1.8-10.2-1.6-8.2c-1-5.6-.9-5.5-13-5.8-10.4-.2-11-.4-12.3-2.5-.4-.7-.5-7-.7-28.7-.2-26.2-.2-27.9-1-29.2-.4-.8-5.5-6.3-11.4-12.2-5.9-6-11-11.4-11.4-12.2-.8-1.5-1.3-65.8-.5-68.5.7-2.6 2.6-2.3 7.3 1.3l6.8 4.9a1371.6 1371.6 0 0 1 25 17.9c16.1 11.6 25 18.2 26.2 19.7l1.2 1.6.2 28.6c.2 31.6.1 30.2 2.8 32 1.7 1.1 28 1.4 30.6.3 3-1.2 2.8.6 3-31.4.2-31.9 0-29.5 3-32.5 1.7-1.5 7.1-5.6 18.6-13.7a3147.5 3147.5 0 0 0 38.3-27.6c4.4-3.3 6-3.6 7-1.2.7 2 .4 66.8-.3 68.3-.4.7-5.4 6-11.2 11.9-5.7 5.8-10.9 11.3-11.4 12.2l-1 1.6-.2 27.8c-.3 35 1.2 31.2-12.6 31.6-12 .3-12.2.4-13.6 12.6-.3 2.9-1 7.3-1.4 9.8-1.4 8.3-2 11.7-2.6 17-.3 2.9-1 7.5-1.6 10.4-1 5.6-2.2 14.1-2.2 16.9 0 2 1 3.3 2.8 3.3a93.6 93.6 0 0 0 21.9-9.4 124.7 124.7 0 0 0 47-44.9 128.2 128.2 0 0 0 15.9-52.5c.7-11.5 0-9.7 11.7-27.2l10.4-15.6c2.3-3.3 18.2-34.8 19-37.7 1.1-3.3-.8-4.3-8.8-4.3-11.8-.1-11.9.1 3.4-20.2a1330 1330 0 0 0 15.4-20.8c4.9-6.6 5.5-8.5 6.6-20.9.6-6.3.4-8.2-1-9.6l-1.1-1.1-9-.2c-13.5-.3-13.6-.6-4.2-13.4 14.6-19.7 14.1-18.3 11-31a188 188 0 0 0-9.9-31.1c-2.8-8-7.8-17.3-9.9-18.1-2.6-1.1-1.7-2.8-24.6 43-20.2 40.3-21.3 42.4-22.7 43.2-2.1 1.1-3 .5-6.3-4.2A118.4 118.4 0 0 0 237.3 71a122.9 122.9 0 0 0-76 2 73.7 73.7 0 0 0-14.9 6.9c-13.8 7-29.8 21.3-39.1 35-3.3 4.8-5.2 5.6-7.4 3.1L78.4 75.7c-22.4-44.9-22-44-24.6-43"},null,-1)),Wse=[zse];function Gse(e,t){return o.openBlock(),o.createElementBlock("svg",$se,Wse)}const w1=M(Vse,[["render",Gse],["__scopeId","data-v-b519ac08"]]);const jse={},Yse=e=>(o.pushScopeId("data-v-f1928c9e"),e=e(),o.popScopeId(),e),qse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"},Xse=Yse(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M60.6 11c-.5.8-.6 17.6-.5 157l.1 156 1 .8c1.5 1.3 278.4 1.2 279.6 0 1.3-1.3 1.2.8 1.1-81.1l-.1-78.6-1.3-1.1c-1-.9-4.5-2.2-16-6-38.4-12.5-36.7-12-38-10.7-.7.7-.7 5.1-.9 64.4l-.2 63.7-.9 2.2c-3.9 9.5-11 14-23.1 14.3-12.4.3-20-3.6-24.3-12.3-2.4-4.8-2.3-1.4-2.3-95v-87l-1-1.1c-1.2-1.4 1-.6-31.6-12.6a552 552 0 0 0-25.5-9.1c-2.5 0-2.3-8.5-2.3 98.8 0 60.3-.2 98.7-.4 100.8-2.7 23.7-41.9 26.6-49.7 3.6l-.9-2.6-.2-120.9-.2-120.9-1-1c-.7-.6-5-2.5-12.6-5.3C59.9 8.6 61.7 9.2 60.6 10.9m.9 356.3c-2.6.5-3 1.8-3 7.7-.1 12.3-5.7 18.7-24.6 28.2-11.4 5.6-16.6 10.9-19.3 19.3a86 86 0 0 0-.9 19.5l-.2 17.3 1 1 1 1h368.1l1-1c.7-.6 1-1.6 1.2-3.2.4-3.3 0-28.3-.6-31.4-1.9-10.7-8-17.3-22-23.4-17.3-7.6-21.8-13.2-22.6-28.5-.3-4.5-.4-5-1.3-5.8l-1-.9H200.7c-75.7 0-138.4 0-139.2.2"},null,-1)),Jse=[Xse];function Zse(e,t){return o.openBlock(),o.createElementBlock("svg",qse,Jse)}const b1=M(jse,[["render",Zse],["__scopeId","data-v-f1928c9e"]]);const eoe={},toe=e=>(o.pushScopeId("data-v-b1448e85"),e=e(),o.popScopeId(),e),noe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"},roe=toe(()=>o.createElementVNode("path",{d:"M175.3 29.5c-1.7.3-.9 1.5 6.1 8.9A57.6 57.6 0 0 1 200 82.6a63.5 63.5 0 0 1-5 25.1 63.5 63.5 0 0 1-23 27.5c-4.6 2.7-6.3 2-14.8-6.2-7.9-7.7-8-7.8-11.1-6.2-2.6 1.3-14.6 12-20.5 18.2l-9.6 10a349.5 349.5 0 0 0-35.5 43.8c-3.1 4.6-6 9.1-9.3 15.2a753 753 0 0 1-5.2 9.2c-.9 1.4-2 3.7-2.4 5-.4 1.2-1.3 3.2-2 4.4l-2.2 4.8a52 52 0 0 1-1.8 4.2c-.4.8-1.3 3.2-2 5.4l-2.2 6c-.5 1-1.3 3.8-1.8 6l-2 7.7a62 62 0 0 0-1.8 8c-3.2 23.5-3 26.6 1.7 31A154.6 154.6 0 0 0 73 318a254 254 0 0 0 33.9 16.2c2.4 1.3 12.6 4.6 19 6.3 3.6 1 7.4 2 8.4 2.4l7.4 1.6c3 .5 7.5 1.4 9.8 2 2.7.6 7.5 1.3 13.2 1.8 5 .4 11.5 1 14.6 1.4 3.8.4 9.7.6 18.6.6 18.5 0 19.9 1.2 13.7 11.9a86.4 86.4 0 0 1-50.1 39.8c-1.4.6-4.1 1.4-6 2-1.9.4-5.2 1.3-7.4 2-2.2.6-6.3 1.4-9.2 1.7-6 .7-10 1.5-10.7 2.2-1.3 1.2 2.5 4 7 5.1l8.3 2.3c2.8.8 6.8 1.7 9 2l15.8 2.6c6.9 1.3 29.5 2 39.8 1.2 6.5-.4 8-.6 18.2-2.4l8.3-1.4c2-.3 5.7-1.2 8-2 2.4-.7 5.4-1.6 6.7-1.8 1.3-.3 3.8-1 5.6-1.8l6-2.2c1.5-.5 3.7-1.3 4.7-1.9l4.2-1.8a228 228 0 0 0 22-11.7c20.9-13.4 40-38.5 44.7-58.8l1.8-6c1.7-4.9 1.9-5.8 2.6-13.2a116.3 116.3 0 0 0-10.4-71l-1.4-2.7c-.4-1-2.5-4.5-6-9.7-4.3-6.6-7.5-7.3-10-2.3-3.1 6.1-15.8 20.3-23.2 25.8a81.5 81.5 0 0 1-71.1 13.4l-6.3-2.3a93 93 0 0 1-38.7-30.1c-4-5.7-4-7.3-.4-12.8a82.1 82.1 0 0 1 38.7-30.2c17-7.5 42.3-7.4 57.2.3 8.8 4.5 10.9 2.5 9.2-9.2-.3-2.2-.6-6.5-.6-9.6a129 129 0 0 0-4.6-34.6 75.6 75.6 0 0 0-3.6-13.8c-4.5-17-18-42.2-32-59.6a193.3 193.3 0 0 0-27.5-25.9 82.1 82.1 0 0 0-18-10.3c-3-1.8-14.6-4.6-17-4.1"},null,-1)),aoe=[roe];function ioe(e,t){return o.openBlock(),o.createElementBlock("svg",noe,aoe)}const _1=M(eoe,[["render",ioe],["__scopeId","data-v-b1448e85"]]);const soe={},ooe=e=>(o.pushScopeId("data-v-e5501fa0"),e=e(),o.popScopeId(),e),Aoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},loe=ooe(()=>o.createElementVNode("path",{d:"M9.51 16.698 2.244 9.18 1 11.478l6.226 6.264 2.283-1.044ZM6.189 6.676 4.943 5.423 7.02 3.335l1.245 1.253L6.19 6.676ZM9.302 14.61 4.113 9.39l.83-1.044H6.19l3.736-3.55V3.545L10.962 2.5l4.981.626.415 4.803-.83.835-1.453.209-.83 1.043 1.453 1.253.83-.835 1.453.626-4.15 4.176L12 13.775l.83-.835-1.453-1.462-1.037 1.253v1.252l-1.038.627ZM20.924 21.5l-6.018-6.473 1.66-1.67L23 19.412 20.924 21.5Z"},null,-1)),coe=[loe];function uoe(e,t){return o.openBlock(),o.createElementBlock("svg",Aoe,coe)}const C1=M(soe,[["render",uoe],["__scopeId","data-v-e5501fa0"]]),doe={...qd,expanded:{type:Boolean,required:!1,default:!1}},foe={class:"content logo no-scrollbar"},poe={class:"nav-icon-wrapper"},hoe={class:"nav-text"},moe={class:"nav-icon-wrapper"},goe={class:"nav-text"},voe={class:"profile content"},yoe={class:"nav-icon-wrapper"},Boe={class:"nav-text"},woe={class:"nav-icon-wrapper"},boe={class:"nav-text"},_oe={class:"nav-icon-wrapper"},Coe={class:"nav-text settings"},koe={class:"nav-icon-wrapper"},Eoe={class:"nav-text"},Soe={class:"nav-icon-wrapper"},xoe={class:"nav-text name"},Foe={class:"nav-icon-wrapper"},Ioe={class:"nav-text settings"},Toe=["href"],Uoe={class:"nav-icon-wrapper"},Doe={class:"nav-text sign-in-container"},Qoe={class:"fancy-button"},Loe=o.defineComponent({__name:"NavigationSide",props:doe,emits:["click:sync","click:sign-in","click:language"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(),i=o.ref();let s;o.onMounted(()=>{var l;s=new ResizeObserver(A),a.value&&s.observe(a.value),(l=i.value)==null||l.addEventListener("scroll",A),A()}),o.onUnmounted(()=>{var l;s.disconnect(),(l=i.value)==null||l.removeEventListener("scroll",A)});function A(){var u,d;let l=!1,c=!1;i.value&&(i.value.clientHeight<i.value.scrollHeight&&(l=i.value.scrollTop>0,c=i.value.scrollTop<i.value.scrollHeight-i.value.clientHeight),(u=i.value)==null||u.classList.toggle("scrollable-up",l),(d=i.value)==null||d.classList.toggle("scrollable-down",c))}return(l,c)=>{var u;return o.openBlock(),o.createElementBlock("div",{ref_key:"navigationSide",ref:a,class:o.normalizeClass(["navigation-side",n.expanded?"expanded":""])},[o.createElementVNode("div",foe,[o.createVNode(o.unref(Vr.RouterLink),{to:n.homeLink,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",poe,[o.createVNode(Js,{"logo-type":"logo-only"})]),o.createElementVNode("div",hoe,[o.createVNode(Js,{"logo-type":"text-only"})])]),_:1},8,["to"])]),o.createElementVNode("div",{ref_key:"navigationPages",ref:i,class:"pages content no-scrollbar"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.items,d=>(o.openBlock(),o.createBlock(o.unref(Vr.RouterLink),{key:d.text,to:d.routerLocation,class:o.normalizeClass(["nav-item",d.highlighted?"highlight":""])},{default:o.withCtx(()=>[o.createElementVNode("div",moe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:d.faIcon},null,8,["icon"])]),o.createElementVNode("div",goe,o.toDisplayString(d.text),1)]),_:2},1032,["to","class"]))),128))],512),o.createElementVNode("div",voe,[o.unref(Kt)().user?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(u=o.unref(Kt)().user)!=null&&u.isPremium?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Vr.RouterLink),{key:0,to:o.unref(ye)().callbacks.premiumLinkCallback(),class:"nav-item premium"},{default:o.withCtx(()=>[o.createElementVNode("div",yoe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"crown"})]),o.createElementVNode("div",Boe,o.toDisplayString(o.unref(r)("general.premium")),1)]),_:1},8,["to"])),o.createVNode(o.unref(Vr.RouterLink),{to:n.links.gift,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",woe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"gift"})]),o.createElementVNode("div",boe,o.toDisplayString(o.unref(r)("general.openCards")),1)]),_:1},8,["to"]),o.createVNode(o.unref(Vr.RouterLink),{to:n.links.settings,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",_oe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",Coe,[o.createElementVNode("div",null,o.toDisplayString(o.unref(r)("general.settings")),1),o.createVNode(o.unref(TA),{class:"language-selection icon",onClick:c[0]||(c[0]=o.withModifiers(()=>{},["stop","prevent"]))})])]),_:1},8,["to"]),o.createElementVNode("div",{class:"nav-item",onClick:c[1]||(c[1]=d=>t("click:sync"))},[o.createElementVNode("div",koe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"rotate-right"})]),o.createElementVNode("div",Eoe,o.toDisplayString(o.unref(r)("general.syncUserData")),1)]),o.createVNode(o.unref(Vr.RouterLink),{to:n.links.profile,class:"nav-item"},{default:o.withCtx(()=>{var d,f,p,h,g;return[o.createElementVNode("div",Soe,[(o.openBlock(),o.createBlock(fa,{key:`${(d=o.unref(Kt)().user)==null?void 0:d.selectedIconCard}${(f=o.unref(Kt)().user)==null?void 0:f.selectedBannerColor}`,"card-code-prop":((p=o.unref(Kt)().user)==null?void 0:p.selectedIconCard)??"05BC160","ignore-card-item":!0,"color-override":(h=o.unref(Kt)().user)==null?void 0:h.selectedBannerColor,"router-link":n.links.profile},null,8,["card-code-prop","color-override","router-link"]))]),o.createElementVNode("div",xoe,o.toDisplayString((g=o.unref(Kt)().user)==null?void 0:g.name),1)]}),_:1},8,["to"])],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(o.unref(Vr.RouterLink),{to:n.links.settings,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",Foe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",Ioe,[o.createElementVNode("div",null,o.toDisplayString(o.unref(r)("general.settings")),1),o.createVNode(o.unref(TA),{class:"language-selection icon",onClick:c[2]||(c[2]=o.withModifiers(()=>{},["stop","prevent"]))})])]),_:1},8,["to"]),o.createElementVNode("a",{class:"nav-item",onClick:c[3]||(c[3]=d=>t("click:sign-in")),href:n.loginLink,target:"_blank"},[o.createElementVNode("div",Uoe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),o.createElementVNode("div",Doe,[o.createElementVNode("div",Qoe,o.toDisplayString(o.unref(r)("general.signIn")),1)])],8,Toe)],64))])],2)}}});const k1=M(Loe,[["__scopeId","data-v-81f93229"]]),Ooe=o.defineComponent({__name:"NavigationTopMobile",props:qd,emits:["click:sync","click:sign-in"],setup(e,{emit:t}){const n=e,r=o.ref(!1),a=o.ref(!1),i=o.ref(),s=o.ref();window.addEventListener("click",A);function A(u){var d;r.value&&(r.value=!!((d=s.value)!=null&&d.contains(u.target)))}function l(){o.nextTick(()=>{r.value=!0,o.nextTick(()=>{var u,d;(d=(u=i.value)==null?void 0:u.$el.querySelector("input"))==null||d.focus()})})}function c(){a.value=!0}return o.onUnmounted(()=>{window.removeEventListener("click",A)}),(u,d)=>{const f=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",{ref_key:"navigationTopMobile",ref:s,class:"navigation-top-mobile"},[r.value?(o.openBlock(),o.createBlock(td,{key:1,"fetch-seach-result":n.fetchSeachResult,ref_key:"searchBar",ref:i,class:"search-bar"},null,8,["fetch-seach-result"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(ke),{class:"icon",icon:"bars",onClick:c}),o.createVNode(f,{to:n.homeLink},{default:o.withCtx(()=>[o.createVNode(Js,{class:"logo-icon","logo-type":"text-only"})]),_:1},8,["to"]),o.createVNode(o.unref(ke),{class:"icon",icon:"search",onClick:o.withModifiers(l,["stop","prevent"])},null,8,["onClick"])],64)),o.createVNode(si,{"show-modal":a.value,"onUpdate:showModal":d[2]||(d[2]=p=>a.value=p)},{default:o.withCtx(()=>[o.createVNode(k1,o.mergeProps({class:"navigation-side","onClick:sync":d[0]||(d[0]=p=>t("click:sync")),"onClick:signIn":d[1]||(d[1]=p=>t("click:sign-in"))},n,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512)}}});const E1=M(Ooe,[["__scopeId","data-v-f840153f"]]),Moe={class:"navigation-top"},Noe=o.defineComponent({__name:"NavigationTop",props:qd,emits:["click:sync","click:sign-in"],setup(e,{emit:t}){const n=e;return(r,a)=>(o.openBlock(),o.createElementBlock("div",Moe,[o.createVNode(s1,o.mergeProps({class:"navigation-top-desktop"},n),{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},16),o.createVNode(E1,o.mergeProps({"onClick:signIn":a[0]||(a[0]=i=>t("click:sign-in")),"onClick:sync":a[1]||(a[1]=i=>t("click:sync")),class:"navigation-top-mobile"},n),null,16)]))}});const G4=M(Noe,[["__scopeId","data-v-508e62c8"]]),Poe={name:{type:String,required:!0,default:""}},Hoe={class:"profile-dropdown-wrapper"},Roe=o.defineComponent({__name:"ProfileDropdown",props:Poe,setup(e){const t=e,n=o.ref(),r=o.ref();return o.onMounted(()=>{qe(n.value,{content:r.value,arrow:!0,interactive:!0,interactiveBorder:10})}),(a,i)=>(o.openBlock(),o.createElementBlock("div",Hoe,[o.createElementVNode("div",{ref_key:"profile",ref:n,class:"profile-dropdown"},o.toDisplayString(t.name),513),o.createElementVNode("div",{ref_key:"dropdown",ref:r,class:"slider-wrapper"},"Test",512)]))}});const j4=M(Roe,[["__scopeId","data-v-1c516824"]]),Voe={modelValue:{type:String,required:!0,default:!1}},Koe=["value"],$oe=o.defineComponent({__name:"ColorPicker",props:Voe,emits:["update:modelValue"],setup(e,{emit:t}){const n=e;function r(a){t("update:modelValue",a.target.value)}return(a,i)=>(o.openBlock(),o.createElementBlock("input",{type:"color",value:n.modelValue,onInput:r},null,40,Koe))}});const Y4=M($oe,[["__scopeId","data-v-5ebbd7eb"]]),zoe={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},Woe={class:"multiselect-wrapper"},Goe=o.defineComponent({__name:"DashboardLeaderboardTable",props:zoe,emits:["update:selectedRegion"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.selectedRegion),i=[{title:r("general.leaderboard"),id:"leaderboard"}];return o.watch(a,s=>{t("update:selectedRegion",s)}),(s,A)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":i},{heading:o.withCtx(()=>[o.createElementVNode("div",Woe,[o.createVNode(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":A[0]||(A[0]=l=>a.value=l),class:"multiselect",placeholder:o.unref(r)("general.server"),options:o.unref(ge)().dataJson.servers,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,(l,c)=>(o.openBlock(),o.createBlock(v1,{id:l.id,key:l.id,change:l.change,lp:l.lp,name:l.name,rank:l.rank,"selected-banner-card":l.selectedBannerCard,matches:l.matches,index:c+2},null,8,["id","change","lp","name","rank","selected-banner-card","matches","index"]))),128))]),_:1}))}});const q4=M(Goe,[["__scopeId","data-v-fe0f916c"]]),joe={routerLink:{type:Object,required:!0,default:{path:"/404"}},deckBuilderRouterLink:{type:Object,required:!0,default:{path:"/404"}},archetypeId:{type:Number,required:!0,default:1},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},playrate:{type:Number,required:!0,default:1},regions:{type:Array,required:!0,default:[]},cards:{type:Array,required:!0,default:[]}},Yoe=e=>(o.pushScopeId("data-v-61aebadd"),e=e(),o.popScopeId(),e),qoe={class:"table-card-row-background-wrapper"},Xoe={class:"table-card-row-background"},Joe=Yoe(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),Zoe=[Joe],eAe={class:"archetypes-row wrapper"},tAe={class:"column-content"},nAe={class:"column-content"},rAe=o.defineComponent({__name:"ArchetypesRow",props:joe,setup(e){const t=e,n=o.computed(()=>Bt(t.deckCode)),r=o.computed(()=>Zt(n.value)),a=o.computed(()=>t.cards.map(s=>ye().callbacks.cardImageCallback(s,gt.Banner))),i=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!1,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.routerLink,deckId:void 0,deckName:void 0,isPrivate:void 0}));return(s,A)=>{const l=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(l,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"archetypes-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",qoe,[o.createElementVNode("div",Xoe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${c})`})},Zoe,4))),128))])]),o.createElementVNode("div",eAe,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:A[0]||(A[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(la,{"deck-code":t.deckCode,deck:n.value,cards:r.value,"deck-buttons-props":i.value},null,8,["deck-code","deck","cards","deck-buttons-props"])]),o.createElementVNode("div",tAe,o.toDisplayString(o.unref(Ce)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,2,3)+"%"),5),o.createElementVNode("div",nAe,o.toDisplayString(o.unref(Ce)(t.playrate,2,3)+"%"),1)])],4)]),_:1},8,["to"])}}});const S1=M(rAe,[["__scopeId","data-v-61aebadd"]]),aAe={archetypeRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},iAe=o.defineComponent({__name:"ArchetypesTable",props:aAe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"deck",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:ve.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:ve.NEITHER,title:r("general.winrate")},{id:"playrate",isShown:!0,sortDirection:ve.NEITHER,title:r("general.playrate")}]);function i(s){const A=Gi(s,a);A&&t("sort-updated",A)}return(s,A)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.archetypeRows,(l,c)=>(o.openBlock(),o.createBlock(S1,o.mergeProps({key:l.deckCode},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const X4=M(iAe,[["__scopeId","data-v-4a8597f4"]]),sAe={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},oAe={class:"number-container"},AAe={key:0,class:"type-icon"},lAe=o.defineComponent({__name:"DeckBuilderSummaryType",props:sAe,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-builder-summary-type",[t.typeSummary.isError?"error":"",t.typeSummary.typeRef==="Deck"?"deck":""]])},[o.createElementVNode("div",oAe,o.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(o.openBlock(),o.createElementBlock("div",AAe,[t.typeSummary.typeRef==="Champion"?(o.openBlock(),o.createBlock(w1,{key:0})):t.typeSummary.typeRef==="Follower"?(o.openBlock(),o.createBlock(B1,{key:1})):t.typeSummary.typeRef==="Spell"?(o.openBlock(),o.createBlock(_1,{key:2})):t.typeSummary.typeRef==="Landmark"?(o.openBlock(),o.createBlock(b1,{key:3})):t.typeSummary.typeRef==="Equipment"?(o.openBlock(),o.createBlock(C1,{key:4})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2))}});const xa=M(lAe,[["__scopeId","data-v-2e6bb287"]]),cAe={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},uAe={class:"deck-builder-summary"},dAe=o.defineComponent({__name:"DeckBuilderSummary",props:cAe,setup(e){const t=e;function n(c,u,d){const f=t.cards.filter(c).map(p=>t.deck[p.cardCode]).reduce((p,h)=>p+h,0);return{typeRef:d,quantity:f,isError:u(f)}}const r=o.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="Champion",c=>c>6,"Champion")),a=o.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="",()=>!1,"Follower")),i=o.computed(()=>n(c=>c.typeRef==="Spell",()=>!1,"Spell")),s=o.computed(()=>n(c=>c.typeRef==="Landmark",()=>!1,"Landmark")),A=o.computed(()=>n(c=>c.typeRef==="Equipment",()=>!1,"Equipment")),l=o.computed(()=>n(()=>!0,c=>c!==40,"Deck"));return(c,u)=>(o.openBlock(),o.createElementBlock("div",uAe,[o.createVNode(xa,{"type-summary":r.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":a.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":i.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":s.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":A.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":l.value},null,8,["type-summary"])]))}});const x1=M(dAe,[["__scopeId","data-v-ec8f0fa9"]]),fAe={rows:{type:Array,required:!0,default:[]}},pAe=o.defineComponent({__name:"DashboardCardTable",props:fAe,setup(e){const t=e,{t:n}=J(),r=[{title:n("general.cards"),id:"cards"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(g1,{key:s.cardCode,"card-code":s.cardCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["card-code","matches","wins","index"]))),128))]),_:1}))}});const J4=M(pAe,[["__scopeId","data-v-e5817be3"]]),hAe={modelValue:{type:Number,required:!0,default:5}},mAe=["value"],gAe=o.defineComponent({__name:"ZoomSlider",props:hAe,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(),a=o.ref();function i(s){t("update:modelValue",Number.parseInt(s.target.value))}return o.onMounted(()=>{qe(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"mouseenter click",interactiveBorder:10})}),(s,A)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:"search-plus",class:"zoom-button"})],512),o.createElementVNode("div",{ref_key:"slider",ref:a,class:"slider-wrapper"},[o.createElementVNode("input",{type:"range",min:"1",max:"10",class:"slider",value:n.modelValue,onInput:i},null,40,mAe)],512)]))}});const Z4=M(gAe,[["__scopeId","data-v-bb4c05e4"]]),vAe={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},F1=e=>(o.pushScopeId("data-v-d4e75028"),e=e(),o.popScopeId(),e),yAe={class:"card-overview"},BAe={class:"full-art-wrapper"},wAe=["src"],bAe={class:"overview-top"},_Ae={class:"card-name"},CAe={class:"card-tags"},kAe={class:"card-tag"},EAe={class:"card-tag-text"},SAe={class:"card-tag"},xAe={class:"card-tag-text"},FAe={class:"card-tag"},IAe={class:"card-tag-text"},TAe={class:"card-tag"},UAe={class:"card-tag-text"},DAe=F1(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),QAe={class:"card-text"},LAe=F1(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),OAe={class:"keyword-description"},MAe={class:"keyword-name"},NAe=F1(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),PAe={class:"flavor-text"},HAe=o.defineComponent({__name:"CardOverview",props:vAe,setup(e){const t=e,n=GA(t.cardProp,t.cardCodeProp,!0),r=o.ref(!1),a=o.computed(()=>{if(n.value===void 0)return[];const c=[];for(const u of n.value.keywordRefs){const d=ge().dataJson.keywords.find(f=>f.nameRef===u);d&&c.push(d)}return c}),i=o.computed(()=>{if(n.value===void 0)return null;const c=ge().dataJson;return mA(n.value.regionRefs[0])?c.runeterraChampions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]:c.regions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]}),s=o.computed(()=>n.value===void 0?null:ge().dataJson.rarities.find(c=>c.nameRef===n.value.rarityRef)??ge().dataJson.rarities[0]),A=o.computed(()=>n.value===void 0?null:ge().dataJson.types.find(c=>c.nameRef===n.value.typeRef)??ge().dataJson.types[0]),l=o.computed(()=>n.value===void 0?null:ge().dataJson.sets.find(c=>c.nameRef===n.value.set)??ge().dataJson.sets[0]);return(c,u)=>{var d,f,p,h,g,B,m,v;return o.openBlock(),o.createElementBlock("div",yAe,[o.createVNode(o.unref(si),{"show-modal":r.value,"onUpdate:showModal":u[0]||(u[0]=w=>r.value=w)},{default:o.withCtx(()=>{var w;return[o.createElementVNode("div",BAe,[o.createElementVNode("img",{class:"full-art",src:o.unref(ye)().callbacks.cardImageCallback(((w=o.unref(n))==null?void 0:w.cardCode)??"01IO001",o.unref(gt).Full)},null,8,wAe)])]}),_:1},8,["show-modal"]),o.unref(n)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",bAe,[o.createElementVNode("div",_Ae,o.toDisplayString(o.unref(n).name),1),o.createElementVNode("button",{ref:"button",class:"circle-button",onClick:u[1]||(u[1]=w=>r.value=!0)},[o.createVNode(o.unref(ke),{icon:"image"})],512)]),o.createElementVNode("div",CAe,[o.createElementVNode("div",kAe,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((d=i.value)==null?void 0:d.icon)??""})`})},null,4),o.createElementVNode("div",EAe,o.toDisplayString((f=i.value)==null?void 0:f.name),1)]),o.createElementVNode("div",SAe,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((p=s.value)==null?void 0:p.icon)??""})`})},null,4),o.createElementVNode("div",xAe,o.toDisplayString((h=s.value)==null?void 0:h.name),1)]),o.createElementVNode("div",FAe,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((g=A.value)==null?void 0:g.icon)??""})`})},null,4),o.createElementVNode("div",IAe,o.toDisplayString((B=A.value)==null?void 0:B.name),1)]),o.createElementVNode("div",TAe,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((m=l.value)==null?void 0:m.icon)??""})`})},null,4),o.createElementVNode("div",UAe,o.toDisplayString((v=l.value)==null?void 0:v.name),1)])]),DAe,o.createElementVNode("div",QAe,o.toDisplayString(o.unref(n).descriptionRaw),1),LAe,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,w=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:w.nameRef},[o.createElementVNode("div",OAe,[o.createElementVNode("b",MAe,o.toDisplayString(w.name+" - "),1),o.createElementVNode("span",null,o.toDisplayString(w.description),1)]),NAe],64))),128)),o.createElementVNode("div",PAe,o.toDisplayString(o.unref(n).flavorText),1)],64)):o.createCommentVNode("",!0)])}}});const e3=M(HAe,[["__scopeId","data-v-d4e75028"]]),RAe={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},VAe={class:"profile-game-type-winrate"},KAe={class:"game-type"},$Ae=o.defineComponent({__name:"ProfileGameTypeWinrate",props:RAe,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",VAe,[o.createElementVNode("div",KAe,o.toDisplayString(t.gameType),1),o.createVNode(m1,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const t3=M($Ae,[["__scopeId","data-v-1bb3c9de"]]),zAe={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},WAe=o.defineComponent({__name:"DecksTable",props:zAe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"deck",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:ve.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:ve.NEITHER,title:r("general.winrate")},{id:"manaCurve",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:ve.NOT_SORTABLE,title:r("general.cost")}]);function i(s){const A=Gi(s,a);A&&t("sort-updated",A)}return(s,A)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.deckRows,(l,c)=>(o.openBlock(),o.createBlock(El,o.mergeProps({key:l.deckCode},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const n3=M(WAe,[["__scopeId","data-v-c789c9b5"]]),GAe={deckCode:{type:String,required:!1,default:""}},jAe={deck:{type:Object,required:!0,default:{}},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},YAe={class:"deck-preview-wrapper"},qAe=o.defineComponent({__name:"ShowDeckPreviewButton",props:jAe,setup(e){const t=e,{t:n}=J(),r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{qe(r.value,{content:n("deck.showPreview"),arrow:!0})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=A=>a.value=!0)},[o.createVNode(o.unref(ke),{icon:"camera"})],512),o.createVNode(si,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=A=>a.value=A)},{default:o.withCtx(()=>[o.createElementVNode("div",YAe,[o.createVNode(o.unref(Gd),{deck:t.deck,"deck-buttons-props":t.deckButtonsProps},null,8,["deck","deck-buttons-props"])])]),_:1},8,["show-modal"])]))}});const XAe=M(qAe,[["__scopeId","data-v-90be9f81"]]),JAe={class:"cards-container no-scrollbar"},ZAe={key:0,class:"input-deck-code"},ele={class:"text"},tle=["placeholder"],nle={class:"bottom"},rle={class:"bottom-buttons"},r3=o.defineComponent({__name:"DeckBuilderSidePanel",props:GAe,emits:["update:card-quantity","input:deck-code","click:save"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>{if(n.deckCode===void 0)throw new Error("DeckCode must be defined");return Bt(n.deckCode)}),i=o.computed(()=>Zt(a.value)),s=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!1,simulateMulligan:!0,openInDeckBuilder:!1,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:n.deckCode,deckBuilderRouterLink:"404"}));function A(l){t("input:deck-code",l.target.value)}return(l,c)=>(o.openBlock(),o.createBlock(no,{"show-clear-all":!1},{default:o.withCtx(()=>[o.createVNode(o.unref(x1),{cards:i.value,deck:a.value},null,8,["cards","deck"]),(o.openBlock(),o.createBlock(o.unref(bl),{class:"mana-curve-chart",key:n.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!0,deck:a.value},null,8,["deck"])),o.createElementVNode("div",JAe,[i.value.length===0?(o.openBlock(),o.createElementBlock("div",ZAe,[o.createElementVNode("div",ele,o.toDisplayString(o.unref(r)("deckBuilder.inputDeckCode")),1),o.createElementVNode("input",{onInput:A,placeholder:o.unref(r)("general.deckCode"),type:"text"},null,40,tle)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createBlock(o.unref($t),{"onUpdate:cardQuantity":c[0]||(c[0]=d=>t("update:card-quantity",d)),key:u.cardCode,"card-prop":u,"maintain-aspect-ratio":!0,"quantity-number":a.value[u.cardCode],"show-plus-minus":!0,"router-link":o.unref(ye)().callbacks.cardCodeRouterLinkCallback(u.cardCode),class:"card-slice-item"},null,8,["card-prop","quantity-number","router-link"]))),128))]),o.createElementVNode("div",nle,[o.createElementVNode("div",rle,[o.createVNode(o.unref(Ld),{deck:a.value},null,8,["deck"]),o.createVNode(o.unref(Qd),{"deck-code":n.deckCode},null,8,["deck-code"]),o.createVNode(XAe,{deck:a.value,"deck-buttons-props":s.value},null,8,["deck","deck-buttons-props"]),o.createVNode(o.unref(Od),{"deck-code":n.deckCode,"deck-name":o.unref(Yh)(n.deckCode)},null,8,["deck-code","deck-name"])]),o.createElementVNode("div",{class:"fancy-button",onClick:c[1]||(c[1]=u=>t("click:save"))},o.toDisplayString(o.unref(r)("general.save")),1)])]),_:1}))}});const ale={data:{type:Array,required:!0,default:[]},backgroundColor:{type:String,required:!1,default:"#000000"}},a3=o.defineComponent({__name:"RegionDistributionChart",props:ale,setup(e){const t=e,n=o.ref(null);Oe.register(...Sr);const r=o.computed(()=>({labels:t.data.map(i=>i.region),datasets:[{data:t.data.map(i=>i.matches),backgroundColor:t.data.map(i=>N2(i.region))}]})),a={cutout:"80%",elements:{arc:{borderWidth:3,borderColor:t.backgroundColor}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(i){const s=[],A=i.data.labels;for(let l=0;l<i.data.labels.length;l++)s.push({text:`${Gh(A[l])} (${i.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:Wa("--color-0"),fillStyle:i.data.datasets[0].backgroundColor[l]});return s}}},datalabels:{display:!1}}};return(i,s)=>(o.openBlock(),o.createBlock(o.unref(hd),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),ile={class:"circle-button"},sle=o.defineComponent({__name:"DeckButtonsDropdown",props:gk,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,r=o.ref(null),a=o.ref(null);return o.onMounted(()=>{qe(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"click",duration:0})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"containerDiv",ref:r,class:"deck-buttons-dropdown"},[o.createElementVNode("div",ile,[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-chevron-down"})]),o.createElementVNode("div",{ref_key:"tippyDiv",ref:a,class:"tippy-div"},[o.createVNode(o.unref(Ao),o.mergeProps({class:"deck-buttons","onClick:delete":s[0]||(s[0]=A=>t("click:delete")),"onClick:editName":s[1]||(s[1]=A=>t("click:edit-name")),"onClick:share":s[2]||(s[2]=A=>t("click:share")),"onClick:updatePrivacy":s[3]||(s[3]=A=>t("click:update-privacy"))},n),null,16)],512)],512))}});const I1=M(sle,[["__scopeId","data-v-79fac15d"]]),ole={value:{type:Number,required:!0,default:1},max:{type:Number,required:!0,default:2}},i3=o.defineComponent({__name:"SimpleDoughnutChart",props:ole,setup(e){const t=e,n=o.ref(null);Oe.register(...Sr);const r=o.computed(()=>({labels:["Value","Max"],datasets:[{data:[t.value,t.max-t.value],backgroundColor:[Wa("--color-good"),"transparent"]}]})),a={cutout:"80%",elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1}}},i=[{id:"text",beforeDraw:function(s){const A=s.chartArea.width,l=s.chartArea.height,c=s.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const f=s.data.datasets[0].data[0].toFixed(2),p=Math.round((A-c.measureText(f).width)/2),h=l/2;c.fillStyle=Wa("--color-good"),c.fillText(f,p,h),c.save()}}];return(s,A)=>(o.openBlock(),o.createBlock(o.unref(hd),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:i},null,8,["chart-data"]))}}),Ale={items:{type:Array,required:!0,default:()=>[]}},lle={stage:{type:String,required:!0,default:"Registration"},start:{type:Date,required:!0,default:new Date},end:{type:Date,required:!0,default:new Date}},cle=e=>(o.pushScopeId("data-v-c7b963cb"),e=e(),o.popScopeId(),e),ule=cle(()=>o.createElementVNode("div",{class:"progress-circle"},null,-1)),dle={class:"content"},fle={class:"heading"},ple={class:"title"},hle={class:"date"},mle={class:"description"},gle={key:0,class:"participants"},vle=o.defineComponent({__name:"TournamentTimelineItem",props:lle,setup(e){const t=e,n=o.computed(()=>t.stage),r=o.computed(()=>"This is a longer dscription of the tournament. Testing how it looks like."),a=o.computed(()=>t.start<new Date&&t.end>new Date),i=o.computed(()=>t.start>new Date?t.start:t.end);return(s,A)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-timeline-item",a.value?"active":"inactive"])},[ule,o.createElementVNode("div",dle,[o.createElementVNode("div",fle,[o.createElementVNode("div",ple,o.toDisplayString(n.value),1),o.createElementVNode("div",hle,o.toDisplayString(i.value.toLocaleDateString()),1)]),o.createElementVNode("div",mle,o.toDisplayString(r.value),1),t.players?(o.openBlock(),o.createElementBlock("div",gle)):o.createCommentVNode("",!0)])],2))}});const yle=M(vle,[["__scopeId","data-v-c7b963cb"]]),Ble={class:"tournament-timeline no-scrollbar"},wle=o.defineComponent({__name:"TournamentTimeline",props:Ale,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",Ble,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,a=>(o.openBlock(),o.createBlock(yle,{stage:a.stage,start:a.start,end:a.end,players:a.players},null,8,["stage","start","end","players"]))),256))]))}});const s3=M(wle,[["__scopeId","data-v-33c531d9"]]),ble={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},_le={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},gameWins:{type:Number,required:!0,default:0},gameLosses:{type:Number,required:!0,default:0},matchWins:{type:Number,required:!0,default:0},matchLosses:{type:Number,required:!0,default:0},opponentsMatchWinrate:{type:Number,required:!0,default:0},opponentsGameWinrate:{type:Number,required:!0,default:0},decks:{type:Array,required:!0,default:[]},selectedBannerCard:{type:[String,null],required:!0,default:""},selectedBannerColor:{type:[String,null],required:!1,default:""},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},Cle={results:{type:Object,required:!0,default:{type:"single",isVictory:null}},deckCode:{type:String,required:!0,default:""}},kle={class:"tournament-deck-result"},Ele={key:0,class:"results"},Sle={class:"good"},xle={class:"bad"},Fle=o.defineComponent({__name:"TournamentDeckResult",props:Cle,setup(e){const t=e,n=o.computed(()=>t.results.type==="multiple"?"":t.results.isBanned?"ban":t.results.isVictory===null?"":t.results.isVictory===!1?"times":"check"),r=o.computed(()=>n.value==="check");return(a,i)=>(o.openBlock(),o.createElementBlock("div",kle,[o.createVNode(la,{"deck-code":t.deckCode,"show-eye":t.results.type==="multiple",class:"deck-highlight"},null,8,["deck-code","show-eye"]),t.results.type==="multiple"?(o.openBlock(),o.createElementBlock("div",Ele,[o.createElementVNode("span",Sle,o.toDisplayString(t.results.wins),1),o.createTextVNode(" - "),o.createElementVNode("span",xle,o.toDisplayString(t.results.losses),1),o.createTextVNode(" - "),o.createElementVNode("span",null,o.toDisplayString(t.results.bans),1)])):n.value.length>0?(o.openBlock(),o.createBlock(o.unref(ke),{key:1,class:o.normalizeClass(["icon",r.value?"good":"bad"]),icon:n.value},null,8,["icon","class"])):o.createCommentVNode("",!0)]))}});const zh=M(Fle,[["__scopeId","data-v-f221ffb4"]]),Ile={class:"tournament-player-additional-data-wrapper"},Tle={class:"tournament-player-additional-data-content-top"},Ule={class:"winrate-wrapper"},Dle={class:"winrate-wrapper"},Qle={class:"winrate-wrapper"},Lle={class:"tournament-player-additional-data-content-bottom"},Ole={class:"row tournament-player-row-background-wrapper"},Mle={class:"tournament-player-row-background"},Nle={class:"row tournament-player-row wrapper"},Ple={class:"column-content"},Hle={class:"column-content"},Rle=o.defineComponent({__name:"TournamentPlayerRow",props:_le,setup(e){const t=e,n=o.ref(null),r=o.ref(0),a=o.ref(!1),i=o.computed(()=>t.selectedBannerCard?["",ye().callbacks.cardImageCallback(t.selectedBannerCard,gt.Banner)]:[]);return o.onMounted(()=>{n.value&&(r.value=n.value.clientHeight)}),(s,A)=>{const l=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(l,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["tournament-player-row-wrapper wrapper",{expanded:a.value}]),style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"row tournament-player-additional-data-row",style:o.normalizeStyle({"--height":r.value+"px"}),onClick:A[0]||(A[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createElementVNode("div",Ile,[o.createElementVNode("div",{class:"tournament-player-additional-data-content",ref_key:"additionalDataContent",ref:n},[o.createElementVNode("div",Tle,[o.createVNode(hA,{heading:"Opponents' Match Winrate"},{default:o.withCtx(()=>[o.createElementVNode("div",Ule,o.toDisplayString(o.unref(Ce)(t.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1}),o.createVNode(hA,{heading:"Game Winrate"},{default:o.withCtx(()=>[o.createElementVNode("div",Dle,o.toDisplayString(o.unref(Ce)(t.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1}),o.createVNode(hA,{heading:"Opponents' Game Winrate"},{default:o.withCtx(()=>[o.createElementVNode("div",Qle,o.toDisplayString(o.unref(Ce)(t.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1})]),o.createElementVNode("div",Lle,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.decks,c=>(o.openBlock(),o.createBlock(zh,{key:c.deckCode,"deck-code":c.deckCode,results:{type:"multiple",wins:c.wins,losses:c.losses,bans:c.bans}},null,8,["deck-code","results"]))),128))])],512)])],4),o.createElementVNode("div",Ole,[o.createElementVNode("div",Mle,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${c})`})},null,4))),128))])]),o.createElementVNode("div",Nle,[t.shownColumns.player?(o.openBlock(),o.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:A[1]||(A[1]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode($t,{class:"card-slice-item","card-code-prop":t.selectedBannerCard??void 0,color:t.selectedBannerColor??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank,name:t.name,"maintain-aspect-ratio":!1,"router-link":t.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):o.createCommentVNode("",!0),o.createElementVNode("div",Ple,o.toDisplayString(t.matchWins)+" - "+o.toDisplayString(t.matchLosses),1),o.createElementVNode("div",Hle,o.toDisplayString(t.gameWins)+" - "+o.toDisplayString(t.gameLosses),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.matchWins/(t.matchWins+t.matchLosses))})`})},o.toDisplayString(o.unref(Ce)(t.matchWins/(t.matchWins+t.matchLosses)*100,1,3)+"%"),5),o.createElementVNode("div",{class:"column-content options-button",onClick:A[2]||(A[2]=o.withModifiers(c=>a.value=!a.value,["stop","prevent"]))},[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-chevron-down"})])])],6)]),_:1},8,["to"])}}});const Vle=M(Rle,[["__scopeId","data-v-64929340"]]),Kle=o.defineComponent({__name:"TournamentPlayerTable",props:ble,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"player",isShown:n.shownColumns.player,sortDirection:ve.UP,title:r("general.player")},{id:"matchWLs",isShown:n.shownColumns.lp,sortDirection:ve.NEITHER,title:r("general.matchRecord")},{id:"gameWLs",isShown:n.shownColumns.change,sortDirection:ve.NEITHER,title:r("general.gameRecord")},{id:"winrate",isShown:n.shownColumns.winrate,sortDirection:ve.NEITHER,title:r("general.winrate")}]),i=o.computed(()=>({"--columns":a.value.filter(A=>A.isShown).length}));function s(A){const l=Gi(A,a);l&&t("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,style:o.normalizeStyle(i.value),"heading-items":a.value,onToggleSort:s},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.players,(c,u)=>(o.openBlock(),o.createBlock(Vle,o.mergeProps({key:`${c.rank}${c.name}${c.id}`},c,{index:u+2,"router-link":o.unref(ye)().callbacks.playerIdRouterLinkCallback(c.id)}),null,16,["index","router-link"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const o3=M(Kle,[["__scopeId","data-v-a40d0d35"]]),$le={selectedRound:{type:Number,required:!0,default:1},numRounds:{type:Number,required:!0,default:1}},zle={class:"swiss-round-options"},Wle=["onClick"],Gle=o.defineComponent({__name:"TournamentSwissRoundOptions",props:$le,emits:["update:selectedRound"],setup(e,{emit:t}){const n=e;return(r,a)=>(o.openBlock(),o.createElementBlock("div",zle,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.numRounds,i=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["swiss-round-option",i===n.selectedRound?"selected":""]),onClick:s=>t("update:selectedRound",i)},o.toDisplayString(i),11,Wle))),256))]))}});const A3=M(Gle,[["__scopeId","data-v-578f487f"]]),jle={player:{type:[Object,null],required:!0,default:null},isHorizontal:{type:Boolean,required:!0,default:!1},resultToShow:{type:[Number,null],required:!0,default:null},results:{type:Array,required:!0,default:[]},decks:{type:Array,required:!0,default:[]},showTippy:{type:Boolean,required:!1,default:!1},placement:{type:String,required:!0,default:"top"},isVictory:{type:Boolean,required:!0,default:!1}},Yle={class:"results"},qle=["onMouseenter","result-index"],Xle=["result-index"],Jle=o.defineComponent({__name:"TournamentPlayer",props:jle,emits:["update:result-to-show"],setup(e,{emit:t}){const n=e,r=o.ref(null),a=o.ref(null),i=o.ref(null),s=o.ref([]),A=o.ref(null),l=o.ref(null);function c(f){t("update:result-to-show",f)}o.onMounted(()=>{console.log(A.value),u()}),o.watch([()=>n.showTippy,()=>n.resultToShow],()=>{d()});function u(){if(!(a.value===null||i.value===null)&&(r.value=qe(i.value,{content:a.value,placement:n.placement==="top"?"top-start":n.isHorizontal?"bottom-end":"bottom-start",arrow:!0,duration:0,trigger:"manual",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:n.isHorizontal?[n.placement==="top"?"bottom-end":"bottom-start",n.placement==="top"?"top-end":"top-start",n.placement==="top"?"bottom-start":"bottom-end",n.placement==="top"?"top-start":"top-end"]:[n.placement==="top"?"right":"left",n.placement==="top"?"left":"right"]}}]}}),!(A.value===null||l.value===null)))for(const f of A.value){const p=f.getAttribute("result-index");console.log(p);const h=l.value.find(g=>g.getAttribute("result-index")===p);console.log(h),h&&s.value.push(qe(h,{content:f,placement:n.placement,arrow:!0,duration:0,trigger:"manual",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:n.isHorizontal?[n.placement==="top"?"bottom-end":"bottom-start",n.placement==="top"?"top-end":"top-start",n.placement==="top"?"bottom-start":"bottom-end",n.placement==="top"?"top-start":"top-end"]:[n.placement==="top"?"right":"left",n.placement==="top"?"left":"right"]}}]}}))}}function d(){var f,p;if((f=r.value)==null||f.hide(),s.value.forEach(h=>{h.hide()}),!!n.showTippy){if(n.resultToShow===null){(p=r.value)==null||p.show();return}s.value.forEach((h,g)=>{g===n.resultToShow&&h.show()})}}return(f,p)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-player",[n.showTippy?"show-results":null,n.isHorizontal?"horizontal":"vertical",n.placement]]),ref_key:"tournamentPlayer",ref:i},[n.player?(o.openBlock(),o.createBlock($t,{key:0,class:"card-slice-item","card-code-prop":n.player.cardCodeProp,name:n.player.name,color:n.player.color??null,"router-link":n.player.routerLink,"ignore-card-item":!0,"maintain-aspect-ratio":!1,"mana-number":null,"show-plus-minus":!1,onMouseenter:p[0]||(p[0]=()=>c(null))},null,8,["card-code-prop","name","color","router-link"])):(o.openBlock(),o.createBlock($t,{key:1,class:"card-slice-item",name:"",color:null,"router-link":"","ignore-card-item":!0,"maintain-aspect-ratio":!1,"mana-number":null,"show-plus-minus":!1})),o.createElementVNode("div",Yle,[o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(["result",n.isVictory?"win":"loss"])},o.toDisplayString(n.results.filter(h=>h.isVictory).length),3),[[o.vShow,!n.showTippy]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.results,(h,g)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["result",h.isVictory?"win":"loss"]),onMouseenter:()=>c(g),ref_for:!0,ref_key:"results",ref:l,"result-index":g},o.toDisplayString(h.isVictory?1:0),43,qle)),[[o.vShow,n.showTippy]])),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.results,(h,g)=>(o.openBlock(),o.createElementBlock("div",{class:"result-tippy","result-index":g,ref_for:!0,ref_key:"resultTippyContents",ref:A},[o.createVNode(zh,{"deck-code":h.deckCode,results:{type:"single",isVictory:h.isVictory}},null,8,["deck-code","results"])],8,Xle))),256))]),o.createElementVNode("div",{class:"main-tippy",ref_key:"mainTippyContent",ref:a},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.decks,h=>(o.openBlock(),o.createBlock(zh,{"deck-code":h.deckCode,results:{type:"single",isVictory:h.isVictory,isBanned:h.isBanned}},null,8,["deck-code","results"]))),256))],512)],2))}});const D2=M(Jle,[["__scopeId","data-v-fdcce3df"]]),Zle={isHorizontal:{type:Boolean,required:!0,default:!1},playerTop:{type:[Object,null],required:!0,default:null},playerBottom:{type:[Object,null],required:!0,default:null}},ece=o.defineComponent({__name:"TournamentMatchup",props:Zle,setup(e){const t=e,n=o.ref(null),r=o.ref(!1);function a(){r.value=!1,n.value=null}return(i,s)=>{var A,l,c,u,d,f,p,h;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-matchup",t.isHorizontal?"horizontal":"vertical"]),onMouseenter:s[2]||(s[2]=g=>r.value=!0),onMouseleave:a},[o.createVNode(D2,{"result-to-show":n.value,"onUpdate:resultToShow":s[0]||(s[0]=g=>n.value=g),player:((A=t.playerTop)==null?void 0:A.player)??null,decks:((l=t.playerTop)==null?void 0:l.decks)??[],results:((c=t.playerTop)==null?void 0:c.results)??[],"is-victory":((u=t.playerTop)==null?void 0:u.isVictory)??!1,"show-tippy":r.value,placement:"top","is-horizontal":t.isHorizontal},null,8,["result-to-show","player","decks","results","is-victory","show-tippy","is-horizontal"]),o.createVNode(D2,{"result-to-show":n.value,"onUpdate:resultToShow":s[1]||(s[1]=g=>n.value=g),player:((d=t.playerBottom)==null?void 0:d.player)??null,decks:((f=t.playerBottom)==null?void 0:f.decks)??[],results:((p=t.playerBottom)==null?void 0:p.results)??[],"is-victory":((h=t.playerBottom)==null?void 0:h.isVictory)??!1,"show-tippy":r.value,placement:"bottom","is-horizontal":t.isHorizontal},null,8,["result-to-show","player","decks","results","is-victory","show-tippy","is-horizontal"])],34)}}});const tce=M(ece,[["__scopeId","data-v-12be40db"]]),nce={matches:{type:Array,required:!0,default:()=>[]}},rce={class:"swiss-round"},ace={key:1,class:"empty"},ice=o.defineComponent({__name:"TournamentSwissRound",props:nce,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",rce,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.matches,a=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[a?(o.openBlock(),o.createBlock(tce,{key:0,class:"matchup","player-top":a.playerTop,"player-bottom":a.playerBottom,"is-horizontal":!0},null,8,["player-top","player-bottom"])):(o.openBlock(),o.createElementBlock("div",ace))],64))),256))]))}});const l3=M(ice,[["__scopeId","data-v-815dfc70"]]),sce={install:async e=>{e.component("RevealCarousel",vm),e.component("SearchBar",td),e.component("SocialLinks",xm),e.component("ModalItem",si),e.component("FilterSampleSize",eo),e.component("FilterRanks",kb),e.component("FilterManaCost",Fm),e.component("FilterRarities",Im),e.component("FilterSets",Tm),e.component("FilterKeywords",Um),e.component("FilterServers",to),e.component("FilterTime",Wi),e.component("FilterCardCodes",rd),e.component("FilterDecks",Eb),e.component("FilterProfile",Sb),e.component("FilterText",IA),e.component("FilterAdvanced",Lm),e.component("FilterRegions",tl),e.component("FilterCards",xb),e.component("AdvancedFilterItem",Qm),e.component("FilterTypes",Om),e.component("RegionsLine",Mm),e.component("CardsTable",Fb),e.component("DeckHighlightRegions",il),e.component("GemsCost",Rm),e.component("CardSliceItem",$t),e.component("LanguageSelection",TA),e.component("DeckSidePanel",mk),e.component("DeckHighlight",la),e.component("ArchetypeSidePanel",w4),e.component("OpenInDeckBuilderButton",zg),e.component("CopyDeckButton",Qd),e.component("UpdateDeckPrivacyButton",Gg),e.component("EditDeckNameButton",Kg),e.component("UploadDeckToLorButton",Od),e.component("DeleteDeckButton",Vg),e.component("OpenArchetypePageButton",$g),e.component("SimulateMulliganButton",Ld),e.component("DecksRow",El),e.component("CardItemLinkWrapper",Yd),e.component("DeckHighlightCards",sl),e.component("CheckboxItem",qt),e.component("NavigationTopDesktop",s1),e.component("SidePanelSectionPane",dt),e.component("CardSimilarCards",b4),e.component("DashboardSignUp",C4),e.component("MatchItem",k4),e.component("ToggleSwitch",nd),e.component("LeaderboardTop10Region",o1),e.component("ShareButton",Yg),e.component("LeaderboardDetailRow",A1),e.component("DeckBlock",E4),e.component("SmallTable",ts),e.component("LeaderboardTop",S4),e.component("CardLottery",x4),e.component("DashboardProfile",F4),e.component("LeaderboardChart",I4),e.component("CardQuantityBarChart",T4),e.component("WinsLossesBarChart",U4),e.component("RoundCardInfoBarChart",D4),e.component("LineChart",Q4),e.component("ManaCurveChart",bl),e.component("WinrateDoughnutChart",f1),e.component("InfoDoughnutChart",Cu),e.component("BuiltDecksTable",L4),e.component("ProfileRegionTable",O4),e.component("ProfileArchetypeTable",M4),e.component("CardItem3d",d1),e.component("LeaderboardOptions",N4),e.component("SimilarDecksTable",P4),e.component("LargeTable",da),e.component("StatisticsPaneContainer",hA),e.component("ArchetypeSidePanelHighlight",id),e.component("CardCarousel",H4),e.component("DeckButtons",Ao),e.component("WinsLossesLine",m1),e.component("DashboardCardRow",g1),e.component("CardTogglePage",R4),e.component("TestComponent",V4),e.component("DashboardLeaderboardRow",v1),e.component("DeckPreview",Gd),e.component("CheckboxItemManaCost",du),e.component("RevealDayOptions",K4),e.component("DeckDifferenceItem",r1),e.component("DashboardNewCards",$4),e.component("CardsRow",Nm),e.component("LeaderboardDetailTable",z4),e.component("DeckIcon",W4),e.component("LogoIcon",Js),e.component("FollowerIcon",B1),e.component("ChampionIcon",w1),e.component("EternalIcon",l1),e.component("InfoIcon",i1),e.component("LandmarkIcon",b1),e.component("ManaHexagonIcon",el),e.component("RuneterraIcon",jg),e.component("ShardsIcon",Hm),e.component("StandardIcon",c1),e.component("SpellIcon",_1),e.component("GauntletIcon",u1),e.component("EquipmentIcon",C1),e.component("NavigationTop",G4),e.component("CardMultiselect",Dm),e.component("ProfileDropdown",j4),e.component("ColorPicker",Y4),e.component("DashboardLeaderboardTable",q4),e.component("NavigationSide",k1),e.component("ArchetypesTable",X4),e.component("DeckBuilderSummary",x1),e.component("DeckBuilderSummaryType",xa),e.component("DashboardCardTable",J4),e.component("ArchetypesRow",S1),e.component("RevealDayOption",y1),e.component("DeckHighlightEye",jd),e.component("DeckDifferences",a1),e.component("ZoomSlider",Z4),e.component("CardOverview",e3),e.component("CircleCardItem",fa),e.component("ProfileGameTypeWinrate",t3),e.component("DecksTable",n3),e.component("RegionItem",al),e.component("TippyText",ad),e.component("ProfileRegionRow",p1),e.component("SimulateMulligan",Wg),e.component("DeckSummary",Dd),e.component("NavigationTopMobile",E1),e.component("CardItem",Pi),e.component("ProfileArchetypeRow",h1),e.component("DeckBuilderSidePanel",r3),e.component("SimpleDoughnutChart",i3),e.component("RegionDistributionChart",a3),e.component("DeckButtonsDropdown",I1),e.component("Spinner",Pm),e.component("ToastContainer",Q2),e.component("TournamentTimeline",s3),e.component("TournamentPlayerTable",o3),e.component("TournamentSwissRoundOptions",A3),e.component("TournamentSwissRound",l3),e.component("FontAwesomeIcon",ke),e.component("Multiselect",Wt)}};exports.AdvancedFilterItem=Qm;exports.ArchetypeSidePanel=w4;exports.ArchetypeSidePanelHighlight=id;exports.ArchetypesRow=S1;exports.ArchetypesTable=X4;exports.BuiltDecksTable=L4;exports.CardCarousel=H4;exports.CardImageType=gt;exports.CardItem=Pi;exports.CardItem3d=d1;exports.CardItemLinkWrapper=Yd;exports.CardLottery=x4;exports.CardMultiselect=Dm;exports.CardOverview=e3;exports.CardQuantityBarChart=T4;exports.CardSimilarCards=b4;exports.CardSliceItem=$t;exports.CardTogglePage=R4;exports.CardsRow=Nm;exports.CardsTable=Fb;exports.ChampionIcon=w1;exports.CheckboxItem=qt;exports.CheckboxItemManaCost=du;exports.CircleCardItem=fa;exports.ColorPicker=Y4;exports.CopyDeckButton=Qd;exports.DashboardCardRow=g1;exports.DashboardCardTable=J4;exports.DashboardLeaderboardRow=v1;exports.DashboardLeaderboardTable=q4;exports.DashboardNewCards=$4;exports.DashboardProfile=F4;exports.DashboardSignUp=C4;exports.DeckBlock=E4;exports.DeckBuilderSidePanel=r3;exports.DeckBuilderSummary=x1;exports.DeckBuilderSummaryType=xa;exports.DeckButtons=Ao;exports.DeckButtonsDropdown=I1;exports.DeckDifferenceItem=r1;exports.DeckDifferences=a1;exports.DeckHighlight=la;exports.DeckHighlightCards=sl;exports.DeckHighlightEye=jd;exports.DeckHighlightRegions=il;exports.DeckIcon=W4;exports.DeckPreview=Gd;exports.DeckSidePanel=mk;exports.DeckSummary=Dd;exports.DecksRow=El;exports.DecksTable=n3;exports.DeleteDeckButton=Vg;exports.EditDeckNameButton=Kg;exports.EquipmentIcon=C1;exports.EternalIcon=l1;exports.FilterAdvanced=Lm;exports.FilterCardCodes=rd;exports.FilterCards=xb;exports.FilterDecks=Eb;exports.FilterKeywords=Um;exports.FilterManaCost=Fm;exports.FilterProfile=Sb;exports.FilterRanks=kb;exports.FilterRarities=Im;exports.FilterRegions=tl;exports.FilterSampleSize=eo;exports.FilterServers=to;exports.FilterSets=Tm;exports.FilterText=IA;exports.FilterTime=Wi;exports.FilterTypes=Om;exports.FollowerIcon=B1;exports.GauntletIcon=u1;exports.GemsCost=Rm;exports.InfoDoughnutChart=Cu;exports.InfoIcon=i1;exports.LandmarkIcon=b1;exports.LanguageSelection=TA;exports.LargeTable=da;exports.LeaderboardChart=I4;exports.LeaderboardDetailRow=A1;exports.LeaderboardDetailTable=z4;exports.LeaderboardOptions=N4;exports.LeaderboardTop=S4;exports.LeaderboardTop10Region=o1;exports.LineChart=Q4;exports.LogoIcon=Js;exports.ManaCurveChart=bl;exports.ManaHexagonIcon=el;exports.MatchItem=k4;exports.ModalItem=si;exports.NavigationSide=k1;exports.NavigationTop=G4;exports.NavigationTopDesktop=s1;exports.NavigationTopMobile=E1;exports.OpenArchetypePageButton=$g;exports.OpenInDeckBuilderButton=zg;exports.ProfileArchetypeRow=h1;exports.ProfileArchetypeTable=M4;exports.ProfileDropdown=j4;exports.ProfileGameTypeWinrate=t3;exports.ProfileRegionRow=p1;exports.ProfileRegionTable=O4;exports.RegionDistributionChart=a3;exports.RegionItem=al;exports.RegionsLine=Mm;exports.RevealCarousel=vm;exports.RevealDayOption=y1;exports.RevealDayOptions=K4;exports.RoundCardInfoBarChart=D4;exports.RuneterraIcon=jg;exports.SearchBar=td;exports.ShardsIcon=Hm;exports.ShareButton=Yg;exports.SidePanelSectionPane=dt;exports.SimilarDecksTable=P4;exports.SimpleDoughnutChart=i3;exports.SimulateMulligan=Wg;exports.SimulateMulliganButton=Ld;exports.SmallTable=ts;exports.SocialLinks=xm;exports.SpellIcon=_1;exports.Spinner=Pm;exports.StandardIcon=c1;exports.StatisticsPaneContainer=hA;exports.TestComponent=V4;exports.TippyText=ad;exports.ToastContainer=Q2;exports.ToggleSwitch=nd;exports.TournamentPlayerTable=o3;exports.TournamentSwissRound=l3;exports.TournamentSwissRoundOptions=A3;exports.TournamentTimeline=s3;exports.UpdateDeckPrivacyButton=Gg;exports.UploadDeckToLorButton=Od;exports.WinrateDoughnutChart=f1;exports.WinsLossesBarChart=U4;exports.WinsLossesLine=m1;exports.ZoomSlider=Z4;exports.default=sce;exports.getCardsFromDeck=Zt;exports.getDate=D3;exports.getDeckObjectFromCode=Bt;exports.getMostImportantCards=na;exports.getRegionNameOfRegionRef=Gh;exports.getRegions=WA;exports.importIcons=$5;exports.keyDayjs=ri;exports.regionOfCard=jh;exports.setupi18n=qS;exports.useAcquiredCardsStore=Vu;exports.useCallbacksStore=ye;exports.useCardJsonObjectStore=on;exports.useCardJsonStore=Rw;exports.useDataJsonStore=ge;exports.useFilterStore=z5;exports.useSearchBarOptionsStore=Hw;exports.useToastsStore=Ap;exports.useUserStore=Kt;
|
|
896
|
+
${n(i.value).fromNow()}`)),l=o.computed(()=>{const c=[];return t.activated&&c.push("activated"),t.soon&&c.push("soon"),s.value&&c.push("past"),c});return o.onMounted(()=>{qe(r.value,{content:a.value,arrow:!0,delay:[0,0],duration:[0,0]})}),(c,u)=>(o.openBlock(),o.createElementBlock("div",fse,[o.createElementVNode("div",{ref_key:"revealDayOption",ref:r,class:o.normalizeClass(["reveal-day-option",l.value])},[o.createElementVNode("div",pse,[o.createElementVNode("img",{src:o.unref(op),alt:"card",class:"card"},null,8,hse)]),o.createElementVNode("div",mse,[o.createElementVNode("img",{src:o.unref(op),alt:"card",class:"card"},null,8,gse)]),o.createElementVNode("div",vse,[o.createElementVNode("img",{src:o.unref(op),alt:"card",class:"card"},null,8,yse)])],2),o.createElementVNode("div",{ref_key:"revealDayOptionTippy",ref:a},[o.createVNode(ad,{text:A.value},null,8,["text"])],512)]))}});const y1=M(Bse,[["__scopeId","data-v-daac7e87"]]),wse={days:{type:Array,required:!0,default:[]},date:{type:String,required:!0,default:""}},bse=e=>(o.pushScopeId("data-v-3ca708c1"),e=e(),o.popScopeId(),e),_se={class:"reveal-day-options"},Cse=bse(()=>o.createElementVNode("div",{class:"line"},null,-1)),kse=o.defineComponent({__name:"RevealDayOptions",props:wse,emits:["update:date"],setup(e,{emit:t}){const n=e;function r(a){n.days[a].available&&t("update:date",n.days[a].date)}return(a,i)=>(o.openBlock(),o.createElementBlock("div",_se,[Cse,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.days,(s,A)=>(o.openBlock(),o.createBlock(y1,{key:s.date,date:s.date,activated:s.date===n.date,soon:s.soon,available:s.available,onClick:l=>r(A)},null,8,["date","activated","soon","available","onClick"]))),128))]))}});const K4=M(kse,[["__scopeId","data-v-3ca708c1"]]),Ese={cardCodes:{type:Array,required:!0,default:[]}},Sse=o.defineComponent({__name:"DashboardNewCards",props:Ese,setup(e){const t=e,{t:n}=J(),r=[{title:n("general.newCards"),id:"newCards"}];return(a,i)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[o.createVNode(vm,{class:"reveal-carousel","card-codes":t.cardCodes},null,8,["card-codes"])]),_:1}))}});const $4=M(Sse,[["__scopeId","data-v-89a26f2c"]]),xse={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},Fse=o.defineComponent({__name:"LeaderboardDetailTable",props:xse,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"player",isShown:n.shownColumns.player,sortDirection:ye.UP,title:r("general.player")},{id:"lp",isShown:n.shownColumns.lp,sortDirection:ye.NEITHER,title:r("general.lp")},{id:"change",isShown:n.shownColumns.change,sortDirection:ye.NEITHER,title:r("general.change")},{id:"wins",isShown:n.shownColumns.wins,sortDirection:ye.NEITHER,title:r("general.wins")},{id:"matches",isShown:n.shownColumns.matches,sortDirection:ye.NEITHER,title:r("general.matches")},{id:"winrate",isShown:n.shownColumns.winrate,sortDirection:ye.NEITHER,title:r("general.winrate")},{id:"deck",isShown:n.shownColumns.deck,sortDirection:ye.NOT_SORTABLE,title:r("general.favoriteDeck")}]),i=o.computed(()=>({"--columns":a.value.filter(A=>A.isShown).length}));function s(A){const l=Gi(A,a);l&&t("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,style:o.normalizeStyle(i.value),"heading-items":a.value,onToggleSort:s},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.players,(c,u)=>(o.openBlock(),o.createBlock(A1,o.mergeProps({key:`${c.rank}${c.name}${c.user_id}`},c,{index:u+2,"shown-columns":n.shownColumns,"router-link":o.unref(ge)().callbacks.playerRouterLinkCallback(c)}),null,16,["index","shown-columns","router-link"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const z4=M(Fse,[["__scopeId","data-v-11a25b9c"]]);const Ise={},Tse=e=>(o.pushScopeId("data-v-c8a918ec"),e=e(),o.popScopeId(),e),Use={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 400"},Dse=Tse(()=>o.createElementVNode("path",{d:"M107 57.2C23 99 25 97.6 22.2 106.3c-3.4 10.4-6 4 43.5 103.1l44 88.3.5-6.6c.4-4.6 1-7.7 2.4-10.4l1.9-3.7-40-80.8c-22.1-44.4-40.1-81.5-40.1-82.4 0-5-.9-4.5 78-43.9l75-37.4 3.4 1.1 3.3 1.2 49.8 99.6c33 65.8 49.8 100.4 49.8 102 0 4.9-1 5.5-28.2 19.2l-26 13 15.4.1h15.4l13.9-6.9c19.2-9.6 23.1-14 23.2-25.6v-5.7L257 129.6C221.5 58.6 206 28 204 26c-4-4.2-9.6-6.5-15.8-6.5h-5.1L107 57.2m121.5-15.8 3.5 7h29.6c26 0 29.7.2 31.3 1.3 4 2.8 4 1.9 4 68v61.6l6.6 12.9 6.6 12.9v-76.3c0-90 .7-84.8-11.8-91.7l-4.2-2.3-34.6-.3-34.6-.2 3.6 7m95.7 42.1V91l24.3 12.1c25.1 12.5 28 14.5 28 18.7 0 1.3-10.8 24-26.1 55l-26.2 53 .2 14.9.2 14.8 32.8-65.8 32.8-65.8v-5.5a20 20 0 0 0-7-16 739.5 739.5 0 0 0-58.6-30.6c-.2 0-.4 3.4-.4 7.6M126.5 285.1c-4.2 4.2-2 10.3 4 11.4 1.5.2 57.1.3 123.6.2l120.9-.2 1.9-2c3-3 3-6.9 0-9.8l-1.8-1.9H128.8l-2.3 2.3m1.9 25.8c-4.5 1.8-5.5 7.5-1.9 11l2.3 2.3h122.4c130.4 0 125.8.1 127.2-3.5 1.5-3.8.3-7.8-2.7-9.4-2.5-1.3-244-1.7-247.3-.4m-2.3 29.3c-2.6 2.6-2.6 6.6.2 9.3l2 2h246.8l1.9-1.9c2.6-2.6 2.6-7.2.1-9.6l-1.8-1.7H128l-2 1.9m.6 27c-3.7 3.5-3 8.9 1.4 11.1 2.6 1.3 9.8 1.4 124.8 1.2l122-.2 2-2c3-3 3-6.9 0-9.8l-1.8-1.9H251.7c-122.8 0-123.3 0-125 1.6"},null,-1)),Qse=[Dse];function Lse(e,t){return o.openBlock(),o.createElementBlock("svg",Use,Qse)}const W4=M(Ise,[["render",Lse],["__scopeId","data-v-c8a918ec"]]);const Ose={},Mse=e=>(o.pushScopeId("data-v-4a6733fd"),e=e(),o.popScopeId(),e),Nse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 431.6"},Pse=Mse(()=>o.createElementVNode("path",{d:"m178 26.2-8.6 1.8-9.6 2c-2.6.6-6.6 1.5-8.8 1.8-2.2.4-5.7 1-7.8 1.6l-8.8 1.8-8.8 1.8-8.6 1.8c-2.6.5-6.2 1.2-8 1.7l-8.8 1.7-8.6 1.8-6.6 1.4c-3.2.5-14.1 2.9-18.3 3.9-4.2 1-4.4 2.2-2.2 15.1 4.2 24.3 5.2 51.8 2.9 80.4l-.8 10.8c-.2 2-.8 6.9-1.4 10.6-.6 3.7-1.5 9-1.8 11.8-.4 2.8-1.2 7-1.8 9.6a138 138 0 0 0-1.8 8.3c-.3 2-1.1 5.3-1.8 7.4l-1.6 6.1c-.8 4-3.8 14.2-7.1 23.6a191.2 191.2 0 0 1-5.7 15.3L39 259.8c-.7 2-1.7 4.2-2.1 5l-8.5 17c-3.4 7-3.6 6.6 11.3 17a13873.6 13873.6 0 0 1 92 64.6c17.4 12.3 16.5 12.7 18-8L151 332c.6-12 .9-16 2-30.4.6-7.2 1-13.3 1.8-30.2l1.2-18c1.6-20.9 3-46.9 2.6-48.9-.4-2.3-1.8-2.8-5-1.8-9.2 3-18 4.4-23 3.7-15.1-2-25.3-12.8-29.8-31.8a95.5 95.5 0 0 1-2.6-29.8c0-19.7.1-20 5.5-21.6a691 691 0 0 0 14.5-4.2 583.1 583.1 0 0 0 24-6.8 88 88 0 0 0 6.4-1.8c2-.6 4.9-1.5 6.4-1.8 1.5-.3 4.7-1.3 7-2l5-1.4 5-1.4c12-3.9 13.8-3.9 28.5.4a746 746 0 0 0 23 6.5c.4.2 2.3.8 4.3 1.3 2 .4 5.2 1.4 7.2 2l6.4 1.8c1.5.3 4.2 1 5.8 1.6l7.4 2.2c19 5 18.6 4.5 18.6 24.2 0 48.9-20.7 71.2-55 59.3-6.4-2.2-6.8-1.3-5.6 13a948 948 0 0 1 1.8 30.3c.2 4.7.9 14.2 1.4 21 1.1 14.4 1.6 22.6 2.2 34.8.2 4.8.9 14.7 1.4 21.8 1 12.3 1.2 16.4 2.2 36 .9 16.2-.6 16.4 26.2-2.6a2102.7 2102.7 0 0 1 24.8-17.3c2.6-2 7.1-5 10-7.1a3744.4 3744.4 0 0 1 30.2-21.1l17.8-12.5c13.2-9.2 14-9.9 13.7-12.5-.2-2-.5-2.7-3.4-8.1a164.8 164.8 0 0 1-10.7-22.4 292 292 0 0 1-9.5-25.4 292 292 0 0 1-7.2-25.2 345.8 345.8 0 0 1-10.4-64.4c-.9-7.7-.6-44.7.4-53.6l1.7-15.4 1.4-10.6c2-9.4 2-10.2-.1-11.7-.7-.4-2.1-1-3.2-1l-6.5-1.5-9.5-2c-2.7-.4-6.7-1.2-8.8-1.8l-6.9-1.4c-1.7-.3-5.7-1-9-1.8l-9.8-2c-2-.3-5.5-1-7.6-1.6l-8.8-1.8-8.8-1.8c-2.1-.5-5.6-1.3-7.8-1.6-2.2-.4-5.8-1.1-8-1.7l-9.4-2c-3-.4-7.3-1.3-9.6-1.9a28.3 28.3 0 0 0-14.8 0"},null,-1)),Hse=[Pse];function Rse(e,t){return o.openBlock(),o.createElementBlock("svg",Nse,Hse)}const B1=M(Ose,[["render",Rse],["__scopeId","data-v-4a6733fd"]]);const Vse={},Kse=e=>(o.pushScopeId("data-v-b519ac08"),e=e(),o.popScopeId(),e),$se={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 429.1"},zse=Kse(()=>o.createElementVNode("path",{d:"M53.8 32.8c-2.6 1-8.3 12.9-13.6 28l-2.1 5.8c-.4 1.1-1.1 3.5-1.5 5.4L35 78.8a84.1 84.1 0 0 0-2.6 14.1c0 2.7.8 4.1 7.4 12.5 16.7 21.3 16.7 21 2.2 21-13.3 0-13-.3-12.7 11.8.2 8.4.7 11.8 1.9 14.2.9 1.7 1.7 2.7 27 35.3 8.1 10.6 7.8 11.5-4.2 11.5-11.9 0-12 .3-4.4 16.9a269.4 269.4 0 0 0 28.7 47.7c8.4 11 8.6 11.5 9 19.8.5 8 1.1 11.4 4.3 24.4 7 28.8 30 57 60 73.2a97 97 0 0 1 5 2.8l3 1.4c1.5.5 3.5 1.4 4.5 2 2.8 1.4 10.6 4 11.6 3.6 2.1-.5 2.4-3.6 1-10.6-.6-2.6-1.4-7.3-1.9-10.6-.4-3.2-1.2-7.6-1.6-9.7a218 218 0 0 1-2.6-15.1l-1.8-10.2-1.6-8.2c-1-5.6-.9-5.5-13-5.8-10.4-.2-11-.4-12.3-2.5-.4-.7-.5-7-.7-28.7-.2-26.2-.2-27.9-1-29.2-.4-.8-5.5-6.3-11.4-12.2-5.9-6-11-11.4-11.4-12.2-.8-1.5-1.3-65.8-.5-68.5.7-2.6 2.6-2.3 7.3 1.3l6.8 4.9a1371.6 1371.6 0 0 1 25 17.9c16.1 11.6 25 18.2 26.2 19.7l1.2 1.6.2 28.6c.2 31.6.1 30.2 2.8 32 1.7 1.1 28 1.4 30.6.3 3-1.2 2.8.6 3-31.4.2-31.9 0-29.5 3-32.5 1.7-1.5 7.1-5.6 18.6-13.7a3147.5 3147.5 0 0 0 38.3-27.6c4.4-3.3 6-3.6 7-1.2.7 2 .4 66.8-.3 68.3-.4.7-5.4 6-11.2 11.9-5.7 5.8-10.9 11.3-11.4 12.2l-1 1.6-.2 27.8c-.3 35 1.2 31.2-12.6 31.6-12 .3-12.2.4-13.6 12.6-.3 2.9-1 7.3-1.4 9.8-1.4 8.3-2 11.7-2.6 17-.3 2.9-1 7.5-1.6 10.4-1 5.6-2.2 14.1-2.2 16.9 0 2 1 3.3 2.8 3.3a93.6 93.6 0 0 0 21.9-9.4 124.7 124.7 0 0 0 47-44.9 128.2 128.2 0 0 0 15.9-52.5c.7-11.5 0-9.7 11.7-27.2l10.4-15.6c2.3-3.3 18.2-34.8 19-37.7 1.1-3.3-.8-4.3-8.8-4.3-11.8-.1-11.9.1 3.4-20.2a1330 1330 0 0 0 15.4-20.8c4.9-6.6 5.5-8.5 6.6-20.9.6-6.3.4-8.2-1-9.6l-1.1-1.1-9-.2c-13.5-.3-13.6-.6-4.2-13.4 14.6-19.7 14.1-18.3 11-31a188 188 0 0 0-9.9-31.1c-2.8-8-7.8-17.3-9.9-18.1-2.6-1.1-1.7-2.8-24.6 43-20.2 40.3-21.3 42.4-22.7 43.2-2.1 1.1-3 .5-6.3-4.2A118.4 118.4 0 0 0 237.3 71a122.9 122.9 0 0 0-76 2 73.7 73.7 0 0 0-14.9 6.9c-13.8 7-29.8 21.3-39.1 35-3.3 4.8-5.2 5.6-7.4 3.1L78.4 75.7c-22.4-44.9-22-44-24.6-43"},null,-1)),Wse=[zse];function Gse(e,t){return o.openBlock(),o.createElementBlock("svg",$se,Wse)}const w1=M(Vse,[["render",Gse],["__scopeId","data-v-b519ac08"]]);const jse={},Yse=e=>(o.pushScopeId("data-v-f1928c9e"),e=e(),o.popScopeId(),e),qse={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 470.8"},Xse=Yse(()=>o.createElementVNode("path",{"fill-rule":"evenodd",d:"M60.6 11c-.5.8-.6 17.6-.5 157l.1 156 1 .8c1.5 1.3 278.4 1.2 279.6 0 1.3-1.3 1.2.8 1.1-81.1l-.1-78.6-1.3-1.1c-1-.9-4.5-2.2-16-6-38.4-12.5-36.7-12-38-10.7-.7.7-.7 5.1-.9 64.4l-.2 63.7-.9 2.2c-3.9 9.5-11 14-23.1 14.3-12.4.3-20-3.6-24.3-12.3-2.4-4.8-2.3-1.4-2.3-95v-87l-1-1.1c-1.2-1.4 1-.6-31.6-12.6a552 552 0 0 0-25.5-9.1c-2.5 0-2.3-8.5-2.3 98.8 0 60.3-.2 98.7-.4 100.8-2.7 23.7-41.9 26.6-49.7 3.6l-.9-2.6-.2-120.9-.2-120.9-1-1c-.7-.6-5-2.5-12.6-5.3C59.9 8.6 61.7 9.2 60.6 10.9m.9 356.3c-2.6.5-3 1.8-3 7.7-.1 12.3-5.7 18.7-24.6 28.2-11.4 5.6-16.6 10.9-19.3 19.3a86 86 0 0 0-.9 19.5l-.2 17.3 1 1 1 1h368.1l1-1c.7-.6 1-1.6 1.2-3.2.4-3.3 0-28.3-.6-31.4-1.9-10.7-8-17.3-22-23.4-17.3-7.6-21.8-13.2-22.6-28.5-.3-4.5-.4-5-1.3-5.8l-1-.9H200.7c-75.7 0-138.4 0-139.2.2"},null,-1)),Jse=[Xse];function Zse(e,t){return o.openBlock(),o.createElementBlock("svg",qse,Jse)}const b1=M(jse,[["render",Zse],["__scopeId","data-v-f1928c9e"]]);const eoe={},toe=e=>(o.pushScopeId("data-v-b1448e85"),e=e(),o.popScopeId(),e),noe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 400 459.4"},roe=toe(()=>o.createElementVNode("path",{d:"M175.3 29.5c-1.7.3-.9 1.5 6.1 8.9A57.6 57.6 0 0 1 200 82.6a63.5 63.5 0 0 1-5 25.1 63.5 63.5 0 0 1-23 27.5c-4.6 2.7-6.3 2-14.8-6.2-7.9-7.7-8-7.8-11.1-6.2-2.6 1.3-14.6 12-20.5 18.2l-9.6 10a349.5 349.5 0 0 0-35.5 43.8c-3.1 4.6-6 9.1-9.3 15.2a753 753 0 0 1-5.2 9.2c-.9 1.4-2 3.7-2.4 5-.4 1.2-1.3 3.2-2 4.4l-2.2 4.8a52 52 0 0 1-1.8 4.2c-.4.8-1.3 3.2-2 5.4l-2.2 6c-.5 1-1.3 3.8-1.8 6l-2 7.7a62 62 0 0 0-1.8 8c-3.2 23.5-3 26.6 1.7 31A154.6 154.6 0 0 0 73 318a254 254 0 0 0 33.9 16.2c2.4 1.3 12.6 4.6 19 6.3 3.6 1 7.4 2 8.4 2.4l7.4 1.6c3 .5 7.5 1.4 9.8 2 2.7.6 7.5 1.3 13.2 1.8 5 .4 11.5 1 14.6 1.4 3.8.4 9.7.6 18.6.6 18.5 0 19.9 1.2 13.7 11.9a86.4 86.4 0 0 1-50.1 39.8c-1.4.6-4.1 1.4-6 2-1.9.4-5.2 1.3-7.4 2-2.2.6-6.3 1.4-9.2 1.7-6 .7-10 1.5-10.7 2.2-1.3 1.2 2.5 4 7 5.1l8.3 2.3c2.8.8 6.8 1.7 9 2l15.8 2.6c6.9 1.3 29.5 2 39.8 1.2 6.5-.4 8-.6 18.2-2.4l8.3-1.4c2-.3 5.7-1.2 8-2 2.4-.7 5.4-1.6 6.7-1.8 1.3-.3 3.8-1 5.6-1.8l6-2.2c1.5-.5 3.7-1.3 4.7-1.9l4.2-1.8a228 228 0 0 0 22-11.7c20.9-13.4 40-38.5 44.7-58.8l1.8-6c1.7-4.9 1.9-5.8 2.6-13.2a116.3 116.3 0 0 0-10.4-71l-1.4-2.7c-.4-1-2.5-4.5-6-9.7-4.3-6.6-7.5-7.3-10-2.3-3.1 6.1-15.8 20.3-23.2 25.8a81.5 81.5 0 0 1-71.1 13.4l-6.3-2.3a93 93 0 0 1-38.7-30.1c-4-5.7-4-7.3-.4-12.8a82.1 82.1 0 0 1 38.7-30.2c17-7.5 42.3-7.4 57.2.3 8.8 4.5 10.9 2.5 9.2-9.2-.3-2.2-.6-6.5-.6-9.6a129 129 0 0 0-4.6-34.6 75.6 75.6 0 0 0-3.6-13.8c-4.5-17-18-42.2-32-59.6a193.3 193.3 0 0 0-27.5-25.9 82.1 82.1 0 0 0-18-10.3c-3-1.8-14.6-4.6-17-4.1"},null,-1)),aoe=[roe];function ioe(e,t){return o.openBlock(),o.createElementBlock("svg",noe,aoe)}const _1=M(eoe,[["render",ioe],["__scopeId","data-v-b1448e85"]]);const soe={},ooe=e=>(o.pushScopeId("data-v-e5501fa0"),e=e(),o.popScopeId(),e),Aoe={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},loe=ooe(()=>o.createElementVNode("path",{d:"M9.51 16.698 2.244 9.18 1 11.478l6.226 6.264 2.283-1.044ZM6.189 6.676 4.943 5.423 7.02 3.335l1.245 1.253L6.19 6.676ZM9.302 14.61 4.113 9.39l.83-1.044H6.19l3.736-3.55V3.545L10.962 2.5l4.981.626.415 4.803-.83.835-1.453.209-.83 1.043 1.453 1.253.83-.835 1.453.626-4.15 4.176L12 13.775l.83-.835-1.453-1.462-1.037 1.253v1.252l-1.038.627ZM20.924 21.5l-6.018-6.473 1.66-1.67L23 19.412 20.924 21.5Z"},null,-1)),coe=[loe];function uoe(e,t){return o.openBlock(),o.createElementBlock("svg",Aoe,coe)}const C1=M(soe,[["render",uoe],["__scopeId","data-v-e5501fa0"]]),doe={...qd,expanded:{type:Boolean,required:!1,default:!1}},foe={class:"content logo no-scrollbar"},poe={class:"nav-icon-wrapper"},hoe={class:"nav-text"},moe={class:"nav-icon-wrapper"},goe={class:"nav-text"},voe={class:"profile content"},yoe={class:"nav-icon-wrapper"},Boe={class:"nav-text"},woe={class:"nav-icon-wrapper"},boe={class:"nav-text"},_oe={class:"nav-icon-wrapper"},Coe={class:"nav-text settings"},koe={class:"nav-icon-wrapper"},Eoe={class:"nav-text"},Soe={class:"nav-icon-wrapper"},xoe={class:"nav-text name"},Foe={class:"nav-icon-wrapper"},Ioe={class:"nav-text settings"},Toe=["href"],Uoe={class:"nav-icon-wrapper"},Doe={class:"nav-text sign-in-container"},Qoe={class:"fancy-button"},Loe=o.defineComponent({__name:"NavigationSide",props:doe,emits:["click:sync","click:sign-in","click:language"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(),i=o.ref();let s;o.onMounted(()=>{var l;s=new ResizeObserver(A),a.value&&s.observe(a.value),(l=i.value)==null||l.addEventListener("scroll",A),A()}),o.onUnmounted(()=>{var l;s.disconnect(),(l=i.value)==null||l.removeEventListener("scroll",A)});function A(){var u,d;let l=!1,c=!1;i.value&&(i.value.clientHeight<i.value.scrollHeight&&(l=i.value.scrollTop>0,c=i.value.scrollTop<i.value.scrollHeight-i.value.clientHeight),(u=i.value)==null||u.classList.toggle("scrollable-up",l),(d=i.value)==null||d.classList.toggle("scrollable-down",c))}return(l,c)=>{var u;return o.openBlock(),o.createElementBlock("div",{ref_key:"navigationSide",ref:a,class:o.normalizeClass(["navigation-side",n.expanded?"expanded":""])},[o.createElementVNode("div",foe,[o.createVNode(o.unref(Vr.RouterLink),{to:n.homeLink,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",poe,[o.createVNode(Js,{"logo-type":"logo-only"})]),o.createElementVNode("div",hoe,[o.createVNode(Js,{"logo-type":"text-only"})])]),_:1},8,["to"])]),o.createElementVNode("div",{ref_key:"navigationPages",ref:i,class:"pages content no-scrollbar"},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.items,d=>(o.openBlock(),o.createBlock(o.unref(Vr.RouterLink),{key:d.text,to:d.routerLocation,class:o.normalizeClass(["nav-item",d.highlighted?"highlight":""])},{default:o.withCtx(()=>[o.createElementVNode("div",moe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:d.faIcon},null,8,["icon"])]),o.createElementVNode("div",goe,o.toDisplayString(d.text),1)]),_:2},1032,["to","class"]))),128))],512),o.createElementVNode("div",voe,[o.unref(Kt)().user?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[(u=o.unref(Kt)().user)!=null&&u.isPremium?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Vr.RouterLink),{key:0,to:o.unref(ge)().callbacks.premiumLinkCallback(),class:"nav-item premium"},{default:o.withCtx(()=>[o.createElementVNode("div",yoe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"crown"})]),o.createElementVNode("div",Boe,o.toDisplayString(o.unref(r)("general.premium")),1)]),_:1},8,["to"])),o.createVNode(o.unref(Vr.RouterLink),{to:n.links.gift,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",woe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"gift"})]),o.createElementVNode("div",boe,o.toDisplayString(o.unref(r)("general.openCards")),1)]),_:1},8,["to"]),o.createVNode(o.unref(Vr.RouterLink),{to:n.links.settings,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",_oe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",Coe,[o.createElementVNode("div",null,o.toDisplayString(o.unref(r)("general.settings")),1),o.createVNode(o.unref(TA),{class:"language-selection icon",onClick:c[0]||(c[0]=o.withModifiers(()=>{},["stop","prevent"]))})])]),_:1},8,["to"]),o.createElementVNode("div",{class:"nav-item",onClick:c[1]||(c[1]=d=>t("click:sync"))},[o.createElementVNode("div",koe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"rotate-right"})]),o.createElementVNode("div",Eoe,o.toDisplayString(o.unref(r)("general.syncUserData")),1)]),o.createVNode(o.unref(Vr.RouterLink),{to:n.links.profile,class:"nav-item"},{default:o.withCtx(()=>{var d,f,p,h,g;return[o.createElementVNode("div",Soe,[(o.openBlock(),o.createBlock(fa,{key:`${(d=o.unref(Kt)().user)==null?void 0:d.selectedIconCard}${(f=o.unref(Kt)().user)==null?void 0:f.selectedBannerColor}`,"card-code-prop":((p=o.unref(Kt)().user)==null?void 0:p.selectedIconCard)??"05BC160","ignore-card-item":!0,"color-override":(h=o.unref(Kt)().user)==null?void 0:h.selectedBannerColor,"router-link":n.links.profile},null,8,["card-code-prop","color-override","router-link"]))]),o.createElementVNode("div",xoe,o.toDisplayString((g=o.unref(Kt)().user)==null?void 0:g.name),1)]}),_:1},8,["to"])],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(o.unref(Vr.RouterLink),{to:n.links.settings,class:"nav-item"},{default:o.withCtx(()=>[o.createElementVNode("div",Foe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"cog"})]),o.createElementVNode("div",Ioe,[o.createElementVNode("div",null,o.toDisplayString(o.unref(r)("general.settings")),1),o.createVNode(o.unref(TA),{class:"language-selection icon",onClick:c[2]||(c[2]=o.withModifiers(()=>{},["stop","prevent"]))})])]),_:1},8,["to"]),o.createElementVNode("a",{class:"nav-item",onClick:c[3]||(c[3]=d=>t("click:sign-in")),href:n.loginLink,target:"_blank"},[o.createElementVNode("div",Uoe,[o.createVNode(o.unref(ke),{class:"nav-icon",icon:"arrow-right-to-bracket"})]),o.createElementVNode("div",Doe,[o.createElementVNode("div",Qoe,o.toDisplayString(o.unref(r)("general.signIn")),1)])],8,Toe)],64))])],2)}}});const k1=M(Loe,[["__scopeId","data-v-81f93229"]]),Ooe=o.defineComponent({__name:"NavigationTopMobile",props:qd,emits:["click:sync","click:sign-in"],setup(e,{emit:t}){const n=e,r=o.ref(!1),a=o.ref(!1),i=o.ref(),s=o.ref();window.addEventListener("click",A);function A(u){var d;r.value&&(r.value=!!((d=s.value)!=null&&d.contains(u.target)))}function l(){o.nextTick(()=>{r.value=!0,o.nextTick(()=>{var u,d;(d=(u=i.value)==null?void 0:u.$el.querySelector("input"))==null||d.focus()})})}function c(){a.value=!0}return o.onUnmounted(()=>{window.removeEventListener("click",A)}),(u,d)=>{const f=o.resolveComponent("RouterLink");return o.openBlock(),o.createElementBlock("div",{ref_key:"navigationTopMobile",ref:s,class:"navigation-top-mobile"},[r.value?(o.openBlock(),o.createBlock(td,{key:1,"fetch-seach-result":n.fetchSeachResult,ref_key:"searchBar",ref:i,class:"search-bar"},null,8,["fetch-seach-result"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(o.unref(ke),{class:"icon",icon:"bars",onClick:c}),o.createVNode(f,{to:n.homeLink},{default:o.withCtx(()=>[o.createVNode(Js,{class:"logo-icon","logo-type":"text-only"})]),_:1},8,["to"]),o.createVNode(o.unref(ke),{class:"icon",icon:"search",onClick:o.withModifiers(l,["stop","prevent"])},null,8,["onClick"])],64)),o.createVNode(si,{"show-modal":a.value,"onUpdate:showModal":d[2]||(d[2]=p=>a.value=p)},{default:o.withCtx(()=>[o.createVNode(k1,o.mergeProps({class:"navigation-side","onClick:sync":d[0]||(d[0]=p=>t("click:sync")),"onClick:signIn":d[1]||(d[1]=p=>t("click:sign-in"))},n,{expanded:!0}),null,16)]),_:1},8,["show-modal"])],512)}}});const E1=M(Ooe,[["__scopeId","data-v-f840153f"]]),Moe={class:"navigation-top"},Noe=o.defineComponent({__name:"NavigationTop",props:qd,emits:["click:sync","click:sign-in"],setup(e,{emit:t}){const n=e;return(r,a)=>(o.openBlock(),o.createElementBlock("div",Moe,[o.createVNode(s1,o.mergeProps({class:"navigation-top-desktop"},n),{default:o.withCtx(()=>[o.renderSlot(r.$slots,"default",{},void 0,!0)]),_:3},16),o.createVNode(E1,o.mergeProps({"onClick:signIn":a[0]||(a[0]=i=>t("click:sign-in")),"onClick:sync":a[1]||(a[1]=i=>t("click:sync")),class:"navigation-top-mobile"},n),null,16)]))}});const G4=M(Noe,[["__scopeId","data-v-508e62c8"]]),Poe={name:{type:String,required:!0,default:""}},Hoe={class:"profile-dropdown-wrapper"},Roe=o.defineComponent({__name:"ProfileDropdown",props:Poe,setup(e){const t=e,n=o.ref(),r=o.ref();return o.onMounted(()=>{qe(n.value,{content:r.value,arrow:!0,interactive:!0,interactiveBorder:10})}),(a,i)=>(o.openBlock(),o.createElementBlock("div",Hoe,[o.createElementVNode("div",{ref_key:"profile",ref:n,class:"profile-dropdown"},o.toDisplayString(t.name),513),o.createElementVNode("div",{ref_key:"dropdown",ref:r,class:"slider-wrapper"},"Test",512)]))}});const j4=M(Roe,[["__scopeId","data-v-1c516824"]]),Voe={modelValue:{type:String,required:!0,default:!1}},Koe=["value"],$oe=o.defineComponent({__name:"ColorPicker",props:Voe,emits:["update:modelValue"],setup(e,{emit:t}){const n=e;function r(a){t("update:modelValue",a.target.value)}return(a,i)=>(o.openBlock(),o.createElementBlock("input",{type:"color",value:n.modelValue,onInput:r},null,40,Koe))}});const Y4=M($oe,[["__scopeId","data-v-5ebbd7eb"]]),zoe={rows:{type:Array,required:!0,default:[]},selectedRegion:{type:String,required:!0,default:"americas"}},Woe={class:"multiselect-wrapper"},Goe=o.defineComponent({__name:"DashboardLeaderboardTable",props:zoe,emits:["update:selectedRegion"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref(n.selectedRegion),i=[{title:r("general.leaderboard"),id:"leaderboard"}];return o.watch(a,s=>{t("update:selectedRegion",s)}),(s,A)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":i},{heading:o.withCtx(()=>[o.createElementVNode("div",Woe,[o.createVNode(o.unref(Wt),{modelValue:a.value,"onUpdate:modelValue":A[0]||(A[0]=l=>a.value=l),class:"multiselect",placeholder:o.unref(r)("general.server"),options:o.unref(ve)().dataJson.servers,"can-clear":!1,label:"name","value-prop":"nameRef"},null,8,["modelValue","placeholder","options"])])]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.rows,(l,c)=>(o.openBlock(),o.createBlock(v1,{id:l.id,key:l.id,change:l.change,lp:l.lp,name:l.name,rank:l.rank,"selected-banner-card":l.selectedBannerCard,matches:l.matches,index:c+2},null,8,["id","change","lp","name","rank","selected-banner-card","matches","index"]))),128))]),_:1}))}});const q4=M(Goe,[["__scopeId","data-v-fe0f916c"]]),joe={routerLink:{type:Object,required:!0,default:{path:"/404"}},deckBuilderRouterLink:{type:Object,required:!0,default:{path:"/404"}},archetypeId:{type:Number,required:!0,default:1},deckCode:{type:String,required:!0,default:""},index:{type:Number,required:!0,default:1},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1},playrate:{type:Number,required:!0,default:1},regions:{type:Array,required:!0,default:[]},cards:{type:Array,required:!0,default:[]}},Yoe=e=>(o.pushScopeId("data-v-61aebadd"),e=e(),o.popScopeId(),e),qoe={class:"table-card-row-background-wrapper"},Xoe={class:"table-card-row-background"},Joe=Yoe(()=>o.createElementVNode("div",{class:"background-card"},null,-1)),Zoe=[Joe],eAe={class:"archetypes-row wrapper"},tAe={class:"column-content"},nAe={class:"column-content"},rAe=o.defineComponent({__name:"ArchetypesRow",props:joe,setup(e){const t=e,n=o.computed(()=>Bt(t.deckCode)),r=o.computed(()=>Zt(n.value)),a=o.computed(()=>t.cards.map(s=>ge().callbacks.cardImageCallback(s,gt.Banner))),i=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!1,openArchetypePage:!0,simulateMulligan:!0,openInDeckBuilder:!0,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!1},deckCode:t.deckCode,deckBuilderRouterLink:t.deckBuilderRouterLink,archetypeRouterLink:t.routerLink,deckId:void 0,deckName:void 0,isPrivate:void 0}));return(s,A)=>{const l=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(l,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:"archetypes-row-wrapper wrapper",style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",qoe,[o.createElementVNode("div",Xoe,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"background-card-wrapper",style:o.normalizeStyle({"--background-image":`url(${c})`})},Zoe,4))),128))])]),o.createElementVNode("div",eAe,[o.createElementVNode("div",{class:"column-content deck-highlight-wrapper",onClick:A[0]||(A[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode(la,{"deck-code":t.deckCode,deck:n.value,cards:r.value,"deck-buttons-props":i.value},null,8,["deck-code","deck","cards","deck-buttons-props"])]),o.createElementVNode("div",tAe,o.toDisplayString(o.unref(Ce)(t.matches)),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.wins/t.matches)})`})},o.toDisplayString(o.unref(Ce)(t.wins/t.matches*100,2,3)+"%"),5),o.createElementVNode("div",nAe,o.toDisplayString(o.unref(Ce)(t.playrate,2,3)+"%"),1)])],4)]),_:1},8,["to"])}}});const S1=M(rAe,[["__scopeId","data-v-61aebadd"]]),aAe={archetypeRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},iAe=o.defineComponent({__name:"ArchetypesTable",props:aAe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"deck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:ye.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:ye.NEITHER,title:r("general.winrate")},{id:"playrate",isShown:!0,sortDirection:ye.NEITHER,title:r("general.playrate")}]);function i(s){const A=Gi(s,a);A&&t("sort-updated",A)}return(s,A)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.archetypeRows,(l,c)=>(o.openBlock(),o.createBlock(S1,o.mergeProps({key:l.deckCode},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const X4=M(iAe,[["__scopeId","data-v-4a8597f4"]]),sAe={typeSummary:{type:Object,required:!0,default:{quantity:0,isError:!1,typeRef:"Champion"}}},oAe={class:"number-container"},AAe={key:0,class:"type-icon"},lAe=o.defineComponent({__name:"DeckBuilderSummaryType",props:sAe,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["deck-builder-summary-type",[t.typeSummary.isError?"error":"",t.typeSummary.typeRef==="Deck"?"deck":""]])},[o.createElementVNode("div",oAe,o.toDisplayString(t.typeSummary.quantity),1),t.typeSummary.typeRef!=="Deck"?(o.openBlock(),o.createElementBlock("div",AAe,[t.typeSummary.typeRef==="Champion"?(o.openBlock(),o.createBlock(w1,{key:0})):t.typeSummary.typeRef==="Follower"?(o.openBlock(),o.createBlock(B1,{key:1})):t.typeSummary.typeRef==="Spell"?(o.openBlock(),o.createBlock(_1,{key:2})):t.typeSummary.typeRef==="Landmark"?(o.openBlock(),o.createBlock(b1,{key:3})):t.typeSummary.typeRef==="Equipment"?(o.openBlock(),o.createBlock(C1,{key:4})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)],2))}});const xa=M(lAe,[["__scopeId","data-v-2e6bb287"]]),cAe={cards:{type:Array,required:!0,default:[]},deck:{type:Object,required:!0,default:{}}},uAe={class:"deck-builder-summary"},dAe=o.defineComponent({__name:"DeckBuilderSummary",props:cAe,setup(e){const t=e;function n(c,u,d){const f=t.cards.filter(c).map(p=>t.deck[p.cardCode]).reduce((p,h)=>p+h,0);return{typeRef:d,quantity:f,isError:u(f)}}const r=o.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="Champion",c=>c>6,"Champion")),a=o.computed(()=>n(c=>c.typeRef==="Unit"&&c.supertype==="",()=>!1,"Follower")),i=o.computed(()=>n(c=>c.typeRef==="Spell",()=>!1,"Spell")),s=o.computed(()=>n(c=>c.typeRef==="Landmark",()=>!1,"Landmark")),A=o.computed(()=>n(c=>c.typeRef==="Equipment",()=>!1,"Equipment")),l=o.computed(()=>n(()=>!0,c=>c!==40,"Deck"));return(c,u)=>(o.openBlock(),o.createElementBlock("div",uAe,[o.createVNode(xa,{"type-summary":r.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":a.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":i.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":s.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":A.value},null,8,["type-summary"]),o.createVNode(xa,{"type-summary":l.value},null,8,["type-summary"])]))}});const x1=M(dAe,[["__scopeId","data-v-ec8f0fa9"]]),fAe={rows:{type:Array,required:!0,default:[]}},pAe=o.defineComponent({__name:"DashboardCardTable",props:fAe,setup(e){const t=e,{t:n}=J(),r=[{title:n("general.cards"),id:"cards"},{title:n("general.matches"),id:"matches"},{title:n("general.winrate"),id:"winrate"}];return(a,i)=>(o.openBlock(),o.createBlock(ts,{class:"small-table","heading-items":r},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,s=>(o.openBlock(),o.createBlock(g1,{key:s.cardCode,"card-code":s.cardCode,matches:s.matches,wins:s.wins,index:s.index+2},null,8,["card-code","matches","wins","index"]))),128))]),_:1}))}});const J4=M(pAe,[["__scopeId","data-v-e5817be3"]]),hAe={modelValue:{type:Number,required:!0,default:5}},mAe=["value"],gAe=o.defineComponent({__name:"ZoomSlider",props:hAe,emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=o.ref(),a=o.ref();function i(s){t("update:modelValue",Number.parseInt(s.target.value))}return o.onMounted(()=>{qe(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"mouseenter click",interactiveBorder:10})}),(s,A)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("div",{ref_key:"button",ref:r,class:"circle-button"},[o.createVNode(o.unref(ke),{icon:"search-plus",class:"zoom-button"})],512),o.createElementVNode("div",{ref_key:"slider",ref:a,class:"slider-wrapper"},[o.createElementVNode("input",{type:"range",min:"1",max:"10",class:"slider",value:n.modelValue,onInput:i},null,40,mAe)],512)]))}});const Z4=M(gAe,[["__scopeId","data-v-bb4c05e4"]]),vAe={cardProp:{type:Object,required:!1,default:void 0},cardCodeProp:{type:String,required:!1,default:void 0}},F1=e=>(o.pushScopeId("data-v-d4e75028"),e=e(),o.popScopeId(),e),yAe={class:"card-overview"},BAe={class:"full-art-wrapper"},wAe=["src"],bAe={class:"overview-top"},_Ae={class:"card-name"},CAe={class:"card-tags"},kAe={class:"card-tag"},EAe={class:"card-tag-text"},SAe={class:"card-tag"},xAe={class:"card-tag-text"},FAe={class:"card-tag"},IAe={class:"card-tag-text"},TAe={class:"card-tag"},UAe={class:"card-tag-text"},DAe=F1(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),QAe={class:"card-text"},LAe=F1(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),OAe={class:"keyword-description"},MAe={class:"keyword-name"},NAe=F1(()=>o.createElementVNode("hr",{class:"divider"},null,-1)),PAe={class:"flavor-text"},HAe=o.defineComponent({__name:"CardOverview",props:vAe,setup(e){const t=e,n=GA(t.cardProp,t.cardCodeProp,!0),r=o.ref(!1),a=o.computed(()=>{if(n.value===void 0)return[];const c=[];for(const u of n.value.keywordRefs){const d=ve().dataJson.keywords.find(f=>f.nameRef===u);d&&c.push(d)}return c}),i=o.computed(()=>{if(n.value===void 0)return null;const c=ve().dataJson;return mA(n.value.regionRefs[0])?c.runeterraChampions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]:c.regions.find(u=>u.nameRef===n.value.regionRefs[0])??c.regions[0]}),s=o.computed(()=>n.value===void 0?null:ve().dataJson.rarities.find(c=>c.nameRef===n.value.rarityRef)??ve().dataJson.rarities[0]),A=o.computed(()=>n.value===void 0?null:ve().dataJson.types.find(c=>c.nameRef===n.value.typeRef)??ve().dataJson.types[0]),l=o.computed(()=>n.value===void 0?null:ve().dataJson.sets.find(c=>c.nameRef===n.value.set)??ve().dataJson.sets[0]);return(c,u)=>{var d,f,p,h,g,B,m,v;return o.openBlock(),o.createElementBlock("div",yAe,[o.createVNode(o.unref(si),{"show-modal":r.value,"onUpdate:showModal":u[0]||(u[0]=w=>r.value=w)},{default:o.withCtx(()=>{var w;return[o.createElementVNode("div",BAe,[o.createElementVNode("img",{class:"full-art",src:o.unref(ge)().callbacks.cardImageCallback(((w=o.unref(n))==null?void 0:w.cardCode)??"01IO001",o.unref(gt).Full)},null,8,wAe)])]}),_:1},8,["show-modal"]),o.unref(n)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createElementVNode("div",bAe,[o.createElementVNode("div",_Ae,o.toDisplayString(o.unref(n).name),1),o.createElementVNode("button",{ref:"button",class:"circle-button",onClick:u[1]||(u[1]=w=>r.value=!0)},[o.createVNode(o.unref(ke),{icon:"image"})],512)]),o.createElementVNode("div",CAe,[o.createElementVNode("div",kAe,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((d=i.value)==null?void 0:d.icon)??""})`})},null,4),o.createElementVNode("div",EAe,o.toDisplayString((f=i.value)==null?void 0:f.name),1)]),o.createElementVNode("div",SAe,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((p=s.value)==null?void 0:p.icon)??""})`})},null,4),o.createElementVNode("div",xAe,o.toDisplayString((h=s.value)==null?void 0:h.name),1)]),o.createElementVNode("div",FAe,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((g=A.value)==null?void 0:g.icon)??""})`})},null,4),o.createElementVNode("div",IAe,o.toDisplayString((B=A.value)==null?void 0:B.name),1)]),o.createElementVNode("div",TAe,[o.createElementVNode("div",{class:"icon",style:o.normalizeStyle({content:`url(${((m=l.value)==null?void 0:m.icon)??""})`})},null,4),o.createElementVNode("div",UAe,o.toDisplayString((v=l.value)==null?void 0:v.name),1)])]),DAe,o.createElementVNode("div",QAe,o.toDisplayString(o.unref(n).descriptionRaw),1),LAe,(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(a.value,w=>(o.openBlock(),o.createElementBlock(o.Fragment,{key:w.nameRef},[o.createElementVNode("div",OAe,[o.createElementVNode("b",MAe,o.toDisplayString(w.name+" - "),1),o.createElementVNode("span",null,o.toDisplayString(w.description),1)]),NAe],64))),128)),o.createElementVNode("div",PAe,o.toDisplayString(o.unref(n).flavorText),1)],64)):o.createCommentVNode("",!0)])}}});const e3=M(HAe,[["__scopeId","data-v-d4e75028"]]),RAe={gameType:{type:String,required:!0,default:""},matches:{type:Number,required:!0,default:1},wins:{type:Number,required:!0,default:1}},VAe={class:"profile-game-type-winrate"},KAe={class:"game-type"},$Ae=o.defineComponent({__name:"ProfileGameTypeWinrate",props:RAe,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",VAe,[o.createElementVNode("div",KAe,o.toDisplayString(t.gameType),1),o.createVNode(m1,{matches:t.matches,wins:t.wins},null,8,["matches","wins"])]))}});const t3=M($Ae,[["__scopeId","data-v-1bb3c9de"]]),zAe={deckRows:{type:Array,required:!0,default:[]},loading:{type:Boolean,required:!1,default:!1}},WAe=o.defineComponent({__name:"DecksTable",props:zAe,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"deck",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.deck")},{id:"matches",isShown:!0,sortDirection:ye.DOWN,title:r("general.matches")},{id:"winrate",isShown:!0,sortDirection:ye.NEITHER,title:r("general.winrate")},{id:"manaCurve",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.manaCurve")},{id:"cost",isShown:!0,sortDirection:ye.NOT_SORTABLE,title:r("general.cost")}]);function i(s){const A=Gi(s,a);A&&t("sort-updated",A)}return(s,A)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,"heading-items":a.value,onToggleSort:i},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.deckRows,(l,c)=>(o.openBlock(),o.createBlock(El,o.mergeProps({key:l.deckCode},l,{index:c+2}),null,16,["index"]))),128))]),_:1},8,["loading","heading-items"]))}});const n3=M(WAe,[["__scopeId","data-v-c789c9b5"]]),GAe={deckCode:{type:String,required:!1,default:""}},jAe={deck:{type:Object,required:!0,default:{}},deckButtonsProps:{type:Object,required:!0,default:{deckCode:"",deckId:void 0,showButtons:void 0,archetypeRouterLink:void 0,deckBuilderRouterLink:"404",deckName:void 0,showUploaded:void 0,isPrivate:void 0}}},YAe={class:"deck-preview-wrapper"},qAe=o.defineComponent({__name:"ShowDeckPreviewButton",props:jAe,setup(e){const t=e,{t:n}=J(),r=o.ref(null),a=o.ref(!1);return o.onMounted(()=>{qe(r.value,{content:n("deck.showPreview"),arrow:!0})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",null,[o.createElementVNode("button",{ref_key:"button",ref:r,class:"circle-button",onClick:s[0]||(s[0]=A=>a.value=!0)},[o.createVNode(o.unref(ke),{icon:"camera"})],512),o.createVNode(si,{"show-modal":a.value,"onUpdate:showModal":s[1]||(s[1]=A=>a.value=A)},{default:o.withCtx(()=>[o.createElementVNode("div",YAe,[o.createVNode(o.unref(Gd),{deck:t.deck,"deck-buttons-props":t.deckButtonsProps},null,8,["deck","deck-buttons-props"])])]),_:1},8,["show-modal"])]))}});const XAe=M(qAe,[["__scopeId","data-v-90be9f81"]]),JAe={class:"cards-container no-scrollbar"},ZAe={key:0,class:"input-deck-code"},ele={class:"text"},tle=["placeholder"],nle={class:"bottom"},rle={class:"bottom-buttons"},r3=o.defineComponent({__name:"DeckBuilderSidePanel",props:GAe,emits:["update:card-quantity","input:deck-code","click:save"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.computed(()=>{if(n.deckCode===void 0)throw new Error("DeckCode must be defined");return Bt(n.deckCode)}),i=o.computed(()=>Zt(a.value)),s=o.computed(()=>({showButtons:{deleteDeck:!1,updateDeckPrivacy:!1,editDeckName:!1,gemsCost:!0,openArchetypePage:!1,simulateMulligan:!0,openInDeckBuilder:!1,copyDeckCode:!0,uploadDeckToLor:!0,shareDeck:!0},deckCode:n.deckCode,deckBuilderRouterLink:"404"}));function A(l){t("input:deck-code",l.target.value)}return(l,c)=>(o.openBlock(),o.createBlock(no,{"show-clear-all":!1},{default:o.withCtx(()=>[o.createVNode(o.unref(x1),{cards:i.value,deck:a.value},null,8,["cards","deck"]),(o.openBlock(),o.createBlock(o.unref(bl),{class:"mana-curve-chart",key:n.deckCode,"padding-top":0,"show-data-labels":!1,"data-labels-offset":0,"tooltips-enabled":!1,"display-x-scale":!0,deck:a.value},null,8,["deck"])),o.createElementVNode("div",JAe,[i.value.length===0?(o.openBlock(),o.createElementBlock("div",ZAe,[o.createElementVNode("div",ele,o.toDisplayString(o.unref(r)("deckBuilder.inputDeckCode")),1),o.createElementVNode("input",{onInput:A,placeholder:o.unref(r)("general.deckCode"),type:"text"},null,40,tle)])):o.createCommentVNode("",!0),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,u=>(o.openBlock(),o.createBlock(o.unref($t),{"onUpdate:cardQuantity":c[0]||(c[0]=d=>t("update:card-quantity",d)),key:u.cardCode,"card-prop":u,"maintain-aspect-ratio":!0,"quantity-number":a.value[u.cardCode],"show-plus-minus":!0,"router-link":o.unref(ge)().callbacks.cardCodeRouterLinkCallback(u.cardCode),class:"card-slice-item"},null,8,["card-prop","quantity-number","router-link"]))),128))]),o.createElementVNode("div",nle,[o.createElementVNode("div",rle,[o.createVNode(o.unref(Ld),{deck:a.value},null,8,["deck"]),o.createVNode(o.unref(Qd),{"deck-code":n.deckCode},null,8,["deck-code"]),o.createVNode(XAe,{deck:a.value,"deck-buttons-props":s.value},null,8,["deck","deck-buttons-props"]),o.createVNode(o.unref(Od),{"deck-code":n.deckCode,"deck-name":o.unref(Yh)(n.deckCode)},null,8,["deck-code","deck-name"])]),o.createElementVNode("div",{class:"fancy-button",onClick:c[1]||(c[1]=u=>t("click:save"))},o.toDisplayString(o.unref(r)("general.save")),1)])]),_:1}))}});const ale={data:{type:Array,required:!0,default:[]},backgroundColor:{type:String,required:!1,default:"#000000"}},a3=o.defineComponent({__name:"RegionDistributionChart",props:ale,setup(e){const t=e,n=o.ref(null);Oe.register(...Sr);const r=o.computed(()=>({labels:t.data.map(i=>i.region),datasets:[{data:t.data.map(i=>i.matches),backgroundColor:t.data.map(i=>N2(i.region))}]})),a={cutout:"80%",elements:{arc:{borderWidth:3,borderColor:t.backgroundColor}},plugins:{legend:{display:!0,position:"right",labels:{usePointStyle:!0,generateLabels(i){const s=[],A=i.data.labels;for(let l=0;l<i.data.labels.length;l++)s.push({text:`${Gh(A[l])} (${i.data.datasets[0].data[l]})`,borderRadius:999,datasetIndex:0,index:l,fontColor:Wa("--color-0"),fillStyle:i.data.datasets[0].backgroundColor[l]});return s}}},datalabels:{display:!1}}};return(i,s)=>(o.openBlock(),o.createBlock(o.unref(hd),{ref_key:"chart",ref:n,"chart-data":r.value,options:a},null,8,["chart-data"]))}}),ile={class:"circle-button"},sle=o.defineComponent({__name:"DeckButtonsDropdown",props:gk,emits:["click:share","click:edit-name","click:update-privacy","click:delete"],setup(e,{emit:t}){const n=e,r=o.ref(null),a=o.ref(null);return o.onMounted(()=>{qe(r.value,{content:a.value,arrow:!0,interactive:!0,trigger:"click",duration:0})}),(i,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"containerDiv",ref:r,class:"deck-buttons-dropdown"},[o.createElementVNode("div",ile,[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-chevron-down"})]),o.createElementVNode("div",{ref_key:"tippyDiv",ref:a,class:"tippy-div"},[o.createVNode(o.unref(Ao),o.mergeProps({class:"deck-buttons","onClick:delete":s[0]||(s[0]=A=>t("click:delete")),"onClick:editName":s[1]||(s[1]=A=>t("click:edit-name")),"onClick:share":s[2]||(s[2]=A=>t("click:share")),"onClick:updatePrivacy":s[3]||(s[3]=A=>t("click:update-privacy"))},n),null,16)],512)],512))}});const I1=M(sle,[["__scopeId","data-v-79fac15d"]]),ole={value:{type:Number,required:!0,default:1},max:{type:Number,required:!0,default:2}},i3=o.defineComponent({__name:"SimpleDoughnutChart",props:ole,setup(e){const t=e,n=o.ref(null);Oe.register(...Sr);const r=o.computed(()=>({labels:["Value","Max"],datasets:[{data:[t.value,t.max-t.value],backgroundColor:[Wa("--color-good"),"transparent"]}]})),a={cutout:"80%",elements:{arc:{borderWidth:0}},plugins:{legend:{display:!1}}},i=[{id:"text",beforeDraw:function(s){const A=s.chartArea.width,l=s.chartArea.height,c=s.ctx;c.restore();const u=(l/100).toFixed(2);c.font=`bold ${u}em sans-serif`,c.textBaseline="middle";const f=s.data.datasets[0].data[0].toFixed(2),p=Math.round((A-c.measureText(f).width)/2),h=l/2;c.fillStyle=Wa("--color-good"),c.fillText(f,p,h),c.save()}}];return(s,A)=>(o.openBlock(),o.createBlock(o.unref(hd),{ref_key:"chart",ref:n,"chart-data":r.value,options:a,plugins:i},null,8,["chart-data"]))}}),Ale={items:{type:Array,required:!0,default:()=>[]}},lle={stage:{type:String,required:!0,default:"Registration"},start:{type:Date,required:!0,default:new Date},end:{type:Date,required:!0,default:new Date}},cle=e=>(o.pushScopeId("data-v-c7b963cb"),e=e(),o.popScopeId(),e),ule=cle(()=>o.createElementVNode("div",{class:"progress-circle"},null,-1)),dle={class:"content"},fle={class:"heading"},ple={class:"title"},hle={class:"date"},mle={class:"description"},gle={key:0,class:"participants"},vle=o.defineComponent({__name:"TournamentTimelineItem",props:lle,setup(e){const t=e,n=o.computed(()=>t.stage),r=o.computed(()=>"This is a longer dscription of the tournament. Testing how it looks like."),a=o.computed(()=>t.start<new Date&&t.end>new Date),i=o.computed(()=>t.start>new Date?t.start:t.end);return(s,A)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-timeline-item",a.value?"active":"inactive"])},[ule,o.createElementVNode("div",dle,[o.createElementVNode("div",fle,[o.createElementVNode("div",ple,o.toDisplayString(n.value),1),o.createElementVNode("div",hle,o.toDisplayString(i.value.toLocaleDateString()),1)]),o.createElementVNode("div",mle,o.toDisplayString(r.value),1),t.players?(o.openBlock(),o.createElementBlock("div",gle)):o.createCommentVNode("",!0)])],2))}});const yle=M(vle,[["__scopeId","data-v-c7b963cb"]]),Ble={class:"tournament-timeline no-scrollbar"},wle=o.defineComponent({__name:"TournamentTimeline",props:Ale,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",Ble,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.items,a=>(o.openBlock(),o.createBlock(yle,{stage:a.stage,start:a.start,end:a.end,players:a.players},null,8,["stage","start","end","players"]))),256))]))}});const s3=M(wle,[["__scopeId","data-v-33c531d9"]]),ble={players:{type:Array,required:!0,default:[]},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}},loading:{type:Boolean,required:!1,default:!1}},_le={routerLink:{type:Object,required:!0,default:{path:"/404"}},index:{type:Number,required:!0,default:0},id:{type:Number,required:!0,default:0},name:{type:String,required:!0,default:""},rank:{type:Number,required:!0,default:0},gameWins:{type:Number,required:!0,default:0},gameLosses:{type:Number,required:!0,default:0},matchWins:{type:Number,required:!0,default:0},matchLosses:{type:Number,required:!0,default:0},opponentsMatchWinrate:{type:Number,required:!0,default:0},opponentsGameWinrate:{type:Number,required:!0,default:0},decks:{type:Array,required:!0,default:[]},selectedBannerCard:{type:[String,null],required:!0,default:""},selectedBannerColor:{type:[String,null],required:!1,default:""},shownColumns:{type:Object,required:!0,default:{player:!0,lp:!0,change:!0,wins:!0,matches:!0,winrate:!0,deck:!0}}},Cle={results:{type:Object,required:!0,default:{type:"single",isVictory:null}},deckCode:{type:String,required:!0,default:""}},kle={class:"tournament-deck-result"},Ele={key:0,class:"results"},Sle={class:"good"},xle={class:"bad"},Fle=o.defineComponent({__name:"TournamentDeckResult",props:Cle,setup(e){const t=e,n=o.computed(()=>t.results.type==="multiple"?"":t.results.isBanned?"ban":t.results.isVictory===null?"":t.results.isVictory===!1?"times":"check"),r=o.computed(()=>n.value==="check");return(a,i)=>(o.openBlock(),o.createElementBlock("div",kle,[o.createVNode(la,{"deck-code":t.deckCode,"show-eye":t.results.type==="multiple",class:"deck-highlight"},null,8,["deck-code","show-eye"]),t.results.type==="multiple"?(o.openBlock(),o.createElementBlock("div",Ele,[o.createElementVNode("span",Sle,o.toDisplayString(t.results.wins),1),o.createTextVNode(" - "),o.createElementVNode("span",xle,o.toDisplayString(t.results.losses),1),o.createTextVNode(" - "),o.createElementVNode("span",null,o.toDisplayString(t.results.bans),1)])):n.value.length>0?(o.openBlock(),o.createBlock(o.unref(ke),{key:1,class:o.normalizeClass(["icon",r.value?"good":"bad"]),icon:n.value},null,8,["icon","class"])):o.createCommentVNode("",!0)]))}});const zh=M(Fle,[["__scopeId","data-v-f221ffb4"]]),Ile={class:"tournament-player-additional-data-wrapper"},Tle={class:"tournament-player-additional-data-content-top"},Ule={class:"winrate-wrapper"},Dle={class:"winrate-wrapper"},Qle={class:"winrate-wrapper"},Lle={class:"tournament-player-additional-data-content-bottom"},Ole={class:"row tournament-player-row-background-wrapper"},Mle={class:"tournament-player-row-background"},Nle={class:"row tournament-player-row wrapper"},Ple={class:"column-content"},Hle={class:"column-content"},Rle=o.defineComponent({__name:"TournamentPlayerRow",props:_le,setup(e){const t=e,n=o.ref(null),r=o.ref(0),a=o.ref(!1),i=o.computed(()=>t.selectedBannerCard?["",ge().callbacks.cardImageCallback(t.selectedBannerCard,gt.Banner)]:[]);return o.onMounted(()=>{n.value&&(r.value=n.value.clientHeight)}),(s,A)=>{const l=o.resolveComponent("RouterLink");return o.openBlock(),o.createBlock(l,{to:t.routerLink,class:"wrapper"},{default:o.withCtx(()=>[o.createElementVNode("div",{class:o.normalizeClass(["tournament-player-row-wrapper wrapper",{expanded:a.value}]),style:o.normalizeStyle({"--index":t.index})},[o.createElementVNode("div",{class:"row tournament-player-additional-data-row",style:o.normalizeStyle({"--height":r.value+"px"}),onClick:A[0]||(A[0]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createElementVNode("div",Ile,[o.createElementVNode("div",{class:"tournament-player-additional-data-content",ref_key:"additionalDataContent",ref:n},[o.createElementVNode("div",Tle,[o.createVNode(hA,{heading:"Opponents' Match Winrate"},{default:o.withCtx(()=>[o.createElementVNode("div",Ule,o.toDisplayString(o.unref(Ce)(t.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1}),o.createVNode(hA,{heading:"Game Winrate"},{default:o.withCtx(()=>[o.createElementVNode("div",Dle,o.toDisplayString(o.unref(Ce)(t.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1}),o.createVNode(hA,{heading:"Opponents' Game Winrate"},{default:o.withCtx(()=>[o.createElementVNode("div",Qle,o.toDisplayString(o.unref(Ce)(t.opponentsMatchWinrate*100,1,3)+"%"),1)]),_:1})]),o.createElementVNode("div",Lle,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.decks,c=>(o.openBlock(),o.createBlock(zh,{key:c.deckCode,"deck-code":c.deckCode,results:{type:"multiple",wins:c.wins,losses:c.losses,bans:c.bans}},null,8,["deck-code","results"]))),128))])],512)])],4),o.createElementVNode("div",Ole,[o.createElementVNode("div",Mle,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,c=>(o.openBlock(),o.createElementBlock("div",{key:c,class:"background-card",style:o.normalizeStyle({"--background-image":`url(${c})`})},null,4))),128))])]),o.createElementVNode("div",Nle,[t.shownColumns.player?(o.openBlock(),o.createElementBlock("div",{key:0,class:"column-content card-wrapper",onClick:A[1]||(A[1]=o.withModifiers(()=>{},["stop","prevent"]))},[o.createVNode($t,{class:"card-slice-item","card-code-prop":t.selectedBannerCard??void 0,color:t.selectedBannerColor??"var(--color-background-2-rgb)","ignore-card-item":!0,"mana-number":t.rank,name:t.name,"maintain-aspect-ratio":!1,"router-link":t.routerLink},null,8,["card-code-prop","color","mana-number","name","router-link"])])):o.createCommentVNode("",!0),o.createElementVNode("div",Ple,o.toDisplayString(t.matchWins)+" - "+o.toDisplayString(t.matchLosses),1),o.createElementVNode("div",Hle,o.toDisplayString(t.gameWins)+" - "+o.toDisplayString(t.gameLosses),1),o.createElementVNode("div",{class:"column-content",style:o.normalizeStyle({color:`var(${o.unref($n)(t.matchWins/(t.matchWins+t.matchLosses))})`})},o.toDisplayString(o.unref(Ce)(t.matchWins/(t.matchWins+t.matchLosses)*100,1,3)+"%"),5),o.createElementVNode("div",{class:"column-content options-button",onClick:A[2]||(A[2]=o.withModifiers(c=>a.value=!a.value,["stop","prevent"]))},[o.createVNode(o.unref(ke),{class:"icon",icon:"fa-chevron-down"})])])],6)]),_:1},8,["to"])}}});const Vle=M(Rle,[["__scopeId","data-v-64929340"]]),Kle=o.defineComponent({__name:"TournamentPlayerTable",props:ble,emits:["sort-updated"],setup(e,{emit:t}){const n=e,{t:r}=J(),a=o.ref([{id:"player",isShown:n.shownColumns.player,sortDirection:ye.UP,title:r("general.player")},{id:"matchWLs",isShown:n.shownColumns.lp,sortDirection:ye.NEITHER,title:r("general.matchRecord")},{id:"gameWLs",isShown:n.shownColumns.change,sortDirection:ye.NEITHER,title:r("general.gameRecord")},{id:"winrate",isShown:n.shownColumns.winrate,sortDirection:ye.NEITHER,title:r("general.winrate")}]),i=o.computed(()=>({"--columns":a.value.filter(A=>A.isShown).length}));function s(A){const l=Gi(A,a);l&&t("sort-updated",l)}return(A,l)=>(o.openBlock(),o.createBlock(da,{class:"large-table",loading:n.loading,style:o.normalizeStyle(i.value),"heading-items":a.value,onToggleSort:s},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.players,(c,u)=>(o.openBlock(),o.createBlock(Vle,o.mergeProps({key:`${c.rank}${c.name}${c.id}`},c,{index:u+2,"router-link":o.unref(ge)().callbacks.playerIdRouterLinkCallback(c.id)}),null,16,["index","router-link"]))),128))]),_:1},8,["loading","style","heading-items"]))}});const o3=M(Kle,[["__scopeId","data-v-a40d0d35"]]),$le={selectedRound:{type:Number,required:!0,default:1},numRounds:{type:Number,required:!0,default:1}},zle={class:"swiss-round-options"},Wle=["onClick"],Gle=o.defineComponent({__name:"TournamentSwissRoundOptions",props:$le,emits:["update:selectedRound"],setup(e,{emit:t}){const n=e;return(r,a)=>(o.openBlock(),o.createElementBlock("div",zle,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.numRounds,i=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["swiss-round-option",i===n.selectedRound?"selected":""]),onClick:s=>t("update:selectedRound",i)},o.toDisplayString(i),11,Wle))),256))]))}});const A3=M(Gle,[["__scopeId","data-v-578f487f"]]),jle={player:{type:[Object,null],required:!0,default:null},isHorizontal:{type:Boolean,required:!0,default:!1},resultToShow:{type:[Number,null],required:!0,default:null},results:{type:Array,required:!0,default:[]},decks:{type:Array,required:!0,default:[]},showTippy:{type:Boolean,required:!1,default:!1},placement:{type:String,required:!0,default:"top"},isVictory:{type:Boolean,required:!0,default:!1}},Yle={class:"results"},qle=["onMouseenter","result-index"],Xle=["result-index"],Jle=o.defineComponent({__name:"TournamentPlayer",props:jle,emits:["update:result-to-show"],setup(e,{emit:t}){const n=e,r=o.ref(null),a=o.ref(null),i=o.ref(null),s=o.ref([]),A=o.ref(null),l=o.ref(null);function c(f){t("update:result-to-show",f)}o.onMounted(()=>{console.log(A.value),u()}),o.watch([()=>n.showTippy,()=>n.resultToShow],()=>{d()});function u(){if(!(a.value===null||i.value===null)&&(r.value=qe(i.value,{content:a.value,placement:n.placement==="top"?"top-start":n.isHorizontal?"bottom-end":"bottom-start",arrow:!0,duration:0,trigger:"manual",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:n.isHorizontal?[n.placement==="top"?"bottom-end":"bottom-start",n.placement==="top"?"top-end":"top-start",n.placement==="top"?"bottom-start":"bottom-end",n.placement==="top"?"top-start":"top-end"]:[n.placement==="top"?"right":"left",n.placement==="top"?"left":"right"]}}]}}),!(A.value===null||l.value===null)))for(const f of A.value){const p=f.getAttribute("result-index");console.log(p);const h=l.value.find(g=>g.getAttribute("result-index")===p);console.log(h),h&&s.value.push(qe(h,{content:f,placement:n.placement,arrow:!0,duration:0,trigger:"manual",popperOptions:{modifiers:[{name:"flip",options:{fallbackPlacements:n.isHorizontal?[n.placement==="top"?"bottom-end":"bottom-start",n.placement==="top"?"top-end":"top-start",n.placement==="top"?"bottom-start":"bottom-end",n.placement==="top"?"top-start":"top-end"]:[n.placement==="top"?"right":"left",n.placement==="top"?"left":"right"]}}]}}))}}function d(){var f,p;if((f=r.value)==null||f.hide(),s.value.forEach(h=>{h.hide()}),!!n.showTippy){if(n.resultToShow===null){(p=r.value)==null||p.show();return}s.value.forEach((h,g)=>{g===n.resultToShow&&h.show()})}}return(f,p)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-player",[n.showTippy?"show-results":null,n.isHorizontal?"horizontal":"vertical",n.placement]]),ref_key:"tournamentPlayer",ref:i},[n.player?(o.openBlock(),o.createBlock($t,{key:0,class:"card-slice-item","card-code-prop":n.player.cardCodeProp,name:n.player.name,color:n.player.color??null,"router-link":n.player.routerLink,"ignore-card-item":!0,"maintain-aspect-ratio":!1,"mana-number":null,"show-plus-minus":!1,onMouseenter:p[0]||(p[0]=()=>c(null))},null,8,["card-code-prop","name","color","router-link"])):(o.openBlock(),o.createBlock($t,{key:1,class:"card-slice-item",name:"",color:null,"router-link":"","ignore-card-item":!0,"maintain-aspect-ratio":!1,"mana-number":null,"show-plus-minus":!1})),o.createElementVNode("div",Yle,[o.withDirectives(o.createElementVNode("div",{class:o.normalizeClass(["result",n.isVictory?"win":"loss"])},o.toDisplayString(n.results.filter(h=>h.isVictory).length),3),[[o.vShow,!n.showTippy]]),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.results,(h,g)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["result",h.isVictory?"win":"loss"]),onMouseenter:()=>c(g),ref_for:!0,ref_key:"results",ref:l,"result-index":g},o.toDisplayString(h.isVictory?1:0),43,qle)),[[o.vShow,n.showTippy]])),256)),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(n.results,(h,g)=>(o.openBlock(),o.createElementBlock("div",{class:"result-tippy","result-index":g,ref_for:!0,ref_key:"resultTippyContents",ref:A},[o.createVNode(zh,{"deck-code":h.deckCode,results:{type:"single",isVictory:h.isVictory}},null,8,["deck-code","results"])],8,Xle))),256))]),o.createElementVNode("div",{class:"main-tippy",ref_key:"mainTippyContent",ref:a},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(f.decks,h=>(o.openBlock(),o.createBlock(zh,{"deck-code":h.deckCode,results:{type:"single",isVictory:h.isVictory,isBanned:h.isBanned}},null,8,["deck-code","results"]))),256))],512)],2))}});const D2=M(Jle,[["__scopeId","data-v-fdcce3df"]]),Zle={isHorizontal:{type:Boolean,required:!0,default:!1},playerTop:{type:[Object,null],required:!0,default:null},playerBottom:{type:[Object,null],required:!0,default:null}},ece=o.defineComponent({__name:"TournamentMatchup",props:Zle,setup(e){const t=e,n=o.ref(null),r=o.ref(!1);function a(){r.value=!1,n.value=null}return(i,s)=>{var A,l,c,u,d,f,p,h;return o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["tournament-matchup",t.isHorizontal?"horizontal":"vertical"]),onMouseenter:s[2]||(s[2]=g=>r.value=!0),onMouseleave:a},[o.createVNode(D2,{"result-to-show":n.value,"onUpdate:resultToShow":s[0]||(s[0]=g=>n.value=g),player:((A=t.playerTop)==null?void 0:A.player)??null,decks:((l=t.playerTop)==null?void 0:l.decks)??[],results:((c=t.playerTop)==null?void 0:c.results)??[],"is-victory":((u=t.playerTop)==null?void 0:u.isVictory)??!1,"show-tippy":r.value,placement:"top","is-horizontal":t.isHorizontal},null,8,["result-to-show","player","decks","results","is-victory","show-tippy","is-horizontal"]),o.createVNode(D2,{"result-to-show":n.value,"onUpdate:resultToShow":s[1]||(s[1]=g=>n.value=g),player:((d=t.playerBottom)==null?void 0:d.player)??null,decks:((f=t.playerBottom)==null?void 0:f.decks)??[],results:((p=t.playerBottom)==null?void 0:p.results)??[],"is-victory":((h=t.playerBottom)==null?void 0:h.isVictory)??!1,"show-tippy":r.value,placement:"bottom","is-horizontal":t.isHorizontal},null,8,["result-to-show","player","decks","results","is-victory","show-tippy","is-horizontal"])],34)}}});const tce=M(ece,[["__scopeId","data-v-12be40db"]]),nce={matches:{type:Array,required:!0,default:()=>[]}},rce={class:"swiss-round"},ace={key:1,class:"empty"},ice=o.defineComponent({__name:"TournamentSwissRound",props:nce,setup(e){const t=e;return(n,r)=>(o.openBlock(),o.createElementBlock("div",rce,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.matches,a=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[a?(o.openBlock(),o.createBlock(tce,{key:0,class:"matchup","player-top":a.playerTop,"player-bottom":a.playerBottom,"is-horizontal":!0},null,8,["player-top","player-bottom"])):(o.openBlock(),o.createElementBlock("div",ace))],64))),256))]))}});const l3=M(ice,[["__scopeId","data-v-815dfc70"]]),sce={install:async e=>{e.component("RevealCarousel",vm),e.component("SearchBar",td),e.component("SocialLinks",xm),e.component("ModalItem",si),e.component("FilterSampleSize",eo),e.component("FilterRanks",kb),e.component("FilterManaCost",Fm),e.component("FilterRarities",Im),e.component("FilterSets",Tm),e.component("FilterKeywords",Um),e.component("FilterServers",to),e.component("FilterTime",Wi),e.component("FilterCardCodes",rd),e.component("FilterDecks",Eb),e.component("FilterProfile",Sb),e.component("FilterText",IA),e.component("FilterAdvanced",Lm),e.component("FilterRegions",tl),e.component("FilterCards",xb),e.component("AdvancedFilterItem",Qm),e.component("FilterTypes",Om),e.component("RegionsLine",Mm),e.component("CardsTable",Fb),e.component("DeckHighlightRegions",il),e.component("GemsCost",Rm),e.component("CardSliceItem",$t),e.component("LanguageSelection",TA),e.component("DeckSidePanel",mk),e.component("DeckHighlight",la),e.component("ArchetypeSidePanel",w4),e.component("OpenInDeckBuilderButton",zg),e.component("CopyDeckButton",Qd),e.component("UpdateDeckPrivacyButton",Gg),e.component("EditDeckNameButton",Kg),e.component("UploadDeckToLorButton",Od),e.component("DeleteDeckButton",Vg),e.component("OpenArchetypePageButton",$g),e.component("SimulateMulliganButton",Ld),e.component("DecksRow",El),e.component("CardItemLinkWrapper",Yd),e.component("DeckHighlightCards",sl),e.component("CheckboxItem",qt),e.component("NavigationTopDesktop",s1),e.component("SidePanelSectionPane",dt),e.component("CardSimilarCards",b4),e.component("DashboardSignUp",C4),e.component("MatchItem",k4),e.component("ToggleSwitch",nd),e.component("LeaderboardTop10Region",o1),e.component("ShareButton",Yg),e.component("LeaderboardDetailRow",A1),e.component("DeckBlock",E4),e.component("SmallTable",ts),e.component("LeaderboardTop",S4),e.component("CardLottery",x4),e.component("DashboardProfile",F4),e.component("LeaderboardChart",I4),e.component("CardQuantityBarChart",T4),e.component("WinsLossesBarChart",U4),e.component("RoundCardInfoBarChart",D4),e.component("LineChart",Q4),e.component("ManaCurveChart",bl),e.component("WinrateDoughnutChart",f1),e.component("InfoDoughnutChart",Cu),e.component("BuiltDecksTable",L4),e.component("ProfileRegionTable",O4),e.component("ProfileArchetypeTable",M4),e.component("CardItem3d",d1),e.component("LeaderboardOptions",N4),e.component("SimilarDecksTable",P4),e.component("LargeTable",da),e.component("StatisticsPaneContainer",hA),e.component("ArchetypeSidePanelHighlight",id),e.component("CardCarousel",H4),e.component("DeckButtons",Ao),e.component("WinsLossesLine",m1),e.component("DashboardCardRow",g1),e.component("CardTogglePage",R4),e.component("TestComponent",V4),e.component("DashboardLeaderboardRow",v1),e.component("DeckPreview",Gd),e.component("CheckboxItemManaCost",du),e.component("RevealDayOptions",K4),e.component("DeckDifferenceItem",r1),e.component("DashboardNewCards",$4),e.component("CardsRow",Nm),e.component("LeaderboardDetailTable",z4),e.component("DeckIcon",W4),e.component("LogoIcon",Js),e.component("FollowerIcon",B1),e.component("ChampionIcon",w1),e.component("EternalIcon",l1),e.component("InfoIcon",i1),e.component("LandmarkIcon",b1),e.component("ManaHexagonIcon",el),e.component("RuneterraIcon",jg),e.component("ShardsIcon",Hm),e.component("StandardIcon",c1),e.component("SpellIcon",_1),e.component("GauntletIcon",u1),e.component("EquipmentIcon",C1),e.component("NavigationTop",G4),e.component("CardMultiselect",Dm),e.component("ProfileDropdown",j4),e.component("ColorPicker",Y4),e.component("DashboardLeaderboardTable",q4),e.component("NavigationSide",k1),e.component("ArchetypesTable",X4),e.component("DeckBuilderSummary",x1),e.component("DeckBuilderSummaryType",xa),e.component("DashboardCardTable",J4),e.component("ArchetypesRow",S1),e.component("RevealDayOption",y1),e.component("DeckHighlightEye",jd),e.component("DeckDifferences",a1),e.component("ZoomSlider",Z4),e.component("CardOverview",e3),e.component("CircleCardItem",fa),e.component("ProfileGameTypeWinrate",t3),e.component("DecksTable",n3),e.component("RegionItem",al),e.component("TippyText",ad),e.component("ProfileRegionRow",p1),e.component("SimulateMulligan",Wg),e.component("DeckSummary",Dd),e.component("NavigationTopMobile",E1),e.component("CardItem",Pi),e.component("ProfileArchetypeRow",h1),e.component("DeckBuilderSidePanel",r3),e.component("SimpleDoughnutChart",i3),e.component("RegionDistributionChart",a3),e.component("DeckButtonsDropdown",I1),e.component("Spinner",Pm),e.component("ToastContainer",Q2),e.component("TournamentTimeline",s3),e.component("TournamentPlayerTable",o3),e.component("TournamentSwissRoundOptions",A3),e.component("TournamentSwissRound",l3),e.component("FontAwesomeIcon",ke),e.component("Multiselect",Wt)}};exports.AdvancedFilterItem=Qm;exports.ArchetypeSidePanel=w4;exports.ArchetypeSidePanelHighlight=id;exports.ArchetypesRow=S1;exports.ArchetypesTable=X4;exports.BuiltDecksTable=L4;exports.CardCarousel=H4;exports.CardImageType=gt;exports.CardItem=Pi;exports.CardItem3d=d1;exports.CardItemLinkWrapper=Yd;exports.CardLottery=x4;exports.CardMultiselect=Dm;exports.CardOverview=e3;exports.CardQuantityBarChart=T4;exports.CardSimilarCards=b4;exports.CardSliceItem=$t;exports.CardTogglePage=R4;exports.CardsRow=Nm;exports.CardsTable=Fb;exports.ChampionIcon=w1;exports.CheckboxItem=qt;exports.CheckboxItemManaCost=du;exports.CircleCardItem=fa;exports.ColorPicker=Y4;exports.CopyDeckButton=Qd;exports.DashboardCardRow=g1;exports.DashboardCardTable=J4;exports.DashboardLeaderboardRow=v1;exports.DashboardLeaderboardTable=q4;exports.DashboardNewCards=$4;exports.DashboardProfile=F4;exports.DashboardSignUp=C4;exports.DeckBlock=E4;exports.DeckBuilderSidePanel=r3;exports.DeckBuilderSummary=x1;exports.DeckBuilderSummaryType=xa;exports.DeckButtons=Ao;exports.DeckButtonsDropdown=I1;exports.DeckDifferenceItem=r1;exports.DeckDifferences=a1;exports.DeckHighlight=la;exports.DeckHighlightCards=sl;exports.DeckHighlightEye=jd;exports.DeckHighlightRegions=il;exports.DeckIcon=W4;exports.DeckPreview=Gd;exports.DeckSidePanel=mk;exports.DeckSummary=Dd;exports.DecksRow=El;exports.DecksTable=n3;exports.DeleteDeckButton=Vg;exports.EditDeckNameButton=Kg;exports.EquipmentIcon=C1;exports.EternalIcon=l1;exports.FilterAdvanced=Lm;exports.FilterCardCodes=rd;exports.FilterCards=xb;exports.FilterDecks=Eb;exports.FilterKeywords=Um;exports.FilterManaCost=Fm;exports.FilterProfile=Sb;exports.FilterRanks=kb;exports.FilterRarities=Im;exports.FilterRegions=tl;exports.FilterSampleSize=eo;exports.FilterServers=to;exports.FilterSets=Tm;exports.FilterText=IA;exports.FilterTime=Wi;exports.FilterTypes=Om;exports.FollowerIcon=B1;exports.GauntletIcon=u1;exports.GemsCost=Rm;exports.InfoDoughnutChart=Cu;exports.InfoIcon=i1;exports.LandmarkIcon=b1;exports.LanguageSelection=TA;exports.LargeTable=da;exports.LeaderboardChart=I4;exports.LeaderboardDetailRow=A1;exports.LeaderboardDetailTable=z4;exports.LeaderboardOptions=N4;exports.LeaderboardTop=S4;exports.LeaderboardTop10Region=o1;exports.LineChart=Q4;exports.LogoIcon=Js;exports.ManaCurveChart=bl;exports.ManaHexagonIcon=el;exports.MatchItem=k4;exports.ModalItem=si;exports.NavigationSide=k1;exports.NavigationTop=G4;exports.NavigationTopDesktop=s1;exports.NavigationTopMobile=E1;exports.OpenArchetypePageButton=$g;exports.OpenInDeckBuilderButton=zg;exports.ProfileArchetypeRow=h1;exports.ProfileArchetypeTable=M4;exports.ProfileDropdown=j4;exports.ProfileGameTypeWinrate=t3;exports.ProfileRegionRow=p1;exports.ProfileRegionTable=O4;exports.RegionDistributionChart=a3;exports.RegionItem=al;exports.RegionsLine=Mm;exports.RevealCarousel=vm;exports.RevealDayOption=y1;exports.RevealDayOptions=K4;exports.RoundCardInfoBarChart=D4;exports.RuneterraIcon=jg;exports.SearchBar=td;exports.ShardsIcon=Hm;exports.ShareButton=Yg;exports.SidePanelSectionPane=dt;exports.SimilarDecksTable=P4;exports.SimpleDoughnutChart=i3;exports.SimulateMulligan=Wg;exports.SimulateMulliganButton=Ld;exports.SmallTable=ts;exports.SocialLinks=xm;exports.SpellIcon=_1;exports.Spinner=Pm;exports.StandardIcon=c1;exports.StatisticsPaneContainer=hA;exports.TestComponent=V4;exports.TippyText=ad;exports.ToastContainer=Q2;exports.ToggleSwitch=nd;exports.TournamentPlayerTable=o3;exports.TournamentSwissRound=l3;exports.TournamentSwissRoundOptions=A3;exports.TournamentTimeline=s3;exports.UpdateDeckPrivacyButton=Gg;exports.UploadDeckToLorButton=Od;exports.WinrateDoughnutChart=f1;exports.WinsLossesBarChart=U4;exports.WinsLossesLine=m1;exports.ZoomSlider=Z4;exports.default=sce;exports.getCardsFromDeck=Zt;exports.getDate=D3;exports.getDeckObjectFromCode=Bt;exports.getMostImportantCards=na;exports.getRegionNameOfRegionRef=Gh;exports.getRegions=WA;exports.importIcons=$8;exports.keyDayjs=ri;exports.regionOfCard=jh;exports.setupi18n=qS;exports.useAcquiredCardsStore=Vu;exports.useCallbacksStore=ge;exports.useCardJsonObjectStore=on;exports.useCardJsonStore=Rw;exports.useDataJsonStore=ve;exports.useFilterStore=z8;exports.useSearchBarOptionsStore=Hw;exports.useToastsStore=Ap;exports.useUserStore=Kt;
|