@mjsz-vbr-elements/core 2.4.0 → 2.4.1

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.
@@ -1,12 +1,12 @@
1
1
  /**
2
2
  * name: @mjsz-vbr-elements/core
3
- * version: v2.4.0 - 06/06/2024, 12:35:58
3
+ * version: v2.4.1 - 10/08/2024, 13:04:40
4
4
  * (c) 2024
5
5
  * description: Data visualization for MJSZ VBR
6
6
  * author: Ákos Stegner <akos.stegner@gmail.com>
7
7
  */
8
- var MjszVbrElementsCore=function(b,r){"use strict";function $r(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function Ke(t){return typeof t=="function"?t():r.unref(t)}const Dr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Cr=t=>t!=null,de=()=>{};function fe(t){var e;const n=Ke(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Mr=Dr?window:void 0;function Lr(){const t=r.ref(!1);return r.getCurrentInstance()&&r.onMounted(()=>{t.value=!0}),t}function Br(t){const e=Lr();return r.computed(()=>(e.value,!!t()))}function Ir(t,e,n={}){const{root:o,rootMargin:a="0px",threshold:s=.1,window:i=Mr,immediate:l=!0}=n,c=Br(()=>i&&"IntersectionObserver"in i),u=r.computed(()=>{const f=Ke(t);return(Array.isArray(f)?f:[f]).map(fe).filter(Cr)});let d=de;const m=r.ref(l),p=c.value?r.watch(()=>[u.value,fe(o),m.value],([f,h])=>{if(d(),!m.value||!f.length)return;const y=new IntersectionObserver(e,{root:fe(h),rootMargin:a,threshold:s});f.forEach(S=>S&&y.observe(S)),d=()=>{y.disconnect(),d=de}},{immediate:l,flush:"post"}):de,g=()=>{d(),p(),m.value=!1};return $r(g),{isSupported:c,isActive:m,pause(){d(),m.value=!1},resume(){m.value=!0},stop:g}}const Rr=r.defineComponent({name:"FetchMoreObserver",props:["as","options"],emits:["intersect"],setup(t,{slots:e,emit:n}){const o=r.ref(null),{stop:a}=Ir(o,([{isIntersecting:s}])=>{s&&n("intersect")},t.options);return r.onUnmounted(a),()=>{if(e.default)return r.h(t.as||"div",{ref:o},e.default())}}});var Vr={VITE_VBR_API_URL:"https://api.icehockey.hu/vbr",VITE_VBR_API_KEY:"",VITE_USER_NODE_ENV:"production",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const ct=t=>(Vr.VITE_CSS_CLASS_PREFIX||"mjsz-vbr-")+t,qe={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,a=ct("base-input"),s=r.computed({get:()=>n.modelValue,set:i=>o("update:modelValue",i)});return(i,l)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:r.normalizeClass([r.unref(a),"is-select"])},[r.renderSlot(i.$slots,"default")],2)),[[r.vModelSelect,s.value]])}};function Ze(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function at(t){return typeof t=="function"?t():r.unref(t)}const Wt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const zr=Object.prototype.toString,Gr=t=>zr.call(t)==="[object Object]",tt=()=>{},Fr=jr();function jr(){var t,e;return Wt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Yr(t,e){function n(...o){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(a).catch(s)})}return n}const Xe=t=>t();function Ur(t=Xe){const e=r.ref(!0);function n(){e.value=!1}function o(){e.value=!0}const a=(...s)=>{e.value&&t(...s)};return{isActive:r.readonly(e),pause:n,resume:o,eventFilter:a}}function me(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function Hr(t,e,n={}){const{eventFilter:o=Xe,...a}=n;return r.watch(t,Yr(o,e),a)}function Wr(t,e,n={}){const{eventFilter:o,...a}=n,{eventFilter:s,pause:i,resume:l,isActive:c}=Ur(o);return{stop:Hr(t,e,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function pe(t,e=!1){function n(m,{flush:p="sync",deep:g=!1,timeout:f,throwOnTimeout:h}={}){let y=null;const O=[new Promise(E=>{y=r.watch(t,x=>{m(x)!==e&&(y==null||y(),E(x))},{flush:p,deep:g,immediate:!0})})];return f!=null&&O.push(me(f,h).then(()=>at(t)).finally(()=>y==null?void 0:y())),Promise.race(O)}function o(m,p){if(!r.isRef(m))return n(x=>x===m,p);const{flush:g="sync",deep:f=!1,timeout:h,throwOnTimeout:y}=p??{};let S=null;const E=[new Promise(x=>{S=r.watch([t,m],([v,C])=>{e!==(v===C)&&(S==null||S(),x(v))},{flush:g,deep:f,immediate:!0})})];return h!=null&&E.push(me(h,y).then(()=>at(t)).finally(()=>(S==null||S(),at(t)))),Promise.race(E)}function a(m){return n(p=>!!p,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,p){return n(g=>{const f=Array.from(g);return f.includes(m)||f.includes(at(m))},p)}function u(m){return d(1,m)}function d(m=1,p){let g=-1;return n(()=>(g+=1,g>=m),p)}return Array.isArray(at(t))?{toMatch:n,toContains:c,changed:u,changedTimes:d,get not(){return pe(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:d,get not(){return pe(t,!e)}}}function Kr(t){return pe(t)}function qr(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},at(e))}return o&&(a.value=!0,Wt&&c()),Ze(l),{isPending:r.readonly(a),start:c,stop:l}}function Je(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n);return o}function Zr(t,e,n){const o=r.watch(t,(a,s,i)=>{a&&(n!=null&&n.once&&r.nextTick(()=>o()),e(a,s,i))},{...n,once:!1});return o}function Pt(t){var e;const n=at(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Qe=Wt?window:void 0,Xr=Wt?window.document:void 0;function Kt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=Qe):[e,n,o,a]=t,!e)return tt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(d=>d()),s.length=0},l=(d,m,p,g)=>(d.addEventListener(m,p,g),()=>d.removeEventListener(m,p,g)),c=r.watch(()=>[Pt(e),at(a)],([d,m])=>{if(i(),!d)return;const p=Gr(m)?{...m}:m;s.push(...n.flatMap(g=>o.map(f=>l(d,g,f,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Ze(u),u}let tn=!1;function Jr(t,e,n={}){const{window:o=Qe,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return tt;Fr&&!tn&&(tn=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",tt)),o.document.documentElement.addEventListener("click",tt));let l=!0;const c=p=>a.some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(f=>f===p.target||p.composedPath().includes(f));{const f=Pt(g);return f&&(p.target===f||p.composedPath().includes(f))}}),d=[Kt(o,"click",p=>{const g=Pt(t);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:s}),Kt(o,"pointerdown",p=>{const g=Pt(t);l=!c(p)&&!!(g&&!p.composedPath().includes(g))},{passive:!0}),i&&Kt(o,"blur",p=>{setTimeout(()=>{var g;const f=Pt(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(f!=null&&f.contains(o.document.activeElement))&&e(p)},0)})].filter(Boolean);return()=>d.forEach(p=>p())}function en(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=tt,onSuccess:i=tt,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},d=c?r.shallowRef(e):r.ref(e),m=r.ref(!1),p=r.ref(!1),g=r.shallowRef(void 0);async function f(S=0,...O){l&&(d.value=e),g.value=void 0,m.value=!1,p.value=!0,S>0&&await me(S);const E=typeof t=="function"?t(...O):t;try{const x=await E;d.value=x,m.value=!0,i(x)}catch(x){if(g.value=x,s(x),u)throw x}finally{p.value=!1}return d.value}o&&f(a);const h={state:d,isReady:m,isLoading:p,error:g,execute:f};function y(){return new Promise((S,O)=>{Kr(p).toBe(!1).then(()=>S(h)).catch(O)})}return{...h,then(S,O){return y().then(S,O)}}}function Qr(t={}){const{document:e=Xr}=t;if(!e)return r.ref("visible");const n=r.ref(e.visibilityState);return Kt(e,"visibilitychange",()=>{n.value=e.visibilityState}),n}async function to(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u,referrerPolicy:d}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),c&&(o.loading=c),u&&(o.crossOrigin=u),d&&(o.referrerPolicy=d),o.onload=()=>e(o),o.onerror=n})}function eo(t,e={}){const n=en(()=>to(at(t)),void 0,{resetOnExecute:!0,...e});return r.watch(()=>at(t),()=>n.execute(e.delay),{deep:!0}),n}function nn(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=qr(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}const no={"@@functional/placeholder":!0};function z(t){return t===no}function F(t){return function e(n){return arguments.length===0||z(n)?e:t.apply(this,arguments)}}function V(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return z(n)?e:F(function(a){return t(n,a)});default:return z(n)&&z(o)?e:z(n)?F(function(a){return t(a,o)}):z(o)?F(function(a){return t(n,a)}):t(n,o)}}}function qt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,d){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,d,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function he(t,e,n){return function(){for(var o=[],a=0,s=t,i=0,l=!1;i<e.length||a<arguments.length;){var c;i<e.length&&(!z(e[i])||a>=arguments.length)?c=e[i]:(c=arguments[a],a+=1),o[i]=c,z(c)?l=!0:s-=1,i+=1}return!l&&s<=0?n.apply(this,o):qt(Math.max(0,s),he(t,o,n))}}var Mt=V(function(e,n){return e===1?F(n):qt(e,he(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return z(n)?e:V(function(s,i){return t(n,s,i)});case 2:return z(n)&&z(o)?e:z(n)?V(function(s,i){return t(s,o,i)}):z(o)?V(function(s,i){return t(n,s,i)}):F(function(s){return t(n,o,s)});default:return z(n)&&z(o)&&z(a)?e:z(n)&&z(o)?V(function(s,i){return t(s,i,a)}):z(n)&&z(a)?V(function(s,i){return t(s,o,i)}):z(o)&&z(a)?V(function(s,i){return t(n,s,i)}):z(n)?F(function(s){return t(s,o,a)}):z(o)?F(function(s){return t(n,s,a)}):z(a)?F(function(s){return t(n,o,s)}):t(n,o,a)}}}const Lt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function ro(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Bt(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!Lt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(ro(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function ge(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const yt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function rn(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function on(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function oo(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function et(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function ao(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const ye=typeof Object.is=="function"?Object.is:ao;var an=Object.prototype.toString,sn=function(){return an.call(arguments)==="[object Arguments]"?function(e){return an.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),so=!{toString:null}.propertyIsEnumerable("toString"),ln=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],cn=function(){return arguments.propertyIsEnumerable("length")}(),io=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},bt=F(typeof Object.keys=="function"&&!cn?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=cn&&sn(e);for(n in e)et(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(so)for(o=ln.length-1;o>=0;)n=ln[o],et(n,e)&&!io(a,n)&&(a[a.length]=n),o-=1;return a}),be=F(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function un(t,e,n,o){var a=rn(t),s=rn(e);function i(l,c){return we(l,c,n.slice(),o.slice())}return!on(function(l,c){return!on(i,c,l)},s,a)}function we(t,e,n,o){if(ye(t,e))return!0;var a=be(t);if(a!==be(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&oo(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&ye(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!ye(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:un(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:un(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=bt(t);if(i.length!==bt(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(et(u,e)&&we(e[u],t[u],l,c)))return!1;s-=1}return!0}var Zt=V(function(e,n){return we(e,n,[],[])});function lo(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Zt(t[n],e))return n;n+=1}return-1}function dn(t,e){return lo(e,t,0)>=0}function Xt(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function Se(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var It=function(e){return(e<10?"0":"")+e},co=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+It(e.getUTCMonth()+1)+"-"+It(e.getUTCDate())+"T"+It(e.getUTCHours())+":"+It(e.getUTCMinutes())+":"+It(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function uo(t){return function(){return!t.apply(this,arguments)}}function fn(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function fo(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Jt(t){return Object.prototype.toString.call(t)==="[object Object]"}var mo=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function po(t){return function(e){return new mo(t,e)}}var Te=V(Bt(["fantasy-land/filter","filter"],po,function(t,e){return Jt(e)?fn(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},bt(e)):fo(t,e)})),ho=V(function(e,n){return Te(uo(e),n)});function mn(t,e){var n=function(i){var l=e.concat([t]);return dn(i,l)?"<Circular>":mn(i,l)},o=function(s,i){return Xt(function(l){return Se(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Xt(n,t).join(", ")+"))";case"[object Array]":return"["+Xt(n,t).concat(o(t,ho(function(s){return/^\d+$/.test(s)},bt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):Se(co(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":Se(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,bt(t)).join(", ")+"}"}}var _e=F(function(e){return mn(e,[])}),go=V(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=_e(e),l=o(i,_e(n));return l!==void 0&&l===i?e:n}),yo=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),bo=function(e){return function(n){return new yo(e,n)}},mt=V(Bt(["fantasy-land/map","map"],bo,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Mt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return fn(function(o,a){return o[a]=e(n[a]),o},{},bt(n));default:return Xt(e,n)}}));const Qt=Number.isInteger||function(e){return e<<0===e};function te(t){return Object.prototype.toString.call(t)==="[object String]"}function pn(t,e){var n=t<0?e.length+t:t;return te(e)?e.charAt(n):e[n]}var ut=V(function(e,n){if(n!=null)return Qt(e)?pn(e,n):n[e]}),wo=V(function(e,n){return mt(ut(e),n)}),So=F(function(e){return Lt(e)?!0:!e||typeof e!="object"||te(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),hn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function To(t,e,n){return function(a,s,i){if(So(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[hn]!=null)return n(a,s,i[hn]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function _o(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var ko=V(function(e,n){return qt(e.length,function(){return e.apply(n,arguments)})});function Ao(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function Oo(t,e,n,o){return t["@@transducer/result"](n[o](ko(t["@@transducer/step"],t),e))}var gn=To(_o,Oo,Ao),Eo=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function yn(t){return new Eo(t)}var bn=X(function(t,e,n){return gn(typeof t=="function"?yn(t):t,e,n)}),wn=F(function(e){return function(){return e}}),Po=F(function(e){return Mt(bn(go,0,wo("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})}),ke=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0});function xo(t,e,n){if(Qt(t)&&Lt(n)){var o=[].concat(n);return o[t]=e,o}var a={};for(var s in n)a[s]=n[s];return a[t]=e,a}var vo=F(function(e){return e==null}),No=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!vo(o)&&et(a,o)&&typeof o[a]=="object"?o[a]:Qt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return xo(a,n,o)}),$o=X(function(e,n,o){return No([e],n,o)});function Do(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Co(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function Sn(t,e,n){if(n||(n=new Lo),Mo(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=t[l]);return s};switch(be(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return Co(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function Mo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Lo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){var o=this.hash(e),a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){var n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(var n in this.map)for(var i=this.map[n],o=0;o<i.length;o+=1){var a=i[o];if(a[0]===e)return a[1]}return}var s=this.hash(e),i=this.map[s];if(i)for(var o=0;o<i.length;o+=1){var a=i[o];if(a[0]===e)return a[1]}},t}();function Bo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Ae(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return Lt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var Io=X(Ae("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),Ro=F(Ae("tail",Io(1,1/0)));function ee(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return qt(arguments[0].length,bn(Bo,arguments[0],Ro(arguments)))}var Vo=F(function(e){return te(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function Tn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ee.apply(this,Vo(arguments))}var zo=F(function(e){return Mt(e.length,e)}),Go=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(et(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,Sn(this.valueAcc)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function Fo(t,e,n){return function(o){return new Go(t,e,n,o)}}var jo=he(4,[],Bt([],Fo,function(e,n,o,a){var s=yn(function(i,l){var c=o(l),u=e(et(c,i)?i[c]:Sn(n),l);return u&&u["@@transducer/reduced"]?ge(i):(i[c]=u,i)});return gn(s,{},a)})),Yo=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});function Uo(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var Ho=F(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Lt(e)?[]:te(e)?"":Jt(e)?{}:sn(e)?function(){return arguments}():Uo(e)?e.constructor.from(""):void 0}),Wo=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=ge(this.xf["@@transducer/step"](e,n))),e},t}();function Ko(t){return function(e){return new Wo(t,e)}}var qo=V(Bt(["find"],Ko,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}})),Zo=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=ge(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Xo(t){return function(e){return new Zo(t,e)}}var Jo=V(Bt([],Xo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1})),Qo=V(Ae("groupBy",jo(function(t,e){return t.push(e),t},[]))),ta=X(function(e,n,o){return Mt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})}),ea=V(dn),_n=V(function(e,n){return Mt(e+1,function(){var o=arguments[e];if(o!=null&&Do(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(_e(o)+' does not have a method named "'+n+'"')})}),na=F(function(e){return e!=null&&Zt(e,Ho(e))}),ra=V(function(e,n){return function(o){return function(a){return mt(function(s){return n(s,a)},o(e(a)))}}});function oa(t,e){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;var a=t[o];Qt(a)?n=pn(a,n):n=n[a]}return n}var aa=F(function(e){return ra(ut(e),$o(e))}),sa=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)et(s,n)&&(a[s]=et(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)et(s,o)&&!et(s,a)&&(a[s]=o[s]);return a}),ia=X(function t(e,n,o){return sa(function(a,s,i){return Jt(s)&&Jt(i)?t(e,s,i):e(a,s,i)},n,o)}),la=V(function(e,n){return ia(function(o,a,s){return s},e,n)}),ca=V(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o}),kn=function(t){return{value:t,map:function(e){return kn(e(t))}}},ua=X(function(e,n,o){return e(function(a){return kn(n(a))})(o).value}),Oe=V(oa),An=X(function(e,n,o){return e(ut(n,o))}),da=X(function(e,n,o){return o.replace(e,n)}),fa=V(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),On=V(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})}),xt=_n(1,"split"),En=_n(0,"toLowerCase"),Rt=`
9
- \v\f\r                 \u2028\u2029\uFEFF`,ma="​",pa=typeof String.prototype.trim=="function",ne=F(!pa||Rt.trim()||!ma.trim()?function(e){var n=new RegExp("^["+Rt+"]["+Rt+"]*"),o=new RegExp("["+Rt+"]["+Rt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Pn=Symbol("I18nContext"),W=r.reactive({messages:{},locale:"",fallbackLocale:""}),xn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{W.messages=t,W.locale=e,W.fallbackLocale=n;const o=(c,u={})=>{const d=!na(u),m=mt(ne,xt(".",c));return r.computed(()=>{const g=vn(m);return d?ga(g,u):g}).value},a=c=>{const u=mt(ne,xt(".",c));return!!Ee(W.locale,u,W.messages)},s=c=>{W.locale=c},l={locale:r.computed({get(){return W.locale},set(c){W.locale=c}}),setLocale:s,translate:o,hasTranslation:a};return r.provide(Pn,l),{translate:o}},st=t=>{t&&(W.messages=t.messages,W.locale=t.locale,W.fallbackLocale=t.fallbackLocale);const e=ha();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}},ha=()=>{const t=r.inject(Pn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},vn=(t=[])=>{let e=Ee(W.locale,t,W.messages);return!e&&W.fallbackLocale&&(e=Ee(W.fallbackLocale,t,W.messages)),e||t.join(".")};function Ee(t,e,n){return Oe([t,...e],n)}const ga=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},Nn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=mt(ne,xt(".",t.path)),o=vn(n),a=xt(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),$n="https://api.icehockey.hu/vbr",Dn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",Cn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",Mn="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Ln="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",Bn="https://api.icehockey.hu/static/api/flag",dt="original",w="descend",I="ascend",In=new Map().set("hu","hu-hu").set("en","hu-gb"),Rn=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ya=1e3*60*5,Vn=1e3,ba={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort",class:"svg-inline--fa fa-sort fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},wa=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),Sa=[wa];function Ta(t,e){return r.openBlock(),r.createElementBlock("svg",ba,[...Sa])}const zn={render:Ta},_a={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},ka=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),Aa=[ka];function Oa(t,e){return r.openBlock(),r.createElementBlock("svg",_a,[...Aa])}const Ea={render:Oa},Pa={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},xa=r.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),va=[xa];function Na(t,e){return r.openBlock(),r.createElementBlock("svg",Pa,[...va])}const $a={render:Na},vt=Math.min,wt=Math.max,re=Math.round,oe=Math.floor,pt=t=>({x:t,y:t}),Da={left:"right",right:"left",bottom:"top",top:"bottom"},Ca={start:"end",end:"start"};function Pe(t,e,n){return wt(t,vt(e,n))}function Vt(t,e){return typeof t=="function"?t(e):t}function St(t){return t.split("-")[0]}function zt(t){return t.split("-")[1]}function Gn(t){return t==="x"?"y":"x"}function xe(t){return t==="y"?"height":"width"}function ae(t){return["top","bottom"].includes(St(t))?"y":"x"}function ve(t){return Gn(ae(t))}function Ma(t,e,n){n===void 0&&(n=!1);const o=zt(t),a=ve(t),s=xe(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=se(i)),[i,se(i)]}function La(t){const e=se(t);return[Ne(t),e,Ne(e)]}function Ne(t){return t.replace(/start|end/g,e=>Ca[e])}function Ba(t,e,n){const o=["left","right"],a=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:o:e?o:a;case"left":case"right":return e?s:i;default:return[]}}function Ia(t,e,n,o){const a=zt(t);let s=Ba(St(t),n==="start",o);return a&&(s=s.map(i=>i+"-"+a),e&&(s=s.concat(s.map(Ne)))),s}function se(t){return t.replace(/left|right|bottom|top/g,e=>Da[e])}function Ra(t){return{top:0,right:0,bottom:0,left:0,...t}}function Fn(t){return typeof t!="number"?Ra(t):{top:t,right:t,bottom:t,left:t}}function ie(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function jn(t,e,n){let{reference:o,floating:a}=t;const s=ae(e),i=ve(e),l=xe(i),c=St(e),u=s==="y",d=o.x+o.width/2-a.width/2,m=o.y+o.height/2-a.height/2,p=o[l]/2-a[l]/2;let g;switch(c){case"top":g={x:d,y:o.y-a.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:m};break;case"left":g={x:o.x-a.width,y:m};break;default:g={x:o.x,y:o.y}}switch(zt(e)){case"start":g[i]-=p*(n&&u?-1:1);break;case"end":g[i]+=p*(n&&u?-1:1);break}return g}const Va=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:d,y:m}=jn(u,o,c),p=o,g={},f=0;for(let h=0;h<l.length;h++){const{name:y,fn:S}=l[h],{x:O,y:E,data:x,reset:v}=await S({x:d,y:m,initialPlacement:o,placement:p,strategy:a,middlewareData:g,rects:u,platform:i,elements:{reference:t,floating:e}});d=O??d,m=E??m,g={...g,[y]:{...g[y],...x}},v&&f<=50&&(f++,typeof v=="object"&&(v.placement&&(p=v.placement),v.rects&&(u=v.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):v.rects),{x:d,y:m}=jn(u,p,c)),h=-1)}return{x:d,y:m,placement:p,strategy:a,middlewareData:g}};async function Yn(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Vt(e,t),f=Fn(g),y=l[p?m==="floating"?"reference":"floating":m],S=ie(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:d,strategy:c})),O=m==="floating"?{...i.floating,x:o,y:a}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),x=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},v=ie(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-v.top+f.top)/x.y,bottom:(v.bottom-S.bottom+f.bottom)/x.y,left:(S.left-v.left+f.left)/x.x,right:(v.right-S.right+f.right)/x.x}}const za=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:a,rects:s,platform:i,elements:l,middlewareData:c}=e,{element:u,padding:d=0}=Vt(t,e)||{};if(u==null)return{};const m=Fn(d),p={x:n,y:o},g=ve(a),f=xe(g),h=await i.getDimensions(u),y=g==="y",S=y?"top":"left",O=y?"bottom":"right",E=y?"clientHeight":"clientWidth",x=s.reference[f]+s.reference[g]-p[g]-s.floating[f],v=p[g]-s.reference[g],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let R=C?C[E]:0;(!R||!await(i.isElement==null?void 0:i.isElement(C)))&&(R=l.floating[E]||s.floating[f]);const G=x/2-v/2,Y=R/2-h[f]/2-1,L=vt(m[S],Y),D=vt(m[O],Y),U=L,ot=R-h[f]-D,P=R/2-h[f]/2+G,A=Pe(U,P,ot),T=!c.arrow&&zt(a)!=null&&P!==A&&s.reference[f]/2-(P<U?L:D)-h[f]/2<0,_=T?P<U?P-U:P-ot:0;return{[g]:p[g]+_,data:{[g]:A,centerOffset:P-A-_,...T&&{alignmentOffset:_}},reset:T}}}),Ga=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:a,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:d=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:h=!0,...y}=Vt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=St(a),O=St(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),x=p||(O||!h?[se(l)]:La(l));!p&&f!=="none"&&x.push(...Ia(l,h,f,E));const v=[l,...x],C=await Yn(e,y),R=[];let G=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&R.push(C[S]),m){const U=Ma(a,i,E);R.push(C[U[0]],C[U[1]])}if(G=[...G,{placement:a,overflows:R}],!R.every(U=>U<=0)){var Y,L;const U=(((Y=s.flip)==null?void 0:Y.index)||0)+1,ot=v[U];if(ot)return{data:{index:U,overflows:G},reset:{placement:ot}};let P=(L=G.filter(A=>A.overflows[0]<=0).sort((A,T)=>A.overflows[1]-T.overflows[1])[0])==null?void 0:L.placement;if(!P)switch(g){case"bestFit":{var D;const A=(D=G.map(T=>[T.placement,T.overflows.filter(_=>_>0).reduce((_,k)=>_+k,0)]).sort((T,_)=>T[1]-_[1])[0])==null?void 0:D[0];A&&(P=A);break}case"initialPlacement":P=l;break}if(a!==P)return{reset:{placement:P}}}return{}}}};async function Fa(t,e){const{placement:n,platform:o,elements:a}=t,s=await(o.isRTL==null?void 0:o.isRTL(a.floating)),i=St(n),l=zt(n),c=ae(n)==="y",u=["left","top"].includes(i)?-1:1,d=s&&c?-1:1,m=Vt(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:f}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof f=="number"&&(g=l==="end"?f*-1:f),c?{x:g*d,y:p*u}:{x:p*u,y:g*d}}const ja=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:a,y:s,placement:i,middlewareData:l}=e,c=await Fa(e,t);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:i}}}}},Ya=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:S,y:O}=y;return{x:S,y:O}}},...c}=Vt(t,e),u={x:n,y:o},d=await Yn(e,c),m=ae(St(a)),p=Gn(m);let g=u[p],f=u[m];if(s){const y=p==="y"?"top":"left",S=p==="y"?"bottom":"right",O=g+d[y],E=g-d[S];g=Pe(O,g,E)}if(i){const y=m==="y"?"top":"left",S=m==="y"?"bottom":"right",O=f+d[y],E=f-d[S];f=Pe(O,f,E)}const h=l.fn({...e,[p]:g,[m]:f});return{...h,data:{x:h.x-n,y:h.y-o}}}}};function Nt(t){return Un(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ft(t){var e;return(e=(Un(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Un(t){return t instanceof Node||t instanceof Z(t).Node}function it(t){return t instanceof Element||t instanceof Z(t).Element}function lt(t){return t instanceof HTMLElement||t instanceof Z(t).HTMLElement}function Hn(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot}function Gt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=nt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function Ua(t){return["table","td","th"].includes(Nt(t))}function $e(t){const e=De(),n=nt(t);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ha(t){let e=ht(t);for(;lt(e)&&!$t(e);){if($e(e))return e;e=ht(e)}return null}function De(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $t(t){return["html","body","#document"].includes(Nt(t))}function nt(t){return Z(t).getComputedStyle(t)}function le(t){return it(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function ht(t){if(Nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Hn(t)&&t.host||ft(t);return Hn(e)?e.host:e}function Wn(t){const e=ht(t);return $t(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&Gt(e)?e:Wn(e)}function Ft(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=Wn(t),s=a===((o=t.ownerDocument)==null?void 0:o.body),i=Z(a);return s?e.concat(i,i.visualViewport||[],Gt(a)?a:[],i.frameElement&&n?Ft(i.frameElement):[]):e.concat(a,Ft(a,[],n))}function Kn(t){const e=nt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=lt(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=re(n)!==s||re(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function Ce(t){return it(t)?t:t.contextElement}function Dt(t){const e=Ce(t);if(!lt(e))return pt(1);const n=e.getBoundingClientRect(),{width:o,height:a,$:s}=Kn(e);let i=(s?re(n.width):n.width)/o,l=(s?re(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Wa=pt(0);function qn(t){const e=Z(t);return!De()||!e.visualViewport?Wa:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ka(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Z(t)?!1:e}function Tt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Ce(t);let i=pt(1);e&&(o?it(o)&&(i=Dt(o)):i=Dt(t));const l=Ka(s,n,o)?qn(s):pt(0);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,d=a.width/i.x,m=a.height/i.y;if(s){const p=Z(s),g=o&&it(o)?Z(o):o;let f=p,h=f.frameElement;for(;h&&o&&g!==f;){const y=Dt(h),S=h.getBoundingClientRect(),O=nt(h),E=S.left+(h.clientLeft+parseFloat(O.paddingLeft))*y.x,x=S.top+(h.clientTop+parseFloat(O.paddingTop))*y.y;c*=y.x,u*=y.y,d*=y.x,m*=y.y,c+=E,u+=x,f=Z(h),h=f.frameElement}}return ie({width:d,height:m,x:c,y:u})}const qa=[":popover-open",":modal"];function Me(t){return qa.some(e=>{try{return t.matches(e)}catch{return!1}})}function Za(t){let{elements:e,rect:n,offsetParent:o,strategy:a}=t;const s=a==="fixed",i=ft(o),l=e?Me(e.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=pt(1);const d=pt(0),m=lt(o);if((m||!m&&!s)&&((Nt(o)!=="body"||Gt(i))&&(c=le(o)),lt(o))){const p=Tt(o);u=Dt(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x,y:n.y*u.y-c.scrollTop*u.y+d.y}}function Xa(t){return Array.from(t.getClientRects())}function Zn(t){return Tt(ft(t)).left+le(t).scrollLeft}function Ja(t){const e=ft(t),n=le(t),o=t.ownerDocument.body,a=wt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=wt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Zn(t);const l=-n.scrollTop;return nt(o).direction==="rtl"&&(i+=wt(e.clientWidth,o.clientWidth)-a),{width:a,height:s,x:i,y:l}}function Qa(t,e){const n=Z(t),o=ft(t),a=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,c=0;if(a){s=a.width,i=a.height;const u=De();(!u||u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:s,height:i,x:l,y:c}}function ts(t,e){const n=Tt(t,!0,e==="fixed"),o=n.top+t.clientTop,a=n.left+t.clientLeft,s=lt(t)?Dt(t):pt(1),i=t.clientWidth*s.x,l=t.clientHeight*s.y,c=a*s.x,u=o*s.y;return{width:i,height:l,x:c,y:u}}function Xn(t,e,n){let o;if(e==="viewport")o=Qa(t,n);else if(e==="document")o=Ja(ft(t));else if(it(e))o=ts(e,n);else{const a=qn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return ie(o)}function Jn(t,e){const n=ht(t);return n===e||!it(n)||$t(n)?!1:nt(n).position==="fixed"||Jn(n,e)}function es(t,e){const n=e.get(t);if(n)return n;let o=Ft(t,[],!1).filter(l=>it(l)&&Nt(l)!=="body"),a=null;const s=nt(t).position==="fixed";let i=s?ht(t):t;for(;it(i)&&!$t(i);){const l=nt(i),c=$e(i);!c&&l.position==="fixed"&&(a=null),(s?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Gt(i)&&!c&&Jn(t,i))?o=o.filter(d=>d!==i):a=l,i=ht(i)}return e.set(t,o),o}function ns(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const i=[...n==="clippingAncestors"?Me(e)?[]:es(e,this._c):[].concat(n),o],l=i[0],c=i.reduce((u,d)=>{const m=Xn(e,d,a);return u.top=wt(m.top,u.top),u.right=vt(m.right,u.right),u.bottom=vt(m.bottom,u.bottom),u.left=wt(m.left,u.left),u},Xn(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function rs(t){const{width:e,height:n}=Kn(t);return{width:e,height:n}}function os(t,e,n){const o=lt(e),a=ft(e),s=n==="fixed",i=Tt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=pt(0);if(o||!o&&!s)if((Nt(e)!=="body"||Gt(a))&&(l=le(e)),o){const m=Tt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else a&&(c.x=Zn(a));const u=i.left+l.scrollLeft-c.x,d=i.top+l.scrollTop-c.y;return{x:u,y:d,width:i.width,height:i.height}}function Le(t){return nt(t).position==="static"}function Qn(t,e){return!lt(t)||nt(t).position==="fixed"?null:e?e(t):t.offsetParent}function tr(t,e){const n=Z(t);if(Me(t))return n;if(!lt(t)){let a=ht(t);for(;a&&!$t(a);){if(it(a)&&!Le(a))return a;a=ht(a)}return n}let o=Qn(t,e);for(;o&&Ua(o)&&Le(o);)o=Qn(o,e);return o&&$t(o)&&Le(o)&&!$e(o)?n:o||Ha(t)||n}const as=async function(t){const e=this.getOffsetParent||tr,n=this.getDimensions,o=await n(t.floating);return{reference:os(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ss(t){return nt(t).direction==="rtl"}const is={convertOffsetParentRelativeRectToViewportRelativeRect:Za,getDocumentElement:ft,getClippingRect:ns,getOffsetParent:tr,getElementRects:as,getClientRects:Xa,getDimensions:rs,getScale:Dt,isElement:it,isRTL:ss};function ls(t,e){let n=null,o;const a=ft(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:d,width:m,height:p}=t.getBoundingClientRect();if(l||e(),!m||!p)return;const g=oe(d),f=oe(a.clientWidth-(u+m)),h=oe(a.clientHeight-(d+p)),y=oe(u),O={rootMargin:-g+"px "+-f+"px "+-h+"px "+-y+"px",threshold:wt(0,vt(1,c))||1};let E=!0;function x(v){const C=v[0].intersectionRatio;if(C!==c){if(!E)return i();C?i(!1,C):o=setTimeout(()=>{i(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(x,{...O,root:a.ownerDocument})}catch{n=new IntersectionObserver(x,O)}n.observe(t)}return i(!0),s}function cs(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Ce(t),d=a||s?[...u?Ft(u):[],...Ft(e)]:[];d.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const m=u&&l?ls(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(e)})),n()}),u&&!c&&g.observe(u),g.observe(e));let f,h=c?Tt(t):null;c&&y();function y(){const S=Tt(t);h&&(S.x!==h.x||S.y!==h.y||S.width!==h.width||S.height!==h.height)&&n(),h=S,f=requestAnimationFrame(y)}return n(),()=>{var S;d.forEach(O=>{a&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),m==null||m(),(S=g)==null||S.disconnect(),g=null,c&&cancelAnimationFrame(f)}}const us=ja,ds=Ya,fs=Ga,er=za,ms=(t,e,n)=>{const o=new Map,a={platform:is,...n},s={...a.platform,_c:o};return Va(t,e,{...a,platform:s})},nr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function ps({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),d=r.ref(null),m=r.ref(null),p=r.ref(n??"absolute"),g=r.ref(null),f=()=>{!s.value||!i.value||ms(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,d.value=y.middlewareData.arrow.y,m.value=y.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:y,append:S})=>{S&&nr(y,S),f()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return h();g.value=cs(s.value,i.value,f,{})}},{flush:"post"});const h=()=>{var y;(y=g.value)==null||y.call(g),g.value=null};return{x:l,y:c,arrowX:u,arrowY:d,placement:m,reference:s,floating:i,strategy:p,update:f}}const hs=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?er({element:e.value,padding:n}).fn(o):{}:e?er({element:e,padding:n}).fn(o):{}}}},gs=["data-placement"],Be={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:d,strategy:m}=ps({placement:e.placement,middleware:[fs(),ds({padding:5}),us(e.offset),hs({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),p=()=>{e.disabled||n.value||(n.value=!0)},g=y=>{n.value&&y&&(n.value=!1)},f=y=>{u.value=y},h={mouseenter:p,mouseleave:g,focus:p,blur:g};return Jr(d,y=>{var S;(S=u.value)!=null&&S.contains(y.target)||g()}),(y,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:f,show:p,hide:g,events:h}),r.createElementVNode("div",{ref_key:"floating",ref:d,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(m),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(y.$slots,"content",{close:g},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(m),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,gs)],64))}},ys=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],bs={key:0},ws=["colspan"],Ss={key:1},Ts=["colspan"],Ie={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=nn(o,{delay:Vn}),i=e,{t:l}=st(),c=ct("table"),u=r.computed(()=>n.columns),d=r.computed(()=>Object.keys(n.columns).length),m=(p,g)=>{p.sortOrders&&i("sort",{target:g,orders:p.sortOrders})};return(p,g)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(c))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(f,h)=>(r.openBlock(),r.createBlock(Be,{key:h,placement:"top",content:f.tooltip,disabled:!f.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:y,show:S,hide:O})=>[r.createElementVNode("th",{ref_for:!0,ref:y,class:r.normalizeClass([[f.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(dt),"is-sortable":f.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(w),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)}]),onMouseenter:S,onMouseleave:O,onFocus:S,onBlur:O,onClick:E=>m(f,h),onKeydown:[r.withKeys(r.withModifiers(E=>m(f,h),["prevent"]),["space"]),r.withKeys(r.withModifiers(E=>m(f,h),["prevent"]),["enter"])],tabindex:f.sortOrders?0:-1,role:"button"},[r.renderSlot(p.$slots,`header-${h}`,{column:f},()=>[r.createTextVNode(r.toDisplayString(f.label),1)]),f.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(zn),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(dt)?(r.openBlock(),r.createBlock(r.unref(zn),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(w)?(r.openBlock(),r.createBlock(r.unref(Ea),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)?(r.openBlock(),r.createBlock(r.unref($a),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,ys)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(f,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(f.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(y,S)=>(r.openBlock(),r.createElementBlock("td",{key:S,class:r.normalizeClass([[y.class],{"is-active":S===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(dt),"is-zero":f[S]==0}])},[r.renderSlot(p.$slots,`cell-${S}`,{row:f,prop:S},()=>[r.createTextVNode(r.toDisplayString(f[S]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",bs,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:d.value},[r.renderSlot(p.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.loading")),1)])],8,ws)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",Ss,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:d.value},[r.renderSlot(p.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.noData")),1)])],8,Ts)])])):r.createCommentVNode("",!0)],2))}},_s={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},ks=r.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),As=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),Os=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),Es=[ks,As,Os];function Ps(t,e){return r.openBlock(),r.createElementBlock("svg",_s,[...Es])}const xs={render:Ps},vs={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:o}=st(),a=ct("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(xs),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function rr(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const _t=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return Oe(xt(".",o),e)})},or=Symbol("ErrorProviderContext"),ar=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||rr(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(or,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},Re=()=>{const t=Ns();return{onError:t.onError,reset:t.reset}},Ns=()=>{const t=r.inject(or,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},$s={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=ar();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},Ds={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},additionalText:{inheritedPoints:{prependix:"A megelőző bajnokság szakaszban elért eredménye alapján",content:"{team} csapata {points}",appendix:"többletponttal rendelkezik."},penaltyPoints:{prependix:"* Fegyelmi Bizottság döntése alapján:",content:"{team} csapatától {points} pont",appendix:"levonva."}},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},Cs={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},additionalText:{inheritedPoints:{prependix:"",content:"{team} has {points} extra point(s)",appendix:"based on its results in the previous championship phase."},penaltyPoints:{prependix:"* ",content:"{points} point(s) deducted from team {team}",appendix:"based on the decision of the Disciplinary Committee."}},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Ms=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Ls=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=la({hu:Ds,en:Cs},t.messages),{translate:n}=xn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function Bs(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const Is=Ms(Ls,[["render",Bs]]),Rs=["src"],Vs=["src","title"],kt=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=eo(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Rs)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title,loading:"lazy"},null,10,Vs))],64))}}),zs={style:{"text-align":"center"}},Ve={__name:"LoadingIndicator",setup(t){const{t:e}=st();return(n,o)=>(r.openBlock(),r.createElementBlock("div",zs,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Gs({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=tt}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const d=r.unref(t)-1,m=Array.from({length:s.value},(f,h)=>h+1),p=Math.floor(o/2);let g=Math.max(d-p,0);return g+o>=s.value&&(g=Math.max(s.value-o,0)),m.slice(g,g+o)}),l=d=>{const m=r.unref(t)+d;u(m)&&a(m)},c=d=>{u(d)&&a(d)},u=d=>d<=s.value&&d>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const Fs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},js=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),Ys=[js];function Us(t,e){return r.openBlock(),r.createElementBlock("svg",Fs,[...Ys])}const Hs={render:Us},Ws={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ks=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),qs=[Ks];function Zs(t,e){return r.openBlock(),r.createElementBlock("svg",Ws,[...qs])}const Xs={render:Zs},Js=["disabled"],Qs=["disabled"],ti={key:1,class:"is-disabled"},ei=["disabled","onClick"],ni={key:2,class:"is-disabled"},ri=[r.createElementVNode("span",null,"...",-1)],oi=["disabled"],ai=["disabled"],si={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,a=ct("paginator"),{page:s,pageCount:i,range:l,goTo:c,pageStep:u}=Gs({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:d=>o("change",d)});return(d,m)=>r.unref(i)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(a))},[r.createElementVNode("button",{type:"button",disabled:r.unref(s)===1,onClick:m[0]||(m[0]=p=>r.unref(u)(-1))},[r.renderSlot(d.$slots,"prev",{},()=>[r.createVNode(r.unref(Hs),{class:"icon paginator-left"})])],8,Js),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(s)===1,onClick:m[1]||(m[1]=p=>r.unref(c)(1))},"1",8,Qs)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ti,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),p=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:p,class:r.normalizeClass({"is-active":p===r.unref(s)}),disabled:p===r.unref(s),onClick:g=>r.unref(c)(p)},r.toDisplayString(p),11,ei))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ni,ri)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[2]||(m[2]=p=>r.unref(c)(r.unref(i)))},r.toDisplayString(r.unref(i)),9,oi)),r.createElementVNode("button",{type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[3]||(m[3]=r.withModifiers(p=>r.unref(u)(1),["prevent"]))},[r.renderSlot(d.$slots,"next",{},()=>[r.createVNode(r.unref(Xs),{class:"icon paginator-left"})])],8,ai)],2)):r.createCommentVNode("",!0)}},ze={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=ct("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var sr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",d="week",m="month",p="quarter",g="year",f="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(P){var A=["th","st","nd","rd"],T=P%100;return"["+P+(A[(T-20)%10]||A[T]||A[0])+"]"}},E=function(P,A,T){var _=String(P);return!_||_.length>=A?P:""+Array(A+1-_.length).join(T)+P},x={s:E,z:function(P){var A=-P.utcOffset(),T=Math.abs(A),_=Math.floor(T/60),k=T%60;return(A<=0?"+":"-")+E(_,2,"0")+":"+E(k,2,"0")},m:function P(A,T){if(A.date()<T.date())return-P(T,A);var _=12*(T.year()-A.year())+(T.month()-A.month()),k=A.clone().add(_,m),$=T-k<0,N=A.clone().add(_+($?-1:1),m);return+(-(_+(T-k)/($?k-N:N-k))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:m,y:g,w:d,d:u,D:f,h:c,m:l,s:i,ms:s,Q:p}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},v="en",C={};C[v]=O;var R="$isDayjsObject",G=function(P){return P instanceof U||!(!P||!P[R])},Y=function P(A,T,_){var k;if(!A)return v;if(typeof A=="string"){var $=A.toLowerCase();C[$]&&(k=$),T&&(C[$]=T,k=$);var N=A.split("-");if(!k&&N.length>1)return P(N[0])}else{var B=A.name;C[B]=A,k=B}return!_&&k&&(v=k),k||!_&&v},L=function(P,A){if(G(P))return P.clone();var T=typeof A=="object"?A:{};return T.date=P,T.args=arguments,new U(T)},D=x;D.l=Y,D.i=G,D.w=function(P,A){return L(P,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var U=function(){function P(T){this.$L=Y(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[R]=!0}var A=P.prototype;return A.parse=function(T){this.$d=function(_){var k=_.date,$=_.utc;if(k===null)return new Date(NaN);if(D.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var N=k.match(y);if(N){var B=N[2]-1||0,j=(N[7]||"0").substring(0,3);return $?new Date(Date.UTC(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,j)):new Date(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,j)}}return new Date(k)}(T),this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return D},A.isValid=function(){return this.$d.toString()!==h},A.isSame=function(T,_){var k=L(T);return this.startOf(_)<=k&&k<=this.endOf(_)},A.isAfter=function(T,_){return L(T)<this.startOf(_)},A.isBefore=function(T,_){return this.endOf(_)<L(T)},A.$g=function(T,_,k){return D.u(T)?this[_]:this.set(k,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,_){var k=this,$=!!D.u(_)||_,N=D.p(T),B=function(Et,q){var gt=D.w(k.$u?Date.UTC(k.$y,q,Et):new Date(k.$y,q,Et),k);return $?gt:gt.endOf(u)},j=function(Et,q){return D.w(k.toDate()[Et].apply(k.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(q)),k)},H=this.$W,K=this.$M,Q=this.$D,Ct="set"+(this.$u?"UTC":"");switch(N){case g:return $?B(1,0):B(31,11);case m:return $?B(1,K):B(0,K+1);case d:var Ot=this.$locale().weekStart||0,Ut=(H<Ot?H+7:H)-Ot;return B($?Q-Ut:Q+(6-Ut),K);case u:case f:return j(Ct+"Hours",0);case c:return j(Ct+"Minutes",1);case l:return j(Ct+"Seconds",2);case i:return j(Ct+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,_){var k,$=D.p(T),N="set"+(this.$u?"UTC":""),B=(k={},k[u]=N+"Date",k[f]=N+"Date",k[m]=N+"Month",k[g]=N+"FullYear",k[c]=N+"Hours",k[l]=N+"Minutes",k[i]=N+"Seconds",k[s]=N+"Milliseconds",k)[$],j=$===u?this.$D+(_-this.$W):_;if($===m||$===g){var H=this.clone().set(f,1);H.$d[B](j),H.init(),this.$d=H.set(f,Math.min(this.$D,H.daysInMonth())).$d}else B&&this.$d[B](j);return this.init(),this},A.set=function(T,_){return this.clone().$set(T,_)},A.get=function(T){return this[D.p(T)]()},A.add=function(T,_){var k,$=this;T=Number(T);var N=D.p(_),B=function(K){var Q=L($);return D.w(Q.date(Q.date()+Math.round(K*T)),$)};if(N===m)return this.set(m,this.$M+T);if(N===g)return this.set(g,this.$y+T);if(N===u)return B(1);if(N===d)return B(7);var j=(k={},k[l]=o,k[c]=a,k[i]=n,k)[N]||1,H=this.$d.getTime()+T*j;return D.w(H,this)},A.subtract=function(T,_){return this.add(-1*T,_)},A.format=function(T){var _=this,k=this.$locale();if(!this.isValid())return k.invalidDate||h;var $=T||"YYYY-MM-DDTHH:mm:ssZ",N=D.z(this),B=this.$H,j=this.$m,H=this.$M,K=k.weekdays,Q=k.months,Ct=k.meridiem,Ot=function(q,gt,Ht,ue){return q&&(q[gt]||q(_,$))||Ht[gt].slice(0,ue)},Ut=function(q){return D.s(B%12||12,q,"0")},Et=Ct||function(q,gt,Ht){var ue=q<12?"AM":"PM";return Ht?ue.toLowerCase():ue};return $.replace(S,function(q,gt){return gt||function(Ht){switch(Ht){case"YY":return String(_.$y).slice(-2);case"YYYY":return D.s(_.$y,4,"0");case"M":return H+1;case"MM":return D.s(H+1,2,"0");case"MMM":return Ot(k.monthsShort,H,Q,3);case"MMMM":return Ot(Q,H);case"D":return _.$D;case"DD":return D.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Ot(k.weekdaysMin,_.$W,K,2);case"ddd":return Ot(k.weekdaysShort,_.$W,K,3);case"dddd":return K[_.$W];case"H":return String(B);case"HH":return D.s(B,2,"0");case"h":return Ut(1);case"hh":return Ut(2);case"a":return Et(B,j,!0);case"A":return Et(B,j,!1);case"m":return String(j);case"mm":return D.s(j,2,"0");case"s":return String(_.$s);case"ss":return D.s(_.$s,2,"0");case"SSS":return D.s(_.$ms,3,"0");case"Z":return N}return null}(q)||N.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,_,k){var $,N=this,B=D.p(_),j=L(T),H=(j.utcOffset()-this.utcOffset())*o,K=this-j,Q=function(){return D.m(N,j)};switch(B){case g:$=Q()/12;break;case m:$=Q();break;case p:$=Q()/3;break;case d:$=(K-H)/6048e5;break;case u:$=(K-H)/864e5;break;case c:$=K/a;break;case l:$=K/o;break;case i:$=K/n;break;default:$=K}return k?$:D.a($)},A.daysInMonth=function(){return this.endOf(m).$D},A.$locale=function(){return C[this.$L]},A.locale=function(T,_){if(!T)return this.$L;var k=this.clone(),$=Y(T,_,!0);return $&&(k.$L=$),k},A.clone=function(){return D.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},P}(),ot=U.prototype;return L.prototype=ot,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",g],["$D",f]].forEach(function(P){ot[P[1]]=function(A){return this.$g(A,P[0],P[1])}}),L.extend=function(P,A){return P.$i||(P(A,U,L),P.$i=!0),L},L.locale=Y,L.isDayjs=G,L.unix=function(P){return L(1e3*P)},L.en=C[v],L.Ls=C,L.p={},L})})(sr);var ir=sr.exports;const M=rt(ir);var lr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},c.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var d=c.init;c.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else d.call(this)};var m=c.utcOffset;c.utcOffset=function(h,y){var S=this.$utils().u;if(S(h))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof h=="string"&&(h=function(v){v===void 0&&(v="");var C=v.match(o);if(!C)return null;var R=(""+C[0]).match(a)||["-",0,0],G=R[0],Y=60*+R[1]+ +R[2];return Y===0?0:G==="+"?Y:-Y}(h),h===null))return this;var O=Math.abs(h)<=16?60*h:h,E=this;if(y)return E.$offset=O,E.$u=h===0,E;if(h!==0){var x=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(O+x,n)).$offset=O,E.$x.$localOffset=x}else E=this.utc();return E};var p=c.format;c.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},c.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var f=c.diff;c.diff=function(h,y,S){if(h&&this.$u===h.$u)return f.call(this,h,y,S);var O=this.local(),E=l(h).local();return f.call(O,E,y,S)}}})})(lr);var ii=lr.exports;const li=rt(ii);var cr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(p,g,f){f===void 0&&(f={});var h=new Date(p),y=function(S,O){O===void 0&&(O={});var E=O.timeZoneName||"short",x=S+"|"+E,v=o[x];return v||(v=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),o[x]=v),v}(g,f);return y.formatToParts(h)},u=function(p,g){for(var f=c(p,g),h=[],y=0;y<f.length;y+=1){var S=f[y],O=S.type,E=S.value,x=n[O];x>=0&&(h[x]=parseInt(E,10))}var v=h[3],C=v===24?0:v,R=h[0]+"-"+h[1]+"-"+h[2]+" "+C+":"+h[4]+":"+h[5]+":000",G=+p;return(i.utc(R).valueOf()-(G-=G%1e3))/6e4},d=s.prototype;d.tz=function(p,g){p===void 0&&(p=l);var f=this.utcOffset(),h=this.toDate(),y=h.toLocaleString("en-US",{timeZone:p}),S=Math.round((h-new Date(y))/1e3/60),O=i(y,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(15*-Math.round(h.getTimezoneOffset()/15)-S,!0);if(g){var E=O.utcOffset();O=O.add(f-E,"minute")}return O.$x.$timezone=p,O},d.offsetName=function(p){var g=this.$x.$timezone||i.tz.guess(),f=c(this.valueOf(),g,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return f&&f.value};var m=d.startOf;d.startOf=function(p,g){if(!this.$x||!this.$x.$timezone)return m.call(this,p,g);var f=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(f,p,g).tz(this.$x.$timezone,!0)},i.tz=function(p,g,f){var h=f&&g,y=f||g||l,S=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var O=function(C,R,G){var Y=C-60*R*1e3,L=u(Y,G);if(R===L)return[Y,R];var D=u(Y-=60*(L-R)*1e3,G);return L===D?[Y,L]:[C-60*Math.min(L,D)*1e3,Math.max(L,D)]}(i.utc(p,h).valueOf(),S,y),E=O[0],x=O[1],v=i(E).utcOffset(x);return v.$x.$timezone=y,v},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(cr);var ci=cr.exports;const ui=rt(ci);var ur={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return s.bind(this)(d)}}})})(ur);var di=ur.exports;const fi=rt(di);var dr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(dr);var mi=dr.exports;const pi=rt(mi);var fr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),d=a(i),m=(c=c||"()")[0]==="(",p=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(d,l):!this.isAfter(d,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(d,l):!this.isBefore(d,l))}}})})(fr);var hi=fr.exports;const gi=rt(hi);var mr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o,a){o.prototype.isToday=function(){var s="YYYY-MM-DD",i=a();return this.format(s)===i.format(s)}}})})(mr);var yi=mr.exports;const bi=rt(yi);var pr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o){o.prototype.weekday=function(a){var s=this.$locale().weekStart||0,i=this.$W,l=(i<s?i+7:i)-s;return this.$utils().u(a)?l:this.subtract(l,"day").add(a,"day")}}})})(pr);var wi=pr.exports;const Si=rt(wi);var hr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o,a){var s=function(i,l){if(!l||!l.length||l.length===1&&!l[0]||l.length===1&&Array.isArray(l[0])&&!l[0].length)return null;var c;l.length===1&&l[0].length>0&&(l=l[0]),c=(l=l.filter(function(d){return d}))[0];for(var u=1;u<l.length;u+=1)l[u].isValid()&&!l[u][i](c)||(c=l[u]);return c};a.max=function(){var i=[].slice.call(arguments,0);return s("isAfter",i)},a.min=function(){var i=[].slice.call(arguments,0);return s("isBefore",i)}}})})(hr);var Ti=hr.exports;const _i=rt(Ti);var gr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,d=function(m,p){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,f,h){var y=h&&h.toUpperCase();return f||p[h]||n[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,O,E){return O||E.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,d)}}})})(gr);var ki=gr.exports;const Ai=rt(ki);var yr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o,a){n=n||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,d,m,p){return s.fromToBase(u,d,m,p)}a.en.relativeTime=i,s.fromToBase=function(u,d,m,p,g){for(var f,h,y,S=m.$locale().relativeTime||i,O=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=O.length,x=0;x<E;x+=1){var v=O[x];v.d&&(f=p?a(u).diff(m,v.d,!0):m.diff(u,v.d,!0));var C=(n.rounding||Math.round)(Math.abs(f));if(y=f>0,C<=v.r||!v.r){C<=1&&x>0&&(v=O[x-1]);var R=S[v.l];g&&(C=g(""+C)),h=typeof R=="string"?R.replace("%d",C):R(C,d,v.l,y);break}}if(d)return h;var G=y?S.future:S.past;return typeof G=="function"?G(h):G.replace("%s",h)},s.to=function(u,d){return l(u,d,this,!0)},s.from=function(u,d){return l(u,d,this)};var c=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(c(this),u)},s.fromNow=function(u){return this.from(c(this),u)}}})})(yr);var Oi=yr.exports;const Ei=rt(Oi);var Pi={exports:{}};(function(t,e){(function(n,o){t.exports=o(ir)})(J,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(Pi),M.extend(li),M.extend(ui),M.extend(fi),M.extend(Ei),M.extend(Ai),M.extend(pi),M.extend(gi),M.extend(bi),M.extend(Si),M.extend(_i);const br=()=>M.tz.guess(),At=(t="",e="",n="",o="hu")=>(n=n||M.tz.guess(),M(t).isValid()?M(t).tz(n).locale(o).format(e):""),jt=(t="",e="",n="hu")=>{if(!M(t).isValid())return"";e=e||M.tz.guess();const a=new Intl.DateTimeFormat(xi(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},xi=t=>In.get(t),Ge=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},wr=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Sr=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Fe=(t,e="day")=>M().isSameOrBefore(M(t),e),Tr=(t,e,n,o="[]")=>M(t).isBetween(e,M(n),"day",o),vi=(t,e,n="month")=>M(t).isSame(e,n),Ni=(t,e="hu")=>M(t).locale(e).toNow(!0),$i=(t,e,n="day")=>M(t).isBefore(e,n),Di=(t,e,n="day")=>M(t).isAfter(e,n),Ci=t=>M(t).isToday(),Mi=t=>{const e=M().weekday(1),n=M().weekday(7);return Tr(t,e,n)},Li=t=>{const e=M(t).weekday(1),n=M(t).weekday(7);return{startDate:e,endDate:n}},Bi=(t,e)=>M(t).subtract(e,"day"),Ii=(t,e)=>M(t).add(e,"day"),Ri=t=>M(t).startOf("month"),Vi=t=>M(t).endOf("month"),zi=t=>(Array.isArray(t)&&(t=t.map(e=>M(e))),M.min(t)),Gi=t=>(Array.isArray(t)&&(t=t.map(e=>M(e))),M.max(...t)),Fi=["onClick"],ji={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,{t:a}=st(),s=ct("timezone-selector"),i=r.computed(()=>jt(new Date,null,n.locale)),l=br(),c=r.computed(()=>Array.from(Rn.values()).map(d=>({...d,isActive:jt(new Date,n.currentZone,n.locale)===jt(new Date,d.timezone,n.locale),zoneOffsetName:jt(new Date,d.timezone,n.locale)}))),u=d=>o("change",d);return(d,m)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(s))},[r.createVNode(r.unref(Nn),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:m[0]||(m[0]=r.withModifiers(p=>u(r.unref(l)),["prevent"]))},r.toDisplayString(i.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,p=>(r.openBlock(),r.createElementBlock("a",{key:p.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":p.isActive}),onClick:r.withModifiers(g=>u(p.timezone),["prevent"])},r.toDisplayString(r.unref(a)(`common.${p.countryLabelKey}`))+" ("+r.toDisplayString(p.zoneOffsetName)+") ",11,Fi))),128))],2))}},je=(t,e="",n={})=>{const o=r.ref(""),{t:a}=st(),s=r.computed(()=>{if(r.unref(e))try{const c=_r(r.unref(t),r.unref(e));return ca(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>mt(i,s.value)),error:o}},_r=(t,e="")=>{const n=mt(ne,xt(",",e)),o=bt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n},kr=async(t,e,n)=>{const o=`${$n}${r.unref(t)}?${Yi(n)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Ui(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},Yi=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Ui=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},Hi=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>Fe(u,"day");return Je(n,()=>{if(!a)return;const u=Jo(An(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},Wi=({options:t={},transform:e=a=>a,onError:n=tt,onSuccess:o=tt})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:d,isLoading:m,execute:p}=en(()=>kr(a,s,r.unref(i)).then(g=>e(g)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:d,isLoading:m,execute:p}};/*! *****************************************************************************
8
+ var MjszVbrElementsCore=function(b,r){"use strict";function Dr(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function qe(t){return typeof t=="function"?t():r.unref(t)}const Cr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Mr=t=>t!=null,fe=()=>{};function me(t){var e;const n=qe(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Lr=Cr?window:void 0;function Br(){const t=r.ref(!1);return r.getCurrentInstance()&&r.onMounted(()=>{t.value=!0}),t}function Ir(t){const e=Br();return r.computed(()=>(e.value,!!t()))}function zr(t,e,n={}){const{root:o,rootMargin:a="0px",threshold:s=.1,window:i=Lr,immediate:l=!0}=n,c=Ir(()=>i&&"IntersectionObserver"in i),u=r.computed(()=>{const d=qe(t);return(Array.isArray(d)?d:[d]).map(me).filter(Mr)});let f=fe;const m=r.ref(l),p=c.value?r.watch(()=>[u.value,me(o),m.value],([d,h])=>{if(f(),!m.value||!d.length)return;const y=new IntersectionObserver(e,{root:me(h),rootMargin:a,threshold:s});d.forEach(S=>S&&y.observe(S)),f=()=>{y.disconnect(),f=fe}},{immediate:l,flush:"post"}):fe,g=()=>{f(),p(),m.value=!1};return Dr(g),{isSupported:c,isActive:m,pause(){f(),m.value=!1},resume(){m.value=!0},stop:g}}const Rr=r.defineComponent({name:"FetchMoreObserver",props:["as","options"],emits:["intersect"],setup(t,{slots:e,emit:n}){const o=r.ref(null),{stop:a}=zr(o,([{isIntersecting:s}])=>{s&&n("intersect")},t.options);return r.onUnmounted(a),()=>{if(e.default)return r.h(t.as||"div",{ref:o},e.default())}}}),ct=t=>"mjsz-vbr-"+t,Ze={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,a=ct("base-input"),s=r.computed({get:()=>n.modelValue,set:i=>o("update:modelValue",i)});return(i,l)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=c=>s.value=c),class:r.normalizeClass([r.unref(a),"is-select"])},[r.renderSlot(i.$slots,"default")],2)),[[r.vModelSelect,s.value]])}};function Xe(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function st(t){return typeof t=="function"?t():r.unref(t)}const Wt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Vr=Object.prototype.toString,Gr=t=>Vr.call(t)==="[object Object]",tt=()=>{},jr=Fr();function Fr(){var t,e;return Wt&&((t=window==null?void 0:window.navigator)==null?void 0:t.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((e=window==null?void 0:window.navigator)==null?void 0:e.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function Yr(t,e){function n(...o){return new Promise((a,s)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(a).catch(s)})}return n}const Je=t=>t();function Ur(t=Je){const e=r.ref(!0);function n(){e.value=!1}function o(){e.value=!0}const a=(...s)=>{e.value&&t(...s)};return{isActive:r.readonly(e),pause:n,resume:o,eventFilter:a}}function pe(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function Hr(t,e,n={}){const{eventFilter:o=Je,...a}=n;return r.watch(t,Yr(o,e),a)}function Wr(t,e,n={}){const{eventFilter:o,...a}=n,{eventFilter:s,pause:i,resume:l,isActive:c}=Ur(o);return{stop:Hr(t,e,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function he(t,e=!1){function n(m,{flush:p="sync",deep:g=!1,timeout:d,throwOnTimeout:h}={}){let y=null;const O=[new Promise(E=>{y=r.watch(t,P=>{m(P)!==e&&(y==null||y(),E(P))},{flush:p,deep:g,immediate:!0})})];return d!=null&&O.push(pe(d,h).then(()=>st(t)).finally(()=>y==null?void 0:y())),Promise.race(O)}function o(m,p){if(!r.isRef(m))return n(P=>P===m,p);const{flush:g="sync",deep:d=!1,timeout:h,throwOnTimeout:y}=p??{};let S=null;const E=[new Promise(P=>{S=r.watch([t,m],([v,C])=>{e!==(v===C)&&(S==null||S(),P(v))},{flush:g,deep:d,immediate:!0})})];return h!=null&&E.push(pe(h,y).then(()=>st(t)).finally(()=>(S==null||S(),st(t)))),Promise.race(E)}function a(m){return n(p=>!!p,m)}function s(m){return o(null,m)}function i(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function c(m,p){return n(g=>{const d=Array.from(g);return d.includes(m)||d.includes(st(m))},p)}function u(m){return f(1,m)}function f(m=1,p){let g=-1;return n(()=>(g+=1,g>=m),p)}return Array.isArray(st(t))?{toMatch:n,toContains:c,changed:u,changedTimes:f,get not(){return he(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:f,get not(){return he(t,!e)}}}function Kr(t){return he(t)}function qr(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let s=null;function i(){s&&(clearTimeout(s),s=null)}function l(){a.value=!1,i()}function c(...u){i(),a.value=!0,s=setTimeout(()=>{a.value=!1,s=null,t(...u)},st(e))}return o&&(a.value=!0,Wt&&c()),Xe(l),{isPending:r.readonly(a),start:c,stop:l}}function Qe(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n);return o}function Zr(t,e,n){const o=r.watch(t,(a,s,i)=>{a&&(n!=null&&n.once&&r.nextTick(()=>o()),e(a,s,i))},{...n,once:!1});return o}function xt(t){var e;const n=st(t);return(e=n==null?void 0:n.$el)!=null?e:n}const tn=Wt?window:void 0,Xr=Wt?window.document:void 0;function Kt(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=tn):[e,n,o,a]=t,!e)return tt;Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,m,p,g)=>(f.addEventListener(m,p,g),()=>f.removeEventListener(m,p,g)),c=r.watch(()=>[xt(e),st(a)],([f,m])=>{if(i(),!f)return;const p=Gr(m)?{...m}:m;s.push(...n.flatMap(g=>o.map(d=>l(f,g,d,p))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return Xe(u),u}let en=!1;function Jr(t,e,n={}){const{window:o=tn,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return tt;jr&&!en&&(en=!0,Array.from(o.document.body.children).forEach(p=>p.addEventListener("click",tt)),o.document.documentElement.addEventListener("click",tt));let l=!0;const c=p=>a.some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(d=>d===p.target||p.composedPath().includes(d));{const d=xt(g);return d&&(p.target===d||p.composedPath().includes(d))}}),f=[Kt(o,"click",p=>{const g=xt(t);if(!(!g||g===p.target||p.composedPath().includes(g))){if(p.detail===0&&(l=!c(p)),!l){l=!0;return}e(p)}},{passive:!0,capture:s}),Kt(o,"pointerdown",p=>{const g=xt(t);l=!c(p)&&!!(g&&!p.composedPath().includes(g))},{passive:!0}),i&&Kt(o,"blur",p=>{setTimeout(()=>{var g;const d=xt(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(d!=null&&d.contains(o.document.activeElement))&&e(p)},0)})].filter(Boolean);return()=>f.forEach(p=>p())}function nn(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=tt,onSuccess:i=tt,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},f=c?r.shallowRef(e):r.ref(e),m=r.ref(!1),p=r.ref(!1),g=r.shallowRef(void 0);async function d(S=0,...O){l&&(f.value=e),g.value=void 0,m.value=!1,p.value=!0,S>0&&await pe(S);const E=typeof t=="function"?t(...O):t;try{const P=await E;f.value=P,m.value=!0,i(P)}catch(P){if(g.value=P,s(P),u)throw P}finally{p.value=!1}return f.value}o&&d(a);const h={state:f,isReady:m,isLoading:p,error:g,execute:d};function y(){return new Promise((S,O)=>{Kr(p).toBe(!1).then(()=>S(h)).catch(O)})}return{...h,then(S,O){return y().then(S,O)}}}function Qr(t={}){const{document:e=Xr}=t;if(!e)return r.ref("visible");const n=r.ref(e.visibilityState);return Kt(e,"visibilitychange",()=>{n.value=e.visibilityState}),n}async function to(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u,referrerPolicy:f}=t;o.src=a,s&&(o.srcset=s),i&&(o.sizes=i),l&&(o.className=l),c&&(o.loading=c),u&&(o.crossOrigin=u),f&&(o.referrerPolicy=f),o.onload=()=>e(o),o.onerror=n})}function eo(t,e={}){const n=nn(()=>to(st(t)),void 0,{resetOnExecute:!0,...e});return r.watch(()=>st(t),()=>n.execute(e.delay),{deep:!0}),n}function rn(t=[],e={}){const{delay:n=0}=e,o=r.ref(!1),a=r.computed(()=>{const l=r.unref(t);return Array.isArray(l)?l.map(c=>r.unref(c)).some(Boolean):l}),{start:s,stop:i}=qr(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return s();i(),o.value=!1},{immediate:!0,deep:!0}),o}function V(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function j(t){return function e(n){return arguments.length===0||V(n)?e:t.apply(this,arguments)}}function R(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return V(n)?e:j(function(a){return t(n,a)});default:return V(n)&&V(o)?e:V(n)?j(function(a){return t(a,o)}):V(o)?j(function(a){return t(n,a)}):t(n,o)}}}function qt(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(n){return e.apply(this,arguments)};case 2:return function(n,o){return e.apply(this,arguments)};case 3:return function(n,o,a){return e.apply(this,arguments)};case 4:return function(n,o,a,s){return e.apply(this,arguments)};case 5:return function(n,o,a,s,i){return e.apply(this,arguments)};case 6:return function(n,o,a,s,i,l){return e.apply(this,arguments)};case 7:return function(n,o,a,s,i,l,c){return e.apply(this,arguments)};case 8:return function(n,o,a,s,i,l,c,u){return e.apply(this,arguments)};case 9:return function(n,o,a,s,i,l,c,u,f){return e.apply(this,arguments)};case 10:return function(n,o,a,s,i,l,c,u,f,m){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ge(t,e,n){return function(){for(var o=[],a=0,s=t,i=0,l=!1;i<e.length||a<arguments.length;){var c;i<e.length&&(!V(e[i])||a>=arguments.length)?c=e[i]:(c=arguments[a],a+=1),o[i]=c,V(c)?l=!0:s-=1,i+=1}return!l&&s<=0?n.apply(this,o):qt(Math.max(0,s),ge(t,o,n))}}var Mt=R(function(e,n){return e===1?j(n):qt(e,ge(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return V(n)?e:R(function(s,i){return t(n,s,i)});case 2:return V(n)&&V(o)?e:V(n)?R(function(s,i){return t(s,o,i)}):V(o)?R(function(s,i){return t(n,s,i)}):j(function(s){return t(n,o,s)});default:return V(n)&&V(o)&&V(a)?e:V(n)&&V(o)?R(function(s,i){return t(s,i,a)}):V(n)&&V(a)?R(function(s,i){return t(s,o,i)}):V(o)&&V(a)?R(function(s,i){return t(n,s,i)}):V(n)?j(function(s){return t(s,o,a)}):V(o)?j(function(s){return t(n,s,a)}):V(a)?j(function(s){return t(n,o,s)}):t(n,o,a)}}}const Lt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function no(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Bt(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!Lt(o)){for(var a=0;a<t.length;){if(typeof o[t[a]]=="function")return o[t[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(no(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function ye(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const yt={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function on(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function an(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function ro(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function et(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function oo(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const be=typeof Object.is=="function"?Object.is:oo;var sn=Object.prototype.toString,ln=function(){return sn.call(arguments)==="[object Arguments]"?function(e){return sn.call(e)==="[object Arguments]"}:function(e){return et("callee",e)}}(),ao=!{toString:null}.propertyIsEnumerable("toString"),cn=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],un=function(){return arguments.propertyIsEnumerable("length")}(),so=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},bt=j(typeof Object.keys=="function"&&!un?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=un&&ln(e);for(n in e)et(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(ao)for(o=cn.length-1;o>=0;)n=cn[o],et(n,e)&&!so(a,n)&&(a[a.length]=n),o-=1;return a}),we=j(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function dn(t,e,n,o){var a=on(t),s=on(e);function i(l,c){return Se(l,c,n.slice(),o.slice())}return!an(function(l,c){return!an(i,c,l)},s,a)}function Se(t,e,n,o){if(be(t,e))return!0;var a=we(t);if(a!==we(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(a){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&ro(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&be(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!be(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var s=n.length-1;s>=0;){if(n[s]===t)return o[s]===e;s-=1}switch(a){case"Map":return t.size!==e.size?!1:dn(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:dn(t.values(),e.values(),n.concat([t]),o.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var i=bt(t);if(i.length!==bt(e).length)return!1;var l=n.concat([t]),c=o.concat([e]);for(s=i.length-1;s>=0;){var u=i[s];if(!(et(u,e)&&Se(e[u],t[u],l,c)))return!1;s-=1}return!0}var Zt=R(function(e,n){return Se(e,n,[],[])});function io(t,e,n){var o,a;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(o=1/e;n<t.length;){if(a=t[n],a===0&&1/a===o)return n;n+=1}return-1}else if(e!==e){for(;n<t.length;){if(a=t[n],typeof a=="number"&&a!==a)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(e===null)return t.indexOf(e,n)}for(;n<t.length;){if(Zt(t[n],e))return n;n+=1}return-1}function fn(t,e){return io(e,t,0)>=0}function Xt(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function Te(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var It=function(e){return(e<10?"0":"")+e},lo=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+It(e.getUTCMonth()+1)+"-"+It(e.getUTCDate())+"T"+It(e.getUTCHours())+":"+It(e.getUTCMinutes())+":"+It(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function co(t){return function(){return!t.apply(this,arguments)}}function mn(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function uo(t,e){for(var n=0,o=e.length,a=[];n<o;)t(e[n])&&(a[a.length]=e[n]),n+=1;return a}function Jt(t){return Object.prototype.toString.call(t)==="[object Object]"}var fo=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function mo(t){return function(e){return new fo(t,e)}}var _e=R(Bt(["fantasy-land/filter","filter"],mo,function(t,e){return Jt(e)?mn(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},bt(e)):uo(t,e)})),po=R(function(e,n){return _e(co(e),n)});function pn(t,e){var n=function(i){var l=e.concat([t]);return fn(i,l)?"<Circular>":pn(i,l)},o=function(s,i){return Xt(function(l){return Te(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Xt(n,t).join(", ")+"))";case"[object Array]":return"["+Xt(n,t).concat(o(t,po(function(s){return/^\d+$/.test(s)},bt(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):Te(lo(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+n(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+n(t.valueOf())+")":Te(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var a=t.toString();if(a!=="[object Object]")return a}return"{"+o(t,bt(t)).join(", ")+"}"}}var ke=j(function(e){return pn(e,[])}),ho=R(function(e,n){if(e===n)return n;function o(c,u){if(c>u!=u>c)return u>c?u:c}var a=o(e,n);if(a!==void 0)return a;var s=o(typeof e,typeof n);if(s!==void 0)return s===typeof e?e:n;var i=ke(e),l=o(i,ke(n));return l!==void 0&&l===i?e:n}),go=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=yt.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),yo=function(e){return function(n){return new go(e,n)}},mt=R(Bt(["fantasy-land/map","map"],yo,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Mt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return mn(function(o,a){return o[a]=e(n[a]),o},{},bt(n));default:return Xt(e,n)}}));const Qt=Number.isInteger||function(e){return e<<0===e};function te(t){return Object.prototype.toString.call(t)==="[object String]"}function hn(t,e){var n=t<0?e.length+t:t;return te(e)?e.charAt(n):e[n]}var ut=R(function(e,n){if(n!=null)return Qt(e)?hn(e,n):n[e]}),bo=R(function(e,n){return mt(ut(e),n)}),wo=j(function(e){return Lt(e)?!0:!e||typeof e!="object"||te(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),gn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function So(t,e,n){return function(a,s,i){if(wo(i))return t(a,s,i);if(i==null)return s;if(typeof i["fantasy-land/reduce"]=="function")return e(a,s,i,"fantasy-land/reduce");if(i[gn]!=null)return n(a,s,i[gn]());if(typeof i.next=="function")return n(a,s,i);if(typeof i.reduce=="function")return e(a,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function To(t,e,n){for(var o=0,a=n.length;o<a;){if(e=t["@@transducer/step"](e,n[o]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o+=1}return t["@@transducer/result"](e)}var _o=R(function(e,n){return qt(e.length,function(){return e.apply(n,arguments)})});function ko(t,e,n){for(var o=n.next();!o.done;){if(e=t["@@transducer/step"](e,o.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}o=n.next()}return t["@@transducer/result"](e)}function Ao(t,e,n,o){return t["@@transducer/result"](n[o](_o(t["@@transducer/step"],t),e))}var yn=So(To,Ao,ko),Oo=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,n){return this.f(e,n)},t}();function bn(t){return new Oo(t)}var wn=X(function(t,e,n){return yn(typeof t=="function"?bn(t):t,e,n)}),Sn=j(function(e){return function(){return e}}),Eo=j(function(e){return Mt(wn(ho,0,bo("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})}),Ae=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0}),xo=j(function(e){return Mt(e.length,e)});function Po(t,e,n){if(Qt(t)&&Lt(n)){var o=[].concat(n);return o[t]=e,o}var a={};for(var s in n)a[s]=n[s];return a[t]=e,a}var vo=j(function(e){return e==null}),No=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!vo(o)&&et(a,o)&&typeof o[a]=="object"?o[a]:Qt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return Po(a,n,o)}),$o=X(function(e,n,o){return No([e],n,o)});function Do(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Co(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function Tn(t,e,n){if(n||(n=new Lo),Mo(t))return t;var o=function(s){var i=n.get(t);if(i)return i;n.set(t,s);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(s[l]=t[l]);return s};switch(we(t)){case"Object":return o(Object.create(Object.getPrototypeOf(t)));case"Array":return o(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return Co(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function Mo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Lo=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,n){var o=this.hash(e),a=this.map[o];a||(this.map[o]=a=[]),a.push([e,n]),this.length+=1},t.prototype.hash=function(e){var n=[];for(var o in e)n.push(Object.prototype.toString.call(e[o]));return n.join()},t.prototype.get=function(e){if(this.length<=180){for(var n in this.map)for(var i=this.map[n],o=0;o<i.length;o+=1){var a=i[o];if(a[0]===e)return a[1]}return}var s=this.hash(e),i=this.map[s];if(i)for(var o=0;o<i.length;o+=1){var a=i[o];if(a[0]===e)return a[1]}},t}();function Bo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Oe(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return Lt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var Io=X(Oe("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),zo=j(Oe("tail",Io(1,1/0)));function ee(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return qt(arguments[0].length,wn(Bo,arguments[0],zo(arguments)))}var Ro=j(function(e){return te(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function _n(){if(arguments.length===0)throw new Error("compose requires at least one argument");return ee.apply(this,Ro(arguments))}var Vo=function(){function t(e,n,o,a){this.valueFn=e,this.valueAcc=n,this.keyFn=o,this.xf=a,this.inputs={}}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(et(n,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[n]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){var o=this.keyFn(n);return this.inputs[o]=this.inputs[o]||[o,Tn(this.valueAcc)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function Go(t,e,n){return function(o){return new Vo(t,e,n,o)}}var jo=ge(4,[],Bt([],Go,function(e,n,o,a){var s=bn(function(i,l){var c=o(l),u=e(et(c,i)?i[c]:Tn(n),l);return u&&u["@@transducer/reduced"]?ye(i):(i[c]=u,i)});return yn(s,{},a)})),Fo=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});function Yo(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var Uo=j(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():Lt(e)?[]:te(e)?"":Jt(e)?{}:ln(e)?function(){return arguments}():Yo(e)?e.constructor.from(""):void 0}),Ho=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,void 0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.f(n)&&(this.found=!0,e=ye(this.xf["@@transducer/step"](e,n))),e},t}();function Wo(t){return function(e){return new Ho(t,e)}}var Ko=R(Bt(["find"],Wo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}})),qo=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=yt.init,t.prototype["@@transducer/result"]=function(e){return this.found||(e=this.xf["@@transducer/step"](e,-1)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,n){return this.idx+=1,this.f(n)&&(this.found=!0,e=ye(this.xf["@@transducer/step"](e,this.idx))),e},t}();function Zo(t){return function(e){return new qo(t,e)}}var Xo=R(Bt([],Zo,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1})),Jo=R(Oe("groupBy",jo(function(t,e){return t.push(e),t},[]))),Qo=X(function(e,n,o){return Mt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})}),ta=R(fn),kn=R(function(e,n){return Mt(e+1,function(){var o=arguments[e];if(o!=null&&Do(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(ke(o)+' does not have a method named "'+n+'"')})}),ea=j(function(e){return e!=null&&Zt(e,Uo(e))}),na=R(function(e,n){return function(o){return function(a){return mt(function(s){return n(s,a)},o(e(a)))}}});function ra(t,e){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;var a=t[o];Qt(a)?n=hn(a,n):n=n[a]}return n}var oa=j(function(e){return na(ut(e),$o(e))}),aa=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)et(s,n)&&(a[s]=et(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)et(s,o)&&!et(s,a)&&(a[s]=o[s]);return a}),sa=X(function t(e,n,o){return aa(function(a,s,i){return Jt(s)&&Jt(i)?t(e,s,i):e(a,s,i)},n,o)}),ia=R(function(e,n){return sa(function(o,a,s){return s},e,n)}),la=R(function(e,n){for(var o={},a={},s=0,i=e.length;s<i;)a[e[s]]=1,s+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o}),An=function(t){return{value:t,map:function(e){return An(e(t))}}},ca=X(function(e,n,o){return e(function(a){return An(n(a))})(o).value}),Ee=R(ra),On=X(function(e,n,o){return e(ut(n,o))}),ua=X(function(e,n,o){return o.replace(e,n)}),da=R(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),En=R(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var s=0,i=0;s===0&&i<e.length;)s=e[i](o,a),i+=1;return s})}),Pt=kn(1,"split"),xn=kn(0,"toLowerCase"),zt=`
9
+ \v\f\r                 \u2028\u2029\uFEFF`,fa="​",ma=typeof String.prototype.trim=="function",ne=j(!ma||zt.trim()||!fa.trim()?function(e){var n=new RegExp("^["+zt+"]["+zt+"]*"),o=new RegExp("["+zt+"]["+zt+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Pn=Symbol("I18nContext"),W=r.reactive({messages:{},locale:"",fallbackLocale:""}),vn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{W.messages=t,W.locale=e,W.fallbackLocale=n;const o=(c,u={})=>{const f=!ea(u),m=mt(ne,Pt(".",c));return r.computed(()=>{const g=Nn(m);return f?ha(g,u):g}).value},a=c=>{const u=mt(ne,Pt(".",c));return!!xe(W.locale,u,W.messages)},s=c=>{W.locale=c},l={locale:r.computed({get(){return W.locale},set(c){W.locale=c}}),setLocale:s,translate:o,hasTranslation:a};return r.provide(Pn,l),{translate:o}},it=t=>{t&&(W.messages=t.messages,W.locale=t.locale,W.fallbackLocale=t.fallbackLocale);const e=pa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}},pa=()=>{const t=r.inject(Pn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Nn=(t=[])=>{let e=xe(W.locale,t,W.messages);return!e&&W.fallbackLocale&&(e=xe(W.fallbackLocale,t,W.messages)),e||t.join(".")};function xe(t,e,n){return Ee([t,...e],n)}const ha=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},$n=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=mt(ne,Pt(".",t.path)),o=Nn(n),a=Pt(/{|}/,o),s=Object.keys(e).map(i=>{const l=a.indexOf(i);return l>-1&&(a[l]=e[i]()[0]),a});return()=>r.h(t.tag,s)}}),Dn="https://api.icehockey.hu/vbr",Cn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",Mn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",Ln="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Bn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",In="https://api.icehockey.hu/static/api/flag",dt="original",w="descend",I="ascend",zn=new Map().set("hu","hu-hu").set("en","hu-gb"),Rn=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),ga=1e3*60*5,Vn=1e3,ya={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort",class:"svg-inline--fa fa-sort fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},ba=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41zm255-105L177 64c-9.4-9.4-24.6-9.4-33.9 0L24 183c-15.1 15.1-4.4 41 17 41h238c21.4 0 32.1-25.9 17-41z"},null,-1),wa=[ba];function Sa(t,e){return r.openBlock(),r.createElementBlock("svg",ya,[...wa])}const Gn={render:Sa},Ta={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-down",class:"svg-inline--fa fa-sort-down fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},_a=r.createElementVNode("path",{fill:"currentColor",d:"M41 288h238c21.4 0 32.1 25.9 17 41L177 448c-9.4 9.4-24.6 9.4-33.9 0L24 329c-15.1-15.1-4.4-41 17-41z"},null,-1),ka=[_a];function Aa(t,e){return r.openBlock(),r.createElementBlock("svg",Ta,[...ka])}const Oa={render:Aa},Ea={"aria-hidden":"true",focusable:"false","data-prefix":"fas","data-icon":"sort-up",class:"svg-inline--fa fa-sort-up fa-w-10",role:"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"},xa=r.createElementVNode("path",{fill:"currentColor",d:"M279 224H41c-21.4 0-32.1-25.9-17-41L143 64c9.4-9.4 24.6-9.4 33.9 0l119 119c15.2 15.1 4.5 41-16.9 41z"},null,-1),Pa=[xa];function va(t,e){return r.openBlock(),r.createElementBlock("svg",Ea,[...Pa])}const Na={render:va},vt=Math.min,wt=Math.max,re=Math.round,oe=Math.floor,pt=t=>({x:t,y:t}),$a={left:"right",right:"left",bottom:"top",top:"bottom"},Da={start:"end",end:"start"};function Pe(t,e,n){return wt(t,vt(e,n))}function Rt(t,e){return typeof t=="function"?t(e):t}function St(t){return t.split("-")[0]}function Vt(t){return t.split("-")[1]}function jn(t){return t==="x"?"y":"x"}function ve(t){return t==="y"?"height":"width"}function ae(t){return["top","bottom"].includes(St(t))?"y":"x"}function Ne(t){return jn(ae(t))}function Ca(t,e,n){n===void 0&&(n=!1);const o=Vt(t),a=Ne(t),s=ve(a);let i=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(i=se(i)),[i,se(i)]}function Ma(t){const e=se(t);return[$e(t),e,$e(e)]}function $e(t){return t.replace(/start|end/g,e=>Da[e])}function La(t,e,n){const o=["left","right"],a=["right","left"],s=["top","bottom"],i=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:o:e?o:a;case"left":case"right":return e?s:i;default:return[]}}function Ba(t,e,n,o){const a=Vt(t);let s=La(St(t),n==="start",o);return a&&(s=s.map(i=>i+"-"+a),e&&(s=s.concat(s.map($e)))),s}function se(t){return t.replace(/left|right|bottom|top/g,e=>$a[e])}function Ia(t){return{top:0,right:0,bottom:0,left:0,...t}}function Fn(t){return typeof t!="number"?Ia(t):{top:t,right:t,bottom:t,left:t}}function ie(t){const{x:e,y:n,width:o,height:a}=t;return{width:o,height:a,top:n,left:e,right:e+o,bottom:n+a,x:e,y:n}}function Yn(t,e,n){let{reference:o,floating:a}=t;const s=ae(e),i=Ne(e),l=ve(i),c=St(e),u=s==="y",f=o.x+o.width/2-a.width/2,m=o.y+o.height/2-a.height/2,p=o[l]/2-a[l]/2;let g;switch(c){case"top":g={x:f,y:o.y-a.height};break;case"bottom":g={x:f,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:m};break;case"left":g={x:o.x-a.width,y:m};break;default:g={x:o.x,y:o.y}}switch(Vt(e)){case"start":g[i]-=p*(n&&u?-1:1);break;case"end":g[i]+=p*(n&&u?-1:1);break}return g}const za=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:s=[],platform:i}=n,l=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(e));let u=await i.getElementRects({reference:t,floating:e,strategy:a}),{x:f,y:m}=Yn(u,o,c),p=o,g={},d=0;for(let h=0;h<l.length;h++){const{name:y,fn:S}=l[h],{x:O,y:E,data:P,reset:v}=await S({x:f,y:m,initialPlacement:o,placement:p,strategy:a,middlewareData:g,rects:u,platform:i,elements:{reference:t,floating:e}});f=O??f,m=E??m,g={...g,[y]:{...g[y],...P}},v&&d<=50&&(d++,typeof v=="object"&&(v.placement&&(p=v.placement),v.rects&&(u=v.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):v.rects),{x:f,y:m}=Yn(u,p,c)),h=-1)}return{x:f,y:m,placement:p,strategy:a,middlewareData:g}};async function Un(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:s,rects:i,elements:l,strategy:c}=t,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:p=!1,padding:g=0}=Rt(e,t),d=Fn(g),y=l[p?m==="floating"?"reference":"floating":m],S=ie(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(y)))==null||n?y:y.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),O=m==="floating"?{...i.floating,x:o,y:a}:i.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),P=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},v=ie(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:O,offsetParent:E,strategy:c}):O);return{top:(S.top-v.top+d.top)/P.y,bottom:(v.bottom-S.bottom+d.bottom)/P.y,left:(S.left-v.left+d.left)/P.x,right:(v.right-S.right+d.right)/P.x}}const Ra=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:a,rects:s,platform:i,elements:l,middlewareData:c}=e,{element:u,padding:f=0}=Rt(t,e)||{};if(u==null)return{};const m=Fn(f),p={x:n,y:o},g=Ne(a),d=ve(g),h=await i.getDimensions(u),y=g==="y",S=y?"top":"left",O=y?"bottom":"right",E=y?"clientHeight":"clientWidth",P=s.reference[d]+s.reference[g]-p[g]-s.floating[d],v=p[g]-s.reference[g],C=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let z=C?C[E]:0;(!z||!await(i.isElement==null?void 0:i.isElement(C)))&&(z=l.floating[E]||s.floating[d]);const G=P/2-v/2,Y=z/2-h[d]/2-1,L=vt(m[S],Y),D=vt(m[O],Y),U=L,at=z-h[d]-D,x=z/2-h[d]/2+G,A=Pe(U,x,at),T=!c.arrow&&Vt(a)!=null&&x!==A&&s.reference[d]/2-(x<U?L:D)-h[d]/2<0,_=T?x<U?x-U:x-at:0;return{[g]:p[g]+_,data:{[g]:A,centerOffset:x-A-_,...T&&{alignmentOffset:_}},reset:T}}}),Va=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:a,middlewareData:s,rects:i,initialPlacement:l,platform:c,elements:u}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:d="none",flipAlignment:h=!0,...y}=Rt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const S=St(a),O=St(l)===l,E=await(c.isRTL==null?void 0:c.isRTL(u.floating)),P=p||(O||!h?[se(l)]:Ma(l));!p&&d!=="none"&&P.push(...Ba(l,h,d,E));const v=[l,...P],C=await Un(e,y),z=[];let G=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&z.push(C[S]),m){const U=Ca(a,i,E);z.push(C[U[0]],C[U[1]])}if(G=[...G,{placement:a,overflows:z}],!z.every(U=>U<=0)){var Y,L;const U=(((Y=s.flip)==null?void 0:Y.index)||0)+1,at=v[U];if(at)return{data:{index:U,overflows:G},reset:{placement:at}};let x=(L=G.filter(A=>A.overflows[0]<=0).sort((A,T)=>A.overflows[1]-T.overflows[1])[0])==null?void 0:L.placement;if(!x)switch(g){case"bestFit":{var D;const A=(D=G.map(T=>[T.placement,T.overflows.filter(_=>_>0).reduce((_,k)=>_+k,0)]).sort((T,_)=>T[1]-_[1])[0])==null?void 0:D[0];A&&(x=A);break}case"initialPlacement":x=l;break}if(a!==x)return{reset:{placement:x}}}return{}}}};async function Ga(t,e){const{placement:n,platform:o,elements:a}=t,s=await(o.isRTL==null?void 0:o.isRTL(a.floating)),i=St(n),l=Vt(n),c=ae(n)==="y",u=["left","top"].includes(i)?-1:1,f=s&&c?-1:1,m=Rt(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:d}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof d=="number"&&(g=l==="end"?d*-1:d),c?{x:g*f,y:p*u}:{x:p*u,y:g*f}}const ja=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:a,y:s,placement:i,middlewareData:l}=e,c=await Ga(e,t);return i===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+c.x,y:s+c.y,data:{...c,placement:i}}}}},Fa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:s=!0,crossAxis:i=!1,limiter:l={fn:y=>{let{x:S,y:O}=y;return{x:S,y:O}}},...c}=Rt(t,e),u={x:n,y:o},f=await Un(e,c),m=ae(St(a)),p=jn(m);let g=u[p],d=u[m];if(s){const y=p==="y"?"top":"left",S=p==="y"?"bottom":"right",O=g+f[y],E=g-f[S];g=Pe(O,g,E)}if(i){const y=m==="y"?"top":"left",S=m==="y"?"bottom":"right",O=d+f[y],E=d-f[S];d=Pe(O,d,E)}const h=l.fn({...e,[p]:g,[m]:d});return{...h,data:{x:h.x-n,y:h.y-o}}}}};function Nt(t){return Hn(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ft(t){var e;return(e=(Hn(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Hn(t){return t instanceof Node||t instanceof Z(t).Node}function nt(t){return t instanceof Element||t instanceof Z(t).Element}function lt(t){return t instanceof HTMLElement||t instanceof Z(t).HTMLElement}function Wn(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot}function Gt(t){const{overflow:e,overflowX:n,overflowY:o,display:a}=rt(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(a)}function Ya(t){return["table","td","th"].includes(Nt(t))}function le(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function De(t){const e=Ce(),n=nt(t)?rt(t):t;return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ua(t){let e=ht(t);for(;lt(e)&&!$t(e);){if(De(e))return e;if(le(e))return null;e=ht(e)}return null}function Ce(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function $t(t){return["html","body","#document"].includes(Nt(t))}function rt(t){return Z(t).getComputedStyle(t)}function ce(t){return nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function ht(t){if(Nt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Wn(t)&&t.host||ft(t);return Wn(e)?e.host:e}function Kn(t){const e=ht(t);return $t(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&Gt(e)?e:Kn(e)}function jt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=Kn(t),s=a===((o=t.ownerDocument)==null?void 0:o.body),i=Z(a);if(s){const l=Me(i);return e.concat(i,i.visualViewport||[],Gt(a)?a:[],l&&n?jt(l):[])}return e.concat(a,jt(a,[],n))}function Me(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function qn(t){const e=rt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=lt(t),s=a?t.offsetWidth:n,i=a?t.offsetHeight:o,l=re(n)!==s||re(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function Le(t){return nt(t)?t:t.contextElement}function Dt(t){const e=Le(t);if(!lt(e))return pt(1);const n=e.getBoundingClientRect(),{width:o,height:a,$:s}=qn(e);let i=(s?re(n.width):n.width)/o,l=(s?re(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const Ha=pt(0);function Zn(t){const e=Z(t);return!Ce()||!e.visualViewport?Ha:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Wa(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Z(t)?!1:e}function Tt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),s=Le(t);let i=pt(1);e&&(o?nt(o)&&(i=Dt(o)):i=Dt(t));const l=Wa(s,n,o)?Zn(s):pt(0);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,f=a.width/i.x,m=a.height/i.y;if(s){const p=Z(s),g=o&&nt(o)?Z(o):o;let d=p,h=Me(d);for(;h&&o&&g!==d;){const y=Dt(h),S=h.getBoundingClientRect(),O=rt(h),E=S.left+(h.clientLeft+parseFloat(O.paddingLeft))*y.x,P=S.top+(h.clientTop+parseFloat(O.paddingTop))*y.y;c*=y.x,u*=y.y,f*=y.x,m*=y.y,c+=E,u+=P,d=Z(h),h=Me(d)}}return ie({width:f,height:m,x:c,y:u})}function Ka(t){let{elements:e,rect:n,offsetParent:o,strategy:a}=t;const s=a==="fixed",i=ft(o),l=e?le(e.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=pt(1);const f=pt(0),m=lt(o);if((m||!m&&!s)&&((Nt(o)!=="body"||Gt(i))&&(c=ce(o)),lt(o))){const p=Tt(o);u=Dt(o),f.x=p.x+o.clientLeft,f.y=p.y+o.clientTop}return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x,y:n.y*u.y-c.scrollTop*u.y+f.y}}function qa(t){return Array.from(t.getClientRects())}function Xn(t){return Tt(ft(t)).left+ce(t).scrollLeft}function Za(t){const e=ft(t),n=ce(t),o=t.ownerDocument.body,a=wt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=wt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+Xn(t);const l=-n.scrollTop;return rt(o).direction==="rtl"&&(i+=wt(e.clientWidth,o.clientWidth)-a),{width:a,height:s,x:i,y:l}}function Xa(t,e){const n=Z(t),o=ft(t),a=n.visualViewport;let s=o.clientWidth,i=o.clientHeight,l=0,c=0;if(a){s=a.width,i=a.height;const u=Ce();(!u||u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:s,height:i,x:l,y:c}}function Ja(t,e){const n=Tt(t,!0,e==="fixed"),o=n.top+t.clientTop,a=n.left+t.clientLeft,s=lt(t)?Dt(t):pt(1),i=t.clientWidth*s.x,l=t.clientHeight*s.y,c=a*s.x,u=o*s.y;return{width:i,height:l,x:c,y:u}}function Jn(t,e,n){let o;if(e==="viewport")o=Xa(t,n);else if(e==="document")o=Za(ft(t));else if(nt(e))o=Ja(e,n);else{const a=Zn(t);o={...e,x:e.x-a.x,y:e.y-a.y}}return ie(o)}function Qn(t,e){const n=ht(t);return n===e||!nt(n)||$t(n)?!1:rt(n).position==="fixed"||Qn(n,e)}function Qa(t,e){const n=e.get(t);if(n)return n;let o=jt(t,[],!1).filter(l=>nt(l)&&Nt(l)!=="body"),a=null;const s=rt(t).position==="fixed";let i=s?ht(t):t;for(;nt(i)&&!$t(i);){const l=rt(i),c=De(i);!c&&l.position==="fixed"&&(a=null),(s?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Gt(i)&&!c&&Qn(t,i))?o=o.filter(f=>f!==i):a=l,i=ht(i)}return e.set(t,o),o}function ts(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const i=[...n==="clippingAncestors"?le(e)?[]:Qa(e,this._c):[].concat(n),o],l=i[0],c=i.reduce((u,f)=>{const m=Jn(e,f,a);return u.top=wt(m.top,u.top),u.right=vt(m.right,u.right),u.bottom=vt(m.bottom,u.bottom),u.left=wt(m.left,u.left),u},Jn(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function es(t){const{width:e,height:n}=qn(t);return{width:e,height:n}}function ns(t,e,n){const o=lt(e),a=ft(e),s=n==="fixed",i=Tt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=pt(0);if(o||!o&&!s)if((Nt(e)!=="body"||Gt(a))&&(l=ce(e)),o){const m=Tt(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else a&&(c.x=Xn(a));const u=i.left+l.scrollLeft-c.x,f=i.top+l.scrollTop-c.y;return{x:u,y:f,width:i.width,height:i.height}}function Be(t){return rt(t).position==="static"}function tr(t,e){return!lt(t)||rt(t).position==="fixed"?null:e?e(t):t.offsetParent}function er(t,e){const n=Z(t);if(le(t))return n;if(!lt(t)){let a=ht(t);for(;a&&!$t(a);){if(nt(a)&&!Be(a))return a;a=ht(a)}return n}let o=tr(t,e);for(;o&&Ya(o)&&Be(o);)o=tr(o,e);return o&&$t(o)&&Be(o)&&!De(o)?n:o||Ua(t)||n}const rs=async function(t){const e=this.getOffsetParent||er,n=this.getDimensions,o=await n(t.floating);return{reference:ns(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function os(t){return rt(t).direction==="rtl"}const as={convertOffsetParentRelativeRectToViewportRelativeRect:Ka,getDocumentElement:ft,getClippingRect:ts,getOffsetParent:er,getElementRects:rs,getClientRects:qa,getDimensions:es,getScale:Dt,isElement:nt,isRTL:os};function ss(t,e){let n=null,o;const a=ft(t);function s(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function i(l,c){l===void 0&&(l=!1),c===void 0&&(c=1),s();const{left:u,top:f,width:m,height:p}=t.getBoundingClientRect();if(l||e(),!m||!p)return;const g=oe(f),d=oe(a.clientWidth-(u+m)),h=oe(a.clientHeight-(f+p)),y=oe(u),O={rootMargin:-g+"px "+-d+"px "+-h+"px "+-y+"px",threshold:wt(0,vt(1,c))||1};let E=!0;function P(v){const C=v[0].intersectionRatio;if(C!==c){if(!E)return i();C?i(!1,C):o=setTimeout(()=>{i(!1,1e-7)},1e3)}E=!1}try{n=new IntersectionObserver(P,{...O,root:a.ownerDocument})}catch{n=new IntersectionObserver(P,O)}n.observe(t)}return i(!0),s}function is(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,u=Le(t),f=a||s?[...u?jt(u):[],...jt(e)]:[];f.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),s&&S.addEventListener("resize",n)});const m=u&&l?ss(u,n):null;let p=-1,g=null;i&&(g=new ResizeObserver(S=>{let[O]=S;O&&O.target===u&&g&&(g.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=g)==null||E.observe(e)})),n()}),u&&!c&&g.observe(u),g.observe(e));let d,h=c?Tt(t):null;c&&y();function y(){const S=Tt(t);h&&(S.x!==h.x||S.y!==h.y||S.width!==h.width||S.height!==h.height)&&n(),h=S,d=requestAnimationFrame(y)}return n(),()=>{var S;f.forEach(O=>{a&&O.removeEventListener("scroll",n),s&&O.removeEventListener("resize",n)}),m==null||m(),(S=g)==null||S.disconnect(),g=null,c&&cancelAnimationFrame(d)}}const ls=ja,cs=Fa,us=Va,nr=Ra,ds=(t,e,n)=>{const o=new Map,a={platform:as,...n},s={...a.platform,_c:o};return za(t,e,{...a,platform:s})},rr=(t,e="body")=>{if(!t)return;if(typeof e!="string"){e==null||e.append(t);return}const n=document.querySelector(e);n==null||n.append(t)};function fs({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const s=r.ref(null),i=r.ref(null),l=r.ref(null),c=r.ref(null),u=r.ref(null),f=r.ref(null),m=r.ref(null),p=r.ref(n??"absolute"),g=r.ref(null),d=()=>{!s.value||!i.value||ds(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(y=>{l.value=y.x,c.value=y.y,p.value=y.strategy,u.value=y.middlewareData.arrow.x,f.value=y.middlewareData.arrow.y,m.value=y.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:y,append:S})=>{S&&rr(y,S),d()},{flush:"post"}),r.watch(a,y=>{if(!(!s.value||!i.value)){if(!y)return h();g.value=is(s.value,i.value,d,{})}},{flush:"post"});const h=()=>{var y;(y=g.value)==null||y.call(g),g.value=null};return{x:l,y:c,arrowX:u,arrowY:f,placement:m,reference:s,floating:i,strategy:p,update:d}}const ms=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?nr({element:e.value,padding:n}).fn(o):{}:e?nr({element:e,padding:n}).fn(o):{}}}},ps=["data-placement"],Ie={__name:"FloatingPanel",props:{disabled:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},theme:{type:String,default:"tooltip"},content:{type:String,default:""},appendTo:{type:[Object,String],default:"body"},offset:{type:Number,default:2}},setup(t){const e=t,n=r.ref(!1),o=r.ref(null),{x:a,y:s,arrowX:i,arrowY:l,placement:c,reference:u,floating:f,strategy:m}=fs({placement:e.placement,middleware:[us(),cs({padding:5}),ls(e.offset),ms({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),p=()=>{e.disabled||n.value||(n.value=!0)},g=y=>{n.value&&y&&(n.value=!1)},d=y=>{u.value=y},h={mouseenter:p,mouseleave:g,focus:p,blur:g};return Jr(f,y=>{var S;(S=u.value)!=null&&S.contains(y.target)||g()}),(y,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(y.$slots,"default",{setRef:d,show:p,hide:g,events:h}),r.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(m),top:r.unref(s)?`${r.unref(s)}px`:"",left:r.unref(a)?`${r.unref(a)}px`:""})},[r.createVNode(r.Transition,{name:"transition-fade",mode:"out-in"},{default:r.withCtx(()=>[n.value?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(["floating-content",[`is-${e.theme}`]])},[r.renderSlot(y.$slots,"content",{close:g},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(m),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,ps)],64))}},hs=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],gs={key:0},ys=["colspan"],bs={key:1},ws=["colspan"],ze={__name:"DataTable",props:{columns:{type:Object,default:()=>({})},rows:{type:Array,default:()=>[]},sort:{type:Object,default:()=>({})},isLoading:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null}},emits:["sort"],setup(t,{emit:e}){const n=t,{isLoading:o,appendTo:a}=r.toRefs(n),s=rn(o,{delay:Vn}),i=e,{t:l}=it(),c=ct("table"),u=r.computed(()=>n.columns),f=r.computed(()=>Object.keys(n.columns).length),m=(p,g)=>{p.sortOrders&&i("sort",{target:g,orders:p.sortOrders})};return(p,g)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(c))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(d,h)=>(r.openBlock(),r.createBlock(Ie,{key:h,placement:"top",content:d.tooltip,disabled:!d.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:y,show:S,hide:O})=>[r.createElementVNode("th",{ref_for:!0,ref:y,class:r.normalizeClass([[d.class],{"is-active":h===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(dt),"is-sortable":d.sortOrders,"is-desc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(w),"is-asc":h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)}]),onMouseenter:S,onMouseleave:O,onFocus:S,onBlur:O,onClick:E=>m(d,h),onKeydown:[r.withKeys(r.withModifiers(E=>m(d,h),["prevent"]),["space"]),r.withKeys(r.withModifiers(E=>m(d,h),["prevent"]),["enter"])],tabindex:d.sortOrders?0:-1,role:"button"},[r.renderSlot(p.$slots,`header-${h}`,{column:d},()=>[r.createTextVNode(r.toDisplayString(d.label),1)]),d.sortOrders&&h!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(Gn),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(dt)?(r.openBlock(),r.createBlock(r.unref(Gn),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(w)?(r.openBlock(),r.createBlock(r.unref(Oa),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),h===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)?(r.openBlock(),r.createBlock(r.unref(Na),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,hs)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(d,h)=>(r.openBlock(),r.createElementBlock("tr",{key:h,class:r.normalizeClass(d.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(y,S)=>(r.openBlock(),r.createElementBlock("td",{key:S,class:r.normalizeClass([[y.class],{"is-active":S===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(dt),"is-zero":d[S]==0}])},[r.renderSlot(p.$slots,`cell-${S}`,{row:d,prop:S},()=>[r.createTextVNode(r.toDisplayString(d[S]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",gs,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(p.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.loading")),1)])],8,ys)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",bs,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(p.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.noData")),1)])],8,ws)])])):r.createCommentVNode("",!0)],2))}},Ss={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ts=r.createElementVNode("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"},null,-1),_s=r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),ks=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1),As=[Ts,_s,ks];function Os(t,e){return r.openBlock(),r.createElementBlock("svg",Ss,[...As])}const Es={render:Os},xs={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:o}=it(),a=ct("error-notice"),s=r.computed(()=>{var i;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(i=e.error)==null?void 0:i.message}`});return(i,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(Es),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function or(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g).map(e=>e.toLowerCase()).join("-")}const _t=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return Ee(Pt(".",o),e)})},ar=Symbol("ErrorProviderContext"),sr=()=>{const t=r.ref(""),e=r.ref({}),n=s=>{console.error({error:s}),t.value=s.message||s.error.message,e.value={message:s.message,key:s.key||or(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(ar,a),window.onerror=s=>{console.error("WINDOW_ONERROR:",s)},r.onErrorCaptured((s,i,l)=>{console.error("onErrorCaptured:",s,i,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}},Re=()=>{const t=Ps();return{onError:t.onError,reset:t.reset}},Ps=()=>{const t=r.inject(ar,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},vs={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=sr();return(a,s)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},Ns={errors:{"undefined-column":"A(z) {column} oszlop nem létezik!","invalid-season-name":"Érvénytelen szezon név","api-key-not-found":"API Kulcs nem megfelelő"},common:{loading:"Töltődés...",noData:"Nincs megjeleníthető adat",selectTimezone:"*Minden időpont a számítógép időzónája szerint jelenik meg ({timezone}). Váltás: ",hungary:"Magyarország",romania:"Románia",shootoutShort:"SU.",overtimeShort:"HU.",all:"Mind",report:"Jegyzőkönyv",video:"Videó"},additionalText:{inheritedPoints:{prependix:"A megelőző bajnokság szakaszban elért eredménye alapján",content:"{team} csapata {points}",appendix:"többletponttal rendelkezik."},penaltyPoints:{prependix:"* Fegyelmi Bizottság döntése alapján:",content:"{team} csapatától {points} pont",appendix:"levonva."}},table:{blank:"#",team:{short:"Csapat",tooltip:"Csapatnév"},game:{short:"GP",tooltip:"Mérkőzésszám"},wins:{short:"W",tooltip:"Győzelem"},draw:{short:"D",tooltip:"Döntetlen"},otw:{short:"OTW",tooltip:"Győzelem Hosszabbításban"},sow:{short:"SOW",tooltip:"Győzelem Szétlövésben"},sol:{short:"SOL",tooltip:"Vereség Szétlövésben"},otl:{short:"OTL",tooltip:"Vereség Hosszabbításban"},losses:{short:"L",tooltip:"Vereség"},goalFor:{short:"GF",tooltip:"Szerzett Gól"},goalAgainst:{short:"GA",tooltip:"Kapott Gól"},goalDiff:{short:"GD",tooltip:"Gólkülönbség"},name:{short:"Név",tooltip:"Játékosnév"},goals:{short:"G",tooltip:"Gólok"},assists:{short:"A",tooltip:"Gólpasszok"},points:{short:"P",tooltip:"Pontok"},plusMinus:{short:"+/-",tooltip:"Plussz/Minusz"},sog:{short:"S",tooltip:"Lövések"},sogPercent:{short:"S%",tooltip:"Lövés Hatékonyság"},gameName:{short:"#",tooltip:"Mérkőzés Sorszáma"},gameDate:{short:"Dátum",tooltip:"Mérkőzés Dátuma"},gameDateTime:{short:"*Idő ({offsetName})",tooltip:"Mérkőzés kezdési ideje (Zóna neve)"},homeTeam:{short:"Hazai",tooltip:"Hazai Csapat"},awayTeam:{short:"Vendég",tooltip:"Vendég Csapat"},location:{short:"Helyszín",tooltip:"Mérkőzés Helyszíne"},broadcast:{short:"TV",tooltip:"TV Közvetítés"},minorPenalties:{short:"MINOR",tooltip:"Kisbüntetés (2p)"},majorPenalties:{short:"MAJOR",tooltip:"Büntetés (5p)"},misconducts:{short:"MISC",tooltip:"Fegyelmi büntetés (10p)"},gameMisconducts:{short:"GA-MI",tooltip:"Fegyelmi büntetés (20p)"},matchPenalties:{short:"MATCH",tooltip:"Végleges kiállítások (25p)"},pim:{short:"BÜP",tooltip:"Büntetés Percek"},pimPerGame:{short:"BÜP/M",tooltip:"Mérkőzésenkénti Büntetés Percek"},gpgk:{short:"GP",tooltip:"Mérkőzésre Nevezve"},gpi:{short:"GPI",tooltip:"Mérkőzésen Játszott"},toi:{short:"TOI",tooltip:"Jégen Töltött Idő"},toiPercent:{short:"TOI%",tooltip:"Jégen Töltött Idő Százalék"},ga:{short:"GA",tooltip:"Kapott Gól"},gaa:{short:"GAA",tooltip:"Kapott Gólátlag"},sa:{short:"SA",tooltip:"Kapott Lövés"},svs:{short:"SVS",tooltip:"Védett Lövés"},svsPercent:{short:"VH%",tooltip:"Védés Hatékonyság"},homeHeader:{short:"Hazai:",tooltip:""},awayHeader:{short:"Vendég:",tooltip:""},totalHeader:{short:"Összes:",tooltip:""},homeGame:{short:"M",tooltip:"Hazai Mérkőzés"},awayGame:{short:"M",tooltip:"Vendég Mérkőzés"},totalGame:{short:"M",tooltip:"Összes Mérkőzés"},homeAttendance:{short:"Nézőszám",tooltip:"Hazai Néző"},awayAttendance:{short:"Nézőszám",tooltip:"Vendég Néző"},totalAttendance:{short:"Nézőszám",tooltip:"Összes Néző"},homeAttendanceAvg:{short:"Átlag",tooltip:"Hazi Néző Átlag"},awayAttendanceAvg:{short:"Átlag",tooltip:"Vendég Néző Átlag"},totalAttendanceAvg:{short:"Átlag",tooltip:"Összes Néző Átlag"},powerplayDisadvantages:{short:"DVG",tooltip:"Emberhátrányok"},dvgTime:{short:"DVG-T",tooltip:"Emberhátrányban Töltött Idő"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Szimpla emberhátrányban töltött idő"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Kettős emberhátrányban töltött idő"},ppga:{short:"PPGA",tooltip:"Emberhátrányban kapott gólok"},shgf:{short:"SHGF",tooltip:"Emberhátrányban szerzett gól"},pkPercent:{short:"PK%",tooltip:"Emberhátrány kivédekezés"},adv:{short:"ADV",tooltip:"Emberelőnyök száma"},advTime:{short:"ADV-T",tooltip:"Emberelőnyben töltött idő"},advTimePP1:{short:"ADV-T PP1",tooltip:"Szimpla emberelőnyben töltött idő"},advTimePP2:{short:"ADV-T PP2",tooltip:"Kettős emberelőnyben töltött idő"},ppgf:{short:"PPGF",tooltip:"Emberelőnyben szerzett gólok"},shga:{short:"SHGA",tooltip:"Emberelőnyben kapott gólok"},ppPercent:{short:"PP%",tooltip:"Emberelőny kihasználás"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Átlagos kapott lövésszám"},jerseyNumber:{short:"#",tooltip:"Mezszám"},row:{short:"Sor",tooltip:"Sor"},position:{short:"Po",tooltip:"Poszt"},teamOfficials:{short:"Hivatalos Személyek",tooltip:"Hivatalos Személyek"},score:{short:"Eredmény",tooltip:"Aktuális eredmény"},opponent:{short:"Ellenfél",tooltip:"Ellenfél"},result:{short:"Eredmény",tooltip:"Végeredmény"},resultType:{short:"#",tooltip:"Végeredmény típusa"}},game:{data:{localTime:"Helyszín szerinti idő"},status:{jury:"Versenybíróság",delayed:"Elhalasztva"},period:{wu:"Bemelegítés",pre:"Bemelegítés vége",p1:"I. játékrész",p1_int:"I. játékrész vége",p2:"II. játékrész",p2_int:"II. játékrész vége",p3:"III. játékrész",p3_int:"III. játékrész vége",p4:"IV. játékrész",p4_int:"IV. játékrész vége",p5:"V. játékrész",p5_int:"V. játékrész vége",p6:"VI. játékrész",p6_int:"VI. játékrész vége",ot:"Hosszabbítás",ot_int:"Hosszabbítás vége",so:"Szétlövés",so_int:"Szétlövés vége",end:"Végeredmény",Bemelegítés:"Bemelegítés","Bemelegítés vége":"Bemelegítés Vége","1. harmad":"I. harmad","1. harmad vége":"I. harmad Vége","2. harmad":"II. harmad","2. harmad vége":"II. harmad Vége","3. harmad":"III. harmad","3. harmad vége":"III. harmad Vége","4. harmad":"IV. harmad","4. harmad vége":"IV. harmad Vége","5. harmad":"V. harmad","5. harmad vége":"V. harmad Vége","6. harmad":"VI. harmad","6. harmad vége":"VI. harmad Vége",Hosszabbítás:"Hosszabbítás","Hosszabbítás vége":"Hosszabbítás vége",Büntetők:"Szétlövés","Büntetők vége":"Szétlövés vége",Végeredmény:"Végeredmény",Szétlövés:"Szétlövés"}}},$s={errors:{"undefined-column":"The {column} column is not exists!","invalid-season-name":"Invalid season name","api-key-not-found":"API Key not found"},common:{loading:"Loading...",noData:"No data to display",selectTimezone:"*All times are displayed according to your computer's time zone ({timezone}). Change: ",hungary:"Hungary",romania:"Romania",shootoutShort:"SO",overtimeShort:"OT",all:"All",report:"Report Sheet",video:"Video"},additionalText:{inheritedPoints:{prependix:"",content:"{team} has {points} extra point(s)",appendix:"based on its results in the previous championship phase."},penaltyPoints:{prependix:"* ",content:"{points} point(s) deducted from team {team}",appendix:"based on the decision of the Disciplinary Committee."}},table:{blank:"#",team:{short:"Team",tooltip:"Team name"},game:{short:"GP",tooltip:"Game Played"},wins:{short:"W",tooltip:"Wins"},draw:{short:"D",tooltip:"Draw"},otw:{short:"OTW",tooltip:"Overtime Wins"},sow:{short:"SOW",tooltip:"Shoot Out Wins"},sol:{short:"SOL",tooltip:"Shoot Out Losses"},otl:{short:"OTL",tooltip:"Overtime Losses"},losses:{short:"L",tooltip:"Losses"},goalFor:{short:"GF",tooltip:"Goals For"},goalAgainst:{short:"GA",tooltip:"Goals Against"},goalDiff:{short:"GD",tooltip:"Goal Differential"},points:{short:"P",tooltip:"Points"},name:{short:"Name",tooltip:"Player name"},goals:{short:"G",tooltip:"Goals"},assists:{short:"A",tooltip:"Assists"},plusMinus:{short:"+/-",tooltip:"Plus/Minus"},sog:{short:"S",tooltip:"Shots on Goal"},sogPercent:{short:"S%",tooltip:"Shooting percentage"},gameName:{short:"#",tooltip:"Game name"},gameDate:{short:"Date",tooltip:"Scheduled Date"},gameDateTime:{short:"*Time ({offsetName})",tooltip:"Scheduled Time (Offset Name)"},homeTeam:{short:"Home",tooltip:"Home Team"},awayTeam:{short:"Away",tooltip:"Away Team"},location:{short:"Location",tooltip:"Game Location"},broadcast:{short:"Broadcast",tooltip:"Television Broadcast"},minorPenalties:{short:"MINOR",tooltip:"Penalties Minor"},majorPenalties:{short:"MAJOR",tooltip:"Penalties Major"},misconducts:{short:"MISC",tooltip:"Penalties Misconduct"},gameMisconducts:{short:"GA-MI",tooltip:"Penalties Game Misconduct"},matchPenalties:{short:"MATCH",tooltip:"Penalties Match"},pim:{short:"PIM",tooltip:"Penalty Minutes"},pimPerGame:{short:"PIM/G",tooltip:"Penalty Minutes per Game"},gpgk:{short:"GP",tooltip:"Games Played"},gpi:{short:"GPI",tooltip:"Games Played In"},toi:{short:"TOI",tooltip:"Time On Ice"},toiPercent:{short:"TOI%",tooltip:"Time On Ice as Percentage"},ga:{short:"GA",tooltip:"Goals Against"},gaa:{short:"GAA",tooltip:"Goals Against Average"},sa:{short:"SA",tooltip:"Shots Against"},svs:{short:"SVS",tooltip:"Saves"},svsPercent:{short:"SV%",tooltip:"Save Percentage"},homeHeader:{short:"Home:",tooltip:""},awayHeader:{short:"Away:",tooltip:""},totalHeader:{short:"Total:",tooltip:""},homeGame:{short:"GP",tooltip:"Home Games Played"},awayGame:{short:"GP",tooltip:"Away Games Played"},totalGame:{short:"GP",tooltip:"Total Games Played"},homeAttendance:{short:"Att",tooltip:"Home Attendance"},awayAttendance:{short:"Att",tooltip:"Away Attendance"},totalAttendance:{short:"Att",tooltip:"Total Attendance"},homeAttendanceAvg:{short:"Avg",tooltip:"Home Average Attendance"},awayAttendanceAvg:{short:"Avg",tooltip:"Away Average Attendance"},totalAttendanceAvg:{short:"Avg",tooltip:"Total Average Attendance"},powerplayDisadvantages:{short:"DVG",tooltip:"Disadvantages (Number of Times Shorthanded)"},dvgTime:{short:"DVG-T",tooltip:"Disadvantages Time"},dvgTimePP1:{short:"DVG-T PP1",tooltip:"Disadvantages Time (Period of PP1)"},dvgTimePP2:{short:"DVG-T PP2",tooltip:"Disadvantages Time (Period of PP2)"},ppga:{short:"PPGA",tooltip:"Powerplay Goals Against"},shgf:{short:"SHGF",tooltip:"Shorthanded Goals For"},pkPercent:{short:"PK%",tooltip:"Penalty Killing Percentage"},adv:{short:"ADV",tooltip:"Advantages (Times on Powerplay)"},advTime:{short:"ADV-T",tooltip:"Advantages Time (Period of Powerplay)"},advTimePP1:{short:"ADV-T PP1",tooltip:"Advantages Time (Period of PP1)"},advTimePP2:{short:"ADV-T PP2",tooltip:"Advantages Time (Period of PP2)"},ppgf:{short:"PPGF",tooltip:"Powerplay Goals For"},shga:{short:"SHGA",tooltip:"Shorthanded Goals Against"},ppPercent:{short:"PP%",tooltip:"Powerplay Percentage"},gfgp:{short:"GF/GP",tooltip:"Szerzett gólátlag"},gagp:{short:"GA/GP",tooltip:"Kapott gólátlag"},sogp:{short:"Shots/GP",tooltip:"Átlagos lövésszám"},sagp:{short:"SA/GP",tooltip:"Shots Against per Game"},jerseyNumber:{short:"#",tooltip:"Jersey Number"},row:{short:"Row",tooltip:"Row"},position:{short:"Position",tooltip:"Position"},teamOfficials:{short:"Team officials",tooltip:"Team officials"},score:{short:"Score",tooltip:"Actual Game Score"},opponent:{short:"Opponent",tooltip:"Opponent"},result:{short:"Result",tooltip:"Result"},resultType:{short:"#",tooltip:"Result Type"}},game:{data:{localTime:"Game local time"},status:{jury:"Jury result",delayed:"Game delayed"},period:{wu:"Preparation",pre:"Preparation Ended",p1:"First Period",p1_int:"First Period Ended",p2:"Second Period",p2_int:"Second Period Ended",p3:"Third Period",p3_int:"Third Period Ended",p4:"Fourth Period",p4_int:"Fourth Period Ended",p5:"Fifth Period",p5_int:"Fifth Period Ended",p6:"Sixth Period",p6_int:"Sixth Period Ended",ot:"Overtime",ot_int:"Overtime Ended",so:"Shoot Out",so_int:"Shoot Out Ended",end:"Game Ended",Bemelegítés:"Warm-up","Bemelegítés vége":"Warm-up End","1. harmad":"First period","1. harmad vége":"First period End","2. harmad":"Second period","2. harmad vége":"Second period End","3. harmad":"Third period","3. harmad vége":"Third period End","4. harmad":"IV. period","4. harmad vége":"IV. period End","5. harmad":"V. period","5. harmad vége":"V. period End","6. harmad":"VI. period","6. harmad vége":"VI. period End",Hosszabbítás:"Overtime","Hosszabbítás vége":"Overtime End",Büntetőlövések:"Penalty Shot",Végeredmény:"Game Completed",Szétlövés:"Shoot Out"}}},Ds=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},Cs=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=ia({hu:Ns,en:$s},t.messages),{translate:n}=vn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function Ms(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const Ls=Ds(Cs,[["render",Ms]]),Bs=["src"],Is=["src","title"],kt=Object.assign({inheritAttrs:!1},{__name:"Image",props:{src:{type:String,default:""},title:{type:String,default:""},defaultSrc:{type:String,default:""}},setup(t){const e=t,{defaultSrc:n}=r.toRefs(e),o=r.ref({src:e.src}),{error:a,isReady:s}=eo(o,{resetOnExecute:!1,shallow:!1});return(i,l)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.unref(a)&&r.unref(n)?(r.openBlock(),r.createElementBlock("img",{key:0,src:r.unref(n),class:r.normalizeClass(["is-loaded is-default",i.$attrs.class])},null,10,Bs)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([i.$attrs.class,{"is-loaded":r.unref(s)}]),title:e.title,loading:"lazy"},null,10,Is))],64))}}),zs={style:{"text-align":"center"}},Ve={__name:"LoadingIndicator",setup(t){const{t:e}=it();return(n,o)=>(r.openBlock(),r.createElementBlock("div",zs,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Rs({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=tt}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const f=r.unref(t)-1,m=Array.from({length:s.value},(d,h)=>h+1),p=Math.floor(o/2);let g=Math.max(f-p,0);return g+o>=s.value&&(g=Math.max(s.value-o,0)),m.slice(g,g+o)}),l=f=>{const m=r.unref(t)+f;u(m)&&a(m)},c=f=>{u(f)&&a(f)},u=f=>f<=s.value&&f>0;return{page:t,range:i,pageCount:s,goTo:c,pageStep:l}}const Vs={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Gs=r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1),js=[Gs];function Fs(t,e){return r.openBlock(),r.createElementBlock("svg",Vs,[...js])}const Ys={render:Fs},Us={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Hs=r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1),Ws=[Hs];function Ks(t,e){return r.openBlock(),r.createElementBlock("svg",Us,[...Ws])}const qs={render:Ks},Zs=["disabled"],Xs=["disabled"],Js={key:1,class:"is-disabled"},Qs=["disabled","onClick"],ti={key:2,class:"is-disabled"},ei=[r.createElementVNode("span",null,"...",-1)],ni=["disabled"],ri=["disabled"],oi={__name:"Paginator",props:{page:{type:Number,required:!1,default:0,validator:t=>t>=0},itemsPerPage:{type:Number,required:!1,default:10,validator:t=>t>0},totalItems:{type:Number,required:!0,validator:t=>t>=0},rangeLength:{type:Number,default:3,validator:t=>t>=2},isCompact:{type:Boolean,default:!1}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,a=ct("paginator"),{page:s,pageCount:i,range:l,goTo:c,pageStep:u}=Rs({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:f=>o("change",f)});return(f,m)=>r.unref(i)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(a))},[r.createElementVNode("button",{type:"button",disabled:r.unref(s)===1,onClick:m[0]||(m[0]=p=>r.unref(u)(-1))},[r.renderSlot(f.$slots,"prev",{},()=>[r.createVNode(r.unref(Ys),{class:"icon paginator-left"})])],8,Zs),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(s)===1,onClick:m[1]||(m[1]=p=>r.unref(c)(1))},"1",8,Xs)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Js,"...")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),p=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:p,class:r.normalizeClass({"is-active":p===r.unref(s)}),disabled:p===r.unref(s),onClick:g=>r.unref(c)(p)},r.toDisplayString(p),11,Qs))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ti,ei)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[2]||(m[2]=p=>r.unref(c)(r.unref(i)))},r.toDisplayString(r.unref(i)),9,ni)),r.createElementVNode("button",{type:"button",disabled:r.unref(s)===r.unref(i),onClick:m[3]||(m[3]=r.withModifiers(p=>r.unref(u)(1),["prevent"]))},[r.renderSlot(f.$slots,"next",{},()=>[r.createVNode(r.unref(qs),{class:"icon paginator-left"})])],8,ri)],2)):r.createCommentVNode("",!0)}},Ge={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=ct("table-responsive");return(o,a)=>(r.openBlock(),r.createElementBlock("div",{ref_key:"el",ref:e,class:r.normalizeClass(r.unref(n))},[r.renderSlot(o.$slots,"default",{el:e.value})],2))}};var J=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ot(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ir={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",f="week",m="month",p="quarter",g="year",d="date",h="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,O={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var A=["th","st","nd","rd"],T=x%100;return"["+x+(A[(T-20)%10]||A[T]||A[0])+"]"}},E=function(x,A,T){var _=String(x);return!_||_.length>=A?x:""+Array(A+1-_.length).join(T)+x},P={s:E,z:function(x){var A=-x.utcOffset(),T=Math.abs(A),_=Math.floor(T/60),k=T%60;return(A<=0?"+":"-")+E(_,2,"0")+":"+E(k,2,"0")},m:function x(A,T){if(A.date()<T.date())return-x(T,A);var _=12*(T.year()-A.year())+(T.month()-A.month()),k=A.clone().add(_,m),$=T-k<0,N=A.clone().add(_+($?-1:1),m);return+(-(_+(T-k)/($?k-N:N-k))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:m,y:g,w:f,d:u,D:d,h:c,m:l,s:i,ms:s,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},v="en",C={};C[v]=O;var z="$isDayjsObject",G=function(x){return x instanceof U||!(!x||!x[z])},Y=function x(A,T,_){var k;if(!A)return v;if(typeof A=="string"){var $=A.toLowerCase();C[$]&&(k=$),T&&(C[$]=T,k=$);var N=A.split("-");if(!k&&N.length>1)return x(N[0])}else{var B=A.name;C[B]=A,k=B}return!_&&k&&(v=k),k||!_&&v},L=function(x,A){if(G(x))return x.clone();var T=typeof A=="object"?A:{};return T.date=x,T.args=arguments,new U(T)},D=P;D.l=Y,D.i=G,D.w=function(x,A){return L(x,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var U=function(){function x(T){this.$L=Y(T.locale,null,!0),this.parse(T),this.$x=this.$x||T.x||{},this[z]=!0}var A=x.prototype;return A.parse=function(T){this.$d=function(_){var k=_.date,$=_.utc;if(k===null)return new Date(NaN);if(D.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var N=k.match(y);if(N){var B=N[2]-1||0,F=(N[7]||"0").substring(0,3);return $?new Date(Date.UTC(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,F)):new Date(N[1],B,N[3]||1,N[4]||0,N[5]||0,N[6]||0,F)}}return new Date(k)}(T),this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return D},A.isValid=function(){return this.$d.toString()!==h},A.isSame=function(T,_){var k=L(T);return this.startOf(_)<=k&&k<=this.endOf(_)},A.isAfter=function(T,_){return L(T)<this.startOf(_)},A.isBefore=function(T,_){return this.endOf(_)<L(T)},A.$g=function(T,_,k){return D.u(T)?this[_]:this.set(k,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,_){var k=this,$=!!D.u(_)||_,N=D.p(T),B=function(Et,q){var gt=D.w(k.$u?Date.UTC(k.$y,q,Et):new Date(k.$y,q,Et),k);return $?gt:gt.endOf(u)},F=function(Et,q){return D.w(k.toDate()[Et].apply(k.toDate("s"),($?[0,0,0,0]:[23,59,59,999]).slice(q)),k)},H=this.$W,K=this.$M,Q=this.$D,Ct="set"+(this.$u?"UTC":"");switch(N){case g:return $?B(1,0):B(31,11);case m:return $?B(1,K):B(0,K+1);case f:var Ot=this.$locale().weekStart||0,Ut=(H<Ot?H+7:H)-Ot;return B($?Q-Ut:Q+(6-Ut),K);case u:case d:return F(Ct+"Hours",0);case c:return F(Ct+"Minutes",1);case l:return F(Ct+"Seconds",2);case i:return F(Ct+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,_){var k,$=D.p(T),N="set"+(this.$u?"UTC":""),B=(k={},k[u]=N+"Date",k[d]=N+"Date",k[m]=N+"Month",k[g]=N+"FullYear",k[c]=N+"Hours",k[l]=N+"Minutes",k[i]=N+"Seconds",k[s]=N+"Milliseconds",k)[$],F=$===u?this.$D+(_-this.$W):_;if($===m||$===g){var H=this.clone().set(d,1);H.$d[B](F),H.init(),this.$d=H.set(d,Math.min(this.$D,H.daysInMonth())).$d}else B&&this.$d[B](F);return this.init(),this},A.set=function(T,_){return this.clone().$set(T,_)},A.get=function(T){return this[D.p(T)]()},A.add=function(T,_){var k,$=this;T=Number(T);var N=D.p(_),B=function(K){var Q=L($);return D.w(Q.date(Q.date()+Math.round(K*T)),$)};if(N===m)return this.set(m,this.$M+T);if(N===g)return this.set(g,this.$y+T);if(N===u)return B(1);if(N===f)return B(7);var F=(k={},k[l]=o,k[c]=a,k[i]=n,k)[N]||1,H=this.$d.getTime()+T*F;return D.w(H,this)},A.subtract=function(T,_){return this.add(-1*T,_)},A.format=function(T){var _=this,k=this.$locale();if(!this.isValid())return k.invalidDate||h;var $=T||"YYYY-MM-DDTHH:mm:ssZ",N=D.z(this),B=this.$H,F=this.$m,H=this.$M,K=k.weekdays,Q=k.months,Ct=k.meridiem,Ot=function(q,gt,Ht,de){return q&&(q[gt]||q(_,$))||Ht[gt].slice(0,de)},Ut=function(q){return D.s(B%12||12,q,"0")},Et=Ct||function(q,gt,Ht){var de=q<12?"AM":"PM";return Ht?de.toLowerCase():de};return $.replace(S,function(q,gt){return gt||function(Ht){switch(Ht){case"YY":return String(_.$y).slice(-2);case"YYYY":return D.s(_.$y,4,"0");case"M":return H+1;case"MM":return D.s(H+1,2,"0");case"MMM":return Ot(k.monthsShort,H,Q,3);case"MMMM":return Ot(Q,H);case"D":return _.$D;case"DD":return D.s(_.$D,2,"0");case"d":return String(_.$W);case"dd":return Ot(k.weekdaysMin,_.$W,K,2);case"ddd":return Ot(k.weekdaysShort,_.$W,K,3);case"dddd":return K[_.$W];case"H":return String(B);case"HH":return D.s(B,2,"0");case"h":return Ut(1);case"hh":return Ut(2);case"a":return Et(B,F,!0);case"A":return Et(B,F,!1);case"m":return String(F);case"mm":return D.s(F,2,"0");case"s":return String(_.$s);case"ss":return D.s(_.$s,2,"0");case"SSS":return D.s(_.$ms,3,"0");case"Z":return N}return null}(q)||N.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,_,k){var $,N=this,B=D.p(_),F=L(T),H=(F.utcOffset()-this.utcOffset())*o,K=this-F,Q=function(){return D.m(N,F)};switch(B){case g:$=Q()/12;break;case m:$=Q();break;case p:$=Q()/3;break;case f:$=(K-H)/6048e5;break;case u:$=(K-H)/864e5;break;case c:$=K/a;break;case l:$=K/o;break;case i:$=K/n;break;default:$=K}return k?$:D.a($)},A.daysInMonth=function(){return this.endOf(m).$D},A.$locale=function(){return C[this.$L]},A.locale=function(T,_){if(!T)return this.$L;var k=this.clone(),$=Y(T,_,!0);return $&&(k.$L=$),k},A.clone=function(){return D.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},x}(),at=U.prototype;return L.prototype=at,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",m],["$y",g],["$D",d]].forEach(function(x){at[x[1]]=function(A){return this.$g(A,x[0],x[1])}}),L.extend=function(x,A){return x.$i||(x(A,U,L),x.$i=!0),L},L.locale=Y,L.isDayjs=G,L.unix=function(x){return L(1e3*x)},L.en=C[v],L.Ls=C,L.p={},L})})(ir);var lr=ir.exports;const M=ot(lr);var cr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(s,i,l){var c=i.prototype;l.utc=function(h){var y={date:h,utc:!0,args:arguments};return new i(y)},c.utc=function(h){var y=l(this.toDate(),{locale:this.$L,utc:!0});return h?y.add(this.utcOffset(),n):y},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(h){h.utc&&(this.$u=!0),this.$utils().u(h.$offset)||(this.$offset=h.$offset),u.call(this,h)};var f=c.init;c.init=function(){if(this.$u){var h=this.$d;this.$y=h.getUTCFullYear(),this.$M=h.getUTCMonth(),this.$D=h.getUTCDate(),this.$W=h.getUTCDay(),this.$H=h.getUTCHours(),this.$m=h.getUTCMinutes(),this.$s=h.getUTCSeconds(),this.$ms=h.getUTCMilliseconds()}else f.call(this)};var m=c.utcOffset;c.utcOffset=function(h,y){var S=this.$utils().u;if(S(h))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof h=="string"&&(h=function(v){v===void 0&&(v="");var C=v.match(o);if(!C)return null;var z=(""+C[0]).match(a)||["-",0,0],G=z[0],Y=60*+z[1]+ +z[2];return Y===0?0:G==="+"?Y:-Y}(h),h===null))return this;var O=Math.abs(h)<=16?60*h:h,E=this;if(y)return E.$offset=O,E.$u=h===0,E;if(h!==0){var P=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(E=this.local().add(O+P,n)).$offset=O,E.$x.$localOffset=P}else E=this.utc();return E};var p=c.format;c.format=function(h){var y=h||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return p.call(this,y)},c.valueOf=function(){var h=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*h},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var g=c.toDate;c.toDate=function(h){return h==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():g.call(this)};var d=c.diff;c.diff=function(h,y,S){if(h&&this.$u===h.$u)return d.call(this,h,y,S);var O=this.local(),E=l(h).local();return d.call(O,E,y,S)}}})})(cr);var ai=cr.exports;const si=ot(ai);var ur={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,s,i){var l,c=function(p,g,d){d===void 0&&(d={});var h=new Date(p),y=function(S,O){O===void 0&&(O={});var E=O.timeZoneName||"short",P=S+"|"+E,v=o[P];return v||(v=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:S,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:E}),o[P]=v),v}(g,d);return y.formatToParts(h)},u=function(p,g){for(var d=c(p,g),h=[],y=0;y<d.length;y+=1){var S=d[y],O=S.type,E=S.value,P=n[O];P>=0&&(h[P]=parseInt(E,10))}var v=h[3],C=v===24?0:v,z=h[0]+"-"+h[1]+"-"+h[2]+" "+C+":"+h[4]+":"+h[5]+":000",G=+p;return(i.utc(z).valueOf()-(G-=G%1e3))/6e4},f=s.prototype;f.tz=function(p,g){p===void 0&&(p=l);var d,h=this.utcOffset(),y=this.toDate(),S=y.toLocaleString("en-US",{timeZone:p}),O=Math.round((y-new Date(S))/1e3/60),E=15*-Math.round(y.getTimezoneOffset()/15)-O;if(!Number(E))d=this.utcOffset(0,g);else if(d=i(S,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(E,!0),g){var P=d.utcOffset();d=d.add(h-P,"minute")}return d.$x.$timezone=p,d},f.offsetName=function(p){var g=this.$x.$timezone||i.tz.guess(),d=c(this.valueOf(),g,{timeZoneName:p}).find(function(h){return h.type.toLowerCase()==="timezonename"});return d&&d.value};var m=f.startOf;f.startOf=function(p,g){if(!this.$x||!this.$x.$timezone)return m.call(this,p,g);var d=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(d,p,g).tz(this.$x.$timezone,!0)},i.tz=function(p,g,d){var h=d&&g,y=d||g||l,S=u(+i(),y);if(typeof p!="string")return i(p).tz(y);var O=function(C,z,G){var Y=C-60*z*1e3,L=u(Y,G);if(z===L)return[Y,z];var D=u(Y-=60*(L-z)*1e3,G);return L===D?[Y,L]:[C-60*Math.min(L,D)*1e3,Math.max(L,D)]}(i.utc(p,h).valueOf(),S,y),E=O[0],P=O[1],v=i(E).utcOffset(P);return v.$x.$timezone=y,v},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(p){l=p}}})})(ur);var ii=ur.exports;const li=ot(ii);var dr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o){var a=o.prototype,s=a.format;a.format=function(i){var l=this,c=this.$locale();if(!this.isValid())return s.bind(this)(i);var u=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(m){switch(m){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return u.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),m==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return m}});return s.bind(this)(f)}}})})(dr);var ci=dr.exports;const ui=ot(ci);var fr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})})(fr);var di=fr.exports;const fi=ot(di);var mr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),f=a(i),m=(c=c||"()")[0]==="(",p=c[1]===")";return(m?this.isAfter(u,l):!this.isBefore(u,l))&&(p?this.isBefore(f,l):!this.isAfter(f,l))||(m?this.isBefore(u,l):!this.isAfter(u,l))&&(p?this.isAfter(f,l):!this.isBefore(f,l))}}})})(mr);var mi=mr.exports;const pi=ot(mi);var pr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o,a){o.prototype.isToday=function(){var s="YYYY-MM-DD",i=a();return this.format(s)===i.format(s)}}})})(pr);var hi=pr.exports;const gi=ot(hi);var hr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o){o.prototype.weekday=function(a){var s=this.$locale().weekStart||0,i=this.$W,l=(i<s?i+7:i)-s;return this.$utils().u(a)?l:this.subtract(l,"day").add(a,"day")}}})})(hr);var yi=hr.exports;const bi=ot(yi);var gr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o,a){var s=function(i,l){if(!l||!l.length||l.length===1&&!l[0]||l.length===1&&Array.isArray(l[0])&&!l[0].length)return null;var c;l.length===1&&l[0].length>0&&(l=l[0]),c=(l=l.filter(function(f){return f}))[0];for(var u=1;u<l.length;u+=1)l[u].isValid()&&!l[u][i](c)||(c=l[u]);return c};a.max=function(){var i=[].slice.call(arguments,0);return s("isAfter",i)},a.min=function(){var i=[].slice.call(arguments,0);return s("isBefore",i)}}})})(gr);var wi=gr.exports;const Si=ot(wi);var yr={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(o,a,s){var i=a.prototype,l=i.format;s.en.formats=n,i.format=function(c){c===void 0&&(c="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,f=function(m,p){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,d,h){var y=h&&h.toUpperCase();return d||p[h]||n[h]||p[y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,O,E){return O||E.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,f)}}})})(yr);var Ti=yr.exports;const _i=ot(Ti);var br={exports:{}};(function(t,e){(function(n,o){t.exports=o()})(J,function(){return function(n,o,a){n=n||{};var s=o.prototype,i={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function l(u,f,m,p){return s.fromToBase(u,f,m,p)}a.en.relativeTime=i,s.fromToBase=function(u,f,m,p,g){for(var d,h,y,S=m.$locale().relativeTime||i,O=n.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],E=O.length,P=0;P<E;P+=1){var v=O[P];v.d&&(d=p?a(u).diff(m,v.d,!0):m.diff(u,v.d,!0));var C=(n.rounding||Math.round)(Math.abs(d));if(y=d>0,C<=v.r||!v.r){C<=1&&P>0&&(v=O[P-1]);var z=S[v.l];g&&(C=g(""+C)),h=typeof z=="string"?z.replace("%d",C):z(C,f,v.l,y);break}}if(f)return h;var G=y?S.future:S.past;return typeof G=="function"?G(h):G.replace("%s",h)},s.to=function(u,f){return l(u,f,this,!0)},s.from=function(u,f){return l(u,f,this)};var c=function(u){return u.$u?a.utc():a()};s.toNow=function(u){return this.to(c(this),u)},s.fromNow=function(u){return this.from(c(this),u)}}})})(br);var ki=br.exports;const Ai=ot(ki);var Oi={exports:{}};(function(t,e){(function(n,o){t.exports=o(lr)})(J,function(n){function o(i){return i&&typeof i=="object"&&"default"in i?i:{default:i}}var a=o(n),s={name:"hu",weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec".split("_"),ordinal:function(i){return i+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(i,l,c,u){return"néhány másodperc"+(u||l?"":"e")},m:function(i,l,c,u){return"egy perc"+(u||l?"":"e")},mm:function(i,l,c,u){return i+" perc"+(u||l?"":"e")},h:function(i,l,c,u){return"egy "+(u||l?"óra":"órája")},hh:function(i,l,c,u){return i+" "+(u||l?"óra":"órája")},d:function(i,l,c,u){return"egy "+(u||l?"nap":"napja")},dd:function(i,l,c,u){return i+" "+(u||l?"nap":"napja")},M:function(i,l,c,u){return"egy "+(u||l?"hónap":"hónapja")},MM:function(i,l,c,u){return i+" "+(u||l?"hónap":"hónapja")},y:function(i,l,c,u){return"egy "+(u||l?"év":"éve")},yy:function(i,l,c,u){return i+" "+(u||l?"év":"éve")}},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"}};return a.default.locale(s,null,!0),s})})(Oi),M.extend(si),M.extend(li),M.extend(ui),M.extend(Ai),M.extend(_i),M.extend(fi),M.extend(pi),M.extend(gi),M.extend(bi),M.extend(Si);const wr=()=>M.tz.guess(),At=(t="",e="",n="",o="hu")=>(n=n||M.tz.guess(),M(t).isValid()?M(t).tz(n).locale(o).format(e):""),Ft=(t="",e="",n="hu")=>{if(!M(t).isValid())return"";e=e||M.tz.guess();const a=new Intl.DateTimeFormat(Ei(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},Ei=t=>zn.get(t),je=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Sr=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Tr=t=>{const e=Math.trunc(t),n=Math.round((t-e)/10*60*10);return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Fe=(t,e="day")=>M().isSameOrBefore(M(t),e),_r=(t,e,n,o="[]")=>M(t).isBetween(e,M(n),"day",o),xi=(t,e,n="month")=>M(t).isSame(e,n),Pi=(t,e="hu")=>M(t).locale(e).toNow(!0),vi=(t,e,n="day")=>M(t).isBefore(e,n),Ni=(t,e,n="day")=>M(t).isAfter(e,n),$i=t=>M(t).isToday(),Di=t=>{const e=M().weekday(1),n=M().weekday(7);return _r(t,e,n)},Ci=t=>{const e=M(t).weekday(1),n=M(t).weekday(7);return{startDate:e,endDate:n}},Mi=(t,e)=>M(t).subtract(e,"day"),Li=(t,e)=>M(t).add(e,"day"),Bi=t=>M(t).startOf("month"),Ii=t=>M(t).endOf("month"),zi=t=>(Array.isArray(t)&&(t=t.map(e=>M(e))),M.min(t)),Ri=t=>(Array.isArray(t)&&(t=t.map(e=>M(e))),M.max(...t)),Vi=["onClick"],Gi={__name:"TimezoneSelector",props:{locale:{type:String,default:"hu"},currentZone:{type:String,required:!0}},emits:["change"],setup(t,{emit:e}){const n=t,o=e,{t:a}=it(),s=ct("timezone-selector"),i=r.computed(()=>Ft(new Date,null,n.locale)),l=wr(),c=r.computed(()=>Array.from(Rn.values()).map(f=>({...f,isActive:Ft(new Date,n.currentZone,n.locale)===Ft(new Date,f.timezone,n.locale),zoneOffsetName:Ft(new Date,f.timezone,n.locale)}))),u=f=>o("change",f);return(f,m)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(s))},[r.createVNode(r.unref($n),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:m[0]||(m[0]=r.withModifiers(p=>u(r.unref(l)),["prevent"]))},r.toDisplayString(i.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,p=>(r.openBlock(),r.createElementBlock("a",{key:p.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":p.isActive}),onClick:r.withModifiers(g=>u(p.timezone),["prevent"])},r.toDisplayString(r.unref(a)(`common.${p.countryLabelKey}`))+" ("+r.toDisplayString(p.zoneOffsetName)+") ",11,Vi))),128))],2))}},Ye=(t,e="",n={})=>{const o=r.ref(""),{t:a}=it(),s=r.computed(()=>{if(r.unref(e))try{const c=kr(r.unref(t),r.unref(e));return la(c,r.unref(t))}catch(c){o.value=c}return r.unref(t)}),i=c=>({...c,...c.label&&{label:a(c.label??"",r.unref(n))},...c.tooltip&&{tooltip:a(c.tooltip??"")}});return{columns:r.computed(()=>mt(i,s.value)),error:o}},kr=(t,e="")=>{const n=mt(ne,Pt(",",e)),o=bt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n},Ar=async(t,e,n)=>{const o=`${Dn}${r.unref(t)}?${ji(n)}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Fi(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},ji=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),Fi=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},Yi=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>Fe(u,"day");return Qe(n,()=>{if(!a)return;const u=Xo(On(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},Ui=({options:t={},transform:e=a=>a,onError:n=tt,onSuccess:o=tt})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:f,isLoading:m,execute:p}=nn(()=>Ar(a,s,r.unref(i)).then(g=>e(g)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:f,isLoading:m,execute:p}};/*! *****************************************************************************
10
10
  Copyright (c) Microsoft Corporation.
11
11
 
12
12
  Permission to use, copy, modify, and/or distribute this software for any
@@ -19,4 +19,4 @@ var MjszVbrElementsCore=function(b,r){"use strict";function $r(t){return r.getCu
19
19
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
20
20
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
21
21
  PERFORMANCE OF THIS SOFTWARE.
22
- ***************************************************************************** */function Ye(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var Ar;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Ar||(Ar={}));var Ki={type:"xstate.init"};function ce(t){return t===void 0?[]:[].concat(t)}function Or(t,e){return typeof(t=typeof t=="string"&&e&&e[t]?e[t]:t)=="string"?{type:t}:typeof t=="function"?{type:t.name,exec:t}:t}function Ue(t){return function(e){return t===e}}function qi(t){return typeof t=="string"?{type:t}:t}function Er(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Ue(t)}}function Pr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Zi(t,e){e===void 0&&(e={});var n=Ye(Pr(ce(t.states[t.initial].entry).map(function(i){return Or(i,e.actions)}),t.context,Ki),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:Ue(t.initial)},transition:function(i,l){var c,u,d=typeof i=="string"?{value:i,context:t.context}:i,m=d.value,p=d.context,g=qi(l),f=t.states[m];if(f.on){var h=ce(f.on[g.type]);"*"in f.on&&h.push.apply(h,function(_,k,$){if(arguments.length===2)for(var N,B=0,j=k.length;B<j;B++)!N&&B in k||(N||(N=Array.prototype.slice.call(k,0,B)),N[B]=k[B]);return _.concat(N||Array.prototype.slice.call(k))}([],Ye(ce(f.on["*"])),!1));try{for(var y=function(_){var k=typeof Symbol=="function"&&Symbol.iterator,$=k&&_[k],N=0;if($)return $.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&N>=_.length&&(_=void 0),{value:_&&_[N++],done:!_}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),S=y.next();!S.done;S=y.next()){var O=S.value;if(O===void 0)return Er(m,p);var E=typeof O=="string"?{target:O}:O,x=E.target,v=E.actions,C=v===void 0?[]:v,R=E.cond,G=R===void 0?function(){return!0}:R,Y=x===void 0,L=x??m,D=t.states[L];if(G(p,g)){var U=Ye(Pr((Y?ce(C):[].concat(f.exit,C,D.entry).filter(function(_){return _})).map(function(_){return Or(_,s._options.actions)}),p,g),3),ot=U[0],P=U[1],A=U[2],T=x??m;return{value:T,context:P,actions:ot,changed:x!==m||ot.length>0||A,matches:Ue(T)}}}}catch(_){c={error:_}}finally{try{S&&!S.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return Er(m,p)}};return s}const Xi=Zi({id:"sort",initial:dt,states:{[dt]:{on:{DIRECTION1:w,DIRECTION2:I}},[w]:{on:{DIRECTION1:I,DIRECTION2:dt}},[I]:{on:{DIRECTION1:dt,DIRECTION2:w}}}}),Ji=(t,e)=>{const n=e===I?"DIRECTION2":"DIRECTION1";return Xi.transition(t,n).value};function Qi(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Ji(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function tl(t=!1,e=tt,n=tt){const o=Qr();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const el=(t={})=>{const{items:e=[],element:n,offset:o=0,enabled:a=!0}=t,s=c=>Fe(c,"day"),i=()=>{var g;if(l(),!r.unref(a))return;const c=qo(An(s,"gameDate"))(r.unref(e));if(!c)return;const u=At(c.gameDate,"YYYY-MM-DD"),d=Pt(n).querySelector(`div[data-gamedate="${u}"]`);if(!d)return;const m=getComputedStyle(d).getPropertyValue("--vbr-widget-sticky-top-offset")||0,p=(((g=d.getBoundingClientRect())==null?void 0:g.top)??0)-r.unref(o)-parseFloat(m);window.scrollTo(0,p)},{stop:l}=Wr(()=>({items:r.unref(e),element:r.unref(n)}),async({items:c,element:u})=>{c.length===0||!u||(await r.nextTick(),i())})};function xr(t,e,n,o){const a=r.ref(""),s=r.ref(!1),i=l=>{const c=Te(ut(e),l),u=c.length>0;if(s.value=u,!u)return a.value="";const m=c.map(p=>({team:p.team.longName,points:Math.abs(ut(e,p))})).map(p=>n(`additionalText.${e}.content`,p)).join(", ");a.value=[n(`additionalText.${e}.prependix`),m,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return Je(t,i),r.watch(o,()=>i(r.unref(t))),{text:a,isVisible:s}}class He extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Yt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},nl={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},rl={class:"is-portrait-image"},ol={class:"is-team-name-long"},al={key:0},sl=[r.createElementVNode("sup",null,"*",-1)],il={class:"is-team-name-short"},ll={key:0},cl=[r.createElementVNode("sup",null,"*",-1)],ul={class:"is-team-name-long"},dl={class:"is-team-name-short"},fl={class:"is-team-name-long"},ml={class:"is-team-name-short"},pl=["href"],hl={class:"is-team-name-long"},gl={class:"is-team-name-short"},yl=["href"],bl={key:0,class:"is-text-dark"},wl=["href","target"],Sl={key:0,class:"label"},Tl={key:1,class:"label"},_l={key:2,class:"label"},kl={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),s=e,{onError:i}=Re(),{t:l}=st(),{columns:c,error:u}=je(o,a,r.computed(()=>({offsetName:n.offsetName})));u.value&&i(new He(Yt.message,{...Yt.options,cause:{column:u.value}}));const d=m=>s("sort",m);return(m,p)=>(r.openBlock(),r.createBlock(ze,null,{default:r.withCtx(({el:g})=>[r.createVNode(Ie,{columns:r.unref(c),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||g,onSort:d},r.createSlots({"cell-index":r.withCtx(({row:f})=>[r.createElementVNode("span",{class:r.normalizeClass(f.indexClass)},r.toDisplayString(f.index),3)]),"cell-playerPortrait":r.withCtx(({row:f})=>[r.createElementVNode("div",rl,[(r.openBlock(),r.createBlock(kt,{key:f.player.playerId,src:f.player.picture,"default-src":r.unref(Cn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image",key:((h=f.team)==null?void 0:h.id)??f.id,src:(y=f.team)==null?void 0:y.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:(h=f.homeTeam)==null?void 0:h.id,src:(y=f.homeTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:f})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:(h=f.awayTeam)==null?void 0:h.id,src:(y=f.awayTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",ol,[r.createTextVNode(r.toDisplayString((h=f.team)==null?void 0:h.longName)+" ",1),f.penaltyPoints?(r.openBlock(),r.createElementBlock("span",al,sl)):r.createCommentVNode("",!0)]),r.createElementVNode("span",il,[r.createTextVNode(r.toDisplayString((y=f.team)==null?void 0:y.shortName)+" ",1),f.penaltyPoints?(r.openBlock(),r.createElementBlock("span",ll,cl)):r.createCommentVNode("",!0)])]}),"cell-homeTeamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",ul,r.toDisplayString((h=f.homeTeam)==null?void 0:h.longName),1),r.createElementVNode("span",dl,r.toDisplayString((y=f.homeTeam)==null?void 0:y.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("span",fl,r.toDisplayString((h=f.awayTeam)==null?void 0:h.longName),1),r.createElementVNode("span",ml,r.toDisplayString((y=f.awayTeam)==null?void 0:y.shortName),1)]}),"cell-location":r.withCtx(({row:f})=>{var h;return[r.createTextVNode(r.toDisplayString(((h=f.location)==null?void 0:h.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:f})=>[f.gameStatus===0?(r.openBlock(),r.createElementBlock("span",bl,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(f),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},r.toDisplayString(f.homeTeamScore)+":"+r.toDisplayString(f.awayTeamScore),11,wl))]),"cell-gameResultType":r.withCtx(({row:f})=>[f.isOvertime?(r.openBlock(),r.createElementBlock("span",Sl,r.toDisplayString(r.unref(l)("common.overtimeShort")),1)):r.createCommentVNode("",!0),f.isShootout?(r.openBlock(),r.createElementBlock("span",Tl,r.toDisplayString(r.unref(l)("common.shootoutShort")),1)):r.createCommentVNode("",!0),f.seriesStandings?(r.openBlock(),r.createElementBlock("span",_l,r.toDisplayString(f.seriesStandings),1)):r.createCommentVNode("",!0)]),loading:r.withCtx(()=>[r.createVNode(Ve)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:f})=>{var h,y;return[r.createElementVNode("a",{href:t.externalTeamResolver(f),target:"_blank"},[r.createElementVNode("span",hl,r.toDisplayString((h=f.team)==null?void 0:h.longName),1),r.createElementVNode("span",gl,r.toDisplayString((y=f.team)==null?void 0:y.shortName),1)],8,pl)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:f})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(f),target:"_blank"},r.toDisplayString(f.name),9,yl)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},vr={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},Al={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:w}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:w},{target:"otw",direction:w}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:w}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:w}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:w}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:I}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:I}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:w}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:w}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:w},{target:"gamesPlayed",direction:I},{target:"w",direction:w},{target:"gd",direction:w},{target:"gf",direction:w}]}},Ol={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:w}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:w},{target:"d",direction:w}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:w},{target:"w",direction:w}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:I}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:w}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:w}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:w}]}},El={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:w},{target:"assists",direction:w}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:w},{target:"goals",direction:w}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:w}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:w}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:w}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:w}]}},Pl={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:w},{target:"pim",direction:w}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:w},{target:"pim",direction:w}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:w},{target:"pim",direction:w}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:w},{target:"pim",direction:w}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:w},{target:"pim",direction:w}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:w}]}},xl={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:w}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:w}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:w}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:w}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:w}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:w}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:w}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:w}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:w}]}},vl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:w}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:w}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:w}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:w}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:w}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:w}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:w}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:w}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:w}]}},Nl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:w},{target:"pim",direction:w}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:w},{target:"pim",direction:w}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:w},{target:"pim",direction:w}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:w},{target:"pim",direction:w}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:w},{target:"pim",direction:w}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:w}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:w}]}},$l={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:w}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:w}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:w}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:w}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:w}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:w}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:w}]}},Dl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:w}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:w}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:w}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:w}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:w}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:w}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:w}]}},Cl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:w}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:w}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:w}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:I}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:w}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:I}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:w}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:I}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:w}]}},Ml=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.isFiltered?this.filteredRowsLength:t.length,currentItems:this.currentItems}},filter(e,n=[],o=!1){if(e){const a=n.map(l=>o?ee(Oe(l),Zt(e)):ee(ut(l),En,ea(En(e)))),s=zo(l=>l.name?ua(aa("name"),da(",",""),l):l),i=Te(ee(s,Po([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===dt)return this;const n=ta(Zt(I),wn(ke),wn(Yo));return this.result=On(e.orders.map(o=>Tn(n(o.direction),ut)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},more(e,n){return this.result=this.result.slice(Number(e),Number(n)),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:At(o.gameDate,"L dddd",e,n),gameDateTime:At(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=Ge(n[o]):n),n)),this},groupByDays(){return this.currentItems=this.result.length,this.result=Qo(e=>At(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Ll=(t,...e)=>mt(Tn(...e))(t),Bl=t=>{var e,n,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((n=t.player)==null?void 0:n.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},Il=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},Rl=(t="",e="hu")=>n=>({...n,gameDateDate:At(n.gameDate,"L dddd",t,e),gameDateTime:At(n.gameDate,"HH:mm",t,e)}),Vl=t=>e=>({...e,gameResult:Xl(e)}),zl=t=>({...t,opponent:Zl(t)}),Gl=t=>({...t,resultType:Jl(t)}),Fl=t=>({...t,rowClasses:t.optional?"is-optional":""}),jl=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},Yl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=Ge(e[n]):e),e),Ul=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=Sr(e[n]):e),e),Hl=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=wr(e[n])),e),Wl=t=>{var e,n;return{...t,periodResults:((n=(e=t.result)==null?void 0:e.match(/\(.*?\)/))==null?void 0:n[0])??""}},Kl=On([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),ke(ut("id")),ke(ut("gameId"))]),ql=fa((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function Zl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function Xl(t,e){let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function Jl(t){const e=t.gameResult.split(":"),n=e[0]>e[1],o=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const Ql=t=>t.map(e=>{var n,o;return{phaseId:e.phaseId,phaseName:Object.values({phaseName:e.phaseName,...((n=e.phaseType)==null?void 0:n.phaseTypeName)&&e.phaseType.phaseTypeName!==e.phaseName&&{phaseTypeName:e.phaseType.phaseTypeName},...((o=e.phaseSubType)==null?void 0:o.phaseSubTypeName)&&{phaseSubTypeName:e.phaseSubType.phaseSubTypeName}}).join("-")}}),tc=(t,e={})=>{const n=We("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Dn,e))},ec=(t,e={})=>{const n=We("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Ln,e))},nc=(t,e={})=>{const n=We("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Mn,e))},rc=(t,e="1x1")=>`${Bn}/flag:${t}-${e}.svg`,We=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},oc=()=>{window.scrollTo(0,0)},ac={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},sc=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),ic=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),lc=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),cc=[sc,ic,lc];function uc(t,e){return r.openBlock(),r.createElementBlock("svg",ac,[...cc])}const dc={render:uc},fc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},mc=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),pc=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),hc=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),gc=[mc,pc,hc];function yc(t,e){return r.openBlock(),r.createElementBlock("svg",fc,[...gc])}const bc={render:yc},wc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Sc=r.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),Tc=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),_c=[Sc,Tc];function kc(t,e){return r.openBlock(),r.createElementBlock("svg",wc,[..._c])}const Ac={render:kc},Oc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ec=r.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),Pc=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),xc=[Ec,Pc];function vc(t,e){return r.openBlock(),r.createElementBlock("svg",Oc,[...xc])}const Nc={render:vc},$c={class:"is-team-name-long"},Dc={class:"is-team-name-short"},Cc={class:"is-team-name-long"},Mc={class:"is-team-name-short"},Lc={key:0,class:"is-text-dark"},Bc=["href","target"],Ic={key:0,class:"label"},Rc={key:1,class:"label"},Vc={key:2,class:"label"},zc={key:1},Gc=["onClick","onFocus","onBlur"],Fc={class:"is-dropdown-menu"},jc=["href","target"],Yc={key:0},Uc=["href"],Hc={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=Re(),{columns:a,error:s}=je(vr,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));Zr(s,()=>o(new He(Yt.message,{...Yt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=st();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(ze,null,{default:r.withCtx(({el:u})=>[r.createVNode(Ie,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:d})=>[r.createElementVNode("span",$c,r.toDisplayString(d.homeTeam.longName),1),r.createElementVNode("span",Dc,r.toDisplayString(d.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:d})=>[r.createElementVNode("span",Cc,r.toDisplayString(d.awayTeam.longName),1),r.createElementVNode("span",Mc,r.toDisplayString(d.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:d})=>[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:d.homeTeam.id,src:d.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:d})=>[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:d.awayTeam.id,src:d.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:d})=>[d.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Lc,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(d.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},r.toDisplayString(d.homeTeamScore)+":"+r.toDisplayString(d.awayTeamScore),11,Bc))]),"cell-gameResultType":r.withCtx(({row:d})=>[d.isOvertime?(r.openBlock(),r.createElementBlock("span",Ic,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),d.isShootout?(r.openBlock(),r.createElementBlock("span",Rc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),d.seriesStandings?(r.openBlock(),r.createElementBlock("span",Vc,r.toDisplayString(d.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:d})=>[d.broadcast?(r.openBlock(),r.createBlock(r.unref(dc),{key:0})):(r.openBlock(),r.createElementBlock("span",zc))]),"cell-location":r.withCtx(({row:d})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=d.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:d})=>[r.createVNode(Be,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:m,show:p,hide:g})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(p,["stop"]),onFocus:p,onBlur:g},[r.createVNode(r.unref(bc))],40,Gc)]),content:r.withCtx(()=>[r.createElementVNode("ul",Fc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(d.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Ac),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,jc)]),d.video?(r.openBlock(),r.createElementBlock("li",Yc,[r.createElementVNode("a",{href:d.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(Nc),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,Uc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Ve)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},Wc={class:"g-row g-gap-normal is-mb-5"},Kc=["value"],qc={key:0},Zc=["onClick"],Xc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,o=e,{t:a}=st(),s=r.computed({get(){return n.championshipId},set(l){o("onChangeSeason",l)}});function i(l){o("onChangeSection",l)}return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Wc,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(ct)("label"))},r.toDisplayString(r.unref(a)("selection.season")),3),r.createVNode(qe,{id:"season",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,u=>(r.openBlock(),r.createElementBlock("option",{key:u.championshipId,value:u.championshipId},r.toDisplayString(u.seasonName),9,Kc))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",qc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,u=>(r.openBlock(),r.createElementBlock("button",{key:u.phaseId,onClick:d=>i(u),class:r.normalizeClass([r.unref(ct)("tab-button"),{"is-active":u.sectionId===t.sectionId}])},r.toDisplayString(u.sectionName),11,Zc))),128))]))],64))}},Jc=["textContent"],Qc={__name:"AdditionalStandingsText",props:{rows:{type:Array,default:()=>[]},additionalKey:{type:String,required:!0}},setup(t){const e=t,n=r.toRef(e,"rows"),{t:o,locale:a}=st(),{isVisible:s,text:i}=xr(n,e.additionalKey,o,a);return(l,c)=>r.unref(s)?(r.openBlock(),r.createElementBlock("div",{key:0,class:"is-text-xs is-text-light is-mt-5 is-mb-5",textContent:r.toDisplayString(r.unref(i))},null,8,Jc)):r.createCommentVNode("",!0)}},tu={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},eu={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},nu={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},ru={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},Nr=({app:t=null,modules:e=[],apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s},e.length===0)throw new Error("At least one module must be set");e.forEach(i=>{if(t)return t.use(i);if(i.register)return i.register();i==null||i.install()})},ou={install:(t,e={})=>Nr({app:t,...e})};return b.AVAILABLE_TIMEZONES_BY_COUNTRY=Rn,b.AdditionalStandingsText=Qc,b.BaseSelect=qe,b.COLUMNS_FIELD_PLAYERS=El,b.COLUMNS_FIELD_PLAYERS_PENALTY=Pl,b.COLUMNS_GOALIES=xl,b.COLUMNS_SCHEDULE=vr,b.COLUMNS_SCORING_EFFICIENCY=Cl,b.COLUMNS_STANDINGS_P_2=Ol,b.COLUMNS_STANDINGS_P_3=Al,b.COLUMNS_TEAMS_FAIRPLAY=Nl,b.COLUMNS_TEAMS_PENALTY_KILLING=$l,b.COLUMNS_TEAMS_POWERPLAY=Dl,b.COLUMNS_TEAM_ATTENDANCE=vl,b.DEFAULT_EXTERNAL_GAME_URL=Dn,b.DEFAULT_EXTERNAL_PLAYER_URL=Mn,b.DEFAULT_EXTERNAL_TEAM_URL=Ln,b.DEFAULT_PORTRAIT_IMAGE_URL=Cn,b.DataTable=Ie,b.ErrorNotice=vs,b.ErrorProvider=$s,b.FLAG_BASE_URL=Bn,b.FetchMoreObserver=Rr,b.FloatingPanel=Be,b.I18NProvider=Is,b.Image=kt,b.InvalidSeasonName=nl,b.LAZY_LOADING_STATE_DELAY=Vn,b.LOCALE_FOR_LANG=In,b.LoadingIndicator=Ve,b.Paginator=si,b.REFRESH_DELAY=ya,b.ResponsiveTable=ze,b.SORT_STATE_ASCEND=I,b.SORT_STATE_DESCEND=w,b.SORT_STATE_ORIGINAL=dt,b.ScheduleTable=Hc,b.SeasonSelector=Xc,b.StatisticsTable=kl,b.TimezoneSelector=ji,b.UndefinedColumn=Yt,b.VBR_API_BASE_URL=$n,b.WidgetError=He,b.addDays=Ii,b.appendTo=nr,b.baseProps=tu,b.convert=Ml,b.convertGamePeriodResults=Wl,b.convertMinToMinSec=Sr,b.convertMinToSec=Ge,b.convertPhaseName=Ql,b.convertSecToMin=wr,b.convertTimes=Yl,b.convertTimesMinToMinSec=Ul,b.convertTimesSecToMin=Hl,b.createConfig=Nr,b.createI18n=xn,b.currentWeek=Mi,b.currentWeekStartEnd=Li,b.default=ou,b.endOfMonth=Vi,b.externalGameLinkResolver=tc,b.externalPlayerLinkResolver=nc,b.externalTeamLinkResolver=ec,b.fetchVBRData=kr,b.flagResolver=rc,b.format=At,b.gameDateTime=Rl,b.gameProps=ru,b.gameResult=Vl,b.getLocalTimezone=br,b.i18n=Nn,b.isAfter=Di,b.isBefore=$i,b.isBetween=Tr,b.isSame=vi,b.isSameOrBefore=Fe,b.isToday=Ci,b.localeSort=ql,b.max=Gi,b.min=zi,b.offsetName=jt,b.playerName=Bl,b.playerStatsProps=nu,b.rawConvert=Ll,b.scheduleOptionalRowClass=Fl,b.scrollToTop=oc,b.sortGames=Kl,b.startOfMonth=Ri,b.subtractDays=Bi,b.teamName=Il,b.teamOpponent=zl,b.teamResultType=Gl,b.teamStatsProps=eu,b.templateReplacer=_t,b.toKebabCase=rr,b.upperCase=jl,b.useAdditionalText=xr,b.useColumns=je,b.useError=Re,b.useErrorProvider=ar,b.useI18n=st,b.useLazyLoadingState=nn,b.useMainClass=ct,b.usePage=Hi,b.useScrollToGameDate=el,b.useServices=Wi,b.useSort=Qi,b.useVisibilityChange=tl,b.validateColumnsName=_r,b.yearToNow=Ni,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),b}({},Vue);
22
+ ***************************************************************************** */function Ue(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,s=n.call(t),i=[];try{for(;(e===void 0||e-- >0)&&!(o=s.next()).done;)i.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}finally{if(a)throw a.error}}return i}var Or;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Or||(Or={}));var Hi={type:"xstate.init"};function ue(t){return t===void 0?[]:[].concat(t)}function Er(t,e){return typeof(t=typeof t=="string"&&e&&e[t]?e[t]:t)=="string"?{type:t}:typeof t=="function"?{type:t.name,exec:t}:t}function He(t){return function(e){return t===e}}function Wi(t){return typeof t=="string"?{type:t}:t}function xr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:He(t)}}function Pr(t,e,n){var o=e,a=!1;return[t.filter(function(s){if(s.type==="xstate.assign"){a=!0;var i=Object.assign({},o);return typeof s.assignment=="function"?i=s.assignment(o,n):Object.keys(s.assignment).forEach(function(l){i[l]=typeof s.assignment[l]=="function"?s.assignment[l](o,n):s.assignment[l]}),o=i,!1}return!0}),o,a]}function Ki(t,e){e===void 0&&(e={});var n=Ue(Pr(ue(t.states[t.initial].entry).map(function(i){return Er(i,e.actions)}),t.context,Hi),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:He(t.initial)},transition:function(i,l){var c,u,f=typeof i=="string"?{value:i,context:t.context}:i,m=f.value,p=f.context,g=Wi(l),d=t.states[m];if(d.on){var h=ue(d.on[g.type]);"*"in d.on&&h.push.apply(h,function(_,k,$){if(arguments.length===2)for(var N,B=0,F=k.length;B<F;B++)!N&&B in k||(N||(N=Array.prototype.slice.call(k,0,B)),N[B]=k[B]);return _.concat(N||Array.prototype.slice.call(k))}([],Ue(ue(d.on["*"])),!1));try{for(var y=function(_){var k=typeof Symbol=="function"&&Symbol.iterator,$=k&&_[k],N=0;if($)return $.call(_);if(_&&typeof _.length=="number")return{next:function(){return _&&N>=_.length&&(_=void 0),{value:_&&_[N++],done:!_}}};throw new TypeError(k?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),S=y.next();!S.done;S=y.next()){var O=S.value;if(O===void 0)return xr(m,p);var E=typeof O=="string"?{target:O}:O,P=E.target,v=E.actions,C=v===void 0?[]:v,z=E.cond,G=z===void 0?function(){return!0}:z,Y=P===void 0,L=P??m,D=t.states[L];if(G(p,g)){var U=Ue(Pr((Y?ue(C):[].concat(d.exit,C,D.entry).filter(function(_){return _})).map(function(_){return Er(_,s._options.actions)}),p,g),3),at=U[0],x=U[1],A=U[2],T=P??m;return{value:T,context:x,actions:at,changed:P!==m||at.length>0||A,matches:He(T)}}}}catch(_){c={error:_}}finally{try{S&&!S.done&&(u=y.return)&&u.call(y)}finally{if(c)throw c.error}}}return xr(m,p)}};return s}const qi=Ki({id:"sort",initial:dt,states:{[dt]:{on:{DIRECTION1:w,DIRECTION2:I}},[w]:{on:{DIRECTION1:I,DIRECTION2:dt}},[I]:{on:{DIRECTION1:dt,DIRECTION2:w}}}}),Zi=(t,e)=>{const n=e===I?"DIRECTION2":"DIRECTION1";return qi.transition(t,n).value};function Xi(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:s,orders:i})=>{if(o.sortTarget!==s){o.sortTarget=s,o.orders=i;return}const l=i.map((c,u)=>({...c,direction:Zi(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function Ji(t=!1,e=tt,n=tt){const o=Qr();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const Qi=(t={})=>{const{items:e=[],element:n,offset:o=0,enabled:a=!0}=t,s=c=>Fe(c,"day"),i=()=>{var g;if(l(),!r.unref(a))return;const c=Ko(On(s,"gameDate"))(r.unref(e));if(!c)return;const u=At(c.gameDate,"YYYY-MM-DD"),f=xt(n).querySelector(`div[data-gamedate="${u}"]`);if(!f)return;const m=getComputedStyle(f).getPropertyValue("--vbr-widget-sticky-top-offset")||0,p=(((g=f.getBoundingClientRect())==null?void 0:g.top)??0)-r.unref(o)-parseFloat(m);window.scrollTo(0,p)},{stop:l}=Wr(()=>({items:r.unref(e),element:r.unref(n)}),async({items:c,element:u})=>{c.length===0||!u||(await r.nextTick(),i())})};function vr(t,e,n,o){const a=r.ref(""),s=r.ref(!1),i=l=>{const c=_e(ut(e),l),u=c.length>0;if(s.value=u,!u)return a.value="";const m=c.map(p=>({team:p.team.longName,points:Math.abs(ut(e,p))})).map(p=>n(`additionalText.${e}.content`,p)).join(", ");a.value=[n(`additionalText.${e}.prependix`),m,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return Qe(t,i),r.watch(o,()=>i(r.unref(t))),{text:a,isVisible:s}}class We extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Yt={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},tl={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},el={class:"is-portrait-image"},nl={class:"is-team-name-long"},rl={key:0},ol=[r.createElementVNode("sup",null,"*",-1)],al={class:"is-team-name-short"},sl={key:0},il=[r.createElementVNode("sup",null,"*",-1)],ll={class:"is-team-name-long"},cl={class:"is-team-name-short"},ul={class:"is-team-name-long"},dl={class:"is-team-name-short"},fl=["href"],ml={class:"is-team-name-long"},pl={class:"is-team-name-short"},hl=["href"],gl={key:0,class:"is-text-dark"},yl=["href","target"],bl={key:0,class:"label"},wl={key:1,class:"label"},Sl={key:2,class:"label"},Tl={__name:"StatisticsTable",props:{columns:{type:Object,required:!0},rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},sort:{type:Object,default:()=>({})},externalTeamResolver:{type:Function,required:!0},externalPlayerResolver:{type:Function,default:()=>{}},externalGameResolver:{type:Function,default:()=>{}},externalGameResolverTarget:{type:String,default:"_self"},isTeamLinked:{type:Boolean,default:!1},isPlayerLinked:{type:Boolean,default:!1},appendTo:{type:[Object,String],default:null},offsetName:{type:String,default:""}},emits:["sort"],setup(t,{emit:e}){const n=t,{columns:o,hideColumns:a}=r.toRefs(n),s=e,{onError:i}=Re(),{t:l}=it(),{columns:c,error:u}=Ye(o,a,r.computed(()=>({offsetName:n.offsetName})));u.value&&i(new We(Yt.message,{...Yt.options,cause:{column:u.value}}));const f=m=>s("sort",m);return(m,p)=>(r.openBlock(),r.createBlock(Ge,null,{default:r.withCtx(({el:g})=>[r.createVNode(ze,{columns:r.unref(c),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||g,onSort:f},r.createSlots({"cell-index":r.withCtx(({row:d})=>[r.createElementVNode("span",{class:r.normalizeClass(d.indexClass)},r.toDisplayString(d.index),3)]),"cell-playerPortrait":r.withCtx(({row:d})=>[r.createElementVNode("div",el,[(r.openBlock(),r.createBlock(kt,{key:d.player.playerId,src:d.player.picture,"default-src":r.unref(Mn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:d})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image",key:((h=d.team)==null?void 0:h.id)??d.id,src:(y=d.team)==null?void 0:y.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:d})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:(h=d.homeTeam)==null?void 0:h.id,src:(y=d.homeTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:d})=>{var h,y;return[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:(h=d.awayTeam)==null?void 0:h.id,src:(y=d.awayTeam)==null?void 0:y.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:d})=>{var h,y;return[r.createElementVNode("span",nl,[r.createTextVNode(r.toDisplayString((h=d.team)==null?void 0:h.longName)+" ",1),d.penaltyPoints?(r.openBlock(),r.createElementBlock("span",rl,ol)):r.createCommentVNode("",!0)]),r.createElementVNode("span",al,[r.createTextVNode(r.toDisplayString((y=d.team)==null?void 0:y.shortName)+" ",1),d.penaltyPoints?(r.openBlock(),r.createElementBlock("span",sl,il)):r.createCommentVNode("",!0)])]}),"cell-homeTeamName":r.withCtx(({row:d})=>{var h,y;return[r.createElementVNode("span",ll,r.toDisplayString((h=d.homeTeam)==null?void 0:h.longName),1),r.createElementVNode("span",cl,r.toDisplayString((y=d.homeTeam)==null?void 0:y.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:d})=>{var h,y;return[r.createElementVNode("span",ul,r.toDisplayString((h=d.awayTeam)==null?void 0:h.longName),1),r.createElementVNode("span",dl,r.toDisplayString((y=d.awayTeam)==null?void 0:y.shortName),1)]}),"cell-location":r.withCtx(({row:d})=>{var h;return[r.createTextVNode(r.toDisplayString(((h=d.location)==null?void 0:h.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:d})=>[d.gameStatus===0?(r.openBlock(),r.createElementBlock("span",gl,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(d),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":d.gameStatus!==1,"is-text-accent":d.gameStatus===1})},r.toDisplayString(d.homeTeamScore)+":"+r.toDisplayString(d.awayTeamScore),11,yl))]),"cell-gameResultType":r.withCtx(({row:d})=>[d.isOvertime?(r.openBlock(),r.createElementBlock("span",bl,r.toDisplayString(r.unref(l)("common.overtimeShort")),1)):r.createCommentVNode("",!0),d.isShootout?(r.openBlock(),r.createElementBlock("span",wl,r.toDisplayString(r.unref(l)("common.shootoutShort")),1)):r.createCommentVNode("",!0),d.seriesStandings?(r.openBlock(),r.createElementBlock("span",Sl,r.toDisplayString(d.seriesStandings),1)):r.createCommentVNode("",!0)]),loading:r.withCtx(()=>[r.createVNode(Ve)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:d})=>{var h,y;return[r.createElementVNode("a",{href:t.externalTeamResolver(d),target:"_blank"},[r.createElementVNode("span",ml,r.toDisplayString((h=d.team)==null?void 0:h.longName),1),r.createElementVNode("span",pl,r.toDisplayString((y=d.team)==null?void 0:y.shortName),1)],8,fl)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:d})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(d),target:"_blank"},r.toDisplayString(d.name),9,hl)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Nr={gameName:{label:"table.gameName.short",tooltip:"table.gameName.tooltip",class:"is-text-left is-text-light"},gameDateDate:{label:"table.gameDate.short",tooltip:"table.gameDate.tooltip",class:"is-text-left"},gameDateTime:{label:"table.gameDateTime.short",tooltip:"table.gameDateTime.tooltip",class:"is-text-left"},homeTeamName:{label:"table.homeTeam.short",tooltip:"table.homeTeam.tooltip",class:"is-text-right is-w-auto is-text-bold"},homeTeamLogo:{label:"",class:"is-has-image"},gameResult:{label:"",class:"is-text-bold is-text-xl"},gameResultType:{label:"",tooltip:""},awayTeamLogo:{label:"",class:"is-has-image"},awayTeamName:{label:"table.awayTeam.short",tooltip:"table.awayTeam.tooltip",class:"is-text-left is-w-auto is-text-bold"},location:{label:"table.location.short",tooltip:"table.location.tooltip",class:"is-text-left"},broadcast:{label:"table.broadcast.short",tooltip:"table.broadcast.tooltip"},more:{label:""}},_l={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:w}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:w},{target:"otw",direction:w}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:w}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:w}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:w}]},otl:{label:"table.otl.short",tooltip:"table.otl.tooltip",sortOrders:[{target:"otl",direction:I}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:I}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:w}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:w}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:w},{target:"gamesPlayed",direction:I},{target:"w",direction:w},{target:"gd",direction:w},{target:"gf",direction:w}]}},kl={index:{label:"#",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gamesPlayed:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gamesPlayed",direction:w}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:w},{target:"d",direction:w}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:w},{target:"w",direction:w}]},l:{label:"table.losses.short",tooltip:"table.losses.tooltip",sortOrders:[{target:"l",direction:I}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:w}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:w}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:w}]}},Al={index:{label:"#",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:w},{target:"assists",direction:w}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:w},{target:"goals",direction:w}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:w}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:w}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:w}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:w}]}},Ol={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:w},{target:"pim",direction:w}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:w},{target:"pim",direction:w}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:w},{target:"pim",direction:w}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:w},{target:"pim",direction:w}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:w},{target:"pim",direction:w}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:w}]}},El={index:{label:"table.blank",class:"is-text-left"},playerPortrait:{label:"",class:"is-has-image"},name:{label:"table.name.short",tooltip:"table.name.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"name",direction:I}]},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto",sortOrders:[{target:"teamName",direction:I}]},gkd:{label:"table.gpgk.short",tooltip:"table.gpgk.tooltip",sortOrders:[{target:"gkd",direction:w}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:w}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:w}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:w}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:w}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:w}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:w}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:w}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:w}]}},xl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},home:{label:"table.homeHeader.short"},homeGame:{label:"table.homeGame.short",tooltip:"table.homeGame.tooltip",sortOrders:[{target:"homeGame",direction:w}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:w}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:w}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:w}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:w}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:w}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:w}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:w}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:w}]}},Pl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:w},{target:"pim",direction:w}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:w},{target:"pim",direction:w}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:w},{target:"pim",direction:w}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:w},{target:"pim",direction:w}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:w},{target:"pim",direction:w}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:w}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:w}]}},vl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:w}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:w}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:w}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:w}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:w}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:w}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:w}]}},Nl={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:w}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:w}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:w}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:w}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:w}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:w}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:w}]}},$l={index:{label:"table.blank",class:"is-text-left"},teamLogo:{label:"",class:"is-has-image"},teamName:{label:"table.team.short",tooltip:"table.team.tooltip",class:"is-text-left is-w-auto is-text-bold",sortOrders:[{target:"teamName",direction:I}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:w}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:w}]},ga:{label:"table.goalAgainst.short",tooltip:"table.goalAgainst.tooltip",sortOrders:[{target:"ga",direction:I}]},gd:{label:"table.goalDiff.short",tooltip:"table.goalDiff.tooltip",sortOrders:[{target:"gd",direction:w}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:w}]},gaPerGp:{label:"table.gagp.short",tooltip:"table.gagp.tooltip",sortOrders:[{target:"gaPerGp",direction:I}]},s:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"s",direction:w}]},sa:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sa",direction:I}]},shotsPerGp:{label:"table.sogp.short",tooltip:"table.sogp.tooltip",sortOrders:[{target:"shotsPerGp",direction:w}]},saPerGp:{label:"table.sagp.short",tooltip:"table.sagp.tooltip",sortOrders:[{target:"shotsPerGp",direction:I}]},sp:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"sp",direction:w}]}},Dl=(t=[])=>({result:[...t],filteredRowsLength:0,isFiltered:!1,value(){return{rows:this.result,totalItems:this.isFiltered?this.filteredRowsLength:t.length,currentItems:this.currentItems}},filter(e,n=[],o=!1){if(e){const a=n.map(l=>o?ee(Ee(l),Zt(e)):ee(ut(l),xn,ta(xn(e)))),s=xo(l=>l.name?ca(oa("name"),ua(",",""),l):l),i=_e(ee(s,Eo([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=i.length,this.result=i}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===dt)return this;const n=Qo(Zt(I),Sn(Ae),Sn(Fo));return this.result=En(e.orders.map(o=>_n(n(o.direction),ut)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const s=n[n.length-1]||[],i=e&&s[e]===o[e];return o.index=i?s.index:a+1,o.indexClass=i?"is-duplicated":null,n.push(o),n},[]),this},addContinuousIndex(){return this.result=this.result.map((e,n)=>({...e,index:n+1})),this},pagination(e,n){if(!n)return this;e=Number(e),n=Number(n);const o=(e-1)*n,a=o+n;return this.result=this.result.slice(o,a),this},more(e,n){return this.result=this.result.slice(Number(e),Number(n)),this},playerName(){return this.result=this.result.map(e=>({...e,name:`${e.lastName} ${e.firstName}`})),this},teamName(){return this.result=this.result.map(e=>({...e,teamName:e.team.longName})),this},schedule(e="",n="hu"){return this.result=this.result.map(o=>({...o,gameResult:`${o.homeTeamScore}-${o.awayTeamScore}`,gameDateDate:At(o.gameDate,"L dddd",e,n),gameDateTime:At(o.gameDate,"HH:mm",e,n)})),this},gameDateFilter(e){return e===null?this:(this.result=this.result.filter(n=>new Date(n.gameDate).getMonth()==e),this)},convertTimes(e=[]){return this.result=this.result.map(n=>(e.map(o=>n[o]?n[`${o}Sec`]=je(n[o]):n),n)),this},groupByDays(){return this.currentItems=this.result.length,this.result=Jo(e=>At(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),Cl=(t,...e)=>mt(_n(...e))(t),Ml=t=>{var e,n,o;return{...t,...t.lastName&&t.firstName&&{name:`${t.lastName} ${t.firstName}`},...((e=t.player)==null?void 0:e.playerId)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((n=t.player)==null?void 0:n.nationality)&&{name:(o=t.player)!=null&&o.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`}}},Ll=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},Bl=(t="",e="hu")=>n=>({...n,gameDateDate:At(n.gameDate,"L dddd",t,e),gameDateTime:At(n.gameDate,"HH:mm",t,e)}),Il=t=>e=>({...e,gameResult:ql(e)}),zl=t=>({...t,opponent:Kl(t)}),Rl=t=>({...t,resultType:Zl(t)}),Vl=t=>({...t,rowClasses:t.optional?"is-optional":""}),Gl=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},jl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=je(e[n]):e),e),Fl=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=Tr(e[n]):e),e),Yl=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=Sr(e[n])),e),Ul=t=>{var e,n;return{...t,periodResults:((n=(e=t.result)==null?void 0:e.match(/\(.*?\)/))==null?void 0:n[0])??""}},Hl=En([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Ae(ut("id")),Ae(ut("gameId"))]),Wl=da((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function Kl(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function ql(t,e){let n=t==null?void 0:t.homeTeamScore,o=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(n=t==null?void 0:t.awayTeamScore,o=t==null?void 0:t.homeTeamScore),[n,o].join(":")}function Zl(t){const e=t.gameResult.split(":"),n=e[0]>e[1],o=e[0]<e[1];return n&&t.isOvertime?"OTW":n&&t.isShootout?"SOW":n?"W":o&&t.isOvertime?"OTL":o&&t.isShootout?"SOL":o?"L":"D"}const Xl=t=>t.map(e=>{var n,o;return{phaseId:e.phaseId,phaseName:Object.values({phaseName:e.phaseName,...((n=e.phaseType)==null?void 0:n.phaseTypeName)&&e.phaseType.phaseTypeName!==e.phaseName&&{phaseTypeName:e.phaseType.phaseTypeName},...((o=e.phaseSubType)==null?void 0:o.phaseSubTypeName)&&{phaseSubTypeName:e.phaseSubType.phaseSubTypeName}}).join("-")}}),Jl=(t,e={})=>{const n=Ke("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Cn,e))},Ql=(t,e={})=>{const n=Ke("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Bn,e))},tc=(t,e={})=>{const n=Ke("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(_t(n||Ln,e))},ec=(t,e="1x1")=>`${In}/flag:${t}-${e}.svg`,Ke=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},nc=()=>{window.scrollTo(0,0)},rc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},oc=r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),ac=r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),sc=r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1),ic=[oc,ac,sc];function lc(t,e){return r.openBlock(),r.createElementBlock("svg",rc,[...ic])}const cc={render:lc},uc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},dc=r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),fc=r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),mc=r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1),pc=[dc,fc,mc];function hc(t,e){return r.openBlock(),r.createElementBlock("svg",uc,[...pc])}const gc={render:hc},yc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},bc=r.createElementVNode("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"},null,-1),wc=r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1),Sc=[bc,wc];function Tc(t,e){return r.openBlock(),r.createElementBlock("svg",yc,[...Sc])}const _c={render:Tc},kc={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},Ac=r.createElementVNode("path",{d:"M22.54 6.42a2.78 2.78 0 0 0-1.94-2C18.88 4 12 4 12 4s-6.88 0-8.6.46a2.78 2.78 0 0 0-1.94 2A29 29 0 0 0 1 11.75a29 29 0 0 0 .46 5.33A2.78 2.78 0 0 0 3.4 19c1.72.46 8.6.46 8.6.46s6.88 0 8.6-.46a2.78 2.78 0 0 0 1.94-2 29 29 0 0 0 .46-5.25 29 29 0 0 0-.46-5.33z"},null,-1),Oc=r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1),Ec=[Ac,Oc];function xc(t,e){return r.openBlock(),r.createElementBlock("svg",kc,[...Ec])}const Pc={render:xc},vc={class:"is-team-name-long"},Nc={class:"is-team-name-short"},$c={class:"is-team-name-long"},Dc={class:"is-team-name-short"},Cc={key:0,class:"is-text-dark"},Mc=["href","target"],Lc={key:0,class:"label"},Bc={key:1,class:"label"},Ic={key:2,class:"label"},zc={key:1},Rc=["onClick","onFocus","onBlur"],Vc={class:"is-dropdown-menu"},Gc=["href","target"],jc={key:0},Fc=["href"],Yc={__name:"ScheduleTable",props:{rows:{type:Array,default:()=>[]},isLoading:{type:Boolean,deafult:!1},hideColumns:{type:String,default:""},offsetName:{type:String,default:""},externalGameResolver:{type:Function,required:!0},externalGameResolverTarget:{type:String,default:"_blank"}},setup(t){const e=t,n=r.ref(null),{onError:o}=Re(),{columns:a,error:s}=Ye(Nr,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));Zr(s,()=>o(new We(Yt.message,{...Yt.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=it();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Ge,null,{default:r.withCtx(({el:u})=>[r.createVNode(ze,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||u},{"cell-homeTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",vc,r.toDisplayString(f.homeTeam.longName),1),r.createElementVNode("span",Nc,r.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",$c,r.toDisplayString(f.awayTeam.longName),1),r.createElementVNode("span",Dc,r.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:f.homeTeam.id,src:f.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(kt,{class:"is-logo-image is-right",key:f.awayTeam.id,src:f.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:f})=>[f.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Cc,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(f.gameId),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":f.gameStatus!==1,"is-text-accent":f.gameStatus===1})},r.toDisplayString(f.homeTeamScore)+":"+r.toDisplayString(f.awayTeamScore),11,Mc))]),"cell-gameResultType":r.withCtx(({row:f})=>[f.isOvertime?(r.openBlock(),r.createElementBlock("span",Lc,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),f.isShootout?(r.openBlock(),r.createElementBlock("span",Bc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),f.seriesStandings?(r.openBlock(),r.createElementBlock("span",Ic,r.toDisplayString(f.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:f})=>[f.broadcast?(r.openBlock(),r.createBlock(r.unref(cc),{key:0})):(r.openBlock(),r.createElementBlock("span",zc))]),"cell-location":r.withCtx(({row:f})=>{var m;return[r.createTextVNode(r.toDisplayString(((m=f.location)==null?void 0:m.locationName)??""),1)]}),"cell-more":r.withCtx(({row:f})=>[r.createVNode(Ie,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:m,show:p,hide:g})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(p,["stop"]),onFocus:p,onBlur:g},[r.createVNode(r.unref(gc))],40,Rc)]),content:r.withCtx(()=>[r.createElementVNode("ul",Vc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(_c),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,Gc)]),f.video?(r.openBlock(),r.createElementBlock("li",jc,[r.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(Pc),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,Fc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Ve)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},Uc={class:"g-row g-gap-normal is-mb-5"},Hc=["value"],Wc={key:0},Kc=["onClick"],qc={__name:"SeasonSelector",props:{seasons:{type:Array,default:()=>[]},championshipId:{type:Number,default:0},sections:{type:Array,default:()=>[]},sectionId:{type:Number,default:0},isSectionSelectionDisabled:{type:Boolean,default:!1}},emits:["onChangeSeason","onChangeSection"],setup(t,{emit:e}){const n=t,o=e,{t:a}=it(),s=r.computed({get(){return n.championshipId},set(l){o("onChangeSeason",l)}});function i(l){o("onChangeSection",l)}return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Uc,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(ct)("label"))},r.toDisplayString(r.unref(a)("selection.season")),3),r.createVNode(Ze,{id:"season",modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=u=>s.value=u)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,u=>(r.openBlock(),r.createElementBlock("option",{key:u.championshipId,value:u.championshipId},r.toDisplayString(u.seasonName),9,Hc))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Wc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,u=>(r.openBlock(),r.createElementBlock("button",{key:u.phaseId,onClick:f=>i(u),class:r.normalizeClass([r.unref(ct)("tab-button"),{"is-active":u.sectionId===t.sectionId}])},r.toDisplayString(u.sectionName),11,Kc))),128))]))],64))}},Zc=["textContent"],Xc={__name:"AdditionalStandingsText",props:{rows:{type:Array,default:()=>[]},additionalKey:{type:String,required:!0}},setup(t){const e=t,n=r.toRef(e,"rows"),{t:o,locale:a}=it(),{isVisible:s,text:i}=vr(n,e.additionalKey,o,a);return(l,c)=>r.unref(s)?(r.openBlock(),r.createElementBlock("div",{key:0,class:"is-text-xs is-text-light is-mt-5 is-mb-5",textContent:r.toDisplayString(r.unref(i))},null,8,Zc)):r.createCommentVNode("",!0)}},Jc={locale:{type:String,default:"hu"},championshipId:{type:String,default:""},division:{type:String,default:""},phaseId:{type:String,default:""},apiKey:{type:String,default:""},hideColumns:{type:String,default:""}},Qc={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},tu={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},eu={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},$r=({app:t=null,modules:e=[],apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s})=>{if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:o,teamResolver:a,playerResolver:s},e.length===0)throw new Error("At least one module must be set");e.forEach(i=>{if(t)return t.use(i);if(i.register)return i.register();i==null||i.install()})},nu={install:(t,e={})=>$r({app:t,...e})};return b.AVAILABLE_TIMEZONES_BY_COUNTRY=Rn,b.AdditionalStandingsText=Xc,b.BaseSelect=Ze,b.COLUMNS_FIELD_PLAYERS=Al,b.COLUMNS_FIELD_PLAYERS_PENALTY=Ol,b.COLUMNS_GOALIES=El,b.COLUMNS_SCHEDULE=Nr,b.COLUMNS_SCORING_EFFICIENCY=$l,b.COLUMNS_STANDINGS_P_2=kl,b.COLUMNS_STANDINGS_P_3=_l,b.COLUMNS_TEAMS_FAIRPLAY=Pl,b.COLUMNS_TEAMS_PENALTY_KILLING=vl,b.COLUMNS_TEAMS_POWERPLAY=Nl,b.COLUMNS_TEAM_ATTENDANCE=xl,b.DEFAULT_EXTERNAL_GAME_URL=Cn,b.DEFAULT_EXTERNAL_PLAYER_URL=Ln,b.DEFAULT_EXTERNAL_TEAM_URL=Bn,b.DEFAULT_PORTRAIT_IMAGE_URL=Mn,b.DataTable=ze,b.ErrorNotice=xs,b.ErrorProvider=vs,b.FLAG_BASE_URL=In,b.FetchMoreObserver=Rr,b.FloatingPanel=Ie,b.I18NProvider=Ls,b.Image=kt,b.InvalidSeasonName=tl,b.LAZY_LOADING_STATE_DELAY=Vn,b.LOCALE_FOR_LANG=zn,b.LoadingIndicator=Ve,b.Paginator=oi,b.REFRESH_DELAY=ga,b.ResponsiveTable=Ge,b.SORT_STATE_ASCEND=I,b.SORT_STATE_DESCEND=w,b.SORT_STATE_ORIGINAL=dt,b.ScheduleTable=Yc,b.SeasonSelector=qc,b.StatisticsTable=Tl,b.TimezoneSelector=Gi,b.UndefinedColumn=Yt,b.VBR_API_BASE_URL=Dn,b.WidgetError=We,b.addDays=Li,b.appendTo=rr,b.baseProps=Jc,b.convert=Dl,b.convertGamePeriodResults=Ul,b.convertMinToMinSec=Tr,b.convertMinToSec=je,b.convertPhaseName=Xl,b.convertSecToMin=Sr,b.convertTimes=jl,b.convertTimesMinToMinSec=Fl,b.convertTimesSecToMin=Yl,b.createConfig=$r,b.createI18n=vn,b.currentWeek=Di,b.currentWeekStartEnd=Ci,b.default=nu,b.endOfMonth=Ii,b.externalGameLinkResolver=Jl,b.externalPlayerLinkResolver=tc,b.externalTeamLinkResolver=Ql,b.fetchVBRData=Ar,b.flagResolver=ec,b.format=At,b.gameDateTime=Bl,b.gameProps=eu,b.gameResult=Il,b.getLocalTimezone=wr,b.i18n=$n,b.isAfter=Ni,b.isBefore=vi,b.isBetween=_r,b.isSame=xi,b.isSameOrBefore=Fe,b.isToday=$i,b.localeSort=Wl,b.max=Ri,b.min=zi,b.offsetName=Ft,b.playerName=Ml,b.playerStatsProps=tu,b.rawConvert=Cl,b.scheduleOptionalRowClass=Vl,b.scrollToTop=nc,b.sortGames=Hl,b.startOfMonth=Bi,b.subtractDays=Mi,b.teamName=Ll,b.teamOpponent=zl,b.teamResultType=Rl,b.teamStatsProps=Qc,b.templateReplacer=_t,b.toKebabCase=or,b.upperCase=Gl,b.useAdditionalText=vr,b.useColumns=Ye,b.useError=Re,b.useErrorProvider=sr,b.useI18n=it,b.useLazyLoadingState=rn,b.useMainClass=ct,b.usePage=Yi,b.useScrollToGameDate=Qi,b.useServices=Ui,b.useSort=Xi,b.useVisibilityChange=Ji,b.validateColumnsName=kr,b.yearToNow=Pi,Object.defineProperties(b,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),b}({},Vue);