From 0aab56ac751bf7bdac268da1a80b1e1cf5c2af20 Mon Sep 17 00:00:00 2001 From: Michael Geers Date: Sun, 8 Jan 2023 20:11:07 +0100 Subject: [PATCH] chore: upgrade npm dependencies --- .../{index.74b73016.js => index.cbc48ffb.js} | 66 +- dist/index.html | 2 +- package-lock.json | 1046 ++++++++++------- package.json | 4 +- 4 files changed, 681 insertions(+), 437 deletions(-) rename dist/assets/{index.74b73016.js => index.cbc48ffb.js} (64%) diff --git a/dist/assets/index.74b73016.js b/dist/assets/index.cbc48ffb.js similarity index 64% rename from dist/assets/index.74b73016.js rename to dist/assets/index.cbc48ffb.js index e4acdf900..fbaa9e7b3 100644 --- a/dist/assets/index.74b73016.js +++ b/dist/assets/index.cbc48ffb.js @@ -1,14 +1,14 @@ -var rh=Object.defineProperty;var sh=(e,t,n)=>t in e?rh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var oh=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bn=(e,t,n)=>(sh(e,typeof t!="symbol"?t+"":t,n),n);var E6=oh((S6,os)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function au(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ih(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var lu={exports:{}};(function(e,t){(function(){function n(){var r=window,o=document;if("scrollBehavior"in o.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var s=r.HTMLElement||r.Element,i=468,a={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:s.prototype.scroll||f,scrollIntoView:s.prototype.scrollIntoView},l=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function c(y){var C=["MSIE ","Trident/","Edge/"];return new RegExp(C.join("|")).test(y)}var u=c(r.navigator.userAgent)?1:0;function f(y,C){this.scrollLeft=y,this.scrollTop=C}function h(y){return .5*(1-Math.cos(Math.PI*y))}function p(y){if(y===null||typeof y!="object"||y.behavior===void 0||y.behavior==="auto"||y.behavior==="instant")return!0;if(typeof y=="object"&&y.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+y.behavior+" is not a valid value for enumeration ScrollBehavior.")}function w(y,C){if(C==="Y")return y.clientHeight+u1?1:Y,x=h(Y),P=y.startX+(y.x-y.startX)*x,K=y.startY+(y.y-y.startY)*x,y.method.call(y.scrollable,P,K),(P!==y.x||K!==y.y)&&r.requestAnimationFrame(S.bind(r,y))}function A(y,C,x){var P,K,Y,ee,ne=l();y===o.body?(P=r,K=r.scrollX||r.pageXOffset,Y=r.scrollY||r.pageYOffset,ee=a.scroll):(P=y,K=y.scrollLeft,Y=y.scrollTop,ee=f),S({scrollable:P,method:ee,startTime:ne,startX:K,startY:Y,x:C,y:x})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){a.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}A.call(r,o.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(p(arguments[0])){a.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}A.call(r,o.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},s.prototype.scroll=s.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var y=arguments[0].left,C=arguments[0].top;A.call(this,this,typeof y>"u"?this.scrollLeft:~~y,typeof C>"u"?this.scrollTop:~~C)}},s.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},s.prototype.scrollIntoView=function(){if(p(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var y=_(this),C=y.getBoundingClientRect(),x=this.getBoundingClientRect();y!==o.body?(A.call(this,y,y.scrollLeft+x.left-C.left,y.scrollTop+x.top-C.top),r.getComputedStyle(y).position!=="fixed"&&r.scrollBy({left:C.left,top:C.top,behavior:"smooth"})):r.scrollBy({left:x.left,top:x.top,behavior:"smooth"})}}e.exports={polyfill:n}})()})(lu);const ah=lu.exports;function Ni(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function ft(e){if(ge(e)){const t={};for(let n=0;n{if(n){const r=n.split(ch);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Me(e){let t="";if(Be(e))t=e;else if(ge(e))for(let n=0;nMn(n,t))}const B=e=>Be(e)?e:e==null?"":ge(e)||Re(e)&&(e.toString===du||!we(e.toString))?JSON.stringify(e,uu,2):String(e),uu=(e,t)=>t&&t.__v_isRef?uu(e,t.value):jn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:lr(t)?{[`Set(${t.size})`]:[...t.values()]}:Re(t)&&!ge(t)&&!hu(t)?String(t):t,De={},Un=[],Lt=()=>{},ph=()=>!1,gh=/^on[^a-z]/,Bs=e=>gh.test(e),Ii=e=>e.startsWith("onUpdate:"),lt=Object.assign,Oi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},_h=Object.prototype.hasOwnProperty,xe=(e,t)=>_h.call(e,t),ge=Array.isArray,jn=e=>Yr(e)==="[object Map]",lr=e=>Yr(e)==="[object Set]",Qa=e=>Yr(e)==="[object Date]",we=e=>typeof e=="function",Be=e=>typeof e=="string",Dr=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",fu=e=>Re(e)&&we(e.then)&&we(e.catch),du=Object.prototype.toString,Yr=e=>du.call(e),vh=e=>Yr(e).slice(8,-1),hu=e=>Yr(e)==="[object Object]",Pi=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bs=Ni(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},bh=/-(\w)/g,Ut=Us(e=>e.replace(bh,(t,n)=>n?n.toUpperCase():"")),yh=/\B([A-Z])/g,cr=Us(e=>e.replace(yh,"-$1").toLowerCase()),js=Us(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=Us(e=>e?`on${js(e)}`:""),Fr=(e,t)=>!Object.is(e,t),ys=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},qr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Wa;const wh=()=>Wa||(Wa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Rt;class mu{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Rt,!t&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Rt;try{return Rt=this,t()}finally{Rt=n}}}on(){Rt=this}off(){Rt=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},pu=e=>(e.w&fn)>0,gu=e=>(e.n&fn)>0,Sh=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ge(e)?Pi(n)&&a.push(i.get("length")):(a.push(i.get(An)),jn(e)&&a.push(i.get(Ko)));break;case"delete":ge(e)||(a.push(i.get(An)),jn(e)&&a.push(i.get(Ko)));break;case"set":jn(e)&&a.push(i.get(An));break}if(a.length===1)a[0]&&Yo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Yo(ki(l))}}function Yo(e,t){const n=ge(e)?e:[...e];for(const r of n)r.computed&&Ka(r);for(const r of n)r.computed||Ka(r)}function Ka(e,t){(e!==Ct||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Ah=Ni("__proto__,__v_isRef,__isVue"),bu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dr)),xh=Di(),Lh=Di(!1,!0),Mh=Di(!0),Ya=Nh();function Nh(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ie(this);for(let s=0,i=this.length;s{e[t]=function(...n){ur();const r=Ie(this)[t].apply(this,n);return fr(),r}}),e}function Di(e=!1,t=!1){return function(r,o,s){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&s===(e?t?Wh:Su:t?Tu:Eu).get(r))return r;const i=ge(r);if(!e&&i&&xe(Ya,o))return Reflect.get(Ya,o,s);const a=Reflect.get(r,o,s);return(Dr(o)?bu.has(o):Ah(o))||(e||gt(r,"get",o),t)?a:Ge(a)?i&&Pi(o)?a:a.value:Re(a)?e?Cu(a):mn(a):a}}const $h=yu(),Ih=yu(!0);function yu(e=!1){return function(n,r,o,s){let i=n[r];if(Yn(i)&&Ge(i)&&!Ge(o))return!1;if(!e&&(!Is(o)&&!Yn(o)&&(i=Ie(i),o=Ie(o)),!ge(n)&&Ge(i)&&!Ge(o)))return i.value=o,!0;const a=ge(n)&&Pi(r)?Number(r)e,Qs=e=>Reflect.getPrototypeOf(e);function is(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ie(e),s=Ie(t);n||(t!==s&>(o,"get",t),gt(o,"get",s));const{has:i}=Qs(o),a=r?Fi:n?Ui:Vr;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function as(e,t=!1){const n=this.__v_raw,r=Ie(n),o=Ie(e);return t||(e!==o&>(r,"has",e),gt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ls(e,t=!1){return e=e.__v_raw,!t&>(Ie(e),"iterate",An),Reflect.get(e,"size",e)}function Za(e){e=Ie(e);const t=Ie(this);return Qs(t).has.call(t,e)||(t.add(e),Zt(t,"add",e,e)),this}function Ga(e,t){t=Ie(t);const n=Ie(this),{has:r,get:o}=Qs(n);let s=r.call(n,e);s||(e=Ie(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?Fr(t,i)&&Zt(n,"set",e,t):Zt(n,"add",e,t),this}function Xa(e){const t=Ie(this),{has:n,get:r}=Qs(t);let o=n.call(t,e);o||(e=Ie(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&Zt(t,"delete",e,void 0),s}function Ja(){const e=Ie(this),t=e.size!==0,n=e.clear();return t&&Zt(e,"clear",void 0,void 0),n}function cs(e,t){return function(r,o){const s=this,i=s.__v_raw,a=Ie(i),l=t?Fi:e?Ui:Vr;return!e&>(a,"iterate",An),i.forEach((c,u)=>r.call(o,l(c),l(u),s))}}function us(e,t,n){return function(...r){const o=this.__v_raw,s=Ie(o),i=jn(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?Fi:t?Ui:Vr;return!t&>(s,"iterate",l?Ko:An),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function nn(e){return function(...t){return e==="delete"?!1:this}}function Fh(){const e={get(s){return is(this,s)},get size(){return ls(this)},has:as,add:Za,set:Ga,delete:Xa,clear:Ja,forEach:cs(!1,!1)},t={get(s){return is(this,s,!1,!0)},get size(){return ls(this)},has:as,add:Za,set:Ga,delete:Xa,clear:Ja,forEach:cs(!1,!0)},n={get(s){return is(this,s,!0)},get size(){return ls(this,!0)},has(s){return as.call(this,s,!0)},add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear"),forEach:cs(!0,!1)},r={get(s){return is(this,s,!0,!0)},get size(){return ls(this,!0)},has(s){return as.call(this,s,!0)},add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear"),forEach:cs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=us(s,!1,!1),n[s]=us(s,!0,!1),t[s]=us(s,!1,!0),r[s]=us(s,!0,!0)}),[e,n,t,r]}const[qh,Vh,Hh,Bh]=Fh();function qi(e,t){const n=t?e?Bh:Hh:e?Vh:qh;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(xe(n,o)&&o in r?n:r,o,s)}const Uh={get:qi(!1,!1)},jh={get:qi(!1,!0)},Qh={get:qi(!0,!1)},Eu=new WeakMap,Tu=new WeakMap,Su=new WeakMap,Wh=new WeakMap;function zh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Kh(e){return e.__v_skip||!Object.isExtensible(e)?0:zh(vh(e))}function mn(e){return Yn(e)?e:Vi(e,!1,wu,Uh,Eu)}function Yh(e){return Vi(e,!1,Dh,jh,Tu)}function Cu(e){return Vi(e,!0,Rh,Qh,Su)}function Vi(e,t,n,r,o){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Kh(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function Qn(e){return Yn(e)?Qn(e.__v_raw):!!(e&&e.__v_isReactive)}function Yn(e){return!!(e&&e.__v_isReadonly)}function Is(e){return!!(e&&e.__v_isShallow)}function Hi(e){return Qn(e)||Yn(e)}function Ie(e){const t=e&&e.__v_raw;return t?Ie(t):e}function Bi(e){return $s(e,"__v_skip",!0),e}const Vr=e=>Re(e)?mn(e):e,Ui=e=>Re(e)?Cu(e):e;function Au(e){cn&&Ct&&(e=Ie(e),vu(e.dep||(e.dep=ki())))}function xu(e,t){e=Ie(e),e.dep&&Yo(e.dep)}function Ge(e){return!!(e&&e.__v_isRef===!0)}function At(e){return Mu(e,!1)}function Lu(e){return Mu(e,!0)}function Mu(e,t){return Ge(e)?e:new Zh(e,t)}class Zh{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ie(t),this._value=n?t:Vr(t)}get value(){return Au(this),this._value}set value(t){const n=this.__v_isShallow||Is(t)||Yn(t);t=n?t:Ie(t),Fr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Vr(t),xu(this))}}function Wn(e){return Ge(e)?e.value:e}const Gh={get:(e,t,n)=>Wn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ge(o)&&!Ge(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Nu(e){return Qn(e)?e:new Proxy(e,Gh)}var $u;class Xh{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[$u]=!1,this._dirty=!0,this.effect=new Ri(t,()=>{this._dirty||(this._dirty=!0,xu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ie(this);return Au(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}$u="__v_isReadonly";function Jh(e,t,n=!1){let r,o;const s=we(e);return s?(r=e,o=Lt):(r=e.get,o=e.set),new Xh(r,o,s||!o,n)}function un(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){Ws(s,t,n)}return o}function Mt(e,t,n,r){if(we(e)){const s=un(e,t,n,r);return s&&fu(s)&&s.catch(i=>{Ws(i,t,n)}),s}const o=[];for(let s=0;s>>1;Br(Je[r])qt&&Je.splice(t,1)}function rm(e){ge(e)?zn.push(...e):(!zt||!zt.includes(e,e.allowRecurse?Tn+1:Tn))&&zn.push(e),Ou()}function el(e,t=Hr?qt+1:0){for(;tBr(n)-Br(r)),Tn=0;Tne.id==null?1/0:e.id,sm=(e,t)=>{const n=Br(e)-Br(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ku(e){Zo=!1,Hr=!0,Je.sort(sm);const t=Lt;try{for(qt=0;qtBe(p)?p.trim():p)),f&&(o=n.map(qr))}let a,l=r[a=yo(t)]||r[a=yo(Ut(t))];!l&&s&&(l=r[a=yo(cr(t))]),l&&Mt(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Mt(c,e,6,o)}}function Ru(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!we(e)){const l=c=>{const u=Ru(c,t,!0);u&&(a=!0,lt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Re(e)&&r.set(e,null),null):(ge(s)?s.forEach(l=>i[l]=null):lt(i,s),Re(e)&&r.set(e,i),i)}function zs(e,t){return!e||!Bs(t)?!1:(t=t.slice(2).replace(/Once$/,""),xe(e,t[0].toLowerCase()+t.slice(1))||xe(e,cr(t))||xe(e,t))}let Xe=null,Ks=null;function Os(e){const t=Xe;return Xe=e,Ks=e&&e.type.__scopeId||null,t}function tt(e){Ks=e}function nt(){Ks=null}function Ve(e,t=Xe,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&ul(-1);const s=Os(t);let i;try{i=e(...o)}finally{Os(s),r._d&&ul(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function wo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:h,setupState:p,ctx:w,inheritAttrs:b}=e;let T,_;const S=Os(e);try{if(n.shapeFlag&4){const y=o||r;T=Dt(u.call(y,y,f,s,p,h,w)),_=l}else{const y=t;T=Dt(y.length>1?y(s,{attrs:l,slots:a,emit:c}):y(s,null)),_=t.props?l:im(l)}}catch(y){xr.length=0,Ws(y,e,1),T=re(Gt)}let A=T;if(_&&b!==!1){const y=Object.keys(_),{shapeFlag:C}=A;y.length&&C&7&&(i&&y.some(Ii)&&(_=am(_,i)),A=Zn(A,_))}return n.dirs&&(A=Zn(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),T=A,Os(S),T}const im=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bs(n))&&((t||(t={}))[n]=e[n]);return t},am=(e,t)=>{const n={};for(const r in e)(!Ii(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lm(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?tl(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function fm(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):rm(e)}function ws(e,t){if(ze){let n=ze.provides;const r=ze.parent&&ze.parent.provides;r===n&&(n=ze.provides=Object.create(r)),n[e]=t}}function Ht(e,t,n=!1){const r=ze||Xe;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&we(t)?t.call(r.proxy):t}}const fs={};function Nt(e,t,n){return Du(e,t,n)}function Du(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=De){const a=ze;let l,c=!1,u=!1;if(Ge(e)?(l=()=>e.value,c=Is(e)):Qn(e)?(l=()=>e,r=!0):ge(e)?(u=!0,c=e.some(A=>Qn(A)||Is(A)),l=()=>e.map(A=>{if(Ge(A))return A.value;if(Qn(A))return Cn(A);if(we(A))return un(A,a,2)})):we(e)?t?l=()=>un(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return f&&f(),Mt(e,a,3,[h])}:l=Lt,t&&r){const A=l;l=()=>Cn(A())}let f,h=A=>{f=_.onStop=()=>{un(A,a,4)}},p;if(jr)if(h=Lt,t?n&&Mt(t,a,3,[l(),u?[]:void 0,h]):l(),o==="sync"){const A=ep();p=A.__watcherHandles||(A.__watcherHandles=[])}else return Lt;let w=u?new Array(e.length).fill(fs):fs;const b=()=>{if(!!_.active)if(t){const A=_.run();(r||c||(u?A.some((y,C)=>Fr(y,w[C])):Fr(A,w)))&&(f&&f(),Mt(t,a,3,[A,w===fs?void 0:u&&w[0]===fs?[]:w,h]),w=A)}else _.run()};b.allowRecurse=!!t;let T;o==="sync"?T=b:o==="post"?T=()=>ut(b,a&&a.suspense):(b.pre=!0,a&&(b.id=a.uid),T=()=>Wi(b));const _=new Ri(l,T);t?n?b():w=_.run():o==="post"?ut(_.run.bind(_),a&&a.suspense):_.run();const S=()=>{_.stop(),a&&a.scope&&Oi(a.scope.effects,_)};return p&&p.push(S),S}function dm(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?Fu(r,e):()=>r[e]:e.bind(r,r);let s;we(t)?s=t:(s=t.handler,n=t);const i=ze;Gn(this);const a=Du(o,s.bind(r),n);return i?Gn(i):xn(),a}function Fu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{Cn(n,t)});else if(hu(e))for(const n in e)Cn(e[n],t);return e}function zi(e){return we(e)?{setup:e,name:e.name}:e}const Sr=e=>!!e.type.__asyncLoader,qu=e=>e.type.__isKeepAlive;function hm(e,t){Vu(e,"a",t)}function mm(e,t){Vu(e,"da",t)}function Vu(e,t,n=ze){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ys(t,r,n),n){let o=n.parent;for(;o&&o.parent;)qu(o.parent.vnode)&&pm(r,t,n,o),o=o.parent}}function pm(e,t,n,r){const o=Ys(t,e,r,!0);Zs(()=>{Oi(r[t],o)},n)}function Ys(e,t,n=ze,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ur(),Gn(n);const a=Mt(t,n,e,i);return xn(),fr(),a});return r?o.unshift(s):o.push(s),s}}const en=e=>(t,n=ze)=>(!jr||e==="sp")&&Ys(e,(...r)=>t(...r),n),Hu=en("bm"),Bu=en("m"),gm=en("bu"),_m=en("u"),vm=en("bum"),Zs=en("um"),bm=en("sp"),ym=en("rtg"),wm=en("rtc");function Em(e,t=ze){Ys("ec",e,t)}function mt(e,t){const n=Xe;if(n===null)return e;const r=eo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;st(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;aks(t)?!(t.type===Gt||t.type===Se&&!Qu(t.children)):!0)?e:null}const Go=e=>e?nf(e)?eo(e)||e.proxy:Go(e.parent):null,Cr=lt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Go(e.parent),$root:e=>Go(e.root),$emit:e=>e.emit,$options:e=>Yi(e),$forceUpdate:e=>e.f||(e.f=()=>Wi(e.update)),$nextTick:e=>e.n||(e.n=Qi.bind(e.proxy)),$watch:e=>dm.bind(e)}),Eo=(e,t)=>e!==De&&!e.__isScriptSetup&&xe(e,t),Tm={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Eo(r,t))return i[t]=1,r[t];if(o!==De&&xe(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&xe(c,t))return i[t]=3,s[t];if(n!==De&&xe(n,t))return i[t]=4,n[t];Xo&&(i[t]=0)}}const u=Cr[t];let f,h;if(u)return t==="$attrs"&>(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==De&&xe(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,xe(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Eo(o,t)?(o[t]=n,!0):r!==De&&xe(r,t)?(r[t]=n,!0):xe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==De&&xe(e,i)||Eo(t,i)||(a=s[0])&&xe(a,i)||xe(r,i)||xe(Cr,i)||xe(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:xe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Xo=!0;function Sm(e){const t=Yi(e),n=e.proxy,r=e.ctx;Xo=!1,t.beforeCreate&&rl(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:p,updated:w,activated:b,deactivated:T,beforeDestroy:_,beforeUnmount:S,destroyed:A,unmounted:y,render:C,renderTracked:x,renderTriggered:P,errorCaptured:K,serverPrefetch:Y,expose:ee,inheritAttrs:ne,components:R,directives:X,filters:I}=t;if(c&&Cm(c,r,null,e.appContext.config.unwrapInjectedRef),i)for(const G in i){const te=i[G];we(te)&&(r[G]=te.bind(n))}if(o){const G=o.call(n,n);Re(G)&&(e.data=mn(G))}if(Xo=!0,s)for(const G in s){const te=s[G],le=we(te)?te.bind(n,n):we(te.get)?te.get.bind(n,n):Lt,he=!we(te)&&we(te.set)?te.set.bind(n):Lt,ae=Fe({get:le,set:he});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>ae.value,set:me=>ae.value=me})}if(a)for(const G in a)Wu(a[G],r,n,G);if(l){const G=we(l)?l.call(n):l;Reflect.ownKeys(G).forEach(te=>{ws(te,G[te])})}u&&rl(u,e,"c");function Z(G,te){ge(te)?te.forEach(le=>G(le.bind(n))):te&&G(te.bind(n))}if(Z(Hu,f),Z(Bu,h),Z(gm,p),Z(_m,w),Z(hm,b),Z(mm,T),Z(Em,K),Z(wm,x),Z(ym,P),Z(vm,S),Z(Zs,y),Z(bm,Y),ge(ee))if(ee.length){const G=e.exposed||(e.exposed={});ee.forEach(te=>{Object.defineProperty(G,te,{get:()=>n[te],set:le=>n[te]=le})})}else e.exposed||(e.exposed={});C&&e.render===Lt&&(e.render=C),ne!=null&&(e.inheritAttrs=ne),R&&(e.components=R),X&&(e.directives=X)}function Cm(e,t,n=Lt,r=!1){ge(e)&&(e=Jo(e));for(const o in e){const s=e[o];let i;Re(s)?"default"in s?i=Ht(s.from||o,s.default,!0):i=Ht(s.from||o):i=Ht(s),Ge(i)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function rl(e,t,n){Mt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Wu(e,t,n,r){const o=r.includes(".")?Fu(n,r):()=>n[r];if(Be(e)){const s=t[e];we(s)&&Nt(o,s)}else if(we(e))Nt(o,e.bind(n));else if(Re(e))if(ge(e))e.forEach(s=>Wu(s,t,n,r));else{const s=we(e.handler)?e.handler.bind(n):t[e.handler];we(s)&&Nt(o,s,e)}}function Yi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>Ps(l,c,i,!0)),Ps(l,t,i)),Re(t)&&s.set(t,l),l}function Ps(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Ps(e,s,n,!0),o&&o.forEach(i=>Ps(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=Am[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Am={data:sl,props:En,emits:En,methods:En,computed:En,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:En,directives:En,watch:Lm,provide:sl,inject:xm};function sl(e,t){return t?e?function(){return lt(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function xm(e,t){return En(Jo(e),Jo(t))}function Jo(e){if(ge(e)){const t={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[h,p]=Ku(f,t,!0);lt(i,h),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return Re(e)&&r.set(e,Un),Un;if(ge(s))for(let u=0;u-1,p[1]=b<0||w-1||xe(p,"default"))&&a.push(f)}}}const c=[i,a];return Re(e)&&r.set(e,c),c}function ol(e){return e[0]!=="$"}function il(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function al(e,t){return il(e)===il(t)}function ll(e,t){return ge(t)?t.findIndex(n=>al(n,e)):we(t)&&al(t,e)?0:-1}const Yu=e=>e[0]==="_"||e==="$stable",Zi=e=>ge(e)?e.map(Dt):[Dt(e)],$m=(e,t,n)=>{if(t._n)return t;const r=Ve((...o)=>Zi(t(...o)),n);return r._c=!1,r},Zu=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Yu(o))continue;const s=e[o];if(we(s))t[o]=$m(o,s,r);else if(s!=null){const i=Zi(s);t[o]=()=>i}}},Gu=(e,t)=>{const n=Zi(t);e.slots.default=()=>n},Im=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ie(t),$s(t,"_",n)):Zu(t,e.slots={})}else e.slots={},t&&Gu(e,t);$s(e.slots,Js,1)},Om=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=De;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(lt(o,t),!n&&a===1&&delete o._):(s=!t.$stable,Zu(t,o)),i=t}else t&&(Gu(e,t),i={default:1});if(s)for(const a in o)!Yu(a)&&!(a in i)&&delete o[a]};function Xu(){return{app:null,config:{isNativeTag:ph,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Pm=0;function km(e,t){return function(r,o=null){we(r)||(r=Object.assign({},r)),o!=null&&!Re(o)&&(o=null);const s=Xu(),i=new Set;let a=!1;const l=s.app={_uid:Pm++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:tp,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&we(c.install)?(i.add(c),c.install(l,...u)):we(c)&&(i.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,f){if(!a){const h=re(r,o);return h.appContext=s,u&&t?t(h,c):e(h,c,f),a=!0,l._container=c,c.__vue_app__=l,eo(h.component)||h.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l}};return l}}function ti(e,t,n,r,o=!1){if(ge(e)){e.forEach((h,p)=>ti(h,t&&(ge(t)?t[p]:t),n,r,o));return}if(Sr(r)&&!o)return;const s=r.shapeFlag&4?eo(r.component)||r.component.proxy:r.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===De?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(Be(c)?(u[c]=null,xe(f,c)&&(f[c]=null)):Ge(c)&&(c.value=null)),we(l))un(l,a,12,[i,u]);else{const h=Be(l),p=Ge(l);if(h||p){const w=()=>{if(e.f){const b=h?xe(f,l)?f[l]:u[l]:l.value;o?ge(b)&&Oi(b,s):ge(b)?b.includes(s)||b.push(s):h?(u[l]=[s],xe(f,l)&&(f[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else h?(u[l]=i,xe(f,l)&&(f[l]=i)):p&&(l.value=i,e.k&&(u[e.k]=i))};i?(w.id=-1,ut(w,n)):w()}}}const ut=fm;function Rm(e){return Dm(e)}function Dm(e,t){const n=wh();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:p=Lt,insertStaticContent:w}=e,b=(v,d,m,E=null,O=null,V=null,Q=!1,k=null,j=!!d.dynamicChildren)=>{if(v===d)return;v&&!vr(v,d)&&(E=L(v),me(v,O,V,!0),v=null),d.patchFlag===-2&&(j=!1,d.dynamicChildren=null);const{type:U,ref:$,shapeFlag:D}=d;switch(U){case Zr:T(v,d,m,E);break;case Gt:_(v,d,m,E);break;case To:v==null&&S(d,m,E,Q);break;case Se:R(v,d,m,E,O,V,Q,k,j);break;default:D&1?C(v,d,m,E,O,V,Q,k,j):D&6?X(v,d,m,E,O,V,Q,k,j):(D&64||D&128)&&U.process(v,d,m,E,O,V,Q,k,j,J)}$!=null&&O&&ti($,v&&v.ref,V,d||v,!d)},T=(v,d,m,E)=>{if(v==null)r(d.el=a(d.children),m,E);else{const O=d.el=v.el;d.children!==v.children&&c(O,d.children)}},_=(v,d,m,E)=>{v==null?r(d.el=l(d.children||""),m,E):d.el=v.el},S=(v,d,m,E)=>{[v.el,v.anchor]=w(v.children,d,m,E,v.el,v.anchor)},A=({el:v,anchor:d},m,E)=>{let O;for(;v&&v!==d;)O=h(v),r(v,m,E),v=O;r(d,m,E)},y=({el:v,anchor:d})=>{let m;for(;v&&v!==d;)m=h(v),o(v),v=m;o(d)},C=(v,d,m,E,O,V,Q,k,j)=>{Q=Q||d.type==="svg",v==null?x(d,m,E,O,V,Q,k,j):Y(v,d,O,V,Q,k,j)},x=(v,d,m,E,O,V,Q,k)=>{let j,U;const{type:$,props:D,shapeFlag:se,transition:ce,dirs:ve}=v;if(j=v.el=i(v.type,V,D&&D.is,D),se&8?u(j,v.children):se&16&&K(v.children,j,null,E,O,V&&$!=="foreignObject",Q,k),ve&&yn(v,null,E,"created"),D){for(const Ee in D)Ee!=="value"&&!bs(Ee)&&s(j,Ee,null,D[Ee],V,v.children,E,O,W);"value"in D&&s(j,"value",null,D.value),(U=D.onVnodeBeforeMount)&&Pt(U,E,v)}P(j,v,v.scopeId,Q,E),ve&&yn(v,null,E,"beforeMount");const Ae=(!O||O&&!O.pendingBranch)&&ce&&!ce.persisted;Ae&&ce.beforeEnter(j),r(j,d,m),((U=D&&D.onVnodeMounted)||Ae||ve)&&ut(()=>{U&&Pt(U,E,v),Ae&&ce.enter(j),ve&&yn(v,null,E,"mounted")},O)},P=(v,d,m,E,O)=>{if(m&&p(v,m),E)for(let V=0;V{for(let U=j;U{const k=d.el=v.el;let{patchFlag:j,dynamicChildren:U,dirs:$}=d;j|=v.patchFlag&16;const D=v.props||De,se=d.props||De;let ce;m&&wn(m,!1),(ce=se.onVnodeBeforeUpdate)&&Pt(ce,m,d,v),$&&yn(d,v,m,"beforeUpdate"),m&&wn(m,!0);const ve=O&&d.type!=="foreignObject";if(U?ee(v.dynamicChildren,U,k,m,E,ve,V):Q||te(v,d,k,null,m,E,ve,V,!1),j>0){if(j&16)ne(k,d,D,se,m,E,O);else if(j&2&&D.class!==se.class&&s(k,"class",null,se.class,O),j&4&&s(k,"style",D.style,se.style,O),j&8){const Ae=d.dynamicProps;for(let Ee=0;Ee{ce&&Pt(ce,m,d,v),$&&yn(d,v,m,"updated")},E)},ee=(v,d,m,E,O,V,Q)=>{for(let k=0;k{if(m!==E){if(m!==De)for(const k in m)!bs(k)&&!(k in E)&&s(v,k,m[k],null,Q,d.children,O,V,W);for(const k in E){if(bs(k))continue;const j=E[k],U=m[k];j!==U&&k!=="value"&&s(v,k,U,j,Q,d.children,O,V,W)}"value"in E&&s(v,"value",m.value,E.value)}},R=(v,d,m,E,O,V,Q,k,j)=>{const U=d.el=v?v.el:a(""),$=d.anchor=v?v.anchor:a("");let{patchFlag:D,dynamicChildren:se,slotScopeIds:ce}=d;ce&&(k=k?k.concat(ce):ce),v==null?(r(U,m,E),r($,m,E),K(d.children,m,$,O,V,Q,k,j)):D>0&&D&64&&se&&v.dynamicChildren?(ee(v.dynamicChildren,se,m,O,V,Q,k),(d.key!=null||O&&d===O.subTree)&&Gi(v,d,!0)):te(v,d,m,$,O,V,Q,k,j)},X=(v,d,m,E,O,V,Q,k,j)=>{d.slotScopeIds=k,v==null?d.shapeFlag&512?O.ctx.activate(d,m,E,Q,j):I(d,m,E,O,V,Q,j):N(v,d,j)},I=(v,d,m,E,O,V,Q)=>{const k=v.component=Wm(v,E,O);if(qu(v)&&(k.ctx.renderer=J),zm(k),k.asyncDep){if(O&&O.registerDep(k,Z),!v.el){const j=k.subTree=re(Gt);_(null,j,d,m)}return}Z(k,v,d,m,O,V,Q)},N=(v,d,m)=>{const E=d.component=v.component;if(lm(v,d,m))if(E.asyncDep&&!E.asyncResolved){G(E,d,m);return}else E.next=d,nm(E.update),E.update();else d.el=v.el,E.vnode=d},Z=(v,d,m,E,O,V,Q)=>{const k=()=>{if(v.isMounted){let{next:$,bu:D,u:se,parent:ce,vnode:ve}=v,Ae=$,Ee;wn(v,!1),$?($.el=ve.el,G(v,$,Q)):$=ve,D&&ys(D),(Ee=$.props&&$.props.onVnodeBeforeUpdate)&&Pt(Ee,ce,$,ve),wn(v,!0);const qe=wo(v),bt=v.subTree;v.subTree=qe,b(bt,qe,f(bt.el),L(bt),v,O,V),$.el=qe.el,Ae===null&&cm(v,qe.el),se&&ut(se,O),(Ee=$.props&&$.props.onVnodeUpdated)&&ut(()=>Pt(Ee,ce,$,ve),O)}else{let $;const{el:D,props:se}=d,{bm:ce,m:ve,parent:Ae}=v,Ee=Sr(d);if(wn(v,!1),ce&&ys(ce),!Ee&&($=se&&se.onVnodeBeforeMount)&&Pt($,Ae,d),wn(v,!0),D&&ie){const qe=()=>{v.subTree=wo(v),ie(D,v.subTree,v,O,null)};Ee?d.type.__asyncLoader().then(()=>!v.isUnmounted&&qe()):qe()}else{const qe=v.subTree=wo(v);b(null,qe,m,E,v,O,V),d.el=qe.el}if(ve&&ut(ve,O),!Ee&&($=se&&se.onVnodeMounted)){const qe=d;ut(()=>Pt($,Ae,qe),O)}(d.shapeFlag&256||Ae&&Sr(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&v.a&&ut(v.a,O),v.isMounted=!0,d=m=E=null}},j=v.effect=new Ri(k,()=>Wi(U),v.scope),U=v.update=()=>j.run();U.id=v.uid,wn(v,!0),U()},G=(v,d,m)=>{d.component=v;const E=v.vnode.props;v.vnode=d,v.next=null,Nm(v,d.props,E,m),Om(v,d.children,m),ur(),el(),fr()},te=(v,d,m,E,O,V,Q,k,j=!1)=>{const U=v&&v.children,$=v?v.shapeFlag:0,D=d.children,{patchFlag:se,shapeFlag:ce}=d;if(se>0){if(se&128){he(U,D,m,E,O,V,Q,k,j);return}else if(se&256){le(U,D,m,E,O,V,Q,k,j);return}}ce&8?($&16&&W(U,O,V),D!==U&&u(m,D)):$&16?ce&16?he(U,D,m,E,O,V,Q,k,j):W(U,O,V,!0):($&8&&u(m,""),ce&16&&K(D,m,E,O,V,Q,k,j))},le=(v,d,m,E,O,V,Q,k,j)=>{v=v||Un,d=d||Un;const U=v.length,$=d.length,D=Math.min(U,$);let se;for(se=0;se$?W(v,O,V,!0,!1,D):K(d,m,E,O,V,Q,k,j,D)},he=(v,d,m,E,O,V,Q,k,j)=>{let U=0;const $=d.length;let D=v.length-1,se=$-1;for(;U<=D&&U<=se;){const ce=v[U],ve=d[U]=j?an(d[U]):Dt(d[U]);if(vr(ce,ve))b(ce,ve,m,null,O,V,Q,k,j);else break;U++}for(;U<=D&&U<=se;){const ce=v[D],ve=d[se]=j?an(d[se]):Dt(d[se]);if(vr(ce,ve))b(ce,ve,m,null,O,V,Q,k,j);else break;D--,se--}if(U>D){if(U<=se){const ce=se+1,ve=ce<$?d[ce].el:E;for(;U<=se;)b(null,d[U]=j?an(d[U]):Dt(d[U]),m,ve,O,V,Q,k,j),U++}}else if(U>se)for(;U<=D;)me(v[U],O,V,!0),U++;else{const ce=U,ve=U,Ae=new Map;for(U=ve;U<=se;U++){const ht=d[U]=j?an(d[U]):Dt(d[U]);ht.key!=null&&Ae.set(ht.key,U)}let Ee,qe=0;const bt=se-ve+1;let Rn=!1,Ba=0;const _r=new Array(bt);for(U=0;U=bt){me(ht,O,V,!0);continue}let Ot;if(ht.key!=null)Ot=Ae.get(ht.key);else for(Ee=ve;Ee<=se;Ee++)if(_r[Ee-ve]===0&&vr(ht,d[Ee])){Ot=Ee;break}Ot===void 0?me(ht,O,V,!0):(_r[Ot-ve]=U+1,Ot>=Ba?Ba=Ot:Rn=!0,b(ht,d[Ot],m,null,O,V,Q,k,j),qe++)}const Ua=Rn?Fm(_r):Un;for(Ee=Ua.length-1,U=bt-1;U>=0;U--){const ht=ve+U,Ot=d[ht],ja=ht+1<$?d[ht+1].el:E;_r[U]===0?b(null,Ot,m,ja,O,V,Q,k,j):Rn&&(Ee<0||U!==Ua[Ee]?ae(Ot,m,ja,2):Ee--)}}},ae=(v,d,m,E,O=null)=>{const{el:V,type:Q,transition:k,children:j,shapeFlag:U}=v;if(U&6){ae(v.component.subTree,d,m,E);return}if(U&128){v.suspense.move(d,m,E);return}if(U&64){Q.move(v,d,m,J);return}if(Q===Se){r(V,d,m);for(let D=0;Dk.enter(V),O);else{const{leave:D,delayLeave:se,afterLeave:ce}=k,ve=()=>r(V,d,m),Ae=()=>{D(V,()=>{ve(),ce&&ce()})};se?se(V,ve,Ae):Ae()}else r(V,d,m)},me=(v,d,m,E=!1,O=!1)=>{const{type:V,props:Q,ref:k,children:j,dynamicChildren:U,shapeFlag:$,patchFlag:D,dirs:se}=v;if(k!=null&&ti(k,null,m,v,!0),$&256){d.ctx.deactivate(v);return}const ce=$&1&&se,ve=!Sr(v);let Ae;if(ve&&(Ae=Q&&Q.onVnodeBeforeUnmount)&&Pt(Ae,d,v),$&6)H(v.component,m,E);else{if($&128){v.suspense.unmount(m,E);return}ce&&yn(v,null,d,"beforeUnmount"),$&64?v.type.remove(v,d,m,O,J,E):U&&(V!==Se||D>0&&D&64)?W(U,d,m,!1,!0):(V===Se&&D&384||!O&&$&16)&&W(j,d,m),E&&Te(v)}(ve&&(Ae=Q&&Q.onVnodeUnmounted)||ce)&&ut(()=>{Ae&&Pt(Ae,d,v),ce&&yn(v,null,d,"unmounted")},m)},Te=v=>{const{type:d,el:m,anchor:E,transition:O}=v;if(d===Se){pe(m,E);return}if(d===To){y(v);return}const V=()=>{o(m),O&&!O.persisted&&O.afterLeave&&O.afterLeave()};if(v.shapeFlag&1&&O&&!O.persisted){const{leave:Q,delayLeave:k}=O,j=()=>Q(m,V);k?k(v.el,V,j):j()}else V()},pe=(v,d)=>{let m;for(;v!==d;)m=h(v),o(v),v=m;o(d)},H=(v,d,m)=>{const{bum:E,scope:O,update:V,subTree:Q,um:k}=v;E&&ys(E),O.stop(),V&&(V.active=!1,me(Q,v,d,m)),k&&ut(k,d),ut(()=>{v.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},W=(v,d,m,E=!1,O=!1,V=0)=>{for(let Q=V;Qv.shapeFlag&6?L(v.component.subTree):v.shapeFlag&128?v.suspense.next():h(v.anchor||v.el),q=(v,d,m)=>{v==null?d._vnode&&me(d._vnode,null,null,!0):b(d._vnode||null,v,d,null,null,null,m),el(),Pu(),d._vnode=v},J={p:b,um:me,m:ae,r:Te,mt:I,mc:K,pc:te,pbc:ee,n:L,o:e};let ue,ie;return t&&([ue,ie]=t(J)),{render:q,hydrate:ue,createApp:km(q,ue)}}function wn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Gi(e,t,n=!1){const r=e.children,o=t.children;if(ge(r)&&ge(o))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const qm=e=>e.__isTeleport,Ar=e=>e&&(e.disabled||e.disabled===""),cl=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ni=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},Vm={__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:h,o:{insert:p,querySelector:w,createText:b,createComment:T}}=c,_=Ar(t.props);let{shapeFlag:S,children:A,dynamicChildren:y}=t;if(e==null){const C=t.el=b(""),x=t.anchor=b("");p(C,n,r),p(x,n,r);const P=t.target=ni(t.props,w),K=t.targetAnchor=b("");P&&(p(K,P),i=i||cl(P));const Y=(ee,ne)=>{S&16&&u(A,ee,ne,o,s,i,a,l)};_?Y(n,x):P&&Y(P,K)}else{t.el=e.el;const C=t.anchor=e.anchor,x=t.target=e.target,P=t.targetAnchor=e.targetAnchor,K=Ar(e.props),Y=K?n:x,ee=K?C:P;if(i=i||cl(x),y?(h(e.dynamicChildren,y,Y,o,s,i,a),Gi(e,t,!0)):l||f(e,t,Y,ee,o,s,i,a,!1),_)K||ds(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ne=t.target=ni(t.props,w);ne&&ds(t,ne,null,c,0)}else K&&ds(t,x,P,c,1)}Ju(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:f,props:h}=e;if(f&&s(u),(i||!Ar(h))&&(s(c),a&16))for(let p=0;p0?xt||Un:null,Bm(),Ur>0&&xt&&xt.push(e),e}function F(e,t,n,r,o,s){return ef(g(e,t,n,r,o,s,!0))}function be(e,t,n,r,o){return ef(re(e,t,n,r,o,!0))}function ks(e){return e?e.__v_isVNode===!0:!1}function vr(e,t){return e.type===t.type&&e.key===t.key}const Js="__vInternal",tf=({key:e})=>e!=null?e:null,Es=({ref:e,ref_key:t,ref_for:n})=>e!=null?Be(e)||Ge(e)||we(e)?{i:Xe,r:e,k:t,f:!!n}:e:null;function g(e,t=null,n=null,r=0,o=null,s=e===Se?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&tf(t),ref:t&&Es(t),scopeId:Ks,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Xe};return a?(Xi(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Be(n)?8:16),Ur>0&&!i&&xt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&xt.push(l),l}const re=Um;function Um(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===Uu)&&(e=Gt),ks(e)){const a=Zn(e,t,!0);return n&&Xi(a,n),Ur>0&&!s&&xt&&(a.shapeFlag&6?xt[xt.indexOf(e)]=a:xt.push(a)),a.patchFlag|=-2,a}if(Xm(e)&&(e=e.__vccOpts),t){t=yt(t);let{class:a,style:l}=t;a&&!Be(a)&&(t.class=Me(a)),Re(l)&&(Hi(l)&&!ge(l)&&(l=lt({},l)),t.style=ft(l))}const i=Be(e)?1:um(e)?128:qm(e)?64:Re(e)?4:we(e)?2:0;return g(e,t,n,r,o,i,s,!0)}function yt(e){return e?Hi(e)||Js in e?lt({},e):e:null}function Zn(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,a=t?pt(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&tf(a),ref:t&&t.ref?n&&o?ge(o)?o.concat(Es(t)):[o,Es(t)]:Es(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zn(e.ssContent),ssFallback:e.ssFallback&&Zn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function $e(e=" ",t=0){return re(Zr,null,e,t)}function ye(e="",t=!1){return t?(M(),be(Gt,null,e)):re(Gt,null,e)}function Dt(e){return e==null||typeof e=="boolean"?re(Gt):ge(e)?re(Se,null,e.slice()):typeof e=="object"?an(e):re(Zr,null,String(e))}function an(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zn(e)}function Xi(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Xi(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Js in t)?t._ctx=Xe:o===3&&Xe&&(Xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:Xe},n=32):(t=String(t),r&64?(n=16,t=[$e(t)]):n=8);e.children=t,e.shapeFlag|=n}function pt(...e){const t={};for(let n=0;nze||Xe,Gn=e=>{ze=e,e.scope.on()},xn=()=>{ze&&ze.scope.off(),ze=null};function nf(e){return e.vnode.shapeFlag&4}let jr=!1;function zm(e,t=!1){jr=t;const{props:n,children:r}=e.vnode,o=nf(e);Mm(e,n,o,t),Im(e,r);const s=o?Km(e,t):void 0;return jr=!1,s}function Km(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Bi(new Proxy(e.ctx,Tm));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Zm(e):null;Gn(e),ur();const s=un(r,e,0,[e.props,o]);if(fr(),xn(),fu(s)){if(s.then(xn,xn),t)return s.then(i=>{fl(e,i,t)}).catch(i=>{Ws(i,e,0)});e.asyncDep=s}else fl(e,s,t)}else rf(e,t)}function fl(e,t,n){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=Nu(t)),rf(e,n)}let dl;function rf(e,t,n){const r=e.type;if(!e.render){if(!t&&dl&&!r.render){const o=r.template||Yi(e).template;if(o){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=lt(lt({isCustomElement:s,delimiters:a},i),l);r.render=dl(o,c)}}e.render=r.render||Lt}Gn(e),ur(),Sm(e),fr(),xn()}function Ym(e){return new Proxy(e.attrs,{get(t,n){return gt(e,"get","$attrs"),t[n]}})}function Zm(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Ym(e))},slots:e.slots,emit:e.emit,expose:t}}function eo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Nu(Bi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cr)return Cr[n](e)},has(t,n){return n in t||n in Cr}}))}function Gm(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function Xm(e){return we(e)&&"__vccOpts"in e}const Fe=(e,t)=>Jh(e,t,jr);function pn(e,t,n){const r=arguments.length;return r===2?Re(t)&&!ge(t)?ks(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ks(n)&&(n=[n]),re(e,t,n))}const Jm=Symbol(""),ep=()=>Ht(Jm),tp="3.2.45",np="http://www.w3.org/2000/svg",Sn=typeof document<"u"?document:null,hl=Sn&&Sn.createElement("template"),rp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Sn.createElementNS(np,e):Sn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Sn.createTextNode(e),createComment:e=>Sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{hl.innerHTML=r?`${e}`:e;const a=hl.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function sp(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function op(e,t,n){const r=e.style,o=Be(n);if(n&&!o){for(const s in n)ri(r,s,n[s]);if(t&&!Be(t))for(const s in t)n[s]==null&&ri(r,s,"")}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const ml=/\s*!important$/;function ri(e,t,n){if(ge(n))n.forEach(r=>ri(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=ip(e,t);ml.test(n)?e.setProperty(cr(r),n.replace(ml,""),"important"):e[r]=n}}const pl=["Webkit","Moz","ms"],So={};function ip(e,t){const n=So[t];if(n)return n;let r=Ut(t);if(r!=="filter"&&r in e)return So[t]=r;r=js(r);for(let o=0;oCo||(dp.then(()=>Co=0),Co=Date.now());function mp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mt(pp(r,n.value),t,5,[r])};return n.value=e,n.attached=hp(),n}function pp(e,t){if(ge(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const vl=/^on[a-z]/,gp=(e,t,n,r,o=!1,s,i,a,l)=>{t==="class"?sp(e,r,o):t==="style"?op(e,n,r):Bs(t)?Ii(t)||up(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):_p(e,t,r,o))?lp(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),ap(e,t,r,o))};function _p(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&vl.test(t)&&we(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||vl.test(t)&&Be(n)?!1:t in e}const dn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>ys(t,n):t};function vp(e){e.target.composing=!0}function bl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bp={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=dn(o);const s=r||o.props&&o.props.type==="number";Kt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=qr(a)),e._assign(a)}),n&&Kt(e,"change",()=>{e.value=e.value.trim()}),t||(Kt(e,"compositionstart",vp),Kt(e,"compositionend",bl),Kt(e,"change",bl))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=dn(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&qr(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},yp={deep:!0,created(e,t,n){e._assign=dn(n),Kt(e,"change",()=>{const r=e._modelValue,o=Xn(e),s=e.checked,i=e._assign;if(ge(r)){const a=$i(r,o),l=a!==-1;if(s&&!l)i(r.concat(o));else if(!s&&l){const c=[...r];c.splice(a,1),i(c)}}else if(lr(r)){const a=new Set(r);s?a.add(o):a.delete(o),i(a)}else i(sf(e,s))})},mounted:yl,beforeUpdate(e,t,n){e._assign=dn(n),yl(e,t,n)}};function yl(e,{value:t,oldValue:n},r){e._modelValue=t,ge(t)?e.checked=$i(t,r.props.value)>-1:lr(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Mn(t,sf(e,!0)))}const Ao={created(e,{value:t},n){e.checked=Mn(t,n.props.value),e._assign=dn(n),Kt(e,"change",()=>{e._assign(Xn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=dn(r),t!==n&&(e.checked=Mn(t,r.props.value))}},Lr={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=lr(t);Kt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?qr(Xn(i)):Xn(i));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=dn(r)},mounted(e,{value:t}){wl(e,t)},beforeUpdate(e,t,n){e._assign=dn(n)},updated(e,{value:t}){wl(e,t)}};function wl(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!lr(t))){for(let r=0,o=e.options.length;r-1:s.selected=t.has(i);else if(Mn(Xn(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xn(e){return"_value"in e?e._value:e.value}function sf(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const wp=["ctrl","shift","alt","meta"],Ep={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>wp.some(n=>e[`${n}Key`]&&!t.includes(n))},Rs=(e,t)=>(n,...r)=>{for(let o=0;o{br(e,!1)}):br(e,t))},beforeUnmount(e,{value:t}){br(e,t)}};function br(e,t){e.style.display=t?e._vod:"none"}const Tp=lt({patchProp:gp},rp);let El;function Sp(){return El||(El=Rm(Tp))}const Cp=(...e)=>{const t=Sp().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=Ap(r);if(!o)return;const s=t._component;!we(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function Ap(e){return Be(e)?document.querySelector(e):e}/** +var sh=Object.defineProperty;var oh=(e,t,n)=>t in e?sh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ih=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var bn=(e,t,n)=>(oh(e,typeof t!="symbol"?t+"":t,n),n);var S6=ih((A6,os)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const i of s.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerpolicy&&(s.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?s.credentials="include":o.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();var et=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function lu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ah(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var cu={exports:{}};(function(e,t){(function(){function n(){var r=window,o=document;if("scrollBehavior"in o.documentElement.style&&r.__forceSmoothScrollPolyfill__!==!0)return;var s=r.HTMLElement||r.Element,i=468,a={scroll:r.scroll||r.scrollTo,scrollBy:r.scrollBy,elementScroll:s.prototype.scroll||f,scrollIntoView:s.prototype.scrollIntoView},l=r.performance&&r.performance.now?r.performance.now.bind(r.performance):Date.now;function c(y){var C=["MSIE ","Trident/","Edge/"];return new RegExp(C.join("|")).test(y)}var u=c(r.navigator.userAgent)?1:0;function f(y,C){this.scrollLeft=y,this.scrollTop=C}function h(y){return .5*(1-Math.cos(Math.PI*y))}function p(y){if(y===null||typeof y!="object"||y.behavior===void 0||y.behavior==="auto"||y.behavior==="instant")return!0;if(typeof y=="object"&&y.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+y.behavior+" is not a valid value for enumeration ScrollBehavior.")}function w(y,C){if(C==="Y")return y.clientHeight+u1?1:Y,x=h(Y),O=y.startX+(y.x-y.startX)*x,K=y.startY+(y.y-y.startY)*x,y.method.call(y.scrollable,O,K),(O!==y.x||K!==y.y)&&r.requestAnimationFrame(S.bind(r,y))}function A(y,C,x){var O,K,Y,ee,ne=l();y===o.body?(O=r,K=r.scrollX||r.pageXOffset,Y=r.scrollY||r.pageYOffset,ee=a.scroll):(O=y,K=y.scrollLeft,Y=y.scrollTop,ee=f),S({scrollable:O,method:ee,startTime:ne,startX:K,startY:Y,x:C,y:x})}r.scroll=r.scrollTo=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){a.scroll.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:r.scrollY||r.pageYOffset);return}A.call(r,o.body,arguments[0].left!==void 0?~~arguments[0].left:r.scrollX||r.pageXOffset,arguments[0].top!==void 0?~~arguments[0].top:r.scrollY||r.pageYOffset)}},r.scrollBy=function(){if(arguments[0]!==void 0){if(p(arguments[0])){a.scrollBy.call(r,arguments[0].left!==void 0?arguments[0].left:typeof arguments[0]!="object"?arguments[0]:0,arguments[0].top!==void 0?arguments[0].top:arguments[1]!==void 0?arguments[1]:0);return}A.call(r,o.body,~~arguments[0].left+(r.scrollX||r.pageXOffset),~~arguments[0].top+(r.scrollY||r.pageYOffset))}},s.prototype.scroll=s.prototype.scrollTo=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left:typeof arguments[0]!="object"?~~arguments[0]:this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top:arguments[1]!==void 0?~~arguments[1]:this.scrollTop);return}var y=arguments[0].left,C=arguments[0].top;A.call(this,this,typeof y>"u"?this.scrollLeft:~~y,typeof C>"u"?this.scrollTop:~~C)}},s.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(p(arguments[0])===!0){a.elementScroll.call(this,arguments[0].left!==void 0?~~arguments[0].left+this.scrollLeft:~~arguments[0]+this.scrollLeft,arguments[0].top!==void 0?~~arguments[0].top+this.scrollTop:~~arguments[1]+this.scrollTop);return}this.scroll({left:~~arguments[0].left+this.scrollLeft,top:~~arguments[0].top+this.scrollTop,behavior:arguments[0].behavior})}},s.prototype.scrollIntoView=function(){if(p(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}var y=_(this),C=y.getBoundingClientRect(),x=this.getBoundingClientRect();y!==o.body?(A.call(this,y,y.scrollLeft+x.left-C.left,y.scrollTop+x.top-C.top),r.getComputedStyle(y).position!=="fixed"&&r.scrollBy({left:C.left,top:C.top,behavior:"smooth"})):r.scrollBy({left:x.left,top:x.top,behavior:"smooth"})}}e.exports={polyfill:n}})()})(cu);const lh=cu.exports;function $i(e,t){const n=Object.create(null),r=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}function ft(e){if(ge(e)){const t={};for(let n=0;n{if(n){const r=n.split(uh);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Me(e){let t="";if(Be(e))t=e;else if(ge(e))for(let n=0;nMn(n,t))}const B=e=>Be(e)?e:e==null?"":ge(e)||Re(e)&&(e.toString===hu||!we(e.toString))?JSON.stringify(e,fu,2):String(e),fu=(e,t)=>t&&t.__v_isRef?fu(e,t.value):jn(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o])=>(n[`${r} =>`]=o,n),{})}:lr(t)?{[`Set(${t.size})`]:[...t.values()]}:Re(t)&&!ge(t)&&!mu(t)?String(t):t,De={},Un=[],Lt=()=>{},gh=()=>!1,_h=/^on[^a-z]/,Bs=e=>_h.test(e),Pi=e=>e.startsWith("onUpdate:"),lt=Object.assign,Oi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},vh=Object.prototype.hasOwnProperty,xe=(e,t)=>vh.call(e,t),ge=Array.isArray,jn=e=>Yr(e)==="[object Map]",lr=e=>Yr(e)==="[object Set]",Wa=e=>Yr(e)==="[object Date]",we=e=>typeof e=="function",Be=e=>typeof e=="string",Dr=e=>typeof e=="symbol",Re=e=>e!==null&&typeof e=="object",du=e=>Re(e)&&we(e.then)&&we(e.catch),hu=Object.prototype.toString,Yr=e=>hu.call(e),bh=e=>Yr(e).slice(8,-1),mu=e=>Yr(e)==="[object Object]",ki=e=>Be(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bs=$i(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Us=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},yh=/-(\w)/g,Ut=Us(e=>e.replace(yh,(t,n)=>n?n.toUpperCase():"")),wh=/\B([A-Z])/g,cr=Us(e=>e.replace(wh,"-$1").toLowerCase()),js=Us(e=>e.charAt(0).toUpperCase()+e.slice(1)),yo=Us(e=>e?`on${js(e)}`:""),Fr=(e,t)=>!Object.is(e,t),ys=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},qr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let za;const Eh=()=>za||(za=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Rt;class pu{constructor(t=!1){this.detached=t,this.active=!0,this.effects=[],this.cleanups=[],this.parent=Rt,!t&&Rt&&(this.index=(Rt.scopes||(Rt.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Rt;try{return Rt=this,t()}finally{Rt=n}}}on(){Rt=this}off(){Rt=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},gu=e=>(e.w&fn)>0,_u=e=>(e.n&fn)>0,Ch=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{(u==="length"||u>=l)&&a.push(c)})}else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ge(e)?ki(n)&&a.push(i.get("length")):(a.push(i.get(An)),jn(e)&&a.push(i.get(Ko)));break;case"delete":ge(e)||(a.push(i.get(An)),jn(e)&&a.push(i.get(Ko)));break;case"set":jn(e)&&a.push(i.get(An));break}if(a.length===1)a[0]&&Yo(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);Yo(Ri(l))}}function Yo(e,t){const n=ge(e)?e:[...e];for(const r of n)r.computed&&Ya(r);for(const r of n)r.computed||Ya(r)}function Ya(e,t){(e!==Ct||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const xh=$i("__proto__,__v_isRef,__isVue"),yu=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Dr)),Lh=Fi(),Mh=Fi(!1,!0),Nh=Fi(!0),Za=$h();function $h(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ie(this);for(let s=0,i=this.length;s{e[t]=function(...n){ur();const r=Ie(this)[t].apply(this,n);return fr(),r}}),e}function Fi(e=!1,t=!1){return function(r,o,s){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&s===(e?t?zh:Cu:t?Su:Tu).get(r))return r;const i=ge(r);if(!e&&i&&xe(Za,o))return Reflect.get(Za,o,s);const a=Reflect.get(r,o,s);return(Dr(o)?yu.has(o):xh(o))||(e||gt(r,"get",o),t)?a:Ge(a)?i&&ki(o)?a:a.value:Re(a)?e?Au(a):mn(a):a}}const Ih=wu(),Ph=wu(!0);function wu(e=!1){return function(n,r,o,s){let i=n[r];if(Yn(i)&&Ge(i)&&!Ge(o))return!1;if(!e&&(!Is(o)&&!Yn(o)&&(i=Ie(i),o=Ie(o)),!ge(n)&&Ge(i)&&!Ge(o)))return i.value=o,!0;const a=ge(n)&&ki(r)?Number(r)e,Qs=e=>Reflect.getPrototypeOf(e);function is(e,t,n=!1,r=!1){e=e.__v_raw;const o=Ie(e),s=Ie(t);n||(t!==s&>(o,"get",t),gt(o,"get",s));const{has:i}=Qs(o),a=r?qi:n?ji:Vr;if(i.call(o,t))return a(e.get(t));if(i.call(o,s))return a(e.get(s));e!==o&&e.get(t)}function as(e,t=!1){const n=this.__v_raw,r=Ie(n),o=Ie(e);return t||(e!==o&>(r,"has",e),gt(r,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function ls(e,t=!1){return e=e.__v_raw,!t&>(Ie(e),"iterate",An),Reflect.get(e,"size",e)}function Ga(e){e=Ie(e);const t=Ie(this);return Qs(t).has.call(t,e)||(t.add(e),Zt(t,"add",e,e)),this}function Xa(e,t){t=Ie(t);const n=Ie(this),{has:r,get:o}=Qs(n);let s=r.call(n,e);s||(e=Ie(e),s=r.call(n,e));const i=o.call(n,e);return n.set(e,t),s?Fr(t,i)&&Zt(n,"set",e,t):Zt(n,"add",e,t),this}function Ja(e){const t=Ie(this),{has:n,get:r}=Qs(t);let o=n.call(t,e);o||(e=Ie(e),o=n.call(t,e)),r&&r.call(t,e);const s=t.delete(e);return o&&Zt(t,"delete",e,void 0),s}function el(){const e=Ie(this),t=e.size!==0,n=e.clear();return t&&Zt(e,"clear",void 0,void 0),n}function cs(e,t){return function(r,o){const s=this,i=s.__v_raw,a=Ie(i),l=t?qi:e?ji:Vr;return!e&>(a,"iterate",An),i.forEach((c,u)=>r.call(o,l(c),l(u),s))}}function us(e,t,n){return function(...r){const o=this.__v_raw,s=Ie(o),i=jn(s),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=o[e](...r),u=n?qi:t?ji:Vr;return!t&>(s,"iterate",l?Ko:An),{next(){const{value:f,done:h}=c.next();return h?{value:f,done:h}:{value:a?[u(f[0]),u(f[1])]:u(f),done:h}},[Symbol.iterator](){return this}}}}function nn(e){return function(...t){return e==="delete"?!1:this}}function qh(){const e={get(s){return is(this,s)},get size(){return ls(this)},has:as,add:Ga,set:Xa,delete:Ja,clear:el,forEach:cs(!1,!1)},t={get(s){return is(this,s,!1,!0)},get size(){return ls(this)},has:as,add:Ga,set:Xa,delete:Ja,clear:el,forEach:cs(!1,!0)},n={get(s){return is(this,s,!0)},get size(){return ls(this,!0)},has(s){return as.call(this,s,!0)},add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear"),forEach:cs(!0,!1)},r={get(s){return is(this,s,!0,!0)},get size(){return ls(this,!0)},has(s){return as.call(this,s,!0)},add:nn("add"),set:nn("set"),delete:nn("delete"),clear:nn("clear"),forEach:cs(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(s=>{e[s]=us(s,!1,!1),n[s]=us(s,!0,!1),t[s]=us(s,!1,!0),r[s]=us(s,!0,!0)}),[e,n,t,r]}const[Vh,Hh,Bh,Uh]=qh();function Vi(e,t){const n=t?e?Uh:Bh:e?Hh:Vh;return(r,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(xe(n,o)&&o in r?n:r,o,s)}const jh={get:Vi(!1,!1)},Qh={get:Vi(!1,!0)},Wh={get:Vi(!0,!1)},Tu=new WeakMap,Su=new WeakMap,Cu=new WeakMap,zh=new WeakMap;function Kh(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Yh(e){return e.__v_skip||!Object.isExtensible(e)?0:Kh(bh(e))}function mn(e){return Yn(e)?e:Hi(e,!1,Eu,jh,Tu)}function Zh(e){return Hi(e,!1,Fh,Qh,Su)}function Au(e){return Hi(e,!0,Dh,Wh,Cu)}function Hi(e,t,n,r,o){if(!Re(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=o.get(e);if(s)return s;const i=Yh(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return o.set(e,a),a}function Qn(e){return Yn(e)?Qn(e.__v_raw):!!(e&&e.__v_isReactive)}function Yn(e){return!!(e&&e.__v_isReadonly)}function Is(e){return!!(e&&e.__v_isShallow)}function Bi(e){return Qn(e)||Yn(e)}function Ie(e){const t=e&&e.__v_raw;return t?Ie(t):e}function Ui(e){return $s(e,"__v_skip",!0),e}const Vr=e=>Re(e)?mn(e):e,ji=e=>Re(e)?Au(e):e;function xu(e){cn&&Ct&&(e=Ie(e),bu(e.dep||(e.dep=Ri())))}function Lu(e,t){e=Ie(e),e.dep&&Yo(e.dep)}function Ge(e){return!!(e&&e.__v_isRef===!0)}function At(e){return Nu(e,!1)}function Mu(e){return Nu(e,!0)}function Nu(e,t){return Ge(e)?e:new Gh(e,t)}class Gh{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ie(t),this._value=n?t:Vr(t)}get value(){return xu(this),this._value}set value(t){const n=this.__v_isShallow||Is(t)||Yn(t);t=n?t:Ie(t),Fr(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Vr(t),Lu(this))}}function Wn(e){return Ge(e)?e.value:e}const Xh={get:(e,t,n)=>Wn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Ge(o)&&!Ge(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function $u(e){return Qn(e)?e:new Proxy(e,Xh)}var Iu;class Jh{constructor(t,n,r,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[Iu]=!1,this._dirty=!0,this.effect=new Di(t,()=>{this._dirty||(this._dirty=!0,Lu(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=r}get value(){const t=Ie(this);return xu(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}Iu="__v_isReadonly";function em(e,t,n=!1){let r,o;const s=we(e);return s?(r=e,o=Lt):(r=e.get,o=e.set),new Jh(r,o,s||!o,n)}function un(e,t,n,r){let o;try{o=r?e(...r):e()}catch(s){Ws(s,t,n)}return o}function Mt(e,t,n,r){if(we(e)){const s=un(e,t,n,r);return s&&du(s)&&s.catch(i=>{Ws(i,t,n)}),s}const o=[];for(let s=0;s>>1;Br(Je[r])qt&&Je.splice(t,1)}function sm(e){ge(e)?zn.push(...e):(!zt||!zt.includes(e,e.allowRecurse?Tn+1:Tn))&&zn.push(e),Ou()}function tl(e,t=Hr?qt+1:0){for(;tBr(n)-Br(r)),Tn=0;Tne.id==null?1/0:e.id,om=(e,t)=>{const n=Br(e)-Br(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Ru(e){Zo=!1,Hr=!0,Je.sort(om);const t=Lt;try{for(qt=0;qtBe(p)?p.trim():p)),f&&(o=n.map(qr))}let a,l=r[a=yo(t)]||r[a=yo(Ut(t))];!l&&s&&(l=r[a=yo(cr(t))]),l&&Mt(l,e,6,o);const c=r[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Mt(c,e,6,o)}}function Du(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(o!==void 0)return o;const s=e.emits;let i={},a=!1;if(!we(e)){const l=c=>{const u=Du(c,t,!0);u&&(a=!0,lt(i,u))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!s&&!a?(Re(e)&&r.set(e,null),null):(ge(s)?s.forEach(l=>i[l]=null):lt(i,s),Re(e)&&r.set(e,i),i)}function zs(e,t){return!e||!Bs(t)?!1:(t=t.slice(2).replace(/Once$/,""),xe(e,t[0].toLowerCase()+t.slice(1))||xe(e,cr(t))||xe(e,t))}let Xe=null,Ks=null;function Ps(e){const t=Xe;return Xe=e,Ks=e&&e.type.__scopeId||null,t}function tt(e){Ks=e}function nt(){Ks=null}function Ve(e,t=Xe,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&fl(-1);const s=Ps(t);let i;try{i=e(...o)}finally{Ps(s),r._d&&fl(1)}return i};return r._n=!0,r._c=!0,r._d=!0,r}function wo(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:s,propsOptions:[i],slots:a,attrs:l,emit:c,render:u,renderCache:f,data:h,setupState:p,ctx:w,inheritAttrs:b}=e;let T,_;const S=Ps(e);try{if(n.shapeFlag&4){const y=o||r;T=Dt(u.call(y,y,f,s,p,h,w)),_=l}else{const y=t;T=Dt(y.length>1?y(s,{attrs:l,slots:a,emit:c}):y(s,null)),_=t.props?l:am(l)}}catch(y){xr.length=0,Ws(y,e,1),T=re(Gt)}let A=T;if(_&&b!==!1){const y=Object.keys(_),{shapeFlag:C}=A;y.length&&C&7&&(i&&y.some(Pi)&&(_=lm(_,i)),A=Zn(A,_))}return n.dirs&&(A=Zn(A),A.dirs=A.dirs?A.dirs.concat(n.dirs):n.dirs),n.transition&&(A.transition=n.transition),T=A,Ps(S),T}const am=e=>{let t;for(const n in e)(n==="class"||n==="style"||Bs(n))&&((t||(t={}))[n]=e[n]);return t},lm=(e,t)=>{const n={};for(const r in e)(!Pi(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function cm(e,t,n){const{props:r,children:o,component:s}=e,{props:i,children:a,patchFlag:l}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?nl(r,i,c):!!i;if(l&8){const u=t.dynamicProps;for(let f=0;fe.__isSuspense;function dm(e,t){t&&t.pendingBranch?ge(e)?t.effects.push(...e):t.effects.push(e):sm(e)}function ws(e,t){if(Ke){let n=Ke.provides;const r=Ke.parent&&Ke.parent.provides;r===n&&(n=Ke.provides=Object.create(r)),n[e]=t}}function Ht(e,t,n=!1){const r=Ke||Xe;if(r){const o=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&we(t)?t.call(r.proxy):t}}const fs={};function Nt(e,t,n){return Fu(e,t,n)}function Fu(e,t,{immediate:n,deep:r,flush:o,onTrack:s,onTrigger:i}=De){const a=Ke;let l,c=!1,u=!1;if(Ge(e)?(l=()=>e.value,c=Is(e)):Qn(e)?(l=()=>e,r=!0):ge(e)?(u=!0,c=e.some(A=>Qn(A)||Is(A)),l=()=>e.map(A=>{if(Ge(A))return A.value;if(Qn(A))return Cn(A);if(we(A))return un(A,a,2)})):we(e)?t?l=()=>un(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return f&&f(),Mt(e,a,3,[h])}:l=Lt,t&&r){const A=l;l=()=>Cn(A())}let f,h=A=>{f=_.onStop=()=>{un(A,a,4)}},p;if(jr)if(h=Lt,t?n&&Mt(t,a,3,[l(),u?[]:void 0,h]):l(),o==="sync"){const A=tp();p=A.__watcherHandles||(A.__watcherHandles=[])}else return Lt;let w=u?new Array(e.length).fill(fs):fs;const b=()=>{if(!!_.active)if(t){const A=_.run();(r||c||(u?A.some((y,C)=>Fr(y,w[C])):Fr(A,w)))&&(f&&f(),Mt(t,a,3,[A,w===fs?void 0:u&&w[0]===fs?[]:w,h]),w=A)}else _.run()};b.allowRecurse=!!t;let T;o==="sync"?T=b:o==="post"?T=()=>ut(b,a&&a.suspense):(b.pre=!0,a&&(b.id=a.uid),T=()=>zi(b));const _=new Di(l,T);t?n?b():w=_.run():o==="post"?ut(_.run.bind(_),a&&a.suspense):_.run();const S=()=>{_.stop(),a&&a.scope&&Oi(a.scope.effects,_)};return p&&p.push(S),S}function hm(e,t,n){const r=this.proxy,o=Be(e)?e.includes(".")?qu(r,e):()=>r[e]:e.bind(r,r);let s;we(t)?s=t:(s=t.handler,n=t);const i=Ke;Gn(this);const a=Fu(o,s.bind(r),n);return i?Gn(i):xn(),a}function qu(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{Cn(n,t)});else if(mu(e))for(const n in e)Cn(e[n],t);return e}function Ki(e){return we(e)?{setup:e,name:e.name}:e}const Sr=e=>!!e.type.__asyncLoader,Vu=e=>e.type.__isKeepAlive;function mm(e,t){Hu(e,"a",t)}function pm(e,t){Hu(e,"da",t)}function Hu(e,t,n=Ke){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(Ys(t,r,n),n){let o=n.parent;for(;o&&o.parent;)Vu(o.parent.vnode)&&gm(r,t,n,o),o=o.parent}}function gm(e,t,n,r){const o=Ys(t,e,r,!0);Zs(()=>{Oi(r[t],o)},n)}function Ys(e,t,n=Ke,r=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;ur(),Gn(n);const a=Mt(t,n,e,i);return xn(),fr(),a});return r?o.unshift(s):o.push(s),s}}const en=e=>(t,n=Ke)=>(!jr||e==="sp")&&Ys(e,(...r)=>t(...r),n),Bu=en("bm"),Uu=en("m"),_m=en("bu"),vm=en("u"),bm=en("bum"),Zs=en("um"),ym=en("sp"),wm=en("rtg"),Em=en("rtc");function Tm(e,t=Ke){Ys("ec",e,t)}function mt(e,t){const n=Xe;if(n===null)return e;const r=eo(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let s=0;st(i,a,void 0,s&&s[a]));else{const i=Object.keys(e);o=new Array(i.length);for(let a=0,l=i.length;aks(t)?!(t.type===Gt||t.type===Se&&!Wu(t.children)):!0)?e:null}const Go=e=>e?rf(e)?eo(e)||e.proxy:Go(e.parent):null,Cr=lt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Go(e.parent),$root:e=>Go(e.root),$emit:e=>e.emit,$options:e=>Zi(e),$forceUpdate:e=>e.f||(e.f=()=>zi(e.update)),$nextTick:e=>e.n||(e.n=Wi.bind(e.proxy)),$watch:e=>hm.bind(e)}),Eo=(e,t)=>e!==De&&!e.__isScriptSetup&&xe(e,t),Sm={get({_:e},t){const{ctx:n,setupState:r,data:o,props:s,accessCache:i,type:a,appContext:l}=e;let c;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(Eo(r,t))return i[t]=1,r[t];if(o!==De&&xe(o,t))return i[t]=2,o[t];if((c=e.propsOptions[0])&&xe(c,t))return i[t]=3,s[t];if(n!==De&&xe(n,t))return i[t]=4,n[t];Xo&&(i[t]=0)}}const u=Cr[t];let f,h;if(u)return t==="$attrs"&>(e,"get",t),u(e);if((f=a.__cssModules)&&(f=f[t]))return f;if(n!==De&&xe(n,t))return i[t]=4,n[t];if(h=l.config.globalProperties,xe(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:s}=e;return Eo(o,t)?(o[t]=n,!0):r!==De&&xe(r,t)?(r[t]=n,!0):xe(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:s}},i){let a;return!!n[i]||e!==De&&xe(e,i)||Eo(t,i)||(a=s[0])&&xe(a,i)||xe(r,i)||xe(Cr,i)||xe(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:xe(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Xo=!0;function Cm(e){const t=Zi(e),n=e.proxy,r=e.ctx;Xo=!1,t.beforeCreate&&sl(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:i,watch:a,provide:l,inject:c,created:u,beforeMount:f,mounted:h,beforeUpdate:p,updated:w,activated:b,deactivated:T,beforeDestroy:_,beforeUnmount:S,destroyed:A,unmounted:y,render:C,renderTracked:x,renderTriggered:O,errorCaptured:K,serverPrefetch:Y,expose:ee,inheritAttrs:ne,components:R,directives:X,filters:I}=t;if(c&&Am(c,r,null,e.appContext.config.unwrapInjectedRef),i)for(const G in i){const te=i[G];we(te)&&(r[G]=te.bind(n))}if(o){const G=o.call(n,n);Re(G)&&(e.data=mn(G))}if(Xo=!0,s)for(const G in s){const te=s[G],le=we(te)?te.bind(n,n):we(te.get)?te.get.bind(n,n):Lt,he=!we(te)&&we(te.set)?te.set.bind(n):Lt,ae=Fe({get:le,set:he});Object.defineProperty(r,G,{enumerable:!0,configurable:!0,get:()=>ae.value,set:me=>ae.value=me})}if(a)for(const G in a)zu(a[G],r,n,G);if(l){const G=we(l)?l.call(n):l;Reflect.ownKeys(G).forEach(te=>{ws(te,G[te])})}u&&sl(u,e,"c");function Z(G,te){ge(te)?te.forEach(le=>G(le.bind(n))):te&&G(te.bind(n))}if(Z(Bu,f),Z(Uu,h),Z(_m,p),Z(vm,w),Z(mm,b),Z(pm,T),Z(Tm,K),Z(Em,x),Z(wm,O),Z(bm,S),Z(Zs,y),Z(ym,Y),ge(ee))if(ee.length){const G=e.exposed||(e.exposed={});ee.forEach(te=>{Object.defineProperty(G,te,{get:()=>n[te],set:le=>n[te]=le})})}else e.exposed||(e.exposed={});C&&e.render===Lt&&(e.render=C),ne!=null&&(e.inheritAttrs=ne),R&&(e.components=R),X&&(e.directives=X)}function Am(e,t,n=Lt,r=!1){ge(e)&&(e=Jo(e));for(const o in e){const s=e[o];let i;Re(s)?"default"in s?i=Ht(s.from||o,s.default,!0):i=Ht(s.from||o):i=Ht(s),Ge(i)&&r?Object.defineProperty(t,o,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[o]=i}}function sl(e,t,n){Mt(ge(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function zu(e,t,n,r){const o=r.includes(".")?qu(n,r):()=>n[r];if(Be(e)){const s=t[e];we(s)&&Nt(o,s)}else if(we(e))Nt(o,e.bind(n));else if(Re(e))if(ge(e))e.forEach(s=>zu(s,t,n,r));else{const s=we(e.handler)?e.handler.bind(n):t[e.handler];we(s)&&Nt(o,s,e)}}function Zi(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;return a?l=a:!o.length&&!n&&!r?l=t:(l={},o.length&&o.forEach(c=>Os(l,c,i,!0)),Os(l,t,i)),Re(t)&&s.set(t,l),l}function Os(e,t,n,r=!1){const{mixins:o,extends:s}=t;s&&Os(e,s,n,!0),o&&o.forEach(i=>Os(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=xm[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const xm={data:ol,props:En,emits:En,methods:En,computed:En,beforeCreate:rt,created:rt,beforeMount:rt,mounted:rt,beforeUpdate:rt,updated:rt,beforeDestroy:rt,beforeUnmount:rt,destroyed:rt,unmounted:rt,activated:rt,deactivated:rt,errorCaptured:rt,serverPrefetch:rt,components:En,directives:En,watch:Mm,provide:ol,inject:Lm};function ol(e,t){return t?e?function(){return lt(we(e)?e.call(this,this):e,we(t)?t.call(this,this):t)}:t:e}function Lm(e,t){return En(Jo(e),Jo(t))}function Jo(e){if(ge(e)){const t={};for(let n=0;n0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let f=0;f{l=!0;const[h,p]=Yu(f,t,!0);lt(i,h),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!l)return Re(e)&&r.set(e,Un),Un;if(ge(s))for(let u=0;u-1,p[1]=b<0||w-1||xe(p,"default"))&&a.push(f)}}}const c=[i,a];return Re(e)&&r.set(e,c),c}function il(e){return e[0]!=="$"}function al(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function ll(e,t){return al(e)===al(t)}function cl(e,t){return ge(t)?t.findIndex(n=>ll(n,e)):we(t)&&ll(t,e)?0:-1}const Zu=e=>e[0]==="_"||e==="$stable",Gi=e=>ge(e)?e.map(Dt):[Dt(e)],Im=(e,t,n)=>{if(t._n)return t;const r=Ve((...o)=>Gi(t(...o)),n);return r._c=!1,r},Gu=(e,t,n)=>{const r=e._ctx;for(const o in e){if(Zu(o))continue;const s=e[o];if(we(s))t[o]=Im(o,s,r);else if(s!=null){const i=Gi(s);t[o]=()=>i}}},Xu=(e,t)=>{const n=Gi(t);e.slots.default=()=>n},Pm=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ie(t),$s(t,"_",n)):Gu(t,e.slots={})}else e.slots={},t&&Xu(e,t);$s(e.slots,Js,1)},Om=(e,t,n)=>{const{vnode:r,slots:o}=e;let s=!0,i=De;if(r.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:(lt(o,t),!n&&a===1&&delete o._):(s=!t.$stable,Gu(t,o)),i=t}else t&&(Xu(e,t),i={default:1});if(s)for(const a in o)!Zu(a)&&!(a in i)&&delete o[a]};function Ju(){return{app:null,config:{isNativeTag:gh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let km=0;function Rm(e,t){return function(r,o=null){we(r)||(r=Object.assign({},r)),o!=null&&!Re(o)&&(o=null);const s=Ju(),i=new Set;let a=!1;const l=s.app={_uid:km++,_component:r,_props:o,_container:null,_context:s,_instance:null,version:np,get config(){return s.config},set config(c){},use(c,...u){return i.has(c)||(c&&we(c.install)?(i.add(c),c.install(l,...u)):we(c)&&(i.add(c),c(l,...u))),l},mixin(c){return s.mixins.includes(c)||s.mixins.push(c),l},component(c,u){return u?(s.components[c]=u,l):s.components[c]},directive(c,u){return u?(s.directives[c]=u,l):s.directives[c]},mount(c,u,f){if(!a){const h=re(r,o);return h.appContext=s,u&&t?t(h,c):e(h,c,f),a=!0,l._container=c,c.__vue_app__=l,eo(h.component)||h.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,u){return s.provides[c]=u,l}};return l}}function ti(e,t,n,r,o=!1){if(ge(e)){e.forEach((h,p)=>ti(h,t&&(ge(t)?t[p]:t),n,r,o));return}if(Sr(r)&&!o)return;const s=r.shapeFlag&4?eo(r.component)||r.component.proxy:r.el,i=o?null:s,{i:a,r:l}=e,c=t&&t.r,u=a.refs===De?a.refs={}:a.refs,f=a.setupState;if(c!=null&&c!==l&&(Be(c)?(u[c]=null,xe(f,c)&&(f[c]=null)):Ge(c)&&(c.value=null)),we(l))un(l,a,12,[i,u]);else{const h=Be(l),p=Ge(l);if(h||p){const w=()=>{if(e.f){const b=h?xe(f,l)?f[l]:u[l]:l.value;o?ge(b)&&Oi(b,s):ge(b)?b.includes(s)||b.push(s):h?(u[l]=[s],xe(f,l)&&(f[l]=u[l])):(l.value=[s],e.k&&(u[e.k]=l.value))}else h?(u[l]=i,xe(f,l)&&(f[l]=i)):p&&(l.value=i,e.k&&(u[e.k]=i))};i?(w.id=-1,ut(w,n)):w()}}}const ut=dm;function Dm(e){return Fm(e)}function Fm(e,t){const n=Eh();n.__VUE__=!0;const{insert:r,remove:o,patchProp:s,createElement:i,createText:a,createComment:l,setText:c,setElementText:u,parentNode:f,nextSibling:h,setScopeId:p=Lt,insertStaticContent:w}=e,b=(v,d,m,E=null,P=null,V=null,Q=!1,k=null,j=!!d.dynamicChildren)=>{if(v===d)return;v&&!vr(v,d)&&(E=L(v),me(v,P,V,!0),v=null),d.patchFlag===-2&&(j=!1,d.dynamicChildren=null);const{type:U,ref:$,shapeFlag:D}=d;switch(U){case Zr:T(v,d,m,E);break;case Gt:_(v,d,m,E);break;case To:v==null&&S(d,m,E,Q);break;case Se:R(v,d,m,E,P,V,Q,k,j);break;default:D&1?C(v,d,m,E,P,V,Q,k,j):D&6?X(v,d,m,E,P,V,Q,k,j):(D&64||D&128)&&U.process(v,d,m,E,P,V,Q,k,j,J)}$!=null&&P&&ti($,v&&v.ref,V,d||v,!d)},T=(v,d,m,E)=>{if(v==null)r(d.el=a(d.children),m,E);else{const P=d.el=v.el;d.children!==v.children&&c(P,d.children)}},_=(v,d,m,E)=>{v==null?r(d.el=l(d.children||""),m,E):d.el=v.el},S=(v,d,m,E)=>{[v.el,v.anchor]=w(v.children,d,m,E,v.el,v.anchor)},A=({el:v,anchor:d},m,E)=>{let P;for(;v&&v!==d;)P=h(v),r(v,m,E),v=P;r(d,m,E)},y=({el:v,anchor:d})=>{let m;for(;v&&v!==d;)m=h(v),o(v),v=m;o(d)},C=(v,d,m,E,P,V,Q,k,j)=>{Q=Q||d.type==="svg",v==null?x(d,m,E,P,V,Q,k,j):Y(v,d,P,V,Q,k,j)},x=(v,d,m,E,P,V,Q,k)=>{let j,U;const{type:$,props:D,shapeFlag:se,transition:ce,dirs:ve}=v;if(j=v.el=i(v.type,V,D&&D.is,D),se&8?u(j,v.children):se&16&&K(v.children,j,null,E,P,V&&$!=="foreignObject",Q,k),ve&&yn(v,null,E,"created"),D){for(const Ee in D)Ee!=="value"&&!bs(Ee)&&s(j,Ee,null,D[Ee],V,v.children,E,P,W);"value"in D&&s(j,"value",null,D.value),(U=D.onVnodeBeforeMount)&&Ot(U,E,v)}O(j,v,v.scopeId,Q,E),ve&&yn(v,null,E,"beforeMount");const Ae=(!P||P&&!P.pendingBranch)&&ce&&!ce.persisted;Ae&&ce.beforeEnter(j),r(j,d,m),((U=D&&D.onVnodeMounted)||Ae||ve)&&ut(()=>{U&&Ot(U,E,v),Ae&&ce.enter(j),ve&&yn(v,null,E,"mounted")},P)},O=(v,d,m,E,P)=>{if(m&&p(v,m),E)for(let V=0;V{for(let U=j;U{const k=d.el=v.el;let{patchFlag:j,dynamicChildren:U,dirs:$}=d;j|=v.patchFlag&16;const D=v.props||De,se=d.props||De;let ce;m&&wn(m,!1),(ce=se.onVnodeBeforeUpdate)&&Ot(ce,m,d,v),$&&yn(d,v,m,"beforeUpdate"),m&&wn(m,!0);const ve=P&&d.type!=="foreignObject";if(U?ee(v.dynamicChildren,U,k,m,E,ve,V):Q||te(v,d,k,null,m,E,ve,V,!1),j>0){if(j&16)ne(k,d,D,se,m,E,P);else if(j&2&&D.class!==se.class&&s(k,"class",null,se.class,P),j&4&&s(k,"style",D.style,se.style,P),j&8){const Ae=d.dynamicProps;for(let Ee=0;Ee{ce&&Ot(ce,m,d,v),$&&yn(d,v,m,"updated")},E)},ee=(v,d,m,E,P,V,Q)=>{for(let k=0;k{if(m!==E){if(m!==De)for(const k in m)!bs(k)&&!(k in E)&&s(v,k,m[k],null,Q,d.children,P,V,W);for(const k in E){if(bs(k))continue;const j=E[k],U=m[k];j!==U&&k!=="value"&&s(v,k,U,j,Q,d.children,P,V,W)}"value"in E&&s(v,"value",m.value,E.value)}},R=(v,d,m,E,P,V,Q,k,j)=>{const U=d.el=v?v.el:a(""),$=d.anchor=v?v.anchor:a("");let{patchFlag:D,dynamicChildren:se,slotScopeIds:ce}=d;ce&&(k=k?k.concat(ce):ce),v==null?(r(U,m,E),r($,m,E),K(d.children,m,$,P,V,Q,k,j)):D>0&&D&64&&se&&v.dynamicChildren?(ee(v.dynamicChildren,se,m,P,V,Q,k),(d.key!=null||P&&d===P.subTree)&&Xi(v,d,!0)):te(v,d,m,$,P,V,Q,k,j)},X=(v,d,m,E,P,V,Q,k,j)=>{d.slotScopeIds=k,v==null?d.shapeFlag&512?P.ctx.activate(d,m,E,Q,j):I(d,m,E,P,V,Q,j):N(v,d,j)},I=(v,d,m,E,P,V,Q)=>{const k=v.component=zm(v,E,P);if(Vu(v)&&(k.ctx.renderer=J),Km(k),k.asyncDep){if(P&&P.registerDep(k,Z),!v.el){const j=k.subTree=re(Gt);_(null,j,d,m)}return}Z(k,v,d,m,P,V,Q)},N=(v,d,m)=>{const E=d.component=v.component;if(cm(v,d,m))if(E.asyncDep&&!E.asyncResolved){G(E,d,m);return}else E.next=d,rm(E.update),E.update();else d.el=v.el,E.vnode=d},Z=(v,d,m,E,P,V,Q)=>{const k=()=>{if(v.isMounted){let{next:$,bu:D,u:se,parent:ce,vnode:ve}=v,Ae=$,Ee;wn(v,!1),$?($.el=ve.el,G(v,$,Q)):$=ve,D&&ys(D),(Ee=$.props&&$.props.onVnodeBeforeUpdate)&&Ot(Ee,ce,$,ve),wn(v,!0);const qe=wo(v),bt=v.subTree;v.subTree=qe,b(bt,qe,f(bt.el),L(bt),v,P,V),$.el=qe.el,Ae===null&&um(v,qe.el),se&&ut(se,P),(Ee=$.props&&$.props.onVnodeUpdated)&&ut(()=>Ot(Ee,ce,$,ve),P)}else{let $;const{el:D,props:se}=d,{bm:ce,m:ve,parent:Ae}=v,Ee=Sr(d);if(wn(v,!1),ce&&ys(ce),!Ee&&($=se&&se.onVnodeBeforeMount)&&Ot($,Ae,d),wn(v,!0),D&&ie){const qe=()=>{v.subTree=wo(v),ie(D,v.subTree,v,P,null)};Ee?d.type.__asyncLoader().then(()=>!v.isUnmounted&&qe()):qe()}else{const qe=v.subTree=wo(v);b(null,qe,m,E,v,P,V),d.el=qe.el}if(ve&&ut(ve,P),!Ee&&($=se&&se.onVnodeMounted)){const qe=d;ut(()=>Ot($,Ae,qe),P)}(d.shapeFlag&256||Ae&&Sr(Ae.vnode)&&Ae.vnode.shapeFlag&256)&&v.a&&ut(v.a,P),v.isMounted=!0,d=m=E=null}},j=v.effect=new Di(k,()=>zi(U),v.scope),U=v.update=()=>j.run();U.id=v.uid,wn(v,!0),U()},G=(v,d,m)=>{d.component=v;const E=v.vnode.props;v.vnode=d,v.next=null,$m(v,d.props,E,m),Om(v,d.children,m),ur(),tl(),fr()},te=(v,d,m,E,P,V,Q,k,j=!1)=>{const U=v&&v.children,$=v?v.shapeFlag:0,D=d.children,{patchFlag:se,shapeFlag:ce}=d;if(se>0){if(se&128){he(U,D,m,E,P,V,Q,k,j);return}else if(se&256){le(U,D,m,E,P,V,Q,k,j);return}}ce&8?($&16&&W(U,P,V),D!==U&&u(m,D)):$&16?ce&16?he(U,D,m,E,P,V,Q,k,j):W(U,P,V,!0):($&8&&u(m,""),ce&16&&K(D,m,E,P,V,Q,k,j))},le=(v,d,m,E,P,V,Q,k,j)=>{v=v||Un,d=d||Un;const U=v.length,$=d.length,D=Math.min(U,$);let se;for(se=0;se$?W(v,P,V,!0,!1,D):K(d,m,E,P,V,Q,k,j,D)},he=(v,d,m,E,P,V,Q,k,j)=>{let U=0;const $=d.length;let D=v.length-1,se=$-1;for(;U<=D&&U<=se;){const ce=v[U],ve=d[U]=j?an(d[U]):Dt(d[U]);if(vr(ce,ve))b(ce,ve,m,null,P,V,Q,k,j);else break;U++}for(;U<=D&&U<=se;){const ce=v[D],ve=d[se]=j?an(d[se]):Dt(d[se]);if(vr(ce,ve))b(ce,ve,m,null,P,V,Q,k,j);else break;D--,se--}if(U>D){if(U<=se){const ce=se+1,ve=ce<$?d[ce].el:E;for(;U<=se;)b(null,d[U]=j?an(d[U]):Dt(d[U]),m,ve,P,V,Q,k,j),U++}}else if(U>se)for(;U<=D;)me(v[U],P,V,!0),U++;else{const ce=U,ve=U,Ae=new Map;for(U=ve;U<=se;U++){const ht=d[U]=j?an(d[U]):Dt(d[U]);ht.key!=null&&Ae.set(ht.key,U)}let Ee,qe=0;const bt=se-ve+1;let Rn=!1,Ua=0;const _r=new Array(bt);for(U=0;U=bt){me(ht,P,V,!0);continue}let Pt;if(ht.key!=null)Pt=Ae.get(ht.key);else for(Ee=ve;Ee<=se;Ee++)if(_r[Ee-ve]===0&&vr(ht,d[Ee])){Pt=Ee;break}Pt===void 0?me(ht,P,V,!0):(_r[Pt-ve]=U+1,Pt>=Ua?Ua=Pt:Rn=!0,b(ht,d[Pt],m,null,P,V,Q,k,j),qe++)}const ja=Rn?qm(_r):Un;for(Ee=ja.length-1,U=bt-1;U>=0;U--){const ht=ve+U,Pt=d[ht],Qa=ht+1<$?d[ht+1].el:E;_r[U]===0?b(null,Pt,m,Qa,P,V,Q,k,j):Rn&&(Ee<0||U!==ja[Ee]?ae(Pt,m,Qa,2):Ee--)}}},ae=(v,d,m,E,P=null)=>{const{el:V,type:Q,transition:k,children:j,shapeFlag:U}=v;if(U&6){ae(v.component.subTree,d,m,E);return}if(U&128){v.suspense.move(d,m,E);return}if(U&64){Q.move(v,d,m,J);return}if(Q===Se){r(V,d,m);for(let D=0;Dk.enter(V),P);else{const{leave:D,delayLeave:se,afterLeave:ce}=k,ve=()=>r(V,d,m),Ae=()=>{D(V,()=>{ve(),ce&&ce()})};se?se(V,ve,Ae):Ae()}else r(V,d,m)},me=(v,d,m,E=!1,P=!1)=>{const{type:V,props:Q,ref:k,children:j,dynamicChildren:U,shapeFlag:$,patchFlag:D,dirs:se}=v;if(k!=null&&ti(k,null,m,v,!0),$&256){d.ctx.deactivate(v);return}const ce=$&1&&se,ve=!Sr(v);let Ae;if(ve&&(Ae=Q&&Q.onVnodeBeforeUnmount)&&Ot(Ae,d,v),$&6)H(v.component,m,E);else{if($&128){v.suspense.unmount(m,E);return}ce&&yn(v,null,d,"beforeUnmount"),$&64?v.type.remove(v,d,m,P,J,E):U&&(V!==Se||D>0&&D&64)?W(U,d,m,!1,!0):(V===Se&&D&384||!P&&$&16)&&W(j,d,m),E&&Te(v)}(ve&&(Ae=Q&&Q.onVnodeUnmounted)||ce)&&ut(()=>{Ae&&Ot(Ae,d,v),ce&&yn(v,null,d,"unmounted")},m)},Te=v=>{const{type:d,el:m,anchor:E,transition:P}=v;if(d===Se){pe(m,E);return}if(d===To){y(v);return}const V=()=>{o(m),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(v.shapeFlag&1&&P&&!P.persisted){const{leave:Q,delayLeave:k}=P,j=()=>Q(m,V);k?k(v.el,V,j):j()}else V()},pe=(v,d)=>{let m;for(;v!==d;)m=h(v),o(v),v=m;o(d)},H=(v,d,m)=>{const{bum:E,scope:P,update:V,subTree:Q,um:k}=v;E&&ys(E),P.stop(),V&&(V.active=!1,me(Q,v,d,m)),k&&ut(k,d),ut(()=>{v.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&v.asyncDep&&!v.asyncResolved&&v.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},W=(v,d,m,E=!1,P=!1,V=0)=>{for(let Q=V;Qv.shapeFlag&6?L(v.component.subTree):v.shapeFlag&128?v.suspense.next():h(v.anchor||v.el),q=(v,d,m)=>{v==null?d._vnode&&me(d._vnode,null,null,!0):b(d._vnode||null,v,d,null,null,null,m),tl(),ku(),d._vnode=v},J={p:b,um:me,m:ae,r:Te,mt:I,mc:K,pc:te,pbc:ee,n:L,o:e};let ue,ie;return t&&([ue,ie]=t(J)),{render:q,hydrate:ue,createApp:Rm(q,ue)}}function wn({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Xi(e,t,n=!1){const r=e.children,o=t.children;if(ge(r)&&ge(o))for(let s=0;s>1,e[n[a]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,i=n[s-1];s-- >0;)n[s]=i,i=t[i];return n}const Vm=e=>e.__isTeleport,Ar=e=>e&&(e.disabled||e.disabled===""),ul=e=>typeof SVGElement<"u"&&e instanceof SVGElement,ni=(e,t)=>{const n=e&&e.to;return Be(n)?t?t(n):null:n},Hm={__isTeleport:!0,process(e,t,n,r,o,s,i,a,l,c){const{mc:u,pc:f,pbc:h,o:{insert:p,querySelector:w,createText:b,createComment:T}}=c,_=Ar(t.props);let{shapeFlag:S,children:A,dynamicChildren:y}=t;if(e==null){const C=t.el=b(""),x=t.anchor=b("");p(C,n,r),p(x,n,r);const O=t.target=ni(t.props,w),K=t.targetAnchor=b("");O&&(p(K,O),i=i||ul(O));const Y=(ee,ne)=>{S&16&&u(A,ee,ne,o,s,i,a,l)};_?Y(n,x):O&&Y(O,K)}else{t.el=e.el;const C=t.anchor=e.anchor,x=t.target=e.target,O=t.targetAnchor=e.targetAnchor,K=Ar(e.props),Y=K?n:x,ee=K?C:O;if(i=i||ul(x),y?(h(e.dynamicChildren,y,Y,o,s,i,a),Xi(e,t,!0)):l||f(e,t,Y,ee,o,s,i,a,!1),_)K||ds(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ne=t.target=ni(t.props,w);ne&&ds(t,ne,null,c,0)}else K&&ds(t,x,O,c,1)}ef(t)},remove(e,t,n,r,{um:o,o:{remove:s}},i){const{shapeFlag:a,children:l,anchor:c,targetAnchor:u,target:f,props:h}=e;if(f&&s(u),(i||!Ar(h))&&(s(c),a&16))for(let p=0;p0?xt||Un:null,Um(),Ur>0&&xt&&xt.push(e),e}function F(e,t,n,r,o,s){return tf(g(e,t,n,r,o,s,!0))}function be(e,t,n,r,o){return tf(re(e,t,n,r,o,!0))}function ks(e){return e?e.__v_isVNode===!0:!1}function vr(e,t){return e.type===t.type&&e.key===t.key}const Js="__vInternal",nf=({key:e})=>e!=null?e:null,Es=({ref:e,ref_key:t,ref_for:n})=>e!=null?Be(e)||Ge(e)||we(e)?{i:Xe,r:e,k:t,f:!!n}:e:null;function g(e,t=null,n=null,r=0,o=null,s=e===Se?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&nf(t),ref:t&&Es(t),scopeId:Ks,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Xe};return a?(Ji(l,n),s&128&&e.normalize(l)):n&&(l.shapeFlag|=Be(n)?8:16),Ur>0&&!i&&xt&&(l.patchFlag>0||s&6)&&l.patchFlag!==32&&xt.push(l),l}const re=jm;function jm(e,t=null,n=null,r=0,o=null,s=!1){if((!e||e===ju)&&(e=Gt),ks(e)){const a=Zn(e,t,!0);return n&&Ji(a,n),Ur>0&&!s&&xt&&(a.shapeFlag&6?xt[xt.indexOf(e)]=a:xt.push(a)),a.patchFlag|=-2,a}if(Jm(e)&&(e=e.__vccOpts),t){t=yt(t);let{class:a,style:l}=t;a&&!Be(a)&&(t.class=Me(a)),Re(l)&&(Bi(l)&&!ge(l)&&(l=lt({},l)),t.style=ft(l))}const i=Be(e)?1:fm(e)?128:Vm(e)?64:Re(e)?4:we(e)?2:0;return g(e,t,n,r,o,i,s,!0)}function yt(e){return e?Bi(e)||Js in e?lt({},e):e:null}function Zn(e,t,n=!1){const{props:r,ref:o,patchFlag:s,children:i}=e,a=t?pt(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&nf(a),ref:t&&t.ref?n&&o?ge(o)?o.concat(Es(t)):[o,Es(t)]:Es(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Zn(e.ssContent),ssFallback:e.ssFallback&&Zn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx}}function $e(e=" ",t=0){return re(Zr,null,e,t)}function ye(e="",t=!1){return t?(M(),be(Gt,null,e)):re(Gt,null,e)}function Dt(e){return e==null||typeof e=="boolean"?re(Gt):ge(e)?re(Se,null,e.slice()):typeof e=="object"?an(e):re(Zr,null,String(e))}function an(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zn(e)}function Ji(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(ge(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),Ji(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Js in t)?t._ctx=Xe:o===3&&Xe&&(Xe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else we(t)?(t={default:t,_ctx:Xe},n=32):(t=String(t),r&64?(n=16,t=[$e(t)]):n=8);e.children=t,e.shapeFlag|=n}function pt(...e){const t={};for(let n=0;nKe||Xe,Gn=e=>{Ke=e,e.scope.on()},xn=()=>{Ke&&Ke.scope.off(),Ke=null};function rf(e){return e.vnode.shapeFlag&4}let jr=!1;function Km(e,t=!1){jr=t;const{props:n,children:r}=e.vnode,o=rf(e);Nm(e,n,o,t),Pm(e,r);const s=o?Ym(e,t):void 0;return jr=!1,s}function Ym(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ui(new Proxy(e.ctx,Sm));const{setup:r}=n;if(r){const o=e.setupContext=r.length>1?Gm(e):null;Gn(e),ur();const s=un(r,e,0,[e.props,o]);if(fr(),xn(),du(s)){if(s.then(xn,xn),t)return s.then(i=>{dl(e,i,t)}).catch(i=>{Ws(i,e,0)});e.asyncDep=s}else dl(e,s,t)}else sf(e,t)}function dl(e,t,n){we(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Re(t)&&(e.setupState=$u(t)),sf(e,n)}let hl;function sf(e,t,n){const r=e.type;if(!e.render){if(!t&&hl&&!r.render){const o=r.template||Zi(e).template;if(o){const{isCustomElement:s,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,c=lt(lt({isCustomElement:s,delimiters:a},i),l);r.render=hl(o,c)}}e.render=r.render||Lt}Gn(e),ur(),Cm(e),fr(),xn()}function Zm(e){return new Proxy(e.attrs,{get(t,n){return gt(e,"get","$attrs"),t[n]}})}function Gm(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=Zm(e))},slots:e.slots,emit:e.emit,expose:t}}function eo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($u(Ui(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Cr)return Cr[n](e)},has(t,n){return n in t||n in Cr}}))}function Xm(e,t=!0){return we(e)?e.displayName||e.name:e.name||t&&e.__name}function Jm(e){return we(e)&&"__vccOpts"in e}const Fe=(e,t)=>em(e,t,jr);function pn(e,t,n){const r=arguments.length;return r===2?Re(t)&&!ge(t)?ks(t)?re(e,null,[t]):re(e,t):re(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ks(n)&&(n=[n]),re(e,t,n))}const ep=Symbol(""),tp=()=>Ht(ep),np="3.2.45",rp="http://www.w3.org/2000/svg",Sn=typeof document<"u"?document:null,ml=Sn&&Sn.createElement("template"),sp={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?Sn.createElementNS(rp,e):Sn.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>Sn.createTextNode(e),createComment:e=>Sn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Sn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,s){const i=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{ml.innerHTML=r?`${e}`:e;const a=ml.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function op(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function ip(e,t,n){const r=e.style,o=Be(n);if(n&&!o){for(const s in n)ri(r,s,n[s]);if(t&&!Be(t))for(const s in t)n[s]==null&&ri(r,s,"")}else{const s=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=s)}}const pl=/\s*!important$/;function ri(e,t,n){if(ge(n))n.forEach(r=>ri(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=ap(e,t);pl.test(n)?e.setProperty(cr(r),n.replace(pl,""),"important"):e[r]=n}}const gl=["Webkit","Moz","ms"],So={};function ap(e,t){const n=So[t];if(n)return n;let r=Ut(t);if(r!=="filter"&&r in e)return So[t]=r;r=js(r);for(let o=0;oCo||(hp.then(()=>Co=0),Co=Date.now());function pp(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Mt(gp(r,n.value),t,5,[r])};return n.value=e,n.attached=mp(),n}function gp(e,t){if(ge(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const bl=/^on[a-z]/,_p=(e,t,n,r,o=!1,s,i,a,l)=>{t==="class"?op(e,r,o):t==="style"?ip(e,n,r):Bs(t)?Pi(t)||fp(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):vp(e,t,r,o))?cp(e,t,r,s,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),lp(e,t,r,o))};function vp(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&bl.test(t)&&we(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||bl.test(t)&&Be(n)?!1:t in e}const dn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ge(t)?n=>ys(t,n):t};function bp(e){e.target.composing=!0}function yl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const yp={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=dn(o);const s=r||o.props&&o.props.type==="number";Kt(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),s&&(a=qr(a)),e._assign(a)}),n&&Kt(e,"change",()=>{e.value=e.value.trim()}),t||(Kt(e,"compositionstart",bp),Kt(e,"compositionend",yl),Kt(e,"change",yl))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:o}},s){if(e._assign=dn(s),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(o||e.type==="number")&&qr(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},wp={deep:!0,created(e,t,n){e._assign=dn(n),Kt(e,"change",()=>{const r=e._modelValue,o=Xn(e),s=e.checked,i=e._assign;if(ge(r)){const a=Ii(r,o),l=a!==-1;if(s&&!l)i(r.concat(o));else if(!s&&l){const c=[...r];c.splice(a,1),i(c)}}else if(lr(r)){const a=new Set(r);s?a.add(o):a.delete(o),i(a)}else i(of(e,s))})},mounted:wl,beforeUpdate(e,t,n){e._assign=dn(n),wl(e,t,n)}};function wl(e,{value:t,oldValue:n},r){e._modelValue=t,ge(t)?e.checked=Ii(t,r.props.value)>-1:lr(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Mn(t,of(e,!0)))}const Ao={created(e,{value:t},n){e.checked=Mn(t,n.props.value),e._assign=dn(n),Kt(e,"change",()=>{e._assign(Xn(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=dn(r),t!==n&&(e.checked=Mn(t,r.props.value))}},Lr={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=lr(t);Kt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?qr(Xn(i)):Xn(i));e._assign(e.multiple?o?new Set(s):s:s[0])}),e._assign=dn(r)},mounted(e,{value:t}){El(e,t)},beforeUpdate(e,t,n){e._assign=dn(n)},updated(e,{value:t}){El(e,t)}};function El(e,t){const n=e.multiple;if(!(n&&!ge(t)&&!lr(t))){for(let r=0,o=e.options.length;r-1:s.selected=t.has(i);else if(Mn(Xn(s),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xn(e){return"_value"in e?e._value:e.value}function of(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ep=["ctrl","shift","alt","meta"],Tp={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ep.some(n=>e[`${n}Key`]&&!t.includes(n))},Rs=(e,t)=>(n,...r)=>{for(let o=0;o{br(e,!1)}):br(e,t))},beforeUnmount(e,{value:t}){br(e,t)}};function br(e,t){e.style.display=t?e._vod:"none"}const Sp=lt({patchProp:_p},sp);let Tl;function Cp(){return Tl||(Tl=Dm(Sp))}const Ap=(...e)=>{const t=Cp().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xp(r);if(!o)return;const s=t._component;!we(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function xp(e){return Be(e)?document.querySelector(e):e}/** * vue-meta v3.0.0-alpha.10 * (c) 2022 * - Pim (@pimlie) * - All the amazing contributors * @license MIT - */const xp=(e,t)=>(n,r)=>{let o=-1;if(r.reduce((s,i,a)=>{const l=e(s,i);return l!==s?(o=a,l):s},t),o>-1)return n[o]},Lp=xp((e,t)=>{const{depth:n}=t;return!e||n>e?n:e});var Mp=Object.freeze({__proto__:null,setup:e=>{let t=0;if(e.vm){let{vm:n}=e;do n.parent&&(t++,n=n.parent);while(n&&n.parent&&n!==n.root)}e.depth=t},resolve:Lp});const Np={body:{tag:"script",to:"body"},base:{valueAttribute:"href"},charset:{tag:"meta",nameless:!0,valueAttribute:"charset"},description:{tag:"meta"},og:{group:!0,namespacedAttribute:!0,tag:"meta",keyAttribute:"property"},twitter:{group:!0,namespacedAttribute:!0,tag:"meta"},htmlAttrs:{attributesFor:"html"},headAttrs:{attributesFor:"head"},bodyAttrs:{attributesFor:"body"}},$p={title:{attributes:!1},base:{contentAsAttribute:!0,attributes:["href","target"]},meta:{contentAsAttribute:!0,keyAttribute:"name",attributes:["content","name","http-equiv","charset"]},link:{contentAsAttribute:!0,attributes:["href","crossorigin","rel","media","integrity","hreflang","type","referrerpolicy","sizes","imagesrcset","imagesizes","as","color"]},style:{attributes:["media"]},script:{attributes:["src","type","nomodule","async","defer","crossorigin","integrity","referrerpolicy"]},noscript:{attributes:!1}};Object.freeze({}),Object.freeze([]);const wt=Array.isArray,Mr=e=>typeof e=="function",Tl=e=>typeof e=="string",to=e=>e!==null&&typeof e=="object",Ip=Object.prototype.toString,Nr=e=>Ip.call(e)==="[object Object]",Sl=Symbol("kIsProxy"),Op=Symbol("kProxySources"),of=Symbol("kProxyTarget"),Fn=Symbol("kResolveContext");function Qr(e){if(wt(e))return e.map(Qr);if(to(e)){const t={};for(const n in e)t[n]=n==="context"?e[n]:Qr(e[n]);return t}return e}const Ts=(e,t,n)=>{const r=[];for(const o of e)o&&t in o&&(r.push(o[t]),n&&n(o));return r},Ds=(e,t=[],n,r)=>{if(!n&&!r&&({active:n,sources:r}=e,t.length))for(let i=0;il[a]).filter(Boolean)}if(!n||!r)return;const o=((i,...a)=>{const l=i?Object.keys(i):[];if(a){for(const c of a)if(c&&to(c))for(const u in c)l.includes(u)||l.push(u)}return l})(...r),s=Object.keys(n);for(const i of s)o.includes(i)||delete n[i];for(const i of o){let a=!1;for(let f=0;fl.push(f[Fn]));let u=e.resolve(c,l,n[i],i,t);Nr(u)&&(u=Qr(u)),n[i]=u}},af=(e,t,n,r=[])=>{const o=Pp(e,n,r),s=Bi(new Proxy(t,o));return!r.length&&e.sources&&e.sources.push(s),s},Pp=(e,t,n=[])=>({get:(r,o,s)=>{if(o===Sl)return!0;if(o===Op)return e.sources;if(o===of)return r;if(o===Fn)return t;let i=Reflect.get(r,o,s);if(!to(i))return i;if(!i[Sl]){const a=[...n,o];i=af(e,i,t,a),Reflect.set(r,o,i)}return i},set:(r,o,s)=>{const i=Reflect.set(r,o,s);if(i){const a=wt(r);let l,c=!1,{sources:u,active:f}=e,h=0;for(const T of n){if(u=Ts(u,T),a&&h===n.length-1){l=T;break}wt(f)&&(c=!0),f=f[T],h++}if(c)return Ds(e),i;if(Nr(s))return Ds(e,n),i;let p,w=[];a?(p=u,w=u.map(T=>T[Fn])):p=Ts(u,o,T=>w.push(T[Fn]));let b=e.resolve(p,w,f,o,n);Nr(b)&&(b=Qr(b)),a&&l?f[l]=b:f[o]=b}return i},deleteProperty:(r,o)=>{const s=Reflect.deleteProperty(r,o);if(s){const i=wt(r);let a,l=e.sources,c=e.active,u=0;for(const f of n){if(l=l.map(h=>h&&h[f]),i&&u===n.length-1){a=f;break}c=c[f],u++}if(l.some(f=>f&&o in f)){let f,h=[];i?(f=l,h=l.map(w=>w[Fn])):f=Ts(l,o,w=>h.push(w[Fn]));let p=e.resolve(f,h,c,o,n);Nr(p)&&(p=Qr(p)),i&&a?c[a]=p:c[o]=p}else delete c[o]}return s}}),xo={};function kp(e,t,n,r){return"attributesFor"in r?function(o,s,i,a){const{attributesFor:l}=a;if(!l||!i)return;if(o.isSSR)return{to:"",vnode:pn(`ssr-${l}`,i)};if(!xo[l]){const[h,p]=Array.from(document.querySelectorAll(l));if(!h)return void console.error("Could not find element for selector",l,", won't render attributes");p&&console.warn("Found multiple elements for selector",l),xo[l]={el:h,attrs:[]}}const{el:c,attrs:u}=xo[l];for(const h in i){let p=Ss(o,`${s}(${h})`,i[h],i);wt(p)&&(p=p.join(",")),c.setAttribute(h,p||""),u.includes(h)||u.push(h)}const f=u.filter(h=>!i[h]);for(const h of f)c.removeAttribute(h)}(e,t,n,r):"group"in r?function(o,s,i,a){return wt(i)?(console.warn("Specifying an array for group properties isnt supported"),[]):Object.keys(i).map(l=>{const c={group:s,data:i};if(a.namespaced)c.tagNamespace=a.namespaced===!0?s:a.namespaced;else if(a.namespacedAttribute){const u=a.namespacedAttribute===!0?s:a.namespacedAttribute;c.fullName=`${u}:${l}`,c.slotName=`${u}(${l})`}return Fs(o,s,i[l],a,c)}).filter(Boolean).flat()}(e,t,n,r):Fs(e,t,n,r)}function Fs(e,t,n,r={},o){const s=["content","json","rawContent"],i=T=>function(_,S){for(const A of _){const y=$p[A];if(A&&y)return y[S]}}([a,r.tag],T);if(wt(n))return n.map(T=>Fs(e,t,T,r,o)).filter(Boolean).flat();const{tag:a=r.tag||t}=n;let l="",c=!1,u=!1;if(Tl(n))l=n;else if(n.children&&wt(n.children))c=!0,l=n.children.map(T=>{const _=Fs(e,t,T,r,o);return wt(_)?_.map(({vnode:S})=>S):_&&_.vnode});else{let T=0;for(const _ of s){if(!l&&n[_]){l=T===1?JSON.stringify(n[_]):n[_],u=T>1;break}T++}}const f=o&&o.fullName||t,h=o&&o.slotName||t;let{attrs:p}=n;if(p||typeof n!="object")p||(p={});else{p={...n},delete p.tag,delete p.children,delete p.to;for(const T of s)delete p[T]}if(c)l=Ss(e,h,l,n);else{const T=!!i("contentAsAttribute");let{valueAttribute:_}=r;if(!_&&T){const[S]=i("attributes");_=Tl(T)?T:S}if(_){const{nameless:S}=r;if(!S){const A=r.keyAttribute||i("keyAttribute");A&&(p[A]=f)}p[_]=Ss(e,h,p[_]||l,o),l=""}else l=Ss(e,h,l,n)}const w=o&&o.tagNamespace?`${o.tagNamespace}:${a}`:a;if(w==="title"&&!e.isSSR)return void(document.title=l);u&&l&&(p.innerHTML=l);const b=pn(w,p,l||void 0);return{to:n.to,vnode:b}}function Ss({metainfo:e,slots:t},n,r,o){const s=t&&t[n];if(!s||!Mr(s))return r;const i={content:r,metainfo:e};if(o&&o.group){const{group:l,data:c}=o;i[l]=c}const a=s(i);if(a&&a.length){const{children:l}=a[0];return l?l.toString():""}return r}const Rp=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Dp=(e=>Rp?Symbol("[vue-meta]: "+e):"[vue-meta]: "+e)("meta_active");function lf(e,t,n){for(const r in t)r in n?to(e[r])?lf(e[r],t[r],n[r]):t[r]!==n[r]&&(e[r]=t[r]):e[r]=t[r];for(const r in n)t&&r in t||delete e[r]}function cf(e){if(e||(e=Xt()||void 0),e)return e.appContext.config.globalProperties.$metaManager}function Cl(e,t){const n=Xt()||void 0;if(!t&&n&&(t=cf(n)),!t)throw new Error("No manager or current instance");Hi(e)&&(Nt(e,(o,s)=>{lf(r.meta,o,s)}),e=e.value);const r=t.addMeta(e,n);return r}const Fp=zi({name:"Metainfo",inheritAttrs:!1,setup:(e,{slots:t})=>()=>{const n=cf();if(n)return n.render({slots:t})}});function Al(e,t,n,r){const o=wt(r)?r:[r];e?n.endsWith("Attrs")||o.forEach(s=>{s.props||(s.props={}),s.props["data-vm-ssr"]=!0}):o.forEach((s,i)=>{s.type===Gt&&o.splice(i,1)}),t[n]||(t[n]=[]),t[n].push(...o)}const qp=(e=!1,t,n)=>Cs.create(e,t||Np,n||Mp),Ha=class{constructor(t,n,r,o){bn(this,"isSSR",!1);bn(this,"config");bn(this,"target");bn(this,"resolver");bn(this,"ssrCleanedUp",!1);this.isSSR=t,this.config=n,this.target=r,o&&"setup"in o&&Mr(o.setup)&&(this.resolver=o)}install(t){t.component("Metainfo",Fp),t.config.globalProperties.$metaManager=this,t.provide(Dp,this.target.context.active)}addMeta(t,n){n||(n=Xt()||void 0);const r={removed:[]},o={vm:n},{resolver:s}=this;s&&s.setup&&s.setup(o);const i=this.target.addSource(t,o,!0),a=l=>this.unmount(!!l,i,r,n);return n&&Zs(a),{meta:i,onRemoved:l=>r.removed.push(l),unmount:a}}unmount(t,n,r,o){if(o){const{$el:s}=o.proxy;if(s&&s.offsetParent){let i=new MutationObserver(a=>{for(const{removedNodes:l}of a)l&&l.forEach(c=>{c===s&&i&&(i.disconnect(),i=void 0,this.reallyUnmount(t,n,r))})});return void i.observe(s.parentNode,{childList:!0})}}this.reallyUnmount(t,n,r)}async reallyUnmount(t,n,r){this.target.delSource(n),!t&&r&&await Promise.all(r.removed.map(o=>o()))}render({slots:t}={}){const n=this.target.context.active,{isSSR:r}=this;if(!r&&!this.ssrCleanedUp){this.ssrCleanedUp=!0;const s=()=>{const i=document.querySelectorAll("[data-vm-ssr]");i&&i.length&&i.forEach(a=>a.parentNode&&a.parentNode.removeChild(a))};document.readyState==="loading"?window.addEventListener("DOMContentLoaded",s,{once:!0}):s()}const o={};for(const s in n){const i=this.config[s]||{};let a=kp({isSSR:r,metainfo:n,slots:t},s,n[s],i);if(!a)continue;wt(a)||(a=[a]);let l=s!=="base"&&n[s].to;!l&&"to"in i&&(l=i.to),!l&&"attributesFor"in i&&(l=s);for(const{to:c,vnode:u}of a)Al(this.isSSR,o,c||l||"head",u)}if(t)for(const s in t){const i=s==="default"?"head":s;if(i!=="head"&&i!=="body")continue;const a=t[s];Mr(a)&&Al(this.isSSR,o,i,a({metainfo:n}))}return Object.keys(o).map(s=>pn(dr,{to:s},o[s]))}};let Cs=Ha;bn(Cs,"create",(t,n,r)=>{const o=((s,i)=>{const a=[],l={active:i,resolve:s,sources:a},c=()=>Ds(l);return{context:l,compute:c,addSource:(u,f,h=!1)=>{const p=af(l,u,f||{});return h&&c(),p},delSource:(u,f=!0)=>{const h=a.findIndex(p=>p===u||p[of]===u);return h>-1&&(a.splice(h,1),f&&c(),!0)}}})((s,i,a,l,c)=>Mr(r)?r(s,i,a,l,c):r.resolve(s,i,a,l,c),mn({}));return new Ha(t,n,o,r)});const Vp={keyName:"metaInfo"},Hp=e=>({created(){const t=Xt();if(!(t!=null&&t.type)||!(e.keyName in t.type))return;const n=t.type[e.keyName];Mr(n)?Cl(Fe(n.bind(this))):Cl(n)}}),Bp=(e,t={})=>{const n=Object.assign({},Vp,t);e.mixin(Hp(n))};function uf(e,t,n){const r=t.shift();if(e[r]||(e[r]={}),!t.length){n&&typeof n=="object"&&!Array.isArray(n)?e[r]={...e[r],...n}:e[r]=n;return}uf(e[r],t,n)}const xl=mn({loadpoints:[]}),si={state:xl,update:function(e){Object.keys(e).forEach(function(t){typeof window.app[t]=="function"?window.app[t]({message:e[t]}):uf(xl,t.split("."),e[t])})}},fe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Up={name:"App",props:{notifications:Array,offline:Boolean},data:()=>({reconnectTimeout:null,ws:null}),mounted:function(){this.connect(),document.addEventListener("visibilitychange",this.pageVisibilityChanged,!1)},unmounted:function(){this.disconnect(),window.clearTimeout(this.reconnectTimeout),document.removeEventListener("visibilitychange",this.pageVisibilityChanged,!1)},methods:{pageVisibilityChanged:function(){document.hidden?(window.clearTimeout(this.reconnectTimeout),this.disconnect()):this.connect()},reconnect:function(){window.clearTimeout(this.reconnectTimeout),this.reconnectTimeout=window.setTimeout(()=>{this.disconnect(),this.connect()},2500)},disconnect:function(){console.log("websocket disconnecting"),this.ws&&(this.ws.onerror=null,this.ws.onopen=null,this.ws.onclose=null,this.ws.onmessage=null,this.ws.close(),this.ws=null)},connect:function(){if(console.log("websocket connect"),!("WebSocket"in window)){window.app.error({message:"Web sockets not supported. Please upgrade your browser."});return}if(this.ws){console.log("websocket already connected");return}const t=window.location,r=(t.protocol=="https:"?"wss:":"ws:")+"//"+t.hostname+(t.port?":"+t.port:"")+t.pathname+"ws";this.ws=new WebSocket(r),this.ws.onerror=()=>{console.error({message:"Websocket error. Trying to reconnect."}),this.ws.close()},this.ws.onopen=()=>{console.log("websocket connected"),window.app.setOnline()},this.ws.onclose=()=>{console.log("websocket disconnected"),window.app.setOffline(),this.reconnect()},this.ws.onmessage=o=>{try{var s=JSON.parse(o.data);si.update(s)}catch(i){window.app.error({message:`Failed to parse web socket data: ${i.message} [${o.data}]`})}}},reload(){window.location.reload()}},metaInfo(){return{title:si.state.siteTitle||""}}},jp={class:"app overflow-hidden"};function Qp(e,t,n,r,o,s){const i=de("metainfo"),a=de("router-view");return M(),F("div",jp,[re(i,null,{title:Ve(({content:l})=>[$e(B(l?`${l} | evcc`:"evcc"),1)]),_:1}),re(a,{notifications:n.notifications,offline:n.offline},null,8,["notifications","offline"])])}const Wp=fe(Up,[["render",Qp],["__scopeId","data-v-8c56982e"]]);/*! + */const Lp=(e,t)=>(n,r)=>{let o=-1;if(r.reduce((s,i,a)=>{const l=e(s,i);return l!==s?(o=a,l):s},t),o>-1)return n[o]},Mp=Lp((e,t)=>{const{depth:n}=t;return!e||n>e?n:e});var Np=Object.freeze({__proto__:null,setup:e=>{let t=0;if(e.vm){let{vm:n}=e;do n.parent&&(t++,n=n.parent);while(n&&n.parent&&n!==n.root)}e.depth=t},resolve:Mp});const $p={body:{tag:"script",to:"body"},base:{valueAttribute:"href"},charset:{tag:"meta",nameless:!0,valueAttribute:"charset"},description:{tag:"meta"},og:{group:!0,namespacedAttribute:!0,tag:"meta",keyAttribute:"property"},twitter:{group:!0,namespacedAttribute:!0,tag:"meta"},htmlAttrs:{attributesFor:"html"},headAttrs:{attributesFor:"head"},bodyAttrs:{attributesFor:"body"}},Ip={title:{attributes:!1},base:{contentAsAttribute:!0,attributes:["href","target"]},meta:{contentAsAttribute:!0,keyAttribute:"name",attributes:["content","name","http-equiv","charset"]},link:{contentAsAttribute:!0,attributes:["href","crossorigin","rel","media","integrity","hreflang","type","referrerpolicy","sizes","imagesrcset","imagesizes","as","color"]},style:{attributes:["media"]},script:{attributes:["src","type","nomodule","async","defer","crossorigin","integrity","referrerpolicy"]},noscript:{attributes:!1}};Object.freeze({}),Object.freeze([]);const wt=Array.isArray,Mr=e=>typeof e=="function",Sl=e=>typeof e=="string",to=e=>e!==null&&typeof e=="object",Pp=Object.prototype.toString,Nr=e=>Pp.call(e)==="[object Object]",Cl=Symbol("kIsProxy"),Op=Symbol("kProxySources"),af=Symbol("kProxyTarget"),Fn=Symbol("kResolveContext");function Qr(e){if(wt(e))return e.map(Qr);if(to(e)){const t={};for(const n in e)t[n]=n==="context"?e[n]:Qr(e[n]);return t}return e}const Ts=(e,t,n)=>{const r=[];for(const o of e)o&&t in o&&(r.push(o[t]),n&&n(o));return r},Ds=(e,t=[],n,r)=>{if(!n&&!r&&({active:n,sources:r}=e,t.length))for(let i=0;il[a]).filter(Boolean)}if(!n||!r)return;const o=((i,...a)=>{const l=i?Object.keys(i):[];if(a){for(const c of a)if(c&&to(c))for(const u in c)l.includes(u)||l.push(u)}return l})(...r),s=Object.keys(n);for(const i of s)o.includes(i)||delete n[i];for(const i of o){let a=!1;for(let f=0;fl.push(f[Fn]));let u=e.resolve(c,l,n[i],i,t);Nr(u)&&(u=Qr(u)),n[i]=u}},lf=(e,t,n,r=[])=>{const o=kp(e,n,r),s=Ui(new Proxy(t,o));return!r.length&&e.sources&&e.sources.push(s),s},kp=(e,t,n=[])=>({get:(r,o,s)=>{if(o===Cl)return!0;if(o===Op)return e.sources;if(o===af)return r;if(o===Fn)return t;let i=Reflect.get(r,o,s);if(!to(i))return i;if(!i[Cl]){const a=[...n,o];i=lf(e,i,t,a),Reflect.set(r,o,i)}return i},set:(r,o,s)=>{const i=Reflect.set(r,o,s);if(i){const a=wt(r);let l,c=!1,{sources:u,active:f}=e,h=0;for(const T of n){if(u=Ts(u,T),a&&h===n.length-1){l=T;break}wt(f)&&(c=!0),f=f[T],h++}if(c)return Ds(e),i;if(Nr(s))return Ds(e,n),i;let p,w=[];a?(p=u,w=u.map(T=>T[Fn])):p=Ts(u,o,T=>w.push(T[Fn]));let b=e.resolve(p,w,f,o,n);Nr(b)&&(b=Qr(b)),a&&l?f[l]=b:f[o]=b}return i},deleteProperty:(r,o)=>{const s=Reflect.deleteProperty(r,o);if(s){const i=wt(r);let a,l=e.sources,c=e.active,u=0;for(const f of n){if(l=l.map(h=>h&&h[f]),i&&u===n.length-1){a=f;break}c=c[f],u++}if(l.some(f=>f&&o in f)){let f,h=[];i?(f=l,h=l.map(w=>w[Fn])):f=Ts(l,o,w=>h.push(w[Fn]));let p=e.resolve(f,h,c,o,n);Nr(p)&&(p=Qr(p)),i&&a?c[a]=p:c[o]=p}else delete c[o]}return s}}),xo={};function Rp(e,t,n,r){return"attributesFor"in r?function(o,s,i,a){const{attributesFor:l}=a;if(!l||!i)return;if(o.isSSR)return{to:"",vnode:pn(`ssr-${l}`,i)};if(!xo[l]){const[h,p]=Array.from(document.querySelectorAll(l));if(!h)return void console.error("Could not find element for selector",l,", won't render attributes");p&&console.warn("Found multiple elements for selector",l),xo[l]={el:h,attrs:[]}}const{el:c,attrs:u}=xo[l];for(const h in i){let p=Ss(o,`${s}(${h})`,i[h],i);wt(p)&&(p=p.join(",")),c.setAttribute(h,p||""),u.includes(h)||u.push(h)}const f=u.filter(h=>!i[h]);for(const h of f)c.removeAttribute(h)}(e,t,n,r):"group"in r?function(o,s,i,a){return wt(i)?(console.warn("Specifying an array for group properties isnt supported"),[]):Object.keys(i).map(l=>{const c={group:s,data:i};if(a.namespaced)c.tagNamespace=a.namespaced===!0?s:a.namespaced;else if(a.namespacedAttribute){const u=a.namespacedAttribute===!0?s:a.namespacedAttribute;c.fullName=`${u}:${l}`,c.slotName=`${u}(${l})`}return Fs(o,s,i[l],a,c)}).filter(Boolean).flat()}(e,t,n,r):Fs(e,t,n,r)}function Fs(e,t,n,r={},o){const s=["content","json","rawContent"],i=T=>function(_,S){for(const A of _){const y=Ip[A];if(A&&y)return y[S]}}([a,r.tag],T);if(wt(n))return n.map(T=>Fs(e,t,T,r,o)).filter(Boolean).flat();const{tag:a=r.tag||t}=n;let l="",c=!1,u=!1;if(Sl(n))l=n;else if(n.children&&wt(n.children))c=!0,l=n.children.map(T=>{const _=Fs(e,t,T,r,o);return wt(_)?_.map(({vnode:S})=>S):_&&_.vnode});else{let T=0;for(const _ of s){if(!l&&n[_]){l=T===1?JSON.stringify(n[_]):n[_],u=T>1;break}T++}}const f=o&&o.fullName||t,h=o&&o.slotName||t;let{attrs:p}=n;if(p||typeof n!="object")p||(p={});else{p={...n},delete p.tag,delete p.children,delete p.to;for(const T of s)delete p[T]}if(c)l=Ss(e,h,l,n);else{const T=!!i("contentAsAttribute");let{valueAttribute:_}=r;if(!_&&T){const[S]=i("attributes");_=Sl(T)?T:S}if(_){const{nameless:S}=r;if(!S){const A=r.keyAttribute||i("keyAttribute");A&&(p[A]=f)}p[_]=Ss(e,h,p[_]||l,o),l=""}else l=Ss(e,h,l,n)}const w=o&&o.tagNamespace?`${o.tagNamespace}:${a}`:a;if(w==="title"&&!e.isSSR)return void(document.title=l);u&&l&&(p.innerHTML=l);const b=pn(w,p,l||void 0);return{to:n.to,vnode:b}}function Ss({metainfo:e,slots:t},n,r,o){const s=t&&t[n];if(!s||!Mr(s))return r;const i={content:r,metainfo:e};if(o&&o.group){const{group:l,data:c}=o;i[l]=c}const a=s(i);if(a&&a.length){const{children:l}=a[0];return l?l.toString():""}return r}const Dp=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Fp=(e=>Dp?Symbol("[vue-meta]: "+e):"[vue-meta]: "+e)("meta_active");function cf(e,t,n){for(const r in t)r in n?to(e[r])?cf(e[r],t[r],n[r]):t[r]!==n[r]&&(e[r]=t[r]):e[r]=t[r];for(const r in n)t&&r in t||delete e[r]}function uf(e){if(e||(e=Xt()||void 0),e)return e.appContext.config.globalProperties.$metaManager}function Al(e,t){const n=Xt()||void 0;if(!t&&n&&(t=uf(n)),!t)throw new Error("No manager or current instance");Bi(e)&&(Nt(e,(o,s)=>{cf(r.meta,o,s)}),e=e.value);const r=t.addMeta(e,n);return r}const qp=Ki({name:"Metainfo",inheritAttrs:!1,setup:(e,{slots:t})=>()=>{const n=uf();if(n)return n.render({slots:t})}});function xl(e,t,n,r){const o=wt(r)?r:[r];e?n.endsWith("Attrs")||o.forEach(s=>{s.props||(s.props={}),s.props["data-vm-ssr"]=!0}):o.forEach((s,i)=>{s.type===Gt&&o.splice(i,1)}),t[n]||(t[n]=[]),t[n].push(...o)}const Vp=(e=!1,t,n)=>Cs.create(e,t||$p,n||Np),Ba=class{constructor(t,n,r,o){bn(this,"isSSR",!1);bn(this,"config");bn(this,"target");bn(this,"resolver");bn(this,"ssrCleanedUp",!1);this.isSSR=t,this.config=n,this.target=r,o&&"setup"in o&&Mr(o.setup)&&(this.resolver=o)}install(t){t.component("Metainfo",qp),t.config.globalProperties.$metaManager=this,t.provide(Fp,this.target.context.active)}addMeta(t,n){n||(n=Xt()||void 0);const r={removed:[]},o={vm:n},{resolver:s}=this;s&&s.setup&&s.setup(o);const i=this.target.addSource(t,o,!0),a=l=>this.unmount(!!l,i,r,n);return n&&Zs(a),{meta:i,onRemoved:l=>r.removed.push(l),unmount:a}}unmount(t,n,r,o){if(o){const{$el:s}=o.proxy;if(s&&s.offsetParent){let i=new MutationObserver(a=>{for(const{removedNodes:l}of a)l&&l.forEach(c=>{c===s&&i&&(i.disconnect(),i=void 0,this.reallyUnmount(t,n,r))})});return void i.observe(s.parentNode,{childList:!0})}}this.reallyUnmount(t,n,r)}async reallyUnmount(t,n,r){this.target.delSource(n),!t&&r&&await Promise.all(r.removed.map(o=>o()))}render({slots:t}={}){const n=this.target.context.active,{isSSR:r}=this;if(!r&&!this.ssrCleanedUp){this.ssrCleanedUp=!0;const s=()=>{const i=document.querySelectorAll("[data-vm-ssr]");i&&i.length&&i.forEach(a=>a.parentNode&&a.parentNode.removeChild(a))};document.readyState==="loading"?window.addEventListener("DOMContentLoaded",s,{once:!0}):s()}const o={};for(const s in n){const i=this.config[s]||{};let a=Rp({isSSR:r,metainfo:n,slots:t},s,n[s],i);if(!a)continue;wt(a)||(a=[a]);let l=s!=="base"&&n[s].to;!l&&"to"in i&&(l=i.to),!l&&"attributesFor"in i&&(l=s);for(const{to:c,vnode:u}of a)xl(this.isSSR,o,c||l||"head",u)}if(t)for(const s in t){const i=s==="default"?"head":s;if(i!=="head"&&i!=="body")continue;const a=t[s];Mr(a)&&xl(this.isSSR,o,i,a({metainfo:n}))}return Object.keys(o).map(s=>pn(dr,{to:s},o[s]))}};let Cs=Ba;bn(Cs,"create",(t,n,r)=>{const o=((s,i)=>{const a=[],l={active:i,resolve:s,sources:a},c=()=>Ds(l);return{context:l,compute:c,addSource:(u,f,h=!1)=>{const p=lf(l,u,f||{});return h&&c(),p},delSource:(u,f=!0)=>{const h=a.findIndex(p=>p===u||p[af]===u);return h>-1&&(a.splice(h,1),f&&c(),!0)}}})((s,i,a,l,c)=>Mr(r)?r(s,i,a,l,c):r.resolve(s,i,a,l,c),mn({}));return new Ba(t,n,o,r)});const Hp={keyName:"metaInfo"},Bp=e=>({created(){const t=Xt();if(!(t!=null&&t.type)||!(e.keyName in t.type))return;const n=t.type[e.keyName];Mr(n)?Al(Fe(n.bind(this))):Al(n)}}),Up=(e,t={})=>{const n=Object.assign({},Hp,t);e.mixin(Bp(n))};function ff(e,t,n){const r=t.shift();if(e[r]||(e[r]={}),!t.length){n&&typeof n=="object"&&!Array.isArray(n)?e[r]={...e[r],...n}:e[r]=n;return}ff(e[r],t,n)}const Ll=mn({loadpoints:[]}),si={state:Ll,update:function(e){Object.keys(e).forEach(function(t){typeof window.app[t]=="function"?window.app[t]({message:e[t]}):ff(Ll,t.split("."),e[t])})}},fe=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},jp={name:"App",props:{notifications:Array,offline:Boolean},data:()=>({reconnectTimeout:null,ws:null}),mounted:function(){this.connect(),document.addEventListener("visibilitychange",this.pageVisibilityChanged,!1)},unmounted:function(){this.disconnect(),window.clearTimeout(this.reconnectTimeout),document.removeEventListener("visibilitychange",this.pageVisibilityChanged,!1)},methods:{pageVisibilityChanged:function(){document.hidden?(window.clearTimeout(this.reconnectTimeout),this.disconnect()):this.connect()},reconnect:function(){window.clearTimeout(this.reconnectTimeout),this.reconnectTimeout=window.setTimeout(()=>{this.disconnect(),this.connect()},2500)},disconnect:function(){console.log("websocket disconnecting"),this.ws&&(this.ws.onerror=null,this.ws.onopen=null,this.ws.onclose=null,this.ws.onmessage=null,this.ws.close(),this.ws=null)},connect:function(){if(console.log("websocket connect"),!("WebSocket"in window)){window.app.error({message:"Web sockets not supported. Please upgrade your browser."});return}if(this.ws){console.log("websocket already connected");return}const t=window.location,r=(t.protocol=="https:"?"wss:":"ws:")+"//"+t.hostname+(t.port?":"+t.port:"")+t.pathname+"ws";this.ws=new WebSocket(r),this.ws.onerror=()=>{console.error({message:"Websocket error. Trying to reconnect."}),this.ws.close()},this.ws.onopen=()=>{console.log("websocket connected"),window.app.setOnline()},this.ws.onclose=()=>{console.log("websocket disconnected"),window.app.setOffline(),this.reconnect()},this.ws.onmessage=o=>{try{var s=JSON.parse(o.data);si.update(s)}catch(i){window.app.error({message:`Failed to parse web socket data: ${i.message} [${o.data}]`})}}},reload(){window.location.reload()}},metaInfo(){return{title:si.state.siteTitle||""}}},Qp={class:"app overflow-hidden"};function Wp(e,t,n,r,o,s){const i=de("metainfo"),a=de("router-view");return M(),F("div",Qp,[re(i,null,{title:Ve(({content:l})=>[$e(B(l?`${l} | evcc`:"evcc"),1)]),_:1}),re(a,{notifications:n.notifications,offline:n.offline},null,8,["notifications","offline"])])}const zp=fe(jp,[["render",Wp],["__scopeId","data-v-8c56982e"]]);/*! * vue-router v4.1.6 * (c) 2022 Eduardo San Martin Morote * @license MIT - */const qn=typeof window<"u";function zp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Oe=Object.assign;function Lo(e,t){const n={};for(const r in t){const o=t[r];n[r]=$t(o)?o.map(e):e(o)}return n}const $r=()=>{},$t=Array.isArray,Kp=/\/$/,Yp=e=>e.replace(Kp,"");function Mo(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=Jp(r!=null?r:t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function Zp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ll(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gp(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Jn(t.matched[r],n.matched[o])&&ff(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ff(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Xp(e[n],t[n]))return!1;return!0}function Xp(e,t){return $t(e)?Ml(e,t):$t(t)?Ml(t,e):e===t}function Ml(e,t){return $t(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Jp(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,i;for(s=0;s1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Wr;(function(e){e.pop="pop",e.push="push"})(Wr||(Wr={}));var Ir;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ir||(Ir={}));function e1(e){if(!e)if(qn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Yp(e)}const t1=/^[^#]+#/;function n1(e,t){return e.replace(t1,"#")+t}function r1(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const no=()=>({left:window.pageXOffset,top:window.pageYOffset});function s1(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=r1(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Nl(e,t){return(history.state?history.state.position-t:-1)+e}const oi=new Map;function o1(e,t){oi.set(e,t)}function i1(e){const t=oi.get(e);return oi.delete(e),t}let a1=()=>location.protocol+"//"+location.host;function df(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Ll(l,"")}return Ll(n,e)+r+o}function l1(e,t,n,r){let o=[],s=[],i=null;const a=({state:h})=>{const p=df(e,location),w=n.value,b=t.value;let T=0;if(h){if(n.value=p,t.value=h,i&&i===w){i=null;return}T=b?h.position-b.position:0}else r(p);o.forEach(_=>{_(n.value,w,{delta:T,type:Wr.pop,direction:T?T>0?Ir.forward:Ir.back:Ir.unknown})})};function l(){i=n.value}function c(h){o.push(h);const p=()=>{const w=o.indexOf(h);w>-1&&o.splice(w,1)};return s.push(p),p}function u(){const{history:h}=window;!h.state||h.replaceState(Oe({},h.state,{scroll:no()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:f}}function $l(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?no():null}}function c1(e){const{history:t,location:n}=window,r={value:df(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:a1()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](h)}}function i(l,c){const u=Oe({},t.state,$l(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Oe({},o.value,t.state,{forward:l,scroll:no()});s(u.current,u,!0);const f=Oe({},$l(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function u1(e){e=e1(e);const t=c1(e),n=l1(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Oe({location:"",base:e,go:r,createHref:n1.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function f1(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),u1(e)}function d1(e){return typeof e=="string"||e&&typeof e=="object"}function hf(e){return typeof e=="string"||typeof e=="symbol"}const rn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},mf=Symbol("");var Il;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Il||(Il={}));function er(e,t){return Oe(new Error,{type:e,[mf]:!0},t)}function Qt(e,t){return e instanceof Error&&mf in e&&(t==null||!!(e.type&t))}const Ol="[^/]+?",h1={sensitive:!1,strict:!1,start:!0,end:!0},m1=/[.+*?^${}()[\]/\\]/g;function p1(e,t){const n=Oe({},h1,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function _1(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const v1={type:0,value:""},b1=/[a-zA-Z0-9_]/;function y1(e){if(!e)return[[]];if(e==="/")return[[v1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){!c||(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{i(S)}:$r}function i(u){if(hf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!pf(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Rl(u)&&r.set(u.record.name,u)}function c(u,f){let h,p={},w,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw er(1,{location:u});b=h.record.name,p=Oe(kl(f.params,h.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&kl(u.params,h.keys.map(S=>S.name))),w=h.stringify(p)}else if("path"in u)w=u.path,h=n.find(S=>S.re.test(w)),h&&(p=h.parse(w),b=h.record.name);else{if(h=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!h)throw er(1,{location:u,currentLocation:f});b=h.record.name,p=Oe({},f.params,u.params),w=h.stringify(p)}const T=[];let _=h;for(;_;)T.unshift(_.record),_=_.parent;return{name:b,path:w,params:p,matched:T,meta:C1(T)}}return e.forEach(u=>s(u)),{addRoute:s,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function kl(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function T1(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:S1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function S1(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Rl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function C1(e){return e.reduce((t,n)=>Oe(t,n.meta),{})}function Dl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function pf(e,t){return t.children.some(n=>n===e||pf(e,n))}const gf=/#/g,A1=/&/g,x1=/\//g,L1=/=/g,M1=/\?/g,_f=/\+/g,N1=/%5B/g,$1=/%5D/g,vf=/%5E/g,I1=/%60/g,bf=/%7B/g,O1=/%7C/g,yf=/%7D/g,P1=/%20/g;function ea(e){return encodeURI(""+e).replace(O1,"|").replace(N1,"[").replace($1,"]")}function k1(e){return ea(e).replace(bf,"{").replace(yf,"}").replace(vf,"^")}function ii(e){return ea(e).replace(_f,"%2B").replace(P1,"+").replace(gf,"%23").replace(A1,"%26").replace(I1,"`").replace(bf,"{").replace(yf,"}").replace(vf,"^")}function R1(e){return ii(e).replace(L1,"%3D")}function D1(e){return ea(e).replace(gf,"%23").replace(M1,"%3F")}function F1(e){return e==null?"":D1(e).replace(x1,"%2F")}function qs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function q1(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&ii(s)):[r&&ii(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function V1(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=$t(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const H1=Symbol(""),ql=Symbol(""),ta=Symbol(""),wf=Symbol(""),ai=Symbol("");function yr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ln(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(er(4,{from:n,to:t})):f instanceof Error?a(f):d1(f)?a(er(2,{from:t,to:f})):(s&&r.enterCallbacks[o]===s&&typeof f=="function"&&s.push(f),i())},c=e.call(r&&r.instances[o],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function No(e,t,n,r){const o=[];for(const s of e)for(const i in s.components){let a=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(B1(a)){const c=(a.__vccOpts||a)[t];c&&o.push(ln(c,n,r,s,i))}else{let l=a();o.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const u=zp(c)?c.default:c;s.components[i]=u;const h=(u.__vccOpts||u)[t];return h&&ln(h,n,r,s,i)()}))}}return o}function B1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Vl(e){const t=Ht(ta),n=Ht(wf),r=Fe(()=>t.resolve(Wn(e.to))),o=Fe(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(Jn.bind(null,u));if(h>-1)return h;const p=Hl(l[c-2]);return c>1&&Hl(u)===p&&f[f.length-1].path!==p?f.findIndex(Jn.bind(null,l[c-2])):h}),s=Fe(()=>o.value>-1&&W1(n.params,r.value.params)),i=Fe(()=>o.value>-1&&o.value===n.matched.length-1&&ff(n.params,r.value.params));function a(l={}){return Q1(l)?t[Wn(e.replace)?"replace":"push"](Wn(e.to)).catch($r):Promise.resolve()}return{route:r,href:Fe(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const U1=zi({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Vl,setup(e,{slots:t}){const n=mn(Vl(e)),{options:r}=Ht(ta),o=Fe(()=>({[Bl(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Bl(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:pn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),j1=U1;function Q1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function W1(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!$t(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Hl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Bl=(e,t,n)=>e!=null?e:t!=null?t:n,z1=zi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ht(ai),o=Fe(()=>e.route||r.value),s=Ht(ql,0),i=Fe(()=>{let c=Wn(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Fe(()=>o.value.matched[i.value]);ws(ql,Fe(()=>i.value+1)),ws(H1,a),ws(ai,o);const l=At();return Nt(()=>[l.value,a.value,e.name],([c,u,f],[h,p,w])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Jn(u,p)||!h)&&(u.enterCallbacks[f]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,h=f&&f.components[u];if(!h)return Ul(n.default,{Component:h,route:c});const p=f.props[u],w=p?p===!0?c.params:typeof p=="function"?p(c):p:null,T=pn(h,Oe({},w,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return Ul(n.default,{Component:T,route:c})||T}}});function Ul(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const K1=z1;function Y1(e){const t=E1(e.routes,e),n=e.parseQuery||q1,r=e.stringifyQuery||Fl,o=e.history,s=yr(),i=yr(),a=yr(),l=Lu(rn);let c=rn;qn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Lo.bind(null,H=>""+H),f=Lo.bind(null,F1),h=Lo.bind(null,qs);function p(H,W){let L,q;return hf(H)?(L=t.getRecordMatcher(H),q=W):q=H,t.addRoute(q,L)}function w(H){const W=t.getRecordMatcher(H);W&&t.removeRoute(W)}function b(){return t.getRoutes().map(H=>H.record)}function T(H){return!!t.getRecordMatcher(H)}function _(H,W){if(W=Oe({},W||l.value),typeof H=="string"){const v=Mo(n,H,W.path),d=t.resolve({path:v.path},W),m=o.createHref(v.fullPath);return Oe(v,d,{params:h(d.params),hash:qs(v.hash),redirectedFrom:void 0,href:m})}let L;if("path"in H)L=Oe({},H,{path:Mo(n,H.path,W.path).path});else{const v=Oe({},H.params);for(const d in v)v[d]==null&&delete v[d];L=Oe({},H,{params:f(H.params)}),W.params=f(W.params)}const q=t.resolve(L,W),J=H.hash||"";q.params=u(h(q.params));const ue=Zp(r,Oe({},H,{hash:k1(J),path:q.path})),ie=o.createHref(ue);return Oe({fullPath:ue,hash:J,query:r===Fl?V1(H.query):H.query||{}},q,{redirectedFrom:void 0,href:ie})}function S(H){return typeof H=="string"?Mo(n,H,l.value.path):Oe({},H)}function A(H,W){if(c!==H)return er(8,{from:W,to:H})}function y(H){return P(H)}function C(H){return y(Oe(S(H),{replace:!0}))}function x(H){const W=H.matched[H.matched.length-1];if(W&&W.redirect){const{redirect:L}=W;let q=typeof L=="function"?L(H):L;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),Oe({query:H.query,hash:H.hash,params:"path"in q?{}:H.params},q)}}function P(H,W){const L=c=_(H),q=l.value,J=H.state,ue=H.force,ie=H.replace===!0,v=x(L);if(v)return P(Oe(S(v),{state:typeof v=="object"?Oe({},J,v.state):J,force:ue,replace:ie}),W||L);const d=L;d.redirectedFrom=W;let m;return!ue&&Gp(r,q,L)&&(m=er(16,{to:d,from:q}),he(q,q,!0,!1)),(m?Promise.resolve(m):Y(d,q)).catch(E=>Qt(E)?Qt(E,2)?E:le(E):G(E,d,q)).then(E=>{if(E){if(Qt(E,2))return P(Oe({replace:ie},S(E.to),{state:typeof E.to=="object"?Oe({},J,E.to.state):J,force:ue}),W||d)}else E=ne(d,q,!0,ie,J);return ee(d,q,E),E})}function K(H,W){const L=A(H,W);return L?Promise.reject(L):Promise.resolve()}function Y(H,W){let L;const[q,J,ue]=Z1(H,W);L=No(q.reverse(),"beforeRouteLeave",H,W);for(const v of q)v.leaveGuards.forEach(d=>{L.push(ln(d,H,W))});const ie=K.bind(null,H,W);return L.push(ie),Dn(L).then(()=>{L=[];for(const v of s.list())L.push(ln(v,H,W));return L.push(ie),Dn(L)}).then(()=>{L=No(J,"beforeRouteUpdate",H,W);for(const v of J)v.updateGuards.forEach(d=>{L.push(ln(d,H,W))});return L.push(ie),Dn(L)}).then(()=>{L=[];for(const v of H.matched)if(v.beforeEnter&&!W.matched.includes(v))if($t(v.beforeEnter))for(const d of v.beforeEnter)L.push(ln(d,H,W));else L.push(ln(v.beforeEnter,H,W));return L.push(ie),Dn(L)}).then(()=>(H.matched.forEach(v=>v.enterCallbacks={}),L=No(ue,"beforeRouteEnter",H,W),L.push(ie),Dn(L))).then(()=>{L=[];for(const v of i.list())L.push(ln(v,H,W));return L.push(ie),Dn(L)}).catch(v=>Qt(v,8)?v:Promise.reject(v))}function ee(H,W,L){for(const q of a.list())q(H,W,L)}function ne(H,W,L,q,J){const ue=A(H,W);if(ue)return ue;const ie=W===rn,v=qn?history.state:{};L&&(q||ie?o.replace(H.fullPath,Oe({scroll:ie&&v&&v.scroll},J)):o.push(H.fullPath,J)),l.value=H,he(H,W,L,ie),le()}let R;function X(){R||(R=o.listen((H,W,L)=>{if(!pe.listening)return;const q=_(H),J=x(q);if(J){P(Oe(J,{replace:!0}),q).catch($r);return}c=q;const ue=l.value;qn&&o1(Nl(ue.fullPath,L.delta),no()),Y(q,ue).catch(ie=>Qt(ie,12)?ie:Qt(ie,2)?(P(ie.to,q).then(v=>{Qt(v,20)&&!L.delta&&L.type===Wr.pop&&o.go(-1,!1)}).catch($r),Promise.reject()):(L.delta&&o.go(-L.delta,!1),G(ie,q,ue))).then(ie=>{ie=ie||ne(q,ue,!1),ie&&(L.delta&&!Qt(ie,8)?o.go(-L.delta,!1):L.type===Wr.pop&&Qt(ie,20)&&o.go(-1,!1)),ee(q,ue,ie)}).catch($r)}))}let I=yr(),N=yr(),Z;function G(H,W,L){le(H);const q=N.list();return q.length?q.forEach(J=>J(H,W,L)):console.error(H),Promise.reject(H)}function te(){return Z&&l.value!==rn?Promise.resolve():new Promise((H,W)=>{I.add([H,W])})}function le(H){return Z||(Z=!H,X(),I.list().forEach(([W,L])=>H?L(H):W()),I.reset()),H}function he(H,W,L,q){const{scrollBehavior:J}=e;if(!qn||!J)return Promise.resolve();const ue=!L&&i1(Nl(H.fullPath,0))||(q||!L)&&history.state&&history.state.scroll||null;return Qi().then(()=>J(H,W,ue)).then(ie=>ie&&s1(ie)).catch(ie=>G(ie,H,W))}const ae=H=>o.go(H);let me;const Te=new Set,pe={currentRoute:l,listening:!0,addRoute:p,removeRoute:w,hasRoute:T,getRoutes:b,resolve:_,options:e,push:y,replace:C,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:N.add,isReady:te,install(H){const W=this;H.component("RouterLink",j1),H.component("RouterView",K1),H.config.globalProperties.$router=W,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>Wn(l)}),qn&&!me&&l.value===rn&&(me=!0,y(o.location).catch(J=>{}));const L={};for(const J in rn)L[J]=Fe(()=>l.value[J]);H.provide(ta,W),H.provide(wf,mn(L)),H.provide(ai,l);const q=H.unmount;Te.add(H),H.unmount=function(){Te.delete(H),Te.size<1&&(c=rn,R&&R(),R=null,l.value=rn,me=!1,Z=!1),q()}}};return pe}function Dn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function Z1(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iJn(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Jn(c,l))||o.push(l))}return[n,r,o]}if(!document.querySelector("style[data-shopicon]")){const e=document.createElement("style");e.setAttribute("data-shopicon",!0),e.innerHTML=` + */const qn=typeof window<"u";function Kp(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const Pe=Object.assign;function Lo(e,t){const n={};for(const r in t){const o=t[r];n[r]=$t(o)?o.map(e):e(o)}return n}const $r=()=>{},$t=Array.isArray,Yp=/\/$/,Zp=e=>e.replace(Yp,"");function Mo(e,t,n="/"){let r,o={},s="",i="";const a=t.indexOf("#");let l=t.indexOf("?");return a=0&&(l=-1),l>-1&&(r=t.slice(0,l),s=t.slice(l+1,a>-1?a:t.length),o=e(s)),a>-1&&(r=r||t.slice(0,a),i=t.slice(a,t.length)),r=e1(r!=null?r:t,n),{fullPath:r+(s&&"?")+s+i,path:r,query:o,hash:i}}function Gp(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Ml(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Xp(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Jn(t.matched[r],n.matched[o])&&df(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Jn(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function df(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Jp(e[n],t[n]))return!1;return!0}function Jp(e,t){return $t(e)?Nl(e,t):$t(t)?Nl(t,e):e===t}function Nl(e,t){return $t(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function e1(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let o=n.length-1,s,i;for(s=0;s1&&o--;else break;return n.slice(0,o).join("/")+"/"+r.slice(s-(s===r.length?1:0)).join("/")}var Wr;(function(e){e.pop="pop",e.push="push"})(Wr||(Wr={}));var Ir;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ir||(Ir={}));function t1(e){if(!e)if(qn){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Zp(e)}const n1=/^[^#]+#/;function r1(e,t){return e.replace(n1,"#")+t}function s1(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const no=()=>({left:window.pageXOffset,top:window.pageYOffset});function o1(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=s1(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function $l(e,t){return(history.state?history.state.position-t:-1)+e}const oi=new Map;function i1(e,t){oi.set(e,t)}function a1(e){const t=oi.get(e);return oi.delete(e),t}let l1=()=>location.protocol+"//"+location.host;function hf(e,t){const{pathname:n,search:r,hash:o}=t,s=e.indexOf("#");if(s>-1){let a=o.includes(e.slice(s))?e.slice(s).length:1,l=o.slice(a);return l[0]!=="/"&&(l="/"+l),Ml(l,"")}return Ml(n,e)+r+o}function c1(e,t,n,r){let o=[],s=[],i=null;const a=({state:h})=>{const p=hf(e,location),w=n.value,b=t.value;let T=0;if(h){if(n.value=p,t.value=h,i&&i===w){i=null;return}T=b?h.position-b.position:0}else r(p);o.forEach(_=>{_(n.value,w,{delta:T,type:Wr.pop,direction:T?T>0?Ir.forward:Ir.back:Ir.unknown})})};function l(){i=n.value}function c(h){o.push(h);const p=()=>{const w=o.indexOf(h);w>-1&&o.splice(w,1)};return s.push(p),p}function u(){const{history:h}=window;!h.state||h.replaceState(Pe({},h.state,{scroll:no()}),"")}function f(){for(const h of s)h();s=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",u)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",u),{pauseListeners:l,listen:c,destroy:f}}function Il(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?no():null}}function u1(e){const{history:t,location:n}=window,r={value:hf(e,n)},o={value:t.state};o.value||s(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(l,c,u){const f=e.indexOf("#"),h=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+l:l1()+e+l;try{t[u?"replaceState":"pushState"](c,"",h),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](h)}}function i(l,c){const u=Pe({},t.state,Il(o.value.back,l,o.value.forward,!0),c,{position:o.value.position});s(l,u,!0),r.value=l}function a(l,c){const u=Pe({},o.value,t.state,{forward:l,scroll:no()});s(u.current,u,!0);const f=Pe({},Il(r.value,l,null),{position:u.position+1},c);s(l,f,!1),r.value=l}return{location:r,state:o,push:a,replace:i}}function f1(e){e=t1(e);const t=u1(e),n=c1(e,t.state,t.location,t.replace);function r(s,i=!0){i||n.pauseListeners(),history.go(s)}const o=Pe({location:"",base:e,go:r,createHref:r1.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function d1(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),f1(e)}function h1(e){return typeof e=="string"||e&&typeof e=="object"}function mf(e){return typeof e=="string"||typeof e=="symbol"}const rn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},pf=Symbol("");var Pl;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Pl||(Pl={}));function er(e,t){return Pe(new Error,{type:e,[pf]:!0},t)}function Qt(e,t){return e instanceof Error&&pf in e&&(t==null||!!(e.type&t))}const Ol="[^/]+?",m1={sensitive:!1,strict:!1,start:!0,end:!0},p1=/[.+*?^${}()[\]/\\]/g;function g1(e,t){const n=Pe({},m1,t),r=[];let o=n.start?"^":"";const s=[];for(const c of e){const u=c.length?[]:[90];n.strict&&!c.length&&(o+="/");for(let f=0;ft.length?t.length===1&&t[0]===40+40?1:-1:0}function v1(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const b1={type:0,value:""},y1=/[a-zA-Z0-9_]/;function w1(e){if(!e)return[[]];if(e==="/")return[[b1]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=0,r=n;const o=[];let s;function i(){s&&o.push(s),s=[]}let a=0,l,c="",u="";function f(){!c||(n===0?s.push({type:0,value:c}):n===1||n===2||n===3?(s.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:1,value:c,regexp:u,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function h(){c+=l}for(;a{i(S)}:$r}function i(u){if(mf(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(i),f.alias.forEach(i))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(i),u.alias.forEach(i))}}function a(){return n}function l(u){let f=0;for(;f=0&&(u.record.path!==n[f].record.path||!gf(u,n[f]));)f++;n.splice(f,0,u),u.record.name&&!Dl(u)&&r.set(u.record.name,u)}function c(u,f){let h,p={},w,b;if("name"in u&&u.name){if(h=r.get(u.name),!h)throw er(1,{location:u});b=h.record.name,p=Pe(Rl(f.params,h.keys.filter(S=>!S.optional).map(S=>S.name)),u.params&&Rl(u.params,h.keys.map(S=>S.name))),w=h.stringify(p)}else if("path"in u)w=u.path,h=n.find(S=>S.re.test(w)),h&&(p=h.parse(w),b=h.record.name);else{if(h=f.name?r.get(f.name):n.find(S=>S.re.test(f.path)),!h)throw er(1,{location:u,currentLocation:f});b=h.record.name,p=Pe({},f.params,u.params),w=h.stringify(p)}const T=[];let _=h;for(;_;)T.unshift(_.record),_=_.parent;return{name:b,path:w,params:p,matched:T,meta:A1(T)}}return e.forEach(u=>s(u)),{addRoute:s,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:o}}function Rl(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function S1(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:C1(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function C1(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function Dl(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function A1(e){return e.reduce((t,n)=>Pe(t,n.meta),{})}function Fl(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function gf(e,t){return t.children.some(n=>n===e||gf(e,n))}const _f=/#/g,x1=/&/g,L1=/\//g,M1=/=/g,N1=/\?/g,vf=/\+/g,$1=/%5B/g,I1=/%5D/g,bf=/%5E/g,P1=/%60/g,yf=/%7B/g,O1=/%7C/g,wf=/%7D/g,k1=/%20/g;function ta(e){return encodeURI(""+e).replace(O1,"|").replace($1,"[").replace(I1,"]")}function R1(e){return ta(e).replace(yf,"{").replace(wf,"}").replace(bf,"^")}function ii(e){return ta(e).replace(vf,"%2B").replace(k1,"+").replace(_f,"%23").replace(x1,"%26").replace(P1,"`").replace(yf,"{").replace(wf,"}").replace(bf,"^")}function D1(e){return ii(e).replace(M1,"%3D")}function F1(e){return ta(e).replace(_f,"%23").replace(N1,"%3F")}function q1(e){return e==null?"":F1(e).replace(L1,"%2F")}function qs(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function V1(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;os&&ii(s)):[r&&ii(r)]).forEach(s=>{s!==void 0&&(t+=(t.length?"&":"")+n,s!=null&&(t+="="+s))})}return t}function H1(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=$t(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const B1=Symbol(""),Vl=Symbol(""),na=Symbol(""),Ef=Symbol(""),ai=Symbol("");function yr(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function ln(e,t,n,r,o){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((i,a)=>{const l=f=>{f===!1?a(er(4,{from:n,to:t})):f instanceof Error?a(f):h1(f)?a(er(2,{from:t,to:f})):(s&&r.enterCallbacks[o]===s&&typeof f=="function"&&s.push(f),i())},c=e.call(r&&r.instances[o],t,n,l);let u=Promise.resolve(c);e.length<3&&(u=u.then(l)),u.catch(f=>a(f))})}function No(e,t,n,r){const o=[];for(const s of e)for(const i in s.components){let a=s.components[i];if(!(t!=="beforeRouteEnter"&&!s.instances[i]))if(U1(a)){const c=(a.__vccOpts||a)[t];c&&o.push(ln(c,n,r,s,i))}else{let l=a();o.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${s.path}"`));const u=Kp(c)?c.default:c;s.components[i]=u;const h=(u.__vccOpts||u)[t];return h&&ln(h,n,r,s,i)()}))}}return o}function U1(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Hl(e){const t=Ht(na),n=Ht(Ef),r=Fe(()=>t.resolve(Wn(e.to))),o=Fe(()=>{const{matched:l}=r.value,{length:c}=l,u=l[c-1],f=n.matched;if(!u||!f.length)return-1;const h=f.findIndex(Jn.bind(null,u));if(h>-1)return h;const p=Bl(l[c-2]);return c>1&&Bl(u)===p&&f[f.length-1].path!==p?f.findIndex(Jn.bind(null,l[c-2])):h}),s=Fe(()=>o.value>-1&&z1(n.params,r.value.params)),i=Fe(()=>o.value>-1&&o.value===n.matched.length-1&&df(n.params,r.value.params));function a(l={}){return W1(l)?t[Wn(e.replace)?"replace":"push"](Wn(e.to)).catch($r):Promise.resolve()}return{route:r,href:Fe(()=>r.value.href),isActive:s,isExactActive:i,navigate:a}}const j1=Ki({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Hl,setup(e,{slots:t}){const n=mn(Hl(e)),{options:r}=Ht(na),o=Fe(()=>({[Ul(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ul(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&t.default(n);return e.custom?s:pn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),Q1=j1;function W1(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function z1(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!$t(o)||o.length!==r.length||r.some((s,i)=>s!==o[i]))return!1}return!0}function Bl(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ul=(e,t,n)=>e!=null?e:t!=null?t:n,K1=Ki({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ht(ai),o=Fe(()=>e.route||r.value),s=Ht(Vl,0),i=Fe(()=>{let c=Wn(s);const{matched:u}=o.value;let f;for(;(f=u[c])&&!f.components;)c++;return c}),a=Fe(()=>o.value.matched[i.value]);ws(Vl,Fe(()=>i.value+1)),ws(B1,a),ws(ai,o);const l=At();return Nt(()=>[l.value,a.value,e.name],([c,u,f],[h,p,w])=>{u&&(u.instances[f]=c,p&&p!==u&&c&&c===h&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!Jn(u,p)||!h)&&(u.enterCallbacks[f]||[]).forEach(b=>b(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,f=a.value,h=f&&f.components[u];if(!h)return jl(n.default,{Component:h,route:c});const p=f.props[u],w=p?p===!0?c.params:typeof p=="function"?p(c):p:null,T=pn(h,Pe({},w,t,{onVnodeUnmounted:_=>{_.component.isUnmounted&&(f.instances[u]=null)},ref:l}));return jl(n.default,{Component:T,route:c})||T}}});function jl(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Y1=K1;function Z1(e){const t=T1(e.routes,e),n=e.parseQuery||V1,r=e.stringifyQuery||ql,o=e.history,s=yr(),i=yr(),a=yr(),l=Mu(rn);let c=rn;qn&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=Lo.bind(null,H=>""+H),f=Lo.bind(null,q1),h=Lo.bind(null,qs);function p(H,W){let L,q;return mf(H)?(L=t.getRecordMatcher(H),q=W):q=H,t.addRoute(q,L)}function w(H){const W=t.getRecordMatcher(H);W&&t.removeRoute(W)}function b(){return t.getRoutes().map(H=>H.record)}function T(H){return!!t.getRecordMatcher(H)}function _(H,W){if(W=Pe({},W||l.value),typeof H=="string"){const v=Mo(n,H,W.path),d=t.resolve({path:v.path},W),m=o.createHref(v.fullPath);return Pe(v,d,{params:h(d.params),hash:qs(v.hash),redirectedFrom:void 0,href:m})}let L;if("path"in H)L=Pe({},H,{path:Mo(n,H.path,W.path).path});else{const v=Pe({},H.params);for(const d in v)v[d]==null&&delete v[d];L=Pe({},H,{params:f(H.params)}),W.params=f(W.params)}const q=t.resolve(L,W),J=H.hash||"";q.params=u(h(q.params));const ue=Gp(r,Pe({},H,{hash:R1(J),path:q.path})),ie=o.createHref(ue);return Pe({fullPath:ue,hash:J,query:r===ql?H1(H.query):H.query||{}},q,{redirectedFrom:void 0,href:ie})}function S(H){return typeof H=="string"?Mo(n,H,l.value.path):Pe({},H)}function A(H,W){if(c!==H)return er(8,{from:W,to:H})}function y(H){return O(H)}function C(H){return y(Pe(S(H),{replace:!0}))}function x(H){const W=H.matched[H.matched.length-1];if(W&&W.redirect){const{redirect:L}=W;let q=typeof L=="function"?L(H):L;return typeof q=="string"&&(q=q.includes("?")||q.includes("#")?q=S(q):{path:q},q.params={}),Pe({query:H.query,hash:H.hash,params:"path"in q?{}:H.params},q)}}function O(H,W){const L=c=_(H),q=l.value,J=H.state,ue=H.force,ie=H.replace===!0,v=x(L);if(v)return O(Pe(S(v),{state:typeof v=="object"?Pe({},J,v.state):J,force:ue,replace:ie}),W||L);const d=L;d.redirectedFrom=W;let m;return!ue&&Xp(r,q,L)&&(m=er(16,{to:d,from:q}),he(q,q,!0,!1)),(m?Promise.resolve(m):Y(d,q)).catch(E=>Qt(E)?Qt(E,2)?E:le(E):G(E,d,q)).then(E=>{if(E){if(Qt(E,2))return O(Pe({replace:ie},S(E.to),{state:typeof E.to=="object"?Pe({},J,E.to.state):J,force:ue}),W||d)}else E=ne(d,q,!0,ie,J);return ee(d,q,E),E})}function K(H,W){const L=A(H,W);return L?Promise.reject(L):Promise.resolve()}function Y(H,W){let L;const[q,J,ue]=G1(H,W);L=No(q.reverse(),"beforeRouteLeave",H,W);for(const v of q)v.leaveGuards.forEach(d=>{L.push(ln(d,H,W))});const ie=K.bind(null,H,W);return L.push(ie),Dn(L).then(()=>{L=[];for(const v of s.list())L.push(ln(v,H,W));return L.push(ie),Dn(L)}).then(()=>{L=No(J,"beforeRouteUpdate",H,W);for(const v of J)v.updateGuards.forEach(d=>{L.push(ln(d,H,W))});return L.push(ie),Dn(L)}).then(()=>{L=[];for(const v of H.matched)if(v.beforeEnter&&!W.matched.includes(v))if($t(v.beforeEnter))for(const d of v.beforeEnter)L.push(ln(d,H,W));else L.push(ln(v.beforeEnter,H,W));return L.push(ie),Dn(L)}).then(()=>(H.matched.forEach(v=>v.enterCallbacks={}),L=No(ue,"beforeRouteEnter",H,W),L.push(ie),Dn(L))).then(()=>{L=[];for(const v of i.list())L.push(ln(v,H,W));return L.push(ie),Dn(L)}).catch(v=>Qt(v,8)?v:Promise.reject(v))}function ee(H,W,L){for(const q of a.list())q(H,W,L)}function ne(H,W,L,q,J){const ue=A(H,W);if(ue)return ue;const ie=W===rn,v=qn?history.state:{};L&&(q||ie?o.replace(H.fullPath,Pe({scroll:ie&&v&&v.scroll},J)):o.push(H.fullPath,J)),l.value=H,he(H,W,L,ie),le()}let R;function X(){R||(R=o.listen((H,W,L)=>{if(!pe.listening)return;const q=_(H),J=x(q);if(J){O(Pe(J,{replace:!0}),q).catch($r);return}c=q;const ue=l.value;qn&&i1($l(ue.fullPath,L.delta),no()),Y(q,ue).catch(ie=>Qt(ie,12)?ie:Qt(ie,2)?(O(ie.to,q).then(v=>{Qt(v,20)&&!L.delta&&L.type===Wr.pop&&o.go(-1,!1)}).catch($r),Promise.reject()):(L.delta&&o.go(-L.delta,!1),G(ie,q,ue))).then(ie=>{ie=ie||ne(q,ue,!1),ie&&(L.delta&&!Qt(ie,8)?o.go(-L.delta,!1):L.type===Wr.pop&&Qt(ie,20)&&o.go(-1,!1)),ee(q,ue,ie)}).catch($r)}))}let I=yr(),N=yr(),Z;function G(H,W,L){le(H);const q=N.list();return q.length?q.forEach(J=>J(H,W,L)):console.error(H),Promise.reject(H)}function te(){return Z&&l.value!==rn?Promise.resolve():new Promise((H,W)=>{I.add([H,W])})}function le(H){return Z||(Z=!H,X(),I.list().forEach(([W,L])=>H?L(H):W()),I.reset()),H}function he(H,W,L,q){const{scrollBehavior:J}=e;if(!qn||!J)return Promise.resolve();const ue=!L&&a1($l(H.fullPath,0))||(q||!L)&&history.state&&history.state.scroll||null;return Wi().then(()=>J(H,W,ue)).then(ie=>ie&&o1(ie)).catch(ie=>G(ie,H,W))}const ae=H=>o.go(H);let me;const Te=new Set,pe={currentRoute:l,listening:!0,addRoute:p,removeRoute:w,hasRoute:T,getRoutes:b,resolve:_,options:e,push:y,replace:C,go:ae,back:()=>ae(-1),forward:()=>ae(1),beforeEach:s.add,beforeResolve:i.add,afterEach:a.add,onError:N.add,isReady:te,install(H){const W=this;H.component("RouterLink",Q1),H.component("RouterView",Y1),H.config.globalProperties.$router=W,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>Wn(l)}),qn&&!me&&l.value===rn&&(me=!0,y(o.location).catch(J=>{}));const L={};for(const J in rn)L[J]=Fe(()=>l.value[J]);H.provide(na,W),H.provide(Ef,mn(L)),H.provide(ai,l);const q=H.unmount;Te.add(H),H.unmount=function(){Te.delete(H),Te.size<1&&(c=rn,R&&R(),R=null,l.value=rn,me=!1,Z=!1),q()}}};return pe}function Dn(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function G1(e,t){const n=[],r=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let i=0;iJn(c,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>Jn(c,l))||o.push(l))}return[n,r,o]}if(!document.querySelector("style[data-shopicon]")){const e=document.createElement("style");e.setAttribute("data-shopicon",!0),e.innerHTML=` [data-shopicon] { display: block; width: 24px; aspect-ratio: 1; } [data-shopicon][size=m] { width: 32px; } [data-shopicon][size=l] { width: 48px; } @@ -18,99 +18,99 @@ var rh=Object.defineProperty;var sh=(e,t,n)=>t in e?rh(e,t,{enumerable:!0,config [data-shopicon] path:not([fill]), [data-shopicon] polygon:not([fill]), [data-shopicon] rect:not([fill]) { fill: currentColor; } - `,document.head.appendChild(e)}var G1='';class X1 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=G1}}window.customElements.define("shopicon-regular-arrowup",X1);var Ef={exports:{}},hs={exports:{}};/*! + `,document.head.appendChild(e)}var X1='';class J1 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=X1}}window.customElements.define("shopicon-regular-arrowup",J1);var Tf={exports:{}},hs={exports:{}};/*! * Bootstrap index.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var jl;function It(){return jl||(jl=1,function(e,t){(function(n,r){r(t)})(et,function(n){const s="transitionend",i=R=>R==null?`${R}`:Object.prototype.toString.call(R).match(/\s([a-z]+)/i)[1].toLowerCase(),a=R=>{do R+=Math.floor(Math.random()*1e6);while(document.getElementById(R));return R},l=R=>{let X=R.getAttribute("data-bs-target");if(!X||X==="#"){let I=R.getAttribute("href");if(!I||!I.includes("#")&&!I.startsWith("."))return null;I.includes("#")&&!I.startsWith("#")&&(I=`#${I.split("#")[1]}`),X=I&&I!=="#"?I.trim():null}return X},c=R=>{const X=l(R);return X&&document.querySelector(X)?X:null},u=R=>{const X=l(R);return X?document.querySelector(X):null},f=R=>{if(!R)return 0;let{transitionDuration:X,transitionDelay:I}=window.getComputedStyle(R);const N=Number.parseFloat(X),Z=Number.parseFloat(I);return!N&&!Z?0:(X=X.split(",")[0],I=I.split(",")[0],(Number.parseFloat(X)+Number.parseFloat(I))*1e3)},h=R=>{R.dispatchEvent(new Event(s))},p=R=>!R||typeof R!="object"?!1:(typeof R.jquery<"u"&&(R=R[0]),typeof R.nodeType<"u"),w=R=>p(R)?R.jquery?R[0]:R:typeof R=="string"&&R.length>0?document.querySelector(R):null,b=R=>{if(!p(R)||R.getClientRects().length===0)return!1;const X=getComputedStyle(R).getPropertyValue("visibility")==="visible",I=R.closest("details:not([open])");if(!I)return X;if(I!==R){const N=R.closest("summary");if(N&&N.parentNode!==I||N===null)return!1}return X},T=R=>!R||R.nodeType!==Node.ELEMENT_NODE||R.classList.contains("disabled")?!0:typeof R.disabled<"u"?R.disabled:R.hasAttribute("disabled")&&R.getAttribute("disabled")!=="false",_=R=>{if(!document.documentElement.attachShadow)return null;if(typeof R.getRootNode=="function"){const X=R.getRootNode();return X instanceof ShadowRoot?X:null}return R instanceof ShadowRoot?R:R.parentNode?_(R.parentNode):null},S=()=>{},A=R=>{R.offsetHeight},y=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,C=[],x=R=>{document.readyState==="loading"?(C.length||document.addEventListener("DOMContentLoaded",()=>{for(const X of C)X()}),C.push(R)):R()},P=()=>document.documentElement.dir==="rtl",K=R=>{x(()=>{const X=y();if(X){const I=R.NAME,N=X.fn[I];X.fn[I]=R.jQueryInterface,X.fn[I].Constructor=R,X.fn[I].noConflict=()=>(X.fn[I]=N,R.jQueryInterface)}})},Y=R=>{typeof R=="function"&&R()},ee=(R,X,I=!0)=>{if(!I){Y(R);return}const N=5,Z=f(X)+N;let G=!1;const te=({target:le})=>{le===X&&(G=!0,X.removeEventListener(s,te),Y(R))};X.addEventListener(s,te),setTimeout(()=>{G||h(X)},Z)},ne=(R,X,I,N)=>{const Z=R.length;let G=R.indexOf(X);return G===-1?!I&&N?R[Z-1]:R[0]:(G+=I?1:-1,N&&(G=(G+Z)%Z),R[Math.max(0,Math.min(G,Z-1))])};n.defineJQueryPlugin=K,n.execute=Y,n.executeAfterTransition=ee,n.findShadowRoot=_,n.getElement=w,n.getElementFromSelector=u,n.getNextActiveElement=ne,n.getSelectorFromElement=c,n.getTransitionDurationFromElement=f,n.getUID=a,n.getjQuery=y,n.isDisabled=T,n.isElement=p,n.isRTL=P,n.isVisible=b,n.noop=S,n.onDOMContentLoaded=x,n.reflow=A,n.toType=i,n.triggerTransitionEnd=h,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(hs,hs.exports)),hs.exports}var $o={exports:{}};/*! + */var Ql;function It(){return Ql||(Ql=1,function(e,t){(function(n,r){r(t)})(et,function(n){const s="transitionend",i=R=>R==null?`${R}`:Object.prototype.toString.call(R).match(/\s([a-z]+)/i)[1].toLowerCase(),a=R=>{do R+=Math.floor(Math.random()*1e6);while(document.getElementById(R));return R},l=R=>{let X=R.getAttribute("data-bs-target");if(!X||X==="#"){let I=R.getAttribute("href");if(!I||!I.includes("#")&&!I.startsWith("."))return null;I.includes("#")&&!I.startsWith("#")&&(I=`#${I.split("#")[1]}`),X=I&&I!=="#"?I.trim():null}return X},c=R=>{const X=l(R);return X&&document.querySelector(X)?X:null},u=R=>{const X=l(R);return X?document.querySelector(X):null},f=R=>{if(!R)return 0;let{transitionDuration:X,transitionDelay:I}=window.getComputedStyle(R);const N=Number.parseFloat(X),Z=Number.parseFloat(I);return!N&&!Z?0:(X=X.split(",")[0],I=I.split(",")[0],(Number.parseFloat(X)+Number.parseFloat(I))*1e3)},h=R=>{R.dispatchEvent(new Event(s))},p=R=>!R||typeof R!="object"?!1:(typeof R.jquery<"u"&&(R=R[0]),typeof R.nodeType<"u"),w=R=>p(R)?R.jquery?R[0]:R:typeof R=="string"&&R.length>0?document.querySelector(R):null,b=R=>{if(!p(R)||R.getClientRects().length===0)return!1;const X=getComputedStyle(R).getPropertyValue("visibility")==="visible",I=R.closest("details:not([open])");if(!I)return X;if(I!==R){const N=R.closest("summary");if(N&&N.parentNode!==I||N===null)return!1}return X},T=R=>!R||R.nodeType!==Node.ELEMENT_NODE||R.classList.contains("disabled")?!0:typeof R.disabled<"u"?R.disabled:R.hasAttribute("disabled")&&R.getAttribute("disabled")!=="false",_=R=>{if(!document.documentElement.attachShadow)return null;if(typeof R.getRootNode=="function"){const X=R.getRootNode();return X instanceof ShadowRoot?X:null}return R instanceof ShadowRoot?R:R.parentNode?_(R.parentNode):null},S=()=>{},A=R=>{R.offsetHeight},y=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,C=[],x=R=>{document.readyState==="loading"?(C.length||document.addEventListener("DOMContentLoaded",()=>{for(const X of C)X()}),C.push(R)):R()},O=()=>document.documentElement.dir==="rtl",K=R=>{x(()=>{const X=y();if(X){const I=R.NAME,N=X.fn[I];X.fn[I]=R.jQueryInterface,X.fn[I].Constructor=R,X.fn[I].noConflict=()=>(X.fn[I]=N,R.jQueryInterface)}})},Y=R=>{typeof R=="function"&&R()},ee=(R,X,I=!0)=>{if(!I){Y(R);return}const N=5,Z=f(X)+N;let G=!1;const te=({target:le})=>{le===X&&(G=!0,X.removeEventListener(s,te),Y(R))};X.addEventListener(s,te),setTimeout(()=>{G||h(X)},Z)},ne=(R,X,I,N)=>{const Z=R.length;let G=R.indexOf(X);return G===-1?!I&&N?R[Z-1]:R[0]:(G+=I?1:-1,N&&(G=(G+Z)%Z),R[Math.max(0,Math.min(G,Z-1))])};n.defineJQueryPlugin=K,n.execute=Y,n.executeAfterTransition=ee,n.findShadowRoot=_,n.getElement=w,n.getElementFromSelector=u,n.getNextActiveElement=ne,n.getSelectorFromElement=c,n.getTransitionDurationFromElement=f,n.getUID=a,n.getjQuery=y,n.isDisabled=T,n.isElement=p,n.isRTL=O,n.isVisible=b,n.noop=S,n.onDOMContentLoaded=x,n.reflow=A,n.toType=i,n.triggerTransitionEnd=h,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(hs,hs.exports)),hs.exports}var $o={exports:{}};/*! * Bootstrap event-handler.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Ql;function On(){return Ql||(Ql=1,function(e,t){(function(n,r){e.exports=r(It())})(et,function(n){const r=/[^.]*(?=\..*)\.|.*/,o=/\..*/,s=/::\d+$/,i={};let a=1;const l={mouseenter:"mouseover",mouseleave:"mouseout"},c=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function u(x,P){return P&&`${P}::${a++}`||x.uidEvent||a++}function f(x){const P=u(x);return x.uidEvent=P,i[P]=i[P]||{},i[P]}function h(x,P){return function K(Y){return C(Y,{delegateTarget:x}),K.oneOff&&y.off(x,Y.type,P),P.apply(x,[Y])}}function p(x,P,K){return function Y(ee){const ne=x.querySelectorAll(P);for(let{target:R}=ee;R&&R!==this;R=R.parentNode)for(const X of ne)if(X===R)return C(ee,{delegateTarget:R}),Y.oneOff&&y.off(x,ee.type,P,K),K.apply(R,[ee])}}function w(x,P,K=null){return Object.values(x).find(Y=>Y.callable===P&&Y.delegationSelector===K)}function b(x,P,K){const Y=typeof P=="string",ee=Y?K:P||K;let ne=A(x);return c.has(ne)||(ne=x),[Y,ee,ne]}function T(x,P,K,Y,ee){if(typeof P!="string"||!x)return;let[ne,R,X]=b(P,K,Y);P in l&&(R=(he=>function(ae){if(!ae.relatedTarget||ae.relatedTarget!==ae.delegateTarget&&!ae.delegateTarget.contains(ae.relatedTarget))return he.call(this,ae)})(R));const I=f(x),N=I[X]||(I[X]={}),Z=w(N,R,ne?K:null);if(Z){Z.oneOff=Z.oneOff&ⅇreturn}const G=u(R,P.replace(r,"")),te=ne?p(x,K,R):h(x,R);te.delegationSelector=ne?K:null,te.callable=R,te.oneOff=ee,te.uidEvent=G,N[G]=te,x.addEventListener(X,te,ne)}function _(x,P,K,Y,ee){const ne=w(P[K],Y,ee);!ne||(x.removeEventListener(K,ne,Boolean(ee)),delete P[K][ne.uidEvent])}function S(x,P,K,Y){const ee=P[K]||{};for(const ne of Object.keys(ee))if(ne.includes(Y)){const R=ee[ne];_(x,P,K,R.callable,R.delegationSelector)}}function A(x){return x=x.replace(o,""),l[x]||x}const y={on(x,P,K,Y){T(x,P,K,Y,!1)},one(x,P,K,Y){T(x,P,K,Y,!0)},off(x,P,K,Y){if(typeof P!="string"||!x)return;const[ee,ne,R]=b(P,K,Y),X=R!==P,I=f(x),N=I[R]||{},Z=P.startsWith(".");if(typeof ne<"u"){if(!Object.keys(N).length)return;_(x,I,R,ne,ee?K:null);return}if(Z)for(const G of Object.keys(I))S(x,I,G,P.slice(1));for(const G of Object.keys(N)){const te=G.replace(s,"");if(!X||P.includes(te)){const le=N[G];_(x,I,R,le.callable,le.delegationSelector)}}},trigger(x,P,K){if(typeof P!="string"||!x)return null;const Y=n.getjQuery(),ee=A(P),ne=P!==ee;let R=null,X=!0,I=!0,N=!1;ne&&Y&&(R=Y.Event(P,K),Y(x).trigger(R),X=!R.isPropagationStopped(),I=!R.isImmediatePropagationStopped(),N=R.isDefaultPrevented());let Z=new Event(P,{bubbles:X,cancelable:!0});return Z=C(Z,K),N&&Z.preventDefault(),I&&x.dispatchEvent(Z),Z.defaultPrevented&&R&&R.preventDefault(),Z}};function C(x,P){for(const[K,Y]of Object.entries(P||{}))try{x[K]=Y}catch{Object.defineProperty(x,K,{configurable:!0,get(){return Y}})}return x}return y})}($o)),$o.exports}var Io={exports:{}};/*! + */var Wl;function Pn(){return Wl||(Wl=1,function(e,t){(function(n,r){e.exports=r(It())})(et,function(n){const r=/[^.]*(?=\..*)\.|.*/,o=/\..*/,s=/::\d+$/,i={};let a=1;const l={mouseenter:"mouseover",mouseleave:"mouseout"},c=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function u(x,O){return O&&`${O}::${a++}`||x.uidEvent||a++}function f(x){const O=u(x);return x.uidEvent=O,i[O]=i[O]||{},i[O]}function h(x,O){return function K(Y){return C(Y,{delegateTarget:x}),K.oneOff&&y.off(x,Y.type,O),O.apply(x,[Y])}}function p(x,O,K){return function Y(ee){const ne=x.querySelectorAll(O);for(let{target:R}=ee;R&&R!==this;R=R.parentNode)for(const X of ne)if(X===R)return C(ee,{delegateTarget:R}),Y.oneOff&&y.off(x,ee.type,O,K),K.apply(R,[ee])}}function w(x,O,K=null){return Object.values(x).find(Y=>Y.callable===O&&Y.delegationSelector===K)}function b(x,O,K){const Y=typeof O=="string",ee=Y?K:O||K;let ne=A(x);return c.has(ne)||(ne=x),[Y,ee,ne]}function T(x,O,K,Y,ee){if(typeof O!="string"||!x)return;let[ne,R,X]=b(O,K,Y);O in l&&(R=(he=>function(ae){if(!ae.relatedTarget||ae.relatedTarget!==ae.delegateTarget&&!ae.delegateTarget.contains(ae.relatedTarget))return he.call(this,ae)})(R));const I=f(x),N=I[X]||(I[X]={}),Z=w(N,R,ne?K:null);if(Z){Z.oneOff=Z.oneOff&ⅇreturn}const G=u(R,O.replace(r,"")),te=ne?p(x,K,R):h(x,R);te.delegationSelector=ne?K:null,te.callable=R,te.oneOff=ee,te.uidEvent=G,N[G]=te,x.addEventListener(X,te,ne)}function _(x,O,K,Y,ee){const ne=w(O[K],Y,ee);!ne||(x.removeEventListener(K,ne,Boolean(ee)),delete O[K][ne.uidEvent])}function S(x,O,K,Y){const ee=O[K]||{};for(const ne of Object.keys(ee))if(ne.includes(Y)){const R=ee[ne];_(x,O,K,R.callable,R.delegationSelector)}}function A(x){return x=x.replace(o,""),l[x]||x}const y={on(x,O,K,Y){T(x,O,K,Y,!1)},one(x,O,K,Y){T(x,O,K,Y,!0)},off(x,O,K,Y){if(typeof O!="string"||!x)return;const[ee,ne,R]=b(O,K,Y),X=R!==O,I=f(x),N=I[R]||{},Z=O.startsWith(".");if(typeof ne<"u"){if(!Object.keys(N).length)return;_(x,I,R,ne,ee?K:null);return}if(Z)for(const G of Object.keys(I))S(x,I,G,O.slice(1));for(const G of Object.keys(N)){const te=G.replace(s,"");if(!X||O.includes(te)){const le=N[G];_(x,I,R,le.callable,le.delegationSelector)}}},trigger(x,O,K){if(typeof O!="string"||!x)return null;const Y=n.getjQuery(),ee=A(O),ne=O!==ee;let R=null,X=!0,I=!0,N=!1;ne&&Y&&(R=Y.Event(O,K),Y(x).trigger(R),X=!R.isPropagationStopped(),I=!R.isImmediatePropagationStopped(),N=R.isDefaultPrevented());let Z=new Event(O,{bubbles:X,cancelable:!0});return Z=C(Z,K),N&&Z.preventDefault(),I&&x.dispatchEvent(Z),Z.defaultPrevented&&R&&R.preventDefault(),Z}};function C(x,O){for(const[K,Y]of Object.entries(O||{}))try{x[K]=Y}catch{Object.defineProperty(x,K,{configurable:!0,get(){return Y}})}return x}return y})}($o)),$o.exports}var Io={exports:{}};/*! * Bootstrap selector-engine.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Wl;function Gr(){return Wl||(Wl=1,function(e,t){(function(n,r){e.exports=r(It())})(et,function(n){return{find(o,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,o))},findOne(o,s=document.documentElement){return Element.prototype.querySelector.call(s,o)},children(o,s){return[].concat(...o.children).filter(i=>i.matches(s))},parents(o,s){const i=[];let a=o.parentNode.closest(s);for(;a;)i.push(a),a=a.parentNode.closest(s);return i},prev(o,s){let i=o.previousElementSibling;for(;i;){if(i.matches(s))return[i];i=i.previousElementSibling}return[]},next(o,s){let i=o.nextElementSibling;for(;i;){if(i.matches(s))return[i];i=i.nextElementSibling}return[]},focusableChildren(o){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(s,o).filter(i=>!n.isDisabled(i)&&n.isVisible(i))}}})}(Io)),Io.exports}var Oo={exports:{}},Po={exports:{}};/*! + */var zl;function Gr(){return zl||(zl=1,function(e,t){(function(n,r){e.exports=r(It())})(et,function(n){return{find(o,s=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(s,o))},findOne(o,s=document.documentElement){return Element.prototype.querySelector.call(s,o)},children(o,s){return[].concat(...o.children).filter(i=>i.matches(s))},parents(o,s){const i=[];let a=o.parentNode.closest(s);for(;a;)i.push(a),a=a.parentNode.closest(s);return i},prev(o,s){let i=o.previousElementSibling;for(;i;){if(i.matches(s))return[i];i=i.previousElementSibling}return[]},next(o,s){let i=o.nextElementSibling;for(;i;){if(i.matches(s))return[i];i=i.nextElementSibling}return[]},focusableChildren(o){const s=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(s,o).filter(i=>!n.isDisabled(i)&&n.isVisible(i))}}})}(Io)),Io.exports}var Po={exports:{}},Oo={exports:{}};/*! * Bootstrap manipulator.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var zl;function ro(){return zl||(zl=1,function(e,t){(function(n,r){e.exports=r()})(et,function(){function n(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function r(s){return s.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}return{setDataAttribute(s,i,a){s.setAttribute(`data-bs-${r(i)}`,a)},removeDataAttribute(s,i){s.removeAttribute(`data-bs-${r(i)}`)},getDataAttributes(s){if(!s)return{};const i={},a=Object.keys(s.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(const l of a){let c=l.replace(/^bs/,"");c=c.charAt(0).toLowerCase()+c.slice(1,c.length),i[c]=n(s.dataset[l])}return i},getDataAttribute(s,i){return n(s.getAttribute(`data-bs-${r(i)}`))}}})}(Po)),Po.exports}/*! + */var Kl;function ro(){return Kl||(Kl=1,function(e,t){(function(n,r){e.exports=r()})(et,function(){function n(s){if(s==="true")return!0;if(s==="false")return!1;if(s===Number(s).toString())return Number(s);if(s===""||s==="null")return null;if(typeof s!="string")return s;try{return JSON.parse(decodeURIComponent(s))}catch{return s}}function r(s){return s.replace(/[A-Z]/g,i=>`-${i.toLowerCase()}`)}return{setDataAttribute(s,i,a){s.setAttribute(`data-bs-${r(i)}`,a)},removeDataAttribute(s,i){s.removeAttribute(`data-bs-${r(i)}`)},getDataAttributes(s){if(!s)return{};const i={},a=Object.keys(s.dataset).filter(l=>l.startsWith("bs")&&!l.startsWith("bsConfig"));for(const l of a){let c=l.replace(/^bs/,"");c=c.charAt(0).toLowerCase()+c.slice(1,c.length),i[c]=n(s.dataset[l])}return i},getDataAttribute(s,i){return n(s.getAttribute(`data-bs-${r(i)}`))}}})}(Oo)),Oo.exports}/*! * Bootstrap scrollbar.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Kl;function J1(){return Kl||(Kl=1,function(e,t){(function(n,r){e.exports=r(Gr(),ro(),It())})(et,function(n,r,o){const s=p=>p&&typeof p=="object"&&"default"in p?p:{default:p},i=s(n),a=s(r),l=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",c=".sticky-top",u="padding-right",f="margin-right";class h{constructor(){this._element=document.body}getWidth(){const w=document.documentElement.clientWidth;return Math.abs(window.innerWidth-w)}hide(){const w=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,u,b=>b+w),this._setElementAttributes(l,u,b=>b+w),this._setElementAttributes(c,f,b=>b-w)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,u),this._resetElementAttributes(l,u),this._resetElementAttributes(c,f)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(w,b,T){const _=this.getWidth(),S=A=>{if(A!==this._element&&window.innerWidth>A.clientWidth+_)return;this._saveInitialAttribute(A,b);const y=window.getComputedStyle(A).getPropertyValue(b);A.style.setProperty(b,`${T(Number.parseFloat(y))}px`)};this._applyManipulationCallback(w,S)}_saveInitialAttribute(w,b){const T=w.style.getPropertyValue(b);T&&a.default.setDataAttribute(w,b,T)}_resetElementAttributes(w,b){const T=_=>{const S=a.default.getDataAttribute(_,b);if(S===null){_.style.removeProperty(b);return}a.default.removeDataAttribute(_,b),_.style.setProperty(b,S)};this._applyManipulationCallback(w,T)}_applyManipulationCallback(w,b){if(o.isElement(w)){b(w);return}for(const T of i.default.find(w,this._element))b(T)}}return h})}(Oo)),Oo.exports}var ko={exports:{}},Ro={exports:{}};/*! + */var Yl;function eg(){return Yl||(Yl=1,function(e,t){(function(n,r){e.exports=r(Gr(),ro(),It())})(et,function(n,r,o){const s=p=>p&&typeof p=="object"&&"default"in p?p:{default:p},i=s(n),a=s(r),l=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",c=".sticky-top",u="padding-right",f="margin-right";class h{constructor(){this._element=document.body}getWidth(){const w=document.documentElement.clientWidth;return Math.abs(window.innerWidth-w)}hide(){const w=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,u,b=>b+w),this._setElementAttributes(l,u,b=>b+w),this._setElementAttributes(c,f,b=>b-w)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,u),this._resetElementAttributes(l,u),this._resetElementAttributes(c,f)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(w,b,T){const _=this.getWidth(),S=A=>{if(A!==this._element&&window.innerWidth>A.clientWidth+_)return;this._saveInitialAttribute(A,b);const y=window.getComputedStyle(A).getPropertyValue(b);A.style.setProperty(b,`${T(Number.parseFloat(y))}px`)};this._applyManipulationCallback(w,S)}_saveInitialAttribute(w,b){const T=w.style.getPropertyValue(b);T&&a.default.setDataAttribute(w,b,T)}_resetElementAttributes(w,b){const T=_=>{const S=a.default.getDataAttribute(_,b);if(S===null){_.style.removeProperty(b);return}a.default.removeDataAttribute(_,b),_.style.setProperty(b,S)};this._applyManipulationCallback(w,T)}_applyManipulationCallback(w,b){if(o.isElement(w)){b(w);return}for(const T of i.default.find(w,this._element))b(T)}}return h})}(Po)),Po.exports}var ko={exports:{}},Ro={exports:{}};/*! * Bootstrap data.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Yl;function eg(){return Yl||(Yl=1,function(e,t){(function(n,r){e.exports=r()})(et,function(){const n=new Map;return{set(o,s,i){n.has(o)||n.set(o,new Map);const a=n.get(o);if(!a.has(s)&&a.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`);return}a.set(s,i)},get(o,s){return n.has(o)&&n.get(o).get(s)||null},remove(o,s){if(!n.has(o))return;const i=n.get(o);i.delete(s),i.size===0&&n.delete(o)}}})}(Ro)),Ro.exports}var Do={exports:{}};/*! + */var Zl;function tg(){return Zl||(Zl=1,function(e,t){(function(n,r){e.exports=r()})(et,function(){const n=new Map;return{set(o,s,i){n.has(o)||n.set(o,new Map);const a=n.get(o);if(!a.has(s)&&a.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`);return}a.set(s,i)},get(o,s){return n.has(o)&&n.get(o).get(s)||null},remove(o,s){if(!n.has(o))return;const i=n.get(o);i.delete(s),i.size===0&&n.delete(o)}}})}(Ro)),Ro.exports}var Do={exports:{}};/*! * Bootstrap config.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Zl;function so(){return Zl||(Zl=1,function(e,t){(function(n,r){e.exports=r(It(),ro())})(et,function(n,r){const s=(a=>a&&typeof a=="object"&&"default"in a?a:{default:a})(r);class i{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(l){return l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l}_mergeConfigObj(l,c){const u=n.isElement(c)?s.default.getDataAttribute(c,"config"):{};return{...this.constructor.Default,...typeof u=="object"?u:{},...n.isElement(c)?s.default.getDataAttributes(c):{},...typeof l=="object"?l:{}}}_typeCheckConfig(l,c=this.constructor.DefaultType){for(const u of Object.keys(c)){const f=c[u],h=l[u],p=n.isElement(h)?"element":n.toType(h);if(!new RegExp(f).test(p))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${u}" provided type "${p}" but expected type "${f}".`)}}}return i})}(Do)),Do.exports}/*! + */var Gl;function so(){return Gl||(Gl=1,function(e,t){(function(n,r){e.exports=r(It(),ro())})(et,function(n,r){const s=(a=>a&&typeof a=="object"&&"default"in a?a:{default:a})(r);class i{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(l){return l=this._mergeConfigObj(l),l=this._configAfterMerge(l),this._typeCheckConfig(l),l}_configAfterMerge(l){return l}_mergeConfigObj(l,c){const u=n.isElement(c)?s.default.getDataAttribute(c,"config"):{};return{...this.constructor.Default,...typeof u=="object"?u:{},...n.isElement(c)?s.default.getDataAttributes(c):{},...typeof l=="object"?l:{}}}_typeCheckConfig(l,c=this.constructor.DefaultType){for(const u of Object.keys(c)){const f=c[u],h=l[u],p=n.isElement(h)?"element":n.toType(h);if(!new RegExp(f).test(p))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${u}" provided type "${p}" but expected type "${f}".`)}}}return i})}(Do)),Do.exports}/*! * Bootstrap base-component.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Gl;function na(){return Gl||(Gl=1,function(e,t){(function(n,r){e.exports=r(eg(),It(),On(),so())})(et,function(n,r,o,s){const i=h=>h&&typeof h=="object"&&"default"in h?h:{default:h},a=i(n),l=i(o),c=i(s),u="5.2.3";class f extends c.default{constructor(p,w){super(),p=r.getElement(p),p&&(this._element=p,this._config=this._getConfig(w),a.default.set(this._element,this.constructor.DATA_KEY,this))}dispose(){a.default.remove(this._element,this.constructor.DATA_KEY),l.default.off(this._element,this.constructor.EVENT_KEY);for(const p of Object.getOwnPropertyNames(this))this[p]=null}_queueCallback(p,w,b=!0){r.executeAfterTransition(p,w,b)}_getConfig(p){return p=this._mergeConfigObj(p,this._element),p=this._configAfterMerge(p),this._typeCheckConfig(p),p}static getInstance(p){return a.default.get(r.getElement(p),this.DATA_KEY)}static getOrCreateInstance(p,w={}){return this.getInstance(p)||new this(p,typeof w=="object"?w:null)}static get VERSION(){return u}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(p){return`${p}${this.EVENT_KEY}`}}return f})}(ko)),ko.exports}var Fo={exports:{}};/*! + */var Xl;function ra(){return Xl||(Xl=1,function(e,t){(function(n,r){e.exports=r(tg(),It(),Pn(),so())})(et,function(n,r,o,s){const i=h=>h&&typeof h=="object"&&"default"in h?h:{default:h},a=i(n),l=i(o),c=i(s),u="5.2.3";class f extends c.default{constructor(p,w){super(),p=r.getElement(p),p&&(this._element=p,this._config=this._getConfig(w),a.default.set(this._element,this.constructor.DATA_KEY,this))}dispose(){a.default.remove(this._element,this.constructor.DATA_KEY),l.default.off(this._element,this.constructor.EVENT_KEY);for(const p of Object.getOwnPropertyNames(this))this[p]=null}_queueCallback(p,w,b=!0){r.executeAfterTransition(p,w,b)}_getConfig(p){return p=this._mergeConfigObj(p,this._element),p=this._configAfterMerge(p),this._typeCheckConfig(p),p}static getInstance(p){return a.default.get(r.getElement(p),this.DATA_KEY)}static getOrCreateInstance(p,w={}){return this.getInstance(p)||new this(p,typeof w=="object"?w:null)}static get VERSION(){return u}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(p){return`${p}${this.EVENT_KEY}`}}return f})}(ko)),ko.exports}var Fo={exports:{}};/*! * Bootstrap backdrop.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Xl;function tg(){return Xl||(Xl=1,function(e,t){(function(n,r){e.exports=r(On(),It(),so())})(et,function(n,r,o){const s=b=>b&&typeof b=="object"&&"default"in b?b:{default:b},i=s(n),a=s(o),l="backdrop",c="fade",u="show",f=`mousedown.bs.${l}`,h={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},p={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class w extends a.default{constructor(T){super(),this._config=this._getConfig(T),this._isAppended=!1,this._element=null}static get Default(){return h}static get DefaultType(){return p}static get NAME(){return l}show(T){if(!this._config.isVisible){r.execute(T);return}this._append();const _=this._getElement();this._config.isAnimated&&r.reflow(_),_.classList.add(u),this._emulateAnimation(()=>{r.execute(T)})}hide(T){if(!this._config.isVisible){r.execute(T);return}this._getElement().classList.remove(u),this._emulateAnimation(()=>{this.dispose(),r.execute(T)})}dispose(){!this._isAppended||(i.default.off(this._element,f),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const T=document.createElement("div");T.className=this._config.className,this._config.isAnimated&&T.classList.add(c),this._element=T}return this._element}_configAfterMerge(T){return T.rootElement=r.getElement(T.rootElement),T}_append(){if(this._isAppended)return;const T=this._getElement();this._config.rootElement.append(T),i.default.on(T,f,()=>{r.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(T){r.executeAfterTransition(T,this._getElement(),this._config.isAnimated)}}return w})}(Fo)),Fo.exports}var qo={exports:{}};/*! + */var Jl;function ng(){return Jl||(Jl=1,function(e,t){(function(n,r){e.exports=r(Pn(),It(),so())})(et,function(n,r,o){const s=b=>b&&typeof b=="object"&&"default"in b?b:{default:b},i=s(n),a=s(o),l="backdrop",c="fade",u="show",f=`mousedown.bs.${l}`,h={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},p={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class w extends a.default{constructor(T){super(),this._config=this._getConfig(T),this._isAppended=!1,this._element=null}static get Default(){return h}static get DefaultType(){return p}static get NAME(){return l}show(T){if(!this._config.isVisible){r.execute(T);return}this._append();const _=this._getElement();this._config.isAnimated&&r.reflow(_),_.classList.add(u),this._emulateAnimation(()=>{r.execute(T)})}hide(T){if(!this._config.isVisible){r.execute(T);return}this._getElement().classList.remove(u),this._emulateAnimation(()=>{this.dispose(),r.execute(T)})}dispose(){!this._isAppended||(i.default.off(this._element,f),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const T=document.createElement("div");T.className=this._config.className,this._config.isAnimated&&T.classList.add(c),this._element=T}return this._element}_configAfterMerge(T){return T.rootElement=r.getElement(T.rootElement),T}_append(){if(this._isAppended)return;const T=this._getElement();this._config.rootElement.append(T),i.default.on(T,f,()=>{r.execute(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(T){r.executeAfterTransition(T,this._getElement(),this._config.isAnimated)}}return w})}(Fo)),Fo.exports}var qo={exports:{}};/*! * Bootstrap focustrap.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Jl;function ng(){return Jl||(Jl=1,function(e,t){(function(n,r){e.exports=r(On(),Gr(),so())})(et,function(n,r,o){const s=y=>y&&typeof y=="object"&&"default"in y?y:{default:y},i=s(n),a=s(r),l=s(o),c="focustrap",f=".bs.focustrap",h=`focusin${f}`,p=`keydown.tab${f}`,w="Tab",b="forward",T="backward",_={autofocus:!0,trapElement:null},S={autofocus:"boolean",trapElement:"element"};class A extends l.default{constructor(C){super(),this._config=this._getConfig(C),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return _}static get DefaultType(){return S}static get NAME(){return c}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),i.default.off(document,f),i.default.on(document,h,C=>this._handleFocusin(C)),i.default.on(document,p,C=>this._handleKeydown(C)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,i.default.off(document,f))}_handleFocusin(C){const{trapElement:x}=this._config;if(C.target===document||C.target===x||x.contains(C.target))return;const P=a.default.focusableChildren(x);P.length===0?x.focus():this._lastTabNavDirection===T?P[P.length-1].focus():P[0].focus()}_handleKeydown(C){C.key===w&&(this._lastTabNavDirection=C.shiftKey?T:b)}}return A})}(qo)),qo.exports}var ms={exports:{}};/*! + */var ec;function rg(){return ec||(ec=1,function(e,t){(function(n,r){e.exports=r(Pn(),Gr(),so())})(et,function(n,r,o){const s=y=>y&&typeof y=="object"&&"default"in y?y:{default:y},i=s(n),a=s(r),l=s(o),c="focustrap",f=".bs.focustrap",h=`focusin${f}`,p=`keydown.tab${f}`,w="Tab",b="forward",T="backward",_={autofocus:!0,trapElement:null},S={autofocus:"boolean",trapElement:"element"};class A extends l.default{constructor(C){super(),this._config=this._getConfig(C),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return _}static get DefaultType(){return S}static get NAME(){return c}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),i.default.off(document,f),i.default.on(document,h,C=>this._handleFocusin(C)),i.default.on(document,p,C=>this._handleKeydown(C)),this._isActive=!0)}deactivate(){!this._isActive||(this._isActive=!1,i.default.off(document,f))}_handleFocusin(C){const{trapElement:x}=this._config;if(C.target===document||C.target===x||x.contains(C.target))return;const O=a.default.focusableChildren(x);O.length===0?x.focus():this._lastTabNavDirection===T?O[O.length-1].focus():O[0].focus()}_handleKeydown(C){C.key===w&&(this._lastTabNavDirection=C.shiftKey?T:b)}}return A})}(qo)),qo.exports}var ms={exports:{}};/*! * Bootstrap component-functions.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var ec;function rg(){return ec||(ec=1,function(e,t){(function(n,r){r(t,On(),It())})(et,function(n,r,o){const i=(l=>l&&typeof l=="object"&&"default"in l?l:{default:l})(r),a=(l,c="hide")=>{const u=`click.dismiss${l.EVENT_KEY}`,f=l.NAME;i.default.on(document,u,`[data-bs-dismiss="${f}"]`,function(h){if(["A","AREA"].includes(this.tagName)&&h.preventDefault(),o.isDisabled(this))return;const p=o.getElementFromSelector(this)||this.closest(`.${f}`);l.getOrCreateInstance(p)[c]()})};n.enableDismissTrigger=a,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(ms,ms.exports)),ms.exports}/*! + */var tc;function sg(){return tc||(tc=1,function(e,t){(function(n,r){r(t,Pn(),It())})(et,function(n,r,o){const i=(l=>l&&typeof l=="object"&&"default"in l?l:{default:l})(r),a=(l,c="hide")=>{const u=`click.dismiss${l.EVENT_KEY}`,f=l.NAME;i.default.on(document,u,`[data-bs-dismiss="${f}"]`,function(h){if(["A","AREA"].includes(this.tagName)&&h.preventDefault(),o.isDisabled(this))return;const p=o.getElementFromSelector(this)||this.closest(`.${f}`);l.getOrCreateInstance(p)[c]()})};n.enableDismissTrigger=a,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(ms,ms.exports)),ms.exports}/*! * Bootstrap modal.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */(function(e,t){(function(n,r){e.exports=r(It(),On(),Gr(),J1(),na(),tg(),ng(),rg())})(et,function(n,r,o,s,i,a,l,c){const u=L=>L&&typeof L=="object"&&"default"in L?L:{default:L},f=u(r),h=u(o),p=u(s),w=u(i),b=u(a),T=u(l),_="modal",A=".bs.modal",y=".data-api",C="Escape",x=`hide${A}`,P=`hidePrevented${A}`,K=`hidden${A}`,Y=`show${A}`,ee=`shown${A}`,ne=`resize${A}`,R=`click.dismiss${A}`,X=`mousedown.dismiss${A}`,I=`keydown.dismiss${A}`,N=`click${A}${y}`,Z="modal-open",G="fade",te="show",le="modal-static",he=".modal.show",ae=".modal-dialog",me=".modal-body",Te='[data-bs-toggle="modal"]',pe={backdrop:!0,focus:!0,keyboard:!0},H={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class W extends w.default{constructor(q,J){super(q,J),this._dialog=h.default.findOne(ae,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new p.default,this._addEventListeners()}static get Default(){return pe}static get DefaultType(){return H}static get NAME(){return _}toggle(q){return this._isShown?this.hide():this.show(q)}show(q){this._isShown||this._isTransitioning||f.default.trigger(this._element,Y,{relatedTarget:q}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Z),this._adjustDialog(),this._backdrop.show(()=>this._showElement(q)))}hide(){!this._isShown||this._isTransitioning||f.default.trigger(this._element,x).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(te),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const q of[window,this._dialog])f.default.off(q,A);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new b.default({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new T.default({trapElement:this._element})}_showElement(q){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const J=h.default.findOne(me,this._dialog);J&&(J.scrollTop=0),n.reflow(this._element),this._element.classList.add(te);const ue=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,f.default.trigger(this._element,ee,{relatedTarget:q})};this._queueCallback(ue,this._dialog,this._isAnimated())}_addEventListeners(){f.default.on(this._element,I,q=>{if(q.key===C){if(this._config.keyboard){q.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),f.default.on(window,ne,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),f.default.on(this._element,X,q=>{f.default.one(this._element,R,J=>{if(!(this._element!==q.target||this._element!==J.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Z),this._resetAdjustments(),this._scrollBar.reset(),f.default.trigger(this._element,K)})}_isAnimated(){return this._element.classList.contains(G)}_triggerBackdropTransition(){if(f.default.trigger(this._element,P).defaultPrevented)return;const J=this._element.scrollHeight>document.documentElement.clientHeight,ue=this._element.style.overflowY;ue==="hidden"||this._element.classList.contains(le)||(J||(this._element.style.overflowY="hidden"),this._element.classList.add(le),this._queueCallback(()=>{this._element.classList.remove(le),this._queueCallback(()=>{this._element.style.overflowY=ue},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const q=this._element.scrollHeight>document.documentElement.clientHeight,J=this._scrollBar.getWidth(),ue=J>0;if(ue&&!q){const ie=n.isRTL()?"paddingLeft":"paddingRight";this._element.style[ie]=`${J}px`}if(!ue&&q){const ie=n.isRTL()?"paddingRight":"paddingLeft";this._element.style[ie]=`${J}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(q,J){return this.each(function(){const ue=W.getOrCreateInstance(this,q);if(typeof q=="string"){if(typeof ue[q]>"u")throw new TypeError(`No method named "${q}"`);ue[q](J)}})}}return f.default.on(document,N,Te,function(L){const q=n.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&L.preventDefault(),f.default.one(q,Y,ie=>{ie.defaultPrevented||f.default.one(q,K,()=>{n.isVisible(this)&&this.focus()})});const J=h.default.findOne(he);J&&W.getInstance(J).hide(),W.getOrCreateInstance(q).toggle(this)}),c.enableDismissTrigger(W),n.defineJQueryPlugin(W),W})})(Ef);const Xr=Ef.exports;var Tf={exports:{}},it="top",_t="bottom",vt="right",at="left",oo="auto",hr=[it,_t,vt,at],Nn="start",tr="end",Sf="clippingParents",ra="viewport",Vn="popper",Cf="reference",li=hr.reduce(function(e,t){return e.concat([t+"-"+Nn,t+"-"+tr])},[]),sa=[].concat(hr,[oo]).reduce(function(e,t){return e.concat([t,t+"-"+Nn,t+"-"+tr])},[]),Af="beforeRead",xf="read",Lf="afterRead",Mf="beforeMain",Nf="main",$f="afterMain",If="beforeWrite",Of="write",Pf="afterWrite",kf=[Af,xf,Lf,Mf,Nf,$f,If,Of,Pf];function jt(e){return e?(e.nodeName||"").toLowerCase():null}function Tt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $n(e){var t=Tt(e).Element;return e instanceof t||e instanceof Element}function Et(e){var t=Tt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function oa(e){if(typeof ShadowRoot>"u")return!1;var t=Tt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function sg(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Et(s)||!jt(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function og(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!Et(o)||!jt(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const ia={name:"applyStyles",enabled:!0,phase:"write",fn:sg,effect:og,requires:["computeStyles"]};function Bt(e){return e.split("-")[0]}var Ln=Math.max,Vs=Math.min,nr=Math.round;function ci(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Rf(){return!/^((?!chrome|android).)*safari/i.test(ci())}function rr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Et(e)&&(o=e.offsetWidth>0&&nr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&nr(r.height)/e.offsetHeight||1);var i=$n(e)?Tt(e):window,a=i.visualViewport,l=!Rf()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,f=r.width/o,h=r.height/s;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function aa(e){var t=rr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Df(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&oa(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jt(e){return Tt(e).getComputedStyle(e)}function ig(e){return["table","td","th"].indexOf(jt(e))>=0}function gn(e){return(($n(e)?e.ownerDocument:e.document)||window.document).documentElement}function io(e){return jt(e)==="html"?e:e.assignedSlot||e.parentNode||(oa(e)?e.host:null)||gn(e)}function tc(e){return!Et(e)||Jt(e).position==="fixed"?null:e.offsetParent}function ag(e){var t=/firefox/i.test(ci()),n=/Trident/i.test(ci());if(n&&Et(e)){var r=Jt(e);if(r.position==="fixed")return null}var o=io(e);for(oa(o)&&(o=o.host);Et(o)&&["html","body"].indexOf(jt(o))<0;){var s=Jt(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Jr(e){for(var t=Tt(e),n=tc(e);n&&ig(n)&&Jt(n).position==="static";)n=tc(n);return n&&(jt(n)==="html"||jt(n)==="body"&&Jt(n).position==="static")?t:n||ag(e)||t}function la(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Or(e,t,n){return Ln(e,Vs(t,n))}function lg(e,t,n){var r=Or(e,t,n);return r>n?n:r}function Ff(){return{top:0,right:0,bottom:0,left:0}}function qf(e){return Object.assign({},Ff(),e)}function Vf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cg=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,qf(typeof t!="number"?t:Vf(t,hr))};function ug(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Bt(n.placement),l=la(a),c=[at,vt].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var f=cg(o.padding,n),h=aa(s),p=l==="y"?it:at,w=l==="y"?_t:vt,b=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],T=i[l]-n.rects.reference[l],_=Jr(s),S=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,A=b/2-T/2,y=f[p],C=S-h[u]-f[w],x=S/2-h[u]/2+A,P=Or(y,x,C),K=l;n.modifiersData[r]=(t={},t[K]=P,t.centerOffset=P-x,t)}}function fg(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!Df(t.elements.popper,o)||(t.elements.arrow=o))}const Hf={name:"arrow",enabled:!0,phase:"main",fn:ug,effect:fg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sr(e){return e.split("-")[1]}var dg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function hg(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:nr(t*o)/o||0,y:nr(n*o)/o||0}}function nc(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=i.x,p=h===void 0?0:h,w=i.y,b=w===void 0?0:w,T=typeof u=="function"?u({x:p,y:b}):{x:p,y:b};p=T.x,b=T.y;var _=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),A=at,y=it,C=window;if(c){var x=Jr(n),P="clientHeight",K="clientWidth";if(x===Tt(n)&&(x=gn(n),Jt(x).position!=="static"&&a==="absolute"&&(P="scrollHeight",K="scrollWidth")),x=x,o===it||(o===at||o===vt)&&s===tr){y=_t;var Y=f&&x===C&&C.visualViewport?C.visualViewport.height:x[P];b-=Y-r.height,b*=l?1:-1}if(o===at||(o===it||o===_t)&&s===tr){A=vt;var ee=f&&x===C&&C.visualViewport?C.visualViewport.width:x[K];p-=ee-r.width,p*=l?1:-1}}var ne=Object.assign({position:a},c&&dg),R=u===!0?hg({x:p,y:b}):{x:p,y:b};if(p=R.x,b=R.y,l){var X;return Object.assign({},ne,(X={},X[y]=S?"0":"",X[A]=_?"0":"",X.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",X))}return Object.assign({},ne,(t={},t[y]=S?b+"px":"",t[A]=_?p+"px":"",t.transform="",t))}function mg(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Bt(t.placement),variation:sr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,nc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,nc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ca={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mg,data:{}};var ps={passive:!0};function pg(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=Tt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,ps)}),a&&l.addEventListener("resize",n.update,ps),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ps)}),a&&l.removeEventListener("resize",n.update,ps)}}const ua={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pg,data:{}};var gg={left:"right",right:"left",bottom:"top",top:"bottom"};function As(e){return e.replace(/left|right|bottom|top/g,function(t){return gg[t]})}var _g={start:"end",end:"start"};function rc(e){return e.replace(/start|end/g,function(t){return _g[t]})}function fa(e){var t=Tt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function da(e){return rr(gn(e)).left+fa(e).scrollLeft}function vg(e,t){var n=Tt(e),r=gn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=Rf();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+da(e),y:l}}function bg(e){var t,n=gn(e),r=fa(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Ln(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ln(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+da(e),l=-r.scrollTop;return Jt(o||n).direction==="rtl"&&(a+=Ln(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function ha(e){var t=Jt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Bf(e){return["html","body","#document"].indexOf(jt(e))>=0?e.ownerDocument.body:Et(e)&&ha(e)?e:Bf(io(e))}function Pr(e,t){var n;t===void 0&&(t=[]);var r=Bf(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Tt(r),i=o?[s].concat(s.visualViewport||[],ha(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(Pr(io(i)))}function ui(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function yg(e,t){var n=rr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function sc(e,t,n){return t===ra?ui(vg(e,n)):$n(t)?yg(t,n):ui(bg(gn(e)))}function wg(e){var t=Pr(io(e)),n=["absolute","fixed"].indexOf(Jt(e).position)>=0,r=n&&Et(e)?Jr(e):e;return $n(r)?t.filter(function(o){return $n(o)&&Df(o,r)&&jt(o)!=="body"}):[]}function Eg(e,t,n,r){var o=t==="clippingParents"?wg(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=sc(e,c,r);return l.top=Ln(u.top,l.top),l.right=Vs(u.right,l.right),l.bottom=Vs(u.bottom,l.bottom),l.left=Ln(u.left,l.left),l},sc(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Uf(e){var t=e.reference,n=e.element,r=e.placement,o=r?Bt(r):null,s=r?sr(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case it:l={x:i,y:t.y-n.height};break;case _t:l={x:i,y:t.y+t.height};break;case vt:l={x:t.x+t.width,y:a};break;case at:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?la(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Nn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case tr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function or(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?Sf:a,c=n.rootBoundary,u=c===void 0?ra:c,f=n.elementContext,h=f===void 0?Vn:f,p=n.altBoundary,w=p===void 0?!1:p,b=n.padding,T=b===void 0?0:b,_=qf(typeof T!="number"?T:Vf(T,hr)),S=h===Vn?Cf:Vn,A=e.rects.popper,y=e.elements[w?S:h],C=Eg($n(y)?y:y.contextElement||gn(e.elements.popper),l,u,i),x=rr(e.elements.reference),P=Uf({reference:x,element:A,strategy:"absolute",placement:o}),K=ui(Object.assign({},A,P)),Y=h===Vn?K:x,ee={top:C.top-Y.top+_.top,bottom:Y.bottom-C.bottom+_.bottom,left:C.left-Y.left+_.left,right:Y.right-C.right+_.right},ne=e.modifiersData.offset;if(h===Vn&&ne){var R=ne[o];Object.keys(ee).forEach(function(X){var I=[vt,_t].indexOf(X)>=0?1:-1,N=[it,_t].indexOf(X)>=0?"y":"x";ee[X]+=R[N]*I})}return ee}function Tg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?sa:l,u=sr(r),f=u?a?li:li.filter(function(w){return sr(w)===u}):hr,h=f.filter(function(w){return c.indexOf(w)>=0});h.length===0&&(h=f);var p=h.reduce(function(w,b){return w[b]=or(e,{placement:b,boundary:o,rootBoundary:s,padding:i})[Bt(b)],w},{});return Object.keys(p).sort(function(w,b){return p[w]-p[b]})}function Sg(e){if(Bt(e)===oo)return[];var t=As(e);return[rc(e),t,rc(t)]}function Cg(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,w=p===void 0?!0:p,b=n.allowedAutoPlacements,T=t.options.placement,_=Bt(T),S=_===T,A=l||(S||!w?[As(T)]:Sg(T)),y=[T].concat(A).reduce(function(pe,H){return pe.concat(Bt(H)===oo?Tg(t,{placement:H,boundary:u,rootBoundary:f,padding:c,flipVariations:w,allowedAutoPlacements:b}):H)},[]),C=t.rects.reference,x=t.rects.popper,P=new Map,K=!0,Y=y[0],ee=0;ee=0,N=I?"width":"height",Z=or(t,{placement:ne,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),G=I?X?vt:at:X?_t:it;C[N]>x[N]&&(G=As(G));var te=As(G),le=[];if(s&&le.push(Z[R]<=0),a&&le.push(Z[G]<=0,Z[te]<=0),le.every(function(pe){return pe})){Y=ne,K=!1;break}P.set(ne,le)}if(K)for(var he=w?3:1,ae=function(H){var W=y.find(function(L){var q=P.get(L);if(q)return q.slice(0,H).every(function(J){return J})});if(W)return Y=W,"break"},me=he;me>0;me--){var Te=ae(me);if(Te==="break")break}t.placement!==Y&&(t.modifiersData[r]._skip=!0,t.placement=Y,t.reset=!0)}}const jf={name:"flip",enabled:!0,phase:"main",fn:Cg,requiresIfExists:["offset"],data:{_skip:!1}};function oc(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ic(e){return[it,vt,_t,at].some(function(t){return e[t]>=0})}function Ag(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=or(t,{elementContext:"reference"}),a=or(t,{altBoundary:!0}),l=oc(i,r),c=oc(a,o,s),u=ic(l),f=ic(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Qf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Ag};function xg(e,t,n){var r=Bt(e),o=[at,it].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[at,vt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Lg(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=sa.reduce(function(u,f){return u[f]=xg(f,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const Wf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lg};function Mg(e){var t=e.state,n=e.name;t.modifiersData[n]=Uf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const ma={name:"popperOffsets",enabled:!0,phase:"read",fn:Mg,data:{}};function Ng(e){return e==="x"?"y":"x"}function $g(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,w=n.tetherOffset,b=w===void 0?0:w,T=or(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),_=Bt(t.placement),S=sr(t.placement),A=!S,y=la(_),C=Ng(y),x=t.modifiersData.popperOffsets,P=t.rects.reference,K=t.rects.popper,Y=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,ee=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),ne=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(!!x){if(s){var X,I=y==="y"?it:at,N=y==="y"?_t:vt,Z=y==="y"?"height":"width",G=x[y],te=G+T[I],le=G-T[N],he=p?-K[Z]/2:0,ae=S===Nn?P[Z]:K[Z],me=S===Nn?-K[Z]:-P[Z],Te=t.elements.arrow,pe=p&&Te?aa(Te):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Ff(),W=H[I],L=H[N],q=Or(0,P[Z],pe[Z]),J=A?P[Z]/2-he-q-W-ee.mainAxis:ae-q-W-ee.mainAxis,ue=A?-P[Z]/2+he+q+L+ee.mainAxis:me+q+L+ee.mainAxis,ie=t.elements.arrow&&Jr(t.elements.arrow),v=ie?y==="y"?ie.clientTop||0:ie.clientLeft||0:0,d=(X=ne==null?void 0:ne[y])!=null?X:0,m=G+J-d-v,E=G+ue-d,O=Or(p?Vs(te,m):te,G,p?Ln(le,E):le);x[y]=O,R[y]=O-G}if(a){var V,Q=y==="x"?it:at,k=y==="x"?_t:vt,j=x[C],U=C==="y"?"height":"width",$=j+T[Q],D=j-T[k],se=[it,at].indexOf(_)!==-1,ce=(V=ne==null?void 0:ne[C])!=null?V:0,ve=se?$:j-P[U]-K[U]-ce+ee.altAxis,Ae=se?j+P[U]+K[U]-ce-ee.altAxis:D,Ee=p&&se?lg(ve,j,Ae):Or(p?ve:$,j,p?Ae:D);x[C]=Ee,R[C]=Ee-j}t.modifiersData[r]=R}}const zf={name:"preventOverflow",enabled:!0,phase:"main",fn:$g,requiresIfExists:["offset"]};function Ig(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Og(e){return e===Tt(e)||!Et(e)?fa(e):Ig(e)}function Pg(e){var t=e.getBoundingClientRect(),n=nr(t.width)/e.offsetWidth||1,r=nr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function kg(e,t,n){n===void 0&&(n=!1);var r=Et(t),o=Et(t)&&Pg(t),s=gn(t),i=rr(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jt(t)!=="body"||ha(s))&&(a=Og(t)),Et(t)?(l=rr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=da(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Rg(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Dg(e){var t=Rg(e);return kf.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function Fg(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function qg(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var ac={placement:"bottom",modifiers:[],strategy:"absolute"};function lc(){for(var e=arguments.length,t=new Array(e),n=0;nL&&typeof L=="object"&&"default"in L?L:{default:L},f=u(r),h=u(o),p=u(s),w=u(i),b=u(a),T=u(l),_="modal",A=".bs.modal",y=".data-api",C="Escape",x=`hide${A}`,O=`hidePrevented${A}`,K=`hidden${A}`,Y=`show${A}`,ee=`shown${A}`,ne=`resize${A}`,R=`click.dismiss${A}`,X=`mousedown.dismiss${A}`,I=`keydown.dismiss${A}`,N=`click${A}${y}`,Z="modal-open",G="fade",te="show",le="modal-static",he=".modal.show",ae=".modal-dialog",me=".modal-body",Te='[data-bs-toggle="modal"]',pe={backdrop:!0,focus:!0,keyboard:!0},H={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class W extends w.default{constructor(q,J){super(q,J),this._dialog=h.default.findOne(ae,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new p.default,this._addEventListeners()}static get Default(){return pe}static get DefaultType(){return H}static get NAME(){return _}toggle(q){return this._isShown?this.hide():this.show(q)}show(q){this._isShown||this._isTransitioning||f.default.trigger(this._element,Y,{relatedTarget:q}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Z),this._adjustDialog(),this._backdrop.show(()=>this._showElement(q)))}hide(){!this._isShown||this._isTransitioning||f.default.trigger(this._element,x).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(te),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){for(const q of[window,this._dialog])f.default.off(q,A);this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new b.default({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new T.default({trapElement:this._element})}_showElement(q){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const J=h.default.findOne(me,this._dialog);J&&(J.scrollTop=0),n.reflow(this._element),this._element.classList.add(te);const ue=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,f.default.trigger(this._element,ee,{relatedTarget:q})};this._queueCallback(ue,this._dialog,this._isAnimated())}_addEventListeners(){f.default.on(this._element,I,q=>{if(q.key===C){if(this._config.keyboard){q.preventDefault(),this.hide();return}this._triggerBackdropTransition()}}),f.default.on(window,ne,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),f.default.on(this._element,X,q=>{f.default.one(this._element,R,J=>{if(!(this._element!==q.target||this._element!==J.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(Z),this._resetAdjustments(),this._scrollBar.reset(),f.default.trigger(this._element,K)})}_isAnimated(){return this._element.classList.contains(G)}_triggerBackdropTransition(){if(f.default.trigger(this._element,O).defaultPrevented)return;const J=this._element.scrollHeight>document.documentElement.clientHeight,ue=this._element.style.overflowY;ue==="hidden"||this._element.classList.contains(le)||(J||(this._element.style.overflowY="hidden"),this._element.classList.add(le),this._queueCallback(()=>{this._element.classList.remove(le),this._queueCallback(()=>{this._element.style.overflowY=ue},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const q=this._element.scrollHeight>document.documentElement.clientHeight,J=this._scrollBar.getWidth(),ue=J>0;if(ue&&!q){const ie=n.isRTL()?"paddingLeft":"paddingRight";this._element.style[ie]=`${J}px`}if(!ue&&q){const ie=n.isRTL()?"paddingRight":"paddingLeft";this._element.style[ie]=`${J}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(q,J){return this.each(function(){const ue=W.getOrCreateInstance(this,q);if(typeof q=="string"){if(typeof ue[q]>"u")throw new TypeError(`No method named "${q}"`);ue[q](J)}})}}return f.default.on(document,N,Te,function(L){const q=n.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&L.preventDefault(),f.default.one(q,Y,ie=>{ie.defaultPrevented||f.default.one(q,K,()=>{n.isVisible(this)&&this.focus()})});const J=h.default.findOne(he);J&&W.getInstance(J).hide(),W.getOrCreateInstance(q).toggle(this)}),c.enableDismissTrigger(W),n.defineJQueryPlugin(W),W})})(Tf);const Xr=Tf.exports;var Sf={exports:{}},it="top",_t="bottom",vt="right",at="left",oo="auto",hr=[it,_t,vt,at],Nn="start",tr="end",Cf="clippingParents",sa="viewport",Vn="popper",Af="reference",li=hr.reduce(function(e,t){return e.concat([t+"-"+Nn,t+"-"+tr])},[]),oa=[].concat(hr,[oo]).reduce(function(e,t){return e.concat([t,t+"-"+Nn,t+"-"+tr])},[]),xf="beforeRead",Lf="read",Mf="afterRead",Nf="beforeMain",$f="main",If="afterMain",Pf="beforeWrite",Of="write",kf="afterWrite",Rf=[xf,Lf,Mf,Nf,$f,If,Pf,Of,kf];function jt(e){return e?(e.nodeName||"").toLowerCase():null}function Tt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $n(e){var t=Tt(e).Element;return e instanceof t||e instanceof Element}function Et(e){var t=Tt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function ia(e){if(typeof ShadowRoot>"u")return!1;var t=Tt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function og(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},s=t.elements[n];!Et(s)||!jt(s)||(Object.assign(s.style,r),Object.keys(o).forEach(function(i){var a=o[i];a===!1?s.removeAttribute(i):s.setAttribute(i,a===!0?"":a)}))})}function ig(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var o=t.elements[r],s=t.attributes[r]||{},i=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=i.reduce(function(l,c){return l[c]="",l},{});!Et(o)||!jt(o)||(Object.assign(o.style,a),Object.keys(s).forEach(function(l){o.removeAttribute(l)}))})}}const aa={name:"applyStyles",enabled:!0,phase:"write",fn:og,effect:ig,requires:["computeStyles"]};function Bt(e){return e.split("-")[0]}var Ln=Math.max,Vs=Math.min,nr=Math.round;function ci(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Df(){return!/^((?!chrome|android).)*safari/i.test(ci())}function rr(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,s=1;t&&Et(e)&&(o=e.offsetWidth>0&&nr(r.width)/e.offsetWidth||1,s=e.offsetHeight>0&&nr(r.height)/e.offsetHeight||1);var i=$n(e)?Tt(e):window,a=i.visualViewport,l=!Df()&&n,c=(r.left+(l&&a?a.offsetLeft:0))/o,u=(r.top+(l&&a?a.offsetTop:0))/s,f=r.width/o,h=r.height/s;return{width:f,height:h,top:u,right:c+f,bottom:u+h,left:c,x:c,y:u}}function la(e){var t=rr(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Ff(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ia(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jt(e){return Tt(e).getComputedStyle(e)}function ag(e){return["table","td","th"].indexOf(jt(e))>=0}function gn(e){return(($n(e)?e.ownerDocument:e.document)||window.document).documentElement}function io(e){return jt(e)==="html"?e:e.assignedSlot||e.parentNode||(ia(e)?e.host:null)||gn(e)}function nc(e){return!Et(e)||Jt(e).position==="fixed"?null:e.offsetParent}function lg(e){var t=/firefox/i.test(ci()),n=/Trident/i.test(ci());if(n&&Et(e)){var r=Jt(e);if(r.position==="fixed")return null}var o=io(e);for(ia(o)&&(o=o.host);Et(o)&&["html","body"].indexOf(jt(o))<0;){var s=Jt(o);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return o;o=o.parentNode}return null}function Jr(e){for(var t=Tt(e),n=nc(e);n&&ag(n)&&Jt(n).position==="static";)n=nc(n);return n&&(jt(n)==="html"||jt(n)==="body"&&Jt(n).position==="static")?t:n||lg(e)||t}function ca(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pr(e,t,n){return Ln(e,Vs(t,n))}function cg(e,t,n){var r=Pr(e,t,n);return r>n?n:r}function qf(){return{top:0,right:0,bottom:0,left:0}}function Vf(e){return Object.assign({},qf(),e)}function Hf(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var ug=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Vf(typeof t!="number"?t:Hf(t,hr))};function fg(e){var t,n=e.state,r=e.name,o=e.options,s=n.elements.arrow,i=n.modifiersData.popperOffsets,a=Bt(n.placement),l=ca(a),c=[at,vt].indexOf(a)>=0,u=c?"height":"width";if(!(!s||!i)){var f=ug(o.padding,n),h=la(s),p=l==="y"?it:at,w=l==="y"?_t:vt,b=n.rects.reference[u]+n.rects.reference[l]-i[l]-n.rects.popper[u],T=i[l]-n.rects.reference[l],_=Jr(s),S=_?l==="y"?_.clientHeight||0:_.clientWidth||0:0,A=b/2-T/2,y=f[p],C=S-h[u]-f[w],x=S/2-h[u]/2+A,O=Pr(y,x,C),K=l;n.modifiersData[r]=(t={},t[K]=O,t.centerOffset=O-x,t)}}function dg(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||!Ff(t.elements.popper,o)||(t.elements.arrow=o))}const Bf={name:"arrow",enabled:!0,phase:"main",fn:fg,effect:dg,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function sr(e){return e.split("-")[1]}var hg={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mg(e){var t=e.x,n=e.y,r=window,o=r.devicePixelRatio||1;return{x:nr(t*o)/o||0,y:nr(n*o)/o||0}}function rc(e){var t,n=e.popper,r=e.popperRect,o=e.placement,s=e.variation,i=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,f=e.isFixed,h=i.x,p=h===void 0?0:h,w=i.y,b=w===void 0?0:w,T=typeof u=="function"?u({x:p,y:b}):{x:p,y:b};p=T.x,b=T.y;var _=i.hasOwnProperty("x"),S=i.hasOwnProperty("y"),A=at,y=it,C=window;if(c){var x=Jr(n),O="clientHeight",K="clientWidth";if(x===Tt(n)&&(x=gn(n),Jt(x).position!=="static"&&a==="absolute"&&(O="scrollHeight",K="scrollWidth")),x=x,o===it||(o===at||o===vt)&&s===tr){y=_t;var Y=f&&x===C&&C.visualViewport?C.visualViewport.height:x[O];b-=Y-r.height,b*=l?1:-1}if(o===at||(o===it||o===_t)&&s===tr){A=vt;var ee=f&&x===C&&C.visualViewport?C.visualViewport.width:x[K];p-=ee-r.width,p*=l?1:-1}}var ne=Object.assign({position:a},c&&hg),R=u===!0?mg({x:p,y:b}):{x:p,y:b};if(p=R.x,b=R.y,l){var X;return Object.assign({},ne,(X={},X[y]=S?"0":"",X[A]=_?"0":"",X.transform=(C.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",X))}return Object.assign({},ne,(t={},t[y]=S?b+"px":"",t[A]=_?p+"px":"",t.transform="",t))}function pg(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,s=n.adaptive,i=s===void 0?!0:s,a=n.roundOffsets,l=a===void 0?!0:a,c={placement:Bt(t.placement),variation:sr(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,rc(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,rc(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const ua={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:pg,data:{}};var ps={passive:!0};function gg(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,s=o===void 0?!0:o,i=r.resize,a=i===void 0?!0:i,l=Tt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&c.forEach(function(u){u.addEventListener("scroll",n.update,ps)}),a&&l.addEventListener("resize",n.update,ps),function(){s&&c.forEach(function(u){u.removeEventListener("scroll",n.update,ps)}),a&&l.removeEventListener("resize",n.update,ps)}}const fa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:gg,data:{}};var _g={left:"right",right:"left",bottom:"top",top:"bottom"};function As(e){return e.replace(/left|right|bottom|top/g,function(t){return _g[t]})}var vg={start:"end",end:"start"};function sc(e){return e.replace(/start|end/g,function(t){return vg[t]})}function da(e){var t=Tt(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ha(e){return rr(gn(e)).left+da(e).scrollLeft}function bg(e,t){var n=Tt(e),r=gn(e),o=n.visualViewport,s=r.clientWidth,i=r.clientHeight,a=0,l=0;if(o){s=o.width,i=o.height;var c=Df();(c||!c&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:s,height:i,x:a+ha(e),y:l}}function yg(e){var t,n=gn(e),r=da(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Ln(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),i=Ln(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+ha(e),l=-r.scrollTop;return Jt(o||n).direction==="rtl"&&(a+=Ln(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:i,x:a,y:l}}function ma(e){var t=Jt(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Uf(e){return["html","body","#document"].indexOf(jt(e))>=0?e.ownerDocument.body:Et(e)&&ma(e)?e:Uf(io(e))}function Or(e,t){var n;t===void 0&&(t=[]);var r=Uf(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),s=Tt(r),i=o?[s].concat(s.visualViewport||[],ma(r)?r:[]):r,a=t.concat(i);return o?a:a.concat(Or(io(i)))}function ui(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function wg(e,t){var n=rr(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function oc(e,t,n){return t===sa?ui(bg(e,n)):$n(t)?wg(t,n):ui(yg(gn(e)))}function Eg(e){var t=Or(io(e)),n=["absolute","fixed"].indexOf(Jt(e).position)>=0,r=n&&Et(e)?Jr(e):e;return $n(r)?t.filter(function(o){return $n(o)&&Ff(o,r)&&jt(o)!=="body"}):[]}function Tg(e,t,n,r){var o=t==="clippingParents"?Eg(e):[].concat(t),s=[].concat(o,[n]),i=s[0],a=s.reduce(function(l,c){var u=oc(e,c,r);return l.top=Ln(u.top,l.top),l.right=Vs(u.right,l.right),l.bottom=Vs(u.bottom,l.bottom),l.left=Ln(u.left,l.left),l},oc(e,i,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function jf(e){var t=e.reference,n=e.element,r=e.placement,o=r?Bt(r):null,s=r?sr(r):null,i=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,l;switch(o){case it:l={x:i,y:t.y-n.height};break;case _t:l={x:i,y:t.y+t.height};break;case vt:l={x:t.x+t.width,y:a};break;case at:l={x:t.x-n.width,y:a};break;default:l={x:t.x,y:t.y}}var c=o?ca(o):null;if(c!=null){var u=c==="y"?"height":"width";switch(s){case Nn:l[c]=l[c]-(t[u]/2-n[u]/2);break;case tr:l[c]=l[c]+(t[u]/2-n[u]/2);break}}return l}function or(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,s=n.strategy,i=s===void 0?e.strategy:s,a=n.boundary,l=a===void 0?Cf:a,c=n.rootBoundary,u=c===void 0?sa:c,f=n.elementContext,h=f===void 0?Vn:f,p=n.altBoundary,w=p===void 0?!1:p,b=n.padding,T=b===void 0?0:b,_=Vf(typeof T!="number"?T:Hf(T,hr)),S=h===Vn?Af:Vn,A=e.rects.popper,y=e.elements[w?S:h],C=Tg($n(y)?y:y.contextElement||gn(e.elements.popper),l,u,i),x=rr(e.elements.reference),O=jf({reference:x,element:A,strategy:"absolute",placement:o}),K=ui(Object.assign({},A,O)),Y=h===Vn?K:x,ee={top:C.top-Y.top+_.top,bottom:Y.bottom-C.bottom+_.bottom,left:C.left-Y.left+_.left,right:Y.right-C.right+_.right},ne=e.modifiersData.offset;if(h===Vn&&ne){var R=ne[o];Object.keys(ee).forEach(function(X){var I=[vt,_t].indexOf(X)>=0?1:-1,N=[it,_t].indexOf(X)>=0?"y":"x";ee[X]+=R[N]*I})}return ee}function Sg(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,s=n.rootBoundary,i=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,c=l===void 0?oa:l,u=sr(r),f=u?a?li:li.filter(function(w){return sr(w)===u}):hr,h=f.filter(function(w){return c.indexOf(w)>=0});h.length===0&&(h=f);var p=h.reduce(function(w,b){return w[b]=or(e,{placement:b,boundary:o,rootBoundary:s,padding:i})[Bt(b)],w},{});return Object.keys(p).sort(function(w,b){return p[w]-p[b]})}function Cg(e){if(Bt(e)===oo)return[];var t=As(e);return[sc(e),t,sc(t)]}function Ag(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!0:i,l=n.fallbackPlacements,c=n.padding,u=n.boundary,f=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,w=p===void 0?!0:p,b=n.allowedAutoPlacements,T=t.options.placement,_=Bt(T),S=_===T,A=l||(S||!w?[As(T)]:Cg(T)),y=[T].concat(A).reduce(function(pe,H){return pe.concat(Bt(H)===oo?Sg(t,{placement:H,boundary:u,rootBoundary:f,padding:c,flipVariations:w,allowedAutoPlacements:b}):H)},[]),C=t.rects.reference,x=t.rects.popper,O=new Map,K=!0,Y=y[0],ee=0;ee=0,N=I?"width":"height",Z=or(t,{placement:ne,boundary:u,rootBoundary:f,altBoundary:h,padding:c}),G=I?X?vt:at:X?_t:it;C[N]>x[N]&&(G=As(G));var te=As(G),le=[];if(s&&le.push(Z[R]<=0),a&&le.push(Z[G]<=0,Z[te]<=0),le.every(function(pe){return pe})){Y=ne,K=!1;break}O.set(ne,le)}if(K)for(var he=w?3:1,ae=function(H){var W=y.find(function(L){var q=O.get(L);if(q)return q.slice(0,H).every(function(J){return J})});if(W)return Y=W,"break"},me=he;me>0;me--){var Te=ae(me);if(Te==="break")break}t.placement!==Y&&(t.modifiersData[r]._skip=!0,t.placement=Y,t.reset=!0)}}const Qf={name:"flip",enabled:!0,phase:"main",fn:Ag,requiresIfExists:["offset"],data:{_skip:!1}};function ic(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function ac(e){return[it,vt,_t,at].some(function(t){return e[t]>=0})}function xg(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,i=or(t,{elementContext:"reference"}),a=or(t,{altBoundary:!0}),l=ic(i,r),c=ic(a,o,s),u=ac(l),f=ac(c);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":f})}const Wf={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:xg};function Lg(e,t,n){var r=Bt(e),o=[at,it].indexOf(r)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=s[0],a=s[1];return i=i||0,a=(a||0)*o,[at,vt].indexOf(r)>=0?{x:a,y:i}:{x:i,y:a}}function Mg(e){var t=e.state,n=e.options,r=e.name,o=n.offset,s=o===void 0?[0,0]:o,i=oa.reduce(function(u,f){return u[f]=Lg(f,t.rects,s),u},{}),a=i[t.placement],l=a.x,c=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=i}const zf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Mg};function Ng(e){var t=e.state,n=e.name;t.modifiersData[n]=jf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const pa={name:"popperOffsets",enabled:!0,phase:"read",fn:Ng,data:{}};function $g(e){return e==="x"?"y":"x"}function Ig(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,s=o===void 0?!0:o,i=n.altAxis,a=i===void 0?!1:i,l=n.boundary,c=n.rootBoundary,u=n.altBoundary,f=n.padding,h=n.tether,p=h===void 0?!0:h,w=n.tetherOffset,b=w===void 0?0:w,T=or(t,{boundary:l,rootBoundary:c,padding:f,altBoundary:u}),_=Bt(t.placement),S=sr(t.placement),A=!S,y=ca(_),C=$g(y),x=t.modifiersData.popperOffsets,O=t.rects.reference,K=t.rects.popper,Y=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,ee=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),ne=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(!!x){if(s){var X,I=y==="y"?it:at,N=y==="y"?_t:vt,Z=y==="y"?"height":"width",G=x[y],te=G+T[I],le=G-T[N],he=p?-K[Z]/2:0,ae=S===Nn?O[Z]:K[Z],me=S===Nn?-K[Z]:-O[Z],Te=t.elements.arrow,pe=p&&Te?la(Te):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:qf(),W=H[I],L=H[N],q=Pr(0,O[Z],pe[Z]),J=A?O[Z]/2-he-q-W-ee.mainAxis:ae-q-W-ee.mainAxis,ue=A?-O[Z]/2+he+q+L+ee.mainAxis:me+q+L+ee.mainAxis,ie=t.elements.arrow&&Jr(t.elements.arrow),v=ie?y==="y"?ie.clientTop||0:ie.clientLeft||0:0,d=(X=ne==null?void 0:ne[y])!=null?X:0,m=G+J-d-v,E=G+ue-d,P=Pr(p?Vs(te,m):te,G,p?Ln(le,E):le);x[y]=P,R[y]=P-G}if(a){var V,Q=y==="x"?it:at,k=y==="x"?_t:vt,j=x[C],U=C==="y"?"height":"width",$=j+T[Q],D=j-T[k],se=[it,at].indexOf(_)!==-1,ce=(V=ne==null?void 0:ne[C])!=null?V:0,ve=se?$:j-O[U]-K[U]-ce+ee.altAxis,Ae=se?j+O[U]+K[U]-ce-ee.altAxis:D,Ee=p&&se?cg(ve,j,Ae):Pr(p?ve:$,j,p?Ae:D);x[C]=Ee,R[C]=Ee-j}t.modifiersData[r]=R}}const Kf={name:"preventOverflow",enabled:!0,phase:"main",fn:Ig,requiresIfExists:["offset"]};function Pg(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Og(e){return e===Tt(e)||!Et(e)?da(e):Pg(e)}function kg(e){var t=e.getBoundingClientRect(),n=nr(t.width)/e.offsetWidth||1,r=nr(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Rg(e,t,n){n===void 0&&(n=!1);var r=Et(t),o=Et(t)&&kg(t),s=gn(t),i=rr(e,o,n),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((jt(t)!=="body"||ma(s))&&(a=Og(t)),Et(t)?(l=rr(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):s&&(l.x=ha(s))),{x:i.left+a.scrollLeft-l.x,y:i.top+a.scrollTop-l.y,width:i.width,height:i.height}}function Dg(e){var t=new Map,n=new Set,r=[];e.forEach(function(s){t.set(s.name,s)});function o(s){n.add(s.name);var i=[].concat(s.requires||[],s.requiresIfExists||[]);i.forEach(function(a){if(!n.has(a)){var l=t.get(a);l&&o(l)}}),r.push(s)}return e.forEach(function(s){n.has(s.name)||o(s)}),r}function Fg(e){var t=Dg(e);return Rf.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function qg(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Vg(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var lc={placement:"bottom",modifiers:[],strategy:"absolute"};function cc(){for(var e=arguments.length,t=new Array(e),n=0;nQ&&typeof Q=="object"&&"default"in Q?Q:{default:Q};function c(Q){if(Q&&Q.__esModule)return Q;const k=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(Q){for(const j in Q)if(j!=="default"){const U=Object.getOwnPropertyDescriptor(Q,j);Object.defineProperty(k,j,U.get?U:{enumerable:!0,get:()=>Q[j]})}}return k.default=Q,Object.freeze(k)}const u=c(n),f=l(o),h=l(s),p=l(i),w=l(a),b="dropdown",_=".bs.dropdown",S=".data-api",A="Escape",y="Tab",C="ArrowUp",x="ArrowDown",P=2,K=`hide${_}`,Y=`hidden${_}`,ee=`show${_}`,ne=`shown${_}`,R=`click${_}${S}`,X=`keydown${_}${S}`,I=`keyup${_}${S}`,N="show",Z="dropup",G="dropend",te="dropstart",le="dropup-center",he="dropdown-center",ae='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',me=`${ae}.${N}`,Te=".dropdown-menu",pe=".navbar",H=".navbar-nav",W=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",L=r.isRTL()?"top-end":"top-start",q=r.isRTL()?"top-start":"top-end",J=r.isRTL()?"bottom-end":"bottom-start",ue=r.isRTL()?"bottom-start":"bottom-end",ie=r.isRTL()?"left-start":"right-start",v=r.isRTL()?"right-start":"left-start",d="top",m="bottom",E={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},O={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class V extends w.default{constructor(k,j){super(k,j),this._popper=null,this._parent=this._element.parentNode,this._menu=p.default.next(this._element,Te)[0]||p.default.prev(this._element,Te)[0]||p.default.findOne(Te,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return E}static get DefaultType(){return O}static get NAME(){return b}toggle(){return this._isShown()?this.hide():this.show()}show(){if(r.isDisabled(this._element)||this._isShown())return;const k={relatedTarget:this._element};if(!f.default.trigger(this._element,ee,k).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(H))for(const U of[].concat(...document.body.children))f.default.on(U,"mouseover",r.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(N),this._element.classList.add(N),f.default.trigger(this._element,ne,k)}}hide(){if(r.isDisabled(this._element)||!this._isShown())return;const k={relatedTarget:this._element};this._completeHide(k)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(k){if(!f.default.trigger(this._element,K,k).defaultPrevented){if("ontouchstart"in document.documentElement)for(const U of[].concat(...document.body.children))f.default.off(U,"mouseover",r.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(N),this._element.classList.remove(N),this._element.setAttribute("aria-expanded","false"),h.default.removeDataAttribute(this._menu,"popper"),f.default.trigger(this._element,Y,k)}}_getConfig(k){if(k=super._getConfig(k),typeof k.reference=="object"&&!r.isElement(k.reference)&&typeof k.reference.getBoundingClientRect!="function")throw new TypeError(`${b.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return k}_createPopper(){if(typeof u>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let k=this._element;this._config.reference==="parent"?k=this._parent:r.isElement(this._config.reference)?k=r.getElement(this._config.reference):typeof this._config.reference=="object"&&(k=this._config.reference);const j=this._getPopperConfig();this._popper=u.createPopper(k,this._menu,j)}_isShown(){return this._menu.classList.contains(N)}_getPlacement(){const k=this._parent;if(k.classList.contains(G))return ie;if(k.classList.contains(te))return v;if(k.classList.contains(le))return d;if(k.classList.contains(he))return m;const j=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return k.classList.contains(Z)?j?q:L:j?ue:J}_detectNavbar(){return this._element.closest(pe)!==null}_getOffset(){const{offset:k}=this._config;return typeof k=="string"?k.split(",").map(j=>Number.parseInt(j,10)):typeof k=="function"?j=>k(j,this._element):k}_getPopperConfig(){const k={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(h.default.setDataAttribute(this._menu,"popper","static"),k.modifiers=[{name:"applyStyles",enabled:!1}]),{...k,...typeof this._config.popperConfig=="function"?this._config.popperConfig(k):this._config.popperConfig}}_selectMenuItem({key:k,target:j}){const U=p.default.find(W,this._menu).filter($=>r.isVisible($));!U.length||r.getNextActiveElement(U,j,k===x,!U.includes(j)).focus()}static jQueryInterface(k){return this.each(function(){const j=V.getOrCreateInstance(this,k);if(typeof k=="string"){if(typeof j[k]>"u")throw new TypeError(`No method named "${k}"`);j[k]()}})}static clearMenus(k){if(k.button===P||k.type==="keyup"&&k.key!==y)return;const j=p.default.find(me);for(const U of j){const $=V.getInstance(U);if(!$||$._config.autoClose===!1)continue;const D=k.composedPath(),se=D.includes($._menu);if(D.includes($._element)||$._config.autoClose==="inside"&&!se||$._config.autoClose==="outside"&&se||$._menu.contains(k.target)&&(k.type==="keyup"&&k.key===y||/input|select|option|textarea|form/i.test(k.target.tagName)))continue;const ce={relatedTarget:$._element};k.type==="click"&&(ce.clickEvent=k),$._completeHide(ce)}}static dataApiKeydownHandler(k){const j=/input|textarea/i.test(k.target.tagName),U=k.key===A,$=[C,x].includes(k.key);if(!$&&!U||j&&!U)return;k.preventDefault();const D=this.matches(ae)?this:p.default.prev(this,ae)[0]||p.default.next(this,ae)[0]||p.default.findOne(ae,k.delegateTarget.parentNode),se=V.getOrCreateInstance(D);if($){k.stopPropagation(),se.show(),se._selectMenuItem(k);return}se._isShown()&&(k.stopPropagation(),se.hide(),D.focus())}}return f.default.on(document,X,ae,V.dataApiKeydownHandler),f.default.on(document,X,Te,V.dataApiKeydownHandler),f.default.on(document,R,V.clearMenus),f.default.on(document,I,V.clearMenus),f.default.on(document,R,ae,function(Q){Q.preventDefault(),V.getOrCreateInstance(this).toggle()}),r.defineJQueryPlugin(V),V})})(Tf);const Yf=au(Tf.exports);var Wg='';class zg extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Wg}}window.customElements.define("shopicon-regular-gift",zg);var Kg='';class Yg extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Kg}}window.customElements.define("shopicon-regular-moonstars",Yg);var Zg='';class Gg extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Zg}}window.customElements.define("shopicon-regular-menu",Gg);var Xg='';class Jg extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Xg}}window.customElements.define("shopicon-regular-newtab",Jg);function Zf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gf}=Object.prototype,{getPrototypeOf:pa}=Object,ga=(e=>t=>{const n=Gf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tn=e=>(e=e.toLowerCase(),t=>ga(t)===e),lo=e=>t=>typeof t===e,{isArray:mr}=Array,zr=lo("undefined");function e2(e){return e!==null&&!zr(e)&&e.constructor!==null&&!zr(e.constructor)&&In(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Xf=tn("ArrayBuffer");function t2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Xf(e.buffer),t}const n2=lo("string"),In=lo("function"),Jf=lo("number"),_a=e=>e!==null&&typeof e=="object",r2=e=>e===!0||e===!1,xs=e=>{if(ga(e)!=="object")return!1;const t=pa(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},s2=tn("Date"),o2=tn("File"),i2=tn("Blob"),a2=tn("FileList"),l2=e=>_a(e)&&In(e.pipe),c2=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Gf.call(e)===t||In(e.toString)&&e.toString()===t)},u2=tn("URLSearchParams"),f2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function es(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),mr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const td=typeof self>"u"?typeof global>"u"?globalThis:global:self,nd=e=>!zr(e)&&e!==td;function fi(){const{caseless:e}=nd(this)&&this||{},t={},n=(r,o)=>{const s=e&&ed(t,o)||o;xs(t[s])&&xs(r)?t[s]=fi(t[s],r):xs(r)?t[s]=fi({},r):mr(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(es(t,(o,s)=>{n&&In(o)?e[s]=Zf(o,n):e[s]=o},{allOwnKeys:r}),e),h2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),m2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},p2=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&pa(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},g2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},_2=e=>{if(!e)return null;if(mr(e))return e;let t=e.length;if(!Jf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},v2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pa(Uint8Array)),b2=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},y2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},w2=tn("HTMLFormElement"),E2=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),cc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),T2=tn("RegExp"),rd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};es(n,(o,s)=>{t(o,s,e)!==!1&&(r[s]=o)}),Object.defineProperties(e,r)},S2=e=>{rd(e,(t,n)=>{if(In(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!In(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},C2=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return mr(e)?r(e):r(String(e).split(t)),n},A2=()=>{},x2=(e,t)=>(e=+e,Number.isFinite(e)?e:t),L2=e=>{const t=new Array(10),n=(r,o)=>{if(_a(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=mr(r)?[]:{};return es(r,(i,a)=>{const l=n(i,o+1);!zr(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},z={isArray:mr,isArrayBuffer:Xf,isBuffer:e2,isFormData:c2,isArrayBufferView:t2,isString:n2,isNumber:Jf,isBoolean:r2,isObject:_a,isPlainObject:xs,isUndefined:zr,isDate:s2,isFile:o2,isBlob:i2,isRegExp:T2,isFunction:In,isStream:l2,isURLSearchParams:u2,isTypedArray:v2,isFileList:a2,forEach:es,merge:fi,extend:d2,trim:f2,stripBOM:h2,inherits:m2,toFlatObject:p2,kindOf:ga,kindOfTest:tn,endsWith:g2,toArray:_2,forEachEntry:b2,matchAll:y2,isHTMLForm:w2,hasOwnProperty:cc,hasOwnProp:cc,reduceDescriptors:rd,freezeMethods:S2,toObjectSet:C2,toCamelCase:E2,noop:A2,toFiniteNumber:x2,findKey:ed,global:td,isContextDefined:nd,toJSONObject:L2};function Le(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}z.inherits(Le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const sd=Le.prototype,od={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{od[e]={value:e}});Object.defineProperties(Le,od);Object.defineProperty(sd,"isAxiosError",{value:!0});Le.from=(e,t,n,r,o,s)=>{const i=Object.create(sd);return z.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Le.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var M2=typeof self=="object"?self.FormData:window.FormData;const N2=M2;function di(e){return z.isPlainObject(e)||z.isArray(e)}function id(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function uc(e,t,n){return e?e.concat(t).map(function(o,s){return o=id(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function $2(e){return z.isArray(e)&&!e.some(di)}const I2=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function O2(e){return e&&z.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function co(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new(N2||FormData),n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,T){return!z.isUndefined(T[b])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&O2(t);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function c(w){if(w===null)return"";if(z.isDate(w))return w.toISOString();if(!l&&z.isBlob(w))throw new Le("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(w)||z.isTypedArray(w)?l&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function u(w,b,T){let _=w;if(w&&!T&&typeof w=="object"){if(z.endsWith(b,"{}"))b=r?b:b.slice(0,-2),w=JSON.stringify(w);else if(z.isArray(w)&&$2(w)||z.isFileList(w)||z.endsWith(b,"[]")&&(_=z.toArray(w)))return b=id(b),_.forEach(function(A,y){!(z.isUndefined(A)||A===null)&&t.append(i===!0?uc([b],y,s):i===null?b:b+"[]",c(A))}),!1}return di(w)?!0:(t.append(uc(T,b,s),c(w)),!1)}const f=[],h=Object.assign(I2,{defaultVisitor:u,convertValue:c,isVisitable:di});function p(w,b){if(!z.isUndefined(w)){if(f.indexOf(w)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(w),z.forEach(w,function(_,S){(!(z.isUndefined(_)||_===null)&&o.call(t,_,z.isString(S)?S.trim():S,b,h))===!0&&p(_,b?b.concat(S):[S])}),f.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return p(e),t}function fc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function va(e,t){this._pairs=[],e&&co(e,this,t)}const ad=va.prototype;ad.append=function(t,n){this._pairs.push([t,n])};ad.toString=function(t){const n=t?function(r){return t.call(this,r,fc)}:fc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function P2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ld(e,t,n){if(!t)return e;const r=n&&n.encode||P2,o=n&&n.serialize;let s;if(o?s=o(t,n):s=z.isURLSearchParams(t)?t.toString():new va(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class k2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const dc=k2,cd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},R2=typeof URLSearchParams<"u"?URLSearchParams:va,D2=FormData,F2=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),q2=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Vt={isBrowser:!0,classes:{URLSearchParams:R2,FormData:D2,Blob},isStandardBrowserEnv:F2,isStandardBrowserWebWorkerEnv:q2,protocols:["http","https","file","blob","url","data"]};function V2(e,t){return co(e,new Vt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Vt.isNode&&z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function H2(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function B2(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&z.isArray(o)?o.length:i,l?(z.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!z.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&z.isArray(o[i])&&(o[i]=B2(o[i])),!a)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(r,o)=>{t(H2(r),o,n,0)}),n}return null}const U2={"Content-Type":void 0};function j2(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const uo={transitional:cd,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=z.isObject(t);if(s&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return o&&o?JSON.stringify(ud(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return V2(t,this.formSerializer).toString();if((a=z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return co(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),j2(t)):t}],transformResponse:[function(t){const n=this.transitional||uo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&z.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?Le.from(a,Le.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};z.forEach(["delete","get","head"],function(t){uo.headers[t]={}});z.forEach(["post","put","patch"],function(t){uo.headers[t]=z.merge(U2)});const ba=uo,Q2=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),W2=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&Q2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},hc=Symbol("internals");function wr(e){return e&&String(e).trim().toLowerCase()}function Ls(e){return e===!1||e==null?e:z.isArray(e)?e.map(Ls):String(e)}function z2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function K2(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function mc(e,t,n,r){if(z.isFunction(r))return r.call(this,t,n);if(!!z.isString(t)){if(z.isString(r))return t.indexOf(r)!==-1;if(z.isRegExp(r))return r.test(t)}}function Y2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Z2(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class fo{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,c){const u=wr(l);if(!u)throw new Error("header name must be a non-empty string");const f=z.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Ls(a))}const i=(a,l)=>z.forEach(a,(c,u)=>s(c,u,l));return z.isPlainObject(t)||t instanceof this.constructor?i(t,n):z.isString(t)&&(t=t.trim())&&!K2(t)?i(W2(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=wr(t),t){const r=z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return z2(o);if(z.isFunction(n))return n.call(this,o,r);if(z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wr(t),t){const r=z.findKey(this,t);return!!(r&&(!n||mc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=wr(i),i){const a=z.findKey(r,i);a&&(!n||mc(r,r[a],a,n))&&(delete r[a],o=!0)}}return z.isArray(t)?t.forEach(s):s(t),o}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return z.forEach(this,(o,s)=>{const i=z.findKey(r,s);if(i){n[i]=Ls(o),delete n[s];return}const a=t?Y2(s):String(s).trim();a!==s&&delete n[s],n[a]=Ls(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[hc]=this[hc]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=wr(i);r[a]||(Z2(o,i),r[a]=!0)}return z.isArray(t)?t.forEach(s):s(t),this}}fo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);z.freezeMethods(fo.prototype);z.freezeMethods(fo);const Yt=fo;function Vo(e,t){const n=this||ba,r=t||n,o=Yt.from(r.headers);let s=r.data;return z.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function fd(e){return!!(e&&e.__CANCEL__)}function ts(e,t,n){Le.call(this,e==null?"canceled":e,Le.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(ts,Le,{__CANCEL__:!0});const G2=null;function X2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Le("Request failed with status code "+n.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const J2=Vt.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),z.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),z.isString(s)&&l.push("path="+s),z.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function e_(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function t_(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function dd(e,t){return e&&!e_(t)?t_(e,t):t}const n_=Vt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=z.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function r_(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function s_(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];i||(i=c),n[o]=l,r[o]=c;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),c=s<=i;n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-s)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const o_=typeof XMLHttpRequest<"u",i_=o_&&function(e){return new Promise(function(n,r){let o=e.data;const s=Yt.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}z.isFormData(o)&&(Vt.isStandardBrowserEnv||Vt.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(p+":"+w))}const u=dd(e.baseURL,e.url);c.open(e.method.toUpperCase(),ld(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const p=Yt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};X2(function(_){n(_),l()},function(_){r(_),l()},b),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){!c||(r(new Le("Request aborted",Le.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new Le("Network Error",Le.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||cd;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new Le(w,b.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,e,c)),c=null},Vt.isStandardBrowserEnv){const p=(e.withCredentials||n_(u))&&e.xsrfCookieName&&J2.read(e.xsrfCookieName);p&&s.set(e.xsrfHeaderName,p)}o===void 0&&s.setContentType(null),"setRequestHeader"in c&&z.forEach(s.toJSON(),function(w,b){c.setRequestHeader(b,w)}),z.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",pc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",pc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{!c||(r(!p||p.type?new ts(null,e,c):p),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=r_(u);if(h&&Vt.protocols.indexOf(h)===-1){r(new Le("Unsupported protocol "+h+":",Le.ERR_BAD_REQUEST,e));return}c.send(o||null)})},Ms={http:G2,xhr:i_};z.forEach(Ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const a_={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof Yt?e.toJSON():e;function ir(e,t){t=t||{};const n={};function r(c,u,f){return z.isPlainObject(c)&&z.isPlainObject(u)?z.merge.call({caseless:f},c,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function o(c,u,f){if(z.isUndefined(u)){if(!z.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function s(c,u){if(!z.isUndefined(u))return r(void 0,u)}function i(c,u){if(z.isUndefined(u)){if(!z.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u)=>o(_c(c),_c(u),!0)};return z.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);z.isUndefined(h)&&f!==a||(n[u]=h)}),n}const hd="1.2.1",ya={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{ya[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const vc={};ya.transitional=function(t,n,r){function o(s,i){return"[Axios v"+hd+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new Le(o(i," has been removed"+(n?" in "+n:"")),Le.ERR_DEPRECATED);return n&&!vc[i]&&(vc[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function l_(e,t,n){if(typeof e!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new Le("option "+s+" must be "+l,Le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Le("Unknown option "+s,Le.ERR_BAD_OPTION)}}const hi={assertOptions:l_,validators:ya},sn=hi.validators;class Hs{constructor(t){this.defaults=t,this.interceptors={request:new dc,response:new dc}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ir(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&hi.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),o!==void 0&&hi.assertOptions(o,{encode:sn.function,serialize:sn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=s&&z.merge(s.common,s[n.method]),i&&z.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),n.headers=Yt.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let u,f=0,h;if(!l){const w=[gc.bind(this),void 0];for(w.unshift.apply(w,a),w.push.apply(w,c),h=w.length,u=Promise.resolve(n);f{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new ts(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new wa(function(o){t=o}),cancel:t}}}const c_=wa;function u_(e){return function(n){return e.apply(null,n)}}function f_(e){return z.isObject(e)&&e.isAxiosError===!0}function md(e){const t=new Ns(e),n=Zf(Ns.prototype.request,t);return z.extend(n,Ns.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return md(ir(e,o))},n}const Ye=md(ba);Ye.Axios=Ns;Ye.CanceledError=ts;Ye.CancelToken=c_;Ye.isCancel=fd;Ye.VERSION=hd;Ye.toFormData=co;Ye.AxiosError=Le;Ye.Cancel=Ye.CanceledError;Ye.all=function(t){return Promise.all(t)};Ye.spread=u_;Ye.isAxiosError=f_;Ye.mergeConfig=ir;Ye.AxiosHeaders=Yt;Ye.formToJSON=e=>ud(z.isHTMLForm(e)?new FormData(e):e);Ye.default=Ye;const ho=Ye,{protocol:d_,hostname:h_,port:bc,pathname:m_}=window.location,pd=d_+"//"+h_+(bc?":"+bc:"")+m_,Ze=ho.create({baseURL:pd+"api/",headers:{Accept:"application/json"}});Ze.interceptors.response.use(e=>e,e=>{const t=e.config.baseURL+e.config.url,n=`${e.message}: API request failed ${t}`;return window.app.error({message:n}),Promise.reject(e)});const p_=ho.create({baseURL:pd+"i18n/",headers:{Accept:"application/toml"}}),gd="settings_locale",_d="settings_theme",vd="settings_unit";function Bo(e){return window.localStorage[e]}function Ea(e){return t=>{try{t?window.localStorage[e]=t:delete window.localStorage[e]}catch{console.error("unable to write to localstorage",{key:e,value:t})}}}const ot=mn({telemetry:null,locale:Bo(gd),theme:Bo(_d),unit:Bo(vd)});Nt(()=>ot.locale,Ea(gd));Nt(()=>ot.theme,Ea(_d));Nt(()=>ot.unit,Ea(vd));function g_(e){return e.replace(/\*\*(.*)\*\*/gim,"$1").replace(/\*(.*)\*/gim,"$1").replace(/`(.*)`/gim,"
$1
").trim()}const __={name:"TelemetrySettings",props:{sponsor:String},data(){return{error:null}},computed:{enabled(){return ot.telemetry}},async mounted(){await this.update()},methods:{async change(e){try{this.error=null;const t=await Ze.post(`settings/telemetry/${e.target.checked}`);ot.telemetry=t.data.result}catch(t){t.response&&(this.error=g_("**Error:** "+t.response.data.error),ot.telemetry=!1)}},async update(){if(ot.telemetry===null)try{const e=await Ze.get("settings/telemetry");ot.telemetry=e.data.result}catch(e){console.error(e)}}}},v_={class:"form-check form-switch my-3"},b_=["disabled"],y_={class:"form-check-label"},w_={for:"telemetryEnabled"},E_={href:"https://docs.evcc.io/docs/guides/setup/#telemetry--community-daten",target:"_blank"},T_={key:1},S_=["innerHTML"];function C_(e,t,n,r,o,s){const i=de("i18n-t");return M(),F("div",v_,[mt(g("input",{id:"telemetryEnabled","onUpdate:modelValue":t[0]||(t[0]=a=>s.enabled=a),class:"form-check-input",type:"checkbox",role:"switch",disabled:!n.sponsor,onChange:t[1]||(t[1]=(...a)=>s.change&&s.change(...a))},null,40,b_),[[yp,s.enabled]]),g("div",y_,[g("label",w_,[$e(B(e.$t("footer.telemetry.optIn"))+" ",1),n.sponsor?(M(),be(i,{key:0,tag:"span",keypath:"footer.telemetry.optInMoreDetails"},{default:Ve(()=>[g("a",E_,B(e.$t("footer.telemetry.optInMoreDetailsLink")),1)]),_:1})):(M(),F("span",T_,B(e.$t("footer.telemetry.optInSponsorship")),1))]),o.error?(M(),F("div",{key:0,class:"errorMessage my-1 text-danger",innerHTML:o.error},null,8,S_)):ye("",!0)])])}const bd=fe(__,[["render",C_],["__scopeId","data-v-41b490ec"]]),A_={name:"FormRow",props:{id:String,label:String}},x_={class:"mb-4 row"},L_=["for"],M_={class:"col-sm-8 pe-0"};function N_(e,t,n,r,o,s){return M(),F("div",x_,[g("label",{for:n.id,class:"col-sm-4 col-form-label pt-0 pt-sm-1"},B(n.label),9,L_),g("div",M_,[Xs(e.$slots,"default")])])}const $_=fe(A_,[["render",N_]]),I_={name:"SelectGroup",props:{id:String,options:Array,modelValue:[Number,String]},emits:["update:modelValue"]},O_={class:"mode-group border d-inline-flex",role:"group"},P_=["id","onClick"];function k_(e,t,n,r,o,s){return M(),F("div",O_,[(M(!0),F(Se,null,He(n.options,(i,a)=>(M(),F("button",{id:a===0?n.id:null,key:i.value,type:"button",class:Me(["btn btn-sm flex-grow-1 flex-shrink-1",{active:i.value===n.modelValue}]),onClick:l=>e.$emit("update:modelValue",i.value)},B(i.name),11,P_))),128))])}const R_=fe(I_,[["render",k_],["__scopeId","data-v-ba5c83ca"]]);function Ta(e,t,n,r){r===void 0&&(r=!1);for(var o,s,i,a=0,l="",c=t;s=c.exec(e);)o=e.substring(a,s.index),a=c.lastIndex,n&&typeof n=="function"?i=n(e,s):i=n,l+=o,l+=i;return l+=e.substring(a),c.test(l)&&r===!0?Ta(l,new RegExp(c),n,!0):l}function D_(e){var t=new RegExp("^\\s*\\[(\\[)?(.*?)\\]\\]?(?= *$)((?:[\\w\\W](?!^\\s*\\[))*)","gm"),n={};return e=e[0]==="["?e:`[] -`+e,e=e.replace(/('{3,}(?:(?!'{3,})[\w\W]+?)'{3,})/gm,function(r,o){if(o)return o.replace(/^(\s*)(\[)/gm,"$1__>>[<<__")}),Ta(e,t,function(r,o){o[1]?yc(n,o[2].trim(),Uo(o[3]),!0):o[2]===""?n=Object.assign({},n,Uo(o[3])):yc(n,o[2].trim(),Uo(o[3]),!1)}),JSON.parse(JSON.stringify(n,F_),q_)}function Uo(e){var t=new RegExp(`^[ ]*(.+?) *[=:] *(?:"((?!")[\\w\\W]+?)"|'{3,}((?!'{3,})[\\w\\W]+?)'{3,}|(\\[[\\w\\W]+?(?:(?: *])+ *$\\n*)+)|(\\{[\\w\\W]+?(?:(?: *})+ *$\\n*)+)|(.+) *)|^(.+)$`,"gm"),n={};return Ta(e,t,function(r,o){var s,i;if(o[1])return o[1].charAt(0)==="#"?void 0:(s=o[1].charAt(0)==='"'&&o[1].charAt(o[1].length-1)==='"'?o[1].slice(1,-1):o[1],(o[2]||o[3])&&(i=o[2]||o[3].replace(/^(\s*)(__>>\[<<__)/gm,"$1[")),(o[4]||o[5])&&(i=JSON.parse(""+(o[4]||o[5]))),o[6]&&(o[6]=o[6].trim(),+o[6]==+o[6]?i=Number(o[6]):o[6]==="true"||o[6]==="false"?i=o[6]==="true":o[6]==="inf"||o[6]==="+inf"?i=1/0:o[6]==="-inf"?i=-1/0:parseInt(o[6],16).toString(16)===o[6].toLowerCase()?i=parseInt(o[6],16):parseInt(o[6],8).toString(8)===o[6].toLowerCase()?i=parseInt(o[6],8):parseInt(o[6],2).toString(2)===o[6].toLowerCase()?i=parseInt(o[6],2):i=o[6]),n[s]=i,"");if(o[7])return""}),n}function yc(e,t,n,r){r=!!r,t.split&&(t=t.split("."));for(var o=0,s=t.length,i=e,a;o>NaN<<__":t===1/0?"__>>Inf<<__":t===-1/0?"__>>-Inf<<__":t},q_=function(e,t){return t==="__>>NaN<<__"?NaN:t==="__>>Inf<<__"?1/0:t==="__>>-Inf<<__"?-1/0:t};/*! + */(function(e,t){(function(n,r){e.exports=r(Yf,It(),Pn(),ro(),Gr(),ra())})(et,function(n,r,o,s,i,a){const l=Q=>Q&&typeof Q=="object"&&"default"in Q?Q:{default:Q};function c(Q){if(Q&&Q.__esModule)return Q;const k=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(Q){for(const j in Q)if(j!=="default"){const U=Object.getOwnPropertyDescriptor(Q,j);Object.defineProperty(k,j,U.get?U:{enumerable:!0,get:()=>Q[j]})}}return k.default=Q,Object.freeze(k)}const u=c(n),f=l(o),h=l(s),p=l(i),w=l(a),b="dropdown",_=".bs.dropdown",S=".data-api",A="Escape",y="Tab",C="ArrowUp",x="ArrowDown",O=2,K=`hide${_}`,Y=`hidden${_}`,ee=`show${_}`,ne=`shown${_}`,R=`click${_}${S}`,X=`keydown${_}${S}`,I=`keyup${_}${S}`,N="show",Z="dropup",G="dropend",te="dropstart",le="dropup-center",he="dropdown-center",ae='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',me=`${ae}.${N}`,Te=".dropdown-menu",pe=".navbar",H=".navbar-nav",W=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",L=r.isRTL()?"top-end":"top-start",q=r.isRTL()?"top-start":"top-end",J=r.isRTL()?"bottom-end":"bottom-start",ue=r.isRTL()?"bottom-start":"bottom-end",ie=r.isRTL()?"left-start":"right-start",v=r.isRTL()?"right-start":"left-start",d="top",m="bottom",E={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},P={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class V extends w.default{constructor(k,j){super(k,j),this._popper=null,this._parent=this._element.parentNode,this._menu=p.default.next(this._element,Te)[0]||p.default.prev(this._element,Te)[0]||p.default.findOne(Te,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return E}static get DefaultType(){return P}static get NAME(){return b}toggle(){return this._isShown()?this.hide():this.show()}show(){if(r.isDisabled(this._element)||this._isShown())return;const k={relatedTarget:this._element};if(!f.default.trigger(this._element,ee,k).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(H))for(const U of[].concat(...document.body.children))f.default.on(U,"mouseover",r.noop);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(N),this._element.classList.add(N),f.default.trigger(this._element,ne,k)}}hide(){if(r.isDisabled(this._element)||!this._isShown())return;const k={relatedTarget:this._element};this._completeHide(k)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(k){if(!f.default.trigger(this._element,K,k).defaultPrevented){if("ontouchstart"in document.documentElement)for(const U of[].concat(...document.body.children))f.default.off(U,"mouseover",r.noop);this._popper&&this._popper.destroy(),this._menu.classList.remove(N),this._element.classList.remove(N),this._element.setAttribute("aria-expanded","false"),h.default.removeDataAttribute(this._menu,"popper"),f.default.trigger(this._element,Y,k)}}_getConfig(k){if(k=super._getConfig(k),typeof k.reference=="object"&&!r.isElement(k.reference)&&typeof k.reference.getBoundingClientRect!="function")throw new TypeError(`${b.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return k}_createPopper(){if(typeof u>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let k=this._element;this._config.reference==="parent"?k=this._parent:r.isElement(this._config.reference)?k=r.getElement(this._config.reference):typeof this._config.reference=="object"&&(k=this._config.reference);const j=this._getPopperConfig();this._popper=u.createPopper(k,this._menu,j)}_isShown(){return this._menu.classList.contains(N)}_getPlacement(){const k=this._parent;if(k.classList.contains(G))return ie;if(k.classList.contains(te))return v;if(k.classList.contains(le))return d;if(k.classList.contains(he))return m;const j=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return k.classList.contains(Z)?j?q:L:j?ue:J}_detectNavbar(){return this._element.closest(pe)!==null}_getOffset(){const{offset:k}=this._config;return typeof k=="string"?k.split(",").map(j=>Number.parseInt(j,10)):typeof k=="function"?j=>k(j,this._element):k}_getPopperConfig(){const k={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(h.default.setDataAttribute(this._menu,"popper","static"),k.modifiers=[{name:"applyStyles",enabled:!1}]),{...k,...typeof this._config.popperConfig=="function"?this._config.popperConfig(k):this._config.popperConfig}}_selectMenuItem({key:k,target:j}){const U=p.default.find(W,this._menu).filter($=>r.isVisible($));!U.length||r.getNextActiveElement(U,j,k===x,!U.includes(j)).focus()}static jQueryInterface(k){return this.each(function(){const j=V.getOrCreateInstance(this,k);if(typeof k=="string"){if(typeof j[k]>"u")throw new TypeError(`No method named "${k}"`);j[k]()}})}static clearMenus(k){if(k.button===O||k.type==="keyup"&&k.key!==y)return;const j=p.default.find(me);for(const U of j){const $=V.getInstance(U);if(!$||$._config.autoClose===!1)continue;const D=k.composedPath(),se=D.includes($._menu);if(D.includes($._element)||$._config.autoClose==="inside"&&!se||$._config.autoClose==="outside"&&se||$._menu.contains(k.target)&&(k.type==="keyup"&&k.key===y||/input|select|option|textarea|form/i.test(k.target.tagName)))continue;const ce={relatedTarget:$._element};k.type==="click"&&(ce.clickEvent=k),$._completeHide(ce)}}static dataApiKeydownHandler(k){const j=/input|textarea/i.test(k.target.tagName),U=k.key===A,$=[C,x].includes(k.key);if(!$&&!U||j&&!U)return;k.preventDefault();const D=this.matches(ae)?this:p.default.prev(this,ae)[0]||p.default.next(this,ae)[0]||p.default.findOne(ae,k.delegateTarget.parentNode),se=V.getOrCreateInstance(D);if($){k.stopPropagation(),se.show(),se._selectMenuItem(k);return}se._isShown()&&(k.stopPropagation(),se.hide(),D.focus())}}return f.default.on(document,X,ae,V.dataApiKeydownHandler),f.default.on(document,X,Te,V.dataApiKeydownHandler),f.default.on(document,R,V.clearMenus),f.default.on(document,I,V.clearMenus),f.default.on(document,R,ae,function(Q){Q.preventDefault(),V.getOrCreateInstance(this).toggle()}),r.defineJQueryPlugin(V),V})})(Sf);const Zf=lu(Sf.exports);var zg='';class Kg extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=zg}}window.customElements.define("shopicon-regular-gift",Kg);var Yg='';class Zg extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Yg}}window.customElements.define("shopicon-regular-moonstars",Zg);var Gg='';class Xg extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Gg}}window.customElements.define("shopicon-regular-menu",Xg);var Jg='';class e2 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Jg}}window.customElements.define("shopicon-regular-newtab",e2);function Gf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xf}=Object.prototype,{getPrototypeOf:ga}=Object,_a=(e=>t=>{const n=Xf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),tn=e=>(e=e.toLowerCase(),t=>_a(t)===e),lo=e=>t=>typeof t===e,{isArray:mr}=Array,zr=lo("undefined");function t2(e){return e!==null&&!zr(e)&&e.constructor!==null&&!zr(e.constructor)&&In(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Jf=tn("ArrayBuffer");function n2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Jf(e.buffer),t}const r2=lo("string"),In=lo("function"),ed=lo("number"),va=e=>e!==null&&typeof e=="object",s2=e=>e===!0||e===!1,xs=e=>{if(_a(e)!=="object")return!1;const t=ga(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},o2=tn("Date"),i2=tn("File"),a2=tn("Blob"),l2=tn("FileList"),c2=e=>va(e)&&In(e.pipe),u2=e=>{const t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Xf.call(e)===t||In(e.toString)&&e.toString()===t)},f2=tn("URLSearchParams"),d2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function es(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),mr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const nd=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),rd=e=>!zr(e)&&e!==nd;function fi(){const{caseless:e}=rd(this)&&this||{},t={},n=(r,o)=>{const s=e&&td(t,o)||o;xs(t[s])&&xs(r)?t[s]=fi(t[s],r):xs(r)?t[s]=fi({},r):mr(r)?t[s]=r.slice():t[s]=r};for(let r=0,o=arguments.length;r(es(t,(o,s)=>{n&&In(o)?e[s]=Gf(o,n):e[s]=o},{allOwnKeys:r}),e),m2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),p2=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},g2=(e,t,n,r)=>{let o,s,i;const a={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)i=o[s],(!r||r(i,e,t))&&!a[i]&&(t[i]=e[i],a[i]=!0);e=n!==!1&&ga(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},_2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},v2=e=>{if(!e)return null;if(mr(e))return e;let t=e.length;if(!ed(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},b2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ga(Uint8Array)),y2=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const s=o.value;t.call(e,s[0],s[1])}},w2=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},E2=tn("HTMLFormElement"),T2=e=>e.toLowerCase().replace(/[_-\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),uc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),S2=tn("RegExp"),sd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};es(n,(o,s)=>{t(o,s,e)!==!1&&(r[s]=o)}),Object.defineProperties(e,r)},C2=e=>{sd(e,(t,n)=>{if(In(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(!!In(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},A2=(e,t)=>{const n={},r=o=>{o.forEach(s=>{n[s]=!0})};return mr(e)?r(e):r(String(e).split(t)),n},x2=()=>{},L2=(e,t)=>(e=+e,Number.isFinite(e)?e:t),M2=e=>{const t=new Array(10),n=(r,o)=>{if(va(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const s=mr(r)?[]:{};return es(r,(i,a)=>{const l=n(i,o+1);!zr(l)&&(s[a]=l)}),t[o]=void 0,s}}return r};return n(e,0)},z={isArray:mr,isArrayBuffer:Jf,isBuffer:t2,isFormData:u2,isArrayBufferView:n2,isString:r2,isNumber:ed,isBoolean:s2,isObject:va,isPlainObject:xs,isUndefined:zr,isDate:o2,isFile:i2,isBlob:a2,isRegExp:S2,isFunction:In,isStream:c2,isURLSearchParams:f2,isTypedArray:b2,isFileList:l2,forEach:es,merge:fi,extend:h2,trim:d2,stripBOM:m2,inherits:p2,toFlatObject:g2,kindOf:_a,kindOfTest:tn,endsWith:_2,toArray:v2,forEachEntry:y2,matchAll:w2,isHTMLForm:E2,hasOwnProperty:uc,hasOwnProp:uc,reduceDescriptors:sd,freezeMethods:C2,toObjectSet:A2,toCamelCase:T2,noop:x2,toFiniteNumber:L2,findKey:td,global:nd,isContextDefined:rd,toJSONObject:M2};function Le(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}z.inherits(Le,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:z.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const od=Le.prototype,id={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{id[e]={value:e}});Object.defineProperties(Le,id);Object.defineProperty(od,"isAxiosError",{value:!0});Le.from=(e,t,n,r,o,s)=>{const i=Object.create(od);return z.toFlatObject(e,i,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),Le.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};var N2=typeof self=="object"?self.FormData:window.FormData;const $2=N2;function di(e){return z.isPlainObject(e)||z.isArray(e)}function ad(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function fc(e,t,n){return e?e.concat(t).map(function(o,s){return o=ad(o),!n&&s?"["+o+"]":o}).join(n?".":""):t}function I2(e){return z.isArray(e)&&!e.some(di)}const P2=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function O2(e){return e&&z.isFunction(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator]}function co(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new($2||FormData),n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,T){return!z.isUndefined(T[b])});const r=n.metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&O2(t);if(!z.isFunction(o))throw new TypeError("visitor must be a function");function c(w){if(w===null)return"";if(z.isDate(w))return w.toISOString();if(!l&&z.isBlob(w))throw new Le("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(w)||z.isTypedArray(w)?l&&typeof Blob=="function"?new Blob([w]):Buffer.from(w):w}function u(w,b,T){let _=w;if(w&&!T&&typeof w=="object"){if(z.endsWith(b,"{}"))b=r?b:b.slice(0,-2),w=JSON.stringify(w);else if(z.isArray(w)&&I2(w)||z.isFileList(w)||z.endsWith(b,"[]")&&(_=z.toArray(w)))return b=ad(b),_.forEach(function(A,y){!(z.isUndefined(A)||A===null)&&t.append(i===!0?fc([b],y,s):i===null?b:b+"[]",c(A))}),!1}return di(w)?!0:(t.append(fc(T,b,s),c(w)),!1)}const f=[],h=Object.assign(P2,{defaultVisitor:u,convertValue:c,isVisitable:di});function p(w,b){if(!z.isUndefined(w)){if(f.indexOf(w)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(w),z.forEach(w,function(_,S){(!(z.isUndefined(_)||_===null)&&o.call(t,_,z.isString(S)?S.trim():S,b,h))===!0&&p(_,b?b.concat(S):[S])}),f.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return p(e),t}function dc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ba(e,t){this._pairs=[],e&&co(e,this,t)}const ld=ba.prototype;ld.append=function(t,n){this._pairs.push([t,n])};ld.toString=function(t){const n=t?function(r){return t.call(this,r,dc)}:dc;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function k2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cd(e,t,n){if(!t)return e;const r=n&&n.encode||k2,o=n&&n.serialize;let s;if(o?s=o(t,n):s=z.isURLSearchParams(t)?t.toString():new ba(t,n).toString(r),s){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class R2{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const hc=R2,ud={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},D2=typeof URLSearchParams<"u"?URLSearchParams:ba,F2=FormData,q2=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),V2=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Vt={isBrowser:!0,classes:{URLSearchParams:D2,FormData:F2,Blob},isStandardBrowserEnv:q2,isStandardBrowserWebWorkerEnv:V2,protocols:["http","https","file","blob","url","data"]};function H2(e,t){return co(e,new Vt.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,s){return Vt.isNode&&z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function B2(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function U2(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r=n.length;return i=!i&&z.isArray(o)?o.length:i,l?(z.hasOwnProp(o,i)?o[i]=[o[i],r]:o[i]=r,!a):((!o[i]||!z.isObject(o[i]))&&(o[i]=[]),t(n,r,o[i],s)&&z.isArray(o[i])&&(o[i]=U2(o[i])),!a)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(r,o)=>{t(B2(r),o,n,0)}),n}return null}const j2={"Content-Type":void 0};function Q2(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const uo={transitional:ud,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,s=z.isObject(t);if(s&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return o&&o?JSON.stringify(fd(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return H2(t,this.formSerializer).toString();if((a=z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return co(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(n.setContentType("application/json",!1),Q2(t)):t}],transformResponse:[function(t){const n=this.transitional||uo.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&z.isString(t)&&(r&&!this.responseType||o)){const i=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(a){if(i)throw a.name==="SyntaxError"?Le.from(a,Le.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vt.classes.FormData,Blob:Vt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};z.forEach(["delete","get","head"],function(t){uo.headers[t]={}});z.forEach(["post","put","patch"],function(t){uo.headers[t]=z.merge(j2)});const ya=uo,W2=z.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),z2=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(i){o=i.indexOf(":"),n=i.substring(0,o).trim().toLowerCase(),r=i.substring(o+1).trim(),!(!n||t[n]&&W2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},mc=Symbol("internals");function wr(e){return e&&String(e).trim().toLowerCase()}function Ls(e){return e===!1||e==null?e:z.isArray(e)?e.map(Ls):String(e)}function K2(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}function Y2(e){return/^[-_a-zA-Z]+$/.test(e.trim())}function pc(e,t,n,r){if(z.isFunction(r))return r.call(this,t,n);if(!!z.isString(t)){if(z.isString(r))return t.indexOf(r)!==-1;if(z.isRegExp(r))return r.test(t)}}function Z2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function G2(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,s,i){return this[r].call(this,t,o,s,i)},configurable:!0})})}class fo{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function s(a,l,c){const u=wr(l);if(!u)throw new Error("header name must be a non-empty string");const f=z.findKey(o,u);(!f||o[f]===void 0||c===!0||c===void 0&&o[f]!==!1)&&(o[f||l]=Ls(a))}const i=(a,l)=>z.forEach(a,(c,u)=>s(c,u,l));return z.isPlainObject(t)||t instanceof this.constructor?i(t,n):z.isString(t)&&(t=t.trim())&&!Y2(t)?i(z2(t),n):t!=null&&s(n,t,r),this}get(t,n){if(t=wr(t),t){const r=z.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return K2(o);if(z.isFunction(n))return n.call(this,o,r);if(z.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=wr(t),t){const r=z.findKey(this,t);return!!(r&&(!n||pc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function s(i){if(i=wr(i),i){const a=z.findKey(r,i);a&&(!n||pc(r,r[a],a,n))&&(delete r[a],o=!0)}}return z.isArray(t)?t.forEach(s):s(t),o}clear(){return Object.keys(this).forEach(this.delete.bind(this))}normalize(t){const n=this,r={};return z.forEach(this,(o,s)=>{const i=z.findKey(r,s);if(i){n[i]=Ls(o),delete n[s];return}const a=t?Z2(s):String(s).trim();a!==s&&delete n[s],n[a]=Ls(o),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[mc]=this[mc]={accessors:{}}).accessors,o=this.prototype;function s(i){const a=wr(i);r[a]||(G2(o,i),r[a]=!0)}return z.isArray(t)?t.forEach(s):s(t),this}}fo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent"]);z.freezeMethods(fo.prototype);z.freezeMethods(fo);const Yt=fo;function Vo(e,t){const n=this||ya,r=t||n,o=Yt.from(r.headers);let s=r.data;return z.forEach(e,function(a){s=a.call(n,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function dd(e){return!!(e&&e.__CANCEL__)}function ts(e,t,n){Le.call(this,e==null?"canceled":e,Le.ERR_CANCELED,t,n),this.name="CanceledError"}z.inherits(ts,Le,{__CANCEL__:!0});const X2=null;function J2(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Le("Request failed with status code "+n.status,[Le.ERR_BAD_REQUEST,Le.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const e0=Vt.isStandardBrowserEnv?function(){return{write:function(n,r,o,s,i,a){const l=[];l.push(n+"="+encodeURIComponent(r)),z.isNumber(o)&&l.push("expires="+new Date(o).toGMTString()),z.isString(s)&&l.push("path="+s),z.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function t0(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function n0(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function hd(e,t){return e&&!t0(t)?n0(e,t):t}const r0=Vt.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(s){let i=s;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(i){const a=z.isString(i)?o(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function s0(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function o0(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,s=0,i;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),u=r[s];i||(i=c),n[o]=l,r[o]=c;let f=s,h=0;for(;f!==o;)h+=n[f++],f=f%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),c-i{const s=o.loaded,i=o.lengthComputable?o.total:void 0,a=s-n,l=r(a),c=s<=i;n=s;const u={loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:l||void 0,estimated:l&&i&&c?(i-s)/l:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}const i0=typeof XMLHttpRequest<"u",a0=i0&&function(e){return new Promise(function(n,r){let o=e.data;const s=Yt.from(e.headers).normalize(),i=e.responseType;let a;function l(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}z.isFormData(o)&&(Vt.isStandardBrowserEnv||Vt.isStandardBrowserWebWorkerEnv)&&s.setContentType(!1);let c=new XMLHttpRequest;if(e.auth){const p=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(p+":"+w))}const u=hd(e.baseURL,e.url);c.open(e.method.toUpperCase(),cd(u,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function f(){if(!c)return;const p=Yt.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),b={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:e,request:c};J2(function(_){n(_),l()},function(_){r(_),l()},b),c=null}if("onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){!c||(r(new Le("Request aborted",Le.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new Le("Network Error",Le.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const b=e.transitional||ud;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new Le(w,b.clarifyTimeoutError?Le.ETIMEDOUT:Le.ECONNABORTED,e,c)),c=null},Vt.isStandardBrowserEnv){const p=(e.withCredentials||r0(u))&&e.xsrfCookieName&&e0.read(e.xsrfCookieName);p&&s.set(e.xsrfHeaderName,p)}o===void 0&&s.setContentType(null),"setRequestHeader"in c&&z.forEach(s.toJSON(),function(w,b){c.setRequestHeader(b,w)}),z.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",gc(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",gc(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=p=>{!c||(r(!p||p.type?new ts(null,e,c):p),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));const h=s0(u);if(h&&Vt.protocols.indexOf(h)===-1){r(new Le("Unsupported protocol "+h+":",Le.ERR_BAD_REQUEST,e));return}c.send(o||null)})},Ms={http:X2,xhr:a0};z.forEach(Ms,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const l0={getAdapter:e=>{e=z.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof Yt?e.toJSON():e;function ir(e,t){t=t||{};const n={};function r(c,u,f){return z.isPlainObject(c)&&z.isPlainObject(u)?z.merge.call({caseless:f},c,u):z.isPlainObject(u)?z.merge({},u):z.isArray(u)?u.slice():u}function o(c,u,f){if(z.isUndefined(u)){if(!z.isUndefined(c))return r(void 0,c,f)}else return r(c,u,f)}function s(c,u){if(!z.isUndefined(u))return r(void 0,u)}function i(c,u){if(z.isUndefined(u)){if(!z.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function a(c,u,f){if(f in t)return r(c,u);if(f in e)return r(void 0,c)}const l={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(c,u)=>o(vc(c),vc(u),!0)};return z.forEach(Object.keys(e).concat(Object.keys(t)),function(u){const f=l[u]||o,h=f(e[u],t[u],u);z.isUndefined(h)&&f!==a||(n[u]=h)}),n}const md="1.2.2",wa={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{wa[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const bc={};wa.transitional=function(t,n,r){function o(s,i){return"[Axios v"+md+"] Transitional option '"+s+"'"+i+(r?". "+r:"")}return(s,i,a)=>{if(t===!1)throw new Le(o(i," has been removed"+(n?" in "+n:"")),Le.ERR_DEPRECATED);return n&&!bc[i]&&(bc[i]=!0,console.warn(o(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,i,a):!0}};function c0(e,t,n){if(typeof e!="object")throw new Le("options must be an object",Le.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const a=e[s],l=a===void 0||i(a,s,e);if(l!==!0)throw new Le("option "+s+" must be "+l,Le.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Le("Unknown option "+s,Le.ERR_BAD_OPTION)}}const hi={assertOptions:c0,validators:wa},sn=hi.validators;class Hs{constructor(t){this.defaults=t,this.interceptors={request:new hc,response:new hc}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ir(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:s}=n;r!==void 0&&hi.assertOptions(r,{silentJSONParsing:sn.transitional(sn.boolean),forcedJSONParsing:sn.transitional(sn.boolean),clarifyTimeoutError:sn.transitional(sn.boolean)},!1),o!==void 0&&hi.assertOptions(o,{encode:sn.function,serialize:sn.function},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i;i=s&&z.merge(s.common,s[n.method]),i&&z.forEach(["delete","get","head","post","put","patch","common"],w=>{delete s[w]}),n.headers=Yt.concat(i,s);const a=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,a.unshift(b.fulfilled,b.rejected))});const c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let u,f=0,h;if(!l){const w=[_c.bind(this),void 0];for(w.unshift.apply(w,a),w.push.apply(w,c),h=w.length,u=Promise.resolve(n);f{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](o);r._listeners=null}),this.promise.then=o=>{let s;const i=new Promise(a=>{r.subscribe(a),s=a}).then(o);return i.cancel=function(){r.unsubscribe(s)},i},t(function(s,i,a){r.reason||(r.reason=new ts(s,i,a),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ea(function(o){t=o}),cancel:t}}}const u0=Ea;function f0(e){return function(n){return e.apply(null,n)}}function d0(e){return z.isObject(e)&&e.isAxiosError===!0}const mi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mi).forEach(([e,t])=>{mi[t]=e});const h0=mi;function pd(e){const t=new Ns(e),n=Gf(Ns.prototype.request,t);return z.extend(n,Ns.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return pd(ir(e,o))},n}const ze=pd(ya);ze.Axios=Ns;ze.CanceledError=ts;ze.CancelToken=u0;ze.isCancel=dd;ze.VERSION=md;ze.toFormData=co;ze.AxiosError=Le;ze.Cancel=ze.CanceledError;ze.all=function(t){return Promise.all(t)};ze.spread=f0;ze.isAxiosError=d0;ze.mergeConfig=ir;ze.AxiosHeaders=Yt;ze.formToJSON=e=>fd(z.isHTMLForm(e)?new FormData(e):e);ze.HttpStatusCode=h0;ze.default=ze;const ho=ze,{protocol:m0,hostname:p0,port:yc,pathname:g0}=window.location,gd=m0+"//"+p0+(yc?":"+yc:"")+g0,Ze=ho.create({baseURL:gd+"api/",headers:{Accept:"application/json"}});Ze.interceptors.response.use(e=>e,e=>{const t=e.config.baseURL+e.config.url,n=`${e.message}: API request failed ${t}`;return window.app.error({message:n}),Promise.reject(e)});const _0=ho.create({baseURL:gd+"i18n/",headers:{Accept:"application/toml"}}),_d="settings_locale",vd="settings_theme",bd="settings_unit";function Bo(e){return window.localStorage[e]}function Ta(e){return t=>{try{t?window.localStorage[e]=t:delete window.localStorage[e]}catch{console.error("unable to write to localstorage",{key:e,value:t})}}}const ot=mn({telemetry:null,locale:Bo(_d),theme:Bo(vd),unit:Bo(bd)});Nt(()=>ot.locale,Ta(_d));Nt(()=>ot.theme,Ta(vd));Nt(()=>ot.unit,Ta(bd));function v0(e){return e.replace(/\*\*(.*)\*\*/gim,"$1").replace(/\*(.*)\*/gim,"$1").replace(/`(.*)`/gim,"
$1
").trim()}const b0={name:"TelemetrySettings",props:{sponsor:String},data(){return{error:null}},computed:{enabled(){return ot.telemetry}},async mounted(){await this.update()},methods:{async change(e){try{this.error=null;const t=await Ze.post(`settings/telemetry/${e.target.checked}`);ot.telemetry=t.data.result}catch(t){t.response&&(this.error=v0("**Error:** "+t.response.data.error),ot.telemetry=!1)}},async update(){if(ot.telemetry===null)try{const e=await Ze.get("settings/telemetry");ot.telemetry=e.data.result}catch(e){console.error(e)}}}},y0={class:"form-check form-switch my-3"},w0=["disabled"],E0={class:"form-check-label"},T0={for:"telemetryEnabled"},S0={href:"https://docs.evcc.io/docs/guides/setup/#telemetry--community-daten",target:"_blank"},C0={key:1},A0=["innerHTML"];function x0(e,t,n,r,o,s){const i=de("i18n-t");return M(),F("div",y0,[mt(g("input",{id:"telemetryEnabled","onUpdate:modelValue":t[0]||(t[0]=a=>s.enabled=a),class:"form-check-input",type:"checkbox",role:"switch",disabled:!n.sponsor,onChange:t[1]||(t[1]=(...a)=>s.change&&s.change(...a))},null,40,w0),[[wp,s.enabled]]),g("div",E0,[g("label",T0,[$e(B(e.$t("footer.telemetry.optIn"))+" ",1),n.sponsor?(M(),be(i,{key:0,tag:"span",keypath:"footer.telemetry.optInMoreDetails"},{default:Ve(()=>[g("a",S0,B(e.$t("footer.telemetry.optInMoreDetailsLink")),1)]),_:1})):(M(),F("span",C0,B(e.$t("footer.telemetry.optInSponsorship")),1))]),o.error?(M(),F("div",{key:0,class:"errorMessage my-1 text-danger",innerHTML:o.error},null,8,A0)):ye("",!0)])])}const yd=fe(b0,[["render",x0],["__scopeId","data-v-41b490ec"]]),L0={name:"FormRow",props:{id:String,label:String}},M0={class:"mb-4 row"},N0=["for"],$0={class:"col-sm-8 pe-0"};function I0(e,t,n,r,o,s){return M(),F("div",M0,[g("label",{for:n.id,class:"col-sm-4 col-form-label pt-0 pt-sm-1"},B(n.label),9,N0),g("div",$0,[Xs(e.$slots,"default")])])}const P0=fe(L0,[["render",I0]]),O0={name:"SelectGroup",props:{id:String,options:Array,modelValue:[Number,String]},emits:["update:modelValue"]},k0={class:"mode-group border d-inline-flex",role:"group"},R0=["id","onClick"];function D0(e,t,n,r,o,s){return M(),F("div",k0,[(M(!0),F(Se,null,He(n.options,(i,a)=>(M(),F("button",{id:a===0?n.id:null,key:i.value,type:"button",class:Me(["btn btn-sm flex-grow-1 flex-shrink-1",{active:i.value===n.modelValue}]),onClick:l=>e.$emit("update:modelValue",i.value)},B(i.name),11,R0))),128))])}const F0=fe(O0,[["render",D0],["__scopeId","data-v-ba5c83ca"]]);function Sa(e,t,n,r){r===void 0&&(r=!1);for(var o,s,i,a=0,l="",c=t;s=c.exec(e);)o=e.substring(a,s.index),a=c.lastIndex,n&&typeof n=="function"?i=n(e,s):i=n,l+=o,l+=i;return l+=e.substring(a),c.test(l)&&r===!0?Sa(l,new RegExp(c),n,!0):l}function q0(e){var t=new RegExp("^\\s*\\[(\\[)?(.*?)\\]\\]?(?= *$)((?:[\\w\\W](?!^\\s*\\[))*)","gm"),n={};return e=e[0]==="["?e:`[] +`+e,e=e.replace(/('{3,}(?:(?!'{3,})[\w\W]+?)'{3,})/gm,function(r,o){if(o)return o.replace(/^(\s*)(\[)/gm,"$1__>>[<<__")}),Sa(e,t,function(r,o){o[1]?wc(n,o[2].trim(),Uo(o[3]),!0):o[2]===""?n=Object.assign({},n,Uo(o[3])):wc(n,o[2].trim(),Uo(o[3]),!1)}),JSON.parse(JSON.stringify(n,V0),H0)}function Uo(e){var t=new RegExp(`^[ ]*(.+?) *[=:] *(?:"((?!")[\\w\\W]+?)"|'{3,}((?!'{3,})[\\w\\W]+?)'{3,}|(\\[[\\w\\W]+?(?:(?: *])+ *$\\n*)+)|(\\{[\\w\\W]+?(?:(?: *})+ *$\\n*)+)|(.+) *)|^(.+)$`,"gm"),n={};return Sa(e,t,function(r,o){var s,i;if(o[1])return o[1].charAt(0)==="#"?void 0:(s=o[1].charAt(0)==='"'&&o[1].charAt(o[1].length-1)==='"'?o[1].slice(1,-1):o[1],(o[2]||o[3])&&(i=o[2]||o[3].replace(/^(\s*)(__>>\[<<__)/gm,"$1[")),(o[4]||o[5])&&(i=JSON.parse(""+(o[4]||o[5]))),o[6]&&(o[6]=o[6].trim(),+o[6]==+o[6]?i=Number(o[6]):o[6]==="true"||o[6]==="false"?i=o[6]==="true":o[6]==="inf"||o[6]==="+inf"?i=1/0:o[6]==="-inf"?i=-1/0:parseInt(o[6],16).toString(16)===o[6].toLowerCase()?i=parseInt(o[6],16):parseInt(o[6],8).toString(8)===o[6].toLowerCase()?i=parseInt(o[6],8):parseInt(o[6],2).toString(2)===o[6].toLowerCase()?i=parseInt(o[6],2):i=o[6]),n[s]=i,"");if(o[7])return""}),n}function wc(e,t,n,r){r=!!r,t.split&&(t=t.split("."));for(var o=0,s=t.length,i=e,a;o>NaN<<__":t===1/0?"__>>Inf<<__":t===-1/0?"__>>-Inf<<__":t},H0=function(e,t){return t==="__>>NaN<<__"?NaN:t==="__>>Inf<<__"?1/0:t==="__>>-Inf<<__"?-1/0:t};/*! * shared v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const mi=typeof window<"u",V_=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",_n=e=>V_?Symbol(e):e,H_=(e,t,n)=>B_({l:e,k:t,s:n}),B_=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Qe=e=>typeof e=="number"&&isFinite(e),U_=e=>Ca(e)==="[object Date]",hn=e=>Ca(e)==="[object RegExp]",mo=e=>_e(e)&&Object.keys(e).length===0;function j_(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ke=Object.assign;let wc;const kr=()=>wc||(wc=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ec(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const Q_=Object.prototype.hasOwnProperty;function Sa(e,t){return Q_.call(e,t)}const Pe=Array.isArray,Ue=e=>typeof e=="function",oe=e=>typeof e=="string",Ce=e=>typeof e=="boolean",ke=e=>e!==null&&typeof e=="object",yd=Object.prototype.toString,Ca=e=>yd.call(e),_e=e=>Ca(e)==="[object Object]",W_=e=>e==null?"":Pe(e)||_e(e)&&e.toString===yd?JSON.stringify(e,null,2):String(e);/*! + */const pi=typeof window<"u",B0=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",_n=e=>B0?Symbol(e):e,U0=(e,t,n)=>j0({l:e,k:t,s:n}),j0=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Qe=e=>typeof e=="number"&&isFinite(e),Q0=e=>Aa(e)==="[object Date]",hn=e=>Aa(e)==="[object RegExp]",mo=e=>_e(e)&&Object.keys(e).length===0;function W0(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Ye=Object.assign;let Ec;const kr=()=>Ec||(Ec=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Tc(e){return e.replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}const z0=Object.prototype.hasOwnProperty;function Ca(e,t){return z0.call(e,t)}const Oe=Array.isArray,Ue=e=>typeof e=="function",oe=e=>typeof e=="string",Ce=e=>typeof e=="boolean",ke=e=>e!==null&&typeof e=="object",wd=Object.prototype.toString,Aa=e=>wd.call(e),_e=e=>Aa(e)==="[object Object]",K0=e=>e==null?"":Oe(e)||_e(e)&&e.toString===wd?JSON.stringify(e,null,2):String(e);/*! * message-compiler v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const Ne={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function po(e,t,n={}){const{domain:r,messages:o,args:s}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function z_(e){throw e}function K_(e,t,n){return{line:e,column:t,offset:n}}function pi(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const Wt=" ",Y_="\r",st=` -`,Z_=String.fromCharCode(8232),G_=String.fromCharCode(8233);function X_(e){const t=e;let n=0,r=1,o=1,s=0;const i=P=>t[P]===Y_&&t[P+1]===st,a=P=>t[P]===st,l=P=>t[P]===G_,c=P=>t[P]===Z_,u=P=>i(P)||a(P)||l(P)||c(P),f=()=>n,h=()=>r,p=()=>o,w=()=>s,b=P=>i(P)||l(P)||c(P)?st:t[P],T=()=>b(n),_=()=>b(n+s);function S(){return s=0,u(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function A(){return i(n+s)&&s++,s++,t[n+s]}function y(){n=0,r=1,o=1,s=0}function C(P=0){s=P}function x(){const P=n+s;for(;P!==n;)S();s=0}return{index:f,line:h,column:p,peekOffset:w,charAt:b,currentChar:T,currentPeek:_,next:S,peek:A,reset:y,resetPeek:C,skipToPeek:x}}const on=void 0,Tc="'",J_="tokenizer";function e0(e,t={}){const n=t.location!==!1,r=X_(e),o=()=>r.index(),s=()=>K_(r.line(),r.column(),r.index()),i=s(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(d,m,E,...O){const V=c();if(m.column+=E,m.offset+=E,u){const Q=pi(V.startLoc,m),k=po(d,Q,{domain:J_,args:O});u(k)}}function h(d,m,E){d.endLoc=s(),d.currentType=m;const O={type:m};return n&&(O.loc=pi(d.startLoc,d.endLoc)),E!=null&&(O.value=E),O}const p=d=>h(d,14);function w(d,m){return d.currentChar()===m?(d.next(),m):(f(Ne.EXPECTED_TOKEN,s(),0,m),"")}function b(d){let m="";for(;d.currentPeek()===Wt||d.currentPeek()===st;)m+=d.currentPeek(),d.peek();return m}function T(d){const m=b(d);return d.skipToPeek(),m}function _(d){if(d===on)return!1;const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function S(d){if(d===on)return!1;const m=d.charCodeAt(0);return m>=48&&m<=57}function A(d,m){const{currentType:E}=m;if(E!==2)return!1;b(d);const O=_(d.currentPeek());return d.resetPeek(),O}function y(d,m){const{currentType:E}=m;if(E!==2)return!1;b(d);const O=d.currentPeek()==="-"?d.peek():d.currentPeek(),V=S(O);return d.resetPeek(),V}function C(d,m){const{currentType:E}=m;if(E!==2)return!1;b(d);const O=d.currentPeek()===Tc;return d.resetPeek(),O}function x(d,m){const{currentType:E}=m;if(E!==8)return!1;b(d);const O=d.currentPeek()===".";return d.resetPeek(),O}function P(d,m){const{currentType:E}=m;if(E!==9)return!1;b(d);const O=_(d.currentPeek());return d.resetPeek(),O}function K(d,m){const{currentType:E}=m;if(!(E===8||E===12))return!1;b(d);const O=d.currentPeek()===":";return d.resetPeek(),O}function Y(d,m){const{currentType:E}=m;if(E!==10)return!1;const O=()=>{const Q=d.currentPeek();return Q==="{"?_(d.peek()):Q==="@"||Q==="%"||Q==="|"||Q===":"||Q==="."||Q===Wt||!Q?!1:Q===st?(d.peek(),O()):_(Q)},V=O();return d.resetPeek(),V}function ee(d){b(d);const m=d.currentPeek()==="|";return d.resetPeek(),m}function ne(d){const m=b(d),E=d.currentPeek()==="%"&&d.peek()==="{";return d.resetPeek(),{isModulo:E,hasSpace:m.length>0}}function R(d,m=!0){const E=(V=!1,Q="",k=!1)=>{const j=d.currentPeek();return j==="{"?Q==="%"?!1:V:j==="@"||!j?Q==="%"?!0:V:j==="%"?(d.peek(),E(V,"%",!0)):j==="|"?Q==="%"||k?!0:!(Q===Wt||Q===st):j===Wt?(d.peek(),E(!0,Wt,k)):j===st?(d.peek(),E(!0,st,k)):!0},O=E();return m&&d.resetPeek(),O}function X(d,m){const E=d.currentChar();return E===on?on:m(E)?(d.next(),E):null}function I(d){return X(d,E=>{const O=E.charCodeAt(0);return O>=97&&O<=122||O>=65&&O<=90||O>=48&&O<=57||O===95||O===36})}function N(d){return X(d,E=>{const O=E.charCodeAt(0);return O>=48&&O<=57})}function Z(d){return X(d,E=>{const O=E.charCodeAt(0);return O>=48&&O<=57||O>=65&&O<=70||O>=97&&O<=102})}function G(d){let m="",E="";for(;m=N(d);)E+=m;return E}function te(d){T(d);const m=d.currentChar();return m!=="%"&&f(Ne.EXPECTED_TOKEN,s(),0,m),d.next(),"%"}function le(d){let m="";for(;;){const E=d.currentChar();if(E==="{"||E==="}"||E==="@"||E==="|"||!E)break;if(E==="%")if(R(d))m+=E,d.next();else break;else if(E===Wt||E===st)if(R(d))m+=E,d.next();else{if(ee(d))break;m+=E,d.next()}else m+=E,d.next()}return m}function he(d){T(d);let m="",E="";for(;m=I(d);)E+=m;return d.currentChar()===on&&f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),E}function ae(d){T(d);let m="";return d.currentChar()==="-"?(d.next(),m+=`-${G(d)}`):m+=G(d),d.currentChar()===on&&f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),m}function me(d){T(d),w(d,"'");let m="",E="";const O=Q=>Q!==Tc&&Q!==st;for(;m=X(d,O);)m==="\\"?E+=Te(d):E+=m;const V=d.currentChar();return V===st||V===on?(f(Ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),V===st&&(d.next(),w(d,"'")),E):(w(d,"'"),E)}function Te(d){const m=d.currentChar();switch(m){case"\\":case"'":return d.next(),`\\${m}`;case"u":return pe(d,m,4);case"U":return pe(d,m,6);default:return f(Ne.UNKNOWN_ESCAPE_SEQUENCE,s(),0,m),""}}function pe(d,m,E){w(d,m);let O="";for(let V=0;VV!=="{"&&V!=="}"&&V!==Wt&&V!==st;for(;m=X(d,O);)E+=m;return E}function W(d){let m="",E="";for(;m=I(d);)E+=m;return E}function L(d){const m=(E=!1,O)=>{const V=d.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||!V||V===Wt?O:V===st?(O+=V,d.next(),m(E,O)):(O+=V,d.next(),m(!0,O))};return m(!1,"")}function q(d){T(d);const m=w(d,"|");return T(d),m}function J(d,m){let E=null;switch(d.currentChar()){case"{":return m.braceNest>=1&&f(Ne.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),d.next(),E=h(m,2,"{"),T(d),m.braceNest++,E;case"}":return m.braceNest>0&&m.currentType===2&&f(Ne.EMPTY_PLACEHOLDER,s(),0),d.next(),E=h(m,3,"}"),m.braceNest--,m.braceNest>0&&T(d),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),E;case"@":return m.braceNest>0&&f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),E=ue(d,m)||p(m),m.braceNest=0,E;default:let V=!0,Q=!0,k=!0;if(ee(d))return m.braceNest>0&&f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),E=h(m,1,q(d)),m.braceNest=0,m.inLinked=!1,E;if(m.braceNest>0&&(m.currentType===5||m.currentType===6||m.currentType===7))return f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),m.braceNest=0,ie(d,m);if(V=A(d,m))return E=h(m,5,he(d)),T(d),E;if(Q=y(d,m))return E=h(m,6,ae(d)),T(d),E;if(k=C(d,m))return E=h(m,7,me(d)),T(d),E;if(!V&&!Q&&!k)return E=h(m,13,H(d)),f(Ne.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,E.value),T(d),E;break}return E}function ue(d,m){const{currentType:E}=m;let O=null;const V=d.currentChar();switch((E===8||E===9||E===12||E===10)&&(V===st||V===Wt)&&f(Ne.INVALID_LINKED_FORMAT,s(),0),V){case"@":return d.next(),O=h(m,8,"@"),m.inLinked=!0,O;case".":return T(d),d.next(),h(m,9,".");case":":return T(d),d.next(),h(m,10,":");default:return ee(d)?(O=h(m,1,q(d)),m.braceNest=0,m.inLinked=!1,O):x(d,m)||K(d,m)?(T(d),ue(d,m)):P(d,m)?(T(d),h(m,12,W(d))):Y(d,m)?(T(d),V==="{"?J(d,m)||O:h(m,11,L(d))):(E===8&&f(Ne.INVALID_LINKED_FORMAT,s(),0),m.braceNest=0,m.inLinked=!1,ie(d,m))}}function ie(d,m){let E={type:14};if(m.braceNest>0)return J(d,m)||p(m);if(m.inLinked)return ue(d,m)||p(m);switch(d.currentChar()){case"{":return J(d,m)||p(m);case"}":return f(Ne.UNBALANCED_CLOSING_BRACE,s(),0),d.next(),h(m,3,"}");case"@":return ue(d,m)||p(m);default:if(ee(d))return E=h(m,1,q(d)),m.braceNest=0,m.inLinked=!1,E;const{isModulo:V,hasSpace:Q}=ne(d);if(V)return Q?h(m,0,le(d)):h(m,4,te(d));if(R(d))return h(m,0,le(d));break}return E}function v(){const{currentType:d,offset:m,startLoc:E,endLoc:O}=l;return l.lastType=d,l.lastOffset=m,l.lastStartLoc=E,l.lastEndLoc=O,l.offset=o(),l.startLoc=s(),r.currentChar()===on?h(l,14):ie(r,l)}return{nextToken:v,currentOffset:o,currentPosition:s,context:c}}const t0="parser",n0=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function r0(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function s0(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,S,A,y,...C){const x=_.currentPosition();if(x.offset+=y,x.column+=y,n){const P=pi(A,x),K=po(S,P,{domain:t0,args:C});n(K)}}function o(_,S,A){const y={type:_,start:S,end:S};return t&&(y.loc={start:A,end:A}),y}function s(_,S,A,y){_.end=S,y&&(_.type=y),t&&_.loc&&(_.loc.end=A)}function i(_,S){const A=_.context(),y=o(3,A.offset,A.startLoc);return y.value=S,s(y,_.currentOffset(),_.currentPosition()),y}function a(_,S){const A=_.context(),{lastOffset:y,lastStartLoc:C}=A,x=o(5,y,C);return x.index=parseInt(S,10),_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function l(_,S){const A=_.context(),{lastOffset:y,lastStartLoc:C}=A,x=o(4,y,C);return x.key=S,_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function c(_,S){const A=_.context(),{lastOffset:y,lastStartLoc:C}=A,x=o(9,y,C);return x.value=S.replace(n0,r0),_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function u(_){const S=_.nextToken(),A=_.context(),{lastOffset:y,lastStartLoc:C}=A,x=o(8,y,C);return S.type!==12?(r(_,Ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),x.value="",s(x,y,C),{nextConsumeToken:S,node:x}):(S.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,kt(S)),x.value=S.value||"",s(x,_.currentOffset(),_.currentPosition()),{node:x})}function f(_,S){const A=_.context(),y=o(7,A.offset,A.startLoc);return y.value=S,s(y,_.currentOffset(),_.currentPosition()),y}function h(_){const S=_.context(),A=o(6,S.offset,S.startLoc);let y=_.nextToken();if(y.type===9){const C=u(_);A.modifier=C.node,y=C.nextConsumeToken||_.nextToken()}switch(y.type!==10&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),y=_.nextToken(),y.type===2&&(y=_.nextToken()),y.type){case 11:y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),A.key=f(_,y.value||"");break;case 5:y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),A.key=l(_,y.value||"");break;case 6:y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),A.key=a(_,y.value||"");break;case 7:y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),A.key=c(_,y.value||"");break;default:r(_,Ne.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const C=_.context(),x=o(7,C.offset,C.startLoc);return x.value="",s(x,C.offset,C.startLoc),A.key=x,s(A,C.offset,C.startLoc),{nextConsumeToken:y,node:A}}return s(A,_.currentOffset(),_.currentPosition()),{node:A}}function p(_){const S=_.context(),A=S.currentType===1?_.currentOffset():S.offset,y=S.currentType===1?S.endLoc:S.startLoc,C=o(2,A,y);C.items=[];let x=null;do{const Y=x||_.nextToken();switch(x=null,Y.type){case 0:Y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(Y)),C.items.push(i(_,Y.value||""));break;case 6:Y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(Y)),C.items.push(a(_,Y.value||""));break;case 5:Y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(Y)),C.items.push(l(_,Y.value||""));break;case 7:Y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(Y)),C.items.push(c(_,Y.value||""));break;case 8:const ee=h(_);C.items.push(ee.node),x=ee.nextConsumeToken||null;break}}while(S.currentType!==14&&S.currentType!==1);const P=S.currentType===1?S.lastOffset:_.currentOffset(),K=S.currentType===1?S.lastEndLoc:_.currentPosition();return s(C,P,K),C}function w(_,S,A,y){const C=_.context();let x=y.items.length===0;const P=o(1,S,A);P.cases=[],P.cases.push(y);do{const K=p(_);x||(x=K.items.length===0),P.cases.push(K)}while(C.currentType!==14);return x&&r(_,Ne.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),s(P,_.currentOffset(),_.currentPosition()),P}function b(_){const S=_.context(),{offset:A,startLoc:y}=S,C=p(_);return S.currentType===14?C:w(_,A,y,C)}function T(_){const S=e0(_,Ke({},e)),A=S.context(),y=o(0,A.offset,A.startLoc);return t&&y.loc&&(y.loc.source=_),y.body=b(S),A.currentType!==14&&r(S,Ne.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,_[A.offset]||""),s(y,S.currentOffset(),S.currentPosition()),y}return{parse:T}}function kt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"\u2026":t}function o0(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Sc(e,t){for(let n=0;ni;function l(b,T){i.code+=b}function c(b,T=!0){const _=T?o:"";l(s?_+" ".repeat(b):_)}function u(b=!0){const T=++i.indentLevel;b&&c(T)}function f(b=!0){const T=--i.indentLevel;b&&c(T)}function h(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:h,helper:b=>`_${b}`,needIndent:()=>i.needIndent}}function l0(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ar(e,t.key),t.modifier?(e.push(", "),ar(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function c0(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let s=0;s1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let s=0;s{const n=oe(t.mode)?t.mode:"normal",r=oe(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` -`,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=a0(e,{mode:n,filename:r,sourceMap:o,breakLineCode:s,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${a.map(f=>`${f}: _${f}`).join(", ")} } = ctx`),l.newline()),l.push("return "),ar(l,e),l.deindent(i),l.push("}");const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function h0(e,t={}){const n=Ke({},t),o=s0(n).parse(e);return i0(o,n),d0(o,n)}/*! + */const Ne={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14,__EXTEND_POINT__:15};function po(e,t,n={}){const{domain:r,messages:o,args:s}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}function Y0(e){throw e}function Z0(e,t,n){return{line:e,column:t,offset:n}}function gi(e,t,n){const r={start:e,end:t};return n!=null&&(r.source=n),r}const Wt=" ",G0="\r",st=` +`,X0=String.fromCharCode(8232),J0=String.fromCharCode(8233);function e_(e){const t=e;let n=0,r=1,o=1,s=0;const i=O=>t[O]===G0&&t[O+1]===st,a=O=>t[O]===st,l=O=>t[O]===J0,c=O=>t[O]===X0,u=O=>i(O)||a(O)||l(O)||c(O),f=()=>n,h=()=>r,p=()=>o,w=()=>s,b=O=>i(O)||l(O)||c(O)?st:t[O],T=()=>b(n),_=()=>b(n+s);function S(){return s=0,u(n)&&(r++,o=0),i(n)&&n++,n++,o++,t[n]}function A(){return i(n+s)&&s++,s++,t[n+s]}function y(){n=0,r=1,o=1,s=0}function C(O=0){s=O}function x(){const O=n+s;for(;O!==n;)S();s=0}return{index:f,line:h,column:p,peekOffset:w,charAt:b,currentChar:T,currentPeek:_,next:S,peek:A,reset:y,resetPeek:C,skipToPeek:x}}const on=void 0,Sc="'",t_="tokenizer";function n_(e,t={}){const n=t.location!==!1,r=e_(e),o=()=>r.index(),s=()=>Z0(r.line(),r.column(),r.index()),i=s(),a=o(),l={currentType:14,offset:a,startLoc:i,endLoc:i,lastType:14,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},c=()=>l,{onError:u}=t;function f(d,m,E,...P){const V=c();if(m.column+=E,m.offset+=E,u){const Q=gi(V.startLoc,m),k=po(d,Q,{domain:t_,args:P});u(k)}}function h(d,m,E){d.endLoc=s(),d.currentType=m;const P={type:m};return n&&(P.loc=gi(d.startLoc,d.endLoc)),E!=null&&(P.value=E),P}const p=d=>h(d,14);function w(d,m){return d.currentChar()===m?(d.next(),m):(f(Ne.EXPECTED_TOKEN,s(),0,m),"")}function b(d){let m="";for(;d.currentPeek()===Wt||d.currentPeek()===st;)m+=d.currentPeek(),d.peek();return m}function T(d){const m=b(d);return d.skipToPeek(),m}function _(d){if(d===on)return!1;const m=d.charCodeAt(0);return m>=97&&m<=122||m>=65&&m<=90||m===95}function S(d){if(d===on)return!1;const m=d.charCodeAt(0);return m>=48&&m<=57}function A(d,m){const{currentType:E}=m;if(E!==2)return!1;b(d);const P=_(d.currentPeek());return d.resetPeek(),P}function y(d,m){const{currentType:E}=m;if(E!==2)return!1;b(d);const P=d.currentPeek()==="-"?d.peek():d.currentPeek(),V=S(P);return d.resetPeek(),V}function C(d,m){const{currentType:E}=m;if(E!==2)return!1;b(d);const P=d.currentPeek()===Sc;return d.resetPeek(),P}function x(d,m){const{currentType:E}=m;if(E!==8)return!1;b(d);const P=d.currentPeek()===".";return d.resetPeek(),P}function O(d,m){const{currentType:E}=m;if(E!==9)return!1;b(d);const P=_(d.currentPeek());return d.resetPeek(),P}function K(d,m){const{currentType:E}=m;if(!(E===8||E===12))return!1;b(d);const P=d.currentPeek()===":";return d.resetPeek(),P}function Y(d,m){const{currentType:E}=m;if(E!==10)return!1;const P=()=>{const Q=d.currentPeek();return Q==="{"?_(d.peek()):Q==="@"||Q==="%"||Q==="|"||Q===":"||Q==="."||Q===Wt||!Q?!1:Q===st?(d.peek(),P()):_(Q)},V=P();return d.resetPeek(),V}function ee(d){b(d);const m=d.currentPeek()==="|";return d.resetPeek(),m}function ne(d){const m=b(d),E=d.currentPeek()==="%"&&d.peek()==="{";return d.resetPeek(),{isModulo:E,hasSpace:m.length>0}}function R(d,m=!0){const E=(V=!1,Q="",k=!1)=>{const j=d.currentPeek();return j==="{"?Q==="%"?!1:V:j==="@"||!j?Q==="%"?!0:V:j==="%"?(d.peek(),E(V,"%",!0)):j==="|"?Q==="%"||k?!0:!(Q===Wt||Q===st):j===Wt?(d.peek(),E(!0,Wt,k)):j===st?(d.peek(),E(!0,st,k)):!0},P=E();return m&&d.resetPeek(),P}function X(d,m){const E=d.currentChar();return E===on?on:m(E)?(d.next(),E):null}function I(d){return X(d,E=>{const P=E.charCodeAt(0);return P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===95||P===36})}function N(d){return X(d,E=>{const P=E.charCodeAt(0);return P>=48&&P<=57})}function Z(d){return X(d,E=>{const P=E.charCodeAt(0);return P>=48&&P<=57||P>=65&&P<=70||P>=97&&P<=102})}function G(d){let m="",E="";for(;m=N(d);)E+=m;return E}function te(d){T(d);const m=d.currentChar();return m!=="%"&&f(Ne.EXPECTED_TOKEN,s(),0,m),d.next(),"%"}function le(d){let m="";for(;;){const E=d.currentChar();if(E==="{"||E==="}"||E==="@"||E==="|"||!E)break;if(E==="%")if(R(d))m+=E,d.next();else break;else if(E===Wt||E===st)if(R(d))m+=E,d.next();else{if(ee(d))break;m+=E,d.next()}else m+=E,d.next()}return m}function he(d){T(d);let m="",E="";for(;m=I(d);)E+=m;return d.currentChar()===on&&f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),E}function ae(d){T(d);let m="";return d.currentChar()==="-"?(d.next(),m+=`-${G(d)}`):m+=G(d),d.currentChar()===on&&f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),m}function me(d){T(d),w(d,"'");let m="",E="";const P=Q=>Q!==Sc&&Q!==st;for(;m=X(d,P);)m==="\\"?E+=Te(d):E+=m;const V=d.currentChar();return V===st||V===on?(f(Ne.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,s(),0),V===st&&(d.next(),w(d,"'")),E):(w(d,"'"),E)}function Te(d){const m=d.currentChar();switch(m){case"\\":case"'":return d.next(),`\\${m}`;case"u":return pe(d,m,4);case"U":return pe(d,m,6);default:return f(Ne.UNKNOWN_ESCAPE_SEQUENCE,s(),0,m),""}}function pe(d,m,E){w(d,m);let P="";for(let V=0;VV!=="{"&&V!=="}"&&V!==Wt&&V!==st;for(;m=X(d,P);)E+=m;return E}function W(d){let m="",E="";for(;m=I(d);)E+=m;return E}function L(d){const m=(E=!1,P)=>{const V=d.currentChar();return V==="{"||V==="%"||V==="@"||V==="|"||!V||V===Wt?P:V===st?(P+=V,d.next(),m(E,P)):(P+=V,d.next(),m(!0,P))};return m(!1,"")}function q(d){T(d);const m=w(d,"|");return T(d),m}function J(d,m){let E=null;switch(d.currentChar()){case"{":return m.braceNest>=1&&f(Ne.NOT_ALLOW_NEST_PLACEHOLDER,s(),0),d.next(),E=h(m,2,"{"),T(d),m.braceNest++,E;case"}":return m.braceNest>0&&m.currentType===2&&f(Ne.EMPTY_PLACEHOLDER,s(),0),d.next(),E=h(m,3,"}"),m.braceNest--,m.braceNest>0&&T(d),m.inLinked&&m.braceNest===0&&(m.inLinked=!1),E;case"@":return m.braceNest>0&&f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),E=ue(d,m)||p(m),m.braceNest=0,E;default:let V=!0,Q=!0,k=!0;if(ee(d))return m.braceNest>0&&f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),E=h(m,1,q(d)),m.braceNest=0,m.inLinked=!1,E;if(m.braceNest>0&&(m.currentType===5||m.currentType===6||m.currentType===7))return f(Ne.UNTERMINATED_CLOSING_BRACE,s(),0),m.braceNest=0,ie(d,m);if(V=A(d,m))return E=h(m,5,he(d)),T(d),E;if(Q=y(d,m))return E=h(m,6,ae(d)),T(d),E;if(k=C(d,m))return E=h(m,7,me(d)),T(d),E;if(!V&&!Q&&!k)return E=h(m,13,H(d)),f(Ne.INVALID_TOKEN_IN_PLACEHOLDER,s(),0,E.value),T(d),E;break}return E}function ue(d,m){const{currentType:E}=m;let P=null;const V=d.currentChar();switch((E===8||E===9||E===12||E===10)&&(V===st||V===Wt)&&f(Ne.INVALID_LINKED_FORMAT,s(),0),V){case"@":return d.next(),P=h(m,8,"@"),m.inLinked=!0,P;case".":return T(d),d.next(),h(m,9,".");case":":return T(d),d.next(),h(m,10,":");default:return ee(d)?(P=h(m,1,q(d)),m.braceNest=0,m.inLinked=!1,P):x(d,m)||K(d,m)?(T(d),ue(d,m)):O(d,m)?(T(d),h(m,12,W(d))):Y(d,m)?(T(d),V==="{"?J(d,m)||P:h(m,11,L(d))):(E===8&&f(Ne.INVALID_LINKED_FORMAT,s(),0),m.braceNest=0,m.inLinked=!1,ie(d,m))}}function ie(d,m){let E={type:14};if(m.braceNest>0)return J(d,m)||p(m);if(m.inLinked)return ue(d,m)||p(m);switch(d.currentChar()){case"{":return J(d,m)||p(m);case"}":return f(Ne.UNBALANCED_CLOSING_BRACE,s(),0),d.next(),h(m,3,"}");case"@":return ue(d,m)||p(m);default:if(ee(d))return E=h(m,1,q(d)),m.braceNest=0,m.inLinked=!1,E;const{isModulo:V,hasSpace:Q}=ne(d);if(V)return Q?h(m,0,le(d)):h(m,4,te(d));if(R(d))return h(m,0,le(d));break}return E}function v(){const{currentType:d,offset:m,startLoc:E,endLoc:P}=l;return l.lastType=d,l.lastOffset=m,l.lastStartLoc=E,l.lastEndLoc=P,l.offset=o(),l.startLoc=s(),r.currentChar()===on?h(l,14):ie(r,l)}return{nextToken:v,currentOffset:o,currentPosition:s,context:c}}const r_="parser",s_=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function o_(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const r=parseInt(t||n,16);return r<=55295||r>=57344?String.fromCodePoint(r):"\uFFFD"}}}function i_(e={}){const t=e.location!==!1,{onError:n}=e;function r(_,S,A,y,...C){const x=_.currentPosition();if(x.offset+=y,x.column+=y,n){const O=gi(A,x),K=po(S,O,{domain:r_,args:C});n(K)}}function o(_,S,A){const y={type:_,start:S,end:S};return t&&(y.loc={start:A,end:A}),y}function s(_,S,A,y){_.end=S,y&&(_.type=y),t&&_.loc&&(_.loc.end=A)}function i(_,S){const A=_.context(),y=o(3,A.offset,A.startLoc);return y.value=S,s(y,_.currentOffset(),_.currentPosition()),y}function a(_,S){const A=_.context(),{lastOffset:y,lastStartLoc:C}=A,x=o(5,y,C);return x.index=parseInt(S,10),_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function l(_,S){const A=_.context(),{lastOffset:y,lastStartLoc:C}=A,x=o(4,y,C);return x.key=S,_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function c(_,S){const A=_.context(),{lastOffset:y,lastStartLoc:C}=A,x=o(9,y,C);return x.value=S.replace(s_,o_),_.nextToken(),s(x,_.currentOffset(),_.currentPosition()),x}function u(_){const S=_.nextToken(),A=_.context(),{lastOffset:y,lastStartLoc:C}=A,x=o(8,y,C);return S.type!==12?(r(_,Ne.UNEXPECTED_EMPTY_LINKED_MODIFIER,A.lastStartLoc,0),x.value="",s(x,y,C),{nextConsumeToken:S,node:x}):(S.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,kt(S)),x.value=S.value||"",s(x,_.currentOffset(),_.currentPosition()),{node:x})}function f(_,S){const A=_.context(),y=o(7,A.offset,A.startLoc);return y.value=S,s(y,_.currentOffset(),_.currentPosition()),y}function h(_){const S=_.context(),A=o(6,S.offset,S.startLoc);let y=_.nextToken();if(y.type===9){const C=u(_);A.modifier=C.node,y=C.nextConsumeToken||_.nextToken()}switch(y.type!==10&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),y=_.nextToken(),y.type===2&&(y=_.nextToken()),y.type){case 11:y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),A.key=f(_,y.value||"");break;case 5:y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),A.key=l(_,y.value||"");break;case 6:y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),A.key=a(_,y.value||"");break;case 7:y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(y)),A.key=c(_,y.value||"");break;default:r(_,Ne.UNEXPECTED_EMPTY_LINKED_KEY,S.lastStartLoc,0);const C=_.context(),x=o(7,C.offset,C.startLoc);return x.value="",s(x,C.offset,C.startLoc),A.key=x,s(A,C.offset,C.startLoc),{nextConsumeToken:y,node:A}}return s(A,_.currentOffset(),_.currentPosition()),{node:A}}function p(_){const S=_.context(),A=S.currentType===1?_.currentOffset():S.offset,y=S.currentType===1?S.endLoc:S.startLoc,C=o(2,A,y);C.items=[];let x=null;do{const Y=x||_.nextToken();switch(x=null,Y.type){case 0:Y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(Y)),C.items.push(i(_,Y.value||""));break;case 6:Y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(Y)),C.items.push(a(_,Y.value||""));break;case 5:Y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(Y)),C.items.push(l(_,Y.value||""));break;case 7:Y.value==null&&r(_,Ne.UNEXPECTED_LEXICAL_ANALYSIS,S.lastStartLoc,0,kt(Y)),C.items.push(c(_,Y.value||""));break;case 8:const ee=h(_);C.items.push(ee.node),x=ee.nextConsumeToken||null;break}}while(S.currentType!==14&&S.currentType!==1);const O=S.currentType===1?S.lastOffset:_.currentOffset(),K=S.currentType===1?S.lastEndLoc:_.currentPosition();return s(C,O,K),C}function w(_,S,A,y){const C=_.context();let x=y.items.length===0;const O=o(1,S,A);O.cases=[],O.cases.push(y);do{const K=p(_);x||(x=K.items.length===0),O.cases.push(K)}while(C.currentType!==14);return x&&r(_,Ne.MUST_HAVE_MESSAGES_IN_PLURAL,A,0),s(O,_.currentOffset(),_.currentPosition()),O}function b(_){const S=_.context(),{offset:A,startLoc:y}=S,C=p(_);return S.currentType===14?C:w(_,A,y,C)}function T(_){const S=n_(_,Ye({},e)),A=S.context(),y=o(0,A.offset,A.startLoc);return t&&y.loc&&(y.loc.source=_),y.body=b(S),A.currentType!==14&&r(S,Ne.UNEXPECTED_LEXICAL_ANALYSIS,A.lastStartLoc,0,_[A.offset]||""),s(y,S.currentOffset(),S.currentPosition()),y}return{parse:T}}function kt(e){if(e.type===14)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"\u2026":t}function a_(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:s=>(n.helpers.add(s),s)}}function Cc(e,t){for(let n=0;ni;function l(b,T){i.code+=b}function c(b,T=!0){const _=T?o:"";l(s?_+" ".repeat(b):_)}function u(b=!0){const T=++i.indentLevel;b&&c(T)}function f(b=!0){const T=--i.indentLevel;b&&c(T)}function h(){c(i.indentLevel)}return{context:a,push:l,indent:u,deindent:f,newline:h,helper:b=>`_${b}`,needIndent:()=>i.needIndent}}function u_(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),ar(e,t.key),t.modifier?(e.push(", "),ar(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function f_(e,t){const{helper:n,needIndent:r}=e;e.push(`${n("normalize")}([`),e.indent(r());const o=t.items.length;for(let s=0;s1){e.push(`${n("plural")}([`),e.indent(r());const o=t.cases.length;for(let s=0;s{const n=oe(t.mode)?t.mode:"normal",r=oe(t.filename)?t.filename:"message.intl",o=!!t.sourceMap,s=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":` +`,i=t.needIndent?t.needIndent:n!=="arrow",a=e.helpers||[],l=c_(e,{mode:n,filename:r,sourceMap:o,breakLineCode:s,needIndent:i});l.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),l.indent(i),a.length>0&&(l.push(`const { ${a.map(f=>`${f}: _${f}`).join(", ")} } = ctx`),l.newline()),l.push("return "),ar(l,e),l.deindent(i),l.push("}");const{code:c,map:u}=l.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function p_(e,t={}){const n=Ye({},t),o=i_(n).parse(e);return l_(o,n),m_(o,n)}/*! * devtools-if v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const wd={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*! + */const Ed={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*! * core-base v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const vn=[];vn[0]={w:[0],i:[3,0],["["]:[4],o:[7]};vn[1]={w:[1],["."]:[2],["["]:[4],o:[7]};vn[2]={w:[2],i:[3,0],[0]:[3,0]};vn[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};vn[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};vn[5]={["'"]:[4,0],o:8,l:[5,0]};vn[6]={['"']:[4,0],o:8,l:[6,0]};const m0=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function p0(e){return m0.test(e)}function g0(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function _0(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function v0(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:p0(t)?g0(t):"*"+t}function b0(e){const t=[];let n=-1,r=0,o=0,s,i,a,l,c,u,f;const h=[];h[0]=()=>{i===void 0?i=a:i+=a},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,i===void 0||(i=v0(i),i===!1))return!1;h[1]()}};function p(){const w=e[n+1];if(r===5&&w==="'"||r===6&&w==='"')return n++,a="\\"+w,h[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&p())){if(l=_0(s),f=vn[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=h[c[1]],u&&(a=s,u()===!1))))return;if(r===7)return t}}const Cc=new Map;function y0(e,t){return ke(e)?e[t]:null}function w0(e,t){if(!ke(e))return null;let n=Cc.get(t);if(n||(n=b0(t),n&&Cc.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;se,T0=e=>"",S0="text",C0=e=>e.length===0?"":e.join(""),A0=W_;function Ac(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function x0(e){const t=Qe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Qe(e.named.count)||Qe(e.named.n))?Qe(e.named.count)?e.named.count:Qe(e.named.n)?e.named.n:t:t}function L0(e,t){t.count||(t.count=e),t.n||(t.n=e)}function M0(e={}){const t=e.locale,n=x0(e),r=ke(e.pluralRules)&&oe(t)&&Ue(e.pluralRules[t])?e.pluralRules[t]:Ac,o=ke(e.pluralRules)&&oe(t)&&Ue(e.pluralRules[t])?Ac:void 0,s=_=>_[r(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};Qe(e.pluralIndex)&&L0(n,l);const c=_=>l[_];function u(_){const S=Ue(e.messages)?e.messages(_):ke(e.messages)?e.messages[_]:!1;return S||(e.parent?e.parent.message(_):T0)}const f=_=>e.modifiers?e.modifiers[_]:E0,h=_e(e.processor)&&Ue(e.processor.normalize)?e.processor.normalize:C0,p=_e(e.processor)&&Ue(e.processor.interpolate)?e.processor.interpolate:A0,w=_e(e.processor)&&oe(e.processor.type)?e.processor.type:S0,T={list:a,named:c,plural:s,linked:(_,...S)=>{const[A,y]=S;let C="text",x="";S.length===1?ke(A)?(x=A.modifier||x,C=A.type||C):oe(A)&&(x=A||x):S.length===2&&(oe(A)&&(x=A||x),oe(y)&&(C=y||C));let P=u(_)(T);return C==="vnode"&&Pe(P)&&x&&(P=P[0]),x?f(x)(P,C):P},message:u,type:w,interpolate:p,normalize:h};return T}let Kr=null;function N0(e){Kr=e}function $0(e,t,n){Kr&&Kr.emit(wd.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const I0=O0(wd.FunctionTranslate);function O0(e){return t=>Kr&&Kr.emit(e,t)}const P0={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function k0(e,t,n){return[...new Set([n,...Pe(t)?t:ke(t)?Object.keys(t):oe(t)?[t]:[n]])]}function Ed(e,t,n){const r=oe(n)?n:ns,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[n];for(;Pe(i);)i=xc(s,i,t);const a=Pe(t)||!_e(t)?t:t.default?t.default:null;i=oe(a)?[a]:a,Pe(i)&&xc(s,i,!1),o.__localeChainCache.set(r,s)}return s}function xc(e,t,n){let r=!0;for(let o=0;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function q0(){return{upper:(e,t)=>t==="text"&&oe(e)?e.toUpperCase():t==="vnode"&&ke(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&oe(e)?e.toLowerCase():t==="vnode"&&ke(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&oe(e)?Mc(e):t==="vnode"&&ke(e)&&"__v_isVNode"in e?Mc(e.children):e}}let Td;function V0(e){Td=e}let Sd;function H0(e){Sd=e}let Cd;function B0(e){Cd=e}let Ad=null;const Nc=e=>{Ad=e},U0=()=>Ad;let xd=null;const $c=e=>{xd=e},j0=()=>xd;let Ic=0;function Q0(e={}){const t=oe(e.version)?e.version:F0,n=oe(e.locale)?e.locale:ns,r=Pe(e.fallbackLocale)||_e(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,o=_e(e.messages)?e.messages:{[n]:{}},s=_e(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=_e(e.numberFormats)?e.numberFormats:{[n]:{}},a=Ke({},e.modifiers||{},q0()),l=e.pluralRules||{},c=Ue(e.missing)?e.missing:null,u=Ce(e.missingWarn)||hn(e.missingWarn)?e.missingWarn:!0,f=Ce(e.fallbackWarn)||hn(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,p=!!e.unresolving,w=Ue(e.postTranslation)?e.postTranslation:null,b=_e(e.processor)?e.processor:null,T=Ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,S=Ue(e.messageCompiler)?e.messageCompiler:Td,A=Ue(e.messageResolver)?e.messageResolver:Sd||y0,y=Ue(e.localeFallbacker)?e.localeFallbacker:Cd||k0,C=ke(e.fallbackContext)?e.fallbackContext:void 0,x=Ue(e.onWarn)?e.onWarn:j_,P=e,K=ke(P.__datetimeFormatters)?P.__datetimeFormatters:new Map,Y=ke(P.__numberFormatters)?P.__numberFormatters:new Map,ee=ke(P.__meta)?P.__meta:{};Ic++;const ne={version:t,cid:Ic,locale:n,fallbackLocale:r,messages:o,modifiers:a,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:f,fallbackFormat:h,unresolving:p,postTranslation:w,processor:b,warnHtmlMessage:T,escapeParameter:_,messageCompiler:S,messageResolver:A,localeFallbacker:y,fallbackContext:C,onWarn:x,__meta:ee};return ne.datetimeFormats=s,ne.numberFormats=i,ne.__datetimeFormatters=K,ne.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&$0(ne,t,ee),ne}function xa(e,t,n,r,o){const{missing:s,onWarn:i}=e;if(s!==null){const a=s(e,n,t,o);return oe(a)?a:t}else return t}function Er(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const W0=e=>e;let Oc=Object.create(null);function z0(e,t={}){{const r=(t.onCacheKey||W0)(e),o=Oc[r];if(o)return o;let s=!1;const i=t.onError||z_;t.onError=c=>{s=!0,i(c)};const{code:a}=h0(e,t),l=new Function(`return ${a}`)();return s?l:Oc[r]=l}}let Ld=Ne.__EXTEND_POINT__;const jo=()=>++Ld,Hn={INVALID_ARGUMENT:Ld,INVALID_DATE_ARGUMENT:jo(),INVALID_ISO_DATE_ARGUMENT:jo(),__EXTEND_POINT__:jo()};function Bn(e){return po(e,null,void 0)}const Pc=()=>"",Ft=e=>Ue(e);function kc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:a}=e,[l,c]=gi(...t),u=Ce(c.missingWarn)?c.missingWarn:e.missingWarn,f=Ce(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=Ce(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,w=oe(c.default)||Ce(c.default)?Ce(c.default)?s?l:()=>l:c.default:n?s?l:()=>l:"",b=n||w!=="",T=oe(c.locale)?c.locale:e.locale;h&&K0(c);let[_,S,A]=p?[l,T,a[T]||{}]:Md(e,l,T,i,f,u),y=_,C=l;if(!p&&!(oe(y)||Ft(y))&&b&&(y=w,C=y),!p&&(!(oe(y)||Ft(y))||!oe(S)))return o?go:l;let x=!1;const P=()=>{x=!0},K=Ft(y)?y:Nd(e,l,S,y,C,P);if(x)return y;const Y=G0(e,S,A,c),ee=M0(Y),ne=Y0(e,K,ee),R=r?r(ne,l):ne;if(__INTLIFY_PROD_DEVTOOLS__){const X={timestamp:Date.now(),key:oe(l)?l:Ft(y)?y.key:"",locale:S||(Ft(y)?y.locale:""),format:oe(y)?y:Ft(y)?y.source:"",message:R};X.meta=Ke({},e.__meta,U0()||{}),I0(X)}return R}function K0(e){Pe(e.list)?e.list=e.list.map(t=>oe(t)?Ec(t):t):ke(e.named)&&Object.keys(e.named).forEach(t=>{oe(e.named[t])&&(e.named[t]=Ec(e.named[t]))})}function Md(e,t,n,r,o,s){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f={},h,p=null;const w="translate";for(let b=0;br;return c.locale=n,c.key=t,c}const l=i(r,Z0(e,n,o,r,a,s));return l.locale=n,l.key=t,l.source=r,l}function Y0(e,t,n){return t(n)}function gi(...e){const[t,n,r]=e,o={};if(!oe(t)&&!Qe(t)&&!Ft(t))throw Bn(Hn.INVALID_ARGUMENT);const s=Qe(t)?String(t):(Ft(t),t);return Qe(n)?o.plural=n:oe(n)?o.default=n:_e(n)&&!mo(n)?o.named=n:Pe(n)&&(o.list=n),Qe(r)?o.plural=r:oe(r)?o.default=r:_e(r)&&Ke(o,r),[s,o]}function Z0(e,t,n,r,o,s){return{warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>H_(t,n,i)}}function G0(e,t,n,r){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,h={locale:t,modifiers:o,pluralRules:s,messages:p=>{let w=i(n,p);if(w==null&&u){const[,,b]=Md(u,p,t,a,l,c);w=i(b,p)}if(oe(w)){let b=!1;const _=Nd(e,p,t,w,p,()=>{b=!0});return b?Pc:_}else return Ft(w)?w:Pc}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Qe(r.plural)&&(h.pluralIndex=r.plural),h}function Rc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,c,u,f]=_i(...t),h=Ce(u.missingWarn)?u.missingWarn:e.missingWarn;Ce(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,w=oe(u.locale)?u.locale:e.locale,b=i(e,o,w);if(!oe(l)||l==="")return new Intl.DateTimeFormat(w,f).format(c);let T={},_,S=null;const A="datetime format";for(let x=0;x{$d.includes(l)?i[l]=n[l]:s[l]=n[l]}),oe(r)?s.locale=r:_e(r)&&(i=r),_e(o)&&(i=o),[s.key||"",a,s,i]}function Dc(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;!r.__datetimeFormatters.has(s)||r.__datetimeFormatters.delete(s)}}function Fc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=vi(...t),h=Ce(u.missingWarn)?u.missingWarn:e.missingWarn;Ce(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,w=oe(u.locale)?u.locale:e.locale,b=i(e,o,w);if(!oe(l)||l==="")return new Intl.NumberFormat(w,f).format(c);let T={},_,S=null;const A="number format";for(let x=0;x{Id.includes(l)?i[l]=n[l]:s[l]=n[l]}),oe(r)?s.locale=r:_e(r)&&(i=r),_e(o)&&(i=o),[s.key||"",a,s,i]}function qc(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;!r.__numberFormatters.has(s)||r.__numberFormatters.delete(s)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kr().__INTLIFY_PROD_DEVTOOLS__=!1);/*! + */const vn=[];vn[0]={w:[0],i:[3,0],["["]:[4],o:[7]};vn[1]={w:[1],["."]:[2],["["]:[4],o:[7]};vn[2]={w:[2],i:[3,0],[0]:[3,0]};vn[3]={i:[3,0],[0]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};vn[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};vn[5]={["'"]:[4,0],o:8,l:[5,0]};vn[6]={['"']:[4,0],o:8,l:[6,0]};const g_=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function __(e){return g_.test(e)}function v_(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function b_(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function y_(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:__(t)?v_(t):"*"+t}function w_(e){const t=[];let n=-1,r=0,o=0,s,i,a,l,c,u,f;const h=[];h[0]=()=>{i===void 0?i=a:i+=a},h[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},h[2]=()=>{h[0](),o++},h[3]=()=>{if(o>0)o--,r=4,h[0]();else{if(o=0,i===void 0||(i=y_(i),i===!1))return!1;h[1]()}};function p(){const w=e[n+1];if(r===5&&w==="'"||r===6&&w==='"')return n++,a="\\"+w,h[0](),!0}for(;r!==null;)if(n++,s=e[n],!(s==="\\"&&p())){if(l=b_(s),f=vn[r],c=f[l]||f.l||8,c===8||(r=c[0],c[1]!==void 0&&(u=h[c[1]],u&&(a=s,u()===!1))))return;if(r===7)return t}}const Ac=new Map;function E_(e,t){return ke(e)?e[t]:null}function T_(e,t){if(!ke(e))return null;let n=Ac.get(t);if(n||(n=w_(t),n&&Ac.set(t,n)),!n)return null;const r=n.length;let o=e,s=0;for(;se,C_=e=>"",A_="text",x_=e=>e.length===0?"":e.join(""),L_=K0;function xc(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function M_(e){const t=Qe(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Qe(e.named.count)||Qe(e.named.n))?Qe(e.named.count)?e.named.count:Qe(e.named.n)?e.named.n:t:t}function N_(e,t){t.count||(t.count=e),t.n||(t.n=e)}function $_(e={}){const t=e.locale,n=M_(e),r=ke(e.pluralRules)&&oe(t)&&Ue(e.pluralRules[t])?e.pluralRules[t]:xc,o=ke(e.pluralRules)&&oe(t)&&Ue(e.pluralRules[t])?xc:void 0,s=_=>_[r(n,_.length,o)],i=e.list||[],a=_=>i[_],l=e.named||{};Qe(e.pluralIndex)&&N_(n,l);const c=_=>l[_];function u(_){const S=Ue(e.messages)?e.messages(_):ke(e.messages)?e.messages[_]:!1;return S||(e.parent?e.parent.message(_):C_)}const f=_=>e.modifiers?e.modifiers[_]:S_,h=_e(e.processor)&&Ue(e.processor.normalize)?e.processor.normalize:x_,p=_e(e.processor)&&Ue(e.processor.interpolate)?e.processor.interpolate:L_,w=_e(e.processor)&&oe(e.processor.type)?e.processor.type:A_,T={list:a,named:c,plural:s,linked:(_,...S)=>{const[A,y]=S;let C="text",x="";S.length===1?ke(A)?(x=A.modifier||x,C=A.type||C):oe(A)&&(x=A||x):S.length===2&&(oe(A)&&(x=A||x),oe(y)&&(C=y||C));let O=u(_)(T);return C==="vnode"&&Oe(O)&&x&&(O=O[0]),x?f(x)(O,C):O},message:u,type:w,interpolate:p,normalize:h};return T}let Kr=null;function I_(e){Kr=e}function P_(e,t,n){Kr&&Kr.emit(Ed.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const O_=k_(Ed.FunctionTranslate);function k_(e){return t=>Kr&&Kr.emit(e,t)}const R_={NOT_FOUND_KEY:1,FALLBACK_TO_TRANSLATE:2,CANNOT_FORMAT_NUMBER:3,FALLBACK_TO_NUMBER_FORMAT:4,CANNOT_FORMAT_DATE:5,FALLBACK_TO_DATE_FORMAT:6,__EXTEND_POINT__:7};function D_(e,t,n){return[...new Set([n,...Oe(t)?t:ke(t)?Object.keys(t):oe(t)?[t]:[n]])]}function Td(e,t,n){const r=oe(n)?n:ns,o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let s=o.__localeChainCache.get(r);if(!s){s=[];let i=[n];for(;Oe(i);)i=Lc(s,i,t);const a=Oe(t)||!_e(t)?t:t.default?t.default:null;i=oe(a)?[a]:a,Oe(i)&&Lc(s,i,!1),o.__localeChainCache.set(r,s)}return s}function Lc(e,t,n){let r=!0;for(let o=0;o`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function H_(){return{upper:(e,t)=>t==="text"&&oe(e)?e.toUpperCase():t==="vnode"&&ke(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&oe(e)?e.toLowerCase():t==="vnode"&&ke(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&oe(e)?Nc(e):t==="vnode"&&ke(e)&&"__v_isVNode"in e?Nc(e.children):e}}let Sd;function B_(e){Sd=e}let Cd;function U_(e){Cd=e}let Ad;function j_(e){Ad=e}let xd=null;const $c=e=>{xd=e},Q_=()=>xd;let Ld=null;const Ic=e=>{Ld=e},W_=()=>Ld;let Pc=0;function z_(e={}){const t=oe(e.version)?e.version:V_,n=oe(e.locale)?e.locale:ns,r=Oe(e.fallbackLocale)||_e(e.fallbackLocale)||oe(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,o=_e(e.messages)?e.messages:{[n]:{}},s=_e(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=_e(e.numberFormats)?e.numberFormats:{[n]:{}},a=Ye({},e.modifiers||{},H_()),l=e.pluralRules||{},c=Ue(e.missing)?e.missing:null,u=Ce(e.missingWarn)||hn(e.missingWarn)?e.missingWarn:!0,f=Ce(e.fallbackWarn)||hn(e.fallbackWarn)?e.fallbackWarn:!0,h=!!e.fallbackFormat,p=!!e.unresolving,w=Ue(e.postTranslation)?e.postTranslation:null,b=_e(e.processor)?e.processor:null,T=Ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,_=!!e.escapeParameter,S=Ue(e.messageCompiler)?e.messageCompiler:Sd,A=Ue(e.messageResolver)?e.messageResolver:Cd||E_,y=Ue(e.localeFallbacker)?e.localeFallbacker:Ad||D_,C=ke(e.fallbackContext)?e.fallbackContext:void 0,x=Ue(e.onWarn)?e.onWarn:W0,O=e,K=ke(O.__datetimeFormatters)?O.__datetimeFormatters:new Map,Y=ke(O.__numberFormatters)?O.__numberFormatters:new Map,ee=ke(O.__meta)?O.__meta:{};Pc++;const ne={version:t,cid:Pc,locale:n,fallbackLocale:r,messages:o,modifiers:a,pluralRules:l,missing:c,missingWarn:u,fallbackWarn:f,fallbackFormat:h,unresolving:p,postTranslation:w,processor:b,warnHtmlMessage:T,escapeParameter:_,messageCompiler:S,messageResolver:A,localeFallbacker:y,fallbackContext:C,onWarn:x,__meta:ee};return ne.datetimeFormats=s,ne.numberFormats=i,ne.__datetimeFormatters=K,ne.__numberFormatters=Y,__INTLIFY_PROD_DEVTOOLS__&&P_(ne,t,ee),ne}function La(e,t,n,r,o){const{missing:s,onWarn:i}=e;if(s!==null){const a=s(e,n,t,o);return oe(a)?a:t}else return t}function Er(e,t,n){const r=e;r.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}const K_=e=>e;let Oc=Object.create(null);function Y_(e,t={}){{const r=(t.onCacheKey||K_)(e),o=Oc[r];if(o)return o;let s=!1;const i=t.onError||Y0;t.onError=c=>{s=!0,i(c)};const{code:a}=p_(e,t),l=new Function(`return ${a}`)();return s?l:Oc[r]=l}}let Md=Ne.__EXTEND_POINT__;const jo=()=>++Md,Hn={INVALID_ARGUMENT:Md,INVALID_DATE_ARGUMENT:jo(),INVALID_ISO_DATE_ARGUMENT:jo(),__EXTEND_POINT__:jo()};function Bn(e){return po(e,null,void 0)}const kc=()=>"",Ft=e=>Ue(e);function Rc(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:o,messageCompiler:s,fallbackLocale:i,messages:a}=e,[l,c]=_i(...t),u=Ce(c.missingWarn)?c.missingWarn:e.missingWarn,f=Ce(c.fallbackWarn)?c.fallbackWarn:e.fallbackWarn,h=Ce(c.escapeParameter)?c.escapeParameter:e.escapeParameter,p=!!c.resolvedMessage,w=oe(c.default)||Ce(c.default)?Ce(c.default)?s?l:()=>l:c.default:n?s?l:()=>l:"",b=n||w!=="",T=oe(c.locale)?c.locale:e.locale;h&&Z_(c);let[_,S,A]=p?[l,T,a[T]||{}]:Nd(e,l,T,i,f,u),y=_,C=l;if(!p&&!(oe(y)||Ft(y))&&b&&(y=w,C=y),!p&&(!(oe(y)||Ft(y))||!oe(S)))return o?go:l;let x=!1;const O=()=>{x=!0},K=Ft(y)?y:$d(e,l,S,y,C,O);if(x)return y;const Y=J_(e,S,A,c),ee=$_(Y),ne=G_(e,K,ee),R=r?r(ne,l):ne;if(__INTLIFY_PROD_DEVTOOLS__){const X={timestamp:Date.now(),key:oe(l)?l:Ft(y)?y.key:"",locale:S||(Ft(y)?y.locale:""),format:oe(y)?y:Ft(y)?y.source:"",message:R};X.meta=Ye({},e.__meta,Q_()||{}),O_(X)}return R}function Z_(e){Oe(e.list)?e.list=e.list.map(t=>oe(t)?Tc(t):t):ke(e.named)&&Object.keys(e.named).forEach(t=>{oe(e.named[t])&&(e.named[t]=Tc(e.named[t]))})}function Nd(e,t,n,r,o,s){const{messages:i,onWarn:a,messageResolver:l,localeFallbacker:c}=e,u=c(e,r,n);let f={},h,p=null;const w="translate";for(let b=0;br;return c.locale=n,c.key=t,c}const l=i(r,X_(e,n,o,r,a,s));return l.locale=n,l.key=t,l.source=r,l}function G_(e,t,n){return t(n)}function _i(...e){const[t,n,r]=e,o={};if(!oe(t)&&!Qe(t)&&!Ft(t))throw Bn(Hn.INVALID_ARGUMENT);const s=Qe(t)?String(t):(Ft(t),t);return Qe(n)?o.plural=n:oe(n)?o.default=n:_e(n)&&!mo(n)?o.named=n:Oe(n)&&(o.list=n),Qe(r)?o.plural=r:oe(r)?o.default=r:_e(r)&&Ye(o,r),[s,o]}function X_(e,t,n,r,o,s){return{warnHtmlMessage:o,onError:i=>{throw s&&s(i),i},onCacheKey:i=>U0(t,n,i)}}function J_(e,t,n,r){const{modifiers:o,pluralRules:s,messageResolver:i,fallbackLocale:a,fallbackWarn:l,missingWarn:c,fallbackContext:u}=e,h={locale:t,modifiers:o,pluralRules:s,messages:p=>{let w=i(n,p);if(w==null&&u){const[,,b]=Nd(u,p,t,a,l,c);w=i(b,p)}if(oe(w)){let b=!1;const _=$d(e,p,t,w,p,()=>{b=!0});return b?kc:_}else return Ft(w)?w:kc}};return e.processor&&(h.processor=e.processor),r.list&&(h.list=r.list),r.named&&(h.named=r.named),Qe(r.plural)&&(h.pluralIndex=r.plural),h}function Dc(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[l,c,u,f]=vi(...t),h=Ce(u.missingWarn)?u.missingWarn:e.missingWarn;Ce(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,w=oe(u.locale)?u.locale:e.locale,b=i(e,o,w);if(!oe(l)||l==="")return new Intl.DateTimeFormat(w,f).format(c);let T={},_,S=null;const A="datetime format";for(let x=0;x{Id.includes(l)?i[l]=n[l]:s[l]=n[l]}),oe(r)?s.locale=r:_e(r)&&(i=r),_e(o)&&(i=o),[s.key||"",a,s,i]}function Fc(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;!r.__datetimeFormatters.has(s)||r.__datetimeFormatters.delete(s)}}function qc(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:o,onWarn:s,localeFallbacker:i}=e,{__numberFormatters:a}=e,[l,c,u,f]=bi(...t),h=Ce(u.missingWarn)?u.missingWarn:e.missingWarn;Ce(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const p=!!u.part,w=oe(u.locale)?u.locale:e.locale,b=i(e,o,w);if(!oe(l)||l==="")return new Intl.NumberFormat(w,f).format(c);let T={},_,S=null;const A="number format";for(let x=0;x{Pd.includes(l)?i[l]=n[l]:s[l]=n[l]}),oe(r)?s.locale=r:_e(r)&&(i=r),_e(o)&&(i=o),[s.key||"",a,s,i]}function Vc(e,t,n){const r=e;for(const o in n){const s=`${t}__${o}`;!r.__numberFormatters.has(s)||r.__numberFormatters.delete(s)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kr().__INTLIFY_PROD_DEVTOOLS__=!1);/*! * vue-i18n v9.2.2 * (c) 2022 kazuya kawaguchi * Released under the MIT License. - */const X0="9.2.2";function J0(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kr().__INTLIFY_PROD_DEVTOOLS__=!1)}P0.__EXTEND_POINT__;let Od=Ne.__EXTEND_POINT__;const ct=()=>++Od,je={UNEXPECTED_RETURN_TYPE:Od,INVALID_ARGUMENT:ct(),MUST_BE_CALL_SETUP_TOP:ct(),NOT_INSLALLED:ct(),NOT_AVAILABLE_IN_LEGACY_MODE:ct(),REQUIRED_VALUE:ct(),INVALID_VALUE:ct(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ct(),NOT_INSLALLED_WITH_PROVIDE:ct(),UNEXPECTED_ERROR:ct(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ct(),BRIDGE_SUPPORT_VUE_2_ONLY:ct(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ct(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ct(),__EXTEND_POINT__:ct()};function We(e,...t){return po(e,null,void 0)}const bi=_n("__transrateVNode"),yi=_n("__datetimeParts"),wi=_n("__numberParts"),Pd=_n("__setPluralRules");_n("__intlifyMeta");const kd=_n("__injectWithOption");function Ei(e){if(!ke(e))return e;for(const t in e)if(!!Sa(e,t))if(!t.includes("."))ke(e[t])&&Ei(e[t]);else{const n=t.split("."),r=n.length-1;let o=e;for(let s=0;s{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||{},Rr(c,i[l])):Rr(c,i)}else oe(a)&&Rr(JSON.parse(a),i)}),o==null&&s)for(const a in i)Sa(i,a)&&Ei(i[a]);return i}const gs=e=>!ke(e)||Pe(e);function Rr(e,t){if(gs(e)||gs(t))throw We(je.INVALID_VALUE);for(const n in e)Sa(e,n)&&(gs(e[n])||gs(t[n])?t[n]=e[n]:Rr(e[n],t[n]))}function Rd(e){return e.type}function Dd(e,t,n){let r=ke(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=_o(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ke(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(ke(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Vc(e){return re(Zr,null,e,0)}const Hc="__INTLIFY_META__";let Bc=0;function Uc(e){return(t,n,r,o)=>e(n,r,Xt()||void 0,o)}const ev=()=>{const e=Xt();let t=null;return e&&(t=Rd(e)[Hc])?{[Hc]:t}:null};function La(e={},t){const{__root:n}=e,r=n===void 0;let o=Ce(e.inheritLocale)?e.inheritLocale:!0;const s=At(n&&o?n.locale.value:oe(e.locale)?e.locale:ns),i=At(n&&o?n.fallbackLocale.value:oe(e.fallbackLocale)||Pe(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),a=At(_o(s.value,e)),l=At(_e(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=At(_e(e.numberFormats)?e.numberFormats:{[s.value]:{}});let u=n?n.missingWarn:Ce(e.missingWarn)||hn(e.missingWarn)?e.missingWarn:!0,f=n?n.fallbackWarn:Ce(e.fallbackWarn)||hn(e.fallbackWarn)?e.fallbackWarn:!0,h=n?n.fallbackRoot:Ce(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,w=Ue(e.missing)?e.missing:null,b=Ue(e.missing)?Uc(e.missing):null,T=Ue(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:Ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const A=n?n.modifiers:_e(e.modifiers)?e.modifiers:{};let y=e.pluralRules||n&&n.pluralRules,C;C=(()=>{r&&$c(null);const $={version:X0,locale:s.value,fallbackLocale:i.value,messages:a.value,modifiers:A,pluralRules:y,missing:b===null?void 0:b,missingWarn:u,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:_,escapeParameter:S,messageResolver:e.messageResolver,__meta:{framework:"vue"}};$.datetimeFormats=l.value,$.numberFormats=c.value,$.__datetimeFormatters=_e(C)?C.__datetimeFormatters:void 0,$.__numberFormatters=_e(C)?C.__numberFormatters:void 0;const D=Q0($);return r&&$c(D),D})(),Er(C,s.value,i.value);function P(){return[s.value,i.value,a.value,l.value,c.value]}const K=Fe({get:()=>s.value,set:$=>{s.value=$,C.locale=s.value}}),Y=Fe({get:()=>i.value,set:$=>{i.value=$,C.fallbackLocale=i.value,Er(C,s.value,$)}}),ee=Fe(()=>a.value),ne=Fe(()=>l.value),R=Fe(()=>c.value);function X(){return Ue(T)?T:null}function I($){T=$,C.postTranslation=$}function N(){return w}function Z($){$!==null&&(b=Uc($)),w=$,C.missing=b}const G=($,D,se,ce,ve,Ae)=>{P();let Ee;if(__INTLIFY_PROD_DEVTOOLS__)try{Nc(ev()),r||(C.fallbackContext=n?j0():void 0),Ee=$(C)}finally{Nc(null),r||(C.fallbackContext=void 0)}else Ee=$(C);if(Qe(Ee)&&Ee===go){const[qe,bt]=D();return n&&h?ce(n):ve(qe)}else{if(Ae(Ee))return Ee;throw We(je.UNEXPECTED_RETURN_TYPE)}};function te(...$){return G(D=>Reflect.apply(kc,null,[D,...$]),()=>gi(...$),"translate",D=>Reflect.apply(D.t,D,[...$]),D=>D,D=>oe(D))}function le(...$){const[D,se,ce]=$;if(ce&&!ke(ce))throw We(je.INVALID_ARGUMENT);return te(D,se,Ke({resolvedMessage:!0},ce||{}))}function he(...$){return G(D=>Reflect.apply(Rc,null,[D,...$]),()=>_i(...$),"datetime format",D=>Reflect.apply(D.d,D,[...$]),()=>Lc,D=>oe(D))}function ae(...$){return G(D=>Reflect.apply(Fc,null,[D,...$]),()=>vi(...$),"number format",D=>Reflect.apply(D.n,D,[...$]),()=>Lc,D=>oe(D))}function me($){return $.map(D=>oe(D)||Qe(D)||Ce(D)?Vc(String(D)):D)}const pe={normalize:me,interpolate:$=>$,type:"vnode"};function H(...$){return G(D=>{let se;const ce=D;try{ce.processor=pe,se=Reflect.apply(kc,null,[ce,...$])}finally{ce.processor=null}return se},()=>gi(...$),"translate",D=>D[bi](...$),D=>[Vc(D)],D=>Pe(D))}function W(...$){return G(D=>Reflect.apply(Fc,null,[D,...$]),()=>vi(...$),"number format",D=>D[wi](...$),()=>[],D=>oe(D)||Pe(D))}function L(...$){return G(D=>Reflect.apply(Rc,null,[D,...$]),()=>_i(...$),"datetime format",D=>D[yi](...$),()=>[],D=>oe(D)||Pe(D))}function q($){y=$,C.pluralRules=y}function J($,D){const se=oe(D)?D:s.value,ce=v(se);return C.messageResolver(ce,$)!==null}function ue($){let D=null;const se=Ed(C,i.value,s.value);for(let ce=0;ce{o&&(s.value=$,C.locale=$,Er(C,s.value,i.value))}),Nt(n.fallbackLocale,$=>{o&&(i.value=$,C.fallbackLocale=$,Er(C,s.value,i.value))}));const U={id:Bc,locale:K,fallbackLocale:Y,get inheritLocale(){return o},set inheritLocale($){o=$,$&&n&&(s.value=n.locale.value,i.value=n.fallbackLocale.value,Er(C,s.value,i.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:ee,get modifiers(){return A},get pluralRules(){return y||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn($){u=$,C.missingWarn=u},get fallbackWarn(){return f},set fallbackWarn($){f=$,C.fallbackWarn=f},get fallbackRoot(){return h},set fallbackRoot($){h=$},get fallbackFormat(){return p},set fallbackFormat($){p=$,C.fallbackFormat=p},get warnHtmlMessage(){return _},set warnHtmlMessage($){_=$,C.warnHtmlMessage=$},get escapeParameter(){return S},set escapeParameter($){S=$,C.escapeParameter=$},t:te,getLocaleMessage:v,setLocaleMessage:d,mergeLocaleMessage:m,getPostTranslationHandler:X,setPostTranslationHandler:I,getMissingHandler:N,setMissingHandler:Z,[Pd]:q};return U.datetimeFormats=ne,U.numberFormats=R,U.rt=le,U.te=J,U.tm=ie,U.d=he,U.n=ae,U.getDateTimeFormat=E,U.setDateTimeFormat=O,U.mergeDateTimeFormat=V,U.getNumberFormat=Q,U.setNumberFormat=k,U.mergeNumberFormat=j,U[kd]=e.__injectWithOption,U[bi]=H,U[yi]=L,U[wi]=W,U}function tv(e){const t=oe(e.locale)?e.locale:ns,n=oe(e.fallbackLocale)||Pe(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Ue(e.missing)?e.missing:void 0,o=Ce(e.silentTranslationWarn)||hn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Ce(e.silentFallbackWarn)||hn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Ce(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=_e(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Ue(e.postTranslation)?e.postTranslation:void 0,f=oe(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,p=Ce(e.sync)?e.sync:!0;let w=e.messages;if(_e(e.sharedMessages)){const C=e.sharedMessages;w=Object.keys(C).reduce((P,K)=>{const Y=P[K]||(P[K]={});return Ke(Y,C[K]),P},w||{})}const{__i18n:b,__root:T,__injectWithOption:_}=e,S=e.datetimeFormats,A=e.numberFormats,y=e.flatJson;return{locale:t,fallbackLocale:n,messages:w,flatJson:y,datetimeFormats:S,numberFormats:A,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:p,__i18n:b,__root:T,__injectWithOption:_}}function Ti(e={},t){{const n=La(tv(e)),r={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(o){},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return Ce(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=Ce(o)?!o:o},get silentFallbackWarn(){return Ce(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=Ce(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(o){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[s,i,a]=o,l={};let c=null,u=null;if(!oe(s))throw We(je.INVALID_ARGUMENT);const f=s;return oe(i)?l.locale=i:Pe(i)?c=i:_e(i)&&(u=i),Pe(a)?c=a:_e(a)&&(u=a),Reflect.apply(n.t,n,[f,c||u||{},l])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[s,i,a]=o,l={plural:1};let c=null,u=null;if(!oe(s))throw We(je.INVALID_ARGUMENT);const f=s;return oe(i)?l.locale=i:Qe(i)?l.plural=i:Pe(i)?c=i:_e(i)&&(u=i),oe(a)?l.locale=a:Pe(a)?c=a:_e(a)&&(u=a),Reflect.apply(n.t,n,[f,c||u||{},l])},te(o,s){return n.te(o,s)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,s){n.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){n.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,s){n.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){n.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,s){n.setNumberFormat(o,s)},mergeNumberFormat(o,s){n.mergeNumberFormat(o,s)},getChoiceIndex(o,s){return-1},__onComponentInstanceCreated(o){const{componentInstanceCreatedListener:s}=e;s&&s(o,r)}};return r}}const Ma={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function nv({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>r=[...r,...Pe(o.children)?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},{})}function Fd(e){return Se}const jc={name:"i18n-t",props:Ke({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Qe(e)||!isNaN(e)}},Ma),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||Na({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=oe(e.plural)?+e.plural:e.plural);const a=nv(t,s),l=o[bi](e.keypath,a,i),c=Ke({},r),u=oe(e.tag)||ke(e.tag)?e.tag:Fd();return pn(u,c,l)}}};function rv(e){return Pe(e)&&!oe(e[0])}function qd(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),oe(e.format)?i.key=e.format:ke(e.format)&&(oe(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((h,p)=>n.includes(p)?Ke({},h,{[p]:e.format[p]}):h,{}));const l=r(e.value,i,a);let c=[i.key];Pe(l)?c=l.map((h,p)=>{const w=o[h.type],b=w?w({[h.type]:h.value,index:p,parts:l}):[h.value];return rv(b)&&(b[0].key=`${h.type}-${p}`),b}):oe(l)&&(c=[l]);const u=Ke({},s),f=oe(e.tag)||ke(e.tag)?e.tag:Fd();return pn(f,u,c)}}const Qc={name:"i18n-n",props:Ke({value:{type:Number,required:!0},format:{type:[String,Object]}},Ma),setup(e,t){const n=e.i18n||Na({useScope:"parent",__useComponent:!0});return qd(e,t,Id,(...r)=>n[wi](...r))}},Wc={name:"i18n-d",props:Ke({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Ma),setup(e,t){const n=e.i18n||Na({useScope:"parent",__useComponent:!0});return qd(e,t,$d,(...r)=>n[yi](...r))}};function sv(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function ov(e){const t=i=>{const{instance:a,modifiers:l,value:c}=i;if(!a||!a.$)throw We(je.UNEXPECTED_ERROR);const u=sv(e,a.$),f=zc(c);return[Reflect.apply(u.t,u,[...Kc(f)]),u]};return{created:(i,a)=>{const[l,c]=t(a);mi&&e.global===c&&(i.__i18nWatcher=Nt(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{mi&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,c=zc(a);i.textContent=Reflect.apply(l.t,l,[...Kc(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function zc(e){if(oe(e))return{path:e};if(_e(e)){if(!("path"in e))throw We(je.REQUIRED_VALUE,"path");return e}else throw We(je.INVALID_VALUE)}function Kc(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,i={},a=r||{};return oe(n)&&(i.locale=n),Qe(o)&&(i.plural=o),Qe(s)&&(i.plural=s),[t,a,i]}function iv(e,t,...n){const r=_e(n[0])?n[0]:{},o=!!r.useI18nComponentName;(Ce(r.globalInstall)?r.globalInstall:!0)&&(e.component(o?"i18n":jc.name,jc),e.component(Qc.name,Qc),e.component(Wc.name,Wc)),e.directive("t",ov(t))}function av(e,t,n){return{beforeCreate(){const r=Xt();if(!r)throw We(je.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;o.__i18n&&(s.__i18n=o.__i18n),s.__root=t,this===this.$root?this.$i18n=Yc(e,s):(s.__injectWithOption=!0,this.$i18n=Ti(s))}else o.__i18n?this===this.$root?this.$i18n=Yc(e,o):this.$i18n=Ti({__i18n:o.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;o.__i18nGlobal&&Dd(t,o,o),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,i)=>this.$i18n.te(s,i),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s)},mounted(){},unmounted(){const r=Xt();if(!r)throw We(je.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Yc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[Pd](t.pluralizationRules||e.pluralizationRules);const n=_o(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const lv=_n("global-vue-i18n");function cv(e={},t){const n=__VUE_I18N_LEGACY_API__&&Ce(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Ce(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[i,a]=uv(e,n),l=_n("");function c(h){return s.get(h)||null}function u(h,p){s.set(h,p)}function f(h){s.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(p,...w){p.__VUE_I18N_SYMBOL__=l,p.provide(p.__VUE_I18N_SYMBOL__,h),!n&&r&&bv(p,h.global),__VUE_I18N_FULL_INSTALL__&&iv(p,h,...w),__VUE_I18N_LEGACY_API__&&n&&p.mixin(av(a,a.__composer,h));const b=p.unmount;p.unmount=()=>{h.dispose(),b()}},get global(){return a},dispose(){i.stop()},__instances:s,__getInstance:c,__setInstance:u,__deleteInstance:f};return h}}function Na(e={}){const t=Xt();if(t==null)throw We(je.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw We(je.NOT_INSLALLED);const n=fv(t),r=hv(n),o=Rd(t),s=dv(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw We(je.NOT_AVAILABLE_IN_LEGACY_MODE);return gv(t,s,r,e)}if(s==="global")return Dd(r,e,o),r;if(s==="parent"){let l=mv(n,t,e.__useComponent);return l==null&&(l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Ke({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),a=La(l),pv(i,t),i.__setInstance(t,a)}return a}function uv(e,t,n){const r=Eh();{const o=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Ti(e)):r.run(()=>La(e));if(o==null)throw We(je.UNEXPECTED_ERROR);return[r,o]}}function fv(e){{const t=Ht(e.isCE?lv:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw We(e.isCE?je.NOT_INSLALLED_WITH_PROVIDE:je.UNEXPECTED_ERROR);return t}}function dv(e,t){return mo(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function hv(e){return e.mode==="composition"?e.global:e.global.__composer}function mv(e,t,n=!1){let r=null;const o=t.root;let s=t.parent;for(;s!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[kd]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function pv(e,t,n){Bu(()=>{},t),Zs(()=>{e.__deleteInstance(t)},t)}function gv(e,t,n,r={}){const o=t==="local",s=Lu(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw We(je.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Ce(r.inheritLocale)?r.inheritLocale:!0,a=At(o&&i?n.locale.value:oe(r.locale)?r.locale:ns),l=At(o&&i?n.fallbackLocale.value:oe(r.fallbackLocale)||Pe(r.fallbackLocale)||_e(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=At(_o(a.value,r)),u=At(_e(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=At(_e(r.numberFormats)?r.numberFormats:{[a.value]:{}}),h=o?n.missingWarn:Ce(r.missingWarn)||hn(r.missingWarn)?r.missingWarn:!0,p=o?n.fallbackWarn:Ce(r.fallbackWarn)||hn(r.fallbackWarn)?r.fallbackWarn:!0,w=o?n.fallbackRoot:Ce(r.fallbackRoot)?r.fallbackRoot:!0,b=!!r.fallbackFormat,T=Ue(r.missing)?r.missing:null,_=Ue(r.postTranslation)?r.postTranslation:null,S=o?n.warnHtmlMessage:Ce(r.warnHtmlMessage)?r.warnHtmlMessage:!0,A=!!r.escapeParameter,y=o?n.modifiers:_e(r.modifiers)?r.modifiers:{},C=r.pluralRules||o&&n.pluralRules;function x(){return[a.value,l.value,c.value,u.value,f.value]}const P=Fe({get:()=>s.value?s.value.locale.value:a.value,set:m=>{s.value&&(s.value.locale.value=m),a.value=m}}),K=Fe({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:m=>{s.value&&(s.value.fallbackLocale.value=m),l.value=m}}),Y=Fe(()=>s.value?s.value.messages.value:c.value),ee=Fe(()=>u.value),ne=Fe(()=>f.value);function R(){return s.value?s.value.getPostTranslationHandler():_}function X(m){s.value&&s.value.setPostTranslationHandler(m)}function I(){return s.value?s.value.getMissingHandler():T}function N(m){s.value&&s.value.setMissingHandler(m)}function Z(m){return x(),m()}function G(...m){return s.value?Z(()=>Reflect.apply(s.value.t,null,[...m])):Z(()=>"")}function te(...m){return s.value?Reflect.apply(s.value.rt,null,[...m]):""}function le(...m){return s.value?Z(()=>Reflect.apply(s.value.d,null,[...m])):Z(()=>"")}function he(...m){return s.value?Z(()=>Reflect.apply(s.value.n,null,[...m])):Z(()=>"")}function ae(m){return s.value?s.value.tm(m):{}}function me(m,E){return s.value?s.value.te(m,E):!1}function Te(m){return s.value?s.value.getLocaleMessage(m):{}}function pe(m,E){s.value&&(s.value.setLocaleMessage(m,E),c.value[m]=E)}function H(m,E){s.value&&s.value.mergeLocaleMessage(m,E)}function W(m){return s.value?s.value.getDateTimeFormat(m):{}}function L(m,E){s.value&&(s.value.setDateTimeFormat(m,E),u.value[m]=E)}function q(m,E){s.value&&s.value.mergeDateTimeFormat(m,E)}function J(m){return s.value?s.value.getNumberFormat(m):{}}function ue(m,E){s.value&&(s.value.setNumberFormat(m,E),f.value[m]=E)}function ie(m,E){s.value&&s.value.mergeNumberFormat(m,E)}const v={get id(){return s.value?s.value.id:-1},locale:P,fallbackLocale:K,messages:Y,datetimeFormats:ee,numberFormats:ne,get inheritLocale(){return s.value?s.value.inheritLocale:i},set inheritLocale(m){s.value&&(s.value.inheritLocale=m)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(c.value)},get modifiers(){return s.value?s.value.modifiers:y},get pluralRules(){return s.value?s.value.pluralRules:C},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:h},set missingWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackWarn(){return s.value?s.value.fallbackWarn:p},set fallbackWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackRoot(){return s.value?s.value.fallbackRoot:w},set fallbackRoot(m){s.value&&(s.value.fallbackRoot=m)},get fallbackFormat(){return s.value?s.value.fallbackFormat:b},set fallbackFormat(m){s.value&&(s.value.fallbackFormat=m)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:S},set warnHtmlMessage(m){s.value&&(s.value.warnHtmlMessage=m)},get escapeParameter(){return s.value?s.value.escapeParameter:A},set escapeParameter(m){s.value&&(s.value.escapeParameter=m)},t:G,getPostTranslationHandler:R,setPostTranslationHandler:X,getMissingHandler:I,setMissingHandler:N,rt:te,d:le,n:he,tm:ae,te:me,getLocaleMessage:Te,setLocaleMessage:pe,mergeLocaleMessage:H,getDateTimeFormat:W,setDateTimeFormat:L,mergeDateTimeFormat:q,getNumberFormat:J,setNumberFormat:ue,mergeNumberFormat:ie};function d(m){m.locale.value=a.value,m.fallbackLocale.value=l.value,Object.keys(c.value).forEach(E=>{m.mergeLocaleMessage(E,c.value[E])}),Object.keys(u.value).forEach(E=>{m.mergeDateTimeFormat(E,u.value[E])}),Object.keys(f.value).forEach(E=>{m.mergeNumberFormat(E,f.value[E])}),m.escapeParameter=A,m.fallbackFormat=b,m.fallbackRoot=w,m.fallbackWarn=p,m.missingWarn=h,m.warnHtmlMessage=S}return Hu(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw We(je.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=s.value=e.proxy.$i18n.__composer;t==="global"?(a.value=m.locale.value,l.value=m.fallbackLocale.value,c.value=m.messages.value,u.value=m.datetimeFormats.value,f.value=m.numberFormats.value):o&&d(m)}),v}const _v=["locale","fallbackLocale","availableLocales"],vv=["t","rt","d","n","tm"];function bv(e,t){const n=Object.create(null);_v.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw We(je.UNEXPECTED_ERROR);const s=Ge(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,s)}),e.config.globalProperties.$i18n=n,vv.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw We(je.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)})}V0(z0);H0(w0);B0(Ed);J0();if(__INTLIFY_PROD_DEVTOOLS__){const e=kr();e.__INTLIFY__=!0,N0(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const yv={header:{sessions:"Charging sessions",settings:"Settings",docs:"Documentation",blog:"Blog",github:"GitHub",login:"Vehicle logins",about:"About"},settings:{title:"Settings",theme:{label:"Design",auto:"system",light:"light",dark:"dark"},language:{label:"Language",auto:"Automatic"},unit:{label:"Units",km:"km",mi:"miles"},telemetry:{label:"Telemetry"}},footer:{version:{availableLong:"new version available",modalTitle:"New version available",modalUpdateStarted:"Starting the new version of evcc\u2026",modalInstalledVersion:"Installed version",modalNoReleaseNotes:"No release notes available. More info about the new version:",modalCancel:"Cancel",modalUpdate:"Install",modalUpdateNow:"Install now",modalDownload:"Download",modalUpdateStatusStart:"Installation started:"},savings:{tabTitle:"My data",footerShort:"{percent}% solar",footerLong:"{percent}% solar energy",modalTitle:"Charge Energy Overview",since:"since {since}",percentTitle:"Solar Energy",percentSelf:"{self} kWh solar",percentGrid:"{grid} kWh grid",priceTitle:"Energy Price",priceFeedIn:"{feedInPrice} feed-in",priceGrid:"{gridPrice} grid",savingsTitle:"Savings",savingsComparedToGrid:"compared to grid",savingsTotalEnergy:"{total} kWh charged"},community:{tabTitle:"Live community",power:"Charging power",powerSub1:"{activeClients} of {totalClients} participants",powerSub2:"charging\u2026",greenShare:"Solar share",greenShareSub1:"power provided by",greenShareSub2:"solar, and battery storage",greenEnergy:"Solar",greenEnergySub1:"charged with evcc",greenEnergySub2:"since October 2022"},telemetry:{optIn:"I want to contribute my data.",optInMoreDetails:"More details {0}.",optInMoreDetailsLink:"here",optInSponsorship:"Sponsoring required."},sponsor:{titleSponsor:"You are a supporter",titleNoSponsor:"Support us",thanks:"Thank you, {sponsor}! Your contribution helps develop evcc further.",confetti:"Ready for confetti?",supportUs:"Our mission is to make solar the norm. Help evcc by paying what it is worth to you.",sticker:"\u2026 or evcc stickers?",confettiPromise:"You get stickers and digital confetti",becomeSponsor:"Become a Sponsor"}},notifications:{modalTitle:"Notifications",dismissAll:"Dismiss all"},main:{vehicles:"Parking",energyflow:{noEnergy:"No meter data",homePower:"Consumption",pvProduction:"Production",loadpoints:"Charger| Charger | {count} chargers",battery:"Battery",batteryCharge:"Battery charging",batteryDischarge:"Battery discharging",gridImport:"Grid use",selfConsumption:"Self-consumption",pvExport:"Grid export"},mode:{off:"Off",minpv:"Min+Solar",pv:"Solar",now:"Fast"},loadpoint:{fallbackName:"Charging point",remoteDisabledSoft:"{source}: turned off adaptive solar-charging",remoteDisabledHard:"{source}: turned off",power:"Power",charged:"Charged",duration:"Duration",remaining:"Remaining"},loadpointSettings:{title:"Settings {0}",vehicle:"Vehicle",currents:"Charging current",default:"default",disclaimerHint:"Note:",disclaimerText:"Changes will be lost after the server is restarted.",minSoc:{label:"Min. charge %",description:"For emergencies. The vehicle gets \u201Efast\u201D charged to {0}% from all available solar, and then continues with only the solar surplus."},phasesConfigured:{label:"Phases",phases_0:"auto-switching",phases_1:"1 phase",phases_1_hint:"({min} to {max})",phases_3:"3 phase",phases_3_hint:"({min} to {max})"},maxCurrent:{label:"Max. Current"},minCurrent:{label:"Min. Current"}},vehicle:{fallbackName:"Vehicle",vehicleSoc:"Charge",targetSoc:"Limit",none:"No vehicle",unknown:"Guest vehicle",changeVehicle:"Change Vehicle",detectionActive:"Detecting vehicle\u2026"},vehicleSoc:{disconnected:"disconnected",charging:"charging",ready:"ready",connected:"connected",vehicleTarget:"Vehicle limit: {soc}%"},vehicleStatus:{minCharge:"Minimum charging to {soc}%.",waitForVehicle:"Ready. Waiting for vehicle\u2026",vehicleTargetReached:"Vehicle limit {soc}% reached.",charging:"Charging\u2026",targetChargePlanned:"Target charging starts at {time}.",targetChargeWaitForVehicle:"Target charge ready. Waiting for vehicle\u2026",targetChargeActive:"Target charge active\u2026",connected:"Connected.",pvDisable:"Not enough surplus. Pausing in {remaining}\u2026",pvEnable:"Surplus available. Starting in {remaining}\u2026",scale1p:"Reducing to 1-phase power in {remaining}\u2026",scale3p:"Increasing to 3-phase power in {remaining}\u2026",disconnected:"Disconnected.",unknown:""},provider:{login:"log in",logout:"log out"},targetCharge:{title:"Target Time",inactiveLabel:"Target time",activeLabel:"{time}",modalTitle:"Set Target Time",setTargetTime:"none",description:"When should the vehicle be charged to {targetSoc}%?",today:"today",tomorrow:"tomorrow",targetIsInThePast:"Pick a time in the future, Marty.",remove:"Remove",activate:"Activate",experimentalLabel:"Experimental",experimentalText:"This works, but isn't perfect. Please report unexpected behaviour to"},targetEnergy:{label:"Limit",noLimit:"none"}},startupError:{title:"Startup Error",description:"Please check your configuration file. If the error message does not help, check out the {0}.",discussions:"GitHub Discussions",hint:"Note: It could also be you have a faulty device (inverter, meter, \u2026). Check your network connections.",configuration:"Config",configFile:"Configuration file used:",lineError:"Error in {0}.",lineErrorLink:"line {0}",fixAndRestart:"Please fix the problem and restart the server.",restartButton:"Restart"},sessions:{title:"Charging Sessions",downloadCsv:"Download as CSV",loadpoint:"Charging point",vehicle:"Vehicle",energy:"Charged",date:"Period",csv:{loadpoint:"Charging point",vehicle:"Vehicle",odometer:"Mileage (km)",identifier:"Identifier",chargedenergy:"Energy (kWh)",meterstart:"Meter start (kWh)",meterstop:"Meter stop (kWh)",created:"Created",finished:"Finished"}},offline:{message:"Not connected to a server.",reload:"Reload?"}},Vd={de:["German","Deutsch"],da:["Danish","Dansk"],en:["English","English"],es:["Spanish","Espa\xF1ol"],fr:["French","Fran\xE7ais"],it:["Italian","Italiano"],lb:["Luxembourgish","L\xEBtzebuergesch"],lt:["Lithuanian","Lietuvi\u0173"],nl:["Dutch","Nederlands"],no:["Norwegian","Norsk"],pl:["Polish","Polski"],pt:["Portuguese","Portugu\xEAs"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439"],sl:["Slovenian","Sloven\u0161\u010Dina"],sv:["Swedish","Svenska"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"]};function Hd(){const e=navigator.languages!==void 0?navigator.languages[0]:navigator.language;if(!!e)return e.trim().split(/-|_/)[0]}function Bd(){return ot.locale}function wv(e){ot.locale=null,$a(e,Hd())}function Ev(e,t){if(!Vd[t]){console.error("unknown locale",t);return}ot.locale=t,$a(e,t),Ud(e)}function Tv(){return Bd()||Hd()}function Sv(){const e=cv({legacy:!0,silentFallbackWarn:!0,silentTranslationWarn:!0,locale:"en",fallbackLocale:"en",messages:{en:yv}});return $a(e.global,Tv()),e}function $a(e,t){e.locale=t,document.querySelector("html").setAttribute("lang",t)}async function Cv(e,t){var n;try{const r=await p_.get(`${t}.toml`,{params:{v:(n=window.evcc)==null?void 0:n.version}}),o=D_(r.data);e.setLocaleMessage(t,o)}catch(r){console.error(`unable to load translation for [${t}]`,r)}return Qi()}async function Ud(e){const{locale:t}=e;e.availableLocales.includes(t)||await Cv(e,t)}const Kn=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)"),Ia="auto",jd="light",Si="dark",Oa=[Ia,jd,Si];function Qd(){const e=ot.theme;return Oa.includes(e)?e:Ia}function Av(e){!Oa.includes(e)||(ot.theme=e,Ci())}function Ci(){let e=Qd();e===Ia&&(e=Kn!=null&&Kn.matches?Si:jd);const t={light:"#f3f3f7",dark:"#020318"},n=document.querySelector("meta[name=theme-color]");n&&n.setAttribute("content",t[e]);const r=document.querySelector("html");r.classList.add("no-transitions"),r.classList.toggle("dark",e===Si),window.setTimeout(function(){r.classList.remove("no-transitions")},100)}function xv(){Kn==null||Kn.addEventListener("change",Ci),Ci()}const Wd="km",Pa="mi",Lv=[Wd,Pa],Mv=.6213711922;function ka(){return ot.unit===Pa}function Nv(e){return ka()?e*Mv:e}function zd(){return ka()?"mi":"km"}function $v(){return ka()?Pa:Wd}function Iv(e){ot.unit=e}const Ov={name:"GlobalSettingsModal",components:{TelemetrySettings:bd,FormRow:$_,SelectGroup:R_},props:{sponsor:String},data:function(){return{theme:Qd(),language:Bd()||"",unit:$v(),THEMES:Oa,UNITS:Lv}},computed:{languageOptions:()=>{const e=Object.entries(Vd).map(([t,n])=>({value:t,name:n[1]}));return e.sort((t,n)=>t.name(tt("data-v-04cb5197"),e=e(),nt(),e),kv={id:"globalSettingsModal",class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},Rv={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},Dv={class:"modal-content"},Fv={class:"modal-header"},qv={class:"modal-title"},Vv=Pv(()=>g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),Hv={class:"modal-body"},Bv={class:"container"},Uv={value:""},jv=["value"];function Qv(e,t,n,r,o,s){const i=de("SelectGroup"),a=de("FormRow"),l=de("TelemetrySettings");return M(),be(dr,{to:"body"},[g("div",kv,[g("div",Rv,[g("div",Dv,[g("div",Fv,[g("h5",qv,B(e.$t("settings.title")),1),Vv]),g("div",Hv,[g("div",Bv,[re(a,{id:"settingsDesign",label:e.$t("settings.theme.label")},{default:Ve(()=>[re(i,{id:"settingsDesign",modelValue:e.theme,"onUpdate:modelValue":t[0]||(t[0]=c=>e.theme=c),class:"w-100",options:e.THEMES.map(c=>({value:c,name:e.$t(`settings.theme.${c}`)}))},null,8,["modelValue","options"])]),_:1},8,["label"]),re(a,{id:"settingsLanguage",label:e.$t("settings.language.label")},{default:Ve(()=>[mt(g("select",{id:"settingsLanguage","onUpdate:modelValue":t[1]||(t[1]=c=>e.language=c),class:"form-select form-select-sm w-75"},[g("option",Uv,B(e.$t("settings.language.auto")),1),(M(!0),F(Se,null,He(s.languageOptions,c=>(M(),F("option",{key:c,value:c.value},B(c.name),9,jv))),128))],512),[[Lr,e.language]])]),_:1},8,["label"]),re(a,{id:"settingsUnit",label:e.$t("settings.unit.label")},{default:Ve(()=>[re(i,{id:"settingsUnit",modelValue:e.unit,"onUpdate:modelValue":t[2]||(t[2]=c=>e.unit=c),class:"w-75",options:e.UNITS.map(c=>({value:c,name:e.$t(`settings.unit.${c}`)}))},null,8,["modelValue","options"])]),_:1},8,["label"]),re(a,{id:"telemetryEnabled",label:e.$t("settings.telemetry.label")},{default:Ve(()=>[re(l,{sponsor:n.sponsor,class:"mt-1 mb-0"},null,8,["sponsor"])]),_:1},8,["label"])])])])])])])}const Wv=fe(Ov,[["render",Qv],["__scopeId","data-v-04cb5197"]]),{protocol:zv,hostname:Kv,port:Zc,pathname:Yv}=window.location,Ai=ho.create({baseURL:zv+"//"+Kv+(Zc?":"+Zc:"")+Yv});Ai.interceptors.response.use(e=>e,e=>{const t=e.config.baseURL+e.config.url,n=`${e.message}: API request failed ${t}`;window.app.error({message:n})});const Zv={name:"TopNavigation",components:{GlobalSettingsModal:Wv},props:{vehicleLogins:{type:Object,default:()=>({})},sponsor:String},computed:{logoutCount(){return this.providerLogins.filter(e=>!e.loggedIn).length},providerLogins(){return Object.entries(this.vehicleLogins).map(([e,t])=>({title:e,loggedIn:t.authenticated,loginPath:t.uri+"/login",logoutPath:t.uri+"/logout"}))}},mounted(){this.dropdown=new Yf(document.getElementById("topNavigatonDropdown"))},unmounted(){var e;(e=this.dropdown)==null||e.dispose()},methods:{handleProviderAuthorization:async function(e){e.loggedIn?Ai.post(e.logoutPath):Ai.post(e.loginPath).then(function(t){window.location.href=t.data.loginUri})},openSettingsModal(){Xr.getOrCreateInstance(document.getElementById("globalSettingsModal")).show()}}},Pn=e=>(tt("data-v-36b2f086"),e=e(),nt(),e),Gv={id:"topNavigatonDropdown",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false",class:"btn btn-sm btn-outline-secondary position-relative border-0 menu-button"},Xv={key:0,class:"position-absolute top-0 start-100 translate-middle p-2 bg-danger border border-light rounded-circle"},Jv=Pn(()=>g("span",{class:"visually-hidden"},"login available",-1)),eb=[Jv],tb=Pn(()=>g("shopicon-regular-menu",null,null,-1)),nb={class:"dropdown-menu dropdown-menu-end","aria-labelledby":"topNavigatonDropdown"},rb=Pn(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),sb={class:"dropdown-header"},ob=["onClick"],ib={key:0,class:"d-inline-block p-1 rounded-circle bg-danger border border-light rounded-circle"},ab={class:"dropdown-item d-flex",href:"https://docs.evcc.io/blog/",target:"_blank"},lb=Pn(()=>g("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),cb={class:"dropdown-item d-flex",href:"https://docs.evcc.io/docs/Home/",target:"_blank"},ub=Pn(()=>g("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),fb={class:"dropdown-item d-flex",href:"https://github.com/evcc-io/evcc",target:"_blank"},db=Pn(()=>g("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),hb={class:"dropdown-item d-flex",href:"https://evcc.io/",target:"_blank"},mb=Pn(()=>g("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1));function pb(e,t,n,r,o,s){const i=de("router-link"),a=de("GlobalSettingsModal");return M(),F("div",null,[g("button",Gv,[s.logoutCount>0?(M(),F("span",Xv,eb)):ye("",!0),tb]),g("ul",nb,[g("li",null,[re(i,{class:"dropdown-item",to:"/sessions"},{default:Ve(()=>[$e(B(e.$t("header.sessions")),1)]),_:1})]),g("li",null,[g("button",{type:"button",class:"dropdown-item",onClick:t[0]||(t[0]=(...l)=>s.openSettingsModal&&s.openSettingsModal(...l))},B(e.$t("header.settings")),1)]),s.providerLogins.length>0?(M(),F(Se,{key:0},[rb,g("li",null,[g("h6",sb,B(e.$t("header.login")),1)]),(M(!0),F(Se,null,He(s.providerLogins,l=>(M(),F("li",{key:l.title},[g("button",{type:"button",class:"dropdown-item",onClick:c=>s.handleProviderAuthorization(l)},[l.loggedIn?ye("",!0):(M(),F("span",ib)),$e(" "+B(l.title)+" "+B(e.$t(l.loggedIn?"main.provider.logout":"main.provider.login")),1)],8,ob)]))),128))],64)):ye("",!0),g("li",null,[g("a",ab,[g("span",null,B(e.$t("header.blog")),1),lb])]),g("li",null,[g("a",cb,[g("span",null,B(e.$t("header.docs")),1),ub])]),g("li",null,[g("a",fb,[g("span",null,B(e.$t("header.github")),1),db])]),g("li",null,[g("a",hb,[g("span",null,B(e.$t("header.about")),1),mb])])]),re(a,{sponsor:n.sponsor},null,8,["sponsor"])])}const xi=fe(Zv,[["render",pb],["__scopeId","data-v-36b2f086"]]);var gb='';class _b extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=gb}}window.customElements.define("shopicon-regular-exclamationtriangle",_b);const dt={data:function(){return{fmtLimit:100,fmtDigits:1}},methods:{round:function(e,t){var n=10**t;return(Math.round(e*n)/n).toFixed(t)},fmt:function(e){return e==null?0:(e=Math.abs(e),e>=this.fmtLimit?this.round(e/1e3,this.fmtDigits):this.round(e,0))},fmtKw:function(e=0,t=!0,n=!0,r){r===void 0&&(r=t?1:0);const o=t?e/1e3:e;let s="";return n&&(s=t?" kW":" W"),`${new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",minimumFractionDigits:r,maximumFractionDigits:r}).format(o)}${s}`},fmtKWh:function(e,t,n,r){return this.fmtKw(e,t,n,r)+"h"},fmtNumber:function(e,t){return new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)},fmtUnit:function(e){return Math.abs(e)>=this.fmtLimit?"k":""},fmtDuration:function(e){if(e<=0||e==null)return"\u2014";var t="0"+e%60,n="0"+Math.floor(e/60)%60,r=""+Math.floor(e/3600);return r.length<2&&(r="0"+r),r+":"+n.substr(-2)+":"+t.substr(-2)},fmtShortDuration:function(e=0,t=!1){if(e<=0)return"\u2014";var n=e%60,r=Math.floor(e/60)%60,o=Math.floor(e/3600),s="";return o>=1?s=o+":"+`${r}`.padStart(2,"0"):r>=1?s=r+":"+`${n}`.padStart(2,"0"):s=`${n}`,t&&(s+=this.fmtShortDurationUnit(e)),s},fmtShortDurationUnit:function(e=0){if(e<=0)return"";var t=Math.floor(e/60)%60,n=Math.floor(e/3600);return n>=1?"h":t>=1?"m":"s"},fmtDayString:function(e){const t=`${e.getFullYear()}`,n=`${e.getMonth()+1}`.padStart(2,"0"),r=`${e.getDate()}`.padStart(2,"0");return`${t}-${n}-${r}`},fmtTimeString:function(e){const t=`${e.getHours()}`.padStart(2,"0"),n=`${e.getMinutes()}`.padStart(2,"0");return`${t}:${n}`},isToday:function(e){return new Date().toDateString()===e.toDateString()},isTomorrow:function(e){const t=new Date;return t.setDate(t.getDate()+1),t.toDateString()===e.toDateString()},weekdayPrefix:function(e){const t=new Intl.RelativeTimeFormat(this.$i18n.locale,{numeric:"auto"});return this.isToday(e)?t.formatToParts(0,"day")[0].value:this.isTomorrow(e)?t.formatToParts(1,"day")[0].value:new Intl.DateTimeFormat(this.$i18n.locale,{weekday:"short"}).format(e)},fmtAbsoluteDate:function(e){const t=this.weekdayPrefix(e),n=new Intl.DateTimeFormat(this.$i18n.locale,{hour:"numeric",minute:"numeric"}).format(e);return`${t} ${n}`},fmtFullDateTime:function(e,t){return new Intl.DateTimeFormat(this.$i18n.locale,{weekday:t?void 0:"short",month:t?"numeric":"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(e)},fmtMonthYear:function(e){return new Intl.DateTimeFormat(this.$i18n.locale,{month:"long",year:"numeric"}).format(e)},fmtDayMonthYear:function(e){return new Intl.DateTimeFormat(this.$i18n.locale,{day:"numeric",month:"long",year:"numeric"}).format(e)},fmtMoney:function(e=0,t="EUR"){return new Intl.NumberFormat(this.$i18n.locale,{style:"currency",currency:t,currencyDisplay:"code"}).format(e).replace(t,"").trim()},fmtCurrencySymbol:function(e="EUR"){return{EUR:"\u20AC",USD:"$"}[e]||e},fmtPricePerKWh:function(e=0,t="EUR"){let n=t,r=e,o=3;return["EUR","USD"].includes(t)&&(r*=100,n="ct",o=1),`${new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",maximumFractionDigits:o}).format(r)} ${n}/kWh`},fmtTimeAgo:function(e){const t={day:864e5,hour:36e5,minute:6e4,second:1e3},n=new Intl.RelativeTimeFormat(this.$i18n.locale,{numeric:"auto"});for(var r in t)if(Math.abs(e)>t[r]||r=="second")return n.format(Math.round(e/t[r]),r)}}},vb={name:"Notifications",mixins:[dt],props:{notifications:Array},computed:{iconVisible:function(){return this.notifications.length>0},iconClass:function(){return this.notifications.find(e=>e.type==="error")?"text-danger":"text-warning"}},created:function(){this.interval=setInterval(()=>{this.$forceUpdate()},10*1e3)},unmounted:function(){clearTimeout(this.interval)},methods:{clear:function(){window.app&&window.app.clear()}}},bb={href:"#","data-bs-toggle":"modal","data-bs-target":"#notificationModal",class:"btn btn-sm btn-link text-decoration-none link-light text-nowrap"},yb={id:"notificationModal",class:"modal fade text-dark",tabindex:"-1",role:"dialog","aria-hidden":"true","data-bs-backdrop":"true"},wb={class:"modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable",role:"document"},Eb={class:"modal-content"},Tb={class:"modal-header"},Sb={class:"modal-title"},Cb=g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),Ab={class:"modal-body"},xb=["title"],Lb={class:"d-flex align-items-baseline"},Mb={class:"flex-grow-1 px-2 py-1 text-break"},Nb={key:0,class:"badge rounded-pill bg-secondary"},$b={class:"modal-footer"};function Ib(e,t,n,r,o,s){return M(),F("div",null,[mt(g("button",bb,[g("shopicon-regular-exclamationtriangle",{class:Me(s.iconClass)},null,2)],512),[[Ji,s.iconVisible]]),g("div",yb,[g("div",wb,[g("div",Eb,[g("div",Tb,[g("h5",Sb,B(e.$t("notifications.modalTitle")),1),Cb]),g("div",Ab,[(M(!0),F(Se,null,He(n.notifications,(i,a)=>(M(),F("div",{key:a},[g("small",{class:"d-flex justify-content-end mt-3",title:e.fmtAbsoluteDate(i.time)},B(e.fmtTimeAgo(i.time-new Date)),9,xb),g("p",Lb,[g("shopicon-regular-exclamationtriangle",{class:Me([{"text-danger":i.type==="error","text-warning":i.type==="warn"},"flex-grow-0 flex-shrink-0 d-block"])},null,2),g("span",Mb,B(i.message),1),i.count>1?(M(),F("span",Nb,B(i.count),1)):ye("",!0)])]))),128))]),g("div",$b,[g("button",{type:"button","data-bs-dismiss":"modal","aria-label":"Close",class:"btn btn-outline-secondary",onClick:t[0]||(t[0]=(...i)=>s.clear&&s.clear(...i))},B(e.$t("notifications.dismissAll")),1)])])])])])}const Ob=fe(vb,[["render",Ib]]);var Pb='';class kb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Pb}}window.customElements.define("shopicon-filled-square",kb);var Rb='';class Db extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Rb}}window.customElements.define("shopicon-regular-batteryfull",Db);var Fb='';class qb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Fb}}window.customElements.define("shopicon-regular-batterythreequarters",qb);var Vb='';class Hb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Vb}}window.customElements.define("shopicon-regular-batteryhalf",Hb);var Bb='';class Ub extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Bb}}window.customElements.define("shopicon-regular-batteryquarter",Ub);var jb='';class Qb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=jb}}window.customElements.define("shopicon-regular-batteryempty",Qb);const Wb={name:"BatteryIcon",props:{soc:{type:Number,default:0}},computed:{icon:function(){return this.soc>80?"batteryfull":this.soc>60?"batterythreequarters":this.soc>40?"batteryhalf":this.soc>20?"batteryquarter":"batteryempty"}}};function zb(e,t,n,r,o,s){return M(),be(Gs(`shopicon-regular-${s.icon}`))}const Kd=fe(Wb,[["render",zb]]),Kb={name:"LabelBar",props:{value:{type:Number,default:0},hideIcon:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},first:{type:Boolean},last:{type:Boolean}}},Yb={class:"label-bar-scale"},Zb={class:"label-bar-icon"};function Gb(e,t,n,r,o,s){return M(),F("div",{class:Me(["label-bar",{"label-bar--hide-icon":n.hideIcon,"label-bar--hidden":!n.value,"label-bar--top":n.top,"label-bar--bottom":n.bottom,"label-bar--first":n.first,"label-bar--last":n.last}])},[g("div",Yb,[g("div",Zb,[Xs(e.$slots,"default",{},void 0,!0)])])],2)}const Xb=fe(Kb,[["render",Gb],["__scopeId","data-v-07ec7375"]]);var Li=globalThis&&globalThis.__assign||function(){return(Li=Object.assign||function(e){for(var t,n=1,r=arguments.length;no.endVal;o.frameVal=a?o.endVal:o.frameVal,o.frameVal=Number(o.frameVal.toFixed(o.options.decimalPlaces)),o.printValue(o.frameVal),i1?o.options.decimal+f[1]:"",o.options.useGrouping){c="";for(var h=0,p=a.length;hwindow.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):window.scrollY>o&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n=this.formattingFn(t);this.el.tagName==="INPUT"?this.el.value=n:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=n:this.el.innerHTML=n},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const e5=.5,t5={name:"AnimatedNumber",props:{to:{type:Number},format:{type:Function,required:!0},duration:{type:Number,default:e5}},data(){return{instance:null}},watch:{to(e){var t;(t=this.instance)==null||t.update(e)}},mounted(){this.instance||(this.instance=new Jb(this.$el,this.to,{startVal:this.to,formattingFn:this.format,duration:this.duration,decimalPlaces:2}),this.instance.error&&console.error(this.instance.error))},unmounted(){this.instance=null}};function n5(e,t,n,r,o,s){return M(),F("span")}const kn=fe(t5,[["render",n5]]);var r5='';class s5 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=r5}}window.customElements.define("shopicon-regular-car3",s5);const o5={name:"1"},i5={width:"1em",height:"1em",viewBox:"0 0 24 24"},a5=g("path",{fill:"currentColor",d:"M15 15q.425 0 .713-.288Q16 14.425 16 14V6q0-.425-.287-.713Q15.425 5 15 5h-2.025q-.425 0-.7.287Q12 5.575 12 6t.288.713Q12.575 7 13 7h1v7.025q0 .425.288.7q.287.275.712.275Zm-7 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),l5=[a5];function c5(e,t,n,r,o,s){return M(),F("svg",i5,l5)}const u5=fe(o5,[["render",c5]]),f5={name:"2"},d5={width:"1em",height:"1em",viewBox:"0 0 24 24"},h5=g("path",{fill:"currentColor",d:"M12 15h4.025q.425 0 .7-.288Q17 14.425 17 14t-.288-.713Q16.425 13 16 13h-3v-2h2q.825 0 1.413-.588Q17 9.825 17 9V7q0-.825-.587-1.412Q15.825 5 15 5h-3.025q-.425 0-.7.287Q11 5.575 11 6t.288.713Q11.575 7 12 7h3v2h-2q-.825 0-1.412.587Q11 10.175 11 11v3q0 .425.288.712q.287.288.712.288Zm-4 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),m5=[h5];function p5(e,t,n,r,o,s){return M(),F("svg",d5,m5)}const g5=fe(f5,[["render",p5]]),_5={name:"3"},v5={width:"1em",height:"1em",viewBox:"0 0 24 24"},b5=g("path",{fill:"currentColor",d:"M12 15h3q.825 0 1.413-.588Q17 13.825 17 13v-1.5q0-.65-.425-1.075Q16.15 10 15.5 10q.65 0 1.075-.425Q17 9.15 17 8.5V7q0-.825-.587-1.412Q15.825 5 15 5h-3.025q-.425 0-.7.287Q11 5.575 11 6t.288.713Q11.575 7 12 7h3v2h-1.025q-.425 0-.7.287Q13 9.575 13 10t.288.712Q13.575 11 14 11h1v2h-3.025q-.425 0-.7.287Q11 13.575 11 14t.288.712Q11.575 15 12 15Zm-4 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),y5=[b5];function w5(e,t,n,r,o,s){return M(),F("svg",v5,y5)}const E5=fe(_5,[["render",w5]]),T5={name:"4"},S5={width:"1em",height:"1em",viewBox:"0 0 24 24"},C5=g("path",{fill:"currentColor",d:"M16 15q.425 0 .712-.288Q17 14.425 17 14V5.975q0-.425-.288-.7Q16.425 5 16 5t-.712.287Q15 5.575 15 6v3h-2V5.975q0-.425-.287-.7Q12.425 5 12 5t-.712.287Q11 5.575 11 6v4q0 .425.288.712q.287.288.712.288h3v3.025q0 .425.288.7q.287.275.712.275Zm-8 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),A5=[C5];function x5(e,t,n,r,o,s){return M(),F("svg",S5,A5)}const L5=fe(T5,[["render",x5]]),M5={name:"5"},N5={width:"1em",height:"1em",viewBox:"0 0 24 24"},$5=g("path",{fill:"currentColor",d:"M12 15h3q.825 0 1.413-.588Q17 13.825 17 13v-2q0-.825-.587-1.413Q15.825 9 15 9h-2V7h3.025q.425 0 .7-.287Q17 6.425 17 6t-.288-.713Q16.425 5 16 5h-4q-.425 0-.712.287Q11 5.575 11 6v4q0 .425.288.712q.287.288.712.288h3v2h-3.025q-.425 0-.7.287Q11 13.575 11 14t.288.712Q11.575 15 12 15Zm-4 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),I5=[$5];function O5(e,t,n,r,o,s){return M(),F("svg",N5,I5)}const P5=fe(M5,[["render",O5]]),k5={name:"6"},R5={width:"1em",height:"1em",viewBox:"0 0 24 24"},D5=g("path",{fill:"currentColor",d:"M4 22q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22Zm4-4q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12ZM8 4v12V4Zm5 5V7h2.025q.425 0 .7-.287Q16 6.425 16 6t-.287-.713Q15.425 5 15 5h-2q-.825 0-1.412.588Q11 6.175 11 7v6q0 .825.588 1.412Q12.175 15 13 15h2q.825 0 1.413-.588Q17 13.825 17 13v-2q0-.825-.587-1.413Q15.825 9 15 9Zm0 2h2v2h-2Z"},null,-1),F5=[D5];function q5(e,t,n,r,o,s){return M(),F("svg",R5,F5)}const V5=fe(k5,[["render",q5]]),H5={name:"7"},B5={width:"1em",height:"1em",viewBox:"0 0 24 24"},U5=g("path",{fill:"currentColor",d:"m15 7l-3.325 6.65q-.225.475 0 .912q.225.438.725.438q.25 0 .463-.125q.212-.125.337-.35l3.625-7.175q.075-.15.125-.363q.05-.212.05-.387q0-.65-.413-1.125Q16.175 5 15.525 5h-3.55q-.425 0-.7.287Q11 5.575 11 6t.288.713Q11.575 7 12 7ZM8 18q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22Zm4-6V4v12Z"},null,-1),j5=[U5];function Q5(e,t,n,r,o,s){return M(),F("svg",B5,j5)}const W5=fe(H5,[["render",Q5]]),z5={name:"8"},K5={width:"1em",height:"1em",viewBox:"0 0 24 24"},Y5=g("path",{fill:"currentColor",d:"M13 15h2q.825 0 1.413-.588Q17 13.825 17 13v-1.5q0-.65-.425-1.075Q16.15 10 15.5 10q.65 0 1.075-.425Q17 9.15 17 8.5V7q0-.825-.587-1.412Q15.825 5 15 5h-2q-.825 0-1.412.588Q11 6.175 11 7v1.5q0 .65.425 1.075Q11.85 10 12.5 10q-.65 0-1.075.425Q11 10.85 11 11.5V13q0 .825.588 1.412Q12.175 15 13 15Zm0-8h2v2h-2V7Zm0 6v-2h2v2Zm-5 5q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),Z5=[Y5];function G5(e,t,n,r,o,s){return M(),F("svg",K5,Z5)}const X5=fe(z5,[["render",G5]]),J5={name:"9"},ey={width:"1em",height:"1em",viewBox:"0 0 24 24"},ty=g("path",{fill:"currentColor",d:"M13 15h2q.825 0 1.413-.588Q17 13.825 17 13V7q0-.825-.587-1.412Q15.825 5 15 5h-2q-.825 0-1.412.588Q11 6.175 11 7v2q0 .825.588 1.412Q12.175 11 13 11h2v2h-2.025q-.425 0-.7.287Q12 13.575 12 14t.288.712Q12.575 15 13 15Zm2-6h-2V7h2Zm-7 9q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),ny=[ty];function ry(e,t,n,r,o,s){return M(),F("svg",ey,ny)}const sy=fe(J5,[["render",ry]]),oy={name:"Plus"},iy={width:"1em",height:"1em",viewBox:"0 0 24 24"},ay=g("path",{fill:"currentColor",d:"M10.975 14H12q.825 0 1.413-.588Q14 12.825 14 12V8q0-.825-.587-1.412Q12.825 6 12 6h-1q-.825 0-1.412.588Q9 7.175 9 8v1q0 .825.588 1.412Q10.175 11 11 11h1v1h-1.025q-.425 0-.7.287Q10 12.575 10 13t.288.712q.287.288.687.288ZM12 9h-1V8h1Zm4.15 2v.875q0 .425.288.7q.287.275.712.275t.713-.288q.287-.287.287-.687V11h.875q.425 0 .7-.288Q20 10.425 20 10t-.288-.713Q19.425 9 19.025 9h-.875v-.875q0-.425-.287-.7q-.288-.275-.713-.275t-.712.287q-.288.288-.288.688V9h-.875q-.425 0-.7.287q-.275.288-.275.713t.288.712q.287.288.687.288ZM8 18q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),ly=[ay];function cy(e,t,n,r,o,s){return M(),F("svg",iy,ly)}const uy=fe(oy,[["render",cy]]),fy={_1:u5,_2:g5,_3:E5,_4:L5,_5:P5,_6:V5,_7:W5,_8:X5,_9:sy},dy={name:"MultiIcon",props:{count:{type:Number},size:{type:String,default:"s"}},computed:{icon:function(){return this.count>9?uy:fy[`_${this.count}`]}}};function hy(e,t,n,r,o,s){return M(),be(Gs(s.icon),{class:Me(`icon icon--${n.size}`)},null,8,["class"])}const my=fe(dy,[["render",hy],["__scopeId","data-v-983060d3"]]),py={name:"Bike"},gy={width:"1em",height:"1em",viewBox:"0 0 24 24"},_y=g("path",{fill:"currentColor",d:"M5 20q-2.125 0-3.562-1.438Q0 17.125 0 15t1.463-3.562Q2.925 10 5 10q1.925 0 3.238 1.15Q9.55 12.3 9.9 14h.65l-1.8-5H8q-.425 0-.713-.288Q7 8.425 7 8t.287-.713Q7.575 7 8 7h3q.425 0 .713.287Q12 7.575 12 8t-.287.712Q11.425 9 11 9h-.1l.35 1h4.8L14.6 6H13q-.425 0-.712-.287Q12 5.425 12 5t.288-.713Q12.575 4 13 4h1.6q.65 0 1.163.35q.512.35.737.95l1.7 4.65h.8q2.075 0 3.538 1.462Q24 12.875 24 14.95q0 2.1-1.45 3.575T19 20q-1.8 0-3.162-1.125Q14.475 17.75 14.1 16H9.9q-.35 1.725-1.7 2.863Q6.85 20 5 20Zm0-2q1.025 0 1.763-.562Q7.5 16.875 7.8 16H6q-.425 0-.713-.288Q5 15.425 5 15t.287-.713Q5.575 14 6 14h1.8q-.3-.9-1.037-1.45Q6.025 12 5 12q-1.275 0-2.138.863Q2 13.725 2 15q0 1.25.862 2.125Q3.725 18 5 18Zm7.7-4h1.4q.125-.575.338-1.075q.212-.5.562-.925h-3.05Zm6.3 4q1.275 0 2.138-.875Q22 16.25 22 15q0-1.275-.862-2.137Q20.275 12 19 12h-.1l.65 1.7q.15.4-.037.762q-.188.363-.563.538q-.4.175-.775-.013q-.375-.187-.525-.587l-.6-1.7q-.5.425-.775 1T16 15q0 1.25.863 2.125Q17.725 18 19 18Z"},null,-1),vy=[_y];function by(e,t,n,r,o,s){return M(),F("svg",gy,vy)}const yy=fe(py,[["render",by]]),wy={name:"Bus"},Ey={width:"1em",height:"1em",viewBox:"0 0 24 24"},Ty=g("path",{fill:"currentColor",d:"M6.5 21q-.625 0-1.062-.438Q5 20.125 5 19.5v-1.55q-.45-.5-.725-1.113Q4 16.225 4 15.5V6q0-2.075 1.925-3.038Q7.85 2 12 2q4.3 0 6.15.925Q20 3.85 20 6v9.5q0 .725-.275 1.337q-.275.613-.725 1.113v1.55q0 .625-.438 1.062Q18.125 21 17.5 21t-1.062-.438Q16 20.125 16 19.5V19H8v.5q0 .625-.438 1.062Q7.125 21 6.5 21Zm5.55-16h5.6h-11.2h5.6ZM16 12H6h12h-2ZM6 10h12V7H6Zm2.5 6q.625 0 1.062-.438Q10 15.125 10 14.5t-.438-1.062Q9.125 13 8.5 13t-1.062.438Q7 13.875 7 14.5t.438 1.062Q7.875 16 8.5 16Zm7 0q.625 0 1.062-.438Q17 15.125 17 14.5t-.438-1.062Q16.125 13 15.5 13t-1.062.438Q14 13.875 14 14.5t.438 1.062Q14.875 16 15.5 16ZM6.45 5h11.2q-.375-.425-1.612-.713Q14.8 4 12.05 4q-2.675 0-3.913.312Q6.9 4.625 6.45 5ZM8 17h8q.825 0 1.413-.587Q18 15.825 18 15v-3H6v3q0 .825.588 1.413Q7.175 17 8 17Z"},null,-1),Sy=[Ty];function Cy(e,t,n,r,o,s){return M(),F("svg",Ey,Sy)}const Ay=fe(wy,[["render",Cy]]),xy={name:"Cooler"},Ly={width:"1em",height:"1em",viewBox:"0 0 24 24"},My=g("path",{fill:"currentColor",d:"m11 17.85l-2.575 2.525q-.275.275-.687.275q-.413 0-.688-.3q-.3-.275-.3-.687q0-.413.3-.713L11 15v-2H9l-3.975 3.975q-.275.275-.687.275q-.413 0-.713-.3q-.275-.275-.275-.688q0-.412.275-.687L6.15 13H2.975q-.425 0-.7-.288Q2 12.425 2 12t.288-.713Q2.575 11 3 11h3.15L3.625 8.45q-.275-.275-.275-.688q0-.412.3-.712q.275-.275.688-.275q.412 0 .712.275L9 11h2V9L7.025 5.05q-.275-.275-.275-.688q0-.412.3-.712q.275-.275.688-.275q.412 0 .687.275L11 6.15V3q0-.425.288-.713Q11.575 2 12 2t.713.287Q13 2.575 13 3v3.15l2.55-2.5q.275-.275.688-.275q.412 0 .712.275q.275.3.275.712q0 .413-.275.688L13 9v2h2l3.95-3.95q.275-.275.688-.275q.412 0 .712.3q.275.275.275.687q0 .413-.275.688L17.85 11H21q.425 0 .712.287q.288.288.288.713t-.288.712Q21.425 13 21 13h-3.15l2.5 2.575q.275.275.275.687q0 .413-.275.688q-.3.3-.712.3q-.413 0-.688-.3L15 13h-2v2l3.95 3.975q.275.275.275.688q0 .412-.3.712q-.275.275-.687.275q-.413 0-.688-.275L13 17.85v3.175q0 .425-.287.7Q12.425 22 12 22t-.712-.288Q11 21.425 11 21Z"},null,-1),Ny=[My];function $y(e,t,n,r,o,s){return M(),F("svg",Ly,Ny)}const Iy=fe(xy,[["render",$y]]),Oy={name:"Plug"},Py={width:"1em",height:"1em",viewBox:"0 0 24 24"},ky=g("path",{fill:"currentColor",d:"M18 15v-2h2q.425 0 .712.287q.288.288.288.713t-.288.712Q20.425 15 20 15Zm0 4v-2h2q.425 0 .712.288q.288.287.288.712t-.288.712Q20.425 19 20 19Zm-4 1q-.825 0-1.412-.587Q12 18.825 12 18h-2v-4h2q0-.825.588-1.413Q13.175 12 14 12h2q.425 0 .712.287q.288.288.288.713v6q0 .425-.288.712Q16.425 20 16 20Zm-7-3q-1.65 0-2.825-1.175Q3 14.65 3 13q0-1.65 1.175-2.825Q5.35 9 7 9h1.5q.625 0 1.062-.438Q10 8.125 10 7.5t-.438-1.062Q9.125 6 8.5 6H5q-.425 0-.713-.287Q4 5.425 4 5t.287-.713Q4.575 4 5 4h3.5q1.45 0 2.475 1.025Q12 6.05 12 7.5q0 1.45-1.025 2.475Q9.95 11 8.5 11H7q-.825 0-1.412.587Q5 12.175 5 13q0 .825.588 1.412Q6.175 15 7 15h2v2Z"},null,-1),Ry=[ky];function Dy(e,t,n,r,o,s){return M(),F("svg",Py,Ry)}const Fy=fe(Oy,[["render",Dy]]),qy={name:"Heater"},Vy={width:"1em",height:"1em",viewBox:"0 0 24 24"},Hy=g("path",{fill:"currentColor",d:"M12 22q-3.35 0-5.675-2.325Q4 17.35 4 14q0-2.825 1.675-5.425q1.675-2.6 4.6-4.55q.55-.375 1.138-.038Q12 4.325 12 5v1.3q0 .85.588 1.425q.587.575 1.437.575q.425 0 .813-.187q.387-.188.687-.538q.2-.25.513-.313q.312-.062.587.138Q18.2 8.525 19.1 10.275q.9 1.75.9 3.725q0 3.35-2.325 5.675Q15.35 22 12 22Zm-6-8q0 1.3.525 2.462q.525 1.163 1.5 2.038Q8 18.375 8 18.275v-.225q0-.8.3-1.5t.875-1.275L12 12.5l2.825 2.775q.575.575.875 1.275q.3.7.3 1.5v.225q0 .1-.025.225q.975-.875 1.5-2.038Q18 15.3 18 14q0-1.25-.462-2.363q-.463-1.112-1.338-1.987q-.5.325-1.05.487q-.55.163-1.125.163q-1.55 0-2.687-1.025Q10.2 8.25 10.025 6.75q-1.95 1.65-2.987 3.512Q6 12.125 6 14Zm6 1.3l-1.425 1.4q-.275.275-.425.625q-.15.35-.15.725q0 .8.588 1.375Q11.175 20 12 20t1.413-.575Q14 18.85 14 18.05q0-.4-.15-.738q-.15-.337-.425-.612Z"},null,-1),By=[Hy];function Uy(e,t,n,r,o,s){return M(),F("svg",Vy,By)}const jy=fe(qy,[["render",Uy]]),Qy={name:"Moped"},Wy={width:"1em",height:"1em",viewBox:"0 0 24 24"},zy=g("path",{fill:"currentColor",d:"M7 17q-1.25 0-2.125-.875T4 14H3q-.425 0-.712-.288Q2 13.425 2 13v-2q0-1.65 1.175-2.825Q4.35 7 6 7h3q.425 0 .713.287Q10 7.575 10 8v4h3.5L17 7.65V5h-2q-.425 0-.712-.288Q14 4.425 14 4t.288-.713Q14.575 3 15 3h2q.825 0 1.413.587Q19 4.175 19 5v2.65q0 .35-.112.662q-.113.313-.313.588L15.1 13.25q-.275.35-.7.55q-.425.2-.875.2H10q0 1.25-.875 2.125T7 17Zm1-5Zm-1 3q.425 0 .713-.288Q8 14.425 8 14H6q0 .425.287.712Q6.575 15 7 15ZM6 6q-.425 0-.713-.287Q5 5.425 5 5t.287-.713Q5.575 4 6 4h3q.425 0 .713.287Q10 4.575 10 5t-.287.713Q9.425 6 9 6Zm13 11q-1.25 0-2.125-.875T16 14q0-1.25.875-2.125T19 11q1.25 0 2.125.875T22 14q0 1.25-.875 2.125T19 17Zm0-2q.425 0 .712-.288Q20 14.425 20 14t-.288-.713Q19.425 13 19 13t-.712.287Q18 13.575 18 14t.288.712Q18.575 15 19 15Zm-6 8l-6-3h4v-2l6 3h-4ZM4 12h4V9H6q-.825 0-1.412.587Q4 10.175 4 11Z"},null,-1),Ky=[zy];function Yy(e,t,n,r,o,s){return M(),F("svg",Wy,Ky)}const Zy=fe(Qy,[["render",Yy]]),Gy={name:"Motorcycle"},Xy={width:"1em",height:"1em",viewBox:"0 0 24 24"},Jy=g("path",{fill:"currentColor",d:"M5 19q-2.075 0-3.537-1.462Q0 16.075 0 14q0-2.075 1.463-3.538Q2.925 9 5 9h11.6l-2-2H12q-.425 0-.712-.287Q11 6.425 11 6t.288-.713Q11.575 5 12 5h2.975q.2 0 .388.075q.187.075.337.225l3.75 3.75q1.95.15 3.25 1.575T24 14q0 2.075-1.462 3.538Q21.075 19 19 19q-2.075 0-3.537-1.462Q14 16.075 14 14q0-.45.062-.888q.063-.437.238-.862l-2.175 2.175q-.275.275-.637.425q-.363.15-.763.15H9.9q-.35 1.75-1.725 2.875T5 19Zm14-2q1.25 0 2.125-.875T22 14q0-1.25-.875-2.125T19 11q-1.25 0-2.125.875T16 14q0 1.25.875 2.125T19 17ZM5 17q.95 0 1.713-.55Q7.475 15.9 7.8 15H6q-.425 0-.713-.288Q5 14.425 5 14t.287-.713Q5.575 13 6 13h1.8q-.325-.9-1.087-1.45Q5.95 11 5 11q-1.25 0-2.125.875T2 14q0 1.25.875 2.125T5 17Zm4.95-4h.75l2-2H8.95q.375.425.625.925T9.95 13Zm0-2h-1h3.75h-2Z"},null,-1),e8=[Jy];function t8(e,t,n,r,o,s){return M(),F("svg",Xy,e8)}const n8=fe(Gy,[["render",t8]]),r8={name:"Scooter"},s8={width:"1em",height:"1em",viewBox:"0 0 24 24"},o8=g("path",{fill:"currentColor",d:"M5 18q-1.25 0-2.125-.875T2 15q0-1.25.875-2.125T5 12q.975 0 1.738.562Q7.5 13.125 7.8 14h5.3q.275-1.7 1.412-2.975Q15.65 9.75 17.3 9.25L15.9 3H13q-.425 0-.712-.288Q12 2.425 12 2t.288-.713Q12.575 1 13 1h2.9q.675 0 1.237.438q.563.437.713 1.112l1.9 8.45H19q-1.65 0-2.825 1.175Q15 13.35 15 15v1H7.8q-.3.875-1.062 1.438Q5.975 18 5 18Zm0-2q.425 0 .713-.288Q6 15.425 6 15t-.287-.713Q5.425 14 5 14t-.713.287Q4 14.575 4 15t.287.712Q4.575 16 5 16Zm14 2q-1.25 0-2.125-.875T16 15q0-1.25.875-2.125T19 12q1.25 0 2.125.875T22 15q0 1.25-.875 2.125T19 18Zm0-2q.425 0 .712-.288Q20 15.425 20 15t-.288-.713Q19.425 14 19 14t-.712.287Q18 14.575 18 15t.288.712Q18.575 16 19 16Zm-6 7l-6-3h4v-2l6 3h-4Zm-8-8Zm14 0Z"},null,-1),i8=[o8];function a8(e,t,n,r,o,s){return M(),F("svg",s8,i8)}const l8=fe(r8,[["render",a8]]),c8={name:"Tractor"},u8={width:"1em",height:"1em",viewBox:"0 0 24 24"},f8=g("path",{fill:"currentColor",d:"M4 9q-.425 0-.712-.288Q3 8.425 3 8t.288-.713Q3.575 7 4 7h3q.825 0 1.412.587Q9 8.175 9 9Zm2 9q1.25 0 2.125-.875T9 15q0-1.25-.875-2.125T6 12q-1.25 0-2.125.875T3 15q0 1.25.875 2.125T6 18Zm13.5 0q.625 0 1.062-.438Q21 17.125 21 16.5t-.438-1.062Q20.125 15 19.5 15t-1.062.438Q18 15.875 18 16.5t.438 1.062Q18.875 18 19.5 18ZM6 16.5q-.625 0-1.062-.438Q4.5 15.625 4.5 15t.438-1.062Q5.375 13.5 6 13.5t1.062.438Q7.5 14.375 7.5 15t-.438 1.062Q6.625 16.5 6 16.5Zm14-3.475q.65.125 1.075.337q.425.213.925.688V8q0-.825-.587-1.412Q20.825 6 20 6h-6.3l-1.05-1.1l1.05-1.05q.15-.15.15-.35q0-.2-.15-.35q-.15-.15-.35-.15q-.2 0-.35.15l-2.825 2.825q-.15.15-.15.363q0 .212.175.362q.15.15.35.15q.2 0 .35-.15l1.05-1.05L13 6.7V9q0 .825-.587 1.412Q11.825 11 11 11H8.975q.575.425.925.875q.35.45.7 1.125h.4q1.65 0 2.825-1.175Q15 10.65 15 9V8h5ZM16.025 16q.15-.675.363-1.088q.212-.412.662-.912H10.9q.1.575.1 1q0 .425-.1 1Zm3.475 4q-1.45 0-2.475-1.025Q16 17.95 16 16.5q0-1.45 1.025-2.475Q18.05 13 19.5 13q1.45 0 2.475 1.025Q23 15.05 23 16.5q0 1.45-1.025 2.475Q20.95 20 19.5 20ZM6 20q-2.075 0-3.537-1.462Q1 17.075 1 15q0-2.075 1.463-3.538Q3.925 10 6 10t3.538 1.462Q11 12.925 11 15q0 2.075-1.462 3.538Q8.075 20 6 20Zm9.825-9Z"},null,-1),d8=[f8];function h8(e,t,n,r,o,s){return M(),F("svg",u8,d8)}const m8=fe(c8,[["render",h8]]),p8={name:"Van"},g8={width:"1em",height:"1em",viewBox:"0 0 24 24"},_8=g("path",{fill:"currentColor",d:"M6 20q-1.25 0-2.125-.875T3 17q-.825 0-1.412-.587Q1 15.825 1 15V6q0-.825.588-1.412Q2.175 4 3 4h12q.825 0 1.413.588Q17 5.175 17 6v2h2.5q.25 0 .45.1t.35.3l2.5 3.325q.1.125.15.275q.05.15.05.325V16q0 .425-.288.712Q22.425 17 22 17h-1q0 1.25-.875 2.125T18 20q-1.25 0-2.125-.875T15 17H9q0 1.25-.875 2.125T6 20Zm0-2q.425 0 .713-.288Q7 17.425 7 17t-.287-.712Q6.425 16 6 16t-.713.288Q5 16.575 5 17t.287.712Q5.575 18 6 18ZM3 6v9h.8q.425-.45.975-.725Q5.325 14 6 14t1.225.275q.55.275.975.725H15V6H3Zm15 12q.425 0 .712-.288Q19 17.425 19 17t-.288-.712Q18.425 16 18 16t-.712.288Q17 16.575 17 17t.288.712Q17.575 18 18 18Zm-1-5h4.25L19 10h-2Zm-8-2.5Z"},null,-1),v8=[_8];function b8(e,t,n,r,o,s){return M(),F("svg",g8,v8)}const y8=fe(p8,[["render",b8]]),w8={name:"WaterHeater"},E8={width:"1em",height:"1em",viewBox:"0 0 24 24"},T8=g("path",{fill:"currentColor",d:"M6 22q-.825 0-1.412-.587Q4 20.825 4 20V6q0-1.65 1.175-2.825Q6.35 2 8 2h8q1.65 0 2.825 1.175Q20 4.35 20 6v14q0 .825-.587 1.413Q18.825 22 18 22Zm0-4v2h12v-2q-.75 0-1.2.5q-.45.5-1.8.5t-1.762-.5Q12.825 18 12 18t-1.237.5Q10.35 19 9 19q-1.35 0-1.762-.5Q6.825 18 6 18Zm3-1q.825 0 1.238-.5Q10.65 16 12 16t1.8.5q.45.5 1.2.5t1.2-.5q.45-.5 1.8-.5V6q0-.825-.587-1.412Q16.825 4 16 4H8q-.825 0-1.412.588Q6 5.175 6 6v10q1.35 0 1.763.5q.412.5 1.237.5Zm3.125-2.05q-1.65 0-2.875-1.088q-1.225-1.087-1.225-2.787q0-.575.163-1.188q.162-.612.587-1.212q.075-.125.213-.2q.137-.075.312-.075q.1 0 .15.062q.05.063.05.138q-.025.15-.037.287q-.013.138-.013.263q0 .75.313 1.312q.312.563.562.563q.15 0 .213-.1q.062-.1.062-.225t-.05-.288L10.425 10q-.05-.2-.1-.488q-.05-.287-.05-.662q0-1.35.612-2.313q.613-.962 1.738-1.462q.1-.05.138-.063Q12.8 5 12.875 5q.075 0 .113.05q.037.05.012.125q-.1.275-.137.487q-.038.213-.038.488q0 .8.438 1.425q.437.625 1.162 1.125q.775.525 1.125 1.288q.35.762.35 1.562q0 1.275-1 2.337q-1 1.063-2.775 1.063Zm.125-1.675q.7 0 1.175-.5q.475-.5.475-1.175q0-.4-.212-.713q-.213-.312-.513-.562q-.3-.25-.5-.5t-.3-.525q-.25.225-.3.512q-.05.288.025.688q.05.275.075.512q.025.238.025.438q0 .5-.325.9t-.775.475q.2.2.538.325q.337.125.612.125ZM12 12Z"},null,-1),S8=[T8];function C8(e,t,n,r,o,s){return M(),F("svg",E8,S8)}const A8=fe(w8,[["render",C8]]),x8={bike:yy,bus:Ay,car:"shopicon-regular-car3",cooler:Iy,generic:Fy,heater:jy,moped:Zy,motorcycle:n8,scooter:l8,tractor:m8,van:y8,waterheater:A8},L8={name:"VehicleIcon",components:{MultiIcon:my},props:{name:{type:String,default:"car"},names:{type:Array},size:{type:String,default:"s"}},computed:{uniqueNames:function(){return[...new Set(this.names||[this.name])]},count:function(){return this.names.length},single:function(){return this.uniqueNames.length==1},singleIcon:function(){return x8[this.uniqueNames[0]]||"shopicon-regular-car3"}}};function M8(e,t,n,r,o,s){const i=de("MultiIcon");return s.single?(M(),be(Gs(s.singleIcon),{key:0,class:Me(`icon icon--${n.size}`)},null,8,["class"])):(M(),be(i,{key:1,count:s.count,size:n.size},null,8,["count","size"]))}const Ra=fe(L8,[["render",M8],["__scopeId","data-v-af1c6f18"]]);var N8='';class $8 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=N8}}window.customElements.define("shopicon-regular-sun",$8);var I8='';class O8 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=I8}}window.customElements.define("shopicon-regular-home",O8);const P8={name:"Visualization",components:{BatteryIcon:Kd,LabelBar:Xb,AnimatedNumber:kn,VehicleIcon:Ra},mixins:[dt],props:{gridImport:{type:Number,default:0},selfConsumption:{type:Number,default:0},pvExport:{type:Number,default:0},loadpoints:{type:Number,default:0},batteryCharge:{type:Number,default:0},batteryDischarge:{type:Number,default:0},pvProduction:{type:Number,default:0},homePower:{type:Number,default:0},batterySoc:{type:Number,default:0},valuesInKw:{type:Boolean,default:!1},vehicleIcons:{type:Array}},data:function(){return{width:0,visualizationReady:!1}},computed:{gridExport:function(){return this.applyThreshold(this.pvExport)},totalRaw:function(){return this.gridImport+this.selfConsumption+this.pvExport},gridImportAdjusted:function(){return this.applyThreshold(this.gridImport)},selfConsumptionAdjusted:function(){return this.applyThreshold(this.selfConsumption)},pvExportAdjusted:function(){return this.applyThreshold(this.pvExport)},totalAdjusted:function(){return this.gridImportAdjusted+this.selfConsumptionAdjusted+this.pvExportAdjusted}},watch:{totalAdjusted:function(){!this.visualizationReady&&this.totalAdjusted>0&&setTimeout(()=>{this.visualizationReady=!0},500)}},mounted:function(){this.$nextTick(function(){window.addEventListener("resize",this.updateElementWidth),this.updateElementWidth()})},beforeUnmount(){window.removeEventListener("resize",this.updateElementWidth)},methods:{widthTotal:function(e){return this.totalAdjusted===0?"0%":100/this.totalAdjusted*e+"%"},fmtBarValue:function(e){const t=this.powerLabelEnoughSpace(e);return this.fmtKw(e,this.valuesInKw,t)},powerLabelAvailableSpace(e){if(this.totalAdjusted===0)return 0;const t=100/this.totalAdjusted*e;return this.width/100*t},powerLabelEnoughSpace(e){return this.powerLabelAvailableSpace(e)>60},powerLabelSomeSpace(e){return this.powerLabelAvailableSpace(e)>35},hideLabelIcon(e,t=32){if(this.totalAdjusted===0)return!0;const n=100/this.totalAdjusted*e;return this.width/100*n(tt("data-v-7c8608db"),e=e(),nt(),e),k8={class:"label-scale d-flex"},R8={class:"d-flex justify-content-start flex-grow-1"},D8=pr(()=>g("shopicon-regular-sun",null,null,-1)),F8=pr(()=>g("shopicon-regular-powersupply",null,null,-1)),q8=pr(()=>g("div",{class:"label-scale-name"},"In",-1)),V8={ref:"site_progress",class:"site-progress"},H8={key:0,class:"site-progress-bar bg-light border no-wrap w-100 text-dark"},B8={class:"label-scale d-flex"},U8={class:"d-flex justify-content-start flex-grow-1"},j8=pr(()=>g("shopicon-regular-home",null,null,-1)),Q8=pr(()=>g("shopicon-regular-powersupply",null,null,-1)),W8=pr(()=>g("div",{class:"label-scale-name"},"Out",-1));function z8(e,t,n,r,o,s){const i=de("LabelBar"),a=de("BatteryIcon"),l=de("AnimatedNumber"),c=de("VehicleIcon");return M(),F("div",{class:Me(["visualization",{"visualization--ready":e.visualizationReady}])},[g("div",k8,[g("div",R8,[re(i,St(yt(s.labelBarProps("top","pvProduction"))),{default:Ve(()=>[D8]),_:1},16),re(i,St(yt(s.labelBarProps("top","batteryDischarge"))),{default:Ve(()=>[re(a,{soc:n.batterySoc},null,8,["soc"])]),_:1},16),re(i,St(yt(s.labelBarProps("top","gridImport"))),{default:Ve(()=>[F8]),_:1},16)]),q8]),g("div",V8,[g("div",{class:"site-progress-bar self-consumption",style:ft({width:s.widthTotal(s.selfConsumptionAdjusted)})},[n.selfConsumption?(M(),be(l,{key:0,class:"power",to:n.selfConsumption,format:s.fmtBarValue},null,8,["to","format"])):ye("",!0)],4),g("div",{class:"site-progress-bar grid-import",style:ft({width:s.widthTotal(s.gridImportAdjusted)})},[n.gridImport?(M(),be(l,{key:0,class:"power",to:n.gridImport,format:s.fmtBarValue},null,8,["to","format"])):ye("",!0)],4),g("div",{class:"site-progress-bar pv-export",style:ft({width:s.widthTotal(s.pvExportAdjusted)})},[n.pvExport?(M(),be(l,{key:0,class:"power",to:n.pvExport,format:s.fmtBarValue},null,8,["to","format"])):ye("",!0)],4),s.totalAdjusted<=0?(M(),F("div",H8,[g("span",null,B(e.$t("main.energyflow.noEnergy")),1)])):ye("",!0)],512),g("div",B8,[g("div",U8,[re(i,St(yt(s.labelBarProps("bottom","homePower"))),{default:Ve(()=>[j8]),_:1},16),re(i,St(yt(s.labelBarProps("bottom","loadpoints"))),{default:Ve(()=>[re(c,{names:n.vehicleIcons},null,8,["names"])]),_:1},16),re(i,St(yt(s.labelBarProps("bottom","batteryCharge"))),{default:Ve(()=>[re(a,{soc:n.batterySoc},null,8,["soc"])]),_:1},16),re(i,St(yt(s.labelBarProps("bottom","gridExport"))),{default:Ve(()=>[Q8]),_:1},16)]),W8])],2)}const K8=fe(P8,[["render",z8],["__scopeId","data-v-7c8608db"]]);var Y8='';class Z8 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Y8}}window.customElements.define("shopicon-regular-powersupply",Z8);const G8={name:"EnergyflowEntry",components:{BatteryIcon:Kd,AnimatedNumber:kn,VehicleIcon:Ra},mixins:[dt],props:{name:{type:String},icon:{type:String},power:{type:Number},soc:{type:Number},valuesInKw:{type:Boolean},vehicleIcons:{type:Array}},computed:{active:function(){return this.power>10},isBattery:function(){return this.icon==="battery"},isVehicle:function(){return this.icon==="vehicle"},hasSoc:function(){return this.isBattery&&!isNaN(this.soc)}},methods:{kw:function(e){return this.fmtKw(e,this.valuesInKw)}}},X8={class:"d-flex flex-nowrap"},J8={class:"text-nowrap flex-grow-1 ms-3"},e4={class:"text-end text-nowrap ps-1 fw-bold"},t4={key:0};function n4(e,t,n,r,o,s){const i=de("BatteryIcon"),a=de("VehicleIcon"),l=de("AnimatedNumber");return M(),F("div",{class:Me(["d-flex justify-content-between mb-2 entry",{"evcc-gray":!s.active}])},[g("span",X8,[s.isBattery?(M(),be(i,{key:0,soc:n.soc},null,8,["soc"])):s.isVehicle?(M(),be(a,{key:1,names:n.vehicleIcons},null,8,["names"])):(M(),be(Gs(`shopicon-regular-${n.icon}`),{key:2}))]),g("span",J8,B(n.name),1),g("span",e4,[s.hasSoc?(M(),F("span",t4,B(n.soc)+"% / ",1)):ye("",!0),re(l,{to:n.power,format:s.kw},null,8,["to","format"])])],2)}const r4=fe(G8,[["render",n4],["__scopeId","data-v-81902892"]]),s4={name:"Energyflow",components:{Visualization:K8,EnergyflowEntry:r4,AnimatedNumber:kn},mixins:[dt],props:{gridConfigured:Boolean,gridPower:{type:Number,default:0},homePower:{type:Number,default:0},pvConfigured:Boolean,pvPower:{type:Number,default:0},loadpointsPower:{type:Number,default:0},activeLoadpointsCount:{type:Number,default:0},batteryConfigured:Boolean,batteryPower:{type:Number,default:0},batterySoc:{type:Number,default:0},vehicleIcons:{type:Array}},data:()=>({detailsOpen:!1,detailsCompleteHeight:null}),computed:{gridImport:function(){return Math.max(0,this.gridPower)},pvProduction:function(){return Math.abs(this.pvPower)},batteryPowerAdjusted:function(){return Math.abs(this.batteryPower)<50?0:this.batteryPower},batteryDischarge:function(){return Math.abs(Math.max(0,this.batteryPowerAdjusted))},batteryCharge:function(){return Math.abs(Math.min(0,this.batteryPowerAdjusted)*-1)},selfConsumption:function(){const e=this.batteryDischarge+this.pvProduction,t=this.homePower+this.batteryCharge+this.loadpointsPower;return Math.min(e,t)},pvExport:function(){return Math.max(0,this.gridPower*-1)},valuesInKw:function(){return this.gridImport+this.selfConsumption+this.pvExport>1e3},inPower:function(){return this.gridImport+this.pvProduction+this.batteryDischarge},outPower:function(){return this.homePower+this.loadpointsPower+this.pvExport+this.batteryCharge},detailsHeight:function(){return this.detailsOpen?this.detailsCompleteHeight+"px":0}},mounted(){window.addEventListener("resize",this.updateHeight)},unmounted(){window.removeEventListener("resize",this.updateHeight)},methods:{kw:function(e){return this.fmtKw(e,this.valuesInKw)},toggleDetails:function(){this.updateHeight(),this.detailsOpen=!this.detailsOpen},updateHeight:function(){this.detailsCompleteHeight=this.$refs.detailsInner.offsetHeight}}},rs=e=>(tt("data-v-5feb2a53"),e=e(),nt(),e),o4={class:"row"},i4={ref:"detailsInner",class:"details-inner row"},a4={class:"col-12 d-flex justify-content-between pt-2 mb-4"},l4={class:"d-flex flex-nowrap align-items-center"},c4=rs(()=>g("span",{class:"color-self me-2"},[g("shopicon-filled-square")],-1)),u4={key:0,class:"d-flex flex-nowrap align-items-center"},f4=rs(()=>g("span",{class:"color-grid ms-2"},[g("shopicon-filled-square")],-1)),d4={key:1,class:"d-flex flex-nowrap align-items-center"},h4=rs(()=>g("span",{class:"color-export ms-2"},[g("shopicon-filled-square")],-1)),m4={class:"col-12 col-md-6 pe-md-5 pb-4 d-flex flex-column justify-content-between"},p4={class:"d-flex justify-content-between align-items-end mb-4"},g4=rs(()=>g("h3",{class:"m-0"},"In",-1)),_4={class:"fw-bold"},v4={class:"col-12 col-md-6 ps-md-5 pb-4 d-flex flex-column justify-content-between"},b4={class:"d-flex justify-content-between align-items-end mb-4"},y4=rs(()=>g("h3",{class:"m-0"},"Out",-1)),w4={class:"fw-bold"};function E4(e,t,n,r,o,s){const i=de("Visualization"),a=de("AnimatedNumber"),l=de("EnergyflowEntry");return M(),F("div",{class:Me(["energyflow cursor-pointer position-relative",{"energyflow--open":e.detailsOpen}]),onClick:t[0]||(t[0]=(...c)=>s.toggleDetails&&s.toggleDetails(...c))},[g("div",o4,[re(i,{class:"col-12 mb-3 mb-md-4",gridImport:s.gridImport,selfConsumption:s.selfConsumption,loadpoints:n.loadpointsPower,pvExport:s.pvExport,batteryCharge:s.batteryCharge,batteryDischarge:s.batteryDischarge,pvProduction:s.pvProduction,homePower:n.homePower,batterySoc:n.batterySoc,valuesInKw:s.valuesInKw,vehicleIcons:n.vehicleIcons},null,8,["gridImport","selfConsumption","loadpoints","pvExport","batteryCharge","batteryDischarge","pvProduction","homePower","batterySoc","valuesInKw","vehicleIcons"])]),g("div",{class:"details",style:ft({height:s.detailsHeight})},[g("div",i4,[g("div",a4,[g("div",l4,[c4,g("span",null,B(e.$t("main.energyflow.selfConsumption")),1)]),s.gridImport>0?(M(),F("div",u4,[g("span",null,B(e.$t("main.energyflow.gridImport")),1),f4])):(M(),F("div",d4,[g("span",null,B(e.$t("main.energyflow.pvExport")),1),h4]))]),g("div",m4,[g("div",p4,[g4,g("span",_4,[re(a,{to:s.inPower,format:s.kw},null,8,["to","format"])])]),g("div",null,[re(l,{name:e.$t("main.energyflow.pvProduction"),icon:"sun",power:s.pvProduction,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),n.batteryConfigured?(M(),be(l,{key:0,name:e.$t("main.energyflow.batteryDischarge"),icon:"battery",soc:n.batterySoc,power:s.batteryDischarge,valuesInKw:s.valuesInKw},null,8,["name","soc","power","valuesInKw"])):ye("",!0),re(l,{name:e.$t("main.energyflow.gridImport"),icon:"powersupply",power:s.gridImport,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"])])]),g("div",v4,[g("div",b4,[y4,g("span",w4,[re(a,{to:s.outPower,format:s.kw},null,8,["to","format"])])]),g("div",null,[re(l,{name:e.$t("main.energyflow.homePower"),icon:"home",power:n.homePower,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),re(l,{name:e.$tc("main.energyflow.loadpoints",n.activeLoadpointsCount,{count:n.activeLoadpointsCount}),icon:"vehicle",vehicleIcons:n.vehicleIcons,power:n.loadpointsPower,valuesInKw:s.valuesInKw},null,8,["name","vehicleIcons","power","valuesInKw"]),n.batteryConfigured?(M(),be(l,{key:0,name:e.$t("main.energyflow.batteryCharge"),icon:"battery",soc:n.batterySoc,power:s.batteryCharge,valuesInKw:s.valuesInKw},null,8,["name","soc","power","valuesInKw"])):ye("",!0),re(l,{name:e.$t("main.energyflow.pvExport"),icon:"powersupply",power:s.pvExport,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"])])])],512)],4)],2)}const Gc=fe(s4,[["render",E4],["__scopeId","data-v-5feb2a53"]]);var T4='';class S4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=T4}}window.customElements.define("shopicon-filled-circle",S4);var C4='';class A4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=C4}}window.customElements.define("shopicon-regular-lightning",A4);var x4='';class L4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=x4}}window.customElements.define("shopicon-regular-adjust",L4);const M4={name:"Mode",props:{mode:String},emits:["updated"],data(){return{modes:["off","pv","minpv","now"]}},methods:{isActive:function(e){return this.mode===e},setTargetMode:function(e){this.$emit("updated",e)}}},N4={class:"mode-group border d-inline-flex",role:"group"},$4=["onClick"];function I4(e,t,n,r,o,s){return M(),F("div",N4,[(M(!0),F(Se,null,He(o.modes,i=>(M(),F("button",{key:i,type:"button",class:Me(["btn flex-grow-1 flex-shrink-1",{active:s.isActive(i)}]),onClick:a=>s.setTargetMode(i)},B(e.$t(`main.mode.${i}`)),11,$4))),128))])}const O4=fe(M4,[["render",I4],["__scopeId","data-v-fd0f9db5"]]),vo={methods:{collectProps:function(e){let t={};for(var n in e.props)n in this&&(t[n]=this[n]);return t}}},P4={name:"LabelAndValue",components:{AnimatedNumber:kn},props:{label:String,value:[Number,String],valueFmt:Function,extraValue:String,align:{type:String,default:"center"}},computed:{labelClass(){return`text-${this.align}`},valueClass(){return`justify-content-${this.align}`}}},k4={class:"root"},R4={key:1},D4={key:2,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function F4(e,t,n,r,o,s){const i=de("AnimatedNumber");return M(),F("div",k4,[g("div",{class:Me(["mb-2 label",s.labelClass])},B(n.label),3),Xs(e.$slots,"default",{},()=>[g("h3",{class:Me(["value m-0 d-block d-sm-flex align-items-baseline",s.valueClass])},[n.valueFmt?(M(),be(i,{key:0,to:n.value,format:n.valueFmt},null,8,["to","format"])):(M(),F("span",R4,B(n.value),1)),n.extraValue?(M(),F("div",D4,B(n.extraValue),1)):ye("",!0)],2)],!0)])}const ss=fe(P4,[["render",F4],["__scopeId","data-v-2a1fddd7"]]);var q4='';class V4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=q4}}window.customElements.define("shopicon-regular-refresh",V4);var H4='';class B4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=H4}}window.customElements.define("shopicon-regular-cablecharge",B4);var Yd={exports:{}},_s={exports:{}};/*! + */const ev="9.2.2";function tv(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&(kr().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&(kr().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(kr().__INTLIFY_PROD_DEVTOOLS__=!1)}R_.__EXTEND_POINT__;let Od=Ne.__EXTEND_POINT__;const ct=()=>++Od,je={UNEXPECTED_RETURN_TYPE:Od,INVALID_ARGUMENT:ct(),MUST_BE_CALL_SETUP_TOP:ct(),NOT_INSLALLED:ct(),NOT_AVAILABLE_IN_LEGACY_MODE:ct(),REQUIRED_VALUE:ct(),INVALID_VALUE:ct(),CANNOT_SETUP_VUE_DEVTOOLS_PLUGIN:ct(),NOT_INSLALLED_WITH_PROVIDE:ct(),UNEXPECTED_ERROR:ct(),NOT_COMPATIBLE_LEGACY_VUE_I18N:ct(),BRIDGE_SUPPORT_VUE_2_ONLY:ct(),MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION:ct(),NOT_AVAILABLE_COMPOSITION_IN_LEGACY:ct(),__EXTEND_POINT__:ct()};function We(e,...t){return po(e,null,void 0)}const yi=_n("__transrateVNode"),wi=_n("__datetimeParts"),Ei=_n("__numberParts"),kd=_n("__setPluralRules");_n("__intlifyMeta");const Rd=_n("__injectWithOption");function Ti(e){if(!ke(e))return e;for(const t in e)if(!!Ca(e,t))if(!t.includes("."))ke(e[t])&&Ti(e[t]);else{const n=t.split("."),r=n.length-1;let o=e;for(let s=0;s{if("locale"in a&&"resource"in a){const{locale:l,resource:c}=a;l?(i[l]=i[l]||{},Rr(c,i[l])):Rr(c,i)}else oe(a)&&Rr(JSON.parse(a),i)}),o==null&&s)for(const a in i)Ca(i,a)&&Ti(i[a]);return i}const gs=e=>!ke(e)||Oe(e);function Rr(e,t){if(gs(e)||gs(t))throw We(je.INVALID_VALUE);for(const n in e)Ca(e,n)&&(gs(e[n])||gs(t[n])?t[n]=e[n]:Rr(e[n],t[n]))}function Dd(e){return e.type}function Fd(e,t,n){let r=ke(t.messages)?t.messages:{};"__i18nGlobal"in n&&(r=_o(e.locale.value,{messages:r,__i18n:n.__i18nGlobal}));const o=Object.keys(r);o.length&&o.forEach(s=>{e.mergeLocaleMessage(s,r[s])});{if(ke(t.datetimeFormats)){const s=Object.keys(t.datetimeFormats);s.length&&s.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(ke(t.numberFormats)){const s=Object.keys(t.numberFormats);s.length&&s.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function Hc(e){return re(Zr,null,e,0)}const Bc="__INTLIFY_META__";let Uc=0;function jc(e){return(t,n,r,o)=>e(n,r,Xt()||void 0,o)}const nv=()=>{const e=Xt();let t=null;return e&&(t=Dd(e)[Bc])?{[Bc]:t}:null};function Ma(e={},t){const{__root:n}=e,r=n===void 0;let o=Ce(e.inheritLocale)?e.inheritLocale:!0;const s=At(n&&o?n.locale.value:oe(e.locale)?e.locale:ns),i=At(n&&o?n.fallbackLocale.value:oe(e.fallbackLocale)||Oe(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),a=At(_o(s.value,e)),l=At(_e(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),c=At(_e(e.numberFormats)?e.numberFormats:{[s.value]:{}});let u=n?n.missingWarn:Ce(e.missingWarn)||hn(e.missingWarn)?e.missingWarn:!0,f=n?n.fallbackWarn:Ce(e.fallbackWarn)||hn(e.fallbackWarn)?e.fallbackWarn:!0,h=n?n.fallbackRoot:Ce(e.fallbackRoot)?e.fallbackRoot:!0,p=!!e.fallbackFormat,w=Ue(e.missing)?e.missing:null,b=Ue(e.missing)?jc(e.missing):null,T=Ue(e.postTranslation)?e.postTranslation:null,_=n?n.warnHtmlMessage:Ce(e.warnHtmlMessage)?e.warnHtmlMessage:!0,S=!!e.escapeParameter;const A=n?n.modifiers:_e(e.modifiers)?e.modifiers:{};let y=e.pluralRules||n&&n.pluralRules,C;C=(()=>{r&&Ic(null);const $={version:ev,locale:s.value,fallbackLocale:i.value,messages:a.value,modifiers:A,pluralRules:y,missing:b===null?void 0:b,missingWarn:u,fallbackWarn:f,fallbackFormat:p,unresolving:!0,postTranslation:T===null?void 0:T,warnHtmlMessage:_,escapeParameter:S,messageResolver:e.messageResolver,__meta:{framework:"vue"}};$.datetimeFormats=l.value,$.numberFormats=c.value,$.__datetimeFormatters=_e(C)?C.__datetimeFormatters:void 0,$.__numberFormatters=_e(C)?C.__numberFormatters:void 0;const D=z_($);return r&&Ic(D),D})(),Er(C,s.value,i.value);function O(){return[s.value,i.value,a.value,l.value,c.value]}const K=Fe({get:()=>s.value,set:$=>{s.value=$,C.locale=s.value}}),Y=Fe({get:()=>i.value,set:$=>{i.value=$,C.fallbackLocale=i.value,Er(C,s.value,$)}}),ee=Fe(()=>a.value),ne=Fe(()=>l.value),R=Fe(()=>c.value);function X(){return Ue(T)?T:null}function I($){T=$,C.postTranslation=$}function N(){return w}function Z($){$!==null&&(b=jc($)),w=$,C.missing=b}const G=($,D,se,ce,ve,Ae)=>{O();let Ee;if(__INTLIFY_PROD_DEVTOOLS__)try{$c(nv()),r||(C.fallbackContext=n?W_():void 0),Ee=$(C)}finally{$c(null),r||(C.fallbackContext=void 0)}else Ee=$(C);if(Qe(Ee)&&Ee===go){const[qe,bt]=D();return n&&h?ce(n):ve(qe)}else{if(Ae(Ee))return Ee;throw We(je.UNEXPECTED_RETURN_TYPE)}};function te(...$){return G(D=>Reflect.apply(Rc,null,[D,...$]),()=>_i(...$),"translate",D=>Reflect.apply(D.t,D,[...$]),D=>D,D=>oe(D))}function le(...$){const[D,se,ce]=$;if(ce&&!ke(ce))throw We(je.INVALID_ARGUMENT);return te(D,se,Ye({resolvedMessage:!0},ce||{}))}function he(...$){return G(D=>Reflect.apply(Dc,null,[D,...$]),()=>vi(...$),"datetime format",D=>Reflect.apply(D.d,D,[...$]),()=>Mc,D=>oe(D))}function ae(...$){return G(D=>Reflect.apply(qc,null,[D,...$]),()=>bi(...$),"number format",D=>Reflect.apply(D.n,D,[...$]),()=>Mc,D=>oe(D))}function me($){return $.map(D=>oe(D)||Qe(D)||Ce(D)?Hc(String(D)):D)}const pe={normalize:me,interpolate:$=>$,type:"vnode"};function H(...$){return G(D=>{let se;const ce=D;try{ce.processor=pe,se=Reflect.apply(Rc,null,[ce,...$])}finally{ce.processor=null}return se},()=>_i(...$),"translate",D=>D[yi](...$),D=>[Hc(D)],D=>Oe(D))}function W(...$){return G(D=>Reflect.apply(qc,null,[D,...$]),()=>bi(...$),"number format",D=>D[Ei](...$),()=>[],D=>oe(D)||Oe(D))}function L(...$){return G(D=>Reflect.apply(Dc,null,[D,...$]),()=>vi(...$),"datetime format",D=>D[wi](...$),()=>[],D=>oe(D)||Oe(D))}function q($){y=$,C.pluralRules=y}function J($,D){const se=oe(D)?D:s.value,ce=v(se);return C.messageResolver(ce,$)!==null}function ue($){let D=null;const se=Td(C,i.value,s.value);for(let ce=0;ce{o&&(s.value=$,C.locale=$,Er(C,s.value,i.value))}),Nt(n.fallbackLocale,$=>{o&&(i.value=$,C.fallbackLocale=$,Er(C,s.value,i.value))}));const U={id:Uc,locale:K,fallbackLocale:Y,get inheritLocale(){return o},set inheritLocale($){o=$,$&&n&&(s.value=n.locale.value,i.value=n.fallbackLocale.value,Er(C,s.value,i.value))},get availableLocales(){return Object.keys(a.value).sort()},messages:ee,get modifiers(){return A},get pluralRules(){return y||{}},get isGlobal(){return r},get missingWarn(){return u},set missingWarn($){u=$,C.missingWarn=u},get fallbackWarn(){return f},set fallbackWarn($){f=$,C.fallbackWarn=f},get fallbackRoot(){return h},set fallbackRoot($){h=$},get fallbackFormat(){return p},set fallbackFormat($){p=$,C.fallbackFormat=p},get warnHtmlMessage(){return _},set warnHtmlMessage($){_=$,C.warnHtmlMessage=$},get escapeParameter(){return S},set escapeParameter($){S=$,C.escapeParameter=$},t:te,getLocaleMessage:v,setLocaleMessage:d,mergeLocaleMessage:m,getPostTranslationHandler:X,setPostTranslationHandler:I,getMissingHandler:N,setMissingHandler:Z,[kd]:q};return U.datetimeFormats=ne,U.numberFormats=R,U.rt=le,U.te=J,U.tm=ie,U.d=he,U.n=ae,U.getDateTimeFormat=E,U.setDateTimeFormat=P,U.mergeDateTimeFormat=V,U.getNumberFormat=Q,U.setNumberFormat=k,U.mergeNumberFormat=j,U[Rd]=e.__injectWithOption,U[yi]=H,U[wi]=L,U[Ei]=W,U}function rv(e){const t=oe(e.locale)?e.locale:ns,n=oe(e.fallbackLocale)||Oe(e.fallbackLocale)||_e(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,r=Ue(e.missing)?e.missing:void 0,o=Ce(e.silentTranslationWarn)||hn(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,s=Ce(e.silentFallbackWarn)||hn(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Ce(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,l=_e(e.modifiers)?e.modifiers:{},c=e.pluralizationRules,u=Ue(e.postTranslation)?e.postTranslation:void 0,f=oe(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,h=!!e.escapeParameterHtml,p=Ce(e.sync)?e.sync:!0;let w=e.messages;if(_e(e.sharedMessages)){const C=e.sharedMessages;w=Object.keys(C).reduce((O,K)=>{const Y=O[K]||(O[K]={});return Ye(Y,C[K]),O},w||{})}const{__i18n:b,__root:T,__injectWithOption:_}=e,S=e.datetimeFormats,A=e.numberFormats,y=e.flatJson;return{locale:t,fallbackLocale:n,messages:w,flatJson:y,datetimeFormats:S,numberFormats:A,missing:r,missingWarn:o,fallbackWarn:s,fallbackRoot:i,fallbackFormat:a,modifiers:l,pluralRules:c,postTranslation:u,warnHtmlMessage:f,escapeParameter:h,messageResolver:e.messageResolver,inheritLocale:p,__i18n:b,__root:T,__injectWithOption:_}}function Si(e={},t){{const n=Ma(rv(e)),r={id:n.id,get locale(){return n.locale.value},set locale(o){n.locale.value=o},get fallbackLocale(){return n.fallbackLocale.value},set fallbackLocale(o){n.fallbackLocale.value=o},get messages(){return n.messages.value},get datetimeFormats(){return n.datetimeFormats.value},get numberFormats(){return n.numberFormats.value},get availableLocales(){return n.availableLocales},get formatter(){return{interpolate(){return[]}}},set formatter(o){},get missing(){return n.getMissingHandler()},set missing(o){n.setMissingHandler(o)},get silentTranslationWarn(){return Ce(n.missingWarn)?!n.missingWarn:n.missingWarn},set silentTranslationWarn(o){n.missingWarn=Ce(o)?!o:o},get silentFallbackWarn(){return Ce(n.fallbackWarn)?!n.fallbackWarn:n.fallbackWarn},set silentFallbackWarn(o){n.fallbackWarn=Ce(o)?!o:o},get modifiers(){return n.modifiers},get formatFallbackMessages(){return n.fallbackFormat},set formatFallbackMessages(o){n.fallbackFormat=o},get postTranslation(){return n.getPostTranslationHandler()},set postTranslation(o){n.setPostTranslationHandler(o)},get sync(){return n.inheritLocale},set sync(o){n.inheritLocale=o},get warnHtmlInMessage(){return n.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(o){n.warnHtmlMessage=o!=="off"},get escapeParameterHtml(){return n.escapeParameter},set escapeParameterHtml(o){n.escapeParameter=o},get preserveDirectiveContent(){return!0},set preserveDirectiveContent(o){},get pluralizationRules(){return n.pluralRules||{}},__composer:n,t(...o){const[s,i,a]=o,l={};let c=null,u=null;if(!oe(s))throw We(je.INVALID_ARGUMENT);const f=s;return oe(i)?l.locale=i:Oe(i)?c=i:_e(i)&&(u=i),Oe(a)?c=a:_e(a)&&(u=a),Reflect.apply(n.t,n,[f,c||u||{},l])},rt(...o){return Reflect.apply(n.rt,n,[...o])},tc(...o){const[s,i,a]=o,l={plural:1};let c=null,u=null;if(!oe(s))throw We(je.INVALID_ARGUMENT);const f=s;return oe(i)?l.locale=i:Qe(i)?l.plural=i:Oe(i)?c=i:_e(i)&&(u=i),oe(a)?l.locale=a:Oe(a)?c=a:_e(a)&&(u=a),Reflect.apply(n.t,n,[f,c||u||{},l])},te(o,s){return n.te(o,s)},tm(o){return n.tm(o)},getLocaleMessage(o){return n.getLocaleMessage(o)},setLocaleMessage(o,s){n.setLocaleMessage(o,s)},mergeLocaleMessage(o,s){n.mergeLocaleMessage(o,s)},d(...o){return Reflect.apply(n.d,n,[...o])},getDateTimeFormat(o){return n.getDateTimeFormat(o)},setDateTimeFormat(o,s){n.setDateTimeFormat(o,s)},mergeDateTimeFormat(o,s){n.mergeDateTimeFormat(o,s)},n(...o){return Reflect.apply(n.n,n,[...o])},getNumberFormat(o){return n.getNumberFormat(o)},setNumberFormat(o,s){n.setNumberFormat(o,s)},mergeNumberFormat(o,s){n.mergeNumberFormat(o,s)},getChoiceIndex(o,s){return-1},__onComponentInstanceCreated(o){const{componentInstanceCreatedListener:s}=e;s&&s(o,r)}};return r}}const Na={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function sv({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((r,o)=>r=[...r,...Oe(o.children)?o.children:[o]],[]):t.reduce((n,r)=>{const o=e[r];return o&&(n[r]=o()),n},{})}function qd(e){return Se}const Qc={name:"i18n-t",props:Ye({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Qe(e)||!isNaN(e)}},Na),setup(e,t){const{slots:n,attrs:r}=t,o=e.i18n||$a({useScope:e.scope,__useComponent:!0});return()=>{const s=Object.keys(n).filter(f=>f!=="_"),i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=oe(e.plural)?+e.plural:e.plural);const a=sv(t,s),l=o[yi](e.keypath,a,i),c=Ye({},r),u=oe(e.tag)||ke(e.tag)?e.tag:qd();return pn(u,c,l)}}};function ov(e){return Oe(e)&&!oe(e[0])}function Vd(e,t,n,r){const{slots:o,attrs:s}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),oe(e.format)?i.key=e.format:ke(e.format)&&(oe(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((h,p)=>n.includes(p)?Ye({},h,{[p]:e.format[p]}):h,{}));const l=r(e.value,i,a);let c=[i.key];Oe(l)?c=l.map((h,p)=>{const w=o[h.type],b=w?w({[h.type]:h.value,index:p,parts:l}):[h.value];return ov(b)&&(b[0].key=`${h.type}-${p}`),b}):oe(l)&&(c=[l]);const u=Ye({},s),f=oe(e.tag)||ke(e.tag)?e.tag:qd();return pn(f,u,c)}}const Wc={name:"i18n-n",props:Ye({value:{type:Number,required:!0},format:{type:[String,Object]}},Na),setup(e,t){const n=e.i18n||$a({useScope:"parent",__useComponent:!0});return Vd(e,t,Pd,(...r)=>n[Ei](...r))}},zc={name:"i18n-d",props:Ye({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Na),setup(e,t){const n=e.i18n||$a({useScope:"parent",__useComponent:!0});return Vd(e,t,Id,(...r)=>n[wi](...r))}};function iv(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function av(e){const t=i=>{const{instance:a,modifiers:l,value:c}=i;if(!a||!a.$)throw We(je.UNEXPECTED_ERROR);const u=iv(e,a.$),f=Kc(c);return[Reflect.apply(u.t,u,[...Yc(f)]),u]};return{created:(i,a)=>{const[l,c]=t(a);pi&&e.global===c&&(i.__i18nWatcher=Nt(c.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=c,i.textContent=l},unmounted:i=>{pi&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const l=i.__composer,c=Kc(a);i.textContent=Reflect.apply(l.t,l,[...Yc(c)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function Kc(e){if(oe(e))return{path:e};if(_e(e)){if(!("path"in e))throw We(je.REQUIRED_VALUE,"path");return e}else throw We(je.INVALID_VALUE)}function Yc(e){const{path:t,locale:n,args:r,choice:o,plural:s}=e,i={},a=r||{};return oe(n)&&(i.locale=n),Qe(o)&&(i.plural=o),Qe(s)&&(i.plural=s),[t,a,i]}function lv(e,t,...n){const r=_e(n[0])?n[0]:{},o=!!r.useI18nComponentName;(Ce(r.globalInstall)?r.globalInstall:!0)&&(e.component(o?"i18n":Qc.name,Qc),e.component(Wc.name,Wc),e.component(zc.name,zc)),e.directive("t",av(t))}function cv(e,t,n){return{beforeCreate(){const r=Xt();if(!r)throw We(je.UNEXPECTED_ERROR);const o=this.$options;if(o.i18n){const s=o.i18n;o.__i18n&&(s.__i18n=o.__i18n),s.__root=t,this===this.$root?this.$i18n=Zc(e,s):(s.__injectWithOption=!0,this.$i18n=Si(s))}else o.__i18n?this===this.$root?this.$i18n=Zc(e,o):this.$i18n=Si({__i18n:o.__i18n,__injectWithOption:!0,__root:t}):this.$i18n=e;o.__i18nGlobal&&Fd(t,o,o),e.__onComponentInstanceCreated(this.$i18n),n.__setInstance(r,this.$i18n),this.$t=(...s)=>this.$i18n.t(...s),this.$rt=(...s)=>this.$i18n.rt(...s),this.$tc=(...s)=>this.$i18n.tc(...s),this.$te=(s,i)=>this.$i18n.te(s,i),this.$d=(...s)=>this.$i18n.d(...s),this.$n=(...s)=>this.$i18n.n(...s),this.$tm=s=>this.$i18n.tm(s)},mounted(){},unmounted(){const r=Xt();if(!r)throw We(je.UNEXPECTED_ERROR);delete this.$t,delete this.$rt,delete this.$tc,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,n.__deleteInstance(r),delete this.$i18n}}}function Zc(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[kd](t.pluralizationRules||e.pluralizationRules);const n=_o(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(r=>e.mergeLocaleMessage(r,n[r])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(r=>e.mergeDateTimeFormat(r,t.datetimeFormats[r])),t.numberFormats&&Object.keys(t.numberFormats).forEach(r=>e.mergeNumberFormat(r,t.numberFormats[r])),e}const uv=_n("global-vue-i18n");function fv(e={},t){const n=__VUE_I18N_LEGACY_API__&&Ce(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,r=Ce(e.globalInjection)?e.globalInjection:!0,o=__VUE_I18N_LEGACY_API__&&n?!!e.allowComposition:!0,s=new Map,[i,a]=dv(e,n),l=_n("");function c(h){return s.get(h)||null}function u(h,p){s.set(h,p)}function f(h){s.delete(h)}{const h={get mode(){return __VUE_I18N_LEGACY_API__&&n?"legacy":"composition"},get allowComposition(){return o},async install(p,...w){p.__VUE_I18N_SYMBOL__=l,p.provide(p.__VUE_I18N_SYMBOL__,h),!n&&r&&wv(p,h.global),__VUE_I18N_FULL_INSTALL__&&lv(p,h,...w),__VUE_I18N_LEGACY_API__&&n&&p.mixin(cv(a,a.__composer,h));const b=p.unmount;p.unmount=()=>{h.dispose(),b()}},get global(){return a},dispose(){i.stop()},__instances:s,__getInstance:c,__setInstance:u,__deleteInstance:f};return h}}function $a(e={}){const t=Xt();if(t==null)throw We(je.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw We(je.NOT_INSLALLED);const n=hv(t),r=pv(n),o=Dd(t),s=mv(e,o);if(__VUE_I18N_LEGACY_API__&&n.mode==="legacy"&&!e.__useComponent){if(!n.allowComposition)throw We(je.NOT_AVAILABLE_IN_LEGACY_MODE);return vv(t,s,r,e)}if(s==="global")return Fd(r,e,o),r;if(s==="parent"){let l=gv(n,t,e.__useComponent);return l==null&&(l=r),l}const i=n;let a=i.__getInstance(t);if(a==null){const l=Ye({},e);"__i18n"in o&&(l.__i18n=o.__i18n),r&&(l.__root=r),a=Ma(l),_v(i,t),i.__setInstance(t,a)}return a}function dv(e,t,n){const r=Th();{const o=__VUE_I18N_LEGACY_API__&&t?r.run(()=>Si(e)):r.run(()=>Ma(e));if(o==null)throw We(je.UNEXPECTED_ERROR);return[r,o]}}function hv(e){{const t=Ht(e.isCE?uv:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw We(e.isCE?je.NOT_INSLALLED_WITH_PROVIDE:je.UNEXPECTED_ERROR);return t}}function mv(e,t){return mo(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function pv(e){return e.mode==="composition"?e.global:e.global.__composer}function gv(e,t,n=!1){let r=null;const o=t.root;let s=t.parent;for(;s!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(s);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(s);a!=null&&(r=a.__composer,n&&r&&!r[Rd]&&(r=null))}if(r!=null||o===s)break;s=s.parent}return r}function _v(e,t,n){Uu(()=>{},t),Zs(()=>{e.__deleteInstance(t)},t)}function vv(e,t,n,r={}){const o=t==="local",s=Mu(null);if(o&&e.proxy&&!(e.proxy.$options.i18n||e.proxy.$options.__i18n))throw We(je.MUST_DEFINE_I18N_OPTION_IN_ALLOW_COMPOSITION);const i=Ce(r.inheritLocale)?r.inheritLocale:!0,a=At(o&&i?n.locale.value:oe(r.locale)?r.locale:ns),l=At(o&&i?n.fallbackLocale.value:oe(r.fallbackLocale)||Oe(r.fallbackLocale)||_e(r.fallbackLocale)||r.fallbackLocale===!1?r.fallbackLocale:a.value),c=At(_o(a.value,r)),u=At(_e(r.datetimeFormats)?r.datetimeFormats:{[a.value]:{}}),f=At(_e(r.numberFormats)?r.numberFormats:{[a.value]:{}}),h=o?n.missingWarn:Ce(r.missingWarn)||hn(r.missingWarn)?r.missingWarn:!0,p=o?n.fallbackWarn:Ce(r.fallbackWarn)||hn(r.fallbackWarn)?r.fallbackWarn:!0,w=o?n.fallbackRoot:Ce(r.fallbackRoot)?r.fallbackRoot:!0,b=!!r.fallbackFormat,T=Ue(r.missing)?r.missing:null,_=Ue(r.postTranslation)?r.postTranslation:null,S=o?n.warnHtmlMessage:Ce(r.warnHtmlMessage)?r.warnHtmlMessage:!0,A=!!r.escapeParameter,y=o?n.modifiers:_e(r.modifiers)?r.modifiers:{},C=r.pluralRules||o&&n.pluralRules;function x(){return[a.value,l.value,c.value,u.value,f.value]}const O=Fe({get:()=>s.value?s.value.locale.value:a.value,set:m=>{s.value&&(s.value.locale.value=m),a.value=m}}),K=Fe({get:()=>s.value?s.value.fallbackLocale.value:l.value,set:m=>{s.value&&(s.value.fallbackLocale.value=m),l.value=m}}),Y=Fe(()=>s.value?s.value.messages.value:c.value),ee=Fe(()=>u.value),ne=Fe(()=>f.value);function R(){return s.value?s.value.getPostTranslationHandler():_}function X(m){s.value&&s.value.setPostTranslationHandler(m)}function I(){return s.value?s.value.getMissingHandler():T}function N(m){s.value&&s.value.setMissingHandler(m)}function Z(m){return x(),m()}function G(...m){return s.value?Z(()=>Reflect.apply(s.value.t,null,[...m])):Z(()=>"")}function te(...m){return s.value?Reflect.apply(s.value.rt,null,[...m]):""}function le(...m){return s.value?Z(()=>Reflect.apply(s.value.d,null,[...m])):Z(()=>"")}function he(...m){return s.value?Z(()=>Reflect.apply(s.value.n,null,[...m])):Z(()=>"")}function ae(m){return s.value?s.value.tm(m):{}}function me(m,E){return s.value?s.value.te(m,E):!1}function Te(m){return s.value?s.value.getLocaleMessage(m):{}}function pe(m,E){s.value&&(s.value.setLocaleMessage(m,E),c.value[m]=E)}function H(m,E){s.value&&s.value.mergeLocaleMessage(m,E)}function W(m){return s.value?s.value.getDateTimeFormat(m):{}}function L(m,E){s.value&&(s.value.setDateTimeFormat(m,E),u.value[m]=E)}function q(m,E){s.value&&s.value.mergeDateTimeFormat(m,E)}function J(m){return s.value?s.value.getNumberFormat(m):{}}function ue(m,E){s.value&&(s.value.setNumberFormat(m,E),f.value[m]=E)}function ie(m,E){s.value&&s.value.mergeNumberFormat(m,E)}const v={get id(){return s.value?s.value.id:-1},locale:O,fallbackLocale:K,messages:Y,datetimeFormats:ee,numberFormats:ne,get inheritLocale(){return s.value?s.value.inheritLocale:i},set inheritLocale(m){s.value&&(s.value.inheritLocale=m)},get availableLocales(){return s.value?s.value.availableLocales:Object.keys(c.value)},get modifiers(){return s.value?s.value.modifiers:y},get pluralRules(){return s.value?s.value.pluralRules:C},get isGlobal(){return s.value?s.value.isGlobal:!1},get missingWarn(){return s.value?s.value.missingWarn:h},set missingWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackWarn(){return s.value?s.value.fallbackWarn:p},set fallbackWarn(m){s.value&&(s.value.missingWarn=m)},get fallbackRoot(){return s.value?s.value.fallbackRoot:w},set fallbackRoot(m){s.value&&(s.value.fallbackRoot=m)},get fallbackFormat(){return s.value?s.value.fallbackFormat:b},set fallbackFormat(m){s.value&&(s.value.fallbackFormat=m)},get warnHtmlMessage(){return s.value?s.value.warnHtmlMessage:S},set warnHtmlMessage(m){s.value&&(s.value.warnHtmlMessage=m)},get escapeParameter(){return s.value?s.value.escapeParameter:A},set escapeParameter(m){s.value&&(s.value.escapeParameter=m)},t:G,getPostTranslationHandler:R,setPostTranslationHandler:X,getMissingHandler:I,setMissingHandler:N,rt:te,d:le,n:he,tm:ae,te:me,getLocaleMessage:Te,setLocaleMessage:pe,mergeLocaleMessage:H,getDateTimeFormat:W,setDateTimeFormat:L,mergeDateTimeFormat:q,getNumberFormat:J,setNumberFormat:ue,mergeNumberFormat:ie};function d(m){m.locale.value=a.value,m.fallbackLocale.value=l.value,Object.keys(c.value).forEach(E=>{m.mergeLocaleMessage(E,c.value[E])}),Object.keys(u.value).forEach(E=>{m.mergeDateTimeFormat(E,u.value[E])}),Object.keys(f.value).forEach(E=>{m.mergeNumberFormat(E,f.value[E])}),m.escapeParameter=A,m.fallbackFormat=b,m.fallbackRoot=w,m.fallbackWarn=p,m.missingWarn=h,m.warnHtmlMessage=S}return Bu(()=>{if(e.proxy==null||e.proxy.$i18n==null)throw We(je.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);const m=s.value=e.proxy.$i18n.__composer;t==="global"?(a.value=m.locale.value,l.value=m.fallbackLocale.value,c.value=m.messages.value,u.value=m.datetimeFormats.value,f.value=m.numberFormats.value):o&&d(m)}),v}const bv=["locale","fallbackLocale","availableLocales"],yv=["t","rt","d","n","tm"];function wv(e,t){const n=Object.create(null);bv.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw We(je.UNEXPECTED_ERROR);const s=Ge(o.value)?{get(){return o.value.value},set(i){o.value.value=i}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,s)}),e.config.globalProperties.$i18n=n,yv.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw We(je.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)})}B_(Y_);U_(T_);j_(Td);tv();if(__INTLIFY_PROD_DEVTOOLS__){const e=kr();e.__INTLIFY__=!0,I_(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}const Ev={header:{sessions:"Charging sessions",settings:"Settings",docs:"Documentation",blog:"Blog",github:"GitHub",login:"Vehicle logins",about:"About"},settings:{title:"Settings",theme:{label:"Design",auto:"system",light:"light",dark:"dark"},language:{label:"Language",auto:"Automatic"},unit:{label:"Units",km:"km",mi:"miles"},telemetry:{label:"Telemetry"}},footer:{version:{availableLong:"new version available",modalTitle:"New version available",modalUpdateStarted:"Starting the new version of evcc\u2026",modalInstalledVersion:"Installed version",modalNoReleaseNotes:"No release notes available. More info about the new version:",modalCancel:"Cancel",modalUpdate:"Install",modalUpdateNow:"Install now",modalDownload:"Download",modalUpdateStatusStart:"Installation started:"},savings:{tabTitle:"My data",footerShort:"{percent}% solar",footerLong:"{percent}% solar energy",modalTitle:"Charge Energy Overview",since:"since {since}",percentTitle:"Solar Energy",percentSelf:"{self} kWh solar",percentGrid:"{grid} kWh grid",priceTitle:"Energy Price",priceFeedIn:"{feedInPrice} feed-in",priceGrid:"{gridPrice} grid",savingsTitle:"Savings",savingsComparedToGrid:"compared to grid",savingsTotalEnergy:"{total} kWh charged"},community:{tabTitle:"Live community",power:"Charging power",powerSub1:"{activeClients} of {totalClients} participants",powerSub2:"charging\u2026",greenShare:"Solar share",greenShareSub1:"power provided by",greenShareSub2:"solar, and battery storage",greenEnergy:"Solar",greenEnergySub1:"charged with evcc",greenEnergySub2:"since October 2022"},telemetry:{optIn:"I want to contribute my data.",optInMoreDetails:"More details {0}.",optInMoreDetailsLink:"here",optInSponsorship:"Sponsoring required."},sponsor:{titleSponsor:"You are a supporter",titleNoSponsor:"Support us",thanks:"Thank you, {sponsor}! Your contribution helps develop evcc further.",confetti:"Ready for confetti?",supportUs:"Our mission is to make solar the norm. Help evcc by paying what it is worth to you.",sticker:"\u2026 or evcc stickers?",confettiPromise:"You get stickers and digital confetti",becomeSponsor:"Become a Sponsor"}},notifications:{modalTitle:"Notifications",dismissAll:"Dismiss all"},main:{vehicles:"Parking",energyflow:{noEnergy:"No meter data",homePower:"Consumption",pvProduction:"Production",loadpoints:"Charger| Charger | {count} chargers",battery:"Battery",batteryCharge:"Battery charging",batteryDischarge:"Battery discharging",gridImport:"Grid use",selfConsumption:"Self-consumption",pvExport:"Grid export"},mode:{off:"Off",minpv:"Min+Solar",pv:"Solar",now:"Fast"},loadpoint:{fallbackName:"Charging point",remoteDisabledSoft:"{source}: turned off adaptive solar-charging",remoteDisabledHard:"{source}: turned off",power:"Power",charged:"Charged",duration:"Duration",remaining:"Remaining"},loadpointSettings:{title:"Settings {0}",vehicle:"Vehicle",currents:"Charging current",default:"default",disclaimerHint:"Note:",disclaimerText:"Changes will be lost after the server is restarted.",minSoc:{label:"Min. charge %",description:"For emergencies. The vehicle gets \u201Efast\u201D charged to {0}% from all available solar, and then continues with only the solar surplus."},phasesConfigured:{label:"Phases",phases_0:"auto-switching",phases_1:"1 phase",phases_1_hint:"({min} to {max})",phases_3:"3 phase",phases_3_hint:"({min} to {max})"},maxCurrent:{label:"Max. Current"},minCurrent:{label:"Min. Current"}},vehicle:{fallbackName:"Vehicle",vehicleSoc:"Charge",targetSoc:"Limit",none:"No vehicle",unknown:"Guest vehicle",changeVehicle:"Change Vehicle",detectionActive:"Detecting vehicle\u2026"},vehicleSoc:{disconnected:"disconnected",charging:"charging",ready:"ready",connected:"connected",vehicleTarget:"Vehicle limit: {soc}%"},vehicleStatus:{minCharge:"Minimum charging to {soc}%.",waitForVehicle:"Ready. Waiting for vehicle\u2026",vehicleTargetReached:"Vehicle limit {soc}% reached.",charging:"Charging\u2026",targetChargePlanned:"Target charging starts at {time}.",targetChargeWaitForVehicle:"Target charge ready. Waiting for vehicle\u2026",targetChargeActive:"Target charge active\u2026",connected:"Connected.",pvDisable:"Not enough surplus. Pausing in {remaining}\u2026",pvEnable:"Surplus available. Starting in {remaining}\u2026",scale1p:"Reducing to 1-phase power in {remaining}\u2026",scale3p:"Increasing to 3-phase power in {remaining}\u2026",disconnected:"Disconnected.",unknown:""},provider:{login:"log in",logout:"log out"},targetCharge:{title:"Target Time",inactiveLabel:"Target time",activeLabel:"{time}",modalTitle:"Set Target Time",setTargetTime:"none",description:"When should the vehicle be charged to {targetSoc}%?",today:"today",tomorrow:"tomorrow",targetIsInThePast:"Pick a time in the future, Marty.",remove:"Remove",activate:"Activate",experimentalLabel:"Experimental",experimentalText:"This works, but isn't perfect. Please report unexpected behaviour to"},targetEnergy:{label:"Limit",noLimit:"none"}},startupError:{title:"Startup Error",description:"Please check your configuration file. If the error message does not help, check out the {0}.",discussions:"GitHub Discussions",hint:"Note: It could also be you have a faulty device (inverter, meter, \u2026). Check your network connections.",configuration:"Config",configFile:"Configuration file used:",lineError:"Error in {0}.",lineErrorLink:"line {0}",fixAndRestart:"Please fix the problem and restart the server.",restartButton:"Restart"},sessions:{title:"Charging Sessions",downloadCsv:"Download as CSV",loadpoint:"Charging point",vehicle:"Vehicle",energy:"Charged",date:"Period",csv:{loadpoint:"Charging point",vehicle:"Vehicle",odometer:"Mileage (km)",identifier:"Identifier",chargedenergy:"Energy (kWh)",meterstart:"Meter start (kWh)",meterstop:"Meter stop (kWh)",created:"Created",finished:"Finished"}},offline:{message:"Not connected to a server.",reload:"Reload?"}},Hd={de:["German","Deutsch"],da:["Danish","Dansk"],en:["English","English"],es:["Spanish","Espa\xF1ol"],fr:["French","Fran\xE7ais"],it:["Italian","Italiano"],lb:["Luxembourgish","L\xEBtzebuergesch"],lt:["Lithuanian","Lietuvi\u0173"],nl:["Dutch","Nederlands"],no:["Norwegian","Norsk"],pl:["Polish","Polski"],pt:["Portuguese","Portugu\xEAs"],ru:["Russian","\u0420\u0443\u0441\u0441\u043A\u0438\u0439"],sl:["Slovenian","Sloven\u0161\u010Dina"],sv:["Swedish","Svenska"],uk:["Ukrainian","\u0423\u043A\u0440\u0430\u0457\u043D\u0441\u044C\u043A\u0430"]};function Bd(){const e=navigator.languages!==void 0?navigator.languages[0]:navigator.language;if(!!e)return e.trim().split(/-|_/)[0]}function Ud(){return ot.locale}function Tv(e){ot.locale=null,Ia(e,Bd())}function Sv(e,t){if(!Hd[t]){console.error("unknown locale",t);return}ot.locale=t,Ia(e,t),jd(e)}function Cv(){return Ud()||Bd()}function Av(){const e=fv({legacy:!0,silentFallbackWarn:!0,silentTranslationWarn:!0,locale:"en",fallbackLocale:"en",messages:{en:Ev}});return Ia(e.global,Cv()),e}function Ia(e,t){e.locale=t,document.querySelector("html").setAttribute("lang",t)}async function xv(e,t){var n;try{const r=await _0.get(`${t}.toml`,{params:{v:(n=window.evcc)==null?void 0:n.version}}),o=q0(r.data);e.setLocaleMessage(t,o)}catch(r){console.error(`unable to load translation for [${t}]`,r)}return Wi()}async function jd(e){const{locale:t}=e;e.availableLocales.includes(t)||await xv(e,t)}const Kn=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)"),Pa="auto",Qd="light",Ci="dark",Oa=[Pa,Qd,Ci];function Wd(){const e=ot.theme;return Oa.includes(e)?e:Pa}function Lv(e){!Oa.includes(e)||(ot.theme=e,Ai())}function Ai(){let e=Wd();e===Pa&&(e=Kn!=null&&Kn.matches?Ci:Qd);const t={light:"#f3f3f7",dark:"#020318"},n=document.querySelector("meta[name=theme-color]");n&&n.setAttribute("content",t[e]);const r=document.querySelector("html");r.classList.add("no-transitions"),r.classList.toggle("dark",e===Ci),window.setTimeout(function(){r.classList.remove("no-transitions")},100)}function Mv(){Kn==null||Kn.addEventListener("change",Ai),Ai()}const zd="km",ka="mi",Nv=[zd,ka],$v=.6213711922;function Ra(){return ot.unit===ka}function Iv(e){return Ra()?e*$v:e}function Kd(){return Ra()?"mi":"km"}function Pv(){return Ra()?ka:zd}function Ov(e){ot.unit=e}const kv={name:"GlobalSettingsModal",components:{TelemetrySettings:yd,FormRow:P0,SelectGroup:F0},props:{sponsor:String},data:function(){return{theme:Wd(),language:Ud()||"",unit:Pv(),THEMES:Oa,UNITS:Nv}},computed:{languageOptions:()=>{const e=Object.entries(Hd).map(([t,n])=>({value:t,name:n[1]}));return e.sort((t,n)=>t.name(tt("data-v-04cb5197"),e=e(),nt(),e),Dv={id:"globalSettingsModal",class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},Fv={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},qv={class:"modal-content"},Vv={class:"modal-header"},Hv={class:"modal-title"},Bv=Rv(()=>g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),Uv={class:"modal-body"},jv={class:"container"},Qv={value:""},Wv=["value"];function zv(e,t,n,r,o,s){const i=de("SelectGroup"),a=de("FormRow"),l=de("TelemetrySettings");return M(),be(dr,{to:"body"},[g("div",Dv,[g("div",Fv,[g("div",qv,[g("div",Vv,[g("h5",Hv,B(e.$t("settings.title")),1),Bv]),g("div",Uv,[g("div",jv,[re(a,{id:"settingsDesign",label:e.$t("settings.theme.label")},{default:Ve(()=>[re(i,{id:"settingsDesign",modelValue:e.theme,"onUpdate:modelValue":t[0]||(t[0]=c=>e.theme=c),class:"w-100",options:e.THEMES.map(c=>({value:c,name:e.$t(`settings.theme.${c}`)}))},null,8,["modelValue","options"])]),_:1},8,["label"]),re(a,{id:"settingsLanguage",label:e.$t("settings.language.label")},{default:Ve(()=>[mt(g("select",{id:"settingsLanguage","onUpdate:modelValue":t[1]||(t[1]=c=>e.language=c),class:"form-select form-select-sm w-75"},[g("option",Qv,B(e.$t("settings.language.auto")),1),(M(!0),F(Se,null,He(s.languageOptions,c=>(M(),F("option",{key:c,value:c.value},B(c.name),9,Wv))),128))],512),[[Lr,e.language]])]),_:1},8,["label"]),re(a,{id:"settingsUnit",label:e.$t("settings.unit.label")},{default:Ve(()=>[re(i,{id:"settingsUnit",modelValue:e.unit,"onUpdate:modelValue":t[2]||(t[2]=c=>e.unit=c),class:"w-75",options:e.UNITS.map(c=>({value:c,name:e.$t(`settings.unit.${c}`)}))},null,8,["modelValue","options"])]),_:1},8,["label"]),re(a,{id:"telemetryEnabled",label:e.$t("settings.telemetry.label")},{default:Ve(()=>[re(l,{sponsor:n.sponsor,class:"mt-1 mb-0"},null,8,["sponsor"])]),_:1},8,["label"])])])])])])])}const Kv=fe(kv,[["render",zv],["__scopeId","data-v-04cb5197"]]),{protocol:Yv,hostname:Zv,port:Gc,pathname:Gv}=window.location,xi=ho.create({baseURL:Yv+"//"+Zv+(Gc?":"+Gc:"")+Gv});xi.interceptors.response.use(e=>e,e=>{const t=e.config.baseURL+e.config.url,n=`${e.message}: API request failed ${t}`;window.app.error({message:n})});const Xv={name:"TopNavigation",components:{GlobalSettingsModal:Kv},props:{vehicleLogins:{type:Object,default:()=>({})},sponsor:String},computed:{logoutCount(){return this.providerLogins.filter(e=>!e.loggedIn).length},providerLogins(){return Object.entries(this.vehicleLogins).map(([e,t])=>({title:e,loggedIn:t.authenticated,loginPath:t.uri+"/login",logoutPath:t.uri+"/logout"}))}},mounted(){this.dropdown=new Zf(document.getElementById("topNavigatonDropdown"))},unmounted(){var e;(e=this.dropdown)==null||e.dispose()},methods:{handleProviderAuthorization:async function(e){e.loggedIn?xi.post(e.logoutPath):xi.post(e.loginPath).then(function(t){window.location.href=t.data.loginUri})},openSettingsModal(){Xr.getOrCreateInstance(document.getElementById("globalSettingsModal")).show()}}},On=e=>(tt("data-v-36b2f086"),e=e(),nt(),e),Jv={id:"topNavigatonDropdown",type:"button","data-bs-toggle":"dropdown","aria-expanded":"false",class:"btn btn-sm btn-outline-secondary position-relative border-0 menu-button"},eb={key:0,class:"position-absolute top-0 start-100 translate-middle p-2 bg-danger border border-light rounded-circle"},tb=On(()=>g("span",{class:"visually-hidden"},"login available",-1)),nb=[tb],rb=On(()=>g("shopicon-regular-menu",null,null,-1)),sb={class:"dropdown-menu dropdown-menu-end","aria-labelledby":"topNavigatonDropdown"},ob=On(()=>g("li",null,[g("hr",{class:"dropdown-divider"})],-1)),ib={class:"dropdown-header"},ab=["onClick"],lb={key:0,class:"d-inline-block p-1 rounded-circle bg-danger border border-light rounded-circle"},cb={class:"dropdown-item d-flex",href:"https://docs.evcc.io/blog/",target:"_blank"},ub=On(()=>g("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),fb={class:"dropdown-item d-flex",href:"https://docs.evcc.io/docs/Home/",target:"_blank"},db=On(()=>g("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),hb={class:"dropdown-item d-flex",href:"https://github.com/evcc-io/evcc",target:"_blank"},mb=On(()=>g("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1)),pb={class:"dropdown-item d-flex",href:"https://evcc.io/",target:"_blank"},gb=On(()=>g("shopicon-regular-newtab",{size:"s",class:"ms-2 external"},null,-1));function _b(e,t,n,r,o,s){const i=de("router-link"),a=de("GlobalSettingsModal");return M(),F("div",null,[g("button",Jv,[s.logoutCount>0?(M(),F("span",eb,nb)):ye("",!0),rb]),g("ul",sb,[g("li",null,[re(i,{class:"dropdown-item",to:"/sessions"},{default:Ve(()=>[$e(B(e.$t("header.sessions")),1)]),_:1})]),g("li",null,[g("button",{type:"button",class:"dropdown-item",onClick:t[0]||(t[0]=(...l)=>s.openSettingsModal&&s.openSettingsModal(...l))},B(e.$t("header.settings")),1)]),s.providerLogins.length>0?(M(),F(Se,{key:0},[ob,g("li",null,[g("h6",ib,B(e.$t("header.login")),1)]),(M(!0),F(Se,null,He(s.providerLogins,l=>(M(),F("li",{key:l.title},[g("button",{type:"button",class:"dropdown-item",onClick:c=>s.handleProviderAuthorization(l)},[l.loggedIn?ye("",!0):(M(),F("span",lb)),$e(" "+B(l.title)+" "+B(e.$t(l.loggedIn?"main.provider.logout":"main.provider.login")),1)],8,ab)]))),128))],64)):ye("",!0),g("li",null,[g("a",cb,[g("span",null,B(e.$t("header.blog")),1),ub])]),g("li",null,[g("a",fb,[g("span",null,B(e.$t("header.docs")),1),db])]),g("li",null,[g("a",hb,[g("span",null,B(e.$t("header.github")),1),mb])]),g("li",null,[g("a",pb,[g("span",null,B(e.$t("header.about")),1),gb])])]),re(a,{sponsor:n.sponsor},null,8,["sponsor"])])}const Li=fe(Xv,[["render",_b],["__scopeId","data-v-36b2f086"]]);var vb='';class bb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=vb}}window.customElements.define("shopicon-regular-exclamationtriangle",bb);const dt={data:function(){return{fmtLimit:100,fmtDigits:1}},methods:{round:function(e,t){var n=10**t;return(Math.round(e*n)/n).toFixed(t)},fmt:function(e){return e==null?0:(e=Math.abs(e),e>=this.fmtLimit?this.round(e/1e3,this.fmtDigits):this.round(e,0))},fmtKw:function(e=0,t=!0,n=!0,r){r===void 0&&(r=t?1:0);const o=t?e/1e3:e;let s="";return n&&(s=t?" kW":" W"),`${new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",minimumFractionDigits:r,maximumFractionDigits:r}).format(o)}${s}`},fmtKWh:function(e,t,n,r){return this.fmtKw(e,t,n,r)+"h"},fmtNumber:function(e,t){return new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",minimumFractionDigits:t,maximumFractionDigits:t}).format(e)},fmtUnit:function(e){return Math.abs(e)>=this.fmtLimit?"k":""},fmtDuration:function(e){if(e<=0||e==null)return"\u2014";var t="0"+e%60,n="0"+Math.floor(e/60)%60,r=""+Math.floor(e/3600);return r.length<2&&(r="0"+r),r+":"+n.substr(-2)+":"+t.substr(-2)},fmtShortDuration:function(e=0,t=!1){if(e<=0)return"\u2014";var n=e%60,r=Math.floor(e/60)%60,o=Math.floor(e/3600),s="";return o>=1?s=o+":"+`${r}`.padStart(2,"0"):r>=1?s=r+":"+`${n}`.padStart(2,"0"):s=`${n}`,t&&(s+=this.fmtShortDurationUnit(e)),s},fmtShortDurationUnit:function(e=0){if(e<=0)return"";var t=Math.floor(e/60)%60,n=Math.floor(e/3600);return n>=1?"h":t>=1?"m":"s"},fmtDayString:function(e){const t=`${e.getFullYear()}`,n=`${e.getMonth()+1}`.padStart(2,"0"),r=`${e.getDate()}`.padStart(2,"0");return`${t}-${n}-${r}`},fmtTimeString:function(e){const t=`${e.getHours()}`.padStart(2,"0"),n=`${e.getMinutes()}`.padStart(2,"0");return`${t}:${n}`},isToday:function(e){return new Date().toDateString()===e.toDateString()},isTomorrow:function(e){const t=new Date;return t.setDate(t.getDate()+1),t.toDateString()===e.toDateString()},weekdayPrefix:function(e){const t=new Intl.RelativeTimeFormat(this.$i18n.locale,{numeric:"auto"});return this.isToday(e)?t.formatToParts(0,"day")[0].value:this.isTomorrow(e)?t.formatToParts(1,"day")[0].value:new Intl.DateTimeFormat(this.$i18n.locale,{weekday:"short"}).format(e)},fmtAbsoluteDate:function(e){const t=this.weekdayPrefix(e),n=new Intl.DateTimeFormat(this.$i18n.locale,{hour:"numeric",minute:"numeric"}).format(e);return`${t} ${n}`},fmtFullDateTime:function(e,t){return new Intl.DateTimeFormat(this.$i18n.locale,{weekday:t?void 0:"short",month:t?"numeric":"short",day:"numeric",hour:"numeric",minute:"numeric"}).format(e)},fmtMonthYear:function(e){return new Intl.DateTimeFormat(this.$i18n.locale,{month:"long",year:"numeric"}).format(e)},fmtDayMonthYear:function(e){return new Intl.DateTimeFormat(this.$i18n.locale,{day:"numeric",month:"long",year:"numeric"}).format(e)},fmtMoney:function(e=0,t="EUR"){return new Intl.NumberFormat(this.$i18n.locale,{style:"currency",currency:t,currencyDisplay:"code"}).format(e).replace(t,"").trim()},fmtCurrencySymbol:function(e="EUR"){return{EUR:"\u20AC",USD:"$"}[e]||e},fmtPricePerKWh:function(e=0,t="EUR"){let n=t,r=e,o=3;return["EUR","USD"].includes(t)&&(r*=100,n="ct",o=1),`${new Intl.NumberFormat(this.$i18n.locale,{style:"decimal",maximumFractionDigits:o}).format(r)} ${n}/kWh`},fmtTimeAgo:function(e){const t={day:864e5,hour:36e5,minute:6e4,second:1e3},n=new Intl.RelativeTimeFormat(this.$i18n.locale,{numeric:"auto"});for(var r in t)if(Math.abs(e)>t[r]||r=="second")return n.format(Math.round(e/t[r]),r)}}},yb={name:"Notifications",mixins:[dt],props:{notifications:Array},computed:{iconVisible:function(){return this.notifications.length>0},iconClass:function(){return this.notifications.find(e=>e.type==="error")?"text-danger":"text-warning"}},created:function(){this.interval=setInterval(()=>{this.$forceUpdate()},10*1e3)},unmounted:function(){clearTimeout(this.interval)},methods:{clear:function(){window.app&&window.app.clear()}}},wb={href:"#","data-bs-toggle":"modal","data-bs-target":"#notificationModal",class:"btn btn-sm btn-link text-decoration-none link-light text-nowrap"},Eb={id:"notificationModal",class:"modal fade text-dark",tabindex:"-1",role:"dialog","aria-hidden":"true","data-bs-backdrop":"true"},Tb={class:"modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable",role:"document"},Sb={class:"modal-content"},Cb={class:"modal-header"},Ab={class:"modal-title"},xb=g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),Lb={class:"modal-body"},Mb=["title"],Nb={class:"d-flex align-items-baseline"},$b={class:"flex-grow-1 px-2 py-1 text-break"},Ib={key:0,class:"badge rounded-pill bg-secondary"},Pb={class:"modal-footer"};function Ob(e,t,n,r,o,s){return M(),F("div",null,[mt(g("button",wb,[g("shopicon-regular-exclamationtriangle",{class:Me(s.iconClass)},null,2)],512),[[ea,s.iconVisible]]),g("div",Eb,[g("div",Tb,[g("div",Sb,[g("div",Cb,[g("h5",Ab,B(e.$t("notifications.modalTitle")),1),xb]),g("div",Lb,[(M(!0),F(Se,null,He(n.notifications,(i,a)=>(M(),F("div",{key:a},[g("small",{class:"d-flex justify-content-end mt-3",title:e.fmtAbsoluteDate(i.time)},B(e.fmtTimeAgo(i.time-new Date)),9,Mb),g("p",Nb,[g("shopicon-regular-exclamationtriangle",{class:Me([{"text-danger":i.type==="error","text-warning":i.type==="warn"},"flex-grow-0 flex-shrink-0 d-block"])},null,2),g("span",$b,B(i.message),1),i.count>1?(M(),F("span",Ib,B(i.count),1)):ye("",!0)])]))),128))]),g("div",Pb,[g("button",{type:"button","data-bs-dismiss":"modal","aria-label":"Close",class:"btn btn-outline-secondary",onClick:t[0]||(t[0]=(...i)=>s.clear&&s.clear(...i))},B(e.$t("notifications.dismissAll")),1)])])])])])}const kb=fe(yb,[["render",Ob]]);var Rb='';class Db extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Rb}}window.customElements.define("shopicon-filled-square",Db);var Fb='';class qb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Fb}}window.customElements.define("shopicon-regular-batteryfull",qb);var Vb='';class Hb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Vb}}window.customElements.define("shopicon-regular-batterythreequarters",Hb);var Bb='';class Ub extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Bb}}window.customElements.define("shopicon-regular-batteryhalf",Ub);var jb='';class Qb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=jb}}window.customElements.define("shopicon-regular-batteryquarter",Qb);var Wb='';class zb extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=Wb}}window.customElements.define("shopicon-regular-batteryempty",zb);const Kb={name:"BatteryIcon",props:{soc:{type:Number,default:0}},computed:{icon:function(){return this.soc>80?"batteryfull":this.soc>60?"batterythreequarters":this.soc>40?"batteryhalf":this.soc>20?"batteryquarter":"batteryempty"}}};function Yb(e,t,n,r,o,s){return M(),be(Gs(`shopicon-regular-${s.icon}`))}const Yd=fe(Kb,[["render",Yb]]),Zb={name:"LabelBar",props:{value:{type:Number,default:0},hideIcon:{type:Boolean},top:{type:Boolean},bottom:{type:Boolean},first:{type:Boolean},last:{type:Boolean}}},Gb={class:"label-bar-scale"},Xb={class:"label-bar-icon"};function Jb(e,t,n,r,o,s){return M(),F("div",{class:Me(["label-bar",{"label-bar--hide-icon":n.hideIcon,"label-bar--hidden":!n.value,"label-bar--top":n.top,"label-bar--bottom":n.bottom,"label-bar--first":n.first,"label-bar--last":n.last}])},[g("div",Gb,[g("div",Xb,[Xs(e.$slots,"default",{},void 0,!0)])])],2)}const e5=fe(Zb,[["render",Jb],["__scopeId","data-v-07ec7375"]]);var Mi=globalThis&&globalThis.__assign||function(){return(Mi=Object.assign||function(e){for(var t,n=1,r=arguments.length;no.endVal;o.frameVal=a?o.endVal:o.frameVal,o.frameVal=Number(o.frameVal.toFixed(o.options.decimalPlaces)),o.printValue(o.frameVal),i1?o.options.decimal+f[1]:"",o.options.useGrouping){c="";for(var h=0,p=a.length;hwindow.scrollY&&t.paused?(t.paused=!1,setTimeout(function(){return t.start()},t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):window.scrollY>o&&!t.paused&&t.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var n=t-this.startVal;if(Math.abs(n)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var r=this.countDown?1:-1;this.endVal=t+r*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(t){this.error||(this.callback=t,this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(t){var n=this.formattingFn(t);this.el.tagName==="INPUT"?this.el.value=n:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=n:this.el.innerHTML=n},e.prototype.ensureNumber=function(t){return typeof t=="number"&&!isNaN(t)},e.prototype.validateValue=function(t){var n=Number(t);return this.ensureNumber(n)?n:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}();const n5=.5,r5={name:"AnimatedNumber",props:{to:{type:Number},format:{type:Function,required:!0},duration:{type:Number,default:n5}},data(){return{instance:null}},watch:{to(e){var t;(t=this.instance)==null||t.update(e)}},mounted(){this.instance||(this.instance=new t5(this.$el,this.to,{startVal:this.to,formattingFn:this.format,duration:this.duration,decimalPlaces:2}),this.instance.error&&console.error(this.instance.error))},unmounted(){this.instance=null}};function s5(e,t,n,r,o,s){return M(),F("span")}const kn=fe(r5,[["render",s5]]);var o5='';class i5 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=o5}}window.customElements.define("shopicon-regular-car3",i5);const a5={name:"1"},l5={width:"1em",height:"1em",viewBox:"0 0 24 24"},c5=g("path",{fill:"currentColor",d:"M15 15q.425 0 .713-.288Q16 14.425 16 14V6q0-.425-.287-.713Q15.425 5 15 5h-2.025q-.425 0-.7.287Q12 5.575 12 6t.288.713Q12.575 7 13 7h1v7.025q0 .425.288.7q.287.275.712.275Zm-7 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),u5=[c5];function f5(e,t,n,r,o,s){return M(),F("svg",l5,u5)}const d5=fe(a5,[["render",f5]]),h5={name:"2"},m5={width:"1em",height:"1em",viewBox:"0 0 24 24"},p5=g("path",{fill:"currentColor",d:"M12 15h4.025q.425 0 .7-.288Q17 14.425 17 14t-.288-.713Q16.425 13 16 13h-3v-2h2q.825 0 1.413-.588Q17 9.825 17 9V7q0-.825-.587-1.412Q15.825 5 15 5h-3.025q-.425 0-.7.287Q11 5.575 11 6t.288.713Q11.575 7 12 7h3v2h-2q-.825 0-1.412.587Q11 10.175 11 11v3q0 .425.288.712q.287.288.712.288Zm-4 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),g5=[p5];function _5(e,t,n,r,o,s){return M(),F("svg",m5,g5)}const v5=fe(h5,[["render",_5]]),b5={name:"3"},y5={width:"1em",height:"1em",viewBox:"0 0 24 24"},w5=g("path",{fill:"currentColor",d:"M12 15h3q.825 0 1.413-.588Q17 13.825 17 13v-1.5q0-.65-.425-1.075Q16.15 10 15.5 10q.65 0 1.075-.425Q17 9.15 17 8.5V7q0-.825-.587-1.412Q15.825 5 15 5h-3.025q-.425 0-.7.287Q11 5.575 11 6t.288.713Q11.575 7 12 7h3v2h-1.025q-.425 0-.7.287Q13 9.575 13 10t.288.712Q13.575 11 14 11h1v2h-3.025q-.425 0-.7.287Q11 13.575 11 14t.288.712Q11.575 15 12 15Zm-4 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),E5=[w5];function T5(e,t,n,r,o,s){return M(),F("svg",y5,E5)}const S5=fe(b5,[["render",T5]]),C5={name:"4"},A5={width:"1em",height:"1em",viewBox:"0 0 24 24"},x5=g("path",{fill:"currentColor",d:"M16 15q.425 0 .712-.288Q17 14.425 17 14V5.975q0-.425-.288-.7Q16.425 5 16 5t-.712.287Q15 5.575 15 6v3h-2V5.975q0-.425-.287-.7Q12.425 5 12 5t-.712.287Q11 5.575 11 6v4q0 .425.288.712q.287.288.712.288h3v3.025q0 .425.288.7q.287.275.712.275Zm-8 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),L5=[x5];function M5(e,t,n,r,o,s){return M(),F("svg",A5,L5)}const N5=fe(C5,[["render",M5]]),$5={name:"5"},I5={width:"1em",height:"1em",viewBox:"0 0 24 24"},P5=g("path",{fill:"currentColor",d:"M12 15h3q.825 0 1.413-.588Q17 13.825 17 13v-2q0-.825-.587-1.413Q15.825 9 15 9h-2V7h3.025q.425 0 .7-.287Q17 6.425 17 6t-.288-.713Q16.425 5 16 5h-4q-.425 0-.712.287Q11 5.575 11 6v4q0 .425.288.712q.287.288.712.288h3v2h-3.025q-.425 0-.7.287Q11 13.575 11 14t.288.712Q11.575 15 12 15Zm-4 3q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),O5=[P5];function k5(e,t,n,r,o,s){return M(),F("svg",I5,O5)}const R5=fe($5,[["render",k5]]),D5={name:"6"},F5={width:"1em",height:"1em",viewBox:"0 0 24 24"},q5=g("path",{fill:"currentColor",d:"M4 22q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22Zm4-4q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12ZM8 4v12V4Zm5 5V7h2.025q.425 0 .7-.287Q16 6.425 16 6t-.287-.713Q15.425 5 15 5h-2q-.825 0-1.412.588Q11 6.175 11 7v6q0 .825.588 1.412Q12.175 15 13 15h2q.825 0 1.413-.588Q17 13.825 17 13v-2q0-.825-.587-1.413Q15.825 9 15 9Zm0 2h2v2h-2Z"},null,-1),V5=[q5];function H5(e,t,n,r,o,s){return M(),F("svg",F5,V5)}const B5=fe(D5,[["render",H5]]),U5={name:"7"},j5={width:"1em",height:"1em",viewBox:"0 0 24 24"},Q5=g("path",{fill:"currentColor",d:"m15 7l-3.325 6.65q-.225.475 0 .912q.225.438.725.438q.25 0 .463-.125q.212-.125.337-.35l3.625-7.175q.075-.15.125-.363q.05-.212.05-.387q0-.65-.413-1.125Q16.175 5 15.525 5h-3.55q-.425 0-.7.287Q11 5.575 11 6t.288.713Q11.575 7 12 7ZM8 18q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22Zm4-6V4v12Z"},null,-1),W5=[Q5];function z5(e,t,n,r,o,s){return M(),F("svg",j5,W5)}const K5=fe(U5,[["render",z5]]),Y5={name:"8"},Z5={width:"1em",height:"1em",viewBox:"0 0 24 24"},G5=g("path",{fill:"currentColor",d:"M13 15h2q.825 0 1.413-.588Q17 13.825 17 13v-1.5q0-.65-.425-1.075Q16.15 10 15.5 10q.65 0 1.075-.425Q17 9.15 17 8.5V7q0-.825-.587-1.412Q15.825 5 15 5h-2q-.825 0-1.412.588Q11 6.175 11 7v1.5q0 .65.425 1.075Q11.85 10 12.5 10q-.65 0-1.075.425Q11 10.85 11 11.5V13q0 .825.588 1.412Q12.175 15 13 15Zm0-8h2v2h-2V7Zm0 6v-2h2v2Zm-5 5q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),X5=[G5];function J5(e,t,n,r,o,s){return M(),F("svg",Z5,X5)}const ey=fe(Y5,[["render",J5]]),ty={name:"9"},ny={width:"1em",height:"1em",viewBox:"0 0 24 24"},ry=g("path",{fill:"currentColor",d:"M13 15h2q.825 0 1.413-.588Q17 13.825 17 13V7q0-.825-.587-1.412Q15.825 5 15 5h-2q-.825 0-1.412.588Q11 6.175 11 7v2q0 .825.588 1.412Q12.175 11 13 11h2v2h-2.025q-.425 0-.7.287Q12 13.575 12 14t.288.712Q12.575 15 13 15Zm2-6h-2V7h2Zm-7 9q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),sy=[ry];function oy(e,t,n,r,o,s){return M(),F("svg",ny,sy)}const iy=fe(ty,[["render",oy]]),ay={name:"Plus"},ly={width:"1em",height:"1em",viewBox:"0 0 24 24"},cy=g("path",{fill:"currentColor",d:"M10.975 14H12q.825 0 1.413-.588Q14 12.825 14 12V8q0-.825-.587-1.412Q12.825 6 12 6h-1q-.825 0-1.412.588Q9 7.175 9 8v1q0 .825.588 1.412Q10.175 11 11 11h1v1h-1.025q-.425 0-.7.287Q10 12.575 10 13t.288.712q.287.288.687.288ZM12 9h-1V8h1Zm4.15 2v.875q0 .425.288.7q.287.275.712.275t.713-.288q.287-.287.287-.687V11h.875q.425 0 .7-.288Q20 10.425 20 10t-.288-.713Q19.425 9 19.025 9h-.875v-.875q0-.425-.287-.7q-.288-.275-.713-.275t-.712.287q-.288.288-.288.688V9h-.875q-.425 0-.7.287q-.275.288-.275.713t.288.712q.287.288.687.288ZM8 18q-.825 0-1.412-.587Q6 16.825 6 16V4q0-.825.588-1.413Q7.175 2 8 2h12q.825 0 1.413.587Q22 3.175 22 4v12q0 .825-.587 1.413Q20.825 18 20 18Zm0-2h12V4H8v12Zm-4 6q-.825 0-1.412-.587Q2 20.825 2 20V6.975q0-.425.288-.7Q2.575 6 3 6t.713.287Q4 6.575 4 7v13h13.025q.425 0 .7.288q.275.287.275.712t-.288.712Q17.425 22 17 22ZM8 4v12V4Z"},null,-1),uy=[cy];function fy(e,t,n,r,o,s){return M(),F("svg",ly,uy)}const dy=fe(ay,[["render",fy]]),hy={_1:d5,_2:v5,_3:S5,_4:N5,_5:R5,_6:B5,_7:K5,_8:ey,_9:iy},my={name:"MultiIcon",props:{count:{type:Number},size:{type:String,default:"s"}},computed:{icon:function(){return this.count>9?dy:hy[`_${this.count}`]}}};function py(e,t,n,r,o,s){return M(),be(Gs(s.icon),{class:Me(`icon icon--${n.size}`)},null,8,["class"])}const gy=fe(my,[["render",py],["__scopeId","data-v-983060d3"]]),_y={name:"Bike"},vy={width:"1em",height:"1em",viewBox:"0 0 24 24"},by=g("path",{fill:"currentColor",d:"M5 20q-2.125 0-3.562-1.438Q0 17.125 0 15t1.463-3.562Q2.925 10 5 10q1.925 0 3.238 1.15Q9.55 12.3 9.9 14h.65l-1.8-5H8q-.425 0-.713-.288Q7 8.425 7 8t.287-.713Q7.575 7 8 7h3q.425 0 .713.287Q12 7.575 12 8t-.287.712Q11.425 9 11 9h-.1l.35 1h4.8L14.6 6H13q-.425 0-.712-.287Q12 5.425 12 5t.288-.713Q12.575 4 13 4h1.6q.65 0 1.163.35q.512.35.737.95l1.7 4.65h.8q2.075 0 3.538 1.462Q24 12.875 24 14.95q0 2.1-1.45 3.575T19 20q-1.8 0-3.162-1.125Q14.475 17.75 14.1 16H9.9q-.35 1.725-1.7 2.863Q6.85 20 5 20Zm0-2q1.025 0 1.763-.562Q7.5 16.875 7.8 16H6q-.425 0-.713-.288Q5 15.425 5 15t.287-.713Q5.575 14 6 14h1.8q-.3-.9-1.037-1.45Q6.025 12 5 12q-1.275 0-2.138.863Q2 13.725 2 15q0 1.25.862 2.125Q3.725 18 5 18Zm7.7-4h1.4q.125-.575.338-1.075q.212-.5.562-.925h-3.05Zm6.3 4q1.275 0 2.138-.875Q22 16.25 22 15q0-1.275-.862-2.137Q20.275 12 19 12h-.1l.65 1.7q.15.4-.037.762q-.188.363-.563.538q-.4.175-.775-.013q-.375-.187-.525-.587l-.6-1.7q-.5.425-.775 1T16 15q0 1.25.863 2.125Q17.725 18 19 18Z"},null,-1),yy=[by];function wy(e,t,n,r,o,s){return M(),F("svg",vy,yy)}const Ey=fe(_y,[["render",wy]]),Ty={name:"Bus"},Sy={width:"1em",height:"1em",viewBox:"0 0 24 24"},Cy=g("path",{fill:"currentColor",d:"M6.5 21q-.625 0-1.062-.438Q5 20.125 5 19.5v-1.55q-.45-.5-.725-1.113Q4 16.225 4 15.5V6q0-2.075 1.925-3.038Q7.85 2 12 2q4.3 0 6.15.925Q20 3.85 20 6v9.5q0 .725-.275 1.337q-.275.613-.725 1.113v1.55q0 .625-.438 1.062Q18.125 21 17.5 21t-1.062-.438Q16 20.125 16 19.5V19H8v.5q0 .625-.438 1.062Q7.125 21 6.5 21Zm5.55-16h5.6h-11.2h5.6ZM16 12H6h12h-2ZM6 10h12V7H6Zm2.5 6q.625 0 1.062-.438Q10 15.125 10 14.5t-.438-1.062Q9.125 13 8.5 13t-1.062.438Q7 13.875 7 14.5t.438 1.062Q7.875 16 8.5 16Zm7 0q.625 0 1.062-.438Q17 15.125 17 14.5t-.438-1.062Q16.125 13 15.5 13t-1.062.438Q14 13.875 14 14.5t.438 1.062Q14.875 16 15.5 16ZM6.45 5h11.2q-.375-.425-1.612-.713Q14.8 4 12.05 4q-2.675 0-3.913.312Q6.9 4.625 6.45 5ZM8 17h8q.825 0 1.413-.587Q18 15.825 18 15v-3H6v3q0 .825.588 1.413Q7.175 17 8 17Z"},null,-1),Ay=[Cy];function xy(e,t,n,r,o,s){return M(),F("svg",Sy,Ay)}const Ly=fe(Ty,[["render",xy]]),My={name:"Cooler"},Ny={width:"1em",height:"1em",viewBox:"0 0 24 24"},$y=g("path",{fill:"currentColor",d:"m11 17.85l-2.575 2.525q-.275.275-.687.275q-.413 0-.688-.3q-.3-.275-.3-.687q0-.413.3-.713L11 15v-2H9l-3.975 3.975q-.275.275-.687.275q-.413 0-.713-.3q-.275-.275-.275-.688q0-.412.275-.687L6.15 13H2.975q-.425 0-.7-.288Q2 12.425 2 12t.288-.713Q2.575 11 3 11h3.15L3.625 8.45q-.275-.275-.275-.688q0-.412.3-.712q.275-.275.688-.275q.412 0 .712.275L9 11h2V9L7.025 5.05q-.275-.275-.275-.688q0-.412.3-.712q.275-.275.688-.275q.412 0 .687.275L11 6.15V3q0-.425.288-.713Q11.575 2 12 2t.713.287Q13 2.575 13 3v3.15l2.55-2.5q.275-.275.688-.275q.412 0 .712.275q.275.3.275.712q0 .413-.275.688L13 9v2h2l3.95-3.95q.275-.275.688-.275q.412 0 .712.3q.275.275.275.687q0 .413-.275.688L17.85 11H21q.425 0 .712.287q.288.288.288.713t-.288.712Q21.425 13 21 13h-3.15l2.5 2.575q.275.275.275.687q0 .413-.275.688q-.3.3-.712.3q-.413 0-.688-.3L15 13h-2v2l3.95 3.975q.275.275.275.688q0 .412-.3.712q-.275.275-.687.275q-.413 0-.688-.275L13 17.85v3.175q0 .425-.287.7Q12.425 22 12 22t-.712-.288Q11 21.425 11 21Z"},null,-1),Iy=[$y];function Py(e,t,n,r,o,s){return M(),F("svg",Ny,Iy)}const Oy=fe(My,[["render",Py]]),ky={name:"Plug"},Ry={width:"1em",height:"1em",viewBox:"0 0 24 24"},Dy=g("path",{fill:"currentColor",d:"M18 15v-2h2q.425 0 .712.287q.288.288.288.713t-.288.712Q20.425 15 20 15Zm0 4v-2h2q.425 0 .712.288q.288.287.288.712t-.288.712Q20.425 19 20 19Zm-4 1q-.825 0-1.412-.587Q12 18.825 12 18h-2v-4h2q0-.825.588-1.413Q13.175 12 14 12h2q.425 0 .712.287q.288.288.288.713v6q0 .425-.288.712Q16.425 20 16 20Zm-7-3q-1.65 0-2.825-1.175Q3 14.65 3 13q0-1.65 1.175-2.825Q5.35 9 7 9h1.5q.625 0 1.062-.438Q10 8.125 10 7.5t-.438-1.062Q9.125 6 8.5 6H5q-.425 0-.713-.287Q4 5.425 4 5t.287-.713Q4.575 4 5 4h3.5q1.45 0 2.475 1.025Q12 6.05 12 7.5q0 1.45-1.025 2.475Q9.95 11 8.5 11H7q-.825 0-1.412.587Q5 12.175 5 13q0 .825.588 1.412Q6.175 15 7 15h2v2Z"},null,-1),Fy=[Dy];function qy(e,t,n,r,o,s){return M(),F("svg",Ry,Fy)}const Vy=fe(ky,[["render",qy]]),Hy={name:"Heater"},By={width:"1em",height:"1em",viewBox:"0 0 24 24"},Uy=g("path",{fill:"currentColor",d:"M12 22q-3.35 0-5.675-2.325Q4 17.35 4 14q0-2.825 1.675-5.425q1.675-2.6 4.6-4.55q.55-.375 1.138-.038Q12 4.325 12 5v1.3q0 .85.588 1.425q.587.575 1.437.575q.425 0 .813-.187q.387-.188.687-.538q.2-.25.513-.313q.312-.062.587.138Q18.2 8.525 19.1 10.275q.9 1.75.9 3.725q0 3.35-2.325 5.675Q15.35 22 12 22Zm-6-8q0 1.3.525 2.462q.525 1.163 1.5 2.038Q8 18.375 8 18.275v-.225q0-.8.3-1.5t.875-1.275L12 12.5l2.825 2.775q.575.575.875 1.275q.3.7.3 1.5v.225q0 .1-.025.225q.975-.875 1.5-2.038Q18 15.3 18 14q0-1.25-.462-2.363q-.463-1.112-1.338-1.987q-.5.325-1.05.487q-.55.163-1.125.163q-1.55 0-2.687-1.025Q10.2 8.25 10.025 6.75q-1.95 1.65-2.987 3.512Q6 12.125 6 14Zm6 1.3l-1.425 1.4q-.275.275-.425.625q-.15.35-.15.725q0 .8.588 1.375Q11.175 20 12 20t1.413-.575Q14 18.85 14 18.05q0-.4-.15-.738q-.15-.337-.425-.612Z"},null,-1),jy=[Uy];function Qy(e,t,n,r,o,s){return M(),F("svg",By,jy)}const Wy=fe(Hy,[["render",Qy]]),zy={name:"Moped"},Ky={width:"1em",height:"1em",viewBox:"0 0 24 24"},Yy=g("path",{fill:"currentColor",d:"M7 17q-1.25 0-2.125-.875T4 14H3q-.425 0-.712-.288Q2 13.425 2 13v-2q0-1.65 1.175-2.825Q4.35 7 6 7h3q.425 0 .713.287Q10 7.575 10 8v4h3.5L17 7.65V5h-2q-.425 0-.712-.288Q14 4.425 14 4t.288-.713Q14.575 3 15 3h2q.825 0 1.413.587Q19 4.175 19 5v2.65q0 .35-.112.662q-.113.313-.313.588L15.1 13.25q-.275.35-.7.55q-.425.2-.875.2H10q0 1.25-.875 2.125T7 17Zm1-5Zm-1 3q.425 0 .713-.288Q8 14.425 8 14H6q0 .425.287.712Q6.575 15 7 15ZM6 6q-.425 0-.713-.287Q5 5.425 5 5t.287-.713Q5.575 4 6 4h3q.425 0 .713.287Q10 4.575 10 5t-.287.713Q9.425 6 9 6Zm13 11q-1.25 0-2.125-.875T16 14q0-1.25.875-2.125T19 11q1.25 0 2.125.875T22 14q0 1.25-.875 2.125T19 17Zm0-2q.425 0 .712-.288Q20 14.425 20 14t-.288-.713Q19.425 13 19 13t-.712.287Q18 13.575 18 14t.288.712Q18.575 15 19 15Zm-6 8l-6-3h4v-2l6 3h-4ZM4 12h4V9H6q-.825 0-1.412.587Q4 10.175 4 11Z"},null,-1),Zy=[Yy];function Gy(e,t,n,r,o,s){return M(),F("svg",Ky,Zy)}const Xy=fe(zy,[["render",Gy]]),Jy={name:"Motorcycle"},e8={width:"1em",height:"1em",viewBox:"0 0 24 24"},t8=g("path",{fill:"currentColor",d:"M5 19q-2.075 0-3.537-1.462Q0 16.075 0 14q0-2.075 1.463-3.538Q2.925 9 5 9h11.6l-2-2H12q-.425 0-.712-.287Q11 6.425 11 6t.288-.713Q11.575 5 12 5h2.975q.2 0 .388.075q.187.075.337.225l3.75 3.75q1.95.15 3.25 1.575T24 14q0 2.075-1.462 3.538Q21.075 19 19 19q-2.075 0-3.537-1.462Q14 16.075 14 14q0-.45.062-.888q.063-.437.238-.862l-2.175 2.175q-.275.275-.637.425q-.363.15-.763.15H9.9q-.35 1.75-1.725 2.875T5 19Zm14-2q1.25 0 2.125-.875T22 14q0-1.25-.875-2.125T19 11q-1.25 0-2.125.875T16 14q0 1.25.875 2.125T19 17ZM5 17q.95 0 1.713-.55Q7.475 15.9 7.8 15H6q-.425 0-.713-.288Q5 14.425 5 14t.287-.713Q5.575 13 6 13h1.8q-.325-.9-1.087-1.45Q5.95 11 5 11q-1.25 0-2.125.875T2 14q0 1.25.875 2.125T5 17Zm4.95-4h.75l2-2H8.95q.375.425.625.925T9.95 13Zm0-2h-1h3.75h-2Z"},null,-1),n8=[t8];function r8(e,t,n,r,o,s){return M(),F("svg",e8,n8)}const s8=fe(Jy,[["render",r8]]),o8={name:"Scooter"},i8={width:"1em",height:"1em",viewBox:"0 0 24 24"},a8=g("path",{fill:"currentColor",d:"M5 18q-1.25 0-2.125-.875T2 15q0-1.25.875-2.125T5 12q.975 0 1.738.562Q7.5 13.125 7.8 14h5.3q.275-1.7 1.412-2.975Q15.65 9.75 17.3 9.25L15.9 3H13q-.425 0-.712-.288Q12 2.425 12 2t.288-.713Q12.575 1 13 1h2.9q.675 0 1.237.438q.563.437.713 1.112l1.9 8.45H19q-1.65 0-2.825 1.175Q15 13.35 15 15v1H7.8q-.3.875-1.062 1.438Q5.975 18 5 18Zm0-2q.425 0 .713-.288Q6 15.425 6 15t-.287-.713Q5.425 14 5 14t-.713.287Q4 14.575 4 15t.287.712Q4.575 16 5 16Zm14 2q-1.25 0-2.125-.875T16 15q0-1.25.875-2.125T19 12q1.25 0 2.125.875T22 15q0 1.25-.875 2.125T19 18Zm0-2q.425 0 .712-.288Q20 15.425 20 15t-.288-.713Q19.425 14 19 14t-.712.287Q18 14.575 18 15t.288.712Q18.575 16 19 16Zm-6 7l-6-3h4v-2l6 3h-4Zm-8-8Zm14 0Z"},null,-1),l8=[a8];function c8(e,t,n,r,o,s){return M(),F("svg",i8,l8)}const u8=fe(o8,[["render",c8]]),f8={name:"Tractor"},d8={width:"1em",height:"1em",viewBox:"0 0 24 24"},h8=g("path",{fill:"currentColor",d:"M4 9q-.425 0-.712-.288Q3 8.425 3 8t.288-.713Q3.575 7 4 7h3q.825 0 1.412.587Q9 8.175 9 9Zm2 9q1.25 0 2.125-.875T9 15q0-1.25-.875-2.125T6 12q-1.25 0-2.125.875T3 15q0 1.25.875 2.125T6 18Zm13.5 0q.625 0 1.062-.438Q21 17.125 21 16.5t-.438-1.062Q20.125 15 19.5 15t-1.062.438Q18 15.875 18 16.5t.438 1.062Q18.875 18 19.5 18ZM6 16.5q-.625 0-1.062-.438Q4.5 15.625 4.5 15t.438-1.062Q5.375 13.5 6 13.5t1.062.438Q7.5 14.375 7.5 15t-.438 1.062Q6.625 16.5 6 16.5Zm14-3.475q.65.125 1.075.337q.425.213.925.688V8q0-.825-.587-1.412Q20.825 6 20 6h-6.3l-1.05-1.1l1.05-1.05q.15-.15.15-.35q0-.2-.15-.35q-.15-.15-.35-.15q-.2 0-.35.15l-2.825 2.825q-.15.15-.15.363q0 .212.175.362q.15.15.35.15q.2 0 .35-.15l1.05-1.05L13 6.7V9q0 .825-.587 1.412Q11.825 11 11 11H8.975q.575.425.925.875q.35.45.7 1.125h.4q1.65 0 2.825-1.175Q15 10.65 15 9V8h5ZM16.025 16q.15-.675.363-1.088q.212-.412.662-.912H10.9q.1.575.1 1q0 .425-.1 1Zm3.475 4q-1.45 0-2.475-1.025Q16 17.95 16 16.5q0-1.45 1.025-2.475Q18.05 13 19.5 13q1.45 0 2.475 1.025Q23 15.05 23 16.5q0 1.45-1.025 2.475Q20.95 20 19.5 20ZM6 20q-2.075 0-3.537-1.462Q1 17.075 1 15q0-2.075 1.463-3.538Q3.925 10 6 10t3.538 1.462Q11 12.925 11 15q0 2.075-1.462 3.538Q8.075 20 6 20Zm9.825-9Z"},null,-1),m8=[h8];function p8(e,t,n,r,o,s){return M(),F("svg",d8,m8)}const g8=fe(f8,[["render",p8]]),_8={name:"Van"},v8={width:"1em",height:"1em",viewBox:"0 0 24 24"},b8=g("path",{fill:"currentColor",d:"M6 20q-1.25 0-2.125-.875T3 17q-.825 0-1.412-.587Q1 15.825 1 15V6q0-.825.588-1.412Q2.175 4 3 4h12q.825 0 1.413.588Q17 5.175 17 6v2h2.5q.25 0 .45.1t.35.3l2.5 3.325q.1.125.15.275q.05.15.05.325V16q0 .425-.288.712Q22.425 17 22 17h-1q0 1.25-.875 2.125T18 20q-1.25 0-2.125-.875T15 17H9q0 1.25-.875 2.125T6 20Zm0-2q.425 0 .713-.288Q7 17.425 7 17t-.287-.712Q6.425 16 6 16t-.713.288Q5 16.575 5 17t.287.712Q5.575 18 6 18ZM3 6v9h.8q.425-.45.975-.725Q5.325 14 6 14t1.225.275q.55.275.975.725H15V6H3Zm15 12q.425 0 .712-.288Q19 17.425 19 17t-.288-.712Q18.425 16 18 16t-.712.288Q17 16.575 17 17t.288.712Q17.575 18 18 18Zm-1-5h4.25L19 10h-2Zm-8-2.5Z"},null,-1),y8=[b8];function w8(e,t,n,r,o,s){return M(),F("svg",v8,y8)}const E8=fe(_8,[["render",w8]]),T8={name:"WaterHeater"},S8={width:"1em",height:"1em",viewBox:"0 0 24 24"},C8=g("path",{fill:"currentColor",d:"M6 22q-.825 0-1.412-.587Q4 20.825 4 20V6q0-1.65 1.175-2.825Q6.35 2 8 2h8q1.65 0 2.825 1.175Q20 4.35 20 6v14q0 .825-.587 1.413Q18.825 22 18 22Zm0-4v2h12v-2q-.75 0-1.2.5q-.45.5-1.8.5t-1.762-.5Q12.825 18 12 18t-1.237.5Q10.35 19 9 19q-1.35 0-1.762-.5Q6.825 18 6 18Zm3-1q.825 0 1.238-.5Q10.65 16 12 16t1.8.5q.45.5 1.2.5t1.2-.5q.45-.5 1.8-.5V6q0-.825-.587-1.412Q16.825 4 16 4H8q-.825 0-1.412.588Q6 5.175 6 6v10q1.35 0 1.763.5q.412.5 1.237.5Zm3.125-2.05q-1.65 0-2.875-1.088q-1.225-1.087-1.225-2.787q0-.575.163-1.188q.162-.612.587-1.212q.075-.125.213-.2q.137-.075.312-.075q.1 0 .15.062q.05.063.05.138q-.025.15-.037.287q-.013.138-.013.263q0 .75.313 1.312q.312.563.562.563q.15 0 .213-.1q.062-.1.062-.225t-.05-.288L10.425 10q-.05-.2-.1-.488q-.05-.287-.05-.662q0-1.35.612-2.313q.613-.962 1.738-1.462q.1-.05.138-.063Q12.8 5 12.875 5q.075 0 .113.05q.037.05.012.125q-.1.275-.137.487q-.038.213-.038.488q0 .8.438 1.425q.437.625 1.162 1.125q.775.525 1.125 1.288q.35.762.35 1.562q0 1.275-1 2.337q-1 1.063-2.775 1.063Zm.125-1.675q.7 0 1.175-.5q.475-.5.475-1.175q0-.4-.212-.713q-.213-.312-.513-.562q-.3-.25-.5-.5t-.3-.525q-.25.225-.3.512q-.05.288.025.688q.05.275.075.512q.025.238.025.438q0 .5-.325.9t-.775.475q.2.2.538.325q.337.125.612.125ZM12 12Z"},null,-1),A8=[C8];function x8(e,t,n,r,o,s){return M(),F("svg",S8,A8)}const L8=fe(T8,[["render",x8]]),M8={bike:Ey,bus:Ly,car:"shopicon-regular-car3",cooler:Oy,generic:Vy,heater:Wy,moped:Xy,motorcycle:s8,scooter:u8,tractor:g8,van:E8,waterheater:L8},N8={name:"VehicleIcon",components:{MultiIcon:gy},props:{name:{type:String,default:"car"},names:{type:Array},size:{type:String,default:"s"}},computed:{uniqueNames:function(){return[...new Set(this.names||[this.name])]},count:function(){return this.names.length},single:function(){return this.uniqueNames.length==1},singleIcon:function(){return M8[this.uniqueNames[0]]||"shopicon-regular-car3"}}};function $8(e,t,n,r,o,s){const i=de("MultiIcon");return s.single?(M(),be(Gs(s.singleIcon),{key:0,class:Me(`icon icon--${n.size}`)},null,8,["class"])):(M(),be(i,{key:1,count:s.count,size:n.size},null,8,["count","size"]))}const Da=fe(N8,[["render",$8],["__scopeId","data-v-af1c6f18"]]);var I8='';class P8 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=I8}}window.customElements.define("shopicon-regular-sun",P8);var O8='';class k8 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=O8}}window.customElements.define("shopicon-regular-home",k8);const R8={name:"Visualization",components:{BatteryIcon:Yd,LabelBar:e5,AnimatedNumber:kn,VehicleIcon:Da},mixins:[dt],props:{gridImport:{type:Number,default:0},selfConsumption:{type:Number,default:0},pvExport:{type:Number,default:0},loadpoints:{type:Number,default:0},batteryCharge:{type:Number,default:0},batteryDischarge:{type:Number,default:0},pvProduction:{type:Number,default:0},homePower:{type:Number,default:0},batterySoc:{type:Number,default:0},valuesInKw:{type:Boolean,default:!1},vehicleIcons:{type:Array}},data:function(){return{width:0,visualizationReady:!1}},computed:{gridExport:function(){return this.applyThreshold(this.pvExport)},totalRaw:function(){return this.gridImport+this.selfConsumption+this.pvExport},gridImportAdjusted:function(){return this.applyThreshold(this.gridImport)},selfConsumptionAdjusted:function(){return this.applyThreshold(this.selfConsumption)},pvExportAdjusted:function(){return this.applyThreshold(this.pvExport)},totalAdjusted:function(){return this.gridImportAdjusted+this.selfConsumptionAdjusted+this.pvExportAdjusted}},watch:{totalAdjusted:function(){!this.visualizationReady&&this.totalAdjusted>0&&setTimeout(()=>{this.visualizationReady=!0},500)}},mounted:function(){this.$nextTick(function(){window.addEventListener("resize",this.updateElementWidth),this.updateElementWidth()})},beforeUnmount(){window.removeEventListener("resize",this.updateElementWidth)},methods:{widthTotal:function(e){return this.totalAdjusted===0?"0%":100/this.totalAdjusted*e+"%"},fmtBarValue:function(e){const t=this.powerLabelEnoughSpace(e);return this.fmtKw(e,this.valuesInKw,t)},powerLabelAvailableSpace(e){if(this.totalAdjusted===0)return 0;const t=100/this.totalAdjusted*e;return this.width/100*t},powerLabelEnoughSpace(e){return this.powerLabelAvailableSpace(e)>60},powerLabelSomeSpace(e){return this.powerLabelAvailableSpace(e)>35},hideLabelIcon(e,t=32){if(this.totalAdjusted===0)return!0;const n=100/this.totalAdjusted*e;return this.width/100*n(tt("data-v-7c8608db"),e=e(),nt(),e),D8={class:"label-scale d-flex"},F8={class:"d-flex justify-content-start flex-grow-1"},q8=pr(()=>g("shopicon-regular-sun",null,null,-1)),V8=pr(()=>g("shopicon-regular-powersupply",null,null,-1)),H8=pr(()=>g("div",{class:"label-scale-name"},"In",-1)),B8={ref:"site_progress",class:"site-progress"},U8={key:0,class:"site-progress-bar bg-light border no-wrap w-100 text-dark"},j8={class:"label-scale d-flex"},Q8={class:"d-flex justify-content-start flex-grow-1"},W8=pr(()=>g("shopicon-regular-home",null,null,-1)),z8=pr(()=>g("shopicon-regular-powersupply",null,null,-1)),K8=pr(()=>g("div",{class:"label-scale-name"},"Out",-1));function Y8(e,t,n,r,o,s){const i=de("LabelBar"),a=de("BatteryIcon"),l=de("AnimatedNumber"),c=de("VehicleIcon");return M(),F("div",{class:Me(["visualization",{"visualization--ready":e.visualizationReady}])},[g("div",D8,[g("div",F8,[re(i,St(yt(s.labelBarProps("top","pvProduction"))),{default:Ve(()=>[q8]),_:1},16),re(i,St(yt(s.labelBarProps("top","batteryDischarge"))),{default:Ve(()=>[re(a,{soc:n.batterySoc},null,8,["soc"])]),_:1},16),re(i,St(yt(s.labelBarProps("top","gridImport"))),{default:Ve(()=>[V8]),_:1},16)]),H8]),g("div",B8,[g("div",{class:"site-progress-bar self-consumption",style:ft({width:s.widthTotal(s.selfConsumptionAdjusted)})},[n.selfConsumption?(M(),be(l,{key:0,class:"power",to:n.selfConsumption,format:s.fmtBarValue},null,8,["to","format"])):ye("",!0)],4),g("div",{class:"site-progress-bar grid-import",style:ft({width:s.widthTotal(s.gridImportAdjusted)})},[n.gridImport?(M(),be(l,{key:0,class:"power",to:n.gridImport,format:s.fmtBarValue},null,8,["to","format"])):ye("",!0)],4),g("div",{class:"site-progress-bar pv-export",style:ft({width:s.widthTotal(s.pvExportAdjusted)})},[n.pvExport?(M(),be(l,{key:0,class:"power",to:n.pvExport,format:s.fmtBarValue},null,8,["to","format"])):ye("",!0)],4),s.totalAdjusted<=0?(M(),F("div",U8,[g("span",null,B(e.$t("main.energyflow.noEnergy")),1)])):ye("",!0)],512),g("div",j8,[g("div",Q8,[re(i,St(yt(s.labelBarProps("bottom","homePower"))),{default:Ve(()=>[W8]),_:1},16),re(i,St(yt(s.labelBarProps("bottom","loadpoints"))),{default:Ve(()=>[re(c,{names:n.vehicleIcons},null,8,["names"])]),_:1},16),re(i,St(yt(s.labelBarProps("bottom","batteryCharge"))),{default:Ve(()=>[re(a,{soc:n.batterySoc},null,8,["soc"])]),_:1},16),re(i,St(yt(s.labelBarProps("bottom","gridExport"))),{default:Ve(()=>[z8]),_:1},16)]),K8])],2)}const Z8=fe(R8,[["render",Y8],["__scopeId","data-v-7c8608db"]]);var G8='';class X8 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=G8}}window.customElements.define("shopicon-regular-powersupply",X8);const J8={name:"EnergyflowEntry",components:{BatteryIcon:Yd,AnimatedNumber:kn,VehicleIcon:Da},mixins:[dt],props:{name:{type:String},icon:{type:String},power:{type:Number},soc:{type:Number},valuesInKw:{type:Boolean},vehicleIcons:{type:Array}},computed:{active:function(){return this.power>10},isBattery:function(){return this.icon==="battery"},isVehicle:function(){return this.icon==="vehicle"},hasSoc:function(){return this.isBattery&&!isNaN(this.soc)}},methods:{kw:function(e){return this.fmtKw(e,this.valuesInKw)}}},e4={class:"d-flex flex-nowrap"},t4={class:"text-nowrap flex-grow-1 ms-3"},n4={class:"text-end text-nowrap ps-1 fw-bold"},r4={key:0};function s4(e,t,n,r,o,s){const i=de("BatteryIcon"),a=de("VehicleIcon"),l=de("AnimatedNumber");return M(),F("div",{class:Me(["d-flex justify-content-between mb-2 entry",{"evcc-gray":!s.active}])},[g("span",e4,[s.isBattery?(M(),be(i,{key:0,soc:n.soc},null,8,["soc"])):s.isVehicle?(M(),be(a,{key:1,names:n.vehicleIcons},null,8,["names"])):(M(),be(Gs(`shopicon-regular-${n.icon}`),{key:2}))]),g("span",t4,B(n.name),1),g("span",n4,[s.hasSoc?(M(),F("span",r4,B(n.soc)+"% / ",1)):ye("",!0),re(l,{to:n.power,format:s.kw},null,8,["to","format"])])],2)}const o4=fe(J8,[["render",s4],["__scopeId","data-v-81902892"]]),i4={name:"Energyflow",components:{Visualization:Z8,EnergyflowEntry:o4,AnimatedNumber:kn},mixins:[dt],props:{gridConfigured:Boolean,gridPower:{type:Number,default:0},homePower:{type:Number,default:0},pvConfigured:Boolean,pvPower:{type:Number,default:0},loadpointsPower:{type:Number,default:0},activeLoadpointsCount:{type:Number,default:0},batteryConfigured:Boolean,batteryPower:{type:Number,default:0},batterySoc:{type:Number,default:0},vehicleIcons:{type:Array}},data:()=>({detailsOpen:!1,detailsCompleteHeight:null}),computed:{gridImport:function(){return Math.max(0,this.gridPower)},pvProduction:function(){return Math.abs(this.pvPower)},batteryPowerAdjusted:function(){return Math.abs(this.batteryPower)<50?0:this.batteryPower},batteryDischarge:function(){return Math.abs(Math.max(0,this.batteryPowerAdjusted))},batteryCharge:function(){return Math.abs(Math.min(0,this.batteryPowerAdjusted)*-1)},selfConsumption:function(){const e=this.batteryDischarge+this.pvProduction,t=this.homePower+this.batteryCharge+this.loadpointsPower;return Math.min(e,t)},pvExport:function(){return Math.max(0,this.gridPower*-1)},valuesInKw:function(){return this.gridImport+this.selfConsumption+this.pvExport>1e3},inPower:function(){return this.gridImport+this.pvProduction+this.batteryDischarge},outPower:function(){return this.homePower+this.loadpointsPower+this.pvExport+this.batteryCharge},detailsHeight:function(){return this.detailsOpen?this.detailsCompleteHeight+"px":0}},mounted(){window.addEventListener("resize",this.updateHeight)},unmounted(){window.removeEventListener("resize",this.updateHeight)},methods:{kw:function(e){return this.fmtKw(e,this.valuesInKw)},toggleDetails:function(){this.updateHeight(),this.detailsOpen=!this.detailsOpen},updateHeight:function(){this.detailsCompleteHeight=this.$refs.detailsInner.offsetHeight}}},rs=e=>(tt("data-v-5feb2a53"),e=e(),nt(),e),a4={class:"row"},l4={ref:"detailsInner",class:"details-inner row"},c4={class:"col-12 d-flex justify-content-between pt-2 mb-4"},u4={class:"d-flex flex-nowrap align-items-center"},f4=rs(()=>g("span",{class:"color-self me-2"},[g("shopicon-filled-square")],-1)),d4={key:0,class:"d-flex flex-nowrap align-items-center"},h4=rs(()=>g("span",{class:"color-grid ms-2"},[g("shopicon-filled-square")],-1)),m4={key:1,class:"d-flex flex-nowrap align-items-center"},p4=rs(()=>g("span",{class:"color-export ms-2"},[g("shopicon-filled-square")],-1)),g4={class:"col-12 col-md-6 pe-md-5 pb-4 d-flex flex-column justify-content-between"},_4={class:"d-flex justify-content-between align-items-end mb-4"},v4=rs(()=>g("h3",{class:"m-0"},"In",-1)),b4={class:"fw-bold"},y4={class:"col-12 col-md-6 ps-md-5 pb-4 d-flex flex-column justify-content-between"},w4={class:"d-flex justify-content-between align-items-end mb-4"},E4=rs(()=>g("h3",{class:"m-0"},"Out",-1)),T4={class:"fw-bold"};function S4(e,t,n,r,o,s){const i=de("Visualization"),a=de("AnimatedNumber"),l=de("EnergyflowEntry");return M(),F("div",{class:Me(["energyflow cursor-pointer position-relative",{"energyflow--open":e.detailsOpen}]),onClick:t[0]||(t[0]=(...c)=>s.toggleDetails&&s.toggleDetails(...c))},[g("div",a4,[re(i,{class:"col-12 mb-3 mb-md-4",gridImport:s.gridImport,selfConsumption:s.selfConsumption,loadpoints:n.loadpointsPower,pvExport:s.pvExport,batteryCharge:s.batteryCharge,batteryDischarge:s.batteryDischarge,pvProduction:s.pvProduction,homePower:n.homePower,batterySoc:n.batterySoc,valuesInKw:s.valuesInKw,vehicleIcons:n.vehicleIcons},null,8,["gridImport","selfConsumption","loadpoints","pvExport","batteryCharge","batteryDischarge","pvProduction","homePower","batterySoc","valuesInKw","vehicleIcons"])]),g("div",{class:"details",style:ft({height:s.detailsHeight})},[g("div",l4,[g("div",c4,[g("div",u4,[f4,g("span",null,B(e.$t("main.energyflow.selfConsumption")),1)]),s.gridImport>0?(M(),F("div",d4,[g("span",null,B(e.$t("main.energyflow.gridImport")),1),h4])):(M(),F("div",m4,[g("span",null,B(e.$t("main.energyflow.pvExport")),1),p4]))]),g("div",g4,[g("div",_4,[v4,g("span",b4,[re(a,{to:s.inPower,format:s.kw},null,8,["to","format"])])]),g("div",null,[re(l,{name:e.$t("main.energyflow.pvProduction"),icon:"sun",power:s.pvProduction,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),n.batteryConfigured?(M(),be(l,{key:0,name:e.$t("main.energyflow.batteryDischarge"),icon:"battery",soc:n.batterySoc,power:s.batteryDischarge,valuesInKw:s.valuesInKw},null,8,["name","soc","power","valuesInKw"])):ye("",!0),re(l,{name:e.$t("main.energyflow.gridImport"),icon:"powersupply",power:s.gridImport,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"])])]),g("div",y4,[g("div",w4,[E4,g("span",T4,[re(a,{to:s.outPower,format:s.kw},null,8,["to","format"])])]),g("div",null,[re(l,{name:e.$t("main.energyflow.homePower"),icon:"home",power:n.homePower,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"]),re(l,{name:e.$tc("main.energyflow.loadpoints",n.activeLoadpointsCount,{count:n.activeLoadpointsCount}),icon:"vehicle",vehicleIcons:n.vehicleIcons,power:n.loadpointsPower,valuesInKw:s.valuesInKw},null,8,["name","vehicleIcons","power","valuesInKw"]),n.batteryConfigured?(M(),be(l,{key:0,name:e.$t("main.energyflow.batteryCharge"),icon:"battery",soc:n.batterySoc,power:s.batteryCharge,valuesInKw:s.valuesInKw},null,8,["name","soc","power","valuesInKw"])):ye("",!0),re(l,{name:e.$t("main.energyflow.pvExport"),icon:"powersupply",power:s.pvExport,valuesInKw:s.valuesInKw},null,8,["name","power","valuesInKw"])])])],512)],4)],2)}const Xc=fe(i4,[["render",S4],["__scopeId","data-v-5feb2a53"]]);var C4='';class A4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=C4}}window.customElements.define("shopicon-filled-circle",A4);var x4='';class L4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=x4}}window.customElements.define("shopicon-regular-lightning",L4);var M4='';class N4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=M4}}window.customElements.define("shopicon-regular-adjust",N4);const $4={name:"Mode",props:{mode:String},emits:["updated"],data(){return{modes:["off","pv","minpv","now"]}},methods:{isActive:function(e){return this.mode===e},setTargetMode:function(e){this.$emit("updated",e)}}},I4={class:"mode-group border d-inline-flex",role:"group"},P4=["onClick"];function O4(e,t,n,r,o,s){return M(),F("div",I4,[(M(!0),F(Se,null,He(o.modes,i=>(M(),F("button",{key:i,type:"button",class:Me(["btn flex-grow-1 flex-shrink-1",{active:s.isActive(i)}]),onClick:a=>s.setTargetMode(i)},B(e.$t(`main.mode.${i}`)),11,P4))),128))])}const k4=fe($4,[["render",O4],["__scopeId","data-v-fd0f9db5"]]),vo={methods:{collectProps:function(e){let t={};for(var n in e.props)n in this&&(t[n]=this[n]);return t}}},R4={name:"LabelAndValue",components:{AnimatedNumber:kn},props:{label:String,value:[Number,String],valueFmt:Function,extraValue:String,align:{type:String,default:"center"}},computed:{labelClass(){return`text-${this.align}`},valueClass(){return`justify-content-${this.align}`}}},D4={class:"root"},F4={key:1},q4={key:2,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function V4(e,t,n,r,o,s){const i=de("AnimatedNumber");return M(),F("div",D4,[g("div",{class:Me(["mb-2 label",s.labelClass])},B(n.label),3),Xs(e.$slots,"default",{},()=>[g("h3",{class:Me(["value m-0 d-block d-sm-flex align-items-baseline",s.valueClass])},[n.valueFmt?(M(),be(i,{key:0,to:n.value,format:n.valueFmt},null,8,["to","format"])):(M(),F("span",F4,B(n.value),1)),n.extraValue?(M(),F("div",q4,B(n.extraValue),1)):ye("",!0)],2)],!0)])}const ss=fe(R4,[["render",V4],["__scopeId","data-v-2a1fddd7"]]);var H4='';class B4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=H4}}window.customElements.define("shopicon-regular-refresh",B4);var U4='';class j4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=U4}}window.customElements.define("shopicon-regular-cablecharge",j4);var Zd={exports:{}},_s={exports:{}};/*! * Bootstrap sanitizer.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Xc;function Zd(){return Xc||(Xc=1,function(e,t){(function(n,r){r(t)})(et,function(n){const r=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),o=/^aria-[\w-]*$/i,s=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,i=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,a=(u,f)=>{const h=u.nodeName.toLowerCase();return f.includes(h)?r.has(h)?Boolean(s.test(u.nodeValue)||i.test(u.nodeValue)):!0:f.filter(p=>p instanceof RegExp).some(p=>p.test(h))},l={"*":["class","dir","id","lang","role",o],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function c(u,f,h){if(!u.length)return u;if(h&&typeof h=="function")return h(u);const w=new window.DOMParser().parseFromString(u,"text/html"),b=[].concat(...w.body.querySelectorAll("*"));for(const T of b){const _=T.nodeName.toLowerCase();if(!Object.keys(f).includes(_)){T.remove();continue}const S=[].concat(...T.attributes),A=[].concat(f["*"]||[],f[_]||[]);for(const y of S)a(y,A)||T.removeAttribute(y.nodeName)}return w.body.innerHTML}n.DefaultAllowlist=l,n.sanitizeHtml=c,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(_s,_s.exports)),_s.exports}var Qo={exports:{}};/*! + */var Jc;function Gd(){return Jc||(Jc=1,function(e,t){(function(n,r){r(t)})(et,function(n){const r=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),o=/^aria-[\w-]*$/i,s=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,i=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,a=(u,f)=>{const h=u.nodeName.toLowerCase();return f.includes(h)?r.has(h)?Boolean(s.test(u.nodeValue)||i.test(u.nodeValue)):!0:f.filter(p=>p instanceof RegExp).some(p=>p.test(h))},l={"*":["class","dir","id","lang","role",o],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]};function c(u,f,h){if(!u.length)return u;if(h&&typeof h=="function")return h(u);const w=new window.DOMParser().parseFromString(u,"text/html"),b=[].concat(...w.body.querySelectorAll("*"));for(const T of b){const _=T.nodeName.toLowerCase();if(!Object.keys(f).includes(_)){T.remove();continue}const S=[].concat(...T.attributes),A=[].concat(f["*"]||[],f[_]||[]);for(const y of S)a(y,A)||T.removeAttribute(y.nodeName)}return w.body.innerHTML}n.DefaultAllowlist=l,n.sanitizeHtml=c,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})}(_s,_s.exports)),_s.exports}var Qo={exports:{}};/*! * Bootstrap template-factory.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */var Jc;function U4(){return Jc||(Jc=1,function(e,t){(function(n,r){e.exports=r(Zd(),It(),Gr(),so())})(et,function(n,r,o,s){const i=w=>w&&typeof w=="object"&&"default"in w?w:{default:w},a=i(o),l=i(s),c="TemplateFactory",u={allowList:n.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},f={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},h={entry:"(string|element|function|null)",selector:"(string|element)"};class p extends l.default{constructor(b){super(),this._config=this._getConfig(b)}static get Default(){return u}static get DefaultType(){return f}static get NAME(){return c}getContent(){return Object.values(this._config.content).map(b=>this._resolvePossibleFunction(b)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(b){return this._checkContent(b),this._config.content={...this._config.content,...b},this}toHtml(){const b=document.createElement("div");b.innerHTML=this._maybeSanitize(this._config.template);for(const[S,A]of Object.entries(this._config.content))this._setContent(b,A,S);const T=b.children[0],_=this._resolvePossibleFunction(this._config.extraClass);return _&&T.classList.add(..._.split(" ")),T}_typeCheckConfig(b){super._typeCheckConfig(b),this._checkContent(b.content)}_checkContent(b){for(const[T,_]of Object.entries(b))super._typeCheckConfig({selector:T,entry:_},h)}_setContent(b,T,_){const S=a.default.findOne(_,b);if(!!S){if(T=this._resolvePossibleFunction(T),!T){S.remove();return}if(r.isElement(T)){this._putElementInTemplate(r.getElement(T),S);return}if(this._config.html){S.innerHTML=this._maybeSanitize(T);return}S.textContent=T}}_maybeSanitize(b){return this._config.sanitize?n.sanitizeHtml(b,this._config.allowList,this._config.sanitizeFn):b}_resolvePossibleFunction(b){return typeof b=="function"?b(this):b}_putElementInTemplate(b,T){if(this._config.html){T.innerHTML="",T.append(b);return}T.textContent=b.textContent}}return p})}(Qo)),Qo.exports}/*! + */var eu;function Q4(){return eu||(eu=1,function(e,t){(function(n,r){e.exports=r(Gd(),It(),Gr(),so())})(et,function(n,r,o,s){const i=w=>w&&typeof w=="object"&&"default"in w?w:{default:w},a=i(o),l=i(s),c="TemplateFactory",u={allowList:n.DefaultAllowlist,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},f={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},h={entry:"(string|element|function|null)",selector:"(string|element)"};class p extends l.default{constructor(b){super(),this._config=this._getConfig(b)}static get Default(){return u}static get DefaultType(){return f}static get NAME(){return c}getContent(){return Object.values(this._config.content).map(b=>this._resolvePossibleFunction(b)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(b){return this._checkContent(b),this._config.content={...this._config.content,...b},this}toHtml(){const b=document.createElement("div");b.innerHTML=this._maybeSanitize(this._config.template);for(const[S,A]of Object.entries(this._config.content))this._setContent(b,A,S);const T=b.children[0],_=this._resolvePossibleFunction(this._config.extraClass);return _&&T.classList.add(..._.split(" ")),T}_typeCheckConfig(b){super._typeCheckConfig(b),this._checkContent(b.content)}_checkContent(b){for(const[T,_]of Object.entries(b))super._typeCheckConfig({selector:T,entry:_},h)}_setContent(b,T,_){const S=a.default.findOne(_,b);if(!!S){if(T=this._resolvePossibleFunction(T),!T){S.remove();return}if(r.isElement(T)){this._putElementInTemplate(r.getElement(T),S);return}if(this._config.html){S.innerHTML=this._maybeSanitize(T);return}S.textContent=T}}_maybeSanitize(b){return this._config.sanitize?n.sanitizeHtml(b,this._config.allowList,this._config.sanitizeFn):b}_resolvePossibleFunction(b){return typeof b=="function"?b(this):b}_putElementInTemplate(b,T){if(this._config.html){T.innerHTML="",T.append(b);return}T.textContent=b.textContent}}return p})}(Qo)),Qo.exports}/*! * Bootstrap tooltip.js v5.2.3 (https://getbootstrap.com/) * Copyright 2011-2022 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) - */(function(e,t){(function(n,r){e.exports=r(Kf,It(),Zd(),On(),ro(),na(),U4())})(et,function(n,r,o,s,i,a,l){const c=W=>W&&typeof W=="object"&&"default"in W?W:{default:W};function u(W){if(W&&W.__esModule)return W;const L=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(W){for(const q in W)if(q!=="default"){const J=Object.getOwnPropertyDescriptor(W,q);Object.defineProperty(L,q,J.get?J:{enumerable:!0,get:()=>W[q]})}}return L.default=W,Object.freeze(L)}const f=u(n),h=c(s),p=c(i),w=c(a),b=c(l),T="tooltip",_=new Set(["sanitize","allowList","sanitizeFn"]),S="fade",A="modal",y="show",C=".tooltip-inner",x=`.${A}`,P="hide.bs.modal",K="hover",Y="focus",ee="click",ne="manual",R="hide",X="hidden",I="show",N="shown",Z="inserted",G="click",te="focusin",le="focusout",he="mouseenter",ae="mouseleave",me={AUTO:"auto",TOP:"top",RIGHT:r.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:r.isRTL()?"right":"left"},Te={allowList:o.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},pe={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class H extends w.default{constructor(L,q){if(typeof f>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(L,q),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Te}static get DefaultType(){return pe}static get NAME(){return T}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),h.default.off(this._element.closest(x),P,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const L=h.default.trigger(this._element,this.constructor.eventName(I)),J=(r.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(L.defaultPrevented||!J)return;this._disposePopper();const ue=this._getTipElement();this._element.setAttribute("aria-describedby",ue.getAttribute("id"));const{container:ie}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(ie.append(ue),h.default.trigger(this._element,this.constructor.eventName(Z))),this._popper=this._createPopper(ue),ue.classList.add(y),"ontouchstart"in document.documentElement)for(const d of[].concat(...document.body.children))h.default.on(d,"mouseover",r.noop);const v=()=>{h.default.trigger(this._element,this.constructor.eventName(N)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(v,this.tip,this._isAnimated())}hide(){if(!this._isShown()||h.default.trigger(this._element,this.constructor.eventName(R)).defaultPrevented)return;if(this._getTipElement().classList.remove(y),"ontouchstart"in document.documentElement)for(const ue of[].concat(...document.body.children))h.default.off(ue,"mouseover",r.noop);this._activeTrigger[ee]=!1,this._activeTrigger[Y]=!1,this._activeTrigger[K]=!1,this._isHovered=null;const J=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),h.default.trigger(this._element,this.constructor.eventName(X)))};this._queueCallback(J,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(L){const q=this._getTemplateFactory(L).toHtml();if(!q)return null;q.classList.remove(S,y),q.classList.add(`bs-${this.constructor.NAME}-auto`);const J=r.getUID(this.constructor.NAME).toString();return q.setAttribute("id",J),this._isAnimated()&&q.classList.add(S),q}setContent(L){this._newContent=L,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(L){return this._templateFactory?this._templateFactory.changeContent(L):this._templateFactory=new b.default({...this._config,content:L,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[C]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(L){return this.constructor.getOrCreateInstance(L.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(S)}_isShown(){return this.tip&&this.tip.classList.contains(y)}_createPopper(L){const q=typeof this._config.placement=="function"?this._config.placement.call(this,L,this._element):this._config.placement,J=me[q.toUpperCase()];return f.createPopper(this._element,L,this._getPopperConfig(J))}_getOffset(){const{offset:L}=this._config;return typeof L=="string"?L.split(",").map(q=>Number.parseInt(q,10)):typeof L=="function"?q=>L(q,this._element):L}_resolvePossibleFunction(L){return typeof L=="function"?L.call(this._element):L}_getPopperConfig(L){const q={placement:L,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:J=>{this._getTipElement().setAttribute("data-popper-placement",J.state.placement)}}]};return{...q,...typeof this._config.popperConfig=="function"?this._config.popperConfig(q):this._config.popperConfig}}_setListeners(){const L=this._config.trigger.split(" ");for(const q of L)if(q==="click")h.default.on(this._element,this.constructor.eventName(G),this._config.selector,J=>{this._initializeOnDelegatedTarget(J).toggle()});else if(q!==ne){const J=q===K?this.constructor.eventName(he):this.constructor.eventName(te),ue=q===K?this.constructor.eventName(ae):this.constructor.eventName(le);h.default.on(this._element,J,this._config.selector,ie=>{const v=this._initializeOnDelegatedTarget(ie);v._activeTrigger[ie.type==="focusin"?Y:K]=!0,v._enter()}),h.default.on(this._element,ue,this._config.selector,ie=>{const v=this._initializeOnDelegatedTarget(ie);v._activeTrigger[ie.type==="focusout"?Y:K]=v._element.contains(ie.relatedTarget),v._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},h.default.on(this._element.closest(x),P,this._hideModalHandler)}_fixTitle(){const L=this._element.getAttribute("title");!L||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",L),this._element.setAttribute("data-bs-original-title",L),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(L,q){clearTimeout(this._timeout),this._timeout=setTimeout(L,q)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(L){const q=p.default.getDataAttributes(this._element);for(const J of Object.keys(q))_.has(J)&&delete q[J];return L={...q,...typeof L=="object"&&L?L:{}},L=this._mergeConfigObj(L),L=this._configAfterMerge(L),this._typeCheckConfig(L),L}_configAfterMerge(L){return L.container=L.container===!1?document.body:r.getElement(L.container),typeof L.delay=="number"&&(L.delay={show:L.delay,hide:L.delay}),typeof L.title=="number"&&(L.title=L.title.toString()),typeof L.content=="number"&&(L.content=L.content.toString()),L}_getDelegateConfig(){const L={};for(const q in this._config)this.constructor.Default[q]!==this._config[q]&&(L[q]=this._config[q]);return L.selector=!1,L.trigger="manual",L}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(L){return this.each(function(){const q=H.getOrCreateInstance(this,L);if(typeof L=="string"){if(typeof q[L]>"u")throw new TypeError(`No method named "${L}"`);q[L]()}})}}return r.defineJQueryPlugin(H),H})})(Yd);const Gd=au(Yd.exports);var j4='';class Q4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=j4}}window.customElements.define("shopicon-filled-options",Q4);const W4={name:"VehicleOptions",props:{id:[String,Number],vehicles:Array,isUnknown:Boolean},emits:["change-vehicle","remove-vehicle"],computed:{dropdownId(){return`vehicleOptionsDropdown${this.id}`}},mounted(){this.dropdown=new Yf(document.getElementById(this.dropdownId))},unmounted(){var e;(e=this.dropdown)==null||e.dispose()},methods:{changeVehicle(e){this.$emit("change-vehicle",e+1)},removeVehicle(){this.$emit("remove-vehicle")}}},z4=["id"],K4=["aria-labelledby"],Y4={class:"dropdown-header"},Z4=["onClick"],G4={key:0};function X4(e,t,n,r,o,s){return M(),F("div",null,[g("div",{id:s.dropdownId,role:"button",tabindex:"0","data-bs-toggle":"dropdown","aria-expanded":"false"},[Xs(e.$slots,"default")],8,z4),g("ul",{class:"dropdown-menu dropdown-menu-start","aria-labelledby":s.dropdownId},[g("li",null,[g("h6",Y4,B(e.$t("main.vehicle.changeVehicle")),1)]),(M(!0),F(Se,null,He(n.vehicles,i=>(M(),F("li",{key:i},[g("button",{type:"button",class:"dropdown-item",onClick:a=>s.changeVehicle(i.id)},B(i.title),9,Z4)]))),128)),n.isUnknown?ye("",!0):(M(),F("li",G4,[g("button",{type:"button",class:"dropdown-item",onClick:t[0]||(t[0]=i=>s.removeVehicle())},B(e.$t("main.vehicle.unknown")),1)]))],8,K4)])}const J4=fe(W4,[["render",X4]]),ew={name:"VehicleTitle",components:{VehicleOptions:J4,VehicleIcon:Ra},props:{id:[String,Number],vehiclePresent:Boolean,vehicleTitle:String,vehicleIcon:String,vehicleDetectionActive:Boolean,parked:Boolean,connected:Boolean,vehicles:{type:Array,default:()=>[]}},emits:["change-vehicle","remove-vehicle"],computed:{icon(){return this.vehicleDetectionActive?"refresh":this.connected||this.parked?"vehicle":null},name(){return this.vehiclePresent||this.parked?this.vehicleTitle||this.$t("main.vehicle.fallbackName"):this.connected?this.$t("main.vehicle.unknown"):this.$t("main.vehicle.none")},isUnknown(){return!this.vehiclePresent},otherVehicles(){return this.vehicles.map((e,t)=>({id:t,title:e})).filter(e=>e.title!==this.vehicleTitle)},showOptions(){return!this.isUnknown||this.vehicles.length}},watch:{icon:function(){this.tooltip()}},mounted:function(){this.tooltip()},methods:{changeVehicle(e){this.$emit("change-vehicle",e)},removeVehicle(){this.$emit("remove-vehicle")},tooltip(){this.$nextTick(()=>{this.$refs.refresh&&new Gd(this.$refs.refresh)})}}},tw={class:"d-flex justify-content-between mb-3 align-items-center"},nw={class:"d-flex align-items-center m-0 flex-grow-1 overflow-hidden"},rw=["title"],sw={key:2,class:"me-2 flex-shrink-0"},ow={class:"flex-grow-1 text-truncate vehicle-name"},iw={key:4,class:"flex-grow-1 text-truncate vehicle-name"};function aw(e,t,n,r,o,s){const i=de("VehicleIcon"),a=de("VehicleOptions");return M(),F("div",tw,[g("h4",nw,[s.icon==="refresh"?(M(),F("shopicon-regular-refresh",{key:0,ref:"refresh","data-bs-toggle":"tooltip",title:e.$t("main.vehicle.detectionActive"),class:"me-2 flex-shrink-0 spin"},null,8,rw)):s.icon==="vehicle"?(M(),be(i,{key:1,name:n.vehicleIcon,class:"me-2 flex-shrink-0"},null,8,["name"])):(M(),F("shopicon-regular-cablecharge",sw)),s.showOptions?(M(),be(a,{key:3,id:n.id,class:"options",vehicles:s.otherVehicles,"is-unknown":s.isUnknown,onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle},{default:Ve(()=>[g("span",ow,B(s.name),1)]),_:1},8,["id","vehicles","is-unknown","onChangeVehicle","onRemoveVehicle"])):(M(),F("span",iw,B(s.name),1))])])}const eu=fe(ew,[["render",aw],["__scopeId","data-v-8ed67110"]]),lw={name:"VehicleSoc",props:{connected:Boolean,vehiclePresent:Boolean,vehicleSoc:Number,vehicleTargetSoc:Number,enabled:Boolean,charging:Boolean,minSoc:Number,targetSoc:Number,targetEnergy:Number,chargedEnergy:Number,socBasedCharging:Boolean},emits:["target-soc-drag","target-soc-updated"],data:function(){return{selectedTargetSoc:null,interactionStartScreenY:null,tooltip:null}},computed:{vehicleSocDisplayWidth:function(){return this.socBasedCharging?this.vehicleSoc>=0?this.vehicleSoc:100:this.targetEnergy?100/this.targetEnergy*(this.chargedEnergy/1e3):100},vehicleTargetSocActive:function(){return this.vehicleTargetSoc>0&&this.vehicleTargetSoc>this.vehicleSoc},targetSliderActive:function(){return!this.vehicleTargetSoc||this.visibleTargetSoc<=this.vehicleTargetSoc},progressColor:function(){return this.minSocActive?"bg-danger":"bg-primary"},minSocActive:function(){return this.minSoc>0&&this.vehicleSocthis.vehicleSoc)return e-this.vehicleSoc}else return 100-this.vehicleSocDisplayWidth;return null},visibleTargetSoc:function(){return Number(this.selectedTargetSoc||this.targetSoc)}},watch:{targetSoc:function(){this.selectedTargetSoc=this.targetSoc},vehicleTargetSoc:function(){this.updateTooltip()}},mounted:function(){this.updateTooltip()},methods:{changeTargetSocStart:function(e){e.stopPropagation()},changeTargetSocEnd:function(e){const t=parseInt(e.target.value,10);t!==this.targetSoc&&this.$emit("target-soc-updated",t)},movedTargetSoc:function(e){let t=parseInt(e.target.value,10);e.stopPropagation();const n=20;return t0&&n.enabled&&n.connected?(M(),F("div",{key:1,class:Me(["progress-bar bg-muted",s.progressColor]),role:"progressbar",style:ft({width:`${s.remainingSocWidth}%`,transition:"none"})},null,6)):ye("",!0),mt(g("div",{ref:"vehicleTargetSoc",class:Me(["vehicle-target-soc",{"vehicle-target-soc--active":s.vehicleTargetSocActive}]),"data-bs-toggle":"tooltip",title:" ",style:ft({left:`${n.vehicleTargetSoc}%`})},null,6),[[Ji,n.vehicleTargetSoc]])]),g("div",fw,[n.socBasedCharging&&n.connected?(M(),F("input",{key:0,type:"range",min:"0",max:"100",step:"5",value:s.visibleTargetSoc,class:Me(["target-slider",{"target-slider--active":s.targetSliderActive}]),onMousedown:t[0]||(t[0]=(...i)=>s.changeTargetSocStart&&s.changeTargetSocStart(...i)),onTouchstart:t[1]||(t[1]=(...i)=>s.changeTargetSocStart&&s.changeTargetSocStart(...i)),onInput:t[2]||(t[2]=(...i)=>s.movedTargetSoc&&s.movedTargetSoc(...i)),onMouseup:t[3]||(t[3]=(...i)=>s.changeTargetSocEnd&&s.changeTargetSocEnd(...i)),onTouchend:t[4]||(t[4]=(...i)=>s.changeTargetSocEnd&&s.changeTargetSocEnd(...i))},null,42,dw)):ye("",!0)])])}const tu=fe(lw,[["render",hw],["__scopeId","data-v-481cdcd0"]]),mw={name:"VehicleStatus",mixins:[dt],props:{vehicleSoc:Number,vehicleTargetSoc:Number,minSoc:Number,enabled:Boolean,connected:Boolean,charging:Boolean,targetTime:String,targetTimeProjectedStart:String,phaseAction:String,phaseRemainingInterpolated:Number,pvAction:String,pvRemainingInterpolated:Number},computed:{phaseTimerActive(){return this.charging&&this.phaseRemainingInterpolated>0&&["scale1p","scale3p"].includes(this.phaseAction)},pvTimerActive(){return this.pvRemainingInterpolated>0&&["enable","disable"].includes(this.pvAction)},message:function(){const e=(t,n)=>this.$t(`main.vehicleStatus.${t}`,n);if(!this.connected)return e("disconnected");if(this.minSoc>0&&this.vehicleSoc0&&this.vehicleSoc>=this.vehicleTargetSoc-1?e("vehicleTargetReached",{soc:this.vehicleTargetSoc}):e("waitForVehicle"):this.pvTimerActive&&this.charging&&this.pvAction==="disable"?e("pvDisable",{remaining:this.fmtShortDuration(this.pvRemainingInterpolated,!0)}):this.phaseTimerActive?e(this.phaseAction,{remaining:this.fmtShortDuration(this.phaseRemainingInterpolated,!0)}):this.charging?e("charging"):e("connected")}}},pw={class:"d-block evcc-gray"};function gw(e,t,n,r,o,s){return M(),F("div",pw,B(s.message)+"\xA0",1)}const nu=fe(mw,[["render",gw]]);var _w='';class vw extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=_w}}window.customElements.define("shopicon-filled-plus",vw);var bw='';class yw extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=bw}}window.customElements.define("shopicon-filled-edit",yw);const ww="7:00",ru="last_target_time",Ew={name:"TargetCharge",components:{LabelAndValue:ss},mixins:[dt],props:{id:[String,Number],targetTime:String,targetTimeActive:Boolean,targetSoc:Number,disabled:Boolean},emits:["target-time-updated","target-time-removed"],data:function(){return{selectedDay:null,selectedTime:null}},computed:{targetChargeEnabled:function(){return this.targetTime},selectedTargetTimeValid:function(){return new Datenew Date;this.targetChargeEnabled&&t&&(e=new Date(this.targetTime)),this.selectedDay=this.fmtDayString(e),this.selectedTime=this.fmtTimeString(e)},dayOptions:function(){const e=[],t=new Date,n=[this.$t("main.targetCharge.today"),this.$t("main.targetCharge.tomorrow")];for(let r=0;r<7;r++){const o=t.toLocaleDateString("default",{month:"short",day:"numeric"}),s=n[r]||t.toLocaleDateString("default",{weekday:"long"});e.push({value:this.fmtDayString(t),name:`${o} (${s})`}),t.setDate(t.getDate()+1)}return e},setTargetTime:function(){try{const e=this.selectedTargetTime.getHours(),t=this.selectedTargetTime.getMinutes();window.localStorage[ru]=`${e}:${t}`}catch(e){console.warn(e)}this.$emit("target-time-updated",this.selectedTargetTime)},removeTargetTime:function(){this.$emit("target-time-removed")},openModal(){Xr.getOrCreateInstance(document.getElementById(this.modalId)).show()}}},Xd=e=>(tt("data-v-953479f7"),e=e(),nt(),e),Tw=["disabled"],Sw={key:0},Cw={key:1},Aw=["id"],xw={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},Lw={class:"modal-content"},Mw={class:"modal-header"},Nw={class:"modal-title"},$w=Xd(()=>g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),Iw={class:"modal-body"},Ow={class:"form-group"},Pw={for:"targetTimeLabel",class:"mb-3"},kw={class:"d-flex justify-content-between",style:{"max-width":"350px"}},Rw=["value"],Dw={key:0,class:"text-danger mb-0"},Fw={class:"small mt-3 text-muted mb-0"},qw={class:"text-evcc"},Vw=Xd(()=>g("a",{href:"https://github.com/evcc-io/evcc/discussions/1433",target:"_blank"},"GitHub Discussions",-1)),Hw={class:"modal-footer d-flex justify-content-between"},Bw=["disabled"];function Uw(e,t,n,r,o,s){const i=de("LabelAndValue");return M(),F("div",null,[re(i,{class:Me(["root flex-grow-1",n.disabled?"opacity-0":"opacity-1"]),label:e.$t("main.targetCharge.title")},{default:Ve(()=>[g("button",{class:Me(["btn btn-link p-0 value text-center",s.targetChargeEnabled?"evcc-default-text":"text-gray"]),disabled:n.disabled,onClick:t[0]||(t[0]=(...a)=>s.openModal&&s.openModal(...a))},[s.targetChargeEnabled?(M(),F("strong",Sw,B(s.targetTimeLabel()),1)):(M(),F("span",Cw,B(e.$t("main.targetCharge.setTargetTime")),1))],10,Tw)]),_:1},8,["label","class"]),(M(),be(dr,{to:"body"},[g("div",{id:s.modalId,class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},[g("div",xw,[g("div",Lw,[g("div",Mw,[g("h5",Nw,B(e.$t("main.targetCharge.modalTitle")),1),$w]),g("form",{onSubmit:t[4]||(t[4]=Rs((...a)=>s.setTargetTime&&s.setTargetTime(...a),["prevent"]))},[g("div",Iw,[g("div",Ow,[g("label",Pw,B(e.$t("main.targetCharge.description",{targetSoc:n.targetSoc})),1),g("div",kw,[mt(g("select",{"onUpdate:modelValue":t[1]||(t[1]=a=>e.selectedDay=a),class:"form-select me-2",style:{"flex-basis":"60%"}},[(M(!0),F(Se,null,He(s.dayOptions(),a=>(M(),F("option",{key:a.value,value:a.value},B(a.name),9,Rw))),128))],512),[[Lr,e.selectedDay]]),mt(g("input",{"onUpdate:modelValue":t[2]||(t[2]=a=>e.selectedTime=a),type:"time",class:"form-control ms-2",style:{"flex-basis":"40%"},step:60*5,required:""},null,512),[[bp,e.selectedTime]])])]),s.selectedTargetTimeValid?ye("",!0):(M(),F("p",Dw,B(e.$t("main.targetCharge.targetIsInThePast")),1)),g("p",Fw,[g("strong",qw,B(e.$t("main.targetCharge.experimentalLabel"))+": ",1),$e(" "+B(e.$t("main.targetCharge.experimentalText"))+" ",1),Vw,$e(". ")])]),g("div",Hw,[g("button",{type:"button",class:"btn btn-outline-secondary","data-bs-dismiss":"modal",onClick:t[3]||(t[3]=(...a)=>s.removeTargetTime&&s.removeTargetTime(...a))},B(e.$t("main.targetCharge.remove")),1),g("button",{type:"submit",class:"btn btn-primary","data-bs-dismiss":"modal",disabled:!s.selectedTargetTimeValid},B(e.$t("main.targetCharge.activate")),9,Bw)])],32)])])],8,Aw)]))])}const su=fe(Ew,[["render",Uw],["__scopeId","data-v-953479f7"]]),jw={name:"TargetSocSelect",components:{LabelAndValue:ss,AnimatedNumber:kn},props:{targetSoc:Number,rangePerSoc:Number},emits:["target-soc-updated"],computed:{options:function(){const e=[];for(let t=20;t<=100;t+=5){let n=this.formatSoc(t);const r=this.estimatedRange(t);r&&(n+=` (${this.formatKm(r)})`),e.push({soc:t,text:n})}return e},estimatedTargetRange:function(){return this.estimatedRange(this.targetSoc)}},methods:{change:function(e){return this.$emit("target-soc-updated",parseInt(e.target.value,10))},estimatedRange:function(e){return this.rangePerSoc?Math.round(e*this.rangePerSoc):null},formatSoc:function(e){return`${Math.round(e)}%`},formatKm:function(e){return`${Math.round(e)} ${zd()}`}}},Qw={class:"value m-0 d-block d-sm-flex align-items-baseline justify-content-end"},Ww={class:"position-relative"},zw=["value"],Kw=["value"],Yw={class:"text-decoration-underline"},Zw={key:0,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function Gw(e,t,n,r,o,s){const i=de("AnimatedNumber"),a=de("LabelAndValue");return M(),be(a,{class:"flex-grow-1",label:e.$t("main.vehicle.targetSoc"),align:"end"},{default:Ve(()=>[g("h3",Qw,[g("label",Ww,[g("select",{value:n.targetSoc,class:"custom-select",onChange:t[0]||(t[0]=(...l)=>s.change&&s.change(...l))},[(M(!0),F(Se,null,He(s.options,({soc:l,text:c})=>(M(),F("option",{key:l,value:l},B(c),9,Kw))),128))],40,zw),g("span",Yw,[re(i,{to:n.targetSoc,format:s.formatSoc},null,8,["to","format"])])]),s.estimatedTargetRange?(M(),F("div",Zw,[re(i,{to:s.estimatedTargetRange,format:s.formatKm},null,8,["to","format"])])):ye("",!0)])]),_:1},8,["label"])}const Xw=fe(jw,[["render",Gw],["__scopeId","data-v-298f036f"]]),Jw={name:"TargetEnergySelect",components:{LabelAndValue:ss,AnimatedNumber:kn},mixins:[dt],props:{targetEnergy:Number,socPerKwh:Number,chargedEnergy:Number,vehicleCapacity:Number},emits:["target-energy-updated"],computed:{maxEnergy:function(){return this.vehicleCapacity||100},steps:function(){return this.maxEnergy<1?.05:this.maxEnergy<2?.1:this.maxEnergy<5?.25:this.maxEnergy<10?.5:this.maxEnergy<25?1:this.maxEnergy<50?2:5},options:function(){const e=[];for(let t=0;t<=this.maxEnergy;t+=this.steps){let n=this.fmtEnergy(t);const r=t=.1,n=t&&this.steps<1?1:0;return this.fmtKWh(e*1e3,t,!0,n)},fmtSoc:function(e){return`+${Math.round(e)}%`}}},e3={class:"value m-0 d-block d-sm-flex align-items-baseline justify-content-end"},t3={class:"position-relative"},n3=["value"],r3=["value","disabled"],s3={key:0,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function o3(e,t,n,r,o,s){const i=de("AnimatedNumber"),a=de("LabelAndValue");return M(),be(a,{class:"flex-grow-1",label:e.$t("main.targetEnergy.label"),align:"end"},{default:Ve(()=>[g("h3",e3,[g("label",t3,[g("select",{value:n.targetEnergy,class:"custom-select",onChange:t[0]||(t[0]=(...l)=>s.change&&s.change(...l))},[(M(!0),F(Se,null,He(s.options,({energy:l,text:c,disabled:u})=>(M(),F("option",{key:l,value:l,disabled:u},B(c),9,r3))),128))],40,n3),g("span",{class:Me(["text-decoration-underline",{"text-gray fw-normal":!n.targetEnergy}])},[re(i,{to:n.targetEnergy,format:s.fmtEnergy},null,8,["to","format"])],2)]),s.estimatedTargetSoc?(M(),F("div",s3,[re(i,{to:s.estimatedTargetSoc,format:s.fmtSoc},null,8,["to","format"])])):ye("",!0)])]),_:1},8,["label"])}const i3=fe(Jw,[["render",o3],["__scopeId","data-v-a1278093"]]),a3={name:"Vehicle",components:{VehicleTitle:eu,VehicleSoc:tu,VehicleStatus:nu,LabelAndValue:ss,TargetCharge:su,TargetSocSelect:Xw,TargetEnergySelect:i3},mixins:[vo,dt],props:{id:[String,Number],connected:Boolean,vehiclePresent:Boolean,vehicleSoc:Number,vehicleTargetSoc:Number,enabled:Boolean,charging:Boolean,minSoc:Number,vehicleDetectionActive:Boolean,vehicleRange:Number,vehicleTitle:String,vehicleIcon:String,vehicleCapacity:Number,socBasedCharging:Boolean,targetTimeActive:Boolean,targetTime:String,targetTimeProjectedStart:String,targetSoc:Number,targetEnergy:Number,chargedEnergy:Number,mode:String,phaseAction:String,phaseRemainingInterpolated:Number,pvAction:String,pvRemainingInterpolated:Number,parked:Boolean,vehicles:Array},emits:["target-time-removed","target-time-updated","target-soc-updated","target-energy-updated","change-vehicle","remove-vehicle"],data(){return{displayTargetSoc:this.targetSoc}},computed:{vehicleSocProps:function(){return this.collectProps(tu)},vehicleStatus:function(){return this.collectProps(nu)},vehicleTitleProps:function(){return this.collectProps(eu)},targetCharge:function(){return this.collectProps(su)},range:function(){return Nv(this.vehicleRange)},rangeUnit:function(){return zd()},rangePerSoc:function(){return this.vehicleSoc>10&&this.range?this.range/this.vehicleSoc:null},socPerKwh:function(){return this.vehicleCapacity>0?100/this.vehicleCapacity:null},chargedSoc:function(){const e=this.socPerKwh*(this.chargedEnergy/1e3);return e>1?`+${Math.round(e)}%`:null},targetChargeDisabled:function(){return!this.connected||!["pv","minpv"].includes(this.mode)}},watch:{targetSoc:function(){this.displayTargetSoc=this.targetSoc}},methods:{targetSocDrag:function(e){this.displayTargetSoc=e},targetSocUpdated:function(e){this.displayTargetSoc=e,this.$emit("target-soc-updated",e)},targetEnergyUpdated:function(e){this.$emit("target-energy-updated",e)},setTargetTime:function(e){this.$emit("target-time-updated",e)},removeTargetTime:function(){this.$emit("target-time-removed")},changeVehicle(e){this.$emit("change-vehicle",e)},removeVehicle(){this.$emit("remove-vehicle")},fmtEnergy(e){const t=e==0||e>=1e3;return this.fmtKWh(e,t)}}},l3=e=>(tt("data-v-517b8f49"),e=e(),nt(),e),c3={class:"vehicle pt-4"},u3={class:"details d-flex flex-wrap justify-content-between"},f3={key:1,class:"d-flex justify-content-start"},d3=l3(()=>g("small",null,"vor 5 Stunden",-1)),h3=[d3];function m3(e,t,n,r,o,s){const i=de("VehicleTitle"),a=de("VehicleStatus"),l=de("VehicleSoc"),c=de("LabelAndValue"),u=de("TargetCharge"),f=de("TargetSocSelect"),h=de("TargetEnergySelect");return M(),F("div",c3,[re(i,pt(s.vehicleTitleProps,{onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle}),null,16,["onChangeVehicle","onRemoveVehicle"]),n.parked?ye("",!0):(M(),be(a,pt({key:0},s.vehicleStatus,{class:"mb-2"}),null,16)),re(l,pt(s.vehicleSocProps,{class:"mt-2 mb-4",onTargetSocUpdated:s.targetSocUpdated,onTargetSocDrag:s.targetSocDrag}),null,16,["onTargetSocUpdated","onTargetSocDrag"]),g("div",u3,[n.socBasedCharging?(M(),be(c,{key:0,class:"flex-grow-1",label:e.$t("main.vehicle.vehicleSoc"),value:n.vehicleSoc?`${n.vehicleSoc}%`:"--",extraValue:s.range?`${Math.round(s.range)} ${s.rangeUnit}`:null,align:"start"},null,8,["label","value","extraValue"])):(M(),be(c,{key:1,class:"flex-grow-1",label:e.$t("main.loadpoint.charged"),value:s.fmtEnergy(n.chargedEnergy),extraValue:s.chargedSoc,align:"start"},null,8,["label","value","extraValue"])),n.socBasedCharging?(M(),be(u,pt({key:2,class:"flex-grow-1 text-center target-charge"},s.targetCharge,{disabled:s.targetChargeDisabled,onTargetTimeUpdated:s.setTargetTime,onTargetTimeRemoved:s.removeTargetTime}),null,16,["disabled","onTargetTimeUpdated","onTargetTimeRemoved"])):ye("",!0),n.socBasedCharging?(M(),be(f,{key:3,class:"flex-grow-1 text-end","target-soc":o.displayTargetSoc,"range-per-soc":s.rangePerSoc,onTargetSocUpdated:s.targetSocUpdated},null,8,["target-soc","range-per-soc","onTargetSocUpdated"])):(M(),be(h,{key:4,class:"flex-grow-1 text-end","target-energy":n.targetEnergy,"soc-per-kwh":s.socPerKwh,"charged-energy":n.chargedEnergy,"vehicle-capacity":n.vehicleCapacity,onTargetEnergyUpdated:s.targetEnergyUpdated},null,8,["target-energy","soc-per-kwh","charged-energy","vehicle-capacity","onTargetEnergyUpdated"]))]),e.$hiddenFeatures?(M(),F("div",f3,h3)):ye("",!0)])}const Mi=fe(a3,[["render",m3],["__scopeId","data-v-517b8f49"]]),p3=1,g3={name:"Phases",props:{chargeCurrent:{type:Number},chargeCurrents:{type:Array},phasesActive:{type:Number},minCurrent:{type:Number},maxCurrent:{type:Number}},computed:{numberOfVisiblePhases(){if(!this.chargeCurrents)return this.phasesActive;const[e,t,n]=this.chargeCurrents.map(r=>r>=p3);return e&&!t&&!n?1:e&&t&&!n?2:3}},methods:{targetWidth(){let e=Math.min(Math.max(this.minCurrent,this.chargeCurrent),this.maxCurrent);return 100/this.maxCurrent*e},realWidth(e){if(this.chargeCurrents){const t=this.chargeCurrents[e-1]||0;return 100/this.maxCurrent*t}return this.targetWidth()}}};function _3(e,t,n,r,o,s){return M(),F("div",{class:Me(`phases phases--${s.numberOfVisiblePhases}p d-flex justify-content-between`)},[(M(),F(Se,null,He([1,2,3],i=>g("div",{key:i,class:Me(`phase phase--${i} me-1`)},[g("div",{class:"target",style:ft({width:`${s.targetWidth()}%`})},null,4),g("div",{class:"real",style:ft({width:`${s.realWidth(i)}%`})},null,4)],2)),64))],2)}const ou=fe(g3,[["render",_3],["__scopeId","data-v-7e178988"]]),v3={name:"LoadpointSettingsButton",props:{id:[String,Number]},methods:{openModal(){Xr.getOrCreateInstance(document.getElementById(`loadpointSettingsModal_${this.id}`)).show()}}},b3=g("shopicon-regular-adjust",{size:"s"},null,-1),y3=[b3];function w3(e,t,n,r,o,s){return M(),F("button",{type:"button",class:"btn btn-sm btn-outline-secondary position-relative border-0 p-2 evcc-gray",onClick:t[0]||(t[0]=(...i)=>s.openModal&&s.openModal(...i))},y3)}const E3=fe(v3,[["render",w3]]);var T3='';class S3 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=T3}}window.customElements.define("shopicon-bold-lightning",S3);var C3='';class A3 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=C3}}window.customElements.define("shopicon-bold-car3",A3);const vs=230,x3={name:"LoadpointSettingsModal",mixins:[dt],props:{id:[String,Number],phasesConfigured:Number,minSoc:Number,maxCurrent:Number,minCurrent:Number,title:String},emits:["phasesconfigured-updated","maxcurrent-updated","mincurrent-updated","minsoc-updated"],data:function(){return{selectedMaxCurrent:this.maxCurrent,selectedMinCurrent:this.minCurrent,selectedPhases:this.phasesConfigured,selectedMinSoc:this.minSoc}},computed:{maxPower1p:function(){return this.fmtKw(this.maxCurrent*vs)},minPower1p:function(){return this.fmtKw(this.minCurrent*vs)},maxPower3p:function(){return this.fmtKw(this.maxCurrent*vs*3)},minPower3p:function(){return this.fmtKw(this.minCurrent*vs*3)},maxPower:function(){return this.phasesConfigured===1?this.maxPower1p:this.maxPower3p},minPower:function(){return this.phasesConfigured===3?this.minPower3p:this.minPower1p},showConfigurablePhases:function(){return[0,1,3].includes(this.phasesConfigured)},showCurrentSettings:function(){return this.$hiddenFeatures},showMinSocSettings:function(){return this.$hiddenFeatures}},watch:{maxCurrent:function(e){this.selectedMaxCurrent=e},minCurrent:function(e){this.selectedMinCurrent=e},phasesConfigured:function(e){this.selectedPhases=e},minSoc:function(e){this.selectedMinSoc=e}},methods:{formId:function(e){return`loadpoint_${this.id}_${e}`},changeMaxCurrent:function(){this.$emit("maxcurrent-updated",this.selectedMaxCurrent)},changeMinCurrent:function(){this.$emit("mincurrent-updated",this.selectedMinCurrent)},changePhasesConfigured:function(){this.$emit("phasesconfigured-updated",this.selectedPhases)},changeMinSoc:function(){this.$emit("minsoc-updated",this.selectedMinSoc)},currentOptions:function(e,t=16){const n=[],r=e?32:this.maxCurrent,o=e?this.minCurrent:6;for(let s=r;s>=o;s--){let i=`${s} A`;s===t&&(i+=` (${this.$t("main.loadpointSettings.default")})`),n.push({value:s,name:i})}return n}}},Da=e=>(tt("data-v-8991a621"),e=e(),nt(),e),L3=["id"],M3={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},N3={class:"modal-content"},$3={class:"modal-header"},I3={class:"modal-title"},O3=Da(()=>g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),P3={class:"modal-body"},k3={class:"container"},R3={key:0,class:"d-flex align-items-center mb-3 mt-0 text-evcc"},D3=Da(()=>g("shopicon-bold-car3",{class:"ms-2"},null,-1)),F3={key:1,class:"mb-3 row"},q3=["for"],V3={class:"col-sm-8 pe-0"},H3=["id"],B3=["value"],U3={key:2,class:"d-flex align-items-center mb-3 mt-4 text-evcc"},j3=Da(()=>g("shopicon-bold-lightning",{class:"ms-1"},null,-1)),Q3={key:3,class:"mb-3 row"},W3=["for"],z3={class:"col-sm-8 pe-0"},K3={class:"form-check"},Y3=["id","name"],Z3=["for"],G3={class:"form-check"},X3=["id","name"],J3=["for"],eE={class:"form-check"},tE=["id","name"],nE=["for"],rE={key:4,class:"mb-3 row"},sE=["for"],oE={class:"col-sm-8 pe-0 d-flex align-items-center"},iE=["id"],aE=["value"],lE={class:"ms-3"},cE={key:5,class:"mb-3 row"},uE=["for"],fE={class:"col-sm-8 pe-0 d-flex align-items-center"},dE=["id"],hE=["value"],mE={class:"ms-3"},pE={class:"small mt-3 text-muted mb-0"},gE={class:"text-evcc"};function _E(e,t,n,r,o,s){return M(),be(dr,{to:"body"},[g("div",{id:`loadpointSettingsModal_${n.id}`,class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},[g("div",M3,[g("div",N3,[g("div",$3,[g("h5",I3,B(e.$t("main.loadpointSettings.title",[n.title])),1),O3]),g("div",P3,[g("div",k3,[s.showMinSocSettings?(M(),F("h4",R3,[$e(B(e.$t("main.loadpointSettings.vehicle"))+" ",1),D3])):ye("",!0),s.showMinSocSettings?(M(),F("div",F3,[g("label",{for:s.formId("minsoc"),class:"col-sm-4 col-form-label pt-0 pt-sm-1"},B(e.$t("main.loadpointSettings.minSoc.label")),9,q3),g("div",V3,[mt(g("select",{id:s.formId("minsoc"),"onUpdate:modelValue":t[0]||(t[0]=i=>e.selectedMinSoc=i),class:"form-select form-select-sm mb-2 w-50",onChange:t[1]||(t[1]=(...i)=>s.changeMinSoc&&s.changeMinSoc(...i))},[(M(),F(Se,null,He([0,5,10,15,20,25,30,35,40,45,50],i=>g("option",{key:i,value:i},B(i?`${i}%`:"--"),9,B3)),64))],40,H3),[[Lr,e.selectedMinSoc,void 0,{number:!0}]]),g("small",null,B(e.$t("main.loadpointSettings.minSoc.description",[e.selectedMinSoc||"x"])),1)])])):ye("",!0),s.showConfigurablePhases||s.showCurrentSettings?(M(),F("h4",U3,[$e(B(e.$t("main.loadpointSettings.currents"))+" ",1),j3])):ye("",!0),s.showConfigurablePhases?(M(),F("div",Q3,[g("label",{for:s.formId("phases_0"),class:"col-sm-4 col-form-label pt-0"},B(e.$t("main.loadpointSettings.phasesConfigured.label")),9,W3),g("div",z3,[g("div",K3,[mt(g("input",{id:s.formId("phases_0"),"onUpdate:modelValue":t[2]||(t[2]=i=>e.selectedPhases=i),class:"form-check-input",type:"radio",name:s.formId("phases"),value:0,onChange:t[3]||(t[3]=(...i)=>s.changePhasesConfigured&&s.changePhasesConfigured(...i))},null,40,Y3),[[Ao,e.selectedPhases,void 0,{number:!0}]]),g("label",{class:"form-check-label",for:s.formId("phases_0")},B(e.$t("main.loadpointSettings.phasesConfigured.phases_0")),9,Z3)]),g("div",G3,[mt(g("input",{id:s.formId("phases_1"),"onUpdate:modelValue":t[4]||(t[4]=i=>e.selectedPhases=i),class:"form-check-input",type:"radio",name:s.formId("phases"),value:1,onChange:t[5]||(t[5]=(...i)=>s.changePhasesConfigured&&s.changePhasesConfigured(...i))},null,40,X3),[[Ao,e.selectedPhases,void 0,{number:!0}]]),g("label",{class:"form-check-label",for:s.formId("phases_1")},[$e(B(e.$t("main.loadpointSettings.phasesConfigured.phases_1"))+" ",1),g("small",null,B(e.$t("main.loadpointSettings.phasesConfigured.phases_1_hint",{min:s.minPower1p,max:s.maxPower1p})),1)],8,J3)]),g("div",eE,[mt(g("input",{id:s.formId("phases_3"),"onUpdate:modelValue":t[6]||(t[6]=i=>e.selectedPhases=i),class:"form-check-input",type:"radio",name:s.formId("phases"),value:3,onChange:t[7]||(t[7]=(...i)=>s.changePhasesConfigured&&s.changePhasesConfigured(...i))},null,40,tE),[[Ao,e.selectedPhases,void 0,{number:!0}]]),g("label",{class:"form-check-label",for:s.formId("phases_3")},[$e(B(e.$t("main.loadpointSettings.phasesConfigured.phases_3"))+" ",1),g("small",null,B(e.$t("main.loadpointSettings.phasesConfigured.phases_3_hint",{min:s.minPower3p,max:s.maxPower3p})),1)],8,nE)])])])):ye("",!0),e.$hiddenFeatures?(M(),F("div",rE,[g("label",{for:s.formId("maxcurrent"),class:"col-sm-4 col-form-label pt-0 pt-sm-2"},B(e.$t("main.loadpointSettings.maxCurrent.label")),9,sE),g("div",oE,[mt(g("select",{id:s.formId("maxcurrent"),"onUpdate:modelValue":t[8]||(t[8]=i=>e.selectedMaxCurrent=i),class:"form-select form-select-sm w-50",onChange:t[9]||(t[9]=(...i)=>s.changeMaxCurrent&&s.changeMaxCurrent(...i))},[(M(!0),F(Se,null,He(s.currentOptions(!0,16),({value:i,name:a})=>(M(),F("option",{key:i,value:i},B(a),9,aE))),128))],40,iE),[[Lr,e.selectedMaxCurrent,void 0,{number:!0}]]),g("small",lE,"~ "+B(s.maxPower),1)])])):ye("",!0),e.$hiddenFeatures?(M(),F("div",cE,[g("label",{for:s.formId("mincurrent"),class:"col-sm-4 col-form-label pt-0 pt-sm-2"},B(e.$t("main.loadpointSettings.minCurrent.label")),9,uE),g("div",fE,[mt(g("select",{id:s.formId("mincurrent"),"onUpdate:modelValue":t[10]||(t[10]=i=>e.selectedMinCurrent=i),class:"form-select form-select-sm w-50",onChange:t[11]||(t[11]=(...i)=>s.changeMinCurrent&&s.changeMinCurrent(...i))},[(M(!0),F(Se,null,He(s.currentOptions(!1,6),({value:i,name:a})=>(M(),F("option",{key:i,value:i},B(a),9,hE))),128))],40,dE),[[Lr,e.selectedMinCurrent,void 0,{number:!0}]]),g("small",mE,"~ "+B(s.minPower),1)])])):ye("",!0)]),g("p",pE,[g("strong",gE,B(e.$t("main.loadpointSettings.disclaimerHint")),1),$e(" "+B(e.$t("main.loadpointSettings.disclaimerText")),1)])])])])],8,L3)])}const iu=fe(x3,[["render",_E],["__scopeId","data-v-8991a621"]]),vE={name:"Loadpoint",components:{Mode:O4,Vehicle:Mi,Phases:ou,LabelAndValue:ss,LoadpointSettingsButton:E3,LoadpointSettingsModal:iu},mixins:[dt,vo],props:{id:Number,single:Boolean,title:String,mode:String,targetSoc:Number,targetEnergy:Number,remoteDisabled:Boolean,remoteDisabledSource:String,chargeDuration:Number,charging:Boolean,connected:Boolean,enabled:Boolean,vehicleDetectionActive:Boolean,vehiclePresent:Boolean,vehicleRange:Number,vehicleSoc:Number,vehicleTitle:String,vehicleIcon:String,vehicleTargetSoc:Number,vehicleCapacity:Number,vehicleFeatureOffline:Boolean,vehicles:Array,minSoc:Number,targetTime:String,targetTimeActive:Boolean,targetTimeProjectedStart:String,vehicleProviderLoggedIn:Boolean,vehicleProviderLoginPath:String,vehicleProviderLogoutPath:String,chargePower:Number,chargedEnergy:Number,climater:String,chargeRemainingDuration:Number,phases:Number,phasesConfigured:Number,minCurrent:Number,maxCurrent:Number,phasesActive:Number,chargeCurrent:Number,connectedDuration:Number,chargeCurrents:Array,chargeConfigured:Boolean,chargeRemainingEnergy:Number,phaseAction:String,phaseRemaining:Number,pvRemaining:Number,pvAction:String},data(){return{tickerHandler:null,phaseRemainingInterpolated:this.phaseRemaining,pvRemainingInterpolated:this.pvRemaining,chargeDurationInterpolated:this.chargeDuration,chargeRemainingDurationInterpolated:this.chargeRemainingDuration}},computed:{phasesProps:function(){return this.collectProps(ou)},settingsModal:function(){return this.collectProps(iu)},settingsButtonVisible:function(){return this.$hiddenFeatures||[0,1,3].includes(this.phasesConfigured)},vehicle:function(){return this.collectProps(Mi)},showChargingIndicator:function(){return this.charging&&this.chargePower>0},socBasedCharging:function(){return!this.vehicleFeatureOffline&&this.vehiclePresent}},watch:{phaseRemaining(){this.phaseRemainingInterpolated=this.phaseRemaining},pvRemaining(){this.pvRemainingInterpolated=this.pvRemaining},chargeDuration(){this.chargeDurationInterpolated=this.chargeDuration},chargeRemainingDuration(){this.chargeRemainingDurationInterpolated=this.chargeRemainingDuration}},mounted(){this.tickerHandler=setInterval(this.tick,1e3)},unmounted(){clearInterval(this.tickerHandler)},methods:{tick(){this.phaseRemainingInterpolated>0&&this.phaseRemainingInterpolated--,this.pvRemainingInterpolated>0&&this.pvRemainingInterpolated--,this.chargeDurationInterpolated>0&&this.charging&&this.chargeDurationInterpolated++,this.chargeRemainingDurationInterpolated>0&&this.charging&&this.chargeRemainingDurationInterpolated--},apiPath:function(e){return"loadpoints/"+this.id+"/"+e},setTargetMode:function(e){Ze.post(this.apiPath("mode")+"/"+e)},setTargetSoc:function(e){Ze.post(this.apiPath("targetsoc")+"/"+e)},setTargetEnergy:function(e){Ze.post(this.apiPath("targetenergy")+"/"+e)},setMaxCurrent:function(e){Ze.post(this.apiPath("maxcurrent")+"/"+e)},setMinCurrent:function(e){Ze.post(this.apiPath("mincurrent")+"/"+e)},setPhasesConfigured:function(e){Ze.post(this.apiPath("phases")+"/"+e)},setMinSoc:function(e){Ze.post(this.apiPath("minsoc")+"/"+e)},setTargetTime:function(e){Ze.post(`${this.apiPath("targetcharge")}/${this.targetSoc}/${e.toISOString()}`)},removeTargetTime:function(){Ze.delete(this.apiPath("targetcharge"))},changeVehicle(e){Ze.post(this.apiPath("vehicle")+`/${e}`)},removeVehicle(){Ze.delete(this.apiPath("vehicle"))},fmtPower(e){const t=e==0||e>=1e3;return this.fmtKw(e,t)},fmtEnergy(e){const t=e==0||e>=1e3;return this.fmtKWh(e,t)}}},bE=e=>(tt("data-v-d2c43da5"),e=e(),nt(),e),yE={class:"loadpoint pt-4 pb-2 px-3 px-sm-4 mx-2 mx-sm-0"},wE={class:"d-block d-sm-flex justify-content-between align-items-center mb-3"},EE={class:"d-flex justify-content-between align-items-center mb-3"},TE={class:"me-2 mb-0 text-truncate"},SE={class:"mb-3 d-flex align-items-center"},CE={class:"details d-flex align-items-start mb-3"},AE={class:"d-flex align-items-center"},xE=bE(()=>g("hr",{class:"divider"},null,-1));function LE(e,t,n,r,o,s){const i=de("LoadpointSettingsButton"),a=de("Mode"),l=de("LoadpointSettingsModal"),c=de("LabelAndValue"),u=de("Phases"),f=de("Vehicle");return M(),F("div",yE,[g("div",wE,[g("div",EE,[g("h3",TE,B(n.title||e.$t("main.loadpoint.fallbackName")),1),s.settingsButtonVisible?(M(),be(i,{key:0,id:n.id,class:"d-block d-sm-none"},null,8,["id"])):ye("",!0)]),g("div",SE,[re(a,{class:"flex-grow-1",mode:n.mode,onUpdated:s.setTargetMode},null,8,["mode","onUpdated"]),s.settingsButtonVisible?(M(),be(i,{key:0,id:n.id,class:"d-none d-sm-block ms-2"},null,8,["id"])):ye("",!0)])]),re(l,pt(s.settingsModal,{onMaxcurrentUpdated:s.setMaxCurrent,onMincurrentUpdated:s.setMinCurrent,onPhasesconfiguredUpdated:s.setPhasesConfigured,onMinsocUpdated:s.setMinSoc}),null,16,["onMaxcurrentUpdated","onMincurrentUpdated","onPhasesconfiguredUpdated","onMinsocUpdated"]),n.remoteDisabled?(M(),F("div",{key:0,class:Me(["alert alert-warning my-4 py-2",`${n.remoteDisabled==="hard"?"alert-danger":"alert-warning"}`]),role:"alert"},B(e.$t(n.remoteDisabled==="hard"?"main.loadpoint.remoteDisabledHard":"main.loadpoint.remoteDisabledSoft",{source:n.remoteDisabledSource})),3)):ye("",!0),g("div",CE,[g("div",null,[g("div",AE,[re(c,{label:e.$t("main.loadpoint.power"),value:n.chargePower,valueFmt:s.fmtPower,class:"mb-2",align:"start"},null,8,["label","value","valueFmt"]),g("shopicon-regular-lightning",{class:Me(["text-evcc opacity-transiton",`opacity-${s.showChargingIndicator?"100":"0"}`]),size:"m"},null,2)]),re(u,pt(s.phasesProps,{class:["opacity-transiton",`opacity-${s.showChargingIndicator?"100":"0"}`]}),null,16,["class"])]),mt(re(c,{label:e.$t("main.loadpoint.charged"),value:s.fmtEnergy(n.chargedEnergy),align:"center"},null,8,["label","value"]),[[Ji,s.socBasedCharging]]),o.chargeRemainingDurationInterpolated?(M(),be(c,{key:0,label:e.$t("main.loadpoint.remaining"),value:` + */(function(e,t){(function(n,r){e.exports=r(Yf,It(),Gd(),Pn(),ro(),ra(),Q4())})(et,function(n,r,o,s,i,a,l){const c=W=>W&&typeof W=="object"&&"default"in W?W:{default:W};function u(W){if(W&&W.__esModule)return W;const L=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(W){for(const q in W)if(q!=="default"){const J=Object.getOwnPropertyDescriptor(W,q);Object.defineProperty(L,q,J.get?J:{enumerable:!0,get:()=>W[q]})}}return L.default=W,Object.freeze(L)}const f=u(n),h=c(s),p=c(i),w=c(a),b=c(l),T="tooltip",_=new Set(["sanitize","allowList","sanitizeFn"]),S="fade",A="modal",y="show",C=".tooltip-inner",x=`.${A}`,O="hide.bs.modal",K="hover",Y="focus",ee="click",ne="manual",R="hide",X="hidden",I="show",N="shown",Z="inserted",G="click",te="focusin",le="focusout",he="mouseenter",ae="mouseleave",me={AUTO:"auto",TOP:"top",RIGHT:r.isRTL()?"left":"right",BOTTOM:"bottom",LEFT:r.isRTL()?"right":"left"},Te={allowList:o.DefaultAllowlist,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'',title:"",trigger:"hover focus"},pe={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class H extends w.default{constructor(L,q){if(typeof f>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(L,q),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Te}static get DefaultType(){return pe}static get NAME(){return T}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(!!this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),h.default.off(this._element.closest(x),O,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;const L=h.default.trigger(this._element,this.constructor.eventName(I)),J=(r.findShadowRoot(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(L.defaultPrevented||!J)return;this._disposePopper();const ue=this._getTipElement();this._element.setAttribute("aria-describedby",ue.getAttribute("id"));const{container:ie}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(ie.append(ue),h.default.trigger(this._element,this.constructor.eventName(Z))),this._popper=this._createPopper(ue),ue.classList.add(y),"ontouchstart"in document.documentElement)for(const d of[].concat(...document.body.children))h.default.on(d,"mouseover",r.noop);const v=()=>{h.default.trigger(this._element,this.constructor.eventName(N)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(v,this.tip,this._isAnimated())}hide(){if(!this._isShown()||h.default.trigger(this._element,this.constructor.eventName(R)).defaultPrevented)return;if(this._getTipElement().classList.remove(y),"ontouchstart"in document.documentElement)for(const ue of[].concat(...document.body.children))h.default.off(ue,"mouseover",r.noop);this._activeTrigger[ee]=!1,this._activeTrigger[Y]=!1,this._activeTrigger[K]=!1,this._isHovered=null;const J=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),h.default.trigger(this._element,this.constructor.eventName(X)))};this._queueCallback(J,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(L){const q=this._getTemplateFactory(L).toHtml();if(!q)return null;q.classList.remove(S,y),q.classList.add(`bs-${this.constructor.NAME}-auto`);const J=r.getUID(this.constructor.NAME).toString();return q.setAttribute("id",J),this._isAnimated()&&q.classList.add(S),q}setContent(L){this._newContent=L,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(L){return this._templateFactory?this._templateFactory.changeContent(L):this._templateFactory=new b.default({...this._config,content:L,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[C]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(L){return this.constructor.getOrCreateInstance(L.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(S)}_isShown(){return this.tip&&this.tip.classList.contains(y)}_createPopper(L){const q=typeof this._config.placement=="function"?this._config.placement.call(this,L,this._element):this._config.placement,J=me[q.toUpperCase()];return f.createPopper(this._element,L,this._getPopperConfig(J))}_getOffset(){const{offset:L}=this._config;return typeof L=="string"?L.split(",").map(q=>Number.parseInt(q,10)):typeof L=="function"?q=>L(q,this._element):L}_resolvePossibleFunction(L){return typeof L=="function"?L.call(this._element):L}_getPopperConfig(L){const q={placement:L,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:J=>{this._getTipElement().setAttribute("data-popper-placement",J.state.placement)}}]};return{...q,...typeof this._config.popperConfig=="function"?this._config.popperConfig(q):this._config.popperConfig}}_setListeners(){const L=this._config.trigger.split(" ");for(const q of L)if(q==="click")h.default.on(this._element,this.constructor.eventName(G),this._config.selector,J=>{this._initializeOnDelegatedTarget(J).toggle()});else if(q!==ne){const J=q===K?this.constructor.eventName(he):this.constructor.eventName(te),ue=q===K?this.constructor.eventName(ae):this.constructor.eventName(le);h.default.on(this._element,J,this._config.selector,ie=>{const v=this._initializeOnDelegatedTarget(ie);v._activeTrigger[ie.type==="focusin"?Y:K]=!0,v._enter()}),h.default.on(this._element,ue,this._config.selector,ie=>{const v=this._initializeOnDelegatedTarget(ie);v._activeTrigger[ie.type==="focusout"?Y:K]=v._element.contains(ie.relatedTarget),v._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},h.default.on(this._element.closest(x),O,this._hideModalHandler)}_fixTitle(){const L=this._element.getAttribute("title");!L||(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",L),this._element.setAttribute("data-bs-original-title",L),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(L,q){clearTimeout(this._timeout),this._timeout=setTimeout(L,q)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(L){const q=p.default.getDataAttributes(this._element);for(const J of Object.keys(q))_.has(J)&&delete q[J];return L={...q,...typeof L=="object"&&L?L:{}},L=this._mergeConfigObj(L),L=this._configAfterMerge(L),this._typeCheckConfig(L),L}_configAfterMerge(L){return L.container=L.container===!1?document.body:r.getElement(L.container),typeof L.delay=="number"&&(L.delay={show:L.delay,hide:L.delay}),typeof L.title=="number"&&(L.title=L.title.toString()),typeof L.content=="number"&&(L.content=L.content.toString()),L}_getDelegateConfig(){const L={};for(const q in this._config)this.constructor.Default[q]!==this._config[q]&&(L[q]=this._config[q]);return L.selector=!1,L.trigger="manual",L}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(L){return this.each(function(){const q=H.getOrCreateInstance(this,L);if(typeof L=="string"){if(typeof q[L]>"u")throw new TypeError(`No method named "${L}"`);q[L]()}})}}return r.defineJQueryPlugin(H),H})})(Zd);const Xd=lu(Zd.exports);var W4='';class z4 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=W4}}window.customElements.define("shopicon-filled-options",z4);const K4={name:"VehicleOptions",props:{id:[String,Number],vehicles:Array,isUnknown:Boolean},emits:["change-vehicle","remove-vehicle"],computed:{dropdownId(){return`vehicleOptionsDropdown${this.id}`}},mounted(){this.dropdown=new Zf(document.getElementById(this.dropdownId))},unmounted(){var e;(e=this.dropdown)==null||e.dispose()},methods:{changeVehicle(e){this.$emit("change-vehicle",e+1)},removeVehicle(){this.$emit("remove-vehicle")}}},Y4=["id"],Z4=["aria-labelledby"],G4={class:"dropdown-header"},X4=["onClick"],J4={key:0};function ew(e,t,n,r,o,s){return M(),F("div",null,[g("div",{id:s.dropdownId,role:"button",tabindex:"0","data-bs-toggle":"dropdown","aria-expanded":"false"},[Xs(e.$slots,"default")],8,Y4),g("ul",{class:"dropdown-menu dropdown-menu-start","aria-labelledby":s.dropdownId},[g("li",null,[g("h6",G4,B(e.$t("main.vehicle.changeVehicle")),1)]),(M(!0),F(Se,null,He(n.vehicles,i=>(M(),F("li",{key:i},[g("button",{type:"button",class:"dropdown-item",onClick:a=>s.changeVehicle(i.id)},B(i.title),9,X4)]))),128)),n.isUnknown?ye("",!0):(M(),F("li",J4,[g("button",{type:"button",class:"dropdown-item",onClick:t[0]||(t[0]=i=>s.removeVehicle())},B(e.$t("main.vehicle.unknown")),1)]))],8,Z4)])}const tw=fe(K4,[["render",ew]]),nw={name:"VehicleTitle",components:{VehicleOptions:tw,VehicleIcon:Da},props:{id:[String,Number],vehiclePresent:Boolean,vehicleTitle:String,vehicleIcon:String,vehicleDetectionActive:Boolean,parked:Boolean,connected:Boolean,vehicles:{type:Array,default:()=>[]}},emits:["change-vehicle","remove-vehicle"],computed:{icon(){return this.vehicleDetectionActive?"refresh":this.connected||this.parked?"vehicle":null},name(){return this.vehiclePresent||this.parked?this.vehicleTitle||this.$t("main.vehicle.fallbackName"):this.connected?this.$t("main.vehicle.unknown"):this.$t("main.vehicle.none")},isUnknown(){return!this.vehiclePresent},otherVehicles(){return this.vehicles.map((e,t)=>({id:t,title:e})).filter(e=>e.title!==this.vehicleTitle)},showOptions(){return!this.isUnknown||this.vehicles.length}},watch:{icon:function(){this.tooltip()}},mounted:function(){this.tooltip()},methods:{changeVehicle(e){this.$emit("change-vehicle",e)},removeVehicle(){this.$emit("remove-vehicle")},tooltip(){this.$nextTick(()=>{this.$refs.refresh&&new Xd(this.$refs.refresh)})}}},rw={class:"d-flex justify-content-between mb-3 align-items-center"},sw={class:"d-flex align-items-center m-0 flex-grow-1 overflow-hidden"},ow=["title"],iw={key:2,class:"me-2 flex-shrink-0"},aw={class:"flex-grow-1 text-truncate vehicle-name"},lw={key:4,class:"flex-grow-1 text-truncate vehicle-name"};function cw(e,t,n,r,o,s){const i=de("VehicleIcon"),a=de("VehicleOptions");return M(),F("div",rw,[g("h4",sw,[s.icon==="refresh"?(M(),F("shopicon-regular-refresh",{key:0,ref:"refresh","data-bs-toggle":"tooltip",title:e.$t("main.vehicle.detectionActive"),class:"me-2 flex-shrink-0 spin"},null,8,ow)):s.icon==="vehicle"?(M(),be(i,{key:1,name:n.vehicleIcon,class:"me-2 flex-shrink-0"},null,8,["name"])):(M(),F("shopicon-regular-cablecharge",iw)),s.showOptions?(M(),be(a,{key:3,id:n.id,class:"options",vehicles:s.otherVehicles,"is-unknown":s.isUnknown,onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle},{default:Ve(()=>[g("span",aw,B(s.name),1)]),_:1},8,["id","vehicles","is-unknown","onChangeVehicle","onRemoveVehicle"])):(M(),F("span",lw,B(s.name),1))])])}const tu=fe(nw,[["render",cw],["__scopeId","data-v-8ed67110"]]),uw={name:"VehicleSoc",props:{connected:Boolean,vehiclePresent:Boolean,vehicleSoc:Number,vehicleTargetSoc:Number,enabled:Boolean,charging:Boolean,minSoc:Number,targetSoc:Number,targetEnergy:Number,chargedEnergy:Number,socBasedCharging:Boolean},emits:["target-soc-drag","target-soc-updated"],data:function(){return{selectedTargetSoc:null,interactionStartScreenY:null,tooltip:null}},computed:{vehicleSocDisplayWidth:function(){return this.socBasedCharging?this.vehicleSoc>=0?this.vehicleSoc:100:this.targetEnergy?100/this.targetEnergy*(this.chargedEnergy/1e3):100},vehicleTargetSocActive:function(){return this.vehicleTargetSoc>0&&this.vehicleTargetSoc>this.vehicleSoc},targetSliderActive:function(){return!this.vehicleTargetSoc||this.visibleTargetSoc<=this.vehicleTargetSoc},progressColor:function(){return this.minSocActive?"bg-danger":"bg-primary"},minSocActive:function(){return this.minSoc>0&&this.vehicleSocthis.vehicleSoc)return e-this.vehicleSoc}else return 100-this.vehicleSocDisplayWidth;return null},visibleTargetSoc:function(){return Number(this.selectedTargetSoc||this.targetSoc)}},watch:{targetSoc:function(){this.selectedTargetSoc=this.targetSoc},vehicleTargetSoc:function(){this.updateTooltip()}},mounted:function(){this.updateTooltip()},methods:{changeTargetSocStart:function(e){e.stopPropagation()},changeTargetSocEnd:function(e){const t=parseInt(e.target.value,10);t!==this.targetSoc&&this.$emit("target-soc-updated",t)},movedTargetSoc:function(e){let t=parseInt(e.target.value,10);e.stopPropagation();const n=20;return t0&&n.enabled&&n.connected?(M(),F("div",{key:1,class:Me(["progress-bar bg-muted",s.progressColor]),role:"progressbar",style:ft({width:`${s.remainingSocWidth}%`,transition:"none"})},null,6)):ye("",!0),mt(g("div",{ref:"vehicleTargetSoc",class:Me(["vehicle-target-soc",{"vehicle-target-soc--active":s.vehicleTargetSocActive}]),"data-bs-toggle":"tooltip",title:" ",style:ft({left:`${n.vehicleTargetSoc}%`})},null,6),[[ea,n.vehicleTargetSoc]])]),g("div",hw,[n.socBasedCharging&&n.connected?(M(),F("input",{key:0,type:"range",min:"0",max:"100",step:"5",value:s.visibleTargetSoc,class:Me(["target-slider",{"target-slider--active":s.targetSliderActive}]),onMousedown:t[0]||(t[0]=(...i)=>s.changeTargetSocStart&&s.changeTargetSocStart(...i)),onTouchstart:t[1]||(t[1]=(...i)=>s.changeTargetSocStart&&s.changeTargetSocStart(...i)),onInput:t[2]||(t[2]=(...i)=>s.movedTargetSoc&&s.movedTargetSoc(...i)),onMouseup:t[3]||(t[3]=(...i)=>s.changeTargetSocEnd&&s.changeTargetSocEnd(...i)),onTouchend:t[4]||(t[4]=(...i)=>s.changeTargetSocEnd&&s.changeTargetSocEnd(...i))},null,42,mw)):ye("",!0)])])}const nu=fe(uw,[["render",pw],["__scopeId","data-v-481cdcd0"]]),gw={name:"VehicleStatus",mixins:[dt],props:{vehicleSoc:Number,vehicleTargetSoc:Number,minSoc:Number,enabled:Boolean,connected:Boolean,charging:Boolean,targetTime:String,targetTimeProjectedStart:String,phaseAction:String,phaseRemainingInterpolated:Number,pvAction:String,pvRemainingInterpolated:Number},computed:{phaseTimerActive(){return this.charging&&this.phaseRemainingInterpolated>0&&["scale1p","scale3p"].includes(this.phaseAction)},pvTimerActive(){return this.pvRemainingInterpolated>0&&["enable","disable"].includes(this.pvAction)},message:function(){const e=(t,n)=>this.$t(`main.vehicleStatus.${t}`,n);if(!this.connected)return e("disconnected");if(this.minSoc>0&&this.vehicleSoc0&&this.vehicleSoc>=this.vehicleTargetSoc-1?e("vehicleTargetReached",{soc:this.vehicleTargetSoc}):e("waitForVehicle"):this.pvTimerActive&&this.charging&&this.pvAction==="disable"?e("pvDisable",{remaining:this.fmtShortDuration(this.pvRemainingInterpolated,!0)}):this.phaseTimerActive?e(this.phaseAction,{remaining:this.fmtShortDuration(this.phaseRemainingInterpolated,!0)}):this.charging?e("charging"):e("connected")}}},_w={class:"d-block evcc-gray"};function vw(e,t,n,r,o,s){return M(),F("div",_w,B(s.message)+"\xA0",1)}const ru=fe(gw,[["render",vw]]);var bw='';class yw extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=bw}}window.customElements.define("shopicon-filled-plus",yw);var ww='';class Ew extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=ww}}window.customElements.define("shopicon-filled-edit",Ew);const Tw="7:00",su="last_target_time",Sw={name:"TargetCharge",components:{LabelAndValue:ss},mixins:[dt],props:{id:[String,Number],targetTime:String,targetTimeActive:Boolean,targetSoc:Number,disabled:Boolean},emits:["target-time-updated","target-time-removed"],data:function(){return{selectedDay:null,selectedTime:null}},computed:{targetChargeEnabled:function(){return this.targetTime},selectedTargetTimeValid:function(){return new Datenew Date;this.targetChargeEnabled&&t&&(e=new Date(this.targetTime)),this.selectedDay=this.fmtDayString(e),this.selectedTime=this.fmtTimeString(e)},dayOptions:function(){const e=[],t=new Date,n=[this.$t("main.targetCharge.today"),this.$t("main.targetCharge.tomorrow")];for(let r=0;r<7;r++){const o=t.toLocaleDateString("default",{month:"short",day:"numeric"}),s=n[r]||t.toLocaleDateString("default",{weekday:"long"});e.push({value:this.fmtDayString(t),name:`${o} (${s})`}),t.setDate(t.getDate()+1)}return e},setTargetTime:function(){try{const e=this.selectedTargetTime.getHours(),t=this.selectedTargetTime.getMinutes();window.localStorage[su]=`${e}:${t}`}catch(e){console.warn(e)}this.$emit("target-time-updated",this.selectedTargetTime)},removeTargetTime:function(){this.$emit("target-time-removed")},openModal(){Xr.getOrCreateInstance(document.getElementById(this.modalId)).show()}}},Jd=e=>(tt("data-v-953479f7"),e=e(),nt(),e),Cw=["disabled"],Aw={key:0},xw={key:1},Lw=["id"],Mw={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},Nw={class:"modal-content"},$w={class:"modal-header"},Iw={class:"modal-title"},Pw=Jd(()=>g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),Ow={class:"modal-body"},kw={class:"form-group"},Rw={for:"targetTimeLabel",class:"mb-3"},Dw={class:"d-flex justify-content-between",style:{"max-width":"350px"}},Fw=["value"],qw={key:0,class:"text-danger mb-0"},Vw={class:"small mt-3 text-muted mb-0"},Hw={class:"text-evcc"},Bw=Jd(()=>g("a",{href:"https://github.com/evcc-io/evcc/discussions/1433",target:"_blank"},"GitHub Discussions",-1)),Uw={class:"modal-footer d-flex justify-content-between"},jw=["disabled"];function Qw(e,t,n,r,o,s){const i=de("LabelAndValue");return M(),F("div",null,[re(i,{class:Me(["root flex-grow-1",n.disabled?"opacity-0":"opacity-1"]),label:e.$t("main.targetCharge.title")},{default:Ve(()=>[g("button",{class:Me(["btn btn-link p-0 value text-center",s.targetChargeEnabled?"evcc-default-text":"text-gray"]),disabled:n.disabled,onClick:t[0]||(t[0]=(...a)=>s.openModal&&s.openModal(...a))},[s.targetChargeEnabled?(M(),F("strong",Aw,B(s.targetTimeLabel()),1)):(M(),F("span",xw,B(e.$t("main.targetCharge.setTargetTime")),1))],10,Cw)]),_:1},8,["label","class"]),(M(),be(dr,{to:"body"},[g("div",{id:s.modalId,class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},[g("div",Mw,[g("div",Nw,[g("div",$w,[g("h5",Iw,B(e.$t("main.targetCharge.modalTitle")),1),Pw]),g("form",{onSubmit:t[4]||(t[4]=Rs((...a)=>s.setTargetTime&&s.setTargetTime(...a),["prevent"]))},[g("div",Ow,[g("div",kw,[g("label",Rw,B(e.$t("main.targetCharge.description",{targetSoc:n.targetSoc})),1),g("div",Dw,[mt(g("select",{"onUpdate:modelValue":t[1]||(t[1]=a=>e.selectedDay=a),class:"form-select me-2",style:{"flex-basis":"60%"}},[(M(!0),F(Se,null,He(s.dayOptions(),a=>(M(),F("option",{key:a.value,value:a.value},B(a.name),9,Fw))),128))],512),[[Lr,e.selectedDay]]),mt(g("input",{"onUpdate:modelValue":t[2]||(t[2]=a=>e.selectedTime=a),type:"time",class:"form-control ms-2",style:{"flex-basis":"40%"},step:60*5,required:""},null,512),[[yp,e.selectedTime]])])]),s.selectedTargetTimeValid?ye("",!0):(M(),F("p",qw,B(e.$t("main.targetCharge.targetIsInThePast")),1)),g("p",Vw,[g("strong",Hw,B(e.$t("main.targetCharge.experimentalLabel"))+": ",1),$e(" "+B(e.$t("main.targetCharge.experimentalText"))+" ",1),Bw,$e(". ")])]),g("div",Uw,[g("button",{type:"button",class:"btn btn-outline-secondary","data-bs-dismiss":"modal",onClick:t[3]||(t[3]=(...a)=>s.removeTargetTime&&s.removeTargetTime(...a))},B(e.$t("main.targetCharge.remove")),1),g("button",{type:"submit",class:"btn btn-primary","data-bs-dismiss":"modal",disabled:!s.selectedTargetTimeValid},B(e.$t("main.targetCharge.activate")),9,jw)])],32)])])],8,Lw)]))])}const ou=fe(Sw,[["render",Qw],["__scopeId","data-v-953479f7"]]),Ww={name:"TargetSocSelect",components:{LabelAndValue:ss,AnimatedNumber:kn},props:{targetSoc:Number,rangePerSoc:Number},emits:["target-soc-updated"],computed:{options:function(){const e=[];for(let t=20;t<=100;t+=5){let n=this.formatSoc(t);const r=this.estimatedRange(t);r&&(n+=` (${this.formatKm(r)})`),e.push({soc:t,text:n})}return e},estimatedTargetRange:function(){return this.estimatedRange(this.targetSoc)}},methods:{change:function(e){return this.$emit("target-soc-updated",parseInt(e.target.value,10))},estimatedRange:function(e){return this.rangePerSoc?Math.round(e*this.rangePerSoc):null},formatSoc:function(e){return`${Math.round(e)}%`},formatKm:function(e){return`${Math.round(e)} ${Kd()}`}}},zw={class:"value m-0 d-block d-sm-flex align-items-baseline justify-content-end"},Kw={class:"position-relative"},Yw=["value"],Zw=["value"],Gw={class:"text-decoration-underline"},Xw={key:0,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function Jw(e,t,n,r,o,s){const i=de("AnimatedNumber"),a=de("LabelAndValue");return M(),be(a,{class:"flex-grow-1",label:e.$t("main.vehicle.targetSoc"),align:"end"},{default:Ve(()=>[g("h3",zw,[g("label",Kw,[g("select",{value:n.targetSoc,class:"custom-select",onChange:t[0]||(t[0]=(...l)=>s.change&&s.change(...l))},[(M(!0),F(Se,null,He(s.options,({soc:l,text:c})=>(M(),F("option",{key:l,value:l},B(c),9,Zw))),128))],40,Yw),g("span",Gw,[re(i,{to:n.targetSoc,format:s.formatSoc},null,8,["to","format"])])]),s.estimatedTargetRange?(M(),F("div",Xw,[re(i,{to:s.estimatedTargetRange,format:s.formatKm},null,8,["to","format"])])):ye("",!0)])]),_:1},8,["label"])}const e3=fe(Ww,[["render",Jw],["__scopeId","data-v-298f036f"]]),t3={name:"TargetEnergySelect",components:{LabelAndValue:ss,AnimatedNumber:kn},mixins:[dt],props:{targetEnergy:Number,socPerKwh:Number,chargedEnergy:Number,vehicleCapacity:Number},emits:["target-energy-updated"],computed:{maxEnergy:function(){return this.vehicleCapacity||100},steps:function(){return this.maxEnergy<1?.05:this.maxEnergy<2?.1:this.maxEnergy<5?.25:this.maxEnergy<10?.5:this.maxEnergy<25?1:this.maxEnergy<50?2:5},options:function(){const e=[];for(let t=0;t<=this.maxEnergy;t+=this.steps){let n=this.fmtEnergy(t);const r=t=.1,n=t&&this.steps<1?1:0;return this.fmtKWh(e*1e3,t,!0,n)},fmtSoc:function(e){return`+${Math.round(e)}%`}}},n3={class:"value m-0 d-block d-sm-flex align-items-baseline justify-content-end"},r3={class:"position-relative"},s3=["value"],o3=["value","disabled"],i3={key:0,class:"extraValue ms-0 ms-sm-1 text-nowrap"};function a3(e,t,n,r,o,s){const i=de("AnimatedNumber"),a=de("LabelAndValue");return M(),be(a,{class:"flex-grow-1",label:e.$t("main.targetEnergy.label"),align:"end"},{default:Ve(()=>[g("h3",n3,[g("label",r3,[g("select",{value:n.targetEnergy,class:"custom-select",onChange:t[0]||(t[0]=(...l)=>s.change&&s.change(...l))},[(M(!0),F(Se,null,He(s.options,({energy:l,text:c,disabled:u})=>(M(),F("option",{key:l,value:l,disabled:u},B(c),9,o3))),128))],40,s3),g("span",{class:Me(["text-decoration-underline",{"text-gray fw-normal":!n.targetEnergy}])},[re(i,{to:n.targetEnergy,format:s.fmtEnergy},null,8,["to","format"])],2)]),s.estimatedTargetSoc?(M(),F("div",i3,[re(i,{to:s.estimatedTargetSoc,format:s.fmtSoc},null,8,["to","format"])])):ye("",!0)])]),_:1},8,["label"])}const l3=fe(t3,[["render",a3],["__scopeId","data-v-a1278093"]]),c3={name:"Vehicle",components:{VehicleTitle:tu,VehicleSoc:nu,VehicleStatus:ru,LabelAndValue:ss,TargetCharge:ou,TargetSocSelect:e3,TargetEnergySelect:l3},mixins:[vo,dt],props:{id:[String,Number],connected:Boolean,vehiclePresent:Boolean,vehicleSoc:Number,vehicleTargetSoc:Number,enabled:Boolean,charging:Boolean,minSoc:Number,vehicleDetectionActive:Boolean,vehicleRange:Number,vehicleTitle:String,vehicleIcon:String,vehicleCapacity:Number,socBasedCharging:Boolean,targetTimeActive:Boolean,targetTime:String,targetTimeProjectedStart:String,targetSoc:Number,targetEnergy:Number,chargedEnergy:Number,mode:String,phaseAction:String,phaseRemainingInterpolated:Number,pvAction:String,pvRemainingInterpolated:Number,parked:Boolean,vehicles:Array},emits:["target-time-removed","target-time-updated","target-soc-updated","target-energy-updated","change-vehicle","remove-vehicle"],data(){return{displayTargetSoc:this.targetSoc}},computed:{vehicleSocProps:function(){return this.collectProps(nu)},vehicleStatus:function(){return this.collectProps(ru)},vehicleTitleProps:function(){return this.collectProps(tu)},targetCharge:function(){return this.collectProps(ou)},range:function(){return Iv(this.vehicleRange)},rangeUnit:function(){return Kd()},rangePerSoc:function(){return this.vehicleSoc>10&&this.range?this.range/this.vehicleSoc:null},socPerKwh:function(){return this.vehicleCapacity>0?100/this.vehicleCapacity:null},chargedSoc:function(){const e=this.socPerKwh*(this.chargedEnergy/1e3);return e>1?`+${Math.round(e)}%`:null},targetChargeDisabled:function(){return!this.connected||!["pv","minpv"].includes(this.mode)}},watch:{targetSoc:function(){this.displayTargetSoc=this.targetSoc}},methods:{targetSocDrag:function(e){this.displayTargetSoc=e},targetSocUpdated:function(e){this.displayTargetSoc=e,this.$emit("target-soc-updated",e)},targetEnergyUpdated:function(e){this.$emit("target-energy-updated",e)},setTargetTime:function(e){this.$emit("target-time-updated",e)},removeTargetTime:function(){this.$emit("target-time-removed")},changeVehicle(e){this.$emit("change-vehicle",e)},removeVehicle(){this.$emit("remove-vehicle")},fmtEnergy(e){const t=e==0||e>=1e3;return this.fmtKWh(e,t)}}},u3=e=>(tt("data-v-517b8f49"),e=e(),nt(),e),f3={class:"vehicle pt-4"},d3={class:"details d-flex flex-wrap justify-content-between"},h3={key:1,class:"d-flex justify-content-start"},m3=u3(()=>g("small",null,"vor 5 Stunden",-1)),p3=[m3];function g3(e,t,n,r,o,s){const i=de("VehicleTitle"),a=de("VehicleStatus"),l=de("VehicleSoc"),c=de("LabelAndValue"),u=de("TargetCharge"),f=de("TargetSocSelect"),h=de("TargetEnergySelect");return M(),F("div",f3,[re(i,pt(s.vehicleTitleProps,{onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle}),null,16,["onChangeVehicle","onRemoveVehicle"]),n.parked?ye("",!0):(M(),be(a,pt({key:0},s.vehicleStatus,{class:"mb-2"}),null,16)),re(l,pt(s.vehicleSocProps,{class:"mt-2 mb-4",onTargetSocUpdated:s.targetSocUpdated,onTargetSocDrag:s.targetSocDrag}),null,16,["onTargetSocUpdated","onTargetSocDrag"]),g("div",d3,[n.socBasedCharging?(M(),be(c,{key:0,class:"flex-grow-1",label:e.$t("main.vehicle.vehicleSoc"),value:n.vehicleSoc?`${n.vehicleSoc}%`:"--",extraValue:s.range?`${Math.round(s.range)} ${s.rangeUnit}`:null,align:"start"},null,8,["label","value","extraValue"])):(M(),be(c,{key:1,class:"flex-grow-1",label:e.$t("main.loadpoint.charged"),value:s.fmtEnergy(n.chargedEnergy),extraValue:s.chargedSoc,align:"start"},null,8,["label","value","extraValue"])),n.socBasedCharging?(M(),be(u,pt({key:2,class:"flex-grow-1 text-center target-charge"},s.targetCharge,{disabled:s.targetChargeDisabled,onTargetTimeUpdated:s.setTargetTime,onTargetTimeRemoved:s.removeTargetTime}),null,16,["disabled","onTargetTimeUpdated","onTargetTimeRemoved"])):ye("",!0),n.socBasedCharging?(M(),be(f,{key:3,class:"flex-grow-1 text-end","target-soc":o.displayTargetSoc,"range-per-soc":s.rangePerSoc,onTargetSocUpdated:s.targetSocUpdated},null,8,["target-soc","range-per-soc","onTargetSocUpdated"])):(M(),be(h,{key:4,class:"flex-grow-1 text-end","target-energy":n.targetEnergy,"soc-per-kwh":s.socPerKwh,"charged-energy":n.chargedEnergy,"vehicle-capacity":n.vehicleCapacity,onTargetEnergyUpdated:s.targetEnergyUpdated},null,8,["target-energy","soc-per-kwh","charged-energy","vehicle-capacity","onTargetEnergyUpdated"]))]),e.$hiddenFeatures?(M(),F("div",h3,p3)):ye("",!0)])}const Ni=fe(c3,[["render",g3],["__scopeId","data-v-517b8f49"]]),_3=1,v3={name:"Phases",props:{chargeCurrent:{type:Number},chargeCurrents:{type:Array},phasesActive:{type:Number},minCurrent:{type:Number},maxCurrent:{type:Number}},computed:{numberOfVisiblePhases(){if(!this.chargeCurrents)return this.phasesActive;const[e,t,n]=this.chargeCurrents.map(r=>r>=_3);return e&&!t&&!n?1:e&&t&&!n?2:3}},methods:{targetWidth(){let e=Math.min(Math.max(this.minCurrent,this.chargeCurrent),this.maxCurrent);return 100/this.maxCurrent*e},realWidth(e){if(this.chargeCurrents){const t=this.chargeCurrents[e-1]||0;return 100/this.maxCurrent*t}return this.targetWidth()}}};function b3(e,t,n,r,o,s){return M(),F("div",{class:Me(`phases phases--${s.numberOfVisiblePhases}p d-flex justify-content-between`)},[(M(),F(Se,null,He([1,2,3],i=>g("div",{key:i,class:Me(`phase phase--${i} me-1`)},[g("div",{class:"target",style:ft({width:`${s.targetWidth()}%`})},null,4),g("div",{class:"real",style:ft({width:`${s.realWidth(i)}%`})},null,4)],2)),64))],2)}const iu=fe(v3,[["render",b3],["__scopeId","data-v-7e178988"]]),y3={name:"LoadpointSettingsButton",props:{id:[String,Number]},methods:{openModal(){Xr.getOrCreateInstance(document.getElementById(`loadpointSettingsModal_${this.id}`)).show()}}},w3=g("shopicon-regular-adjust",{size:"s"},null,-1),E3=[w3];function T3(e,t,n,r,o,s){return M(),F("button",{type:"button",class:"btn btn-sm btn-outline-secondary position-relative border-0 p-2 evcc-gray",onClick:t[0]||(t[0]=(...i)=>s.openModal&&s.openModal(...i))},E3)}const S3=fe(y3,[["render",T3]]);var C3='';class A3 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=C3}}window.customElements.define("shopicon-bold-lightning",A3);var x3='';class L3 extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=x3}}window.customElements.define("shopicon-bold-car3",L3);const vs=230,M3={name:"LoadpointSettingsModal",mixins:[dt],props:{id:[String,Number],phasesConfigured:Number,minSoc:Number,maxCurrent:Number,minCurrent:Number,title:String},emits:["phasesconfigured-updated","maxcurrent-updated","mincurrent-updated","minsoc-updated"],data:function(){return{selectedMaxCurrent:this.maxCurrent,selectedMinCurrent:this.minCurrent,selectedPhases:this.phasesConfigured,selectedMinSoc:this.minSoc}},computed:{maxPower1p:function(){return this.fmtKw(this.maxCurrent*vs)},minPower1p:function(){return this.fmtKw(this.minCurrent*vs)},maxPower3p:function(){return this.fmtKw(this.maxCurrent*vs*3)},minPower3p:function(){return this.fmtKw(this.minCurrent*vs*3)},maxPower:function(){return this.phasesConfigured===1?this.maxPower1p:this.maxPower3p},minPower:function(){return this.phasesConfigured===3?this.minPower3p:this.minPower1p},showConfigurablePhases:function(){return[0,1,3].includes(this.phasesConfigured)},showCurrentSettings:function(){return this.$hiddenFeatures},showMinSocSettings:function(){return this.$hiddenFeatures}},watch:{maxCurrent:function(e){this.selectedMaxCurrent=e},minCurrent:function(e){this.selectedMinCurrent=e},phasesConfigured:function(e){this.selectedPhases=e},minSoc:function(e){this.selectedMinSoc=e}},methods:{formId:function(e){return`loadpoint_${this.id}_${e}`},changeMaxCurrent:function(){this.$emit("maxcurrent-updated",this.selectedMaxCurrent)},changeMinCurrent:function(){this.$emit("mincurrent-updated",this.selectedMinCurrent)},changePhasesConfigured:function(){this.$emit("phasesconfigured-updated",this.selectedPhases)},changeMinSoc:function(){this.$emit("minsoc-updated",this.selectedMinSoc)},currentOptions:function(e,t=16){const n=[],r=e?32:this.maxCurrent,o=e?this.minCurrent:6;for(let s=r;s>=o;s--){let i=`${s} A`;s===t&&(i+=` (${this.$t("main.loadpointSettings.default")})`),n.push({value:s,name:i})}return n}}},Fa=e=>(tt("data-v-8991a621"),e=e(),nt(),e),N3=["id"],$3={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},I3={class:"modal-content"},P3={class:"modal-header"},O3={class:"modal-title"},k3=Fa(()=>g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),R3={class:"modal-body"},D3={class:"container"},F3={key:0,class:"d-flex align-items-center mb-3 mt-0 text-evcc"},q3=Fa(()=>g("shopicon-bold-car3",{class:"ms-2"},null,-1)),V3={key:1,class:"mb-3 row"},H3=["for"],B3={class:"col-sm-8 pe-0"},U3=["id"],j3=["value"],Q3={key:2,class:"d-flex align-items-center mb-3 mt-4 text-evcc"},W3=Fa(()=>g("shopicon-bold-lightning",{class:"ms-1"},null,-1)),z3={key:3,class:"mb-3 row"},K3=["for"],Y3={class:"col-sm-8 pe-0"},Z3={class:"form-check"},G3=["id","name"],X3=["for"],J3={class:"form-check"},eE=["id","name"],tE=["for"],nE={class:"form-check"},rE=["id","name"],sE=["for"],oE={key:4,class:"mb-3 row"},iE=["for"],aE={class:"col-sm-8 pe-0 d-flex align-items-center"},lE=["id"],cE=["value"],uE={class:"ms-3"},fE={key:5,class:"mb-3 row"},dE=["for"],hE={class:"col-sm-8 pe-0 d-flex align-items-center"},mE=["id"],pE=["value"],gE={class:"ms-3"},_E={class:"small mt-3 text-muted mb-0"},vE={class:"text-evcc"};function bE(e,t,n,r,o,s){return M(),be(dr,{to:"body"},[g("div",{id:`loadpointSettingsModal_${n.id}`,class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},[g("div",$3,[g("div",I3,[g("div",P3,[g("h5",O3,B(e.$t("main.loadpointSettings.title",[n.title])),1),k3]),g("div",R3,[g("div",D3,[s.showMinSocSettings?(M(),F("h4",F3,[$e(B(e.$t("main.loadpointSettings.vehicle"))+" ",1),q3])):ye("",!0),s.showMinSocSettings?(M(),F("div",V3,[g("label",{for:s.formId("minsoc"),class:"col-sm-4 col-form-label pt-0 pt-sm-1"},B(e.$t("main.loadpointSettings.minSoc.label")),9,H3),g("div",B3,[mt(g("select",{id:s.formId("minsoc"),"onUpdate:modelValue":t[0]||(t[0]=i=>e.selectedMinSoc=i),class:"form-select form-select-sm mb-2 w-50",onChange:t[1]||(t[1]=(...i)=>s.changeMinSoc&&s.changeMinSoc(...i))},[(M(),F(Se,null,He([0,5,10,15,20,25,30,35,40,45,50],i=>g("option",{key:i,value:i},B(i?`${i}%`:"--"),9,j3)),64))],40,U3),[[Lr,e.selectedMinSoc,void 0,{number:!0}]]),g("small",null,B(e.$t("main.loadpointSettings.minSoc.description",[e.selectedMinSoc||"x"])),1)])])):ye("",!0),s.showConfigurablePhases||s.showCurrentSettings?(M(),F("h4",Q3,[$e(B(e.$t("main.loadpointSettings.currents"))+" ",1),W3])):ye("",!0),s.showConfigurablePhases?(M(),F("div",z3,[g("label",{for:s.formId("phases_0"),class:"col-sm-4 col-form-label pt-0"},B(e.$t("main.loadpointSettings.phasesConfigured.label")),9,K3),g("div",Y3,[g("div",Z3,[mt(g("input",{id:s.formId("phases_0"),"onUpdate:modelValue":t[2]||(t[2]=i=>e.selectedPhases=i),class:"form-check-input",type:"radio",name:s.formId("phases"),value:0,onChange:t[3]||(t[3]=(...i)=>s.changePhasesConfigured&&s.changePhasesConfigured(...i))},null,40,G3),[[Ao,e.selectedPhases,void 0,{number:!0}]]),g("label",{class:"form-check-label",for:s.formId("phases_0")},B(e.$t("main.loadpointSettings.phasesConfigured.phases_0")),9,X3)]),g("div",J3,[mt(g("input",{id:s.formId("phases_1"),"onUpdate:modelValue":t[4]||(t[4]=i=>e.selectedPhases=i),class:"form-check-input",type:"radio",name:s.formId("phases"),value:1,onChange:t[5]||(t[5]=(...i)=>s.changePhasesConfigured&&s.changePhasesConfigured(...i))},null,40,eE),[[Ao,e.selectedPhases,void 0,{number:!0}]]),g("label",{class:"form-check-label",for:s.formId("phases_1")},[$e(B(e.$t("main.loadpointSettings.phasesConfigured.phases_1"))+" ",1),g("small",null,B(e.$t("main.loadpointSettings.phasesConfigured.phases_1_hint",{min:s.minPower1p,max:s.maxPower1p})),1)],8,tE)]),g("div",nE,[mt(g("input",{id:s.formId("phases_3"),"onUpdate:modelValue":t[6]||(t[6]=i=>e.selectedPhases=i),class:"form-check-input",type:"radio",name:s.formId("phases"),value:3,onChange:t[7]||(t[7]=(...i)=>s.changePhasesConfigured&&s.changePhasesConfigured(...i))},null,40,rE),[[Ao,e.selectedPhases,void 0,{number:!0}]]),g("label",{class:"form-check-label",for:s.formId("phases_3")},[$e(B(e.$t("main.loadpointSettings.phasesConfigured.phases_3"))+" ",1),g("small",null,B(e.$t("main.loadpointSettings.phasesConfigured.phases_3_hint",{min:s.minPower3p,max:s.maxPower3p})),1)],8,sE)])])])):ye("",!0),e.$hiddenFeatures?(M(),F("div",oE,[g("label",{for:s.formId("maxcurrent"),class:"col-sm-4 col-form-label pt-0 pt-sm-2"},B(e.$t("main.loadpointSettings.maxCurrent.label")),9,iE),g("div",aE,[mt(g("select",{id:s.formId("maxcurrent"),"onUpdate:modelValue":t[8]||(t[8]=i=>e.selectedMaxCurrent=i),class:"form-select form-select-sm w-50",onChange:t[9]||(t[9]=(...i)=>s.changeMaxCurrent&&s.changeMaxCurrent(...i))},[(M(!0),F(Se,null,He(s.currentOptions(!0,16),({value:i,name:a})=>(M(),F("option",{key:i,value:i},B(a),9,cE))),128))],40,lE),[[Lr,e.selectedMaxCurrent,void 0,{number:!0}]]),g("small",uE,"~ "+B(s.maxPower),1)])])):ye("",!0),e.$hiddenFeatures?(M(),F("div",fE,[g("label",{for:s.formId("mincurrent"),class:"col-sm-4 col-form-label pt-0 pt-sm-2"},B(e.$t("main.loadpointSettings.minCurrent.label")),9,dE),g("div",hE,[mt(g("select",{id:s.formId("mincurrent"),"onUpdate:modelValue":t[10]||(t[10]=i=>e.selectedMinCurrent=i),class:"form-select form-select-sm w-50",onChange:t[11]||(t[11]=(...i)=>s.changeMinCurrent&&s.changeMinCurrent(...i))},[(M(!0),F(Se,null,He(s.currentOptions(!1,6),({value:i,name:a})=>(M(),F("option",{key:i,value:i},B(a),9,pE))),128))],40,mE),[[Lr,e.selectedMinCurrent,void 0,{number:!0}]]),g("small",gE,"~ "+B(s.minPower),1)])])):ye("",!0)]),g("p",_E,[g("strong",vE,B(e.$t("main.loadpointSettings.disclaimerHint")),1),$e(" "+B(e.$t("main.loadpointSettings.disclaimerText")),1)])])])])],8,N3)])}const au=fe(M3,[["render",bE],["__scopeId","data-v-8991a621"]]),yE={name:"Loadpoint",components:{Mode:k4,Vehicle:Ni,Phases:iu,LabelAndValue:ss,LoadpointSettingsButton:S3,LoadpointSettingsModal:au},mixins:[dt,vo],props:{id:Number,single:Boolean,title:String,mode:String,targetSoc:Number,targetEnergy:Number,remoteDisabled:Boolean,remoteDisabledSource:String,chargeDuration:Number,charging:Boolean,connected:Boolean,enabled:Boolean,vehicleDetectionActive:Boolean,vehiclePresent:Boolean,vehicleRange:Number,vehicleSoc:Number,vehicleTitle:String,vehicleIcon:String,vehicleTargetSoc:Number,vehicleCapacity:Number,vehicleFeatureOffline:Boolean,vehicles:Array,minSoc:Number,targetTime:String,targetTimeActive:Boolean,targetTimeProjectedStart:String,vehicleProviderLoggedIn:Boolean,vehicleProviderLoginPath:String,vehicleProviderLogoutPath:String,chargePower:Number,chargedEnergy:Number,climater:String,chargeRemainingDuration:Number,phases:Number,phasesConfigured:Number,minCurrent:Number,maxCurrent:Number,phasesActive:Number,chargeCurrent:Number,connectedDuration:Number,chargeCurrents:Array,chargeConfigured:Boolean,chargeRemainingEnergy:Number,phaseAction:String,phaseRemaining:Number,pvRemaining:Number,pvAction:String},data(){return{tickerHandler:null,phaseRemainingInterpolated:this.phaseRemaining,pvRemainingInterpolated:this.pvRemaining,chargeDurationInterpolated:this.chargeDuration,chargeRemainingDurationInterpolated:this.chargeRemainingDuration}},computed:{phasesProps:function(){return this.collectProps(iu)},settingsModal:function(){return this.collectProps(au)},settingsButtonVisible:function(){return this.$hiddenFeatures||[0,1,3].includes(this.phasesConfigured)},vehicle:function(){return this.collectProps(Ni)},showChargingIndicator:function(){return this.charging&&this.chargePower>0},socBasedCharging:function(){return!this.vehicleFeatureOffline&&this.vehiclePresent}},watch:{phaseRemaining(){this.phaseRemainingInterpolated=this.phaseRemaining},pvRemaining(){this.pvRemainingInterpolated=this.pvRemaining},chargeDuration(){this.chargeDurationInterpolated=this.chargeDuration},chargeRemainingDuration(){this.chargeRemainingDurationInterpolated=this.chargeRemainingDuration}},mounted(){this.tickerHandler=setInterval(this.tick,1e3)},unmounted(){clearInterval(this.tickerHandler)},methods:{tick(){this.phaseRemainingInterpolated>0&&this.phaseRemainingInterpolated--,this.pvRemainingInterpolated>0&&this.pvRemainingInterpolated--,this.chargeDurationInterpolated>0&&this.charging&&this.chargeDurationInterpolated++,this.chargeRemainingDurationInterpolated>0&&this.charging&&this.chargeRemainingDurationInterpolated--},apiPath:function(e){return"loadpoints/"+this.id+"/"+e},setTargetMode:function(e){Ze.post(this.apiPath("mode")+"/"+e)},setTargetSoc:function(e){Ze.post(this.apiPath("targetsoc")+"/"+e)},setTargetEnergy:function(e){Ze.post(this.apiPath("targetenergy")+"/"+e)},setMaxCurrent:function(e){Ze.post(this.apiPath("maxcurrent")+"/"+e)},setMinCurrent:function(e){Ze.post(this.apiPath("mincurrent")+"/"+e)},setPhasesConfigured:function(e){Ze.post(this.apiPath("phases")+"/"+e)},setMinSoc:function(e){Ze.post(this.apiPath("minsoc")+"/"+e)},setTargetTime:function(e){Ze.post(`${this.apiPath("targetcharge")}/${this.targetSoc}/${e.toISOString()}`)},removeTargetTime:function(){Ze.delete(this.apiPath("targetcharge"))},changeVehicle(e){Ze.post(this.apiPath("vehicle")+`/${e}`)},removeVehicle(){Ze.delete(this.apiPath("vehicle"))},fmtPower(e){const t=e==0||e>=1e3;return this.fmtKw(e,t)},fmtEnergy(e){const t=e==0||e>=1e3;return this.fmtKWh(e,t)}}},wE=e=>(tt("data-v-d2c43da5"),e=e(),nt(),e),EE={class:"loadpoint pt-4 pb-2 px-3 px-sm-4 mx-2 mx-sm-0"},TE={class:"d-block d-sm-flex justify-content-between align-items-center mb-3"},SE={class:"d-flex justify-content-between align-items-center mb-3"},CE={class:"me-2 mb-0 text-truncate"},AE={class:"mb-3 d-flex align-items-center"},xE={class:"details d-flex align-items-start mb-3"},LE={class:"d-flex align-items-center"},ME=wE(()=>g("hr",{class:"divider"},null,-1));function NE(e,t,n,r,o,s){const i=de("LoadpointSettingsButton"),a=de("Mode"),l=de("LoadpointSettingsModal"),c=de("LabelAndValue"),u=de("Phases"),f=de("Vehicle");return M(),F("div",EE,[g("div",TE,[g("div",SE,[g("h3",CE,B(n.title||e.$t("main.loadpoint.fallbackName")),1),s.settingsButtonVisible?(M(),be(i,{key:0,id:n.id,class:"d-block d-sm-none"},null,8,["id"])):ye("",!0)]),g("div",AE,[re(a,{class:"flex-grow-1",mode:n.mode,onUpdated:s.setTargetMode},null,8,["mode","onUpdated"]),s.settingsButtonVisible?(M(),be(i,{key:0,id:n.id,class:"d-none d-sm-block ms-2"},null,8,["id"])):ye("",!0)])]),re(l,pt(s.settingsModal,{onMaxcurrentUpdated:s.setMaxCurrent,onMincurrentUpdated:s.setMinCurrent,onPhasesconfiguredUpdated:s.setPhasesConfigured,onMinsocUpdated:s.setMinSoc}),null,16,["onMaxcurrentUpdated","onMincurrentUpdated","onPhasesconfiguredUpdated","onMinsocUpdated"]),n.remoteDisabled?(M(),F("div",{key:0,class:Me(["alert alert-warning my-4 py-2",`${n.remoteDisabled==="hard"?"alert-danger":"alert-warning"}`]),role:"alert"},B(e.$t(n.remoteDisabled==="hard"?"main.loadpoint.remoteDisabledHard":"main.loadpoint.remoteDisabledSoft",{source:n.remoteDisabledSource})),3)):ye("",!0),g("div",xE,[g("div",null,[g("div",LE,[re(c,{label:e.$t("main.loadpoint.power"),value:n.chargePower,valueFmt:s.fmtPower,class:"mb-2",align:"start"},null,8,["label","value","valueFmt"]),g("shopicon-regular-lightning",{class:Me(["text-evcc opacity-transiton",`opacity-${s.showChargingIndicator?"100":"0"}`]),size:"m"},null,2)]),re(u,pt(s.phasesProps,{class:["opacity-transiton",`opacity-${s.showChargingIndicator?"100":"0"}`]}),null,16,["class"])]),mt(re(c,{label:e.$t("main.loadpoint.charged"),value:s.fmtEnergy(n.chargedEnergy),align:"center"},null,8,["label","value"]),[[ea,s.socBasedCharging]]),o.chargeRemainingDurationInterpolated?(M(),be(c,{key:0,label:e.$t("main.loadpoint.remaining"),value:` ${e.fmtShortDuration(o.chargeRemainingDurationInterpolated)} ${e.fmtShortDurationUnit(o.chargeRemainingDurationInterpolated,!0)}`,align:"end"},null,8,["label","value"])):(M(),be(c,{key:1,label:e.$t("main.loadpoint.duration"),value:` ${e.fmtShortDuration(o.chargeDurationInterpolated)} - ${e.fmtShortDurationUnit(o.chargeDurationInterpolated)}`,align:"end"},null,8,["label","value"]))]),xE,re(f,pt(s.vehicle,{onTargetSocUpdated:s.setTargetSoc,onTargetEnergyUpdated:s.setTargetEnergy,onTargetTimeUpdated:s.setTargetTime,onTargetTimeRemoved:s.removeTargetTime,onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle}),null,16,["onTargetSocUpdated","onTargetEnergyUpdated","onTargetTimeUpdated","onTargetTimeRemoved","onChangeVehicle","onRemoveVehicle"])])}const ME=fe(vE,[["render",LE],["__scopeId","data-v-d2c43da5"]]),NE={name:"Site",components:{Loadpoint:ME},props:{loadpoints:Array,vehicles:Array},data(){return{selectedIndex:0,snapTimeout:null}},mounted(){this.$refs.carousel.addEventListener("scroll",this.handleCarouselScroll,!1)},unmounted(){this.$refs.carousel&&this.$refs.carousel.removeEventListener("scroll",this.handleCarouselScroll)},methods:{handleCarouselScroll(){const{scrollLeft:e}=this.$refs.carousel,{offsetWidth:t}=this.$refs.carousel.children[0];this.selectedIndex=Math.round((e-7.5)/t)},selected(e){return this.selectedIndex===e},scrollTo(e){if(this.selectedIndex===e)return;this.selectedIndex=e;const t=this.$refs.carousel,n=t.children[0].offsetWidth;t.style.scrollSnapType="none",t.scrollTo({top:0,left:7.5+n*e,behavior:"smooth"}),clearTimeout(this.snapTimeout),this.snapTimeout=setTimeout(()=>{this.$refs.carousel.style.scrollSnapType="x mandatory"},1e3)}}},$E=e=>(tt("data-v-50cff141"),e=e(),nt(),e),IE={class:"container container--loadpoint px-0 mb-md-2 d-flex flex-column justify-content-center"},OE={ref:"carousel",class:"carousel d-lg-flex flex-wrap"},PE={key:0,class:"d-flex d-lg-none justify-content-center"},kE=["onClick"],RE=$E(()=>g("shopicon-filled-circle",{class:"indicator-icon"},null,-1)),DE=[RE];function FE(e,t,n,r,o,s){const i=de("Loadpoint");return M(),F("div",IE,[g("div",OE,[(M(!0),F(Se,null,He(n.loadpoints,(a,l)=>(M(),F("div",{key:l,class:"flex-grow-1 mb-3 m-lg-0 p-lg-0"},[re(i,pt(a,{id:l+1,vehicles:n.vehicles,class:["h-100",{"loadpoint-unselected":!s.selected(l)}],onClick:c=>s.scrollTo(l)}),null,16,["id","vehicles","class","onClick"])]))),128))],512),n.loadpoints.length>1?(M(),F("div",PE,[(M(!0),F(Se,null,He(n.loadpoints,(a,l)=>(M(),F("button",{key:l,class:Me(["btn btn-sm btn-link p-0 mx-1 indicator d-flex justify-content-center align-items-center evcc-default-text",{"indicator--selected":s.selected(l)}]),onClick:c=>s.scrollTo(l)},DE,10,kE))),128))])):ye("",!0)])}const qE=fe(NE,[["render",FE],["__scopeId","data-v-50cff141"]]),VE={name:"Vehicles",components:{Vehicle:Mi},data(){return{refreshing:!1,vehicles:[{vehiclePresent:!0,vehicleTitle:"Ford Mustang Mach-E",vehicleSoc:46,vehicleRange:182,targetSoc:100},{vehiclePresent:!0,vehicleTitle:"Renault Twingo Electric",vehicleSoc:77,vehicleRange:98,targetSoc:90},{vehiclePresent:!0,vehicleTitle:"Blauer VW ID.4",vehicleSoc:16,vehicleRange:52,minSoc:35,targetSoc:60}]}},methods:{refresh(){this.refreshing=!0,window.setTimeout(()=>{this.refreshing=!1},5e3)}}},HE=e=>(tt("data-v-253aba9c"),e=e(),nt(),e),BE={class:"container px-4 mb-3 mb-sm-4 d-flex justify-content-start align-items-center"},UE={class:"m-0"},jE=["disabled"],QE=HE(()=>g("shopicon-regular-refresh",{class:"refresh-icon"},null,-1)),WE=[QE];function zE(e,t,n,r,o,s){const i=de("Vehicle");return M(),F("div",null,[g("div",BE,[g("h2",UE,B(e.$t("main.vehicles")),1),g("button",{class:Me(["btn btn-link d-flex evcc-default-text p-2 ms-1 refresh",{"refresh--in-progress":o.refreshing}]),disabled:o.refreshing,onClick:t[0]||(t[0]=(...a)=>s.refresh&&s.refresh(...a))},WE,10,jE)]),g("div",{class:Me(["container vehicles px-0 mb-5",`vehicles-${o.vehicles.length}`])},[(M(!0),F(Se,null,He(o.vehicles,(a,l)=>(M(),be(i,pt(a,{id:`vehicle_${l}`,key:l,class:"vehicle",parked:""}),null,16,["id"]))),128))],2)])}const KE=fe(VE,[["render",zE],["__scopeId","data-v-253aba9c"]]);var YE='';class ZE extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=YE}}window.customElements.define("shopicon-filled-testtube",ZE);const GE={name:"Logo"},Fa=e=>(tt("data-v-9d6237eb"),e=e(),nt(),e),XE={viewBox:"0 0 122 35",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"},JE=Fa(()=>g("path",{d:"M13.082 29.071a12.384 12.384 0 01-9-3.42 12.192 12.192 0 01-3.54-9.12v-.64a15.394 15.394 0 011.47-6.83 10.825 10.825 0 014.17-4.64 11.64 11.64 0 016.15-1.63 10.45 10.45 0 018.21 3.26c2 2.194 3 5.297 3 9.31v2.76H7.382a6.348 6.348 0 002 4 5.997 5.997 0 004.16 1.49 7.305 7.305 0 006.1-2.84l3.31 3.73a10 10 0 01-4.13 3.39 13.309 13.309 0 01-5.74 1.18zm-.77-20.84a4.216 4.216 0 00-3.26 1.37 7.141 7.141 0 00-1.6 3.91h9.39v-.55a5.005 5.005 0 00-1.22-3.49 4.304 4.304 0 00-3.31-1.24zM36.452 20.331l4.7-17.09h7l-8.48 25.36h-6.44l-8.52-25.36h7l4.74 17.09zM85.542 23.611a4.444 4.444 0 003-1 3.638 3.638 0 001.22-2.75h6.32a8.668 8.668 0 01-1.4 4.73 9.145 9.145 0 01-3.79 3.3 11.736 11.736 0 01-5.29 1.19 10.912 10.912 0 01-8.54-3.46c-2.087-2.3-3.13-5.483-3.13-9.55v-.45c0-3.9 1.033-7.016 3.1-9.35a10.868 10.868 0 018.51-3.5c2.791-.134 5.524.84 7.6 2.71a9.626 9.626 0 012.9 7.21h-6.3a4.663 4.663 0 00-1.2-3.22 4.005 4.005 0 00-3.08-1.24 4.068 4.068 0 00-3.56 1.73c-.8 1.15-1.2 3-1.2 5.6v.7c0 2.61.39 4.49 1.19 5.63a4.092 4.092 0 003.65 1.72zM110.422 23.611a4.454 4.454 0 003-1 3.63 3.63 0 001.21-2.75h6.33a8.668 8.668 0 01-1.4 4.73 9.143 9.143 0 01-3.73 3.3 11.76 11.76 0 01-5.29 1.18 10.912 10.912 0 01-8.54-3.46c-2.087-2.3-3.13-5.483-3.13-9.55v-.45c0-3.9 1.033-7.016 3.1-9.35a10.85 10.85 0 018.57-3.49 10.575 10.575 0 017.6 2.71 9.598 9.598 0 012.91 7.21h-6.33a4.651 4.651 0 00-1.21-3.22 4.492 4.492 0 00-6.64.49c-.8 1.15-1.21 3-1.21 5.6v.7c0 2.607.4 4.484 1.2 5.63a4.09 4.09 0 003.56 1.72z",fill:"#fff",class:"letter","fill-rule":"nonzero"},null,-1)),e7=Fa(()=>g("path",{d:"M58.462.751h9.22l-6.14 12.3h6.15l-11.53 21.51 2.3-15.36h-7.68l7.68-18.45z",fill:"#0fdd42","fill-rule":"nonzero"},null,-1)),t7=Fa(()=>g("path",{fill:"none",d:"M-24.458-22.109h170v76h-170z"},null,-1)),n7=[JE,e7,t7];function r7(e,t,n,r,o,s){return M(),F("svg",XE,n7)}const s7=fe(GE,[["render",r7],["__scopeId","data-v-9d6237eb"]]),o7={name:"Version",components:{Logo:s7},props:{installed:String,available:String,releaseNotes:String,commit:String,hasUpdater:Boolean,uploadMessage:String,uploadProgress:Number},data:function(){return{updateStarted:!1,updateStatus:""}},computed:{githubHashUrl:function(){return`https://github.com/evcc-io/evcc/commit/${this.commit}`},newVersionAvailable:function(){return this.available&&this.installed!="[[.Version]]"&&this.installed!="0.0.1-alpha"&&this.available!=this.installed}},methods:{update:async function(){try{await Ze.post("update"),this.updateStatus=this.$t("footer.version.modalUpdateStatusStart"),this.updateStarted=!0}catch(e){this.updateStatus=`${this.$t("footer.version.modalUpdateStatusStart")} ${e}`}},releaseNotesUrl:function(e){return`https://github.com/evcc-io/evcc/releases/tag/${e}`},openModal(){Xr.getOrCreateInstance(document.getElementById("updateModal")).show()}}},bo=e=>(tt("data-v-21363014"),e=e(),nt(),e),i7=["href"],a7=bo(()=>g("shopicon-regular-moonstars",{class:"ms-2 text-gray-light"},null,-1)),l7=bo(()=>g("shopicon-regular-gift",{class:"me-2"},null,-1)),c7={class:"ms-2 d-none d-sm-block text-gray-medium text-decoration-underline"},u7=["href"],f7={id:"updateModal",class:"modal fade text-dark",tabindex:"-1",role:"dialog","aria-hidden":"true"},d7={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},h7={class:"modal-content"},m7={class:"modal-header"},p7={class:"modal-title"},g7=bo(()=>g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),_7={class:"modal-body"},v7={key:0},b7={class:"progress my-3"},y7={key:1},w7=["innerHTML"],E7={key:1},T7=["href"],S7={class:"modal-footer d-flex justify-content-between"},C7=["disabled"],A7=["disabled"],x7={key:0},L7=bo(()=>g("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),M7={key:1},N7=["href"];function $7(e,t,n,r,o,s){const i=de("Logo");return M(),F("div",null,[n.commit?(M(),F("a",{key:0,href:s.githubHashUrl,target:"_blank",class:"btn btn-link ps-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end"},[re(i,{class:"logo me-2"}),$e(" v"+B(n.installed)+" ",1),a7],8,i7)):s.newVersionAvailable?(M(),F("button",{key:1,href:"#",class:"btn btn-link ps-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end",onClick:t[0]||(t[0]=(...a)=>s.openModal&&s.openModal(...a))},[l7,$e(" v"+B(n.installed)+" ",1),g("span",c7,B(e.$t("footer.version.availableLong")),1)])):(M(),F("a",{key:2,href:s.releaseNotesUrl(n.installed),target:"_blank",class:"btn btn-link evcc-default-text ps-0 text-decoration-none text-nowrap d-flex align-items-end"},[re(i,{class:"logo me-2"}),$e(" v"+B(n.installed),1)],8,u7)),(M(),be(dr,{to:"body"},[g("div",f7,[g("div",d7,[g("div",h7,[g("div",m7,[g("h5",p7,B(e.$t("footer.version.modalTitle")),1),g7]),g("div",_7,[e.updateStarted?(M(),F("div",v7,[g("p",null,B(e.$t("footer.version.modalUpdateStarted")),1),g("div",b7,[g("div",{class:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar",style:ft({width:n.uploadProgress+"%"})},null,4)]),g("p",null,B(e.updateStatus)+" "+B(n.uploadMessage),1)])):(M(),F("div",y7,[g("p",null,[g("small",null,B(e.$t("footer.version.modalInstalledVersion"))+": "+B(n.installed),1)]),n.releaseNotes?(M(),F("div",{key:0,innerHTML:n.releaseNotes},null,8,w7)):(M(),F("p",E7,[$e(B(e.$t("footer.version.modalNoReleaseNotes"))+" ",1),g("a",{href:s.releaseNotesUrl(n.available)},"GitHub",8,T7),$e(". ")]))]))]),g("div",S7,[g("button",{type:"button",class:"btn btn-outline-secondary",disabled:e.updateStarted,"data-bs-dismiss":"modal"},B(e.$t("footer.version.modalCancel")),9,C7),g("div",null,[n.hasUpdater?(M(),F("button",{key:0,type:"button",class:"btn btn-primary",disabled:e.updateStarted,onClick:t[1]||(t[1]=(...a)=>s.update&&s.update(...a))},[e.updateStarted?(M(),F("span",x7,[L7,$e(" "+B(e.$t("footer.version.modalUpdate")),1)])):(M(),F("span",M7,B(e.$t("footer.version.modalUpdateNow")),1))],8,A7)):(M(),F("a",{key:1,href:s.releaseNotesUrl(n.available),class:"btn btn-primary"},B(e.$t("footer.version.modalDownload")),9,N7))])])])])])]))])}const I7=fe(o7,[["render",$7],["__scopeId","data-v-21363014"]]);var os={};(function e(t,n,r,o){var s=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function i(){}function a(I){var N=n.exports.Promise,Z=N!==void 0?N:t.Promise;return typeof Z=="function"?new Z(I):(I(i,i),null)}var l=function(){var I=Math.floor(16.666666666666668),N,Z,G={},te=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(N=function(le){var he=Math.random();return G[he]=requestAnimationFrame(function ae(me){te===me||te+I-1(tt("data-v-72ab4b84"),e=e(),nt(),e),q7={key:0},V7={class:"fw-bold mb-1 d-flex"},H7=qa(()=>g("shopicon-regular-heart",{class:"title-icon text-primary d-inline-block me-1"},null,-1)),B7={class:"mb-3"},U7={class:"d-flex justify-content-center align-items-center flex-column flex-lg-row align-items-lg-baseline justify-content-lg-start"},j7=qa(()=>g("shopicon-regular-stars",{class:"me-1 d-inline-block"},null,-1)),Q7={href:"https://evcc.io/sticker",target:"_blank",class:"small text-muted ms-lg-3"},W7={key:1},z7={class:"fw-bold mb-1"},K7={class:"mb-3"},Y7={class:"d-flex justify-content-center align-items-center flex-column flex-lg-row align-items-lg-baseline justify-content-lg-start"},Z7={target:"_blank",href:"https://github.com/sponsors/evcc-io",class:"btn btn-outline-primary mb-3 become-sponsor"},G7=qa(()=>g("shopicon-regular-heart",{class:"me-1 d-inline-block"},null,-1)),X7={class:"small text-muted text-center ms-lg-3"};function J7(e,t,n,r,o,s){return n.sponsor?(M(),F("div",q7,[g("p",V7,[H7,$e(" "+B(e.$t("footer.sponsor.titleSponsor")),1)]),g("p",B7,B(e.$t("footer.sponsor.thanks",{sponsor:n.sponsor})),1),g("div",U7,[g("button",{ref:"confetti",class:"btn btn btn-outline-primary mb-2 confetti-button bg-evcc rounded",onClick:t[0]||(t[0]=(...i)=>s.surprise&&s.surprise(...i))},[j7,$e(" "+B(e.$t("footer.sponsor.confetti")),1)],512),g("a",Q7,B(e.$t("footer.sponsor.sticker")),1)])])):(M(),F("div",W7,[g("p",z7,B(e.$t("footer.sponsor.titleNoSponsor")),1),g("p",K7,B(e.$t("footer.sponsor.supportUs")),1),g("div",Y7,[g("a",Z7,[G7,$e(" "+B(e.$t("footer.sponsor.becomeSponsor")),1)]),g("div",X7,B(e.$t("footer.sponsor.confettiPromise"))+" ;) ",1)])]))}const eT=fe(F7,[["render",J7],["__scopeId","data-v-72ab4b84"]]);var tT='';class nT extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=tT}}window.customElements.define("shopicon-regular-coinjar",nT);var rT='';class sT extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=rT}}window.customElements.define("shopicon-regular-receivepayment",sT);var oT='';class iT extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=oT}}window.customElements.define("shopicon-regular-eco1",iT);const aT={name:"SavingsTile",components:{AnimatedNumber:kn},props:{title:String,icon:String,value:[String,Number],valueFmt:Function,unit:String,sub1:String,sub2:String}},lT=e=>(tt("data-v-b96f12a6"),e=e(),nt(),e),cT={class:"flex-shrink-1 d-flex mb-4 mb-lg-0 align-items-center align-items-lg-start"},uT={key:0,class:"tile-icon"},fT={key:1,class:"tile-icon"},dT={key:2,class:"tile-icon"},hT={key:3,class:"tile-icon"},mT={key:4,class:"tile-icon"},pT={class:"ms-3 d-flex flex-grow-1 d-lg-block align-items-center justify-content-between"},gT={class:"my-0 fw-bold text-truncate"},_T={class:"d-flex align-items-baseline lh-sm"},vT={class:"fs-1"},bT={key:1},yT={class:"ms-1 unit"},wT={class:"d-block mt-0 ms-3 ms-lg-0 text-end text-lg-start"},ET=lT(()=>g("br",null,null,-1));function TT(e,t,n,r,o,s){const i=de("AnimatedNumber");return M(),F("div",cT,[n.icon==="sun"?(M(),F("shopicon-regular-sun",uT)):ye("",!0),n.icon==="coinjar"?(M(),F("shopicon-regular-coinjar",fT)):ye("",!0),n.icon==="receivepayment"?(M(),F("shopicon-regular-receivepayment",dT)):ye("",!0),n.icon==="car"?(M(),F("shopicon-regular-car3",hT)):ye("",!0),n.icon==="eco"?(M(),F("shopicon-regular-eco1",mT)):ye("",!0),g("div",pT,[g("div",null,[g("p",gT,B(n.title),1),g("strong",_T,[g("span",vT,[n.valueFmt?(M(),be(i,{key:0,to:n.value,format:n.valueFmt},null,8,["to","format"])):(M(),F("span",bT,B(n.value),1))]),g("span",yT,B(n.unit),1)])]),g("small",wT,[$e(B(n.sub1)+" ",1),ET,$e(" "+B(n.sub2),1)])])])}const Jd=fe(aT,[["render",TT],["__scopeId","data-v-b96f12a6"]]),eh=ho.create({baseURL:"https://api.evcc.io/v1/",headers:{Accept:"application/json"}});eh.interceptors.response.use(e=>e,e=>{const t=e.config.baseURL+e.config.url,n=`${e.message}: API request failed ${t}`;return window.app.error({message:n}),Promise.reject(e)});const ST=10,CT={name:"LiveCommunity",components:{SavingsTile:Jd},mixins:[dt],props:{},data(){return{refresh:null,result:{}}},computed:{totalClients(){return this.result.totalClients},activeClients(){return this.result.activeClients},chargePower(){const{chargePower:e=0}=this.result;return e/1e3},greenShare(){const{chargePower:e,greenPower:t}=this.result;return e?100/e*t:0},greenEnergyMWh(){const{greenEnergy:e=0}=this.result;return e/1e3}},async mounted(){this.refresh=setInterval(this.update,ST*1e3),await this.update()},unmounted(){clearInterval(this.refresh)},methods:{async update(){try{const e=await eh.get("total");this.result=e.data||{}}catch(e){console.error(e)}},fmtAnimation(e){return this.fmtNumber(e,0)},fmtAnimationDecimal(e){return this.fmtNumber(e,1)}}},AT={class:"d-block d-lg-flex mb-2 justify-content-between"};function xT(e,t,n,r,o,s){const i=de("SavingsTile");return M(),F("div",AT,[re(i,{class:"text-accent2",icon:"car",title:e.$t("footer.community.power"),value:s.chargePower,valueFmt:s.fmtAnimation,unit:"kW",sub1:e.$t("footer.community.powerSub1",{totalClients:s.totalClients,activeClients:s.activeClients}),sub2:e.$t("footer.community.powerSub2")},null,8,["title","value","valueFmt","sub1","sub2"]),re(i,{class:"text-accent1",icon:"sun",title:e.$t("footer.community.greenShare"),value:s.greenShare,valueFmt:s.fmtAnimationDecimal,unit:"%",sub1:e.$t("footer.community.greenShareSub1"),sub2:e.$t("footer.community.greenShareSub2")},null,8,["title","value","valueFmt","sub1","sub2"]),re(i,{class:"text-accent3",icon:"eco",title:e.$t("footer.community.greenEnergy"),value:s.greenEnergyMWh,valueFmt:s.fmtAnimationDecimal,unit:"MWh",sub1:e.$t("footer.community.greenEnergySub1"),sub2:e.$t("footer.community.greenEnergySub2")},null,8,["title","value","valueFmt","sub1","sub2"])])}const LT=fe(CT,[["render",xT]]),MT={name:"Savings",components:{Sponsor:eT,SavingsTile:Jd,LiveCommunity:LT,TelemetrySettings:bd},mixins:[dt],props:{selfConsumptionPercent:Number,since:{type:Number,default:0},sponsor:String,amount:{type:Number,default:0},effectivePrice:{type:Number,default:0},totalCharged:{type:Number,default:0},gridCharged:{type:Number,default:0},selfConsumptionCharged:{type:Number,default:0},gridPrice:{type:Number},feedInPrice:{type:Number},currency:String},data(){return{communityView:!1,telemetryEnabled:!1}},computed:{percent(){return Math.round(this.selfConsumptionPercent)||0},effectivePriceFormatted(){const[e,t]=this.fmtPricePerKWh(this.effectivePrice,this.currency).split(" ");return{value:e,unit:t}},startDate(){return new Date(this.since*1e3)}},methods:{showCommunity(){this.communityView=!0},showMyData(){this.communityView=!1},openModal(){Xr.getOrCreateInstance(document.getElementById("savingsModal")).show()}}},NT={class:"d-inline d-sm-none"},$T={class:"d-none d-sm-inline"},IT=g("shopicon-regular-sun",{class:"ms-2 text-evcc"},null,-1),OT={id:"savingsModal",ref:"modal",class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},PT={class:"modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable",role:"document"},kT={class:"modal-content"},RT={class:"modal-header"},DT={class:"modal-title"},FT=g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),qT={class:"modal-body"},VT={class:"nav nav-tabs"},HT={class:"nav-item"},BT={class:"nav-item"},UT={key:0,class:"my-4"},jT={class:"d-block d-lg-flex mb-2 justify-content-between"},QT={class:"my-3 lh-2"},WT={key:1,class:"my-4"};function zT(e,t,n,r,o,s){const i=de("SavingsTile"),a=de("LiveCommunity"),l=de("TelemetrySettings"),c=de("Sponsor");return M(),F("div",null,[g("button",{class:"btn btn-link pe-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end",onClick:t[0]||(t[0]=(...u)=>s.openModal&&s.openModal(...u))},[g("span",NT,B(e.$t("footer.savings.footerShort",{percent:s.percent})),1),g("span",$T,B(e.$t("footer.savings.footerLong",{percent:s.percent})),1),IT]),(M(),be(dr,{to:"body"},[g("div",OT,[g("div",PT,[g("div",kT,[g("div",RT,[g("h5",DT,B(e.$t("footer.savings.modalTitle")),1),FT]),g("div",qT,[g("ul",VT,[g("li",HT,[g("a",{class:Me(["nav-link",{active:!o.communityView}]),href:"#",onClick:t[1]||(t[1]=Rs((...u)=>s.showMyData&&s.showMyData(...u),["prevent"]))},B(e.$t("footer.savings.tabTitle")),3)]),g("li",BT,[g("a",{class:Me(["nav-link",{active:o.communityView}]),href:"#",onClick:t[2]||(t[2]=Rs((...u)=>s.showCommunity&&s.showCommunity(...u),["prevent"]))},B(e.$t("footer.community.tabTitle")),3)])]),o.communityView?(M(),F("div",WT,[re(a),re(l,{sponsor:n.sponsor},null,8,["sponsor"])])):(M(),F("div",UT,[g("div",jT,[re(i,{class:"text-accent1",icon:"sun",title:e.$t("footer.savings.percentTitle"),value:s.percent,unit:"%",sub1:e.$t("footer.savings.percentSelf",{self:e.fmtKw(n.selfConsumptionCharged*1e3,!0,!1)}),sub2:e.$t("footer.savings.percentGrid",{grid:e.fmtKw(n.gridCharged*1e3,!0,!1)})},null,8,["title","value","sub1","sub2"]),re(i,{class:"text-accent2",icon:"receivepayment",title:e.$t("footer.savings.priceTitle"),value:s.effectivePriceFormatted.value,unit:s.effectivePriceFormatted.unit,sub1:e.$t("footer.savings.priceFeedIn",{feedInPrice:e.fmtPricePerKWh(n.feedInPrice,n.currency)}),sub2:e.$t("footer.savings.priceGrid",{gridPrice:e.fmtPricePerKWh(n.gridPrice,n.currency)})},null,8,["title","value","unit","sub1","sub2"]),re(i,{class:"text-accent3",icon:"coinjar",title:e.$t("footer.savings.savingsTitle"),value:e.fmtMoney(n.amount,n.currency),unit:e.fmtCurrencySymbol(n.currency),sub1:e.$t("footer.savings.savingsComparedToGrid"),sub2:e.$t("footer.savings.savingsTotalEnergy",{total:e.fmtKw(n.totalCharged*1e3,!0,!1)})},null,8,["title","value","unit","sub1","sub2"])]),g("p",QT,[g("small",null,B(e.$t("footer.savings.since",{since:e.fmtDayMonthYear(s.startDate)})),1)])])),re(c,{sponsor:n.sponsor},null,8,["sponsor"])])])])],512)]))])}const KT=fe(MT,[["render",zT]]),YT={name:"Footer",components:{Version:I7,Savings:KT},props:{version:Object,sponsor:String,savings:Object}},ZT={class:"footer"},GT={class:"container py-2"},XT={class:"d-flex justify-content-between"};function JT(e,t,n,r,o,s){const i=de("Version"),a=de("Savings");return M(),F("footer",ZT,[g("div",GT,[g("div",XT,[re(i,St(yt(n.version)),null,16),re(a,pt(n.savings,{sponsor:n.sponsor}),null,16,["sponsor"])])])])}const eS=fe(YT,[["render",JT]]),tS={name:"Site",components:{Loadpoints:qE,Energyflow:Gc,Footer:eS,Notifications:Ob,TopNavigation:xi,Vehicles:KE},mixins:[dt,vo],props:{loadpoints:Array,notifications:Array,offline:Boolean,gridConfigured:Boolean,gridPower:Number,homePower:Number,pvConfigured:Boolean,pvPower:Number,batteryConfigured:Boolean,batteryPower:Number,batterySoc:Number,gridCurrents:Array,prioritySoc:Number,siteTitle:String,vehicles:Array,auth:Object,currency:String,savingsAmount:Number,savingsEffectivePrice:Number,savingsGridCharged:Number,savingsSelfConsumptionCharged:Number,savingsSelfConsumptionPercent:Number,savingsSince:Number,savingsTotalCharged:Number,tariffFeedIn:Number,tariffGrid:Number,availableVersion:String,releaseNotes:String,hasUpdater:Boolean,uploadMessage:String,uploadProgress:Number,sponsor:String},computed:{energyflow:function(){return this.collectProps(Gc)},activeLoadpoints:function(){return this.loadpoints.filter(e=>e.chargePower>0)},activeLoadpointsCount:function(){return this.activeLoadpoints.length},vehicleIcons:function(){return this.activeLoadpointsCount?this.activeLoadpoints.map(e=>e.vehicleIcon||"car"):["car"]},loadpointsPower:function(){return this.loadpoints.reduce((e,t)=>(e+=t.chargePower||0,e),0)},topNavigation:function(){return{vehicleLogins:this.auth?this.auth.vehicles:{},...this.collectProps(xi)}},showParkingLot:function(){return!1},footer:function(){return{version:{installed:window.evcc.version,commit:window.evcc.commit,available:this.availableVersion,releaseNotes:this.releaseNotes,hasUpdater:this.hasUpdater,uploadMessage:this.uploadMessage,uploadProgress:this.uploadProgress},sponsor:this.sponsor,savings:{since:this.savingsSince,totalCharged:this.savingsTotalCharged,gridCharged:this.savingsGridCharged,selfConsumptionCharged:this.savingsSelfConsumptionCharged,amount:this.savingsAmount,effectivePrice:this.savingsEffectivePrice,selfConsumptionPercent:this.savingsSelfConsumptionPercent,gridPrice:this.tariffGrid,feedInPrice:this.tariffFeedIn,currency:this.currency}}}}},nS={class:"d-flex flex-column site"},rS={class:"container px-4 top-area"},sS={class:"d-flex justify-content-between align-items-center my-3"},oS={class:"d-block my-0"},iS={class:"d-flex"},aS={class:"d-flex flex-column justify-content-between content-area"};function lS(e,t,n,r,o,s){const i=de("Notifications"),a=de("TopNavigation"),l=de("Energyflow"),c=de("Loadpoints"),u=de("Vehicles"),f=de("Footer");return M(),F("div",nS,[g("div",rS,[g("div",sS,[g("h1",oS,B(n.siteTitle||"evcc"),1),g("div",iS,[re(i,{notifications:n.notifications,class:"me-2"},null,8,["notifications"]),re(a,St(yt(s.topNavigation)),null,16)])]),re(l,St(yt(s.energyflow)),null,16)]),g("div",aS,[re(c,{class:"mt-1 mt-sm-2 flex-grow-1",loadpoints:n.loadpoints,vehicles:n.vehicles},null,8,["loadpoints","vehicles"]),s.showParkingLot?(M(),be(u,{key:0})):ye("",!0),re(f,St(yt(s.footer)),null,16)])])}const cS=fe(tS,[["render",lS],["__scopeId","data-v-586033bc"]]);var uS='';class fS extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=uS}}window.customElements.define("shopicon-regular-car1",fS);const dS={name:"StartupError",mixins:[vo],props:{fatal:Array,config:String,file:String,line:Number,offline:Boolean},computed:{errors(){return this.fatal||[]}},methods:{shutdown(){Ze.post("shutdown")},scrollTo(e){const t=e.currentTarget.getAttribute("href").substring(1),n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth",block:"center"})}}},th=e=>(tt("data-v-a2c8ea90"),e=e(),nt(),e),hS={class:"container px-4"},mS={class:"d-flex justify-content-between align-items-center my-3"},pS={class:"d-block mt-0 d-flex"},gS=th(()=>g("shopicon-regular-car1",{size:"m",class:"ms-2 icon"},null,-1)),_S={class:"row mb-4"},vS={class:"fs-6 mb-3"},bS={href:"https://github.com/evcc-io/evcc/discussions"},yS={class:"row mb-4"},wS={class:"mb-3"},ES={class:"d-md-flex justify-content-between"},TS={class:"me-md-4"},SS={class:"d-block"},CS=["href"],AS=["disabled"],xS={key:0},LS=th(()=>g("div",{class:"my-2"},null,-1)),MS={class:"py-2 text-muted config"},NS=["id"];function $S(e,t,n,r,o,s){const i=de("i18n-t");return M(),F("div",hS,[g("div",mS,[g("h1",pS,[$e(B(e.$t("startupError.title"))+" ",1),gS])]),g("div",_S,[g("code",vS,[(M(!0),F(Se,null,He(s.errors,(a,l)=>(M(),F("div",{key:l},B(a),1))),128))]),re(i,{tag:"p",keypath:"startupError.description"},{default:Ve(()=>[g("a",bS,B(e.$t("startupError.discussions")),1)]),_:1}),g("p",null,[g("em",null,B(e.$t("startupError.hint")),1)])]),g("div",yS,[g("h5",wS,B(e.$t("startupError.configuration")),1),g("div",ES,[g("p",TS,[g("span",SS,[$e(B(e.$t("startupError.configFile"))+" ",1),g("code",null,B(n.file),1)]),n.line?(M(),be(i,{key:0,tag:"span",keypath:"startupError.lineError"},{default:Ve(()=>[g("a",{href:`#line${n.line}`,onClick:t[0]||(t[0]=Rs((...a)=>s.scrollTo&&s.scrollTo(...a),["prevent"]))},B(e.$t("startupError.lineErrorLink",[n.line])),9,CS)]),_:1})):ye("",!0),$e(" "+B(e.$t("startupError.fixAndRestart")),1)]),g("p",null,[g("button",{class:"btn btn-primary text-nowrap",type:"button",disabled:n.offline,onClick:t[1]||(t[1]=(...a)=>s.shutdown&&s.shutdown(...a))},B(e.$t("startupError.restartButton")),9,AS)])]),n.config?(M(),F("code",xS,[LS,g("div",MS,[(M(!0),F(Se,null,He(n.config.split(` -`),(a,l)=>(M(),F("div",{id:`line${l+1}`,key:l,class:Me(["m-0 px-2",{highlighted:n.line===l+1}])},B(a)+"\xA0 ",11,NS))),128))])])):ye("",!0)])])}const IS=fe(dS,[["render",$S],["__scopeId","data-v-a2c8ea90"]]);var OS='';class PS extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=OS}}window.customElements.define("shopicon-regular-cloud",PS);const kS={name:"OfflineIndicator",methods:{reload(){window.location.reload()}}},RS={class:"fixed-bottom alert alert-secondary d-flex justify-content-center align-items-center mb-0 rounded-0",role:"alert"},DS=g("shopicon-regular-cloud",{class:"me-2"},null,-1);function FS(e,t,n,r,o,s){return M(),F("div",RS,[DS,$e(" "+B(e.$t("offline.message"))+" ",1),g("button",{class:"btn btn-sm btn-link text-dark",onClick:t[0]||(t[0]=(...i)=>s.reload&&s.reload(...i))},B(e.$t("offline.reload")),1)])}const qS=fe(kS,[["render",FS]]),VS={name:"Main",components:{Site:cS,StartupError:IS,OfflineIndicator:qS},props:{notifications:Array,offline:Boolean},data:function(){return si},computed:{startupErrors:function(){var e;return((e=this.state.fatal)==null?void 0:e.length)>0}}};function HS(e,t,n,r,o,s){const i=de("OfflineIndicator"),a=de("StartupError"),l=de("Site");return M(),F("div",null,[n.offline?(M(),be(i,{key:0})):ye("",!0),s.startupErrors?(M(),be(a,pt({key:1},e.state,{offline:n.offline}),null,16,["offline"])):(M(),be(l,pt({key:2,notifications:n.notifications},e.state),null,16,["notifications"]))])}const BS=fe(VS,[["render",HS]]);var US='';class jS extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=US}}window.customElements.define("shopicon-bold-arrowback",jS);const QS={name:"ChargingSessions",components:{TopNavigation:xi},mixins:[dt],props:{notifications:Array},data(){return{sessions:[]}},computed:{sessionsByMonthAndLoadpoint(){const e=this.sessions.map(n=>{const r=n.loadpoint||this.$t("main.loadpoint.fallbackName"),o=n.vehicle||this.$t("main.vehicle.unknown");return{...n,loadpoint:r,vehicle:o}}),t=this.groupByMonth(e);return Object.entries(t).map(([n,r])=>{const o=Object.entries(this.groupByLoadpoint(r)).map(([s,i])=>{const a=this.totalKWh(i);return{name:s,total:a,sessions:i}});return{month:n,loadpoints:o}})}},mounted(){this.loadSessions()},methods:{async loadSessions(){var t;const e=await Ze.get("sessions");this.sessions=(t=e.data)==null?void 0:t.result},groupByMonth(e){return e.reduce((t,n)=>{const r=new Date(n.finished),o=`${r.getFullYear()}.${r.getMonth()}`;return t[o]||(t[o]=[]),t[o].push(n),t},{})},groupByLoadpoint(e){return e.reduce((t,n)=>{const r=n.loadpoint;return t[r]||(t[r]=[]),t[r].push(n),t},{})},totalKWh(e){return e.reduce((t,n)=>t+n.chargedEnergy,0)*1e3},groupedKWh(e,t){const n=t.reduce((o,s)=>{const i=s[e];return o[i]||(o[i]=0),o[i]+=s.chargedEnergy*1e3,o},{}),r=Object.entries(n).map(([o,s])=>({name:o,energy:s}));return r.length>=2?r:[]},formatGroupHeadline(e){const t=new Date,[n,r]=e.split(".");return t.setMonth(r),t.setFullYear(n),this.fmtMonthYear(t)}}},Va=e=>(tt("data-v-ed5844dd"),e=e(),nt(),e),WS={class:"container px-4"},zS={class:"d-flex justify-content-between align-items-center py-3"},KS={class:"mb-1 pt-1 d-flex text-nowrap"},YS=Va(()=>g("shopicon-bold-arrowback",{size:"s",class:"back"},null,-1)),ZS={class:"row"},GS={class:"col-12"},XS={class:"mb-4"},JS=["href"],e6={class:"mx-2"},t6={class:"d-flex align-items-baseline my-5"},n6={class:"me-4 mb-0"},r6={class:"d-flex align-items-baseline mb-3"},s6={class:"me-4 mb-0"},o6={class:"large"},i6={class:"breakdown text-gray d-sm-flex flex-sm-wrap ps-0 mb-2"},a6={class:"table-responsive my-3"},l6={class:"table"},c6={scope:"col"},u6={scope:"col",class:"text-end ps-sm-4 pe-md-5"},f6={scope:"col",class:"ps-3 ps-md-4 ps-md-5"},d6={class:"text-nowrap text-end ps-sm-4 pe-md-5"},h6={class:"text-nowrap ps-3 ps-md-4 ps-md-5"},m6={class:"d-block d-sm-none"},p6=Va(()=>g("br",null,null,-1)),g6={class:"d-none d-sm-block"},_6=Va(()=>g("br",null,null,-1));function v6(e,t,n,r,o,s){const i=de("router-link"),a=de("TopNavigation");return M(),F("div",WS,[g("header",zS,[g("h1",KS,[re(i,{class:"dropdown-item mx-2 me-2",to:"/"},{default:Ve(()=>[YS]),_:1}),$e(" "+B(e.$t("sessions.title")),1)]),re(a)]),g("div",ZS,[g("main",GS,[g("div",XS,[g("a",{class:"btn btn-outline-secondary text-nowrap my-2",href:`./api/sessions?format=csv&lang=${e.$i18n.locale}`,download:"sessions.csv"},B(e.$t("sessions.downloadCsv")),9,JS)]),(M(!0),F(Se,null,He(s.sessionsByMonthAndLoadpoint,l=>(M(),F("div",{key:l.month},[g("div",e6,[g("div",t6,[g("h2",n6,B(s.formatGroupHeadline(l.month)),1)]),(M(!0),F(Se,null,He(l.loadpoints,c=>(M(),F("div",{key:c.name},[g("div",r6,[g("h3",s6,B(c.name),1),g("div",o6,B(e.fmtKWh(c.total)),1)]),g("ul",i6,[(M(!0),F(Se,null,He(s.groupedKWh("vehicle",c.sessions),(u,f)=>(M(),F("li",{key:f,class:"breakdown-item"},B(u.name)+": "+B(e.fmtKWh(u.energy)),1))),128))]),g("div",a6,[g("table",l6,[g("thead",null,[g("tr",null,[g("th",c6,B(e.$t("sessions.vehicle")),1),g("th",u6,B(e.$t("sessions.energy")),1),g("th",f6,B(e.$t("sessions.date")),1)])]),g("tbody",null,[(M(!0),F(Se,null,He(c.sessions,(u,f)=>(M(),F("tr",{key:f},[g("td",null,B(u.vehicle),1),g("td",d6,B(e.fmtKWh(u.chargedEnergy*1e3)),1),g("td",h6,[g("span",m6,[$e(B(e.fmtFullDateTime(new Date(u.created),!0))+" ",1),p6,$e(" "+B(e.fmtFullDateTime(new Date(u.finished),!0)),1)]),g("span",g6,[$e(B(e.fmtFullDateTime(new Date(u.created),!1))+" ",1),_6,$e(" "+B(e.fmtFullDateTime(new Date(u.finished),!1)),1)])])]))),128))])])])]))),128))])]))),128))])])])}const b6=fe(QS,[["render",v6],["__scopeId","data-v-ed5844dd"]]);function y6(e){const t=Y1({history:f1(),routes:[{path:"/",component:BS,props:!0},{path:"/sessions",component:b6,props:!0}]});return t.beforeEach(async()=>(await Ud(e.global),!0)),t}const w6={install:e=>{e.config.globalProperties.$hiddenFeatures=window.localStorage.hidden_features==="true"}};ah.polyfill();const gr=Cp({data(){return{notifications:[],offline:!1}},watch:{offline:function(e){console.log(`we are ${e?"offline":"online"}`)}},methods:{raise:function(e){console[e.type](e);const t=new Date,n=this.notifications[0];n&&n.message===e.message?(n.count++,n.time=t):this.notifications=[{...e,count:1,time:t},...this.notifications]},clear:function(){this.notifications=[]},error:function(e){e.type="error",this.raise(e)},setOnline:function(){this.offline=!1},setOffline:function(){this.offline=!0},warn:function(e){e.type="warn",this.raise(e)}},render:function(){return pn(Wp,{notifications:this.notifications,offline:this.offline})}}),nh=Sv();gr.use(nh);gr.use(y6(nh));gr.use(qp());gr.use(Bp);gr.use(w6);window.app=gr.mount("#app");xv()});export default E6(); + ${e.fmtShortDurationUnit(o.chargeDurationInterpolated)}`,align:"end"},null,8,["label","value"]))]),ME,re(f,pt(s.vehicle,{onTargetSocUpdated:s.setTargetSoc,onTargetEnergyUpdated:s.setTargetEnergy,onTargetTimeUpdated:s.setTargetTime,onTargetTimeRemoved:s.removeTargetTime,onChangeVehicle:s.changeVehicle,onRemoveVehicle:s.removeVehicle}),null,16,["onTargetSocUpdated","onTargetEnergyUpdated","onTargetTimeUpdated","onTargetTimeRemoved","onChangeVehicle","onRemoveVehicle"])])}const $E=fe(yE,[["render",NE],["__scopeId","data-v-d2c43da5"]]),IE={name:"Site",components:{Loadpoint:$E},props:{loadpoints:Array,vehicles:Array},data(){return{selectedIndex:0,snapTimeout:null}},mounted(){this.$refs.carousel.addEventListener("scroll",this.handleCarouselScroll,!1)},unmounted(){this.$refs.carousel&&this.$refs.carousel.removeEventListener("scroll",this.handleCarouselScroll)},methods:{handleCarouselScroll(){const{scrollLeft:e}=this.$refs.carousel,{offsetWidth:t}=this.$refs.carousel.children[0];this.selectedIndex=Math.round((e-7.5)/t)},selected(e){return this.selectedIndex===e},scrollTo(e){if(this.selectedIndex===e)return;this.selectedIndex=e;const t=this.$refs.carousel,n=t.children[0].offsetWidth;t.style.scrollSnapType="none",t.scrollTo({top:0,left:7.5+n*e,behavior:"smooth"}),clearTimeout(this.snapTimeout),this.snapTimeout=setTimeout(()=>{this.$refs.carousel.style.scrollSnapType="x mandatory"},1e3)}}},PE=e=>(tt("data-v-50cff141"),e=e(),nt(),e),OE={class:"container container--loadpoint px-0 mb-md-2 d-flex flex-column justify-content-center"},kE={ref:"carousel",class:"carousel d-lg-flex flex-wrap"},RE={key:0,class:"d-flex d-lg-none justify-content-center"},DE=["onClick"],FE=PE(()=>g("shopicon-filled-circle",{class:"indicator-icon"},null,-1)),qE=[FE];function VE(e,t,n,r,o,s){const i=de("Loadpoint");return M(),F("div",OE,[g("div",kE,[(M(!0),F(Se,null,He(n.loadpoints,(a,l)=>(M(),F("div",{key:l,class:"flex-grow-1 mb-3 m-lg-0 p-lg-0"},[re(i,pt(a,{id:l+1,vehicles:n.vehicles,class:["h-100",{"loadpoint-unselected":!s.selected(l)}],onClick:c=>s.scrollTo(l)}),null,16,["id","vehicles","class","onClick"])]))),128))],512),n.loadpoints.length>1?(M(),F("div",RE,[(M(!0),F(Se,null,He(n.loadpoints,(a,l)=>(M(),F("button",{key:l,class:Me(["btn btn-sm btn-link p-0 mx-1 indicator d-flex justify-content-center align-items-center evcc-default-text",{"indicator--selected":s.selected(l)}]),onClick:c=>s.scrollTo(l)},qE,10,DE))),128))])):ye("",!0)])}const HE=fe(IE,[["render",VE],["__scopeId","data-v-50cff141"]]),BE={name:"Vehicles",components:{Vehicle:Ni},data(){return{refreshing:!1,vehicles:[{vehiclePresent:!0,vehicleTitle:"Ford Mustang Mach-E",vehicleSoc:46,vehicleRange:182,targetSoc:100},{vehiclePresent:!0,vehicleTitle:"Renault Twingo Electric",vehicleSoc:77,vehicleRange:98,targetSoc:90},{vehiclePresent:!0,vehicleTitle:"Blauer VW ID.4",vehicleSoc:16,vehicleRange:52,minSoc:35,targetSoc:60}]}},methods:{refresh(){this.refreshing=!0,window.setTimeout(()=>{this.refreshing=!1},5e3)}}},UE=e=>(tt("data-v-253aba9c"),e=e(),nt(),e),jE={class:"container px-4 mb-3 mb-sm-4 d-flex justify-content-start align-items-center"},QE={class:"m-0"},WE=["disabled"],zE=UE(()=>g("shopicon-regular-refresh",{class:"refresh-icon"},null,-1)),KE=[zE];function YE(e,t,n,r,o,s){const i=de("Vehicle");return M(),F("div",null,[g("div",jE,[g("h2",QE,B(e.$t("main.vehicles")),1),g("button",{class:Me(["btn btn-link d-flex evcc-default-text p-2 ms-1 refresh",{"refresh--in-progress":o.refreshing}]),disabled:o.refreshing,onClick:t[0]||(t[0]=(...a)=>s.refresh&&s.refresh(...a))},KE,10,WE)]),g("div",{class:Me(["container vehicles px-0 mb-5",`vehicles-${o.vehicles.length}`])},[(M(!0),F(Se,null,He(o.vehicles,(a,l)=>(M(),be(i,pt(a,{id:`vehicle_${l}`,key:l,class:"vehicle",parked:""}),null,16,["id"]))),128))],2)])}const ZE=fe(BE,[["render",YE],["__scopeId","data-v-253aba9c"]]);var GE='';class XE extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=GE}}window.customElements.define("shopicon-filled-testtube",XE);const JE={name:"Logo"},qa=e=>(tt("data-v-9d6237eb"),e=e(),nt(),e),e7={viewBox:"0 0 122 35",xmlns:"http://www.w3.org/2000/svg","fill-rule":"evenodd","clip-rule":"evenodd","stroke-linejoin":"round","stroke-miterlimit":"2"},t7=qa(()=>g("path",{d:"M13.082 29.071a12.384 12.384 0 01-9-3.42 12.192 12.192 0 01-3.54-9.12v-.64a15.394 15.394 0 011.47-6.83 10.825 10.825 0 014.17-4.64 11.64 11.64 0 016.15-1.63 10.45 10.45 0 018.21 3.26c2 2.194 3 5.297 3 9.31v2.76H7.382a6.348 6.348 0 002 4 5.997 5.997 0 004.16 1.49 7.305 7.305 0 006.1-2.84l3.31 3.73a10 10 0 01-4.13 3.39 13.309 13.309 0 01-5.74 1.18zm-.77-20.84a4.216 4.216 0 00-3.26 1.37 7.141 7.141 0 00-1.6 3.91h9.39v-.55a5.005 5.005 0 00-1.22-3.49 4.304 4.304 0 00-3.31-1.24zM36.452 20.331l4.7-17.09h7l-8.48 25.36h-6.44l-8.52-25.36h7l4.74 17.09zM85.542 23.611a4.444 4.444 0 003-1 3.638 3.638 0 001.22-2.75h6.32a8.668 8.668 0 01-1.4 4.73 9.145 9.145 0 01-3.79 3.3 11.736 11.736 0 01-5.29 1.19 10.912 10.912 0 01-8.54-3.46c-2.087-2.3-3.13-5.483-3.13-9.55v-.45c0-3.9 1.033-7.016 3.1-9.35a10.868 10.868 0 018.51-3.5c2.791-.134 5.524.84 7.6 2.71a9.626 9.626 0 012.9 7.21h-6.3a4.663 4.663 0 00-1.2-3.22 4.005 4.005 0 00-3.08-1.24 4.068 4.068 0 00-3.56 1.73c-.8 1.15-1.2 3-1.2 5.6v.7c0 2.61.39 4.49 1.19 5.63a4.092 4.092 0 003.65 1.72zM110.422 23.611a4.454 4.454 0 003-1 3.63 3.63 0 001.21-2.75h6.33a8.668 8.668 0 01-1.4 4.73 9.143 9.143 0 01-3.73 3.3 11.76 11.76 0 01-5.29 1.18 10.912 10.912 0 01-8.54-3.46c-2.087-2.3-3.13-5.483-3.13-9.55v-.45c0-3.9 1.033-7.016 3.1-9.35a10.85 10.85 0 018.57-3.49 10.575 10.575 0 017.6 2.71 9.598 9.598 0 012.91 7.21h-6.33a4.651 4.651 0 00-1.21-3.22 4.492 4.492 0 00-6.64.49c-.8 1.15-1.21 3-1.21 5.6v.7c0 2.607.4 4.484 1.2 5.63a4.09 4.09 0 003.56 1.72z",fill:"#fff",class:"letter","fill-rule":"nonzero"},null,-1)),n7=qa(()=>g("path",{d:"M58.462.751h9.22l-6.14 12.3h6.15l-11.53 21.51 2.3-15.36h-7.68l7.68-18.45z",fill:"#0fdd42","fill-rule":"nonzero"},null,-1)),r7=qa(()=>g("path",{fill:"none",d:"M-24.458-22.109h170v76h-170z"},null,-1)),s7=[t7,n7,r7];function o7(e,t,n,r,o,s){return M(),F("svg",e7,s7)}const i7=fe(JE,[["render",o7],["__scopeId","data-v-9d6237eb"]]),a7={name:"Version",components:{Logo:i7},props:{installed:String,available:String,releaseNotes:String,commit:String,hasUpdater:Boolean,uploadMessage:String,uploadProgress:Number},data:function(){return{updateStarted:!1,updateStatus:""}},computed:{githubHashUrl:function(){return`https://github.com/evcc-io/evcc/commit/${this.commit}`},newVersionAvailable:function(){return this.available&&this.installed!="[[.Version]]"&&this.installed!="0.0.1-alpha"&&this.available!=this.installed}},methods:{update:async function(){try{await Ze.post("update"),this.updateStatus=this.$t("footer.version.modalUpdateStatusStart"),this.updateStarted=!0}catch(e){this.updateStatus=`${this.$t("footer.version.modalUpdateStatusStart")} ${e}`}},releaseNotesUrl:function(e){return`https://github.com/evcc-io/evcc/releases/tag/${e}`},openModal(){Xr.getOrCreateInstance(document.getElementById("updateModal")).show()}}},bo=e=>(tt("data-v-21363014"),e=e(),nt(),e),l7=["href"],c7=bo(()=>g("shopicon-regular-moonstars",{class:"ms-2 text-gray-light"},null,-1)),u7=bo(()=>g("shopicon-regular-gift",{class:"me-2"},null,-1)),f7={class:"ms-2 d-none d-sm-block text-gray-medium text-decoration-underline"},d7=["href"],h7={id:"updateModal",class:"modal fade text-dark",tabindex:"-1",role:"dialog","aria-hidden":"true"},m7={class:"modal-dialog modal-dialog-centered modal-dialog-scrollable",role:"document"},p7={class:"modal-content"},g7={class:"modal-header"},_7={class:"modal-title"},v7=bo(()=>g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1)),b7={class:"modal-body"},y7={key:0},w7={class:"progress my-3"},E7={key:1},T7=["innerHTML"],S7={key:1},C7=["href"],A7={class:"modal-footer d-flex justify-content-between"},x7=["disabled"],L7=["disabled"],M7={key:0},N7=bo(()=>g("span",{class:"spinner-border spinner-border-sm",role:"status","aria-hidden":"true"},null,-1)),$7={key:1},I7=["href"];function P7(e,t,n,r,o,s){const i=de("Logo");return M(),F("div",null,[n.commit?(M(),F("a",{key:0,href:s.githubHashUrl,target:"_blank",class:"btn btn-link ps-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end"},[re(i,{class:"logo me-2"}),$e(" v"+B(n.installed)+" ",1),c7],8,l7)):s.newVersionAvailable?(M(),F("button",{key:1,href:"#",class:"btn btn-link ps-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end",onClick:t[0]||(t[0]=(...a)=>s.openModal&&s.openModal(...a))},[u7,$e(" v"+B(n.installed)+" ",1),g("span",f7,B(e.$t("footer.version.availableLong")),1)])):(M(),F("a",{key:2,href:s.releaseNotesUrl(n.installed),target:"_blank",class:"btn btn-link evcc-default-text ps-0 text-decoration-none text-nowrap d-flex align-items-end"},[re(i,{class:"logo me-2"}),$e(" v"+B(n.installed),1)],8,d7)),(M(),be(dr,{to:"body"},[g("div",h7,[g("div",m7,[g("div",p7,[g("div",g7,[g("h5",_7,B(e.$t("footer.version.modalTitle")),1),v7]),g("div",b7,[e.updateStarted?(M(),F("div",y7,[g("p",null,B(e.$t("footer.version.modalUpdateStarted")),1),g("div",w7,[g("div",{class:"progress-bar progress-bar-striped progress-bar-animated",role:"progressbar",style:ft({width:n.uploadProgress+"%"})},null,4)]),g("p",null,B(e.updateStatus)+" "+B(n.uploadMessage),1)])):(M(),F("div",E7,[g("p",null,[g("small",null,B(e.$t("footer.version.modalInstalledVersion"))+": "+B(n.installed),1)]),n.releaseNotes?(M(),F("div",{key:0,innerHTML:n.releaseNotes},null,8,T7)):(M(),F("p",S7,[$e(B(e.$t("footer.version.modalNoReleaseNotes"))+" ",1),g("a",{href:s.releaseNotesUrl(n.available)},"GitHub",8,C7),$e(". ")]))]))]),g("div",A7,[g("button",{type:"button",class:"btn btn-outline-secondary",disabled:e.updateStarted,"data-bs-dismiss":"modal"},B(e.$t("footer.version.modalCancel")),9,x7),g("div",null,[n.hasUpdater?(M(),F("button",{key:0,type:"button",class:"btn btn-primary",disabled:e.updateStarted,onClick:t[1]||(t[1]=(...a)=>s.update&&s.update(...a))},[e.updateStarted?(M(),F("span",M7,[N7,$e(" "+B(e.$t("footer.version.modalUpdate")),1)])):(M(),F("span",$7,B(e.$t("footer.version.modalUpdateNow")),1))],8,L7)):(M(),F("a",{key:1,href:s.releaseNotesUrl(n.available),class:"btn btn-primary"},B(e.$t("footer.version.modalDownload")),9,I7))])])])])])]))])}const O7=fe(a7,[["render",P7],["__scopeId","data-v-21363014"]]);var os={};(function e(t,n,r,o){var s=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL);function i(){}function a(I){var N=n.exports.Promise,Z=N!==void 0?N:t.Promise;return typeof Z=="function"?new Z(I):(I(i,i),null)}var l=function(){var I=Math.floor(16.666666666666668),N,Z,G={},te=0;return typeof requestAnimationFrame=="function"&&typeof cancelAnimationFrame=="function"?(N=function(le){var he=Math.random();return G[he]=requestAnimationFrame(function ae(me){te===me||te+I-1(tt("data-v-72ab4b84"),e=e(),nt(),e),H7={key:0},B7={class:"fw-bold mb-1 d-flex"},U7=Va(()=>g("shopicon-regular-heart",{class:"title-icon text-primary d-inline-block me-1"},null,-1)),j7={class:"mb-3"},Q7={class:"d-flex justify-content-center align-items-center flex-column flex-lg-row align-items-lg-baseline justify-content-lg-start"},W7=Va(()=>g("shopicon-regular-stars",{class:"me-1 d-inline-block"},null,-1)),z7={href:"https://evcc.io/sticker",target:"_blank",class:"small text-muted ms-lg-3"},K7={key:1},Y7={class:"fw-bold mb-1"},Z7={class:"mb-3"},G7={class:"d-flex justify-content-center align-items-center flex-column flex-lg-row align-items-lg-baseline justify-content-lg-start"},X7={target:"_blank",href:"https://github.com/sponsors/evcc-io",class:"btn btn-outline-primary mb-3 become-sponsor"},J7=Va(()=>g("shopicon-regular-heart",{class:"me-1 d-inline-block"},null,-1)),eT={class:"small text-muted text-center ms-lg-3"};function tT(e,t,n,r,o,s){return n.sponsor?(M(),F("div",H7,[g("p",B7,[U7,$e(" "+B(e.$t("footer.sponsor.titleSponsor")),1)]),g("p",j7,B(e.$t("footer.sponsor.thanks",{sponsor:n.sponsor})),1),g("div",Q7,[g("button",{ref:"confetti",class:"btn btn btn-outline-primary mb-2 confetti-button bg-evcc rounded",onClick:t[0]||(t[0]=(...i)=>s.surprise&&s.surprise(...i))},[W7,$e(" "+B(e.$t("footer.sponsor.confetti")),1)],512),g("a",z7,B(e.$t("footer.sponsor.sticker")),1)])])):(M(),F("div",K7,[g("p",Y7,B(e.$t("footer.sponsor.titleNoSponsor")),1),g("p",Z7,B(e.$t("footer.sponsor.supportUs")),1),g("div",G7,[g("a",X7,[J7,$e(" "+B(e.$t("footer.sponsor.becomeSponsor")),1)]),g("div",eT,B(e.$t("footer.sponsor.confettiPromise"))+" ;) ",1)])]))}const nT=fe(V7,[["render",tT],["__scopeId","data-v-72ab4b84"]]);var rT='';class sT extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=rT}}window.customElements.define("shopicon-regular-coinjar",sT);var oT='';class iT extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=oT}}window.customElements.define("shopicon-regular-receivepayment",iT);var aT='';class lT extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=aT}}window.customElements.define("shopicon-regular-eco1",lT);const cT={name:"SavingsTile",components:{AnimatedNumber:kn},props:{title:String,icon:String,value:[String,Number],valueFmt:Function,unit:String,sub1:String,sub2:String}},uT=e=>(tt("data-v-b96f12a6"),e=e(),nt(),e),fT={class:"flex-shrink-1 d-flex mb-4 mb-lg-0 align-items-center align-items-lg-start"},dT={key:0,class:"tile-icon"},hT={key:1,class:"tile-icon"},mT={key:2,class:"tile-icon"},pT={key:3,class:"tile-icon"},gT={key:4,class:"tile-icon"},_T={class:"ms-3 d-flex flex-grow-1 d-lg-block align-items-center justify-content-between"},vT={class:"my-0 fw-bold text-truncate"},bT={class:"d-flex align-items-baseline lh-sm"},yT={class:"fs-1"},wT={key:1},ET={class:"ms-1 unit"},TT={class:"d-block mt-0 ms-3 ms-lg-0 text-end text-lg-start"},ST=uT(()=>g("br",null,null,-1));function CT(e,t,n,r,o,s){const i=de("AnimatedNumber");return M(),F("div",fT,[n.icon==="sun"?(M(),F("shopicon-regular-sun",dT)):ye("",!0),n.icon==="coinjar"?(M(),F("shopicon-regular-coinjar",hT)):ye("",!0),n.icon==="receivepayment"?(M(),F("shopicon-regular-receivepayment",mT)):ye("",!0),n.icon==="car"?(M(),F("shopicon-regular-car3",pT)):ye("",!0),n.icon==="eco"?(M(),F("shopicon-regular-eco1",gT)):ye("",!0),g("div",_T,[g("div",null,[g("p",vT,B(n.title),1),g("strong",bT,[g("span",yT,[n.valueFmt?(M(),be(i,{key:0,to:n.value,format:n.valueFmt},null,8,["to","format"])):(M(),F("span",wT,B(n.value),1))]),g("span",ET,B(n.unit),1)])]),g("small",TT,[$e(B(n.sub1)+" ",1),ST,$e(" "+B(n.sub2),1)])])])}const eh=fe(cT,[["render",CT],["__scopeId","data-v-b96f12a6"]]),th=ho.create({baseURL:"https://api.evcc.io/v1/",headers:{Accept:"application/json"}});th.interceptors.response.use(e=>e,e=>{const t=e.config.baseURL+e.config.url,n=`${e.message}: API request failed ${t}`;return window.app.error({message:n}),Promise.reject(e)});const AT=10,xT={name:"LiveCommunity",components:{SavingsTile:eh},mixins:[dt],props:{},data(){return{refresh:null,result:{}}},computed:{totalClients(){return this.result.totalClients},activeClients(){return this.result.activeClients},chargePower(){const{chargePower:e=0}=this.result;return e/1e3},greenShare(){const{chargePower:e,greenPower:t}=this.result;return e?100/e*t:0},greenEnergyMWh(){const{greenEnergy:e=0}=this.result;return e/1e3}},async mounted(){this.refresh=setInterval(this.update,AT*1e3),await this.update()},unmounted(){clearInterval(this.refresh)},methods:{async update(){try{const e=await th.get("total");this.result=e.data||{}}catch(e){console.error(e)}},fmtAnimation(e){return this.fmtNumber(e,0)},fmtAnimationDecimal(e){return this.fmtNumber(e,1)}}},LT={class:"d-block d-lg-flex mb-2 justify-content-between"};function MT(e,t,n,r,o,s){const i=de("SavingsTile");return M(),F("div",LT,[re(i,{class:"text-accent2",icon:"car",title:e.$t("footer.community.power"),value:s.chargePower,valueFmt:s.fmtAnimation,unit:"kW",sub1:e.$t("footer.community.powerSub1",{totalClients:s.totalClients,activeClients:s.activeClients}),sub2:e.$t("footer.community.powerSub2")},null,8,["title","value","valueFmt","sub1","sub2"]),re(i,{class:"text-accent1",icon:"sun",title:e.$t("footer.community.greenShare"),value:s.greenShare,valueFmt:s.fmtAnimationDecimal,unit:"%",sub1:e.$t("footer.community.greenShareSub1"),sub2:e.$t("footer.community.greenShareSub2")},null,8,["title","value","valueFmt","sub1","sub2"]),re(i,{class:"text-accent3",icon:"eco",title:e.$t("footer.community.greenEnergy"),value:s.greenEnergyMWh,valueFmt:s.fmtAnimationDecimal,unit:"MWh",sub1:e.$t("footer.community.greenEnergySub1"),sub2:e.$t("footer.community.greenEnergySub2")},null,8,["title","value","valueFmt","sub1","sub2"])])}const NT=fe(xT,[["render",MT]]),$T={name:"Savings",components:{Sponsor:nT,SavingsTile:eh,LiveCommunity:NT,TelemetrySettings:yd},mixins:[dt],props:{selfConsumptionPercent:Number,since:{type:Number,default:0},sponsor:String,amount:{type:Number,default:0},effectivePrice:{type:Number,default:0},totalCharged:{type:Number,default:0},gridCharged:{type:Number,default:0},selfConsumptionCharged:{type:Number,default:0},gridPrice:{type:Number},feedInPrice:{type:Number},currency:String},data(){return{communityView:!1,telemetryEnabled:!1}},computed:{percent(){return Math.round(this.selfConsumptionPercent)||0},effectivePriceFormatted(){const[e,t]=this.fmtPricePerKWh(this.effectivePrice,this.currency).split(" ");return{value:e,unit:t}},startDate(){return new Date(this.since*1e3)}},methods:{showCommunity(){this.communityView=!0},showMyData(){this.communityView=!1},openModal(){Xr.getOrCreateInstance(document.getElementById("savingsModal")).show()}}},IT={class:"d-inline d-sm-none"},PT={class:"d-none d-sm-inline"},OT=g("shopicon-regular-sun",{class:"ms-2 text-evcc"},null,-1),kT={id:"savingsModal",ref:"modal",class:"modal fade text-dark","data-bs-backdrop":"true",tabindex:"-1",role:"dialog","aria-hidden":"true"},RT={class:"modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable",role:"document"},DT={class:"modal-content"},FT={class:"modal-header"},qT={class:"modal-title"},VT=g("button",{type:"button",class:"btn-close","data-bs-dismiss":"modal","aria-label":"Close"},null,-1),HT={class:"modal-body"},BT={class:"nav nav-tabs"},UT={class:"nav-item"},jT={class:"nav-item"},QT={key:0,class:"my-4"},WT={class:"d-block d-lg-flex mb-2 justify-content-between"},zT={class:"my-3 lh-2"},KT={key:1,class:"my-4"};function YT(e,t,n,r,o,s){const i=de("SavingsTile"),a=de("LiveCommunity"),l=de("TelemetrySettings"),c=de("Sponsor");return M(),F("div",null,[g("button",{class:"btn btn-link pe-0 text-decoration-none evcc-default-text text-nowrap d-flex align-items-end",onClick:t[0]||(t[0]=(...u)=>s.openModal&&s.openModal(...u))},[g("span",IT,B(e.$t("footer.savings.footerShort",{percent:s.percent})),1),g("span",PT,B(e.$t("footer.savings.footerLong",{percent:s.percent})),1),OT]),(M(),be(dr,{to:"body"},[g("div",kT,[g("div",RT,[g("div",DT,[g("div",FT,[g("h5",qT,B(e.$t("footer.savings.modalTitle")),1),VT]),g("div",HT,[g("ul",BT,[g("li",UT,[g("a",{class:Me(["nav-link",{active:!o.communityView}]),href:"#",onClick:t[1]||(t[1]=Rs((...u)=>s.showMyData&&s.showMyData(...u),["prevent"]))},B(e.$t("footer.savings.tabTitle")),3)]),g("li",jT,[g("a",{class:Me(["nav-link",{active:o.communityView}]),href:"#",onClick:t[2]||(t[2]=Rs((...u)=>s.showCommunity&&s.showCommunity(...u),["prevent"]))},B(e.$t("footer.community.tabTitle")),3)])]),o.communityView?(M(),F("div",KT,[re(a),re(l,{sponsor:n.sponsor},null,8,["sponsor"])])):(M(),F("div",QT,[g("div",WT,[re(i,{class:"text-accent1",icon:"sun",title:e.$t("footer.savings.percentTitle"),value:s.percent,unit:"%",sub1:e.$t("footer.savings.percentSelf",{self:e.fmtKw(n.selfConsumptionCharged*1e3,!0,!1)}),sub2:e.$t("footer.savings.percentGrid",{grid:e.fmtKw(n.gridCharged*1e3,!0,!1)})},null,8,["title","value","sub1","sub2"]),re(i,{class:"text-accent2",icon:"receivepayment",title:e.$t("footer.savings.priceTitle"),value:s.effectivePriceFormatted.value,unit:s.effectivePriceFormatted.unit,sub1:e.$t("footer.savings.priceFeedIn",{feedInPrice:e.fmtPricePerKWh(n.feedInPrice,n.currency)}),sub2:e.$t("footer.savings.priceGrid",{gridPrice:e.fmtPricePerKWh(n.gridPrice,n.currency)})},null,8,["title","value","unit","sub1","sub2"]),re(i,{class:"text-accent3",icon:"coinjar",title:e.$t("footer.savings.savingsTitle"),value:e.fmtMoney(n.amount,n.currency),unit:e.fmtCurrencySymbol(n.currency),sub1:e.$t("footer.savings.savingsComparedToGrid"),sub2:e.$t("footer.savings.savingsTotalEnergy",{total:e.fmtKw(n.totalCharged*1e3,!0,!1)})},null,8,["title","value","unit","sub1","sub2"])]),g("p",zT,[g("small",null,B(e.$t("footer.savings.since",{since:e.fmtDayMonthYear(s.startDate)})),1)])])),re(c,{sponsor:n.sponsor},null,8,["sponsor"])])])])],512)]))])}const ZT=fe($T,[["render",YT]]),GT={name:"Footer",components:{Version:O7,Savings:ZT},props:{version:Object,sponsor:String,savings:Object}},XT={class:"footer"},JT={class:"container py-2"},eS={class:"d-flex justify-content-between"};function tS(e,t,n,r,o,s){const i=de("Version"),a=de("Savings");return M(),F("footer",XT,[g("div",JT,[g("div",eS,[re(i,St(yt(n.version)),null,16),re(a,pt(n.savings,{sponsor:n.sponsor}),null,16,["sponsor"])])])])}const nS=fe(GT,[["render",tS]]),rS={name:"Site",components:{Loadpoints:HE,Energyflow:Xc,Footer:nS,Notifications:kb,TopNavigation:Li,Vehicles:ZE},mixins:[dt,vo],props:{loadpoints:Array,notifications:Array,offline:Boolean,gridConfigured:Boolean,gridPower:Number,homePower:Number,pvConfigured:Boolean,pvPower:Number,batteryConfigured:Boolean,batteryPower:Number,batterySoc:Number,gridCurrents:Array,prioritySoc:Number,siteTitle:String,vehicles:Array,auth:Object,currency:String,savingsAmount:Number,savingsEffectivePrice:Number,savingsGridCharged:Number,savingsSelfConsumptionCharged:Number,savingsSelfConsumptionPercent:Number,savingsSince:Number,savingsTotalCharged:Number,tariffFeedIn:Number,tariffGrid:Number,availableVersion:String,releaseNotes:String,hasUpdater:Boolean,uploadMessage:String,uploadProgress:Number,sponsor:String},computed:{energyflow:function(){return this.collectProps(Xc)},activeLoadpoints:function(){return this.loadpoints.filter(e=>e.chargePower>0)},activeLoadpointsCount:function(){return this.activeLoadpoints.length},vehicleIcons:function(){return this.activeLoadpointsCount?this.activeLoadpoints.map(e=>e.vehicleIcon||"car"):["car"]},loadpointsPower:function(){return this.loadpoints.reduce((e,t)=>(e+=t.chargePower||0,e),0)},topNavigation:function(){return{vehicleLogins:this.auth?this.auth.vehicles:{},...this.collectProps(Li)}},showParkingLot:function(){return!1},footer:function(){return{version:{installed:window.evcc.version,commit:window.evcc.commit,available:this.availableVersion,releaseNotes:this.releaseNotes,hasUpdater:this.hasUpdater,uploadMessage:this.uploadMessage,uploadProgress:this.uploadProgress},sponsor:this.sponsor,savings:{since:this.savingsSince,totalCharged:this.savingsTotalCharged,gridCharged:this.savingsGridCharged,selfConsumptionCharged:this.savingsSelfConsumptionCharged,amount:this.savingsAmount,effectivePrice:this.savingsEffectivePrice,selfConsumptionPercent:this.savingsSelfConsumptionPercent,gridPrice:this.tariffGrid,feedInPrice:this.tariffFeedIn,currency:this.currency}}}}},sS={class:"d-flex flex-column site"},oS={class:"container px-4 top-area"},iS={class:"d-flex justify-content-between align-items-center my-3"},aS={class:"d-block my-0"},lS={class:"d-flex"},cS={class:"d-flex flex-column justify-content-between content-area"};function uS(e,t,n,r,o,s){const i=de("Notifications"),a=de("TopNavigation"),l=de("Energyflow"),c=de("Loadpoints"),u=de("Vehicles"),f=de("Footer");return M(),F("div",sS,[g("div",oS,[g("div",iS,[g("h1",aS,B(n.siteTitle||"evcc"),1),g("div",lS,[re(i,{notifications:n.notifications,class:"me-2"},null,8,["notifications"]),re(a,St(yt(s.topNavigation)),null,16)])]),re(l,St(yt(s.energyflow)),null,16)]),g("div",cS,[re(c,{class:"mt-1 mt-sm-2 flex-grow-1",loadpoints:n.loadpoints,vehicles:n.vehicles},null,8,["loadpoints","vehicles"]),s.showParkingLot?(M(),be(u,{key:0})):ye("",!0),re(f,St(yt(s.footer)),null,16)])])}const fS=fe(rS,[["render",uS],["__scopeId","data-v-586033bc"]]);var dS='';class hS extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=dS}}window.customElements.define("shopicon-regular-car1",hS);const mS={name:"StartupError",mixins:[vo],props:{fatal:Array,config:String,file:String,line:Number,offline:Boolean},computed:{errors(){return this.fatal||[]}},methods:{shutdown(){Ze.post("shutdown")},scrollTo(e){const t=e.currentTarget.getAttribute("href").substring(1),n=document.getElementById(t);n&&n.scrollIntoView({behavior:"smooth",block:"center"})}}},nh=e=>(tt("data-v-a2c8ea90"),e=e(),nt(),e),pS={class:"container px-4"},gS={class:"d-flex justify-content-between align-items-center my-3"},_S={class:"d-block mt-0 d-flex"},vS=nh(()=>g("shopicon-regular-car1",{size:"m",class:"ms-2 icon"},null,-1)),bS={class:"row mb-4"},yS={class:"fs-6 mb-3"},wS={href:"https://github.com/evcc-io/evcc/discussions"},ES={class:"row mb-4"},TS={class:"mb-3"},SS={class:"d-md-flex justify-content-between"},CS={class:"me-md-4"},AS={class:"d-block"},xS=["href"],LS=["disabled"],MS={key:0},NS=nh(()=>g("div",{class:"my-2"},null,-1)),$S={class:"py-2 text-muted config"},IS=["id"];function PS(e,t,n,r,o,s){const i=de("i18n-t");return M(),F("div",pS,[g("div",gS,[g("h1",_S,[$e(B(e.$t("startupError.title"))+" ",1),vS])]),g("div",bS,[g("code",yS,[(M(!0),F(Se,null,He(s.errors,(a,l)=>(M(),F("div",{key:l},B(a),1))),128))]),re(i,{tag:"p",keypath:"startupError.description"},{default:Ve(()=>[g("a",wS,B(e.$t("startupError.discussions")),1)]),_:1}),g("p",null,[g("em",null,B(e.$t("startupError.hint")),1)])]),g("div",ES,[g("h5",TS,B(e.$t("startupError.configuration")),1),g("div",SS,[g("p",CS,[g("span",AS,[$e(B(e.$t("startupError.configFile"))+" ",1),g("code",null,B(n.file),1)]),n.line?(M(),be(i,{key:0,tag:"span",keypath:"startupError.lineError"},{default:Ve(()=>[g("a",{href:`#line${n.line}`,onClick:t[0]||(t[0]=Rs((...a)=>s.scrollTo&&s.scrollTo(...a),["prevent"]))},B(e.$t("startupError.lineErrorLink",[n.line])),9,xS)]),_:1})):ye("",!0),$e(" "+B(e.$t("startupError.fixAndRestart")),1)]),g("p",null,[g("button",{class:"btn btn-primary text-nowrap",type:"button",disabled:n.offline,onClick:t[1]||(t[1]=(...a)=>s.shutdown&&s.shutdown(...a))},B(e.$t("startupError.restartButton")),9,LS)])]),n.config?(M(),F("code",MS,[NS,g("div",$S,[(M(!0),F(Se,null,He(n.config.split(` +`),(a,l)=>(M(),F("div",{id:`line${l+1}`,key:l,class:Me(["m-0 px-2",{highlighted:n.line===l+1}])},B(a)+"\xA0 ",11,IS))),128))])])):ye("",!0)])])}const OS=fe(mS,[["render",PS],["__scopeId","data-v-a2c8ea90"]]);var kS='';class RS extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=kS}}window.customElements.define("shopicon-regular-cloud",RS);const DS={name:"OfflineIndicator",methods:{reload(){window.location.reload()}}},FS={class:"fixed-bottom alert alert-secondary d-flex justify-content-center align-items-center mb-0 rounded-0",role:"alert"},qS=g("shopicon-regular-cloud",{class:"me-2"},null,-1);function VS(e,t,n,r,o,s){return M(),F("div",FS,[qS,$e(" "+B(e.$t("offline.message"))+" ",1),g("button",{class:"btn btn-sm btn-link text-dark",onClick:t[0]||(t[0]=(...i)=>s.reload&&s.reload(...i))},B(e.$t("offline.reload")),1)])}const HS=fe(DS,[["render",VS]]),BS={name:"Main",components:{Site:fS,StartupError:OS,OfflineIndicator:HS},props:{notifications:Array,offline:Boolean},data:function(){return si},computed:{startupErrors:function(){var e;return((e=this.state.fatal)==null?void 0:e.length)>0}}};function US(e,t,n,r,o,s){const i=de("OfflineIndicator"),a=de("StartupError"),l=de("Site");return M(),F("div",null,[n.offline?(M(),be(i,{key:0})):ye("",!0),s.startupErrors?(M(),be(a,pt({key:1},e.state,{offline:n.offline}),null,16,["offline"])):(M(),be(l,pt({key:2,notifications:n.notifications},e.state),null,16,["notifications"]))])}const jS=fe(BS,[["render",US]]);var QS='';class WS extends HTMLElement{connectedCallback(){this.setAttribute("data-shopicon",!0),this.innerHTML=QS}}window.customElements.define("shopicon-bold-arrowback",WS);const zS={name:"ChargingSessions",components:{TopNavigation:Li},mixins:[dt],props:{notifications:Array},data(){return{sessions:[]}},computed:{sessionsByMonthAndLoadpoint(){const e=this.sessions.map(n=>{const r=n.loadpoint||this.$t("main.loadpoint.fallbackName"),o=n.vehicle||this.$t("main.vehicle.unknown");return{...n,loadpoint:r,vehicle:o}}),t=this.groupByMonth(e);return Object.entries(t).map(([n,r])=>{const o=Object.entries(this.groupByLoadpoint(r)).map(([s,i])=>{const a=this.totalKWh(i);return{name:s,total:a,sessions:i}});return{month:n,loadpoints:o}})}},mounted(){this.loadSessions()},methods:{async loadSessions(){var t;const e=await Ze.get("sessions");this.sessions=(t=e.data)==null?void 0:t.result},groupByMonth(e){return e.reduce((t,n)=>{const r=new Date(n.finished),o=`${r.getFullYear()}.${r.getMonth()}`;return t[o]||(t[o]=[]),t[o].push(n),t},{})},groupByLoadpoint(e){return e.reduce((t,n)=>{const r=n.loadpoint;return t[r]||(t[r]=[]),t[r].push(n),t},{})},totalKWh(e){return e.reduce((t,n)=>t+n.chargedEnergy,0)*1e3},groupedKWh(e,t){const n=t.reduce((o,s)=>{const i=s[e];return o[i]||(o[i]=0),o[i]+=s.chargedEnergy*1e3,o},{}),r=Object.entries(n).map(([o,s])=>({name:o,energy:s}));return r.length>=2?r:[]},formatGroupHeadline(e){const t=new Date,[n,r]=e.split(".");return t.setMonth(r),t.setFullYear(n),this.fmtMonthYear(t)}}},Ha=e=>(tt("data-v-ed5844dd"),e=e(),nt(),e),KS={class:"container px-4"},YS={class:"d-flex justify-content-between align-items-center py-3"},ZS={class:"mb-1 pt-1 d-flex text-nowrap"},GS=Ha(()=>g("shopicon-bold-arrowback",{size:"s",class:"back"},null,-1)),XS={class:"row"},JS={class:"col-12"},e6={class:"mb-4"},t6=["href"],n6={class:"mx-2"},r6={class:"d-flex align-items-baseline my-5"},s6={class:"me-4 mb-0"},o6={class:"d-flex align-items-baseline mb-3"},i6={class:"me-4 mb-0"},a6={class:"large"},l6={class:"breakdown text-gray d-sm-flex flex-sm-wrap ps-0 mb-2"},c6={class:"table-responsive my-3"},u6={class:"table"},f6={scope:"col"},d6={scope:"col",class:"text-end ps-sm-4 pe-md-5"},h6={scope:"col",class:"ps-3 ps-md-4 ps-md-5"},m6={class:"text-nowrap text-end ps-sm-4 pe-md-5"},p6={class:"text-nowrap ps-3 ps-md-4 ps-md-5"},g6={class:"d-block d-sm-none"},_6=Ha(()=>g("br",null,null,-1)),v6={class:"d-none d-sm-block"},b6=Ha(()=>g("br",null,null,-1));function y6(e,t,n,r,o,s){const i=de("router-link"),a=de("TopNavigation");return M(),F("div",KS,[g("header",YS,[g("h1",ZS,[re(i,{class:"dropdown-item mx-2 me-2",to:"/"},{default:Ve(()=>[GS]),_:1}),$e(" "+B(e.$t("sessions.title")),1)]),re(a)]),g("div",XS,[g("main",JS,[g("div",e6,[g("a",{class:"btn btn-outline-secondary text-nowrap my-2",href:`./api/sessions?format=csv&lang=${e.$i18n.locale}`,download:"sessions.csv"},B(e.$t("sessions.downloadCsv")),9,t6)]),(M(!0),F(Se,null,He(s.sessionsByMonthAndLoadpoint,l=>(M(),F("div",{key:l.month},[g("div",n6,[g("div",r6,[g("h2",s6,B(s.formatGroupHeadline(l.month)),1)]),(M(!0),F(Se,null,He(l.loadpoints,c=>(M(),F("div",{key:c.name},[g("div",o6,[g("h3",i6,B(c.name),1),g("div",a6,B(e.fmtKWh(c.total)),1)]),g("ul",l6,[(M(!0),F(Se,null,He(s.groupedKWh("vehicle",c.sessions),(u,f)=>(M(),F("li",{key:f,class:"breakdown-item"},B(u.name)+": "+B(e.fmtKWh(u.energy)),1))),128))]),g("div",c6,[g("table",u6,[g("thead",null,[g("tr",null,[g("th",f6,B(e.$t("sessions.vehicle")),1),g("th",d6,B(e.$t("sessions.energy")),1),g("th",h6,B(e.$t("sessions.date")),1)])]),g("tbody",null,[(M(!0),F(Se,null,He(c.sessions,(u,f)=>(M(),F("tr",{key:f},[g("td",null,B(u.vehicle),1),g("td",m6,B(e.fmtKWh(u.chargedEnergy*1e3)),1),g("td",p6,[g("span",g6,[$e(B(e.fmtFullDateTime(new Date(u.created),!0))+" ",1),_6,$e(" "+B(e.fmtFullDateTime(new Date(u.finished),!0)),1)]),g("span",v6,[$e(B(e.fmtFullDateTime(new Date(u.created),!1))+" ",1),b6,$e(" "+B(e.fmtFullDateTime(new Date(u.finished),!1)),1)])])]))),128))])])])]))),128))])]))),128))])])])}const w6=fe(zS,[["render",y6],["__scopeId","data-v-ed5844dd"]]);function E6(e){const t=Z1({history:d1(),routes:[{path:"/",component:jS,props:!0},{path:"/sessions",component:w6,props:!0}]});return t.beforeEach(async()=>(await jd(e.global),!0)),t}const T6={install:e=>{e.config.globalProperties.$hiddenFeatures=window.localStorage.hidden_features==="true"}};lh.polyfill();const gr=Ap({data(){return{notifications:[],offline:!1}},watch:{offline:function(e){console.log(`we are ${e?"offline":"online"}`)}},methods:{raise:function(e){console[e.type](e);const t=new Date,n=this.notifications[0];n&&n.message===e.message?(n.count++,n.time=t):this.notifications=[{...e,count:1,time:t},...this.notifications]},clear:function(){this.notifications=[]},error:function(e){e.type="error",this.raise(e)},setOnline:function(){this.offline=!1},setOffline:function(){this.offline=!0},warn:function(e){e.type="warn",this.raise(e)}},render:function(){return pn(zp,{notifications:this.notifications,offline:this.offline})}}),rh=Av();gr.use(rh);gr.use(E6(rh));gr.use(Vp());gr.use(Up);gr.use(T6);window.app=gr.mount("#app");Mv()});export default S6(); diff --git a/dist/index.html b/dist/index.html index 1d19a52e7..acb3314bc 100644 --- a/dist/index.html +++ b/dist/index.html @@ -20,7 +20,7 @@ evcc - + diff --git a/package-lock.json b/package-lock.json index a1dd714d7..748f7469a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "dependencies": { "@babel/core": "^7.17.2", "@h2d2/shopicons": "^1.2.0", - "@histoire/plugin-vue": "^0.11.6", + "@histoire/plugin-vue": "^0.12.4", "@popperjs/core": "^2.11.5", "@vitejs/plugin-vue": "^3.0.1", "@vue/compiler-sfc": "^3.2.30", @@ -24,7 +24,7 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-promise": "^6.0.0", "eslint-plugin-vue": "^9.3.0", - "histoire": "^0.11.6", + "histoire": "^0.12.4", "markty-toml": "^0.1.1", "prettier": "^2.5.1", "prettier-plugin-toml": "^0.3.1", @@ -68,32 +68,32 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.5.tgz", - "integrity": "sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g==", + "version": "7.20.10", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.10.tgz", + "integrity": "sha512-sEnuDPpOJR/fcafHMjpcpGN5M2jbUGUHwmuWKM/YdPzeEDJg8bgmbcWQFUfE32MQjti1koACvoPVsDe8Uq+idg==", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.5.tgz", - "integrity": "sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ==", + "version": "7.20.12", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz", + "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==", "dependencies": { "@ampproject/remapping": "^2.1.0", "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.5", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-module-transforms": "^7.20.2", - "@babel/helpers": "^7.20.5", - "@babel/parser": "^7.20.5", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5", + "@babel/generator": "^7.20.7", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helpers": "^7.20.7", + "@babel/parser": "^7.20.7", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.12", + "@babel/types": "^7.20.7", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", + "json5": "^2.2.2", "semver": "^6.3.0" }, "engines": { @@ -105,11 +105,11 @@ } }, "node_modules/@babel/generator": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.5.tgz", - "integrity": "sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.7.tgz", + "integrity": "sha512-7wqMOJq8doJMZmP4ApXTzLxSr7+oO2jroJURrVEp6XShrQUObV8Tq/D0NCcoYg2uHqUrjzO0zwBjoYzelxK+sw==", "dependencies": { - "@babel/types": "^7.20.5", + "@babel/types": "^7.20.7", "@jridgewell/gen-mapping": "^0.3.2", "jsesc": "^2.5.1" }, @@ -131,13 +131,14 @@ } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz", - "integrity": "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", + "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", "dependencies": { - "@babel/compat-data": "^7.20.0", + "@babel/compat-data": "^7.20.5", "@babel/helper-validator-option": "^7.18.6", "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", "semver": "^6.3.0" }, "engines": { @@ -190,18 +191,18 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz", - "integrity": "sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA==", + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.11.tgz", + "integrity": "sha512-uRy78kN4psmji1s2QtbtcCSaj/LILFDp0f/ymhpQH5QY3nljUZCaNWz9X1dEj/8MBdBEFECs7yRhKn8i7NjZgg==", "dependencies": { "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-module-imports": "^7.18.6", "@babel/helper-simple-access": "^7.20.2", "@babel/helper-split-export-declaration": "^7.18.6", "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.1", - "@babel/types": "^7.20.2" + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.10", + "@babel/types": "^7.20.7" }, "engines": { "node": ">=6.9.0" @@ -254,13 +255,13 @@ } }, "node_modules/@babel/helpers": { - "version": "7.20.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.6.tgz", - "integrity": "sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.7.tgz", + "integrity": "sha512-PBPjs5BppzsGaxHQCDKnZ6Gd9s6xl8bBCluz3vEInLGRJmnZan4F6BYCeqtyXqkk4W5IlPmjK4JlOuZkpJ3xZA==", "dependencies": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.7", + "@babel/types": "^7.20.7" }, "engines": { "node": ">=6.9.0" @@ -280,9 +281,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.5.tgz", - "integrity": "sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.7.tgz", + "integrity": "sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg==", "bin": { "parser": "bin/babel-parser.js" }, @@ -291,31 +292,31 @@ } }, "node_modules/@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", + "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", "dependencies": { "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.5.tgz", - "integrity": "sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ==", + "version": "7.20.12", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.12.tgz", + "integrity": "sha512-MsIbFN0u+raeja38qboyF8TIT7K0BFzz/Yd/77ta4MsUsmP2RAnidIlwq7d5HFQrH/OZJecGV6B71C4zAgpoSQ==", "dependencies": { "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.5", + "@babel/generator": "^7.20.7", "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-function-name": "^7.19.0", "@babel/helper-hoist-variables": "^7.18.6", "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.5", - "@babel/types": "^7.20.5", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", "debug": "^4.1.0", "globals": "^11.1.0" }, @@ -324,9 +325,9 @@ } }, "node_modules/@babel/types": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.5.tgz", - "integrity": "sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz", + "integrity": "sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==", "dependencies": { "@babel/helper-string-parser": "^7.19.4", "@babel/helper-validator-identifier": "^7.19.1", @@ -337,12 +338,12 @@ } }, "node_modules/@codemirror/commands": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.1.2.tgz", - "integrity": "sha512-sO3jdX1s0pam6lIdeSJLMN3DQ6mPEbM4yLvyKkdqtmd/UDwhXA5+AwFJ89rRXm6vTeOXBsE5cAmlos/t7MJdgg==", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.1.3.tgz", + "integrity": "sha512-wUw1+vb34Ultv0Q9m/OVB7yizGXgtoDbkI5f5ErM8bebwLyUYjicdhJTKhTvPTpgkv8dq/BK0lQ3K5pRf2DAJw==", "dependencies": { "@codemirror/language": "^6.0.0", - "@codemirror/state": "^6.0.0", + "@codemirror/state": "^6.2.0", "@codemirror/view": "^6.0.0", "@lezer/common": "^1.0.0" } @@ -380,9 +381,9 @@ } }, "node_modules/@codemirror/state": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.1.4.tgz", - "integrity": "sha512-g+3OJuRylV5qsXuuhrc6Cvs1NQluNioepYMM2fhnpYkNk7NgX+j0AFuevKSVKzTDmDyt9+Puju+zPdHNECzCNQ==" + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.2.0.tgz", + "integrity": "sha512-69QXtcrsc3RYtOtd+GsvczJ319udtBf1PTrr2KbLWM/e2CXUPnh0Nz9AUo8WfhSQ7GeL8dPVNUmhQVgpmuaNGA==" }, "node_modules/@codemirror/theme-one-dark": { "version": "6.1.0", @@ -396,9 +397,9 @@ } }, "node_modules/@codemirror/view": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.7.1.tgz", - "integrity": "sha512-kYtS+uqYw/q/0ytYxpkqE1JVuK5NsbmBklWYhwLFTKO9gVuTdh/kDEeZPKorbqHcJ+P+ucrhcsS1czVweOpT2g==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.7.2.tgz", + "integrity": "sha512-HeK2GyycxceaQVyvYVYXmn1vUKYYBsHCcfGRSsFO+3fRRtwXx2STK0YiFBmiWx2vtU9gUAJgIUXUN8a0osI8Ng==", "dependencies": { "@codemirror/state": "^6.1.4", "style-mod": "^4.0.0", @@ -436,9 +437,9 @@ } }, "node_modules/@eslint/eslintrc": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.0.tgz", - "integrity": "sha512-7yfvXy6MWLgWSFsLhz5yH3iQ52St8cdUY6FoGieKkRDVxuxmrNuUetIuu6cmjNWwniUHiWXjxCr5tTXDrbYS5A==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", + "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", "dependencies": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -477,22 +478,22 @@ "integrity": "sha512-8NMYWEqHN3MgNIB/gd0iLThBzgVR/qhTtZrEHGgzLqvqYrb4BCSgEFaMlZALBsHYgWFYVrn0MHL41025Tbu20A==" }, "node_modules/@histoire/app": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/app/-/app-0.11.9.tgz", - "integrity": "sha512-596aJ48e2Og22BAvQ3NYJb7e5Tg1oAUSbuDy5k7+hYhGCIrA0c7d0OkZQ5Rr4MhepKm7oeEJYViSKEEKGvKmIQ==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/app/-/app-0.12.4.tgz", + "integrity": "sha512-noemJQ3q5ofHbBJGJ9FgLIdoV4Feyn3zHMhOQjHZRPETdoAak2adALO4UWKVnFu75+R43SLtoV7HnK0TAPx5kw==", "dependencies": { - "@histoire/controls": "^0.11.9", - "@histoire/shared": "^0.11.9", - "@histoire/vendors": "^0.11.9", + "@histoire/controls": "^0.12.4", + "@histoire/shared": "^0.12.4", + "@histoire/vendors": "^0.12.4", "@types/flexsearch": "^0.7.3", "flexsearch": "0.7.21", "shiki-es": "^0.1.2" } }, "node_modules/@histoire/controls": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/controls/-/controls-0.11.9.tgz", - "integrity": "sha512-CnUW7DfC5TLy7zKUqYKiDKqef7ookbAtTN4lPPtR2JvFpF6DOhfpwOcrRxePentxzB6jpnEBP7wCUci+0kR3eQ==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/controls/-/controls-0.12.4.tgz", + "integrity": "sha512-p4qa11vXqhSMsnXW1p+n7ZqawoHVErLFL24yNnA9peMuXnR306/0cvdAnsLMQJdq5mDNayOY5Di69YKVQ0Shqg==", "dependencies": { "@codemirror/commands": "^6.1.1", "@codemirror/lang-json": "^6.0.0", @@ -501,27 +502,27 @@ "@codemirror/state": "^6.1.2", "@codemirror/theme-one-dark": "^6.1.0", "@codemirror/view": "^6.3.0", - "@histoire/vendors": "^0.11.9" + "@histoire/vendors": "^0.12.4" } }, "node_modules/@histoire/plugin-vue": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/plugin-vue/-/plugin-vue-0.11.9.tgz", - "integrity": "sha512-7+872zuGg0iR8hhzgJnleMBVM5u2cnegsiBFljN/AAxCGtHpQbZTTOtl9dvsNxNDJUMbScnQsQTNw35KlNpmJA==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/plugin-vue/-/plugin-vue-0.12.4.tgz", + "integrity": "sha512-2xgBDwEHmiY053hPWy4rKnnMjntVcg8qfIYJGyITwFWSfNTq+6ez/HjWzUcHT6qwFMglUHq+rDlQb9gYZF+Edw==", "dependencies": { - "@histoire/controls": "^0.11.9", - "@histoire/shared": "^0.11.9", - "@histoire/vendors": "^0.11.9" + "@histoire/controls": "^0.12.4", + "@histoire/shared": "^0.12.4", + "@histoire/vendors": "^0.12.4" }, "peerDependencies": { - "histoire": "^0.11.9", + "histoire": "^0.12.4", "vue": "^3.2.31" } }, "node_modules/@histoire/shared": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/shared/-/shared-0.11.9.tgz", - "integrity": "sha512-8pcWynhaUWWZTIilmu21TbqnB/z5uiwhyceEWknulbSG0mF4DQgchxQm3umgOzMwl1gw3556RwQyBdc9F7KsJA==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/shared/-/shared-0.12.4.tgz", + "integrity": "sha512-dVSrfsEu17KczjyHVW8yPvSlguhEV7hWjDSwsjlUrRdbe7hwztX4GbbcCIWvG5hy5gASpKpQq6FJa5uTs0HOsg==", "dependencies": { "@types/fs-extra": "^9.0.13", "@types/markdown-it": "^12.2.3", @@ -530,13 +531,13 @@ "picocolors": "^1.0.0" }, "peerDependencies": { - "vite": "^2.9.0 || ^3.0.0" + "vite": "^2.9.0 || ^3.0.0 || ^4.0.0" } }, "node_modules/@histoire/vendors": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/vendors/-/vendors-0.11.9.tgz", - "integrity": "sha512-PnlPB1dAgLRcA+dSGPB/27zewREHCmO4nUCOQWu7rFNMO1wfB2EOn53hxkkBgzej3toa1u1knIRpHzQRSaUSUw==" + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/vendors/-/vendors-0.12.4.tgz", + "integrity": "sha512-NIi0krz19iSjPHhIsGLrW4Q3tvrCLfvCet2kFA8crKPX6inaMZm8g/+pDQBqlh9DRCXVbxV5RWQKcumrIFbrmw==" }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", @@ -818,9 +819,9 @@ "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==" }, "node_modules/@types/node": { - "version": "18.11.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.17.tgz", - "integrity": "sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==" + "version": "18.11.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", + "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==" }, "node_modules/@vitejs/plugin-vue": { "version": "3.2.0", @@ -1084,10 +1085,21 @@ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, + "node_modules/available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/axios": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.1.tgz", - "integrity": "sha512-I88cFiGu9ryt/tfVEi4kX2SITsvDddTajXTOFmt2uK1ZVA8LytjtdeyefdQWEf5PU8w+4SSJDoYnggflB5tW4A==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz", + "integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==", "dependencies": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -1185,6 +1197,11 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -1215,9 +1232,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001439", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001439.tgz", - "integrity": "sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A==", + "version": "1.0.30001442", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001442.tgz", + "integrity": "sha512-239m03Pqy0hwxYPYR5JwOIxRJfLTWtle9FV8zosfV5pHg+/51uD4nxcUlM8+mWWGfwKtt8lJNHnD3cWw9VZ6ow==", "funding": [ { "type": "opencollective", @@ -1612,26 +1629,31 @@ } }, "node_modules/es-abstract": { - "version": "1.20.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.5.tgz", - "integrity": "sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==", + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.0.tgz", + "integrity": "sha512-GUGtW7eXQay0c+PRq0sGIKSdaBorfVqsCMhGHo4elP7YVqZu9nCZS4UkK4gv71gOWNMra/PaSKD3ao1oWExO0g==", "dependencies": { "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.0", "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", "function.prototype.name": "^1.1.5", "get-intrinsic": "^1.1.3", "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", "gopd": "^1.0.1", "has": "^1.0.3", "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", + "internal-slot": "^1.0.4", + "is-array-buffer": "^3.0.0", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", "is-shared-array-buffer": "^1.0.2", "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", "is-weakref": "^1.0.2", "object-inspect": "^1.12.2", "object-keys": "^1.1.1", @@ -1640,7 +1662,9 @@ "safe-regex-test": "^1.0.0", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", - "unbox-primitive": "^1.0.2" + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" }, "engines": { "node": ">= 0.4" @@ -1649,6 +1673,19 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "dependencies": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es-shim-unscopables": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/es-shim-unscopables/-/es-shim-unscopables-1.0.0.tgz", @@ -2099,11 +2136,11 @@ } }, "node_modules/eslint": { - "version": "8.30.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.30.0.tgz", - "integrity": "sha512-MGADB39QqYuzEGov+F/qb18r4i7DohCDOfatHaxI2iGlPuC65bwG2gxgO+7DkyL38dRFaRH7RaRAgU6JKL9rMQ==", + "version": "8.31.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.31.0.tgz", + "integrity": "sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA==", "dependencies": { - "@eslint/eslintrc": "^1.4.0", + "@eslint/eslintrc": "^1.4.1", "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -2154,9 +2191,9 @@ } }, "node_modules/eslint-config-prettier": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", - "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz", + "integrity": "sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==", "bin": { "eslint-config-prettier": "bin/cli.js" }, @@ -2387,6 +2424,17 @@ "eslint": "^6.2.0 || ^7.0.0 || ^8.0.0" } }, + "node_modules/eslint-plugin-vue/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/eslint-plugin-vue/node_modules/semver": { "version": "7.3.8", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", @@ -2401,6 +2449,11 @@ "node": ">=10" } }, + "node_modules/eslint-plugin-vue/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, "node_modules/eslint-scope": { "version": "7.1.1", "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", @@ -2664,9 +2717,9 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "node_modules/fastq": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz", - "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "dependencies": { "reusify": "^1.0.4" } @@ -2779,6 +2832,14 @@ } } }, + "node_modules/for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "dependencies": { + "is-callable": "^1.1.3" + } + }, "node_modules/form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", @@ -2935,6 +2996,20 @@ "node": ">=4" } }, + "node_modules/globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "dependencies": { + "define-properties": "^1.1.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/globby": { "version": "13.1.3", "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", @@ -3046,6 +3121,17 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", @@ -3081,14 +3167,14 @@ } }, "node_modules/histoire": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/histoire/-/histoire-0.11.9.tgz", - "integrity": "sha512-sN4XAA3KIMXY4dUtQM9lytXSIkAW0shXfoyVuKBe3eBSW+TsZdp435yNc64E1YsD24HTZH3+elAI8Xkcaq3X+A==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/histoire/-/histoire-0.12.4.tgz", + "integrity": "sha512-q20Zncdh+GI2jDXiry1JS1DrN5qprKpl452AnS/P06Vgowqf79aG85E0XmhNpX2r8HI2HmIntwZ5FLd6hxYobQ==", "dependencies": { - "@histoire/app": "^0.11.9", - "@histoire/controls": "^0.11.9", - "@histoire/shared": "^0.11.9", - "@histoire/vendors": "^0.11.9", + "@histoire/app": "^0.12.4", + "@histoire/controls": "^0.12.4", + "@histoire/shared": "^0.12.4", + "@histoire/vendors": "^0.12.4", "@types/flexsearch": "^0.7.3", "@types/markdown-it": "^12.2.3", "birpc": "^0.1.1", @@ -3112,16 +3198,16 @@ "pathe": "^0.2.0", "picocolors": "^1.0.0", "sade": "^1.8.1", - "shiki": "0.11.1", + "shiki-es": "^0.1.2", "sirv": "^2.0.2", "tinypool": "^0.1.2", - "vite-node": "0.23.4" + "vite-node": "0.26.0" }, "bin": { "histoire": "bin.mjs" }, "peerDependencies": { - "vite": "^2.9.0 || ^3.0.0" + "vite": "^2.9.0 || ^3.0.0 || ^4.0.0" } }, "node_modules/html-encoding-sniffer": { @@ -3172,9 +3258,9 @@ } }, "node_modules/ignore": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.1.tgz", - "integrity": "sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==", "engines": { "node": ">= 4" } @@ -3229,6 +3315,19 @@ "node": ">= 0.4" } }, + "node_modules/is-array-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz", + "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==", + "dependencies": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-typed-array": "^1.1.10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -3451,6 +3550,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -3479,9 +3596,9 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "node_modules/jiti": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.16.0.tgz", - "integrity": "sha512-L3BJStEf5NAqNuzrpfbN71dp43mYIcBUlCRea/vdyv5dW/AYa1d4bpelko4SHdY3I6eN9Wzyasxirj1/vv5kmg==", + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.16.1.tgz", + "integrity": "sha512-kJUp4Bj44uTaZAwG6R2/GjbodOWHULn8Swue0B7tY8v5BpTkUvDR+zBM5tsbC4x/jCeYDZ+mAdrUIScwIo4oPw==", "bin": { "jiti": "bin/jiti.js" } @@ -3577,9 +3694,9 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" }, "node_modules/json5": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.2.tgz", - "integrity": "sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "bin": { "json5": "lib/cli.js" }, @@ -3664,14 +3781,11 @@ } }, "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" + "yallist": "^3.0.2" } }, "node_modules/magic-string": { @@ -3698,9 +3812,9 @@ } }, "node_modules/markdown-it-anchor": { - "version": "8.6.5", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.5.tgz", - "integrity": "sha512-PI1qEHHkTNWT+X6Ip9w+paonfIQ+QZP9sCeMYi47oqhH+EsW8CrJ8J7CzV19QVOj6il8ATGbK2nTECj22ZHGvQ==", + "version": "8.6.6", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.6.tgz", + "integrity": "sha512-jRW30YGywD2ESXDc+l17AiritL0uVaSnWsb26f+68qaW9zgbIIr1f4v2Nsvc0+s0Z2N3uX6t/yAw7BwCQ1wMsA==", "peerDependencies": { "@types/markdown-it": "*", "markdown-it": "*" @@ -3799,9 +3913,9 @@ } }, "node_modules/mlly": { - "version": "0.5.17", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-0.5.17.tgz", - "integrity": "sha512-Rn+ai4G+CQXptDFSRNnChEgNr+xAEauYhwRvpPl/UHStTlgkIftplgJRsA2OXPuoUn86K4XAjB26+x5CEvVb6A==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.0.0.tgz", + "integrity": "sha512-QL108Hwt+u9bXdWgOI0dhzZfACovn5Aen4Xvc8Jasd9ouRH4NjnrXEiyP3nVvJo91zPlYjVRckta0Nt2zfoR6g==", "dependencies": { "acorn": "^8.8.1", "pathe": "^1.0.0", @@ -4153,26 +4267,15 @@ "pathe": "^1.0.0" } }, - "node_modules/pkg-types/node_modules/mlly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.0.0.tgz", - "integrity": "sha512-QL108Hwt+u9bXdWgOI0dhzZfACovn5Aen4Xvc8Jasd9ouRH4NjnrXEiyP3nVvJo91zPlYjVRckta0Nt2zfoR6g==", - "dependencies": { - "acorn": "^8.8.1", - "pathe": "^1.0.0", - "pkg-types": "^1.0.0", - "ufo": "^1.0.0" - } - }, "node_modules/pkg-types/node_modules/pathe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.0.0.tgz", "integrity": "sha512-nPdMG0Pd09HuSsr7QOKUXO2Jr9eqaDiZvDwdyIhNG5SHYujkQHYKDfGQkulBxvbDHz8oHLsTgKN86LSwYzSHAg==" }, "node_modules/postcss": { - "version": "8.4.20", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.20.tgz", - "integrity": "sha512-6Q04AXR1212bXr5fh03u8aAwbLxAQNGQ/Q1LNa0VfOI06ZAlhPHtQvE4OIdpj4kLThXilalPnmDSOD65DcHt+g==", + "version": "8.4.21", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", + "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", "funding": [ { "type": "opencollective", @@ -4213,9 +4316,9 @@ } }, "node_modules/prettier": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", - "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==", + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.2.tgz", + "integrity": "sha512-BtRV9BcncDyI2tsuS19zzhzoxD8Dh8LiCx7j7tHzrkz8GFXAexeWFdi22mjE1d16dftH2qNaytVxqiRTGlMfpw==", "bin": { "prettier": "bin-prettier.js" }, @@ -4403,9 +4506,9 @@ } }, "node_modules/rollup": { - "version": "3.7.5", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.7.5.tgz", - "integrity": "sha512-z0ZbqHBtS/et2EEUKMrAl2CoSdwN7ZPzL17UMiKN9RjjqHShTlv7F9J6ZJZJNREYjBh3TvBrdfjkFDIXFNeuiQ==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.9.1.tgz", + "integrity": "sha512-GswCYHXftN8ZKGVgQhTFUJB/NBXxrRGgO2NCy6E8s1rwEJ4Q9/VttNqcYfEvx4dTo4j58YqdC3OVztPzlKSX8w==", "peer": true, "bin": { "rollup": "dist/bin/rollup" @@ -4419,11 +4522,12 @@ } }, "node_modules/rollup-plugin-visualizer": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.8.3.tgz", - "integrity": "sha512-QGJk4Bqe4AOat5AjipOh8esZH1nck5X2KFpf4VytUdSUuuuSwvIQZjMGgjcxe/zXexltqaXp5Vx1V3LmnQH15Q==", + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.9.0.tgz", + "integrity": "sha512-bbDOv47+Bw4C/cgs0czZqfm8L82xOZssk4ayZjG40y9zbXclNk7YikrZTDao6p7+HDiGxrN0b65SgZiVm9k1Cg==", "dependencies": { "open": "^8.4.0", + "picomatch": "^2.3.1", "source-map": "^0.7.4", "yargs": "^17.5.1" }, @@ -4561,16 +4665,6 @@ "node": ">=8" } }, - "node_modules/shiki": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.11.1.tgz", - "integrity": "sha512-EugY9VASFuDqOexOgXR18ZV+TbFrQHeCpEYaXamO+SZlsnT/2LxuLBX25GGtIrwaEVFXUAbUQ601SWE2rMwWHA==", - "dependencies": { - "jsonc-parser": "^3.0.0", - "vscode-oniguruma": "^1.6.1", - "vscode-textmate": "^6.0.0" - } - }, "node_modules/shiki-es": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/shiki-es/-/shiki-es-0.1.2.tgz", @@ -4643,6 +4737,15 @@ "node": ">=0.10.0" } }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/sourcemap-codec": { "version": "1.4.8", "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", @@ -4870,9 +4973,9 @@ } }, "node_modules/tsconfig-paths/node_modules/json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "dependencies": { "minimist": "^1.2.0" }, @@ -4907,6 +5010,19 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "dependencies": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/uc.micro": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", @@ -5067,14 +5183,16 @@ } }, "node_modules/vite-node": { - "version": "0.23.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.23.4.tgz", - "integrity": "sha512-8VuDGwTWIvwPYcbw8ZycMlwAwqCmqZfLdFrDK75+o+6bWYpede58k6AAXN9ioU+icW82V4u1MzkxLVhhIoQ9xA==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.26.0.tgz", + "integrity": "sha512-nLtHWCv6reONl1oFsKhQ/LT7n3UNLpvVARAJlmGrQV6qSElht/9AdN41Pa+WSkw2Winh682UzM0Yw0GNlfqejw==", "dependencies": { "debug": "^4.3.4", - "mlly": "^0.5.14", + "mlly": "^1.0.0", "pathe": "^0.2.0", - "vite": "^2.9.12 || ^3.0.0-0" + "source-map": "^0.6.1", + "source-map-support": "^0.5.21", + "vite": "^3.0.0 || ^4.0.0" }, "bin": { "vite-node": "vite-node.mjs" @@ -5115,16 +5233,6 @@ "fsevents": "~2.3.2" } }, - "node_modules/vscode-oniguruma": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz", - "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==" - }, - "node_modules/vscode-textmate": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-6.0.0.tgz", - "integrity": "sha512-gu73tuZfJgu+mvCSy4UZwd2JXykjK9zAZsfmDeut5dx/1a7FeTk0XwJsSuqQn+cuMCGVbIBfl+s53X4T19DnzQ==" - }, "node_modules/vue": { "version": "3.2.45", "resolved": "https://registry.npmjs.org/vue/-/vue-3.2.45.tgz", @@ -5160,6 +5268,17 @@ "eslint": ">=6.0.0" } }, + "node_modules/vue-eslint-parser/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/vue-eslint-parser/node_modules/semver": { "version": "7.3.8", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", @@ -5174,6 +5293,11 @@ "node": ">=10" } }, + "node_modules/vue-eslint-parser/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + }, "node_modules/vue-hot-reload-api": { "version": "2.3.4", "resolved": "https://registry.npmjs.org/vue-hot-reload-api/-/vue-hot-reload-api-2.3.4.tgz", @@ -5302,6 +5426,25 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "dependencies": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", @@ -5362,15 +5505,15 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "node_modules/ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.0.tgz", + "integrity": "sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==", "engines": { "node": ">=10.0.0" }, "peerDependencies": { "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" + "utf-8-validate": ">=5.0.2" }, "peerDependenciesMeta": { "bufferutil": { @@ -5403,9 +5546,9 @@ } }, "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" }, "node_modules/yargs": { "version": "17.6.2", @@ -5463,38 +5606,38 @@ } }, "@babel/compat-data": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.5.tgz", - "integrity": "sha512-KZXo2t10+/jxmkhNXc7pZTqRvSOIvVv/+lJwHS+B2rErwOyjuVRh60yVpb7liQ1U5t7lLJ1bz+t8tSypUZdm0g==" + "version": "7.20.10", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.10.tgz", + "integrity": "sha512-sEnuDPpOJR/fcafHMjpcpGN5M2jbUGUHwmuWKM/YdPzeEDJg8bgmbcWQFUfE32MQjti1koACvoPVsDe8Uq+idg==" }, "@babel/core": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.5.tgz", - "integrity": "sha512-UdOWmk4pNWTm/4DlPUl/Pt4Gz4rcEMb7CY0Y3eJl5Yz1vI8ZJGmHWaVE55LoxRjdpx0z259GE9U5STA9atUinQ==", + "version": "7.20.12", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.12.tgz", + "integrity": "sha512-XsMfHovsUYHFMdrIHkZphTN/2Hzzi78R08NuHfDBehym2VsPDL6Zn/JAD/JQdnRvbSsbQc4mVaU1m6JgtTEElg==", "requires": { "@ampproject/remapping": "^2.1.0", "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.5", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-module-transforms": "^7.20.2", - "@babel/helpers": "^7.20.5", - "@babel/parser": "^7.20.5", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5", + "@babel/generator": "^7.20.7", + "@babel/helper-compilation-targets": "^7.20.7", + "@babel/helper-module-transforms": "^7.20.11", + "@babel/helpers": "^7.20.7", + "@babel/parser": "^7.20.7", + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.12", + "@babel/types": "^7.20.7", "convert-source-map": "^1.7.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", + "json5": "^2.2.2", "semver": "^6.3.0" } }, "@babel/generator": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.5.tgz", - "integrity": "sha512-jl7JY2Ykn9S0yj4DQP82sYvPU+T3g0HFcWTqDLqiuA9tGRNIj9VfbtXGAYTTkyNEnQk1jkMGOdYka8aG/lulCA==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.7.tgz", + "integrity": "sha512-7wqMOJq8doJMZmP4ApXTzLxSr7+oO2jroJURrVEp6XShrQUObV8Tq/D0NCcoYg2uHqUrjzO0zwBjoYzelxK+sw==", "requires": { - "@babel/types": "^7.20.5", + "@babel/types": "^7.20.7", "@jridgewell/gen-mapping": "^0.3.2", "jsesc": "^2.5.1" }, @@ -5512,13 +5655,14 @@ } }, "@babel/helper-compilation-targets": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz", - "integrity": "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.7.tgz", + "integrity": "sha512-4tGORmfQcrc+bvrjb5y3dG9Mx1IOZjsHqQVUz7XCNHO+iTmqxWnVg3KRygjGmpRLJGdQSKuvFinbIb0CnZwHAQ==", "requires": { - "@babel/compat-data": "^7.20.0", + "@babel/compat-data": "^7.20.5", "@babel/helper-validator-option": "^7.18.6", "browserslist": "^4.21.3", + "lru-cache": "^5.1.1", "semver": "^6.3.0" } }, @@ -5553,18 +5697,18 @@ } }, "@babel/helper-module-transforms": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz", - "integrity": "sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA==", + "version": "7.20.11", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.11.tgz", + "integrity": "sha512-uRy78kN4psmji1s2QtbtcCSaj/LILFDp0f/ymhpQH5QY3nljUZCaNWz9X1dEj/8MBdBEFECs7yRhKn8i7NjZgg==", "requires": { "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-module-imports": "^7.18.6", "@babel/helper-simple-access": "^7.20.2", "@babel/helper-split-export-declaration": "^7.18.6", "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.1", - "@babel/types": "^7.20.2" + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.10", + "@babel/types": "^7.20.7" } }, "@babel/helper-simple-access": { @@ -5599,13 +5743,13 @@ "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==" }, "@babel/helpers": { - "version": "7.20.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.6.tgz", - "integrity": "sha512-Pf/OjgfgFRW5bApskEz5pvidpim7tEDPlFtKcNRXWmfHGn9IEI2W2flqRQXTFb7gIPTyK++N6rVHuwKut4XK6w==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.7.tgz", + "integrity": "sha512-PBPjs5BppzsGaxHQCDKnZ6Gd9s6xl8bBCluz3vEInLGRJmnZan4F6BYCeqtyXqkk4W5IlPmjK4JlOuZkpJ3xZA==", "requires": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.5", - "@babel/types": "^7.20.5" + "@babel/template": "^7.20.7", + "@babel/traverse": "^7.20.7", + "@babel/types": "^7.20.7" } }, "@babel/highlight": { @@ -5619,41 +5763,41 @@ } }, "@babel/parser": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.5.tgz", - "integrity": "sha512-r27t/cy/m9uKLXQNWWebeCUHgnAZq0CpG1OwKRxzJMP1vpSU4bSIK2hq+/cp0bQxetkXx38n09rNu8jVkcK/zA==" + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.7.tgz", + "integrity": "sha512-T3Z9oHybU+0vZlY9CiDSJQTD5ZapcW18ZctFMi0MOAl/4BjFF4ul7NVSARLdbGO5vDqy9eQiGTV0LtKfvCYvcg==" }, "@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.20.7.tgz", + "integrity": "sha512-8SegXApWe6VoNw0r9JHpSteLKTpTiLZ4rMlGIm9JQ18KiCtyQiAMEazujAHrUS5flrcqYZa75ukev3P6QmUwUw==", "requires": { "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7" } }, "@babel/traverse": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.5.tgz", - "integrity": "sha512-WM5ZNN3JITQIq9tFZaw1ojLU3WgWdtkxnhM1AegMS+PvHjkM5IXjmYEGY7yukz5XS4sJyEf2VzWjI8uAavhxBQ==", + "version": "7.20.12", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.12.tgz", + "integrity": "sha512-MsIbFN0u+raeja38qboyF8TIT7K0BFzz/Yd/77ta4MsUsmP2RAnidIlwq7d5HFQrH/OZJecGV6B71C4zAgpoSQ==", "requires": { "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.5", + "@babel/generator": "^7.20.7", "@babel/helper-environment-visitor": "^7.18.9", "@babel/helper-function-name": "^7.19.0", "@babel/helper-hoist-variables": "^7.18.6", "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.5", - "@babel/types": "^7.20.5", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", "debug": "^4.1.0", "globals": "^11.1.0" } }, "@babel/types": { - "version": "7.20.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.5.tgz", - "integrity": "sha512-c9fst/h2/dcF7H+MJKZ2T0KjEQ8hY/BNnDk/H3XY8C4Aw/eWQXWn/lWntHF9ooUBnGmEvbfGrTgLWc+um0YDUg==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.7.tgz", + "integrity": "sha512-69OnhBxSSgK0OzTJai4kyPDiKTIe3j+ctaHdIGVbRahTLAT7L3R9oeXHC2aVSuGYt3cVnoAMDmOCgJ2yaiLMvg==", "requires": { "@babel/helper-string-parser": "^7.19.4", "@babel/helper-validator-identifier": "^7.19.1", @@ -5661,12 +5805,12 @@ } }, "@codemirror/commands": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.1.2.tgz", - "integrity": "sha512-sO3jdX1s0pam6lIdeSJLMN3DQ6mPEbM4yLvyKkdqtmd/UDwhXA5+AwFJ89rRXm6vTeOXBsE5cAmlos/t7MJdgg==", + "version": "6.1.3", + "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.1.3.tgz", + "integrity": "sha512-wUw1+vb34Ultv0Q9m/OVB7yizGXgtoDbkI5f5ErM8bebwLyUYjicdhJTKhTvPTpgkv8dq/BK0lQ3K5pRf2DAJw==", "requires": { "@codemirror/language": "^6.0.0", - "@codemirror/state": "^6.0.0", + "@codemirror/state": "^6.2.0", "@codemirror/view": "^6.0.0", "@lezer/common": "^1.0.0" } @@ -5704,9 +5848,9 @@ } }, "@codemirror/state": { - "version": "6.1.4", - "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.1.4.tgz", - "integrity": "sha512-g+3OJuRylV5qsXuuhrc6Cvs1NQluNioepYMM2fhnpYkNk7NgX+j0AFuevKSVKzTDmDyt9+Puju+zPdHNECzCNQ==" + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.2.0.tgz", + "integrity": "sha512-69QXtcrsc3RYtOtd+GsvczJ319udtBf1PTrr2KbLWM/e2CXUPnh0Nz9AUo8WfhSQ7GeL8dPVNUmhQVgpmuaNGA==" }, "@codemirror/theme-one-dark": { "version": "6.1.0", @@ -5720,9 +5864,9 @@ } }, "@codemirror/view": { - "version": "6.7.1", - "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.7.1.tgz", - "integrity": "sha512-kYtS+uqYw/q/0ytYxpkqE1JVuK5NsbmBklWYhwLFTKO9gVuTdh/kDEeZPKorbqHcJ+P+ucrhcsS1czVweOpT2g==", + "version": "6.7.2", + "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.7.2.tgz", + "integrity": "sha512-HeK2GyycxceaQVyvYVYXmn1vUKYYBsHCcfGRSsFO+3fRRtwXx2STK0YiFBmiWx2vtU9gUAJgIUXUN8a0osI8Ng==", "requires": { "@codemirror/state": "^6.1.4", "style-mod": "^4.0.0", @@ -5742,9 +5886,9 @@ "optional": true }, "@eslint/eslintrc": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.0.tgz", - "integrity": "sha512-7yfvXy6MWLgWSFsLhz5yH3iQ52St8cdUY6FoGieKkRDVxuxmrNuUetIuu6cmjNWwniUHiWXjxCr5tTXDrbYS5A==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.4.1.tgz", + "integrity": "sha512-XXrH9Uarn0stsyldqDYq8r++mROmWRI1xKMXa640Bb//SY1+ECYX6VzT6Lcx5frD0V30XieqJ0oX9I2Xj5aoMA==", "requires": { "ajv": "^6.12.4", "debug": "^4.3.2", @@ -5773,22 +5917,22 @@ "integrity": "sha512-8NMYWEqHN3MgNIB/gd0iLThBzgVR/qhTtZrEHGgzLqvqYrb4BCSgEFaMlZALBsHYgWFYVrn0MHL41025Tbu20A==" }, "@histoire/app": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/app/-/app-0.11.9.tgz", - "integrity": "sha512-596aJ48e2Og22BAvQ3NYJb7e5Tg1oAUSbuDy5k7+hYhGCIrA0c7d0OkZQ5Rr4MhepKm7oeEJYViSKEEKGvKmIQ==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/app/-/app-0.12.4.tgz", + "integrity": "sha512-noemJQ3q5ofHbBJGJ9FgLIdoV4Feyn3zHMhOQjHZRPETdoAak2adALO4UWKVnFu75+R43SLtoV7HnK0TAPx5kw==", "requires": { - "@histoire/controls": "^0.11.9", - "@histoire/shared": "^0.11.9", - "@histoire/vendors": "^0.11.9", + "@histoire/controls": "^0.12.4", + "@histoire/shared": "^0.12.4", + "@histoire/vendors": "^0.12.4", "@types/flexsearch": "^0.7.3", "flexsearch": "0.7.21", "shiki-es": "^0.1.2" } }, "@histoire/controls": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/controls/-/controls-0.11.9.tgz", - "integrity": "sha512-CnUW7DfC5TLy7zKUqYKiDKqef7ookbAtTN4lPPtR2JvFpF6DOhfpwOcrRxePentxzB6jpnEBP7wCUci+0kR3eQ==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/controls/-/controls-0.12.4.tgz", + "integrity": "sha512-p4qa11vXqhSMsnXW1p+n7ZqawoHVErLFL24yNnA9peMuXnR306/0cvdAnsLMQJdq5mDNayOY5Di69YKVQ0Shqg==", "requires": { "@codemirror/commands": "^6.1.1", "@codemirror/lang-json": "^6.0.0", @@ -5797,23 +5941,23 @@ "@codemirror/state": "^6.1.2", "@codemirror/theme-one-dark": "^6.1.0", "@codemirror/view": "^6.3.0", - "@histoire/vendors": "^0.11.9" + "@histoire/vendors": "^0.12.4" } }, "@histoire/plugin-vue": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/plugin-vue/-/plugin-vue-0.11.9.tgz", - "integrity": "sha512-7+872zuGg0iR8hhzgJnleMBVM5u2cnegsiBFljN/AAxCGtHpQbZTTOtl9dvsNxNDJUMbScnQsQTNw35KlNpmJA==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/plugin-vue/-/plugin-vue-0.12.4.tgz", + "integrity": "sha512-2xgBDwEHmiY053hPWy4rKnnMjntVcg8qfIYJGyITwFWSfNTq+6ez/HjWzUcHT6qwFMglUHq+rDlQb9gYZF+Edw==", "requires": { - "@histoire/controls": "^0.11.9", - "@histoire/shared": "^0.11.9", - "@histoire/vendors": "^0.11.9" + "@histoire/controls": "^0.12.4", + "@histoire/shared": "^0.12.4", + "@histoire/vendors": "^0.12.4" } }, "@histoire/shared": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/shared/-/shared-0.11.9.tgz", - "integrity": "sha512-8pcWynhaUWWZTIilmu21TbqnB/z5uiwhyceEWknulbSG0mF4DQgchxQm3umgOzMwl1gw3556RwQyBdc9F7KsJA==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/shared/-/shared-0.12.4.tgz", + "integrity": "sha512-dVSrfsEu17KczjyHVW8yPvSlguhEV7hWjDSwsjlUrRdbe7hwztX4GbbcCIWvG5hy5gASpKpQq6FJa5uTs0HOsg==", "requires": { "@types/fs-extra": "^9.0.13", "@types/markdown-it": "^12.2.3", @@ -5823,9 +5967,9 @@ } }, "@histoire/vendors": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/@histoire/vendors/-/vendors-0.11.9.tgz", - "integrity": "sha512-PnlPB1dAgLRcA+dSGPB/27zewREHCmO4nUCOQWu7rFNMO1wfB2EOn53hxkkBgzej3toa1u1knIRpHzQRSaUSUw==" + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/@histoire/vendors/-/vendors-0.12.4.tgz", + "integrity": "sha512-NIi0krz19iSjPHhIsGLrW4Q3tvrCLfvCet2kFA8crKPX6inaMZm8g/+pDQBqlh9DRCXVbxV5RWQKcumrIFbrmw==" }, "@humanwhocodes/config-array": { "version": "0.11.8", @@ -6054,9 +6198,9 @@ "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==" }, "@types/node": { - "version": "18.11.17", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.17.tgz", - "integrity": "sha512-HJSUJmni4BeDHhfzn6nF0sVmd1SMezP7/4F0Lq+aXzmp2xm9O7WXrUtHW/CHlYVtZUbByEvWidHqRtcJXGF2Ng==" + "version": "18.11.18", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.18.tgz", + "integrity": "sha512-DHQpWGjyQKSHj3ebjFI/wRKcqQcdR+MoFBygntYOZytCqNfkd2ZC4ARDJ2DQqhjH5p85Nnd3jhUJIXrszFX/JA==" }, "@vitejs/plugin-vue": { "version": "3.2.0", @@ -6272,10 +6416,15 @@ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, + "available-typed-arrays": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", + "integrity": "sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==" + }, "axios": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.1.tgz", - "integrity": "sha512-I88cFiGu9ryt/tfVEi4kX2SITsvDddTajXTOFmt2uK1ZVA8LytjtdeyefdQWEf5PU8w+4SSJDoYnggflB5tW4A==", + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.2.2.tgz", + "integrity": "sha512-bz/J4gS2S3I7mpN/YZfGFTqhXTYzRho8Ay38w2otuuDR322KzFIWm/4W2K6gIwvWaws5n+mnb7D1lN9uD+QH6Q==", "requires": { "follow-redirects": "^1.15.0", "form-data": "^4.0.0", @@ -6336,6 +6485,11 @@ "update-browserslist-db": "^1.0.9" } }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==" + }, "call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -6360,9 +6514,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001439", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001439.tgz", - "integrity": "sha512-1MgUzEkoMO6gKfXflStpYgZDlFM7M/ck/bgfVCACO5vnAf0fXoNVHdWtqGU+MYca+4bL9Z5bpOVmR33cWW9G2A==" + "version": "1.0.30001442", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001442.tgz", + "integrity": "sha512-239m03Pqy0hwxYPYR5JwOIxRJfLTWtle9FV8zosfV5pHg+/51uD4nxcUlM8+mWWGfwKtt8lJNHnD3cWw9VZ6ow==" }, "canvas-confetti": { "version": "1.6.0", @@ -6674,26 +6828,31 @@ "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==" }, "es-abstract": { - "version": "1.20.5", - "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.20.5.tgz", - "integrity": "sha512-7h8MM2EQhsCA7pU/Nv78qOXFpD8Rhqd12gYiSJVkrH9+e8VuA8JlPJK/hQjjlLv6pJvx/z1iRFKzYb0XT/RuAQ==", + "version": "1.21.0", + "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.21.0.tgz", + "integrity": "sha512-GUGtW7eXQay0c+PRq0sGIKSdaBorfVqsCMhGHo4elP7YVqZu9nCZS4UkK4gv71gOWNMra/PaSKD3ao1oWExO0g==", "requires": { "call-bind": "^1.0.2", + "es-set-tostringtag": "^2.0.0", "es-to-primitive": "^1.2.1", "function-bind": "^1.1.1", "function.prototype.name": "^1.1.5", "get-intrinsic": "^1.1.3", "get-symbol-description": "^1.0.0", + "globalthis": "^1.0.3", "gopd": "^1.0.1", "has": "^1.0.3", "has-property-descriptors": "^1.0.0", + "has-proto": "^1.0.1", "has-symbols": "^1.0.3", - "internal-slot": "^1.0.3", + "internal-slot": "^1.0.4", + "is-array-buffer": "^3.0.0", "is-callable": "^1.2.7", "is-negative-zero": "^2.0.2", "is-regex": "^1.1.4", "is-shared-array-buffer": "^1.0.2", "is-string": "^1.0.7", + "is-typed-array": "^1.1.10", "is-weakref": "^1.0.2", "object-inspect": "^1.12.2", "object-keys": "^1.1.1", @@ -6702,7 +6861,19 @@ "safe-regex-test": "^1.0.0", "string.prototype.trimend": "^1.0.6", "string.prototype.trimstart": "^1.0.6", - "unbox-primitive": "^1.0.2" + "typed-array-length": "^1.0.4", + "unbox-primitive": "^1.0.2", + "which-typed-array": "^1.1.9" + } + }, + "es-set-tostringtag": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.0.1.tgz", + "integrity": "sha512-g3OMbtlwY3QewlqAiMLI47KywjWZoEytKr8pf6iTC8uJq5bIAH52Z9pnQ8pVL6whrCto53JZDuUIsifGeLorTg==", + "requires": { + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "has-tostringtag": "^1.0.0" } }, "es-shim-unscopables": { @@ -6937,11 +7108,11 @@ } }, "eslint": { - "version": "8.30.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.30.0.tgz", - "integrity": "sha512-MGADB39QqYuzEGov+F/qb18r4i7DohCDOfatHaxI2iGlPuC65bwG2gxgO+7DkyL38dRFaRH7RaRAgU6JKL9rMQ==", + "version": "8.31.0", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.31.0.tgz", + "integrity": "sha512-0tQQEVdmPZ1UtUKXjX7EMm9BlgJ08G90IhWh0PKDCb3ZLsgAOHI8fYSIzYVZej92zsgq+ft0FGsxhJ3xo2tbuA==", "requires": { - "@eslint/eslintrc": "^1.4.0", + "@eslint/eslintrc": "^1.4.1", "@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", @@ -7049,9 +7220,9 @@ } }, "eslint-config-prettier": { - "version": "8.5.0", - "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz", - "integrity": "sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q==", + "version": "8.6.0", + "resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz", + "integrity": "sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA==", "requires": {} }, "eslint-import-resolver-node": { @@ -7214,6 +7385,14 @@ "xml-name-validator": "^4.0.0" }, "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, "semver": { "version": "7.3.8", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", @@ -7221,6 +7400,11 @@ "requires": { "lru-cache": "^6.0.0" } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" } } }, @@ -7340,9 +7524,9 @@ "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==" }, "fastq": { - "version": "1.14.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.14.0.tgz", - "integrity": "sha512-eR2D+V9/ExcbF9ls441yIuN6TI2ED1Y2ZcA5BmMtJsOkWOFRJQ0Jt0g1UwqXJJVAb+V+umH5Dfr8oh4EVP7VVg==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.15.0.tgz", + "integrity": "sha512-wBrocU2LCXXa+lWBt8RoIRD89Fi8OdABODa/kEnyeyjS5aZO5/GNvI5sEINADqP/h8M29UHTHUb53sUu5Ihqdw==", "requires": { "reusify": "^1.0.4" } @@ -7425,6 +7609,14 @@ "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" }, + "for-each": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", + "integrity": "sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw==", + "requires": { + "is-callable": "^1.1.3" + } + }, "form-data": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", @@ -7532,6 +7724,14 @@ "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" }, + "globalthis": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.3.tgz", + "integrity": "sha512-sFdI5LyBiNTHjRd7cGPWapiHWMOXKyuBNX/cWJ3NfzrZQVa8GI/8cofCl74AOVqq9W5kNmguTIzJ/1s2gyI9wA==", + "requires": { + "define-properties": "^1.1.3" + } + }, "globby": { "version": "13.1.3", "resolved": "https://registry.npmjs.org/globby/-/globby-13.1.3.tgz", @@ -7618,6 +7818,11 @@ "get-intrinsic": "^1.1.1" } }, + "has-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz", + "integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==" + }, "has-symbols": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", @@ -7641,14 +7846,14 @@ } }, "histoire": { - "version": "0.11.9", - "resolved": "https://registry.npmjs.org/histoire/-/histoire-0.11.9.tgz", - "integrity": "sha512-sN4XAA3KIMXY4dUtQM9lytXSIkAW0shXfoyVuKBe3eBSW+TsZdp435yNc64E1YsD24HTZH3+elAI8Xkcaq3X+A==", + "version": "0.12.4", + "resolved": "https://registry.npmjs.org/histoire/-/histoire-0.12.4.tgz", + "integrity": "sha512-q20Zncdh+GI2jDXiry1JS1DrN5qprKpl452AnS/P06Vgowqf79aG85E0XmhNpX2r8HI2HmIntwZ5FLd6hxYobQ==", "requires": { - "@histoire/app": "^0.11.9", - "@histoire/controls": "^0.11.9", - "@histoire/shared": "^0.11.9", - "@histoire/vendors": "^0.11.9", + "@histoire/app": "^0.12.4", + "@histoire/controls": "^0.12.4", + "@histoire/shared": "^0.12.4", + "@histoire/vendors": "^0.12.4", "@types/flexsearch": "^0.7.3", "@types/markdown-it": "^12.2.3", "birpc": "^0.1.1", @@ -7672,10 +7877,10 @@ "pathe": "^0.2.0", "picocolors": "^1.0.0", "sade": "^1.8.1", - "shiki": "0.11.1", + "shiki-es": "^0.1.2", "sirv": "^2.0.2", "tinypool": "^0.1.2", - "vite-node": "0.23.4" + "vite-node": "0.26.0" } }, "html-encoding-sniffer": { @@ -7714,9 +7919,9 @@ } }, "ignore": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.1.tgz", - "integrity": "sha512-d2qQLzTJ9WxQftPAuEQpSPmKqzxePjzVbpAVv62AQ64NTL+wR4JkrVqR/LqFsFEUsHDAiId52mJteHDFuDkElA==" + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz", + "integrity": "sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ==" }, "import-fresh": { "version": "3.3.0", @@ -7756,6 +7961,16 @@ "side-channel": "^1.0.4" } }, + "is-array-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz", + "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==", + "requires": { + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-typed-array": "^1.1.10" + } + }, "is-bigint": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", @@ -7891,6 +8106,18 @@ "has-symbols": "^1.0.2" } }, + "is-typed-array": { + "version": "1.1.10", + "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.10.tgz", + "integrity": "sha512-PJqgEHiWZvMpaFZ3uTc8kHPM4+4ADTlDniuQL7cU/UDA0Ql7F70yGfHph3cLNe+c9toaigv+DFzTJKhc2CtO6A==", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0" + } + }, "is-weakref": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/is-weakref/-/is-weakref-1.0.2.tgz", @@ -7913,9 +8140,9 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==" }, "jiti": { - "version": "1.16.0", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.16.0.tgz", - "integrity": "sha512-L3BJStEf5NAqNuzrpfbN71dp43mYIcBUlCRea/vdyv5dW/AYa1d4bpelko4SHdY3I6eN9Wzyasxirj1/vv5kmg==" + "version": "1.16.1", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.16.1.tgz", + "integrity": "sha512-kJUp4Bj44uTaZAwG6R2/GjbodOWHULn8Swue0B7tY8v5BpTkUvDR+zBM5tsbC4x/jCeYDZ+mAdrUIScwIo4oPw==" }, "js-sdsl": { "version": "4.2.0", @@ -7984,9 +8211,9 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==" }, "json5": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.2.tgz", - "integrity": "sha512-46Tk9JiOL2z7ytNQWFLpj99RZkVgeHf87yGQKsIkaPz1qSH9UczKH1rO7K3wgRselo0tYMUNfecYpm/p1vC7tQ==" + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==" }, "jsonc-parser": { "version": "3.2.0", @@ -8051,11 +8278,11 @@ } }, "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "requires": { - "yallist": "^4.0.0" + "yallist": "^3.0.2" } }, "magic-string": { @@ -8079,9 +8306,9 @@ } }, "markdown-it-anchor": { - "version": "8.6.5", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.5.tgz", - "integrity": "sha512-PI1qEHHkTNWT+X6Ip9w+paonfIQ+QZP9sCeMYi47oqhH+EsW8CrJ8J7CzV19QVOj6il8ATGbK2nTECj22ZHGvQ==", + "version": "8.6.6", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.6.tgz", + "integrity": "sha512-jRW30YGywD2ESXDc+l17AiritL0uVaSnWsb26f+68qaW9zgbIIr1f4v2Nsvc0+s0Z2N3uX6t/yAw7BwCQ1wMsA==", "requires": {} }, "markdown-it-attrs": { @@ -8154,9 +8381,9 @@ "integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==" }, "mlly": { - "version": "0.5.17", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-0.5.17.tgz", - "integrity": "sha512-Rn+ai4G+CQXptDFSRNnChEgNr+xAEauYhwRvpPl/UHStTlgkIftplgJRsA2OXPuoUn86K4XAjB26+x5CEvVb6A==", + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.0.0.tgz", + "integrity": "sha512-QL108Hwt+u9bXdWgOI0dhzZfACovn5Aen4Xvc8Jasd9ouRH4NjnrXEiyP3nVvJo91zPlYjVRckta0Nt2zfoR6g==", "requires": { "acorn": "^8.8.1", "pathe": "^1.0.0", @@ -8419,17 +8646,6 @@ "pathe": "^1.0.0" }, "dependencies": { - "mlly": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mlly/-/mlly-1.0.0.tgz", - "integrity": "sha512-QL108Hwt+u9bXdWgOI0dhzZfACovn5Aen4Xvc8Jasd9ouRH4NjnrXEiyP3nVvJo91zPlYjVRckta0Nt2zfoR6g==", - "requires": { - "acorn": "^8.8.1", - "pathe": "^1.0.0", - "pkg-types": "^1.0.0", - "ufo": "^1.0.0" - } - }, "pathe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/pathe/-/pathe-1.0.0.tgz", @@ -8438,9 +8654,9 @@ } }, "postcss": { - "version": "8.4.20", - "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.20.tgz", - "integrity": "sha512-6Q04AXR1212bXr5fh03u8aAwbLxAQNGQ/Q1LNa0VfOI06ZAlhPHtQvE4OIdpj4kLThXilalPnmDSOD65DcHt+g==", + "version": "8.4.21", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.21.tgz", + "integrity": "sha512-tP7u/Sn/dVxK2NnruI4H9BG+x+Wxz6oeZ1cJ8P6G/PZY0IKk4k/63TDsQf2kQq3+qoJeLm2kIBUNlZe3zgb4Zg==", "requires": { "nanoid": "^3.3.4", "picocolors": "^1.0.0", @@ -8462,9 +8678,9 @@ "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==" }, "prettier": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.1.tgz", - "integrity": "sha512-lqGoSJBQNJidqCHE80vqZJHWHRFoNYsSpP9AjFhlhi9ODCJA541svILes/+/1GM3VaL/abZi7cpFzOpdR9UPKg==" + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.2.tgz", + "integrity": "sha512-BtRV9BcncDyI2tsuS19zzhzoxD8Dh8LiCx7j7tHzrkz8GFXAexeWFdi22mjE1d16dftH2qNaytVxqiRTGlMfpw==" }, "prettier-linter-helpers": { "version": "1.0.0", @@ -8582,20 +8798,21 @@ } }, "rollup": { - "version": "3.7.5", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.7.5.tgz", - "integrity": "sha512-z0ZbqHBtS/et2EEUKMrAl2CoSdwN7ZPzL17UMiKN9RjjqHShTlv7F9J6ZJZJNREYjBh3TvBrdfjkFDIXFNeuiQ==", + "version": "3.9.1", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-3.9.1.tgz", + "integrity": "sha512-GswCYHXftN8ZKGVgQhTFUJB/NBXxrRGgO2NCy6E8s1rwEJ4Q9/VttNqcYfEvx4dTo4j58YqdC3OVztPzlKSX8w==", "peer": true, "requires": { "fsevents": "~2.3.2" } }, "rollup-plugin-visualizer": { - "version": "5.8.3", - "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.8.3.tgz", - "integrity": "sha512-QGJk4Bqe4AOat5AjipOh8esZH1nck5X2KFpf4VytUdSUuuuSwvIQZjMGgjcxe/zXexltqaXp5Vx1V3LmnQH15Q==", + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/rollup-plugin-visualizer/-/rollup-plugin-visualizer-5.9.0.tgz", + "integrity": "sha512-bbDOv47+Bw4C/cgs0czZqfm8L82xOZssk4ayZjG40y9zbXclNk7YikrZTDao6p7+HDiGxrN0b65SgZiVm9k1Cg==", "requires": { "open": "^8.4.0", + "picomatch": "^2.3.1", "source-map": "^0.7.4", "yargs": "^17.5.1" }, @@ -8683,16 +8900,6 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==" }, - "shiki": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.11.1.tgz", - "integrity": "sha512-EugY9VASFuDqOexOgXR18ZV+TbFrQHeCpEYaXamO+SZlsnT/2LxuLBX25GGtIrwaEVFXUAbUQ601SWE2rMwWHA==", - "requires": { - "jsonc-parser": "^3.0.0", - "vscode-oniguruma": "^1.6.1", - "vscode-textmate": "^6.0.0" - } - }, "shiki-es": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/shiki-es/-/shiki-es-0.1.2.tgz", @@ -8747,6 +8954,15 @@ "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz", "integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==" }, + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "sourcemap-codec": { "version": "1.4.8", "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", @@ -8912,9 +9128,9 @@ }, "dependencies": { "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz", + "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==", "requires": { "minimist": "^1.2.0" } @@ -8939,6 +9155,16 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==" }, + "typed-array-length": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/typed-array-length/-/typed-array-length-1.0.4.tgz", + "integrity": "sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==", + "requires": { + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "is-typed-array": "^1.1.9" + } + }, "uc.micro": { "version": "1.0.6", "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", @@ -9045,14 +9271,16 @@ } }, "vite-node": { - "version": "0.23.4", - "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.23.4.tgz", - "integrity": "sha512-8VuDGwTWIvwPYcbw8ZycMlwAwqCmqZfLdFrDK75+o+6bWYpede58k6AAXN9ioU+icW82V4u1MzkxLVhhIoQ9xA==", + "version": "0.26.0", + "resolved": "https://registry.npmjs.org/vite-node/-/vite-node-0.26.0.tgz", + "integrity": "sha512-nLtHWCv6reONl1oFsKhQ/LT7n3UNLpvVARAJlmGrQV6qSElht/9AdN41Pa+WSkw2Winh682UzM0Yw0GNlfqejw==", "requires": { "debug": "^4.3.4", - "mlly": "^0.5.14", + "mlly": "^1.0.0", "pathe": "^0.2.0", - "vite": "^2.9.12 || ^3.0.0-0" + "source-map": "^0.6.1", + "source-map-support": "^0.5.21", + "vite": "^3.0.0 || ^4.0.0" } }, "vite-plugin-toml": { @@ -9064,16 +9292,6 @@ "toml-eslint-parser": "^0.4.0" } }, - "vscode-oniguruma": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.7.0.tgz", - "integrity": "sha512-L9WMGRfrjOhgHSdOYgCt/yRMsXzLDJSL7BPrOZt73gU0iWO4mpqzqQzOz5srxqTvMBaR0XZTSrVWo4j55Rc6cA==" - }, - "vscode-textmate": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-6.0.0.tgz", - "integrity": "sha512-gu73tuZfJgu+mvCSy4UZwd2JXykjK9zAZsfmDeut5dx/1a7FeTk0XwJsSuqQn+cuMCGVbIBfl+s53X4T19DnzQ==" - }, "vue": { "version": "3.2.45", "resolved": "https://registry.npmjs.org/vue/-/vue-3.2.45.tgz", @@ -9100,6 +9318,14 @@ "semver": "^7.3.6" }, "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "requires": { + "yallist": "^4.0.0" + } + }, "semver": { "version": "7.3.8", "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", @@ -9107,6 +9333,11 @@ "requires": { "lru-cache": "^6.0.0" } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" } } }, @@ -9200,6 +9431,19 @@ "is-symbol": "^1.0.3" } }, + "which-typed-array": { + "version": "1.1.9", + "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", + "integrity": "sha512-w9c4xkx6mPidwp7180ckYWfMmvxpjlZuIudNtDf4N/tTAUB8VJbX25qZoAsrtGuYNnGw3pa0AXgbGKRB8/EceA==", + "requires": { + "available-typed-arrays": "^1.0.5", + "call-bind": "^1.0.2", + "for-each": "^0.3.3", + "gopd": "^1.0.1", + "has-tostringtag": "^1.0.0", + "is-typed-array": "^1.1.10" + } + }, "word-wrap": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", @@ -9244,9 +9488,9 @@ "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" }, "ws": { - "version": "8.11.0", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.11.0.tgz", - "integrity": "sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg==", + "version": "8.12.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.12.0.tgz", + "integrity": "sha512-kU62emKIdKVeEIOIKVegvqpXMSTAMLJozpHZaJNDYqBjzlSYXQGviYwN1osDLJ9av68qHd4a2oSjd7yD4pacig==", "requires": {} }, "xml-name-validator": { @@ -9265,9 +9509,9 @@ "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" }, "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==" }, "yargs": { "version": "17.6.2", diff --git a/package.json b/package.json index 2d4c5b377..27fb2de0f 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "dependencies": { "@babel/core": "^7.17.2", "@h2d2/shopicons": "^1.2.0", - "@histoire/plugin-vue": "^0.11.6", + "@histoire/plugin-vue": "^0.12.4", "@popperjs/core": "^2.11.5", "@vitejs/plugin-vue": "^3.0.1", "@vue/compiler-sfc": "^3.2.30", @@ -28,7 +28,7 @@ "eslint-plugin-prettier": "^4.0.0", "eslint-plugin-promise": "^6.0.0", "eslint-plugin-vue": "^9.3.0", - "histoire": "^0.11.6", + "histoire": "^0.12.4", "markty-toml": "^0.1.1", "prettier": "^2.5.1", "prettier-plugin-toml": "^0.3.1",