@mjsz-vbr-elements/core 2.10.0 → 2.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/{AdditionalStandingsText-3jExdQ4O.js → TimezoneSelector-pJzOJFd2.js} +776 -774
- package/dist/columns.js +1 -1
- package/dist/components.js +2 -2
- package/dist/composables.js +84 -71
- package/dist/constants.js +1 -1
- package/dist/{datetime-P3jKxpvY.js → datetime-DTVWbsTz.js} +504 -454
- package/dist/{convert-HYpfGr9y.js → errors-1KEdp4yb.js} +226 -184
- package/dist/index.iife.js +4 -4
- package/dist/index.iife.js.br +0 -0
- package/dist/index.iife.js.gz +0 -0
- package/dist/index.js +127 -122
- package/dist/{useAdditionalText-DHQEg82L.js → useSort-fVNzrwPD.js} +188 -173
- package/dist/utils.js +35 -30
- package/package.json +9 -9
package/dist/index.iife.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* name: @mjsz-vbr-elements/core
|
|
3
|
-
* version: v2.
|
|
3
|
+
* version: v2.11.0 - 14/01/2025, 16:53:45
|
|
4
4
|
* (c) 2025
|
|
5
5
|
* description: Data visualization for MJSZ VBR
|
|
6
6
|
* author: Ákos Stegner <akos.stegner@gmail.com>
|
|
7
7
|
*/
|
|
8
|
-
var MjszVbrElementsCore=function(T,r){"use strict";function qr(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function ln(t){return typeof t=="function"?t():r.unref(t)}const Kr=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Zr=t=>t!=null,Ae=()=>{};function ke(t){var e;const n=ln(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Xr=Kr?window:void 0;function Jr(){const t=r.ref(!1);return r.getCurrentInstance()&&r.onMounted(()=>{t.value=!0}),t}function Qr(t){const e=Jr();return r.computed(()=>(e.value,!!t()))}function to(t,e,n={}){const{root:o,rootMargin:a="0px",threshold:s=.1,window:i=Xr,immediate:l=!0}=n,c=Qr(()=>i&&"IntersectionObserver"in i),u=r.computed(()=>{const m=ln(t);return(Array.isArray(m)?m:[m]).map(ke).filter(Zr)});let f=Ae;const p=r.ref(l),h=c.value?r.watch(()=>[u.value,ke(o),p.value],([m,d])=>{if(f(),!p.value||!m.length)return;const g=new IntersectionObserver(e,{root:ke(d),rootMargin:a,threshold:s});m.forEach(w=>w&&g.observe(w)),f=()=>{g.disconnect(),f=Ae}},{immediate:l,flush:"post"}):Ae,y=()=>{f(),h(),p.value=!1};return qr(y),{isSupported:c,isActive:p,pause(){f(),p.value=!1},resume(){p.value=!0},stop:y}}const eo=r.defineComponent({name:"FetchMoreObserver",props:["as","options"],emits:["intersect"],setup(t,{slots:e,emit:n}){const o=r.ref(null),{stop:a}=to(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,cn={__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 un(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const Ht=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const no=Object.prototype.toString,ro=t=>no.call(t)==="[object Object]",Q=()=>{},oo=ao();function ao(){var t,e;return Ht&&((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 so(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 dn=t=>t();function io(t=dn){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 _e(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function fn(t){return Array.isArray(t)?t:[t]}function lo(t,e,n={}){const{eventFilter:o=dn,...a}=n;return r.watch(t,so(o,e),a)}function co(t,e,n={}){const{eventFilter:o,...a}=n,{eventFilter:s,pause:i,resume:l,isActive:c}=io(o);return{stop:lo(t,e,{...a,eventFilter:s}),pause:i,resume:l,isActive:c}}function Pe(t,e=!1){function n(p,{flush:h="sync",deep:y=!1,timeout:m,throwOnTimeout:d}={}){let g=null;const _=[new Promise(P=>{g=r.watch(t,E=>{p(E)!==e&&(g?g():r.nextTick(()=>g==null?void 0:g()),P(E))},{flush:h,deep:y,immediate:!0})})];return m!=null&&_.push(_e(m,d).then(()=>r.toValue(t)).finally(()=>g==null?void 0:g())),Promise.race(_)}function o(p,h){if(!r.isRef(p))return n(E=>E===p,h);const{flush:y="sync",deep:m=!1,timeout:d,throwOnTimeout:g}=h??{};let w=null;const P=[new Promise(E=>{w=r.watch([t,p],([N,v])=>{e!==(N===v)&&(w?w():r.nextTick(()=>w==null?void 0:w()),E(N))},{flush:y,deep:m,immediate:!0})})];return d!=null&&P.push(_e(d,g).then(()=>r.toValue(t)).finally(()=>(w==null||w(),r.toValue(t)))),Promise.race(P)}function a(p){return n(h=>!!h,p)}function s(p){return o(null,p)}function i(p){return o(void 0,p)}function l(p){return n(Number.isNaN,p)}function c(p,h){return n(y=>{const m=Array.from(y);return m.includes(p)||m.includes(r.toValue(p))},h)}function u(p){return f(1,p)}function f(p=1,h){let y=-1;return n(()=>(y+=1,y>=p),h)}return Array.isArray(r.toValue(t))?{toMatch:n,toContains:c,changed:u,changedTimes:f,get not(){return Pe(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:s,toBeNaN:l,toBeUndefined:i,changed:u,changedTimes:f,get not(){return Pe(t,!e)}}}function uo(t){return Pe(t)}function fo(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)},r.toValue(e))}return o&&(a.value=!0,Ht&&c()),un(l),{isPending:r.readonly(a),start:c,stop:l}}function mn(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n);return o}function mo(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}const pn=Ht?window:void 0,po=Ht?window.document:void 0;function _t(t){var e;const n=r.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Ut(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=pn):[e,n,o,a]=t,!e)return Q;n=fn(n),o=fn(o);const s=[],i=()=>{s.forEach(f=>f()),s.length=0},l=(f,p,h,y)=>(f.addEventListener(p,h,y),()=>f.removeEventListener(p,h,y)),c=r.watch(()=>[_t(e),r.toValue(a)],([f,p])=>{if(i(),!f)return;const h=ro(p)?{...p}:p;s.push(...n.flatMap(y=>o.map(m=>l(f,y,m,h))))},{immediate:!0,flush:"post"}),u=()=>{c(),i()};return un(u),u}let hn=!1;function ho(t,e,n={}){const{window:o=pn,ignore:a=[],capture:s=!0,detectIframe:i=!1}=n;if(!o)return Q;oo&&!hn&&(hn=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Q)),o.document.documentElement.addEventListener("click",Q));let l=!0;const c=d=>r.toValue(a).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(w=>w===d.target||d.composedPath().includes(w));{const w=_t(g);return w&&(d.target===w||d.composedPath().includes(w))}});function u(d){const g=r.toValue(d);return g&&g.$.subTree.shapeFlag===16}function f(d,g){const w=r.toValue(d),_=w.$.subTree&&w.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(P=>P.el===g.target||g.composedPath().includes(P.el))}const p=d=>{const g=_t(t);if(d.target!=null&&!(!(g instanceof Element)&&u(t)&&f(t,d))&&!(!g||g===d.target||d.composedPath().includes(g))){if(d.detail===0&&(l=!c(d)),!l){l=!0;return}e(d)}};let h=!1;const y=[Ut(o,"click",d=>{h||(h=!0,setTimeout(()=>{h=!1},0),p(d))},{passive:!0,capture:s}),Ut(o,"pointerdown",d=>{const g=_t(t);l=!c(d)&&!!(g&&!d.composedPath().includes(g))},{passive:!0}),i&&Ut(o,"blur",d=>{setTimeout(()=>{var g;const w=_t(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(w!=null&&w.contains(o.document.activeElement))&&e(d)},0)},{passive:!0})].filter(Boolean);return()=>y.forEach(d=>d())}function gn(t,e,n){const{immediate:o=!0,delay:a=0,onError:s=Q,onSuccess:i=Q,resetOnExecute:l=!0,shallow:c=!0,throwError:u}=n??{},f=c?r.shallowRef(e):r.ref(e),p=r.ref(!1),h=r.ref(!1),y=r.shallowRef(void 0);async function m(w=0,..._){l&&(f.value=e),y.value=void 0,p.value=!1,h.value=!0,w>0&&await _e(w);const P=typeof t=="function"?t(..._):t;try{const E=await P;f.value=E,p.value=!0,i(E)}catch(E){if(y.value=E,s(E),u)throw E}finally{h.value=!1}return f.value}o&&m(a);const d={state:f,isReady:p,isLoading:h,error:y,execute:m};function g(){return new Promise((w,_)=>{uo(h).toBe(!1).then(()=>w(d)).catch(_)})}return{...d,then(w,_){return g().then(w,_)}}}function go(t={}){const{document:e=po}=t;if(!e)return r.ref("visible");const n=r.ref(e.visibilityState);return Ut(e,"visibilitychange",()=>{n.value=e.visibilityState},{passive:!0}),n}async function yo(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:s,sizes:i,class:l,loading:c,crossorigin:u,referrerPolicy:f,width:p,height:h,decoding:y,fetchPriority:m,ismap:d,usemap:g}=t;o.src=a,s!=null&&(o.srcset=s),i!=null&&(o.sizes=i),l!=null&&(o.className=l),c!=null&&(o.loading=c),u!=null&&(o.crossOrigin=u),f!=null&&(o.referrerPolicy=f),p!=null&&(o.width=p),h!=null&&(o.height=h),y!=null&&(o.decoding=y),m!=null&&(o.fetchPriority=m),d!=null&&(o.isMap=d),g!=null&&(o.useMap=g),o.onload=()=>e(o),o.onerror=n})}function bo(t,e={}){const n=gn(()=>yo(r.toValue(t)),void 0,{resetOnExecute:!0,...e});return r.watch(()=>r.toValue(t),()=>n.execute(e.delay),{deep:!0}),n}function yn(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}=fo(()=>{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 F(t){return function e(n){return arguments.length===0||V(n)?e:t.apply(this,arguments)}}function z(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return V(n)?e:F(function(a){return t(n,a)});default:return V(n)&&V(o)?e:V(n)?F(function(a){return t(a,o)}):V(o)?F(function(a){return t(n,a)}):t(n,o)}}}function Wt(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,p){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function xe(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):Wt(Math.max(0,s),xe(t,o,n))}}var Dt=z(function(e,n){return e===1?F(n):Wt(e,xe(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return V(n)?e:z(function(s,i){return t(n,s,i)});case 2:return V(n)&&V(o)?e:V(n)?z(function(s,i){return t(s,o,i)}):V(o)?z(function(s,i){return t(n,s,i)}):F(function(s){return t(n,o,s)});default:return V(n)&&V(o)&&V(a)?e:V(n)&&V(o)?z(function(s,i){return t(s,i,a)}):V(n)&&V(a)?z(function(s,i){return t(s,o,i)}):V(o)&&V(a)?z(function(s,i){return t(n,s,i)}):V(n)?F(function(s){return t(s,o,a)}):V(o)?F(function(s){return t(n,s,a)}):V(a)?F(function(s){return t(n,o,s)}):t(n,o,a)}}}const vt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function To(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Ct(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!vt(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(To(o)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(o)}}return n.apply(this,arguments)}}function Ee(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const ht={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function bn(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function Tn(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function wo(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function tt(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function So(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const Ne=typeof Object.is=="function"?Object.is:So;var wn=Object.prototype.toString,Sn=function(){return wn.call(arguments)==="[object Arguments]"?function(e){return wn.call(e)==="[object Arguments]"}:function(e){return tt("callee",e)}}(),Oo=!{toString:null}.propertyIsEnumerable("toString"),On=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],An=function(){return arguments.propertyIsEnumerable("length")}(),Ao=function(e,n){for(var o=0;o<e.length;){if(e[o]===n)return!0;o+=1}return!1},gt=F(typeof Object.keys=="function"&&!An?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],s=An&&Sn(e);for(n in e)tt(n,e)&&(!s||n!=="length")&&(a[a.length]=n);if(Oo)for(o=On.length-1;o>=0;)n=On[o],tt(n,e)&&!Ao(a,n)&&(a[a.length]=n),o-=1;return a}),$e=F(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function kn(t,e,n,o){var a=bn(t),s=bn(e);function i(l,c){return Me(l,c,n.slice(),o.slice())}return!Tn(function(l,c){return!Tn(i,c,l)},s,a)}function Me(t,e,n,o){if(Ne(t,e))return!0;var a=$e(t);if(a!==$e(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"&&wo(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&Ne(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!Ne(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:kn(t.entries(),e.entries(),n.concat([t]),o.concat([e]));case"Set":return t.size!==e.size?!1:kn(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=gt(t);if(i.length!==gt(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(!(tt(u,e)&&Me(e[u],t[u],l,c)))return!1;s-=1}return!0}var qt=z(function(e,n){return Me(e,n,[],[])});function ko(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(qt(t[n],e))return n;n+=1}return-1}function _n(t,e){return ko(e,t,0)>=0}function Kt(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function De(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 Lt=function(e){return(e<10?"0":"")+e},_o=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Lt(e.getUTCMonth()+1)+"-"+Lt(e.getUTCDate())+"T"+Lt(e.getUTCHours())+":"+Lt(e.getUTCMinutes())+":"+Lt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Po(t){return function(){return!t.apply(this,arguments)}}function Pn(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function xo(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 Zt(t){return Object.prototype.toString.call(t)==="[object Object]"}var Eo=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function No(t){return function(e){return new Eo(t,e)}}var ve=z(Ct(["fantasy-land/filter","filter"],No,function(t,e){return Zt(e)?Pn(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},gt(e)):xo(t,e)})),$o=z(function(e,n){return ve(Po(e),n)});function xn(t,e){var n=function(i){var l=e.concat([t]);return _n(i,l)?"<Circular>":xn(i,l)},o=function(s,i){return Kt(function(l){return De(l)+": "+n(s[l])},i.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Kt(n,t).join(", ")+"))";case"[object Array]":return"["+Kt(n,t).concat(o(t,$o(function(s){return/^\d+$/.test(s)},gt(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):De(_o(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())+")":De(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,gt(t)).join(", ")+"}"}}var Ce=F(function(e){return xn(e,[])}),Mo=z(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=Ce(e),l=o(i,Ce(n));return l!==void 0&&l===i?e:n}),Do=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),vo=function(e){return function(n){return new Do(e,n)}},ft=z(Ct(["fantasy-land/map","map"],vo,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Dt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return Pn(function(o,a){return o[a]=e(n[a]),o},{},gt(n));default:return Kt(e,n)}}));const Xt=Number.isInteger||function(e){return e<<0===e};function Jt(t){return Object.prototype.toString.call(t)==="[object String]"}function En(t,e){var n=t<0?e.length+t:t;return Jt(e)?e.charAt(n):e[n]}var ut=z(function(e,n){if(n!=null)return Xt(e)?En(e,n):n[e]}),Co=z(function(e,n){return ft(ut(e),n)}),Lo=F(function(e){return vt(e)?!0:!e||typeof e!="object"||Jt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),Nn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Io(t,e,n){return function(a,s,i){if(Lo(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[Nn]!=null)return n(a,s,i[Nn]());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 Bo(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 Ro=z(function(e,n){return Wt(e.length,function(){return e.apply(n,arguments)})});function zo(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 Vo(t,e,n,o){return t["@@transducer/result"](n[o](Ro(t["@@transducer/step"],t),e))}var $n=Io(Bo,Vo,zo),Go=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 Mn(t){return new Go(t)}var Dn=X(function(t,e,n){return $n(typeof t=="function"?Mn(t):t,e,n)}),vn=F(function(e){return function(){return e}}),Fo=F(function(e){return Dt(Dn(Mo,0,Co("length",e)),function(){for(var n=0,o=e.length;n<o;){if(e[n].apply(this,arguments))return!0;n+=1}return!1})}),Le=X(function(e,n,o){var a=e(n),s=e(o);return a<s?-1:a>s?1:0}),jo=F(function(e){return Dt(e.length,e)});function Yo(t,e,n){if(Xt(t)&&vt(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 Ho=F(function(e){return e==null}),Uo=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var s=!Ho(o)&&tt(a,o)&&typeof o[a]=="object"?o[a]:Xt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,s)}return Yo(a,n,o)}),Wo=X(function(e,n,o){return Uo([e],n,o)});function qo(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function Ko(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 Cn(t,e,n){if(n||(n=new Xo),Zo(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($e(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 Ko(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 Zo(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Xo=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 Jo(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Ie(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return vt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var Qo=X(Ie("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),ta=F(Ie("tail",Qo(1,1/0)));function Qt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Wt(arguments[0].length,Dn(Jo,arguments[0],ta(arguments)))}var ea=F(function(e){return Jt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function Ln(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Qt.apply(this,ea(arguments))}var na=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"]=ht.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(tt(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,Cn(this.valueAcc)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function ra(t,e,n){return function(o){return new na(t,e,n,o)}}var oa=xe(4,[],Ct([],ra,function(e,n,o,a){var s=Mn(function(i,l){var c=o(l),u=e(tt(c,i)?i[c]:Cn(n),l);return u&&u["@@transducer/reduced"]?Ee(i):(i[c]=u,i)});return $n(s,{},a)})),aa=X(function(e,n,o){var a=e(n),s=e(o);return a>s?-1:a<s?1:0});function sa(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 ia=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():vt(e)?[]:Jt(e)?"":Zt(e)?{}:Sn(e)?function(){return arguments}():sa(e)?e.constructor.from(""):void 0}),la=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=ht.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=Ee(this.xf["@@transducer/step"](e,n))),e},t}();function ca(t){return function(e){return new la(t,e)}}var ua=z(Ct(["find"],ca,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}})),da=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=ht.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=Ee(this.xf["@@transducer/step"](e,this.idx))),e},t}();function fa(t){return function(e){return new da(t,e)}}var ma=z(Ct([],fa,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1})),pa=z(Ie("groupBy",oa(function(t,e){return t.push(e),t},[]))),ha=X(function(e,n,o){return Dt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})}),ga=z(_n),In=z(function(e,n){return Dt(e+1,function(){var o=arguments[e];if(o!=null&&qo(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ce(o)+' does not have a method named "'+n+'"')})}),Bn=F(function(e){return e!=null&&qt(e,ia(e))}),ya=z(function(e,n){return function(o){return function(a){return ft(function(s){return n(s,a)},o(e(a)))}}});function ba(t,e){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;var a=t[o];Xt(a)?n=En(a,n):n=n[a]}return n}var Ta=F(function(e){return ya(ut(e),Wo(e))}),wa=X(function(e,n,o){var a={},s;n=n||{},o=o||{};for(s in n)tt(s,n)&&(a[s]=tt(s,o)?e(s,n[s],o[s]):n[s]);for(s in o)tt(s,o)&&!tt(s,a)&&(a[s]=o[s]);return a}),Sa=X(function t(e,n,o){return wa(function(a,s,i){return Zt(s)&&Zt(i)?t(e,s,i):e(a,s,i)},n,o)}),Oa=z(function(e,n){return Sa(function(o,a,s){return s},e,n)}),Aa=z(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}),Rn=function(t){return{value:t,map:function(e){return Rn(e(t))}}},ka=X(function(e,n,o){return e(function(a){return Rn(n(a))})(o).value}),Be=z(ba),zn=X(function(e,n,o){return e(ut(n,o))}),_a=X(function(e,n,o){return o.replace(e,n)}),Pa=z(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),Vn=z(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=In(1,"split"),Gn=In(0,"toLowerCase"),It=`
|
|
9
|
-
\v\f\r \u2028\u2029\uFEFF`,xa="",Ea=typeof String.prototype.trim=="function",te=F(!Ea||It.trim()||!xa.trim()?function(e){var n=new RegExp("^["+It+"]["+It+"]*"),o=new RegExp("["+It+"]["+It+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});const Fn=Symbol("I18nContext"),W=r.reactive({messages:{},locale:"",fallbackLocale:""}),jn=({messages:t={},locale:e="",fallbackLocale:n=""})=>{W.messages=t,W.locale=e,W.fallbackLocale=n;const o=(c,u={})=>{const f=!Bn(u),p=ft(te,Pt(".",c));return r.computed(()=>{const y=Yn(p);return f?$a(y,u):y}).value},a=c=>{const u=ft(te,Pt(".",c));return!!Re(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(Fn,l),{translate:o}},at=t=>{t&&(W.messages=t.messages,W.locale=t.locale,W.fallbackLocale=t.fallbackLocale);const e=Na();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}},Na=()=>{const t=r.inject(Fn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Yn=(t=[])=>{let e=Re(W.locale,t,W.messages);return!e&&W.fallbackLocale&&(e=Re(W.fallbackLocale,t,W.messages)),e||t.join(".")};function Re(t,e,n){return Be([t,...e],n)}const $a=function(t,e){return t.replace(/\{(\w+)\}/g,function(n,o){return e[o]})},Hn=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=ft(te,Pt(".",t.path)),o=Yn(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)}}),Un="https://api.icehockey.hu/vbr",Wn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",qn="https://jegkorongszovetseg.hu/assets/images/player_blank.png",Kn="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",Zn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",Xn="https://api.icehockey.hu/static/api/flag",dt="original",b="descend",I="ascend",Jn=new Map().set("hu","hu-hu").set("en","hu-gb"),Qn=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),Ma=1e3*60*5,tr=1e3,Da={"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"};function va(t,e){return r.openBlock(),r.createElementBlock("svg",Da,e[0]||(e[0]=[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)]))}const er={render:va},Ca={"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"};function La(t,e){return r.openBlock(),r.createElementBlock("svg",Ca,e[0]||(e[0]=[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)]))}const Ia={render:La},Ba={"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"};function Ra(t,e){return r.openBlock(),r.createElementBlock("svg",Ba,e[0]||(e[0]=[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)]))}const za={render:Ra},xt=Math.min,yt=Math.max,ee=Math.round,ne=Math.floor,st=t=>({x:t,y:t}),Va={left:"right",right:"left",bottom:"top",top:"bottom"},Ga={start:"end",end:"start"};function ze(t,e,n){return yt(t,xt(e,n))}function Bt(t,e){return typeof t=="function"?t(e):t}function bt(t){return t.split("-")[0]}function Rt(t){return t.split("-")[1]}function nr(t){return t==="x"?"y":"x"}function Ve(t){return t==="y"?"height":"width"}function re(t){return["top","bottom"].includes(bt(t))?"y":"x"}function Ge(t){return nr(re(t))}function Fa(t,e,n){n===void 0&&(n=!1);const o=Rt(t),a=Ge(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=oe(i)),[i,oe(i)]}function ja(t){const e=oe(t);return[Fe(t),e,Fe(e)]}function Fe(t){return t.replace(/start|end/g,e=>Ga[e])}function Ya(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 Ha(t,e,n,o){const a=Rt(t);let s=Ya(bt(t),n==="start",o);return a&&(s=s.map(i=>i+"-"+a),e&&(s=s.concat(s.map(Fe)))),s}function oe(t){return t.replace(/left|right|bottom|top/g,e=>Va[e])}function Ua(t){return{top:0,right:0,bottom:0,left:0,...t}}function rr(t){return typeof t!="number"?Ua(t):{top:t,right:t,bottom:t,left:t}}function ae(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 or(t,e,n){let{reference:o,floating:a}=t;const s=re(e),i=Ge(e),l=Ve(i),c=bt(e),u=s==="y",f=o.x+o.width/2-a.width/2,p=o.y+o.height/2-a.height/2,h=o[l]/2-a[l]/2;let y;switch(c){case"top":y={x:f,y:o.y-a.height};break;case"bottom":y={x:f,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:p};break;case"left":y={x:o.x-a.width,y:p};break;default:y={x:o.x,y:o.y}}switch(Rt(e)){case"start":y[i]-=h*(n&&u?-1:1);break;case"end":y[i]+=h*(n&&u?-1:1);break}return y}const Wa=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:p}=or(u,o,c),h=o,y={},m=0;for(let d=0;d<l.length;d++){const{name:g,fn:w}=l[d],{x:_,y:P,data:E,reset:N}=await w({x:f,y:p,initialPlacement:o,placement:h,strategy:a,middlewareData:y,rects:u,platform:i,elements:{reference:t,floating:e}});f=_??f,p=P??p,y={...y,[g]:{...y[g],...E}},N&&m<=50&&(m++,typeof N=="object"&&(N.placement&&(h=N.placement),N.rects&&(u=N.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:a}):N.rects),{x:f,y:p}=or(u,h,c)),d=-1)}return{x:f,y:p,placement:h,strategy:a,middlewareData:y}};async function ar(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:p="floating",altBoundary:h=!1,padding:y=0}=Bt(e,t),m=rr(y),g=l[h?p==="floating"?"reference":"floating":p],w=ae(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(g)))==null||n?g:g.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(l.floating)),boundary:u,rootBoundary:f,strategy:c})),_=p==="floating"?{...i.floating,x:o,y:a}:i.reference,P=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l.floating)),E=await(s.isElement==null?void 0:s.isElement(P))?await(s.getScale==null?void 0:s.getScale(P))||{x:1,y:1}:{x:1,y:1},N=ae(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:P,strategy:c}):_);return{top:(w.top-N.top+m.top)/E.y,bottom:(N.bottom-w.bottom+m.bottom)/E.y,left:(w.left-N.left+m.left)/E.x,right:(N.right-w.right+m.right)/E.x}}const qa=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}=Bt(t,e)||{};if(u==null)return{};const p=rr(f),h={x:n,y:o},y=Ge(a),m=Ve(y),d=await i.getDimensions(u),g=y==="y",w=g?"top":"left",_=g?"bottom":"right",P=g?"clientHeight":"clientWidth",E=s.reference[m]+s.reference[y]-h[y]-s.floating[m],N=h[y]-s.reference[y],v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u));let L=v?v[P]:0;(!L||!await(i.isElement==null?void 0:i.isElement(v)))&&(L=l.floating[P]||s.floating[m]);const G=E/2-N/2,Y=L/2-d[m]/2-1,B=xt(p[w],Y),D=xt(p[_],Y),H=B,ot=L-d[m]-D,x=L/2-d[m]/2+G,k=ze(H,x,ot),S=!c.arrow&&Rt(a)!=null&&x!==k&&s.reference[m]/2-(x<H?B:D)-d[m]/2<0,O=S?x<H?x-H:x-ot:0;return{[y]:h[y]+O,data:{[y]:k,centerOffset:x-k-O,...S&&{alignmentOffset:O}},reset:S}}}),Ka=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:p=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:d=!0,...g}=Bt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const w=bt(a),_=bt(l)===l,P=await(c.isRTL==null?void 0:c.isRTL(u.floating)),E=h||(_||!d?[oe(l)]:ja(l));!h&&m!=="none"&&E.push(...Ha(l,d,m,P));const N=[l,...E],v=await ar(e,g),L=[];let G=((o=s.flip)==null?void 0:o.overflows)||[];if(f&&L.push(v[w]),p){const H=Fa(a,i,P);L.push(v[H[0]],v[H[1]])}if(G=[...G,{placement:a,overflows:L}],!L.every(H=>H<=0)){var Y,B;const H=(((Y=s.flip)==null?void 0:Y.index)||0)+1,ot=N[H];if(ot)return{data:{index:H,overflows:G},reset:{placement:ot}};let x=(B=G.filter(k=>k.overflows[0]<=0).sort((k,S)=>k.overflows[1]-S.overflows[1])[0])==null?void 0:B.placement;if(!x)switch(y){case"bestFit":{var D;const k=(D=G.map(S=>[S.placement,S.overflows.filter(O=>O>0).reduce((O,A)=>O+A,0)]).sort((S,O)=>S[1]-O[1])[0])==null?void 0:D[0];k&&(x=k);break}case"initialPlacement":x=l;break}if(a!==x)return{reset:{placement:x}}}return{}}}};async function Za(t,e){const{placement:n,platform:o,elements:a}=t,s=await(o.isRTL==null?void 0:o.isRTL(a.floating)),i=bt(n),l=Rt(n),c=re(n)==="y",u=["left","top"].includes(i)?-1:1,f=s&&c?-1:1,p=Bt(e,t);let{mainAxis:h,crossAxis:y,alignmentAxis:m}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return l&&typeof m=="number"&&(y=l==="end"?m*-1:m),c?{x:y*f,y:h*u}:{x:h*u,y:y*f}}const Xa=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 Za(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}}}}},Ja=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:g=>{let{x:w,y:_}=g;return{x:w,y:_}}},...c}=Bt(t,e),u={x:n,y:o},f=await ar(e,c),p=re(bt(a)),h=nr(p);let y=u[h],m=u[p];if(s){const g=h==="y"?"top":"left",w=h==="y"?"bottom":"right",_=y+f[g],P=y-f[w];y=ze(_,y,P)}if(i){const g=p==="y"?"top":"left",w=p==="y"?"bottom":"right",_=m+f[g],P=m-f[w];m=ze(_,m,P)}const d=l.fn({...e,[h]:y,[p]:m});return{...d,data:{x:d.x-n,y:d.y-o}}}}};function se(){return typeof window<"u"}function Et(t){return sr(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function it(t){var e;return(e=(sr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function sr(t){return se()?t instanceof Node||t instanceof Z(t).Node:!1}function et(t){return se()?t instanceof Element||t instanceof Z(t).Element:!1}function lt(t){return se()?t instanceof HTMLElement||t instanceof Z(t).HTMLElement:!1}function ir(t){return!se()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot}function zt(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 Qa(t){return["table","td","th"].includes(Et(t))}function ie(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function je(t){const e=Ye(),n=et(t)?nt(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function ts(t){let e=mt(t);for(;lt(e)&&!Nt(e);){if(je(e))return e;if(ie(e))return null;e=mt(e)}return null}function Ye(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Nt(t){return["html","body","#document"].includes(Et(t))}function nt(t){return Z(t).getComputedStyle(t)}function le(t){return et(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mt(t){if(Et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||ir(t)&&t.host||it(t);return ir(e)?e.host:e}function lr(t){const e=mt(t);return Nt(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&zt(e)?e:lr(e)}function Vt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=lr(t),s=a===((o=t.ownerDocument)==null?void 0:o.body),i=Z(a);if(s){const l=He(i);return e.concat(i,i.visualViewport||[],zt(a)?a:[],l&&n?Vt(l):[])}return e.concat(a,Vt(a,[],n))}function He(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function cr(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=ee(n)!==s||ee(o)!==i;return l&&(n=s,o=i),{width:n,height:o,$:l}}function Ue(t){return et(t)?t:t.contextElement}function $t(t){const e=Ue(t);if(!lt(e))return st(1);const n=e.getBoundingClientRect(),{width:o,height:a,$:s}=cr(e);let i=(s?ee(n.width):n.width)/o,l=(s?ee(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!l||!Number.isFinite(l))&&(l=1),{x:i,y:l}}const es=st(0);function ur(t){const e=Z(t);return!Ye()||!e.visualViewport?es:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ns(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=Ue(t);let i=st(1);e&&(o?et(o)&&(i=$t(o)):i=$t(t));const l=ns(s,n,o)?ur(s):st(0);let c=(a.left+l.x)/i.x,u=(a.top+l.y)/i.y,f=a.width/i.x,p=a.height/i.y;if(s){const h=Z(s),y=o&&et(o)?Z(o):o;let m=h,d=He(m);for(;d&&o&&y!==m;){const g=$t(d),w=d.getBoundingClientRect(),_=nt(d),P=w.left+(d.clientLeft+parseFloat(_.paddingLeft))*g.x,E=w.top+(d.clientTop+parseFloat(_.paddingTop))*g.y;c*=g.x,u*=g.y,f*=g.x,p*=g.y,c+=P,u+=E,m=Z(d),d=He(m)}}return ae({width:f,height:p,x:c,y:u})}function We(t,e){const n=le(t).scrollLeft;return e?e.left+n:Tt(it(t)).left+n}function dr(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),a=o.left+e.scrollLeft-(n?0:We(t,o)),s=o.top+e.scrollTop;return{x:a,y:s}}function rs(t){let{elements:e,rect:n,offsetParent:o,strategy:a}=t;const s=a==="fixed",i=it(o),l=e?ie(e.floating):!1;if(o===i||l&&s)return n;let c={scrollLeft:0,scrollTop:0},u=st(1);const f=st(0),p=lt(o);if((p||!p&&!s)&&((Et(o)!=="body"||zt(i))&&(c=le(o)),lt(o))){const y=Tt(o);u=$t(o),f.x=y.x+o.clientLeft,f.y=y.y+o.clientTop}const h=i&&!p&&!s?dr(i,c,!0):st(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+f.x+h.x,y:n.y*u.y-c.scrollTop*u.y+f.y+h.y}}function os(t){return Array.from(t.getClientRects())}function as(t){const e=it(t),n=le(t),o=t.ownerDocument.body,a=yt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=yt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-n.scrollLeft+We(t);const l=-n.scrollTop;return nt(o).direction==="rtl"&&(i+=yt(e.clientWidth,o.clientWidth)-a),{width:a,height:s,x:i,y:l}}function ss(t,e){const n=Z(t),o=it(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=Ye();(!u||u&&e==="fixed")&&(l=a.offsetLeft,c=a.offsetTop)}return{width:s,height:i,x:l,y:c}}function is(t,e){const n=Tt(t,!0,e==="fixed"),o=n.top+t.clientTop,a=n.left+t.clientLeft,s=lt(t)?$t(t):st(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 fr(t,e,n){let o;if(e==="viewport")o=ss(t,n);else if(e==="document")o=as(it(t));else if(et(e))o=is(e,n);else{const a=ur(t);o={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return ae(o)}function mr(t,e){const n=mt(t);return n===e||!et(n)||Nt(n)?!1:nt(n).position==="fixed"||mr(n,e)}function ls(t,e){const n=e.get(t);if(n)return n;let o=Vt(t,[],!1).filter(l=>et(l)&&Et(l)!=="body"),a=null;const s=nt(t).position==="fixed";let i=s?mt(t):t;for(;et(i)&&!Nt(i);){const l=nt(i),c=je(i);!c&&l.position==="fixed"&&(a=null),(s?!c&&!a:!c&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||zt(i)&&!c&&mr(t,i))?o=o.filter(f=>f!==i):a=l,i=mt(i)}return e.set(t,o),o}function cs(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const i=[...n==="clippingAncestors"?ie(e)?[]:ls(e,this._c):[].concat(n),o],l=i[0],c=i.reduce((u,f)=>{const p=fr(e,f,a);return u.top=yt(p.top,u.top),u.right=xt(p.right,u.right),u.bottom=xt(p.bottom,u.bottom),u.left=yt(p.left,u.left),u},fr(e,l,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function us(t){const{width:e,height:n}=cr(t);return{width:e,height:n}}function ds(t,e,n){const o=lt(e),a=it(e),s=n==="fixed",i=Tt(t,!0,s,e);let l={scrollLeft:0,scrollTop:0};const c=st(0);if(o||!o&&!s)if((Et(e)!=="body"||zt(a))&&(l=le(e)),o){const h=Tt(e,!0,s,e);c.x=h.x+e.clientLeft,c.y=h.y+e.clientTop}else a&&(c.x=We(a));const u=a&&!o&&!s?dr(a,l):st(0),f=i.left+l.scrollLeft-c.x-u.x,p=i.top+l.scrollTop-c.y-u.y;return{x:f,y:p,width:i.width,height:i.height}}function qe(t){return nt(t).position==="static"}function pr(t,e){if(!lt(t)||nt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return it(t)===n&&(n=n.ownerDocument.body),n}function hr(t,e){const n=Z(t);if(ie(t))return n;if(!lt(t)){let a=mt(t);for(;a&&!Nt(a);){if(et(a)&&!qe(a))return a;a=mt(a)}return n}let o=pr(t,e);for(;o&&Qa(o)&&qe(o);)o=pr(o,e);return o&&Nt(o)&&qe(o)&&!je(o)?n:o||ts(t)||n}const fs=async function(t){const e=this.getOffsetParent||hr,n=this.getDimensions,o=await n(t.floating);return{reference:ds(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ms(t){return nt(t).direction==="rtl"}const ps={convertOffsetParentRelativeRectToViewportRelativeRect:rs,getDocumentElement:it,getClippingRect:cs,getOffsetParent:hr,getElementRects:fs,getClientRects:os,getDimensions:us,getScale:$t,isElement:et,isRTL:ms};function gr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function hs(t,e){let n=null,o;const a=it(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 u=t.getBoundingClientRect(),{left:f,top:p,width:h,height:y}=u;if(l||e(),!h||!y)return;const m=ne(p),d=ne(a.clientWidth-(f+h)),g=ne(a.clientHeight-(p+y)),w=ne(f),P={rootMargin:-m+"px "+-d+"px "+-g+"px "+-w+"px",threshold:yt(0,xt(1,c))||1};let E=!0;function N(v){const L=v[0].intersectionRatio;if(L!==c){if(!E)return i();L?i(!1,L):o=setTimeout(()=>{i(!1,1e-7)},1e3)}L===1&&!gr(u,t.getBoundingClientRect())&&i(),E=!1}try{n=new IntersectionObserver(N,{...P,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,P)}n.observe(t)}return i(!0),s}function gs(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=Ue(t),f=a||s?[...u?Vt(u):[],...Vt(e)]:[];f.forEach(w=>{a&&w.addEventListener("scroll",n,{passive:!0}),s&&w.addEventListener("resize",n)});const p=u&&l?hs(u,n):null;let h=-1,y=null;i&&(y=new ResizeObserver(w=>{let[_]=w;_&&_.target===u&&y&&(y.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=y)==null||P.observe(e)})),n()}),u&&!c&&y.observe(u),y.observe(e));let m,d=c?Tt(t):null;c&&g();function g(){const w=Tt(t);d&&!gr(d,w)&&n(),d=w,m=requestAnimationFrame(g)}return n(),()=>{var w;f.forEach(_=>{a&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),p==null||p(),(w=y)==null||w.disconnect(),y=null,c&&cancelAnimationFrame(m)}}const ys=Xa,bs=Ja,Ts=Ka,yr=qa,ws=(t,e,n)=>{const o=new Map,a={platform:ps,...n},s={...a.platform,_c:o};return Wa(t,e,{...a,platform:s})},br=(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 Ss(t,e=()=>({})){return t.slice().sort((n,o)=>{let a=e(n),s=e(o);if(a===null||s===null)return 0;let i=a.compareDocumentPosition(s);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Os({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),p=r.ref(null),h=r.ref(n??"absolute"),y=r.ref(null),m=()=>{!s.value||!i.value||ws(s.value,i.value,{middleware:t,placement:e,strategy:n}).then(g=>{l.value=g.x,c.value=g.y,h.value=g.strategy,u.value=g.middlewareData.arrow.x,f.value=g.middlewareData.arrow.y,p.value=g.placement})};r.watch(()=>({reference:r.unref(s),floating:r.unref(i),append:r.unref(o)}),({floating:g,append:w})=>{w&&br(g,w),m()},{flush:"post"}),r.watch(a,g=>{if(!(!s.value||!i.value)){if(!g)return d();y.value=gs(s.value,i.value,m,{})}},{flush:"post"});const d=()=>{var g;(g=y.value)==null||g.call(y),y.value=null};return{x:l,y:c,arrowX:u,arrowY:f,placement:p,reference:s,floating:i,strategy:h,update:m}}const As=t=>{const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?yr({element:e.value,padding:n}).fn(o):{}:e?yr({element:e,padding:n}).fn(o):{}}}},ks=["data-placement"],Ke={__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:p}=Os({placement:e.placement,middleware:[Ts(),bs({padding:5}),ys(e.offset),As({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n}),h=()=>{e.disabled||n.value||(n.value=!0)},y=g=>{n.value&&g&&(n.value=!1)},m=g=>{u.value=g},d={mouseenter:h,mouseleave:y,focus:h,blur:y};return ho(f,g=>{var w;(w=u.value)!=null&&w.contains(g.target)||y()}),(g,w)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(g.$slots,"default",{setRef:m,show:h,hide:y,events:d}),r.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":r.unref(c),style:r.normalizeStyle({position:r.unref(p),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(g.$slots,"content",{close:y},()=>[r.createTextVNode(r.toDisplayString(t.content),1)]),r.createElementVNode("div",{ref_key:"arrowRef",ref:o,class:"is-arrow",style:r.normalizeStyle({position:r.unref(p),top:r.unref(l)?`${r.unref(l)}px`:"",left:r.unref(i)?`${r.unref(i)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,ks)],64))}},_s=["onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown","tabindex"],Ps={key:0},xs=["colspan"],Es={key:1},Ns=["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=yn(o,{delay:tr}),i=e,{t:l}=at(),c=ct("table"),u=r.computed(()=>n.columns),f=r.computed(()=>Object.keys(n.columns).length),p=(h,y)=>{h.sortOrders&&i("sort",{target:y,orders:h.sortOrders})};return(h,y)=>(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,(m,d)=>(r.openBlock(),r.createBlock(Ke,{key:d,placement:"top",content:m.tooltip,disabled:!m.tooltip,"append-to":r.unref(a)},{default:r.withCtx(({setRef:g,show:w,hide:_})=>[r.createElementVNode("th",{ref_for:!0,ref:g,class:r.normalizeClass([[m.class],{"is-active":d===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(dt),"is-sortable":m.sortOrders,"is-desc":d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)}]),onMouseenter:w,onMouseleave:_,onFocus:w,onBlur:_,onClick:P=>p(m,d),onKeydown:[r.withKeys(r.withModifiers(P=>p(m,d),["prevent"]),["space"]),r.withKeys(r.withModifiers(P=>p(m,d),["prevent"]),["enter"])],tabindex:m.sortOrders?0:-1,role:"button"},[r.renderSlot(h.$slots,`header-${d}`,{column:m},()=>[r.createTextVNode(r.toDisplayString(m.label),1)]),m.sortOrders&&d!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(er),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(dt)?(r.openBlock(),r.createBlock(r.unref(er),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(Ia),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)?(r.openBlock(),r.createBlock(r.unref(za),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,_s)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(m,d)=>(r.openBlock(),r.createElementBlock("tr",{key:d,class:r.normalizeClass(m.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,(g,w)=>(r.openBlock(),r.createElementBlock("td",{key:w,class:r.normalizeClass([[g.class],{"is-active":w===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(dt),"is-zero":m[w]==0||m[w]=="00:00"}])},[r.renderSlot(h.$slots,`cell-${w}`,{row:m,prop:w},()=>[r.createTextVNode(r.toDisplayString(m[w]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",Ps,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(h.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.loading")),1)])],8,xs)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(o)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",Es,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(h.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.noData")),1)])],8,Ns)])])):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"};function Ms(t,e){return r.openBlock(),r.createElementBlock("svg",$s,e[0]||(e[0]=[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),r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1)]))}const Ds={render:Ms},vs={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:o}=at(),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(Ds),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(s.value),1)],2))}};function Tr(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 wt=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,function(n,o){return Be(Pt(".",o),e)})},wr=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||Tr(s.message),cause:s.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(wr,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}},Xe=()=>{const t=Cs();return{onError:t.onError,reset:t.reset}},Cs=()=>{const t=r.inject(wr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t},Ls={__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)})}},Is={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:"SO",overtimeShort:"OT",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"},atoi:{short:"ATOI",tooltip:"Átlagos jégen töltött idő"},shf:{short:"SHF",tooltip:"Jégre lépések száma"},ashf:{short:"ASHF",tooltip:"Jégre lépések száma átlagosan"},eqToi:{short:"EQ-TOI",tooltip:"Jégen töltött idő azonos létszámban"},pp1Toi:{short:"PP1-TOI",tooltip:"Jégen töltött idő egyszeres emberelőnyben"},pp2Toi:{short:"PP2-TOI",tooltip:"Jégen töltött idő kétszeres emberelőnyben"},sh1Toi:{short:"SH1-TOI",tooltip:"Jégen töltött idő egyszeres emberhátrányban"},sh2Toi:{short:"SH2-TOI",tooltip:"Jégen töltött idő kétszeres emberhátrányban"},eqAToi:{short:"EQ-A-TOI",tooltip:"Átlagos jégen töltött idő azonos létszámban"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberelőnyben"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberelőnyben"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberhátrányban"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberhátrányban"},role:{short:"Szerep",tooltip:"Szerep"}},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"}}},Bs={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"},atoi:{short:"ATOI",tooltip:"Average Time On Ice"},shf:{short:"SHF",tooltip:"Shifts"},ashf:{short:"ASHF",tooltip:"Average Shifts"},eqToi:{short:"EQ-TOI",tooltip:"Time On Ice in Equal"},pp1Toi:{short:"PP1-TOI",tooltip:"Time On Ice in PowerPlay 1"},pp2Toi:{short:"PP2-TOI",tooltip:"Time On Ice in PowerPlay 2"},sh1Toi:{short:"SH1-TOI",tooltip:"Time On Ice in Shorthanded 1"},sh2Toi:{short:"SH2-TOI",tooltip:"Time On Ice in Shorthanded 2"},eqAToi:{short:"EQ-A-TOI",tooltip:"Average Time On Ice in Equal"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Average Time On Ice in PowerPlay 1"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Average Time On Ice in PowerPlay 2"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Average Time On Ice in Shorthanded 1"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Average Time On Ice in Shorthanded 2"},role:{short:"Role",tooltip:"Role"}},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"}}},Rs=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},zs=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=Oa({hu:Is,en:Bs},t.messages),{translate:n}=jn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function Vs(t,e,n,o,a,s){return r.renderSlot(t.$slots,"default",{t:t.translate})}const Gs=Rs(zs,[["render",Vs]]),Fs=["src"],js=["src","title"],St=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}=bo(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,Fs)):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,js))],64))}}),Ys={style:{"text-align":"center"}},Je={__name:"LoadingIndicator",setup(t){const{t:e}=at();return(n,o)=>(r.openBlock(),r.createElementBlock("div",Ys,r.toDisplayString(r.unref(e)("common.loading")),1))}};function Hs({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=Q}){const s=r.computed(()=>Math.ceil(r.unref(n)/e)),i=r.computed(()=>{const f=r.unref(t)-1,p=Array.from({length:s.value},(m,d)=>d+1),h=Math.floor(o/2);let y=Math.max(f-h,0);return y+o>=s.value&&(y=Math.max(s.value-o,0)),p.slice(y,y+o)}),l=f=>{const p=r.unref(t)+f;u(p)&&a(p)},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 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"};function Ws(t,e){return r.openBlock(),r.createElementBlock("svg",Us,e[0]||(e[0]=[r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)]))}const qs={render:Ws},Ks={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"};function Zs(t,e){return r.openBlock(),r.createElementBlock("svg",Ks,e[0]||(e[0]=[r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)]))}const Xs={render:Zs},Js=["disabled"],Qs=["disabled"],ti={key:1,class:"is-disabled"},ei=["disabled","onClick"],ni={key:2,class:"is-disabled"},ri=["disabled"],oi=["disabled"],ai={__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}=Hs({currentPage:r.computed(()=>n.page),totalItems:r.computed(()=>n.totalItems),itemsPerPage:n.itemsPerPage,rangeLength:n.rangeLength,update:f=>o("change",f)});return(f,p)=>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:p[0]||(p[0]=h=>r.unref(u)(-1))},[r.renderSlot(f.$slots,"prev",{},()=>[r.createVNode(r.unref(qs),{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:p[1]||(p[1]=h=>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),h=>(r.openBlock(),r.createElementBlock("button",{type:"button",key:h,class:r.normalizeClass({"is-active":h===r.unref(s)}),disabled:h===r.unref(s),onClick:y=>r.unref(c)(h)},r.toDisplayString(h),11,ei))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ni,p[4]||(p[4]=[r.createElementVNode("span",null,"...",-1)]))),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(s)===r.unref(i),onClick:p[2]||(p[2]=h=>r.unref(c)(r.unref(i)))},r.toDisplayString(r.unref(i)),9,ri)),r.createElementVNode("button",{type:"button",disabled:r.unref(s)===r.unref(i),onClick:p[3]||(p[3]=r.withModifiers(h=>r.unref(u)(1),["prevent"]))},[r.renderSlot(f.$slots,"next",{},()=>[r.createVNode(r.unref(Xs),{class:"icon paginator-left"})])],8,oi)],2)):r.createCommentVNode("",!0)}},Qe={__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))}};function rt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ce={exports:{}},si=ce.exports,Or;function Ar(){return Or||(Or=1,function(t,e){(function(n,o){t.exports=o()})(si,function(){var n=1e3,o=6e4,a=36e5,s="millisecond",i="second",l="minute",c="hour",u="day",f="week",p="month",h="quarter",y="year",m="date",d="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|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,_={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 k=["th","st","nd","rd"],S=x%100;return"["+x+(k[(S-20)%10]||k[S]||k[0])+"]"}},P=function(x,k,S){var O=String(x);return!O||O.length>=k?x:""+Array(k+1-O.length).join(S)+x},E={s:P,z:function(x){var k=-x.utcOffset(),S=Math.abs(k),O=Math.floor(S/60),A=S%60;return(k<=0?"+":"-")+P(O,2,"0")+":"+P(A,2,"0")},m:function x(k,S){if(k.date()<S.date())return-x(S,k);var O=12*(S.year()-k.year())+(S.month()-k.month()),A=k.clone().add(O,p),M=S-A<0,$=k.clone().add(O+(M?-1:1),p);return+(-(O+(S-A)/(M?A-$:$-A))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:p,y,w:f,d:u,D:m,h:c,m:l,s:i,ms:s,Q:h}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},N="en",v={};v[N]=_;var L="$isDayjsObject",G=function(x){return x instanceof H||!(!x||!x[L])},Y=function x(k,S,O){var A;if(!k)return N;if(typeof k=="string"){var M=k.toLowerCase();v[M]&&(A=M),S&&(v[M]=S,A=M);var $=k.split("-");if(!A&&$.length>1)return x($[0])}else{var R=k.name;v[R]=k,A=R}return!O&&A&&(N=A),A||!O&&N},B=function(x,k){if(G(x))return x.clone();var S=typeof k=="object"?k:{};return S.date=x,S.args=arguments,new H(S)},D=E;D.l=Y,D.i=G,D.w=function(x,k){return B(x,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var H=function(){function x(S){this.$L=Y(S.locale,null,!0),this.parse(S),this.$x=this.$x||S.x||{},this[L]=!0}var k=x.prototype;return k.parse=function(S){this.$d=function(O){var A=O.date,M=O.utc;if(A===null)return new Date(NaN);if(D.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var $=A.match(g);if($){var R=$[2]-1||0,j=($[7]||"0").substring(0,3);return M?new Date(Date.UTC($[1],R,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)):new Date($[1],R,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)}}return new Date(A)}(S),this.init()},k.init=function(){var S=this.$d;this.$y=S.getFullYear(),this.$M=S.getMonth(),this.$D=S.getDate(),this.$W=S.getDay(),this.$H=S.getHours(),this.$m=S.getMinutes(),this.$s=S.getSeconds(),this.$ms=S.getMilliseconds()},k.$utils=function(){return D},k.isValid=function(){return this.$d.toString()!==d},k.isSame=function(S,O){var A=B(S);return this.startOf(O)<=A&&A<=this.endOf(O)},k.isAfter=function(S,O){return B(S)<this.startOf(O)},k.isBefore=function(S,O){return this.endOf(O)<B(S)},k.$g=function(S,O,A){return D.u(S)?this[O]:this.set(A,S)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(S,O){var A=this,M=!!D.u(O)||O,$=D.p(S),R=function(kt,K){var pt=D.w(A.$u?Date.UTC(A.$y,K,kt):new Date(A.$y,K,kt),A);return M?pt:pt.endOf(u)},j=function(kt,K){return D.w(A.toDate()[kt].apply(A.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(K)),A)},U=this.$W,q=this.$M,J=this.$D,Mt="set"+(this.$u?"UTC":"");switch($){case y:return M?R(1,0):R(31,11);case p:return M?R(1,q):R(0,q+1);case f:var At=this.$locale().weekStart||0,jt=(U<At?U+7:U)-At;return R(M?J-jt:J+(6-jt),q);case u:case m:return j(Mt+"Hours",0);case c:return j(Mt+"Minutes",1);case l:return j(Mt+"Seconds",2);case i:return j(Mt+"Milliseconds",3);default:return this.clone()}},k.endOf=function(S){return this.startOf(S,!1)},k.$set=function(S,O){var A,M=D.p(S),$="set"+(this.$u?"UTC":""),R=(A={},A[u]=$+"Date",A[m]=$+"Date",A[p]=$+"Month",A[y]=$+"FullYear",A[c]=$+"Hours",A[l]=$+"Minutes",A[i]=$+"Seconds",A[s]=$+"Milliseconds",A)[M],j=M===u?this.$D+(O-this.$W):O;if(M===p||M===y){var U=this.clone().set(m,1);U.$d[R](j),U.init(),this.$d=U.set(m,Math.min(this.$D,U.daysInMonth())).$d}else R&&this.$d[R](j);return this.init(),this},k.set=function(S,O){return this.clone().$set(S,O)},k.get=function(S){return this[D.p(S)]()},k.add=function(S,O){var A,M=this;S=Number(S);var $=D.p(O),R=function(q){var J=B(M);return D.w(J.date(J.date()+Math.round(q*S)),M)};if($===p)return this.set(p,this.$M+S);if($===y)return this.set(y,this.$y+S);if($===u)return R(1);if($===f)return R(7);var j=(A={},A[l]=o,A[c]=a,A[i]=n,A)[$]||1,U=this.$d.getTime()+S*j;return D.w(U,this)},k.subtract=function(S,O){return this.add(-1*S,O)},k.format=function(S){var O=this,A=this.$locale();if(!this.isValid())return A.invalidDate||d;var M=S||"YYYY-MM-DDTHH:mm:ssZ",$=D.z(this),R=this.$H,j=this.$m,U=this.$M,q=A.weekdays,J=A.months,Mt=A.meridiem,At=function(K,pt,Yt,Oe){return K&&(K[pt]||K(O,M))||Yt[pt].slice(0,Oe)},jt=function(K){return D.s(R%12||12,K,"0")},kt=Mt||function(K,pt,Yt){var Oe=K<12?"AM":"PM";return Yt?Oe.toLowerCase():Oe};return M.replace(w,function(K,pt){return pt||function(Yt){switch(Yt){case"YY":return String(O.$y).slice(-2);case"YYYY":return D.s(O.$y,4,"0");case"M":return U+1;case"MM":return D.s(U+1,2,"0");case"MMM":return At(A.monthsShort,U,J,3);case"MMMM":return At(J,U);case"D":return O.$D;case"DD":return D.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return At(A.weekdaysMin,O.$W,q,2);case"ddd":return At(A.weekdaysShort,O.$W,q,3);case"dddd":return q[O.$W];case"H":return String(R);case"HH":return D.s(R,2,"0");case"h":return jt(1);case"hh":return jt(2);case"a":return kt(R,j,!0);case"A":return kt(R,j,!1);case"m":return String(j);case"mm":return D.s(j,2,"0");case"s":return String(O.$s);case"ss":return D.s(O.$s,2,"0");case"SSS":return D.s(O.$ms,3,"0");case"Z":return $}return null}(K)||$.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(S,O,A){var M,$=this,R=D.p(O),j=B(S),U=(j.utcOffset()-this.utcOffset())*o,q=this-j,J=function(){return D.m($,j)};switch(R){case y:M=J()/12;break;case p:M=J();break;case h:M=J()/3;break;case f:M=(q-U)/6048e5;break;case u:M=(q-U)/864e5;break;case c:M=q/a;break;case l:M=q/o;break;case i:M=q/n;break;default:M=q}return A?M:D.a(M)},k.daysInMonth=function(){return this.endOf(p).$D},k.$locale=function(){return v[this.$L]},k.locale=function(S,O){if(!S)return this.$L;var A=this.clone(),M=Y(S,O,!0);return M&&(A.$L=M),A},k.clone=function(){return D.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},x}(),ot=H.prototype;return B.prototype=ot,[["$ms",s],["$s",i],["$m",l],["$H",c],["$W",u],["$M",p],["$y",y],["$D",m]].forEach(function(x){ot[x[1]]=function(k){return this.$g(k,x[0],x[1])}}),B.extend=function(x,k){return x.$i||(x(k,H,B),x.$i=!0),B},B.locale=Y,B.isDayjs=G,B.unix=function(x){return B(1e3*x)},B.en=v[N],B.Ls=v,B.p={},B})}(ce)),ce.exports}var ii=Ar();const C=rt(ii);var ue={exports:{}},li=ue.exports,kr;function ci(){return kr||(kr=1,function(t,e){(function(n,o){t.exports=o()})(li,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(d){var g={date:d,utc:!0,args:arguments};return new i(g)},c.utc=function(d){var g=l(this.toDate(),{locale:this.$L,utc:!0});return d?g.add(this.utcOffset(),n):g},c.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var u=c.parse;c.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),u.call(this,d)};var f=c.init;c.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else f.call(this)};var p=c.utcOffset;c.utcOffset=function(d,g){var w=this.$utils().u;if(w(d))return this.$u?0:w(this.$offset)?p.call(this):this.$offset;if(typeof d=="string"&&(d=function(N){N===void 0&&(N="");var v=N.match(o);if(!v)return null;var L=(""+v[0]).match(a)||["-",0,0],G=L[0],Y=60*+L[1]+ +L[2];return Y===0?0:G==="+"?Y:-Y}(d),d===null))return this;var _=Math.abs(d)<=16?60*d:d,P=this;if(g)return P.$offset=_,P.$u=d===0,P;if(d!==0){var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(P=this.local().add(_+E,n)).$offset=_,P.$x.$localOffset=E}else P=this.utc();return P};var h=c.format;c.format=function(d){var g=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,g)},c.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},c.isUTC=function(){return!!this.$u},c.toISOString=function(){return this.toDate().toISOString()},c.toString=function(){return this.toDate().toUTCString()};var y=c.toDate;c.toDate=function(d){return d==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var m=c.diff;c.diff=function(d,g,w){if(d&&this.$u===d.$u)return m.call(this,d,g,w);var _=this.local(),P=l(d).local();return m.call(_,P,g,w)}}})}(ue)),ue.exports}var ui=ci();const di=rt(ui);var de={exports:{}},fi=de.exports,_r;function mi(){return _r||(_r=1,function(t,e){(function(n,o){t.exports=o()})(fi,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(h,y,m){m===void 0&&(m={});var d=new Date(h),g=function(w,_){_===void 0&&(_={});var P=_.timeZoneName||"short",E=w+"|"+P,N=o[E];return N||(N=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:w,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:P}),o[E]=N),N}(y,m);return g.formatToParts(d)},u=function(h,y){for(var m=c(h,y),d=[],g=0;g<m.length;g+=1){var w=m[g],_=w.type,P=w.value,E=n[_];E>=0&&(d[E]=parseInt(P,10))}var N=d[3],v=N===24?0:N,L=d[0]+"-"+d[1]+"-"+d[2]+" "+v+":"+d[4]+":"+d[5]+":000",G=+h;return(i.utc(L).valueOf()-(G-=G%1e3))/6e4},f=s.prototype;f.tz=function(h,y){h===void 0&&(h=l);var m,d=this.utcOffset(),g=this.toDate(),w=g.toLocaleString("en-US",{timeZone:h}),_=Math.round((g-new Date(w))/1e3/60),P=15*-Math.round(g.getTimezoneOffset()/15)-_;if(!Number(P))m=this.utcOffset(0,y);else if(m=i(w,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(P,!0),y){var E=m.utcOffset();m=m.add(d-E,"minute")}return m.$x.$timezone=h,m},f.offsetName=function(h){var y=this.$x.$timezone||i.tz.guess(),m=c(this.valueOf(),y,{timeZoneName:h}).find(function(d){return d.type.toLowerCase()==="timezonename"});return m&&m.value};var p=f.startOf;f.startOf=function(h,y){if(!this.$x||!this.$x.$timezone)return p.call(this,h,y);var m=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return p.call(m,h,y).tz(this.$x.$timezone,!0)},i.tz=function(h,y,m){var d=m&&y,g=m||y||l,w=u(+i(),g);if(typeof h!="string")return i(h).tz(g);var _=function(v,L,G){var Y=v-60*L*1e3,B=u(Y,G);if(L===B)return[Y,L];var D=u(Y-=60*(B-L)*1e3,G);return B===D?[Y,B]:[v-60*Math.min(B,D)*1e3,Math.max(B,D)]}(i.utc(h,d).valueOf(),w,g),P=_[0],E=_[1],N=i(P).utcOffset(E);return N.$x.$timezone=g,N},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(h){l=h}}})}(de)),de.exports}var pi=mi();const hi=rt(pi);var fe={exports:{}},gi=fe.exports,Pr;function yi(){return Pr||(Pr=1,function(t,e){(function(n,o){t.exports=o()})(gi,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(p){switch(p){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(),p==="w"?1:2,"0");case"W":case"WW":return u.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return u.s(String(l.$H===0?24:l.$H),p==="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 p}});return s.bind(this)(f)}}})}(fe)),fe.exports}var bi=yi();const Ti=rt(bi);var me={exports:{}},wi=me.exports,xr;function Si(){return xr||(xr=1,function(t,e){(function(n,o){t.exports=o()})(wi,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,s){return this.isSame(a,s)||this.isBefore(a,s)}}})}(me)),me.exports}var Oi=Si();const Ai=rt(Oi);var pe={exports:{}},ki=pe.exports,Er;function _i(){return Er||(Er=1,function(t,e){(function(n,o){t.exports=o()})(ki,function(){return function(n,o,a){o.prototype.isBetween=function(s,i,l,c){var u=a(s),f=a(i),p=(c=c||"()")[0]==="(",h=c[1]===")";return(p?this.isAfter(u,l):!this.isBefore(u,l))&&(h?this.isBefore(f,l):!this.isAfter(f,l))||(p?this.isBefore(u,l):!this.isAfter(u,l))&&(h?this.isAfter(f,l):!this.isBefore(f,l))}}})}(pe)),pe.exports}var Pi=_i();const xi=rt(Pi);var he={exports:{}},Ei=he.exports,Nr;function Ni(){return Nr||(Nr=1,function(t,e){(function(n,o){t.exports=o()})(Ei,function(){return function(n,o,a){o.prototype.isToday=function(){var s="YYYY-MM-DD",i=a();return this.format(s)===i.format(s)}}})}(he)),he.exports}var $i=Ni();const Mi=rt($i);var ge={exports:{}},Di=ge.exports,$r;function vi(){return $r||($r=1,function(t,e){(function(n,o){t.exports=o()})(Di,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")}}})}(ge)),ge.exports}var Ci=vi();const Li=rt(Ci);var ye={exports:{}},Ii=ye.exports,Mr;function Bi(){return Mr||(Mr=1,function(t,e){(function(n,o){t.exports=o()})(Ii,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)}}})}(ye)),ye.exports}var Ri=Bi();const zi=rt(Ri);var be={exports:{}},Vi=be.exports,Dr;function Gi(){return Dr||(Dr=1,function(t,e){(function(n,o){t.exports=o()})(Vi,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(p,h){return p.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,m,d){var g=d&&d.toUpperCase();return m||h[d]||n[d]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(w,_,P){return _||P.slice(1)})})}(c,u===void 0?{}:u);return l.call(this,f)}}})}(be)),be.exports}var Fi=Gi();const ji=rt(Fi);var Te={exports:{}},Yi=Te.exports,vr;function Hi(){return vr||(vr=1,function(t,e){(function(n,o){t.exports=o()})(Yi,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,p,h){return s.fromToBase(u,f,p,h)}a.en.relativeTime=i,s.fromToBase=function(u,f,p,h,y){for(var m,d,g,w=p.$locale().relativeTime||i,_=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"}],P=_.length,E=0;E<P;E+=1){var N=_[E];N.d&&(m=h?a(u).diff(p,N.d,!0):p.diff(u,N.d,!0));var v=(n.rounding||Math.round)(Math.abs(m));if(g=m>0,v<=N.r||!N.r){v<=1&&E>0&&(N=_[E-1]);var L=w[N.l];y&&(v=y(""+v)),d=typeof L=="string"?L.replace("%d",v):L(v,f,N.l,g);break}}if(f)return d;var G=g?w.future:w.past;return typeof G=="function"?G(d):G.replace("%s",d)},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)}}})}(Te)),Te.exports}var Ui=Hi();const Wi=rt(Ui);var we={exports:{}},qi=we.exports,Cr;function Ki(){return Cr||(Cr=1,function(t,e){(function(n,o){t.exports=o(Ar())})(qi,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})}(we)),we.exports}Ki(),C.extend(di),C.extend(hi),C.extend(Ti),C.extend(Wi),C.extend(ji),C.extend(Ai),C.extend(xi),C.extend(Mi),C.extend(Li),C.extend(zi);const Lr=()=>C.tz.guess(),Ot=(t="",e="",n="",o="hu")=>(n=n||C.tz.guess(),C(t).isValid()?C(t).tz(n).locale(o).format(e):""),Gt=(t="",e="",n="hu")=>{if(!C(t).isValid())return"";e=e||C.tz.guess();const a=new Intl.DateTimeFormat(Zi(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(s=>s.type==="timeZoneName");return a&&a.value},Zi=t=>Jn.get(t),tn=t=>{const e=t.split(":");return parseInt(e[0],10)*60+parseInt(e[1],10)},Ir=t=>{const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")},Br=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(":")},en=(t,e="day")=>C().isSameOrBefore(C(t),e),Rr=(t,e,n,o="[]")=>C(t).isBetween(e,C(n),"day",o),Xi=(t,e,n="month")=>C(t).isSame(e,n),Ji=(t,e="hu")=>C(t).locale(e).toNow(!0),Qi=(t,e,n="day")=>C(t).isBefore(e,n),tl=(t,e,n="day")=>C(t).isAfter(e,n),el=t=>C(t).isToday(),nl=t=>{const e=C().weekday(1),n=C().weekday(7);return Rr(t,e,n)},rl=t=>{const e=C(t).weekday(1),n=C(t).weekday(7);return{startDate:e,endDate:n}},ol=(t,e)=>C(t).subtract(e,"day"),al=(t,e)=>C(t).add(e,"day"),sl=t=>C(t).startOf("month"),il=t=>C(t).endOf("month"),ll=t=>(Array.isArray(t)&&(t=t.map(e=>C(e))),C.min(t)),cl=t=>(Array.isArray(t)&&(t=t.map(e=>C(e))),C.max(...t)),ul=["onClick"],dl={__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}=at(),s=ct("timezone-selector"),i=r.computed(()=>Gt(new Date,null,n.locale)),l=Lr(),c=r.computed(()=>Array.from(Qn.values()).map(f=>({...f,isActive:Gt(new Date,n.currentZone,n.locale)===Gt(new Date,f.timezone,n.locale),zoneOffsetName:Gt(new Date,f.timezone,n.locale)}))),u=f=>o("change",f);return(f,p)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(s))},[r.createVNode(r.unref(Hn),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:p[0]||(p[0]=r.withModifiers(h=>u(r.unref(l)),["prevent"]))},r.toDisplayString(i.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,h=>(r.openBlock(),r.createElementBlock("a",{key:h.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":h.isActive}),onClick:r.withModifiers(y=>u(h.timezone),["prevent"])},r.toDisplayString(r.unref(a)(`common.${h.countryLabelKey}`))+" ("+r.toDisplayString(h.zoneOffsetName)+") ",11,ul))),128))],2))}},nn=(t,e="",n={})=>{const o=r.ref(""),{t:a}=at(),s=r.computed(()=>{if(r.unref(e))try{const c=zr(r.unref(t),r.unref(e));return Aa(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(()=>ft(i,s.value)),error:o}},zr=(t,e="")=>{const n=ft(te,Pt(",",e)),o=gt(t);if(n[0]==="")return resolve([]);const a=n.findIndex(s=>!o.includes(s));if(a>-1)throw n[a];return n},Vr=async(t,e,n)=>{const o=`${Un}${r.unref(t)}${Bn(n)?"":`?${fl(n)}`}`;return new Promise((a,s)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":ml(e)}}).then(i=>i.json()).then(i=>{if(i.error)return s(i);a(i.data)}).catch(i=>{s(i)})})},fl=t=>Object.keys(t).map(e=>e+"="+t[e]).join("&"),ml=t=>{var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")},pl=(t={})=>{const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,s=r.ref(r.unref(e)),i=u=>en(u,"day");return mn(n,()=>{if(!a)return;const u=ma(zn(i,"gameDate"))(r.unref(n));s.value=u===-1?1:Math.floor(u/o)+1}),{page:s,change:u=>{s.value=u}}},hl=({options:t={},transform:e=a=>a,onError:n=Q,onSuccess:o=Q})=>{const{path:a,apiKey:s,params:i,resetOnExecute:l=!1,immediate:c=!1}=t,{state:u,error:f,isLoading:p,execute:h}=gn(()=>Vr(a,s,r.unref(i)).then(y=>e(y)),[],{immediate:c,resetOnExecute:l,onError:n,onSuccess:o});return{state:u,error:f,isLoading:p,execute:h}};/*! *****************************************************************************
|
|
8
|
+
var MjszVbrElementsCore=function(T,r){"use strict";const ln="https://api.icehockey.hu/vbr",cn="https://www.jegkorongszovetseg.hu/event/game/{gameId}",un="https://jegkorongszovetseg.hu/assets/images/player_blank.png",dn="https://www.ersteliga.hu/stats/player/?playerId={player.playerId}&championshipId={championshipId}",fn="https://www.ersteliga.hu/stats/team/?teamId={team.id}&championshipId={championshipId}",mn="https://api.icehockey.hu/static/api/flag",ct="original",b="descend",I="ascend",pn=new Map().set("hu","hu-hu").set("en","hu-gb"),hn=new Map().set("Europe/Budapest",{countryLabelKey:"hungary",timezone:"Europe/Budapest"}).set("Europe/Bucharest",{countryLabelKey:"romania",timezone:"Europe/Bucharest"}),qr=1e3*60*5,gn=1e3,yn={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:""}},Kr={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:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},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:b}]},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:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:I},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},Zr={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:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},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:b}]},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:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Xr={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:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},Jr={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:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Qr={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:b}]},toiMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"toi",direction:b}]},atoiMin:{label:"table.atoi.short",tooltip:"table.atoi.tooltip",sortOrders:[{target:"atoi",direction:b}]},shf:{label:"table.shf.short",tooltip:"table.shf.tooltip",sortOrders:[{target:"shf",direction:b}]},ashf:{label:"table.ashf.short",tooltip:"table.ashf.tooltip",sortOrders:[{target:"ashf",direction:b}]},eqToiMin:{label:"table.eqToi.short",tooltip:"table.eqToi.tooltip",sortOrders:[{target:"eqToi",direction:b}]},pp1ToiMin:{label:"table.pp1Toi.short",tooltip:"table.pp1Toi.tooltip",sortOrders:[{target:"pp1Toi",direction:b}]},pp2ToiMin:{label:"table.pp2Toi.short",tooltip:"table.pp2Toi.tooltip",sortOrders:[{target:"pp2Toi",direction:b}]},sh1ToiMin:{label:"table.sh1Toi.short",tooltip:"table.sh1Toi.tooltip",sortOrders:[{target:"sh1Toi",direction:b}]},sh2ToiMin:{label:"table.sh2Toi.short",tooltip:"table.sh2Toi.tooltip",sortOrders:[{target:"sh2Toi",direction:b}]},eqAToiMin:{label:"table.eqAToi.short",tooltip:"table.eqAToi.tooltip",sortOrders:[{target:"eqAToi",direction:b}]},pp1AToiMin:{label:"table.pp1AToi.short",tooltip:"table.pp1AToi.tooltip",sortOrders:[{target:"pp1AToi",direction:b}]},pp2AToiMin:{label:"table.pp2AToi.short",tooltip:"table.pp2AToi.tooltip",sortOrders:[{target:"pp2AToi",direction:b}]},sh1AToiMin:{label:"table.sh1AToi.short",tooltip:"table.sh1AToi.tooltip",sortOrders:[{target:"sh1AToi",direction:b}]},sh2AToiMin:{label:"table.sh2AToi.short",tooltip:"table.sh2AToi.tooltip",sortOrders:[{target:"sh2AToi",direction:b}]}},to={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:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},eo={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}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assist:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assist",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]}},no={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:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},ro={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:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},oo={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:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},ao={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:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},io={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:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},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:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},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:b}]},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:b}]},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:b}]}};function so(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}function bn(t){return typeof t=="function"?t():r.unref(t)}const lo=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const co=t=>t!=null,Ae=()=>{};function ke(t){var e;const n=bn(t);return(e=n==null?void 0:n.$el)!=null?e:n}const uo=lo?window:void 0;function fo(){const t=r.ref(!1);return r.getCurrentInstance()&&r.onMounted(()=>{t.value=!0}),t}function mo(t){const e=fo();return r.computed(()=>(e.value,!!t()))}function po(t,e,n={}){const{root:o,rootMargin:a="0px",threshold:i=.1,window:s=uo,immediate:l=!0}=n,u=mo(()=>s&&"IntersectionObserver"in s),c=r.computed(()=>{const p=bn(t);return(Array.isArray(p)?p:[p]).map(ke).filter(co)});let f=Ae;const m=r.ref(l),h=u.value?r.watch(()=>[c.value,ke(o),m.value],([p,d])=>{if(f(),!m.value||!p.length)return;const g=new IntersectionObserver(e,{root:ke(d),rootMargin:a,threshold:i});p.forEach(S=>S&&g.observe(S)),f=()=>{g.disconnect(),f=Ae}},{immediate:l,flush:"post"}):Ae,y=()=>{f(),h(),m.value=!1};return so(y),{isSupported:u,isActive:m,pause(){f(),m.value=!1},resume(){m.value=!0},stop:y}}const ho=r.defineComponent({name:"FetchMoreObserver",props:["as","options"],emits:["intersect"],setup(t,{slots:e,emit:n}){const o=r.ref(null),{stop:a}=po(o,([{isIntersecting:i}])=>{i&&n("intersect")},t.options);return r.onUnmounted(a),()=>{if(e.default)return r.h(t.as||"div",{ref:o},e.default())}}});function Tn(t){return r.getCurrentScope()?(r.onScopeDispose(t),!0):!1}const Ht=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const go=Object.prototype.toString,yo=t=>go.call(t)==="[object Object]",Q=()=>{},bo=To();function To(){var t,e;return Ht&&((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 So(t,e){function n(...o){return new Promise((a,i)=>{Promise.resolve(t(()=>e.apply(this,o),{fn:e,thisArg:this,args:o})).then(a).catch(i)})}return n}const Sn=t=>t();function wo(t=Sn){const e=r.ref(!0);function n(){e.value=!1}function o(){e.value=!0}const a=(...i)=>{e.value&&t(...i)};return{isActive:r.readonly(e),pause:n,resume:o,eventFilter:a}}function _e(t,e=!1,n="Timeout"){return new Promise((o,a)=>{setTimeout(e?()=>a(n):o,t)})}function wn(t){return Array.isArray(t)?t:[t]}function Oo(t,e,n={}){const{eventFilter:o=Sn,...a}=n;return r.watch(t,So(o,e),a)}function Ao(t,e,n={}){const{eventFilter:o,...a}=n,{eventFilter:i,pause:s,resume:l,isActive:u}=wo(o);return{stop:Oo(t,e,{...a,eventFilter:i}),pause:s,resume:l,isActive:u}}function Pe(t,e=!1){function n(m,{flush:h="sync",deep:y=!1,timeout:p,throwOnTimeout:d}={}){let g=null;const _=[new Promise(P=>{g=r.watch(t,E=>{m(E)!==e&&(g?g():r.nextTick(()=>g==null?void 0:g()),P(E))},{flush:h,deep:y,immediate:!0})})];return p!=null&&_.push(_e(p,d).then(()=>r.toValue(t)).finally(()=>g==null?void 0:g())),Promise.race(_)}function o(m,h){if(!r.isRef(m))return n(E=>E===m,h);const{flush:y="sync",deep:p=!1,timeout:d,throwOnTimeout:g}=h??{};let S=null;const P=[new Promise(E=>{S=r.watch([t,m],([N,v])=>{e!==(N===v)&&(S?S():r.nextTick(()=>S==null?void 0:S()),E(N))},{flush:y,deep:p,immediate:!0})})];return d!=null&&P.push(_e(d,g).then(()=>r.toValue(t)).finally(()=>(S==null||S(),r.toValue(t)))),Promise.race(P)}function a(m){return n(h=>!!h,m)}function i(m){return o(null,m)}function s(m){return o(void 0,m)}function l(m){return n(Number.isNaN,m)}function u(m,h){return n(y=>{const p=Array.from(y);return p.includes(m)||p.includes(r.toValue(m))},h)}function c(m){return f(1,m)}function f(m=1,h){let y=-1;return n(()=>(y+=1,y>=m),h)}return Array.isArray(r.toValue(t))?{toMatch:n,toContains:u,changed:c,changedTimes:f,get not(){return Pe(t,!e)}}:{toMatch:n,toBe:o,toBeTruthy:a,toBeNull:i,toBeNaN:l,toBeUndefined:s,changed:c,changedTimes:f,get not(){return Pe(t,!e)}}}function ko(t){return Pe(t)}function _o(t,e,n={}){const{immediate:o=!0}=n,a=r.ref(!1);let i=null;function s(){i&&(clearTimeout(i),i=null)}function l(){a.value=!1,s()}function u(...c){s(),a.value=!0,i=setTimeout(()=>{a.value=!1,i=null,t(...c)},r.toValue(e))}return o&&(a.value=!0,Ht&&u()),Tn(l),{isPending:r.readonly(a),start:u,stop:l}}function On(t,e,n){const o=r.watch(t,(...a)=>(r.nextTick(()=>o()),e(...a)),n);return o}function Po(t,e,n){const o=r.watch(t,(a,i,s)=>{a&&(n!=null&&n.once&&r.nextTick(()=>o()),e(a,i,s))},{...n,once:!1});return o}const An=Ht?window:void 0,xo=Ht?window.document:void 0;function _t(t){var e;const n=r.toValue(t);return(e=n==null?void 0:n.$el)!=null?e:n}function Ut(...t){let e,n,o,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,o,a]=t,e=An):[e,n,o,a]=t,!e)return Q;n=wn(n),o=wn(o);const i=[],s=()=>{i.forEach(f=>f()),i.length=0},l=(f,m,h,y)=>(f.addEventListener(m,h,y),()=>f.removeEventListener(m,h,y)),u=r.watch(()=>[_t(e),r.toValue(a)],([f,m])=>{if(s(),!f)return;const h=yo(m)?{...m}:m;i.push(...n.flatMap(y=>o.map(p=>l(f,y,p,h))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return Tn(c),c}let kn=!1;function Eo(t,e,n={}){const{window:o=An,ignore:a=[],capture:i=!0,detectIframe:s=!1}=n;if(!o)return Q;bo&&!kn&&(kn=!0,Array.from(o.document.body.children).forEach(d=>d.addEventListener("click",Q)),o.document.documentElement.addEventListener("click",Q));let l=!0;const u=d=>r.toValue(a).some(g=>{if(typeof g=="string")return Array.from(o.document.querySelectorAll(g)).some(S=>S===d.target||d.composedPath().includes(S));{const S=_t(g);return S&&(d.target===S||d.composedPath().includes(S))}});function c(d){const g=r.toValue(d);return g&&g.$.subTree.shapeFlag===16}function f(d,g){const S=r.toValue(d),_=S.$.subTree&&S.$.subTree.children;return _==null||!Array.isArray(_)?!1:_.some(P=>P.el===g.target||g.composedPath().includes(P.el))}const m=d=>{const g=_t(t);if(d.target!=null&&!(!(g instanceof Element)&&c(t)&&f(t,d))&&!(!g||g===d.target||d.composedPath().includes(g))){if(d.detail===0&&(l=!u(d)),!l){l=!0;return}e(d)}};let h=!1;const y=[Ut(o,"click",d=>{h||(h=!0,setTimeout(()=>{h=!1},0),m(d))},{passive:!0,capture:i}),Ut(o,"pointerdown",d=>{const g=_t(t);l=!u(d)&&!!(g&&!d.composedPath().includes(g))},{passive:!0}),s&&Ut(o,"blur",d=>{setTimeout(()=>{var g;const S=_t(t);((g=o.document.activeElement)==null?void 0:g.tagName)==="IFRAME"&&!(S!=null&&S.contains(o.document.activeElement))&&e(d)},0)},{passive:!0})].filter(Boolean);return()=>y.forEach(d=>d())}function _n(t,e,n){const{immediate:o=!0,delay:a=0,onError:i=Q,onSuccess:s=Q,resetOnExecute:l=!0,shallow:u=!0,throwError:c}=n??{},f=u?r.shallowRef(e):r.ref(e),m=r.ref(!1),h=r.ref(!1),y=r.shallowRef(void 0);async function p(S=0,..._){l&&(f.value=e),y.value=void 0,m.value=!1,h.value=!0,S>0&&await _e(S);const P=typeof t=="function"?t(..._):t;try{const E=await P;f.value=E,m.value=!0,s(E)}catch(E){if(y.value=E,i(E),c)throw E}finally{h.value=!1}return f.value}o&&p(a);const d={state:f,isReady:m,isLoading:h,error:y,execute:p};function g(){return new Promise((S,_)=>{ko(h).toBe(!1).then(()=>S(d)).catch(_)})}return{...d,then(S,_){return g().then(S,_)}}}function No(t={}){const{document:e=xo}=t;if(!e)return r.ref("visible");const n=r.ref(e.visibilityState);return Ut(e,"visibilitychange",()=>{n.value=e.visibilityState},{passive:!0}),n}async function $o(t){return new Promise((e,n)=>{const o=new Image,{src:a,srcset:i,sizes:s,class:l,loading:u,crossorigin:c,referrerPolicy:f,width:m,height:h,decoding:y,fetchPriority:p,ismap:d,usemap:g}=t;o.src=a,i!=null&&(o.srcset=i),s!=null&&(o.sizes=s),l!=null&&(o.className=l),u!=null&&(o.loading=u),c!=null&&(o.crossOrigin=c),f!=null&&(o.referrerPolicy=f),m!=null&&(o.width=m),h!=null&&(o.height=h),y!=null&&(o.decoding=y),p!=null&&(o.fetchPriority=p),d!=null&&(o.isMap=d),g!=null&&(o.useMap=g),o.onload=()=>e(o),o.onerror=n})}function Mo(t,e={}){const n=_n(()=>$o(r.toValue(t)),void 0,{resetOnExecute:!0,...e});return r.watch(()=>r.toValue(t),()=>n.execute(e.delay),{deep:!0}),n}function V(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function F(t){return function e(n){return arguments.length===0||V(n)?e:t.apply(this,arguments)}}function z(t){return function e(n,o){switch(arguments.length){case 0:return e;case 1:return V(n)?e:F(function(a){return t(n,a)});default:return V(n)&&V(o)?e:V(n)?F(function(a){return t(a,o)}):V(o)?F(function(a){return t(n,a)}):t(n,o)}}}function Wt(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,i){return e.apply(this,arguments)};case 5:return function(n,o,a,i,s){return e.apply(this,arguments)};case 6:return function(n,o,a,i,s,l){return e.apply(this,arguments)};case 7:return function(n,o,a,i,s,l,u){return e.apply(this,arguments)};case 8:return function(n,o,a,i,s,l,u,c){return e.apply(this,arguments)};case 9:return function(n,o,a,i,s,l,u,c,f){return e.apply(this,arguments)};case 10:return function(n,o,a,i,s,l,u,c,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 xe(t,e,n){return function(){for(var o=[],a=0,i=t,s=0,l=!1;s<e.length||a<arguments.length;){var u;s<e.length&&(!V(e[s])||a>=arguments.length)?u=e[s]:(u=arguments[a],a+=1),o[s]=u,V(u)?l=!0:i-=1,s+=1}return!l&&i<=0?n.apply(this,o):Wt(Math.max(0,i),xe(t,o,n))}}var Dt=z(function(e,n){return e===1?F(n):Wt(e,xe(e,[],n))});function X(t){return function e(n,o,a){switch(arguments.length){case 0:return e;case 1:return V(n)?e:z(function(i,s){return t(n,i,s)});case 2:return V(n)&&V(o)?e:V(n)?z(function(i,s){return t(i,o,s)}):V(o)?z(function(i,s){return t(n,i,s)}):F(function(i){return t(n,o,i)});default:return V(n)&&V(o)&&V(a)?e:V(n)&&V(o)?z(function(i,s){return t(i,s,a)}):V(n)&&V(a)?z(function(i,s){return t(i,o,s)}):V(o)&&V(a)?z(function(i,s){return t(n,i,s)}):V(n)?F(function(i){return t(i,o,a)}):V(o)?F(function(i){return t(n,i,a)}):V(a)?F(function(i){return t(n,o,i)}):t(n,o,a)}}}const vt=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Do(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Ct(t,e,n){return function(){if(arguments.length===0)return n();var o=arguments[arguments.length-1];if(!vt(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(Do(o)){var i=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(o)}}return n.apply(this,arguments)}}function Ee(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const ht={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};function Pn(t){for(var e=[],n;!(n=t.next()).done;)e.push(n.value);return e}function xn(t,e,n){for(var o=0,a=n.length;o<a;){if(t(e,n[o]))return!0;o+=1}return!1}function vo(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function tt(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function Co(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const Ne=typeof Object.is=="function"?Object.is:Co;var En=Object.prototype.toString,Nn=function(){return En.call(arguments)==="[object Arguments]"?function(e){return En.call(e)==="[object Arguments]"}:function(e){return tt("callee",e)}}(),Lo=!{toString:null}.propertyIsEnumerable("toString"),$n=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Mn=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},gt=F(typeof Object.keys=="function"&&!Mn?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var n,o,a=[],i=Mn&&Nn(e);for(n in e)tt(n,e)&&(!i||n!=="length")&&(a[a.length]=n);if(Lo)for(o=$n.length-1;o>=0;)n=$n[o],tt(n,e)&&!Io(a,n)&&(a[a.length]=n),o-=1;return a}),$e=F(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=Pn(t),i=Pn(e);function s(l,u){return Me(l,u,n.slice(),o.slice())}return!xn(function(l,u){return!xn(s,u,l)},i,a)}function Me(t,e,n,o){if(Ne(t,e))return!0;var a=$e(t);if(a!==$e(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"&&vo(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&Ne(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!Ne(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 i=n.length-1;i>=0;){if(n[i]===t)return o[i]===e;i-=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 s=gt(t);if(s.length!==gt(e).length)return!1;var l=n.concat([t]),u=o.concat([e]);for(i=s.length-1;i>=0;){var c=s[i];if(!(tt(c,e)&&Me(e[c],t[c],l,u)))return!1;i-=1}return!0}var qt=z(function(e,n){return Me(e,n,[],[])});function Bo(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(qt(t[n],e))return n;n+=1}return-1}function vn(t,e){return Bo(e,t,0)>=0}function Kt(t,e){for(var n=0,o=e.length,a=Array(o);n<o;)a[n]=t(e[n]),n+=1;return a}function De(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 Lt=function(e){return(e<10?"0":"")+e},Ro=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Lt(e.getUTCMonth()+1)+"-"+Lt(e.getUTCDate())+"T"+Lt(e.getUTCHours())+":"+Lt(e.getUTCMinutes())+":"+Lt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function zo(t){return function(){return!t.apply(this,arguments)}}function Cn(t,e,n){for(var o=0,a=n.length;o<a;)e=t(e,n[o]),o+=1;return e}function Vo(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 Zt(t){return Object.prototype.toString.call(t)==="[object Object]"}var Go=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,n){return this.f(n)?this.xf["@@transducer/step"](e,n):e},t}();function Fo(t){return function(e){return new Go(t,e)}}var ve=z(Ct(["fantasy-land/filter","filter"],Fo,function(t,e){return Zt(e)?Cn(function(n,o){return t(e[o])&&(n[o]=e[o]),n},{},gt(e)):Vo(t,e)})),jo=z(function(e,n){return ve(zo(e),n)});function Ln(t,e){var n=function(s){var l=e.concat([t]);return vn(s,l)?"<Circular>":Ln(s,l)},o=function(i,s){return Kt(function(l){return De(l)+": "+n(i[l])},s.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Kt(n,t).join(", ")+"))";case"[object Array]":return"["+Kt(n,t).concat(o(t,jo(function(i){return/^\d+$/.test(i)},gt(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):De(Ro(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())+")":De(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,gt(t)).join(", ")+"}"}}var Ce=F(function(e){return Ln(e,[])}),Yo=z(function(e,n){if(e===n)return n;function o(u,c){if(u>c!=c>u)return c>u?c:u}var a=o(e,n);if(a!==void 0)return a;var i=o(typeof e,typeof n);if(i!==void 0)return i===typeof e?e:n;var s=Ce(e),l=o(s,Ce(n));return l!==void 0&&l===s?e:n}),Ho=function(){function t(e,n){this.xf=n,this.f=e}return t.prototype["@@transducer/init"]=ht.init,t.prototype["@@transducer/result"]=ht.result,t.prototype["@@transducer/step"]=function(e,n){return this.xf["@@transducer/step"](e,this.f(n))},t}(),Uo=function(e){return function(n){return new Ho(e,n)}},ft=z(Ct(["fantasy-land/map","map"],Uo,function(e,n){switch(Object.prototype.toString.call(n)){case"[object Function]":return Dt(n.length,function(){return e.call(this,n.apply(this,arguments))});case"[object Object]":return Cn(function(o,a){return o[a]=e(n[a]),o},{},gt(n));default:return Kt(e,n)}}));const Xt=Number.isInteger||function(e){return e<<0===e};function Jt(t){return Object.prototype.toString.call(t)==="[object String]"}function In(t,e){var n=t<0?e.length+t:t;return Jt(e)?e.charAt(n):e[n]}var ut=z(function(e,n){if(n!=null)return Xt(e)?In(e,n):n[e]}),Wo=z(function(e,n){return ft(ut(e),n)}),qo=F(function(e){return vt(e)?!0:!e||typeof e!="object"||Jt(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),Bn=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Ko(t,e,n){return function(a,i,s){if(qo(s))return t(a,i,s);if(s==null)return i;if(typeof s["fantasy-land/reduce"]=="function")return e(a,i,s,"fantasy-land/reduce");if(s[Bn]!=null)return n(a,i,s[Bn]());if(typeof s.next=="function")return n(a,i,s);if(typeof s.reduce=="function")return e(a,i,s,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Zo(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 Xo=z(function(e,n){return Wt(e.length,function(){return e.apply(n,arguments)})});function Jo(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 Qo(t,e,n,o){return t["@@transducer/result"](n[o](Xo(t["@@transducer/step"],t),e))}var Rn=Ko(Zo,Qo,Jo),ta=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 zn(t){return new ta(t)}var Vn=X(function(t,e,n){return Rn(typeof t=="function"?zn(t):t,e,n)}),Gn=F(function(e){return function(){return e}}),ea=F(function(e){return Dt(Vn(Yo,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})}),Le=X(function(e,n,o){var a=e(n),i=e(o);return a<i?-1:a>i?1:0}),na=F(function(e){return Dt(e.length,e)});function ra(t,e,n){if(Xt(t)&&vt(n)){var o=[].concat(n);return o[t]=e,o}var a={};for(var i in n)a[i]=n[i];return a[t]=e,a}var oa=F(function(e){return e==null}),aa=X(function t(e,n,o){if(e.length===0)return n;var a=e[0];if(e.length>1){var i=!oa(o)&&tt(a,o)&&typeof o[a]=="object"?o[a]:Xt(e[1])?[]:{};n=t(Array.prototype.slice.call(e,1),n,i)}return ra(a,n,o)}),ia=X(function(e,n,o){return aa([e],n,o)});function sa(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}function la(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 Fn(t,e,n){if(n||(n=new ua),ca(t))return t;var o=function(i){var s=n.get(t);if(s)return s;n.set(t,i);for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(i[l]=t[l]);return i};switch($e(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 la(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 ca(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var ua=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 s=this.map[n],o=0;o<s.length;o+=1){var a=s[o];if(a[0]===e)return a[1]}return}var i=this.hash(e),s=this.map[i];if(s)for(var o=0;o<s.length;o+=1){var a=s[o];if(a[0]===e)return a[1]}},t}();function da(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Ie(t,e){return function(){var n=arguments.length;if(n===0)return e();var o=arguments[n-1];return vt(o)||typeof o[t]!="function"?e.apply(this,arguments):o[t].apply(o,Array.prototype.slice.call(arguments,0,n-1))}}var fa=X(Ie("slice",function(e,n,o){return Array.prototype.slice.call(o,e,n)})),ma=F(Ie("tail",fa(1,1/0)));function Qt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Wt(arguments[0].length,Vn(da,arguments[0],ma(arguments)))}var pa=F(function(e){return Jt(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()});function jn(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Qt.apply(this,pa(arguments))}var ha=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"]=ht.init,t.prototype["@@transducer/result"]=function(e){var n;for(n in this.inputs)if(tt(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,Fn(this.valueAcc)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],n),e},t}();function ga(t,e,n){return function(o){return new ha(t,e,n,o)}}var ya=xe(4,[],Ct([],ga,function(e,n,o,a){var i=zn(function(s,l){var u=o(l),c=e(tt(u,s)?s[u]:Fn(n),l);return c&&c["@@transducer/reduced"]?Ee(s):(s[u]=c,s)});return Rn(i,{},a)})),ba=X(function(e,n,o){var a=e(n),i=e(o);return a>i?-1:a<i?1:0});function Ta(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 Sa=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():vt(e)?[]:Jt(e)?"":Zt(e)?{}:Nn(e)?function(){return arguments}():Ta(e)?e.constructor.from(""):void 0}),wa=function(){function t(e,n){this.xf=n,this.f=e,this.found=!1}return t.prototype["@@transducer/init"]=ht.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=Ee(this.xf["@@transducer/step"](e,n))),e},t}();function Oa(t){return function(e){return new wa(t,e)}}var Aa=z(Ct(["find"],Oa,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return n[o];o+=1}})),ka=function(){function t(e,n){this.xf=n,this.f=e,this.idx=-1,this.found=!1}return t.prototype["@@transducer/init"]=ht.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=Ee(this.xf["@@transducer/step"](e,this.idx))),e},t}();function _a(t){return function(e){return new ka(t,e)}}var Pa=z(Ct([],_a,function(e,n){for(var o=0,a=n.length;o<a;){if(e(n[o]))return o;o+=1}return-1})),xa=z(Ie("groupBy",ya(function(t,e){return t.push(e),t},[]))),Ea=X(function(e,n,o){return Dt(Math.max(e.length,n.length,o.length),function(){return e.apply(this,arguments)?n.apply(this,arguments):o.apply(this,arguments)})}),Na=z(vn),Yn=z(function(e,n){return Dt(e+1,function(){var o=arguments[e];if(o!=null&&sa(o[n]))return o[n].apply(o,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ce(o)+' does not have a method named "'+n+'"')})}),Hn=F(function(e){return e!=null&&qt(e,Sa(e))}),$a=z(function(e,n){return function(o){return function(a){return ft(function(i){return n(i,a)},o(e(a)))}}});function Ma(t,e){for(var n=e,o=0;o<t.length;o+=1){if(n==null)return;var a=t[o];Xt(a)?n=In(a,n):n=n[a]}return n}var Da=F(function(e){return $a(ut(e),ia(e))}),va=X(function(e,n,o){var a={},i;n=n||{},o=o||{};for(i in n)tt(i,n)&&(a[i]=tt(i,o)?e(i,n[i],o[i]):n[i]);for(i in o)tt(i,o)&&!tt(i,a)&&(a[i]=o[i]);return a}),Ca=X(function t(e,n,o){return va(function(a,i,s){return Zt(i)&&Zt(s)?t(e,i,s):e(a,i,s)},n,o)}),La=z(function(e,n){return Ca(function(o,a,i){return i},e,n)}),Ia=z(function(e,n){for(var o={},a={},i=0,s=e.length;i<s;)a[e[i]]=1,i+=1;for(var l in n)a.hasOwnProperty(l)||(o[l]=n[l]);return o}),Un=function(t){return{value:t,map:function(e){return Un(e(t))}}},Ba=X(function(e,n,o){return e(function(a){return Un(n(a))})(o).value}),Be=z(Ma),Wn=X(function(e,n,o){return e(ut(n,o))}),Ra=X(function(e,n,o){return o.replace(e,n)}),za=z(function(e,n){return Array.prototype.slice.call(n,0).sort(e)}),qn=z(function(e,n){return Array.prototype.slice.call(n,0).sort(function(o,a){for(var i=0,s=0;i===0&&s<e.length;)i=e[s](o,a),s+=1;return i})}),Pt=Yn(1,"split"),Kn=Yn(0,"toLowerCase"),It=`
|
|
9
|
+
\v\f\r \u2028\u2029\uFEFF`,Va="",Ga=typeof String.prototype.trim=="function",te=F(!Ga||It.trim()||!Va.trim()?function(e){var n=new RegExp("^["+It+"]["+It+"]*"),o=new RegExp("["+It+"]["+It+"]*$");return e.replace(n,"").replace(o,"")}:function(e){return e.trim()});function Zn(t,e,n,o){const a=r.ref(""),i=r.ref(!1),s=l=>{const u=ve(ut(e),l),c=u.length>0;if(i.value=c,!c)return a.value="";const m=u.map(h=>({team:h.team.longName,points:Math.abs(ut(e,h))})).map(h=>n(`additionalText.${e}.content`,h)).join(", ");a.value=[n(`additionalText.${e}.prependix`),m,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return On(t,s),r.watch(()=>r.unref(o),()=>s(r.unref(t))),{text:a,isVisible:i}}const Xn=Symbol("I18nContext"),W=r.reactive({messages:{},locale:"",fallbackLocale:""});function Jn({messages:t={},locale:e="",fallbackLocale:n=""}){W.messages=t,W.locale=e,W.fallbackLocale=n;const o=(u,c={})=>{const f=!Hn(c),m=ft(te,Pt(".",u));return r.computed(()=>{const y=Qn(m);return f?ja(y,c):y}).value},a=u=>{const c=ft(te,Pt(".",u));return!!Re(W.locale,c,W.messages)},i=u=>{W.locale=u},l={locale:r.computed({get(){return W.locale},set(u){W.locale=u}}),setLocale:i,translate:o,hasTranslation:a};return r.provide(Xn,l),{translate:o}}function at(t){t&&(W.messages=t.messages,W.locale=t.locale,W.fallbackLocale=t.fallbackLocale);const e=Fa();return{locale:e.locale,t:e.translate,setLocale:e.setLocale,hasTranslation:e.hasTranslation}}function Fa(){const t=r.inject(Xn,null);if(t===null)throw new Error("Privider is missing a parent component.");return t}function Qn(t=[]){let e=Re(W.locale,t,W.messages);return!e&&W.fallbackLocale&&(e=Re(W.fallbackLocale,t,W.messages)),e||t.join(".")}function Re(t,e,n){return Be([t,...e],n)}function ja(t,e){return t.replace(/\{(\w+)\}/g,(n,o)=>e[o])}const tr=r.defineComponent({props:{tag:{type:String,default:"div"},path:{type:String,defult:""}},setup(t,{slots:e}){const n=ft(te,Pt(".",t.path)),o=Qn(n),a=Pt(/\{|\}/,o),i=Object.keys(e).map(s=>{const l=a.indexOf(s);return l>-1&&(a[l]=e[s]()[0]),a});return()=>r.h(t.tag,i)}});function ze(t,e="",n={}){const o=r.ref(""),{t:a}=at(),i=r.computed(()=>{if(r.unref(e))try{const u=er(r.unref(t),r.unref(e));return Ia(u,r.unref(t))}catch(u){o.value=u}return r.unref(t)}),s=u=>({...u,...u.label&&{label:a(u.label??"",r.unref(n))},...u.tooltip&&{tooltip:a(u.tooltip??"")}});return{columns:r.computed(()=>ft(s,i.value)),error:o}}function er(t,e=""){const n=ft(te,Pt(",",e)),o=gt(t);if(n[0]==="")return[];const a=n.findIndex(i=>!o.includes(i));if(a>-1)throw n[a];return n}function nr(t){return t&&t.match(/[A-Z]{2,}(?=[A-Z][a-z]|\b)|[A-Z]?[a-z]+\d*|[A-Z]|\d+/g).map(e=>e.toLowerCase()).join("-")}const yt=function(t="",e={}){return t.replace(/\{([^}]+)\}/g,(n,o)=>Be(Pt(".",o),e))},rr=Symbol("ErrorProviderContext");function or(){const t=r.ref(""),e=r.ref({}),n=i=>{console.error({error:i}),t.value=i.message||i.error.message,e.value={message:i.message,key:i.key||nr(i.message),cause:i.cause}},a={onError:n,reset:()=>{t.value="",e.value={}}};return r.provide(rr,a),window.onerror=i=>{console.error("WINDOW_ONERROR:",i)},r.onErrorCaptured((i,s,l)=>{console.error("onErrorCaptured:",i,s,l)}),{hasError:r.computed(()=>t.value.length>0),message:t,error:e,onError:n}}function Ve(){const t=Ya();return{onError:t.onError,reset:t.reset}}function Ya(){const t=r.inject(rr,null);if(t===null)throw new Error("Privider is missing a parent component.");return t}async function ar(t,e,n){const o=`${ln}${r.unref(t)}${Hn(n)?"":`?${Ha(n)}`}`;return new Promise((a,i)=>{fetch(o,{method:"GET",cache:"no-cache",headers:{"Content-Type":"application/json","X-API-KEY":Ua(e)}}).then(s=>s.json()).then(s=>{if(s.error)return i(s);a(s.data)}).catch(s=>{i(s)})})}function Ha(t){return Object.keys(t).map(e=>`${e}=${t[e]}`).join("&")}function Ua(t){var e;return t||((e=window.__MJSZ_VBR_WIDGET__)!=null&&e.apiKey?window.__MJSZ_VBR_WIDGET__.apiKey:"")}function ir(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(u=>r.unref(u)).some(Boolean):l}),{start:i,stop:s}=_o(()=>{o.value=!0},n);return r.watch(a,l=>{if(l)return i();s(),o.value=!1},{immediate:!0,deep:!0}),o}function dt(t){return"mjsz-vbr-"+t}function et(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var ee={exports:{}},Wa=ee.exports,sr;function lr(){return sr||(sr=1,function(t,e){(function(n,o){t.exports=o()})(Wa,function(){var n=1e3,o=6e4,a=36e5,i="millisecond",s="second",l="minute",u="hour",c="day",f="week",m="month",h="quarter",y="year",p="date",d="Invalid Date",g=/^(\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,_={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 k=["th","st","nd","rd"],w=x%100;return"["+x+(k[(w-20)%10]||k[w]||k[0])+"]"}},P=function(x,k,w){var O=String(x);return!O||O.length>=k?x:""+Array(k+1-O.length).join(w)+x},E={s:P,z:function(x){var k=-x.utcOffset(),w=Math.abs(k),O=Math.floor(w/60),A=w%60;return(k<=0?"+":"-")+P(O,2,"0")+":"+P(A,2,"0")},m:function x(k,w){if(k.date()<w.date())return-x(w,k);var O=12*(w.year()-k.year())+(w.month()-k.month()),A=k.clone().add(O,m),M=w-A<0,$=k.clone().add(O+(M?-1:1),m);return+(-(O+(w-A)/(M?A-$:$-A))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:m,y,w:f,d:c,D:p,h:u,m:l,s,ms:i,Q:h}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},N="en",v={};v[N]=_;var L="$isDayjsObject",G=function(x){return x instanceof H||!(!x||!x[L])},Y=function x(k,w,O){var A;if(!k)return N;if(typeof k=="string"){var M=k.toLowerCase();v[M]&&(A=M),w&&(v[M]=w,A=M);var $=k.split("-");if(!A&&$.length>1)return x($[0])}else{var R=k.name;v[R]=k,A=R}return!O&&A&&(N=A),A||!O&&N},B=function(x,k){if(G(x))return x.clone();var w=typeof k=="object"?k:{};return w.date=x,w.args=arguments,new H(w)},D=E;D.l=Y,D.i=G,D.w=function(x,k){return B(x,{locale:k.$L,utc:k.$u,x:k.$x,$offset:k.$offset})};var H=function(){function x(w){this.$L=Y(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[L]=!0}var k=x.prototype;return k.parse=function(w){this.$d=function(O){var A=O.date,M=O.utc;if(A===null)return new Date(NaN);if(D.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var $=A.match(g);if($){var R=$[2]-1||0,j=($[7]||"0").substring(0,3);return M?new Date(Date.UTC($[1],R,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)):new Date($[1],R,$[3]||1,$[4]||0,$[5]||0,$[6]||0,j)}}return new Date(A)}(w),this.init()},k.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},k.$utils=function(){return D},k.isValid=function(){return this.$d.toString()!==d},k.isSame=function(w,O){var A=B(w);return this.startOf(O)<=A&&A<=this.endOf(O)},k.isAfter=function(w,O){return B(w)<this.startOf(O)},k.isBefore=function(w,O){return this.endOf(O)<B(w)},k.$g=function(w,O,A){return D.u(w)?this[O]:this.set(A,w)},k.unix=function(){return Math.floor(this.valueOf()/1e3)},k.valueOf=function(){return this.$d.getTime()},k.startOf=function(w,O){var A=this,M=!!D.u(O)||O,$=D.p(w),R=function(kt,K){var pt=D.w(A.$u?Date.UTC(A.$y,K,kt):new Date(A.$y,K,kt),A);return M?pt:pt.endOf(c)},j=function(kt,K){return D.w(A.toDate()[kt].apply(A.toDate("s"),(M?[0,0,0,0]:[23,59,59,999]).slice(K)),A)},U=this.$W,q=this.$M,J=this.$D,Mt="set"+(this.$u?"UTC":"");switch($){case y:return M?R(1,0):R(31,11);case m:return M?R(1,q):R(0,q+1);case f:var At=this.$locale().weekStart||0,jt=(U<At?U+7:U)-At;return R(M?J-jt:J+(6-jt),q);case c:case p:return j(Mt+"Hours",0);case u:return j(Mt+"Minutes",1);case l:return j(Mt+"Seconds",2);case s:return j(Mt+"Milliseconds",3);default:return this.clone()}},k.endOf=function(w){return this.startOf(w,!1)},k.$set=function(w,O){var A,M=D.p(w),$="set"+(this.$u?"UTC":""),R=(A={},A[c]=$+"Date",A[p]=$+"Date",A[m]=$+"Month",A[y]=$+"FullYear",A[u]=$+"Hours",A[l]=$+"Minutes",A[s]=$+"Seconds",A[i]=$+"Milliseconds",A)[M],j=M===c?this.$D+(O-this.$W):O;if(M===m||M===y){var U=this.clone().set(p,1);U.$d[R](j),U.init(),this.$d=U.set(p,Math.min(this.$D,U.daysInMonth())).$d}else R&&this.$d[R](j);return this.init(),this},k.set=function(w,O){return this.clone().$set(w,O)},k.get=function(w){return this[D.p(w)]()},k.add=function(w,O){var A,M=this;w=Number(w);var $=D.p(O),R=function(q){var J=B(M);return D.w(J.date(J.date()+Math.round(q*w)),M)};if($===m)return this.set(m,this.$M+w);if($===y)return this.set(y,this.$y+w);if($===c)return R(1);if($===f)return R(7);var j=(A={},A[l]=o,A[u]=a,A[s]=n,A)[$]||1,U=this.$d.getTime()+w*j;return D.w(U,this)},k.subtract=function(w,O){return this.add(-1*w,O)},k.format=function(w){var O=this,A=this.$locale();if(!this.isValid())return A.invalidDate||d;var M=w||"YYYY-MM-DDTHH:mm:ssZ",$=D.z(this),R=this.$H,j=this.$m,U=this.$M,q=A.weekdays,J=A.months,Mt=A.meridiem,At=function(K,pt,Yt,Oe){return K&&(K[pt]||K(O,M))||Yt[pt].slice(0,Oe)},jt=function(K){return D.s(R%12||12,K,"0")},kt=Mt||function(K,pt,Yt){var Oe=K<12?"AM":"PM";return Yt?Oe.toLowerCase():Oe};return M.replace(S,function(K,pt){return pt||function(Yt){switch(Yt){case"YY":return String(O.$y).slice(-2);case"YYYY":return D.s(O.$y,4,"0");case"M":return U+1;case"MM":return D.s(U+1,2,"0");case"MMM":return At(A.monthsShort,U,J,3);case"MMMM":return At(J,U);case"D":return O.$D;case"DD":return D.s(O.$D,2,"0");case"d":return String(O.$W);case"dd":return At(A.weekdaysMin,O.$W,q,2);case"ddd":return At(A.weekdaysShort,O.$W,q,3);case"dddd":return q[O.$W];case"H":return String(R);case"HH":return D.s(R,2,"0");case"h":return jt(1);case"hh":return jt(2);case"a":return kt(R,j,!0);case"A":return kt(R,j,!1);case"m":return String(j);case"mm":return D.s(j,2,"0");case"s":return String(O.$s);case"ss":return D.s(O.$s,2,"0");case"SSS":return D.s(O.$ms,3,"0");case"Z":return $}return null}(K)||$.replace(":","")})},k.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},k.diff=function(w,O,A){var M,$=this,R=D.p(O),j=B(w),U=(j.utcOffset()-this.utcOffset())*o,q=this-j,J=function(){return D.m($,j)};switch(R){case y:M=J()/12;break;case m:M=J();break;case h:M=J()/3;break;case f:M=(q-U)/6048e5;break;case c:M=(q-U)/864e5;break;case u:M=q/a;break;case l:M=q/o;break;case s:M=q/n;break;default:M=q}return A?M:D.a(M)},k.daysInMonth=function(){return this.endOf(m).$D},k.$locale=function(){return v[this.$L]},k.locale=function(w,O){if(!w)return this.$L;var A=this.clone(),M=Y(w,O,!0);return M&&(A.$L=M),A},k.clone=function(){return D.w(this.$d,this)},k.toDate=function(){return new Date(this.valueOf())},k.toJSON=function(){return this.isValid()?this.toISOString():null},k.toISOString=function(){return this.$d.toISOString()},k.toString=function(){return this.$d.toUTCString()},x}(),ot=H.prototype;return B.prototype=ot,[["$ms",i],["$s",s],["$m",l],["$H",u],["$W",c],["$M",m],["$y",y],["$D",p]].forEach(function(x){ot[x[1]]=function(k){return this.$g(k,x[0],x[1])}}),B.extend=function(x,k){return x.$i||(x(k,H,B),x.$i=!0),B},B.locale=Y,B.isDayjs=G,B.unix=function(x){return B(1e3*x)},B.en=v[N],B.Ls=v,B.p={},B})}(ee)),ee.exports}var qa=lr();const C=et(qa);var ne={exports:{}},Ka=ne.exports,cr;function Za(){return cr||(cr=1,function(t,e){(function(n,o){t.exports=o()})(Ka,function(){return function(n,o){var a=o.prototype,i=a.format;a.format=function(s){var l=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var c=this.$utils(),f=(s||"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 u.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return u.ordinal(l.week(),"W");case"w":case"ww":return c.s(l.week(),m==="w"?1:2,"0");case"W":case"WW":return c.s(l.isoWeek(),m==="W"?1:2,"0");case"k":case"kk":return c.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 i.bind(this)(f)}}})}(ne)),ne.exports}var Xa=Za();const Ja=et(Xa);var re={exports:{}},Qa=re.exports,ur;function ti(){return ur||(ur=1,function(t,e){(function(n,o){t.exports=o()})(Qa,function(){return function(n,o,a){o.prototype.isBetween=function(i,s,l,u){var c=a(i),f=a(s),m=(u=u||"()")[0]==="(",h=u[1]===")";return(m?this.isAfter(c,l):!this.isBefore(c,l))&&(h?this.isBefore(f,l):!this.isAfter(f,l))||(m?this.isBefore(c,l):!this.isAfter(c,l))&&(h?this.isAfter(f,l):!this.isBefore(f,l))}}})}(re)),re.exports}var ei=ti();const ni=et(ei);var oe={exports:{}},ri=oe.exports,dr;function oi(){return dr||(dr=1,function(t,e){(function(n,o){t.exports=o()})(ri,function(){return function(n,o){o.prototype.isSameOrBefore=function(a,i){return this.isSame(a,i)||this.isBefore(a,i)}}})}(oe)),oe.exports}var ai=oi();const ii=et(ai);var ae={exports:{}},si=ae.exports,fr;function li(){return fr||(fr=1,function(t,e){(function(n,o){t.exports=o()})(si,function(){return function(n,o,a){o.prototype.isToday=function(){var i="YYYY-MM-DD",s=a();return this.format(i)===s.format(i)}}})}(ae)),ae.exports}var ci=li();const ui=et(ci);var ie={exports:{}},di=ie.exports,mr;function fi(){return mr||(mr=1,function(t,e){(function(n,o){t.exports=o()})(di,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,i){var s=a.prototype,l=s.format;i.en.formats=n,s.format=function(u){u===void 0&&(u="YYYY-MM-DDTHH:mm:ssZ");var c=this.$locale().formats,f=function(m,h){return m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(y,p,d){var g=d&&d.toUpperCase();return p||h[d]||n[d]||h[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(S,_,P){return _||P.slice(1)})})}(u,c===void 0?{}:c);return l.call(this,f)}}})}(ie)),ie.exports}var mi=fi();const pi=et(mi);var se={exports:{}},hi=se.exports,pr;function gi(){return pr||(pr=1,function(t,e){(function(n,o){t.exports=o()})(hi,function(){return function(n,o,a){var i=function(s,l){if(!l||!l.length||l.length===1&&!l[0]||l.length===1&&Array.isArray(l[0])&&!l[0].length)return null;var u;l.length===1&&l[0].length>0&&(l=l[0]),u=(l=l.filter(function(f){return f}))[0];for(var c=1;c<l.length;c+=1)l[c].isValid()&&!l[c][s](u)||(u=l[c]);return u};a.max=function(){var s=[].slice.call(arguments,0);return i("isAfter",s)},a.min=function(){var s=[].slice.call(arguments,0);return i("isBefore",s)}}})}(se)),se.exports}var yi=gi();const bi=et(yi);var le={exports:{}},Ti=le.exports,hr;function Si(){return hr||(hr=1,function(t,e){(function(n,o){t.exports=o()})(Ti,function(){return function(n,o,a){n=n||{};var i=o.prototype,s={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(c,f,m,h){return i.fromToBase(c,f,m,h)}a.en.relativeTime=s,i.fromToBase=function(c,f,m,h,y){for(var p,d,g,S=m.$locale().relativeTime||s,_=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"}],P=_.length,E=0;E<P;E+=1){var N=_[E];N.d&&(p=h?a(c).diff(m,N.d,!0):m.diff(c,N.d,!0));var v=(n.rounding||Math.round)(Math.abs(p));if(g=p>0,v<=N.r||!N.r){v<=1&&E>0&&(N=_[E-1]);var L=S[N.l];y&&(v=y(""+v)),d=typeof L=="string"?L.replace("%d",v):L(v,f,N.l,g);break}}if(f)return d;var G=g?S.future:S.past;return typeof G=="function"?G(d):G.replace("%s",d)},i.to=function(c,f){return l(c,f,this,!0)},i.from=function(c,f){return l(c,f,this)};var u=function(c){return c.$u?a.utc():a()};i.toNow=function(c){return this.to(u(this),c)},i.fromNow=function(c){return this.from(u(this),c)}}})}(le)),le.exports}var wi=Si();const Oi=et(wi);var ce={exports:{}},Ai=ce.exports,gr;function ki(){return gr||(gr=1,function(t,e){(function(n,o){t.exports=o()})(Ai,function(){var n={year:0,month:1,day:2,hour:3,minute:4,second:5},o={};return function(a,i,s){var l,u=function(h,y,p){p===void 0&&(p={});var d=new Date(h),g=function(S,_){_===void 0&&(_={});var P=_.timeZoneName||"short",E=S+"|"+P,N=o[E];return N||(N=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:P}),o[E]=N),N}(y,p);return g.formatToParts(d)},c=function(h,y){for(var p=u(h,y),d=[],g=0;g<p.length;g+=1){var S=p[g],_=S.type,P=S.value,E=n[_];E>=0&&(d[E]=parseInt(P,10))}var N=d[3],v=N===24?0:N,L=d[0]+"-"+d[1]+"-"+d[2]+" "+v+":"+d[4]+":"+d[5]+":000",G=+h;return(s.utc(L).valueOf()-(G-=G%1e3))/6e4},f=i.prototype;f.tz=function(h,y){h===void 0&&(h=l);var p,d=this.utcOffset(),g=this.toDate(),S=g.toLocaleString("en-US",{timeZone:h}),_=Math.round((g-new Date(S))/1e3/60),P=15*-Math.round(g.getTimezoneOffset()/15)-_;if(!Number(P))p=this.utcOffset(0,y);else if(p=s(S,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(P,!0),y){var E=p.utcOffset();p=p.add(d-E,"minute")}return p.$x.$timezone=h,p},f.offsetName=function(h){var y=this.$x.$timezone||s.tz.guess(),p=u(this.valueOf(),y,{timeZoneName:h}).find(function(d){return d.type.toLowerCase()==="timezonename"});return p&&p.value};var m=f.startOf;f.startOf=function(h,y){if(!this.$x||!this.$x.$timezone)return m.call(this,h,y);var p=s(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return m.call(p,h,y).tz(this.$x.$timezone,!0)},s.tz=function(h,y,p){var d=p&&y,g=p||y||l,S=c(+s(),g);if(typeof h!="string")return s(h).tz(g);var _=function(v,L,G){var Y=v-60*L*1e3,B=c(Y,G);if(L===B)return[Y,L];var D=c(Y-=60*(B-L)*1e3,G);return B===D?[Y,B]:[v-60*Math.min(B,D)*1e3,Math.max(B,D)]}(s.utc(h,d).valueOf(),S,g),P=_[0],E=_[1],N=s(P).utcOffset(E);return N.$x.$timezone=g,N},s.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},s.tz.setDefault=function(h){l=h}}})}(ce)),ce.exports}var _i=ki();const Pi=et(_i);var ue={exports:{}},xi=ue.exports,yr;function Ei(){return yr||(yr=1,function(t,e){(function(n,o){t.exports=o()})(xi,function(){var n="minute",o=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(i,s,l){var u=s.prototype;l.utc=function(d){var g={date:d,utc:!0,args:arguments};return new s(g)},u.utc=function(d){var g=l(this.toDate(),{locale:this.$L,utc:!0});return d?g.add(this.utcOffset(),n):g},u.local=function(){return l(this.toDate(),{locale:this.$L,utc:!1})};var c=u.parse;u.parse=function(d){d.utc&&(this.$u=!0),this.$utils().u(d.$offset)||(this.$offset=d.$offset),c.call(this,d)};var f=u.init;u.init=function(){if(this.$u){var d=this.$d;this.$y=d.getUTCFullYear(),this.$M=d.getUTCMonth(),this.$D=d.getUTCDate(),this.$W=d.getUTCDay(),this.$H=d.getUTCHours(),this.$m=d.getUTCMinutes(),this.$s=d.getUTCSeconds(),this.$ms=d.getUTCMilliseconds()}else f.call(this)};var m=u.utcOffset;u.utcOffset=function(d,g){var S=this.$utils().u;if(S(d))return this.$u?0:S(this.$offset)?m.call(this):this.$offset;if(typeof d=="string"&&(d=function(N){N===void 0&&(N="");var v=N.match(o);if(!v)return null;var L=(""+v[0]).match(a)||["-",0,0],G=L[0],Y=60*+L[1]+ +L[2];return Y===0?0:G==="+"?Y:-Y}(d),d===null))return this;var _=Math.abs(d)<=16?60*d:d,P=this;if(g)return P.$offset=_,P.$u=d===0,P;if(d!==0){var E=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(P=this.local().add(_+E,n)).$offset=_,P.$x.$localOffset=E}else P=this.utc();return P};var h=u.format;u.format=function(d){var g=d||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return h.call(this,g)},u.valueOf=function(){var d=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*d},u.isUTC=function(){return!!this.$u},u.toISOString=function(){return this.toDate().toISOString()},u.toString=function(){return this.toDate().toUTCString()};var y=u.toDate;u.toDate=function(d){return d==="s"&&this.$offset?l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():y.call(this)};var p=u.diff;u.diff=function(d,g,S){if(d&&this.$u===d.$u)return p.call(this,d,g,S);var _=this.local(),P=l(d).local();return p.call(_,P,g,S)}}})}(ue)),ue.exports}var Ni=Ei();const $i=et(Ni);var de={exports:{}},Mi=de.exports,br;function Di(){return br||(br=1,function(t,e){(function(n,o){t.exports=o()})(Mi,function(){return function(n,o){o.prototype.weekday=function(a){var i=this.$locale().weekStart||0,s=this.$W,l=(s<i?s+7:s)-i;return this.$utils().u(a)?l:this.subtract(l,"day").add(a,"day")}}})}(de)),de.exports}var vi=Di();const Ci=et(vi);var fe={exports:{}},Li=fe.exports,Tr;function Ii(){return Tr||(Tr=1,function(t,e){(function(n,o){t.exports=o(lr())})(Li,function(n){function o(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var a=o(n),i={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(s){return s+"."},weekStart:1,relativeTime:{future:"%s múlva",past:"%s",s:function(s,l,u,c){return"néhány másodperc"+(c||l?"":"e")},m:function(s,l,u,c){return"egy perc"+(c||l?"":"e")},mm:function(s,l,u,c){return s+" perc"+(c||l?"":"e")},h:function(s,l,u,c){return"egy "+(c||l?"óra":"órája")},hh:function(s,l,u,c){return s+" "+(c||l?"óra":"órája")},d:function(s,l,u,c){return"egy "+(c||l?"nap":"napja")},dd:function(s,l,u,c){return s+" "+(c||l?"nap":"napja")},M:function(s,l,u,c){return"egy "+(c||l?"hónap":"hónapja")},MM:function(s,l,u,c){return s+" "+(c||l?"hónap":"hónapja")},y:function(s,l,u,c){return"egy "+(c||l?"év":"éve")},yy:function(s,l,u,c){return s+" "+(c||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(i,null,!0),i})}(fe)),fe.exports}Ii(),C.extend($i),C.extend(Pi),C.extend(Ja),C.extend(Oi),C.extend(pi),C.extend(ii),C.extend(ni),C.extend(ui),C.extend(Ci),C.extend(bi);const Sr=()=>C.tz.guess();function bt(t="",e="",n="",o="hu"){return n=n||C.tz.guess(),C(t).isValid()?C(t).tz(n).locale(o).format(e):""}function Bt(t="",e="",n="hu"){if(!C(t).isValid())return"";e=e||C.tz.guess();const a=new Intl.DateTimeFormat(Bi(n),{timeZone:e,timeZoneName:"short"}).formatToParts(new Date(t)).find(i=>i.type==="timeZoneName");return a&&a.value}function Bi(t){return pn.get(t)}function Ge(t){const e=t.split(":");return Number.parseInt(e[0],10)*60+Number.parseInt(e[1],10)}function wr(t){const e=~~(t/60),n=~~t%60;return[e.toString().padStart(2,"0"),n.toString().padStart(2,"0")].join(":")}function Or(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(":")}function Fe(t,e="day"){return C().isSameOrBefore(C(t),e)}function Ar(t,e,n,o="[]"){return C(t).isBetween(e,C(n),"day",o)}function Ri(t,e,n="month"){return C(t).isSame(e,n)}function zi(t,e="hu"){return C(t).locale(e).toNow(!0)}function Vi(t,e,n="day"){return C(t).isBefore(e,n)}function Gi(t,e,n="day"){return C(t).isAfter(e,n)}function Fi(t){return C(t).isToday()}function ji(t){const e=C().weekday(1),n=C().weekday(7);return Ar(t,e,n)}function Yi(t){const e=C(t).weekday(1),n=C(t).weekday(7);return{startDate:e,endDate:n}}function Hi(t,e){return C(t).subtract(e,"day")}function Ui(t,e){return C(t).add(e,"day")}function Wi(t){return C(t).startOf("month")}function qi(t){return C(t).endOf("month")}function Ki(t){return Array.isArray(t)&&(t=t.map(e=>C(e))),C.min(t)}function Zi(t){return Array.isArray(t)&&(t=t.map(e=>C(e))),C.max(...t)}function Xi(t={}){const{initial:e=1,items:n=[],limit:o,auto:a=!1}=t,i=r.ref(r.unref(e)),s=c=>Fe(c,"day");return On(n,()=>{if(!a)return;const c=Pa(Wn(s,"gameDate"))(r.unref(n));i.value=c===-1?1:Math.floor(c/o)+1}),{page:i,change:c=>{i.value=c}}}function Ji({currentPage:t,itemsPerPage:e=20,totalItems:n,rangeLength:o=5,update:a=Q}){const i=r.computed(()=>Math.ceil(r.unref(n)/e)),s=r.computed(()=>{const f=r.unref(t)-1,m=Array.from({length:i.value},(p,d)=>d+1),h=Math.floor(o/2);let y=Math.max(f-h,0);return y+o>=i.value&&(y=Math.max(i.value-o,0)),m.slice(y,y+o)}),l=f=>{const m=r.unref(t)+f;c(m)&&a(m)},u=f=>{c(f)&&a(f)};function c(f){return f<=i.value&&f>0}return{page:t,range:s,pageCount:i,goTo:u,pageStep:l}}function Qi(t={}){const{items:e=[],element:n,offset:o=0,enabled:a=!0}=t,i=l=>Fe(l,"day"),s=()=>{var h;if(!r.unref(a))return;const l=Aa(Wn(i,"gameDate"))(r.unref(e));if(!l)return;const u=bt(l.gameDate,"YYYY-MM-DD"),c=_t(n).querySelector(`div[data-gamedate="${u}"]`);if(!c)return;const f=getComputedStyle(c).getPropertyValue("--vbr-widget-sticky-top-offset")||0,m=(((h=c.getBoundingClientRect())==null?void 0:h.top)??0)-r.unref(o)-Number.parseFloat(f);window.scrollTo(0,m)};Ao(()=>({items:r.unref(e),element:r.unref(n)}),async({items:l,element:u})=>{l.length===0||!u||(await r.nextTick(),s())})}function ts({options:t={},transform:e=a=>a,onError:n=Q,onSuccess:o=Q}){const{path:a,apiKey:i,params:s,resetOnExecute:l=!1,immediate:u=!1}=t,{state:c,error:f,isLoading:m,execute:h}=_n(()=>ar(a,i,r.unref(s)).then(y=>e(y)),[],{immediate:u,resetOnExecute:l,onError:n,onSuccess:o});return{state:c,error:f,isLoading:m,execute:h}}/*! *****************************************************************************
|
|
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(T,r){"use strict";function qr(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 rn(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 Gr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(Gr||(Gr={}));var gl={type:"xstate.init"};function Se(t){return t===void 0?[]:[].concat(t)}function Fr(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 on(t){return function(e){return t===e}}function yl(t){return typeof t=="string"?{type:t}:t}function jr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:on(t)}}function Yr(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 bl(t,e){e===void 0&&(e={});var n=rn(Yr(Se(t.states[t.initial].entry).map(function(i){return Fr(i,e.actions)}),t.context,gl),2),o=n[0],a=n[1],s={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:on(t.initial)},transition:function(i,l){var c,u,f=typeof i=="string"?{value:i,context:t.context}:i,p=f.value,h=f.context,y=yl(l),m=t.states[p];if(m.on){var d=Se(m.on[y.type]);"*"in m.on&&d.push.apply(d,function(O,A,M){if(arguments.length===2)for(var $,R=0,j=A.length;R<j;R++)!$&&R in A||($||($=Array.prototype.slice.call(A,0,R)),$[R]=A[R]);return O.concat($||Array.prototype.slice.call(A))}([],rn(Se(m.on["*"])),!1));try{for(var g=function(O){var A=typeof Symbol=="function"&&Symbol.iterator,M=A&&O[A],$=0;if(M)return M.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&$>=O.length&&(O=void 0),{value:O&&O[$++],done:!O}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),w=g.next();!w.done;w=g.next()){var _=w.value;if(_===void 0)return jr(p,h);var P=typeof _=="string"?{target:_}:_,E=P.target,N=P.actions,v=N===void 0?[]:N,L=P.cond,G=L===void 0?function(){return!0}:L,Y=E===void 0,B=E??p,D=t.states[B];if(G(h,y)){var H=rn(Yr((Y?Se(v):[].concat(m.exit,v,D.entry).filter(function(O){return O})).map(function(O){return Fr(O,s._options.actions)}),h,y),3),ot=H[0],x=H[1],k=H[2],S=E??p;return{value:S,context:x,actions:ot,changed:E!==p||ot.length>0||k,matches:on(S)}}}}catch(O){c={error:O}}finally{try{w&&!w.done&&(u=g.return)&&u.call(g)}finally{if(c)throw c.error}}}return jr(p,h)}};return s}const Tl=bl({id:"sort",initial:dt,states:{[dt]:{on:{DIRECTION1:b,DIRECTION2:I}},[b]:{on:{DIRECTION1:I,DIRECTION2:dt}},[I]:{on:{DIRECTION1:dt,DIRECTION2:b}}}}),wl=(t,e)=>{const n=e===I?"DIRECTION2":"DIRECTION1";return Tl.transition(t,n).value};function Sl(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:wl(o.orders[u].direction,c.direction)}));o.sortTarget=s,o.orders=l}}}function Ol(t=!1,e=Q,n=Q){const o=go();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const Al=(t={})=>{const{items:e=[],element:n,offset:o=0,enabled:a=!0}=t,s=c=>en(c,"day"),i=()=>{var y;if(l(),!r.unref(a))return;const c=ua(zn(s,"gameDate"))(r.unref(e));if(!c)return;const u=Ot(c.gameDate,"YYYY-MM-DD"),f=_t(n).querySelector(`div[data-gamedate="${u}"]`);if(!f)return;const p=getComputedStyle(f).getPropertyValue("--vbr-widget-sticky-top-offset")||0,h=(((y=f.getBoundingClientRect())==null?void 0:y.top)??0)-r.unref(o)-parseFloat(p);window.scrollTo(0,h)},{stop:l}=co(()=>({items:r.unref(e),element:r.unref(n)}),async({items:c,element:u})=>{c.length===0||!u||(await r.nextTick(),i())})};function Hr(t,e,n,o){const a=r.ref(""),s=r.ref(!1),i=l=>{const c=ve(ut(e),l),u=c.length>0;if(s.value=u,!u)return a.value="";const p=c.map(h=>({team:h.team.longName,points:Math.abs(ut(e,h))})).map(h=>n(`additionalText.${e}.content`,h)).join(", ");a.value=[n(`additionalText.${e}.prependix`),p,...n(`additionalText.${e}.appendix`)&&[n(`additionalText.${e}.appendix`)]].join(" ")};return mn(t,i),r.watch(()=>r.unref(o),()=>i(r.unref(t))),{text:a,isVisible:s}}class an extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Ft={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},kl={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},_l={class:"is-portrait-image"},Pl={class:"is-team-name-long"},xl={key:0},El={class:"is-team-name-short"},Nl={key:0},$l={class:"is-team-name-long"},Ml={class:"is-team-name-short"},Dl={class:"is-team-name-long"},vl={class:"is-team-name-short"},Cl=["href"],Ll={class:"is-team-name-long"},Il={class:"is-team-name-short"},Bl=["href"],Rl={key:0,class:"is-text-dark"},zl=["href","target"],Vl={key:0,class:"label"},Gl={key:1,class:"label"},Fl={key:2,class:"label"},jl={__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}=Xe(),{t:l}=at(),{columns:c,error:u}=nn(o,a,r.computed(()=>({offsetName:n.offsetName})));u.value&&i(new an(Ft.message,{...Ft.options,cause:{column:u.value}}));const f=p=>s("sort",p);return(p,h)=>(r.openBlock(),r.createBlock(Qe,null,{default:r.withCtx(({el:y})=>[r.createVNode(Ze,{columns:r.unref(c),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||y,onSort:f},r.createSlots({"cell-index":r.withCtx(({row:m})=>[r.createElementVNode("span",{class:r.normalizeClass(m.indexClass)},r.toDisplayString(m.index),3)]),"cell-playerPortrait":r.withCtx(({row:m})=>[r.createElementVNode("div",_l,[(r.openBlock(),r.createBlock(St,{key:m.player.playerId,src:m.player.picture,"default-src":r.unref(qn)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:m})=>{var d,g;return[(r.openBlock(),r.createBlock(St,{class:"is-logo-image",key:((d=m.team)==null?void 0:d.id)??m.id,src:(g=m.team)==null?void 0:g.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:m})=>{var d,g;return[(r.openBlock(),r.createBlock(St,{class:"is-logo-image is-right",key:(d=m.homeTeam)==null?void 0:d.id,src:(g=m.homeTeam)==null?void 0:g.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:m})=>{var d,g;return[(r.openBlock(),r.createBlock(St,{class:"is-logo-image is-right",key:(d=m.awayTeam)==null?void 0:d.id,src:(g=m.awayTeam)==null?void 0:g.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:m})=>{var d,g;return[r.createElementVNode("span",Pl,[r.createTextVNode(r.toDisplayString((d=m.team)==null?void 0:d.longName)+" ",1),m.penaltyPoints?(r.openBlock(),r.createElementBlock("span",xl,h[0]||(h[0]=[r.createElementVNode("sup",null,"*",-1)]))):r.createCommentVNode("",!0)]),r.createElementVNode("span",El,[r.createTextVNode(r.toDisplayString((g=m.team)==null?void 0:g.shortName)+" ",1),m.penaltyPoints?(r.openBlock(),r.createElementBlock("span",Nl,h[1]||(h[1]=[r.createElementVNode("sup",null,"*",-1)]))):r.createCommentVNode("",!0)])]}),"cell-homeTeamName":r.withCtx(({row:m})=>{var d,g;return[r.createElementVNode("span",$l,r.toDisplayString((d=m.homeTeam)==null?void 0:d.longName),1),r.createElementVNode("span",Ml,r.toDisplayString((g=m.homeTeam)==null?void 0:g.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:m})=>{var d,g;return[r.createElementVNode("span",Dl,r.toDisplayString((d=m.awayTeam)==null?void 0:d.longName),1),r.createElementVNode("span",vl,r.toDisplayString((g=m.awayTeam)==null?void 0:g.shortName),1)]}),"cell-location":r.withCtx(({row:m})=>{var d;return[r.createTextVNode(r.toDisplayString(((d=m.location)==null?void 0:d.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:m})=>[m.gameStatus===0?(r.openBlock(),r.createElementBlock("span",Rl,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(m),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":m.gameStatus!==1,"is-text-accent":m.gameStatus===1})},r.toDisplayString(m.homeTeamScore)+":"+r.toDisplayString(m.awayTeamScore),11,zl))]),"cell-gameResultType":r.withCtx(({row:m})=>[m.isOvertime?(r.openBlock(),r.createElementBlock("span",Vl,r.toDisplayString(r.unref(l)("common.overtimeShort")),1)):r.createCommentVNode("",!0),m.isShootout?(r.openBlock(),r.createElementBlock("span",Gl,r.toDisplayString(r.unref(l)("common.shootoutShort")),1)):r.createCommentVNode("",!0),m.seriesStandings?(r.openBlock(),r.createElementBlock("span",Fl,r.toDisplayString(m.seriesStandings),1)):r.createCommentVNode("",!0)]),loading:r.withCtx(()=>[r.createVNode(Je)]),_:2},[t.isTeamLinked?{name:"cell-teamName",fn:r.withCtx(({row:m})=>{var d,g;return[r.createElementVNode("a",{href:t.externalTeamResolver(m),target:"_blank"},[r.createElementVNode("span",Ll,r.toDisplayString((d=m.team)==null?void 0:d.longName),1),r.createElementVNode("span",Il,r.toDisplayString((g=m.team)==null?void 0:g.shortName),1)],8,Cl)]}),key:"0"}:void 0,t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:m})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(m),target:"_blank"},r.toDisplayString(m.name),9,Bl)]),key:"1"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},Ur={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:""}},Yl={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:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"otw",direction:b}]},otw:{label:"table.otw.short",tooltip:"table.otw.tooltip",sortOrders:[{target:"otw",direction:b}]},sow:{label:"table.sow.short",tooltip:"table.sow.tooltip",sortOrders:[{target:"sow",direction:b}]},sol:{label:"table.sol.short",tooltip:"table.sol.tooltip",sortOrders:[{target:"sol",direction:b}]},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:b}]},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:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b},{target:"gamesPlayed",direction:I},{target:"w",direction:b},{target:"gd",direction:b},{target:"gf",direction:b}]}},Hl={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:b}]},w:{label:"table.wins.short",tooltip:"table.wins.tooltip",sortOrders:[{target:"w",direction:b},{target:"d",direction:b}]},d:{label:"table.draw.short",tooltip:"table.draw.tooltip",sortOrders:[{target:"d",direction:b},{target:"w",direction:b}]},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:b}]},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:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",class:"is-text-bold",sortOrders:[{target:"points",direction:b}]}},Ul={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:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assists:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assists",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]},plusMinus:{label:"table.plusMinus.short",tooltip:"table.plusMinus.tooltip",sortOrders:[{target:"plusMinus",direction:b}]},shots:{label:"table.sog.short",tooltip:"table.sog.tooltip",sortOrders:[{target:"shots",direction:b}]},shotPercent:{label:"table.sogPercent.short",tooltip:"table.sogPercent.tooltip",sortOrders:[{target:"shootPercent",direction:b}]}},Wl={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:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},ql={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:b}]},toiMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"toi",direction:b}]},atoiMin:{label:"table.atoi.short",tooltip:"table.atoi.tooltip",sortOrders:[{target:"atoi",direction:b}]},shf:{label:"table.shf.short",tooltip:"table.shf.tooltip",sortOrders:[{target:"shf",direction:b}]},ashf:{label:"table.ashf.short",tooltip:"table.ashf.tooltip",sortOrders:[{target:"ashf",direction:b}]},eqToiMin:{label:"table.eqToi.short",tooltip:"table.eqToi.tooltip",sortOrders:[{target:"eqToi",direction:b}]},pp1ToiMin:{label:"table.pp1Toi.short",tooltip:"table.pp1Toi.tooltip",sortOrders:[{target:"pp1Toi",direction:b}]},pp2ToiMin:{label:"table.pp2Toi.short",tooltip:"table.pp2Toi.tooltip",sortOrders:[{target:"pp2Toi",direction:b}]},sh1ToiMin:{label:"table.sh1Toi.short",tooltip:"table.sh1Toi.tooltip",sortOrders:[{target:"sh1Toi",direction:b}]},sh2ToiMin:{label:"table.sh2Toi.short",tooltip:"table.sh2Toi.tooltip",sortOrders:[{target:"sh2Toi",direction:b}]},eqAToiMin:{label:"table.eqAToi.short",tooltip:"table.eqAToi.tooltip",sortOrders:[{target:"eqAToi",direction:b}]},pp1AToiMin:{label:"table.pp1AToi.short",tooltip:"table.pp1AToi.tooltip",sortOrders:[{target:"pp1AToi",direction:b}]},pp2AToiMin:{label:"table.pp2AToi.short",tooltip:"table.pp2AToi.tooltip",sortOrders:[{target:"pp2AToi",direction:b}]},sh1AToiMin:{label:"table.sh1AToi.short",tooltip:"table.sh1AToi.tooltip",sortOrders:[{target:"sh1AToi",direction:b}]},sh2AToiMin:{label:"table.sh2AToi.short",tooltip:"table.sh2AToi.tooltip",sortOrders:[{target:"sh2AToi",direction:b}]}},Kl={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:b}]},gpi:{label:"table.gpi.short",tooltip:"table.gpi.tooltip",sortOrders:[{target:"gpi",direction:b}]},mipMin:{label:"table.toi.short",tooltip:"table.toi.tooltip",sortOrders:[{target:"mip",direction:b}]},mipPercent:{label:"table.toiPercent.short",tooltip:"table.toiPercent.tooltip",sortOrders:[{target:"mipPercent",direction:b}]},ga:{label:"table.ga.short",tooltip:"table.ga.tooltip",sortOrders:[{target:"ga",direction:b}]},gaa:{label:"table.gaa.short",tooltip:"table.gaa.tooltip",sortOrders:[{target:"gaa",direction:b}]},sog:{label:"table.sa.short",tooltip:"table.sa.tooltip",sortOrders:[{target:"sog",direction:b}]},svs:{label:"table.svs.short",tooltip:"table.svs.tooltip",sortOrders:[{target:"svs",direction:b}]},svsPercent:{label:"table.svsPercent.short",tooltip:"table.svsPercent.tooltip",sortOrders:[{target:"svsPercent",direction:b}]}},Zl={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}]},gp:{label:"table.game.short",tooltip:"table.game.tooltip",sortOrders:[{target:"gp",direction:b}]},goals:{label:"table.goals.short",tooltip:"table.goals.tooltip",sortOrders:[{target:"goals",direction:b},{target:"assists",direction:b}]},assist:{label:"table.assists.short",tooltip:"table.assists.tooltip",sortOrders:[{target:"assist",direction:b},{target:"goals",direction:b}]},points:{label:"table.points.short",tooltip:"table.points.tooltip",sortOrders:[{target:"points",direction:b}]}},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:b}]},homeAttendance:{label:"table.homeAttendance.short",tooltip:"table.homeAttendance.tooltip",sortOrders:[{target:"homeAttendance",direction:b}]},homeAttendanceAvg:{label:"table.homeAttendanceAvg.short",tooltip:"table.homeAttendanceAvg.tooltip",sortOrders:[{target:"homeAttendanceAvg",direction:b}]},away:{label:"table.awayHeader.short"},awayGame:{label:"table.awayGame.short",tooltip:"table.awayGame.tooltip",sortOrders:[{target:"awayGame",direction:b}]},awayAttendance:{label:"table.awayAttendance.short",tooltip:"table.awayAttendance.tooltip",sortOrders:[{target:"awayAttendance",direction:b}]},awayAttendanceAvg:{label:"table.awayAttendanceAvg.short",tooltip:"table.awayAttendanceAvg.tooltip",sortOrders:[{target:"awayAttendanceAvg",direction:b}]},total:{label:"table.totalHeader.short"},totalGame:{label:"table.totalGame.short",tooltip:"table.totalGame.tooltip",sortOrders:[{target:"totalGame",direction:b}]},totalAttendance:{label:"table.totalAttendance.short",tooltip:"table.totalAttendance.tooltip",sortOrders:[{target:"totalAttendance",direction:b}]},totalAttendanceAvg:{label:"table.totalAttendanceAvg.short",tooltip:"table.totalAttendanceAvg.tooltip",sortOrders:[{target:"totalAttendanceAvg",direction:b}]}},Jl={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:b}]},p2:{label:"table.minorPenalties.short",tooltip:"table.minorPenalties.tooltip",sortOrders:[{target:"p2",direction:b},{target:"pim",direction:b}]},p5:{label:"table.majorPenalties.short",tooltip:"table.majorPenalties.tooltip",sortOrders:[{target:"p5",direction:b},{target:"pim",direction:b}]},p10:{label:"table.misconducts.short",tooltip:"table.misconducts.tooltip",sortOrders:[{target:"p10",direction:b},{target:"pim",direction:b}]},p20:{label:"table.gameMisconducts.short",tooltip:"table.gameMisconducts.tooltip",sortOrders:[{target:"p20",direction:b},{target:"pim",direction:b}]},p25:{label:"table.matchPenalties.short",tooltip:"table.matchPenalties.tooltip",sortOrders:[{target:"p25",direction:b},{target:"pim",direction:b}]},pimPerGame:{label:"table.pimPerGame.short",tooltip:"table.pimPerGame.tooltip",sortOrders:[{target:"pimPerGame",direction:b}]},pim:{label:"table.pim.short",tooltip:"table.pim.tooltip",sortOrders:[{target:"pim",direction:b}]}},Ql={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:b}]},dvg:{label:"table.powerplayDisadvantages.short",tooltip:"table.powerplayDisadvantages.tooltip",sortOrders:[{target:"dvg",direction:b}]},dvgTimeMin:{label:"table.dvgTime.short",tooltip:"table.dvgTime.tooltip",sortOrders:[{target:"dvgTime",direction:b}]},dvgTimePP1Min:{label:"table.dvgTimePP1.short",tooltip:"table.dvgTimePP1.tooltip",sortOrders:[{target:"dvgTimePP1",direction:b}]},dvgTimePP2Min:{label:"table.dvgTimePP2.short",tooltip:"table.dvgTimePP2.tooltip",sortOrders:[{target:"dvgTimePP2",direction:b}]},ppga:{label:"table.ppga.short",tooltip:"table.ppga.tooltip",sortOrders:[{target:"ppga",direction:b}]},shgf:{label:"table.shgf.short",tooltip:"table.shgf.tooltip",sortOrders:[{target:"shgf",direction:b}]},pkPercent:{label:"table.pkPercent.short",tooltip:"table.pkPercent.tooltip",sortOrders:[{target:"pkPercent",direction:b}]}},tc={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:b}]},adv:{label:"table.adv.short",tooltip:"table.adv.tooltip",sortOrders:[{target:"adv",direction:b}]},advTimeMin:{label:"table.advTime.short",tooltip:"table.advTime.tooltip",sortOrders:[{target:"advTime",direction:b}]},advTimePP1Min:{label:"table.advTimePP1.short",tooltip:"table.advTimePP1.tooltip",sortOrders:[{target:"advTimePP1",direction:b}]},advTimePP2Min:{label:"table.advTimePP2.short",tooltip:"table.advTimePP2.tooltip",sortOrders:[{target:"advTimePP2",direction:b}]},ppgf:{label:"table.ppgf.short",tooltip:"table.ppgf.tooltip",sortOrders:[{target:"ppgf",direction:b}]},shga:{label:"table.shga.short",tooltip:"table.shga.tooltip",sortOrders:[{target:"shga",direction:b}]},ppPercent:{label:"table.ppPercent.short",tooltip:"table.ppPercent.tooltip",sortOrders:[{target:"ppPercent",direction:b}]}},ec={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:b}]},gf:{label:"table.goalFor.short",tooltip:"table.goalFor.tooltip",sortOrders:[{target:"gf",direction:b}]},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:b}]},gfPerGp:{label:"table.gfgp.short",tooltip:"table.gfgp.tooltip",sortOrders:[{target:"gfPerGp",direction:b}]},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:b}]},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:b}]},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:b}]}},nc=(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?Qt(Be(l),qt(e)):Qt(ut(l),Gn,ga(Gn(e)))),s=jo(l=>l.name?ka(Ta("name"),_a(",",""),l):l),i=ve(Qt(s,Fo([...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=ha(qt(I),vn(Le),vn(aa));return this.result=Vn(e.orders.map(o=>Ln(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:Ot(o.gameDate,"L dddd",e,n),gameDateTime:Ot(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`]=tn(n[o]):n),n)),this},groupByDays(){return this.currentItems=this.result.length,this.result=pa(e=>Ot(e.gameDate,"YYYY-MM-DD"))(this.result),this}}),rc=(t,...e)=>ft(Ln(...e))(t),oc=t=>{var e,n,o,a;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.id)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((o=t.player)==null?void 0:o.nationality)&&{name:(a=t.player)!=null&&a.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`},...t.nationality&&{name:t.nationality.includes("hu")?`${t.lastName} ${t.firstName}`:`${t.lastName}, ${t.firstName}`}}},ac=t=>{var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}},sc=(t="",e="hu")=>n=>({...n,gameDateDate:Ot(n.gameDate,"L dddd",t,e),gameDateTime:Ot(n.gameDate,"HH:mm",t,e)}),ic=t=>e=>({...e,gameResult:Tc(e)}),lc=t=>({...t,opponent:bc(t)}),cc=t=>({...t,resultType:wc(t)}),uc=t=>({...t,rowClasses:t.optional?"is-optional":""}),dc=(t=[])=>e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}},fc=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Sec`]=tn(e[n]):e),e),mc=(t=[])=>e=>(t.map(n=>e[n]?e[`${n}Min`]=Br(e[n]):e),e),pc=(t=[])=>e=>(t.map(n=>e[`${n}Min`]=Ir(e[n])),e),hc=t=>{var e,n;return{...t,periodResults:((n=(e=t.result)==null?void 0:e.match(/\(.*?\)/))==null?void 0:n[0])??""}},gc=Vn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Le(ut("id")),Le(ut("gameId"))]),yc=Pa((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function bc(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function Tc(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 wc(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 Sc=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("-")}}),Oc=(t,e={})=>{const n=sn("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||Wn,e))},Ac=(t,e={})=>{const n=sn("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||Zn,e))},kc=(t,e={})=>{const n=sn("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(wt(n||Kn,e))},_c=(t,e="1x1")=>`${Xn}/flag:${t}-${e}.svg`,sn=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]},Pc=()=>{window.scrollTo(0,0)},xc={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"};function Ec(t,e){return r.openBlock(),r.createElementBlock("svg",xc,e[0]||(e[0]=[r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1)]))}const Nc={render:Ec},$c={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"};function Mc(t,e){return r.openBlock(),r.createElementBlock("svg",$c,e[0]||(e[0]=[r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1)]))}const Dc={render:Mc},vc={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"};function Cc(t,e){return r.openBlock(),r.createElementBlock("svg",vc,e[0]||(e[0]=[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),r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1)]))}const Lc={render:Cc},Ic={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"};function Bc(t,e){return r.openBlock(),r.createElementBlock("svg",Ic,e[0]||(e[0]=[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),r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1)]))}const Rc={render:Bc},zc={class:"is-team-name-long"},Vc={class:"is-team-name-short"},Gc={class:"is-team-name-long"},Fc={class:"is-team-name-short"},jc={key:0,class:"is-text-dark"},Yc=["href","target"],Hc={key:0,class:"label"},Uc={key:1,class:"label"},Wc={key:2,class:"label"},qc={key:1},Kc=["onClick","onFocus","onBlur"],Zc={class:"is-dropdown-menu"},Xc=["href","target"],Jc={key:0},Qc=["href"],tu={__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}=Xe(),{columns:a,error:s}=nn(Ur,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));mo(s,()=>o(new an(Ft.message,{...Ft.options,cause:{column:s.value}})),{immediate:!0});const{t:i}=at();return(l,c)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(Qe,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",zc,r.toDisplayString(f.homeTeam.longName),1),r.createElementVNode("span",Vc,r.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",Gc,r.toDisplayString(f.awayTeam.longName),1),r.createElementVNode("span",Fc,r.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(St,{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(St,{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",jc,"-:-")):(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,Yc))]),"cell-gameResultType":r.withCtx(({row:f})=>[f.isOvertime?(r.openBlock(),r.createElementBlock("span",Hc,r.toDisplayString(r.unref(i)("common.overtimeShort")),1)):r.createCommentVNode("",!0),f.isShootout?(r.openBlock(),r.createElementBlock("span",Uc,r.toDisplayString(r.unref(i)("common.shootoutShort")),1)):r.createCommentVNode("",!0),f.seriesStandings?(r.openBlock(),r.createElementBlock("span",Wc,r.toDisplayString(f.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:f})=>[f.broadcast?(r.openBlock(),r.createBlock(r.unref(Nc),{key:0})):(r.openBlock(),r.createElementBlock("span",qc))]),"cell-location":r.withCtx(({row:f})=>{var p;return[r.createTextVNode(r.toDisplayString(((p=f.location)==null?void 0:p.locationName)??""),1)]}),"cell-more":r.withCtx(({row:f})=>[r.createVNode(Ke,{offset:2,placement:"left",theme:"content","append-to":u},{default:r.withCtx(({setRef:p,show:h,hide:y})=>[r.createElementVNode("button",{ref:p,onClick:r.withModifiers(h,["stop"]),onFocus:h,onBlur:y},[r.createVNode(r.unref(Dc))],40,Kc)]),content:r.withCtx(()=>[r.createElementVNode("ul",Zc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Lc),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.report")),1)],8,Xc)]),f.video?(r.openBlock(),r.createElementBlock("li",Jc,[r.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(Rc),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(i)("common.video")),1)],8,Qc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(Je)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},eu={class:"g-row g-gap-normal is-mb-5"},nu=["value"],ru={key:0},ou=["onClick"],au={__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}=at(),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",eu,[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(cn,{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,nu))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",ru,[(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,ou))),128))]))],64))}},su=["textContent"],iu={__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}=at(),{isVisible:s,text:i}=Hr(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,su)):r.createCommentVNode("",!0)}},lu={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:""}},cu={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},uu={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},du={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}},Wr=({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()})},fu={install:(t,e={})=>Wr({app:t,...e})};return T.AVAILABLE_TIMEZONES_BY_COUNTRY=Qn,T.AdditionalStandingsText=iu,T.BaseSelect=cn,T.COLUMNS_FIELD_PLAYERS=Ul,T.COLUMNS_FIELD_PLAYERS_PENALTY=Wl,T.COLUMNS_FIELD_PLAYERS_TOI=ql,T.COLUMNS_GOALIES=Kl,T.COLUMNS_PLAYERS_NATIONAL=Zl,T.COLUMNS_SCHEDULE=Ur,T.COLUMNS_SCORING_EFFICIENCY=ec,T.COLUMNS_STANDINGS_P_2=Hl,T.COLUMNS_STANDINGS_P_3=Yl,T.COLUMNS_TEAMS_FAIRPLAY=Jl,T.COLUMNS_TEAMS_PENALTY_KILLING=Ql,T.COLUMNS_TEAMS_POWERPLAY=tc,T.COLUMNS_TEAM_ATTENDANCE=Xl,T.DEFAULT_EXTERNAL_GAME_URL=Wn,T.DEFAULT_EXTERNAL_PLAYER_URL=Kn,T.DEFAULT_EXTERNAL_TEAM_URL=Zn,T.DEFAULT_PORTRAIT_IMAGE_URL=qn,T.DataTable=Ze,T.ErrorNotice=vs,T.ErrorProvider=Ls,T.FLAG_BASE_URL=Xn,T.FetchMoreObserver=eo,T.FloatingPanel=Ke,T.I18NProvider=Gs,T.Image=St,T.InvalidSeasonName=kl,T.LAZY_LOADING_STATE_DELAY=tr,T.LOCALE_FOR_LANG=Jn,T.LoadingIndicator=Je,T.Paginator=ai,T.REFRESH_DELAY=Ma,T.ResponsiveTable=Qe,T.SORT_STATE_ASCEND=I,T.SORT_STATE_DESCEND=b,T.SORT_STATE_ORIGINAL=dt,T.ScheduleTable=tu,T.SeasonSelector=au,T.StatisticsTable=jl,T.TimezoneSelector=dl,T.UndefinedColumn=Ft,T.VBR_API_BASE_URL=Un,T.WidgetError=an,T.addDays=al,T.appendTo=br,T.baseProps=lu,T.convert=nc,T.convertGamePeriodResults=hc,T.convertMinToMinSec=Br,T.convertMinToSec=tn,T.convertPhaseName=Sc,T.convertSecToMin=Ir,T.convertTimes=fc,T.convertTimesMinToMinSec=mc,T.convertTimesSecToMin=pc,T.createConfig=Wr,T.createI18n=jn,T.currentWeek=nl,T.currentWeekStartEnd=rl,T.default=fu,T.endOfMonth=il,T.externalGameLinkResolver=Oc,T.externalPlayerLinkResolver=kc,T.externalTeamLinkResolver=Ac,T.fetchVBRData=Vr,T.flagResolver=_c,T.format=Ot,T.gameDateTime=sc,T.gameProps=du,T.gameResult=ic,T.getLocalTimezone=Lr,T.i18n=Hn,T.isAfter=tl,T.isBefore=Qi,T.isBetween=Rr,T.isSame=Xi,T.isSameOrBefore=en,T.isToday=el,T.localeSort=yc,T.max=cl,T.min=ll,T.offsetName=Gt,T.playerName=oc,T.playerStatsProps=uu,T.rawConvert=rc,T.scheduleOptionalRowClass=uc,T.scrollToTop=Pc,T.sortByDomNode=Ss,T.sortGames=gc,T.startOfMonth=sl,T.subtractDays=ol,T.teamName=ac,T.teamOpponent=lc,T.teamResultType=cc,T.teamStatsProps=cu,T.templateReplacer=wt,T.toKebabCase=Tr,T.upperCase=dc,T.useAdditionalText=Hr,T.useColumns=nn,T.useError=Xe,T.useErrorProvider=Sr,T.useI18n=at,T.useLazyLoadingState=yn,T.useMainClass=ct,T.usePage=pl,T.useScrollToGameDate=Al,T.useServices=hl,T.useSort=Sl,T.useVisibilityChange=Ol,T.validateColumnsName=zr,T.yearToNow=Ji,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),T}({},Vue);
|
|
22
|
+
***************************************************************************** */function je(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var o,a,i=n.call(t),s=[];try{for(;(e===void 0||e-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(l){a={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(a)throw a.error}}return s}var kr;(function(t){t[t.NotStarted=0]="NotStarted",t[t.Running=1]="Running",t[t.Stopped=2]="Stopped"})(kr||(kr={}));var es={type:"xstate.init"};function me(t){return t===void 0?[]:[].concat(t)}function _r(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 Ye(t){return function(e){return t===e}}function ns(t){return typeof t=="string"?{type:t}:t}function Pr(t,e){return{value:t,context:e,actions:[],changed:!1,matches:Ye(t)}}function xr(t,e,n){var o=e,a=!1;return[t.filter(function(i){if(i.type==="xstate.assign"){a=!0;var s=Object.assign({},o);return typeof i.assignment=="function"?s=i.assignment(o,n):Object.keys(i.assignment).forEach(function(l){s[l]=typeof i.assignment[l]=="function"?i.assignment[l](o,n):i.assignment[l]}),o=s,!1}return!0}),o,a]}function rs(t,e){e===void 0&&(e={});var n=je(xr(me(t.states[t.initial].entry).map(function(s){return _r(s,e.actions)}),t.context,es),2),o=n[0],a=n[1],i={config:t,_options:e,initialState:{value:t.initial,actions:o,context:a,matches:Ye(t.initial)},transition:function(s,l){var u,c,f=typeof s=="string"?{value:s,context:t.context}:s,m=f.value,h=f.context,y=ns(l),p=t.states[m];if(p.on){var d=me(p.on[y.type]);"*"in p.on&&d.push.apply(d,function(O,A,M){if(arguments.length===2)for(var $,R=0,j=A.length;R<j;R++)!$&&R in A||($||($=Array.prototype.slice.call(A,0,R)),$[R]=A[R]);return O.concat($||Array.prototype.slice.call(A))}([],je(me(p.on["*"])),!1));try{for(var g=function(O){var A=typeof Symbol=="function"&&Symbol.iterator,M=A&&O[A],$=0;if(M)return M.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&$>=O.length&&(O=void 0),{value:O&&O[$++],done:!O}}};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),S=g.next();!S.done;S=g.next()){var _=S.value;if(_===void 0)return Pr(m,h);var P=typeof _=="string"?{target:_}:_,E=P.target,N=P.actions,v=N===void 0?[]:N,L=P.cond,G=L===void 0?function(){return!0}:L,Y=E===void 0,B=E??m,D=t.states[B];if(G(h,y)){var H=je(xr((Y?me(v):[].concat(p.exit,v,D.entry).filter(function(O){return O})).map(function(O){return _r(O,i._options.actions)}),h,y),3),ot=H[0],x=H[1],k=H[2],w=E??m;return{value:w,context:x,actions:ot,changed:E!==m||ot.length>0||k,matches:Ye(w)}}}}catch(O){u={error:O}}finally{try{S&&!S.done&&(c=g.return)&&c.call(g)}finally{if(u)throw u.error}}}return Pr(m,h)}};return i}const os=rs({id:"sort",initial:ct,states:{[ct]:{on:{DIRECTION1:b,DIRECTION2:I}},[b]:{on:{DIRECTION1:I,DIRECTION2:ct}},[I]:{on:{DIRECTION1:ct,DIRECTION2:b}}}});function as(t,e){const n=e===I?"DIRECTION2":"DIRECTION1";return os.transition(t,n).value}function is(t={}){const{sortTarget:e=null,orders:n=[]}=t,o=r.reactive({sortTarget:e,orders:n});return{sort:o,change:({target:i,orders:s})=>{if(o.sortTarget!==i){o.sortTarget=i,o.orders=s;return}const l=s.map((u,c)=>({...u,direction:as(o.orders[c].direction,u.direction)}));o.sortTarget=i,o.orders=l}}}function ss(t=!1,e=Q,n=Q){const o=No();r.watch(o,a=>{if(r.unref(t)){if(a==="visible")return e();n()}})}const ls=["textContent"],cs={__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}=at(),{isVisible:i,text:s}=Zn(n,e.additionalKey,o,a);return(l,u)=>r.unref(i)?(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(s))},null,8,ls)):r.createCommentVNode("",!0)}},Er={__name:"BaseSelect",props:{modelValue:{type:[String,Number],default:null}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,o=e,a=dt("base-input"),i=r.computed({get:()=>n.modelValue,set:s=>o("update:modelValue",s)});return(s,l)=>r.withDirectives((r.openBlock(),r.createElementBlock("select",{"onUpdate:modelValue":l[0]||(l[0]=u=>i.value=u),class:r.normalizeClass(["is-select",[r.unref(a)]])},[r.renderSlot(s.$slots,"default")],2)),[[r.vModelSelect,i.value]])}},us={"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"};function ds(t,e){return r.openBlock(),r.createElementBlock("svg",us,e[0]||(e[0]=[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)]))}const Nr={render:ds},fs={"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"};function ms(t,e){return r.openBlock(),r.createElementBlock("svg",fs,e[0]||(e[0]=[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)]))}const ps={render:ms},hs={"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"};function gs(t,e){return r.openBlock(),r.createElementBlock("svg",hs,e[0]||(e[0]=[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)]))}const ys={render:gs},xt=Math.min,Tt=Math.max,pe=Math.round,he=Math.floor,it=t=>({x:t,y:t}),bs={left:"right",right:"left",bottom:"top",top:"bottom"},Ts={start:"end",end:"start"};function He(t,e,n){return Tt(t,xt(e,n))}function Rt(t,e){return typeof t=="function"?t(e):t}function St(t){return t.split("-")[0]}function zt(t){return t.split("-")[1]}function $r(t){return t==="x"?"y":"x"}function Ue(t){return t==="y"?"height":"width"}function ge(t){return["top","bottom"].includes(St(t))?"y":"x"}function We(t){return $r(ge(t))}function Ss(t,e,n){n===void 0&&(n=!1);const o=zt(t),a=We(t),i=Ue(a);let s=a==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(s=ye(s)),[s,ye(s)]}function ws(t){const e=ye(t);return[qe(t),e,qe(e)]}function qe(t){return t.replace(/start|end/g,e=>Ts[e])}function Os(t,e,n){const o=["left","right"],a=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return n?e?a:o:e?o:a;case"left":case"right":return e?i:s;default:return[]}}function As(t,e,n,o){const a=zt(t);let i=Os(St(t),n==="start",o);return a&&(i=i.map(s=>s+"-"+a),e&&(i=i.concat(i.map(qe)))),i}function ye(t){return t.replace(/left|right|bottom|top/g,e=>bs[e])}function ks(t){return{top:0,right:0,bottom:0,left:0,...t}}function Mr(t){return typeof t!="number"?ks(t):{top:t,right:t,bottom:t,left:t}}function be(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 Dr(t,e,n){let{reference:o,floating:a}=t;const i=ge(e),s=We(e),l=Ue(s),u=St(e),c=i==="y",f=o.x+o.width/2-a.width/2,m=o.y+o.height/2-a.height/2,h=o[l]/2-a[l]/2;let y;switch(u){case"top":y={x:f,y:o.y-a.height};break;case"bottom":y={x:f,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:m};break;case"left":y={x:o.x-a.width,y:m};break;default:y={x:o.x,y:o.y}}switch(zt(e)){case"start":y[s]-=h*(n&&c?-1:1);break;case"end":y[s]+=h*(n&&c?-1:1);break}return y}const _s=async(t,e,n)=>{const{placement:o="bottom",strategy:a="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(e));let c=await s.getElementRects({reference:t,floating:e,strategy:a}),{x:f,y:m}=Dr(c,o,u),h=o,y={},p=0;for(let d=0;d<l.length;d++){const{name:g,fn:S}=l[d],{x:_,y:P,data:E,reset:N}=await S({x:f,y:m,initialPlacement:o,placement:h,strategy:a,middlewareData:y,rects:c,platform:s,elements:{reference:t,floating:e}});f=_??f,m=P??m,y={...y,[g]:{...y[g],...E}},N&&p<=50&&(p++,typeof N=="object"&&(N.placement&&(h=N.placement),N.rects&&(c=N.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:a}):N.rects),{x:f,y:m}=Dr(c,h,u)),d=-1)}return{x:f,y:m,placement:h,strategy:a,middlewareData:y}};async function vr(t,e){var n;e===void 0&&(e={});const{x:o,y:a,platform:i,rects:s,elements:l,strategy:u}=t,{boundary:c="clippingAncestors",rootBoundary:f="viewport",elementContext:m="floating",altBoundary:h=!1,padding:y=0}=Rt(e,t),p=Mr(y),g=l[h?m==="floating"?"reference":"floating":m],S=be(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(g)))==null||n?g:g.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(l.floating)),boundary:c,rootBoundary:f,strategy:u})),_=m==="floating"?{...s.floating,x:o,y:a}:s.reference,P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l.floating)),E=await(i.isElement==null?void 0:i.isElement(P))?await(i.getScale==null?void 0:i.getScale(P))||{x:1,y:1}:{x:1,y:1},N=be(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:_,offsetParent:P,strategy:u}):_);return{top:(S.top-N.top+p.top)/E.y,bottom:(N.bottom-S.bottom+p.bottom)/E.y,left:(S.left-N.left+p.left)/E.x,right:(N.right-S.right+p.right)/E.x}}const Ps=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:a,rects:i,platform:s,elements:l,middlewareData:u}=e,{element:c,padding:f=0}=Rt(t,e)||{};if(c==null)return{};const m=Mr(f),h={x:n,y:o},y=We(a),p=Ue(y),d=await s.getDimensions(c),g=y==="y",S=g?"top":"left",_=g?"bottom":"right",P=g?"clientHeight":"clientWidth",E=i.reference[p]+i.reference[y]-h[y]-i.floating[p],N=h[y]-i.reference[y],v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c));let L=v?v[P]:0;(!L||!await(s.isElement==null?void 0:s.isElement(v)))&&(L=l.floating[P]||i.floating[p]);const G=E/2-N/2,Y=L/2-d[p]/2-1,B=xt(m[S],Y),D=xt(m[_],Y),H=B,ot=L-d[p]-D,x=L/2-d[p]/2+G,k=He(H,x,ot),w=!u.arrow&&zt(a)!=null&&x!==k&&i.reference[p]/2-(x<H?B:D)-d[p]/2<0,O=w?x<H?x-H:x-ot:0;return{[y]:h[y]+O,data:{[y]:k,centerOffset:x-k-O,...w&&{alignmentOffset:O}},reset:w}}}),xs=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:a,middlewareData:i,rects:s,initialPlacement:l,platform:u,elements:c}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:h,fallbackStrategy:y="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:d=!0,...g}=Rt(t,e);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const S=St(a),_=St(l)===l,P=await(u.isRTL==null?void 0:u.isRTL(c.floating)),E=h||(_||!d?[ye(l)]:ws(l));!h&&p!=="none"&&E.push(...As(l,d,p,P));const N=[l,...E],v=await vr(e,g),L=[];let G=((o=i.flip)==null?void 0:o.overflows)||[];if(f&&L.push(v[S]),m){const H=Ss(a,s,P);L.push(v[H[0]],v[H[1]])}if(G=[...G,{placement:a,overflows:L}],!L.every(H=>H<=0)){var Y,B;const H=(((Y=i.flip)==null?void 0:Y.index)||0)+1,ot=N[H];if(ot)return{data:{index:H,overflows:G},reset:{placement:ot}};let x=(B=G.filter(k=>k.overflows[0]<=0).sort((k,w)=>k.overflows[1]-w.overflows[1])[0])==null?void 0:B.placement;if(!x)switch(y){case"bestFit":{var D;const k=(D=G.map(w=>[w.placement,w.overflows.filter(O=>O>0).reduce((O,A)=>O+A,0)]).sort((w,O)=>w[1]-O[1])[0])==null?void 0:D[0];k&&(x=k);break}case"initialPlacement":x=l;break}if(a!==x)return{reset:{placement:x}}}return{}}}};async function Es(t,e){const{placement:n,platform:o,elements:a}=t,i=await(o.isRTL==null?void 0:o.isRTL(a.floating)),s=St(n),l=zt(n),u=ge(n)==="y",c=["left","top"].includes(s)?-1:1,f=i&&u?-1:1,m=Rt(e,t);let{mainAxis:h,crossAxis:y,alignmentAxis:p}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return l&&typeof p=="number"&&(y=l==="end"?p*-1:p),u?{x:y*f,y:h*c}:{x:h*c,y:y*f}}const Ns=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:a,y:i,placement:s,middlewareData:l}=e,u=await Es(e,t);return s===((n=l.offset)==null?void 0:n.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:a+u.x,y:i+u.y,data:{...u,placement:s}}}}},$s=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:a}=e,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:g=>{let{x:S,y:_}=g;return{x:S,y:_}}},...u}=Rt(t,e),c={x:n,y:o},f=await vr(e,u),m=ge(St(a)),h=$r(m);let y=c[h],p=c[m];if(i){const g=h==="y"?"top":"left",S=h==="y"?"bottom":"right",_=y+f[g],P=y-f[S];y=He(_,y,P)}if(s){const g=m==="y"?"top":"left",S=m==="y"?"bottom":"right",_=p+f[g],P=p-f[S];p=He(_,p,P)}const d=l.fn({...e,[h]:y,[m]:p});return{...d,data:{x:d.x-n,y:d.y-o}}}}};function Te(){return typeof window<"u"}function Et(t){return Cr(t)?(t.nodeName||"").toLowerCase():"#document"}function Z(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function st(t){var e;return(e=(Cr(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Cr(t){return Te()?t instanceof Node||t instanceof Z(t).Node:!1}function nt(t){return Te()?t instanceof Element||t instanceof Z(t).Element:!1}function lt(t){return Te()?t instanceof HTMLElement||t instanceof Z(t).HTMLElement:!1}function Lr(t){return!Te()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Z(t).ShadowRoot}function Vt(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 Ms(t){return["table","td","th"].includes(Et(t))}function Se(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function Ke(t){const e=Ze(),n=nt(t)?rt(t):t;return["transform","translate","scale","rotate","perspective"].some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(o=>(n.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(n.contain||"").includes(o))}function Ds(t){let e=mt(t);for(;lt(e)&&!Nt(e);){if(Ke(e))return e;if(Se(e))return null;e=mt(e)}return null}function Ze(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Nt(t){return["html","body","#document"].includes(Et(t))}function rt(t){return Z(t).getComputedStyle(t)}function we(t){return nt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function mt(t){if(Et(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Lr(t)&&t.host||st(t);return Lr(e)?e.host:e}function Ir(t){const e=mt(t);return Nt(e)?t.ownerDocument?t.ownerDocument.body:t.body:lt(e)&&Vt(e)?e:Ir(e)}function Gt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const a=Ir(t),i=a===((o=t.ownerDocument)==null?void 0:o.body),s=Z(a);if(i){const l=Xe(s);return e.concat(s,s.visualViewport||[],Vt(a)?a:[],l&&n?Gt(l):[])}return e.concat(a,Gt(a,[],n))}function Xe(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Br(t){const e=rt(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const a=lt(t),i=a?t.offsetWidth:n,s=a?t.offsetHeight:o,l=pe(n)!==i||pe(o)!==s;return l&&(n=i,o=s),{width:n,height:o,$:l}}function Je(t){return nt(t)?t:t.contextElement}function $t(t){const e=Je(t);if(!lt(e))return it(1);const n=e.getBoundingClientRect(),{width:o,height:a,$:i}=Br(e);let s=(i?pe(n.width):n.width)/o,l=(i?pe(n.height):n.height)/a;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const vs=it(0);function Rr(t){const e=Z(t);return!Ze()||!e.visualViewport?vs:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Cs(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==Z(t)?!1:e}function wt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const a=t.getBoundingClientRect(),i=Je(t);let s=it(1);e&&(o?nt(o)&&(s=$t(o)):s=$t(t));const l=Cs(i,n,o)?Rr(i):it(0);let u=(a.left+l.x)/s.x,c=(a.top+l.y)/s.y,f=a.width/s.x,m=a.height/s.y;if(i){const h=Z(i),y=o&&nt(o)?Z(o):o;let p=h,d=Xe(p);for(;d&&o&&y!==p;){const g=$t(d),S=d.getBoundingClientRect(),_=rt(d),P=S.left+(d.clientLeft+parseFloat(_.paddingLeft))*g.x,E=S.top+(d.clientTop+parseFloat(_.paddingTop))*g.y;u*=g.x,c*=g.y,f*=g.x,m*=g.y,u+=P,c+=E,p=Z(d),d=Xe(p)}}return be({width:f,height:m,x:u,y:c})}function Qe(t,e){const n=we(t).scrollLeft;return e?e.left+n:wt(st(t)).left+n}function zr(t,e,n){n===void 0&&(n=!1);const o=t.getBoundingClientRect(),a=o.left+e.scrollLeft-(n?0:Qe(t,o)),i=o.top+e.scrollTop;return{x:a,y:i}}function Ls(t){let{elements:e,rect:n,offsetParent:o,strategy:a}=t;const i=a==="fixed",s=st(o),l=e?Se(e.floating):!1;if(o===s||l&&i)return n;let u={scrollLeft:0,scrollTop:0},c=it(1);const f=it(0),m=lt(o);if((m||!m&&!i)&&((Et(o)!=="body"||Vt(s))&&(u=we(o)),lt(o))){const y=wt(o);c=$t(o),f.x=y.x+o.clientLeft,f.y=y.y+o.clientTop}const h=s&&!m&&!i?zr(s,u,!0):it(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+f.x+h.x,y:n.y*c.y-u.scrollTop*c.y+f.y+h.y}}function Is(t){return Array.from(t.getClientRects())}function Bs(t){const e=st(t),n=we(t),o=t.ownerDocument.body,a=Tt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),i=Tt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let s=-n.scrollLeft+Qe(t);const l=-n.scrollTop;return rt(o).direction==="rtl"&&(s+=Tt(e.clientWidth,o.clientWidth)-a),{width:a,height:i,x:s,y:l}}function Rs(t,e){const n=Z(t),o=st(t),a=n.visualViewport;let i=o.clientWidth,s=o.clientHeight,l=0,u=0;if(a){i=a.width,s=a.height;const c=Ze();(!c||c&&e==="fixed")&&(l=a.offsetLeft,u=a.offsetTop)}return{width:i,height:s,x:l,y:u}}function zs(t,e){const n=wt(t,!0,e==="fixed"),o=n.top+t.clientTop,a=n.left+t.clientLeft,i=lt(t)?$t(t):it(1),s=t.clientWidth*i.x,l=t.clientHeight*i.y,u=a*i.x,c=o*i.y;return{width:s,height:l,x:u,y:c}}function Vr(t,e,n){let o;if(e==="viewport")o=Rs(t,n);else if(e==="document")o=Bs(st(t));else if(nt(e))o=zs(e,n);else{const a=Rr(t);o={x:e.x-a.x,y:e.y-a.y,width:e.width,height:e.height}}return be(o)}function Gr(t,e){const n=mt(t);return n===e||!nt(n)||Nt(n)?!1:rt(n).position==="fixed"||Gr(n,e)}function Vs(t,e){const n=e.get(t);if(n)return n;let o=Gt(t,[],!1).filter(l=>nt(l)&&Et(l)!=="body"),a=null;const i=rt(t).position==="fixed";let s=i?mt(t):t;for(;nt(s)&&!Nt(s);){const l=rt(s),u=Ke(s);!u&&l.position==="fixed"&&(a=null),(i?!u&&!a:!u&&l.position==="static"&&!!a&&["absolute","fixed"].includes(a.position)||Vt(s)&&!u&&Gr(t,s))?o=o.filter(f=>f!==s):a=l,s=mt(s)}return e.set(t,o),o}function Gs(t){let{element:e,boundary:n,rootBoundary:o,strategy:a}=t;const s=[...n==="clippingAncestors"?Se(e)?[]:Vs(e,this._c):[].concat(n),o],l=s[0],u=s.reduce((c,f)=>{const m=Vr(e,f,a);return c.top=Tt(m.top,c.top),c.right=xt(m.right,c.right),c.bottom=xt(m.bottom,c.bottom),c.left=Tt(m.left,c.left),c},Vr(e,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Fs(t){const{width:e,height:n}=Br(t);return{width:e,height:n}}function js(t,e,n){const o=lt(e),a=st(e),i=n==="fixed",s=wt(t,!0,i,e);let l={scrollLeft:0,scrollTop:0};const u=it(0);if(o||!o&&!i)if((Et(e)!=="body"||Vt(a))&&(l=we(e)),o){const h=wt(e,!0,i,e);u.x=h.x+e.clientLeft,u.y=h.y+e.clientTop}else a&&(u.x=Qe(a));const c=a&&!o&&!i?zr(a,l):it(0),f=s.left+l.scrollLeft-u.x-c.x,m=s.top+l.scrollTop-u.y-c.y;return{x:f,y:m,width:s.width,height:s.height}}function tn(t){return rt(t).position==="static"}function Fr(t,e){if(!lt(t)||rt(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return st(t)===n&&(n=n.ownerDocument.body),n}function jr(t,e){const n=Z(t);if(Se(t))return n;if(!lt(t)){let a=mt(t);for(;a&&!Nt(a);){if(nt(a)&&!tn(a))return a;a=mt(a)}return n}let o=Fr(t,e);for(;o&&Ms(o)&&tn(o);)o=Fr(o,e);return o&&Nt(o)&&tn(o)&&!Ke(o)?n:o||Ds(t)||n}const Ys=async function(t){const e=this.getOffsetParent||jr,n=this.getDimensions,o=await n(t.floating);return{reference:js(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Hs(t){return rt(t).direction==="rtl"}const Us={convertOffsetParentRelativeRectToViewportRelativeRect:Ls,getDocumentElement:st,getClippingRect:Gs,getOffsetParent:jr,getElementRects:Ys,getClientRects:Is,getDimensions:Fs,getScale:$t,isElement:nt,isRTL:Hs};function Yr(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ws(t,e){let n=null,o;const a=st(t);function i(){var l;clearTimeout(o),(l=n)==null||l.disconnect(),n=null}function s(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),i();const c=t.getBoundingClientRect(),{left:f,top:m,width:h,height:y}=c;if(l||e(),!h||!y)return;const p=he(m),d=he(a.clientWidth-(f+h)),g=he(a.clientHeight-(m+y)),S=he(f),P={rootMargin:-p+"px "+-d+"px "+-g+"px "+-S+"px",threshold:Tt(0,xt(1,u))||1};let E=!0;function N(v){const L=v[0].intersectionRatio;if(L!==u){if(!E)return s();L?s(!1,L):o=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!Yr(c,t.getBoundingClientRect())&&s(),E=!1}try{n=new IntersectionObserver(N,{...P,root:a.ownerDocument})}catch{n=new IntersectionObserver(N,P)}n.observe(t)}return s(!0),i}function qs(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:a=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=o,c=Je(t),f=a||i?[...c?Gt(c):[],...Gt(e)]:[];f.forEach(S=>{a&&S.addEventListener("scroll",n,{passive:!0}),i&&S.addEventListener("resize",n)});const m=c&&l?Ws(c,n):null;let h=-1,y=null;s&&(y=new ResizeObserver(S=>{let[_]=S;_&&_.target===c&&y&&(y.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var P;(P=y)==null||P.observe(e)})),n()}),c&&!u&&y.observe(c),y.observe(e));let p,d=u?wt(t):null;u&&g();function g(){const S=wt(t);d&&!Yr(d,S)&&n(),d=S,p=requestAnimationFrame(g)}return n(),()=>{var S;f.forEach(_=>{a&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),m==null||m(),(S=y)==null||S.disconnect(),y=null,u&&cancelAnimationFrame(p)}}const Ks=Ns,Zs=$s,Xs=xs,Hr=Ps,Js=(t,e,n)=>{const o=new Map,a={platform:Us,...n},i={...a.platform,_c:o};return _s(t,e,{...a,platform:i})};function Ur(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 Qs(t,e=()=>({})){return t.slice().sort((n,o)=>{const a=e(n),i=e(o);if(a===null||i===null)return 0;const s=a.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function tl({middleware:t,placement:e=null,strategy:n,append:o,enabled:a}){const i=r.ref(null),s=r.ref(null),l=r.ref(null),u=r.ref(null),c=r.ref(null),f=r.ref(null),m=r.ref(null),h=r.ref(n??"absolute"),y=r.ref(null),p=()=>{!i.value||!s.value||Js(i.value,s.value,{middleware:t,placement:e,strategy:n}).then(g=>{l.value=g.x,u.value=g.y,h.value=g.strategy,c.value=g.middlewareData.arrow.x,f.value=g.middlewareData.arrow.y,m.value=g.placement})};r.watch(()=>({reference:r.unref(i),floating:r.unref(s),append:r.unref(o)}),({floating:g,append:S})=>{S&&Ur(g,S),p()},{flush:"post"}),r.watch(a,g=>{if(!(!i.value||!s.value)){if(!g)return d();y.value=qs(i.value,s.value,p,{})}},{flush:"post"});function d(){var g;(g=y.value)==null||g.call(y),y.value=null}return{x:l,y:u,arrowX:c,arrowY:f,placement:m,reference:i,floating:s,strategy:h,update:p}}function el(t){const{element:e,padding:n}=t;return{name:"arrow",options:t,fn(o){return r.isRef(e)?e.value!=null?Hr({element:e.value,padding:n}).fn(o):{}:e?Hr({element:e,padding:n}).fn(o):{}}}}const nl=["data-placement"],en={__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:i,arrowX:s,arrowY:l,placement:u,reference:c,floating:f,strategy:m}=tl({placement:e.placement,middleware:[Xs(),Zs({padding:5}),Ks(e.offset),el({element:o,padding:5})],append:r.computed(()=>e.appendTo),enabled:n});function h(){e.disabled||n.value||(n.value=!0)}function y(g){n.value&&g&&(n.value=!1)}function p(g){c.value=g}const d={mouseenter:h,mouseleave:y,focus:h,blur:y};return Eo(f,g=>{var S;(S=c.value)!=null&&S.contains(g.target)||y()}),(g,S)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.renderSlot(g.$slots,"default",{setRef:p,show:h,hide:y,events:d}),r.createElementVNode("div",{ref_key:"floating",ref:f,"data-placement":r.unref(u),style:r.normalizeStyle({position:r.unref(m),top:r.unref(i)?`${r.unref(i)}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(g.$slots,"content",{close:y},()=>[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(s)?`${r.unref(s)}px`:""})},null,4)],2)):r.createCommentVNode("",!0)]),_:3})],12,nl)],64))}},rl=["tabindex","onMouseenter","onMouseleave","onFocus","onBlur","onClick","onKeydown"],ol={key:0},al=["colspan"],il={key:1},sl=["colspan"],nn={__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,o=e,{isLoading:a,appendTo:i}=r.toRefs(n),s=ir(a,{delay:gn}),{t:l}=at(),u=dt("table"),c=r.computed(()=>n.columns),f=r.computed(()=>Object.keys(n.columns).length);function m(h,y){h.sortOrders&&o("sort",{target:y,orders:h.sortOrders})}return(h,y)=>(r.openBlock(),r.createElementBlock("table",{class:r.normalizeClass(r.unref(u))},[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(p,d)=>(r.openBlock(),r.createBlock(en,{key:d,placement:"top",content:p.tooltip,disabled:!p.tooltip,"append-to":r.unref(i)},{default:r.withCtx(({setRef:g,show:S,hide:_})=>[r.createElementVNode("th",{ref_for:!0,ref:g,class:r.normalizeClass([[p.class],{"is-active":d===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(ct),"is-sortable":p.sortOrders,"is-desc":d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b),"is-asc":d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)}]),tabindex:p.sortOrders?0:-1,role:"button",onMouseenter:S,onMouseleave:_,onFocus:S,onBlur:_,onClick:P=>m(p,d),onKeydown:[r.withKeys(r.withModifiers(P=>m(p,d),["prevent"]),["space"]),r.withKeys(r.withModifiers(P=>m(p,d),["prevent"]),["enter"])]},[r.renderSlot(h.$slots,`header-${d}`,{column:p},()=>[r.createTextVNode(r.toDisplayString(p.label),1)]),p.sortOrders&&d!==t.sort.sortTarget?(r.openBlock(),r.createBlock(r.unref(Nr),{key:0,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(ct)?(r.openBlock(),r.createBlock(r.unref(Nr),{key:1,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(b)?(r.openBlock(),r.createBlock(r.unref(ps),{key:2,class:"is-icon-sort"})):r.createCommentVNode("",!0),d===t.sort.sortTarget&&t.sort.orders[0].direction===r.unref(I)?(r.openBlock(),r.createBlock(r.unref(ys),{key:3,class:"is-icon-sort"})):r.createCommentVNode("",!0)],42,rl)]),_:2},1032,["content","disabled","append-to"]))),128))])]),r.createElementVNode("tbody",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.rows,(p,d)=>(r.openBlock(),r.createElementBlock("tr",{key:d,class:r.normalizeClass(p.rowClasses)},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(c.value,(g,S)=>(r.openBlock(),r.createElementBlock("td",{key:S,class:r.normalizeClass([[g.class],{"is-active":S===t.sort.sortTarget&&t.sort.orders[0].direction!==r.unref(ct),"is-zero":p[S]===0||p[S]==="00:00"}])},[r.renderSlot(h.$slots,`cell-${S}`,{row:p,prop:S},()=>[r.createTextVNode(r.toDisplayString(p[S]),1)])],2))),128))],2))),128))]),r.unref(s)&&t.rows.length===0?(r.openBlock(),r.createElementBlock("tfoot",ol,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(h.$slots,"loading",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.loading")),1)])],8,al)])])):r.createCommentVNode("",!0),t.rows.length===0&&!r.unref(a)&&!r.unref(s)?(r.openBlock(),r.createElementBlock("tfoot",il,[r.createElementVNode("tr",null,[r.createElementVNode("td",{colspan:f.value},[r.renderSlot(h.$slots,"empty",{},()=>[r.createTextVNode(r.toDisplayString(r.unref(l)("common.noData")),1)])],8,sl)])])):r.createCommentVNode("",!0)],2))}},ll={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"};function cl(t,e){return r.openBlock(),r.createElementBlock("svg",ll,e[0]||(e[0]=[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),r.createElementVNode("line",{x1:"12",y1:"9",x2:"12",y2:"13"},null,-1),r.createElementVNode("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"},null,-1)]))}const ul={render:cl},dl={__name:"ErrorNotice",props:{error:{type:Object,default:()=>({})}},setup(t){const e=t,{t:n,hasTranslation:o}=at(),a=dt("error-notice"),i=r.computed(()=>{var s;return o(`errors.${e.error.key}`)?n(`errors.${e.error.key}`,e.error.cause):`${e.error.key}: ${(s=e.error)==null?void 0:s.message}`});return(s,l)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(a))},[r.createVNode(r.unref(ul),{class:"icon",width:"20",height:"20"}),r.createElementVNode("span",null,r.toDisplayString(i.value),1)],2))}},fl={__name:"ErrorProvider",setup(t){const{message:e,hasError:n,error:o}=or();return(a,i)=>r.renderSlot(a.$slots,"default",{message:r.unref(e),error:r.unref(o),hasError:r.unref(n)})}},ml={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"},atoi:{short:"ATOI",tooltip:"Average Time On Ice"},shf:{short:"SHF",tooltip:"Shifts"},ashf:{short:"ASHF",tooltip:"Average Shifts"},eqToi:{short:"EQ-TOI",tooltip:"Time On Ice in Equal"},pp1Toi:{short:"PP1-TOI",tooltip:"Time On Ice in PowerPlay 1"},pp2Toi:{short:"PP2-TOI",tooltip:"Time On Ice in PowerPlay 2"},sh1Toi:{short:"SH1-TOI",tooltip:"Time On Ice in Shorthanded 1"},sh2Toi:{short:"SH2-TOI",tooltip:"Time On Ice in Shorthanded 2"},eqAToi:{short:"EQ-A-TOI",tooltip:"Average Time On Ice in Equal"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Average Time On Ice in PowerPlay 1"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Average Time On Ice in PowerPlay 2"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Average Time On Ice in Shorthanded 1"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Average Time On Ice in Shorthanded 2"},role:{short:"Role",tooltip:"Role"}},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"}}},pl={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:"SO",overtimeShort:"OT",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"},atoi:{short:"ATOI",tooltip:"Átlagos jégen töltött idő"},shf:{short:"SHF",tooltip:"Jégre lépések száma"},ashf:{short:"ASHF",tooltip:"Jégre lépések száma átlagosan"},eqToi:{short:"EQ-TOI",tooltip:"Jégen töltött idő azonos létszámban"},pp1Toi:{short:"PP1-TOI",tooltip:"Jégen töltött idő egyszeres emberelőnyben"},pp2Toi:{short:"PP2-TOI",tooltip:"Jégen töltött idő kétszeres emberelőnyben"},sh1Toi:{short:"SH1-TOI",tooltip:"Jégen töltött idő egyszeres emberhátrányban"},sh2Toi:{short:"SH2-TOI",tooltip:"Jégen töltött idő kétszeres emberhátrányban"},eqAToi:{short:"EQ-A-TOI",tooltip:"Átlagos jégen töltött idő azonos létszámban"},pp1AToi:{short:"PP1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberelőnyben"},pp2AToi:{short:"PP2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberelőnyben"},sh1AToi:{short:"SH1-A-TOI",tooltip:"Átlagos jégen töltött idő egyszeres emberhátrányban"},sh2AToi:{short:"SH2-A-TOI",tooltip:"Átlagos jégen töltött idő kétszeres emberhátrányban"},role:{short:"Szerep",tooltip:"Szerep"}},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"}}},hl=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},gl=r.defineComponent({props:{locale:{type:String,default:"hu"},messages:{type:Object,default:()=>({})}},setup(t){const e=La({hu:pl,en:ml},t.messages),{translate:n}=Jn({locale:r.computed(()=>t.locale),messages:e});return{translate:n}}});function yl(t,e,n,o,a,i){return r.renderSlot(t.$slots,"default",{t:t.translate})}const bl=hl(gl,[["render",yl]]),Tl=["src"],Sl=["src","title"],Ot=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:i}=Mo(o,{resetOnExecute:!1,shallow:!1});return(s,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",[s.$attrs.class]])},null,10,Tl)):r.createCommentVNode("",!0),r.unref(a)?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("img",{key:1,src:o.value.src,class:r.normalizeClass([s.$attrs.class,{"is-loaded":r.unref(i)}]),title:e.title,loading:"lazy"},null,10,Sl))],64))}}),wl={style:{"text-align":"center"}},rn={__name:"LoadingIndicator",setup(t){const{t:e}=at();return(n,o)=>(r.openBlock(),r.createElementBlock("div",wl,r.toDisplayString(r.unref(e)("common.loading")),1))}},Ol={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"};function Al(t,e){return r.openBlock(),r.createElementBlock("svg",Ol,e[0]||(e[0]=[r.createElementVNode("polyline",{points:"15 18 9 12 15 6"},null,-1)]))}const kl={render:Al},_l={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"};function Pl(t,e){return r.openBlock(),r.createElementBlock("svg",_l,e[0]||(e[0]=[r.createElementVNode("polyline",{points:"9 18 15 12 9 6"},null,-1)]))}const xl={render:Pl},El=["disabled"],Nl=["disabled"],$l={key:1,class:"is-disabled"},Ml=["disabled","onClick"],Dl={key:2,class:"is-disabled"},vl=["disabled"],Cl=["disabled"],Ll={__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=dt("paginator"),{page:i,pageCount:s,range:l,goTo:u,pageStep:c}=Ji({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(s)>1?(r.openBlock(),r.createElementBlock("div",{key:0,class:r.normalizeClass(r.unref(a))},[r.createElementVNode("button",{type:"button",disabled:r.unref(i)===1,onClick:m[0]||(m[0]=h=>r.unref(c)(-1))},[r.renderSlot(f.$slots,"prev",{},()=>[r.createVNode(r.unref(kl),{class:"icon paginator-left"})])],8,El),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:0,type:"button",disabled:r.unref(i)===1,onClick:m[1]||(m[1]=h=>r.unref(u)(1))}," 1 ",8,Nl)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",$l," ... ")),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(r.unref(l),h=>(r.openBlock(),r.createElementBlock("button",{key:h,type:"button",class:r.normalizeClass({"is-active":h===r.unref(i)}),disabled:h===r.unref(i),onClick:y=>r.unref(u)(h)},r.toDisplayString(h),11,Ml))),128)),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Dl,m[4]||(m[4]=[r.createElementVNode("span",null,"...",-1)]))),t.isCompact?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("button",{key:3,type:"button",disabled:r.unref(i)===r.unref(s),onClick:m[2]||(m[2]=h=>r.unref(u)(r.unref(s)))},r.toDisplayString(r.unref(s)),9,vl)),r.createElementVNode("button",{type:"button",disabled:r.unref(i)===r.unref(s),onClick:m[3]||(m[3]=r.withModifiers(h=>r.unref(c)(1),["prevent"]))},[r.renderSlot(f.$slots,"next",{},()=>[r.createVNode(r.unref(xl),{class:"icon paginator-left"})])],8,Cl)],2)):r.createCommentVNode("",!0)}},on={__name:"ResponsiveTable",setup(t){const e=r.ref(null),n=dt("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))}},Il={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"};function Bl(t,e){return r.openBlock(),r.createElementBlock("svg",Il,e[0]||(e[0]=[r.createElementVNode("rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",ry:"2"},null,-1),r.createElementVNode("line",{x1:"8",y1:"21",x2:"16",y2:"21"},null,-1),r.createElementVNode("line",{x1:"12",y1:"17",x2:"12",y2:"21"},null,-1)]))}const Rl={render:Bl},zl={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"};function Vl(t,e){return r.openBlock(),r.createElementBlock("svg",zl,e[0]||(e[0]=[r.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),r.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),r.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1)]))}const Gl={render:Vl},Fl={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"};function jl(t,e){return r.openBlock(),r.createElementBlock("svg",Fl,e[0]||(e[0]=[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),r.createElementVNode("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"},null,-1)]))}const Yl={render:jl},Hl={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"};function Ul(t,e){return r.openBlock(),r.createElementBlock("svg",Hl,e[0]||(e[0]=[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),r.createElementVNode("polygon",{points:"9.75 15.02 15.5 11.75 9.75 8.48 9.75 15.02"},null,-1)]))}const Wl={render:Ul};function ql(t=[]){return{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?Qt(Be(l),qt(e)):Qt(ut(l),Kn,Na(Kn(e)))),i=na(l=>l.name?Ba(Da("name"),Ra(",",""),l):l),s=ve(Qt(i,ea([...a])),this.result);this.isFiltered=!0,this.filteredRowsLength=s.length,this.result=s}return this},sorted(e){if(!e.sortTarget)return this;if(e.orders[0].direction===ct)return this;const n=Ea(qt(I),Gn(Le),Gn(ba));return this.result=qn(e.orders.map(o=>jn(n(o.direction),ut)(o.target)))(this.result),this},addIndex(e=null){return this.result.reduce((n,o,a)=>{const i=n[n.length-1]||[],s=e&&i[e]===o[e];return o.index=s?i.index:a+1,o.indexClass=s?"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:bt(o.gameDate,"L dddd",e,n),gameDateTime:bt(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=xa(e=>bt(e.gameDate,"YYYY-MM-DD"))(this.result),this}}}const Kl=(t,...e)=>ft(jn(...e))(t);function Zl(t){var e,n,o,a;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.id)&&{name:`${t.player.lastName} ${t.player.firstName}`},...((o=t.player)==null?void 0:o.nationality)&&{name:(a=t.player)!=null&&a.nationality.includes("hu")?`${t.player.lastName} ${t.player.firstName}`:`${t.player.lastName}, ${t.player.firstName}`},...t.nationality&&{name:t.nationality.includes("hu")?`${t.lastName} ${t.firstName}`:`${t.lastName}, ${t.firstName}`}}}function Xl(t){var e;return{...t,...((e=t==null?void 0:t.team)==null?void 0:e.id)&&{teamName:t.team.longName}}}function Jl(t="",e="hu"){return n=>({...n,gameDateDate:bt(n.gameDate,"L dddd",t,e),gameDateTime:bt(n.gameDate,"HH:mm",t,e)})}function Ql(t){return e=>({...e,gameResult:dc(e)})}function tc(t){return{...t,opponent:uc(t)}}function ec(t){return{...t,resultType:fc(t)}}function nc(t){return{...t,rowClasses:t.optional?"is-optional":""}}function rc(t=[]){return e=>{var n;return{...e,[t]:(n=e[t])==null?void 0:n.toUpperCase()}}}function oc(t=[]){return e=>(t.map(n=>e[n]?e[`${n}Sec`]=Ge(e[n]):e),e)}function ac(t=[]){return e=>(t.map(n=>e[n]?e[`${n}Min`]=Or(e[n]):e),e)}function ic(t=[]){return e=>(t.map(n=>e[`${n}Min`]=wr(e[n])),e)}function sc(t){var e,n;return{...t,periodResults:((n=(e=t.result)==null?void 0:e.match(/\(.*?\)/))==null?void 0:n[0])??""}}const lc=qn([(t,e)=>new Date(t.gameDate).getTime()-new Date(e.gameDate).getTime(),Le(ut("id")),Le(ut("gameId"))]),cc=za((t=>(e,n)=>e[t].localeCompare(n[t],"hu"))("name"));function uc(t){var e;return[t.isHomeGame?null:"@",(e=t.opponent)==null?void 0:e.shortName].join(" ")}function dc(t){let e=t==null?void 0:t.homeTeamScore,n=t==null?void 0:t.awayTeamScore;return t.isHomeGame||(e=t==null?void 0:t.awayTeamScore,n=t==null?void 0:t.homeTeamScore),[e,n].join(":")}function fc(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"}function mc(t){return 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("-")}})}class an extends Error{constructor(e,n={}){const{key:o,cause:a}=n;super(e),this.name="WidgetError",this.key=o,this.cause=a}}const Ft={message:"Undefined Column name Message",options:{key:"undefined-column",cause:{}}},pc={message:"Invalid season name",options:{key:"invalid-season-name",cause:{}}},sn=(t="")=>{var e;return(e=window==null?void 0:window.__MJSZ_VBR_WIDGET__)==null?void 0:e[t]};function hc(t,e={}){const n=sn("gameResolver")||t;return typeof n=="function"?n(e):encodeURI(yt(n||cn,e))}function gc(t,e={}){const n=sn("teamResolver")||t;return typeof n=="function"?n(e):encodeURI(yt(n||fn,e))}function yc(t,e={}){const n=sn("playerResolver")||t;return typeof n=="function"?n(e):encodeURI(yt(n||dn,e))}const bc=(t,e="1x1")=>`${mn}/flag:${t}-${e}.svg`;function Tc(){window.scrollTo(0,0)}const Sc={class:"is-team-name-long"},wc={class:"is-team-name-short"},Oc={class:"is-team-name-long"},Ac={class:"is-team-name-short"},kc={key:0,class:"is-text-dark"},_c=["href","target"],Pc={key:0,class:"label"},xc={key:1,class:"label"},Ec={key:2,class:"label"},Nc={key:1},$c=["onClick","onFocus","onBlur"],Mc={class:"is-dropdown-menu"},Dc=["href","target"],vc={key:0},Cc=["href"],Lc={__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}=Ve(),{columns:a,error:i}=ze(yn,r.computed(()=>e.hideColumns),r.computed(()=>({offsetName:e.offsetName})));Po(i,()=>o(new an(Ft.message,{...Ft.options,cause:{column:i.value}})),{immediate:!0});const{t:s}=at();return(l,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createVNode(on,null,{default:r.withCtx(({el:c})=>[r.createVNode(nn,{columns:r.unref(a),rows:e.rows,"is-loading":t.isLoading,"append-to":n.value||c},{"cell-homeTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",Sc,r.toDisplayString(f.homeTeam.longName),1),r.createElementVNode("span",wc,r.toDisplayString(f.homeTeam.shortName),1)]),"cell-awayTeamName":r.withCtx(({row:f})=>[r.createElementVNode("span",Oc,r.toDisplayString(f.awayTeam.longName),1),r.createElementVNode("span",Ac,r.toDisplayString(f.awayTeam.shortName),1)]),"cell-homeTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(Ot,{key:f.homeTeam.id,class:"is-logo-image is-right",src:f.homeTeam.logo},null,8,["src"]))]),"cell-awayTeamLogo":r.withCtx(({row:f})=>[(r.openBlock(),r.createBlock(Ot,{key:f.awayTeam.id,class:"is-logo-image is-right",src:f.awayTeam.logo},null,8,["src"]))]),"cell-gameResult":r.withCtx(({row:f})=>[f.gameStatus===0?(r.openBlock(),r.createElementBlock("span",kc,"-:-")):(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,_c))]),"cell-gameResultType":r.withCtx(({row:f})=>[f.isOvertime?(r.openBlock(),r.createElementBlock("span",Pc,r.toDisplayString(r.unref(s)("common.overtimeShort")),1)):r.createCommentVNode("",!0),f.isShootout?(r.openBlock(),r.createElementBlock("span",xc,r.toDisplayString(r.unref(s)("common.shootoutShort")),1)):r.createCommentVNode("",!0),f.seriesStandings?(r.openBlock(),r.createElementBlock("span",Ec,r.toDisplayString(f.seriesStandings),1)):r.createCommentVNode("",!0)]),"cell-broadcast":r.withCtx(({row:f})=>[f.broadcast?(r.openBlock(),r.createBlock(r.unref(Rl),{key:0})):(r.openBlock(),r.createElementBlock("span",Nc))]),"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(en,{offset:2,placement:"left",theme:"content","append-to":c},{default:r.withCtx(({setRef:m,show:h,hide:y})=>[r.createElementVNode("button",{ref:m,onClick:r.withModifiers(h,["stop"]),onFocus:h,onBlur:y},[r.createVNode(r.unref(Gl))],40,$c)]),content:r.withCtx(()=>[r.createElementVNode("ul",Mc,[r.createElementVNode("li",null,[r.createElementVNode("a",{href:t.externalGameResolver(f.gameId),class:"is-dropdown-item",target:t.externalGameResolverTarget},[r.createVNode(r.unref(Yl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(s)("common.report")),1)],8,Dc)]),f.video?(r.openBlock(),r.createElementBlock("li",vc,[r.createElementVNode("a",{href:f.video,class:"is-dropdown-item",target:"_blank"},[r.createVNode(r.unref(Wl),{width:"14"}),r.createTextVNode(" "+r.toDisplayString(r.unref(s)("common.video")),1)],8,Cc)])):r.createCommentVNode("",!0)])]),_:2},1032,["append-to"])]),loading:r.withCtx(()=>[r.createVNode(rn)]),_:2},1032,["columns","rows","is-loading","append-to"])]),_:1}),r.createElementVNode("div",{ref_key:"tooltipContainer",ref:n},null,512)],64))}},Ic={class:"g-row g-gap-normal is-mb-5"},Bc=["value"],Rc={key:0},zc=["onClick"],Vc={__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}=at(),i=r.computed({get(){return n.championshipId},set(l){o("onChangeSeason",l)}});function s(l){o("onChangeSection",l)}return(l,u)=>(r.openBlock(),r.createElementBlock(r.Fragment,null,[r.createElementVNode("div",Ic,[r.createElementVNode("div",null,[r.createElementVNode("label",{for:"season",class:r.normalizeClass(r.unref(dt)("label"))},r.toDisplayString(r.unref(a)("selection.season")),3),r.createVNode(Er,{id:"season",modelValue:i.value,"onUpdate:modelValue":u[0]||(u[0]=c=>i.value=c)},{default:r.withCtx(()=>[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.seasons,c=>(r.openBlock(),r.createElementBlock("option",{key:c.championshipId,value:c.championshipId},r.toDisplayString(c.seasonName),9,Bc))),128))]),_:1},8,["modelValue"])]),r.renderSlot(l.$slots,"default")]),t.isSectionSelectionDisabled?r.createCommentVNode("",!0):(r.openBlock(),r.createElementBlock("div",Rc,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.sections,c=>(r.openBlock(),r.createElementBlock("button",{key:c.phaseId,class:r.normalizeClass([r.unref(dt)("tab-button"),{"is-active":c.sectionId===t.sectionId}]),onClick:f=>s(c)},r.toDisplayString(c.sectionName),11,zc))),128))]))],64))}},Gc={class:"is-portrait-image"},Fc=["href"],jc={class:"is-team-name-long"},Yc={class:"is-team-name-short"},Hc={class:"is-team-name-long"},Uc={key:0},Wc={class:"is-team-name-short"},qc={key:0},Kc={class:"is-team-name-long"},Zc={class:"is-team-name-short"},Xc={class:"is-team-name-long"},Jc={class:"is-team-name-short"},Qc=["href"],tu={key:0,class:"is-text-dark"},eu=["href","target"],nu={key:0,class:"label"},ru={key:1,class:"label"},ou={key:2,class:"label"},au={__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,o=e,{columns:a,hideColumns:i}=r.toRefs(n),{onError:s}=Ve(),{t:l}=at(),{columns:u,error:c}=ze(a,i,r.computed(()=>({offsetName:n.offsetName})));c.value&&s(new an(Ft.message,{...Ft.options,cause:{column:c.value}}));const f=m=>o("sort",m);return(m,h)=>(r.openBlock(),r.createBlock(on,null,{default:r.withCtx(({el:y})=>[r.createVNode(nn,{columns:r.unref(u),sort:n.sort,rows:n.rows,"is-loading":t.isLoading,"append-to":t.appendTo||y,onSort:f},r.createSlots({"cell-index":r.withCtx(({row:p})=>[r.createElementVNode("span",{class:r.normalizeClass(p.indexClass)},r.toDisplayString(p.index),3)]),"cell-playerPortrait":r.withCtx(({row:p})=>[r.createElementVNode("div",Gc,[(r.openBlock(),r.createBlock(Ot,{key:p.player.playerId,src:p.player.picture,"default-src":r.unref(un)},null,8,["src","default-src"]))])]),"cell-teamLogo":r.withCtx(({row:p})=>{var d,g;return[(r.openBlock(),r.createBlock(Ot,{key:((d=p.team)==null?void 0:d.id)??p.id,class:"is-logo-image",src:(g=p.team)==null?void 0:g.logo},null,8,["src"]))]}),"cell-homeTeamLogo":r.withCtx(({row:p})=>{var d,g;return[(r.openBlock(),r.createBlock(Ot,{key:(d=p.homeTeam)==null?void 0:d.id,class:"is-logo-image is-right",src:(g=p.homeTeam)==null?void 0:g.logo},null,8,["src"]))]}),"cell-awayTeamLogo":r.withCtx(({row:p})=>{var d,g;return[(r.openBlock(),r.createBlock(Ot,{key:(d=p.awayTeam)==null?void 0:d.id,class:"is-logo-image is-right",src:(g=p.awayTeam)==null?void 0:g.logo},null,8,["src"]))]}),"cell-teamName":r.withCtx(({row:p})=>{var d,g,S,_;return[t.isTeamLinked?(r.openBlock(),r.createElementBlock("a",{key:0,href:t.externalTeamResolver(p),target:"_blank"},[r.createElementVNode("span",jc,r.toDisplayString((d=p.team)==null?void 0:d.longName),1),r.createElementVNode("span",Yc,r.toDisplayString((g=p.team)==null?void 0:g.shortName),1)],8,Fc)):(r.openBlock(),r.createElementBlock(r.Fragment,{key:1},[r.createElementVNode("span",Hc,[r.createTextVNode(r.toDisplayString((S=p.team)==null?void 0:S.longName)+" ",1),p.penaltyPoints?(r.openBlock(),r.createElementBlock("span",Uc,h[0]||(h[0]=[r.createElementVNode("sup",null,"*",-1)]))):r.createCommentVNode("",!0)]),r.createElementVNode("span",Wc,[r.createTextVNode(r.toDisplayString((_=p.team)==null?void 0:_.shortName)+" ",1),p.penaltyPoints?(r.openBlock(),r.createElementBlock("span",qc,h[1]||(h[1]=[r.createElementVNode("sup",null,"*",-1)]))):r.createCommentVNode("",!0)])],64))]}),"cell-homeTeamName":r.withCtx(({row:p})=>{var d,g;return[r.createElementVNode("span",Kc,r.toDisplayString((d=p.homeTeam)==null?void 0:d.longName),1),r.createElementVNode("span",Zc,r.toDisplayString((g=p.homeTeam)==null?void 0:g.shortName),1)]}),"cell-awayTeamName":r.withCtx(({row:p})=>{var d,g;return[r.createElementVNode("span",Xc,r.toDisplayString((d=p.awayTeam)==null?void 0:d.longName),1),r.createElementVNode("span",Jc,r.toDisplayString((g=p.awayTeam)==null?void 0:g.shortName),1)]}),"cell-location":r.withCtx(({row:p})=>{var d;return[r.createTextVNode(r.toDisplayString(((d=p.location)==null?void 0:d.locationName)??""),1)]}),"cell-gameResult":r.withCtx(({row:p})=>[p.gameStatus===0?(r.openBlock(),r.createElementBlock("span",tu,"-:-")):(r.openBlock(),r.createElementBlock("a",{key:1,href:t.externalGameResolver(p),target:t.externalGameResolverTarget,class:r.normalizeClass({"is-text-dark":p.gameStatus!==1,"is-text-accent":p.gameStatus===1})},r.toDisplayString(p.homeTeamScore)+":"+r.toDisplayString(p.awayTeamScore),11,eu))]),"cell-gameResultType":r.withCtx(({row:p})=>[p.isOvertime?(r.openBlock(),r.createElementBlock("span",nu,r.toDisplayString(r.unref(l)("common.overtimeShort")),1)):r.createCommentVNode("",!0),p.isShootout?(r.openBlock(),r.createElementBlock("span",ru,r.toDisplayString(r.unref(l)("common.shootoutShort")),1)):r.createCommentVNode("",!0),p.seriesStandings?(r.openBlock(),r.createElementBlock("span",ou,r.toDisplayString(p.seriesStandings),1)):r.createCommentVNode("",!0)]),loading:r.withCtx(()=>[r.createVNode(rn)]),_:2},[t.isPlayerLinked?{name:"cell-name",fn:r.withCtx(({row:p})=>[r.createElementVNode("a",{href:t.externalPlayerResolver(p),target:"_blank"},r.toDisplayString(p.name),9,Qc)]),key:"0"}:void 0]),1032,["columns","sort","rows","is-loading","append-to"])]),_:1}))}},iu=["onClick"],su={__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}=at(),i=dt("timezone-selector"),s=r.computed(()=>Bt(new Date,null,n.locale)),l=Sr(),u=r.computed(()=>Array.from(hn.values()).map(f=>({...f,isActive:Bt(new Date,n.currentZone,n.locale)===Bt(new Date,f.timezone,n.locale),zoneOffsetName:Bt(new Date,f.timezone,n.locale)}))),c=f=>o("change",f);return(f,m)=>(r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(r.unref(i))},[r.createVNode(r.unref(tr),{path:"common.selectTimezone",tag:"span"},{timezone:r.withCtx(()=>[r.createElementVNode("a",{href:"#",onClick:m[0]||(m[0]=r.withModifiers(h=>c(r.unref(l)),["prevent"]))},r.toDisplayString(s.value),1)]),_:1}),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(u.value,h=>(r.openBlock(),r.createElementBlock("a",{key:h.countryLabelKey,href:"#",class:r.normalizeClass({"is-active":h.isActive}),onClick:r.withModifiers(y=>c(h.timezone),["prevent"])},r.toDisplayString(r.unref(a)(`common.${h.countryLabelKey}`))+" ("+r.toDisplayString(h.zoneOffsetName)+") ",11,iu))),128))],2))}},lu={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:""}},cu={externalTeamResolver:{type:[String,Function],default:""},isTeamLinked:{type:Boolean,default:!1}},uu={limit:{type:Number,default:20},teamFilterByName:{type:String,default:""},externalPlayerResolver:{type:[String,Function],default:""},isPlayerLinked:{type:Boolean,default:!1}},du={externalGameResolver:{type:[String,Function],default:""},isGameTargetExternal:{type:Boolean,default:!1}};function Wr({app:t=null,modules:e=[],apiKey:n,gameResolver:o,teamResolver:a,playerResolver:i}){if(window.__MJSZ_VBR_WIDGET__={apiKey:n,gameResolver:o,teamResolver:a,playerResolver:i},e.length===0)throw new Error("At least one module must be set");e.forEach(s=>{if(t)return t.use(s);if(s.register)return s.register();s==null||s.install()})}const fu={install:(t,e={})=>Wr({app:t,...e})};return T.AVAILABLE_TIMEZONES_BY_COUNTRY=hn,T.AdditionalStandingsText=cs,T.BaseSelect=Er,T.COLUMNS_FIELD_PLAYERS=Xr,T.COLUMNS_FIELD_PLAYERS_PENALTY=Jr,T.COLUMNS_FIELD_PLAYERS_TOI=Qr,T.COLUMNS_GOALIES=to,T.COLUMNS_PLAYERS_NATIONAL=eo,T.COLUMNS_SCHEDULE=yn,T.COLUMNS_SCORING_EFFICIENCY=io,T.COLUMNS_STANDINGS_P_2=Zr,T.COLUMNS_STANDINGS_P_3=Kr,T.COLUMNS_TEAMS_FAIRPLAY=ro,T.COLUMNS_TEAMS_PENALTY_KILLING=oo,T.COLUMNS_TEAMS_POWERPLAY=ao,T.COLUMNS_TEAM_ATTENDANCE=no,T.DEFAULT_EXTERNAL_GAME_URL=cn,T.DEFAULT_EXTERNAL_PLAYER_URL=dn,T.DEFAULT_EXTERNAL_TEAM_URL=fn,T.DEFAULT_PORTRAIT_IMAGE_URL=un,T.DataTable=nn,T.ErrorNotice=dl,T.ErrorProvider=fl,T.FLAG_BASE_URL=mn,T.FetchMoreObserver=ho,T.FloatingPanel=en,T.I18NProvider=bl,T.Image=Ot,T.InvalidSeasonName=pc,T.LAZY_LOADING_STATE_DELAY=gn,T.LOCALE_FOR_LANG=pn,T.LoadingIndicator=rn,T.Paginator=Ll,T.REFRESH_DELAY=qr,T.ResponsiveTable=on,T.SORT_STATE_ASCEND=I,T.SORT_STATE_DESCEND=b,T.SORT_STATE_ORIGINAL=ct,T.ScheduleTable=Lc,T.SeasonSelector=Vc,T.StatisticsTable=au,T.TimezoneSelector=su,T.UndefinedColumn=Ft,T.VBR_API_BASE_URL=ln,T.WidgetError=an,T.addDays=Ui,T.appendTo=Ur,T.baseProps=lu,T.convert=ql,T.convertGamePeriodResults=sc,T.convertMinToMinSec=Or,T.convertMinToSec=Ge,T.convertPhaseName=mc,T.convertSecToMin=wr,T.convertTimes=oc,T.convertTimesMinToMinSec=ac,T.convertTimesSecToMin=ic,T.createConfig=Wr,T.createI18n=Jn,T.currentWeek=ji,T.currentWeekStartEnd=Yi,T.default=fu,T.endOfMonth=qi,T.externalGameLinkResolver=hc,T.externalPlayerLinkResolver=yc,T.externalTeamLinkResolver=gc,T.fetchVBRData=ar,T.flagResolver=bc,T.format=bt,T.gameDateTime=Jl,T.gameProps=du,T.gameResult=Ql,T.getLocalTimezone=Sr,T.i18n=tr,T.isAfter=Gi,T.isBefore=Vi,T.isBetween=Ar,T.isSame=Ri,T.isSameOrBefore=Fe,T.isToday=Fi,T.localeSort=cc,T.max=Zi,T.min=Ki,T.offsetName=Bt,T.playerName=Zl,T.playerStatsProps=uu,T.rawConvert=Kl,T.scheduleOptionalRowClass=nc,T.scrollToTop=Tc,T.sortByDomNode=Qs,T.sortGames=lc,T.startOfMonth=Wi,T.subtractDays=Hi,T.teamName=Xl,T.teamOpponent=tc,T.teamResultType=ec,T.teamStatsProps=cu,T.templateReplacer=yt,T.toKebabCase=nr,T.upperCase=rc,T.useAdditionalText=Zn,T.useColumns=ze,T.useError=Ve,T.useErrorProvider=or,T.useI18n=at,T.useLazyLoadingState=ir,T.useMainClass=dt,T.usePage=Xi,T.useScrollToGameDate=Qi,T.useServices=ts,T.useSort=is,T.useVisibilityChange=ss,T.validateColumnsName=er,T.yearToNow=zi,Object.defineProperties(T,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),T}({},Vue);
|