Files
QIDI_PLUS4/fluidd/assets/index-4UonB8GV.js
2025-07-29 18:39:58 +08:00

275 lines
1.7 MiB
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./setupMonaco-CF2GrFdn.js","./setupMonaco-qJs8Ougx.css"])))=>i.map(i=>d[i]);
var XP=Object.defineProperty;var QP=(r,e,t)=>e in r?XP(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var f=(r,e,t)=>QP(r,typeof e!="symbol"?e+"":e,t);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))s(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function t(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(n){if(n.ep)return;n.ep=!0;const i=t(n);fetch(n.href,i)}})();const JP="modulepreload",eL=function(r,e){return new URL(r,e).href},q2={},Ye=function(e,t,s){let n=Promise.resolve();if(t&&t.length>0){const i=document.getElementsByTagName("link"),a=document.querySelector("meta[property=csp-nonce]"),o=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));n=Promise.all(t.map(l=>{if(l=eL(l,s),l in q2)return;q2[l]=!0;const c=l.endsWith(".css"),u=c?'[rel="stylesheet"]':"";if(!!s)for(let h=i.length-1;h>=0;h--){const m=i[h];if(m.href===l&&(!c||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${u}`))return;const p=document.createElement("link");if(p.rel=c?"stylesheet":JP,c||(p.as="script",p.crossOrigin=""),p.href=l,o&&p.setAttribute("nonce",o),document.head.appendChild(p),c)return new Promise((h,m)=>{p.addEventListener("load",h),p.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${l}`)))})}))}return n.then(()=>e()).catch(i=>{const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i})};var tL={};/*!
* Vue.js v2.7.16
* (c) 2014-2023 Evan You
* Released under the MIT License.
*/var mr=Object.freeze({}),ze=Array.isArray;function Be(r){return r==null}function z(r){return r!=null}function Ct(r){return r===!0}function rL(r){return r===!1}function Qu(r){return typeof r=="string"||typeof r=="number"||typeof r=="symbol"||typeof r=="boolean"}function ot(r){return typeof r=="function"}function yr(r){return r!==null&&typeof r=="object"}var ay=Object.prototype.toString;function Lr(r){return ay.call(r)==="[object Object]"}function sL(r){return ay.call(r)==="[object RegExp]"}function Ix(r){var e=parseFloat(String(r));return e>=0&&Math.floor(e)===e&&isFinite(r)}function Wg(r){return z(r)&&typeof r.then=="function"&&typeof r.catch=="function"}function nL(r){return r==null?"":Array.isArray(r)||Lr(r)&&r.toString===ay?JSON.stringify(r,iL,2):String(r)}function iL(r,e){return e&&e.__v_isRef?e.value:e}function eu(r){var e=parseFloat(r);return isNaN(e)?r:e}function Qs(r,e){for(var t=Object.create(null),s=r.split(","),n=0;n<s.length;n++)t[s[n]]=!0;return e?function(i){return t[i.toLowerCase()]}:function(i){return t[i]}}Qs("slot,component",!0);var aL=Qs("key,ref,slot,slot-scope,is");function Ii(r,e){var t=r.length;if(t){if(e===r[t-1]){r.length=t-1;return}var s=r.indexOf(e);if(s>-1)return r.splice(s,1)}}var oL=Object.prototype.hasOwnProperty;function Pr(r,e){return oL.call(r,e)}function Wa(r){var e=Object.create(null);return function(s){var n=e[s];return n||(e[s]=r(s))}}var lL=/-(\w)/g,Sa=Wa(function(r){return r.replace(lL,function(e,t){return t?t.toUpperCase():""})}),cL=Wa(function(r){return r.charAt(0).toUpperCase()+r.slice(1)}),uL=/\B([A-Z])/g,Ju=Wa(function(r){return r.replace(uL,"-$1").toLowerCase()});function dL(r,e){function t(s){var n=arguments.length;return n?n>1?r.apply(e,arguments):r.call(e,s):r.call(e)}return t._length=r.length,t}function pL(r,e){return r.bind(e)}var Fx=Function.prototype.bind?pL:dL;function Gg(r,e){e=e||0;for(var t=r.length-e,s=new Array(t);t--;)s[t]=r[t+e];return s}function gt(r,e){for(var t in e)r[t]=e[t];return r}function Hx(r){for(var e={},t=0;t<r.length;t++)r[t]&&gt(e,r[t]);return e}function St(r,e,t){}var Jd=function(r,e,t){return!1},Bx=function(r){return r};function wa(r,e){if(r===e)return!0;var t=yr(r),s=yr(e);if(t&&s)try{var n=Array.isArray(r),i=Array.isArray(e);if(n&&i)return r.length===e.length&&r.every(function(l,c){return wa(l,e[c])});if(r instanceof Date&&e instanceof Date)return r.getTime()===e.getTime();if(!n&&!i){var a=Object.keys(r),o=Object.keys(e);return a.length===o.length&&a.every(function(l){return wa(r[l],e[l])})}else return!1}catch{return!1}else return!t&&!s?String(r)===String(e):!1}function jx(r,e){for(var t=0;t<r.length;t++)if(wa(r[t],e))return t;return-1}function lh(r){var e=!1;return function(){e||(e=!0,r.apply(this,arguments))}}function qg(r,e){return r===e?r===0&&1/r!==1/e:r===r||e===e}var Z2="data-server-rendered",sm=["component","directive","filter"],Vx=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"],bs={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:Jd,isReservedAttr:Jd,isUnknownElement:Jd,getTagNamespace:St,parsePlatformTagName:Bx,mustUseProp:Jd,async:!0,_lifecycleHooks:Vx},hL=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function Nx(r){var e=(r+"").charCodeAt(0);return e===36||e===95}function It(r,e,t,s){Object.defineProperty(r,e,{value:t,enumerable:!!s,writable:!0,configurable:!0})}var fL=new RegExp("[^".concat(hL.source,".$_\\d]"));function mL(r){if(!fL.test(r)){var e=r.split(".");return function(t){for(var s=0;s<e.length;s++){if(!t)return;t=t[e[s]]}return t}}}var gL="__proto__"in{},Gr=typeof window<"u",Ss=Gr&&window.navigator.userAgent.toLowerCase(),yl=Ss&&/msie|trident/.test(Ss),bl=Ss&&Ss.indexOf("msie 9.0")>0,zx=Ss&&Ss.indexOf("edge/")>0;Ss&&Ss.indexOf("android")>0;var vL=Ss&&/iphone|ipad|ipod|ios/.test(Ss),Y2=Ss&&Ss.match(/firefox\/(\d+)/),Zg={}.watch,Ux=!1;if(Gr)try{var K2={};Object.defineProperty(K2,"passive",{get:function(){Ux=!0}}),window.addEventListener("test-passive",null,K2)}catch{}var ep,Fi=function(){return ep===void 0&&(!Gr&&typeof global<"u"?ep=global.process&&tL.VUE_ENV==="server":ep=!1),ep},ch=Gr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function Ho(r){return typeof r=="function"&&/native code/.test(r.toString())}var ed=typeof Symbol<"u"&&Ho(Symbol)&&typeof Reflect<"u"&&Ho(Reflect.ownKeys),tu;typeof Set<"u"&&Ho(Set)?tu=Set:tu=function(){function r(){this.set=Object.create(null)}return r.prototype.has=function(e){return this.set[e]===!0},r.prototype.add=function(e){this.set[e]=!0},r.prototype.clear=function(){this.set=Object.create(null)},r}();var kt=null;function _L(){return kt&&{proxy:kt}}function Ci(r){r===void 0&&(r=null),r||kt&&kt._scope.off(),kt=r,r&&r._scope.on()}var is=function(){function r(e,t,s,n,i,a,o,l){this.tag=e,this.data=t,this.children=s,this.text=n,this.elm=i,this.ns=void 0,this.context=a,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=o,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=l,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(r.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),r}(),ma=function(r){r===void 0&&(r="");var e=new is;return e.text=r,e.isComment=!0,e};function Oo(r){return new is(void 0,void 0,void 0,String(r))}function Yg(r){var e=new is(r.tag,r.data,r.children&&r.children.slice(),r.text,r.elm,r.context,r.componentOptions,r.asyncFactory);return e.ns=r.ns,e.isStatic=r.isStatic,e.key=r.key,e.isComment=r.isComment,e.fnContext=r.fnContext,e.fnOptions=r.fnOptions,e.fnScopeId=r.fnScopeId,e.asyncMeta=r.asyncMeta,e.isCloned=!0,e}var yL=0,Rp=[],bL=function(){for(var r=0;r<Rp.length;r++){var e=Rp[r];e.subs=e.subs.filter(function(t){return t}),e._pending=!1}Rp.length=0},vn=function(){function r(){this._pending=!1,this.id=yL++,this.subs=[]}return r.prototype.addSub=function(e){this.subs.push(e)},r.prototype.removeSub=function(e){this.subs[this.subs.indexOf(e)]=null,this._pending||(this._pending=!0,Rp.push(this))},r.prototype.depend=function(e){r.target&&r.target.addDep(this)},r.prototype.notify=function(e){for(var t=this.subs.filter(function(a){return a}),s=0,n=t.length;s<n;s++){var i=t[s];i.update()}},r}();vn.target=null;var Ip=[];function $l(r){Ip.push(r),vn.target=r}function Sl(){Ip.pop(),vn.target=Ip[Ip.length-1]}var Wx=Array.prototype,uh=Object.create(Wx),$L=["push","pop","shift","unshift","splice","sort","reverse"];$L.forEach(function(r){var e=Wx[r];It(uh,r,function(){for(var s=[],n=0;n<arguments.length;n++)s[n]=arguments[n];var i=e.apply(this,s),a=this.__ob__,o;switch(r){case"push":case"unshift":o=s;break;case"splice":o=s.slice(2);break}return o&&a.observeArray(o),a.dep.notify(),i})});var X2=Object.getOwnPropertyNames(uh),Gx={},oy=!0;function Pi(r){oy=r}var SL={notify:St,depend:St,addSub:St,removeSub:St},Q2=function(){function r(e,t,s){if(t===void 0&&(t=!1),s===void 0&&(s=!1),this.value=e,this.shallow=t,this.mock=s,this.dep=s?SL:new vn,this.vmCount=0,It(e,"__ob__",this),ze(e)){if(!s)if(gL)e.__proto__=uh;else for(var n=0,i=X2.length;n<i;n++){var a=X2[n];It(e,a,uh[a])}t||this.observeArray(e)}else for(var o=Object.keys(e),n=0;n<o.length;n++){var a=o[n];Li(e,a,Gx,void 0,t,s)}}return r.prototype.observeArray=function(e){for(var t=0,s=e.length;t<s;t++)Hn(e[t],!1,this.mock)},r}();function Hn(r,e,t){if(r&&Pr(r,"__ob__")&&r.__ob__ instanceof Q2)return r.__ob__;if(oy&&(t||!Fi())&&(ze(r)||Lr(r))&&Object.isExtensible(r)&&!r.__v_skip&&!or(r)&&!(r instanceof is))return new Q2(r,e,t)}function Li(r,e,t,s,n,i,a){a===void 0&&(a=!1);var o=new vn,l=Object.getOwnPropertyDescriptor(r,e);if(!(l&&l.configurable===!1)){var c=l&&l.get,u=l&&l.set;(!c||u)&&(t===Gx||arguments.length===2)&&(t=r[e]);var d=n?t&&t.__ob__:Hn(t,!1,i);return Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:function(){var h=c?c.call(r):t;return vn.target&&(o.depend(),d&&(d.dep.depend(),ze(h)&&qx(h))),or(h)&&!n?h.value:h},set:function(h){var m=c?c.call(r):t;if(qg(m,h)){if(u)u.call(r,h);else{if(c)return;if(!n&&or(m)&&!or(h)){m.value=h;return}else t=h}d=n?h&&h.__ob__:Hn(h,!1,i),o.notify()}}}),o}}function nm(r,e,t){if(!Ga(r)){var s=r.__ob__;return ze(r)&&Ix(e)?(r.length=Math.max(r.length,e),r.splice(e,1,t),s&&!s.shallow&&s.mock&&Hn(t,!1,!0),t):e in r&&!(e in Object.prototype)?(r[e]=t,t):r._isVue||s&&s.vmCount?t:s?(Li(s.value,e,t,void 0,s.shallow,s.mock),s.dep.notify(),t):(r[e]=t,t)}}function ly(r,e){if(ze(r)&&Ix(e)){r.splice(e,1);return}var t=r.__ob__;r._isVue||t&&t.vmCount||Ga(r)||Pr(r,e)&&(delete r[e],t&&t.dep.notify())}function qx(r){for(var e=void 0,t=0,s=r.length;t<s;t++)e=r[t],e&&e.__ob__&&e.__ob__.dep.depend(),ze(e)&&qx(e)}function wL(r){return Zx(r,!1),r}function cy(r){return Zx(r,!0),It(r,"__v_isShallow",!0),r}function Zx(r,e){Ga(r)||Hn(r,e,Fi())}function ga(r){return Ga(r)?ga(r.__v_raw):!!(r&&r.__ob__)}function dh(r){return!!(r&&r.__v_isShallow)}function Ga(r){return!!(r&&r.__v_isReadonly)}function xL(r){return ga(r)||Ga(r)}function Yx(r){var e=r&&r.__v_raw;return e?Yx(e):r}function CL(r){return Object.isExtensible(r)&&It(r,"__v_skip",!0),r}var td="__v_isRef";function or(r){return!!(r&&r.__v_isRef===!0)}function PL(r){return Kx(r,!1)}function LL(r){return Kx(r,!0)}function Kx(r,e){if(or(r))return r;var t={};return It(t,td,!0),It(t,"__v_isShallow",e),It(t,"dep",Li(t,"value",r,null,e,Fi())),t}function AL(r){r.dep&&r.dep.notify()}function EL(r){return or(r)?r.value:r}function OL(r){if(ga(r))return r;for(var e={},t=Object.keys(r),s=0;s<t.length;s++)ph(e,r,t[s]);return e}function ph(r,e,t){Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:function(){var s=e[t];if(or(s))return s.value;var n=s&&s.__ob__;return n&&n.dep.depend(),s},set:function(s){var n=e[t];or(n)&&!or(s)?n.value=s:e[t]=s}})}function TL(r){var e=new vn,t=r(function(){e.depend()},function(){e.notify()}),s=t.get,n=t.set,i={get value(){return s()},set value(a){n(a)}};return It(i,td,!0),i}function kL(r){var e=ze(r)?new Array(r.length):{};for(var t in r)e[t]=Xx(r,t);return e}function Xx(r,e,t){var s=r[e];if(or(s))return s;var n={get value(){var i=r[e];return i===void 0?t:i},set value(i){r[e]=i}};return It(n,td,!0),n}var DL="__v_rawToReadonly",ML="__v_rawToShallowReadonly";function Qx(r){return Jx(r,!1)}function Jx(r,e){if(!Lr(r)||Ga(r))return r;var t=e?ML:DL,s=r[t];if(s)return s;var n=Object.create(Object.getPrototypeOf(r));It(r,t,n),It(n,"__v_isReadonly",!0),It(n,"__v_raw",r),or(r)&&It(n,td,!0),(e||dh(r))&&It(n,"__v_isShallow",!0);for(var i=Object.keys(r),a=0;a<i.length;a++)RL(n,r,i[a],e);return n}function RL(r,e,t,s){Object.defineProperty(r,t,{enumerable:!0,configurable:!0,get:function(){var n=e[t];return s||!Lr(n)?n:Qx(n)},set:function(){}})}function IL(r){return Jx(r,!0)}function FL(r,e){var t,s,n=ot(r);n?(t=r,s=St):(t=r.get,s=r.set);var i=Fi()?null:new rd(kt,t,St,{lazy:!0}),a={effect:i,get value(){return i?(i.dirty&&i.evaluate(),vn.target&&i.depend(),i.value):t()},set value(o){s(o)}};return It(a,td,!0),It(a,"__v_isReadonly",n),a}var im="watcher",J2="".concat(im," callback"),e$="".concat(im," getter"),HL="".concat(im," cleanup");function BL(r,e){return am(r,null,e)}function eC(r,e){return am(r,null,{flush:"post"})}function jL(r,e){return am(r,null,{flush:"sync"})}var t$={};function VL(r,e,t){return am(r,e,t)}function am(r,e,t){var s=t===void 0?mr:t,n=s.immediate,i=s.deep,a=s.flush,o=a===void 0?"pre":a;s.onTrack,s.onTrigger;var l=kt,c=function(C,x,S){S===void 0&&(S=null);var E=Bn(C,null,S,l,x);return i&&E&&E.__ob__&&E.__ob__.dep.depend(),E},u,d=!1,p=!1;if(or(r)?(u=function(){return r.value},d=dh(r)):ga(r)?(u=function(){return r.__ob__.dep.depend(),r},i=!0):ze(r)?(p=!0,d=r.some(function(C){return ga(C)||dh(C)}),u=function(){return r.map(function(C){if(or(C))return C.value;if(ga(C))return C.__ob__.dep.depend(),zo(C);if(ot(C))return c(C,e$)})}):ot(r)?e?u=function(){return c(r,e$)}:u=function(){if(!(l&&l._isDestroyed))return m&&m(),c(r,im,[g])}:u=St,e&&i){var h=u;u=function(){return zo(h())}}var m,g=function(C){m=v.onStop=function(){c(C,HL)}};if(Fi())return g=St,e?n&&c(e,J2,[u(),p?[]:void 0,g]):u(),St;var v=new rd(kt,u,St,{lazy:!0});v.noRecurse=!e;var y=p?[]:t$;return v.run=function(){if(v.active)if(e){var C=v.get();(i||d||(p?C.some(function(x,S){return qg(x,y[S])}):qg(C,y)))&&(m&&m(),c(e,J2,[C,y===t$?void 0:y,g]),y=C)}else v.get()},o==="sync"?v.update=v.run:o==="post"?(v.post=!0,v.update=function(){return rv(v)}):v.update=function(){if(l&&l===kt&&!l._isMounted){var C=l._preWatchers||(l._preWatchers=[]);C.indexOf(v)<0&&C.push(v)}else rv(v)},e?n?v.run():y=v.get():o==="post"&&l?l.$once("hook:mounted",function(){return v.get()}):v.get(),function(){v.teardown()}}var fr,uy=function(){function r(e){e===void 0&&(e=!1),this.detached=e,this.active=!0,this.effects=[],this.cleanups=[],this.parent=fr,!e&&fr&&(this.index=(fr.scopes||(fr.scopes=[])).push(this)-1)}return r.prototype.run=function(e){if(this.active){var t=fr;try{return fr=this,e()}finally{fr=t}}},r.prototype.on=function(){fr=this},r.prototype.off=function(){fr=this.parent},r.prototype.stop=function(e){if(this.active){var t=void 0,s=void 0;for(t=0,s=this.effects.length;t<s;t++)this.effects[t].teardown();for(t=0,s=this.cleanups.length;t<s;t++)this.cleanups[t]();if(this.scopes)for(t=0,s=this.scopes.length;t<s;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){var n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0,this.active=!1}},r}();function NL(r){return new uy(r)}function zL(r,e){e===void 0&&(e=fr),e&&e.active&&e.effects.push(r)}function tC(){return fr}function UL(r){fr&&fr.cleanups.push(r)}function WL(r,e){kt&&(rC(kt)[r]=e)}function rC(r){var e=r._provided,t=r.$parent&&r.$parent._provided;return t===e?r._provided=Object.create(t):e}function GL(r,e,t){t===void 0&&(t=!1);var s=kt;if(s){var n=s.$parent&&s.$parent._provided;if(n&&r in n)return n[r];if(arguments.length>1)return t&&ot(e)?e.call(s):e}}var r$=Wa(function(r){var e=r.charAt(0)==="&";r=e?r.slice(1):r;var t=r.charAt(0)==="~";r=t?r.slice(1):r;var s=r.charAt(0)==="!";return r=s?r.slice(1):r,{name:r,once:t,capture:s,passive:e}});function Kg(r,e){function t(){var s=t.fns;if(ze(s))for(var n=s.slice(),i=0;i<n.length;i++)Bn(n[i],null,arguments,e,"v-on handler");else return Bn(s,null,arguments,e,"v-on handler")}return t.fns=r,t}function sC(r,e,t,s,n,i){var a,o,l,c;for(a in r)o=r[a],l=e[a],c=r$(a),Be(o)||(Be(l)?(Be(o.fns)&&(o=r[a]=Kg(o,i)),Ct(c.once)&&(o=r[a]=n(c.name,o,c.capture)),t(c.name,o,c.capture,c.passive,c.params)):o!==l&&(l.fns=o,r[a]=l));for(a in e)Be(r[a])&&(c=r$(a),s(c.name,e[a],c.capture))}function fi(r,e,t){r instanceof is&&(r=r.data.hook||(r.data.hook={}));var s,n=r[e];function i(){t.apply(this,arguments),Ii(s.fns,i)}Be(n)?s=Kg([i]):z(n.fns)&&Ct(n.merged)?(s=n,s.fns.push(i)):s=Kg([n,i]),s.merged=!0,r[e]=s}function qL(r,e,t){var s=e.options.props;if(!Be(s)){var n={},i=r.attrs,a=r.props;if(z(i)||z(a))for(var o in s){var l=Ju(o);s$(n,a,o,l,!0)||s$(n,i,o,l,!1)}return n}}function s$(r,e,t,s,n){if(z(e)){if(Pr(e,t))return r[t]=e[t],n||delete e[t],!0;if(Pr(e,s))return r[t]=e[s],n||delete e[s],!0}return!1}function ZL(r){for(var e=0;e<r.length;e++)if(ze(r[e]))return Array.prototype.concat.apply([],r);return r}function dy(r){return Qu(r)?[Oo(r)]:ze(r)?nC(r):void 0}function ac(r){return z(r)&&z(r.text)&&rL(r.isComment)}function nC(r,e){var t=[],s,n,i,a;for(s=0;s<r.length;s++)n=r[s],!(Be(n)||typeof n=="boolean")&&(i=t.length-1,a=t[i],ze(n)?n.length>0&&(n=nC(n,"".concat(e||"","_").concat(s)),ac(n[0])&&ac(a)&&(t[i]=Oo(a.text+n[0].text),n.shift()),t.push.apply(t,n)):Qu(n)?ac(a)?t[i]=Oo(a.text+n):n!==""&&t.push(Oo(n)):ac(n)&&ac(a)?t[i]=Oo(a.text+n.text):(Ct(r._isVList)&&z(n.tag)&&Be(n.key)&&z(e)&&(n.key="__vlist".concat(e,"_").concat(s,"__")),t.push(n)));return t}function YL(r,e){var t=null,s,n,i,a;if(ze(r)||typeof r=="string")for(t=new Array(r.length),s=0,n=r.length;s<n;s++)t[s]=e(r[s],s);else if(typeof r=="number")for(t=new Array(r),s=0;s<r;s++)t[s]=e(s+1,s);else if(yr(r))if(ed&&r[Symbol.iterator]){t=[];for(var o=r[Symbol.iterator](),l=o.next();!l.done;)t.push(e(l.value,t.length)),l=o.next()}else for(i=Object.keys(r),t=new Array(i.length),s=0,n=i.length;s<n;s++)a=i[s],t[s]=e(r[a],a,s);return z(t)||(t=[]),t._isVList=!0,t}function KL(r,e,t,s){var n=this.$scopedSlots[r],i;n?(t=t||{},s&&(t=gt(gt({},s),t)),i=n(t)||(ot(e)?e():e)):i=this.$slots[r]||(ot(e)?e():e);var a=t&&t.slot;return a?this.$createElement("template",{slot:a},i):i}function XL(r){return gh(this.$options,"filters",r)||Bx}function n$(r,e){return ze(r)?r.indexOf(e)===-1:r!==e}function QL(r,e,t,s,n){var i=bs.keyCodes[e]||t;return n&&s&&!bs.keyCodes[e]?n$(n,s):i?n$(i,r):s?Ju(s)!==e:r===void 0}function JL(r,e,t,s,n){if(t&&yr(t)){ze(t)&&(t=Hx(t));var i=void 0,a=function(l){if(l==="class"||l==="style"||aL(l))i=r;else{var c=r.attrs&&r.attrs.type;i=s||bs.mustUseProp(e,c,l)?r.domProps||(r.domProps={}):r.attrs||(r.attrs={})}var u=Sa(l),d=Ju(l);if(!(u in i)&&!(d in i)&&(i[l]=t[l],n)){var p=r.on||(r.on={});p["update:".concat(l)]=function(h){t[l]=h}}};for(var o in t)a(o)}return r}function eA(r,e){var t=this._staticTrees||(this._staticTrees=[]),s=t[r];return s&&!e||(s=t[r]=this.$options.staticRenderFns[r].call(this._renderProxy,this._c,this),iC(s,"__static__".concat(r),!1)),s}function tA(r,e,t){return iC(r,"__once__".concat(e).concat(t?"_".concat(t):""),!0),r}function iC(r,e,t){if(ze(r))for(var s=0;s<r.length;s++)r[s]&&typeof r[s]!="string"&&i$(r[s],"".concat(e,"_").concat(s),t);else i$(r,e,t)}function i$(r,e,t){r.isStatic=!0,r.key=e,r.isOnce=t}function rA(r,e){if(e&&Lr(e)){var t=r.on=r.on?gt({},r.on):{};for(var s in e){var n=t[s],i=e[s];t[s]=n?[].concat(n,i):i}}return r}function aC(r,e,t,s){e=e||{$stable:!t};for(var n=0;n<r.length;n++){var i=r[n];ze(i)?aC(i,e,t):i&&(i.proxy&&(i.fn.proxy=!0),e[i.key]=i.fn)}return s&&(e.$key=s),e}function sA(r,e){for(var t=0;t<e.length;t+=2){var s=e[t];typeof s=="string"&&s&&(r[e[t]]=e[t+1])}return r}function nA(r,e){return typeof r=="string"?e+r:r}function oC(r){r._o=tA,r._n=eu,r._s=nL,r._l=YL,r._t=KL,r._q=wa,r._i=jx,r._m=eA,r._f=XL,r._k=QL,r._b=JL,r._v=Oo,r._e=ma,r._u=aC,r._g=rA,r._d=sA,r._p=nA}function py(r,e){if(!r||!r.length)return{};for(var t={},s=0,n=r.length;s<n;s++){var i=r[s],a=i.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,(i.context===e||i.fnContext===e)&&a&&a.slot!=null){var o=a.slot,l=t[o]||(t[o]=[]);i.tag==="template"?l.push.apply(l,i.children||[]):l.push(i)}else(t.default||(t.default=[])).push(i)}for(var c in t)t[c].every(iA)&&delete t[c];return t}function iA(r){return r.isComment&&!r.asyncFactory||r.text===" "}function ru(r){return r.isComment&&r.asyncFactory}function Rc(r,e,t,s){var n,i=Object.keys(t).length>0,a=e?!!e.$stable:!i,o=e&&e.$key;if(!e)n={};else{if(e._normalized)return e._normalized;if(a&&s&&s!==mr&&o===s.$key&&!i&&!s.$hasNormal)return s;n={};for(var l in e)e[l]&&l[0]!=="$"&&(n[l]=aA(r,t,l,e[l]))}for(var c in t)c in n||(n[c]=oA(t,c));return e&&Object.isExtensible(e)&&(e._normalized=n),It(n,"$stable",a),It(n,"$key",o),It(n,"$hasNormal",i),n}function aA(r,e,t,s){var n=function(){var i=kt;Ci(r);var a=arguments.length?s.apply(null,arguments):s({});a=a&&typeof a=="object"&&!ze(a)?[a]:dy(a);var o=a&&a[0];return Ci(i),a&&(!o||a.length===1&&o.isComment&&!ru(o))?void 0:a};return s.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function oA(r,e){return function(){return r[e]}}function lA(r){var e=r.$options,t=e.setup;if(t){var s=r._setupContext=lC(r);Ci(r),$l();var n=Bn(t,null,[r._props||cy({}),s],r,"setup");if(Sl(),Ci(),ot(n))e.render=n;else if(yr(n))if(r._setupState=n,n.__sfc){var a=r._setupProxy={};for(var i in n)i!=="__sfc"&&ph(a,n,i)}else for(var i in n)Nx(i)||ph(r,n,i)}}function lC(r){return{get attrs(){if(!r._attrsProxy){var e=r._attrsProxy={};It(e,"_v_attr_proxy",!0),hh(e,r.$attrs,mr,r,"$attrs")}return r._attrsProxy},get listeners(){if(!r._listenersProxy){var e=r._listenersProxy={};hh(e,r.$listeners,mr,r,"$listeners")}return r._listenersProxy},get slots(){return uA(r)},emit:Fx(r.$emit,r),expose:function(e){e&&Object.keys(e).forEach(function(t){return ph(r,e,t)})}}}function hh(r,e,t,s,n){var i=!1;for(var a in e)a in r?e[a]!==t[a]&&(i=!0):(i=!0,cA(r,a,s,n));for(var a in r)a in e||(i=!0,delete r[a]);return i}function cA(r,e,t,s){Object.defineProperty(r,e,{enumerable:!0,configurable:!0,get:function(){return t[s][e]}})}function uA(r){return r._slotsProxy||cC(r._slotsProxy={},r.$scopedSlots),r._slotsProxy}function cC(r,e){for(var t in e)r[t]=e[t];for(var t in r)t in e||delete r[t]}function dA(){return hy().slots}function pA(){return hy().attrs}function hA(){return hy().listeners}function hy(){var r=kt;return r._setupContext||(r._setupContext=lC(r))}function fA(r,e){var t=ze(r)?r.reduce(function(i,a){return i[a]={},i},{}):r;for(var s in e){var n=t[s];n?ze(n)||ot(n)?t[s]={type:n,default:e[s]}:n.default=e[s]:n===null&&(t[s]={default:e[s]})}return t}function mA(r){r._vnode=null,r._staticTrees=null;var e=r.$options,t=r.$vnode=e._parentVnode,s=t&&t.context;r.$slots=py(e._renderChildren,s),r.$scopedSlots=t?Rc(r.$parent,t.data.scopedSlots,r.$slots):mr,r._c=function(i,a,o,l){return su(r,i,a,o,l,!1)},r.$createElement=function(i,a,o,l){return su(r,i,a,o,l,!0)};var n=t&&t.data;Li(r,"$attrs",n&&n.attrs||mr,null,!0),Li(r,"$listeners",e._parentListeners||mr,null,!0)}var Fp=null;function gA(r){oC(r.prototype),r.prototype.$nextTick=function(e){return om(e,this)},r.prototype._render=function(){var e=this,t=e.$options,s=t.render,n=t._parentVnode;n&&e._isMounted&&(e.$scopedSlots=Rc(e.$parent,n.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&cC(e._slotsProxy,e.$scopedSlots)),e.$vnode=n;var i=kt,a=Fp,o;try{Ci(e),Fp=e,o=s.call(e._renderProxy,e.$createElement)}catch(l){xa(l,e,"render"),o=e._vnode}finally{Fp=a,Ci(i)}return ze(o)&&o.length===1&&(o=o[0]),o instanceof is||(o=ma()),o.parent=n,o}}function R1(r,e){return(r.__esModule||ed&&r[Symbol.toStringTag]==="Module")&&(r=r.default),yr(r)?e.extend(r):r}function vA(r,e,t,s,n){var i=ma();return i.asyncFactory=r,i.asyncMeta={data:e,context:t,children:s,tag:n},i}function _A(r,e){if(Ct(r.error)&&z(r.errorComp))return r.errorComp;if(z(r.resolved))return r.resolved;var t=Fp;if(t&&z(r.owners)&&r.owners.indexOf(t)===-1&&r.owners.push(t),Ct(r.loading)&&z(r.loadingComp))return r.loadingComp;if(t&&!z(r.owners)){var s=r.owners=[t],n=!0,i=null,a=null;t.$on("hook:destroyed",function(){return Ii(s,t)});var o=function(d){for(var p=0,h=s.length;p<h;p++)s[p].$forceUpdate();d&&(s.length=0,i!==null&&(clearTimeout(i),i=null),a!==null&&(clearTimeout(a),a=null))},l=lh(function(d){r.resolved=R1(d,e),n?s.length=0:o(!0)}),c=lh(function(d){z(r.errorComp)&&(r.error=!0,o(!0))}),u=r(l,c);return yr(u)&&(Wg(u)?Be(r.resolved)&&u.then(l,c):Wg(u.component)&&(u.component.then(l,c),z(u.error)&&(r.errorComp=R1(u.error,e)),z(u.loading)&&(r.loadingComp=R1(u.loading,e),u.delay===0?r.loading=!0:i=setTimeout(function(){i=null,Be(r.resolved)&&Be(r.error)&&(r.loading=!0,o(!1))},u.delay||200)),z(u.timeout)&&(a=setTimeout(function(){a=null,Be(r.resolved)&&c(null)},u.timeout)))),n=!1,r.loading?r.loadingComp:r.resolved}}function uC(r){if(ze(r))for(var e=0;e<r.length;e++){var t=r[e];if(z(t)&&(z(t.componentOptions)||ru(t)))return t}}var yA=1,dC=2;function su(r,e,t,s,n,i){return(ze(t)||Qu(t))&&(n=s,s=t,t=void 0),Ct(i)&&(n=dC),bA(r,e,t,s,n)}function bA(r,e,t,s,n){if(z(t)&&z(t.__ob__)||(z(t)&&z(t.is)&&(e=t.is),!e))return ma();ze(s)&&ot(s[0])&&(t=t||{},t.scopedSlots={default:s[0]},s.length=0),n===dC?s=dy(s):n===yA&&(s=ZL(s));var i,a;if(typeof e=="string"){var o=void 0;a=r.$vnode&&r.$vnode.ns||bs.getTagNamespace(e),bs.isReservedTag(e)?i=new is(bs.parsePlatformTagName(e),t,s,void 0,void 0,r):(!t||!t.pre)&&z(o=gh(r.$options,"components",e))?i=h$(o,t,r,s,e):i=new is(e,t,s,void 0,void 0,r)}else i=h$(e,t,r,s);return ze(i)?i:z(i)?(z(a)&&pC(i,a),z(t)&&$A(t),i):ma()}function pC(r,e,t){if(r.ns=e,r.tag==="foreignObject"&&(e=void 0,t=!0),z(r.children))for(var s=0,n=r.children.length;s<n;s++){var i=r.children[s];z(i.tag)&&(Be(i.ns)||Ct(t)&&i.tag!=="svg")&&pC(i,e,t)}}function $A(r){yr(r.style)&&zo(r.style),yr(r.class)&&zo(r.class)}function SA(r,e,t){return su(kt,r,e,t,2,!0)}function xa(r,e,t){$l();try{if(e)for(var s=e;s=s.$parent;){var n=s.$options.errorCaptured;if(n)for(var i=0;i<n.length;i++)try{var a=n[i].call(s,r,e,t)===!1;if(a)return}catch(o){a$(o,s,"errorCaptured hook")}}a$(r,e,t)}finally{Sl()}}function Bn(r,e,t,s,n){var i;try{i=t?r.apply(e,t):r.call(e),i&&!i._isVue&&Wg(i)&&!i._handled&&(i.catch(function(a){return xa(a,s,n+" (Promise/async)")}),i._handled=!0)}catch(a){xa(a,s,n)}return i}function a$(r,e,t){if(bs.errorHandler)try{return bs.errorHandler.call(null,r,e,t)}catch(s){s!==r&&o$(s)}o$(r)}function o$(r,e,t){if(Gr&&typeof console<"u")console.error(r);else throw r}var Xg=!1,Qg=[],Jg=!1;function tp(){Jg=!1;var r=Qg.slice(0);Qg.length=0;for(var e=0;e<r.length;e++)r[e]()}var Cc;if(typeof Promise<"u"&&Ho(Promise)){var wA=Promise.resolve();Cc=function(){wA.then(tp),vL&&setTimeout(St)},Xg=!0}else if(!yl&&typeof MutationObserver<"u"&&(Ho(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var rp=1,xA=new MutationObserver(tp),l$=document.createTextNode(String(rp));xA.observe(l$,{characterData:!0}),Cc=function(){rp=(rp+1)%2,l$.data=String(rp)},Xg=!0}else typeof setImmediate<"u"&&Ho(setImmediate)?Cc=function(){setImmediate(tp)}:Cc=function(){setTimeout(tp,0)};function om(r,e){var t;if(Qg.push(function(){if(r)try{r.call(e)}catch(s){xa(s,e,"nextTick")}else t&&t(e)}),Jg||(Jg=!0,Cc()),!r&&typeof Promise<"u")return new Promise(function(s){t=s})}function CA(r){r===void 0&&(r="$style");{if(!kt)return mr;var e=kt[r];return e||mr}}function PA(r){if(Gr){var e=kt;e&&eC(function(){var t=e.$el,s=r(e,e._setupProxy);if(t&&t.nodeType===1){var n=t.style;for(var i in s)n.setProperty("--".concat(i),s[i])}})}}function LA(r){ot(r)&&(r={loader:r});var e=r.loader,t=r.loadingComponent,s=r.errorComponent,n=r.delay,i=n===void 0?200:n,a=r.timeout;r.suspensible;var o=r.onError,l=null,c=0,u=function(){return c++,l=null,d()},d=function(){var p;return l||(p=l=e().catch(function(h){if(h=h instanceof Error?h:new Error(String(h)),o)return new Promise(function(m,g){var v=function(){return m(u())},y=function(){return g(h)};o(h,v,y,c+1)});throw h}).then(function(h){return p!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),h)}))};return function(){var p=d();return{component:p,delay:i,timeout:a,error:s,loading:t}}}function As(r){return function(e,t){if(t===void 0&&(t=kt),!!t)return AA(t,r,e)}}function AA(r,e,t){var s=r.$options;s[e]=bC(s[e],t)}var EA=As("beforeMount"),OA=As("mounted"),TA=As("beforeUpdate"),kA=As("updated"),DA=As("beforeDestroy"),MA=As("destroyed"),RA=As("activated"),IA=As("deactivated"),FA=As("serverPrefetch"),HA=As("renderTracked"),BA=As("renderTriggered"),jA=As("errorCaptured");function VA(r,e){e===void 0&&(e=kt),jA(r,e)}var hC="2.7.16";function NA(r){return r}var c$=new tu;function zo(r){return Hp(r,c$),c$.clear(),r}function Hp(r,e){var t,s,n=ze(r);if(!(!n&&!yr(r)||r.__v_skip||Object.isFrozen(r)||r instanceof is)){if(r.__ob__){var i=r.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(n)for(t=r.length;t--;)Hp(r[t],e);else if(or(r))Hp(r.value,e);else for(s=Object.keys(r),t=s.length;t--;)Hp(r[s[t]],e)}}var zA=0,rd=function(){function r(e,t,s,n,i){zL(this,fr&&!fr._vm?fr:e?e._scope:void 0),(this.vm=e)&&i&&(e._watcher=this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=s,this.id=++zA,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new tu,this.newDepIds=new tu,this.expression="",ot(t)?this.getter=t:(this.getter=mL(t),this.getter||(this.getter=St)),this.value=this.lazy?void 0:this.get()}return r.prototype.get=function(){$l(this);var e,t=this.vm;try{e=this.getter.call(t,t)}catch(s){if(this.user)xa(s,t,'getter for watcher "'.concat(this.expression,'"'));else throw s}finally{this.deep&&zo(e),Sl(),this.cleanupDeps()}return e},r.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},r.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var s=this.depIds;this.depIds=this.newDepIds,this.newDepIds=s,this.newDepIds.clear(),s=this.deps,this.deps=this.newDeps,this.newDeps=s,this.newDeps.length=0},r.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():rv(this)},r.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||yr(e)||this.deep){var t=this.value;if(this.value=e,this.user){var s='callback for watcher "'.concat(this.expression,'"');Bn(this.cb,this.vm,[e,t],this.vm,s)}else this.cb.call(this.vm,e,t)}}},r.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},r.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},r.prototype.teardown=function(){if(this.vm&&!this.vm._isBeingDestroyed&&Ii(this.vm._scope.effects,this),this.active){for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}},r}();function UA(r){r._events=Object.create(null),r._hasHookEvent=!1;var e=r.$options._parentListeners;e&&fC(r,e)}var nu;function WA(r,e){nu.$on(r,e)}function GA(r,e){nu.$off(r,e)}function qA(r,e){var t=nu;return function s(){var n=e.apply(null,arguments);n!==null&&t.$off(r,s)}}function fC(r,e,t){nu=r,sC(e,t||{},WA,GA,qA,r),nu=void 0}function ZA(r){var e=/^hook:/;r.prototype.$on=function(t,s){var n=this;if(ze(t))for(var i=0,a=t.length;i<a;i++)n.$on(t[i],s);else(n._events[t]||(n._events[t]=[])).push(s),e.test(t)&&(n._hasHookEvent=!0);return n},r.prototype.$once=function(t,s){var n=this;function i(){n.$off(t,i),s.apply(n,arguments)}return i.fn=s,n.$on(t,i),n},r.prototype.$off=function(t,s){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(ze(t)){for(var i=0,a=t.length;i<a;i++)n.$off(t[i],s);return n}var o=n._events[t];if(!o)return n;if(!s)return n._events[t]=null,n;for(var l,c=o.length;c--;)if(l=o[c],l===s||l.fn===s){o.splice(c,1);break}return n},r.prototype.$emit=function(t){var s=this,n=s._events[t];if(n){n=n.length>1?Gg(n):n;for(var i=Gg(arguments,1),a='event handler for "'.concat(t,'"'),o=0,l=n.length;o<l;o++)Bn(n[o],s,i,s,a)}return s}}var va=null;function mC(r){var e=va;return va=r,function(){va=e}}function YA(r){var e=r.$options,t=e.parent;if(t&&!e.abstract){for(;t.$options.abstract&&t.$parent;)t=t.$parent;t.$children.push(r)}r.$parent=t,r.$root=t?t.$root:r,r.$children=[],r.$refs={},r._provided=t?t._provided:Object.create(null),r._watcher=null,r._inactive=null,r._directInactive=!1,r._isMounted=!1,r._isDestroyed=!1,r._isBeingDestroyed=!1}function KA(r){r.prototype._update=function(e,t){var s=this,n=s.$el,i=s._vnode,a=mC(s);s._vnode=e,i?s.$el=s.__patch__(i,e):s.$el=s.__patch__(s.$el,e,t,!1),a(),n&&(n.__vue__=null),s.$el&&(s.$el.__vue__=s);for(var o=s;o&&o.$vnode&&o.$parent&&o.$vnode===o.$parent._vnode;)o.$parent.$el=o.$el,o=o.$parent},r.prototype.$forceUpdate=function(){var e=this;e._watcher&&e._watcher.update()},r.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Us(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;t&&!t._isBeingDestroyed&&!e.$options.abstract&&Ii(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Us(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}function XA(r,e,t){r.$el=e,r.$options.render||(r.$options.render=ma),Us(r,"beforeMount");var s;s=function(){r._update(r._render(),t)};var n={before:function(){r._isMounted&&!r._isDestroyed&&Us(r,"beforeUpdate")}};new rd(r,s,St,n,!0),t=!1;var i=r._preWatchers;if(i)for(var a=0;a<i.length;a++)i[a].run();return r.$vnode==null&&(r._isMounted=!0,Us(r,"mounted")),r}function QA(r,e,t,s,n){var i=s.data.scopedSlots,a=r.$scopedSlots,o=!!(i&&!i.$stable||a!==mr&&!a.$stable||i&&r.$scopedSlots.$key!==i.$key||!i&&r.$scopedSlots.$key),l=!!(n||r.$options._renderChildren||o),c=r.$vnode;r.$options._parentVnode=s,r.$vnode=s,r._vnode&&(r._vnode.parent=s),r.$options._renderChildren=n;var u=s.data.attrs||mr;r._attrsProxy&&hh(r._attrsProxy,u,c.data&&c.data.attrs||mr,r,"$attrs")&&(l=!0),r.$attrs=u,t=t||mr;var d=r.$options._parentListeners;if(r._listenersProxy&&hh(r._listenersProxy,t,d||mr,r,"$listeners"),r.$listeners=r.$options._parentListeners=t,fC(r,t,d),e&&r.$options.props){Pi(!1);for(var p=r._props,h=r.$options._propKeys||[],m=0;m<h.length;m++){var g=h[m],v=r.$options.props;p[g]=yy(g,v,e,r)}Pi(!0),r.$options.propsData=e}l&&(r.$slots=py(n,s.context),r.$forceUpdate())}function gC(r){for(;r&&(r=r.$parent);)if(r._inactive)return!0;return!1}function fy(r,e){if(e){if(r._directInactive=!1,gC(r))return}else if(r._directInactive)return;if(r._inactive||r._inactive===null){r._inactive=!1;for(var t=0;t<r.$children.length;t++)fy(r.$children[t]);Us(r,"activated")}}function vC(r,e){if(!(e&&(r._directInactive=!0,gC(r)))&&!r._inactive){r._inactive=!0;for(var t=0;t<r.$children.length;t++)vC(r.$children[t]);Us(r,"deactivated")}}function Us(r,e,t,s){s===void 0&&(s=!0),$l();var n=kt,i=tC();s&&Ci(r);var a=r.$options[e],o="".concat(e," hook");if(a)for(var l=0,c=a.length;l<c;l++)Bn(a[l],r,null,r,o);r._hasHookEvent&&r.$emit("hook:"+e),s&&(Ci(n),i&&i.on()),Sl()}var kn=[],my=[],fh={},ev=!1,gy=!1,To=0;function JA(){To=kn.length=my.length=0,fh={},ev=gy=!1}var _C=0,tv=Date.now;if(Gr&&!yl){var I1=window.performance;I1&&typeof I1.now=="function"&&tv()>document.createEvent("Event").timeStamp&&(tv=function(){return I1.now()})}var eE=function(r,e){if(r.post){if(!e.post)return 1}else if(e.post)return-1;return r.id-e.id};function tE(){_C=tv(),gy=!0;var r,e;for(kn.sort(eE),To=0;To<kn.length;To++)r=kn[To],r.before&&r.before(),e=r.id,fh[e]=null,r.run();var t=my.slice(),s=kn.slice();JA(),nE(t),rE(s),bL(),ch&&bs.devtools&&ch.emit("flush")}function rE(r){for(var e=r.length;e--;){var t=r[e],s=t.vm;s&&s._watcher===t&&s._isMounted&&!s._isDestroyed&&Us(s,"updated")}}function sE(r){r._inactive=!1,my.push(r)}function nE(r){for(var e=0;e<r.length;e++)r[e]._inactive=!0,fy(r[e],!0)}function rv(r){var e=r.id;if(fh[e]==null&&!(r===vn.target&&r.noRecurse)){if(fh[e]=!0,!gy)kn.push(r);else{for(var t=kn.length-1;t>To&&kn[t].id>r.id;)t--;kn.splice(t+1,0,r)}ev||(ev=!0,om(tE))}}function iE(r){var e=r.$options.provide;if(e){var t=ot(e)?e.call(r):e;if(!yr(t))return;for(var s=rC(r),n=ed?Reflect.ownKeys(t):Object.keys(t),i=0;i<n.length;i++){var a=n[i];Object.defineProperty(s,a,Object.getOwnPropertyDescriptor(t,a))}}}function aE(r){var e=yC(r.$options.inject,r);e&&(Pi(!1),Object.keys(e).forEach(function(t){Li(r,t,e[t])}),Pi(!0))}function yC(r,e){if(r){for(var t=Object.create(null),s=ed?Reflect.ownKeys(r):Object.keys(r),n=0;n<s.length;n++){var i=s[n];if(i!=="__ob__"){var a=r[i].from;if(a in e._provided)t[i]=e._provided[a];else if("default"in r[i]){var o=r[i].default;t[i]=ot(o)?o.call(e):o}}}return t}}function vy(r,e,t,s,n){var i=this,a=n.options,o;Pr(s,"_uid")?(o=Object.create(s),o._original=s):(o=s,s=s._original);var l=Ct(a._compiled),c=!l;this.data=r,this.props=e,this.children=t,this.parent=s,this.listeners=r.on||mr,this.injections=yC(a.inject,s),this.slots=function(){return i.$slots||Rc(s,r.scopedSlots,i.$slots=py(t,s)),i.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return Rc(s,r.scopedSlots,this.slots())}}),l&&(this.$options=a,this.$slots=this.slots(),this.$scopedSlots=Rc(s,r.scopedSlots,this.$slots)),a._scopeId?this._c=function(u,d,p,h){var m=su(o,u,d,p,h,c);return m&&!ze(m)&&(m.fnScopeId=a._scopeId,m.fnContext=s),m}:this._c=function(u,d,p,h){return su(o,u,d,p,h,c)}}oC(vy.prototype);function oE(r,e,t,s,n){var i=r.options,a={},o=i.props;if(z(o))for(var l in o)a[l]=yy(l,o,e||mr);else z(t.attrs)&&d$(a,t.attrs),z(t.props)&&d$(a,t.props);var c=new vy(t,a,n,s,r),u=i.render.call(null,c._c,c);if(u instanceof is)return u$(u,t,c.parent,i);if(ze(u)){for(var d=dy(u)||[],p=new Array(d.length),h=0;h<d.length;h++)p[h]=u$(d[h],t,c.parent,i);return p}}function u$(r,e,t,s,n){var i=Yg(r);return i.fnContext=t,i.fnOptions=s,e.slot&&((i.data||(i.data={})).slot=e.slot),i}function d$(r,e){for(var t in e)r[Sa(t)]=e[t]}function mh(r){return r.name||r.__name||r._componentTag}var _y={init:function(r,e){if(r.componentInstance&&!r.componentInstance._isDestroyed&&r.data.keepAlive){var t=r;_y.prepatch(t,t)}else{var s=r.componentInstance=lE(r,va);s.$mount(e?r.elm:void 0,e)}},prepatch:function(r,e){var t=e.componentOptions,s=e.componentInstance=r.componentInstance;QA(s,t.propsData,t.listeners,e,t.children)},insert:function(r){var e=r.context,t=r.componentInstance;t._isMounted||(t._isMounted=!0,Us(t,"mounted")),r.data.keepAlive&&(e._isMounted?sE(t):fy(t,!0))},destroy:function(r){var e=r.componentInstance;e._isDestroyed||(r.data.keepAlive?vC(e,!0):e.$destroy())}},p$=Object.keys(_y);function h$(r,e,t,s,n){if(!Be(r)){var i=t.$options._base;if(yr(r)&&(r=i.extend(r)),typeof r=="function"){var a;if(Be(r.cid)&&(a=r,r=_A(a,i),r===void 0))return vA(a,e,t,s,n);e=e||{},$y(r),z(e.model)&&dE(r.options,e);var o=qL(e,r);if(Ct(r.options.functional))return oE(r,o,e,t,s);var l=e.on;if(e.on=e.nativeOn,Ct(r.options.abstract)){var c=e.slot;e={},c&&(e.slot=c)}cE(e);var u=mh(r.options)||n,d=new is("vue-component-".concat(r.cid).concat(u?"-".concat(u):""),e,void 0,void 0,void 0,t,{Ctor:r,propsData:o,listeners:l,tag:n,children:s},a);return d}}}function lE(r,e){var t={_isComponent:!0,_parentVnode:r,parent:e},s=r.data.inlineTemplate;return z(s)&&(t.render=s.render,t.staticRenderFns=s.staticRenderFns),new r.componentOptions.Ctor(t)}function cE(r){for(var e=r.hook||(r.hook={}),t=0;t<p$.length;t++){var s=p$[t],n=e[s],i=_y[s];n!==i&&!(n&&n._merged)&&(e[s]=n?uE(i,n):i)}}function uE(r,e){var t=function(s,n){r(s,n),e(s,n)};return t._merged=!0,t}function dE(r,e){var t=r.model&&r.model.prop||"value",s=r.model&&r.model.event||"input";(e.attrs||(e.attrs={}))[t]=e.model.value;var n=e.on||(e.on={}),i=n[s],a=e.model.callback;z(i)?(ze(i)?i.indexOf(a)===-1:i!==a)&&(n[s]=[a].concat(i)):n[s]=a}var pE=St,dn=bs.optionMergeStrategies;function iu(r,e,t){if(t===void 0&&(t=!0),!e)return r;for(var s,n,i,a=ed?Reflect.ownKeys(e):Object.keys(e),o=0;o<a.length;o++)s=a[o],s!=="__ob__"&&(n=r[s],i=e[s],!t||!Pr(r,s)?nm(r,s,i):n!==i&&Lr(n)&&Lr(i)&&iu(n,i));return r}function f$(r,e,t){return t?function(){var n=ot(e)?e.call(t,t):e,i=ot(r)?r.call(t,t):r;return n?iu(n,i):i}:e?r?function(){return iu(ot(e)?e.call(this,this):e,ot(r)?r.call(this,this):r)}:e:r}dn.data=function(r,e,t){return t?f$(r,e,t):e&&typeof e!="function"?r:f$(r,e)};function bC(r,e){var t=e?r?r.concat(e):ze(e)?e:[e]:r;return t&&hE(t)}function hE(r){for(var e=[],t=0;t<r.length;t++)e.indexOf(r[t])===-1&&e.push(r[t]);return e}Vx.forEach(function(r){dn[r]=bC});function fE(r,e,t,s){var n=Object.create(r||null);return e?gt(n,e):n}sm.forEach(function(r){dn[r+"s"]=fE});dn.watch=function(r,e,t,s){if(r===Zg&&(r=void 0),e===Zg&&(e=void 0),!e)return Object.create(r||null);if(!r)return e;var n={};gt(n,r);for(var i in e){var a=n[i],o=e[i];a&&!ze(a)&&(a=[a]),n[i]=a?a.concat(o):ze(o)?o:[o]}return n};dn.props=dn.methods=dn.inject=dn.computed=function(r,e,t,s){if(!r)return e;var n=Object.create(null);return gt(n,r),e&&gt(n,e),n};dn.provide=function(r,e){return r?function(){var t=Object.create(null);return iu(t,ot(r)?r.call(this):r),e&&iu(t,ot(e)?e.call(this):e,!1),t}:e};var mE=function(r,e){return e===void 0?r:e};function gE(r,e){var t=r.props;if(t){var s={},n,i,a;if(ze(t))for(n=t.length;n--;)i=t[n],typeof i=="string"&&(a=Sa(i),s[a]={type:null});else if(Lr(t))for(var o in t)i=t[o],a=Sa(o),s[a]=Lr(i)?i:{type:i};r.props=s}}function vE(r,e){var t=r.inject;if(t){var s=r.inject={};if(ze(t))for(var n=0;n<t.length;n++)s[t[n]]={from:t[n]};else if(Lr(t))for(var i in t){var a=t[i];s[i]=Lr(a)?gt({from:i},a):{from:a}}}}function _E(r){var e=r.directives;if(e)for(var t in e){var s=e[t];ot(s)&&(e[t]={bind:s,update:s})}}function Ca(r,e,t){if(ot(e)&&(e=e.options),gE(e),vE(e),_E(e),!e._base&&(e.extends&&(r=Ca(r,e.extends,t)),e.mixins))for(var s=0,n=e.mixins.length;s<n;s++)r=Ca(r,e.mixins[s],t);var i={},a;for(a in r)o(a);for(a in e)Pr(r,a)||o(a);function o(l){var c=dn[l]||mE;i[l]=c(r[l],e[l],t,l)}return i}function gh(r,e,t,s){if(typeof t=="string"){var n=r[e];if(Pr(n,t))return n[t];var i=Sa(t);if(Pr(n,i))return n[i];var a=cL(i);if(Pr(n,a))return n[a];var o=n[t]||n[i]||n[a];return o}}function yy(r,e,t,s){var n=e[r],i=!Pr(t,r),a=t[r],o=g$(Boolean,n.type);if(o>-1){if(i&&!Pr(n,"default"))a=!1;else if(a===""||a===Ju(r)){var l=g$(String,n.type);(l<0||o<l)&&(a=!0)}}if(a===void 0){a=yE(s,n,r);var c=oy;Pi(!0),Hn(a),Pi(c)}return a}function yE(r,e,t){if(Pr(e,"default")){var s=e.default;return r&&r.$options.propsData&&r.$options.propsData[t]===void 0&&r._props[t]!==void 0?r._props[t]:ot(s)&&sv(e.type)!=="Function"?s.call(r):s}}var bE=/^\s*function (\w+)/;function sv(r){var e=r&&r.toString().match(bE);return e?e[1]:""}function m$(r,e){return sv(r)===sv(e)}function g$(r,e){if(!ze(e))return m$(e,r)?0:-1;for(var t=0,s=e.length;t<s;t++)if(m$(e[t],r))return t;return-1}var pi={enumerable:!0,configurable:!0,get:St,set:St};function by(r,e,t){pi.get=function(){return this[e][t]},pi.set=function(n){this[e][t]=n},Object.defineProperty(r,t,pi)}function $E(r){var e=r.$options;if(e.props&&SE(r,e.props),lA(r),e.methods&&LE(r,e.methods),e.data)wE(r);else{var t=Hn(r._data={});t&&t.vmCount++}e.computed&&PE(r,e.computed),e.watch&&e.watch!==Zg&&AE(r,e.watch)}function SE(r,e){var t=r.$options.propsData||{},s=r._props=cy({}),n=r.$options._propKeys=[],i=!r.$parent;i||Pi(!1);var a=function(l){n.push(l);var c=yy(l,e,t,r);Li(s,l,c,void 0,!0),l in r||by(r,"_props",l)};for(var o in e)a(o);Pi(!0)}function wE(r){var e=r.$options.data;e=r._data=ot(e)?xE(e,r):e||{},Lr(e)||(e={});var t=Object.keys(e),s=r.$options.props;r.$options.methods;for(var n=t.length;n--;){var i=t[n];s&&Pr(s,i)||Nx(i)||by(r,"_data",i)}var a=Hn(e);a&&a.vmCount++}function xE(r,e){$l();try{return r.call(e,e)}catch(t){return xa(t,e,"data()"),{}}finally{Sl()}}var CE={lazy:!0};function PE(r,e){var t=r._computedWatchers=Object.create(null),s=Fi();for(var n in e){var i=e[n],a=ot(i)?i:i.get;s||(t[n]=new rd(r,a||St,St,CE)),n in r||$C(r,n,i)}}function $C(r,e,t){var s=!Fi();ot(t)?(pi.get=s?v$(e):_$(t),pi.set=St):(pi.get=t.get?s&&t.cache!==!1?v$(e):_$(t.get):St,pi.set=t.set||St),Object.defineProperty(r,e,pi)}function v$(r){return function(){var t=this._computedWatchers&&this._computedWatchers[r];if(t)return t.dirty&&t.evaluate(),vn.target&&t.depend(),t.value}}function _$(r){return function(){return r.call(this,this)}}function LE(r,e){r.$options.props;for(var t in e)r[t]=typeof e[t]!="function"?St:Fx(e[t],r)}function AE(r,e){for(var t in e){var s=e[t];if(ze(s))for(var n=0;n<s.length;n++)nv(r,t,s[n]);else nv(r,t,s)}}function nv(r,e,t,s){return Lr(t)&&(s=t,t=t.handler),typeof t=="string"&&(t=r[t]),r.$watch(e,t,s)}function EE(r){var e={};e.get=function(){return this._data};var t={};t.get=function(){return this._props},Object.defineProperty(r.prototype,"$data",e),Object.defineProperty(r.prototype,"$props",t),r.prototype.$set=nm,r.prototype.$delete=ly,r.prototype.$watch=function(s,n,i){var a=this;if(Lr(n))return nv(a,s,n,i);i=i||{},i.user=!0;var o=new rd(a,s,n,i);if(i.immediate){var l='callback for immediate watcher "'.concat(o.expression,'"');$l(),Bn(n,a,[o.value],a,l),Sl()}return function(){o.teardown()}}}var OE=0;function TE(r){r.prototype._init=function(e){var t=this;t._uid=OE++,t._isVue=!0,t.__v_skip=!0,t._scope=new uy(!0),t._scope.parent=void 0,t._scope._vm=!0,e&&e._isComponent?kE(t,e):t.$options=Ca($y(t.constructor),e||{},t),t._renderProxy=t,t._self=t,YA(t),UA(t),mA(t),Us(t,"beforeCreate",void 0,!1),aE(t),$E(t),iE(t),Us(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}function kE(r,e){var t=r.$options=Object.create(r.constructor.options),s=e._parentVnode;t.parent=e.parent,t._parentVnode=s;var n=s.componentOptions;t.propsData=n.propsData,t._parentListeners=n.listeners,t._renderChildren=n.children,t._componentTag=n.tag,e.render&&(t.render=e.render,t.staticRenderFns=e.staticRenderFns)}function $y(r){var e=r.options;if(r.super){var t=$y(r.super),s=r.superOptions;if(t!==s){r.superOptions=t;var n=DE(r);n&&gt(r.extendOptions,n),e=r.options=Ca(t,r.extendOptions),e.name&&(e.components[e.name]=r)}}return e}function DE(r){var e,t=r.options,s=r.sealedOptions;for(var n in t)t[n]!==s[n]&&(e||(e={}),e[n]=t[n]);return e}function b(r){this._init(r)}TE(b);EE(b);ZA(b);KA(b);gA(b);function ME(r){r.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var s=Gg(arguments,1);return s.unshift(this),ot(e.install)?e.install.apply(e,s):ot(e)&&e.apply(null,s),t.push(e),this}}function RE(r){r.mixin=function(e){return this.options=Ca(this.options,e),this}}function IE(r){r.cid=0;var e=1;r.extend=function(t){t=t||{};var s=this,n=s.cid,i=t._Ctor||(t._Ctor={});if(i[n])return i[n];var a=mh(t)||mh(s.options),o=function(c){this._init(c)};return o.prototype=Object.create(s.prototype),o.prototype.constructor=o,o.cid=e++,o.options=Ca(s.options,t),o.super=s,o.options.props&&FE(o),o.options.computed&&HE(o),o.extend=s.extend,o.mixin=s.mixin,o.use=s.use,sm.forEach(function(l){o[l]=s[l]}),a&&(o.options.components[a]=o),o.superOptions=s.options,o.extendOptions=t,o.sealedOptions=gt({},o.options),i[n]=o,o}}function FE(r){var e=r.options.props;for(var t in e)by(r.prototype,"_props",t)}function HE(r){var e=r.options.computed;for(var t in e)$C(r.prototype,t,e[t])}function BE(r){sm.forEach(function(e){r[e]=function(t,s){return s?(e==="component"&&Lr(s)&&(s.name=s.name||t,s=this.options._base.extend(s)),e==="directive"&&ot(s)&&(s={bind:s,update:s}),this.options[e+"s"][t]=s,s):this.options[e+"s"][t]}})}function y$(r){return r&&(mh(r.Ctor.options)||r.tag)}function sp(r,e){return ze(r)?r.indexOf(e)>-1:typeof r=="string"?r.split(",").indexOf(e)>-1:sL(r)?r.test(e):!1}function b$(r,e){var t=r.cache,s=r.keys,n=r._vnode,i=r.$vnode;for(var a in t){var o=t[a];if(o){var l=o.name;l&&!e(l)&&iv(t,a,s,n)}}i.componentOptions.children=void 0}function iv(r,e,t,s){var n=r[e];n&&(!s||n.tag!==s.tag)&&n.componentInstance.$destroy(),r[e]=null,Ii(t,e)}var $$=[String,RegExp,Array],jE={name:"keep-alive",abstract:!0,props:{include:$$,exclude:$$,max:[String,Number]},methods:{cacheVNode:function(){var r=this,e=r.cache,t=r.keys,s=r.vnodeToCache,n=r.keyToCache;if(s){var i=s.tag,a=s.componentInstance,o=s.componentOptions;e[n]={name:y$(o),tag:i,componentInstance:a},t.push(n),this.max&&t.length>parseInt(this.max)&&iv(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var r in this.cache)iv(this.cache,r,this.keys)},mounted:function(){var r=this;this.cacheVNode(),this.$watch("include",function(e){b$(r,function(t){return sp(e,t)})}),this.$watch("exclude",function(e){b$(r,function(t){return!sp(e,t)})})},updated:function(){this.cacheVNode()},render:function(){var r=this.$slots.default,e=uC(r),t=e&&e.componentOptions;if(t){var s=y$(t),n=this,i=n.include,a=n.exclude;if(i&&(!s||!sp(i,s))||a&&s&&sp(a,s))return e;var o=this,l=o.cache,c=o.keys,u=e.key==null?t.Ctor.cid+(t.tag?"::".concat(t.tag):""):e.key;l[u]?(e.componentInstance=l[u].componentInstance,Ii(c,u),c.push(u)):(this.vnodeToCache=e,this.keyToCache=u),e.data.keepAlive=!0}return e||r&&r[0]}},VE={KeepAlive:jE};function NE(r){var e={};e.get=function(){return bs},Object.defineProperty(r,"config",e),r.util={warn:pE,extend:gt,mergeOptions:Ca,defineReactive:Li},r.set=nm,r.delete=ly,r.nextTick=om,r.observable=function(t){return Hn(t),t},r.options=Object.create(null),sm.forEach(function(t){r.options[t+"s"]=Object.create(null)}),r.options._base=r,gt(r.options.components,VE),ME(r),RE(r),IE(r),BE(r)}NE(b);Object.defineProperty(b.prototype,"$isServer",{get:Fi});Object.defineProperty(b.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}});Object.defineProperty(b,"FunctionalRenderContext",{value:vy});b.version=hC;var zE=Qs("style,class"),UE=Qs("input,textarea,option,select,progress"),WE=function(r,e,t){return t==="value"&&UE(r)&&e!=="button"||t==="selected"&&r==="option"||t==="checked"&&r==="input"||t==="muted"&&r==="video"},SC=Qs("contenteditable,draggable,spellcheck"),GE=Qs("events,caret,typing,plaintext-only"),qE=function(r,e){return vh(e)||e==="false"?"false":r==="contenteditable"&&GE(e)?e:"true"},ZE=Qs("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),av="http://www.w3.org/1999/xlink",Sy=function(r){return r.charAt(5)===":"&&r.slice(0,5)==="xlink"},wC=function(r){return Sy(r)?r.slice(6,r.length):""},vh=function(r){return r==null||r===!1};function YE(r){for(var e=r.data,t=r,s=r;z(s.componentInstance);)s=s.componentInstance._vnode,s&&s.data&&(e=S$(s.data,e));for(;z(t=t.parent);)t&&t.data&&(e=S$(e,t.data));return KE(e.staticClass,e.class)}function S$(r,e){return{staticClass:wy(r.staticClass,e.staticClass),class:z(r.class)?[r.class,e.class]:e.class}}function KE(r,e){return z(r)||z(e)?wy(r,xy(e)):""}function wy(r,e){return r?e?r+" "+e:r:e||""}function xy(r){return Array.isArray(r)?XE(r):yr(r)?QE(r):typeof r=="string"?r:""}function XE(r){for(var e="",t,s=0,n=r.length;s<n;s++)z(t=xy(r[s]))&&t!==""&&(e&&(e+=" "),e+=t);return e}function QE(r){var e="";for(var t in r)r[t]&&(e&&(e+=" "),e+=t);return e}var JE={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},eO=Qs("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Cy=Qs("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),xC=function(r){return eO(r)||Cy(r)};function tO(r){if(Cy(r))return"svg";if(r==="math")return"math"}var np=Object.create(null);function rO(r){if(!Gr)return!0;if(xC(r))return!1;if(r=r.toLowerCase(),np[r]!=null)return np[r];var e=document.createElement(r);return r.indexOf("-")>-1?np[r]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:np[r]=/HTMLUnknownElement/.test(e.toString())}var ov=Qs("text,number,password,search,email,tel,url");function sO(r){if(typeof r=="string"){var e=document.querySelector(r);return e||document.createElement("div")}else return r}function nO(r,e){var t=document.createElement(r);return r!=="select"||e.data&&e.data.attrs&&e.data.attrs.multiple!==void 0&&t.setAttribute("multiple","multiple"),t}function iO(r,e){return document.createElementNS(JE[r],e)}function aO(r){return document.createTextNode(r)}function oO(r){return document.createComment(r)}function lO(r,e,t){r.insertBefore(e,t)}function cO(r,e){r.removeChild(e)}function uO(r,e){r.appendChild(e)}function dO(r){return r.parentNode}function pO(r){return r.nextSibling}function hO(r){return r.tagName}function fO(r,e){r.textContent=e}function mO(r,e){r.setAttribute(e,"")}var gO=Object.freeze({__proto__:null,createElement:nO,createElementNS:iO,createTextNode:aO,createComment:oO,insertBefore:lO,removeChild:cO,appendChild:uO,parentNode:dO,nextSibling:pO,tagName:hO,setTextContent:fO,setStyleScope:mO}),vO={create:function(r,e){ko(e)},update:function(r,e){r.data.ref!==e.data.ref&&(ko(r,!0),ko(e))},destroy:function(r){ko(r,!0)}};function ko(r,e){var t=r.data.ref;if(z(t)){var s=r.context,n=r.componentInstance||r.elm,i=e?null:n,a=e?void 0:n;if(ot(t)){Bn(t,s,[i],s,"template ref function");return}var o=r.data.refInFor,l=typeof t=="string"||typeof t=="number",c=or(t),u=s.$refs;if(l||c){if(o){var d=l?u[t]:t.value;e?ze(d)&&Ii(d,n):ze(d)?d.includes(n)||d.push(n):l?(u[t]=[n],w$(s,t,u[t])):t.value=[n]}else if(l){if(e&&u[t]!==n)return;u[t]=a,w$(s,t,i)}else if(c){if(e&&t.value!==n)return;t.value=i}}}}function w$(r,e,t){var s=r._setupState;s&&Pr(s,e)&&(or(s[e])?s[e].value=t:s[e]=t)}var mi=new is("",{},[]),oc=["create","activate","update","remove","destroy"];function Qi(r,e){return r.key===e.key&&r.asyncFactory===e.asyncFactory&&(r.tag===e.tag&&r.isComment===e.isComment&&z(r.data)===z(e.data)&&_O(r,e)||Ct(r.isAsyncPlaceholder)&&Be(e.asyncFactory.error))}function _O(r,e){if(r.tag!=="input")return!0;var t,s=z(t=r.data)&&z(t=t.attrs)&&t.type,n=z(t=e.data)&&z(t=t.attrs)&&t.type;return s===n||ov(s)&&ov(n)}function yO(r,e,t){var s,n,i={};for(s=e;s<=t;++s)n=r[s].key,z(n)&&(i[n]=s);return i}function bO(r){var e,t,s={},n=r.modules,i=r.nodeOps;for(e=0;e<oc.length;++e)for(s[oc[e]]=[],t=0;t<n.length;++t)z(n[t][oc[e]])&&s[oc[e]].push(n[t][oc[e]]);function a(k){return new is(i.tagName(k).toLowerCase(),{},[],void 0,k)}function o(k,T){function P(){--P.listeners===0&&l(k)}return P.listeners=T,P}function l(k){var T=i.parentNode(k);z(T)&&i.removeChild(T,k)}function c(k,T,P,O,j,V,U){if(z(k.elm)&&z(V)&&(k=V[U]=Yg(k)),k.isRootInsert=!j,!u(k,T,P,O)){var N=k.data,J=k.children,Q=k.tag;z(Q)?(k.elm=k.ns?i.createElementNS(k.ns,Q):i.createElement(Q,k),y(k),m(k,J,T),z(N)&&v(k,T),h(P,k.elm,O)):Ct(k.isComment)?(k.elm=i.createComment(k.text),h(P,k.elm,O)):(k.elm=i.createTextNode(k.text),h(P,k.elm,O))}}function u(k,T,P,O){var j=k.data;if(z(j)){var V=z(k.componentInstance)&&j.keepAlive;if(z(j=j.hook)&&z(j=j.init)&&j(k,!1),z(k.componentInstance))return d(k,T),h(P,k.elm,O),Ct(V)&&p(k,T,P,O),!0}}function d(k,T){z(k.data.pendingInsert)&&(T.push.apply(T,k.data.pendingInsert),k.data.pendingInsert=null),k.elm=k.componentInstance.$el,g(k)?(v(k,T),y(k)):(ko(k),T.push(k))}function p(k,T,P,O){for(var j,V=k;V.componentInstance;)if(V=V.componentInstance._vnode,z(j=V.data)&&z(j=j.transition)){for(j=0;j<s.activate.length;++j)s.activate[j](mi,V);T.push(V);break}h(P,k.elm,O)}function h(k,T,P){z(k)&&(z(P)?i.parentNode(P)===k&&i.insertBefore(k,T,P):i.appendChild(k,T))}function m(k,T,P){if(ze(T))for(var O=0;O<T.length;++O)c(T[O],P,k.elm,null,!0,T,O);else Qu(k.text)&&i.appendChild(k.elm,i.createTextNode(String(k.text)))}function g(k){for(;k.componentInstance;)k=k.componentInstance._vnode;return z(k.tag)}function v(k,T){for(var P=0;P<s.create.length;++P)s.create[P](mi,k);e=k.data.hook,z(e)&&(z(e.create)&&e.create(mi,k),z(e.insert)&&T.push(k))}function y(k){var T;if(z(T=k.fnScopeId))i.setStyleScope(k.elm,T);else for(var P=k;P;)z(T=P.context)&&z(T=T.$options._scopeId)&&i.setStyleScope(k.elm,T),P=P.parent;z(T=va)&&T!==k.context&&T!==k.fnContext&&z(T=T.$options._scopeId)&&i.setStyleScope(k.elm,T)}function C(k,T,P,O,j,V){for(;O<=j;++O)c(P[O],V,k,T,!1,P,O)}function x(k){var T,P,O=k.data;if(z(O))for(z(T=O.hook)&&z(T=T.destroy)&&T(k),T=0;T<s.destroy.length;++T)s.destroy[T](k);if(z(T=k.children))for(P=0;P<k.children.length;++P)x(k.children[P])}function S(k,T,P){for(;T<=P;++T){var O=k[T];z(O)&&(z(O.tag)?(E(O),x(O)):l(O.elm))}}function E(k,T){if(z(T)||z(k.data)){var P,O=s.remove.length+1;for(z(T)?T.listeners+=O:T=o(k.elm,O),z(P=k.componentInstance)&&z(P=P._vnode)&&z(P.data)&&E(P,T),P=0;P<s.remove.length;++P)s.remove[P](k,T);z(P=k.data.hook)&&z(P=P.remove)?P(k,T):T()}else l(k.elm)}function G(k,T,P,O,j){for(var V=0,U=0,N=T.length-1,J=T[0],Q=T[N],q=P.length-1,Y=P[0],re=P[q],se,_e,Re,wt,Or=!j;V<=N&&U<=q;)Be(J)?J=T[++V]:Be(Q)?Q=T[--N]:Qi(J,Y)?(le(J,Y,O,P,U),J=T[++V],Y=P[++U]):Qi(Q,re)?(le(Q,re,O,P,q),Q=T[--N],re=P[--q]):Qi(J,re)?(le(J,re,O,P,q),Or&&i.insertBefore(k,J.elm,i.nextSibling(Q.elm)),J=T[++V],re=P[--q]):Qi(Q,Y)?(le(Q,Y,O,P,U),Or&&i.insertBefore(k,Q.elm,J.elm),Q=T[--N],Y=P[++U]):(Be(se)&&(se=yO(T,V,N)),_e=z(Y.key)?se[Y.key]:K(Y,T,V,N),Be(_e)?c(Y,O,k,J.elm,!1,P,U):(Re=T[_e],Qi(Re,Y)?(le(Re,Y,O,P,U),T[_e]=void 0,Or&&i.insertBefore(k,Re.elm,J.elm)):c(Y,O,k,J.elm,!1,P,U)),Y=P[++U]);V>N?(wt=Be(P[q+1])?null:P[q+1].elm,C(k,wt,P,U,q,O)):U>q&&S(T,V,N)}function K(k,T,P,O){for(var j=P;j<O;j++){var V=T[j];if(z(V)&&Qi(k,V))return j}}function le(k,T,P,O,j,V){if(k!==T){z(T.elm)&&z(O)&&(T=O[j]=Yg(T));var U=T.elm=k.elm;if(Ct(k.isAsyncPlaceholder)){z(T.asyncFactory.resolved)?fe(k.elm,T,P):T.isAsyncPlaceholder=!0;return}if(Ct(T.isStatic)&&Ct(k.isStatic)&&T.key===k.key&&(Ct(T.isCloned)||Ct(T.isOnce))){T.componentInstance=k.componentInstance;return}var N,J=T.data;z(J)&&z(N=J.hook)&&z(N=N.prepatch)&&N(k,T);var Q=k.children,q=T.children;if(z(J)&&g(T)){for(N=0;N<s.update.length;++N)s.update[N](k,T);z(N=J.hook)&&z(N=N.update)&&N(k,T)}Be(T.text)?z(Q)&&z(q)?Q!==q&&G(U,Q,q,P,V):z(q)?(z(k.text)&&i.setTextContent(U,""),C(U,null,q,0,q.length-1,P)):z(Q)?S(Q,0,Q.length-1):z(k.text)&&i.setTextContent(U,""):k.text!==T.text&&i.setTextContent(U,T.text),z(J)&&z(N=J.hook)&&z(N=N.postpatch)&&N(k,T)}}function ue(k,T,P){if(Ct(P)&&z(k.parent))k.parent.data.pendingInsert=T;else for(var O=0;O<T.length;++O)T[O].data.hook.insert(T[O])}var ie=Qs("attrs,class,staticClass,staticStyle,key");function fe(k,T,P,O){var j,V=T.tag,U=T.data,N=T.children;if(O=O||U&&U.pre,T.elm=k,Ct(T.isComment)&&z(T.asyncFactory))return T.isAsyncPlaceholder=!0,!0;if(z(U)&&(z(j=U.hook)&&z(j=j.init)&&j(T,!0),z(j=T.componentInstance)))return d(T,P),!0;if(z(V)){if(z(N))if(!k.hasChildNodes())m(T,N,P);else if(z(j=U)&&z(j=j.domProps)&&z(j=j.innerHTML)){if(j!==k.innerHTML)return!1}else{for(var J=!0,Q=k.firstChild,q=0;q<N.length;q++){if(!Q||!fe(Q,N[q],P,O)){J=!1;break}Q=Q.nextSibling}if(!J||Q)return!1}if(z(U)){var Y=!1;for(var re in U)if(!ie(re)){Y=!0,v(T,P);break}!Y&&U.class&&zo(U.class)}}else k.data!==T.text&&(k.data=T.text);return!0}return function(T,P,O,j){if(Be(P)){z(T)&&x(T);return}var V=!1,U=[];if(Be(T))V=!0,c(P,U);else{var N=z(T.nodeType);if(!N&&Qi(T,P))le(T,P,U,null,null,j);else{if(N){if(T.nodeType===1&&T.hasAttribute(Z2)&&(T.removeAttribute(Z2),O=!0),Ct(O)&&fe(T,P,U))return ue(P,U,!0),T;T=a(T)}var J=T.elm,Q=i.parentNode(J);if(c(P,U,J._leaveCb?null:Q,i.nextSibling(J)),z(P.parent))for(var q=P.parent,Y=g(P);q;){for(var re=0;re<s.destroy.length;++re)s.destroy[re](q);if(q.elm=P.elm,Y){for(var se=0;se<s.create.length;++se)s.create[se](mi,q);var _e=q.data.hook.insert;if(_e.merged)for(var Re=_e.fns.slice(1),wt=0;wt<Re.length;wt++)Re[wt]()}else ko(q);q=q.parent}z(Q)?S([T],0,0):z(T.tag)&&x(T)}}return ue(P,U,V),P.elm}}var $O={create:F1,update:F1,destroy:function(e){F1(e,mi)}};function F1(r,e){(r.data.directives||e.data.directives)&&SO(r,e)}function SO(r,e){var t=r===mi,s=e===mi,n=x$(r.data.directives,r.context),i=x$(e.data.directives,e.context),a=[],o=[],l,c,u;for(l in i)c=n[l],u=i[l],c?(u.oldValue=c.value,u.oldArg=c.arg,lc(u,"update",e,r),u.def&&u.def.componentUpdated&&o.push(u)):(lc(u,"bind",e,r),u.def&&u.def.inserted&&a.push(u));if(a.length){var d=function(){for(var p=0;p<a.length;p++)lc(a[p],"inserted",e,r)};t?fi(e,"insert",d):d()}if(o.length&&fi(e,"postpatch",function(){for(var p=0;p<o.length;p++)lc(o[p],"componentUpdated",e,r)}),!t)for(l in n)i[l]||lc(n[l],"unbind",r,r,s)}var wO=Object.create(null);function x$(r,e){var t=Object.create(null);if(!r)return t;var s,n;for(s=0;s<r.length;s++){if(n=r[s],n.modifiers||(n.modifiers=wO),t[xO(n)]=n,e._setupState&&e._setupState.__sfc){var i=n.def||gh(e,"_setupState","v-"+n.name);typeof i=="function"?n.def={bind:i,update:i}:n.def=i}n.def=n.def||gh(e.$options,"directives",n.name)}return t}function xO(r){return r.rawName||"".concat(r.name,".").concat(Object.keys(r.modifiers||{}).join("."))}function lc(r,e,t,s,n){var i=r.def&&r.def[e];if(i)try{i(t.elm,r,t,s,n)}catch(a){xa(a,t.context,"directive ".concat(r.name," ").concat(e," hook"))}}var CO=[vO,$O];function C$(r,e){var t=e.componentOptions;if(!(z(t)&&t.Ctor.options.inheritAttrs===!1)&&!(Be(r.data.attrs)&&Be(e.data.attrs))){var s,n,i,a=e.elm,o=r.data.attrs||{},l=e.data.attrs||{};(z(l.__ob__)||Ct(l._v_attr_proxy))&&(l=e.data.attrs=gt({},l));for(s in l)n=l[s],i=o[s],i!==n&&P$(a,s,n,e.data.pre);(yl||zx)&&l.value!==o.value&&P$(a,"value",l.value);for(s in o)Be(l[s])&&(Sy(s)?a.removeAttributeNS(av,wC(s)):SC(s)||a.removeAttribute(s))}}function P$(r,e,t,s){s||r.tagName.indexOf("-")>-1?L$(r,e,t):ZE(e)?vh(t)?r.removeAttribute(e):(t=e==="allowfullscreen"&&r.tagName==="EMBED"?"true":e,r.setAttribute(e,t)):SC(e)?r.setAttribute(e,qE(e,t)):Sy(e)?vh(t)?r.removeAttributeNS(av,wC(e)):r.setAttributeNS(av,e,t):L$(r,e,t)}function L$(r,e,t){if(vh(t))r.removeAttribute(e);else{if(yl&&!bl&&r.tagName==="TEXTAREA"&&e==="placeholder"&&t!==""&&!r.__ieph){var s=function(n){n.stopImmediatePropagation(),r.removeEventListener("input",s)};r.addEventListener("input",s),r.__ieph=!0}r.setAttribute(e,t)}}var PO={create:C$,update:C$};function A$(r,e){var t=e.elm,s=e.data,n=r.data;if(!(Be(s.staticClass)&&Be(s.class)&&(Be(n)||Be(n.staticClass)&&Be(n.class)))){var i=YE(e),a=t._transitionClasses;z(a)&&(i=wy(i,xy(a))),i!==t._prevClass&&(t.setAttribute("class",i),t._prevClass=i)}}var LO={create:A$,update:A$},H1="__r",B1="__c";function AO(r){if(z(r[H1])){var e=yl?"change":"input";r[e]=[].concat(r[H1],r[e]||[]),delete r[H1]}z(r[B1])&&(r.change=[].concat(r[B1],r.change||[]),delete r[B1])}var au;function EO(r,e,t){var s=au;return function n(){var i=e.apply(null,arguments);i!==null&&CC(r,n,t,s)}}var OO=Xg&&!(Y2&&Number(Y2[1])<=53);function TO(r,e,t,s){if(OO){var n=_C,i=e;e=i._wrapper=function(a){if(a.target===a.currentTarget||a.timeStamp>=n||a.timeStamp<=0||a.target.ownerDocument!==document)return i.apply(this,arguments)}}au.addEventListener(r,e,Ux?{capture:t,passive:s}:t)}function CC(r,e,t,s){(s||au).removeEventListener(r,e._wrapper||e,t)}function j1(r,e){if(!(Be(r.data.on)&&Be(e.data.on))){var t=e.data.on||{},s=r.data.on||{};au=e.elm||r.elm,AO(t),sC(t,s,TO,CC,EO,e.context),au=void 0}}var kO={create:j1,update:j1,destroy:function(r){return j1(r,mi)}},ip;function E$(r,e){if(!(Be(r.data.domProps)&&Be(e.data.domProps))){var t,s,n=e.elm,i=r.data.domProps||{},a=e.data.domProps||{};(z(a.__ob__)||Ct(a._v_attr_proxy))&&(a=e.data.domProps=gt({},a));for(t in i)t in a||(n[t]="");for(t in a){if(s=a[t],t==="textContent"||t==="innerHTML"){if(e.children&&(e.children.length=0),s===i[t])continue;n.childNodes.length===1&&n.removeChild(n.childNodes[0])}if(t==="value"&&n.tagName!=="PROGRESS"){n._value=s;var o=Be(s)?"":String(s);DO(n,o)&&(n.value=o)}else if(t==="innerHTML"&&Cy(n.tagName)&&Be(n.innerHTML)){ip=ip||document.createElement("div"),ip.innerHTML="<svg>".concat(s,"</svg>");for(var l=ip.firstChild;n.firstChild;)n.removeChild(n.firstChild);for(;l.firstChild;)n.appendChild(l.firstChild)}else if(s!==i[t])try{n[t]=s}catch{}}}}function DO(r,e){return!r.composing&&(r.tagName==="OPTION"||MO(r,e)||RO(r,e))}function MO(r,e){var t=!0;try{t=document.activeElement!==r}catch{}return t&&r.value!==e}function RO(r,e){var t=r.value,s=r._vModifiers;if(z(s)){if(s.number)return eu(t)!==eu(e);if(s.trim)return t.trim()!==e.trim()}return t!==e}var IO={create:E$,update:E$},FO=Wa(function(r){var e={},t=/;(?![^(]*\))/g,s=/:(.+)/;return r.split(t).forEach(function(n){if(n){var i=n.split(s);i.length>1&&(e[i[0].trim()]=i[1].trim())}}),e});function V1(r){var e=PC(r.style);return r.staticStyle?gt(r.staticStyle,e):e}function PC(r){return Array.isArray(r)?Hx(r):typeof r=="string"?FO(r):r}function HO(r,e){for(var t={},s,n=r;n.componentInstance;)n=n.componentInstance._vnode,n&&n.data&&(s=V1(n.data))&&gt(t,s);(s=V1(r.data))&&gt(t,s);for(var i=r;i=i.parent;)i.data&&(s=V1(i.data))&&gt(t,s);return t}var BO=/^--/,O$=/\s*!important$/,T$=function(r,e,t){if(BO.test(e))r.style.setProperty(e,t);else if(O$.test(t))r.style.setProperty(Ju(e),t.replace(O$,""),"important");else{var s=jO(e);if(Array.isArray(t))for(var n=0,i=t.length;n<i;n++)r.style[s]=t[n];else r.style[s]=t}},k$=["Webkit","Moz","ms"],ap,jO=Wa(function(r){if(ap=ap||document.createElement("div").style,r=Sa(r),r!=="filter"&&r in ap)return r;for(var e=r.charAt(0).toUpperCase()+r.slice(1),t=0;t<k$.length;t++){var s=k$[t]+e;if(s in ap)return s}});function D$(r,e){var t=e.data,s=r.data;if(!(Be(t.staticStyle)&&Be(t.style)&&Be(s.staticStyle)&&Be(s.style))){var n,i,a=e.elm,o=s.staticStyle,l=s.normalizedStyle||s.style||{},c=o||l,u=PC(e.data.style)||{};e.data.normalizedStyle=z(u.__ob__)?gt({},u):u;var d=HO(e);for(i in c)Be(d[i])&&T$(a,i,"");for(i in d)n=d[i],T$(a,i,n??"")}}var VO={create:D$,update:D$},LC=/\s+/;function AC(r,e){if(!(!e||!(e=e.trim())))if(r.classList)e.indexOf(" ")>-1?e.split(LC).forEach(function(s){return r.classList.add(s)}):r.classList.add(e);else{var t=" ".concat(r.getAttribute("class")||""," ");t.indexOf(" "+e+" ")<0&&r.setAttribute("class",(t+e).trim())}}function EC(r,e){if(!(!e||!(e=e.trim())))if(r.classList)e.indexOf(" ")>-1?e.split(LC).forEach(function(n){return r.classList.remove(n)}):r.classList.remove(e),r.classList.length||r.removeAttribute("class");else{for(var t=" ".concat(r.getAttribute("class")||""," "),s=" "+e+" ";t.indexOf(s)>=0;)t=t.replace(s," ");t=t.trim(),t?r.setAttribute("class",t):r.removeAttribute("class")}}function OC(r){if(r){if(typeof r=="object"){var e={};return r.css!==!1&&gt(e,M$(r.name||"v")),gt(e,r),e}else if(typeof r=="string")return M$(r)}}var M$=Wa(function(r){return{enterClass:"".concat(r,"-enter"),enterToClass:"".concat(r,"-enter-to"),enterActiveClass:"".concat(r,"-enter-active"),leaveClass:"".concat(r,"-leave"),leaveToClass:"".concat(r,"-leave-to"),leaveActiveClass:"".concat(r,"-leave-active")}}),TC=Gr&&!bl,Lo="transition",N1="animation",Bp="transition",_h="transitionend",lv="animation",kC="animationend";TC&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(Bp="WebkitTransition",_h="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(lv="WebkitAnimation",kC="webkitAnimationEnd"));var R$=Gr?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(r){return r()};function DC(r){R$(function(){R$(r)})}function _a(r,e){var t=r._transitionClasses||(r._transitionClasses=[]);t.indexOf(e)<0&&(t.push(e),AC(r,e))}function Dn(r,e){r._transitionClasses&&Ii(r._transitionClasses,e),EC(r,e)}function MC(r,e,t){var s=RC(r,e),n=s.type,i=s.timeout,a=s.propCount;if(!n)return t();var o=n===Lo?_h:kC,l=0,c=function(){r.removeEventListener(o,u),t()},u=function(d){d.target===r&&++l>=a&&c()};setTimeout(function(){l<a&&c()},i+1),r.addEventListener(o,u)}var NO=/\b(transform|all)(,|$)/;function RC(r,e){var t=window.getComputedStyle(r),s=(t[Bp+"Delay"]||"").split(", "),n=(t[Bp+"Duration"]||"").split(", "),i=I$(s,n),a=(t[lv+"Delay"]||"").split(", "),o=(t[lv+"Duration"]||"").split(", "),l=I$(a,o),c,u=0,d=0;e===Lo?i>0&&(c=Lo,u=i,d=n.length):e===N1?l>0&&(c=N1,u=l,d=o.length):(u=Math.max(i,l),c=u>0?i>l?Lo:N1:null,d=c?c===Lo?n.length:o.length:0);var p=c===Lo&&NO.test(t[Bp+"Property"]);return{type:c,timeout:u,propCount:d,hasTransform:p}}function I$(r,e){for(;r.length<e.length;)r=r.concat(r);return Math.max.apply(null,e.map(function(t,s){return F$(t)+F$(r[s])}))}function F$(r){return Number(r.slice(0,-1).replace(",","."))*1e3}function cv(r,e){var t=r.elm;z(t._leaveCb)&&(t._leaveCb.cancelled=!0,t._leaveCb());var s=OC(r.data.transition);if(!Be(s)&&!(z(t._enterCb)||t.nodeType!==1)){for(var n=s.css,i=s.type,a=s.enterClass,o=s.enterToClass,l=s.enterActiveClass,c=s.appearClass,u=s.appearToClass,d=s.appearActiveClass,p=s.beforeEnter,h=s.enter,m=s.afterEnter,g=s.enterCancelled,v=s.beforeAppear,y=s.appear,C=s.afterAppear,x=s.appearCancelled,S=s.duration,E=va,G=va.$vnode;G&&G.parent;)E=G.context,G=G.parent;var K=!E._isMounted||!r.isRootInsert;if(!(K&&!y&&y!=="")){var le=K&&c?c:a,ue=K&&d?d:l,ie=K&&u?u:o,fe=K&&v||p,k=K&&ot(y)?y:h,T=K&&C||m,P=K&&x||g,O=eu(yr(S)?S.enter:S),j=n!==!1&&!bl,V=Py(k),U=t._enterCb=lh(function(){j&&(Dn(t,ie),Dn(t,ue)),U.cancelled?(j&&Dn(t,le),P&&P(t)):T&&T(t),t._enterCb=null});r.data.show||fi(r,"insert",function(){var N=t.parentNode,J=N&&N._pending&&N._pending[r.key];J&&J.tag===r.tag&&J.elm._leaveCb&&J.elm._leaveCb(),k&&k(t,U)}),fe&&fe(t),j&&(_a(t,le),_a(t,ue),DC(function(){Dn(t,le),U.cancelled||(_a(t,ie),V||(FC(O)?setTimeout(U,O):MC(t,i,U)))})),r.data.show&&(e&&e(),k&&k(t,U)),!j&&!V&&U()}}}function IC(r,e){var t=r.elm;z(t._enterCb)&&(t._enterCb.cancelled=!0,t._enterCb());var s=OC(r.data.transition);if(Be(s)||t.nodeType!==1)return e();if(z(t._leaveCb))return;var n=s.css,i=s.type,a=s.leaveClass,o=s.leaveToClass,l=s.leaveActiveClass,c=s.beforeLeave,u=s.leave,d=s.afterLeave,p=s.leaveCancelled,h=s.delayLeave,m=s.duration,g=n!==!1&&!bl,v=Py(u),y=eu(yr(m)?m.leave:m),C=t._leaveCb=lh(function(){t.parentNode&&t.parentNode._pending&&(t.parentNode._pending[r.key]=null),g&&(Dn(t,o),Dn(t,l)),C.cancelled?(g&&Dn(t,a),p&&p(t)):(e(),d&&d(t)),t._leaveCb=null});h?h(x):x();function x(){C.cancelled||(!r.data.show&&t.parentNode&&((t.parentNode._pending||(t.parentNode._pending={}))[r.key]=r),c&&c(t),g&&(_a(t,a),_a(t,l),DC(function(){Dn(t,a),C.cancelled||(_a(t,o),v||(FC(y)?setTimeout(C,y):MC(t,i,C)))})),u&&u(t,C),!g&&!v&&C())}}function FC(r){return typeof r=="number"&&!isNaN(r)}function Py(r){if(Be(r))return!1;var e=r.fns;return z(e)?Py(Array.isArray(e)?e[0]:e):(r._length||r.length)>1}function H$(r,e){e.data.show!==!0&&cv(e)}var zO=Gr?{create:H$,activate:H$,remove:function(r,e){r.data.show!==!0?IC(r,e):e()}}:{},UO=[PO,LO,kO,IO,VO,zO],WO=UO.concat(CO),GO=bO({nodeOps:gO,modules:WO});bl&&document.addEventListener("selectionchange",function(){var r=document.activeElement;r&&r.vmodel&&Ly(r,"input")});var HC={inserted:function(r,e,t,s){t.tag==="select"?(s.elm&&!s.elm._vOptions?fi(t,"postpatch",function(){HC.componentUpdated(r,e,t)}):B$(r,e,t.context),r._vOptions=[].map.call(r.options,yh)):(t.tag==="textarea"||ov(r.type))&&(r._vModifiers=e.modifiers,e.modifiers.lazy||(r.addEventListener("compositionstart",qO),r.addEventListener("compositionend",N$),r.addEventListener("change",N$),bl&&(r.vmodel=!0)))},componentUpdated:function(r,e,t){if(t.tag==="select"){B$(r,e,t.context);var s=r._vOptions,n=r._vOptions=[].map.call(r.options,yh);if(n.some(function(a,o){return!wa(a,s[o])})){var i=r.multiple?e.value.some(function(a){return V$(a,n)}):e.value!==e.oldValue&&V$(e.value,n);i&&Ly(r,"change")}}}};function B$(r,e,t){j$(r,e),(yl||zx)&&setTimeout(function(){j$(r,e)},0)}function j$(r,e,t){var s=e.value,n=r.multiple;if(!(n&&!Array.isArray(s))){for(var i,a,o=0,l=r.options.length;o<l;o++)if(a=r.options[o],n)i=jx(s,yh(a))>-1,a.selected!==i&&(a.selected=i);else if(wa(yh(a),s)){r.selectedIndex!==o&&(r.selectedIndex=o);return}n||(r.selectedIndex=-1)}}function V$(r,e){return e.every(function(t){return!wa(t,r)})}function yh(r){return"_value"in r?r._value:r.value}function qO(r){r.target.composing=!0}function N$(r){r.target.composing&&(r.target.composing=!1,Ly(r.target,"input"))}function Ly(r,e){var t=document.createEvent("HTMLEvents");t.initEvent(e,!0,!0),r.dispatchEvent(t)}function uv(r){return r.componentInstance&&(!r.data||!r.data.transition)?uv(r.componentInstance._vnode):r}var ZO={bind:function(r,e,t){var s=e.value;t=uv(t);var n=t.data&&t.data.transition,i=r.__vOriginalDisplay=r.style.display==="none"?"":r.style.display;s&&n?(t.data.show=!0,cv(t,function(){r.style.display=i})):r.style.display=s?i:"none"},update:function(r,e,t){var s=e.value,n=e.oldValue;if(!s!=!n){t=uv(t);var i=t.data&&t.data.transition;i?(t.data.show=!0,s?cv(t,function(){r.style.display=r.__vOriginalDisplay}):IC(t,function(){r.style.display="none"})):r.style.display=s?r.__vOriginalDisplay:"none"}},unbind:function(r,e,t,s,n){n||(r.style.display=r.__vOriginalDisplay)}},YO={model:HC,show:ZO},BC={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function dv(r){var e=r&&r.componentOptions;return e&&e.Ctor.options.abstract?dv(uC(e.children)):r}function jC(r){var e={},t=r.$options;for(var s in t.propsData)e[s]=r[s];var n=t._parentListeners;for(var s in n)e[Sa(s)]=n[s];return e}function z$(r,e){if(/\d-keep-alive$/.test(e.tag))return r("keep-alive",{props:e.componentOptions.propsData})}function KO(r){for(;r=r.parent;)if(r.data.transition)return!0}function XO(r,e){return e.key===r.key&&e.tag===r.tag}var QO=function(r){return r.tag||ru(r)},JO=function(r){return r.name==="show"},eT={name:"transition",props:BC,abstract:!0,render:function(r){var e=this,t=this.$slots.default;if(t&&(t=t.filter(QO),!!t.length)){var s=this.mode,n=t[0];if(KO(this.$vnode))return n;var i=dv(n);if(!i)return n;if(this._leaving)return z$(r,n);var a="__transition-".concat(this._uid,"-");i.key=i.key==null?i.isComment?a+"comment":a+i.tag:Qu(i.key)?String(i.key).indexOf(a)===0?i.key:a+i.key:i.key;var o=(i.data||(i.data={})).transition=jC(this),l=this._vnode,c=dv(l);if(i.data.directives&&i.data.directives.some(JO)&&(i.data.show=!0),c&&c.data&&!XO(i,c)&&!ru(c)&&!(c.componentInstance&&c.componentInstance._vnode.isComment)){var u=c.data.transition=gt({},o);if(s==="out-in")return this._leaving=!0,fi(u,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),z$(r,n);if(s==="in-out"){if(ru(i))return l;var d,p=function(){d()};fi(o,"afterEnter",p),fi(o,"enterCancelled",p),fi(u,"delayLeave",function(h){d=h})}}return n}}},VC=gt({tag:String,moveClass:String},BC);delete VC.mode;var tT={props:VC,beforeMount:function(){var r=this,e=this._update;this._update=function(t,s){var n=mC(r);r.__patch__(r._vnode,r.kept,!1,!0),r._vnode=r.kept,n(),e.call(r,t,s)}},render:function(r){for(var e=this.tag||this.$vnode.data.tag||"span",t=Object.create(null),s=this.prevChildren=this.children,n=this.$slots.default||[],i=this.children=[],a=jC(this),o=0;o<n.length;o++){var l=n[o];l.tag&&l.key!=null&&String(l.key).indexOf("__vlist")!==0&&(i.push(l),t[l.key]=l,(l.data||(l.data={})).transition=a)}if(s){for(var c=[],u=[],o=0;o<s.length;o++){var l=s[o];l.data.transition=a,l.data.pos=l.elm.getBoundingClientRect(),t[l.key]?c.push(l):u.push(l)}this.kept=r(e,null,c),this.removed=u}return r(e,null,i)},updated:function(){var r=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";!r.length||!this.hasMove(r[0].elm,e)||(r.forEach(rT),r.forEach(sT),r.forEach(nT),this._reflow=document.body.offsetHeight,r.forEach(function(t){if(t.data.moved){var s=t.elm,n=s.style;_a(s,e),n.transform=n.WebkitTransform=n.transitionDuration="",s.addEventListener(_h,s._moveCb=function i(a){a&&a.target!==s||(!a||/transform$/.test(a.propertyName))&&(s.removeEventListener(_h,i),s._moveCb=null,Dn(s,e))})}}))},methods:{hasMove:function(r,e){if(!TC)return!1;if(this._hasMove)return this._hasMove;var t=r.cloneNode();r._transitionClasses&&r._transitionClasses.forEach(function(n){EC(t,n)}),AC(t,e),t.style.display="none",this.$el.appendChild(t);var s=RC(t);return this.$el.removeChild(t),this._hasMove=s.hasTransform}}};function rT(r){r.elm._moveCb&&r.elm._moveCb(),r.elm._enterCb&&r.elm._enterCb()}function sT(r){r.data.newPos=r.elm.getBoundingClientRect()}function nT(r){var e=r.data.pos,t=r.data.newPos,s=e.left-t.left,n=e.top-t.top;if(s||n){r.data.moved=!0;var i=r.elm.style;i.transform=i.WebkitTransform="translate(".concat(s,"px,").concat(n,"px)"),i.transitionDuration="0s"}}var iT={Transition:eT,TransitionGroup:tT};b.config.mustUseProp=WE;b.config.isReservedTag=xC;b.config.isReservedAttr=zE;b.config.getTagNamespace=tO;b.config.isUnknownElement=rO;gt(b.options.directives,YO);gt(b.options.components,iT);b.prototype.__patch__=Gr?GO:St;b.prototype.$mount=function(r,e){return r=r&&Gr?sO(r):void 0,XA(this,r,e)};Gr&&setTimeout(function(){bs.devtools&&ch&&ch.emit("init",b)},0);const aT=Object.freeze(Object.defineProperty({__proto__:null,EffectScope:uy,computed:FL,customRef:TL,default:b,defineAsyncComponent:LA,defineComponent:NA,del:ly,effectScope:NL,getCurrentInstance:_L,getCurrentScope:tC,h:SA,inject:GL,isProxy:xL,isReactive:ga,isReadonly:Ga,isRef:or,isShallow:dh,markRaw:CL,mergeDefaults:fA,nextTick:om,onActivated:RA,onBeforeMount:EA,onBeforeUnmount:DA,onBeforeUpdate:TA,onDeactivated:IA,onErrorCaptured:VA,onMounted:OA,onRenderTracked:HA,onRenderTriggered:BA,onScopeDispose:UL,onServerPrefetch:FA,onUnmounted:MA,onUpdated:kA,provide:WL,proxyRefs:OL,reactive:wL,readonly:Qx,ref:PL,set:nm,shallowReactive:cy,shallowReadonly:IL,shallowRef:LL,toRaw:Yx,toRef:Xx,toRefs:kL,triggerRef:AL,unref:EL,useAttrs:pA,useCssModule:CA,useCssVars:PA,useListeners:hA,useSlots:dA,version:hC,watch:VL,watchEffect:BL,watchPostEffect:eC,watchSyncEffect:jL},Symbol.toStringTag,{value:"Module"}));/**
* vue-class-component v7.2.6
* (c) 2015-present Evan You
* @license MIT
*/function jp(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jp=function(e){return typeof e}:jp=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jp(r)}function oT(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function lT(r){return cT(r)||uT(r)||dT()}function cT(r){if(Array.isArray(r)){for(var e=0,t=new Array(r.length);e<r.length;e++)t[e]=r[e];return t}}function uT(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)}function dT(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function pT(){return typeof Reflect<"u"&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys}function hT(r,e){z1(r,e),Object.getOwnPropertyNames(e.prototype).forEach(function(t){z1(r.prototype,e.prototype,t)}),Object.getOwnPropertyNames(e).forEach(function(t){z1(r,e,t)})}function z1(r,e,t){var s=t?Reflect.getOwnMetadataKeys(e,t):Reflect.getOwnMetadataKeys(e);s.forEach(function(n){var i=t?Reflect.getOwnMetadata(n,e,t):Reflect.getOwnMetadata(n,e);t?Reflect.defineMetadata(n,i,r,t):Reflect.defineMetadata(n,i,r)})}var fT={__proto__:[]},mT=fT instanceof Array;function sd(r){return function(e,t,s){var n=typeof e=="function"?e:e.constructor;n.__decorators__||(n.__decorators__=[]),typeof s!="number"&&(s=void 0),n.__decorators__.push(function(i){return r(i,t,s)})}}function Z(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return b.extend({mixins:e})}function gT(r){var e=jp(r);return r==null||e!=="object"&&e!=="function"}function vT(r,e){var t=e.prototype._init;e.prototype._init=function(){var i=this,a=Object.getOwnPropertyNames(r);if(r.$options.props)for(var o in r.$options.props)r.hasOwnProperty(o)||a.push(o);a.forEach(function(l){Object.defineProperty(i,l,{get:function(){return r[l]},set:function(u){r[l]=u},configurable:!0})})};var s=new e;e.prototype._init=t;var n={};return Object.keys(s).forEach(function(i){s[i]!==void 0&&(n[i]=s[i])}),n}var pv=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function U$(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.name=e.name||r._componentTag||r.name;var t=r.prototype;Object.getOwnPropertyNames(t).forEach(function(o){if(o!=="constructor"){if(pv.indexOf(o)>-1){e[o]=t[o];return}var l=Object.getOwnPropertyDescriptor(t,o);l.value!==void 0?typeof l.value=="function"?(e.methods||(e.methods={}))[o]=l.value:(e.mixins||(e.mixins=[])).push({data:function(){return oT({},o,l.value)}}):(l.get||l.set)&&((e.computed||(e.computed={}))[o]={get:l.get,set:l.set})}}),(e.mixins||(e.mixins=[])).push({data:function(){return vT(this,r)}});var s=r.__decorators__;s&&(s.forEach(function(o){return o(e)}),delete r.__decorators__);var n=Object.getPrototypeOf(r.prototype),i=n instanceof b?n.constructor:b,a=i.extend(e);return yT(a,r,i),pT()&&hT(a,r),a}var _T={prototype:!0,arguments:!0,callee:!0,caller:!0};function yT(r,e,t){Object.getOwnPropertyNames(e).forEach(function(s){if(!_T[s]){var n=Object.getOwnPropertyDescriptor(r,s);if(!(n&&!n.configurable)){var i=Object.getOwnPropertyDescriptor(e,s);if(!mT){if(s==="cid")return;var a=Object.getOwnPropertyDescriptor(t,s);if(!gT(i.value)&&a&&a.value===i.value)return}Object.defineProperty(r,s,i)}}})}function L(r){return typeof r=="function"?U$(r):function(e){return U$(e,r)}}L.registerHooks=function(e){pv.push.apply(pv,lT(e))};L.registerHooks(["beforeRouteEnter","beforeRouteUpdate"]);const Fr={silent:Number.NEGATIVE_INFINITY,fatal:0,error:0,warn:1,log:2,info:3,success:3,fail:3,ready:3,start:3,box:3,debug:4,trace:5,verbose:Number.POSITIVE_INFINITY},W$={silent:{level:-1},fatal:{level:Fr.fatal},error:{level:Fr.error},warn:{level:Fr.warn},log:{level:Fr.log},info:{level:Fr.info},success:{level:Fr.success},fail:{level:Fr.fail},ready:{level:Fr.info},start:{level:Fr.info},box:{level:Fr.info},debug:{level:Fr.debug},trace:{level:Fr.trace},verbose:{level:Fr.verbose}};function U1(r){return r!==null&&typeof r=="object"}function hv(r,e,t=".",s){if(!U1(e))return hv(r,{},t);const n=Object.assign({},e);for(const i in r){if(i==="__proto__"||i==="constructor")continue;const a=r[i];a!=null&&(Array.isArray(a)&&Array.isArray(n[i])?n[i]=[...a,...n[i]]:U1(a)&&U1(n[i])?n[i]=hv(a,n[i],(t?`${t}.`:"")+i.toString()):n[i]=a)}return n}function bT(r){return(...e)=>e.reduce((t,s)=>hv(t,s,""),{})}const $T=bT();function ST(r){return Object.prototype.toString.call(r)==="[object Object]"}function wT(r){return!(!ST(r)||!r.message&&!r.args||r.stack)}let W1=!1;const G$=[];class ur{constructor(e={}){const t=e.types||W$;this.options=$T({...e,defaults:{...e.defaults},level:G1(e.level,t),reporters:[...e.reporters||[]]},{types:W$,throttle:1e3,throttleMin:5,formatOptions:{date:!0,colors:!1,compact:!0}});for(const s in t){const n={type:s,...this.options.defaults,...t[s]};this[s]=this._wrapLogFn(n),this[s].raw=this._wrapLogFn(n,!0)}this.options.mockFn&&this.mockTypes(),this._lastLog={}}get level(){return this.options.level}set level(e){this.options.level=G1(e,this.options.types,this.options.level)}prompt(e,t){if(!this.options.prompt)throw new Error("prompt is not supported!");return this.options.prompt(e,t)}create(e){const t=new ur({...this.options,...e});return this._mockFn&&t.mockTypes(this._mockFn),t}withDefaults(e){return this.create({...this.options,defaults:{...this.options.defaults,...e}})}withTag(e){return this.withDefaults({tag:this.options.defaults.tag?this.options.defaults.tag+":"+e:e})}addReporter(e){return this.options.reporters.push(e),this}removeReporter(e){if(e){const t=this.options.reporters.indexOf(e);if(t>=0)return this.options.reporters.splice(t,1)}else this.options.reporters.splice(0);return this}setReporters(e){return this.options.reporters=Array.isArray(e)?e:[e],this}wrapAll(){this.wrapConsole(),this.wrapStd()}restoreAll(){this.restoreConsole(),this.restoreStd()}wrapConsole(){for(const e in this.options.types)console["__"+e]||(console["__"+e]=console[e]),console[e]=this[e].raw}restoreConsole(){for(const e in this.options.types)console["__"+e]&&(console[e]=console["__"+e],delete console["__"+e])}wrapStd(){this._wrapStream(this.options.stdout,"log"),this._wrapStream(this.options.stderr,"log")}_wrapStream(e,t){e&&(e.__write||(e.__write=e.write),e.write=s=>{this[t].raw(String(s).trim())})}restoreStd(){this._restoreStream(this.options.stdout),this._restoreStream(this.options.stderr)}_restoreStream(e){e&&e.__write&&(e.write=e.__write,delete e.__write)}pauseLogs(){W1=!0}resumeLogs(){W1=!1;const e=G$.splice(0);for(const t of e)t[0]._logFn(t[1],t[2])}mockTypes(e){const t=e||this.options.mockFn;if(this._mockFn=t,typeof t=="function")for(const s in this.options.types)this[s]=t(s,this.options.types[s])||this[s],this[s].raw=this[s]}_wrapLogFn(e,t){return(...s)=>{if(W1){G$.push([this,e,s,t]);return}return this._logFn(e,s,t)}}_logFn(e,t,s){if((e.level||0)>this.level)return!1;const n={date:new Date,args:[],...e,level:G1(e.level,this.options.types)};!s&&t.length===1&&wT(t[0])?Object.assign(n,t[0]):n.args=[...t],n.message&&(n.args.unshift(n.message),delete n.message),n.additional&&(Array.isArray(n.additional)||(n.additional=n.additional.split(`
`)),n.args.push(`
`+n.additional.join(`
`)),delete n.additional),n.type=typeof n.type=="string"?n.type.toLowerCase():"log",n.tag=typeof n.tag=="string"?n.tag:"";const i=(o=!1)=>{const l=(this._lastLog.count||0)-this.options.throttleMin;if(this._lastLog.object&&l>0){const c=[...this._lastLog.object.args];l>1&&c.push(`(repeated ${l} times)`),this._log({...this._lastLog.object,args:c}),this._lastLog.count=1}o&&(this._lastLog.object=n,this._log(n))};clearTimeout(this._lastLog.timeout);const a=this._lastLog.time&&n.date?n.date.getTime()-this._lastLog.time.getTime():0;if(this._lastLog.time=n.date,a<this.options.throttle)try{const o=JSON.stringify([n.type,n.tag,n.args]),l=this._lastLog.serialized===o;if(this._lastLog.serialized=o,l&&(this._lastLog.count=(this._lastLog.count||0)+1,this._lastLog.count>this.options.throttleMin)){this._lastLog.timeout=setTimeout(i,this.options.throttle);return}}catch{}i(!0)}_log(e){for(const t of this.options.reporters)t.log(e,{options:this.options})}}function G1(r,e={},t=3){return r===void 0?t:typeof r=="number"?r:e[r]&&e[r].level!==void 0?e[r].level:t}ur.prototype.add=ur.prototype.addReporter;ur.prototype.remove=ur.prototype.removeReporter;ur.prototype.clear=ur.prototype.removeReporter;ur.prototype.withScope=ur.prototype.withTag;ur.prototype.mock=ur.prototype.mockTypes;ur.prototype.pause=ur.prototype.pauseLogs;ur.prototype.resume=ur.prototype.resumeLogs;function xT(r={}){return new ur(r)}class CT{constructor(e){this.options={...e},this.defaultColor="#7f8c8d",this.levelColorMap={0:"#c0392b",1:"#f39c12",3:"#00BCD4"},this.typeColorMap={success:"#2ecc71"}}_getLogFn(e){return e<1?console.__error||console.error:e===1?console.__warn||console.warn:console.__log||console.log}log(e){const t=this._getLogFn(e.level),s=e.type==="log"?"":e.type,n=e.tag||"",a=`
background: ${this.typeColorMap[e.type]||this.levelColorMap[e.level]||this.defaultColor};
border-radius: 0.5em;
color: white;
font-weight: bold;
padding: 2px 0.5em;
`,o=`%c${[n,s].filter(Boolean).join(":")}`;typeof e.args[0]=="string"?t(`${o}%c ${e.args[0]}`,a,"",...e.args.slice(1)):t(o,a,...e.args)}}function PT(r={}){return xT({reporters:r.reporters||[new CT({})],prompt(t,s={}){return s.type==="confirm"?Promise.resolve(confirm(t)):Promise.resolve(prompt(t))},...r})}const ye=PT();ye.wrapAll();ye.level=Fr.warn;var LT="M5 5H7V11H5V5M10 5H8V11H10V5M5 19H7V13H5V19M10 13H8V19H10V17H15V15H10V13M2 21H4V3H2V21M20 3V7H13V5H11V11H13V9H20V15H18V13H16V19H18V17H20V21H22V3H20Z",AT="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",ET="M15,14C12.33,14 7,15.33 7,18V20H23V18C23,15.33 17.67,14 15,14M6,10V7H4V10H1V12H4V15H6V12H9V10M15,12A4,4 0 0,0 19,8A4,4 0 0,0 15,4A4,4 0 0,0 11,8A4,4 0 0,0 15,12Z",OT="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",TT="M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",kT="M16,20H20V16H16M16,14H20V10H16M10,8H14V4H10M16,8H20V4H16M10,14H14V10H10M4,14H8V10H4M4,20H8V16H4M10,20H14V16H10M4,8H8V4H4V8Z",DT="M3,3H21V7H3V3M4,8H20V21H4V8M9.5,11A0.5,0.5 0 0,0 9,11.5V13H15V11.5A0.5,0.5 0 0,0 14.5,11H9.5Z",MT="M21 7H3V3H21V7M9.5 11H14.5C14.78 11 15 11.22 15 11.5V12.06C15.87 10.83 17.35 10 19 10C19.34 10 19.68 10.04 20 10.11V8H4V21H13.03C13 20.9 13 20.8 13 20.7V17.2C13 16.24 13.5 15.34 14.2 14.74V14.5C14.2 14 14.32 13.47 14.5 13H9V11.5C9 11.22 9.22 11 9.5 11M23 17.3V20.8C23 21.4 22.4 22 21.7 22H16.2C15.6 22 15 21.4 15 20.7V17.2C15 16.6 15.6 16 16.2 16V14.5C16.2 13.1 17.6 12 19 12S21.8 13.1 21.8 14.5V16C22.4 16 23 16.6 23 17.3M20.5 14.5C20.5 13.7 19.8 13.2 19 13.2S17.5 13.7 17.5 14.5V16H20.5V14.5Z",RT="M21 7H3V3H21V7M13 19C13 19.7 13.13 20.37 13.35 21H4V8H20V13.09C19.67 13.04 19.34 13 19 13C15.69 13 13 15.69 13 19M15 13V11.5C15 11.22 14.78 11 14.5 11H9.5C9.22 11 9 11.22 9 11.5V13H15M20 18V15H18V18H15V20H18V23H20V20H23V18H20Z",IT="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",FT="M11,4H13V16L18.5,10.5L19.92,11.92L12,19.84L4.08,11.92L5.5,10.5L11,16V4Z",HT="M9,11H15V8L19,12L15,16V13H9V16L5,12L9,8V11M2,20V4H4V20H2M20,20V4H22V20H20Z",BT="M2,20V22H22V20H13V5.83L18.5,11.33L19.92,9.92L12,2L4.08,9.92L5.5,11.33L11,5.83V20H2Z",jT="M13,9V15H16L12,19L8,15H11V9H8L12,5L16,9H13M4,2H20V4H4V2M4,20H20V22H4V20Z",VT="M14.8 7V5.5C14.8 4.1 13.4 3 12 3S9.2 4.1 9.2 5.5V7C8.6 7 8 7.6 8 8.2V11.7C8 12.4 8.6 13 9.2 13H14.7C15.4 13 16 12.4 16 11.8V8.3C16 7.6 15.4 7 14.8 7M13.5 7H10.5V5.5C10.5 4.7 11.2 4.2 12 4.2S13.5 4.7 13.5 5.5V7M6 17V20L2 16L6 12V15H18V12L22 16L18 20V17H6Z",NT="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",zT="M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z",UT="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",WT="M12,2L16,6H13V13.85L19.53,17.61L21,15.03L22.5,20.5L17,21.96L18.53,19.35L12,15.58L5.47,19.35L7,21.96L1.5,20.5L3,15.03L4.47,17.61L11,13.85V6H8L12,2Z",GT="M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z",qT="M10,21H14A2,2 0 0,1 12,23A2,2 0 0,1 10,21M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M15,9H9V11H12.24L9,13.7V16H15V14H11.76L15,11.3V9Z",ZT="M4,4H7L9,2H15L17,4H20A2,2 0 0,1 22,6V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9Z",YT="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",KT="M11,15H13V17H11V15M11,7H13V13H11V7M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M12,19C8.14,19 5,15.86 5,12C5,8.14 8.14,5 12,5C15.86,5 19,8.14 19,12C19,15.86 15.86,19 12,19M20.5,20.5C22.66,18.31 24,15.31 24,12C24,8.69 22.66,5.69 20.5,3.5L19.42,4.58C21.32,6.5 22.5,9.11 22.5,12C22.5,14.9 21.32,17.5 19.42,19.42L20.5,20.5M4.58,19.42C2.68,17.5 1.5,14.9 1.5,12C1.5,9.11 2.68,6.5 4.58,4.58L3.5,3.5C1.34,5.69 0,8.69 0,12C0,15.31 1.34,18.31 3.5,20.5L4.58,19.42Z",XT="M3,14L3.5,14.07L8.07,9.5C7.89,8.85 8.06,8.11 8.59,7.59C9.37,6.8 10.63,6.8 11.41,7.59C11.94,8.11 12.11,8.85 11.93,9.5L14.5,12.07L15,12C15.18,12 15.35,12 15.5,12.07L19.07,8.5C19,8.35 19,8.18 19,8A2,2 0 0,1 21,6A2,2 0 0,1 23,8A2,2 0 0,1 21,10C20.82,10 20.65,10 20.5,9.93L16.93,13.5C17,13.65 17,13.82 17,14A2,2 0 0,1 15,16A2,2 0 0,1 13,14L13.07,13.5L10.5,10.93C10.18,11 9.82,11 9.5,10.93L4.93,15.5L5,16A2,2 0 0,1 3,18A2,2 0 0,1 1,16A2,2 0 0,1 3,14Z",QT="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",JT="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",ek="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",tk="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",rk="M19,19H5V5H15V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V11H19M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z",sk="M22,16A2,2 0 0,1 20,18H8C6.89,18 6,17.1 6,16V4C6,2.89 6.89,2 8,2H20A2,2 0 0,1 22,4V16M16,20V22H4A2,2 0 0,1 2,20V7H4V20H16Z",nk="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",ik="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",ak="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",ok="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",lk="M6,4H18V5H21V7H18V9H21V11H18V13H21V15H18V17H21V19H18V20H6V19H3V17H6V15H3V13H6V11H3V9H6V7H3V5H6V4M11,15V18H12V15H11M13,15V18H14V15H13M15,15V18H16V15H15Z",ck="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",uk="M12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12C2 6.5 6.5 2 12 2M12 4C7.58 4 4 7.58 4 12C4 16.42 7.58 20 12 20C16.42 20 20 16.42 20 12C20 7.58 16.42 4 12 4M12 5C15.87 5 19 8.13 19 12C19 13.93 18.22 15.68 16.95 16.95L12 12V5Z",dk="M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z",pk="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",hk="M21.86 12.5C21.1 11.63 20.15 11.13 19 11C19 9.05 18.32 7.4 16.96 6.04C15.6 4.68 13.95 4 12 4C10.42 4 9 4.47 7.75 5.43S5.67 7.62 5.25 9.15C4 9.43 2.96 10.08 2.17 11.1S1 13.28 1 14.58C1 16.09 1.54 17.38 2.61 18.43C3.69 19.5 5 20 6.5 20H18.5C19.75 20 20.81 19.56 21.69 18.69C22.56 17.81 23 16.75 23 15.5C23 14.35 22.62 13.35 21.86 12.5M13 17H11V15H13V17M13 13H11V7H13V13Z",fk="M13 19C13 19.34 13.04 19.67 13.09 20H6.5C5 20 3.69 19.5 2.61 18.43C1.54 17.38 1 16.09 1 14.58C1 13.28 1.39 12.12 2.17 11.1S4 9.43 5.25 9.15C5.67 7.62 6.5 6.38 7.75 5.43S10.42 4 12 4C13.95 4 15.6 4.68 16.96 6.04C18.32 7.4 19 9.05 19 11C20.15 11.13 21.1 11.63 21.86 12.5C22.37 13.07 22.7 13.71 22.86 14.42C21.82 13.54 20.5 13 19 13C15.69 13 13 15.69 13 19M17.75 19.43L16.16 17.84L15 19L17.75 22L22.5 17.25L21.34 15.84L17.75 19.43Z",mk="M5,3H7V5H5V10A2,2 0 0,1 3,12A2,2 0 0,1 5,14V19H7V21H5C3.93,20.73 3,20.1 3,19V15A2,2 0 0,0 1,13H0V11H1A2,2 0 0,0 3,9V5A2,2 0 0,1 5,3M19,3A2,2 0 0,1 21,5V9A2,2 0 0,0 23,11H24V13H23A2,2 0 0,0 21,15V19A2,2 0 0,1 19,21H17V19H19V14A2,2 0 0,1 21,12A2,2 0 0,1 19,10V5H17V3H19M12,15A1,1 0 0,1 13,16A1,1 0 0,1 12,17A1,1 0 0,1 11,16A1,1 0 0,1 12,15M8,15A1,1 0 0,1 9,16A1,1 0 0,1 8,17A1,1 0 0,1 7,16A1,1 0 0,1 8,15M16,15A1,1 0 0,1 17,16A1,1 0 0,1 16,17A1,1 0 0,1 15,16A1,1 0 0,1 16,15Z",gk="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",vk="M15.9,18.45C17.25,18.45 18.35,17.35 18.35,16C18.35,14.65 17.25,13.55 15.9,13.55C14.54,13.55 13.45,14.65 13.45,16C13.45,17.35 14.54,18.45 15.9,18.45M21.1,16.68L22.58,17.84C22.71,17.95 22.75,18.13 22.66,18.29L21.26,20.71C21.17,20.86 21,20.92 20.83,20.86L19.09,20.16C18.73,20.44 18.33,20.67 17.91,20.85L17.64,22.7C17.62,22.87 17.47,23 17.3,23H14.5C14.32,23 14.18,22.87 14.15,22.7L13.89,20.85C13.46,20.67 13.07,20.44 12.71,20.16L10.96,20.86C10.81,20.92 10.62,20.86 10.54,20.71L9.14,18.29C9.05,18.13 9.09,17.95 9.22,17.84L10.7,16.68L10.65,16L10.7,15.31L9.22,14.16C9.09,14.05 9.05,13.86 9.14,13.71L10.54,11.29C10.62,11.13 10.81,11.07 10.96,11.13L12.71,11.84C13.07,11.56 13.46,11.32 13.89,11.15L14.15,9.29C14.18,9.13 14.32,9 14.5,9H17.3C17.47,9 17.62,9.13 17.64,9.29L17.91,11.15C18.33,11.32 18.73,11.56 19.09,11.84L20.83,11.13C21,11.07 21.17,11.13 21.26,11.29L22.66,13.71C22.75,13.86 22.71,14.05 22.58,14.16L21.1,15.31L21.15,16L21.1,16.68M6.69,8.07C7.56,8.07 8.26,7.37 8.26,6.5C8.26,5.63 7.56,4.92 6.69,4.92A1.58,1.58 0 0,0 5.11,6.5C5.11,7.37 5.82,8.07 6.69,8.07M10.03,6.94L11,7.68C11.07,7.75 11.09,7.87 11.03,7.97L10.13,9.53C10.08,9.63 9.96,9.67 9.86,9.63L8.74,9.18L8,9.62L7.81,10.81C7.79,10.92 7.7,11 7.59,11H5.79C5.67,11 5.58,10.92 5.56,10.81L5.4,9.62L4.64,9.18L3.5,9.63C3.41,9.67 3.3,9.63 3.24,9.53L2.34,7.97C2.28,7.87 2.31,7.75 2.39,7.68L3.34,6.94L3.31,6.5L3.34,6.06L2.39,5.32C2.31,5.25 2.28,5.13 2.34,5.03L3.24,3.47C3.3,3.37 3.41,3.33 3.5,3.37L4.63,3.82L5.4,3.38L5.56,2.19C5.58,2.08 5.67,2 5.79,2H7.59C7.7,2 7.79,2.08 7.81,2.19L8,3.38L8.74,3.82L9.86,3.37C9.96,3.33 10.08,3.37 10.13,3.47L11.03,5.03C11.09,5.13 11.07,5.25 11,5.32L10.03,6.06L10.06,6.5L10.03,6.94Z",_k="M20,19V7H4V19H20M20,3A2,2 0 0,1 22,5V19A2,2 0 0,1 20,21H4A2,2 0 0,1 2,19V5C2,3.89 2.9,3 4,3H20M13,17V15H18V17H13M9.58,13L5.57,9H8.4L11.7,12.3C12.09,12.69 12.09,13.33 11.7,13.72L8.42,17H5.59L9.58,13Z",yk="M13,19V16H21V19H13M8.5,13L2.47,7H6.71L11.67,11.95C12.25,12.54 12.25,13.5 11.67,14.07L6.74,19H2.5L8.5,13Z",bk="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z",$k="M11,17H4A2,2 0 0,1 2,15V3A2,2 0 0,1 4,1H16V3H4V15H11V13L15,16L11,19V17M19,21V7H8V13H6V7A2,2 0 0,1 8,5H19A2,2 0 0,1 21,7V21A2,2 0 0,1 19,23H8A2,2 0 0,1 6,21V19H8V21H19Z",Sk="M17 3H5C3.89 3 3 3.9 3 5V19C3 20.1 3.89 21 5 21H19C20.1 21 21 20.1 21 19V7L17 3M19 19H5V5H16.17L19 7.83V19M12 12C10.34 12 9 13.34 9 15S10.34 18 12 18 15 16.66 15 15 13.66 12 12 12M6 6H15V10H6V6Z",wk="M17,22V20H20V17H22V20.5C22,20.89 21.84,21.24 21.54,21.54C21.24,21.84 20.89,22 20.5,22H17M7,22H3.5C3.11,22 2.76,21.84 2.46,21.54C2.16,21.24 2,20.89 2,20.5V17H4V20H7V22M17,2H20.5C20.89,2 21.24,2.16 21.54,2.46C21.84,2.76 22,3.11 22,3.5V7H20V4H17V2M7,2V4H4V7H2V3.5C2,3.11 2.16,2.76 2.46,2.46C2.76,2.16 3.11,2 3.5,2H7M13,17.25L17,14.95V10.36L13,12.66V17.25M12,10.92L16,8.63L12,6.28L8,8.63L12,10.92M7,14.95L11,17.25V12.66L7,10.36V14.95M18.23,7.59C18.73,7.91 19,8.34 19,8.91V15.23C19,15.8 18.73,16.23 18.23,16.55L12.75,19.73C12.25,20.05 11.75,20.05 11.25,19.73L5.77,16.55C5.27,16.23 5,15.8 5,15.23V8.91C5,8.34 5.27,7.91 5.77,7.59L11.25,4.41C11.5,4.28 11.75,4.22 12,4.22C12.25,4.22 12.5,4.28 12.75,4.41L18.23,7.59Z",xk="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",q$="M8,2H16A2,2 0 0,1 18,4V20A2,2 0 0,1 16,22H8A2,2 0 0,1 6,20V4A2,2 0 0,1 8,2M8,4V6H16V4H8M16,8H8V10H16V8M16,18H14V20H16V18Z",Ck="M12 16C13.1 16 14 16.9 14 18S13.1 20 12 20 10 19.1 10 18 10.9 16 12 16M12 10C13.1 10 14 10.9 14 12S13.1 14 12 14 10 13.1 10 12 10.9 10 12 10M12 4C13.1 4 14 4.9 14 6S13.1 8 12 8 10 7.1 10 6 10.9 4 12 4M6 16C7.1 16 8 16.9 8 18S7.1 20 6 20 4 19.1 4 18 4.9 16 6 16M6 10C7.1 10 8 10.9 8 12S7.1 14 6 14 4 13.1 4 12 4.9 10 6 10M6 4C7.1 4 8 4.9 8 6S7.1 8 6 8 4 7.1 4 6 4.9 4 6 4M18 16C19.1 16 20 16.9 20 18S19.1 20 18 20 16 19.1 16 18 16.9 16 18 16M18 10C19.1 10 20 10.9 20 12S19.1 14 18 14 16 13.1 16 12 16.9 10 18 10M18 4C19.1 4 20 4.9 20 6S19.1 8 18 8 16 7.1 16 6 16.9 4 18 4Z",Pk="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",Lk="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",Ak="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",Ek="M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z",Ok="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12.5,2C17,2 17.11,5.57 14.75,6.75C13.76,7.24 13.32,8.29 13.13,9.22C13.61,9.42 14.03,9.73 14.35,10.13C18.05,8.13 22.03,8.92 22.03,12.5C22.03,17 18.46,17.1 17.28,14.73C16.78,13.74 15.72,13.3 14.79,13.11C14.59,13.59 14.28,14 13.88,14.34C15.87,18.03 15.08,22 11.5,22C7,22 6.91,18.42 9.27,17.24C10.25,16.75 10.69,15.71 10.89,14.79C10.4,14.59 9.97,14.27 9.65,13.87C5.96,15.85 2,15.07 2,11.5C2,7 5.56,6.89 6.74,9.26C7.24,10.25 8.29,10.68 9.22,10.87C9.41,10.39 9.73,9.97 10.14,9.65C8.15,5.96 8.94,2 12.5,2Z",Tk="M13,9V3.5L18.5,9M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2H6Z",kk="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M10.5,11C8,11 6,13 6,15.5C6,18 8,20 10.5,20C13,20 15,18 15,15.5C15,13 13,11 10.5,11M10.5,12.5A3,3 0 0,1 13.5,15.5C13.5,16.06 13.35,16.58 13.08,17L9,12.92C9.42,12.65 9.94,12.5 10.5,12.5M7.5,15.5C7.5,14.94 7.65,14.42 7.92,14L12,18.08C11.58,18.35 11.06,18.5 10.5,18.5A3,3 0 0,1 7.5,15.5Z",Dk="M14 2H6C4.89 2 4 2.9 4 4V20C4 21.11 4.89 22 6 22H18C19.11 22 20 21.11 20 20V8L14 2M18 20H6V4H13V9H18V20M9.54 15.65L11.63 17.74L10.35 19L7 15.65L10.35 12.3L11.63 13.56L9.54 15.65M17 15.65L13.65 19L12.38 17.74L14.47 15.65L12.38 13.56L13.65 12.3L17 15.65Z",Mk="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M6,20H15L18,20V12L14,16L12,14L6,20M8,9A2,2 0 0,0 6,11A2,2 0 0,0 8,13A2,2 0 0,0 10,11A2,2 0 0,0 8,9Z",Rk="M18 13C16.6 13 15.2 14.1 15.2 15.5V17C14.6 17 14 17.6 14 18.2V21.7C14 22.4 14.6 23 15.2 23H20.7C21.4 23 22 22.4 22 21.8V18.3C22 17.6 21.4 17 20.8 17V15.5C20.8 14.1 19.4 13 18 13M18 14.2C18.8 14.2 19.5 14.7 19.5 15.5V17H16.5V15.5C16.5 14.7 17.2 14.2 18 14.2M6 2C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H12V18.2C12 17.2 12.4 16.5 13 16C13.1 15.9 13.2 15.9 13.2 15.8V15.5C13.2 12.8 15.6 11 18 11C18.7 11 19.4 11.2 20 11.4V8L14 2H6M13 3.5L18.5 9H13V3.5Z",Ik="M14 2H6C4.89 2 4 2.89 4 4V20C4 21.11 4.89 22 6 22H13.81C13.28 21.09 13 20.05 13 19C13 15.69 15.69 13 19 13C19.34 13 19.67 13.03 20 13.08V8L14 2M13 9V3.5L18.5 9H13M23 20H20V23H18V20H15V18H18V15H20V18H23V20Z",Fk="M18 14.5C19.11 14.5 20.11 14.95 20.83 15.67L22 14.5V18.5H18L19.77 16.73C19.32 16.28 18.69 16 18 16C16.62 16 15.5 17.12 15.5 18.5C15.5 19.88 16.62 21 18 21C18.82 21 19.54 20.61 20 20H21.71C21.12 21.47 19.68 22.5 18 22.5C15.79 22.5 14 20.71 14 18.5C14 16.29 15.79 14.5 18 14.5M14 2L20 8V12.17C19.5 12.06 19 12 18.5 12L18 12V9H13V4H6V20H12.17C12.34 20.72 12.63 21.39 13 22H6C4.9 22 4 21.1 4 20V4C4 2.9 4.9 2 6 2H14Z",Hk="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20M10,13H7V11H10V13M14,13H11V11H14V13M10,16H7V14H10V16M14,16H11V14H14V16M10,19H7V17H10V19M14,19H11V17H14V19Z",Bk="M14,2L20,8V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2H14M18,20V9H13V4H6V20H18M16,18L13.5,16.3V18H8V13H13.5V14.7L16,13V18Z",jk="M15,19.88C15.04,20.18 14.94,20.5 14.71,20.71C14.32,21.1 13.69,21.1 13.3,20.71L9.29,16.7C9.06,16.47 8.96,16.16 9,15.87V10.75L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L15,10.75V19.88M7.04,5L11,10.06V15.58L13,17.58V10.05L16.96,5H7.04Z",Vk="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",Nk="M15.66 11.2C15.43 10.9 15.15 10.64 14.89 10.38C14.22 9.78 13.46 9.35 12.82 8.72C11.33 7.26 11 4.85 11.95 3C11 3.23 10.17 3.75 9.46 4.32C6.87 6.4 5.85 10.07 7.07 13.22C7.11 13.32 7.15 13.42 7.15 13.55C7.15 13.77 7 13.97 6.8 14.05C6.57 14.15 6.33 14.09 6.14 13.93C6.08 13.88 6.04 13.83 6 13.76C4.87 12.33 4.69 10.28 5.45 8.64C3.78 10 2.87 12.3 3 14.47C3.06 14.97 3.12 15.47 3.29 15.97C3.43 16.57 3.7 17.17 4 17.7C5.08 19.43 6.95 20.67 8.96 20.92C11.1 21.19 13.39 20.8 15.03 19.32C16.86 17.66 17.5 15 16.56 12.72L16.43 12.46C16.22 12 15.66 11.2 15.66 11.2M12.5 17.5C12.22 17.74 11.76 18 11.4 18.1C10.28 18.5 9.16 17.94 8.5 17.28C9.69 17 10.4 16.12 10.61 15.23C10.78 14.43 10.46 13.77 10.33 13C10.21 12.26 10.23 11.63 10.5 10.94C10.69 11.32 10.89 11.7 11.13 12C11.9 13 13.11 13.44 13.37 14.8C13.41 14.94 13.43 15.08 13.43 15.23C13.46 16.05 13.1 16.95 12.5 17.5H12.5M21 13H19V7H21V13M21 17H19V15H21V17Z",zk="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",Uk="M22 8V13.81C21.12 13.3 20.1 13 19 13C15.69 13 13 15.69 13 19C13 19.34 13.04 19.67 13.09 20H4C2.9 20 2 19.11 2 18V6C2 4.89 2.89 4 4 4H10L12 6H20C21.1 6 22 6.89 22 8M16 18H18V22H20V18H22L19 15L16 18Z",Wk="M13 20H4C2.9 20 2 19.11 2 18V6C2 4.89 2.89 4 4 4H10L12 6H20C21.1 6 22 6.89 22 8V11.04C21.17 10.4 20.13 10 19 10C16.4 10 14.2 12.06 14.2 14.5V14.74C13.5 15.34 13 16.24 13 17.2V20M23 17.3V20.8C23 21.4 22.4 22 21.7 22H16.2C15.6 22 15 21.4 15 20.7V17.2C15 16.6 15.6 16 16.2 16V14.5C16.2 13.1 17.6 12 19 12S21.8 13.1 21.8 14.5V16C22.4 16 23 16.6 23 17.3M20.5 14.5C20.5 13.7 19.8 13.2 19 13.2S17.5 13.7 17.5 14.5V16H20.5V14.5Z",Gk="M14,18V15H10V11H14V8L19,13M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z",qk="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",Zk="M13 19C13 19.34 13.04 19.67 13.09 20H4C2.9 20 2 19.11 2 18V6C2 4.89 2.89 4 4 4H10L12 6H20C21.1 6 22 6.89 22 8V13.81C21.12 13.3 20.1 13 19 13C15.69 13 13 15.69 13 19M20 18V15H18V18H15V20H18V23H20V20H23V18H20Z",Yk="M20,6A2,2 0 0,1 22,8V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V6A2,2 0 0,1 4,4H10L12,6H20M10.75,13H14V17H16V13H19.25L15,8.75",Kk="M17,7H22V17H17V19A1,1 0 0,0 18,20H20V22H17.5C16.95,22 16,21.55 16,21C16,21.55 15.05,22 14.5,22H12V20H14A1,1 0 0,0 15,19V5A1,1 0 0,0 14,4H12V2H14.5C15.05,2 16,2.45 16,3C16,2.45 16.95,2 17.5,2H20V4H18A1,1 0 0,0 17,5V7M2,7H13V9H4V15H13V17H2V7M20,15V9H17V15H20Z",Xk="M10,13H22V11H10M10,19H22V17H10M10,7H22V5H10M6,7H8.5L5,3.5L1.5,7H4V17H1.5L5,20.5L8.5,17H6V7Z",Qk="M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z",Jk="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",eD="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,4A8,8 0 0,1 20,12C20,14.4 19,16.5 17.3,18C15.9,16.7 14,16 12,16C10,16 8.2,16.7 6.7,18C5,16.5 4,14.4 4,12A8,8 0 0,1 12,4M14,5.89C13.62,5.9 13.26,6.15 13.1,6.54L11.81,9.77L11.71,10C11,10.13 10.41,10.6 10.14,11.26C9.73,12.29 10.23,13.45 11.26,13.86C12.29,14.27 13.45,13.77 13.86,12.74C14.12,12.08 14,11.32 13.57,10.76L13.67,10.5L14.96,7.29L14.97,7.26C15.17,6.75 14.92,6.17 14.41,5.96C14.28,5.91 14.15,5.89 14,5.89M10,6A1,1 0 0,0 9,7A1,1 0 0,0 10,8A1,1 0 0,0 11,7A1,1 0 0,0 10,6M7,9A1,1 0 0,0 6,10A1,1 0 0,0 7,11A1,1 0 0,0 8,10A1,1 0 0,0 7,9M17,9A1,1 0 0,0 16,10A1,1 0 0,0 17,11A1,1 0 0,0 18,10A1,1 0 0,0 17,9Z",tD="M1 22L2.5 17H9.5L11 22H1M13 22L14.5 17H21.5L23 22H13M6 15L7.5 10H14.5L16 15H6M23 6.05L19.14 7.14L18.05 11L16.96 7.14L13.1 6.05L16.96 4.96L18.05 1.1L19.14 4.96L23 6.05Z",rD="M13.78 15.3L19.78 21.3L21.89 19.14L15.89 13.14L13.78 15.3M17.5 10.1C17.11 10.1 16.69 10.05 16.36 9.91L4.97 21.25L2.86 19.14L10.27 11.74L8.5 9.96L7.78 10.66L6.33 9.25V12.11L5.63 12.81L2.11 9.25L2.81 8.55H5.62L4.22 7.14L7.78 3.58C8.95 2.41 10.83 2.41 12 3.58L9.89 5.74L11.3 7.14L10.59 7.85L12.38 9.63L14.2 7.75C14.06 7.42 14 7 14 6.63C14 4.66 15.56 3.11 17.5 3.11C18.09 3.11 18.61 3.25 19.08 3.53L16.41 6.2L17.91 7.7L20.58 5.03C20.86 5.5 21 6 21 6.63C21 8.55 19.45 10.1 17.5 10.1Z",sD="M13 24C9.74 24 6.81 22 5.6 19L2.57 11.37C2.26 10.58 3 9.79 3.81 10.05L4.6 10.31C5.16 10.5 5.62 10.92 5.84 11.47L7.25 15H8V3.25C8 2.56 8.56 2 9.25 2S10.5 2.56 10.5 3.25V12H11.5V1.25C11.5 .56 12.06 0 12.75 0S14 .56 14 1.25V12H15V2.75C15 2.06 15.56 1.5 16.25 1.5C16.94 1.5 17.5 2.06 17.5 2.75V12H18.5V5.75C18.5 5.06 19.06 4.5 19.75 4.5S21 5.06 21 5.75V16C21 20.42 17.42 24 13 24Z",nD="M6,2H18A2,2 0 0,1 20,4V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V4A2,2 0 0,1 6,2M12,4A6,6 0 0,0 6,10C6,13.31 8.69,16 12.1,16L11.22,13.77C10.95,13.29 11.11,12.68 11.59,12.4L12.45,11.9C12.93,11.63 13.54,11.79 13.82,12.27L15.74,14.69C17.12,13.59 18,11.9 18,10A6,6 0 0,0 12,4M12,9A1,1 0 0,1 13,10A1,1 0 0,1 12,11A1,1 0 0,1 11,10A1,1 0 0,1 12,9M7,18A1,1 0 0,0 6,19A1,1 0 0,0 7,20A1,1 0 0,0 8,19A1,1 0 0,0 7,18M12.09,13.27L14.58,19.58L17.17,18.08L12.95,12.77L12.09,13.27Z",iD="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",aD="M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z",oD="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3",lD="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",cD="M21,15H23V17H21V15M21,11H23V13H21V11M23,19H21V21C22,21 23,20 23,19M13,3H15V5H13V3M21,7H23V9H21V7M21,3V5H23C23,4 22,3 21,3M1,7H3V9H1V7M17,3H19V5H17V3M17,19H19V21H17V19M3,3C2,3 1,4 1,5H3V3M9,3H11V5H9V3M5,3H7V5H5V3M1,11V19A2,2 0 0,0 3,21H15V11H1M3,19L5.5,15.79L7.29,17.94L9.79,14.72L13,19H3Z",uD="M12,16L19.36,10.27L21,9L12,2L3,9L4.63,10.27M12,18.54L4.62,12.81L3,14.07L12,21.07L21,14.07L19.37,12.8L12,18.54Z",dD="M22,17V19H14V17H22M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z",pD="M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11,16L2,9L11,2L20,9L11,16M11,18.54L12,17.75V18C12,18.71 12.12,19.39 12.35,20L11,21.07L2,14.07L3.62,12.81L11,18.54Z",hD="M12 16.54L19.37 10.8L21 12.07L12 19.07L3 12.07L4.62 10.81L12 16.54M12 14L3 7L12 0L21 7L12 14M12 2.53L6.26 7L12 11.47L17.74 7L12 2.53M12 21.47L19.37 15.73L21 17L12 24L3 17L4.62 15.74L12 21.47",fD="M16.5 11L13 7.5L14.4 6.1L16.5 8.2L20.7 4L22.1 5.4L16.5 11M11 7H2V9H11V7M21 13.4L19.6 12L17 14.6L14.4 12L13 13.4L15.6 16L13 18.6L14.4 20L17 17.4L19.6 20L21 18.6L18.4 16L21 13.4M11 15H2V17H11V15Z",mD="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",gD="M18 1C15.24 1 13 3.24 13 6V8H4C2.9 8 2 8.89 2 10V20C2 21.11 2.9 22 4 22H16C17.11 22 18 21.11 18 20V10C18 8.9 17.11 8 16 8H15V6C15 4.34 16.34 3 18 3C19.66 3 21 4.34 21 6V8H23V6C23 3.24 20.76 1 18 1M10 13C11.1 13 12 13.89 12 15C12 16.11 11.11 17 10 17C8.9 17 8 16.11 8 15C8 13.9 8.9 13 10 13Z",vD="M12.63,2C18.16,2 22.64,6.5 22.64,12C22.64,17.5 18.16,22 12.63,22C9.12,22 6.05,20.18 4.26,17.43L5.84,16.18C7.25,18.47 9.76,20 12.64,20A8,8 0 0,0 20.64,12A8,8 0 0,0 12.64,4C8.56,4 5.2,7.06 4.71,11H7.47L3.73,14.73L0,11H2.69C3.19,5.95 7.45,2 12.63,2M15.59,10.24C16.09,10.25 16.5,10.65 16.5,11.16V15.77C16.5,16.27 16.09,16.69 15.58,16.69H10.05C9.54,16.69 9.13,16.27 9.13,15.77V11.16C9.13,10.65 9.54,10.25 10.04,10.24V9.23C10.04,7.7 11.29,6.46 12.81,6.46C14.34,6.46 15.59,7.7 15.59,9.23V10.24M12.81,7.86C12.06,7.86 11.44,8.47 11.44,9.23V10.24H14.19V9.23C14.19,8.47 13.57,7.86 12.81,7.86Z",_D="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",yD="M9,2A7,7 0 0,1 16,9C16,10.57 15.5,12 14.61,13.19L15.41,14H16L22,20L20,22L14,16V15.41L13.19,14.61C12,15.5 10.57,16 9,16A7,7 0 0,1 2,9A7,7 0 0,1 9,2M5,8V10H13V8H5Z",bD="M9,2A7,7 0 0,1 16,9C16,10.57 15.5,12 14.61,13.19L15.41,14H16L22,20L20,22L14,16V15.41L13.19,14.61C12,15.5 10.57,16 9,16A7,7 0 0,1 2,9A7,7 0 0,1 9,2M8,5V8H5V10H8V13H10V10H13V8H10V5H8Z",$D="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",SD="M7,10L12,15L17,10H7Z",wD="M20,2A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H6L2,22V4C2,2.89 2.9,2 4,2H20M4,4V17.17L5.17,16H20V4H4M6,7H18V9H6V7M6,11H15V13H6V11Z",xD="M19,13H5V11H19V13Z",CD="M9,6H5V10H7V8H9M19,10H17V12H15V14H19M21,16H3V4H21M21,2H3C1.89,2 1,2.89 1,4V16A2,2 0 0,0 3,18H10V20H8V22H16V20H14V18H21A2,2 0 0,0 23,16V4C23,2.89 22.1,2 21,2",PD="M7 13H3C2.45 13 2 12.55 2 12S2.45 11 3 11H7C7.55 11 8 11.45 8 12S7.55 13 7 13M6 8C6 7.45 5.55 7 5 7H4C3.45 7 3 7.45 3 8S3.45 9 4 9H5C5.55 9 6 8.55 6 8M22 12C22 14.76 19.76 17 17 17H4C3.45 17 3 16.55 3 16S3.45 15 4 15H13C12.58 14.42 12.25 13.74 12.1 13H10C9.45 13 9 12.55 9 12S9.45 11 10 11H12.1C12.25 10.26 12.58 9.58 13 9H8C7.45 9 7 8.55 7 8S7.45 7 8 7H17C19.76 7 22 9.24 22 12M20 12C20 10.35 18.65 9 17 9S14 10.35 14 12C14 13.65 15.35 15 17 15S20 13.65 20 12Z",LD="M10,7V9H12V17H14V7H10Z",AD="M9,7V9H13V11H11A2,2 0 0,0 9,13V17H11L15,17V15H11V13H13A2,2 0 0,0 15,11V9A2,2 0 0,0 13,7H9Z",ED="M15,15V13.5A1.5,1.5 0 0,0 13.5,12A1.5,1.5 0 0,0 15,10.5V9C15,7.89 14.1,7 13,7H9V9H13V11H11V13H13V15H9V17H13A2,2 0 0,0 15,15",OD="M9,7V13H13V17H15V7H13V11H11V7H9Z",TD="M12,10L8,14H11V20H13V14H16M19,4H5C3.89,4 3,4.9 3,6V18A2,2 0 0,0 5,20H9V18H5V8H19V18H15V20H19A2,2 0 0,0 21,18V6A2,2 0 0,0 19,4Z",kD="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",DD="M14,19H18V5H14M6,19H10V5H6V19Z",MD="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",RD="M5.5,2A2.5,2.5 0 0,0 3,4.5V5A1,1 0 0,0 2,6V10A1,1 0 0,0 3,11H8A1,1 0 0,0 9,10V6A1,1 0 0,0 8,5V4.5A2.5,2.5 0 0,0 5.5,2M5.5,3A1.5,1.5 0 0,1 7,4.5V5H4V4.5A1.5,1.5 0 0,1 5.5,3M19.66,3C19.4,3 19.16,3.09 18.97,3.28L17.13,5.13L20.88,8.88L22.72,7.03C23.11,6.64 23.11,6 22.72,5.63L20.38,3.28C20.18,3.09 19.91,3 19.66,3M16.06,6.19L5,17.25V21H8.75L19.81,9.94L16.06,6.19Z",Z$="M8,5.14V19.14L19,12.14L8,5.14Z",ID="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",FD="M16.56,5.44L15.11,6.89C16.84,7.94 18,9.83 18,12A6,6 0 0,1 12,18A6,6 0 0,1 6,12C6,9.83 7.16,7.94 8.88,6.88L7.44,5.44C5.36,6.88 4,9.28 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12C20,9.28 18.64,6.88 16.56,5.44M13,3H11V13H13",HD="M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A9,9 0 0,0 21,12A9,9 0 0,0 12,3M12,19A7,7 0 0,1 5,12A7,7 0 0,1 12,5A7,7 0 0,1 19,12A7,7 0 0,1 12,19M13,17H11V7H13V17Z",Y$="M18,3H6V7H18M19,12A1,1 0 0,1 18,11A1,1 0 0,1 19,10A1,1 0 0,1 20,11A1,1 0 0,1 19,12M16,19H8V14H16M19,8H5A3,3 0 0,0 2,11V17H6V21H18V17H22V11A3,3 0 0,0 19,8Z",BD="M19,6A1,1 0 0,0 20,5A1,1 0 0,0 19,4A1,1 0 0,0 18,5A1,1 0 0,0 19,6M19,2A3,3 0 0,1 22,5V11H18V7H6V11H2V5A3,3 0 0,1 5,2H19M18,18.25C18,18.63 17.79,18.96 17.47,19.13L12.57,21.82C12.4,21.94 12.21,22 12,22C11.79,22 11.59,21.94 11.43,21.82L6.53,19.13C6.21,18.96 6,18.63 6,18.25V13C6,12.62 6.21,12.29 6.53,12.12L11.43,9.68C11.59,9.56 11.79,9.5 12,9.5C12.21,9.5 12.4,9.56 12.57,9.68L17.47,12.12C17.79,12.29 18,12.62 18,13V18.25M12,11.65L9.04,13L12,14.6L14.96,13L12,11.65M8,17.66L11,19.29V16.33L8,14.71V17.66M16,17.66V14.71L13,16.33V19.29L16,17.66Z",jD="M7,2H17V8H19V13H16.5L13,17H11L7.5,13H5V8H7V2M10,22H2V20H10A1,1 0 0,0 11,19V18H13V19A3,3 0 0,1 10,22Z",VD="M7 2H17V7H19V13H16.5L13 17H11L7.5 13H5V7H7V2M10 22H2V20H10C10.6 20 11 19.5 11 19V18H13V19C13 20.7 11.7 22 10 22M7 9V11H8.5L12 15L15.5 11H17V9H15V4H9V9H7M21 13V7H23V13H21M21 17V15H23V17H21Z",ND="M7,2H17V7H19V13H16.5L13,17H11L7.5,13H5V7H7V2M10,22H2V20H10A1,1 0 0,0 11,19V18H13V19A3,3 0 0,1 10,22M7,9V11H8.5L12,15L15.5,11H17V9H15V4H9V9H7Z",zD="M13 18H11V16H13V18M13 15H11C11 11.75 14 12 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 12.5 13 12.75 13 15M22 12C22 17.18 18.05 21.45 13 21.95V19.94C16.95 19.45 20 16.08 20 12C20 7.92 16.95 4.55 13 4.06V2.05C18.05 2.55 22 6.82 22 12M11 2.05V4.06C9.54 4.24 8.2 4.82 7.09 5.68L5.67 4.26C7.15 3.05 9 2.25 11 2.05M4.06 11H2.05C2.25 9 3.05 7.15 4.26 5.67L5.68 7.1C4.82 8.2 4.24 9.54 4.06 11M11 19.94V21.95C9 21.75 7.15 20.96 5.67 19.74L7.09 18.32C8.2 19.18 9.54 19.76 11 19.94M2.05 13H4.06C4.24 14.46 4.82 15.8 5.68 16.91L4.26 18.33C3.05 16.85 2.25 15 2.05 13Z",UD="M13,2.03C17.73,2.5 21.5,6.25 21.95,11C22.5,16.5 18.5,21.38 13,21.93V19.93C16.64,19.5 19.5,16.61 19.96,12.97C20.5,8.58 17.39,4.59 13,4.05V2.05L13,2.03M11,2.06V4.06C9.57,4.26 8.22,4.84 7.1,5.74L5.67,4.26C7.19,3 9.05,2.25 11,2.06M4.26,5.67L5.69,7.1C4.8,8.23 4.24,9.58 4.05,11H2.05C2.25,9.04 3,7.19 4.26,5.67M2.06,13H4.06C4.24,14.42 4.81,15.77 5.69,16.9L4.27,18.33C3.03,16.81 2.26,14.96 2.06,13M7.1,18.37C8.23,19.25 9.58,19.82 11,20V22C9.04,21.79 7.18,21 5.67,19.74L7.1,18.37M12,7.5L7.5,12H11V16H13V12H16.5L12,7.5Z",WD="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,7A5,5 0 0,0 7,12A5,5 0 0,0 12,17A5,5 0 0,0 17,12A5,5 0 0,0 12,7Z",GD="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",qD="M12,4C14.1,4 16.1,4.8 17.6,6.3C20.7,9.4 20.7,14.5 17.6,17.6C15.8,19.5 13.3,20.2 10.9,19.9L11.4,17.9C13.1,18.1 14.9,17.5 16.2,16.2C18.5,13.9 18.5,10.1 16.2,7.7C15.1,6.6 13.5,6 12,6V10.6L7,5.6L12,0.6V4M6.3,17.6C3.7,15 3.3,11 5.1,7.9L6.6,9.4C5.5,11.6 5.9,14.4 7.8,16.2C8.3,16.7 8.9,17.1 9.6,17.4L9,19.4C8,19 7.1,18.4 6.3,17.6Z",ZD="M10 4.03V.633L5 5.63L10 10.63V6.03C11.5 6.03 13.11 6.63 14.21 7.73C16.5 10.13 16.5 13.93 14.21 16.23C12.91 17.53 11.11 18.13 9.4 17.93L8.9 19.93C11.31 20.23 13.81 19.53 15.61 17.63C18.7 14.53 18.7 9.43 15.61 6.33C14.11 4.83 12.11 4.03 10 4.03M4.31 17.63C5.11 18.43 6 19.03 7 19.43L7.61 17.43C6.91 17.13 6.31 16.73 5.81 16.23C3.91 14.43 3.5 11.63 4.61 9.43L3.11 7.93C1.31 11.03 1.71 15.03 4.31 17.63M20 13H22V7H20V13M20 17H22V15H20V17Z",YD="M13,3A9,9 0 0,0 4,12H1L4.89,15.89L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3Z",KD="M13,4.07V1L8.45,5.55L13,10V6.09C15.84,6.57 18,9.03 18,12C18,14.97 15.84,17.43 13,17.91V19.93C16.95,19.44 20,16.08 20,12C20,7.92 16.95,4.56 13,4.07M7.1,18.32C8.26,19.22 9.61,19.76 11,19.93V17.9C10.13,17.75 9.29,17.41 8.54,16.87L7.1,18.32M6.09,13H4.07C4.24,14.39 4.79,15.73 5.69,16.89L7.1,15.47C6.58,14.72 6.23,13.88 6.09,13M7.11,8.53L5.7,7.11C4.8,8.27 4.24,9.61 4.07,11H6.09C6.23,10.13 6.58,9.28 7.11,8.53Z",XD="M16.89,15.5L18.31,16.89C19.21,15.73 19.76,14.39 19.93,13H17.91C17.77,13.87 17.43,14.72 16.89,15.5M13,17.9V19.92C14.39,19.75 15.74,19.21 16.9,18.31L15.46,16.87C14.71,17.41 13.87,17.76 13,17.9M19.93,11C19.76,9.61 19.21,8.27 18.31,7.11L16.89,8.53C17.43,9.28 17.77,10.13 17.91,11M15.55,5.55L11,1V4.07C7.06,4.56 4,7.92 4,12C4,16.08 7.05,19.44 11,19.93V17.91C8.16,17.43 6,14.97 6,12C6,9.03 8.16,6.57 11,6.09V10L15.55,5.55Z",QD="M2,21L23,12L2,3V10L17,12L2,14V21Z",JD="M11,13.5V21.5H3V13.5H11M12,2L17.5,11H6.5L12,2M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13Z",eM="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M17.13,17C15.92,18.85 14.11,20.24 12,20.92C9.89,20.24 8.08,18.85 6.87,17C6.53,16.5 6.24,16 6,15.47C6,13.82 8.71,12.47 12,12.47C15.29,12.47 18,13.79 18,15.47C17.76,16 17.47,16.5 17.13,17Z",tM="M16.46,9.41L13,7.38V5.12L14.71,3.41L13.29,2L12,3.29L10.71,2L9.29,3.41L11,5.12V7.38L8.5,8.82L6.5,7.69L5.92,5.36L4,5.88L4.47,7.65L2.7,8.12L3.22,10.05L5.55,9.43L7.55,10.56V13.45L5.55,14.58L3.22,13.96L2.7,15.89L4.47,16.36L4,18.12L5.93,18.64L6.55,16.31L8.55,15.18L11,16.62V18.88L9.29,20.59L10.71,22L12,20.71L13.29,22L14.7,20.59L13,18.88V16.62L16.46,14.61M9.5,10.56L12,9.11L14.5,10.56V13.44L12,14.89L9.5,13.44M19,13V7H21V13H19M19,17V15H21V17H19Z",rM="M17,12C17,14.42 15.28,16.44 13,16.9V21H11V16.9C8.72,16.44 7,14.42 7,12C7,9.58 8.72,7.56 11,7.1V3H13V7.1C15.28,7.56 17,9.58 17,12M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z",sM="M18,18H6V6H18V18Z",K$="M9,3L5,7H8V14H10V7H13M16,17V10H14V17H11L15,21L19,17H16Z",nM="M12,18A6,6 0 0,1 6,12C6,11 6.25,10.03 6.7,9.2L5.24,7.74C4.46,8.97 4,10.43 4,12A8,8 0 0,0 12,20V23L16,19L12,15M12,4V1L8,5L12,9V6A6,6 0 0,1 18,12C18,13 17.75,13.97 17.3,14.8L18.76,16.26C19.54,15.03 20,13.57 20,12A8,8 0 0,0 12,4Z",iM="M8,2H16A2,2 0 0,1 18,4V20A2,2 0 0,1 16,22H8A2,2 0 0,1 6,20V4A2,2 0 0,1 8,2M8,10V14H16V10H8M8,16V20H16V16H8M8,4V8H16V4H8Z",aM="M17 13V7H19V13H17M17 17V15H19V17H17M13 13V5C13 3.3 11.7 2 10 2S7 3.3 7 5V13C4.8 14.7 4.3 17.8 6 20S10.8 22.7 13 21 15.7 16.2 14 14C13.7 13.6 13.4 13.3 13 13M10 4C10.6 4 11 4.4 11 5V8H9V5C9 4.4 9.4 4 10 4Z",oM="M15 13V5A3 3 0 0 0 9 5V13A5 5 0 1 0 15 13M12 4A1 1 0 0 1 13 5V12H11V5A1 1 0 0 1 12 4Z",lM="M6,2H18V8H18V8L14,12L18,16V16H18V22H6V16H6V16L10,12L6,8V8H6V2M16,16.5L12,12.5L8,16.5V20H16V16.5M12,11.5L16,7.5V4H8V7.5L12,11.5M10,6H14V6.75L12,8.75L10,6.75V6Z",cM="M17,7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7M17,15A3,3 0 0,1 14,12A3,3 0 0,1 17,9A3,3 0 0,1 20,12A3,3 0 0,1 17,15Z",uM="M17 6H7c-3.31 0-6 2.69-6 6s2.69 6 6 6h10c3.31 0 6-2.69 6-6s-2.69-6-6-6zm0 10H7c-2.21 0-4-1.79-4-4s1.79-4 4-4h10c2.21 0 4 1.79 4 4s-1.79 4-4 4zM7 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",dM="M12.91 6.43L15.03 8.55L16.09 7.5L15.03 6.43L17.86 3.6L18.92 4.66L20 3.6L17.86 1.5M3 20.57L4.43 22L14.5 11.9L16.63 11.19L21.4 6.43C22.18 5.65 22.18 4.38 21.4 3.6L15.55 9.44L13.43 10.15Z",pM="M18 5H6V7H18M6 9H18V11H6M2 12H4V17H20V12H22V17A2 2 0 0 1 20 19H4A2 2 0 0 1 2 17M18 13H6V15H18Z",hM="M2 12H4V17H20V12H22V17A2 2 0 0 1 20 19H4A2 2 0 0 1 2 17M11 5H13V8H16V10H13V13H11V10H8V8H11Z",fM="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",mM="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.81,4.5 7.08,7.2C4.35,9.91 4.35,14.28 7.08,17C9.81,19.7 14.23,19.7 16.96,17C18.32,15.65 19,14.08 19,12.1H21C21,14.08 20.12,16.65 18.36,18.39C14.85,21.87 9.15,21.87 5.64,18.39C2.14,14.92 2.11,9.28 5.62,5.81C9.13,2.34 14.76,2.34 18.27,5.81L21,3V10.12M12.5,8V12.25L16,14.33L15.28,15.54L11,13V8H12.5Z",gM="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",vM="M15,7V11H16V13H13V5H15L12,1L9,5H11V13H8V10.93C8.7,10.56 9.2,9.85 9.2,9C9.2,7.78 8.21,6.8 7,6.8C5.78,6.8 4.8,7.78 4.8,9C4.8,9.85 5.3,10.56 6,10.93V13A2,2 0 0,0 8,15H11V18.05C10.29,18.41 9.8,19.15 9.8,20A2.2,2.2 0 0,0 12,22.2A2.2,2.2 0 0,0 14.2,20C14.2,19.15 13.71,18.41 13,18.05V15H16A2,2 0 0,0 18,13V11H19V7H15Z",X$="M15,3V7.59L7.59,15H3V21H9V16.42L16.42,9H21V3M17,5H19V7H17M5,17H7V19H5",_M="M19,5V7H15V5H19M9,5V11H5V5H9M19,13V19H15V13H19M9,17V19H5V17H9M21,3H13V9H21V3M11,3H3V13H11V3M21,11H13V21H21V11M11,15H3V21H11V15Z",yM="M3 11H11V3H3M5 5H9V9H5M13 21H21V13H13M15 15H19V19H15M3 21H11V13H3M5 15H9V19H5M13 3V11H21V3M19 9H15V5H19Z",bM="M4,5V7H21V5M4,11H21V9H4M4,19H21V17H4M4,15H21V13H4V15Z",$M="M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z";const SM="M 12 2 C 11.811244 2.0027 11.62182 2.01009 11.433594 2.0234375 C 11.245368 2.0367892 11.058338 2.0560871 10.871094 2.0800781 C 10.528376 2.1223311 10.188076 2.1823072 9.8515625 2.2597656 C 9.4050859 2.3584685 8.9659029 2.4876777 8.5371094 2.6464844 C 8.2433457 2.7507726 7.9546177 2.8687402 7.671875 3 L 7.6699219 3 C 7.2200923 3.2179359 6.7872406 3.4692919 6.375 3.7519531 C 6.1149723 3.9281592 5.8633915 4.1165194 5.6210938 4.3164062 C 5.2734281 4.6063526 4.9458497 4.9195737 4.640625 5.2539062 C 4.4299712 5.4884886 4.2305306 5.7329027 4.0429688 5.9863281 C 4.0007188 6.0418801 3.9590487 6.0978726 3.9179688 6.1542969 C 3.7241339 6.4206091 3.543575 6.6963363 3.3769531 6.9804688 C 3.3651531 7.0019097 3.3534369 7.0233949 3.3417969 7.0449219 C 2.9828732 7.6642764 2.691488 8.3203821 2.4726562 9.0019531 C 2.3383154 9.4325109 2.233258 9.8716656 2.1582031 10.316406 C 2.1085032 10.625133 2.0733024 10.936022 2.0527344 11.248047 L 2.0527344 11.25 L 2.0527344 11.251953 L 2.0527344 11.253906 L 2.0527344 11.255859 C 2.0258944 11.502973 2.00832 11.751383 2 12 C 2.000879 12.252257 2.0113 12.504391 2.03125 12.755859 L 2.0332031 12.767578 C 2.0566631 13.076458 2.0944624 13.384082 2.1464844 13.689453 C 2.2214943 14.129536 2.3258985 14.564103 2.4589844 14.990234 C 2.5675343 15.334756 2.6946769 15.673142 2.8398438 16.003906 L 2.8457031 16.017578 L 2.8535156 16.03125 C 2.9986205 16.362102 3.1616911 16.684839 3.3417969 16.998047 L 3.34375 17 C 3.5265728 17.317394 3.7267926 17.624495 3.9433594 17.919922 C 4.1600882 18.215026 4.3928602 18.498004 4.640625 18.767578 C 4.9426097 19.096141 5.2662503 19.404121 5.609375 19.689453 C 5.8509948 19.889955 6.1019244 20.078968 6.3613281 20.255859 C 6.7778367 20.540458 7.2152833 20.793132 7.6699219 21.011719 L 7.671875 21.011719 C 7.9543247 21.147608 8.2431027 21.27014 8.5371094 21.378906 C 8.956542 21.533797 9.3858911 21.660384 9.8222656 21.757812 L 9.8242188 21.757812 C 10.165943 21.833832 10.511518 21.891861 10.859375 21.931641 C 10.885405 21.935041 10.91144 21.938206 10.9375 21.941406 C 11.290376 21.979776 11.645044 21.99934 12 22 C 12.188756 21.9973 12.37818 21.98991 12.566406 21.976562 C 12.754632 21.963215 12.941662 21.943912 13.128906 21.919922 C 13.471624 21.877672 13.811924 21.817693 14.148438 21.740234 C 14.594914 21.641534 15.034096 21.512323 15.462891 21.353516 C 15.756653 21.249229 16.045381 21.131261 16.328125 21 L 16.330078 21 C 16.779908 20.782064 17.21276 20.530708 17.625 20.248047 C 17.885029 20.07184 18.136608 19.883481 18.378906 19.683594 C 18.726573 19.393647 19.054149 19.080425 19.359375 18.746094 C 19.570029 18.511511 19.76947 18.267097 19.957031 18.013672 C 19.999281 17.958122 20.040951 17.902127 20.082031 17.845703 C 20.275866 17.57939 20.456425 17.303665 20.623047 17.019531 C 20.634847 16.998091 20.646563 16.976598 20.658203 16.955078 C 21.017127 16.335724 21.308511 15.679617 21.527344 14.998047 C 21.661685 14.567489 21.766742 14.128334 21.841797 13.683594 C 21.891497 13.374867 21.926698 13.063978 21.947266 12.751953 L 21.947266 12.75 L 21.947266 12.748047 L 21.947266 12.746094 L 21.947266 12.744141 C 21.974096 12.496824 21.99169 12.248617 22 12 C 21.999121 11.747743 21.9887 11.495609 21.96875 11.244141 L 21.966797 11.232422 C 21.943337 10.923542 21.905537 10.615918 21.853516 10.310547 C 21.778506 9.8704641 21.6741 9.4358974 21.541016 9.0097656 C 21.432464 8.6652447 21.305324 8.3268573 21.160156 7.9960938 L 21.154297 7.9824219 L 21.146484 7.96875 C 21.001384 7.6379017 20.838309 7.315161 20.658203 7.0019531 L 20.65625 7 C 20.47338 6.6826091 20.273207 6.375505 20.056641 6.0800781 C 19.839912 5.7849746 19.60714 5.5019958 19.359375 5.2324219 C 19.05739 4.903859 18.73375 4.5958783 18.390625 4.3105469 C 18.149005 4.1100449 17.898076 3.921033 17.638672 3.7441406 C 17.222163 3.459542 16.784717 3.2068671 16.330078 2.9882812 L 16.328125 2.9882812 C 16.045675 2.8523915 15.756897 2.72986 15.462891 2.6210938 C 15.043458 2.4662029 14.614109 2.3396166 14.177734 2.2421875 L 14.175781 2.2421875 C 13.834058 2.1661636 13.488482 2.1081404 13.140625 2.0683594 C 13.114595 2.0649994 13.08856 2.0617537 13.0625 2.0585938 C 12.709629 2.0202237 12.354956 2.0006604 12 2 z M 10.701172 4.25 L 10.957031 4.3984375 L 11.066406 4.4609375 L 11.132812 4.5 L 11.566406 4.75 L 11.566406 5.75 L 11.132812 6 L 10.875 6.1484375 C 10.874877 6.1490598 10.875123 6.1497684 10.875 6.1503906 L 10.701172 6.25 L 10.267578 6 L 9.8359375 5.75 L 9.8359375 4.75 L 10.103516 4.5957031 L 10.701172 4.25 z M 13.298828 4.25 L 14.164062 4.75 L 14.164062 5.75 L 13.298828 6.25 L 12.433594 5.75 L 12.433594 4.75 L 13.298828 4.25 z M 8.8398438 4.6757812 L 8.96875 4.75 L 8.96875 5.75 L 8.5371094 6 L 8.1035156 6.25 L 7.2382812 5.75 L 7.2382812 5.578125 C 7.7356888 5.2168041 8.2730923 4.9140239 8.8398438 4.6757812 z M 15.160156 4.6757812 C 15.726909 4.914025 16.264309 5.2168044 16.761719 5.578125 L 16.761719 5.75 L 16.103516 6.1308594 L 15.896484 6.25 L 15.03125 5.75 L 15.03125 4.75 L 15.160156 4.6757812 z M 6.8046875 6.5 L 7.6699219 7 L 7.6699219 8 L 6.8046875 8.5 L 6.7011719 8.4394531 L 5.9394531 8 L 5.9394531 7.75 L 5.9394531 7 L 6.8046875 6.5 z M 9.4023438 6.5 L 10.267578 7 L 10.267578 7.8398438 L 10.267578 8 L 10.140625 8.0742188 L 9.8339844 8.25 L 9.4023438 8.5 L 8.9707031 8.25 L 8.5371094 8 L 8.5371094 7 L 8.96875 6.75 L 9.4023438 6.5 z M 12 6.5 L 12.865234 7 L 12.865234 7.75 L 12.865234 8 L 12.744141 8.0703125 C 12.743508 8.0701923 12.74282 8.0704324 12.742188 8.0703125 C 12.497492 8.0239396 12.249054 8.0001594 12 8 C 11.754037 8.00282 11.508857 8.0283149 11.267578 8.0761719 L 11.134766 8 L 11.134766 7.25 L 11.134766 7 L 11.896484 6.5605469 L 12 6.5 z M 14.597656 6.5 L 15.029297 6.75 L 15.462891 7 L 15.462891 8 L 14.597656 8.5 L 14.166016 8.25 L 13.732422 8 L 13.732422 7 L 14.166016 6.75 L 14.597656 6.5 z M 17.195312 6.5 L 17.298828 6.5605469 L 18.060547 7 L 18.060547 7.25 L 18.060547 8 L 17.298828 8.4394531 L 17.195312 8.5 L 16.330078 8 L 16.330078 7 L 17.195312 6.5 z M 5.5058594 8.75 L 6.3710938 9.25 L 6.3710938 10.25 L 5.5058594 10.75 L 4.640625 10.25 L 4.640625 9.25 L 5.5058594 8.75 z M 8.1035156 8.75 L 8.96875 9.25 L 8.96875 9.390625 C 8.6470443 9.7691664 8.398667 10.204324 8.2363281 10.673828 L 8.1035156 10.75 L 7.5449219 10.427734 L 7.2382812 10.25 L 7.2382812 9.25 L 8.1035156 8.75 z M 15.896484 8.75 L 16.761719 9.25 L 16.761719 10.25 L 16.328125 10.5 L 15.896484 10.75 L 15.775391 10.679688 C 15.6258 10.253096 15.401287 9.8581752 15.119141 9.5058594 C 15.089259 9.4685462 15.062498 9.4288507 15.03125 9.3925781 L 15.03125 9.390625 L 15.03125 9.25 L 15.462891 9 L 15.896484 8.75 z M 18.494141 8.75 L 19.359375 9.25 L 19.359375 10.25 L 18.494141 10.75 L 18.287109 10.630859 L 17.628906 10.25 L 17.628906 9.25 L 18.494141 8.75 z M 12 10 C 13.104568 10 14 10.895432 14 12 C 14 13.035532 13.213589 13.887814 12.205078 13.990234 C 12.137844 13.997062 12.069035 14 12 14 C 11.792894 14 11.592174 13.968592 11.404297 13.910156 C 11.028542 13.793284 10.701584 13.567814 10.457031 13.271484 C 10.416272 13.222096 10.377738 13.172341 10.341797 13.119141 C 10.126148 12.799939 10 12.414213 10 12 C 10 11.930965 10.002938 11.862156 10.009766 11.794922 C 10.037078 11.525986 10.119032 11.273584 10.242188 11.046875 C 10.396132 10.763489 10.614858 10.521504 10.880859 10.341797 C 10.93406 10.305855 10.990198 10.272976 11.046875 10.242188 C 11.330261 10.088243 11.654823 10 12 10 z M 4.2070312 11 L 5.0722656 11.5 L 5.0722656 11.75 L 5.0722656 12.5 L 4.2070312 13 L 4.0722656 12.921875 C 4.0304257 12.616234 4.0063 12.308428 4 12 C 4.00315 11.845786 4.0113888 11.690819 4.0234375 11.537109 C 4.0354862 11.383399 4.0513406 11.230945 4.0722656 11.078125 L 4.2070312 11 z M 6.8046875 11 L 7.2363281 11.25 L 7.6699219 11.5 L 7.6699219 12.5 L 6.8046875 13 L 6.7011719 12.939453 L 5.9394531 12.5 L 5.9394531 11.5 L 6.7011719 11.060547 L 6.8046875 11 z M 17.195312 11 L 17.298828 11.060547 L 18.060547 11.5 L 18.060547 12.5 L 17.298828 12.939453 L 17.195312 13 L 16.763672 12.75 L 16.330078 12.5 L 16.330078 11.5 L 17.195312 11 z M 19.792969 11 L 19.927734 11.078125 C 19.969574 11.383766 19.9937 11.691572 20 12 C 19.9937 12.308428 19.969584 12.616234 19.927734 12.921875 L 19.792969 13 L 18.927734 12.5 L 18.927734 12.25 L 18.927734 11.5 L 19.792969 11 z M 5.5058594 13.25 L 5.7128906 13.369141 L 6.3710938 13.75 L 6.3710938 14.75 L 5.5058594 15.25 L 4.640625 14.75 L 4.640625 13.75 L 5.5058594 13.25 z M 8.1035156 13.25 L 8.2246094 13.320312 C 8.3742003 13.746904 8.5987134 14.141825 8.8808594 14.494141 C 8.9107409 14.531454 8.9375015 14.571149 8.96875 14.607422 C 8.9690848 14.607816 8.968415 14.608981 8.96875 14.609375 L 8.96875 14.75 L 8.5371094 15 L 8.1035156 15.25 L 7.2382812 14.75 L 7.2382812 13.75 L 7.671875 13.5 L 8.1035156 13.25 z M 15.896484 13.25 L 16.455078 13.572266 L 16.761719 13.75 L 16.761719 14.75 L 15.896484 15.25 L 15.03125 14.75 L 15.03125 14.609375 C 15.288819 14.306302 15.495308 13.965789 15.652344 13.601562 C 15.6928 13.511265 15.729958 13.419415 15.763672 13.326172 L 15.896484 13.25 z M 18.494141 13.25 L 19.359375 13.75 L 19.359375 14.75 L 18.494141 15.25 L 17.628906 14.75 L 17.628906 13.75 L 18.494141 13.25 z M 6.8046875 15.5 L 7.6699219 16 L 7.6699219 17 L 6.8046875 17.5 L 6.7011719 17.439453 L 5.9394531 17 L 5.9394531 16.75 L 5.9394531 16 L 6.7011719 15.560547 L 6.8046875 15.5 z M 9.4023438 15.5 L 9.8339844 15.75 L 10.267578 16 L 10.267578 17 L 9.8339844 17.25 L 9.4023438 17.5 L 8.9707031 17.25 L 8.5371094 17 L 8.5371094 16.25 L 8.5371094 16 L 8.96875 15.75 L 8.9707031 15.75 L 9.4023438 15.5 z M 14.597656 15.5 L 15.029297 15.75 L 15.462891 16 L 15.462891 17 L 15.03125 17.25 L 14.597656 17.5 L 13.732422 17 L 13.732422 16.160156 L 13.732422 16 L 13.859375 15.925781 L 14.166016 15.75 L 14.597656 15.5 z M 17.195312 15.5 L 17.298828 15.560547 L 18.060547 16 L 18.060547 16.25 L 18.060547 17 L 17.195312 17.5 L 16.330078 17 L 16.330078 16 L 17.195312 15.5 z M 12.732422 15.923828 L 12.865234 16 L 12.865234 16.75 L 12.865234 17 L 12.103516 17.439453 L 12 17.5 L 11.134766 17 L 11.134766 16 L 11.255859 15.929688 C 11.256492 15.929808 11.25718 15.929568 11.257812 15.929688 C 11.502508 15.976059 11.750946 15.99984 12 16 C 12.122981 15.9986 12.244987 15.991227 12.367188 15.978516 C 12.489388 15.965806 12.611782 15.947758 12.732422 15.923828 z M 8.1035156 17.75 L 8.96875 18.25 L 8.96875 19.25 L 8.8398438 19.324219 C 8.2730923 19.085975 7.7356888 18.783196 7.2382812 18.421875 L 7.2382812 18.25 L 7.8964844 17.869141 L 8.1035156 17.75 z M 10.701172 17.75 L 11.566406 18.25 L 11.566406 19.25 L 10.701172 19.75 L 9.8359375 19.25 L 9.8359375 18.25 L 10.701172 17.75 z M 13.298828 17.75 L 13.732422 18 L 14.164062 18.25 L 14.164062 19.25 L 13.896484 19.404297 L 13.298828 19.75 L 13.042969 19.601562 L 12.867188 19.5 L 12.433594 19.25 L 12.433594 18.25 L 12.867188 18 L 13.125 17.851562 C 13.125123 17.85094 13.124877 17.850232 13.125 17.849609 L 13.298828 17.75 z M 15.896484 17.75 L 16.761719 18.25 L 16.761719 18.421875 C 16.264309 18.783196 15.726909 19.085977 15.160156 19.324219 L 15.03125 19.25 L 15.03125 18.25 L 15.462891 18 L 15.896484 17.75 z",wM="M 12 2 A 10 10 0 0 0 10.871094 2.0800781 A 10 10 0 0 0 9.8515625 2.2597656 A 10 10 0 0 0 8.5371094 2.6464844 A 10 10 0 0 0 7.671875 3 A 10 10 0 0 0 7.6699219 3 A 10 10 0 0 0 6.375 3.7519531 A 10 10 0 0 0 5.6210938 4.3164062 A 10 10 0 0 0 4.640625 5.2539062 A 10 10 0 0 0 4.0429688 5.9863281 A 10 10 0 0 0 3.9179688 6.1542969 A 10 10 0 0 0 3.3769531 6.9804688 A 10 10 0 0 0 3.3417969 7.0449219 A 10 10 0 0 0 2.4726562 9.0019531 A 10 10 0 0 0 2.1582031 10.316406 A 10 10 0 0 0 2.0527344 11.248047 A 10 10 0 0 0 2.0527344 11.255859 A 10 10 0 0 0 2 12 A 10 10 0 0 0 2.0527344 12.742188 A 10 10 0 0 0 2.0527344 12.748047 A 10 10 0 0 0 2.1582031 13.683594 A 10 10 0 0 0 2.4726562 14.998047 A 10 10 0 0 0 3.3417969 16.955078 A 10 10 0 0 0 3.3769531 17.019531 A 10 10 0 0 0 3.9179688 17.845703 A 10 10 0 0 0 4.0429688 18.013672 A 10 10 0 0 0 4.640625 18.746094 A 10 10 0 0 0 5.6210938 19.683594 A 10 10 0 0 0 6.375 20.248047 A 10 10 0 0 0 7.6699219 21 A 10 10 0 0 0 7.671875 21 A 10 10 0 0 0 8.5371094 21.353516 A 10 10 0 0 0 9.8515625 21.740234 A 10 10 0 0 0 10.871094 21.919922 A 10 10 0 0 0 12 22 A 10 10 0 0 0 13.128906 21.919922 A 10 10 0 0 0 13.71875 21.816406 A 6 6 0 0 1 13.042969 19.601562 L 12.433594 19.25 L 12.433594 18.25 L 12.867188 18 L 13.125 17.851562 A 6 6 0 0 1 13.732422 16.160156 L 13.732422 16 L 13.859375 15.925781 A 6 6 0 0 1 15.201172 14.367188 A 4 4 0 0 0 15.763672 13.326172 L 15.896484 13.25 L 16.455078 13.572266 A 6 6 0 0 1 19 13 A 6 6 0 0 1 21.833984 13.712891 A 10 10 0 0 0 21.841797 13.683594 A 10 10 0 0 0 21.947266 12.751953 A 10 10 0 0 0 21.947266 12.75 A 10 10 0 0 0 21.947266 12.748047 A 10 10 0 0 0 21.947266 12.746094 A 10 10 0 0 0 21.947266 12.744141 A 10 10 0 0 0 22 12 A 10 10 0 0 0 21.96875 11.244141 A 10 10 0 0 0 21.966797 11.232422 A 10 10 0 0 0 21.853516 10.310547 A 10 10 0 0 0 21.541016 9.0097656 A 10 10 0 0 0 21.160156 7.9960938 A 10 10 0 0 0 21.154297 7.9824219 A 10 10 0 0 0 21.146484 7.96875 A 10 10 0 0 0 20.658203 7.0019531 A 10 10 0 0 0 20.65625 7 A 10 10 0 0 0 20.056641 6.0800781 A 10 10 0 0 0 19.359375 5.2324219 A 10 10 0 0 0 18.390625 4.3105469 A 10 10 0 0 0 17.638672 3.7441406 A 10 10 0 0 0 16.330078 2.9882812 A 10 10 0 0 0 16.328125 2.9882812 A 10 10 0 0 0 15.462891 2.6210938 A 10 10 0 0 0 14.177734 2.2421875 A 10 10 0 0 0 14.175781 2.2421875 A 10 10 0 0 0 13.140625 2.0683594 A 10 10 0 0 0 13.0625 2.0585938 A 10 10 0 0 0 12 2 z M 10.701172 4.25 L 11.132812 4.5 L 11.566406 4.75 L 11.566406 5.75 L 10.701172 6.25 L 10.267578 6 L 9.8359375 5.75 L 9.8359375 4.75 L 10.103516 4.5957031 L 10.701172 4.25 z M 13.298828 4.25 L 14.164062 4.75 L 14.164062 5.75 L 13.298828 6.25 L 12.433594 5.75 L 12.433594 4.75 L 13.298828 4.25 z M 15.181641 4.6640625 A 8 8 0 0 1 16.761719 5.5742188 L 16.761719 5.75 L 16.103516 6.1308594 L 15.896484 6.25 L 15.03125 5.75 L 15.03125 4.75 L 15.181641 4.6640625 z M 8.8398438 4.6757812 L 8.96875 4.75 L 8.96875 5.75 L 8.5371094 6 L 8.1035156 6.25 L 7.2382812 5.75 L 7.2382812 5.578125 A 8 8 0 0 1 8.8398438 4.6757812 z M 6.8046875 6.5 L 7.6699219 7 L 7.6699219 8 L 6.8046875 8.5 L 6.7011719 8.4394531 L 5.9394531 8 L 5.9394531 7.75 L 5.9394531 7 L 6.8046875 6.5 z M 9.4023438 6.5 L 10.267578 7 L 10.267578 8 L 9.8339844 8.25 L 9.4023438 8.5 L 8.9707031 8.25 L 8.5371094 8 L 8.5371094 7 L 8.96875 6.75 L 9.4023438 6.5 z M 12 6.5 L 12.865234 7 L 12.865234 7.75 L 12.865234 8 L 12.744141 8.0703125 A 4 4 0 0 0 12 8 A 4 4 0 0 0 11.267578 8.0761719 L 11.134766 8 L 11.134766 7 L 12 6.5 z M 14.597656 6.5 L 15.462891 7 L 15.462891 7.75 L 15.462891 8 L 14.597656 8.5 L 13.732422 8 L 13.732422 7.75 L 13.732422 7 L 14.597656 6.5 z M 17.195312 6.5 L 18.060547 7 L 18.060547 8 L 17.195312 8.5 L 16.330078 8 L 16.330078 7 L 17.195312 6.5 z M 5.5058594 8.75 L 6.3710938 9.25 L 6.3710938 10.25 L 5.5058594 10.75 L 4.640625 10.25 L 4.640625 9.25 L 5.5058594 8.75 z M 8.1035156 8.75 L 8.96875 9.25 L 8.96875 9.390625 A 4 4 0 0 0 8.2363281 10.673828 L 8.1035156 10.75 L 7.2382812 10.25 L 7.2382812 9.25 L 8.1035156 8.75 z M 15.896484 8.75 L 16.761719 9.25 L 16.761719 10.25 L 15.896484 10.75 L 15.775391 10.679688 A 4 4 0 0 0 15.03125 9.3925781 L 15.03125 9.25 L 15.896484 8.75 z M 18.494141 8.75 L 19.359375 9.25 L 19.359375 10.25 L 18.494141 10.75 L 18.287109 10.630859 L 17.628906 10.25 L 17.628906 9.25 L 18.494141 8.75 z M 12 10 A 2 2 0 0 1 14 12 A 2 2 0 0 1 12 14 A 2 2 0 0 1 10 12 A 2 2 0 0 1 12 10 z M 4.2070312 11 L 5.0722656 11.5 L 5.0722656 12.5 L 4.2070312 13 L 4.0722656 12.921875 A 8 8 0 0 1 4 12 A 8 8 0 0 1 4.0722656 11.078125 L 4.2070312 11 z M 6.8046875 11 L 7.6699219 11.5 L 7.6699219 12.5 L 6.8046875 13 L 6.7011719 12.939453 L 5.9394531 12.5 L 5.9394531 11.5 L 6.7011719 11.060547 L 6.8046875 11 z M 17.195312 11 L 18.060547 11.5 L 18.060547 12.5 L 17.195312 13 L 16.763672 12.75 L 16.330078 12.5 L 16.330078 11.5 L 17.195312 11 z M 19.792969 11 L 19.947266 11.089844 A 8 8 0 0 1 20 12 A 8 8 0 0 1 19.927734 12.921875 L 19.792969 13 L 18.927734 12.5 L 18.927734 12.25 L 18.927734 11.5 L 19.792969 11 z M 5.5058594 13.25 L 6.3710938 13.75 L 6.3710938 14.75 L 5.5058594 15.25 L 4.640625 14.75 L 4.640625 13.75 L 5.5058594 13.25 z M 8.1035156 13.25 L 8.2363281 13.326172 A 4 4 0 0 0 8.96875 14.609375 L 8.96875 14.75 L 8.5371094 15 L 8.1035156 15.25 L 7.2382812 14.75 L 7.2382812 13.75 L 7.671875 13.5 L 8.1035156 13.25 z M 6.8046875 15.5 L 7.6699219 16 L 7.6699219 17 L 6.8046875 17.5 L 6.7011719 17.439453 L 5.9394531 17 L 5.9394531 16.75 L 5.9394531 16 L 6.7011719 15.560547 L 6.8046875 15.5 z M 9.4023438 15.5 L 9.8339844 15.75 L 10.267578 16 L 10.267578 17 L 9.8339844 17.25 L 9.4023438 17.5 L 8.9707031 17.25 L 8.5371094 17 L 8.5371094 16 L 8.96875 15.75 L 8.9707031 15.75 L 9.4023438 15.5 z M 11.267578 15.923828 A 4 4 0 0 0 12 16 A 4 4 0 0 0 12.732422 15.923828 L 12.865234 16 L 12.865234 16.75 L 12.865234 17 L 12.103516 17.439453 L 12 17.5 L 11.134766 17 L 11.134766 16 L 11.267578 15.923828 z M 18 16 L 18 20 L 16 20 L 19 23 L 22 20 L 20 20 L 20 16 L 18 16 z M 8.1035156 17.75 L 8.96875 18.25 L 8.96875 19.25 L 8.8398438 19.324219 A 8 8 0 0 1 7.2382812 18.421875 L 7.2382812 18.25 L 8.1035156 17.75 z M 10.701172 17.75 L 11.566406 18.25 L 11.566406 19.25 L 10.701172 19.75 L 9.8359375 19.25 L 9.8359375 18.25 L 10.701172 17.75 z",xM="M 12 2 A 10 10 0 0 0 10.871094 2.0800781 A 10 10 0 0 0 9.8515625 2.2597656 A 10 10 0 0 0 8.5371094 2.6464844 A 10 10 0 0 0 7.671875 3 A 10 10 0 0 0 7.6699219 3 A 10 10 0 0 0 6.375 3.7519531 A 10 10 0 0 0 5.6210938 4.3164062 A 10 10 0 0 0 4.640625 5.2539062 A 10 10 0 0 0 4.0429688 5.9863281 A 10 10 0 0 0 3.9179688 6.1542969 A 10 10 0 0 0 3.3769531 6.9804688 A 10 10 0 0 0 3.3417969 7.0449219 A 10 10 0 0 0 2.4726562 9.0019531 A 10 10 0 0 0 2.1582031 10.316406 A 10 10 0 0 0 2.0527344 11.248047 A 10 10 0 0 0 2.0527344 11.255859 A 10 10 0 0 0 2 12 A 10 10 0 0 0 2.0527344 12.742188 A 10 10 0 0 0 2.0527344 12.748047 A 10 10 0 0 0 2.1582031 13.683594 A 10 10 0 0 0 2.4726562 14.998047 A 10 10 0 0 0 3.3417969 16.955078 A 10 10 0 0 0 3.3769531 17.019531 A 10 10 0 0 0 3.9179688 17.845703 A 10 10 0 0 0 4.0429688 18.013672 A 10 10 0 0 0 4.640625 18.746094 A 10 10 0 0 0 5.6210938 19.683594 A 10 10 0 0 0 6.375 20.248047 A 10 10 0 0 0 7.6699219 21 A 10 10 0 0 0 7.671875 21 A 10 10 0 0 0 8.5371094 21.353516 A 10 10 0 0 0 9.8515625 21.740234 A 10 10 0 0 0 10.871094 21.919922 A 10 10 0 0 0 12 22 A 10 10 0 0 0 13.128906 21.919922 A 10 10 0 0 0 13.71875 21.816406 A 6 6 0 0 1 13.042969 19.601562 L 12.433594 19.25 L 12.433594 18.25 L 12.867188 18 L 13.125 17.851562 A 6 6 0 0 1 13.732422 16.160156 L 13.732422 16 L 13.859375 15.925781 A 6 6 0 0 1 15.201172 14.367188 A 4 4 0 0 0 15.763672 13.326172 L 15.896484 13.25 L 16.455078 13.572266 A 6 6 0 0 1 19 13 A 6 6 0 0 1 21.833984 13.712891 A 10 10 0 0 0 21.841797 13.683594 A 10 10 0 0 0 21.947266 12.751953 A 10 10 0 0 0 21.947266 12.75 A 10 10 0 0 0 21.947266 12.748047 A 10 10 0 0 0 21.947266 12.746094 A 10 10 0 0 0 21.947266 12.744141 A 10 10 0 0 0 22 12 A 10 10 0 0 0 21.96875 11.244141 A 10 10 0 0 0 21.966797 11.232422 A 10 10 0 0 0 21.853516 10.310547 A 10 10 0 0 0 21.541016 9.0097656 A 10 10 0 0 0 21.160156 7.9960938 A 10 10 0 0 0 21.154297 7.9824219 A 10 10 0 0 0 21.146484 7.96875 A 10 10 0 0 0 20.658203 7.0019531 A 10 10 0 0 0 20.65625 7 A 10 10 0 0 0 20.056641 6.0800781 A 10 10 0 0 0 19.359375 5.2324219 A 10 10 0 0 0 18.390625 4.3105469 A 10 10 0 0 0 17.638672 3.7441406 A 10 10 0 0 0 16.330078 2.9882812 A 10 10 0 0 0 16.328125 2.9882812 A 10 10 0 0 0 15.462891 2.6210938 A 10 10 0 0 0 14.177734 2.2421875 A 10 10 0 0 0 14.175781 2.2421875 A 10 10 0 0 0 13.140625 2.0683594 A 10 10 0 0 0 13.0625 2.0585938 A 10 10 0 0 0 12 2 z M 10.701172 4.25 L 11.132812 4.5 L 11.566406 4.75 L 11.566406 5.75 L 10.701172 6.25 L 10.267578 6 L 9.8359375 5.75 L 9.8359375 4.75 L 10.103516 4.5957031 L 10.701172 4.25 z M 13.298828 4.25 L 14.164062 4.75 L 14.164062 5.75 L 13.298828 6.25 L 12.433594 5.75 L 12.433594 4.75 L 13.298828 4.25 z M 15.181641 4.6640625 A 8 8 0 0 1 16.761719 5.5742188 L 16.761719 5.75 L 16.103516 6.1308594 L 15.896484 6.25 L 15.03125 5.75 L 15.03125 4.75 L 15.181641 4.6640625 z M 8.8398438 4.6757812 L 8.96875 4.75 L 8.96875 5.75 L 8.5371094 6 L 8.1035156 6.25 L 7.2382812 5.75 L 7.2382812 5.578125 A 8 8 0 0 1 8.8398438 4.6757812 z M 6.8046875 6.5 L 7.6699219 7 L 7.6699219 8 L 6.8046875 8.5 L 6.7011719 8.4394531 L 5.9394531 8 L 5.9394531 7.75 L 5.9394531 7 L 6.8046875 6.5 z M 9.4023438 6.5 L 10.267578 7 L 10.267578 8 L 9.8339844 8.25 L 9.4023438 8.5 L 8.9707031 8.25 L 8.5371094 8 L 8.5371094 7 L 8.96875 6.75 L 9.4023438 6.5 z M 12 6.5 L 12.865234 7 L 12.865234 7.75 L 12.865234 8 L 12.744141 8.0703125 A 4 4 0 0 0 12 8 A 4 4 0 0 0 11.267578 8.0761719 L 11.134766 8 L 11.134766 7 L 12 6.5 z M 14.597656 6.5 L 15.462891 7 L 15.462891 7.75 L 15.462891 8 L 14.597656 8.5 L 13.732422 8 L 13.732422 7.75 L 13.732422 7 L 14.597656 6.5 z M 17.195312 6.5 L 18.060547 7 L 18.060547 8 L 17.195312 8.5 L 16.330078 8 L 16.330078 7 L 17.195312 6.5 z M 5.5058594 8.75 L 6.3710938 9.25 L 6.3710938 10.25 L 5.5058594 10.75 L 4.640625 10.25 L 4.640625 9.25 L 5.5058594 8.75 z M 8.1035156 8.75 L 8.96875 9.25 L 8.96875 9.390625 A 4 4 0 0 0 8.2363281 10.673828 L 8.1035156 10.75 L 7.2382812 10.25 L 7.2382812 9.25 L 8.1035156 8.75 z M 15.896484 8.75 L 16.761719 9.25 L 16.761719 10.25 L 15.896484 10.75 L 15.775391 10.679688 A 4 4 0 0 0 15.03125 9.3925781 L 15.03125 9.25 L 15.896484 8.75 z M 18.494141 8.75 L 19.359375 9.25 L 19.359375 10.25 L 18.494141 10.75 L 18.287109 10.630859 L 17.628906 10.25 L 17.628906 9.25 L 18.494141 8.75 z M 12 10 A 2 2 0 0 1 14 12 A 2 2 0 0 1 12 14 A 2 2 0 0 1 10 12 A 2 2 0 0 1 12 10 z M 4.2070312 11 L 5.0722656 11.5 L 5.0722656 12.5 L 4.2070312 13 L 4.0722656 12.921875 A 8 8 0 0 1 4 12 A 8 8 0 0 1 4.0722656 11.078125 L 4.2070312 11 z M 6.8046875 11 L 7.6699219 11.5 L 7.6699219 12.5 L 6.8046875 13 L 6.7011719 12.939453 L 5.9394531 12.5 L 5.9394531 11.5 L 6.7011719 11.060547 L 6.8046875 11 z M 17.195312 11 L 18.060547 11.5 L 18.060547 12.5 L 17.195312 13 L 16.763672 12.75 L 16.330078 12.5 L 16.330078 11.5 L 17.195312 11 z M 19.792969 11 L 19.947266 11.089844 A 8 8 0 0 1 20 12 A 8 8 0 0 1 19.927734 12.921875 L 19.792969 13 L 18.927734 12.5 L 18.927734 12.25 L 18.927734 11.5 L 19.792969 11 z M 5.5058594 13.25 L 6.3710938 13.75 L 6.3710938 14.75 L 5.5058594 15.25 L 4.640625 14.75 L 4.640625 13.75 L 5.5058594 13.25 z M 8.1035156 13.25 L 8.2363281 13.326172 A 4 4 0 0 0 8.96875 14.609375 L 8.96875 14.75 L 8.5371094 15 L 8.1035156 15.25 L 7.2382812 14.75 L 7.2382812 13.75 L 7.671875 13.5 L 8.1035156 13.25 z M 19 15 L 16 18 L 18 18 L 18 22 L 20 22 L 20 18 L 22 18 L 19 15 z M 6.8046875 15.5 L 7.6699219 16 L 7.6699219 17 L 6.8046875 17.5 L 6.7011719 17.439453 L 5.9394531 17 L 5.9394531 16.75 L 5.9394531 16 L 6.7011719 15.560547 L 6.8046875 15.5 z M 9.4023438 15.5 L 9.8339844 15.75 L 10.267578 16 L 10.267578 17 L 9.8339844 17.25 L 9.4023438 17.5 L 8.9707031 17.25 L 8.5371094 17 L 8.5371094 16 L 8.96875 15.75 L 8.9707031 15.75 L 9.4023438 15.5 z M 11.267578 15.923828 A 4 4 0 0 0 12 16 A 4 4 0 0 0 12.732422 15.923828 L 12.865234 16 L 12.865234 16.75 L 12.865234 17 L 12.103516 17.439453 L 12 17.5 L 11.134766 17 L 11.134766 16 L 11.267578 15.923828 z M 8.1035156 17.75 L 8.96875 18.25 L 8.96875 19.25 L 8.8398438 19.324219 A 8 8 0 0 1 7.2382812 18.421875 L 7.2382812 18.25 L 8.1035156 17.75 z M 10.701172 17.75 L 11.566406 18.25 L 11.566406 19.25 L 10.701172 19.75 L 9.8359375 19.25 L 9.8359375 18.25 L 10.701172 17.75 z",CM="m 23.5,18.5 -3,-3 v 2 h -4 v 2 h 4 v 2 z m -9,0 3,3 v -2 h 4 v -2 h -4 v -2 z M 12,2 C 11.622488,2.00536 11.245583,2.032096 10.871094,2.080078 10.528376,2.122331 10.188076,2.182307 9.8515625,2.2597655 9.4050853,2.3584681 8.9659036,2.4876776 8.5371094,2.6464844 8.2433456,2.7507727 7.9546188,2.8687401 7.671875,3 H 7.669925 C 7.2200951,3.2179361 6.7872412,3.4692916 6.375,3.7519531 6.1149725,3.9281594 5.8633915,4.1165192 5.6210938,4.3164062 5.2734271,4.6063528 4.9458507,4.9195733 4.640625,5.2539062 4.4299716,5.4884888 4.2305301,5.7329024 4.0429688,5.9863281 4.0007171,6.04188 3.9590482,6.0978726 3.9179688,6.1542969 3.7241339,6.4206094 3.5435752,6.6963361 3.3769531,6.9804688 3.3651555,7.0019101 3.3534367,7.0233946 3.3417969,7.0449219 2.9828723,7.664277 2.6914886,8.3203814 2.4726562,9.0019531 2.3383156,9.4325113 2.233258,9.871665 2.1582031,10.316406 2.1084999,10.625133 2.073305,10.936022 2.0527344,11.248047 v 0.0078 C 2.0259069,11.503164 2.0083166,11.751383 2,12 c 0.00836,0.247965 0.025955,0.495532 0.052734,0.742188 v 0.0059 c 0.020449,0.313332 0.055644,0.625527 0.1054687,0.935547 0.075055,0.444741 0.1801125,0.883895 0.3144531,1.314453 0.2188324,0.681572 0.5102161,1.337676 0.8691407,1.957031 0.01164,0.02153 0.023359,0.04301 0.035156,0.06445 0.1666221,0.284133 0.3471808,0.55986 0.5410157,0.826172 0.041079,0.05642 0.082748,0.112417 0.125,0.167969 0.1875613,0.253426 0.3870028,0.497839 0.5976562,0.732422 0.3052257,0.334333 0.6328021,0.647553 0.9804688,0.9375 C 5.8633915,19.883481 6.1149725,20.071841 6.375,20.248047 6.7872412,20.530708 7.2200951,20.782064 7.6699219,21 h 0.00195 c 0.2827438,0.13126 0.5714706,0.249228 0.8652344,0.353516 0.4287942,0.158807 0.8679759,0.288016 1.3144531,0.386718 0.3365136,0.07746 0.6768136,0.137435 1.0195316,0.179688 C 11.245583,21.967904 11.622488,21.99464 12,22 12.377512,21.9946 12.754417,21.9679 13.128906,21.91992 13.32651,21.89131 13.523213,21.85679 13.71875,21.816404 13.351809,21.12901 13.122274,20.37672 13.042969,19.601562 L 12.433594,19.25 v -1 L 12.867188,18 13.125,17.851562 c 0.11641,-0.5911 0.32118,-1.161297 0.607422,-1.691406 V 16 l 0.126953,-0.07422 c 0.354229,-0.592884 0.808162,-1.120159 1.341797,-1.558593 0.238072,-0.3172 0.427646,-0.668043 0.5625,-1.041016 L 15.896484,13.25 16.455078,13.572266 C 17.251154,13.197189 18.119991,13.001817 19,13 c 0.988977,4.37e-4 1.962512,0.24533 2.833984,0.712891 0.0026,-0.0098 0.0052,-0.01953 0.0078,-0.0293 0.0497,-0.308727 0.0849,-0.619616 0.105469,-0.931641 v -0.002 -0.002 -0.002 -0.002 C 21.974093,12.496836 21.991684,12.248617 22,12 21.999121,11.747743 21.9887,11.49561 21.96875,11.244141 l -0.002,-0.01172 C 21.94329,10.923541 21.90549,10.615917 21.853469,10.310546 21.778459,9.8704628 21.674054,9.4358968 21.540969,9.0097646 21.432417,8.6652433 21.305277,8.3268567 21.160109,7.9960928 l -0.0059,-0.013672 -0.0078,-0.013672 C 21.001308,7.6379002 20.838309,7.3151613 20.658203,7.0019531 L 20.65625,7 C 20.47338,6.6826088 20.273208,6.3755053 20.056641,6.0800781 19.839912,5.7849743 19.60714,5.5019961 19.359375,5.2324219 19.05739,4.9038587 18.73375,4.5958786 18.390625,4.3105469 18.149005,4.1100447 17.898076,3.9210332 17.638672,3.7441406 17.222163,3.4595417 16.784717,3.2068673 16.330078,2.9882812 h -0.002 C 16.045628,2.8523913 15.756898,2.7298602 15.462891,2.6210938 15.043458,2.4662028 14.614109,2.3396167 14.177734,2.2421875 h -0.002 C 13.83401,2.1661631 13.488482,2.1081405 13.140625,2.0683594 13.114596,2.0650017 13.088554,2.0617465 13.0625,2.0585938 12.709624,2.0202193 12.354956,2.0006604 12,2 Z m -1.298828,2.25 0.43164,0.25 0.433594,0.25 v 1 L 10.701172,6.25 10.267578,6 9.8359375,5.75 v -1 L 10.103516,4.5957031 Z m 2.597656,0 0.865234,0.5 v 1 l -0.865234,0.5 -0.865234,-0.5 v -1 z m 1.882813,0.4140625 c 0.55966,0.2421723 1.089796,0.5475408 1.580078,0.9101563 V 5.75 L 16.103516,6.1308594 15.896484,6.25 15.03125,5.75 v -1 z M 8.8398438,4.6757812 8.96875,4.75 v 1 L 8.5371094,6 8.1035156,6.25 7.2382812,5.75 V 5.578125 C 7.7356899,5.2168037 8.273091,4.9140241 8.8398438,4.6757812 Z M 6.8046875,6.5 7.6699219,7 V 8 L 6.8046875,8.5 6.7011719,8.4394531 5.9394531,8 V 7.75 7 Z M 9.4023438,6.5 10.267578,7 V 8 L 9.8339844,8.25 9.4023438,8.5 8.9707031,8.25 8.5371094,8 V 7 L 8.96875,6.75 Z M 12,6.5 12.865234,7 V 7.75 8 L 12.744141,8.070312 C 12.498832,8.0237001 12.249698,8.0001598 12,8 11.754037,8.00282 11.508857,8.028315 11.267578,8.076172 L 11.134766,8 V 7 Z m 2.597656,0 0.865235,0.5 V 7.75 8 L 14.597656,8.5 13.732422,8 V 7.75 7 Z m 2.597656,0 0.865235,0.5 V 8 L 17.195312,8.5 16.330078,8 V 7 Z M 5.5058594,8.75 6.3710938,9.25 v 1 l -0.8652344,0.5 -0.8652344,-0.5 v -1 z m 2.5976562,0 0.8652344,0.5 V 9.390625 C 8.6470442,9.7691668 8.3986671,10.204323 8.2363281,10.673828 L 8.1035156,10.75 7.2382812,10.25 v -1 z m 7.7929684,0 0.865235,0.5 v 1 l -0.865235,0.5 -0.121093,-0.07031 C 15.609957,10.207918 15.357551,9.7713421 15.03125,9.3925781 V 9.25 Z m 2.597657,0 0.865234,0.5 v 1 L 18.494141,10.75 18.287109,10.630859 17.628906,10.25 v -1 z M 12,10 c 1.104569,0 2,0.895431 2,2 0,1.104569 -0.895431,2 -2,2 -1.104569,0 -2,-0.895431 -2,-2 0,-1.104569 0.895431,-2 2,-2 z m -7.7929688,1 0.8652344,0.5 v 1 L 4.2070312,13 4.0722656,12.921875 C 4.0304228,12.616234 4.0062939,12.308428 4,12 4.00629,11.691572 4.030423,11.383766 4.072266,11.078125 Z m 2.5976563,0 0.8652344,0.5 v 1 L 6.8046875,13 6.7011719,12.939453 5.9394531,12.5 v -1 l 0.7617188,-0.439453 z m 10.3906245,0 0.865235,0.5 v 1 L 17.195312,13 16.763672,12.75 16.330078,12.5 v -1 z m 2.597657,0 0.154297,0.08984 C 19.982131,11.39198 19.999737,11.695859 20,12 c -0.0063,0.308428 -0.03042,0.616234 -0.07227,0.921875 L 19.792969,13 18.927734,12.5 V 12.25 11.5 Z m -14.2871096,2.25 0.8652344,0.5 v 1 l -0.8652344,0.5 -0.8652344,-0.5 v -1 z m 2.5976562,0 0.1328125,0.07617 c 0.162339,0.469505 0.4107161,0.904661 0.7324219,1.283203 V 14.75 L 8.5371094,15 8.1035156,15.25 7.2382812,14.75 v -1 L 7.671875,13.5 Z M 6.8046875,15.5 7.6699219,16 v 1 L 6.8046875,17.5 6.7011719,17.439453 5.9394531,17 V 16.75 16 l 0.7617188,-0.439453 z m 2.5976563,0 0.4316406,0.25 0.4335936,0.25 v 1 L 9.8339844,17.25 9.4023438,17.5 8.9707031,17.25 8.5371094,17 V 16 L 8.96875,15.75 H 8.9707 Z m 1.8652342,0.423828 C 11.508857,15.971685 11.754037,15.997183 12,16 c 0.245963,-0.0028 0.491143,-0.02831 0.732422,-0.07617 L 12.865234,16 V 16.75 17 L 12.103516,17.439453 12,17.5 11.134766,17 V 16 Z M 8.1035156,17.75 8.96875,18.25 v 1 L 8.8398438,19.32422 C 8.273091,19.085976 7.7356899,18.783196 7.2382812,18.421875 V 18.25 Z m 2.5976564,0 0.865234,0.5 v 1 l -0.865234,0.5 -0.8652345,-0.5 v -1 z",PM="M 6 2 C 4.8900033 2 4 2.8900033 4 4 L 4 20 C 4 21.099997 4.8900033 22 6 22 L 11.111328 22 L 12 22 L 12 20 L 6 20 L 12 14 L 13.210938 15.210938 C 13.375508 12.672702 15.686928 11 18 11 C 18.699997 11 19.400001 11.200391 20 11.400391 L 20 11 L 20 8 L 14 2 L 6 2 z M 13 3.5 L 18.5 9 L 13 9 L 13 3.5 z M 8 9 A 2 2 0 0 1 10 11 A 2 2 0 0 1 8 13 A 2 2 0 0 1 6 11 A 2 2 0 0 1 8 9 z M 18 13 C 16.600001 13 15.199219 14.100002 15.199219 15.5 L 15.199219 17 C 14.599219 17 14 17.599219 14 18.199219 L 14 21.699219 C 14 22.399217 14.599219 23 15.199219 23 L 20.699219 23 C 21.399218 23 22 22.400781 22 21.800781 L 22 18.300781 C 22 17.600783 21.400781 17 20.800781 17 L 20.800781 15.5 C 20.800781 14.100002 19.399998 13 18 13 z M 18 14.199219 C 18.799997 14.199219 19.5 14.700002 19.5 15.5 L 19.5 17 L 16.5 17 L 16.5 15.5 C 16.5 14.700002 17.200002 14.199219 18 14.199219 z",LM="M13,12.9h-2.1c-0.2,0-0.3,0.1-0.3,0.3v0.5c0,0.2,0.1,0.3,0.3,0.3H13c0.2,0,0.3-0.1,0.3-0.3v-0.5C13.3,13,13.2,12.9,13,12.9z M13.4,13.2C13.4,13.2,13.4,13.2,13.4,13.2l0,0.5c0,0.2-0.2,0.4-0.4,0.4h-2.1c-0.2,0-0.4-0.2-0.4-0.4v-0.5c0,0,0,0,0,0H1V19 h1.4v0.1h0.1v0.1h1.2v-0.1h0.1V19h16.5v0.1h0.1v0.1h1.2v-0.1h0.1V19H23v-5.7H13.4z M2,12.2L2,5.8L22,5.8L22,12.2L23,12.2L23,6.9L22.8,6.9L22.8,4.8L1.2,4.8L1.2,6.9L1,6.9L1,12.2 M3.6,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C3.8,8.2,3.7,8.2,3.6,8.2z M4.1,8.2C4,8.2,3.9,8.2,3.9,8.4v3.8h0.4V8.4C4.3,8.2,4.2,8.2,4.1,8.2z M3,7C2.9,7,2.8,7.2,2.8,7.3v4.9h0.5V7.3C3.3,7.2,3.2,7,3,7z M4.5,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C4.7,8.2,4.7,8.2,4.5,8.2z M6.5,7C6.4,7,6.3,7.2,6.3,7.3v4.9h0.5V7.3C6.8,7.2,6.7,7,6.5,7z M5.9,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C6.2,8.2,6.1,8.2,5.9,8.2z M5,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C5.2,8.2,5.1,8.2,5,8.2z M5.5,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C5.7,8.2,5.6,8.2,5.5,8.2z M8.9,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C9.1,8.2,9,8.2,8.9,8.2z M9.4,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C9.6,8.2,9.5,8.2,9.4,8.2z M8.4,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C8.6,8.2,8.5,8.2,8.4,8.2z M7.9,7C7.7,7,7.6,7.2,7.6,7.3v4.9h0.5V7.3C8.1,7.2,8,7,7.9,7z M10.3,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C10.5,8.2,10.4,8.2,10.3,8.2z M9.8,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8H10V8.4C10,8.2,9.9,8.2,9.8,8.2z M11.3,7c-0.1,0-0.3,0.1-0.3,0.3v4.9h0.5V7.3C11.6,7.2,11.5,7,11.3,7z M10.8,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8H11V8.4C11,8.2,10.9,8.2,10.8,8.2z M14.2,8.2C14,8.2,14,8.2,14,8.4v3.8h0.4V8.4C14.4,8.2,14.3,8.2,14.2,8.2z M13.7,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C13.9,8.2,13.8,8.2,13.7,8.2z M13.2,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C13.4,8.2,13.3,8.2,13.2,8.2z M12.7,7c-0.1,0-0.3,0.1-0.3,0.3v4.9h0.5V7.3C12.9,7.2,12.8,7,12.7,7z M15.6,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C15.8,8.2,15.7,8.2,15.6,8.2z M14.6,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C14.8,8.2,14.7,8.2,14.6,8.2z M16.1,7c-0.1,0-0.3,0.1-0.3,0.3v4.9h0.5V7.3C16.4,7.2,16.3,7,16.1,7z M15.1,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C15.3,8.2,15.2,8.2,15.1,8.2z M18,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C18.2,8.2,18.1,8.2,18,8.2z M18.5,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C18.7,8.2,18.6,8.2,18.5,8.2z M21,7c-0.1,0-0.3,0.1-0.3,0.3v4.9h0.5V7.3C21.2,7.2,21.1,7,21,7z M19,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C19.2,8.2,19.1,8.2,19,8.2z M17.5,7c-0.1,0-0.3,0.1-0.3,0.3v4.9h0.5V7.3C17.7,7.2,17.6,7,17.5,7z M20.4,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C20.6,8.2,20.5,8.2,20.4,8.2z M19.9,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C20.1,8.2,20,8.2,19.9,8.2z M19.4,8.2c-0.1,0-0.2,0.1-0.2,0.2v3.8h0.4V8.4C19.6,8.2,19.5,8.2,19.4,8.2z",AM="M18.0610109375,18.0619875Q15.5505109375,20.5725875,12.0001409375,20.5725875Q8.4497409375,20.5725875,5.9392209375,18.0619875Q3.428711473942,15.5514875,3.4287109375,12.0011175Q3.428710401058,8.4507175,5.9392209375,5.9401975Q8.4497409375,3.429688036442,12.0001409375,3.4296875Q14.4468109375,3.429686963558,16.5155109375,4.7141475Q18.3706109375,5.8659775,19.4402109375,7.7412475L21.5423109375,7.2306875L20.1430109375,12.0011175L16.711310937500002,8.4040475L18.5695109375,7.9527175Q17.6260109375,6.4125875,16.063410937500002,5.4423475Q14.2023109375,4.2868295,12.0001409375,4.2868305Q8.8047809375,4.2868295,6.5453109375,6.5462875Q4.2858529375,8.8057575,4.2858539375,12.0011175Q4.2858529375,15.1964875,6.5453109375,17.4559875Q8.8047809375,19.7153875,12.0001409375,19.7153875Q15.1955109375,19.7153875,17.4550109375,17.4559875L18.0610109375,18.0619875Z",he=Object.freeze({APP_NAME:"fluidd",HEADER_HEIGHT:56,DEFAULTS:{CAMERA_URL_STREAM:"/webcam/?action=stream",CAMERA_URL_SNAPSHOT:"/webcam/?action=snapshot"},NETWORK_REQUEST_TIMEOUT:0,KLIPPY_RETRY_DELAY:1500,SOCKET_RETRY_DELAY:2e3,SOCKET_PING_INTERVAL:1e4,CONSOLE_HISTORY_RETENTION:1e3,CONSOLE_RECEIVE_PREFIX:"",CONSOLE_SEND_PREFIX:"$ ",CONSOLE_COMMAND_HISTORY:20,CHART_HISTORY_RETENTION:1200,JOB_HISTORY_LOAD:50,KLIPPY_DISCONNECTED_REDIRECT:"/configuration",LOCAL_CARDSTATE_STORAGE_KEY:"cardState",LOCAL_CARDLAYOUT_STORAGE_KEY:"cardLayout2",LOCAL_INSTANCES_STORAGE_KEY:"appInstances",KLIPPER_MIN_VERSION:"v0.11.0-257",MOONRAKER_MIN_VERSION:"v0.8.0-309",MOONRAKER_DB:{fluidd:{NAMESPACE:"fluidd",ROOTS:{uiSettings:{name:"uiSettings",dispatch:"config/initUiSettings"},macros:{name:"macros",dispatch:"macros/initMacros"},console:{name:"console",dispatch:"console/initConsole"},charts:{name:"charts",dispatch:"charts/initCharts"},cameras:{name:"cameras",dispatch:"webcams/initLegacyCameras",migrate_only:!0},webcams:{name:"webcams",dispatch:"webcams/initWebcams"},layout:{name:"layout",dispatch:"layout/initLayout"}}},webcams:{NAMESPACE:"webcams",ROOTS:[]}},MOONRAKER_COMPONENTS:{auth:{name:"authorization",dispatch:"auth/init"},power:{name:"power",dispatch:"power/init"},updateManager:{name:"update_manager",dispatch:"version/init"},history:{name:"history",dispatch:"history/init"},timelapse:{name:"timelapse",dispatch:"timelapse/init"},announcements:{name:"announcements",dispatch:"announcements/init"},webcams:{name:"webcam",dispatch:"webcams/init"},jobQueue:{name:"job_queue",dispatch:"jobQueue/init"},spoolman:{name:"spoolman",dispatch:"spoolman/init"},sensors:{name:"sensor",dispatch:"sensors/init"}},CONFIG_SERVICE_MAP:[{filename:"moonraker.conf",service:"moonraker",link:"https://moonraker.readthedocs.io/en/latest/configuration/"},{filename:"webcam.txt",service:"webcamd"},{filename:"crowsnest.conf",service:"crowsnest",link:"https://crowsnest.mainsail.xyz/configuration/sample-config"},{filename:"klipperscreen.conf",service:"KlipperScreen",link:"https://klipperscreen.readthedocs.io/en/latest/"},{filename:"sonar.conf",service:"sonar",link:"https://github.com/mainsail-crew/sonar"},{filename:"mooncord-webcam.json",service:"webcamd",link:"https://github.com/eliteSchwein/mooncord"},{prefix:"mooncord",service:"MoonCord",link:"https://github.com/eliteSchwein/mooncord"},{filename:"telegram.conf",service:"moonraker-telegram-bot",link:"https://github.com/nlef/moonraker-telegram-bot/wiki/Sample-config"},{suffix:".cfg",service:"klipper",link:"{klipperDomain}/Config_Reference.html"}],SUPPORTED_SERVICES:{klipper:{klipper:{domain:"https://www.klipper3d.org"},"danger-klipper":{domain:"https://dangerklipper.io"}}},FILE_DATA_TRANSFER_TYPES:{files:"x-fluidd-files",jobs:"x-fluidd-jobs"},FILTERED_FOLDER_NAMES:[".git"],FILTERED_FILES_PREFIX:[".thumbs","thumbs"],FILTERED_FILES_EXTENSION:[".ignoreme"],KEYBOARD_SHORTCUTS:{home:"h",console:"c",preview:"p",jobs:"j",history:"i",timelapse:"l",tune:"t",diagnostics:"g",configure:"x",system:"q",settings:"s"},DOCS_ROOT:"https://docs.fluidd.xyz",DOCS_REQUIRED_CONFIGURATION:"https://docs.fluidd.xyz/configuration/initial_setup",DOCS_MULTIPLE_INSTANCES:"https://docs.fluidd.xyz/configuration/multiple_printers",DOCS_MOONRAKER_COMPONENTS:"https://docs.fluidd.xyz/configuration/moonraker",DOCS_AUTH_LOST_PASSWORD:"https://docs.fluidd.xyz/authorization#lost-password",DOCS_AUTH:"https://docs.fluidd.xyz/authorization",GITHUB_REPO:"https://github.com/fluidd-core/fluidd"}),ou=Object.freeze({dash:_M,account:AT,addAccount:ET,help:iD,motion:PD,limits:VT,send:QD,open:TD,move:Gk,tabs:sk,menu:Lk,menuAlt:$D,dots:Pk,dotsGrid:Ck,drag:Ek,chart:XT,power:FD,powerCycle:HD,powerOn:cM,powerOff:uM,home:lD,close:pk,refresh:GD,restart:qD,restartAlert:ZD,update:mM,warning:OT,error:sD,thermometer:oM,bell:GT,fireAlert:Nk,snowflakeAlert:tM,circle:ck,blankCircle:ek,markedCircle:WD,checkedCircle:JT,checkboxBlank:tk,checkboxMarked:rk,alertCircle:TT,folderAdd:Zk,folderUp:Yk,folderUpload:Uk,folder:zk,folderLock:Wk,fileUpload:gM,fileAdd:Ik,inProgress:uk,progressUpload:UD,progressQuestion:zD,up:UT,down:FT,left:NT,right:zT,tune:fM,zUp:BT,zDown:IT,expandHorizontal:HT,expandVertical:jT,cog:gk,cogs:vk,save:Sk,estop:KT,fire:Vk,tools:rD,minus:xD,plus:ID,check:QT,console:_k,clock:dk,formatLineSpacing:Xk,layersTripleOutline:hD,chevronUp:ok,chevronDown:nk,chevronRight:ak,chevronLeft:ik,timer:lM,fileCode:Dk,fileRefresh:Fk,files:Hk,file:Tk,fileLock:Rk,fileCancel:kk,pause:DD,cancel:$M,cancelled:YT,play:Z$,resume:Z$,stop:sM,reprint:Y$,printer:Y$,download:Ak,rename:Kk,duplicate:$k,sync:nM,delete:xk,camera:ZT,fan:Ok,pencil:MD,pencilLock:RD,magnify:_D,magnifyPlus:bD,magnifyMinus:yD,printer3d:BD,printer3dNozzle:ND,printer3dNozzleAlert:VD,bedMesh:yM,host:q$,history:oD,filter:jk,commit:rM,cloudCheck:fk,cloudAlert:hk,cubeScan:wk,consoleLine:yk,lock:mD,lockOpen:gD,lockReset:vD,reset:YD,tempError:aM,contentCopy:bk,apps:kT,shieldAccount:eM,retract:K$,codeJson:mk,desktopTower:q$,harddisk:nD,message:wD,list:Qk,fullScreen:Jk,video:Bk,snooze:qT,chip:lk,viewHeadline:bM,absolutePositioning:WT,relativePositioning:X$,openInNew:kD,imageSizeSelectLarge:cD,listStatus:fD,previousLayer:dD,currentLayer:uD,nextLayer:pD,moves:X$,extrusions:jD,retractions:K$,tableColumn:iM,parts:JD,folderOpen:qk,fileImage:Mk,fileImageLock:PM,fileZip:DT,fileZipLock:MT,fileZipAdd:RT,filament:SM,loadFilament:wM,unloadFilament:xM,changeFilament:CM,cleanNozzle:dM,jobQueue:pM,enqueueJob:hM,sensors:eD,screenshot:CD,zRotateClockwise:XD,zRotateCounterclockwise:KD,devices:vM,abacus:LT,box:LM,num1:LD,num2:AD,num3:ED,num4:OD,helpCircleOutline:aD,gold:tD,downArrow:SD,reRfid:AM}),tt=Object.freeze({onServiceRestart:"onServiceRestart",onServiceStop:"onServiceStop",onServiceStart:"onServiceStart",onDevicePowerToggle:"onDevicePowerToggle",onHomeAll:"onHomeAll",onHomeXY:"onHomeXY",onHomeX:"onHomeX",onHomeY:"onHomeY",onHomeZ:"onHomeZ",onQGL:"onQGL",onZTilt:"onZTilt",onBedScrewsAdjust:"onBedScrewAdjust",onBedScrewsCalculate:"onBedScrewsCalculate",onBedTiltCalibrate:"onBedTiltCalibrate",onDeltaCalibrate:"onDeltaCalibrate",onPrintPause:"onPrintPause",onPrintCancel:"onPrintCancel",onPrintResume:"onPrintResume",onMacro:"onMacro",onSetSpeed:"onSetSpeed",onSetFlow:"onSetFlow",onSetPressureAdvance:"onSetPressureAdvance",onSetFanSpeed:"onSetFanSpeed",onSetOutputPin:"onSetOutputPin",onZAdjust:"onZAdjust",onZApply:"onZApply",onSaveConfig:"onSaveConfig",onRetract:"onRetract",onExtrude:"onExtrude",onMeshCalibrate:"onMeshCalibrate",onKlipperRestart:"klipperRestart",onKlipperFirmwareRestart:"klipperFirmwareRestart",onSetVelocity:"onSetVelocity",onSetAcceleration:"onSetAcceleration",onSetAccelToDecel:"onSetAccelToDecel",onSetMinimumCruiseRatio:"onSetMinimumCruiseRatio",onSetSquareCornerVelocity:"onSetSquareCornerVelocity",onSetRetractLength:"onSetRetractLength",onSetRetractSpeed:"onSetRetractSpeed",onSetUnretractSpeed:"onSetUnretractSpeed",onSetUnretractExtraLength:"onSetUnretractExtraLength",onExtruderChange:"onExtruderChange",onLoadLanguage:"onLoadLanguage",onFileSystem:"onFileSystem",onJobQueue:"onJobQueue",onTimelapseSaveFrame:"onTimelapseSaveFrame",onManualProbe:"onManualProbe",onProbeCalibrate:"onProbeCalibrate",onProbeAccuracy:"onProbeAccuracy",onZEndstopCalibrate:"onZEndstopCalibrate",onQueryEndstops:"onQueryEndstops",onQueryProbe:"onQueryProbe",onVersionRefresh:"onVersionRefresh",onSyncExtruder:"onSyncExtruder",onStepperEnable:"onStepperEnable",onMachinePeripheralsUsb:"onMachinePeripheralsUsb",onMachinePeripheralsSerial:"onMachinePeripheralsSerial",onMachinePeripheralsVideo:"onMachinePeripheralsVideo",onMachinePeripheralsCanbus:"onMachinePeripheralsCanbus"}),NC=Object.freeze([{name:"English",code:"en"},{name:"Afrikaans",code:"af"},{name:"Čeština",code:"cs"},{name:"简体中文",code:"zh-CN"},{name:"繁體中文",code:"zh-TW"},{name:"Deutsch",code:"de"},{name:"Español",code:"es"},{name:"Français",code:"fr"},{name:"Italiano",code:"it"},{name:"Magyar",code:"hu"},{name:"Nederlands",code:"nl"},{name:"Polski",code:"pl"},{name:"Português",code:"pt"},{name:"Русский",code:"ru"},{name:"Slovenščina",code:"sl"},{name:"Türkçe",code:"tr"},{name:"Українська",code:"uk"},{name:"한국어",code:"ko"},{name:"العربية",code:"ar"},{name:"日本語",code:"ja"}]),zC=Object.freeze([".bmp",".gif",".jfif",".jpeg",".jpg",".png",".svg",".tif",".tiff",".webp"]),EM=Object.freeze([".markdown",".md",".mdown"]),UC=Object.freeze([".mp4",".mpeg",".mpg"]),WC=Object.freeze({iso:{locales:"lt",options:{day:"2-digit",month:"2-digit",year:"numeric"},suffix:" (ISO 8601)"},digits2:{options:{day:"2-digit",month:"2-digit",year:"numeric"}},short:{options:{day:"2-digit",month:"short",year:"numeric"}}}),GC=Object.freeze({iso:{locales:"lt",options:{hour:"2-digit",minute:"2-digit",hour12:!1},suffix:" (ISO 8601)"},hours12:{options:{hour:"2-digit",minute:"2-digit",hour12:!0}},hours24:{options:{hour:"2-digit",minute:"2-digit",hour12:!1}}});/*!
* vue-i18n v8.28.2
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/var qC=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],OM=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function Uo(r,e){typeof console<"u"&&console.warn("[vue-i18n] "+r)}function TM(r,e){typeof console<"u"&&console.error("[vue-i18n] "+r)}var _n=Array.isArray;function ws(r){return r!==null&&typeof r=="object"}function kM(r){return typeof r=="boolean"}function Qt(r){return typeof r=="string"}var DM=Object.prototype.toString,MM="[object Object]";function mn(r){return DM.call(r)===MM}function Nr(r){return r==null}function fv(r){return typeof r=="function"}function lm(){for(var r=[],e=arguments.length;e--;)r[e]=arguments[e];var t=null,s=null;return r.length===1?ws(r[0])||_n(r[0])?s=r[0]:typeof r[0]=="string"&&(t=r[0]):r.length===2&&(typeof r[0]=="string"&&(t=r[0]),(ws(r[1])||_n(r[1]))&&(s=r[1])),{locale:t,params:s}}function wl(r){return JSON.parse(JSON.stringify(r))}function RM(r,e){if(r.delete(e))return r}function IM(r){var e=[];return r.forEach(function(t){return e.push(t)}),e}function nd(r,e){return!!~r.indexOf(e)}var FM=Object.prototype.hasOwnProperty;function HM(r,e){return FM.call(r,e)}function ya(r){for(var e=arguments,t=Object(r),s=1;s<arguments.length;s++){var n=e[s];if(n!=null){var i=void 0;for(i in n)HM(n,i)&&(ws(n[i])?t[i]=ya(t[i],n[i]):t[i]=n[i])}}return t}function bh(r,e){if(r===e)return!0;var t=ws(r),s=ws(e);if(t&&s)try{var n=_n(r),i=_n(e);if(n&&i)return r.length===e.length&&r.every(function(l,c){return bh(l,e[c])});if(!n&&!i){var a=Object.keys(r),o=Object.keys(e);return a.length===o.length&&a.every(function(l){return bh(r[l],e[l])})}else return!1}catch{return!1}else return!t&&!s?String(r)===String(e):!1}function BM(r){return r.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}function jM(r){return r!=null&&Object.keys(r).forEach(function(e){typeof r[e]=="string"&&(r[e]=BM(r[e]))}),r}function VM(r){r.prototype.hasOwnProperty("$i18n")||Object.defineProperty(r.prototype,"$i18n",{get:function(){return this._i18n}}),r.prototype.$t=function(e){for(var t=[],s=arguments.length-1;s-- >0;)t[s]=arguments[s+1];var n=this.$i18n;return n._t.apply(n,[e,n.locale,n._getMessages(),this].concat(t))},r.prototype.$tc=function(e,t){for(var s=[],n=arguments.length-2;n-- >0;)s[n]=arguments[n+2];var i=this.$i18n;return i._tc.apply(i,[e,i.locale,i._getMessages(),this,t].concat(s))},r.prototype.$te=function(e,t){var s=this.$i18n;return s._te(e,s.locale,s._getMessages(),t)},r.prototype.$d=function(e){for(var t,s=[],n=arguments.length-1;n-- >0;)s[n]=arguments[n+1];return(t=this.$i18n).d.apply(t,[e].concat(s))},r.prototype.$n=function(e){for(var t,s=[],n=arguments.length-1;n-- >0;)s[n]=arguments[n+1];return(t=this.$i18n).n.apply(t,[e].concat(s))}}function NM(r){r===void 0&&(r=!1);function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return r?{mounted:e}:{beforeCreate:function(){var s=this.$options;if(s.i18n=s.i18n||(s.__i18nBridge||s.__i18n?{}:null),s.i18n){if(s.i18n instanceof ve){if(s.__i18nBridge||s.__i18n)try{var n=s.i18n&&s.i18n.messages?s.i18n.messages:{},i=s.__i18nBridge||s.__i18n;i.forEach(function(d){n=ya(n,JSON.parse(d))}),Object.keys(n).forEach(function(d){s.i18n.mergeLocaleMessage(d,n[d])})}catch{}this._i18n=s.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(mn(s.i18n)){var a=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ve?this.$root.$i18n:null;if(a&&(s.i18n.root=this.$root,s.i18n.formatter=a.formatter,s.i18n.fallbackLocale=a.fallbackLocale,s.i18n.formatFallbackMessages=a.formatFallbackMessages,s.i18n.silentTranslationWarn=a.silentTranslationWarn,s.i18n.silentFallbackWarn=a.silentFallbackWarn,s.i18n.pluralizationRules=a.pluralizationRules,s.i18n.preserveDirectiveContent=a.preserveDirectiveContent),s.__i18nBridge||s.__i18n)try{var o=s.i18n&&s.i18n.messages?s.i18n.messages:{},l=s.__i18nBridge||s.__i18n;l.forEach(function(d){o=ya(o,JSON.parse(d))}),s.i18n.messages=o}catch{}var c=s.i18n,u=c.sharedMessages;u&&mn(u)&&(s.i18n.messages=ya(s.i18n.messages,u)),this._i18n=new ve(s.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(s.i18n.sync===void 0||s.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),a&&a.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ve?this._i18n=this.$root.$i18n:s.parent&&s.parent.$i18n&&s.parent.$i18n instanceof ve&&(this._i18n=s.parent.$i18n)},beforeMount:function(){var s=this.$options;s.i18n=s.i18n||(s.__i18nBridge||s.__i18n?{}:null),s.i18n?s.i18n instanceof ve?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):mn(s.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof ve?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):s.parent&&s.parent.$i18n&&s.parent.$i18n instanceof ve&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var s=this;this.$nextTick(function(){s._subscribing&&(s._i18n.unsubscribeDataChanging(s),delete s._subscribing),s._i18nWatcher&&(s._i18nWatcher(),s._i18n.destroyVM(),delete s._i18nWatcher),s._localeWatcher&&(s._localeWatcher(),delete s._localeWatcher)})}}}}var Q$={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(e,t){var s=t.data,n=t.parent,i=t.props,a=t.slots,o=n.$i18n;if(o){var l=i.path,c=i.locale,u=i.places,d=a(),p=o.i(l,c,zM(d)||u?UM(d.default,u):d),h=i.tag&&i.tag!==!0||i.tag===!1?i.tag:"span";return h?e(h,s,p):p}}};function zM(r){var e;for(e in r)if(e!=="default")return!1;return!!e}function UM(r,e){var t=e?WM(e):{};if(!r)return t;r=r.filter(function(n){return n.tag||n.text.trim()!==""});var s=r.every(qM);return r.reduce(s?GM:ZC,t)}function WM(r){return Array.isArray(r)?r.reduce(ZC,{}):Object.assign({},r)}function GM(r,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(r[e.data.attrs.place]=e),r}function ZC(r,e,t){return r[t]=e,r}function qM(r){return!!(r.data&&r.data.attrs&&r.data.attrs.place)}var J$={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(e,t){var s=t.props,n=t.parent,i=t.data,a=n.$i18n;if(!a)return null;var o=null,l=null;Qt(s.format)?o=s.format:ws(s.format)&&(s.format.key&&(o=s.format.key),l=Object.keys(s.format).reduce(function(h,m){var g;return nd(qC,m)?Object.assign({},h,(g={},g[m]=s.format[m],g)):h},null));var c=s.locale||a.locale,u=a._ntp(s.value,c,o,l),d=u.map(function(h,m){var g,v=i.scopedSlots&&i.scopedSlots[h.type];return v?v((g={},g[h.type]=h.value,g.index=m,g.parts=u,g)):h.value}),p=s.tag&&s.tag!==!0||s.tag===!1?s.tag:"span";return p?e(p,{attrs:i.attrs,class:i.class,staticClass:i.staticClass},d):d}};function ZM(r,e,t){YC(r,t)&&KC(r,e,t)}function YM(r,e,t,s){if(YC(r,t)){var n=t.context.$i18n;XM(r,t)&&bh(e.value,e.oldValue)&&bh(r._localeMessage,n.getLocaleMessage(n.locale))||KC(r,e,t)}}function KM(r,e,t,s){var n=t.context;if(!n){Uo("Vue instance does not exists in VNode context");return}var i=t.context.$i18n||{};!e.modifiers.preserve&&!i.preserveDirectiveContent&&(r.textContent=""),r._vt=void 0,delete r._vt,r._locale=void 0,delete r._locale,r._localeMessage=void 0,delete r._localeMessage}function YC(r,e){var t=e.context;return t?t.$i18n?!0:(Uo("VueI18n instance does not exists in Vue instance"),!1):(Uo("Vue instance does not exists in VNode context"),!1)}function XM(r,e){var t=e.context;return r._locale===t.$i18n.locale}function KC(r,e,t){var s,n,i=e.value,a=QM(i),o=a.path,l=a.locale,c=a.args,u=a.choice;if(!o&&!l&&!c){Uo("value type not supported");return}if(!o){Uo("`path` is required in v-t directive");return}var d=t.context;u!=null?r._vt=r.textContent=(s=d.$i18n).tc.apply(s,[o,u].concat(eS(l,c))):r._vt=r.textContent=(n=d.$i18n).t.apply(n,[o].concat(eS(l,c))),r._locale=d.$i18n.locale,r._localeMessage=d.$i18n.getLocaleMessage(d.$i18n.locale)}function QM(r){var e,t,s,n;return Qt(r)?e=r:mn(r)&&(e=r.path,t=r.locale,s=r.args,n=r.choice),{path:e,locale:t,args:s,choice:n}}function eS(r,e){var t=[];return r&&t.push(r),e&&(Array.isArray(e)||mn(e))&&t.push(e),t}var Sr;function Ay(r,e){e===void 0&&(e={bridge:!1}),Ay.installed=!0,Sr=r,Sr.version&&Number(Sr.version.split(".")[0]),VM(Sr),Sr.mixin(NM(e.bridge)),Sr.directive("t",{bind:ZM,update:YM,unbind:KM}),Sr.component(Q$.name,Q$),Sr.component(J$.name,J$);var t=Sr.config.optionMergeStrategies;t.i18n=function(s,n){return n===void 0?s:n}}var XC=function(){this._caches=Object.create(null)};XC.prototype.interpolate=function(e,t){if(!t)return[e];var s=this._caches[e];return s||(s=tR(e),this._caches[e]=s),rR(s,t)};var JM=/^(?:\d)+/,eR=/^(?:\w)+/;function tR(r){for(var e=[],t=0,s="";t<r.length;){var n=r[t++];if(n==="{"){s&&e.push({type:"text",value:s}),s="";var i="";for(n=r[t++];n!==void 0&&n!=="}";)i+=n,n=r[t++];var a=n==="}",o=JM.test(i)?"list":a&&eR.test(i)?"named":"unknown";e.push({value:i,type:o})}else n==="%"?r[t]!=="{"&&(s+=n):s+=n}return s&&e.push({type:"text",value:s}),e}function rR(r,e){var t=[],s=0,n=Array.isArray(e)?"list":ws(e)?"named":"unknown";if(n==="unknown")return t;for(;s<r.length;){var i=r[s];switch(i.type){case"text":t.push(i.value);break;case"list":t.push(e[parseInt(i.value,10)]);break;case"named":n==="named"&&t.push(e[i.value]);break}s++}return t}var Xt=0,Do=1,QC=2,JC=3,mv=0,$h=1,Sh=2,gi=3,Mn=4,wh=5,xh=6,cm=7,lu=8,Hi=[];Hi[mv]={ws:[mv],ident:[gi,Xt],"[":[Mn],eof:[cm]};Hi[$h]={ws:[$h],".":[Sh],"[":[Mn],eof:[cm]};Hi[Sh]={ws:[Sh],ident:[gi,Xt],0:[gi,Xt],number:[gi,Xt]};Hi[gi]={ident:[gi,Xt],0:[gi,Xt],number:[gi,Xt],ws:[$h,Do],".":[Sh,Do],"[":[Mn,Do],eof:[cm,Do]};Hi[Mn]={"'":[wh,Xt],'"':[xh,Xt],"[":[Mn,QC],"]":[$h,JC],eof:lu,else:[Mn,Xt]};Hi[wh]={"'":[Mn,Xt],eof:lu,else:[wh,Xt]};Hi[xh]={'"':[Mn,Xt],eof:lu,else:[xh,Xt]};var sR=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function nR(r){return sR.test(r)}function iR(r){var e=r.charCodeAt(0),t=r.charCodeAt(r.length-1);return e===t&&(e===34||e===39)?r.slice(1,-1):r}function aR(r){if(r==null)return"eof";var e=r.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:return r;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function oR(r){var e=r.trim();return r.charAt(0)==="0"&&isNaN(r)?!1:nR(e)?iR(e):"*"+e}function lR(r){var e=[],t=-1,s=mv,n=0,i,a,o,l,c,u,d,p=[];p[Do]=function(){a!==void 0&&(e.push(a),a=void 0)},p[Xt]=function(){a===void 0?a=o:a+=o},p[QC]=function(){p[Xt](),n++},p[JC]=function(){if(n>0)n--,s=Mn,p[Xt]();else{if(n=0,a===void 0||(a=oR(a),a===!1))return!1;p[Do]()}};function h(){var m=r[t+1];if(s===wh&&m==="'"||s===xh&&m==='"')return t++,o="\\"+m,p[Xt](),!0}for(;s!==null;)if(t++,i=r[t],!(i==="\\"&&h())){if(l=aR(i),d=Hi[s],c=d[l]||d.else||lu,c===lu||(s=c[0],u=p[c[1]],u&&(o=c[2],o=o===void 0?i:o,u()===!1)))return;if(s===cm)return e}}var Ey=function(){this._cache=Object.create(null)};Ey.prototype.parsePath=function(e){var t=this._cache[e];return t||(t=lR(e),t&&(this._cache[e]=t)),t||[]};Ey.prototype.getPathValue=function(e,t){if(!ws(e))return null;var s=this.parsePath(t);if(s.length===0)return null;for(var n=s.length,i=e,a=0;a<n;){var o=i[s[a]];if(o==null)return null;i=o,a++}return i};var cR=/<\/?[\w\s="/.':;#-\/]+>/,uR=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,dR=/^@(?:\.([a-zA-Z]+))?:/,pR=/[()]/g,tS={upper:function(r){return r.toLocaleUpperCase()},lower:function(r){return r.toLocaleLowerCase()},capitalize:function(r){return""+r.charAt(0).toLocaleUpperCase()+r.substr(1)}},gv=new XC,ve=function(e){var t=this;e===void 0&&(e={}),!Sr&&typeof window<"u"&&window.Vue&&Ay(window.Vue);var s=e.locale||"en-US",n=e.fallbackLocale===!1?!1:e.fallbackLocale||"en-US",i=e.messages||{},a=e.dateTimeFormats||e.datetimeFormats||{},o=e.numberFormats||{};this._vm=null,this._formatter=e.formatter||gv,this._modifiers=e.modifiers||{},this._missing=e.missing||null,this._root=e.root||null,this._sync=e.sync===void 0?!0:!!e.sync,this._fallbackRoot=e.fallbackRoot===void 0?!0:!!e.fallbackRoot,this._fallbackRootWithEmptyString=e.fallbackRootWithEmptyString===void 0?!0:!!e.fallbackRootWithEmptyString,this._formatFallbackMessages=e.formatFallbackMessages===void 0?!1:!!e.formatFallbackMessages,this._silentTranslationWarn=e.silentTranslationWarn===void 0?!1:e.silentTranslationWarn,this._silentFallbackWarn=e.silentFallbackWarn===void 0?!1:!!e.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new Ey,this._dataListeners=new Set,this._componentInstanceCreatedListener=e.componentInstanceCreatedListener||null,this._preserveDirectiveContent=e.preserveDirectiveContent===void 0?!1:!!e.preserveDirectiveContent,this.pluralizationRules=e.pluralizationRules||{},this._warnHtmlInMessage=e.warnHtmlInMessage||"off",this._postTranslation=e.postTranslation||null,this._escapeParameterHtml=e.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in e&&(this.__VUE_I18N_BRIDGE__=e.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(l,c){var u=Object.getPrototypeOf(t);if(u&&u.getChoiceIndex){var d=u.getChoiceIndex;return d.call(t,l,c)}var p=function(h,m){return h=Math.abs(h),m===2?h?h>1?1:0:1:h?Math.min(h,2):0};return t.locale in t.pluralizationRules?t.pluralizationRules[t.locale].apply(t,[l,c]):p(l,c)},this._exist=function(l,c){return!l||!c?!1:!!(!Nr(t._path.getPathValue(l,c))||l[c])},(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&Object.keys(i).forEach(function(l){t._checkLocaleMessage(l,t._warnHtmlInMessage,i[l])}),this._initVM({locale:s,fallbackLocale:n,messages:i,dateTimeFormats:a,numberFormats:o})},ht={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};ve.prototype._checkLocaleMessage=function(e,t,s){var n=[],i=function(a,o,l,c){if(mn(l))Object.keys(l).forEach(function(p){var h=l[p];mn(h)?(c.push(p),c.push("."),i(a,o,h,c),c.pop(),c.pop()):(c.push(p),i(a,o,h,c),c.pop())});else if(_n(l))l.forEach(function(p,h){mn(p)?(c.push("["+h+"]"),c.push("."),i(a,o,p,c),c.pop(),c.pop()):(c.push("["+h+"]"),i(a,o,p,c),c.pop())});else if(Qt(l)){var u=cR.test(l);if(u){var d="Detected HTML in message '"+l+"' of keypath '"+c.join("")+"' at '"+o+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";a==="warn"?Uo(d):a==="error"&&TM(d)}}};i(t,e,s,n)};ve.prototype._initVM=function(e){var t=Sr.config.silent;Sr.config.silent=!0,this._vm=new Sr({data:e,__VUE18N__INSTANCE__:!0}),Sr.config.silent=t};ve.prototype.destroyVM=function(){this._vm.$destroy()};ve.prototype.subscribeDataChanging=function(e){this._dataListeners.add(e)};ve.prototype.unsubscribeDataChanging=function(e){RM(this._dataListeners,e)};ve.prototype.watchI18nData=function(){var e=this;return this._vm.$watch("$data",function(){for(var t=IM(e._dataListeners),s=t.length;s--;)Sr.nextTick(function(){t[s]&&t[s].$forceUpdate()})},{deep:!0})};ve.prototype.watchLocale=function(e){if(e){if(!this.__VUE_I18N_BRIDGE__)return null;var s=this,n=this._vm;return this.vm.$watch("locale",function(i){n.$set(n,"locale",i),s.__VUE_I18N_BRIDGE__&&e&&(e.locale.value=i),n.$forceUpdate()},{immediate:!0})}else{if(!this._sync||!this._root)return null;var t=this._vm;return this._root.$i18n.vm.$watch("locale",function(i){t.$set(t,"locale",i),t.$forceUpdate()},{immediate:!0})}};ve.prototype.onComponentInstanceCreated=function(e){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(e,this)};ht.vm.get=function(){return this._vm};ht.messages.get=function(){return wl(this._getMessages())};ht.dateTimeFormats.get=function(){return wl(this._getDateTimeFormats())};ht.numberFormats.get=function(){return wl(this._getNumberFormats())};ht.availableLocales.get=function(){return Object.keys(this.messages).sort()};ht.locale.get=function(){return this._vm.locale};ht.locale.set=function(r){this._vm.$set(this._vm,"locale",r)};ht.fallbackLocale.get=function(){return this._vm.fallbackLocale};ht.fallbackLocale.set=function(r){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",r)};ht.formatFallbackMessages.get=function(){return this._formatFallbackMessages};ht.formatFallbackMessages.set=function(r){this._formatFallbackMessages=r};ht.missing.get=function(){return this._missing};ht.missing.set=function(r){this._missing=r};ht.formatter.get=function(){return this._formatter};ht.formatter.set=function(r){this._formatter=r};ht.silentTranslationWarn.get=function(){return this._silentTranslationWarn};ht.silentTranslationWarn.set=function(r){this._silentTranslationWarn=r};ht.silentFallbackWarn.get=function(){return this._silentFallbackWarn};ht.silentFallbackWarn.set=function(r){this._silentFallbackWarn=r};ht.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent};ht.preserveDirectiveContent.set=function(r){this._preserveDirectiveContent=r};ht.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage};ht.warnHtmlInMessage.set=function(r){var e=this,t=this._warnHtmlInMessage;if(this._warnHtmlInMessage=r,t!==r&&(r==="warn"||r==="error")){var s=this._getMessages();Object.keys(s).forEach(function(n){e._checkLocaleMessage(n,e._warnHtmlInMessage,s[n])})}};ht.postTranslation.get=function(){return this._postTranslation};ht.postTranslation.set=function(r){this._postTranslation=r};ht.sync.get=function(){return this._sync};ht.sync.set=function(r){this._sync=r};ve.prototype._getMessages=function(){return this._vm.messages};ve.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats};ve.prototype._getNumberFormats=function(){return this._vm.numberFormats};ve.prototype._warnDefault=function(e,t,s,n,i,a){if(!Nr(s))return s;if(this._missing){var o=this._missing.apply(null,[e,t,n,i]);if(Qt(o))return o}if(this._formatFallbackMessages){var l=lm.apply(void 0,i);return this._render(t,a,l.params,t)}else return t};ve.prototype._isFallbackRoot=function(e){return(this._fallbackRootWithEmptyString?!e:Nr(e))&&!Nr(this._root)&&this._fallbackRoot};ve.prototype._isSilentFallbackWarn=function(e){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(e):this._silentFallbackWarn};ve.prototype._isSilentFallback=function(e,t){return this._isSilentFallbackWarn(t)&&(this._isFallbackRoot()||e!==this.fallbackLocale)};ve.prototype._isSilentTranslationWarn=function(e){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(e):this._silentTranslationWarn};ve.prototype._interpolate=function(e,t,s,n,i,a,o){if(!t)return null;var l=this._path.getPathValue(t,s);if(_n(l)||mn(l))return l;var c;if(Nr(l))if(mn(t)){if(c=t[s],!(Qt(c)||fv(c)))return null}else return null;else if(Qt(l)||fv(l))c=l;else return null;return Qt(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(e,t,c,n,"raw",a,o)),this._render(c,i,a,s)};ve.prototype._link=function(e,t,s,n,i,a,o){var l=s,c=l.match(uR);for(var u in c)if(c.hasOwnProperty(u)){var d=c[u],p=d.match(dR),h=p[0],m=p[1],g=d.replace(h,"").replace(pR,"");if(nd(o,g))return l;o.push(g);var v=this._interpolate(e,t,g,n,i==="raw"?"string":i,i==="raw"?void 0:a,o);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var y=this._root.$i18n;v=y._translate(y._getMessages(),y.locale,y.fallbackLocale,g,n,i,a)}v=this._warnDefault(e,g,v,n,_n(a)?a:[a],i),this._modifiers.hasOwnProperty(m)?v=this._modifiers[m](v):tS.hasOwnProperty(m)&&(v=tS[m](v)),o.pop(),l=v?l.replace(d,v):l}return l};ve.prototype._createMessageContext=function(e,t,s,n){var i=this,a=_n(e)?e:[],o=ws(e)?e:{},l=function(p){return a[p]},c=function(p){return o[p]},u=this._getMessages(),d=this.locale;return{list:l,named:c,values:e,formatter:t,path:s,messages:u,locale:d,linked:function(p){return i._interpolate(d,u[d]||{},p,null,n,void 0,[p])}}};ve.prototype._render=function(e,t,s,n){if(fv(e))return e(this._createMessageContext(s,this._formatter||gv,n,t));var i=this._formatter.interpolate(e,s,n);return i||(i=gv.interpolate(e,s,n)),t==="string"&&!Qt(i)?i.join(""):i};ve.prototype._appendItemToChain=function(e,t,s){var n=!1;return nd(e,t)||(n=!0,t&&(n=t[t.length-1]!=="!",t=t.replace(/!/g,""),e.push(t),s&&s[t]&&(n=s[t]))),n};ve.prototype._appendLocaleToChain=function(e,t,s){var n,i=t.split("-");do{var a=i.join("-");n=this._appendItemToChain(e,a,s),i.splice(-1,1)}while(i.length&&n===!0);return n};ve.prototype._appendBlockToChain=function(e,t,s){for(var n=!0,i=0;i<t.length&&kM(n);i++){var a=t[i];Qt(a)&&(n=this._appendLocaleToChain(e,a,s))}return n};ve.prototype._getLocaleChain=function(e,t){if(e==="")return[];this._localeChainCache||(this._localeChainCache={});var s=this._localeChainCache[e];if(!s){t||(t=this.fallbackLocale),s=[];for(var n=[e];_n(n);)n=this._appendBlockToChain(s,n,t);var i;_n(t)?i=t:ws(t)?t.default?i=t.default:i=null:i=t,Qt(i)?n=[i]:n=i,n&&this._appendBlockToChain(s,n,null),this._localeChainCache[e]=s}return s};ve.prototype._translate=function(e,t,s,n,i,a,o){for(var l=this._getLocaleChain(t,s),c,u=0;u<l.length;u++){var d=l[u];if(c=this._interpolate(d,e[d],n,i,a,o,[n]),!Nr(c))return c}return null};ve.prototype._t=function(e,t,s,n){for(var i,a=[],o=arguments.length-4;o-- >0;)a[o]=arguments[o+4];if(!e)return"";var l=lm.apply(void 0,a);this._escapeParameterHtml&&(l.params=jM(l.params));var c=l.locale||t,u=this._translate(s,c,this.fallbackLocale,e,n,"string",l.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(i=this._root).$t.apply(i,[e].concat(a))}else return u=this._warnDefault(c,e,u,n,a,"string"),this._postTranslation&&u!==null&&u!==void 0&&(u=this._postTranslation(u,e)),u};ve.prototype.t=function(e){for(var t,s=[],n=arguments.length-1;n-- >0;)s[n]=arguments[n+1];return(t=this)._t.apply(t,[e,this.locale,this._getMessages(),null].concat(s))};ve.prototype._i=function(e,t,s,n,i){var a=this._translate(s,t,this.fallbackLocale,e,n,"raw",i);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(e,t,i)}else return this._warnDefault(t,e,a,n,[i],"raw")};ve.prototype.i=function(e,t,s){return e?(Qt(t)||(t=this.locale),this._i(e,t,this._getMessages(),null,s)):""};ve.prototype._tc=function(e,t,s,n,i){for(var a,o=[],l=arguments.length-5;l-- >0;)o[l]=arguments[l+5];if(!e)return"";i===void 0&&(i=1);var c={count:i,n:i},u=lm.apply(void 0,o);return u.params=Object.assign(c,u.params),o=u.locale===null?[u.params]:[u.locale,u.params],this.fetchChoice((a=this)._t.apply(a,[e,t,s,n].concat(o)),i)};ve.prototype.fetchChoice=function(e,t){if(!e||!Qt(e))return null;var s=e.split("|");return t=this.getChoiceIndex(t,s.length),s[t]?s[t].trim():e};ve.prototype.tc=function(e,t){for(var s,n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];return(s=this)._tc.apply(s,[e,this.locale,this._getMessages(),null,t].concat(n))};ve.prototype._te=function(e,t,s){for(var n=[],i=arguments.length-3;i-- >0;)n[i]=arguments[i+3];var a=lm.apply(void 0,n).locale||t;return this._exist(s[a],e)};ve.prototype.te=function(e,t){return this._te(e,this.locale,this._getMessages(),t)};ve.prototype.getLocaleMessage=function(e){return wl(this._vm.messages[e]||{})};ve.prototype.setLocaleMessage=function(e,t){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,t)};ve.prototype.mergeLocaleMessage=function(e,t){(this._warnHtmlInMessage==="warn"||this._warnHtmlInMessage==="error")&&this._checkLocaleMessage(e,this._warnHtmlInMessage,t),this._vm.$set(this._vm.messages,e,ya(typeof this._vm.messages[e]<"u"&&Object.keys(this._vm.messages[e]).length?Object.assign({},this._vm.messages[e]):{},t))};ve.prototype.getDateTimeFormat=function(e){return wl(this._vm.dateTimeFormats[e]||{})};ve.prototype.setDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,t),this._clearDateTimeFormat(e,t)};ve.prototype.mergeDateTimeFormat=function(e,t){this._vm.$set(this._vm.dateTimeFormats,e,ya(this._vm.dateTimeFormats[e]||{},t)),this._clearDateTimeFormat(e,t)};ve.prototype._clearDateTimeFormat=function(e,t){for(var s in t){var n=e+"__"+s;this._dateTimeFormatters.hasOwnProperty(n)&&delete this._dateTimeFormatters[n]}};ve.prototype._localizeDateTime=function(e,t,s,n,i,a){for(var o=t,l=n[o],c=this._getLocaleChain(t,s),u=0;u<c.length;u++){var d=o,p=c[u];if(l=n[p],o=p,!(Nr(l)||Nr(l[i])))break}if(Nr(l)||Nr(l[i]))return null;var h=l[i],m;if(a)m=new Intl.DateTimeFormat(o,Object.assign({},h,a));else{var g=o+"__"+i;m=this._dateTimeFormatters[g],m||(m=this._dateTimeFormatters[g]=new Intl.DateTimeFormat(o,h))}return m.format(e)};ve.prototype._d=function(e,t,s,n){if(!s){var i=n?new Intl.DateTimeFormat(t,n):new Intl.DateTimeFormat(t);return i.format(e)}var a=this._localizeDateTime(e,t,this.fallbackLocale,this._getDateTimeFormats(),s,n);if(this._isFallbackRoot(a)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(e,s,t)}else return a||""};ve.prototype.d=function(e){for(var t=[],s=arguments.length-1;s-- >0;)t[s]=arguments[s+1];var n=this.locale,i=null,a=null;return t.length===1?(Qt(t[0])?i=t[0]:ws(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key)),a=Object.keys(t[0]).reduce(function(o,l){var c;return nd(OM,l)?Object.assign({},o,(c={},c[l]=t[0][l],c)):o},null)):t.length===2&&(Qt(t[0])&&(i=t[0]),Qt(t[1])&&(n=t[1])),this._d(e,n,i,a)};ve.prototype.getNumberFormat=function(e){return wl(this._vm.numberFormats[e]||{})};ve.prototype.setNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,t),this._clearNumberFormat(e,t)};ve.prototype.mergeNumberFormat=function(e,t){this._vm.$set(this._vm.numberFormats,e,ya(this._vm.numberFormats[e]||{},t)),this._clearNumberFormat(e,t)};ve.prototype._clearNumberFormat=function(e,t){for(var s in t){var n=e+"__"+s;this._numberFormatters.hasOwnProperty(n)&&delete this._numberFormatters[n]}};ve.prototype._getNumberFormatter=function(e,t,s,n,i,a){for(var o=t,l=n[o],c=this._getLocaleChain(t,s),u=0;u<c.length;u++){var d=o,p=c[u];if(l=n[p],o=p,!(Nr(l)||Nr(l[i])))break}if(Nr(l)||Nr(l[i]))return null;var h=l[i],m;if(a)m=new Intl.NumberFormat(o,Object.assign({},h,a));else{var g=o+"__"+i;m=this._numberFormatters[g],m||(m=this._numberFormatters[g]=new Intl.NumberFormat(o,h))}return m};ve.prototype._n=function(e,t,s,n){if(!ve.availabilities.numberFormat)return"";if(!s){var i=n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t);return i.format(e)}var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),s,n),o=a&&a.format(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(e,Object.assign({},{key:s,locale:t},n))}else return o||""};ve.prototype.n=function(e){for(var t=[],s=arguments.length-1;s-- >0;)t[s]=arguments[s+1];var n=this.locale,i=null,a=null;return t.length===1?Qt(t[0])?i=t[0]:ws(t[0])&&(t[0].locale&&(n=t[0].locale),t[0].key&&(i=t[0].key),a=Object.keys(t[0]).reduce(function(o,l){var c;return nd(qC,l)?Object.assign({},o,(c={},c[l]=t[0][l],c)):o},null)):t.length===2&&(Qt(t[0])&&(i=t[0]),Qt(t[1])&&(n=t[1])),this._n(e,n,i,a)};ve.prototype._ntp=function(e,t,s,n){if(!ve.availabilities.numberFormat)return[];if(!s){var i=n?new Intl.NumberFormat(t,n):new Intl.NumberFormat(t);return i.formatToParts(e)}var a=this._getNumberFormatter(e,t,this.fallbackLocale,this._getNumberFormats(),s,n),o=a&&a.formatToParts(e);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(e,t,s,n)}else return o||[]};Object.defineProperties(ve.prototype,ht);var q1;Object.defineProperty(ve,"availabilities",{get:function(){if(!q1){var e=typeof Intl<"u";q1={dateTimeFormat:e&&typeof Intl.DateTimeFormat<"u",numberFormat:e&&typeof Intl.NumberFormat<"u"}}return q1}});ve.install=Ay;ve.version="8.28.2";const hR=(r={})=>{const t={...{countryCodeOnly:!1},...r},s=navigator.languages!==void 0?navigator.languages[0]:navigator.language;return s?s=="zh-CN"||s=="zh-TW"?s:t.countryCodeOnly?s.trim().split(/-|_/)[0]:s.trim():void 0};var e3={app:{bedmesh:{label:{active:"active",base:"base",box_scale:"Box scale",flat_surface:"Show flat plane",mesh_matrix:"Mesh matrix",probed_matrix:"Probed matrix",profile_name:"Profile Name",remove_profile:"Remove %{name} profile",scale:"Color scale",wireframe:"Wireframe"},msg:{hint:"If saving as something other than %{name}, you can choose to also remove the %{name} profile",not_found:"No existing bed meshes found.",not_loaded:"No mesh loaded"},tooltip:{calibrate:"Begins a new calibration, saving as profile 'default'",delete:"Delete Profile",load:"Load Profile",save:"Commits calibrated profile to printer.cfg",copy_image:"Copy bed mesh image"}},chart:{label:{current:"Actual",item:"Name",power:"Power",target:"Target",rate_of_change:"Change"},tooltip:{help:"Hold <kbd>Shift</kbd> to zoom.<br />Click an item to toggle in the graph.<br />Click a power to toggle in the graph."}},console:{label:{auto_scroll:"Auto scroll",flip_layout:"Flip layout",hide_temp_waits:"Hide temp waits"},tooltip:{help:'Enter "help" for commands<br />Use <kbd>Tab</kbd> for autocomplete<br />Use <kbd>&uarr;</kbd> and <kbd>&darr;</kbd> for history'}},endpoint:{error:{cant_connect:"Something went wrong, and fluidd can't reach the destination. Are you sure this is the correct address?",cors_error:"blocked by CORS policy",cors_note:'This may mean you need to modify your moonraker configuration. Please see the documentation on multi printer setups <a href="%{url}" target="_blank">here</a>'},hint:{add_printer:"E.g., http://fluiddpi.local"},msg:{trouble:'Having trouble? <a href="%{url}" target="_blank">See here</a> for more information.'},tooltip:{endpoint_examples:"Enter your API URL.<br />Some examples might be;<br /><blockquote>fluidd.local, https://192.168.1.150</blockquote>"}},endstop:{label:{open:"OPEN",triggered:"TRIGGERED"},msg:{subtitle:"Use the refresh button to update endstop status."}},file_system:{filters:{label:{crowsnest_backup_files:"Filter Crowsnest backup files",print_start_time:"Filter printed",hidden_files_folders:"Filter hidden files and folders",klipper_backup_files:"Filter Klipper backup files",moonraker_backup_files:"Filter Moonraker backup files",rolled_log_files:"Filter rolled log files"}},label:{dir_name:"Directory name",disk_usage:"Disk Usage",diskinfo:"Disk Information",downloaded:"Downloaded",file_name:"Filename",transfer_rate:"Transfer rate",uploaded:"Uploaded",view_section_documentation:"View '%{section}' documentation",hour:"hour",minute:"minute",second:"second"},msg:{not_found:"No files found",processing:"Processing"},overlay:{drag_files_folders_upload:"<strong>Drag</strong> files and folders here to upload",drag_files_enqueue:"<strong>Drag</strong> files here to enqueue"},title:{add_dir:"Add Directory",add_file:"Add File",command_palette:"Command Palette",devices:"Devices",download_file:"Retrieving file",duplicate_dir:"Duplicate Directory",duplicate_file:"Duplicate File",go_to_file:"Go to file",rename_dir:"Rename Directory",rename_file:"Rename File",upload_file:"Uploading file | Uploading files",check_filament:"Check Filament"},tooltip:{low_on_space:"Low on disk space",items_count:"{count} item | {count} items",root_disabled:"{root} root is not available. Please check your logs.",warning_text:"Please add the types of materials in the material tray, or reduce the types of materials used by the model.",tip:"Select the materials to be used. The top section shows the materials used by the model, and the bottom section shows the corresponding materials in the material tray."},url:{klipper_config:"%{klipperDomain}/Config_Reference.html#%{hash}",moonraker_config:"https://moonraker.readthedocs.io/en/latest/configuration/#%{hash}",moonraker_telegram_bot_config:"https://github.com/nlef/moonraker-telegram-bot/wiki/Sample-config#%{hash}",crowsnest_config:"https://crowsnest.mainsail.xyz/configuration/%{hash}-section"}},gcode:{btn:{load_current_file:"Load Current File"},label:{current_layer_height:"Current Layer Height",exclude_object:"Exclude Object",follow_progress:"Follow progress",layer:"Layer",layers:"Layers",parsed:"Parsed",show_current_layer:"Show current layer",show_extrusions:"Show extrusions",show_moves:"Show moves",show_next_layer:"Show next layer",show_parts:"Show parts",show_previous_layer:"Show previous layer",show_retractions:"Show retractions",parsing_file:"Parsing file"},msg:{confirm:'The file "%{filename}" is %{size}, this might be resource intensive for your system. Are you sure?'},overlay:{drag_file_load:"<strong>Drag</strong> a gcode file here to load"}},general:{btn:{abort:"Abort",accept:"Accept",add:"Add",add_dir:"Add Directory",add_file:"Add File",add_printer:"Add printer",add_to_queue:"Add to Queue",adjust_layout:"Adjust dashboard layout",adjusted:"Adjusted",all:"All",auth_unsure:"Unsure why you're seeing this?",calibrate:"Calibrate",cancel:"Cancel",clear_profile:"Clear Profile",close:"Close",config_reference:"Config Reference",copied:"Copied",copy:"Copy",create_zip_archive:"Create ZIP Archive",delete:"Delete",download:"Download",duplicate:"Duplicate",edit:"Edit",exit_layout:"Exit layout mode",extrude:"Extrude",filter:"Filter",forgot_password:"Forgotten your password?",go_to_file:"Go to file",heaters_off:"Heaters off",job_queue:"Job Queue",load_all:"Load all",login:"Login",logout:"Logout",more_information:"More information",multiply:"Multiply",pause:"Pause",preheat:"Preheat",presets:"Presets",preview_gcode:"Preview Gcode",print:"Print",quad_gantry_level:"QGL",reboot:"Reboot",recover:"Recover",refresh:"Refresh",refresh_metadata:"Refresh Metadata",reload:"Reload",remove:"Remove",remove_all:"Remove all",rename:"Rename",reprint:"Re-Print",reset_file:"Clear File",reset_layout:"Reset to Default Layout",reset_default_layout:"Reset Default Layout",restart_firmware:"Firmware Restart",restart_service:"Restart %{service}",restart_service_klipper:"Restart Klipper",restart_service_moonraker:"Restart Moonraker",resume:"Resume",retract:"Retract",retry:"Retry",return_dashboard:"Return to the dashboard",save:"Save",save_as:"Save As",save_restart:"Save & Restart",save_config_and_restart:"Save config & restart",select_columns:"Select columns",send:"Send",set_color:"Set Color",set_default_layout:"Set as Default Layout",shutdown:"Shutdown",snooze:"Snooze",socket_reconnect:"Re-Connect",socket_refresh:"Force refresh",thumbnail_size:"Thumbnail size",upload:"Upload",upload_files:"Upload Files",upload_folder:"Upload Folder",upload_print:"Upload & Print",view:"View",reset_stats:"Reset Stats"},error:{app_setup_link:'Fluidd setup requirements can be found <a target="_blank" href="%{url}">here.</a>',app_warnings_found:"%{appName} warnings found.",components_config:'Moonraker plugin configuration can be found <a target="_blank" href="%{url}">here.</a>',failed_components:"Moonraker has failed plugins, please check your logs, update your configuration and restart moonraker."},label:{accel_to_decel:"Accel to Decel",acceleration:"Acceleration",accepted_screws:"Accepted screws",actual_time:"Actual",add_camera:"Add Camera",add_filter:"Add Filter",add_preset:"Add Preset",add_user:"Add user",all:"All",api_key:"Api Key",api_url:"API URL",auth_source:"Authentication Source",bars:"Bars",category:"Category",change_password:"Change password",clear_all:"Clear all",color:"Color",command:"Command",confirm:"Confirm",cross:"Cross",circle:"Circle",compact:"Compact",current_password:"Current password",current_user:"Current user",default:"Default",disabled_while_printing:"Disabled while printing",edit_camera:"Edit Camera",edit_filter:"Edit Filter",edit_preset:"Edit Preset",edit_user:"Edit user",extrude_length:"Extrude Length",extrude_speed:"Extrude Speed",filament:"Filament",file:"File",finish_time:"Finish",flow:"Flow",free:"free",heaters_busy:"The printer is currently busy. Turning off the heaters may result in a failed print.",high:"High",host:"Host",layer:"Layer",layout:"Layout",ldap:"LDAP",longest_job:"Longest job",low:"Low",manage_accounts:"Manage Accounts",minimum_cruise_ratio:"Minimum Cruise Ratio",user_managed_source:"User managed by %{source} authentication",m117:"M117",moonraker:"Moonraker",name:"Name",new_password:"New password",no_notifications:"No notifications",on:"On",off:"Off",numeric_prefix_sort:"Numeric Prefix sort",password:"Password",partial_of_total:"%{partial} of %{total}",pause_at_layer:"Pause at Layer",pause_at_next_layer:"Pause at next layer",pause_at_layer_number:"Pause at layer number",power:"Power",pressure_advance:"Pressure Advance",printers:"Printers",progress:"Progress",range:"Range",requested_speed:"Speed",retract_length:"Retract Length",retract_speed:"Retract Speed",save_as:"Save As",screw_index:"Screw index",screw_name:"Screw name",screw_number:"Screw %{index}",services:"Services",slicer:"Slicer",smooth_time:"Smooth Time",speed:"Speed",sqv:"Square Corner Velocity",stepper_enabled:"Stepper Enabled",synced_extruder:"Synced Extruder",thumbnail_size:"Thumbnail Size",total:"Total",total_filament:"Total filament used",total_filament_avg:"Avg per print",total_jobs:"Total print jobs",total_print_time:"Total print time",total_print_time_avg:"Avg per print",total_time:"Total time",total_time_avg:"Avg per print",turn_device_on:"Turn %{device} on",turn_device_off:"Turn %{device} off",uncategorized:"Uncategorized",unknown:"Unknown",unretract_extra_length:"Unretract Extra Length",unretract_speed:"Unretract Speed",upload_and_print:"Upload and Print",used:"used",username:"Username",velocity:"Velocity",version_sort:"Version sort",visible:"Visible",z_offset:"Z Offset",unsaved_changes:"Unsaved Changes",alias:"Alias",apply_z_offset:"Apply and Save Z_Offset",edit_category:"Edit category",add_category:"Add category",file_time:"File",stepper_driver:"%{name} Driver"},msg:{password_changed:"Password changed",wrong_password:"Oops, something went wrong. Is your password correct?",bed_screws_adjust:"Click <b>Adjusted</b> if a significant adjustment is necessary on the current screw; otherwise, click <b>Accept</b> to continue.",welcome_back:"Welcome back.<br>Sign in below to stay in touch with your printer.",offline_ready:"Fluidd is now ready to work offline.",needs_refresh:"New content available, please click the <b>Reload</b> button to update.",pending_configuration_sections_deleted:"The following sections are marked for deletion",rolledover_logs:"The following application logs have been rolled over: %{applications}",not_valid_fluidd_backup_file:"Not a valid Fluidd backup file!",fluidd_settings_backup_failed:"Failed to backup Fluidd settings!",fluidd_settings_restore_failed:"Failed to restore Fluidd settings!"},simple_form:{error:{arrayofnums:"Only numbers",credentials:"Invalid credentials",exists:"Already exists",invalid_number:"Invalid Number",invalid_url:"Invalid URL",invalid_expression:"Invalid Expression",max:"Max %{max}",min:"Min %{min}",min_or_0:"Min %{min} or 0",password_username:"Cannot match username",required:"Required",invalid_aspect:"Invalid Aspect Ratio"},msg:{confirm:"Are you sure?",confirm_cancel_print:"Are you sure you want to cancel the current print?",confirm_clear_mesh:"The printer is currently busy. Are you sure you want to clear the bed mesh?",confirm_delete:"Are you sure? This will delete the selected item. | Are you sure? This will delete the {count} selected items.",confirm_emergency_stop:"Are you sure you want to emergency stop the printer?",confirm_exclude_object:"Are you sure you want to exclude this object from printing?",confirm_forcemove_toggle:"Are you sure? This can damage the printer.",confirm_load_bedmesh_profile:"The printer is currently busy. Are you sure you want to load profile %{name}?",confirm_reboot_host:"Are you sure? This will reboot your host system.",confirm_remove_user:"Are you sure you want to remove user %{username}?",confirm_shutdown_host:"Are you sure? This will shutdown your host system.",confirm_service_start:"Are you sure you want to start the %{name} service?",confirm_service_restart:"Are you sure you want to restart the %{name} service?",confirm_service_stop:"Are you sure you want to stop the %{name} service?",confirm_power_device_toggle:"Are you sure? This will toggle the power of this device.",unsaved_changes:"You have unsaved changes. Are you sure you want to close this file?",no_file_preview:"%{name} cannot currently be previewed."}},table:{header:{actions:"Actions",chamber_temp:"Chamber temp",end_time:"Ended",estimated_time:"Estimated time",filament:"Filament",filament_name:"Filament name",filament_type:"Filament type",filament_used:"Used filament",filament_weight_total:"Filament weight",first_layer_bed_temp:"First layer bed temp",first_layer_extr_temp:"First layer extruder temp",first_layer_height:"First layer height",height:"Height",last_printed:"Last printed",layer_height:"Layer height",modified:"Modified",name:"Name",nozzle_diameter:"Nozzle diameter",print_duration:"Print duration",time_added:"Time Added",time_in_queue:"Time In Queue",size:"Size",slicer:"Slicer",slicer_version:"Slicer version",start_time:"Started",status:"Status",total_duration:"Total duration"}},title:{add_chart:"Add Chart",add_printer:"Add Printer",bedmesh:"Bed Mesh",bedmesh_controls:"Bed Mesh Controls",camera:"Camera | Cameras",config_files:"Configuration Files",configure:"Configuration",console:"Console",diagnostics:"Diagnostics",edit_chart:"Edit Chart",endstops:"Endstops",fans_outputs:"Fans & Outputs",gcode_preview:"Gcode Preview",history:"History",home:"Home",jobs:"Jobs",job_queue:"Job Queue",limits:"Printer Limits",macros:"Macros",metrics_explorer:"Metrics Explorer",not_found:"404 Not Found",other_files:"Other Files",pending_configuration_changes:"Pending Configuration Changes",retract:"Firmware Retraction",rollover_logs:"Rollover logs",runout_sensors:"Runout Sensors",settings:"Settings",stats:"Printer Stats",system:"System",system_overview:"System Information",temperature:"Thermals",timelapse:"Timelapse",tool:"Tool",tune:"Tune"},tooltip:{browse_metrics:"Browse available metrics",estop:"Emergency Stop",managed_by_moonraker:"Managed by your moonraker configuration",notifications:"Notifications",reload_klipper:"Reloads klipper configuration.",reload_restart_klipper:"Reloads klipper configuration and restarts MCU's.",restart_klipper:"Restarts the klipper system service.",run_collector:"Run collector",rollover_logs:"Rollover logs",file_browser_help:'Drag and drop files or folders from outside the browser to upload them here<br>Move files and folders by dragging and dropping them onto sub-folders or ".."',file_browser_configuration_help:"Copy files and folders to the Configuration Files by dragging them from here and dropping them there"}},history:{msg:{confirm:"Are you sure? This will clear all history, and printer statistics",confirm_jobs:"Are you sure? This will clear all jobs.",confirm_stats:"Are you sure? This will clear all stats."}},job_queue:{msg:{confirm:"Are you sure? This will clear the entire printer queue"},label:{number_of_copies:"Number of copies"},title:{multiply_job:"Multiply Job | Multiply Jobs"},tooltip:{help:"Queue jobs by dragging files from the Jobs and dropping them here<br>Adjust the order of queued jobs by dragging them up or down"}},printer:{state:{busy:"Busy",cancelled:"Cancelled",complete:"Complete",idle:"Idle",loading:"Loading",paused:"Paused",printing:"Printing",ready:"Ready",standby:"Standby"},title:{printer_status:"Printer Status",stepper_driver_overheating:"Stepper driver '%{name}' is over-heating"},msg:{possible_print_failure:"This may lead to a failed print"},url:{stepper_driver_overheating:"%{klipperDomain}/TMC_Drivers.html#tmc-reports-error-ot1overtemperror"}},setting:{btn:{add_camera:"Add Camera",add_category:"Add Category",add_filter:"Add Filter",add_metric:"Add Metric",add_thermal_preset:"Add Preset",add_user:"Add user",backup:"Backup",reset:"Reset",restore:"Restore",select_theme:"Select Theme"},camera_type_options:{mjpegadaptive:"MJPEG Adaptive",mjpegstream:"MJPEG Stream",hlsstream:"HLS Stream",webrtc_camera_streamer:"WebRTC (camera-streamer)",video:"IP Camera",iframe:"HTTP page",webrtc_go2rtc:"WebRTC (go2rtc)",webrtc_mediamtx:"WebRTC (MediaMTX)"},camera_rotate_options:{90:"90°",180:"180°",270:"270°",none:"None"},label:{all_off:"All off",all_on:"All on",aspect_ratio:"Aspect Ratio",aspect_ratio_format:"[width : height]",auto_edit_extensions:"Extensions to automatically open in edit mode",auto_follow_on_file_load:"Automatically follow progress on file load",auto_load_on_print_start:"Automatically load file on print start",auto_load_mobile_on_print_start:"Automatically load file on mobile devices",axes:"Axes",camera_flip_x:"Flip horizontally",camera_flip_y:"Flip vertically",camera_fullscreen_action:{title:"Fullscreen action",embed:"Embed",rawstream:"Raw stream"},camera_rotate_by:"Rotate by",camera_stream_type:"Stream type",camera_url_snapshot:"Camera Url Snapshot",camera_url_stream:"Camera Url Stream",card:"Card",collector:"Collector",confirm_on_estop:"Require confirm on Emergency Stop",confirm_on_power_device_change:"Require confirm on Device Power changes",confirm_on_save_config_and_restart:"Review Pending Configuration Changes before Save and Restart",confirm_dirty_editor_close:"Require confirm when closing the editor with unsaved changes",contains:"Contains",dark_mode:"Dark mode",dashed:"Dashed",default_extrude_length:"Default extrude length",default_extrude_speed:"Default extrude speed",default_min_layer_height:"Default minimum layer height",default_toolhead_move_length:"Default toolhead move length",default_toolhead_xy_speed:"Default toolhead XY speed",default_toolhead_z_speed:"Default toolhead Z speed",dotted:"Dotted",draw_background:"Draw Background",draw_origin:"Draw origin",enable:"Enable",enable_diagnostics:"Enable diagnostics",enable_notifications:"Enable notifications",enable_xy_homing:"Enable XY Homing",expression:"Expression",extrusion_line_width:"Extrusion Line Width",flip_horizontal:"Horizontal Flip",flip_vertical:"Vertical Flip",fill_color:"Fill color",fill_opacity:"Fill opacity",filter:"Filter | Filters",fluidd_settings_in_moonraker_db:"Fluidd settings in Moonraker database",fps_target:"FPS Target",fps_idle_target:"FPS Target when not in focus",height:"Height",hide_single_part_bounding_box:"Hide part bounding box when printing a single part",gcode_coords:"Use GCode Coordinates",icon:"Icon",invert_x_control:"Invert X control",invert_y_control:"Invert Y control",invert_z_control:"Invert Z control",keyboard_shortcuts:"Keyboard shortcuts",language:"Display Language",last_result:"Last result",left_y:"Left Y-Axis",line_color:"Line color",line_style:"Line style",min:"Minimum",max:"Maximum",metrics:"Metrics",move_line_width:"Move Line Width",name:"Name",never:"Never",none:"None",optional:"Optional",power_toggle_in_top_nav:"Power toggle in top navigation",primary_color:"Primary color",print_eta_calculation:"Print ETA calculation",print_in_progress_layout:"Print in Progress layout",print_progress_calculation:"Print Progress calculation",printer_name:"Printer Name",reset:"Reset settings",retraction_icon_size:"Retraction Icon Size",right_y:"Right Y-Axis",save_and_restore_view_state:"Save and restore view state",sections_to_ignore_pending_configuration_changes:"Sections to ignore Pending Configuration Changes",show_animations:"Show animations",show_barometric_pressure:"Show barometric pressure",show_chart:"Show chart",show_code_lens:"Show CodeLens",show_gas_resistance:"Show gas resistance",show_legend:"Show legend",show_logo_on_background:"Show logo on background",show_rate_of_change:"Show temperature rate of change",show_relative_humidity:"Show relative humidity",show_save_config_and_restart:"Save Config and Restart button in top navigation",show_upload_and_print:"Show Upload and Print button in top navigation",solid:"Solid",starts_with:"Starts with",theme_preset:"Community preset",thermal_preset_gcode:"GCode",thermal_preset_name:"Preset Name",title:"Title",to_browser_local_storage:"To browser local storage",to_browser_session_storage:"To browser session storage",toolhead_control_style:"Toolhead control style",toolhead_move_distances:"Toolhead distance values",toolhead_xy_move_distances:"Toolhead XY distance values",toolhead_z_move_distances:"Toolhead Z distance values",type:"Type",unit:"Unit",z_adjust_values:"Z Adjust values",date_format:"Date format",time_format:"Time format",text_sort_order:"Text sort order",force_move_toggle_warning:"Require confirm when activating FORCE_MOVE",show_manual_probe_dialog_automatically:"Show Manual Probe dialog automatically",show_bed_screws_adjust_dialog_automatically:"Show Bed Screws Adjust dialog automatically",show_screws_tilt_adjust_dialog_automatically:"Show Screws Tilt Adjust dialog automatically"},timer_options:{absolute_file_position:"Absolute file position",duration:"Duration only",filament:"Filament",file:"File",relative_file_position:"Relative file position",slicer:"Slicer",slicer_m73:"Slicer (M73)"},title:{authentication:"Authentication",console:"Console",camera:"Camera | Cameras",file_browser:"File Browser",file_editor:"File Editor",gcode_preview:"Gcode Preview",general:"General",macros:"Macros",theme:"Theme",thermal_presets:"Thermal Presets",tool:"Tool"},tooltip:{average_calculation:"If more than one option is select, an average will be calculated",diagnostics_performance:"[BETA] Logging diagnostics info may impact performance",gcode_coords:"Use GCode position instead of toolhead position on dashboard",keyboard_shortcuts:"[BETA] Enable and press '?' to view the list of available keyboard shortcuts",show_manual_probe_dialog_automatically:"Automatically shows helper dialog if running a Manual Probe tool",show_bed_screws_adjust_dialog_automatically:"Automatically shows helper dialog if running BED_SCREWS_ADJUST tool",show_screws_tilt_adjust_dialog_automatically:"Automatically shows helper dialog if running SCREWS_TILT_CALCULATE tool",theme_disclaimer:"These themes feature brand names and logos that are the intellectual property of their respective owners.<br> The inclusion of these names and logos is done with permission from the brands.<br> However, please note that these themes are not officially maintained by the respective brands.<br> Any issues or inquiries related to the themes should be directed to the Fluidd team.<br> The use of brand names and logos is for decorative and aesthetic purposes only, and no official association with or endorsement by the brands is implied."}},socket:{msg:{connecting:"Connecting to moonraker...",no_connection:"No moonraker connection. Please check moonraker status and / or refresh."}},system_info:{label:{awake_time:"awake time",capacity:"Capacity",constants:"Constants",cpu_desc:"CPU Description",devices:"Devices",distribution_codename:"Codename",distribution_like:"Distribution Like",distribution_name:"Distribution",frequency:"Frequency",hardware_desc:"Hardware Description",hostname:"Hostname",klipper_load:"Klipper Load",load:"load",manufactured:"Manufactured",manufacturer:"Manufacturer",memory_used:"memory used",mcu_awake:"{mcu} Awake Time",mcu_bandwidth:"{mcu} Bandwidth",mcu_information:"{mcu} Information",mcu_load:"{mcu} Load",micro_controller:"Micro-Controller",model:"CPU Model",moonraker_load:"Moonraker Load",last_stats:"Last Stats",network:"Network",processor_desc:"Processor",product_name:"Product Name",serial_number:"Serial Number",system_load:"System Load",system_memory:"System Memory",system_utilization:"System Utilization",total_memory:"Total Memory",operating_system:"Operating System",version:"Version",virtualization:"Virtualization"},msg:{canbus_warning:'Only unassigned CAN bus nodes can be detected.<br> It is recommended to have only one unassigned device connected to the CAN bus to avoid communication issues.<br> More information can be found <a target="_blank" href="https://moonraker.readthedocs.io/en/latest/web_api/#query-unassigned-canbus-uuids">here.</a>',no_devices_found:"No devices found",no_devices_searched:"Use the refresh button to search for devices"}},tool:{btn:{home_x:"X",home_y:"Y",home_all:"All"},title:{bed_screws_adjust:"Bed Screws Adjust",manual_probe:"Manual Probe",screws_tilt_adjust:"Screws Tilt Adjust"},tooltip:{absolute_positioning:"Absolute Positioning",extruder_disabled:"extruder disabled, below min_extrude_temp (%{min}<small>°C</small>)",home_xy:"Home XY",home_z:"Home Z",manual_probe:"Manual Probe",motors_off:"Motors Off",relative_positioning:"Relative Positioning",select_tool:"Select tool %{tool}",tools:"Tools"},label:{stats_active_extruder:'<span class="secondary--text">The active extruder configuration is set for</span> %{filamentDiameter} mm diameter filament <span class="secondary--text">and</span> %{nozzleDiameter} mm nozzle',stats_volumetric_flow:'Extruding at %{extrudeSpeed} mm/s<span class="secondary--text">, the extruder should be able to provide an</span> estimated volumetric flow of %{estimatedVolumetricFlow} mm³/s',stats_extruded_length:'Extruding %{extrudeLength} mm of filament at %{extrudeFactor} % flow<span class="secondary--text">, will provide an</span> estimated output length of %{estimatedExtrudedLength} mm',stats_max_speed:'<span class="secondary--text">Assuming a</span> %{layerHeight} mm layer height<span class="secondary--text">, the</span> estimated maximum print speed is %{estimatedMaxSpeed} mm/s'}},version:{btn:{check_for_updates:"Check for updates",finish:"Finish",update:"Update",update_all:"Update all",view_versions:"View versions"},label:{commit_history:"Commit History",commits_on:"commits on",committed:"Committed",dirty:"DIRTY",invalid:"INVALID",os_packages:"OS Packages",package_list:"Package List",up_to_date:"UP TO DATE",updates_available:"Updates are available",old_component_version:"You are using an old version of %{name} that does not support all features of Fluidd.<br>Update %{name} to at least %{version}."},status:{finished:"Updates finished",updating:"Updating..."},title:"Software Updates",tooltip:{commit_history:"Commit history",dirty:"indicates a detached head, not on master or an invalid origin",invalid:"indicates local changes to the repo",packages:"Packages",release_notes:"Release notes"}},timelapse:{btn:{render:"Render",save_frames:"Save Frames"},error:{newframe:"Error taking timelapse frame"},label:{frames:"%{frames} frame | %{frames} frames",length:"Estimated length: %{length}",frame:"Frame | Frames"},title:{timelapse_settings:"Timelapse Settings",timelapse_status:"Timelapse Status",render_settings:"Render Settings"},setting:{enable:"Enabled",auto_render:"Auto Render",crf:"Constant Rate Factor",duplicatelastframe:"Duplicate last frames",fw_retract:"Use Firmware Retraction",gcode_verbose:"Verbose Gcode",mode:"Mode",mode_layermacro:"Layer Macro",mode_hyperlapse:"Hyperlapse",hyperlapse_cycle:"Hyperlapse Cycle",output_framerate:"Output Framerate",park_retract_distance:"Park Retraction Distance",park_retract_speed:"Park Retraction Speed",park_extrude_distance:"Park Extrude Distance",park_extrude_speed:"Park Extrude Speed",parkhead:"Park Head",park_time:"Park Time",park_travel_speed:"Park Travel Speed",park_custom_pos_x:"Park Position X",park_custom_pos_y:"Park Position Y",park_custom_pos_dz:"Park Position Z-Hop",parkpos:{label:"Park Position",custom:"Custom",front_left:"Front Left",front_right:"Front Right",center:"Center",back_left:"Back Left",back_right:"Back Right",x_only:"Move X only",y_only:"Move Y only"},previewimage:"Generate Thumbnail",saveframes:"Save Frames",stream_delay_compensation:"Delay Compensation",targetlength:"Target Length",variable_fps:"Variable FPS",variable_fps_min:"Minimum Framerate",variable_fps_max:"Maximum Framerate"}},spoolman:{btn:{manage_spools:"Manage Spools",scan_code:"Scan Code",select:"Select | Select for {macro}"},title:{spoolman:"Spoolman",spool_selection:"Spool Selection | Spool Selection for macro {macro}",scan_spool:"Scan Spool"},label:{active_spool:"Active Spool",change_spool:"Change Spool",comment:"Comment",device_camera:"Device",filament_name:"Filament",first_used:"First Used",id:"ID",last_used:"Last Used",location:"Location",lot_nr:"Lot Nr",material:"Material",remaining_weight:"Remaining",vendor:"Vendor",weight:"Weight",length:"Length"},msg:{no_spool:"You haven't selected a spool. Are you sure you want to print without filament tracking?",no_filament:"The spool you selected may not have enough filament left on it to successfully finish the print job. Are you sure you want to continue?",no_required_length:"The amount of filament required to print the selected file is unknown. Do you wish to continue?",mismatched_filament:"The material of the selected filament does not match the selected material in the slicer. Are you sure you want to continue?",tracking_inactive:"Filament tracking is inactive. To get started, please select a spool.",not_connected:"Spoolman server not available.",info:{howto:"Show your spool's QR code to the camera. This window will close as soon as a spool is detected."},warning:{code_not_recognized:"This code doesn't look like a compatible QR code.",invalid_spool_id:"The spool ID contained in this QR code is invalid."},error:{cors:"There was an error accessing the cameras feed. Please make sure your webcam server allows CORS access.",spool_not_existant:"The spool you scanned doesn't exist in the database.",no_image_data:"There was an error accessing the cameras feed. Please check your camera configuration or try another camera source."}},setting:{auto_open_qr_camera:"Automatically open camera for QR code detection",auto_select_spool_on_match:"Automatically commit spool selection on QR code match",prefer_device_camera:"Use device camera for QR code detection if available",show_spool_selection_dialog_on_print_start:"Show spool selection dialog on print start",warn_on_not_enough_filament:"Show a warning when the selected spool doesn't have enough filament left on it to finish the print",warn_on_filament_type_mismatch:"Show a warning when the spool's filament type and the one selected in the slicer don't match",remaining_filament_unit:"Show remaining filament as"}},sensors:{title:{sensors:"Sensors"}},keyboard_shortcuts:{title:{keyboard_shortcuts:"Keyboard Shortcuts"},label:{actions:"Actions",cancel:"Cancel",emergency_stop:"Emergency stop",home_all:"Home all",navigation:"Navigation",open_keyboard_shortcut_help:"Open keyboard shortcut help",pause:"Pause",printing:"Printing",tool:"Tool"}},box:{btn:{uninstall:"Uninstall",load:"Load",unload:"Unload"},label:{vendor:"Vendor",filament:"Filament",color:"Color",title:"Control Box",rack:"Rack"},tooltip:{control_filament:"Control feeding and unloading of a single material slot, as well as read data such as filament color and material type."}}}};const fR=Object.freeze(Object.defineProperty({__proto__:null,default:e3},Symbol.toStringTag,{value:"Module"}));var t3=typeof global=="object"&&global&&global.Object===Object&&global,mR=typeof self=="object"&&self&&self.Object===Object&&self,Js=t3||mR||Function("return this")(),yn=Js.Symbol,r3=Object.prototype,gR=r3.hasOwnProperty,vR=r3.toString,cc=yn?yn.toStringTag:void 0;function _R(r){var e=gR.call(r,cc),t=r[cc];try{r[cc]=void 0;var s=!0}catch{}var n=vR.call(r);return s&&(e?r[cc]=t:delete r[cc]),n}var yR=Object.prototype,bR=yR.toString;function $R(r){return bR.call(r)}var SR="[object Null]",wR="[object Undefined]",rS=yn?yn.toStringTag:void 0;function qa(r){return r==null?r===void 0?wR:SR:rS&&rS in Object(r)?_R(r):$R(r)}function bn(r){return r!=null&&typeof r=="object"}var xR="[object Symbol]";function Oy(r){return typeof r=="symbol"||bn(r)&&qa(r)==xR}function CR(r,e){for(var t=-1,s=r==null?0:r.length,n=Array(s);++t<s;)n[t]=e(r[t],t,r);return n}var as=Array.isArray,PR=1/0,sS=yn?yn.prototype:void 0,nS=sS?sS.toString:void 0;function s3(r){if(typeof r=="string")return r;if(as(r))return CR(r,s3)+"";if(Oy(r))return nS?nS.call(r):"";var e=r+"";return e=="0"&&1/r==-PR?"-0":e}function qs(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}function Ty(r){return r}var LR="[object AsyncFunction]",AR="[object Function]",ER="[object GeneratorFunction]",OR="[object Proxy]";function ky(r){if(!qs(r))return!1;var e=qa(r);return e==AR||e==ER||e==LR||e==OR}var Z1=Js["__core-js_shared__"],iS=function(){var r=/[^.]+$/.exec(Z1&&Z1.keys&&Z1.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function TR(r){return!!iS&&iS in r}var kR=Function.prototype,DR=kR.toString;function Za(r){if(r!=null){try{return DR.call(r)}catch{}try{return r+""}catch{}}return""}var MR=/[\\^$.*+?()[\]{}|]/g,RR=/^\[object .+?Constructor\]$/,IR=Function.prototype,FR=Object.prototype,HR=IR.toString,BR=FR.hasOwnProperty,jR=RegExp("^"+HR.call(BR).replace(MR,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VR(r){if(!qs(r)||TR(r))return!1;var e=ky(r)?jR:RR;return e.test(Za(r))}function NR(r,e){return r==null?void 0:r[e]}function Ya(r,e){var t=NR(r,e);return VR(t)?t:void 0}var vv=Ya(Js,"WeakMap"),aS=Object.create,zR=function(){function r(){}return function(e){if(!qs(e))return{};if(aS)return aS(e);r.prototype=e;var t=new r;return r.prototype=void 0,t}}();function UR(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}function n3(r,e){var t=-1,s=r.length;for(e||(e=Array(s));++t<s;)e[t]=r[t];return e}var WR=800,GR=16,qR=Date.now;function ZR(r){var e=0,t=0;return function(){var s=qR(),n=GR-(s-t);if(t=s,n>0){if(++e>=WR)return arguments[0]}else e=0;return r.apply(void 0,arguments)}}function YR(r){return function(){return r}}var Ch=function(){try{var r=Ya(Object,"defineProperty");return r({},"",{}),r}catch{}}(),KR=Ch?function(r,e){return Ch(r,"toString",{configurable:!0,enumerable:!1,value:YR(e),writable:!0})}:Ty,XR=ZR(KR);function QR(r,e){for(var t=-1,s=r==null?0:r.length;++t<s&&e(r[t],t,r)!==!1;);return r}var JR=9007199254740991,eI=/^(?:0|[1-9]\d*)$/;function um(r,e){var t=typeof r;return e=e??JR,!!e&&(t=="number"||t!="symbol"&&eI.test(r))&&r>-1&&r%1==0&&r<e}function dm(r,e,t){e=="__proto__"&&Ch?Ch(r,e,{configurable:!0,enumerable:!0,value:t,writable:!0}):r[e]=t}function id(r,e){return r===e||r!==r&&e!==e}var tI=Object.prototype,rI=tI.hasOwnProperty;function Dy(r,e,t){var s=r[e];(!(rI.call(r,e)&&id(s,t))||t===void 0&&!(e in r))&&dm(r,e,t)}function ad(r,e,t,s){var n=!t;t||(t={});for(var i=-1,a=e.length;++i<a;){var o=e[i],l=void 0;l===void 0&&(l=r[o]),n?dm(t,o,l):Dy(t,o,l)}return t}var oS=Math.max;function sI(r,e,t){return e=oS(e===void 0?r.length-1:e,0),function(){for(var s=arguments,n=-1,i=oS(s.length-e,0),a=Array(i);++n<i;)a[n]=s[e+n];n=-1;for(var o=Array(e+1);++n<e;)o[n]=s[n];return o[e]=t(a),UR(r,this,o)}}function nI(r,e){return XR(sI(r,e,Ty),r+"")}var iI=9007199254740991;function My(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=iI}function pm(r){return r!=null&&My(r.length)&&!ky(r)}function aI(r,e,t){if(!qs(t))return!1;var s=typeof e;return(s=="number"?pm(t)&&um(e,t.length):s=="string"&&e in t)?id(t[e],r):!1}function i3(r){return nI(function(e,t){var s=-1,n=t.length,i=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(i=r.length>3&&typeof i=="function"?(n--,i):void 0,a&&aI(t[0],t[1],a)&&(i=n<3?void 0:i,n=1),e=Object(e);++s<n;){var o=t[s];o&&r(e,o,s,i)}return e})}var oI=Object.prototype;function Ry(r){var e=r&&r.constructor,t=typeof e=="function"&&e.prototype||oI;return r===t}function lI(r,e){for(var t=-1,s=Array(r);++t<r;)s[t]=e(t);return s}var cI="[object Arguments]";function lS(r){return bn(r)&&qa(r)==cI}var a3=Object.prototype,uI=a3.hasOwnProperty,dI=a3.propertyIsEnumerable,Ph=lS(function(){return arguments}())?lS:function(r){return bn(r)&&uI.call(r,"callee")&&!dI.call(r,"callee")};function pI(){return!1}var o3=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cS=o3&&typeof module=="object"&&module&&!module.nodeType&&module,hI=cS&&cS.exports===o3,uS=hI?Js.Buffer:void 0,fI=uS?uS.isBuffer:void 0,cu=fI||pI,mI="[object Arguments]",gI="[object Array]",vI="[object Boolean]",_I="[object Date]",yI="[object Error]",bI="[object Function]",$I="[object Map]",SI="[object Number]",wI="[object Object]",xI="[object RegExp]",CI="[object Set]",PI="[object String]",LI="[object WeakMap]",AI="[object ArrayBuffer]",EI="[object DataView]",OI="[object Float32Array]",TI="[object Float64Array]",kI="[object Int8Array]",DI="[object Int16Array]",MI="[object Int32Array]",RI="[object Uint8Array]",II="[object Uint8ClampedArray]",FI="[object Uint16Array]",HI="[object Uint32Array]",vt={};vt[OI]=vt[TI]=vt[kI]=vt[DI]=vt[MI]=vt[RI]=vt[II]=vt[FI]=vt[HI]=!0;vt[mI]=vt[gI]=vt[AI]=vt[vI]=vt[EI]=vt[_I]=vt[yI]=vt[bI]=vt[$I]=vt[SI]=vt[wI]=vt[xI]=vt[CI]=vt[PI]=vt[LI]=!1;function BI(r){return bn(r)&&My(r.length)&&!!vt[qa(r)]}function Iy(r){return function(e){return r(e)}}var l3=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ic=l3&&typeof module=="object"&&module&&!module.nodeType&&module,jI=Ic&&Ic.exports===l3,Y1=jI&&t3.process,Wo=function(){try{var r=Ic&&Ic.require&&Ic.require("util").types;return r||Y1&&Y1.binding&&Y1.binding("util")}catch{}}(),dS=Wo&&Wo.isTypedArray,Fy=dS?Iy(dS):BI,VI=Object.prototype,NI=VI.hasOwnProperty;function c3(r,e){var t=as(r),s=!t&&Ph(r),n=!t&&!s&&cu(r),i=!t&&!s&&!n&&Fy(r),a=t||s||n||i,o=a?lI(r.length,String):[],l=o.length;for(var c in r)(e||NI.call(r,c))&&!(a&&(c=="length"||n&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||um(c,l)))&&o.push(c);return o}function u3(r,e){return function(t){return r(e(t))}}var zI=u3(Object.keys,Object),UI=Object.prototype,WI=UI.hasOwnProperty;function GI(r){if(!Ry(r))return zI(r);var e=[];for(var t in Object(r))WI.call(r,t)&&t!="constructor"&&e.push(t);return e}function od(r){return pm(r)?c3(r):GI(r)}function qI(r){var e=[];if(r!=null)for(var t in Object(r))e.push(t);return e}var ZI=Object.prototype,YI=ZI.hasOwnProperty;function KI(r){if(!qs(r))return qI(r);var e=Ry(r),t=[];for(var s in r)s=="constructor"&&(e||!YI.call(r,s))||t.push(s);return t}function ld(r){return pm(r)?c3(r,!0):KI(r)}var XI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,QI=/^\w*$/;function Hy(r,e){if(as(r))return!1;var t=typeof r;return t=="number"||t=="symbol"||t=="boolean"||r==null||Oy(r)?!0:QI.test(r)||!XI.test(r)||e!=null&&r in Object(e)}var uu=Ya(Object,"create");function JI(){this.__data__=uu?uu(null):{},this.size=0}function eF(r){var e=this.has(r)&&delete this.__data__[r];return this.size-=e?1:0,e}var tF="__lodash_hash_undefined__",rF=Object.prototype,sF=rF.hasOwnProperty;function nF(r){var e=this.__data__;if(uu){var t=e[r];return t===tF?void 0:t}return sF.call(e,r)?e[r]:void 0}var iF=Object.prototype,aF=iF.hasOwnProperty;function oF(r){var e=this.__data__;return uu?e[r]!==void 0:aF.call(e,r)}var lF="__lodash_hash_undefined__";function cF(r,e){var t=this.__data__;return this.size+=this.has(r)?0:1,t[r]=uu&&e===void 0?lF:e,this}function Pa(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var s=r[e];this.set(s[0],s[1])}}Pa.prototype.clear=JI;Pa.prototype.delete=eF;Pa.prototype.get=nF;Pa.prototype.has=oF;Pa.prototype.set=cF;function uF(){this.__data__=[],this.size=0}function hm(r,e){for(var t=r.length;t--;)if(id(r[t][0],e))return t;return-1}var dF=Array.prototype,pF=dF.splice;function hF(r){var e=this.__data__,t=hm(e,r);if(t<0)return!1;var s=e.length-1;return t==s?e.pop():pF.call(e,t,1),--this.size,!0}function fF(r){var e=this.__data__,t=hm(e,r);return t<0?void 0:e[t][1]}function mF(r){return hm(this.__data__,r)>-1}function gF(r,e){var t=this.__data__,s=hm(t,r);return s<0?(++this.size,t.push([r,e])):t[s][1]=e,this}function Yn(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var s=r[e];this.set(s[0],s[1])}}Yn.prototype.clear=uF;Yn.prototype.delete=hF;Yn.prototype.get=fF;Yn.prototype.has=mF;Yn.prototype.set=gF;var du=Ya(Js,"Map");function vF(){this.size=0,this.__data__={hash:new Pa,map:new(du||Yn),string:new Pa}}function _F(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}function fm(r,e){var t=r.__data__;return _F(e)?t[typeof e=="string"?"string":"hash"]:t.map}function yF(r){var e=fm(this,r).delete(r);return this.size-=e?1:0,e}function bF(r){return fm(this,r).get(r)}function $F(r){return fm(this,r).has(r)}function SF(r,e){var t=fm(this,r),s=t.size;return t.set(r,e),this.size+=t.size==s?0:1,this}function Kn(r){var e=-1,t=r==null?0:r.length;for(this.clear();++e<t;){var s=r[e];this.set(s[0],s[1])}}Kn.prototype.clear=vF;Kn.prototype.delete=yF;Kn.prototype.get=bF;Kn.prototype.has=$F;Kn.prototype.set=SF;var wF="Expected a function";function By(r,e){if(typeof r!="function"||e!=null&&typeof e!="function")throw new TypeError(wF);var t=function(){var s=arguments,n=e?e.apply(this,s):s[0],i=t.cache;if(i.has(n))return i.get(n);var a=r.apply(this,s);return t.cache=i.set(n,a)||i,a};return t.cache=new(By.Cache||Kn),t}By.Cache=Kn;var xF=500;function CF(r){var e=By(r,function(s){return t.size===xF&&t.clear(),s}),t=e.cache;return e}var PF=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,LF=/\\(\\)?/g,AF=CF(function(r){var e=[];return r.charCodeAt(0)===46&&e.push(""),r.replace(PF,function(t,s,n,i){e.push(n?i.replace(LF,"$1"):s||t)}),e});function cd(r){return r==null?"":s3(r)}function jy(r,e){return as(r)?r:Hy(r,e)?[r]:AF(cd(r))}var EF=1/0;function ud(r){if(typeof r=="string"||Oy(r))return r;var e=r+"";return e=="0"&&1/r==-EF?"-0":e}function d3(r,e){e=jy(e,r);for(var t=0,s=e.length;r!=null&&t<s;)r=r[ud(e[t++])];return t&&t==s?r:void 0}function Bo(r,e,t){var s=r==null?void 0:d3(r,e);return s===void 0?t:s}function p3(r,e){for(var t=-1,s=e.length,n=r.length;++t<s;)r[n+t]=e[t];return r}var Vy=u3(Object.getPrototypeOf,Object),OF="[object Object]",TF=Function.prototype,kF=Object.prototype,h3=TF.toString,DF=kF.hasOwnProperty,MF=h3.call(Object);function RF(r){if(!bn(r)||qa(r)!=OF)return!1;var e=Vy(r);if(e===null)return!0;var t=DF.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&h3.call(t)==MF}function _v(r,e,t){var s=-1,n=r.length;e<0&&(e=-e>n?0:n+e),t=t>n?n:t,t<0&&(t+=n),n=e>t?0:t-e>>>0,e>>>=0;for(var i=Array(n);++s<n;)i[s]=r[s+e];return i}function IF(r,e,t){var s=r.length;return t=t===void 0?s:t,!e&&t>=s?r:_v(r,e,t)}var FF="\\ud800-\\udfff",HF="\\u0300-\\u036f",BF="\\ufe20-\\ufe2f",jF="\\u20d0-\\u20ff",VF=HF+BF+jF,NF="\\ufe0e\\ufe0f",zF="\\u200d",UF=RegExp("["+zF+FF+VF+NF+"]");function f3(r){return UF.test(r)}function WF(r){return r.split("")}var m3="\\ud800-\\udfff",GF="\\u0300-\\u036f",qF="\\ufe20-\\ufe2f",ZF="\\u20d0-\\u20ff",YF=GF+qF+ZF,KF="\\ufe0e\\ufe0f",XF="["+m3+"]",yv="["+YF+"]",bv="\\ud83c[\\udffb-\\udfff]",QF="(?:"+yv+"|"+bv+")",g3="[^"+m3+"]",v3="(?:\\ud83c[\\udde6-\\uddff]){2}",_3="[\\ud800-\\udbff][\\udc00-\\udfff]",JF="\\u200d",y3=QF+"?",b3="["+KF+"]?",eH="(?:"+JF+"(?:"+[g3,v3,_3].join("|")+")"+b3+y3+")*",tH=b3+y3+eH,rH="(?:"+[g3+yv+"?",yv,v3,_3,XF].join("|")+")",sH=RegExp(bv+"(?="+bv+")|"+rH+tH,"g");function nH(r){return r.match(sH)||[]}function iH(r){return f3(r)?nH(r):WF(r)}function aH(r){return function(e){e=cd(e);var t=f3(e)?iH(e):void 0,s=t?t[0]:e.charAt(0),n=t?IF(t,1).join(""):e.slice(1);return s[r]()+n}}var mm=aH("toUpperCase");function Ny(r){return mm(cd(r).toLowerCase())}function oH(r,e,t,s){for(var n=-1,i=r==null?0:r.length;++n<i;)t=e(t,r[n],n,r);return t}function lH(r){return function(e){return r==null?void 0:r[e]}}var cH={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},uH=lH(cH),dH=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pH="\\u0300-\\u036f",hH="\\ufe20-\\ufe2f",fH="\\u20d0-\\u20ff",mH=pH+hH+fH,gH="["+mH+"]",vH=RegExp(gH,"g");function _H(r){return r=cd(r),r&&r.replace(dH,uH).replace(vH,"")}var yH=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function bH(r){return r.match(yH)||[]}var $H=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function SH(r){return $H.test(r)}var $3="\\ud800-\\udfff",wH="\\u0300-\\u036f",xH="\\ufe20-\\ufe2f",CH="\\u20d0-\\u20ff",PH=wH+xH+CH,S3="\\u2700-\\u27bf",w3="a-z\\xdf-\\xf6\\xf8-\\xff",LH="\\xac\\xb1\\xd7\\xf7",AH="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",EH="\\u2000-\\u206f",OH=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",x3="A-Z\\xc0-\\xd6\\xd8-\\xde",TH="\\ufe0e\\ufe0f",C3=LH+AH+EH+OH,P3="[']",pS="["+C3+"]",kH="["+PH+"]",L3="\\d+",DH="["+S3+"]",A3="["+w3+"]",E3="[^"+$3+C3+L3+S3+w3+x3+"]",MH="\\ud83c[\\udffb-\\udfff]",RH="(?:"+kH+"|"+MH+")",IH="[^"+$3+"]",O3="(?:\\ud83c[\\udde6-\\uddff]){2}",T3="[\\ud800-\\udbff][\\udc00-\\udfff]",Ao="["+x3+"]",FH="\\u200d",hS="(?:"+A3+"|"+E3+")",HH="(?:"+Ao+"|"+E3+")",fS="(?:"+P3+"(?:d|ll|m|re|s|t|ve))?",mS="(?:"+P3+"(?:D|LL|M|RE|S|T|VE))?",k3=RH+"?",D3="["+TH+"]?",BH="(?:"+FH+"(?:"+[IH,O3,T3].join("|")+")"+D3+k3+")*",jH="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",VH="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",NH=D3+k3+BH,zH="(?:"+[DH,O3,T3].join("|")+")"+NH,UH=RegExp([Ao+"?"+A3+"+"+fS+"(?="+[pS,Ao,"$"].join("|")+")",HH+"+"+mS+"(?="+[pS,Ao+hS,"$"].join("|")+")",Ao+"?"+hS+"+"+fS,Ao+"+"+mS,VH,jH,L3,zH].join("|"),"g");function WH(r){return r.match(UH)||[]}function GH(r,e,t){return r=cd(r),e=e,e===void 0?SH(r)?WH(r):bH(r):r.match(e)||[]}var qH="[']",ZH=RegExp(qH,"g");function M3(r){return function(e){return oH(GH(_H(e).replace(ZH,"")),r,"")}}var Fc=M3(function(r,e,t){return e=e.toLowerCase(),r+(t?Ny(e):e)});function YH(){this.__data__=new Yn,this.size=0}function KH(r){var e=this.__data__,t=e.delete(r);return this.size=e.size,t}function XH(r){return this.__data__.get(r)}function QH(r){return this.__data__.has(r)}var JH=200;function eB(r,e){var t=this.__data__;if(t instanceof Yn){var s=t.__data__;if(!du||s.length<JH-1)return s.push([r,e]),this.size=++t.size,this;t=this.__data__=new Kn(s)}return t.set(r,e),this.size=t.size,this}function Ws(r){var e=this.__data__=new Yn(r);this.size=e.size}Ws.prototype.clear=YH;Ws.prototype.delete=KH;Ws.prototype.get=XH;Ws.prototype.has=QH;Ws.prototype.set=eB;function tB(r,e){return r&&ad(e,od(e),r)}function rB(r,e){return r&&ad(e,ld(e),r)}var R3=typeof exports=="object"&&exports&&!exports.nodeType&&exports,gS=R3&&typeof module=="object"&&module&&!module.nodeType&&module,sB=gS&&gS.exports===R3,vS=sB?Js.Buffer:void 0,_S=vS?vS.allocUnsafe:void 0;function I3(r,e){if(e)return r.slice();var t=r.length,s=_S?_S(t):new r.constructor(t);return r.copy(s),s}function nB(r,e){for(var t=-1,s=r==null?0:r.length,n=0,i=[];++t<s;){var a=r[t];e(a,t,r)&&(i[n++]=a)}return i}function F3(){return[]}var iB=Object.prototype,aB=iB.propertyIsEnumerable,yS=Object.getOwnPropertySymbols,zy=yS?function(r){return r==null?[]:(r=Object(r),nB(yS(r),function(e){return aB.call(r,e)}))}:F3;function oB(r,e){return ad(r,zy(r),e)}var lB=Object.getOwnPropertySymbols,H3=lB?function(r){for(var e=[];r;)p3(e,zy(r)),r=Vy(r);return e}:F3;function cB(r,e){return ad(r,H3(r),e)}function B3(r,e,t){var s=e(r);return as(r)?s:p3(s,t(r))}function $v(r){return B3(r,od,zy)}function uB(r){return B3(r,ld,H3)}var Sv=Ya(Js,"DataView"),wv=Ya(Js,"Promise"),xv=Ya(Js,"Set"),bS="[object Map]",dB="[object Object]",$S="[object Promise]",SS="[object Set]",wS="[object WeakMap]",xS="[object DataView]",pB=Za(Sv),hB=Za(du),fB=Za(wv),mB=Za(xv),gB=Za(vv),Bs=qa;(Sv&&Bs(new Sv(new ArrayBuffer(1)))!=xS||du&&Bs(new du)!=bS||wv&&Bs(wv.resolve())!=$S||xv&&Bs(new xv)!=SS||vv&&Bs(new vv)!=wS)&&(Bs=function(r){var e=qa(r),t=e==dB?r.constructor:void 0,s=t?Za(t):"";if(s)switch(s){case pB:return xS;case hB:return bS;case fB:return $S;case mB:return SS;case gB:return wS}return e});var vB=Object.prototype,_B=vB.hasOwnProperty;function yB(r){var e=r.length,t=new r.constructor(e);return e&&typeof r[0]=="string"&&_B.call(r,"index")&&(t.index=r.index,t.input=r.input),t}var Lh=Js.Uint8Array;function Uy(r){var e=new r.constructor(r.byteLength);return new Lh(e).set(new Lh(r)),e}function bB(r,e){var t=e?Uy(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}var $B=/\w*$/;function SB(r){var e=new r.constructor(r.source,$B.exec(r));return e.lastIndex=r.lastIndex,e}var CS=yn?yn.prototype:void 0,PS=CS?CS.valueOf:void 0;function wB(r){return PS?Object(PS.call(r)):{}}function j3(r,e){var t=e?Uy(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var xB="[object Boolean]",CB="[object Date]",PB="[object Map]",LB="[object Number]",AB="[object RegExp]",EB="[object Set]",OB="[object String]",TB="[object Symbol]",kB="[object ArrayBuffer]",DB="[object DataView]",MB="[object Float32Array]",RB="[object Float64Array]",IB="[object Int8Array]",FB="[object Int16Array]",HB="[object Int32Array]",BB="[object Uint8Array]",jB="[object Uint8ClampedArray]",VB="[object Uint16Array]",NB="[object Uint32Array]";function zB(r,e,t){var s=r.constructor;switch(e){case kB:return Uy(r);case xB:case CB:return new s(+r);case DB:return bB(r,t);case MB:case RB:case IB:case FB:case HB:case BB:case jB:case VB:case NB:return j3(r,t);case PB:return new s;case LB:case OB:return new s(r);case AB:return SB(r);case EB:return new s;case TB:return wB(r)}}function V3(r){return typeof r.constructor=="function"&&!Ry(r)?zR(Vy(r)):{}}var UB="[object Map]";function WB(r){return bn(r)&&Bs(r)==UB}var LS=Wo&&Wo.isMap,GB=LS?Iy(LS):WB,qB="[object Set]";function ZB(r){return bn(r)&&Bs(r)==qB}var AS=Wo&&Wo.isSet,YB=AS?Iy(AS):ZB,KB=1,XB=2,QB=4,N3="[object Arguments]",JB="[object Array]",ej="[object Boolean]",tj="[object Date]",rj="[object Error]",z3="[object Function]",sj="[object GeneratorFunction]",nj="[object Map]",ij="[object Number]",U3="[object Object]",aj="[object RegExp]",oj="[object Set]",lj="[object String]",cj="[object Symbol]",uj="[object WeakMap]",dj="[object ArrayBuffer]",pj="[object DataView]",hj="[object Float32Array]",fj="[object Float64Array]",mj="[object Int8Array]",gj="[object Int16Array]",vj="[object Int32Array]",_j="[object Uint8Array]",yj="[object Uint8ClampedArray]",bj="[object Uint16Array]",$j="[object Uint32Array]",mt={};mt[N3]=mt[JB]=mt[dj]=mt[pj]=mt[ej]=mt[tj]=mt[hj]=mt[fj]=mt[mj]=mt[gj]=mt[vj]=mt[nj]=mt[ij]=mt[U3]=mt[aj]=mt[oj]=mt[lj]=mt[cj]=mt[_j]=mt[yj]=mt[bj]=mt[$j]=!0;mt[rj]=mt[z3]=mt[uj]=!1;function Hc(r,e,t,s,n,i){var a,o=e&KB,l=e&XB,c=e&QB;if(t&&(a=n?t(r,s,n,i):t(r)),a!==void 0)return a;if(!qs(r))return r;var u=as(r);if(u){if(a=yB(r),!o)return n3(r,a)}else{var d=Bs(r),p=d==z3||d==sj;if(cu(r))return I3(r,o);if(d==U3||d==N3||p&&!n){if(a=l||p?{}:V3(r),!o)return l?cB(r,rB(a,r)):oB(r,tB(a,r))}else{if(!mt[d])return n?r:{};a=zB(r,d,o)}}i||(i=new Ws);var h=i.get(r);if(h)return h;i.set(r,a),YB(r)?r.forEach(function(v){a.add(Hc(v,e,t,v,r,i))}):GB(r)&&r.forEach(function(v,y){a.set(y,Hc(v,e,t,y,r,i))});var m=c?l?uB:$v:l?ld:od,g=u?void 0:m(r);return QR(g||r,function(v,y){g&&(y=v,v=r[y]),Dy(a,y,Hc(v,e,t,y,r,i))}),a}var Sj=1,wj=4;function Cv(r){return Hc(r,Sj|wj)}var xj=1,Cj=4;function Pj(r,e){return e=typeof e=="function"?e:void 0,Hc(r,xj|Cj,e)}var Lj="__lodash_hash_undefined__";function Aj(r){return this.__data__.set(r,Lj),this}function Ej(r){return this.__data__.has(r)}function Ah(r){var e=-1,t=r==null?0:r.length;for(this.__data__=new Kn;++e<t;)this.add(r[e])}Ah.prototype.add=Ah.prototype.push=Aj;Ah.prototype.has=Ej;function Oj(r,e){for(var t=-1,s=r==null?0:r.length;++t<s;)if(e(r[t],t,r))return!0;return!1}function Tj(r,e){return r.has(e)}var kj=1,Dj=2;function W3(r,e,t,s,n,i){var a=t&kj,o=r.length,l=e.length;if(o!=l&&!(a&&l>o))return!1;var c=i.get(r),u=i.get(e);if(c&&u)return c==e&&u==r;var d=-1,p=!0,h=t&Dj?new Ah:void 0;for(i.set(r,e),i.set(e,r);++d<o;){var m=r[d],g=e[d];if(s)var v=a?s(g,m,d,e,r,i):s(m,g,d,r,e,i);if(v!==void 0){if(v)continue;p=!1;break}if(h){if(!Oj(e,function(y,C){if(!Tj(h,C)&&(m===y||n(m,y,t,s,i)))return h.push(C)})){p=!1;break}}else if(!(m===g||n(m,g,t,s,i))){p=!1;break}}return i.delete(r),i.delete(e),p}function Mj(r){var e=-1,t=Array(r.size);return r.forEach(function(s,n){t[++e]=[n,s]}),t}function Rj(r){var e=-1,t=Array(r.size);return r.forEach(function(s){t[++e]=s}),t}var Ij=1,Fj=2,Hj="[object Boolean]",Bj="[object Date]",jj="[object Error]",Vj="[object Map]",Nj="[object Number]",zj="[object RegExp]",Uj="[object Set]",Wj="[object String]",Gj="[object Symbol]",qj="[object ArrayBuffer]",Zj="[object DataView]",ES=yn?yn.prototype:void 0,K1=ES?ES.valueOf:void 0;function Yj(r,e,t,s,n,i,a){switch(t){case Zj:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset)return!1;r=r.buffer,e=e.buffer;case qj:return!(r.byteLength!=e.byteLength||!i(new Lh(r),new Lh(e)));case Hj:case Bj:case Nj:return id(+r,+e);case jj:return r.name==e.name&&r.message==e.message;case zj:case Wj:return r==e+"";case Vj:var o=Mj;case Uj:var l=s&Ij;if(o||(o=Rj),r.size!=e.size&&!l)return!1;var c=a.get(r);if(c)return c==e;s|=Fj,a.set(r,e);var u=W3(o(r),o(e),s,n,i,a);return a.delete(r),u;case Gj:if(K1)return K1.call(r)==K1.call(e)}return!1}var Kj=1,Xj=Object.prototype,Qj=Xj.hasOwnProperty;function Jj(r,e,t,s,n,i){var a=t&Kj,o=$v(r),l=o.length,c=$v(e),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var p=o[d];if(!(a?p in e:Qj.call(e,p)))return!1}var h=i.get(r),m=i.get(e);if(h&&m)return h==e&&m==r;var g=!0;i.set(r,e),i.set(e,r);for(var v=a;++d<l;){p=o[d];var y=r[p],C=e[p];if(s)var x=a?s(C,y,p,e,r,i):s(y,C,p,r,e,i);if(!(x===void 0?y===C||n(y,C,t,s,i):x)){g=!1;break}v||(v=p=="constructor")}if(g&&!v){var S=r.constructor,E=e.constructor;S!=E&&"constructor"in r&&"constructor"in e&&!(typeof S=="function"&&S instanceof S&&typeof E=="function"&&E instanceof E)&&(g=!1)}return i.delete(r),i.delete(e),g}var eV=1,OS="[object Arguments]",TS="[object Array]",op="[object Object]",tV=Object.prototype,kS=tV.hasOwnProperty;function rV(r,e,t,s,n,i){var a=as(r),o=as(e),l=a?TS:Bs(r),c=o?TS:Bs(e);l=l==OS?op:l,c=c==OS?op:c;var u=l==op,d=c==op,p=l==c;if(p&&cu(r)){if(!cu(e))return!1;a=!0,u=!1}if(p&&!u)return i||(i=new Ws),a||Fy(r)?W3(r,e,t,s,n,i):Yj(r,e,l,t,s,n,i);if(!(t&eV)){var h=u&&kS.call(r,"__wrapped__"),m=d&&kS.call(e,"__wrapped__");if(h||m){var g=h?r.value():r,v=m?e.value():e;return i||(i=new Ws),n(g,v,t,s,i)}}return p?(i||(i=new Ws),Jj(r,e,t,s,n,i)):!1}function gm(r,e,t,s,n){return r===e?!0:r==null||e==null||!bn(r)&&!bn(e)?r!==r&&e!==e:rV(r,e,t,s,gm,n)}var sV=1,nV=2;function iV(r,e,t,s){var n=t.length,i=n;if(r==null)return!i;for(r=Object(r);n--;){var a=t[n];if(a[2]?a[1]!==r[a[0]]:!(a[0]in r))return!1}for(;++n<i;){a=t[n];var o=a[0],l=r[o],c=a[1];if(a[2]){if(l===void 0&&!(o in r))return!1}else{var u=new Ws,d;if(!(d===void 0?gm(c,l,sV|nV,s,u):d))return!1}}return!0}function G3(r){return r===r&&!qs(r)}function aV(r){for(var e=od(r),t=e.length;t--;){var s=e[t],n=r[s];e[t]=[s,n,G3(n)]}return e}function q3(r,e){return function(t){return t==null?!1:t[r]===e&&(e!==void 0||r in Object(t))}}function oV(r){var e=aV(r);return e.length==1&&e[0][2]?q3(e[0][0],e[0][1]):function(t){return t===r||iV(t,r,e)}}function lV(r,e){return r!=null&&e in Object(r)}function cV(r,e,t){e=jy(e,r);for(var s=-1,n=e.length,i=!1;++s<n;){var a=ud(e[s]);if(!(i=r!=null&&t(r,a)))break;r=r[a]}return i||++s!=n?i:(n=r==null?0:r.length,!!n&&My(n)&&um(a,n)&&(as(r)||Ph(r)))}function uV(r,e){return r!=null&&cV(r,e,lV)}var dV=1,pV=2;function hV(r,e){return Hy(r)&&G3(e)?q3(ud(r),e):function(t){var s=Bo(t,r);return s===void 0&&s===e?uV(t,r):gm(e,s,dV|pV)}}function fV(r){return function(e){return e==null?void 0:e[r]}}function mV(r){return function(e){return d3(e,r)}}function gV(r){return Hy(r)?fV(ud(r)):mV(r)}function Z3(r){return typeof r=="function"?r:r==null?Ty:typeof r=="object"?as(r)?hV(r[0],r[1]):oV(r):gV(r)}function vV(r){return function(e,t,s){for(var n=-1,i=Object(e),a=s(e),o=a.length;o--;){var l=a[++n];if(t(i[l],l,i)===!1)break}return e}}var Y3=vV();function _V(r,e){return r&&Y3(r,e,od)}function Pv(r,e,t){(t!==void 0&&!id(r[e],t)||t===void 0&&!(e in r))&&dm(r,e,t)}function yV(r){return bn(r)&&pm(r)}function Lv(r,e){if(!(e==="constructor"&&typeof r[e]=="function")&&e!="__proto__")return r[e]}function bV(r){return ad(r,ld(r))}function $V(r,e,t,s,n,i,a){var o=Lv(r,t),l=Lv(e,t),c=a.get(l);if(c){Pv(r,t,c);return}var u=i?i(o,l,t+"",r,e,a):void 0,d=u===void 0;if(d){var p=as(l),h=!p&&cu(l),m=!p&&!h&&Fy(l);u=l,p||h||m?as(o)?u=o:yV(o)?u=n3(o):h?(d=!1,u=I3(l,!0)):m?(d=!1,u=j3(l,!0)):u=[]:RF(l)||Ph(l)?(u=o,Ph(o)?u=bV(o):(!qs(o)||ky(o))&&(u=V3(l))):d=!1}d&&(a.set(l,u),n(u,l,s,i,a),a.delete(l)),Pv(r,t,u)}function Wy(r,e,t,s,n){r!==e&&Y3(e,function(i,a){if(n||(n=new Ws),qs(i))$V(r,e,a,t,Wy,s,n);else{var o=s?s(Lv(r,a),i,a+"",r,e,n):void 0;o===void 0&&(o=i),Pv(r,a,o)}},ld)}var K3=i3(function(r,e,t,s){Wy(r,e,t,s)});function SV(r,e,t,s){for(var n=r.length,i=n;i--&&e(r[i],i,r););return t?_v(r,0,i+1):_v(r,i+1,n)}function wV(r,e){return gm(r,e)}var xV=Js.isFinite;function CV(r){return typeof r=="number"&&xV(r)}function PV(r,e){var t={};return e=Z3(e),_V(r,function(s,n,i){dm(t,e(s,n,i),s)}),t}var X3=i3(function(r,e,t){Wy(r,e,t)});function LV(r,e,t,s){if(!qs(r))return r;e=jy(e,r);for(var n=-1,i=e.length,a=i-1,o=r;o!=null&&++n<i;){var l=ud(e[n]),c=t;if(l==="__proto__"||l==="constructor"||l==="prototype")return r;if(n!=a){var u=o[l];c=void 0,c===void 0&&(c=qs(u)?u:um(e[n+1])?[]:{})}Dy(o,l,c),o=o[l]}return r}function AV(r,e,t){return r==null?r:LV(r,e,t)}var Q3=M3(function(r,e,t){return r+(t?" ":"")+mm(e)});function Av(r,e){return r&&r.length?SV(r,Z3(e),!1):[]}const Gy=r=>PV(r,(e,t)=>{var s;return(s=t.split("/").pop())==null?void 0:s.split(".")[0]}),G3e=Object.freeze(Gy(Object.assign({"/src/monaco/language/gcode.tmLanguage.json":()=>Ye(()=>import("./gcode.tmLanguage-CxxTzjZ-.js"),[],import.meta.url).then(r=>r.default),"/src/monaco/language/klipper-config.tmLanguage.json":()=>Ye(()=>import("./klipper-config.tmLanguage-DHe00u4k.js"),[],import.meta.url).then(r=>r.default),"/src/monaco/language/log.tmLanguage.json":()=>Ye(()=>import("./log.tmLanguage-DH-qwE--.js"),[],import.meta.url).then(r=>r.default)}))),EV=Object.freeze(Gy(Object.assign({"/src/locales/af.yaml":()=>Ye(()=>import("./af-mps6ICIQ.js"),[],import.meta.url).then(r=>r.default),"/src/locales/ar.yaml":()=>Ye(()=>import("./ar-DLWXELLU.js"),[],import.meta.url).then(r=>r.default),"/src/locales/cs.yaml":()=>Ye(()=>import("./cs-DX6v0VI2.js"),[],import.meta.url).then(r=>r.default),"/src/locales/de.yaml":()=>Ye(()=>import("./de-wxpHuzeZ.js"),[],import.meta.url).then(r=>r.default),"/src/locales/en.yaml":()=>Ye(()=>Promise.resolve().then(()=>fR),void 0,import.meta.url).then(r=>r.default),"/src/locales/es.yaml":()=>Ye(()=>import("./es-SJydnxzH.js"),[],import.meta.url).then(r=>r.default),"/src/locales/fr.yaml":()=>Ye(()=>import("./fr-DoiaUWIQ.js"),[],import.meta.url).then(r=>r.default),"/src/locales/hu.yaml":()=>Ye(()=>import("./hu-DZHz7Kx7.js"),[],import.meta.url).then(r=>r.default),"/src/locales/it.yaml":()=>Ye(()=>import("./it-C-3NCLqC.js"),[],import.meta.url).then(r=>r.default),"/src/locales/ja.yaml":()=>Ye(()=>import("./ja-DwKdLJlg.js"),[],import.meta.url).then(r=>r.default),"/src/locales/ko.yaml":()=>Ye(()=>import("./ko-CVGOyHIb.js"),[],import.meta.url).then(r=>r.default),"/src/locales/nl.yaml":()=>Ye(()=>import("./nl-CotZl5xy.js"),[],import.meta.url).then(r=>r.default),"/src/locales/pl.yaml":()=>Ye(()=>import("./pl-zmuLZD6n.js"),[],import.meta.url).then(r=>r.default),"/src/locales/pt.yaml":()=>Ye(()=>import("./pt-CSzrLhTW.js"),[],import.meta.url).then(r=>r.default),"/src/locales/ru.yaml":()=>Ye(()=>import("./ru-D20pk4zT.js"),[],import.meta.url).then(r=>r.default),"/src/locales/sl.yaml":()=>Ye(()=>import("./sl-BDj-z85b.js"),[],import.meta.url).then(r=>r.default),"/src/locales/tr.yaml":()=>Ye(()=>import("./tr-DD5nV5yB.js"),[],import.meta.url).then(r=>r.default),"/src/locales/uk.yaml":()=>Ye(()=>import("./uk-D7fsDPbb.js"),[],import.meta.url).then(r=>r.default),"/src/locales/zh-CN.yaml":()=>Ye(()=>import("./zh-CN-VQ91wzBt.js"),[],import.meta.url).then(r=>r.default),"/src/locales/zh-TW.yaml":()=>Ye(()=>import("./zh-TW-CQJMEs7b.js"),[],import.meta.url).then(r=>r.default)}))),DS=Object.freeze(Gy(Object.assign({"/src/components/widgets/camera/services/DeviceCamera.vue":()=>Ye(()=>import("./DeviceCamera-BD1S1a_T.js"),[],import.meta.url),"/src/components/widgets/camera/services/HlsstreamCamera.vue":()=>Ye(()=>import("./HlsstreamCamera-BwaV2una.js"),[],import.meta.url),"/src/components/widgets/camera/services/IframeCamera.vue":()=>Ye(()=>import("./IframeCamera-DGUbOvGq.js"),[],import.meta.url),"/src/components/widgets/camera/services/IpstreamCamera.vue":()=>Ye(()=>import("./IpstreamCamera-C1K9O4EA.js"),[],import.meta.url),"/src/components/widgets/camera/services/MjpegstreamerAdaptiveCamera.vue":()=>Ye(()=>import("./MjpegstreamerAdaptiveCamera-oOaK14jH.js"),[],import.meta.url),"/src/components/widgets/camera/services/MjpegstreamerCamera.vue":()=>Ye(()=>import("./MjpegstreamerCamera-CXlqsO_0.js"),[],import.meta.url),"/src/components/widgets/camera/services/WebrtcCamerastreamerCamera.vue":()=>Ye(()=>import("./WebrtcCamerastreamerCamera-COt5QBCW.js"),[],import.meta.url),"/src/components/widgets/camera/services/WebrtcGo2RtcCamera.vue":()=>Ye(()=>import("./WebrtcGo2RtcCamera-DtI6qUm8.js"),[],import.meta.url),"/src/components/widgets/camera/services/WebrtcMediamtxCamera.vue":()=>Ye(()=>import("./WebrtcMediamtxCamera-G0N7e5mu.js"),[],import.meta.url)})));b.use(ve);const J3=()=>{const r=hR({countryCodeOnly:!0});return r&&NC.findIndex(e=>e.code===r)>=0?r:"en"},e4=J3(),st=new ve({locale:e4,fallbackLocale:"en",messages:{}});st.setLocaleMessage("en",e3);const X1=[],Ev=async r=>{if(X1.length>0&&st.locale===r)return r;if(X1.includes(r))return st.locale=r,r;try{const e=await EV[r]();return st.setLocaleMessage(r,e),X1.push(r),st.locale=r,r}catch{return st.locale}};Ev(e4);/*!
* vue-router v3.6.5
* (c) 2022 Evan You
* @license MIT
*/function js(r,e){for(var t in e)r[t]=e[t];return r}var OV=/[!'()*]/g,TV=function(r){return"%"+r.charCodeAt(0).toString(16)},kV=/%2C/g,bo=function(r){return encodeURIComponent(r).replace(OV,TV).replace(kV,",")};function Ov(r){try{return decodeURIComponent(r)}catch{}return r}function DV(r,e,t){e===void 0&&(e={});var s=t||MV,n;try{n=s(r||"")}catch{n={}}for(var i in e){var a=e[i];n[i]=Array.isArray(a)?a.map(MS):MS(a)}return n}var MS=function(r){return r==null||typeof r=="object"?r:String(r)};function MV(r){var e={};return r=r.trim().replace(/^(\?|#|&)/,""),r&&r.split("&").forEach(function(t){var s=t.replace(/\+/g," ").split("="),n=Ov(s.shift()),i=s.length>0?Ov(s.join("=")):null;e[n]===void 0?e[n]=i:Array.isArray(e[n])?e[n].push(i):e[n]=[e[n],i]}),e}function RV(r){var e=r?Object.keys(r).map(function(t){var s=r[t];if(s===void 0)return"";if(s===null)return bo(t);if(Array.isArray(s)){var n=[];return s.forEach(function(i){i!==void 0&&(i===null?n.push(bo(t)):n.push(bo(t)+"="+bo(i)))}),n.join("&")}return bo(t)+"="+bo(s)}).filter(function(t){return t.length>0}).join("&"):null;return e?"?"+e:""}var Eh=/\/?$/;function Oh(r,e,t,s){var n=s&&s.options.stringifyQuery,i=e.query||{};try{i=Tv(i)}catch{}var a={name:e.name||r&&r.name,meta:r&&r.meta||{},path:e.path||"/",hash:e.hash||"",query:i,params:e.params||{},fullPath:RS(e,n),matched:r?IV(r):[]};return t&&(a.redirectedFrom=RS(t,n)),Object.freeze(a)}function Tv(r){if(Array.isArray(r))return r.map(Tv);if(r&&typeof r=="object"){var e={};for(var t in r)e[t]=Tv(r[t]);return e}else return r}var Bi=Oh(null,{path:"/"});function IV(r){for(var e=[];r;)e.unshift(r),r=r.parent;return e}function RS(r,e){var t=r.path,s=r.query;s===void 0&&(s={});var n=r.hash;n===void 0&&(n="");var i=e||RV;return(t||"/")+i(s)+n}function t4(r,e,t){return e===Bi?r===e:e?r.path&&e.path?r.path.replace(Eh,"")===e.path.replace(Eh,"")&&(t||r.hash===e.hash&&Vp(r.query,e.query)):r.name&&e.name?r.name===e.name&&(t||r.hash===e.hash&&Vp(r.query,e.query)&&Vp(r.params,e.params)):!1:!1}function Vp(r,e){if(r===void 0&&(r={}),e===void 0&&(e={}),!r||!e)return r===e;var t=Object.keys(r).sort(),s=Object.keys(e).sort();return t.length!==s.length?!1:t.every(function(n,i){var a=r[n],o=s[i];if(o!==n)return!1;var l=e[n];return a==null||l==null?a===l:typeof a=="object"&&typeof l=="object"?Vp(a,l):String(a)===String(l)})}function FV(r,e){return r.path.replace(Eh,"/").indexOf(e.path.replace(Eh,"/"))===0&&(!e.hash||r.hash===e.hash)&&HV(r.query,e.query)}function HV(r,e){for(var t in e)if(!(t in r))return!1;return!0}function r4(r){for(var e=0;e<r.matched.length;e++){var t=r.matched[e];for(var s in t.instances){var n=t.instances[s],i=t.enteredCbs[s];if(!(!n||!i)){delete t.enteredCbs[s];for(var a=0;a<i.length;a++)n._isBeingDestroyed||i[a](n)}}}}var BV={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var s=t.props,n=t.children,i=t.parent,a=t.data;a.routerView=!0;for(var o=i.$createElement,l=s.name,c=i.$route,u=i._routerViewCache||(i._routerViewCache={}),d=0,p=!1;i&&i._routerRoot!==i;){var h=i.$vnode?i.$vnode.data:{};h.routerView&&d++,h.keepAlive&&i._directInactive&&i._inactive&&(p=!0),i=i.$parent}if(a.routerViewDepth=d,p){var m=u[l],g=m&&m.component;return g?(m.configProps&&IS(g,a,m.route,m.configProps),o(g,a,n)):o()}var v=c.matched[d],y=v&&v.components[l];if(!v||!y)return u[l]=null,o();u[l]={component:y},a.registerRouteInstance=function(x,S){var E=v.instances[l];(S&&E!==x||!S&&E===x)&&(v.instances[l]=S)},(a.hook||(a.hook={})).prepatch=function(x,S){v.instances[l]=S.componentInstance},a.hook.init=function(x){x.data.keepAlive&&x.componentInstance&&x.componentInstance!==v.instances[l]&&(v.instances[l]=x.componentInstance),r4(c)};var C=v.props&&v.props[l];return C&&(js(u[l],{route:c,configProps:C}),IS(y,a,c,C)),o(y,a,n)}};function IS(r,e,t,s){var n=e.props=jV(t,s);if(n){n=e.props=js({},n);var i=e.attrs=e.attrs||{};for(var a in n)(!r.props||!(a in r.props))&&(i[a]=n[a],delete n[a])}}function jV(r,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(r);case"boolean":return e?r.params:void 0}}function s4(r,e,t){var s=r.charAt(0);if(s==="/")return r;if(s==="?"||s==="#")return e+r;var n=e.split("/");(!t||!n[n.length-1])&&n.pop();for(var i=r.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var o=i[a];o===".."?n.pop():o!=="."&&n.push(o)}return n[0]!==""&&n.unshift(""),n.join("/")}function VV(r){var e="",t="",s=r.indexOf("#");s>=0&&(e=r.slice(s),r=r.slice(0,s));var n=r.indexOf("?");return n>=0&&(t=r.slice(n+1),r=r.slice(0,n)),{path:r,query:t,hash:e}}function bi(r){return r.replace(/\/(?:\s*\/)+/g,"/")}var Th=Array.isArray||function(r){return Object.prototype.toString.call(r)=="[object Array]"},xl=a4,NV=qy,zV=qV,UV=n4,WV=i4,GV=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function qy(r,e){for(var t=[],s=0,n=0,i="",a=e&&e.delimiter||"/",o;(o=GV.exec(r))!=null;){var l=o[0],c=o[1],u=o.index;if(i+=r.slice(n,u),n=u+l.length,c){i+=c[1];continue}var d=r[n],p=o[2],h=o[3],m=o[4],g=o[5],v=o[6],y=o[7];i&&(t.push(i),i="");var C=p!=null&&d!=null&&d!==p,x=v==="+"||v==="*",S=v==="?"||v==="*",E=o[2]||a,G=m||g;t.push({name:h||s++,prefix:p||"",delimiter:E,optional:S,repeat:x,partial:C,asterisk:!!y,pattern:G?KV(G):y?".*":"[^"+Np(E)+"]+?"})}return n<r.length&&(i+=r.substr(n)),i&&t.push(i),t}function qV(r,e){return n4(qy(r,e),e)}function ZV(r){return encodeURI(r).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function YV(r){return encodeURI(r).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function n4(r,e){for(var t=new Array(r.length),s=0;s<r.length;s++)typeof r[s]=="object"&&(t[s]=new RegExp("^(?:"+r[s].pattern+")$",Yy(e)));return function(n,i){for(var a="",o=n||{},l=i||{},c=l.pretty?ZV:encodeURIComponent,u=0;u<r.length;u++){var d=r[u];if(typeof d=="string"){a+=d;continue}var p=o[d.name],h;if(p==null)if(d.optional){d.partial&&(a+=d.prefix);continue}else throw new TypeError('Expected "'+d.name+'" to be defined');if(Th(p)){if(!d.repeat)throw new TypeError('Expected "'+d.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(p.length===0){if(d.optional)continue;throw new TypeError('Expected "'+d.name+'" to not be empty')}for(var m=0;m<p.length;m++){if(h=c(p[m]),!t[u].test(h))throw new TypeError('Expected all "'+d.name+'" to match "'+d.pattern+'", but received `'+JSON.stringify(h)+"`");a+=(m===0?d.prefix:d.delimiter)+h}continue}if(h=d.asterisk?YV(p):c(p),!t[u].test(h))throw new TypeError('Expected "'+d.name+'" to match "'+d.pattern+'", but received "'+h+'"');a+=d.prefix+h}return a}}function Np(r){return r.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function KV(r){return r.replace(/([=!:$\/()])/g,"\\$1")}function Zy(r,e){return r.keys=e,r}function Yy(r){return r&&r.sensitive?"":"i"}function XV(r,e){var t=r.source.match(/\((?!\?)/g);if(t)for(var s=0;s<t.length;s++)e.push({name:s,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return Zy(r,e)}function QV(r,e,t){for(var s=[],n=0;n<r.length;n++)s.push(a4(r[n],e,t).source);var i=new RegExp("(?:"+s.join("|")+")",Yy(t));return Zy(i,e)}function JV(r,e,t){return i4(qy(r,t),e,t)}function i4(r,e,t){Th(e)||(t=e||t,e=[]),t=t||{};for(var s=t.strict,n=t.end!==!1,i="",a=0;a<r.length;a++){var o=r[a];if(typeof o=="string")i+=Np(o);else{var l=Np(o.prefix),c="(?:"+o.pattern+")";e.push(o),o.repeat&&(c+="(?:"+l+c+")*"),o.optional?o.partial?c=l+"("+c+")?":c="(?:"+l+"("+c+"))?":c=l+"("+c+")",i+=c}}var u=Np(t.delimiter||"/"),d=i.slice(-u.length)===u;return s||(i=(d?i.slice(0,-u.length):i)+"(?:"+u+"(?=$))?"),n?i+="$":i+=s&&d?"":"(?="+u+"|$)",Zy(new RegExp("^"+i,Yy(t)),e)}function a4(r,e,t){return Th(e)||(t=e||t,e=[]),t=t||{},r instanceof RegExp?XV(r,e):Th(r)?QV(r,e,t):JV(r,e,t)}xl.parse=NV;xl.compile=zV;xl.tokensToFunction=UV;xl.tokensToRegExp=WV;var FS=Object.create(null);function zp(r,e,t){e=e||{};try{var s=FS[r]||(FS[r]=xl.compile(r));return typeof e.pathMatch=="string"&&(e[0]=e.pathMatch),s(e,{pretty:!0})}catch{return""}finally{delete e[0]}}function Ky(r,e,t,s){var n=typeof r=="string"?{path:r}:r;if(n._normalized)return n;if(n.name){n=js({},r);var i=n.params;return i&&typeof i=="object"&&(n.params=js({},i)),n}if(!n.path&&n.params&&e){n=js({},n),n._normalized=!0;var a=js(js({},e.params),n.params);if(e.name)n.name=e.name,n.params=a;else if(e.matched.length){var o=e.matched[e.matched.length-1].path;n.path=zp(o,a,"path "+e.path)}return n}var l=VV(n.path||""),c=e&&e.path||"/",u=l.path?s4(l.path,c,t||n.append):c,d=DV(l.query,n.query,s&&s.options.parseQuery),p=n.hash||l.hash;return p&&p.charAt(0)!=="#"&&(p="#"+p),{_normalized:!0,path:u,query:d,hash:p}}var eN=[String,Object],tN=[String,Array],HS=function(){},rN={name:"RouterLink",props:{to:{type:eN,required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:tN,default:"click"}},render:function(e){var t=this,s=this.$router,n=this.$route,i=s.resolve(this.to,n,this.append),a=i.location,o=i.route,l=i.href,c={},u=s.options.linkActiveClass,d=s.options.linkExactActiveClass,p=u??"router-link-active",h=d??"router-link-exact-active",m=this.activeClass==null?p:this.activeClass,g=this.exactActiveClass==null?h:this.exactActiveClass,v=o.redirectedFrom?Oh(null,Ky(o.redirectedFrom),null,s):o;c[g]=t4(n,v,this.exactPath),c[m]=this.exact||this.exactPath?c[g]:FV(n,v);var y=c[g]?this.ariaCurrentValue:null,C=function(k){BS(k)&&(t.replace?s.replace(a,HS):s.push(a,HS))},x={click:BS};Array.isArray(this.event)?this.event.forEach(function(k){x[k]=C}):x[this.event]=C;var S={class:c},E=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:l,route:o,navigate:C,isActive:c[m],isExactActive:c[g]});if(E){if(E.length===1)return E[0];if(E.length>1||!E.length)return E.length===0?e():e("span",{},E)}if(this.tag==="a")S.on=x,S.attrs={href:l,"aria-current":y};else{var G=o4(this.$slots.default);if(G){G.isStatic=!1;var K=G.data=js({},G.data);K.on=K.on||{};for(var le in K.on){var ue=K.on[le];le in x&&(K.on[le]=Array.isArray(ue)?ue:[ue])}for(var ie in x)ie in K.on?K.on[ie].push(x[ie]):K.on[ie]=C;var fe=G.data.attrs=js({},G.data.attrs);fe.href=l,fe["aria-current"]=y}else S.on=x}return e(this.tag,S,this.$slots.default)}};function BS(r){if(!(r.metaKey||r.altKey||r.ctrlKey||r.shiftKey)&&!r.defaultPrevented&&!(r.button!==void 0&&r.button!==0)){if(r.currentTarget&&r.currentTarget.getAttribute){var e=r.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return r.preventDefault&&r.preventDefault(),!0}}function o4(r){if(r){for(var e,t=0;t<r.length;t++)if(e=r[t],e.tag==="a"||e.children&&(e=o4(e.children)))return e}}var kh;function kv(r){if(!(kv.installed&&kh===r)){kv.installed=!0,kh=r;var e=function(n){return n!==void 0},t=function(n,i){var a=n.$options._parentVnode;e(a)&&e(a=a.data)&&e(a=a.registerRouteInstance)&&a(n,i)};r.mixin({beforeCreate:function(){e(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),r.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,t(this,this)},destroyed:function(){t(this)}}),Object.defineProperty(r.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(r.prototype,"$route",{get:function(){return this._routerRoot._route}}),r.component("RouterView",BV),r.component("RouterLink",rN);var s=r.config.optionMergeStrategies;s.beforeRouteEnter=s.beforeRouteLeave=s.beforeRouteUpdate=s.created}}var dd=typeof window<"u";function lp(r,e,t,s,n){var i=e||[],a=t||Object.create(null),o=s||Object.create(null);r.forEach(function(u){Dv(i,a,o,u,n)});for(var l=0,c=i.length;l<c;l++)i[l]==="*"&&(i.push(i.splice(l,1)[0]),c--,l--);return{pathList:i,pathMap:a,nameMap:o}}function Dv(r,e,t,s,n,i){var a=s.path,o=s.name,l=s.pathToRegexpOptions||{},c=nN(a,n,l.strict);typeof s.caseSensitive=="boolean"&&(l.sensitive=s.caseSensitive);var u={path:c,regex:sN(c,l),components:s.components||{default:s.component},alias:s.alias?typeof s.alias=="string"?[s.alias]:s.alias:[],instances:{},enteredCbs:{},name:o,parent:n,matchAs:i,redirect:s.redirect,beforeEnter:s.beforeEnter,meta:s.meta||{},props:s.props==null?{}:s.components?s.props:{default:s.props}};if(s.children&&s.children.forEach(function(g){var v=i?bi(i+"/"+g.path):void 0;Dv(r,e,t,g,u,v)}),e[u.path]||(r.push(u.path),e[u.path]=u),s.alias!==void 0)for(var d=Array.isArray(s.alias)?s.alias:[s.alias],p=0;p<d.length;++p){var h=d[p],m={path:h,children:s.children};Dv(r,e,t,m,n,u.path||"/")}o&&(t[o]||(t[o]=u))}function sN(r,e){var t=xl(r,[],e);return t}function nN(r,e,t){return t||(r=r.replace(/\/$/,"")),r[0]==="/"||e==null?r:bi(e.path+"/"+r)}function iN(r,e){var t=lp(r),s=t.pathList,n=t.pathMap,i=t.nameMap;function a(h){lp(h,s,n,i)}function o(h,m){var g=typeof h!="object"?i[h]:void 0;lp([m||h],s,n,i,g),g&&g.alias.length&&lp(g.alias.map(function(v){return{path:v,children:[m]}}),s,n,i,g)}function l(){return s.map(function(h){return n[h]})}function c(h,m,g){var v=Ky(h,m,!1,e),y=v.name;if(y){var C=i[y];if(!C)return p(null,v);var x=C.regex.keys.filter(function(le){return!le.optional}).map(function(le){return le.name});if(typeof v.params!="object"&&(v.params={}),m&&typeof m.params=="object")for(var S in m.params)!(S in v.params)&&x.indexOf(S)>-1&&(v.params[S]=m.params[S]);return v.path=zp(C.path,v.params),p(C,v,g)}else if(v.path){v.params={};for(var E=0;E<s.length;E++){var G=s[E],K=n[G];if(aN(K.regex,v.path,v.params))return p(K,v,g)}}return p(null,v)}function u(h,m){var g=h.redirect,v=typeof g=="function"?g(Oh(h,m,null,e)):g;if(typeof v=="string"&&(v={path:v}),!v||typeof v!="object")return p(null,m);var y=v,C=y.name,x=y.path,S=m.query,E=m.hash,G=m.params;if(S=y.hasOwnProperty("query")?y.query:S,E=y.hasOwnProperty("hash")?y.hash:E,G=y.hasOwnProperty("params")?y.params:G,C)return i[C],c({_normalized:!0,name:C,query:S,hash:E,params:G},void 0,m);if(x){var K=oN(x,h),le=zp(K,G);return c({_normalized:!0,path:le,query:S,hash:E},void 0,m)}else return p(null,m)}function d(h,m,g){var v=zp(g,m.params),y=c({_normalized:!0,path:v});if(y){var C=y.matched,x=C[C.length-1];return m.params=y.params,p(x,m)}return p(null,m)}function p(h,m,g){return h&&h.redirect?u(h,g||m):h&&h.matchAs?d(h,m,h.matchAs):Oh(h,m,g,e)}return{match:c,addRoute:o,getRoutes:l,addRoutes:a}}function aN(r,e,t){var s=e.match(r);if(s){if(!t)return!0}else return!1;for(var n=1,i=s.length;n<i;++n){var a=r.keys[n-1];a&&(t[a.name||"pathMatch"]=typeof s[n]=="string"?Ov(s[n]):s[n])}return!0}function oN(r,e){return s4(r,e.parent?e.parent.path:"/",!0)}var lN=dd&&window.performance&&window.performance.now?window.performance:Date;function l4(){return lN.now().toFixed(3)}var c4=l4();function vm(){return c4}function u4(r){return c4=r}var d4=Object.create(null);function p4(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var r=window.location.protocol+"//"+window.location.host,e=window.location.href.replace(r,""),t=js({},window.history.state);return t.key=vm(),window.history.replaceState(t,"",e),window.addEventListener("popstate",jS),function(){window.removeEventListener("popstate",jS)}}function $i(r,e,t,s){if(r.app){var n=r.options.scrollBehavior;n&&r.app.$nextTick(function(){var i=cN(),a=n.call(r,e,t,s?i:null);a&&(typeof a.then=="function"?a.then(function(o){zS(o,i)}).catch(function(o){}):zS(a,i))})}}function h4(){var r=vm();r&&(d4[r]={x:window.pageXOffset,y:window.pageYOffset})}function jS(r){h4(),r.state&&r.state.key&&u4(r.state.key)}function cN(){var r=vm();if(r)return d4[r]}function uN(r,e){var t=document.documentElement,s=t.getBoundingClientRect(),n=r.getBoundingClientRect();return{x:n.left-s.left-e.x,y:n.top-s.top-e.y}}function VS(r){return Go(r.x)||Go(r.y)}function NS(r){return{x:Go(r.x)?r.x:window.pageXOffset,y:Go(r.y)?r.y:window.pageYOffset}}function dN(r){return{x:Go(r.x)?r.x:0,y:Go(r.y)?r.y:0}}function Go(r){return typeof r=="number"}var pN=/^#\d/;function zS(r,e){var t=typeof r=="object";if(t&&typeof r.selector=="string"){var s=pN.test(r.selector)?document.getElementById(r.selector.slice(1)):document.querySelector(r.selector);if(s){var n=r.offset&&typeof r.offset=="object"?r.offset:{};n=dN(n),e=uN(s,n)}else VS(r)&&(e=NS(r))}else t&&VS(r)&&(e=NS(r));e&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:e.x,top:e.y,behavior:r.behavior}):window.scrollTo(e.x,e.y))}var Si=dd&&function(){var r=window.navigator.userAgent;return(r.indexOf("Android 2.")!==-1||r.indexOf("Android 4.0")!==-1)&&r.indexOf("Mobile Safari")!==-1&&r.indexOf("Chrome")===-1&&r.indexOf("Windows Phone")===-1?!1:window.history&&typeof window.history.pushState=="function"}();function Dh(r,e){h4();var t=window.history;try{if(e){var s=js({},t.state);s.key=vm(),t.replaceState(s,"",r)}else t.pushState({key:u4(l4())},"",r)}catch{window.location[e?"replace":"assign"](r)}}function Mv(r){Dh(r,!0)}var Ka={redirected:2,aborted:4,cancelled:8,duplicated:16};function hN(r,e){return _m(r,e,Ka.redirected,'Redirected when going from "'+r.fullPath+'" to "'+vN(e)+'" via a navigation guard.')}function fN(r,e){var t=_m(r,e,Ka.duplicated,'Avoided redundant navigation to current location: "'+r.fullPath+'".');return t.name="NavigationDuplicated",t}function US(r,e){return _m(r,e,Ka.cancelled,'Navigation cancelled from "'+r.fullPath+'" to "'+e.fullPath+'" with a new navigation.')}function mN(r,e){return _m(r,e,Ka.aborted,'Navigation aborted from "'+r.fullPath+'" to "'+e.fullPath+'" via a navigation guard.')}function _m(r,e,t,s){var n=new Error(s);return n._isRouter=!0,n.from=r,n.to=e,n.type=t,n}var gN=["params","query","hash"];function vN(r){if(typeof r=="string")return r;if("path"in r)return r.path;var e={};return gN.forEach(function(t){t in r&&(e[t]=r[t])}),JSON.stringify(e,null,2)}function Mh(r){return Object.prototype.toString.call(r).indexOf("Error")>-1}function ym(r,e){return Mh(r)&&r._isRouter&&(e==null||r.type===e)}function WS(r,e,t){var s=function(n){n>=r.length?t():r[n]?e(r[n],function(){s(n+1)}):s(n+1)};s(0)}function _N(r){return function(e,t,s){var n=!1,i=0,a=null;f4(r,function(o,l,c,u){if(typeof o=="function"&&o.cid===void 0){n=!0,i++;var d=GS(function(g){bN(g)&&(g=g.default),o.resolved=typeof g=="function"?g:kh.extend(g),c.components[u]=g,i--,i<=0&&s()}),p=GS(function(g){var v="Failed to resolve async component "+u+": "+g;a||(a=Mh(g)?g:new Error(v),s(a))}),h;try{h=o(d,p)}catch(g){p(g)}if(h)if(typeof h.then=="function")h.then(d,p);else{var m=h.component;m&&typeof m.then=="function"&&m.then(d,p)}}}),n||s()}}function f4(r,e){return m4(r.map(function(t){return Object.keys(t.components).map(function(s){return e(t.components[s],t.instances[s],t,s)})}))}function m4(r){return Array.prototype.concat.apply([],r)}var yN=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function bN(r){return r.__esModule||yN&&r[Symbol.toStringTag]==="Module"}function GS(r){var e=!1;return function(){for(var t=[],s=arguments.length;s--;)t[s]=arguments[s];if(!e)return e=!0,r.apply(this,t)}}var en=function(e,t){this.router=e,this.base=$N(t),this.current=Bi,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};en.prototype.listen=function(e){this.cb=e};en.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))};en.prototype.onError=function(e){this.errorCbs.push(e)};en.prototype.transitionTo=function(e,t,s){var n=this,i;try{i=this.router.match(e,this.current)}catch(o){throw this.errorCbs.forEach(function(l){l(o)}),o}var a=this.current;this.confirmTransition(i,function(){n.updateRoute(i),t&&t(i),n.ensureURL(),n.router.afterHooks.forEach(function(o){o&&o(i,a)}),n.ready||(n.ready=!0,n.readyCbs.forEach(function(o){o(i)}))},function(o){s&&s(o),o&&!n.ready&&(!ym(o,Ka.redirected)||a!==Bi)&&(n.ready=!0,n.readyErrorCbs.forEach(function(l){l(o)}))})};en.prototype.confirmTransition=function(e,t,s){var n=this,i=this.current;this.pending=e;var a=function(g){!ym(g)&&Mh(g)&&(n.errorCbs.length?n.errorCbs.forEach(function(v){v(g)}):console.error(g)),s&&s(g)},o=e.matched.length-1,l=i.matched.length-1;if(t4(e,i)&&o===l&&e.matched[o]===i.matched[l])return this.ensureURL(),e.hash&&$i(this.router,i,e,!1),a(fN(i,e));var c=SN(this.current.matched,e.matched),u=c.updated,d=c.deactivated,p=c.activated,h=[].concat(xN(d),this.router.beforeHooks,CN(u),p.map(function(g){return g.beforeEnter}),_N(p)),m=function(g,v){if(n.pending!==e)return a(US(i,e));try{g(e,i,function(y){y===!1?(n.ensureURL(!0),a(mN(i,e))):Mh(y)?(n.ensureURL(!0),a(y)):typeof y=="string"||typeof y=="object"&&(typeof y.path=="string"||typeof y.name=="string")?(a(hN(i,e)),typeof y=="object"&&y.replace?n.replace(y):n.push(y)):v(y)})}catch(y){a(y)}};WS(h,m,function(){var g=PN(p),v=g.concat(n.router.resolveHooks);WS(v,m,function(){if(n.pending!==e)return a(US(i,e));n.pending=null,t(e),n.router.app&&n.router.app.$nextTick(function(){r4(e)})})})};en.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)};en.prototype.setupListeners=function(){};en.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Bi,this.pending=null};function $N(r){if(!r)if(dd){var e=document.querySelector("base");r=e&&e.getAttribute("href")||"/",r=r.replace(/^https?:\/\/[^\/]+/,"")}else r="/";return r.charAt(0)!=="/"&&(r="/"+r),r.replace(/\/$/,"")}function SN(r,e){var t,s=Math.max(r.length,e.length);for(t=0;t<s&&r[t]===e[t];t++);return{updated:e.slice(0,t),activated:e.slice(t),deactivated:r.slice(t)}}function Xy(r,e,t,s){var n=f4(r,function(i,a,o,l){var c=wN(i,e);if(c)return Array.isArray(c)?c.map(function(u){return t(u,a,o,l)}):t(c,a,o,l)});return m4(s?n.reverse():n)}function wN(r,e){return typeof r!="function"&&(r=kh.extend(r)),r.options[e]}function xN(r){return Xy(r,"beforeRouteLeave",g4,!0)}function CN(r){return Xy(r,"beforeRouteUpdate",g4)}function g4(r,e){if(e)return function(){return r.apply(e,arguments)}}function PN(r){return Xy(r,"beforeRouteEnter",function(e,t,s,n){return LN(e,s,n)})}function LN(r,e,t){return function(n,i,a){return r(n,i,function(o){typeof o=="function"&&(e.enteredCbs[t]||(e.enteredCbs[t]=[]),e.enteredCbs[t].push(o)),a(o)})}}var v4=function(r){function e(t,s){r.call(this,t,s),this._startLocation=Pc(this.base)}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var s=this;if(!(this.listeners.length>0)){var n=this.router,i=n.options.scrollBehavior,a=Si&&i;a&&this.listeners.push(p4());var o=function(){var l=s.current,c=Pc(s.base);s.current===Bi&&c===s._startLocation||s.transitionTo(c,function(u){a&&$i(n,u,l,!0)})};window.addEventListener("popstate",o),this.listeners.push(function(){window.removeEventListener("popstate",o)})}},e.prototype.go=function(s){window.history.go(s)},e.prototype.push=function(s,n,i){var a=this,o=this,l=o.current;this.transitionTo(s,function(c){Dh(bi(a.base+c.fullPath)),$i(a.router,c,l,!1),n&&n(c)},i)},e.prototype.replace=function(s,n,i){var a=this,o=this,l=o.current;this.transitionTo(s,function(c){Mv(bi(a.base+c.fullPath)),$i(a.router,c,l,!1),n&&n(c)},i)},e.prototype.ensureURL=function(s){if(Pc(this.base)!==this.current.fullPath){var n=bi(this.base+this.current.fullPath);s?Dh(n):Mv(n)}},e.prototype.getCurrentLocation=function(){return Pc(this.base)},e}(en);function Pc(r){var e=window.location.pathname,t=e.toLowerCase(),s=r.toLowerCase();return r&&(t===s||t.indexOf(bi(s+"/"))===0)&&(e=e.slice(r.length)),(e||"/")+window.location.search+window.location.hash}var _4=function(r){function e(t,s,n){r.call(this,t,s),!(n&&AN(this.base))&&qS()}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var s=this;if(!(this.listeners.length>0)){var n=this.router,i=n.options.scrollBehavior,a=Si&&i;a&&this.listeners.push(p4());var o=function(){var c=s.current;qS()&&s.transitionTo(Up(),function(u){a&&$i(s.router,u,c,!0),Si||Wp(u.fullPath)})},l=Si?"popstate":"hashchange";window.addEventListener(l,o),this.listeners.push(function(){window.removeEventListener(l,o)})}},e.prototype.push=function(s,n,i){var a=this,o=this,l=o.current;this.transitionTo(s,function(c){ZS(c.fullPath),$i(a.router,c,l,!1),n&&n(c)},i)},e.prototype.replace=function(s,n,i){var a=this,o=this,l=o.current;this.transitionTo(s,function(c){Wp(c.fullPath),$i(a.router,c,l,!1),n&&n(c)},i)},e.prototype.go=function(s){window.history.go(s)},e.prototype.ensureURL=function(s){var n=this.current.fullPath;Up()!==n&&(s?ZS(n):Wp(n))},e.prototype.getCurrentLocation=function(){return Up()},e}(en);function AN(r){var e=Pc(r);if(!/^\/#/.test(e))return window.location.replace(bi(r+"/#"+e)),!0}function qS(){var r=Up();return r.charAt(0)==="/"?!0:(Wp("/"+r),!1)}function Up(){var r=window.location.href,e=r.indexOf("#");return e<0?"":(r=r.slice(e+1),r)}function Rv(r){var e=window.location.href,t=e.indexOf("#"),s=t>=0?e.slice(0,t):e;return s+"#"+r}function ZS(r){Si?Dh(Rv(r)):window.location.hash=r}function Wp(r){Si?Mv(Rv(r)):window.location.replace(Rv(r))}var EN=function(r){function e(t,s){r.call(this,t,s),this.stack=[],this.index=-1}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.push=function(s,n,i){var a=this;this.transitionTo(s,function(o){a.stack=a.stack.slice(0,a.index+1).concat(o),a.index++,n&&n(o)},i)},e.prototype.replace=function(s,n,i){var a=this;this.transitionTo(s,function(o){a.stack=a.stack.slice(0,a.index).concat(o),n&&n(o)},i)},e.prototype.go=function(s){var n=this,i=this.index+s;if(!(i<0||i>=this.stack.length)){var a=this.stack[i];this.confirmTransition(a,function(){var o=n.current;n.index=i,n.updateRoute(a),n.router.afterHooks.forEach(function(l){l&&l(a,o)})},function(o){ym(o,Ka.duplicated)&&(n.index=i)})}},e.prototype.getCurrentLocation=function(){var s=this.stack[this.stack.length-1];return s?s.fullPath:"/"},e.prototype.ensureURL=function(){},e}(en),yt=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=iN(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback=t==="history"&&!Si&&e.fallback!==!1,this.fallback&&(t="hash"),dd||(t="abstract"),this.mode=t,t){case"history":this.history=new v4(this,e.base);break;case"hash":this.history=new _4(this,e.base,this.fallback);break;case"abstract":this.history=new EN(this,e.base);break}},y4={currentRoute:{configurable:!0}};yt.prototype.match=function(e,t,s){return this.matcher.match(e,t,s)};y4.currentRoute.get=function(){return this.history&&this.history.current};yt.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var a=t.apps.indexOf(e);a>-1&&t.apps.splice(a,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()}),!this.app){this.app=e;var s=this.history;if(s instanceof v4||s instanceof _4){var n=function(a){var o=s.current,l=t.options.scrollBehavior,c=Si&&l;c&&"fullPath"in a&&$i(t,a,o,!1)},i=function(a){s.setupListeners(),n(a)};s.transitionTo(s.getCurrentLocation(),i,i)}s.listen(function(a){t.apps.forEach(function(o){o._route=a})})}};yt.prototype.beforeEach=function(e){return Qy(this.beforeHooks,e)};yt.prototype.beforeResolve=function(e){return Qy(this.resolveHooks,e)};yt.prototype.afterEach=function(e){return Qy(this.afterHooks,e)};yt.prototype.onReady=function(e,t){this.history.onReady(e,t)};yt.prototype.onError=function(e){this.history.onError(e)};yt.prototype.push=function(e,t,s){var n=this;if(!t&&!s&&typeof Promise<"u")return new Promise(function(i,a){n.history.push(e,i,a)});this.history.push(e,t,s)};yt.prototype.replace=function(e,t,s){var n=this;if(!t&&!s&&typeof Promise<"u")return new Promise(function(i,a){n.history.replace(e,i,a)});this.history.replace(e,t,s)};yt.prototype.go=function(e){this.history.go(e)};yt.prototype.back=function(){this.go(-1)};yt.prototype.forward=function(){this.go(1)};yt.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map(function(s){return Object.keys(s.components).map(function(n){return s.components[n]})})):[]};yt.prototype.resolve=function(e,t,s){t=t||this.history.current;var n=Ky(e,t,s,this),i=this.match(n,t),a=i.redirectedFrom||i.fullPath,o=this.history.base,l=ON(o,a,this.mode);return{location:n,route:i,href:l,normalizedTo:n,resolved:i}};yt.prototype.getRoutes=function(){return this.matcher.getRoutes()};yt.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==Bi&&this.history.transitionTo(this.history.getCurrentLocation())};yt.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Bi&&this.history.transitionTo(this.history.getCurrentLocation())};Object.defineProperties(yt.prototype,y4);var b4=yt;function Qy(r,e){return r.push(e),function(){var t=r.indexOf(e);t>-1&&r.splice(t,1)}}function ON(r,e,t){var s=t==="hash"?"#"+e:e;return r?bi(r+"/"+s):s}yt.install=kv;yt.version="3.6.5";yt.isNavigationFailure=ym;yt.NavigationFailureType=Ka;yt.START_LOCATION=Bi;dd&&window.Vue&&window.Vue.use(yt);var TN=typeof Reflect<"u"&&typeof Reflect.getMetadata<"u";function $4(r,e,t){if(TN&&!Array.isArray(r)&&typeof r!="function"&&!r.hasOwnProperty("type")&&typeof r.type>"u"){var s=Reflect.getMetadata("design:type",e,t);s!==Object&&(r.type=s)}}function $(r){return r===void 0&&(r={}),function(e,t){$4(r,e,t),sd(function(s,n){(s.props||(s.props={}))[n]=r})(e,t)}}function ji(r,e){return e===void 0&&(e={}),function(t,s){$4(e,t,s),sd(function(n,i){(n.props||(n.props={}))[r]=e,(n.computed||(n.computed={}))[i]={get:function(){return this[r]},set:function(a){this.$emit("update:"+r,a)}}})(t,s)}}function ke(r){return sd(function(e,t){e.computed=e.computed||{},e.computed[t]={cache:!1,get:function(){return this.$refs[r||t]}}})}function He(r){r===void 0&&(r={});var e="value";return sd(function(t,s){(t.props||(t.props={}))[e]=r,(t.computed||(t.computed={}))[s]={get:function(){return this[e]},set:function(n){this.$emit("input",n)}}})}function Ae(r,e){e===void 0&&(e={});var t=e.deep,s=t===void 0?!1:t,n=e.immediate,i=n===void 0?!1:n;return sd(function(a,o){typeof a.watch!="object"&&(a.watch=Object.create(null));var l=a.watch;typeof l[r]=="object"&&!Array.isArray(l[r])?l[r]=[l[r]]:typeof l[r]>"u"&&(l[r]=[]),l[r].push({handler:o,deep:s,immediate:i})})}/**!
* Sortable 1.15.2
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function YS(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,s)}return t}function $n(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?YS(Object(t),!0).forEach(function(s){kN(r,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):YS(Object(t)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(t,s))})}return r}function Gp(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Gp=function(e){return typeof e}:Gp=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gp(r)}function kN(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function jn(){return jn=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},jn.apply(this,arguments)}function DN(r,e){if(r==null)return{};var t={},s=Object.keys(r),n,i;for(i=0;i<s.length;i++)n=s[i],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}function MN(r,e){if(r==null)return{};var t=DN(r,e),s,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)s=i[n],!(e.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(r,s)&&(t[s]=r[s])}return t}var RN="1.15.2";function Rn(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var Xn=Rn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),pd=Rn(/Edge/i),KS=Rn(/firefox/i),Bc=Rn(/safari/i)&&!Rn(/chrome/i)&&!Rn(/android/i),S4=Rn(/iP(ad|od|hone)/i),w4=Rn(/chrome/i)&&Rn(/android/i),x4={capture:!1,passive:!1};function nt(r,e,t){r.addEventListener(e,t,!Xn&&x4)}function Je(r,e,t){r.removeEventListener(e,t,!Xn&&x4)}function Rh(r,e){if(e){if(e[0]===">"&&(e=e.substring(1)),r)try{if(r.matches)return r.matches(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e)}catch{return!1}return!1}}function IN(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function Hs(r,e,t,s){if(r){t=t||document;do{if(e!=null&&(e[0]===">"?r.parentNode===t&&Rh(r,e):Rh(r,e))||s&&r===t)return r;if(r===t)break}while(r=IN(r))}return null}var XS=/\s+/g;function Kr(r,e,t){if(r&&e)if(r.classList)r.classList[t?"add":"remove"](e);else{var s=(" "+r.className+" ").replace(XS," ").replace(" "+e+" "," ");r.className=(s+(t?" "+e:"")).replace(XS," ")}}function De(r,e,t){var s=r&&r.style;if(s){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(t=r.currentStyle),e===void 0?t:t[e];!(e in s)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),s[e]=t+(typeof t=="string"?"":"px")}}function jo(r,e){var t="";if(typeof r=="string")t=r;else do{var s=De(r,"transform");s&&s!=="none"&&(t=s+" "+t)}while(!e&&(r=r.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(t)}function C4(r,e,t){if(r){var s=r.getElementsByTagName(e),n=0,i=s.length;if(t)for(;n<i;n++)t(s[n],n);return s}return[]}function gn(){var r=document.scrollingElement;return r||document.documentElement}function Nt(r,e,t,s,n){if(!(!r.getBoundingClientRect&&r!==window)){var i,a,o,l,c,u,d;if(r!==window&&r.parentNode&&r!==gn()?(i=r.getBoundingClientRect(),a=i.top,o=i.left,l=i.bottom,c=i.right,u=i.height,d=i.width):(a=0,o=0,l=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||t)&&r!==window&&(n=n||r.parentNode,!Xn))do if(n&&n.getBoundingClientRect&&(De(n,"transform")!=="none"||t&&De(n,"position")!=="static")){var p=n.getBoundingClientRect();a-=p.top+parseInt(De(n,"border-top-width")),o-=p.left+parseInt(De(n,"border-left-width")),l=a+i.height,c=o+i.width;break}while(n=n.parentNode);if(s&&r!==window){var h=jo(n||r),m=h&&h.a,g=h&&h.d;h&&(a/=g,o/=m,d/=m,u/=g,l=a+u,c=o+d)}return{top:a,left:o,bottom:l,right:c,width:d,height:u}}}function QS(r,e,t){for(var s=vi(r,!0),n=Nt(r)[e];s;){var i=Nt(s)[t],a=void 0;if(a=n>=i,!a)return s;if(s===gn())break;s=vi(s,!1)}return!1}function qo(r,e,t,s){for(var n=0,i=0,a=r.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==Me.ghost&&(s||a[i]!==Me.dragged)&&Hs(a[i],t.draggable,r,!1)){if(n===e)return a[i];n++}i++}return null}function Jy(r,e){for(var t=r.lastElementChild;t&&(t===Me.ghost||De(t,"display")==="none"||e&&!Rh(t,e));)t=t.previousElementSibling;return t||null}function _s(r,e){var t=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==Me.clone&&(!e||Rh(r,e))&&t++;return t}function JS(r){var e=0,t=0,s=gn();if(r)do{var n=jo(r),i=n.a,a=n.d;e+=r.scrollLeft*i,t+=r.scrollTop*a}while(r!==s&&(r=r.parentNode));return[e,t]}function FN(r,e){for(var t in r)if(r.hasOwnProperty(t)){for(var s in e)if(e.hasOwnProperty(s)&&e[s]===r[t][s])return Number(t)}return-1}function vi(r,e){if(!r||!r.getBoundingClientRect)return gn();var t=r,s=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var n=De(t);if(t.clientWidth<t.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return gn();if(s||e)return t;s=!0}}while(t=t.parentNode);return gn()}function HN(r,e){if(r&&e)for(var t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function Q1(r,e){return Math.round(r.top)===Math.round(e.top)&&Math.round(r.left)===Math.round(e.left)&&Math.round(r.height)===Math.round(e.height)&&Math.round(r.width)===Math.round(e.width)}var jc;function P4(r,e){return function(){if(!jc){var t=arguments,s=this;t.length===1?r.call(s,t[0]):r.apply(s,t),jc=setTimeout(function(){jc=void 0},e)}}}function BN(){clearTimeout(jc),jc=void 0}function L4(r,e,t){r.scrollLeft+=e,r.scrollTop+=t}function A4(r){var e=window.Polymer,t=window.jQuery||window.Zepto;return e&&e.dom?e.dom(r).cloneNode(!0):t?t(r).clone(!0)[0]:r.cloneNode(!0)}function E4(r,e,t){var s={};return Array.from(r.children).forEach(function(n){var i,a,o,l;if(!(!Hs(n,e.draggable,r,!1)||n.animated||n===t)){var c=Nt(n);s.left=Math.min((i=s.left)!==null&&i!==void 0?i:1/0,c.left),s.top=Math.min((a=s.top)!==null&&a!==void 0?a:1/0,c.top),s.right=Math.max((o=s.right)!==null&&o!==void 0?o:-1/0,c.right),s.bottom=Math.max((l=s.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}var rs="Sortable"+new Date().getTime();function jN(){var r=[],e;return{captureAnimationState:function(){if(r=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(n){if(!(De(n,"display")==="none"||n===Me.ghost)){r.push({target:n,rect:Nt(n)});var i=$n({},r[r.length-1].rect);if(n.thisAnimationDuration){var a=jo(n,!0);a&&(i.top-=a.f,i.left-=a.e)}n.fromRect=i}})}},addAnimationState:function(s){r.push(s)},removeAnimationState:function(s){r.splice(FN(r,{target:s}),1)},animateAll:function(s){var n=this;if(!this.options.animation){clearTimeout(e),typeof s=="function"&&s();return}var i=!1,a=0;r.forEach(function(o){var l=0,c=o.target,u=c.fromRect,d=Nt(c),p=c.prevFromRect,h=c.prevToRect,m=o.rect,g=jo(c,!0);g&&(d.top-=g.f,d.left-=g.e),c.toRect=d,c.thisAnimationDuration&&Q1(p,d)&&!Q1(u,d)&&(m.top-d.top)/(m.left-d.left)===(u.top-d.top)/(u.left-d.left)&&(l=NN(m,p,h,n.options)),Q1(d,u)||(c.prevFromRect=u,c.prevToRect=d,l||(l=n.options.animation),n.animate(c,m,d,l)),l&&(i=!0,a=Math.max(a,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(e),i?e=setTimeout(function(){typeof s=="function"&&s()},a):typeof s=="function"&&s(),r=[]},animate:function(s,n,i,a){if(a){De(s,"transition",""),De(s,"transform","");var o=jo(this.el),l=o&&o.a,c=o&&o.d,u=(n.left-i.left)/(l||1),d=(n.top-i.top)/(c||1);s.animatingX=!!u,s.animatingY=!!d,De(s,"transform","translate3d("+u+"px,"+d+"px,0)"),this.forRepaintDummy=VN(s),De(s,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),De(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){De(s,"transition",""),De(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},a)}}}}function VN(r){return r.offsetWidth}function NN(r,e,t,s){return Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))/Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))*s.animation}var $o=[],J1={initializeByDefault:!0},hd={mount:function(e){for(var t in J1)J1.hasOwnProperty(t)&&!(t in e)&&(e[t]=J1[t]);$o.forEach(function(s){if(s.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),$o.push(e)},pluginEvent:function(e,t,s){var n=this;this.eventCanceled=!1,s.cancel=function(){n.eventCanceled=!0};var i=e+"Global";$o.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][i]&&t[a.pluginName][i]($n({sortable:t},s)),t.options[a.pluginName]&&t[a.pluginName][e]&&t[a.pluginName][e]($n({sortable:t},s)))})},initializePlugins:function(e,t,s,n){$o.forEach(function(o){var l=o.pluginName;if(!(!e.options[l]&&!o.initializeByDefault)){var c=new o(e,t,e.options);c.sortable=e,c.options=e.options,e[l]=c,jn(s,c.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,t){var s={};return $o.forEach(function(n){typeof n.eventProperties=="function"&&jn(s,n.eventProperties.call(t[n.pluginName],e))}),s},modifyOption:function(e,t,s){var n;return $o.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]=="function"&&(n=i.optionListeners[t].call(e[i.pluginName],s))}),n}};function zN(r){var e=r.sortable,t=r.rootEl,s=r.name,n=r.targetEl,i=r.cloneEl,a=r.toEl,o=r.fromEl,l=r.oldIndex,c=r.newIndex,u=r.oldDraggableIndex,d=r.newDraggableIndex,p=r.originalEvent,h=r.putSortable,m=r.extraEventProperties;if(e=e||t&&t[rs],!!e){var g,v=e.options,y="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!Xn&&!pd?g=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(g=document.createEvent("Event"),g.initEvent(s,!0,!0)),g.to=a||t,g.from=o||t,g.item=n||t,g.clone=i,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=u,g.newDraggableIndex=d,g.originalEvent=p,g.pullMode=h?h.lastPutMode:void 0;var C=$n($n({},m),hd.getEventProperties(s,e));for(var x in C)g[x]=C[x];t&&t.dispatchEvent(g),v[y]&&v[y].call(e,g)}}var UN=["evt"],Tr=function(e,t){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=s.evt,i=MN(s,UN);hd.pluginEvent.bind(Me)(e,t,$n({dragEl:ce,parentEl:Ot,ghostEl:je,rootEl:bt,nextEl:sa,lastDownEl:qp,cloneEl:xt,cloneHidden:hi,dragStarted:Lc,putSortable:sr,activeSortable:Me.active,originalEvent:n,oldIndex:Mo,oldDraggableIndex:Vc,newIndex:Jr,newDraggableIndex:di,hideGhostForTarget:D4,unhideGhostForTarget:M4,cloneNowHidden:function(){hi=!0},cloneNowShown:function(){hi=!1},dispatchSortableEvent:function(o){$r({sortable:t,name:o,originalEvent:n})}},i))};function $r(r){zN($n({putSortable:sr,cloneEl:xt,targetEl:ce,rootEl:bt,oldIndex:Mo,oldDraggableIndex:Vc,newIndex:Jr,newDraggableIndex:di},r))}var ce,Ot,je,bt,sa,qp,xt,hi,Mo,Jr,Vc,di,cp,sr,Eo=!1,Ih=!1,Fh=[],Ji,Ds,eg,tg,ew,tw,Lc,So,Nc,zc=!1,up=!1,Zp,hr,rg=[],Iv=!1,Hh=[],bm=typeof document<"u",dp=S4,rw=pd||Xn?"cssFloat":"float",WN=bm&&!w4&&!S4&&"draggable"in document.createElement("div"),O4=function(){if(bm){if(Xn)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),T4=function(e,t){var s=De(e),n=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),i=qo(e,0,t),a=qo(e,1,t),o=i&&De(i),l=a&&De(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+Nt(i).width,u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Nt(a).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&o.float&&o.float!=="none"){var d=o.float==="left"?"left":"right";return a&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return i&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||c>=n&&s[rw]==="none"||a&&s[rw]==="none"&&c+u>n)?"vertical":"horizontal"},GN=function(e,t,s){var n=s?e.left:e.top,i=s?e.right:e.bottom,a=s?e.width:e.height,o=s?t.left:t.top,l=s?t.right:t.bottom,c=s?t.width:t.height;return n===o||i===l||n+a/2===o+c/2},qN=function(e,t){var s;return Fh.some(function(n){var i=n[rs].options.emptyInsertThreshold;if(!(!i||Jy(n))){var a=Nt(n),o=e>=a.left-i&&e<=a.right+i,l=t>=a.top-i&&t<=a.bottom+i;if(o&&l)return s=n}}),s},k4=function(e){function t(i,a){return function(o,l,c,u){var d=o.options.group.name&&l.options.group.name&&o.options.group.name===l.options.group.name;if(i==null&&(a||d))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return t(i(o,l,c,u),a)(o,l,c,u);var p=(a?o:l).options.group.name;return i===!0||typeof i=="string"&&i===p||i.join&&i.indexOf(p)>-1}}var s={},n=e.group;(!n||Gp(n)!="object")&&(n={name:n}),s.name=n.name,s.checkPull=t(n.pull,!0),s.checkPut=t(n.put),s.revertClone=n.revertClone,e.group=s},D4=function(){!O4&&je&&De(je,"display","none")},M4=function(){!O4&&je&&De(je,"display","")};bm&&!w4&&document.addEventListener("click",function(r){if(Ih)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),Ih=!1,!1},!0);var ea=function(e){if(ce){e=e.touches?e.touches[0]:e;var t=qN(e.clientX,e.clientY);if(t){var s={};for(var n in e)e.hasOwnProperty(n)&&(s[n]=e[n]);s.target=s.rootEl=t,s.preventDefault=void 0,s.stopPropagation=void 0,t[rs]._onDragOver(s)}}},ZN=function(e){ce&&ce.parentNode[rs]._isOutsideThisEl(e.target)};function Me(r,e){if(!(r&&r.nodeType&&r.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=e=jn({},e),r[rs]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return T4(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,o){a.setData("Text",o.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Me.supportPointer!==!1&&"PointerEvent"in window&&!Bc,emptyInsertThreshold:5};hd.initializePlugins(this,r,t);for(var s in t)!(s in e)&&(e[s]=t[s]);k4(e);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=e.forceFallback?!1:WN,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?nt(r,"pointerdown",this._onTapStart):(nt(r,"mousedown",this._onTapStart),nt(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(nt(r,"dragover",this),nt(r,"dragenter",this)),Fh.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),jn(this,jN())}Me.prototype={constructor:Me,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(So=null)},_getDirection:function(e,t){return typeof this.options.direction=="function"?this.options.direction.call(this,e,t,ce):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,s=this.el,n=this.options,i=n.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,l=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=n.filter;if(rz(s),!ce&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Bc&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Hs(l,n.draggable,s,!1),!(l&&l.animated)&&qp!==l)){if(Mo=_s(l),Vc=_s(l,n.draggable),typeof u=="function"){if(u.call(this,e,l,this)){$r({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:s,fromEl:s}),Tr("filter",t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(u&&(u=u.split(",").some(function(d){if(d=Hs(c,d.trim(),s,!1),d)return $r({sortable:t,rootEl:d,name:"filter",targetEl:l,fromEl:s,toEl:s}),Tr("filter",t,{evt:e}),!0}),u)){i&&e.cancelable&&e.preventDefault();return}n.handle&&!Hs(c,n.handle,s,!1)||this._prepareDragStart(e,o,l)}}},_prepareDragStart:function(e,t,s){var n=this,i=n.el,a=n.options,o=i.ownerDocument,l;if(s&&!ce&&s.parentNode===i){var c=Nt(s);if(bt=i,ce=s,Ot=ce.parentNode,sa=ce.nextSibling,qp=s,cp=a.group,Me.dragged=ce,Ji={target:ce,clientX:(t||e).clientX,clientY:(t||e).clientY},ew=Ji.clientX-c.left,tw=Ji.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,ce.style["will-change"]="all",l=function(){if(Tr("delayEnded",n,{evt:e}),Me.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!KS&&n.nativeDraggable&&(ce.draggable=!0),n._triggerDragStart(e,t),$r({sortable:n,name:"choose",originalEvent:e}),Kr(ce,a.chosenClass,!0)},a.ignore.split(",").forEach(function(u){C4(ce,u.trim(),sg)}),nt(o,"dragover",ea),nt(o,"mousemove",ea),nt(o,"touchmove",ea),nt(o,"mouseup",n._onDrop),nt(o,"touchend",n._onDrop),nt(o,"touchcancel",n._onDrop),KS&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ce.draggable=!0),Tr("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(pd||Xn))){if(Me.eventCanceled){this._onDrop();return}nt(o,"mouseup",n._disableDelayedDrag),nt(o,"touchend",n._disableDelayedDrag),nt(o,"touchcancel",n._disableDelayedDrag),nt(o,"mousemove",n._delayedDragTouchMoveHandler),nt(o,"touchmove",n._delayedDragTouchMoveHandler),a.supportPointer&&nt(o,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,a.delay)}else l()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ce&&sg(ce),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Je(e,"mouseup",this._disableDelayedDrag),Je(e,"touchend",this._disableDelayedDrag),Je(e,"touchcancel",this._disableDelayedDrag),Je(e,"mousemove",this._delayedDragTouchMoveHandler),Je(e,"touchmove",this._delayedDragTouchMoveHandler),Je(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType=="touch"&&e,!this.nativeDraggable||t?this.options.supportPointer?nt(document,"pointermove",this._onTouchMove):t?nt(document,"touchmove",this._onTouchMove):nt(document,"mousemove",this._onTouchMove):(nt(ce,"dragend",this),nt(bt,"dragstart",this._onDragStart));try{document.selection?Yp(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Eo=!1,bt&&ce){Tr("dragStarted",this,{evt:t}),this.nativeDraggable&&nt(document,"dragover",ZN);var s=this.options;!e&&Kr(ce,s.dragClass,!1),Kr(ce,s.ghostClass,!0),Me.active=this,e&&this._appendGhost(),$r({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Ds){this._lastX=Ds.clientX,this._lastY=Ds.clientY,D4();for(var e=document.elementFromPoint(Ds.clientX,Ds.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Ds.clientX,Ds.clientY),e!==t);)t=e;if(ce.parentNode[rs]._isOutsideThisEl(e),t)do{if(t[rs]){var s=void 0;if(s=t[rs]._onDragOver({clientX:Ds.clientX,clientY:Ds.clientY,target:e,rootEl:t}),s&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);M4()}},_onTouchMove:function(e){if(Ji){var t=this.options,s=t.fallbackTolerance,n=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=je&&jo(je,!0),o=je&&a&&a.a,l=je&&a&&a.d,c=dp&&hr&&JS(hr),u=(i.clientX-Ji.clientX+n.x)/(o||1)+(c?c[0]-rg[0]:0)/(o||1),d=(i.clientY-Ji.clientY+n.y)/(l||1)+(c?c[1]-rg[1]:0)/(l||1);if(!Me.active&&!Eo){if(s&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<s)return;this._onDragStart(e,!0)}if(je){a?(a.e+=u-(eg||0),a.f+=d-(tg||0)):a={a:1,b:0,c:0,d:1,e:u,f:d};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");De(je,"webkitTransform",p),De(je,"mozTransform",p),De(je,"msTransform",p),De(je,"transform",p),eg=u,tg=d,Ds=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!je){var e=this.options.fallbackOnBody?document.body:bt,t=Nt(ce,!0,dp,!0,e),s=this.options;if(dp){for(hr=e;De(hr,"position")==="static"&&De(hr,"transform")==="none"&&hr!==document;)hr=hr.parentNode;hr!==document.body&&hr!==document.documentElement?(hr===document&&(hr=gn()),t.top+=hr.scrollTop,t.left+=hr.scrollLeft):hr=gn(),rg=JS(hr)}je=ce.cloneNode(!0),Kr(je,s.ghostClass,!1),Kr(je,s.fallbackClass,!0),Kr(je,s.dragClass,!0),De(je,"transition",""),De(je,"transform",""),De(je,"box-sizing","border-box"),De(je,"margin",0),De(je,"top",t.top),De(je,"left",t.left),De(je,"width",t.width),De(je,"height",t.height),De(je,"opacity","0.8"),De(je,"position",dp?"absolute":"fixed"),De(je,"zIndex","100000"),De(je,"pointerEvents","none"),Me.ghost=je,e.appendChild(je),De(je,"transform-origin",ew/parseInt(je.style.width)*100+"% "+tw/parseInt(je.style.height)*100+"%")}},_onDragStart:function(e,t){var s=this,n=e.dataTransfer,i=s.options;if(Tr("dragStart",this,{evt:e}),Me.eventCanceled){this._onDrop();return}Tr("setupClone",this),Me.eventCanceled||(xt=A4(ce),xt.removeAttribute("id"),xt.draggable=!1,xt.style["will-change"]="",this._hideClone(),Kr(xt,this.options.chosenClass,!1),Me.clone=xt),s.cloneId=Yp(function(){Tr("clone",s),!Me.eventCanceled&&(s.options.removeCloneOnHide||bt.insertBefore(xt,ce),s._hideClone(),$r({sortable:s,name:"clone"}))}),!t&&Kr(ce,i.dragClass,!0),t?(Ih=!0,s._loopId=setInterval(s._emulateDragOver,50)):(Je(document,"mouseup",s._onDrop),Je(document,"touchend",s._onDrop),Je(document,"touchcancel",s._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(s,n,ce)),nt(document,"drop",s),De(ce,"transform","translateZ(0)")),Eo=!0,s._dragStartId=Yp(s._dragStarted.bind(s,t,e)),nt(document,"selectstart",s),Lc=!0,Bc&&De(document.body,"user-select","none")},_onDragOver:function(e){var t=this.el,s=e.target,n,i,a,o=this.options,l=o.group,c=Me.active,u=cp===l,d=o.sort,p=sr||c,h,m=this,g=!1;if(Iv)return;function v(U,N){Tr(U,m,$n({evt:e,isOwner:u,axis:h?"vertical":"horizontal",revert:a,dragRect:n,targetRect:i,canSort:d,fromSortable:p,target:s,completed:C,onMove:function(Q,q){return pp(bt,t,ce,n,Q,Nt(Q),e,q)},changed:x},N))}function y(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==p&&p.captureAnimationState()}function C(U){return v("dragOverCompleted",{insertion:U}),U&&(u?c._hideClone():c._showClone(m),m!==p&&(Kr(ce,sr?sr.options.ghostClass:c.options.ghostClass,!1),Kr(ce,o.ghostClass,!0)),sr!==m&&m!==Me.active?sr=m:m===Me.active&&sr&&(sr=null),p===m&&(m._ignoreWhileAnimating=s),m.animateAll(function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null}),m!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(s===ce&&!ce.animated||s===t&&!s.animated)&&(So=null),!o.dragoverBubble&&!e.rootEl&&s!==document&&(ce.parentNode[rs]._isOutsideThisEl(e.target),!U&&ea(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),g=!0}function x(){Jr=_s(ce),di=_s(ce,o.draggable),$r({sortable:m,name:"change",toEl:t,newIndex:Jr,newDraggableIndex:di,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),s=Hs(s,o.draggable,t,!0),v("dragOver"),Me.eventCanceled)return g;if(ce.contains(e.target)||s.animated&&s.animatingX&&s.animatingY||m._ignoreWhileAnimating===s)return C(!1);if(Ih=!1,c&&!o.disabled&&(u?d||(a=Ot!==bt):sr===this||(this.lastPutMode=cp.checkPull(this,c,ce,e))&&l.checkPut(this,c,ce,e))){if(h=this._getDirection(e,s)==="vertical",n=Nt(ce),v("dragOverValid"),Me.eventCanceled)return g;if(a)return Ot=bt,y(),this._hideClone(),v("revert"),Me.eventCanceled||(sa?bt.insertBefore(ce,sa):bt.appendChild(ce)),C(!0);var S=Jy(t,o.draggable);if(!S||QN(e,h,this)&&!S.animated){if(S===ce)return C(!1);if(S&&t===e.target&&(s=S),s&&(i=Nt(s)),pp(bt,t,ce,n,s,i,e,!!s)!==!1)return y(),S&&S.nextSibling?t.insertBefore(ce,S.nextSibling):t.appendChild(ce),Ot=t,x(),C(!0)}else if(S&&XN(e,h,this)){var E=qo(t,0,o,!0);if(E===ce)return C(!1);if(s=E,i=Nt(s),pp(bt,t,ce,n,s,i,e,!1)!==!1)return y(),t.insertBefore(ce,E),Ot=t,x(),C(!0)}else if(s.parentNode===t){i=Nt(s);var G=0,K,le=ce.parentNode!==t,ue=!GN(ce.animated&&ce.toRect||n,s.animated&&s.toRect||i,h),ie=h?"top":"left",fe=QS(s,"top","top")||QS(ce,"top","top"),k=fe?fe.scrollTop:void 0;So!==s&&(K=i[ie],zc=!1,up=!ue&&o.invertSwap||le),G=JN(e,s,i,h,ue?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,up,So===s);var T;if(G!==0){var P=_s(ce);do P-=G,T=Ot.children[P];while(T&&(De(T,"display")==="none"||T===je))}if(G===0||T===s)return C(!1);So=s,Nc=G;var O=s.nextElementSibling,j=!1;j=G===1;var V=pp(bt,t,ce,n,s,i,e,j);if(V!==!1)return(V===1||V===-1)&&(j=V===1),Iv=!0,setTimeout(KN,30),y(),j&&!O?t.appendChild(ce):s.parentNode.insertBefore(ce,j?O:s),fe&&L4(fe,0,k-fe.scrollTop),Ot=ce.parentNode,K!==void 0&&!up&&(Zp=Math.abs(K-Nt(s)[ie])),x(),C(!0)}if(t.contains(ce))return C(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Je(document,"mousemove",this._onTouchMove),Je(document,"touchmove",this._onTouchMove),Je(document,"pointermove",this._onTouchMove),Je(document,"dragover",ea),Je(document,"mousemove",ea),Je(document,"touchmove",ea)},_offUpEvents:function(){var e=this.el.ownerDocument;Je(e,"mouseup",this._onDrop),Je(e,"touchend",this._onDrop),Je(e,"pointerup",this._onDrop),Je(e,"touchcancel",this._onDrop),Je(document,"selectstart",this)},_onDrop:function(e){var t=this.el,s=this.options;if(Jr=_s(ce),di=_s(ce,s.draggable),Tr("drop",this,{evt:e}),Ot=ce&&ce.parentNode,Jr=_s(ce),di=_s(ce,s.draggable),Me.eventCanceled){this._nulling();return}Eo=!1,up=!1,zc=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Fv(this.cloneId),Fv(this._dragStartId),this.nativeDraggable&&(Je(document,"drop",this),Je(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Bc&&De(document.body,"user-select",""),De(ce,"transform",""),e&&(Lc&&(e.cancelable&&e.preventDefault(),!s.dropBubble&&e.stopPropagation()),je&&je.parentNode&&je.parentNode.removeChild(je),(bt===Ot||sr&&sr.lastPutMode!=="clone")&&xt&&xt.parentNode&&xt.parentNode.removeChild(xt),ce&&(this.nativeDraggable&&Je(ce,"dragend",this),sg(ce),ce.style["will-change"]="",Lc&&!Eo&&Kr(ce,sr?sr.options.ghostClass:this.options.ghostClass,!1),Kr(ce,this.options.chosenClass,!1),$r({sortable:this,name:"unchoose",toEl:Ot,newIndex:null,newDraggableIndex:null,originalEvent:e}),bt!==Ot?(Jr>=0&&($r({rootEl:Ot,name:"add",toEl:Ot,fromEl:bt,originalEvent:e}),$r({sortable:this,name:"remove",toEl:Ot,originalEvent:e}),$r({rootEl:Ot,name:"sort",toEl:Ot,fromEl:bt,originalEvent:e}),$r({sortable:this,name:"sort",toEl:Ot,originalEvent:e})),sr&&sr.save()):Jr!==Mo&&Jr>=0&&($r({sortable:this,name:"update",toEl:Ot,originalEvent:e}),$r({sortable:this,name:"sort",toEl:Ot,originalEvent:e})),Me.active&&((Jr==null||Jr===-1)&&(Jr=Mo,di=Vc),$r({sortable:this,name:"end",toEl:Ot,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Tr("nulling",this),bt=ce=Ot=je=sa=xt=qp=hi=Ji=Ds=Lc=Jr=di=Mo=Vc=So=Nc=sr=cp=Me.dragged=Me.ghost=Me.clone=Me.active=null,Hh.forEach(function(e){e.checked=!0}),Hh.length=eg=tg=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ce&&(this._onDragOver(e),YN(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],t,s=this.el.children,n=0,i=s.length,a=this.options;n<i;n++)t=s[n],Hs(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||tz(t));return e},sort:function(e,t){var s={},n=this.el;this.toArray().forEach(function(i,a){var o=n.children[a];Hs(o,this.options.draggable,n,!1)&&(s[i]=o)},this),t&&this.captureAnimationState(),e.forEach(function(i){s[i]&&(n.removeChild(s[i]),n.appendChild(s[i]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Hs(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var s=this.options;if(t===void 0)return s[e];var n=hd.modifyOption(this,e,t);typeof n<"u"?s[e]=n:s[e]=t,e==="group"&&k4(s)},destroy:function(){Tr("destroy",this);var e=this.el;e[rs]=null,Je(e,"mousedown",this._onTapStart),Je(e,"touchstart",this._onTapStart),Je(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(Je(e,"dragover",this),Je(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Fh.splice(Fh.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!hi){if(Tr("hideClone",this),Me.eventCanceled)return;De(xt,"display","none"),this.options.removeCloneOnHide&&xt.parentNode&&xt.parentNode.removeChild(xt),hi=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(hi){if(Tr("showClone",this),Me.eventCanceled)return;ce.parentNode==bt&&!this.options.group.revertClone?bt.insertBefore(xt,ce):sa?bt.insertBefore(xt,sa):bt.appendChild(xt),this.options.group.revertClone&&this.animate(ce,xt),De(xt,"display",""),hi=!1}}};function YN(r){r.dataTransfer&&(r.dataTransfer.dropEffect="move"),r.cancelable&&r.preventDefault()}function pp(r,e,t,s,n,i,a,o){var l,c=r[rs],u=c.options.onMove,d;return window.CustomEvent&&!Xn&&!pd?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=e,l.from=r,l.dragged=t,l.draggedRect=s,l.related=n||e,l.relatedRect=i||Nt(e),l.willInsertAfter=o,l.originalEvent=a,r.dispatchEvent(l),u&&(d=u.call(c,l,a)),d}function sg(r){r.draggable=!1}function KN(){Iv=!1}function XN(r,e,t){var s=Nt(qo(t.el,0,t.options,!0)),n=E4(t.el,t.options,je),i=10;return e?r.clientX<n.left-i||r.clientY<s.top&&r.clientX<s.right:r.clientY<n.top-i||r.clientY<s.bottom&&r.clientX<s.left}function QN(r,e,t){var s=Nt(Jy(t.el,t.options.draggable)),n=E4(t.el,t.options,je),i=10;return e?r.clientX>n.right+i||r.clientY>s.bottom&&r.clientX>s.left:r.clientY>n.bottom+i||r.clientX>s.right&&r.clientY>s.top}function JN(r,e,t,s,n,i,a,o){var l=s?r.clientY:r.clientX,c=s?t.height:t.width,u=s?t.top:t.left,d=s?t.bottom:t.right,p=!1;if(!a){if(o&&Zp<c*n){if(!zc&&(Nc===1?l>u+c*i/2:l<d-c*i/2)&&(zc=!0),zc)p=!0;else if(Nc===1?l<u+Zp:l>d-Zp)return-Nc}else if(l>u+c*(1-n)/2&&l<d-c*(1-n)/2)return ez(e)}return p=p||a,p&&(l<u+c*i/2||l>d-c*i/2)?l>u+c/2?1:-1:0}function ez(r){return _s(ce)<_s(r)?1:-1}function tz(r){for(var e=r.tagName+r.className+r.src+r.href+r.textContent,t=e.length,s=0;t--;)s+=e.charCodeAt(t);return s.toString(36)}function rz(r){Hh.length=0;for(var e=r.getElementsByTagName("input"),t=e.length;t--;){var s=e[t];s.checked&&Hh.push(s)}}function Yp(r){return setTimeout(r,0)}function Fv(r){return clearTimeout(r)}bm&&nt(document,"touchmove",function(r){(Me.active||Eo)&&r.cancelable&&r.preventDefault()});Me.utils={on:nt,off:Je,css:De,find:C4,is:function(e,t){return!!Hs(e,t,e,!1)},extend:HN,throttle:P4,closest:Hs,toggleClass:Kr,clone:A4,index:_s,nextTick:Yp,cancelNextTick:Fv,detectDirection:T4,getChild:qo};Me.get=function(r){return r[rs]};Me.mount=function(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];e[0].constructor===Array&&(e=e[0]),e.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(Me.utils=$n($n({},Me.utils),s.utils)),hd.mount(s)})};Me.create=function(r,e){return new Me(r,e)};Me.version=RN;var jt=[],Ac,Hv,Bv=!1,ng,ig,Bh,Ec;function sz(){function r(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return r.prototype={dragStarted:function(t){var s=t.originalEvent;this.sortable.nativeDraggable?nt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?nt(document,"pointermove",this._handleFallbackAutoScroll):s.touches?nt(document,"touchmove",this._handleFallbackAutoScroll):nt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var s=t.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?Je(document,"dragover",this._handleAutoScroll):(Je(document,"pointermove",this._handleFallbackAutoScroll),Je(document,"touchmove",this._handleFallbackAutoScroll),Je(document,"mousemove",this._handleFallbackAutoScroll)),sw(),Kp(),BN()},nulling:function(){Bh=Hv=Ac=Bv=Ec=ng=ig=null,jt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,s){var n=this,i=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,o=document.elementFromPoint(i,a);if(Bh=t,s||this.options.forceAutoScrollFallback||pd||Xn||Bc){ag(t,this.options,o,s);var l=vi(o,!0);Bv&&(!Ec||i!==ng||a!==ig)&&(Ec&&sw(),Ec=setInterval(function(){var c=vi(document.elementFromPoint(i,a),!0);c!==l&&(l=c,Kp()),ag(t,n.options,c,s)},10),ng=i,ig=a)}else{if(!this.options.bubbleScroll||vi(o,!0)===gn()){Kp();return}ag(t,this.options,vi(o,!1),!1)}}},jn(r,{pluginName:"scroll",initializeByDefault:!0})}function Kp(){jt.forEach(function(r){clearInterval(r.pid)}),jt=[]}function sw(){clearInterval(Ec)}var ag=P4(function(r,e,t,s){if(e.scroll){var n=(r.touches?r.touches[0]:r).clientX,i=(r.touches?r.touches[0]:r).clientY,a=e.scrollSensitivity,o=e.scrollSpeed,l=gn(),c=!1,u;Hv!==t&&(Hv=t,Kp(),Ac=e.scroll,u=e.scrollFn,Ac===!0&&(Ac=vi(t,!0)));var d=0,p=Ac;do{var h=p,m=Nt(h),g=m.top,v=m.bottom,y=m.left,C=m.right,x=m.width,S=m.height,E=void 0,G=void 0,K=h.scrollWidth,le=h.scrollHeight,ue=De(h),ie=h.scrollLeft,fe=h.scrollTop;h===l?(E=x<K&&(ue.overflowX==="auto"||ue.overflowX==="scroll"||ue.overflowX==="visible"),G=S<le&&(ue.overflowY==="auto"||ue.overflowY==="scroll"||ue.overflowY==="visible")):(E=x<K&&(ue.overflowX==="auto"||ue.overflowX==="scroll"),G=S<le&&(ue.overflowY==="auto"||ue.overflowY==="scroll"));var k=E&&(Math.abs(C-n)<=a&&ie+x<K)-(Math.abs(y-n)<=a&&!!ie),T=G&&(Math.abs(v-i)<=a&&fe+S<le)-(Math.abs(g-i)<=a&&!!fe);if(!jt[d])for(var P=0;P<=d;P++)jt[P]||(jt[P]={});(jt[d].vx!=k||jt[d].vy!=T||jt[d].el!==h)&&(jt[d].el=h,jt[d].vx=k,jt[d].vy=T,clearInterval(jt[d].pid),(k!=0||T!=0)&&(c=!0,jt[d].pid=setInterval((function(){s&&this.layer===0&&Me.active._onTouchMove(Bh);var O=jt[this.layer].vy?jt[this.layer].vy*o:0,j=jt[this.layer].vx?jt[this.layer].vx*o:0;typeof u=="function"&&u.call(Me.dragged.parentNode[rs],j,O,r,Bh,jt[this.layer].el)!=="continue"||L4(jt[this.layer].el,j,O)}).bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==l&&(p=vi(p,!1)));Bv=c}},30),R4=function(e){var t=e.originalEvent,s=e.putSortable,n=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,l=e.unhideGhostForTarget;if(t){var c=s||i;o();var u=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,d=document.elementFromPoint(u.clientX,u.clientY);l(),c&&!c.el.contains(d)&&(a("spill"),this.onSpill({dragEl:n,putSortable:s}))}};function eb(){}eb.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,s=e.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var n=qo(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),s&&s.animateAll()},drop:R4};jn(eb,{pluginName:"revertOnSpill"});function tb(){}tb.prototype={onSpill:function(e){var t=e.dragEl,s=e.putSortable,n=s||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:R4};jn(tb,{pluginName:"removeOnSpill"});Me.mount(new sz);Me.mount(tb,eb);var nz=Object.defineProperty,iz=Object.getOwnPropertyDescriptor,Cl=(r,e,t,s)=>{for(var n=s>1?void 0:s?iz(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&nz(e,t,n),n};const Oc=Symbol("instanceKey"),nw=r=>Oc in r;let Ai=class extends b{constructor(){super(...arguments);f(this,"items");f(this,"options");f(this,"target");f(this,"sortable",null)}onOptions(e){if(this.sortable)for(const t in e){const s=t;this.sortable.option(s,e[s])}}onTarget(){this.dettach(),this.attach()}handleStart(e){this.$emit("start",e)}handleAdd(e){const{oldIndex:t,newIndex:s,from:n}=e;if(t===void 0||s===void 0||!nw(n)||n[Oc]===null)return;const i=n[Oc],a=[...this.items];a.splice(s,0,i.items[t]),this.items=a,this.$emit("add",e)}handleRemove(e){const{oldIndex:t}=e;if(t===void 0)return;const s=[...this.items];s.splice(t,1),this.items=s,this.$emit("remove",e)}handleUpdate(e){const{oldIndex:t,newIndex:s}=e;if(t===void 0||s===void 0)return;const n=[...this.items],i=n.splice(t,1)[0];n.splice(s,0,i),this.items=n,this.$emit("update",e)}handleEnd(e){this.$emit("end",e)}attach(){const e=this.target&&this.$el.querySelector(this.target)||this.$el;e[Oc]=this;const t={...this.options,onStart:this.handleStart,onAdd:this.handleAdd,onRemove:this.handleRemove,onUpdate:this.handleUpdate,onEnd:this.handleEnd};this.sortable=Me.create(e,t)}dettach(){var t,s;const e=(t=this.sortable)==null?void 0:t.el;e&&nw(e)&&(e[Oc]=null),(s=this.sortable)==null||s.destroy(),this.sortable=null}mounted(){this.attach()}unmounted(){this.dettach()}};Cl([He({type:Array,default:()=>[]})],Ai.prototype,"items",2);Cl([$({type:Object})],Ai.prototype,"options",2);Cl([$({type:String})],Ai.prototype,"target",2);Cl([Ae("options")],Ai.prototype,"onOptions",1);Cl([Ae("target")],Ai.prototype,"onTarget",1);Ai=Cl([L({})],Ai);function A(r,e,t,s,n,i,a,o){var l=typeof r=="function"?r.options:r;return e&&(l.render=e,l.staticRenderFns=t,l._compiled=!0),i&&(l._scopeId="data-v-"+i),{exports:r,options:l}}var az=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e._t("default")],2)},oz=[],lz=A(Ai,az,oz,!1,null,null);const $m=lz.exports,Ke=b.extend().extend({name:"themeable",provide(){return{theme:this.themeableProvide}},inject:{theme:{default:{isDark:!1}}},props:{dark:{type:Boolean,default:null},light:{type:Boolean,default:null}},data(){return{themeableProvide:{isDark:!1}}},computed:{appIsDark(){return this.$vuetify.theme.dark||!1},isDark(){return this.dark===!0?!0:this.light===!0?!1:this.theme.isDark},themeClasses(){return{"theme--dark":this.isDark,"theme--light":!this.isDark}},rootIsDark(){return this.dark===!0?!0:this.light===!0?!1:this.appIsDark},rootThemeClasses(){return{"theme--dark":this.rootIsDark,"theme--light":!this.rootIsDark}}},watch:{isDark:{handler(r,e){r!==e&&(this.themeableProvide.isDark=this.isDark)},immediate:!0}}});function I4(r){const e={...r.props,...r.injections},t=Ke.options.computed.isDark.call(e);return Ke.options.computed.themeClasses.call({isDark:t})}function be(...r){return b.extend({mixins:r})}function qr(r,e="div",t){return b.extend({name:t||r.replace(/__/g,"-"),functional:!0,props:{tag:{type:String,default:e}},render(s,{data:n,props:i,children:a}){return n.staticClass=`${r} ${n.staticClass||""}`.trim(),s(i.tag,n,a)}})}function F4(r,e,t,s=!1){const n=i=>{t(i),r.removeEventListener(e,n,s)};r.addEventListener(e,n,s)}let Uc=!1;try{if(typeof window<"u"){const r=Object.defineProperty({},"passive",{get:()=>{Uc=!0}});window.addEventListener("testListener",r,r),window.removeEventListener("testListener",r,r)}}catch(r){console.warn(r)}function cz(r,e,t,s){r.addEventListener(e,t,Uc?s:!1)}function rb(r,e,t){const s=e.length-1;if(s<0)return r===void 0?t:r;for(let n=0;n<s;n++){if(r==null)return t;r=r[e[n]]}return r==null||r[e[s]]===void 0?t:r[e[s]]}function Gt(r,e){if(r===e)return!0;if(r instanceof Date&&e instanceof Date&&r.getTime()!==e.getTime()||r!==Object(r)||e!==Object(e))return!1;const t=Object.keys(r);return t.length!==Object.keys(e).length?!1:t.every(s=>Gt(r[s],e[s]))}function at(r,e,t){return r==null||!e||typeof e!="string"?t:r[e]!==void 0?r[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),rb(r,e.split("."),t))}function In(r,e,t){if(e==null)return r===void 0?t:r;if(r!==Object(r))return t===void 0?r:t;if(typeof e=="string")return at(r,e,t);if(Array.isArray(e))return rb(r,e,t);if(typeof e!="function")return t;const s=e(r,t);return typeof s>"u"?t:s}function uz(r){return Array.from({length:r},(e,t)=>t)}function Wc(r){if(!r||r.nodeType!==Node.ELEMENT_NODE)return 0;const e=+window.getComputedStyle(r).getPropertyValue("z-index");return e||Wc(r.parentNode)}function dz(r,e){const t={};for(let s=0;s<e.length;s++){const n=e[s];typeof r[n]<"u"&&(t[n]=r[n])}return t}function ge(r,e="px"){if(!(r==null||r===""))return isNaN(+r)?String(r):`${Number(r)}${e}`}function jv(r){return(r||"").replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function iw(r){return r!==null&&typeof r=="object"}const Le=Object.freeze({enter:13,tab:9,delete:46,esc:27,space:32,up:38,down:40,left:37,right:39,end:35,home:36,del:46,backspace:8,insert:45,pageup:33,pagedown:34,shift:16});function pz(r,e){const t=r.$vuetify.icons.component;if(e.startsWith("$")){const s=`$vuetify.icons.values.${e.split("$").pop().split(".").pop()}`,n=at(r,s,e);if(typeof n=="string")e=n;else return n}return t==null?e:{component:t,props:{icon:e}}}function Sm(r){return Object.keys(r)}const hz=/-(\w)/g,H4=r=>r.replace(hz,(e,t)=>t?t.toUpperCase():"");function wm(r){return r.charAt(0).toUpperCase()+r.slice(1)}function fz(r,e,t){const s=e[0],n=[];let i;for(let a=0;a<r.length;a++){const o=r[a],l=at(o,s,null);i!==l&&(i=l,n.push({name:l??"",items:[]})),n[n.length-1].items.push(o)}return n}function xr(r){return r!=null?Array.isArray(r)?r:[r]:[]}function mz(r,e,t,s,n){if(e===null||!e.length)return r;const i=new Intl.Collator(s,{sensitivity:"accent",usage:"sort"});return r.sort((a,o)=>{for(let l=0;l<e.length;l++){const c=e[l];let u=at(a,c),d=at(o,c);if(t[l]&&([u,d]=[d,u]),n&&n[c]){const p=n[c](u,d);if(!p)continue;return p}if(!(u===null&&d===null)){if(u instanceof Date&&d instanceof Date)return u.getTime()-d.getTime();if([u,d]=[u,d].map(p=>(p||"").toString().toLocaleLowerCase()),u!==d)return!isNaN(u)&&!isNaN(d)?Number(u)-Number(d):i.compare(u,d)}}return 0})}function jh(r,e,t){return r!=null&&e!=null&&typeof r!="boolean"&&r.toString().toLocaleLowerCase().indexOf(e.toLocaleLowerCase())!==-1}function gz(r,e){return!e||(e=e.toString().toLowerCase(),e.trim()==="")?r:r.filter(t=>Object.keys(t).some(s=>jh(at(t,s),e)))}function B4(r,e,t){if(r.$slots.hasOwnProperty(e)&&r.$scopedSlots.hasOwnProperty(e)&&r.$scopedSlots[e].name)return"v-slot";if(r.$slots.hasOwnProperty(e))return"normal";if(r.$scopedSlots.hasOwnProperty(e))return"scoped"}function Xp(r,e){return Object.keys(e).filter(t=>t.startsWith(r)).reduce((t,s)=>(t[s.replace(r,"")]=e[s],t),{})}function me(r,e="default",t,s=!1){const n=jv(e);if(r.$scopedSlots.hasOwnProperty(e))return r.$scopedSlots[e](t instanceof Function?t():t);if(r.$scopedSlots.hasOwnProperty(n))return r.$scopedSlots[n](t instanceof Function?t():t);if(r.$slots.hasOwnProperty(e)&&(!t||s))return r.$slots[e];if(r.$slots.hasOwnProperty(n)&&(!t||s))return r.$slots[n]}function vz(r,e=0,t=1){return Math.max(e,Math.min(t,r))}function j4(r){return r?Object.keys(r).reduce((e,t)=>(e[H4(t)]=r[t],e),{}):{}}function Gc(r={},e={}){for(const t in e){const s=r[t],n=e[t];if(iw(s)&&iw(n)){r[t]=Gc(s,n);continue}r[t]=n}return r}function aw(r,e){return Array(r).fill(e)}function V4(r){if(r.composedPath)return r.composedPath();const e=[];let t=r.target;for(;t;){if(e.push(t),t.tagName==="HTML")return e.push(document),e.push(window),e;t=t.parentElement}return e}const ow=be(Ke).extend({name:"v-app",props:{dark:{type:Boolean,default:void 0},id:{type:String,default:"app"},light:{type:Boolean,default:void 0}},computed:{isDark(){return this.$vuetify.theme.dark}},beforeCreate(){if(!this.$vuetify||this.$vuetify===this.$root)throw new Error("Vuetify is not properly initialized, see https://v2.vuetifyjs.com/getting-started/quick-start#bootstrapping-the-vuetify-object")},render(r){const e=r("div",{staticClass:"v-application--wrap"},me(this));return r("div",{staticClass:"v-application",class:{"v-application--is-rtl":this.$vuetify.rtl,"v-application--is-ltr":!this.$vuetify.rtl,...this.themeClasses},attrs:{"data-app":!0},domProps:{id:this.id}},[e])}});function lw(r){return function(e,t){for(const s in t)Object.prototype.hasOwnProperty.call(e,s)||this.$delete(this.$data[r],s);for(const s in e)this.$set(this.$data[r],s,e[s])}}const Pl=b.extend({data:()=>({attrs$:{},listeners$:{}}),created(){this.$watch("$attrs",lw("attrs$"),{immediate:!0}),this.$watch("$listeners",lw("listeners$"),{immediate:!0})}});function Vv(r,e={}){if(Vv.installed)return;Vv.installed=!0,b!==r&&Ns(`Multiple instances of Vue detected
See https://github.com/vuetifyjs/vuetify/issues/4068
If you're seeing "$attrs is readonly", it's caused by this`);const t=e.components||{},s=e.directives||{};for(const n in s){const i=s[n];r.directive(n,i)}(function n(i){if(i){for(const a in i){const o=i[a];o&&!n(o.$_vuetify_subcomponents)&&r.component(a,o)}return!0}return!1})(t),!r.$_vuetify_installed&&(r.$_vuetify_installed=!0,r.mixin({beforeCreate(){const n=this.$options;n.vuetify?(n.vuetify.init(this,this.$ssrContext),this.$vuetify=r.observable(n.vuetify.framework)):this.$vuetify=n.parent&&n.parent.$vuetify||this},beforeMount(){this.$options.vuetify&&this.$el&&this.$el.hasAttribute("data-server-rendered")&&(this.$vuetify.isHydrating=!0,this.$vuetify.breakpoint.update(!0))},mounted(){this.$options.vuetify&&this.$vuetify.isHydrating&&(this.$vuetify.isHydrating=!1,this.$vuetify.breakpoint.update())}}))}class Xa{constructor(){this.framework={}}init(e,t){}}class N4 extends Xa{constructor(){super(...arguments),this.bar=0,this.top=0,this.left=0,this.insetFooter=0,this.right=0,this.bottom=0,this.footer=0,this.application={bar:{},top:{},left:{},insetFooter:{},right:{},bottom:{},footer:{}}}register(e,t,s){this.application[t][e]=s,this.update(t)}unregister(e,t){this.application[t][e]!=null&&(delete this.application[t][e],this.update(t))}update(e){this[e]=Object.values(this.application[e]).reduce((t,s)=>t+s,0)}}N4.property="application";class xm extends Xa{constructor(e){super(),this.xs=!1,this.sm=!1,this.md=!1,this.lg=!1,this.xl=!1,this.xsOnly=!1,this.smOnly=!1,this.smAndDown=!1,this.smAndUp=!1,this.mdOnly=!1,this.mdAndDown=!1,this.mdAndUp=!1,this.lgOnly=!1,this.lgAndDown=!1,this.lgAndUp=!1,this.xlOnly=!1,this.name="xs",this.height=0,this.width=0,this.mobile=!0,this.resizeTimeout=0;const{mobileBreakpoint:t,scrollBarWidth:s,thresholds:n}=e[xm.property];this.mobileBreakpoint=t,this.scrollBarWidth=s,this.thresholds=n}init(){this.update(),!(typeof window>"u")&&window.addEventListener("resize",this.onResize.bind(this),{passive:!0})}update(e=!1){const t=e?0:this.getClientHeight(),s=e?0:this.getClientWidth(),n=s<this.thresholds.xs,i=s<this.thresholds.sm&&!n,a=s<this.thresholds.md-this.scrollBarWidth&&!(i||n),o=s<this.thresholds.lg-this.scrollBarWidth&&!(a||i||n),l=s>=this.thresholds.lg-this.scrollBarWidth;switch(this.height=t,this.width=s,this.xs=n,this.sm=i,this.md=a,this.lg=o,this.xl=l,this.xsOnly=n,this.smOnly=i,this.smAndDown=(n||i)&&!(a||o||l),this.smAndUp=!n&&(i||a||o||l),this.mdOnly=a,this.mdAndDown=(n||i||a)&&!(o||l),this.mdAndUp=!(n||i)&&(a||o||l),this.lgOnly=o,this.lgAndDown=(n||i||a||o)&&!l,this.lgAndUp=!(n||i||a)&&(o||l),this.xlOnly=l,!0){case n:this.name="xs";break;case i:this.name="sm";break;case a:this.name="md";break;case o:this.name="lg";break;default:this.name="xl";break}if(typeof this.mobileBreakpoint=="number"){this.mobile=s<parseInt(this.mobileBreakpoint,10);return}const c={xs:0,sm:1,md:2,lg:3,xl:4},u=c[this.name],d=c[this.mobileBreakpoint];this.mobile=u<=d}onResize(){clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.update.bind(this),200)}getClientWidth(){return typeof document>"u"?0:Math.max(document.documentElement.clientWidth,window.innerWidth||0)}getClientHeight(){return typeof document>"u"?0:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}xm.property="breakpoint";const _z=r=>r,yz=r=>r**2,bz=r=>r*(2-r),$z=r=>r<.5?2*r**2:-1+(4-2*r)*r,Sz=r=>r**3,wz=r=>--r**3+1,xz=r=>r<.5?4*r**3:(r-1)*(2*r-2)*(2*r-2)+1,Cz=r=>r**4,Pz=r=>1- --r**4,Lz=r=>r<.5?8*r*r*r*r:1-8*--r*r*r*r,Az=r=>r**5,Ez=r=>1+--r**5,Oz=r=>r<.5?16*r**5:1+16*--r**5,Tz=Object.freeze(Object.defineProperty({__proto__:null,easeInCubic:Sz,easeInOutCubic:xz,easeInOutQuad:$z,easeInOutQuart:Lz,easeInOutQuint:Oz,easeInQuad:yz,easeInQuart:Cz,easeInQuint:Az,easeOutCubic:wz,easeOutQuad:bz,easeOutQuart:Pz,easeOutQuint:Ez,linear:_z},Symbol.toStringTag,{value:"Module"}));function og(r){if(typeof r=="number")return r;let e=U4(r);if(!e)throw typeof r=="string"?new Error(`Target element "${r}" not found.`):new TypeError(`Target must be a Number/Selector/HTMLElement/VueComponent, received ${z4(r)} instead.`);let t=0;for(;e;)t+=e.offsetTop,e=e.offsetParent;return t}function kz(r){const e=U4(r);if(e)return e;throw typeof r=="string"?new Error(`Container element "${r}" not found.`):new TypeError(`Container must be a Selector/HTMLElement/VueComponent, received ${z4(r)} instead.`)}function z4(r){return r==null?r:r.constructor.name}function U4(r){return typeof r=="string"?document.querySelector(r):r&&r._isVue?r.$el:r instanceof HTMLElement?r:null}function La(r,e={}){const t={container:document.scrollingElement||document.body||document.documentElement,duration:500,offset:0,easing:"easeInOutCubic",appOffset:!0,...e},s=kz(t.container);if(t.appOffset&&La.framework.application){const l=s.classList.contains("v-navigation-drawer"),c=s.classList.contains("v-navigation-drawer--clipped"),{bar:u,top:d}=La.framework.application;t.offset+=u,(!l||c)&&(t.offset+=d)}const n=performance.now();let i;typeof r=="number"?i=og(r)-t.offset:i=og(r)-og(s)-t.offset;const a=s.scrollTop;if(i===a)return Promise.resolve(i);const o=typeof t.easing=="function"?t.easing:Tz[t.easing];if(!o)throw new TypeError(`Easing function "${t.easing}" not found.`);return new Promise(l=>requestAnimationFrame(function c(u){const d=u-n,p=Math.abs(t.duration?Math.min(d/t.duration,1):1);s.scrollTop=Math.floor(a+(i-a)*o(p));const m=(s===document.body?document.documentElement.clientHeight:s.clientHeight)+s.scrollTop>=s.scrollHeight;if(p===1||i>s.scrollTop&&m)return l(i);requestAnimationFrame(c)}))}La.framework={};La.init=()=>{};class W4 extends Xa{constructor(){return super(),La}}W4.property="goTo";const Dz={complete:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",cancel:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",close:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",delete:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",clear:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",success:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",info:"M13,9H11V7H13M13,17H11V11H13M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2ZM13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",warning:"M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",error:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",prev:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",next:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",checkboxOn:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",checkboxOff:"M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",checkboxIndeterminate:"M17,13H7V11H17M19,3H5C3.89,3 3,3.89 3,5V19C3,20.1 3.9,21 5,21H19C20.1,21 21,20.1 21,19V5C21,3.89 20.1,3 19,3Z",delimiter:"M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",sort:"M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",expand:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",menu:"M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",subgroup:"M7,10L12,15L17,10H7Z",dropdown:"M7,10L12,15L17,10H7Z",radioOn:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2M12,7C9.24,7 7,9.24 7,12C7,14.76 9.24,17 12,17C14.76,17 17,14.76 17,12C17,9.24 14.76,7 12,7Z",radioOff:"M12,20C7.58,20 4,16.42 4,12C4,7.58 7.58,4 12,4C16.42,4 20,7.58 20,12C20,16.42 16.42,20 12,20M12,2C6.48,2 2,6.48 2,12C2,17.52 6.48,22 12,22C17.52,22 22,17.52 22,12C22,6.48 17.52,2 12,2Z",edit:"M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",ratingEmpty:"M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",ratingFull:"M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",ratingHalf:"M12,15.4V6.1L13.71,10.13L18.09,10.5L14.77,13.39L15.76,17.67M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",loading:"M19,8L15,12H18C18,15.31 15.31,18 12,18C11,18 10.03,17.75 9.2,17.3L7.74,18.76C8.97,19.54 10.43,20 12,20C16.42,20 20,16.42 20,12H23M6,12C6,8.69 8.69,6 12,6C13,6 13.97,6.25 14.8,6.7L16.26,5.24C15.03,4.46 13.57,4 12,4C7.58,4 4,7.58 4,12H1L5,16L9,12",first:"M18.41,16.59L13.82,12L18.41,7.41L17,6L11,12L17,18L18.41,16.59M6,6H8V18H6V6Z",last:"M5.59,7.41L10.18,12L5.59,16.59L7,18L13,12L7,6L5.59,7.41M16,6H18V18H16V6Z",unfold:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z",file:"M16.5,6V17.5C16.5,19.71 14.71,21.5 12.5,21.5C10.29,21.5 8.5,19.71 8.5,17.5V5C8.5,3.62 9.62,2.5 11,2.5C12.38,2.5 13.5,3.62 13.5,5V15.5C13.5,16.05 13.05,16.5 12.5,16.5C11.95,16.5 11.5,16.05 11.5,15.5V6H10V15.5C10,16.88 11.12,18 12.5,18C13.88,18 15,16.88 15,15.5V5C15,2.79 13.21,1 11,1C8.79,1 7,2.79 7,5V17.5C7,20.54 9.46,23 12.5,23C15.54,23 18,20.54 18,17.5V6H16.5Z",plus:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",minus:"M19,13H5V11H19V13Z"},Mz={complete:"check",cancel:"cancel",close:"close",delete:"cancel",clear:"clear",success:"check_circle",info:"info",warning:"priority_high",error:"warning",prev:"chevron_left",next:"chevron_right",checkboxOn:"check_box",checkboxOff:"check_box_outline_blank",checkboxIndeterminate:"indeterminate_check_box",delimiter:"fiber_manual_record",sort:"arrow_upward",expand:"keyboard_arrow_down",menu:"menu",subgroup:"arrow_drop_down",dropdown:"arrow_drop_down",radioOn:"radio_button_checked",radioOff:"radio_button_unchecked",edit:"edit",ratingEmpty:"star_border",ratingFull:"star",ratingHalf:"star_half",loading:"cached",first:"first_page",last:"last_page",unfold:"unfold_more",file:"attach_file",plus:"add",minus:"remove"},Rz={complete:"mdi-check",cancel:"mdi-close-circle",close:"mdi-close",delete:"mdi-close-circle",clear:"mdi-close",success:"mdi-check-circle",info:"mdi-information",warning:"mdi-exclamation",error:"mdi-alert",prev:"mdi-chevron-left",next:"mdi-chevron-right",checkboxOn:"mdi-checkbox-marked",checkboxOff:"mdi-checkbox-blank-outline",checkboxIndeterminate:"mdi-minus-box",delimiter:"mdi-circle",sort:"mdi-arrow-up",expand:"mdi-chevron-down",menu:"mdi-menu",subgroup:"mdi-menu-down",dropdown:"mdi-menu-down",radioOn:"mdi-radiobox-marked",radioOff:"mdi-radiobox-blank",edit:"mdi-pencil",ratingEmpty:"mdi-star-outline",ratingFull:"mdi-star",ratingHalf:"mdi-star-half-full",loading:"mdi-cached",first:"mdi-page-first",last:"mdi-page-last",unfold:"mdi-unfold-more-horizontal",file:"mdi-paperclip",plus:"mdi-plus",minus:"mdi-minus"},G4={complete:"fas fa-check",cancel:"fas fa-times-circle",close:"fas fa-times",delete:"fas fa-times-circle",clear:"fas fa-times-circle",success:"fas fa-check-circle",info:"fas fa-info-circle",warning:"fas fa-exclamation-circle",error:"fas fa-exclamation-triangle",prev:"fas fa-chevron-left",next:"fas fa-chevron-right",checkboxOn:"fas fa-check-square",checkboxOff:"far fa-square",checkboxIndeterminate:"fas fa-minus-square",delimiter:"fas fa-circle",sort:"fas fa-sort-up",expand:"fas fa-chevron-down",menu:"fas fa-bars",subgroup:"fas fa-caret-down",dropdown:"fas fa-caret-down",radioOn:"far fa-dot-circle",radioOff:"far fa-circle",edit:"fas fa-edit",ratingEmpty:"far fa-star",ratingFull:"fas fa-star",ratingHalf:"fas fa-star-half",loading:"fas fa-sync",first:"fas fa-step-backward",last:"fas fa-step-forward",unfold:"fas fa-arrows-alt-v",file:"fas fa-paperclip",plus:"fas fa-plus",minus:"fas fa-minus"},Iz={complete:"fa fa-check",cancel:"fa fa-times-circle",close:"fa fa-times",delete:"fa fa-times-circle",clear:"fa fa-times-circle",success:"fa fa-check-circle",info:"fa fa-info-circle",warning:"fa fa-exclamation",error:"fa fa-exclamation-triangle",prev:"fa fa-chevron-left",next:"fa fa-chevron-right",checkboxOn:"fa fa-check-square",checkboxOff:"fa fa-square-o",checkboxIndeterminate:"fa fa-minus-square",delimiter:"fa fa-circle",sort:"fa fa-sort-up",expand:"fa fa-chevron-down",menu:"fa fa-bars",subgroup:"fa fa-caret-down",dropdown:"fa fa-caret-down",radioOn:"fa fa-dot-circle-o",radioOff:"fa fa-circle-o",edit:"fa fa-pencil",ratingEmpty:"fa fa-star-o",ratingFull:"fa fa-star",ratingHalf:"fa fa-star-half-o",loading:"fa fa-refresh",first:"fa fa-step-backward",last:"fa fa-step-forward",unfold:"fa fa-angle-double-down",file:"fa fa-paperclip",plus:"fa fa-plus",minus:"fa fa-minus"};function Fz(r,e){const t={};for(const s in e)t[s]={component:r,props:{icon:e[s].split(" fa-")}};return t}const Hz=Fz("font-awesome-icon",G4),Bz=Object.freeze({mdiSvg:Dz,md:Mz,mdi:Rz,fa:G4,fa4:Iz,faSvg:Hz});let q4=class Z4 extends Xa{constructor(e){super();const{iconfont:t,values:s,component:n}=e[Z4.property];this.component=n,this.iconfont=t,this.values=Gc(Bz[t],s)}};q4.property="icons";const Y4="$vuetify.",cw=Symbol("Lang fallback");function K4(r,e,t=!1,s){const n=e.replace(Y4,"");let i=at(r,n,cw);return i===cw&&(t?(Ns(`Translation key "${n}" not found in fallback`),i=e):(lr(`Translation key "${n}" not found, falling back to default`),i=K4(s,e,!0,s))),i}class Cm extends Xa{constructor(e){super(),this.defaultLocale="en";const{current:t,locales:s,t:n}=e[Cm.property];this.current=t,this.locales=s,this.translator=n||this.defaultTranslator}currentLocale(e){const t=this.locales[this.current],s=this.locales[this.defaultLocale];return K4(t,e,!1,s)}t(e,...t){return e.startsWith(Y4)?this.translator(e,...t):this.replace(e,t)}defaultTranslator(e,...t){return this.replace(this.currentLocale(e),t)}replace(e,t){return e.replace(/\{(\d+)\}/g,(s,n)=>String(t[+n]))}}Cm.property="lang";const jz={badge:"Badge",close:"Close",dataIterator:{noResultsText:"No matching records found",loadingText:"Loading items..."},dataTable:{itemsPerPageText:"Rows per page:",ariaLabel:{sortDescending:"Sorted descending.",sortAscending:"Sorted ascending.",sortNone:"Not sorted.",activateNone:"Activate to remove sorting.",activateDescending:"Activate to sort descending.",activateAscending:"Activate to sort ascending."},sortBy:"Sort by"},dataFooter:{itemsPerPageText:"Items per page:",itemsPerPageAll:"All",nextPage:"Next page",prevPage:"Previous page",firstPage:"First page",lastPage:"Last page",pageText:"{0}-{1} of {2}"},datePicker:{itemsSelected:"{0} selected",nextMonthAriaLabel:"Next month",nextYearAriaLabel:"Next year",prevMonthAriaLabel:"Previous month",prevYearAriaLabel:"Previous year"},noDataText:"No data available",carousel:{prev:"Previous visual",next:"Next visual",ariaLabel:{delimiter:"Carousel slide {0} of {1}"}},calendar:{moreEvents:"{0} more"},input:{clear:"Clear {0}",prependAction:"{0} prepended action",appendAction:"{0} appended action"},fileInput:{counter:"{0} files",counterSize:"{0} files ({1} in total)"},timePicker:{am:"AM",pm:"PM"},pagination:{ariaLabel:{wrapper:"Pagination Navigation",next:"Next page",previous:"Previous page",page:"Goto Page {0}",currentPage:"Current Page, Page {0}"}},rating:{ariaLabel:{icon:"Rating {0} of {1}"}},loading:"Loading..."},Vz={breakpoint:{mobileBreakpoint:1264,scrollBarWidth:16,thresholds:{xs:600,sm:960,md:1280,lg:1920}},icons:{iconfont:"mdi",values:{}},lang:{current:"en",locales:{en:jz},t:void 0},rtl:!1,theme:{dark:!1,default:"light",disable:!1,options:{cspNonce:void 0,customProperties:void 0,minifyTheme:void 0,themeCache:void 0,variations:!0},themes:{light:{primary:"#1976D2",secondary:"#424242",accent:"#82B1FF",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"},dark:{primary:"#2196F3",secondary:"#424242",accent:"#FF4081",error:"#FF5252",info:"#2196F3",success:"#4CAF50",warning:"#FB8C00"}}}};class X4 extends Xa{constructor(e,t){super();const s=Gc({},Vz),{userPreset:n}=t,{preset:i={},...a}=n;i.preset!=null&&lr("Global presets do not support the **preset** option, it can be safely omitted"),t.preset=Gc(Gc(s,i),a)}}X4.property="presets";const Nz=[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]],zz=r=>r<=.0031308?r*12.92:1.055*r**(1/2.4)-.055,Uz=[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],Wz=r=>r<=.04045?r/12.92:((r+.055)/1.055)**2.4;function Q4(r){const e=Array(3),t=zz,s=Nz;for(let n=0;n<3;++n)e[n]=Math.round(vz(t(s[n][0]*r[0]+s[n][1]*r[1]+s[n][2]*r[2]))*255);return(e[0]<<16)+(e[1]<<8)+(e[2]<<0)}function J4(r){const e=[0,0,0],t=Wz,s=Uz,n=t((r>>16&255)/255),i=t((r>>8&255)/255),a=t((r>>0&255)/255);for(let o=0;o<3;++o)e[o]=s[o][0]*n+s[o][1]*i+s[o][2]*a;return e}function uw(r){return!!r&&!!r.match(/^(#|var\(--|(rgb|hsl)a?\()/)}function Nv(r){let e;if(typeof r=="number")e=r;else if(typeof r=="string"){let t=r[0]==="#"?r.substring(1):r;t.length===3&&(t=t.split("").map(s=>s+s).join("")),t.length!==6&&lr(`'${r}' is not a valid rgb color`),e=parseInt(t,16)}else throw new TypeError(`Colors can only be numbers or strings, recieved ${r==null?r:r.constructor.name} instead`);return e<0?(lr(`Colors cannot be negative: '${r}'`),e=0):(e>16777215||isNaN(e))&&(lr(`'${r}' is not a valid rgb color`),e=16777215),e}function qc(r){let e=r.toString(16);return e.length<6&&(e="0".repeat(6-e.length)+e),"#"+e}function Gz(r){return qc(Nv(r))}const Vh=.20689655172413793,qz=r=>r>Vh**3?Math.cbrt(r):r/(3*Vh**2)+4/29,Zz=r=>r>Vh?r**3:3*Vh**2*(r-4/29);function e6(r){const e=qz,t=e(r[1]);return[116*t-16,500*(e(r[0]/.95047)-t),200*(t-e(r[2]/1.08883))]}function t6(r){const e=Zz,t=(r[0]+16)/116;return[e(t+r[1]/500)*.95047,e(t),e(t-r[2]/200)*1.08883]}function r6(r,e=!1,t=!0){const{anchor:s,...n}=r,i=Object.keys(n),a={};for(let o=0;o<i.length;++o){const l=i[o],c=r[l];c!=null&&(t?e?(l==="base"||l.startsWith("lighten")||l.startsWith("darken"))&&(a[l]=Gz(c)):typeof c=="object"?a[l]=r6(c,!0,t):a[l]=Qz(l,Nv(c)):a[l]={base:qc(Nv(c))})}return e||(a.anchor=s||a.base||a.primary.base),a}const Yz=(r,e)=>`
.v-application .${r} {
background-color: ${e} !important;
border-color: ${e} !important;
}
.v-application .${r}--text {
color: ${e} !important;
caret-color: ${e} !important;
}`,Kz=(r,e,t)=>{const[s,n]=e.split(/(\d)/,2);return`
.v-application .${r}.${s}-${n} {
background-color: ${t} !important;
border-color: ${t} !important;
}
.v-application .${r}--text.text--${s}-${n} {
color: ${t} !important;
caret-color: ${t} !important;
}`},Qp=(r,e="base")=>`--v-${r}-${e}`,lg=(r,e="base")=>`var(${Qp(r,e)})`;function Xz(r,e=!1){const{anchor:t,...s}=r,n=Object.keys(s);if(!n.length)return"";let i="",a="";const o=e?lg("anchor"):t;a+=`.v-application a { color: ${o}; }`,e&&(i+=` ${Qp("anchor")}: ${t};
`);for(let l=0;l<n.length;++l){const c=n[l],u=r[c];a+=Yz(c,e?lg(c):u.base),e&&(i+=` ${Qp(c)}: ${u.base};
`);const d=Sm(u);for(let p=0;p<d.length;++p){const h=d[p],m=u[h];h!=="base"&&(a+=Kz(c,h,e?lg(c,h):m),e&&(i+=` ${Qp(c,h)}: ${m};
`))}}return e&&(i=`:root {
${i}}
`),i+a}function Qz(r,e){const t={base:qc(e)};for(let s=5;s>0;--s)t[`lighten${s}`]=qc(Jz(e,s));for(let s=1;s<=4;++s)t[`darken${s}`]=qc(eU(e,s));return t}function Jz(r,e){const t=e6(J4(r));return t[0]=t[0]+e*10,Q4(t6(t))}function eU(r,e){const t=e6(J4(r));return t[0]=t[0]-e*10,Q4(t6(t))}class Pm extends Xa{constructor(e){super(),this.disabled=!1,this.isDark=null,this.unwatch=null,this.vueMeta=null;const{dark:t,disable:s,options:n,themes:i}=e[Pm.property];if(this.dark=!!t,this.defaults=this.themes=i,this.options=n,s){this.disabled=!0;return}this.themes={dark:this.fillVariant(i.dark,!0),light:this.fillVariant(i.light,!1)}}set css(e){if(this.vueMeta){this.isVueMeta23&&this.applyVueMeta23();return}this.checkOrCreateStyleElement()&&(this.styleEl.innerHTML=e)}set dark(e){const t=this.isDark;this.isDark=e,t!=null&&this.applyTheme()}get dark(){return!!this.isDark}applyTheme(){if(this.disabled)return this.clearCss();this.css=this.generatedStyles}clearCss(){this.css=""}init(e,t){this.disabled||(e.$meta?this.initVueMeta(e):t&&this.initSSR(t),this.initTheme(e))}setTheme(e,t){this.themes[e]=Object.assign(this.themes[e],t),this.applyTheme()}resetThemes(){this.themes.light=Object.assign({},this.defaults.light),this.themes.dark=Object.assign({},this.defaults.dark),this.applyTheme()}checkOrCreateStyleElement(){return this.styleEl=document.getElementById("vuetify-theme-stylesheet"),this.styleEl?!0:(this.genStyleElement(),!!this.styleEl)}fillVariant(e={},t){const s=this.themes[t?"dark":"light"];return Object.assign({},s,e)}genStyleElement(){typeof document>"u"||(this.styleEl=document.createElement("style"),this.styleEl.type="text/css",this.styleEl.id="vuetify-theme-stylesheet",this.options.cspNonce&&this.styleEl.setAttribute("nonce",this.options.cspNonce),document.head.appendChild(this.styleEl))}initVueMeta(e){if(this.vueMeta=e.$meta(),this.isVueMeta23){e.$nextTick(()=>{this.applyVueMeta23()});return}const t=typeof this.vueMeta.getOptions=="function"?this.vueMeta.getOptions().keyName:"metaInfo",s=e.$options[t]||{};e.$options[t]=()=>{s.style=s.style||[];const n=s.style.find(i=>i.id==="vuetify-theme-stylesheet");return n?n.cssText=this.generatedStyles:s.style.push({cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:(this.options||{}).cspNonce}),s}}applyVueMeta23(){const{set:e}=this.vueMeta.addApp("vuetify");e({style:[{cssText:this.generatedStyles,type:"text/css",id:"vuetify-theme-stylesheet",nonce:this.options.cspNonce}]})}initSSR(e){const t=this.options.cspNonce?` nonce="${this.options.cspNonce}"`:"";e.head=e.head||"",e.head+=`<style type="text/css" id="vuetify-theme-stylesheet"${t}>${this.generatedStyles}</style>`}initTheme(e){typeof document>"u"||(this.unwatch&&(this.unwatch(),this.unwatch=null),e.$once("hook:created",()=>{const t=b.observable({themes:this.themes});this.unwatch=e.$watch(()=>t.themes,()=>this.applyTheme(),{deep:!0})}),this.applyTheme())}get currentTheme(){const e=this.dark?"dark":"light";return this.themes[e]}get generatedStyles(){const e=this.parsedTheme,t=this.options||{};let s;return t.themeCache!=null&&(s=t.themeCache.get(e),s!=null)||(s=Xz(e,t.customProperties),t.minifyTheme!=null&&(s=t.minifyTheme(s)),t.themeCache!=null&&t.themeCache.set(e,s)),s}get parsedTheme(){return r6(this.currentTheme||{},void 0,rb(this.options,["variations"],!0))}get isVueMeta23(){return typeof this.vueMeta.addApp=="function"}}Pm.property="theme";class Qa{constructor(e={}){this.framework={isHydrating:!1},this.installed=[],this.preset={},this.userPreset={},this.userPreset=e,this.use(X4),this.use(N4),this.use(xm),this.use(W4),this.use(q4),this.use(Cm),this.use(Pm)}init(e,t){this.installed.forEach(s=>{const n=this.framework[s];n.framework=this.framework,n.init(e,t)}),this.framework.rtl=!!this.preset.rtl}use(e){const t=e.property;this.installed.includes(t)||(this.framework[t]=new e(this.preset,this),this.installed.push(t))}}Qa.install=Vv;Qa.installed=!1;Qa.version="2.7.2";Qa.config={silent:!1};function s6(r,e,t){if(!Qa.config.silent){if(e){if(e.$_alreadyWarned=e.$_alreadyWarned||[],e.$_alreadyWarned.includes(r))return;e.$_alreadyWarned.push(r)}return`[Vuetify] ${r}`+(e?sU(e):"")}}function lr(r,e,t){const s=s6(r,e);s!=null&&console.warn(s)}function Ns(r,e,t){const s=s6(r,e);s!=null&&console.error(s)}function n6(r,e,t,s){lr(`[UPGRADE] '${r}' is deprecated, use '${e}' instead.`,t)}function Zs(r,e,t,s){Ns(`[BREAKING] '${r}' has been removed, use '${e}' instead. For more information, see the upgrade guide https://github.com/vuetifyjs/vuetify/releases/tag/v2.0.0#user-content-upgrade-guide`,t)}function Ll(r,e,t){lr(`[REMOVED] '${r}' has been removed. You can safely omit it.`,e)}const tU=/(?:^|[-_])(\w)/g,rU=r=>r.replace(tU,e=>e.toUpperCase()).replace(/[-_]/g,"");function cg(r,e){if(r.$root===r)return"<Root>";const t=typeof r=="function"&&r.cid!=null?r.options:r._isVue?r.$options||r.constructor.options:r||{};let s=t.name||t._componentTag;const n=t.__file;if(!s&&n){const i=n.match(/([^/\\]+)\.vue$/);s=i&&i[1]}return(s?`<${rU(s)}>`:"<Anonymous>")+(n&&e!==!1?` at ${n}`:"")}function sU(r){if(r._isVue&&r.$parent){const e=[];let t=0;for(;r;){if(e.length>0){const s=e[e.length-1];if(s.constructor===r.constructor){t++,r=r.$parent;continue}else t>0&&(e[e.length-1]=[s,t],t=0)}e.push(r),r=r.$parent}return`
found in
`+e.map((s,n)=>`${n===0?"---> ":" ".repeat(5+n*2)}${Array.isArray(s)?`${cg(s[0])}... (${s[1]} recursive calls)`:cg(s)}`).join(`
`)}else return`
(found in ${cg(r)})`}const dt=b.extend({name:"colorable",props:{color:String},methods:{setBackgroundColor(r,e={}){return typeof e.style=="string"?(Ns("style must be an object",this),e):typeof e.class=="string"?(Ns("class must be an object",this),e):(uw(r)?e.style={...e.style,"background-color":`${r}`,"border-color":`${r}`}:r&&(e.class={...e.class,[r]:!0}),e)},setTextColor(r,e={}){if(typeof e.style=="string")return Ns("style must be an object",this),e;if(typeof e.class=="string")return Ns("class must be an object",this),e;if(uw(r))e.style={...e.style,color:`${r}`,"caret-color":`${r}`};else if(r){const[t,s]=r.toString().trim().split(" ",2);e.class={...e.class,[t+"--text"]:!0},s&&(e.class["text--"+s]=!0)}return e}}}),i6=b.extend({name:"elevatable",props:{elevation:[Number,String]},computed:{computedElevation(){return this.elevation},elevationClasses(){const r=this.computedElevation;return r==null?{}:isNaN(parseInt(r))?{}:{[`elevation-${this.elevation}`]:!0}}}}),sb=b.extend({name:"measurable",props:{height:[Number,String],maxHeight:[Number,String],maxWidth:[Number,String],minHeight:[Number,String],minWidth:[Number,String],width:[Number,String]},computed:{measurableStyles(){const r={},e=ge(this.height),t=ge(this.minHeight),s=ge(this.minWidth),n=ge(this.maxHeight),i=ge(this.maxWidth),a=ge(this.width);return e&&(r.height=e),t&&(r.minHeight=t),s&&(r.minWidth=s),n&&(r.maxHeight=n),i&&(r.maxWidth=i),a&&(r.width=a),r}}}),a6=b.extend({name:"roundable",props:{rounded:[Boolean,String],tile:Boolean},computed:{roundedClasses(){const r=[],e=typeof this.rounded=="string"?String(this.rounded):this.rounded===!0;if(this.tile)r.push("rounded-0");else if(typeof e=="string"){const t=e.split(" ");for(const s of t)r.push(`rounded-${s}`)}else e&&r.push("rounded");return r.length>0?{[r.join(" ")]:!0}:{}}}}),ut=be(Pl,dt,i6,sb,a6,Ke).extend({name:"v-sheet",props:{outlined:Boolean,shaped:Boolean,tag:{type:String,default:"div"}},computed:{classes(){return{"v-sheet":!0,"v-sheet--outlined":this.outlined,"v-sheet--shaped":this.shaped,...this.themeClasses,...this.elevationClasses,...this.roundedClasses}},styles(){return this.measurableStyles}},render(r){const e={class:this.classes,style:this.styles,on:this.listeners$};return r(this.tag,this.setBackgroundColor(this.color,e),this.$slots.default)}});function nU(r,e,t){if(typeof window>"u"||!("IntersectionObserver"in window))return;const s=e.modifiers||{},n=e.value,{handler:i,options:a}=typeof n=="object"?n:{handler:n,options:{}},o=new IntersectionObserver((l=[],c)=>{var u;const d=(u=r._observe)===null||u===void 0?void 0:u[t.context._uid];if(!d)return;const p=l.some(h=>h.isIntersecting);i&&(!s.quiet||d.init)&&(!s.once||p||d.init)&&i(l,c,p),p&&s.once?o6(r,e,t):d.init=!0},a);r._observe=Object(r._observe),r._observe[t.context._uid]={init:!1,observer:o},o.observe(r)}function o6(r,e,t){var s;const n=(s=r._observe)===null||s===void 0?void 0:s[t.context._uid];n&&(n.observer.unobserve(r),delete r._observe[t.context._uid])}const pu={inserted:nU,unbind:o6},ug=be(sb).extend({name:"v-responsive",props:{aspectRatio:[String,Number],contentClass:String},computed:{computedAspectRatio(){return Number(this.aspectRatio)},aspectStyle(){return this.computedAspectRatio?{paddingBottom:1/this.computedAspectRatio*100+"%"}:void 0},__cachedSizer(){return this.aspectStyle?this.$createElement("div",{style:this.aspectStyle,staticClass:"v-responsive__sizer"}):[]}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-responsive__content",class:this.contentClass},me(this))}},render(r){return r("div",{staticClass:"v-responsive",style:this.measurableStyles,on:this.$listeners},[this.__cachedSizer,this.genContent()])}}),dw={styleList:/;(?![^(]*\))/g,styleProp:/:(.*)/};function pw(r){const e={};for(const t of r.split(dw.styleList)){let[s,n]=t.split(dw.styleProp);s=s.trim(),s&&(typeof n=="string"&&(n=n.trim()),e[H4(s)]=n)}return e}function os(){const r={};let e=arguments.length,t;for(;e--;)for(t of Object.keys(arguments[e]))switch(t){case"class":case"directives":arguments[e][t]&&(r[t]=c6(r[t],arguments[e][t]));break;case"style":arguments[e][t]&&(r[t]=l6(r[t],arguments[e][t]));break;case"staticClass":if(!arguments[e][t])break;r[t]===void 0&&(r[t]=""),r[t]&&(r[t]+=" "),r[t]+=arguments[e][t].trim();break;case"on":case"nativeOn":arguments[e][t]&&(r[t]=u6(r[t],arguments[e][t]));break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":if(!arguments[e][t])break;r[t]||(r[t]={}),r[t]={...arguments[e][t],...r[t]};break;default:r[t]||(r[t]=arguments[e][t])}return r}function l6(r,e){return r?e?(r=xr(typeof r=="string"?pw(r):r),r.concat(typeof e=="string"?pw(e):e)):r:e}function c6(r,e){return e?r&&r?xr(r).concat(e):e:r}function u6(...r){if(!r[0])return r[1];if(!r[1])return r[0];const e={};for(let t=2;t--;){const s=r[t];for(const n in s)s[n]&&(e[n]?e[n]=[].concat(s[n],e[n]):e[n]=s[n])}return e}const hw=typeof window<"u"&&"IntersectionObserver"in window,nb=be(ug,Ke).extend({name:"v-img",directives:{intersect:pu},props:{alt:String,contain:Boolean,eager:Boolean,gradient:String,lazySrc:String,options:{type:Object,default:()=>({root:void 0,rootMargin:void 0,threshold:void 0})},position:{type:String,default:"center center"},sizes:String,src:{type:[String,Object],default:""},srcset:String,transition:{type:[Boolean,String],default:"fade-transition"}},data(){return{currentSrc:"",image:null,isLoading:!0,calculatedAspectRatio:void 0,naturalWidth:void 0,hasError:!1}},computed:{computedAspectRatio(){return Number(this.normalisedSrc.aspect||this.calculatedAspectRatio)},normalisedSrc(){return this.src&&typeof this.src=="object"?{src:this.src.src,srcset:this.srcset||this.src.srcset,lazySrc:this.lazySrc||this.src.lazySrc,aspect:Number(this.aspectRatio||this.src.aspect)}:{src:this.src,srcset:this.srcset,lazySrc:this.lazySrc,aspect:Number(this.aspectRatio||0)}},__cachedImage(){if(!(this.normalisedSrc.src||this.normalisedSrc.lazySrc||this.gradient))return[];const r=[],e=this.isLoading?this.normalisedSrc.lazySrc:this.currentSrc;this.gradient&&r.push(`linear-gradient(${this.gradient})`),e&&r.push(`url("${e}")`);const t=this.$createElement("div",{staticClass:"v-image__image",class:{"v-image__image--preload":this.isLoading,"v-image__image--contain":this.contain,"v-image__image--cover":!this.contain},style:{backgroundImage:r.join(", "),backgroundPosition:this.position},key:+this.isLoading});return this.transition?this.$createElement("transition",{attrs:{name:this.transition,mode:"in-out"}},[t]):t}},watch:{src(){this.isLoading?this.loadImage():this.init(void 0,void 0,!0)},"$vuetify.breakpoint.width":"getSrc"},mounted(){this.init()},methods:{init(r,e,t){if(!(hw&&!t&&!this.eager)){if(this.normalisedSrc.lazySrc){const s=new Image;s.src=this.normalisedSrc.lazySrc,this.pollForSize(s,null)}this.normalisedSrc.src&&this.loadImage()}},onLoad(){this.getSrc(),this.isLoading=!1,this.$emit("load",this.src),this.image&&(this.normalisedSrc.src.endsWith(".svg")||this.normalisedSrc.src.startsWith("data:image/svg+xml"))&&(this.image.naturalHeight&&this.image.naturalWidth?(this.naturalWidth=this.image.naturalWidth,this.calculatedAspectRatio=this.image.naturalWidth/this.image.naturalHeight):this.calculatedAspectRatio=1)},onError(){this.hasError=!0,this.$emit("error",this.src)},getSrc(){this.image&&(this.currentSrc=this.image.currentSrc||this.image.src)},loadImage(){const r=new Image;this.image=r,r.onload=()=>{r.decode?r.decode().catch(e=>{lr(`Failed to decode image, trying to render anyway
src: ${this.normalisedSrc.src}`+(e.message?`
Original error: ${e.message}`:""),this)}).then(this.onLoad):this.onLoad()},r.onerror=this.onError,this.hasError=!1,this.sizes&&(r.sizes=this.sizes),this.normalisedSrc.srcset&&(r.srcset=this.normalisedSrc.srcset),r.src=this.normalisedSrc.src,this.$emit("loadstart",this.normalisedSrc.src),this.aspectRatio||this.pollForSize(r),this.getSrc()},pollForSize(r,e=100){const t=()=>{const{naturalHeight:s,naturalWidth:n}=r;s||n?(this.naturalWidth=n,this.calculatedAspectRatio=n/s):!r.complete&&this.isLoading&&!this.hasError&&e!=null&&setTimeout(t,e)};t()},genContent(){const r=ug.options.methods.genContent.call(this);return this.naturalWidth&&this._b(r.data,"div",{style:{width:`${this.naturalWidth}px`}}),r},__genPlaceholder(){const r=me(this,"placeholder");if(r){const e=this.isLoading?[this.$createElement("div",{staticClass:"v-image__placeholder"},r)]:[];return this.transition?this.$createElement("transition",{props:{appear:!0,name:this.transition}},e):e[0]}}},render(r){const e=ug.options.render.call(this,r),t=os(e.data,{staticClass:"v-image",attrs:{"aria-label":this.alt,role:this.alt?"img":void 0},class:this.themeClasses,directives:hw?[{name:"intersect",modifiers:{once:!0},value:{handler:this.init,options:this.options}}]:void 0});return e.children=[this.__cachedSizer,this.__cachedImage,this.__genPlaceholder(),this.genContent()],r(e.tag,t,e.children)}}),qt=ut.extend({name:"v-toolbar",props:{absolute:Boolean,bottom:Boolean,collapse:Boolean,dense:Boolean,extended:Boolean,extensionHeight:{default:48,type:[Number,String]},flat:Boolean,floating:Boolean,prominent:Boolean,short:Boolean,src:{type:[String,Object],default:""},tag:{type:String,default:"header"}},data:()=>({isExtended:!1}),computed:{computedHeight(){const r=this.computedContentHeight;if(!this.isExtended)return r;const e=parseInt(this.extensionHeight);return this.isCollapsed?r:r+(isNaN(e)?0:e)},computedContentHeight(){return this.height?parseInt(this.height):this.isProminent&&this.dense?96:this.isProminent&&this.short?112:this.isProminent?128:this.dense?48:this.short||this.$vuetify.breakpoint.smAndDown?56:64},classes(){return{...ut.options.computed.classes.call(this),"v-toolbar":!0,"v-toolbar--absolute":this.absolute,"v-toolbar--bottom":this.bottom,"v-toolbar--collapse":this.collapse,"v-toolbar--collapsed":this.isCollapsed,"v-toolbar--dense":this.dense,"v-toolbar--extended":this.isExtended,"v-toolbar--flat":this.flat,"v-toolbar--floating":this.floating,"v-toolbar--prominent":this.isProminent}},isCollapsed(){return this.collapse},isProminent(){return this.prominent},styles(){return{...this.measurableStyles,height:ge(this.computedHeight)}}},created(){[["app","<v-app-bar app>"],["manual-scroll",'<v-app-bar :value="false">'],["clipped-left","<v-app-bar clipped-left>"],["clipped-right","<v-app-bar clipped-right>"],["inverted-scroll","<v-app-bar inverted-scroll>"],["scroll-off-screen","<v-app-bar scroll-off-screen>"],["scroll-target","<v-app-bar scroll-target>"],["scroll-threshold","<v-app-bar scroll-threshold>"],["card","<v-app-bar flat>"]].forEach(([e,t])=>{this.$attrs.hasOwnProperty(e)&&Zs(e,t,this)})},methods:{genBackground(){const r={height:ge(this.computedHeight),src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img({props:r}):this.$createElement(nb,{props:r});return this.$createElement("div",{staticClass:"v-toolbar__image"},[e])},genContent(){return this.$createElement("div",{staticClass:"v-toolbar__content",style:{height:ge(this.computedContentHeight)}},me(this))},genExtension(){return this.$createElement("div",{staticClass:"v-toolbar__extension",style:{height:ge(this.extensionHeight)}},me(this,"extension"))}},render(r){this.isExtended=this.extended||!!this.$scopedSlots.extension;const e=[this.genContent()],t=this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,on:this.$listeners});return this.isExtended&&e.push(this.genExtension()),(this.src||this.$scopedSlots.img)&&e.unshift(this.genBackground()),r(this.tag,t,e)}});function iU(r,e,t){const{self:s=!1}=e.modifiers||{},n=e.value,i=typeof n=="object"&&n.options||{passive:!0},a=typeof n=="function"||"handleEvent"in n?n:n.handler,o=s?r:e.arg?document.querySelector(e.arg):window;o&&(o.addEventListener("scroll",a,i),r._onScroll=Object(r._onScroll),r._onScroll[t.context._uid]={handler:a,options:i,target:s?void 0:o})}function aU(r,e,t){var s;if(!(!((s=r._onScroll)===null||s===void 0)&&s[t.context._uid]))return;const{handler:n,options:i,target:a=r}=r._onScroll[t.context._uid];a.removeEventListener("scroll",n,i),delete r._onScroll[t.context._uid]}const ib={inserted:iU,unbind:aU},fw={absolute:Boolean,bottom:Boolean,fixed:Boolean,left:Boolean,right:Boolean,top:Boolean};function Al(r=[]){return b.extend({name:"positionable",props:r.length?dz(fw,r):fw})}const oU=Al();function ab(r,e=[]){return be(Al(["absolute","fixed"])).extend({name:"applicationable",props:{app:Boolean},computed:{applicationProperty(){return r}},watch:{app(t,s){s?this.removeApplication(!0):this.callUpdate()},applicationProperty(t,s){this.$vuetify.application.unregister(this._uid,s)}},activated(){this.callUpdate()},created(){for(let t=0,s=e.length;t<s;t++)this.$watch(e[t],this.callUpdate);this.callUpdate()},mounted(){this.callUpdate()},deactivated(){this.removeApplication()},destroyed(){this.removeApplication()},methods:{callUpdate(){this.app&&this.$vuetify.application.register(this._uid,this.applicationProperty,this.updateApplication())},removeApplication(t=!1){!t&&!this.app||this.$vuetify.application.unregister(this._uid,this.applicationProperty)},updateApplication:()=>0}})}function Nh(r){if(typeof r.getRootNode!="function"){for(;r.parentNode;)r=r.parentNode;return r!==document?null:document}const e=r.getRootNode();return e!==document&&e.getRootNode({composed:!0})!==document?null:e}function lU(){return!0}function d6(r,e,t){if(!r||p6(r,t)===!1)return!1;const s=Nh(e);if(typeof ShadowRoot<"u"&&s instanceof ShadowRoot&&s.host===r.target)return!1;const n=(typeof t.value=="object"&&t.value.include||(()=>[]))();return n.push(e),!n.some(i=>i.contains(r.target))}function p6(r,e){return(typeof e.value=="object"&&e.value.closeConditional||lU)(r)}function cU(r,e,t){const s=typeof t.value=="function"?t.value:t.value.handler;e._clickOutside.lastMousedownWasOutside&&d6(r,e,t)&&setTimeout(()=>{p6(r,t)&&s&&s(r)},0)}function mw(r,e){const t=Nh(r);e(document),typeof ShadowRoot<"u"&&t instanceof ShadowRoot&&e(t)}const fd={inserted(r,e,t){const s=i=>cU(i,r,e),n=i=>{r._clickOutside.lastMousedownWasOutside=d6(i,r,e)};mw(r,i=>{i.addEventListener("click",s,!0),i.addEventListener("mousedown",n,!0)}),r._clickOutside||(r._clickOutside={lastMousedownWasOutside:!0}),r._clickOutside[t.context._uid]={onClick:s,onMousedown:n}},unbind(r,e,t){r._clickOutside&&(mw(r,s=>{var n;if(!s||!(!((n=r._clickOutside)===null||n===void 0)&&n[t.context._uid]))return;const{onClick:i,onMousedown:a}=r._clickOutside[t.context._uid];s.removeEventListener("click",i,!0),s.removeEventListener("mousedown",a,!0)}),delete r._clickOutside[t.context._uid])}};function uU(r,e,t){const s=e.value,n=e.options||{passive:!0};window.addEventListener("resize",s,n),r._onResize=Object(r._onResize),r._onResize[t.context._uid]={callback:s,options:n},(!e.modifiers||!e.modifiers.quiet)&&s()}function dU(r,e,t){var s;if(!(!((s=r._onResize)===null||s===void 0)&&s[t.context._uid]))return;const{callback:n,options:i}=r._onResize[t.context._uid];window.removeEventListener("resize",n,i),delete r._onResize[t.context._uid]}const md={inserted:uU,unbind:dU},pU=80;function gw(r,e){r.style.transform=e,r.style.webkitTransform=e}function zv(r){return r.constructor.name==="TouchEvent"}function h6(r){return r.constructor.name==="KeyboardEvent"}const hU=(r,e,t={})=>{let s=0,n=0;if(!h6(r)){const d=e.getBoundingClientRect(),p=zv(r)?r.touches[r.touches.length-1]:r;s=p.clientX-d.left,n=p.clientY-d.top}let i=0,a=.3;e._ripple&&e._ripple.circle?(a=.15,i=e.clientWidth/2,i=t.center?i:i+Math.sqrt((s-i)**2+(n-i)**2)/4):i=Math.sqrt(e.clientWidth**2+e.clientHeight**2)/2;const o=`${(e.clientWidth-i*2)/2}px`,l=`${(e.clientHeight-i*2)/2}px`,c=t.center?o:`${s-i}px`,u=t.center?l:`${n-i}px`;return{radius:i,scale:a,x:c,y:u,centerX:o,centerY:l}},zh={show(r,e,t={}){if(!e._ripple||!e._ripple.enabled)return;const s=document.createElement("span"),n=document.createElement("span");s.appendChild(n),s.className="v-ripple__container",t.class&&(s.className+=` ${t.class}`);const{radius:i,scale:a,x:o,y:l,centerX:c,centerY:u}=hU(r,e,t),d=`${i*2}px`;n.className="v-ripple__animation",n.style.width=d,n.style.height=d,e.appendChild(s);const p=window.getComputedStyle(e);p&&p.position==="static"&&(e.style.position="relative",e.dataset.previousPosition="static"),n.classList.add("v-ripple__animation--enter"),n.classList.add("v-ripple__animation--visible"),gw(n,`translate(${o}, ${l}) scale3d(${a},${a},${a})`),n.dataset.activated=String(performance.now()),setTimeout(()=>{n.classList.remove("v-ripple__animation--enter"),n.classList.add("v-ripple__animation--in"),gw(n,`translate(${c}, ${u}) scale3d(1,1,1)`)},0)},hide(r){if(!r||!r._ripple||!r._ripple.enabled)return;const e=r.getElementsByClassName("v-ripple__animation");if(e.length===0)return;const t=e[e.length-1];if(t.dataset.isHiding)return;t.dataset.isHiding="true";const s=performance.now()-Number(t.dataset.activated),n=Math.max(250-s,0);setTimeout(()=>{t.classList.remove("v-ripple__animation--in"),t.classList.add("v-ripple__animation--out"),setTimeout(()=>{var i;r.getElementsByClassName("v-ripple__animation").length===1&&r.dataset.previousPosition&&(r.style.position=r.dataset.previousPosition,delete r.dataset.previousPosition),((i=t.parentNode)===null||i===void 0?void 0:i.parentNode)===r&&r.removeChild(t.parentNode)},300)},n)}};function f6(r){return typeof r>"u"||!!r}function hu(r){const e={},t=r.currentTarget;if(!(!t||!t._ripple||t._ripple.touched||r.rippleStop)){if(r.rippleStop=!0,zv(r))t._ripple.touched=!0,t._ripple.isTouch=!0;else if(t._ripple.isTouch)return;if(e.center=t._ripple.centered||h6(r),t._ripple.class&&(e.class=t._ripple.class),zv(r)){if(t._ripple.showTimerCommit)return;t._ripple.showTimerCommit=()=>{zh.show(r,t,e)},t._ripple.showTimer=window.setTimeout(()=>{t&&t._ripple&&t._ripple.showTimerCommit&&(t._ripple.showTimerCommit(),t._ripple.showTimerCommit=null)},pU)}else zh.show(r,t,e)}}function ss(r){const e=r.currentTarget;if(!(!e||!e._ripple)){if(window.clearTimeout(e._ripple.showTimer),r.type==="touchend"&&e._ripple.showTimerCommit){e._ripple.showTimerCommit(),e._ripple.showTimerCommit=null,e._ripple.showTimer=setTimeout(()=>{ss(r)});return}window.setTimeout(()=>{e._ripple&&(e._ripple.touched=!1)}),zh.hide(e)}}function m6(r){const e=r.currentTarget;!e||!e._ripple||(e._ripple.showTimerCommit&&(e._ripple.showTimerCommit=null),window.clearTimeout(e._ripple.showTimer))}let fu=!1;function g6(r){!fu&&(r.keyCode===Le.enter||r.keyCode===Le.space)&&(fu=!0,hu(r))}function v6(r){fu=!1,ss(r)}function _6(r){fu===!0&&(fu=!1,ss(r))}function y6(r,e,t){const s=f6(e.value);s||zh.hide(r),r._ripple=r._ripple||{},r._ripple.enabled=s;const n=e.value||{};n.center&&(r._ripple.centered=!0),n.class&&(r._ripple.class=e.value.class),n.circle&&(r._ripple.circle=n.circle),s&&!t?(r.addEventListener("touchstart",hu,{passive:!0}),r.addEventListener("touchend",ss,{passive:!0}),r.addEventListener("touchmove",m6,{passive:!0}),r.addEventListener("touchcancel",ss),r.addEventListener("mousedown",hu),r.addEventListener("mouseup",ss),r.addEventListener("mouseleave",ss),r.addEventListener("keydown",g6),r.addEventListener("keyup",v6),r.addEventListener("blur",_6),r.addEventListener("dragstart",ss,{passive:!0})):!s&&t&&b6(r)}function b6(r){r.removeEventListener("mousedown",hu),r.removeEventListener("touchstart",hu),r.removeEventListener("touchend",ss),r.removeEventListener("touchmove",m6),r.removeEventListener("touchcancel",ss),r.removeEventListener("mouseup",ss),r.removeEventListener("mouseleave",ss),r.removeEventListener("keydown",g6),r.removeEventListener("keyup",v6),r.removeEventListener("dragstart",ss),r.removeEventListener("blur",_6)}function fU(r,e,t){y6(r,e,!1)}function mU(r){delete r._ripple,b6(r)}function gU(r,e){if(e.value===e.oldValue)return;const t=f6(e.oldValue);y6(r,e,t)}const ls={bind:fU,unbind:mU,update:gU},vU=r=>{const{touchstartX:e,touchendX:t,touchstartY:s,touchendY:n}=r,i=.5,a=16;r.offsetX=t-e,r.offsetY=n-s,Math.abs(r.offsetY)<i*Math.abs(r.offsetX)&&(r.left&&t<e-a&&r.left(r),r.right&&t>e+a&&r.right(r)),Math.abs(r.offsetX)<i*Math.abs(r.offsetY)&&(r.up&&n<s-a&&r.up(r),r.down&&n>s+a&&r.down(r))};function _U(r,e){const t=r.changedTouches[0];e.touchstartX=t.clientX,e.touchstartY=t.clientY,e.start&&e.start(Object.assign(r,e))}function yU(r,e){const t=r.changedTouches[0];e.touchendX=t.clientX,e.touchendY=t.clientY,e.end&&e.end(Object.assign(r,e)),vU(e)}function bU(r,e){const t=r.changedTouches[0];e.touchmoveX=t.clientX,e.touchmoveY=t.clientY,e.move&&e.move(Object.assign(r,e))}function $U(r){const e={touchstartX:0,touchstartY:0,touchendX:0,touchendY:0,touchmoveX:0,touchmoveY:0,offsetX:0,offsetY:0,left:r.left,right:r.right,up:r.up,down:r.down,start:r.start,move:r.move,end:r.end};return{touchstart:t=>_U(t,e),touchend:t=>yU(t,e),touchmove:t=>bU(t,e)}}function SU(r,e,t){const s=e.value,n=s.parent?r.parentElement:r,i=s.options||{passive:!0};if(!n)return;const a=$U(e.value);n._touchHandlers=Object(n._touchHandlers),n._touchHandlers[t.context._uid]=a,Sm(a).forEach(o=>{n.addEventListener(o,a[o],i)})}function wU(r,e,t){const s=e.value.parent?r.parentElement:r;if(!s||!s._touchHandlers)return;const n=s._touchHandlers[t.context._uid];Sm(n).forEach(i=>{s.removeEventListener(i,n[i])}),delete s._touchHandlers[t.context._uid]}const gd={inserted:SU,unbind:wU},$6=b.extend({name:"scrollable",directives:{Scroll:ib},props:{scrollTarget:String,scrollThreshold:[String,Number]},data:()=>({currentScroll:0,currentThreshold:0,isActive:!1,isScrollingUp:!1,previousScroll:0,savedScroll:0,target:null}),computed:{canScroll(){return typeof window<"u"},computedScrollThreshold(){return this.scrollThreshold?Number(this.scrollThreshold):300}},watch:{isScrollingUp(){this.savedScroll=this.savedScroll||this.currentScroll},isActive(){this.savedScroll=0}},mounted(){this.scrollTarget&&(this.target=document.querySelector(this.scrollTarget),this.target||lr(`Unable to locate element with identifier ${this.scrollTarget}`,this))},methods:{onScroll(){this.canScroll&&(this.previousScroll=this.currentScroll,this.currentScroll=this.target?this.target.scrollTop:window.pageYOffset,this.isScrollingUp=this.currentScroll<this.previousScroll,this.currentThreshold=Math.abs(this.currentScroll-this.computedScrollThreshold),this.$nextTick(()=>{Math.abs(this.currentScroll-this.savedScroll)>this.computedScrollThreshold&&this.thresholdMet()}))},thresholdMet(){}}}),vd=b.extend({name:"ssr-bootable",data:()=>({isBooted:!1}),mounted(){window.requestAnimationFrame(()=>{this.$el.setAttribute("data-booted","true"),this.isBooted=!0})}});function Lm(r="value",e="input"){return b.extend({name:"toggleable",model:{prop:r,event:e},props:{[r]:{required:!1}},data(){return{isActive:!!this[r]}},watch:{[r](t){this.isActive=!!t},isActive(t){!!t!==this[r]&&this.$emit(e,t)}}})}const xU=Lm(),Vi=xU,CU=be(qt,$6,vd,Vi,ab("top",["clippedLeft","clippedRight","computedHeight","invertedScroll","isExtended","isProminent","value"])),PU=CU.extend({name:"v-app-bar",directives:{Scroll:ib},provide(){return{VAppBar:this}},props:{clippedLeft:Boolean,clippedRight:Boolean,collapseOnScroll:Boolean,elevateOnScroll:Boolean,fadeImgOnScroll:Boolean,hideOnScroll:Boolean,invertedScroll:Boolean,scrollOffScreen:Boolean,shrinkOnScroll:Boolean,value:{type:Boolean,default:!0}},data(){return{isActive:this.value}},computed:{applicationProperty(){return this.bottom?"bottom":"top"},canScroll(){return $6.options.computed.canScroll.call(this)&&(this.invertedScroll||this.elevateOnScroll||this.hideOnScroll||this.collapseOnScroll||this.isBooted||!this.value)},classes(){return{...qt.options.computed.classes.call(this),"v-toolbar--collapse":this.collapse||this.collapseOnScroll,"v-app-bar":!0,"v-app-bar--clipped":this.clippedLeft||this.clippedRight,"v-app-bar--fade-img-on-scroll":this.fadeImgOnScroll,"v-app-bar--elevate-on-scroll":this.elevateOnScroll,"v-app-bar--fixed":!this.absolute&&(this.app||this.fixed),"v-app-bar--hide-shadow":this.hideShadow,"v-app-bar--is-scrolled":this.currentScroll>0,"v-app-bar--shrink-on-scroll":this.shrinkOnScroll}},scrollRatio(){const r=this.computedScrollThreshold;return Math.max((r-this.currentScroll)/r,0)},computedContentHeight(){if(!this.shrinkOnScroll)return qt.options.computed.computedContentHeight.call(this);const r=this.dense?48:56,e=this.computedOriginalHeight;return r+(e-r)*this.scrollRatio},computedFontSize(){if(!this.isProminent)return;const r=1.25;return r+(1.5-r)*this.scrollRatio},computedLeft(){return!this.app||this.clippedLeft?0:this.$vuetify.application.left},computedMarginTop(){return this.app?this.$vuetify.application.bar:0},computedOpacity(){if(this.fadeImgOnScroll)return this.scrollRatio},computedOriginalHeight(){let r=qt.options.computed.computedContentHeight.call(this);return this.isExtended&&(r+=parseInt(this.extensionHeight)),r},computedRight(){return!this.app||this.clippedRight?0:this.$vuetify.application.right},computedScrollThreshold(){return this.scrollThreshold?Number(this.scrollThreshold):this.computedOriginalHeight-(this.dense?48:56)},computedTransform(){if(!this.canScroll||this.elevateOnScroll&&this.currentScroll===0&&this.isActive||this.isActive)return 0;const r=this.scrollOffScreen?this.computedHeight:this.computedContentHeight;return this.bottom?r:-r},hideShadow(){return this.elevateOnScroll&&this.isExtended?this.currentScroll<this.computedScrollThreshold:this.elevateOnScroll?this.currentScroll===0||this.computedTransform<0:(!this.isExtended||this.scrollOffScreen)&&this.computedTransform!==0},isCollapsed(){return this.collapseOnScroll?this.currentScroll>0:qt.options.computed.isCollapsed.call(this)},isProminent(){return qt.options.computed.isProminent.call(this)||this.shrinkOnScroll},styles(){return{...qt.options.computed.styles.call(this),fontSize:ge(this.computedFontSize,"rem"),marginTop:ge(this.computedMarginTop),transform:`translateY(${ge(this.computedTransform)})`,left:ge(this.computedLeft),right:ge(this.computedRight)}}},watch:{canScroll:"onScroll",computedTransform(){!this.canScroll||!this.clippedLeft&&!this.clippedRight||this.callUpdate()},invertedScroll(r){this.isActive=!r||this.currentScroll!==0},hideOnScroll(r){this.isActive=!r||this.currentScroll<this.computedScrollThreshold}},created(){this.invertedScroll&&(this.isActive=!1)},methods:{genBackground(){const r=qt.options.methods.genBackground.call(this);return r.data=this._b(r.data||{},r.tag,{style:{opacity:this.computedOpacity}}),r},updateApplication(){return this.invertedScroll?0:this.computedHeight+this.computedTransform},thresholdMet(){if(this.invertedScroll){this.isActive=this.currentScroll>this.computedScrollThreshold;return}this.hideOnScroll&&(this.isActive=this.isScrollingUp||this.currentScroll<this.computedScrollThreshold),!(this.currentThreshold<this.computedScrollThreshold)&&(this.savedScroll=this.currentScroll)}},render(r){const e=qt.options.render.call(this,r);return e.data=e.data||{},this.canScroll&&(e.data.directives=e.data.directives||[],e.data.directives.push({arg:this.scrollTarget,name:"scroll",value:this.onScroll})),e}}),ob=b.extend({name:"sizeable",props:{large:Boolean,small:Boolean,xLarge:Boolean,xSmall:Boolean},computed:{medium(){return!this.xSmall&&!this.small&&!this.large&&!this.xLarge},sizeableClasses(){return{"v-size--x-small":this.xSmall,"v-size--small":this.small,"v-size--default":this.medium,"v-size--large":this.large,"v-size--x-large":this.xLarge}}}});var Uv;(function(r){r.xSmall="12px",r.small="16px",r.default="24px",r.medium="28px",r.large="36px",r.xLarge="40px"})(Uv||(Uv={}));function LU(r){return["fas","far","fal","fab","fad","fak"].some(e=>r.includes(e))}function AU(r){return/^[mzlhvcsqta]\s*[-+.0-9][^mlhvzcsqta]+/i.test(r)&&/[\dz]$/i.test(r)&&r.length>4}const vw=be(Pl,dt,ob,Ke).extend({name:"v-icon",props:{dense:Boolean,disabled:Boolean,left:Boolean,right:Boolean,size:[Number,String],tag:{type:String,required:!1,default:"i"}},computed:{medium(){return!1},hasClickListener(){return!!(this.listeners$.click||this.listeners$["!click"])}},methods:{getIcon(){let r="";return this.$slots.default&&(r=this.$slots.default[0].text.trim()),pz(this,r)},getSize(){const r={xSmall:this.xSmall,small:this.small,medium:this.medium,large:this.large,xLarge:this.xLarge},e=Sm(r).find(t=>r[t]);return e&&Uv[e]||ge(this.size)},getDefaultData(){return{staticClass:"v-icon notranslate",class:{"v-icon--disabled":this.disabled,"v-icon--left":this.left,"v-icon--link":this.hasClickListener,"v-icon--right":this.right,"v-icon--dense":this.dense},attrs:{"aria-hidden":!this.hasClickListener,disabled:this.hasClickListener&&this.disabled,type:this.hasClickListener?"button":void 0,...this.attrs$},on:this.listeners$}},getSvgWrapperData(){const r=this.getSize(),e={...this.getDefaultData(),style:r?{fontSize:r,height:r,width:r}:void 0};return this.applyColors(e),e},applyColors(r){r.class={...r.class,...this.themeClasses},this.setTextColor(this.color,r)},renderFontIcon(r,e){const t=[],s=this.getDefaultData();let n="material-icons";const i=r.indexOf("-"),a=i<=-1;a?t.push(r):(n=r.slice(0,i),LU(n)&&(n="")),s.class[n]=!0,s.class[r]=!a;const o=this.getSize();return o&&(s.style={fontSize:o}),this.applyColors(s),e(this.hasClickListener?"button":this.tag,s,t)},renderSvgIcon(r,e){const t={class:"v-icon__svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",role:"img","aria-hidden":!0}},s=this.getSize();return s&&(t.style={fontSize:s,height:s,width:s}),e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e("svg",t,[e("path",{attrs:{d:r}})])])},renderSvgIconComponent(r,e){const t={class:{"v-icon__component":!0}},s=this.getSize();s&&(t.style={fontSize:s,height:s,width:s}),this.applyColors(t);const n=r.component;return t.props=r.props,t.nativeOn=t.on,e(this.hasClickListener?"button":"span",this.getSvgWrapperData(),[e(n,t)])}},render(r){const e=this.getIcon();return typeof e=="string"?AU(e)?this.renderSvgIcon(e,r):this.renderFontIcon(e,r):this.renderSvgIconComponent(e,r)}}),w=b.extend({name:"v-icon",$_wrapperFor:vw,functional:!0,render(r,{data:e,children:t}){let s="";return e.domProps&&(s=e.domProps.textContent||e.domProps.innerHTML||s,delete e.domProps.textContent,delete e.domProps.innerHTML),r(vw,e,s?[s]:t)}}),Zo=dt.extend({name:"v-progress-circular",directives:{intersect:pu},props:{button:Boolean,indeterminate:Boolean,rotate:{type:[Number,String],default:0},size:{type:[Number,String],default:32},width:{type:[Number,String],default:4},value:{type:[Number,String],default:0}},data:()=>({radius:20,isVisible:!0}),computed:{calculatedSize(){return Number(this.size)+(this.button?8:0)},circumference(){return 2*Math.PI*this.radius},classes(){return{"v-progress-circular--visible":this.isVisible,"v-progress-circular--indeterminate":this.indeterminate,"v-progress-circular--button":this.button}},normalizedValue(){return this.value<0?0:this.value>100?100:parseFloat(this.value)},strokeDashArray(){return Math.round(this.circumference*1e3)/1e3},strokeDashOffset(){return(100-this.normalizedValue)/100*this.circumference+"px"},strokeWidth(){return Number(this.width)/+this.size*this.viewBoxSize*2},styles(){return{height:ge(this.calculatedSize),width:ge(this.calculatedSize)}},svgStyles(){return{transform:`rotate(${Number(this.rotate)}deg)`}},viewBoxSize(){return this.radius/(1-Number(this.width)/+this.size)}},methods:{genCircle(r,e){return this.$createElement("circle",{class:`v-progress-circular__${r}`,attrs:{fill:"transparent",cx:2*this.viewBoxSize,cy:2*this.viewBoxSize,r:this.radius,"stroke-width":this.strokeWidth,"stroke-dasharray":this.strokeDashArray,"stroke-dashoffset":e}})},genSvg(){const r=[this.indeterminate||this.genCircle("underlay",0),this.genCircle("overlay",this.strokeDashOffset)];return this.$createElement("svg",{style:this.svgStyles,attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:`${this.viewBoxSize} ${this.viewBoxSize} ${2*this.viewBoxSize} ${2*this.viewBoxSize}`}},r)},genInfo(){return this.$createElement("div",{staticClass:"v-progress-circular__info"},me(this))},onObserve(r,e,t){this.isVisible=t}},render(r){return r("div",this.setTextColor(this.color,{staticClass:"v-progress-circular",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:this.styles,on:this.$listeners}),[this.genSvg(),this.genInfo()])}});function _w(r,e){return()=>lr(`The ${r} component must be used inside a ${e}`)}function Ja(r,e,t){const s=e&&t?{register:_w(e,t),unregister:_w(e,t)}:null;return b.extend({name:"registrable-inject",inject:{[r]:{default:s}}})}function lb(r,e=!1){return b.extend({name:"registrable-provide",provide(){return{[r]:e?this:{register:this.register,unregister:this.unregister}}}})}function Ni(r,e,t){return Ja(r,e,t).extend({name:"groupable",props:{activeClass:{type:String,default(){if(this[r])return this[r].activeClass}},disabled:Boolean},data(){return{isActive:!1}},computed:{groupClasses(){return this.activeClass?{[this.activeClass]:this.isActive}:{}}},created(){this[r]&&this[r].register(this)},beforeDestroy(){this[r]&&this[r].unregister(this)},methods:{toggle(s){if(this.disabled&&s){s.preventDefault();return}this.$emit("change")}}})}Ni("itemGroup");const $s=b.extend({name:"routable",directives:{Ripple:ls},props:{activeClass:String,append:Boolean,disabled:Boolean,exact:{type:Boolean,default:void 0},exactPath:Boolean,exactActiveClass:String,link:Boolean,href:[String,Object],to:[String,Object],nuxt:Boolean,replace:Boolean,ripple:{type:[Boolean,Object],default:null},tag:String,target:String},data:()=>({isActive:!1,proxyClass:""}),computed:{classes(){const r={};return this.to||(this.activeClass&&(r[this.activeClass]=this.isActive),this.proxyClass&&(r[this.proxyClass]=this.isActive)),r},computedRipple(){var r;return(r=this.ripple)!==null&&r!==void 0?r:!this.disabled&&this.isClickable},isClickable(){return this.disabled?!1:!!(this.isLink||this.$listeners.click||this.$listeners["!click"]||this.$attrs.tabindex)},isLink(){return this.to||this.href||this.link},styles:()=>({})},watch:{$route:"onRouteChange"},mounted(){this.onRouteChange()},methods:{generateRouteLink(){let r=this.exact,e;const t={attrs:{tabindex:"tabindex"in this.$attrs?this.$attrs.tabindex:void 0},class:this.classes,style:this.styles,props:{},directives:[{name:"ripple",value:this.computedRipple}],[this.to?"nativeOn":"on"]:{...this.$listeners,..."click"in this?{click:this.click}:void 0},ref:"link"};if(typeof this.exact>"u"&&(r=this.to==="/"||this.to===Object(this.to)&&this.to.path==="/"),this.to){let s=this.activeClass,n=this.exactActiveClass||s;this.proxyClass&&(s=`${s} ${this.proxyClass}`.trim(),n=`${n} ${this.proxyClass}`.trim()),e=this.nuxt?"nuxt-link":"router-link",Object.assign(t.props,{to:this.to,exact:r,exactPath:this.exactPath,activeClass:s,exactActiveClass:n,append:this.append,replace:this.replace})}else e=this.href&&"a"||this.tag||"div",e==="a"&&this.href&&(t.attrs.href=this.href);return this.target&&(t.attrs.target=this.target),{tag:e,data:t}},onRouteChange(){if(!this.to||!this.$refs.link||!this.$route)return;const r=`${this.activeClass||""} ${this.proxyClass||""}`.trim(),e=`${this.exactActiveClass||""} ${this.proxyClass||""}`.trim()||r,t="_vnode.data.class."+(this.exact?e:r);this.$nextTick(()=>{!at(this.$refs.link,t)===this.isActive&&this.toggle()})},toggle(){this.isActive=!this.isActive}}}),EU=be(ut,$s,oU,ob,Ni("btnToggle"),Lm("inputValue")),Fe=EU.extend().extend({name:"v-btn",props:{activeClass:{type:String,default(){return this.btnToggle?this.btnToggle.activeClass:""}},block:Boolean,depressed:Boolean,fab:Boolean,icon:Boolean,loading:Boolean,outlined:Boolean,plain:Boolean,retainFocusOnClick:Boolean,rounded:Boolean,tag:{type:String,default:"button"},text:Boolean,tile:Boolean,type:{type:String,default:"button"},value:null},data:()=>({proxyClass:"v-btn--active"}),computed:{classes(){return{"v-btn":!0,...$s.options.computed.classes.call(this),"v-btn--absolute":this.absolute,"v-btn--block":this.block,"v-btn--bottom":this.bottom,"v-btn--disabled":this.disabled,"v-btn--is-elevated":this.isElevated,"v-btn--fab":this.fab,"v-btn--fixed":this.fixed,"v-btn--has-bg":this.hasBg,"v-btn--icon":this.icon,"v-btn--left":this.left,"v-btn--loading":this.loading,"v-btn--outlined":this.outlined,"v-btn--plain":this.plain,"v-btn--right":this.right,"v-btn--round":this.isRound,"v-btn--rounded":this.rounded,"v-btn--router":this.to,"v-btn--text":this.text,"v-btn--tile":this.tile,"v-btn--top":this.top,...this.themeClasses,...this.groupClasses,...this.elevationClasses,...this.sizeableClasses}},computedElevation(){if(!this.disabled)return i6.options.computed.computedElevation.call(this)},computedRipple(){var r;const e=this.icon||this.fab?{circle:!0}:!0;return this.disabled?!1:(r=this.ripple)!==null&&r!==void 0?r:e},hasBg(){return!this.text&&!this.plain&&!this.outlined&&!this.icon},isElevated(){return!this.icon&&!this.text&&!this.outlined&&!this.depressed&&!this.disabled&&!this.plain&&(this.elevation==null||Number(this.elevation)>0)},isRound(){return!!(this.icon||this.fab)},styles(){return{...this.measurableStyles}}},created(){[["flat","text"],["outline","outlined"],["round","rounded"]].forEach(([e,t])=>{this.$attrs.hasOwnProperty(e)&&Zs(e,t,this)})},methods:{click(r){!this.retainFocusOnClick&&!this.fab&&r.detail&&this.$el.blur(),this.$emit("click",r),this.btnToggle&&this.toggle()},genContent(){return this.$createElement("span",{staticClass:"v-btn__content"},me(this))},genLoader(){return this.$createElement("span",{class:"v-btn__loader"},me(this,"loader")||[this.$createElement(Zo,{props:{indeterminate:!0,size:23,width:2}})])}},render(r){const e=[this.genContent(),this.loading&&this.genLoader()],{tag:t,data:s}=this.generateRouteLink(),n=this.hasBg?this.setBackgroundColor:this.setTextColor;return t==="button"&&(s.attrs.type=this.type,s.attrs.disabled=this.disabled),s.attrs.value=["string","number"].includes(typeof this.value)?this.value:JSON.stringify(this.value),r(t,this.disabled?s:n(this.color,s),e)}}),S6=b.extend({name:"transitionable",props:{mode:String,origin:String,transition:String}}),Vn=be(ut,Vi,S6).extend({name:"v-alert",props:{border:{type:String,validator(r){return["top","right","bottom","left"].includes(r)}},closeLabel:{type:String,default:"$vuetify.close"},coloredBorder:Boolean,dense:Boolean,dismissible:Boolean,closeIcon:{type:String,default:"$cancel"},icon:{default:"",type:[Boolean,String],validator(r){return typeof r=="string"||r===!1}},outlined:Boolean,prominent:Boolean,text:Boolean,type:{type:String,validator(r){return["info","error","success","warning"].includes(r)}},value:{type:Boolean,default:!0}},computed:{__cachedBorder(){if(!this.border)return null;let r={staticClass:"v-alert__border",class:{[`v-alert__border--${this.border}`]:!0}};return this.coloredBorder&&(r=this.setBackgroundColor(this.computedColor,r),r.class["v-alert__border--has-color"]=!0),this.$createElement("div",r)},__cachedDismissible(){if(!this.dismissible)return null;const r=this.iconColor;return this.$createElement(Fe,{staticClass:"v-alert__dismissible",props:{color:r,icon:!0,small:!0},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:()=>this.isActive=!1}},[this.$createElement(w,{props:{color:r}},this.closeIcon)])},__cachedIcon(){return this.computedIcon?this.$createElement(w,{staticClass:"v-alert__icon",props:{color:this.iconColor}},this.computedIcon):null},classes(){const r={...ut.options.computed.classes.call(this),"v-alert--border":!!this.border,"v-alert--dense":this.dense,"v-alert--outlined":this.outlined,"v-alert--prominent":this.prominent,"v-alert--text":this.text};return this.border&&(r[`v-alert--border-${this.border}`]=!0),r},computedColor(){return this.color||this.type},computedIcon(){return this.icon===!1?!1:typeof this.icon=="string"&&this.icon?this.icon:["error","info","success","warning"].includes(this.type)?`$${this.type}`:!1},hasColoredIcon(){return this.hasText||!!this.border&&this.coloredBorder},hasText(){return this.text||this.outlined},iconColor(){return this.hasColoredIcon?this.computedColor:void 0},isDark(){return this.type&&!this.coloredBorder&&!this.outlined?!0:Ke.options.computed.isDark.call(this)}},created(){this.$attrs.hasOwnProperty("outline")&&Zs("outline","outlined",this)},methods:{genWrapper(){const r=[me(this,"prepend")||this.__cachedIcon,this.genContent(),this.__cachedBorder,me(this,"append"),this.$scopedSlots.close?this.$scopedSlots.close({toggle:this.toggle}):this.__cachedDismissible],e={staticClass:"v-alert__wrapper"};return this.$createElement("div",e,r)},genContent(){return this.$createElement("div",{staticClass:"v-alert__content"},me(this))},genAlert(){let r={staticClass:"v-alert",attrs:{role:"alert"},on:this.listeners$,class:this.classes,style:this.styles,directives:[{name:"show",value:this.isActive}]};return this.coloredBorder||(r=(this.hasText?this.setTextColor:this.setBackgroundColor)(this.computedColor,r)),this.$createElement("div",r,[this.genWrapper()])},toggle(){this.isActive=!this.isActive}},render(r){const e=this.genAlert();return this.transition?r("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[e]):e}});function dg(r=[],...e){return Array().concat(r,...e)}function El(r,e="top center 0",t){return{name:r,functional:!0,props:{group:{type:Boolean,default:!1},hideOnLeave:{type:Boolean,default:!1},leaveAbsolute:{type:Boolean,default:!1},mode:{type:String,default:t},origin:{type:String,default:e}},render(s,n){const i=`transition${n.props.group?"-group":""}`,a={props:{name:r,mode:n.props.mode},on:{beforeEnter(o){o.style.transformOrigin=n.props.origin,o.style.webkitTransformOrigin=n.props.origin}}};return n.props.leaveAbsolute&&(a.on.leave=dg(a.on.leave,o=>{const{offsetTop:l,offsetLeft:c,offsetWidth:u,offsetHeight:d}=o;o._transitionInitialStyles={position:o.style.position,top:o.style.top,left:o.style.left,width:o.style.width,height:o.style.height},o.style.position="absolute",o.style.top=l+"px",o.style.left=c+"px",o.style.width=u+"px",o.style.height=d+"px"}),a.on.afterLeave=dg(a.on.afterLeave,o=>{if(o&&o._transitionInitialStyles){const{position:l,top:c,left:u,width:d,height:p}=o._transitionInitialStyles;delete o._transitionInitialStyles,o.style.position=l||"",o.style.top=c||"",o.style.left=u||"",o.style.width=d||"",o.style.height=p||""}})),n.props.hideOnLeave&&(a.on.leave=dg(a.on.leave,o=>{o.style.setProperty("display","none","important")})),s(i,os(n.data,a),n.children)}}}function w6(r,e,t="in-out"){return{name:r,functional:!0,props:{mode:{type:String,default:t}},render(s,n){return s("transition",os(n.data,{props:{name:r},on:e}),n.children)}}}function x6(r="",e=!1){const t=e?"width":"height",s=`offset${wm(t)}`;return{beforeEnter(a){a._parent=a.parentNode,a._initialStyle={transition:a.style.transition,overflow:a.style.overflow,[t]:a.style[t]}},enter(a){const o=a._initialStyle;a.style.setProperty("transition","none","important"),a.style.overflow="hidden";const l=`${a[s]}px`;a.style[t]="0",a.offsetHeight,a.style.transition=o.transition,r&&a._parent&&a._parent.classList.add(r),requestAnimationFrame(()=>{a.style[t]=l})},afterEnter:i,enterCancelled:i,leave(a){a._initialStyle={transition:"",overflow:a.style.overflow,[t]:a.style[t]},a.style.overflow="hidden",a.style[t]=`${a[s]}px`,a.offsetHeight,requestAnimationFrame(()=>a.style[t]="0")},afterLeave:n,leaveCancelled:n};function n(a){r&&a._parent&&a._parent.classList.remove(r),i(a)}function i(a){const o=a._initialStyle[t];a.style.overflow=a._initialStyle.overflow,o!=null&&(a.style[t]=o),delete a._initialStyle}}const OU=El("tab-transition"),TU=El("tab-reverse-transition"),kU=El("fab-transition","center center","out-in"),Ol=El("fade-transition"),DU=El("scale-transition"),MU=El("slide-x-transition"),Zc=w6("expand-transition",x6()),RU=w6("expand-x-transition",x6("",!0)),gr=be(dt,ob,$s,Ke,Ni("chipGroup"),Lm("inputValue")).extend({name:"v-chip",props:{active:{type:Boolean,default:!0},activeClass:{type:String,default(){return this.chipGroup?this.chipGroup.activeClass:""}},close:Boolean,closeIcon:{type:String,default:"$delete"},closeLabel:{type:String,default:"$vuetify.close"},disabled:Boolean,draggable:Boolean,filter:Boolean,filterIcon:{type:String,default:"$complete"},label:Boolean,link:Boolean,outlined:Boolean,pill:Boolean,tag:{type:String,default:"span"},textColor:String,value:null},data:()=>({proxyClass:"v-chip--active"}),computed:{classes(){return{"v-chip":!0,...$s.options.computed.classes.call(this),"v-chip--clickable":this.isClickable,"v-chip--disabled":this.disabled,"v-chip--draggable":this.draggable,"v-chip--label":this.label,"v-chip--link":this.isLink,"v-chip--no-color":!this.color,"v-chip--outlined":this.outlined,"v-chip--pill":this.pill,"v-chip--removable":this.hasClose,...this.themeClasses,...this.sizeableClasses,...this.groupClasses}},hasClose(){return!!this.close},isClickable(){return!!($s.options.computed.isClickable.call(this)||this.chipGroup)}},created(){[["outline","outlined"],["selected","input-value"],["value","active"],["@input","@active.sync"]].forEach(([e,t])=>{this.$attrs.hasOwnProperty(e)&&Zs(e,t,this)})},methods:{click(r){this.$emit("click",r),this.chipGroup&&this.toggle()},genFilter(){const r=[];return this.isActive&&r.push(this.$createElement(w,{staticClass:"v-chip__filter",props:{left:!0}},this.filterIcon)),this.$createElement(RU,r)},genClose(){return this.$createElement(w,{staticClass:"v-chip__close",props:{right:!0,size:18},attrs:{"aria-label":this.$vuetify.lang.t(this.closeLabel)},on:{click:r=>{r.stopPropagation(),r.preventDefault(),this.$emit("click:close"),this.$emit("update:active",!1)}}},this.closeIcon)},genContent(){return this.$createElement("span",{staticClass:"v-chip__content"},[this.filter&&this.genFilter(),me(this),this.hasClose&&this.genClose()])}},render(r){const e=[this.genContent()];let{tag:t,data:s}=this.generateRouteLink();s.attrs={...s.attrs,draggable:this.draggable?"true":void 0,tabindex:this.chipGroup&&!this.disabled?0:s.attrs.tabindex},s.directives.push({name:"show",value:this.active}),s=this.setBackgroundColor(this.color,s);const n=this.textColor||this.outlined&&this.color;return r(t,this.setTextColor(n,s),e)}}),C6=Ke.extend({name:"v-theme-provider",props:{root:Boolean},computed:{isDark(){return this.root?this.rootIsDark:Ke.options.computed.isDark.call(this)}},render(){return this.$slots.default&&this.$slots.default.find(r=>!r.isComment&&r.text!==" ")}}),Am=b.extend().extend({name:"delayable",props:{openDelay:{type:[Number,String],default:0},closeDelay:{type:[Number,String],default:0}},data:()=>({openTimeout:void 0,closeTimeout:void 0}),methods:{clearDelay(){clearTimeout(this.openTimeout),clearTimeout(this.closeTimeout)},runDelay(r,e){this.clearDelay();const t=parseInt(this[`${r}Delay`],10);this[`${r}Timeout`]=setTimeout(e||(()=>{this.isActive={open:!0,close:!1}[r]}),t)}}}),IU=be(Am,Vi),_d=IU.extend({name:"activatable",props:{activator:{default:null,validator:r=>["string","object"].includes(typeof r)},disabled:Boolean,internalActivator:Boolean,openOnClick:{type:Boolean,default:!0},openOnHover:Boolean,openOnFocus:Boolean},data:()=>({activatorElement:null,activatorNode:[],events:["click","mouseenter","mouseleave","focus"],listeners:{}}),watch:{activator:"resetActivator",openOnFocus:"resetActivator",openOnHover:"resetActivator"},mounted(){const r=B4(this,"activator");r&&["v-slot","normal"].includes(r)&&Ns(`The activator slot must be bound, try '<template v-slot:activator="{ on }"><v-btn v-on="on">'`,this),this.addActivatorEvents()},beforeDestroy(){this.removeActivatorEvents()},methods:{addActivatorEvents(){if(!this.activator||this.disabled||!this.getActivator())return;this.listeners=this.genActivatorListeners();const r=Object.keys(this.listeners);for(const e of r)this.getActivator().addEventListener(e,this.listeners[e])},genActivator(){const r=me(this,"activator",Object.assign(this.getValueProxy(),{on:this.genActivatorListeners(),attrs:this.genActivatorAttributes()}))||[];return this.activatorNode=r,r},genActivatorAttributes(){return{role:this.openOnClick&&!this.openOnHover?"button":void 0,"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genActivatorListeners(){if(this.disabled)return{};const r={};return this.openOnHover?(r.mouseenter=e=>{this.getActivator(e),this.runDelay("open")},r.mouseleave=e=>{this.getActivator(e),this.runDelay("close")}):this.openOnClick&&(r.click=e=>{const t=this.getActivator(e);t&&t.focus(),e.stopPropagation(),this.isActive=!this.isActive}),this.openOnFocus&&(r.focus=e=>{this.getActivator(e),e.stopPropagation(),this.isActive=!this.isActive}),r},getActivator(r){if(this.activatorElement)return this.activatorElement;let e=null;if(this.activator){const t=this.internalActivator?this.$el:document;typeof this.activator=="string"?e=t.querySelector(this.activator):this.activator.$el?e=this.activator.$el:e=this.activator}else if(this.activatorNode.length===1||this.activatorNode.length&&!r){const t=this.activatorNode[0].componentInstance;t&&t.$options.mixins&&t.$options.mixins.some(s=>s.options&&["activatable","menuable"].includes(s.options.name))?e=t.getActivator():e=this.activatorNode[0].elm}else r&&(e=r.currentTarget||r.target);return this.activatorElement=(e==null?void 0:e.nodeType)===Node.ELEMENT_NODE?e:null,this.activatorElement},getContentSlot(){return me(this,"default",this.getValueProxy(),!0)},getValueProxy(){const r=this;return{get value(){return r.isActive},set value(e){r.isActive=e}}},removeActivatorEvents(){if(!this.activator||!this.activatorElement)return;const r=Object.keys(this.listeners);for(const e of r)this.activatorElement.removeEventListener(e,this.listeners[e]);this.listeners={}},resetActivator(){this.removeActivatorEvents(),this.activatorElement=null,this.getActivator(),this.addActivatorEvents()}}});function P6(r){const e=[];for(let t=0;t<r.length;t++){const s=r[t];s.isActive&&s.isDependent?e.push(s):e.push(...P6(s.$children))}return e}const yd=be().extend({name:"dependent",data(){return{closeDependents:!0,isActive:!1,isDependent:!0}},watch:{isActive(r){if(r)return;const e=this.getOpenDependents();for(let t=0;t<e.length;t++)e[t].isActive=!1}},methods:{getOpenDependents(){return this.closeDependents?P6(this.$children):[]},getOpenDependentElements(){const r=[],e=this.getOpenDependents();for(let t=0;t<e.length;t++)r.push(...e[t].getClickableDependentElements());return r},getClickableDependentElements(){const r=[this.$el];return this.$refs.content&&r.push(this.$refs.content),this.overlay&&r.push(this.overlay.$el),r.push(...this.getOpenDependentElements()),r}}}),L6=b.extend().extend({name:"stackable",data(){return{stackElement:null,stackExclude:null,stackMinZIndex:0,isActive:!1}},computed:{activeZIndex(){if(typeof window>"u")return 0;const r=this.stackElement||this.$refs.content,e=this.isActive?this.getMaxZIndex(this.stackExclude||[r])+2:Wc(r);return e==null?e:parseInt(e)}},methods:{getMaxZIndex(r=[]){const e=this.$el,t=[this.stackMinZIndex,Wc(e)],s=[...document.getElementsByClassName("v-menu__content--active"),...document.getElementsByClassName("v-dialog__content--active")];for(let n=0;n<s.length;n++)r.includes(s[n])||t.push(Wc(s[n]));return Math.max(...t)}}}),Em=b.extend().extend({name:"bootable",props:{eager:Boolean},data:()=>({isBooted:!1}),computed:{hasContent(){return this.isBooted||this.eager||this.isActive}},watch:{isActive(){this.isBooted=!0}},created(){"lazy"in this.$attrs&&Ll("lazy",this)},methods:{showLazyContent(r){return this.hasContent&&r?r():[this.$createElement()]}}});function FU(r){const e=typeof r;return e==="boolean"||e==="string"?!0:r.nodeType===Node.ELEMENT_NODE}function yw(r){r.forEach(e=>{e.elm&&e.elm.parentNode&&e.elm.parentNode.removeChild(e.elm)})}const A6=be(Em).extend({name:"detachable",props:{attach:{default:!1,validator:FU},contentClass:{type:String,default:""}},data:()=>({activatorNode:null,hasDetached:!1}),watch:{attach(){this.hasDetached=!1,this.initDetach()},hasContent(){this.$nextTick(this.initDetach)}},beforeMount(){this.$nextTick(()=>{this.activatorNode&&(Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode]).forEach(e=>{if(!e.elm||!this.$el.parentNode)return;const t=this.$el===this.$el.parentNode.firstChild?this.$el:this.$el.nextSibling;this.$el.parentNode.insertBefore(e.elm,t)})})},mounted(){this.hasContent&&this.initDetach()},deactivated(){this.isActive=!1},beforeDestroy(){this.$refs.content&&this.$refs.content.parentNode&&this.$refs.content.parentNode.removeChild(this.$refs.content)},destroyed(){if(this.activatorNode){const r=Array.isArray(this.activatorNode)?this.activatorNode:[this.activatorNode];if(this.$el.isConnected){const e=new MutationObserver(t=>{t.some(s=>Array.from(s.removedNodes).includes(this.$el))&&(e.disconnect(),yw(r))});e.observe(this.$el.parentNode,{subtree:!1,childList:!0})}else yw(r)}},methods:{getScopeIdAttrs(){const r=at(this.$vnode,"context.$options._scopeId");return r&&{[r]:""}},initDetach(){if(this._isDestroyed||!this.$refs.content||this.hasDetached||this.attach===""||this.attach===!0||this.attach==="attach")return;let r;if(this.attach===!1?r=document.querySelector("[data-app]"):typeof this.attach=="string"?r=document.querySelector(this.attach):r=this.attach,!r){lr(`Unable to locate target ${this.attach||"[data-app]"}`,this);return}r.appendChild(this.$refs.content),this.hasDetached=!0}}}),HU=be(L6,Al(["top","right","bottom","left","absolute"]),_d,A6),cb=HU.extend().extend({name:"menuable",props:{allowOverflow:Boolean,light:Boolean,dark:Boolean,maxWidth:{type:[Number,String],default:"auto"},minWidth:[Number,String],nudgeBottom:{type:[Number,String],default:0},nudgeLeft:{type:[Number,String],default:0},nudgeRight:{type:[Number,String],default:0},nudgeTop:{type:[Number,String],default:0},nudgeWidth:{type:[Number,String],default:0},offsetOverflow:Boolean,positionX:{type:Number,default:null},positionY:{type:Number,default:null},zIndex:{type:[Number,String],default:null}},data:()=>({activatorNode:[],absoluteX:0,absoluteY:0,activatedBy:null,activatorFixed:!1,dimensions:{activator:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0,offsetLeft:0},content:{top:0,left:0,bottom:0,right:0,width:0,height:0,offsetTop:0,scrollHeight:0}},relativeYOffset:0,hasJustFocused:!1,hasWindow:!1,inputActivator:!1,isContentActive:!1,pageWidth:0,pageYOffset:0,stackClass:"v-menu__content--active",stackMinZIndex:6}),computed:{computedLeft(){const r=this.dimensions.activator,e=this.dimensions.content,t=(this.attach!==!1?r.offsetLeft:r.left)||0,s=Math.max(r.width,e.width);let n=0;if(n+=t,(this.left||this.$vuetify.rtl&&!this.right)&&(n-=s-r.width),this.offsetX){const i=isNaN(Number(this.maxWidth))?r.width:Math.min(r.width,Number(this.maxWidth));n+=this.left?-i:r.width}return this.nudgeLeft&&(n-=parseInt(this.nudgeLeft)),this.nudgeRight&&(n+=parseInt(this.nudgeRight)),n},computedTop(){const r=this.dimensions.activator,e=this.dimensions.content;let t=0;return this.top&&(t+=r.height-e.height),this.attach!==!1?t+=r.offsetTop:t+=r.top+this.pageYOffset,this.offsetY&&(t+=this.top?-r.height:r.height),this.nudgeTop&&(t-=parseInt(this.nudgeTop)),this.nudgeBottom&&(t+=parseInt(this.nudgeBottom)),t},hasActivator(){return!!this.$slots.activator||!!this.$scopedSlots.activator||!!this.activator||!!this.inputActivator},absoluteYOffset(){return this.pageYOffset-this.relativeYOffset}},watch:{disabled(r){r&&this.callDeactivate()},isActive(r){this.disabled||(r?this.callActivate():this.callDeactivate())},positionX:"updateDimensions",positionY:"updateDimensions"},beforeMount(){this.hasWindow=typeof window<"u",this.hasWindow&&window.addEventListener("resize",this.updateDimensions,!1)},beforeDestroy(){this.hasWindow&&window.removeEventListener("resize",this.updateDimensions,!1)},methods:{absolutePosition(){return{offsetTop:this.positionY||this.absoluteY,offsetLeft:this.positionX||this.absoluteX,scrollHeight:0,top:this.positionY||this.absoluteY,bottom:this.positionY||this.absoluteY,left:this.positionX||this.absoluteX,right:this.positionX||this.absoluteX,height:0,width:0}},activate(){},calcLeft(r){return ge(this.attach!==!1?this.computedLeft:this.calcXOverflow(this.computedLeft,r))},calcTop(){return ge(this.attach!==!1?this.computedTop:this.calcYOverflow(this.computedTop))},calcXOverflow(r,e){const t=r+e-this.pageWidth+12;return(!this.left||this.right)&&t>0?r=Math.max(r-t,0):r=Math.max(r,12),r+this.getOffsetLeft()},calcYOverflow(r){const e=this.getInnerHeight(),t=this.absoluteYOffset+e,s=this.dimensions.activator,n=this.dimensions.content.height,i=r+n,a=t<i;return a&&this.offsetOverflow&&s.top>n?r=this.pageYOffset+(s.top-n):a&&!this.allowOverflow?r=t-n-12:r<this.absoluteYOffset&&!this.allowOverflow&&(r=this.absoluteYOffset+12),r<12?12:r},callActivate(){this.hasWindow&&this.activate()},callDeactivate(){this.isContentActive=!1,this.deactivate()},checkForPageYOffset(){this.hasWindow&&(this.pageYOffset=this.activatorFixed?0:this.getOffsetTop())},checkActivatorFixed(){if(this.attach!==!1){this.activatorFixed=!1;return}let r=this.getActivator();for(;r;){if(window.getComputedStyle(r).position==="fixed"){this.activatorFixed=!0;return}r=r.offsetParent}this.activatorFixed=!1},deactivate(){},genActivatorListeners(){const r=_d.options.methods.genActivatorListeners.call(this),e=r.click;return e&&(r.click=t=>{this.openOnClick&&e&&e(t),this.absoluteX=t.clientX,this.absoluteY=t.clientY}),r},getInnerHeight(){return this.hasWindow?window.innerHeight||document.documentElement.clientHeight:0},getOffsetLeft(){return this.hasWindow?window.pageXOffset||document.documentElement.scrollLeft:0},getOffsetTop(){return this.hasWindow?window.pageYOffset||document.documentElement.scrollTop:0},getRoundedBoundedClientRect(r){const e=r.getBoundingClientRect();return{top:Math.round(e.top),left:Math.round(e.left),bottom:Math.round(e.bottom),right:Math.round(e.right),width:Math.round(e.width),height:Math.round(e.height)}},measure(r){if(!r||!this.hasWindow)return null;const e=this.getRoundedBoundedClientRect(r);if(this.attach!==!1){const t=window.getComputedStyle(r);e.left=parseInt(t.marginLeft),e.top=parseInt(t.marginTop)}return e},sneakPeek(r){requestAnimationFrame(()=>{const e=this.$refs.content;if(!e||e.style.display!=="none"){r();return}e.style.display="inline-block",r(),e.style.display="none"})},startTransition(){return new Promise(r=>requestAnimationFrame(()=>{this.isContentActive=this.hasJustFocused=this.isActive,r()}))},updateDimensions(){this.hasWindow=typeof window<"u",this.checkActivatorFixed(),this.checkForPageYOffset(),this.pageWidth=document.documentElement.clientWidth;const r={activator:{...this.dimensions.activator},content:{...this.dimensions.content}};if(!this.hasActivator||this.absolute)r.activator=this.absolutePosition();else{const e=this.getActivator();if(!e)return;r.activator=this.measure(e),r.activator.offsetLeft=e.offsetLeft,this.attach!==!1?r.activator.offsetTop=e.offsetTop:r.activator.offsetTop=0}this.sneakPeek(()=>{if(this.$refs.content){if(this.$refs.content.offsetParent){const e=this.getRoundedBoundedClientRect(this.$refs.content.offsetParent);this.relativeYOffset=window.pageYOffset+e.top,r.activator.top-=this.relativeYOffset,r.activator.left-=window.pageXOffset+e.left}r.content=this.measure(this.$refs.content)}this.dimensions=r})}}}),E6=b.extend({name:"returnable",props:{returnValue:null},data:()=>({isActive:!1,originalValue:null}),watch:{isActive(r){r?this.originalValue=this.returnValue:this.$emit("update:return-value",this.originalValue)}},methods:{save(r){this.originalValue=r,setTimeout(()=>{this.isActive=!1})}}}),BU=be(yd,Am,E6,a6,Ke,cb),Et=BU.extend({name:"v-menu",directives:{ClickOutside:fd,Resize:md},provide(){return{isInMenu:!0,theme:this.theme}},props:{auto:Boolean,closeOnClick:{type:Boolean,default:!0},closeOnContentClick:{type:Boolean,default:!0},disabled:Boolean,disableKeys:Boolean,maxHeight:{type:[Number,String],default:"auto"},offsetX:Boolean,offsetY:Boolean,openOnHover:Boolean,origin:{type:String,default:"top left"},transition:{type:[Boolean,String],default:"v-menu-transition"},contentProps:{type:Object,default:()=>({})}},data(){return{calculatedTopAuto:0,defaultOffset:8,hasJustFocused:!1,listIndex:-1,resizeTimeout:0,selectedIndex:null,tiles:[]}},computed:{activeTile(){return this.tiles[this.listIndex]},calculatedLeft(){const r=Math.max(this.dimensions.content.width,parseFloat(this.calculatedMinWidth));return this.auto?ge(this.calcXOverflow(this.calcLeftAuto(),r))||"0":this.calcLeft(r)||"0"},calculatedMaxHeight(){return(this.auto?"200px":ge(this.maxHeight))||"0"},calculatedMaxWidth(){return ge(this.maxWidth)||"0"},calculatedMinWidth(){if(this.minWidth)return ge(this.minWidth)||"0";const r=Math.min(this.dimensions.activator.width+Number(this.nudgeWidth)+(this.auto?16:0),Math.max(this.pageWidth-24,0)),e=isNaN(parseInt(this.calculatedMaxWidth))?r:parseInt(this.calculatedMaxWidth);return ge(Math.min(e,r))||"0"},calculatedTop(){return(this.auto?ge(this.calcYOverflow(this.calculatedTopAuto)):this.calcTop())||"0"},hasClickableTiles(){return!!this.tiles.find(r=>r.tabIndex>-1)},styles(){return{maxHeight:this.calculatedMaxHeight,minWidth:this.calculatedMinWidth,maxWidth:this.calculatedMaxWidth,top:this.calculatedTop,left:this.calculatedLeft,transformOrigin:this.origin,zIndex:this.zIndex||this.activeZIndex}}},watch:{isActive(r){r||(this.listIndex=-1)},isContentActive(r){this.hasJustFocused=r},listIndex(r,e){if(r in this.tiles){const t=this.tiles[r];t.classList.add("v-list-item--highlighted");const s=this.$refs.content.scrollTop,n=this.$refs.content.clientHeight;s>t.offsetTop-8?La(t.offsetTop-t.clientHeight,{appOffset:!1,duration:300,container:this.$refs.content}):s+n<t.offsetTop+t.clientHeight+8&&La(t.offsetTop-n+t.clientHeight*2,{appOffset:!1,duration:300,container:this.$refs.content})}e in this.tiles&&this.tiles[e].classList.remove("v-list-item--highlighted")}},created(){this.$attrs.hasOwnProperty("full-width")&&Ll("full-width",this)},mounted(){this.isActive&&this.callActivate()},methods:{activate(){this.updateDimensions(),requestAnimationFrame(()=>{this.startTransition().then(()=>{this.$refs.content&&(this.calculatedTopAuto=this.calcTopAuto(),this.auto&&(this.$refs.content.scrollTop=this.calcScrollPosition()))})})},calcScrollPosition(){const r=this.$refs.content,e=r.querySelector(".v-list-item--active"),t=r.scrollHeight-r.offsetHeight;return e?Math.min(t,Math.max(0,e.offsetTop-r.offsetHeight/2+e.offsetHeight/2)):r.scrollTop},calcLeftAuto(){return parseInt(this.dimensions.activator.left-this.defaultOffset*2)},calcTopAuto(){const r=this.$refs.content,e=r.querySelector(".v-list-item--active");if(e||(this.selectedIndex=null),this.offsetY||!e)return this.computedTop;this.selectedIndex=Array.from(this.tiles).indexOf(e);const t=e.offsetTop-this.calcScrollPosition(),s=r.querySelector(".v-list-item").offsetTop;return this.computedTop-t-s-1},changeListIndex(r){if(this.getTiles(),!(!this.isActive||!this.hasClickableTiles)){if(r.keyCode===Le.tab){this.isActive=!1;return}else if(r.keyCode===Le.down)this.nextTile();else if(r.keyCode===Le.up)this.prevTile();else if(r.keyCode===Le.end)this.lastTile();else if(r.keyCode===Le.home)this.firstTile();else if(r.keyCode===Le.enter&&this.listIndex!==-1)this.tiles[this.listIndex].click();else return;r.preventDefault()}},closeConditional(r){const e=r.target;return this.isActive&&!this._isDestroyed&&this.closeOnClick&&!this.$refs.content.contains(e)},genActivatorAttributes(){const r=_d.options.methods.genActivatorAttributes.call(this);return this.activeTile&&this.activeTile.id?{...r,"aria-activedescendant":this.activeTile.id}:r},genActivatorListeners(){const r=cb.options.methods.genActivatorListeners.call(this);return this.disableKeys||(r.keydown=this.onKeyDown),r},genTransition(){const r=this.genContent();return this.transition?this.$createElement("transition",{props:{name:this.transition}},[r]):r},genDirectives(){const r=[{name:"show",value:this.isContentActive}];return!this.openOnHover&&this.closeOnClick&&r.push({name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:()=>[this.$el,...this.getOpenDependentElements()]}}),r},genContent(){const r={attrs:{...this.getScopeIdAttrs(),...this.contentProps,role:"role"in this.$attrs?this.$attrs.role:"menu"},staticClass:"v-menu__content",class:{...this.rootThemeClasses,...this.roundedClasses,"v-menu__content--auto":this.auto,"v-menu__content--fixed":this.activatorFixed,menuable__content__active:this.isActive,[this.contentClass.trim()]:!0},style:this.styles,directives:this.genDirectives(),ref:"content",on:{click:e=>{e.target.getAttribute("disabled")||this.closeOnContentClick&&(this.isActive=!1)},keydown:this.onKeyDown}};return this.$listeners.scroll&&(r.on=r.on||{},r.on.scroll=this.$listeners.scroll),!this.disabled&&this.openOnHover&&(r.on=r.on||{},r.on.mouseenter=this.mouseEnterHandler),this.openOnHover&&(r.on=r.on||{},r.on.mouseleave=this.mouseLeaveHandler),this.$createElement("div",r,this.getContentSlot())},getTiles(){this.$refs.content&&(this.tiles=Array.from(this.$refs.content.querySelectorAll(".v-list-item, .v-divider, .v-subheader")))},mouseEnterHandler(){this.runDelay("open",()=>{this.hasJustFocused||(this.hasJustFocused=!0)})},mouseLeaveHandler(r){this.runDelay("close",()=>{var e;!((e=this.$refs.content)===null||e===void 0)&&e.contains(r.relatedTarget)||requestAnimationFrame(()=>{this.isActive=!1,this.callDeactivate()})})},nextTile(){const r=this.tiles[this.listIndex+1];if(!r){if(!this.tiles.length)return;this.listIndex=-1,this.nextTile();return}this.listIndex++,r.tabIndex===-1&&this.nextTile()},prevTile(){const r=this.tiles[this.listIndex-1];if(!r){if(!this.tiles.length)return;this.listIndex=this.tiles.length,this.prevTile();return}this.listIndex--,r.tabIndex===-1&&this.prevTile()},lastTile(){const r=this.tiles[this.tiles.length-1];r&&(this.listIndex=this.tiles.length-1,r.tabIndex===-1&&this.prevTile())},firstTile(){const r=this.tiles[0];r&&(this.listIndex=0,r.tabIndex===-1&&this.nextTile())},onKeyDown(r){if(!this.disableKeys){if(r.keyCode===Le.esc){setTimeout(()=>{this.isActive=!1});const e=this.getActivator();this.$nextTick(()=>e&&e.focus())}else!this.isActive&&[Le.up,Le.down].includes(r.keyCode)&&(this.isActive=!0);this.$nextTick(()=>this.changeListIndex(r))}},onResize(){this.isActive&&(this.$refs.content.offsetWidth,this.updateDimensions(),clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.updateDimensions,100))}},render(r){const e={staticClass:"v-menu",class:{"v-menu--attached":this.attach===""||this.attach===!0||this.attach==="attach"},directives:[{arg:"500",name:"resize",value:this.onResize}]};return r("div",e,[!this.activator&&this.genActivator(),this.showLazyContent(()=>[this.$createElement(C6,{props:{root:!0,light:this.light,dark:this.dark}},[this.genTransition()])])])}}),Om=b.extend({name:"v-simple-checkbox",functional:!0,directives:{Ripple:ls},props:{...dt.options.props,...Ke.options.props,disabled:Boolean,ripple:{type:Boolean,default:!0},value:Boolean,indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},onIcon:{type:String,default:"$checkboxOn"},offIcon:{type:String,default:"$checkboxOff"}},render(r,{props:e,data:t,listeners:s}){const n=[];let i=e.offIcon;if(e.indeterminate?i=e.indeterminateIcon:e.value&&(i=e.onIcon),n.push(r(w,dt.options.methods.setTextColor(e.value&&e.color,{props:{disabled:e.disabled,dark:e.dark,light:e.light}}),i)),e.ripple&&!e.disabled){const a=r("div",dt.options.methods.setTextColor(e.color,{staticClass:"v-input--selection-controls__ripple",directives:[{def:ls,name:"ripple",value:{center:!0}}]}));n.push(a)}return r("div",os(t,{class:{"v-simple-checkbox":!0,"v-simple-checkbox--disabled":e.disabled},on:{click:a=>{a.stopPropagation(),t.on&&t.on.input&&!e.disabled&&xr(t.on.input).forEach(o=>o(!e.value))}}}),[r("div",{staticClass:"v-input--selection-controls__input"},n)])}}),R=Ke.extend({name:"v-divider",props:{inset:Boolean,vertical:Boolean},render(r){let e;return(!this.$attrs.role||this.$attrs.role==="separator")&&(e=this.vertical?"vertical":"horizontal"),r("hr",{class:{"v-divider":!0,"v-divider--inset":this.inset,"v-divider--vertical":this.vertical,...this.themeClasses},attrs:{role:"separator","aria-orientation":e,...this.$attrs},on:this.$listeners})}}),Jt=be(Ke).extend({name:"v-subheader",props:{inset:Boolean},render(r){return r("div",{staticClass:"v-subheader",class:{"v-subheader--inset":this.inset,...this.themeClasses},attrs:this.$attrs,on:this.$listeners},me(this))}}),Mt=ut.extend().extend({name:"v-list",provide(){return{isInList:!0,list:this}},inject:{isInMenu:{default:!1},isInNav:{default:!1}},props:{dense:Boolean,disabled:Boolean,expand:Boolean,flat:Boolean,nav:Boolean,rounded:Boolean,subheader:Boolean,threeLine:Boolean,twoLine:Boolean},data:()=>({groups:[]}),computed:{classes(){return{...ut.options.computed.classes.call(this),"v-list--dense":this.dense,"v-list--disabled":this.disabled,"v-list--flat":this.flat,"v-list--nav":this.nav,"v-list--rounded":this.rounded,"v-list--subheader":this.subheader,"v-list--two-line":this.twoLine,"v-list--three-line":this.threeLine}}},methods:{register(r){this.groups.push(r)},unregister(r){const e=this.groups.findIndex(t=>t._uid===r._uid);e>-1&&this.groups.splice(e,1)},listClick(r){if(!this.expand)for(const e of this.groups)e.toggle(r)}},render(r){const e={staticClass:"v-list",class:this.classes,style:this.styles,attrs:{role:this.isInNav||this.isInMenu?void 0:"list",...this.attrs$},on:this.listeners$};return r(this.tag,this.setBackgroundColor(this.color,e),me(this))}}),jU=be(dt,$s,Ke,Ni("listItemGroup"),Lm("inputValue")),we=jU.extend().extend({name:"v-list-item",directives:{Ripple:ls},inject:{isInGroup:{default:!1},isInList:{default:!1},isInMenu:{default:!1},isInNav:{default:!1}},inheritAttrs:!1,props:{activeClass:{type:String,default(){return this.listItemGroup?this.listItemGroup.activeClass:""}},dense:Boolean,inactive:Boolean,link:Boolean,selectable:{type:Boolean},tag:{type:String,default:"div"},threeLine:Boolean,twoLine:Boolean,value:null},data:()=>({proxyClass:"v-list-item--active"}),computed:{classes(){return{"v-list-item":!0,...$s.options.computed.classes.call(this),"v-list-item--dense":this.dense,"v-list-item--disabled":this.disabled,"v-list-item--link":this.isClickable&&!this.inactive,"v-list-item--selectable":this.selectable,"v-list-item--three-line":this.threeLine,"v-list-item--two-line":this.twoLine,...this.themeClasses}},isClickable(){return!!($s.options.computed.isClickable.call(this)||this.listItemGroup)}},created(){this.$attrs.hasOwnProperty("avatar")&&Ll("avatar",this)},methods:{click(r){r.detail&&this.$el.blur(),this.$emit("click",r),this.to||this.toggle()},genAttrs(){const r={"aria-disabled":this.disabled?!0:void 0,tabindex:this.isClickable&&!this.disabled?0:-1,...this.$attrs};return this.$attrs.hasOwnProperty("role")||this.isInNav||(this.isInGroup?(r.role="option",r["aria-selected"]=String(this.isActive)):this.isInMenu?(r.role=this.isClickable?"menuitem":void 0,r.id=r.id||`list-item-${this._uid}`):this.isInList&&(r.role="listitem")),r},toggle(){this.to&&this.inputValue===void 0&&(this.isActive=!this.isActive),this.$emit("change")}},render(r){let{tag:e,data:t}=this.generateRouteLink();t.attrs={...t.attrs,...this.genAttrs()},t[this.to?"nativeOn":"on"]={...t[this.to?"nativeOn":"on"],keydown:n=>{this.disabled||(n.keyCode===Le.enter&&this.click(n),this.$emit("keydown",n))}},this.inactive&&(e="div"),this.inactive&&this.to&&(t.on=t.nativeOn,delete t.nativeOn);const s=me(this,"default",{active:this.isActive,toggle:this.toggle});return r(e,this.isActive?this.setTextColor(this.color,t):t,s)}}),qe=b.extend({name:"v-list-item-icon",functional:!0,render(r,{data:e,children:t}){return e.staticClass=`v-list-item__icon ${e.staticClass||""}`.trim(),r("div",e,t)}}),VU=be(Pl,Em,dt,Ja("list"),Vi),pg=VU.extend().extend({name:"v-list-group",directives:{ripple:ls},props:{activeClass:{type:String,default:""},appendIcon:{type:String,default:"$expand"},color:{type:String,default:"primary"},disabled:Boolean,group:[String,RegExp],noAction:Boolean,prependIcon:String,ripple:{type:[Boolean,Object],default:!0},subGroup:Boolean},computed:{classes(){return{"v-list-group--active":this.isActive,"v-list-group--disabled":this.disabled,"v-list-group--no-action":this.noAction,"v-list-group--sub-group":this.subGroup}}},watch:{isActive(r){!this.subGroup&&r&&this.list&&this.list.listClick(this._uid)},$route:"onRouteChange"},created(){this.list&&this.list.register(this),this.group&&this.$route&&this.value==null&&(this.isActive=this.matchRoute(this.$route.path))},beforeDestroy(){this.list&&this.list.unregister(this)},methods:{click(r){this.disabled||(this.isBooted=!0,this.$emit("click",r),this.$nextTick(()=>this.isActive=!this.isActive))},genIcon(r){return this.$createElement(w,r)},genAppendIcon(){const r=this.subGroup?!1:this.appendIcon,e=me(this,"appendIcon");return!r&&!e?null:this.$createElement(qe,{staticClass:"v-list-group__header__append-icon"},[e||this.genIcon(r)])},genHeader(){return this.$createElement(we,{staticClass:"v-list-group__header",attrs:{"aria-expanded":String(this.isActive),role:"button"},class:{[this.activeClass]:this.isActive},props:{inputValue:this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.listeners$,click:this.click}},[this.genPrependIcon(),me(this,"activator"),this.genAppendIcon()])},genItems(){return this.showLazyContent(()=>[this.$createElement("div",{staticClass:"v-list-group__items",directives:[{name:"show",value:this.isActive}]},me(this))])},genPrependIcon(){const r=this.subGroup&&this.prependIcon==null?"$subgroup":this.prependIcon,e=me(this,"prependIcon");return!r&&!e?null:this.$createElement(qe,{staticClass:"v-list-group__header__prepend-icon"},[e||this.genIcon(r)])},onRouteChange(r){if(!this.group)return;const e=this.matchRoute(r.path);e&&this.isActive!==e&&this.list&&this.list.listClick(this._uid),this.isActive=e},toggle(r){const e=this._uid===r;e&&(this.isBooted=!0),this.$nextTick(()=>this.isActive=e)},matchRoute(r){return r.match(this.group)!==null}},render(r){return r("div",this.setTextColor(this.isActive&&this.color,{staticClass:"v-list-group",class:this.classes}),[this.genHeader(),r(Zc,this.genItems())])}}),ub=b.extend({name:"comparable",props:{valueComparator:{type:Function,default:Gt}}});function NU(r="value",e="change"){return b.extend({name:"proxyable",model:{prop:r,event:e},props:{[r]:{required:!1}},data(){return{internalLazyValue:this[r]}},computed:{internalValue:{get(){return this.internalLazyValue},set(t){t!==this.internalLazyValue&&(this.internalLazyValue=t,this.$emit(e,t))}}},watch:{[r](t){this.internalLazyValue=t}}})}const Tm=NU(),vr=be(ub,Tm,Ke).extend({name:"base-item-group",props:{activeClass:{type:String,default:"v-item--active"},mandatory:Boolean,max:{type:[Number,String],default:null},multiple:Boolean,tag:{type:String,default:"div"}},data(){return{internalLazyValue:this.value!==void 0?this.value:this.multiple?[]:void 0,items:[]}},computed:{classes(){return{"v-item-group":!0,...this.themeClasses}},selectedIndex(){return this.selectedItem&&this.items.indexOf(this.selectedItem)||-1},selectedItem(){if(!this.multiple)return this.selectedItems[0]},selectedItems(){return this.items.filter((r,e)=>this.toggleMethod(this.getValue(r,e)))},selectedValues(){return this.internalValue==null?[]:Array.isArray(this.internalValue)?this.internalValue:[this.internalValue]},toggleMethod(){if(!this.multiple)return e=>this.valueComparator(this.internalValue,e);const r=this.internalValue;return Array.isArray(r)?e=>r.some(t=>this.valueComparator(t,e)):()=>!1}},watch:{internalValue:"updateItemsState",items:"updateItemsState"},created(){this.multiple&&!Array.isArray(this.internalValue)&&lr("Model must be bound to an array if the multiple property is true.",this)},methods:{genData(){return{class:this.classes}},getValue(r,e){return r.value===void 0?e:r.value},onClick(r){this.updateInternalValue(this.getValue(r,this.items.indexOf(r)))},register(r){const e=this.items.push(r)-1;r.$on("change",()=>this.onClick(r)),this.mandatory&&!this.selectedValues.length&&this.updateMandatory(),this.updateItem(r,e)},unregister(r){if(this._isDestroyed)return;const e=this.items.indexOf(r),t=this.getValue(r,e);if(this.items.splice(e,1),!(this.selectedValues.indexOf(t)<0)){if(!this.mandatory)return this.updateInternalValue(t);this.multiple&&Array.isArray(this.internalValue)?this.internalValue=this.internalValue.filter(n=>n!==t):this.internalValue=void 0,this.selectedItems.length||this.updateMandatory(!0)}},updateItem(r,e){const t=this.getValue(r,e);r.isActive=this.toggleMethod(t)},updateItemsState(){this.$nextTick(()=>{if(this.mandatory&&!this.selectedItems.length)return this.updateMandatory();this.items.forEach(this.updateItem)})},updateInternalValue(r){this.multiple?this.updateMultiple(r):this.updateSingle(r)},updateMandatory(r){if(!this.items.length)return;const e=this.items.slice();r&&e.reverse();const t=e.find(n=>!n.disabled);if(!t)return;const s=this.items.indexOf(t);this.updateInternalValue(this.getValue(t,s))},updateMultiple(r){const t=(Array.isArray(this.internalValue)?this.internalValue:[]).slice(),s=t.findIndex(n=>this.valueComparator(n,r));this.mandatory&&s>-1&&t.length-1<1||this.max!=null&&s<0&&t.length+1>this.max||(s>-1?t.splice(s,1):t.push(r),this.internalValue=t)},updateSingle(r){const e=this.valueComparator(this.internalValue,r);this.mandatory&&e||(this.internalValue=e?void 0:r)}},render(r){return r(this.tag,this.genData(),me(this))}}),zU=vr.extend({name:"v-item-group",provide(){return{itemGroup:this}}}),UU=be(vr,dt).extend({name:"v-list-item-group",provide(){return{isInGroup:!0,listItemGroup:this}},computed:{classes(){return{...vr.options.computed.classes.call(this),"v-list-item-group":!0}}},methods:{genData(){return this.setTextColor(this.color,{...vr.options.methods.genData.call(this),attrs:{role:"listbox"}})}}}),ir=b.extend({name:"v-list-item-action",functional:!0,render(r,{data:e,children:t=[]}){return e.staticClass=e.staticClass?`v-list-item__action ${e.staticClass}`:"v-list-item__action",t.filter(n=>n.isComment===!1&&n.text!==" ").length>1&&(e.staticClass+=" v-list-item__action--stack"),r("div",e,t)}});qr("v-list-item__action-text","span");const Ee=qr("v-list-item__content","div"),xe=qr("v-list-item__title","div"),Jp=qr("v-list-item__subtitle","div"),bw=be(dt,Ke).extend({name:"v-select-list",directives:{ripple:ls},props:{action:Boolean,dense:Boolean,hideSelected:Boolean,items:{type:Array,default:()=>[]},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},noDataText:String,noFilter:Boolean,searchInput:null,selectedItems:{type:Array,default:()=>[]}},computed:{parsedItems(){return this.selectedItems.map(r=>this.getValue(r))},tileActiveClass(){return Object.keys(this.setTextColor(this.color).class||{}).join(" ")},staticNoDataTile(){const r={attrs:{role:void 0},on:{mousedown:e=>e.preventDefault()}};return this.$createElement(we,r,[this.genTileContent(this.noDataText)])}},methods:{genAction(r,e){return this.$createElement(ir,[this.$createElement(Om,{props:{color:this.color,value:e,ripple:!1},on:{input:()=>this.$emit("select",r)}})])},genDivider(r){return this.$createElement(R,{props:r})},genFilteredText(r){if(r=r||"",!this.searchInput||this.noFilter)return r;const{start:e,middle:t,end:s}=this.getMaskedCharacters(r);return[e,this.genHighlight(t),s]},genHeader(r){return this.$createElement(Jt,{props:r},r.header)},genHighlight(r){return this.$createElement("span",{staticClass:"v-list-item__mask"},r)},getMaskedCharacters(r){const e=(this.searchInput||"").toString().toLocaleLowerCase(),t=r.toLocaleLowerCase().indexOf(e);if(t<0)return{start:r,middle:"",end:""};const s=r.slice(0,t),n=r.slice(t,t+e.length),i=r.slice(t+e.length);return{start:s,middle:n,end:i}},genTile({item:r,index:e,disabled:t=null,value:s=!1}){s||(s=this.hasItem(r)),r===Object(r)&&(t=t!==null?t:this.getDisabled(r));const n={attrs:{"aria-selected":String(s),id:`list-item-${this._uid}-${e}`,role:"option"},on:{mousedown:o=>{o.preventDefault()},click:()=>t||this.$emit("select",r)},props:{activeClass:this.tileActiveClass,disabled:t,ripple:!0,inputValue:s}};if(!this.$scopedSlots.item)return this.$createElement(we,n,[this.action&&!this.hideSelected&&this.items.length>0?this.genAction(r,s):null,this.genTileContent(r,e)]);const i=this,a=this.$scopedSlots.item({parent:i,item:r,attrs:{...n.attrs,...n.props},on:n.on});return this.needsTile(a)?this.$createElement(we,n,a):a},genTileContent(r,e=0){return this.$createElement(Ee,[this.$createElement(xe,[this.genFilteredText(this.getText(r))])])},hasItem(r){return this.parsedItems.indexOf(this.getValue(r))>-1},needsTile(r){return r.length!==1||r[0].componentOptions==null||r[0].componentOptions.Ctor.options.name!=="v-list-item"},getDisabled(r){return!!In(r,this.itemDisabled,!1)},getText(r){return String(In(r,this.itemText,r))},getValue(r){return In(r,this.itemValue,this.getText(r))}},render(){const r=[],e=this.items.length;for(let t=0;t<e;t++){const s=this.items[t];this.hideSelected&&this.hasItem(s)||(s==null?r.push(this.genTile({item:s,index:t})):s.header?r.push(this.genHeader(s)):s.divider?r.push(this.genDivider(s)):r.push(this.genTile({item:s,index:t})))}return r.length||r.push(this.$slots["no-data"]||this.staticNoDataTile),this.$slots["prepend-item"]&&r.unshift(this.$slots["prepend-item"]),this.$slots["append-item"]&&r.push(this.$slots["append-item"]),this.$createElement(Mt,{staticClass:"v-select-list",class:this.themeClasses,attrs:{role:"listbox",tabindex:-1},on:{mousedown:t=>{t.preventDefault()}},props:{dense:this.dense}},r)}}),db=be(Ke).extend({name:"v-label",functional:!0,props:{absolute:Boolean,color:{type:String,default:"primary"},disabled:Boolean,focused:Boolean,for:String,left:{type:[Number,String],default:0},right:{type:[Number,String],default:"auto"},value:Boolean},render(r,e){const{children:t,listeners:s,props:n,data:i}=e,a=os({staticClass:"v-label",class:{"v-label--active":n.value,"v-label--is-disabled":n.disabled,...I4(e)},attrs:{for:n.for,"aria-hidden":!n.for},on:s,style:{left:ge(n.left),right:ge(n.right),position:n.absolute?"absolute":"relative"},ref:"label"},i);return r("label",dt.options.methods.setTextColor(n.focused&&n.color,a),t)}}),WU=be(dt,Ke).extend({name:"v-messages",props:{value:{type:Array,default:()=>[]}},methods:{genChildren(){return this.$createElement("transition-group",{staticClass:"v-messages__wrapper",attrs:{name:"message-transition",tag:"div"}},this.value.map(this.genMessage))},genMessage(r,e){return this.$createElement("div",{staticClass:"v-messages__message",key:e},me(this,"default",{message:r,key:e})||[r])}},render(r){return r("div",this.setTextColor(this.color,{staticClass:"v-messages",class:this.themeClasses}),[this.genChildren()])}}),GU=be(dt,Ja("form"),Ke),O6=GU.extend({name:"validatable",props:{disabled:{type:Boolean,default:null},error:Boolean,errorCount:{type:[Number,String],default:1},errorMessages:{type:[String,Array],default:()=>[]},messages:{type:[String,Array],default:()=>[]},readonly:{type:Boolean,default:null},rules:{type:Array,default:()=>[]},success:Boolean,successMessages:{type:[String,Array],default:()=>[]},validateOnBlur:Boolean,value:{required:!1}},data(){return{errorBucket:[],hasColor:!1,hasFocused:!1,hasInput:!1,isFocused:!1,isResetting:!1,lazyValue:this.value,valid:!1}},computed:{computedColor(){if(!this.isDisabled)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},hasError(){return this.internalErrorMessages.length>0||this.errorBucket.length>0||this.error},hasSuccess(){return this.internalSuccessMessages.length>0||this.success},externalError(){return this.internalErrorMessages.length>0||this.error},hasMessages(){return this.validationTarget.length>0},hasState(){return this.isDisabled?!1:this.hasSuccess||this.shouldValidate&&this.hasError},internalErrorMessages(){return this.genInternalMessages(this.errorMessages)},internalMessages(){return this.genInternalMessages(this.messages)},internalSuccessMessages(){return this.genInternalMessages(this.successMessages)},internalValue:{get(){return this.lazyValue},set(r){this.lazyValue=r,this.$emit("input",r)}},isDisabled(){var r;return(r=this.disabled)!==null&&r!==void 0?r:!!this.form&&this.form.disabled},isInteractive(){return!this.isDisabled&&!this.isReadonly},isReadonly(){var r;return(r=this.readonly)!==null&&r!==void 0?r:!!this.form&&this.form.readonly},shouldValidate(){return this.externalError?!0:this.isResetting?!1:this.validateOnBlur?this.hasFocused&&!this.isFocused:this.hasInput||this.hasFocused},validations(){return this.validationTarget.slice(0,Number(this.errorCount))},validationState(){if(!this.isDisabled){if(this.hasError&&this.shouldValidate)return"error";if(this.hasSuccess)return"success";if(this.hasColor)return this.computedColor}},validationTarget(){return this.internalErrorMessages.length>0?this.internalErrorMessages:this.successMessages&&this.successMessages.length>0?this.internalSuccessMessages:this.messages&&this.messages.length>0?this.internalMessages:this.shouldValidate?this.errorBucket:[]}},watch:{rules:{handler(r,e){Gt(r,e)||this.validate()},deep:!0},internalValue(){this.hasInput=!0,this.validateOnBlur||this.$nextTick(this.validate)},isFocused(r){!r&&!this.isDisabled&&(this.hasFocused=!0,this.validateOnBlur&&this.$nextTick(this.validate))},isResetting(){setTimeout(()=>{this.hasInput=!1,this.hasFocused=!1,this.isResetting=!1,this.validate()},0)},hasError(r){this.shouldValidate&&this.$emit("update:error",r)},value(r){this.lazyValue=r}},beforeMount(){this.validate()},created(){this.form&&this.form.register(this)},beforeDestroy(){this.form&&this.form.unregister(this)},methods:{genInternalMessages(r){return r?Array.isArray(r)?r:[r]:[]},reset(){this.isResetting=!0,this.internalValue=Array.isArray(this.internalValue)?[]:null},resetValidation(){this.isResetting=!0},validate(r=!1,e){const t=[];e=e||this.internalValue,r&&(this.hasInput=this.hasFocused=!0);for(let s=0;s<this.rules.length;s++){const n=this.rules[s],i=typeof n=="function"?n(e):n;i===!1||typeof i=="string"?t.push(i||""):typeof i!="boolean"&&Ns(`Rules should return a string or boolean, received '${typeof i}' instead`,this)}return this.errorBucket=t,this.valid=t.length===0,this.valid}}}),qU=be(Pl,O6),Pt=qU.extend().extend({name:"v-input",inheritAttrs:!1,props:{appendIcon:String,backgroundColor:{type:String,default:""},dense:Boolean,height:[Number,String],hideDetails:[Boolean,String],hideSpinButtons:Boolean,hint:String,id:String,label:String,loading:Boolean,persistentHint:Boolean,prependIcon:String,value:null},data(){return{lazyValue:this.value,hasMouseDown:!1}},computed:{classes(){return{"v-input--has-state":this.hasState,"v-input--hide-details":!this.showDetails,"v-input--is-label-active":this.isLabelActive,"v-input--is-dirty":this.isDirty,"v-input--is-disabled":this.isDisabled,"v-input--is-focused":this.isFocused,"v-input--is-loading":this.loading!==!1&&this.loading!=null,"v-input--is-readonly":this.isReadonly,"v-input--dense":this.dense,"v-input--hide-spin-buttons":this.hideSpinButtons,...this.themeClasses}},computedId(){return this.id||`input-${this._uid}`},hasDetails(){return this.messagesToDisplay.length>0},hasHint(){return!this.hasMessages&&!!this.hint&&(this.persistentHint||this.isFocused)},hasLabel(){return!!(this.$slots.label||this.label)},internalValue:{get(){return this.lazyValue},set(r){this.lazyValue=r,this.$emit(this.$_modelEvent,r)}},isDirty(){return!!this.lazyValue},isLabelActive(){return this.isDirty},messagesToDisplay(){return this.hasHint?[this.hint]:this.hasMessages?this.validations.map(r=>{if(typeof r=="string")return r;const e=r(this.internalValue);return typeof e=="string"?e:""}).filter(r=>r!==""):[]},showDetails(){return this.hideDetails===!1||this.hideDetails==="auto"&&this.hasDetails}},watch:{value(r){this.lazyValue=r}},beforeCreate(){this.$_modelEvent=this.$options.model&&this.$options.model.event||"input"},methods:{genContent(){return[this.genPrependSlot(),this.genControl(),this.genAppendSlot()]},genControl(){return this.$createElement("div",{staticClass:"v-input__control",attrs:{title:this.attrs$.title}},[this.genInputSlot(),this.genMessages()])},genDefaultSlot(){return[this.genLabel(),me(this)]},genIcon(r,e,t={}){var s;const n=this[`${r}Icon`],i=`click:${jv(r)}`,a=!!(this.listeners$[i]||e),o={prepend:"prependAction",prependInner:"prependAction",append:"appendAction",appendOuter:"appendAction",clear:"clear"}[r],l=a&&o?this.$vuetify.lang.t(`$vuetify.input.${o}`,(s=this.label)!==null&&s!==void 0?s:""):void 0,c=os({attrs:{"aria-label":l,color:this.validationState,dark:this.dark,disabled:this.isDisabled,light:this.light,tabindex:r==="clear"?-1:void 0},on:a?{click:u=>{u.preventDefault(),u.stopPropagation(),this.$emit(i,u),e&&e(u)},mouseup:u=>{u.preventDefault(),u.stopPropagation()}}:void 0},t);return this.$createElement("div",{staticClass:"v-input__icon",class:r?`v-input__icon--${jv(r)}`:void 0},[this.$createElement(w,c,n)])},genInputSlot(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor,{staticClass:"v-input__slot",style:{height:ge(this.height)},on:{click:this.onClick,mousedown:this.onMouseDown,mouseup:this.onMouseUp},ref:"input-slot"}),[this.genDefaultSlot()])},genLabel(){return this.hasLabel?this.$createElement(db,{props:{color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:this.hasState,for:this.computedId,light:this.light}},me(this,"label")||this.label):null},genMessages(){return this.showDetails?this.$createElement(WU,{props:{color:this.hasHint?"":this.validationState,dark:this.dark,light:this.light,value:this.messagesToDisplay},attrs:{role:this.hasMessages?"alert":null},scopedSlots:{default:r=>me(this,"message",r)}}):null},genSlot(r,e,t){if(!t.length)return null;const s=`${r}-${e}`;return this.$createElement("div",{staticClass:`v-input__${s}`,ref:s},t)},genPrependSlot(){const r=[];return this.$slots.prepend?r.push(this.$slots.prepend):this.prependIcon&&r.push(this.genIcon("prepend")),this.genSlot("prepend","outer",r)},genAppendSlot(){const r=[];return this.$slots.append?r.push(this.$slots.append):this.appendIcon&&r.push(this.genIcon("append")),this.genSlot("append","outer",r)},onClick(r){this.$emit("click",r)},onMouseDown(r){this.hasMouseDown=!0,this.$emit("mousedown",r)},onMouseUp(r){this.hasMouseDown=!1,this.$emit("mouseup",r)}},render(r){return r("div",this.setTextColor(this.validationState,{staticClass:"v-input",class:this.classes}),this.genContent())}}),ZU=be(Ke).extend({name:"v-counter",functional:!0,props:{value:{type:[Number,String],default:""},max:[Number,String]},render(r,e){const{props:t}=e,s=parseInt(t.max,10),n=parseInt(t.value,10),i=s?`${n} / ${s}`:String(t.value),a=s&&n>s;return r("div",{staticClass:"v-counter",class:{"error--text":a,...I4(e)}},i)}});function YU(r){return b.extend({name:"intersectable",data:()=>({isIntersecting:!1}),mounted(){pu.inserted(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},destroyed(){pu.unbind(this.$el,{name:"intersect",value:this.onObserve},this.$vnode)},methods:{onObserve(e,t,s){if(this.isIntersecting=s,!!s)for(let n=0,i=r.onVisible.length;n<i;n++){const a=this[r.onVisible[n]];if(typeof a=="function"){a();continue}lr(r.onVisible[n]+" method is not available on the instance but referenced in intersectable mixin options")}}}})}const KU=be(dt,Al(["absolute","fixed","top","bottom"]),Tm,Ke),Ys=KU.extend({name:"v-progress-linear",directives:{intersect:pu},props:{active:{type:Boolean,default:!0},backgroundColor:{type:String,default:null},backgroundOpacity:{type:[Number,String],default:null},bufferValue:{type:[Number,String],default:100},color:{type:String,default:"primary"},height:{type:[Number,String],default:4},indeterminate:Boolean,query:Boolean,reverse:Boolean,rounded:Boolean,stream:Boolean,striped:Boolean,value:{type:[Number,String],default:0}},data(){return{internalLazyValue:this.value||0,isVisible:!0}},computed:{__cachedBackground(){return this.$createElement("div",this.setBackgroundColor(this.backgroundColor||this.color,{staticClass:"v-progress-linear__background",style:this.backgroundStyle}))},__cachedBar(){return this.$createElement(this.computedTransition,[this.__cachedBarType])},__cachedBarType(){return this.indeterminate?this.__cachedIndeterminate:this.__cachedDeterminate},__cachedBuffer(){return this.$createElement("div",{staticClass:"v-progress-linear__buffer",style:this.styles})},__cachedDeterminate(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__determinate",style:{width:ge(this.normalizedValue,"%")}}))},__cachedIndeterminate(){return this.$createElement("div",{staticClass:"v-progress-linear__indeterminate",class:{"v-progress-linear__indeterminate--active":this.active}},[this.genProgressBar("long"),this.genProgressBar("short")])},__cachedStream(){return this.stream?this.$createElement("div",this.setTextColor(this.color,{staticClass:"v-progress-linear__stream",style:{width:ge(100-this.normalizedBuffer,"%")}})):null},backgroundStyle(){return{opacity:this.backgroundOpacity==null?this.backgroundColor?1:.3:parseFloat(this.backgroundOpacity),[this.isReversed?"right":"left"]:ge(this.normalizedValue,"%"),width:ge(Math.max(0,this.normalizedBuffer-this.normalizedValue),"%")}},classes(){return{"v-progress-linear--absolute":this.absolute,"v-progress-linear--fixed":this.fixed,"v-progress-linear--query":this.query,"v-progress-linear--reactive":this.reactive,"v-progress-linear--reverse":this.isReversed,"v-progress-linear--rounded":this.rounded,"v-progress-linear--striped":this.striped,"v-progress-linear--visible":this.isVisible,...this.themeClasses}},computedTransition(){return this.indeterminate?Ol:MU},isReversed(){return this.$vuetify.rtl!==this.reverse},normalizedBuffer(){return this.normalize(this.bufferValue)},normalizedValue(){return this.normalize(this.internalLazyValue)},reactive(){return!!this.$listeners.change},styles(){const r={};return this.active||(r.height=0),!this.indeterminate&&parseFloat(this.normalizedBuffer)!==100&&(r.width=ge(this.normalizedBuffer,"%")),r}},methods:{genContent(){const r=me(this,"default",{value:this.internalLazyValue});return r?this.$createElement("div",{staticClass:"v-progress-linear__content"},r):null},genListeners(){const r=this.$listeners;return this.reactive&&(r.click=this.onClick),r},genProgressBar(r){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-progress-linear__indeterminate",class:{[r]:!0}}))},onClick(r){if(!this.reactive)return;const{width:e}=this.$el.getBoundingClientRect();this.internalValue=r.offsetX/e*100},onObserve(r,e,t){this.isVisible=t},normalize(r){return r<0?0:r>100?100:parseFloat(r)}},render(r){const e={staticClass:"v-progress-linear",attrs:{role:"progressbar","aria-valuemin":0,"aria-valuemax":this.normalizedBuffer,"aria-valuenow":this.indeterminate?void 0:this.normalizedValue},class:this.classes,directives:[{name:"intersect",value:this.onObserve}],style:{bottom:this.bottom?0:void 0,height:this.active?ge(this.height):0,top:this.top?0:void 0},on:this.genListeners()};return r("div",e,[this.__cachedStream,this.__cachedBackground,this.__cachedBuffer,this.__cachedBar,this.genContent()])}}),Yo=b.extend().extend({name:"loadable",props:{loading:{type:[Boolean,String],default:!1},loaderHeight:{type:[Number,String],default:2}},methods:{genProgress(){return this.loading===!1?null:me(this,"progress")||this.$createElement(Ys,{props:{absolute:!0,color:this.loading===!0||this.loading===""?this.color||"primary":this.loading,height:this.loaderHeight,indeterminate:!0}})}}}),XU=be(Pt,YU({onVisible:["onResize","tryAutofocus"]}),Yo),QU=["color","file","time","date","datetime-local","week","month"],ae=XU.extend().extend({name:"v-text-field",directives:{resize:md,ripple:ls},inheritAttrs:!1,props:{appendOuterIcon:String,autofocus:Boolean,clearable:Boolean,clearIcon:{type:String,default:"$clear"},counter:[Boolean,Number,String],counterValue:Function,filled:Boolean,flat:Boolean,fullWidth:Boolean,label:String,outlined:Boolean,placeholder:String,prefix:String,prependInnerIcon:String,persistentPlaceholder:Boolean,reverse:Boolean,rounded:Boolean,shaped:Boolean,singleLine:Boolean,solo:Boolean,soloInverted:Boolean,suffix:String,type:{type:String,default:"text"}},data:()=>({badInput:!1,labelWidth:0,prefixWidth:0,prependWidth:0,initialValue:null,isBooted:!1,isClearing:!1}),computed:{classes(){return{...Pt.options.computed.classes.call(this),"v-text-field":!0,"v-text-field--full-width":this.fullWidth,"v-text-field--prefix":this.prefix,"v-text-field--single-line":this.isSingle,"v-text-field--solo":this.isSolo,"v-text-field--solo-inverted":this.soloInverted,"v-text-field--solo-flat":this.flat,"v-text-field--filled":this.filled,"v-text-field--is-booted":this.isBooted,"v-text-field--enclosed":this.isEnclosed,"v-text-field--reverse":this.reverse,"v-text-field--outlined":this.outlined,"v-text-field--placeholder":this.placeholder,"v-text-field--rounded":this.rounded,"v-text-field--shaped":this.shaped}},computedColor(){const r=O6.options.computed.computedColor.call(this);return!this.soloInverted||!this.isFocused?r:this.color||"primary"},computedCounterValue(){return typeof this.counterValue=="function"?this.counterValue(this.internalValue):[...(this.internalValue||"").toString()].length},hasCounter(){return this.counter!==!1&&this.counter!=null},hasDetails(){return Pt.options.computed.hasDetails.call(this)||this.hasCounter},internalValue:{get(){return this.lazyValue},set(r){this.lazyValue=r,this.$emit("input",this.lazyValue)}},isDirty(){var r;return((r=this.lazyValue)===null||r===void 0?void 0:r.toString().length)>0||this.badInput},isEnclosed(){return this.filled||this.isSolo||this.outlined},isLabelActive(){return this.isDirty||QU.includes(this.type)},isSingle(){return this.isSolo||this.singleLine||this.fullWidth||this.filled&&!this.hasLabel},isSolo(){return this.solo||this.soloInverted},labelPosition(){let r=this.prefix&&!this.labelValue?this.prefixWidth:0;return this.labelValue&&this.prependWidth&&(r-=this.prependWidth),this.$vuetify.rtl===this.reverse?{left:r,right:"auto"}:{left:"auto",right:r}},showLabel(){return this.hasLabel&&!(this.isSingle&&this.labelValue)},labelValue(){return this.isFocused||this.isLabelActive||this.persistentPlaceholder}},watch:{outlined:"setLabelWidth",label(){this.$nextTick(this.setLabelWidth)},prefix(){this.$nextTick(this.setPrefixWidth)},isFocused:"updateValue",value(r){this.lazyValue=r}},created(){this.$attrs.hasOwnProperty("box")&&Zs("box","filled",this),this.$attrs.hasOwnProperty("browser-autocomplete")&&Zs("browser-autocomplete","autocomplete",this),this.shaped&&!(this.filled||this.outlined||this.isSolo)&&lr("shaped should be used with either filled or outlined",this)},mounted(){this.$watch(()=>this.labelValue,this.setLabelWidth),this.autofocus&&this.tryAutofocus(),requestAnimationFrame(()=>{this.isBooted=!0,requestAnimationFrame(()=>{this.isIntersecting||this.onResize()})})},methods:{focus(){this.onFocus()},blur(r){window.requestAnimationFrame(()=>{this.$refs.input&&this.$refs.input.blur()})},clearableCallback(){this.$refs.input&&this.$refs.input.focus(),this.$nextTick(()=>this.internalValue=null)},genAppendSlot(){const r=[];return this.$slots["append-outer"]?r.push(this.$slots["append-outer"]):this.appendOuterIcon&&r.push(this.genIcon("appendOuter")),this.genSlot("append","outer",r)},genPrependInnerSlot(){const r=[];return this.$slots["prepend-inner"]?r.push(this.$slots["prepend-inner"]):this.prependInnerIcon&&r.push(this.genIcon("prependInner")),this.genSlot("prepend","inner",r)},genIconSlot(){const r=[];return this.$slots.append?r.push(this.$slots.append):this.appendIcon&&r.push(this.genIcon("append")),this.genSlot("append","inner",r)},genInputSlot(){const r=Pt.options.methods.genInputSlot.call(this),e=this.genPrependInnerSlot();return e&&(r.children=r.children||[],r.children.unshift(e)),r},genClearIcon(){return this.clearable?this.isDirty?this.genSlot("append","inner",[this.genIcon("clear",this.clearableCallback)]):this.genSlot("append","inner",[this.$createElement("div")]):null},genCounter(){var r,e,t;if(!this.hasCounter)return null;const s=this.counter===!0?this.attrs$.maxlength:this.counter,n={dark:this.dark,light:this.light,max:s,value:this.computedCounterValue};return(t=(e=(r=this.$scopedSlots).counter)===null||e===void 0?void 0:e.call(r,{props:n}))!==null&&t!==void 0?t:this.$createElement(ZU,{props:n})},genControl(){return Pt.options.methods.genControl.call(this)},genDefaultSlot(){return[this.genFieldset(),this.genTextFieldSlot(),this.genClearIcon(),this.genIconSlot(),this.genProgress()]},genFieldset(){return this.outlined?this.$createElement("fieldset",{attrs:{"aria-hidden":!0}},[this.genLegend()]):null},genLabel(){if(!this.showLabel)return null;const r={props:{absolute:!0,color:this.validationState,dark:this.dark,disabled:this.isDisabled,focused:!this.isSingle&&(this.isFocused||!!this.validationState),for:this.computedId,left:this.labelPosition.left,light:this.light,right:this.labelPosition.right,value:this.labelValue}};return this.$createElement(db,r,me(this,"label")||this.label)},genLegend(){const r=!this.singleLine&&(this.labelValue||this.isDirty)?this.labelWidth:0,e=this.$createElement("span",{domProps:{innerHTML:"&#8203;"},staticClass:"notranslate"});return this.$createElement("legend",{style:{width:this.isSingle?void 0:ge(r)}},[e])},genInput(){const r=Object.assign({},this.listeners$);delete r.change;const{title:e,...t}=this.attrs$;return this.$createElement("input",{style:{},domProps:{value:this.type==="number"&&Object.is(this.lazyValue,-0)?"-0":this.lazyValue},attrs:{...t,autofocus:this.autofocus,disabled:this.isDisabled,id:this.computedId,placeholder:this.persistentPlaceholder||this.isFocused||!this.hasLabel?this.placeholder:void 0,readonly:this.isReadonly,type:this.type},on:Object.assign(r,{blur:this.onBlur,input:this.onInput,focus:this.onFocus,keydown:this.onKeyDown}),ref:"input",directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]})},genMessages(){if(!this.showDetails)return null;const r=Pt.options.methods.genMessages.call(this),e=this.genCounter();return this.$createElement("div",{staticClass:"v-text-field__details"},[r,e])},genTextFieldSlot(){return this.$createElement("div",{staticClass:"v-text-field__slot"},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,this.genInput(),this.suffix?this.genAffix("suffix"):null])},genAffix(r){return this.$createElement("div",{class:`v-text-field__${r}`,ref:r},this[r])},onBlur(r){this.isFocused=!1,r&&this.$nextTick(()=>this.$emit("blur",r))},onClick(){this.isFocused||this.isDisabled||!this.$refs.input||this.$refs.input.focus()},onFocus(r){if(!this.$refs.input)return;const e=Nh(this.$el);if(e){if(e.activeElement!==this.$refs.input)return this.$refs.input.focus();this.isFocused||(this.isFocused=!0,r&&this.$emit("focus",r))}},onInput(r){const e=r.target;this.internalValue=e.value,this.badInput=e.validity&&e.validity.badInput},onKeyDown(r){r.keyCode===Le.enter&&this.lazyValue!==this.initialValue&&(this.initialValue=this.lazyValue,this.$emit("change",this.initialValue)),this.$emit("keydown",r)},onMouseDown(r){r.target!==this.$refs.input&&(r.preventDefault(),r.stopPropagation()),Pt.options.methods.onMouseDown.call(this,r)},onMouseUp(r){this.hasMouseDown&&this.focus(),Pt.options.methods.onMouseUp.call(this,r)},setLabelWidth(){this.outlined&&(this.labelWidth=this.$refs.label?Math.min(this.$refs.label.scrollWidth*.75+6,this.$el.offsetWidth-24):0)},setPrefixWidth(){this.$refs.prefix&&(this.prefixWidth=this.$refs.prefix.offsetWidth)},setPrependWidth(){!this.outlined||!this.$refs["prepend-inner"]||(this.prependWidth=this.$refs["prepend-inner"].offsetWidth)},tryAutofocus(){if(!this.autofocus||typeof document>"u"||!this.$refs.input)return!1;const r=Nh(this.$el);return!r||r.activeElement===this.$refs.input?!1:(this.$refs.input.focus(),!0)},updateValue(r){this.hasColor=r,r?this.initialValue=this.lazyValue:this.initialValue!==this.lazyValue&&this.$emit("change",this.lazyValue)},onResize(){this.setLabelWidth(),this.setPrefixWidth(),this.setPrependWidth()}}}),JU=b.extend({name:"filterable",props:{noDataText:{type:String,default:"$vuetify.noDataText"}}}),Wv={closeOnClick:!1,closeOnContentClick:!1,disableKeys:!0,openOnClick:!1,maxHeight:304},eW=be(ae,ub,yd,JU),Te=eW.extend().extend({name:"v-select",directives:{ClickOutside:fd},props:{appendIcon:{type:String,default:"$dropdown"},attach:{type:null,default:!1},cacheItems:Boolean,chips:Boolean,clearable:Boolean,deletableChips:Boolean,disableLookup:Boolean,eager:Boolean,hideSelected:Boolean,items:{type:Array,default:()=>[]},itemColor:{type:String,default:"primary"},itemDisabled:{type:[String,Array,Function],default:"disabled"},itemText:{type:[String,Array,Function],default:"text"},itemValue:{type:[String,Array,Function],default:"value"},menuProps:{type:[String,Array,Object],default:()=>Wv},multiple:Boolean,openOnClear:Boolean,returnObject:Boolean,smallChips:Boolean},data(){return{cachedItems:this.cacheItems?this.items:[],menuIsBooted:!1,isMenuActive:!1,lastItem:20,lazyValue:this.value!==void 0?this.value:this.multiple?[]:void 0,selectedIndex:-1,selectedItems:[],keyboardLookupPrefix:"",keyboardLookupLastTime:0}},computed:{allItems(){return this.filterDuplicates(this.cachedItems.concat(this.items))},classes(){return{...ae.options.computed.classes.call(this),"v-select":!0,"v-select--chips":this.hasChips,"v-select--chips--small":this.smallChips,"v-select--is-menu-active":this.isMenuActive,"v-select--is-multi":this.multiple}},computedItems(){return this.allItems},computedOwns(){return`list-${this._uid}`},computedCounterValue(){var r;const e=this.multiple?this.selectedItems:((r=this.getText(this.selectedItems[0]))!==null&&r!==void 0?r:"").toString();return typeof this.counterValue=="function"?this.counterValue(e):e.length},directives(){return this.isFocused?[{name:"click-outside",value:{handler:this.blur,closeConditional:this.closeConditional,include:()=>this.getOpenDependentElements()}}]:void 0},dynamicHeight(){return"auto"},hasChips(){return this.chips||this.smallChips},hasSlot(){return!!(this.hasChips||this.$scopedSlots.selection)},isDirty(){return this.selectedItems.length>0},listData(){const r=this.$vnode&&this.$vnode.context.$options._scopeId;return{attrs:{...r?{[r]:!0}:{},id:this.computedOwns},props:{action:this.multiple,color:this.itemColor,dense:this.dense,hideSelected:this.hideSelected,items:this.virtualizedItems,itemDisabled:this.itemDisabled,itemText:this.itemText,itemValue:this.itemValue,noDataText:this.$vuetify.lang.t(this.noDataText),selectedItems:this.selectedItems},on:{select:this.selectItem},scopedSlots:{item:this.$scopedSlots.item}}},staticList(){return(this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"])&&Ns("assert: staticList should not be called if slots are used"),this.$createElement(bw,this.listData)},virtualizedItems(){return this.$_menuProps.auto?this.computedItems:this.computedItems.slice(0,this.lastItem)},menuCanShow:()=>!0,$_menuProps(){let r=typeof this.menuProps=="string"?this.menuProps.split(","):this.menuProps;return Array.isArray(r)&&(r=r.reduce((e,t)=>(e[t.trim()]=!0,e),{})),{...Wv,eager:this.eager,value:this.menuCanShow&&this.isMenuActive,nudgeBottom:r.offsetY?1:0,...r}}},watch:{internalValue(r){this.initialValue=r,this.setSelectedItems(),this.multiple&&this.$nextTick(()=>{var e;(e=this.$refs.menu)===null||e===void 0||e.updateDimensions()}),this.hideSelected&&this.$nextTick(()=>{this.onScroll()})},isMenuActive(r){window.setTimeout(()=>this.onMenuActiveChange(r))},items:{immediate:!0,handler(r){this.cacheItems&&this.$nextTick(()=>{this.cachedItems=this.filterDuplicates(this.cachedItems.concat(r))}),this.setSelectedItems()}}},methods:{blur(r){ae.options.methods.blur.call(this,r),this.isMenuActive=!1,this.isFocused=!1,this.selectedIndex=-1,this.setMenuIndex(-1)},activateMenu(){!this.isInteractive||this.isMenuActive||(this.isMenuActive=!0)},clearableCallback(){this.setValue(this.multiple?[]:null),this.setMenuIndex(-1),this.$nextTick(()=>this.$refs.input&&this.$refs.input.focus()),this.openOnClear&&(this.isMenuActive=!0)},closeConditional(r){return this.isMenuActive?!this._isDestroyed&&(!this.getContent()||!this.getContent().contains(r.target))&&this.$el&&!this.$el.contains(r.target)&&r.target!==this.$el:!0},filterDuplicates(r){const e=new Map;for(let t=0;t<r.length;++t){const s=r[t];if(s==null)continue;if(s.header||s.divider){e.set(s,s);continue}const n=this.getValue(s);!e.has(n)&&e.set(n,s)}return Array.from(e.values())},findExistingIndex(r){const e=this.getValue(r);return(this.internalValue||[]).findIndex(t=>this.valueComparator(this.getValue(t),e))},getContent(){return this.$refs.menu&&this.$refs.menu.$refs.content},genChipSelection(r,e){const t=this.isDisabled||this.getDisabled(r),s=!t&&this.isInteractive;return this.$createElement(gr,{staticClass:"v-chip--select",attrs:{tabindex:-1},props:{close:this.deletableChips&&s,disabled:t,inputValue:e===this.selectedIndex,small:this.smallChips},on:{click:n=>{s&&(n.stopPropagation(),this.selectedIndex=e)},"click:close":()=>this.onChipInput(r)},key:JSON.stringify(this.getValue(r))},this.getText(r))},genCommaSelection(r,e,t){const s=e===this.selectedIndex&&this.computedColor,n=this.isDisabled||this.getDisabled(r);return this.$createElement("div",this.setTextColor(s,{staticClass:"v-select__selection v-select__selection--comma",class:{"v-select__selection--disabled":n},key:JSON.stringify(this.getValue(r))}),`${this.getText(r)}${t?"":", "}`)},genDefaultSlot(){const r=this.genSelections(),e=this.genInput();return Array.isArray(r)?r.push(e):(r.children=r.children||[],r.children.push(e)),[this.genFieldset(),this.$createElement("div",{staticClass:"v-select__slot",directives:this.directives},[this.genLabel(),this.prefix?this.genAffix("prefix"):null,r,this.suffix?this.genAffix("suffix"):null,this.genClearIcon(),this.genIconSlot(),this.genHiddenInput()]),this.genMenu(),this.genProgress()]},genIcon(r,e,t){const s=Pt.options.methods.genIcon.call(this,r,e,t);return r==="append"&&(s.children[0].data=os(s.children[0].data,{attrs:{tabindex:s.children[0].componentOptions.listeners&&"-1","aria-hidden":"true","aria-label":void 0}})),s},genInput(){const r=ae.options.methods.genInput.call(this);return delete r.data.attrs.name,r.data=os(r.data,{domProps:{value:null},attrs:{readonly:!0,type:"text","aria-readonly":String(this.isReadonly),"aria-activedescendant":at(this.$refs.menu,"activeTile.id"),autocomplete:at(r.data,"attrs.autocomplete","off"),placeholder:!this.isDirty&&(this.persistentPlaceholder||this.isFocused||!this.hasLabel)?this.placeholder:void 0},on:{keypress:this.onKeyPress}}),r},genHiddenInput(){return this.$createElement("input",{domProps:{value:this.lazyValue},attrs:{type:"hidden",name:this.attrs$.name}})},genInputSlot(){const r=ae.options.methods.genInputSlot.call(this);return r.data.attrs={...r.data.attrs,role:"button","aria-haspopup":"listbox","aria-expanded":String(this.isMenuActive),"aria-owns":this.computedOwns},r},genList(){return this.$slots["no-data"]||this.$slots["prepend-item"]||this.$slots["append-item"]?this.genListWithSlot():this.staticList},genListWithSlot(){const r=["prepend-item","no-data","append-item"].filter(e=>this.$slots[e]).map(e=>this.$createElement("template",{slot:e},this.$slots[e]));return this.$createElement(bw,{...this.listData},r)},genMenu(){const r=this.$_menuProps;return r.activator=this.$refs["input-slot"],"attach"in r||(this.attach===""||this.attach===!0||this.attach==="attach"?r.attach=this.$el:r.attach=this.attach),this.$createElement(Et,{attrs:{role:void 0},props:r,on:{input:e=>{this.isMenuActive=e,this.isFocused=e},scroll:this.onScroll},ref:"menu"},[this.genList()])},genSelections(){let r=this.selectedItems.length;const e=new Array(r);let t;for(this.$scopedSlots.selection?t=this.genSlotSelection:this.hasChips?t=this.genChipSelection:t=this.genCommaSelection;r--;)e[r]=t(this.selectedItems[r],r,r===e.length-1);return this.$createElement("div",{staticClass:"v-select__selections"},e)},genSlotSelection(r,e){return this.$scopedSlots.selection({attrs:{class:"v-chip--select"},parent:this,item:r,index:e,select:t=>{t.stopPropagation(),this.selectedIndex=e},selected:e===this.selectedIndex,disabled:!this.isInteractive})},getMenuIndex(){return this.$refs.menu?this.$refs.menu.listIndex:-1},getDisabled(r){return In(r,this.itemDisabled,!1)},getText(r){return In(r,this.itemText,r)},getValue(r){return In(r,this.itemValue,this.getText(r))},onBlur(r){r&&this.$emit("blur",r)},onChipInput(r){this.multiple?this.selectItem(r):this.setValue(null),this.selectedItems.length===0?this.isMenuActive=!0:this.isMenuActive=!1,this.selectedIndex=-1},onClick(r){this.isInteractive&&(this.isAppendInner(r.target)||(this.isMenuActive=!0),this.isFocused||(this.isFocused=!0,this.$emit("focus")),this.$emit("click",r))},onEscDown(r){r.preventDefault(),this.isMenuActive&&(r.stopPropagation(),this.isMenuActive=!1)},onKeyPress(r){if(this.multiple||!this.isInteractive||this.disableLookup||r.key.length>1||r.ctrlKey||r.metaKey||r.altKey)return;const e=1e3,t=performance.now();t-this.keyboardLookupLastTime>e&&(this.keyboardLookupPrefix=""),this.keyboardLookupPrefix+=r.key.toLowerCase(),this.keyboardLookupLastTime=t;const s=this.allItems.findIndex(i=>{var a;return((a=this.getText(i))!==null&&a!==void 0?a:"").toString().toLowerCase().startsWith(this.keyboardLookupPrefix)}),n=this.allItems[s];s!==-1&&(this.lastItem=Math.max(this.lastItem,s+5),this.setValue(this.returnObject?n:this.getValue(n)),this.$nextTick(()=>this.$refs.menu.getTiles()),setTimeout(()=>this.setMenuIndex(s)))},onKeyDown(r){if(this.isReadonly&&r.keyCode!==Le.tab)return;const e=r.keyCode,t=this.$refs.menu;if(this.$emit("keydown",r),!!t){if(this.isMenuActive&&[Le.up,Le.down,Le.home,Le.end,Le.enter].includes(e)&&this.$nextTick(()=>{t.changeListIndex(r),this.$emit("update:list-index",t.listIndex)}),[Le.enter,Le.space].includes(e)&&this.activateMenu(),!this.isMenuActive&&[Le.up,Le.down,Le.home,Le.end].includes(e))return this.onUpDown(r);if(e===Le.esc)return this.onEscDown(r);if(e===Le.tab)return this.onTabDown(r);if(e===Le.space)return this.onSpaceDown(r)}},onMenuActiveChange(r){if(this.multiple&&!r||this.getMenuIndex()>-1)return;const e=this.$refs.menu;if(!(!e||!this.isDirty)){this.$refs.menu.getTiles();for(let t=0;t<e.tiles.length;t++)if(e.tiles[t].getAttribute("aria-selected")==="true"){this.setMenuIndex(t);break}}},onMouseUp(r){this.hasMouseDown&&r.which!==3&&this.isInteractive&&this.isAppendInner(r.target)&&this.$nextTick(()=>this.isMenuActive=!this.isMenuActive),ae.options.methods.onMouseUp.call(this,r)},onScroll(){if(!this.isMenuActive)requestAnimationFrame(()=>{const r=this.getContent();r&&(r.scrollTop=0)});else{if(this.lastItem>this.computedItems.length)return;this.getContent().scrollHeight-(this.getContent().scrollTop+this.getContent().clientHeight)<200&&(this.lastItem+=20)}},onSpaceDown(r){r.preventDefault()},onTabDown(r){const e=this.$refs.menu;if(!e)return;const t=e.activeTile;!this.multiple&&t&&this.isMenuActive?(r.preventDefault(),r.stopPropagation(),t.click()):this.blur(r)},onUpDown(r){const e=this.$refs.menu;if(!e)return;if(r.preventDefault(),this.multiple)return this.activateMenu();const t=r.keyCode;e.isBooted=!0,window.requestAnimationFrame(()=>{if(e.getTiles(),!e.hasClickableTiles)return this.activateMenu();switch(t){case Le.up:e.prevTile();break;case Le.down:e.nextTile();break;case Le.home:e.firstTile();break;case Le.end:e.lastTile();break}this.selectItem(this.allItems[this.getMenuIndex()])})},selectItem(r){if(!this.multiple)this.setValue(this.returnObject?r:this.getValue(r)),this.isMenuActive=!1;else{const e=(this.internalValue||[]).slice(),t=this.findExistingIndex(r);if(t!==-1?e.splice(t,1):e.push(r),this.setValue(e.map(s=>this.returnObject?s:this.getValue(s))),this.hideSelected)this.setMenuIndex(-1);else{const s=this.computedItems.indexOf(r);~s&&(this.$nextTick(()=>this.$refs.menu.getTiles()),setTimeout(()=>this.setMenuIndex(s)))}}},setMenuIndex(r){this.$refs.menu&&(this.$refs.menu.listIndex=r)},setSelectedItems(){const r=[],e=!this.multiple||!Array.isArray(this.internalValue)?[this.internalValue]:this.internalValue;for(const t of e){const s=this.allItems.findIndex(n=>this.valueComparator(this.getValue(n),this.getValue(t)));s>-1&&r.push(this.allItems[s])}this.selectedItems=r},setValue(r){this.valueComparator(r,this.internalValue)||(this.internalValue=r,this.$emit("change",r))},isAppendInner(r){const e=this.$refs["append-inner"];return e&&(e===r||e.contains(r))}}}),$w={...Wv,offsetY:!0,offsetOverflow:!0,transition:!1},uc=Te.extend({name:"v-autocomplete",props:{autoSelectFirst:{type:Boolean,default:!1},filter:{type:Function,default:(r,e,t)=>t.toLocaleLowerCase().indexOf(e.toLocaleLowerCase())>-1},hideNoData:Boolean,menuProps:{type:Te.options.props.menuProps.type,default:()=>$w},noFilter:Boolean,searchInput:{type:String}},data(){return{lazySearch:this.searchInput}},computed:{classes(){return{...Te.options.computed.classes.call(this),"v-autocomplete":!0,"v-autocomplete--is-selecting-index":this.selectedIndex>-1}},computedItems(){return this.filteredItems},selectedValues(){return this.selectedItems.map(r=>this.getValue(r))},hasDisplayedItems(){return this.hideSelected?this.filteredItems.some(r=>!this.hasItem(r)):this.filteredItems.length>0},currentRange(){return this.selectedItem==null?0:String(this.getText(this.selectedItem)).length},filteredItems(){return!this.isSearching||this.noFilter||this.internalSearch==null?this.allItems:this.allItems.filter(r=>{const e=In(r,this.itemText),t=e!=null?String(e):"";return this.filter(r,String(this.internalSearch),t)})},internalSearch:{get(){return this.lazySearch},set(r){this.lazySearch!==r&&(this.lazySearch=r,this.$emit("update:search-input",r))}},isAnyValueAllowed(){return!1},isDirty(){return this.searchIsDirty||this.selectedItems.length>0},isSearching(){return this.multiple&&this.searchIsDirty||this.searchIsDirty&&this.internalSearch!==this.getText(this.selectedItem)},menuCanShow(){return this.isFocused?this.hasDisplayedItems||!this.hideNoData:!1},$_menuProps(){const r=Te.options.computed.$_menuProps.call(this);return r.contentClass=`v-autocomplete__content ${r.contentClass||""}`.trim(),{...$w,...r}},searchIsDirty(){return this.internalSearch!=null&&this.internalSearch!==""},selectedItem(){return this.multiple?null:this.selectedItems.find(r=>this.valueComparator(this.getValue(r),this.getValue(this.internalValue)))},listData(){const r=Te.options.computed.listData.call(this);return r.props={...r.props,items:this.virtualizedItems,noFilter:this.noFilter||!this.isSearching||!this.filteredItems.length,searchInput:this.internalSearch},r}},watch:{filteredItems:"onFilteredItemsChanged",internalValue:"setSearch",isFocused(r){r?(document.addEventListener("copy",this.onCopy),this.$refs.input&&this.$refs.input.select()):(document.removeEventListener("copy",this.onCopy),this.blur(),this.updateSelf())},isMenuActive(r){r||!this.hasSlot||(this.lazySearch=null)},items(r,e){!(e&&e.length)&&this.hideNoData&&this.isFocused&&!this.isMenuActive&&r.length&&this.activateMenu()},searchInput(r){this.lazySearch=r},internalSearch:"onInternalSearchChanged",itemText:"updateSelf"},created(){this.setSearch()},destroyed(){document.removeEventListener("copy",this.onCopy)},methods:{onFilteredItemsChanged(r,e){if(r!==e){if(!this.autoSelectFirst){const t=e[this.$refs.menu.listIndex];t?this.setMenuIndex(r.findIndex(s=>s===t)):this.setMenuIndex(-1),this.$emit("update:list-index",this.$refs.menu.listIndex)}this.$nextTick(()=>{!this.internalSearch||r.length!==1&&!this.autoSelectFirst||(this.$refs.menu.getTiles(),this.autoSelectFirst&&r.length&&(this.setMenuIndex(0),this.$emit("update:list-index",this.$refs.menu.listIndex)))})}},onInternalSearchChanged(){this.updateMenuDimensions()},updateMenuDimensions(){this.isMenuActive&&this.$refs.menu&&this.$refs.menu.updateDimensions()},changeSelectedIndex(r){this.searchIsDirty||(this.multiple&&r===Le.left?this.selectedIndex===-1?this.selectedIndex=this.selectedItems.length-1:this.selectedIndex--:this.multiple&&r===Le.right?this.selectedIndex>=this.selectedItems.length-1?this.selectedIndex=-1:this.selectedIndex++:(r===Le.backspace||r===Le.delete)&&this.deleteCurrentItem())},deleteCurrentItem(){const r=this.selectedIndex,e=this.selectedItems[r];if(!this.isInteractive||this.getDisabled(e))return;const t=this.selectedItems.length-1;if(this.selectedIndex===-1&&t!==0){this.selectedIndex=t;return}const s=this.selectedItems.length,n=r!==s-1?r:r-1;this.selectedItems[n]?this.selectItem(e):this.setValue(this.multiple?[]:null),this.selectedIndex=n},clearableCallback(){this.internalSearch=null,Te.options.methods.clearableCallback.call(this)},genInput(){const r=ae.options.methods.genInput.call(this);return r.data=os(r.data,{attrs:{"aria-activedescendant":at(this.$refs.menu,"activeTile.id"),autocomplete:at(r.data,"attrs.autocomplete","off")},domProps:{value:this.internalSearch}}),r},genInputSlot(){const r=Te.options.methods.genInputSlot.call(this);return r.data.attrs.role="combobox",r},genSelections(){return this.hasSlot||this.multiple?Te.options.methods.genSelections.call(this):[]},onClick(r){this.isInteractive&&(this.selectedIndex>-1?this.selectedIndex=-1:this.onFocus(),this.isAppendInner(r.target)||this.activateMenu())},onInput(r){if(this.selectedIndex>-1||!r.target)return;const e=r.target,t=e.value;e.value&&this.activateMenu(),!this.multiple&&t===""&&this.deleteCurrentItem(),this.internalSearch=t,this.badInput=e.validity&&e.validity.badInput},onKeyDown(r){const e=r.keyCode;(r.ctrlKey||![Le.home,Le.end].includes(e))&&Te.options.methods.onKeyDown.call(this,r),this.changeSelectedIndex(e)},onSpaceDown(r){},onTabDown(r){Te.options.methods.onTabDown.call(this,r),this.updateSelf()},onUpDown(r){r.preventDefault(),this.activateMenu()},selectItem(r){Te.options.methods.selectItem.call(this,r),this.setSearch()},setSelectedItems(){Te.options.methods.setSelectedItems.call(this),this.isFocused||this.setSearch()},setSearch(){this.$nextTick(()=>{(!this.multiple||!this.internalSearch||!this.isMenuActive)&&(this.internalSearch=!this.selectedItems.length||this.multiple||this.hasSlot?null:this.getText(this.selectedItem))})},updateSelf(){!this.searchIsDirty&&!this.internalValue||!this.multiple&&!this.valueComparator(this.internalSearch,this.getValue(this.internalValue))&&this.setSearch()},hasItem(r){return this.selectedValues.indexOf(this.getValue(r))>-1},onCopy(r){var e,t;if(this.selectedIndex===-1)return;const s=this.selectedItems[this.selectedIndex],n=this.getText(s);(e=r.clipboardData)===null||e===void 0||e.setData("text/plain",n),(t=r.clipboardData)===null||t===void 0||t.setData("text/vnd.vuetify.autocomplete.item+plain",n),r.preventDefault()}}}),T6=be(dt,Al(["left","bottom"]),Ke,Vi,S6).extend({name:"v-badge",props:{avatar:Boolean,bordered:Boolean,color:{type:String,default:"primary"},content:{required:!1},dot:Boolean,label:{type:String,default:"$vuetify.badge"},icon:String,inline:Boolean,offsetX:[Number,String],offsetY:[Number,String],overlap:Boolean,tile:Boolean,transition:{type:String,default:"scale-rotate-transition"},value:{default:!0}},computed:{classes(){return{"v-badge--avatar":this.avatar,"v-badge--bordered":this.bordered,"v-badge--bottom":this.bottom,"v-badge--dot":this.dot,"v-badge--icon":this.icon!=null,"v-badge--inline":this.inline,"v-badge--left":this.left,"v-badge--overlap":this.overlap,"v-badge--tile":this.tile,...this.themeClasses}},computedBottom(){return this.bottom?"auto":this.computedYOffset},computedLeft(){return this.isRtl?this.left?this.computedXOffset:"auto":this.left?"auto":this.computedXOffset},computedRight(){return this.isRtl?this.left?"auto":this.computedXOffset:this.left?this.computedXOffset:"auto"},computedTop(){return this.bottom?this.computedYOffset:"auto"},computedXOffset(){return this.calcPosition(this.offsetX)},computedYOffset(){return this.calcPosition(this.offsetY)},isRtl(){return this.$vuetify.rtl},offset(){return this.overlap?this.dot?8:12:this.dot?2:4},styles(){return this.inline?{}:{bottom:this.computedBottom,left:this.computedLeft,right:this.computedRight,top:this.computedTop}}},methods:{calcPosition(r){return`calc(100% - ${ge(r||this.offset)})`},genBadge(){const r=this.$vuetify.lang,e=this.$attrs["aria-label"]||r.t(this.label),t=this.setBackgroundColor(this.color,{staticClass:"v-badge__badge",style:this.styles,attrs:{"aria-atomic":this.$attrs["aria-atomic"]||"true","aria-label":e,"aria-live":this.$attrs["aria-live"]||"polite",title:this.$attrs.title,role:this.$attrs.role||"status"},directives:[{name:"show",value:this.isActive}]}),s=this.$createElement("span",t,[this.genBadgeContent()]);return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,mode:this.mode}},[s]):s},genBadgeContent(){if(this.dot)return;const r=me(this,"badge");if(r)return r;if(this.content)return String(this.content);if(this.icon)return this.$createElement(w,this.icon)},genBadgeWrapper(){return this.$createElement("span",{staticClass:"v-badge__wrapper"},[this.genBadge()])}},render(r){const e=[this.genBadgeWrapper()],t=[me(this)],{"aria-atomic":s,"aria-label":n,"aria-live":i,role:a,title:o,...l}=this.$attrs;return this.inline&&this.left?t.unshift(e):t.push(e),r("span",{staticClass:"v-badge",attrs:l,class:this.classes},t)}}),mu=b.extend({name:"mobile",props:{mobileBreakpoint:{type:[Number,String],default(){return this.$vuetify?this.$vuetify.breakpoint.mobileBreakpoint:void 0},validator:r=>!isNaN(Number(r))||["xs","sm","md","lg","xl"].includes(String(r))}},computed:{isMobile(){const{mobile:r,width:e,name:t,mobileBreakpoint:s}=this.$vuetify.breakpoint;if(s===this.mobileBreakpoint)return r;const n=parseInt(this.mobileBreakpoint,10);return!isNaN(n)?e<n:t===this.mobileBreakpoint}},created(){this.$attrs.hasOwnProperty("mobile-break-point")&&n6("mobile-break-point","mobile-breakpoint",this)}}),hg=vr.extend({name:"button-group",provide(){return{btnToggle:this}},computed:{classes(){return vr.options.computed.classes.call(this)}},methods:{genData:vr.options.methods.genData}}),k6=be(dt,Ke,Vi).extend({name:"v-overlay",props:{absolute:Boolean,color:{type:String,default:"#212121"},dark:{type:Boolean,default:!0},opacity:{type:[Number,String],default:.46},value:{default:!0},zIndex:{type:[Number,String],default:5}},computed:{__scrim(){const r=this.setBackgroundColor(this.color,{staticClass:"v-overlay__scrim",style:{opacity:this.computedOpacity}});return this.$createElement("div",r)},classes(){return{"v-overlay--absolute":this.absolute,"v-overlay--active":this.isActive,...this.themeClasses}},computedOpacity(){return Number(this.isActive?this.opacity:0)},styles(){return{zIndex:this.zIndex}}},methods:{genContent(){return this.$createElement("div",{staticClass:"v-overlay__content"},me(this))}},render(r){const e=[this.__scrim];return this.isActive&&e.push(this.genContent()),r("div",{staticClass:"v-overlay",on:this.$listeners,class:this.classes,style:this.styles},e)}}),pb=b.extend().extend({name:"overlayable",props:{hideOverlay:Boolean,overlayColor:String,overlayOpacity:[Number,String]},data(){return{animationFrame:0,overlay:null}},watch:{hideOverlay(r){this.isActive&&(r?this.removeOverlay():this.genOverlay())}},beforeDestroy(){this.removeOverlay()},methods:{createOverlay(){const r=new k6({propsData:{absolute:this.absolute,value:!1,color:this.overlayColor,opacity:this.overlayOpacity}});r.$mount();const e=this.absolute?this.$el.parentNode:document.querySelector("[data-app]");e&&e.insertBefore(r.$el,e.firstChild),this.overlay=r},genOverlay(){if(this.hideScroll(),!this.hideOverlay)return this.overlay||this.createOverlay(),this.animationFrame=requestAnimationFrame(()=>{this.overlay&&(this.activeZIndex!==void 0?this.overlay.zIndex=String(this.activeZIndex-1):this.$el&&(this.overlay.zIndex=Wc(this.$el)),this.overlay.value=!0)}),!0},removeOverlay(r=!0){this.overlay&&(F4(this.overlay.$el,"transitionend",()=>{!this.overlay||!this.overlay.$el||!this.overlay.$el.parentNode||this.overlay.value||this.isActive||(this.overlay.$el.parentNode.removeChild(this.overlay.$el),this.overlay.$destroy(),this.overlay=null)}),cancelAnimationFrame(this.animationFrame),this.overlay.value=!1),r&&this.showScroll()},scrollListener(r){if("key"in r){if(["INPUT","TEXTAREA","SELECT"].includes(r.target.tagName)||r.target.isContentEditable)return;const e=[Le.up,Le.pageup],t=[Le.down,Le.pagedown];if(e.includes(r.keyCode))r.deltaY=-1;else if(t.includes(r.keyCode))r.deltaY=1;else return}(r.target===this.overlay||r.type!=="keydown"&&r.target===document.body||this.checkPath(r))&&r.preventDefault()},hasScrollbar(r){if(!r||r.nodeType!==Node.ELEMENT_NODE)return!1;const e=window.getComputedStyle(r);return(["auto","scroll"].includes(e.overflowY)||r.tagName==="SELECT")&&r.scrollHeight>r.clientHeight||["auto","scroll"].includes(e.overflowX)&&r.scrollWidth>r.clientWidth},shouldScroll(r,e){if(r.hasAttribute("data-app"))return!1;const t=e.shiftKey||e.deltaX?"x":"y",s=t==="y"?e.deltaY:e.deltaX||e.deltaY;let n,i;t==="y"?(n=r.scrollTop===0,i=r.scrollTop+r.clientHeight===r.scrollHeight):(n=r.scrollLeft===0,i=r.scrollLeft+r.clientWidth===r.scrollWidth);const a=s<0,o=s>0;return!n&&a||!i&&o?!0:(n||i)&&r.parentNode?this.shouldScroll(r.parentNode,e):!1},isInside(r,e){return r===e?!0:r===null||r===document.body?!1:this.isInside(r.parentNode,e)},checkPath(r){const e=V4(r);if(r.type==="keydown"&&e[0]===document.body){const t=this.$refs.dialog,s=window.getSelection().anchorNode;return t&&this.hasScrollbar(t)&&this.isInside(s,t)?!this.shouldScroll(t,r):!0}for(let t=0;t<e.length;t++){const s=e[t];if(s===document||s===document.documentElement||s===this.$refs.content)return!0;if(this.hasScrollbar(s))return!this.shouldScroll(s,r)}return!0},hideScroll(){this.$vuetify.breakpoint.smAndDown?document.documentElement.classList.add("overflow-y-hidden"):(cz(window,"wheel",this.scrollListener,{passive:!1}),window.addEventListener("keydown",this.scrollListener))},showScroll(){document.documentElement.classList.remove("overflow-y-hidden"),window.removeEventListener("wheel",this.scrollListener),window.removeEventListener("keydown",this.scrollListener)}}}),tW=be(yd,A6,pb,E6,L6,_d),hb=tW.extend({name:"v-dialog",directives:{ClickOutside:fd},props:{dark:Boolean,disabled:Boolean,fullscreen:Boolean,light:Boolean,maxWidth:[String,Number],noClickAnimation:Boolean,origin:{type:String,default:"center center"},persistent:Boolean,retainFocus:{type:Boolean,default:!0},scrollable:Boolean,transition:{type:[String,Boolean],default:"dialog-transition"},width:[String,Number]},data(){return{activatedBy:null,animate:!1,animateTimeout:-1,stackMinZIndex:200,previousActiveElement:null}},computed:{classes(){return{[`v-dialog ${this.contentClass}`.trim()]:!0,"v-dialog--active":this.isActive,"v-dialog--persistent":this.persistent,"v-dialog--fullscreen":this.fullscreen,"v-dialog--scrollable":this.scrollable,"v-dialog--animated":this.animate}},contentClasses(){return{"v-dialog__content":!0,"v-dialog__content--active":this.isActive}},hasActivator(){return!!(this.$slots.activator||this.$scopedSlots.activator)}},watch:{isActive(r){var e;r?(this.show(),this.hideScroll()):(this.removeOverlay(),this.unbind(),(e=this.previousActiveElement)===null||e===void 0||e.focus())},fullscreen(r){this.isActive&&(r?(this.hideScroll(),this.removeOverlay(!1)):(this.showScroll(),this.genOverlay()))}},created(){this.$attrs.hasOwnProperty("full-width")&&Ll("full-width",this)},beforeMount(){this.$nextTick(()=>{this.isBooted=this.isActive,this.isActive&&this.show()})},beforeDestroy(){typeof window<"u"&&this.unbind()},methods:{animateClick(){this.animate=!1,this.$nextTick(()=>{this.animate=!0,window.clearTimeout(this.animateTimeout),this.animateTimeout=window.setTimeout(()=>this.animate=!1,150)})},closeConditional(r){const e=r.target;return!(this._isDestroyed||!this.isActive||this.$refs.content.contains(e)||this.overlay&&e&&!this.overlay.$el.contains(e))&&this.activeZIndex>=this.getMaxZIndex()},hideScroll(){this.fullscreen?document.documentElement.classList.add("overflow-y-hidden"):pb.options.methods.hideScroll.call(this)},show(){!this.fullscreen&&!this.hideOverlay&&this.genOverlay(),this.$nextTick(()=>{this.$nextTick(()=>{var r,e;!((r=this.$refs.dialog)===null||r===void 0)&&r.contains(document.activeElement)||(this.previousActiveElement=document.activeElement,(e=this.$refs.dialog)===null||e===void 0||e.focus()),this.bind()})})},bind(){window.addEventListener("focusin",this.onFocusin)},unbind(){window.removeEventListener("focusin",this.onFocusin)},onClickOutside(r){this.$emit("click:outside",r),this.persistent?this.noClickAnimation||this.animateClick():this.isActive=!1},onKeydown(r){if(r.keyCode===Le.esc&&!this.getOpenDependents().length)if(this.persistent)this.noClickAnimation||this.animateClick();else{this.isActive=!1;const e=this.getActivator();this.$nextTick(()=>e&&e.focus())}this.$emit("keydown",r)},onFocusin(r){if(!r||!this.retainFocus)return;const e=r.target;if(e&&this.$refs.dialog&&![document,this.$refs.dialog].includes(e)&&!this.$refs.dialog.contains(e)&&this.activeZIndex>=this.getMaxZIndex()&&!this.getOpenDependentElements().some(t=>t.contains(e))){const s=[...this.$refs.dialog.querySelectorAll('button, [href], input:not([type="hidden"]), select, textarea, [tabindex]:not([tabindex="-1"])')].find(n=>!n.hasAttribute("disabled")&&!n.matches('[tabindex="-1"]'));s&&s.focus()}},genContent(){return this.showLazyContent(()=>[this.$createElement(C6,{props:{root:!0,light:this.light,dark:this.dark}},[this.$createElement("div",{class:this.contentClasses,attrs:{role:"dialog","aria-modal":this.hideOverlay?void 0:"true",...this.getScopeIdAttrs()},on:{keydown:this.onKeydown},style:{zIndex:this.activeZIndex},ref:"content"},[this.genTransition()])])])},genTransition(){const r=this.genInnerContent();return this.transition?this.$createElement("transition",{props:{name:this.transition,origin:this.origin,appear:!0}},[r]):r},genInnerContent(){const r={class:this.classes,attrs:{tabindex:this.isActive?0:void 0},ref:"dialog",directives:[{name:"click-outside",value:{handler:this.onClickOutside,closeConditional:this.closeConditional,include:this.getOpenDependentElements}},{name:"show",value:this.isActive}],style:{transformOrigin:this.origin}};return this.fullscreen||(r.style={...r.style,maxWidth:ge(this.maxWidth),width:ge(this.width)}),this.$createElement("div",r,this.getContentSlot())}},render(r){return r("div",{staticClass:"v-dialog__container",class:{"v-dialog__container--attached":this.attach===""||this.attach===!0||this.attach==="attach"}},[this.genActivator(),this.genContent()])}}),km=be(hg,dt).extend({name:"v-btn-toggle",props:{backgroundColor:String,borderless:Boolean,dense:Boolean,group:Boolean,rounded:Boolean,shaped:Boolean,tile:Boolean},computed:{classes(){return{...hg.options.computed.classes.call(this),"v-btn-toggle":!0,"v-btn-toggle--borderless":this.borderless,"v-btn-toggle--dense":this.dense,"v-btn-toggle--group":this.group,"v-btn-toggle--rounded":this.rounded,"v-btn-toggle--shaped":this.shaped,"v-btn-toggle--tile":this.tile,...this.themeClasses}}},methods:{genData(){const r=this.setTextColor(this.color,{...hg.options.methods.genData.call(this)});return this.group?r:this.setBackgroundColor(this.backgroundColor,r)}}}),rW=b.extend({name:"mouse",methods:{getDefaultMouseEventHandlers(r,e,t=!1){const s=Object.keys(this.$listeners).filter(n=>n.endsWith(r)).reduce((n,i)=>(n[i]={event:i.slice(0,-r.length)},n),{});return this.getMouseEventHandlers({...s,["contextmenu"+r]:{event:"contextmenu",prevent:!0,result:!1}},e,t)},getMouseEventHandlers(r,e,t=!1){const s={};for(const n in r){const i=r[n];if(!this.$listeners[n])continue;const o=(i.passive?"&":(i.once?"~":"")+(i.capture?"!":""))+i.event,l=c=>{var u,d;const p=c;if(i.button===void 0||p.buttons>0&&p.button===i.button){if(i.prevent&&c.preventDefault(),i.stop&&c.stopPropagation(),c&&"touches"in c){const h=" ",m=(u=c.currentTarget)===null||u===void 0?void 0:u.className.split(h),v=document.elementsFromPoint(c.changedTouches[0].clientX,c.changedTouches[0].clientY).find(y=>y.className.split(h).some(C=>m.includes(C)));if(v&&!(!((d=c.target)===null||d===void 0)&&d.isSameNode(v))){v.dispatchEvent(new TouchEvent(c.type,{changedTouches:c.changedTouches,targetTouches:c.targetTouches,touches:c.touches}));return}}t?this.$emit(n,c,e(c)):this.$emit(n,e(c),c)}return i.result};o in s?Array.isArray(s[o])?s[o].push(l):s[o]=[s[o],l]:s[o]=l}return s}}}),Ie=be(Yo,$s,ut).extend({name:"v-card",props:{flat:Boolean,hover:Boolean,img:String,link:Boolean,loaderHeight:{type:[Number,String],default:4},raised:Boolean},computed:{classes(){return{"v-card":!0,...$s.options.computed.classes.call(this),"v-card--flat":this.flat,"v-card--hover":this.hover,"v-card--link":this.isClickable,"v-card--loading":this.loading,"v-card--disabled":this.disabled,"v-card--raised":this.raised,...ut.options.computed.classes.call(this)}},styles(){const r={...ut.options.computed.styles.call(this)};return this.img&&(r.background=`url("${this.img}") center center / cover no-repeat`),r}},methods:{genProgress(){const r=Yo.options.methods.genProgress.call(this);return r?this.$createElement("div",{staticClass:"v-card__progress",key:"progress"},[r]):null}},render(r){const{tag:e,data:t}=this.generateRouteLink();return t.style=this.styles,this.isClickable&&(t.attrs=t.attrs||{},t.attrs.tabindex=0),r(e,this.setBackgroundColor(this.color,t),[this.genProgress(),me(this)])}}),bd=qr("v-card__actions"),aa=qr("v-card__subtitle"),Pe=qr("v-card__text"),jr=qr("v-card__title"),Sw=vr.extend({name:"v-window",directives:{Touch:gd},provide(){return{windowGroup:this}},props:{activeClass:{type:String,default:"v-window-item--active"},continuous:Boolean,mandatory:{type:Boolean,default:!0},nextIcon:{type:[Boolean,String],default:"$next"},prevIcon:{type:[Boolean,String],default:"$prev"},reverse:Boolean,showArrows:Boolean,showArrowsOnHover:Boolean,touch:Object,touchless:Boolean,value:{required:!1},vertical:Boolean},data(){return{changedByDelimiters:!1,internalHeight:void 0,transitionHeight:void 0,transitionCount:0,isBooted:!1,isReverse:!1}},computed:{isActive(){return this.transitionCount>0},classes(){return{...vr.options.computed.classes.call(this),"v-window--show-arrows-on-hover":this.showArrowsOnHover}},computedTransition(){if(!this.isBooted)return"";const r=this.vertical?"y":"x",t=(this.internalReverse?!this.isReverse:this.isReverse)?"-reverse":"";return`v-window-${r}${t}-transition`},hasActiveItems(){return!!this.items.find(r=>!r.disabled)},hasNext(){return this.continuous||this.internalIndex<this.items.length-1},hasPrev(){return this.continuous||this.internalIndex>0},internalIndex(){return this.items.findIndex((r,e)=>this.internalValue===this.getValue(r,e))},internalReverse(){return this.$vuetify.rtl?!this.reverse:this.reverse}},watch:{internalIndex(r,e){this.isReverse=this.updateReverse(r,e)}},mounted(){window.requestAnimationFrame(()=>this.isBooted=!0)},methods:{genDefaultSlot(){return me(this)},genContainer(){const r=[this.genDefaultSlot()];return this.showArrows&&r.push(this.genControlIcons()),this.$createElement("div",{staticClass:"v-window__container",class:{"v-window__container--is-active":this.isActive},style:{height:this.internalHeight||this.transitionHeight}},r)},genIcon(r,e,t){var s,n,i;const a={click:c=>{c.stopPropagation(),this.changedByDelimiters=!0,t()}},o={"aria-label":this.$vuetify.lang.t(`$vuetify.carousel.${r}`)},l=(i=(n=(s=this.$scopedSlots)[r])===null||n===void 0?void 0:n.call(s,{on:a,attrs:o}))!==null&&i!==void 0?i:[this.$createElement(Fe,{props:{icon:!0},attrs:o,on:a},[this.$createElement(w,{props:{large:!0}},e)])];return this.$createElement("div",{staticClass:`v-window__${r}`},l)},genControlIcons(){const r=[],e=this.$vuetify.rtl?this.nextIcon:this.prevIcon;if(this.hasPrev&&e&&typeof e=="string"){const s=this.genIcon("prev",e,this.prev);s&&r.push(s)}const t=this.$vuetify.rtl?this.prevIcon:this.nextIcon;if(this.hasNext&&t&&typeof t=="string"){const s=this.genIcon("next",t,this.next);s&&r.push(s)}return r},getNextIndex(r){const e=(r+1)%this.items.length;return this.items[e].disabled?this.getNextIndex(e):e},getPrevIndex(r){const e=(r+this.items.length-1)%this.items.length;return this.items[e].disabled?this.getPrevIndex(e):e},next(){if(!this.hasActiveItems||!this.hasNext)return;const r=this.getNextIndex(this.internalIndex),e=this.items[r];this.internalValue=this.getValue(e,r)},prev(){if(!this.hasActiveItems||!this.hasPrev)return;const r=this.getPrevIndex(this.internalIndex),e=this.items[r];this.internalValue=this.getValue(e,r)},updateReverse(r,e){const t=this.items.length,s=t-1;return t<=2?r<e:r===s&&e===0?!0:r===0&&e===s?!1:r<e}},render(r){const e={staticClass:"v-window",class:this.classes,directives:[]};if(!this.touchless){const t=this.touch||{left:()=>{this.$vuetify.rtl?this.prev():this.next()},right:()=>{this.$vuetify.rtl?this.next():this.prev()},end:s=>{s.stopPropagation()},start:s=>{s.stopPropagation()}};e.directives.push({name:"touch",value:t})}return r("div",e,[this.genContainer()])}}),sW=be(Em,Ni("windowGroup","v-window-item","v-window")),ww=sW.extend().extend().extend({name:"v-window-item",directives:{Touch:gd},props:{disabled:Boolean,reverseTransition:{type:[Boolean,String],default:void 0},transition:{type:[Boolean,String],default:void 0},value:{required:!1}},data(){return{isActive:!1,inTransition:!1}},computed:{classes(){return this.groupClasses},computedTransition(){return this.windowGroup.internalReverse?typeof this.reverseTransition<"u"?this.reverseTransition||"":this.windowGroup.computedTransition:typeof this.transition<"u"?this.transition||"":this.windowGroup.computedTransition}},methods:{genDefaultSlot(){return me(this)},genWindowItem(){return this.$createElement("div",{staticClass:"v-window-item",class:this.classes,directives:[{name:"show",value:this.isActive}],on:this.$listeners},this.genDefaultSlot())},onAfterTransition(){this.inTransition&&(this.inTransition=!1,this.windowGroup.transitionCount>0&&(this.windowGroup.transitionCount--,this.windowGroup.transitionCount===0&&(this.windowGroup.transitionHeight=void 0)))},onBeforeTransition(){this.inTransition||(this.inTransition=!0,this.windowGroup.transitionCount===0&&(this.windowGroup.transitionHeight=ge(this.windowGroup.$el.clientHeight)),this.windowGroup.transitionCount++)},onTransitionCancelled(){this.onAfterTransition()},onEnter(r){this.inTransition&&this.$nextTick(()=>{!this.computedTransition||!this.inTransition||(this.windowGroup.transitionHeight=ge(r.clientHeight))})}},render(r){return r("transition",{props:{name:this.computedTransition},on:{beforeEnter:this.onBeforeTransition,afterEnter:this.onAfterTransition,enterCancelled:this.onTransitionCancelled,beforeLeave:this.onBeforeTransition,afterLeave:this.onAfterTransition,leaveCancelled:this.onTransitionCancelled,enter:this.onEnter}},this.showLazyContent(()=>[this.genWindowItem()]))}}),D6=b.extend({name:"rippleable",directives:{ripple:ls},props:{ripple:{type:[Boolean,Object],default:!0}},methods:{genRipple(r={}){return this.ripple?(r.staticClass="v-input--selection-controls__ripple",r.directives=r.directives||[],r.directives.push({name:"ripple",value:{center:!0}}),this.$createElement("div",r)):null}}});function Gv(r){r.preventDefault()}const Yc=be(Pt,D6,ub).extend({name:"selectable",model:{prop:"inputValue",event:"change"},props:{id:String,inputValue:null,falseValue:null,trueValue:null,multiple:{type:Boolean,default:null},label:String},data(){return{hasColor:this.inputValue,lazyValue:this.inputValue}},computed:{computedColor(){if(this.isActive)return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"},isMultiple(){return this.multiple===!0||this.multiple===null&&Array.isArray(this.internalValue)},isActive(){const r=this.value,e=this.internalValue;return this.isMultiple?Array.isArray(e)?e.some(t=>this.valueComparator(t,r)):!1:this.trueValue===void 0||this.falseValue===void 0?r?this.valueComparator(r,e):!!e:this.valueComparator(e,this.trueValue)},isDirty(){return this.isActive},rippleState(){return!this.isDisabled&&!this.validationState?void 0:this.validationState}},watch:{inputValue(r){this.lazyValue=r,this.hasColor=r}},methods:{genLabel(){const r=Pt.options.methods.genLabel.call(this);return r&&(r.data.on={click:Gv},r)},genInput(r,e){return this.$createElement("input",{attrs:Object.assign({"aria-checked":this.isActive.toString(),disabled:this.isDisabled,id:this.computedId,role:r,type:r},e),domProps:{value:this.value,checked:this.isActive},on:{blur:this.onBlur,change:this.onChange,focus:this.onFocus,keydown:this.onKeydown,click:Gv},ref:"input"})},onClick(r){this.onChange(),this.$emit("click",r)},onChange(){if(!this.isInteractive)return;const r=this.value;let e=this.internalValue;if(this.isMultiple){Array.isArray(e)||(e=[]);const t=e.length;e=e.filter(s=>!this.valueComparator(s,r)),e.length===t&&e.push(r)}else this.trueValue!==void 0&&this.falseValue!==void 0?e=this.valueComparator(e,this.trueValue)?this.falseValue:this.trueValue:r?e=this.valueComparator(e,r)?null:r:e=!e;this.validate(!0,e),this.internalValue=e,this.hasColor=e},onFocus(r){this.isFocused=!0,this.$emit("focus",r)},onBlur(r){this.isFocused=!1,this.$emit("blur",r)},onKeydown(r){}}}),ar=Yc.extend({name:"v-checkbox",props:{indeterminate:Boolean,indeterminateIcon:{type:String,default:"$checkboxIndeterminate"},offIcon:{type:String,default:"$checkboxOff"},onIcon:{type:String,default:"$checkboxOn"}},data(){return{inputIndeterminate:this.indeterminate}},computed:{classes(){return{...Pt.options.computed.classes.call(this),"v-input--selection-controls":!0,"v-input--checkbox":!0,"v-input--indeterminate":this.inputIndeterminate}},computedIcon(){return this.inputIndeterminate?this.indeterminateIcon:this.isActive?this.onIcon:this.offIcon},validationState(){if(!(this.isDisabled&&!this.inputIndeterminate)){if(this.hasError&&this.shouldValidate)return"error";if(this.hasSuccess)return"success";if(this.hasColor!==null)return this.computedColor}}},watch:{indeterminate(r){this.$nextTick(()=>this.inputIndeterminate=r)},inputIndeterminate(r){this.$emit("update:indeterminate",r)},isActive(){this.indeterminate&&(this.inputIndeterminate=!1)}},methods:{genCheckbox(){const{title:r,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(w,this.setTextColor(this.validationState,{props:{dense:this.dense,dark:this.dark,light:this.light}}),this.computedIcon),this.genInput("checkbox",{...e,"aria-checked":this.inputIndeterminate?"mixed":this.isActive.toString()}),this.genRipple(this.setTextColor(this.rippleState))])},genDefaultSlot(){return[this.genCheckbox(),this.genLabel()]}}});function xw(r){const t=Math.abs(r);return Math.sign(r)*(t/((1/.501-2)*(1-t)+1))}function Cw(r,e,t,s){const n=r.clientWidth,i=t?e.content-r.offsetLeft-n:r.offsetLeft;t&&(s=-s);const a=e.wrapper+s,o=n+i,l=n*.4;return i<=s?s=Math.max(i-l,0):a<=o&&(s=Math.min(s-(a-o-l),e.content-e.wrapper)),t?-s:s}function nW(r,e,t){const{offsetLeft:s,clientWidth:n}=r;if(t){const i=e.content-s-n/2-e.wrapper/2;return-Math.min(e.content-e.wrapper,Math.max(0,i))}else{const i=s+n/2-e.wrapper/2;return Math.min(e.content-e.wrapper,Math.max(0,i))}}const Tc=be(vr,mu).extend({name:"base-slide-group",directives:{Resize:md,Touch:gd},props:{activeClass:{type:String,default:"v-slide-item--active"},centerActive:Boolean,nextIcon:{type:String,default:"$next"},prevIcon:{type:String,default:"$prev"},showArrows:{type:[Boolean,String],validator:r=>typeof r=="boolean"||["always","never","desktop","mobile"].includes(r)}},data:()=>({isOverflowing:!1,resizeTimeout:0,startX:0,isSwipingHorizontal:!1,isSwiping:!1,scrollOffset:0,widths:{content:0,wrapper:0}}),computed:{canTouch(){return typeof window<"u"},__cachedNext(){return this.genTransition("next")},__cachedPrev(){return this.genTransition("prev")},classes(){return{...vr.options.computed.classes.call(this),"v-slide-group":!0,"v-slide-group--has-affixes":this.hasAffixes,"v-slide-group--is-overflowing":this.isOverflowing}},hasAffixes(){switch(this.showArrows){case"always":return!0;case"desktop":return!this.isMobile;case!0:return this.isOverflowing||Math.abs(this.scrollOffset)>0;case"mobile":return this.isMobile||this.isOverflowing||Math.abs(this.scrollOffset)>0;case"never":return!1;default:return!this.isMobile&&(this.isOverflowing||Math.abs(this.scrollOffset)>0)}},hasNext(){if(!this.hasAffixes)return!1;const{content:r,wrapper:e}=this.widths;return r>Math.abs(this.scrollOffset)+e},hasPrev(){return this.hasAffixes&&this.scrollOffset!==0}},watch:{internalValue:"setWidths",isOverflowing:"setWidths",scrollOffset(r){this.$vuetify.rtl&&(r=-r);let e=r<=0?xw(-r):r>this.widths.content-this.widths.wrapper?-(this.widths.content-this.widths.wrapper)+xw(this.widths.content-this.widths.wrapper-r):-r;this.$vuetify.rtl&&(e=-e),this.$refs.content.style.transform=`translateX(${e}px)`}},mounted(){if(typeof ResizeObserver<"u"){const r=new ResizeObserver(()=>{this.onResize()});r.observe(this.$el),r.observe(this.$refs.content),this.$on("hook:destroyed",()=>{r.disconnect()})}else{let r=0;this.$on("hook:beforeUpdate",()=>{var e;r=(((e=this.$refs.content)===null||e===void 0?void 0:e.children)||[]).length}),this.$on("hook:updated",()=>{var e;r!==(((e=this.$refs.content)===null||e===void 0?void 0:e.children)||[]).length&&this.setWidths()})}},methods:{onScroll(){this.$refs.wrapper.scrollLeft=0},onFocusin(r){if(this.isOverflowing){for(const e of V4(r))for(const t of this.items)if(t.$el===e){this.scrollOffset=Cw(t.$el,this.widths,this.$vuetify.rtl,this.scrollOffset);return}}},genNext(){const r=this.$scopedSlots.next?this.$scopedSlots.next({}):me(this,"next")||this.__cachedNext;return this.$createElement("div",{staticClass:"v-slide-group__next",class:{"v-slide-group__next--disabled":!this.hasNext},on:{click:()=>this.onAffixClick("next")},key:"next"},[r])},genContent(){return this.$createElement("div",{staticClass:"v-slide-group__content",ref:"content",on:{focusin:this.onFocusin}},me(this))},genData(){return{class:this.classes,directives:[{name:"resize",value:this.onResize}]}},genIcon(r){let e=r;this.$vuetify.rtl&&r==="prev"?e="next":this.$vuetify.rtl&&r==="next"&&(e="prev");const t=`${r[0].toUpperCase()}${r.slice(1)}`,s=this[`has${t}`];return!this.showArrows&&!s?null:this.$createElement(w,{props:{disabled:!s}},this[`${e}Icon`])},genPrev(){const r=this.$scopedSlots.prev?this.$scopedSlots.prev({}):me(this,"prev")||this.__cachedPrev;return this.$createElement("div",{staticClass:"v-slide-group__prev",class:{"v-slide-group__prev--disabled":!this.hasPrev},on:{click:()=>this.onAffixClick("prev")},key:"prev"},[r])},genTransition(r){return this.$createElement(Ol,[this.genIcon(r)])},genWrapper(){return this.$createElement("div",{staticClass:"v-slide-group__wrapper",directives:[{name:"touch",value:{start:r=>this.overflowCheck(r,this.onTouchStart),move:r=>this.overflowCheck(r,this.onTouchMove),end:r=>this.overflowCheck(r,this.onTouchEnd)}}],ref:"wrapper",on:{scroll:this.onScroll}},[this.genContent()])},calculateNewOffset(r,e,t,s){const n=t?-1:1,i=n*s+(r==="prev"?-1:1)*e.wrapper;return n*Math.max(Math.min(i,e.content-e.wrapper),0)},onAffixClick(r){this.$emit(`click:${r}`),this.scrollTo(r)},onResize(){this._isDestroyed||this.setWidths()},onTouchStart(r){const{content:e}=this.$refs;this.startX=this.scrollOffset+r.touchstartX,e.style.setProperty("transition","none"),e.style.setProperty("willChange","transform")},onTouchMove(r){if(this.canTouch){if(!this.isSwiping){const e=r.touchmoveX-r.touchstartX,t=r.touchmoveY-r.touchstartY;this.isSwipingHorizontal=Math.abs(e)>Math.abs(t),this.isSwiping=!0}this.isSwipingHorizontal&&(this.scrollOffset=this.startX-r.touchmoveX,document.documentElement.style.overflowY="hidden")}},onTouchEnd(){if(!this.canTouch)return;const{content:r,wrapper:e}=this.$refs,t=r.clientWidth-e.clientWidth;r.style.setProperty("transition",null),r.style.setProperty("willChange",null),this.$vuetify.rtl?this.scrollOffset>0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset<=-t&&(this.scrollOffset=-t):this.scrollOffset<0||!this.isOverflowing?this.scrollOffset=0:this.scrollOffset>=t&&(this.scrollOffset=t),this.isSwiping=!1,document.documentElement.style.removeProperty("overflow-y")},overflowCheck(r,e){r.stopPropagation(),this.isOverflowing&&e(r)},scrollIntoView(){if(!this.selectedItem&&this.items.length){const r=this.items[this.items.length-1].$el.getBoundingClientRect(),e=this.$refs.wrapper.getBoundingClientRect();(this.$vuetify.rtl&&e.right<r.right||!this.$vuetify.rtl&&e.left>r.left)&&this.scrollTo("prev")}this.selectedItem&&(this.selectedIndex===0||!this.centerActive&&!this.isOverflowing?this.scrollOffset=0:this.centerActive?this.scrollOffset=nW(this.selectedItem.$el,this.widths,this.$vuetify.rtl):this.isOverflowing&&(this.scrollOffset=Cw(this.selectedItem.$el,this.widths,this.$vuetify.rtl,this.scrollOffset)))},scrollTo(r){this.scrollOffset=this.calculateNewOffset(r,{content:this.$refs.content?this.$refs.content.clientWidth:0,wrapper:this.$refs.wrapper?this.$refs.wrapper.clientWidth:0},this.$vuetify.rtl,this.scrollOffset)},setWidths(){window.requestAnimationFrame(()=>{if(this._isDestroyed)return;const{content:r,wrapper:e}=this.$refs;this.widths={content:r?r.clientWidth:0,wrapper:e?e.clientWidth:0},this.isOverflowing=this.widths.wrapper+1<this.widths.content,this.scrollIntoView()})}},render(r){return r("div",this.genData(),[this.genPrev(),this.genWrapper(),this.genNext()])}});Tc.extend({name:"v-slide-group",provide(){return{slideGroup:this}}});const qv=be(Pt,Yo).extend({name:"v-slider",directives:{ClickOutside:fd},mixins:[Yo],props:{disabled:Boolean,inverseLabel:Boolean,max:{type:[Number,String],default:100},min:{type:[Number,String],default:0},step:{type:[Number,String],default:1},thumbColor:String,thumbLabel:{type:[Boolean,String],default:void 0,validator:r=>typeof r=="boolean"||r==="always"},thumbSize:{type:[Number,String],default:32},tickLabels:{type:Array,default:()=>[]},ticks:{type:[Boolean,String],default:!1,validator:r=>typeof r=="boolean"||r==="always"},tickSize:{type:[Number,String],default:2},trackColor:String,trackFillColor:String,value:[Number,String],vertical:Boolean},data:()=>({app:null,oldValue:null,thumbPressed:!1,mouseTimeout:-1,isFocused:!1,isActive:!1,noClick:!1,startOffset:0}),computed:{classes(){return{...Pt.options.computed.classes.call(this),"v-input__slider":!0,"v-input__slider--vertical":this.vertical,"v-input__slider--inverse-label":this.inverseLabel}},internalValue:{get(){return this.lazyValue},set(r){r=isNaN(r)?this.minValue:r;const e=this.roundValue(Math.min(Math.max(r,this.minValue),this.maxValue));e!==this.lazyValue&&(this.lazyValue=e,this.$emit("input",e))}},trackTransition(){return this.thumbPressed?this.showTicks||this.stepNumeric?"0.1s cubic-bezier(0.25, 0.8, 0.5, 1)":"none":""},minValue(){return parseFloat(this.min)},maxValue(){return parseFloat(this.max)},stepNumeric(){return this.step>0?parseFloat(this.step):0},inputWidth(){const r=(this.roundValue(this.internalValue)-this.minValue)/(this.maxValue-this.minValue)*100;return isNaN(r)?0:r},trackFillStyles(){const r=this.vertical?"bottom":"left",e=this.vertical?"top":"right",t=this.vertical?"height":"width",s=this.$vuetify.rtl?"auto":"0",n=this.$vuetify.rtl?"0":"auto",i=this.isDisabled?`calc(${this.inputWidth}% - 10px)`:`${this.inputWidth}%`;return{transition:this.trackTransition,[r]:s,[e]:n,[t]:i}},trackStyles(){const r=this.vertical?this.$vuetify.rtl?"bottom":"top":this.$vuetify.rtl?"left":"right",e=this.vertical?"height":"width",t="0px",s=this.isDisabled?`calc(${100-this.inputWidth}% - 10px)`:`calc(${100-this.inputWidth}%)`;return{transition:this.trackTransition,[r]:t,[e]:s}},showTicks(){return this.tickLabels.length>0||!!(!this.isDisabled&&this.stepNumeric&&this.ticks)},numTicks(){return Math.ceil((this.maxValue-this.minValue)/this.stepNumeric)},showThumbLabel(){return!this.isDisabled&&!!(this.thumbLabel||this.$scopedSlots["thumb-label"])},computedTrackColor(){if(!this.isDisabled)return this.trackColor?this.trackColor:this.isDark?this.validationState:this.validationState||"primary lighten-3"},computedTrackFillColor(){if(!this.isDisabled)return this.trackFillColor?this.trackFillColor:this.validationState||this.computedColor},computedThumbColor(){return this.thumbColor?this.thumbColor:this.validationState||this.computedColor}},watch:{min(r){const e=parseFloat(r);e>this.internalValue&&this.$emit("input",e)},max(r){const e=parseFloat(r);e<this.internalValue&&this.$emit("input",e)},value:{handler(r){this.internalValue=r},immediate:!0}},mounted(){this.app=document.querySelector("[data-app]")||lr("Missing v-app or a non-body wrapping element with the [data-app] attribute",this)},methods:{genDefaultSlot(){const r=[this.genLabel()],e=this.genSlider();return this.inverseLabel?r.unshift(e):r.push(e),r.push(this.genProgress()),r},genSlider(){return this.$createElement("div",{class:{"v-slider":!0,"v-slider--horizontal":!this.vertical,"v-slider--vertical":this.vertical,"v-slider--focused":this.isFocused,"v-slider--active":this.isActive,"v-slider--disabled":this.isDisabled,"v-slider--readonly":this.isReadonly,...this.themeClasses},directives:[{name:"click-outside",value:this.onBlur}],on:{click:this.onSliderClick,mousedown:this.onSliderMouseDown,touchstart:this.onSliderMouseDown}},this.genChildren())},genChildren(){return[this.genInput(),this.genTrackContainer(),this.genSteps(),this.genThumbContainer(this.internalValue,this.inputWidth,this.isActive,this.isFocused,this.onFocus,this.onBlur)]},genInput(){return this.$createElement("input",{attrs:{value:this.internalValue,id:this.computedId,disabled:!0,readonly:!0,tabindex:-1,...this.$attrs}})},genTrackContainer(){const r=[this.$createElement("div",this.setBackgroundColor(this.computedTrackColor,{staticClass:"v-slider__track-background",style:this.trackStyles})),this.$createElement("div",this.setBackgroundColor(this.computedTrackFillColor,{staticClass:"v-slider__track-fill",style:this.trackFillStyles}))];return this.$createElement("div",{staticClass:"v-slider__track-container",ref:"track"},r)},genSteps(){if(!this.step||!this.showTicks)return null;const r=parseFloat(this.tickSize),e=uz(this.numTicks+1),t=this.vertical?"bottom":this.$vuetify.rtl?"right":"left",s=this.vertical?this.$vuetify.rtl?"left":"right":"top";this.vertical&&e.reverse();const n=e.map(i=>{const a=[];this.tickLabels[i]&&a.push(this.$createElement("div",{staticClass:"v-slider__tick-label"},this.tickLabels[i]));const o=i*(100/this.numTicks),l=this.$vuetify.rtl?100-this.inputWidth<o:o<this.inputWidth;return this.$createElement("span",{key:i,staticClass:"v-slider__tick",class:{"v-slider__tick--filled":l},style:{width:`${r}px`,height:`${r}px`,[t]:`calc(${o}% - ${r/2}px)`,[s]:`calc(50% - ${r/2}px)`}},a)});return this.$createElement("div",{staticClass:"v-slider__ticks-container",class:{"v-slider__ticks-container--always-show":this.ticks==="always"||this.tickLabels.length>0}},n)},genThumbContainer(r,e,t,s,n,i,a="thumb"){const o=[this.genThumb()],l=this.genThumbLabelContent(r);return this.showThumbLabel&&o.push(this.genThumbLabel(l)),this.$createElement("div",this.setTextColor(this.computedThumbColor,{ref:a,key:a,staticClass:"v-slider__thumb-container",class:{"v-slider__thumb-container--active":t,"v-slider__thumb-container--focused":s,"v-slider__thumb-container--show-label":this.showThumbLabel},style:this.getThumbContainerStyles(e),attrs:{role:"slider",tabindex:this.isDisabled?-1:this.$attrs.tabindex?this.$attrs.tabindex:0,"aria-label":this.$attrs["aria-label"]||this.label,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.internalValue,"aria-readonly":String(this.isReadonly),"aria-orientation":this.vertical?"vertical":"horizontal"},on:{focus:n,blur:i,keydown:this.onKeyDown}}),o)},genThumbLabelContent(r){return this.$scopedSlots["thumb-label"]?this.$scopedSlots["thumb-label"]({value:r}):[this.$createElement("span",[String(r)])]},genThumbLabel(r){const e=ge(this.thumbSize),t=this.vertical?`translateY(20%) translateY(${Number(this.thumbSize)/3-1}px) translateX(55%) rotate(135deg)`:"translateY(-20%) translateY(-12px) translateX(-50%) rotate(45deg)";return this.$createElement(DU,{props:{origin:"bottom center"}},[this.$createElement("div",{staticClass:"v-slider__thumb-label-container",directives:[{name:"show",value:this.isFocused||this.isActive||this.thumbLabel==="always"}]},[this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb-label",style:{height:e,width:e,transform:t}}),[this.$createElement("div",r)])])])},genThumb(){return this.$createElement("div",this.setBackgroundColor(this.computedThumbColor,{staticClass:"v-slider__thumb"}))},getThumbContainerStyles(r){const e=this.vertical?"top":"left";let t=this.$vuetify.rtl?100-r:r;return t=this.vertical?100-t:t,{transition:this.trackTransition,[e]:`${t}%`}},onSliderMouseDown(r){var e;if(r.preventDefault(),this.oldValue=this.internalValue,this.isActive=!0,!((e=r.target)===null||e===void 0)&&e.matches(".v-slider__thumb-container, .v-slider__thumb-container *")){this.thumbPressed=!0;const i=r.target.getBoundingClientRect(),a="touches"in r?r.touches[0]:r;this.startOffset=this.vertical?a.clientY-(i.top+i.height/2):a.clientX-(i.left+i.width/2)}else this.startOffset=0,window.clearTimeout(this.mouseTimeout),this.mouseTimeout=window.setTimeout(()=>{this.thumbPressed=!0},300);const t=Uc?{passive:!0,capture:!0}:!0,s=Uc?{passive:!0}:!1,n="touches"in r;this.onMouseMove(r),this.app.addEventListener(n?"touchmove":"mousemove",this.onMouseMove,s),F4(this.app,n?"touchend":"mouseup",this.onSliderMouseUp,t),this.$emit("start",this.internalValue)},onSliderMouseUp(r){r.stopPropagation(),window.clearTimeout(this.mouseTimeout),this.thumbPressed=!1;const e=Uc?{passive:!0}:!1;this.app.removeEventListener("touchmove",this.onMouseMove,e),this.app.removeEventListener("mousemove",this.onMouseMove,e),this.$emit("mouseup",r),this.$emit("end",this.internalValue),Gt(this.oldValue,this.internalValue)||(this.$emit("change",this.internalValue),this.noClick=!0),this.isActive=!1},onMouseMove(r){r.type==="mousemove"&&(this.thumbPressed=!0),this.internalValue=this.parseMouseMove(r)},onKeyDown(r){if(!this.isInteractive)return;const e=this.parseKeyDown(r,this.internalValue);e==null||e<this.minValue||e>this.maxValue||(this.internalValue=e,this.$emit("change",e))},onSliderClick(r){if(this.noClick){this.noClick=!1;return}this.$refs.thumb.focus(),this.onMouseMove(r),this.$emit("change",this.internalValue)},onBlur(r){this.isFocused=!1,this.$emit("blur",r)},onFocus(r){this.isFocused=!0,this.$emit("focus",r)},parseMouseMove(r){const e=this.vertical?"top":"left",t=this.vertical?"height":"width",s=this.vertical?"clientY":"clientX",{[e]:n,[t]:i}=this.$refs.track.getBoundingClientRect(),a="touches"in r?r.touches[0][s]:r[s];let o=Math.min(Math.max((a-n-this.startOffset)/i,0),1)||0;return this.vertical&&(o=1-o),this.$vuetify.rtl&&(o=1-o),parseFloat(this.min)+o*(this.maxValue-this.minValue)},parseKeyDown(r,e){if(!this.isInteractive)return;const{pageup:t,pagedown:s,end:n,home:i,left:a,right:o,down:l,up:c}=Le;if(![t,s,n,i,a,o,l,c].includes(r.keyCode))return;r.preventDefault();const u=this.stepNumeric||1,d=(this.maxValue-this.minValue)/u;if([a,o,l,c].includes(r.keyCode)){const h=(this.$vuetify.rtl?[a,c]:[o,c]).includes(r.keyCode)?1:-1,m=r.shiftKey?3:r.ctrlKey?2:1;e=e+h*u*m}else if(r.keyCode===i)e=this.minValue;else if(r.keyCode===n)e=this.maxValue;else{const p=r.keyCode===s?1:-1;e=e-p*u*(d>100?d/10:10)}return e},roundValue(r){if(!this.stepNumeric)return r;const e=this.step.toString().trim(),t=e.indexOf(".")>-1?e.length-e.indexOf(".")-1:0,s=this.minValue%this.stepNumeric,n=Math.round((r-s)/this.stepNumeric)*this.stepNumeric+s;return parseFloat(Math.min(n,this.maxValue).toFixed(t))}}}),iW=Object.freeze({base:"#f44336",lighten5:"#ffebee",lighten4:"#ffcdd2",lighten3:"#ef9a9a",lighten2:"#e57373",lighten1:"#ef5350",darken1:"#e53935",darken2:"#d32f2f",darken3:"#c62828",darken4:"#b71c1c",accent1:"#ff8a80",accent2:"#ff5252",accent3:"#ff1744",accent4:"#d50000"}),aW=Object.freeze({base:"#e91e63",lighten5:"#fce4ec",lighten4:"#f8bbd0",lighten3:"#f48fb1",lighten2:"#f06292",lighten1:"#ec407a",darken1:"#d81b60",darken2:"#c2185b",darken3:"#ad1457",darken4:"#880e4f",accent1:"#ff80ab",accent2:"#ff4081",accent3:"#f50057",accent4:"#c51162"}),oW=Object.freeze({base:"#9c27b0",lighten5:"#f3e5f5",lighten4:"#e1bee7",lighten3:"#ce93d8",lighten2:"#ba68c8",lighten1:"#ab47bc",darken1:"#8e24aa",darken2:"#7b1fa2",darken3:"#6a1b9a",darken4:"#4a148c",accent1:"#ea80fc",accent2:"#e040fb",accent3:"#d500f9",accent4:"#aa00ff"}),lW=Object.freeze({base:"#673ab7",lighten5:"#ede7f6",lighten4:"#d1c4e9",lighten3:"#b39ddb",lighten2:"#9575cd",lighten1:"#7e57c2",darken1:"#5e35b1",darken2:"#512da8",darken3:"#4527a0",darken4:"#311b92",accent1:"#b388ff",accent2:"#7c4dff",accent3:"#651fff",accent4:"#6200ea"}),cW=Object.freeze({base:"#3f51b5",lighten5:"#e8eaf6",lighten4:"#c5cae9",lighten3:"#9fa8da",lighten2:"#7986cb",lighten1:"#5c6bc0",darken1:"#3949ab",darken2:"#303f9f",darken3:"#283593",darken4:"#1a237e",accent1:"#8c9eff",accent2:"#536dfe",accent3:"#3d5afe",accent4:"#304ffe"}),uW=Object.freeze({base:"#2196f3",lighten5:"#e3f2fd",lighten4:"#bbdefb",lighten3:"#90caf9",lighten2:"#64b5f6",lighten1:"#42a5f5",darken1:"#1e88e5",darken2:"#1976d2",darken3:"#1565c0",darken4:"#0d47a1",accent1:"#82b1ff",accent2:"#448aff",accent3:"#2979ff",accent4:"#2962ff"}),dW=Object.freeze({base:"#03a9f4",lighten5:"#e1f5fe",lighten4:"#b3e5fc",lighten3:"#81d4fa",lighten2:"#4fc3f7",lighten1:"#29b6f6",darken1:"#039be5",darken2:"#0288d1",darken3:"#0277bd",darken4:"#01579b",accent1:"#80d8ff",accent2:"#40c4ff",accent3:"#00b0ff",accent4:"#0091ea"}),pW=Object.freeze({base:"#00bcd4",lighten5:"#e0f7fa",lighten4:"#b2ebf2",lighten3:"#80deea",lighten2:"#4dd0e1",lighten1:"#26c6da",darken1:"#00acc1",darken2:"#0097a7",darken3:"#00838f",darken4:"#006064",accent1:"#84ffff",accent2:"#18ffff",accent3:"#00e5ff",accent4:"#00b8d4"}),hW=Object.freeze({base:"#009688",lighten5:"#e0f2f1",lighten4:"#b2dfdb",lighten3:"#80cbc4",lighten2:"#4db6ac",lighten1:"#26a69a",darken1:"#00897b",darken2:"#00796b",darken3:"#00695c",darken4:"#004d40",accent1:"#a7ffeb",accent2:"#64ffda",accent3:"#1de9b6",accent4:"#00bfa5"}),fW=Object.freeze({base:"#4caf50",lighten5:"#e8f5e9",lighten4:"#c8e6c9",lighten3:"#a5d6a7",lighten2:"#81c784",lighten1:"#66bb6a",darken1:"#43a047",darken2:"#388e3c",darken3:"#2e7d32",darken4:"#1b5e20",accent1:"#b9f6ca",accent2:"#69f0ae",accent3:"#00e676",accent4:"#00c853"}),mW=Object.freeze({base:"#8bc34a",lighten5:"#f1f8e9",lighten4:"#dcedc8",lighten3:"#c5e1a5",lighten2:"#aed581",lighten1:"#9ccc65",darken1:"#7cb342",darken2:"#689f38",darken3:"#558b2f",darken4:"#33691e",accent1:"#ccff90",accent2:"#b2ff59",accent3:"#76ff03",accent4:"#64dd17"}),gW=Object.freeze({base:"#cddc39",lighten5:"#f9fbe7",lighten4:"#f0f4c3",lighten3:"#e6ee9c",lighten2:"#dce775",lighten1:"#d4e157",darken1:"#c0ca33",darken2:"#afb42b",darken3:"#9e9d24",darken4:"#827717",accent1:"#f4ff81",accent2:"#eeff41",accent3:"#c6ff00",accent4:"#aeea00"}),vW=Object.freeze({base:"#ffeb3b",lighten5:"#fffde7",lighten4:"#fff9c4",lighten3:"#fff59d",lighten2:"#fff176",lighten1:"#ffee58",darken1:"#fdd835",darken2:"#fbc02d",darken3:"#f9a825",darken4:"#f57f17",accent1:"#ffff8d",accent2:"#ffff00",accent3:"#ffea00",accent4:"#ffd600"}),_W=Object.freeze({base:"#ffc107",lighten5:"#fff8e1",lighten4:"#ffecb3",lighten3:"#ffe082",lighten2:"#ffd54f",lighten1:"#ffca28",darken1:"#ffb300",darken2:"#ffa000",darken3:"#ff8f00",darken4:"#ff6f00",accent1:"#ffe57f",accent2:"#ffd740",accent3:"#ffc400",accent4:"#ffab00"}),yW=Object.freeze({base:"#ff9800",lighten5:"#fff3e0",lighten4:"#ffe0b2",lighten3:"#ffcc80",lighten2:"#ffb74d",lighten1:"#ffa726",darken1:"#fb8c00",darken2:"#f57c00",darken3:"#ef6c00",darken4:"#e65100",accent1:"#ffd180",accent2:"#ffab40",accent3:"#ff9100",accent4:"#ff6d00"}),bW=Object.freeze({base:"#ff5722",lighten5:"#fbe9e7",lighten4:"#ffccbc",lighten3:"#ffab91",lighten2:"#ff8a65",lighten1:"#ff7043",darken1:"#f4511e",darken2:"#e64a19",darken3:"#d84315",darken4:"#bf360c",accent1:"#ff9e80",accent2:"#ff6e40",accent3:"#ff3d00",accent4:"#dd2c00"}),$W=Object.freeze({base:"#795548",lighten5:"#efebe9",lighten4:"#d7ccc8",lighten3:"#bcaaa4",lighten2:"#a1887f",lighten1:"#8d6e63",darken1:"#6d4c41",darken2:"#5d4037",darken3:"#4e342e",darken4:"#3e2723"}),SW=Object.freeze({base:"#607d8b",lighten5:"#eceff1",lighten4:"#cfd8dc",lighten3:"#b0bec5",lighten2:"#90a4ae",lighten1:"#78909c",darken1:"#546e7a",darken2:"#455a64",darken3:"#37474f",darken4:"#263238"}),wW=Object.freeze({base:"#9e9e9e",lighten5:"#fafafa",lighten4:"#f5f5f5",lighten3:"#eeeeee",lighten2:"#e0e0e0",lighten1:"#bdbdbd",darken1:"#757575",darken2:"#616161",darken3:"#424242",darken4:"#212121"}),xW=Object.freeze({black:"#000000",white:"#ffffff",transparent:"transparent"}),CW=Object.freeze({red:iW,pink:aW,purple:oW,deepPurple:lW,indigo:cW,blue:uW,lightBlue:dW,cyan:pW,teal:hW,green:fW,lightGreen:mW,lime:gW,yellow:vW,amber:_W,orange:yW,deepOrange:bW,brown:$W,blueGrey:SW,grey:wW,shades:xW}),PW=vd.extend({name:"v-main",props:{tag:{type:String,default:"main"}},computed:{styles(){const{bar:r,top:e,right:t,footer:s,insetFooter:n,bottom:i,left:a}=this.$vuetify.application;return{paddingTop:`${e+r}px`,paddingRight:`${t}px`,paddingBottom:`${s+n+i}px`,paddingLeft:`${a}px`}}},render(r){const e={staticClass:"v-main",style:this.styles,ref:"main"};return r(this.tag,e,[r("div",{staticClass:"v-main__wrap"},me(this))])}}),cn=uc.extend({name:"v-combobox",props:{delimiters:{type:Array,default:()=>[]},returnObject:{type:Boolean,default:!0}},data:()=>({editingIndex:-1}),computed:{computedCounterValue(){return this.multiple?this.selectedItems.length:(this.internalSearch||"").toString().length},hasSlot(){return Te.options.computed.hasSlot.call(this)||this.multiple},isAnyValueAllowed(){return!0},menuCanShow(){return this.isFocused?this.hasDisplayedItems||!!this.$slots["no-data"]&&!this.hideNoData:!1},searchIsDirty(){return this.internalSearch!=null}},methods:{onInternalSearchChanged(r){if(r&&this.multiple&&this.delimiters.length){const e=this.delimiters.find(t=>r.endsWith(t));e!=null&&(this.internalSearch=r.slice(0,r.length-e.length),this.updateTags())}this.updateMenuDimensions()},genInput(){const r=uc.options.methods.genInput.call(this);return delete r.data.attrs.name,r.data.on.paste=this.onPaste,r},genChipSelection(r,e){const t=Te.options.methods.genChipSelection.call(this,r,e);return this.multiple&&(t.componentOptions.listeners={...t.componentOptions.listeners,dblclick:()=>{this.editingIndex=e,this.internalSearch=this.getText(r),this.selectedIndex=-1}}),t},onChipInput(r){Te.options.methods.onChipInput.call(this,r),this.editingIndex=-1},onEnterDown(r){r.preventDefault(),!(this.getMenuIndex()>-1)&&this.$nextTick(this.updateSelf)},onKeyDown(r){const e=r.keyCode;(r.ctrlKey||![Le.home,Le.end].includes(e))&&Te.options.methods.onKeyDown.call(this,r),this.multiple&&e===Le.left&&this.$refs.input.selectionStart===0?this.updateSelf():e===Le.enter&&this.onEnterDown(r),this.changeSelectedIndex(e)},onTabDown(r){if(this.multiple&&this.internalSearch&&this.getMenuIndex()===-1)return r.preventDefault(),r.stopPropagation(),this.updateTags();uc.options.methods.onTabDown.call(this,r)},selectItem(r){this.editingIndex>-1?this.updateEditing():(uc.options.methods.selectItem.call(this,r),this.internalSearch&&this.multiple&&this.getText(r).toLocaleLowerCase().includes(this.internalSearch.toLocaleLowerCase())&&(this.internalSearch=null))},setSelectedItems(){this.internalValue==null||this.internalValue===""?this.selectedItems=[]:this.selectedItems=this.multiple?this.internalValue:[this.internalValue]},setValue(r){Te.options.methods.setValue.call(this,r===void 0?this.internalSearch:r)},updateEditing(){const r=this.internalValue.slice(),e=this.selectedItems.findIndex(t=>this.getText(t)===this.internalSearch);if(e>-1){const t=typeof r[e]=="object"?Object.assign({},r[e]):r[e];r.splice(e,1),r.push(t)}else r[this.editingIndex]=this.internalSearch;this.setValue(r),this.editingIndex=-1,this.internalSearch=null},updateCombobox(){if(!this.searchIsDirty)return;this.internalSearch!==this.getText(this.internalValue)&&this.setValue(),(!!this.$scopedSlots.selection||this.hasChips)&&(this.internalSearch=null)},updateSelf(){this.multiple?this.updateTags():this.updateCombobox()},updateTags(){const r=this.getMenuIndex();if(r<0&&!this.searchIsDirty||!this.internalSearch)return;if(this.editingIndex>-1)return this.updateEditing();const e=this.selectedItems.findIndex(s=>this.internalSearch===this.getText(s)),t=e>-1&&typeof this.selectedItems[e]=="object"?Object.assign({},this.selectedItems[e]):this.internalSearch;if(e>-1){const s=this.internalValue.slice();s.splice(e,1),this.setValue(s)}if(r>-1)return this.internalSearch=null;this.selectItem(t),this.internalSearch=null},onPaste(r){var e;if(this.$emit("paste",r),!this.multiple||this.searchIsDirty)return;const t=(e=r.clipboardData)===null||e===void 0?void 0:e.getData("text/vnd.vuetify.autocomplete.item+plain");t&&this.findExistingIndex(t)===-1&&(r.preventDefault(),Te.options.methods.selectItem.call(this,t))},clearableCallback(){this.editingIndex=-1,uc.options.methods.clearableCallback.call(this)}}}),Zv=b.extend({name:"v-data",inheritAttrs:!1,props:{items:{type:Array,default:()=>[]},options:{type:Object,default:()=>({})},sortBy:{type:[String,Array]},sortDesc:{type:[Boolean,Array]},customSort:{type:Function,default:mz},mustSort:Boolean,multiSort:Boolean,page:{type:Number,default:1},itemsPerPage:{type:Number,default:10},groupBy:{type:[String,Array],default:()=>[]},groupDesc:{type:[Boolean,Array],default:()=>[]},customGroup:{type:Function,default:fz},locale:{type:String,default:"en-US"},disableSort:Boolean,disablePagination:Boolean,disableFiltering:Boolean,search:String,customFilter:{type:Function,default:gz},serverItemsLength:{type:Number,default:-1}},data(){let r={page:this.page,itemsPerPage:this.itemsPerPage,sortBy:xr(this.sortBy),sortDesc:xr(this.sortDesc),groupBy:xr(this.groupBy),groupDesc:xr(this.groupDesc),mustSort:this.mustSort,multiSort:this.multiSort};this.options&&(r=Object.assign(r,this.options));const{sortBy:e,sortDesc:t,groupBy:s,groupDesc:n}=r,i=e.length-t.length,a=s.length-n.length;return i>0&&r.sortDesc.push(...aw(i,!1)),a>0&&r.groupDesc.push(...aw(a,!1)),{internalOptions:r}},computed:{itemsLength(){return this.serverItemsLength>=0?this.serverItemsLength:this.filteredItems.length},pageCount(){return this.internalOptions.itemsPerPage<=0?1:Math.ceil(this.itemsLength/this.internalOptions.itemsPerPage)},pageStart(){return this.internalOptions.itemsPerPage===-1||!this.items.length?0:(this.internalOptions.page-1)*this.internalOptions.itemsPerPage},pageStop(){return this.internalOptions.itemsPerPage===-1?this.itemsLength:this.items.length?Math.min(this.itemsLength,this.internalOptions.page*this.internalOptions.itemsPerPage):0},isGrouped(){return!!this.internalOptions.groupBy.length},pagination(){return{page:this.internalOptions.page,itemsPerPage:this.internalOptions.itemsPerPage,pageStart:this.pageStart,pageStop:this.pageStop,pageCount:this.pageCount,itemsLength:this.itemsLength}},filteredItems(){let r=this.items.slice();return!this.disableFiltering&&this.serverItemsLength<=0&&(r=this.customFilter(r,this.search)),r},computedItems(){let r=this.filteredItems.slice();return(!this.disableSort||this.internalOptions.groupBy.length)&&this.serverItemsLength<=0&&(r=this.sortItems(r)),!this.disablePagination&&this.serverItemsLength<=0&&(r=this.paginateItems(r)),r},groupedItems(){return this.isGrouped?this.groupItems(this.computedItems):null},scopedProps(){return{sort:this.sort,sortArray:this.sortArray,group:this.group,items:this.computedItems,options:this.internalOptions,updateOptions:this.updateOptions,pagination:this.pagination,groupedItems:this.groupedItems,originalItemsLength:this.items.length}},computedOptions(){return{...this.options}}},watch:{computedOptions:{handler(r,e){Gt(r,e)||this.updateOptions(r)},deep:!0,immediate:!0},internalOptions:{handler(r,e){Gt(r,e)||this.$emit("update:options",r)},deep:!0,immediate:!0},page(r){this.updateOptions({page:r})},"internalOptions.page"(r){this.$emit("update:page",r)},itemsPerPage(r){this.updateOptions({itemsPerPage:r})},"internalOptions.itemsPerPage"(r){this.$emit("update:items-per-page",r)},sortBy(r){this.updateOptions({sortBy:xr(r)})},"internalOptions.sortBy"(r,e){!Gt(r,e)&&this.$emit("update:sort-by",Array.isArray(this.sortBy)?r:r[0])},sortDesc(r){this.updateOptions({sortDesc:xr(r)})},"internalOptions.sortDesc"(r,e){!Gt(r,e)&&this.$emit("update:sort-desc",Array.isArray(this.sortDesc)?r:r[0])},groupBy(r){this.updateOptions({groupBy:xr(r)})},"internalOptions.groupBy"(r,e){!Gt(r,e)&&this.$emit("update:group-by",Array.isArray(this.groupBy)?r:r[0])},groupDesc(r){this.updateOptions({groupDesc:xr(r)})},"internalOptions.groupDesc"(r,e){!Gt(r,e)&&this.$emit("update:group-desc",Array.isArray(this.groupDesc)?r:r[0])},multiSort(r){this.updateOptions({multiSort:r})},"internalOptions.multiSort"(r){this.$emit("update:multi-sort",r)},mustSort(r){this.updateOptions({mustSort:r})},"internalOptions.mustSort"(r){this.$emit("update:must-sort",r)},pageCount:{handler(r){this.$emit("page-count",r)},immediate:!0},computedItems:{handler(r){this.$emit("current-items",r)},immediate:!0},pagination:{handler(r,e){Gt(r,e)||this.$emit("pagination",this.pagination)},immediate:!0}},methods:{toggle(r,e,t,s,n,i){let a=e.slice(),o=t.slice();const l=a.findIndex(c=>c===r);return l<0?(i||(a=[],o=[]),a.push(r),o.push(!1)):l>=0&&!o[l]?o[l]=!0:n?o[l]=!1:(a.splice(l,1),o.splice(l,1)),(!Gt(a,e)||!Gt(o,t))&&(s=1),{by:a,desc:o,page:s}},group(r){const{by:e,desc:t,page:s}=this.toggle(r,this.internalOptions.groupBy,this.internalOptions.groupDesc,this.internalOptions.page,!0,!1);this.updateOptions({groupBy:e,groupDesc:t,page:s})},sort(r){if(Array.isArray(r))return this.sortArray(r);const{by:e,desc:t,page:s}=this.toggle(r,this.internalOptions.sortBy,this.internalOptions.sortDesc,this.internalOptions.page,this.internalOptions.mustSort,this.internalOptions.multiSort);this.updateOptions({sortBy:e,sortDesc:t,page:s})},sortArray(r){const e=r.map(t=>{const s=this.internalOptions.sortBy.findIndex(n=>n===t);return s>-1?this.internalOptions.sortDesc[s]:!1});this.updateOptions({sortBy:r,sortDesc:e})},updateOptions(r){this.internalOptions={...this.internalOptions,...r,page:this.serverItemsLength<0?Math.max(1,Math.min(r.page||this.internalOptions.page,this.pageCount)):r.page||this.internalOptions.page}},sortItems(r){let e=[],t=[];return this.disableSort||(e=this.internalOptions.sortBy,t=this.internalOptions.sortDesc),this.internalOptions.groupBy.length&&(e=[...this.internalOptions.groupBy,...e],t=[...this.internalOptions.groupDesc,...t]),this.customSort(r,e,t,this.locale)},groupItems(r){return this.customGroup(r,this.internalOptions.groupBy,this.internalOptions.groupDesc)},paginateItems(r){return this.serverItemsLength===-1&&r.length<=this.pageStart&&(this.internalOptions.page=Math.max(1,Math.ceil(r.length/this.internalOptions.itemsPerPage))||1),r.slice(this.pageStart,this.pageStop)}},render(){return this.$scopedSlots.default&&this.$scopedSlots.default(this.scopedProps)}}),M6=b.extend({name:"v-data-footer",props:{options:{type:Object,required:!0},pagination:{type:Object,required:!0},itemsPerPageOptions:{type:Array,default:()=>[5,10,15,-1]},prevIcon:{type:String,default:"$prev"},nextIcon:{type:String,default:"$next"},firstIcon:{type:String,default:"$first"},lastIcon:{type:String,default:"$last"},itemsPerPageText:{type:String,default:"$vuetify.dataFooter.itemsPerPageText"},itemsPerPageAllText:{type:String,default:"$vuetify.dataFooter.itemsPerPageAll"},showFirstLastPage:Boolean,showCurrentPage:Boolean,disablePagination:Boolean,disableItemsPerPage:Boolean,pageText:{type:String,default:"$vuetify.dataFooter.pageText"}},computed:{disableNextPageIcon(){return this.options.itemsPerPage<=0||this.options.page*this.options.itemsPerPage>=this.pagination.itemsLength||this.pagination.pageStop<0},computedDataItemsPerPageOptions(){return this.itemsPerPageOptions.map(r=>typeof r=="object"?r:this.genDataItemsPerPageOption(r))}},methods:{updateOptions(r){this.$emit("update:options",Object.assign({},this.options,r))},onFirstPage(){this.updateOptions({page:1})},onPreviousPage(){this.updateOptions({page:this.options.page-1})},onNextPage(){this.updateOptions({page:this.options.page+1})},onLastPage(){this.updateOptions({page:this.pagination.pageCount})},onChangeItemsPerPage(r){this.updateOptions({itemsPerPage:r,page:1})},genDataItemsPerPageOption(r){return{text:r===-1?this.$vuetify.lang.t(this.itemsPerPageAllText):String(r),value:r}},genItemsPerPageSelect(){let r=this.options.itemsPerPage;const e=this.computedDataItemsPerPageOptions;return e.length<=1?null:(e.find(t=>t.value===r)||(r=e[0]),this.$createElement("div",{staticClass:"v-data-footer__select"},[this.$vuetify.lang.t(this.itemsPerPageText),this.$createElement(Te,{attrs:{"aria-label":this.$vuetify.lang.t(this.itemsPerPageText)},props:{disabled:this.disableItemsPerPage,items:e,value:r,hideDetails:!0,auto:!0,minWidth:"75px"},on:{input:this.onChangeItemsPerPage}})]))},genPaginationInfo(){let r=[""];const e=this.pagination.itemsLength;let t=this.pagination.pageStart,s=this.pagination.pageStop;return this.pagination.itemsLength&&this.pagination.itemsPerPage?(t=this.pagination.pageStart+1,s=e<this.pagination.pageStop||this.pagination.pageStop<0?e:this.pagination.pageStop,r=this.$scopedSlots["page-text"]?[this.$scopedSlots["page-text"]({pageStart:t,pageStop:s,itemsLength:e})]:[this.$vuetify.lang.t(this.pageText,t,s,e)]):this.$scopedSlots["page-text"]&&(r=[this.$scopedSlots["page-text"]({pageStart:t,pageStop:s,itemsLength:e})]),this.$createElement("div",{class:"v-data-footer__pagination"},r)},genIcon(r,e,t,s){return this.$createElement(Fe,{props:{disabled:e||this.disablePagination,icon:!0,text:!0},on:{click:r},attrs:{"aria-label":t}},[this.$createElement(w,s)])},genIcons(){const r=[],e=[];return r.push(this.genIcon(this.onPreviousPage,this.options.page===1,this.$vuetify.lang.t("$vuetify.dataFooter.prevPage"),this.$vuetify.rtl?this.nextIcon:this.prevIcon)),e.push(this.genIcon(this.onNextPage,this.disableNextPageIcon,this.$vuetify.lang.t("$vuetify.dataFooter.nextPage"),this.$vuetify.rtl?this.prevIcon:this.nextIcon)),this.showFirstLastPage&&(r.unshift(this.genIcon(this.onFirstPage,this.options.page===1,this.$vuetify.lang.t("$vuetify.dataFooter.firstPage"),this.$vuetify.rtl?this.lastIcon:this.firstIcon)),e.push(this.genIcon(this.onLastPage,this.options.page>=this.pagination.pageCount||this.options.itemsPerPage===-1,this.$vuetify.lang.t("$vuetify.dataFooter.lastPage"),this.$vuetify.rtl?this.firstIcon:this.lastIcon))),[this.$createElement("div",{staticClass:"v-data-footer__icons-before"},r),this.showCurrentPage&&this.$createElement("span",[this.options.page.toString()]),this.$createElement("div",{staticClass:"v-data-footer__icons-after"},e)]}},render(){return this.$createElement("div",{staticClass:"v-data-footer"},[me(this,"prepend"),this.genItemsPerPageSelect(),this.genPaginationInfo(),this.genIcons()])}}),Pw=be(mu,Ke).extend({name:"v-data-iterator",props:{...Zv.options.props,itemKey:{type:String,default:"id"},value:{type:Array,default:()=>[]},singleSelect:Boolean,expanded:{type:Array,default:()=>[]},mobileBreakpoint:{...mu.options.props.mobileBreakpoint,default:600},singleExpand:Boolean,loading:[Boolean,String],noResultsText:{type:String,default:"$vuetify.dataIterator.noResultsText"},noDataText:{type:String,default:"$vuetify.noDataText"},loadingText:{type:String,default:"$vuetify.dataIterator.loadingText"},hideDefaultFooter:Boolean,footerProps:Object,selectableKey:{type:String,default:"isSelectable"}},data:()=>({selection:{},expansion:{},internalCurrentItems:[],shiftKeyDown:!1,lastEntry:-1}),computed:{everyItem(){return!!this.selectableItems.length&&this.selectableItems.every(r=>this.isSelected(r))},someItems(){return this.selectableItems.some(r=>this.isSelected(r))},sanitizedFooterProps(){return j4(this.footerProps)},selectableItems(){return this.internalCurrentItems.filter(r=>this.isSelectable(r))}},watch:{value:{handler(r){this.selection=r.reduce((e,t)=>(e[at(t,this.itemKey)]=t,e),{})},immediate:!0},selection(r,e){Gt(Object.keys(r),Object.keys(e))||this.$emit("input",Object.values(r))},expanded:{handler(r){this.expansion=r.reduce((e,t)=>(e[at(t,this.itemKey)]=!0,e),{})},immediate:!0},expansion(r,e){if(Gt(r,e))return;const t=Object.keys(r).filter(n=>r[n]),s=t.length?this.items.filter(n=>t.includes(String(at(n,this.itemKey)))):[];this.$emit("update:expanded",s)}},created(){[["disable-initial-sort","sort-by"],["filter","custom-filter"],["pagination","options"],["total-items","server-items-length"],["hide-actions","hide-default-footer"],["rows-per-page-items","footer-props.items-per-page-options"],["rows-per-page-text","footer-props.items-per-page-text"],["prev-icon","footer-props.prev-icon"],["next-icon","footer-props.next-icon"]].forEach(([t,s])=>{this.$attrs.hasOwnProperty(t)&&Zs(t,s,this)}),["expand","content-class","content-props","content-tag"].forEach(t=>{this.$attrs.hasOwnProperty(t)&&Ll(t)})},mounted(){window.addEventListener("keydown",this.onKeyDown),window.addEventListener("keyup",this.onKeyUp)},beforeDestroy(){window.removeEventListener("keydown",this.onKeyDown),window.removeEventListener("keyup",this.onKeyUp)},methods:{onKeyDown(r){this.shiftKeyDown=r.keyCode===Le.shift||r.shiftKey},onKeyUp(r){(r.keyCode===Le.shift||!r.shiftKey)&&(this.shiftKeyDown=!1)},toggleSelectAll(r){const e=Object.assign({},this.selection);for(let t=0;t<this.selectableItems.length;t++){const s=this.selectableItems[t];if(!this.isSelectable(s))continue;const n=at(s,this.itemKey);r?e[n]=s:delete e[n]}this.selection=e,this.$emit("toggle-select-all",{items:this.internalCurrentItems,value:r})},isSelectable(r){return at(r,this.selectableKey)!==!1},isSelected(r){return!!this.selection[at(r,this.itemKey)]||!1},select(r,e=!0,t=!0){if(!this.isSelectable(r))return;const s=this.singleSelect?{}:Object.assign({},this.selection),n=at(r,this.itemKey);e?s[n]=r:delete s[n];const i=this.selectableItems.findIndex(a=>at(a,this.itemKey)===n);if(this.lastEntry===-1)this.lastEntry=i;else if(this.shiftKeyDown&&!this.singleSelect&&t){const a=at(this.selectableItems[this.lastEntry],this.itemKey),o=Object.keys(this.selection).includes(String(a));this.multipleSelect(o,t,s,i)}if(this.lastEntry=i,this.singleSelect&&t){const a=Object.keys(this.selection),o=a.length&&at(this.selection[a[0]],this.itemKey);o&&o!==n&&this.$emit("item-selected",{item:this.selection[o],value:!1})}this.selection=s,t&&this.$emit("item-selected",{item:r,value:e})},multipleSelect(r=!0,e=!0,t,s){const n=s<this.lastEntry?s:this.lastEntry,i=s<this.lastEntry?this.lastEntry:s;for(let a=n;a<=i;a++){const o=this.selectableItems[a],l=at(o,this.itemKey);r?t[l]=o:delete t[l],e&&this.$emit("item-selected",{currentItem:o,value:r})}},isExpanded(r){return this.expansion[at(r,this.itemKey)]||!1},expand(r,e=!0){const t=this.singleExpand?{}:Object.assign({},this.expansion),s=at(r,this.itemKey);e?t[s]=!0:delete t[s],this.expansion=t,this.$emit("item-expanded",{item:r,value:e})},createItemProps(r,e){return{item:r,index:e,select:t=>this.select(r,t),isSelected:this.isSelected(r),expand:t=>this.expand(r,t),isExpanded:this.isExpanded(r),isMobile:this.isMobile}},genEmptyWrapper(r){return this.$createElement("div",r)},genEmpty(r,e){if(r===0&&this.loading){const t=me(this,"loading")||this.$vuetify.lang.t(this.loadingText);return this.genEmptyWrapper(t)}else if(r===0){const t=me(this,"noData")||this.$vuetify.lang.t(this.noDataText);return this.genEmptyWrapper(t)}else if(e===0){const t=me(this,"noResults")||this.$vuetify.lang.t(this.noResultsText);return this.genEmptyWrapper(t)}return null},genItems(r){const e=this.genEmpty(r.originalItemsLength,r.pagination.itemsLength);return e?[e]:this.$scopedSlots.default?this.$scopedSlots.default({...r,isSelected:this.isSelected,select:this.select,isExpanded:this.isExpanded,isMobile:this.isMobile,expand:this.expand}):this.$scopedSlots.item?r.items.map((t,s)=>this.$scopedSlots.item(this.createItemProps(t,s))):[]},genFooter(r){if(this.hideDefaultFooter)return null;const e={props:{...this.sanitizedFooterProps,options:r.options,pagination:r.pagination},on:{"update:options":s=>r.updateOptions(s)}},t=Xp("footer.",this.$scopedSlots);return this.$createElement(M6,{scopedSlots:t,...e})},genDefaultScopedSlot(r){const e={...r,someItems:this.someItems,everyItem:this.everyItem,toggleSelectAll:this.toggleSelectAll};return this.$createElement("div",{staticClass:"v-data-iterator"},[me(this,"header",e,!0),this.genItems(r),this.genFooter(r),me(this,"footer",e,!0)])}},render(){return this.$createElement(Zv,{props:this.$props,on:{"update:options":(r,e)=>!Gt(r,e)&&this.$emit("update:options",r),"update:page":r=>this.$emit("update:page",r),"update:items-per-page":r=>this.$emit("update:items-per-page",r),"update:sort-by":r=>this.$emit("update:sort-by",r),"update:sort-desc":r=>this.$emit("update:sort-desc",r),"update:group-by":r=>this.$emit("update:group-by",r),"update:group-desc":r=>this.$emit("update:group-desc",r),pagination:(r,e)=>!Gt(r,e)&&this.$emit("pagination",r),"current-items":r=>{this.internalCurrentItems=r,this.$emit("current-items",r)},"page-count":r=>this.$emit("page-count",r)},scopedSlots:{default:this.genDefaultScopedSlot}})}}),fb=be().extend({directives:{ripple:ls},props:{headers:{type:Array,default:()=>[]},options:{type:Object,default:()=>({page:1,itemsPerPage:10,sortBy:[],sortDesc:[],groupBy:[],groupDesc:[],multiSort:!1,mustSort:!1})},checkboxColor:String,sortIcon:{type:String,default:"$sort"},everyItem:Boolean,someItems:Boolean,showGroupBy:Boolean,singleSelect:Boolean,disableSort:Boolean},methods:{genSelectAll(){var r;const e={props:{value:this.everyItem,indeterminate:!this.everyItem&&this.someItems,color:(r=this.checkboxColor)!==null&&r!==void 0?r:""},on:{input:t=>this.$emit("toggle-select-all",t)}};return this.$scopedSlots["data-table-select"]?this.$scopedSlots["data-table-select"](e):this.$createElement(Om,{staticClass:"v-data-table__checkbox",...e})},genSortIcon(){return this.$createElement(w,{staticClass:"v-data-table-header__icon",props:{size:18}},[this.sortIcon])}}}),LW=be(fb).extend({name:"v-data-table-header-mobile",props:{sortByText:{type:String,default:"$vuetify.dataTable.sortBy"}},methods:{genSortChip(r){const e=[r.item.text],t=this.options.sortBy.findIndex(i=>i===r.item.value),s=t>=0,n=this.options.sortDesc[t];return e.push(this.$createElement("div",{staticClass:"v-chip__close",class:{sortable:!0,active:s,asc:s&&!n,desc:s&&n}},[this.genSortIcon()])),this.$createElement(gr,{staticClass:"sortable",on:{click:i=>{i.stopPropagation(),this.$emit("sort",r.item.value)}}},e)},genSortSelect(r){return this.$createElement(Te,{props:{label:this.$vuetify.lang.t(this.sortByText),items:r,hideDetails:!0,multiple:this.options.multiSort,value:this.options.multiSort?this.options.sortBy:this.options.sortBy[0],menuProps:{closeOnContentClick:!0}},on:{change:e=>this.$emit("sort",e)},scopedSlots:{selection:e=>this.genSortChip(e)}})}},render(r){const e=[],t=this.headers.find(a=>a.value==="data-table-select");t&&!this.singleSelect&&e.push(this.$createElement("div",{class:["v-data-table-header-mobile__select",...xr(t.class)],attrs:{width:t.width}},[this.genSelectAll()]));const s=this.headers.filter(a=>a.sortable!==!1&&a.value!=="data-table-select").map(a=>({text:a.text,value:a.value}));!this.disableSort&&s.length&&e.push(this.genSortSelect(s));const n=e.length?r("th",[r("div",{staticClass:"v-data-table-header-mobile__wrapper"},e)]):void 0,i=r("tr",[n]);return r("thead",{staticClass:"v-data-table-header v-data-table-header-mobile"},[i])}}),AW=be(fb).extend({name:"v-data-table-header-desktop",methods:{genGroupByToggle(r){return this.$createElement("span",{on:{click:e=>{e.stopPropagation(),this.$emit("group",r.value)}}},["group"])},getAria(r,e){const t=i=>this.$vuetify.lang.t(`$vuetify.dataTable.ariaLabel.${i}`);let s="none",n=[t("sortNone"),t("activateAscending")];return r?(e?(s="descending",n=[t("sortDescending"),t(this.options.mustSort?"activateAscending":"activateNone")]):(s="ascending",n=[t("sortAscending"),t("activateDescending")]),{ariaSort:s,ariaLabel:n.join(" ")}):{ariaSort:s,ariaLabel:n.join(" ")}},genHeader(r){const e={attrs:{role:"columnheader",scope:"col","aria-label":r.text||""},style:{width:ge(r.width),minWidth:ge(r.width)},class:[`text-${r.align||"start"}`,...xr(r.class),r.divider&&"v-data-table__divider"],on:{}},t=[];if(r.value==="data-table-select"&&!this.singleSelect)return this.$createElement("th",e,[this.genSelectAll()]);if(t.push(this.$scopedSlots.hasOwnProperty(r.value)?this.$scopedSlots[r.value]({header:r}):this.$createElement("span",[r.text])),!this.disableSort&&(r.sortable||!r.hasOwnProperty("sortable"))){e.on.click=()=>this.$emit("sort",r.value);const s=this.options.sortBy.findIndex(l=>l===r.value),n=s>=0,i=this.options.sortDesc[s];e.class.push("sortable");const{ariaLabel:a,ariaSort:o}=this.getAria(n,i);e.attrs["aria-label"]+=`${r.text?": ":""}${a}`,e.attrs["aria-sort"]=o,n&&(e.class.push("active"),e.class.push(i?"desc":"asc")),r.align==="end"?t.unshift(this.genSortIcon()):t.push(this.genSortIcon()),this.options.multiSort&&n&&t.push(this.$createElement("span",{class:"v-data-table-header__sort-badge"},[String(s+1)]))}return this.showGroupBy&&r.groupable!==!1&&t.push(this.genGroupByToggle(r)),this.$createElement("th",e,t)}},render(){return this.$createElement("thead",{staticClass:"v-data-table-header"},[this.$createElement("tr",this.headers.map(r=>this.genHeader(r)))])}});function EW(r){if(r.model&&r.on&&r.on.input)if(Array.isArray(r.on.input)){const e=r.on.input.indexOf(r.model.callback);e>-1&&r.on.input.splice(e,1)}else delete r.on.input}function OW(r,e){const t=[];for(const s in r)r.hasOwnProperty(s)&&t.push(e("template",{slot:s},r[s]));return t}const TW=b.extend({name:"v-data-table-header",functional:!0,props:{...fb.options.props,mobile:Boolean},render(r,{props:e,data:t,slots:s}){EW(t);const n=OW(s(),r);return t=os(t,{props:e}),e.mobile?r(LW,t,n):r(AW,t,n)}});function kW(r){var e;return r.length!==1||!["td","th"].includes((e=r[0])===null||e===void 0?void 0:e.tag)}const DW=b.extend({name:"row",functional:!0,props:{headers:Array,index:Number,item:Object,rtl:Boolean},render(r,{props:e,slots:t,data:s}){const n=t(),i=e.headers.map(a=>{const o=[],l=at(e.item,a.value),c=a.value,u=s.scopedSlots&&s.scopedSlots.hasOwnProperty(c)&&s.scopedSlots[c],d=n.hasOwnProperty(c)&&n[c];u?o.push(...xr(u({item:e.item,isMobile:!1,header:a,index:e.index,value:l}))):d?o.push(...xr(d)):o.push(l==null?l:String(l));const p=`text-${a.align||"start"}`;return kW(o)?r("td",{class:[p,a.cellClass,{"v-data-table__divider":a.divider}]},o):o});return r("tr",s,i)}}),Lw=b.extend({name:"row-group",functional:!0,props:{value:{type:Boolean,default:!0},headerClass:{type:String,default:"v-row-group__header"},contentClass:String,summaryClass:{type:String,default:"v-row-group__summary"}},render(r,{slots:e,props:t}){const s=e(),n=[];return s["column.header"]?n.push(r("tr",{staticClass:t.headerClass},s["column.header"])):s["row.header"]&&n.push(...s["row.header"]),s["row.content"]&&t.value&&n.push(...s["row.content"]),s["column.summary"]?n.push(r("tr",{staticClass:t.summaryClass},s["column.summary"])):s["row.summary"]&&n.push(...s["row.summary"]),n}}),Zt=be(Ke).extend({name:"v-simple-table",props:{dense:Boolean,fixedHeader:Boolean,height:[Number,String]},computed:{classes(){return{"v-data-table--dense":this.dense,"v-data-table--fixed-height":!!this.height&&!this.fixedHeader,"v-data-table--fixed-header":this.fixedHeader,"v-data-table--has-top":!!this.$slots.top,"v-data-table--has-bottom":!!this.$slots.bottom,...this.themeClasses}}},methods:{genWrapper(){return this.$slots.wrapper||this.$createElement("div",{staticClass:"v-data-table__wrapper",style:{height:ge(this.height)}},[this.$createElement("table",me(this))])}},render(r){return r("div",{staticClass:"v-data-table",class:this.classes},[me(this,"top"),this.genWrapper(),me(this,"bottom")])}}),MW=b.extend({name:"row",functional:!0,props:{headers:Array,hideDefaultHeader:Boolean,index:Number,item:Object,rtl:Boolean},render(r,{props:e,slots:t,data:s}){const n=t(),i=e.headers.map(a=>{const o={"v-data-table__mobile-row":!0},l=[],c=at(e.item,a.value),u=a.value,d=s.scopedSlots&&s.scopedSlots.hasOwnProperty(u)&&s.scopedSlots[u],p=n.hasOwnProperty(u)&&n[u];d?l.push(d({item:e.item,isMobile:!0,header:a,index:e.index,value:c})):p?l.push(p):l.push(c==null?c:String(c));const h=[r("div",{staticClass:"v-data-table__mobile-row__cell"},l)];return a.value!=="dataTableSelect"&&!e.hideDefaultHeader&&h.unshift(r("div",{staticClass:"v-data-table__mobile-row__header"},[a.text])),r("td",{class:o},h)});return r("tr",{...s,staticClass:"v-data-table__mobile-table-row"},i)}});function hp(r,e,t){return s=>{const n=at(r,s.value);return s.filter?s.filter(n,e,r):t(n,e,r)}}function RW(r,e,t,s,n,i){return e=typeof e=="string"?e.trim():null,i==="union"?!(e&&s.length)&&!t.length?r:r.filter(a=>t.length&&t.every(hp(a,e,jh))?!0:e&&s.some(hp(a,e,n))):i==="intersection"?r.filter(a=>{const o=t.every(hp(a,e,jh)),l=!e||s.some(hp(a,e,n));return o&&l}):r}const $d=be(Pw,Yo,rW).extend({name:"v-data-table",directives:{ripple:ls},props:{headers:{type:Array,default:()=>[]},showSelect:Boolean,checkboxColor:String,showExpand:Boolean,showGroupBy:Boolean,height:[Number,String],hideDefaultHeader:Boolean,caption:String,dense:Boolean,headerProps:Object,calculateWidths:Boolean,fixedHeader:Boolean,headersLength:Number,expandIcon:{type:String,default:"$expand"},customFilter:{type:Function,default:jh},filterMode:{type:String,default:"intersection"},itemClass:{type:[String,Function],default:()=>""},itemStyle:{type:[String,Function],default:()=>""},loaderHeight:{type:[Number,String],default:4}},data(){return{internalGroupBy:[],openCache:{},widths:[]}},computed:{computedHeaders(){if(!this.headers)return[];const r=this.headers.filter(t=>t.value===void 0||!this.internalGroupBy.find(s=>s===t.value)),e={text:"",sortable:!1,width:"1px"};if(this.showSelect){const t=r.findIndex(s=>s.value==="data-table-select");t<0?r.unshift({...e,value:"data-table-select"}):r.splice(t,1,{...e,...r[t]})}if(this.showExpand){const t=r.findIndex(s=>s.value==="data-table-expand");t<0?r.unshift({...e,value:"data-table-expand"}):r.splice(t,1,{...e,...r[t]})}return r},colspanAttrs(){return this.isMobile?void 0:{colspan:this.headersLength||this.computedHeaders.length}},columnSorters(){return this.computedHeaders.reduce((r,e)=>(e.sort&&(r[e.value]=e.sort),r),{})},headersWithCustomFilters(){return this.headers.filter(r=>r.filter&&(!r.hasOwnProperty("filterable")||r.filterable===!0))},headersWithoutCustomFilters(){return this.headers.filter(r=>!r.filter&&(!r.hasOwnProperty("filterable")||r.filterable===!0))},sanitizedHeaderProps(){return j4(this.headerProps)},computedItemsPerPage(){const r=this.options&&this.options.itemsPerPage?this.options.itemsPerPage:this.itemsPerPage,e=this.sanitizedFooterProps.itemsPerPageOptions;if(e&&!e.find(t=>typeof t=="number"?t===r:t.value===r)){const t=e[0];return typeof t=="object"?t.value:t}return r},groupByText(){var r,e,t;return(t=(e=(r=this.headers)===null||r===void 0?void 0:r.find(s=>{var n;return s.value===((n=this.internalGroupBy)===null||n===void 0?void 0:n[0])}))===null||e===void 0?void 0:e.text)!==null&&t!==void 0?t:""}},created(){[["sort-icon","header-props.sort-icon"],["hide-headers","hide-default-header"],["select-all","show-select"]].forEach(([e,t])=>{this.$attrs.hasOwnProperty(e)&&Zs(e,t,this)})},mounted(){this.calculateWidths&&(window.addEventListener("resize",this.calcWidths),this.calcWidths())},beforeDestroy(){this.calculateWidths&&window.removeEventListener("resize",this.calcWidths)},methods:{calcWidths(){this.widths=Array.from(this.$el.querySelectorAll("th")).map(r=>r.clientWidth)},customFilterWithColumns(r,e){return RW(r,e,this.headersWithCustomFilters,this.headersWithoutCustomFilters,this.customFilter,this.filterMode)},customSortWithHeaders(r,e,t,s){return this.customSort(r,e,t,s,this.columnSorters)},createItemProps(r,e){const t={...Pw.options.methods.createItemProps.call(this,r,e),headers:this.computedHeaders};return{...t,attrs:{class:{"v-data-table__selected":t.isSelected}},on:{...this.getDefaultMouseEventHandlers(":row",()=>t,!0),click:s=>this.$emit("click:row",r,t,s)}}},genCaption(r){return this.caption?[this.$createElement("caption",[this.caption])]:me(this,"caption",r,!0)},genColgroup(r){return this.$createElement("colgroup",this.computedHeaders.map(e=>this.$createElement("col",{class:{divider:e.divider}})))},genLoading(){const r=this.$createElement("th",{staticClass:"column",attrs:this.colspanAttrs},[this.genProgress()]),e=this.$createElement("tr",{staticClass:"v-data-table__progress"},[r]);return this.$createElement("thead",[e])},genHeaders(r){const e={props:{...this.sanitizedHeaderProps,headers:this.computedHeaders,options:r.options,mobile:this.isMobile,showGroupBy:this.showGroupBy,checkboxColor:this.checkboxColor,someItems:this.someItems,everyItem:this.everyItem,singleSelect:this.singleSelect,disableSort:this.disableSort},on:{sort:r.sort,group:r.group,"toggle-select-all":this.toggleSelectAll}},t=[me(this,"header",{...e,isMobile:this.isMobile})];if(!this.hideDefaultHeader){const s=Xp("header.",this.$scopedSlots);t.push(this.$createElement(TW,{...e,scopedSlots:s}))}return this.loading&&t.push(this.genLoading()),t},genEmptyWrapper(r){return this.$createElement("tr",{staticClass:"v-data-table__empty-wrapper"},[this.$createElement("td",{attrs:this.colspanAttrs},r)])},genItems(r,e){const t=this.genEmpty(e.originalItemsLength,e.pagination.itemsLength);return t?[t]:e.groupedItems?this.genGroupedRows(e.groupedItems,e):this.genRows(r,e)},genGroupedRows(r,e){return r.map(t=>(this.openCache.hasOwnProperty(t.name)||this.$set(this.openCache,t.name,!0),this.$scopedSlots.group?this.$scopedSlots.group({group:t.name,options:e.options,isMobile:this.isMobile,items:t.items,headers:this.computedHeaders}):this.genDefaultGroupedRow(t.name,t.items,e)))},genDefaultGroupedRow(r,e,t){const s=!!this.openCache[r],n=[this.$createElement("template",{slot:"row.content"},this.genRows(e,t))],i=()=>this.$set(this.openCache,r,!this.openCache[r]),a=()=>t.updateOptions({groupBy:[],groupDesc:[]});if(this.$scopedSlots["group.header"])n.unshift(this.$createElement("template",{slot:"column.header"},[this.$scopedSlots["group.header"]({group:r,groupBy:t.options.groupBy,isMobile:this.isMobile,items:e,headers:this.computedHeaders,isOpen:s,toggle:i,remove:a})]));else{const o=this.$createElement(Fe,{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:i}},[this.$createElement(w,[s?"$minus":"$plus"])]),l=this.$createElement(Fe,{staticClass:"ma-0",props:{icon:!0,small:!0},on:{click:a}},[this.$createElement(w,["$close"])]),c=this.$createElement("td",{staticClass:"text-start",attrs:this.colspanAttrs},[o,`${this.groupByText}: ${r}`,l]);n.unshift(this.$createElement("template",{slot:"column.header"},[c]))}return this.$scopedSlots["group.summary"]&&n.push(this.$createElement("template",{slot:"column.summary"},[this.$scopedSlots["group.summary"]({group:r,groupBy:t.options.groupBy,isMobile:this.isMobile,items:e,headers:this.computedHeaders,isOpen:s,toggle:i})])),this.$createElement(Lw,{key:r,props:{value:s}},n)},genRows(r,e){return this.$scopedSlots.item?this.genScopedRows(r,e):this.genDefaultRows(r,e)},genScopedRows(r,e){const t=[];for(let s=0;s<r.length;s++){const n=r[s];t.push(this.$scopedSlots.item({...this.createItemProps(n,s),isMobile:this.isMobile})),this.isExpanded(n)&&t.push(this.$scopedSlots["expanded-item"]({headers:this.computedHeaders,isMobile:this.isMobile,index:s,item:n}))}return t},genDefaultRows(r,e){return this.$scopedSlots["expanded-item"]?r.map((t,s)=>this.genDefaultExpandedRow(t,s)):r.map((t,s)=>this.genDefaultSimpleRow(t,s))},genDefaultExpandedRow(r,e){const t=this.isExpanded(r),s={"v-data-table__expanded v-data-table__expanded__row":t},n=this.genDefaultSimpleRow(r,e,s),i=this.$createElement("tr",{staticClass:"v-data-table__expanded v-data-table__expanded__content"},[this.$scopedSlots["expanded-item"]({headers:this.computedHeaders,isMobile:this.isMobile,item:r})]);return this.$createElement(Lw,{props:{value:t}},[this.$createElement("template",{slot:"row.header"},[n]),this.$createElement("template",{slot:"row.content"},[i])])},genDefaultSimpleRow(r,e,t={}){const s=Xp("item.",this.$scopedSlots),n=this.createItemProps(r,e);if(this.showSelect){const i=s["data-table-select"];s["data-table-select"]=i?()=>i({...n,isMobile:this.isMobile}):()=>{var a;return this.$createElement(Om,{staticClass:"v-data-table__checkbox",props:{value:n.isSelected,disabled:!this.isSelectable(r),color:(a=this.checkboxColor)!==null&&a!==void 0?a:""},on:{input:o=>n.select(o)}})}}if(this.showExpand){const i=s["data-table-expand"];s["data-table-expand"]=i?()=>i(n):()=>this.$createElement(w,{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":n.isExpanded},on:{click:a=>{a.stopPropagation(),n.expand(!n.isExpanded)}}},[this.expandIcon])}return this.$createElement(this.isMobile?MW:DW,{key:at(r,this.itemKey),class:c6({...t,"v-data-table__selected":n.isSelected},In(r,this.itemClass)),style:l6({},In(r,this.itemStyle)),props:{headers:this.computedHeaders,hideDefaultHeader:this.hideDefaultHeader,index:e,item:r,rtl:this.$vuetify.rtl},scopedSlots:s,on:n.on})},genBody(r){const e={...r,expand:this.expand,headers:this.computedHeaders,isExpanded:this.isExpanded,isMobile:this.isMobile,isSelected:this.isSelected,select:this.select};return this.$scopedSlots.body?this.$scopedSlots.body(e):this.$createElement("tbody",[me(this,"body.prepend",e,!0),this.genItems(r.items,r),me(this,"body.append",e,!0)])},genFoot(r){var e,t;return(t=(e=this.$scopedSlots).foot)===null||t===void 0?void 0:t.call(e,r)},genFooters(r){const e={props:{options:r.options,pagination:r.pagination,itemsPerPageText:"$vuetify.dataTable.itemsPerPageText",...this.sanitizedFooterProps},on:{"update:options":s=>r.updateOptions(s)},widths:this.widths,headers:this.computedHeaders},t=[me(this,"footer",e,!0)];return this.hideDefaultFooter||t.push(this.$createElement(M6,{...e,scopedSlots:Xp("footer.",this.$scopedSlots)})),t},genDefaultScopedSlot(r){const e={height:this.height,fixedHeader:this.fixedHeader,dense:this.dense};return this.$createElement(Zt,{props:e,class:{"v-data-table--mobile":this.isMobile,"v-data-table--selectable":this.showSelect}},[this.proxySlot("top",me(this,"top",{...r,isMobile:this.isMobile},!0)),this.genCaption(r),this.genColgroup(r),this.genHeaders(r),this.genBody(r),this.genFoot(r),this.proxySlot("bottom",this.genFooters(r))])},proxySlot(r,e){return this.$createElement("template",{slot:r},e)}},render(){return this.$createElement(Zv,{props:{...this.$props,customFilter:this.customFilterWithColumns,customSort:this.customSortWithHeaders,itemsPerPage:this.computedItemsPerPage},on:{"update:options":(r,e)=>{this.internalGroupBy=r.groupBy||[],!Gt(r,e)&&this.$emit("update:options",r)},"update:page":r=>this.$emit("update:page",r),"update:items-per-page":r=>this.$emit("update:items-per-page",r),"update:sort-by":r=>this.$emit("update:sort-by",r),"update:sort-desc":r=>this.$emit("update:sort-desc",r),"update:group-by":r=>this.$emit("update:group-by",r),"update:group-desc":r=>this.$emit("update:group-desc",r),pagination:(r,e)=>!Gt(r,e)&&this.$emit("pagination",r),"current-items":r=>{this.internalCurrentItems=r,this.$emit("current-items",r)},"page-count":r=>this.$emit("page-count",r)},scopedSlots:{default:this.genDefaultScopedSlot}})}});qr("v-table__overflow");const Dm=vr.extend({name:"v-expansion-panels",provide(){return{expansionPanels:this}},props:{accordion:Boolean,disabled:Boolean,flat:Boolean,hover:Boolean,focusable:Boolean,inset:Boolean,popout:Boolean,readonly:Boolean,tile:Boolean},computed:{classes(){return{...vr.options.computed.classes.call(this),"v-expansion-panels":!0,"v-expansion-panels--accordion":this.accordion,"v-expansion-panels--flat":this.flat,"v-expansion-panels--hover":this.hover,"v-expansion-panels--focusable":this.focusable,"v-expansion-panels--inset":this.inset,"v-expansion-panels--popout":this.popout,"v-expansion-panels--tile":this.tile}}},created(){this.$attrs.hasOwnProperty("expand")&&Zs("expand","multiple",this),Array.isArray(this.value)&&this.value.length>0&&typeof this.value[0]=="boolean"&&Zs(':value="[true, false, true]"',':value="[0, 2]"',this)},methods:{updateItem(r,e){const t=this.getValue(r,e),s=this.getValue(r,e+1);r.isActive=this.toggleMethod(t),r.nextIsActive=this.toggleMethod(s)}}}),Mm=be(Ni("expansionPanels","v-expansion-panel","v-expansion-panels"),lb("expansionPanel",!0)).extend({name:"v-expansion-panel",props:{disabled:Boolean,readonly:Boolean},data(){return{content:null,header:null,nextIsActive:!1}},computed:{classes(){return{"v-expansion-panel--active":this.isActive,"v-expansion-panel--next-active":this.nextIsActive,"v-expansion-panel--disabled":this.isDisabled,...this.groupClasses}},isDisabled(){return this.expansionPanels.disabled||this.disabled},isReadonly(){return this.expansionPanels.readonly||this.readonly}},methods:{registerContent(r){this.content=r},unregisterContent(){this.content=null},registerHeader(r){this.header=r,r.$on("click",this.onClick)},unregisterHeader(){this.header=null},onClick(r){r.detail&&this.header.$el.blur(),this.$emit("click",r),this.isReadonly||this.isDisabled||this.toggle()},toggle(){this.$nextTick(()=>this.$emit("change"))}},render(r){return r("div",{staticClass:"v-expansion-panel",class:this.classes,attrs:{"aria-expanded":String(this.isActive)}},me(this))}}),IW=be(Em,dt,Ja("expansionPanel","v-expansion-panel-content","v-expansion-panel")),Rm=IW.extend().extend({name:"v-expansion-panel-content",data:()=>({isActive:!1}),computed:{parentIsActive(){return this.expansionPanel.isActive}},watch:{parentIsActive:{immediate:!0,handler(r,e){r&&(this.isBooted=!0),e==null?this.isActive=r:this.$nextTick(()=>this.isActive=r)}}},created(){this.expansionPanel.registerContent(this)},beforeDestroy(){this.expansionPanel.unregisterContent()},render(r){return r(Zc,this.showLazyContent(()=>[r("div",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-content",directives:[{name:"show",value:this.isActive}]}),[r("div",{class:"v-expansion-panel-content__wrap"},me(this,"default",{open:this.isActive}))])]))}}),FW=be(dt,Ja("expansionPanel","v-expansion-panel-header","v-expansion-panel")),Im=FW.extend().extend({name:"v-expansion-panel-header",directives:{ripple:ls},props:{disableIconRotate:Boolean,expandIcon:{type:String,default:"$expand"},hideActions:Boolean,ripple:{type:[Boolean,Object],default:!1}},data:()=>({hasMousedown:!1}),computed:{classes(){return{"v-expansion-panel-header--active":this.isActive,"v-expansion-panel-header--mousedown":this.hasMousedown}},isActive(){return this.expansionPanel.isActive},isDisabled(){return this.expansionPanel.isDisabled},isReadonly(){return this.expansionPanel.isReadonly}},created(){this.expansionPanel.registerHeader(this)},beforeDestroy(){this.expansionPanel.unregisterHeader()},methods:{onClick(r){this.$emit("click",r)},genIcon(){const r=me(this,"actions",{open:this.isActive})||[this.$createElement(w,this.expandIcon)];return this.$createElement(Ol,[this.$createElement("div",{staticClass:"v-expansion-panel-header__icon",class:{"v-expansion-panel-header__icon--disable-rotate":this.disableIconRotate},directives:[{name:"show",value:!this.isDisabled}]},r)])}},render(r){return r("button",this.setBackgroundColor(this.color,{staticClass:"v-expansion-panel-header",class:this.classes,attrs:{tabindex:this.isDisabled?-1:null,type:"button","aria-expanded":this.isActive},directives:[{name:"ripple",value:this.ripple}],on:{...this.$listeners,click:this.onClick,mousedown:()=>this.hasMousedown=!0,mouseup:()=>this.hasMousedown=!1}}),[me(this,"default",{open:this.isActive},!0),this.hideActions||this.genIcon()])}}),HW=be(ut,ab("footer",["height","inset"]),vd).extend({name:"v-footer",props:{height:{default:"auto",type:[Number,String]},inset:Boolean,padless:Boolean,tag:{type:String,default:"footer"}},computed:{applicationProperty(){return this.inset?"insetFooter":"footer"},classes(){return{...ut.options.computed.classes.call(this),"v-footer--absolute":this.absolute,"v-footer--fixed":!this.absolute&&(this.app||this.fixed),"v-footer--padless":this.padless,"v-footer--inset":this.inset}},computedBottom(){if(this.isPositioned)return this.app?this.$vuetify.application.bottom:0},computedLeft(){if(this.isPositioned)return this.app&&this.inset?this.$vuetify.application.left:0},computedRight(){if(this.isPositioned)return this.app&&this.inset?this.$vuetify.application.right:0},isPositioned(){return!!(this.absolute||this.fixed||this.app)},styles(){const r=parseInt(this.height);return{...ut.options.computed.styles.call(this),height:isNaN(r)?r:ge(r),left:ge(this.computedLeft),right:ge(this.computedRight),bottom:ge(this.computedBottom)}}},methods:{updateApplication(){const r=parseInt(this.height);return isNaN(r)?this.$el?this.$el.clientHeight:0:r}},render(r){const e=this.setBackgroundColor(this.color,{staticClass:"v-footer",class:this.classes,style:this.styles});return r(this.tag,e,me(this))}}),Tl=be(Pl,lb("form")).extend({name:"v-form",provide(){return{form:this}},inheritAttrs:!1,props:{disabled:Boolean,lazyValidation:Boolean,readonly:Boolean,value:Boolean},data:()=>({inputs:[],watchers:[],errorBag:{}}),watch:{errorBag:{handler(r){const e=Object.values(r).includes(!0);this.$emit("input",!e)},deep:!0,immediate:!0}},methods:{watchInput(r){const e=s=>s.$watch("hasError",n=>{this.$set(this.errorBag,s._uid,n)},{immediate:!0}),t={_uid:r._uid,valid:()=>{},shouldValidate:()=>{}};return this.lazyValidation?t.shouldValidate=r.$watch("shouldValidate",s=>{s&&(this.errorBag.hasOwnProperty(r._uid)||(t.valid=e(r)))}):t.valid=e(r),t},validate(){return this.inputs.filter(r=>!r.validate(!0)).length===0},reset(){this.inputs.forEach(r=>r.reset()),this.resetErrorBag()},resetErrorBag(){this.lazyValidation&&setTimeout(()=>{this.errorBag={}},0)},resetValidation(){this.inputs.forEach(r=>r.resetValidation()),this.resetErrorBag()},register(r){this.inputs.push(r),this.watchers.push(this.watchInput(r))},unregister(r){const e=this.inputs.find(s=>s._uid===r._uid);if(!e)return;const t=this.watchers.find(s=>s._uid===e._uid);t&&(t.valid(),t.shouldValidate()),this.watchers=this.watchers.filter(s=>s._uid!==e._uid),this.inputs=this.inputs.filter(s=>s._uid!==e._uid),this.$delete(this.errorBag,e._uid)}},render(r){return r("form",{staticClass:"v-form",attrs:{novalidate:!0,...this.attrs$},on:{submit:e=>this.$emit("submit",e)}},me(this))}});function R6(r){return b.extend({name:`v-${r}`,functional:!0,props:{id:String,tag:{type:String,default:"div"}},render(e,{props:t,data:s,children:n}){s.staticClass=`${r} ${s.staticClass||""}`.trim();const{attrs:i}=s;if(i){s.attrs={};const a=Object.keys(i).filter(o=>{if(o==="slot")return!1;const l=i[o];return o.startsWith("data-")?(s.attrs[o]=l,!1):l||typeof l=="string"});a.length&&(s.staticClass+=` ${a.join(" ")}`)}return t.id&&(s.domProps=s.domProps||{},s.domProps.id=t.id),e(t.tag,s,n)}})}const kl=R6("container").extend({name:"v-container",functional:!0,props:{id:String,tag:{type:String,default:"div"},fluid:{type:Boolean,default:!1}},render(r,{props:e,data:t,children:s}){let n;const{attrs:i}=t;return i&&(t.attrs={},n=Object.keys(i).filter(a=>{if(a==="slot")return!1;const o=i[a];return a.startsWith("data-")?(t.attrs[a]=o,!1):o||typeof o=="string"})),e.id&&(t.domProps=t.domProps||{},t.domProps.id=e.id),r(e.tag,os(t,{staticClass:"container",class:Array({"container--fluid":e.fluid}).concat(n||[])}),s)}}),mb=["sm","md","lg","xl"],I6=mb.reduce((r,e)=>(r[e]={type:[Boolean,String,Number],default:!1},r),{}),F6=mb.reduce((r,e)=>(r["offset"+wm(e)]={type:[String,Number],default:null},r),{}),H6=mb.reduce((r,e)=>(r["order"+wm(e)]={type:[String,Number],default:null},r),{}),Aw={col:Object.keys(I6),offset:Object.keys(F6),order:Object.keys(H6)};function BW(r,e,t){let s=r;if(!(t==null||t===!1)){if(e){const n=e.replace(r,"");s+=`-${n}`}return r==="col"&&(t===""||t===!0)||(s+=`-${t}`),s.toLowerCase()}}const Ew=new Map,I=b.extend({name:"v-col",functional:!0,props:{cols:{type:[Boolean,String,Number],default:!1},...I6,offset:{type:[String,Number],default:null},...F6,order:{type:[String,Number],default:null},...H6,alignSelf:{type:String,default:null,validator:r=>["auto","start","end","center","baseline","stretch"].includes(r)},tag:{type:String,default:"div"}},render(r,{props:e,data:t,children:s,parent:n}){let i="";for(const o in e)i+=String(e[o]);let a=Ew.get(i);if(!a){a=[];let o;for(o in Aw)Aw[o].forEach(c=>{const u=e[c],d=BW(o,c,u);d&&a.push(d)});const l=a.some(c=>c.startsWith("col-"));a.push({col:!l||!e.cols,[`col-${e.cols}`]:e.cols,[`offset-${e.offset}`]:e.offset,[`order-${e.order}`]:e.order,[`align-self-${e.alignSelf}`]:e.alignSelf}),Ew.set(i,a)}return r(e.tag,os(t,{class:a}),s)}}),jW=["sm","md","lg","xl"],gb=["start","end","center"];function vb(r,e){return jW.reduce((t,s)=>(t[r+wm(s)]=e(),t),{})}const B6=r=>[...gb,"baseline","stretch"].includes(r),j6=vb("align",()=>({type:String,default:null,validator:B6})),V6=r=>[...gb,"space-between","space-around"].includes(r),N6=vb("justify",()=>({type:String,default:null,validator:V6})),z6=r=>[...gb,"space-between","space-around","stretch"].includes(r),U6=vb("alignContent",()=>({type:String,default:null,validator:z6})),Ow={align:Object.keys(j6),justify:Object.keys(N6),alignContent:Object.keys(U6)},VW={align:"align",justify:"justify",alignContent:"align-content"};function NW(r,e,t){let s=VW[r];if(t!=null){if(e){const n=e.replace(r,"");s+=`-${n}`}return s+=`-${t}`,s.toLowerCase()}}const Tw=new Map,te=b.extend({name:"v-row",functional:!0,props:{tag:{type:String,default:"div"},dense:Boolean,noGutters:Boolean,align:{type:String,default:null,validator:B6},...j6,justify:{type:String,default:null,validator:V6},...N6,alignContent:{type:String,default:null,validator:z6},...U6},render(r,{props:e,data:t,children:s}){let n="";for(const a in e)n+=String(e[a]);let i=Tw.get(n);if(!i){i=[];let a;for(a in Ow)Ow[a].forEach(o=>{const l=e[o],c=NW(a,o,l);c&&i.push(c)});i.push({"no-gutters":e.noGutters,"row--dense":e.dense,[`align-${e.align}`]:e.align,[`justify-${e.justify}`]:e.justify,[`align-content-${e.alignContent}`]:e.alignContent}),Tw.set(n,i)}return r(e.tag,os(t,{staticClass:"row",class:i}),s)}}),_t=qr("spacer","div","v-spacer"),Ur=R6("layout"),kw=be(Am,Vi).extend({name:"v-hover",props:{disabled:{type:Boolean,default:!1},value:{type:Boolean,default:void 0}},methods:{onMouseEnter(){this.runDelay("open")},onMouseLeave(){this.runDelay("close")}},render(){if(!this.$scopedSlots.default&&this.value===void 0)return lr("v-hover is missing a default scopedSlot or bound value",this),null;let r;return this.$scopedSlots.default&&(r=this.$scopedSlots.default({hover:this.isActive})),Array.isArray(r)&&r.length===1&&(r=r[0]),!r||Array.isArray(r)||!r.tag?(lr("v-hover should only contain a single element",this),r):(this.disabled||(r.data=r.data||{},this._g(r.data,{mouseenter:this.onMouseEnter,mouseleave:this.onMouseLeave})),r)}}),zW=be(ab("left",["isActive","isMobile","miniVariant","expandOnHover","permanent","right","temporary","width"]),dt,yd,mu,pb,vd,Ke),Yv=zW.extend({name:"v-navigation-drawer",directives:{ClickOutside:fd,Resize:md,Touch:gd},provide(){return{isInNav:this.tag==="nav"}},props:{bottom:Boolean,clipped:Boolean,disableResizeWatcher:Boolean,disableRouteWatcher:Boolean,expandOnHover:Boolean,floating:Boolean,height:{type:[Number,String],default(){return this.app?"100vh":"100%"}},miniVariant:Boolean,miniVariantWidth:{type:[Number,String],default:56},permanent:Boolean,right:Boolean,src:{type:[String,Object],default:""},stateless:Boolean,tag:{type:String,default(){return this.app?"nav":"aside"}},temporary:Boolean,touchless:Boolean,width:{type:[Number,String],default:256},value:null},data:()=>({isMouseover:!1,touchArea:{left:0,right:0},stackMinZIndex:6}),computed:{applicationProperty(){return this.right?"right":"left"},classes(){return{"v-navigation-drawer":!0,"v-navigation-drawer--absolute":this.absolute,"v-navigation-drawer--bottom":this.bottom,"v-navigation-drawer--clipped":this.clipped,"v-navigation-drawer--close":!this.isActive,"v-navigation-drawer--fixed":!this.absolute&&(this.app||this.fixed),"v-navigation-drawer--floating":this.floating,"v-navigation-drawer--is-mobile":this.isMobile,"v-navigation-drawer--is-mouseover":this.isMouseover,"v-navigation-drawer--mini-variant":this.isMiniVariant,"v-navigation-drawer--custom-mini-variant":Number(this.miniVariantWidth)!==56,"v-navigation-drawer--open":this.isActive,"v-navigation-drawer--open-on-hover":this.expandOnHover,"v-navigation-drawer--right":this.right,"v-navigation-drawer--temporary":this.temporary,...this.themeClasses}},computedMaxHeight(){if(!this.hasApp)return null;const r=this.$vuetify.application.bottom+this.$vuetify.application.footer+this.$vuetify.application.bar;return this.clipped?r+this.$vuetify.application.top:r},computedTop(){if(!this.hasApp)return 0;let r=this.$vuetify.application.bar;return r+=this.clipped?this.$vuetify.application.top:0,r},computedTransform(){return this.isActive?0:this.isBottom||this.right?100:-100},computedWidth(){return this.isMiniVariant?this.miniVariantWidth:this.width},hasApp(){return this.app&&!this.isMobile&&!this.temporary},isBottom(){return this.bottom&&this.isMobile},isMiniVariant(){return!this.expandOnHover&&this.miniVariant||this.expandOnHover&&!this.isMouseover},isMobile(){return!this.stateless&&!this.permanent&&mu.options.computed.isMobile.call(this)},reactsToClick(){return!this.stateless&&!this.permanent&&(this.isMobile||this.temporary)},reactsToMobile(){return this.app&&!this.disableResizeWatcher&&!this.permanent&&!this.stateless&&!this.temporary},reactsToResize(){return!this.disableResizeWatcher&&!this.stateless},reactsToRoute(){return!this.disableRouteWatcher&&!this.stateless&&(this.temporary||this.isMobile)},showOverlay(){return!this.hideOverlay&&this.isActive&&(this.isMobile||this.temporary)},styles(){const r=this.isBottom?"translateY":"translateX";return{height:ge(this.height),top:this.isBottom?"auto":ge(this.computedTop),maxHeight:this.computedMaxHeight!=null?`calc(100% - ${ge(this.computedMaxHeight)})`:void 0,transform:`${r}(${ge(this.computedTransform,"%")})`,width:ge(this.computedWidth)}}},watch:{$route:"onRouteChange",isActive(r){this.$emit("input",r)},isMobile(r,e){!r&&this.isActive&&!this.temporary&&this.removeOverlay(),!(e==null||!this.reactsToResize||!this.reactsToMobile)&&(this.isActive=!r)},permanent(r){r&&(this.isActive=!0)},showOverlay(r){r?this.genOverlay():this.removeOverlay()},value(r){if(!this.permanent){if(r==null){this.init();return}r!==this.isActive&&(this.isActive=r)}},expandOnHover:"updateMiniVariant",isMouseover(r){this.updateMiniVariant(!r)}},beforeMount(){this.init()},methods:{calculateTouchArea(){const r=this.$el.parentNode;if(!r)return;const e=r.getBoundingClientRect();this.touchArea={left:e.left+50,right:e.right-50}},closeConditional(){return this.isActive&&!this._isDestroyed&&this.reactsToClick},genAppend(){return this.genPosition("append")},genBackground(){const r={height:"100%",width:"100%",src:this.src},e=this.$scopedSlots.img?this.$scopedSlots.img(r):this.$createElement(nb,{props:r});return this.$createElement("div",{staticClass:"v-navigation-drawer__image"},[e])},genDirectives(){const r=[{name:"click-outside",value:{handler:()=>{this.isActive=!1},closeConditional:this.closeConditional,include:this.getOpenDependentElements}}];return!this.touchless&&!this.stateless&&r.push({name:"touch",value:{parent:!0,left:this.swipeLeft,right:this.swipeRight}}),r},genListeners(){const r={mouseenter:()=>this.isMouseover=!0,mouseleave:()=>this.isMouseover=!1,transitionend:e=>{if(e.target!==e.currentTarget)return;this.$emit("transitionend",e);const t=document.createEvent("UIEvents");t.initUIEvent("resize",!0,!1,window,0),window.dispatchEvent(t)}};return this.miniVariant&&(r.click=()=>this.$emit("update:mini-variant",!1)),r},genPosition(r){const e=me(this,r);return e&&this.$createElement("div",{staticClass:`v-navigation-drawer__${r}`},e)},genPrepend(){return this.genPosition("prepend")},genContent(){return this.$createElement("div",{staticClass:"v-navigation-drawer__content"},me(this))},genBorder(){return this.$createElement("div",{staticClass:"v-navigation-drawer__border"})},init(){this.permanent?this.isActive=!0:this.stateless||this.value!=null?this.isActive=this.value:this.temporary||(this.isActive=!this.isMobile)},onRouteChange(){this.reactsToRoute&&this.closeConditional()&&(this.isActive=!1)},swipeLeft(r){this.isActive&&this.right||(this.calculateTouchArea(),!(Math.abs(r.touchendX-r.touchstartX)<100)&&(this.right&&r.touchstartX>=this.touchArea.right?this.isActive=!0:!this.right&&this.isActive&&(this.isActive=!1)))},swipeRight(r){this.isActive&&!this.right||(this.calculateTouchArea(),!(Math.abs(r.touchendX-r.touchstartX)<100)&&(!this.right&&r.touchstartX<=this.touchArea.left?this.isActive=!0:this.right&&this.isActive&&(this.isActive=!1)))},updateApplication(){if(!this.isActive||this.isMobile||this.temporary||!this.$el)return 0;const r=Number(this.miniVariant?this.miniVariantWidth:this.width);return isNaN(r)?this.$el.clientWidth:r},updateMiniVariant(r){this.expandOnHover&&this.miniVariant!==r&&this.$emit("update:mini-variant",r)}},render(r){const e=[this.genPrepend(),this.genContent(),this.genAppend(),this.genBorder()];return(this.src||me(this,"img"))&&e.unshift(this.genBackground()),r(this.tag,this.setBackgroundColor(this.color,{class:this.classes,style:this.styles,directives:this.genDirectives(),on:this.genListeners()}),e)}}),UW=be(vr,Pt),W6=UW.extend({name:"v-radio-group",provide(){return{radioGroup:this}},props:{column:{type:Boolean,default:!0},height:{type:[Number,String],default:"auto"},name:String,row:Boolean,value:null},computed:{classes(){return{...Pt.options.computed.classes.call(this),"v-input--selection-controls v-input--radio-group":!0,"v-input--radio-group--column":this.column&&!this.row,"v-input--radio-group--row":this.row}}},methods:{genDefaultSlot(){return this.$createElement("div",{staticClass:"v-input--radio-group__input",attrs:{id:this.id,role:"radiogroup","aria-labelledby":this.computedId}},Pt.options.methods.genDefaultSlot.call(this))},genInputSlot(){const r=Pt.options.methods.genInputSlot.call(this);return delete r.data.on.click,r},genLabel(){const r=Pt.options.methods.genLabel.call(this);return r?(r.data.attrs.id=this.computedId,delete r.data.attrs.for,r.tag="legend",r):null},onClick:vr.options.methods.onClick},render(r){const e=Pt.options.render.call(this,r);return this._b(e.data,"div",this.attrs$),e}}),WW=be(Pl,dt,D6,Ni("radioGroup"),Ke),Kc=WW.extend().extend({name:"v-radio",inheritAttrs:!1,props:{disabled:{type:Boolean,default:null},id:String,label:String,name:String,offIcon:{type:String,default:"$radioOff"},onIcon:{type:String,default:"$radioOn"},readonly:{type:Boolean,default:null},value:{default:null}},data:()=>({isFocused:!1}),computed:{classes(){return{"v-radio--is-disabled":this.isDisabled,"v-radio--is-focused":this.isFocused,...this.themeClasses,...this.groupClasses}},computedColor(){if(!this.isDisabled)return Yc.options.computed.computedColor.call(this)},computedIcon(){return this.isActive?this.onIcon:this.offIcon},computedId(){return Pt.options.computed.computedId.call(this)},hasLabel:Pt.options.computed.hasLabel,hasState(){return(this.radioGroup||{}).hasState},isDisabled(){var r;return(r=this.disabled)!==null&&r!==void 0?r:!!this.radioGroup&&this.radioGroup.isDisabled},isReadonly(){var r;return(r=this.readonly)!==null&&r!==void 0?r:!!this.radioGroup&&this.radioGroup.isReadonly},computedName(){return this.name||!this.radioGroup?this.name:this.radioGroup.name||`radio-${this.radioGroup._uid}`},rippleState(){return Yc.options.computed.rippleState.call(this)},validationState(){return(this.radioGroup||{}).validationState||this.computedColor}},methods:{genInput(r){return Yc.options.methods.genInput.call(this,"radio",r)},genLabel(){return this.hasLabel?this.$createElement(db,{on:{click:Gv},attrs:{for:this.computedId},props:{color:this.validationState,focused:this.hasState}},me(this,"label")||this.label):null},genRadio(){const{title:r,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.$createElement(w,this.setTextColor(this.validationState,{props:{dense:this.radioGroup&&this.radioGroup.dense}}),this.computedIcon),this.genInput({name:this.computedName,value:this.value,...e}),this.genRipple(this.setTextColor(this.rippleState))])},onFocus(r){this.isFocused=!0,this.$emit("focus",r)},onBlur(r){this.isFocused=!1,this.$emit("blur",r)},onChange(){this.isDisabled||this.isReadonly||this.isActive||this.toggle()},onKeydown:()=>{}},render(r){const e={staticClass:"v-radio",class:this.classes,on:u6({click:this.onChange},this.listeners$),attrs:{title:this.attrs$.title}};return r("div",e,[this.genRadio(),this.genLabel()])}}),Fm=be(ut,dt,Vi,Al(["absolute","bottom","left","right","top"])).extend({name:"v-snackbar",props:{app:Boolean,centered:Boolean,contentClass:{type:String,default:""},multiLine:Boolean,text:Boolean,timeout:{type:[Number,String],default:5e3},transition:{type:[Boolean,String],default:"v-snack-transition",validator:r=>typeof r=="string"||r===!1},vertical:Boolean},data:()=>({activeTimeout:-1}),computed:{classes(){return{"v-snack--absolute":this.absolute,"v-snack--active":this.isActive,"v-snack--bottom":this.bottom||!this.top,"v-snack--centered":this.centered,"v-snack--has-background":this.hasBackground,"v-snack--left":this.left,"v-snack--multi-line":this.multiLine&&!this.vertical,"v-snack--right":this.right,"v-snack--text":this.text,"v-snack--top":this.top,"v-snack--vertical":this.vertical}},hasBackground(){return!this.text&&!this.outlined},isDark(){return this.hasBackground?!this.light:Ke.options.computed.isDark.call(this)},styles(){if(this.absolute||!this.app)return{};const{bar:r,bottom:e,footer:t,insetFooter:s,left:n,right:i,top:a}=this.$vuetify.application;return{paddingBottom:ge(e+t+s),paddingLeft:ge(n),paddingRight:ge(i),paddingTop:ge(r+a)}}},watch:{isActive:"setTimeout",timeout:"setTimeout"},mounted(){this.isActive&&this.setTimeout()},created(){this.$attrs.hasOwnProperty("auto-height")&&Ll("auto-height",this),this.timeout==0&&n6('timeout="0"',"-1",this)},methods:{genActions(){return this.$createElement("div",{staticClass:"v-snack__action "},[me(this,"action",{attrs:{class:"v-snack__btn"}})])},genContent(){return this.$createElement("div",{staticClass:"v-snack__content",class:{[this.contentClass]:!0},attrs:{role:"status","aria-live":"polite"}},[me(this)])},genWrapper(){const e=(this.hasBackground?this.setBackgroundColor:this.setTextColor)(this.color,{staticClass:"v-snack__wrapper",class:ut.options.computed.classes.call(this),style:ut.options.computed.styles.call(this),directives:[{name:"show",value:this.isActive}],on:{pointerenter:()=>window.clearTimeout(this.activeTimeout),pointerleave:this.setTimeout}});return this.$createElement("div",e,[this.genContent(),this.genActions()])},genTransition(){return this.$createElement("transition",{props:{name:this.transition}},[this.genWrapper()])},setTimeout(){window.clearTimeout(this.activeTimeout);const r=Number(this.timeout);!this.isActive||[0,-1].includes(r)||(this.activeTimeout=window.setTimeout(()=>{this.isActive=!1},r))}},render(r){return r("div",{staticClass:"v-snack",class:this.classes,style:this.styles},[this.transition!==!1?this.genTransition():this.genWrapper()])}}),GW=be(ut,lb("stepper"),Tm),_b=GW.extend({name:"v-stepper",provide(){return{stepClick:this.stepClick,isVertical:this.vertical}},props:{altLabels:Boolean,nonLinear:Boolean,flat:Boolean,vertical:Boolean},data(){const r={isBooted:!1,steps:[],content:[],isReverse:!1};return r.internalLazyValue=this.value!=null?this.value:(r[0]||{}).step||1,r},computed:{classes(){return{"v-stepper--flat":this.flat,"v-stepper--is-booted":this.isBooted,"v-stepper--vertical":this.vertical,"v-stepper--alt-labels":this.altLabels,"v-stepper--non-linear":this.nonLinear,...ut.options.computed.classes.call(this)}},styles(){return{...ut.options.computed.styles.call(this)}}},watch:{internalValue(r,e){this.isReverse=Number(r)<Number(e),e&&(this.isBooted=!0),this.updateView()}},created(){this.$listeners.input&&Zs("@input","@change",this)},mounted(){this.updateView()},methods:{register(r){r.$options.name==="v-stepper-step"?this.steps.push(r):r.$options.name==="v-stepper-content"&&(r.isVertical=this.vertical,this.content.push(r))},unregister(r){r.$options.name==="v-stepper-step"?this.steps=this.steps.filter(e=>e!==r):r.$options.name==="v-stepper-content"&&(r.isVertical=this.vertical,this.content=this.content.filter(e=>e!==r))},stepClick(r){this.$nextTick(()=>this.internalValue=r)},updateView(){for(let r=this.steps.length;--r>=0;)this.steps[r].toggle(this.internalValue);for(let r=this.content.length;--r>=0;)this.content[r].toggle(this.internalValue,this.isReverse)}},render(r){return r(this.tag,{staticClass:"v-stepper",class:this.classes,style:this.styles},me(this))}}),qW=be(dt,Ja("stepper","v-stepper-step","v-stepper")),yb=qW.extend().extend({name:"v-stepper-step",directives:{ripple:ls},inject:["stepClick"],props:{color:{type:String,default:"primary"},complete:Boolean,completeIcon:{type:String,default:"$complete"},editable:Boolean,editIcon:{type:String,default:"$edit"},errorIcon:{type:String,default:"$error"},rules:{type:Array,default:()=>[]},step:[Number,String]},data(){return{isActive:!1,isInactive:!0}},computed:{classes(){return{"v-stepper__step--active":this.isActive,"v-stepper__step--editable":this.editable,"v-stepper__step--inactive":this.isInactive,"v-stepper__step--error error--text":this.hasError,"v-stepper__step--complete":this.complete}},hasError(){return this.rules.some(r=>r()!==!0)}},mounted(){this.stepper&&this.stepper.register(this)},beforeDestroy(){this.stepper&&this.stepper.unregister(this)},methods:{click(r){r.stopPropagation(),this.$emit("click",r),this.editable&&this.stepClick(this.step)},genIcon(r){return this.$createElement(w,r)},genLabel(){return this.$createElement("div",{staticClass:"v-stepper__label"},me(this))},genStep(){const r=!this.hasError&&(this.complete||this.isActive)?this.color:!1;return this.$createElement("span",this.setBackgroundColor(r,{staticClass:"v-stepper__step__step"}),this.genStepContent())},genStepContent(){const r=[];return this.hasError?r.push(this.genIcon(this.errorIcon)):this.complete?this.editable?r.push(this.genIcon(this.editIcon)):r.push(this.genIcon(this.completeIcon)):r.push(String(this.step)),r},keyboardClick(r){r.keyCode===Le.space&&this.click(r)},toggle(r){this.isActive=r.toString()===this.step.toString(),this.isInactive=Number(r)<Number(this.step)}},render(r){return r("div",{attrs:{tabindex:this.editable?0:-1},staticClass:"v-stepper__step",class:this.classes,directives:[{name:"ripple",value:this.editable}],on:{click:this.click,keydown:this.keyboardClick}},[this.genStep(),this.genLabel()])}}),ZW=be(Ja("stepper","v-stepper-content","v-stepper")),bb=ZW.extend().extend({name:"v-stepper-content",inject:{isVerticalProvided:{from:"isVertical"}},props:{step:{type:[Number,String],required:!0}},data(){return{height:0,isActive:null,isReverse:!1,isVertical:this.isVerticalProvided}},computed:{computedTransition(){return(this.$vuetify.rtl?!this.isReverse:this.isReverse)?TU:OU},styles(){return this.isVertical?{height:ge(this.height)}:{}}},watch:{isActive(r,e){if(r&&e==null){this.height="auto";return}this.isVertical&&(this.isActive?this.enter():this.leave())}},mounted(){this.$refs.wrapper.addEventListener("transitionend",this.onTransition,!1),this.stepper&&this.stepper.register(this)},beforeDestroy(){this.$refs.wrapper.removeEventListener("transitionend",this.onTransition,!1),this.stepper&&this.stepper.unregister(this)},methods:{onTransition(r){!this.isActive||r.propertyName!=="height"||(this.height="auto")},enter(){let r=0;requestAnimationFrame(()=>{r=this.$refs.wrapper.scrollHeight}),this.height=0,setTimeout(()=>this.isActive&&(this.height=r||"auto"),450)},leave(){this.height=this.$refs.wrapper.clientHeight,setTimeout(()=>this.height=0,10)},toggle(r,e){this.isActive=r.toString()===this.step.toString(),this.isReverse=e}},render(r){const e={staticClass:"v-stepper__content"},t={staticClass:"v-stepper__wrapper",style:this.styles,ref:"wrapper"};this.isVertical||(e.directives=[{name:"show",value:this.isActive}]);const s=r("div",t,me(this)),n=r("div",e,[s]);return r(this.computedTransition,{on:this.$listeners},[n])}}),$b=qr("v-stepper__header"),YW=qr("v-stepper__items"),Ce=Yc.extend({name:"v-switch",directives:{Touch:gd},props:{inset:Boolean,loading:{type:[Boolean,String],default:!1},flat:{type:Boolean,default:!1}},computed:{classes(){return{...Pt.options.computed.classes.call(this),"v-input--selection-controls v-input--switch":!0,"v-input--switch--flat":this.flat,"v-input--switch--inset":this.inset}},attrs(){return{"aria-checked":String(this.isActive),"aria-disabled":String(this.isDisabled),role:"switch"}},validationState(){if(this.hasError&&this.shouldValidate)return"error";if(this.hasSuccess)return"success";if(this.hasColor!==null)return this.computedColor},switchData(){return this.setTextColor(this.loading?void 0:this.validationState,{class:this.themeClasses})}},methods:{genDefaultSlot(){return[this.genSwitch(),this.genLabel()]},genSwitch(){const{title:r,...e}=this.attrs$;return this.$createElement("div",{staticClass:"v-input--selection-controls__input"},[this.genInput("checkbox",{...this.attrs,...e}),this.genRipple(this.setTextColor(this.validationState,{directives:[{name:"touch",value:{left:this.onSwipeLeft,right:this.onSwipeRight}}]})),this.$createElement("div",{staticClass:"v-input--switch__track",...this.switchData}),this.$createElement("div",{staticClass:"v-input--switch__thumb",...this.switchData},[this.genProgress()])])},genProgress(){return this.$createElement(kU,{},[this.loading===!1?null:me(this,"progress")||this.$createElement(Zo,{props:{color:this.loading===!0||this.loading===""?this.color||"primary":this.loading,size:16,width:2,indeterminate:!0}})])},onSwipeLeft(){this.isActive&&this.onChange()},onSwipeRight(){this.isActive||this.onChange()},onKeydown(r){(r.keyCode===Le.left&&this.isActive||r.keyCode===Le.right&&!this.isActive)&&this.onChange()}}}),KW=be(Tc,vd,Ke).extend({name:"v-tabs-bar",provide(){return{tabsBar:this}},computed:{classes(){return{...Tc.options.computed.classes.call(this),"v-tabs-bar":!0,"v-tabs-bar--is-mobile":this.isMobile,"v-tabs-bar--show-arrows":this.showArrows,...this.themeClasses}}},watch:{items:"callSlider",internalValue:"callSlider",$route:"onRouteChange"},methods:{callSlider(){this.isBooted&&this.$emit("call:slider")},genContent(){const r=Tc.options.methods.genContent.call(this);return r.data=r.data||{},r.data.staticClass+=" v-tabs-bar__content",r},onRouteChange(r,e){if(this.mandatory)return;const t=this.items,s=r.path,n=e.path;let i=!1,a=!1;for(const o of t)if(o.to===n?a=!0:o.to===s&&(i=!0),i&&a)break;!i&&a&&(this.internalValue=void 0)}},render(r){const e=Tc.options.render.call(this,r);return e.data.attrs={role:"tablist"},e}}),Hm=Sw.extend({name:"v-tabs-items",props:{mandatory:{type:Boolean,default:!1}},computed:{classes(){return{...Sw.options.computed.classes.call(this),"v-tabs-items":!0}},isDark(){return this.rootIsDark}},methods:{getValue(r,e){return r.id||vr.options.methods.getValue.call(this,r,e)}}}),XW=be(dt).extend({name:"v-tabs-slider",render(r){return r("div",this.setBackgroundColor(this.color,{staticClass:"v-tabs-slider"}))}}),QW=be(dt,Tm,Ke),Bm=QW.extend().extend({name:"v-tabs",directives:{Resize:md},props:{activeClass:{type:String,default:""},alignWithTitle:Boolean,backgroundColor:String,centerActive:Boolean,centered:Boolean,fixedTabs:Boolean,grow:Boolean,height:{type:[Number,String],default:void 0},hideSlider:Boolean,iconsAndText:Boolean,mobileBreakpoint:[String,Number],nextIcon:{type:String,default:"$next"},optional:Boolean,prevIcon:{type:String,default:"$prev"},right:Boolean,showArrows:[Boolean,String],sliderColor:String,sliderSize:{type:[Number,String],default:2},vertical:Boolean},data(){return{resizeTimeout:0,slider:{height:null,left:null,right:null,top:null,width:null},transitionTime:300}},computed:{classes(){return{"v-tabs--align-with-title":this.alignWithTitle,"v-tabs--centered":this.centered,"v-tabs--fixed-tabs":this.fixedTabs,"v-tabs--grow":this.grow,"v-tabs--icons-and-text":this.iconsAndText,"v-tabs--right":this.right,"v-tabs--vertical":this.vertical,...this.themeClasses}},isReversed(){return this.$vuetify.rtl&&this.vertical},sliderStyles(){return{height:ge(this.slider.height),left:this.isReversed?void 0:ge(this.slider.left),right:this.isReversed?ge(this.slider.right):void 0,top:this.vertical?ge(this.slider.top):void 0,transition:this.slider.left!=null?null:"none",width:ge(this.slider.width)}},computedColor(){return this.color?this.color:this.isDark&&!this.appIsDark?"white":"primary"}},watch:{alignWithTitle:"callSlider",centered:"callSlider",centerActive:"callSlider",fixedTabs:"callSlider",grow:"callSlider",iconsAndText:"callSlider",right:"callSlider",showArrows:"callSlider",vertical:"callSlider","$vuetify.application.left":"onResize","$vuetify.application.right":"onResize","$vuetify.rtl":"onResize"},mounted(){if(typeof ResizeObserver<"u"){const r=new ResizeObserver(()=>{this.onResize()});r.observe(this.$el),this.$on("hook:destroyed",()=>{r.disconnect()})}this.$nextTick(()=>{window.setTimeout(this.callSlider,30)})},methods:{callSlider(){return this.hideSlider||!this.$refs.items||!this.$refs.items.selectedItems.length?(this.slider.width=0,!1):(this.$nextTick(()=>{const r=this.$refs.items.selectedItems[0];if(!r||!r.$el){this.slider.width=0,this.slider.left=0;return}const e=r.$el;this.slider={height:this.vertical?e.scrollHeight:Number(this.sliderSize),left:this.vertical?0:e.offsetLeft,right:this.vertical?0:e.offsetLeft+e.offsetWidth,top:e.offsetTop,width:this.vertical?Number(this.sliderSize):e.scrollWidth}}),!0)},genBar(r,e){const t={style:{height:ge(this.height)},props:{activeClass:this.activeClass,centerActive:this.centerActive,dark:this.dark,light:this.light,mandatory:!this.optional,mobileBreakpoint:this.mobileBreakpoint,nextIcon:this.nextIcon,prevIcon:this.prevIcon,showArrows:this.showArrows,value:this.internalValue},on:{"call:slider":this.callSlider,change:s=>{this.internalValue=s}},ref:"items"};return this.setTextColor(this.computedColor,t),this.setBackgroundColor(this.backgroundColor,t),this.$createElement(KW,t,[this.genSlider(e),r])},genItems(r,e){return r||(e.length?this.$createElement(Hm,{props:{value:this.internalValue},on:{change:t=>{this.internalValue=t}}},e):null)},genSlider(r){return this.hideSlider?null:(r||(r=this.$createElement(XW,{props:{color:this.sliderColor}})),this.$createElement("div",{staticClass:"v-tabs-slider-wrapper",style:this.sliderStyles},[r]))},onResize(){this._isDestroyed||(clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(this.callSlider,0))},parseNodes(){let r=null,e=null;const t=[],s=[],n=me(this)||[],i=n.length;for(let a=0;a<i;a++){const o=n[a];if(o.componentOptions)switch(o.componentOptions.Ctor.options.name){case"v-tabs-slider":e=o;break;case"v-tabs-items":r=o;break;case"v-tab-item":t.push(o);break;default:s.push(o)}else s.push(o)}return{tab:s,slider:e,items:r,item:t}}},render(r){const{tab:e,slider:t,items:s,item:n}=this.parseNodes();return r("div",{staticClass:"v-tabs",class:this.classes,directives:[{name:"resize",modifiers:{quiet:!0},value:this.onResize}]},[this.genBar(e,t),this.genItems(s,n)])}}),JW=be($s,Ni("tabsBar"),Ke),gu=JW.extend().extend().extend({name:"v-tab",props:{ripple:{type:[Boolean,Object],default:!0},tabValue:{required:!1}},data:()=>({proxyClass:"v-tab--active"}),computed:{classes(){return{"v-tab":!0,...$s.options.computed.classes.call(this),"v-tab--disabled":this.disabled,...this.groupClasses}},value(){if(this.tabValue!=null)return this.tabValue;let r=this.to||this.href;return r==null?r:(this.$router&&this.to===Object(this.to)&&(r=this.$router.resolve(this.to,this.$route,this.append).href),r.replace("#",""))}},methods:{click(r){if(this.disabled){r.preventDefault();return}this.href&&this.href.indexOf("#")>-1&&r.preventDefault(),r.detail&&this.$el.blur(),this.$emit("click",r),this.to||this.toggle()},toggle(){(!this.isActive||!this.tabsBar.mandatory&&!this.to)&&this.$emit("change")}},render(r){const{tag:e,data:t}=this.generateRouteLink();return t.attrs={...t.attrs,"aria-selected":String(this.isActive),role:"tab",tabindex:this.disabled?-1:0},t.on={...t.on,keydown:s=>{s.keyCode===Le.enter&&this.click(s),this.$emit("keydown",s)}},r(e,t,me(this))}}),Uh=ww.extend({name:"v-tab-item",props:{id:String},methods:{genWindowItem(){const r=ww.options.methods.genWindowItem.call(this);return r.data.domProps=r.data.domProps||{},r.data.domProps.id=this.id||this.value,r}}}),eG=be(ae),jm=eG.extend({name:"v-textarea",props:{autoGrow:Boolean,noResize:Boolean,rowHeight:{type:[Number,String],default:24,validator:r=>!isNaN(parseFloat(r))},rows:{type:[Number,String],default:5,validator:r=>!isNaN(parseInt(r,10))}},computed:{classes(){return{"v-textarea":!0,"v-textarea--auto-grow":this.autoGrow,"v-textarea--no-resize":this.noResizeHandle,...ae.options.computed.classes.call(this)}},noResizeHandle(){return this.noResize||this.autoGrow}},watch:{autoGrow(r){this.$nextTick(()=>{var e;r?this.calculateInputHeight():(e=this.$refs.input)===null||e===void 0||e.style.removeProperty("height")})},lazyValue(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)},rowHeight(){this.autoGrow&&this.$nextTick(this.calculateInputHeight)}},mounted(){setTimeout(()=>{this.autoGrow&&this.calculateInputHeight()},0)},methods:{calculateInputHeight(){const r=this.$refs.input;if(!r)return;r.style.height="0";const e=r.scrollHeight,t=parseInt(this.rows,10)*parseFloat(this.rowHeight);r.style.height=Math.max(t,e)+"px"},genInput(){const r=ae.options.methods.genInput.call(this);return r.tag="textarea",delete r.data.attrs.type,r.data.attrs.rows=this.rows,r},onInput(r){ae.options.methods.onInput.call(this,r),this.autoGrow&&this.calculateInputHeight()},onKeyDown(r){this.isFocused&&r.keyCode===13&&r.stopPropagation(),this.$emit("keydown",r)}}}),tG=be(Ke).extend({name:"v-timeline",provide(){return{timeline:this}},props:{alignTop:Boolean,dense:Boolean,reverse:Boolean},computed:{classes(){return{"v-timeline--align-top":this.alignTop,"v-timeline--dense":this.dense,"v-timeline--reverse":this.reverse,...this.themeClasses}}},render(r){return r("div",{staticClass:"v-timeline",class:this.classes},me(this))}}),rG=be(dt,Ke),sG=rG.extend().extend({name:"v-timeline-item",inject:["timeline"],props:{color:{type:String,default:"primary"},fillDot:Boolean,hideDot:Boolean,icon:String,iconColor:String,large:Boolean,left:Boolean,right:Boolean,small:Boolean},computed:{hasIcon(){return!!this.icon||!!this.$slots.icon}},methods:{genBody(){return this.$createElement("div",{staticClass:"v-timeline-item__body"},me(this))},genIcon(){return me(this,"icon")||this.$createElement(w,{props:{color:this.iconColor,dark:!this.theme.isDark,small:this.small}},this.icon)},genInnerDot(){const r=this.setBackgroundColor(this.color);return this.$createElement("div",{staticClass:"v-timeline-item__inner-dot",...r},[this.hasIcon&&this.genIcon()])},genDot(){return this.$createElement("div",{staticClass:"v-timeline-item__dot",class:{"v-timeline-item__dot--small":this.small,"v-timeline-item__dot--large":this.large}},[this.genInnerDot()])},genDivider(){const r=[];return this.hideDot||r.push(this.genDot()),this.$createElement("div",{staticClass:"v-timeline-item__divider"},r)},genOpposite(){return this.$createElement("div",{staticClass:"v-timeline-item__opposite"},me(this,"opposite"))}},render(r){const e=[this.genBody(),this.genDivider()];return this.$slots.opposite&&e.push(this.genOpposite()),r("div",{staticClass:"v-timeline-item",class:{"v-timeline-item--fill-dot":this.fillDot,"v-timeline-item--before":this.timeline.reverse?this.right:this.left,"v-timeline-item--after":this.timeline.reverse?this.left:this.right,...this.themeClasses}},e)}}),Sd=qr("v-toolbar__title"),nG=qr("v-toolbar__items"),Oe=be(dt,Am,yd,cb).extend({name:"v-tooltip",props:{closeDelay:{type:[Number,String],default:0},disabled:Boolean,openDelay:{type:[Number,String],default:0},openOnHover:{type:Boolean,default:!0},openOnFocus:{type:Boolean,default:!0},tag:{type:String,default:"span"},transition:String},data:()=>({calculatedMinWidth:0,closeDependents:!1}),computed:{calculatedLeft(){const{activator:r,content:e}=this.dimensions,t=!this.bottom&&!this.left&&!this.top&&!this.right,s=this.attach!==!1?r.offsetLeft:r.left;let n=0;return this.top||this.bottom||t?n=s+r.width/2-e.width/2:(this.left||this.right)&&(n=s+(this.right?r.width:-e.width)+(this.right?10:-10)),this.nudgeLeft&&(n-=parseInt(this.nudgeLeft)),this.nudgeRight&&(n+=parseInt(this.nudgeRight)),`${this.calcXOverflow(n,this.dimensions.content.width)}px`},calculatedTop(){const{activator:r,content:e}=this.dimensions,t=this.attach!==!1?r.offsetTop:r.top;let s=0;return this.top||this.bottom?s=t+(this.bottom?r.height:-e.height)+(this.bottom?10:-10):(this.left||this.right)&&(s=t+r.height/2-e.height/2),this.nudgeTop&&(s-=parseInt(this.nudgeTop)),this.nudgeBottom&&(s+=parseInt(this.nudgeBottom)),this.attach===!1&&(s+=this.pageYOffset),`${this.calcYOverflow(s)}px`},classes(){return{"v-tooltip--top":this.top,"v-tooltip--right":this.right,"v-tooltip--bottom":this.bottom,"v-tooltip--left":this.left,"v-tooltip--attached":this.attach===""||this.attach===!0||this.attach==="attach"}},computedTransition(){return this.transition?this.transition:this.isActive?"scale-transition":"fade-transition"},offsetY(){return this.top||this.bottom},offsetX(){return this.left||this.right},styles(){return{left:this.calculatedLeft,maxWidth:ge(this.maxWidth),minWidth:ge(this.minWidth),top:this.calculatedTop,zIndex:this.zIndex||this.activeZIndex}}},beforeMount(){this.$nextTick(()=>{this.value&&this.callActivate()})},mounted(){B4(this,"activator")==="v-slot"&&Ns(`v-tooltip's activator slot must be bound, try '<template #activator="data"><v-btn v-on="data.on>'`,this)},methods:{activate(){this.updateDimensions(),requestAnimationFrame(this.startTransition)},deactivate(){this.runDelay("close")},genActivatorListeners(){const r=_d.options.methods.genActivatorListeners.call(this);return this.openOnFocus&&(r.focus=e=>{this.getActivator(e),this.runDelay("open")},r.blur=e=>{this.getActivator(e),this.runDelay("close")}),r.keydown=e=>{e.keyCode===Le.esc&&(this.getActivator(e),this.runDelay("close"))},r},genActivatorAttributes(){return{"aria-haspopup":!0,"aria-expanded":String(this.isActive)}},genTransition(){const r=this.genContent();return this.computedTransition?this.$createElement("transition",{props:{name:this.computedTransition}},[r]):r},genContent(){return this.$createElement("div",this.setBackgroundColor(this.color,{staticClass:"v-tooltip__content",class:{[this.contentClass]:!0,menuable__content__active:this.isActive,"v-tooltip__content--fixed":this.activatorFixed},style:this.styles,attrs:this.getScopeIdAttrs(),directives:[{name:"show",value:this.isContentActive}],ref:"content"}),this.getContentSlot())}},render(r){return r(this.tag,{staticClass:"v-tooltip",class:this.classes},[this.showLazyContent(()=>[this.genTransition()]),this.genActivator()])}}),iG=sb.extend({name:"v-virtual-scroll",directives:{Scroll:ib},props:{bench:{type:[Number,String],default:0},itemHeight:{type:[Number,String],required:!0},items:{type:Array,default:()=>[]}},data:()=>({first:0,last:0,scrollTop:0}),computed:{__bench(){return parseInt(this.bench,10)},__itemHeight(){return parseInt(this.itemHeight,10)},firstToRender(){return Math.max(0,this.first-this.__bench)},lastToRender(){return Math.min(this.items.length,this.last+this.__bench)}},watch:{height:"onScroll",itemHeight:"onScroll"},mounted(){this.last=this.getLast(0)},methods:{getChildren(){return this.items.slice(this.firstToRender,this.lastToRender).map(this.genChild)},genChild(r,e){e+=this.firstToRender;const t=ge(e*this.__itemHeight);return this.$createElement("div",{staticClass:"v-virtual-scroll__item",style:{top:t},key:e},me(this,"default",{index:e,item:r}))},getFirst(){return Math.floor(this.scrollTop/this.__itemHeight)},getLast(r){const e=parseInt(this.height||0,10)||this.$el.clientHeight;return r+Math.ceil(e/this.__itemHeight)},onScroll(){this.scrollTop=this.$el.scrollTop,this.first=this.getFirst(),this.last=this.getLast(this.first)}},render(r){const e=r("div",{staticClass:"v-virtual-scroll__container",style:{height:ge(this.items.length*this.__itemHeight)}},this.getChildren());return r("div",{staticClass:"v-virtual-scroll",style:this.measurableStyles,directives:[{name:"scroll",modifiers:{self:!0},value:this.onScroll}],on:this.$listeners},[e])}}),pe=(r,e)=>{if(!b.$socket){ye.warn("Socket emit denied, socket not ready.",r,e);return}b.$socket.emit(r,e)},F={async machineServicesRestart(r){const e=tt.onServiceRestart;pe("machine.services.restart",{dispatch:"void",params:{service:r},wait:e})},async machineServicesStart(r){const e=tt.onServiceStart;pe("machine.services.start",{dispatch:"void",params:{service:r},wait:e})},async machineServicesStop(r){const e=tt.onServiceStop;pe("machine.services.stop",{dispatch:"void",params:{service:r},wait:e})},async machineReboot(){pe("machine.reboot",{dispatch:"void"})},async machineShutdown(){pe("machine.shutdown",{dispatch:"void"})},async machineUpdateStatus(r=!1){pe("machine.update.status",{dispatch:"version/onUpdateStatus",params:{refresh:r},wait:tt.onVersionRefresh})},async machineUpdateRefresh(r){pe("machine.update.refresh",{dispatch:"version/onUpdateStatus",params:{name:r},wait:tt.onVersionRefresh})},async machineUpdateRecover(r,e=!1){pe("machine.update.recover",{dispatch:r==="moonraker"?"version/onUpdatedMoonraker":r==="klipper"?"version/onUpdatedKlipper":"version/onUpdatedClient",params:{name:r,hard:e}})},async machineUpdateMoonraker(){pe("machine.update.moonraker",{dispatch:"version/onUpdatedMoonraker"})},async machineUpdateKlipper(){pe("machine.update.klipper",{dispatch:"version/onUpdatedKlipper",params:{include_deps:!0}})},async machineUpdateClient(r){pe("machine.update.client",{dispatch:r==="fluidd"?"version/onUpdatedFluidd":"version/onUpdatedClient",params:{name:r}})},async machineUpdateSystem(){pe("machine.update.system",{dispatch:"version/onUpdatedSystem"})},async machineUpdateAll(){pe("machine.update.full",{dispatch:"version/onUpdatedAll"})},async machineProcStats(){pe("machine.proc_stats",{dispatch:"server/onMachineProcStats"})},async machineSystemInfo(){pe("machine.system_info",{dispatch:"server/onMachineSystemInfo"})},async machineDevicePowerDevices(){pe("machine.device_power.devices",{dispatch:"power/onInit"})},async machineDevicePowerStatus(r){pe("machine.device_power.status",{dispatch:"power/onStatus",params:{[r]:null}})},async machineDevicePowerToggle(r,e,t){pe(e==="on"?"machine.device_power.on":"machine.device_power.off",{dispatch:"power/onToggle",params:{[r]:null},wait:t})},async machinePeripheralsUsb(){pe("machine.peripherals.usb",{dispatch:"server/onMachinePeripherals",wait:tt.onMachinePeripheralsUsb})},async machinePeripheralsSerial(){pe("machine.peripherals.serial",{dispatch:"server/onMachinePeripherals",wait:tt.onMachinePeripheralsSerial})},async machinePeripheralsVideo(){pe("machine.peripherals.video",{dispatch:"server/onMachinePeripherals",wait:tt.onMachinePeripheralsVideo})},async machinePeripheralsCanbus(r){const e=`${tt.onMachinePeripheralsCanbus}/${r}`;pe("machine.peripherals.canbus",{dispatch:"server/onMachinePeripheralsCanbus",params:{interface:r},wait:e})},async machineTimelapseSetSettings(r,e){pe("machine.timelapse.post_settings",{dispatch:"timelapse/onSettings",params:r,wait:e})},async machineTimelapseSaveFrames(r){pe("machine.timelapse.saveframes",{wait:r})},async machineTimelapseRender(){pe("machine.timelapse.render",{})},async printerInfo(){pe("printer.info",{dispatch:"printer/onPrinterInfo"})},async printerRestart(){pe("printer.restart",{dispatch:"void",wait:tt.onKlipperRestart})},async printerFirmwareRestart(){pe("printer.firmware_restart",{dispatch:"void",wait:tt.onKlipperFirmwareRestart})},async printerQueryEndstops(){pe("printer.query_endstops.status",{dispatch:"printer/onQueryEndstops",wait:tt.onQueryEndstops})},async printerObjectsList(){pe("printer.objects.list",{dispatch:"printer/onPrinterObjectsList"})},async printerObjectsSubscribe(r){pe("printer.objects.subscribe",{dispatch:"printer/onPrinterObjectsSubscribe",params:{objects:r}})},async printerPrintStart(r){pe("printer.print.start",{dispatch:"void",params:{filename:r}})},async printerPrintCancel(){pe("printer.print.cancel",{dispatch:"printer/onPrintCancel",wait:tt.onPrintCancel})},async printerPrintPause(){pe("printer.print.pause",{dispatch:"printer/onPrintPause",wait:tt.onPrintPause})},async printerPrintResume(){pe("printer.print.resume",{dispatch:"printer/onPrintResume",wait:tt.onPrintResume})},async printerGcodeScript(r,e){pe("printer.gcode.script",{dispatch:"console/onGcodeScript",params:{script:r},wait:e})},async printerGcodeHelp(){pe("printer.gcode.help",{dispatch:"console/onGcodeHelp"})},async printerEmergencyStop(){pe("printer.emergency_stop",{dispatch:"void"})},async serverInfo(){pe("server.info",{dispatch:"server/onServerInfo"})},async identify(r){pe("server.connection.identify",{dispatch:"socket/onConnectionId",params:r})},async timelapseState(){pe("machine.timelapse.get_settings",{dispatch:"timelapse/onSettings"}),pe("machine.timelapse.lastframeinfo",{dispatch:"timelapse/onLastFrame"})},async serverConfig(){pe("server.config",{dispatch:"server/onServerConfig"})},async serverWrite(r,e,t=he.MOONRAKER_DB.fluidd.NAMESPACE){pe("server.database.post_item",{params:{namespace:t,key:r,value:e}})},async serverDelete(r,e=he.MOONRAKER_DB.fluidd.NAMESPACE){pe("server.database.delete_item",{params:{namespace:e,key:r}})},async serverRead(r,e=he.MOONRAKER_DB.fluidd.NAMESPACE){pe("server.database.get_item",{dispatch:"socket/onServerRead",params:{namespace:e,key:r}})},async serverRestart(){pe("server.restart",{dispatch:"void"})},async serverTemperatureStore(){pe("server.temperature_store",{dispatch:"charts/initTempStore",params:{include_monitors:!0}})},async serverGcodeStore(){pe("server.gcode_store",{dispatch:"console/onGcodeStore"})},async serverHistoryList(r){pe("server.history.list",{dispatch:"history/onHistoryList",params:r})},async serverHistoryTotals(){pe("server.history.totals",{dispatch:"history/onHistoryTotals"})},async serverHistoryDeleteJob(r){pe("server.history.delete_job",{dispatch:"history/onDelete",params:r==="all"?{all:!0}:{uid:r}})},async serverHistoryResetTotals(){pe("server.history.reset_totals",{dispatch:"history/onHistoryChange"})},async serverJobQueueStatus(){pe("server.job_queue.status",{dispatch:"jobQueue/onJobQueueStatus",wait:tt.onJobQueue})},async serverJobQueuePostJob(r,e){pe("server.job_queue.post_job",{dispatch:"jobQueue/onJobQueueStatus",params:{filenames:r,reset:e},wait:tt.onJobQueue})},async serverJobQueueDeleteJobs(r){const e=r.length>0&&r[0]==="all"?{all:!0}:{job_ids:r};pe("server.job_queue.delete_job",{dispatch:"jobQueue/onJobQueueStatus",params:e,wait:tt.onJobQueue})},async serverJobQueuePause(){pe("server.job_queue.pause",{dispatch:"jobQueue/onJobQueueStatus",wait:tt.onJobQueue})},async serverJobQueueStart(){pe("server.job_queue.start",{dispatch:"jobQueue/onJobQueueStatus",wait:tt.onJobQueue})},async serverFilesMetadata(r){pe("server.files.metadata",{dispatch:"files/onFileMetaData",params:{filename:r}})},async serverFilesMetascan(r){pe("server.files.metascan",{dispatch:"files/onFileMetaData",params:{filename:r}})},async serverFilesGetDirectory(r,e){const t=`${tt.onFileSystem}/${r}/${e}/`;pe("server.files.get_directory",{dispatch:"files/onServerFilesGetDirectory",wait:t,params:{root:r,path:e,extended:!0}})},async serverFilesListRoot(r){const e=`${tt.onFileSystem}/${r}/`;pe("server.files.list",{dispatch:"files/onServerFilesListRoot",wait:e,params:{root:r}})},async serverFilesMove(r,e){const t=`${tt.onFileSystem}/${r}/`;pe("server.files.move",{dispatch:"void",wait:t,params:{source:r,dest:e}})},async serverFilesCopy(r,e){const t=`${tt.onFileSystem}/${r}/`;pe("server.files.copy",{dispatch:"void",wait:t,params:{source:r,dest:e}})},async serverFilesZip(r,e,t){const s=`${tt.onFileSystem}/${r}/`;pe("server.files.zip",{dispatch:"void",wait:s,params:{dest:r,items:e,store_only:t}})},async serverFilesPostDirectory(r){const e=`${tt.onFileSystem}/${r}/`;pe("server.files.post_directory",{dispatch:"void",wait:e,params:{path:r}})},async serverFilesDeleteFile(r){const e=`${tt.onFileSystem}/${r}/`;pe("server.files.delete_file",{dispatch:"void",wait:e,params:{path:r}})},async serverFilesDeleteDirectory(r,e=!1){const t=`${tt.onFileSystem}/${r}/`;pe("server.files.delete_directory",{dispatch:"void",wait:t,params:{path:r,force:e}})},async serverAnnouncementsList(){pe("server.announcements.list",{dispatch:"announcements/onAnnouncementsList"})},async serverAnnouncementsDismiss(r,e){pe("server.announcements.dismiss",{dispatch:"void",params:{entry_id:r,wake_time:e}})},async serverLogsRollover(r){pe("server.logs.rollover",{dispatch:"server/onLogsRollOver",params:{application:r}})},async serverWebcamsList(){pe("server.webcams.list",{dispatch:"webcams/onWebcamsList"})},async serverWebcamsWrite(r){pe("server.webcams.post_item",{params:r})},async serverWebcamsDelete(r){pe("server.webcams.delete_item",{params:{uid:r}})},async serverSensorsList(){pe("server.sensors.list",{dispatch:"sensors/onSensorsList"})},async serverSpoolmanGetSpoolId(){pe("server.spoolman.get_spool_id",{dispatch:"spoolman/onActiveSpool"})},async serverSpoolmanPostSpoolId(r){pe("server.spoolman.post_spool_id",{params:{spool_id:r},dispatch:"spoolman/onActiveSpool"})},async serverSpoolmanProxyGetAvailableSpools(){pe("server.spoolman.proxy",{params:{request_method:"GET",path:"/v1/spool",use_v2_response:!0},dispatch:"spoolman/onAvailableSpools"})}};var aG=Object.defineProperty,oG=Object.getOwnPropertyDescriptor,lG=(r,e,t,s)=>{for(var n=s>1?void 0:s?oG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&aG(e,t,n),n};let X=class extends b{get authenticated(){return this.$store.getters["auth/getAuthenticated"]}get socketConnected(){return this.$store.getters["socket/getConnectionState"]}get apiConnected(){return this.$store.getters["socket/getApiConnected"]}get socketConnecting(){return this.$store.getters["socket/getConnectingState"]}get klippyReady(){return this.$store.getters["printer/getKlippyReady"]}get klippyConnected(){return this.$store.getters["printer/getKlippyConnected"]}get hasWarnings(){return this.$store.getters["printer/getHasWarnings"]}get klippyState(){return this.$store.getters["printer/getKlippyState"]}get klippyStateMessage(){return this.$store.getters["printer/getKlippyStateMessage"]}get printerState(){return this.$store.getters["printer/getPrinterState"]}get printerBusy(){const r=this.printerState.toLowerCase();return r==="printing"||r==="paused"||r==="busy"}get printerPaused(){return this.printerState.toLowerCase()==="paused"}get printerPrinting(){return this.printerState.toLowerCase()==="printing"}hasWait(r){return this.$store.getters["wait/hasWait"](r)}get hasWaits(){return this.$store.getters["wait/hasWaits"]}hasWaitsBy(r){return this.$store.getters["wait/hasWaitsBy"](r)}sendGcode(r,e){F.printerGcodeScript(r,e),this.addConsoleEntry(r)}addConsoleEntry(r){this.$store.dispatch("console/onAddConsoleEntry",{message:r,type:"command"})}async emergencyStop(){(!this.$store.state.config.uiSettings.general.confirmOnEstop||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_emergency_stop"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))&&F.printerEmergencyStop()}async cancelPrint(){await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_cancel_print"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&(F.printerPrintCancel(),this.addConsoleEntry("CANCEL_PRINT"))}pausePrint(){F.printerPrintPause(),this.addConsoleEntry("PAUSE")}resumePrint(){F.printerPrintResume(),this.addConsoleEntry("RESUME")}homeAll(){this.sendGcode("G28",this.$waits.onHomeAll)}};X=lG([L],X);var cG=Object.defineProperty,uG=Object.getOwnPropertyDescriptor,dG=(r,e,t,s)=>{for(var n=s>1?void 0:s?uG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&cG(e,t,n),n};let Kv=class extends b{get classes(){if(this.$attrs.fab===void 0&&this.$attrs.icon===void 0&&this.$attrs.outlined===void 0&&this.$attrs.text===void 0&&this.$attrs.color==="primary")return{"grey--text text--darken-3":!this.colorIsDark}}get colorIsDark(){var e;const r=((e=this.$vuetify.theme.currentTheme[this.$attrs.color])==null?void 0:e.toString())??"";return this.$filters.isColorDark(r)}get attrs(){let r=this.$attrs;return r.color===void 0&&(r={...r,color:"btncolor"}),r}};Kv=dG([L({})],Kv);var pG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Fe,e._g(e._b({class:e.classes},"v-btn",e.attrs,!1),e.$listeners),[e._t("default")],2)},hG=[],fG=A(Kv,pG,hG,!1,null,null);const M=fG.exports;var mG=Object.defineProperty,gG=Object.getOwnPropertyDescriptor,Vm=(r,e,t,s)=>{for(var n=s>1?void 0:s?gG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&mG(e,t,n),n};let Ko=class extends b{constructor(){super(...arguments);f(this,"collapsedModel");f(this,"enabledModel");f(this,"inLayout")}};Vm([ji("collapsed",{type:Boolean})],Ko.prototype,"collapsedModel",2);Vm([ji("enabled",{type:Boolean,default:!0})],Ko.prototype,"enabledModel",2);Vm([$({type:Boolean})],Ko.prototype,"inLayout",2);Ko=Vm([L({})],Ko);var vG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.inLayout?e._e():t(M,{staticClass:"ml-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){e.collapsedModel=!e.collapsedModel}}},[t(w,{class:{"rotate-180":e.collapsedModel}},[e._v(" $chevronUp ")])],1),t(Ur,[e.inLayout?t(ar,{staticClass:"mt-0 pt-0",attrs:{"hide-details":""},model:{value:e.enabledModel,callback:function(s){e.enabledModel=s},expression:"enabledModel"}}):e._e(),e.inLayout?t(w,{staticClass:"handle",attrs:{left:""}},[e._v(" $drag ")]):e._e()],1)],1)},_G=[],yG=A(Ko,vG,_G,!1,null,"46c53106");const bG=yG.exports;var $G=Object.defineProperty,SG=Object.getOwnPropertyDescriptor,zi=(r,e,t,s)=>{for(var n=s>1?void 0:s?SG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&$G(e,t,n),n};let Sn=class extends b{constructor(){super(...arguments);f(this,"tooltip");f(this,"type");f(this,"top");f(this,"bottom");f(this,"left");f(this,"right");f(this,"small")}};zi([$({type:String})],Sn.prototype,"tooltip",2);zi([$({type:String,default:"primary"})],Sn.prototype,"type",2);zi([$({type:Boolean})],Sn.prototype,"top",2);zi([$({type:Boolean})],Sn.prototype,"bottom",2);zi([$({type:Boolean})],Sn.prototype,"left",2);zi([$({type:Boolean})],Sn.prototype,"right",2);zi([$({type:Boolean})],Sn.prototype,"small",2);Sn=zi([L({})],Sn);var wG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Oe,{attrs:{bottom:e.bottom,top:e.top,left:e.left,right:e.right},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(w,e._g(e._b({staticClass:"ml-2",attrs:{color:e.type,small:e.small}},"v-icon",n,!1),s),[e._v(" "+e._s(e.type==="error"||e.type==="warning"?"$warning":"$help")+" ")])]}}])},[e._t("default",function(){return[t("span",{domProps:{innerHTML:e._s(e.tooltip)}})]})],2)},xG=[],CG=A(Sn,wG,xG,!1,null,null);const Nm=CG.exports;var PG=Object.defineProperty,LG=Object.getOwnPropertyDescriptor,pr=(r,e,t,s)=>{for(var n=s>1?void 0:s?LG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&PG(e,t,n),n};let Yt=class extends b{constructor(){super(...arguments);f(this,"title");f(this,"helpTooltip");f(this,"color");f(this,"subTitle");f(this,"layoutPath");f(this,"lazy");f(this,"icon");f(this,"loading");f(this,"draggable");f(this,"collapsable");f(this,"rounded");f(this,"height");f(this,"menuBreakpoint");f(this,"cardClasses");f(this,"contentClasses");f(this,"baseCardClasses",{"collapsable-card":!0});f(this,"baseContentClasses",{"overflow-hidden":!0})}get _cardClasses(){const e={};return this.cardClasses&&this.cardClasses.split(" ").forEach(t=>{e[t]=!0}),{...e,...this.baseCardClasses,collapsed:(this.isCollapsed||!this.hasDefaultSlot)&&!this.hasCollapsedContentSlot}}get _contentClasses(){const e={};return this.contentClasses&&this.contentClasses.split(" ").forEach(t=>{e[t]=!0}),{...e,...this.baseContentClasses}}get _contentStyles(){return this.height?`height: calc(${this.height}px - 49px);`:""}get _collapsable(){return this.collapsable&&this.layout?this.collapsable:!1}get _layoutPath(){if(this.layoutPath)if(this.layoutPath.includes(".")){const e=this.layoutPath.split(".");let t=e[0];return t==="dashboard"&&(t=this.$store.getters["layout/getSpecificLayoutName"]),{name:t,id:e[1]}}else throw new Error("invalid layout path")}get layout(){if(this._layoutPath)return this.$store.getters["layout/getConfig"](this._layoutPath.name,this._layoutPath.id)}get menuClasses(){return`d-none d-${this.menuBreakpoint}-flex`}get isLoading(){return this.loading?"primary":!1}get isCollapsed(){return this.collapsable&&this.layout?this.layout.collapsed:!1}set isCollapsed(e){const t=this.layout;t&&this._layoutPath&&(t.collapsed=e,this.$store.dispatch("layout/onUpdateConfig",{name:this._layoutPath.name,value:t}))}isCollapsedChange(e){this.$emit("collapsed",e)}get isEnabled(){return this.layout?this.layout.enabled:!0}set isEnabled(e){const t=this.layout;t&&this._layoutPath&&(t.enabled=e,this.$store.dispatch("layout/onUpdateConfig",{name:this._layoutPath.name,value:t}))}get inLayout(){return this.$store.state.config.layoutMode&&!!this.draggable}get hasDefaultSlot(){return!!this.$slots.default||!!this.$scopedSlots.default}get hasTitleSlot(){return!!this.$slots.title||!!this.$scopedSlots.title}get hasSubTitleSlot(){return!!this.$slots["sub-title"]||!!this.$scopedSlots["sub-title"]}get hasCollapseButtonSlot(){return!!this.$slots["collapse-button"]||!!this.$scopedSlots["collapse-button"]}get hasCollapsedContentSlot(){var e;return this.$scopedSlots["collapse-button"]?!0:!!((e=this.$slots["collapsed-content"])!=null&&e.length)}mounted(){this.$emit("collapsed",this.isCollapsed),this.hasCollapseButtonSlot}onCollapseChange(e){this.isCollapsed=e}onLayoutEnabled(e){this.$emit("enabled",e)}transitionEvent(e){e.target instanceof HTMLElement&&e.target.id==="card-content"&&this.$emit("transition-end")}};pr([$({type:String,required:!0})],Yt.prototype,"title",2);pr([$({type:String})],Yt.prototype,"helpTooltip",2);pr([$({type:String})],Yt.prototype,"color",2);pr([$({type:String})],Yt.prototype,"subTitle",2);pr([$({type:String})],Yt.prototype,"layoutPath",2);pr([$({type:Boolean,default:!0})],Yt.prototype,"lazy",2);pr([$({type:String,required:!0})],Yt.prototype,"icon",2);pr([$({type:Boolean})],Yt.prototype,"loading",2);pr([$({type:Boolean})],Yt.prototype,"draggable",2);pr([$({type:Boolean,default:!0})],Yt.prototype,"collapsable",2);pr([$({type:String,default:"md"})],Yt.prototype,"rounded",2);pr([$({type:[Number,String]})],Yt.prototype,"height",2);pr([$({type:String,default:"lg"})],Yt.prototype,"menuBreakpoint",2);pr([$({type:String})],Yt.prototype,"cardClasses",2);pr([$({type:String})],Yt.prototype,"contentClasses",2);pr([Ae("isCollapsed")],Yt.prototype,"isCollapsedChange",1);Yt=pr([L({})],Yt);var AG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ie,{class:e._cardClasses,attrs:{rounded:e.rounded,loading:e.isLoading,color:e.color}},[t(jr,{staticClass:"collapsable-card-title card-heading",class:{draggable:e.inLayout}},[t(te,{staticClass:"flex-nowrap",attrs:{"no-gutters":""}},[t(I,{staticClass:"text-no-wrap",attrs:{"align-self":"center"}},[e._t("title",function(){return[t(w,{attrs:{left:""}},[e._v(" "+e._s(e.icon)+" ")]),t("span",{staticClass:"font-weight-light"},[e._v(e._s(e.title))]),!e.inLayout&&e.helpTooltip?t(Nm,{attrs:{bottom:"",small:"",tooltip:e.helpTooltip}}):e._e()]},{inLayout:e.inLayout})],2),e.inLayout?e._e():t(I,{attrs:{cols:"auto","align-self":"center"}},[e._t("menu")],2),t(I,{attrs:{cols:"auto","align-self":"center"}},[e._t("collapse-button",function(){return[e._collapsable||e.inLayout?t(bG,{attrs:{collapsed:e.isCollapsed,enabled:e.isEnabled,"in-layout":e.inLayout},on:{"update:collapsed":function(s){e.isCollapsed=s},"update:enabled":function(s){e.isEnabled=s}}}):e._e()]})],2)],1)],1),t(Zc,[t("div",{directives:[{name:"show",rawName:"v-show",value:e.isCollapsed&&!e.inLayout,expression:"isCollapsed && !inLayout"}]},[e._t("collapsed-content")],2)]),e.lazy?t(Zc,[t("div",{directives:[{name:"show",rawName:"v-show",value:!e.isCollapsed&&!e.inLayout,expression:"!isCollapsed && !inLayout"}],class:e._contentClasses,style:e._contentStyles,attrs:{id:"card-content"},on:{transitionend:e.transitionEvent}},[e.subTitle||e.hasSubTitleSlot?[t(aa,{staticClass:"py-2"},[e._t("subTitle",function(){return[t("span",{domProps:{innerHTML:e._s(e.subTitle)}})]})],2),t(R)]:e._e(),e._t("default")],2)]):t(Zc,[!e.isCollapsed&&!e.inLayout?t("div",{class:e._contentClasses,style:e._contentStyles,attrs:{id:"card-content"},on:{transitionend:e.transitionEvent}},[e.subTitle||e.hasSubTitleSlot?[t(aa,{staticClass:"py-2"},[e._t("sub-title",function(){return[t("span",{domProps:{innerHTML:e._s(e.subTitle)}})]})],2),t(R)]:e._e(),e._t("default")],2):e._e()])],1)},EG=[],OG=A(Yt,AG,EG,!1,null,"5854496c");const Xe=OG.exports;var TG=Object.defineProperty,kG=Object.getOwnPropertyDescriptor,wd=(r,e,t,s)=>{for(var n=s>1?void 0:s?kG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&TG(e,t,n),n};let Aa=class extends b{constructor(){super(...arguments);f(this,"collapsed");f(this,"menuIcon");f(this,"size");f(this,"disabled")}get isCollapsed(){return this.collapsed?!0:this.$vuetify.breakpoint.mdAndDown}get hasDefaultSlot(){return!!this.$slots.default}};wd([$({type:Boolean})],Aa.prototype,"collapsed",2);wd([$({type:String,default:"$menu"})],Aa.prototype,"menuIcon",2);wd([$({type:String,default:"x-small"})],Aa.prototype,"size",2);wd([$({type:Boolean})],Aa.prototype,"disabled",2);Aa=wd([L({})],Aa);var DG=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isCollapsed?t(Et,{attrs:{transition:"slide-y-transition",left:"","offset-y":"",disabled:e.disabled,"close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{fab:"","x-small":e.size==="x-small",small:e.size==="small",disabled:e.disabled,text:"",color:""}},"app-btn",n,!1),s),[t(w,[e._v(e._s(e.menuIcon))])],1)]}}])},[t(ut,{staticClass:"pa-2",attrs:{elevation:"0"}},[e._t("default")],2)],1):t("div",{staticClass:"d-inline-block"},[e._t("default")],2)},MG=[],RG=A(Aa,DG,MG,!1,null,"3d2fcecd");const xn=RG.exports,rt={get(r,e){return b.$httpClient.get(r,e)},post(r,e,t){return b.$httpClient.post(r,e,t)},postForm(r,e,t){return b.$httpClient.postForm(r,e,t)},delete(r,e){return b.$httpClient.delete(r,e)},get defaults(){return b.$httpClient.defaults},accessInfoGet(r){return this.get("/access/info",r)},accessRefreshJwtPost(r,e){return this.post("/access/refresh_jwt",{refresh_token:r},e)},accessLoginPost(r,e,t="moonraker",s){return this.post("/access/login",{username:r,password:e,source:t},s)},accessLogoutPost(r){return this.post("access/logout",void 0,r)},accessOneshotTokenGet(r){return this.get("/access/oneshot_token",r)},accessCurrentUserGet(r){return this.get("/access/user",r)},accessUsersListGet(r){return this.get("/access/users/list",r)},accessUserPost(r,e,t){return this.post("/access/user",{username:r,password:e},t)},accessUserDelete(r,e){return this.delete("/access/user",{...e,params:{username:r}})},accessUserPasswordPost(r,e,t){return this.post("/access/user/password",{password:r,new_password:e},t)},accessApiKeyGet(r){return this.get("/access/api_key",r)},accessApiKeyPost(r){return this.post("/access/api_key",void 0,r)},serverDatabaseItemGet(r,e){return this.get(`/server/database/item?namespace=${r}`,e)},serverDatabaseItemPost(r,e,t,s){return this.post("/server/database/item",{namespace:r,key:e,value:t},s)},serverDatabaseItemDelete(r,e,t){return this.delete(`/server/database/item?namespace=${r}&key=${e}`,t)},serverFilesUploadPost(r,e,t,s,n){const i=new FormData;return i.append("file",r,r.name),i.append("path",e),i.append("root",t),s&&i.append("print","true"),this.postForm("/server/files/upload",i,n)},serverFilesGet(r,e){return this.get(`/server/files/${encodeURI(r)}?date=${Date.now()}`,e)}};var IG=Object.defineProperty,FG=Object.getOwnPropertyDescriptor,HG=(r,e,t,s)=>{for(var n=s>1?void 0:s?FG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&IG(e,t,n),n};let dr=class extends b{get apiUrl(){return this.$store.state.config.apiUrl}get isTrustedUser(){var r;return((r=this.$store.getters["auth/getCurrentUser"])==null?void 0:r.username)==="_TRUSTED_USER_"}getThumbUrl(r,e,t,s,n){const i=this.getThumb(r,e,t,s,n);return(i==null?void 0:i.url)??""}getThumb(r,e,t,s=!0,n){var i;if((i=r.thumbnails)!=null&&i.length){const a=r.thumbnails.reduce((o,l)=>o.size>l.size===s?o:l);if(a.relative_path){const o=t?`${e}/${t}`:e;return{...a,url:this.createFileUrl(a.relative_path,o,n)}}}}async getGcode(r){if(r.size/1024/1024<100||await this.$confirm(this.$t("app.gcode.msg.confirm",{filename:r.filename,size:this.$filters.getReadableFileSizeString(r.size)}).toString(),{title:this.$tc("app.general.title.gcode_preview"),color:"card-heading",icon:"$error"})){const s=r.path?`gcodes/${r.path}`:"gcodes";return await this.getFile(r.filename,s,r.size,{responseType:"text",transformResponse:[n=>n]})}}async getFile(r,e,t=0,s){const n=e?`${e}/${r}`:r;try{const i=new AbortController;this.$store.dispatch("files/updateFileDownload",{filepath:n,size:t,loaded:0,percent:0,speed:0,abortController:i});const a=await rt.serverFilesGet(n,{...s,signal:i.signal,onDownloadProgress:o=>{if(i.signal.aborted)return;const l=o.progress??(t>0?o.loaded/t:0),c={filepath:n,loaded:o.loaded,percent:Math.round(l*100),speed:o.rate??0};o.total&&(t=c.size=o.total),this.$store.dispatch("files/updateFileDownload",c)}});return i.abort(),a}finally{this.$store.dispatch("files/removeFileDownload")}}async downloadFile(r,e){try{const t=await this.createFileUrlWithToken(r,e),s=document.createElement("a");s.href=t,s.setAttribute("download",r),s.setAttribute("target","_blank"),document.body.appendChild(s),s.click(),document.body.removeChild(s)}catch{}}createFileUrl(r,e,t){const s=e?`${e}/${r}`:`${r}`;return`${this.apiUrl}/server/files/${encodeURI(s)}?date=${t||Date.now()}`}async createFileUrlWithToken(r,e,t){const s=this.createFileUrl(r,e,t);return this.isTrustedUser?s:`${s}&token=${(await rt.accessOneshotTokenGet()).data.result}`}async uploadFile(r,e,t,s,n){const i=e?`${e}/${r.name}`:r.name;try{const a=new AbortController;this.$store.dispatch("files/updateFileUpload",{filepath:i,size:r.size,loaded:0,percent:0,speed:0,cancelled:!1,abortController:a});const o=await rt.serverFilesUploadPost(r,e,t,s,{...n,signal:a.signal,onUploadProgress:l=>{a.signal.aborted||this.$store.dispatch("files/updateFileUpload",{filepath:i,loaded:l.loaded,percent:l.progress?Math.round(l.progress*100):0,speed:l.rate??0})}});return a.abort(),o}finally{this.$store.dispatch("files/removeFileUpload",i)}}getFullPathAndFile(r,e){return"path"in e?[[r,e.path].filter(t=>!!t).join("/"),e.file]:[r,e]}async uploadFiles(r,e,t,s){for(const n of r){const[i,a]=this.getFullPathAndFile(e,n),o=i?`${i}/${a.name}`:a.name;this.$store.dispatch("files/updateFileUpload",{filepath:o,size:a.size,loaded:0,percent:0,speed:0,unit:"kB",cancelled:!1})}r.length>1&&(s=!1);for(const n of r){const[i,a]=this.getFullPathAndFile(e,n),o=i?`${i}/${a.name}`:a.name,l=this.$store.state.files.uploads.find(c=>c.filepath===o);if(l&&!(l!=null&&l.cancelled))try{await this.uploadFile(a,i,t,s)}catch(c){ye.error("[FileUpload] file",c)}else this.$store.dispatch("files/removeFileUpload",o)}}async getOfficiallFilasList(){return(await this.getFile("officiall_filas_list.cfg","config",0,{responseType:"text",transformResponse:[e=>e]})).data}};dr=HG([L],dr);var BG=Object.defineProperty,jG=Object.getOwnPropertyDescriptor,G6=(r,e,t,s)=>{for(var n=s>1?void 0:s?jG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&BG(e,t,n),n};let Wh=class extends Z(dr){constructor(){super(...arguments);f(this,"job")}get icon(){return{completed:"$checkedCircle",printing:"$inProgress",in_progress:"$inProgress",standby:"$inProgress",cancelled:"$cancelled",interrupted:"$cancelled"}[this.job.status]||"$warning"}get state(){switch(this.job.status){case"cancelled":case"error":case"interrupted":case"server_exit":return"error";case"klippy_shutdown":case"klippy_disconnect":return"warning";case"completed":case"in_progress":case"printing":return"success";default:return"success"}}get inError(){return this.job.status!=="completed"&&this.job.status!=="in_progress"}};G6([$({type:Object,required:!0})],Wh.prototype,"job",2);Wh=G6([L({})],Wh);var VG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("span",[t(Oe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(w,e._g(e._b({staticClass:"mr-1",attrs:{small:"",color:e.job.exists?e.state:"secondary"}},"v-icon",n,!1),s),[e._v(" "+e._s(e.icon)+" ")])]}}])},[t("span",[e._v(e._s(e.job.status))])])],1)},NG=[],zG=A(Wh,VG,NG,!1,null,null);const Sb=zG.exports,UG=r=>r.userAgentData!=null&&"mobile"in r.userAgentData&&typeof r.userAgentData.mobile=="boolean";var WG=Object.defineProperty,GG=Object.getOwnPropertyDescriptor,qG=(r,e,t,s)=>{for(var n=s>1?void 0:s?GG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&WG(e,t,n),n};let lt=class extends b{get isMobileViewport(){return this.$vuetify.breakpoint.mobile}get isMobileUserAgent(){return UG(navigator)?navigator.userAgentData.mobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}};lt=qG([L],lt);var ZG=Object.defineProperty,YG=Object.getOwnPropertyDescriptor,er=(r,e,t,s)=>{for(var n=s>1?void 0:s?YG(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ZG(e,t,n),n};let zt=class extends Z(lt){constructor(){super(...arguments);f(this,"open");f(this,"disabled");f(this,"title");f(this,"helpTooltip");f(this,"subTitle");f(this,"closeButtonDisabled");f(this,"cancelButtonText");f(this,"cancelButtonLoading");f(this,"saveButtonText");f(this,"saveButtonDisabled");f(this,"saveButtonLoading");f(this,"scrollable");f(this,"noActions");f(this,"loading");f(this,"titleShadow");f(this,"validModel");f(this,"form")}get hasSubTitleSlot(){return!!this.$slots["sub-title"]||!!this.$scopedSlots["sub-title"]}validate(){return this.form.validate()}handleCancel(){this.$listeners.cancel?this.$emit("cancel"):this.open=!1}handleSave(){this.validate()&&this.$emit("save")}};er([He({type:Boolean})],zt.prototype,"open",2);er([$({type:Boolean})],zt.prototype,"disabled",2);er([$({type:String})],zt.prototype,"title",2);er([$({type:String})],zt.prototype,"helpTooltip",2);er([$({type:String})],zt.prototype,"subTitle",2);er([$({type:Boolean})],zt.prototype,"closeButtonDisabled",2);er([$({type:String})],zt.prototype,"cancelButtonText",2);er([$({type:Boolean})],zt.prototype,"cancelButtonLoading",2);er([$({type:String})],zt.prototype,"saveButtonText",2);er([$({type:Boolean})],zt.prototype,"saveButtonDisabled",2);er([$({type:Boolean})],zt.prototype,"saveButtonLoading",2);er([$({type:Boolean,default:!0})],zt.prototype,"scrollable",2);er([$({type:Boolean})],zt.prototype,"noActions",2);er([$({type:[Boolean,String]})],zt.prototype,"loading",2);er([$({type:Boolean})],zt.prototype,"titleShadow",2);er([ji("valid",{type:Boolean})],zt.prototype,"validModel",2);er([ke("form")],zt.prototype,"form",2);zt=er([L({})],zt);var KG=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(hb,e._b({attrs:{scrollable:e.scrollable,fullscreen:e.isMobileViewport,transition:e.isMobileViewport?"dialog-bottom-transition":void 0},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},"v-dialog",e.$attrs,!1),[t(Tl,{ref:"form",attrs:{disabled:e.disabled},on:{submit:function(s){return s.preventDefault(),e.handleSave.apply(null,arguments)}},model:{value:e.validModel,callback:function(s){e.validModel=s},expression:"validModel"}},[t(Ie,{class:{"collapsable-card":e.titleShadow},attrs:{loading:e.loading}},[t(jr,{staticClass:"card-heading py-2",class:{"collapsable-card-title":e.titleShadow}},[t(te,{staticClass:"flex-nowrap",attrs:{"no-gutters":""}},[t(I,{staticClass:"text-no-wrap",attrs:{"align-self":"center"}},[e._t("title",function(){return[t("span",{staticClass:"focus--text"},[e._v(e._s(e.title))]),e.helpTooltip?t(Nm,{attrs:{bottom:"",small:"",tooltip:e.helpTooltip}}):e._e()]})],2),t(I,{attrs:{cols:"auto","align-self":"center"}},[e._t("menu")],2),t(I,{attrs:{cols:"auto","align-self":"center"}},[t(Fe,{staticClass:"ml-1",attrs:{fab:"",text:"","x-small":"",disabled:e.closeButtonDisabled},on:{click:function(s){e.open=!1}}},[t(w,[e._v(" $close ")])],1)],1)],1)],1),e.subTitle||e.hasSubTitleSlot?t(aa,{staticClass:"card-heading pb-2 secondary--text"},[e._t("sub-title",function(){return[e._v(" "+e._s(e.subTitle)+" ")]})],2):e._e(),t(R),e._t("default"),e.noActions?e._e():[t(R),t(bd,[e._t("actions",function(){return[t(_t),t(M,{attrs:{color:"warning",text:"",type:"button",loading:e.cancelButtonLoading},on:{click:e.handleCancel}},[e._v(" "+e._s(e.cancelButtonText||e.$t("app.general.btn.cancel"))+" ")]),t(M,{attrs:{color:"primary",type:"submit",loading:e.saveButtonLoading,disabled:e.saveButtonDisabled}},[e._v(" "+e._s(e.saveButtonText||e.$t("app.general.btn.save"))+" ")])]})],2)]],2)],1)],1)},XG=[],QG=A(zt,KG,XG,!1,null,null);const et=QG.exports;var JG=Object.defineProperty,eq=Object.getOwnPropertyDescriptor,q6=(r,e,t,s)=>{for(var n=s>1?void 0:s?eq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&JG(e,t,n),n};let Gh=class extends Z(X){constructor(){super(...arguments);f(this,"open")}get parts(){const e=this.$store.getters["parts/getParts"];return Object.keys(e)}isPartExcluded(e){return this.$store.getters["parts/getIsPartExcluded"](e)}isPartCurrent(e){return this.$store.getters["parts/getIsPartCurrent"](e)}async cancelObject(e){if(await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_exclude_object"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})){const s=e.toUpperCase().replace(/\s/g,"_");this.sendGcode(`EXCLUDE_OBJECT NAME=${s}`)}}};q6([He({type:Boolean})],Gh.prototype,"open",2);Gh=q6([L({})],Gh);var tq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.gcode.label.exclude_object"),"max-width":"500","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(Zt,[t("tbody",e._l(e.parts,function(s){return t("tr",{key:s},[t("td",{staticClass:"partName",class:{"text--disabled":e.isPartExcluded(s),"info--text":e.isPartCurrent(s)}},[e._v(" "+e._s(s)+" ")]),t("td",{staticClass:"actions"},[t(M,{attrs:{color:"","x-small":"",fab:"",text:"",disabled:e.isPartExcluded(s)},on:{click:function(n){return e.cancelObject(s)}}},[t(w,{attrs:{color:"error"}},[e._v(" $cancelled ")])],1)],1)])}),0)])],1)],1)},rq=[],sq=A(Gh,tq,rq,!1,null,"1d621943");const nq=sq.exports;var iq=Object.defineProperty,aq=Object.getOwnPropertyDescriptor,zm=(r,e,t,s)=>{for(var n=s>1?void 0:s?aq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&iq(e,t,n),n};let Xo=class extends b{constructor(){super(...arguments);f(this,"vertical");f(this,"divided");f(this,"elevation")}};zm([$({type:Boolean})],Xo.prototype,"vertical",2);zm([$({type:Boolean})],Xo.prototype,"divided",2);zm([$({type:Number})],Xo.prototype,"elevation",2);Xo=zm([L({})],Xo);var oq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(zU,{staticClass:"app-btn-group",class:{"app-btn-group--vertical":e.vertical,"app-btn-group--divided":e.divided,[`elevation-${e.elevation??2}`]:e.divided||e.elevation}},[e._t("default")],2)},lq=[],cq=A(Xo,oq,lq,!1,null,"9ae06053");const Qo=cq.exports;var uq=Object.defineProperty,dq=Object.getOwnPropertyDescriptor,pq=(r,e,t,s)=>{for(var n=s>1?void 0:s?dq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&uq(e,t,n),n};let Xv=class extends Z(X){get hasLayersFromPrintStats(){const e=this.$store.state.printer.printer.print_stats.info,t=e==null?void 0:e.total_layer,s=e==null?void 0:e.current_layer;return typeof t=="number"&&typeof s=="number"}get hasPauseAtLayerMacros(){return this.$store.getters["macros/getMacroByName"]("set_pause_next_layer","set_pause_at_layer")!=null}get setPrintStatsInfoMacro(){return this.$store.getters["macros/getMacroByName"]("set_print_stats_info")}get hasPrintAtLayerMacros(){var t;if(!this.hasPauseAtLayerMacros)return!1;const e=((t=this.setPrintStatsInfoMacro)==null?void 0:t.variables)??{};return"pause_next_layer"in e&&"pause_at_layer"in e}};Xv=pq([L({})],Xv);var hq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qo,{staticClass:"ms-1 my-1",attrs:{divided:""}},[e.printerPaused?t(M,{attrs:{loading:e.hasWait(e.$waits.onPrintResume),disabled:e.hasWait([e.$waits.onPrintCancel,e.$waits.onPrintResume,e.$waits.onPrintPause]),small:""},on:{click:function(s){return e.$emit("resume")}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $resume ")]),t("span",[e._v(e._s(e.$t("app.general.btn.resume")))])],1):t(M,{attrs:{loading:e.hasWait(e.$waits.onPrintPause),disabled:e.hasWait([e.$waits.onPrintCancel,e.$waits.onPrintResume,e.$waits.onPrintPause]),small:""},on:{click:function(s){return e.$emit("pause")}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $pause ")]),t("span",[e._v(e._s(e.$t("app.general.btn.pause")))])],1),e.hasLayersFromPrintStats&&e.hasPrintAtLayerMacros?t(Et,{attrs:{left:"","offset-y":"",transition:"slide-y-transition"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({staticClass:"px-0",attrs:{small:"","min-width":"24"}},"app-btn",n,!1),s),[t(w,{class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,3929495187)},[t(Mt,{attrs:{dense:""}},[t(we,{on:{click:function(s){return e.$emit("pauseAtLayer")}}},[t(qe,[t(w,[e._v(" $pause ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.label.pause_at_layer"))+" ")])],1)],1)],1)],1):e._e()],1)},fq=[],mq=A(Xv,hq,fq,!1,null,null);const gq=mq.exports;var vq=Object.defineProperty,_q=Object.getOwnPropertyDescriptor,Dl=(r,e,t,s)=>{for(var n=s>1?void 0:s?_q(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&vq(e,t,n),n};let Ei=class extends b{constructor(){super(...arguments);f(this,"title");f(this,"subTitle");f(this,"help");f(this,"accentColor");f(this,"rCols")}get cols(){return[12-this.rCols,this.rCols]}get hasClick(){return this.$listeners&&this.$listeners.click}get hasSubTitle(){return this.$slots["sub-title"]||this.$scopedSlots["sub-title"]||this.subTitle}};Dl([$({type:String,default:""})],Ei.prototype,"title",2);Dl([$({type:String})],Ei.prototype,"subTitle",2);Dl([$({type:String})],Ei.prototype,"help",2);Dl([$({type:String})],Ei.prototype,"accentColor",2);Dl([$({type:Number,default:6})],Ei.prototype,"rCols",2);Ei=Dl([L({})],Ei);var yq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,e._g(e._b({staticClass:"app-setting-control",class:{"sc-link":e.hasClick},attrs:{"no-gutters":""}},"v-row",e.$attrs,!1),e.$listeners),[e.accentColor?t("div",{staticClass:"sc-color",style:{"background-color":e.accentColor}}):e._e(),t(I,{staticClass:"sc-label text-body-1 pr-0 pr-sm-3 pb-0 pb-sm-3",attrs:{cols:"12",sm:e.cols[0],"align-self":"center"}},[e._t("title",function(){return[e._v(" "+e._s(e.title)+" ")]}),e.hasSubTitle?t("div",{staticClass:"text-body-2 secondary--text"},[e._t("sub-title",function(){return[e._v(" "+e._s(e.subTitle)+" ")]})],2):e._e()],2),t(I,{staticClass:"sc-content py-3",attrs:{cols:"12",sm:e.cols[1],"align-self":"center"}},[e._t("default")],2)],1)},bq=[],$q=A(Ei,yq,bq,!1,null,"f2ce9030");const B=$q.exports;var Sq=Object.defineProperty,wq=Object.getOwnPropertyDescriptor,Z6=(r,e,t,s)=>{for(var n=s>1?void 0:s?wq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Sq(e,t,n),n};let qh=class extends Z(X){constructor(){super(...arguments);f(this,"open");f(this,"pauseNextLayer",{enable:!1,call:"PAUSE"});f(this,"pauseAtLayer",{enable:!1,call:"PAUSE",layer:0})}get setPauseNextLayerMacro(){return this.$store.getters["macros/getMacroByName"]("set_pause_next_layer")}get setPauseAtLayerMacro(){return this.$store.getters["macros/getMacroByName"]("set_pause_at_layer")}get setPrintStatsInfoMacro(){return this.$store.getters["macros/getMacroByName"]("set_print_stats_info")}get printStatsMacroVariables(){var s;return((s=this.setPrintStatsInfoMacro)==null?void 0:s.variables)??{}}get currentLayer(){var t;return((t=this.$store.state.printer.printer.print_stats.info)==null?void 0:t.current_layer)??0}get totalLayers(){var t;return((t=this.$store.state.printer.printer.print_stats.info)==null?void 0:t.total_layer)??0}sendAccept(){const t=[];this.setPauseNextLayerMacro&&(this.pauseNextLayer.enable?t.push(`SET_PAUSE_NEXT_LAYER ENABLE=1 MACRO="${this.pauseNextLayer.call}"`):t.push("SET_PAUSE_NEXT_LAYER ENABLE=0")),this.setPauseAtLayerMacro&&(this.pauseAtLayer.enable?t.push(`SET_PAUSE_AT_LAYER ENABLE=1 LAYER=${this.pauseAtLayer.layer} MACRO="${this.pauseAtLayer.call}"`):t.push("SET_PAUSE_AT_LAYER ENABLE=0")),this.sendGcode(t.join(`
`)),this.open=!1}mounted(){const{pause_at_layer:t,pause_next_layer:s}=this.printStatsMacroVariables;this.pauseNextLayer={...this.pauseNextLayer,...s},this.pauseAtLayer={...this.pauseAtLayer,...t}}};Z6([He({type:Boolean})],qh.prototype,"open",2);qh=Z6([L({})],qh);var xq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.general.label.pause_at_layer"),"max-width":"450","save-button-text":e.$t("app.general.btn.accept")},on:{save:e.sendAccept},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[e.setPauseNextLayerMacro?[t(B,{attrs:{title:e.$t("app.general.label.pause_at_next_layer")}},[t(Ce,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.pauseNextLayer.enable,callback:function(s){e.$set(e.pauseNextLayer,"enable",s)},expression:"pauseNextLayer.enable"}})],1),e.pauseNextLayer.enable?[t(R),t(B,{attrs:{title:e.$t("app.general.label.command")}},[t(cn,{attrs:{items:["PAUSE","M600"],"hide-details":"auto",filled:"",dense:""},model:{value:e.pauseNextLayer.call,callback:function(s){e.$set(e.pauseNextLayer,"call",s)},expression:"pauseNextLayer.call"}})],1)]:e._e()]:e._e(),e.setPauseNextLayerMacro&&e.setPauseAtLayerMacro?t(R):e._e(),e.setPauseAtLayerMacro?[t(B,{attrs:{title:e.$t("app.general.label.pause_at_layer_number")}},[t(Ce,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.pauseAtLayer.enable,callback:function(s){e.$set(e.pauseAtLayer,"enable",s)},expression:"pauseAtLayer.enable"}})],1),e.pauseAtLayer.enable?[t(R),t(B,{attrs:{title:e.$t("app.general.label.layer")}},[t(ae,{attrs:{type:"number",rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(e.currentLayer),e.$rules.numberLessThanOrEqual(e.totalLayers)],"hide-details":"auto",filled:"",dense:""},model:{value:e.pauseAtLayer.layer,callback:function(s){e.$set(e.pauseAtLayer,"layer",s)},expression:"pauseAtLayer.layer"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.command")}},[t(cn,{attrs:{items:["PAUSE","M600"],"hide-details":"auto",filled:"",dense:""},model:{value:e.pauseAtLayer.call,callback:function(s){e.$set(e.pauseAtLayer,"call",s)},expression:"pauseAtLayer.call"}})],1)]:e._e()]:e._e()],2)],1)},Cq=[],Pq=A(qh,xq,Cq,!1,null,null);const Lq=Pq.exports;var Aq=Object.defineProperty,Eq=Object.getOwnPropertyDescriptor,Oq=(r,e,t,s)=>{for(var n=s>1?void 0:s?Eq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Aq(e,t,n),n};let Qv=class extends Z(X){constructor(){super(...arguments);f(this,"showExcludeObjectDialog",!1);f(this,"showPauseAtLayerDialog",!1)}get filename(){return this.$store.state.printer.printer.print_stats.filename}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}get hasParts(){return Object.keys(this.$store.getters["parts/getParts"]).length>0}resetFile(){this.sendGcode("SDCARD_RESET_FILE")}};Qv=Oq([L({components:{PauseResumeBtn:gq,PauseAtLayerDialog:Lq,JobHistoryItemStatus:Sb,ExcludeObjectsDialog:nq}})],Qv);var Tq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(xn,[e.printerPrinting||e.printerPaused?t(M,{staticClass:"ms-1 my-1",attrs:{loading:e.hasWait(e.$waits.onPrintCancel),disabled:e.hasWait([e.$waits.onPrintCancel,e.$waits.onPrintResume,e.$waits.onPrintPause]),small:""},on:{click:e.cancelPrint}},[t(w,{attrs:{small:"",left:""}},[e._v(" $cancelled ")]),t("span",[e._v(e._s(e.$t("app.general.btn.cancel")))])],1):e._e(),e.printerPrinting||e.printerPaused?t("pause-resume-btn",{on:{pause:e.pausePrint,resume:e.resumePrint,pauseAtLayer:function(s){e.showPauseAtLayerDialog=!0}}}):e._e(),!e.printerPrinting&&!e.printerPaused&&e.filename?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:function(s){return e.resetFile()}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $refresh ")]),t("span",[e._v(e._s(e.$t("app.general.btn.reset_file")))])],1):e._e(),!e.supportsHistoryComponent&&!e.printerPrinting&&!e.printerPaused&&e.filename?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:function(s){return e.$emit("print",e.filename)}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $reprint ")]),t("span",[e._v(e._s(e.$t("app.general.btn.reprint")))])],1):e._e()],1),e.printerPrinting||e.printerPaused?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{disabled:!e.hasParts,color:"",fab:"","x-small":"",text:""},on:{click:function(i){e.showExcludeObjectDialog=!0}}},"app-btn",n,!1),s),[t(w,[e._v("$listStatus")])],1)]}}],null,!1,1862450976)},[t("span",[e._v(e._s(e.$t("app.gcode.label.exclude_object")))])]):e._e(),e.showExcludeObjectDialog?t("exclude-objects-dialog",{model:{value:e.showExcludeObjectDialog,callback:function(s){e.showExcludeObjectDialog=s},expression:"showExcludeObjectDialog"}}):e._e(),e.showPauseAtLayerDialog?t("pause-at-layer-dialog",{model:{value:e.showPauseAtLayerDialog,callback:function(s){e.showPauseAtLayerDialog=s},expression:"showPauseAtLayerDialog"}}):e._e()],1)},kq=[],Dq=A(Qv,Tq,kq,!1,null,null);const Mq=Dq.exports;var Rq=Object.defineProperty,Iq=Object.getOwnPropertyDescriptor,wb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Iq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Rq(e,t,n),n};let vu=class extends Z(X){constructor(){super(...arguments);f(this,"label");f(this,"labelWidth")}};wb([$({type:String,required:!0})],vu.prototype,"label",2);wb([$({type:[String,Number],default:"70px"})],vu.prototype,"labelWidth",2);vu=wb([L({})],vu);var Fq=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ur,{attrs:{"align-center":""}},[t("span",{staticClass:"label body-2 secondary--text",style:`width: ${e.labelWidth}; min-width: ${e.labelWidth};`,domProps:{innerHTML:e._s(e.label)}}),t("span",{staticClass:"value"},[e._t("default")],2),e.$slots.default?e._e():t("span",{staticClass:"value"},[e._v("--")])])},Hq=[],Bq=A(vu,Fq,Hq,!1,null,"984c6540");const Y6=Bq.exports;var jq=Object.defineProperty,Vq=Object.getOwnPropertyDescriptor,Nq=(r,e,t,s)=>{for(var n=s>1?void 0:s?Vq(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&jq(e,t,n),n};let Ut=class extends b{get hasExtruder(){return this.$store.getters["printer/getHasExtruder"]}get hasMultipleExtruders(){return this.$store.getters["printer/getHasMultipleExtruders"]}get activeExtruder(){return this.$store.getters["printer/getActiveExtruder"]}get extruderReady(){const r=this.activeExtruder;return(r==null?void 0:r.can_extrude)??(r!==void 0&&r.temperature>=0&&r.min_extrude_temp>=0&&r.temperature>=r.min_extrude_temp)}get filamentDiameter(){var r,e;return((e=(r=this.activeExtruder)==null?void 0:r.config)==null?void 0:e.filament_diameter)||1.75}get nozzleDiameter(){var r,e;return((e=(r=this.activeExtruder)==null?void 0:r.config)==null?void 0:e.nozzle_diameter)||.4}get maxExtrudeSpeed(){var r,e;return((e=(r=this.activeExtruder)==null?void 0:r.config)==null?void 0:e.max_extrude_only_velocity)||500}get maxExtrudeLength(){var r,e;return((e=(r=this.activeExtruder)==null?void 0:r.config)==null?void 0:e.max_extrude_only_distance)||50}get allHomed(){return this.$store.getters["printer/getHomedAxes"]("xyz")}get xyHomed(){return this.$store.getters["printer/getHomedAxes"]("xy")}get xHomed(){return this.$store.getters["printer/getHomedAxes"]("x")}get yHomed(){return this.$store.getters["printer/getHomedAxes"]("y")}get zHomed(){return this.$store.getters["printer/getHomedAxes"]("z")}get xHasMultipleSteppers(){return!!this.$store.getters["printer/getPrinterSettings"]("stepper_x1")}get yHasMultipleSteppers(){return!!this.$store.getters["printer/getPrinterSettings"]("stepper_y1")}get zHasMultipleSteppers(){return!!this.$store.getters["printer/getPrinterSettings"]("stepper_z1")}get hasHomingOverride(){return this.$store.getters["printer/getHasHomingOverride"]}get isManualProbeActive(){return this.$store.getters["printer/getIsManualProbeActive"]}get isBedScrewsAdjustActive(){return this.$store.getters["printer/getIsBedScrewsAdjustActive"]}get hasScrewsTiltAdjustResults(){return this.$store.getters["printer/getHasScrewsTiltAdjustResults"]}};Ut=Nq([L],Ut);function xb(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let eo=xb();function K6(r){eo=r}const X6=/[&<>"']/,zq=new RegExp(X6.source,"g"),Q6=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Uq=new RegExp(Q6.source,"g"),Wq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Dw=r=>Wq[r];function es(r,e){if(e){if(X6.test(r))return r.replace(zq,Dw)}else if(Q6.test(r))return r.replace(Uq,Dw);return r}const Gq=/(^|[^\[])\^/g;function pt(r,e){let t=typeof r=="string"?r:r.source;e=e||"";const s={replace:(n,i)=>{let a=typeof i=="string"?i:i.source;return a=a.replace(Gq,"$1"),t=t.replace(n,a),s},getRegex:()=>new RegExp(t,e)};return s}function Mw(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const Xc={exec:()=>null};function Rw(r,e){const t=r.replace(/\|/g,(i,a,o)=>{let l=!1,c=a;for(;--c>=0&&o[c]==="\\";)l=!l;return l?"|":" |"}),s=t.split(/ \|/);let n=0;if(s[0].trim()||s.shift(),s.length>0&&!s[s.length-1].trim()&&s.pop(),e)if(s.length>e)s.splice(e);else for(;s.length<e;)s.push("");for(;n<s.length;n++)s[n]=s[n].trim().replace(/\\\|/g,"|");return s}function dc(r,e,t){const s=r.length;if(s===0)return"";let n=0;for(;n<s;){const i=r.charAt(s-n-1);if(i===e&&!t)n++;else if(i!==e&&t)n++;else break}return r.slice(0,s-n)}function qq(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let s=0;s<r.length;s++)if(r[s]==="\\")s++;else if(r[s]===e[0])t++;else if(r[s]===e[1]&&(t--,t<0))return s;return-1}function Iw(r,e,t,s){const n=e.href,i=e.title?es(e.title):null,a=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){s.state.inLink=!0;const o={type:"link",raw:t,href:n,title:i,text:a,tokens:s.inlineTokens(a)};return s.state.inLink=!1,o}return{type:"image",raw:t,href:n,title:i,text:es(a)}}function Zq(r,e){const t=r.match(/^(\s+)(?:```)/);if(t===null)return e;const s=t[1];return e.split(`
`).map(n=>{const i=n.match(/^\s+/);if(i===null)return n;const[a]=i;return a.length>=s.length?n.slice(s.length):n}).join(`
`)}class Zh{constructor(e){f(this,"options");f(this,"rules");f(this,"lexer");this.options=e||eo}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const s=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?s:dc(s,`
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const s=t[0],n=Zq(s,t[3]||"");return{type:"code",raw:s,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let s=t[2].trim();if(/#$/.test(s)){const n=dc(s,"#");(this.options.pedantic||!n||/ $/.test(n))&&(s=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:s,tokens:this.lexer.inline(s)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:dc(t[0],`
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let s=dc(t[0],`
`).split(`
`),n="",i="";const a=[];for(;s.length>0;){let o=!1;const l=[];let c;for(c=0;c<s.length;c++)if(/^ {0,3}>/.test(s[c]))l.push(s[c]),o=!0;else if(!o)l.push(s[c]);else break;s=s.slice(c);const u=l.join(`
`),d=u.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,`
$1`).replace(/^ {0,3}>[ \t]?/gm,"");n=n?`${n}
${u}`:u,i=i?`${i}
${d}`:d;const p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(d,a,!0),this.lexer.state.top=p,s.length===0)break;const h=a[a.length-1];if((h==null?void 0:h.type)==="code")break;if((h==null?void 0:h.type)==="blockquote"){const m=h,g=m.raw+`
`+s.join(`
`),v=this.blockquote(g);a[a.length-1]=v,n=n.substring(0,n.length-m.raw.length)+v.raw,i=i.substring(0,i.length-m.text.length)+v.text;break}else if((h==null?void 0:h.type)==="list"){const m=h,g=m.raw+`
`+s.join(`
`),v=this.list(g);a[a.length-1]=v,n=n.substring(0,n.length-h.raw.length)+v.raw,i=i.substring(0,i.length-m.raw.length)+v.raw,s=g.substring(a[a.length-1].raw.length).split(`
`);continue}}return{type:"blockquote",raw:n,tokens:a,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let s=t[1].trim();const n=s.length>1,i={type:"list",raw:"",ordered:n,start:n?+s.slice(0,-1):"",loose:!1,items:[]};s=n?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=n?s:"[*+-]");const a=new RegExp(`^( {0,3}${s})((?:[ ][^\\n]*)?(?:\\n|$))`);let o=!1;for(;e;){let l=!1,c="",u="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;c=t[0],e=e.substring(c.length);let d=t[2].split(`
`,1)[0].replace(/^\t+/,y=>" ".repeat(3*y.length)),p=e.split(`
`,1)[0],h=!d.trim(),m=0;if(this.options.pedantic?(m=2,u=d.trimStart()):h?m=t[1].length+1:(m=t[2].search(/[^ ]/),m=m>4?1:m,u=d.slice(m),m+=t[1].length),h&&/^ *$/.test(p)&&(c+=p+`
`,e=e.substring(p.length+1),l=!0),!l){const y=new RegExp(`^ {0,${Math.min(3,m-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),C=new RegExp(`^ {0,${Math.min(3,m-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),x=new RegExp(`^ {0,${Math.min(3,m-1)}}(?:\`\`\`|~~~)`),S=new RegExp(`^ {0,${Math.min(3,m-1)}}#`);for(;e;){const E=e.split(`
`,1)[0];if(p=E,this.options.pedantic&&(p=p.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),x.test(p)||S.test(p)||y.test(p)||C.test(e))break;if(p.search(/[^ ]/)>=m||!p.trim())u+=`
`+p.slice(m);else{if(h||d.search(/[^ ]/)>=4||x.test(d)||S.test(d)||C.test(d))break;u+=`
`+p}!h&&!p.trim()&&(h=!0),c+=E+`
`,e=e.substring(E.length+1),d=p.slice(m)}}i.loose||(o?i.loose=!0:/\n *\n *$/.test(c)&&(o=!0));let g=null,v;this.options.gfm&&(g=/^\[[ xX]\] /.exec(u),g&&(v=g[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:c,task:!!g,checked:v,loose:!1,text:u,tokens:[]}),i.raw+=c}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let l=0;l<i.items.length;l++)if(this.lexer.state.top=!1,i.items[l].tokens=this.lexer.blockTokens(i.items[l].text,[]),!i.loose){const c=i.items[l].tokens.filter(d=>d.type==="space"),u=c.length>0&&c.some(d=>/\n.*\n/.test(d.raw));i.loose=u}if(i.loose)for(let l=0;l<i.items.length;l++)i.items[l].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const s=t[1].toLowerCase().replace(/\s+/g," "),n=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:s,raw:t[0],href:n,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const s=Rw(t[1]),n=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(s.length===n.length){for(const o of n)/^ *-+: *$/.test(o)?a.align.push("right"):/^ *:-+: *$/.test(o)?a.align.push("center"):/^ *:-+ *$/.test(o)?a.align.push("left"):a.align.push(null);for(let o=0;o<s.length;o++)a.header.push({text:s[o],tokens:this.lexer.inline(s[o]),header:!0,align:a.align[o]});for(const o of i)a.rows.push(Rw(o,a.header.length).map((l,c)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:a.align[c]})));return a}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const s=t[1].charAt(t[1].length-1)===`
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:s,tokens:this.lexer.inline(s)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:es(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const s=t[2].trim();if(!this.options.pedantic&&/^</.test(s)){if(!/>$/.test(s))return;const a=dc(s.slice(0,-1),"\\");if((s.length-a.length)%2===0)return}else{const a=qq(t[2],"()");if(a>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const a=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);a&&(n=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/>$/.test(s)?n=n.slice(1):n=n.slice(1,-1)),Iw(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let s;if((s=this.rules.inline.reflink.exec(e))||(s=this.rules.inline.nolink.exec(e))){const n=(s[2]||s[1]).replace(/\s+/g," "),i=t[n.toLowerCase()];if(!i){const a=s[0].charAt(0);return{type:"text",raw:a,text:a}}return Iw(s,i,s[0],this.lexer)}}emStrong(e,t,s=""){let n=this.rules.inline.emStrongLDelim.exec(e);if(!n||n[3]&&s.match(/[\p{L}\p{N}]/u))return;if(!(n[1]||n[2]||"")||!s||this.rules.inline.punctuation.exec(s)){const a=[...n[0]].length-1;let o,l,c=a,u=0;const d=n[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(d.lastIndex=0,t=t.slice(-1*e.length+a);(n=d.exec(t))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(l=[...o].length,n[3]||n[4]){c+=l;continue}else if((n[5]||n[6])&&a%3&&!((a+l)%3)){u+=l;continue}if(c-=l,c>0)continue;l=Math.min(l,l+c+u);const p=[...n[0]][0].length,h=e.slice(0,a+n.index+p+l);if(Math.min(a,l)%2){const g=h.slice(1,-1);return{type:"em",raw:h,text:g,tokens:this.lexer.inlineTokens(g)}}const m=h.slice(2,-2);return{type:"strong",raw:h,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let s=t[2].replace(/\n/g," ");const n=/[^ ]/.test(s),i=/^ /.test(s)&&/ $/.test(s);return n&&i&&(s=s.substring(1,s.length-1)),s=es(s,!0),{type:"codespan",raw:t[0],text:s}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let s,n;return t[2]==="@"?(s=es(t[1]),n="mailto:"+s):(s=es(t[1]),n=s),{type:"link",raw:t[0],text:s,href:n,tokens:[{type:"text",raw:s,text:s}]}}}url(e){var s;let t;if(t=this.rules.inline.url.exec(e)){let n,i;if(t[2]==="@")n=es(t[0]),i="mailto:"+n;else{let a;do a=t[0],t[0]=((s=this.rules.inline._backpedal.exec(t[0]))==null?void 0:s[0])??"";while(a!==t[0]);n=es(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let s;return this.lexer.state.inRawBlock?s=t[0]:s=es(t[0]),{type:"text",raw:t[0],text:s}}}}const Yq=/^(?: *(?:\n|$))+/,Kq=/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,Xq=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,xd=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Qq=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,J6=/(?:[*+-]|\d{1,9}[.)])/,e8=pt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,J6).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Cb=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Jq=/^[^\n]+/,Pb=/(?!\s*\])(?:\\.|[^\[\]\\])+/,eZ=pt(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",Pb).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),tZ=pt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,J6).getRegex(),Um="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Lb=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,rZ=pt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",Lb).replace("tag",Um).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t8=pt(Cb).replace("hr",xd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Um).getRegex(),sZ=pt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",t8).getRegex(),Ab={blockquote:sZ,code:Kq,def:eZ,fences:Xq,heading:Qq,hr:xd,html:rZ,lheading:e8,list:tZ,newline:Yq,paragraph:t8,table:Xc,text:Jq},Fw=pt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",xd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Um).getRegex(),nZ={...Ab,table:Fw,paragraph:pt(Cb).replace("hr",xd).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Fw).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Um).getRegex()},iZ={...Ab,html:pt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Lb).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Xc,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:pt(Cb).replace("hr",xd).replace("heading",` *#{1,6} *[^
]`).replace("lheading",e8).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},r8=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,aZ=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,s8=/^( {2,}|\\)\n(?!\s*$)/,oZ=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Cd="\\p{P}\\p{S}",lZ=pt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Cd).getRegex(),cZ=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,uZ=pt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Cd).getRegex(),dZ=pt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Cd).getRegex(),pZ=pt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Cd).getRegex(),hZ=pt(/\\([punct])/,"gu").replace(/punct/g,Cd).getRegex(),fZ=pt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),mZ=pt(Lb).replace("(?:-->|$)","-->").getRegex(),gZ=pt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",mZ).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Yh=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,vZ=pt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Yh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),n8=pt(/^!?\[(label)\]\[(ref)\]/).replace("label",Yh).replace("ref",Pb).getRegex(),i8=pt(/^!?\[(ref)\](?:\[\])?/).replace("ref",Pb).getRegex(),_Z=pt("reflink|nolink(?!\\()","g").replace("reflink",n8).replace("nolink",i8).getRegex(),Eb={_backpedal:Xc,anyPunctuation:hZ,autolink:fZ,blockSkip:cZ,br:s8,code:aZ,del:Xc,emStrongLDelim:uZ,emStrongRDelimAst:dZ,emStrongRDelimUnd:pZ,escape:r8,link:vZ,nolink:i8,punctuation:lZ,reflink:n8,reflinkSearch:_Z,tag:gZ,text:oZ,url:Xc},yZ={...Eb,link:pt(/^!?\[(label)\]\((.*?)\)/).replace("label",Yh).getRegex(),reflink:pt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Yh).getRegex()},Jv={...Eb,escape:pt(r8).replace("])","~|])").getRegex(),url:pt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},bZ={...Jv,br:pt(s8).replace("{2,}","*").getRegex(),text:pt(Jv.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},fp={normal:Ab,gfm:nZ,pedantic:iZ},pc={normal:Eb,gfm:Jv,breaks:bZ,pedantic:yZ};class pn{constructor(e){f(this,"tokens");f(this,"options");f(this,"state");f(this,"tokenizer");f(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||eo,this.options.tokenizer=this.options.tokenizer||new Zh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:fp.normal,inline:pc.normal};this.options.pedantic?(t.block=fp.pedantic,t.inline=pc.pedantic):this.options.gfm&&(t.block=fp.gfm,this.options.breaks?t.inline=pc.breaks:t.inline=pc.gfm),this.tokenizer.rules=t}static get rules(){return{block:fp,inline:pc}}static lex(e,t){return new pn(t).lex(e)}static lexInline(e,t){return new pn(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const s=this.inlineQueue[t];this.inlineTokens(s.src,s.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],s=!1){this.options.pedantic?e=e.replace(/\t/g," ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(o,l,c)=>l+" ".repeat(c.length));let n,i,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(n=o.call({lexer:this},e,t))?(e=e.substring(n.raw.length),t.push(n),!0):!1))){if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length),n.raw.length===1&&t.length>0?t[t.length-1].raw+=`
`:t.push(n);continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
`+n.raw,i.text+=`
`+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title});continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length),t.push(n);continue}if(a=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const l=e.slice(1);let c;this.options.extensions.startBlock.forEach(u=>{c=u.call({lexer:this},l),typeof c=="number"&&c>=0&&(o=Math.min(o,c))}),o<1/0&&o>=0&&(a=e.substring(0,o+1))}if(this.state.top&&(n=this.tokenizer.paragraph(a))){i=t[t.length-1],s&&(i==null?void 0:i.type)==="paragraph"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n),s=a.length!==e.length,e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length),i=t[t.length-1],i&&i.type==="text"?(i.raw+=`
`+n.raw,i.text+=`
`+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):t.push(n);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let s,n,i,a=e,o,l,c;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)u.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(a))!=null;)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;e;)if(l||(c=""),l=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(u=>(s=u.call({lexer:this},e,t))?(e=e.substring(s.raw.length),t.push(s),!0):!1))){if(s=this.tokenizer.escape(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.tag(e)){e=e.substring(s.raw.length),n=t[t.length-1],n&&s.type==="text"&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.link(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(s.raw.length),n=t[t.length-1],n&&s.type==="text"&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(s=this.tokenizer.emStrong(e,a,c)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.codespan(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.br(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.del(e)){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.autolink(e)){e=e.substring(s.raw.length),t.push(s);continue}if(!this.state.inLink&&(s=this.tokenizer.url(e))){e=e.substring(s.raw.length),t.push(s);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let u=1/0;const d=e.slice(1);let p;this.options.extensions.startInline.forEach(h=>{p=h.call({lexer:this},d),typeof p=="number"&&p>=0&&(u=Math.min(u,p))}),u<1/0&&u>=0&&(i=e.substring(0,u+1))}if(s=this.tokenizer.inlineText(i)){e=e.substring(s.raw.length),s.raw.slice(-1)!=="_"&&(c=s.raw.slice(-1)),l=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=s.raw,n.text+=s.text):t.push(s);continue}if(e){const u="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(u);break}else throw new Error(u)}}return t}}class Kh{constructor(e){f(this,"options");f(this,"parser");this.options=e||eo}space(e){return""}code({text:e,lang:t,escaped:s}){var a;const n=(a=(t||"").match(/^\S*/))==null?void 0:a[0],i=e.replace(/\n$/,"")+`
`;return n?'<pre><code class="language-'+es(n)+'">'+(s?i:es(i,!0))+`</code></pre>
`:"<pre><code>"+(s?i:es(i,!0))+`</code></pre>
`}blockquote({tokens:e}){return`<blockquote>
${this.parser.parse(e)}</blockquote>
`}html({text:e}){return e}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
`}hr(e){return`<hr>
`}list(e){const t=e.ordered,s=e.start;let n="";for(let o=0;o<e.items.length;o++){const l=e.items[o];n+=this.listitem(l)}const i=t?"ol":"ul",a=t&&s!==1?' start="'+s+'"':"";return"<"+i+a+`>
`+n+"</"+i+`>
`}listitem(e){let t="";if(e.task){const s=this.checkbox({checked:!!e.checked});e.loose?e.tokens.length>0&&e.tokens[0].type==="paragraph"?(e.tokens[0].text=s+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&e.tokens[0].tokens[0].type==="text"&&(e.tokens[0].tokens[0].text=s+" "+e.tokens[0].tokens[0].text)):e.tokens.unshift({type:"text",raw:s+" ",text:s+" "}):t+=s+" "}return t+=this.parser.parse(e.tokens,!!e.loose),`<li>${t}</li>
`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
`}table(e){let t="",s="";for(let i=0;i<e.header.length;i++)s+=this.tablecell(e.header[i]);t+=this.tablerow({text:s});let n="";for(let i=0;i<e.rows.length;i++){const a=e.rows[i];s="";for(let o=0;o<a.length;o++)s+=this.tablecell(a[o]);n+=this.tablerow({text:s})}return n&&(n=`<tbody>${n}</tbody>`),`<table>
<thead>
`+t+`</thead>
`+n+`</table>
`}tablerow({text:e}){return`<tr>
${e}</tr>
`}tablecell(e){const t=this.parser.parseInline(e.tokens),s=e.header?"th":"td";return(e.align?`<${s} align="${e.align}">`:`<${s}>`)+t+`</${s}>
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:s}){const n=this.parser.parseInline(s),i=Mw(e);if(i===null)return n;e=i;let a='<a href="'+e+'"';return t&&(a+=' title="'+t+'"'),a+=">"+n+"</a>",a}image({href:e,title:t,text:s}){const n=Mw(e);if(n===null)return s;e=n;let i=`<img src="${e}" alt="${s}"`;return t&&(i+=` title="${t}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class Ob{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class hn{constructor(e){f(this,"options");f(this,"renderer");f(this,"textRenderer");this.options=e||eo,this.options.renderer=this.options.renderer||new Kh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Ob}static parse(e,t){return new hn(t).parse(e)}static parseInline(e,t){return new hn(t).parseInline(e)}parse(e,t=!0){let s="";for(let n=0;n<e.length;n++){const i=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const o=i,l=this.options.extensions.renderers[o.type].call({parser:this},o);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(o.type)){s+=l||"";continue}}const a=i;switch(a.type){case"space":{s+=this.renderer.space(a);continue}case"hr":{s+=this.renderer.hr(a);continue}case"heading":{s+=this.renderer.heading(a);continue}case"code":{s+=this.renderer.code(a);continue}case"table":{s+=this.renderer.table(a);continue}case"blockquote":{s+=this.renderer.blockquote(a);continue}case"list":{s+=this.renderer.list(a);continue}case"html":{s+=this.renderer.html(a);continue}case"paragraph":{s+=this.renderer.paragraph(a);continue}case"text":{let o=a,l=this.renderer.text(o);for(;n+1<e.length&&e[n+1].type==="text";)o=e[++n],l+=`
`+this.renderer.text(o);t?s+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):s+=l;continue}default:{const o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}parseInline(e,t){t=t||this.renderer;let s="";for(let n=0;n<e.length;n++){const i=e[n];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const o=this.options.extensions.renderers[i.type].call({parser:this},i);if(o!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){s+=o||"";continue}}const a=i;switch(a.type){case"escape":{s+=t.text(a);break}case"html":{s+=t.html(a);break}case"link":{s+=t.link(a);break}case"image":{s+=t.image(a);break}case"strong":{s+=t.strong(a);break}case"em":{s+=t.em(a);break}case"codespan":{s+=t.codespan(a);break}case"br":{s+=t.br(a);break}case"del":{s+=t.del(a);break}case"text":{s+=t.text(a);break}default:{const o='Token with "'+a.type+'" type was not found.';if(this.options.silent)return console.error(o),"";throw new Error(o)}}}return s}}class Qc{constructor(e){f(this,"options");this.options=e||eo}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}}f(Qc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class a8{constructor(...e){f(this,"defaults",xb());f(this,"options",this.setOptions);f(this,"parse",this.parseMarkdown(pn.lex,hn.parse));f(this,"parseInline",this.parseMarkdown(pn.lexInline,hn.parseInline));f(this,"Parser",hn);f(this,"Renderer",Kh);f(this,"TextRenderer",Ob);f(this,"Lexer",pn);f(this,"Tokenizer",Zh);f(this,"Hooks",Qc);this.use(...e)}walkTokens(e,t){var n,i;let s=[];for(const a of e)switch(s=s.concat(t.call(this,a)),a.type){case"table":{const o=a;for(const l of o.header)s=s.concat(this.walkTokens(l.tokens,t));for(const l of o.rows)for(const c of l)s=s.concat(this.walkTokens(c.tokens,t));break}case"list":{const o=a;s=s.concat(this.walkTokens(o.items,t));break}default:{const o=a;(i=(n=this.defaults.extensions)==null?void 0:n.childTokens)!=null&&i[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{const c=o[l].flat(1/0);s=s.concat(this.walkTokens(c,t))}):o.tokens&&(s=s.concat(this.walkTokens(o.tokens,t)))}}return s}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(s=>{const n={...s};if(n.async=this.defaults.async||n.async||!1,s.extensions&&(s.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const a=t.renderers[i.name];a?t.renderers[i.name]=function(...o){let l=i.renderer.apply(this,o);return l===!1&&(l=a.apply(this,o)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const a=t[i.level];a?a.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),n.extensions=t),s.renderer){const i=this.defaults.renderer||new Kh(this.defaults);for(const a in s.renderer){if(!(a in i))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;const o=a,l=s.renderer[o],c=i[o];i[o]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d||""}}n.renderer=i}if(s.tokenizer){const i=this.defaults.tokenizer||new Zh(this.defaults);for(const a in s.tokenizer){if(!(a in i))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;const o=a,l=s.tokenizer[o],c=i[o];i[o]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d}}n.tokenizer=i}if(s.hooks){const i=this.defaults.hooks||new Qc;for(const a in s.hooks){if(!(a in i))throw new Error(`hook '${a}' does not exist`);if(a==="options")continue;const o=a,l=s.hooks[o],c=i[o];Qc.passThroughHooks.has(a)?i[o]=u=>{if(this.defaults.async)return Promise.resolve(l.call(i,u)).then(p=>c.call(i,p));const d=l.call(i,u);return c.call(i,d)}:i[o]=(...u)=>{let d=l.apply(i,u);return d===!1&&(d=c.apply(i,u)),d}}n.hooks=i}if(s.walkTokens){const i=this.defaults.walkTokens,a=s.walkTokens;n.walkTokens=function(o){let l=[];return l.push(a.call(this,o)),i&&(l=l.concat(i.call(this,o))),l}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return pn.lex(e,t??this.defaults)}parser(e,t){return hn.parse(e,t??this.defaults)}parseMarkdown(e,t){return(n,i)=>{const a={...i},o={...this.defaults,...a},l=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&a.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(o.hooks&&(o.hooks.options=o),o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(c=>e(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>t(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(l);try{o.hooks&&(n=o.hooks.preprocess(n));let c=e(n,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let u=t(c,o);return o.hooks&&(u=o.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(e,t){return s=>{if(s.message+=`
Please report this to https://github.com/markedjs/marked.`,e){const n="<p>An error occurred:</p><pre>"+es(s.message+"",!0)+"</pre>";return t?Promise.resolve(n):n}if(t)return Promise.reject(s);throw s}}}const Ea=new a8;function ct(r,e){return Ea.parse(r,e)}ct.options=ct.setOptions=function(r){return Ea.setOptions(r),ct.defaults=Ea.defaults,K6(ct.defaults),ct};ct.getDefaults=xb;ct.defaults=eo;ct.use=function(...r){return Ea.use(...r),ct.defaults=Ea.defaults,K6(ct.defaults),ct};ct.walkTokens=function(r,e){return Ea.walkTokens(r,e)};ct.parseInline=Ea.parseInline;ct.Parser=hn;ct.parser=hn.parse;ct.Renderer=Kh;ct.TextRenderer=Ob;ct.Lexer=pn;ct.lexer=pn.lex;ct.Tokenizer=Zh;ct.Hooks=Qc;ct.parse=ct;ct.options;ct.setOptions;ct.use;ct.walkTokens;ct.parseInline;hn.parse;pn.lex;function $Z(r){r=r.trim().replace(/\/+$/,"/");const e=/^[\w+]+:\/\//,t=e.test(r),s="http://__dummy__",n=new URL(r,s),i=s.length+(r.startsWith("/")?0:1);return{walkTokens(a){if(["link","image"].includes(a.type)&&!e.test(a.href)&&!a.href.startsWith("#"))if(t)try{a.href=new URL(a.href,r).href}catch{}else{if(a.href.startsWith("/"))return;try{const o=new URL(a.href,n).href;a.href=o.slice(i)}catch{}}}}}var SZ=Object.defineProperty,wZ=Object.getOwnPropertyDescriptor,Cn=(r,e,t,s)=>{for(var n=s>1?void 0:s?wZ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&SZ(e,t,n),n};let xs=class extends Z(X){constructor(){super(...arguments);f(this,"open");f(this,"path");f(this,"file");f(this,"filename");f(this,"extension");f(this,"src");f(this,"type");f(this,"width");f(this,"readonly");f(this,"renderedMarkdown",null)}get calculatedWidth(){const t=window.innerWidth*(this.$vuetify.breakpoint.mdAndDown?1:.75);return Math.min(window.innerWidth*.9,Math.max(this.width??t,t/2))}get isVideo(){return this.type.startsWith("video/")}get isImage(){return this.type.startsWith("image/")}get isMarkdown(){return this.type.startsWith("text/markdown")}get apiUrl(){return this.$store.state.config.apiUrl}async LoadMarkdown(){if(!this.path){ye.error("[FilePreviewDialog] missing path property in markdown viewer");return}const s=await(await fetch(this.src)).text(),n=`${this.apiUrl}/server/files/${this.path}/`,i=$Z(n),a={renderer:{link(...l){return this.constructor.prototype.link.call(this,...l).replace(/^<a /,'<a target="_blank" ')}}},o=new a8(i,a);this.renderedMarkdown=await o.parse(s,{async:!0})}mounted(){this.isMarkdown&&this.LoadMarkdown()}};Cn([He({type:Boolean})],xs.prototype,"open",2);Cn([$({type:String})],xs.prototype,"path",2);Cn([$({type:Object})],xs.prototype,"file",2);Cn([$({type:String,required:!0})],xs.prototype,"filename",2);Cn([$({type:String})],xs.prototype,"extension",2);Cn([$({type:String,required:!0})],xs.prototype,"src",2);Cn([$({type:String,required:!0})],xs.prototype,"type",2);Cn([$({type:Number})],xs.prototype,"width",2);Cn([$({type:Boolean})],xs.prototype,"readonly",2);xs=Cn([L({})],xs);var xZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.filename,width:e.calculatedWidth,"no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"py-4"},[e.isMarkdown?e.renderedMarkdown?t("div",{staticClass:"markdown-container",domProps:{innerHTML:e._s(e.renderedMarkdown)}}):e._e():t(Ur,{attrs:{"justify-center":""}},[e.isVideo?t("video",{attrs:{controls:""}},[t("source",{attrs:{src:e.src,type:e.type}})]):e.isImage?t("img",{attrs:{src:e.src}}):t("div",[e._v(" "+e._s(e.$t("app.general.simple_form.msg.no_file_preview",{name:e.extension?`.${e.extension} files`:e.filename}))+" ")])])],1),e.file?[t(R),t(bd,{staticClass:"pt-4"},[t(_t),e.readonly?e._e():t(M,{attrs:{text:"",color:"error"},on:{click:function(s){return e.$emit("remove",e.file)}}},[t(w,[e._v("$delete")]),e._v(" "+e._s(e.$t("app.general.btn.remove"))+" ")],1),t(M,{attrs:{color:"primary"},on:{click:function(s){return e.$emit("download",e.file)}}},[t(w,[e._v("$download")]),e._v(" "+e._s(e.$t("app.general.btn.download"))+" ")],1)],1)]:e._e()],2)},CZ=[],PZ=A(xs,xZ,CZ,!1,null,"28070096");const o8=PZ.exports;var LZ=Object.defineProperty,AZ=Object.getOwnPropertyDescriptor,EZ=(r,e,t,s)=>{for(var n=s>1?void 0:s?AZ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&LZ(e,t,n),n};let e_=class extends Z(X,dr,Ut){constructor(){super(...arguments);f(this,"filePreviewState",{open:!1,filename:"",src:""})}get visible(){return this.printerPrinting||this.message||this.current_file&&this.current_file.filename||this.thumbVisible||this.progressVisible&&this.$vuetify.breakpoint.mdAndDown}get progressVisible(){return this.printerPrinting||this.filename!==""}get overviewVisible(){return!this.printerPrinting&&this.current_file&&this.current_file.filename}get thumbVisible(){return this.current_file&&this.current_file.filename&&this.thumbnail&&this.$vuetify.breakpoint.lgAndUp}get printInProgressLayout(){return this.$store.state.config.uiSettings.general.printInProgressLayout}get current_file(){let t=this.$store.state.printer.printer.current_file;if(t.job_id){const s=this.$store.getters["history/getHistoryById"](t.job_id);s&&(t={...t,history:s})}return t}get filename(){return this.$store.state.printer.printer.print_stats.filename||""}get message(){return this.$store.state.printer.printer.display_status.message}get thumbnail(){if(this.current_file&&this.current_file.thumbnails)return this.getThumbUrl(this.current_file,"gcodes",this.current_file.path,!0,this.current_file.modified)}get liveVelocity(){return this.$store.state.printer.printer.motion_report.live_velocity}get liveExtruderVelocity(){return this.$store.state.printer.printer.motion_report.live_extruder_velocity}get liveFlow(){return Math.PI/4*this.filamentDiameter**2*this.liveExtruderVelocity}get estimates(){return this.$store.getters["printer/getTimeEstimates"]}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}get history(){return this.$store.getters["history/getUniqueHistory"](3)}get layers(){return this.$store.getters["printer/getPrintLayers"]}get layer(){return this.$store.getters["printer/getPrintLayer"]}get filamentUsed(){return this.$store.state.printer.printer.print_stats.filament_used??0}get filamentTotal(){return this.$store.state.printer.printer.current_file.filament_total||0}async handleViewThumbnail(){const t=this.current_file,s=this.getThumb(t,"gcodes",t.path,!0,t.modified);s&&(this.filePreviewState={open:!0,filename:t.filename,src:s.url,width:s.width})}};e_=EZ([L({components:{StatusLabel:Y6,FilePreviewDialog:o8}})],e_);var OZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.progressVisible&&e.$vuetify.breakpoint.smAndDown?t(Ys,{attrs:{height:6,value:e.estimates.progress,color:"primary"}}):e._e(),e.visible?t(Pe,[t(te,[e.progressVisible?[e.printInProgressLayout==="default"&&e.$vuetify.breakpoint.lgAndUp?t(I,{attrs:{cols:"auto","align-self":"center"}},[t(Zo,{attrs:{rotate:-90,size:90,width:7,value:e.estimates.progress,color:"primary"}},[t("span",{staticClass:"percentComplete focus--text"},[e._v(e._s(e.estimates.progress)+"%")])])],1):e.printInProgressLayout==="compact"&&e.$vuetify.breakpoint.mdAndUp?t(I,{attrs:{cols:"auto","align-self":"center"}},[t(te,[t(Fe,{staticClass:"progress-button mx-2",attrs:{text:""},on:{click:e.handleViewThumbnail}},[t(Zo,{attrs:{rotate:-90,size:90,width:7,value:e.estimates.progress,color:"primary"}},[t("img",{staticClass:"progress-button-image",attrs:{src:e.thumbnail}})])],1)],1),t(te,{attrs:{justify:"center"}},[t("span",{staticClass:"primary--text"},[e._v(e._s(e.estimates.progress)+"%")])])],1):e._e()]:e._e(),t(I,{attrs:{"align-self":"center"}},[e.message||e.filename!==""||e.progressVisible&&e.$vuetify.breakpoint.mdAndDown?t(te,{attrs:{"no-gutters":""}},[t(I,[e.progressVisible&&e.$vuetify.breakpoint.mdAndDown?t("status-label",{attrs:{label:e.$t("app.general.label.progress")}},[t("span",[e._v(e._s(e.estimates.progress)+"%")])]):e._e(),e.message?t("status-label",{attrs:{label:e.$t("app.general.label.m117")}},[t("span",[e._v(e._s(e.message))])]):e._e(),e.filename!==""?t("status-label",{attrs:{label:e.$t("app.general.label.file")}},[t("span",{staticStyle:{"word-break":"break-all"}},[e._v(e._s(e.filename))])]):e._e()],1)],1):e._e(),e.printerPrinting?t(te,{attrs:{"no-gutters":""}},[t(I,{attrs:{cols:"12",sm:"6"}},[t("status-label",{attrs:{label:e.$t("app.general.label.requested_speed")}},[e.liveVelocity>0?t("span",[e._v(e._s(e.liveVelocity.toFixed(1))+" mm/s")]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.flow")}},[e.liveFlow>0?t("span",[e._v(e._s(e.liveFlow.toFixed(1))+" mm³/s")]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.filament")}},[e.filamentUsed>0?t("span",[e._v(e._s(e.$filters.getReadableLengthString(e.filamentUsed)))]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.layer")}},[e.layers>0?t("span",[e._v(e._s(e.layer)+" / "+e._s(e.layers))]):e._e()])],1),t(I,{attrs:{cols:"12",sm:"6"}},[e.estimates.actualLeft>0?t("status-label",{attrs:{label:e.$t("app.general.label.actual_time")}},[t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.estimates.actualLeft)))])]):t("status-label",{attrs:{label:e.$t("app.general.label.file_time")}},[e.estimates.fileLeft>0?t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.estimates.fileLeft)))]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.slicer")}},[e.estimates.slicerLeft>0?t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.estimates.slicerLeft)))]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.total")}},[e.estimates.printDuration>0?t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.estimates.printDuration)))]):e._e()]),t("status-label",{attrs:{label:e.$t("app.general.label.finish_time")}},[e.estimates.eta>0?t("span",[e._v(e._s(e.$filters.formatAbsoluteDateTime(e.estimates.eta)))]):e._e()])],1)],1):e._e(),e.overviewVisible?t(te,{attrs:{"no-gutters":""}},[t(I,[e.current_file.history&&e.current_file.history.filament_used?t("status-label",{attrs:{label:e.$t("app.general.label.filament")}},[t("span",[e._v(e._s(e.$filters.getReadableLengthString(e.current_file.history.filament_used)))])]):e.current_file.filament_total?t("status-label",{attrs:{label:e.$t("app.general.label.filament")}},[t("span",[e._v(e._s(e.$filters.getReadableLengthString(e.current_file.filament_total)))])]):e._e(),e.current_file.estimated_time?t("status-label",{attrs:{label:e.$t("app.general.label.slicer")}},[t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.current_file.estimated_time)))])]):e._e(),e.current_file.history&&e.current_file.history.print_duration>0?t("status-label",{attrs:{label:e.$t("app.general.label.actual_time")}},[t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.current_file.history.print_duration)))])]):e._e(),e.current_file.history&&e.current_file.history.total_duration>0?t("status-label",{attrs:{label:e.$t("app.general.label.total")}},[t("span",[e._v(e._s(e.$filters.formatCounterSeconds(e.current_file.history.total_duration)))])]):e._e()],1)],1):e._e()],1),e.thumbVisible&&e.printInProgressLayout==="default"?t(I,{staticClass:"pa-0",attrs:{cols:"auto","align-self":"center"}},[t(Fe,{attrs:{text:"",height:"100%"},on:{click:e.handleViewThumbnail}},[t("img",{staticClass:"print-thumb",attrs:{src:e.thumbnail}})])],1):e._e()],2)],1):e._e(),e.filePreviewState.open?t("file-preview-dialog",{attrs:{filename:e.filePreviewState.filename,src:e.filePreviewState.src,type:"image/any",width:e.filePreviewState.width},model:{value:e.filePreviewState.open,callback:function(s){e.$set(e.filePreviewState,"open",s)},expression:"filePreviewState.open"}}):e._e()],1)},TZ=[],kZ=A(e_,OZ,TZ,!1,null,"cf91844d");const l8=kZ.exports,Kt=(r,e)=>{const t=r.split("/"),s=he.FILTERED_FOLDER_NAMES.some(a=>t.includes(a)),n=t.pop()??"",i=t.join("/");return{filename:n,path:i,rootPath:i?`${e}/${i}`:e,filtered:s}};var DZ=Object.defineProperty,MZ=Object.getOwnPropertyDescriptor,RZ=(r,e,t,s)=>{for(var n=s>1?void 0:s?MZ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&DZ(e,t,n),n};let t_=class extends Z(X,dr){get history(){return this.$store.getters["history/getUniqueHistory"](3)}getFilePaths(e){return Kt(e,"gcodes")}get headers(){return[{text:"",value:"data-table-icons",sortable:!1,width:"24px"},{text:this.$tc("app.general.table.header.name"),value:"filename",sortable:!1},{text:this.$tc("app.general.table.header.status"),value:"status",sortable:!1},{text:this.$tc("app.general.table.header.print_duration"),value:"print_duration",sortable:!1}]}handleJobThumbnailError(e){this.$store.dispatch("history/clearHistoryThumbnails",e.job_id)}};t_=RZ([L({components:{JobHistoryItemStatus:Sb}})],t_);var IZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"file-system"},[t($d,{staticStyle:{"background-color":"transparent"},attrs:{items:e.history,headers:e.headers,"items-per-page":5,"mobile-breakpoint":"0","hide-default-footer":"","item-key":"job_id","sort-by":"start_time","sort-desc":""},scopedSlots:e._u([{key:"item",fn:function({item:s}){var n;return[t("tr",{staticClass:"px-1"},[t("td",[s.exists?(n=s.metadata.thumbnails)!=null&&n.length?t("img",{staticClass:"mr-2 file-icon-thumb",attrs:{src:e.getThumbUrl(s.metadata,"gcodes",e.getFilePaths(s.filename).path,!1,s.metadata.modified),width:24},on:{error:function(i){return e.handleJobThumbnailError(s)}}}):t(w,{staticClass:"mr-2",attrs:{color:"secondary"}},[e._v(" $file ")]):t(w,{staticClass:"mr-2",attrs:{color:"secondary"}},[e._v(" $fileCancel ")])],1),t("td",[t("span",{},[e._v(" "+e._s(e.getFilePaths(s.filename).filename)+" ")])]),t("td",[t("job-history-item-status",{attrs:{job:s}})],1),t("td",[s.print_duration>0?t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.print_duration))+" ")]):t("span",[e._v("--")])]),e.printerPrinting?e._e():t("td",{staticClass:"actions"},[t("div",[t(M,{attrs:{color:"",icon:""},on:{click:function(i){return e.$emit("print",s.filename)}}},[t(w,[e._v("$printer")])],1)],1)])])]}}])})],1)},FZ=[],HZ=A(t_,IZ,FZ,!1,null,null);const BZ=HZ.exports;class Vt{static configToDict(e){const t={};let s="";return e.split(/\r?\n/).forEach(n=>{const i=n.trim();if(i&&!i.startsWith("#"))if(i.startsWith("["))s=i.trim().replace(/^\[|\]$/g,""),t[s]={};else{const[a,o]=i.split("=");a&&o&&(t[s][a.trim()]=o.trim().replace(/['"]/g,""))}}),t}static getTextColor(e){const t=Vt.hexToRgb(e);return t?(t.r*299+t.g*587+t.b*114)/1e3>125?"#000000":"#FFFFFF":"#000000"}static hexToRgb(e){const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}static isDefinedAndNotEmpty(e){return e!=null&&e!==""}}var jZ=Object.defineProperty,VZ=Object.getOwnPropertyDescriptor,Ml=(r,e,t,s)=>{for(var n=s>1?void 0:s?VZ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&jZ(e,t,n),n};let Oi=class extends b{constructor(){super(...arguments);f(this,"usedExtruders");f(this,"fileColors");f(this,"fileLabels");f(this,"items");f(this,"selectedValueSlot")}getTextColor(e){return Vt.getTextColor(e)}getItemText(e){return e.label}onValueChange(e){this.$emit("value-change",e)}};Ml([$({type:Array,required:!0})],Oi.prototype,"usedExtruders",2);Ml([$({type:Array,required:!0})],Oi.prototype,"fileColors",2);Ml([$({type:Array,required:!0})],Oi.prototype,"fileLabels",2);Ml([$({type:Array,required:!0})],Oi.prototype,"items",2);Ml([$({type:Array,required:!0})],Oi.prototype,"selectedValueSlot",2);Oi=Ml([L({})],Oi);var NZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,e._l(e.usedExtruders,function(s,n){var i,a;return t(I,{key:n,attrs:{cols:6,sm:"3"}},[t(ut,{style:{backgroundColor:e.fileColors[s]||"#000000",textAlign:"center",color:e.getTextColor(e.fileColors[s]),borderRadius:"8px",height:"69px",borderColor:e.$vuetify.theme.currentTheme.drawer,borderWidth:"2px",borderStyle:"solid",boxShadow:e.selectedValueSlot[s]?"":"0 0 0 2px #ff0000"}},[t(ut,{staticClass:"pt-2",style:{backgroundColor:"inherit",color:e.getTextColor(e.fileColors[s]||"#000000"),borderRadius:"8px",height:"25px"}},[e._v(e._s(e.fileLabels[s]||"?"))]),t(Te,{staticClass:"pl-4 pr-4",style:{backgroundColor:((i=e.selectedValueSlot[s])==null?void 0:i.color)||"#000000",color:e.getTextColor(((a=e.selectedValueSlot[s])==null?void 0:a.color)||"#FFFFFF"),transform:"scale(0.7)",transformOrigin:"bottom left",width:"142.857%",borderRadius:"0 0 8px 8px"},attrs:{label:"?",items:e.items,"item-text":e.getItemText,"menu-props":{buttom:!0,offsetY:!0},"return-object":"","single-line":""},on:{change:function(o){return e.onValueChange(s)}},scopedSlots:e._u([{key:"item",fn:function({item:o}){return[t("div",{staticStyle:{display:"flex","align-items":"center"}},[t("div",{style:{width:"20px",height:"20px",backgroundColor:o.color,marginRight:"8px"}}),t("span",[e._v(e._s(o.label))])])]}}],null,!0),model:{value:e.selectedValueSlot[s],callback:function(o){e.$set(e.selectedValueSlot,s,o)},expression:"selectedValueSlot[usedExtruderIndex]"}})],1)],1)}),1)},zZ=[],UZ=A(Oi,NZ,zZ,!1,null,"08224666");const WZ=UZ.exports;var GZ=Object.defineProperty,qZ=Object.getOwnPropertyDescriptor,Pd=(r,e,t,s)=>{for(var n=s>1?void 0:s?qZ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&GZ(e,t,n),n};let Oa=class extends Z(X,dr){constructor(){super(...arguments);f(this,"open");f(this,"currentRoot");f(this,"visiblePath");f(this,"filename");f(this,"box_count",0);f(this,"selectedValueSlot",[]);f(this,"oldSelectedValueSlot",[]);f(this,"count",0);f(this,"url","");f(this,"timeUnit",[this.$t("app.file_system.label.hour"),this.$t("app.file_system.label.minute"),this.$t("app.file_system.label.second")])}get title(){return`${this.filename||this.$t("app.file_system.title.check_filament")}`}get filecolors(){var t;return((t=this.fileMeta)==null?void 0:t.preset_colours)||[""]}get usedExtruders(){var t;return((t=this.fileMeta)==null?void 0:t.used_extruders)||[]}get filelabels(){var s;return((s=this.fileMeta)==null?void 0:s.filament_type.split(";"))||[""]}get fileMeta(){return this.$store.getters["files/getFileMeta"](this.currentRoot,this.filename)}get variables(){return this.$store.getters["printer/getVariables"]}get boxCount(){return this.variables.boxCount}get items(){const t=[];return this.variables.slot.forEach((s,n)=>{var i;if(s!==0&&Math.floor(n/4)<this.boxCount){const a=Math.floor(n/4+1)+String.fromCharCode(n%4+65),o=(i=this.officialFilasListDictData)==null?void 0:i.colordict,l=o?o[this.variables.colorSlot[n]]:"#000000",c="fila"+this.variables.filamentSlot[n];t[n]={label:a,color:l,filaIndex:c}}}),t}get valueSlot(){const t=[];return this.variables.valueSlot.forEach((s,n)=>{var i;if(Math.floor(n/4)<this.boxCount&&this.variables.slot[s]!==0){const a=Math.floor(s/4+1)+String.fromCharCode(s%4+65),o=(i=this.officialFilasListDictData)==null?void 0:i.colordict,l=o?o[this.variables.colorSlot[s]]:"#000000",c="fila"+this.variables.filamentSlot[s];t[n]={label:a,color:l,filaIndex:c}}}),t}get imgUrl(){return this.getThumbUrl(this.fileMeta,this.currentRoot,this.fileMeta.path,!0,this.fileMeta.modified)}get officialFilasListDictData(){return this.$store.state.printer.officiallFilasList}get isDateloaded(){return Vt.isDefinedAndNotEmpty(this.officialFilasListDictData)&&Vt.isDefinedAndNotEmpty(this.variables)&&Vt.isDefinedAndNotEmpty(this.boxCount)&&Vt.isDefinedAndNotEmpty(this.items)&&Vt.isDefinedAndNotEmpty(this.valueSlot)&&Vt.isDefinedAndNotEmpty(this.fileMeta)}get isOkPrinter(){return!(this.filelabels.length>this.items.filter(t=>t!==null).length)}mounted(){this.$store.state.printer.officiallFilasList||this.getOfficiallFilasList().then(t=>{this.$set(this.$store.state.printer,"officiallFilasList",Vt.configToDict(t))}).catch(t=>{console.error("Failed to fetch official filas list dict:",t)}),this.selectedValueSlot=JSON.parse(JSON.stringify(this.valueSlot)),this.oldSelectedValueSlot=JSON.parse(JSON.stringify(this.valueSlot)),this.url=JSON.parse(JSON.stringify(this.imgUrl))}async handlePrint(){const t=this.selectedValueSlot.map((s,n)=>{if(s){const i=this.trsformer(s.label);return`SAVE_VARIABLE VARIABLE=value_t${n} VALUE="'slot${i}'"`}return null}).filter(s=>s!==null);await F.printerGcodeScript(t.join(`
`)),this.open=!1,F.printerPrintStart(this.filename),this.$router.currentRoute.path!=="/"&&this.$router.push({path:"/"})}handleCancel(){this.open=!1}onValueChange(t){this.selectedValueSlot=this.selectedValueSlot.map((s,n)=>n===t?s:JSON.stringify(s)===JSON.stringify(this.selectedValueSlot[t])?this.oldSelectedValueSlot[t]:s),this.oldSelectedValueSlot=JSON.parse(JSON.stringify(this.selectedValueSlot))}formatSeconds(t){const s=Math.floor(t/3600),n=Math.floor(t%3600/60),i=t%60,a=s>0?`${s} ${this.timeUnit[0]}`:"",o=n>0?`${n} ${this.timeUnit[1]}`:"",l=`${i} ${this.timeUnit[2]}`;return`${a} ${o} ${l}`.trim()}trsformer(t){return(t.charCodeAt(0)-49)*4+t.charCodeAt(1)-65}};Pd([He({type:Boolean})],Oa.prototype,"open",2);Pd([$({type:String,required:!0,default:"gcodes"})],Oa.prototype,"currentRoot",2);Pd([$({type:String,required:!0})],Oa.prototype,"visiblePath",2);Pd([$({type:String,required:!1})],Oa.prototype,"filename",2);Oa=Pd([L({components:{FileSystemSelectLine:WZ}})],Oa);var ZZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.title,"max-width":"400"},scopedSlots:e._u([{key:"actions",fn:function(){return[t(_t),t(M,{attrs:{type:"button"},on:{click:function(s){return e.handleCancel()}}},[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")]),t(M,{attrs:{color:"primary",disabled:!e.isOkPrinter,type:"button"},on:{click:function(s){return e.handlePrint()}}},[e._v(" "+e._s(e.$t("app.general.btn.print"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[e.isOkPrinter?e._e():t(Vn,{attrs:{text:"",dense:"",type:"warning"}},[e._v(e._s(e.$t("app.file_system.tooltip.warning_text")))]),e.isDateloaded?t("div",{staticClass:"image-container"},[t(nb,{staticClass:"mb-4",attrs:{src:e.url||e.imgUrl,alt:"Filesystem Image","max-height":"150","max-width":"150"}}),t(Nm,{attrs:{bottom:"",small:"",tooltip:e.$t("app.file_system.tooltip.tip")}})],1):e._e(),e.isDateloaded?t(Ie,[t(te,[t(I,{attrs:{align:"center"}},[t(w,[e._v("$clock")]),e._v(" "+e._s(e.formatSeconds(e.fileMeta.estimated_time))+" ")],1),t(I,{attrs:{align:"center"}},[t(w,[e._v("$gold")]),e._v(" "+e._s(e.fileMeta.filament_weight_total)+" g ")],1)],1),t(Pe,[t("file-system-select-line",{attrs:{"used-extruders":e.usedExtruders,"file-colors":e.filecolors,"file-labels":e.filelabels,items:e.items,"selected-value-slot":e.selectedValueSlot},on:{"value-change":e.onValueChange}})],1)],1):e._e()],1)],1)},YZ=[],KZ=A(Oa,ZZ,YZ,!1,null,"2d7a3937");const c8=KZ.exports;var XZ=Object.defineProperty,QZ=Object.getOwnPropertyDescriptor,u8=(r,e,t,s)=>{for(var n=s>1?void 0:s?QZ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&XZ(e,t,n),n};let Xh=class extends Z(X,dr,l8){constructor(){super(...arguments);f(this,"tab",0);f(this,"FileSystemSelectLineDialogState",{open:!1,filename:""})}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}get collapsable(){const t=this.$store.state.printer.printer.print_stats.filename;return this.printerPrinting||this.supportsHistoryComponent||t!==""}get filename(){return this.$store.state.printer.printer.print_stats.filename}get estimates(){return this.$store.getters["printer/getTimeEstimates"]}onPrinterPrinting(t){this.init(t)}mounted(){this.init(this.filename)}init(t){F.serverFilesGetDirectory("gcodes","gcodes/.cache"),t!==""?this.tab=0:this.tab=1}handlePrint(t){const s=this.$store.getters["spoolman/getAvailable"],n=this.$store.state.config.uiSettings.spoolman.autoSpoolSelectionDialog;if(s&&n){this.$store.commit("spoolman/setDialogState",{show:!0,filename:t});return}this.FileSystemSelectLineDialogState={open:!0,filename:t}}};u8([Ae("filename")],Xh.prototype,"onPrinterPrinting",1);Xh=u8([L({components:{StatusControls:Mq,StatusTab:l8,ReprintTab:BZ,FileSystemSelectLineDialog:c8}})],Xh);var JZ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.printer.title.printer_status"),icon:"$printer3d",draggable:"",collapsable:e.collapsable,"layout-path":"dashboard.printer-status-card"},scopedSlots:e._u([{key:"title",fn:function({inLayout:s}){return[s?e._e():t(Bm,{attrs:{"background-color":"transparent","mobile-breakpoint":"0",height:"41","hide-slider":""},model:{value:e.tab,callback:function(n){e.tab=n},expression:"tab"}},[t(gu,{key:"status"},[t(w,{attrs:{left:""}},[e._v(" $printer3d ")]),e._v(" "+e._s(e.$t("app.printer.state."+e.printerState)||e.printerState)+" ")],1),e.supportsHistoryComponent&&!(e.printerPrinting||e.printerPaused)?t(gu,{key:"reprint"},[e._v(" "+e._s(e.$t("app.general.btn.reprint"))+" ")]):e._e()],1)]}},{key:"menu",fn:function(){return[e.printerPrinting||e.printerPaused||e.filename?t("status-controls",{on:{print:function(s){return e.handlePrint(s)}}}):e._e()]},proxy:!0},{key:"collapsed-content",fn:function(){return[e.printerPrinting||e.printerPaused||e.filename?t(Ys,{attrs:{height:6,value:e.estimates.progress,color:"primary"}}):e._e()]},proxy:!0}])},[e.FileSystemSelectLineDialogState.open?t("file-system-select-line-dialog",{attrs:{filename:e.FileSystemSelectLineDialogState.filename},model:{value:e.FileSystemSelectLineDialogState.open,callback:function(s){e.$set(e.FileSystemSelectLineDialogState,"open",s)},expression:"FileSystemSelectLineDialogState.open"}}):e._e(),t(Hm,{attrs:{touchless:""},model:{value:e.tab,callback:function(s){e.tab=s},expression:"tab"}},[t(Uh,{key:"status"},[t("status-tab")],1),e.supportsHistoryComponent?t(Uh,{key:"reprint"},[t("reprint-tab",{on:{print:function(s){return e.handlePrint(s)}}})],1):e._e()],1)],1)},eY=[],tY=A(Xh,JZ,eY,!1,null,"9fb01e6b");const rY=tY.exports;var sY=Object.defineProperty,nY=Object.getOwnPropertyDescriptor,Wm=(r,e,t,s)=>{for(var n=s>1?void 0:s?nY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&sY(e,t,n),n};let Jo=class extends b{constructor(){super(...arguments);f(this,"value");f(this,"message");f(this,"icon")}};Wm([$({type:Boolean})],Jo.prototype,"value",2);Wm([$({type:String,required:!0})],Jo.prototype,"message",2);Wm([$({type:String,required:!0})],Jo.prototype,"icon",2);Jo=Wm([L({})],Jo);var iY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(k6,e._b({staticClass:"dragOverlay",attrs:{value:e.value,opacity:.85}},"v-overlay",e.$attrs,!1),[t(kl,[t(te,{staticClass:"fill-height",attrs:{"align-content":"center",justify:"center","no-gutters":""}},[t(I,{staticClass:"text-h6 font-weight-light text-center",attrs:{cols:"12",sm:"6"}},[t(w,{staticClass:"mr-1",attrs:{"x-large":""}},[e._v(" "+e._s(e.icon)+" ")]),t("span",{domProps:{innerHTML:e._s(e.message)}})],1)],1)],1)],1)},aY=[],oY=A(Jo,iY,aY,!1,null,"4d322fac");const Gm=oY.exports;var lY=Object.defineProperty,cY=Object.getOwnPropertyDescriptor,uY=(r,e,t,s)=>{for(var n=s>1?void 0:s?cY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&lY(e,t,n),n};let el=class extends b{get moonrakerServiceName(){var r,e;return((e=(r=this.$store.state.server.system_info)==null?void 0:r.instance_ids)==null?void 0:e.moonraker)||"moonraker"}async _klipperReset(){this.$store.commit("socket/setAcceptNotifications",!1),await this.$store.dispatch("server/resetKlippy",void 0,{root:!0}),await this.$store.dispatch("reset",["printer","charts","wait"],{root:!0})}hostReboot(){F.machineReboot()}hostShutdown(){F.machineShutdown()}async serviceRestartKlipper(){this.serviceRestartByName("klipper")}serviceRestartMoonraker(){this.serviceRestartByName(this.moonrakerServiceName)}async serviceRestartByName(r){r===this.moonrakerServiceName?(F.serverRestart(),this.$store.commit("socket/setSocketDisconnecting",!0)):(r==="klipper"&&await this._klipperReset(),F.machineServicesRestart(r))}async serviceStartByName(r){F.machineServicesStart(r)}async serviceStopByName(r){if(r===this.moonrakerServiceName)throw new Error("Stopping the moonraker service is not supported");r==="klipper"&&await this._klipperReset(),F.machineServicesStop(r)}async restartKlippy(){await this._klipperReset(),F.printerRestart()}async firmwareRestartKlippy(){await this._klipperReset(),F.printerFirmwareRestart()}};el=uY([L],el);var dY=Object.defineProperty,pY=Object.getOwnPropertyDescriptor,qm=(r,e,t,s)=>{for(var n=s>1?void 0:s?pY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&dY(e,t,n),n};let tl=class extends Z(X){constructor(){super(...arguments);f(this,"keyName");f(this,"headers");f(this,"disabled")}handleToggleHeader(e){e.visible=!e.visible,this.$store.dispatch("config/updateHeader",{name:this.keyName,header:e})}};qm([$({type:String,required:!0})],tl.prototype,"keyName",2);qm([$({type:Array,required:!0})],tl.prototype,"headers",2);qm([$({type:Boolean})],tl.prototype,"disabled",2);tl=qm([L({})],tl);var hY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(Fe,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""}},"v-btn",n,!1),{...i,...s}),[t(w,[e._v(" $tableColumn ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.btn.select_columns")))])])]}}])},[t(Mt,{staticClass:"overflow-y-auto",attrs:{dense:""}},[e._l(e.headers,function(s){return[s.text!==""&&s.configurable?t(we,{key:s.value,on:{click:function(n){return e.handleToggleHeader(s)}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":s.visible}})],1),t(Ee,[t(xe,[e._v(e._s(s.text))])],1)],1):e._e()]})],2)],1)},fY=[],mY=A(tl,hY,fY,!1,null,null);const Zm=mY.exports;var gY=Object.defineProperty,vY=Object.getOwnPropertyDescriptor,Ht=(r,e,t,s)=>{for(var n=s>1?void 0:s?vY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&gY(e,t,n),n};let At=class extends Z(lt){constructor(){super(...arguments);f(this,"inputValue");f(this,"resetValue");f(this,"label");f(this,"rules");f(this,"disabled");f(this,"locked");f(this,"loading");f(this,"min");f(this,"max");f(this,"overridable");f(this,"step");f(this,"prefix");f(this,"suffix");f(this,"fullWidth");f(this,"form");f(this,"currentValue","");f(this,"sliderValue",0);f(this,"internalLocked",!1);f(this,"internalMax",0);f(this,"overridden",!1);f(this,"hasFocus",!1)}onValue(e){this.hasFocus||(this.currentValue=e.toString())}onCurrentValue(e){const t=+e;isNaN(t)||(this.checkOverride(t),this.sliderValue=t)}onSliderValue(e){this.hasFocus||(this.currentValue=e.toString()),this.$emit("input",e)}onLocked(e){this.internalLocked=e}onMax(){this.checkOverride(this.sliderValue)}get textRules(){const e=[...this.rules||[],this.$rules.numberValid,this.$rules.numberGreaterThanOrEqual(this.min)];return this.overridable||e.push(this.$rules.numberLessThanOrEqual(this.max)),e}checkOverride(e){e>this.max&&this.overridable?(this.overridden=!0,this.internalMax=e):(this.overridden=!1,this.internalMax=this.max)}submitValue(e){this.form.validate()&&(this.currentValue=e.toString(),this.internalLocked=this.locked,this.$emit("submit",e))}handleReset(){this.resetValue!==void 0&&(this.$emit("change",this.resetValue),this.submitValue(this.resetValue))}handleFocus(e){this.hasFocus=!0,e.target instanceof HTMLInputElement&&e.target.select()}handleBlur(){this.hasFocus&&(this.$emit("change",this.currentValue),this.currentValue=this.inputValue.toString(),this.hasFocus=!1)}handleSubmit(e){this.submitValue(e)}handleStart(e){this.hasFocus=!1,this.$emit("start",e)}handleEnd(e){this.$emit("end",e)}handleChange(e){this.$emit("change",e),this.submitValue(e)}created(){this.currentValue=this.inputValue.toString(),this.sliderValue=this.inputValue,this.internalLocked=this.locked,this.internalMax=this.max}};Ht([He({type:Number,required:!0})],At.prototype,"inputValue",2);Ht([$({type:Number})],At.prototype,"resetValue",2);Ht([$({type:String,required:!0})],At.prototype,"label",2);Ht([$({type:Array})],At.prototype,"rules",2);Ht([$({type:Boolean})],At.prototype,"disabled",2);Ht([$({type:Boolean})],At.prototype,"locked",2);Ht([$({type:Boolean})],At.prototype,"loading",2);Ht([$({type:Number,default:0})],At.prototype,"min",2);Ht([$({type:Number,default:100})],At.prototype,"max",2);Ht([$({type:Boolean})],At.prototype,"overridable",2);Ht([$({type:Number,default:1})],At.prototype,"step",2);Ht([$({type:String})],At.prototype,"prefix",2);Ht([$({type:String})],At.prototype,"suffix",2);Ht([$({type:Boolean})],At.prototype,"fullWidth",2);Ht([ke("form")],At.prototype,"form",2);Ht([Ae("value")],At.prototype,"onValue",1);Ht([Ae("currentValue")],At.prototype,"onCurrentValue",1);Ht([Ae("sliderValue")],At.prototype,"onSliderValue",1);Ht([Ae("locked")],At.prototype,"onLocked",1);Ht([Ae("max")],At.prototype,"onMax",1);At=Ht([L({})],At);var _Y=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Tl,{ref:"form",class:{"full-width-slider":e.fullWidth},on:{submit:function(s){s.preventDefault()}}},[t(te,{attrs:{"no-gutters":""}},[t(I,{staticClass:"text-body-1 py-0",class:{"text--disabled":e.disabled},attrs:{cols:"12",sm:"5","align-self":"center"},domProps:{innerHTML:e._s(e.label)}}),t(I,{staticClass:"py-0"},[t(ae,{staticClass:"v-input--text-right",attrs:{prefix:e.prefix,suffix:e.suffix,rules:e.textRules,disabled:e.disabled||e.loading||e.internalLocked,step:e.step,type:"number",dense:"","single-line":"",outlined:"","hide-details":""},on:{focus:e.handleFocus,blur:e.handleBlur,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmit(+e.currentValue)}},scopedSlots:e._u([{key:"prepend",fn:function(){return[e.locked&&e.isMobileViewport?t(Fe,{staticStyle:{"margin-top":"-4px"},attrs:{icon:"",small:"",disabled:e.disabled},on:{click:function(s){e.internalLocked=!e.internalLocked}}},[e.internalLocked?t(w,{attrs:{small:""}},[e._v(" $pencil ")]):t(w,{attrs:{small:""}},[e._v(" $lockReset ")])],1):e._e(),e.resetValue!==void 0?t(M,{staticStyle:{"margin-top":"-4px"},attrs:{disabled:e.disabled||e.loading,color:"",icon:"",small:""},on:{click:e.handleReset}},[t(w,{attrs:{small:""}},[e._v(" $reset ")])],1):e._e()]},proxy:!0}]),model:{value:e.currentValue,callback:function(s){e.currentValue=s},expression:"currentValue"}})],1)],1),t(qv,{attrs:{min:e.min,max:e.internalMax,step:e.step,disabled:e.disabled||e.loading||e.internalLocked||e.overridden,dense:"","hide-details":""},on:{start:e.handleStart,end:e.handleEnd,change:e.handleChange},model:{value:e.sliderValue,callback:function(s){e.sliderValue=s},expression:"sliderValue"}})],1)},yY=[],bY=A(At,_Y,yY,!1,null,"431ab3a9");const Ft=bY.exports;var $Y=Object.defineProperty,SY=Object.getOwnPropertyDescriptor,Tb=(r,e,t,s)=>{for(var n=s>1?void 0:s?SY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&$Y(e,t,n),n};let _u=class extends b{constructor(){super(...arguments);f(this,"thumbnailSize");f(this,"disabled")}};Tb([He({type:Number,required:!0})],_u.prototype,"thumbnailSize",2);Tb([$({type:Boolean})],_u.prototype,"disabled",2);_u=Tb([L({})],_u);var wY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(Fe,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""}},"v-btn",n,!1),{...i,...s}),[t(w,[e._v(" $imageSizeSelectLarge ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.btn.thumbnail_size")))])])]}}])},[t(ut,{staticClass:"pa-2"},[t(Ft,{staticClass:"ma-1",attrs:{label:e.$t("app.general.label.thumbnail_size"),min:32,max:192,step:16,"reset-value":32,suffix:"px"},model:{value:e.thumbnailSize,callback:function(s){e.thumbnailSize=s},expression:"thumbnailSize"}})],1)],1)},xY=[],CY=A(_u,wY,xY,!1,null,null);const PY=CY.exports,LY=r=>r.isFile,AY=r=>r.isDirectory,EY=async r=>{try{return new Promise((e,t)=>r.file(e,t))}catch(e){ye.error("[FileSystemFileEntry] file",e)}},OY=async r=>{try{return new Promise((e,t)=>r.readEntries(e,t))}catch(e){ye.error("[FileSystemDirectoryReader] readEntries",e)}},r_=r=>r.items.length?[...r.items].every(e=>e.kind==="file"):r.files.length>0,d8=async r=>{if(r.items.length){const e=[...r.items].map(t=>t.webkitGetAsEntry()).filter(t=>!!t);return await h8(e)}else if(r.files.length)return p8(r.files)},TY=async r=>{var e;if(r.webkitEntries.length)return await h8(r.webkitEntries);if((e=r.files)!=null&&e.length)return p8(r.files)},p8=r=>[...r].map(e=>({file:e,path:e.webkitRelativePath===e.name?"":e.webkitRelativePath.slice(0,-e.name.length-1)})),h8=async r=>{const e=[],t=r.map(n=>({entry:n,path:""}));let s=t.pop();for(;s;){if(LY(s.entry)){const n=await EY(s.entry);n&&e.push({file:n,path:s.path})}else if(AY(s.entry)){const n=await OY(s.entry.createReader());if(n)for(const i of n)t.push({entry:i,path:s.path?`${s.path}/${s.entry.name}`:s.entry.name})}s=t.pop()}return e},kY=r=>new Promise((e,t)=>{const s=new FileReader;s.onload=()=>e(s.result),s.onerror=n=>t(n),s.readAsText(r,"UTF8")});var DY=Object.defineProperty,MY=Object.getOwnPropertyDescriptor,Ym=(r,e,t,s)=>{for(var n=s>1?void 0:s?MY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&DY(e,t,n),n};let rl=class extends Z(X){constructor(){super(...arguments);f(this,"root");f(this,"disabled");f(this,"uploadFile");f(this,"andPrint",!1)}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get accepts(){return this.rootProperties.accepts.join(",")}get printerReady(){return!this.printerPrinting&&!this.printerPaused&&this.klippyReady}emulateClick(t,s=!1){this.andPrint=t,this.uploadFile.multiple=!t,this.uploadFile.webkitdirectory=s,this.uploadFile.click()}async fileChanged(t){if(t.target instanceof HTMLInputElement){const s=await TY(t.target);s&&this.$emit("upload",s,this.andPrint),t.target.value=""}}};Ym([$({type:String,required:!0})],rl.prototype,"root",2);Ym([$({type:Boolean})],rl.prototype,"disabled",2);Ym([ke("uploadFile")],rl.prototype,"uploadFile",2);rl=Ym([L({})],rl);var RY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(Fe,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""}},"v-btn",n,!1),{...s,...i}),[t(w,[e._v(" $plus ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.btn.add")))])])]}}])},[t(Mt,{attrs:{dense:""}},[t(we,{attrs:{disabled:e.disabled},on:{click:function(s){return e.emulateClick(!1)}}},[t(qe,[t(w,[e._v(" $fileUpload ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.upload_files"))+" ")])],1)],1),t(we,{attrs:{disabled:e.disabled},on:{click:function(s){return e.emulateClick(!1,!0)}}},[t(qe,[t(w,[e._v(" $folderUpload ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.upload_folder"))+" ")])],1)],1),e.root==="gcodes"?t(we,{attrs:{disabled:e.disabled||!e.printerReady},on:{click:function(s){return e.emulateClick(!0)}}},[t(qe,[t(w,[e._v(" $progressUpload ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.upload_print"))+" ")])],1)],1):e._e(),t(we,{attrs:{disabled:e.disabled},on:{click:function(s){return e.$emit("add-file")}}},[t(qe,[t(w,[e._v(" $fileAdd ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.add_file"))+" ")])],1)],1),t(we,{attrs:{disabled:e.disabled},on:{click:function(s){return e.$emit("add-dir")}}},[t(qe,[t(w,[e._v(" $folderAdd ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.add_dir"))+" ")])],1)],1)],1),t("input",{ref:"uploadFile",staticStyle:{display:"none"},attrs:{type:"file",accept:e.accepts,multiple:""},on:{change:e.fileChanged}})],1)},IY=[],FY=A(rl,RY,IY,!1,null,null);const HY=FY.exports;var BY=Object.defineProperty,jY=Object.getOwnPropertyDescriptor,kb=(r,e,t,s)=>{for(var n=s>1?void 0:s?jY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&BY(e,t,n),n};let yu=class extends b{constructor(){super(...arguments);f(this,"root");f(this,"disabled")}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get filters(){const t=[],s=this.rootProperties.filterTypes;return s.includes("print_start_time")&&this.supportsHistoryComponent&&t.push({type:"print_start_time",text:this.$tc("app.file_system.filters.label.print_start_time")}),s.includes("hidden_files")&&t.push({type:"hidden_files",text:this.$tc("app.file_system.filters.label.hidden_files_folders")}),s.includes("klipper_backup_files")&&t.push({type:"klipper_backup_files",text:this.$tc("app.file_system.filters.label.klipper_backup_files")}),s.includes("moonraker_backup_files")&&t.push({type:"moonraker_backup_files",text:this.$tc("app.file_system.filters.label.moonraker_backup_files")}),s.includes("rolled_log_files")&&t.push({type:"rolled_log_files",text:this.$tc("app.file_system.filters.label.rolled_log_files")}),s.includes("crowsnest_backup_files")&&t.push({type:"crowsnest_backup_files",text:this.$tc("app.file_system.filters.label.crowsnest_backup_files")}),t}get selectedFilterTypes(){const t=this.$store.state.config.uiSettings.fileSystem.activeFilters[this.root]??[],s=new Set(this.filters.map(n=>n.type));return t.filter(n=>s.has(n))}set selectedFilterTypes(t){this.$emit("change",t)}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}};kb([$({type:String,required:!0})],yu.prototype,"root",2);kb([$({type:Boolean})],yu.prototype,"disabled",2);yu=kb([L({})],yu);var VY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(T6,{attrs:{bordered:"",color:"warning",dot:"",overlap:"",value:e.selectedFilterTypes.length>0,"offset-y":15,"offset-x":15}},[t(Fe,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""}},"v-btn",n,!1),{...s,...i}),[t(w,[e._v(" $filter ")])],1)],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.btn.filter")))])])]}}])},[t(Mt,{attrs:{dense:""}},[t(UU,{attrs:{multiple:""},model:{value:e.selectedFilterTypes,callback:function(s){e.selectedFilterTypes=s},expression:"selectedFilterTypes"}},e._l(e.filters,function(s){return t(we,{key:`filter-${s.type}`,attrs:{value:s.type},scopedSlots:e._u([{key:"default",fn:function({active:n}){return[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":n}})],1),t(Ee,[t(xe,[e._v(" "+e._s(s.text)+" ")]),s.desc!==void 0?t(Jp,[e._v(" "+e._s(s.desc)+" ")]):e._e()],1)]}}],null,!0)})}),1)],1)],1)},NY=[],zY=A(yu,VY,NY,!1,null,"b7e48b62");const UY=zY.exports;var WY=Object.defineProperty,GY=Object.getOwnPropertyDescriptor,Qn=(r,e,t,s)=>{for(var n=s>1?void 0:s?GY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&WY(e,t,n),n};let Ks=class extends Z(X){constructor(){super(...arguments);f(this,"root");f(this,"name");f(this,"roots");f(this,"headers");f(this,"path");f(this,"disabled");f(this,"loading");f(this,"searchModel")}get readonly(){return this.rootProperties.readonly}get canConfigure(){return this.rootProperties.canConfigure}get hasFilterTypes(){return this.rootProperties.filterTypes.length>0}get lowOnSpace(){return this.klippyReady?this.$store.getters["files/getLowOnSpace"]:!1}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get thumbnailSize(){return this.$store.state.config.uiSettings.general.thumbnailSize}set thumbnailSize(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.thumbnailSize",value:t,server:!0})}handleUpload(t,s){this.$emit("upload",t,s)}};Qn([$({type:String,required:!0})],Ks.prototype,"root",2);Qn([$({type:String,required:!0})],Ks.prototype,"name",2);Qn([$({type:Array})],Ks.prototype,"roots",2);Qn([$({type:Array})],Ks.prototype,"headers",2);Qn([$({type:String})],Ks.prototype,"path",2);Qn([$({type:Boolean})],Ks.prototype,"disabled",2);Qn([$({type:Boolean})],Ks.prototype,"loading",2);Qn([ji("search",{type:String,default:""})],Ks.prototype,"searchModel",2);Ks=Qn([L({components:{FileSystemAddMenu:HY,FileSystemFilterMenu:UY}})],Ks);var qY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(qt,{attrs:{dense:""},scopedSlots:e._u([e.roots&&e.roots.length>1?{key:"extension",fn:function(){return[t(Bm,{attrs:{"show-arrows":""}},e._l(e.roots,function(s,n){return t(gu,{key:n,on:{change:function(i){return e.$emit("root-change",s)}}},[e._v(" "+e._s(s)+" ")])}),1)]},proxy:!0}:null],null,!0)},[t(Sd,{staticClass:"d-none d-sm-block"},[t("div",{staticClass:"file-path"},[e._v(" /"+e._s(e.path)+" ")])]),t(_t),e.lowOnSpace&&!e.loading?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",text:"",small:"",color:"warning"}},"v-btn",n,!1),s),[t(w,{attrs:{color:"warning"}},[e._v(" $error ")])],1)]}}],null,!1,965673122)},[e._t("default",function(){return[t("span",[e._v(e._s(e.$t("app.file_system.tooltip.low_on_space")))])]})],2):e._e(),e.disabled&&!e.loading?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",text:"",small:"",color:"error"}},"v-btn",n,!1),s),[t(w,{attrs:{color:"error"}},[e._v(" $warning ")])],1)]}}],null,!1,189610928)},[e._t("default",function(){return[t("span",[e._v(e._s(e.$t("app.file_system.tooltip.root_disabled",{root:e.root})))])]})],2):e._e(),["gcodes","timelapse"].includes(e.root)?t(PY,{model:{value:e.thumbnailSize,callback:function(s){e.thumbnailSize=s},expression:"thumbnailSize"}}):e._e(),e.headers&&e.canConfigure?t(Zm,{attrs:{"key-name":`${e.root}_${e.name}`,headers:e.headers}}):e._e(),t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""},on:{click:function(i){return e.$emit("go-to-file")}}},"v-btn",n,!1),s),[t(w,[e._v("$magnify")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.go_to_file")))])])],1),e.hasFilterTypes?t("file-system-filter-menu",{attrs:{root:e.root,disabled:e.disabled},on:{change:function(s){return e.$emit("filter",s)}}}):e._e(),e.readonly?e._e():t("file-system-add-menu",{attrs:{root:e.root,disabled:e.disabled},on:{"add-file":function(s){return e.$emit("add-file")},"add-dir":function(s){return e.$emit("add-dir")},upload:e.handleUpload}}),t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{disabled:e.disabled,fab:"",small:"",text:""},on:{click:function(i){return e.$emit("refresh")}}},"v-btn",n,!1),s),[t(w,[e._v("$refresh")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.refresh")))])])],1),t("div",{staticClass:"ml-1",staticStyle:{"max-width":"160px"}},[t(ae,{attrs:{disabled:e.disabled,outlined:"",dense:"","single-line":"","hide-details":"","append-icon":"$magnify"},model:{value:e.searchModel,callback:function(s){e.searchModel=s},expression:"searchModel"}})],1)],1)},ZY=[],YY=A(Ks,qY,ZY,!1,null,null);const KY=YY.exports;var XY=Object.defineProperty,QY=Object.getOwnPropertyDescriptor,Db=(r,e,t,s)=>{for(var n=s>1?void 0:s?QY(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&XY(e,t,n),n};let bu=class extends Z(X){constructor(){super(...arguments);f(this,"root");f(this,"path")}};Db([$({type:String,required:!0})],bu.prototype,"root",2);Db([$({type:String})],bu.prototype,"path",2);bu=Db([L({})],bu);var JY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(qt,{attrs:{dense:""}},[t(Sd,{staticClass:"d-none d-sm-block"},[t("div",{staticClass:"file-path"},[e._v(" /"+e._s(e.path)+" ")])]),t(_t),e.root==="gcodes"?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("enqueue")}}},"v-btn",n,!1),s),[t(w,[e._v(" $enqueueJob ")])],1)]}}],null,!1,1008745685)},[t("span",[e._v(e._s(e.$t("app.general.btn.add_to_queue")))])]):e._e(),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("create-zip")}}},"v-btn",n,!1),s),[t(w,[e._v(" $fileZipAdd ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.create_zip_archive")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("remove")}}},"v-btn",n,!1),s),[t(w,[e._v(" $delete ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.delete")))])])],1)},eK=[],tK=A(bu,JY,eK,!1,null,null);const rK=tK.exports;var sK=Object.defineProperty,nK=Object.getOwnPropertyDescriptor,Ld=(r,e,t,s)=>{for(var n=s>1?void 0:s?nK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&sK(e,t,n),n};let Ta=class extends b{constructor(){super(...arguments);f(this,"itemValue");f(this,"headers");f(this,"nowrap");f(this,"right")}get isVisible(){return this.headers!==void 0&&this.itemValue!==void 0?this.headers.findIndex(s=>{const n=s.key?s.key:s.value;return this.itemValue===n})>=0:!0}};Ld([$({type:String})],Ta.prototype,"itemValue",2);Ld([$({type:Array})],Ta.prototype,"headers",2);Ld([$({type:Boolean,default:!0})],Ta.prototype,"nowrap",2);Ld([$({type:Boolean})],Ta.prototype,"right",2);Ta=Ld([L({})],Ta);var iK=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isVisible?t("td",{class:{"text-end":e.right},attrs:{nowrap:e.nowrap}},[e._t("default"),e.$slots.default?e._e():t("span",[e._v("--")])],2):e._e()},aK=[],oK=A(Ta,iK,aK,!1,null,null);const lK=oK.exports;var cK=Object.defineProperty,uK=Object.getOwnPropertyDescriptor,tn=(r,e,t,s)=>{for(var n=s>1?void 0:s?uK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&cK(e,t,n),n};let cs=class extends Z(dr){constructor(){super(...arguments);f(this,"selected");f(this,"root");f(this,"files");f(this,"dense");f(this,"loading");f(this,"headers");f(this,"search");f(this,"dragStateModel");f(this,"disabled");f(this,"bulkActions");f(this,"dragItem",null);f(this,"ghost")}get showHistory(){return this.$store.getters["server/componentSupport"]("history")&&this.root==="gcodes"}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get readonly(){return this.rootProperties.readonly}get thumbnailSize(){const t=this.$store.state.config.uiSettings.general.thumbnailSize;return this.dense?t/2:t}get textSortOrder(){return this.$store.state.config.uiSettings.general.textSortOrder}get draggedItems(){if(this.dragItem){const t=this.selected.filter(n=>n.name!=="..");return t.length>0?t:[this.dragItem]}return[]}get sortBy(){return this.$store.state.config.uiSettings.fileSystem.sortBy[this.root]??"modified"}set sortBy(t){this.$store.dispatch("config/updateFileSystemSortBy",{root:this.root,value:t??null})}get sortDesc(){return this.$store.state.config.uiSettings.fileSystem.sortDesc[this.root]??!0}set sortDesc(t){this.$store.dispatch("config/updateFileSystemSortDesc",{root:this.root,value:t??null})}customSort(t,s,n,i){return this.$filters.fileSystemSort(t,s,n,i,this.textSortOrder)}handleSelected(t){t.length===1&&(t[0].name===".."?t=[]:t=this.files.filter(s=>s.name===t[0].name||s.name==="..")),this.$emit("input",t)}getItemIcon(t){const s=!this.isItemWriteable(t);return t.type==="file"?t.extension==="zip"?s?"$fileZipLock":"$fileZip":zC.includes(`.${t.extension}`)||UC.includes(`.${t.extension}`)?s?"$fileImageLock":"$fileImage":s?"$fileLock":"$file":t.name===".."?"$folderUp":s?"$folderLock":"$folder"}isItemDraggable(t){return t.name!==".."&&this.files.length>0&&(this.selected.length===0||this.selected.includes(t))}isItemWriteable(t){return!this.readonly&&(t.permissions===void 0||t.permissions.includes("w"))}handleDragStart(t,s){if(this.dragStateModel!==!0&&(this.dragItem=t,this.dragStateModel=!0),s.dataTransfer){const n=this.draggedItems;this.ghost=document.createElement("div"),this.ghost.classList.add("bulk-drag"),this.ghost.classList.add(this.$vuetify.theme.dark?"theme--dark":"theme--light"),this.ghost.innerHTML=n.length>1?this.$tc("app.file_system.tooltip.items_count",n.length):t.name,document.body.appendChild(this.ghost),s.dataTransfer.effectAllowed="all",s.dataTransfer.setDragImage(this.ghost,0,0),this.$emit("drag-start",t,n,s.dataTransfer)}}handleDrop(t,s){if(this.handleDragLeave(s),t.type==="directory"&&this.isItemWriteable(t)&&s.dataTransfer&&this.dragItem&&this.dragItem!==t){const n=this.draggedItems;n.includes(t)||this.$emit("move",n,t)}}handleDragOver(t,s){if(t.type==="directory"&&this.isItemWriteable(t)&&s.dataTransfer&&this.dragItem&&this.dragItem!==t&&!this.draggedItems.includes(t)&&(s.preventDefault(),s.dataTransfer.dropEffect="move",s.target instanceof HTMLElement)){let n=s.target;for(;n;){if(n.tagName==="TR"){n.classList.add("active");return}n=n.parentElement}}}handleDragLeave(t){if(t.target instanceof HTMLElement){let s=t.target;for(;s;){if(s.tagName==="TR"){s.classList.remove("active");return}s=s.parentElement}}}handleDragEnd(){const t=this.ghost;t&&(document.body.removeChild(t),this.ghost=void 0),this.dragItem=null,this.dragStateModel=!1}};tn([He({type:Array,required:!0})],cs.prototype,"selected",2);tn([$({type:String,required:!0})],cs.prototype,"root",2);tn([$({type:Array,required:!0})],cs.prototype,"files",2);tn([$({type:Boolean})],cs.prototype,"dense",2);tn([$({type:Boolean})],cs.prototype,"loading",2);tn([$({type:Array,required:!0})],cs.prototype,"headers",2);tn([$({type:String})],cs.prototype,"search",2);tn([ji("dragState",{type:Boolean,required:!0})],cs.prototype,"dragStateModel",2);tn([$({type:Boolean})],cs.prototype,"disabled",2);tn([$({type:Boolean})],cs.prototype,"bulkActions",2);cs=tn([L({components:{FileRowItem:lK}})],cs);var dK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"file-system"},[t($d,{staticClass:"rounded-0",attrs:{value:e.selected,headers:e.headers,items:e.files,dense:e.dense,"disable-pagination":"",loading:e.loading,"custom-sort":e.customSort,search:e.search,"show-select":e.bulkActions,"no-data-text":e.$t("app.file_system.msg.not_found"),"no-results-text":e.$t("app.file_system.msg.not_found"),"item-key":"name",height:"100%","mobile-breakpoint":"0","must-sort":"","sort-by":e.sortBy,"sort-desc":e.sortDesc,"hide-default-footer":"","fixed-header":""},on:{"update:sortBy":function(s){e.sortBy=s},"update:sort-by":function(s){e.sortBy=s},"update:sortDesc":function(s){e.sortDesc=s},"update:sort-desc":function(s){e.sortDesc=s},input:e.handleSelected},scopedSlots:e._u([{key:"item",fn:function({item:s,isSelected:n,select:i}){return[t("tr",{staticClass:"row-select px-1",class:{"is-disabled":e.disabled,"v-data-table__selected":n&&s.name!==".."},attrs:{draggable:e.isItemDraggable(s)},on:{click:function(a){return a.preventDefault(),e.$emit("row-click",s,a)},contextmenu:function(a){return a.preventDefault(),e.$emit("row-click",s,a)},dragstart:function(a){return e.handleDragStart(s,a)},dragend:e.handleDragEnd,dragover:function(a){return e.handleDragOver(s,a)},dragenter:function(a){a.preventDefault()},dragleave:function(a){return a.preventDefault(),e.handleDragLeave.apply(null,arguments)},drop:function(a){return a.preventDefault(),e.handleDrop(s,a)}}},[e.bulkActions?t("td",[s.name!==".."?t(Om,{directives:[{name:"ripple",rawName:"v-ripple"}],staticClass:"mt-1",attrs:{value:n,color:""},on:{click:function(a){return a.stopPropagation(),i(!n)}}}):e._e()],1):e._e(),t("td",[t(Ur,{attrs:{"justify-center":""}},[!s.thumbnails||!s.thumbnails.length?t(w,{attrs:{small:e.dense,color:s.type==="file"?"grey":"primary"}},[e._v(" "+e._s(e.getItemIcon(s))+" ")]):t("img",{style:{"max-width":`${e.thumbnailSize}px`,"max-height":`${e.thumbnailSize}px`},attrs:{src:e.getThumbUrl(s,e.root,s.path,e.thumbnailSize>16,s.modified)}})],1)],1),t("file-row-item",{attrs:{nowrap:!1}},[e._v(" "+e._s(s.name)+" ")]),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"object_height"}},[s.object_height!==void 0?t("span",[e._v(" "+e._s(e.$filters.getReadableLengthString(s.object_height))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"first_layer_height"}},[s.first_layer_height!==void 0?t("span",[e._v(" "+e._s(s.first_layer_height)+" mm ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"layer_height"}},[s.layer_height!==void 0?t("span",[e._v(" "+e._s(s.layer_height)+" mm ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"filament_name"}},[s.filament_name!==void 0?t("span",[e._v(" "+e._s(s.filament_name)+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"filament_type"}},[s.filament_type!==void 0?t("span",[e._v(" "+e._s(s.filament_type)+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"filament_total"}},[s.filament_total!==void 0?t("span",[e._v(" "+e._s(e.$filters.getReadableLengthString(s.filament_total))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"filament_weight_total"}},[s.filament_weight_total!==void 0?t("span",[e._v(" "+e._s(e.$filters.getReadableWeightString(s.filament_weight_total))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"history.filament_used"}},[s.history&&s.history.filament_used!==void 0?t("span",[e._v(" "+e._s(e.$filters.getReadableLengthString(s.history.filament_used))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"nozzle_diameter"}},[s.nozzle_diameter!==void 0?t("span",[e._v(" "+e._s(s.nozzle_diameter)+" mm ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"slicer"}},[s.slicer!==void 0?t("span",[e._v(" "+e._s(s.slicer)+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"slicer_version"}},[s.slicer_version!==void 0?t("span",[e._v(" "+e._s(s.slicer_version)+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"estimated_time"}},[s.estimated_time!==void 0?t("span",[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.estimated_time))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"history.print_duration"}},[s.history&&s.history.print_duration!==void 0?t("span",[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.history.print_duration))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"history.total_duration"}},[s.history&&s.history.total_duration!==void 0?t("span",[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.history.total_duration))+" ")]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"first_layer_bed_temp"}},[s.first_layer_bed_temp!==void 0?t("span",[e._v(" "+e._s(s.first_layer_bed_temp)),t("small",[e._v("°C")])]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"first_layer_extr_temp"}},[s.first_layer_extr_temp!==void 0?t("span",[e._v(" "+e._s(s.first_layer_extr_temp)),t("small",[e._v("°C")])]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"chamber_temp"}},[s.chamber_temp!==void 0?t("span",[e._v(" "+e._s(s.chamber_temp)),t("small",[e._v("°C")])]):e._e()]):e._e(),e.root==="gcodes"?t("file-row-item",{attrs:{headers:e.headers,"item-value":"print_start_time"}},[s.print_start_time!==void 0&&s.print_start_time!==null?t("span",[e._v(" "+e._s(e.$filters.formatDateTime(s.print_start_time*1e3))+" ")]):e._e()]):e._e(),t("file-row-item",{attrs:{headers:e.headers,"item-value":"modified"}},[s.modified!==void 0&&s.name!==".."?t("span",[e._v(" "+e._s(e.$filters.formatDateTime(s.modified*1e3))+" ")]):e._e()]),t("file-row-item",{attrs:{headers:e.headers,"item-value":"size"}},[s.size!==void 0&&s.name!==".."?t("span",[e._v(" "+e._s(e.$filters.getReadableFileSizeString(s.size))+" ")]):e._e()])],1)]}}])})],1)},pK=[],hK=A(cs,dK,pK,!1,null,"97cf8f8c");const fK=hK.exports;var mK=Object.defineProperty,gK=Object.getOwnPropertyDescriptor,Rl=(r,e,t,s)=>{for(var n=s>1?void 0:s?gK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&mK(e,t,n),n};let Ti=class extends Z(X,dr){constructor(){super(...arguments);f(this,"open");f(this,"root");f(this,"file");f(this,"positionX");f(this,"positionY")}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.root)}get canPrint(){return this.root==="gcodes"&&!Array.isArray(this.file)&&this.file.type!=="directory"&&this.rootProperties.accepts.includes(`.${this.file.extension}`)}get canEdit(){return!Array.isArray(this.file)&&this.file.type!=="directory"&&(this.file.permissions===void 0||this.file.permissions.includes("r"))}get canView(){return!Array.isArray(this.file)&&this.file.type!=="directory"&&this.rootProperties.canView.includes(`.${this.file.extension}`)&&(this.file.permissions===void 0||this.file.permissions.includes("r"))}get canPreheat(){return this.root==="gcodes"&&!Array.isArray(this.file)&&"first_layer_extr_temp"in this.file&&"first_layer_bed_temp"in this.file}get printerReady(){return!this.printerPrinting&&!this.printerPaused&&this.klippyReady}get canPreviewGcode(){return this.root==="gcodes"&&!Array.isArray(this.file)&&this.file.type==="file"&&this.file.extension==="gcode"}get canCreateZip(){return(Array.isArray(this.file)||this.file.type!=="file"||this.file.extension!=="zip")&&!this.rootProperties.readonly&&this.$store.getters["server/getIsMinApiVersion"]("1.1.0")}get canAddToQueue(){const t=Array.isArray(this.file)?this.file:[this.file];return this.root==="gcodes"&&t.some(s=>s.type!=="directory"&&this.rootProperties.accepts.includes("."+s.extension))&&this.$store.getters["server/componentSupport"]("job_queue")}};Rl([He({type:Boolean})],Ti.prototype,"open",2);Rl([$({type:String,required:!0})],Ti.prototype,"root",2);Rl([$({type:[Object,Array],required:!0})],Ti.prototype,"file",2);Rl([$({type:Number,required:!0})],Ti.prototype,"positionX",2);Rl([$({type:Number,required:!0})],Ti.prototype,"positionY",2);Ti=Rl([L({})],Ti);var vK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{transition:"slide-y-transition","position-x":e.positionX,"position-y":e.positionY,"min-width":"180",absolute:"",right:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Ie,[t(te,{attrs:{align:"center",justify:"center","no-gutters":""}},[t(I,[t(Mt,{attrs:{dense:""}},[e.canPrint?t(we,{attrs:{disabled:!e.printerReady},on:{click:function(s){return e.$emit("print",e.file)}}},[t(qe,[t(w,[e._v(" $printer ")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.print")))])],1)],1):e._e(),e.canAddToQueue?t(we,{on:{click:function(s){return e.$emit("enqueue",e.file)}}},[t(qe,[t(w,[e._v("$enqueueJob")])],1),t(xe,[e._v(e._s(e.$t("app.general.btn.add_to_queue")))])],1):e._e(),e.canPreheat?t(we,{attrs:{disabled:!e.printerReady},on:{click:function(s){return e.$emit("preheat",e.file)}}},[t(qe,[t(w,[e._v(" $fire ")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.preheat")))])],1)],1):e._e(),e.canView?t(we,{on:{click:function(s){return e.$emit("view",e.file)}}},[t(qe,[t(w,[e._v("$open")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.view")))])],1)],1):e._e(),e.canEdit?t(we,{on:{click:function(s){return e.$emit("edit",e.file)}}},[t(qe,[t(w,[e._v("$pencil")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.edit")))])],1)],1):e._e(),e.canPrint?t(we,{on:{click:function(s){return e.$emit("refresh-metadata",e.file)}}},[t(qe,[t(w,[e._v("$sync")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.refresh_metadata")))])],1)],1):e._e(),e.canPreviewGcode?t(we,{on:{click:function(s){return e.$emit("preview-gcode",e.file)}}},[t(qe,[t(w,[e._v("$cubeScan")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.preview_gcode")))])],1)],1):e._e(),e.canCreateZip?t(we,{on:{click:function(s){return e.$emit("create-zip",e.file)}}},[t(qe,[t(w,[e._v("$fileZipAdd")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.create_zip_archive")))])],1)],1):e._e(),!Array.isArray(e.file)&&e.file.type!=="directory"?t(we,{on:{click:function(s){return e.$emit("download",e.file)}}},[t(qe,[t(w,[e._v("$download")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.download")))])],1)],1):e._e(),!Array.isArray(e.file)&&!e.rootProperties.readonly?t(we,{on:{click:function(s){return e.$emit("rename",e.file)}}},[t(qe,[t(w,[e._v("$rename")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.rename")))])],1)],1):e._e(),!Array.isArray(e.file)&&!e.rootProperties.readonly?t(we,{on:{click:function(s){return e.$emit("duplicate",e.file)}}},[t(qe,[t(w,[e._v("$duplicate")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.duplicate")))])],1)],1):e._e(),e.rootProperties.readonly?e._e():t(we,{on:{click:function(s){return e.$emit("remove",e.file)}}},[t(qe,[t(w,[e._v("$delete")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.remove")))])],1)],1)],1)],1),"thumbnails"in e.file&&e.file.thumbnails&&e.file.thumbnails.length?t(I,{staticClass:"px-2 d-none d-sm-flex"},[t(Fe,{attrs:{text:"",height:"100%"},on:{click:function(s){return e.$emit("view-thumbnail",e.file)}}},[t("img",{staticClass:"mx-2",attrs:{src:e.getThumbUrl(e.file,e.root,e.file.path,!0,e.file.modified),height:150}})])],1):e._e()],1)],1)],1)},_K=[],yK=A(Ti,vK,_K,!1,null,null);const bK=yK.exports;var $K=Object.defineProperty,SK=Object.getOwnPropertyDescriptor,f8=(r,e,t,s)=>{for(var n=s>1?void 0:s?SK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&$K(e,t,n),n};let Qh=class extends b{constructor(){super(...arguments);f(this,"inputValue");f(this,"hasCopied",!1)}handleCopy(){this.inputValue&&navigator.clipboard&&(navigator.clipboard.writeText(this.inputValue.toString()),this.hasCopied=!0,setTimeout(()=>{this.hasCopied=!1},2e3))}};f8([He()],Qh.prototype,"inputValue",2);Qh=f8([L({})],Qh);var wK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ae,e._g(e._b({staticClass:"app-text-field",scopedSlots:e._u([{key:"append-outer",fn:function(){return[t(Oe,{attrs:{"close-delay":e.hasCopied?2e3:void 0,"open-on-focus":!1,bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({staticClass:"btn-copy",attrs:{icon:"",text:""},on:{click:e.handleCopy}},"v-btn",n,!1),s),[t(Ol,{attrs:{"leave-absolute":""}},[t(w,{key:e.hasCopied,staticClass:"icon-copy"},[e._v(" "+e._s(e.hasCopied?"$check":"$contentCopy")+" ")])],1)],1)]}}])},[t("span",[e._v(e._s(e.hasCopied?e.$t("app.general.btn.copied"):e.$t("app.general.btn.copy")))])])]},proxy:!0}]),model:{value:e.inputValue,callback:function(s){e.inputValue=s},expression:"inputValue"}},"v-text-field",e.$attrs,!1),e.$listeners))},xK=[],CK=A(Qh,wK,xK,!1,null,"0443802c");const mp=CK.exports;var PK=Object.defineProperty,LK=Object.getOwnPropertyDescriptor,m8=(r,e,t,s)=>{for(var n=s>1?void 0:s?LK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&PK(e,t,n),n};let Jh=class extends Z(X){constructor(){super(...arguments);f(this,"open");f(this,"tab",null)}get peripherals(){return this.$store.state.server.peripherals}get canbusUuids(){return this.$store.state.server.can_uuids}get systemInfo(){return this.$store.state.server.system_info}get canbusInterfaces(){var t;return Object.keys(((t=this.systemInfo)==null?void 0:t.canbus)??{})}get peripheralGroups(){var s,n;const t=[{type:"serial",count:(s=this.peripherals.serial_devices)==null?void 0:s.length},{type:"usb",count:(n=this.peripherals.usb_devices)==null?void 0:n.length},{type:"video",count:this.peripherals.v4l2_devices&&this.peripherals.libcamera_devices?this.peripherals.v4l2_devices.length+this.peripherals.libcamera_devices.length:void 0}];return this.canbusInterfaces.length>0&&t.push({type:"can",count:this.canbusUuids?Object.values(this.canbusUuids).reduce((i,a)=>i+a.length,0):void 0}),t}get currentPeripheralGroup(){return this.tab!=null&&this.peripheralGroups[this.tab]}hasWaitFor(t){switch(t.type){case"serial":return this.hasWait(this.$waits.onMachinePeripheralsSerial);case"usb":return this.hasWait(this.$waits.onMachinePeripheralsUsb);case"video":return this.hasWait(this.$waits.onMachinePeripheralsVideo);case"can":return this.hasWaitsBy(`${this.$waits.onMachinePeripheralsCanbus}/`)}}handleRefresh(){const t=this.currentPeripheralGroup;if(t)switch(t.type){case"serial":F.machinePeripheralsSerial();break;case"usb":F.machinePeripheralsUsb();break;case"video":F.machinePeripheralsVideo();break;case"can":for(const s in this.canbusInterfaces)F.machinePeripheralsCanbus(s);break}}};m8([He({type:Boolean})],Jh.prototype,"open",2);Jh=m8([L({})],Jh);var AK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.system_info.label.devices"),"max-width":"550","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(qt,{attrs:{dense:""}},[t(Bm,{attrs:{"show-arrows":""},model:{value:e.tab,callback:function(s){e.tab=s},expression:"tab"}},e._l(e.peripheralGroups,function(s){return t(gu,{key:s.type},[t("div",[e._v(" "+e._s(e.$filters.prettyCase(s.type))+" "),t(gr,{staticClass:"ml-2",attrs:{small:"",link:""}},[e._v(" "+e._s(s.count??"?")+" ")])],1)])}),1),t(_t),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",text:"",small:"",disabled:!e.currentPeripheralGroup||e.hasWaitFor(e.currentPeripheralGroup)},on:{click:function(i){return i.preventDefault(),i.stopPropagation(),e.handleRefresh()}}},"v-btn",n,!1),s),[t(w,{class:{"spin-alt":e.currentPeripheralGroup&&e.hasWaitFor(e.currentPeripheralGroup)}},[e._v(" $refresh ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.refresh")))])])],1),t(Pe,{staticClass:"fill-height"},[t(Hm,{attrs:{touchless:""},model:{value:e.tab,callback:function(s){e.tab=s},expression:"tab"}},e._l(e.peripheralGroups,function(s){return t(Uh,{key:s.type},[s.count==null?[e._v(" "+e._s(e.$t("app.system_info.msg.no_devices_searched"))+" ")]:s.count==0?[e._v(" "+e._s(e.$t("app.system_info.msg.no_devices_found"))+" "),s.type==="can"?t(Vn,{staticClass:"mt-4 mb-0",attrs:{type:"info",text:""}},[t("span",{domProps:{innerHTML:e._s(e.$t("app.system_info.msg.canbus_warning"))}})]):e._e()]:s.type==="serial"?e._l(e.peripherals.serial_devices,function(n,i){return t(te,{key:i},[t(I,[t(Ie,{attrs:{outlined:""}},[t(jr,[e._v(e._s(n.device_name))]),t(aa,[e._v(e._s(e.$filters.prettyCase(n.device_type)))]),t(Pe,[t(te,[t(I,[t(mp,{attrs:{value:n.device_path,label:"device_path",outlined:"",dense:"",readonly:"","hide-details":""}})],1)],1),n.path_by_id?t(te,[t(I,[t(mp,{attrs:{value:n.path_by_id,label:"path_by_id",outlined:"",dense:"",readonly:"","hide-details":""}})],1)],1):e._e(),n.path_by_hardware?t(te,[t(I,[t(mp,{attrs:{value:n.path_by_hardware,label:"path_by_hardware",outlined:"",dense:"",readonly:"","hide-details":""}})],1)],1):e._e()],1),t(R),t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v("driver_name")]),t("td",[e._v(e._s(n.driver_name))])]),n.usb_location?t("tr",[t("th",[e._v("usb_location")]),t("td",[e._v(e._s(n.usb_location))])]):e._e()])])],1)],1)],1)}):s.type==="usb"?e._l(e.peripherals.usb_devices,function(n,i){return t(te,{key:i},[t(I,[t(Ie,{attrs:{outlined:""}},[t(jr,[e._v(e._s(n.product??e.$t("app.general.label.unknown"))+" ("+e._s(n.vendor_id)+":"+e._s(n.product_id)+")")]),t(aa,[e._v(e._s(n.description??e.$t("app.general.label.unknown")))]),t(R),t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v("usb_location")]),t("td",[e._v(e._s(n.usb_location))])]),n.manufacturer?t("tr",[t("th",[e._v("manufacturer")]),t("td",[e._v(e._s(n.manufacturer))])]):e._e(),n.protocol?t("tr",[t("th",[e._v("protocol")]),t("td",[e._v(e._s(n.protocol))])]):e._e(),n.serial?t("tr",[t("th",[e._v("serial")]),t("td",[e._v(e._s(n.serial))])]):e._e(),n.class?t("tr",[t("th",[e._v("class")]),t("td",[e._v(e._s(n.subclass?`${n.class}, ${n.subclass}`:n.class))])]):e._e()])])],1)],1)],1)}):s.type==="video"?[e._l(e.peripherals.v4l2_devices,function(n,i){return t(te,{key:i},[t(I,[t(Ie,{attrs:{outlined:""}},[t(jr,[e._v(e._s(n.camera_name))]),t(aa,[e._v(e._s(n.hardware_bus))]),t(R),t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v("device_name")]),t("td",[e._v(e._s(n.device_name))])]),t("tr",[t("th",[e._v("device_path")]),t("td",[e._v(e._s(n.device_path))])]),n.path_by_id?t("tr",[t("th",[e._v("path_by_id")]),t("td",[e._v(e._s(n.path_by_id))])]):e._e(),n.path_by_hardware?t("tr",[t("th",[e._v("path_by_hardware")]),t("td",[e._v(e._s(n.path_by_hardware))])]):e._e(),n.usb_location?t("tr",[t("th",[e._v("usb_location")]),t("td",[e._v(e._s(n.usb_location))])]):e._e(),e._l(n.modes,function(a){return t("tr",{key:a.format},[t("th",[e._v(e._s(a.format)+" resoulutions")]),t("td",[e._v(e._s(a.resolutions.join(", ")))])])})],2)])],1)],1)],1)}),e._l(e.peripherals.libcamera_devices,function(n,i){return t(te,{key:i},[t(I,[t(Ie,{attrs:{outlined:""}},[t(jr,[e._v(e._s(n.model))]),t(aa,[e._v("Libcamera")]),t(R),t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v("libcamera_id")]),t("td",[e._v(e._s(n.libcamera_id))])]),e._l(n.modes,function(a){return t("tr",{key:a.format},[t("th",[e._v(e._s(a.format)+" resoulutions")]),t("td",[e._v(e._s(a.resolutions.join(", ")))])])})],2)])],1)],1)],1)})]:s.type==="can"?e._l(e.canbusUuids,function(n,i,a){return t(te,{key:a},[t(I,[t(Ie,{attrs:{outlined:""}},[t(jr,[e._v(e._s(i))]),t(R),t(Pe,e._l(n,function(o,l){return t(te,{key:l},[t(I,[t(mp,{attrs:{value:o.uuid,label:o.application,outlined:"",dense:"",readonly:"","hide-details":""}})],1)],1)}),1)],1)],1)],1)}):e._e()],2)}),1)],1)],1)},EK=[],OK=A(Jh,AK,EK,!1,null,"8648246c");const g8=OK.exports;var Mb=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Il(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function TK(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(s){var n=Object.getOwnPropertyDescriptor(r,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return r[s]}})}),t}var v8={exports:{}},_8={exports:{}};(function(){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e={rotl:function(t,s){return t<<s|t>>>32-s},rotr:function(t,s){return t<<32-s|t>>>s},endian:function(t){if(t.constructor==Number)return e.rotl(t,8)&16711935|e.rotl(t,24)&4278255360;for(var s=0;s<t.length;s++)t[s]=e.endian(t[s]);return t},randomBytes:function(t){for(var s=[];t>0;t--)s.push(Math.floor(Math.random()*256));return s},bytesToWords:function(t){for(var s=[],n=0,i=0;n<t.length;n++,i+=8)s[i>>>5]|=t[n]<<24-i%32;return s},wordsToBytes:function(t){for(var s=[],n=0;n<t.length*32;n+=8)s.push(t[n>>>5]>>>24-n%32&255);return s},bytesToHex:function(t){for(var s=[],n=0;n<t.length;n++)s.push((t[n]>>>4).toString(16)),s.push((t[n]&15).toString(16));return s.join("")},hexToBytes:function(t){for(var s=[],n=0;n<t.length;n+=2)s.push(parseInt(t.substr(n,2),16));return s},bytesToBase64:function(t){for(var s=[],n=0;n<t.length;n+=3)for(var i=t[n]<<16|t[n+1]<<8|t[n+2],a=0;a<4;a++)n*8+a*6<=t.length*8?s.push(r.charAt(i>>>6*(3-a)&63)):s.push("=");return s.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/ig,"");for(var s=[],n=0,i=0;n<t.length;i=++n%4)i!=0&&s.push((r.indexOf(t.charAt(n-1))&Math.pow(2,-2*i+8)-1)<<i*2|r.indexOf(t.charAt(n))>>>6-i*2);return s}};_8.exports=e})();var kK=_8.exports,s_={utf8:{stringToBytes:function(r){return s_.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(s_.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var e=[],t=0;t<r.length;t++)e.push(r.charCodeAt(t)&255);return e},bytesToString:function(r){for(var e=[],t=0;t<r.length;t++)e.push(String.fromCharCode(r[t]));return e.join("")}}},Hw=s_;/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/var DK=function(r){return r!=null&&(y8(r)||MK(r)||!!r._isBuffer)};function y8(r){return!!r.constructor&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}function MK(r){return typeof r.readFloatLE=="function"&&typeof r.slice=="function"&&y8(r.slice(0,0))}(function(){var r=kK,e=Hw.utf8,t=DK,s=Hw.bin,n=function(i,a){i.constructor==String?a&&a.encoding==="binary"?i=s.stringToBytes(i):i=e.stringToBytes(i):t(i)?i=Array.prototype.slice.call(i,0):!Array.isArray(i)&&i.constructor!==Uint8Array&&(i=i.toString());for(var o=r.bytesToWords(i),l=i.length*8,c=1732584193,u=-271733879,d=-1732584194,p=271733878,h=0;h<o.length;h++)o[h]=(o[h]<<8|o[h]>>>24)&16711935|(o[h]<<24|o[h]>>>8)&4278255360;o[l>>>5]|=128<<l%32,o[(l+64>>>9<<4)+14]=l;for(var m=n._ff,g=n._gg,v=n._hh,y=n._ii,h=0;h<o.length;h+=16){var C=c,x=u,S=d,E=p;c=m(c,u,d,p,o[h+0],7,-680876936),p=m(p,c,u,d,o[h+1],12,-389564586),d=m(d,p,c,u,o[h+2],17,606105819),u=m(u,d,p,c,o[h+3],22,-1044525330),c=m(c,u,d,p,o[h+4],7,-176418897),p=m(p,c,u,d,o[h+5],12,1200080426),d=m(d,p,c,u,o[h+6],17,-1473231341),u=m(u,d,p,c,o[h+7],22,-45705983),c=m(c,u,d,p,o[h+8],7,1770035416),p=m(p,c,u,d,o[h+9],12,-1958414417),d=m(d,p,c,u,o[h+10],17,-42063),u=m(u,d,p,c,o[h+11],22,-1990404162),c=m(c,u,d,p,o[h+12],7,1804603682),p=m(p,c,u,d,o[h+13],12,-40341101),d=m(d,p,c,u,o[h+14],17,-1502002290),u=m(u,d,p,c,o[h+15],22,1236535329),c=g(c,u,d,p,o[h+1],5,-165796510),p=g(p,c,u,d,o[h+6],9,-1069501632),d=g(d,p,c,u,o[h+11],14,643717713),u=g(u,d,p,c,o[h+0],20,-373897302),c=g(c,u,d,p,o[h+5],5,-701558691),p=g(p,c,u,d,o[h+10],9,38016083),d=g(d,p,c,u,o[h+15],14,-660478335),u=g(u,d,p,c,o[h+4],20,-405537848),c=g(c,u,d,p,o[h+9],5,568446438),p=g(p,c,u,d,o[h+14],9,-1019803690),d=g(d,p,c,u,o[h+3],14,-187363961),u=g(u,d,p,c,o[h+8],20,1163531501),c=g(c,u,d,p,o[h+13],5,-1444681467),p=g(p,c,u,d,o[h+2],9,-51403784),d=g(d,p,c,u,o[h+7],14,1735328473),u=g(u,d,p,c,o[h+12],20,-1926607734),c=v(c,u,d,p,o[h+5],4,-378558),p=v(p,c,u,d,o[h+8],11,-2022574463),d=v(d,p,c,u,o[h+11],16,1839030562),u=v(u,d,p,c,o[h+14],23,-35309556),c=v(c,u,d,p,o[h+1],4,-1530992060),p=v(p,c,u,d,o[h+4],11,1272893353),d=v(d,p,c,u,o[h+7],16,-155497632),u=v(u,d,p,c,o[h+10],23,-1094730640),c=v(c,u,d,p,o[h+13],4,681279174),p=v(p,c,u,d,o[h+0],11,-358537222),d=v(d,p,c,u,o[h+3],16,-722521979),u=v(u,d,p,c,o[h+6],23,76029189),c=v(c,u,d,p,o[h+9],4,-640364487),p=v(p,c,u,d,o[h+12],11,-421815835),d=v(d,p,c,u,o[h+15],16,530742520),u=v(u,d,p,c,o[h+2],23,-995338651),c=y(c,u,d,p,o[h+0],6,-198630844),p=y(p,c,u,d,o[h+7],10,1126891415),d=y(d,p,c,u,o[h+14],15,-1416354905),u=y(u,d,p,c,o[h+5],21,-57434055),c=y(c,u,d,p,o[h+12],6,1700485571),p=y(p,c,u,d,o[h+3],10,-1894986606),d=y(d,p,c,u,o[h+10],15,-1051523),u=y(u,d,p,c,o[h+1],21,-2054922799),c=y(c,u,d,p,o[h+8],6,1873313359),p=y(p,c,u,d,o[h+15],10,-30611744),d=y(d,p,c,u,o[h+6],15,-1560198380),u=y(u,d,p,c,o[h+13],21,1309151649),c=y(c,u,d,p,o[h+4],6,-145523070),p=y(p,c,u,d,o[h+11],10,-1120210379),d=y(d,p,c,u,o[h+2],15,718787259),u=y(u,d,p,c,o[h+9],21,-343485551),c=c+C>>>0,u=u+x>>>0,d=d+S>>>0,p=p+E>>>0}return r.endian([c,u,d,p])};n._ff=function(i,a,o,l,c,u,d){var p=i+(a&o|~a&l)+(c>>>0)+d;return(p<<u|p>>>32-u)+a},n._gg=function(i,a,o,l,c,u,d){var p=i+(a&l|o&~l)+(c>>>0)+d;return(p<<u|p>>>32-u)+a},n._hh=function(i,a,o,l,c,u,d){var p=i+(a^o^l)+(c>>>0)+d;return(p<<u|p>>>32-u)+a},n._ii=function(i,a,o,l,c,u,d){var p=i+(o^(a|~l))+(c>>>0)+d;return(p<<u|p>>>32-u)+a},n._blocksize=16,n._digestsize=16,v8.exports=function(i,a){if(i==null)throw new Error("Illegal argument "+i);var o=r.wordsToBytes(n(i,a));return a&&a.asBytes?o:a&&a.asString?s.bytesToString(o):r.bytesToHex(o)}})();var RK=v8.exports;const b8=Il(RK),IK=r=>{const e=b8(r,{asString:!0});return btoa(e)};var FK=Object.defineProperty,HK=Object.getOwnPropertyDescriptor,to=(r,e,t,s)=>{for(var n=s>1?void 0:s?HK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&FK(e,t,n),n};let kr,Nn=class extends Z(lt){constructor(){super(...arguments);f(this,"value");f(this,"filename");f(this,"readonly");f(this,"codeLens");f(this,"path");f(this,"monacoEditor");f(this,"viewStateHash",null);f(this,"editor",null)}get restoreViewState(){return this.$store.state.config.uiSettings.editor.restoreViewState}get activeInstance(){return this.$store.getters["config/getCurrentInstance"]}get restoreViewStateStorage(){switch(this.restoreViewState){case"local":return localStorage;case"session":return sessionStorage}}async mounted(){await this.initEditor()}async initEditor(){if(!kr){const{default:a}=await Ye(async()=>{const{default:o}=await import("./setupMonaco-CF2GrFdn.js").then(l=>l.hm);return{default:o}},__vite__mapDeps([0,1]),import.meta.url);kr=await a}this.$vuetify.theme.dark?kr.editor.setTheme("dark-converted"):kr.editor.setTheme("light-converted"),this.editor=kr.editor.create(this.monacoEditor,{contextmenu:!0,readOnly:this.readonly,codeLens:this.codeLens,automaticLayout:!0,fontSize:16,scrollbar:{useShadows:!1},minimap:{enabled:!this.isMobileViewport},rulers:this.isMobileViewport?[80,120]:[]}),this.editor.addAction({id:"action-save-file",label:this.$tc("app.general.btn.save"),keybindings:[kr.KeyMod.CtrlCmd|kr.KeyCode.KeyS],run:()=>{this.$emit("save")}}),this.editor.addAction({id:"action-emergency-stop",label:this.$tc("app.general.tooltip.estop"),keybindings:[kr.KeyMod.CtrlCmd|kr.KeyMod.Shift|kr.KeyCode.KeyE],run:()=>{this.$emit("emergency-stop")}});const t=this.path?`${this.path}/${this.filename}`:this.filename,s=`${this.activeInstance.apiUrl}/server/files/${t}`,n=kr.editor.createModel(this.value,void 0,kr.Uri.file(t));this.editor.setModel(n);const i=this.restoreViewStateStorage;if(i){this.viewStateHash="monaco."+IK(s);const a=i.getItem(this.viewStateHash);a&&this.editor.restoreViewState(JSON.parse(a))}this.$nextTick(()=>{focus()}),this.$emit("ready"),this.editor.onDidChangeModelContent(()=>{var o;const a=(o=this.editor)==null?void 0:o.getValue();this.$emit("input",a)})}focus(){var t;(t=this.editor)==null||t.focus()}showCommandPalette(){this.editor&&(this.editor.focus(),this.editor.trigger(null,"editor.action.quickCommand",null))}destroyed(){var s;const t=this.restoreViewStateStorage;if(t&&this.viewStateHash){const n=(s=this.editor)==null?void 0:s.saveViewState();if(n)try{t.setItem(this.viewStateHash,JSON.stringify(n))}catch(i){ye.error("[Storage] setItem",i)}}kr&&kr.editor.getModels().forEach(n=>n.dispose()),this.editor&&this.editor.dispose()}};to([$({type:String,required:!0})],Nn.prototype,"value",2);to([$({type:String,required:!0})],Nn.prototype,"filename",2);to([$({type:Boolean})],Nn.prototype,"readonly",2);to([$({type:Boolean,default:!0})],Nn.prototype,"codeLens",2);to([$({type:String,required:!0})],Nn.prototype,"path",2);to([ke("monaco-editor")],Nn.prototype,"monacoEditor",2);Nn=to([L({})],Nn);var BK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{ref:"monaco-editor"},[e.editor?e._e():t("div",{staticClass:"spinner"},[t(Zo,{attrs:{indeterminate:"",size:"100",color:"primary"}})],1)])},jK=[],VK=A(Nn,BK,jK,!1,null,"7f1bfafd");const NK=VK.exports;var zK=Object.defineProperty,UK=Object.getOwnPropertyDescriptor,Rb=(r,e,t,s)=>{for(var n=s>1?void 0:s?UK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&zK(e,t,n),n};let $u=class extends b{constructor(){super(...arguments);f(this,"content");f(this,"readonly")}mounted(){this.$emit("ready")}};Rb([He({type:String})],$u.prototype,"content",2);Rb([$({type:Boolean})],$u.prototype,"readonly",2);$u=Rb([L({})],$u);var WK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.content,expression:"content"}],staticClass:"v-input v-textarea px-2",class:{[e.$vuetify.theme.dark?"theme--dark":"theme--light"]:!0},attrs:{readonly:e.readonly,spellcheck:"false"},domProps:{value:e.content},on:{input:function(s){s.target.composing||(e.content=s.target.value)}}})},GK=[],qK=A($u,WK,GK,!1,null,"d09007e1");const ZK=qK.exports,YK=()=>{try{if(typeof WebAssembly=="object"&&typeof WebAssembly.instantiate=="function"){const r=new WebAssembly.Module(Uint8Array.of(0,97,115,109,1,0,0,0));if(r instanceof WebAssembly.Module)return new WebAssembly.Instance(r)instanceof WebAssembly.Instance}}catch{}return!1};var KK=Object.defineProperty,XK=Object.getOwnPropertyDescriptor,Pn=(r,e,t,s)=>{for(var n=s>1?void 0:s?XK(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&KK(e,t,n),n};let Cs=class extends Z(X,lt){constructor(){super(...arguments);f(this,"open");f(this,"root");f(this,"path");f(this,"filename");f(this,"contents");f(this,"loading");f(this,"readonly");f(this,"editor");f(this,"updatedContent",null);f(this,"lastSavedContent",null);f(this,"editorReady",!1);f(this,"peripheralsDialogOpen",!1)}get ready(){return!this.loading&&this.editorReady&&!this.isUploading}onReady(t){var s;t&&((s=this.editor)==null||s.focus())}get isWebAssemblySupported(){return YK()}get useTextOnlyEditor(){return this.isMobileUserAgent||!this.isWebAssemblySupported}get isUploading(){return this.$store.state.files.uploads.length>0}get configMap(){return this.$store.getters["server/getConfigMapByFilename"](this.filename)}get codeLens(){return this.$store.state.config.uiSettings.editor.codeLens}created(){this.updatedContent=this.contents,this.lastSavedContent=this.contents}mounted(){window.addEventListener("beforeunload",this.handleBeforeUnload)}beforeDestroy(){window.removeEventListener("beforeunload",this.handleBeforeUnload)}get showDirtyEditorWarning(){return this.$store.state.config.uiSettings.editor.confirmDirtyEditorClose&&this.updatedContent!==this.lastSavedContent}async emitClose(){(!this.showDirtyEditorWarning||await this.$confirm(this.$tc("app.general.simple_form.msg.unsaved_changes"),{title:this.$tc("app.general.label.unsaved_changes"),color:"card-heading",icon:"$error"}))&&(this.open=!1)}handleBeforeUnload(t){if(this.showDirtyEditorWarning)return t.preventDefault(),(t||window.event).returnValue=!0}emitSave(t){this.editorReady&&(this.configMap.serviceSupported&&t?(this.$emit("save",this.updatedContent,this.configMap.service),this.open=!1):this.$emit("save",this.updatedContent),this.lastSavedContent=this.updatedContent)}handleCommandPalette(){var t;(t=this.editor)==null||t.showCommandPalette()}};Pn([He({type:Boolean})],Cs.prototype,"open",2);Pn([$({type:String,required:!0})],Cs.prototype,"root",2);Pn([$({type:String,required:!0})],Cs.prototype,"path",2);Pn([$({type:String,required:!0})],Cs.prototype,"filename",2);Pn([$({type:String,required:!0})],Cs.prototype,"contents",2);Pn([$({type:Boolean})],Cs.prototype,"loading",2);Pn([$({type:Boolean})],Cs.prototype,"readonly",2);Pn([ke("editor")],Cs.prototype,"editor",2);Pn([Ae("ready")],Cs.prototype,"onReady",1);Cs=Pn([L({components:{FileEditor:NK,FileEditorTextOnly:ZK}})],Cs);var QK=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(hb,{attrs:{loading:e.loading,"hide-overlay":"",fullscreen:"",persistent:"",transition:"dialog-bottom-transition","content-class":"config-editor-overlay"},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Ie,{staticClass:"fill-height",staticStyle:{overflow:"hidden"},attrs:{"d-flex":""}},[t(qt,{staticStyle:{"z-index":"1"},attrs:{dense:"",elevation:6}},[e.$vuetify.breakpoint.smAndDown?e._e():t(M,{attrs:{icon:"",disabled:!e.ready,color:""},on:{click:function(s){return e.emitClose()}}},[t(w,[e._v("$close")])],1),t(Sd,[e._v(" "+e._s(e.filename)+" "),e.readonly?t(w,{staticClass:"ml-1",attrs:{small:""}},[e._v(" $lock ")]):e.updatedContent!==e.lastSavedContent?t(w,{staticClass:"ml-1",attrs:{small:""}},[e._v(" $circle ")]):e._e()],1),t(_t),t(nG,[e.$vuetify.breakpoint.smAndDown?e._e():t(M,{on:{click:function(s){e.peripheralsDialogOpen=!0}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $devices ")]),t("span",[e._v(e._s(e.$t("app.file_system.title.devices")))])],1),e.useTextOnlyEditor?e._e():t(M,{on:{click:e.handleCommandPalette}},[t(w,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $consoleLine ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.file_system.title.command_palette")))])],1),!e.printerPrinting&&e.configMap.link?t(M,{attrs:{href:e.configMap.link,target:"_blank"}},[t(w,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $help ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.general.btn.config_reference")))])],1):e._e(),!e.readonly&&!e.printerPrinting&&e.configMap.serviceSupported?t(M,{attrs:{disabled:!e.ready},on:{click:function(s){return e.emitSave(!0)}}},[t(w,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $restart ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.general.btn.save_restart")))])],1):e._e(),e.readonly?e._e():t(M,{attrs:{disabled:!e.ready},on:{click:function(s){return e.emitSave(!1)}}},[t(w,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $save ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.general.btn.save")))])],1),t(M,{on:{click:function(s){return e.emitClose()}}},[t(w,{attrs:{small:"",left:!e.$vuetify.breakpoint.smAndDown}},[e._v(" $close ")]),e.$vuetify.breakpoint.smAndDown?e._e():t("span",[e._v(e._s(e.$t("app.general.btn.close")))])],1)],1)],1),e.contents!==void 0&&!e.useTextOnlyEditor?t("file-editor",{ref:"editor",attrs:{path:e.path,filename:e.filename,readonly:e.readonly,"code-lens":e.codeLens},on:{ready:function(s){e.editorReady=!0},save:function(s){return e.emitSave(!1)},"emergency-stop":e.emergencyStop},model:{value:e.updatedContent,callback:function(s){e.updatedContent=s},expression:"updatedContent"}}):e._e(),e.contents!==void 0&&e.useTextOnlyEditor?t("file-editor-text-only",{attrs:{filename:e.filename,readonly:e.readonly},on:{ready:function(s){e.editorReady=!0}},model:{value:e.updatedContent,callback:function(s){e.updatedContent=s},expression:"updatedContent"}}):e._e(),e.peripheralsDialogOpen?t(g8,{model:{value:e.peripheralsDialogOpen,callback:function(s){e.peripheralsDialogOpen=s},expression:"peripheralsDialogOpen"}}):e._e()],1)],1)},JK=[],eX=A(Cs,QK,JK,!1,null,null);const tX=eX.exports;var rX=Object.defineProperty,sX=Object.getOwnPropertyDescriptor,Ad=(r,e,t,s)=>{for(var n=s>1?void 0:s?sX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&rX(e,t,n),n};let ka=class extends Z(X){constructor(){super(...arguments);f(this,"open");f(this,"title");f(this,"label");f(this,"name");f(this,"newName","")}mounted(){this.newName=this.name}handleSave(){this.$emit("save",this.newName),this.open=!1}};Ad([He({type:Boolean})],ka.prototype,"open",2);Ad([$({type:String,required:!0})],ka.prototype,"title",2);Ad([$({type:String,required:!0})],ka.prototype,"label",2);Ad([$({type:String,required:!0})],ka.prototype,"name",2);ka=Ad([L({})],ka);var nX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.title,"max-width":"320"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(ae,{attrs:{autofocus:"",outlined:"",label:e.label,rules:[e.$rules.required],required:""},model:{value:e.newName,callback:function(s){e.newName=s},expression:"newName"}})],1)],1)},iX=[],aX=A(ka,nX,iX,!1,null,null);const oX=aX.exports;var lX=Object.defineProperty,cX=Object.getOwnPropertyDescriptor,Ib=(r,e,t,s)=>{for(var n=s>1?void 0:s?cX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&lX(e,t,n),n};let Su=class extends Z(X){constructor(){super(...arguments);f(this,"value");f(this,"files")}};Ib([$({type:Boolean})],Su.prototype,"value",2);Ib([$({type:Array,required:!0})],Su.prototype,"files",2);Su=Ib([L({})],Su);var uX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$tc("app.file_system.title.upload_file",e.files.length),"max-width":"500",persistent:"","no-actions":""},model:{value:e.value,callback:function(s){e.value=s},expression:"value"}},[t(Pe,[e._l(e.files,function(s,n){return[(s.percent!==100||!s.complete)&&!s.cancelled?t(te,{key:s.filepath,staticClass:"py-2"},[t(I,[t("div",{staticClass:"mb-2 filename"},[e._v(" "+e._s(s.filepath)+" ")]),s.percent===100&&!s.complete?t(Ys,{staticClass:"mb-2",attrs:{indeterminate:"",color:"primary"}}):t(Ys,{staticClass:"mb-2",attrs:{value:s.percent,color:"primary"}}),!s.complete&&s.percent===100?t("div",[e._v(" "+e._s(e.$t("app.file_system.msg.processing"))+" ")]):e._e(),s.percent>0&&s.percent!==100?t("table",[t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.file_system.label.uploaded"))+": ")]),t("td",[e._v(e._s(s.percent)+"% ("+e._s(e.$filters.getReadableFileSizeString(s.loaded))+" / "+e._s(e.$filters.getReadableFileSizeString(s.size))+")")])]),t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.file_system.label.transfer_rate"))+": ")]),t("td",[e._v(e._s(e.$filters.getReadableDataRateString(s.speed)))])])]):e._e()],1),t(I,{attrs:{cols:"auto"}},[t(M,{attrs:{color:"error",icon:"",text:"",disabled:s.complete||s.percent===100||s.cancelled},on:{click:function(i){return e.$emit("cancel",s)}}},[t(w,[e._v("$close")])],1)],1)],1):e._e(),(s.percent!==100||!s.complete)&&n<e.files.length-1?t(R,{key:`divider-${s.filepath}`}):e._e()]})],2)],1)},dX=[],pX=A(Su,uX,dX,!1,null,"c3d1c628");const hX=pX.exports;var fX=Object.defineProperty,mX=Object.getOwnPropertyDescriptor,Km=(r,e,t,s)=>{for(var n=s>1?void 0:s?mX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&fX(e,t,n),n};let sl=class extends Z(X){constructor(){super(...arguments);f(this,"open");f(this,"root");f(this,"search","");f(this,"loaded",!1)}get rootFiles(){return this.$store.getters["files/getRootFiles"](this.root)}get matchedFiles(){if(!this.loaded)return[];const t=this.search.split("").join(".*"),s=new RegExp(t,"i");return this.rootFiles.filter(n=>s.exec(n.path)).map(n=>{const{filename:i,rootPath:a,path:o}=Kt(n.path,this.root);return{...n,filename:i,filepath:o,rootPath:a}})}get loading(){return this.hasWait(`${this.$waits.onFileSystem}/${this.root}/`)}onLoading(t){this.loaded=!t}handleFileClick(t){this.$emit("path-change",t.rootPath),this.open=!1}mounted(){this.loaded=!1,F.serverFilesListRoot(this.root)}};Km([He({type:Boolean})],sl.prototype,"open",2);Km([$({type:String,required:!0})],sl.prototype,"root",2);Km([Ae("loading")],sl.prototype,"onLoading",1);sl=Km([L({})],sl);var gX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.file_system.title.go_to_file"),"no-actions":"","max-width":"800"},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(qt,{attrs:{dense:""}},[t(ae,{attrs:{loading:e.loading,outlined:"","hide-details":"",dense:"",autofocus:""},model:{value:e.search,callback:function(s){e.search=s},expression:"search"}})],1),t(iG,{attrs:{items:e.matchedFiles,bench:"30","item-height":"40"},scopedSlots:e._u([{key:"default",fn:function({index:s,item:n}){return[t(we,{key:n.path,staticClass:"v-list-item--link",attrs:{dense:""},on:{click:function(i){return e.handleFileClick(n)}}},[t(Ee,[t(xe,{staticClass:"text-body-2 font-weight-regular"},[e._v(" "+e._s(n.path)+" ")])],1)],1),s!==e.matchedFiles.length-1?t(R):e._e()]}}])})],1)},vX=[],_X=A(sl,gX,vX,!1,null,null);const yX=_X.exports,nl=(r,e)=>r.types.includes(he.FILE_DATA_TRANSFER_TYPES[e]),Bw=(r,e,t)=>{r.setData(he.FILE_DATA_TRANSFER_TYPES[e],JSON.stringify(t))},Fb=(r,e)=>{const t=r.getData(he.FILE_DATA_TRANSFER_TYPES[e]);return JSON.parse(t)};var bX=Object.defineProperty,$X=Object.getOwnPropertyDescriptor,Ln=(r,e,t,s)=>{for(var n=s>1?void 0:s?$X(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&bX(e,t,n),n};let Ps=class extends Z(X,dr,el){constructor(){super(...arguments);f(this,"roots");f(this,"name");f(this,"dense");f(this,"height");f(this,"maxHeight");f(this,"bulkActions");f(this,"currentRoot","");f(this,"search","");f(this,"contextMenuState",{open:!1,x:0,y:0,file:null});f(this,"dragState",{browserState:!1,overlay:!1});f(this,"selected",[]);f(this,"fileEditorDialogState",{open:!1,contents:"",filename:"",loading:!1,readonly:!1});f(this,"fileNameDialogState",{open:!1,title:"",value:"",label:"",handler:""});f(this,"filePreviewState",{open:!1,filename:"",src:"",type:""});f(this,"FileSystemSelectLineDialogState",{open:!1,filename:""});f(this,"goToFileDialogOpen",!1)}get filters(){return this.$store.state.config.uiSettings.fileSystem.activeFilters[this.currentRoot]??[]}set filters(t){this.$store.dispatch("config/updateFileSystemActiveFilters",{root:this.currentRoot,value:t})}onFilePreviewStateChanged(t){!t&&this.filePreviewState.src.startsWith("blob:")&&URL.revokeObjectURL(this.filePreviewState.src)}get availableRoots(){const t=Array.isArray(this.roots)?this.roots:[this.roots];return t.length>0&&!t.includes(this.currentRoot)&&(this.currentRoot=t[0]),t}get rootProperties(){return this.$store.getters["files/getRootProperties"](this.currentRoot)}get disabled(){return!this.$store.getters["files/isRootAvailable"](this.currentRoot)}onDisabledChange(t){t||this.loadFiles(this.currentPath)}get headers(){let t=[{text:"",value:"data-table-icons",sortable:!1,width:"24px"},{text:this.$t("app.general.table.header.name"),value:"name"}];this.currentRoot==="gcodes"&&(t=[...t,{text:this.$t("app.general.table.header.height"),value:"object_height",configurable:!0},{text:this.$t("app.general.table.header.first_layer_height"),value:"first_layer_height",configurable:!0},{text:this.$t("app.general.table.header.layer_height"),value:"layer_height",configurable:!0},{text:this.$t("app.general.table.header.filament_name"),value:"filament_name",configurable:!0},{text:this.$t("app.general.table.header.filament_type"),value:"filament_type",configurable:!0},{text:this.$t("app.general.table.header.filament"),value:"filament_total",configurable:!0},{text:this.$t("app.general.table.header.filament_weight_total"),value:"filament_weight_total",configurable:!0},{text:this.$t("app.general.table.header.filament_used"),value:"history.filament_used",configurable:!0},{text:this.$t("app.general.table.header.nozzle_diameter"),value:"nozzle_diameter",configurable:!0},{text:this.$t("app.general.table.header.slicer"),value:"slicer",configurable:!0},{text:this.$t("app.general.table.header.slicer_version"),value:"slicer_version",configurable:!0},{text:this.$t("app.general.table.header.estimated_time"),value:"estimated_time",configurable:!0},{text:this.$t("app.general.table.header.print_duration"),value:"history.print_duration",configurable:!0},{text:this.$t("app.general.table.header.total_duration"),value:"history.total_duration",configurable:!0},{text:this.$t("app.general.table.header.first_layer_bed_temp"),value:"first_layer_bed_temp",configurable:!0},{text:this.$t("app.general.table.header.first_layer_extr_temp"),value:"first_layer_extr_temp",configurable:!0},{text:this.$t("app.general.table.header.chamber_temp"),value:"chamber_temp",configurable:!0},{text:this.$t("app.general.table.header.last_printed"),value:"print_start_time",configurable:!0}]),t=[...t,{text:this.$t("app.general.table.header.modified"),value:"modified",width:"1%",configurable:!0},{text:this.$t("app.general.table.header.size"),value:"size",width:"1%",configurable:!0}];const s=`${this.currentRoot}_${this.name}`;return this.$store.getters["config/getMergedTableHeaders"](t,s)}get visibleHeaders(){return this.headers.filter(t=>t.visible||t.visible===void 0)}get currentPath(){return this.$store.getters["files/getCurrentPathByRoot"](this.currentRoot)||this.currentRoot}set currentPath(t){this.$store.dispatch("files/updateCurrentPathByRoot",{root:this.currentRoot,path:t})}get visiblePath(){if(this.currentPath&&this.currentPath.startsWith(`${this.currentRoot}`)){const t=this.currentPath.split("/");return t.shift(),t?t.join("/"):""}return this.currentPath}get files(){return this.getAllFiles().filter(n=>{if(this.currentRoot==="timelapse"&&n.type==="file"&&n.extension==="jpg")return!1;for(const i of this.filters)switch(i){case"hidden_files":if(n.name.match(/^\.(?!\.$)/))return!1;break;case"moonraker_backup_files":if(n.type==="file"&&n.filename===".moonraker.conf.bkp")return!1;break;case"klipper_backup_files":if(n.type==="file"&&n.filename.match(/^printer-\d{8}_\d{6}\.cfg$/))return!1;break;case"print_start_time":if(n.type==="file"&&n.print_start_time!==null)return!1;break;case"rolled_log_files":if(n.type==="file"&&(n.filename.match(/\.\d{4}-\d{2}-\d{2}(_\d{2}-\d{2}-\d{2})?$/)||n.filename.match(/\.log\.\d+$/)))return!1;break;case"crowsnest_backup_files":if(n.type==="file"&&n.filename.match(/^crowsnest\.conf\.\d{4}-\d{2}-\d{2}-\d{4}$/))return!1;break}return!0})}getAllFiles(){return this.$store.getters["files/getDirectory"](this.currentPath)??[]}onFilesChange(){this.selected=[]}get filesLoading(){return this.hasWaitsBy(`${this.$waits.onFileSystem}/${this.currentRoot}/`)}get currentUploads(){return this.$store.state.files.uploads}get fileDropRoot(){var t;return(t=this.$route.meta)==null?void 0:t.fileDropRoot}includeTimelapseThumbnailFiles(t){const s=new Set(t.filter(i=>i.type==="file"&&i.extension!=="jpg"&&"thumbnails"in i).flatMap(i=>i.thumbnails?i.thumbnails.map(a=>a.relative_path):[])),n=this.getAllFiles().filter(i=>i.type==="file"&&s.has(i.filename));t.push(...n)}handleRootChange(t){t.length&&(this.currentRoot=t,this.loadFiles(t))}loadFiles(t){this.disabled||(this.currentPath=t,this.files.length<=0&&this.refreshPath(t))}refreshPath(t){t&&!this.disabled&&F.serverFilesGetDirectory(this.currentRoot,t)}handleFilter(t){this.filters=t}handleRowClick(t,s){if(!this.disabled&&!(this.contextMenuState.open&&(this.contextMenuState.open=!1,s.type!=="contextmenu"))){if(t.type==="directory"){if(s.type==="click"){if(t.dirname===".."){const i=this.currentPath.split("/").slice(0,-1).join("/");this.loadFiles(i)}else this.loadFiles(`${this.currentPath}/${t.dirname}`);this.selected=[];return}else if(t.dirname===".."||t.permissions==="r"||this.rootProperties.readonly)return}if(!(this.selected.length!==0&&!this.selected.some(n=>n.name===t.name))){if(t.type==="file"&&s.type==="click"){if(this.$store.state.config.uiSettings.editor.autoEditExtensions.includes(`.${t.extension}`)){this.handleFileOpenDialog(t,"edit");return}else if(this.rootProperties.canView.includes(`.${t.extension}`)){this.handleFileOpenDialog(t,"view");return}}this.contextMenuState.x=s.clientX,this.contextMenuState.y=s.clientY,this.contextMenuState.file=this.selected.length>1?this.selected:t,this.$nextTick(()=>{this.contextMenuState.open=!0})}}}handleRenameDialog(t){if(this.disabled)return;const[s,n]=t.type==="file"?[this.$t("app.file_system.title.rename_file"),this.$t("app.file_system.label.file_name")]:[this.$t("app.file_system.title.rename_dir"),this.$t("app.file_system.label.dir_name")];this.fileNameDialogState={open:!0,title:s,label:n,value:t.name,handler:this.handleRename}}handleDuplicateDialog(t){if(this.disabled)return;const[s,n]=t.type==="file"?[this.$t("app.file_system.title.duplicate_file"),this.$t("app.file_system.label.file_name")]:[this.$t("app.file_system.title.duplicate_dir"),this.$t("app.file_system.label.dir_name")];this.fileNameDialogState={open:!0,title:s,label:n,value:t.name,handler:this.handleDuplicate}}handleAddFileDialog(){this.disabled||(this.fileNameDialogState={open:!0,title:this.$t("app.file_system.title.add_file"),label:this.$t("app.file_system.label.file_name"),value:"",handler:this.handleAddFile})}handleAddDirDialog(){this.disabled||(this.fileNameDialogState={open:!0,title:this.$t("app.file_system.title.add_dir"),label:this.$t("app.file_system.label.dir_name"),value:"",handler:this.handleAddDir})}handleGoToFileDialog(){this.disabled||(this.goToFileDialogOpen=!0)}async handleFileOpenDialog(t,s=void 0){try{const n=s?s==="view":this.rootProperties.canView.includes(`.${t.extension}`),i=await this.getFile(t.filename,this.currentPath,t.size,{responseType:n?"arraybuffer":"text",transformResponse:[a=>a]});if(n){const a=i.headers["content-type"],o=new Blob([i.data],{type:a});this.filePreviewState={open:!0,file:t,filename:t.filename,extension:t.extension,src:URL.createObjectURL(o),type:a,readonly:t.permissions==="r"||this.rootProperties.readonly}}else this.fileEditorDialogState={open:!0,contents:i.data,filename:t.filename,loading:!1,readonly:t.permissions==="r"||this.rootProperties.readonly}}catch(n){ye.error("[FileSystem] open file",n)}}async handlePreviewGcode(t){try{const s=await this.getGcode(t),n=s==null?void 0:s.data;if(!n)return;(this.$router.currentRoute.path!=="/"||!this.$store.getters["layout/isEnabledInCurrentLayout"]("gcode-preview-card"))&&this.$router.push({path:"/preview"}),this.$store.dispatch("gcodePreview/loadGcode",{file:t,gcode:n})}catch(s){ye.error("[FileSystem] preview gcode",s)}}handleRefreshMetadata(t){const s=t.path?`${t.path}/${t.filename}`:t.filename;F.serverFilesMetadata(s)}async handleViewThumbnail(t){const s=this.getThumb(t,this.currentRoot,t.path,!0);s&&(this.filePreviewState={open:!0,filename:t.filename,src:s.url,type:"image/any",width:s.width})}handlePrint(t){if(this.disabled)return;const s=t.path?`${t.path}/${t.filename}`:t.filename,n=this.$store.getters["spoolman/getAvailable"],i=this.$store.state.config.uiSettings.spoolman.autoSpoolSelectionDialog;if(n&&i){this.$store.commit("spoolman/setDialogState",{show:!0,filename:s});return}this.FileSystemSelectLineDialogState={open:!0,filename:s}}async handleSaveFileChanges(t,s){if(t.length>0){const n=new File([t],this.fileEditorDialogState.filename);if(!s&&this.fileEditorDialogState.open&&(this.fileEditorDialogState.loading=!0),await this.uploadFile(n,this.visiblePath,this.currentRoot,!1),this.fileEditorDialogState.loading=!1,s){if(s==="moonraker"){this.serviceRestartMoonraker();return}if(s==="klipper"){this.firmwareRestartKlippy();return}this.serviceRestartByName(s)}}}handleMove(t,s){let n=`${this.currentPath}/${s.dirname}`;if(s.dirname===".."){const a=this.currentPath.split("/");a.pop(),n=a.join("/")}const i=Array.isArray(t)?t.filter(a=>a.name!==".."):[t];this.currentRoot==="timelapse"&&this.includeTimelapseThumbnailFiles(i),i.forEach(a=>{const o=`${this.currentPath}/${a.name}`,l=n?`${n}/${a.name}`:`${a.name}`;F.serverFilesMove(o,l)})}handleDragStart(t,s,n){if(t.type==="file"){const i=this.createFileUrl(t.name,this.currentPath);n.setData("text/html",`<A HREF="${encodeURI(i)}">${t.filename}</A>`),n.setData("text/plain",i),n.setData("text/uri-list",i)}if(Bw(n,"files",{path:this.currentPath,items:s.map(i=>i.name)}),this.currentRoot==="gcodes"){const i=s.filter(a=>a.type==="file"&&this.rootProperties.accepts.includes(`.${a.extension}`));i.length>0&&Bw(n,"jobs",{path:i[0].path,items:i.map(a=>a.name)})}}handleRename(t){const s=`${this.currentPath}/${this.fileNameDialogState.value}`,n=`${this.currentPath}/${t}`;F.serverFilesMove(s,n)}handleDuplicate(t){const s=`${this.currentPath}/${this.fileNameDialogState.value}`,n=`${this.currentPath}/${t}`;F.serverFilesCopy(s,n)}async handleRemove(t){if(this.disabled)return;const s=Array.isArray(t)?t.filter(i=>i.name!==".."):[t];await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_delete",s.length),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&(this.filePreviewState.open=!1,this.currentRoot==="timelapse"&&this.includeTimelapseThumbnailFiles(s),s.forEach(i=>{i.type==="directory"&&F.serverFilesDeleteDirectory(`${this.currentPath}/${i.dirname}`,!0),i.type==="file"&&F.serverFilesDeleteFile(`${this.currentPath}/${i.filename}`)}))}async handleUpload(t,s){const n=`${this.$waits.onFileSystem}/${this.currentPath}/`;this.$store.dispatch("wait/addWait",n),await this.uploadFiles(t,this.visiblePath,this.currentRoot,!1);let i;for(const a of t){const[o,l]=this.getFullPathAndFile(this.visiblePath,a);i=o?`${o}/${l.name}`:l.name}s&&(this.FileSystemSelectLineDialogState={open:!0,filename:i}),this.$store.dispatch("wait/removeWait",n)}handleCancelUpload(t){t.complete||(t.loaded===0&&this.$store.dispatch("files/updateFileUpload",{filepath:t.filepath,cancelled:!0}),t.loaded>0&&t.loaded<t.size&&t.abortController.abort())}handleAddDir(t){F.serverFilesPostDirectory(`${this.currentPath}/${t}`)}handleAddFile(t){const s=new File([],t);this.uploadFile(s,this.visiblePath,this.currentRoot,!1)}handleDownload(t){this.downloadFile(t.filename,this.currentPath)}handlePreheat(t){this.disabled||t.first_layer_extr_temp&&t.first_layer_bed_temp&&!this.printerPrinting&&!this.printerPaused&&this.klippyReady&&(t.first_layer_extr_temp>0&&this.sendGcode(`M104 S${t.first_layer_extr_temp}`),t.first_layer_bed_temp>0&&this.sendGcode(`M140 S${t.first_layer_bed_temp}`),t.chamber_temp&&t.chamber_temp>0&&this.sendGcode(`M141 S${t.chamber_temp}`))}handleEnqueue(t){if(this.disabled)return;const n=(Array.isArray(t)?t:[t]).filter(i=>i.type==="file"&&this.rootProperties.accepts.includes(`.${i.extension}`)).map(i=>i.path?`${i.path}/${i.filename}`:i.filename);n.length>0&&F.serverJobQueuePostJob(n)}handleCreateZip(t){const s=new Date,n=s.getFullYear().toString(),i=(s.getMonth()+1).toString().padStart(2,"0"),a=s.getDate().toString().padStart(2,"0"),o=s.getHours().toString().padStart(2,"0"),l=s.getMinutes().toString().padStart(2,"0"),c=s.getSeconds().toString().padStart(2,"0"),u=`${n}${i}${a}-${o}${l}${c}`,d=Array.isArray(t)?`${this.currentPath}/${u}.zip`:`${this.currentPath}/${t.name}-${u}.zip`,p=(Array.isArray(t)?t:[t]).map(h=>`${this.currentPath}/${h.name}`);F.serverFilesZip(d,p)}handleDragOver(t){!this.fileDropRoot&&!this.rootProperties.readonly&&!this.dragState.browserState&&t.dataTransfer&&(r_(t.dataTransfer)||nl(t.dataTransfer,"files"))&&(t.preventDefault(),this.dragState.overlay=!0,t.dataTransfer.dropEffect="copy")}handleDragLeave(){this.dragState.overlay=!1}async handleDrop(t){if(this.dragState.overlay=!1,!this.fileDropRoot&&!this.rootProperties.readonly&&t.dataTransfer){if(nl(t.dataTransfer,"files")){const s=Fb(t.dataTransfer,"files");for(const n of s.items){const i=`${s.path}/${n}`,a=`${this.currentPath}/${n}`;F.serverFilesCopy(i,a)}}else if(r_(t.dataTransfer)){const s=await d8(t.dataTransfer);s&&this.handleUpload(s,!1)}}}};Ln([$({type:[String,Array],required:!0})],Ps.prototype,"roots",2);Ln([$({type:String,required:!0})],Ps.prototype,"name",2);Ln([$({type:Boolean})],Ps.prototype,"dense",2);Ln([$({type:[Number,String]})],Ps.prototype,"height",2);Ln([$({type:[Number,String]})],Ps.prototype,"maxHeight",2);Ln([$({type:Boolean})],Ps.prototype,"bulkActions",2);Ln([Ae("filePreviewState.open")],Ps.prototype,"onFilePreviewStateChanged",1);Ln([Ae("disabled")],Ps.prototype,"onDisabledChange",1);Ln([Ae("files")],Ps.prototype,"onFilesChange",1);Ps=Ln([L({components:{FileSystemToolbar:KY,FileSystemBulkActions:rK,FileSystemBrowser:fK,FileSystemContextMenu:bK,FileEditorDialog:tX,FileNameDialog:oX,FileSystemUploadDialog:hX,FileSystemGoToFileDialog:yX,FilePreviewDialog:o8,FileSystemSelectLineDialog:c8}})],Ps);var SX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ie,{staticClass:"filesystem-wrapper",class:{"no-pointer-events":e.dragState.overlay},attrs:{height:e.height,"max-height":e.maxHeight,flat:""},on:{dragover:e.handleDragOver,dragenter:function(s){if(s.target!==s.currentTarget)return null;s.preventDefault()},dragleave:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDragLeave.apply(null,arguments))},drop:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDrop.apply(null,arguments))}}},[e.selected.length<=0?t("file-system-toolbar",{attrs:{roots:e.availableRoots,root:e.currentRoot,name:e.name,search:e.search,path:e.visiblePath,disabled:e.disabled,loading:e.filesLoading,headers:e.headers},on:{"update:search":function(s){e.search=s},"root-change":e.handleRootChange,refresh:function(s){return e.refreshPath(e.currentPath)},"add-file":e.handleAddFileDialog,"add-dir":e.handleAddDirDialog,upload:e.handleUpload,filter:e.handleFilter,"go-to-file":e.handleGoToFileDialog}}):e._e(),e.selected.length>0?t("file-system-bulk-actions",{attrs:{root:e.currentRoot,path:e.visiblePath},on:{remove:function(s){return e.handleRemove(e.selected)},"create-zip":function(s){return e.handleCreateZip(e.selected)},enqueue:function(s){return e.handleEnqueue(e.selected)}}}):e._e(),e.headers?t("file-system-browser",{attrs:{headers:e.visibleHeaders,root:e.currentRoot,dense:e.dense,loading:e.filesLoading,disabled:e.disabled,search:e.search,files:e.files,"drag-state":e.dragState.browserState,"bulk-actions":e.bulkActions,"large-thumbnails":e.currentRoot==="timelapse"},on:{"update:dragState":function(s){return e.$set(e.dragState,"browserState",s)},"update:drag-state":function(s){return e.$set(e.dragState,"browserState",s)},"row-click":e.handleRowClick,move:e.handleMove,"drag-start":e.handleDragStart},model:{value:e.selected,callback:function(s){e.selected=s},expression:"selected"}}):e._e(),e.contextMenuState.open?t("file-system-context-menu",{attrs:{root:e.currentRoot,file:e.contextMenuState.file,"position-x":e.contextMenuState.x,"position-y":e.contextMenuState.y},on:{print:e.handlePrint,view:function(s){return e.handleFileOpenDialog(s,"view")},edit:function(s){return e.handleFileOpenDialog(s,"edit")},rename:e.handleRenameDialog,duplicate:e.handleDuplicateDialog,remove:e.handleRemove,download:e.handleDownload,preheat:e.handlePreheat,"preview-gcode":e.handlePreviewGcode,"refresh-metadata":e.handleRefreshMetadata,"view-thumbnail":e.handleViewThumbnail,enqueue:e.handleEnqueue,"create-zip":e.handleCreateZip},model:{value:e.contextMenuState.open,callback:function(s){e.$set(e.contextMenuState,"open",s)},expression:"contextMenuState.open"}}):e._e(),e.fileEditorDialogState.open?t("file-editor-dialog",{attrs:{contents:e.fileEditorDialogState.contents,filename:e.fileEditorDialogState.filename,loading:e.fileEditorDialogState.loading,readonly:e.fileEditorDialogState.readonly,path:e.currentPath,root:e.currentRoot},on:{save:e.handleSaveFileChanges},model:{value:e.fileEditorDialogState.open,callback:function(s){e.$set(e.fileEditorDialogState,"open",s)},expression:"fileEditorDialogState.open"}}):e._e(),e.fileNameDialogState.open?t("file-name-dialog",{attrs:{name:e.fileNameDialogState.value,title:e.fileNameDialogState.title,label:e.fileNameDialogState.label},on:{save:e.fileNameDialogState.handler},model:{value:e.fileNameDialogState.open,callback:function(s){e.$set(e.fileNameDialogState,"open",s)},expression:"fileNameDialogState.open"}}):e._e(),t(Gm,{attrs:{message:e.$t("app.file_system.overlay.drag_files_folders_upload"),icon:"$fileUpload",absolute:""},model:{value:e.dragState.overlay,callback:function(s){e.$set(e.dragState,"overlay",s)},expression:"dragState.overlay"}}),e.currentUploads.length>0?t("file-system-upload-dialog",{attrs:{value:e.currentUploads.length>0,files:e.currentUploads},on:{cancel:e.handleCancelUpload}}):e._e(),e.filePreviewState.open?t("file-preview-dialog",{attrs:{file:e.filePreviewState.file,filename:e.filePreviewState.filename,extension:e.filePreviewState.extension,src:e.filePreviewState.src,type:e.filePreviewState.type,width:e.filePreviewState.width,readonly:e.filePreviewState.readonly,path:e.currentPath},on:{remove:e.handleRemove,download:e.handleDownload},model:{value:e.filePreviewState.open,callback:function(s){e.$set(e.filePreviewState,"open",s)},expression:"filePreviewState.open"}}):e._e(),e.goToFileDialogOpen?t("file-system-go-to-file-dialog",{attrs:{root:e.currentRoot},on:{"path-change":e.loadFiles},model:{value:e.goToFileDialogOpen,callback:function(s){e.goToFileDialogOpen=s},expression:"goToFileDialogOpen"}}):e._e(),e.FileSystemSelectLineDialogState.open?t("file-system-select-line-dialog",{attrs:{filename:e.FileSystemSelectLineDialogState.filename,visiblePath:e.visiblePath,currentRoot:e.currentRoot},model:{value:e.FileSystemSelectLineDialogState.open,callback:function(s){e.$set(e.FileSystemSelectLineDialogState,"open",s)},expression:"FileSystemSelectLineDialogState.open"}}):e._e()],1)},wX=[],xX=A(Ps,SX,wX,!1,null,"6243986d");const Fl=xX.exports;var CX=Object.defineProperty,PX=Object.getOwnPropertyDescriptor,LX=(r,e,t,s)=>{for(var n=s>1?void 0:s?PX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&CX(e,t,n),n};let n_=class extends b{};n_=LX([L({components:{FileSystem:Fl}})],n_);var AX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.jobs"),icon:"$files",draggable:"","layout-path":"dashboard.jobs-card","help-tooltip":e.$t("app.general.tooltip.file_browser_help")},scopedSlots:e._u([{key:"menu",fn:function(){return[t(M,{attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/jobs")}}},[t(w,[e._v("$fullScreen")])],1)]},proxy:!0}])},[t("file-system",{attrs:{roots:"gcodes",name:"dashboard",dense:"",height:400}})],1)},EX=[],OX=A(n_,AX,EX,!1,null,null);const TX=OX.exports;var kX=Object.defineProperty,DX=Object.getOwnPropertyDescriptor,$8=(r,e,t,s)=>{for(var n=s>1?void 0:s?DX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&kX(e,t,n),n};let ef=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"open")}get screwsTiltAdjust(){return this.$store.getters["printer/getScrewsTiltAdjust"]}retry(){this.sendGcode("SCREWS_TILT_CALCULATE",this.$waits.onBedScrewsCalculate),this.open=!1}destroyed(){this.$store.commit("printer/setClearScrewsTiltAdjust")}};$8([He({type:Boolean})],ef.prototype,"open",2);ef=$8([L({})],ef);var MX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.tool.title.screws_tilt_adjust"),"max-width":"500"},on:{save:e.retry},scopedSlots:e._u([{key:"actions",fn:function(){return[t(_t),t(M,{attrs:{color:"primary",type:"submit"}},[e._v(" "+e._s(e.$t("app.general.btn.retry"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(Zt,[t("thead",[t("tr",[t("th",[e._v(e._s(e.$t("app.general.label.name")))]),t("th",{staticClass:"text-right"},[e._v(" Z ")]),t("th",[e._v(" ")])])]),t("tbody",e._l(e.screwsTiltAdjust.screws,function(s){return t("tr",{key:s.name},[t("td",[e._v(" "+e._s(s.prettyName)),t("br"),t("small",{staticClass:"secondary--text"},[e._v(e._s(`X = ${s.x}, Y = ${s.y}`))])]),t("td",{staticClass:"focus--text text-right"},[e._v(" "+e._s(s.z.toFixed(4))+" ")]),t("td",{staticClass:"text-right"},[s.is_base?t(gr,{attrs:{small:"",label:""}},[e._v(" "+e._s(e.$t("app.bedmesh.label.base"))+" ")]):t(gr,{attrs:{color:s.adjustMinutes<6?"success":"error",small:"",label:""}},[t(w,{attrs:{left:"",small:""}},[e._v(" "+e._s(s.adjustMinutes===0?"$success":s.sign==="CW"?"$zRotateClockwise":"$zRotateCounterclockwise")+" ")]),e._v(" "+e._s(s.adjust)+" ")],1)],1)])}),0)])],1)],1)},RX=[],IX=A(ef,MX,RX,!1,null,null);const FX=IX.exports;var HX=Object.defineProperty,BX=Object.getOwnPropertyDescriptor,Hb=(r,e,t,s)=>{for(var n=s>1?void 0:s?BX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&HX(e,t,n),n};let wu=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"open")}get bedScrews(){return this.$store.getters["printer/getBedScrews"]}get bedScrewsAdjust(){return this.$store.state.printer.printer.bed_screws}get currentState(){return this.bedScrewsAdjust.state||" "}get currentScrewIndex(){return this.bedScrewsAdjust.current_screw}get currentScrewName(){return this.bedScrews[this.currentScrewIndex].prettyName}get acceptedScrews(){return this.bedScrewsAdjust.accepted_screws}onBedScrewsAdjustActive(e){e||(this.open=!1)}sendAbort(){this.sendGcode("ABORT",this.$waits.onBedScrewsAdjust),this.open=!1}sendAdjusted(){this.sendGcode("ADJUSTED",this.$waits.onBedScrewsAdjust)}sendAccept(){this.sendGcode("ACCEPT",this.$waits.onBedScrewsAdjust)}};Hb([He({type:Boolean})],wu.prototype,"open",2);Hb([Ae("isBedScrewsAdjustActive")],wu.prototype,"onBedScrewsAdjustActive",1);wu=Hb([L({})],wu);var jX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.tool.title.bed_screws_adjust"),"max-width":"450"},on:{save:e.sendAccept},scopedSlots:e._u([{key:"actions",fn:function(){return[t(_t),t(M,{attrs:{color:"warning",text:"",type:"button"},on:{click:e.sendAbort}},[e._v(" "+e._s(e.$t("app.general.btn.abort"))+" ")]),t(M,{attrs:{loading:e.hasWait(e.$waits.onBedScrewsAdjust),color:"primary",text:"",type:"button"},on:{click:e.sendAdjusted}},[e._v(" "+e._s(e.$t("app.general.btn.adjusted"))+" ")]),t(M,{attrs:{loading:e.hasWait(e.$waits.onBedScrewsAdjust),color:"primary",type:"submit"}},[e._v(" "+e._s(e.$t("app.general.btn.accept"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(te,[t(I,[t(ae,{attrs:{label:e.$t("app.general.label.screw_name"),outlined:"","hide-details":"",dense:"",disabled:"",value:e.currentScrewName}})],1)],1),t(te,[t(I,[t(ae,{attrs:{label:e.$t("app.general.label.screw_index"),outlined:"","hide-details":"",dense:"",disabled:"",value:e.$t("app.general.label.partial_of_total",{partial:e.currentScrewIndex+1,total:e.bedScrews.length})}})],1)],1),t(te,[t(I,[t(ae,{attrs:{label:e.$t("app.general.label.accepted_screws"),outlined:"","hide-details":"",dense:"",disabled:"",value:e.$t("app.general.label.partial_of_total",{partial:e.acceptedScrews,total:e.bedScrews.length})}})],1)],1),t(te,[t(I,{staticClass:"text-subtitle-1 text-center"},[t("span",{domProps:{innerHTML:e._s(e.$t("app.general.msg.bed_screws_adjust"))}})])],1),t(Ys,{staticClass:"mt-2",attrs:{value:e.acceptedScrews/e.bedScrews.length*100}})],1)],1)},VX=[],NX=A(wu,jX,VX,!1,null,null);const zX=NX.exports;var UX=Object.defineProperty,WX=Object.getOwnPropertyDescriptor,Bb=(r,e,t,s)=>{for(var n=s>1?void 0:s?WX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&UX(e,t,n),n};let xu=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"open")}get offsets(){return[1,.1,...this.$store.state.config.uiSettings.general.zAdjustDistances].sort((e,t)=>t-e)}get manualProbe(){return this.$store.state.printer.printer.manual_probe}get zPositionLower(){var e;return((e=this.manualProbe.z_position_lower)==null?void 0:e.toFixed(3))||" "}get zPosition(){var e;return((e=this.manualProbe.z_position)==null?void 0:e.toFixed(3))||" "}get zPositionUpper(){var e;return((e=this.manualProbe.z_position_upper)==null?void 0:e.toFixed(3))||" "}onIsManualProbeActive(e){e||(this.open=!1)}sendTestZ(e){this.sendGcode(`TESTZ Z=${e}`)}sendAbort(){this.sendGcode("ABORT",this.$waits.onManualProbe),this.open=!1}sendAccept(){this.sendGcode("ACCEPT",this.$waits.onManualProbe)}};Bb([He({type:Boolean})],xu.prototype,"open",2);Bb([Ae("isManualProbeActive")],xu.prototype,"onIsManualProbeActive",1);xu=Bb([L({})],xu);var GX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.tool.title.manual_probe"),"cancel-button-text":e.$t("app.general.btn.abort"),"save-button-text":e.$t("app.general.btn.accept"),"save-button-loading":e.hasWait(e.$waits.onManualProbe),"max-width":"450"},on:{cancel:e.sendAbort,save:e.sendAccept},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(te,[t(I,[t(ae,{attrs:{label:"Z Min",outlined:"","hide-details":"",dense:"",disabled:"",value:e.zPositionLower}})],1),t(I,[t(ae,{attrs:{label:"Z",outlined:"","hide-details":"",dense:"",disabled:"",value:e.zPosition}})],1),t(I,[t(ae,{attrs:{label:"Z Max",outlined:"","hide-details":"",dense:"",disabled:"",value:e.zPositionUpper}})],1)],1),t(te,{staticClass:"bysect-row"},[t(I,{attrs:{cols:"3",offset:"1"}},[t(Qo,{staticClass:"d-flex"},[t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(s){return e.sendTestZ("--")}}},[e._v(" -- ")]),t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(s){return e.sendTestZ("-")}}},[e._v(" - ")])],1)],1),t(I,{attrs:{cols:"3",offset:"4"}},[t(Qo,{staticClass:"d-flex"},[t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(s){return e.sendTestZ("+")}}},[e._v(" + ")]),t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(s){return e.sendTestZ("++")}}},[e._v(" ++ ")])],1)],1)],1),e._l(e.offsets,function(s){return t(te,{key:s,staticClass:"offset-row"},[t(I,{attrs:{cols:"3",offset:"1"}},[t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(n){return e.sendTestZ(`-${s}`)}}},[t(w,[e._v(" $minus ")])],1)],1),t(I,{attrs:{cols:"4"}},[t("div",{staticClass:"v-btn v-size--default btncolor"},[e._v(" "+e._s(s)+" ")])]),t(I,{attrs:{cols:"3"}},[t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting,color:"primary"},on:{click:function(n){return e.sendTestZ(`+${s}`)}}},[t(w,[e._v(" $plus ")])],1)],1)],1)})],2)],1)},qX=[],ZX=A(xu,GX,qX,!1,null,"a69ab9d1");const S8=ZX.exports;var YX=Object.defineProperty,KX=Object.getOwnPropertyDescriptor,ro=(r,e,t,s)=>{for(var n=s>1?void 0:s?KX(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&YX(e,t,n),n};let zn=class extends b{constructor(){super(...arguments);f(this,"icon");f(this,"disabled");f(this,"color");f(this,"loading");f(this,"tooltip");f(this,"smallIcon")}get hasDefaultSlot(){return!!this.$slots.default||!!this.$scopedSlots.default}};ro([$({type:String,required:!0})],zn.prototype,"icon",2);ro([$({type:Boolean})],zn.prototype,"disabled",2);ro([$({type:String,default:"btncolor"})],zn.prototype,"color",2);ro([$({type:Boolean})],zn.prototype,"loading",2);ro([$({type:String,default:""})],zn.prototype,"tooltip",2);ro([$({type:Boolean})],zn.prototype,"smallIcon",2);zn=ro([L({})],zn);var XX=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Oe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"px-2",attrs:{disabled:e.disabled,"min-width":"40",loading:e.loading,color:e.color},on:{click:function(i){return e.$emit("click")}}},"app-btn",e.tooltip!==""?n:void 0,!1),e.tooltip!==""?s:void 0),[e.icon?t(w,{class:{"mr-1":e.hasDefaultSlot},attrs:{small:e.smallIcon}},[e._v(" "+e._s(e.icon)+" ")]):e._e(),e._t("default")],2)]}}],null,!0)},[t("span",[e._v(e._s(e.tooltip))])])},QX=[],JX=A(zn,XX,QX,!1,null,null);const Ms=JX.exports;var eQ=Object.defineProperty,tQ=Object.getOwnPropertyDescriptor,rQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?tQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&eQ(e,t,n),n};let i_=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"moveLength",null)}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}get hasRoundBed(){return this.$store.getters["printer/getHasRoundBed"]}get canHomeXY(){return!this.hasRoundBed}get toolheadMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadMoveDistances}get toolheadMoveLength(){if(this.moveLength==null){const t=this.$store.state.config.uiSettings.general.defaultToolheadMoveLength;this.moveLength=this.toolheadMoveDistances.includes(t)?t:this.toolheadMoveDistances[0]}return this.moveLength}set toolheadMoveLength(t){this.moveLength=t}axisButtonColor(t){return this.forceMove?"error":t?"primary":void 0}axisButtonDisabled(t,s){return!this.klippyReady||!t&&!(this.forceMove&&!s)}sendMoveGcode(t,s,n=!1){const i=t==="Z"?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed,a=this.$store.state.config.uiSettings.general.axis[t.toLowerCase()].inverted||!1;if(s=n!==a?-s:s,this.forceMove){const o=t==="Z"?this.$store.getters["printer/getPrinterSettings"]("printer.max_z_accel"):this.$store.state.printer.printer.toolhead.max_accel;this.sendGcode(`FORCE_MOVE STEPPER=stepper_${t.toLowerCase()} DISTANCE=${s} VELOCITY=${i} ACCEL=${o}`)}else this.sendGcode(`G91
G1 ${t}${s} F${i*60}
G90`)}};i_=rQ([L({})],i_);var sQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(te,{staticClass:"mb-2",attrs:{"no-gutters":"",justify:"start"}},[t(I,{staticClass:"ml-12 mr-12",attrs:{cols:"auto"}},[t(Ms,{attrs:{color:e.axisButtonColor(e.yHomed),disabled:e.axisButtonDisabled(e.yHomed,e.yHasMultipleSteppers),icon:"$up"},on:{click:function(s){return e.sendMoveGcode("Y",e.toolheadMoveLength)}}})],1),t(I,{staticClass:"ml-2",attrs:{cols:"auto"}},[t(Ms,{attrs:{color:e.axisButtonColor(e.zHomed),disabled:e.axisButtonDisabled(e.zHomed,e.zHasMultipleSteppers),icon:"$up"},on:{click:function(s){return e.sendMoveGcode("Z",e.toolheadMoveLength,!0)}}})],1),t(I,{staticClass:"ml-2"},[t(Ms,{attrs:{color:e.allHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeAll),disabled:!e.klippyReady||e.printerPrinting,icon:"$home","small-icon":""},on:{click:e.homeAll}},[e._v(" "+e._s(e.$t("app.tool.btn.home_all"))+" ")])],1)],1),t(te,{staticClass:"mb-2",attrs:{"no-gutters":"",justify:"start"}},[t(I,{class:{"mr-12":!e.canHomeXY},attrs:{cols:"auto"}},[t(Ms,{attrs:{color:e.axisButtonColor(e.xHomed),disabled:e.axisButtonDisabled(e.xHomed,e.xHasMultipleSteppers),icon:"$left"},on:{click:function(s){return e.sendMoveGcode("X",e.toolheadMoveLength,!0)}}})],1),e.canHomeXY?t(I,{staticClass:"ml-2",attrs:{cols:"auto"}},[t(Ms,{attrs:{color:e.xyHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeXY),disabled:!e.klippyReady||e.printerPrinting,tooltip:e.$t("app.tool.tooltip.home_xy"),icon:"$home"},on:{click:function(s){return e.sendGcode("G28 X Y",e.$waits.onHomeXY)}}})],1):e._e(),t(I,{staticClass:"ml-2",attrs:{cols:"auto",justify:"end"}},[t(Ms,{attrs:{color:e.axisButtonColor(e.xHomed),disabled:e.axisButtonDisabled(e.xHomed,e.xHasMultipleSteppers),icon:"$right"},on:{click:function(s){return e.sendMoveGcode("X",e.toolheadMoveLength)}}})],1),e.canHomeXY?t(I,{staticClass:"ml-2",attrs:{cols:"auto"}},[t(Ms,{attrs:{color:e.zHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeZ),disabled:!e.klippyReady||e.printerPrinting,tooltip:e.$t("app.tool.tooltip.home_z"),icon:"$home"},on:{click:function(s){return e.sendGcode("G28 Z",e.$waits.onHomeZ)}}})],1):e._e(),e.canHomeXY?t(I,{staticClass:"ml-2"},[t(Ms,{attrs:{color:e.xHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeX),disabled:!e.klippyReady||e.printerPrinting,icon:"$home","small-icon":""},on:{click:function(s){return e.sendGcode("G28 X",e.$waits.onHomeX)}}},[e._v(" "+e._s(e.$t("app.tool.btn.home_x"))+" ")])],1):e._e()],1),t(te,{staticClass:"mb-2",attrs:{"no-gutters":"",justify:"start"}},[t(I,{staticClass:"ml-12 mr-7",attrs:{cols:"auto"}},[t(Ms,{attrs:{color:e.axisButtonColor(e.yHomed),disabled:e.axisButtonDisabled(e.yHomed,e.yHasMultipleSteppers),icon:"$down"},on:{click:function(s){return e.sendMoveGcode("Y",e.toolheadMoveLength,!0)}}})],1),t(I,{staticClass:"ml-7",attrs:{cols:"auto"}},[t(Ms,{attrs:{color:e.axisButtonColor(e.zHomed),disabled:e.axisButtonDisabled(e.zHomed,e.zHasMultipleSteppers),icon:"$down"},on:{click:function(s){return e.sendMoveGcode("Z",e.toolheadMoveLength)}}})],1),e.canHomeXY?t(I,{staticClass:"ml-2"},[t(Ms,{attrs:{color:e.yHomed?void 0:"primary",loading:e.hasWait(e.$waits.onHomeY),disabled:!e.klippyReady||e.printerPrinting,icon:"$home","small-icon":""},on:{click:function(s){return e.sendGcode("G28 Y",e.$waits.onHomeY)}}},[e._v(" "+e._s(e.$t("app.tool.btn.home_y"))+" ")])],1):e._e()],1),t(te,{staticClass:"mb-2",attrs:{"no-gutters":"",justify:"start"}},[t(I,[t(km,{staticClass:"elevation-2",attrs:{mandatory:"",dense:""},model:{value:e.toolheadMoveLength,callback:function(s){e.toolheadMoveLength=e._n(s)},expression:"toolheadMoveLength"}},e._l(e.toolheadMoveDistances,function(s,n){return t(M,{key:n,attrs:{small:"","min-width":"40",value:s,disabled:!e.klippyReady}},[e._v(" "+e._s(s)+" ")])}),1)],1)],1)],1)},nQ=[],iQ=A(i_,sQ,nQ,!1,null,"881d031b");const aQ=iQ.exports;var oQ=Object.defineProperty,lQ=Object.getOwnPropertyDescriptor,Xm=(r,e,t,s)=>{for(var n=s>1?void 0:s?lQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&oQ(e,t,n),n};let il=class extends b{constructor(){super(...arguments);f(this,"values");f(this,"color");f(this,"disabled")}get valuesDown(){return[...this.values].sort((e,t)=>t-e)}get valuesUp(){return[...this.values].sort((e,t)=>e-t)}};Xm([$({type:Array,required:!0})],il.prototype,"values",2);Xm([$({type:String})],il.prototype,"color",2);Xm([$({type:Boolean})],il.prototype,"disabled",2);il=Xm([L({})],il);var cQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qo,[e._l(e.valuesDown,function(s){return t(M,{key:`l${s}`,staticClass:"value",attrs:{color:e.color,disabled:e.disabled},on:{click:function(n){return e.$emit("click",-s)}}},[e._v(" -"+e._s(s)+" ")])}),e._t("default"),e._l(e.valuesUp,function(s){return t(M,{key:`r${s}`,staticClass:"value",attrs:{color:e.color,disabled:e.disabled},on:{click:function(n){return e.$emit("click",s)}}},[e._v(" +"+e._s(s)+" ")])})],2)},uQ=[],dQ=A(il,cQ,uQ,!1,null,"2a246693");const w8=dQ.exports;var pQ=Object.defineProperty,hQ=Object.getOwnPropertyDescriptor,x8=(r,e,t,s)=>{for(var n=s>1?void 0:s?hQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&pQ(e,t,n),n};let tf=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"axis")}get values(){return this.axis==="Z"?this.$store.state.config.uiSettings.general.toolheadZMoveDistances:this.$store.state.config.uiSettings.general.toolheadXYMoveDistances}get homed(){switch(this.axis){case"X":return this.xHomed;case"Y":return this.yHomed;case"Z":return this.zHomed}}get wait(){switch(this.axis){case"X":return this.$waits.onHomeX;case"Y":return this.$waits.onHomeY;case"Z":return this.$waits.onHomeZ}}get rate(){return this.axis==="Z"?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed}sendMoveGcode(t){this.sendGcode(`G91
G1 ${this.axis}${t} F${this.rate*60}
G90`)}sendHomeGcode(){this.sendGcode(`G28 ${this.axis}`,this.wait)}};x8([$({type:String})],tf.prototype,"axis",2);tf=x8([L({})],tf);var fQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{staticClass:"mb-2",attrs:{"no-gutters":""}},[t(I,[t(w8,{staticClass:"d-flex",attrs:{values:e.values,color:"primary",disabled:!e.klippyReady||e.printerPrinting||!e.homed},on:{click:function(s){return e.sendMoveGcode(s)}}},[t(M,{staticClass:"flex-grow-1",attrs:{color:e.homed?void 0:"primary",disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(e.wait)},on:{click:e.sendHomeGcode}},[t(w,{staticClass:"mr-1",attrs:{"small-icon":""}},[e._v(" $home ")]),e._v(" "+e._s(e.axis)+" ")],1)],1)],1)],1)},mQ=[],gQ=A(tf,fQ,mQ,!1,null,null);const vQ=gQ.exports;var _Q=Object.defineProperty,yQ=Object.getOwnPropertyDescriptor,C8=(r,e,t,s)=>{for(var n=s>1?void 0:s?yQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&_Q(e,t,n),n};let rf=class extends Z(X){constructor(){super(...arguments);f(this,"stepper")}get values(){return[1,10,50]}get rate(){return this.isStepperZ?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed}get accel(){return this.isStepperZ?this.$store.getters["printer/getPrinterSettings"]("printer.max_z_accel"):this.$store.state.printer.printer.toolhead.max_accel}get isStepperZ(){return this.stepper.key.startsWith("stepper_z")}sendForceMoveGcode(t){this.sendGcode(`FORCE_MOVE STEPPER="${this.stepper.key}" DISTANCE=${t} VELOCITY=${this.rate} ACCEL=${this.accel}`)}};C8([$({type:Object})],rf.prototype,"stepper",2);rf=C8([L({})],rf);var bQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{staticClass:"mb-2",attrs:{"no-gutters":""}},[t(I,[t(w8,{staticClass:"d-flex",attrs:{values:e.values,color:"error"},on:{click:function(s){return e.sendForceMoveGcode(s)}}},[t("div",{staticClass:"v-btn v-size--default btncolor flex-grow-1"},[e._v(" "+e._s(e.stepper.prettyName)+" ")])])],1)],1)},$Q=[],SQ=A(rf,bQ,$Q,!1,null,null);const wQ=SQ.exports;var xQ=Object.defineProperty,CQ=Object.getOwnPropertyDescriptor,PQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?CQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&xQ(e,t,n),n};let a_=class extends Z(X,Ut){get steppers(){return this.$store.getters["printer/getSteppers"].filter(t=>t.key.startsWith("stepper_"))}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}};a_=PQ([L({components:{ToolheadControlBarsAxis:vQ,ToolheadControlBarsStepper:wQ}})],a_);var LQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.forceMove?t("div",e._l(e.steppers,function(s){return t("toolhead-control-bars-stepper",{key:s.key,attrs:{stepper:s}})}),1):t("div",[t("toolhead-control-bars-axis",{attrs:{axis:"X"}}),t("toolhead-control-bars-axis",{attrs:{axis:"Y"}}),t("toolhead-control-bars-axis",{attrs:{axis:"Z"}}),t(te,{staticClass:"mb-2",attrs:{"no-gutters":""}},[t(I,{staticClass:"text-center"},[t(M,{staticClass:"px-2 mr-2",attrs:{disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(e.$waits.onHomeAll),color:e.allHomed?void 0:"primary"},on:{click:e.homeAll}},[t(w,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $home ")]),e._v(" "+e._s(e.$t("app.tool.btn.home_all"))+" ")],1),t(M,{staticClass:"px-2",attrs:{disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(e.$waits.onHomeXY),color:e.xyHomed?void 0:"primary"},on:{click:function(s){return e.sendGcode("G28 X Y",e.$waits.onHomeXY)}}},[t(w,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $home ")]),e._v(" XY ")],1)],1)],1)],1)},AQ=[],EQ=A(a_,LQ,AQ,!1,null,null);const OQ=EQ.exports;var TQ=Object.defineProperty,kQ=Object.getOwnPropertyDescriptor,DQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?kQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&TQ(e,t,n),n};let o_=class extends Z(X,Ut){get enableXYHoming(){return this.$store.state.config.uiSettings.general.toolheadCircleXYHomingEnabled}get stepsXY(){return this.$store.state.config.uiSettings.general.toolheadCircleXYMoveDistances}get stepsZ(){return this.$store.state.config.uiSettings.general.toolheadCircleZMoveDistances}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}get hasSteppersEnabled(){return this.$store.getters["printer/getHasSteppersEnabled"]}get printerSettings(){return this.$store.getters["printer/getPrinterSettings"]()}get printerSupportsQuadGantryLevel(){return"quad_gantry_level"in this.printerSettings}get printerSupportsZTiltAdjust(){return"z_tilt"in this.printerSettings}get printerSupportsLeveling(){return this.printerSupportsQuadGantryLevel||this.printerSupportsZTiltAdjust}get xStepClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!this.xHomed}}get yStepClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!this.yHomed}}get zStepClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!this.zHomed}}get xyStepClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!(this.xHomed||this.yHomed)}}get xHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeX,this.$waits.onHomeXY,this.$waits.onHomeAll]),primary:!this.xHomed}}get yHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeY,this.$waits.onHomeXY,this.$waits.onHomeAll]),primary:!this.yHomed}}get zHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeZ,this.$waits.onHomeAll]),primary:!this.zHomed}}get xyHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeX,this.$waits.onHomeY,this.$waits.onHomeXY,this.$waits.onHomeAll]),primary:!this.xyHomed}}get xyzHomeClasses(){return{disabled:!this.klippyReady||this.printerPrinting||this.hasWait([this.$waits.onHomeX,this.$waits.onHomeY,this.$waits.onHomeZ,this.$waits.onHomeXY,this.$waits.onHomeAll]),primary:!this.allHomed}}get centerToolheadClasses(){const e=this.$store.state.printer.printer.toolhead.position,t=this.bedCenter;return{disabled:!this.klippyReady||this.printerPrinting||!this.xyHomed,primary:!(e[0]===t.x&&e[1]===t.y)}}get levelingClasses(){var s,n;const[e,t]=this.printerSupportsQuadGantryLevel?[!((s=this.$store.state.printer.printer.quad_gantry_level)!=null&&s.applied),this.hasWait(this.$waits.onQGL)]:this.printerSupportsZTiltAdjust?[!((n=this.$store.state.printer.printer.z_tilt)!=null&&n.applied),this.hasWait(this.$waits.onZTilt)]:[];return{disabled:!this.klippyReady||this.printerPrinting||!this.allHomed||t,primary:e}}get motorsOffClasses(){return{disabled:!this.klippyReady||this.printerPrinting||!this.hasSteppersEnabled}}sendLevelingGcode(){this.printerSupportsQuadGantryLevel?this.sendGcode("QUAD_GANTRY_LEVEL",this.$waits.onQGL):this.printerSupportsZTiltAdjust&&this.sendGcode("Z_TILT_ADJUST",this.$waits.onZTilt)}sendMoveGcode(e,t,s=!1){const n=e==="Z"?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed,i=this.$store.state.config.uiSettings.general.axis[e.toLowerCase()].inverted||!1;if(t=s!==i?-t:t,this.forceMove){const a=e==="Z"?this.$store.getters["printer/getPrinterSettings"]("printer.max_z_accel"):this.$store.state.printer.printer.toolhead.max_accel;this.sendGcode(`FORCE_MOVE STEPPER=stepper_${e.toLowerCase()} DISTANCE=${t} VELOCITY=${n} ACCEL=${a}`)}else this.sendGcode(`G91
G1 ${e}${t} F${n*60}
G90`)}get bedSize(){return this.$store.getters["printer/getBedSize"]??{minX:0,minY:0,maxX:0,maxY:0}}get bedCenter(){const e=this.bedSize;return{x:(e.maxX-e.minX)/2,y:(e.maxY-e.minY)/2}}sendMoveCenterGcode(){const e=this.bedCenter,t=this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed;this.sendGcode(`G1 X${e.x} Y${e.y} F${t*60}`)}};o_=DQ([L({})],o_);var MQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(te,[t(I,{staticClass:"pa-0 mt-1"},[t("svg",{staticClass:"app-circle-control",class:{[e.$vuetify.theme.dark?"theme--dark":"theme--light"]:!0},attrs:{xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 426.5 347"}},[t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn outer",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[3],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m408.5,121.331V6.998c0-3.313-2.686-5.998-5.998-5.998h-38.003c-3.313,0-5.998,2.686-5.998,5.998v114.333h50Z"}})]),t("a",{staticClass:"cc-btn outer",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[3],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m358.5,221.331v118.664c0,3.316,2.688,6.005,6.005,6.005h37.991c3.316,0,6.005-2.688,6.005-6.005v-118.664h-50Z"}})]),t("text",{staticClass:"cc-lbl",class:e.zStepClasses,attrs:{transform:"translate(382.5, 25.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ[3])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn outer-mid",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[2],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m408.5,38.274c-8.108-1.489-16.462-2.274-25-2.274s-16.892.785-25,2.274v83.057h50V38.274Z"}})]),t("a",{staticClass:"cc-btn outer-mid",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[2],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m358.5,308.726c8.108,1.489,16.462,2.274,25,2.274s16.892-.785,25-2.274v-87.395h-50v87.395Z"}})]),t("text",{staticClass:"cc-lbl",class:e.zStepClasses,attrs:{transform:"translate(382.5, 60.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ[2])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn inner-mid",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[1],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m408.5,74.077c-8.002-2.006-16.376-3.077-25-3.077s-16.998,1.071-25,3.077v47.255h50v-47.255Z"}})]),t("a",{staticClass:"cc-btn inner-mid",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[1],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m358.5,272.923c8.002,2.006,16.376,3.077,25,3.077s16.998-1.071,25-3.077v-51.592h-50v51.592Z"}})]),t("text",{staticClass:"cc-lbl",class:e.zStepClasses,attrs:{transform:"translate(382.5, 95.663)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ[1])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn inner",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[0],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m383.5,106c-8.836,0-17.266,1.715-25,4.802v26.262c0,.531.211,1.04.586,1.416l6.262,6.262c.621.621,1.584.782,2.351.354,4.677-2.609,10.064-4.096,15.8-4.096s11.123,1.488,15.8,4.096c.767.428,1.73.267,2.351-.354l6.262-6.262c.375-.375.586-.885.586-1.416v-26.262c-7.734-3.087-16.164-4.802-25-4.802Z"}})]),t("a",{staticClass:"cc-btn inner",class:e.zStepClasses,on:{click:function(s){return e.sendMoveGcode("Z",e.stepsZ[0],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m383.5,206c-5.736,0-11.123-1.488-15.8-4.096-.767-.428-1.73-.267-2.351.354l-6.262,6.262c-.375.375-.586.885-.586,1.415v24.87c0,.838.513,1.6,1.298,1.895,7.376,2.77,15.358,4.3,23.702,4.3s16.326-1.53,23.702-4.3c.785-.295,1.298-1.057,1.298-1.895v-24.87c0-.531-.211-1.04-.586-1.415l-6.262-6.262c-.621-.621-1.584-.782-2.351-.354-4.677,2.609-10.064,4.096-15.8,4.096Z"}})]),t("text",{staticClass:"cc-lbl",class:e.zStepClasses,attrs:{transform:"translate(382.5, 130.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsZ[0])+" ")])]),t("g",[e.printerSupportsLeveling?t("a",{staticClass:"cc-btn",class:e.levelingClasses,on:{click:e.sendLevelingGcode}},[t("circle",{staticClass:"cc-btn-container",attrs:{cx:"383.5",cy:"173.5",r:"25"}}),t("path",{attrs:{d:"m396.25,169.25v2.833h-25.5v-2.833h25.5Zm-17.657,12.75h9.815l-4.907-8.5-4.907,8.5Z"}})]):t("a",{staticClass:"cc-btn primary",class:e.motorsOffClasses,on:{click:function(s){return e.sendGcode("M84")}}},[t("circle",{staticClass:"cc-btn-container",attrs:{cx:"383.5",cy:"173.5",r:"25"}}),t("path",{attrs:{d:"m374.356,160.75h19.771c.829.829,1.294,1.294,2.123,2.123v19.771l-2.833-2.833v-15.764l-.463-.463h-15.764l-2.833-2.833Zm15.613,15.613c.389-.877.614-1.842.614-2.863,0-3.912-3.171-7.083-7.083-7.083-1.021,0-1.986.225-2.863.614l2.278,2.278c.193-.027.384-.059.585-.059,2.344,0,4.25,1.906,4.25,4.25,0,.2-.032.392-.059.585l2.278,2.278Zm-3.81-3.81c-.285-.799-.913-1.427-1.712-1.712l1.712,1.712Zm9.03,12.636l1.334,1.334-1.803,1.803-2.076-2.076h-19.771c-.829-.829-1.294-1.294-2.123-2.123v-19.771l-2.076-2.076,1.803-1.803,1.334,1.334,5.607,5.607,1.073,1.073,2.005,2.005,1,1,3.42,3.42,1.587,1.587,2.005,2.005,1.073,1.073,5.607,5.607Zm-15.939-11.689c0,2.343,1.906,4.25,4.25,4.25.2,0,.392-.032.585-.059l-1.532-1.532c-.799-.285-1.427-.913-1.712-1.712l-1.532-1.532c-.027.193-.059.385-.059.585Zm10.56,9.917l-3.448-3.447c-.877.389-1.842.614-2.863.614-3.912,0-7.083-3.171-7.083-7.083,0-1.021.225-1.986.614-2.863l-3.447-3.447v15.764l.463.463h15.764Zm-13.394-4.25c-.782,0-1.417.634-1.417,1.417s.634,1.417,1.417,1.417,1.417-.634,1.417-1.417-.634-1.417-1.417-1.417Zm15.583-12.75c0-.782-.634-1.417-1.417-1.417s-1.417.634-1.417,1.417.634,1.417,1.417,1.417,1.417-.634,1.417-1.417Z"}})])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn outer",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[3],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m132.727,143.333L49.329,59.936c-1.641-1.641-4.325-1.538-5.85.21C17.028,90.461,1,130.107,1,173.5s16.028,83.039,42.479,113.354c1.525,1.748,4.209,1.85,5.85.21l83.841-83.841c-6.389-8.398-10.188-18.874-10.188-30.24,0-11.101,3.623-21.353,9.744-29.649Z"}})]),t("a",{staticClass:"cc-btn outer",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[3],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m213.239,202.632l84.427,84.427c1.643,1.643,4.332,1.541,5.859-.21,26.449-30.314,42.475-69.958,42.475-113.349s-16.026-83.035-42.475-113.349c-1.528-1.751-4.216-1.853-5.859-.21l-83.997,83.997c5.856,8.189,9.314,18.21,9.314,29.045,0,11.101-3.623,21.353-9.744,29.65Z"}})]),t("a",{staticClass:"cc-btn outer",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[3],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m143.333,132.727c8.297-6.121,18.548-9.744,29.65-9.744,11.366,0,21.842,3.799,30.24,10.188l83.834-83.834c1.644-1.644,1.542-4.335-.21-5.863C256.533,17.025,216.89,1,173.5,1S90.467,17.025,60.153,43.473c-1.752,1.529-1.855,4.219-.21,5.863l83.39,83.39Z"}})]),t("a",{staticClass:"cc-btn outer",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[3],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m204.986,215.593c-1.345-1.345-3.435-1.534-5.036-.506-7.781,4.995-17.034,7.896-26.967,7.896-9.684,0-18.718-2.762-26.374-7.53-1.597-.995-3.66-.795-4.991.536l-81.674,81.674c-1.644,1.644-1.542,4.335.21,5.864,30.314,26.448,69.957,42.473,113.346,42.473s83.032-16.025,113.346-42.473c1.752-1.529,1.855-4.22.21-5.864l-82.071-82.071Z"}})]),t("text",{staticClass:"cc-lbl",class:e.xyStepClasses,attrs:{transform:"translate(173.5, 25.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY[3])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn outer-mid",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[2],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m132.727,143.333l-61.608-61.608c-21.833,24.34-35.119,56.504-35.119,91.774s13.286,67.435,35.119,91.774l62.052-62.052c-6.389-8.398-10.188-18.874-10.188-30.24,0-11.101,3.623-21.353,9.744-29.649Z"}})]),t("a",{staticClass:"cc-btn outer-mid",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[2],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m213.239,202.632l62.642,62.642c21.833-24.34,35.119-56.504,35.119-91.774s-13.286-67.435-35.119-91.774l-62.212,62.212c5.856,8.189,9.314,18.21,9.314,29.045,0,11.101-3.623,21.353-9.744,29.65Z"}})]),t("a",{staticClass:"cc-btn outer-mid",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[2],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m143.333,132.727c8.297-6.121,18.548-9.744,29.65-9.744,11.366,0,21.842,3.799,30.24,10.188l62.052-62.052c-24.34-21.833-56.504-35.119-91.774-35.119s-67.435,13.286-91.774,35.119l61.608,61.608Z"}})]),t("a",{staticClass:"cc-btn outer-mid",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[2],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m202.632,213.239c-8.296,6.121-18.548,9.744-29.65,9.744-10.835,0-20.856-3.458-29.045-9.314l-62.212,62.212c24.34,21.833,56.504,35.119,91.774,35.119s67.435-13.286,91.775-35.119l-62.642-62.642Z"}})]),t("text",{staticClass:"cc-lbl",class:e.xyStepClasses,attrs:{transform:"translate(173.5, 60.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY[2])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn inner-mid",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[1],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m132.727,143.333l-36.814-36.814c-15.523,17.965-24.912,41.376-24.912,66.981s9.39,49.016,24.912,66.981l37.258-37.258c-6.389-8.398-10.188-18.874-10.188-30.24,0-11.101,3.623-21.353,9.744-29.649Z"}})]),t("a",{staticClass:"cc-btn inner-mid",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[1],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m213.239,202.632l37.849,37.849c15.523-17.965,24.912-41.376,24.912-66.981s-9.39-49.016-24.912-66.981l-37.419,37.419c5.856,8.189,9.314,18.21,9.314,29.045,0,11.101-3.623,21.353-9.744,29.65Z"}})]),t("a",{staticClass:"cc-btn inner-mid",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[1],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m143.333,132.727c8.297-6.121,18.548-9.744,29.65-9.744,11.366,0,21.842,3.799,30.24,10.188l37.258-37.258c-17.965-15.523-41.376-24.912-66.981-24.912s-49.016,9.39-66.981,24.912l36.814,36.814Z"}})]),t("a",{staticClass:"cc-btn inner-mid",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[1],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m202.632,213.239c-8.296,6.121-18.548,9.744-29.65,9.744-10.835,0-20.856-3.458-29.045-9.314l-37.419,37.419c17.965,15.523,41.376,24.912,66.981,24.912s49.016-9.39,66.981-24.912l-37.849-37.849Z"}})]),t("text",{staticClass:"cc-lbl",class:e.xyStepClasses,attrs:{transform:"translate(173.5, 95.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY[1])+" ")])]),t("g",{staticClass:"cc-section"},[t("a",{staticClass:"cc-btn inner",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[0],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m144.743,155.35l-23.97-23.97c-9.237,11.547-14.773,26.184-14.773,42.121s5.536,30.573,14.773,42.121l23.97-23.97c.621-.621.782-1.584.354-2.351-2.608-4.677-4.097-10.064-4.097-15.799s1.489-11.122,4.098-15.799c.428-.767.267-1.73-.354-2.351Z"}})]),t("a",{staticClass:"cc-btn inner",class:e.xStepClasses,on:{click:function(s){return e.sendMoveGcode("X",e.stepsXY[0],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m202.257,191.65l23.97,23.97c9.237-11.547,14.773-26.184,14.773-42.121s-5.536-30.573-14.773-42.121l-23.97,23.97c-.621.621-.782,1.584-.354,2.351,2.608,4.677,4.097,10.064,4.097,15.799s-1.489,11.122-4.097,15.799c-.428.767-.267,1.73.354,2.351Z"}})]),t("a",{staticClass:"cc-btn inner",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[0],!1)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m155.35,144.743c.621.621,1.584.782,2.351.354,4.677-2.608,10.064-4.097,15.799-4.097s11.122,1.489,15.799,4.097c.767.428,1.73.267,2.351-.354l23.97-23.97c-11.547-9.237-26.184-14.773-42.121-14.773s-30.573,5.536-42.121,14.773l23.97,23.97Z"}})]),t("a",{staticClass:"cc-btn inner",class:e.yStepClasses,on:{click:function(s){return e.sendMoveGcode("Y",e.stepsXY[0],!0)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m191.65,202.257c-.621-.621-1.584-.782-2.351-.354-4.677,2.608-10.064,4.098-15.799,4.098s-11.122-1.489-15.799-4.098c-.767-.428-1.73-.267-2.351.354l-23.97,23.97c11.547,9.237,26.184,14.773,42.121,14.773s30.573-5.536,42.121-14.773l-23.97-23.97Z"}})]),t("text",{staticClass:"cc-lbl",class:e.xyStepClasses,attrs:{transform:"translate(173.5, 130.664)","text-anchor":"middle"}},[e._v(" "+e._s(e.stepsXY[0])+" ")])]),t("g",[e.enableXYHoming?t("a",{staticClass:"cc-btn",class:e.xyzHomeClasses,on:{click:e.homeAll}},[t("circle",{staticClass:"cc-btn-container",attrs:{cx:"173.5",cy:"173.5",r:"25"}}),t("path",{attrs:{d:"m170.667,184.833v-8.5h5.667v8.5h7.083v-11.333h4.25l-14.167-12.75-14.167,12.75h4.25v11.333h7.083Z"}})]):t("a",{staticClass:"cc-btn",class:e.centerToolheadClasses,on:{click:function(s){return e.sendMoveCenterGcode()}}},[t("circle",{staticClass:"cc-btn-container",attrs:{cx:"173.5",cy:"173.5",r:"25"}}),t("path",{attrs:{d:"m174.917,174.917v4.25h-2.833v-4.25h-4.25v-2.833h4.25v-4.25h2.833v4.25h4.25v2.833h-4.25Zm-11.333-11.333h5.667v-2.833h-5.664c-1.566,0-2.836,1.27-2.836,2.836v5.664h2.833v-5.667Zm19.831-2.833h-5.664v2.833h5.667v5.667h2.833v-5.664c0-1.566-1.27-2.836-2.836-2.836Zm.002,22.667h-5.667v2.833h5.664c1.566,0,2.836-1.27,2.836-2.836v-5.664h-2.833v5.667Zm-19.833-5.667h-2.833v5.664c0,1.566,1.27,2.836,2.836,2.836h5.664v-2.833h-5.667v-5.667Z"}})])]),t("g",[t("a",{staticClass:"cc-btn large",class:e.xHomeClasses,on:{click:function(s){return e.sendGcode("G28 X",e.$waits.onHomeX)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m63.219,8.5H14.495c-3.311,0-5.995,2.684-5.995,5.995v48.724c0,5.851,7.555,8.259,10.892,3.454,12.807-18.441,28.839-34.473,47.28-47.28,4.805-3.337,2.397-10.892-3.454-10.892Z"}}),t("path",{attrs:{d:"m19.833,28.167v-5h3.333v5h4.167v-6.667h2.5l-8.333-7.5-8.333,7.5h2.5v6.667h4.167Z"}}),t("text",{attrs:{transform:"translate(31.671 28.167)"}},[e._v("X")])]),t("a",{staticClass:"cc-btn large",class:e.yHomeClasses,on:{click:function(s){return e.sendGcode("G28 Y",e.$waits.onHomeX)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m338.5,63.219V14.495c0-3.311-2.684-5.995-5.995-5.995h-48.724c-5.851,0-8.259,7.555-3.454,10.892,18.441,12.807,34.473,28.839,47.28,47.28,3.337,4.805,10.892,2.397,10.892-3.454Z"}}),t("path",{attrs:{d:"m323.833,28.167v-5h3.333v5h4.167v-6.667h2.5l-8.333-7.5-8.333,7.5h2.5v6.667h4.167Z"}}),t("text",{attrs:{"text-anchor":"end",transform:"translate(315.329 28.167)"}},[e._v("Y")])]),t("a",{staticClass:"cc-btn large",class:e.zHomeClasses,on:{click:function(s){return e.sendGcode("G28 Z",e.$waits.onHomeZ)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m283.781,338.5h48.724c3.311,0,5.995-2.684,5.995-5.995v-48.724c0-5.851-7.555-8.259-10.892-3.454-12.807,18.441-28.839,34.473-47.28,47.28-4.805,3.337-2.397,10.892,3.454,10.892Z"}}),t("path",{attrs:{d:"m323.833,332.167v-5h3.333v5h4.167v-6.667h2.5l-8.333-7.5-8.333,7.5h2.5v6.667h4.167Z"}}),t("text",{attrs:{transform:"translate(315.329 332.167)","text-anchor":"end"}},[e._v("Z")])]),e.enableXYHoming?t("a",{staticClass:"cc-btn large",class:e.xyHomeClasses,on:{click:function(s){return e.sendGcode("G28 X Y",e.$waits.onHomeXY)}}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m8.5,283.781v48.724c0,3.311,2.684,5.995,5.995,5.995h48.724c5.851,0,8.259-7.555,3.454-10.892-18.441-12.807-34.473-28.839-47.28-47.28-3.337-4.805-10.892-2.397-10.892,3.454Z"}}),t("path",{attrs:{d:"m19.833,332.167v-5h3.333v5h4.167v-6.667h2.5l-8.333-7.5-8.333,7.5h2.5v6.667h4.167Z"}}),t("text",{attrs:{transform:"translate(31.671 332.167)"}},[e._v("XY")])]):t("a",{staticClass:"cc-btn large",class:e.xyzHomeClasses,on:{click:e.homeAll}},[t("path",{staticClass:"cc-btn-container",attrs:{d:"m8.5,283.781v48.724c0,3.311,2.684,5.995,5.995,5.995h48.724c5.851,0,8.259-7.555,3.454-10.892-18.441-12.807-34.473-28.839-47.28-47.28-3.337-4.805-10.892-2.397-10.892,3.454Z"}}),t("path",{attrs:{d:"m23.167,330.833v-7h4.667v7h5.833v-9.333h3.5l-11.667-10.5-11.667,10.5h3.5v9.333h5.833Z"}})])])])])],1)],1)},RQ=[],IQ=A(o_,MQ,RQ,!1,null,"496a0c44");const FQ=IQ.exports;var HQ=Object.defineProperty,BQ=Object.getOwnPropertyDescriptor,jb=(r,e,t,s)=>{for(var n=s>1?void 0:s?BQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&HQ(e,t,n),n};let Cu=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"form");f(this,"valid",!0)}get extrudeSpeed(){const t=this.$store.state.config.uiSettings.toolhead.extrudeSpeed;return t===-1?this.$store.state.config.uiSettings.general.defaultExtrudeSpeed:t}set extrudeSpeed(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.toolhead.extrudeSpeed",value:t,server:!1})}get extrudeLength(){const t=this.$store.state.config.uiSettings.toolhead.extrudeLength;return t===-1?this.$store.state.config.uiSettings.general.defaultExtrudeLength:t}set extrudeLength(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.toolhead.extrudeLength",value:t,server:!1})}activeExtruderChanged(){this.form.validate()}maxExtrudeLengthRule(t){return this.$rules.numberLessThanOrEqual(this.maxExtrudeLength)(t)}maxExtrudeSpeedRule(t){return this.$rules.numberLessThanOrEqual(this.maxExtrudeSpeed)(t)}sendRetractGcode(t,s,n){if(this.valid){const i=`M83
G1 E-${t} F${s*60}`;this.sendGcode(i,n)}}sendExtrudeGcode(t,s,n){if(this.valid){const i=`M83
G1 E${t} F${s*60}`;this.sendGcode(i,n)}}mounted(){this.form.validate()}};jb([ke("form")],Cu.prototype,"form",2);jb([Ae("activeExtruder")],Cu.prototype,"activeExtruderChanged",1);Cu=jb([L({})],Cu);var jQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Tl,{ref:"form",on:{submit:function(s){s.preventDefault()}},model:{value:e.valid,callback:function(s){e.valid=s},expression:"valid"}},[t(te,{attrs:{justify:"end"}},[t(I,{staticClass:"text-right",attrs:{cols:"6"}},[t(ae,{attrs:{disabled:!e.klippyReady||!e.activeExtruder,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(.1),e.maxExtrudeLengthRule],type:"number","hide-details":"",outlined:"",dense:"",label:e.$t("app.general.label.extrude_length"),suffix:"mm"},on:{focus:function(s){return s.target.select()}},model:{value:e.extrudeLength,callback:function(s){e.extrudeLength=e._n(s)},expression:"extrudeLength"}})],1),t(I,{attrs:{cols:"6"}},[t(M,{attrs:{disabled:!e.klippyReady||!e.extruderReady||!e.valid,block:""},on:{click:function(s){return e.sendRetractGcode(e.extrudeLength,e.extrudeSpeed,e.$waits.onExtrude)}}},[e._v(" "+e._s(e.$t("app.general.btn.retract"))+" "),t(w,[e._v("$chevronUp")])],1)],1)],1),t(te,{staticClass:"mt-0",attrs:{justify:"end"}},[t(I,{staticClass:"text-right",attrs:{cols:"6"}},[t(ae,{attrs:{disabled:!e.klippyReady||!e.activeExtruder,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(.1),e.maxExtrudeSpeedRule],type:"number","hide-details":"",outlined:"",dense:"",label:e.$t("app.general.label.extrude_speed"),suffix:"mm/s"},on:{focus:function(s){return s.target.select()}},model:{value:e.extrudeSpeed,callback:function(s){e.extrudeSpeed=e._n(s)},expression:"extrudeSpeed"}})],1),t(I,{attrs:{cols:"6"}},[t(M,{attrs:{disabled:!e.klippyReady||!e.extruderReady||!e.valid,block:""},on:{click:function(s){return e.sendExtrudeGcode(e.extrudeLength,e.extrudeSpeed,e.$waits.onExtrude)}}},[e._v(" "+e._s(e.$t("app.general.btn.extrude"))+" "),t(w,[e._v("$chevronDown")])],1)],1)],1)],1)},VQ=[],NQ=A(Cu,jQ,VQ,!1,null,null);const zQ=NQ.exports;var UQ=Object.defineProperty,WQ=Object.getOwnPropertyDescriptor,GQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?WQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&UQ(e,t,n),n};let l_=class extends Z(X){get extruders(){return this.$store.getters["printer/getExtruders"]}get extruder(){return this.$store.state.printer.printer.toolhead.extruder}set extruder(e){this.sendGcode(`ACTIVATE_EXTRUDER EXTRUDER=${e}`,this.$waits.onExtruderChange)}};l_=GQ([L({})],l_);var qQ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Te,{staticClass:"mb-2 v-input--x-dense",staticStyle:{"max-width":"256px"},attrs:{items:e.extruders,readonly:e.printerPrinting,disabled:!e.klippyReady||e.printerPrinting,"item-value":"key","item-text":"name","hide-details":"",outlined:"",dense:""},model:{value:e.extruder,callback:function(s){e.extruder=s},expression:"extruder"}})},ZQ=[],YQ=A(l_,qQ,ZQ,!1,null,null);const KQ=YQ.exports;var XQ=Object.defineProperty,QQ=Object.getOwnPropertyDescriptor,JQ=(r,e,t,s)=>{for(var n=s>1?void 0:s?QQ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&XQ(e,t,n),n};let c_=class extends Z(X,Ut){get gcodePosition(){return this.$store.state.printer.printer.gcode_move.gcode_position}get toolheadPosition(){return this.$store.state.printer.printer.toolhead.position}get livePosition(){return this.$store.state.printer.printer.motion_report.live_position}get useGcodeCoords(){return this.$store.state.config.uiSettings.general.useGcodeCoords}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}get xForceMove(){return this.forceMove&&!this.xHasMultipleSteppers}get yForceMove(){return this.forceMove&&!this.yHasMultipleSteppers}get zForceMove(){return this.forceMove&&!this.zHasMultipleSteppers}get usesAbsolutePositioning(){return this.$store.state.printer.printer.gcode_move.absolute_coordinates}get positioning(){return this.usesAbsolutePositioning?0:1}set positioning(e){this.sendGcode(`G9${e}`)}moveTo(e,t){const s={X:0,Y:1,Z:2},n=this.useGcodeCoords?this.gcodePosition[s[e]]:this.toolheadPosition[s[e]];if(parseInt(n)!==parseInt(t)){const i=e.toLowerCase()==="z"?this.$store.state.config.uiSettings.general.defaultToolheadZSpeed:this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed;if(this.forceMove){const a=e.toLowerCase()==="z"?this.$store.getters["printer/getPrinterSettings"]("printer.max_z_accel"):this.$store.state.printer.printer.toolhead.max_accel;this.sendGcode(`FORCE_MOVE STEPPER=stepper_${e.toLowerCase()} DISTANCE=${t} VELOCITY=${i} ACCEL=${a}`)}else this.sendGcode(`G90
G1 ${e}${t} F${i*60}`)}}};c_=JQ([L({})],c_);var eJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"mb-2"},[t(te,{attrs:{justify:"space-between","no-gutters":""}},[t(I,{staticClass:"pr-1",attrs:{cols:"3"}},[t(ae,{staticClass:"v-input--width-small",attrs:{color:e.forceMove?"error":"primary",label:`X [ ${e.livePosition[0].toFixed(2)} ]`,outlined:"","hide-details":"",dense:"",type:"number",disabled:!e.klippyReady||!e.xHomed&&!e.xForceMove,readonly:e.printerBusy,value:e.useGcodeCoords?e.gcodePosition[0].toFixed(2):e.toolheadPosition[0].toFixed(2)},on:{change:function(s){return e.moveTo("X",s)},focus:function(s){return s.target.select()}}})],1),t(I,{staticClass:"pr-1 pl-1",attrs:{cols:"3"}},[t(ae,{staticClass:"v-input--width-small",attrs:{color:e.forceMove?"error":"primary",label:`Y [ ${e.livePosition[1].toFixed(2)} ]`,outlined:"","hide-details":"",dense:"",type:"number",disabled:!e.klippyReady||!e.yHomed&&!e.yForceMove,readonly:e.printerBusy,value:e.useGcodeCoords?e.gcodePosition[1].toFixed(2):e.toolheadPosition[1].toFixed(2)},on:{change:function(s){return e.moveTo("Y",s)},focus:function(s){return s.target.select()}}})],1),t(I,{staticClass:"pr-1 pl-1",attrs:{cols:"3"}},[t(ae,{staticClass:"v-input--width-small",attrs:{color:e.forceMove?"error":"primary",label:`Z [ ${e.livePosition[2].toFixed(2)} ]`,outlined:"","hide-details":"",dense:"",type:"number",disabled:!e.klippyReady||!e.zHomed&&!e.zForceMove,readonly:e.printerBusy,value:e.useGcodeCoords?e.gcodePosition[2].toFixed(2):e.toolheadPosition[2].toFixed(2)},on:{change:function(s){return e.moveTo("Z",s)},focus:function(s){return s.target.select()}}})],1),t(I,{staticClass:"pl-1",attrs:{cols:"3"}},[t(km,{staticClass:"elevation-2 d-flex",attrs:{mandatory:"",dense:""},model:{value:e.positioning,callback:function(s){e.positioning=s},expression:"positioning"}},[t(Oe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"positioning-toggle-button",attrs:{disabled:!e.klippyReady||e.printerBusy}},"app-btn",n,!1),s),[t(w,{attrs:{small:""}},[e._v(" $absolutePositioning ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.tool.tooltip.absolute_positioning")))])]),t(Oe,{attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"positioning-toggle-button",attrs:{disabled:!e.klippyReady||e.printerBusy}},"app-btn",n,!1),s),[t(w,{attrs:{small:""}},[e._v(" $relativePositioning ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.tool.tooltip.relative_positioning")))])])],1)],1)],1)],1)},tJ=[],rJ=A(c_,eJ,tJ,!1,null,"34f6ec82");const sJ=rJ.exports;var nJ=Object.defineProperty,iJ=Object.getOwnPropertyDescriptor,aJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?iJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&nJ(e,t,n),n};let u_=class extends Z(X){constructor(){super(...arguments);f(this,"moveDistanceValue",null)}get zHomingOrigin(){const{homing_origin:t}=this.$store.state.printer.printer.gcode_move;return t&&t.length>=4?+t[2]:0}get zAdjustValues(){return this.$store.state.config.uiSettings.general.zAdjustDistances}get moveDistance(){return this.moveDistanceValue||this.zAdjustValues[0]}set moveDistance(t){this.moveDistanceValue=t}get availableCommands(){return this.$store.getters["printer/getAvailableCommands"]}get hasZOffsetApplyProbe(){return"Z_OFFSET_APPLY_PROBE"in this.availableCommands}get hasZOffsetApplyEndstop(){return"Z_OFFSET_APPLY_ENDSTOP"in this.availableCommands}sendZAdjustGcode(t){const s=this.$store.getters["printer/getHomedAxes"]("z"),n=`SET_GCODE_OFFSET Z_ADJUST=${t}${this.moveDistance} MOVE=${+s}`;this.sendGcode(n,this.$waits.onZAdjust)}handleZOffsetApply(){this.hasZOffsetApplyProbe&&!this.hasZOffsetApplyEndstop&&this.sendGcode("Z_OFFSET_APPLY_PROBE"),this.hasZOffsetApplyEndstop&&!this.hasZOffsetApplyProbe&&this.sendGcode("Z_OFFSET_APPLY_ENDSTOP")}};u_=aJ([L({})],u_);var oJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.hasZOffsetApplyEndstop||e.hasZOffsetApplyProbe?t(te,{attrs:{align:"start",justify:"end"}},[t(I,{staticClass:"text-right",attrs:{cols:"6"}},[t(km,{staticClass:"elevation-2",attrs:{mandatory:"",dense:""},model:{value:e.moveDistance,callback:function(s){e.moveDistance=s},expression:"moveDistance"}},e._l(e.zAdjustValues,function(s,n){return t(M,{key:n,staticClass:"px-1",attrs:{small:"",disabled:!e.klippyReady,"min-width":"36",value:s}},[e._v(" "+e._s(s)+" ")])}),1),t("div",{staticClass:"mt-1",class:{"text--disabled":!e.klippyReady}},[t("span",{staticClass:"secondary--text"},[e._v(e._s(e.$t("app.general.label.z_offset"))+" ")]),t("span",[e._v(e._s(e.zHomingOrigin.toFixed(3))+"mm")])])],1),t(I,{attrs:{cols:"6"}},[t(te,{staticClass:"mr-n1",attrs:{justify:"space-between","no-gutters":""}},[t(I,{staticClass:"pr-1",attrs:{cols:"4"}},[t(M,{attrs:{loading:e.hasWait(e.$waits.onZAdjust),disabled:!e.klippyReady,small:"",block:""},on:{click:function(s){return e.sendZAdjustGcode("-")}}},[t(w,{attrs:{small:""}},[e._v(" $zUp ")])],1)],1),t(I,{staticClass:"pr-1",attrs:{cols:"4"}},[t(M,{attrs:{loading:e.hasWait(e.$waits.onZAdjust),disabled:!e.klippyReady,small:"",block:""},on:{click:function(s){return e.sendZAdjustGcode("+")}}},[t(w,{attrs:{small:""}},[e._v(" $zDown ")])],1)],1),t(I,{staticClass:"pr-1",attrs:{cols:"4"}},[e.hasZOffsetApplyEndstop!==e.hasZOffsetApplyProbe?t(M,{attrs:{disabled:!e.klippyReady||e.printerPrinting||e.zHomingOrigin===0,small:"",block:""},on:{click:e.handleZOffsetApply}},[t(w,{attrs:{small:""}},[e._v(" $save ")])],1):t(Et,{attrs:{left:"","offset-y":"",transition:"slide-y-transition"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({attrs:{disabled:!e.klippyReady||e.printerPrinting||e.zHomingOrigin===0,small:"",block:""}},"app-btn",n,!1),s),[t(w,{attrs:{small:""}},[e._v(" $save ")]),t(w,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,3320269989)},[t(Mt,{attrs:{dense:""}},[e._l(["Z_OFFSET_APPLY_ENDSTOP","Z_OFFSET_APPLY_PROBE"],function(s){return[t(we,{key:s,on:{click:function(n){return e.sendGcode(s)}}},[t(qe,[t(w,[e._v(" $expandVertical ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s)+" ")])],1)],1)]})],2)],1)],1)],1)],1)],1):e._e()},lJ=[],cJ=A(u_,oJ,lJ,!1,null,null);const uJ=cJ.exports;var dJ=Object.defineProperty,pJ=Object.getOwnPropertyDescriptor,hJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?pJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&dJ(e,t,n),n};let d_=class extends Z(X,lt){get flow(){return Math.round(this.$store.state.printer.printer.gcode_move.extrude_factor*100)||100}handleSetFlow(e){this.sendGcode(`M221 S${e}`,this.$waits.onSetFlow)}get speed(){return Math.round(this.$store.state.printer.printer.gcode_move.speed_factor*100)||100}handleSetSpeed(e){this.sendGcode(`M220 S${e}`,this.$waits.onSetSpeed)}};d_=hJ([L({})],d_);var fJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,[t(I,{attrs:{cols:"12",sm:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.speed"),suffix:"%",value:e.speed,overridable:"","reset-value":100,disabled:!e.klippyReady,loading:e.hasWait(e.$waits.onSetSpeed),locked:e.isMobileViewport,min:1,max:200},on:{submit:e.handleSetSpeed}})],1),t(I,{attrs:{cols:"12",sm:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.flow"),suffix:"%",value:e.flow,overridable:"","reset-value":100,disabled:!e.klippyReady,loading:e.hasWait(e.$waits.onSetFlow),locked:e.isMobileViewport,min:1,max:200},on:{submit:e.handleSetFlow}})],1)],1)},mJ=[],gJ=A(d_,fJ,mJ,!1,null,null);const vJ=gJ.exports;var _J=Object.defineProperty,yJ=Object.getOwnPropertyDescriptor,P8=(r,e,t,s)=>{for(var n=s>1?void 0:s?yJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&_J(e,t,n),n};let sf=class extends Z(X,Ut,lt){constructor(){super(...arguments);f(this,"extruderStepper")}get selectedExtruderStepper(){return this.extruderStepper??this.activeExtruder}handleSetPressureAdvance(t){this.sendSetPressureAdvance("ADVANCE",t)}handleSetSmoothTime(t){this.sendSetPressureAdvance("SMOOTH_TIME",t)}sendSetPressureAdvance(t,s){if(this.extruderStepper){const{name:n}=this.extruderStepper;this.sendGcode(`SET_PRESSURE_ADVANCE ${t}=${s} EXTRUDER=${n}`,`${this.$waits.onSetPressureAdvance}${n}`)}else this.sendGcode(`SET_PRESSURE_ADVANCE ${t}=${s}`,this.$waits.onSetPressureAdvance)}};P8([$({type:Object})],sf.prototype,"extruderStepper",2);sf=P8([L({})],sf);var bJ=function(){var s,n,i,a,o,l,c,u;var e=this,t=e._self._c;return e._self._setupProxy,t(te,[t(I,{attrs:{cols:"12",sm:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.pressure_advance"),suffix:"s",value:((s=e.selectedExtruderStepper)==null?void 0:s.pressure_advance)||0,overridable:"","reset-value":((i=(n=e.selectedExtruderStepper)==null?void 0:n.config)==null?void 0:i.pressure_advance)||0,disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(`${e.$waits.onSetPressureAdvance}${((a=e.extruderStepper)==null?void 0:a.name)??""}`),min:0,max:2,step:1e-4},on:{submit:e.handleSetPressureAdvance}})],1),t(I,{attrs:{cols:"12",sm:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.smooth_time"),suffix:"s",value:((o=e.selectedExtruderStepper)==null?void 0:o.smooth_time)||0,"reset-value":((c=(l=e.selectedExtruderStepper)==null?void 0:l.config)==null?void 0:c.pressure_advance_smooth_time)||0,disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(`${e.$waits.onSetPressureAdvance}${((u=e.extruderStepper)==null?void 0:u.name)??""}`),min:0,max:.2,step:.001},on:{submit:e.handleSetSmoothTime}})],1)],1)},$J=[],SJ=A(sf,bJ,$J,!1,null,null);const L8=SJ.exports;var wJ=Object.defineProperty,xJ=Object.getOwnPropertyDescriptor,CJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?xJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&wJ(e,t,n),n};let p_=class extends Z(X,Ut){get extrudeFactor(){return this.$store.state.printer.printer.gcode_move.extrude_factor||1}get layerHeight(){return .2}get extrudeLength(){const r=this.$store.state.config.uiSettings.toolhead.extrudeLength;return isNaN(+r)?0:r===-1?this.$store.state.config.uiSettings.general.defaultExtrudeLength:r}get extrudeSpeed(){const r=this.$store.state.config.uiSettings.toolhead.extrudeSpeed;return isNaN(+r)?0:r===-1?this.$store.state.config.uiSettings.general.defaultExtrudeSpeed:r}get estimatedExtrudedLength(){return Math.round(this.extrudeLength*this.extrudeFactor*(this.filamentDiameter**2/this.nozzleDiameter**2)*10)/10}get estimatedVolumetricFlow(){return Math.round(Math.PI/4*this.filamentDiameter**2*this.extrudeSpeed*10)/10}get estimatedMaxSpeed(){const r=this.layerHeight*(this.nozzleDiameter+this.layerHeight*(Math.PI/4-1));return Math.round(this.estimatedVolumetricFlow/r*10)/10}};p_=CJ([L({})],p_);var PJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dm,{attrs:{accordion:"",multiple:"",flat:""}},[t(Mm,[t(Im,{scopedSlots:e._u([{key:"actions",fn:function(){return[t(w,{staticClass:"my-1 mr-2",attrs:{small:""}},[e._v(" $expand ")])]},proxy:!0},{key:"default",fn:function({open:s}){return[t(te,{attrs:{"no-gutters":""}},[t(I,{staticClass:"text--secondary text-center",class:{"text--disabled":!e.klippyReady}},[t(Ol,[s?e._e():t("span",[e._v("~ "+e._s(e.estimatedExtrudedLength)+" mm @ "+e._s(e.estimatedVolumetricFlow)+" mm³/s, "+e._s(e.estimatedMaxSpeed)+" mm/s")])])],1)],1)]}}])}),t(Rm,[t("div",{staticClass:"text-center",class:{"text--disabled":!e.klippyReady}},[t("p",{domProps:{innerHTML:e._s(e.$t("app.tool.label.stats_active_extruder",{filamentDiameter:e.filamentDiameter,nozzleDiameter:e.nozzleDiameter}))}}),t("p",{domProps:{innerHTML:e._s(e.$t("app.tool.label.stats_volumetric_flow",{extrudeSpeed:e.extrudeSpeed,estimatedVolumetricFlow:e.estimatedVolumetricFlow}))}}),t("p",{domProps:{innerHTML:e._s(e.$t("app.tool.label.stats_extruded_length",{extrudeLength:e.extrudeLength,extrudeFactor:(e.extrudeFactor*100).toFixed(),estimatedExtrudedLength:e.estimatedExtrudedLength}))}}),t("p",{domProps:{innerHTML:e._s(e.$t("app.tool.label.stats_max_speed",{layerHeight:e.layerHeight,estimatedMaxSpeed:e.estimatedMaxSpeed}))}})])])],1)],1)},LJ=[],AJ=A(p_,PJ,LJ,!1,null,null);const EJ=AJ.exports;var OJ=Object.defineProperty,TJ=Object.getOwnPropertyDescriptor,so=(r,e,t,s)=>{for(var n=s>1?void 0:s?TJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&OJ(e,t,n),n};let Un=class extends b{constructor(){super(...arguments);f(this,"inputValue");f(this,"label");f(this,"disabled");f(this,"loading");f(this,"trueValue");f(this,"falseValue")}};so([He({type:Boolean})],Un.prototype,"inputValue",2);so([$({type:String,required:!0})],Un.prototype,"label",2);so([$({type:Boolean})],Un.prototype,"disabled",2);so([$({type:Boolean})],Un.prototype,"loading",2);so([$({})],Un.prototype,"trueValue",2);so([$({})],Un.prototype,"falseValue",2);Un=so([L({})],Un);var kJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ur,{attrs:{"justify-space-between":"","align-center":""}},[t("div",{staticClass:"text-body-1",class:{"text--disabled":e.disabled},domProps:{innerHTML:e._s(e.label)}}),t(Ce,e._g({staticClass:"mt-0",attrs:{disabled:e.disabled||e.loading,"true-value":e.trueValue,"false-value":e.falseValue,"hide-details":""},model:{value:e.inputValue,callback:function(s){e.inputValue=s},expression:"inputValue"}},e.$listeners))],1)},DJ=[],MJ=A(Un,kJ,DJ,!1,null,null);const A8=MJ.exports;var RJ=Object.defineProperty,IJ=Object.getOwnPropertyDescriptor,Es=(r,e,t,s)=>{for(var n=s>1?void 0:s?IJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&RJ(e,t,n),n};let Wr=class extends b{constructor(){super(...arguments);f(this,"inputValue");f(this,"resetValue");f(this,"items");f(this,"label");f(this,"disabled");f(this,"loading");f(this,"prefix");f(this,"suffix");f(this,"itemValue");f(this,"itemText");f(this,"returnObject")}handleReset(){this.resetValue!==void 0&&this.$emit("change",this.resetValue)}};Es([He({})],Wr.prototype,"inputValue",2);Es([$({})],Wr.prototype,"resetValue",2);Es([$({type:Array})],Wr.prototype,"items",2);Es([$({type:String,required:!0})],Wr.prototype,"label",2);Es([$({type:Boolean})],Wr.prototype,"disabled",2);Es([$({type:Boolean})],Wr.prototype,"loading",2);Es([$({type:String})],Wr.prototype,"prefix",2);Es([$({type:String})],Wr.prototype,"suffix",2);Es([$({type:String})],Wr.prototype,"itemValue",2);Es([$({type:String})],Wr.prototype,"itemText",2);Es([$({type:Boolean})],Wr.prototype,"returnObject",2);Wr=Es([L({})],Wr);var FJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{"no-gutters":""}},[t(I,{staticClass:"text-body-1 py-0",class:{"text--disabled":e.disabled},attrs:{cols:"12",sm:"5","align-self":"center"},domProps:{innerHTML:e._s(e.label)}}),t(I,{staticClass:"py-0"},[t(Te,e._g({staticClass:"mt-0",attrs:{items:e.items,disabled:e.disabled||e.loading,prefix:e.prefix,suffix:e.suffix,"item-value":e.itemValue,"item-text":e.itemText,"return-object":e.returnObject,dense:"","single-line":"",outlined:"","hide-details":""},scopedSlots:e._u([{key:"prepend",fn:function(){return[e.resetValue!==void 0?t(M,{staticStyle:{"margin-top":"-4px"},attrs:{disabled:e.disabled,color:"",icon:"",small:""},on:{click:e.handleReset}},[t(w,{attrs:{small:""}},[e._v(" $reset ")])],1):e._e()]},proxy:!0}]),model:{value:e.inputValue,callback:function(s){e.inputValue=s},expression:"inputValue"}},e.$listeners))],1)],1)},HJ=[],BJ=A(Wr,FJ,HJ,!1,null,null);const jJ=BJ.exports;var VJ=Object.defineProperty,NJ=Object.getOwnPropertyDescriptor,E8=(r,e,t,s)=>{for(var n=s>1?void 0:s?NJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&VJ(e,t,n),n};let nf=class extends Z(X){constructor(){super(...arguments);f(this,"extruderStepper")}get availableExtruders(){return this.$store.getters["printer/getExtruders"]}sendSyncExtruderMotion(t){this.sendGcode(`SYNC_EXTRUDER_MOTION EXTRUDER=${this.extruderStepper.name} MOTION_QUEUE=${t??""}`,`${this.$waits.onSyncExtruder}${this.extruderStepper.name}`)}sendSetStepperEnable(t){this.sendGcode(`SET_STEPPER_ENABLE STEPPER="${this.extruderStepper.key}" ENABLE=${+t}`,`${this.$waits.onStepperEnable}${this.extruderStepper.name}`)}};E8([$({type:Object,required:!0})],nf.prototype,"extruderStepper",2);nf=E8([L({})],nf);var zJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,[t(I,{attrs:{cols:"12",sm:"6"}},[t(jJ,{attrs:{value:e.extruderStepper.motion_queue,label:e.$t("app.general.label.synced_extruder"),items:[{name:e.$t("app.setting.label.none"),key:null},...e.availableExtruders],disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(`${e.$waits.onSyncExtruder}${e.extruderStepper.name}`),"reset-value":e.extruderStepper.config.extruder,"item-value":"key","item-text":"name"},on:{change:e.sendSyncExtruderMotion}})],1),e.extruderStepper.enabled!==void 0?t(I,{attrs:{cols:"12",sm:"6"}},[t(A8,{attrs:{value:e.extruderStepper.enabled,label:e.$t("app.general.label.stepper_enabled"),disabled:!e.klippyReady||e.printerPrinting,loading:e.hasWait(`${e.$waits.onStepperEnable}${e.extruderStepper.name}`)},on:{change:e.sendSetStepperEnable}})],1):e._e()],1)},UJ=[],WJ=A(nf,zJ,UJ,!1,null,null);const GJ=WJ.exports;var qJ=Object.defineProperty,ZJ=Object.getOwnPropertyDescriptor,YJ=(r,e,t,s)=>{for(var n=s>1?void 0:s?ZJ(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&qJ(e,t,n),n};let h_=class extends b{get extruderSteppers(){const e=this.$store.getters["printer/getExtruders"];return this.$store.getters["printer/getExtruderSteppers"].map(s=>{var o;const n=(s.motion_queue&&((o=e.find(l=>l.key===s.motion_queue))==null?void 0:o.name))??this.$t("app.setting.label.none"),i=s.enabled!==void 0&&this.$t(`app.general.label.${s.enabled?"on":"off"}`),a=i?`${n}, ${i}`:n;return{...s,description:a}})}};h_=YJ([L({components:{ExtruderStepperSync:GJ,PressureAdvanceAdjust:L8}})],h_);var KJ=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Dm,{attrs:{accordion:"",multiple:"",flat:""}},e._l(e.extruderSteppers,function(s){return t(Mm,{key:`extruderStepper-${s.name}`},[t(R),t(Im,{scopedSlots:e._u([{key:"actions",fn:function(){return[t(w,{staticClass:"my-1 mr-2",attrs:{small:""}},[e._v(" $expand ")])]},proxy:!0},{key:"default",fn:function({open:n}){return[t(Ol,{attrs:{"leave-absolute":""}},[n?t("span",{key:"0"},[e._v(" "+e._s(s.prettyName)+" ")]):t("span",{key:"1"},[e._v(" "+e._s(s.prettyName)+" "),t("span",{staticClass:"secondary--text"},[e._v("[ "+e._s(s.description)+" ]")])])])]}}],null,!0)}),t(Rm,[t("extruder-stepper-sync",{attrs:{"extruder-stepper":s}}),s.pressure_advance!==void 0?t("pressure-advance-adjust",{attrs:{"extruder-stepper":s}}):e._e()],1)],1)}),1)},XJ=[],QJ=A(h_,KJ,XJ,!1,null,null);const JJ=QJ.exports;var eee=Object.defineProperty,tee=Object.getOwnPropertyDescriptor,ree=(r,e,t,s)=>{for(var n=s>1?void 0:s?tee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&eee(e,t,n),n};let f_=class extends Z(X){get availableCommands(){return this.$store.getters["printer/getAvailableCommands"]}get toolChangeCommands(){const e=this.availableCommands;return Object.keys(e).filter(t=>/^t\d+$/i.test(t)).map(t=>{var a,o,l;const{help:s}=e[t],n=s&&s!=="G-Code macro"?s:this.$t("app.tool.tooltip.select_tool",{tool:t.substring(1)}),i=this.$store.getters["macros/getMacroByName"](t.toLowerCase());return{name:t,description:n,color:(a=i==null?void 0:i.variables)!=null&&a.color?`#${i.variables.color}`:void 0,active:((o=i==null?void 0:i.variables)==null?void 0:o.active)??!1,spoolId:(l=i==null?void 0:i.variables)==null?void 0:l.spool_id}}).sort((t,s)=>{const n=parseInt(t.name.substring(1)),i=parseInt(s.name.substring(1));return n-i})}getSpoolById(e){return this.$store.getters["spoolman/getSpoolById"](e)}getSpoolColor(e){return`#${(e==null?void 0:e.filament.color_hex)??(this.$vuetify.theme.dark?"fff":"000")}`}};f_=ree([L({})],f_);var see=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.toolChangeCommands.length>0?t(te,[t(I,[t(Qo,{staticClass:"app-toolchanger-control d-flex",class:{[e.$vuetify.theme.dark?"theme--dark":"theme--light"]:!0}},e._l(e.toolChangeCommands,function(s,n){return t(Oe,{key:n,attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:a}){return[t(M,e._g(e._b({staticClass:"px-0 flex-grow-1",attrs:{"min-width":"10",color:s.active?"primary":void 0,disabled:!e.klippyReady||e.printerPrinting},on:{click:function(o){return e.sendGcode(s.name)}}},"app-btn",a,!1),i),[s.spoolId&&e.getSpoolById(s.spoolId)?t(w,{staticClass:"mr-1 spool-icon",attrs:{color:e.getSpoolColor(e.getSpoolById(s.spoolId))}},[e._v(" $filament ")]):s.color?t("span",{staticClass:"extruder-color mr-1",class:{active:s.active},style:{background:s.color}}):e._e(),e._v(" "+e._s(s.name)+" ")],1)]}}],null,!0)},[e._v(" "+e._s(s.description)+" ")])}),1)],1)],1):e._e()},nee=[],iee=A(f_,see,nee,!1,null,"a65307b5");const aee=iee.exports;var oee=Object.defineProperty,lee=Object.getOwnPropertyDescriptor,cee=(r,e,t,s)=>{for(var n=s>1?void 0:s?lee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&oee(e,t,n),n};let m_=class extends Z(X,Ut){get showPressureAdvance(){var e;return((e=this.activeExtruder)==null?void 0:e.pressure_advance)!==void 0}get toolheadControlStyle(){return this.$store.state.config.uiSettings.general.toolheadControlStyle}};m_=cee([L({components:{ToolheadControlCross:aQ,ToolheadControlBars:OQ,ToolheadControlCircle:FQ,ExtruderMoves:zQ,ExtruderSelection:KQ,ToolheadPosition:sJ,ZHeightAdjust:uJ,SpeedAndFlowAdjust:vJ,PressureAdvanceAdjust:L8,ExtruderStats:EJ,ExtruderSteppers:JJ,ToolChangeCommands:aee}})],m_);var uee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Pe,[t(te,{attrs:{justify:"space-between",align:"start"}},[t(I,{staticClass:"controls-wrapper"},[e.hasMultipleExtruders?t("extruder-selection"):e._e(),e.printerPrinting?t("z-height-adjust"):[e.toolheadControlStyle==="cross"?t("toolhead-control-cross"):e.toolheadControlStyle==="bars"?t("toolhead-control-bars"):e.toolheadControlStyle==="circle"?t("toolhead-control-circle"):e._e()]],2),t(I,{staticClass:"controls-wrapper"},[t("toolhead-position"),!e.printerPrinting&&e.hasExtruder?t("extruder-moves"):e._e(),e.printerPrinting?e._e():t("z-height-adjust")],1)],1)],1),e.printerPrinting?e._e():[t(R),t("extruder-stats"),t(R)],t(Pe,[t("speed-and-flow-adjust"),e.showPressureAdvance?t("pressure-advance-adjust"):e._e()],1),t("extruder-steppers")],2)},dee=[],pee=A(m_,uee,dee,!1,null,"4381f60a");const hee=pee.exports;var fee=Object.defineProperty,mee=Object.getOwnPropertyDescriptor,Ed=(r,e,t,s)=>{for(var n=s>1?void 0:s?mee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&fee(e,t,n),n};let Da=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"manualProbeDialogOpen",!1);f(this,"bedScrewsAdjustDialogOpen",!1);f(this,"screwsTiltAdjustDialogOpen",!1);f(this,"menuCollapsed")}get printerSettings(){return this.$store.getters["printer/getPrinterSettings"]()}get printerSupportsQuadGantryLevel(){return"quad_gantry_level"in this.printerSettings}get printerSupportsZTiltAdjust(){return"z_tilt"in this.printerSettings}get printerSupportsBedScrewsAdjust(){return"bed_screws"in this.printerSettings}get printerSupportsBedScrewsCalculate(){return"screws_tilt_adjust"in this.printerSettings}get printerSupportsBedTiltCalibrate(){return"bed_tilt"in this.printerSettings}get printerSupportsDeltaCalibrate(){return"delta_calibrate"in this.printerSettings}get printerSupportsProbeCalibrate(){return"probe"in this.printerSettings||"bltouch"in this.printerSettings}get printerSupportsZEndstopCalibrate(){return"stepper_z"in this.printerSettings&&"z_position_endstop"in this.printerSettings.stepper_z}get loadFilamentMacro(){return this.$store.getters["macros/getMacroByName"]("load_filament","filament_load","m701")}get unloadFilamentMacro(){return this.$store.getters["macros/getMacroByName"]("unload_filament","filament_unload","m702")}get cleanNozzleMacro(){return this.$store.getters["macros/getMacroByName"]("clean_nozzle","nozzle_clean","wipe_nozzle","nozzle_wipe","g12")}get availableTools(){var a,o;const t=[],s=this.loadFilamentMacro;if(s){const l=((a=s.variables)==null?void 0:a.ignore_min_extrude_temp)??!1;t.push({name:s.name.toUpperCase(),label:s.name==="m701"?"M701 (Load Filament)":void 0,icon:"$loadFilament",disabled:!(l||this.extruderReady)})}const n=this.unloadFilamentMacro;if(n){const l=((o=n.variables)==null?void 0:o.ignore_min_extrude_temp)??!1;t.push({name:n.name.toUpperCase(),label:n.name==="m702"?"M702 (Unload Filament)":void 0,icon:"$unloadFilament",disabled:!(l||this.extruderReady)})}const i=this.cleanNozzleMacro;return i&&t.push({name:i.name.toUpperCase(),label:i.name==="g12"?"G12 (Clean the Nozzle)":void 0,icon:"$cleanNozzle"}),t.length>0&&t.push({name:"-"}),this.printerSupportsBedScrewsAdjust&&t.push({name:"BED_SCREWS_ADJUST",disabled:!this.allHomed||this.isBedScrewsAdjustActive,wait:this.$waits.onBedScrewsAdjust}),this.printerSupportsBedTiltCalibrate&&t.push({name:"BED_TILT_CALIBRATE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onBedTiltCalibrate}),this.printerSupportsDeltaCalibrate&&t.push({name:"DELTA_CALIBRATE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onDeltaCalibrate}),t.push({name:"MANUAL_PROBE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onManualProbe}),this.printerSupportsProbeCalibrate&&(t.push({name:"PROBE_ACCURACY",disabled:!this.allHomed,wait:this.$waits.onProbeAccuracy}),t.push({name:"PROBE_CALIBRATE",disabled:!this.allHomed,wait:this.$waits.onProbeCalibrate})),this.printerSupportsQuadGantryLevel&&t.push({name:"QUAD_GANTRY_LEVEL",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onQGL}),this.printerSupportsBedScrewsCalculate&&t.push({name:"SCREWS_TILT_CALCULATE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onBedScrewsCalculate}),this.printerSupportsZEndstopCalibrate&&t.push({name:"Z_ENDSTOP_CALIBRATE",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onZEndstopCalibrate}),this.printerSupportsZTiltAdjust&&t.push({name:"Z_TILT_ADJUST",disabled:!this.allHomed||this.isManualProbeActive,wait:this.$waits.onZTilt}),t}get printerSupportsForceMove(){var t;return(((t=this.printerSettings.force_move)==null?void 0:t.enable_force_move)??!1)&&!this.hasRoundBed}get hasSteppersEnabled(){return this.$store.getters["printer/getHasSteppersEnabled"]}get hasRoundBed(){return this.$store.getters["printer/getHasRoundBed"]}get showManualProbeDialogAutomatically(){return this.$store.state.config.uiSettings.general.showManualProbeDialogAutomatically}get showBedScrewsAdjustDialogAutomatically(){return this.$store.state.config.uiSettings.general.showBedScrewsAdjustDialogAutomatically}get showScrewsTiltAdjustDialogAutomatically(){return this.$store.state.config.uiSettings.general.showScrewsTiltAdjustDialogAutomatically}get forceMove(){return this.$store.state.config.uiSettings.toolhead.forceMove}onIsManualProbeActive(t){t&&this.showManualProbeDialogAutomatically&&this.klippyReady&&!this.printerPrinting&&(this.manualProbeDialogOpen=!0)}onIsBedScrewsAdjustActive(t){t&&this.showBedScrewsAdjustDialogAutomatically&&this.klippyReady&&!this.printerPrinting&&(this.bedScrewsAdjustDialogOpen=!0)}onHasScrewsTiltAdjustResults(t){this.screwsTiltAdjustDialogOpen=t&&this.showScrewsTiltAdjustDialogAutomatically&&this.klippyReady&&!this.printerPrinting}async toggleForceMove(){(this.forceMove||!this.$store.state.config.uiSettings.general.forceMoveToggleWarning||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_forcemove_toggle"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.toolhead.forceMove",value:!this.forceMove,server:!1})}};Ed([$({type:Boolean})],Da.prototype,"menuCollapsed",2);Ed([Ae("isManualProbeActive")],Da.prototype,"onIsManualProbeActive",1);Ed([Ae("isBedScrewsAdjustActive")],Da.prototype,"onIsBedScrewsAdjustActive",1);Ed([Ae("hasScrewsTiltAdjustResults")],Da.prototype,"onHasScrewsTiltAdjustResults",1);Da=Ed([L({components:{Toolhead:hee}})],Da);var gee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.tool"),icon:"$printer3dNozzle",draggable:"","layout-path":"dashboard.toolhead-card","menu-breakpoint":"lg"},scopedSlots:e._u([{key:"title",fn:function(){var s;return[t(w,{attrs:{left:""}},[e._v(" $printer3dNozzle ")]),t("span",{staticClass:"font-weight-light"},[e._v(e._s(e.$t("app.general.title.tool")))]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t(w,e._g(e._b({directives:[{name:"show",rawName:"v-show",value:e.hasExtruder&&!e.extruderReady,expression:"hasExtruder && !extruderReady"}],staticClass:"ml-3",attrs:{color:"info"}},"v-icon",i,!1),n),[e._v(" $snowflakeAlert ")])]}}])},[t("span",{domProps:{innerHTML:e._s(e.$t("app.tool.tooltip.extruder_disabled",{min:(s=e.activeExtruder)==null?void 0:s.min_extrude_temp}))}})])]},proxy:!0},{key:"menu",fn:function(){return[t(xn,{attrs:{collapsed:e.menuCollapsed}},[e.isManualProbeActive?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting,small:""},on:{click:function(s){e.manualProbeDialogOpen=!0}}},[e._v(" "+e._s(e.$t("app.tool.tooltip.manual_probe"))+" ")]):e._e(),e.isBedScrewsAdjustActive?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting||!e.allHomed,small:""},on:{click:function(s){e.bedScrewsAdjustDialogOpen=!0}}},[e._v(" BED_SCREWS_ADJUST ")]):e._e(),e.printerSupportsForceMove?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting,small:"",color:e.forceMove?"error":void 0},on:{click:e.toggleForceMove}},[e._v(" FORCE_MOVE ")]):e._e(),e.hasSteppersEnabled?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting,small:""},on:{click:function(s){return e.sendGcode("M84")}}},[e._v(" "+e._s(e.$t("app.tool.tooltip.motors_off"))+" ")]):e._e(),e.availableTools.length?t(Et,{attrs:{left:"","offset-y":"",transition:"slide-y-transition"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{small:"",disabled:!e.klippyReady||e.printerPrinting}},"app-btn",n,!1),s),[t(w,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $tools ")]),e._v(" "+e._s(e.$t("app.tool.tooltip.tools"))+" "),t(w,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,1323930593)},[t(Mt,{attrs:{dense:""}},[e._l(e.availableTools,function(s,n){return[s.name!=="-"?t(we,{key:s.name,attrs:{disabled:s.disabled||s.wait&&e.hasWait(s.wait)},on:{click:function(i){return e.sendGcode(s.name,s.wait)}}},[t(qe,[t(w,[e._v(" "+e._s(s.icon||"$tools")+" ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s.label||s.name)+" ")])],1)],1):t(R,{key:`sep=${n}`})]})],2)],1):e._e()],1)]},proxy:!0}])},[t("toolhead"),e.manualProbeDialogOpen?t(S8,{model:{value:e.manualProbeDialogOpen,callback:function(s){e.manualProbeDialogOpen=s},expression:"manualProbeDialogOpen"}}):e._e(),e.bedScrewsAdjustDialogOpen?t(zX,{model:{value:e.bedScrewsAdjustDialogOpen,callback:function(s){e.bedScrewsAdjustDialogOpen=s},expression:"bedScrewsAdjustDialogOpen"}}):e._e(),e.screwsTiltAdjustDialogOpen?t(FX,{model:{value:e.screwsTiltAdjustDialogOpen,callback:function(s){e.screwsTiltAdjustDialogOpen=s},expression:"screwsTiltAdjustDialogOpen"}}):e._e()],1)},vee=[],_ee=A(Da,gee,vee,!1,null,null);const yee=_ee.exports,eh=r=>{const e=["temperature_fan","controller_fan","heater_fan","fan_generic","fan"],t=["temperature_sensor","temperature_probe","tmc2240","z_thermal_adjust"],s=["heater_generic","extruder"],n=["heater_bed"];return e.some(i=>r.startsWith(i))?"fan":t.some(i=>r.startsWith(i))?"sensor":s.some(i=>r.startsWith(i))?"heater":n.some(i=>r.startsWith(i))?"bed":""};var bee=Object.defineProperty,$ee=Object.getOwnPropertyDescriptor,Qm=(r,e,t,s)=>{for(var n=s>1?void 0:s?$ee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&bee(e,t,n),n};let al=class extends Z(lt){constructor(){super(...arguments);f(this,"height");f(this,"chart");f(this,"loading",!1);f(this,"series",[]);f(this,"initialSelected",{})}handleLegendSelectChanged(t){this.$store.dispatch("charts/saveSelectedLegends",t.selected);let s=this.isMobileViewport?15:20;this.showPowerAxis(t.selected)&&(s=this.isMobileViewport?25:45),this.chart&&!this.loading&&this.chart.setOption({grid:{right:s},yAxis:[{},{show:this.showPowerAxis(t.selected)}]})}get chartData(){return this.$store.getters["charts/getChartData"]}onDataChange(t){this.chart&&!this.loading&&this.chart.setOption({dataset:{source:t}})}mounted(){this.init(),this.loading=!1}beforeDestroy(){typeof window>"u"||this.chart&&this.chart.dispose()}init(){const t=Object.keys(this.chartData[0]);this.$store.getters["printer/getChartableSensors"].forEach(n=>{this.series.push(this.createSeries(n)),t.includes(`${n}Target`)&&this.series.push(this.createSeries(`${n}Target`)),t.includes(`${n}Power`)&&this.series.push(this.createSeries(`${n}Power`)),t.includes(`${n}Speed`)&&this.series.push(this.createSeries(`${n}Speed`))})}get options(){const t=this.$store.state.config.uiSettings.theme.isDark,s=t?"rgba(255,255,255,0.65)":"rgba(0,0,0,0.45)",n=this.isMobileViewport?13:14,i={color:t?"#ffffff":"#000000",opacity:.05},a={color:t?"#ffffff":"#000000",opacity:.5};let o=this.isMobileViewport?15:20;this.showPowerAxis(this.initialSelected)&&(o=this.isMobileViewport?35:45);const l={top:20,left:this.isMobileViewport?35:45,right:o,bottom:this.isMobileViewport?52:38},c={backgroundColor:t?"rgba(15,15,15,0.75)":"rgba(255,255,255,0.75)",borderColor:t?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.85)",textStyle:{color:s,fontSize:n}},u=this.$vuetify.theme.currentTheme,d=[u.primary,u.secondary];return{grid:l,textStyle:{fontFamily:"Roboto"},color:d,legend:{show:!1,selected:this.initialSelected},tooltip:{...c,trigger:"axis",confine:!1,axisPointer:{type:"line",lineStyle:a,label:{color:s,fontSize:n,backgroundColor:c.backgroundColor}},position:this.tooltipPosition,formatter:h=>{let m="";return h.forEach(g=>{if(!g.seriesName.toLowerCase().endsWith("target")&&!g.seriesName.toLowerCase().endsWith("power")&&!g.seriesName.toLowerCase().endsWith("speed")&&g.seriesName&&g.value[g.seriesName]!=null){const v=g.seriesName.split(" ",2).pop();m+=`
<div>
${g.marker}
<span style="font-size:${n}px;color:${s};font-weight:400;margin-left:2px">
${this.$filters.prettyCase(v)}:
</span>
<span style="float:right;margin-left:20px;font-size:${n}px;color:${s};font-weight:900">
${g.value[g.seriesName].toFixed(2)}<small>°C</small>`,g.seriesName+"Target"in g.value&&(m+=` / ${g.value[g.seriesName+"Target"].toFixed()}<small>°C</small>`),g.seriesName+"Power"in g.value&&(m+=` / ${(g.value[g.seriesName+"Power"]*100).toFixed()}<small>%</small>`),g.seriesName+"Speed"in g.value&&(m+=` / ${(g.value[g.seriesName+"Speed"]*100).toFixed()}<small>%</small>`),m+=`</span>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>`}}),m}},xAxis:{type:"time",boundaryGap:!1,max:"dataMax",min:h=>{const m=this.$store.getters["charts/getChartRetention"];return h.max-m*1e3},axisTick:{show:!1},splitLine:{show:!0,lineStyle:i},axisLabel:{interval:0,margin:14,color:c.textStyle.color,fontSize:n,formatter:"{H}:{mm}",rotate:this.isMobileViewport?45:0},axisPointer:{label:{show:!0,margin:9,formatter:this.xAxisPointerFormatter}}},yAxis:[{name:"Temperature °C",nameTextStyle:{fontSize:n,color:s,align:"left"},nameGap:8,show:!0,type:"value",position:"left",splitLine:{show:!0,lineStyle:i},minInterval:20,maxInterval:60,min:this.yAxisTempMin,max:this.yAxisTempMax,axisLabel:{interval:0,margin:8,color:s,fontSize:n,formatter:"{value}"},boundaryGap:[0,"100%"]},{name:"Power %",nameTextStyle:{fontSize:n,color:s,align:"right"},nameGap:8,show:this.showPowerAxis(this.initialSelected),type:"value",position:"right",splitLine:{show:!1,lineStyle:i},min:0,max:1,axisLabel:{interval:0,margin:8,color:s,fontSize:n,formatter:this.yAxisPowerFormatter},boundaryGap:[0,"100%"]}],dataZoom:[{type:"inside",zoomOnMouseWheel:"shift"}],series:this.series}}createSeries(t){const s=this.$colorset.next(eh(t),t),n={name:t,type:"line",yAxisIndex:0,showSymbol:!1,animation:!1,color:s,emphasis:{lineStyle:{width:1.5}},lineStyle:{color:s,type:"solid",width:1.5,opacity:1},areaStyle:{opacity:.05},encode:{x:"date",y:t}};t.toLowerCase().endsWith("target")&&(n.yAxisIndex=0,n.emphasis.lineStyle.width=1,n.lineStyle.width=1,n.lineStyle.type="dashed",n.lineStyle.opacity=.8,n.areaStyle.opacity=0),(t.toLowerCase().endsWith("power")||t.toLowerCase().endsWith("speed"))&&(n.yAxisIndex=1,n.emphasis.lineStyle.width=1,n.lineStyle.width=1,n.lineStyle.type="dotted",n.lineStyle.opacity=1,n.areaStyle.opacity=0);const i=this.$store.getters["charts/getSelectedLegends"];return i[t]!==void 0?this.initialSelected[t]=i[t]:this.initialSelected[t]=!(t.toLowerCase().endsWith("power")||t.toLowerCase().endsWith("speed")),n}showPowerAxis(t){return Object.keys(t).filter(n=>n.toLowerCase().endsWith("power")||n.toLowerCase().endsWith("speed")).filter(n=>t[n]===!0).length>0}legendToggleSelect(t){this.chart&&this.chart.dispatchAction({type:"legendToggleSelect",name:t})}tooltipPosition(t,s,n,i,a){const o={top:-10};return o[["left","right"][+(t[0]<a.viewSize[0]/2)]]=10,o}xAxisPointerFormatter(t){return this.$filters.formatTimeWithSeconds(t.value)}yAxisPointerFormatter(t){return t.value.toFixed()+"°C"}yAxisPowerFormatter(t){return`${t*100}`}yAxisTempMin(t){let s=Math.floor(t.min/10)*10;return s=s===t.min&&s-10>=0?s-10:s,s}yAxisTempMax(t){let s=Math.ceil(t.max/10)*10;return s=s===t.max?s+10:s,s}};Qm([$({type:String,default:"100%"})],al.prototype,"height",2);Qm([ke("chart")],al.prototype,"chart",2);Qm([Ae("chartData")],al.prototype,"onDataChange",1);al=Qm([L({})],al);var See=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"chart",style:{height:e.height}},[t("e-chart",{ref:"chart",staticStyle:{overflow:"initial"},attrs:{option:e.options,"update-options":{notMerge:!0},"init-options":{renderer:"svg"},autoresize:""},on:{legendselectchanged:e.handleLegendSelectChanged}})],1)},wee=[],xee=A(al,See,wee,!1,null,"5b91df22");const Cee=xee.exports;var Pee=Object.defineProperty,Lee=Object.getOwnPropertyDescriptor,Jm=(r,e,t,s)=>{for(var n=s>1?void 0:s?Lee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Pee(e,t,n),n};let ol=class extends b{constructor(){super(...arguments);f(this,"inputValue");f(this,"form");f(this,"currentValue","");f(this,"hasFocus",!1)}onValue(e){this.hasFocus||(this.currentValue=e)}get filteredListeners(){const{focus:e,blur:t,...s}=this.$listeners;return s}handleSubmit(){this.form.validate()&&this.$emit("submit",this.currentValue)}handleFocus(e){this.hasFocus=!0,e.target instanceof HTMLInputElement&&(e.target.select(),this.$emit("focus",e))}handleBlur(e){this.currentValue=this.inputValue,this.hasFocus=!1,this.$emit("blur",e)}mounted(){this.currentValue=this.inputValue}};Jm([He()],ol.prototype,"inputValue",2);Jm([ke("form")],ol.prototype,"form",2);Jm([Ae("value")],ol.prototype,"onValue",1);ol=Jm([L({})],ol);var Aee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Tl,{ref:"form",on:{submit:function(s){return s.preventDefault(),e.handleSubmit.apply(null,arguments)}}},[t(ae,e._g(e._b({on:{focus:e.handleFocus,blur:e.handleBlur},model:{value:e.currentValue,callback:function(s){e.currentValue=s},expression:"currentValue"}},"v-text-field",e.$attrs,!1),e.filteredListeners),[e._l(Object.keys(e.$slots),function(s){return e._t(s,null,{slot:s})})],2)],1)},Eee=[],Oee=A(ol,Aee,Eee,!1,null,null);const jw=Oee.exports;var Tee=Object.defineProperty,kee=Object.getOwnPropertyDescriptor,Dee=(r,e,t,s)=>{for(var n=s>1?void 0:s?kee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Tee(e,t,n),n};let g_=class extends Z(X){get presets(){return this.$store.getters["config/getTempPresets"]}};g_=Dee([L({})],g_);var Mee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady,small:""}},"app-btn",n,!1),s),[t(w,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $fire ")]),e._v(" "+e._s(e.$t("app.general.btn.presets"))+" "),t(w,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},[t(we,{on:{click:function(s){return e.$emit("applyOff")}}},[t(qe,[t(w,{attrs:{color:"info"}},[e._v(" $snowflakeAlert ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.general.btn.heaters_off"))+" ")])],1)],1),e._l(e.presets,function(s){return[t(we,{key:s.index,on:{click:function(n){return e.$emit("applyPreset",s)}}},[t(qe,[t(w,{attrs:{color:"error"}},[e._v(" $fire ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s.name)+" ")])],1)],1)]})],2)],1)},Ree=[],Iee=A(g_,Mee,Ree,!1,null,null);const O8=Iee.exports;var Fee=Object.defineProperty,Hee=Object.getOwnPropertyDescriptor,Bee=(r,e,t,s)=>{for(var n=s>1?void 0:s?Hee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Fee(e,t,n),n};let v_=class extends Z(X){get colors(){return this.$colorset.colorList}get extruder(){return this.$store.state.printer.printer.extruder}get heaters(){return this.$store.getters["printer/getHeaters"]}get fans(){return this.$store.getters["printer/getOutputs"](["temperature_fan"])}get sensors(){return this.$store.getters["printer/getSensors"]}get chartSelectedLegends(){return this.$store.getters["charts/getSelectedLegends"]}get chartData(){return this.$store.getters["charts/getChartData"]}get showRateOfChange(){return this.$store.state.config.uiSettings.general.showRateOfChange}get showRelativeHumidity(){return this.$store.state.config.uiSettings.general.showRelativeHumidity}get showBarometricPressure(){return this.$store.state.config.uiSettings.general.showBarometricPressure}get showGasResistance(){return this.$store.state.config.uiSettings.general.showGasResistance}setHeaterTargetTemp(e,t){this.sendGcode(`SET_HEATER_TEMPERATURE HEATER=${e} TARGET=${t}`)}setFanTargetTemp(e,t){this.sendGcode(`SET_TEMPERATURE_FAN_TARGET TEMPERATURE_FAN=${e} TARGET=${t}`)}getRateOfChange(e){const t=this.chartData.slice(-5),s=Av(t,i=>i[e.key]!=null);let n=0;if(s.length>=2){const i=s[s.length-1],a=s[0];n=(+i[e.key]-+a[e.key])/(+i.date-+a.date)*1e3,Math.abs(n)<.05&&(n=0)}return`${n<0?"":"+"}${n.toFixed(1)}`}};v_=Bee([L({components:{TemperaturePresetsMenu:O8}})],v_);var jee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Zt,{staticClass:"temperature-table"},[t("thead",[t("tr",[t("th"),t("th",{attrs:{width:"100%"}},[e._v(" "+e._s(e.$t("app.chart.label.item"))+" ")]),t("th",[e._v(" "+e._s(e.$t("app.chart.label.power"))+" ")]),e.showRateOfChange?t("th",[e._v(" "+e._s(e.$t("app.chart.label.rate_of_change"))+" ")]):e._e(),t("th",[e._v(" "+e._s(e.$t("app.chart.label.current"))+" ")]),t("th"),t("th",[e._v(" "+e._s(e.$t("app.chart.label.target"))+" ")])])]),e.klippyReady?t("tbody",[e._l(e.heaters,function(s){return t("tr",{key:s.key},[t("td",[t(w,{attrs:{small:"",color:s.color}},[e._v(" $fire ")])],1),t("td",{staticClass:"temp-name"},[t("span",{staticClass:"legend-item toggle",class:{active:!(s.key in e.chartSelectedLegends)||e.chartSelectedLegends[s.key]},on:{click:function(n){return e.$emit("legendClick",s)}}},[e._v(" "+e._s(s.prettyName)+" ")])]),t("td",{staticClass:"temp-power"},[t("span",{staticClass:"legend-item toggle",class:{active:e.chartSelectedLegends[s.key+"Power"]},on:{click:function(n){return e.$emit("legendPowerClick",s)}}},[s.power<=0&&s.target<=0?t("span",[e._v("off")]):e._e(),s.target>0?t("span",[e._v(" "+e._s(s.power?(s.power*100).toFixed():0)),t("small",[e._v("%")])]):e._e()])]),e.showRateOfChange?t("td",{staticClass:"text-no-wrap"},[t("span",{staticClass:"legend-item toggle",class:{active:e.chartSelectedLegends[s.key+"Power"]},on:{click:function(n){return e.$emit("legendPowerClick",s)}}},[t("span",[e._v(e._s(e.getRateOfChange(s))),t("small",[e._v("°C/s")])])])]):e._e(),t("td",{staticClass:"temp-actual"},[e._v(" "+e._s(s.temperature?s.temperature.toFixed(1):0)),t("small",[e._v("°C")])]),t("td",[e._v("/")]),t("td",[e.klippyReady?t(jw,{staticClass:"v-input--width-x-small",attrs:{value:s.target,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqualOrZero(s.targetMinTemp?Math.max(s.targetMinTemp,s.minTemp):s.minTemp),e.$rules.numberLessThanOrEqualOrZero(s.targetMaxTemp?Math.min(s.targetMaxTemp,s.maxTemp):s.maxTemp)],type:"number",outlined:"",dense:"","single-line":"","hide-details":"auto",suffix:"°C"},on:{submit:function(n){return e.setHeaterTargetTemp(s.name,+n)}}}):e._e()],1)])}),e._l(e.fans,function(s){return t("tr",{key:s.key},[t("td",[t(w,{class:{spin:s.speed>0&&s.target>0},attrs:{small:"",color:s.color}},[e._v(" $fan ")])],1),t("td",{staticClass:"temp-name"},[t("span",{staticClass:"legend-item toggle",class:{active:!(s.key in e.chartSelectedLegends)||e.chartSelectedLegends[s.key]},on:{click:function(n){return e.$emit("legendClick",s)}}},[e._v(" "+e._s(s.prettyName)+" ")])]),t("td",{staticClass:"temp-power"},[s.speed?t("span",{staticClass:"legend-item toggle",class:{active:e.chartSelectedLegends[s.key+"Speed"]},on:{click:function(n){return e.$emit("legendPowerClick",s)}}},[s.speed>0&&(s.target>0||!s.target)?t("span",[e._v(" "+e._s((s.speed*100).toFixed(0))),t("small",[e._v("%")])]):e._e(),s.speed<=0&&s.target&&s.target>0?t("span",[e._v(" "+e._s(e.$t("app.printer.state.standby"))+" ")]):e._e(),s.speed<=0&&(s.target&&s.target<=0||!s.target)?t("span",[e._v("off")]):e._e()]):e._e()]),e.showRateOfChange?t("td",{staticClass:"text-no-wrap"},[t("span",{staticClass:"legend-item toggle",class:{active:e.chartSelectedLegends[s.key+"Power"]},on:{click:function(n){return e.$emit("legendPowerClick",s)}}},[t("span",[e._v(e._s(e.getRateOfChange(s))),t("small",[e._v("°C/s")])])])]):e._e(),t("td",{staticClass:"temp-actual"},[s.temperature?t("span",[e._v(" "+e._s(s.temperature.toFixed(1))),t("small",[e._v("°C")]),s.humidity!=null&&e.showRelativeHumidity?t("small",[t("br"),e._v(e._s(s.humidity.toFixed(1))+" %")]):e._e(),s.pressure!=null&&e.showBarometricPressure?t("small",[t("br"),e._v(e._s(e.$filters.getReadableAtmosphericPressureString(s.pressure)))]):e._e(),s.gas!=null&&e.showGasResistance?t("small",[t("br"),e._v(e._s(e.$filters.getReadableResistanceString(s.gas)))]):e._e()]):t("span",[e._v(" - ")])]),t("td",[e._v("/")]),t("td",[e.klippyReady&&s.type==="temperature_fan"?t(jw,{staticClass:"v-input--width-x-small",attrs:{value:s.target,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqualOrZero(s.minTemp),e.$rules.numberLessThanOrEqualOrZero(s.maxTemp)],type:"number",outlined:"",dense:"","single-line":"","hide-details":"auto",suffix:"°C"},on:{submit:function(n){return e.setFanTargetTemp(s.name,+n)}}}):e._e()],1)])})],2):e._e()])],1)},Vee=[],Nee=A(v_,jee,Vee,!1,null,"5ce8dd90");const zee=Nee.exports;var Uee=Object.defineProperty,Wee=Object.getOwnPropertyDescriptor,Vb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Wee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Uee(e,t,n),n};let Pu=class extends Z(X,lt){constructor(){super(...arguments);f(this,"menuCollapsed");f(this,"thermalChartElement")}get chartReady(){return this.$store.state.socket.acceptingNotifications&&this.$store.state.socket.ready&&this.$store.state.charts.ready&&this.klippyReady}legendToggleSelect(t){this.chartVisible&&("target"in t&&this.thermalChartElement.legendToggleSelect(t.key+"Target"),this.thermalChartElement.legendToggleSelect(t.key))}legendTogglePowerSelect(t){if(this.chartVisible){const s="speed"in t?t.key+"Speed":t.key+"Power";this.thermalChartElement.legendToggleSelect(s)}}get chartVisible(){return this.$store.state.config.uiSettings.general.chartVisible}set chartVisible(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.chartVisible",value:t,server:!0})}get showRateOfChange(){return this.$store.state.config.uiSettings.general.showRateOfChange}set showRateOfChange(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showRateOfChange",value:t,server:!0})}get showRelativeHumidity(){return this.$store.state.config.uiSettings.general.showRelativeHumidity}set showRelativeHumidity(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showRelativeHumidity",value:t,server:!0})}get showBarometricPressure(){return this.$store.state.config.uiSettings.general.showBarometricPressure}set showBarometricPressure(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showBarometricPressure",value:t,server:!0})}get showGasResistance(){return this.$store.state.config.uiSettings.general.showGasResistance}set showGasResistance(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showGasResistance",value:t,server:!0})}handleApplyPreset(t){if(t){if(t.values)for(const s in t.values){const n=t.values[s];n.type==="heater"&&n.active&&n.value>-1&&this.sendGcode(`SET_HEATER_TEMPERATURE HEATER=${s} TARGET=${n.value}`),n.type==="fan"&&n.active&&n.value>-1&&this.sendGcode(`SET_TEMPERATURE_FAN_TARGET TEMPERATURE_FAN=${s} TARGET=${n.value}`)}t.gcode&&this.sendGcode(t.gcode)}}async handleApplyOff(){(!["printing","busy","paused"].includes(this.$store.getters["printer/getPrinterState"])||await this.$confirm(this.$tc("app.general.label.heaters_busy"),{title:this.$tc("app.general.simple_form.msg.confirm"),color:"card-heading",icon:"$error"}))&&this.sendGcode("TURN_OFF_HEATERS")}};Vb([$({type:Boolean})],Pu.prototype,"menuCollapsed",2);Vb([ke("thermalchart")],Pu.prototype,"thermalChartElement",2);Pu=Vb([L({components:{ThermalChart:Cee,TemperatureTargets:zee,TemperaturePresetsMenu:O8}})],Pu);var Gee=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.temperature"),icon:"$fire","help-tooltip":e.$t("app.chart.tooltip.help"),lazy:!1,draggable:"","layout-path":"dashboard.temperature-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(xn,{attrs:{collapsed:e.menuCollapsed}},[t("temperature-presets-menu",{on:{applyOff:e.handleApplyOff,applyPreset:e.handleApplyPreset}})],1),t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({staticClass:"ms-1 my-1",attrs:{fab:"","x-small":"",text:""}},"v-btn",n,!1),s),[t(w,[e._v(" $cog ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},[t(we,{on:{click:function(s){e.chartVisible=!e.chartVisible}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":e.chartVisible}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_chart"))+" ")])],1)],1),t(we,{on:{click:function(s){e.showRateOfChange=!e.showRateOfChange}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":e.showRateOfChange}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_rate_of_change"))+" ")])],1)],1),t(we,{on:{click:function(s){e.showRelativeHumidity=!e.showRelativeHumidity}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":e.showRelativeHumidity}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_relative_humidity"))+" ")])],1)],1),t(we,{on:{click:function(s){e.showBarometricPressure=!e.showBarometricPressure}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":e.showBarometricPressure}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_barometric_pressure"))+" ")])],1)],1),t(we,{on:{click:function(s){e.showGasResistance=!e.showGasResistance}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":e.showGasResistance}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.setting.label.show_gas_resistance"))+" ")])],1)],1)],1)],1)]},proxy:!0}])},[t("temperature-targets",{on:{legendClick:e.legendToggleSelect,legendPowerClick:e.legendTogglePowerSelect}}),e.chartReady&&e.chartVisible?[t(R),t("thermal-chart",{ref:"thermalchart",attrs:{height:e.isMobileViewport?"180px":"260px"}})]:e._e()],2)},qee=[],Zee=A(Pu,Gee,qee,!1,null,null);const Yee=Zee.exports;var Kee=Object.defineProperty,Xee=Object.getOwnPropertyDescriptor,Od=(r,e,t,s)=>{for(var n=s>1?void 0:s?Xee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Kee(e,t,n),n};let ll=class extends b{constructor(){super(...arguments);f(this,"camera");f(this,"crossorigin");f(this,"streamingElement");f(this,"cameraTransformStyle","");f(this,"animating",!1)}onCamera(){this.stopPlayback(),this.checkPlayback()}get apiUrl(){return this.$store.state.config.apiUrl}get cameraStyle(){return{transform:this.cameraTransformStyle||void 0}}createTransform(){const e=this.streamingElement,{rotation:t,flip_horizontal:s,flip_vertical:n}=this.camera,i=[],{clientWidth:a,clientHeight:o}=e,l=t===0||t===180||o===0||a===0?1:o<a?o/a:a/o;return(l!==1||s)&&i.push(`scaleX(${s?-l:l})`),(l!==1||n)&&i.push(`scaleY(${n?-l:l})`),t!==0&&i.push(`rotate(${t}deg`),i.join(" ")}updateCameraTransformStyle(){requestAnimationFrame(()=>{this.animating&&(this.streamingElement&&(this.cameraTransformStyle=this.createTransform()),this.updateCameraTransformStyle())})}created(){this.animating=!0,this.updateCameraTransformStyle()}mounted(){document.addEventListener("visibilitychange",this.checkPlayback,!1),this.checkPlayback()}beforeDestroy(){this.animating=!1,document.removeEventListener("visibilitychange",this.checkPlayback),this.stopPlayback()}checkPlayback(){document.hidden?this.stopPlayback():this.startPlayback()}buildAbsoluteUrl(e){const{origin:t}=new URL(document.URL);return new URL(e,t)}startPlayback(){}stopPlayback(){}};Od([$({type:Object,required:!0})],ll.prototype,"camera",2);Od([$({type:String})],ll.prototype,"crossorigin",2);Od([ke("streamingElement")],ll.prototype,"streamingElement",2);Od([Ae("camera")],ll.prototype,"onCamera",1);ll=Od([L],ll);var Qee=Object.defineProperty,Jee=Object.getOwnPropertyDescriptor,Hl=(r,e,t,s)=>{for(var n=s>1?void 0:s?Jee(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Qee(e,t,n),n};let ki=class extends b{constructor(){super(...arguments);f(this,"camera");f(this,"fullscreen");f(this,"crossorigin");f(this,"componentInstance");f(this,"rawCameraUrl",null);f(this,"framesPerSecond",null)}mounted(){this.setupFrameEvents()}setupFrameEvents(){var t;(t=this.$listeners)!=null&&t.frame&&this.componentInstance&&(this.componentInstance.streamingElement instanceof HTMLImageElement?this.componentInstance.streamingElement.addEventListener("load",()=>this.handleFrame()):this.componentInstance.streamingElement instanceof HTMLVideoElement&&this.handleFrame(!0))}handleFrame(t=!1){var n;const s=(n=this.componentInstance)==null?void 0:n.streamingElement;s&&this.$emit("frame",s),t&&requestAnimationFrame(()=>this.handleFrame(this.componentInstance.animating))}onCamera(){this.rawCameraUrl="",this.framesPerSecond=""}get fullscreenMode(){return this.$store.state.config.uiSettings.general.cameraFullscreenAction}get cameraComponent(){if(this.camera.service){const t=`${this.$filters.startCase(this.camera.service).replace(/ /g,"")}Camera`;if(t in DS)return DS[t]}}};Hl([$({type:Object,required:!0})],ki.prototype,"camera",2);Hl([$({type:Boolean})],ki.prototype,"fullscreen",2);Hl([$({type:String})],ki.prototype,"crossorigin",2);Hl([ke("component-instance")],ki.prototype,"componentInstance",2);Hl([Ae("camera")],ki.prototype,"onCamera",1);ki=Hl([L({})],ki);var ete=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(ut,e._g({staticClass:"camera-container",attrs:{elevation:0}},e.$listeners),[e.cameraComponent?[t(e.cameraComponent,{ref:"component-instance",tag:"component",staticClass:"camera-image",attrs:{camera:e.camera,crossorigin:e.crossorigin},on:{"raw-camera-url":function(s){e.rawCameraUrl=s},"frames-per-second":function(s){e.framesPerSecond=s},playback:function(s){return e.setupFrameEvents()}}})]:t("div",[e._v(" Camera service not supported! ")]),e.camera.name?t("div",{staticClass:"camera-name"},[e._v(" "+e._s(e.camera.name)+" ")]):e._e(),e.framesPerSecond?t("div",{staticClass:"camera-frames"},[e._v(" fps: "+e._s(e.framesPerSecond)+" ")]):e._e(),!e.fullscreen&&(e.fullscreenMode==="embed"||!e.rawCameraUrl)&&e.camera.service!=="device"?t("div",{staticClass:"camera-fullscreen"},[t("a",{attrs:{href:`/#/camera/${encodeURI(e.camera.uid)}`}},[t(w,[e._v("$fullScreen")])],1)]):e.rawCameraUrl?t("div",{staticClass:"camera-fullscreen"},[t("a",{attrs:{href:e.rawCameraUrl,target:"_blank"}},[t(w,[e._v("$openInNew")])],1)]):e._e()],2)},tte=[],rte=A(ki,ete,tte,!1,null,"35cb1748");const e1=rte.exports;var ste=Object.defineProperty,nte=Object.getOwnPropertyDescriptor,ite=(r,e,t,s)=>{for(var n=s>1?void 0:s?nte(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ste(e,t,n),n};let __=class extends Z(X){get activeCamera(){const r=this.$store.state.webcams.activeWebcam,e=this.$store.getters["webcams/getWebcamById"](r);return e?e.name:this.$t("app.general.btn.all")}get enabledWebcams(){return this.$store.getters["webcams/getEnabledWebcams"]}get availableCameras(){return[{uid:"all",name:this.$t("app.general.btn.all").toString()},...this.enabledWebcams]}};__=ite([L({})],__);var ate=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{small:""}},"app-btn",n,!1),s),[t(w,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $camera ")]),e._v(" "+e._s(e.activeCamera)+" "),t(w,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},e._l(e.availableCameras,function(s){return t(we,{key:s.uid,on:{click:function(n){return e.$emit("select",s.uid)}}},[t(qe,[t(w,[e._v(" $camera ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s.name)+" ")])],1)],1)}),1)],1)},ote=[],lte=A(__,ate,ote,!1,null,null);const cte=lte.exports;var ute=Object.defineProperty,dte=Object.getOwnPropertyDescriptor,pte=(r,e,t,s)=>{for(var n=s>1?void 0:s?dte(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ute(e,t,n),n};let y_=class extends Z(X){constructor(){super(...arguments);f(this,"collapsed",!1)}get cols(){if(this.cameras.length===1)return 12;if(this.cameras.length<=2)return 6;if(this.cameras.length>2)return 4}get cameras(){return this.$store.getters["webcams/getVisibleWebcams"]}handleCameraSelect(t){this.$store.dispatch("webcams/updateActiveWebcam",t)}};y_=pte([L({components:{CameraItem:e1,CameraMenu:cte}})],y_);var hte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$tc("app.general.title.camera",2),icon:"$camera",lazy:!1,draggable:"","layout-path":"dashboard.camera-card"},on:{collapsed:function(s){e.collapsed=s}},scopedSlots:e._u([{key:"menu",fn:function(){return[t("camera-menu",{on:{select:e.handleCameraSelect}})]},proxy:!0}])},[e.cameras.length>1?t(te,{staticClass:"ma-2",attrs:{justify:"space-around"}},[e._l(e.cameras,function(s){return[e.collapsed?e._e():t(I,{key:s.uid,attrs:{cols:"12",sm:e.cols}},[t("camera-item",{attrs:{camera:s}})],1)]})],2):e._e(),!e.collapsed&&e.cameras.length===1?t("camera-item",{attrs:{camera:e.cameras[0]}}):e._e()],1)},fte=[],mte=A(y_,hte,fte,!1,null,null);const gte=mte.exports,vte=/params\.(\w+)(.*)/gi,_te=/\|\s*default\s*\(\s*((["'])(?:\\\2|.)*?\2|-?[0-9][^,)]*)/i,yte=r=>{const e=_te.exec(r);return(e&&e[1]||"").trim()},bte=r=>[...r.matchAll(vte)].map(([,e,t])=>({name:e,value:yte(t)}));var $te=Object.defineProperty,Ste=Object.getOwnPropertyDescriptor,T8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ste(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&$te(e,t,n),n};let af=class extends Z(X){constructor(){super(...arguments);f(this,"macro");f(this,"params",{})}get isMacroWithRawParam(){return["m117","m118"].includes(this.macro.name)}get isMacroForGcodeCommand(){return/^[gm]\d+$/i.test(this.macro.name)}get filteredListeners(){const{click:t,...s}=this.$listeners;return s}get paramList(){return Object.keys(this.params)}get runCommand(){const t=this.macro.name.toUpperCase(),s=this.isMacroForGcodeCommand?"":"=";if(this.params){const n=this.isMacroWithRawParam?this.params.message.value.toString():Object.entries(this.params).map(([i,a])=>`${i.toUpperCase()}${s}${a.value}`).join(" ");if(n)return`${t} ${n}`}return t}get borderStyle(){return this.macro&&this.macro.color!==""?`border-color: ${this.macro.color} !important; border-left: solid 4px ${this.macro.color} !important;`:""}handleClick(){this.$emit("click",this.macro.name.toUpperCase())}mounted(){if(!this.macro.config||!this.macro.config.gcode)return[];if(this.isMacroWithRawParam)this.$set(this.params,"message",{value:"",reset:""});else for(const{name:t,value:s}of bte(this.macro.config.gcode))this.params[t]||this.$set(this.params,t,{value:s,reset:s})}};T8([$({type:Object,required:!0})],af.prototype,"macro",2);af=T8([L({})],af);var wte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Qo,{attrs:{divided:""}},[t(M,e._g({style:e.borderStyle,attrs:{disabled:e.macro.disabledWhilePrinting&&e.printerPrinting||!e.klippyReady},on:{click:e.handleClick}},e.filteredListeners),[e._t("default")],2),e.paramList.length>0?t(Et,{attrs:{left:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({staticClass:"px-0",attrs:{"min-width":"24",disabled:e.macro.disabledWhilePrinting&&e.printerPrinting||!e.klippyReady}},"app-btn",n,!1),s),[t(w,{class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,3485934805)},[t(Tl,{on:{submit:function(s){return s.preventDefault(),e.$emit("click",e.runCommand)}}},[t(Ie,[t(Pe,{staticClass:"pb-3 px-3"},[t(Ur,{staticStyle:{"max-width":"150px"},attrs:{wrap:""}},e._l(e.paramList,function(s,n){return t(ae,{key:s,staticClass:"console-command",class:{"mb-3":n<e.paramList.length-1},attrs:{label:s,outlined:"",dense:"","hide-details":"auto",spellcheck:"false"},scopedSlots:e._u([{key:"append",fn:function(){return[t(M,{staticStyle:{"margin-top":"-4px","margin-right":"-6px"},attrs:{color:"",icon:"",small:""},on:{click:function(i){e.params[s].value=e.params[s].reset}}},[t(w,{attrs:{small:""}},[e._v(" $reset ")])],1)]},proxy:!0}],null,!0),model:{value:e.params[s].value,callback:function(i){e.$set(e.params[s],"value",i)},expression:"params[param].value"}})}),1)],1),t(R),t(bd,{staticClass:"px-3 py-3"},[t(M,{attrs:{block:"",type:"submit"}},[e._v(" "+e._s(e.$t("app.general.btn.send"))+" ")])],1)],1)],1)],1):e._e()],1)},xte=[],Cte=A(af,wte,xte,!1,null,"66683a69");const Pte=Cte.exports;var Lte=Object.defineProperty,Ate=Object.getOwnPropertyDescriptor,Ete=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ate(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Lte(e,t,n),n};let b_=class extends Z(X){get macros(){return this.$store.getters["macros/getVisibleMacros"]}get expanded(){let e=this.$store.state.macros.expanded;return e=e.filter(t=>t<=this.macros.length),e}set expanded(e){this.$store.dispatch("macros/saveExpanded",e)}handleEditCategory(){this.$router.push("/settings/#macros")}};b_=Ete([L({components:{MacroBtn:Pte}})],b_);var Ote=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Dm,{attrs:{accordion:"",multiple:""},model:{value:e.expanded,callback:function(s){e.expanded=s},expression:"expanded"}},e._l(e.macros,function(s){return t(Mm,{key:`category-${s.id}`},[t(Im,{scopedSlots:e._u([{key:"actions",fn:function(){return[t(w,{staticClass:"mr-2",attrs:{small:""}},[e._v(" $expand ")])]},proxy:!0}],null,!0)},[t("div",[e._v(" "+e._s(s.name??e.$t("app.general.label.uncategorized"))+" "),t(gr,{staticClass:"ml-2",attrs:{small:""}},[e._v(" "+e._s(s.macros.length)+" ")]),t(M,{staticClass:"ml-2",attrs:{icon:"",text:"",small:"",color:""},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.handleEditCategory.apply(null,arguments)}}},[t(w,{attrs:{small:""}},[e._v(" $cog ")])],1)],1)]),t(Rm,e._l(s.macros,function(n){return t(Oe,{key:`category-${n.name}`,attrs:{top:"",disabled:!n.config.description||n.config.description==="G-Code macro"},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:a}){return[t("macro-btn",e._g(e._b({staticClass:"me-2 mb-2 d-inline-block",attrs:{macro:n,loading:e.hasWait(`${e.$waits.onMacro}${n.name}`)},on:{click:function(o){return e.sendGcode(o,`${e.$waits.onMacro}${n.name}`)}}},"macro-btn",a,!1),i),[e._v(" "+e._s(n.alias||n.name)+" ")])]}}],null,!0)},[t("span",[e._v(e._s(n.config.description))])])}),1)],1)}),1)],1)},Tte=[],kte=A(b_,Ote,Tte,!1,null,"ee45ed90");const Dte=kte.exports;var Mte=Object.defineProperty,Rte=Object.getOwnPropertyDescriptor,Ite=(r,e,t,s)=>{for(var n=s>1?void 0:s?Rte(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Mte(e,t,n),n};let $_=class extends b{};$_=Ite([L({components:{Macros:Dte}})],$_);var Fte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.macros"),icon:"$fileCode",draggable:"","layout-path":"dashboard.macros-card"}},[t("macros")],1)},Hte=[],Bte=A($_,Fte,Hte,!1,null,null);const jte=Bte.exports;var Vte=Object.defineProperty,Nte=Object.getOwnPropertyDescriptor,Bl=(r,e,t,s)=>{for(var n=s>1?void 0:s?Nte(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Vte(e,t,n),n};let Di=class extends b{constructor(){super(...arguments);f(this,"value");f(this,"input");f(this,"disabled");f(this,"autofocus");f(this,"newValue","");f(this,"commandHistoryCount",he.CONSOLE_COMMAND_HISTORY);f(this,"history",[]);f(this,"originalHistory",[]);f(this,"isFirst",!0)}onValueChange(t){t?(this.newValue=t,this.input.focus()):this.newValue=""}mounted(){this.newValue=this.value;const t=this.$store.state.console.commandHistory;this.history=[...t],this.originalHistory=[...t]}emitChange(t){this.newValue=t,this.$emit("input",t)}emitSend(t){t&&t.length>0&&(this.history.length>=this.commandHistoryCount&&this.originalHistory.pop(),this.originalHistory.unshift(t),this.$store.dispatch("console/onUpdateCommandHistory",[...this.originalHistory]),this.history=[...this.originalHistory],this.isFirst=!0,this.$emit("send",t))}historyUp(){if(this.history.length>=1){if(!this.isFirst){const t=this.history.shift();this.history.push(t)}this.emitChange(this.history[0]),this.isFirst=!1}}historyDown(){if(this.history.length>=1){if(!this.isFirst){const t=this.history.pop();this.history.unshift(t)}this.emitChange(this.history[0]),this.isFirst=!1}}get availableCommands(){return this.$store.getters["printer/getAvailableCommands"]}autoComplete(){const t=this.availableCommands;if(this.newValue.length){const s=Object.keys(t).filter(n=>n.startsWith(this.newValue.toUpperCase()));s.length===1?this.emitChange(s[0]):s.forEach(n=>{const i=`// ${n}: ${t[n].help??""}`;this.$store.dispatch("console/onAddConsoleEntry",{message:i,type:"response"})})}}};Bl([$({type:String})],Di.prototype,"value",2);Bl([ke("input")],Di.prototype,"input",2);Bl([$({type:Boolean})],Di.prototype,"disabled",2);Bl([$({type:Boolean})],Di.prototype,"autofocus",2);Bl([Ae("value")],Di.prototype,"onValueChange",1);Di=Bl([L({})],Di);var zte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(kl,[t(te,{attrs:{align:"center"}},[t(I,[t(jm,{ref:"input",staticClass:"console-command",attrs:{rows:1,value:e.newValue,items:e.history,disabled:e.disabled,autofocus:e.autofocus,"auto-grow":"",clearable:"",outlined:"","single-line":"",dense:"","hide-details":"",spellcheck:"false"},on:{input:e.emitChange,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.emitSend(e.newValue)},keydown:[function(s){if(!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey)return null;s.preventDefault()},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"up",38,s.key,["Up","ArrowUp"])||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:(s.preventDefault(),e.historyUp())},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"down",40,s.key,["Down","ArrowDown"])||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:(s.preventDefault(),e.historyDown())},function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"tab",9,s.key,"Tab")?null:(s.preventDefault(),e.autoComplete())}]}})],1),t(I,{attrs:{cols:"auto"}},[t(M,{attrs:{disabled:e.disabled},on:{click:function(s){return e.emitSend(e.newValue)}}},[e._v(" "+e._s(e.$t("app.general.btn.send"))+" ")])],1)],1)],1)},Ute=[],Wte=A(Di,zte,Ute,!1,null,"53e7b92a");const Gte=Wte.exports;var qte=Object.defineProperty,Zte=Object.getOwnPropertyDescriptor,k8=(r,e,t,s)=>{for(var n=s>1?void 0:s?Zte(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&qte(e,t,n),n};let of=class extends b{constructor(){super(...arguments);f(this,"value")}get knownCommands(){return this.$store.getters["console/getAllKnownCommands"]}get itemMessage(){let t=this.value.message;return this.value.type==="response"&&(t=this.value.message.replace(/([A-Z0-9_]{2,})/gm,(s,n)=>n in this.knownCommands?`<a class="primary--text text--lighten-1">${n.toUpperCase()}</a>`:s)),this.value.type==="command"?`${he.CONSOLE_SEND_PREFIX}<a class="primary--text text--lighten-1">${t}</a>`:t}get itemTime(){return this.value.time?this.$filters.formatTimeWithSeconds(this.value.time*1e3):""}get itemClass(){return this.value.message.startsWith("!!")?{"error--text":!0}:this.value.type==="command"?{"primary--text":!0}:{"secondary--text":!0}}itemClick(t){if(t.target instanceof HTMLAnchorElement){const s=t.target.innerHTML.replace(/<br>/g,`
`).replace(/^\s+|\s+$/gm,"");this.$emit("click",s)}}};k8([$({type:Object,default:()=>{}})],of.prototype,"value",2);of=k8([L({})],of);var Yte=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ur,{staticClass:"console-item"},[e.value.time?t("span",{staticClass:"secondary--text mr-3 d-none d-sm-block text-no-wrap"},[e._v(" "+e._s(e.itemTime)+"  ")]):e._e(),t("span",{class:e.itemClass,domProps:{innerHTML:e._s(e.itemMessage)},on:{"!click":function(s){return e.itemClick.apply(null,arguments)}}})])},Kte=[],Xte=A(of,Yte,Kte,!1,null,"69726511");const Qte=Xte.exports;var Jte=Object.defineProperty,ere=Object.getOwnPropertyDescriptor,no=(r,e,t,s)=>{for(var n=s>1?void 0:s?ere(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Jte(e,t,n),n};let Wn=class extends Z(X){constructor(){super(...arguments);f(this,"items");f(this,"fullscreen");f(this,"readonly");f(this,"scrollingPausedModel");f(this,"dynamicScroller");f(this,"_pauseScroll",!1)}get currentCommand(){return this.$store.state.console.consoleCommand}set currentCommand(t){this.$store.commit("console/setConsoleCommand",t)}get flipLayout(){return this.$store.state.config.uiSettings.general.flipConsoleLayout}set flipLayout(t){this.scrollToLatest(!0)}mounted(){this.dynamicScroller.$el.addEventListener("scroll",this.onScroll)}beforeDestroy(){this.dynamicScroller.$el.removeEventListener("scroll",this.onScroll)}onItemsChange(t,s){if(this.dynamicScroller){const n=this.dynamicScroller.$el;if(this.flipLayout&&(this._pauseScroll||!this.$store.state.console.autoScroll)){const{scrollHeight:i,clientHeight:a}=n;i>a&&this.$nextTick(()=>{n.scrollTop+=n.scrollHeight-i})}else this.scrollToLatest((s==null?void 0:s.length)===0)}}updateScrollingPaused(){this.$nextTick(()=>{const{scrollTop:t,scrollHeight:s,clientHeight:n}=this.dynamicScroller.$el,i=this.flipLayout?t>1:s-t-n>1;this._pauseScroll!==i&&(this._pauseScroll=i,this.scrollingPausedModel=i)})}onScroll(){this.updateScrollingPaused()}scrollToLatest(t){this._pauseScroll&&!t||this.dynamicScroller&&((this.$store.state.console.autoScroll||this.readonly||t)&&(this.flipLayout?this.dynamicScroller.scrollToItem(0):this.dynamicScroller.scrollToBottom()),t&&this.updateScrollingPaused())}sendCommand(t){t&&t.length&&(t.trim().toLowerCase()==="m112"&&F.printerEmergencyStop(),this.sendGcode(t),this.currentCommand="")}handleEntryClick(t){this.currentCommand=t}};no([$({type:[Array,Array],default:()=>[]})],Wn.prototype,"items",2);no([$({type:Boolean})],Wn.prototype,"fullscreen",2);no([$({type:Boolean})],Wn.prototype,"readonly",2);no([ji("scrollingPaused",{type:Boolean})],Wn.prototype,"scrollingPausedModel",2);no([ke("scroller")],Wn.prototype,"dynamicScroller",2);no([Ae("items",{immediate:!0})],Wn.prototype,"onItemsChange",1);Wn=no([L({components:{ConsoleCommand:Gte,ConsoleItem:Qte}})],Wn);var tre=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"console"},[!e.readonly&&e.flipLayout?t("console-command",{attrs:{disabled:!e.klippyConnected,autofocus:e.fullscreen},on:{send:e.sendCommand},model:{value:e.currentCommand,callback:function(s){e.currentCommand=s},expression:"currentCommand"}}):e._e(),t(Ie,{ref:"console-wrapper",staticClass:"console-wrapper",attrs:{flat:""}},[t("DynamicScroller",{ref:"scroller",staticClass:"console-scroller",class:{"console-scroller-fullscreen":e.fullscreen},attrs:{items:e.flipLayout?[...e.items].reverse():e.items,"min-item-size":24,"key-field":"id",buffer:600},on:{resize:function(s){return e.scrollToLatest()}},scopedSlots:e._u([{key:"default",fn:function({item:s,index:n,active:i}){return[t("DynamicScrollerItem",{attrs:{item:s,active:i,"size-dependencies":[s.message],"data-index":n}},[t("console-item",{key:s.id,staticClass:"console-item",attrs:{value:s},on:{click:e.handleEntryClick}})],1)]}}])})],1),!e.readonly&&!e.flipLayout?t("console-command",{attrs:{disabled:!e.klippyConnected,autofocus:e.fullscreen},on:{send:e.sendCommand},model:{value:e.currentCommand,callback:function(s){e.currentCommand=s},expression:"currentCommand"}}):e._e()],1)},rre=[],sre=A(Wn,tre,rre,!1,null,"68bd3bca");const D8=sre.exports;var nre=Object.defineProperty,ire=Object.getOwnPropertyDescriptor,t1=(r,e,t,s)=>{for(var n=s>1?void 0:s?ire(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&nre(e,t,n),n};let cl=class extends b{constructor(){super(...arguments);f(this,"fullscreen");f(this,"consoleElement");f(this,"scrollingPaused",!1)}get filters(){return this.$store.getters["console/getFilters"]}get hideTempWaits(){return this.$store.state.config.uiSettings.general.hideTempWaits}set hideTempWaits(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.hideTempWaits",value:t,server:!0})}get flipLayout(){return this.$store.state.config.uiSettings.general.flipConsoleLayout}set flipLayout(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.flipConsoleLayout",value:t,server:!0}),this.consoleElement.flipLayout=t}get items(){return this.$store.getters["console/getConsoleEntries"]}get inLayout(){return this.$store.state.config.layoutMode}get autoScroll(){return this.$store.state.console.autoScroll}set autoScroll(t){this.$store.dispatch("console/onUpdateAutoScroll",t),t&&this.consoleElement.scrollToLatest(!0)}inLayoutChange(t){t||this.consoleElement.scrollToLatest()}handleCollapseChange(t){t||this.consoleElement.scrollToLatest()}handleClear(){this.$store.dispatch("console/onClear")}handleToggleFilter(t){this.$store.dispatch("console/onSaveFilter",{...t,enabled:!t.enabled})}};t1([$({type:Boolean})],cl.prototype,"fullscreen",2);t1([ke("console")],cl.prototype,"consoleElement",2);t1([Ae("inLayout")],cl.prototype,"inLayoutChange",1);cl=t1([L({components:{Console:D8}})],cl);var are=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.console"),icon:"$console","help-tooltip":e.$t("app.console.tooltip.help"),"card-classes":"d-flex flex-column","content-classes":"flex-grow-1 flow-shrink-0","menu-breakpoint":"none","menu-icon":"$cog",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.console-card"},on:{collapsed:e.handleCollapseChange},scopedSlots:e._u([{key:"menu",fn:function(){return[e.scrollingPaused?t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.consoleElement.scrollToLatest(!0)}}},[t(w,[e._v(e._s(e.flipLayout?"$up":"$down"))])],1):e._e(),e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/console")}}},[t(w,[e._v("$fullScreen")])],1),t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:e.handleClear}},[t(w,[e._v("$delete")])],1),t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({staticClass:"ms-1 my-1",attrs:{fab:"","x-small":"",text:""}},"v-btn",n,!1),s),[t(w,[e._v(" $cog ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},[t(we,{on:{click:function(s){e.hideTempWaits=!e.hideTempWaits}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":e.hideTempWaits}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.console.label.hide_temp_waits"))+" ")])],1)],1),t(we,{on:{click:function(s){e.autoScroll=!e.autoScroll}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":e.autoScroll}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.console.label.auto_scroll"))+" ")])],1)],1),t(we,{on:{click:function(s){e.flipLayout=!e.flipLayout}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":e.flipLayout}})],1),t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.console.label.flip_layout"))+" ")])],1)],1),e.filters&&e.filters.length?[t(R),e._l(e.filters,function(s){return t(we,{key:s.id,on:{click:function(n){return e.handleToggleFilter(s)}}},[t(ir,{staticClass:"my-0"},[t(ar,{attrs:{"input-value":s.enabled}})],1),t(Ee,[t(xe,[e._v(" "+e._s(s.name)+" ")])],1)],1)})]:e._e()],2)],1)]},proxy:!0}])},[t("console",{ref:"console",attrs:{"scrolling-paused":e.scrollingPaused,items:e.items,fullscreen:e.fullscreen},on:{"update:scrollingPaused":function(s){e.scrollingPaused=s},"update:scrolling-paused":function(s){e.scrollingPaused=s}}})],1)},ore=[],lre=A(cl,are,ore,!1,null,null);const M8=lre.exports;var cre=Object.defineProperty,ure=Object.getOwnPropertyDescriptor,R8=(r,e,t,s)=>{for(var n=s>1?void 0:s?ure(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&cre(e,t,n),n};let lf=class extends Z(X,lt){constructor(){super(...arguments);f(this,"fan")}get prettyValue(){return this.value===0?this.$t("app.general.label.off"):`${this.value} %`}get value(){if(!this.fan.speed)return 0;const t=this.fan.speed/(this.fan.config.max_power||1);return Math.round(t*100)}handleChange(t){this.fan.type==="fan"&&(t=Math.ceil(t*2.55),this.sendGcode(`M106 S${t}`,`${this.$waits.onSetFanSpeed}${this.fan.name}`)),this.fan.type==="fan_generic"&&(t=t/100,this.sendGcode(`SET_FAN_SPEED FAN=${this.fan.name} SPEED=${t}`,`${this.$waits.onSetFanSpeed}${this.fan.name}`))}get rpm(){return this.fan.rpm?this.fan.rpm.toFixed()+" rpm":void 0}get customRules(){return{minFan:t=>{var n;const s=(((n=this.fan.config)==null?void 0:n.off_below)||0)*100;return s?(t=+t,t>=s||t===0||this.$t("app.general.simple_form.error.min_or_0",{min:s})):!0}}}};R8([$({type:Object,required:!0})],lf.prototype,"fan",2);lf=R8([L({})],lf);var dre=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.fan.controllable?t(Ft,{attrs:{suffix:"%",value:e.value,"reset-value":0,label:e.rpm?`${e.fan.prettyName} <small>${e.rpm}</small>`:e.fan.prettyName,rules:[e.customRules.minFan],disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(`${e.$waits.onSetFanSpeed}${e.fan.name}`)},on:{submit:e.handleChange}}):t(Ur,{class:{"text--disabled":!e.klippyReady},attrs:{"align-center":"","justify-space-between":""}},[t("div",{staticClass:"text-body-1"},[e._v(" "+e._s(e.fan.prettyName)+" ")]),t("div",{staticClass:"ml-auto"},[e.rpm?t("small",{staticClass:"mr-2"},[e._v(e._s(e.rpm))]):e._e(),t("span",{staticClass:"focus--text",domProps:{innerHTML:e._s(e.prettyValue)}})])])],1)},pre=[],hre=A(lf,dre,pre,!1,null,null);const fre=hre.exports;var mre=Object.defineProperty,gre=Object.getOwnPropertyDescriptor,I8=(r,e,t,s)=>{for(var n=s>1?void 0:s?gre(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&mre(e,t,n),n};let cf=class extends Z(X,lt){constructor(){super(...arguments);f(this,"pin")}get pwm(){return this.pin.pwm||this.pwmTypes.includes(this.pin.type)}get pwmTypes(){return["pwm_cycle_time","pwm_tool"]}get value(){return Math.round(this.pin.value*100)}get resetValue(){return Math.round(this.pin.resetValue/this.pin.scale*100)}handleChange(t){typeof t=="boolean"?t=t?this.pin.scale:0:t=Math.round(t*this.pin.scale)/100,this.sendGcode(`SET_PIN PIN=${this.pin.name} VALUE=${t}`,`${this.$waits.onSetOutputPin}${this.pin.name}`)}};I8([$({type:Object,required:!0})],cf.prototype,"pin",2);cf=I8([L({})],cf);var vre=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.pwm?t(Ft,{attrs:{suffix:"%",label:e.pin.prettyName,min:0,max:100,value:e.value,"reset-value":e.resetValue,disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(`${e.$waits.onSetOutputPin}${e.pin.name}`)},on:{submit:e.handleChange}}):t(A8,{attrs:{disabled:!e.klippyReady,label:e.pin.prettyName,value:e.pin.value>0,loading:e.hasWait(`${e.$waits.onSetOutputPin}${e.pin.name}`)},on:{input:e.handleChange}})],1)},_re=[],yre=A(cf,vre,_re,!1,null,null);const bre=yre.exports;/*!
* iro.js v5.5.2
* 2016-2021 James Daniel
* Licensed under MPL 2.0
* github.com/jaames/iro.js
*/var Lt,uf,F8,S_,H8,wi={},Nb=[],$re=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|^--/i;function _i(r,e){for(var t in e)r[t]=e[t];return r}function B8(r){var e=r.parentNode;e&&e.removeChild(r)}function ft(r,e,t){var s,n,i,a,o=arguments;if(e=_i({},e),arguments.length>3)for(t=[t],s=3;s<arguments.length;s++)t.push(o[s]);if(t!=null&&(e.children=t),r!=null&&r.defaultProps!=null)for(n in r.defaultProps)e[n]===void 0&&(e[n]=r.defaultProps[n]);return a=e.key,(i=e.ref)!=null&&delete e.ref,a!=null&&delete e.key,w_(r,e,a,i)}function w_(r,e,t,s){var n={type:r,props:e,key:t,ref:s,__k:null,__p:null,__b:0,__e:null,l:null,__c:null,constructor:void 0};return Lt.vnode&&Lt.vnode(n),n}function r1(r){return r.children}function Sre(r){if(r==null||typeof r=="boolean")return null;if(typeof r=="string"||typeof r=="number")return w_(null,r,null,null);if(r.__e!=null||r.__c!=null){var e=w_(r.type,r.props,r.key,null);return e.__e=r.__e,e}return r}function Vo(r,e){this.props=r,this.context=e}function df(r,e){if(e==null)return r.__p?df(r.__p,r.__p.__k.indexOf(r)+1):null;for(var t;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null)return t.__e;return typeof r.type=="function"?df(r):null}function j8(r){var e,t;if((r=r.__p)!=null&&r.__c!=null){for(r.__e=r.__c.base=null,e=0;e<r.__k.length;e++)if((t=r.__k[e])!=null&&t.__e!=null){r.__e=r.__c.base=t.__e;break}return j8(r)}}function fg(r){(!r.__d&&(r.__d=!0)&&uf.push(r)===1||S_!==Lt.debounceRendering)&&(S_=Lt.debounceRendering,(Lt.debounceRendering||F8)(wre))}function wre(){var r,e,t,s,n,i,a,o;for(uf.sort(function(l,c){return c.__v.__b-l.__v.__b});r=uf.pop();)r.__d&&(t=void 0,s=void 0,i=(n=(e=r).__v).__e,a=e.__P,o=e.u,e.u=!1,a&&(t=[],s=Ub(a,n,_i({},n),e.__n,a.ownerSVGElement!==void 0,null,t,o,i??df(n)),N8(t,n),s!=i&&j8(n)))}function V8(r,e,t,s,n,i,a,o,l){var c,u,d,p,h,m,g,v=t&&t.__k||Nb,y=v.length;if(o==wi&&(o=i!=null?i[0]:y?df(t,0):null),c=0,e.__k=zb(e.__k,function(C){if(C!=null){if(C.__p=e,C.__b=e.__b+1,(d=v[c])===null||d&&C.key==d.key&&C.type===d.type)v[c]=void 0;else for(u=0;u<y;u++){if((d=v[u])&&C.key==d.key&&C.type===d.type){v[u]=void 0;break}d=null}if(p=Ub(r,C,d=d||wi,s,n,i,a,null,o,l),(u=C.ref)&&d.ref!=u&&(g||(g=[])).push(u,C.__c||p,C),p!=null){if(m==null&&(m=p),C.l!=null)p=C.l,C.l=null;else if(i==d||p!=o||p.parentNode==null){e:if(o==null||o.parentNode!==r)r.appendChild(p);else{for(h=o,u=0;(h=h.nextSibling)&&u<y;u+=2)if(h==p)break e;r.insertBefore(p,o)}e.type=="option"&&(r.value="")}o=p.nextSibling,typeof e.type=="function"&&(e.l=p)}}return c++,C}),e.__e=m,i!=null&&typeof e.type!="function")for(c=i.length;c--;)i[c]!=null&&B8(i[c]);for(c=y;c--;)v[c]!=null&&U8(v[c],v[c]);if(g)for(c=0;c<g.length;c++)z8(g[c],g[++c],g[++c])}function zb(r,e,t){if(t==null&&(t=[]),r==null||typeof r=="boolean")e&&t.push(e(null));else if(Array.isArray(r))for(var s=0;s<r.length;s++)zb(r[s],e,t);else t.push(e?e(Sre(r)):r);return t}function xre(r,e,t,s,n){var i;for(i in t)i in e||Nw(r,i,null,t[i],s);for(i in e)n&&typeof e[i]!="function"||i==="value"||i==="checked"||t[i]===e[i]||Nw(r,i,e[i],t[i],s)}function Vw(r,e,t){e[0]==="-"?r.setProperty(e,t):r[e]=typeof t=="number"&&$re.test(e)===!1?t+"px":t??""}function Nw(r,e,t,s,n){var i,a,o,l,c;if(!((e=n?e==="className"?"class":e:e==="class"?"className":e)==="key"||e==="children"))if(e==="style")if(i=r.style,typeof t=="string")i.cssText=t;else{if(typeof s=="string"&&(i.cssText="",s=null),s)for(a in s)t&&a in t||Vw(i,a,"");if(t)for(o in t)s&&t[o]===s[o]||Vw(i,o,t[o])}else e[0]==="o"&&e[1]==="n"?(l=e!==(e=e.replace(/Capture$/,"")),c=e.toLowerCase(),e=(c in r?c:e).slice(2),t?(s||r.addEventListener(e,zw,l),(r.t||(r.t={}))[e]=t):r.removeEventListener(e,zw,l)):e!=="list"&&e!=="tagName"&&e!=="form"&&!n&&e in r?r[e]=t??"":typeof t!="function"&&e!=="dangerouslySetInnerHTML"&&(e!==(e=e.replace(/^xlink:?/,""))?t==null||t===!1?r.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):r.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),t):t==null||t===!1?r.removeAttribute(e):r.setAttribute(e,t))}function zw(r){return this.t[r.type](Lt.event?Lt.event(r):r)}function Ub(r,e,t,s,n,i,a,o,l,c){var u,d,p,h,m,g,v,y,C,x,S=e.type;if(e.constructor!==void 0)return null;(u=Lt.__b)&&u(e);try{e:if(typeof S=="function"){if(y=e.props,C=(u=S.contextType)&&s[u.__c],x=u?C?C.props.value:u.__p:s,t.__c?v=(d=e.__c=t.__c).__p=d.__E:("prototype"in S&&S.prototype.render?e.__c=d=new S(y,x):(e.__c=d=new Vo(y,x),d.constructor=S,d.render=Pre),C&&C.sub(d),d.props=y,d.state||(d.state={}),d.context=x,d.__n=s,p=d.__d=!0,d.__h=[]),d.__s==null&&(d.__s=d.state),S.getDerivedStateFromProps!=null&&_i(d.__s==d.state?d.__s=_i({},d.__s):d.__s,S.getDerivedStateFromProps(y,d.__s)),p)S.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&a.push(d);else{if(S.getDerivedStateFromProps==null&&o==null&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(y,x),!o&&d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(y,d.__s,x)===!1){for(d.props=y,d.state=d.__s,d.__d=!1,d.__v=e,e.__e=l!=null?l!==t.__e?l:t.__e:null,e.__k=t.__k,u=0;u<e.__k.length;u++)e.__k[u]&&(e.__k[u].__p=e);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(y,d.__s,x)}for(h=d.props,m=d.state,d.context=x,d.props=y,d.state=d.__s,(u=Lt.__r)&&u(e),d.__d=!1,d.__v=e,d.__P=r,u=d.render(d.props,d.state,d.context),e.__k=zb(u!=null&&u.type==r1&&u.key==null?u.props.children:u),d.getChildContext!=null&&(s=_i(_i({},s),d.getChildContext())),p||d.getSnapshotBeforeUpdate==null||(g=d.getSnapshotBeforeUpdate(h,m)),V8(r,e,t,s,n,i,a,l,c),d.base=e.__e;u=d.__h.pop();)d.__s&&(d.state=d.__s),u.call(d);p||h==null||d.componentDidUpdate==null||d.componentDidUpdate(h,m,g),v&&(d.__E=d.__p=null)}else e.__e=Cre(t.__e,e,t,s,n,i,a,c);(u=Lt.diffed)&&u(e)}catch(E){Lt.__e(E,e,t)}return e.__e}function N8(r,e){for(var t;t=r.pop();)try{t.componentDidMount()}catch(s){Lt.__e(s,t.__v)}Lt.__c&&Lt.__c(e)}function Cre(r,e,t,s,n,i,a,o){var l,c,u,d,p=t.props,h=e.props;if(n=e.type==="svg"||n,r==null&&i!=null){for(l=0;l<i.length;l++)if((c=i[l])!=null&&(e.type===null?c.nodeType===3:c.localName===e.type)){r=c,i[l]=null;break}}if(r==null){if(e.type===null)return document.createTextNode(h);r=n?document.createElementNS("http://www.w3.org/2000/svg",e.type):document.createElement(e.type),i=null}return e.type===null?p!==h&&(i!=null&&(i[i.indexOf(r)]=null),r.data=h):e!==t&&(i!=null&&(i=Nb.slice.call(r.childNodes)),u=(p=t.props||wi).dangerouslySetInnerHTML,d=h.dangerouslySetInnerHTML,o||(d||u)&&(d&&u&&d.__html==u.__html||(r.innerHTML=d&&d.__html||"")),xre(r,h,p,n,o),e.__k=e.props.children,d||V8(r,e,t,s,e.type!=="foreignObject"&&n,i,a,wi,o),o||("value"in h&&h.value!==void 0&&h.value!==r.value&&(r.value=h.value==null?"":h.value),"checked"in h&&h.checked!==void 0&&h.checked!==r.checked&&(r.checked=h.checked))),r}function z8(r,e,t){try{typeof r=="function"?r(e):r.current=e}catch(s){Lt.__e(s,t)}}function U8(r,e,t){var s,n,i;if(Lt.unmount&&Lt.unmount(r),(s=r.ref)&&z8(s,null,e),t||typeof r.type=="function"||(t=(n=r.__e)!=null),r.__e=r.l=null,(s=r.__c)!=null){if(s.componentWillUnmount)try{s.componentWillUnmount()}catch(a){Lt.__e(a,e)}s.base=s.__P=null}if(s=r.__k)for(i=0;i<s.length;i++)s[i]&&U8(s[i],e,t);n!=null&&B8(n)}function Pre(r,e,t){return this.constructor(r,t)}function Lre(r,e,t){var s,n,i;Lt.__p&&Lt.__p(r,e),n=(s=t===H8)?null:e.__k,r=ft(r1,null,[r]),i=[],Ub(e,e.__k=r,n||wi,wi,e.ownerSVGElement!==void 0,n?null:Nb.slice.call(e.childNodes),i,!1,wi,s),N8(i,r)}Lt={},Vo.prototype.setState=function(r,e){var t=this.__s!==this.state&&this.__s||(this.__s=_i({},this.state));(typeof r!="function"||(r=r(t,this.props)))&&_i(t,r),r!=null&&this.__v&&(this.u=!1,e&&this.__h.push(e),fg(this))},Vo.prototype.forceUpdate=function(r){this.__v&&(r&&this.__h.push(r),this.u=!0,fg(this))},Vo.prototype.render=r1,uf=[],F8=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,S_=Lt.debounceRendering,Lt.__e=function(r,e,t){for(var s;e=e.__p;)if((s=e.__c)&&!s.__p)try{if(s.constructor&&s.constructor.getDerivedStateFromError!=null)s.setState(s.constructor.getDerivedStateFromError(r));else{if(s.componentDidCatch==null)continue;s.componentDidCatch(r)}return fg(s.__E=s)}catch(n){r=n}throw r},H8=wi;function Are(r,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function Ere(r,e,t){return e&&Are(r.prototype,e),r}function Hr(){return Hr=Object.assign||function(r){for(var e=arguments,t=1;t<arguments.length;t++){var s=e[t];for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(r[n]=s[n])}return r},Hr.apply(this,arguments)}var Ore="[-\\+]?\\d+%?",Tre="[-\\+]?\\d*\\.\\d+%?",oa="(?:"+Tre+")|(?:"+Ore+")",W8="[\\s|\\(]+("+oa+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")\\s*\\)?",G8="[\\s|\\(]+("+oa+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")[,|\\s]+("+oa+")\\s*\\)?",kre=new RegExp("rgb"+W8),Dre=new RegExp("rgba"+G8),Mre=new RegExp("hsl"+W8),Rre=new RegExp("hsla"+G8),s1="^(?:#?|0x?)",la="([0-9a-fA-F]{1})",ca="([0-9a-fA-F]{2})",Ire=new RegExp(s1+la+la+la+"$"),Fre=new RegExp(s1+la+la+la+la+"$"),Hre=new RegExp(s1+ca+ca+ca+"$"),Bre=new RegExp(s1+ca+ca+ca+ca+"$"),jre=2e3,Vre=4e4,gp=Math.log,wo=Math.round,hc=Math.floor;function fs(r,e,t){return Math.min(Math.max(r,e),t)}function Dr(r,e){var t=r.indexOf("%")>-1,s=parseFloat(r);return t?e/100*s:s}function Mr(r){return parseInt(r,16)}function ta(r){return r.toString(16).padStart(2,"0")}var Ro=function(){function r(t,s){this.$={h:0,s:0,v:0,a:1},t&&this.set(t),this.onChange=s,this.initialValue=Hr({},this.$)}var e=r.prototype;return e.set=function(s){if(typeof s=="string")/^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(s)?this.hexString=s:/^rgba?/.test(s)?this.rgbString=s:/^hsla?/.test(s)&&(this.hslString=s);else if(typeof s=="object")s instanceof r?this.hsva=s.hsva:"r"in s&&"g"in s&&"b"in s?this.rgb=s:"h"in s&&"s"in s&&"v"in s?this.hsv=s:"h"in s&&"s"in s&&"l"in s?this.hsl=s:"kelvin"in s&&(this.kelvin=s.kelvin);else throw new Error("Invalid color value")},e.setChannel=function(s,n,i){var a;this[s]=Hr({},this[s],(a={},a[n]=i,a))},e.reset=function(){this.hsva=this.initialValue},e.clone=function(){return new r(this)},e.unbind=function(){this.onChange=void 0},r.hsvToRgb=function(s){var n=s.h/60,i=s.s/100,a=s.v/100,o=hc(n),l=n-o,c=a*(1-i),u=a*(1-l*i),d=a*(1-(1-l)*i),p=o%6,h=[a,u,c,c,d,a][p],m=[d,a,a,u,c,c][p],g=[c,c,d,a,a,u][p];return{r:fs(h*255,0,255),g:fs(m*255,0,255),b:fs(g*255,0,255)}},r.rgbToHsv=function(s){var n=s.r/255,i=s.g/255,a=s.b/255,o=Math.max(n,i,a),l=Math.min(n,i,a),c=o-l,u=0,d=o,p=o===0?0:c/o;switch(o){case l:u=0;break;case n:u=(i-a)/c+(i<a?6:0);break;case i:u=(a-n)/c+2;break;case a:u=(n-i)/c+4;break}return{h:u*60%360,s:fs(p*100,0,100),v:fs(d*100,0,100)}},r.hsvToHsl=function(s){var n=s.s/100,i=s.v/100,a=(2-n)*i,o=a<=1?a:2-a,l=o<1e-9?0:n*i/o;return{h:s.h,s:fs(l*100,0,100),l:fs(a*50,0,100)}},r.hslToHsv=function(s){var n=s.l*2,i=s.s*(n<=100?n:200-n)/100,a=n+i<1e-9?0:2*i/(n+i);return{h:s.h,s:fs(a*100,0,100),v:fs((n+i)/2,0,100)}},r.kelvinToRgb=function(s){var n=s/100,i,a,o;return n<66?(i=255,a=-155.25485562709179-.44596950469579133*(a=n-2)+104.49216199393888*gp(a),o=n<20?0:-254.76935184120902+.8274096064007395*(o=n-10)+115.67994401066147*gp(o)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*gp(i),a=325.4494125711974+.07943456536662342*(a=n-50)-28.0852963507957*gp(a),o=255),{r:fs(hc(i),0,255),g:fs(hc(a),0,255),b:fs(hc(o),0,255)}},r.rgbToKelvin=function(s){for(var n=s.r,i=s.b,a=.4,o=jre,l=Vre,c;l-o>a;){c=(l+o)*.5;var u=r.kelvinToRgb(c);u.b/u.r>=i/n?l=c:o=c}return c},Ere(r,[{key:"hsv",get:function(){var s=this.$;return{h:s.h,s:s.s,v:s.v}},set:function(s){var n=this.$;if(s=Hr({},n,s),this.onChange){var i={h:!1,v:!1,s:!1,a:!1};for(var a in n)i[a]=s[a]!=n[a];this.$=s,(i.h||i.s||i.v||i.a)&&this.onChange(this,i)}else this.$=s}},{key:"hsva",get:function(){return Hr({},this.$)},set:function(s){this.hsv=s}},{key:"hue",get:function(){return this.$.h},set:function(s){this.hsv={h:s}}},{key:"saturation",get:function(){return this.$.s},set:function(s){this.hsv={s}}},{key:"value",get:function(){return this.$.v},set:function(s){this.hsv={v:s}}},{key:"alpha",get:function(){return this.$.a},set:function(s){this.hsv=Hr({},this.hsv,{a:s})}},{key:"kelvin",get:function(){return r.rgbToKelvin(this.rgb)},set:function(s){this.rgb=r.kelvinToRgb(s)}},{key:"red",get:function(){var s=this.rgb;return s.r},set:function(s){this.rgb=Hr({},this.rgb,{r:s})}},{key:"green",get:function(){var s=this.rgb;return s.g},set:function(s){this.rgb=Hr({},this.rgb,{g:s})}},{key:"blue",get:function(){var s=this.rgb;return s.b},set:function(s){this.rgb=Hr({},this.rgb,{b:s})}},{key:"rgb",get:function(){var s=r.hsvToRgb(this.$),n=s.r,i=s.g,a=s.b;return{r:wo(n),g:wo(i),b:wo(a)}},set:function(s){this.hsv=Hr({},r.rgbToHsv(s),{a:s.a===void 0?1:s.a})}},{key:"rgba",get:function(){return Hr({},this.rgb,{a:this.alpha})},set:function(s){this.rgb=s}},{key:"hsl",get:function(){var s=r.hsvToHsl(this.$),n=s.h,i=s.s,a=s.l;return{h:wo(n),s:wo(i),l:wo(a)}},set:function(s){this.hsv=Hr({},r.hslToHsv(s),{a:s.a===void 0?1:s.a})}},{key:"hsla",get:function(){return Hr({},this.hsl,{a:this.alpha})},set:function(s){this.hsl=s}},{key:"rgbString",get:function(){var s=this.rgb;return"rgb("+s.r+", "+s.g+", "+s.b+")"},set:function(s){var n,i,a,o,l=1;if((n=kre.exec(s))?(i=Dr(n[1],255),a=Dr(n[2],255),o=Dr(n[3],255)):(n=Dre.exec(s))&&(i=Dr(n[1],255),a=Dr(n[2],255),o=Dr(n[3],255),l=Dr(n[4],1)),n)this.rgb={r:i,g:a,b:o,a:l};else throw new Error("Invalid rgb string")}},{key:"rgbaString",get:function(){var s=this.rgba;return"rgba("+s.r+", "+s.g+", "+s.b+", "+s.a+")"},set:function(s){this.rgbString=s}},{key:"hexString",get:function(){var s=this.rgb;return"#"+ta(s.r)+ta(s.g)+ta(s.b)},set:function(s){var n,i,a,o,l=255;if((n=Ire.exec(s))?(i=Mr(n[1])*17,a=Mr(n[2])*17,o=Mr(n[3])*17):(n=Fre.exec(s))?(i=Mr(n[1])*17,a=Mr(n[2])*17,o=Mr(n[3])*17,l=Mr(n[4])*17):(n=Hre.exec(s))?(i=Mr(n[1]),a=Mr(n[2]),o=Mr(n[3])):(n=Bre.exec(s))&&(i=Mr(n[1]),a=Mr(n[2]),o=Mr(n[3]),l=Mr(n[4])),n)this.rgb={r:i,g:a,b:o,a:l/255};else throw new Error("Invalid hex string")}},{key:"hex8String",get:function(){var s=this.rgba;return"#"+ta(s.r)+ta(s.g)+ta(s.b)+ta(hc(s.a*255))},set:function(s){this.hexString=s}},{key:"hslString",get:function(){var s=this.hsl;return"hsl("+s.h+", "+s.s+"%, "+s.l+"%)"},set:function(s){var n,i,a,o,l=1;if((n=Mre.exec(s))?(i=Dr(n[1],360),a=Dr(n[2],100),o=Dr(n[3],100)):(n=Rre.exec(s))&&(i=Dr(n[1],360),a=Dr(n[2],100),o=Dr(n[3],100),l=Dr(n[4],1)),n)this.hsl={h:i,s:a,l:o,a:l};else throw new Error("Invalid hsl string")}},{key:"hslaString",get:function(){var s=this.hsla;return"hsla("+s.h+", "+s.s+"%, "+s.l+"%, "+s.a+")"},set:function(s){this.hslString=s}}]),r}(),Nre={sliderShape:"bar",sliderType:"value",minTemperature:2200,maxTemperature:11e3};function Wb(r){var e,t=r.width,s=r.sliderSize,n=r.borderWidth,i=r.handleRadius,a=r.padding,o=r.sliderShape,l=r.layoutDirection==="horizontal";return s=(e=s)!=null?e:a*2+i*2,o==="circle"?{handleStart:r.padding+r.handleRadius,handleRange:t-a*2-i*2,width:t,height:t,cx:t/2,cy:t/2,radius:t/2-n/2}:{handleStart:s/2,handleRange:t-s,radius:s/2,x:0,y:0,width:l?s:t,height:l?t:s}}function zre(r,e){var t=e.hsva,s=e.rgb;switch(r.sliderType){case"red":return s.r/2.55;case"green":return s.g/2.55;case"blue":return s.b/2.55;case"alpha":return t.a*100;case"kelvin":var n=r.minTemperature,i=r.maxTemperature,a=i-n,o=(e.kelvin-n)/a*100;return Math.max(0,Math.min(o,100));case"hue":return t.h/=3.6;case"saturation":return t.s;case"value":default:return t.v}}function Ure(r,e,t){var s=Wb(r),n=s.handleRange,i=s.handleStart,a;r.layoutDirection==="horizontal"?a=-1*t+n+i:a=e-i,a=Math.max(Math.min(a,n),0);var o=Math.round(100/n*a);switch(r.sliderType){case"kelvin":var l=r.minTemperature,c=r.maxTemperature,u=c-l;return l+u*(o/100);case"alpha":return o/100;case"hue":return o*3.6;case"red":case"blue":case"green":return o*2.55;default:return o}}function Wre(r,e){var t=Wb(r),s=t.width,n=t.height,i=t.handleRange,a=t.handleStart,o=r.layoutDirection==="horizontal",l=zre(r,e),c=o?s/2:n/2,u=a+l/100*i;return o&&(u=-1*u+i+a*2),{x:o?c:u,y:o?u:c}}function Gre(r,e){var t=e.hsv,s=e.rgb;switch(r.sliderType){case"red":return[[0,"rgb(0,"+s.g+","+s.b+")"],[100,"rgb(255,"+s.g+","+s.b+")"]];case"green":return[[0,"rgb("+s.r+",0,"+s.b+")"],[100,"rgb("+s.r+",255,"+s.b+")"]];case"blue":return[[0,"rgb("+s.r+","+s.g+",0)"],[100,"rgb("+s.r+","+s.g+",255)"]];case"alpha":return[[0,"rgba("+s.r+","+s.g+","+s.b+",0)"],[100,"rgb("+s.r+","+s.g+","+s.b+")"]];case"kelvin":for(var n=[],i=r.minTemperature,a=r.maxTemperature,o=8,l=a-i,c=i,u=0;c<a;c+=l/o,u+=1){var d=Ro.kelvinToRgb(c),p=d.r,h=d.g,m=d.b;n.push([100/o*u,"rgb("+p+","+h+","+m+")"])}return n;case"hue":return[[0,"#f00"],[16.666,"#ff0"],[33.333,"#0f0"],[50,"#0ff"],[66.666,"#00f"],[83.333,"#f0f"],[100,"#f00"]];case"saturation":var g=Ro.hsvToHsl({h:t.h,s:0,v:t.v}),v=Ro.hsvToHsl({h:t.h,s:100,v:t.v});return[[0,"hsl("+g.h+","+g.s+"%,"+g.l+"%)"],[100,"hsl("+v.h+","+v.s+"%,"+v.l+"%)"]];case"value":default:var y=Ro.hsvToHsl({h:t.h,s:t.s,v:100});return[[0,"#000"],[100,"hsl("+y.h+","+y.s+"%,"+y.l+"%)"]]}}var q8=Math.PI*2,qre=function(e,t){return(e%t+t)%t},Z8=function(e,t){return Math.sqrt(e*e+t*t)};function Y8(r){return r.width/2-r.padding-r.handleRadius-r.borderWidth}function Zre(r,e,t){var s=n1(r),n=s.cx,i=s.cy,a=r.width/2;return Z8(n-e,i-t)<a}function n1(r){var e=r.width/2;return{width:r.width,radius:e-r.borderWidth,cx:e,cy:e}}function K8(r,e,t){var s=r.wheelAngle,n=r.wheelDirection;return t&&n==="clockwise"?e=s+e:n==="clockwise"?e=360-s+e:t&&n==="anticlockwise"?e=s+180-e:n==="anticlockwise"&&(e=s-e),qre(e,360)}function Yre(r,e){var t=e.hsv,s=n1(r),n=s.cx,i=s.cy,a=Y8(r),o=(180+K8(r,t.h,!0))*(q8/360),l=t.s/100*a,c=r.wheelDirection==="clockwise"?-1:1;return{x:n+l*Math.cos(o)*c,y:i+l*Math.sin(o)*c}}function Uw(r,e,t){var s=n1(r),n=s.cx,i=s.cy,a=Y8(r);e=n-e,t=i-t;var o=K8(r,Math.atan2(-t,-e)*(360/q8)),l=Math.min(Z8(e,t),a);return{h:Math.round(o),s:Math.round(100/a*l)}}function Gb(r){var e=r.width,t=r.boxHeight,s=r.padding,n=r.handleRadius;return{width:e,height:t??e,radius:s+n}}function Ww(r,e,t){var s=Gb(r),n=s.width,i=s.height,a=s.radius,o=a,l=n-a*2,c=i-a*2,u=(e-o)/l*100,d=(t-o)/c*100;return{s:Math.max(0,Math.min(u,100)),v:Math.max(0,Math.min(100-d,100))}}function Kre(r,e){var t=Gb(r),s=t.width,n=t.height,i=t.radius,a=e.hsv,o=i,l=s-i*2,c=n-i*2;return{x:o+a.s/100*l,y:o+(c-a.v/100*c)}}function Xre(r,e){var t=e.hue;return[[[0,"#fff"],[100,"hsl("+t+",100%,50%)"]],[[0,"rgba(0,0,0,0)"],[100,"#000"]]]}var mg;function Qre(r){mg||(mg=document.getElementsByTagName("base"));var e=window.navigator.userAgent,t=/^((?!chrome|android).)*safari/i.test(e),s=/iPhone|iPod|iPad/i.test(e),n=window.location;return(t||s)&&mg.length>0?n.protocol+"//"+n.host+n.pathname+n.search+r:r}function X8(r,e,t,s){for(var n=0;n<s.length;n++){var i=s[n].x-e,a=s[n].y-t,o=Math.sqrt(i*i+a*a);if(o<r.handleRadius)return n}return null}function qb(r){return{boxSizing:"border-box",border:r.borderWidth+"px solid "+r.borderColor}}function x_(r,e,t){return r+"-gradient("+e+", "+t.map(function(s){var n=s[0],i=s[1];return i+" "+n+"%"}).join(",")+")"}function Cr(r){return typeof r=="string"?r:r+"px"}var Jre={width:300,height:300,color:"#fff",colors:[],padding:6,layoutDirection:"vertical",borderColor:"#fff",borderWidth:0,handleRadius:8,activeHandleRadius:null,handleSvg:null,handleProps:{x:0,y:0},wheelLightness:!0,wheelAngle:0,wheelDirection:"anticlockwise",sliderSize:null,sliderMargin:12,boxHeight:null},Gw=["mousemove","touchmove","mouseup","touchend"],i1=function(r){function e(t){r.call(this,t),this.uid=(Math.random()+1).toString(36).substring(5)}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.render=function(s){var n=this.handleEvent.bind(this),i={onMouseDown:n,ontouchstart:n},a=s.layoutDirection==="horizontal",o=s.margin===null?s.sliderMargin:s.margin,l={overflow:"visible",display:a?"inline-block":"block"};return s.index>0&&(l[a?"marginLeft":"marginTop"]=o),ft(r1,null,s.children(this.uid,i,l))},e.prototype.handleEvent=function(s){var n=this,i=this.props.onInput,a=this.base.getBoundingClientRect();s.preventDefault();var o=s.touches?s.changedTouches[0]:s,l=o.clientX-a.left,c=o.clientY-a.top;switch(s.type){case"mousedown":case"touchstart":var u=i(l,c,0);u!==!1&&Gw.forEach(function(d){document.addEventListener(d,n,{passive:!1})});break;case"mousemove":case"touchmove":i(l,c,1);break;case"mouseup":case"touchend":i(l,c,2),Gw.forEach(function(d){document.removeEventListener(d,n,{passive:!1})});break}},e}(Vo);function Ma(r){var e=r.r,t=r.url,s=e,n=e;return ft("svg",{className:"IroHandle IroHandle--"+r.index+" "+(r.isActive?"IroHandle--isActive":""),style:{"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0);",transform:"translate("+Cr(r.x)+", "+Cr(r.y)+")",willChange:"transform",top:Cr(-e),left:Cr(-e),width:Cr(e*2),height:Cr(e*2),position:"absolute",overflow:"visible"}},t&&ft("use",Object.assign({xlinkHref:Qre(t)},r.props)),!t&&ft("circle",{cx:s,cy:n,r:e,fill:"none","stroke-width":2,stroke:"#000"}),!t&&ft("circle",{cx:s,cy:n,r:e-2,fill:r.fill,"stroke-width":2,stroke:"#fff"}))}Ma.defaultProps={fill:"none",x:0,y:0,r:8,url:null,props:{x:0,y:0}};function pf(r){var e=r.activeIndex,t=e!==void 0&&e<r.colors.length?r.colors[e]:r.color,s=Wb(r),n=s.width,i=s.height,a=s.radius,o=Wre(r,t),l=Gre(r,t);function c(u,d,p){var h=Ure(r,u,d);r.parent.inputActive=!0,t[r.sliderType]=h,r.onInput(p,r.id)}return ft(i1,Object.assign({},r,{onInput:c}),function(u,d,p){return ft("div",Object.assign({},d,{className:"IroSlider",style:Object.assign({},{position:"relative",width:Cr(n),height:Cr(i),borderRadius:Cr(a),background:"conic-gradient(#ccc 25%, #fff 0 50%, #ccc 0 75%, #fff 0)",backgroundSize:"8px 8px"},p)}),ft("div",{className:"IroSliderGradient",style:Object.assign({},{position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:Cr(a),background:x_("linear",r.layoutDirection==="horizontal"?"to top":"to right",l)},qb(r))}),ft(Ma,{isActive:!0,index:t.index,r:r.handleRadius,url:r.handleSvg,props:r.handleProps,x:o.x,y:o.y}))})}pf.defaultProps=Object.assign({},Nre);function ese(r){var e=Gb(r),t=e.width,s=e.height,n=e.radius,i=r.colors,a=r.parent,o=r.activeIndex,l=o!==void 0&&o<r.colors.length?r.colors[o]:r.color,c=Xre(r,l),u=i.map(function(p){return Kre(r,p)});function d(p,h,m){if(m===0){var g=X8(r,p,h,u);g!==null?a.setActiveColor(g):(a.inputActive=!0,l.hsv=Ww(r,p,h),r.onInput(m,r.id))}else m===1&&(a.inputActive=!0,l.hsv=Ww(r,p,h));r.onInput(m,r.id)}return ft(i1,Object.assign({},r,{onInput:d}),function(p,h,m){return ft("div",Object.assign({},h,{className:"IroBox",style:Object.assign({},{width:Cr(t),height:Cr(s),position:"relative"},m)}),ft("div",{className:"IroBox",style:Object.assign({},{width:"100%",height:"100%",borderRadius:Cr(n)},qb(r),{background:x_("linear","to bottom",c[1])+","+x_("linear","to right",c[0])})}),i.filter(function(g){return g!==l}).map(function(g){return ft(Ma,{isActive:!1,index:g.index,fill:g.hslString,r:r.handleRadius,url:r.handleSvg,props:r.handleProps,x:u[g.index].x,y:u[g.index].y})}),ft(Ma,{isActive:!0,index:l.index,fill:l.hslString,r:r.activeHandleRadius||r.handleRadius,url:r.handleSvg,props:r.handleProps,x:u[l.index].x,y:u[l.index].y}))})}var tse="conic-gradient(red, yellow, lime, aqua, blue, magenta, red)",rse="conic-gradient(red, magenta, blue, aqua, lime, yellow, red)";function Q8(r){var e=n1(r),t=e.width,s=r.colors;r.borderWidth;var n=r.parent,i=r.color,a=i.hsv,o=s.map(function(u){return Yre(r,u)}),l={position:"absolute",top:0,left:0,width:"100%",height:"100%",borderRadius:"50%",boxSizing:"border-box"};function c(u,d,p){if(p===0){if(!Zre(r,u,d))return!1;var h=X8(r,u,d,o);h!==null?n.setActiveColor(h):(n.inputActive=!0,i.hsv=Uw(r,u,d),r.onInput(p,r.id))}else p===1&&(n.inputActive=!0,i.hsv=Uw(r,u,d));r.onInput(p,r.id)}return ft(i1,Object.assign({},r,{onInput:c}),function(u,d,p){return ft("div",Object.assign({},d,{className:"IroWheel",style:Object.assign({},{width:Cr(t),height:Cr(t),position:"relative"},p)}),ft("div",{className:"IroWheelHue",style:Object.assign({},l,{transform:"rotateZ("+(r.wheelAngle+90)+"deg)",background:r.wheelDirection==="clockwise"?tse:rse})}),ft("div",{className:"IroWheelSaturation",style:Object.assign({},l,{background:"radial-gradient(circle closest-side, #fff, transparent)"})}),r.wheelLightness&&ft("div",{className:"IroWheelLightness",style:Object.assign({},l,{background:"#000",opacity:1-a.v/100})}),ft("div",{className:"IroWheelBorder",style:Object.assign({},l,qb(r))}),s.filter(function(h){return h!==i}).map(function(h){return ft(Ma,{isActive:!1,index:h.index,fill:h.hslString,r:r.handleRadius,url:r.handleSvg,props:r.handleProps,x:o[h.index].x,y:o[h.index].y})}),ft(Ma,{isActive:!0,index:i.index,fill:i.hslString,r:r.activeHandleRadius||r.handleRadius,url:r.handleSvg,props:r.handleProps,x:o[i.index].x,y:o[i.index].y}))})}function sse(r){var e=function(t,s){var n,i=document.createElement("div");Lre(ft(r,Object.assign({},{ref:function(o){return n=o}},s)),i);function a(){var o=t instanceof Element?t:document.querySelector(t);o.appendChild(n.base),n.onMount(o)}return document.readyState!=="loading"?a():document.addEventListener("DOMContentLoaded",a),n};return e.prototype=r.prototype,Object.assign(e,r),e.__component=r,e}var J8=function(r){function e(t){var s=this;r.call(this,t),this.colors=[],this.inputActive=!1,this.events={},this.activeEvents={},this.deferredEvents={},this.id=t.id;var n=t.colors.length>0?t.colors:[t.color];n.forEach(function(i){return s.addColor(i)}),this.setActiveColor(0),this.state=Object.assign({},t,{color:this.color,colors:this.colors,layout:t.layout})}return r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e,e.prototype.addColor=function(s,n){n===void 0&&(n=this.colors.length);var i=new Ro(s,this.onColorChange.bind(this));this.colors.splice(n,0,i),this.colors.forEach(function(a,o){return a.index=o}),this.state&&this.setState({colors:this.colors}),this.deferredEmit("color:init",i)},e.prototype.removeColor=function(s){var n=this.colors.splice(s,1)[0];n.unbind(),this.colors.forEach(function(i,a){return i.index=a}),this.state&&this.setState({colors:this.colors}),n.index===this.color.index&&this.setActiveColor(0),this.emit("color:remove",n)},e.prototype.setActiveColor=function(s){this.color=this.colors[s],this.state&&this.setState({color:this.color}),this.emit("color:setActive",this.color)},e.prototype.setColors=function(s,n){var i=this;n===void 0&&(n=0),this.colors.forEach(function(a){return a.unbind()}),this.colors=[],s.forEach(function(a){return i.addColor(a)}),this.setActiveColor(n),this.emit("color:setAll",this.colors)},e.prototype.on=function(s,n){var i=this,a=this.events;(Array.isArray(s)?s:[s]).forEach(function(o){(a[o]||(a[o]=[])).push(n),i.deferredEvents[o]&&(i.deferredEvents[o].forEach(function(l){n.apply(null,l)}),i.deferredEvents[o]=[])})},e.prototype.off=function(s,n){var i=this;(Array.isArray(s)?s:[s]).forEach(function(a){var o=i.events[a];o&&o.splice(o.indexOf(n),1)})},e.prototype.emit=function(s){for(var n=this,i=[],a=arguments.length-1;a-- >0;)i[a]=arguments[a+1];var o=this.activeEvents,l=o.hasOwnProperty(s)?o[s]:!1;if(!l){o[s]=!0;var c=this.events[s]||[];c.forEach(function(u){return u.apply(n,i)}),o[s]=!1}},e.prototype.deferredEmit=function(s){for(var n,i=[],a=arguments.length-1;a-- >0;)i[a]=arguments[a+1];var o=this.deferredEvents;(n=this).emit.apply(n,[s].concat(i)),(o[s]||(o[s]=[])).push(i)},e.prototype.setOptions=function(s){this.setState(s)},e.prototype.resize=function(s){this.setOptions({width:s})},e.prototype.reset=function(){this.colors.forEach(function(s){return s.reset()}),this.setState({colors:this.colors})},e.prototype.onMount=function(s){this.el=s,this.deferredEmit("mount",this)},e.prototype.onColorChange=function(s,n){this.setState({color:this.color}),this.inputActive&&(this.inputActive=!1,this.emit("input:change",s,n)),this.emit("color:change",s,n)},e.prototype.emitInputEvent=function(s,n){s===0?this.emit("input:start",this.color,n):s===1?this.emit("input:move",this.color,n):s===2&&this.emit("input:end",this.color,n)},e.prototype.render=function(s,n){var i=this,a=n.layout;if(!Array.isArray(a)){switch(a){default:a=[{component:Q8},{component:pf}]}n.transparency&&a.push({component:pf,options:{sliderType:"alpha"}})}return ft("div",{class:"IroColorPicker",id:n.id,style:{display:n.display}},a.map(function(o,l){var c=o.component,u=o.options;return ft(c,Object.assign({},n,u,{ref:void 0,onInput:i.emitInputEvent.bind(i),parent:i,index:l}))}))},e}(Vo);J8.defaultProps=Object.assign({},Jre,{colors:[],display:"block",id:null,layout:"default",margin:null});var nse=sse(J8),C_;(function(r){r.version="5.5.2",r.Color=Ro,r.ColorPicker=nse,function(e){e.h=ft,e.ComponentBase=i1,e.Handle=Ma,e.Slider=pf,e.Wheel=Q8,e.Box=ese}(r.ui||(r.ui={}))})(C_||(C_={}));var th=C_;function ise(r,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function ase(r,e,t){return e&&ise(r.prototype,e),r}function Br(){return Br=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},Br.apply(this,arguments)}var ose="[-\\+]?\\d+%?",lse="[-\\+]?\\d*\\.\\d+%?",ua="(?:"+lse+")|(?:"+ose+")",e7="[\\s|\\(]+("+ua+")[,|\\s]+("+ua+")[,|\\s]+("+ua+")\\s*\\)?",t7="[\\s|\\(]+("+ua+")[,|\\s]+("+ua+")[,|\\s]+("+ua+")[,|\\s]+("+ua+")\\s*\\)?",cse=new RegExp("rgb"+e7),use=new RegExp("rgba"+t7),dse=new RegExp("hsl"+e7),pse=new RegExp("hsla"+t7),a1="^(?:#?|0x?)",da="([0-9a-fA-F]{1})",pa="([0-9a-fA-F]{2})",hse=new RegExp(a1+da+da+da+"$"),fse=new RegExp(a1+da+da+da+da+"$"),mse=new RegExp(a1+pa+pa+pa+"$"),gse=new RegExp(a1+pa+pa+pa+pa+"$"),vse=2e3,_se=4e4,vp=Math.log,xo=Math.round,fc=Math.floor;function ms(r,e,t){return Math.min(Math.max(r,e),t)}function Rr(r,e){var t=r.indexOf("%")>-1,s=parseFloat(r);return t?e/100*s:s}function Ir(r){return parseInt(r,16)}function ra(r){return r.toString(16).padStart(2,"0")}var hf=function(){function r(t,s){this.$={h:0,s:0,v:0,a:1},t&&this.set(t),this.onChange=s,this.initialValue=Br({},this.$)}var e=r.prototype;return e.set=function(s){if(typeof s=="string")/^(?:#?|0x?)[0-9a-fA-F]{3,8}$/.test(s)?this.hexString=s:/^rgba?/.test(s)?this.rgbString=s:/^hsla?/.test(s)&&(this.hslString=s);else if(typeof s=="object")s instanceof r?this.hsva=s.hsva:"r"in s&&"g"in s&&"b"in s?this.rgb=s:"h"in s&&"s"in s&&"v"in s?this.hsv=s:"h"in s&&"s"in s&&"l"in s?this.hsl=s:"kelvin"in s&&(this.kelvin=s.kelvin);else throw new Error("Invalid color value")},e.setChannel=function(s,n,i){var a;this[s]=Br({},this[s],(a={},a[n]=i,a))},e.reset=function(){this.hsva=this.initialValue},e.clone=function(){return new r(this)},e.unbind=function(){this.onChange=void 0},r.hsvToRgb=function(s){var n=s.h/60,i=s.s/100,a=s.v/100,o=fc(n),l=n-o,c=a*(1-i),u=a*(1-l*i),d=a*(1-(1-l)*i),p=o%6,h=[a,u,c,c,d,a][p],m=[d,a,a,u,c,c][p],g=[c,c,d,a,a,u][p];return{r:ms(h*255,0,255),g:ms(m*255,0,255),b:ms(g*255,0,255)}},r.rgbToHsv=function(s){var n=s.r/255,i=s.g/255,a=s.b/255,o=Math.max(n,i,a),l=Math.min(n,i,a),c=o-l,u=0,d=o,p=o===0?0:c/o;switch(o){case l:u=0;break;case n:u=(i-a)/c+(i<a?6:0);break;case i:u=(a-n)/c+2;break;case a:u=(n-i)/c+4;break}return{h:u*60%360,s:ms(p*100,0,100),v:ms(d*100,0,100)}},r.hsvToHsl=function(s){var n=s.s/100,i=s.v/100,a=(2-n)*i,o=a<=1?a:2-a,l=o<1e-9?0:n*i/o;return{h:s.h,s:ms(l*100,0,100),l:ms(a*50,0,100)}},r.hslToHsv=function(s){var n=s.l*2,i=s.s*(n<=100?n:200-n)/100,a=n+i<1e-9?0:2*i/(n+i);return{h:s.h,s:ms(a*100,0,100),v:ms((n+i)/2,0,100)}},r.kelvinToRgb=function(s){var n=s/100,i,a,o;return n<66?(i=255,a=-155.25485562709179-.44596950469579133*(a=n-2)+104.49216199393888*vp(a),o=n<20?0:-254.76935184120902+.8274096064007395*(o=n-10)+115.67994401066147*vp(o)):(i=351.97690566805693+.114206453784165*(i=n-55)-40.25366309332127*vp(i),a=325.4494125711974+.07943456536662342*(a=n-50)-28.0852963507957*vp(a),o=255),{r:ms(fc(i),0,255),g:ms(fc(a),0,255),b:ms(fc(o),0,255)}},r.rgbToKelvin=function(s){for(var n=s.r,i=s.b,a=.4,o=vse,l=_se,c;l-o>a;){c=(l+o)*.5;var u=r.kelvinToRgb(c);u.b/u.r>=i/n?l=c:o=c}return c},ase(r,[{key:"hsv",get:function(){var s=this.$;return{h:s.h,s:s.s,v:s.v}},set:function(s){var n=this.$;if(s=Br({},n,s),this.onChange){var i={h:!1,v:!1,s:!1,a:!1};for(var a in n)i[a]=s[a]!=n[a];this.$=s,(i.h||i.s||i.v||i.a)&&this.onChange(this,i)}else this.$=s}},{key:"hsva",get:function(){return Br({},this.$)},set:function(s){this.hsv=s}},{key:"hue",get:function(){return this.$.h},set:function(s){this.hsv={h:s}}},{key:"saturation",get:function(){return this.$.s},set:function(s){this.hsv={s}}},{key:"value",get:function(){return this.$.v},set:function(s){this.hsv={v:s}}},{key:"alpha",get:function(){return this.$.a},set:function(s){this.hsv=Br({},this.hsv,{a:s})}},{key:"kelvin",get:function(){return r.rgbToKelvin(this.rgb)},set:function(s){this.rgb=r.kelvinToRgb(s)}},{key:"red",get:function(){var s=this.rgb;return s.r},set:function(s){this.rgb=Br({},this.rgb,{r:s})}},{key:"green",get:function(){var s=this.rgb;return s.g},set:function(s){this.rgb=Br({},this.rgb,{g:s})}},{key:"blue",get:function(){var s=this.rgb;return s.b},set:function(s){this.rgb=Br({},this.rgb,{b:s})}},{key:"rgb",get:function(){var s=r.hsvToRgb(this.$),n=s.r,i=s.g,a=s.b;return{r:xo(n),g:xo(i),b:xo(a)}},set:function(s){this.hsv=Br({},r.rgbToHsv(s),{a:s.a===void 0?1:s.a})}},{key:"rgba",get:function(){return Br({},this.rgb,{a:this.alpha})},set:function(s){this.rgb=s}},{key:"hsl",get:function(){var s=r.hsvToHsl(this.$),n=s.h,i=s.s,a=s.l;return{h:xo(n),s:xo(i),l:xo(a)}},set:function(s){this.hsv=Br({},r.hslToHsv(s),{a:s.a===void 0?1:s.a})}},{key:"hsla",get:function(){return Br({},this.hsl,{a:this.alpha})},set:function(s){this.hsl=s}},{key:"rgbString",get:function(){var s=this.rgb;return"rgb("+s.r+", "+s.g+", "+s.b+")"},set:function(s){var n,i,a,o,l=1;if((n=cse.exec(s))?(i=Rr(n[1],255),a=Rr(n[2],255),o=Rr(n[3],255)):(n=use.exec(s))&&(i=Rr(n[1],255),a=Rr(n[2],255),o=Rr(n[3],255),l=Rr(n[4],1)),n)this.rgb={r:i,g:a,b:o,a:l};else throw new Error("Invalid rgb string")}},{key:"rgbaString",get:function(){var s=this.rgba;return"rgba("+s.r+", "+s.g+", "+s.b+", "+s.a+")"},set:function(s){this.rgbString=s}},{key:"hexString",get:function(){var s=this.rgb;return"#"+ra(s.r)+ra(s.g)+ra(s.b)},set:function(s){var n,i,a,o,l=255;if((n=hse.exec(s))?(i=Ir(n[1])*17,a=Ir(n[2])*17,o=Ir(n[3])*17):(n=fse.exec(s))?(i=Ir(n[1])*17,a=Ir(n[2])*17,o=Ir(n[3])*17,l=Ir(n[4])*17):(n=mse.exec(s))?(i=Ir(n[1]),a=Ir(n[2]),o=Ir(n[3])):(n=gse.exec(s))&&(i=Ir(n[1]),a=Ir(n[2]),o=Ir(n[3]),l=Ir(n[4])),n)this.rgb={r:i,g:a,b:o,a:l/255};else throw new Error("Invalid hex string")}},{key:"hex8String",get:function(){var s=this.rgba;return"#"+ra(s.r)+ra(s.g)+ra(s.b)+ra(fc(s.a*255))},set:function(s){this.hexString=s}},{key:"hslString",get:function(){var s=this.hsl;return"hsl("+s.h+", "+s.s+"%, "+s.l+"%)"},set:function(s){var n,i,a,o,l=1;if((n=dse.exec(s))?(i=Rr(n[1],360),a=Rr(n[2],100),o=Rr(n[3],100)):(n=pse.exec(s))&&(i=Rr(n[1],360),a=Rr(n[2],100),o=Rr(n[3],100),l=Rr(n[4],1)),n)this.hsl={h:i,s:a,l:o,a:l};else throw new Error("Invalid hsl string")}},{key:"hslaString",get:function(){var s=this.hsla;return"hsla("+s.h+", "+s.s+"%, "+s.l+"%, "+s.a+")"},set:function(s){this.hslString=s}}]),r}(),yse=Object.defineProperty,bse=Object.getOwnPropertyDescriptor,Td=(r,e,t,s)=>{for(var n=s>1?void 0:s?bse(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&yse(e,t,n),n};let Ra=class extends b{constructor(){super(...arguments);f(this,"inputValue");f(this,"options");f(this,"picker");f(this,"colorPicker",null)}onValue(t){t&&this.colorPicker&&this.colorPicker.color.set(t)}mounted(){const t={...this.options,color:this.inputValue,sliderSize:14};this.colorPicker=th.ColorPicker(this.picker,t),this.colorPicker.on("input:end",this.handleColorChange)}beforeUnmount(){this.colorPicker&&this.colorPicker.off("input:end",this.handleColorChange)}handleColorChange(t){this.inputValue=t.hexString}};Td([He({type:String,default:"#ffffff"})],Ra.prototype,"inputValue",2);Td([$({type:Object})],Ra.prototype,"options",2);Td([ke("picker")],Ra.prototype,"picker",2);Td([Ae("value")],Ra.prototype,"onValue",1);Ra=Td([L({})],Ra);var $se=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("div",{ref:"picker"})])},Sse=[],wse=A(Ra,$se,Sse,!1,null,null);const qw=wse.exports;var xse=Object.defineProperty,Cse=Object.getOwnPropertyDescriptor,Jn=(r,e,t,s)=>{for(var n=s>1?void 0:s?Cse(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&xse(e,t,n),n};let Xs=class extends b{constructor(){super(...arguments);f(this,"inputPrimaryColor");f(this,"inputWhiteValue");f(this,"title");f(this,"dot");f(this,"supportedChannels");f(this,"card");f(this,"lastPointerPosition",{x:0,y:0});f(this,"currentPrimaryColor",new hf);f(this,"currentWhiteColor",new hf)}get primaryOptions(){return{color:this.inputPrimaryColor,width:208,layout:[{component:th.ui.Wheel,options:{wheelLightness:!1,wheelAngle:270,wheelDirection:"clockwise"}},{component:th.ui.Slider,options:{sliderType:"value"}}]}}get whiteOptions(){return{color:this.inputWhiteColor,width:208,layout:[{component:th.ui.Slider,options:{sliderType:"value"}}]}}onValue(e){this.currentPrimaryColor.set(e)}onWhite(e){this.currentWhiteColor.set(this.valueToHexColor(e))}get currentRed(){return this.convertValueRange(this.currentPrimaryColor.red,"out")}set currentRed(e){this.currentPrimaryColor.red=this.convertValueRange(e,"in")}get currentGreen(){return this.convertValueRange(this.currentPrimaryColor.green,"out")}set currentGreen(e){this.currentPrimaryColor.green=this.convertValueRange(e,"in")}get currentBlue(){return this.convertValueRange(this.currentPrimaryColor.blue,"out")}set currentBlue(e){this.currentPrimaryColor.blue=this.convertValueRange(e,"in")}get currentWhite(){return this.convertValueRange(this.currentWhiteColor.red,"out")}set currentWhite(e){this.currentWhiteColor.set(this.valueToHexColor(this.convertValueRange(e,"in")))}get inputWhiteColor(){return this.valueToHexColor(this.inputWhiteValue)}get controlColor(){return this.supportedChannels==="W"?this.inputWhiteColor:this.inputPrimaryColor}get valueRange(){return this.$store.state.config.uiSettings.general.colorPickerValueRange}set valueRange(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.colorPickerValueRange",value:e,server:!0})}handleSubmitPrimary(){this.inputPrimaryColor=this.currentPrimaryColor.hexString}handleSubmitWhite(){this.inputWhiteValue=this.currentWhiteColor.red}handleReset(){this.currentPrimaryColor.set(this.inputPrimaryColor),this.currentWhiteColor.set(this.inputWhiteColor)}valueToHexColor(e){return e=Math.round(Math.min(Math.max(e,0),255)),`#${e.toString(16).padStart(2,"0").repeat(3)}`}created(){this.handleReset()}startMouseDrag(e){this.lastPointerPosition={x:e.clientX,y:e.clientY},window.addEventListener("mousemove",this.mouseMove),window.addEventListener("mouseup",this.stopMouseDrag)}stopMouseDrag(){window.removeEventListener("mousemove",this.mouseMove),window.removeEventListener("mouseup",this.stopMouseDrag)}startTouchDrag(e){this.lastPointerPosition={x:e.touches[0].clientX,y:e.touches[0].clientY}}relativeMove(e){const t=this.card.$el.parentElement;t&&(t.style.left=parseFloat(t.style.left)+(e.x-this.lastPointerPosition.x)+"px",t.style.top=parseFloat(t.style.top)+(e.y-this.lastPointerPosition.y)+"px")}mouseMove(e){const t={x:e.clientX,y:e.clientY};this.relativeMove(t),this.lastPointerPosition=t}touchMove(e){e.preventDefault();const t={x:e.touches[0].clientX,y:e.touches[0].clientY};this.relativeMove(t),this.lastPointerPosition=t}convertValueRange(e,t){if(this.valueRange==="absolute")return e;let s=1;return this.valueRange==="percentage"&&(s=255),t==="out"&&(s=1/s),Math.round(e*s*1e3)/1e3}};Jn([He({type:String,required:!0})],Xs.prototype,"inputPrimaryColor",2);Jn([ji("white",{type:Number,default:0})],Xs.prototype,"inputWhiteValue",2);Jn([$({type:String,default:""})],Xs.prototype,"title",2);Jn([$({type:Boolean})],Xs.prototype,"dot",2);Jn([$({type:String,default:"RGB"})],Xs.prototype,"supportedChannels",2);Jn([ke("card")],Xs.prototype,"card",2);Jn([Ae("value")],Xs.prototype,"onValue",1);Jn([Ae("white")],Xs.prototype,"onWhite",1);Xs=Jn([L({})],Xs);var Pse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{bottom:"",left:"","max-width":"260","close-on-content-click":!1},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[e.dot?t(w,e._g(e._b({attrs:{color:e.controlColor}},"v-icon",n,!1),s),[e._v(" $circle ")]):t(Fe,e._g(e._b({attrs:{color:e.controlColor,outlined:"",small:""}},"v-btn",n,!1),s),[e._v(" "+e._s(e.title)+" ")])]}}])},[t(Ie,{ref:"card"},[e.title?t(jr,{staticClass:"card-heading mb-2",staticStyle:{cursor:"move","user-select":"none"},on:{mousedown:e.startMouseDrag,touchstart:e.startTouchDrag,touchmove:e.touchMove}},[e._v(" "+e._s(e.title)+" ")]):e._e(),t(Pe,[e.supportedChannels!=="W"?t(w,{attrs:{color:e.currentPrimaryColor.hexString,large:""}},[e._v(" $circle ")]):e._e(),e.supportedChannels.includes("W")?t(w,{attrs:{color:e.currentWhiteColor.hexString,large:""}},[e._v(" $circle ")]):e._e(),t(Ur,{attrs:{"align-center":"",column:""}},[e.supportedChannels!=="W"?t(qw,{attrs:{options:e.primaryOptions},on:{input:e.handleSubmitPrimary},model:{value:e.currentPrimaryColor.hexString,callback:function(s){e.$set(e.currentPrimaryColor,"hexString",s)},expression:"currentPrimaryColor.hexString"}}):e._e(),e.supportedChannels.includes("W")?t(qw,{staticClass:"mt-4",attrs:{options:e.whiteOptions},on:{input:e.handleSubmitWhite},model:{value:e.currentWhiteColor.hexString,callback:function(s){e.$set(e.currentWhiteColor,"hexString",s)},expression:"currentWhiteColor.hexString"}}):e._e()],1),t("div",{staticClass:"text-right mt-4 mr-1"},[t(km,{attrs:{mandatory:""},model:{value:e.valueRange,callback:function(s){e.valueRange=s},expression:"valueRange"}},[t(M,{attrs:{"x-small":"",value:"absolute"}},[e._v(" 0..255 ")]),t(M,{attrs:{"x-small":"",value:"percentage"}},[e._v(" 0..1 ")])],1)],1),t(Ur,{staticClass:"mt-2",attrs:{"justify-space-between":""}},[e.supportedChannels!=="W"?t("div",{staticClass:"color-input"},[t(ae,{attrs:{dense:"","hide-details":"",outlined:""},on:{blur:e.handleReset,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmitPrimary.apply(null,arguments)}},model:{value:e.currentRed,callback:function(s){e.currentRed=e._n(s)},expression:"currentRed"}}),t("div",[e._v("R")])],1):e._e(),e.supportedChannels!=="W"?t("div",{staticClass:"color-input"},[t(ae,{attrs:{dense:"","hide-details":"",outlined:""},on:{blur:e.handleReset,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmitPrimary.apply(null,arguments)}},model:{value:e.currentGreen,callback:function(s){e.currentGreen=e._n(s)},expression:"currentGreen"}}),t("div",[e._v("G")])],1):e._e(),e.supportedChannels!=="W"?t("div",{staticClass:"color-input"},[t(ae,{attrs:{dense:"","hide-details":"",outlined:""},on:{blur:e.handleReset,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmitPrimary.apply(null,arguments)}},model:{value:e.currentBlue,callback:function(s){e.currentBlue=e._n(s)},expression:"currentBlue"}}),t("div",[e._v("B")])],1):e._e(),e.supportedChannels.includes("W")?t("div",{staticClass:"color-input"},[t(ae,{attrs:{dense:"","hide-details":"",outlined:""},on:{blur:e.handleReset,keyup:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"enter",13,s.key,"Enter")||s.ctrlKey||s.shiftKey||s.altKey||s.metaKey?null:e.handleSubmitWhite.apply(null,arguments)}},model:{value:e.currentWhite,callback:function(s){e.currentWhite=e._n(s)},expression:"currentWhite"}}),t("div",[e._v("W")])],1):e._e()])],1)],1)],1)},Lse=[],Ase=A(Xs,Pse,Lse,!1,null,"c68b6077");const ul=Ase.exports;var Ese=Object.defineProperty,Ose=Object.getOwnPropertyDescriptor,r7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ose(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ese(e,t,n),n};let ff=class extends Z(X){constructor(){super(...arguments);f(this,"led");f(this,"channelLookup",{r:"RED",g:"GREEN",b:"BLUE",w:"WHITE"})}get supportedChannels(){const{type:t,config:s}=this.led;if("color_order"in s)return s.color_order[0];switch(t){case"dotstar":return"RGB";case"led":{const n=[];return"red_pin"in s&&n.push("R"),"green_pin"in s&&n.push("G"),"blue_pin"in s&&n.push("B"),"white_pin"in s&&n.push("W"),n.join("")}}return"RBGW"}get color(){const[t,s,n,i]=this.led.color_data[0].map(a=>Math.round(a*255));return{r:t,g:s,b:n,w:i}}get primaryColor(){return new hf(this.color).hexString}set primaryColor(t){const{r:s,g:n,b:i}=new hf(t).rgb,a={...this.color,r:s,g:n,b:i};this.sendColor(a)}get whiteValue(){return this.color.w}set whiteValue(t){const s={...this.color,w:t};this.sendColor(s)}sendColor(t){const n=this.supportedChannels.toLowerCase().split("").map(i=>` ${this.channelLookup[i]}=${Math.round(t[i]*1e3/255)/1e3}`).join("");this.sendGcode(`SET_LED LED=${this.led.name}${n}`)}};r7([$({type:Object,required:!0})],ff.prototype,"led",2);ff=r7([L({})],ff);var Tse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{"no-gutters":"","justify-space-between":""}},[t(I,{staticClass:"text-body-1 py-0",attrs:{"align-self":"center",cols:"5"}},[e._v(" "+e._s(e.led.prettyName)+" ")]),t(I,{staticClass:"ml-auto py-0 text-right"},[t(ul,{attrs:{white:e.whiteValue,title:e.led.prettyName,"supported-channels":e.supportedChannels,dot:""},on:{"update:white":function(s){e.whiteValue=s}},model:{value:e.primaryColor,callback:function(s){e.primaryColor=s},expression:"primaryColor"}})],1)],1)},kse=[],Dse=A(ff,Tse,kse,!1,null,null);const Mse=Dse.exports;var Rse=Object.defineProperty,Ise=Object.getOwnPropertyDescriptor,s7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ise(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Rse(e,t,n),n};let mf=class extends b{constructor(){super(...arguments);f(this,"item")}get pinTypes(){return["output_pin","pwm_tool","pwm_cycle_time"]}get fanTypes(){return["temperature_fan","controller_fan","heater_fan","fan_generic","fan"]}get ledTypes(){return["led","neopixel","dotstar"]}};s7([$({type:Object,required:!0})],mf.prototype,"item",2);mf=s7([L({components:{OutputFan:fre,OutputPin:bre,OutputLed:Mse}})],mf);var Fse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.pinTypes.includes(e.item.type)?t("output-pin",{key:e.item.key,attrs:{pin:e.item}}):e._e(),e.fanTypes.includes(e.item.type)?t("output-fan",{key:e.item.key,attrs:{fan:e.item}}):e._e(),e.ledTypes.includes(e.item.type)?t("output-led",{key:e.item.key,attrs:{led:e.item}}):e._e()],1)},Hse=[],Bse=A(mf,Fse,Hse,!1,null,null);const jse=Bse.exports;var Vse=Object.defineProperty,Nse=Object.getOwnPropertyDescriptor,zse=(r,e,t,s)=>{for(var n=s>1?void 0:s?Nse(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Vse(e,t,n),n};let P_=class extends Z(X){get all(){const e=[...this.$store.getters["printer/getAllFans"],...this.$store.getters["printer/getPins"],...this.$store.getters["printer/getAllLeds"]];let t=[],s=[];if(e.length>1){const n=Math.ceil(e.length/2);t=e.splice(0,n),s=e}else t=e;return{col1:t,col2:s}}};P_=zse([L({components:{OutputItem:jse}})],P_);var Use=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Pe,[t(te,[t(I,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[e._l(e.all.col1,function(s,n){return[t("OutputItem",{key:s.key,attrs:{item:s}}),n<e.all.col1.length-1||e.$vuetify.breakpoint.mdAndDown?t(R,{key:`divider-0${n}`,staticClass:"my-2"}):e._e()]})],2),t(I,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[e._l(e.all.col2,function(s,n){return[t("OutputItem",{key:s.key,attrs:{item:s}}),n<e.all.col2.length-1?t(R,{key:`divider-1${n}`,staticClass:"my-2"}):e._e()]})],2)],1)],1)},Wse=[],Gse=A(P_,Use,Wse,!1,null,null);const qse=Gse.exports;var Zse=Object.defineProperty,Yse=Object.getOwnPropertyDescriptor,Kse=(r,e,t,s)=>{for(var n=s>1?void 0:s?Yse(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Zse(e,t,n),n};let L_=class extends b{};L_=Kse([L({components:{Outputs:qse}})],L_);var Xse=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.fans_outputs"),icon:"$motion",draggable:"","layout-path":"dashboard.outputs-card","menu-breakpoint":"lg"}},[t("outputs")],1)},Qse=[],Jse=A(L_,Xse,Qse,!1,null,null);const ene=Jse.exports;var tne=Object.defineProperty,rne=Object.getOwnPropertyDescriptor,sne=(r,e,t,s)=>{for(var n=s>1?void 0:s?rne(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&tne(e,t,n),n};let A_=class extends Z(X,lt){get defaultVelocity(){return this.$store.getters["printer/getPrinterSettings"]("printer.max_velocity")}get velocity(){return this.$store.state.printer.printer.toolhead.max_velocity}get defaultAccel(){return this.$store.getters["printer/getPrinterSettings"]("printer.max_accel")}get accel(){return this.$store.state.printer.printer.toolhead.max_accel}get defaultAccelToDecel(){return this.$store.getters["printer/getPrinterSettings"]("printer.max_accel_to_decel")??this.defaultAccel/2}get accelToDecel(){return this.$store.state.printer.printer.toolhead.max_accel_to_decel}get defaultMinimumCruiseRatio(){return this.$store.getters["printer/getPrinterSettings"]("printer.minimum_cruise_ratio")??.5}get minimumCruiseRatio(){return this.$store.state.printer.printer.toolhead.minimum_cruise_ratio}get defaultSquareCornerVelocity(){return this.$store.getters["printer/getPrinterSettings"]("printer.square_corner_velocity")||5}get squareCornerVelocity(){return this.$store.state.printer.printer.toolhead.square_corner_velocity}setVelocity(e){this.sendGcode(`SET_VELOCITY_LIMIT VELOCITY=${e}`,this.$waits.onSetVelocity)}setAccel(e){this.sendGcode(`SET_VELOCITY_LIMIT ACCEL=${e}`,this.$waits.onSetAcceleration)}setAccelToDecel(e){this.sendGcode(`SET_VELOCITY_LIMIT ACCEL_TO_DECEL=${e}`,this.$waits.onSetAccelToDecel)}setMinimumCruiseRatio(e){this.sendGcode(`SET_VELOCITY_LIMIT MINIMUM_CRUISE_RATIO=${e}`,this.$waits.onSetMinimumCruiseRatio)}setSquareCornerVelocity(e){this.sendGcode(`SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=${e}`,this.$waits.onSetSquareCornerVelocity)}};A_=sne([L({})],A_);var nne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Pe,{},[t(te,[t(I,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.velocity"),value:e.velocity,"reset-value":e.defaultVelocity,min:1,max:e.defaultVelocity,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetVelocity),suffix:"mm/s"},on:{submit:e.setVelocity}})],1),t(I,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.sqv"),value:e.squareCornerVelocity,"reset-value":e.defaultSquareCornerVelocity,min:0,max:e.defaultSquareCornerVelocity,step:.1,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetSquareCornerVelocity),suffix:"mm/s"},on:{submit:e.setSquareCornerVelocity}})],1)],1),t(te,[t(I,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.acceleration"),value:e.accel,"reset-value":e.defaultAccel,min:1,max:e.defaultAccel,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetAcceleration),suffix:"mm/s²"},on:{submit:e.setAccel}})],1),t(I,{attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[e.minimumCruiseRatio!=null?t(Ft,{attrs:{label:e.$t("app.general.label.minimum_cruise_ratio"),value:e.minimumCruiseRatio,"reset-value":e.defaultMinimumCruiseRatio,min:0,max:.99,step:.01,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetMinimumCruiseRatio)},on:{submit:e.setMinimumCruiseRatio}}):e.accelToDecel!=null?t(Ft,{attrs:{label:e.$t("app.general.label.accel_to_decel"),value:e.accelToDecel,"reset-value":e.defaultAccelToDecel,min:1,max:e.defaultAccelToDecel,disabled:!e.klippyReady,overridable:"",locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetAccelToDecel),suffix:"mm/s²"},on:{submit:e.setAccelToDecel}}):e._e()],1)],1)],1)],1)},ine=[],ane=A(A_,nne,ine,!1,null,null);const one=ane.exports;var lne=Object.defineProperty,cne=Object.getOwnPropertyDescriptor,une=(r,e,t,s)=>{for(var n=s>1?void 0:s?cne(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&lne(e,t,n),n};let E_=class extends b{};E_=une([L({components:{PrinterLimits:one}})],E_);var dne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.limits"),icon:"$limits",draggable:"","layout-path":"dashboard.printer-limits-card"}},[t("printer-limits")],1)},pne=[],hne=A(E_,dne,pne,!1,null,null);const fne=hne.exports;var mne=Object.defineProperty,gne=Object.getOwnPropertyDescriptor,vne=(r,e,t,s)=>{for(var n=s>1?void 0:s?gne(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&mne(e,t,n),n};let O_=class extends Z(X,lt){get retract_length(){return this.$store.state.printer.printer.firmware_retraction.retract_length}get retract_length_max(){return this.defaults.retract_length<=0?15:Math.round(this.defaults.retract_length*2*100)/100}get retract_speed(){return this.$store.state.printer.printer.firmware_retraction.retract_speed}get retract_speed_max(){return this.defaults.retract_speed<=0?100:Math.round(this.defaults.retract_speed*2)}get unretract_speed(){return this.$store.state.printer.printer.firmware_retraction.unretract_speed}get unretract_speed_max(){return this.defaults.unretract_speed<=0?100:Math.round(this.defaults.unretract_speed*2)}get unretract_extra_length(){return this.$store.state.printer.printer.firmware_retraction.unretract_extra_length}get unretract_extra_length_max(){return this.defaults.unretract_extra_length<=0?15:Math.round(this.defaults.unretract_extra_length*2*100)/100}get defaults(){return this.$store.getters["printer/getPrinterSettings"]("firmware_retraction")||{}}setRetractLength(e){this.sendGcode(`SET_RETRACTION RETRACT_LENGTH=${e}`,this.$waits.onSetRetractLength)}setRetractSpeed(e){this.sendGcode(`SET_RETRACTION RETRACT_SPEED=${e}`,this.$waits.onSetRetractSpeed)}setUnretractSpeed(e){this.sendGcode(`SET_RETRACTION UNRETRACT_SPEED=${e}`,this.$waits.onSetUnretractSpeed)}setUnRetractExtraLength(e){this.sendGcode(`SET_RETRACTION UNRETRACT_EXTRA_LENGTH=${e}`,this.$waits.onSetUnretractExtraLength)}};O_=vne([L({})],O_);var _ne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Pe,[t(te,{staticClass:"my-0 mb-4"},[t(I,{staticClass:"py-0",attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.retract_length"),suffix:"mm",value:e.retract_length,"reset-value":e.defaults.retract_length,min:0,max:e.retract_length_max,step:.01,overridable:"",disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetRetractLength)},on:{submit:e.setRetractLength}})],1),t(I,{staticClass:"py-0",attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.unretract_extra_length"),suffix:"mm",value:e.unretract_extra_length,"reset-value":e.defaults.unretract_extra_length,min:0,max:e.unretract_extra_length_max,step:.01,overridable:"",disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetUnretractExtraLength)},on:{submit:e.setUnRetractExtraLength}})],1)],1),t(te,{staticClass:"my-0 mb-4"},[t(I,{staticClass:"py-0",attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.retract_speed"),suffix:"mm/s",value:e.retract_speed,"reset-value":e.defaults.retract_speed,min:0,step:1,max:e.retract_speed_max,overridable:"",disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetRetractSpeed)},on:{submit:e.setRetractSpeed}})],1),t(I,{staticClass:"py-0",attrs:{cols:"12",sm:"6",md:"12",lg:"6"}},[t(Ft,{attrs:{label:e.$t("app.general.label.unretract_speed"),suffix:"mm/s",value:e.unretract_speed,"reset-value":e.defaults.unretract_speed,min:0,step:1,max:e.unretract_speed_max,overridable:"",disabled:!e.klippyReady,locked:e.isMobileViewport,loading:e.hasWait(e.$waits.onSetUnretractSpeed)},on:{submit:e.setUnretractSpeed}})],1)],1)],1)},yne=[],bne=A(O_,_ne,yne,!1,null,null);const $ne=bne.exports;var Sne=Object.defineProperty,wne=Object.getOwnPropertyDescriptor,xne=(r,e,t,s)=>{for(var n=s>1?void 0:s?wne(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Sne(e,t,n),n};let T_=class extends b{};T_=xne([L({components:{Retract:$ne}})],T_);var Cne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.retract"),icon:"$retract",draggable:"","layout-path":"dashboard.retract-card"}},[t("retract")],1)},Pne=[],Lne=A(T_,Cne,Pne,!1,null,null);const Ane=Lne.exports;var Ene=Object.defineProperty,One=Object.getOwnPropertyDescriptor,io=(r,e,t,s)=>{for(var n=s>1?void 0:s?One(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ene(e,t,n),n};let Gn=class extends Z(lt){constructor(){super(...arguments);f(this,"data");f(this,"graphics");f(this,"options");f(this,"height");f(this,"chart")}get flatSurface(){return this.$store.state.mesh.flatSurface}get bedSize(){return this.$store.getters["printer/getBedSize"]}onFlatSurfaceChange(t){const s=t?"legendSelect":"legendUnSelect";this.chart.dispatchAction({type:s,name:"mesh_matrix_flat"}),this.chart.dispatchAction({type:s,name:"probed_matrix_flat"})}beforeDestroy(){typeof window>"u"||this.chart.dispose()}get opts(){var p,h,m,g;const t=this.$store.state.config.uiSettings.theme.isDark,s=t?"rgba(255,255,255,0.65)":"rgba(0,0,0,0.45)",n=this.isMobileViewport?14:16,i=t?"rgba(10,10,10,0.90)":"rgba(255,255,255,0.90)",a=.1,o=t?"#ffffff":"#000000",l={itemWidth:this.isMobileViewport?15:25,itemHeight:this.isMobileViewport?140:280},c={nameTextStyle:{color:s},axisPointer:{lineStyle:{color:o,opacity:.65},label:{margin:16,color:s,fontSize:n}},axisTick:{lineStyle:{color:o,opacity:a}},axisLine:{lineStyle:{color:o,opacity:a,width:2}},axisLabel:{textStyle:{color:s,fontSize:n}},splitLine:{lineStyle:{color:o,opacity:a}}},u=Pj(this.graphics,v=>{switch(v.type){case"text":return{...v,style:{...v.style,fill:s,fontSize:n}};default:return}}),d={legend:{show:!1},textStyle:{fontFamily:"Roboto"},darkMode:t,tooltip:{backgroundColor:i,borderColor:i,textStyle:{color:s,fontSize:18},formatter:v=>{let y="";return v.value&&Array.isArray(v.value)&&(y+=`
<div>
<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:${v.color};"></span>
<span style="font-size:16px;color:${s};font-weight:400;margin-left:2px">
${this.$filters.prettyCase(v.seriesName)}
</span>
<div style="clear: both"></div>
<span style="font-size:16px;color:${s};font-weight:400;margin-left:2px">
x: ${v.value[0].toFixed(4)}
</span>
<div style="clear: both"></div>
<span style="font-size:16px;color:${s};font-weight:400;margin-left:2px">
y: ${v.value[1].toFixed(4)}
</span>
<div style="clear: both"></div>
<span style="font-size:16px;color:${s};font-weight:400;margin-left:2px">
z: ${v.value[2].toFixed(4)}
</span>
<div style="clear: both"></div>
</div>
`),y}},visualMap:{type:"continuous",textStyle:{color:s,fontSize:n},realtime:!0,calculable:!0,show:!0,top:0,right:"auto",bottom:"auto",left:0,dimension:2,precision:4,inRange:{color:["#313695","#4575b4","#74add1","#abd9e9","#e0f3f8","#ffffbf","#fee090","#fdae61","#f46d43","#d73027","#a50026"]},...l},xAxis3D:{type:"value",min:(p=this.bedSize)==null?void 0:p.minX,max:(h=this.bedSize)==null?void 0:h.maxX,...c},yAxis3D:{type:"value",min:(m=this.bedSize)==null?void 0:m.minY,max:(g=this.bedSize)==null?void 0:g.maxY,...c},zAxis3D:{type:"value",min:-.5,max:.5,...c},grid3D:{viewControl:{rotateSensitivity:1.8,zoomSensitivity:2,rotateMouseButton:"left",panMouseButton:"right"}},graphic:u,series:[...this.data]};return X3(d,this.options),d}async copyImage(){const s=await(await fetch(this.chart.getDataURL({type:"png",backgroundColor:"#262629"}))).blob(),n=[new ClipboardItem({"image/png":s})];await navigator.clipboard.write(n)}};io([$({type:Array,required:!0})],Gn.prototype,"data",2);io([$({type:Array,default:()=>[]})],Gn.prototype,"graphics",2);io([$({type:Object,default:()=>{}})],Gn.prototype,"options",2);io([$({type:String,default:"100%"})],Gn.prototype,"height",2);io([ke("chart")],Gn.prototype,"chart",2);io([Ae("flatSurface")],Gn.prototype,"onFlatSurfaceChange",1);Gn=io([L({})],Gn);var Tne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"chart",style:{height:e.height}},[t("e-chart",{ref:"chart",attrs:{option:e.opts,"update-options":{notMerge:!1},"init-options":{renderer:"canvas"},autoresize:""}})],1)},kne=[],Dne=A(Gn,Tne,kne,!1,null,"be83c234");const Mne=Dne.exports;var Rne=Object.defineProperty,Ine=Object.getOwnPropertyDescriptor,Zb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ine(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Rne(e,t,n),n};let Lu=class extends Z(X,Ut,lt){constructor(){super(...arguments);f(this,"fullscreen");f(this,"bedMeshChart")}get hasMeshLoaded(){const t=this.mesh,s=this.matrix;return t&&t[s]&&t[s].coordinates&&t[s].coordinates.length>0}get options(){const t=this.scale/2,s=this.boxScale/2;let n=-Math.abs(t-this.mesh[this.matrix].min),i=t+this.mesh[this.matrix].max;this.scale===0&&(n=this.mesh[this.matrix].min,i=this.mesh[this.matrix].max);const a=-Math.abs(this.mesh[this.matrix].mid-s),o=this.mesh[this.matrix].mid+s;return{legend:{show:!1,selected:this.series.reduce((u,d)=>Object.assign(u,{[d.name]:!d.name.endsWith("_flat")||this.flatSurface&&d.name.startsWith(this.matrix)}),Object.assign({}))},visualMap:{min:n,max:i,dimension:2,seriesIndex:0},zAxis3D:{min:a,max:o}}}get series(){const t=this.matrix,s=this.wireframe;return[{type:"surface",name:t,shading:"color",wireframe:{show:s},data:this.mesh[t].coordinates,dataShape:this.mesh[t].dimensions},this.createFlatSeries("probed_matrix_flat"),this.createFlatSeries("mesh_matrix_flat")]}get graphics(){const{range:t}=this.mesh[this.matrix];return[{type:"text",right:10,top:0,z:100,silent:!0,style:{text:`Range: ${t.toFixed(4)}`}}]}createFlatSeries(t){const s=this.wireframe;return{type:"surface",name:t,itemStyle:{color:[.5,.5,.5,.25]},wireframe:{show:s,lineStyle:{opacity:.25,width:1,color:"#ffffff"}},data:this.mesh[t].coordinates,dataShape:this.mesh[t].dimensions}}calibrate(){this.sendGcode("BED_MESH_CALIBRATE",this.$waits.onMeshCalibrate)}get matrix(){return this.$store.state.mesh.matrix}get scale(){return this.$store.state.mesh.scale}get boxScale(){return this.$store.state.mesh.boxScale}get wireframe(){return this.$store.state.mesh.wireframe}get flatSurface(){return this.$store.state.mesh.flatSurface}get mesh(){return this.$store.getters["mesh/getCurrentMeshData"]}get canCopyImage(){return typeof navigator.clipboard=="object"&&typeof navigator.clipboard.write=="function"&&typeof ClipboardItem=="function"}copyImage(){this.bedMeshChart.copyImage()}};Zb([$({type:Boolean})],Lu.prototype,"fullscreen",2);Zb([ke("chart")],Lu.prototype,"bedMeshChart",2);Lu=Zb([L({components:{BedMeshChart:Mne}})],Lu);var Fne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.bedmesh"),lazy:!1,icon:"$bedMesh",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.bed-mesh-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{small:"",loading:e.hasWait(e.$waits.onMeshCalibrate),disabled:e.printerBusy||!e.allHomed},on:{click:function(s){return e.calibrate()}}},[e._v(" "+e._s(e.$t("app.general.btn.calibrate"))+" ")]),e.canCopyImage?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:"",disabled:!e.hasMeshLoaded},on:{click:function(i){return e.copyImage()}}},"app-btn",n,!1),s),[t(w,[e._v("$screenshot")])],1)]}}],null,!1,2634604368)},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.copy_image")))])]):e._e(),e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/tune")}}},[t(w,[e._v("$fullScreen")])],1)]},proxy:!0}])},[t(Pe,[e.hasMeshLoaded?t("bed-mesh-chart",{ref:"chart",attrs:{options:e.options,data:e.series,graphics:e.graphics,height:e.isMobileViewport?"225px":"525px"}}):t("span",[e._v(e._s(e.$t("app.bedmesh.msg.not_loaded")))])],1)],1)},Hne=[],Bne=A(Lu,Fne,Hne,!1,null,null);const n7=Bne.exports;var jne=Object.defineProperty,Vne=Object.getOwnPropertyDescriptor,o1=(r,e,t,s)=>{for(var n=s>1?void 0:s?Vne(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&jne(e,t,n),n};let dl=class extends b{constructor(){super(...arguments);f(this,"disabled");f(this,"inputSlot");f(this,"hasFocus",!1)}onHasFocusChanged(e){e?this.$emit("focus"):this.$emit("blur")}focus(){this.inputSlot.focus()}};o1([$({type:Boolean})],dl.prototype,"disabled",2);o1([ke("input-slot")],dl.prototype,"inputSlot",2);o1([Ae("hasFocus")],dl.prototype,"onHasFocusChanged",1);dl=o1([L({})],dl);var Nne=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{on:{focusin:function(s){e.hasFocus=!0},focusout:function(s){e.hasFocus=!1}}},[t("div",{staticClass:"v-input v-input--hide-details v-text-field v-text-field--enclosed v-text-field--outlined",class:{"v-input--is-focused":e.hasFocus,"v-input--is-disabled":e.disabled,[e.$vuetify.theme.dark?"theme--dark":"theme--light"]:!0}},[t("div",{staticClass:"v-input__control"},[t("div",{ref:"input-slot",staticClass:"v-input__slot",attrs:{tabindex:e.disabled?void 0:0}},[e._t("default"),t("fieldset",{class:{"primary--text":e.hasFocus},attrs:{"aria-hidden":"true"}})],2)])])])},zne=[],Une=A(dl,Nne,zne,!1,null,"56210b9f");const Wne=Une.exports;var l1={exports:{}};l1.exports=i7;l1.exports.addWheelListener=i7;l1.exports.removeWheelListener=Gne;function i7(r,e,t){r.addEventListener("wheel",e,t)}function Gne(r,e,t){r.removeEventListener("wheel",e,t)}var qne=l1.exports,c1={exports:{}},Zne=4,Yne=.001,Kne=1e-7,Xne=10,kc=11,_p=1/(kc-1),Qne=typeof Float32Array=="function";function a7(r,e){return 1-3*e+3*r}function o7(r,e){return 3*e-6*r}function l7(r){return 3*r}function gf(r,e,t){return((a7(e,t)*r+o7(e,t))*r+l7(e))*r}function c7(r,e,t){return 3*a7(e,t)*r*r+2*o7(e,t)*r+l7(e)}function Jne(r,e,t,s,n){var i,a,o=0;do a=e+(t-e)/2,i=gf(a,s,n)-r,i>0?t=a:e=a;while(Math.abs(i)>Kne&&++o<Xne);return a}function eie(r,e,t,s){for(var n=0;n<Zne;++n){var i=c7(e,t,s);if(i===0)return e;var a=gf(e,t,s)-r;e-=a/i}return e}function tie(r){return r}var rie=function(e,t,s,n){if(!(0<=e&&e<=1&&0<=s&&s<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&s===n)return tie;for(var i=Qne?new Float32Array(kc):new Array(kc),a=0;a<kc;++a)i[a]=gf(a*_p,e,s);function o(l){for(var c=0,u=1,d=kc-1;u!==d&&i[u]<=l;++u)c+=_p;--u;var p=(l-i[u])/(i[u+1]-i[u]),h=c+p*_p,m=c7(h,e,s);return m>=Yne?eie(l,h,e,s):m===0?h:Jne(l,c,c+_p,e,s)}return function(c){return c===0?0:c===1?1:gf(o(c),t,n)}},mc=rie,Zw={ease:mc(.25,.1,.25,1),easeIn:mc(.42,0,1,1),easeOut:mc(0,0,.58,1),easeInOut:mc(.42,0,.58,1),linear:mc(0,0,1,1)};c1.exports=sie;c1.exports.makeAggregateRaf=u7;c1.exports.sharedScheduler=u7();function sie(r,e,t){var s=Object.create(null),n=Object.create(null);t=t||{};var i=typeof t.easing=="function"?t.easing:Zw[t.easing];i||(t.easing&&console.warn("Unknown easing function in amator: "+t.easing),i=Zw.ease);var a=typeof t.step=="function"?t.step:Yw,o=typeof t.done=="function"?t.done:Yw,l=nie(t.scheduler),c=Object.keys(e);c.forEach(function(y){s[y]=r[y],n[y]=e[y]-r[y]});var u=typeof t.duration=="number"?t.duration:400,d=Math.max(1,u*.06),p,h=0;return p=l.next(g),{cancel:m};function m(){l.cancel(p),p=0}function g(){var y=i(h/d);h+=1,v(y),h<=d?(p=l.next(g),a(r)):(p=0,setTimeout(function(){o(r)},0))}function v(y){c.forEach(function(C){r[C]=n[C]*y+s[C]})}}function Yw(){}function nie(r){if(!r){var e=typeof window<"u"&&window.requestAnimationFrame;return e?iie():aie()}if(typeof r.next!="function")throw new Error("Scheduler is supposed to have next(cb) function");if(typeof r.cancel!="function")throw new Error("Scheduler is supposed to have cancel(handle) function");return r}function iie(){return{next:window.requestAnimationFrame.bind(window),cancel:window.cancelAnimationFrame.bind(window)}}function aie(){return{next:function(r){return setTimeout(r,1e3/60)},cancel:function(r){return clearTimeout(r)}}}function u7(){var r=new Set,e=new Set,t=0;return{next:n,cancel:n,clearAll:s};function s(){r.clear(),e.clear(),cancelAnimationFrame(t),t=0}function n(o){e.add(o),i()}function i(){t||(t=requestAnimationFrame(a))}function a(){t=0;var o=e;e=r,r=o,r.forEach(function(l){l()}),r.clear()}}var oie=c1.exports,lie=function(e){uie(e);var t=cie(e);return e.on=t.on,e.off=t.off,e.fire=t.fire,e};function cie(r){var e=Object.create(null);return{on:function(t,s,n){if(typeof s!="function")throw new Error("callback is expected to be a function");var i=e[t];return i||(i=e[t]=[]),i.push({callback:s,ctx:n}),r},off:function(t,s){var n=typeof t>"u";if(n)return e=Object.create(null),r;if(e[t]){var i=typeof s!="function";if(i)delete e[t];else for(var a=e[t],o=0;o<a.length;++o)a[o].callback===s&&a.splice(o,1)}return r},fire:function(t){var s=e[t];if(!s)return r;var n;arguments.length>1&&(n=Array.prototype.splice.call(arguments,1));for(var i=0;i<s.length;++i){var a=s[i];a.callback.apply(a.ctx,n)}return r}}}function uie(r){if(!r)throw new Error("Eventify cannot use falsy object as events subject");for(var e=["on","fire","off"],t=0;t<e.length;++t)if(r.hasOwnProperty(e[t]))throw new Error("Subject cannot be eventified, since it already has property '"+e[t]+"'")}var die=pie;function pie(r,e,t){typeof t!="object"&&(t={});var s=typeof t.minVelocity=="number"?t.minVelocity:5,n=typeof t.amplitude=="number"?t.amplitude:.25,i=typeof t.cancelAnimationFrame=="function"?t.cancelAnimationFrame:hie(),a=typeof t.requestAnimationFrame=="function"?t.requestAnimationFrame:fie(),o,l,c=342,u,d,p,h,m,g,v,y;return{start:x,stop:E,cancel:C};function C(){i(u),i(y)}function x(){o=r(),h=v=d=m=0,l=new Date,i(u),i(y),u=a(S)}function S(){var K=Date.now(),le=K-l;l=K;var ue=r(),ie=ue.x-o.x,fe=ue.y-o.y;o=ue;var k=1e3/(1+le);d=.8*ie*k+.2*d,m=.8*fe*k+.2*m,u=a(S)}function E(){i(u),i(y);var K=r();p=K.x,g=K.y,l=Date.now(),(d<-s||d>s)&&(h=n*d,p+=h),(m<-s||m>s)&&(v=n*m,g+=v),y=a(G)}function G(){var K=Date.now()-l,le=!1,ue=0,ie=0;h&&(ue=-h*Math.exp(-K/c),ue>.5||ue<-.5?le=!0:ue=h=0),v&&(ie=-v*Math.exp(-K/c),ie>.5||ie<-.5?le=!0:ie=v=0),le&&(e(p+ue,g+ie),y=a(G))}}function hie(){return typeof cancelAnimationFrame=="function"?cancelAnimationFrame:clearTimeout}function fie(){return typeof requestAnimationFrame=="function"?requestAnimationFrame:function(r){return setTimeout(r,16)}}var mie=gie;function gie(r){if(r)return{capture:Xw,release:Xw};var e,t,s,n=!1;return{capture:i,release:a};function i(o){n=!0,t=window.document.onselectstart,s=window.document.ondragstart,window.document.onselectstart=Kw,e=o,e.ondragstart=Kw}function a(){n&&(n=!1,window.document.onselectstart=t,e&&(e.ondragstart=s))}}function Kw(r){return r.stopPropagation(),!1}function Xw(){}var gg,Qw;function vie(){if(Qw)return gg;Qw=1,gg=r;function r(){this.x=0,this.y=0,this.scale=1}return gg}var yp={exports:{}},Jw;function _ie(){if(Jw)return yp.exports;Jw=1,yp.exports=r,yp.exports.canAttach=e;function r(t,s){if(!e(t))throw new Error("svg element is required for svg.panzoom to work");var n=t.ownerSVGElement;if(!n)throw new Error("Do not apply panzoom to the root <svg> element. Use its child instead (e.g. <g></g>). As of March 2016 only FireFox supported transform on the root element");s.disableKeyboardInteraction||n.setAttribute("tabindex",0);var i={getBBox:o,getScreenCTM:l,getOwner:a,applyTransform:u,initTransform:c};return i;function a(){return n}function o(){var d=t.getBBox();return{left:d.x,top:d.y,width:d.width,height:d.height}}function l(){var d=n.getCTM();return d||n.getScreenCTM()}function c(d){var p=t.getCTM();p===null&&(p=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGMatrix()),d.x=p.e,d.y=p.f,d.scale=p.a,n.removeAttributeNS(null,"viewBox")}function u(d){t.setAttribute("transform","matrix("+d.scale+" 0 0 "+d.scale+" "+d.x+" "+d.y+")")}}function e(t){return t&&t.ownerSVGElement&&t.getCTM}return yp.exports}var bp={exports:{}},e5;function yie(){if(e5)return bp.exports;e5=1,bp.exports=r,bp.exports.canAttach=e;function r(t,s){var n=e(t);if(!n)throw new Error("panzoom requires DOM element to be attached to the DOM tree");var i=t.parentElement;t.scrollTop=0,s.disableKeyboardInteraction||i.setAttribute("tabindex",0);var a={getBBox:l,getOwner:o,applyTransform:c};return a;function o(){return i}function l(){return{left:0,top:0,width:t.clientWidth,height:t.clientHeight}}function c(u){t.style.transformOrigin="0 0 0",t.style.transform="matrix("+u.scale+", 0, 0, "+u.scale+", "+u.x+", "+u.y+")"}}function e(t){return t&&t.parentElement&&t.style}return bp.exports}var t5=qne,vg=oie,bie=lie,$ie=die,d7=mie,Sie=d7(),wie=d7(!0),xie=vie(),r5=_ie(),s5=yie(),Cie=1,Pie=1.75,n5=300,i5=200,Lie=p7;function p7(r,e){e=e||{};var t=e.controller;if(t||(r5.canAttach(r)?t=r5(r,e):s5.canAttach(r)&&(t=s5(r,e))),!t)throw new Error("Cannot create panzoom for the current type of dom element");var s=t.getOwner(),n={x:0,y:0},i=!1,a=new xie;t.initTransform&&t.initTransform(a);var o=typeof e.filterKey=="function"?e.filterKey:No,l=typeof e.pinchSpeed=="number"?e.pinchSpeed:1,c=e.bounds,u=typeof e.maxZoom=="number"?e.maxZoom:Number.POSITIVE_INFINITY,d=typeof e.minZoom=="number"?e.minZoom:0,p=typeof e.boundsPadding=="number"?e.boundsPadding:.05,h=typeof e.zoomDoubleClickSpeed=="number"?e.zoomDoubleClickSpeed:Pie,m=e.beforeWheel||No,g=e.beforeMouseDown||No,v=typeof e.zoomSpeed=="number"?e.zoomSpeed:Cie,y=a5(e.transformOrigin),C=e.enableTextSelection?wie:Sie;Aie(c),e.autocenter&&zd();var x,S=0,E=0,G=0,K=null,le=new Date,ue,ie=!1,fe=!1,k,T,P,O,j,V;"smoothScroll"in e&&!e.smoothScroll?V=Eie():V=$ie(Wd,ks,e.smoothScroll);var U,N,J,Q=!1;mo();var q={dispose:ni,moveBy:Ts,moveTo:Ql,smoothMoveTo:fo,centerOn:qd,zoomTo:Ki,zoomAbs:si,smoothZoom:Yi,smoothZoomAbs:Qd,showRectangle:Or,pause:_e,resume:Re,isPaused:wt,getTransform:ei,getMinZoom:Yl,setMinZoom:An,getMaxZoom:Kl,setMaxZoom:Xl,getTransformOrigin:ti,setTransformOrigin:co,getZoomSpeed:uo,setZoomSpeed:Ud};bie(q);var Y=typeof e.initialX=="number"?e.initialX:a.x,re=typeof e.initialY=="number"?e.initialY:a.y,se=typeof e.initialZoom=="number"?e.initialZoom:a.scale;return(Y!=a.x||re!=a.y||se!=a.scale)&&si(Y,re,se),q;function _e(){go(),Q=!0}function Re(){Q&&(mo(),Q=!1)}function wt(){return Q}function Or(H){var ee=s.getBoundingClientRect(),ne=Os(ee.width,ee.height),de=H.right-H.left,Ue=H.bottom-H.top;if(!Number.isFinite(de)||!Number.isFinite(Ue))throw new Error("Invalid rectangle");var Ve=ne.x/de,it=ne.y/Ue,Bt=Math.min(Ve,it);a.x=-(H.left+de/2)*Bt+ne.x/2,a.y=-(H.top+Ue/2)*Bt+ne.y/2,a.scale=Bt}function Os(H,ee){if(t.getScreenCTM){var ne=t.getScreenCTM(),de=ne.a,Ue=ne.d,Ve=ne.e,it=ne.f;n.x=H*de-Ve,n.y=ee*Ue-it}else n.x=H,n.y=ee;return n}function zd(){var H,ee,ne=0,de=0,Ue=On();if(Ue)ne=Ue.left,de=Ue.top,H=Ue.right-Ue.left,ee=Ue.bottom-Ue.top;else{var Ve=s.getBoundingClientRect();H=Ve.width,ee=Ve.height}var it=t.getBBox();if(!(it.width===0||it.height===0)){var Bt=ee/it.height,yo=H/it.width,Xi=Math.min(yo,Bt);a.x=-(it.left+it.width/2)*Xi+H/2+ne,a.y=-(it.top+it.height/2)*Xi+ee/2+de,a.scale=Xi}}function ei(){return a}function Yl(){return d}function An(H){d=H}function Kl(){return u}function Xl(H){u=H}function ti(){return y}function co(H){y=a5(H)}function uo(){return v}function Ud(H){if(!Number.isFinite(H))throw new Error("Zoom speed should be a number");v=H}function Wd(){return{x:a.x,y:a.y}}function Ql(H,ee){a.x=H,a.y=ee,En(),Qe("pan"),ho()}function po(H,ee){Ql(a.x+H,a.y+ee)}function En(){var H=On();if(H){var ee=!1,ne=ri(),de=H.left-ne.right;return de>0&&(a.x+=de,ee=!0),de=H.right-ne.left,de<0&&(a.x+=de,ee=!0),de=H.top-ne.bottom,de>0&&(a.y+=de,ee=!0),de=H.bottom-ne.top,de<0&&(a.y+=de,ee=!0),ee}}function On(){if(c){if(typeof c=="boolean"){var H=s.getBoundingClientRect(),ee=H.width,ne=H.height;return{left:ee*p,top:ne*p,right:ee*(1-p),bottom:ne*(1-p)}}return c}}function ri(){var H=t.getBBox(),ee=Gd(H.left,H.top);return{left:ee.x,top:ee.y,right:H.width*a.scale+ee.x,bottom:H.height*a.scale+ee.y}}function Gd(H,ee){return{x:H*a.scale+a.x,y:ee*a.scale+a.y}}function ho(){i=!0,x=window.requestAnimationFrame(k1)}function Jl(H,ee,ne){if(_g(H)||_g(ee)||_g(ne))throw new Error("zoom requires valid numbers");var de=a.scale*ne;if(de<d){if(a.scale===d)return;ne=d/a.scale}if(de>u){if(a.scale===u)return;ne=u/a.scale}var Ue=Os(H,ee);if(a.x=Ue.x-ne*(Ue.x-a.x),a.y=Ue.y-ne*(Ue.y-a.y),c&&p===1&&d===1)a.scale*=ne,En();else{var Ve=En();Ve||(a.scale*=ne)}Qe("zoom"),ho()}function si(H,ee,ne){var de=ne/a.scale;Jl(H,ee,de)}function qd(H){var ee=H.ownerSVGElement;if(!ee)throw new Error("ui element is required to be within the scene");var ne=H.getBoundingClientRect(),de=ne.left+ne.width/2,Ue=ne.top+ne.height/2,Ve=ee.getBoundingClientRect(),it=Ve.width/2-de,Bt=Ve.height/2-Ue;Ts(it,Bt,!0)}function fo(H,ee){Ts(H-a.x,ee-a.y,!0)}function Ts(H,ee,ne){if(!ne)return po(H,ee);U&&U.cancel();var de={x:0,y:0},Ue={x:H,y:ee},Ve=0,it=0;U=vg(de,Ue,{step:function(Bt){po(Bt.x-Ve,Bt.y-it),Ve=Bt.x,it=Bt.y}})}function ks(H,ee){_o(),Ql(H,ee)}function ni(){go()}function mo(){s.addEventListener("mousedown",Zr,{passive:!1}),s.addEventListener("dblclick",Xd,{passive:!1}),s.addEventListener("touchstart",Rt,{passive:!1}),s.addEventListener("keydown",Zd,{passive:!1}),t5.addWheelListener(s,ic,{passive:!1}),ho()}function go(){t5.removeWheelListener(s,ic),s.removeEventListener("mousedown",Zr),s.removeEventListener("keydown",Zd),s.removeEventListener("dblclick",Xd),s.removeEventListener("touchstart",Rt),x&&(window.cancelAnimationFrame(x),x=0),V.cancel(),sc(),nc(),C.release(),oe()}function k1(){i&&Gi()}function Gi(){i=!1,t.applyTransform(a),Qe("transform"),x=0}function Zd(H){var ee=0,ne=0,de=0;if(H.keyCode===38?ne=1:H.keyCode===40?ne=-1:H.keyCode===37?ee=1:H.keyCode===39?ee=-1:H.keyCode===189||H.keyCode===109?de=1:(H.keyCode===187||H.keyCode===107)&&(de=-1),!o(H,ee,ne,de)){if(ee||ne){H.preventDefault(),H.stopPropagation();var Ue=s.getBoundingClientRect(),Ve=Math.min(Ue.width,Ue.height),it=.05,Bt=Ve*it*ee,yo=Ve*it*ne;Ts(Bt,yo)}if(de){var Xi=Se(de*100),Ve=y?oi():D1();Ki(Ve.x,Ve.y,Xi)}}}function D1(){var H=s.getBoundingClientRect();return{x:H.width/2,y:H.height/2}}function Rt(H){if(ii(H),ai(),H.touches.length===1)return Yd(H,H.touches[0]);H.touches.length===2&&(j=tc(H.touches[0],H.touches[1]),J=!0,vo())}function ii(H){e.onTouch&&!e.onTouch(H)||(H.stopPropagation(),H.preventDefault())}function M1(H){ai(),!(e.onDoubleClick&&!e.onDoubleClick(H))&&(H.preventDefault(),H.stopPropagation())}function Yd(H){E=new Date;var ee=H.touches[0],ne=Wt(ee);ue=ne;var de=Os(ne.x,ne.y);k=de.x,T=de.y,P=k,O=T,V.cancel(),vo()}function vo(){ie||(ie=!0,document.addEventListener("touchmove",ec),document.addEventListener("touchend",qi),document.addEventListener("touchcancel",qi))}function ec(H){if(H.touches.length===1){H.stopPropagation();var ee=H.touches[0],ne=Wt(ee),de=Os(ne.x,ne.y),Ue=de.x-k,Ve=de.y-T;Ue!==0&&Ve!==0&&D(),k=de.x,T=de.y,Ts(Ue,Ve)}else if(H.touches.length===2){J=!0;var it=H.touches[0],Bt=H.touches[1],yo=tc(it,Bt),Xi=1+(yo/j-1)*l,W2=Wt(it),G2=Wt(Bt);if(k=(W2.x+G2.x)/2,T=(W2.y+G2.y)/2,y){var ne=oi();k=ne.x,T=ne.y}Ki(k,T,Xi),j=yo,H.stopPropagation(),H.preventDefault()}}function ai(){G&&(clearTimeout(G),G=0)}function Kd(H){if(e.onClick){ai();var ee=k-P,ne=T-O,de=Math.sqrt(ee*ee+ne*ne);de>5||(G=setTimeout(function(){G=0,e.onClick(H)},n5))}}function qi(H){if(ai(),H.touches.length>0){var ee=Wt(H.touches[0]),ne=Os(ee.x,ee.y);k=ne.x,T=ne.y}else{var de=new Date;if(de-S<n5)if(y){var ee=oi();Yi(ee.x,ee.y,h)}else Yi(ue.x,ue.y,h);else de-E<i5&&Kd(H);S=de,oe(),nc()}}function tc(H,ee){var ne=H.clientX-ee.clientX,de=H.clientY-ee.clientY;return Math.sqrt(ne*ne+de*de)}function Xd(H){M1(H);var ee=Wt(H);y&&(ee=oi()),Yi(ee.x,ee.y,h)}function Zr(H){if(ai(),!g(H)){if(K=H,le=new Date,ie)return H.stopPropagation(),!1;var ee=H.button===1&&window.event!==null||H.button===0;if(ee){V.cancel();var ne=Wt(H),de=Os(ne.x,ne.y);return P=k=de.x,O=T=de.y,document.addEventListener("mousemove",Zi),document.addEventListener("mouseup",rc),C.capture(H.target||H.srcElement),!1}}}function Zi(H){if(!ie){D();var ee=Wt(H),ne=Os(ee.x,ee.y),de=ne.x-k,Ue=ne.y-T;k=ne.x,T=ne.y,Ts(de,Ue)}}function rc(){var H=new Date;H-le<i5&&Kd(K),C.release(),oe(),sc()}function sc(){document.removeEventListener("mousemove",Zi),document.removeEventListener("mouseup",rc),fe=!1}function nc(){document.removeEventListener("touchmove",ec),document.removeEventListener("touchend",qi),document.removeEventListener("touchcancel",qi),fe=!1,J=!1,ie=!1}function ic(H){if(!m(H)){V.cancel();var ee=H.deltaY;H.deltaMode>0&&(ee*=100);var ne=Se(ee);if(ne!==1){var de=y?oi():Wt(H);Ki(de.x,de.y,ne),H.preventDefault()}}}function Wt(H){var ee,ne,de=s.getBoundingClientRect();return ee=H.clientX-de.left,ne=H.clientY-de.top,{x:ee,y:ne}}function Yi(H,ee,ne){var de=a.scale,Ue={scale:de},Ve={scale:ne*de};V.cancel(),_o(),N=vg(Ue,Ve,{step:function(it){si(H,ee,it.scale)},done:$e})}function Qd(H,ee,ne){var de=a.scale,Ue={scale:de},Ve={scale:ne};V.cancel(),_o(),N=vg(Ue,Ve,{step:function(it){si(H,ee,it.scale)}})}function oi(){var H=s.getBoundingClientRect();return{x:H.width*y.x,y:H.height*y.y}}function Ki(H,ee,ne){return V.cancel(),_o(),Jl(H,ee,ne)}function _o(){N&&(N.cancel(),N=null)}function Se(H){var ee=Math.sign(H),ne=Math.min(.25,Math.abs(v*H/128));return 1-ee*ne}function D(){fe||(Qe("panstart"),fe=!0,V.start())}function oe(){fe&&(J||V.stop(),Qe("panend"))}function $e(){Qe("zoomend")}function Qe(H){q.fire(H,q)}}function a5(r){if(r){if(typeof r=="object")return(!Io(r.x)||!Io(r.y))&&o5(r),r;o5()}}function o5(r){throw console.error(r),new Error(["Cannot parse transform origin.","Some good examples:",' "center center" can be achieved with {x: 0.5, y: 0.5}',' "top center" can be achieved with {x: 0.5, y: 0}',' "bottom right" can be achieved with {x: 1, y: 1}'].join(`
`))}function No(){}function Aie(r){var e=typeof r;if(!(e==="undefined"||e==="boolean")){var t=Io(r.left)&&Io(r.top)&&Io(r.bottom)&&Io(r.right);if(!t)throw new Error("Bounds object is not valid. It can be: undefined, boolean (true|false) or an object {left, top, right, bottom}")}}function Io(r){return Number.isFinite(r)}function _g(r){return Number.isNaN?Number.isNaN(r):r!==r}function Eie(){return{start:No,stop:No,cancel:No}}function Oie(){if(typeof document>"u")return;var r=document.getElementsByTagName("script");if(!r)return;for(var e,t=0;t<r.length;++t){var s=r[t];if(s.src&&s.src.match(/\bpanzoom(\.min)?\.js/)){e=s;break}}if(!e)return;var n=e.getAttribute("query");if(!n)return;var i=e.getAttribute("name")||"pz",a=Date.now();o();function o(){var u=document.querySelector(n);if(!u){var d=Date.now(),p=d-a;if(p<2e3){setTimeout(o,100);return}console.error("Cannot find the panzoom element",i);return}var h=l(e);console.log(h),window[i]=p7(u,h)}function l(u){for(var d=u.attributes,p={},h=0;h<d.length;++h){var m=d[h],g=c(m);g&&(p[g.name]=g.value)}return p}function c(u){if(u.name){var d=u.name[0]==="p"&&u.name[1]==="z"&&u.name[2]==="-";if(d){var p=u.name.substr(3),h=JSON.parse(u.value);return{name:p,value:h}}}}}Oie();const Tie=Il(Lie);var kie=Object.defineProperty,Die=Object.getOwnPropertyDescriptor,h7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Die(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&kie(e,t,n),n};let vf=class extends Z(X){constructor(){super(...arguments);f(this,"shapeRendering")}get parts(){const t=this.$store.getters["parts/getParts"];return Object.keys(t)}iconClasses(t){return this.isPartExcluded(t)?"partExcluded":this.isPartCurrent(t)?"partCurrent":"partIncluded"}partSVG(t){return this.$store.getters["parts/getPartSVG"](t)}get iconCancelled(){return ou.cancelled}get iconCircle(){return ou.circle}partPos(t){return this.$store.getters["parts/getPartPos"](t)}isPartCurrent(t){return this.$store.getters["parts/getIsPartCurrent"](t)}isPartExcluded(t){return this.$store.getters["parts/getIsPartExcluded"](t)}};h7([$({type:String})],vf.prototype,"shapeRendering",2);vf=h7([L({})],vf);var Mie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("g",{attrs:{id:"parts"}},e._l(e.parts,function(s){return t("g",{key:s,staticClass:"layer",class:e.iconClasses(s)},[t("path",{staticClass:"partOutline",attrs:{d:e.partSVG(s),"shape-rendering":e.shapeRendering}}),t("svg",{staticClass:"partIcon",attrs:{width:"7",height:"7",viewBox:"0 0 24 24",x:e.partPos(s).x-7/2,y:e.partPos(s).y-7/2}},[t("path",{attrs:{d:e.iconCancelled}}),e.isPartExcluded(s)?e._e():t("path",{directives:[{name:"touch",rawName:"v-touch:tap",value:()=>e.$emit("cancel",s),expression:"() => $emit('cancel', name)",arg:"tap"}],staticClass:"hitarea",attrs:{d:e.iconCircle}})])])}),0)},Rie=[],Iie=A(vf,Mie,Rie,!1,null,"c935757d");const Fie=Iie.exports;var Hie=Object.defineProperty,Bie=Object.getOwnPropertyDescriptor,kd=(r,e,t,s)=>{for(var n=s>1?void 0:s?Bie(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Hie(e,t,n),n};let Ia=class extends Z(lt){constructor(){super(...arguments);f(this,"name");f(this,"icon");f(this,"tooltip");f(this,"disabled")}get property(){return this.$store.getters["gcodePreview/getViewerOption"](this.name)}set property(t){this.$store.commit("gcodePreview/setViewerState",{[this.name]:t})}};kd([$({type:String,required:!0})],Ia.prototype,"name",2);kd([$({type:String,required:!0})],Ia.prototype,"icon",2);kd([$({type:String,required:!0})],Ia.prototype,"tooltip",2);kd([$({type:Boolean})],Ia.prototype,"disabled",2);Ia=kd([L({})],Ia);var jie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{icon:"",small:"",tabindex:"-1",disabled:e.disabled,color:e.property?"primary":void 0,"retain-focus-on-click":!e.isMobileViewport},on:{click:function(i){e.property=!e.property}}},"v-btn",n,!1),s),[t(w,[e._v(e._s(e.icon))])],1)]}}])},[t("span",[e._v(e._s(e.tooltip))])])},Vie=[],Nie=A(Ia,jie,Vie,!1,null,null);const zie=Nie.exports;var Uie=Object.defineProperty,Wie=Object.getOwnPropertyDescriptor,ao=(r,e,t,s)=>{for(var n=s>1?void 0:s?Wie(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Uie(e,t,n),n};let qn=class extends Z(X,lt){constructor(){super(...arguments);f(this,"disabled");f(this,"progress");f(this,"layer");f(this,"container");f(this,"svg");f(this,"focused",!1);f(this,"panzoom");f(this,"panning",!1)}get themeIsDark(){return this.$store.state.config.uiSettings.theme.isDark}get filePosition(){return this.$store.state.printer.printer.virtual_sdcard.file_position}get extrusionLineWidth(){return this.getUiSetting("extrusionLineWidth")}get moveLineWidth(){return this.getUiSetting("moveLineWidth")}get retractionIconSize(){return this.getUiSetting("retractionIconSize")}get drawBackground(){return this.getUiSetting("drawBackground")}get drawOrigin(){return this.getUiSetting("drawOrigin")}get showAnimations(){return this.getUiSetting("showAnimations")}get autoZoom(){return this.getUiSetting("autoZoom")}set autoZoom(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.autoZoom",value:t,server:!0}),this.reset()}get shapeRendering(){return this.panning?"optimizeSpeed":"geometricPrecision"}get showExcludeObjects(){if(!this.klippyReady||!(this.printerPrinting||this.printerPaused))return!1;const t=this.$store.getters["gcodePreview/getFile"];if(!t)return!0;const s=this.$store.state.printer.printer.current_file;return s.filename?`${t.path}/${t.filename}`==`${s.path}/${s.filename}`:!1}get flipX(){return this.$store.state.config.uiSettings.gcodePreview.flip.horizontal}get flipY(){return this.$store.state.config.uiSettings.gcodePreview.flip.vertical}get flipTransform(){const{x:t,y:s}=this.viewBox,n=[this.flipX?-1:1,this.flipY?-1:1],i=[this.flipX?-(t.max+t.min):0,this.flipY?-(s.max+s.min):0];return`scale(${n.join()}) translate(${i.join()})`}get hasRoundBed(){return this.$store.getters["printer/getHasRoundBed"]}get bedSize(){return this.$store.getters["printer/getBedSize"]??{minX:0,minY:0,maxX:100,maxY:100}}get viewBox(){const t=this.bounds;if(this.autoZoom){const n=Math.min(t.x.max-t.x.min,t.y.max-t.y.min)*.05;return{x:{min:t.x.min-n,max:t.x.max+n},y:{min:t.y.min-n,max:t.y.max+n}}}const s=this.bedSize;return{x:{min:Math.min(s.minX,t.x.min)-2,max:Math.max(s.maxX,t.x.max)+2},y:{min:Math.min(s.minY,t.y.min)-2,max:Math.max(s.maxY,t.y.max)+2}}}get svgViewBox(){const{x:t,y:s}=this.viewBox;return`${t.min} ${s.min} ${t.max-t.min} ${s.max-s.min}`}get defaultLayerPaths(){return{extrusions:"",moves:"",retractions:[],extrusionStarts:[],toolhead:{x:0,y:0}}}get svgPathCurrent(){if(this.disabled)return this.defaultLayerPaths;const t=this.$store.getters["gcodePreview/getLayers"][this.layer];if(this.getViewerOption("followProgress")){const s=this.$store.getters["gcodePreview/getMoveIndexByFilePosition"](this.filePosition);return this.$store.getters["gcodePreview/getPaths"]((t==null?void 0:t.move)??0,s)}return this.$store.getters["gcodePreview/getPaths"]((t==null?void 0:t.move)??0,this.progress)}get svgPathActive(){return this.disabled?this.defaultLayerPaths:this.$store.getters["gcodePreview/getLayerPaths"](this.layer)}get svgPathPrevious(){return this.disabled||this.layer<=0?this.defaultLayerPaths:this.$store.getters["gcodePreview/getLayerPaths"](this.layer-1)}get svgPathNext(){const t=this.$store.getters["gcodePreview/getLayers"];return this.disabled||this.layer>=t.length?this.defaultLayerPaths:this.$store.getters["gcodePreview/getLayerPaths"](this.layer+1)}get svgPathParts(){return this.$store.getters["gcodePreview/getPartPaths"]}get file(){return this.$store.getters["gcodePreview/getFile"]}get bounds(){return this.$store.getters["gcodePreview/getBounds"]}onFocusedChanged(t){this.panzoom&&!this.isMobileViewport&&(t?this.panzoom.resume():this.panzoom.pause())}mounted(){this.panzoom=Tie(this.svg,{maxZoom:20,minZoom:.95,smoothScroll:this.showAnimations,beforeMouseDown:()=>this.disabled,beforeWheel:()=>!this.focused||this.disabled,onClick:()=>this.disabled,onDoubleClick:()=>this.disabled}),this.panzoom.on("panstart",()=>{this.panning=!0}),this.panzoom.on("panend",()=>{this.panning=!1})}beforeDestroy(){var t;(t=this.panzoom)==null||t.dispose()}reset(){var t,s;(t=this.panzoom)==null||t.moveTo(0,0),(s=this.panzoom)==null||s.zoomAbs(0,0,1)}keepFocus(){this.isMobileViewport||this.container.focus()}getViewerOption(t){return this.$store.getters["gcodePreview/getViewerOption"](t)}getUiSetting(t){return this.$store.state.config.uiSettings.gcodePreview[t]}};ao([$({type:Boolean})],qn.prototype,"disabled",2);ao([$({type:Number,default:1/0})],qn.prototype,"progress",2);ao([$({type:Number,default:0})],qn.prototype,"layer",2);ao([ke("container")],qn.prototype,"container",2);ao([ke("svg")],qn.prototype,"svg",2);ao([Ae("focused")],qn.prototype,"onFocusedChanged",1);qn=ao([L({components:{ExcludeObjects:Fie,GcodePreviewButton:zie}})],qn);var Gie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Wne,{ref:"container",attrs:{disabled:e.disabled},on:{focus:function(s){e.focused=!0},blur:function(s){e.focused=!1}}},[t("svg",{ref:"svg",attrs:{viewBox:e.svgViewBox,height:"100%",width:"100%",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"}},[t("defs",[t("pattern",{attrs:{id:"backgroundPattern",patternUnits:"userSpaceOnUse",width:"10",height:"10"}},[t("rect",{attrs:{width:"10",height:"10","stroke-width":".1",stroke:e.themeIsDark?"black":"white",fill:e.themeIsDark?"#555":"lightgrey","fill-opacity":e.disabled?.6:void 0}})]),e.hasRoundBed?t("clipPath",{attrs:{id:"clipCircle"}},[t("circle",{attrs:{r:e.bedSize.maxX,cx:"0",cy:"0"}})]):e._e(),t("svg",{attrs:{id:"retraction",width:e.retractionIconSize,height:e.retractionIconSize,viewBox:"0 0 10 10"}},[e.flipY?t("path",{attrs:{d:"M 0,0 L 5,10 L 10,0 Z",fill:"red","fill-opacity":"0.9","shape-rendering":e.shapeRendering}}):t("path",{attrs:{d:"M 10,10 L 5,0 L 0,10 Z",fill:"red","fill-opacity":"0.9","shape-rendering":e.shapeRendering}})]),t("svg",{attrs:{id:"extrusionStart",width:e.retractionIconSize,height:e.retractionIconSize,viewBox:"0 0 10 10"}},[e.flipY?t("path",{attrs:{d:"M 10,10 L 5,0 L 0,10 Z",fill:"green","fill-opacity":"0.9","shape-rendering":e.shapeRendering}}):t("path",{attrs:{d:"M 0,0 L 5,10 L 10,0 Z",fill:"green","fill-opacity":"0.9","shape-rendering":e.shapeRendering}})]),t("svg",{attrs:{id:"origin",width:"12",height:"12",viewBox:"-2 -2 12 12"}},[t("path",{attrs:{fill:"#ff0000","fill-opacity":"0.4",d:"M 8.5859375 -1.4140625 L 8.2324219 -1.0605469 L 9.0429688 -0.25 L 0.96875 -0.25 A 1 1 0 0 1 1 0 A 1 1 0 0 1 0.96679688 0.25 L 9.0429688 0.25 L 8.2324219 1.0605469 L 8.5859375 1.4140625 L 10 0 L 8.5859375 -1.4140625 z ","shape-rendering":e.shapeRendering}}),t("path",{attrs:{fill:"#00ff00","fill-opacity":"0.4",d:"M -0.25 0.96679688 L -0.25 9.0429688 L -1.0605469 8.2324219 L -1.4140625 8.5859375 L 0 10 L 1.4140625 8.5859375 L 1.0605469 8.2324219 L 0.25 9.0429688 L 0.25 0.96679688 A 1 1 0 0 1 0 1 A 1 1 0 0 1 -0.25 0.96679688 z ","shape-rendering":e.shapeRendering}}),t("circle",{attrs:{fill:"#0000ff","fill-opacity":"0.4",cx:"0",cy:"0",r:"1","shape-rendering":e.shapeRendering}})])]),t("g",{attrs:{transform:e.flipTransform}},[e.drawBackground?t("g",{attrs:{id:"background"}},[t("rect",{attrs:{height:e.bedSize.maxY-e.bedSize.minY,width:e.bedSize.maxX-e.bedSize.minX,fill:"url(#backgroundPattern)","clip-path":e.hasRoundBed?"url(#clipCircle)":void 0,x:e.bedSize.minX,y:e.bedSize.minY}})]):e._e(),e.drawOrigin?t("g",[t("use",{attrs:{"xlink:href":"#origin",x:"-2",y:"-2"}})]):e._e(),e.getViewerOption("showParts")&&!e.showExcludeObjects&&e.svgPathParts.length>0?t("g",{attrs:{id:"parts"}},e._l(e.svgPathParts,function(s,n){return t("path",{key:`part-${n+1}`,attrs:{"fill-opacity":"0.2",d:s,"shape-rendering":e.shapeRendering}})}),0):e._e(),e.getViewerOption("showPreviousLayer")?t("g",{staticClass:"layer",attrs:{id:"previousLayer"}},[t("path",{attrs:{stroke:e.themeIsDark?"lightgrey":"#555","stroke-width":e.extrusionLineWidth,"stroke-opacity":"0.6",d:e.svgPathPrevious.extrusions,"shape-rendering":e.shapeRendering}})]):e._e(),e.getViewerOption("showCurrentLayer")?t("g",{staticClass:"layer",attrs:{id:"activeLayer"}},[t("path",{attrs:{stroke:e.themeIsDark?"lightgrey":"#555","stroke-width":e.extrusionLineWidth,"stroke-opacity":"0.6",d:e.svgPathActive.extrusions,"shape-rendering":e.shapeRendering}})]):e._e(),t("g",{staticClass:"layer",attrs:{id:"currentLayer"}},[e.getViewerOption("showExtrusions")?t("path",{attrs:{d:e.svgPathCurrent.extrusions,stroke:e.themeIsDark?"white":"black","stroke-width":e.extrusionLineWidth,"shape-rendering":e.shapeRendering}}):e._e(),e.getViewerOption("showMoves")?t("path",{attrs:{d:e.svgPathCurrent.moves,stroke:"gray","stroke-width":e.moveLineWidth,"shape-rendering":e.shapeRendering}}):e._e(),t("circle",{attrs:{id:"toolhead",fill:"green",r:".6",cx:e.svgPathCurrent.toolhead.x,cy:e.svgPathCurrent.toolhead.y}}),e.getViewerOption("showRetractions")&&e.svgPathCurrent.retractions.length>0?t("g",{attrs:{id:"retractions"}},e._l(e.svgPathCurrent.retractions,function({x:s,y:n},i){return t("use",{key:`retraction-${i+1}`,attrs:{"xlink:href":"#retraction",x:s-e.retractionIconSize/2,y:e.flipY?n:n-e.retractionIconSize}})}),0):e._e(),e.getViewerOption("showRetractions")&&e.svgPathCurrent.extrusionStarts.length>0?t("g",{attrs:{id:"extrusionStarts"}},e._l(e.svgPathCurrent.extrusionStarts,function({x:s,y:n},i){return t("use",{key:`extrusion-start-${i+1}`,attrs:{"xlink:href":"#extrusionStart",x:s-e.retractionIconSize/2,y:e.flipY?n:n-e.retractionIconSize}})}),0):e._e()]),e.getViewerOption("showNextLayer")?t("g",{staticClass:"layer",attrs:{id:"nextLayer"}},[t("path",{attrs:{stroke:"lightgrey","stroke-opacity":"0.6",d:e.svgPathNext.extrusions,"stroke-width":e.extrusionLineWidth,"shape-rendering":e.shapeRendering}})]):e._e(),e.getViewerOption("showParts")&&e.showExcludeObjects?t("exclude-objects",{attrs:{"shape-rendering":e.shapeRendering},on:{cancel:function(s){return e.$emit("cancelObject",s)}}}):e._e()],1)]),e.file?t("div",{staticClass:"preview-options",on:{mousedown:function(s){s.stopPropagation()},mouseup:e.keepFocus,dblclick:function(s){s.stopPropagation()},touchstart:function(s){var n;(n=e.panzoom)==null||n.pause()},touchend:function(s){var n;(n=e.panzoom)==null||n.resume()}}},[t("gcode-preview-button",{attrs:{name:"followProgress",icon:"$play",tooltip:e.$t("app.gcode.label.follow_progress")}}),t("gcode-preview-button",{attrs:{name:"showPreviousLayer",icon:"$previousLayer",tooltip:e.$t("app.gcode.label.show_previous_layer")}}),t("gcode-preview-button",{attrs:{name:"showCurrentLayer",icon:"$currentLayer",tooltip:e.$t("app.gcode.label.show_current_layer")}}),t("gcode-preview-button",{attrs:{name:"showNextLayer",icon:"$nextLayer",tooltip:e.$t("app.gcode.label.show_next_layer")}}),t("gcode-preview-button",{attrs:{name:"showMoves",icon:"$moves",tooltip:e.$t("app.gcode.label.show_moves")}}),t("gcode-preview-button",{attrs:{name:"showExtrusions",icon:"$extrusions",tooltip:e.$t("app.gcode.label.show_extrusions")}}),t("gcode-preview-button",{attrs:{name:"showRetractions",icon:"$retractions",tooltip:e.$t("app.gcode.label.show_retractions")}}),t("gcode-preview-button",{attrs:{name:"showParts",icon:"$parts",tooltip:e.$t("app.gcode.label.show_parts")}}),t(Fe,{attrs:{icon:"",small:""},on:{click:function(s){e.autoZoom=!e.autoZoom}}},[t(w,[e._v(e._s(e.autoZoom?"$magnifyMinus":"$magnifyPlus"))])],1)],1):e._e(),e.file?t("div",{staticClass:"preview-name"},[e._v(" "+e._s(e.file.filename)+" ")]):e._e()])},qie=[],Zie=A(qn,Gie,qie,!1,null,"94383a15");const Yie=Zie.exports;var Kie=Object.defineProperty,Xie=Object.getOwnPropertyDescriptor,u1=(r,e,t,s)=>{for(var n=s>1?void 0:s?Xie(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Kie(e,t,n),n};let pl=class extends Z(X){constructor(){super(...arguments);f(this,"open");f(this,"progress");f(this,"file")}get percent(){return Math.floor(this.progress/this.file.size*100)}};u1([He({type:Boolean})],pl.prototype,"open",2);u1([$({type:Number})],pl.prototype,"progress",2);u1([$({type:Object})],pl.prototype,"file",2);pl=u1([L({})],pl);var Qie=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Fm,{attrs:{timeout:"-1","multi-line":"",elevation:"24",bottom:"",right:"",vertical:e.$vuetify.breakpoint.smAndDown},scopedSlots:e._u([{key:"action",fn:function({attrs:s}){return[t(M,e._b({on:{click:function(n){e.$emit("cancel"),e.open=!1}}},"app-btn",s,!1),[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")])]}}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[e.file?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.gcode.label.parsing_file"))+": "+e._s(e.file.filename)+" ")]),t(Ys,{staticClass:"mb-2",attrs:{value:e.percent,color:"primary"}}),t("table",[t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.gcode.label.parsed"))+": ")]),t("td",[e._v(" "+e._s(e.percent)+"% ("+e._s(e.$filters.getReadableFileSizeString(e.progress))+" / "+e._s(e.$filters.getReadableFileSizeString(e.file.size))+") ")])])])]:e._e()],2)},Jie=[],eae=A(pl,Qie,Jie,!1,null,null);const tae=eae.exports;var rae=Object.defineProperty,sae=Object.getOwnPropertyDescriptor,rn=(r,e,t,s)=>{for(var n=s>1?void 0:s?sae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&rae(e,t,n),n};let us=class extends Z(X,dr,lt){constructor(){super(...arguments);f(this,"menuCollapsed");f(this,"fullscreen");f(this,"preview");f(this,"currentLayer",0);f(this,"moveProgress",0);f(this,"overlay",!1)}onLayerCountChanged(){this.currentLayer=0}onFollowProgressChanged(){this.followProgress&&(this.currentLayer=this.fileProgressLayerNr,this.syncMoveProgress())}onCurrentLayerChanged(){this.followProgress&&this.currentLayer!==this.fileProgressLayerNr&&(this.followProgress=!1),this.followProgress||(this.moveProgress=this.currentLayerMoveRange.max)}onFilePositionChanged(){if(this.followProgress){this.syncMoveProgress();const t=this.$store.getters["gcodePreview/getMoves"],{min:s,max:n}=this.currentLayerMoveRange;(this.filePosition<t[s].filePosition||this.filePosition>t[n].filePosition)&&(this.currentLayer=this.fileProgressLayerNr)}}onMoveProgressChanged(){this.followProgress&&this.$store.getters["gcodePreview/getMoveIndexByFilePosition"](this.filePosition)!==this.moveProgress&&this.syncMoveProgress()}onPrintFileChanged(){this.autoLoadOnPrintStart&&this.printerFile&&["paused","printing"].includes(this.printerState)&&!this.printerFileLoaded&&this.loadCurrent()}onFileLoaded(){this.fileLoaded&&this.$store.state.config.uiSettings.gcodePreview.autoFollowOnFileLoad&&this.printerFileLoaded&&this.$store.commit("gcodePreview/setViewerState",{followProgress:!0},{root:!0})}get file(){return this.$store.getters["gcodePreview/getFile"]}get fileLoaded(){return this.$store.getters["gcodePreview/getMoves"].length>0}get parserProgress(){return this.$store.getters["gcodePreview/getParserProgress"]}get showParserProgressDialog(){return this.file!==void 0&&this.parserProgress!==this.file.size}get filePosition(){return this.$store.state.printer.printer.virtual_sdcard.file_position}get fileProgressLayerNr(){return this.$store.getters["gcodePreview/getLayerNrByFilePosition"](this.filePosition)}get layerCount(){return this.$store.getters["gcodePreview/getLayers"].length}get currentLayerHeight(){var t;return((t=this.$store.getters["gcodePreview/getLayers"][this.currentLayer])==null?void 0:t.z)??0}get followProgress(){return this.$store.getters["gcodePreview/getViewerOption"]("followProgress")}set followProgress(t){this.$store.commit("gcodePreview/setViewerState",{followProgress:t})}get currentLayerMoveRange(){var n;const t=this.$store.getters["gcodePreview/getMoves"];if(t.length===0)return{min:0,max:0};const s=this.$store.getters["gcodePreview/getLayers"];return{min:s[this.currentLayer].move,max:((n=s[this.currentLayer+1])==null?void 0:n.move)??t.length-1}}setCurrentLayer(t){t>=0&&(this.currentLayer=t)}setMoveProgress(t){t>=0&&(this.moveProgress=t)}syncMoveProgress(){this.moveProgress=this.$store.getters["gcodePreview/getMoveIndexByFilePosition"](this.filePosition)}abortParser(){this.$store.dispatch("gcodePreview/terminateParserWorker")}resetFile(){this.$store.dispatch("gcodePreview/reset")}async loadCurrent(){const t=this.printerFile;t&&this.loadFile(t)}async loadFile(t){try{const s=await this.getGcode(t),n=s==null?void 0:s.data;if(!n)return;this.$store.dispatch("gcodePreview/loadGcode",{file:t,gcode:n})}catch(s){ye.error("[GcodePreview] load",s)}}get printerFile(){const t=this.$store.state.printer.printer.current_file;if(t.filename)return t}get printerFileLoaded(){const t=this.$store.getters["gcodePreview/getFile"],s=this.printerFile;return!t||!s||t.path+"/"+t.filename!=s.path+"/"+s.filename?(this.$store.commit("gcodePreview/setViewerState",{followProgress:!1}),!1):!0}get autoLoadOnPrintStart(){return this.isMobileViewport?this.$store.state.config.uiSettings.gcodePreview.autoLoadMobileOnPrintStart:this.$store.state.config.uiSettings.gcodePreview.autoLoadOnPrintStart}async cancelObject(t){if(await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_exclude_object"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})){const n=t.toUpperCase().replace(/\s/g,"_");this.sendGcode(`EXCLUDE_OBJECT NAME=${n}`)}}get parts(){return Object.values(this.$store.getters["parts/getParts"])}handleDragOver(t){t.dataTransfer&&nl(t.dataTransfer,"jobs")&&(t.preventDefault(),t.dataTransfer.dropEffect="link",this.overlay=!0)}handleDragLeave(){this.overlay=!1}handleDrop(t){if(this.overlay=!1,t.dataTransfer&&nl(t.dataTransfer,"jobs")){const s=Fb(t.dataTransfer,"jobs"),n=s.path?`gcodes/${s.path}`:"gcodes",i=this.$store.getters["files/getFile"](n,s.items[0]);i&&this.loadFile(i)}}created(){this.followProgress?(this.currentLayer=this.fileProgressLayerNr,this.syncMoveProgress()):this.moveProgress=this.currentLayerMoveRange.min}};rn([$({type:Boolean})],us.prototype,"menuCollapsed",2);rn([$({type:Boolean})],us.prototype,"fullscreen",2);rn([ke("preview")],us.prototype,"preview",2);rn([Ae("layerCount")],us.prototype,"onLayerCountChanged",1);rn([Ae("followProgress")],us.prototype,"onFollowProgressChanged",1);rn([Ae("currentLayer")],us.prototype,"onCurrentLayerChanged",1);rn([Ae("filePosition")],us.prototype,"onFilePositionChanged",1);rn([Ae("moveProgress")],us.prototype,"onMoveProgressChanged",1);rn([Ae("printerFile")],us.prototype,"onPrintFileChanged",1);rn([Ae("fileLoaded")],us.prototype,"onFileLoaded",1);us=rn([L({components:{GcodePreviewParserProgressDialog:tae,GcodePreview:Yie}})],us);var nae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$tc("app.general.title.gcode_preview"),icon:"$cubeScan",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.gcode-preview-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(xn,{attrs:{collapsed:e.menuCollapsed}},[t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.printerFile||e.printerFileLoaded,small:""},on:{click:e.loadCurrent}},[e._v(" "+e._s(e.$t("app.gcode.btn.load_current_file"))+" ")]),e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/preview")}}},[t(w,[e._v("$fullScreen")])],1)],1)]},proxy:!0}])},[t(Pe,{class:{"no-pointer-events":e.overlay},on:{dragover:e.handleDragOver,dragenter:function(s){if(s.target!==s.currentTarget)return null;s.preventDefault()},dragleave:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDragLeave.apply(null,arguments))},drop:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDrop.apply(null,arguments))}}},[e.showParserProgressDialog?t("gcode-preview-parser-progress-dialog",{attrs:{value:e.showParserProgressDialog,progress:e.parserProgress,file:e.file},on:{cancel:e.abortParser}}):e._e(),t(te,[t(I,{attrs:{cols:"12",md:"8"}},[t(te,[t(I,[t(Ft,{attrs:{label:e.$t("app.gcode.label.layer"),value:e.fileLoaded?e.currentLayer+1:0,min:e.fileLoaded?1:0,max:e.layerCount,disabled:!e.fileLoaded},on:{input:function(s){return e.setCurrentLayer(s-1)}}})],1)],1),t(te,[t(I,[t(Ft,{attrs:{label:e.$t("app.general.label.progress"),value:e.moveProgress-e.currentLayerMoveRange.min,min:0,max:e.currentLayerMoveRange.max-e.currentLayerMoveRange.min,disabled:!e.fileLoaded},on:{input:function(s){return e.setMoveProgress(s+e.currentLayerMoveRange.min)}}})],1)],1)],1),t(I,{attrs:{cols:"12",md:"4"}},[t(te,[t(I,[t(Ie,{staticClass:"px-2 py-1 text-center stat-square justify-center",class:{"text--disabled":!e.fileLoaded},attrs:{outlined:""}},[t("div",{},[e._v(" "+e._s(e.$t("app.gcode.label.layers"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.layerCount)+" ")]),t("div",{},[e._v(" "+e._s(e.$t("app.gcode.label.current_layer_height"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.currentLayerHeight)+" ")])])],1)],1),t(te,[t(I,[t(M,{attrs:{disabled:!e.fileLoaded,block:""},on:{click:e.resetFile}},[e._v(" "+e._s(e.$t("app.general.btn.reset_file"))+" ")])],1)],1)],1)],1),t(te,[t(I,[t("gcode-preview",{ref:"preview",attrs:{layer:e.currentLayer,progress:e.moveProgress,disabled:!e.fileLoaded},on:{cancelObject:function(s){return e.cancelObject(s)}}})],1)],1),t(Gm,{attrs:{message:e.$t("app.gcode.overlay.drag_file_load"),icon:"$cubeScan",absolute:""},model:{value:e.overlay,callback:function(s){e.overlay=s},expression:"overlay"}})],1)],1)},iae=[],aae=A(us,nae,iae,!1,null,null);const f7=aae.exports;var oae=Object.defineProperty,lae=Object.getOwnPropertyDescriptor,m7=(r,e,t,s)=>{for(var n=s>1?void 0:s?lae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&oae(e,t,n),n};let _f=class extends b{constructor(){super(...arguments);f(this,"headers")}};m7([$({type:Array})],_f.prototype,"headers",2);_f=m7([L({})],_f);var cae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(qt,{attrs:{dense:""}},[t(_t),e.headers?t(Zm,{attrs:{"key-name":"job_queue",headers:e.headers}}):e._e(),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("remove-all")}}},"v-btn",n,!1),s),[t(w,[e._v("$delete")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.remove_all")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("refresh")}}},"v-btn",n,!1),s),[t(w,[e._v("$refresh")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.refresh")))])])],1)},uae=[],dae=A(_f,cae,uae,!1,null,null);const pae=dae.exports;var hae=Object.defineProperty,fae=Object.getOwnPropertyDescriptor,mae=(r,e,t,s)=>{for(var n=s>1?void 0:s?fae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&hae(e,t,n),n};let k_=class extends b{};k_=mae([L({})],k_);var gae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(qt,{attrs:{dense:""}},[t(_t),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("multiply")}}},"v-btn",n,!1),s),[t(w,[e._v("$duplicate")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.multiply")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Fe,e._g(e._b({attrs:{fab:"",small:"",text:""},on:{click:function(i){return e.$emit("remove")}}},"v-btn",n,!1),s),[t(w,[e._v("$delete")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.remove")))])])],1)},vae=[],_ae=A(k_,gae,vae,!1,null,null);const yae=_ae.exports;var bae=Object.defineProperty,$ae=Object.getOwnPropertyDescriptor,Dd=(r,e,t,s)=>{for(var n=s>1?void 0:s?$ae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&bae(e,t,n),n};let Fa=class extends Z(X){constructor(){super(...arguments);f(this,"selected");f(this,"dense");f(this,"bulkActions");f(this,"headers")}get jobs(){return this.selected=[],this.$store.state.jobQueue.queued_jobs}set jobs(t){const s=t.map(n=>n.filename);this.$store.getters["server/getIsMinApiVersion"]("1.1.0")?F.serverJobQueuePostJob(s,!0):(F.serverJobQueueDeleteJobs(["all"]),F.serverJobQueuePostJob(s))}get jobsWithKey(){const t=Date.now();return this.jobs.map(s=>({...s,key:`${s.job_id}-${t}`}))}handleRowClick(t,s,n){this.$emit("row-click",s.item,n)}handleContextMenu(t,s){this.$emit("row-click",s.item,t)}};Dd([He({type:Array,default:()=>[]})],Fa.prototype,"selected",2);Dd([$({type:Boolean})],Fa.prototype,"dense",2);Dd([$({type:Boolean})],Fa.prototype,"bulkActions",2);Dd([$({type:Array,required:!0})],Fa.prototype,"headers",2);Fa=Dd([L({})],Fa);var Sae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"file-system"},[t($m,{attrs:{options:{animation:"200",handle:".handle",group:"jobQueue",ghostClass:"ghost"},target:"tbody"},model:{value:e.jobs,callback:function(s){e.jobs=s},expression:"jobs"}},[t($d,{attrs:{"item-key":"key",headers:e.headers,items:e.jobsWithKey,dense:e.dense,loading:e.hasWait(e.$waits.onJobQueue),"show-select":e.bulkActions,"no-data-text":e.$t("app.file_system.msg.not_found"),"no-results-text":e.$t("app.file_system.msg.not_found"),"mobile-breakpoint":"0","hide-default-footer":"","disable-pagination":"","disable-sort":"","fixed-header":""},on:{"click:row":e.handleRowClick,"contextmenu:row":function(s){return s.preventDefault(),e.handleContextMenu.apply(null,arguments)}},scopedSlots:e._u([{key:"item.handle",fn:function(){return[t(w,{staticClass:"handle",attrs:{left:""}},[e._v(" $drag ")])]},proxy:!0},{key:"item.filename",fn:function({item:s}){return[t("span",[e._v(" "+e._s(s.filename)+" ")])]}},{key:"item.time_added",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatAbsoluteDateTime(s.time_added*1e3))+" ")])]}},{key:"item.time_in_queue",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.time_in_queue))+" ")])]}}],null,!0),model:{value:e.selected,callback:function(s){e.selected=s},expression:"selected"}})],1)],1)},wae=[],xae=A(Fa,Sae,wae,!1,null,"76f51027");const Cae=xae.exports;var Pae=Object.defineProperty,Lae=Object.getOwnPropertyDescriptor,Md=(r,e,t,s)=>{for(var n=s>1?void 0:s?Lae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Pae(e,t,n),n};let Ha=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"positionX");f(this,"positionY");f(this,"job")}};Md([He({type:Boolean})],Ha.prototype,"open",2);Md([$({type:Number,required:!0})],Ha.prototype,"positionX",2);Md([$({type:Number,required:!0})],Ha.prototype,"positionY",2);Md([$({type:[Object,Array],required:!0})],Ha.prototype,"job",2);Ha=Md([L({})],Ha);var Aae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{transition:"slide-y-transition","position-x":e.positionX,"position-y":e.positionY,"min-width":"180",absolute:"",right:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Mt,{attrs:{dense:""}},[t(we,{on:{click:function(s){return e.$emit("multiply",e.job)}}},[t(qe,[t(w,[e._v(" $duplicate ")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.multiply")))])],1)],1),t(we,{on:{click:function(s){return e.$emit("remove",e.job)}}},[t(qe,[t(w,[e._v(" $delete ")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.btn.remove")))])],1)],1)],1)],1)},Eae=[],Oae=A(Ha,Aae,Eae,!1,null,null);const Tae=Oae.exports;var kae=Object.defineProperty,Dae=Object.getOwnPropertyDescriptor,Yb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Dae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&kae(e,t,n),n};let Au=class extends b{constructor(){super(...arguments);f(this,"copies",1);f(this,"open");f(this,"job")}get jobCount(){return as(this.job)?this.job.length:1}handleSave(){this.$emit("save",this.job,this.copies),this.open=!1}};Yb([He({type:Boolean})],Au.prototype,"open",2);Yb([$({type:[Object,Array],required:!0})],Au.prototype,"job",2);Au=Yb([L({})],Au);var Mae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$tc("app.job_queue.title.multiply_job",e.jobCount),"max-width":"320"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(ae,{attrs:{autofocus:"",outlined:"",label:e.$t("app.job_queue.label.number_of_copies"),rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],required:""},model:{value:e.copies,callback:function(s){e.copies=e._n(s)},expression:"copies"}})],1)],1)},Rae=[],Iae=A(Au,Mae,Rae,!1,null,null);const Fae=Iae.exports;var Hae=Object.defineProperty,Bae=Object.getOwnPropertyDescriptor,Kb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Bae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Hae(e,t,n),n};let Eu=class extends b{constructor(){super(...arguments);f(this,"contextMenuState",{open:!1,x:0,y:0,job:null});f(this,"multiplyJobDialogState",{open:!1,job:null});f(this,"selected",[]);f(this,"overlay",!1);f(this,"dense");f(this,"bulkActions")}get headers(){const t=[{text:"",value:"handle",sortable:!1,width:"24px"},{text:this.$tc("app.general.table.header.name"),value:"filename",sortable:!1},{text:this.$tc("app.general.table.header.time_added"),value:"time_added",configurable:!0,sortable:!1},{text:this.$tc("app.general.table.header.time_in_queue"),value:"time_in_queue",configurable:!0,sortable:!1}];return this.$store.getters["config/getMergedTableHeaders"](t,"job_queue")}get visibleHeaders(){return this.headers.filter(t=>t.visible||t.visible===void 0)}handleRowClick(t,s){this.contextMenuState.open&&(this.contextMenuState.open=!1,s.type!=="contextmenu")||this.selected.length!==0&&!this.selected.some(n=>n.filename===t.filename)||(this.contextMenuState.x=s.clientX,this.contextMenuState.y=s.clientY,this.contextMenuState.job=this.selected.length>1?this.selected:t,this.$nextTick(()=>{this.contextMenuState.open=!0}))}async handleRemoveAll(){await this.$confirm(this.$tc("app.job_queue.msg.confirm"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&F.serverJobQueueDeleteJobs(["all"])}handleRefresh(){F.serverJobQueueStatus()}handleRemove(t){const s=Array.isArray(t)?t.map(n=>n.job_id):[t.job_id];F.serverJobQueueDeleteJobs(s)}handleMultiplyDialog(t){this.multiplyJobDialogState={open:!0,job:t}}handleMultiply(t,s){const n=Array.isArray(t)?t.map(a=>a.filename):[t.filename],i=Array.from({length:s}).map(()=>n).flat();F.serverJobQueuePostJob(i)}handleDragOver(t){t.dataTransfer&&nl(t.dataTransfer,"jobs")&&(t.preventDefault(),t.dataTransfer.dropEffect="link",this.overlay=!0)}handleDragLeave(){this.overlay=!1}handleDrop(t){if(this.overlay=!1,t.dataTransfer&&nl(t.dataTransfer,"jobs")){const s=Fb(t.dataTransfer,"jobs"),n=s.path?`${s.path}/`:"",i=s.items.map(a=>`${n}${a}`);F.serverJobQueuePostJob(i)}}};Kb([$({type:Boolean})],Eu.prototype,"dense",2);Kb([$({type:Boolean})],Eu.prototype,"bulkActions",2);Eu=Kb([L({components:{JobQueueToolbar:pae,JobQueueBulkActions:yae,JobQueueBrowser:Cae,JobQueueMultiplyJobDialog:Fae,JobQueueContextMenu:Tae}})],Eu);var jae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ie,{class:{"no-pointer-events":e.overlay},on:{dragover:e.handleDragOver,dragenter:function(s){if(s.target!==s.currentTarget)return null;s.preventDefault()},dragleave:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDragLeave.apply(null,arguments))},drop:function(s){return s.target!==s.currentTarget?null:(s.preventDefault(),e.handleDrop.apply(null,arguments))}}},[e.selected.length===0?t("job-queue-toolbar",{attrs:{headers:e.headers},on:{"remove-all":e.handleRemoveAll,refresh:e.handleRefresh}}):t("job-queue-bulk-actions",{on:{remove:function(s){return e.handleRemove(e.selected)},multiply:function(s){return e.handleMultiplyDialog(e.selected)}}}),t("job-queue-browser",{attrs:{headers:e.visibleHeaders,dense:e.dense,"bulk-actions":e.bulkActions},on:{"row-click":e.handleRowClick},model:{value:e.selected,callback:function(s){e.selected=s},expression:"selected"}}),t(Gm,{attrs:{message:e.$t("app.file_system.overlay.drag_files_enqueue"),icon:"$enqueueJob",absolute:""},model:{value:e.overlay,callback:function(s){e.overlay=s},expression:"overlay"}}),e.contextMenuState.open?t("job-queue-context-menu",{attrs:{job:e.contextMenuState.job,"position-x":e.contextMenuState.x,"position-y":e.contextMenuState.y},on:{remove:e.handleRemove,multiply:e.handleMultiplyDialog},model:{value:e.contextMenuState.open,callback:function(s){e.$set(e.contextMenuState,"open",s)},expression:"contextMenuState.open"}}):e._e(),e.multiplyJobDialogState.open?t("job-queue-multiply-job-dialog",{attrs:{job:e.multiplyJobDialogState.job},on:{save:e.handleMultiply},model:{value:e.multiplyJobDialogState.open,callback:function(s){e.$set(e.multiplyJobDialogState,"open",s)},expression:"multiplyJobDialogState.open"}}):e._e()],1)},Vae=[],Nae=A(Eu,jae,Vae,!1,null,null);const zae=Nae.exports;var Uae=Object.defineProperty,Wae=Object.getOwnPropertyDescriptor,Xb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Wae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Uae(e,t,n),n};let Ou=class extends b{constructor(){super(...arguments);f(this,"menuCollapsed");f(this,"fullscreen")}get queueStatus(){return this.$store.state.jobQueue.queue_state}handlePause(){F.serverJobQueuePause()}handleResume(){F.serverJobQueueStart()}};Xb([$({type:Boolean})],Ou.prototype,"menuCollapsed",2);Xb([$({type:Boolean})],Ou.prototype,"fullscreen",2);Ou=Xb([L({components:{JobQueue:zae}})],Ou);var Gae=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.job_queue"),icon:"$jobQueue",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.job-queue-card","help-tooltip":e.$t("app.job_queue.tooltip.help")},scopedSlots:e._u([{key:"menu",fn:function(){return[t(xn,{attrs:{collapsed:e.menuCollapsed}},[["ready","loading","starting"].includes(e.queueStatus)?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handlePause}},[t(w,{attrs:{small:"",left:""}},[e._v(" $pause ")]),t("span",[e._v(e._s(e.$t("app.general.btn.pause")))])],1):e.queueStatus==="paused"?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handleResume}},[t(w,{attrs:{small:"",left:""}},[e._v(" $resume ")]),t("span",[e._v(e._s(e.$t("app.general.btn.resume")))])],1):e._e()],1),e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/jobs")}}},[t(w,[e._v("$fullScreen")])],1)]},proxy:!0}])},[t("job-queue",{attrs:{dense:!e.fullscreen,"bulk-actions":e.fullscreen}})],1)},qae=[],Zae=A(Ou,Gae,qae,!1,null,null);const g7=Zae.exports;var Yae=Object.defineProperty,Kae=Object.getOwnPropertyDescriptor,Xae=(r,e,t,s)=>{for(var n=s>1?void 0:s?Kae(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Yae(e,t,n),n};let D_=class extends Z(X){constructor(){super(...arguments);f(this,"labelWidth","86px")}handleSelectSpool(t){this.$store.commit("spoolman/setDialogState",{show:!0,targetMacro:t==null?void 0:t.name})}get activeSpool(){return this.isConnected?this.$store.getters["spoolman/getActiveSpool"]:null}get isConnected(){return this.$store.getters["spoolman/getConnected"]}get targetableMacros(){return this.$store.getters["macros/getMacros"].filter(s=>s.variables!=null&&"spool_id"in s.variables).map(s=>({...s,name:s.name.toUpperCase()})).sort((s,n)=>s.name.localeCompare(n.name))}get remainingFilamentUnit(){return this.$store.state.config.uiSettings.spoolman.remainingFilamentUnit}getSpoolById(t){return this.$store.getters["spoolman/getSpoolById"](t)}getSpoolColor(t){return`#${(t==null?void 0:t.filament.color_hex)??(this.$vuetify.theme.dark?"fff":"000")}`}};D_=Xae([L({components:{StatusLabel:Y6}})],D_);var Qae=function(){var s;var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$tc("app.spoolman.title.spoolman"),icon:"$filament",draggable:"","layout-path":"dashboard.spoolman-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[e.targetableMacros.length?t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150"},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i,value:a}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{small:"",disabled:!e.isConnected}},"app-btn",i,!1),n),[e._v(" "+e._s(e.$t("app.spoolman.label.change_spool"))+" "),t(w,{staticClass:"ml-1",class:{"rotate-180":a},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},[t(we,{on:{click:()=>e.handleSelectSpool()}},[t(Ee,[t(xe,[e._v(" "+e._s(e.$t("app.spoolman.label.active_spool"))+" ")])],1),e.activeSpool?t(qe,[t(w,{staticClass:"spool-icon",attrs:{color:e.getSpoolColor(e.activeSpool)}},[e._v(" $filament ")])],1):e._e()],1),e._l(e.targetableMacros,function(n){var i;return[t(we,{key:n.name,class:{primary:(i=n.variables)==null?void 0:i.active},on:{click:()=>e.handleSelectSpool(n)}},[t(Ee,[t(xe,[e._v(" "+e._s(n.name)+" ")])],1),n.variables.spool_id?t(qe,[t(w,{staticClass:"spool-icon",attrs:{color:e.getSpoolColor(e.getSpoolById(n.variables.spool_id))}},[e._v(" $filament ")])],1):e._e()],1)]})],2)],1):t(M,{staticClass:"ms-1 my-1",attrs:{small:"",disabled:!e.isConnected},on:{click:()=>e.handleSelectSpool()}},[e._v(" "+e._s(e.$t("app.spoolman.label.change_spool"))+" ")])]},proxy:!0}])},[e.activeSpool&&e.$vuetify.breakpoint.lgAndDown?t(Ys,{attrs:{value:"100",height:6,color:`#${e.activeSpool.filament.color_hex??(e.$vuetify.theme.dark?"fff":"000")}`}}):e._e(),t(Pe,[t(te,[e.activeSpool?[t(I,{attrs:{"align-self":"center"}},[t("status-label",{attrs:{label:e.$t("app.spoolman.label.vendor"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(((s=e.activeSpool.filament.vendor)==null?void 0:s.name)||"-"))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.filament_name"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.filament.name))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.remaining_weight"),"label-width":e.labelWidth}},[e.remainingFilamentUnit==="weight"?t("span",[e._v(" "+e._s(e.$filters.getReadableWeightString(e.activeSpool.remaining_weight))+" "),t("small",[e._v("/ "+e._s(e.$filters.getReadableWeightString(e.activeSpool.filament.weight)))])]):e.remainingFilamentUnit==="length"?t("span",[e._v(" "+e._s(e.$filters.getReadableLengthString(e.activeSpool.remaining_length))+" "),t("small",[e._v("/ "+e._s(e.$filters.getReadableLengthString(e.$filters.convertFilamentWeightToLength(e.activeSpool.filament.weight??0,e.activeSpool.filament.density,e.activeSpool.filament.diameter))))])]):e._e()]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.location"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.location||"-"))])])],1),t(I,{attrs:{"align-self":"center"}},[t("status-label",{attrs:{label:e.$t("app.spoolman.label.material"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.filament.material||"-"))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.lot_nr"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.lot_nr||"-"))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.first_used"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.first_used?e.$filters.formatRelativeTimeToNow(e.activeSpool.first_used):e.$tc("app.setting.label.never")))])]),t("status-label",{attrs:{label:e.$t("app.spoolman.label.comment"),"label-width":e.labelWidth}},[t("span",[e._v(e._s(e.activeSpool.comment||"-"))])])],1)]:e.isConnected?t(I,{attrs:{"align-self":"center"}},[e._v(" "+e._s(e.$t("app.spoolman.msg.tracking_inactive"))+" ")]):t(I,{attrs:{"align-self":"center"}},[e._v(" "+e._s(e.$t("app.spoolman.msg.not_connected"))+" ")]),e.$vuetify.breakpoint.xl?t(I,{staticClass:"pa-0",attrs:{cols:"auto","align-self":"center"}},[e.activeSpool?t(w,{staticClass:"spool-icon",attrs:{color:e.getSpoolColor(e.activeSpool),size:"110px"}},[e._v(" $filament ")]):e.isConnected?t(w,{attrs:{size:"55px"}},[e._v(" $progressQuestion ")]):t(w,{attrs:{color:"warning",size:"55px"}},[e._v(" $warning ")])],1):e._e()],2)],1)],1)},Jae=[],eoe=A(D_,Qae,Jae,!1,null,null);const toe=eoe.exports;var roe=Object.defineProperty,soe=Object.getOwnPropertyDescriptor,noe=(r,e,t,s)=>{for(var n=s>1?void 0:s?soe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&roe(e,t,n),n};let M_=class extends b{get sensors(){return this.$store.getters["sensors/getSensors"]}};M_=noe([L({})],M_);var ioe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(kl,e._l(e.sensors,function(s){return t(te,{key:s.id},[t(I,[e._v(" "+e._s(e.$filters.prettyCase(s.friendly_name))+" "),e._l(s.values,function(n,i){return t(gr,{key:`${s.id}-${i}`,staticClass:"ml-2",attrs:{small:""}},[e._v(" "+e._s(e.$filters.prettyCase(i.toString()))+": "+e._s(Math.round(n*100)/100)+" ")])})],2)],1)}),1)},aoe=[],ooe=A(M_,ioe,aoe,!1,null,null);const loe=ooe.exports;var coe=Object.defineProperty,uoe=Object.getOwnPropertyDescriptor,doe=(r,e,t,s)=>{for(var n=s>1?void 0:s?uoe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&coe(e,t,n),n};let R_=class extends b{};R_=doe([L({components:{Sensors:loe}})],R_);var poe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.sensors.title.sensors"),icon:"$sensors",draggable:"","layout-path":"dashboard.sensors-card"}},[t("sensors")],1)},hoe=[],foe=A(R_,poe,hoe,!1,null,null);const moe=foe.exports;var goe=Object.defineProperty,voe=Object.getOwnPropertyDescriptor,v7=(r,e,t,s)=>{for(var n=s>1?void 0:s?voe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&goe(e,t,n),n};let yf=class extends Z(X){constructor(){super(...arguments);f(this,"fullscreen")}get sensors(){return this.$store.getters["printer/getRunoutSensors"]}changeSensor(t,s){this.sendGcode(`SET_FILAMENT_SENSOR SENSOR=${t.name} ENABLE=${+s}`)}};v7([$({type:Boolean})],yf.prototype,"fullscreen",2);yf=v7([L({})],yf);var _oe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.runout_sensors"),icon:"$printer3dNozzleAlert",draggable:!e.fullscreen,collapsable:!e.fullscreen,"layout-path":"dashboard.runout-sensors-card"},scopedSlots:e._u([{key:"menu",fn:function(){return[e.fullscreen?e._e():t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(s){return e.$filters.routeTo(e.$router,"/tune")}}},[t(w,[e._v("$fullScreen")])],1)]},proxy:!0}])},[t(Mt,e._l(e.sensors,function(s){return t(we,{key:s.name},[t(Ee,[t(xe,[e._v(e._s(s.prettyName))])],1),t(qe,[s.filament_detected?t(w,{attrs:{color:"success"}},[e._v(" $checkedCircle ")]):t(w,{attrs:{color:"warning"}},[e._v(" $alertCircle ")])],1),t(ir,[t(Ce,{attrs:{"input-value":s.enabled},on:{change:function(n){return e.changeSensor(s,n)}}})],1)],1)}),1)],1)},yoe=[],boe=A(yf,_oe,yoe,!1,null,null);const _7=boe.exports;var $oe=Object.defineProperty,Soe=Object.getOwnPropertyDescriptor,y7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Soe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&$oe(e,t,n),n};let bf=class extends b{constructor(){super(...arguments);f(this,"color")}};y7([$({type:String,required:!0})],bf.prototype,"color",2);bf=y7([L],bf);var woe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",fill:"none",version:"1.1",width:"auto",height:"81",viewBox:"0 0 80 128"}},[t("defs",[t("clipPath",{attrs:{id:"master_svg0_2572_92420"}},[t("rect",{attrs:{x:"19.2236328125",y:"17",width:"57.07316589355469",height:"94",rx:"0"}})])]),t("g",[t("g",[t("g",[t("path",{staticStyle:{"mix-blend-mode":"passthrough"},attrs:{d:"M20.6092,108.721Q23.828,90.165,23.828,64Q23.828,37.8348,20.6092,19.2791Q17.2649,0,11.914,0Q6.56312,0,3.21882,19.2791Q0,37.8348,0,64Q0,90.165,3.21882,108.721Q6.5631,128,11.914,128Q17.2649,128,20.6092,108.721ZM18.6386,19.6209Q21.828,38.007,21.828,64Q21.828,89.9928,18.6386,108.379Q15.5819,126,11.914,126Q8.24604,126,5.18939,108.379Q2,89.993,2,64Q2,38.007,5.18939,19.6209Q8.24605,2,11.914,2Q15.5819,2,18.6386,19.6209ZM15.0898,77.0695Q16.018,71.6727,16.018,64.1Q16.018,56.5275,15.0898,51.1306Q14.0355,45.0001,11.914,45.0001Q9.79243,45.0001,8.73814,51.1306Q7.81,56.5274,7.81,64.1Q7.81,71.6727,8.73814,77.0695Q9.79245,83.2,11.914,83.2Q14.0355,83.2,15.0898,77.0695ZM13.1188,51.4695Q14.018,56.6982,14.018,64.1Q14.018,71.5019,13.1188,76.7305Q12.7065,79.128,12.1902,80.4028Q12.0471,80.7562,11.914,80.9808Q11.7809,80.7562,11.6378,80.4028Q11.1215,79.128,10.70921,76.7305Q9.81,71.5019,9.81,64.1Q9.81,56.6982,10.7092,51.4695Q11.1215,49.0721,11.6378,47.7973Q11.7809,47.4439,11.914,47.2192Q12.0471,47.4439,12.1902,47.7973Q12.7065,49.0721,13.1188,51.4695Z","fill-rule":"evenodd",fill:"#909090","fill-opacity":"1"}})]),t("g",[t("path",{staticStyle:{"mix-blend-mode":"passthrough"},attrs:{d:"M74.86596006164551,97.4226Q77.29656006164551,83.5515,77.29656006164551,64Q77.29656006164551,44.4486,74.86596006164551,30.5774Q72.31156006164551,16,68.08596006164551,16L18.013630061645507,16L18.241216061645506,17.188129Q21.92811006164551,36.4358,21.92811006164551,64Q21.92811006164551,92.401,18.242828061645508,110.8036L18.00325006164551,112L68.08596006164551,112Q72.31156006164551,112,74.86596006164551,97.4226ZM72.89596006164551,30.9226Q75.29656006164551,44.6225,75.29656006164551,64Q75.29656006164551,83.3776,72.89596006164551,97.0774Q70.6315600616455,110,68.08596006164551,110L20.437650061645506,110Q23.92810006164551,91.6871,23.92811006164551,64Q23.92811006164551,37.088899999999995,20.42819006164551,18L68.08596006164551,18Q70.6315600616455,18,72.89596006164551,30.9226Z","fill-rule":"evenodd",fill:"#909090","fill-opacity":"1"}})]),t("g",[t("path",{staticStyle:{"mix-blend-mode":"passthrough"},attrs:{d:"M76.78113040161134,108.721Q80.00003040161133,90.1652,80.00003040161133,64Q79.99993040161132,37.7352,76.81893040161133,19.2801Q73.49563040161132,0,68.08600040161133,0Q63.19512040161133,0,59.79648140161133,16.8017L59.55410040161133,18L68.08600040161133,18Q70.63158040161133,18,72.89593040161132,30.9226Q75.29653040161134,44.6227,75.29653040161134,64Q75.29653040161134,83.3773,72.89593040161132,97.0774Q70.63159040161133,110,68.08600040161133,110L59.56617040161133,110L59.79459840161133,111.189Q63.02513040161133,128,68.08600040161133,128Q73.43693040161133,128,76.78113040161134,108.721ZM74.84793040161134,19.6199Q78.00003040161133,37.9062,78.00003040161133,64Q77.99993040161132,89.993,74.81063040161133,108.379Q71.75393040161133,126,68.08600040161133,126Q64.81349040161133,126,61.99252040161133,112L68.08600040161133,112Q72.31163040161132,112,74.86593040161132,97.4226Q77.29653040161134,83.5512,77.29653040161134,64Q77.29653040161134,44.4488,74.86593040161132,30.5774Q72.31163040161132,16,68.08600040161133,16L62.00443040161133,16Q64.96202040161133,2,68.08600040161133,2Q71.81083040161133,2,74.84793040161134,19.6199Z","fill-rule":"evenodd",fill:"#909090","fill-opacity":"1"}})])]),t("g",{attrs:{"clip-path":"url(#master_svg0_2572_92420)"}},[t("g",[t("path",{attrs:{d:"M68.0862328125,17L19.2236328125,17C21.4264528125,28.5,22.9283828125,45.3,22.9283828125,64C22.9283828125,82.7,21.5265928125,99.5,19.2236328125,111L68.0862328125,111C72.59203281250001,111,76.2968328125,90,76.2968328125,64C76.2968328125,38,72.59203281250001,17,68.0862328125,17Z",fill:e.color,"fill-opacity":"1"}}),t("path",{staticStyle:{"mix-blend-mode":"passthrough"},attrs:{d:"M74.8662328125,97.4226Q77.2968328125,83.5515,77.2968328125,64Q77.2968328125,44.4486,74.8662328125,30.5774Q72.3118328125,16,68.0862328125,16L18.0139028125,16L18.2414888125,17.188129Q21.9283828125,36.4358,21.9283828125,64Q21.9283828125,92.401,18.2431008125,110.8036L18.0035228125,112L68.0862328125,112Q72.3118328125,112,74.8662328125,97.4226ZM72.8962328125,30.9226Q75.2968328125,44.6225,75.2968328125,64Q75.2968328125,83.3776,72.8962328125,97.0774Q70.6318328125,110,68.0862328125,110L20.4379228125,110Q23.9283728125,91.6871,23.9283828125,64Q23.9283828125,37.088899999999995,20.4284628125,18L68.0862328125,18Q70.6318328125,18,72.8962328125,30.9226Z","fill-rule":"evenodd",fill:"#909090","fill-opacity":"1"}})])])])])},xoe=[],Coe=A(bf,woe,xoe,!1,null,null);const Poe=Coe.exports;var Loe=Object.defineProperty,Aoe=Object.getOwnPropertyDescriptor,Qb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Aoe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Loe(e,t,n),n};let Tu=class extends b{constructor(){super(...arguments);f(this,"interval");f(this,"icon");f(this,"opacity",0);f(this,"changeOpacity",.01)}mounted(){this.breath()}breath(){setInterval(()=>{this.opacity+=this.changeOpacity,this.opacity>=1&&(this.changeOpacity=-.01),this.opacity<=0&&(this.changeOpacity=.01)},this.interval)}};Qb([$({type:Number,default:20})],Tu.prototype,"interval",2);Qb([$({type:String,required:!0})],Tu.prototype,"icon",2);Tu=Qb([L],Tu);var Eoe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{style:{opacity:e.opacity}},[t(w,{attrs:{left:""}},[e._v(" "+e._s(e.icon)+" ")])],1)},Ooe=[],Toe=A(Tu,Eoe,Ooe,!1,null,null);const koe=Toe.exports;var Doe=Object.defineProperty,Moe=Object.getOwnPropertyDescriptor,Jb=(r,e,t,s)=>{for(var n=s>1?void 0:s?Moe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Doe(e,t,n),n};let ku=class extends b{constructor(){super(...arguments);f(this,"icon");f(this,"isRotating")}};Jb([$({type:String,required:!0})],ku.prototype,"icon",2);Jb([$({type:Boolean,required:!0})],ku.prototype,"isRotating",2);ku=Jb([L],ku);var Roe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(w,{class:{"rotate-icon":e.isRotating},attrs:{"x-large":""}},[e._v(" "+e._s(e.icon)+" ")])],1)},Ioe=[],Foe=A(ku,Roe,Ioe,!1,null,"973e27ff");const Hoe=Foe.exports;var Boe=Object.defineProperty,joe=Object.getOwnPropertyDescriptor,Voe=(r,e,t,s)=>{for(var n=s>1?void 0:s?joe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Boe(e,t,n),n};let I_=class extends Z(X,dr){constructor(){super(...arguments);f(this,"tab",0);f(this,"button",[this.$t("app.box.btn.uninstall"),this.$t("app.box.btn.load"),this.$t("app.box.btn.unload")]);f(this,"selectLabels",[this.$t("app.box.label.vendor"),this.$t("app.box.label.filament"),this.$t("app.box.label.color")]);f(this,"selectIndex",0);f(this,"selectedVendor","");f(this,"selectedFilament","");f(this,"selectedColor","");f(this,"isRfid",!1)}get variables(){return this.$store.getters["printer/getVariables"]}get boxCount(){return this.variables.boxCount}get items(){const t=[];for(let s=0;s<this.boxCount*4;s++){const n=this.variables.slot[s]||0,i=Math.floor(s/4+1)+String.fromCharCode(s%4+65);if(n===0||!n)t[s]={label:i,color:"#000000",filaIndex:""};else{const a=this.officialFilasListDictData.colordict[String(this.variables.colorSlot[s])]||"#000000",o="fila"+this.variables.filamentSlot[s]||"";t[s]={label:i,color:a,filaIndex:o}}}return t[16]={label:"",color:"",filaIndex:""},t[17]={label:this.$t("app.box.label.rack").toString(),color:this.officialFilasListDictData.colordict[String(this.variables.rackExtra[0])]||"#000000",filaIndex:"fila"+this.variables.rackExtra[1]||""},t}get buttonStatus(){const t={"-2":[!1,!1,!1],"-1":[!1,!1,!1],0:[!0,!0,!0],1:[!1,!1,!0],2:[!1,!0,!1],"-3":[!0,!0,!0],3:[!0,!0,!0]},s=[];for(let n=0;n<this.boxCount*4;n++){const i=this.variables.slot[n]||0;s[n]=t[i+""]}return s[16]=[!0,!0,!0],s[17]=[!0,!0,!0],s}get filamentItems(){var s;const t=new Set;for(const n in this.officialFilasListDictData)n.startsWith("fila")&&this.officialFilasListDictData[n].vendor===this.selectedVendor&&t.add(this.officialFilasListDictData[n].filament);return this.selectedFilament=((s=this.officialFilasListDictData[this.items[this.selectIndex].filaIndex])==null?void 0:s.filament)||"",Array.from(t)}get vendorItems(){var s;const t=new Set;for(const n in this.officialFilasListDictData)n.startsWith("fila")&&t.add(this.officialFilasListDictData[n].vendor);return this.selectedVendor=((s=this.officialFilasListDictData[this.items[this.selectIndex].filaIndex])==null?void 0:s.vendor)||"",Array.from(t)}get colorItems(){var s;const t=new Set;for(const n in this.officialFilasListDictData.colordict)t.add(this.officialFilasListDictData.colordict[n]);return this.selectedColor=((s=this.items[this.selectIndex])==null?void 0:s.color)||"",Array.from(t)}get officialFilasListDictData(){return this.$store.state.printer.officiallFilasList}get isDateloaded(){return Vt.isDefinedAndNotEmpty(this.officialFilasListDictData)&&Vt.isDefinedAndNotEmpty(this.variables)&&Vt.isDefinedAndNotEmpty(this.boxCount)&&Vt.isDefinedAndNotEmpty(this.items)&&Vt.isDefinedAndNotEmpty(this.buttonStatus)&&Vt.isDefinedAndNotEmpty(this.filamentItems)&&Vt.isDefinedAndNotEmpty(this.vendorItems)&&Vt.isDefinedAndNotEmpty(this.colorItems)}get slotSync(){return parseInt(this.variables.slotSync.replace("slot",""))||16}get isRotating(){const t=this.$store.state.printer.printer.box_extras||"",s=new Array(this.boxCount*4).fill(!1);for(const n in t)if(n.startsWith("rfid_state")){const i=t[n],a=parseInt(n.replace("rfid_state",""));this.isRfid=s[a]=i===1}return s}get printerPrinting(){return this.printerState.toLowerCase()==="printing"}mounted(){this.$store.state.printer.officiallFilasList||this.getOfficiallFilasList().then(t=>{this.$set(this.$store.state.printer,"officiallFilasList",Vt.configToDict(t))}).catch(t=>{console.error("Failed to fetch official filas list dict:",t)})}handleClick(t){this.selectIndex=t}handleColorClick(t){this.selectedColor=t,this.updateMaterialInfo()}handleButtonClick(t){const s=this.selectIndex;if(s===null){console.error("Invalid slot");return}F.printerGcodeScript(`SAVE_VARIABLE VARIABLE=selected_slot VALUE="${s}"`);const n=["E_BOX","E_LOAD","E_UNLOAD"];F.printerGcodeScript(n[t-1])}handleBoxButtonClick(){this.selectIndex=16}handleRfidClick(t){alert(t)}vendorChange(){this.selectedFilament=this.filamentItems[0],this.updateMaterialInfo()}filamentChange(){this.updateMaterialInfo()}updateMaterialInfo(){for(const t in this.officialFilasListDictData)if(t.startsWith("fila")&&this.officialFilasListDictData[t].vendor===this.selectedVendor&&this.officialFilasListDictData[t].filament===this.selectedFilament)this.selectIndex===17?F.printerGcodeScript(`SAVE_VARIABLE VARIABLE=filament_extra VALUE="${t.replace("fila","")}"`):F.printerGcodeScript(`SAVE_VARIABLE VARIABLE=filament_slot${this.selectIndex} VALUE="${t.replace("fila","")}"`);else if(t.startsWith("colordict")){const s=this.getKeyByValue(this.officialFilasListDictData[t],this.selectedColor);s&&(this.selectIndex===17?F.printerGcodeScript(`SAVE_VARIABLE VARIABLE=color_extra VALUE="${s}"`):F.printerGcodeScript(`SAVE_VARIABLE VARIABLE=color_slot${this.selectIndex} VALUE="${s}"`))}}getKeyByValue(t,s){for(const n in t)if(t[n]===s)return n}getTextColor(t){var n;const s=((n=this.items[t])==null?void 0:n.color)||"#000000";return Vt.getTextColor(s)}};I_=Voe([L({components:{SvgIcon:Poe,Breathing:koe,Roating:Hoe}})],I_);var Noe=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isDateloaded&&e.boxCount>0?t("div",[t(Bm,{attrs:{"show-arrows":"","center-active":""},model:{value:e.tab,callback:function(s){e.tab=s},expression:"tab"}},e._l(e.boxCount,function(s){return t(gu,{key:s,staticClass:"ma-1 mb-0 rounded-sm",style:{backgroundColor:e.$vuetify.theme.currentTheme.btncolor,width:"25%",fontSize:"20px"},on:{click:function(n){return e.handleBoxButtonClick()}}},[t(w,[e._v("$box")]),t("span",{staticClass:"pl-2"},[e._v(e._s(s))])],1)}),1),t(Hm,{model:{value:e.tab,callback:function(s){e.tab=s},expression:"tab"}},e._l(e.boxCount,function(s){var n;return t(Uh,{key:s},[t(kl,{attrs:{fluid:""}},[t(te,{attrs:{align:"center"}},[t(I,{attrs:{cols:"auto"}},[t(te,[t(I,{attrs:{cols:"auto",align:"center"}},[t(ut,{staticClass:"pa-2",staticStyle:{fontSize:"12px",height:"100%"},attrs:{rounded:"lg",outlined:""}},[t("div",{staticClass:"mb-1",staticStyle:{height:"44px","line-height":"44px"}},[e._v(" "+e._s(e.items[17].label)+" ")]),t(kw,{attrs:{"close-delay":"100"},scopedSlots:e._u([{key:"default",fn:function({hover:i}){return[t(ut,{style:{borderColor:"rgba(0, 0, 0, 0)",borderWidth:"2px",borderStyle:"solid",boxShadow:e.selectIndex===17?`0 0 0 2px ${e.items[17].color}`:i?"0 0 0 2px #b6f30f":""},attrs:{height:"86",width:"60",rounded:"lg"},on:{click:function(a){return e.handleClick(17)}}},[t("SvgIcon",{attrs:{color:e.items[17].color}})],1)]}}],null,!0)}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.slotSync===17,expression:"slotSync === 17"}]},[t("Breathing",{attrs:{icon:"$downArrow"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.slotSync!==17,expression:"slotSync !== 17"}],staticStyle:{height:"24px"}}),e._v(" "+e._s(((n=e.officialFilasListDictData[e.items[17].filaIndex])==null?void 0:n.filament)||"?")+" ")],1)],1),t(I,[t(ut,{staticClass:"pa-2",staticStyle:{height:"100%"},attrs:{rounded:"lg",outlined:""}},[t(te,e._l(Array.from({length:4},(i,a)=>a+(s-1)*4),function(i,a){var o;return t(I,{key:a,staticClass:"pl-4 pr-4",style:{fontSize:"12px"},attrs:{cols:6,sm:"3",align:"center","no-gutters":""}},[t(Fe,{staticClass:"mb-1",staticStyle:{"font-size":"12px"},attrs:{icon:"",large:"",disabled:e.printerPrinting||e.isRfid},on:{click:function(l){return e.handleRfidClick(i)}}},[t("Roating",{attrs:{icon:"$reRfid",isRotating:e.isRotating[i]}}),t("span",{staticStyle:{position:"absolute"}},[e._v(e._s(e.items[i].label))])],1),t(kw,{attrs:{"close-delay":"100"},scopedSlots:e._u([{key:"default",fn:function({hover:l}){return[t(ut,{style:{borderColor:"rgba(0, 0, 0, 0)",borderWidth:"2px",borderStyle:"solid",boxShadow:e.selectIndex===i?`0 0 0 2px ${e.items[i].color}`:l?"0 0 0 2px #b6f30f":""},attrs:{height:"86",width:"60",rounded:"lg"},on:{click:function(c){return e.handleClick(i)}}},[t("SvgIcon",{attrs:{color:e.items[i].color}})],1)]}}],null,!0)}),t("div",{directives:[{name:"show",rawName:"v-show",value:e.slotSync===i,expression:"slotSync === index"}]},[t("Breathing",{attrs:{icon:"$downArrow"}})],1),t("div",{directives:[{name:"show",rawName:"v-show",value:e.slotSync!==i,expression:"slotSync !== index"}],staticStyle:{height:"24px"}}),e._v(" "+e._s(((o=e.officialFilasListDictData[e.items[i].filaIndex])==null?void 0:o.filament)||"?")+" ")],1)}),1)],1)],1)],1),t(te,e._l(3,function(i){return t(I,{key:i,attrs:{align:"center","no-gutters":""}},[t(Fe,{attrs:{disabled:e.printerPrinting||e.isRfid||e.buttonStatus[e.selectIndex][i-1]},on:{click:function(a){return e.handleButtonClick(i)}}},[e._v(e._s(e.button[i-1]))])],1)}),1)],1),t(I,[t(te,{attrs:{align:"center"}},[t(I,{attrs:{cols:"3"}},[t("div",[e._v(" "+e._s(e.selectLabels[0])+" ")])]),t(I,[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.vendorItems,disabled:e.printerPrinting||e.isRfid||e.selectIndex===16||!e.variables.slot[e.selectIndex]||e.variables.slot[e.selectIndex]===0,"menu-props":{buttom:!0,offsetY:!0}},on:{change:function(i){return e.vendorChange()}},model:{value:e.selectedVendor,callback:function(i){e.selectedVendor=i},expression:"selectedVendor"}})],1)],1),t(R,{staticClass:"mt-1 mb-1"}),t(te,{attrs:{align:"center"}},[t(I,{attrs:{cols:"3"}},[t("div",[e._v(" "+e._s(e.selectLabels[1])+" ")])]),t(I,[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.filamentItems,disabled:e.printerPrinting||e.isRfid||e.selectIndex===16||!e.variables.slot[e.selectIndex]||e.variables.slot[e.selectIndex]===0,"menu-props":{buttom:!0,offsetY:!0}},on:{change:function(i){return e.filamentChange()}},model:{value:e.selectedFilament,callback:function(i){e.selectedFilament=i},expression:"selectedFilament"}})],1)],1),t(R,{staticClass:"mt-1 mb-1"}),t(te,{attrs:{align:"center"}},[t(I,{attrs:{cols:"3"}},[t("div",[e._v(" "+e._s(e.selectLabels[2])+" ")])]),t(I,[t(Et,{attrs:{"close-on-click":"","close-on-content-click":"","offset-y":""},scopedSlots:e._u([{key:"activator",fn:function({on:i,attrs:a}){return[t(Fe,e._g(e._b({staticStyle:{color:"white"},attrs:{fab:"",color:e.selectedColor||"#000000","x-small":"",disabled:e.printerPrinting||e.isRfid||e.selectIndex===16||!e.variables.slot[e.selectIndex]||e.variables.slot[e.selectIndex]===0}},"v-btn",a,!1),i),[e.selectedColor?e._e():t("span",[e._v("?")])])]}}],null,!0)},[t(Ie,{staticClass:"pa-4",attrs:{"max-width":"304"}},[t(te,e._l(24,function(i){return t(I,{key:i,attrs:{cols:"auto"}},[t("div",{staticClass:"pa-4 rounded-circle d-inline-block",style:{backgroundColor:e.colorItems[i-1]},on:{click:function(a){return e.handleColorClick(e.colorItems[i-1])}}})])}),1)],1)],1)],1)],1)],1)],1)],1)],1)}),1)],1):t("div",[t(Pe,[t(I,{attrs:{align:"center"}},[e._v(" NO BOX ")])],1)],1)},zoe=[],Uoe=A(I_,Noe,zoe,!1,null,null);const Woe=Uoe.exports;var Goe=Object.defineProperty,qoe=Object.getOwnPropertyDescriptor,Zoe=(r,e,t,s)=>{for(var n=s>1?void 0:s?qoe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Goe(e,t,n),n};let F_=class extends b{};F_=Zoe([L({components:{Box:Woe}})],F_);var Yoe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.box.label.title"),"help-tooltip":e.$t("app.box.tooltip.control_filament"),icon:"$abacus",draggable:"","layout-path":"dashboard.box-card"}},[t("box")],1)},Koe=[],Xoe=A(F_,Yoe,Koe,!1,null,null);const Qoe=Xoe.exports;var Joe=Object.defineProperty,ele=Object.getOwnPropertyDescriptor,e2=(r,e,t,s)=>{for(var n=s>1?void 0:s?ele(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Joe(e,t,n),n};let Du=class extends Z(X){constructor(){super(...arguments);f(this,"menuCollapsed",!1);f(this,"containers",[])}mounted(){this.onLayoutChange(),window.addEventListener("resize",this.updateMenuCollapsed),this.updateMenuCollapsed()}unmounted(){window.removeEventListener("resize",this.updateMenuCollapsed)}get columnCount(){return this.inLayout?4:this.containers.reduce((t,s)=>+this.hasCards(s)+t,0)}onColumnCount(t){this.$store.commit("config/setContainerColumnCount",t),this.updateMenuCollapsed()}get columnSpan(){return 12/this.columnCount}get hasCameras(){return this.$store.getters["webcams/getEnabledWebcams"].length>0}get hasHeatersOrTemperatureSensors(){return this.$store.getters["printer/getHeaters"].length>0||this.$store.getters["printer/getOutputs"](["temperature_fan"]).length>0||this.$store.getters["printer/getSensors"].length>0}get hasSensors(){return this.$store.getters["sensors/getSensors"].length>0}get firmwareRetractionEnabled(){return"firmware_retraction"in this.$store.getters["printer/getPrinterSettings"]()}get supportsJobQueue(){return this.$store.getters["server/componentSupport"]("job_queue")}get supportsBedMesh(){return this.$store.getters["mesh/getSupportsBedMesh"]}get supportsRunoutSensors(){return this.$store.getters["printer/getRunoutSensors"].length>0}get supportsSpoolman(){return this.$store.getters["server/componentSupport"]("spoolman")}get hasMacros(){return this.$store.getters["macros/getVisibleMacros"].length>0}get hasOutputs(){return this.$store.getters["printer/getAllFans"].length>0||this.$store.getters["printer/getPins"].length>0||this.$store.getters["printer/getAllLeds"].length>0}get inLayout(){return this.$store.state.config.layoutMode}get layout(){const t=this.$store.getters["layout/getSpecificLayoutName"];return this.$store.getters["layout/getLayout"](t)}onLayoutChange(){const t=[];for(let s=1;s<=4;s++){const n=this.layout[`container${s}`];(n==null?void 0:n.length)>0&&t.push(n)}for(;t.length<4;)t.push([]);this.containers=t.slice(0,4)}updateMenuCollapsed(){this.menuCollapsed=this.$el.clientWidth/this.columnCount<560}handleUpdateLayout(){this.$store.dispatch("layout/onLayoutChange",{name:this.$store.getters["layout/getSpecificLayoutName"],value:{container1:this.containers[0],container2:this.containers[1],container3:this.containers[2],container4:this.containers[3]}})}hasCards(t){return t.some(s=>s.enabled&&!this.filtered(s))}filtered(t){return this.inLayout?!1:t.id==="camera-card"&&!this.hasCameras||t.id==="macros-card"&&!this.hasMacros||t.id==="outputs-card"&&!this.hasOutputs||t.id==="printer-status-card"&&!this.klippyReady||t.id==="job-queue-card"&&!this.supportsJobQueue||t.id==="retract-card"&&!this.firmwareRetractionEnabled||t.id==="bed-mesh-card"&&!this.supportsBedMesh||t.id==="runout-sensors-card"&&!this.supportsRunoutSensors||t.id==="spoolman-card"&&!this.supportsSpoolman||t.id==="sensors-card"&&!this.hasSensors||t.id==="temperature-card"&&!this.hasHeatersOrTemperatureSensors?!0:!t.enabled}};e2([Ae("columnCount")],Du.prototype,"onColumnCount",1);e2([Ae("layout")],Du.prototype,"onLayoutChange",1);Du=e2([L({components:{PrinterStatusCard:rY,BoxCard:Qoe,JobsCard:TX,ToolheadCard:yee,MacrosCard:jte,TemperatureCard:Yee,CameraCard:gte,PrinterLimitsCard:fne,RetractCard:Ane,ConsoleCard:M8,OutputsCard:ene,BedMeshCard:n7,GcodePreviewCard:f7,JobQueueCard:g7,SpoolmanCard:toe,SensorsCard:moe,RunoutSensorsCard:_7}})],Du);var tle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[e._l(e.containers,function(s,n){return[e.inLayout||e.hasCards(s)?t(I,{key:`container${n}`,class:{drag:e.inLayout},attrs:{cols:"12",md:"6",lg:e.columnSpan}},[t($m,{staticClass:"list-group",attrs:{options:{animation:200,handle:".handle",group:"dashboard",disabled:!e.inLayout,ghostClass:"ghost"},target:":first-child"},on:{end:e.handleUpdateLayout},model:{value:e.containers[n],callback:function(i){e.$set(e.containers,n,i)},expression:"containers[containerIndex]"}},[t("transition-group",{attrs:{type:"transition",name:e.inLayout?void 0:"flip-list"}},[e._l(s,function(i){return[e.inLayout||i.enabled&&!e.filtered(i)?t(i.id,{key:i.id,tag:"component",staticClass:"mb-2 mb-sm-4",attrs:{"menu-collapsed":e.menuCollapsed}}):e._e()]})],2)],1)],1):e._e()]})],2)},rle=[],sle=A(Du,tle,rle,!1,null,"2941535b");const nle=sle.exports;var ile=Object.defineProperty,ale=Object.getOwnPropertyDescriptor,ole=(r,e,t,s)=>{for(var n=s>1?void 0:s?ale(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ile(e,t,n),n};let H_=class extends b{};H_=ole([L({components:{ConsoleCard:M8}})],H_);var lle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(I,{attrs:{cols:"12"}},[t("console-card",{attrs:{fullscreen:""}})],1)],1)},cle=[],ule=A(H_,lle,cle,!1,null,null);const dle=ule.exports;var ple=Object.defineProperty,hle=Object.getOwnPropertyDescriptor,fle=(r,e,t,s)=>{for(var n=s>1?void 0:s?hle(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ple(e,t,n),n};let B_=class extends b{};B_=fle([L({components:{GcodePreviewCard:f7}})],B_);var mle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(I,{attrs:{cols:"12"}},[t("GcodePreviewCard",{attrs:{fullscreen:""}})],1)],1)},gle=[],vle=A(B_,mle,gle,!1,null,null);const _le=vle.exports;var yle=Object.defineProperty,ble=Object.getOwnPropertyDescriptor,$le=(r,e,t,s)=>{for(var n=s>1?void 0:s?ble(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&yle(e,t,n),n};let j_=class extends Z(X){get supportsJobQueue(){return this.$store.getters["server/componentSupport"]("job_queue")}get hasQueuedJobs(){return this.supportsJobQueue&&this.$store.state.jobQueue.queued_jobs.length>0}};j_=$le([L({components:{FileSystem:Fl,JobQueueCard:g7}})],j_);var Sle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(I,{attrs:{cols:"12",lg:e.hasQueuedJobs?8:void 0}},[t(Xe,{staticClass:"mb-2 mb-sm-4",attrs:{title:e.$t("app.general.title.jobs"),"card-key":"JobsPage",icon:"$files","help-tooltip":e.$t("app.general.tooltip.file_browser_help")}},[t("file-system",{attrs:{roots:"gcodes",name:"jobs","bulk-actions":"","max-height":"816"}})],1)],1),e.hasQueuedJobs?t(I,{attrs:{cols:"12",lg:"4"}},[t("job-queue-card",{attrs:{fullscreen:""}})],1):e._e()],1)},wle=[],xle=A(j_,Sle,wle,!1,null,null);const Cle=xle.exports;var Ple=Object.defineProperty,Lle=Object.getOwnPropertyDescriptor,d1=(r,e,t,s)=>{for(var n=s>1?void 0:s?Lle(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ple(e,t,n),n};let hl=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"open");f(this,"existingName");f(this,"adaptive");f(this,"name","default");f(this,"removeDefault",!1)}mounted(){this.name="default",this.removeDefault=!1}handleSubmit(){this.$emit("save",{name:this.name,removeDefault:this.removeDefault}),this.open=!1}};d1([He({type:Boolean})],hl.prototype,"open",2);d1([$({type:String})],hl.prototype,"existingName",2);d1([$({type:Boolean})],hl.prototype,"adaptive",2);hl=d1([L({})],hl);var Ale=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.general.label.save_as"),"max-width":"450"},on:{save:function(s){return e.handleSubmit()}},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(ae,{staticClass:"mb-4",attrs:{autofocus:"",filled:"",required:"",rules:[e.$rules.required],"hide-details":"auto",label:e.$t("app.bedmesh.label.profile_name")},model:{value:e.name,callback:function(s){e.name=s},expression:"name"}}),e.adaptive?e._e():[t(ar,{staticClass:"mb-4",attrs:{label:e.$t("app.bedmesh.label.remove_profile",{name:e.existingName}),"hide-details":"auto",disabled:e.name===e.existingName},model:{value:e.removeDefault,callback:function(s){e.removeDefault=s},expression:"removeDefault"}}),t("span",[e._v(" "+e._s(e.$t("app.bedmesh.msg.hint",{name:e.existingName}))+" ")])]],2)],1)},Ele=[],Ole=A(hl,Ale,Ele,!1,null,null);const Tle=Ole.exports;var kle=Object.defineProperty,Dle=Object.getOwnPropertyDescriptor,b7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Dle(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&kle(e,t,n),n};let $f=class extends Z(X,Ut){constructor(){super(...arguments);f(this,"manualProbeDialogOpen",!1);f(this,"mapScaleLabels",["min","0.1","0.2"]);f(this,"boxScaleLabels",["1.0","1.5","2.0"]);f(this,"saveDialogState",{open:!1,existingName:"default",adaptive:!1})}get matrix(){return this.mesh.matrix}set matrix(e){this.$store.dispatch("mesh/onMatrix",e)}get mapScale(){return this.mesh.scale}set mapScale(e){this.$store.dispatch("mesh/onScale",e)}get boxScale(){return this.mesh.boxScale}set boxScale(e){this.$store.dispatch("mesh/onBoxScale",e)}get wireframe(){return this.mesh.wireframe}set wireframe(e){this.$store.dispatch("mesh/onWireframe",e)}get flatSurface(){return this.mesh.flatSurface}set flatSurface(e){this.$store.dispatch("mesh/onFlatSurface",e)}get mesh(){return this.$store.state.mesh}get bedMeshProfiles(){return this.$store.getters["mesh/getBedMeshProfiles"]}get currentMesh(){return this.$store.state.printer.printer.bed_mesh}get meshLoaded(){return"profile_name"in this.currentMesh&&this.currentMesh.profile_name.length>0}get printerSupportsQgl(){return"quad_gantry_level"in this.$store.getters["printer/getPrinterSettings"]()}calibrate(){this.sendGcode("BED_MESH_CALIBRATE",this.$waits.onMeshCalibrate)}async clearMesh(){(!this.printerPrinting||await this.$confirm(this.$t("app.general.simple_form.msg.confirm_load_bedmesh_profile",{name}).toString(),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))&&this.sendGcode("BED_MESH_CLEAR")}async loadProfile(e){(!this.printerPrinting||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_clear_mesh"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))&&this.sendGcode(`BED_MESH_PROFILE LOAD="${e}"`)}removeProfile(e){this.sendGcode(`BED_MESH_PROFILE REMOVE="${e}"`)}handleMeshSave(e){e.name!==this.currentMesh.profile_name&&this.sendGcode(`BED_MESH_PROFILE SAVE="${e.name}"`),e.removeDefault&&this.sendGcode(`BED_MESH_PROFILE REMOVE="${this.currentMesh.profile_name}"`)}handleOpenSaveDialog(){const e=this.bedMeshProfiles.find(t=>t.name===this.currentMesh.profile_name);this.saveDialogState={open:!0,existingName:this.currentMesh.profile_name,adaptive:(e==null?void 0:e.adaptive)??!1}}get showManualProbeDialogAutomatically(){return this.$store.state.config.uiSettings.general.showManualProbeDialogAutomatically}onIsManualProbeActive(e){e&&this.showManualProbeDialogAutomatically&&this.klippyReady&&!this.printerPrinting&&(this.manualProbeDialogOpen=!0)}};b7([Ae("isManualProbeActive")],$f.prototype,"onIsManualProbeActive",1);$f=b7([L({components:{SaveMeshDialog:Tle}})],$f);var Mle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.bedmesh_controls"),lazy:!1,icon:"$bedMesh"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(xn,[e.isManualProbeActive?t(M,{staticClass:"ms-1 my-1",attrs:{disabled:!e.klippyReady||e.printerPrinting,small:""},on:{click:function(s){e.manualProbeDialogOpen=!0}}},[e._v(" "+e._s(e.$t("app.tool.tooltip.manual_probe"))+" ")]):e._e()],1)]},proxy:!0}])},[e.bedMeshProfiles.length>0?[t(Zt,[t("thead",[t("tr",[t("th",[e._v(e._s(e.$t("app.general.label.name")))]),t("th",[e._v(" ")]),t("th",[e._v(e._s(e.$t("app.general.label.range")))]),t("th",[e._v(" ")])])]),t("tbody",e._l(e.bedMeshProfiles,function(s){return t("tr",{key:s.name},[t("td",{},[e._v(" "+e._s(s.name)+" ")]),t("td",[s.active?t(gr,{attrs:{small:"",block:""}},[e._v(" "+e._s(e.$t("app.bedmesh.label.active"))+" ")]):e._e()],1),t("td",{staticClass:"focus--text"},[t("span",[e._v(" "+e._s(s.range.toFixed(4))+" ")])]),t("td",{staticClass:"text-right",attrs:{nowrap:""}},[s.active?e._e():t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t(M,e._g(e._b({attrs:{"x-small":"",color:"",fab:"",text:""},on:{click:function(a){return e.loadProfile(s.name)}}},"app-btn",i,!1),n),[t(w,[e._v("$open")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.load")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t(M,e._g(e._b({staticClass:"ml-2",attrs:{color:"",fab:"",text:"","x-small":"",disabled:s.adaptive},on:{click:function(a){return e.removeProfile(s.name)}}},"app-btn",i,!1),n),[t(w,{attrs:{color:""}},[e._v(" $close ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.delete")))])])],1)])}),0)]),t(R)]:e._e(),t(Pe,[e.bedMeshProfiles.length===0?t("div",{staticClass:"mb-4"},[e._v(" "+e._s(e.$t("app.bedmesh.msg.not_found"))+" ")]):e._e(),t(te,[t(I,{attrs:{cols:"6"}},[t(M,{staticClass:"mb-2",attrs:{disabled:!e.meshLoaded,small:"",block:""},on:{click:function(s){return e.clearMesh()}}},[e._v(" "+e._s(e.$t("app.general.btn.clear_profile"))+" ")]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mb-2",attrs:{small:"",block:"",loading:e.hasWait(e.$waits.onMeshCalibrate),disabled:e.printerBusy||!e.allHomed},on:{click:function(i){return e.calibrate()}}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.calibrate"))+" ")])]}}])},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.calibrate")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({attrs:{block:"",small:"",color:"primary",disabled:!e.meshLoaded},on:{click:function(i){return e.handleOpenSaveDialog()}}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.save_as"))+" ")])]}}])},[t("span",[e._v(e._s(e.$t("app.bedmesh.tooltip.save")))])])],1),t(I,{attrs:{cols:"6"}},[t(M,{staticClass:"mb-2",attrs:{block:"",small:"",loading:e.hasWait(e.$waits.onHomeAll),disabled:e.printerBusy,color:e.allHomed?void 0:"primary"},on:{click:e.homeAll}},[t(w,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $home ")]),e._v(" "+e._s(e.$t("app.general.btn.all"))+" ")],1),e.printerSupportsQgl?t(M,{staticClass:"mb-2",attrs:{loading:e.hasWait(e.$waits.onQGL),disabled:e.printerBusy,block:"",small:""},on:{click:function(s){return e.sendGcode("QUAD_GANTRY_LEVEL",e.$waits.onQGL)}}},[e._v(" "+e._s(e.$t("app.general.btn.quad_gantry_level"))+" ")]):e._e()],1)],1),t(te,[t(I,{attrs:{cols:"12",md:"6"}},[t(W6,{staticClass:"mt-0 mb-2",attrs:{disabled:!e.meshLoaded,column:"","hide-details":""},model:{value:e.matrix,callback:function(s){e.matrix=s},expression:"matrix"}},[t(Kc,{attrs:{label:e.$t("app.bedmesh.label.probed_matrix"),value:"probed_matrix"}}),t(Kc,{attrs:{label:e.$t("app.bedmesh.label.mesh_matrix"),value:"mesh_matrix"}})],1)],1),t(I,{attrs:{cols:"12",md:"6"}},[t(ar,{staticClass:"mt-0",attrs:{disabled:!e.meshLoaded,label:e.$t("app.bedmesh.label.wireframe"),"hide-details":""},model:{value:e.wireframe,callback:function(s){e.wireframe=s},expression:"wireframe"}}),t(ar,{staticClass:"mt-1",attrs:{disabled:!e.meshLoaded,label:e.$t("app.bedmesh.label.flat_surface"),"hide-details":""},model:{value:e.flatSurface,callback:function(s){e.flatSurface=s},expression:"flatSurface"}})],1)],1),t(te,[t(I,[t(qv,{attrs:{label:e.$t("app.bedmesh.label.scale"),disabled:!e.meshLoaded,"tick-labels":e.mapScaleLabels,min:0,max:.2,step:"0.1",ticks:"always","tick-size":"4"},model:{value:e.mapScale,callback:function(s){e.mapScale=s},expression:"mapScale"}}),t(qv,{attrs:{label:e.$t("app.bedmesh.label.box_scale"),disabled:!e.meshLoaded,"tick-labels":e.boxScaleLabels,min:1,max:2,step:"0.5",ticks:"always","tick-size":"4"},model:{value:e.boxScale,callback:function(s){e.boxScale=s},expression:"boxScale"}})],1)],1)],1),e.saveDialogState.open?t("save-mesh-dialog",{attrs:{"existing-name":e.saveDialogState.existingName,adaptive:e.saveDialogState.adaptive},on:{save:e.handleMeshSave},model:{value:e.saveDialogState.open,callback:function(s){e.$set(e.saveDialogState,"open",s)},expression:"saveDialogState.open"}}):e._e(),e.manualProbeDialogOpen?t(S8,{model:{value:e.manualProbeDialogOpen,callback:function(s){e.manualProbeDialogOpen=s},expression:"manualProbeDialogOpen"}}):e._e()],2)},Rle=[],Ile=A($f,Mle,Rle,!1,null,"920a9fae");const Fle=Ile.exports;var Hle=Object.defineProperty,Ble=Object.getOwnPropertyDescriptor,jle=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ble(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Hle(e,t,n),n};let V_=class extends Z(X){get endstops(){return this.$store.getters["printer/getEndstops"]}get probe(){return this.$store.getters["printer/getProbe"]}get endstopsAndProbes(){const e=[...this.endstops],t=this.probe;return t!==void 0&&e.push({name:"Probe",state:t.last_query?"triggered":"open"}),e}get hasEndstops(){return this.endstops.length>0}queryEndstops(){F.printerQueryEndstops(),this.probe!==void 0&&this.sendGcode("QUERY_PROBE",this.$waits.onQueryProbe)}destroyed(){this.$store.commit("printer/setClearEndStops")}};V_=jle([L({components:{}})],V_);var Vle=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.endstops"),"sub-title":e.$t("app.endstop.msg.subtitle"),icon:"$expandHorizontal"},scopedSlots:e._u([{key:"collapse-button",fn:function(){return[t(M,{staticClass:"ms-1 my-1",attrs:{loading:e.hasWait(e.$waits.onQueryEndstops)||e.hasWait(e.$waits.onQueryProbe),color:"",fab:"","x-small":"",text:""},on:{click:e.queryEndstops}},[t(w,[e._v("$refresh")])],1)]},proxy:!0}])},[e.hasEndstops?t(Zt,[t("tbody",e._l(e.endstopsAndProbes,function(s){return t("tr",{key:s.name},[t("td",[t("span",{staticClass:"focus--text"},[e._v(e._s(s.name))])]),t("td",[t(gr,{attrs:{color:s.state==="open"?"secondary":"warning",small:"",label:""}},[t(w,{attrs:{small:"",left:""}},[e._v(" "+e._s(s.state==="open"?"$blankCircle":"$markedCircle")+" ")]),e._v(" "+e._s(e.$t("app.endstop.label."+s.state.toLowerCase()))+" ")],1)],1)])}),0)]):e._e()],1)},Nle=[],zle=A(V_,Vle,Nle,!1,null,null);const Ule=zle.exports;var Wle=Object.defineProperty,Gle=Object.getOwnPropertyDescriptor,qle=(r,e,t,s)=>{for(var n=s>1?void 0:s?Gle(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Wle(e,t,n),n};let N_=class extends Z(X){get supportsBedMesh(){return this.$store.getters["mesh/getSupportsBedMesh"]}get supportsRunoutSensors(){return this.$store.getters["printer/getRunoutSensors"].length}get supportsEndstops(){const e=this.$store.getters["printer/getEndstops"];return Object.keys(e).length>0}};N_=qle([L({components:{BedMeshCard:n7,BedMeshControls:Fle,EndStopsCard:Ule,RunoutSensorsCard:_7}})],N_);var Zle=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.klippyReady?t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[e.supportsBedMesh?t(I,{attrs:{cols:"12",md:"8"}},[t("bed-mesh-card",{attrs:{fullscreen:""}})],1):e._e(),t(I,{attrs:{cols:"12",md:"4"}},[e.supportsBedMesh?t("bed-mesh-controls",{staticClass:"mb-2 mb-sm-4"}):e._e(),t("end-stops-card",{staticClass:"mb-2 mb-sm-4"}),e.supportsRunoutSensors?t("runout-sensors-card",{attrs:{fullscreen:""}}):e._e()],1)],1):e._e()},Yle=[],Kle=A(N_,Zle,Yle,!1,null,null);const Xle=Kle.exports;var tr=[];for(var yg=0;yg<256;++yg)tr.push((yg+256).toString(16).slice(1));function Qle(r,e=0){return(tr[r[e+0]]+tr[r[e+1]]+tr[r[e+2]]+tr[r[e+3]]+"-"+tr[r[e+4]]+tr[r[e+5]]+"-"+tr[r[e+6]]+tr[r[e+7]]+"-"+tr[r[e+8]]+tr[r[e+9]]+"-"+tr[r[e+10]]+tr[r[e+11]]+tr[r[e+12]]+tr[r[e+13]]+tr[r[e+14]]+tr[r[e+15]]).toLowerCase()}var $p,Jle=new Uint8Array(16);function ece(){if(!$p&&($p=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!$p))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return $p(Jle)}var tce=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const l5={randomUUID:tce};function jl(r,e,t){if(l5.randomUUID&&!e&&!r)return l5.randomUUID();r=r||{};var s=r.random||(r.rng||ece)();return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Qle(s)}var rce=Object.defineProperty,sce=Object.getOwnPropertyDescriptor,Vl=(r,e,t,s)=>{for(var n=s>1?void 0:s?sce(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&rce(e,t,n),n};let Mi=class extends b{constructor(){super(...arguments);f(this,"data");f(this,"options");f(this,"height");f(this,"chart");f(this,"ready",!1)}onData(e){this.chart&&e&&e.length&&this.chart.setOption({dataset:{source:e}})}get opts(){return X3({grid:{top:0,left:0,right:0,bottom:0}},this.options)}mounted(){this.data&&!this.ready&&(this.ready=!0)}beforeDestroy(){typeof window>"u"||this.chart&&this.chart.dispose()}};Vl([$({type:Array,required:!0})],Mi.prototype,"data",2);Vl([$({type:Object,default:()=>{}})],Mi.prototype,"options",2);Vl([$({type:String,default:"100%"})],Mi.prototype,"height",2);Vl([ke("chart")],Mi.prototype,"chart",2);Vl([Ae("data")],Mi.prototype,"onData",1);Mi=Vl([L({})],Mi);var nce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t("div",{staticClass:"chart",style:{height:e.height}},[e.ready?t("e-chart",{ref:"chart",staticStyle:{overflow:"initial"},attrs:{option:e.opts,"update-options":{notMerge:!0},"init-options":{renderer:"svg"},autoresize:""}}):e._e()],1)])},ice=[],ace=A(Mi,nce,ice,!1,null,"71d60acf");const Nl=ace.exports;var oce=Object.defineProperty,lce=Object.getOwnPropertyDescriptor,$7=(r,e,t,s)=>{for(var n=s>1?void 0:s?lce(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&oce(e,t,n),n};let Sf=class extends Z(lt){constructor(){super(...arguments);f(this,"config")}get chartData(){return this.$store.state.charts.diagnostics||[]}get options(){const t=this.$store.state.config.uiSettings.theme.isDark,s=t?"rgba(255,255,255,0.65)":"rgba(0,0,0,0.45)",n=this.isMobileViewport?13:14,i={color:t?"#ffffff":"#000000",opacity:.05},a={color:t?"#ffffff":"#000000",opacity:.5};let o=this.isMobileViewport?15:20;this.config.axes.length>1&&(o=this.isMobileViewport?35:45);const l={top:20,left:this.isMobileViewport?35:45,right:o,bottom:this.isMobileViewport?52:38},c={backgroundColor:t?"rgba(15,15,15,0.75)":"rgba(255,255,255,0.75)",borderColor:t?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.85)",textStyle:{color:s,fontSize:n}},u=this.$vuetify.theme.currentTheme,d=[u.primary,u.secondary],p=this.series;return{grid:l,color:d,textStyle:{fontFamily:"Roboto"},legend:{show:!1},tooltip:{...c,trigger:"axis",confine:!1,axisPointer:{type:"line",lineStyle:a,label:{color:s,fontSize:n,backgroundColor:c.backgroundColor}},formatter:m=>{let g="";return m.forEach(v=>{const y=p[v.seriesIndex];if(!y.displayLegend)return;let C=v.data[y.encode.y];typeof C=="number"?C=Math.round(C*1e3)/1e3:C||(C="-"),g+=`
<div>
${v.marker}
<span style="font-size:${n}px;color:${s};font-weight:400;margin-left:2px">
${this.sanitize(v.seriesName)}:
</span>
<span style="float:right;margin-left:20px;font-size:${n}px;color:${s};font-weight:900">
${this.sanitize(C)} ${this.sanitize(y.unit)}
</span>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>`}),g}},xAxis:{type:"time",boundaryGap:!1,max:"dataMax",min:m=>{const g=this.$store.getters["charts/getChartRetention"];return m.max-g*1e3},axisTick:{show:!1},splitLine:{show:!0,lineStyle:i},axisLabel:{interval:0,margin:14,color:c.textStyle.color,fontSize:n,formatter:"{H}:{mm}",rotate:this.isMobileViewport?45:0},axisPointer:{label:{show:!0,margin:9,formatter:this.xAxisPointerFormatter}}},yAxis:this.config.axes.map((m,g)=>({name:m.enabled&&m.showLegend?m.unit:void 0,nameTextStyle:{fontSize:n,color:s,align:["left","right"][g]},nameGap:8,show:!0,type:"value",position:["left","right"][g],splitLine:{show:!0,lineStyle:i},min:[void 0,""].includes(m.min)?void 0:m.min,max:[void 0,""].includes(m.max)?void 0:m.max,axisLabel:m.showLegend?{color:s,fontSize:n,formatter:"{value}"}:void 0})),dataZoom:[{type:"inside",zoomOnMouseWheel:"shift"}],series:p}}sanitize(t){return t.toString().replace(/[^a-z0-9]/gi,s=>`&#${s.charCodeAt(0)};`)}get series(){const t=[];for(const[s,n]of Object.entries(this.config.axes))if(n.enabled)for(const i of n.metrics)t.push({name:i.name,unit:n.unit,displayLegend:i.style.displayLegend,type:"line",yAxisIndex:+s,showSymbol:!1,animation:!1,color:i.style.lineColor,emphasis:{lineStyle:{width:1.5}},lineStyle:{color:i.style.lineColor,type:i.style.lineStyle,width:1.5,opacity:1},areaStyle:{opacity:i.style.fillOpacity/100,color:i.style.fillColor??i.style.lineColor},encode:{x:"date",y:i.collector}});return t}xAxisPointerFormatter(t){return this.$filters.formatTimeWithSeconds(t.value)}};$7([$({type:Object,required:!0})],Sf.prototype,"config",2);Sf=$7([L({})],Sf);var cce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.config.title,icon:`$${e.config.icon}`,draggable:"","layout-path":`diagnostics.${e.config.id}`},scopedSlots:e._u([{key:"menu",fn:function(){return[t(xn,[t(M,{attrs:{small:""},on:{click:function(s){return e.$emit("edit",e.config)}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $edit ")]),e._v(" "+e._s(e.$t("app.general.title.edit_chart"))+" ")],1)],1)]},proxy:!0}])},[t(Nl,{staticClass:"mt-2",attrs:{data:e.chartData,height:`${e.config.height}px`,options:e.options}})],1)},uce=[],dce=A(Sf,cce,uce,!1,null,null);const pce=dce.exports;var hce=Object.defineProperty,fce=Object.getOwnPropertyDescriptor,S7=(r,e,t,s)=>{for(var n=s>1?void 0:s?fce(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&hce(e,t,n),n};let wf=class extends b{constructor(){super(...arguments);f(this,"config")}get icons(){return Object.keys(ou).sort().map(s=>({text:s,value:s}))}};S7([$({type:Object,required:!0})],wf.prototype,"config",2);wf=S7([L({})],wf);var mce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(B,{attrs:{title:e.$t("app.setting.label.title")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.config.title,callback:function(s){e.$set(e.config,"title",s)},expression:"config.title"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.icon")}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.icons},scopedSlots:e._u([{key:"item",fn:function({item:s}){return[t(w,{attrs:{dense:"",color:"primary"}},[e._v(" $"+e._s(s.text)+" ")]),t("span",{staticClass:"ml-2"},[e._v(e._s(s.text))])]}},{key:"selection",fn:function({item:s}){return[t(w,{attrs:{color:"primary"}},[e._v(" $"+e._s(s.text)+" ")]),t("span",{staticClass:"ml-2"},[e._v(e._s(s.text))])]}}]),model:{value:e.config.icon,callback:function(s){e.$set(e.config,"icon",s)},expression:"config.icon"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.height")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"px",rules:[e.$rules.required,e.$rules.numberGreaterThanOrEqual(1)]},model:{value:e.config.height,callback:function(s){e.$set(e.config,"height",s)},expression:"config.height"}})],1)],1)},gce=[],vce=A(wf,mce,gce,!1,null,null);const _ce=vce.exports;var yce=Object.defineProperty,bce=Object.getOwnPropertyDescriptor,w7=(r,e,t,s)=>{for(var n=s>1?void 0:s?bce(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&yce(e,t,n),n};let xf=class extends b{constructor(){super(...arguments);f(this,"config");f(this,"currentStep",1);f(this,"steps",[this.$t("app.setting.label.left_y"),this.$t("app.setting.label.right_y")])}};w7([$({type:Object,required:!0})],xf.prototype,"config",2);xf=w7([L({})],xf);var $ce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(_b,{attrs:{"non-linear":"",flat:""},model:{value:e.currentStep,callback:function(s){e.currentStep=s},expression:"currentStep"}},[t($b,[e._l(e.steps,function(s,n){return[t(yb,{key:`step-${n}`,attrs:{step:n+1,editable:""}},[e._v(" "+e._s(s)+" ")]),n<e.steps.length-1?t(R,{key:n}):e._e()]})],2),e._l(e.steps,function(s,n){return t(bb,{key:`${n}-content`,staticClass:"pt-4",attrs:{step:n+1}},[e.currentStep===n+1?[t(B,{attrs:{title:e.$t("app.setting.label.enable")}},[t(Ce,{attrs:{"hide-details":""},model:{value:e.config.axes[n].enabled,callback:function(i){e.$set(e.config.axes[n],"enabled",i)},expression:"config.axes[i].enabled"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_legend")}},[t(Ce,{attrs:{"hide-details":""},model:{value:e.config.axes[n].showLegend,callback:function(i){e.$set(e.config.axes[n],"showLegend",i)},expression:"config.axes[i].showLegend"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.unit")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.config.axes[n].unit,callback:function(i){e.$set(e.config.axes[n],"unit",i)},expression:"config.axes[i].unit"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.min")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",hint:e.$t("app.setting.label.optional"),rules:[e.$rules.numberValid],suffix:e.config.axes[n].unit},model:{value:e.config.axes[n].min,callback:function(i){e.$set(e.config.axes[n],"min",i)},expression:"config.axes[i].min"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.max")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",hint:e.$t("app.setting.label.optional"),rules:[e.$rules.numberValid],suffix:e.config.axes[n].unit},model:{value:e.config.axes[n].max,callback:function(i){e.$set(e.config.axes[n],"max",i)},expression:"config.axes[i].max"}})],1)]:e._e()],2)})],2)},Sce=[],wce=A(xf,$ce,Sce,!1,null,"57c1119b");const xce=wce.exports,Sp={};function x7(r,e){let t;e?Sp[e]?t=Sp[e]:Sp[e]||(Sp[e]=t=c5()):t=c5();const s=new t.contentWindow.Function(r)();return e||t.remove(),s}function c5(){const r=document.createElement("iframe");return r.style.display="none",document.body.appendChild(r),r}var C7={exports:{}};const Cce=TK(aT);var bg={exports:{}};/*!
* clipboard.js v2.0.11
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/var u5;function Pce(){return u5||(u5=1,function(r,e){(function(s,n){r.exports=n()})(Mb,function(){return function(){var t={686:function(i,a,o){o.d(a,{default:function(){return Q}});var l=o(279),c=o.n(l),u=o(370),d=o.n(u),p=o(817),h=o.n(p);function m(q){try{return document.execCommand(q)}catch{return!1}}var g=function(Y){var re=h()(Y);return m("cut"),re},v=g;function y(q){var Y=document.documentElement.getAttribute("dir")==="rtl",re=document.createElement("textarea");re.style.fontSize="12pt",re.style.border="0",re.style.padding="0",re.style.margin="0",re.style.position="absolute",re.style[Y?"right":"left"]="-9999px";var se=window.pageYOffset||document.documentElement.scrollTop;return re.style.top="".concat(se,"px"),re.setAttribute("readonly",""),re.value=q,re}var C=function(Y,re){var se=y(Y);re.container.appendChild(se);var _e=h()(se);return m("copy"),se.remove(),_e},x=function(Y){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},se="";return typeof Y=="string"?se=C(Y,re):Y instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(Y==null?void 0:Y.type)?se=C(Y.value,re):(se=h()(Y),m("copy")),se},S=x;function E(q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(re){return typeof re}:E=function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},E(q)}var G=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},re=Y.action,se=re===void 0?"copy":re,_e=Y.container,Re=Y.target,wt=Y.text;if(se!=="copy"&&se!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(Re!==void 0)if(Re&&E(Re)==="object"&&Re.nodeType===1){if(se==="copy"&&Re.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(se==="cut"&&(Re.hasAttribute("readonly")||Re.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(wt)return S(wt,{container:_e});if(Re)return se==="cut"?v(Re):S(Re,{container:_e})},K=G;function le(q){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?le=function(re){return typeof re}:le=function(re){return re&&typeof Symbol=="function"&&re.constructor===Symbol&&re!==Symbol.prototype?"symbol":typeof re},le(q)}function ue(q,Y){if(!(q instanceof Y))throw new TypeError("Cannot call a class as a function")}function ie(q,Y){for(var re=0;re<Y.length;re++){var se=Y[re];se.enumerable=se.enumerable||!1,se.configurable=!0,"value"in se&&(se.writable=!0),Object.defineProperty(q,se.key,se)}}function fe(q,Y,re){return Y&&ie(q.prototype,Y),re&&ie(q,re),q}function k(q,Y){if(typeof Y!="function"&&Y!==null)throw new TypeError("Super expression must either be null or a function");q.prototype=Object.create(Y&&Y.prototype,{constructor:{value:q,writable:!0,configurable:!0}}),Y&&T(q,Y)}function T(q,Y){return T=Object.setPrototypeOf||function(se,_e){return se.__proto__=_e,se},T(q,Y)}function P(q){var Y=V();return function(){var se=U(q),_e;if(Y){var Re=U(this).constructor;_e=Reflect.construct(se,arguments,Re)}else _e=se.apply(this,arguments);return O(this,_e)}}function O(q,Y){return Y&&(le(Y)==="object"||typeof Y=="function")?Y:j(q)}function j(q){if(q===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return q}function V(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function U(q){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(re){return re.__proto__||Object.getPrototypeOf(re)},U(q)}function N(q,Y){var re="data-clipboard-".concat(q);if(Y.hasAttribute(re))return Y.getAttribute(re)}var J=function(q){k(re,q);var Y=P(re);function re(se,_e){var Re;return ue(this,re),Re=Y.call(this),Re.resolveOptions(_e),Re.listenClick(se),Re}return fe(re,[{key:"resolveOptions",value:function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof _e.action=="function"?_e.action:this.defaultAction,this.target=typeof _e.target=="function"?_e.target:this.defaultTarget,this.text=typeof _e.text=="function"?_e.text:this.defaultText,this.container=le(_e.container)==="object"?_e.container:document.body}},{key:"listenClick",value:function(_e){var Re=this;this.listener=d()(_e,"click",function(wt){return Re.onClick(wt)})}},{key:"onClick",value:function(_e){var Re=_e.delegateTarget||_e.currentTarget,wt=this.action(Re)||"copy",Or=K({action:wt,container:this.container,target:this.target(Re),text:this.text(Re)});this.emit(Or?"success":"error",{action:wt,text:Or,trigger:Re,clearSelection:function(){Re&&Re.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(_e){return N("action",_e)}},{key:"defaultTarget",value:function(_e){var Re=N("target",_e);if(Re)return document.querySelector(Re)}},{key:"defaultText",value:function(_e){return N("text",_e)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(_e){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(_e,Re)}},{key:"cut",value:function(_e){return v(_e)}},{key:"isSupported",value:function(){var _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],Re=typeof _e=="string"?[_e]:_e,wt=!!document.queryCommandSupported;return Re.forEach(function(Or){wt=wt&&!!document.queryCommandSupported(Or)}),wt}}]),re}(c()),Q=J},828:function(i){var a=9;if(typeof Element<"u"&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}function l(c,u){for(;c&&c.nodeType!==a;){if(typeof c.matches=="function"&&c.matches(u))return c;c=c.parentNode}}i.exports=l},438:function(i,a,o){var l=o(828);function c(p,h,m,g,v){var y=d.apply(this,arguments);return p.addEventListener(m,y,v),{destroy:function(){p.removeEventListener(m,y,v)}}}function u(p,h,m,g,v){return typeof p.addEventListener=="function"?c.apply(null,arguments):typeof m=="function"?c.bind(null,document).apply(null,arguments):(typeof p=="string"&&(p=document.querySelectorAll(p)),Array.prototype.map.call(p,function(y){return c(y,h,m,g,v)}))}function d(p,h,m,g){return function(v){v.delegateTarget=l(v.target,h),v.delegateTarget&&g.call(p,v)}}i.exports=u},879:function(i,a){a.node=function(o){return o!==void 0&&o instanceof HTMLElement&&o.nodeType===1},a.nodeList=function(o){var l=Object.prototype.toString.call(o);return o!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in o&&(o.length===0||a.node(o[0]))},a.string=function(o){return typeof o=="string"||o instanceof String},a.fn=function(o){var l=Object.prototype.toString.call(o);return l==="[object Function]"}},370:function(i,a,o){var l=o(879),c=o(438);function u(m,g,v){if(!m&&!g&&!v)throw new Error("Missing required arguments");if(!l.string(g))throw new TypeError("Second argument must be a String");if(!l.fn(v))throw new TypeError("Third argument must be a Function");if(l.node(m))return d(m,g,v);if(l.nodeList(m))return p(m,g,v);if(l.string(m))return h(m,g,v);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(m,g,v){return m.addEventListener(g,v),{destroy:function(){m.removeEventListener(g,v)}}}function p(m,g,v){return Array.prototype.forEach.call(m,function(y){y.addEventListener(g,v)}),{destroy:function(){Array.prototype.forEach.call(m,function(y){y.removeEventListener(g,v)})}}}function h(m,g,v){return c(document.body,m,g,v)}i.exports=u},817:function(i){function a(o){var l;if(o.nodeName==="SELECT")o.focus(),l=o.value;else if(o.nodeName==="INPUT"||o.nodeName==="TEXTAREA"){var c=o.hasAttribute("readonly");c||o.setAttribute("readonly",""),o.select(),o.setSelectionRange(0,o.value.length),c||o.removeAttribute("readonly"),l=o.value}else{o.hasAttribute("contenteditable")&&o.focus();var u=window.getSelection(),d=document.createRange();d.selectNodeContents(o),u.removeAllRanges(),u.addRange(d),l=u.toString()}return l}i.exports=a},279:function(i){function a(){}a.prototype={on:function(o,l,c){var u=this.e||(this.e={});return(u[o]||(u[o]=[])).push({fn:l,ctx:c}),this},once:function(o,l,c){var u=this;function d(){u.off(o,d),l.apply(c,arguments)}return d._=l,this.on(o,d,c)},emit:function(o){var l=[].slice.call(arguments,1),c=((this.e||(this.e={}))[o]||[]).slice(),u=0,d=c.length;for(u;u<d;u++)c[u].fn.apply(c[u].ctx,l);return this},off:function(o,l){var c=this.e||(this.e={}),u=c[o],d=[];if(u&&l)for(var p=0,h=u.length;p<h;p++)u[p].fn!==l&&u[p].fn._!==l&&d.push(u[p]);return d.length?c[o]=d:delete c[o],this}},i.exports=a,i.exports.TinyEmitter=a}},s={};function n(i){if(s[i])return s[i].exports;var a=s[i]={exports:{}};return t[i](a,a.exports,n),a.exports}return function(){n.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return n.d(a,{a}),a}}(),function(){n.d=function(i,a){for(var o in a)n.o(a,o)&&!n.o(i,o)&&Object.defineProperty(i,o,{enumerable:!0,get:a[o]})}}(),function(){n.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)}}(),n(686)}().default})}(bg)),bg.exports}(function(r,e){(function(t,s){r.exports=s(Cce,Pce())})(Mb,function(t,s){return a={},n.m=i=[function(o,l,c){function u(d,p,h,m,g,v,y,C){var x,S,E=typeof d=="function"?d.options:d;return p&&(E.render=p,E.staticRenderFns=h,E._compiled=!0),m&&(E.functional=!0),v&&(E._scopeId="data-v-"+v),y?(x=function(G){(G=G||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(G=__VUE_SSR_CONTEXT__),g&&g.call(this,G),G&&G._registeredComponents&&G._registeredComponents.add(y)},E._ssrRegister=x):g&&(x=C?function(){g.call(this,(E.functional?this.parent:this).$root.$options.shadowRoot)}:g),x&&(E.functional?(E._injectStyles=x,S=E.render,E.render=function(G,K){return x.call(K),S(G,K)}):(C=E.beforeCreate,E.beforeCreate=C?[].concat(C,x):[x])),{exports:d,options:E}}c.d(l,"a",function(){return u})},function(o,l,c){c.r(l);var u,d=c(2),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),h(c(29));var u=h(c(21)),d=h(c(41)),p=c(42);function h(m){return m&&m.__esModule?m:{default:m}}l.default={name:"JsonViewer",components:{JsonBox:u.default},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(m){return m.toLocaleString()}},previewMode:{type:Boolean,default:!1},showArrayIndex:{type:Boolean,default:!0},showDoubleQuotes:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat,onKeyclick:this.onKeyclick}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var m=this.copyable;return{copyText:m.copyText||"copy",copiedText:m.copiedText||"copied!",timeout:m.timeout||2e3,align:m.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var m=this;this.debounceResized=(0,p.debounce)(this.debResized.bind(this),200),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new d.default(this.$refs.clip,{container:this.$refs.viewer,text:function(){return JSON.stringify(m.value,null,2)}}).on("success",function(g){m.onCopied(g)})},methods:{onResized:function(){this.debounceResized()},debResized:function(){var m=this;this.$nextTick(function(){m.$refs.jsonBox&&(250<=m.$refs.jsonBox.$el.clientHeight?m.expandableCode=!0:m.expandableCode=!1)})},onCopied:function(m){var g=this;this.copied||(this.copied=!0,setTimeout(function(){g.copied=!1},this.copyText.timeout),this.$emit("copied",m))},toggleExpandCode:function(){this.expandCode=!this.expandCode},onKeyclick:function(m){this.$emit("keyclick",m)}}}},function(o,l,c){c.r(l);var u,d=c(4),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0});var u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},d=x(c(30)),p=x(c(31)),h=x(c(32)),m=x(c(33)),g=x(c(34)),v=x(c(35)),y=x(c(36)),C=x(c(37));function x(S){return S&&S.__esModule?S:{default:S}}l.default={name:"JsonBox",inject:["expandDepth","onKeyclick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean,forceExpand:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:{type:String,default:"$"}},data:function(){return{expand:!0,forceExpandMe:this.forceExpand}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)||this.forceExpandMe},methods:{toggle:function(){this.expand=!this.expand,this.dispatchEvent()},toggleAll:function(){this.expand=!this.expand,this.forceExpandMe=this.expand,this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var S=document.createEvent("Event");S.initEvent("resized",!0,!1),this.$el.dispatchEvent(S)}},getPath:function(){for(var S=[this.keyName],E=this.$parent;E.depth;)E.$el.classList.contains("jv-node")&&S.push(E.keyName),E=E.$parent;return S.reverse()}},render:function(S){var E=this,G=[],K=void 0;this.value===null||this.value===void 0?K=p.default:Array.isArray(this.value)?K=v.default:Object.prototype.toString.call(this.value)==="[object Date]"?K=C.default:u(this.value)==="object"?K=g.default:typeof this.value=="number"?K=h.default:typeof this.value=="string"?K=d.default:typeof this.value=="boolean"?K=m.default:typeof this.value=="function"&&(K=y.default);var le=this.keyName&&this.value&&(Array.isArray(this.value)||u(this.value)==="object"&&Object.prototype.toString.call(this.value)!=="[object Date]");return!this.previewMode&&le&&G.push(S("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(ue){ue.altKey?E.toggleAll():E.toggle()}}})),this.keyName&&G.push(S("span",{class:{"jv-key":!0},domProps:{innerText:this.showDoubleQuotes?'"'+this.keyName+'":':this.keyName+":"},on:{click:function(){E.onKeyclick(E.path)}}})),G.push(S(K,{class:{"jv-push":!0},props:{jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,forceExpand:this.forceExpandMe,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path},on:{"update:expand":function(ue){E.expand=ue},"update:expandAll":function(ue){E.expand=ue,E.forceExpandMe=E.expand}}})),S("div",{class:{"jv-node":!0,"jv-key-node":!!this.keyName&&!le,toggle:!this.previewMode&&le}},G)}}},function(o,l,c){c.r(l);var u,d=c(6),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0});var u=/^\w+:\/\//;l.default={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(d){var p=this.jsonValue,h=u.test(p),m=void 0;return this.expand?(m={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"}).domProps=h?{innerHTML:'"'+(p='<a href="'+p+'" target="_blank" class="jv-link">'+p+"</a>").toString()+'"'}:{innerText:'"'+p.toString()+'"'}:m={class:{"jv-ellipsis":!0},on:{click:this.toggle},domProps:{innerText:"..."}},d("span",{},[this.canExtend&&d("span",{class:{"jv-toggle":!0,open:this.expand},on:{click:this.toggle}}),d("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),d("span",m)])}}},function(o,l,c){c.r(l);var u,d=c(8),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(u,d){return u("span",{class:{"jv-item":!0,"jv-undefined":!0},domProps:{innerText:d.props.jsonValue===null?"null":"undefined"}})}}},function(o,l,c){c.r(l);var u,d=c(10),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(u,h){var p=h.props,h=Number.isInteger(p.jsonValue);return u("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":h,"jv-number-float":!h},domProps:{innerText:p.jsonValue.toString()}})}}},function(o,l,c){c.r(l);var u,d=c(12),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(u,d){return u("span",{class:{"jv-item":!0,"jv-boolean":!0},domProps:{innerText:d.props.jsonValue.toString()}})}}},function(o,l,c){c.r(l);var u,d=c(14),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0});var u=u(21),d=(u=u)&&u.__esModule?u:{default:u};l.default={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,forceExpand:Boolean,sort:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:{}}},computed:{ordered:function(){var p=this;if(!this.sort)return this.value;var h={};return Object.keys(this.value).sort().forEach(function(m){h[m]=p.value[m]}),h}},watch:{jsonValue:function(p){this.setValue(p)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(p){var h=this;setTimeout(function(){h.value=p},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var p=document.createEvent("Event");p.initEvent("resized",!0,!1),this.$el.dispatchEvent(p)}}},render:function(p){var h,m=this,g=[];if(this.previewMode||this.keyName||g.push(p("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(y){y.altKey?m.toggleAll():m.toggle()}}})),g.push(p("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"{"}})),this.expand)for(var v in this.ordered)this.ordered.hasOwnProperty(v)&&(h=this.ordered[v],g.push(p(d.default,{key:v,props:{sort:this.sort,keyName:v,depth:this.depth+1,value:h,previewMode:this.previewMode,forceExpand:this.forceExpand,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path+"."+v}})));return!this.expand&&Object.keys(this.value).length&&g.push(p("span",{class:{"jv-ellipsis":!0},on:{click:function(y){y.altKey?m.toggleAll():m.toggle()}},attrs:{title:"click to reveal object content (keys: "+Object.keys(this.ordered).join(", ")+")"},domProps:{innerText:"..."}})),g.push(p("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"}"}})),p("span",g)}}},function(o,l,c){c.r(l);var u,d=c(16),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0});var u=u(21),d=(u=u)&&u.__esModule?u:{default:u};l.default={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,forceExpand:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:[]}},watch:{jsonValue:function(p){this.setValue(p)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(p){var h=this,m=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0;m===0&&(this.value=[]),setTimeout(function(){p.length>m&&(h.value.push(p[m]),h.setValue(p,m+1))},0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch{var p=document.createEvent("Event");p.initEvent("resized",!0,!1),this.$el.dispatchEvent(p)}}},render:function(p){var h=this,m=[];return this.previewMode||this.keyName||m.push(p("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(g){g.altKey?h.toggleAll():h.toggle()}}})),m.push(p("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"["}})),this.expand&&this.value.forEach(function(g,v){m.push(p(d.default,{key:v,props:{sort:h.sort,keyName:h.showArrayIndex?""+v:"",depth:h.depth+1,value:g,previewMode:h.previewMode,forceExpand:h.forceExpand,showArrayIndex:h.showArrayIndex,showDoubleQuotes:h.showDoubleQuotes,path:h.path+"."+v}}))}),!this.expand&&this.value.length&&m.push(p("span",{class:{"jv-ellipsis":!0},on:{click:function(g){g.altKey?h.toggleAll():h.toggle()}},attrs:{title:"click to reveal "+this.value.length+" hidden items"},domProps:{innerText:"..."}})),m.push(p("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"]"}})),p("span",m)}}},function(o,l,c){c.r(l);var u,d=c(18),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(u,d){return u("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:d.props.jsonValue.toString()},domProps:{innerHTML:"&lt;function&gt;"}})}}},function(o,l,c){c.r(l);var u,d=c(20),p=c.n(d);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);l.default=p.a},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.default={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(u,p){var h=p.props,p=p.injections,h=h.jsonValue;return u("span",{class:{"jv-item":!0,"jv-string":!0},domProps:{innerText:'"'+(0,p.timeformat)(h)+'"'}})}}},function(o,l,c){c.r(l);var u,d=c(3);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);c(38);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/json-box.vue",l.default=p.exports},function(o,l,c){function u(){var p=this,h=p.$createElement;return(h=p._self._c||h)("div",{ref:"viewer",class:p.jvClass},[p.copyable?h("div",{class:"jv-tooltip "+(p.copyText.align||"right")},[h("span",{ref:"clip",staticClass:"jv-button",class:{copied:p.copied}},[p._t("copy",function(){return[p._v(`
`+p._s(p.copied?p.copyText.copiedText:p.copyText.copyText)+`
`)]},{copied:p.copied})],2)]):p._e(),p._v(" "),h("div",{staticClass:"jv-code",class:{open:p.expandCode,boxed:p.boxed}},[h("json-box",{ref:"jsonBox",attrs:{value:p.value,sort:p.sort,"preview-mode":p.previewMode,"show-array-index":p.showArrayIndex,"show-double-quotes":p.showDoubleQuotes},on:{keyclick:p.onKeyclick}})],1),p._v(" "),p.expandableCode&&p.boxed?h("div",{staticClass:"jv-more",on:{click:p.toggleExpandCode}},[h("span",{staticClass:"jv-toggle",class:{open:!!p.expandCode}})]):p._e()])}var d=[];u._withStripped=!0,c.d(l,"a",function(){return u}),c.d(l,"b",function(){return d})},function(o,l,c){var u=c(39);typeof u=="string"&&(u=[[o.i,u,""]]);var d={hmr:!0,transform:void 0};c(25)(u,d),u.locals&&(o.exports=u.locals)},function(o,l,c){o.exports=function(u){var d=[];return d.toString=function(){return this.map(function(p){var h=function(m,g){var v=m[1]||"",y=m[3];return y?g&&typeof btoa=="function"?(m=function(C){return C=btoa(unescape(encodeURIComponent(JSON.stringify(C)))),C="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(C),"/*# ".concat(C," */")}(y),g=y.sources.map(function(C){return"/*# sourceURL=".concat(y.sourceRoot||"").concat(C," */")}),[v].concat(g).concat([m]).join(`
`)):[v].join(`
`):v}(p,u);return p[2]?"@media ".concat(p[2]," {").concat(h,"}"):h}).join("")},d.i=function(p,h,m){typeof p=="string"&&(p=[[null,p,""]]);var g={};if(m)for(var v=0;v<this.length;v++){var y=this[v][0];y!=null&&(g[y]=!0)}for(var C=0;C<p.length;C++){var x=[].concat(p[C]);m&&g[x[0]]||(h&&(x[2]?x[2]="".concat(h," and ").concat(x[2]):x[2]=h),d.push(x))}},d}},function(o,l,c){var u,d,p,h={},m=(u=function(){return window&&document&&document.all&&!window.atob},function(){return d=d===void 0?u.apply(this,arguments):d}),g=(p={},function(P){if(p[P]===void 0){var O=(function(j){return document.querySelector(j)}).call(this,P);if(O instanceof window.HTMLIFrameElement)try{O=O.contentDocument.head}catch{O=null}p[P]=O}return p[P]}),v=null,y=0,C=[],x=c(40);function S(P,O){for(var j=0;j<P.length;j++){var V=P[j],U=h[V.id];if(U){U.refs++;for(var N=0;N<U.parts.length;N++)U.parts[N](V.parts[N]);for(;N<V.parts.length;N++)U.parts.push(ie(V.parts[N],O))}else{for(var J=[],N=0;N<V.parts.length;N++)J.push(ie(V.parts[N],O));h[V.id]={id:V.id,refs:1,parts:J}}}}function E(P,O){for(var j=[],V={},U=0;U<P.length;U++){var J=P[U],N=O.base?J[0]+O.base:J[0],J={css:J[1],media:J[2],sourceMap:J[3]};V[N]?V[N].parts.push(J):j.push(V[N]={id:N,parts:[J]})}return j}function G(P,O){var j=g(P.insertInto);if(!j)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var V=C[C.length-1];if(P.insertAt==="top")V?V.nextSibling?j.insertBefore(O,V.nextSibling):j.appendChild(O):j.insertBefore(O,j.firstChild),C.push(O);else if(P.insertAt==="bottom")j.appendChild(O);else{if(typeof P.insertAt!="object"||!P.insertAt.before)throw new Error(`[Style Loader]
Invalid value for parameter 'insertAt' ('options.insertAt') found.
Must be 'top', 'bottom', or Object.
(https://github.com/webpack-contrib/style-loader#insertat)
`);P=g(P.insertInto+" "+P.insertAt.before),j.insertBefore(O,P)}}function K(P){P.parentNode!==null&&(P.parentNode.removeChild(P),0<=(P=C.indexOf(P))&&C.splice(P,1))}function le(P){var O=document.createElement("style");return P.attrs.type="text/css",ue(O,P.attrs),G(P,O),O}function ue(P,O){Object.keys(O).forEach(function(j){P.setAttribute(j,O[j])})}function ie(P,O){var j,V,U,N,J;if(O.transform&&P.css){if(!(N=O.transform(P.css)))return function(){};P.css=N}return U=O.singleton?(J=y++,j=v=v||le(O),V=T.bind(null,j,J,!1),T.bind(null,j,J,!0)):P.sourceMap&&typeof URL=="function"&&typeof URL.createObjectURL=="function"&&typeof URL.revokeObjectURL=="function"&&typeof Blob=="function"&&typeof btoa=="function"?(N=O,J=document.createElement("link"),N.attrs.type="text/css",N.attrs.rel="stylesheet",ue(J,N.attrs),G(N,J),j=J,V=(function(Q,q,_e){var re=_e.css,se=_e.sourceMap,_e=q.convertToAbsoluteUrls===void 0&&se;(q.convertToAbsoluteUrls||_e)&&(re=x(re)),se&&(re+=`
/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(se))))+" */"),se=new Blob([re],{type:"text/css"}),re=Q.href,Q.href=URL.createObjectURL(se),re&&URL.revokeObjectURL(re)}).bind(null,j,O),function(){K(j),j.href&&URL.revokeObjectURL(j.href)}):(j=le(O),V=(function(Q,re){var Y=re.css,re=re.media;if(re&&Q.setAttribute("media",re),Q.styleSheet)Q.styleSheet.cssText=Y;else{for(;Q.firstChild;)Q.removeChild(Q.firstChild);Q.appendChild(document.createTextNode(Y))}}).bind(null,j),function(){K(j)}),V(P),function(Q){Q?Q.css===P.css&&Q.media===P.media&&Q.sourceMap===P.sourceMap||V(P=Q):U()}}o.exports=function(P,O){if(typeof DEBUG<"u"&&DEBUG&&typeof document!="object")throw new Error("The style-loader cannot be used in a non-browser environment");(O=O||{}).attrs=typeof O.attrs=="object"?O.attrs:{},O.singleton||typeof O.singleton=="boolean"||(O.singleton=m()),O.insertInto||(O.insertInto="head"),O.insertAt||(O.insertAt="bottom");var j=E(P,O);return S(j,O),function(V){for(var U=[],N=0;N<j.length;N++){var J=j[N];(Q=h[J.id]).refs--,U.push(Q)}V&&S(E(V,O),O);for(var Q,N=0;N<U.length;N++)if((Q=U[N]).refs===0){for(var q=0;q<Q.parts.length;q++)Q.parts[q]();delete h[Q.id]}}};var fe,k=(fe=[],function(P,O){return fe[P]=O,fe.filter(Boolean).join(`
`)});function T(P,O,U,V){var U=U?"":V.css;P.styleSheet?P.styleSheet.cssText=k(O,U):(V=document.createTextNode(U),(U=P.childNodes)[O]&&P.removeChild(U[O]),U.length?P.insertBefore(V,U[O]):P.appendChild(V))}},function(o,l,c){var u=c(44);typeof u=="string"&&(u=[[o.i,u,""]]);var d={hmr:!0,transform:void 0};c(25)(u,d),u.locals&&(o.exports=u.locals)},function(o,l,u){Object.defineProperty(l,"__esModule",{value:!0});var u=u(28),d=(u=u)&&u.__esModule?u:{default:u};l.default=Object.assign(d.default,{install:function(p){p.component("JsonViewer",d.default)}})},function(o,l,c){c.r(l);var u,h=c(22),d=c(1);for(u in d)u!=="default"&&function(m){c.d(l,m,function(){return d[m]})}(u);c(43);var p=c(0),h=Object(p.a)(d.default,h.a,h.b,!1,null,null,null);h.options.__file="lib/json-viewer.vue",l.default=h.exports},function(o,l){o.exports=t},function(o,l,c){c.r(l);var u,d=c(5);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-string.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(7);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-undefined.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(9);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-number.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(11);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-boolean.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(13);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-object.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(15);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-array.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(17);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-function.vue",l.default=p.exports},function(o,l,c){c.r(l);var u,d=c(19);for(u in d)u!=="default"&&function(h){c.d(l,h,function(){return d[h]})}(u);var p=c(0),p=Object(p.a)(d.default,void 0,void 0,!1,null,null,null);p.options.__file="lib/types/json-date.vue",l.default=p.exports},function(o,l,c){c(23)},function(o,l,c){(l=c(24)(!1)).push([o.i,`.jv-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}
`,""]),o.exports=l},function(o,l){o.exports=function(c){var u=typeof window<"u"&&window.location;if(!u)throw new Error("fixUrls requires window.location");if(!c||typeof c!="string")return c;var d=u.protocol+"//"+u.host,p=d+u.pathname.replace(/\/[^\/]*$/,"/");return c.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(h,g){var g=g.trim().replace(/^"(.*)"$/,function(v,y){return y}).replace(/^'(.*)'$/,function(v,y){return y});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(g)?h:(g=g.indexOf("//")===0?g:g.indexOf("/")===0?d+g:p+g.replace(/^\.\//,""),"url("+JSON.stringify(g)+")")})}},function(o,l){o.exports=s},function(o,l,c){Object.defineProperty(l,"__esModule",{value:!0}),l.debounce=function(u,d){var p=Date.now(),h=void 0;return function(){for(var m=arguments.length,g=Array(m),v=0;v<m;v++)g[v]=arguments[v];Date.now()-p<d&&h&&clearTimeout(h),h=setTimeout(function(){u.apply(void 0,g)},d),p=Date.now()}}},function(o,l,c){c(26)},function(o,l,p){var u=p(24),d=p(45),p=p(46);l=u(!1),p=d(p),l.push([o.i,".jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas, Menlo, Courier, monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:0.9;font-size:0.9em;padding:0px 4px 2px 4px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-item.jv-string .jv-link{color:#0366d6}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0px 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:30px 20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:initial !important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url("+p+`);background-repeat:no-repeat;background-size:contain;background-position:center center;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;-webkit-transition:-webkit-transform 0.1s;transition:-webkit-transform 0.1s;transition:transform 0.1s;transition:transform 0.1s, -webkit-transform 0.1s}.jv-container .jv-toggle.open{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;-webkit-transition:all 0.1s;transition:all 0.1s;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);-webkit-transition:all 0.1s;transition:all 0.1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:0.4;cursor:default}.jv-container .jv-tooltip{position:absolute}.jv-container .jv-tooltip.right{right:15px}.jv-container .jv-tooltip.left{left:15px}.jv-container .j-icon{font-size:12px}
`,""]),o.exports=l},function(o,l,c){o.exports=function(u,d){return d=d||{},typeof(u=u&&u.__esModule?u.default:u)!="string"?u:(/^['"].*['"]$/.test(u)&&(u=u.slice(1,-1)),d.hash&&(u+=d.hash),/["'() \t\n]/.test(u)||d.needQuotes?'"'.concat(u.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):u)}},function(o,l){o.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIAo8cG9seWdvbiBwb2ludHM9IjAsMCA4LDggMCwxNiIKc3R5bGU9ImZpbGw6IzY2NjtzdHJva2U6cHVycGxlO3N0cm9rZS13aWR0aDowIiAvPgo8L3N2Zz4="}],n.c=a,n.d=function(o,l,c){n.o(o,l)||Object.defineProperty(o,l,{enumerable:!0,get:c})},n.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},n.t=function(o,l){if(1&l&&(o=n(o)),8&l||4&l&&typeof o=="object"&&o&&o.__esModule)return o;var c=Object.create(null);if(n.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:o}),2&l&&typeof o!="string")for(var u in o)n.d(c,u,(function(d){return o[d]}).bind(null,u));return c},n.n=function(o){var l=o&&o.__esModule?function(){return o.default}:function(){return o};return n.d(l,"a",l),l},n.o=function(o,l){return Object.prototype.hasOwnProperty.call(o,l)},n.p="",n(n.s=27);function n(o){if(a[o])return a[o].exports;var l=a[o]={i:o,l:!1,exports:{}};return i[o].call(l.exports,l,l.exports,n),l.l=!0,l.exports}var i,a})})(C7);var Lce=C7.exports;const Ace=Il(Lce);var Ece=Object.defineProperty,Oce=Object.getOwnPropertyDescriptor,Tce=(r,e,t,s)=>{for(var n=s>1?void 0:s?Oce(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ece(e,t,n),n};let z_=class extends Z(X){get state(){return{printer:this.$store.state.printer.printer}}handleClick(e){const t=e.replace("$.","").replace(/\.(\w*[^\w\S.]+\w*)/g,(s,n)=>isNaN(n)?`['${n}']`:`[${n}]`);this.$emit("input",t)}};z_=Tce([L({components:{JsonViewer:Ace}})],z_);var kce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("json-viewer",{class:e.$vuetify.theme.dark?"jv-dark":"",attrs:{value:e.state,"expand-depth":2,sort:""},on:{keyclick:e.handleClick}})},Dce=[],Mce=A(z_,kce,Dce,!1,null,null);const Rce=Mce.exports;var Ice=Object.defineProperty,Fce=Object.getOwnPropertyDescriptor,p1=(r,e,t,s)=>{for(var n=s>1?void 0:s?Fce(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ice(e,t,n),n};let fl=class extends b{constructor(){super(...arguments);f(this,"metric");f(this,"unit");f(this,"textArea");f(this,"result","-");f(this,"browserOpen",!1)}runCollector(){let t;try{if(t=x7(`
const printer = ${JSON.stringify(this.$store.state.printer.printer)}
return JSON.stringify(eval(${JSON.stringify(this.metric.collector)}))
`),typeof t!="string")throw new Error("Metrics collector returned invalid data");t=JSON.parse(t)}catch(s){t=(s instanceof Error&&s.message)??"Unknown Error"}typeof t=="number"&&(t=Math.round(t*1e3)/1e3),this.result=t}handleExplorerClick(t){this.browserOpen=!1;const s=this.textArea.$el.querySelector("textarea");if(s){const n=s.selectionStart,i=s.selectionEnd;this.metric.collector=this.metric.collector.substring(0,n)+t+this.metric.collector.substring(i)}}};p1([$({type:Object,required:!0})],fl.prototype,"metric",2);p1([$({type:String,required:!0})],fl.prototype,"unit",2);p1([ke("textarea")],fl.prototype,"textArea",2);fl=p1([L({components:{StateExplorer:Rce}})],fl);var Hce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Ie,{attrs:{outlined:""}},[t(jm,{ref:"textarea",staticClass:"px-4",attrs:{label:e.$t("app.setting.label.collector"),spellcheck:"false","auto-grow":"","hide-details":"auto"},scopedSlots:e._u([{key:"append",fn:function(){return[t(M,{attrs:{icon:"",small:"",color:"secondary",title:e.$t("app.general.tooltip.browse_metrics")},on:{click:function(s){e.browserOpen=!0}}},[t(w,[e._v(" $magnify ")])],1),t(M,{attrs:{icon:"",small:"",color:"primary",title:e.$t("app.general.tooltip.run_collector")},on:{click:e.runCollector}},[t(w,[e._v(" $play ")])],1)]},proxy:!0}]),model:{value:e.metric.collector,callback:function(s){e.$set(e.metric,"collector",s)},expression:"metric.collector"}}),t(B,{attrs:{title:e.$t("app.setting.label.last_result")}},[t(ae,{ref:"result",attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",disabled:"",suffix:e.unit,value:e.result}})],1),e.browserOpen?t(et,{attrs:{title:e.$t("app.general.title.metrics_explorer"),"max-width":"1200","no-actions":""},model:{value:e.browserOpen,callback:function(s){e.browserOpen=s},expression:"browserOpen"}},[t(Pe,[t("state-explorer",{on:{input:e.handleExplorerClick}})],1)],1):e._e()],1)},Bce=[],jce=A(fl,Hce,Bce,!1,null,null);const Vce=jce.exports,Ba=()=>({layouts:{dashboard:{container1:[{id:"printer-status-card",enabled:!0,collapsed:!1},{id:"box-card",enabled:!0,collapsed:!1},{id:"spoolman-card",enabled:!0,collapsed:!1},{id:"camera-card",enabled:!0,collapsed:!1},{id:"toolhead-card",enabled:!0,collapsed:!1},{id:"macros-card",enabled:!0,collapsed:!1},{id:"outputs-card",enabled:!0,collapsed:!1},{id:"runout-sensors-card",enabled:!1,collapsed:!1},{id:"printer-limits-card",enabled:!0,collapsed:!1},{id:"retract-card",enabled:!0,collapsed:!1}],container2:[{id:"temperature-card",enabled:!0,collapsed:!1},{id:"sensors-card",enabled:!0,collapsed:!1},{id:"console-card",enabled:!0,collapsed:!1},{id:"jobs-card",enabled:!0,collapsed:!1},{id:"job-queue-card",enabled:!1,collapsed:!1},{id:"gcode-preview-card",enabled:!0,collapsed:!1},{id:"bed-mesh-card",enabled:!1,collapsed:!1}]},diagnostics:{container1:[{id:jl(),enabled:!0,title:"Speeds",collapsed:!1,height:300,icon:"motion",axes:[{enabled:!0,unit:"mm/s",showLegend:!0,metrics:[{collector:"printer.motion_report.live_velocity",name:"Velocity",style:{lineStyle:"solid",lineColor:"#2196f3",fillColor:null,fillOpacity:0,displayLegend:!0}},{collector:"printer.toolhead.max_velocity",name:"Max Velocity",style:{lineStyle:"dotted",lineColor:"#0075d2",fillColor:null,fillOpacity:0,displayLegend:!1}}]},{enabled:!0,unit:"mm³/s",showLegend:!0,max:20,metrics:[{collector:"printer.motion_report.live_extruder_velocity * Math.PI * (printer.configfile.settings.extruder.filament_diameter / 2) ** 2",name:"Flow",style:{lineStyle:"solid",lineColor:"#b12f36",fillColor:null,fillOpacity:5,displayLegend:!0}},{collector:"12",name:"Max Flow",style:{lineStyle:"dashed",lineColor:"#820007",fillColor:null,fillOpacity:0,displayLegend:!1}}]}]}]}}}),Nce=Ba();var zce=Object.defineProperty,Uce=Object.getOwnPropertyDescriptor,P7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Uce(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&zce(e,t,n),n};let Cf=class extends b{constructor(){super(...arguments);f(this,"config");f(this,"currentStep",1);f(this,"steps",[this.$t("app.setting.label.left_y"),this.$t("app.setting.label.right_y")]);f(this,"lineStyles",[{text:this.$t("app.setting.label.solid"),value:"solid"},{text:this.$t("app.setting.label.dotted"),value:"dotted"},{text:this.$t("app.setting.label.dashed"),value:"dashed"}])}addMetric(t){const n=Ba().layouts.diagnostics.container1[0].axes[0].metrics[0];this.config.axes[t].metrics.push(n)}removeMetric(t,s){this.config.axes[t].metrics.splice(s,1)}};P7([$({type:Object,required:!0})],Cf.prototype,"config",2);Cf=P7([L({components:{MetricsCollectorConfig:Vce}})],Cf);var Wce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(_b,{attrs:{"non-linear":"",flat:""},model:{value:e.currentStep,callback:function(s){e.currentStep=s},expression:"currentStep"}},[t($b,[e._l(e.steps,function(s,n){return[t(yb,{key:`step-${n}`,attrs:{step:n+1,editable:""}},[e._v(" "+e._s(s)+" "),t("small",[e._v(e._s(e.config.axes[n].unit))])]),n<e.steps.length-1?t(R,{key:n}):e._e()]})],2),e._l(e.steps,function(s,n){return t(bb,{key:`${n}-content`,staticClass:"pt-4",attrs:{step:n+1}},[e.currentStep===n+1?[t(Dm,{attrs:{accordion:"",flat:""}},e._l(e.config.axes[n].metrics,function(i,a){return t(Mm,{key:`${a}-metric-${n}-axis`},[t(Im,[e._v(" "+e._s(i.name)+" "),t(R,{staticClass:"ml-4"}),t(I,{staticClass:"d-flex justify-center",attrs:{cols:"1"}},[t(M,{attrs:{small:"",icon:"",color:""},on:{click:function(o){return o.stopPropagation(),e.removeMetric(n,a)}}},[t(w,{attrs:{dense:""}},[e._v(" $delete ")])],1)],1)],1),t(Rm,[t(B,{attrs:{title:e.$t("app.setting.label.name")}},[t(ae,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:i.name,callback:function(o){e.$set(i,"name",o)},expression:"metric.name"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.line_color")}},[t(ul,{attrs:{value:i.style.lineColor,title:i.name,dot:""},on:{input:function(o){i.style.lineColor=o}}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.line_style")}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.lineStyles},model:{value:i.style.lineStyle,callback:function(o){e.$set(i.style,"lineStyle",o)},expression:"metric.style.lineStyle"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.fill_color")}},[t(ul,{attrs:{value:i.style.fillColor??i.style.lineColor,title:i.name,dot:""},on:{input:function(o){i.style.fillColor=o}}})],1),t(R),t(Ft,{staticClass:"px-4 py-3",attrs:{label:e.$t("app.setting.label.fill_opacity"),min:0,max:100,suffix:"%"},model:{value:i.style.fillOpacity,callback:function(o){e.$set(i.style,"fillOpacity",o)},expression:"metric.style.fillOpacity"}}),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_legend")}},[t(Ce,{attrs:{"hide-details":""},model:{value:i.style.displayLegend,callback:function(o){e.$set(i.style,"displayLegend",o)},expression:"metric.style.displayLegend"}})],1),t(R),t("metrics-collector-config",{staticClass:"mt-3",attrs:{metric:i,unit:e.config.axes[n].unit}})],1)],1)}),1),t(R,{staticClass:"mt-4"}),t(te,{staticClass:"pa-2 mt-2"},[t(_t),t(M,{attrs:{small:""},on:{click:function(i){return e.addMetric(n)}}},[t(w,{attrs:{small:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_metric"))+" ")],1)],1)]:e._e()],2)})],2)},Gce=[],qce=A(Cf,Wce,Gce,!1,null,"644a1200");const Zce=qce.exports;var Yce=Object.defineProperty,Kce=Object.getOwnPropertyDescriptor,t2=(r,e,t,s)=>{for(var n=s>1?void 0:s?Kce(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Yce(e,t,n),n};let Mu=class extends Z(lt){constructor(){super(...arguments);f(this,"open");f(this,"config");f(this,"currentStep",1);f(this,"steps",[{name:this.$t("app.setting.label.card"),component:_ce},{name:this.$t("app.setting.label.axes"),component:xce},{name:this.$t("app.setting.label.metrics"),component:Zce}])}handleSave(){this.$emit("save",this.config),this.open=!1}handleDelete(){this.$emit("delete",this.config.id),this.open=!1}};t2([He({type:Boolean})],Mu.prototype,"open",2);t2([$({type:Object,required:!0})],Mu.prototype,"config",2);Mu=t2([L({})],Mu);var Xce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.config.id!==""?e.$t("app.general.title.edit_chart"):e.$t("app.general.title.add_chart"),"max-width":"800"},scopedSlots:e._u([{key:"actions",fn:function(){return[e.isMobileViewport?t(_t):e._e(),e.config.id!==""?t(M,{attrs:{color:"error",text:""},on:{click:e.handleDelete}},[e._v(" "+e._s(e.$t("app.general.btn.remove"))+" ")]):e._e(),e.isMobileViewport?e._e():t(_t),t(M,{attrs:{color:"warning",text:""},on:{click:function(s){e.open=!1}}},[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")]),t(M,{attrs:{color:"primary"},on:{click:e.handleSave}},[e._v(" "+e._s(e.config.id!==""?e.$t("app.general.btn.save"):e.$t("app.general.btn.add"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(_b,{attrs:{"non-linear":"",flat:""},model:{value:e.currentStep,callback:function(s){e.currentStep=s},expression:"currentStep"}},[t($b,[e._l(e.steps,function(s,n){return[t(yb,{key:`step-${n}`,attrs:{step:n+1,editable:""}},[e._v(" "+e._s(s.name)+" ")]),n<e.steps.length-1?t(R,{key:n}):e._e()]})],2),t(YW,e._l(e.steps,function(s,n){return t(bb,{key:`${n}-content`,staticClass:"pa-0",attrs:{step:n+1}},[e.currentStep===n+1?t(s.component,{tag:"component",attrs:{config:e.config}}):e._e()],1)}),1)],1)],1)],1)},Qce=[],Jce=A(Mu,Xce,Qce,!1,null,"0bc5eac1");const eue=Jce.exports;var tue=Object.defineProperty,rue=Object.getOwnPropertyDescriptor,L7=(r,e,t,s)=>{for(var n=s>1?void 0:s?rue(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&tue(e,t,n),n};let Pf=class extends Z(X){constructor(){super(...arguments);f(this,"dialogState",{active:!1,card:null});f(this,"containers",[])}mounted(){this.onLayoutChange()}handleAddCard(){const t=JSON.parse(JSON.stringify(Ba().layouts.diagnostics.container1[0]));t.id="",this.dialogState.card=t,this.dialogState.active=!0}handleEditCard(t){this.dialogState.card=JSON.parse(JSON.stringify(t)),this.dialogState.active=!0}handleDeleteCard(t){for(const s of Object.values(this.layout)){const n=s.findIndex(i=>i.id===t);if(n>-1){s.splice(n,1);break}}this.updateLayout()}handleSaveCard(t){if(t.id==="")t.id=jl(),this.layout.container1.push(t);else for(const s of Object.values(this.layout)){const n=s.findIndex(i=>i.id===t.id);if(n>-1){s[n]=t;break}}this.updateLayout()}get columnCount(){return this.inLayout?4:this.containers.reduce((t,s)=>+this.hasCards(s)+t,0)}get columnSpan(){return 12/this.columnCount}get inLayout(){return this.$store.state.config.layoutMode}get layout(){return this.$store.getters["layout/getLayout"]("diagnostics")}onLayoutChange(){const t=Object.values(this.layout);for(;t.length<4;)t.push([]);this.containers=t.slice(0,4)}updateLayout(){this.$store.dispatch("layout/onLayoutChange",{name:"diagnostics",value:{container1:this.containers[0],container2:this.containers[1],container3:this.containers[2],container4:this.containers[3]}})}hasCards(t){return t.some(s=>s.enabled)}};L7([Ae("layout",{deep:!0})],Pf.prototype,"onLayoutChange",1);Pf=L7([L({components:{DiagnosticsCard:pce,DiagnosticsCardConfigDialog:eue}})],Pf);var sue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(te,[t(I,{attrs:{cols:"12"}},[t(Xe,{attrs:{title:e.$t("app.general.title.diagnostics"),icon:"$chart"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(xn,[t(M,{attrs:{small:""},on:{click:e.handleAddCard}},[t(w,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.general.title.add_chart"))+" ")],1)],1)]},proxy:!0}])})],1)],1),t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[e._l(e.containers,function(s,n){return[e.inLayout||e.hasCards(s)?t(I,{key:`container${n}`,class:{drag:e.inLayout},attrs:{cols:"12",md:"6",lg:e.columnSpan}},[t($m,{staticClass:"list-group",attrs:{options:{animation:200,handle:".handle",group:"diagnostics",disabled:!e.inLayout,ghostClass:"ghost"},target:":first-child"},on:{end:function(i){return i.stopPropagation(),e.updateLayout.apply(null,arguments)}},model:{value:e.containers[n],callback:function(i){e.$set(e.containers,n,i)},expression:"containers[containerIndex]"}},[t("transition-group",{attrs:{type:"transition",name:e.inLayout?void 0:"flip-list"}},[e._l(s,function(i){return[i.enabled||e.inLayout?t("diagnostics-card",{key:i.id,staticClass:"mb-2 mb-sm-4",attrs:{config:i},on:{edit:e.handleEditCard}}):e._e()]})],2)],1)],1):e._e()]})],2),e.dialogState.active?t("diagnostics-card-config-dialog",{attrs:{config:e.dialogState.card},on:{save:e.handleSaveCard,delete:e.handleDeleteCard},model:{value:e.dialogState.active,callback:function(s){e.$set(e.dialogState,"active",s)},expression:"dialogState.active"}}):e._e()],1)},nue=[],iue=A(Pf,sue,nue,!1,null,"91010126");const aue=iue.exports;var oue=Object.defineProperty,lue=Object.getOwnPropertyDescriptor,A7=(r,e,t,s)=>{for(var n=s>1?void 0:s?lue(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&oue(e,t,n),n};let Lf=class extends Z(dr){constructor(){super(...arguments);f(this,"expanded",[]);f(this,"searchModel")}get headers(){const t=[{text:"",value:"data-table-icons",sortable:!1,width:"24px"},{text:this.$tc("app.general.table.header.name"),value:"filename"},{text:this.$tc("app.general.table.header.status"),value:"status",configurable:!0},{text:this.$tc("app.general.table.header.start_time"),value:"start_time",configurable:!0},{text:this.$tc("app.general.table.header.end_time"),value:"end_time",configurable:!0},{text:this.$tc("app.general.table.header.print_duration"),value:"print_duration",configurable:!0},{text:this.$tc("app.general.table.header.total_duration"),value:"total_duration",configurable:!0},{text:this.$tc("app.general.table.header.filament_used"),value:"filament_used",configurable:!0},{text:this.$t("app.general.table.header.size"),value:"metadata.size",width:"1%",configurable:!0},{text:this.$tc("app.general.table.header.actions"),value:"actions",sortable:!1,align:"end"}];return this.$store.getters["config/getMergedTableHeaders"](t,"history")}get visibleHeaders(){return this.headers.filter(t=>t.visible||t.visible===void 0)}get history(){return this.$store.getters["history/getHistory"]}getRowClasses(t){return t.exists?"":"v-data-table__inactive"}getFilePaths(t){return Kt(t,"gcodes")}getFilename(t){return t.split("/").pop()||""}handleRemoveJob(t){F.serverHistoryDeleteJob(t.job_id)}handleJobThumbnailError(t){this.$store.dispatch("history/clearHistoryThumbnails",t.job_id)}isExpanded(t){if(this.expanded.length<=0)return!1;const s=this.expanded[0];return t.job_id===s.job_id}toggleRowExpand(t){this.isExpanded(t)?this.expanded=[]:this.expanded=[t]}};A7([ji("search",{type:String,default:""})],Lf.prototype,"searchModel",2);Lf=A7([L({components:{JobHistoryItemStatus:Sb}})],Lf);var cue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"file-system"},[t(qt,{attrs:{dense:""}},[t(_t),e.headers?t(Zm,{attrs:{"key-name":"history",headers:e.headers}}):e._e(),t("div",{staticClass:"ms-1 my-1",staticStyle:{"max-width":"160px"}},[t(ae,{attrs:{outlined:"",dense:"","single-line":"","hide-details":"","append-icon":"$magnify"},model:{value:e.searchModel,callback:function(s){e.searchModel=s},expression:"searchModel"}})],1)],1),t($d,{attrs:{items:e.history,headers:e.visibleHeaders,"items-per-page":15,"item-class":e.getRowClasses,"single-expand":"",search:e.searchModel,expanded:e.expanded,"mobile-breakpoint":"0","item-key":"job_id","sort-by":"start_time","sort-desc":"","fixed-header":""},scopedSlots:e._u([{key:"expanded-item",fn:function({headers:s,item:n}){return[t("td",{staticClass:"pa-4",attrs:{colspan:s.length}},[t("div",{staticClass:"chip-group"},[e._l(Object.keys(n.metadata),function(i,a){return[i!=="thumbnails"?t(gr,{key:a,attrs:{small:""}},[e._v(" "+e._s(i)+": "+e._s(n.metadata[i])+" ")]):e._e()]})],2)])]}},{key:"item.data-table-icons",fn:function({item:s}){var n;return[s.exists?(n=s.metadata.thumbnails)!=null&&n.length?t("img",{staticClass:"mr-2 file-icon-thumb",attrs:{src:e.getThumbUrl(s.metadata,"gcodes",e.getFilePaths(s.filename).path,!1,s.metadata.modified),width:24},on:{error:function(i){return e.handleJobThumbnailError(s)}}}):t(w,{staticClass:"mr-2",attrs:{color:"secondary"}},[e._v(" $file ")]):t(w,{staticClass:"mr-2",attrs:{color:"secondary"}},[e._v(" $fileCancel ")])]}},{key:"item.filename",fn:function({item:s}){return[t("span",{},[e._v(" "+e._s(e.getFilePaths(s.filename).filename)+" ")])]}},{key:"item.status",fn:function({item:s}){return[t("job-history-item-status",{attrs:{job:s}})]}},{key:"item.start_time",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatDateTime(s.start_time*1e3))+" ")])]}},{key:"item.end_time",fn:function({item:s}){return[s.status!=="in_progress"?t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatDateTime(s.end_time*1e3))+" ")]):t("span",[e._v("--")])]}},{key:"item.print_duration",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.print_duration))+" ")])]}},{key:"item.total_duration",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(s.total_duration))+" ")])]}},{key:"item.filament_used",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.getReadableLengthString(s.filament_used))+" ")])]}},{key:"item.metadata.size",fn:function({item:s}){return[t("span",{staticClass:"text-no-wrap"},[e._v(" "+e._s(e.$filters.getReadableFileSizeString(s.metadata.size))+" ")])]}},{key:"item.actions",fn:function({item:s}){return[t("div",{staticClass:"text-no-wrap"},[t(Fe,{attrs:{icon:"",small:""},on:{click:function(n){return e.handleRemoveJob(s)}}},[t(w,{attrs:{small:"",color:""}},[e._v(" $delete ")])],1),t(Fe,{staticClass:"v-data-table__expand-icon",class:{"v-data-table__expand-icon--active":e.isExpanded(s)},attrs:{color:"",icon:"",small:""},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.toggleRowExpand(s)}}},[t(w,[e._v("$chevronDown")])],1)],1)]}}],null,!0)})],1)},uue=[],due=A(Lf,cue,uue,!1,null,null);const r2=due.exports;var pue=Object.defineProperty,hue=Object.getOwnPropertyDescriptor,E7=(r,e,t,s)=>{for(var n=s>1?void 0:s?hue(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&pue(e,t,n),n};let Af=class extends b{constructor(){super(...arguments);f(this,"menuCollapsed")}get rollup(){return this.$store.getters["history/getRollUp"]}get fileSystemUsedPercent(){const t=this.fileSystemUsage.total,s=this.fileSystemUsage.used;return Math.floor(s/t*100).toFixed()}get fileSystemUsage(){return this.$store.getters["files/getUsage"]}get supportsHistoryComponent(){return this.$store.getters["server/componentSupport"]("history")}async handleResetStats(){await this.$confirm(this.$tc("app.history.msg.confirm_stats"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&F.serverHistoryResetTotals()}};E7([$({type:Boolean})],Af.prototype,"menuCollapsed",2);Af=E7([L({components:{JobHistory:r2}})],Af);var fue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.stats"),icon:"$chart"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(xn,{attrs:{collapsed:e.menuCollapsed}},[t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handleResetStats}},[t(w,{attrs:{small:"",left:""}},[e._v(" $delete ")]),t("span",[e._v(e._s(e.$t("app.general.btn.reset_stats")))])],1)],1)]},proxy:!0}])},[t(Pe,[e.supportsHistoryComponent?t(te,[t(I,{attrs:{cols:"3"}},[t(Ie,{staticClass:"px-2 py-1 text-center stat-square",attrs:{outlined:""}},[t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_jobs"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.rollup.total_jobs)+" ")]),t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.longest_job"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.longest_job))+" ")])])],1),t(I,{attrs:{cols:"3"}},[t(Ie,{staticClass:"px-2 py-1 text-center stat-square",attrs:{outlined:""}},[t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_time"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.total_time))+" ")]),t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_time_avg"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.total_avg))+" ")])])],1),t(I,{attrs:{cols:"3"}},[t(Ie,{staticClass:"px-2 py-1 text-center stat-square",attrs:{outlined:""}},[t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_print_time"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.total_print_time))+" ")]),t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_print_time_avg"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.formatCounterSeconds(e.rollup.print_avg))+" ")])])],1),t(I,{attrs:{cols:"3"}},[t(Ie,{staticClass:"px-2 py-1 text-center stat-square",attrs:{outlined:""}},[t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_filament"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.getReadableLengthString(e.rollup.total_filament_used))+" ")]),t("div",{staticClass:"secondary--text"},[e._v(" "+e._s(e.$t("app.general.label.total_filament_avg"))+" ")]),t("div",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.getReadableLengthString(e.rollup.filament_avg))+" ")])])],1)],1):e._e()],1)],1)},mue=[],gue=A(Af,fue,mue,!1,null,"cc82c5db");const vue=gue.exports;var _ue=Object.defineProperty,yue=Object.getOwnPropertyDescriptor,O7=(r,e,t,s)=>{for(var n=s>1?void 0:s?yue(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&_ue(e,t,n),n};let Ef=class extends b{constructor(){super(...arguments);f(this,"menuCollapsed")}async handleRemoveAll(){await this.$confirm(this.$tc("app.history.msg.confirm_jobs"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&F.serverHistoryDeleteJob("all")}handleLoadAll(){F.serverHistoryList({limit:0})}};O7([$({type:Boolean})],Ef.prototype,"menuCollapsed",2);Ef=O7([L({components:{JobHistory:r2}})],Ef);var bue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.history"),icon:"$history"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(xn,{attrs:{collapsed:e.menuCollapsed}},[t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handleLoadAll}},[t(w,{attrs:{small:"",left:""}},[e._v(" $download ")]),t("span",[e._v(e._s(e.$t("app.general.btn.load_all")))])],1),t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:e.handleRemoveAll}},[t(w,{attrs:{small:"",left:""}},[e._v(" $delete ")]),t("span",[e._v(e._s(e.$t("app.general.btn.remove_all")))])],1)],1)]},proxy:!0}])},[t("job-history")],1)},$ue=[],Sue=A(Ef,bue,$ue,!1,null,null);const wue=Sue.exports;var xue=Object.defineProperty,Cue=Object.getOwnPropertyDescriptor,Pue=(r,e,t,s)=>{for(var n=s>1?void 0:s?Cue(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&xue(e,t,n),n};let U_=class extends b{get breakpoint(){return this.$vuetify.breakpoint.mdAndDown?12:6}};U_=Pue([L({components:{PrinterStatsCard:vue,PrinterHistoryCard:wue}})],U_);var Lue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(I,{attrs:{cols:"12"}},[t("printer-stats-card",{staticClass:"mb-2 mb-sm-4"}),t("printer-history-card")],1)],1)},Aue=[],Eue=A(U_,Lue,Aue,!1,null,null);const Oue=Eue.exports;var Tue=Object.defineProperty,kue=Object.getOwnPropertyDescriptor,Due=(r,e,t,s)=>{for(var n=s>1?void 0:s?kue(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Tue(e,t,n),n};let W_=class extends Z(X,dr){constructor(){super(...arguments);f(this,"selectedFrameNumber",0)}saveFrames(){F.machineTimelapseSaveFrames(this.$waits.onTimelapseSaveFrame)}get savingFrames(){return this.hasWait(this.$waits.onTimelapseSaveFrame)}get selectedFrame(){return this.selectedFrameNumber||this.frameCount||0}set selectedFrame(e){this.selectedFrameNumber=e===this.frameCount?0:e}get previewUrl(){var t;const e=(t=this.lastFrame)==null?void 0:t.file;if(e){const s=this.selectedFrame?`frame${this.selectedFrame.toString().padStart(6,"0")}.${e.split(".").pop()}`:e;return this.createFileUrl(s,"timelapse_frames")}}get isRendering(){return this.renderStatus&&this.renderStatus.status!=="success"}get frameCount(){var e;return(e=this.lastFrame)==null?void 0:e.uniqueCount}get camera(){return this.$store.getters["webcams/getWebcamById"](this.settings.camera)}get settings(){return this.$store.getters["timelapse/getSettings"]}get lastFrame(){return this.$store.getters["timelapse/getLastFrame"]}get renderStatus(){return this.$store.getters["timelapse/getRenderStatus"]}get renderProgress(){const e=this.renderStatus;return(e==null?void 0:e.status)==="running"?e.progress:0}};W_=Due([L({components:{CameraItem:e1,FileSystem:Fl}})],W_);var Mue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{staticClass:"mb-2 sb-sm-4",attrs:{title:e.$t("app.timelapse.title.timelapse_status"),icon:"$info"}},[t(Pe,[t(te,[e.frameCount?t("div",{staticStyle:{position:"relative"}},[t("img",{staticClass:"mx-auto thumbnail",style:{filter:e.isRendering?`saturate(${e.renderProgress}%)`:"none"},attrs:{src:e.previewUrl}}),e.isRendering?t(Zo,{staticClass:"render-progress",attrs:{color:"primary",size:"64",value:e.renderProgress}}):e._e()],1):e.camera?t("camera-item",{attrs:{camera:e.camera}}):e._e()],1),t(te,[t(I,{attrs:{cols:"12"}},[t(Ur,{attrs:{"justify-center":""}},[t(Ft,{attrs:{"full-width":"",label:e.$tc("app.timelapse.label.frame"),min:1,max:e.frameCount,suffix:`/ ${e.frameCount}`,"reset-value":e.frameCount,disabled:!e.frameCount||e.isRendering},model:{value:e.selectedFrame,callback:function(s){e.selectedFrame=s},expression:"selectedFrame"}})],1)],1)],1)],1),t(R),t(bd,[t(_t),t(M,{attrs:{color:"primary",text:"",disabled:!e.frameCount||e.savingFrames},on:{click:function(s){return e.saveFrames()}}},[e._v(" "+e._s(e.$t("app.timelapse.btn.save_frames"))+" ")]),t(M,{attrs:{color:"primary",disabled:!e.frameCount||e.isRendering},on:{click:function(s){return e.$emit("openRenderDialog",!0)}}},[e._v(" "+e._s(e.$t("app.timelapse.btn.render"))+" ")])],1)],1)},Rue=[],Iue=A(W_,Mue,Rue,!1,null,"1dde4575");const Fue=Iue.exports;var Hue=Object.defineProperty,Bue=Object.getOwnPropertyDescriptor,jue=(r,e,t,s)=>{for(var n=s>1?void 0:s?Bue(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Hue(e,t,n),n};let G_=class extends Z(X){get enabledBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("enabled")}get enabled(){var e;return(e=this.settings)==null?void 0:e.enabled}set enabled(e){F.machineTimelapseSetSettings({enabled:e})}get autoRenderBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("autorender")}get autoRender(){var e;return(e=this.settings)==null?void 0:e.autorender}set autoRender(e){F.machineTimelapseSetSettings({autorender:e})}get frameCount(){var e;return(e=this.$store.getters["timelapse/getLastFrame"])==null?void 0:e.count}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(e){return e?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};G_=jue([L({})],G_);var Vue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.timelapse.title.timelapse_settings"),icon:"$cog"}},[t(B,{attrs:{title:e.$t("app.timelapse.setting.enable"),"sub-title":e.subtitleIfBlocked(e.enabledBlocked),"r-cols":2}},[t(Ce,{attrs:{"hide-details":"",disabled:e.enabledBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.enabled,callback:function(s){e.enabled=s},expression:"enabled"}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.auto_render"),"sub-title":e.subtitleIfBlocked(e.autoRenderBlocked),"r-cols":2}},[t(Ce,{attrs:{"hide-details":"",disabled:e.autoRenderBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.autoRender,callback:function(s){e.autoRender=s},expression:"autoRender"}})],1),t(R),t(B,{attrs:{title:e.$tc("app.timelapse.title.render_settings")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:function(s){return e.$emit("openRenderDialog",!1)}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $pencil ")]),e._v(" "+e._s(e.$t("app.general.btn.edit"))+" ")],1)],1)],1)},Nue=[],zue=A(G_,Vue,Nue,!1,null,null);const Uue=zue.exports,s2=()=>({enabled:!0,mode:"layermacro",camera:"",stream_delay_compensation:.05,gcode_verbose:!1,parkhead:!1,parkpos:"back_left",park_custom_pos_x:10,park_custom_pos_y:10,park_custom_pos_dz:0,park_travel_speed:100,park_retract_speed:15,park_extrude_speed:15,park_retract_distance:1,park_extrude_distance:1,park_time:.1,fw_retract:!1,hyperlapse_cycle:30,autorender:!1,constant_rate_factor:23,output_framerate:30,pixelformat:"yuv420p",time_format_code:"%Y%m%d_%H%M",extraoutputparams:"",variable_fps:!1,targetlength:10,variable_fps_min:5,variable_fps_max:60,duplicatelastframe:5,previewimage:!0,saveframes:!1}),T7=()=>({lastFrame:void 0,settings:{...s2(),snapshoturl:"http://localhost:8080/?action=snapshot",rotation:0,flip_x:!1,flip_y:!1,blockedsettings:[]},renderStatus:void 0}),Wue=T7();var Gue=Object.defineProperty,que=Object.getOwnPropertyDescriptor,Ui=(r,e,t,s)=>{for(var n=s>1?void 0:s?que(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Gue(e,t,n),n};let wn=class extends Z(X){constructor(){super(...arguments);f(this,"open");f(this,"renderable");f(this,"outputFramerateElement");f(this,"targetLengthElement");f(this,"minFpsElement");f(this,"maxFpsElement");f(this,"duplicateFramesElement")}get lengthEstimate(){const t=this.frameCount+this.duplicateLastFrameCount;let s;this.settings.variable_fps?s=Math.min(this.settings.variable_fps_max,Math.max(this.settings.variable_fps_min,t/this.settings.targetlength)):s=this.settings.output_framerate;const n=(t||0)/s,i=Math.floor(n/60);return`${i?i+"m":""} ${Math.floor(n%60)}s`.trim()}get outputFramerateBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("output_framerate")}get outputFramerate(){var t;return(t=this.settings)==null?void 0:t.output_framerate}setOutputFramerate(t){var s;(s=this.outputFramerateElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({output_framerate:t})}get variableFpsBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("variable_fps")}get variableFps(){var t;return(t=this.settings)==null?void 0:t.variable_fps}set variableFps(t){F.machineTimelapseSetSettings({variable_fps:t})}get targetLengthBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("targetlength")}get targetLength(){var t;return(t=this.settings)==null?void 0:t.targetlength}setTargetLength(t){var s;(s=this.targetLengthElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({targetlength:t})}get minFpsBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("variable_fps_min")}get minFps(){var t;return(t=this.settings)==null?void 0:t.variable_fps_min}setMinFps(t){var s;(s=this.minFpsElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({variable_fps_min:t})}get maxFpsBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("variable_fps_max")}get maxFps(){var t;return(t=this.settings)==null?void 0:t.variable_fps_max}setMaxFps(t){var s;(s=this.maxFpsElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({variable_fps_max:t})}get duplicateFramesBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("duplicatelastframe")}get duplicateFrames(){var t;return(t=this.settings)==null?void 0:t.duplicatelastframe}setDuplicateFrames(t){var s;(s=this.duplicateFramesElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({duplicatelastframe:t})}get saveFramesBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("saveframes")}get saveFrames(){var t;return(t=this.settings)==null?void 0:t.saveframes}set saveFrames(t){F.machineTimelapseSetSettings({saveframes:t})}get previewImageBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("previewimage")}get previewImage(){var t;return(t=this.settings)==null?void 0:t.previewimage}set previewImage(t){F.machineTimelapseSetSettings({previewimage:t})}renderTimelapse(){F.machineTimelapseRender(),this.open=!1}get frameCount(){var t;return((t=this.lastFrame)==null?void 0:t.count)??0}get duplicateLastFrameCount(){var t;return((t=this.settings)==null?void 0:t.duplicatelastframe)??0}get crfBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("constant_rate_factor")}get crf(){var t;return(t=this.settings)==null?void 0:t.constant_rate_factor}setCRF(t){F.machineTimelapseSetSettings({constant_rate_factor:t})}get defaultCRF(){return s2().constant_rate_factor}get settings(){return this.$store.getters["timelapse/getSettings"]}get lastFrame(){return this.$store.getters["timelapse/getLastFrame"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};Ui([He({type:Boolean})],wn.prototype,"open",2);Ui([$({type:Boolean,required:!0})],wn.prototype,"renderable",2);Ui([ke("outputFramerateElement")],wn.prototype,"outputFramerateElement",2);Ui([ke("targetLengthElement")],wn.prototype,"targetLengthElement",2);Ui([ke("minFpsElement")],wn.prototype,"minFpsElement",2);Ui([ke("maxFpsElement")],wn.prototype,"maxFpsElement",2);Ui([ke("duplicateFramesElement")],wn.prototype,"duplicateFramesElement",2);wn=Ui([L({})],wn);var Zue=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.timelapse.title.render_settings"),"max-width":"640","no-actions":!e.renderable},scopedSlots:e._u([{key:"actions",fn:function(){return[t(_t),t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({attrs:{color:"primary"},on:{click:e.renderTimelapse}},"app-btn",n,!1),s),[t(w,[e._v("$play")]),e._v(" "+e._s(e.$t("app.timelapse.btn.render"))+" ")],1)]}}])},[t("span",[e._v(e._s(e.$t("app.timelapse.label.length",{length:e.lengthEstimate})))])])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(B,{attrs:{title:e.$t("app.timelapse.setting.variable_fps"),"sub-title":e.subtitleIfBlocked(e.variableFpsBlocked)}},[t(Ce,{attrs:{"hide-details":"",disabled:e.variableFpsBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.variableFps,callback:function(s){e.variableFps=s},expression:"variableFps"}})],1),t(R),e.variableFps?[t(B,{attrs:{title:e.$t("app.timelapse.setting.targetlength"),"sub-title":e.subtitleIfBlocked(e.targetLengthBlocked)}},[t(ae,{ref:"targetLengthElement",attrs:{value:e.targetLength,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.targetLengthBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"s"},on:{change:e.setTargetLength}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.variable_fps_min"),"sub-title":e.subtitleIfBlocked(e.minFpsBlocked)}},[t(ae,{ref:"minFpsElement",attrs:{value:e.minFps,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.minFpsBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"fps"},on:{change:e.setMinFps}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.variable_fps_max"),"sub-title":e.subtitleIfBlocked(e.maxFpsBlocked)}},[t(ae,{ref:"maxFpsElement",attrs:{value:e.maxFps,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.maxFpsBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"fps"},on:{change:e.setMaxFps}})],1)]:t(B,{attrs:{title:e.$t("app.timelapse.setting.output_framerate"),"sub-title":e.subtitleIfBlocked(e.outputFramerateBlocked)}},[t(ae,{ref:"outputFramerateElement",attrs:{value:e.outputFramerate,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.outputFramerateBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"fps"},on:{change:e.setOutputFramerate}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.saveframes"),"sub-title":e.subtitleIfBlocked(e.saveFramesBlocked)}},[t(Ce,{attrs:{"hide-details":"",disabled:e.saveFramesBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.saveFrames,callback:function(s){e.saveFrames=s},expression:"saveFrames"}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.duplicatelastframe"),"sub-title":e.subtitleIfBlocked(e.duplicateFramesBlocked)}},[t(ae,{ref:"duplicateFramesElement",attrs:{value:e.duplicateFrames,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.duplicateFramesBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:e.$tc("app.timelapse.label.frame",e.duplicateFrames)},on:{change:e.setDuplicateFrames}})],1),t(R),t(Ft,{staticClass:"px-4 pt-3",staticStyle:{overflow:"hidden"},attrs:{value:e.crf,label:e.$tc("app.timelapse.setting.crf"),min:0,max:51,"reset-value":e.defaultCRF,disabled:e.crfBlocked},on:{change:e.setCRF}}),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.previewimage"),"sub-title":e.subtitleIfBlocked(e.previewImageBlocked)}},[t(Ce,{attrs:{"hide-details":"",disabled:e.previewImageBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.previewImage,callback:function(s){e.previewImage=s},expression:"previewImage"}})],1)],2)],1)},Yue=[],Kue=A(wn,Zue,Yue,!1,null,null);const k7=Kue.exports;var Xue=Object.defineProperty,Que=Object.getOwnPropertyDescriptor,Jue=(r,e,t,s)=>{for(var n=s>1?void 0:s?Que(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Xue(e,t,n),n};let q_=class extends Z(X){constructor(){super(...arguments);f(this,"renderDialogOpen",!1);f(this,"renderDialogRenderable",!1)}openRenderDialog(t=!1){this.renderDialogRenderable=t,this.renderDialogOpen=!0}};q_=Jue([L({components:{TimelapseRenderSettingsDialog:k7,FileSystem:Fl,TimelapseStatusCard:Fue,TimelapseSettingsCard:Uue}})],q_);var ede=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(I,{attrs:{cols:"12",md:"8"}},[t(Xe,{attrs:{title:e.$t("app.general.title.timelapse"),icon:"$video"}},[t("file-system",{attrs:{roots:"timelapse",name:"timelapse","bulk-actions":"","max-height":"816"}})],1)],1),t(I,{attrs:{cols:"12",md:"4"}},[t("timelapse-status-card",{on:{openRenderDialog:e.openRenderDialog}}),t("timelapse-settings-card",{on:{openRenderDialog:e.openRenderDialog}})],1),e.renderDialogOpen?t("timelapse-render-settings-dialog",{attrs:{renderable:e.renderDialogRenderable},model:{value:e.renderDialogOpen,callback:function(s){e.renderDialogOpen=s},expression:"renderDialogOpen"}}):e._e()],1)},tde=[],rde=A(q_,ede,tde,!1,null,null);const sde=rde.exports;var nde=Object.defineProperty,ide=Object.getOwnPropertyDescriptor,D7=(r,e,t,s)=>{for(var n=s>1?void 0:s?ide(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&nde(e,t,n),n};let Of=class extends Z(X){constructor(){super(...arguments);f(this,"open");f(this,"application","")}sendAccept(){F.serverLogsRollover(this.application||void 0),this.open=!1}};D7([He({type:Boolean})],Of.prototype,"open",2);Of=D7([L({})],Of);var ade=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.general.title.rollover_logs"),"save-button-text":e.$t("app.general.btn.accept"),"max-width":"400"},on:{save:e.sendAccept},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(W6,{staticClass:"mt-0",attrs:{"hide-details":""},model:{value:e.application,callback:function(s){e.application=s},expression:"application"}},[t(Kc,{attrs:{label:e.$t("app.general.label.all"),value:""}}),t(Kc,{attrs:{value:"klipper"},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",[e._v("Klipper "),t("span",{staticClass:"secondary--text"},[e._v("(klippy.log)")])])]},proxy:!0}])}),t(Kc,{attrs:{value:"moonraker"},scopedSlots:e._u([{key:"label",fn:function(){return[t("div",[e._v("Moonraker "),t("span",{staticClass:"secondary--text"},[e._v("(moonraker.log)")])])]},proxy:!0}])})],1)],1)],1)},ode=[],lde=A(Of,ade,ode,!1,null,null);const cde=lde.exports;var ude=Object.defineProperty,dde=Object.getOwnPropertyDescriptor,pde=(r,e,t,s)=>{for(var n=s>1?void 0:s?dde(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ude(e,t,n),n};let Z_=class extends Z(X,dr,el){getKlippyLog(){this.downloadFile("klippy.log","")}getMoonrakerLog(){this.downloadFile("moonraker.log","")}};Z_=pde([L({})],Z_);var hde=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.klippyConnected?[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mb-2",attrs:{block:"",color:"primary"},on:{click:e.restartKlippy}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.restart_service_klipper"))+" ")])]}}],null,!1,550031500)},[t("span",[e._v(e._s(e.$t("app.general.tooltip.reload_klipper")))])]),t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mb-2",attrs:{block:"",color:"primary"},on:{click:e.firmwareRestartKlippy}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.restart_firmware"))+" ")])]}}],null,!1,2451519191)},[t("span",[e._v(e._s(e.$t("app.general.tooltip.reload_restart_klipper")))])])]:[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mb-2",attrs:{block:"",color:"primary"},on:{click:e.serviceRestartKlipper}},"app-btn",n,!1),s),[e._v(" "+e._s(e.$t("app.general.btn.restart_service_klipper"))+" ")])]}}])},[t("span",[e._v(e._s(e.$t("app.general.tooltip.restart_klipper")))])])],t(M,{staticClass:"me-2 mb-2",attrs:{block:""},on:{click:function(s){return e.getKlippyLog()}}},[t(w,{attrs:{left:"",small:""}},[e._v(" $download ")]),e._v(" Klippy.log ")],1),t(M,{staticClass:"me-2",attrs:{block:""},on:{click:function(s){return e.getMoonrakerLog()}}},[t(w,{attrs:{left:"",small:""}},[e._v(" $download ")]),e._v(" Moonraker.log ")],1)],2)},fde=[],mde=A(Z_,hde,fde,!1,null,null);const M7=mde.exports;var gde=Object.defineProperty,vde=Object.getOwnPropertyDescriptor,_de=(r,e,t,s)=>{for(var n=s>1?void 0:s?vde(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&gde(e,t,n),n};let Y_=class extends Z(X){constructor(){super(...arguments);f(this,"rolloverLogsDialogOpen",!1);f(this,"peripheralsDialogOpen",!1)}get systemInfo(){return this.$store.getters["server/getSystemInfo"]}get cpuInfo(){var t;return((t=this.systemInfo)==null?void 0:t.cpu_info)||{}}get distribution(){var t;return((t=this.systemInfo)==null?void 0:t.distribution)||{}}get distributionName(){var n;const{name:t,id:s}=this.distribution;if(t)return t.startsWith("0.")?void 0:`${t.startsWith("#")?s:t} ${((n=this.distribution.release_info)==null?void 0:n.version_id)??""}`}get virtualization(){var t;return((t=this.systemInfo)==null?void 0:t.virtualization)||{}}get network(){var t;return Object.entries(((t=this.systemInfo)==null?void 0:t.network)||{}).map(([s,n])=>{var a,o;const i=((a=n.ip_addresses)==null?void 0:a.filter(l=>l.family==="ipv4"))||((o=n.ip_addresses)==null?void 0:o.filter(l=>l.family==="ipv6"));return i?`${s} (${i.map(l=>l.address).join(", ")})`:s}).join(", ")}get printerInfo(){return this.$store.state.printer.printer.info}get canRolloverLogs(){return this.$store.getters["server/getIsMinApiVersion"]("1.0.5")}};Y_=_de([L({})],Y_);var yde=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.general.title.system_overview"),icon:"$desktopTower"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:function(i){e.peripheralsDialogOpen=!0}}},"app-btn",n,!1),s),[t(w,[e._v("$devices")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.system_info.label.devices")))])]),e.canRolloverLogs?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:"",disabled:e.printerBusy},on:{click:function(i){e.rolloverLogsDialogOpen=!0}}},"app-btn",n,!1),s),[t(w,[e._v("$fileRefresh")])],1)]}}],null,!1,2499269129)},[t("span",[e._v(e._s(e.$t("app.general.tooltip.rollover_logs")))])]):e._e()]},proxy:!0}])},[t(te,{attrs:{"no-gutters":""}},[t(I,[t(Zt,{attrs:{dense:""}},[t("tbody",[e.printerInfo.hostname?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.hostname")))]),t("td",[e._v(e._s(e.printerInfo.hostname))])]):e._e(),e.cpuInfo.model?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.model")))]),t("td",[e._v(e._s(e.cpuInfo.model))])]):e._e(),e.cpuInfo.cpu_desc?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.cpu_desc")))]),t("td",[e._v(e._s(e.cpuInfo.cpu_desc))])]):e._e(),e.cpuInfo.total_memory?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.total_memory")))]),t("td",[e._v(e._s(e.$filters.getReadableFileSizeString(e.cpuInfo.total_memory*1024)))])]):e._e(),e.cpuInfo.hardware_desc?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.hardware_desc")))]),t("td",[e._v(e._s(e.cpuInfo.hardware_desc))])]):e._e(),e.cpuInfo.bits&&e.cpuInfo.processor&&e.cpuInfo.cpu_count?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.processor_desc")))]),t("td",[e._v(e._s(e.cpuInfo.bits)+" "+e._s(e.cpuInfo.processor)+" with "+e._s(e.cpuInfo.cpu_count)+" cores")])]):e._e(),e.distribution.name?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.operating_system")))]),t("td",[e._v(e._s(e.distribution.name))])]):e._e(),e.distributionName?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.distribution_name")))]),t("td",[e._v(" "+e._s(e.distributionName)+" ")])]):e._e(),e.distribution.like?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.distribution_like")))]),t("td",[e._v(e._s(e.distribution.like))])]):e._e(),e.distribution.codename?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.distribution_codename")))]),t("td",[e._v(e._s(e.distribution.codename))])]):e._e(),e.network?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.network")))]),t("td",[e._v(e._s(e.network))])]):e._e(),e.virtualization.virt_type&&e.virtualization.virt_type!=="none"?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.virtualization")))]),t("td",[e._v(e._s(e.virtualization.virt_type)+" ("+e._s(e.virtualization.virt_identifier)+")")])]):e._e()])])],1),t(I,[t(Pe,[t(M7)],1)],1)],1),e.rolloverLogsDialogOpen?t(cde,{model:{value:e.rolloverLogsDialogOpen,callback:function(s){e.rolloverLogsDialogOpen=s},expression:"rolloverLogsDialogOpen"}}):e._e(),e.peripheralsDialogOpen?t(g8,{model:{value:e.peripheralsDialogOpen,callback:function(s){e.peripheralsDialogOpen=s},expression:"peripheralsDialogOpen"}}):e._e()],1)},bde=[],$de=A(Y_,yde,bde,!1,null,null);const R7=$de.exports;var Sde=Object.defineProperty,wde=Object.getOwnPropertyDescriptor,I7=(r,e,t,s)=>{for(var n=s>1?void 0:s?wde(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Sde(e,t,n),n};let Tf=class extends b{constructor(){super(...arguments);f(this,"ready",!1)}get chartData(){return this.$store.state.charts.klipper||[]}get cores(){var t,s;return((s=(t=this.$store.state.server.system_info)==null?void 0:t.cpu_info)==null?void 0:s.cpu_count)||1}get options(){const t={...this.$store.getters["charts/getBaseChartOptions"](),series:this.series};return t.yAxis.max=s=>s.max<=this.cores?this.cores:s.max,t}get series(){return this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.load"),encode:{x:"date",y:"load"}})}onChartData(t){t&&t.length>0&&(this.ready=!0)}};I7([Ae("chartData",{immediate:!0})],Tf.prototype,"onChartData",1);Tf=I7([L({})],Tf);var xde=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(I,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Nl,{attrs:{data:e.chartData,options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.system_load")))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].load)+" / "+e._s(e.cores))]):e._e()])])],1):e._e()},Cde=[],Pde=A(Tf,xde,Cde,!1,null,null);const Lde=Pde.exports;var Ade=Object.defineProperty,Ede=Object.getOwnPropertyDescriptor,F7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ede(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ade(e,t,n),n};let kf=class extends b{constructor(){super(...arguments);f(this,"ready",!1)}get chartData(){return this.$store.state.charts.memory||[]}get options(){return{...this.$store.getters["charts/getBaseChartOptions"]({memused:"%"}),series:this.series}}get series(){return this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.memory_used"),encode:{x:"date",y:"memused"}})}onChartData(t){t&&t.length>0&&(this.ready=!0)}};F7([Ae("chartData",{immediate:!0})],kf.prototype,"onChartData",1);kf=F7([L({})],kf);var Ode=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(I,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Nl,{attrs:{data:e.chartData,options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.system_memory")))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].memused)+"%")]):e._e()])])],1):e._e()},Tde=[],kde=A(kf,Ode,Tde,!1,null,null);const Dde=kde.exports;var Mde=Object.defineProperty,Rde=Object.getOwnPropertyDescriptor,H7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Rde(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Mde(e,t,n),n};let Df=class extends b{constructor(){super(...arguments);f(this,"ready",!1)}get chartData(){return this.$store.state.charts.klipper||[]}get options(){return{...this.$store.getters["charts/getBaseChartOptions"]({cputime_change:"%"}),series:this.series}}get series(){return this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.load"),encode:{x:"date",y:"cputime_change"}})}onChartData(t){t&&t.length>0&&(this.ready=!0)}};H7([Ae("chartData",{immediate:!0})],Df.prototype,"onChartData",1);Df=H7([L({})],Df);var Ide=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(I,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Nl,{attrs:{data:e.chartData,options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.klipper_load")))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].cputime_change)+"%")]):e._e()])])],1):e._e()},Fde=[],Hde=A(Df,Ide,Fde,!1,null,null);const Bde=Hde.exports;var jde=Object.defineProperty,Vde=Object.getOwnPropertyDescriptor,B7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Vde(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&jde(e,t,n),n};let Mf=class extends b{constructor(){super(...arguments);f(this,"ready",!1)}get chartData(){return this.$store.state.charts.moonraker||[]}get options(){return{...this.$store.getters["charts/getBaseChartOptions"]({load:"%"}),series:this.series}}get series(){return this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.load"),encode:{x:"date",y:"load"}})}onChartData(t){t&&t.length>0&&(this.ready=!0)}};B7([Ae("chartData",{immediate:!0})],Mf.prototype,"onChartData",1);Mf=B7([L({})],Mf);var Nde=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(I,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Nl,{attrs:{data:e.chartData,options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.moonraker_load")))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].load)+"%")]):e._e()])])],1):e._e()},zde=[],Ude=A(Mf,Nde,zde,!1,null,null);const Wde=Ude.exports;var Gde=Object.defineProperty,qde=Object.getOwnPropertyDescriptor,n2=(r,e,t,s)=>{for(var n=s>1?void 0:s?qde(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Gde(e,t,n),n};let Ru=class extends b{constructor(){super(...arguments);f(this,"ready",!1);f(this,"mcu")}get chartData(){return this.$store.state.charts[this.mcu]||[]}get options(){const t={...this.$store.getters["charts/getBaseChartOptions"]({load:"%",awake:"%",bw:"b"}),series:this.series};return t.yAxis.max=s=>s.max<=10?15:s.max<=20?25:s.max<=30?35:s.max<=40?45:s.max<=50||s.max<=50?55:s.max<=60?65:s.max<=70?75:s.max<=80?85:s.max,t}get series(){const t=this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.load"),encode:{x:"date",y:"load"}}),s=this.$store.getters["charts/getBaseSeries"]({name:this.$t("app.system_info.label.awake_time"),encode:{x:"date",y:"awake"}});return[t,s]}onChartData(t){t&&t.length>0&&(this.ready=!0)}};n2([$({type:String,required:!0})],Ru.prototype,"mcu",2);n2([Ae("chartData",{immediate:!0})],Ru.prototype,"onChartData",1);Ru=n2([L({})],Ru);var Zde=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.ready?t(I,{staticClass:"chart-wrapper",attrs:{cols:"4"}},[t(Nl,{attrs:{data:e.chartData||[],options:e.options,height:"120px"}}),t("div",{staticClass:"chart-label-wrapper"},[t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.mcu_load",{mcu:e.mcu.toUpperCase()})))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].load)+"%")]):e._e()]),t("div",{staticClass:"chart-label"},[t("span",[e._v(e._s(e.$t("app.system_info.label.mcu_awake",{mcu:e.mcu.toUpperCase()})))]),e.chartData.length?t("span",[e._v(e._s(e.chartData[e.chartData.length-1].awake)+"%")]):e._e()])])],1):e._e()},Yde=[],Kde=A(Ru,Zde,Yde,!1,null,null);const Xde=Kde.exports;var Qde=Object.defineProperty,Jde=Object.getOwnPropertyDescriptor,epe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Jde(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Qde(e,t,n),n};let K_=class extends b{get procStats(){return this.$store.getters["server/getProcessStats"]}get systemStats(){return this.$store.getters["printer/getSystemStats"]}get mcus(){return this.$store.getters["printer/getMcus"]}};K_=epe([L({components:{SystemLoadChart:Lde,SystemMemoryChart:Dde,KlipperLoadChart:Bde,MoonrakerLoadChart:Wde,McuLoadChart:Xde}})],K_);var tpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.system_info.label.system_utilization"),icon:"$chart"}},[t(Pe,[t(te,[t("system-load-chart"),t("klipper-load-chart"),t("moonraker-load-chart"),t("system-memory-chart"),e._l(e.mcus,function(s,n){return[t("mcu-load-chart",{key:n,attrs:{mcu:s.name}})]})],2)],1)],1)},rpe=[],spe=A(K_,tpe,rpe,!1,null,null);const j7=spe.exports;var npe=Object.defineProperty,ipe=Object.getOwnPropertyDescriptor,ape=(r,e,t,s)=>{for(var n=s>1?void 0:s?ipe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&npe(e,t,n),n};let X_=class extends b{get sdInfo(){const e=this.$store.getters["server/getSystemInfo"];return(e==null?void 0:e.sd_info)||{}}get fileSystemUsedPercent(){const e=this.fileSystemUsage.total,t=this.fileSystemUsage.used;return Math.floor(t/e*100).toFixed()}get fileSystemUsage(){return this.$store.getters["files/getUsage"]}};X_=ape([L({components:{JobHistory:r2}})],X_);var ope=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.file_system.label.diskinfo"),icon:"$harddisk"}},[t(Pe,[t(Ur,{attrs:{"justify-space-between":""}},[t("div",{},[e._v(" "+e._s(e.$t("app.file_system.label.disk_usage"))+" ")])]),t(Ys,{staticClass:"my-1",attrs:{size:90,height:10,value:e.fileSystemUsedPercent,color:"primary"}}),t(Ur,{attrs:{"justify-space-between":""}},[t("div",{},[t("span",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.getReadableFileSizeString(e.fileSystemUsage.used))+" ")]),t("span",{staticClass:"secondary--text"},[e._v(e._s(e.$t("app.general.label.used")))])]),t("div",{},[t("span",{staticClass:"focus--text"},[e._v(" "+e._s(e.$filters.getReadableFileSizeString(e.fileSystemUsage.free))+" ")]),t("span",{staticClass:"secondary--text"},[e._v(e._s(e.$t("app.general.label.free")))])])])],1),t(Zt,{attrs:{dense:""}},[t("tbody",[e.sdInfo.manufacturer?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.manufacturer")))]),t("td",[e._v(e._s(e.sdInfo.manufacturer))])]):e._e(),e.sdInfo.manufacturer_date?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.manufactured")))]),t("td",[e._v(e._s(e.sdInfo.manufacturer_date))])]):e._e(),e.sdInfo.product_name?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.product_name")))]),t("td",[e._v(e._s(e.sdInfo.product_name)+" "+e._s(e.sdInfo.product_revision))])]):e._e(),e.sdInfo.capacity?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.capacity")))]),t("td",[e._v(e._s(e.sdInfo.capacity))])]):e._e(),e.sdInfo.serial_number?t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.serial_number")))]),t("td",[e._v(e._s(e.sdInfo.serial_number))])]):e._e()])])],1)},lpe=[],cpe=A(X_,ope,lpe,!1,null,null);const V7=cpe.exports;var upe=Object.defineProperty,dpe=Object.getOwnPropertyDescriptor,ppe=(r,e,t,s)=>{for(var n=s>1?void 0:s?dpe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&upe(e,t,n),n};let Q_=class extends Z(X){get hasGraphData(){return this.$store.state.charts.klipper!==void 0||this.$store.state.charts.moonraker!==void 0||this.$store.state.charts.memory!==void 0}get breakpoint(){return this.$vuetify.breakpoint.mdAndDown?12:6}get roots(){const e=["logs","docs","config_examples"],t=["gcodes","config","timelapse","timelapse_frames"];for(const s of this.$store.state.server.info.registered_directories||[])!t.includes(s)&&!e.includes(s)&&e.push(s);return e}};Q_=ppe([L({components:{FileSystem:Fl,SystemOverviewCard:R7,SystemUsageCard:j7,DiskUsageCard:V7}})],Q_);var hpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(I,{attrs:{cols:"12",md:"6"}},[t(Xe,{attrs:{title:e.$t("app.general.title.config_files"),icon:"$codeJson","help-tooltip":e.$t("app.general.tooltip.file_browser_help")}},[t("file-system",{attrs:{roots:["config"],"max-height":"816",name:"configure","bulk-actions":""}})],1)],1),t(I,{attrs:{cols:"12",md:"6"}},[t(Xe,{attrs:{title:e.$t("app.general.title.other_files"),icon:"$files","help-tooltip":e.$t("app.general.tooltip.file_browser_configuration_help")}},[t("file-system",{attrs:{roots:e.roots,"max-height":"816",name:"configure"}})],1)],1)],1)},fpe=[],mpe=A(Q_,hpe,fpe,!1,null,null);const gpe=mpe.exports;var vpe=Object.defineProperty,_pe=Object.getOwnPropertyDescriptor,i2=(r,e,t,s)=>{for(var n=s>1?void 0:s?_pe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&vpe(e,t,n),n};let Iu=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"mcu")}};i2([He({type:Boolean})],Iu.prototype,"open",2);i2([$({type:Object,required:!0})],Iu.prototype,"mcu",2);Iu=i2([L({})],Iu);var ype=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.system_info.label.mcu_information",{mcu:e.mcu.name}),"max-width":"500","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(Ie,{attrs:{flat:""}},[t(jr,[e._v(e._s(e.$t("app.system_info.label.constants")))]),t(Zt,{attrs:{dense:""}},[t("tbody",e._l(e.mcu.mcu_constants,function(s,n){return t("tr",{key:n},[t("th",[e._v(e._s(n))]),t("td",[e._v(e._s(s))])])}),0)])],1),t(Ie,{attrs:{flat:""}},[t(jr,[e._v(e._s(e.$t("app.system_info.label.last_stats")))]),t(Zt,{attrs:{dense:""}},[t("tbody",e._l(e.mcu.last_stats,function(s,n){return t("tr",{key:n},[t("th",[e._v(e._s(n))]),t("td",[e._v(e._s(s))])])}),0)])],1)],1)],1)},bpe=[],$pe=A(Iu,ype,bpe,!1,null,null);const Spe=$pe.exports;var wpe=Object.defineProperty,xpe=Object.getOwnPropertyDescriptor,N7=(r,e,t,s)=>{for(var n=s>1?void 0:s?xpe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&wpe(e,t,n),n};let Rf=class extends b{constructor(){super(...arguments);f(this,"mcu");f(this,"mcuInformationDialogOpen",!1)}showMcuInformationDialog(){this.mcuInformationDialogOpen=!0}};N7([$({type:Object,required:!0})],Rf.prototype,"mcu",2);Rf=N7([L({components:{McuInformationDialog:Spe}})],Rf);var Cpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:e.$t("app.system_info.label.mcu_information",{mcu:e.mcu.name}),icon:"$chip"},scopedSlots:e._u([{key:"menu",fn:function(){return[t(M,{staticClass:"ms-1 my-1",attrs:{color:"",fab:"","x-small":"",text:""},on:{click:e.showMcuInformationDialog}},[t(w,[e._v("$viewHeadline")])],1)]},proxy:!0}])},[t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.micro_controller")))]),t("td",[e._v(e._s(e.mcu.mcu_constants.MCU))])]),t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.frequency")))]),t("td",[e._v(e._s(e.$filters.getReadableFrequencyString(+e.mcu.mcu_constants.CLOCK_FREQ)))])]),t("tr",[t("th",[e._v(e._s(e.$t("app.system_info.label.version")))]),t("td",[e._v(e._s(e.mcu.mcu_version))])])])]),e.mcuInformationDialogOpen?t("mcu-information-dialog",{attrs:{mcu:e.mcu},model:{value:e.mcuInformationDialogOpen,callback:function(s){e.mcuInformationDialogOpen=s},expression:"mcuInformationDialogOpen"}}):e._e()],1)},Ppe=[],Lpe=A(Rf,Cpe,Ppe,!1,null,null);const Ape=Lpe.exports;var Epe=Object.defineProperty,Ope=Object.getOwnPropertyDescriptor,Tpe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ope(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Epe(e,t,n),n};let J_=class extends Z(X){get breakpoint(){return this.$vuetify.breakpoint.mdAndDown?12:6}get mcus(){return this.$store.getters["printer/getMcus"]}};J_=Tpe([L({components:{FileSystem:Fl,SystemOverviewCard:R7,McuCard:Ape,SystemUsageCard:j7,DiskUsageCard:V7}})],J_);var kpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(I,{attrs:{cols:"12",md:"6"}},[t("system-overview-card",{staticClass:"mb-2 mb-sm-4"}),t("disk-usage-card")],1),t(I,{attrs:{cols:"12",md:"6"}},[t("system-usage-card",{staticClass:"mb-2 mb-sm-4"}),e._l(e.mcus,function(s){return[t("mcu-card",{key:s.name,staticClass:"mb-2 mb-sm-4",attrs:{mcu:s}})]})],2)],1)},Dpe=[],Mpe=A(J_,kpe,Dpe,!1,null,null);const Rpe=Mpe.exports;var Ipe=Object.defineProperty,Fpe=Object.getOwnPropertyDescriptor,Rd=(r,e,t,s)=>{for(var n=s>1?void 0:s?Fpe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ipe(e,t,n),n};let ja=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"title");f(this,"label");f(this,"name");f(this,"newName","")}get customRules(){return{uniqueName:t=>this.categories.findIndex(s=>s.name.toLowerCase()===t.toLowerCase())<0||this.$t("app.general.simple_form.error.exists")}}mounted(){this.newName=this.name}get categories(){return this.$store.getters["macros/getCategories"]}handleSave(){this.$emit("save",this.newName),this.open=!1}};Rd([He({type:Boolean})],ja.prototype,"open",2);Rd([$({type:String,required:!0})],ja.prototype,"title",2);Rd([$({type:String,required:!0})],ja.prototype,"label",2);Rd([$({type:String,required:!0})],ja.prototype,"name",2);ja=Rd([L({})],ja);var Hpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.title,"max-width":"350"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(ae,{attrs:{autofocus:"",outlined:"",label:e.label,rules:[e.$rules.required,e.customRules.uniqueName],required:""},model:{value:e.newName,callback:function(s){e.newName=s},expression:"newName"}})],1)],1)},Bpe=[],jpe=A(ja,Hpe,Bpe,!1,null,null);const Vpe=jpe.exports;var Npe=Object.defineProperty,zpe=Object.getOwnPropertyDescriptor,Upe=(r,e,t,s)=>{for(var n=s>1?void 0:s?zpe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Npe(e,t,n),n};let e0=class extends Z(X){constructor(){super(...arguments);f(this,"categoryDialogState",{open:!1,title:"add",label:"",category:null,name:"",handler:this.handleAddCategory})}get categories(){return this.$store.getters["macros/getCategories"]}get uncategorizedMacros(){const t=this.$store.getters["macros/getMacrosByCategory"](),s=t.length,n=t.filter(i=>i.visible).length;return{count:s,visible:n}}handleAddCategoryDialog(){this.categoryDialogState={open:!0,title:this.$t("app.general.label.add_category"),label:this.$t("app.general.label.name"),category:null,name:"",handler:this.handleAddCategory}}handleEditCategoryDialog(t){this.categoryDialogState={open:!0,title:this.$t("app.general.label.edit_category"),label:this.$t("app.general.label.name"),category:t,name:t.name,handler:this.handleEditCategory}}handleRemoveCategory(t){this.$store.dispatch("macros/removeCategory",t)}handleAddCategory(t){this.$store.dispatch("macros/addCategory",t)}handleEditCategory(t){const s={...this.categoryDialogState.category,name:t};this.$store.dispatch("macros/editCategory",s)}handleCategoryClick(t){const s=(t==null?void 0:t.id)??0;this.$router.push(`/settings/macros/${s}`)}};e0=Upe([L({components:{MacroCategoryDialog:Vpe}})],e0);var Wpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"macros"}},[e._v(" "+e._s(e.$t("app.setting.title.macros"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAddCategoryDialog}},[t(w,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_category"))+" ")],1)],1),e._l(e.categories,function(s){return[t(R,{key:`divider-${s.name}`}),t(B,{key:`category-${s.name}`,attrs:{"r-cols":3},on:{click:function(n){return e.handleCategoryClick(s)}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(s.name)+" "),t(gr,{staticClass:"mr-4",attrs:{small:""}},[e._v(" "+e._s(s.visible)+" / "+e._s(s.count)+" ")])]},proxy:!0}],null,!0)},[t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleEditCategoryDialog(s)}}},[t(w,{attrs:{color:""}},[e._v(" $edit ")])],1),t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleRemoveCategory(s)}}},[t(w,{attrs:{color:""}},[e._v(" $close ")])],1)],1)]}),e.uncategorizedMacros.count>0?[t(R),t(B,{key:"category-uncategorized",attrs:{"r-cols":3},on:{click:function(s){return e.handleCategoryClick()}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.$t("app.general.label.uncategorized"))+" "),t(gr,{attrs:{small:""}},[e._v(" "+e._s(e.uncategorizedMacros.visible)+" / "+e._s(e.uncategorizedMacros.count)+" ")])]},proxy:!0}],null,!1,491862901)},[t(w,[e._v("$chevronRight")])],1)]:e._e(),e.categoryDialogState.open?t("macro-category-dialog",{attrs:{title:e.categoryDialogState.title,label:e.categoryDialogState.label,name:e.categoryDialogState.name},on:{save:e.categoryDialogState.handler},model:{value:e.categoryDialogState.open,callback:function(s){e.$set(e.categoryDialogState,"open",s)},expression:"categoryDialogState.open"}}):e._e()],2)],1)},Gpe=[],qpe=A(e0,Wpe,Gpe,!1,null,null);const Zpe=qpe.exports,_r={bus:new b,$emit:(r,e={})=>{const t={open:!0,timeout:-1,...e};r&&(t.text=r),_r.bus.$emit("flashMessage",t)}},Ype=(r,e)=>e!=null&&typeof e=="object"&&"meta"in e&&e.meta!=null&&typeof e.meta=="object"&&"app"in e.meta&&typeof e.meta.app=="string"&&e.meta.app==="Fluidd"&&"type"in e.meta&&typeof e.meta.type=="string"&&e.meta.type===r&&"data"in e,Kpe=(r,e)=>({meta:{app:"Fluidd",version:"1.30.4",type:r},data:e});var Xpe=Object.defineProperty,Qpe=Object.getOwnPropertyDescriptor,a2=(r,e,t,s)=>{for(var n=s>1?void 0:s?Qpe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Xpe(e,t,n),n};let Fu=class extends Z(X){constructor(){super(...arguments);f(this,"instanceNameElement");f(this,"uploadSettingsFile")}get instanceName(){return this.$store.state.config.uiSettings.general.instanceName}setInstanceName(t){this.instanceNameElement.valid&&this.$store.dispatch("config/updateInstance",t)}get locale(){return this.$store.state.config.uiSettings.general.locale}get supportedLocales(){return[{name:"Browser default",code:"default"},...NC]}setLocale(t){this.$store.dispatch("config/onLocaleChange",t)}get dateFormat(){return this.$store.state.config.uiSettings.general.dateFormat}set dateFormat(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.dateFormat",value:t,server:!0})}get availableDateFormats(){const t=new Date;return Object.entries(WC).map(([s,n])=>({value:s,text:`${t.toLocaleDateString(n.locales??this.$filters.getAllLocales(),n.options)}${n.suffix??""}`}))}get timeFormat(){return this.$store.state.config.uiSettings.general.timeFormat}set timeFormat(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.timeFormat",value:t,server:!0})}get availableTimeFormats(){const t=new Date;return Object.entries(GC).map(([s,n])=>({value:s,text:`${t.toLocaleTimeString(n.locales??this.$filters.getAllLocales(),n.options)}${n.suffix??""}`}))}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}set enableKeyboardShortcuts(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.enableKeyboardShortcuts",value:t,server:!0})}get confirmOnEstop(){return this.$store.state.config.uiSettings.general.confirmOnEstop}set confirmOnEstop(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.confirmOnEstop",value:t,server:!0})}get topNavPowerToggle(){return this.$store.state.config.uiSettings.general.topNavPowerToggle}set topNavPowerToggle(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.topNavPowerToggle",value:t,server:!0})}get powerDevicesList(){const t=this.$store.getters["power/getDevices"],s=t.length?[{header:"Moonraker"},...t.map(a=>({text:a.device,value:a.device}))]:[],n=this.$store.getters["printer/getPins"],i=n.length?[{header:"Klipper"},...n.map(a=>({text:a.prettyName,value:`${a.name}:klipper`}))]:[];return[...s,...i]}get confirmOnPowerDeviceChange(){return this.$store.state.config.uiSettings.general.confirmOnPowerDeviceChange}set confirmOnPowerDeviceChange(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.confirmOnPowerDeviceChange",value:t,server:!0})}get showSaveConfigAndRestart(){return this.$store.state.config.uiSettings.general.showSaveConfigAndRestart}set showSaveConfigAndRestart(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showSaveConfigAndRestart",value:t,server:!0})}get showUploadAndPrint(){return this.$store.state.config.uiSettings.general.showUploadAndPrint}set showUploadAndPrint(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showUploadAndPrint",value:t,server:!0})}get confirmOnSaveConfigAndRestart(){return this.$store.state.config.uiSettings.general.confirmOnSaveConfigAndRestart}set confirmOnSaveConfigAndRestart(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.confirmOnSaveConfigAndRestart",value:t,server:!0})}get sectionsToIgnorePendingConfigurationChanges(){return this.$store.state.config.uiSettings.general.sectionsToIgnorePendingConfigurationChanges}set sectionsToIgnorePendingConfigurationChanges(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.sectionsToIgnorePendingConfigurationChanges",value:[...new Set(t)].sort((s,n)=>s.localeCompare(n)),server:!0})}get printInProgressLayout(){return this.$store.state.config.uiSettings.general.printInProgressLayout}set printInProgressLayout(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.printInProgressLayout",value:t,server:!0})}get availablePrintInProgressLayouts(){return[{value:"default",text:this.$t("app.general.label.default")},{value:"compact",text:this.$t("app.general.label.compact")}]}get availablePrintProgressCalculation(){return[{value:"file",text:this.$t("app.setting.timer_options.relative_file_position")},{value:"fileAbsolute",text:this.$t("app.setting.timer_options.absolute_file_position")},{value:"slicer",text:this.$t("app.setting.timer_options.slicer_m73")},{value:"filament",text:this.$t("app.setting.timer_options.filament")}]}get printProgressCalculation(){return this.$store.state.config.uiSettings.general.printProgressCalculation}set printProgressCalculation(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.printProgressCalculation",value:t,server:!0})}get availablePrintEtaCalculation(){return[{value:"file",text:this.$t("app.setting.timer_options.file")},{value:"slicer",text:this.$t("app.setting.timer_options.slicer")}]}get printEtaCalculation(){return this.$store.state.config.uiSettings.general.printEtaCalculation}set printEtaCalculation(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.printEtaCalculation",value:t,server:!0})}get enableDiagnostics(){return this.$store.state.config.uiSettings.general.enableDiagnostics}set enableDiagnostics(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.enableDiagnostics",value:t,server:!0})}async handleBackupSettings(){var t,s;try{const i=(s=(t=(await rt.serverDatabaseItemGet("fluidd")).data)==null?void 0:t.result)==null?void 0:s.value;if(i){const a=Kpe("settings-backup",i),o=JSON.stringify(a),l=document.createElement("a");l.href=`data:text/plain;charset=utf-8,${encodeURIComponent(o)}`,l.download=`backup-fluidd-v1.30.4-${this.instanceName}.json`,l.target="_blank",document.body.appendChild(l),l.click(),document.body.removeChild(l)}}catch(n){ye.error("[Settings] backup failed",n),_r.$emit(this.$t("app.general.msg.fluidd_settings_backup_failed").toString(),{type:"error"})}}async handleRestoreSettings(){var t,s;try{if(((s=(t=this.uploadSettingsFile)==null?void 0:t.files)==null?void 0:s.length)===1){const n=await kY(this.uploadSettingsFile.files[0]);if(n){const i=JSON.parse(n);if(!Ype("settings-backup",i)){_r.$emit(this.$t("app.general.msg.not_valid_fluidd_backup_file").toString(),{type:"error"});return}for(const a in i.data)await rt.serverDatabaseItemPost("fluidd",a,i.data[a]);window.location.reload()}}}catch(n){ye.error("[Settings] restore failed",n),_r.$emit(this.$t("app.general.msg.fluidd_settings_restore_failed").toString(),{type:"error"})}finally{this.uploadSettingsFile.value=""}}};a2([ke("instanceName")],Fu.prototype,"instanceNameElement",2);a2([ke("uploadSettingsFile")],Fu.prototype,"uploadSettingsFile",2);Fu=a2([L({components:{}})],Fu);var Jpe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"general"}},[e._v(" "+e._s(e.$t("app.setting.title.general"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{attrs:{title:e.$t("app.setting.label.printer_name")}},[t(ae,{ref:"instanceName",attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required],value:e.instanceName,"default-value":e.$globals.APP_NAME},on:{change:e.setInstanceName}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.language")}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.supportedLocales,value:e.locale,"item-text":"name","item-value":"code"},on:{change:e.setLocale}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.date_format")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableDateFormats},model:{value:e.dateFormat,callback:function(s){e.dateFormat=s},expression:"dateFormat"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.time_format")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableTimeFormats},model:{value:e.timeFormat,callback:function(s){e.timeFormat=s},expression:"timeFormat"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.keyboard_shortcuts"),"sub-title":e.$t("app.setting.tooltip.keyboard_shortcuts")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.enableKeyboardShortcuts,callback:function(s){e.enableKeyboardShortcuts=s},expression:"enableKeyboardShortcuts"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.confirm_on_estop")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.confirmOnEstop,callback:function(s){e.confirmOnEstop=s},expression:"confirmOnEstop"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_upload_and_print")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.showUploadAndPrint,callback:function(s){e.showUploadAndPrint=s},expression:"showUploadAndPrint"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.power_toggle_in_top_nav")}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:[{text:e.$tc("app.setting.label.none"),value:null},...e.powerDevicesList]},model:{value:e.topNavPowerToggle,callback:function(s){e.topNavPowerToggle=s},expression:"topNavPowerToggle"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.confirm_on_power_device_change")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.confirmOnPowerDeviceChange,callback:function(s){e.confirmOnPowerDeviceChange=s},expression:"confirmOnPowerDeviceChange"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_save_config_and_restart")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.showSaveConfigAndRestart,callback:function(s){e.showSaveConfigAndRestart=s},expression:"showSaveConfigAndRestart"}})],1),e.showSaveConfigAndRestart?[t(R),t(B,{attrs:{title:e.$t("app.setting.label.confirm_on_save_config_and_restart")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.confirmOnSaveConfigAndRestart,callback:function(s){e.confirmOnSaveConfigAndRestart=s},expression:"confirmOnSaveConfigAndRestart"}})],1)]:e._e(),e.showSaveConfigAndRestart&&e.confirmOnSaveConfigAndRestart?[t(R),t(B,{attrs:{title:e.$t("app.setting.label.sections_to_ignore_pending_configuration_changes")}},[t(cn,{attrs:{items:["bed_mesh default","bed_tilt"],filled:"",dense:"","hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","append-icon":"","deletable-chips":""},model:{value:e.sectionsToIgnorePendingConfigurationChanges,callback:function(s){e.sectionsToIgnorePendingConfigurationChanges=s},expression:"sectionsToIgnorePendingConfigurationChanges"}})],1)]:e._e(),t(R),t(B,{attrs:{title:e.$t("app.setting.label.print_in_progress_layout")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availablePrintInProgressLayouts},model:{value:e.printInProgressLayout,callback:function(s){e.printInProgressLayout=s},expression:"printInProgressLayout"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.print_progress_calculation"),"sub-title":e.$t("app.setting.tooltip.average_calculation")}},[t(Te,{attrs:{multiple:"",filled:"",dense:"","hide-details":"auto",rules:[e.$rules.lengthGreaterThanOrEqual(1)],items:e.availablePrintProgressCalculation},model:{value:e.printProgressCalculation,callback:function(s){e.printProgressCalculation=s},expression:"printProgressCalculation"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.print_eta_calculation"),"sub-title":e.$t("app.setting.tooltip.average_calculation")}},[t(Te,{attrs:{multiple:"",filled:"",dense:"","hide-details":"auto",rules:[e.$rules.lengthGreaterThanOrEqual(1)],items:e.availablePrintEtaCalculation},model:{value:e.printEtaCalculation,callback:function(s){e.printEtaCalculation=s},expression:"printEtaCalculation"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.enable_diagnostics"),"sub-title":e.$t("app.setting.tooltip.diagnostics_performance")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.enableDiagnostics,callback:function(s){e.enableDiagnostics=s},expression:"enableDiagnostics"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.fluidd_settings_in_moonraker_db")}},[t(M,{staticClass:"mr-2",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleBackupSettings}},[e._v(" "+e._s(e.$t("app.setting.btn.backup"))+" ")]),t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:function(s){return e.uploadSettingsFile.click()}}},[e._v(" "+e._s(e.$t("app.setting.btn.restore"))+" ")])],1)],2),t("input",{ref:"uploadSettingsFile",staticStyle:{display:"none"},attrs:{type:"file",accept:".json"},on:{change:e.handleRestoreSettings}})],1)},ehe=[],the=A(Fu,Jpe,ehe,!1,null,null);const rhe=the.exports;var she=Object.defineProperty,nhe=Object.getOwnPropertyDescriptor,o2=(r,e,t,s)=>{for(var n=s>1?void 0:s?nhe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&she(e,t,n),n};let Hu=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"preset")}get heaters(){return this.$store.getters["printer/getHeaters"]}get fans(){return this.$store.getters["printer/getOutputs"](["temperature_fan"])}handleSave(){this.$emit("save",this.preset),this.open=!1}};o2([He({type:Boolean})],Hu.prototype,"open",2);o2([$({type:Object,required:!0})],Hu.prototype,"preset",2);Hu=o2([L({})],Hu);var ihe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.preset.id!=-1?e.$t("app.general.label.edit_preset"):e.$t("app.general.label.add_preset"),"max-width":"500","save-button-text":e.preset.id!==-1?e.$t("app.general.btn.save"):e.$t("app.general.btn.add")},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(B,{attrs:{title:e.$t("app.setting.label.thermal_preset_name")}},[t(ae,{attrs:{rules:[e.$rules.required],"hide-details":"auto",filled:"",dense:""},model:{value:e.preset.name,callback:function(s){e.$set(e.preset,"name",s)},expression:"preset.name"}})],1),t(R),e._l(e.heaters,function(s,n){return[t(B,{key:`${n}heater`,attrs:{title:e.$filters.prettyCase(s.name)}},[t(ar,{attrs:{"hide-details":""},model:{value:e.preset.values[s.name].active,callback:function(i){e.$set(e.preset.values[s.name],"active",i)},expression:"preset.values[item.name].active"}}),t(ae,{attrs:{disabled:!e.preset.values[s.name].active,rules:e.preset.values[s.name].active?[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)]:void 0,"hide-details":"auto",type:"number",suffix:"°C",filled:"",dense:""},model:{value:e.preset.values[s.name].value,callback:function(i){e.$set(e.preset.values[s.name],"value",e._n(i))},expression:"preset.values[item.name].value"}})],1),t(R,{key:n+"heaterd"})]}),e._l(e.fans,function(s,n){return[t(B,{key:`${n}fan`,attrs:{title:e.$filters.prettyCase(s.name)}},[t(ar,{attrs:{"hide-details":""},model:{value:e.preset.values[s.name].active,callback:function(i){e.$set(e.preset.values[s.name],"active",i)},expression:"preset.values[item.name].active"}}),t(ae,{attrs:{disabled:!e.preset.values[s.name].active,rules:e.preset.values[s.name].active?[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)]:void 0,"hide-details":"auto",type:"number",suffix:"°C",filled:"",dense:""},model:{value:e.preset.values[s.name].value,callback:function(i){e.$set(e.preset.values[s.name],"value",e._n(i))},expression:"preset.values[item.name].value"}})],1),t(R,{key:n+"fand"})]}),t(B,{attrs:{title:e.$t("app.setting.label.thermal_preset_gcode")}},[t(jm,{staticClass:"console-command",attrs:{rows:"2","hide-details":"auto",filled:"",spellcheck:"false"},model:{value:e.preset.gcode,callback:function(s){e.$set(e.preset,"gcode",s)},expression:"preset.gcode"}})],1)],2)],1)},ahe=[],ohe=A(Hu,ihe,ahe,!1,null,"11c2baca");const lhe=ohe.exports;var che=Object.defineProperty,uhe=Object.getOwnPropertyDescriptor,dhe=(r,e,t,s)=>{for(var n=s>1?void 0:s?uhe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&che(e,t,n),n};let t0=class extends Z(X){constructor(){super(...arguments);f(this,"dialogState",{active:!1,preset:null})}get heaters(){return this.$store.getters["printer/getHeaters"]}get fans(){return this.$store.getters["printer/getOutputs"](["temperature_fan"])}get presets(){return this.$store.getters["config/getTempPresets"]}openEditDialog(e){this.dialogState={active:!0,preset:e}}openAddDialog(){const e={id:-1,name:"",values:{}};for(const t of this.heaters)e.values[t.name]={value:0,type:"heater",active:!0};for(const t of this.fans)e.values[t.name]={value:0,type:"fan",active:!0};this.dialogState={active:!0,preset:e}}handleSavePreset(e){this.$store.dispatch("config/updatePreset",e)}handleRemovePreset(e){this.$store.dispatch("config/removePreset",e)}};t0=dhe([L({components:{PresetDialog:lhe}})],t0);var phe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"presets"}},[e._v(" "+e._s(e.$t("app.setting.title.thermal_presets"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.openAddDialog}},[t(w,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_thermal_preset"))+" ")],1)],1),e.presets.length>0?t(R):e._e(),e._l(e.presets,function(s,n){return[t(B,{key:s.index,attrs:{title:s.name,"r-cols":2},on:{click:function(i){return e.openEditDialog(s)}},scopedSlots:e._u([{key:"sub-title",fn:function(){return e._l(s.values,function(i,a){return t("span",{directives:[{name:"show",rawName:"v-show",value:i.active,expression:"value.active"}],key:a,staticClass:"mr-2"},[e._v(" "+e._s(a)+": "+e._s(i.value)),t("small",[e._v("°C")])])})},proxy:!0}],null,!0)},[t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(i){return i.stopPropagation(),e.handleRemovePreset(s)}}},[t(w,{attrs:{color:""}},[e._v(" $close ")])],1)],1),n<e.presets.length-1&&e.presets.length>0?t(R,{key:s.id}):e._e()]}),e.dialogState.active?t("preset-dialog",{attrs:{preset:e.dialogState.preset},on:{save:e.handleSavePreset},model:{value:e.dialogState.active,callback:function(s){e.$set(e.dialogState,"active",s)},expression:"dialogState.active"}}):e._e()],2)],1)},hhe=[],fhe=A(t0,phe,hhe,!1,null,"3b74642a");const mhe=fhe.exports;var ghe=Object.defineProperty,vhe=Object.getOwnPropertyDescriptor,l2=(r,e,t,s)=>{for(var n=s>1?void 0:s?vhe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ghe(e,t,n),n};let Bu=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"camera")}handleSave(){this.$emit("save",this.camera),this.open=!1}};l2([He({type:Boolean})],Bu.prototype,"open",2);l2([$({type:Object,required:!0})],Bu.prototype,"camera",2);Bu=l2([L({})],Bu);var _he=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.camera.uid?e.$t("app.general.label.edit_camera"):e.$t("app.general.label.add_camera"),"save-button-text":e.camera.uid?e.$t("app.general.btn.save"):e.$t("app.general.btn.add"),"max-width":"600",disabled:e.camera.source==="config","no-actions":e.camera.source==="config"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(B,{attrs:{title:e.$t("app.setting.label.enable")}},[t(Ce,{staticClass:"mt-0",attrs:{"hide-details":"auto"},model:{value:e.camera.enabled,callback:function(s){e.$set(e.camera,"enabled",s)},expression:"camera.enabled"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.name")}},[t(ae,{staticClass:"mt-0",attrs:{filled:"",dense:"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.camera.name,callback:function(s){e.$set(e.camera,"name",s)},expression:"camera.name"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.camera_flip_x")}},[t(Ce,{attrs:{"hide-details":""},model:{value:e.camera.flip_horizontal,callback:function(s){e.$set(e.camera,"flip_horizontal",s)},expression:"camera.flip_horizontal"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.camera_flip_y")}},[t(Ce,{staticClass:"mb-4",attrs:{"hide-details":""},model:{value:e.camera.flip_vertical,callback:function(s){e.$set(e.camera,"flip_vertical",s)},expression:"camera.flip_vertical"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.camera_rotate_by")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto","initial-value":"false",items:[{text:e.$t("app.setting.camera_rotate_options.none"),value:0},{text:e.$t("app.setting.camera_rotate_options.90"),value:90},{text:e.$t("app.setting.camera_rotate_options.180"),value:180},{text:e.$t("app.setting.camera_rotate_options.270"),value:270}],"item-value":"value","item-text":"text"},model:{value:e.camera.rotation,callback:function(s){e.$set(e.camera,"rotation",e._n(s))},expression:"camera.rotation"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.camera_stream_type")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto",items:[{text:e.$t("app.setting.camera_type_options.mjpegadaptive"),value:"mjpegstreamer-adaptive"},{text:e.$t("app.setting.camera_type_options.mjpegstream"),value:"mjpegstreamer"},{text:e.$t("app.setting.camera_type_options.hlsstream"),value:"hlsstream"},{text:e.$t("app.setting.camera_type_options.webrtc_camera_streamer"),value:"webrtc-camerastreamer"},{text:e.$t("app.setting.camera_type_options.webrtc_go2rtc"),value:"webrtc-go2rtc"},{text:e.$t("app.setting.camera_type_options.webrtc_mediamtx"),value:"webrtc-mediamtx"},{text:e.$t("app.setting.camera_type_options.video"),value:"ipstream"},{text:e.$t("app.setting.camera_type_options.iframe"),value:"iframe"}],"item-value":"value","item-text":"text"},model:{value:e.camera.service,callback:function(s){e.$set(e.camera,"service",s)},expression:"camera.service"}})],1),t(R),e.camera.service==="mjpegstreamer-adaptive"?[t(B,{attrs:{title:e.$t("app.setting.label.fps_target")}},[t(ae,{staticClass:"mt-5",attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.camera.target_fps,callback:function(s){e.$set(e.camera,"target_fps",e._n(s))},expression:"camera.target_fps"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.fps_idle_target")}},[t(ae,{staticClass:"mt-5",attrs:{filled:"",dense:"","single-line":"","hide-details":"auto"},model:{value:e.camera.target_fps_idle,callback:function(s){e.$set(e.camera,"target_fps_idle",e._n(s))},expression:"camera.target_fps_idle"}})],1),t(R)]:e._e(),t(B,{attrs:{title:e.$t("app.setting.label.camera_url_stream")}},[t(ae,{staticClass:"mt-5",attrs:{type:"url",spellcheck:"false",filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.camera.stream_url,callback:function(s){e.$set(e.camera,"stream_url",s)},expression:"camera.stream_url"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.camera_url_snapshot")}},[t(ae,{staticClass:"mt-5",attrs:{type:"url",spellcheck:"false",filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.camera.snapshot_url,callback:function(s){e.$set(e.camera,"snapshot_url",s)},expression:"camera.snapshot_url"}})],1),e.camera.service==="iframe"?[t(R),t(B,{attrs:{title:e.$t("app.setting.label.aspect_ratio"),"sub-title":e.$t("app.setting.label.aspect_ratio_format")}},[t(ae,{staticClass:"mt-5",attrs:{spellcheck:"false",filled:"",dense:"","single-line":"","hide-details":"auto",rules:[e.$rules.required,e.$rules.aspectRatioValid]},model:{value:e.camera.aspect_ratio,callback:function(s){e.$set(e.camera,"aspect_ratio",s)},expression:"camera.aspect_ratio"}})],1)]:e._e()],2)],1)},yhe=[],bhe=A(Bu,_he,yhe,!1,null,null);const $he=bhe.exports;var She=Object.defineProperty,whe=Object.getOwnPropertyDescriptor,xhe=(r,e,t,s)=>{for(var n=s>1?void 0:s?whe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&She(e,t,n),n};let r0=class extends b{constructor(){super(...arguments);f(this,"dialogState",{active:!1,camera:null})}get cameras(){return this.$store.getters["webcams/getWebcams"]}handleEditDialog(t){this.dialogState={active:!0,camera:{...t}}}handleAddDialog(){const t={enabled:!0,flip_horizontal:!1,flip_vertical:!1,name:"",rotation:0,service:"mjpegstreamer-adaptive",target_fps:15,target_fps_idle:5,stream_url:he.DEFAULTS.CAMERA_URL_STREAM,snapshot_url:he.DEFAULTS.CAMERA_URL_SNAPSHOT};this.dialogState={active:!0,camera:t}}handleSaveCamera(t){this.$store.dispatch("webcams/updateWebcam",t)}handleRemoveCamera(t){this.$store.dispatch("webcams/removeWebcam",t.uid)}get defaultFullscreenAction(){return this.$store.state.config.uiSettings.general.cameraFullscreenAction}set defaultFullscreenAction(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.cameraFullscreenAction",value:t,server:!0})}};r0=xhe([L({components:{CameraConfigDialog:$he}})],r0);var Che=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"camera"}},[e._v(" "+e._s(e.$tc("app.setting.title.camera",2))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAddDialog}},[t(w,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_camera"))+" ")],1)],1),e._l(e.cameras,function(s){return[t(R,{key:`divider-${s.uid}`}),t(B,{key:`camera-${s.uid}`,attrs:{"r-cols":2,"sub-title":s.source==="config"?e.$t("app.general.tooltip.managed_by_moonraker"):void 0},on:{click:function(n){return e.handleEditDialog(s)}},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(s.name)+" "),s.enabled?e._e():t(w,{attrs:{right:"",small:"",color:"warning"}},[e._v(" $warning ")])]},proxy:!0}],null,!0)},[s.source!=="config"?t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleRemoveCamera(s)}}},[t(w,{attrs:{color:""}},[e._v(" $close ")])],1):e._e()],1)]}),t(R),t(B,{attrs:{title:e.$t("app.setting.label.camera_fullscreen_action.title")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"",items:[{text:e.$t("app.setting.label.camera_fullscreen_action.embed"),value:"embed"},{text:e.$t("app.setting.label.camera_fullscreen_action.rawstream"),value:"rawstream"}]},model:{value:e.defaultFullscreenAction,callback:function(s){e.defaultFullscreenAction=s},expression:"defaultFullscreenAction"}})],1),e.dialogState.active?t("camera-config-dialog",{attrs:{camera:e.dialogState.camera},on:{save:e.handleSaveCamera},model:{value:e.dialogState.active,callback:function(s){e.$set(e.dialogState,"active",s)},expression:"dialogState.active"}}):e._e()],2)],1)},Phe=[],Lhe=A(r0,Che,Phe,!1,null,null);const Ahe=Lhe.exports,zl=()=>({apiUrl:"",socketUrl:"",layoutMode:!1,containerColumnCount:2,hostConfig:{endpoints:[],blacklist:[],hosted:!1,themePresets:[]},instances:[],uiSettings:{general:{instanceName:he.APP_NAME,locale:"en",chartVisible:!0,hideTempWaits:!0,axis:{x:{inverted:!1},y:{inverted:!1},z:{inverted:!1}},defaultExtrudeLength:10,defaultExtrudeSpeed:5,defaultToolheadMoveLength:1,defaultToolheadXYSpeed:130,defaultToolheadZSpeed:10,toolheadControlStyle:"cross",toolheadMoveDistances:[.1,1,10,25,50,100],toolheadXYMoveDistances:[1,10,50],toolheadZMoveDistances:[.1,1,10],toolheadCircleXYMoveDistances:[1,10,25,50],toolheadCircleZMoveDistances:[.1,1,10,50],toolheadCircleXYHomingEnabled:!1,useGcodeCoords:!1,zAdjustDistances:[.005,.01,.025,.05],enableVersionNotifications:!0,confirmOnEstop:!0,confirmOnPowerDeviceChange:!1,confirmOnSaveConfigAndRestart:!0,sectionsToIgnorePendingConfigurationChanges:[],dateFormat:"iso",timeFormat:"iso",enableKeyboardShortcuts:!0,textSortOrder:"default",showRateOfChange:!1,showRelativeHumidity:!0,showBarometricPressure:!0,showGasResistance:!0,showSaveConfigAndRestart:!0,showUploadAndPrint:!0,flipConsoleLayout:!1,cameraFullscreenAction:"embed",topNavPowerToggle:null,showManualProbeDialogAutomatically:!0,showBedScrewsAdjustDialogAutomatically:!0,showScrewsTiltAdjustDialogAutomatically:!0,forceMoveToggleWarning:!0,printInProgressLayout:"default",printProgressCalculation:["file"],printEtaCalculation:["file"],enableDiagnostics:!1,thumbnailSize:32,colorPickerValueRange:"absolute"},theme:{isDark:!0,logo:{src:"logo_qidi.svg"},color:"#5B7AEA",backgroundLogo:!0},editor:{confirmDirtyEditorClose:!0,autoEditExtensions:[".cfg",".conf",".ini",".log",".sh",".txt"],restoreViewState:"session",codeLens:!0},dashboard:{tempPresets:[]},tableHeaders:{gcodes_dashboard:[{value:"first_layer_extr_temp",visible:!1},{value:"first_layer_bed_temp",visible:!1},{value:"chamber_temp",visible:!1},{value:"history.total_duration",visible:!1},{value:"history.print_duration",visible:!1},{value:"estimated_time",visible:!1},{value:"nozzle_diameter",visible:!1},{value:"slicer_version",visible:!1},{value:"slicer",visible:!1},{value:"history.filament_used",visible:!1},{value:"filament_name",visible:!1},{value:"filament_type",visible:!1},{value:"filament_total",visible:!1},{value:"filament_weight_total",visible:!1},{value:"object_height",visible:!1},{value:"first_layer_height",visible:!1},{value:"layer_height",visible:!1}],gcodes_jobs:[{value:"first_layer_height",visible:!1},{value:"history.filament_used",visible:!1},{value:"slicer_version",visible:!1},{value:"history.print_duration",visible:!1},{value:"chamber_temp",visible:!1},{value:"first_layer_extr_temp",visible:!1},{value:"first_layer_bed_temp",visible:!1}],history:[{value:"print_duration",visible:!1},{value:"filament_used",visible:!1}],job_queue:[{value:"time_added",visible:!0},{value:"time_in_queue",visible:!1}],spoolman:[]},gcodePreview:{extrusionLineWidth:.3,moveLineWidth:.1,retractionIconSize:.6,drawOrigin:!0,drawBackground:!0,showAnimations:!0,minLayerHeight:.1,autoLoadOnPrintStart:!1,autoLoadMobileOnPrintStart:!1,autoFollowOnFileLoad:!0,hideSinglePartBoundingBox:!1,autoZoom:!1,flip:{horizontal:!1,vertical:!0}},fileSystem:{activeFilters:{},sortBy:{},sortDesc:{}},toolhead:{forceMove:!1,extrudeSpeed:-1,extrudeLength:-1},spoolman:{autoSpoolSelectionDialog:!0,autoOpenQRDetectionCamera:null,autoSelectSpoolOnMatch:!1,preferDeviceCamera:!1,warnOnNotEnoughFilament:!0,warnOnFilamentTypeMismatch:!0,selectionDialogSortOrder:{key:"last_used",desc:!1},remainingFilamentUnit:"weight"}}}),Ehe=zl();var Ohe=Object.defineProperty,The=Object.getOwnPropertyDescriptor,oo=(r,e,t,s)=>{for(var n=s>1?void 0:s?The(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ohe(e,t,n),n};let Zn=class extends Z(Ut){constructor(){super(...arguments);f(this,"toolheadMoveDistancesElement");f(this,"toolheadXYMoveDistancesElement");f(this,"toolheadZMoveDistancesElement");f(this,"toolheadCircleXYMoveDistancesElement");f(this,"toolheadCircleZMoveDistancesElement");f(this,"zAdjustValuesElement")}get defaultExtrudeSpeed(){return this.$store.state.config.uiSettings.general.defaultExtrudeSpeed}setDefaultExtrudeSpeed(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultExtrudeSpeed",value:+e,server:!0})}get defaultExtrudeLength(){return this.$store.state.config.uiSettings.general.defaultExtrudeLength}setDefaultExtrudeLength(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultExtrudeLength",value:+e,server:!0})}get defaultToolheadMoveLength(){return this.$store.state.config.uiSettings.general.defaultToolheadMoveLength}setDefaultToolheadMoveLength(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultToolheadMoveLength",value:+e,server:!0})}get defaultToolheadXYSpeed(){return this.$store.state.config.uiSettings.general.defaultToolheadXYSpeed}setDefaultToolheadYXSpeed(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultToolheadXYSpeed",value:+e,server:!0})}get defaultToolheadZSpeed(){return this.$store.state.config.uiSettings.general.defaultToolheadZSpeed}setDefaultToolheadZSpeed(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.defaultToolheadZSpeed",value:+e,server:!0})}get zAdjustValues(){return this.$store.state.config.uiSettings.general.zAdjustDistances}set zAdjustValues(e){this.zAdjustValuesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.zAdjustDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get toolheadCircleXYHomingEnabled(){return this.$store.state.config.uiSettings.general.toolheadCircleXYHomingEnabled}set toolheadCircleXYHomingEnabled(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadCircleXYHomingEnabled",value:e,server:!0})}get toolheadControlStyle(){return this.$store.state.config.uiSettings.general.toolheadControlStyle}set toolheadControlStyle(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadControlStyle",value:e,server:!0})}get availableToolheadControlStyles(){return[{value:"cross",text:this.$t("app.general.label.cross")},{value:"bars",text:this.$t("app.general.label.bars")},{value:"circle",text:this.$t("app.general.label.circle")}]}get toolheadMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadMoveDistances}set toolheadMoveDistances(e){if(!this.toolheadMoveDistancesElement.validate(!0))return;const t=[...new Set(e.map(Number))].sort((s,n)=>s-n);this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadMoveDistances",value:t,server:!0}),t.includes(this.defaultToolheadMoveLength)===!1&&this.setDefaultToolheadMoveLength(t[0])}get toolheadXYMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadXYMoveDistances}set toolheadXYMoveDistances(e){this.toolheadXYMoveDistancesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadXYMoveDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get toolheadCircleXYMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadCircleXYMoveDistances}set toolheadCircleXYMoveDistances(e){this.toolheadCircleXYMoveDistancesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadCircleXYMoveDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get toolheadZMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadZMoveDistances}set toolheadZMoveDistances(e){this.toolheadZMoveDistancesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadZMoveDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get toolheadCircleZMoveDistances(){return this.$store.state.config.uiSettings.general.toolheadCircleZMoveDistances}set toolheadCircleZMoveDistances(e){this.toolheadCircleZMoveDistancesElement.validate(!0)&&this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.toolheadCircleZMoveDistances",value:[...new Set(e.map(Number))].sort((t,s)=>t-s),server:!0})}get useGcodeCoords(){return this.$store.state.config.uiSettings.general.useGcodeCoords}set useGcodeCoords(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.useGcodeCoords",value:e,server:!0})}get invertX(){return this.$store.state.config.uiSettings.general.axis.x.inverted}set invertX(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.axis.x.inverted",value:e,server:!0})}get invertY(){return this.$store.state.config.uiSettings.general.axis.y.inverted}set invertY(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.axis.y.inverted",value:e,server:!0})}get invertZ(){return this.$store.state.config.uiSettings.general.axis.z.inverted}set invertZ(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.axis.z.inverted",value:e,server:!0})}get printerSupportsForceMove(){return this.$store.getters["printer/getPrinterSettings"]("force_move.enable_force_move")??!1}get showManualProbeDialogAutomatically(){return this.$store.state.config.uiSettings.general.showManualProbeDialogAutomatically}set showManualProbeDialogAutomatically(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showManualProbeDialogAutomatically",value:e,server:!0})}get showBedScrewsAdjustDialogAutomatically(){return this.$store.state.config.uiSettings.general.showBedScrewsAdjustDialogAutomatically}set showBedScrewsAdjustDialogAutomatically(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showBedScrewsAdjustDialogAutomatically",value:e,server:!0})}get showScrewsTiltAdjustDialogAutomatically(){return this.$store.state.config.uiSettings.general.showScrewsTiltAdjustDialogAutomatically}set showScrewsTiltAdjustDialogAutomatically(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.showScrewsTiltAdjustDialogAutomatically",value:e,server:!0})}get forceMoveToggleWarning(){return this.$store.state.config.uiSettings.general.forceMoveToggleWarning}set forceMoveToggleWarning(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.forceMoveToggleWarning",value:e,server:!0})}handleReset(){let e=zl().uiSettings.general;const t=this.$store.state.config.uiSettings.general;e={...e,instanceName:t.instanceName,chartVisible:t.chartVisible,hideTempWaits:t.hideTempWaits},this.$store.dispatch("config/saveByPath",{path:"uiSettings.general",value:e,server:!0})}};oo([ke("toolheadMoveDistances")],Zn.prototype,"toolheadMoveDistancesElement",2);oo([ke("toolheadXYMoveDistances")],Zn.prototype,"toolheadXYMoveDistancesElement",2);oo([ke("toolheadZMoveDistances")],Zn.prototype,"toolheadZMoveDistancesElement",2);oo([ke("toolheadCircleXYMoveDistances")],Zn.prototype,"toolheadCircleXYMoveDistancesElement",2);oo([ke("toolheadCircleZMoveDistances")],Zn.prototype,"toolheadCircleZMoveDistancesElement",2);oo([ke("zAdjustValues")],Zn.prototype,"zAdjustValuesElement",2);Zn=oo([L({components:{}})],Zn);var khe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"toolhead"}},[e._v(" "+e._s(e.$t("app.setting.title.tool"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{attrs:{title:e.$t("app.setting.label.gcode_coords"),"sub-title":e.$t("app.setting.tooltip.gcode_coords"),"r-cols":2}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.useGcodeCoords,callback:function(s){e.useGcodeCoords=s},expression:"useGcodeCoords"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.toolhead_control_style")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableToolheadControlStyles},model:{value:e.toolheadControlStyle,callback:function(s){e.toolheadControlStyle=s},expression:"toolheadControlStyle"}})],1),t(R),e.toolheadControlStyle==="cross"||e.toolheadControlStyle==="circle"?[t(B,{attrs:{title:e.$t("app.setting.label.invert_x_control")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.invertX,callback:function(s){e.invertX=s},expression:"invertX"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.invert_y_control")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.invertY,callback:function(s){e.invertY=s},expression:"invertY"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.invert_z_control")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.invertZ,callback:function(s){e.invertZ=s},expression:"invertZ"}})],1),t(R)]:e._e(),e.toolheadControlStyle==="cross"?[t(B,{attrs:{title:e.$t("app.setting.label.toolhead_move_distances")}},[t(cn,{ref:"toolheadMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(1),e.$rules.lengthLessThanOrEqual(6),e.$rules.numberArrayValid]},model:{value:e.toolheadMoveDistances,callback:function(s){e.toolheadMoveDistances=s},expression:"toolheadMoveDistances"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.default_toolhead_move_length")}},[t(Te,{attrs:{value:e.defaultToolheadMoveLength,items:e.toolheadMoveDistances,rules:[e.$rules.required,e.$rules.numberValid],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setDefaultToolheadMoveLength}})],1),t(R)]:e.toolheadControlStyle==="bars"?[t(B,{attrs:{title:e.$t("app.setting.label.toolhead_xy_move_distances")}},[t(cn,{ref:"toolheadXYMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(1),e.$rules.lengthLessThanOrEqual(3),e.$rules.numberArrayValid]},model:{value:e.toolheadXYMoveDistances,callback:function(s){e.toolheadXYMoveDistances=s},expression:"toolheadXYMoveDistances"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.toolhead_z_move_distances")}},[t(cn,{ref:"toolheadZMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(1),e.$rules.lengthLessThanOrEqual(3),e.$rules.numberArrayValid]},model:{value:e.toolheadZMoveDistances,callback:function(s){e.toolheadZMoveDistances=s},expression:"toolheadZMoveDistances"}})],1),t(R)]:e.toolheadControlStyle==="circle"?[t(B,{attrs:{title:e.$t("app.setting.label.toolhead_xy_move_distances")}},[t(cn,{ref:"toolheadCircleXYMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(4),e.$rules.lengthLessThanOrEqual(4),e.$rules.numberArrayValid]},model:{value:e.toolheadCircleXYMoveDistances,callback:function(s){e.toolheadCircleXYMoveDistances=s},expression:"toolheadCircleXYMoveDistances"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.toolhead_z_move_distances")}},[t(cn,{ref:"toolheadCircleZMoveDistances",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(4),e.$rules.lengthLessThanOrEqual(4),e.$rules.numberArrayValid]},model:{value:e.toolheadCircleZMoveDistances,callback:function(s){e.toolheadCircleZMoveDistances=s},expression:"toolheadCircleZMoveDistances"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.enable_xy_homing")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.toolheadCircleXYHomingEnabled,callback:function(s){e.toolheadCircleXYHomingEnabled=s},expression:"toolheadCircleXYHomingEnabled"}})],1),t(R)]:e._e(),t(B,{attrs:{title:e.$t("app.setting.label.default_toolhead_xy_speed")}},[t(ae,{attrs:{value:e.defaultToolheadXYSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm/s"},on:{change:e.setDefaultToolheadYXSpeed}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.default_toolhead_z_speed")}},[t(ae,{attrs:{value:e.defaultToolheadZSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm/s"},on:{change:e.setDefaultToolheadZSpeed}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.z_adjust_values")}},[t(cn,{ref:"zAdjustValues",attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",suffix:"mm",multiple:"","small-chips":"","append-icon":"","deletable-chips":"",rules:[e.$rules.lengthGreaterThanOrEqual(1),e.$rules.lengthLessThanOrEqual(4),e.$rules.numberArrayValid]},model:{value:e.zAdjustValues,callback:function(s){e.zAdjustValues=s},expression:"zAdjustValues"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.default_extrude_length")}},[t(ae,{attrs:{value:e.defaultExtrudeLength,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setDefaultExtrudeLength}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.default_extrude_speed")}},[t(ae,{attrs:{value:e.defaultExtrudeSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm/s"},on:{change:e.setDefaultExtrudeSpeed}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_manual_probe_dialog_automatically"),"sub-title":e.$t("app.setting.tooltip.show_manual_probe_dialog_automatically")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.showManualProbeDialogAutomatically,callback:function(s){e.showManualProbeDialogAutomatically=s},expression:"showManualProbeDialogAutomatically"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_bed_screws_adjust_dialog_automatically"),"sub-title":e.$t("app.setting.tooltip.show_bed_screws_adjust_dialog_automatically")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.showBedScrewsAdjustDialogAutomatically,callback:function(s){e.showBedScrewsAdjustDialogAutomatically=s},expression:"showBedScrewsAdjustDialogAutomatically"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_screws_tilt_adjust_dialog_automatically"),"sub-title":e.$t("app.setting.tooltip.show_screws_tilt_adjust_dialog_automatically")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.showScrewsTiltAdjustDialogAutomatically,callback:function(s){e.showScrewsTiltAdjustDialogAutomatically=s},expression:"showScrewsTiltAdjustDialogAutomatically"}})],1),t(R),e.printerSupportsForceMove?[t(B,{attrs:{title:e.$t("app.setting.label.force_move_toggle_warning")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.forceMoveToggleWarning,callback:function(s){e.forceMoveToggleWarning=s},expression:"forceMoveToggleWarning"}})],1),t(R)]:e._e(),t(B,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],2)],1)},Dhe=[],Mhe=A(Zn,khe,Dhe,!1,null,null);const Rhe=Mhe.exports;var Ihe=Object.defineProperty,Fhe=Object.getOwnPropertyDescriptor,Hhe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Fhe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ihe(e,t,n),n};let s0=class extends Z(X){get theme(){return this.$store.state.config.uiSettings.theme}get themePresets(){return this.$store.state.config.hostConfig.themePresets}get themePreset(){return this.themePresets.find(e=>e.logo.src===this.theme.logo.src)}set themePreset(e){const{color:t,isDark:s,logo:n}=e;this.updateTheme({color:t,isDark:s,logo:n})}get themeColor(){return this.theme.color}set themeColor(e){this.theme.color.toLowerCase()!==e.toLowerCase()&&this.updateTheme({color:e})}get isDark(){return this.theme.isDark}set isDark(e){this.updateTheme({isDark:e})}get backgroundLogo(){return this.theme.backgroundLogo}set backgroundLogo(e){this.updateTheme({backgroundLogo:e})}updateTheme(e){this.$store.dispatch("config/updateTheme",e)}handleReset(){const e=this.themePreset;e&&(this.themePreset=e)}};s0=Hhe([L({components:{ThemePicker:ul}})],s0);var Bhe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"theme"}},[e._v(" "+e._s(e.$t("app.setting.title.theme"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{scopedSlots:e._u([{key:"title",fn:function(){return[t("span",[e._v(e._s(e.$t("app.setting.label.theme_preset")))]),t(Nm,{attrs:{bottom:"",small:"",tooltip:e.$t("app.setting.tooltip.theme_disclaimer")}})]},proxy:!0}])},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.themePresets,"item-value":"icon.src","item-text":"name","return-object":""},model:{value:e.themePreset,callback:function(s){e.themePreset=s},expression:"themePreset"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.primary_color")}},[t(M,{staticClass:"mr-2",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")]),e.theme?t(ul,{attrs:{title:e.$t("app.setting.btn.select_theme")},model:{value:e.themeColor,callback:function(s){e.themeColor=s},expression:"themeColor"}}):e._e()],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.dark_mode")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.isDark,callback:function(s){e.isDark=s},expression:"isDark"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_logo_on_background")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.backgroundLogo,callback:function(s){e.backgroundLogo=s},expression:"backgroundLogo"}})],1)],1)],1)},jhe=[],Vhe=A(s0,Bhe,jhe,!1,null,null);const Nhe=Vhe.exports;var zhe=Object.defineProperty,Uhe=Object.getOwnPropertyDescriptor,Ul=(r,e,t,s)=>{for(var n=s>1?void 0:s?Uhe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&zhe(e,t,n),n};let Ri=class extends b{constructor(){super(...arguments);f(this,"hasUpdate");f(this,"disabled");f(this,"loading");f(this,"dirty");f(this,"valid")}};Ul([$({type:Boolean})],Ri.prototype,"hasUpdate",2);Ul([$({type:Boolean})],Ri.prototype,"disabled",2);Ul([$({type:Boolean})],Ri.prototype,"loading",2);Ul([$({type:Boolean})],Ri.prototype,"dirty",2);Ul([$({type:Boolean,default:!0})],Ri.prototype,"valid",2);Ri=Ul([L({})],Ri);var Whe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[!e.hasUpdate&&!e.dirty&&e.valid?t(gr,{attrs:{small:"",outlined:"",color:e.disabled?"grey darken-2":"success"}},[e._v(" "+e._s(e.$t("app.version.label.up_to_date"))+" ")]):e._e(),e.dirty&&e.valid?t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(gr,e._g(e._b({attrs:{small:"",outlined:"",disabled:e.disabled,color:e.disabled?"grey darken-2":"error"}},"v-chip",n,!1),s),[e._v(" "+e._s(e.$t("app.version.label.dirty"))+" ")])]}}],null,!1,970811321)},[t("span",[e._v(e._s(e.$t("app.version.tooltip.dirty")))])]):e._e(),e.valid?e._e():t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(gr,e._g(e._b({attrs:{small:"",outlined:"",color:e.disabled?"grey darken-2":"error"}},"v-chip",n,!1),s),[e._v(" "+e._s(e.$t("app.version.label.invalid"))+" ")])]}}],null,!1,103834092)},[t("span",[e._v(e._s(e.$t("app.version.tooltip.invalid")))])]),e.hasUpdate&&!e.dirty&&e.valid?t(M,{staticClass:"ml-1",attrs:{disabled:e.disabled,small:"",text:"",color:"primary"},on:{click:function(s){return e.$emit("on-update")}}},[e._v(" "+e._s(e.$t("app.version.btn.update"))+" ")]):e._e(),e.dirty||!e.valid?t(M,{staticClass:"ml-1",attrs:{small:"",text:"",color:"error"},on:{click:function(s){return e.$emit("on-recover")}}},[e._v(" "+e._s(e.$t("app.general.btn.recover"))+" ")]):e._e()],1)},Ghe=[],qhe=A(Ri,Whe,Ghe,!1,null,null);const Zhe=qhe.exports;var Yhe=Object.defineProperty,Khe=Object.getOwnPropertyDescriptor,c2=(r,e,t,s)=>{for(var n=s>1?void 0:s?Khe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Yhe(e,t,n),n};let ju=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"component")}get commitHistory(){return this.$store.getters["version/getCommitHistory"](this.component.key)}get baseUrl(){return"owner"in this.component?`https://github.com/${this.component.owner}/${this.component.repo_name||this.component.key}`:""}};c2([He({type:Boolean})],ju.prototype,"open",2);c2([$({type:Object})],ju.prototype,"component",2);ju=c2([L({})],ju);var Xhe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:"commits_behind"in e.component?e.$t("app.version.label.commit_history"):e.$t("app.version.label.package_list"),"max-width":"850","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},["commits_behind"in e.component&&e.commitHistory?t(Pe,{staticClass:"py-0 pl-0"},[t(tG,{attrs:{"align-top":"",dense:""}},e._l(e.commitHistory.keys,function(s){return t(sG,{key:`key-${s}`,attrs:{color:"transparent",small:""},scopedSlots:e._u([{key:"icon",fn:function(){return[t(w,{staticClass:"rotate-90",attrs:{color:"secondary"}},[e._v(" $commit ")])]},proxy:!0}],null,!0)},[t("div",{staticClass:"secondary--text mb-4"},[e._v(" "+e._s(e.$t("app.version.label.commits_on"))+" "+e._s(e.$filters.formatDate(s))+" ")]),t("ol",{staticClass:"commit-history"},[e._l(e.commitHistory.result[s],function(n){return[t("li",{key:n.sha},[t("div",[t("div",{staticClass:"commit-subject"},[e._v(" "+e._s(n.subject)+" ")]),t("div",{staticClass:"secondary--text"},[t("a",{staticClass:"secondary--text",attrs:{href:`${e.baseUrl}/commits/${e.component.branch}`,target:"_blank"}},[t("strong",[e._v(e._s(n.author))])]),e._v(" "+e._s(e.$t("app.version.label.committed"))+" "+e._s(e.$filters.formatRelativeTimeToNow(n.date*1e3))+" ")])]),t("div",[t(M,{attrs:{small:"",outlined:"",color:"secondary",href:`${e.baseUrl}/commit/${n.sha}`,target:"_blank"}},[t("span",{staticClass:"primary--text"},[e._v(e._s(n.sha.substring(0,7)))])])],1)])]})],2)])}),1)],1):e._e(),"package_list"in e.component?t(Pe,{staticClass:"pt-4"},[t("div",{staticClass:"chip-group"},e._l(e.component.package_list,function(s){return t(gr,{key:s,attrs:{small:""}},[e._v(" "+e._s(s)+" ")])}),1)]):e._e()],1)},Qhe=[],Jhe=A(ju,Xhe,Qhe,!1,null,"7b446d71");const efe=Jhe.exports;var tfe=Object.defineProperty,rfe=Object.getOwnPropertyDescriptor,sfe=(r,e,t,s)=>{for(var n=s>1?void 0:s?rfe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&tfe(e,t,n),n};let n0=class extends Z(X){constructor(){super(...arguments);f(this,"informationDialogState",{open:!1,component:null})}get components(){return this.$store.getters["version/getVisibleComponents"]}get isRefreshing(){return this.hasWait(this.$waits.onVersionRefresh)}get hasUpdates(){return this.$store.getters["version/hasUpdates"]}get enableNotifications(){return this.$store.state.config.uiSettings.general.enableVersionNotifications}set enableNotifications(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.enableVersionNotifications",value:t,server:!0})}packageTitle(t){return t.key==="system"?this.$t("app.version.label.os_packages"):t.key}hasUpdate(t){return this.$store.getters["version/hasUpdate"](t)}inError(t){const s="is_dirty"in t?t.is_dirty:!1,n="is_valid"in t?t.is_valid:!0;return s||!n}handleUpdateComponent(t){switch(this.$store.dispatch("version/onUpdateStatus",{busy:!0}),t){case"klipper":F.machineUpdateKlipper();break;case"moonraker":F.machineUpdateMoonraker();break;case"system":F.machineUpdateSystem();break;case"all":F.machineUpdateAll();break;default:F.machineUpdateClient(t);break}this.$emit("click")}handleRecoverComponent(t){this.$store.dispatch("version/onUpdateStatus",{busy:!0});const s="is_dirty"in t?t.is_dirty:!1,n="is_valid"in t?t.is_valid:!0;s&&F.machineUpdateRecover(t.key,!1),n||F.machineUpdateRecover(t.key,!0)}forceCheck(){this.$store.getters["server/getIsMinApiVersion"]("1.2.0")?F.machineUpdateRefresh():F.machineUpdateStatus(!0)}getBaseUrl(t){return"remote_url"in t&&t.remote_url?t.remote_url:"owner"in t?`https://github.com/${t.owner}/${t.repo_name||t.key}`:""}handleInformationDialog(t){"commits_behind"in t||"package_list"in t?this.informationDialogState={open:!0,component:t}:window.open(`${this.getBaseUrl(t)}/releases`)}};n0=sfe([L({components:{VersionStatus:Zhe,VersionCommitHistoryDialog:efe}})],n0);var nfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"versions"}},[e._v(" "+e._s(e.$t("app.version.title"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,[t(M,{staticClass:"mr-2",attrs:{outlined:"",small:"",color:"primary",disabled:!e.hasUpdates||e.isRefreshing||e.printerPrinting},on:{click:function(s){return e.handleUpdateComponent("all")}}},[t(w,{attrs:{left:""}},[e._v(" $download ")]),e._v(" "+e._s(e.$t("app.version.btn.update_all"))+" ")],1),t(M,{attrs:{outlined:"",small:"",color:"primary",disabled:e.isRefreshing||e.printerPrinting},on:{click:function(s){return e.forceCheck()}}},[t(w,{class:{"spin-alt":e.isRefreshing},attrs:{left:""}},[e._v(" $refresh ")]),e._v(" "+e._s(e.$t("app.version.btn.check_for_updates"))+" ")],1)],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.enable_notifications")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.enableNotifications,callback:function(s){e.enableNotifications=s},expression:"enableNotifications"}})],1),t(R),e._l(e.components,function(s,n){return[t(B,{key:`component-${s.key}-${s.name}`,scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(e.packageTitle(s))+" "),"remote_url"in s&&s.remote_url!=="?"?t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:i,on:a}){return[t("a",e._g(e._b({attrs:{href:s.remote_url,target:"_blank"}},"a",i,!1),a),[t(w,{attrs:{small:"",right:""}},[e._v(" $openInNew ")])],1)]}}],null,!0)},[t("span",[e._v(e._s(s.remote_url))])]):e._e()]},proxy:!0},{key:"sub-title",fn:function(){return[s.key!=="system"&&"full_version_string"in s?t("span",[e._v(" "+e._s(s.full_version_string)+" ")]):t("span",[e._v(" "+e._s(s.version)+" ")]),"remote_version"in s&&e.hasUpdate(s.key)?t("span",[e._v(" -> "+e._s(s.remote_version)+" ")]):e._e(),s.key==="system"&&s.package_count>0?t("span",[e._v(" "+e._s(s.package_count)+" packages ")]):e._e()]},proxy:!0}],null,!0)},[e.hasUpdate(s.key)&&!e.inError(s)?t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:i,on:a}){return[t(M,e._g(e._b({attrs:{color:"primary",icon:"",small:""},on:{click:function(o){return e.handleInformationDialog(s)}}},"app-btn",i,!1),a),[t(w,{attrs:{small:""}},[e._v(" $info ")])],1)]}}],null,!0)},["name"in s?t("span",[e._v(e._s(e.$t("app.version.tooltip.release_notes")))]):"commits_behind"in s?t("span",[e._v(e._s(e.$t("app.version.tooltip.commit_history")))]):"package_list"in s?t("span",[e._v(e._s(e.$t("app.version.tooltip.packages")))]):e._e()]):e._e(),t("version-status",{attrs:{"has-update":e.hasUpdate(s.key),disabled:e.isRefreshing||e.printerPrinting,loading:e.isRefreshing,dirty:"is_dirty"in s?s.is_dirty:!1,valid:"is_valid"in s?s.is_valid:!0},on:{"on-update":function(i){return e.handleUpdateComponent(s.key)},"on-recover":function(i){return e.handleRecoverComponent(s)}}})],1),"warnings"in s?e._l(s.warnings??[],function(i,a){return t(Vn,{key:`warning-${s.key}-${a}`,staticClass:"mx-4",attrs:{dense:"",type:"warning",text:""}},[e._v(" "+e._s(i)+" ")])}):e._e(),"anomalies"in s?e._l(s.anomalies??[],function(i,a){return t(Vn,{key:`anomaly-${s.key}-${a}`,staticClass:"mx-4",attrs:{dense:"",icon:"$info",text:""}},[e._v(" "+e._s(i)+" ")])}):e._e(),n<e.components.length-1&&e.components.length>0?t(R,{key:`component-${s.key}-${s.name}-_divider`}):e._e()]})],2),e.informationDialogState.open?t("version-commit-history-dialog",{attrs:{component:e.informationDialogState.component},model:{value:e.informationDialogState.open,callback:function(s){e.$set(e.informationDialogState,"open",s)},expression:"informationDialogState.open"}}):e._e()],1)},ife=[],afe=A(n0,nfe,ife,!1,null,null);const ofe=afe.exports;var lfe=Object.defineProperty,cfe=Object.getOwnPropertyDescriptor,ufe=(r,e,t,s)=>{for(var n=s>1?void 0:s?cfe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&lfe(e,t,n),n};let i0=class extends b{get extrusionLineWidth(){return this.$store.state.config.uiSettings.gcodePreview.extrusionLineWidth}setExtrusionLineWidth(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.extrusionLineWidth",value:+e,server:!0})}get moveLineWidth(){return this.$store.state.config.uiSettings.gcodePreview.moveLineWidth}setMoveLineWidth(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.moveLineWidth",value:+e,server:!0})}get retractionIconSize(){return this.$store.state.config.uiSettings.gcodePreview.retractionIconSize}setRetractionIconSize(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.retractionIconSize",value:+e,server:!0})}get flipHorizontal(){return this.$store.state.config.uiSettings.gcodePreview.flip.horizontal}set flipHorizontal(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.flip.horizontal",value:e,server:!0})}get flipVertical(){return this.$store.state.config.uiSettings.gcodePreview.flip.vertical}set flipVertical(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.flip.vertical",value:e,server:!0})}get drawOrigin(){return this.$store.state.config.uiSettings.gcodePreview.drawOrigin}set drawOrigin(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.drawOrigin",value:e,server:!0})}get drawBackground(){return this.$store.state.config.uiSettings.gcodePreview.drawBackground}set drawBackground(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.drawBackground",value:e,server:!0})}get showAnimations(){return this.$store.state.config.uiSettings.gcodePreview.showAnimations}set showAnimations(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.showAnimations",value:e,server:!0})}get minLayerHeight(){return this.$store.state.config.uiSettings.gcodePreview.minLayerHeight}setMinLayerHeight(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.minLayerHeight",value:+e,server:!0})}get autoLoadOnPrintStart(){return this.$store.state.config.uiSettings.gcodePreview.autoLoadOnPrintStart}set autoLoadOnPrintStart(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.autoLoadOnPrintStart",value:e,server:!0}),e||(this.autoLoadMobileOnPrintStart=!1)}get autoLoadMobileOnPrintStart(){return this.$store.state.config.uiSettings.gcodePreview.autoLoadMobileOnPrintStart}set autoLoadMobileOnPrintStart(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.autoLoadMobileOnPrintStart",value:e,server:!0})}get autoFollowOnFileLoad(){return this.$store.state.config.uiSettings.gcodePreview.autoFollowOnFileLoad}set autoFollowOnFileLoad(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.autoFollowOnFileLoad",value:e,server:!0})}get hideSinglePartBoundingBox(){return this.$store.state.config.uiSettings.gcodePreview.hideSinglePartBoundingBox}set hideSinglePartBoundingBox(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview.hideSinglePartBoundingBox",value:e,server:!0})}handleReset(){this.$store.dispatch("config/saveByPath",{path:"uiSettings.gcodePreview",value:zl().uiSettings.gcodePreview,server:!0})}};i0=ufe([L({components:{}})],i0);var dfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"gcodePreview"}},[e._v(" "+e._s(e.$t("app.setting.title.gcode_preview"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{attrs:{title:e.$t("app.setting.label.show_animations")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.showAnimations,callback:function(s){e.showAnimations=s},expression:"showAnimations"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.draw_origin")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.drawOrigin,callback:function(s){e.drawOrigin=s},expression:"drawOrigin"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.draw_background")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.drawBackground,callback:function(s){e.drawBackground=s},expression:"drawBackground"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.default_min_layer_height")}},[t(ae,{attrs:{value:e.minLayerHeight,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(.1)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setMinLayerHeight}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.extrusion_line_width")}},[t(ae,{attrs:{value:e.extrusionLineWidth,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setExtrusionLineWidth}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.move_line_width")}},[t(ae,{attrs:{value:e.moveLineWidth,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setMoveLineWidth}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.retraction_icon_size")}},[t(ae,{attrs:{value:e.retractionIconSize,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],filled:"",dense:"","single-line":"","hide-details":"auto",suffix:"mm"},on:{change:e.setRetractionIconSize}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.flip_horizontal")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.flipHorizontal,callback:function(s){e.flipHorizontal=s},expression:"flipHorizontal"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.flip_vertical")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.flipVertical,callback:function(s){e.flipVertical=s},expression:"flipVertical"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.auto_load_on_print_start")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.autoLoadOnPrintStart,callback:function(s){e.autoLoadOnPrintStart=s},expression:"autoLoadOnPrintStart"}})],1),e.autoLoadOnPrintStart?[t(R),t(B,{attrs:{title:e.$t("app.setting.label.auto_load_mobile_on_print_start")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.autoLoadMobileOnPrintStart,callback:function(s){e.autoLoadMobileOnPrintStart=s},expression:"autoLoadMobileOnPrintStart"}})],1)]:e._e(),t(R),t(B,{attrs:{title:e.$t("app.setting.label.auto_follow_on_file_load")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.autoFollowOnFileLoad,callback:function(s){e.autoFollowOnFileLoad=s},expression:"autoFollowOnFileLoad"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.hide_single_part_bounding_box")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.hideSinglePartBoundingBox,callback:function(s){e.hideSinglePartBoundingBox=s},expression:"hideSinglePartBoundingBox"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],2)],1)},pfe=[],hfe=A(i0,dfe,pfe,!1,null,null);const ffe=hfe.exports;var mfe=Object.defineProperty,gfe=Object.getOwnPropertyDescriptor,u2=(r,e,t,s)=>{for(var n=s>1?void 0:s?gfe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&mfe(e,t,n),n};let Vu=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"user")}handleSave(){this.$emit("save",this.user),this.open=!1}};u2([He({type:Boolean})],Vu.prototype,"open",2);u2([$({type:Object,required:!0})],Vu.prototype,"user",2);Vu=u2([L({})],Vu);var vfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.user.created_on?e.$t("app.general.label.edit_user"):e.$t("app.general.label.add_user"),"save-button-text":e.user.created_on?e.$t("app.general.btn.save"):e.$t("app.general.btn.add"),"max-width":"500"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(B,{attrs:{title:e.$t("app.general.label.name")}},[t(ae,{staticClass:"mt-0",attrs:{autocomplete:"username",disabled:e.user.created_on,filled:"",dense:"",spellcheck:"false","hide-details":"auto",rules:[e.$rules.required,e.$rules.lengthLessThanOrEqual(60)]},model:{value:e.user.username,callback:function(s){e.$set(e.user,"username",s)},expression:"user.username"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.password")}},[t(ae,{staticClass:"mt-0",attrs:{autocomplete:"current-password",filled:"",dense:"",type:"password","hide-details":"auto",rules:[e.$rules.required,e.$rules.lengthGreaterThanOrEqual(4),e.$rules.passwordNotEqualUsername(e.user.username)]},model:{value:e.user.password,callback:function(s){e.$set(e.user,"password",s)},expression:"user.password"}})],1)],1)],1)},_fe=[],yfe=A(Vu,vfe,_fe,!1,null,null);const bfe=yfe.exports;/*!
* qrcode.vue v1.7.0
* A Vue component to generate QRCode.
* © 2017-2019 @scopewu(https://github.com/scopewu)
* MIT License.
*/var Xr={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8};function z7(r){this.mode=Xr.MODE_8BIT_BYTE,this.data=r}z7.prototype={getLength:function(r){return this.data.length},write:function(r){for(var e=0;e<this.data.length;e++)r.put(this.data.charCodeAt(e),8)}};var $fe=z7,Dc={L:1,M:0,Q:3,H:2};function un(r,e){this.totalCount=r,this.dataCount=e}un.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]];un.getRSBlocks=function(r,e){var t=un.getRsBlockTable(r,e);if(t==null)throw new Error("bad rs block @ typeNumber:"+r+"/errorCorrectLevel:"+e);for(var s=t.length/3,n=new Array,i=0;i<s;i++)for(var a=t[i*3+0],o=t[i*3+1],l=t[i*3+2],c=0;c<a;c++)n.push(new un(o,l));return n};un.getRsBlockTable=function(r,e){switch(e){case Dc.L:return un.RS_BLOCK_TABLE[(r-1)*4+0];case Dc.M:return un.RS_BLOCK_TABLE[(r-1)*4+1];case Dc.Q:return un.RS_BLOCK_TABLE[(r-1)*4+2];case Dc.H:return un.RS_BLOCK_TABLE[(r-1)*4+3];default:return}};var U7=un;function W7(){this.buffer=new Array,this.length=0}W7.prototype={get:function(r){var e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)==1},put:function(r,e){for(var t=0;t<e;t++)this.putBit((r>>>e-t-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(r){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var G7=W7,Vs={glog:function(r){if(r<1)throw new Error("glog("+r+")");return Vs.LOG_TABLE[r]},gexp:function(r){for(;r<0;)r+=255;for(;r>=256;)r-=255;return Vs.EXP_TABLE[r]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)};for(var nr=0;nr<8;nr++)Vs.EXP_TABLE[nr]=1<<nr;for(var nr=8;nr<256;nr++)Vs.EXP_TABLE[nr]=Vs.EXP_TABLE[nr-4]^Vs.EXP_TABLE[nr-5]^Vs.EXP_TABLE[nr-6]^Vs.EXP_TABLE[nr-8];for(var nr=0;nr<255;nr++)Vs.LOG_TABLE[Vs.EXP_TABLE[nr]]=nr;var ui=Vs;function rh(r,e){if(r.length==null)throw new Error(r.length+"/"+e);for(var t=0;t<r.length&&r[t]==0;)t++;this.num=new Array(r.length-t+e);for(var s=0;s<r.length-t;s++)this.num[s]=r[s+t]}rh.prototype={get:function(r){return this.num[r]},getLength:function(){return this.num.length},multiply:function(r){for(var e=new Array(this.getLength()+r.getLength()-1),t=0;t<this.getLength();t++)for(var s=0;s<r.getLength();s++)e[t+s]^=ui.gexp(ui.glog(this.get(t))+ui.glog(r.get(s)));return new rh(e,0)},mod:function(r){if(this.getLength()-r.getLength()<0)return this;for(var e=ui.glog(this.get(0))-ui.glog(r.get(0)),t=new Array(this.getLength()),s=0;s<this.getLength();s++)t[s]=this.get(s);for(var s=0;s<r.getLength();s++)t[s]^=ui.gexp(ui.glog(r.get(s))+e);return new rh(t,0).mod(r)}};var a0=rh,li={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},rr={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(r){for(var e=r<<10;rr.getBCHDigit(e)-rr.getBCHDigit(rr.G15)>=0;)e^=rr.G15<<rr.getBCHDigit(e)-rr.getBCHDigit(rr.G15);return(r<<10|e)^rr.G15_MASK},getBCHTypeNumber:function(r){for(var e=r<<12;rr.getBCHDigit(e)-rr.getBCHDigit(rr.G18)>=0;)e^=rr.G18<<rr.getBCHDigit(e)-rr.getBCHDigit(rr.G18);return r<<12|e},getBCHDigit:function(r){for(var e=0;r!=0;)e++,r>>>=1;return e},getPatternPosition:function(r){return rr.PATTERN_POSITION_TABLE[r-1]},getMask:function(r,e,t){switch(r){case li.PATTERN000:return(e+t)%2==0;case li.PATTERN001:return e%2==0;case li.PATTERN010:return t%3==0;case li.PATTERN011:return(e+t)%3==0;case li.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2==0;case li.PATTERN101:return e*t%2+e*t%3==0;case li.PATTERN110:return(e*t%2+e*t%3)%2==0;case li.PATTERN111:return(e*t%3+(e+t)%2)%2==0;default:throw new Error("bad maskPattern:"+r)}},getErrorCorrectPolynomial:function(r){for(var e=new a0([1],0),t=0;t<r;t++)e=e.multiply(new a0([1,ui.gexp(t)],0));return e},getLengthInBits:function(r,e){if(1<=e&&e<10)switch(r){case Xr.MODE_NUMBER:return 10;case Xr.MODE_ALPHA_NUM:return 9;case Xr.MODE_8BIT_BYTE:return 8;case Xr.MODE_KANJI:return 8;default:throw new Error("mode:"+r)}else if(e<27)switch(r){case Xr.MODE_NUMBER:return 12;case Xr.MODE_ALPHA_NUM:return 11;case Xr.MODE_8BIT_BYTE:return 16;case Xr.MODE_KANJI:return 10;default:throw new Error("mode:"+r)}else if(e<41)switch(r){case Xr.MODE_NUMBER:return 14;case Xr.MODE_ALPHA_NUM:return 13;case Xr.MODE_8BIT_BYTE:return 16;case Xr.MODE_KANJI:return 12;default:throw new Error("mode:"+r)}else throw new Error("type:"+e)},getLostPoint:function(r){for(var e=r.getModuleCount(),t=0,s=0;s<e;s++)for(var n=0;n<e;n++){for(var i=0,a=r.isDark(s,n),o=-1;o<=1;o++)if(!(s+o<0||e<=s+o))for(var l=-1;l<=1;l++)n+l<0||e<=n+l||o==0&&l==0||a==r.isDark(s+o,n+l)&&i++;i>5&&(t+=3+i-5)}for(var s=0;s<e-1;s++)for(var n=0;n<e-1;n++){var c=0;r.isDark(s,n)&&c++,r.isDark(s+1,n)&&c++,r.isDark(s,n+1)&&c++,r.isDark(s+1,n+1)&&c++,(c==0||c==4)&&(t+=3)}for(var s=0;s<e;s++)for(var n=0;n<e-6;n++)r.isDark(s,n)&&!r.isDark(s,n+1)&&r.isDark(s,n+2)&&r.isDark(s,n+3)&&r.isDark(s,n+4)&&!r.isDark(s,n+5)&&r.isDark(s,n+6)&&(t+=40);for(var n=0;n<e;n++)for(var s=0;s<e-6;s++)r.isDark(s,n)&&!r.isDark(s+1,n)&&r.isDark(s+2,n)&&r.isDark(s+3,n)&&r.isDark(s+4,n)&&!r.isDark(s+5,n)&&r.isDark(s+6,n)&&(t+=40);for(var u=0,n=0;n<e;n++)for(var s=0;s<e;s++)r.isDark(s,n)&&u++;var d=Math.abs(100*u/e/e-50)/5;return t+=d*10,t}},Wi=rr;function fn(r,e){this.typeNumber=r,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var ps=fn.prototype;ps.addData=function(r){var e=new $fe(r);this.dataList.push(e),this.dataCache=null};ps.isDark=function(r,e){if(r<0||this.moduleCount<=r||e<0||this.moduleCount<=e)throw new Error(r+","+e);return this.modules[r][e]};ps.getModuleCount=function(){return this.moduleCount};ps.make=function(){if(this.typeNumber<1){var r=1;for(r=1;r<40;r++){for(var e=U7.getRSBlocks(r,this.errorCorrectLevel),t=new G7,s=0,n=0;n<e.length;n++)s+=e[n].dataCount;for(var n=0;n<this.dataList.length;n++){var i=this.dataList[n];t.put(i.mode,4),t.put(i.getLength(),Wi.getLengthInBits(i.mode,r)),i.write(t)}if(t.getLengthInBits()<=s*8)break}this.typeNumber=r}this.makeImpl(!1,this.getBestMaskPattern())};ps.makeImpl=function(r,e){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var t=0;t<this.moduleCount;t++){this.modules[t]=new Array(this.moduleCount);for(var s=0;s<this.moduleCount;s++)this.modules[t][s]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(r,e),this.typeNumber>=7&&this.setupTypeNumber(r),this.dataCache==null&&(this.dataCache=fn.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)};ps.setupPositionProbePattern=function(r,e){for(var t=-1;t<=7;t++)if(!(r+t<=-1||this.moduleCount<=r+t))for(var s=-1;s<=7;s++)e+s<=-1||this.moduleCount<=e+s||(0<=t&&t<=6&&(s==0||s==6)||0<=s&&s<=6&&(t==0||t==6)||2<=t&&t<=4&&2<=s&&s<=4?this.modules[r+t][e+s]=!0:this.modules[r+t][e+s]=!1)};ps.getBestMaskPattern=function(){for(var r=0,e=0,t=0;t<8;t++){this.makeImpl(!0,t);var s=Wi.getLostPoint(this);(t==0||r>s)&&(r=s,e=t)}return e};ps.createMovieClip=function(r,e,t){var s=r.createEmptyMovieClip(e,t),n=1;this.make();for(var i=0;i<this.modules.length;i++)for(var a=i*n,o=0;o<this.modules[i].length;o++){var l=o*n,c=this.modules[i][o];c&&(s.beginFill(0,100),s.moveTo(l,a),s.lineTo(l+n,a),s.lineTo(l+n,a+n),s.lineTo(l,a+n),s.endFill())}return s};ps.setupTimingPattern=function(){for(var r=8;r<this.moduleCount-8;r++)this.modules[r][6]==null&&(this.modules[r][6]=r%2==0);for(var e=8;e<this.moduleCount-8;e++)this.modules[6][e]==null&&(this.modules[6][e]=e%2==0)};ps.setupPositionAdjustPattern=function(){for(var r=Wi.getPatternPosition(this.typeNumber),e=0;e<r.length;e++)for(var t=0;t<r.length;t++){var s=r[e],n=r[t];if(this.modules[s][n]==null)for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)i==-2||i==2||a==-2||a==2||i==0&&a==0?this.modules[s+i][n+a]=!0:this.modules[s+i][n+a]=!1}};ps.setupTypeNumber=function(r){for(var e=Wi.getBCHTypeNumber(this.typeNumber),t=0;t<18;t++){var s=!r&&(e>>t&1)==1;this.modules[Math.floor(t/3)][t%3+this.moduleCount-8-3]=s}for(var t=0;t<18;t++){var s=!r&&(e>>t&1)==1;this.modules[t%3+this.moduleCount-8-3][Math.floor(t/3)]=s}};ps.setupTypeInfo=function(r,e){for(var t=this.errorCorrectLevel<<3|e,s=Wi.getBCHTypeInfo(t),n=0;n<15;n++){var i=!r&&(s>>n&1)==1;n<6?this.modules[n][8]=i:n<8?this.modules[n+1][8]=i:this.modules[this.moduleCount-15+n][8]=i}for(var n=0;n<15;n++){var i=!r&&(s>>n&1)==1;n<8?this.modules[8][this.moduleCount-n-1]=i:n<9?this.modules[8][15-n-1+1]=i:this.modules[8][15-n-1]=i}this.modules[this.moduleCount-8][8]=!r};ps.mapData=function(r,e){for(var t=-1,s=this.moduleCount-1,n=7,i=0,a=this.moduleCount-1;a>0;a-=2)for(a==6&&a--;;){for(var o=0;o<2;o++)if(this.modules[s][a-o]==null){var l=!1;i<r.length&&(l=(r[i]>>>n&1)==1);var c=Wi.getMask(e,s,a-o);c&&(l=!l),this.modules[s][a-o]=l,n--,n==-1&&(i++,n=7)}if(s+=t,s<0||this.moduleCount<=s){s-=t,t=-t;break}}};fn.PAD0=236;fn.PAD1=17;fn.createData=function(r,e,t){for(var s=U7.getRSBlocks(r,e),n=new G7,i=0;i<t.length;i++){var a=t[i];n.put(a.mode,4),n.put(a.getLength(),Wi.getLengthInBits(a.mode,r)),a.write(n)}for(var o=0,i=0;i<s.length;i++)o+=s[i].dataCount;if(n.getLengthInBits()>o*8)throw new Error("code length overflow. ("+n.getLengthInBits()+">"+o*8+")");for(n.getLengthInBits()+4<=o*8&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(!1);for(;!(n.getLengthInBits()>=o*8||(n.put(fn.PAD0,8),n.getLengthInBits()>=o*8));)n.put(fn.PAD1,8);return fn.createBytes(n,s)};fn.createBytes=function(r,e){for(var t=0,s=0,n=0,i=new Array(e.length),a=new Array(e.length),o=0;o<e.length;o++){var l=e[o].dataCount,c=e[o].totalCount-l;s=Math.max(s,l),n=Math.max(n,c),i[o]=new Array(l);for(var u=0;u<i[o].length;u++)i[o][u]=255&r.buffer[u+t];t+=l;var d=Wi.getErrorCorrectPolynomial(c),p=new a0(i[o],d.getLength()-1),h=p.mod(d);a[o]=new Array(d.getLength()-1);for(var u=0;u<a[o].length;u++){var m=u+h.getLength()-a[o].length;a[o][u]=m>=0?h.get(m):0}}for(var g=0,u=0;u<e.length;u++)g+=e[u].totalCount;for(var v=new Array(g),y=0,u=0;u<s;u++)for(var o=0;o<e.length;o++)u<i[o].length&&(v[y++]=i[o][u]);for(var u=0;u<n;u++)for(var o=0;o<e.length;o++)u<a[o].length&&(v[y++]=a[o][u]);return v};var Sfe=fn;function wfe(r){for(var e="",t=0;t<r.length;t++){var s=r.charCodeAt(t);s<128?e+=String.fromCharCode(s):s<2048?(e+=String.fromCharCode(192|s>>6),e+=String.fromCharCode(128|s&63)):s<55296||s>=57344?(e+=String.fromCharCode(224|s>>12),e+=String.fromCharCode(128|s>>6&63),e+=String.fromCharCode(128|s&63)):(t++,s=65536+((s&1023)<<10|r.charCodeAt(t)&1023),e+=String.fromCharCode(240|s>>18),e+=String.fromCharCode(128|s>>12&63),e+=String.fromCharCode(128|s>>6&63),e+=String.fromCharCode(128|s&63))}return e}function xfe(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=[];return r.forEach(function(s,n){var i=null;s.forEach(function(a,o){if(!a&&i!==null){t.push("M".concat(i+e," ").concat(n+e,"h").concat(o-i,"v1H").concat(i+e,"z")),i=null;return}if(o===s.length-1){if(!a)return;i===null?t.push("M".concat(o+e,",").concat(n+e," h1v1H").concat(o+e,"z")):t.push("M".concat(i+e,",").concat(n+e," h").concat(o+1-i,"v1H").concat(i+e,"z"));return}a&&i===null&&(i=o)})}),t.join("")}var Cfe={props:{value:{type:String,required:!0,default:""},className:{type:String,default:""},size:{type:[Number,String],default:100,validator:function(e){return isNaN(Number(e))!==!0}},level:{type:String,default:"L",validator:function(e){return["L","Q","M","H"].indexOf(e)>-1}},background:{type:String,default:"#fff"},foreground:{type:String,default:"#000"},renderAs:{type:String,required:!1,default:"canvas",validator:function(e){return["canvas","svg"].indexOf(e)>-1}}},data:function(){return{numCells:0,fgPath:""}},updated:function(){this.render()},mounted:function(){this.render()},methods:{render:function(){var e=this.value,t=this.size,s=this.level,n=this.background,i=this.foreground,a=this.renderAs,o=t>>>0,l=new Sfe(-1,Dc[s]);l.addData(wfe(e)),l.make();var c=l.modules,u=o/c.length,d=o/c.length,p=window.devicePixelRatio||1;if(a==="svg")this.numCells=c.length,this.fgPath=xfe(c);else{var h=this.$refs["qrcode-vue"],m=h.getContext("2d");h.height=h.width=o*p,m.scale(p,p),c.forEach(function(g,v){g.forEach(function(y,C){m.fillStyle=y?i:n;var x=Math.ceil((C+1)*u)-Math.floor(C*u),S=Math.ceil((v+1)*d)-Math.floor(v*d);m.fillRect(Math.round(C*u),Math.round(v*d),x,S)})})}}},render:function(e){var t=this.className,s=this.value,n=this.level,i=this.background,a=this.foreground,o=this.size,l=this.renderAs,c=this.numCells,u=this.fgPath;return e("div",{class:this.class||t,attrs:{value:s,level:n,background:i,foreground:a}},[l==="svg"?e("svg",{attrs:{height:o,width:o,shapeRendering:"crispEdges",viewBox:"0 0 ".concat(c," ").concat(c)},style:{width:o+"px",height:o+"px"}},[e("path",{attrs:{fill:i,d:"M0,0 h".concat(c,"v").concat(c,"H0z")}}),e("path",{attrs:{fill:a,d:u}})]):e("canvas",{attrs:{height:o,width:o},style:{width:o+"px",height:o+"px"},ref:"qrcode-vue"},[])])}},Pfe=Object.defineProperty,Lfe=Object.getOwnPropertyDescriptor,d2=(r,e,t,s)=>{for(var n=s>1?void 0:s?Lfe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Pfe(e,t,n),n};let Nu=class extends b{constructor(){super(...arguments);f(this,"value");f(this,"size")}};d2([$({type:String,default:""})],Nu.prototype,"value",2);d2([$({type:Number,default:260})],Nu.prototype,"size",2);Nu=d2([L({components:{QrcodeVue:Cfe}})],Nu);var Afe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("qrcode-vue",{attrs:{value:e.value,size:e.size,level:"L"}})},Efe=[],Ofe=A(Nu,Afe,Efe,!1,null,"d9dbf29c");const Tfe=Ofe.exports;var kfe=Object.defineProperty,Dfe=Object.getOwnPropertyDescriptor,q7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Dfe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&kfe(e,t,n),n};let If=class extends b{constructor(){super(...arguments);f(this,"open")}get apiKey(){return this.$store.getters["auth/getApiKey"]}handleRefreshApiKey(){this.$store.dispatch("auth/refreshApiKey")}};q7([He({type:Boolean})],If.prototype,"open",2);If=q7([L({})],If);var Mfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.general.label.api_key"),"max-width":"500"},scopedSlots:e._u([{key:"actions",fn:function(){return[t(_t),t(M,{attrs:{color:"primary",text:"",type:"button"},on:{click:e.handleRefreshApiKey}},[e._v(" "+e._s(e.$t("app.general.btn.refresh"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(ae,{attrs:{value:e.apiKey,filled:"",dense:"","single-line":"","hide-details":"",readonly:""}}),t(Ur,{staticClass:"pt-4",attrs:{"align-center":"",column:""}},[t(Tfe,{attrs:{value:e.apiKey,centered:""}})],1)],1)],1)},Rfe=[],Ife=A(If,Mfe,Rfe,!1,null,null);const Ffe=Ife.exports;var Hfe=Object.defineProperty,Bfe=Object.getOwnPropertyDescriptor,jfe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Bfe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Hfe(e,t,n),n};let o0=class extends b{constructor(){super(...arguments);f(this,"search","");f(this,"categoryId");f(this,"userDialogState",{open:!1,user:null,handler:null});f(this,"apiKeyDialogState",{open:!1})}get users(){return this.$store.getters["auth/getUsers"]}get currentUser(){const t=this.$store.getters["auth/getCurrentUser"];return t&&t.username?t.username:""}handleAddUserDialog(){this.userDialogState={open:!0,user:{username:"",password:""},handler:this.handleSaveUser}}handleEditUserDialog(t){this.userDialogState={open:!0,user:t,handler:this.handleSaveUser}}handleApiKeyDialog(){this.apiKeyDialogState.open=!0}async handleRemoveUser(t){await this.$confirm(this.$t("app.general.simple_form.msg.confirm_remove_user",{username:t.username}).toString(),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&this.$store.dispatch("auth/removeUser",t)}async handleSaveUser(t){await this.$store.dispatch("auth/addUser",t),this.users.length===0&&this.$store.dispatch("auth/checkTrust")}};o0=jfe([L({components:{UserConfigDialog:bfe,ApiKeyDialog:Ffe}})],o0);var Vfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"auth"}},[e._v(" "+e._s(e.$t("app.setting.title.authentication"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,[t(M,{staticClass:"mr-2",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleApiKeyDialog}},[t(w,{attrs:{small:"",left:""}},[e._v(" $edit ")]),e._v(" "+e._s(e.$t("app.general.label.api_key"))+" ")],1),t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAddUserDialog}},[t(w,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_user"))+" ")],1)],1),e.users.length>0?t(R):e._e(),e._l(e.users,function(s,n){return[t(B,{key:`user-${s.username}`,attrs:{"sub-title":s.username===e.currentUser?e.$t("app.general.label.current_user"):s.source!=="moonraker"?e.$t("app.general.label.user_managed_source",{source:e.$t(`app.general.label.${s.source}`)}):void 0,"r-cols":3},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(s.username)+" ")]},proxy:!0}],null,!0)},[t(M,{attrs:{disabled:s.username===e.currentUser||s.source!=="moonraker",fab:"",text:"","x-small":"",color:""},on:{click:function(i){return i.stopPropagation(),e.handleRemoveUser(s)}}},[t(w,{attrs:{color:""}},[e._v(" $close ")])],1)],1),n<e.users.length-1?t(R,{key:`divider-${s.username}`}):e._e()]}),e.userDialogState.open?t("user-config-dialog",{attrs:{user:e.userDialogState.user},on:{save:e.userDialogState.handler},model:{value:e.userDialogState.open,callback:function(s){e.$set(e.userDialogState,"open",s)},expression:"userDialogState.open"}}):e._e(),e.apiKeyDialogState.open?t("api-key-dialog",{model:{value:e.apiKeyDialogState.open,callback:function(s){e.$set(e.apiKeyDialogState,"open",s)},expression:"apiKeyDialogState.open"}}):e._e()],2)],1)},Nfe=[],zfe=A(o0,Vfe,Nfe,!1,null,null);const Ufe=zfe.exports;var Wfe=Object.defineProperty,Gfe=Object.getOwnPropertyDescriptor,p2=(r,e,t,s)=>{for(var n=s>1?void 0:s?Gfe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Wfe(e,t,n),n};let zu=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"filter")}get customRules(){return{uniqueName:t=>!this.filters.some(s=>s.id!==this.filter.id&&s.name.toLowerCase()===t.toLowerCase())||this.$t("app.general.simple_form.error.exists")}}get types(){return[{text:this.$t("app.setting.label.contains"),value:"contains",rules:[]},{text:this.$t("app.setting.label.starts_with"),value:"starts-with",rules:[]},{text:this.$t("app.setting.label.expression"),value:"expression",rules:[this.$rules.regExpPatternValid]}]}get type(){return this.types.find(t=>{var s;return t.value===((s=this.filter)==null?void 0:s.type)})||this.types[0]}get filters(){return this.$store.getters["console/getFilters"]}handleSave(){this.$emit("save",this.filter),this.open=!1}};p2([He({type:Boolean})],zu.prototype,"open",2);p2([$({type:Object,required:!0})],zu.prototype,"filter",2);zu=p2([L({})],zu);var qfe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.filter.id?e.$t("app.general.label.edit_filter"):e.$t("app.general.label.add_filter"),"max-width":"500"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(B,{attrs:{title:e.$t("app.setting.label.enable"),"r-cols":8}},[t(Ce,{staticClass:"mt-0",attrs:{"hide-details":"auto"},model:{value:e.filter.enabled,callback:function(s){e.$set(e.filter,"enabled",s)},expression:"filter.enabled"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.name"),"r-cols":8}},[t(ae,{staticClass:"mt-0",attrs:{filled:"",dense:"","hide-details":"auto",rules:[e.$rules.required,e.customRules.uniqueName]},model:{value:e.filter.name,callback:function(s){e.$set(e.filter,"name",s)},expression:"filter.name"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.type"),"r-cols":8}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.types,"item-value":"value","item-text":"text"},model:{value:e.filter.type,callback:function(s){e.$set(e.filter,"type",s)},expression:"filter.type"}})],1),t(R),t(B,{attrs:{title:e.type.text,"r-cols":8}},[t(ae,{staticClass:"mt-0",attrs:{filled:"",dense:"",spellcheck:"false","hide-details":"auto",rules:[e.$rules.required,...e.type.rules]},model:{value:e.filter.value,callback:function(s){e.$set(e.filter,"value",s)},expression:"filter.value"}})],1)],1)],1)},Zfe=[],Yfe=A(zu,qfe,Zfe,!1,null,null);const Kfe=Yfe.exports;var Xfe=Object.defineProperty,Qfe=Object.getOwnPropertyDescriptor,Jfe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Qfe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Xfe(e,t,n),n};let l0=class extends Z(X){constructor(){super(...arguments);f(this,"dialogState",{open:!1,filter:null})}get filters(){return this.$store.getters["console/getFilters"]}handleEditFilterDialog(t){const s=t?{...t}:{id:"",enabled:!0,name:"",type:"contains",value:""};this.dialogState={open:!0,filter:s}}handleRemoveFilter(t){this.$store.dispatch("console/onRemoveFilter",t)}handleSaveFilter(t){this.$store.dispatch("console/onSaveFilter",t)}};l0=Jfe([L({components:{ConsoleFilterDialog:Kfe}})],l0);var eme=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"console"}},[e._v(" "+e._s(e.$t("app.setting.title.console"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{attrs:{title:e.$tc("app.setting.label.filter",2)}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:function(s){return e.handleEditFilterDialog(null)}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $plus ")]),e._v(" "+e._s(e.$t("app.setting.btn.add_filter"))+" ")],1)],1),e._l(e.filters,function(s){return[t(R,{key:`divider-${s.name}`}),t(B,{key:`filter-${s.name}`,attrs:{"r-cols":3},scopedSlots:e._u([{key:"title",fn:function(){return[e._v(" "+e._s(s.name)+" ")]},proxy:!0}],null,!0)},[t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleEditFilterDialog(s)}}},[t(w,{attrs:{color:""}},[e._v(" $edit ")])],1),t(M,{attrs:{fab:"",text:"","x-small":"",color:""},on:{click:function(n){return n.stopPropagation(),e.handleRemoveFilter(s)}}},[t(w,{attrs:{color:""}},[e._v(" $close ")])],1)],1)]}),e.dialogState.open?t("console-filter-dialog",{attrs:{filter:e.dialogState.filter},on:{save:e.handleSaveFilter},model:{value:e.dialogState.open,callback:function(s){e.$set(e.dialogState,"open",s)},expression:"dialogState.open"}}):e._e()],2)],1)},tme=[],rme=A(l0,eme,tme,!1,null,null);const sme=rme.exports;var nme=Object.defineProperty,ime=Object.getOwnPropertyDescriptor,ame=(r,e,t,s)=>{for(var n=s>1?void 0:s?ime(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&nme(e,t,n),n};let c0=class extends b{get textSortOrder(){return this.$store.state.config.uiSettings.general.textSortOrder}set textSortOrder(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.general.textSortOrder",value:e,server:!0})}get availableTextSortOrders(){return[{value:"default",text:this.$t("app.general.label.default")},{value:"numeric-prefix",text:this.$t("app.general.label.numeric_prefix_sort")},{value:"version",text:this.$t("app.general.label.version_sort")}]}};c0=ame([L({})],c0);var ome=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"browser"}},[e._v(" "+e._s(e.$t("app.setting.title.file_browser"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{attrs:{title:e.$t("app.setting.label.text_sort_order")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableTextSortOrders},model:{value:e.textSortOrder,callback:function(s){e.textSortOrder=s},expression:"textSortOrder"}})],1)],1)],1)},lme=[],cme=A(c0,ome,lme,!1,null,null);const ume=cme.exports;var dme=Object.defineProperty,pme=Object.getOwnPropertyDescriptor,hme=(r,e,t,s)=>{for(var n=s>1?void 0:s?pme(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&dme(e,t,n),n};let u0=class extends Z(X){get confirmDirtyEditorClose(){return this.$store.state.config.uiSettings.editor.confirmDirtyEditorClose}set confirmDirtyEditorClose(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor.confirmDirtyEditorClose",value:e,server:!0})}get autoEditExtensions(){return this.$store.state.config.uiSettings.editor.autoEditExtensions}set autoEditExtensions(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor.autoEditExtensions",value:[...new Set(e.map(t=>t.startsWith(".")?t:`.${t}`))].sort((t,s)=>t.localeCompare(s)),server:!0})}get restoreViewState(){return this.$store.state.config.uiSettings.editor.restoreViewState}set restoreViewState(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor.restoreViewState",value:e,server:!0})}get availableRestoreViewState(){return[{value:"never",text:this.$tc("app.setting.label.never")},{value:"session",text:this.$tc("app.setting.label.to_browser_session_storage")},{value:"local",text:this.$tc("app.setting.label.to_browser_local_storage")}]}get codeLens(){return this.$store.state.config.uiSettings.editor.codeLens}set codeLens(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor.codeLens",value:e,server:!0})}handleReset(){this.$store.dispatch("config/saveByPath",{path:"uiSettings.editor",value:zl().uiSettings.editor,server:!0})}};u0=hme([L({components:{}})],u0);var fme=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"editor"}},[e._v(" "+e._s(e.$t("app.setting.title.file_editor"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{attrs:{title:e.$t("app.setting.label.confirm_dirty_editor_close")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.confirmDirtyEditorClose,callback:function(s){e.confirmDirtyEditorClose=s},expression:"confirmDirtyEditorClose"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.auto_edit_extensions")}},[t(cn,{attrs:{filled:"",dense:"","hide-selected":"","hide-details":"auto",multiple:"","small-chips":"","append-icon":"","deletable-chips":""},model:{value:e.autoEditExtensions,callback:function(s){e.autoEditExtensions=s},expression:"autoEditExtensions"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.save_and_restore_view_state")}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.availableRestoreViewState},model:{value:e.restoreViewState,callback:function(s){e.restoreViewState=s},expression:"restoreViewState"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.show_code_lens")}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":""},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.codeLens,callback:function(s){e.codeLens=s},expression:"codeLens"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],1)],1)},mme=[],gme=A(u0,fme,mme,!1,null,null);const vme=gme.exports;var _me=Object.defineProperty,yme=Object.getOwnPropertyDescriptor,Z7=(r,e,t,s)=>{for(var n=s>1?void 0:s?yme(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&_me(e,t,n),n};let Ff=class extends Z(X){constructor(){super(...arguments);f(this,"hyperlapseCycleElement")}get hyperlapseCycleBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("hyperlapse_cycle")}get hyperlapseCycle(){var t;return(t=this.settings)==null?void 0:t.hyperlapse_cycle}setHyperlapseCycle(t){this.hyperlapseCycleElement.valid&&F.machineTimelapseSetSettings({hyperlapse_cycle:t})}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};Z7([ke("hyperlapseCycleElement")],Ff.prototype,"hyperlapseCycleElement",2);Ff=Z7([L({})],Ff);var bme=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.hyperlapse_cycle"),"sub-title":e.subtitleIfBlocked(e.hyperlapseCycleBlocked)}},[t(ae,{ref:"hyperlapseCycleElement",attrs:{value:e.hyperlapseCycle,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(1)],disabled:e.hyperlapseCycleBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"s"},on:{change:e.setHyperlapseCycle}})],1)],1)},$me=[],Sme=A(Ff,bme,$me,!1,null,null);const wme=Sme.exports;var xme=Object.defineProperty,Cme=Object.getOwnPropertyDescriptor,Id=(r,e,t,s)=>{for(var n=s>1?void 0:s?Cme(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&xme(e,t,n),n};let Va=class extends Z(X){constructor(){super(...arguments);f(this,"parkRetractDistanceElement");f(this,"parkRetractSpeedElement");f(this,"parkExtrudeDistanceElement");f(this,"parkExtrudeSpeedElement")}get parkRetractDistanceBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_retract_distance")}get parkRetractDistance(){var t;return(t=this.settings)==null?void 0:t.park_retract_distance}setParkRetractDistance(t){var s;(s=this.parkRetractDistanceElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_retract_distance:t})}get parkRetractSpeedBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_retract_speed")}get parkRetractSpeed(){var t;return(t=this.settings)==null?void 0:t.park_retract_speed}setParkRetractSpeed(t){var s;(s=this.parkRetractDistanceElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_retract_speed:t})}get parkExtrudeDistanceBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_extrude_distance")}get parkExtrudeDistance(){var t;return(t=this.settings)==null?void 0:t.park_extrude_distance}setParkExtrudeDistance(t){var s;(s=this.parkExtrudeDistanceElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_extrude_distance:t})}get parkExtrudeSpeedBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_extrude_speed")}get parkExtrudeSpeed(){var t;return(t=this.settings)==null?void 0:t.park_extrude_speed}setParkExtrudeSpeed(t){var s;(s=this.parkRetractDistanceElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_extrude_speed:t})}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};Id([ke("parkRetractDistanceElement")],Va.prototype,"parkRetractDistanceElement",2);Id([ke("parkRetractSpeedElement")],Va.prototype,"parkRetractSpeedElement",2);Id([ke("parkExtrudeDistanceElement")],Va.prototype,"parkExtrudeDistanceElement",2);Id([ke("parkExtrudeSpeedElement")],Va.prototype,"parkExtrudeSpeedElement",2);Va=Id([L({})],Va);var Pme=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_retract_distance"),"sub-title":e.subtitleIfBlocked(e.parkRetractDistanceBlocked)}},[t(ae,{ref:"parkRetractDistanceElement",attrs:{value:e.parkRetractDistance,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkRetractDistanceBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkRetractDistance}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_retract_speed"),"sub-title":e.subtitleIfBlocked(e.parkRetractSpeedBlocked)}},[t(ae,{ref:"parkRetractSpeedElement",attrs:{value:e.parkRetractSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],disabled:e.parkRetractSpeedBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm/s"},on:{change:e.setParkRetractSpeed}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_extrude_distance"),"sub-title":e.subtitleIfBlocked(e.parkExtrudeDistanceBlocked)}},[t(ae,{ref:"parkExtrudeDistanceElement",attrs:{value:e.parkExtrudeDistance,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkExtrudeDistanceBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkExtrudeDistance}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_extrude_speed"),"sub-title":e.subtitleIfBlocked(e.parkExtrudeSpeedBlocked)}},[t(ae,{ref:"parkExtrudeSpeedElement",attrs:{value:e.parkExtrudeSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThan(0)],disabled:e.parkExtrudeSpeedBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm/s"},on:{change:e.setParkExtrudeSpeed}})],1)],1)},Lme=[],Ame=A(Va,Pme,Lme,!1,null,null);const Y7=Ame.exports;var Eme=Object.defineProperty,Ome=Object.getOwnPropertyDescriptor,h2=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ome(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Eme(e,t,n),n};let Uu=class extends Z(X){constructor(){super(...arguments);f(this,"parkPosXElement");f(this,"parkPosYElement")}getCustomParkPosBlocked(t){return this.$store.getters["timelapse/isBlockedSetting"](`park_custom_pos_${t}`)}get parkpos(){var t;return(t=this.settings)==null?void 0:t.parkpos}set parkpos(t){F.machineTimelapseSetSettings({parkpos:t})}get parkPosX(){var t;return(t=this.settings)==null?void 0:t.park_custom_pos_x}setParkPosX(t){var s;(s=this.parkPosXElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_custom_pos_x:t})}get parkPosY(){var t;return(t=this.settings)==null?void 0:t.park_custom_pos_y}setParkPosY(t){var s;(s=this.parkPosYElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_custom_pos_y:t})}get bedSize(){return this.$store.getters["printer/getBedSize"]??{minX:-1/0,minY:-1/0,maxX:1/0,maxY:1/0}}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};h2([ke("parkPosXElement")],Uu.prototype,"parkPosXElement",2);h2([ke("parkPosYElement")],Uu.prototype,"parkPosYElement",2);Uu=h2([L({components:{ParkExtrudeRetractSettings:Y7}})],Uu);var Tme=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[["custom","x_only"].includes(e.parkpos)?[t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_custom_pos_x"),"sub-title":e.subtitleIfBlocked(e.getCustomParkPosBlocked("x"))}},[t(ae,{ref:"parkPosXElement",attrs:{value:e.parkPosX,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(e.bedSize.minX),e.$rules.numberLessThanOrEqual(e.bedSize.maxX)],disabled:e.getCustomParkPosBlocked("x"),"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkPosX}})],1)]:e._e(),["custom","y_only"].includes(e.parkpos)?[t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_custom_pos_y"),"sub-title":e.subtitleIfBlocked(e.getCustomParkPosBlocked("y"))}},[t(ae,{ref:"parkPosYElement",attrs:{value:e.parkPosY,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(e.bedSize.minY),e.$rules.numberLessThanOrEqual(e.bedSize.maxY)],disabled:e.getCustomParkPosBlocked("y"),"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkPosY}})],1)]:e._e()],2)},kme=[],Dme=A(Uu,Tme,kme,!1,null,null);const Mme=Dme.exports;var Rme=Object.defineProperty,Ime=Object.getOwnPropertyDescriptor,h1=(r,e,t,s)=>{for(var n=s>1?void 0:s?Ime(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Rme(e,t,n),n};let ml=class extends Z(X){constructor(){super(...arguments);f(this,"parkTimeElement");f(this,"parkTravelSpeedElement");f(this,"parkPosDZElement")}get parkPositions(){return["front_left","front_right","center","back_left","back_right","x_only","y_only","custom"].map(s=>({text:this.$tc(`app.timelapse.setting.parkpos.${s}`),value:s}))}get parkheadBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("parkhead")}get parkhead(){var t;return(t=this.settings)==null?void 0:t.parkhead}set parkhead(t){F.machineTimelapseSetSettings({parkhead:t})}get parkposBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("parkpos")}get parkpos(){var t;return(t=this.settings)==null?void 0:t.parkpos}set parkpos(t){F.machineTimelapseSetSettings({parkpos:t})}get parkTimeBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_time")}get parkTime(){var t;return((t=this.settings)==null?void 0:t.park_time)*1e3}setParkTime(t){var s;(s=this.parkTimeElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_time:t/1e3})}get parkTravelSpeedBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_travel_speed")}get parkTravelSpeed(){var t;return(t=this.settings)==null?void 0:t.park_travel_speed}setParkTravelSpeed(t){var s;(s=this.parkTravelSpeedElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_travel_speed:t})}get parkPosZBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("park_custom_pos_dz")}get parkPosZ(){var t;return(t=this.settings)==null?void 0:t.park_custom_pos_dz}setParkPosZ(t){var s;(s=this.parkPosDZElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({park_custom_pos_dz:t})}get firmwareRetractBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("fw_retract")}get firmwareRetract(){var t;return(t=this.settings)==null?void 0:t.fw_retract}set firmwareRetract(t){F.machineTimelapseSetSettings({fw_retract:t})}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}};h1([ke("parkTimeElement")],ml.prototype,"parkTimeElement",2);h1([ke("parkTravelSpeedElement")],ml.prototype,"parkTravelSpeedElement",2);h1([ke("parkPosDZElement")],ml.prototype,"parkPosDZElement",2);ml=h1([L({components:{CustomParkPositionSettings:Mme,ParkExtrudeRetractSettings:Y7}})],ml);var Fme=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.parkhead"),"sub-title":e.subtitleIfBlocked(e.parkheadBlocked)}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":"",disabled:e.parkheadBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.parkhead,callback:function(s){e.parkhead=s},expression:"parkhead"}})],1),e.parkhead?t("div",[t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_time"),"sub-title":e.subtitleIfBlocked(e.parkTimeBlocked)}},[t(ae,{ref:"parkTimeElement",attrs:{value:e.parkTime,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkTimeBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"ms"},on:{change:e.setParkTime}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_travel_speed"),"sub-title":e.subtitleIfBlocked(e.parkTravelSpeedBlocked)}},[t(ae,{ref:"parkTravelSpeedElement",attrs:{value:e.parkTravelSpeed,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkTravelSpeedBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm/s"},on:{change:e.setParkTravelSpeed}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.parkpos.label"),"sub-title":e.subtitleIfBlocked(e.parkposBlocked)}},[t(Te,{attrs:{filled:"",dense:"","hide-details":"auto",items:e.parkPositions,disabled:e.parkposBlocked,"item-value":"value","item-text":"text"},model:{value:e.parkpos,callback:function(s){e.parkpos=s},expression:"parkpos"}})],1),["custom","x_only","y_only"].includes(e.parkpos)?t("custom-park-position-settings"):e._e(),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.park_custom_pos_dz"),"sub-title":e.subtitleIfBlocked(e.parkPosZBlocked)}},[t(ae,{ref:"parkPosDZElement",attrs:{value:e.parkPosZ,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.parkPosZBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"mm"},on:{change:e.setParkPosZ}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.fw_retract"),"sub-title":e.subtitleIfBlocked(e.firmwareRetractBlocked)}},[t(Ce,{staticClass:"mb-5",attrs:{"hide-details":"",disabled:e.firmwareRetractBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.firmwareRetract,callback:function(s){e.firmwareRetract=s},expression:"firmwareRetract"}})],1),e.firmwareRetract?e._e():t("park-extrude-retract-settings")],1):e._e()],1)},Hme=[],Bme=A(ml,Fme,Hme,!1,null,null);const jme=Bme.exports;var Vme=Object.defineProperty,Nme=Object.getOwnPropertyDescriptor,K7=(r,e,t,s)=>{for(var n=s>1?void 0:s?Nme(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Vme(e,t,n),n};let Hf=class extends Z(X){constructor(){super(...arguments);f(this,"delayCompElement");f(this,"renderSettingsDialogOpen",!1)}get supportedModes(){return[{text:this.$tc("app.timelapse.setting.mode_layermacro"),value:"layermacro"}]}get cameras(){return this.$store.getters["webcams/getWebcams"].map(s=>({text:s.name,value:s.uid,disabled:!s.enabled}))}get cameraBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("camera")}get camera(){var t;return(t=this.settings)==null?void 0:t.camera}set camera(t){F.machineTimelapseSetSettings({camera:t})}get modeBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("mode")}get mode(){var t;return(t=this.settings)==null?void 0:t.mode}set mode(t){F.machineTimelapseSetSettings({mode:t})}get delayCompBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("stream_delay_compensation")}get delayComp(){var t;return((t=this.settings)==null?void 0:t.stream_delay_compensation)*1e3}setDelayComp(t){var s;(s=this.delayCompElement)!=null&&s.validate()&&F.machineTimelapseSetSettings({stream_delay_compensation:t/1e3})}get verboseGcodeBlocked(){return this.$store.getters["timelapse/isBlockedSetting"]("gcode_verbose")}get verboseGcode(){var t;return(t=this.settings)==null?void 0:t.gcode_verbose}set verboseGcode(t){F.machineTimelapseSetSettings({gcode_verbose:t})}get settings(){return this.$store.getters["timelapse/getSettings"]}subtitleIfBlocked(t){return t?this.$tc("app.general.tooltip.managed_by_moonraker"):""}handleReset(){const t=Object.entries(s2()).filter(([s])=>!this.$store.getters["timelapse/isBlockedSetting"](s));F.machineTimelapseSetSettings(Object.fromEntries(t))}};K7([ke("delayCompElement")],Hf.prototype,"delayCompElement",2);Hf=K7([L({components:{ToolheadParkingSettings:jme,HyperlapseSettings:wme,TimelapseRenderSettingsDialog:k7}})],Hf);var zme=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"timelapse"}},[e._v(" "+e._s(e.$t("app.general.title.timelapse"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{attrs:{title:e.$tc("app.general.title.camera",1),"sub-title":e.subtitleIfBlocked(e.cameraBlocked)}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.cameras,disabled:e.cameraBlocked},model:{value:e.camera,callback:function(s){e.camera=s},expression:"camera"}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.mode"),"sub-title":e.subtitleIfBlocked(e.modeBlocked)}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.supportedModes,disabled:e.modeBlocked},model:{value:e.mode,callback:function(s){e.mode=s},expression:"mode"}})],1),e.mode==="hyperlapse"?t("hyperlapse-settings"):e._e(),t("toolhead-parking-settings"),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.stream_delay_compensation"),"sub-title":e.subtitleIfBlocked(e.delayCompBlocked)}},[t(ae,{ref:"delayCompElement",attrs:{value:e.delayComp,rules:[e.$rules.required,e.$rules.numberValid,e.$rules.numberGreaterThanOrEqual(0)],disabled:e.delayCompBlocked,"hide-details":"auto",filled:"",dense:"","single-line":"",suffix:"ms"},on:{change:e.setDelayComp}})],1),t(R),t(B,{attrs:{title:e.$t("app.timelapse.setting.gcode_verbose"),"sub-title":e.subtitleIfBlocked(e.verboseGcodeBlocked)}},[t(Ce,{attrs:{"hide-details":"",disabled:e.verboseGcodeBlocked},nativeOn:{click:function(s){s.stopPropagation()}},model:{value:e.verboseGcode,callback:function(s){e.verboseGcode=s},expression:"verboseGcode"}})],1),t(R),t(B,{attrs:{title:e.$tc("app.timelapse.title.render_settings")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:function(s){e.renderSettingsDialogOpen=!0}}},[t(w,{attrs:{small:"",left:""}},[e._v(" $pencil ")]),e._v(" "+e._s(e.$t("app.general.btn.edit"))+" ")],1)],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],1),e.renderSettingsDialogOpen?t("timelapse-render-settings-dialog",{attrs:{renderable:!1},model:{value:e.renderSettingsDialogOpen,callback:function(s){e.renderSettingsDialogOpen=s},expression:"renderSettingsDialogOpen"}}):e._e()],1)},Ume=[],Wme=A(Hf,zme,Ume,!1,null,null);const Gme=Wme.exports;var qme=Object.defineProperty,Zme=Object.getOwnPropertyDescriptor,Yme=(r,e,t,s)=>{for(var n=s>1?void 0:s?Zme(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&qme(e,t,n),n};let d0=class extends Z(X){get autoSpoolSelectionDialog(){return this.$store.state.config.uiSettings.spoolman.autoSpoolSelectionDialog}set autoSpoolSelectionDialog(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.autoSpoolSelectionDialog",value:e,server:!0})}get enabledWebcams(){return this.$store.getters["webcams/getEnabledWebcams"]}get supportedCameras(){return[{text:this.$tc("app.setting.label.none"),value:null},...this.enabledWebcams.map(e=>({text:e.name,value:e.uid,disabled:e.service==="iframe"}))]}get autoOpenQRDetectionCameraId(){return this.$store.state.config.uiSettings.spoolman.autoOpenQRDetectionCamera}set autoOpenQRDetectionCameraId(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.autoOpenQRDetectionCamera",value:e,server:!0})}get preferDeviceCamera(){return this.$store.state.config.uiSettings.spoolman.preferDeviceCamera}set preferDeviceCamera(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.preferDeviceCamera",value:e,server:!0})}get autoSelectSpoolOnMatch(){return this.$store.state.config.uiSettings.spoolman.autoSelectSpoolOnMatch}set autoSelectSpoolOnMatch(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.autoSelectSpoolOnMatch",value:e,server:!0})}get warnOnNotEnoughFilament(){return this.$store.state.config.uiSettings.spoolman.warnOnNotEnoughFilament}set warnOnNotEnoughFilament(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.warnOnNotEnoughFilament",value:e,server:!0})}get warnOnFilamentTypeMismatch(){return this.$store.state.config.uiSettings.spoolman.warnOnFilamentTypeMismatch}set warnOnFilamentTypeMismatch(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.warnOnFilamentTypeMismatch",value:e,server:!0})}get remainingFilamentUnit(){return this.$store.state.config.uiSettings.spoolman.remainingFilamentUnit}set remainingFilamentUnit(e){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.remainingFilamentUnit",value:e,server:!0})}handleReset(){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman",value:zl().uiSettings.spoolman,server:!0})}};d0=Yme([L({components:{}})],d0);var Kme=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{attrs:{id:"spoolman"}},[e._v(" "+e._s(e.$t("app.spoolman.title.spoolman"))+" ")]),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,{attrs:{title:e.$t("app.spoolman.setting.show_spool_selection_dialog_on_print_start")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.autoSpoolSelectionDialog,callback:function(s){e.autoSpoolSelectionDialog=s},expression:"autoSpoolSelectionDialog"}})],1),t(R),t(B,{attrs:{title:e.$tc("app.spoolman.setting.auto_open_qr_camera")}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:e.supportedCameras},model:{value:e.autoOpenQRDetectionCameraId,callback:function(s){e.autoOpenQRDetectionCameraId=s},expression:"autoOpenQRDetectionCameraId"}})],1),t(R),t(B,{attrs:{title:e.$t("app.spoolman.setting.prefer_device_camera")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.preferDeviceCamera,callback:function(s){e.preferDeviceCamera=s},expression:"preferDeviceCamera"}})],1),t(R),t(B,{attrs:{title:e.$t("app.spoolman.setting.auto_select_spool_on_match")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.autoSelectSpoolOnMatch,callback:function(s){e.autoSelectSpoolOnMatch=s},expression:"autoSelectSpoolOnMatch"}})],1),t(R),t(B,{attrs:{title:e.$t("app.spoolman.setting.warn_on_not_enough_filament")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.warnOnNotEnoughFilament,callback:function(s){e.warnOnNotEnoughFilament=s},expression:"warnOnNotEnoughFilament"}})],1),t(R),t(B,{attrs:{title:e.$t("app.spoolman.setting.warn_on_filament_type_mismatch")}},[t(Ce,{staticClass:"mt-0 mb-4",attrs:{"hide-details":""},model:{value:e.warnOnFilamentTypeMismatch,callback:function(s){e.warnOnFilamentTypeMismatch=s},expression:"warnOnFilamentTypeMismatch"}})],1),t(R),t(B,{attrs:{title:e.$tc("app.spoolman.setting.remaining_filament_unit")}},[t(Te,{attrs:{filled:"",dense:"","single-line":"","hide-details":"auto",items:[{text:e.$tc("app.spoolman.label.weight"),value:"weight"},{text:e.$tc("app.spoolman.label.length"),value:"length"}]},model:{value:e.remainingFilamentUnit,callback:function(s){e.remainingFilamentUnit=s},expression:"remainingFilamentUnit"}})],1),t(R),t(B,{attrs:{title:e.$t("app.setting.label.reset")}},[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleReset}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")])],1)],1)],1)},Xme=[],Qme=A(d0,Kme,Xme,!1,null,null);const Jme=Qme.exports;var e1e=Object.defineProperty,t1e=Object.getOwnPropertyDescriptor,r1e=(r,e,t,s)=>{for(var n=s>1?void 0:s?t1e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&e1e(e,t,n),n};let p0=class extends Z(X){get supportsVersions(){return this.$store.getters["server/componentSupport"]("update_manager")}get supportsAuth(){return this.$store.getters["server/componentSupport"]("authorization")}get supportsTimelapse(){return this.$store.getters["server/componentSupport"]("timelapse")}get supportsSpoolman(){return this.$store.getters["server/componentSupport"]("spoolman")}};p0=r1e([L({components:{SpoolmanSettings:Jme,TimelapseSettings:Gme,MacroSettings:Zpe,GeneralSettings:rhe,PresetSettings:mhe,CameraSettings:Ahe,ToolheadSettings:Rhe,ThemeSettings:Nhe,VersionSettings:ofe,GcodePreviewSettings:ffe,AuthSettings:Ufe,ConsoleSettings:sme,FileBrowserSettings:ume,FileEditorSettings:vme}})],p0);var s1e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown,justify:"center"}},[t(I,{attrs:{cols:"12",lg:"8"}},[e.authenticated&&e.socketConnected?t("router-view"):e._e(),e.$route.matched.length===1?t("div",[t("general-settings"),t("theme-settings"),e.supportsAuth?t("auth-settings"):e._e(),t("console-settings"),t("file-browser-settings"),t("file-editor-settings"),t("macro-settings"),t("camera-settings"),t("toolhead-settings"),t("preset-settings"),t("gcode-preview-settings"),e.supportsTimelapse?t("timelapse-settings"):e._e(),e.supportsSpoolman?t("spoolman-settings"):e._e(),e.supportsVersions?t("version-settings"):e._e()],1):e._e()],1)],1)},n1e=[],i1e=A(p0,s1e,n1e,!1,null,null);const a1e=i1e.exports;var o1e=Object.defineProperty,l1e=Object.getOwnPropertyDescriptor,c1e=(r,e,t,s)=>{for(var n=s>1?void 0:s?l1e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&o1e(e,t,n),n};let h0=class extends b{get isVisible(){return!this.$vuetify.breakpoint.mobile}get items(){return[{name:this.$t("app.setting.title.general"),hash:"#general",visible:!0},{name:this.$t("app.setting.title.theme"),hash:"#theme",visible:!0},{name:this.$t("app.setting.title.authentication"),hash:"#auth",visible:!0},{name:this.$t("app.setting.title.console"),hash:"#console",visible:!0},{name:this.$t("app.setting.title.file_browser"),hash:"#browser",visible:!0},{name:this.$t("app.setting.title.file_editor"),hash:"#editor",visible:!0},{name:this.$t("app.setting.title.macros"),hash:"#macros",visible:!0},{name:this.$tc("app.setting.title.camera",2),hash:"#camera",visible:!0},{name:this.$t("app.setting.title.tool"),hash:"#toolhead",visible:!0},{name:this.$t("app.setting.title.thermal_presets"),hash:"#presets",visible:!0},{name:this.$t("app.setting.title.gcode_preview"),hash:"#gcodePreview",visible:!0},{name:this.$t("app.general.title.timelapse"),hash:"#timelapse",visible:this.supportsTimelapse},{name:this.$t("app.spoolman.title.spoolman"),hash:"#spoolman",visible:this.supportsSpoolman},{name:this.$t("app.version.title"),hash:"#versions",visible:this.supportsVersions}]}get supportsVersions(){return this.$store.getters["server/componentSupport"]("update_manager")}get supportsTimelapse(){return this.$store.getters["server/componentSupport"]("timelapse")}get supportsSpoolman(){return this.$store.getters["server/componentSupport"]("spoolman")}};h0=c1e([L({})],h0);var u1e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Mt,{staticClass:"grow pt-0",attrs:{dense:"",width:"180",color:e.$vuetify.theme.dark?"#1E1E20":"#FFFFFF"}},[e._l(e.items,function(s){return[s.visible?t(we,{key:s.name,attrs:{to:`/settings${s.hash}`,exact:!1,link:""}},[t(Ee,[t(xe,[e._v(e._s(s.name))])],1)],1):e._e()]})],2)},d1e=[],p1e=A(h0,u1e,d1e,!1,null,null);const d5=p1e.exports;var h1e=Object.defineProperty,f1e=Object.getOwnPropertyDescriptor,f2=(r,e,t,s)=>{for(var n=s>1?void 0:s?f1e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&h1e(e,t,n),n};let Wu=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"macro");f(this,"assign",null);f(this,"newMacro",null)}mounted(){this.newMacro={...this.macro}}get categories(){const e=[...this.$store.getters["macros/getCategories"]];return e.unshift({name:this.$t("app.general.label.uncategorized"),id:"0"}),e}get color(){var e;return this.newMacro&&this.newMacro.color!==""?this.newMacro.color:(e=this.$vuetify.theme.currentTheme.secondary)==null?void 0:e.toString()}set color(e){this.newMacro&&(this.newMacro.color=e)}handleResetColor(){this.newMacro&&(this.newMacro.color="")}handleSave(){this.$store.dispatch("macros/saveMacro",this.newMacro),this.open=!1}};f2([He({type:Boolean})],Wu.prototype,"open",2);f2([$({type:Object,required:!0})],Wu.prototype,"macro",2);Wu=f2([L({})],Wu);var m1e=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.newMacro?t(et,{attrs:{title:e.newMacro.name.toUpperCase(),"sub-title":e.newMacro.config.description,"max-width":"480"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(B,{attrs:{title:e.$t("app.general.label.alias")}},[t(ae,{attrs:{dense:"",filled:"","hide-details":""},model:{value:e.newMacro.alias,callback:function(s){e.$set(e.newMacro,"alias",s)},expression:"newMacro.alias"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.category")}},[t(Te,{attrs:{items:e.categories,"hide-details":"",dense:"",filled:"","item-value":"id","item-text":"name"},model:{value:e.newMacro.categoryId,callback:function(s){e.$set(e.newMacro,"categoryId",s)},expression:"newMacro.categoryId"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.color")}},[t(M,{staticClass:"mr-1",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleResetColor}},[e._v(" "+e._s(e.$t("app.setting.btn.reset"))+" ")]),t(ul,{attrs:{title:e.$t("app.general.btn.set_color")},model:{value:e.color,callback:function(s){e.color=s},expression:"color"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.disabled_while_printing")}},[t(Ce,{staticClass:"mt-0 pt-0",attrs:{color:"primary","hide-details":""},model:{value:e.newMacro.disabledWhilePrinting,callback:function(s){e.$set(e.newMacro,"disabledWhilePrinting",s)},expression:"newMacro.disabledWhilePrinting"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.visible")}},[t(Ce,{staticClass:"mt-0 pt-0",attrs:{color:"primary","hide-details":""},model:{value:e.newMacro.visible,callback:function(s){e.$set(e.newMacro,"visible",s)},expression:"newMacro.visible"}})],1)],1)],1):e._e()},g1e=[],v1e=A(Wu,m1e,g1e,!1,null,null);const _1e=v1e.exports;/*!
* vuex v3.6.2
* (c) 2021 Evan You
* @license MIT
*/function y1e(r){var e=Number(r.version.split(".")[0]);if(e>=2)r.mixin({beforeCreate:s});else{var t=r.prototype._init;r.prototype._init=function(n){n===void 0&&(n={}),n.init=n.init?[s].concat(n.init):s,t.call(this,n)}}function s(){var n=this.$options;n.store?this.$store=typeof n.store=="function"?n.store():n.store:n.parent&&n.parent.$store&&(this.$store=n.parent.$store)}}var b1e=typeof window<"u"?window:typeof global<"u"?global:{},Co=b1e.__VUE_DEVTOOLS_GLOBAL_HOOK__;function $1e(r){Co&&(r._devtoolHook=Co,Co.emit("vuex:init",r),Co.on("vuex:travel-to-state",function(e){r.replaceState(e)}),r.subscribe(function(e,t){Co.emit("vuex:mutation",e,t)},{prepend:!0}),r.subscribeAction(function(e,t){Co.emit("vuex:action",e,t)},{prepend:!0}))}function S1e(r,e){return r.filter(e)[0]}function f0(r,e){if(e===void 0&&(e=[]),r===null||typeof r!="object")return r;var t=S1e(e,function(n){return n.original===r});if(t)return t.copy;var s=Array.isArray(r)?[]:{};return e.push({original:r,copy:s}),Object.keys(r).forEach(function(n){s[n]=f0(r[n],e)}),s}function Wl(r,e){Object.keys(r).forEach(function(t){return e(r[t],t)})}function X7(r){return r!==null&&typeof r=="object"}function w1e(r){return r&&typeof r.then=="function"}function x1e(r,e){return function(){return r(e)}}var sn=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},Q7={namespaced:{configurable:!0}};Q7.namespaced.get=function(){return!!this._rawModule.namespaced};sn.prototype.addChild=function(e,t){this._children[e]=t};sn.prototype.removeChild=function(e){delete this._children[e]};sn.prototype.getChild=function(e){return this._children[e]};sn.prototype.hasChild=function(e){return e in this._children};sn.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)};sn.prototype.forEachChild=function(e){Wl(this._children,e)};sn.prototype.forEachGetter=function(e){this._rawModule.getters&&Wl(this._rawModule.getters,e)};sn.prototype.forEachAction=function(e){this._rawModule.actions&&Wl(this._rawModule.actions,e)};sn.prototype.forEachMutation=function(e){this._rawModule.mutations&&Wl(this._rawModule.mutations,e)};Object.defineProperties(sn.prototype,Q7);var lo=function(e){this.register([],e,!1)};lo.prototype.get=function(e){return e.reduce(function(t,s){return t.getChild(s)},this.root)};lo.prototype.getNamespace=function(e){var t=this.root;return e.reduce(function(s,n){return t=t.getChild(n),s+(t.namespaced?n+"/":"")},"")};lo.prototype.update=function(e){J7([],this.root,e)};lo.prototype.register=function(e,t,s){var n=this;s===void 0&&(s=!0);var i=new sn(t,s);if(e.length===0)this.root=i;else{var a=this.get(e.slice(0,-1));a.addChild(e[e.length-1],i)}t.modules&&Wl(t.modules,function(o,l){n.register(e.concat(l),o,s)})};lo.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1],n=t.getChild(s);n&&n.runtime&&t.removeChild(s)};lo.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),s=e[e.length-1];return t?t.hasChild(s):!1};function J7(r,e,t){if(e.update(t),t.modules)for(var s in t.modules){if(!e.getChild(s))return;J7(r.concat(s),e.getChild(s),t.modules[s])}}var Vr,hs=function(e){var t=this;e===void 0&&(e={}),!Vr&&typeof window<"u"&&window.Vue&&r9(window.Vue);var s=e.plugins;s===void 0&&(s=[]);var n=e.strict;n===void 0&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new lo(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Vr,this._makeLocalGettersCache=Object.create(null);var i=this,a=this,o=a.dispatch,l=a.commit;this.dispatch=function(p,h){return o.call(i,p,h)},this.commit=function(p,h,m){return l.call(i,p,h,m)},this.strict=n;var c=this._modules.root.state;f1(this,c,[],this._modules.root),g2(this,c),s.forEach(function(d){return d(t)});var u=e.devtools!==void 0?e.devtools:Vr.config.devtools;u&&$1e(this)},m2={state:{configurable:!0}};m2.state.get=function(){return this._vm._data.$$state};m2.state.set=function(r){};hs.prototype.commit=function(e,t,s){var n=this,i=Bf(e,t,s),a=i.type,o=i.payload,l={type:a,payload:o},c=this._mutations[a];c&&(this._withCommit(function(){c.forEach(function(d){d(o)})}),this._subscribers.slice().forEach(function(u){return u(l,n.state)}))};hs.prototype.dispatch=function(e,t){var s=this,n=Bf(e,t),i=n.type,a=n.payload,o={type:i,payload:a},l=this._actions[i];if(l){try{this._actionSubscribers.slice().filter(function(u){return u.before}).forEach(function(u){return u.before(o,s.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(u){return u(a)})):l[0](a);return new Promise(function(u,d){c.then(function(p){try{s._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(o,s.state)})}catch{}u(p)},function(p){try{s._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(o,s.state,p)})}catch{}d(p)})})}};hs.prototype.subscribe=function(e,t){return e9(e,this._subscribers,t)};hs.prototype.subscribeAction=function(e,t){var s=typeof e=="function"?{before:e}:e;return e9(s,this._actionSubscribers,t)};hs.prototype.watch=function(e,t,s){var n=this;return this._watcherVM.$watch(function(){return e(n.state,n.getters)},t,s)};hs.prototype.replaceState=function(e){var t=this;this._withCommit(function(){t._vm._data.$$state=e})};hs.prototype.registerModule=function(e,t,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),this._modules.register(e,t),f1(this,this.state,e,this._modules.get(e),s.preserveState),g2(this,this.state)};hs.prototype.unregisterModule=function(e){var t=this;typeof e=="string"&&(e=[e]),this._modules.unregister(e),this._withCommit(function(){var s=v2(t.state,e.slice(0,-1));Vr.delete(s,e[e.length-1])}),t9(this)};hs.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),this._modules.isRegistered(e)};hs.prototype.hotUpdate=function(e){this._modules.update(e),t9(this,!0)};hs.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t};Object.defineProperties(hs.prototype,m2);function e9(r,e,t){return e.indexOf(r)<0&&(t&&t.prepend?e.unshift(r):e.push(r)),function(){var s=e.indexOf(r);s>-1&&e.splice(s,1)}}function t9(r,e){r._actions=Object.create(null),r._mutations=Object.create(null),r._wrappedGetters=Object.create(null),r._modulesNamespaceMap=Object.create(null);var t=r.state;f1(r,t,[],r._modules.root,!0),g2(r,t,e)}function g2(r,e,t){var s=r._vm;r.getters={},r._makeLocalGettersCache=Object.create(null);var n=r._wrappedGetters,i={};Wl(n,function(o,l){i[l]=x1e(o,r),Object.defineProperty(r.getters,l,{get:function(){return r._vm[l]},enumerable:!0})});var a=Vr.config.silent;Vr.config.silent=!0,r._vm=new Vr({data:{$$state:e},computed:i}),Vr.config.silent=a,r.strict&&O1e(r),s&&(t&&r._withCommit(function(){s._data.$$state=null}),Vr.nextTick(function(){return s.$destroy()}))}function f1(r,e,t,s,n){var i=!t.length,a=r._modules.getNamespace(t);if(s.namespaced&&(r._modulesNamespaceMap[a],r._modulesNamespaceMap[a]=s),!i&&!n){var o=v2(e,t.slice(0,-1)),l=t[t.length-1];r._withCommit(function(){Vr.set(o,l,s.state)})}var c=s.context=C1e(r,a,t);s.forEachMutation(function(u,d){var p=a+d;L1e(r,p,u,c)}),s.forEachAction(function(u,d){var p=u.root?d:a+d,h=u.handler||u;A1e(r,p,h,c)}),s.forEachGetter(function(u,d){var p=a+d;E1e(r,p,u,c)}),s.forEachChild(function(u,d){f1(r,e,t.concat(d),u,n)})}function C1e(r,e,t){var s=e==="",n={dispatch:s?r.dispatch:function(i,a,o){var l=Bf(i,a,o),c=l.payload,u=l.options,d=l.type;return(!u||!u.root)&&(d=e+d),r.dispatch(d,c)},commit:s?r.commit:function(i,a,o){var l=Bf(i,a,o),c=l.payload,u=l.options,d=l.type;(!u||!u.root)&&(d=e+d),r.commit(d,c,u)}};return Object.defineProperties(n,{getters:{get:s?function(){return r.getters}:function(){return P1e(r,e)}},state:{get:function(){return v2(r.state,t)}}}),n}function P1e(r,e){if(!r._makeLocalGettersCache[e]){var t={},s=e.length;Object.keys(r.getters).forEach(function(n){if(n.slice(0,s)===e){var i=n.slice(s);Object.defineProperty(t,i,{get:function(){return r.getters[n]},enumerable:!0})}}),r._makeLocalGettersCache[e]=t}return r._makeLocalGettersCache[e]}function L1e(r,e,t,s){var n=r._mutations[e]||(r._mutations[e]=[]);n.push(function(a){t.call(r,s.state,a)})}function A1e(r,e,t,s){var n=r._actions[e]||(r._actions[e]=[]);n.push(function(a){var o=t.call(r,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:r.getters,rootState:r.state},a);return w1e(o)||(o=Promise.resolve(o)),r._devtoolHook?o.catch(function(l){throw r._devtoolHook.emit("vuex:error",l),l}):o})}function E1e(r,e,t,s){r._wrappedGetters[e]||(r._wrappedGetters[e]=function(i){return t(s.state,s.getters,i.state,i.getters)})}function O1e(r){r._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function v2(r,e){return e.reduce(function(t,s){return t[s]},r)}function Bf(r,e,t){return X7(r)&&r.type&&(t=e,e=r,r=r.type),{type:r,payload:e,options:t}}function r9(r){Vr&&r===Vr||(Vr=r,y1e(Vr))}var s9=g1(function(r,e){var t={};return m1(e).forEach(function(s){var n=s.key,i=s.val;t[n]=function(){var o=this.$store.state,l=this.$store.getters;if(r){var c=v1(this.$store,"mapState",r);if(!c)return;o=c.context.state,l=c.context.getters}return typeof i=="function"?i.call(this,o,l):o[i]},t[n].vuex=!0}),t}),n9=g1(function(r,e){var t={};return m1(e).forEach(function(s){var n=s.key,i=s.val;t[n]=function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];var c=this.$store.commit;if(r){var u=v1(this.$store,"mapMutations",r);if(!u)return;c=u.context.commit}return typeof i=="function"?i.apply(this,[c].concat(o)):c.apply(this.$store,[i].concat(o))}}),t}),i9=g1(function(r,e){var t={};return m1(e).forEach(function(s){var n=s.key,i=s.val;i=r+i,t[n]=function(){if(!(r&&!v1(this.$store,"mapGetters",r)))return this.$store.getters[i]},t[n].vuex=!0}),t}),a9=g1(function(r,e){var t={};return m1(e).forEach(function(s){var n=s.key,i=s.val;t[n]=function(){for(var o=[],l=arguments.length;l--;)o[l]=arguments[l];var c=this.$store.dispatch;if(r){var u=v1(this.$store,"mapActions",r);if(!u)return;c=u.context.dispatch}return typeof i=="function"?i.apply(this,[c].concat(o)):c.apply(this.$store,[i].concat(o))}}),t}),T1e=function(r){return{mapState:s9.bind(null,r),mapGetters:i9.bind(null,r),mapMutations:n9.bind(null,r),mapActions:a9.bind(null,r)}};function m1(r){return k1e(r)?Array.isArray(r)?r.map(function(e){return{key:e,val:e}}):Object.keys(r).map(function(e){return{key:e,val:r[e]}}):[]}function k1e(r){return Array.isArray(r)||X7(r)}function g1(r){return function(e,t){return typeof e!="string"?(t=e,e=""):e.charAt(e.length-1)!=="/"&&(e+="/"),r(e,t)}}function v1(r,e,t){var s=r._modulesNamespaceMap[t];return s}function D1e(r){r===void 0&&(r={});var e=r.collapsed;e===void 0&&(e=!0);var t=r.filter;t===void 0&&(t=function(u,d,p){return!0});var s=r.transformer;s===void 0&&(s=function(u){return u});var n=r.mutationTransformer;n===void 0&&(n=function(u){return u});var i=r.actionFilter;i===void 0&&(i=function(u,d){return!0});var a=r.actionTransformer;a===void 0&&(a=function(u){return u});var o=r.logMutations;o===void 0&&(o=!0);var l=r.logActions;l===void 0&&(l=!0);var c=r.logger;return c===void 0&&(c=console),function(u){var d=f0(u.state);typeof c>"u"||(o&&u.subscribe(function(p,h){var m=f0(h);if(t(p,d,m)){var g=f5(),v=n(p),y="mutation "+p.type+g;p5(c,y,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",s(d)),c.log("%c mutation","color: #03A9F4; font-weight: bold",v),c.log("%c next state","color: #4CAF50; font-weight: bold",s(m)),h5(c)}d=m}),l&&u.subscribeAction(function(p,h){if(i(p,h)){var m=f5(),g=a(p),v="action "+p.type+m;p5(c,v,e),c.log("%c action","color: #03A9F4; font-weight: bold",g),h5(c)}}))}}function p5(r,e,t){var s=t?r.groupCollapsed:r.group;try{s.call(r,e)}catch{r.log(e)}}function h5(r){try{r.groupEnd()}catch{r.log("—— log end ——")}}function f5(){var r=new Date;return" @ "+wp(r.getHours(),2)+":"+wp(r.getMinutes(),2)+":"+wp(r.getSeconds(),2)+"."+wp(r.getMilliseconds(),3)}function M1e(r,e){return new Array(e+1).join(r)}function wp(r,e){return M1e("0",e-r.toString().length)+r}var o9={Store:hs,install:r9,version:"3.6.2",mapState:s9,mapMutations:n9,mapGetters:i9,mapActions:a9,createNamespacedHelpers:T1e,createLogger:D1e};const l9=()=>({apiConnected:!0,open:!1,connecting:!1,disconnecting:!1,ready:!1,acceptingNotifications:!1,error:null,connectionId:null}),R1e=l9(),I1e={getConnectionState:r=>r.open,getConnectingState:r=>r.connecting,getApiConnected:r=>r.apiConnected},gl=(r,e)=>r in e;let m5;const F1e={async reset({commit:r}){r("setReset")},async onSocketOpen({commit:r,rootState:e},t){r("setSocketOpen",t),t===!0&&(F.serverInfo(),F.identify({client_name:he.APP_NAME,version:`${e.version.fluidd.version||"0.0.0"}-${e.version.fluidd.hash||"unknown"}`.trim(),type:"web",url:he.GITHUB_REPO}),F.serverFilesListRoot("config"))},async onSocketClose({dispatch:r,commit:e,state:t},s){const n=t.disconnecting,i=["server","power","webcams","jobQueue","charts","socket","wait","gcodePreview"];s.wasClean&&n&&(await r("reset",i,{root:!0}),e("setSocketConnecting",!0),b.$socket.connect()),s.wasClean&&!n&&(e("setSocketConnecting",!1),e("setSocketOpen",!1)),s.wasClean||(await r("reset",i,{root:!0}),e("setSocketConnecting",!0),e("setSocketOpen",!1))},async onSocketConnecting({commit:r},e){r("setSocketConnecting",e)},async onSocketError({commit:r},e){if(e.code>=400&&e.code<500){let t="";try{t=JSON.parse(e.message.replace(/'/g,'"')).message}catch{t=e.message}_r.$emit(t,{type:"error"})}e.code===503&&(r("printer/setPrinterInfo",{state:"error",state_message:e.message},{root:!0}),clearTimeout(m5),m5=window.setTimeout(()=>{F.serverInfo()},he.KLIPPY_RETRY_DELAY))},async onConnectionId({commit:r},{connection_id:e}){r("setConnectionId",e)},async onServerRead({dispatch:r},e){const{namespace:t,key:s,value:n}=e;if(gl(t,he.MOONRAKER_DB)){const i=he.MOONRAKER_DB[t].ROOTS,a=s&&gl(s,i)?i[s]:Object.values(i)[0];r(a.dispatch,n,{root:!0})}},async notifyStatusUpdate({state:r,commit:e,dispatch:t},s){await t("printer/onNotifyStatusUpdate",s,{root:!0}),r.ready||e("setSocketReadyState",!0)},async notifyGcodeResponse({dispatch:r},e){r("console/onAddConsoleEntry",{message:`${he.CONSOLE_RECEIVE_PREFIX}${e}`},{root:!0})},async notifyKlippyDisconnected(){F.serverInfo()},async notifyKlippyShutdown(){F.serverInfo()},async notifyKlippyReady(){ye.debug("Klippy Ready")},async notifyFilelistChanged({dispatch:r},e){r("files/notify"+mm(Fc(e.action)),e,{root:!0})},async notifyMetadataUpdate({dispatch:r},e){r("files/onFileMetaData",e,{root:!0})},async notifyPowerChanged({dispatch:r},e){r("power/onStatus",{[e.device]:e.status},{root:!0})},async notifyUpdateResponse({dispatch:r},e){r("version/onUpdateResponse",e,{root:!0})},async notifyUpdateRefreshed({dispatch:r},e){r("version/onUpdateStatus",e,{root:!0})},async notifyHistoryChanged({dispatch:r},e){r("history/onHistoryChange",e,{root:!0})},async notifyCpuThrottled({dispatch:r},e){r("server/onMachineThrottledState",e,{root:!0})},async notifyProcStatUpdate({dispatch:r},e){r("server/onMachineProcStats",e,{root:!0})},async notifyUserCreated({dispatch:r},e){r("auth/onUserCreated",e,{root:!0})},async notifyUserDeleted({dispatch:r},e){r("auth/onUserDeleted",e,{root:!0})},async notifyServiceStateChanged({dispatch:r},e){r("server/onServiceStateChanged",e,{root:!0})},async notifyTimelapseEvent({dispatch:r},e){r("timelapse/onEvent",e,{root:!0})},async notifyAnnouncementUpdate({dispatch:r},e){r("announcements/onAnnouncementUpdate",e,{root:!0})},async notifyAnnouncementDismissed({dispatch:r},e){r("announcements/onAnnouncementDismissed",e,{root:!0})},async notifyAnnouncementWake({dispatch:r},e){r("announcements/onAnnouncementWake",e,{root:!0})},async notifyWebcamsChanged({dispatch:r},e){r("webcams/onWebcamsChanged",e,{root:!0})},async notifySensorUpdate({dispatch:r},e){r("sensors/onSensorUpdate",e,{root:!0})},async notifyJobQueueChanged({dispatch:r},e){r("jobQueue/onJobQueueChanged",e,{root:!0})},async notifyActiveSpoolSet({dispatch:r},e){r("spoolman/onActiveSpool",e,{root:!0})},async notifySpoolmanStatusChanged({dispatch:r},e){r("spoolman/onStatusChanged",e.spoolman_connected,{root:!0})}},H1e={setReset(r){Object.assign(r,l9())},setSocketOpen(r,e){r.open!==e&&(r.open=e),r.disconnecting&&(r.disconnecting=!1)},setSocketConnecting(r,e){r.connecting!==e&&(r.connecting=e)},setSocketReadyState(r,e){r.ready=e},setAcceptNotifications(r,e){r.acceptingNotifications=e},setSocketDisconnecting(r,e){r.disconnecting=e},setApiConnected(r,e){r.apiConnected=e},setConnectionId(r,e){r.connectionId=e}},B1e=!0,j1e={namespaced:B1e,state:R1e,getters:I1e,actions:F1e,mutations:H1e},c9=()=>({authenticated:!1,token:null,refresh_token:null,currentUser:null,users:[],apiKey:""}),V1e=c9(),N1e={getAuthenticated:r=>r.authenticated,getCurrentUser:r=>r.currentUser,getUsers:r=>r.users,getToken:r=>r.token,getRefreshToken:r=>r.refresh_token,getApiKey:r=>r.apiKey},z1e={async reset({commit:r}){r("setReset")},async init({commit:r}){await rt.accessCurrentUserGet().then(e=>e.data.result).then(e=>r("setCurrentUser",e)),await rt.accessUsersListGet().then(e=>e.data.result.users).then(e=>r("setUsers",e)),await rt.accessApiKeyGet().then(e=>e.data.result).then(e=>r("setApiKey",e))},async initAuth({commit:r,rootState:e,rootGetters:t}){if(e.config.apiUrl===""){r("setAuthenticated",!0);return}const s=t["config/getTokenKeys"],n=localStorage.getItem(s["refresh-token"]),i=localStorage.getItem(s["user-token"]);i&&n?(r("setToken",i),r("setRefreshToken",n),rt.defaults.headers.common.Authorization=`Bearer ${i}`):delete rt.defaults.headers.common.Authorization},async checkToken({state:r}){var e;if((e=r.token)!=null&&e.exp){const t=r.token.exp,s=Date.now()/1e3;return t-s<300?(ye.debug("checkToken - isExpiring",new Date(s*1e3),new Date(t*1e3)),!0):!1}return!1},async refreshTokens({commit:r,rootGetters:e}){const t=e["config/getTokenKeys"],s=localStorage.getItem(t["refresh-token"]);try{const i=(await rt.accessRefreshJwtPost(s||"",{withAuth:!1,headers:{Authorization:void 0}})).data.result;return localStorage.setItem(t["user-token"],i.token),r("setToken",i.token),rt.defaults.headers.common.Authorization=`Bearer ${i.token}`,i.token}catch{}},async getAuthInfo(){try{const r=await rt.accessInfoGet({withAuth:!1});return{defaultSource:r.data.result.default_source,availableSources:r.data.result.available_sources}}catch{return{}}},async login({commit:r,rootGetters:e},{username:t,password:s,source:n}){const i=e["config/getTokenKeys"];try{const o=(await rt.accessLoginPost(t,s,n,{headers:{Authorization:void 0}})).data.result;return localStorage.setItem(i["user-token"],o.token),localStorage.setItem(i["refresh-token"],o.refresh_token),rt.defaults.headers.common.Authorization=`Bearer ${o.token}`,r("setAuthenticated",!0),r("setCurrentUser",{username:o.username,source:o.source}),r("setToken",o.token),r("setRefreshToken",o.refresh_token),o}catch(a){throw localStorage.removeItem(i["user-token"]),localStorage.removeItem(i["refresh-token"]),delete rt.defaults.headers.common.Authorization,a}},async logout({commit:r,rootGetters:e},t){const s={invalidate:!1,partial:!1,...t},n=e["config/getTokenKeys"];s.invalidate&&await rt.accessLogoutPost(),localStorage.removeItem(n["user-token"]),localStorage.removeItem(n["refresh-token"]),delete rt.defaults.headers.common.Authorization,r("setCurrentUser",null),r("setToken",null),r("setRefreshToken",null),s.partial||(b.$socket&&b.$socket.close(),r("setAuthenticated",!1),ts.currentRoute.path!=="/login"&&ts.push("/login"))},async checkTrust({dispatch:r,commit:e,rootGetters:t}){const s=t["config/getTokenKeys"],n=localStorage.getItem(s["user-token"]);delete rt.defaults.headers.common.Authorization;try{const a=(await rt.accessCurrentUserGet({withAuth:!1})).data.result;rt.defaults.headers.common.Authorization=`Bearer ${n}`,r("logout",{partial:!0}),e("setCurrentUser",a)}catch{r("logout")}},async addUser(r,e){return await rt.accessUserPost(e.username,e.password),e},async removeUser(r,e){return await rt.accessUserDelete(e.username),e},async onUserCreated({commit:r},e){r("setAddUser",e)},async onUserDeleted({commit:r},e){r("setRemoveUser",e)},async refreshApiKey({commit:r}){const t=(await rt.accessApiKeyPost()).data.result;r("setApiKey",t)}};class Mc extends Error{}Mc.prototype.name="InvalidTokenError";function U1e(r){return decodeURIComponent(atob(r).replace(/(.)/g,(e,t)=>{let s=t.charCodeAt(0).toString(16).toUpperCase();return s.length<2&&(s="0"+s),"%"+s}))}function W1e(r){let e=r.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return U1e(e)}catch{return atob(e)}}function g5(r,e){if(typeof r!="string")throw new Mc("Invalid token specified: must be a string");e||(e={});const t=e.header===!0?0:1,s=r.split(".")[t];if(typeof s!="string")throw new Mc(`Invalid token specified: missing part #${t+1}`);let n;try{n=W1e(s)}catch(i){throw new Mc(`Invalid token specified: invalid base64 for part #${t+1} (${i.message})`)}try{return JSON.parse(n)}catch(i){throw new Mc(`Invalid token specified: invalid json for part #${t+1} (${i.message})`)}}const G1e={setReset(r){Object.assign(r,c9())},setCurrentUser(r,e){r.currentUser=e},setToken(r,e){r.token=e?g5(e):null},setRefreshToken(r,e){r.refresh_token=e?g5(e):null},setAuthenticated(r,e){r.authenticated=e},setUsers(r,e){r.users=e},setAddUser(r,e){r.users.push({source:"moonraker",...e})},setRemoveUser(r,e){const t=r.users.findIndex(s=>s.username===e.username);t>=0&&r.users.splice(t,1)},setApiKey(r,e){r.apiKey=e}},q1e=!0,Z1e={namespaced:q1e,state:V1e,getters:N1e,actions:z1e,mutations:G1e},m0=()=>({klippy_retries:0,info:{failed_components:[],klippy_connected:!1,klippy_state:"",components:[],registered_directories:[],warnings:[]},system_info:null,peripherals:{usb_devices:null,serial_devices:null,v4l2_devices:null,libcamera_devices:null},can_uuids:null,config:{authorization:{enabled:!0},server:{}},moonraker_stats:[],throttled_state:{bits:0,flags:[]},cpu_temp:null}),Y1e=m0();var g0={exports:{}};const K1e="2.0.0",u9=256,X1e=Number.MAX_SAFE_INTEGER||9007199254740991,Q1e=16,J1e=u9-6,ege=["major","premajor","minor","preminor","patch","prepatch","prerelease"];var _1={MAX_LENGTH:u9,MAX_SAFE_COMPONENT_LENGTH:Q1e,MAX_SAFE_BUILD_LENGTH:J1e,MAX_SAFE_INTEGER:X1e,RELEASE_TYPES:ege,SEMVER_SPEC_VERSION:K1e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},$g={};const tge=typeof process=="object"&&$g&&$g.NODE_DEBUG&&/\bsemver\b/i.test($g.NODE_DEBUG)?(...r)=>console.error("SEMVER",...r):()=>{};var y1=tge;(function(r,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:s,MAX_LENGTH:n}=_1,i=y1;e=r.exports={};const a=e.re=[],o=e.safeRe=[],l=e.src=[],c=e.t={};let u=0;const d="[a-zA-Z0-9-]",p=[["\\s",1],["\\d",n],[d,s]],h=g=>{for(const[v,y]of p)g=g.split(`${v}*`).join(`${v}{0,${y}}`).split(`${v}+`).join(`${v}{1,${y}}`);return g},m=(g,v,y)=>{const C=h(v),x=u++;i(g,x,v),c[g]=x,l[x]=v,a[x]=new RegExp(v,y?"g":void 0),o[x]=new RegExp(C,y?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),m("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${d}+`),m("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),m("FULL",`^${l[c.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),m("LOOSE",`^${l[c.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),m("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`),m("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",l[c.COERCE],!0),m("COERCERTLFULL",l[c.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",m("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",m("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(g0,g0.exports);var Fd=g0.exports;const rge=Object.freeze({loose:!0}),sge=Object.freeze({}),nge=r=>r?typeof r!="object"?rge:r:sge;var _2=nge;const v5=/^[0-9]+$/,d9=(r,e)=>{const t=v5.test(r),s=v5.test(e);return t&&s&&(r=+r,e=+e),r===e?0:t&&!s?-1:s&&!t?1:r<e?-1:1},ige=(r,e)=>d9(e,r);var p9={compareIdentifiers:d9,rcompareIdentifiers:ige};const xp=y1,{MAX_LENGTH:_5,MAX_SAFE_INTEGER:Cp}=_1,{safeRe:y5,t:b5}=Fd,age=_2,{compareIdentifiers:Po}=p9;let oge=class ln{constructor(e,t){if(t=age(t),e instanceof ln){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>_5)throw new TypeError(`version is longer than ${_5} characters`);xp("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const s=e.trim().match(t.loose?y5[b5.LOOSE]:y5[b5.FULL]);if(!s)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>Cp||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Cp||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Cp||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(n=>{if(/^[0-9]+$/.test(n)){const i=+n;if(i>=0&&i<Cp)return i}return n}):this.prerelease=[],this.build=s[5]?s[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(xp("SemVer.compare",this.version,this.options,e),!(e instanceof ln)){if(typeof e=="string"&&e===this.version)return 0;e=new ln(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof ln||(e=new ln(e,this.options)),Po(this.major,e.major)||Po(this.minor,e.minor)||Po(this.patch,e.patch)}comparePre(e){if(e instanceof ln||(e=new ln(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const s=this.prerelease[t],n=e.prerelease[t];if(xp("prerelease compare",t,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return Po(s,n)}while(++t)}compareBuild(e){e instanceof ln||(e=new ln(e,this.options));let t=0;do{const s=this.build[t],n=e.build[t];if(xp("build compare",t,s,n),s===void 0&&n===void 0)return 0;if(n===void 0)return 1;if(s===void 0)return-1;if(s===n)continue;return Po(s,n)}while(++t)}inc(e,t,s){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,s);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,s);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,s),this.inc("pre",t,s);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,s),this.inc("pre",t,s);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const n=Number(s)?1:0;if(!t&&s===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[n];else{let i=this.prerelease.length;for(;--i>=0;)typeof this.prerelease[i]=="number"&&(this.prerelease[i]++,i=-2);if(i===-1){if(t===this.prerelease.join(".")&&s===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(n)}}if(t){let i=[t,n];s===!1&&(i=[t]),Po(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=i):this.prerelease=i}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};var Er=oge;const $5=Er,lge=(r,e,t=!1)=>{if(r instanceof $5)return r;try{return new $5(r,e)}catch(s){if(!t)return null;throw s}};var Gl=lge;const cge=Gl,uge=(r,e)=>{const t=cge(r,e);return t?t.version:null};var dge=uge;const pge=Gl,hge=(r,e)=>{const t=pge(r.trim().replace(/^[=v]+/,""),e);return t?t.version:null};var fge=hge;const S5=Er,mge=(r,e,t,s,n)=>{typeof t=="string"&&(n=s,s=t,t=void 0);try{return new S5(r instanceof S5?r.version:r,t).inc(e,s,n).version}catch{return null}};var gge=mge;const w5=Gl,vge=(r,e)=>{const t=w5(r,null,!0),s=w5(e,null,!0),n=t.compare(s);if(n===0)return null;const i=n>0,a=i?t:s,o=i?s:t,l=!!a.prerelease.length;if(!!o.prerelease.length&&!l)return!o.patch&&!o.minor?"major":a.patch?"patch":a.minor?"minor":"major";const u=l?"pre":"";return t.major!==s.major?u+"major":t.minor!==s.minor?u+"minor":t.patch!==s.patch?u+"patch":"prerelease"};var _ge=vge;const yge=Er,bge=(r,e)=>new yge(r,e).major;var $ge=bge;const Sge=Er,wge=(r,e)=>new Sge(r,e).minor;var xge=wge;const Cge=Er,Pge=(r,e)=>new Cge(r,e).patch;var Lge=Pge;const Age=Gl,Ege=(r,e)=>{const t=Age(r,e);return t&&t.prerelease.length?t.prerelease:null};var Oge=Ege;const x5=Er,Tge=(r,e,t)=>new x5(r,t).compare(new x5(e,t));var nn=Tge;const kge=nn,Dge=(r,e,t)=>kge(e,r,t);var Mge=Dge;const Rge=nn,Ige=(r,e)=>Rge(r,e,!0);var Fge=Ige;const C5=Er,Hge=(r,e,t)=>{const s=new C5(r,t),n=new C5(e,t);return s.compare(n)||s.compareBuild(n)};var y2=Hge;const Bge=y2,jge=(r,e)=>r.sort((t,s)=>Bge(t,s,e));var Vge=jge;const Nge=y2,zge=(r,e)=>r.sort((t,s)=>Nge(s,t,e));var Uge=zge;const Wge=nn,Gge=(r,e,t)=>Wge(r,e,t)>0;var b1=Gge;const qge=nn,Zge=(r,e,t)=>qge(r,e,t)<0;var b2=Zge;const Yge=nn,Kge=(r,e,t)=>Yge(r,e,t)===0;var h9=Kge;const Xge=nn,Qge=(r,e,t)=>Xge(r,e,t)!==0;var f9=Qge;const Jge=nn,eve=(r,e,t)=>Jge(r,e,t)>=0;var $2=eve;const tve=nn,rve=(r,e,t)=>tve(r,e,t)<=0;var S2=rve;const sve=h9,nve=f9,ive=b1,ave=$2,ove=b2,lve=S2,cve=(r,e,t,s)=>{switch(e){case"===":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r===t;case"!==":return typeof r=="object"&&(r=r.version),typeof t=="object"&&(t=t.version),r!==t;case"":case"=":case"==":return sve(r,t,s);case"!=":return nve(r,t,s);case">":return ive(r,t,s);case">=":return ave(r,t,s);case"<":return ove(r,t,s);case"<=":return lve(r,t,s);default:throw new TypeError(`Invalid operator: ${e}`)}};var m9=cve;const uve=Er,dve=Gl,{safeRe:Pp,t:Lp}=Fd,pve=(r,e)=>{if(r instanceof uve)return r;if(typeof r=="number"&&(r=String(r)),typeof r!="string")return null;e=e||{};let t=null;if(!e.rtl)t=r.match(e.includePrerelease?Pp[Lp.COERCEFULL]:Pp[Lp.COERCE]);else{const l=e.includePrerelease?Pp[Lp.COERCERTLFULL]:Pp[Lp.COERCERTL];let c;for(;(c=l.exec(r))&&(!t||t.index+t[0].length!==r.length);)(!t||c.index+c[0].length!==t.index+t[0].length)&&(t=c),l.lastIndex=c.index+c[1].length+c[2].length;l.lastIndex=-1}if(t===null)return null;const s=t[2],n=t[3]||"0",i=t[4]||"0",a=e.includePrerelease&&t[5]?`-${t[5]}`:"",o=e.includePrerelease&&t[6]?`+${t[6]}`:"";return dve(`${s}.${n}.${i}${a}${o}`,e)};var hve=pve;class fve{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);if(t!==void 0)return this.map.delete(e),this.map.set(e,t),t}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&t!==void 0){if(this.map.size>=this.max){const n=this.map.keys().next().value;this.delete(n)}this.map.set(e,t)}return this}}var mve=fve,Sg,P5;function an(){if(P5)return Sg;P5=1;const r=/\s+/g;class e{constructor(O,j){if(j=n(j),O instanceof e)return O.loose===!!j.loose&&O.includePrerelease===!!j.includePrerelease?O:new e(O.raw,j);if(O instanceof i)return this.raw=O.value,this.set=[[O]],this.formatted=void 0,this;if(this.options=j,this.loose=!!j.loose,this.includePrerelease=!!j.includePrerelease,this.raw=O.trim().replace(r," "),this.set=this.raw.split("||").map(V=>this.parseRange(V.trim())).filter(V=>V.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const V=this.set[0];if(this.set=this.set.filter(U=>!g(U[0])),this.set.length===0)this.set=[V];else if(this.set.length>1){for(const U of this.set)if(U.length===1&&v(U[0])){this.set=[U];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let O=0;O<this.set.length;O++){O>0&&(this.formatted+="||");const j=this.set[O];for(let V=0;V<j.length;V++)V>0&&(this.formatted+=" "),this.formatted+=j[V].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(O){const V=((this.options.includePrerelease&&h)|(this.options.loose&&m))+":"+O,U=s.get(V);if(U)return U;const N=this.options.loose,J=N?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];O=O.replace(J,k(this.options.includePrerelease)),a("hyphen replace",O),O=O.replace(l[c.COMPARATORTRIM],u),a("comparator trim",O),O=O.replace(l[c.TILDETRIM],d),a("tilde trim",O),O=O.replace(l[c.CARETTRIM],p),a("caret trim",O);let Q=O.split(" ").map(se=>C(se,this.options)).join(" ").split(/\s+/).map(se=>fe(se,this.options));N&&(Q=Q.filter(se=>(a("loose invalid filter",se,this.options),!!se.match(l[c.COMPARATORLOOSE])))),a("range list",Q);const q=new Map,Y=Q.map(se=>new i(se,this.options));for(const se of Y){if(g(se))return[se];q.set(se.value,se)}q.size>1&&q.has("")&&q.delete("");const re=[...q.values()];return s.set(V,re),re}intersects(O,j){if(!(O instanceof e))throw new TypeError("a Range is required");return this.set.some(V=>y(V,j)&&O.set.some(U=>y(U,j)&&V.every(N=>U.every(J=>N.intersects(J,j)))))}test(O){if(!O)return!1;if(typeof O=="string")try{O=new o(O,this.options)}catch{return!1}for(let j=0;j<this.set.length;j++)if(T(this.set[j],O,this.options))return!0;return!1}}Sg=e;const t=mve,s=new t,n=_2,i=$1(),a=y1,o=Er,{safeRe:l,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:p}=Fd,{FLAG_INCLUDE_PRERELEASE:h,FLAG_LOOSE:m}=_1,g=P=>P.value==="<0.0.0-0",v=P=>P.value==="",y=(P,O)=>{let j=!0;const V=P.slice();let U=V.pop();for(;j&&V.length;)j=V.every(N=>U.intersects(N,O)),U=V.pop();return j},C=(P,O)=>(a("comp",P,O),P=G(P,O),a("caret",P),P=S(P,O),a("tildes",P),P=le(P,O),a("xrange",P),P=ie(P,O),a("stars",P),P),x=P=>!P||P.toLowerCase()==="x"||P==="*",S=(P,O)=>P.trim().split(/\s+/).map(j=>E(j,O)).join(" "),E=(P,O)=>{const j=O.loose?l[c.TILDELOOSE]:l[c.TILDE];return P.replace(j,(V,U,N,J,Q)=>{a("tilde",P,V,U,N,J,Q);let q;return x(U)?q="":x(N)?q=`>=${U}.0.0 <${+U+1}.0.0-0`:x(J)?q=`>=${U}.${N}.0 <${U}.${+N+1}.0-0`:Q?(a("replaceTilde pr",Q),q=`>=${U}.${N}.${J}-${Q} <${U}.${+N+1}.0-0`):q=`>=${U}.${N}.${J} <${U}.${+N+1}.0-0`,a("tilde return",q),q})},G=(P,O)=>P.trim().split(/\s+/).map(j=>K(j,O)).join(" "),K=(P,O)=>{a("caret",P,O);const j=O.loose?l[c.CARETLOOSE]:l[c.CARET],V=O.includePrerelease?"-0":"";return P.replace(j,(U,N,J,Q,q)=>{a("caret",P,U,N,J,Q,q);let Y;return x(N)?Y="":x(J)?Y=`>=${N}.0.0${V} <${+N+1}.0.0-0`:x(Q)?N==="0"?Y=`>=${N}.${J}.0${V} <${N}.${+J+1}.0-0`:Y=`>=${N}.${J}.0${V} <${+N+1}.0.0-0`:q?(a("replaceCaret pr",q),N==="0"?J==="0"?Y=`>=${N}.${J}.${Q}-${q} <${N}.${J}.${+Q+1}-0`:Y=`>=${N}.${J}.${Q}-${q} <${N}.${+J+1}.0-0`:Y=`>=${N}.${J}.${Q}-${q} <${+N+1}.0.0-0`):(a("no pr"),N==="0"?J==="0"?Y=`>=${N}.${J}.${Q}${V} <${N}.${J}.${+Q+1}-0`:Y=`>=${N}.${J}.${Q}${V} <${N}.${+J+1}.0-0`:Y=`>=${N}.${J}.${Q} <${+N+1}.0.0-0`),a("caret return",Y),Y})},le=(P,O)=>(a("replaceXRanges",P,O),P.split(/\s+/).map(j=>ue(j,O)).join(" ")),ue=(P,O)=>{P=P.trim();const j=O.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return P.replace(j,(V,U,N,J,Q,q)=>{a("xRange",P,V,U,N,J,Q,q);const Y=x(N),re=Y||x(J),se=re||x(Q),_e=se;return U==="="&&_e&&(U=""),q=O.includePrerelease?"-0":"",Y?U===">"||U==="<"?V="<0.0.0-0":V="*":U&&_e?(re&&(J=0),Q=0,U===">"?(U=">=",re?(N=+N+1,J=0,Q=0):(J=+J+1,Q=0)):U==="<="&&(U="<",re?N=+N+1:J=+J+1),U==="<"&&(q="-0"),V=`${U+N}.${J}.${Q}${q}`):re?V=`>=${N}.0.0${q} <${+N+1}.0.0-0`:se&&(V=`>=${N}.${J}.0${q} <${N}.${+J+1}.0-0`),a("xRange return",V),V})},ie=(P,O)=>(a("replaceStars",P,O),P.trim().replace(l[c.STAR],"")),fe=(P,O)=>(a("replaceGTE0",P,O),P.trim().replace(l[O.includePrerelease?c.GTE0PRE:c.GTE0],"")),k=P=>(O,j,V,U,N,J,Q,q,Y,re,se,_e)=>(x(V)?j="":x(U)?j=`>=${V}.0.0${P?"-0":""}`:x(N)?j=`>=${V}.${U}.0${P?"-0":""}`:J?j=`>=${j}`:j=`>=${j}${P?"-0":""}`,x(Y)?q="":x(re)?q=`<${+Y+1}.0.0-0`:x(se)?q=`<${Y}.${+re+1}.0-0`:_e?q=`<=${Y}.${re}.${se}-${_e}`:P?q=`<${Y}.${re}.${+se+1}-0`:q=`<=${q}`,`${j} ${q}`.trim()),T=(P,O,j)=>{for(let V=0;V<P.length;V++)if(!P[V].test(O))return!1;if(O.prerelease.length&&!j.includePrerelease){for(let V=0;V<P.length;V++)if(a(P[V].semver),P[V].semver!==i.ANY&&P[V].semver.prerelease.length>0){const U=P[V].semver;if(U.major===O.major&&U.minor===O.minor&&U.patch===O.patch)return!0}return!1}return!0};return Sg}var wg,L5;function $1(){if(L5)return wg;L5=1;const r=Symbol("SemVer ANY");class e{static get ANY(){return r}constructor(u,d){if(d=t(d),u instanceof e){if(u.loose===!!d.loose)return u;u=u.value}u=u.trim().split(/\s+/).join(" "),a("comparator",u,d),this.options=d,this.loose=!!d.loose,this.parse(u),this.semver===r?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(u){const d=this.options.loose?s[n.COMPARATORLOOSE]:s[n.COMPARATOR],p=u.match(d);if(!p)throw new TypeError(`Invalid comparator: ${u}`);this.operator=p[1]!==void 0?p[1]:"",this.operator==="="&&(this.operator=""),p[2]?this.semver=new o(p[2],this.options.loose):this.semver=r}toString(){return this.value}test(u){if(a("Comparator.test",u,this.options.loose),this.semver===r||u===r)return!0;if(typeof u=="string")try{u=new o(u,this.options)}catch{return!1}return i(u,this.operator,this.semver,this.options)}intersects(u,d){if(!(u instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new l(u.value,d).test(this.value):u.operator===""?u.value===""?!0:new l(this.value,d).test(u.semver):(d=t(d),d.includePrerelease&&(this.value==="<0.0.0-0"||u.value==="<0.0.0-0")||!d.includePrerelease&&(this.value.startsWith("<0.0.0")||u.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&u.operator.startsWith(">")||this.operator.startsWith("<")&&u.operator.startsWith("<")||this.semver.version===u.semver.version&&this.operator.includes("=")&&u.operator.includes("=")||i(this.semver,"<",u.semver,d)&&this.operator.startsWith(">")&&u.operator.startsWith("<")||i(this.semver,">",u.semver,d)&&this.operator.startsWith("<")&&u.operator.startsWith(">")))}}wg=e;const t=_2,{safeRe:s,t:n}=Fd,i=m9,a=y1,o=Er,l=an();return wg}const gve=an(),vve=(r,e,t)=>{try{e=new gve(e,t)}catch{return!1}return e.test(r)};var S1=vve;const _ve=an(),yve=(r,e)=>new _ve(r,e).set.map(t=>t.map(s=>s.value).join(" ").trim().split(" "));var bve=yve;const $ve=Er,Sve=an(),wve=(r,e,t)=>{let s=null,n=null,i=null;try{i=new Sve(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!s||n.compare(a)===-1)&&(s=a,n=new $ve(s,t))}),s};var xve=wve;const Cve=Er,Pve=an(),Lve=(r,e,t)=>{let s=null,n=null,i=null;try{i=new Pve(e,t)}catch{return null}return r.forEach(a=>{i.test(a)&&(!s||n.compare(a)===1)&&(s=a,n=new Cve(s,t))}),s};var Ave=Lve;const xg=Er,Eve=an(),A5=b1,Ove=(r,e)=>{r=new Eve(r,e);let t=new xg("0.0.0");if(r.test(t)||(t=new xg("0.0.0-0"),r.test(t)))return t;t=null;for(let s=0;s<r.set.length;++s){const n=r.set[s];let i=null;n.forEach(a=>{const o=new xg(a.semver.version);switch(a.operator){case">":o.prerelease.length===0?o.patch++:o.prerelease.push(0),o.raw=o.format();case"":case">=":(!i||A5(o,i))&&(i=o);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),i&&(!t||A5(t,i))&&(t=i)}return t&&r.test(t)?t:null};var Tve=Ove;const kve=an(),Dve=(r,e)=>{try{return new kve(r,e).range||"*"}catch{return null}};var Mve=Dve;const Rve=Er,g9=$1(),{ANY:Ive}=g9,Fve=an(),Hve=S1,E5=b1,O5=b2,Bve=S2,jve=$2,Vve=(r,e,t,s)=>{r=new Rve(r,s),e=new Fve(e,s);let n,i,a,o,l;switch(t){case">":n=E5,i=Bve,a=O5,o=">",l=">=";break;case"<":n=O5,i=jve,a=E5,o="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Hve(r,e,s))return!1;for(let c=0;c<e.set.length;++c){const u=e.set[c];let d=null,p=null;if(u.forEach(h=>{h.semver===Ive&&(h=new g9(">=0.0.0")),d=d||h,p=p||h,n(h.semver,d.semver,s)?d=h:a(h.semver,p.semver,s)&&(p=h)}),d.operator===o||d.operator===l||(!p.operator||p.operator===o)&&i(r,p.semver))return!1;if(p.operator===l&&a(r,p.semver))return!1}return!0};var w2=Vve;const Nve=w2,zve=(r,e,t)=>Nve(r,e,">",t);var Uve=zve;const Wve=w2,Gve=(r,e,t)=>Wve(r,e,"<",t);var qve=Gve;const T5=an(),Zve=(r,e,t)=>(r=new T5(r,t),e=new T5(e,t),r.intersects(e,t));var Yve=Zve;const Kve=S1,Xve=nn;var Qve=(r,e,t)=>{const s=[];let n=null,i=null;const a=r.sort((u,d)=>Xve(u,d,t));for(const u of a)Kve(u,e,t)?(i=u,n||(n=u)):(i&&s.push([n,i]),i=null,n=null);n&&s.push([n,null]);const o=[];for(const[u,d]of s)u===d?o.push(u):!d&&u===a[0]?o.push("*"):d?u===a[0]?o.push(`<=${d}`):o.push(`${u} - ${d}`):o.push(`>=${u}`);const l=o.join(" || "),c=typeof e.raw=="string"?e.raw:String(e);return l.length<c.length?l:e};const k5=an(),x2=$1(),{ANY:Cg}=x2,gc=S1,C2=nn,Jve=(r,e,t={})=>{if(r===e)return!0;r=new k5(r,t),e=new k5(e,t);let s=!1;e:for(const n of r.set){for(const i of e.set){const a=t_e(n,i,t);if(s=s||a!==null,a)continue e}if(s)return!1}return!0},e_e=[new x2(">=0.0.0-0")],D5=[new x2(">=0.0.0")],t_e=(r,e,t)=>{if(r===e)return!0;if(r.length===1&&r[0].semver===Cg){if(e.length===1&&e[0].semver===Cg)return!0;t.includePrerelease?r=e_e:r=D5}if(e.length===1&&e[0].semver===Cg){if(t.includePrerelease)return!0;e=D5}const s=new Set;let n,i;for(const h of r)h.operator===">"||h.operator===">="?n=M5(n,h,t):h.operator==="<"||h.operator==="<="?i=R5(i,h,t):s.add(h.semver);if(s.size>1)return null;let a;if(n&&i){if(a=C2(n.semver,i.semver,t),a>0)return null;if(a===0&&(n.operator!==">="||i.operator!=="<="))return null}for(const h of s){if(n&&!gc(h,String(n),t)||i&&!gc(h,String(i),t))return null;for(const m of e)if(!gc(h,String(m),t))return!1;return!0}let o,l,c,u,d=i&&!t.includePrerelease&&i.semver.prerelease.length?i.semver:!1,p=n&&!t.includePrerelease&&n.semver.prerelease.length?n.semver:!1;d&&d.prerelease.length===1&&i.operator==="<"&&d.prerelease[0]===0&&(d=!1);for(const h of e){if(u=u||h.operator===">"||h.operator===">=",c=c||h.operator==="<"||h.operator==="<=",n){if(p&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===p.major&&h.semver.minor===p.minor&&h.semver.patch===p.patch&&(p=!1),h.operator===">"||h.operator===">="){if(o=M5(n,h,t),o===h&&o!==n)return!1}else if(n.operator===">="&&!gc(n.semver,String(h),t))return!1}if(i){if(d&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===d.major&&h.semver.minor===d.minor&&h.semver.patch===d.patch&&(d=!1),h.operator==="<"||h.operator==="<="){if(l=R5(i,h,t),l===h&&l!==i)return!1}else if(i.operator==="<="&&!gc(i.semver,String(h),t))return!1}if(!h.operator&&(i||n)&&a!==0)return!1}return!(n&&c&&!i&&a!==0||i&&u&&!n&&a!==0||p||d)},M5=(r,e,t)=>{if(!r)return e;const s=C2(r.semver,e.semver,t);return s>0?r:s<0||e.operator===">"&&r.operator===">="?e:r},R5=(r,e,t)=>{if(!r)return e;const s=C2(r.semver,e.semver,t);return s<0?r:s>0||e.operator==="<"&&r.operator==="<="?e:r};var r_e=Jve;const Pg=Fd,I5=_1,s_e=Er,F5=p9,n_e=Gl,i_e=dge,a_e=fge,o_e=gge,l_e=_ge,c_e=$ge,u_e=xge,d_e=Lge,p_e=Oge,h_e=nn,f_e=Mge,m_e=Fge,g_e=y2,v_e=Vge,__e=Uge,y_e=b1,b_e=b2,$_e=h9,S_e=f9,w_e=$2,x_e=S2,C_e=m9,P_e=hve,L_e=$1(),A_e=an(),E_e=S1,O_e=bve,T_e=xve,k_e=Ave,D_e=Tve,M_e=Mve,R_e=w2,I_e=Uve,F_e=qve,H_e=Yve,B_e=Qve,j_e=r_e;var ys={parse:n_e,valid:i_e,clean:a_e,inc:o_e,diff:l_e,major:c_e,minor:u_e,patch:d_e,prerelease:p_e,compare:h_e,rcompare:f_e,compareLoose:m_e,compareBuild:g_e,sort:v_e,rsort:__e,gt:y_e,lt:b_e,eq:$_e,neq:S_e,gte:w_e,lte:x_e,cmp:C_e,coerce:P_e,Comparator:L_e,Range:A_e,satisfies:E_e,toComparators:O_e,maxSatisfying:T_e,minSatisfying:k_e,minVersion:D_e,validRange:M_e,outside:R_e,gtr:I_e,ltr:F_e,intersects:H_e,simplifyRange:B_e,subset:j_e,SemVer:s_e,re:Pg.re,src:Pg.src,tokens:Pg.t,SEMVER_SPEC_VERSION:I5.SEMVER_SPEC_VERSION,RELEASE_TYPES:I5.RELEASE_TYPES,compareIdentifiers:F5.compareIdentifiers,rcompareIdentifiers:F5.rcompareIdentifiers};const V_e={getInfo:r=>r.info,getIsMinApiVersion:r=>e=>{const t=r.info.api_version_string;return t&&ys.valid(t)&&ys.valid(e)&&ys.gte(t,e)},getSystemInfo:r=>r.system_info,getConfig:r=>r.config,getProcessStats:r=>r.moonraker_stats,componentSupport:r=>e=>r.info.components.includes(e),getServices:r=>{var n,i;const e=((n=r.system_info)==null?void 0:n.available_services)||[],t=((i=r.system_info)==null?void 0:i.service_state)||{};return[...e].sort().map(a=>a in t?{name:a,...t[a]}:{name:a})},getConfigMapByFilename:(r,e,t,s)=>n=>{var o;const i=he.CONFIG_SERVICE_MAP;let a=i.find(l=>{var c;return((c=l.filename)==null?void 0:c.toLowerCase())===n.toLowerCase()});if(a||(a=i.find(l=>l.prefix&&n.toLowerCase().startsWith(l.prefix.toLowerCase()))),a||(a=i.find(l=>l.suffix&&n.endsWith(l.suffix.toLowerCase()))),(a==null?void 0:a.service)==="klipper"&&a.link){const l=s["printer/getKlippyApp"];a.link=a.link.replace("{klipperDomain}",l.domain)}if(a){const l=a==null?void 0:a.service,c=(o=t.server.system_info)==null?void 0:o.instance_ids;return{serviceSupported:c&&l in c||e.getServices.some(u=>u.name===l),...a}}return{}}};let H5;const N_e={async reset({commit:r}){r("setReset")},async resetKlippy({commit:r}){r("setResetKlippy")},async initComponents({dispatch:r},e){if(e.components&&e.components.length>0){const t=he.MOONRAKER_COMPONENTS;for(const s in t){const n=t[s];e.components.includes(n.name)&&r(n.dispatch,void 0,{root:!0})}}},async checkMoonrakerMinVersion({state:r,dispatch:e}){const t=r.info.moonraker_version??"?",s=t.includes("-")?t:`${t}-0`;ys.valid(s)&&ys.valid(he.MOONRAKER_MIN_VERSION)&&ys.gte(s,he.MOONRAKER_MIN_VERSION)},async checkKlipperMinVersion({state:r,dispatch:e}){var n;const t=((n=r.system_info)==null?void 0:n.software_version)??"?",s=t.includes("-")?t:`${t}-0`;ys.valid(t)&&ys.valid(he.KLIPPER_MIN_VERSION)&&ys.gte(s,he.KLIPPER_MIN_VERSION)},async onServerInfo({commit:r,dispatch:e,state:t},s){F.printerInfo(),F.serverConfig(),F.machineProcStats(),F.machineSystemInfo(),r("setServerInfo",s),e("checkMoonrakerMinVersion"),s.klippy_state!=="ready"?(t.klippy_retries===0&&e("initComponents",s),r("setKlippyRetries",t.klippy_retries+1),clearTimeout(H5),H5=window.setTimeout(()=>{F.serverInfo()},he.KLIPPY_RETRY_DELAY)):(r("setKlippyRetries",0),e("initComponents",s),F.printerObjectsList())},async onServerConfig({commit:r},e){e.config&&r("setServerConfig",e.config)},async onLogsRollOver(r,e){if(e!=null&&e.failed&&Object.keys(e.failed).length>0){const t=Object.values(e.failed).join(`
`);_r.$emit(t,{type:"error"})}else if(e!=null&&e.rolled_over&&e.rolled_over.length){const t=e.rolled_over.map(b.$filters.prettyCase).join(", "),s=st.tc("app.general.msg.rolledover_logs",0,{applications:t});_r.$emit(s,{type:"success"})}},async onMachineProcStats({commit:r,dispatch:e},t){if(t&&t.throttled_state&&await e("onMachineThrottledState",t.throttled_state),r("setMoonrakerStats",t),t.moonraker_stats&&"cpu_usage"in t.moonraker_stats&&!Array.isArray(t.moonraker_stats)){const s=t.moonraker_stats;s.cpu_usage<=100&&r("charts/setChartEntry",{type:"moonraker",retention:600,data:{date:new Date(s.time*1e3),load:s.cpu_usage.toFixed(2)}},{root:!0})}},async onMachineSystemInfo({commit:r,dispatch:e},t){r("setSystemInfo",t),e("checkKlipperMinVersion")},async onMachinePeripherals({commit:r},e){r("setMachinePeripherals",e)},async onMachinePeripheralsCanbus({commit:r},e){const{interface:t}=e.__request__.params;r("setMachinePeripheralsCanbus",{canbusInterface:t,can_uuids:e.can_uuids})},async onServiceStateChanged({commit:r},e){r("setServiceState",e)},async onMachineThrottledState({commit:r,dispatch:e,state:t},s){s&&(s&&s.flags.length>0&&s.flags.forEach(n=>{if(t.throttled_state&&!t.throttled_state.flags.includes(n)){const i=n.toLowerCase().startsWith("previously");let a={id:n,title:n,description:"This may lead to a throttle condition and result in a failed print",to:"https://www.raspberrypi.com/documentation/computers/raspberry-pi.html#frequency-management-and-thermal-control",type:i?"info":"error",snackbar:!i,merge:!0,clear:!i,noCount:i};(n==="Temperature Limit Active"||n==="Frequency Capped")&&t.cpu_temp&&(a={...a,suffix:`${t.cpu_temp.toFixed(0)}<small>°C</small>`,suffixIcon:"$tempError"}),i||(a={...a,description:"This may lead to a failed print"}),e("notifications/pushNotification",a,{root:!0})}}),r("setMoonrakerStats",{throttled_state:s}))}},z_e={setReset(r){Object.assign(r,m0())},setResetKlippy(r){const{klippy_retries:e,info:t}=m0();Object.assign(r,{klippy_retries:e,info:t})},setServerInfo(r,e){b.set(r,"info",e)},setSystemInfo(r,e){e.system_info&&b.set(r,"system_info",e.system_info)},setMachinePeripherals(r,e){r.peripherals={...r.peripherals,...e}},setMachinePeripheralsCanbus(r,e){r.can_uuids={...r.can_uuids,[e.canbusInterface]:e.canUuids}},setServiceState(r,e){var t;e&&((t=r.system_info)!=null&&t.service_state)&&Object.assign(r.system_info.service_state,e)},setServerConfig(r,e){r.config={...r.config,...e}},setMoonrakerStats(r,e){if(e.cpu_temp&&b.set(r,"cpu_temp",e.cpu_temp),e.throttled_state&&(r.throttled_state={...r.throttled_state,...e.throttled_state}),e.moonraker_stats&&Array.isArray(e.moonraker_stats))b.set(r,"moonraker_stats",e.moonraker_stats);else if(r.moonraker_stats)for(r.moonraker_stats.push(e.moonraker_stats);r.moonraker_stats.length>30;)r.moonraker_stats.splice(0,1)},setKlippyRetries(r,e){r.klippy_retries=e}},U_e=!0,W_e={namespaced:U_e,state:Y1e,getters:V_e,actions:N_e,mutations:z_e},v0=()=>({printer:{endstops:{},bed_mesh:{profile_name:""},heaters:{available_heaters:[],available_sensors:[]},info:{state:"",state_message:""},configfile:{warnings:[],save_config_pending:!1,save_config_pending_items:{},config:{virtual_sdcard:{},pause_resume:{},display_status:{},"gcode_macro CANCEL_PRINT":{}},settings:{bed_mesh:{},fan:{},printer:{max_accel_to_decel:500,minimum_cruise_ratio:.5,max_accel:1e3,max_velocity:100,square_corner_velocity:3,kinematics:"none"},virtual_sdcard:{},pause_resume:{},display_status:{},"gcode_macro cancel_print":{},extruder:{max_extrude_only_velocity:100,max_extrude_only_distance:100}}},objects:[],idle_timeout:{state:""},print_stats:{state:"",print_duration:0,total_duration:0,filament_used:0,filename:""},display_status:{progress:0,message:""},virtual_sdcard:{file_position:0,is_active:!1,progress:0},toolhead:{estimated_print_time:0,homed_axes:"",max_accel:0,max_accel_to_decel:null,minimum_cruise_ratio:null,max_velocity:0,position:[0,0,0,0],axis_minimum:[],axis_maximum:[],print_time:0,square_corner_velocity:0,extruder:""},motion_report:{live_position:[0,0,0,0],live_velocity:0,live_extruder_velocity:0},firmware_retraction:{retract_length:0,unretract_extra_length:0,unretract_speed:0,retract_speed:0},current_file:{estimated_time:0,filament_total:0,thumbnails:[]},gcode:{commands:null},gcode_move:{gcode_position:[0,0,0,0],homing_origin:[],speed:0},manual_probe:{is_active:!1,z_position:null,z_position_lower:null,z_position_upper:null},bed_screws:{is_active:!1,state:null,current_screw:0,accepted_screws:0},screws_tilt_adjust:{},webhooks:{state:"",state_message:""},save_variables:{variables:[]}}}),G_e=v0(),q_e={getKlippyReady:(r,e,t,s)=>{const n=s["server/getInfo"];return n.klippy_state==="ready"&&n.klippy_connected},getKlippyConnected:(r,e,t,s)=>s["server/getInfo"].klippy_connected,getKlippyState:(r,e,t,s)=>{const n=s["server/getInfo"];return b.$filters.capitalize(n.klippy_state||"")},getKlippyStateMessage:(r,e,t,s)=>{const n=/(?:\r\n|\r|\n)/g;return s["server/getInfo"].klippy_connected===!1?"Klippy not connected.":r.printer.info.state_message&&r.printer.info.state_message!==""?r.printer.info.state_message.trim().replace(n,"<br />"):r.printer.webhooks.state_message&&r.printer.webhooks.state_message!==""?r.printer.webhooks.state_message.trim().replace(n,"<br />"):"Unknown"},getKlippyApp:r=>{var s;const e=(s=r.printer.info.app)==null?void 0:s.toLowerCase(),t=gl(e,he.SUPPORTED_SERVICES.klipper)?e:"klipper";return{name:t,...he.SUPPORTED_SERVICES.klipper[t]}},getPrinterState:r=>{const e=r.printer.idle_timeout.state,t=r.printer.print_stats.state;return e&&t?t.toLowerCase()==="paused"||t.toLowerCase()==="cancelled"?t.toLowerCase():e.toLowerCase()==="printing"&&t.toLowerCase()!=="printing"?"busy":e.toLowerCase():"loading"},getFileRelativePrintProgress:r=>{const{gcode_start_byte:e,gcode_end_byte:t,path:s,filename:n}=r.printer.current_file??{},{file_position:i,progress:a}=r.printer.virtual_sdcard??{},o=s?`${s}/${n}`:n;if(e&&t&&i&&o===r.printer.print_stats.filename){if(i<=e)return 0;if(i>=t)return 1;const l=i-e,c=t-e;if(l>0&&c>0)return l/c}return a||0},getFileAbsolutePrintProgress:r=>{var e;return((e=r.printer.virtual_sdcard)==null?void 0:e.progress)||0},getSlicerPrintProgress:r=>r.printer.display_status.progress||0,getFilamentPrintProgress:r=>{var o;const{filament_used:e,filename:t}=r.printer.print_stats??{},{filament_total:s,path:n,filename:i}=r.printer.current_file??{},a=n?`${n}/${i}`:i;return e!=null&&s&&a===t?e/s:((o=r.printer.virtual_sdcard)==null?void 0:o.progress)||0},getPrintProgress:(r,e,t)=>{const n=t.config.uiSettings.general.printProgressCalculation.map(a=>{switch(a){case"file":return e.getSlicerPrintProgress;case"fileAbsolute":return e.getFileAbsolutePrintProgress;case"slicer":return e.getSlicerPrintProgress;case"filament":return e.getFilamentPrintProgress;default:return 0}}).filter(a=>a>0);return n.reduce((a,o)=>a+o,0)/n.length||0},getPrintLayers:r=>{var s;const e=(s=r.printer.print_stats.info)==null?void 0:s.total_layer;if(typeof e=="number")return e;const t=r.printer.current_file;if("layer_count"in t)return t.layer_count;if("first_layer_height"in t&&"layer_height"in t&&"object_height"in t){const n=Math.ceil((t.object_height-t.first_layer_height)/t.layer_height+1);if(n>0)return n}return 0},getPrintLayer:r=>{var i;const e=(i=r.printer.print_stats.info)==null?void 0:i.current_layer;if(typeof e=="number")return e;const t=r.printer.current_file,s=r.printer.print_stats.print_duration||0,n=r.printer.gcode_move.gcode_position;if(t&&s>0&&"first_layer_height"in t&&"layer_height"in t&&n&&n.length>=3){const a=r.printer.gcode_move.gcode_position[2],o=Math.ceil((a-t.first_layer_height)/t.layer_height+1);if(o>0)return o}return 0},getTimeEstimates:(r,e,t)=>{var y,C,x,S,E,G,K;const s=e.getPrintProgress,n=e.getFileRelativePrintProgress,i=((y=r.printer.print_stats)==null?void 0:y.total_duration)??0,a=((C=r.printer.print_stats)==null?void 0:C.print_duration)??0,o=a>0&&n>0?a/n-a:0,l=(S=(x=r.printer.current_file)==null?void 0:x.history)==null?void 0:S.status,c=(G=(E=r.printer.current_file)==null?void 0:E.history)==null?void 0:G.total_duration,u=l==="completed"&&c!=null?c-a:0,d=(K=r.printer.current_file)==null?void 0:K.estimated_time,p=d!=null&&d>0?d-a:0,m=t.config.uiSettings.general.printEtaCalculation.map(le=>{switch(le){case"file":return u>0?u:o;case"slicer":return p;default:return 0}}).filter(le=>le>0),g=m.reduce((le,ue)=>le+ue,0)/m.length||0,v=Date.now()+g*1e3;return{progress:Math.floor(s*100),printDuration:a,totalDuration:i,slicerLeft:p,fileLeft:o,actualLeft:u,eta:v}},getSystemStats:r=>r.printer.system_stats,getMcus:r=>{const e=[];return Object.keys(r.printer).filter(t=>t.startsWith("mcu")).sort().forEach(t=>{e.push({name:t,...r.printer[t]})}),e},getHasExtruder:r=>r.printer.extruder,getHasMultipleExtruders:r=>r.printer.extruder&&r.printer.extruder1,getExtruders:r=>{const e=Object.keys(r.printer).filter(t=>/^extruder\d{0,2}$/.exec(t)).length;return[...Array(e).keys()].map(t=>({key:`extruder${t===0?"":t}`,name:e===1?"Extruder":`Extruder ${t}`}))},getActiveExtruder:(r,e)=>{const t=r.printer.toolhead.extruder||"extruder";return e.getExtruderByName(t)},getExtruderByName:(r,e)=>t=>{const s=r.printer[t]||void 0,n=e.getPrinterSettings(t);if(!s||!n)return;const{min_extrude_temp:i}=t==="extruder"?n:e.getPrinterSettings("extruder");return{min_extrude_temp:i,config:{...n},...s}},getExtruderSteppers:(r,e)=>e.getSteppers.filter(s=>s.key.startsWith("extruder_stepper ")),getSteppers:(r,e)=>{var n;const t=[],s=r.printer.motion_report.steppers??[];for(const i of s){const a=i.startsWith("stepper_")?i.substring(8):i.split(" ",2).pop()||"",o=r.printer[i],l=e.getPrinterSettings(i);t.push({name:a,prettyName:b.$filters.prettyCase(a),key:i,enabled:(n=r.printer.stepper_enable)==null?void 0:n.steppers[i],...o,config:{...l}})}return t},getHasSteppersEnabled:(r,e)=>{const t=e.getSteppers;return Object.values(t).some(s=>s.enabled==null||s.enabled)},getHomedAxes:r=>e=>e!=null&&e.length>0&&e.split("").every(t=>r.printer.toolhead.homed_axes.includes(t)),getRunoutSensors:r=>{const e=["filament_switch_sensor","filament_motion_sensor"],t=[];for(const s in r.printer){const[n,i]=s.split(" ",2);if(e.includes(n)){const a=i??s,o=Bo(r.printer,s,void 0);t.push({name:a,prettyName:b.$filters.prettyCase(a),...o})}}return t},getEndstops:r=>{const e=[];return Object.keys(r.printer.endstops).sort().forEach(t=>{e.push({name:t,state:r.printer.endstops[t]})}),e},getProbe:(r,e)=>{const t=r.printer.probe;if(t&&!t.name){const s=["bltouch","smart_effector","probe"];for(const n of s){const i=e.getPrinterSettings(n);if((i==null?void 0:i.z_offset)!==void 0)return{...t,name:n}}}return t},getHeaters:(r,e)=>{const t=r.printer.heaters.available_heaters||[];if(t.length){const s=[];return t.forEach(n=>{const i=r.printer[n];if(i&&Object.keys(i).length>0){const a=e.getPrinterSettings(n),o=["heater_generic"],[l,c]=n.split(" ",2),u=c&&o.includes(l)?c:n,d=b.$colorset.next(eh(n),n),p=b.$filters.prettyCase(u);s.push({...i,name:u,color:d,prettyName:p,key:n,minTemp:a==null?void 0:a.min_temp,targetMinTemp:a==null?void 0:a.target_min_temp,targetMaxTemp:a==null?void 0:a.target_max_temp,maxTemp:a==null?void 0:a.max_temp})}}),s.sort((n,i)=>n.name.localeCompare(i.name))}return[]},getAllLeds:(r,e)=>e.getOutputs(["led","neopixel","dotstar"]),getAllFans:(r,e)=>e.getOutputs(["temperature_fan","controller_fan","heater_fan","fan_generic","fan"]),getToolHeadFans:(r,e)=>e.getOutputs(["heater_fan","fan"]),getOtherFans:(r,e)=>e.getOutputs(["temperature_fan","controller_fan","fan_generic"]),getPins:(r,e)=>e.getOutputs(["output_pin","pwm_tool","pwm_cycle_time"]).sort(s=>s.pwm?1:-1),getPinByName:(r,e)=>t=>e.getPins.find(n=>n.name===t),getOutputs:(r,e)=>t=>{var d;const s=["temperature_fan","controller_fan","heater_fan","fan_generic","fan"],n=["output_pin","pwm_tool","pwm_cycle_time"],i=["led","neopixel","dotstar"],a=["fan","fan_generic","output_pin","pwm_tool","pwm_cycle_time","led","neopixel","dotstar"],o=["temperature_fan"],l=["output_pin","pwm_tool","pwm_cycle_time","temperature_fan","controller_fan","heater_fan","fan_generic","led","neopixel","dotstar"],c=t&&t.length?t:[...s,...n,...i],u=[];for(const p in r.printer){const[h,m]=p.split(" ",2),g=m??p;if(c.includes(h)&&(!l.includes(h)||!g.startsWith("_"))){const v=g==="fan"?"Part Fan":b.$filters.prettyCase(g),y=o.includes(h)?b.$colorset.next(eh(p),p):void 0,C=e.getPrinterSettings(p);let x={...r.printer[p],...e.getExtraSensorData((d=C==null?void 0:C.sensor_type)==null?void 0:d.toLowerCase(),g),config:{...C},name:g,prettyName:v,key:p,color:y,type:h,controllable:a.includes(h)};s.includes(h)&&(x={...x,minTemp:C==null?void 0:C.min_temp,maxTemp:C==null?void 0:C.max_temp}),n.includes(h)&&(x={...x,pwm:(C==null?void 0:C.pwm)??!1,scale:(C==null?void 0:C.scale)??1,resetValue:(C==null?void 0:C.value)??0,controllable:C!=null&&C.static_value?!1:a.includes(h)}),u.push(x)}}return u.sort((p,h)=>p.type.localeCompare(h.type)||p.name.localeCompare(h.name))},getSensors:(r,e)=>{const t=["temperature_sensor","temperature_probe","tmc2240","z_thermal_adjust"],s=["tmc2240"],n=Object.keys(r.printer).reduce((i,a)=>{var u;const[o,l]=a.split(" ",2),c=l??a;if(t.includes(o)&&!c.startsWith("_")){const d=s.includes(o)?st.t("app.general.label.stepper_driver",{name:c.startsWith("stepper_")?c.substring(8).toUpperCase():b.$filters.prettyCase(c)}):b.$filters.prettyCase(c),p=b.$colorset.next(eh(a),a),h=e.getPrinterSettings(a);i[c]={...r.printer[a],...e.getExtraSensorData((u=h==null?void 0:h.sensor_type)==null?void 0:u.toLowerCase(),c),config:{...h},minTemp:(h==null?void 0:h.min_temp)??null,maxTemp:(h==null?void 0:h.max_temp)??null,name:c,key:a,prettyName:d,color:p,type:o}}return i},{});return Object.values(n).sort((i,a)=>i.type.localeCompare(a.type)||i.name.localeCompare(a.name))},getExtraSensorData:r=>(e,t)=>{if(["aht10","bme280","htu21d","nevermoresensor","sht3x"].includes(e)){const n=r.printer[`${e} ${t}`];if(n){const{pressure:i,humidity:a,gas:o}=n;return{pressure:i,humidity:a,gas:o}}}},getChartableSensors:r=>{const e=[["temperature_fan"],["temperature_probe","z_thermal_adjust","temperature_sensor"],["tmc2240"]],t=Object.keys(r.printer);return e.flatMap(n=>{const i=n.map(a=>new RegExp(`^${a}(?! _)`));return t.filter(a=>i.some(o=>o.test(a))).sort((a,o)=>a.localeCompare(o))}),[...[...r.printer.heaters.available_heaters].sort((n,i)=>n.localeCompare(i))]},getBedScrews:(r,e)=>{const t=e.getPrinterSettings("bed_screws"),s=[];for(let n=1;n<=99;n++){const i=`screw${n}`,a=t[i];if(!a)break;const o=t[`screw${n}_fine_adjust`],l=t[`screw${n}_name`],c=b.$filters.prettyCase(l||st.t("app.general.label.screw_number",{index:n+1}));s.push({key:i,name:l,prettyName:c,fine:o,x:a[0],y:a[1]})}return s},getScrewsTiltAdjust:(r,e)=>{const t=e.getPrinterSettings("screws_tilt_adjust"),s=[],{results:n,...i}=r.printer.screws_tilt_adjust;for(let a=1;a<=99;a++){const o=`screw${a}`,l=n==null?void 0:n[o];if(!l)break;const c=t[o],u=t[`${o}_name`],d=b.$filters.prettyCase(u||st.t("app.general.label.screw_number",{index:a+1})),[p,h]=l.adjust.split(":").map(Number),m=p*60+h;s.push({key:o,name:u,prettyName:d,...l,adjustMinutes:m,x:c[0],y:c[1]})}return{...i,screws:s}},getPrinterSettings:r=>e=>{if(r.printer&&r.printer.configfile&&r.printer.configfile.settings)return e?Bo(r.printer.configfile.settings,e.toLowerCase(),void 0):r.printer.configfile.settings},getPrinterConfig:r=>e=>{if(r.printer&&r.printer.configfile&&r.printer.configfile.config)return e?Bo(r.printer.configfile.config,e,void 0):r.printer.configfile.config},getHasWarnings:(r,e,t)=>!!(t.socket&&t.socket.open&&t.socket.ready&&(e.getPrinterWarnings.length>0||e.getKlipperWarnings.length>0||e.getMoonrakerFailedComponents.length>0||e.getMoonrakerWarnings.length>0)),getPrinterWarnings:(r,e)=>{const t=e.getPrinterConfig(),s=[];return t&&!("virtual_sdcard"in t)&&s.push({message:"[virtual_sdcard] not found in printer configuration."}),t&&!("pause_resume"in t)&&s.push({message:"[pause_resume] not found in printer configuration."}),t&&!("display"in t)&&!("display_status"in t)&&s.push({message:"[display_status] is required if you do not have a [display] defined."}),t&&!("gcode_macro CANCEL_PRINT"in t)&&s.push({message:"CANCEL_PRINT macro not found in configuration."}),s},getKlipperWarnings:r=>{var e;return((e=r.printer.configfile)==null?void 0:e.warnings)||[]},getMoonrakerFailedComponents:(r,e,t,s)=>s["server/getInfo"].failed_components||[],getMoonrakerWarnings:(r,e,t,s)=>s["server/getInfo"].warnings||[],getSaveConfigPending:r=>{var t;return((t=r.printer.configfile)==null?void 0:t.save_config_pending)||!1},getSaveConfigPendingItems:r=>{var t;return((t=r.printer.configfile)==null?void 0:t.save_config_pending_items)||{}},getHasHomingOverride:(r,e)=>{const t=e.getPrinterConfig();return!!(t&&"homing_override"in t)},getHasRoundBed:(r,e)=>{const t=e.getPrinterSettings("printer.kinematics")||"";return["delta","polar","rotary_delta","winch"].includes(t)},getBedSize:r=>{const{axis_minimum:e,axis_maximum:t}=r.printer.toolhead;if(e.length<2||t.length<2)return;const[s,n]=e,[i,a]=t;return{minX:s,minY:n,maxX:i,maxY:a}},getAvailableCommands:(r,e,t,s)=>{const n=r.printer.gcode.commands;if(n)return n;const i=s["console/getAllKnownCommands"];return Object.entries(i).reduce((a,[o,l])=>(a[o]={help:l},a),{})},getIsManualProbeActive:r=>{var e;return((e=r.printer.manual_probe)==null?void 0:e.is_active)||!1},getIsBedScrewsAdjustActive:r=>{var e;return((e=r.printer.bed_screws)==null?void 0:e.is_active)||!1},getHasScrewsTiltAdjustResults:r=>{const{error:e,max_deviation:t,results:s}=r.printer.screws_tilt_adjust??{};return!e&&t==null&&s&&Object.keys(s).length>0},getVariables:r=>{const e=r.printer.save_variables.variables,t=e.box_count,s=[],n=[],i=new Array(16).fill(0),a=[],o=e.slot_sync||"",l=[e.color_extra||"",e.filament_extra||""];for(const c in e)if(c.startsWith("color_slot")){const u=parseInt(c.replace("color_slot",""));s[u]=parseInt(e[c])}else if(c.startsWith("filament_slot")){const u=parseInt(c.replace("filament_slot",""));n[u]=parseInt(e[c])}else if(c.startsWith("slot")&&c!=="slot_sync"){const u=parseInt(c.replace("slot",""));i[u]=parseInt(e[c])}else if(c.startsWith("value_t")){const u=parseInt(c.replace("value_t","")),d=parseInt(e[c].replace("slot",""));a[u]=d}return{boxCount:t,colorSlot:s,filamentSlot:n,slot:i,valueSlot:a,slotSync:o,rackExtra:l}}},Z_e=(r,e,t,s)=>{var n,i,a,o,l;for(const c in r){const[u,d]=c.split(" ",2);if(/^tmc\d{4}$/.exec(u)&&((i=(n=r[c])==null?void 0:n.drv_status)==null?void 0:i.otpw)!=null&&((l=(o=(a=e.printer.printer)==null?void 0:a[c])==null?void 0:o.drv_status)==null?void 0:l.otpw)==null){const p=d??c,h=s.getKlippyApp,m={id:`${c}-otpw`,title:st.t("app.printer.title.stepper_driver_overheating",{name:p}).toString(),description:st.t("app.printer.msg.possible_print_failure").toString(),to:st.t("app.printer.url.stepper_driver_overheating",{klipperDomain:h.domain}).toString(),type:"error",snackbar:!0,merge:!0,clear:!0,noCount:!0};t("notifications/pushNotification",m,{root:!0})}}},Y_e=(r,e,t)=>{"exclude_object"in r&&t("parts/onPartUpdate",r.exclude_object,{root:!0}),"print_stats"in r&&("state"in r.print_stats||"filename"in r.print_stats)&&t("parts/onPrintStatsUpdate",r.print_stats,{root:!0})},K_e=(r,e,t)=>{"print_stats"in r&&"state"in r.print_stats&&(e.printer.printer.print_stats.state!=="printing"&&r.print_stats.state==="printing"?t("printer/onPrintStart",r,{root:!0}):e.printer.printer.print_stats.state==="printing"&&r.print_stats.state==="complete"?t("printer/onPrintEnd",r,{root:!0}):e.printer.printer.print_stats.state==="printing"&&r.print_stats.state==="standby"&&t("printer/onPrintEnd",r,{root:!0}))},X_e=(r,e,t)=>{"print_stats"in r&&"filename"in r.print_stats&&r.print_stats.filename!==e.printer.printer.print_stats.filename&&(t("printer/setResetCurrentFile",void 0,{root:!0}),r.print_stats.filename!==""&&r.print_stats.filename!==null&&F.serverFilesMetadata(r.print_stats.filename))},Q_e=(r,e,t)=>{const s=Object.keys(r).filter(n=>n.startsWith("mcu"));s.length>0&&s.forEach(n=>{const i={...e.printer.printer[n],...r[n]};if(i.last_stats){const a=new Date;let o;e.charts[n]&&(o=e.charts[n][e.charts[n].length-1]);const l=.0025,c=5,u=100*(i.last_stats.mcu_task_avg+3*i.last_stats.mcu_task_stddev)/l,d=100*(i.last_stats.mcu_awake/c),p=25e3,h=o?a.getTime()-o.date.getTime():1e3;let m=i.last_stats.bytes_write+i.last_stats.bytes_retransmit,g=o?parseFloat(o.bw):m;m<g&&(g=m),m=100*(m-g)/(p*h),t("charts/setChartEntry",{type:n,retention:600,data:{date:a,load:u.toFixed(2),awake:d.toFixed(2),bw:m.toFixed(2)}},{root:!0})}})},J_e=(r,e,t)=>{var s,n,i,a,o;if("system_stats"in r){const l={...e.printer.printer.system_stats,...r.system_stats},c=new Date;if("memavail"in l&&((n=(s=e.server.system_info)==null?void 0:s.cpu_info)!=null&&n.total_memory)){const u=((a=(i=e.server.system_info)==null?void 0:i.cpu_info)==null?void 0:a.total_memory)||0,d=u-l.memavail,p=Math.ceil(d/u*100);t("charts/setChartEntry",{type:"memory",retention:600,data:{date:c,memused:p.toFixed(2)}},{root:!0})}if("cputime"in l&&"sysload"in l){const u=l.cputime,d=((o=e.printer.printer.system_stats)==null?void 0:o.cputime)||l.cputime||0;t("charts/setChartEntry",{type:"klipper",retention:600,data:{date:c,load:l.sysload.toFixed(2),cputime_change:((u-d)*100).toFixed(2)}},{root:!0})}}},e0e=(r,e,t,s)=>{const n=()=>{const a={date:new Date};return s.getChartableSensors.forEach(l=>{const c=e.printer.printer[l].temperature,u=e.printer.printer[l].target,d=e.printer.printer[l].power,p=e.printer.printer[l].speed;a[l]=c,u!=null&&(a[`${l}Target`]=u),d!=null&&(a[`${l}Power`]=d),p!=null&&(a[`${l}Speed`]=p)}),a};if(e.charts.ready){const i=n();t("charts/setChartEntry",{type:"chart",data:i,retention:r},{root:!0})}},t0e={async reset({commit:r}){r("setReset")},async onPrinterInfo({commit:r},e){r("setPrinterInfo",e)},async onQueryEndstops({commit:r},e){r("setQueryEndstops",e)},async onPrintCancel(){ye.debug("Print Cancelled")},async onPrintPause(){ye.debug("Print Paused")},async onPrintResume(){ye.debug("Print Resumed")},async onPrintStart(r,e){ye.debug("Print start detected",e)},async onPrintEnd(r,e){ye.debug("Print end detected",e)},async onPrinterObjectsList({commit:r},e){let t={};e.objects.forEach(s=>{s.includes("menu")||(t={...t,[s]:null});let n=s;s.includes(" ")&&(n=n.replace(" ",".")),r("setPrinterObjectList",n)}),F.printerObjectsSubscribe(t)},async onPrinterObjectsSubscribe({commit:r,dispatch:e},t){const s=t.status;"screws_tilt_adjust"in s&&(s.screws_tilt_adjust={}),"toolhead"in s&&("max_accel_to_decel"in s.toolhead?s.toolhead.minimum_cruise_ratio=null:s.toolhead.max_accel_to_decel=null),r("socket/setAcceptNotifications",!0,{root:!0}),await e("onNotifyStatusUpdate",s),F.serverGcodeStore(),F.printerGcodeHelp(),F.serverTemperatureStore()},async onNotifyStatusUpdate({rootState:r,commit:e,getters:t,dispatch:s},n){var i,a;if(n&&r.socket.acceptingNotifications){X_e(n,r,e),K_e(n,r,s),Y_e(n,r,s),J_e(n,r,e),Q_e(n,r,e),Z_e(n,r,s,t),"save_variables"in n&&e("setVariables",n);for(const c in n){const u=n[c];e("setSocketNotify",{key:c,payload:u})}const o=r.server.config,l=((i=o==null?void 0:o.data_store)==null?void 0:i.temperature_store_size)??((a=o==null?void 0:o.server)==null?void 0:a.temperature_store_size)??he.CHART_HISTORY_RETENTION;e0e(l,r,e,t),s("onDiagnosticsMetricsUpdate")}},async onFastNotifyStatusUpdate({rootState:r,commit:e,dispatch:t},s){s&&r.socket.acceptingNotifications&&(e("setSocketNotify",s),t("onDiagnosticsMetricsUpdate"))},async onDiagnosticsMetricsUpdate({rootState:r,commit:e,rootGetters:t}){if(!r.config.uiSettings.general.enableDiagnostics)return;const s=r.layout.layouts.diagnostics,n=Object.values(s).flat().map(o=>o.axes).flat().filter(o=>o.enabled).map(o=>o.metrics).flat(),i=Array.from(new Set(n.map(o=>o.collector)));let a;try{if(a=x7(`
const printer = ${JSON.stringify(r.printer.printer)}
const collectors = ${JSON.stringify(i)}
const result = { }
for (const collector of collectors) {
try {
result[collector] = eval(collector)
} catch (err) {
result[collector] = err.message
}
}
return JSON.stringify(result) // in order to only return serializable data
`,"metrics"),typeof a!="string")throw new Error("Metrics collector returned invalid data");a=JSON.parse(a)}catch(o){a=Object.fromEntries(i.map(l=>[l,(o instanceof Error&&o.message)??"Unknown Error"]))}a.date=new Date,e("charts/setChartEntry",{type:"diagnostics",retention:t["charts/getChartRetention"],data:a},{root:!0})}},r0e={setReset(r){Object.assign(r,v0())},setPrinterInfo(r,e){b.set(r.printer,"info",e)},setQueryEndstops(r,e){r.printer.endstops=e},setPrinterBusy(r,e){r.printer.busy=e},setPrinterObjectList(r,e){r.printer.objects.includes(e)||r.printer.objects.push(e)},setClearEndStops(r){r.printer.endstops={}},setClearScrewsTiltAdjust(r){r.printer.screws_tilt_adjust={}},setResetCurrentFile(r){const e=v0().printer.current_file;ye.debug("resetting current file",e),b.set(r.printer,"current_file",e)},setSocketNotify(r,e){if(typeof e.payload=="object"){const t=Bo(r.printer,e.key);t===void 0?b.set(r.printer,e.key,e.payload):Object.keys(e.payload).forEach(s=>{t[s]!==e.payload[s]&&b.set(r.printer[e.key],s,e.payload[s])})}else Bo(r.printer,e.key)!==e.payload&&b.set(r.printer,e.key,e.payload)},setVariables(r,e){b.set(r.printer,"save_variables",e.save_variables)}},s0e=!0,n0e={namespaced:s0e,state:G_e,getters:q_e,actions:t0e,mutations:r0e},i0e={getCurrentInstance:r=>r.instances.find(e=>e.active),getInstances:r=>[...r.instances].sort((t,s)=>t.active?-1:s.active?1:t.name.localeCompare(s.name)),getHostConfig:r=>r.hostConfig,getTempPresets:(r,e,t,s)=>{const n=r.uiSettings.dashboard.tempPresets,i=[],a=s["printer/getHeaters"],o=s["printer/getOutputs"](["temperature_fan"]);return n.forEach(l=>{const c={...l,values:{}};a.forEach(u=>{l.values[u.name]?c.values[u.name]={...l.values[u.name]}:c.values[u.name]={value:0,type:"heater",active:!1}}),o.forEach(u=>{l.values[u.name]?c.values[u.name]={...l.values[u.name]}:c.values[u.name]={value:0,type:"fan",active:!1}}),i.push(c)}),i.sort((l,c)=>l.name.localeCompare(c.name))},getCustomThemeFile:(r,e,t,s)=>(n,i)=>{const a=s["files/getRootFiles"]("config");if(a)for(const o of i){const l=`.fluidd-theme/${n}${o}`;if(a.some(c=>c.path===l))return l}},getMergedTableHeaders:(r,e)=>(t,s)=>{const n=e.getConfiguredTableHeaders(s);if(!n)return t;const i=[];return t.forEach(a=>{const o=a.key?"key":"value",l={visible:!0,configurable:!1,...a,...n.find(c=>c[o]===a[o])};i.push(l)}),i},getConfiguredTableHeaders:r=>e=>r.uiSettings.tableHeaders[e],getTokenKeys:r=>{const e=r.apiUrl,t=e?b8(e):"";return{"user-token":`user-token-${t}`,"refresh-token":`refresh-token-${t}`}}};b.use(Qa,{directives:{Ripple:ls}});const vl=new Qa({breakpoint:{mobileBreakpoint:"xs"},icons:{iconfont:"mdiSvg",values:ou},theme:{dark:!0,options:{customProperties:!0},themes:{dark:{primary:"#2196F3","primary-offset":"#2E75AE",secondary:"#888888","card-heading":"#333337",btncolor:"#4A4A4F",drawer:"#28282B",appbar:"#1E1E20",logo:"#2196F3"},light:{primary:"#2196F3","primary-offset":"#2E75AE",secondary:CW.grey.lighten1,"card-heading":"#E9E9E9",btncolor:"#E9E9E9",drawer:"#F4F4F4",appbar:"#FFFFFF",logo:"#2196F3"}}}});function cr(r,e){a0e(r)&&(r="100%");const t=o0e(r);return r=e===360?r:Math.min(e,Math.max(0,parseFloat(r))),t&&(r=parseInt(String(r*e),10)/100),Math.abs(r-e)<1e-6?1:(e===360?r=(r<0?r%e+e:r%e)/parseFloat(String(e)):r=r%e/parseFloat(String(e)),r)}function Ap(r){return Math.min(1,Math.max(0,r))}function a0e(r){return typeof r=="string"&&r.indexOf(".")!==-1&&parseFloat(r)===1}function o0e(r){return typeof r=="string"&&r.indexOf("%")!==-1}function v9(r){return r=parseFloat(r),(isNaN(r)||r<0||r>1)&&(r=1),r}function Ep(r){return Number(r)<=1?`${Number(r)*100}%`:r}function ha(r){return r.length===1?"0"+r:String(r)}function l0e(r,e,t){return{r:cr(r,255)*255,g:cr(e,255)*255,b:cr(t,255)*255}}function B5(r,e,t){r=cr(r,255),e=cr(e,255),t=cr(t,255);const s=Math.max(r,e,t),n=Math.min(r,e,t);let i=0,a=0;const o=(s+n)/2;if(s===n)a=0,i=0;else{const l=s-n;switch(a=o>.5?l/(2-s-n):l/(s+n),s){case r:i=(e-t)/l+(e<t?6:0);break;case e:i=(t-r)/l+2;break;case t:i=(r-e)/l+4;break}i/=6}return{h:i,s:a,l:o}}function Lg(r,e,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?r+(e-r)*(6*t):t<1/2?e:t<2/3?r+(e-r)*(2/3-t)*6:r}function c0e(r,e,t){let s,n,i;if(r=cr(r,360),e=cr(e,100),t=cr(t,100),e===0)n=t,i=t,s=t;else{const a=t<.5?t*(1+e):t+e-t*e,o=2*t-a;s=Lg(o,a,r+1/3),n=Lg(o,a,r),i=Lg(o,a,r-1/3)}return{r:s*255,g:n*255,b:i*255}}function j5(r,e,t){r=cr(r,255),e=cr(e,255),t=cr(t,255);const s=Math.max(r,e,t),n=Math.min(r,e,t);let i=0;const a=s,o=s-n,l=s===0?0:o/s;if(s===n)i=0;else{switch(s){case r:i=(e-t)/o+(e<t?6:0);break;case e:i=(t-r)/o+2;break;case t:i=(r-e)/o+4;break}i/=6}return{h:i,s:l,v:a}}function u0e(r,e,t){r=cr(r,360)*6,e=cr(e,100),t=cr(t,100);const s=Math.floor(r),n=r-s,i=t*(1-e),a=t*(1-n*e),o=t*(1-(1-n)*e),l=s%6,c=[t,a,i,i,o,t][l],u=[o,t,t,a,i,i][l],d=[i,i,o,t,t,a][l];return{r:c*255,g:u*255,b:d*255}}function V5(r,e,t,s){const n=[ha(Math.round(r).toString(16)),ha(Math.round(e).toString(16)),ha(Math.round(t).toString(16))];return s&&n[0].startsWith(n[0].charAt(1))&&n[1].startsWith(n[1].charAt(1))&&n[2].startsWith(n[2].charAt(1))?n[0].charAt(0)+n[1].charAt(0)+n[2].charAt(0):n.join("")}function d0e(r,e,t,s,n){const i=[ha(Math.round(r).toString(16)),ha(Math.round(e).toString(16)),ha(Math.round(t).toString(16)),ha(h0e(s))];return n&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function p0e(r,e,t,s){const n=r/100,i=e/100,a=t/100,o=s/100,l=255*(1-n)*(1-o),c=255*(1-i)*(1-o),u=255*(1-a)*(1-o);return{r:l,g:c,b:u}}function N5(r,e,t){let s=1-r/255,n=1-e/255,i=1-t/255,a=Math.min(s,n,i);return a===1?(s=0,n=0,i=0):(s=(s-a)/(1-a)*100,n=(n-a)/(1-a)*100,i=(i-a)/(1-a)*100),a*=100,{c:Math.round(s),m:Math.round(n),y:Math.round(i),k:Math.round(a)}}function h0e(r){return Math.round(parseFloat(r)*255).toString(16)}function z5(r){return Qr(r)/255}function Qr(r){return parseInt(r,16)}function f0e(r){return{r:r>>16,g:(r&65280)>>8,b:r&255}}const _0={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function m0e(r){let e={r:0,g:0,b:0},t=1,s=null,n=null,i=null,a=!1,o=!1;return typeof r=="string"&&(r=_0e(r)),typeof r=="object"&&(Yr(r.r)&&Yr(r.g)&&Yr(r.b)?(e=l0e(r.r,r.g,r.b),a=!0,o=String(r.r).substr(-1)==="%"?"prgb":"rgb"):Yr(r.h)&&Yr(r.s)&&Yr(r.v)?(s=Ep(r.s),n=Ep(r.v),e=u0e(r.h,s,n),a=!0,o="hsv"):Yr(r.h)&&Yr(r.s)&&Yr(r.l)?(s=Ep(r.s),i=Ep(r.l),e=c0e(r.h,s,i),a=!0,o="hsl"):Yr(r.c)&&Yr(r.m)&&Yr(r.y)&&Yr(r.k)&&(e=p0e(r.c,r.m,r.y,r.k),a=!0,o="cmyk"),Object.prototype.hasOwnProperty.call(r,"a")&&(t=r.a)),t=v9(t),{ok:a,format:r.format||o,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:t}}const g0e="[-\\+]?\\d+%?",v0e="[-\\+]?\\d*\\.\\d+%?",yi="(?:"+v0e+")|(?:"+g0e+")",Ag="[\\s|\\(]+("+yi+")[,|\\s]+("+yi+")[,|\\s]+("+yi+")\\s*\\)?",Op="[\\s|\\(]+("+yi+")[,|\\s]+("+yi+")[,|\\s]+("+yi+")[,|\\s]+("+yi+")\\s*\\)?",vs={CSS_UNIT:new RegExp(yi),rgb:new RegExp("rgb"+Ag),rgba:new RegExp("rgba"+Op),hsl:new RegExp("hsl"+Ag),hsla:new RegExp("hsla"+Op),hsv:new RegExp("hsv"+Ag),hsva:new RegExp("hsva"+Op),cmyk:new RegExp("cmyk"+Op),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function _0e(r){if(r=r.trim().toLowerCase(),r.length===0)return!1;let e=!1;if(_0[r])r=_0[r],e=!0;else if(r==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};let t=vs.rgb.exec(r);return t?{r:t[1],g:t[2],b:t[3]}:(t=vs.rgba.exec(r),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=vs.hsl.exec(r),t?{h:t[1],s:t[2],l:t[3]}:(t=vs.hsla.exec(r),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=vs.hsv.exec(r),t?{h:t[1],s:t[2],v:t[3]}:(t=vs.hsva.exec(r),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=vs.cmyk.exec(r),t?{c:t[1],m:t[2],y:t[3],k:t[4]}:(t=vs.hex8.exec(r),t?{r:Qr(t[1]),g:Qr(t[2]),b:Qr(t[3]),a:z5(t[4]),format:e?"name":"hex8"}:(t=vs.hex6.exec(r),t?{r:Qr(t[1]),g:Qr(t[2]),b:Qr(t[3]),format:e?"name":"hex"}:(t=vs.hex4.exec(r),t?{r:Qr(t[1]+t[1]),g:Qr(t[2]+t[2]),b:Qr(t[3]+t[3]),a:z5(t[4]+t[4]),format:e?"name":"hex8"}:(t=vs.hex3.exec(r),t?{r:Qr(t[1]+t[1]),g:Qr(t[2]+t[2]),b:Qr(t[3]+t[3]),format:e?"name":"hex"}:!1))))))))))}function Yr(r){return typeof r=="number"?!Number.isNaN(r):vs.CSS_UNIT.test(r)}class $t{constructor(e="",t={}){if(e instanceof $t)return e;typeof e=="number"&&(e=f0e(e)),this.originalInput=e;const s=m0e(e);this.originalInput=e,this.r=s.r,this.g=s.g,this.b=s.b,this.a=s.a,this.roundA=Math.round(100*this.a)/100,this.format=t.format??s.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=s.ok}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}getBrightness(){const e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3}getLuminance(){const e=this.toRgb();let t,s,n;const i=e.r/255,a=e.g/255,o=e.b/255;return i<=.03928?t=i/12.92:t=Math.pow((i+.055)/1.055,2.4),a<=.03928?s=a/12.92:s=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),.2126*t+.7152*s+.0722*n}getAlpha(){return this.a}setAlpha(e){return this.a=v9(e),this.roundA=Math.round(100*this.a)/100,this}isMonochrome(){const{s:e}=this.toHsl();return e===0}toHsv(){const e=j5(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}}toHsvString(){const e=j5(this.r,this.g,this.b),t=Math.round(e.h*360),s=Math.round(e.s*100),n=Math.round(e.v*100);return this.a===1?`hsv(${t}, ${s}%, ${n}%)`:`hsva(${t}, ${s}%, ${n}%, ${this.roundA})`}toHsl(){const e=B5(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}}toHslString(){const e=B5(this.r,this.g,this.b),t=Math.round(e.h*360),s=Math.round(e.s*100),n=Math.round(e.l*100);return this.a===1?`hsl(${t}, ${s}%, ${n}%)`:`hsla(${t}, ${s}%, ${n}%, ${this.roundA})`}toHex(e=!1){return V5(this.r,this.g,this.b,e)}toHexString(e=!1){return"#"+this.toHex(e)}toHex8(e=!1){return d0e(this.r,this.g,this.b,this.a,e)}toHex8String(e=!1){return"#"+this.toHex8(e)}toHexShortString(e=!1){return this.a===1?this.toHexString(e):this.toHex8String(e)}toRgb(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}}toRgbString(){const e=Math.round(this.r),t=Math.round(this.g),s=Math.round(this.b);return this.a===1?`rgb(${e}, ${t}, ${s})`:`rgba(${e}, ${t}, ${s}, ${this.roundA})`}toPercentageRgb(){const e=t=>`${Math.round(cr(t,255)*100)}%`;return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}}toPercentageRgbString(){const e=t=>Math.round(cr(t,255)*100);return this.a===1?`rgb(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%)`:`rgba(${e(this.r)}%, ${e(this.g)}%, ${e(this.b)}%, ${this.roundA})`}toCmyk(){return{...N5(this.r,this.g,this.b)}}toCmykString(){const{c:e,m:t,y:s,k:n}=N5(this.r,this.g,this.b);return`cmyk(${e}, ${t}, ${s}, ${n})`}toName(){if(this.a===0)return"transparent";if(this.a<1)return!1;const e="#"+V5(this.r,this.g,this.b,!1);for(const[t,s]of Object.entries(_0))if(e===s)return t;return!1}toString(e){const t=!!e;e=e??this.format;let s=!1;const n=this.a<1&&this.a>=0;return!t&&n&&(e.startsWith("hex")||e==="name")?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(s=this.toRgbString()),e==="prgb"&&(s=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(s=this.toHexString()),e==="hex3"&&(s=this.toHexString(!0)),e==="hex4"&&(s=this.toHex8String(!0)),e==="hex8"&&(s=this.toHex8String()),e==="name"&&(s=this.toName()),e==="hsl"&&(s=this.toHslString()),e==="hsv"&&(s=this.toHsvString()),e==="cmyk"&&(s=this.toCmykString()),s||this.toHexString())}toNumber(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)}clone(){return new $t(this.toString())}lighten(e=10){const t=this.toHsl();return t.l+=e/100,t.l=Ap(t.l),new $t(t)}brighten(e=10){const t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(e/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(e/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(e/100)))),new $t(t)}darken(e=10){const t=this.toHsl();return t.l-=e/100,t.l=Ap(t.l),new $t(t)}tint(e=10){return this.mix("white",e)}shade(e=10){return this.mix("black",e)}desaturate(e=10){const t=this.toHsl();return t.s-=e/100,t.s=Ap(t.s),new $t(t)}saturate(e=10){const t=this.toHsl();return t.s+=e/100,t.s=Ap(t.s),new $t(t)}greyscale(){return this.desaturate(100)}spin(e){const t=this.toHsl(),s=(t.h+e)%360;return t.h=s<0?360+s:s,new $t(t)}mix(e,t=50){const s=this.toRgb(),n=new $t(e).toRgb(),i=t/100,a={r:(n.r-s.r)*i+s.r,g:(n.g-s.g)*i+s.g,b:(n.b-s.b)*i+s.b,a:(n.a-s.a)*i+s.a};return new $t(a)}analogous(e=6,t=30){const s=this.toHsl(),n=360/t,i=[this];for(s.h=(s.h-(n*e>>1)+720)%360;--e;)s.h=(s.h+n)%360,i.push(new $t(s));return i}complement(){const e=this.toHsl();return e.h=(e.h+180)%360,new $t(e)}monochromatic(e=6){const t=this.toHsv(),{h:s}=t,{s:n}=t;let{v:i}=t;const a=[],o=1/e;for(;e--;)a.push(new $t({h:s,s:n,v:i})),i=(i+o)%1;return a}splitcomplement(){const e=this.toHsl(),{h:t}=e;return[this,new $t({h:(t+72)%360,s:e.s,l:e.l}),new $t({h:(t+216)%360,s:e.s,l:e.l})]}onBackground(e){const t=this.toRgb(),s=new $t(e).toRgb(),n=t.a+s.a*(1-t.a);return new $t({r:(t.r*t.a+s.r*s.a*(1-t.a))/n,g:(t.g*t.a+s.g*s.a*(1-t.a))/n,b:(t.b*t.a+s.b*s.a*(1-t.a))/n,a:n})}triad(){return this.polyad(3)}tetrad(){return this.polyad(4)}polyad(e){const t=this.toHsl(),{h:s}=t,n=[this],i=360/e;for(let a=1;a<e;a++)n.push(new $t({h:(s+a*i)%360,s:t.s,l:t.l}));return n}equals(e){const t=new $t(e);return this.format==="cmyk"||t.format==="cmyk"?this.toCmykString()===t.toCmykString():this.toRgbString()===t.toRgbString()}}const y0e={async reset({commit:r}){r("setReset")},async initUiSettings({commit:r,dispatch:e,state:t},s){s.general&&s.general.locale&&e("onLocaleChange",s.general.locale)},async onThemeChange(r,e){const t=vl.framework.theme;t.dark=e.isDark,t.currentTheme.primary=e.color,t.currentTheme["primary-offset"]=new $t(e.color).desaturate(5).darken(10).toHexString(),t.themes.dark.logo=e.logo.light,t.themes.light.logo=e.logo.dark},async onLocaleChange({dispatch:r,state:e},t){r("wait/addWait",tt.onLoadLanguage,{root:!0});const s=J3(),n=t!=="default"?await Ev(t):await Ev(s);e.uiSettings.general.locale!==t&&r("saveByPath",{path:"uiSettings.general.locale",value:t!=="default"?n:t,server:!0}),r("wait/removeWait",tt.onLoadLanguage,{root:!0})},async initHost({commit:r},e){r("setInitHostConfig",e.hostConfig)},async initLocal({commit:r},e){r("setInitInstances",e)},async onInitApiConfig({commit:r},e){r("setInitApiConfig",e)},async removeInstance({commit:r},e){r("setRemoveInstance",e)},async updateInstance({commit:r,dispatch:e,state:t,getters:s},n){e("saveByPath",{path:"uiSettings.general.instanceName",value:n,server:!0});let i=s.getCurrentInstance;i&&(i={...i,name:t.uiSettings.general.instanceName},r("setUpdateInstanceName",i))},async saveByPath({commit:r},e){r("setSaveByPath",e),e.server&&F.serverWrite(e.path,e.value)},async updatePreset({commit:r,state:e},t){r("setPreset",t),F.serverWrite("uiSettings.dashboard.tempPresets",e.uiSettings.dashboard.tempPresets)},async removePreset({commit:r,state:e},t){r("setRemovePreset",t),F.serverWrite("uiSettings.dashboard.tempPresets",e.uiSettings.dashboard.tempPresets)},async updateFileSystemActiveFilters({commit:r,state:e},t){r("setFileSystemActiveFilters",t),F.serverWrite(`uiSettings.fileSystem.activeFilters.${t.root}`,e.uiSettings.fileSystem.activeFilters[t.root])},async updateFileSystemSortBy({commit:r,state:e},t){r("setFileSystemSortBy",t),F.serverWrite(`uiSettings.fileSystem.sortBy.${t.root}`,e.uiSettings.fileSystem.sortBy[t.root])},async updateFileSystemSortDesc({commit:r,state:e},t){r("setFileSystemSortDesc",t),F.serverWrite(`uiSettings.fileSystem.sortDesc.${t.root}`,e.uiSettings.fileSystem.sortDesc[t.root])},async updateHeader({commit:r,state:e},t){r("setUpdateHeader",t),e.uiSettings.tableHeaders[t.name]&&F.serverWrite(`uiSettings.tableHeaders.${t.name}`,e.uiSettings.tableHeaders[t.name])},async updateTheme({state:r,dispatch:e},t){const s={...r.uiSettings.theme,...t};e("onThemeChange",s),e("saveByPath",{path:"uiSettings.theme",value:s,server:!0})}},b0e={setReset(r){Object.assign(r,zl())},setInitUiSettings(r,e){var t;if(e){if(e.theme){e.theme.color==null&&"currentTheme"in e.theme&&typeof e.theme.currentTheme=="object"&&e.theme.currentTheme!=null&&"primary"in e.theme.currentTheme&&typeof e.theme.currentTheme.primary=="string"&&(ye.debug("Converting legacy theme color"),e.theme.color=e.theme.currentTheme.primary,delete e.theme.currentTheme);const n=(t=e.theme.logo)==null?void 0:t.src;n!=null&&n.startsWith("/")&&(e.theme.logo.src=n.substring(1))}const s=K3(Cv(r.uiSettings),e,(n,i)=>Array.isArray(n)?i:void 0);b.set(r,"uiSettings",s)}},setInitApiConfig(r,e){r.apiUrl=e.apiUrl,r.socketUrl=e.socketUrl,e.name&&e.name!==""&&(r.uiSettings.general.instanceName=e.name)},setInitHostConfig(r,e){r.hostConfig.blacklist=e.blacklist,r.hostConfig.endpoints=e.endpoints,r.hostConfig.hosted=e.hosted,r.hostConfig.themePresets=e.themePresets},setInitInstances(r,e){let t=[];const s=e.apiConfig,n=r.uiSettings;he.LOCAL_INSTANCES_STORAGE_KEY in localStorage&&(t=JSON.parse(localStorage[he.LOCAL_INSTANCES_STORAGE_KEY]));const i=t.findIndex(a=>a.apiUrl===e.apiConfig.apiUrl);i===-1?(n||n===null)&&s&&s.apiUrl!==""&&s.socketUrl!==""&&(t.forEach(a=>{a.active=!1}),t.push({...s,active:!0,name:r.uiSettings.general.instanceName})):t.forEach((a,o)=>{a.active=o===i,o===i&&a.name!==""&&(a.name=r.uiSettings.general.instanceName)}),localStorage.setItem(he.LOCAL_INSTANCES_STORAGE_KEY,JSON.stringify(t)),b.set(r,"instances",t)},setUpdateInstanceName(r,e){const t=r.instances.findIndex(s=>s.apiUrl===e.apiUrl);if(t>-1){const s=r.instances[t];b.set(r.instances,t,{...s,...e})}localStorage.setItem(he.LOCAL_INSTANCES_STORAGE_KEY,JSON.stringify(r.instances))},setRemoveInstance(r,e){const t=r.instances,s=t.findIndex(n=>n.apiUrl===e.apiUrl);s>=0&&(t.splice(s,1),b.set(r,"instances",t),localStorage.setItem(he.LOCAL_INSTANCES_STORAGE_KEY,JSON.stringify(t)))},setSaveByPath(r,e){AV(r,e.path,e.value)},setPreset(r,e){if(e.id===-1)e.id=jl(),r.uiSettings.dashboard.tempPresets.push(e);else{const t=r.uiSettings.dashboard.tempPresets.findIndex(s=>s.id===e.id);t>=0&&b.set(r.uiSettings.dashboard.tempPresets,t,e)}},setRemovePreset(r,e){const t=r.uiSettings.dashboard.tempPresets.findIndex(s=>s.id===e.id);r.uiSettings.dashboard.tempPresets.splice(t,1)},setFileSystemActiveFilters(r,e){b.set(r.uiSettings.fileSystem.activeFilters,e.root,e.value)},setFileSystemSortBy(r,e){b.set(r.uiSettings.fileSystem.sortBy,e.root,e.value)},setFileSystemSortDesc(r,e){b.set(r.uiSettings.fileSystem.sortDesc,e.root,e.value)},setLayoutMode(r,e){r.layoutMode=e},setContainerColumnCount(r,e){r.containerColumnCount=e},setUpdateHeader(r,e){const t=e.header,s=t.key?"key":"value",n=t[s],i=r.uiSettings.tableHeaders[e.name];if(i){const a=i.findIndex(o=>o[s]===n);if(a>=0)b.set(i,a,{...i[a],visible:t.visible});else{const o={value:t.value,visible:t.visible};s==="key"&&(o.key=t.key),i.push(o)}}}},$0e=!0,S0e={namespaced:$0e,state:Ehe,getters:i0e,actions:y0e,mutations:b0e},_9=()=>({uploads:[],download:null,currentPaths:{},disk_usage:{total:0,used:0,free:0},rootFiles:{},pathFiles:{}}),w0e=_9(),x0e={getDirectory:(r,e,t)=>s=>{const n=r.pathFiles[s];if(n){const i=[],[a,...o]=s.split("/"),l=o.join("/");if(l!==""){const u={type:"directory",name:"..",dirname:"..",modified:0,size:0};i.push(u)}for(const u of n.dirs){const d={...u,type:"directory",name:u.dirname,modified:new Date(u.modified).getTime()};i.push(d)}const c=a==="timelapse"?new Set(n.files.map(u=>u.filename).filter(u=>u.endsWith(".jpg"))):void 0;for(const u of n.files){const d=u.job_id&&t.history.jobs.find(h=>h.job_id===u.job_id)||{},p={...u,type:"file",name:u.filename,extension:u.filename.split(".").pop()||"",path:l,modified:new Date(u.modified).getTime(),history:d};if(c&&p.extension!=="jpg"){const h=`${p.filename.slice(0,-(p.extension.length+1))}.jpg`;c.has(h)&&(p.thumbnails=[{height:0,width:0,size:0,relative_path:h}])}i.push(p)}return i}},getRootFiles:r=>e=>r.rootFiles[e],isRootAvailable:(r,e,t)=>s=>t.server.info.registered_directories.includes(s),getRootProperties:()=>r=>{const e=[...zC,...EM,...UC];switch(r){case"gcodes":return{readonly:!1,accepts:[".gcode",".g",".gc",".gco",".ufp",".nc"],canView:e,canConfigure:!0,filterTypes:["hidden_files","print_start_time"]};case"config":return{readonly:!1,accepts:[".conf",".cfg",".md",".css",".jpg",".jpeg",".png",".gif"],canView:e,canConfigure:!1,filterTypes:["hidden_files","klipper_backup_files","moonraker_backup_files","crowsnest_backup_files"]};case"config_examples":return{readonly:!0,accepts:[],canView:e,canConfigure:!1,filterTypes:["hidden_files"]};case"docs":return{readonly:!0,accepts:[],canView:e,canConfigure:!1,filterTypes:["hidden_files"]};case"logs":return{readonly:!0,accepts:[],canView:e,canConfigure:!1,filterTypes:["hidden_files","rolled_log_files"]};case"timelapse":return{readonly:!1,accepts:[],canView:e,canConfigure:!1,filterTypes:["hidden_files"]};default:return{readonly:!0,accepts:[],canView:[],canConfigure:!1,filterTypes:["hidden_files"]}}},getFile:(r,e,t)=>(s,n)=>{const i=r.pathFiles[s],a=i==null?void 0:i.files.find(o=>o.filename===n);if(a){const o=a.job_id&&t.history.jobs.find(d=>d.job_id===a.job_id)||{},[,...l]=s.split("/"),c=l.join("/");return{...a,type:"file",name:a.filename,extension:a.filename.split(".").pop()||"",path:c,modified:new Date(a.modified).getDate(),history:o}}},getCurrentPathByRoot:r=>e=>r.currentPaths[e]||"",getLowOnSpace:r=>r.disk_usage.free<1073741824,getUsage:r=>r.disk_usage,getFileMeta:r=>(e,t)=>{const s=e?`${e}/${t}`:t,n=r.pathFiles[s.substring(0,s.lastIndexOf("/"))];if(n)return n.files.find(a=>a.filename===s.substring(s.lastIndexOf("/")+1))}},Tp=(r,e)=>{if("path"in e){const s=Kt(e.path,r);return{type:"file",filename:s.filename,extension:s.filename.split(".").pop()||"",name:s.filename,path:s.path,size:e.size,modified:e.modified}}const t=Kt(e.filename,r);return{...e,type:"file",filename:t.filename,extension:t.filename.split(".").pop()||"",name:t.filename,path:t.path,modified:new Date(e.modified).getTime()}},C0e={async reset({commit:r}){r("setReset")},async onServerFilesGetDirectory({commit:r},e){const{disk_usage:t,files:s,dirs:n,__request__:i}=e,{path:a}=i.params,o=n.filter(l=>!he.FILTERED_FOLDER_NAMES.includes(l.dirname)&&!he.FILTERED_FILES_PREFIX.some(c=>l.dirname.startsWith(c))&&!he.FILTERED_FILES_EXTENSION.some(c=>l.dirname.endsWith(c)));r("setDiskUsage",t),r("setServerFilesGetDirectory",{path:a,content:{files:s,dirs:o}})},async onServerFilesListRoot({commit:r},e){const{root:t}=e.__request__.params;r("setServerFilesListRoot",{root:t,files:[...e]})},async onFileMetaData({commit:r,rootState:e},t){const s="gcodes",n=Kt(t.filename,s);if(!n.filtered){const i=Tp(s,t);(i.path?`${i.path}/${i.filename}`:`${i.filename}`)===e.printer.printer.print_stats.filename&&r("printer/setSocketNotify",{key:"current_file",payload:i},{root:!0}),r("setFileUpdate",{paths:n,root:s,file:i})}},async notifyCopyItem({dispatch:r},e){r("notifyModifyFile",e)},async notifyMoveItem({dispatch:r},e){r("notifyMoveFile",e)},async notifyUploadFile({dispatch:r},e){r("notifyCreateFile",e)},async notifyRootUpdate({commit:r},e){const t=e.item.root;r("setResetRoot",t),F.serverFilesGetDirectory(t,t)},async notifyModifyFile(r,e){const t=e.item.root,s=Kt(e.item.path,t);if(s.filtered||F.serverFilesGetDirectory(t,s.rootPath),e.source_item){const n=Kt(e.source_item.path,t);!n.filtered&&s.rootPath!==n.rootPath&&F.serverFilesGetDirectory(t,n.rootPath)}},async notifyCreateFile({commit:r,dispatch:e,rootState:t},s){const n=s.item.root,i=Kt(s.item.path,n);if(!i.filtered){const a=Tp(n,s.item);if(n==="gcodes"&&a.extension==="gcode"){const o=t.gcodePreview.file;o&&o.path===a.path&&o.filename===a.filename&&e("gcodePreview/reset",void 0,{root:!0}),F.serverFilesMetadata(s.item.path)}else r("setFileUpdate",{paths:i,root:n,file:a})}},async notifyCreateDir(r,e){const t=e.item.root,s=Kt(e.item.path,t);s.filtered||F.serverFilesGetDirectory(t,s.rootPath)},async notifyMoveFile(r,e){const t=e.item.root,s=Kt(e.item.path,t);if(s.filtered||F.serverFilesGetDirectory(t,s.rootPath),e.source_item){const n=Kt(e.source_item.path,t);!n.filtered&&s.rootPath!==n.rootPath&&F.serverFilesGetDirectory(t,n.rootPath)}},async notifyMoveDir({commit:r},e){const t=e.item.root,s=Kt(e.item.path,t);if(s.filtered||F.serverFilesGetDirectory(t,s.rootPath),e.source_item){const n=Kt(e.source_item.path,t);!n.filtered&&s.rootPath!==n.rootPath&&(F.serverFilesGetDirectory(t,n.rootPath),r("setPathDelete",{path:`${n.rootPath}/${n.filename}`,root:t}))}},async notifyDeleteFile({commit:r},e){const t=e.item.root,s=Kt(e.item.path,t);if(!s.filtered){const n=Tp(t,e.item);r("setItemDelete",{paths:s,root:t,file:n})}},async notifyDeleteDir({commit:r},e){const t=e.item.root,s=Kt(e.item.path,t);if(!s.filtered){const n=Tp(t,e.item);r("setItemDelete",{paths:s,root:t,file:n}),r("setPathDelete",{path:`${s.rootPath}/${s.filename}`,root:t})}},async updateFileUpload({commit:r},e){r("setUpdateFileUpload",e)},async removeFileUpload({commit:r},e){r("setRemoveFileUpload",e)},async updateFileDownload({commit:r},e){r("setUpdateFileDownload",e)},async removeFileDownload({commit:r},e){r("setRemoveFileDownload",e)},async updateCurrentPathByRoot({commit:r},e){r("setCurrentPath",e)}},P0e={setReset(r){Object.assign(r,_9())},setResetRoot(r,e){const t=Object.keys(r.pathFiles).filter(s=>s===e||s.startsWith(`${e}/`));for(const s of t)b.delete(r.pathFiles,s);r.currentPaths[e]&&b.set(r.currentPaths,e,void 0)},setServerFilesGetDirectory(r,e){const{path:t,content:s}=e;b.set(r.pathFiles,t,s)},setServerFilesListRoot(r,e){const{root:t,files:s}=e;b.set(r.rootFiles,t,s)},setFileUpdate(r,e){const{paths:t,file:s}=e,n=r.pathFiles[t.rootPath];if(n){const i=n.files.findIndex(l=>l.filename===t.filename),a=n.files[i];he.FILTERED_FILES_PREFIX.some(l=>t.filename.startsWith(l))||he.FILTERED_FILES_EXTENSION.some(l=>t.filename.endsWith(l))||(i>=0?b.set(n.files,i,{...a,...s}):n.files.push(s))}},setItemDelete(r,e){const{paths:t}=e,s=r.pathFiles[t.rootPath];if(s){const n=s.files.findIndex(i=>i.filename===t.filename);if(n>=0)s.files.splice(n,1);else{const i=s.dirs.findIndex(a=>a.dirname===t.filename);i>=0&&s.dirs.splice(i,1)}}},setPathDelete(r,e){const{path:t}=e,s=Object.keys(r.pathFiles).filter(n=>n===t||n.startsWith(`${t}/`));for(const n of s)b.delete(r.pathFiles,n)},setUpdateFileUpload(r,e){const t=r.uploads.findIndex(s=>s.filepath===e.filepath);t>=0?b.set(r.uploads,t,{...r.uploads[t],...e}):r.uploads.push(e)},setRemoveFileUpload(r,e){const t=r.uploads.findIndex(s=>s.filepath===e);t>=0&&r.uploads.splice(t,1)},setUpdateFileDownload(r,e){r.download={...r.download,...e}},setRemoveFileDownload(r){r.download=null},setCurrentPath(r,e){b.set(r.currentPaths,e.root,e.path)},setDiskUsage(r,e){b.set(r,"disk_usage",e)}},L0e=!0,A0e={namespaced:L0e,state:w0e,getters:x0e,actions:C0e,mutations:P0e},E0e={getLayoutConfigById:r=>(e,t)=>{let s;for(const n in r.layouts[e]){if(s)break;s=r.layouts[e][n].find(a=>a.id===t)}return s},getLayout:r=>e=>{if(r.layouts[e])return Cv(r.layouts[e]);if(e.startsWith("dashboard"))return Cv(r.layouts.dashboard)},isEnabledInLayout:(r,e)=>(t,s)=>{var i;return((i=Object.values(e.getLayout(t)??{}).flat().find(a=>a.id===s))==null?void 0:i.enabled)??!1},isEnabledInCurrentLayout:(r,e)=>t=>{const s=e.getSpecificLayoutName;return e.isEnabledInLayout(s,t)},getContainer:r=>(e,t)=>{if(r.layouts[e][t])return[...r.layouts[e][t]]},getConfig:(r,e)=>(t,s)=>{const n=e.getLayout(t);if(n)for(const i in n){const a=n[i].find(o=>o.id===s);if(a)return{...a}}},getSpecificLayoutName:(r,e,t,s)=>{const n=s["auth/getCurrentUser"];return n?`dashboard-${vl.framework.breakpoint.name}-${n.username}`:"dashboard"}},O0e={async reset({commit:r}){r("setReset")},async initLayout({commit:r},e){r("setInitLayout",e)},async onLayoutChange({commit:r,state:e},t){(e.layouts[t.name]||t.name.startsWith("dashboard"))&&(r("setLayoutChange",t),await F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.layout.name+".layouts",e.layouts))},async onUpdateConfig({commit:r,state:e,dispatch:t},s){let n=e.layouts[s.name];if(n||(t("onLayoutChange",{name:s.name,value:e.layouts.dashboard}),n=e.layouts[s.name]),n)for(const i in n){const a=n[i].findIndex(o=>o.id===s.value.id);a>=0&&(r("setUpdateConfig",{name:s.name,container:i,i:a,value:s.value}),await F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.layout.name+`.layouts.${s.name}.${i}`,e.layouts[s.name][i]))}}},T0e={setReset(r){Object.assign(r,Ba())},setInitLayout(r,e){if(e&&Object.keys(e).length>0){const t=Ba();for(const[n,i]of Object.entries(t.layouts))e.layouts[n]||(e.layouts[n]=i);const s=["dashboard"];for(const[n,i]of Object.entries(e.layouts)){for(const[o,l]of Object.entries(i))i[o]=l.filter(c=>c!=null);const a=s.find(o=>n.startsWith(o));if(a){const o=t.layouts[a],l=Object.values(o).flat().map(u=>u.id),c=Object.values(i).flat().map(u=>u.id);for(const[u,d]of Object.entries(o)){const p=i[u]||[];i[u]=[...p.filter(h=>l.includes(h.id)),...d.filter(h=>!c.includes(h.id))]}}if(n.startsWith("diagnostics")){const o=i;for(const l of Object.values(o))for(const c of l)for(const u of c.axes)for(const d of u.metrics)d.style.fillColor=d.style.fillColor??null}}Object.assign(r,e)}},setLayoutChange(r,e){b.set(r.layouts,e.name,e.value)},setUpdateConfig(r,e){b.set(r.layouts[e.name][e.container],e.i,e.value)}},k0e=!0,D0e={namespaced:k0e,state:Nce,getters:E0e,actions:O0e,mutations:T0e},y0=()=>({ready:!1,chart:[],selectedLegends:{}}),M0e=y0(),R0e={getChartData:r=>r.chart,getSelectedLegends:r=>r.selectedLegends,getChartRetention:(r,e,t,s)=>{var i,a;const n=s["server/getConfig"];return((i=n.data_store)==null?void 0:i.temperature_store_size)??((a=n.server)==null?void 0:a.temperature_store_size)??he.CHART_HISTORY_RETENTION},getBaseChartOptions:(r,e,t)=>(s={})=>{const n=t.config.uiSettings.theme.isDark,i=vl.framework.breakpoint.mobile,a=n?"rgba(255,255,255,0.65)":"rgba(0,0,0,0.45)",o=i?13:14,l={color:n?"#ffffff":"#000000",opacity:.05},c={color:n?"#ffffff":"#000000",opacity:.5},u={show:!0,borderWidth:1,borderColor:n?"rgba(255,255,255,0.25)":"rgba(0,0,0,0.15)"},d={backgroundColor:n?"rgba(15,15,15,0.75)":"rgba(255,255,255,0.75)",borderColor:n?"rgba(0,0,0,0.85)":"rgba(255,255,255,0.85)",textStyle:{color:a,fontSize:o}},p=vl.framework.theme.currentTheme;return{color:[p.primary,p.accent,p.info],grid:u,textStyle:{fontFamily:"Roboto"},tooltip:{...d,show:!0,trigger:"axis",position:["-8px","-8px"],formatter:m=>{let g=!1,v="<div>";return m.forEach(y=>{const C=y.dimensionNames[y.encode.x],x=y.dimensionNames[y.encode.y],S=s[x]||"";C&&x&&y.seriesName&&(g||(v+=`
<span style="font-size:${o}px;color:${a};font-weight:400;margin-left:2px">
${b.$filters.formatTimeWithSeconds(y.value[C])}
</span>
`,g=!0),v+=`
<div style="white-space: nowrap;">
${y.marker}
<span style="font-size:${o}px;color:${a};font-weight:400;margin-left:2px">
${b.$filters.prettyCase(y.seriesName)}:
</span>
<span style="float:right;margin-left:20px;font-size:${o}px;color:${a};font-weight:900">
${y.value[x]}${S}
</span>
<div style="clear: both"></div>
</div>
<div style="clear: both"></div>
`)}),v+="</div>",v}},xAxis:{type:"time",boundaryGap:!1,min:m=>m.max-600*1e3,max:"dataMax",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1,formatter:"{value}%"},splitLine:{show:!0,lineStyle:l},axisPointer:{lineStyle:c}},yAxis:{type:"value",min:0,max:m=>m.max<=100?100:m.max,axisLabel:{show:!1,formatter:"{value}%"},splitLine:{show:!0,lineStyle:l}}}},getBaseSeries:()=>r=>({type:"line",smooth:!0,animation:!1,showSymbol:!1,symbol:"emptyCircle",areaStyle:{type:"solid",opacity:.3},lineStyle:{type:"solid",width:1.5,opacity:1},emphasis:{lineStyle:{width:1.5}},...r})},I0e={async reset({commit:r}){r("setReset")},async initTempStore({commit:r,rootGetters:e,rootState:t},s){const n=new Date,i=e["charts/getChartRetention"],a=["temperature_probe","temperature_sensor"];if(s&&Object.keys(s).length===0){r("setChartStore",[]);return}for(const c in s)a.some(u=>c.startsWith(u))&&delete s[c].targets,["temperatures","targets","powers","speeds"].forEach(u=>{const d=s[c][u];if(d&&d.length)if(d.length<i){const p=i-d.length,h=d[0];s[c][u]=[...Array.from({length:p},()=>h),...d]}else s[c][u]=d.splice(d.length-i)});const o=Object.keys(s),l=[];for(let c=0;c<i;c++){const d={date:new Date(n.getTime()-1e3*(i-c)-2e3)};o.forEach(p=>{t.printer.printer[p]&&(d[p]=s[p].temperatures[c],"targets"in s[p]&&(d[`${p}Target`]=s[p].targets[c]),"powers"in s[p]&&(d[`${p}Power`]=s[p].powers[c]),"speeds"in s[p]&&(d[`${p}Speed`]=s[p].speeds[c]))}),l.push(d)}r("setChartStore",l)},initCharts({commit:r},e){r("setInitCharts",e)},saveSelectedLegends({commit:r,state:e},t){wV(e.selectedLegends,t)||(r("setSelectedLegends",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.charts.name+".selectedLegends",t))}},F0e={setReset(r){const e=y0();Object.keys(r).forEach(t=>{Object.keys(e).includes(t)||delete r[t]}),Object.assign(r,y0())},setInitCharts(r,e){e&&Object.assign(r,e)},setChartStore(r,e){r.chart=e,r.ready=!0},setChartEntry(r,e){r[e.type]||b.set(r,e.type,[]),r[e.type].push(e.data);const t=r[e.type].findIndex(s=>(Date.now()-s.date.valueOf())/1e3<e.retention);t>0&&r[e.type].splice(0,t)},setSelectedLegends(r,e){r.selectedLegends=e}},H0e=!0,B0e={namespaced:H0e,state:M0e,getters:R0e,actions:I0e,mutations:F0e},b0=()=>({consoleCommand:"",consoleEntryCount:0,console:[],gcodeHelp:{},commandHistory:[],autoScroll:!0,lastCleared:0,promptDialog:{open:!1,items:[],footerButtons:[]},consoleFilters:[],consoleFiltersRegexp:[]}),j0e=b0(),V0e=/^(?:ok\s+)?(b|t\d+):\d+\.\d+ \/\d+\.+\d+/i,N0e={getConsoleEntries:(r,e,t)=>{const s=t.config.uiSettings.general.hideTempWaits||!0;return r.console.filter(i=>(!i.time||i.time*1e3>r.lastCleared)&&(!s||!V0e.test(i.message))&&!r.consoleFilters.some((a,o)=>a.enabled&&r.consoleFiltersRegexp[o].test(i.message)))},getFilters:r=>r.consoleFilters,getAllKnownCommands:r=>({TESTZ:"",ABORT:"",ACCEPT:"",ADJUSTED:"",...r.gcodeHelp})};/*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */const{entries:y9,setPrototypeOf:U5,isFrozen:z0e,getPrototypeOf:U0e,getOwnPropertyDescriptor:W0e}=Object;let{freeze:Ar,seal:Ls,create:b9}=Object,{apply:$0,construct:S0}=typeof Reflect<"u"&&Reflect;Ar||(Ar=function(e){return e});Ls||(Ls=function(e){return e});$0||($0=function(e,t,s){return e.apply(t,s)});S0||(S0=function(e,t){return new e(...t)});const kp=ds(Array.prototype.forEach),W5=ds(Array.prototype.pop),vc=ds(Array.prototype.push),sh=ds(String.prototype.toLowerCase),Eg=ds(String.prototype.toString),G5=ds(String.prototype.match),_c=ds(String.prototype.replace),G0e=ds(String.prototype.indexOf),q0e=ds(String.prototype.trim),Fs=ds(Object.prototype.hasOwnProperty),br=ds(RegExp.prototype.test),yc=Z0e(TypeError);function ds(r){return function(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n<t;n++)s[n-1]=arguments[n];return $0(r,e,s)}}function Z0e(r){return function(){for(var e=arguments.length,t=new Array(e),s=0;s<e;s++)t[s]=arguments[s];return S0(r,t)}}function Ge(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:sh;U5&&U5(r,null);let s=e.length;for(;s--;){let n=e[s];if(typeof n=="string"){const i=t(n);i!==n&&(z0e(e)||(e[s]=i),n=i)}r[n]=!0}return r}function Y0e(r){for(let e=0;e<r.length;e++)Fs(r,e)||(r[e]=null);return r}function na(r){const e=b9(null);for(const[t,s]of y9(r))Fs(r,t)&&(Array.isArray(s)?e[t]=Y0e(s):s&&typeof s=="object"&&s.constructor===Object?e[t]=na(s):e[t]=s);return e}function bc(r,e){for(;r!==null;){const s=W0e(r,e);if(s){if(s.get)return ds(s.get);if(typeof s.value=="function")return ds(s.value)}r=U0e(r)}function t(){return null}return t}const q5=Ar(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Og=Ar(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Tg=Ar(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),K0e=Ar(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),kg=Ar(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),X0e=Ar(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Z5=Ar(["#text"]),Y5=Ar(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Dg=Ar(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),K5=Ar(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dp=Ar(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Q0e=Ls(/\{\{[\w\W]*|[\w\W]*\}\}/gm),J0e=Ls(/<%[\w\W]*|[\w\W]*%>/gm),eye=Ls(/\${[\w\W]*}/gm),tye=Ls(/^data-[\-\w.\u00B7-\uFFFF]/),rye=Ls(/^aria-[\-\w]+$/),$9=Ls(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sye=Ls(/^(?:\w+script|data):/i),nye=Ls(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),S9=Ls(/^html$/i),iye=Ls(/^[a-z][.\w]*(-[.\w]+)+$/i);var X5=Object.freeze({__proto__:null,MUSTACHE_EXPR:Q0e,ERB_EXPR:J0e,TMPLIT_EXPR:eye,DATA_ATTR:tye,ARIA_ATTR:rye,IS_ALLOWED_URI:$9,IS_SCRIPT_OR_DATA:sye,ATTR_WHITESPACE:nye,DOCTYPE_NAME:S9,CUSTOM_ELEMENT:iye});const $c={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},aye=function(){return typeof window>"u"?null:window},oye=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(s=t.getAttribute(n));const i="dompurify"+(s?"#"+s:"");try{return e.createPolicy(i,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}};function w9(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:aye();const e=Se=>w9(Se);if(e.version="3.1.6",e.removed=[],!r||!r.document||r.document.nodeType!==$c.document)return e.isSupported=!1,e;let{document:t}=r;const s=t,n=s.currentScript,{DocumentFragment:i,HTMLTemplateElement:a,Node:o,Element:l,NodeFilter:c,NamedNodeMap:u=r.NamedNodeMap||r.MozNamedAttrMap,HTMLFormElement:d,DOMParser:p,trustedTypes:h}=r,m=l.prototype,g=bc(m,"cloneNode"),v=bc(m,"remove"),y=bc(m,"nextSibling"),C=bc(m,"childNodes"),x=bc(m,"parentNode");if(typeof a=="function"){const Se=t.createElement("template");Se.content&&Se.content.ownerDocument&&(t=Se.content.ownerDocument)}let S,E="";const{implementation:G,createNodeIterator:K,createDocumentFragment:le,getElementsByTagName:ue}=t,{importNode:ie}=s;let fe={};e.isSupported=typeof y9=="function"&&typeof x=="function"&&G&&G.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:k,ERB_EXPR:T,TMPLIT_EXPR:P,DATA_ATTR:O,ARIA_ATTR:j,IS_SCRIPT_OR_DATA:V,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:N}=X5;let{IS_ALLOWED_URI:J}=X5,Q=null;const q=Ge({},[...q5,...Og,...Tg,...kg,...Z5]);let Y=null;const re=Ge({},[...Y5,...Dg,...K5,...Dp]);let se=Object.seal(b9(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),_e=null,Re=null,wt=!0,Or=!0,Os=!1,zd=!0,ei=!1,Yl=!0,An=!1,Kl=!1,Xl=!1,ti=!1,co=!1,uo=!1,Ud=!0,Wd=!1;const Ql="user-content-";let po=!0,En=!1,On={},ri=null;const Gd=Ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ho=null;const Jl=Ge({},["audio","video","img","source","image","track"]);let si=null;const qd=Ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fo="http://www.w3.org/1998/Math/MathML",Ts="http://www.w3.org/2000/svg",ks="http://www.w3.org/1999/xhtml";let ni=ks,mo=!1,go=null;const k1=Ge({},[fo,Ts,ks],Eg);let Gi=null;const Zd=["application/xhtml+xml","text/html"],D1="text/html";let Rt=null,ii=null;const M1=t.createElement("form"),Yd=function(D){return D instanceof RegExp||D instanceof Function},vo=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ii&&ii===D)){if((!D||typeof D!="object")&&(D={}),D=na(D),Gi=Zd.indexOf(D.PARSER_MEDIA_TYPE)===-1?D1:D.PARSER_MEDIA_TYPE,Rt=Gi==="application/xhtml+xml"?Eg:sh,Q=Fs(D,"ALLOWED_TAGS")?Ge({},D.ALLOWED_TAGS,Rt):q,Y=Fs(D,"ALLOWED_ATTR")?Ge({},D.ALLOWED_ATTR,Rt):re,go=Fs(D,"ALLOWED_NAMESPACES")?Ge({},D.ALLOWED_NAMESPACES,Eg):k1,si=Fs(D,"ADD_URI_SAFE_ATTR")?Ge(na(qd),D.ADD_URI_SAFE_ATTR,Rt):qd,ho=Fs(D,"ADD_DATA_URI_TAGS")?Ge(na(Jl),D.ADD_DATA_URI_TAGS,Rt):Jl,ri=Fs(D,"FORBID_CONTENTS")?Ge({},D.FORBID_CONTENTS,Rt):Gd,_e=Fs(D,"FORBID_TAGS")?Ge({},D.FORBID_TAGS,Rt):{},Re=Fs(D,"FORBID_ATTR")?Ge({},D.FORBID_ATTR,Rt):{},On=Fs(D,"USE_PROFILES")?D.USE_PROFILES:!1,wt=D.ALLOW_ARIA_ATTR!==!1,Or=D.ALLOW_DATA_ATTR!==!1,Os=D.ALLOW_UNKNOWN_PROTOCOLS||!1,zd=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ei=D.SAFE_FOR_TEMPLATES||!1,Yl=D.SAFE_FOR_XML!==!1,An=D.WHOLE_DOCUMENT||!1,ti=D.RETURN_DOM||!1,co=D.RETURN_DOM_FRAGMENT||!1,uo=D.RETURN_TRUSTED_TYPE||!1,Xl=D.FORCE_BODY||!1,Ud=D.SANITIZE_DOM!==!1,Wd=D.SANITIZE_NAMED_PROPS||!1,po=D.KEEP_CONTENT!==!1,En=D.IN_PLACE||!1,J=D.ALLOWED_URI_REGEXP||$9,ni=D.NAMESPACE||ks,se=D.CUSTOM_ELEMENT_HANDLING||{},D.CUSTOM_ELEMENT_HANDLING&&Yd(D.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(se.tagNameCheck=D.CUSTOM_ELEMENT_HANDLING.tagNameCheck),D.CUSTOM_ELEMENT_HANDLING&&Yd(D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(se.attributeNameCheck=D.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),D.CUSTOM_ELEMENT_HANDLING&&typeof D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(se.allowCustomizedBuiltInElements=D.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ei&&(Or=!1),co&&(ti=!0),On&&(Q=Ge({},Z5),Y=[],On.html===!0&&(Ge(Q,q5),Ge(Y,Y5)),On.svg===!0&&(Ge(Q,Og),Ge(Y,Dg),Ge(Y,Dp)),On.svgFilters===!0&&(Ge(Q,Tg),Ge(Y,Dg),Ge(Y,Dp)),On.mathMl===!0&&(Ge(Q,kg),Ge(Y,K5),Ge(Y,Dp))),D.ADD_TAGS&&(Q===q&&(Q=na(Q)),Ge(Q,D.ADD_TAGS,Rt)),D.ADD_ATTR&&(Y===re&&(Y=na(Y)),Ge(Y,D.ADD_ATTR,Rt)),D.ADD_URI_SAFE_ATTR&&Ge(si,D.ADD_URI_SAFE_ATTR,Rt),D.FORBID_CONTENTS&&(ri===Gd&&(ri=na(ri)),Ge(ri,D.FORBID_CONTENTS,Rt)),po&&(Q["#text"]=!0),An&&Ge(Q,["html","head","body"]),Q.table&&(Ge(Q,["tbody"]),delete _e.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw yc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');S=D.TRUSTED_TYPES_POLICY,E=S.createHTML("")}else S===void 0&&(S=oye(h,n)),S!==null&&typeof E=="string"&&(E=S.createHTML(""));Ar&&Ar(D),ii=D}},ec=Ge({},["mi","mo","mn","ms","mtext"]),ai=Ge({},["foreignobject","annotation-xml"]),Kd=Ge({},["title","style","font","a","script"]),qi=Ge({},[...Og,...Tg,...K0e]),tc=Ge({},[...kg,...X0e]),Xd=function(D){let oe=x(D);(!oe||!oe.tagName)&&(oe={namespaceURI:ni,tagName:"template"});const $e=sh(D.tagName),Qe=sh(oe.tagName);return go[D.namespaceURI]?D.namespaceURI===Ts?oe.namespaceURI===ks?$e==="svg":oe.namespaceURI===fo?$e==="svg"&&(Qe==="annotation-xml"||ec[Qe]):!!qi[$e]:D.namespaceURI===fo?oe.namespaceURI===ks?$e==="math":oe.namespaceURI===Ts?$e==="math"&&ai[Qe]:!!tc[$e]:D.namespaceURI===ks?oe.namespaceURI===Ts&&!ai[Qe]||oe.namespaceURI===fo&&!ec[Qe]?!1:!tc[$e]&&(Kd[$e]||!qi[$e]):!!(Gi==="application/xhtml+xml"&&go[D.namespaceURI]):!1},Zr=function(D){vc(e.removed,{element:D});try{x(D).removeChild(D)}catch{v(D)}},Zi=function(D,oe){try{vc(e.removed,{attribute:oe.getAttributeNode(D),from:oe})}catch{vc(e.removed,{attribute:null,from:oe})}if(oe.removeAttribute(D),D==="is"&&!Y[D])if(ti||co)try{Zr(oe)}catch{}else try{oe.setAttribute(D,"")}catch{}},rc=function(D){let oe=null,$e=null;if(Xl)D="<remove></remove>"+D;else{const ee=G5(D,/^[\r\n\t ]+/);$e=ee&&ee[0]}Gi==="application/xhtml+xml"&&ni===ks&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const Qe=S?S.createHTML(D):D;if(ni===ks)try{oe=new p().parseFromString(Qe,Gi)}catch{}if(!oe||!oe.documentElement){oe=G.createDocument(ni,"template",null);try{oe.documentElement.innerHTML=mo?E:Qe}catch{}}const H=oe.body||oe.documentElement;return D&&$e&&H.insertBefore(t.createTextNode($e),H.childNodes[0]||null),ni===ks?ue.call(oe,An?"html":"body")[0]:An?oe.documentElement:H},sc=function(D){return K.call(D.ownerDocument||D,D,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},nc=function(D){return D instanceof d&&(typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||!(D.attributes instanceof u)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function")},ic=function(D){return typeof o=="function"&&D instanceof o},Wt=function(D,oe,$e){fe[D]&&kp(fe[D],Qe=>{Qe.call(e,oe,$e,ii)})},Yi=function(D){let oe=null;if(Wt("beforeSanitizeElements",D,null),nc(D))return Zr(D),!0;const $e=Rt(D.nodeName);if(Wt("uponSanitizeElement",D,{tagName:$e,allowedTags:Q}),D.hasChildNodes()&&!ic(D.firstElementChild)&&br(/<[/\w]/g,D.innerHTML)&&br(/<[/\w]/g,D.textContent)||D.nodeType===$c.progressingInstruction||Yl&&D.nodeType===$c.comment&&br(/<[/\w]/g,D.data))return Zr(D),!0;if(!Q[$e]||_e[$e]){if(!_e[$e]&&oi($e)&&(se.tagNameCheck instanceof RegExp&&br(se.tagNameCheck,$e)||se.tagNameCheck instanceof Function&&se.tagNameCheck($e)))return!1;if(po&&!ri[$e]){const Qe=x(D)||D.parentNode,H=C(D)||D.childNodes;if(H&&Qe){const ee=H.length;for(let ne=ee-1;ne>=0;--ne){const de=g(H[ne],!0);de.__removalCount=(D.__removalCount||0)+1,Qe.insertBefore(de,y(D))}}}return Zr(D),!0}return D instanceof l&&!Xd(D)||($e==="noscript"||$e==="noembed"||$e==="noframes")&&br(/<\/no(script|embed|frames)/i,D.innerHTML)?(Zr(D),!0):(ei&&D.nodeType===$c.text&&(oe=D.textContent,kp([k,T,P],Qe=>{oe=_c(oe,Qe," ")}),D.textContent!==oe&&(vc(e.removed,{element:D.cloneNode()}),D.textContent=oe)),Wt("afterSanitizeElements",D,null),!1)},Qd=function(D,oe,$e){if(Ud&&(oe==="id"||oe==="name")&&($e in t||$e in M1))return!1;if(!(Or&&!Re[oe]&&br(O,oe))){if(!(wt&&br(j,oe))){if(!Y[oe]||Re[oe]){if(!(oi(D)&&(se.tagNameCheck instanceof RegExp&&br(se.tagNameCheck,D)||se.tagNameCheck instanceof Function&&se.tagNameCheck(D))&&(se.attributeNameCheck instanceof RegExp&&br(se.attributeNameCheck,oe)||se.attributeNameCheck instanceof Function&&se.attributeNameCheck(oe))||oe==="is"&&se.allowCustomizedBuiltInElements&&(se.tagNameCheck instanceof RegExp&&br(se.tagNameCheck,$e)||se.tagNameCheck instanceof Function&&se.tagNameCheck($e))))return!1}else if(!si[oe]){if(!br(J,_c($e,U,""))){if(!((oe==="src"||oe==="xlink:href"||oe==="href")&&D!=="script"&&G0e($e,"data:")===0&&ho[D])){if(!(Os&&!br(V,_c($e,U,"")))){if($e)return!1}}}}}}return!0},oi=function(D){return D!=="annotation-xml"&&G5(D,N)},Ki=function(D){Wt("beforeSanitizeAttributes",D,null);const{attributes:oe}=D;if(!oe)return;const $e={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Y};let Qe=oe.length;for(;Qe--;){const H=oe[Qe],{name:ee,namespaceURI:ne,value:de}=H,Ue=Rt(ee);let Ve=ee==="value"?de:q0e(de);if($e.attrName=Ue,$e.attrValue=Ve,$e.keepAttr=!0,$e.forceKeepAttr=void 0,Wt("uponSanitizeAttribute",D,$e),Ve=$e.attrValue,Yl&&br(/((--!?|])>)|<\/(style|title)/i,Ve)){Zi(ee,D);continue}if($e.forceKeepAttr||(Zi(ee,D),!$e.keepAttr))continue;if(!zd&&br(/\/>/i,Ve)){Zi(ee,D);continue}ei&&kp([k,T,P],Bt=>{Ve=_c(Ve,Bt," ")});const it=Rt(D.nodeName);if(Qd(it,Ue,Ve)){if(Wd&&(Ue==="id"||Ue==="name")&&(Zi(ee,D),Ve=Ql+Ve),S&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!ne)switch(h.getAttributeType(it,Ue)){case"TrustedHTML":{Ve=S.createHTML(Ve);break}case"TrustedScriptURL":{Ve=S.createScriptURL(Ve);break}}try{ne?D.setAttributeNS(ne,ee,Ve):D.setAttribute(ee,Ve),nc(D)?Zr(D):W5(e.removed)}catch{}}}Wt("afterSanitizeAttributes",D,null)},_o=function Se(D){let oe=null;const $e=sc(D);for(Wt("beforeSanitizeShadowDOM",D,null);oe=$e.nextNode();)Wt("uponSanitizeShadowNode",oe,null),!Yi(oe)&&(oe.content instanceof i&&Se(oe.content),Ki(oe));Wt("afterSanitizeShadowDOM",D,null)};return e.sanitize=function(Se){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},oe=null,$e=null,Qe=null,H=null;if(mo=!Se,mo&&(Se="<!-->"),typeof Se!="string"&&!ic(Se))if(typeof Se.toString=="function"){if(Se=Se.toString(),typeof Se!="string")throw yc("dirty is not a string, aborting")}else throw yc("toString is not a function");if(!e.isSupported)return Se;if(Kl||vo(D),e.removed=[],typeof Se=="string"&&(En=!1),En){if(Se.nodeName){const de=Rt(Se.nodeName);if(!Q[de]||_e[de])throw yc("root node is forbidden and cannot be sanitized in-place")}}else if(Se instanceof o)oe=rc("<!---->"),$e=oe.ownerDocument.importNode(Se,!0),$e.nodeType===$c.element&&$e.nodeName==="BODY"||$e.nodeName==="HTML"?oe=$e:oe.appendChild($e);else{if(!ti&&!ei&&!An&&Se.indexOf("<")===-1)return S&&uo?S.createHTML(Se):Se;if(oe=rc(Se),!oe)return ti?null:uo?E:""}oe&&Xl&&Zr(oe.firstChild);const ee=sc(En?Se:oe);for(;Qe=ee.nextNode();)Yi(Qe)||(Qe.content instanceof i&&_o(Qe.content),Ki(Qe));if(En)return Se;if(ti){if(co)for(H=le.call(oe.ownerDocument);oe.firstChild;)H.appendChild(oe.firstChild);else H=oe;return(Y.shadowroot||Y.shadowrootmode)&&(H=ie.call(s,H,!0)),H}let ne=An?oe.outerHTML:oe.innerHTML;return An&&Q["!doctype"]&&oe.ownerDocument&&oe.ownerDocument.doctype&&oe.ownerDocument.doctype.name&&br(S9,oe.ownerDocument.doctype.name)&&(ne="<!DOCTYPE "+oe.ownerDocument.doctype.name+`>
`+ne),ei&&kp([k,T,P],de=>{ne=_c(ne,de," ")}),S&&uo?S.createHTML(ne):ne},e.setConfig=function(){let Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};vo(Se),Kl=!0},e.clearConfig=function(){ii=null,Kl=!1},e.isValidAttribute=function(Se,D,oe){ii||vo({});const $e=Rt(Se),Qe=Rt(D);return Qd($e,Qe,oe)},e.addHook=function(Se,D){typeof D=="function"&&(fe[Se]=fe[Se]||[],vc(fe[Se],D))},e.removeHook=function(Se){if(fe[Se])return W5(fe[Se])},e.removeHooks=function(Se){fe[Se]&&(fe[Se]=[])},e.removeAllHooks=function(){fe={}},e}var Q5=w9();const lye={async reset({commit:r}){r("setReset")},async initConsole({commit:r},e){r("setInitConsole",e)},async onUpdateCommandHistory({state:r,commit:e},t){e("setUpdateCommandHistory",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".commandHistory",r.commandHistory)},async onGcodeScript({dispatch:r},e){e&&e.result&&e.result!=="ok"&&r("onAddConsoleEntry",{message:he.CONSOLE_RECEIVE_PREFIX+e.result})},async onAddConsoleEntry({commit:r,dispatch:e},t){t.message=Q5.sanitize(t.message).replace(/(?:\r\n|\r|\n)/g,"<br />"),(!t.time||t.time<=0)&&(t.time=Date.now()/1e3|0),t.type||(t.type="response"),t.type==="response"&&t.message.startsWith("// action:")&&(t.type="action"),r("setConsoleEntry",t),e("onUpdatePromptDialog",t)},async onGcodeStore({commit:r,dispatch:e},t){if(t&&t.gcode_store){const s=t.gcode_store.map((o,l)=>(o.message=he.CONSOLE_RECEIVE_PREFIX+o.message,o.message=Q5.sanitize(o.message).replace(/(?:\r\n|\r|\n)/g,"<br />"),o.id=l,o.type==="response"&&o.message.startsWith("// action:")&&(o.type="action"),o));r("setAllEntries",s);const n=s.filter(o=>o.type==="action"&&o.message.startsWith("// action:prompt_")),i=Av(n,o=>o.message!=="// action:prompt_end");Av(i,o=>o.message!=="// action:prompt_begin").forEach(o=>e("onUpdatePromptDialog",o))}},async onUpdatePromptDialog({commit:r},e){const t=e.type==="action"&&/^\/\/ action:prompt_([^ ]+)(?: (.+))?/.exec(e.message);if(t){const[,s,n]=t;switch(s){case"begin":r("setResetPromptDialog",n);break;case"text":{r("setPromptDialogItem",{type:"text",text:n});break}case"button":{const[i,a,o]=n.split("|");r("setPromptDialogItem",{type:"button",text:i,command:a,color:o});break}case"footer_button":{const[i,a,o]=n.split("|");r("setPromptDialogFooterButton",{text:i,command:a,color:o});break}case"show":case"end":r("setPromptDialogOpen",s==="show")}}},async onGcodeHelp({commit:r},e){r("setGcodeHelp",e)},async onUpdateAutoScroll({commit:r},e){r("setAutoScroll",e),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".autoScroll",e)},async onRemoveFilter({commit:r,state:e},t){r("setRemoveFilter",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".consoleFilters",e.consoleFilters)},async onSaveFilter({commit:r,state:e},t){r("setFilter",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".consoleFilters",e.consoleFilters)},async onClear({commit:r,state:e}){r("setLastCleared"),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.console.name+".lastCleared",e.lastCleared)}},J5=r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),Mg=r=>{switch(r.type){case"starts-with":return new RegExp(`^${J5(r.value)}.*`,"i");case"expression":return new RegExp(r.value);default:return new RegExp(`.*${J5(r.value)}.*`,"i")}},cye={setReset(r){Object.assign(r,b0())},setConsoleEntry(r,e){for(e.id===void 0&&(r.consoleEntryCount++,e.id=r.consoleEntryCount);r.console.length>=he.CONSOLE_HISTORY_RETENTION;)r.console.shift();r.console.push(e)},setAllEntries(r,e){r.consoleEntryCount=e.length,r.console=e},setResetPromptDialog(r,e){const{promptDialog:t}=b0();Object.assign(r,{promptDialog:{...t,title:e}})},setPromptDialogItem(r,e){r.promptDialog.items.push(e)},setPromptDialogFooterButton(r,e){r.promptDialog.footerButtons.push(e)},setPromptDialogOpen(r,e){r.promptDialog.open=e},setGcodeHelp(r,e){b.set(r,"gcodeHelp",e)},setInitConsole(r,e){e&&(e.consoleFilters&&(e.consoleFiltersRegexp=e.consoleFilters.map(t=>{if(typeof t.type=="number")switch(t.type){case 1:t.type="starts-with";break;case 2:t.type="expression";break;default:t.type="contains"}return Mg(t)})),Object.assign(r,e))},setUpdateCommandHistory(r,e){e&&(r.commandHistory=[...e])},setConsoleCommand(r,e){r.consoleCommand=e},setAutoScroll(r,e){r.autoScroll=e},setFilter(r,e){if(e.id){const t=r.consoleFilters.findIndex(s=>s.id===e.id);if(t>=0){const{type:s,value:n}=r.consoleFilters[t];b.set(r.consoleFilters,t,e),(s!==e.type||n!==e.value)&&b.set(r.consoleFiltersRegexp,t,Mg(e))}}else e.id=jl(),r.consoleFilters.push(e),r.consoleFiltersRegexp.push(Mg(e))},setRemoveFilter(r,e){const t=r.consoleFilters.findIndex(s=>s.id===e.id);t>=0&&(r.consoleFilters.splice(t,1),r.consoleFiltersRegexp.splice(t,1))},setLastCleared(r){b.set(r,"lastCleared",Date.now())}},uye=!0,dye={namespaced:uye,state:j0e,getters:N0e,actions:lye,mutations:cye},x9=()=>({stored:[],categories:[],expanded:[0]}),pye=x9(),C9={alias:"",visible:!0,disabledWhilePrinting:!1,color:"",categoryId:"0",order:void 0},hye={getMacros:(r,e,t)=>Object.keys(t.printer.printer).filter(n=>/^gcode_macro (?!_)/.test(n)).map(n=>{const i=n.toLocaleLowerCase(),a=i.split(" ",2)[1],o=t.printer.printer.configfile.settings[i],l=r.stored.find(d=>d.name===a),c=t.printer.printer[n],u={...C9,name:a,...l,variables:c,config:o};if(l!=null&&l.categoryId){const d=r.categories.find(p=>p.id===l.categoryId);d?u.category=d:u.categoryId="0"}return u}),getMacroByName:(r,e)=>(...t)=>{const s=e.getMacros;for(const n of t){const i=s.find(a=>a.name===n);if(i)return i}},getVisibleMacros:(r,e)=>{const t={id:"0",name:null},s=[...r.categories,t],n=["autotune_shapers","bed_mesh_calibrate","beep","beep_off","beep_on","clear_nozzle","clear_nozzle_plr","detect_interruption","g31","g32","get_zoffset","log_z","m0","m4027","m4028","m4029","m4030","m4031","m8029","move_subzoffset","save_last_file","save_zoffset","set_zoffset","test_zoffset","z_vibrate","zoffset"];return s.map(({id:i,name:a})=>({id:i,name:a,macros:e.getMacrosByCategory(i).filter(o=>o.visible&&!n.includes(o.name))})).filter(i=>i.macros.length>0).sort((i,a)=>i.name?a.name?i.name.localeCompare(a.name):-1:1)},getMacrosByCategory:(r,e)=>t=>{const s=t||"0",n=e.getMacros,i=["autotune_shapers","bed_mesh_calibrate","beep","beep_off","beep_on","clear_nozzle","clear_nozzle_plr","detect_interruption","g31","g32","get_zoffset","log_z","m0","m4027","m4028","m4029","m4030","m4031","m8029","move_subzoffset","save_last_file","save_zoffset","set_zoffset","test_zoffset","z_vibrate","zoffset"];return n.filter(a=>a.categoryId===s&&!i.includes(a.name)).sort((a,o)=>a.order!==void 0&&o.order!==void 0&&a.order!==o.order?a.order-o.order:a.name.localeCompare(o.name))},getCategories:(r,e)=>r.categories.map(s=>{const{id:n,name:i}=s,a=e.getMacrosByCategory(n),o=a.length,l=a.filter(c=>c.visible).length;return{id:n,name:i,visible:l,count:o}}).sort((s,n)=>s.name.localeCompare(n.name))},fye={async reset({commit:r}){r("setReset")},initMacros({commit:r},e){r("initMacros",e)},saveMacro({state:r,commit:e},t){e("setUpdateMacro",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".stored",r.stored)},saveAllOrder({state:r,commit:e},t){t.forEach((s,n)=>{e("setUpdateMacro",{...s,order:n})}),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".stored",r.stored)},saveAllOn({state:r,commit:e},t){e("setUpdateAllVisible",{macros:t,visible:!0}),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".stored",r.stored)},saveAllOff({state:r,commit:e},t){e("setUpdateAllVisible",{macros:t,visible:!1}),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".stored",r.stored)},addCategory({commit:r,state:e},t){r("setAddCategory",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".categories",e.categories)},editCategory({commit:r,state:e},t){r("setEditCategory",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name,e)},removeCategory({commit:r,state:e},t){r("setRemoveCategory",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name,e)},saveExpanded({commit:r,state:e},t){r("setExpanded",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.macros.name+".expanded",e.expanded)}},Rg=r=>{for(const e in r)e==="name"||e in C9||delete r[e];return r},mye={setReset(r){Object.assign(r,x9())},initMacros(r,e){e&&e.categories&&typeof e.categories[0]=="string"&&(e.categories=[]),e&&Object.assign(r,e)},setUpdateMacro(r,e){const t=Rg({...e}),s=r.stored.findIndex(n=>n.name===e.name);s<0?r.stored.push(t):b.set(r.stored,s,t)},setUpdateAllVisible(r,e){e.macros.forEach(t=>{const s=r.stored.findIndex(i=>i.name===t.name),n=Rg({...t,visible:e.visible});s<0?r.stored.push(n):b.set(r.stored,s,n)})},setAddCategory(r,e){r.categories.push({id:jl(),name:e})},setEditCategory(r,e){const t=r.categories.findIndex(s=>s.id===e.id);b.set(r.categories,t,{id:e.id,name:e.name}),r.stored.forEach((s,n)=>{s.categoryId===e.id&&b.set(r.stored,n,{...s,categoryId:e.id})})},setRemoveCategory(r,e){const t=r.categories.findIndex(s=>s.id===e.id);t>=0&&(r.categories.splice(t,1),r.stored.forEach((s,n)=>{if(s.categoryId===e.id){const i=Rg({...s});delete i.categoryId,b.set(r.stored,n,i)}}))},setExpanded(r,e){b.set(r,"expanded",e)}},gye=!0,vye={namespaced:gye,state:pye,getters:hye,actions:fye,mutations:mye},P9=()=>({devices:[]}),_ye=P9(),yye={getDevices:r=>r.devices.filter(e=>!e.device.startsWith("_")),getDeviceByName:(r,e)=>t=>e.getDevices.find(n=>n.device===t)},bye={async reset({commit:r}){r("setReset")},async init(){F.machineDevicePowerDevices()},async onInit({commit:r},e){e.devices&&e.devices.length>0&&r("setDevices",e)},async onStatus({commit:r},e){r("setStatus",e)},async onToggle({commit:r},e){r("setStatus",e)}},$ye={setReset(r){Object.assign(r,P9())},setDevices(r,e){r.devices=e.devices},setStatus(r,e){for(const t in e){const s=r.devices.findIndex(n=>n.device===t);s>=0&&b.set(r.devices[s],"status",e[t])}}},Sye=!0,wye={namespaced:Sye,state:_ye,getters:yye,actions:bye,mutations:$ye},L9=()=>({count:0,jobs:[],job_totals:{total_jobs:0,total_time:0,total_print_time:0,total_filament_used:0,longest_job:0,longest_print:0}}),xye=L9(),Cye={getHistory:r=>r.jobs&&r.jobs.length?[...r.jobs].sort((e,t)=>t.start_time-e.start_time):[],getHistoryById:r=>e=>r.jobs.find(t=>t.job_id===e),getHistoryByFilename:r=>e=>r.jobs.find(t=>t.filename===e&&t.status==="completed"&&t.exists===!0),getUniqueHistory:(r,e)=>(t=3)=>{const s=[],n=e.getHistory;for(const i of n)if(i.exists&&(s.some(o=>i.filename===o.filename)||s.push(i),s.length===t))break;return s},getRollUp:r=>{const e=r.job_totals;return{...e,filament_avg:e.total_filament_used?e.total_filament_used/e.total_jobs:0,print_avg:e.total_print_time?e.total_print_time/e.total_jobs:0,total_avg:e.total_time?e.total_time/e.total_jobs:0}}},Pye={async reset({commit:r}){r("setReset")},async init(){F.serverHistoryList({limit:he.JOB_HISTORY_LOAD}),F.serverHistoryTotals()},async updateHistory({commit:r},e){e&&r("setUpdateHistory",e)},async clearHistoryThumbnails({commit:r},e){e&&r("setClearHistoryThumbnails",e)},async onHistoryTotals({commit:r},e){e&&r("setHistoryTotals",e)},async onHistoryList({commit:r},e){e&&r("setHistoryList",e)},async onHistoryChange({commit:r},e){F.serverHistoryTotals(),e&&(e.action==="added"&&r("setAddHistory",e.job),e.action==="finished"&&r("setUpdateHistory",e.job))},async onDelete({commit:r},e){r("setDeleteJob",e.deleted_jobs)}},Lye={setReset(r){Object.assign(r,L9())},setHistoryTotals(r,e){e&&b.set(r,"job_totals",e.job_totals)},setHistoryList(r,e){e.jobs!==void 0&&b.set(r,"jobs",e.jobs),e.count!==void 0&&b.set(r,"count",e.count)},setAddHistory(r,e){e&&(r.jobs.push(e),r.count++)},setUpdateHistory(r,e){if(e){const t=r.jobs.findIndex(s=>s.job_id===e.job_id);t>=0&&b.set(r.jobs,t,e)}},setClearHistoryThumbnails(r,e){if(e){const t=r.jobs.findIndex(s=>s.job_id===e);if(t>=0){const s=r.jobs[t];b.set(r.jobs,t,{...s,metadata:{...s.metadata,thumbnails:[]}})}}},setDeleteJob(r,e){e&&e.forEach(t=>{const s=r.jobs.findIndex(n=>n.job_id===t);s>=0&&r.jobs.splice(s,1)})}},Aye=!0,Eye={namespaced:Aye,state:xye,getters:Cye,actions:Pye,mutations:Lye},A9=()=>({busy:!1,github_limit_reset_time:0,github_rate_limit:0,github_requests_remaining:0,responses:[],version_info:{},fluidd:{version:"",hash:""}}),Oye=A9(),Tye={getVisibleComponents:r=>Object.keys(r.version_info).map(t=>{const s=r.version_info[t];return s.key=t,s}).sort((t,s)=>t.key.localeCompare(s.key)),hasUpdates:(r,e,t)=>t.config.uiSettings.general.enableVersionNotifications&&Object.keys(r.version_info).filter(n=>n!=="system").some(e.hasUpdate),hasUpdate:r=>e=>{const t=r.version_info[e];if("name"in t){const s=ys.valid(t.version),n=ys.valid(t.remote_version);if(s&&n)return ys.gt(n,s)}else if("package_count"in t)return t.package_count>0;return"current_hash"in t&&"remote_hash"in t?t.current_hash!==t.remote_hash:!1},getResponses:r=>[...r.responses],getCommitHistory:r=>e=>{const t=r.version_info[e];if(t&&"git_messages"in t){const s=[...t.commits_behind].reduce((n,i)=>{const a=new Date(+i.date*1e3),o=+new Date(a.getFullYear(),a.getMonth(),a.getDate());return o in n?n[o].push(i):n[o]=[i],n},{});return{keys:Object.keys(s).map(n=>parseInt(n)).sort().reverse(),result:s}}}},kye={async reset({commit:r}){r("setReset")},async init(){F.machineUpdateStatus()},async onUpdateStatus({commit:r,dispatch:e,getters:t},s){},async onUpdateResponse({commit:r},e){r("setUpdateResponse",e)},async onUpdatedMoonraker({commit:r},e){ye.debug("Finished updating moonraker",e),F.machineUpdateStatus(),r("socket/setSocketDisconnecting",!0,{root:!0})},async onUpdatedKlipper(r,e){ye.debug("Finished updating klipper",e),F.machineUpdateStatus()},async onUpdatedClient(r,e){ye.debug("Finished updating a client",e),F.machineUpdateStatus()},async onUpdatedFluidd(r,e){ye.debug("Finished updating fluidd, reloading",e),window.location.reload()},async onUpdatedSystem(r,e){ye.debug("Finished updating system",e),F.machineUpdateStatus()},async onUpdatedAll(r,e){ye.debug("Finished updating all services",e),window.location.reload()}},Dye={setReset(r){Object.assign(r,A9())},setUpdateStatus(r,e){if(e){"busy"in e&&(r.busy=e.busy),"github_limit_reset_time"in e&&(r.github_limit_reset_time=e.github_limit_reset_time),"github_rate_limit"in e&&(r.github_rate_limit=e.github_rate_limit),"github_requests_remaining"in e&&(r.github_requests_remaining=e.github_requests_remaining);const t=Object.assign({},r.version_info,e.version_info);b.set(r,"version_info",t)}},setUpdateResponse(r,e){if(e.complete)r.busy=!1;else{const t=r.responses.length;r.responses.push({...e,id:t})}},setClearUpdateResponse(r){r.responses=[]},setVersion(r,e){r.fluidd.version=e},setHash(r,e){r.fluidd.hash=e}},Mye=!0,Rye={namespaced:Mye,state:Oye,getters:Tye,actions:kye,mutations:Dye},E9=()=>({range:0,wireframe:!1,scale:.2,boxScale:2,flatSurface:!1,matrix:"mesh_matrix"}),Iye=E9(),Mp=(r,e,t=!1)=>{const s=r[e],n=[];let i=0,a=0,o=0,l=0,c=0,u=0;if(s&&s.length>=3&&s[0]&&s[0].length>=3&&r.mesh_min&&r.mesh_max){const d=(r.mesh_max[0]-r.mesh_min[0])/(s[0].length-1),p=(r.mesh_max[1]-r.mesh_min[1])/(s.length-1);i=Math.min(...s.map(h=>Math.min(...h))),o=Math.max(...s.map(h=>Math.max(...h))),i<=0&&o>=0?a=0:a=(o+i)/2,l=Math.abs(i-o);for(const h of s){c=0;const m=r.mesh_min[1]+u*p;for(const g of h){const v=r.mesh_min[0]+c*d;c++,n.push({name:`x${c}_y${u}`,value:[v,m,t?a:g]})}u++}}return{coordinates:n,dimensions:[u,c],min:i,mid:a,max:o,range:l}},Fye={getSupportsBedMesh:(r,e,t,s)=>s["printer/getPrinterSettings"]("bed_mesh")!==void 0,getLegacyBedMeshProfiles:(r,e,t,s)=>{const n={},i=s["printer/getPrinterConfig"](),a=Object.keys(i).filter(o=>o.startsWith("bed_mesh "));for(const o of a){const l=o.split(" ").splice(1).join(" "),c=i[o],u={points:c.points.split(`
`).filter(d=>d.length).map(d=>d.split(",").map(Number)),mesh_params:{algo:c.algo,max_x:+c.max_x,max_y:+c.max_y,mesh_x_pps:+c.mesh_x_pps,mesh_y_pps:+c.mesh_y_pps,min_x:+c.min_x,min_y:+c.min_y,tension:+c.tension,x_count:+c.x_count,y_count:+c.y_count}};n[l]=u}return n},getBedMeshProfiles:(r,e,t)=>{var a,o;const s=[],n=t.printer.printer.bed_mesh,i=n.profiles??e.getLegacyBedMeshProfiles;for(const[l,c]of Object.entries(i)){const u=c.points.flatMap(h=>h),d=Math.min(...u),p=Math.max(...u);s.push({name:l,active:l===n.profile_name,adaptive:!1,range:Math.abs(d-p)})}if(n.profile_name&&!(n.profile_name in i)){const l=Math.min(...((a=n.mesh_matrix)==null?void 0:a.flat())??[0]),c=Math.max(...((o=n.mesh_matrix)==null?void 0:o.flat())??[0]);s.push({name:n.profile_name,active:!0,adaptive:!0,range:c-l})}return s.sort((l,c)=>l.name==="default"?-1:c.name==="default"?1:l.name.localeCompare(c.name))},getCurrentMeshData:(r,e,t)=>{const s=t.printer.printer.bed_mesh;return{mesh_matrix:Mp(s,"mesh_matrix"),probed_matrix:Mp(s,"probed_matrix"),mesh_matrix_flat:Mp(s,"mesh_matrix",!0),probed_matrix_flat:Mp(s,"probed_matrix",!0)}}},Hye={async reset({commit:r}){r("setReset")},async onMatrix({commit:r},e){r("setMatrix",e)},async onScale({commit:r},e){r("setScale",e)},async onBoxScale({commit:r},e){r("setBoxScale",e)},async onWireframe({commit:r},e){r("setWireframe",e)},async onFlatSurface({commit:r},e){r("setFlatSurface",e)}},Bye={setReset(r){Object.assign(r,E9())},setMatrix(r,e){r.matrix=e},setScale(r,e){r.scale=e},setBoxScale(r,e){r.boxScale=e},setWireframe(r,e){r.wireframe=e},setFlatSurface(r,e){r.flatSurface=e}},jye=!0,Vye={namespaced:jye,state:Iye,getters:Fye,actions:Hye,mutations:Bye},O9=()=>({notifications:[]}),Nye=O9(),zye={getNotifications:(r,e)=>{let t=[...r.notifications].sort((s,n)=>n.timestamp-s.timestamp);return t=t.concat(e.getAnnouncementsAsNotifications),[...t.filter(s=>s.type==="error"),...t.filter(s=>s.type!=="error")]},getAnnouncementsAsNotifications:(r,e,t,s)=>s["announcements/getAnnouncements"].map(i=>({id:i.entry_id,type:"announcement",to:i.url,title:i.title,description:i.description,timestamp:i.date,clear:!0,merge:!0}))},Uye={async reset({commit:r}){r("setReset")},async pushNotification({commit:r,state:e},t){const s={id:jl(),type:"info",timestamp:Date.now()/1e3,clear:!0,merge:!1,...t};if(s.title&&s.title!=="?"&&s.id){const n=e.notifications.findIndex(i=>i.title===t.title);s.merge&&n>=0?r("setMergeNotification",{n:s,i:n}):r("setPushNotification",s),t.snackbar&&_r.$emit(s.title,{type:"error"})}},async clearNotification({commit:r,dispatch:e},t){if(typeof t=="object"&&t.type==="announcement"){e("announcements/dismiss",{entry_id:t.id},{root:!0});return}r("setClearNotification",t)},async clearAll({commit:r,dispatch:e}){r("setClearAllNotifications"),e("announcements/dismissAll",{},{root:!0})}},Wye={setReset(r){Object.assign(r,O9())},setPushNotification(r,e){r.notifications.push(e)},setMergeNotification(r,e){e&&e.n&&e.i>=0&&b.set(r.notifications,e.i,e.n)},setClearNotification(r,e){let t=-1;typeof e=="string"?t=r.notifications.findIndex(s=>s.id===e):t=r.notifications.findIndex(s=>s===e),t>=0&&r.notifications.splice(t,1)},setClearAllNotifications(r){b.set(r,"notifications",[...r.notifications.filter(e=>!e.clear)])}},Gye=!0,qye={namespaced:Gye,state:Nye,getters:zye,actions:Uye,mutations:Wye},T9=()=>({entries:[],feeds:[]}),Zye=T9(),Yye={getAnnouncements:r=>r.entries.filter(e=>!e.dismissed)},Kye={async reset({commit:r}){r("setReset")},async init(){F.serverAnnouncementsList()},async onAnnouncementsList({commit:r},e){e&&r("setAnnouncementsList",e)},async onAnnouncementUpdate({commit:r},e){e&&r("setAnnouncementsList",e)},async onAnnouncementDismissed({commit:r},e){e&&r("setAnnouncementDismissed",{entry_id:e.entry_id,dismissed:!0})},async onAnnouncementWake({commit:r},e){e&&r("setAnnouncementDismissed",{entry_id:e.entry_id,dismissed:!1})},async dismiss(r,e){F.serverAnnouncementsDismiss(e.entry_id,e.wake_time)},async dismissAll({state:r}){[...r.entries].forEach(async t=>await F.serverAnnouncementsDismiss(t.entry_id))}},Xye={setReset(r){Object.assign(r,T9())},setAnnouncementsList(r,e){e.entries&&b.set(r,"entries",e.entries),e.feeds&&b.set(r,"feeds",e.feeds)},setAnnouncementDismissed(r,e){const t=[...r.entries],s=t.find(n=>n.entry_id===e.entry_id);s&&(s.dismissed=e.dismissed,e.dismissed?s.date_dismissed=Date.now():(s.date_dismissed=null,s.dismiss_wake=null)),b.set(r,"entries",t)}},Qye=!0,Jye={namespaced:Qye,state:Zye,getters:Yye,actions:Kye,mutations:Xye},k9=()=>({waits:[]}),ebe=k9(),tbe={hasWait:r=>e=>{if(Array.isArray(e)&&e.length){let t=e;return t=t.filter(s=>r.waits.includes(s)),t.length>0}else return e=e,r.waits.includes(e)},hasWaits:r=>r.waits.length>0,hasWaitsBy:r=>e=>r.waits.filter(s=>s.startsWith(e)).length>0},rbe={async reset({commit:r}){r("setReset")},async addWait({commit:r},e){r("setAddWait",e)},async removeWait({commit:r},e){r("setRemoveWait",e)}},sbe={setReset(r){Object.assign(r,k9())},setAddWait(r,e){r.waits.indexOf(e)===-1&&r.waits.push(e)},setRemoveWait(r,e){const t=r.waits.indexOf(e);t!==-1&&r.waits.splice(t,1)}},nbe=!0,ibe={namespaced:nbe,state:ebe,getters:tbe,actions:rbe,mutations:sbe},D9=()=>({moves:[],layers:[],parts:[],file:void 0,parserProgress:0,parserWorker:null,viewer:{showCurrentLayer:!0,showNextLayer:!1,showPreviousLayer:!1,showMoves:!0,showExtrusions:!0,showRetractions:!0,showParts:!0,followProgress:!1}}),abe=D9(),obe=(r,e,t=!1)=>{if(r.length<=1)return 0;let s=Math.floor(r.length/2),n=r.length-1,i=0;for(;i<=n;){const a=e(r[s],s,r);if(a>0)i=s+1;else if(a<0)n=s-1;else return s;s=Math.floor((i+n)/2)}return t?s:-1};function lbe(r,e){const t=Math.abs(r.x-e.x),s=Math.abs(r.y-e.y);return Math.sqrt(t**2+s**2)}function ex(r,e){return Math.atan2(e.y-r.y,e.x-r.x)*(180/Math.PI)}function cbe(r,e){const t={x:e.x??r.x,y:e.y??r.y},s={x:r.x+(e.i??0),y:r.y+(e.j??0)},n=lbe(r,s);let i=ex(s,r)-ex(s,t);switch(i>180?i-=360:i<-180&&(i+=360),e.direction){case"clockwise":return"A"+[n,n,0,+(i<0),0,t.x,t.y].join(",");case"counter-clockwise":return"M"+[t.x,t.y].join(",")+"A"+[n,n,0,+(i>0),0,r.x,r.y].join(",")+"M"+[t.x,t.y].join(",");default:throw new TypeError("move has no direction")}}function ube(r,e){if(e.i!==void 0||e.j!==void 0)return cbe(r,e);throw e.r!==void 0?new Error("Arcs with the R parameter are currently not supported. Please make a Github issue with some sample gcode so we can resolve this"):new TypeError("Move is not a valid arc")}function tx(r,e){return Object.hasOwnProperty.call(e,"direction")?ube(r,e):`L${e.x??r.x},${e.y??r.y}`}const dbe={getMoves:r=>r.moves,getFile:r=>r.file,getViewerOption:r=>e=>r.viewer[e],getParserProgress:r=>r.parserProgress,getLayers:(r,e,t)=>{if(r.layers.length)return r.layers;const s=[],n=e.getMoves;let i=NaN,a=0,o=NaN,l=NaN;const{minLayerHeight:c}=t.config.uiSettings.gcodePreview;return n.forEach((u,d)=>{u.z!==void 0&&i!==u.z&&(i=u.z,a=d),u.e&&u.e>0&&(Number.isNaN(o)||i<o||i>=l)&&["x","y","i","j"].some(p=>gl(p,u)&&u[p]!==0)&&(o=i,l=Math.round((i+c)*1e4)/1e4,s.push({z:i,move:a,filePosition:u.filePosition}))}),s.length===0&&n.length&&s.push({z:0,move:0,filePosition:n[0].filePosition}),s},getParts:r=>r.parts,getBounds:(r,e)=>{var c,u;let t=e.getMoves;const s=e.getLayers,n=(c=s[s.length>1?1:0])==null?void 0:c.move,i=(u=s[s.length-1])==null?void 0:u.move;n&&i&&(t=t.slice(n,i));const a={x:{min:NaN,max:NaN},y:{min:NaN,max:NaN}},o=Number.isFinite;let l=0;for(;l<t.length&&!Object.values(a).every(o);l++){const d=t[l];o(d.x)&&(a.x.min=o(a.x.min)?Math.min(a.x.min,d.x):d.x,a.x.max=o(a.x.max)?Math.max(a.x.max,d.x):d.x),o(d.y)&&(a.y.min=o(a.y.min)?Math.min(a.y.min,d.y):d.y,a.y.max=o(a.y.max)?Math.max(a.y.max,d.y):d.y)}for(;l<t.length;l++){const d=t[l];o(d.x)&&(a.x.min=Math.min(a.x.min,d.x),a.x.max=Math.max(a.x.max,d.x)),o(d.y)&&(a.y.min=Math.min(a.y.min,d.y),a.y.max=Math.max(a.y.max,d.y))}return{x:{min:o(a.x.min)?a.x.min:0,max:o(a.x.max)?a.x.max:0},y:{min:o(a.y.min)?a.y.min:0,max:o(a.y.max)?a.y.max:0}}},getToolHeadPosition:(r,e)=>t=>{const s=Number.isFinite,n=e.getMoves,i={x:NaN,y:NaN,z:NaN};for(let a=t;a>=0&&(!s(i.x)||!s(i.y)||!s(i.z));a--)!s(i.x)&&n[a].x!==void 0&&(i.x=n[a].x),!s(i.y)&&n[a].y!==void 0&&(i.y=n[a].y),!s(i.z)&&n[a].z!==void 0&&(i.z=n[a].z);return{x:s(i.x)?i.x:0,y:s(i.y)?i.y:0,z:s(i.z)?i.z:0}},getPaths:(r,e)=>(t,s)=>{const n=e.getToolHeadPosition(t),i=e.getMoves,a={extrusions:"",moves:`M${n.x},${n.y}`,retractions:[],extrusionStarts:[],toolhead:{x:0,y:0}};let o=!0;for(let l=t;l<=s&&l<i.length;l++){const c=i[l];c.e>0?(o&&(a.extrusions+=`M${n.x},${n.y}`,a.extrusionStarts.push({x:n.x,y:n.y}),o=!1),a.extrusions+=tx(n,c),Object.assign(n,c)):(o||(a.moves+=`M${n.x},${n.y}`,o=!0),c.e<0&&a.retractions.push({x:n.x,y:n.y}),a.moves+=tx(n,c),Object.assign(n,c))}return a.toolhead={x:n.x,y:n.y},a},getLayerPaths:(r,e)=>t=>{var n,i;const s=e.getLayers;return e.getPaths(((n=s[t])==null?void 0:n.move)??0,(((i=s[t+1])==null?void 0:i.move)??1/0)-1)},getPartPaths:(r,e)=>e.getParts.map(s=>{const n=[];return s.polygon.forEach((i,a)=>{n.push(`${a===0?"M":"L"}${i.x},${i.y}`)}),n.push("z"),n.join()}),getMoveIndexByFilePosition:(r,e)=>t=>t<=0?0:obe(e.getMoves,s=>t-s.filePosition,!0),getLayerNrByFilePosition:(r,e)=>t=>{const s=e.getLayers;for(let n=0;n<s.length-1;n++)if(t<s[n+1].filePosition)return n;return s.length-1}};function pbe(r){return new Worker(""+new URL("parseGcode.worker-DKc0-WBC.js",import.meta.url).href,{name:r==null?void 0:r.name})}const hbe={async reset({commit:r}){r("setReset")},async terminateParserWorker({commit:r,state:e}){if(e.parserWorker){const t=e.parserWorker;r("setParserWorker",null),t.terminate(),r("clearFile")}},async loadGcode({commit:r,getters:e,state:t,rootState:s},n){const i=new pbe;r("setParserWorker",i),i.addEventListener("message",o=>{const l=o.data;switch(l.action){case"progress":{r("setParserProgress",l.filePosition);break}case"result":{try{r("setMoves",l.moves),r("setLayers",l.layers),r("setParts",l.parts),r("setParserProgress",n.file.size??n.gcode.length),s.config.uiSettings.gcodePreview.hideSinglePartBoundingBox&&l.parts.length<=1&&r("setViewerState",{showParts:!1})}catch(c){ye.error("Parser worker error",c)}t.parserWorker&&(r("setParserWorker",null),i.terminate()),e.getMoves.length===0&&r("clearFile");break}}}),r("setParserProgress",0),r("setMoves",[]),r("setLayers",[]),r("setFile",n.file);const a={action:"parse",gcode:n.gcode};i.postMessage(a)}},fbe={setReset(r){Object.assign(r,D9())},setMoves(r,e){b.set(r,"moves",Object.freeze(e.map(Object.freeze)))},setLayers(r,e){b.set(r,"layers",Object.freeze(e.map(Object.freeze)))},setParts(r,e){b.set(r,"parts",Object.freeze(e.map(Object.freeze)))},setFile(r,e){r.file=e},clearFile(r){r.file=void 0},setViewerState(r,e){for(const t of Object.keys(r.viewer))gl(t,e)&&e[t]!==void 0&&b.set(r.viewer,t,e[t])},setParserProgress(r,e){r.parserProgress=e},setParserWorker(r,e){r.parserWorker=e}},mbe=!0,gbe={namespaced:mbe,state:abe,getters:dbe,actions:hbe,mutations:fbe},vbe={getSettings:r=>r.settings,getLastFrame:r=>r.lastFrame,getRenderStatus:r=>r.renderStatus,isBlockedSetting:r=>e=>{var t;return((t=r.settings)==null?void 0:t.blockedsettings.includes(e))??!0}},_be={async reset({commit:r}){r("setReset")},async init(){F.timelapseState()},async onSettings({commit:r},e){r("setSettings",e)},async onLastFrame({commit:r},e){var s,n;const t=+(((n=(s=e.lastframefile)==null?void 0:s.match(/\d+/))==null?void 0:n[0])??0);r("setLastFrame",{count:e.framecount,uniqueCount:t,file:e.lastframefile})},async onEvent({commit:r},e){switch(e.action){case"newframe":{if(e.status==="error")_r.$emit(st.tc("app.timelapse.error.newframe"),{type:"error"});else{const t=parseInt(e.frame);r("setLastFrame",{count:t,uniqueCount:t,file:e.framefile})}break}case"render":{let t;switch(e.status){case"started":{t={status:"started",count:e.framecount,settings:{frameRate:e.framerate,crf:e.crf,pixelFormat:e.pixelformat}};break}case"running":{t={status:"running",progress:e.progress};break}case"success":{t={status:"success",frameCount:e.framecount,fileName:e.filename,printFile:e.printfile,previewImage:e.previewimage,message:e.msg};break}default:{ye.warn("unhandled timelapse render status",e);return}}r("setRenderStatus",t);break}default:{ye.warn("unhandled timelapse event",e);break}}}},ybe={setReset(r){Object.assign(r,T7())},setSettings(r,e){r.settings=e},setLastFrame(r,e){r.lastFrame=e,r.renderStatus=void 0},setRenderStatus(r,e){r.renderStatus=e}},bbe=!0,$be={namespaced:bbe,state:Wue,getters:vbe,actions:_be,mutations:ybe},M9=()=>({parts:{},excludedParts:[],printState:"unknown"}),Sbe=M9(),wbe={getParts:r=>r.parts,getIsPartCurrent:r=>e=>r.currentPart===e,getIsPartExcluded:r=>e=>r.excludedParts.includes(e),getPartPos:(r,e)=>t=>e.getParts[t].target,getPartSVG:(r,e)=>t=>{const s=e.getParts[t];let n="",i="M";return s.outline.forEach(a=>{n+=`${i}${a.x},${a.y}`,i="L"}),n+="z",n},getPrintState:r=>r.printState},xbe={async reset({commit:r}){r("setReset")},async onPartUpdate({commit:r},e){r("partUpdate",e)},async onPrintStatsUpdate({commit:r},e){r("printStatsUpdate",e)}},Cbe={setReset(r){Object.assign(r,M9())},partUpdate(r,e){if("current_object"in e&&b.set(r,"currentPart",e.current_object),"excluded_objects"in e&&b.set(r,"excludedParts",e.excluded_objects),"objects"in e){const t={};e.objects.forEach(s=>{const n=s.name,i={name:n,outline:[],target:null};"center"in s&&s.center.length===2&&(i.target={x:s.center[0],y:s.center[1]}),"polygon"in s&&(i.outline=s.polygon.map(a=>({x:a[0],y:a[1]}))),t[n]=i}),b.set(r,"parts",Object.freeze(t))}},printStatsUpdate(r,e){"state"in e&&b.set(r,"printState",e.state)}},Pbe=!0,Lbe={namespaced:Pbe,state:Sbe,getters:wbe,actions:xbe,mutations:Cbe},R9=()=>({webcams:[],activeWebcam:"all"}),Abe=R9(),Ebe={getWebcams:r=>[...r.webcams].sort((e,t)=>(e.name??"").localeCompare(t.name??"")),getEnabledWebcams:(r,e)=>e.getWebcams.filter(s=>s.enabled==!0||s.enabled==null),getVisibleWebcams:(r,e)=>{const t=e.getEnabledWebcams;return r.activeWebcam==="all"?t:t.filter(s=>s.uid===r.activeWebcam)},getWebcamById:r=>e=>r.webcams.find(t=>t.uid===e)},rx=(r,e,t)=>{const s="http://fake.fake",n=new URL(r,s);return n.searchParams.set(e,t),n.origin===s?n.pathname+n.search:n.href},Obe={mjpgstream:"mjpegstreamer",mjpgadaptive:"mjpegstreamer-adaptive",iframe:"iframe",ipstream:"ipstream"},Tbe=["mjpegstreamer","mjpegstreamer-adaptive"],kbe={async reset({commit:r}){r("setReset")},async init(){F.serverWebcamsList()},async initWebcams({commit:r},e){r("setInitWebcams",e)},async initLegacyCameras(r,e){if(e.cameras){for(const t of e.cameras){const s=Obe[t.type],n=Tbe.includes(s),i={name:t.name,location:"printer",service:s,icon:"mdiWebcam",enabled:t.enabled??!0,targetFps:t.fpstarget||15,targetFpsIdle:t.fpsidletarget||5,urlStream:n&&t.url?rx(t.url,"action","stream"):t.url,urlSnapshot:n&&t.url?rx(t.url,"action","snapshot"):t.url,flipX:t.flipX??!1,flipY:t.flipY??!1,rotation:t.rotate?+t.rotate:0,aspectRatio:"4:3",extraData:{}};await rt.serverDatabaseItemPost(he.MOONRAKER_DB.webcams.NAMESPACE,t.id,i)}await rt.serverDatabaseItemDelete(he.MOONRAKER_DB.fluidd.NAMESPACE,he.MOONRAKER_DB.fluidd.ROOTS.cameras.name)}},async updateWebcam({commit:r},e){r("setUpdateWebcam",e),F.serverWebcamsWrite(e)},async removeWebcam({commit:r},e){r("setRemoveWebcam",e),F.serverWebcamsDelete(e)},async updateActiveWebcam({commit:r,state:e},t){r("setActiveWebcam",t),F.serverWrite(he.MOONRAKER_DB.fluidd.ROOTS.webcams.name+".activeWebcam",e.activeWebcam)},async onWebcamsList({commit:r},e){e&&r("setWebcamsList",e)},async onWebcamsChanged({commit:r},e){e&&r("setWebcamsList",e)}},Dbe={setReset(r){Object.assign(r,R9())},setInitWebcams(r,e){r.activeWebcam=e.activeWebcam||"all"},setWebcamsList(r,e){r.webcams=e.webcams||[]},setUpdateWebcam(r,e){const t=r.webcams.findIndex(s=>s.uid===e.uid);t>=0?b.set(r.webcams,t,e):r.webcams.push(e)},setRemoveWebcam(r,e){const t=r.webcams.findIndex(s=>s.uid===e);t>=0&&r.webcams.splice(t,1),r.activeWebcam===e&&(r.activeWebcam="all")},setActiveWebcam(r,e){r.activeWebcam=e}},Mbe=!0,Rbe={namespaced:Mbe,state:Abe,getters:Ebe,actions:kbe,mutations:Dbe},I9=()=>({queue_state:"paused",queued_jobs:[]}),Ibe=I9(),Fbe={getQueueState:r=>r.queue_state,getQueuedJobs:r=>r.queued_jobs,getQueuedJob:r=>e=>r.queued_jobs.findIndex(t=>t.job_id===e)},Hbe={async reset({commit:r}){r("setReset")},async init(){F.serverJobQueueStatus()},async onJobQueueStatus({commit:r},e){e&&(r("setQueueState",e.queue_state),r("setQueuedJobs",e.queued_jobs))},async onJobQueueChanged({commit:r},e){if(e){const{queue_state:t,updated_queue:s}=e;t&&r("setQueueState",t),s!=null&&r("setQueuedJobs",s)}}},Bbe={setReset(r){Object.assign(r,I9())},setQueueState(r,e){r.queue_state=e},setQueuedJobs(r,e){r.queued_jobs=e||[]}},jbe=!0,Vbe={namespaced:jbe,state:Ibe,getters:Fbe,actions:Hbe,mutations:Bbe},F9=()=>({availableSpools:[],activeSpool:void 0,connected:!1,dialog:{show:!1}}),Nbe=F9(),zbe={getActiveSpool:r=>r.availableSpools.find(e=>e.id===r.activeSpool),getActiveSpoolId:r=>r.activeSpool,getAvailableSpools:r=>r.availableSpools,getSpoolById:r=>e=>r.availableSpools.find(t=>t.id===e),getConnected:r=>r.connected,getAvailable:r=>r.connected&&r.availableSpools.length},Ig="[SPOOLMAN]",Ube={async reset({commit:r}){r("setReset")},async init(){F.serverSpoolmanGetSpoolId(),F.serverSpoolmanProxyGetAvailableSpools()},async onActiveSpool({commit:r},e){r("setActiveSpool",e.spool_id)},async onSpoolChange({commit:r,getters:e},{type:t,payload:s}){const n=[...e.getAvailableSpools];switch(t){case"added":{n.push(s);break}case"updated":{const i=n.findIndex(a=>a.id===s.id);i>=0&&(n[i]=s);break}case"deleted":{const i=n.findIndex(a=>a.id===s.id);i>=0&&n.splice(i,1);break}}r("setAvailableSpools",n)},async onFilamentChange({commit:r,getters:e},{type:t,payload:s}){if(t!=="updated")return;const n=[...e.getAvailableSpools];for(const i of n)i.filament.id===s.id&&(n[n.indexOf(i)]={...i,filament:s});r("setAvailableSpools",n)},async onVendorChange({commit:r,getters:e},{type:t,payload:s}){var i;if(t!=="updated")return;const n=[...e.getAvailableSpools];for(const a of n)((i=a.filament.vendor)==null?void 0:i.id)===s.id&&(n[n.indexOf(a)]={...a,filament:{...a.filament,vendor:s}});r("setAvailableSpools",n)},async onAvailableSpools({commit:r,dispatch:e},t){if("error"in t&&"response"in t){if(t.error!=null){_r.$emit(typeof t.error=="string"?t.error:t.error.message,{type:"error"});return}t=t.response}r("setAvailableSpools",[...t]),r("setConnected",!0),e("initializeWebsocketConnection")},async onStatusChanged({commit:r,dispatch:e},t){t?e("init"):r("setConnected",t)},async initializeWebsocketConnection({state:r,rootState:e,dispatch:t}){var s,n,i;if((s=e.server.config.spoolman)!=null&&s.server){if(((n=r.socket)==null?void 0:n.readyState)===WebSocket.OPEN)return;const a=new URL(e.server.config.spoolman.server);a.pathname+=`${a.pathname.endsWith("/")?"":"/"}api/v1/`,a.protocol==="https:"?a.protocol="wss:":a.protocol="ws:",r.socket=new WebSocket(a),r.socket.onerror=o=>ye.warn(`${Ig} received websocket error`,o),r.socket.onmessage=o=>{let l;try{l=JSON.parse(o.data)}catch(c){ye.error(`${Ig} failed to decode websocket message`,c,o.data);return}switch(l.resource){case"spool":t("onSpoolChange",l);break;case"filament":t("onFilamentChange",l);break;case"vendor":t("onVendorChange",l);break;default:ye.warn(`${Ig} ignoring websocket message with type ${l.resource}`)}}}else(i=r.socket)==null||i.close(),r.socket=void 0}},Wbe={setReset(r){Object.assign(r,F9())},setActiveSpool(r,e){r.activeSpool=e},setAvailableSpools(r,e){r.availableSpools=e.map(t=>({...t,registered:new Date(t.registered),first_used:t.first_used?new Date(t.first_used):void 0,last_used:t.last_used?new Date(t.last_used):void 0}))},setDialogState(r,e){r.dialog=e},setConnected(r,e){r.connected=e}},Gbe=!0,qbe={namespaced:Gbe,state:Nbe,getters:zbe,actions:Ube,mutations:Wbe},H9=()=>({sensors:{}}),Zbe=H9(),Ybe={getSensors:r=>Object.values(r.sensors)},Kbe={async reset({commit:r}){r("setReset")},async init(){F.serverSensorsList()},async onSensorsList({commit:r},e){e&&r("setSensorsList",e)},async onSensorUpdate({commit:r},e){e&&r("setSensorUpdate",e)}},Xbe={setReset(r){Object.assign(r,H9())},setSensorsList(r,e){r.sensors=e.sensors},setSensorUpdate(r,e){for(const t in e)b.set(r.sensors[t],"values",e[t])}},Qbe=!0,Jbe={namespaced:Qbe,state:Zbe,getters:Ybe,actions:Kbe,mutations:Xbe};b.use(o9);const wr=new o9.Store({strict:!1,modules:{socket:j1e,auth:Z1e,server:W_e,printer:n0e,config:S0e,files:A0e,layout:D0e,charts:B0e,console:dye,macros:vye,power:wye,history:Eye,version:Rye,mesh:Vye,notifications:qye,announcements:Jye,wait:ibe,gcodePreview:gbe,timelapse:$be,parts:Lbe,webcams:Rbe,jobQueue:Vbe,spoolman:qbe,sensors:Jbe},mutations:{},actions:{async reset({dispatch:r},e){b.$colorset.forceResetAll();const t=[];return(e||Object.keys(this.state)).forEach(n=>{this.hasModule(n)&&t.push(r(n+"/reset"))}),Promise.all(t)},async init({dispatch:r,commit:e},t){return e("version/setVersion","1.30.4"),e("version/setHash",`9ae668d
`),e("socket/setApiConnected",t.apiConnected),[await r("config/initHost",t),await r("config/initLocal",t)]},void(r,e){ye.debug("void action",e)}}});var e2e=Object.defineProperty,t2e=Object.getOwnPropertyDescriptor,r2e=(r,e,t,s)=>{for(var n=s>1?void 0:s?t2e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&e2e(e,t,n),n};const sx=r=>{const e=r.params.categoryId,s=wr.getters["macros/getCategories"].findIndex(n=>n.id===e);if(e!=="0"&&s===-1)return{path:"/settings",hash:"macros"}};let w0=class extends b{constructor(){super(...arguments);f(this,"search","");f(this,"categoryId");f(this,"dialogState",{open:!1,macro:null})}get macros(){const t=this.categoryId;return this.$store.getters["macros/getMacrosByCategory"](t).filter(n=>this.search?n.name.includes(this.search.toLowerCase()):!0)}set macros(t){this.$store.dispatch("macros/saveAllOrder",t)}get categories(){return this.$store.getters["macros/getCategories"]}get category(){return this.categoryId!=="0"&&this.categories.find(s=>s.id===this.categoryId)||{id:"0",name:this.$tc("app.general.label.uncategorized")}}beforeRouteEnter(t,s,n){n(sx(t))}beforeRouteUpdate(t,s,n){n(sx(t))}created(){this.search="",this.categoryId=this.$route.params.categoryId}handleBack(){this.$router.go(-1)}handleSettingsDialog(t){this.dialogState.macro=t,this.dialogState.open=!0}handleAllOn(){this.$store.dispatch("macros/saveAllOn",this.macros)}handleAllOff(){this.$store.dispatch("macros/saveAllOff",this.macros)}handleMacroVisible(t,s){const n={...t,visible:s};this.$store.dispatch("macros/saveMacro",n)}};w0=r2e([L({components:{MacroSettingsDialog:_1e}})],w0);var s2e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Jt,{staticClass:"px-0"},[t(M,{staticClass:"mr-4",attrs:{fab:"",small:"",color:"",exact:""},on:{click:e.handleBack}},[t(w,{attrs:{small:""}},[e._v(" $left ")])],1),e._v(" "+e._s(e.category.name)+" "+e._s(e.$t("app.setting.title.macros"))+" "),t(_t),t(ae,{attrs:{clearable:"",outlined:"",dense:"","single-line":"","hide-details":"","append-icon":"$magnify"},model:{value:e.search,callback:function(s){e.search=s},expression:"search"}})],1),t(Ie,{staticClass:"mb-4",attrs:{elevation:5,dense:""}},[t(B,[t(M,{attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAllOff}},[e._v(" "+e._s(e.$t("app.setting.label.all_off"))+" ")]),t(M,{staticClass:"ml-2",attrs:{outlined:"",small:"",color:"primary"},on:{click:e.handleAllOn}},[e._v(" "+e._s(e.$t("app.setting.label.all_on"))+" ")])],1),t($m,{attrs:{options:{animation:200,handle:".handle",group:`macro-settings-${e.category.name}`,ghostClass:"ghost"}},model:{value:e.macros,callback:function(s){e.macros=s},expression:"macros"}},e._l(e.macros,function(s){return t("section",{key:s.name},[t(R),t(B,{attrs:{"accent-color":s.color,"r-cols":2},on:{click:function(n){return e.handleSettingsDialog(s)}},scopedSlots:e._u([{key:"title",fn:function(){return[t(w,{staticClass:"handle",attrs:{left:""}},[e._v(" $drag ")]),e._v(" "+e._s(s.name.toUpperCase())+" ")]},proxy:!0},s.config.description&&s.config.description!=="G-Code macro"?{key:"sub-title",fn:function(){return[t("span",{staticClass:"ml-1 mr-2"},[e._v(" "+e._s(s.config.description)+" ")])]},proxy:!0}:null],null,!0)},[t(Ce,{staticClass:"mt-0 pt-0",attrs:{"input-value":s.visible,color:"primary","hide-details":""},on:{click:function(n){n.stopPropagation()},change:function(n){return e.handleMacroVisible(s,n)}}})],1)],1)}),0)],1),e.dialogState.open?t("macro-settings-dialog",{attrs:{macro:e.dialogState.macro},model:{value:e.dialogState.open,callback:function(s){e.$set(e.dialogState,"open",s)},expression:"dialogState.open"}}):e._e()],1)},n2e=[],i2e=A(w0,s2e,n2e,!1,null,null);const a2e=i2e.exports;var o2e=Object.defineProperty,l2e=Object.getOwnPropertyDescriptor,c2e=(r,e,t,s)=>{for(var n=s>1?void 0:s?l2e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&o2e(e,t,n),n};let x0=class extends b{constructor(){super(...arguments);f(this,"camera",null)}created(){const t=this.$route.params.cameraId,s=this.$store.getters["webcams/getWebcamById"](t);this.camera=s??null}};x0=c2e([L({components:{CameraItem:e1}})],x0);var u2e=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.camera?t(Ie,{staticClass:"overflow-hidden"},[t("CameraItem",{attrs:{camera:e.camera,fullscreen:""}})],1):e._e()},d2e=[],p2e=A(x0,u2e,d2e,!1,null,null);const h2e=p2e.exports;var f2e=Object.defineProperty,m2e=Object.getOwnPropertyDescriptor,g2e=(r,e,t,s)=>{for(var n=s>1?void 0:s?m2e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&f2e(e,t,n),n};let C0=class extends b{};C0=g2e([L({})],C0);var v2e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown,justify:"center",align:"center"}},[t(I,[t("center",[t("div",{staticClass:"text-h5"},[e._v(" "+e._s(e.$t("app.general.title.not_found"))+" ")]),t(M,{staticClass:"mt-5",attrs:{to:"/"}},[e._v(" "+e._s(e.$t("app.general.btn.return_dashboard"))+" ")])],1)],1)],1)},_2e=[],y2e=A(C0,v2e,_2e,!1,null,null);const b2e=y2e.exports;function B9(r,e){return function(){return r.apply(e,arguments)}}const{toString:$2e}=Object.prototype,{getPrototypeOf:P2}=Object,w1=(r=>e=>{const t=$2e.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),on=r=>(r=r.toLowerCase(),e=>w1(e)===r),x1=r=>e=>typeof e===r,{isArray:ql}=Array,Gu=x1("undefined");function S2e(r){return r!==null&&!Gu(r)&&r.constructor!==null&&!Gu(r.constructor)&&ns(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const j9=on("ArrayBuffer");function w2e(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&j9(r.buffer),e}const x2e=x1("string"),ns=x1("function"),V9=x1("number"),C1=r=>r!==null&&typeof r=="object",C2e=r=>r===!0||r===!1,nh=r=>{if(w1(r)!=="object")return!1;const e=P2(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},P2e=on("Date"),L2e=on("File"),A2e=on("Blob"),E2e=on("FileList"),O2e=r=>C1(r)&&ns(r.pipe),T2e=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||ns(r.append)&&((e=w1(r))==="formdata"||e==="object"&&ns(r.toString)&&r.toString()==="[object FormData]"))},k2e=on("URLSearchParams"),[D2e,M2e,R2e,I2e]=["ReadableStream","Request","Response","Headers"].map(on),F2e=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Hd(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let s,n;if(typeof r!="object"&&(r=[r]),ql(r))for(s=0,n=r.length;s<n;s++)e.call(null,r[s],s,r);else{const i=t?Object.getOwnPropertyNames(r):Object.keys(r),a=i.length;let o;for(s=0;s<a;s++)o=i[s],e.call(null,r[o],o,r)}}function N9(r,e){e=e.toLowerCase();const t=Object.keys(r);let s=t.length,n;for(;s-- >0;)if(n=t[s],e===n.toLowerCase())return n;return null}const fa=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,z9=r=>!Gu(r)&&r!==fa;function P0(){const{caseless:r}=z9(this)&&this||{},e={},t=(s,n)=>{const i=r&&N9(e,n)||n;nh(e[i])&&nh(s)?e[i]=P0(e[i],s):nh(s)?e[i]=P0({},s):ql(s)?e[i]=s.slice():e[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&Hd(arguments[s],t);return e}const H2e=(r,e,t,{allOwnKeys:s}={})=>(Hd(e,(n,i)=>{t&&ns(n)?r[i]=B9(n,t):r[i]=n},{allOwnKeys:s}),r),B2e=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),j2e=(r,e,t,s)=>{r.prototype=Object.create(e.prototype,s),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},V2e=(r,e,t,s)=>{let n,i,a;const o={};if(e=e||{},r==null)return e;do{for(n=Object.getOwnPropertyNames(r),i=n.length;i-- >0;)a=n[i],(!s||s(a,r,e))&&!o[a]&&(e[a]=r[a],o[a]=!0);r=t!==!1&&P2(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},N2e=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const s=r.indexOf(e,t);return s!==-1&&s===t},z2e=r=>{if(!r)return null;if(ql(r))return r;let e=r.length;if(!V9(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},U2e=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&P2(Uint8Array)),W2e=(r,e)=>{const s=(r&&r[Symbol.iterator]).call(r);let n;for(;(n=s.next())&&!n.done;){const i=n.value;e.call(r,i[0],i[1])}},G2e=(r,e)=>{let t;const s=[];for(;(t=r.exec(e))!==null;)s.push(t);return s},q2e=on("HTMLFormElement"),Z2e=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,s,n){return s.toUpperCase()+n}),nx=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Y2e=on("RegExp"),U9=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),s={};Hd(t,(n,i)=>{let a;(a=e(n,i,r))!==!1&&(s[i]=a||n)}),Object.defineProperties(r,s)},K2e=r=>{U9(r,(e,t)=>{if(ns(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const s=r[t];if(ns(s)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},X2e=(r,e)=>{const t={},s=n=>{n.forEach(i=>{t[i]=!0})};return ql(r)?s(r):s(String(r).split(e)),t},Q2e=()=>{},J2e=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,Fg="abcdefghijklmnopqrstuvwxyz",ix="0123456789",W9={DIGIT:ix,ALPHA:Fg,ALPHA_DIGIT:Fg+Fg.toUpperCase()+ix},e$e=(r=16,e=W9.ALPHA_DIGIT)=>{let t="";const{length:s}=e;for(;r--;)t+=e[Math.random()*s|0];return t};function t$e(r){return!!(r&&ns(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const r$e=r=>{const e=new Array(10),t=(s,n)=>{if(C1(s)){if(e.indexOf(s)>=0)return;if(!("toJSON"in s)){e[n]=s;const i=ql(s)?[]:{};return Hd(s,(a,o)=>{const l=t(a,n+1);!Gu(l)&&(i[o]=l)}),e[n]=void 0,i}}return s};return t(r,0)},s$e=on("AsyncFunction"),n$e=r=>r&&(C1(r)||ns(r))&&ns(r.then)&&ns(r.catch),G9=((r,e)=>r?setImmediate:e?((t,s)=>(fa.addEventListener("message",({source:n,data:i})=>{n===fa&&i===t&&s.length&&s.shift()()},!1),n=>{s.push(n),fa.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",ns(fa.postMessage)),i$e=typeof queueMicrotask<"u"?queueMicrotask.bind(fa):typeof process<"u"&&process.nextTick||G9,W={isArray:ql,isArrayBuffer:j9,isBuffer:S2e,isFormData:T2e,isArrayBufferView:w2e,isString:x2e,isNumber:V9,isBoolean:C2e,isObject:C1,isPlainObject:nh,isReadableStream:D2e,isRequest:M2e,isResponse:R2e,isHeaders:I2e,isUndefined:Gu,isDate:P2e,isFile:L2e,isBlob:A2e,isRegExp:Y2e,isFunction:ns,isStream:O2e,isURLSearchParams:k2e,isTypedArray:U2e,isFileList:E2e,forEach:Hd,merge:P0,extend:H2e,trim:F2e,stripBOM:B2e,inherits:j2e,toFlatObject:V2e,kindOf:w1,kindOfTest:on,endsWith:N2e,toArray:z2e,forEachEntry:W2e,matchAll:G2e,isHTMLForm:q2e,hasOwnProperty:nx,hasOwnProp:nx,reduceDescriptors:U9,freezeMethods:K2e,toObjectSet:X2e,toCamelCase:Z2e,noop:Q2e,toFiniteNumber:J2e,findKey:N9,global:fa,isContextDefined:z9,ALPHABET:W9,generateString:e$e,isSpecCompliantForm:t$e,toJSONObject:r$e,isAsyncFn:s$e,isThenable:n$e,setImmediate:G9,asap:i$e};function Ne(r,e,t,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),s&&(this.request=s),n&&(this.response=n)}W.inherits(Ne,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:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const q9=Ne.prototype,Z9={};["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(r=>{Z9[r]={value:r}});Object.defineProperties(Ne,Z9);Object.defineProperty(q9,"isAxiosError",{value:!0});Ne.from=(r,e,t,s,n,i)=>{const a=Object.create(q9);return W.toFlatObject(r,a,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Ne.call(a,r.message,e,t,s,n),a.cause=r,a.name=r.name,i&&Object.assign(a,i),a};const a$e=null;function L0(r){return W.isPlainObject(r)||W.isArray(r)}function Y9(r){return W.endsWith(r,"[]")?r.slice(0,-2):r}function ax(r,e,t){return r?r.concat(e).map(function(n,i){return n=Y9(n),!t&&i?"["+n+"]":n}).join(t?".":""):e}function o$e(r){return W.isArray(r)&&!r.some(L0)}const l$e=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function P1(r,e,t){if(!W.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=W.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,v){return!W.isUndefined(v[g])});const s=t.metaTokens,n=t.visitor||u,i=t.dots,a=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(e);if(!W.isFunction(n))throw new TypeError("visitor must be a function");function c(m){if(m===null)return"";if(W.isDate(m))return m.toISOString();if(!l&&W.isBlob(m))throw new Ne("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(m)||W.isTypedArray(m)?l&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,g,v){let y=m;if(m&&!v&&typeof m=="object"){if(W.endsWith(g,"{}"))g=s?g:g.slice(0,-2),m=JSON.stringify(m);else if(W.isArray(m)&&o$e(m)||(W.isFileList(m)||W.endsWith(g,"[]"))&&(y=W.toArray(m)))return g=Y9(g),y.forEach(function(x,S){!(W.isUndefined(x)||x===null)&&e.append(a===!0?ax([g],S,i):a===null?g:g+"[]",c(x))}),!1}return L0(m)?!0:(e.append(ax(v,g,i),c(m)),!1)}const d=[],p=Object.assign(l$e,{defaultVisitor:u,convertValue:c,isVisitable:L0});function h(m,g){if(!W.isUndefined(m)){if(d.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));d.push(m),W.forEach(m,function(y,C){(!(W.isUndefined(y)||y===null)&&n.call(e,y,W.isString(C)?C.trim():C,g,p))===!0&&h(y,g?g.concat(C):[C])}),d.pop()}}if(!W.isObject(r))throw new TypeError("data must be an object");return h(r),e}function ox(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(s){return e[s]})}function L2(r,e){this._pairs=[],r&&P1(r,this,e)}const K9=L2.prototype;K9.append=function(e,t){this._pairs.push([e,t])};K9.toString=function(e){const t=e?function(s){return e.call(this,s,ox)}:ox;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function c$e(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function X9(r,e,t){if(!e)return r;const s=t&&t.encode||c$e,n=t&&t.serialize;let i;if(n?i=n(e,t):i=W.isURLSearchParams(e)?e.toString():new L2(e,t).toString(s),i){const a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class lx{constructor(){this.handlers=[]}use(e,t,s){return this.handlers.push({fulfilled:e,rejected:t,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(s){s!==null&&e(s)})}}const Q9={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u$e=typeof URLSearchParams<"u"?URLSearchParams:L2,d$e=typeof FormData<"u"?FormData:null,p$e=typeof Blob<"u"?Blob:null,h$e={isBrowser:!0,classes:{URLSearchParams:u$e,FormData:d$e,Blob:p$e},protocols:["http","https","file","blob","url","data"]},A2=typeof window<"u"&&typeof document<"u",f$e=(r=>A2&&["ReactNative","NativeScript","NS"].indexOf(r)<0)(typeof navigator<"u"&&navigator.product),m$e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",g$e=A2&&window.location.href||"http://localhost",v$e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:A2,hasStandardBrowserEnv:f$e,hasStandardBrowserWebWorkerEnv:m$e,origin:g$e},Symbol.toStringTag,{value:"Module"})),Gs={...v$e,...h$e};function _$e(r,e){return P1(r,new Gs.classes.URLSearchParams,Object.assign({visitor:function(t,s,n,i){return Gs.isNode&&W.isBuffer(t)?(this.append(s,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function y$e(r){return W.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function b$e(r){const e={},t=Object.keys(r);let s;const n=t.length;let i;for(s=0;s<n;s++)i=t[s],e[i]=r[i];return e}function J9(r){function e(t,s,n,i){let a=t[i++];if(a==="__proto__")return!0;const o=Number.isFinite(+a),l=i>=t.length;return a=!a&&W.isArray(n)?n.length:a,l?(W.hasOwnProp(n,a)?n[a]=[n[a],s]:n[a]=s,!o):((!n[a]||!W.isObject(n[a]))&&(n[a]=[]),e(t,s,n[a],i)&&W.isArray(n[a])&&(n[a]=b$e(n[a])),!o)}if(W.isFormData(r)&&W.isFunction(r.entries)){const t={};return W.forEachEntry(r,(s,n)=>{e(y$e(s),n,t,0)}),t}return null}function $$e(r,e,t){if(W.isString(r))try{return(e||JSON.parse)(r),W.trim(r)}catch(s){if(s.name!=="SyntaxError")throw s}return(t||JSON.stringify)(r)}const Bd={transitional:Q9,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const s=t.getContentType()||"",n=s.indexOf("application/json")>-1,i=W.isObject(e);if(i&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return n?JSON.stringify(J9(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(s.indexOf("application/x-www-form-urlencoded")>-1)return _$e(e,this.formSerializer).toString();if((o=W.isFileList(e))||s.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return P1(o?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||n?(t.setContentType("application/json",!1),$$e(e)):e}],transformResponse:[function(e){const t=this.transitional||Bd.transitional,s=t&&t.forcedJSONParsing,n=this.responseType==="json";if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(s&&!this.responseType||n)){const a=!(t&&t.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(o){if(a)throw o.name==="SyntaxError"?Ne.from(o,Ne.ERR_BAD_RESPONSE,this,null,this.response):o}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Gs.classes.FormData,Blob:Gs.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],r=>{Bd.headers[r]={}});const S$e=W.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"]),w$e=r=>{const e={};let t,s,n;return r&&r.split(`
`).forEach(function(a){n=a.indexOf(":"),t=a.substring(0,n).trim().toLowerCase(),s=a.substring(n+1).trim(),!(!t||e[t]&&S$e[t])&&(t==="set-cookie"?e[t]?e[t].push(s):e[t]=[s]:e[t]=e[t]?e[t]+", "+s:s)}),e},cx=Symbol("internals");function Sc(r){return r&&String(r).trim().toLowerCase()}function ih(r){return r===!1||r==null?r:W.isArray(r)?r.map(ih):String(r)}function x$e(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=t.exec(r);)e[s[1]]=s[2];return e}const C$e=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function Hg(r,e,t,s,n){if(W.isFunction(s))return s.call(this,e,t);if(n&&(e=t),!!W.isString(e)){if(W.isString(s))return e.indexOf(s)!==-1;if(W.isRegExp(s))return s.test(e)}}function P$e(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,s)=>t.toUpperCase()+s)}function L$e(r,e){const t=W.toCamelCase(" "+e);["get","set","has"].forEach(s=>{Object.defineProperty(r,s+t,{value:function(n,i,a){return this[s].call(this,e,n,i,a)},configurable:!0})})}class zr{constructor(e){e&&this.set(e)}set(e,t,s){const n=this;function i(o,l,c){const u=Sc(l);if(!u)throw new Error("header name must be a non-empty string");const d=W.findKey(n,u);(!d||n[d]===void 0||c===!0||c===void 0&&n[d]!==!1)&&(n[d||l]=ih(o))}const a=(o,l)=>W.forEach(o,(c,u)=>i(c,u,l));if(W.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(W.isString(e)&&(e=e.trim())&&!C$e(e))a(w$e(e),t);else if(W.isHeaders(e))for(const[o,l]of e.entries())i(l,o,s);else e!=null&&i(t,e,s);return this}get(e,t){if(e=Sc(e),e){const s=W.findKey(this,e);if(s){const n=this[s];if(!t)return n;if(t===!0)return x$e(n);if(W.isFunction(t))return t.call(this,n,s);if(W.isRegExp(t))return t.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Sc(e),e){const s=W.findKey(this,e);return!!(s&&this[s]!==void 0&&(!t||Hg(this,this[s],s,t)))}return!1}delete(e,t){const s=this;let n=!1;function i(a){if(a=Sc(a),a){const o=W.findKey(s,a);o&&(!t||Hg(s,s[o],o,t))&&(delete s[o],n=!0)}}return W.isArray(e)?e.forEach(i):i(e),n}clear(e){const t=Object.keys(this);let s=t.length,n=!1;for(;s--;){const i=t[s];(!e||Hg(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){const t=this,s={};return W.forEach(this,(n,i)=>{const a=W.findKey(s,i);if(a){t[a]=ih(n),delete t[i];return}const o=e?P$e(i):String(i).trim();o!==i&&delete t[i],t[o]=ih(n),s[o]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return W.forEach(this,(s,n)=>{s!=null&&s!==!1&&(t[n]=e&&W.isArray(s)?s.join(", "):s)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const s=new this(e);return t.forEach(n=>s.set(n)),s}static accessor(e){const s=(this[cx]=this[cx]={accessors:{}}).accessors,n=this.prototype;function i(a){const o=Sc(a);s[o]||(L$e(n,a),s[o]=!0)}return W.isArray(e)?e.forEach(i):i(e),this}}zr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);W.reduceDescriptors(zr.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(s){this[t]=s}}});W.freezeMethods(zr);function Bg(r,e){const t=this||Bd,s=e||t,n=zr.from(s.headers);let i=s.data;return W.forEach(r,function(o){i=o.call(t,i,n.normalize(),e?e.status:void 0)}),n.normalize(),i}function eP(r){return!!(r&&r.__CANCEL__)}function Zl(r,e,t){Ne.call(this,r??"canceled",Ne.ERR_CANCELED,e,t),this.name="CanceledError"}W.inherits(Zl,Ne,{__CANCEL__:!0});function tP(r,e,t){const s=t.config.validateStatus;!t.status||!s||s(t.status)?r(t):e(new Ne("Request failed with status code "+t.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function A$e(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function E$e(r,e){r=r||10;const t=new Array(r),s=new Array(r);let n=0,i=0,a;return e=e!==void 0?e:1e3,function(l){const c=Date.now(),u=s[i];a||(a=c),t[n]=l,s[n]=c;let d=i,p=0;for(;d!==n;)p+=t[d++],d=d%r;if(n=(n+1)%r,n===i&&(i=(i+1)%r),c-a<e)return;const h=u&&c-u;return h?Math.round(p*1e3/h):void 0}}function O$e(r,e){let t=0,s=1e3/e,n,i;const a=(c,u=Date.now())=>{t=u,n=null,i&&(clearTimeout(i),i=null),r.apply(null,c)};return[(...c)=>{const u=Date.now(),d=u-t;d>=s?a(c,u):(n=c,i||(i=setTimeout(()=>{i=null,a(n)},s-d)))},()=>n&&a(n)]}const jf=(r,e,t=3)=>{let s=0;const n=E$e(50,250);return O$e(i=>{const a=i.loaded,o=i.lengthComputable?i.total:void 0,l=a-s,c=n(l),u=a<=o;s=a;const d={loaded:a,total:o,progress:o?a/o:void 0,bytes:l,rate:c||void 0,estimated:c&&o&&u?(o-a)/c:void 0,event:i,lengthComputable:o!=null,[e?"download":"upload"]:!0};r(d)},t)},ux=(r,e)=>{const t=r!=null;return[s=>e[0]({lengthComputable:t,total:r,loaded:s}),e[1]]},dx=r=>(...e)=>W.asap(()=>r(...e)),T$e=Gs.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let s;function n(i){let a=i;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return s=n(window.location.href),function(a){const o=W.isString(a)?n(a):a;return o.protocol===s.protocol&&o.host===s.host}}():function(){return function(){return!0}}(),k$e=Gs.hasStandardBrowserEnv?{write(r,e,t,s,n,i){const a=[r+"="+encodeURIComponent(e)];W.isNumber(t)&&a.push("expires="+new Date(t).toGMTString()),W.isString(s)&&a.push("path="+s),W.isString(n)&&a.push("domain="+n),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function D$e(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function M$e(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function rP(r,e){return r&&!D$e(e)?M$e(r,e):e}const px=r=>r instanceof zr?{...r}:r;function Na(r,e){e=e||{};const t={};function s(c,u,d){return W.isPlainObject(c)&&W.isPlainObject(u)?W.merge.call({caseless:d},c,u):W.isPlainObject(u)?W.merge({},u):W.isArray(u)?u.slice():u}function n(c,u,d){if(W.isUndefined(u)){if(!W.isUndefined(c))return s(void 0,c,d)}else return s(c,u,d)}function i(c,u){if(!W.isUndefined(u))return s(void 0,u)}function a(c,u){if(W.isUndefined(u)){if(!W.isUndefined(c))return s(void 0,c)}else return s(void 0,u)}function o(c,u,d){if(d in e)return s(c,u);if(d in r)return s(void 0,c)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:o,headers:(c,u)=>n(px(c),px(u),!0)};return W.forEach(Object.keys(Object.assign({},r,e)),function(u){const d=l[u]||n,p=d(r[u],e[u],u);W.isUndefined(p)&&d!==o||(t[u]=p)}),t}const sP=r=>{const e=Na({},r);let{data:t,withXSRFToken:s,xsrfHeaderName:n,xsrfCookieName:i,headers:a,auth:o}=e;e.headers=a=zr.from(a),e.url=X9(rP(e.baseURL,e.url),r.params,r.paramsSerializer),o&&a.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(W.isFormData(t)){if(Gs.hasStandardBrowserEnv||Gs.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((l=a.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];a.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Gs.hasStandardBrowserEnv&&(s&&W.isFunction(s)&&(s=s(e)),s||s!==!1&&T$e(e.url))){const c=n&&i&&k$e.read(i);c&&a.set(n,c)}return e},R$e=typeof XMLHttpRequest<"u",I$e=R$e&&function(r){return new Promise(function(t,s){const n=sP(r);let i=n.data;const a=zr.from(n.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:c}=n,u,d,p,h,m;function g(){h&&h(),m&&m(),n.cancelToken&&n.cancelToken.unsubscribe(u),n.signal&&n.signal.removeEventListener("abort",u)}let v=new XMLHttpRequest;v.open(n.method.toUpperCase(),n.url,!0),v.timeout=n.timeout;function y(){if(!v)return;const x=zr.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),E={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:r,request:v};tP(function(K){t(K),g()},function(K){s(K),g()},E),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(s(new Ne("Request aborted",Ne.ECONNABORTED,r,v)),v=null)},v.onerror=function(){s(new Ne("Network Error",Ne.ERR_NETWORK,r,v)),v=null},v.ontimeout=function(){let S=n.timeout?"timeout of "+n.timeout+"ms exceeded":"timeout exceeded";const E=n.transitional||Q9;n.timeoutErrorMessage&&(S=n.timeoutErrorMessage),s(new Ne(S,E.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,r,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&W.forEach(a.toJSON(),function(S,E){v.setRequestHeader(E,S)}),W.isUndefined(n.withCredentials)||(v.withCredentials=!!n.withCredentials),o&&o!=="json"&&(v.responseType=n.responseType),c&&([p,m]=jf(c,!0),v.addEventListener("progress",p)),l&&v.upload&&([d,h]=jf(l),v.upload.addEventListener("progress",d),v.upload.addEventListener("loadend",h)),(n.cancelToken||n.signal)&&(u=x=>{v&&(s(!x||x.type?new Zl(null,r,v):x),v.abort(),v=null)},n.cancelToken&&n.cancelToken.subscribe(u),n.signal&&(n.signal.aborted?u():n.signal.addEventListener("abort",u)));const C=A$e(n.url);if(C&&Gs.protocols.indexOf(C)===-1){s(new Ne("Unsupported protocol "+C+":",Ne.ERR_BAD_REQUEST,r));return}v.send(i||null)})},F$e=(r,e)=>{let t=new AbortController,s;const n=function(l){if(!s){s=!0,a();const c=l instanceof Error?l:this.reason;t.abort(c instanceof Ne?c:new Zl(c instanceof Error?c.message:c))}};let i=e&&setTimeout(()=>{n(new Ne(`timeout ${e} of ms exceeded`,Ne.ETIMEDOUT))},e);const a=()=>{r&&(i&&clearTimeout(i),i=null,r.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",n):l.unsubscribe(n))}),r=null)};r.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",n));const{signal:o}=t;return o.unsubscribe=a,[o,()=>{i&&clearTimeout(i),i=null}]},H$e=function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let s=0,n;for(;s<t;)n=s+e,yield r.slice(s,n),s=n},B$e=async function*(r,e,t){for await(const s of r)yield*H$e(ArrayBuffer.isView(s)?s:await t(String(s)),e)},hx=(r,e,t,s,n)=>{const i=B$e(r,e,n);let a=0,o,l=c=>{o||(o=!0,s&&s(c))};return new ReadableStream({async pull(c){try{const{done:u,value:d}=await i.next();if(u){l(),c.close();return}let p=d.byteLength;if(t){let h=a+=p;t(h)}c.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(c){return l(c),i.return()}},{highWaterMark:2})},L1=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",nP=L1&&typeof ReadableStream=="function",A0=L1&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),iP=(r,...e)=>{try{return!!r(...e)}catch{return!1}},j$e=nP&&iP(()=>{let r=!1;const e=new Request(Gs.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),fx=64*1024,E0=nP&&iP(()=>W.isReadableStream(new Response("").body)),Vf={stream:E0&&(r=>r.body)};L1&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Vf[e]&&(Vf[e]=W.isFunction(r[e])?t=>t[e]():(t,s)=>{throw new Ne(`Response type '${e}' is not supported`,Ne.ERR_NOT_SUPPORT,s)})})})(new Response);const V$e=async r=>{if(r==null)return 0;if(W.isBlob(r))return r.size;if(W.isSpecCompliantForm(r))return(await new Request(r).arrayBuffer()).byteLength;if(W.isArrayBufferView(r)||W.isArrayBuffer(r))return r.byteLength;if(W.isURLSearchParams(r)&&(r=r+""),W.isString(r))return(await A0(r)).byteLength},N$e=async(r,e)=>{const t=W.toFiniteNumber(r.getContentLength());return t??V$e(e)},z$e=L1&&(async r=>{let{url:e,method:t,data:s,signal:n,cancelToken:i,timeout:a,onDownloadProgress:o,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=sP(r);c=c?(c+"").toLowerCase():"text";let[h,m]=n||i||a?F$e([n,i],a):[],g,v;const y=()=>{!g&&setTimeout(()=>{h&&h.unsubscribe()}),g=!0};let C;try{if(l&&j$e&&t!=="get"&&t!=="head"&&(C=await N$e(u,s))!==0){let G=new Request(e,{method:"POST",body:s,duplex:"half"}),K;if(W.isFormData(s)&&(K=G.headers.get("content-type"))&&u.setContentType(K),G.body){const[le,ue]=ux(C,jf(dx(l)));s=hx(G.body,fx,le,ue,A0)}}W.isString(d)||(d=d?"include":"omit"),v=new Request(e,{...p,signal:h,method:t.toUpperCase(),headers:u.normalize().toJSON(),body:s,duplex:"half",credentials:d});let x=await fetch(v);const S=E0&&(c==="stream"||c==="response");if(E0&&(o||S)){const G={};["status","statusText","headers"].forEach(ie=>{G[ie]=x[ie]});const K=W.toFiniteNumber(x.headers.get("content-length")),[le,ue]=o&&ux(K,jf(dx(o),!0))||[];x=new Response(hx(x.body,fx,le,()=>{ue&&ue(),S&&y()},A0),G)}c=c||"text";let E=await Vf[W.findKey(Vf,c)||"text"](x,r);return!S&&y(),m&&m(),await new Promise((G,K)=>{tP(G,K,{data:E,headers:zr.from(x.headers),status:x.status,statusText:x.statusText,config:r,request:v})})}catch(x){throw y(),x&&x.name==="TypeError"&&/fetch/i.test(x.message)?Object.assign(new Ne("Network Error",Ne.ERR_NETWORK,r,v),{cause:x.cause||x}):Ne.from(x,x&&x.code,r,v)}}),O0={http:a$e,xhr:I$e,fetch:z$e};W.forEach(O0,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const mx=r=>`- ${r}`,U$e=r=>W.isFunction(r)||r===null||r===!1,aP={getAdapter:r=>{r=W.isArray(r)?r:[r];const{length:e}=r;let t,s;const n={};for(let i=0;i<e;i++){t=r[i];let a;if(s=t,!U$e(t)&&(s=O0[(a=String(t)).toLowerCase()],s===void 0))throw new Ne(`Unknown adapter '${a}'`);if(s)break;n[a||"#"+i]=s}if(!s){const i=Object.entries(n).map(([o,l])=>`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since :
`+i.map(mx).join(`
`):" "+mx(i[0]):"as no adapter specified";throw new Ne("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return s},adapters:O0};function jg(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new Zl(null,r)}function gx(r){return jg(r),r.headers=zr.from(r.headers),r.data=Bg.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),aP.getAdapter(r.adapter||Bd.adapter)(r).then(function(s){return jg(r),s.data=Bg.call(r,r.transformResponse,s),s.headers=zr.from(s.headers),s},function(s){return eP(s)||(jg(r),s&&s.response&&(s.response.data=Bg.call(r,r.transformResponse,s.response),s.response.headers=zr.from(s.response.headers))),Promise.reject(s)})}const oP="1.7.4",E2={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{E2[r]=function(s){return typeof s===r||"a"+(e<1?"n ":" ")+r}});const vx={};E2.transitional=function(e,t,s){function n(i,a){return"[Axios v"+oP+"] Transitional option '"+i+"'"+a+(s?". "+s:"")}return(i,a,o)=>{if(e===!1)throw new Ne(n(a," has been removed"+(t?" in "+t:"")),Ne.ERR_DEPRECATED);return t&&!vx[a]&&(vx[a]=!0,console.warn(n(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}};function W$e(r,e,t){if(typeof r!="object")throw new Ne("options must be an object",Ne.ERR_BAD_OPTION_VALUE);const s=Object.keys(r);let n=s.length;for(;n-- >0;){const i=s[n],a=e[i];if(a){const o=r[i],l=o===void 0||a(o,i,r);if(l!==!0)throw new Ne("option "+i+" must be "+l,Ne.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new Ne("Unknown option "+i,Ne.ERR_BAD_OPTION)}}const T0={assertOptions:W$e,validators:E2},ci=T0.validators;class ba{constructor(e){this.defaults=e,this.interceptors={request:new lx,response:new lx}}async request(e,t){try{return await this._request(e,t)}catch(s){if(s instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;const i=n.stack?n.stack.replace(/^.+\n/,""):"";try{s.stack?i&&!String(s.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+i):s.stack=i}catch{}}throw s}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Na(this.defaults,t);const{transitional:s,paramsSerializer:n,headers:i}=t;s!==void 0&&T0.assertOptions(s,{silentJSONParsing:ci.transitional(ci.boolean),forcedJSONParsing:ci.transitional(ci.boolean),clarifyTimeoutError:ci.transitional(ci.boolean)},!1),n!=null&&(W.isFunction(n)?t.paramsSerializer={serialize:n}:T0.assertOptions(n,{encode:ci.function,serialize:ci.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&W.merge(i.common,i[t.method]);i&&W.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),t.headers=zr.concat(a,i);const o=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(t)===!1||(l=l&&g.synchronous,o.unshift(g.fulfilled,g.rejected))});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let u,d=0,p;if(!l){const m=[gx.bind(this),void 0];for(m.unshift.apply(m,o),m.push.apply(m,c),p=m.length,u=Promise.resolve(t);d<p;)u=u.then(m[d++],m[d++]);return u}p=o.length;let h=t;for(d=0;d<p;){const m=o[d++],g=o[d++];try{h=m(h)}catch(v){g.call(this,v);break}}try{u=gx.call(this,h)}catch(m){return Promise.reject(m)}for(d=0,p=c.length;d<p;)u=u.then(c[d++],c[d++]);return u}getUri(e){e=Na(this.defaults,e);const t=rP(e.baseURL,e.url);return X9(t,e.params,e.paramsSerializer)}}W.forEach(["delete","get","head","options"],function(e){ba.prototype[e]=function(t,s){return this.request(Na(s||{},{method:e,url:t,data:(s||{}).data}))}});W.forEach(["post","put","patch"],function(e){function t(s){return function(i,a,o){return this.request(Na(o||{},{method:e,headers:s?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}ba.prototype[e]=t(),ba.prototype[e+"Form"]=t(!0)});class O2{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const s=this;this.promise.then(n=>{if(!s._listeners)return;let i=s._listeners.length;for(;i-- >0;)s._listeners[i](n);s._listeners=null}),this.promise.then=n=>{let i;const a=new Promise(o=>{s.subscribe(o),i=o}).then(n);return a.cancel=function(){s.unsubscribe(i)},a},e(function(i,a,o){s.reason||(s.reason=new Zl(i,a,o),t(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}static source(){let e;return{token:new O2(function(n){e=n}),cancel:e}}}function G$e(r){return function(t){return r.apply(null,t)}}function q$e(r){return W.isObject(r)&&r.isAxiosError===!0}const k0={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(k0).forEach(([r,e])=>{k0[e]=r});function lP(r){const e=new ba(r),t=B9(ba.prototype.request,e);return W.extend(t,ba.prototype,e,{allOwnKeys:!0}),W.extend(t,e,null,{allOwnKeys:!0}),t.create=function(n){return lP(Na(r,n))},t}const Dt=lP(Bd);Dt.Axios=ba;Dt.CanceledError=Zl;Dt.CancelToken=O2;Dt.isCancel=eP;Dt.VERSION=oP;Dt.toFormData=P1;Dt.AxiosError=Ne;Dt.Cancel=Dt.CanceledError;Dt.all=function(e){return Promise.all(e)};Dt.spread=G$e;Dt.isAxiosError=q$e;Dt.mergeConfig=Na;Dt.AxiosHeaders=zr;Dt.formToJSON=r=>J9(W.isHTMLForm(r)?new FormData(r):r);Dt.getAdapter=aP.getAdapter;Dt.HttpStatusCode=k0;Dt.default=Dt;const Z$e=r=>{if(r)try{const e=new URL(r),t=e.pathname.endsWith("/")?e.pathname.slice(0,-1):e.pathname;return`${e.protocol}//${e.host}${t}`}catch(e){ye.debug("Error parsing endpoint url in config.json",e)}},Y$e=(r,e)=>{const t=(s,...n)=>ye.debug(`[webSocketWrapper] ${r} ${s}`,...n);return new Promise((s,n)=>{t("opening...");const i=()=>{e==null||e.removeEventListener("abort",a),o.close()},a=()=>{t("aborted"),i(),n(new Error("AbortError"))};e==null||e.addEventListener("abort",a);const o=new WebSocket(r);o.onopen=l=>{t("opened",l),i(),s(null)},o.onerror=l=>{t("error",l),i(),n(l)},o.onclose=l=>{t("closed",l)}})},K$e=r=>"any"in Promise&&typeof Promise.any=="function"?Promise.any(r):Promise.all([...r].map(e=>new Promise((t,s)=>Promise.resolve(e).then(s,t)))).then(e=>Promise.reject(e),e=>Promise.resolve(e)),X$e=(r,e)=>{const t=(s,...n)=>ye.debug(`[sleep] ${s}`,...n);return new Promise((s,n)=>{t(`sleeping for ${r}...`);const i=()=>{e==null||e.removeEventListener("abort",a),clearTimeout(l)},a=()=>{t("aborted"),i(),n(new Error("AbortError"))},o=()=>{t("timed out"),i(),s(null)};e==null||e.addEventListener("abort",a);const l=setTimeout(o,r)})},Q$e=async()=>{const r=await rt.get("./config.json");if(r&&r.data)return ye.debug("Loaded web host configuration",r.data),r.data;throw ye.debug("Failed loading web host configuration"),new Error("Unable to load host configuration. Please check the host.")},J$e=async r=>{if(he.LOCAL_INSTANCES_STORAGE_KEY in localStorage){const n=JSON.parse(localStorage[he.LOCAL_INSTANCES_STORAGE_KEY]);if(n&&n.length){for(const i of n)if(i.active)return ye.debug("API Config from Local Storage",i),i}}const e=[],t=[];if(r&&"blacklist"in r&&r.blacklist.length&&t.push(...r.blacklist),r&&"endpoints"in r&&r.endpoints.length&&e.push(...r.endpoints.map(Z$e).filter(n=>!!n)),t.findIndex(n=>n.includes(document.location.hostname))===-1){e.push(`${document.location.protocol}//${document.location.host}`);const n=document.location.protocol==="https:"?"7130":"7125";e.push(`${document.location.protocol}//${document.location.hostname}:${n}`)}const s=new AbortController;try{const{signal:n}=s,i=async()=>(await X$e(5e3,n),{apiUrl:"",socketUrl:""});return await K$e([...e.map(async a=>{const o=b.$filters.getApiUrls(a);return await Y$e(o.socketUrl,n),o}),i()])}finally{s.abort()}},eSe=async(r,e)=>{var s;const t={data:{},apiConnected:!0,apiAuthenticated:!0};if(r.apiUrl!==""&&r.socketUrl!=="")try{const n=await rt.serverDatabaseItemGet(e);t.data=n.data.result.value,ye.debug("loaded db",e,t.data)}catch(n){switch(Dt.isAxiosError(n)?(s=n.response)==null?void 0:s.status:0){case 404:break;case 401:t.apiAuthenticated=!1;break;default:ye.debug("API Down / Not Available:",n),t.apiConnected=!1;break}}else t.apiConnected=!1,t.apiAuthenticated=!1;return t},A1=async(r,e)=>{if(await wr.dispatch("reset",void 0,{root:!0}),e||(e=await Q$e()),!(he.LOCAL_INSTANCES_STORAGE_KEY in localStorage))for(const n of e.endpoints)r=b.$filters.getApiUrls(n),await wr.dispatch("config/initLocal",{apiConfig:r});r||(r=await J$e(e)),r.apiUrl&&(rt.defaults.baseURL=r.apiUrl),await wr.dispatch("config/onInitApiConfig",r),ye.debug("inited apis",wr.state.config,r),await wr.dispatch("auth/initAuth");let t=!0,s=!0;for(const{NAMESPACE:n,ROOTS:i}of Object.values(he.MOONRAKER_DB)){if(!t&&!s)break;if(Object.keys(i).length===0)continue;const a=await eSe(r,n);if(s=a.apiAuthenticated,t=a.apiConnected,!t||!s)break;const{data:o}=a,c=Object.values(i).map(async u=>{const d=u.name?o[u.name]:o;if(u.migrate_only)d&&wr.dispatch(u.dispatch,d);else{if(!d)try{await rt.serverDatabaseItemPost(n,u.name,{})}catch(p){ye.debug("Error creating database item",p)}await wr.dispatch(u.dispatch,d||{})}});await Promise.all(c)}return await wr.dispatch("init",{apiConfig:r,hostConfig:e,apiConnected:t}),ts.currentRoute.path!=="/"&&wr.state.auth.authenticated&&ts.push("/"),{apiConfig:r,hostConfig:e,apiConnected:t,apiAuthenticated:s}};var tSe=Object.defineProperty,rSe=Object.getOwnPropertyDescriptor,sSe=(r,e,t,s)=>{for(var n=s>1?void 0:s?rSe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&tSe(e,t,n),n};let D0=class extends b{constructor(){super(...arguments);f(this,"username","");f(this,"password","");f(this,"error",!1);f(this,"loading",!1);f(this,"source","moonraker");f(this,"availableSources",[this.source])}async mounted(){const t=await this.$store.dispatch("auth/getAuthInfo");this.source=t.defaultSource??this.source,this.availableSources=t.availableSources??this.availableSources}async handleLogin(){this.error=!1,this.loading=!0;try{await this.$store.dispatch("auth/login",{username:this.username,password:this.password,source:this.source})}catch{this.error=!0}if(this.loading=!1,!this.error){const t=this.$store.getters["config/getCurrentInstance"],s=await A1(t,this.$store.state.config.hostConfig);s.apiConnected&&s.apiAuthenticated&&(ye.debug("Activating socket with config",s),this.$socket.connect(s.apiConfig.socketUrl))}}};D0=sSe([L({})],D0);var nSe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown,justify:"center",align:"center"}},[t(I,{attrs:{cols:"12",md:"4",lg:"3",xl:"2"}},[t(Tl,{on:{submit:function(s){return s.preventDefault(),e.handleLogin.apply(null,arguments)}}},[t("div",{staticClass:"text-center"},[t("p",{domProps:{innerHTML:e._s(e.$t("app.general.msg.welcome_back"))}}),e.error?t(Vn,{attrs:{type:"error"}},[e._v(" "+e._s(e.$t("app.general.simple_form.error.credentials"))+" ")]):e._e(),t(ae,{staticClass:"mb-4",attrs:{label:e.$t("app.general.label.username"),autocomplete:"username",spellcheck:"false",filled:"",dense:"","hide-details":"auto",disabled:e.loading},model:{value:e.username,callback:function(s){e.username=s},expression:"username"}}),t(ae,{staticClass:"mb-4",attrs:{label:e.$t("app.general.label.password"),autocomplete:"current-password",filled:"",dense:"",type:"password","hide-details":"auto",disabled:e.loading},model:{value:e.password,callback:function(s){e.password=s},expression:"password"}}),e.availableSources.length>1?t(Te,{staticClass:"mb-4",attrs:{label:e.$t("app.general.label.auth_source"),filled:"",dense:"","hide-details":"auto",disabled:e.loading,items:e.availableSources.map(s=>({text:e.$t(`app.general.label.${s}`),value:s}))},model:{value:e.source,callback:function(s){e.source=s},expression:"source"}}):e._e(),t(M,{staticClass:"mb-6",attrs:{type:"submit",disabled:e.loading,large:"",block:""}},[e.loading?t(w,{staticClass:"spin mr-2"},[e._v(" $loading ")]):e._e(),e._v(" "+e._s(e.$t("app.general.btn.login"))+" ")],1),t(M,{staticClass:"custom-transform-class text-none",attrs:{color:"",plain:"",href:e.$globals.DOCS_AUTH_LOST_PASSWORD,target:"_blank"}},[e._v(" "+e._s(e.$t("app.general.btn.forgot_password"))+" ")]),t(M,{staticClass:"custom-transform-class text-none",attrs:{color:"",plain:"",href:e.$globals.DOCS_AUTH,target:"_blank"}},[e._v(" "+e._s(e.$t("app.general.btn.auth_unsure"))+" ")])],1)])],1)],1)},iSe=[],aSe=A(D0,nSe,iSe,!1,null,"390f09e5");const oSe=aSe.exports;var lSe=Object.defineProperty,cSe=Object.getOwnPropertyDescriptor,uSe=(r,e,t,s)=>{for(var n=s>1?void 0:s?cSe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&lSe(e,t,n),n};let M0=class extends Z(X){get icons(){return Object.keys(ou)}};M0=uSe([L({})],M0);var dSe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(te,{attrs:{dense:e.$vuetify.breakpoint.smAndDown}},[t(I,{attrs:{cols:"12"}},[t("h1",[e._v("All configured icons")]),e._l(e.icons,function(s){return t(Oe,{key:s,staticClass:"d-inline-block",attrs:{top:""},scopedSlots:e._u([{key:"activator",fn:function({attrs:n,on:i}){return[t(w,e._g(e._b({staticClass:"ma-2"},"v-icon",n,!1),i),[e._v(" $"+e._s(s)+" ")])]}}],null,!0)},[e._v(" "+e._s(s)+" ")])})],2)],1)},pSe=[],hSe=A(M0,dSe,pSe,!1,null,null);const fSe=hSe.exports;try{self["workbox:core:7.0.0"]&&_()}catch{}try{self["workbox:routing:7.0.0"]&&_()}catch{}b.use(b4);const mSe=(r,e,t)=>{if(ts.app.$store.getters["auth/getAuthenticated"]||!ts.app.$store.state.socket.apiConnected){if(r.query.url!=null){ts.app.$socket.close();const s=r.query.url,n=b.$filters.getApiUrls(s+".aws.qidi3dprinter.com:7680");A1(n,ts.app.$store.state.config.hostConfig).then(i=>{i.apiConfig.socketUrl&&i.apiConnected&&i.apiAuthenticated&&b.$socket.connect(i.apiConfig.socketUrl)})}r.query.theme!=null&&(r.query.theme=="light"?ts.app.$store.dispatch("config/updateTheme",{isDark:!1}):r.query.theme=="dark"&&ts.app.$store.dispatch("config/updateTheme",{isDark:!0})),t()}else t("/login")},gs={beforeEnter:mSe,meta:{fileDropRoot:"gcodes"}},gSe=[{path:"/",name:"Dashboard",component:nle,...gs},{path:"/console",name:"Console",component:dle,...gs},{path:"/jobs",name:"Jobs",component:Cle,...gs},{path:"/tune",name:"Tune",component:Xle,...gs},{path:"/diagnostics",name:"Diagnostics",component:aue,...gs},{path:"/timelapse",name:"Timelapse",component:sde,...gs,meta:{fileDropRoot:"timelapse"}},{path:"/history",name:"History",component:Oue,...gs},{path:"/system",name:"System",component:Rpe,...gs},{path:"/configure",name:"Configuration",component:gpe,...gs,meta:{}},{path:"/settings",name:"Settings",...gs,meta:{hasSubNavigation:!0},components:{default:a1e,navigation:d5},children:[{path:"/settings/macros/:categoryId",name:"Macros",meta:{hasSubNavigation:!0},components:{default:a2e,navigation:d5}}]},{path:"/camera/:cameraId",name:"Camera",component:h2e,...gs},{path:"/preview",name:"Gcode Preview",component:_le,...gs},{path:"/login",name:"Login",component:oSe,meta:{fillHeight:!0}},{path:"/icons",name:"Icons",component:fSe},{path:"*",name:"404",component:b2e}],ts=new b4({base:"./",routes:gSe,scrollBehavior:(r,e,t)=>t||(r.hash?{selector:r.hash,offset:{x:0,y:60},behavior:"smooth"}:{x:0,y:0})});ts.beforeEach((r,e,t)=>{var s;(s=ts.app)==null||s.$store.commit("config/setContainerColumnCount",2),t()});function vSe(){var r=window.navigator.userAgent,e=r.indexOf("MSIE ");if(e>0)return parseInt(r.substring(e+5,r.indexOf(".",e)),10);var t=r.indexOf("Trident/");if(t>0){var s=r.indexOf("rv:");return parseInt(r.substring(s+3,r.indexOf(".",s)),10)}var n=r.indexOf("Edge/");return n>0?parseInt(r.substring(n+5,r.indexOf(".",n)),10):-1}var ah=void 0;function R0(){R0.init||(R0.init=!0,ah=vSe()!==-1)}var I0={render:function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{compareAndNotify:function(){(this._w!==this.$el.offsetWidth||this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.$emit("notify"))},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!ah&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),delete this._resizeObject.onload)}},mounted:function(){var e=this;R0(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",ah&&this.$el.appendChild(t),t.data="about:blank",ah||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}};function _Se(r){r.component("resize-observer",I0),r.component("ResizeObserver",I0)}var ySe={version:"0.4.5",install:_Se},Nf=null;typeof window<"u"?Nf=window.Vue:typeof global<"u"&&(Nf=global.Vue);Nf&&Nf.use(ySe);function oh(r){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?oh=function(e){return typeof e}:oh=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oh(r)}function bSe(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function $Se(r,e){for(var t=0;t<e.length;t++){var s=e[t];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(r,s.key,s)}}function SSe(r,e,t){return e&&$Se(r.prototype,e),r}function _x(r){return wSe(r)||xSe(r)||CSe()}function wSe(r){if(Array.isArray(r)){for(var e=0,t=new Array(r.length);e<r.length;e++)t[e]=r[e];return t}}function xSe(r){if(Symbol.iterator in Object(r)||Object.prototype.toString.call(r)==="[object Arguments]")return Array.from(r)}function CSe(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function PSe(r){var e;return typeof r=="function"?e={callback:r}:e=r,e}function LSe(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,n,i,a=function(l){for(var c=arguments.length,u=new Array(c>1?c-1:0),d=1;d<c;d++)u[d-1]=arguments[d];if(i=u,!(s&&l===n)){var p=t.leading;typeof p=="function"&&(p=p(l,n)),(!s||l!==n)&&p&&r.apply(void 0,[l].concat(_x(i))),n=l,clearTimeout(s),s=setTimeout(function(){r.apply(void 0,[l].concat(_x(i))),s=0},e)}};return a._clear=function(){clearTimeout(s),s=null},a}function cP(r,e){if(r===e)return!0;if(oh(r)==="object"){for(var t in r)if(!cP(r[t],e[t]))return!1;return!0}return!1}var ASe=function(){function r(e,t,s){bSe(this,r),this.el=e,this.observer=null,this.frozen=!1,this.createObserver(t,s)}return SSe(r,[{key:"createObserver",value:function(t,s){var n=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=PSe(t),this.callback=function(o,l){n.options.callback(o,l),o&&n.options.once&&(n.frozen=!0,n.destroyObserver())},this.callback&&this.options.throttle){var i=this.options.throttleOptions||{},a=i.leading;this.callback=LSe(this.callback,this.options.throttle,{leading:function(l){return a==="both"||a==="visible"&&l||a==="hidden"&&!l}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(o){var l=o[0];if(o.length>1){var c=o.find(function(d){return d.isIntersecting});c&&(l=c)}if(n.callback){var u=l.isIntersecting&&l.intersectionRatio>=n.threshold;if(u===n.oldResult)return;n.oldResult=u,n.callback(u,l)}},this.options.intersection),s.context.$nextTick(function(){n.observer&&n.observer.observe(n.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&this.options.intersection.threshold||0}}]),r}();function uP(r,e,t){var s=e.value;if(s)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var n=new ASe(r,s,t);r._vue_visibilityState=n}}function ESe(r,e,t){var s=e.value,n=e.oldValue;if(!cP(s,n)){var i=r._vue_visibilityState;if(!s){dP(r);return}i?i.createObserver(s,t):uP(r,{value:s},t)}}function dP(r){var e=r._vue_visibilityState;e&&(e.destroyObserver(),delete r._vue_visibilityState)}var pP={bind:uP,update:ESe,unbind:dP};function OSe(r){r.directive("observe-visibility",pP)}var TSe={version:"0.4.6",install:OSe},zf=null;typeof window<"u"?zf=window.Vue:typeof global<"u"&&(zf=global.Vue);zf&&zf.use(TSe);var hP={exports:{}};(function(r){(function(e,t){r.exports?r.exports=t():e.Scrollparent=t()})(Mb,function(){function e(s){var n=getComputedStyle(s,null).getPropertyValue("overflow");return n.indexOf("scroll")>-1||n.indexOf("auto")>-1}function t(s){if(s instanceof HTMLElement||s instanceof SVGElement){for(var n=s.parentNode;n.parentNode;){if(e(n))return n;n=n.parentNode}return document.scrollingElement||document.documentElement}}return t})})(hP);var kSe=hP.exports;const yx=Il(kSe);var fP={itemsLimit:1e3};const mP={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:r=>["vertical","horizontal"].includes(r)},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function gP(){return this.items.length&&typeof this.items[0]!="object"}let F0=!1;if(typeof window<"u"){F0=!1;try{var DSe=Object.defineProperty({},"passive",{get(){F0=!0}});window.addEventListener("test",null,DSe)}catch{}}let MSe=0;var RSe={name:"RecycleScroller",components:{ResizeObserver:I0},directives:{ObserveVisibility:pP},props:{...mP,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const r={"-1":{accumulator:0}},e=this.items,t=this.sizeField,s=this.minItemSize;let n=1e4,i=0,a;for(let o=0,l=e.length;o<l;o++)a=e[o][t]||s,a<n&&(n=a),i+=a,r[o]={accumulator:i,size:a};return this.$_computedMinItemSize=n,r}return[]},simpleArray:gP},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const r=this.$_lastUpdateScrollPosition;typeof r=="number"&&this.$nextTick(()=>{this.scrollToPosition(r)})},beforeDestroy(){this.removeListeners()},methods:{addView(r,e,t,s,n){const i={item:t,position:0},a={id:MSe++,index:e,used:!0,key:s,type:n};return Object.defineProperty(i,"nr",{configurable:!1,value:a}),r.push(i),i},unuseView(r,e=!1){const t=this.$_unusedViews,s=r.nr.type;let n=t.get(s);n||(n=[],t.set(s,n)),n.push(r),e||(r.nr.used=!1,r.position=-9999,this.$_views.delete(r.nr.key))},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(r){this.$_scrollDirty||(this.$_scrollDirty=!0,requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:e}=this.updateVisibleItems(!1,!0);e||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,100))}))},handleVisibilityChange(r,e){this.ready&&(r||e.boundingClientRect.width!==0||e.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(r,e=!1){const t=this.itemSize,s=this.gridItems||1,n=this.itemSecondarySize||t,i=this.$_computedMinItemSize,a=this.typeField,o=this.simpleArray?null:this.keyField,l=this.items,c=l.length,u=this.sizes,d=this.$_views,p=this.$_unusedViews,h=this.pool;let m,g,v,y,C;if(!c)m=g=y=C=v=0;else if(this.$_prerender)m=y=0,g=C=Math.min(this.prerender,l.length),v=null;else{const ie=this.getScroll();if(e){let T=ie.start-this.$_lastUpdateScrollPosition;if(T<0&&(T=-T),t===null&&T<i||T<t)return{continuous:!0}}this.$_lastUpdateScrollPosition=ie.start;const fe=this.buffer;ie.start-=fe,ie.end+=fe;let k=0;if(this.$refs.before&&(k=this.$refs.before.scrollHeight,ie.start-=k),this.$refs.after){const T=this.$refs.after.scrollHeight;ie.end+=T}if(t===null){let T,P=0,O=c-1,j=~~(c/2),V;do V=j,T=u[j].accumulator,T<ie.start?P=j:j<c-1&&u[j+1].accumulator>ie.start&&(O=j),j=~~((P+O)/2);while(j!==V);for(j<0&&(j=0),m=j,v=u[c-1].accumulator,g=j;g<c&&u[g].accumulator<ie.end;g++);for(g===-1?g=l.length-1:(g++,g>c&&(g=c)),y=m;y<c&&k+u[y].accumulator<ie.start;y++);for(C=y;C<c&&k+u[C].accumulator<ie.end;C++);}else{m=~~(ie.start/t*s);const T=m%s;m-=T,g=Math.ceil(ie.end/t*s),y=Math.max(0,Math.floor((ie.start-k)/t*s)),C=Math.floor((ie.end-k)/t*s),m<0&&(m=0),g>c&&(g=c),y<0&&(y=0),C>c&&(C=c),v=Math.ceil(c/s)*t}}g-m>fP.itemsLimit&&this.itemsLimitError(),this.totalSize=v;let x;const S=m<=this.$_endIndex&&g>=this.$_startIndex;if(this.$_continuous!==S){if(S){d.clear(),p.clear();for(let ie=0,fe=h.length;ie<fe;ie++)x=h[ie],this.unuseView(x)}this.$_continuous=S}else if(S)for(let ie=0,fe=h.length;ie<fe;ie++)x=h[ie],x.nr.used&&(r&&(x.nr.index=l.indexOf(x.item)),(x.nr.index===-1||x.nr.index<m||x.nr.index>=g)&&this.unuseView(x));const E=S?null:new Map;let G,K,le,ue;for(let ie=m;ie<g;ie++){G=l[ie];const fe=o?G[o]:G;if(fe==null)throw new Error(`Key is ${fe} on item (keyField is '${o}')`);if(x=d.get(fe),!t&&!u[ie].size){x&&this.unuseView(x);continue}x?(x.nr.used=!0,x.item=G):(ie===l.length-1&&this.$emit("scroll-end"),ie===0&&this.$emit("scroll-start"),K=G[a],le=p.get(K),S?le&&le.length?(x=le.pop(),x.item=G,x.nr.used=!0,x.nr.index=ie,x.nr.key=fe,x.nr.type=K):x=this.addView(h,ie,G,fe,K):(ue=E.get(K)||0,(!le||ue>=le.length)&&(x=this.addView(h,ie,G,fe,K),this.unuseView(x,!0),le=p.get(K)),x=le[ue],x.item=G,x.nr.used=!0,x.nr.index=ie,x.nr.key=fe,x.nr.type=K,E.set(K,ue+1),ue++),d.set(fe,x)),t===null?(x.position=u[ie-1].accumulator,x.offset=0):(x.position=Math.floor(ie/s)*t,x.offset=ie%s*n)}return this.$_startIndex=m,this.$_endIndex=g,this.emitUpdate&&this.$emit("update",m,g,y,C),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,300),{continuous:S}},getListenerTarget(){let r=yx(this.$el);return window.document&&(r===window.document.documentElement||r===window.document.body)&&(r=window),r},getScroll(){const{$el:r,direction:e}=this,t=e==="vertical";let s;if(this.pageMode){const n=r.getBoundingClientRect(),i=t?n.height:n.width;let a=-(t?n.top:n.left),o=t?window.innerHeight:window.innerWidth;a<0&&(o+=a,a=0),a+o>i&&(o=i-a),s={start:a,end:a+o}}else t?s={start:r.scrollTop,end:r.scrollTop+r.clientHeight}:s={start:r.scrollLeft,end:r.scrollLeft+r.clientWidth};return s},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,F0?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(r){let e;this.itemSize===null?e=r>0?this.sizes[r-1].accumulator:0:e=Math.floor(r/this.gridItems)*this.itemSize,this.scrollToPosition(e)},scrollToPosition(r){const e=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let t,s,n;if(this.pageMode){const i=yx(this.$el),a=i.tagName==="HTML"?0:i[e.scroll],o=i.getBoundingClientRect(),c=this.$el.getBoundingClientRect()[e.start]-o[e.start];t=i,s=e.scroll,n=r+a+c}else t=this.$el,s=e.scroll,n=r;t[s]=n},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((r,e)=>r.nr.index-e.nr.index)}}};function T2(r,e,t,s,n,i,a,o,l,c){const u=typeof t=="function"?t.options:t;return r&&r.render&&(u.render=r.render,u.staticRenderFns=r.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),t}const ISe=RSe;var vP=function(){var r,e,t=this,s=t.$createElement,n=t._self._c||s;return n("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:t.handleVisibilityChange,expression:"handleVisibilityChange"}],staticClass:"vue-recycle-scroller",class:(r={ready:t.ready,"page-mode":t.pageMode},r["direction-"+t.direction]=!0,r),on:{"&scroll":function(i){return t.handleScroll.apply(null,arguments)}}},[t.$slots.before?n("div",{ref:"before",staticClass:"vue-recycle-scroller__slot"},[t._t("before")],2):t._e(),t._v(" "),n(t.listTag,{ref:"wrapper",tag:"component",staticClass:"vue-recycle-scroller__item-wrapper",class:t.listClass,style:(e={},e[t.direction==="vertical"?"minHeight":"minWidth"]=t.totalSize+"px",e)},[t._l(t.pool,function(i){return n(t.itemTag,t._g({key:i.nr.id,tag:"component",staticClass:"vue-recycle-scroller__item-view",class:[t.itemClass,{hover:!t.skipHover&&t.hoverKey===i.nr.key}],style:t.ready?{transform:"translate"+(t.direction==="vertical"?"Y":"X")+"("+i.position+"px) translate"+(t.direction==="vertical"?"X":"Y")+"("+i.offset+"px)",width:t.gridItems?(t.direction==="vertical"&&t.itemSecondarySize||t.itemSize)+"px":void 0,height:t.gridItems?(t.direction==="horizontal"&&t.itemSecondarySize||t.itemSize)+"px":void 0}:null},t.skipHover?{}:{mouseenter:function(){t.hoverKey=i.nr.key},mouseleave:function(){t.hoverKey=null}}),[t._t("default",null,{item:i.item,index:i.nr.index,active:i.nr.used})],2)}),t._v(" "),t._t("empty")],2),t._v(" "),t.$slots.after?n("div",{ref:"after",staticClass:"vue-recycle-scroller__slot"},[t._t("after")],2):t._e(),t._v(" "),n("ResizeObserver",{on:{notify:t.handleResize}})],1)},FSe=[];vP._withStripped=!0;const HSe=void 0,BSe=void 0,jSe=!1,H0=T2({render:vP,staticRenderFns:FSe},HSe,ISe,BSe,jSe);var VSe={name:"DynamicScroller",components:{RecycleScroller:H0},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(r=>{requestAnimationFrame(()=>{if(Array.isArray(r)){for(const e of r)if(e.target){const t=new CustomEvent("resize",{detail:{contentRect:e.contentRect}});e.target.dispatchEvent(t)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...mP,minItemSize:{type:[Number,String],required:!0}},data(){return{vscrollData:{active:!0,sizes:{},validSizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:gP,itemsWithSize(){const r=[],{items:e,keyField:t,simpleArray:s}=this,n=this.vscrollData.sizes,i=e.length;for(let a=0;a<i;a++){const o=e[a],l=s?a:o[t];let c=n[l];typeof c>"u"&&!this.$_undefinedMap[l]&&(c=0),r.push({item:o,id:l,size:c})}return r},listeners(){const r={};for(const e in this.$listeners)e!=="resize"&&e!=="visible"&&(r[e]=this.$listeners[e]);return r}},watch:{items(){this.forceUpdate(!1)},simpleArray:{handler(r){this.vscrollData.simpleArray=r},immediate:!0},direction(r){this.forceUpdate(!0)},itemsWithSize(r,e){const t=this.$el.scrollTop;let s=0,n=0;const i=Math.min(r.length,e.length);for(let o=0;o<i&&!(s>=t);o++)s+=e[o].size||this.minItemSize,n+=r[o].size||this.minItemSize;const a=n-s;a!==0&&(this.$el.scrollTop+=a)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={}},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(r=!0){(r||this.simpleArray)&&(this.vscrollData.validSizes={}),this.$emit("vscroll:update",{force:!0})},scrollToItem(r){const e=this.$refs.scroller;e&&e.scrollToItem(r)},getItemSize(r,e=void 0){const t=this.simpleArray?e??this.items.indexOf(r):r[this.keyField];return this.vscrollData.sizes[t]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const r=this.$el;this.$nextTick(()=>{r.scrollTop=r.scrollHeight+5e3;const e=()=>{r.scrollTop=r.scrollHeight+5e3,requestAnimationFrame(()=>{r.scrollTop=r.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(e)})};requestAnimationFrame(e)})}}};const NSe=VSe;var _P=function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("RecycleScroller",r._g(r._b({ref:"scroller",attrs:{items:r.itemsWithSize,"min-item-size":r.minItemSize,direction:r.direction,"key-field":"id","list-tag":r.listTag,"item-tag":r.itemTag},on:{resize:r.onScrollerResize,visible:r.onScrollerVisible},scopedSlots:r._u([{key:"default",fn:function(s){var n=s.item,i=s.index,a=s.active;return[r._t("default",null,null,{item:n.item,index:i,active:a,itemWithSize:n})]}}],null,!0)},"RecycleScroller",r.$attrs,!1),r.listeners),[r._v(" "),t("template",{slot:"before"},[r._t("before")],2),r._v(" "),t("template",{slot:"after"},[r._t("after")],2),r._v(" "),t("template",{slot:"empty"},[r._t("empty")],2)],2)},zSe=[];_P._withStripped=!0;const USe=void 0,WSe=void 0,GSe=!1,bx=T2({render:_P,staticRenderFns:zSe},USe,NSe,WSe,GSe);var qSe={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.item.hasOwnProperty(this.vscrollData.keyField))return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.validSizes[this.id]&&this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(){this.size||this.onDataUpdate()},finalActive(r){this.size||(r?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?r?this.observeSize():this.unobserveSize():r&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const r in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[r],this.onDataUpdate);this.vscrollParent.$on("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$on("vscroll:update-size",this.onVscrollUpdateSize)}},mounted(){this.vscrollData.active&&(this.updateSize(),this.observeSize())},beforeDestroy(){this.vscrollParent.$off("vscroll:update",this.onVscrollUpdate),this.vscrollParent.$off("vscroll:update-size",this.onVscrollUpdateSize),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:r}){!this.finalActive&&r&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||r||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(r){this.$nextTick(()=>{if(this.id===r){const e=this.$el.offsetWidth,t=this.$el.offsetHeight;this.applySize(e,t)}this.$_pendingSizeUpdate=null})},applySize(r,e){const t=~~(this.vscrollParent.direction==="vertical"?e:r);t&&this.size!==t&&(this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.$set(this.vscrollData.sizes,this.id,t),this.$set(this.vscrollData.validSizes,this.id,!0),this.emitResize&&this.$emit("resize",this.id))},observeSize(){!this.vscrollResizeObserver||!this.$el.parentNode||(this.vscrollResizeObserver.observe(this.$el.parentNode),this.$el.parentNode.addEventListener("resize",this.onResize))},unobserveSize(){this.vscrollResizeObserver&&(this.vscrollResizeObserver.unobserve(this.$el.parentNode),this.$el.parentNode.removeEventListener("resize",this.onResize))},onResize(r){const{width:e,height:t}=r.detail.contentRect;this.applySize(e,t)}},render(r){return r(this.tag,this.$slots.default)}};const ZSe=qSe,YSe=void 0,KSe=void 0,XSe=void 0,$x=T2({},YSe,ZSe,KSe,XSe);function QSe(r,e){r.component(`${e}recycle-scroller`,H0),r.component(`${e}RecycleScroller`,H0),r.component(`${e}dynamic-scroller`,bx),r.component(`${e}DynamicScroller`,bx),r.component(`${e}dynamic-scroller-item`,$x),r.component(`${e}DynamicScrollerItem`,$x)}const yP={version:"1.1.2",install(r,e){const t=Object.assign({},{installComponents:!0,componentsPrefix:""},e);for(const s in t)typeof t[s]<"u"&&(fP[s]=t[s]);t.installComponents&&QSe(r,t.componentsPrefix)}};let Uf=null;typeof window<"u"?Uf=window.Vue:typeof global<"u"&&(Uf=global.Vue);Uf&&Uf.use(yP);var JSe=function(e){return ewe(e)&&!twe(e)};function ewe(r){return!!r&&typeof r=="object"}function twe(r){var e=Object.prototype.toString.call(r);return e==="[object RegExp]"||e==="[object Date]"||nwe(r)}var rwe=typeof Symbol=="function"&&Symbol.for,swe=rwe?Symbol.for("react.element"):60103;function nwe(r){return r.$$typeof===swe}function iwe(r){return Array.isArray(r)?[]:{}}function qu(r,e){return e.clone!==!1&&e.isMergeableObject(r)?_l(iwe(r),r,e):r}function awe(r,e,t){return r.concat(e).map(function(s){return qu(s,t)})}function owe(r,e){if(!e.customMerge)return _l;var t=e.customMerge(r);return typeof t=="function"?t:_l}function lwe(r){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r).filter(function(e){return Object.propertyIsEnumerable.call(r,e)}):[]}function Sx(r){return Object.keys(r).concat(lwe(r))}function bP(r,e){try{return e in r}catch{return!1}}function cwe(r,e){return bP(r,e)&&!(Object.hasOwnProperty.call(r,e)&&Object.propertyIsEnumerable.call(r,e))}function uwe(r,e,t){var s={};return t.isMergeableObject(r)&&Sx(r).forEach(function(n){s[n]=qu(r[n],t)}),Sx(e).forEach(function(n){cwe(r,n)||(bP(r,n)&&t.isMergeableObject(e[n])?s[n]=owe(n,t)(r[n],e[n],t):s[n]=qu(e[n],t))}),s}function _l(r,e,t){t=t||{},t.arrayMerge=t.arrayMerge||awe,t.isMergeableObject=t.isMergeableObject||JSe,t.cloneUnlessOtherwiseSpecified=qu;var s=Array.isArray(e),n=Array.isArray(r),i=s===n;return i?s?t.arrayMerge(r,e,t):uwe(r,e,t):qu(e,t)}_l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(s,n){return _l(s,n,t)},{})};var dwe=_l,pwe=dwe;const hwe=Il(pwe);/**
* vue-meta v2.4.0
* (c) 2020
* - Declan de Wet
* - Sébastien Chopin (@Atinux)
* - Pim (@pimlie)
* - All the amazing contributors
* @license MIT
*/var fwe="2.4.0";function Jc(r){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Jc=function(e){return typeof e}:Jc=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Jc(r)}function B0(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function wx(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(r);e&&(s=s.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,s)}return t}function Rs(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?wx(Object(t),!0).forEach(function(s){B0(r,s,t[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):wx(Object(t)).forEach(function(s){Object.defineProperty(r,s,Object.getOwnPropertyDescriptor(t,s))})}return r}function $P(r){return mwe(r)||gwe(r)||SP(r)||vwe()}function mwe(r){if(Array.isArray(r))return j0(r)}function gwe(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function SP(r,e){if(r){if(typeof r=="string")return j0(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return j0(r,e)}}function j0(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,s=new Array(e);t<e;t++)s[t]=r[t];return s}function vwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _we(r,e){var t;if(typeof Symbol>"u"||r[Symbol.iterator]==null){if(Array.isArray(r)||(t=SP(r))||e){t&&(r=t);var s=0,n=function(){};return{s:n,n:function(){return s>=r.length?{done:!0}:{done:!1,value:r[s++]}},e:function(l){throw l},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,o;return{s:function(){t=r[Symbol.iterator]()},n:function(){var l=t.next();return i=l.done,l},e:function(l){a=!0,o=l},f:function(){try{!i&&t.return!=null&&t.return()}finally{if(a)throw o}}}}function Wf(r){return Array.isArray(r)}function Fn(r){return typeof r>"u"}function E1(r){return Jc(r)==="object"}function xx(r){return Jc(r)==="object"&&r!==null}function O1(r){return typeof r=="function"}function ywe(r){return typeof r=="string"}function bwe(){try{return!Fn(window)}catch{return!1}}var $we=bwe(),Swe=$we?window:global,Vg=Swe.console||{};function Gf(r){!Vg||!Vg.warn||Vg.warn(r)}var wP=function(){return Gf("This vue app/component has no vue-meta configuration")},k2={title:void 0,titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},base:[],link:[],meta:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},Ze="_vueMeta",wwe="metaInfo",xwe="data-vue-meta",Cwe="data-vue-meta-server-rendered",Pwe="vmid",Lwe="template",Awe="content",Ewe="ssr",Owe=10,Twe=!0,Tn={keyName:wwe,attribute:xwe,ssrAttribute:Cwe,tagIDKeyName:Pwe,contentKeyName:Awe,metaTemplateKeyName:Lwe,waitOnDestroyed:Twe,debounceWait:Owe,ssrAppId:Ewe},$a=Object.keys(k2),qf=[$a[12],$a[13]],D2=[$a[1],$a[2],"changed"].concat(qf),T1=[$a[3],$a[4],$a[5]],kwe=["link","style","script"],Dwe=["base","meta","link"],Mwe=["noscript","script","style"],Rwe=["innerHTML","cssText","json"],xP=["once","skip","template"],CP=["body","pbody"],jd=["allowfullscreen","amp","amp-boilerplate","async","autofocus","autoplay","checked","compact","controls","declare","default","defaultchecked","defaultmuted","defaultselected","defer","disabled","enabled","formnovalidate","hidden","indeterminate","inert","ismap","itemscope","loop","multiple","muted","nohref","noresize","noshade","novalidate","nowrap","open","pauseonexit","readonly","required","reversed","scoped","seamless","selected","sortable","truespeed","typemustmatch","visible"],Ng=null;function wc(r,e,t){var s=r.debounceWait;!e[Ze].initialized&&(e[Ze].initializing||t==="watcher")&&(e[Ze].initialized=null),e[Ze].initialized&&!e[Ze].pausing&&Iwe(function(){return void e.$meta().refresh()},s)}function Iwe(r,e){if(e=e===void 0?10:e,!e){r();return}return clearTimeout(Ng),Ng=setTimeout(function(){r()},e),Ng}function Fwe(r,e,t){if(!Array.prototype.find){for(var s=0;s<r.length;s++)if(e.call(t,r[s],s,r))return r[s];return}return r.find(e,t)}function PP(r,e,t){if(!Array.prototype.findIndex){for(var s=0;s<r.length;s++)if(e.call(t,r[s],s,r))return s;return-1}return r.findIndex(e,t)}function M2(r){return Array.from?Array.from(r):Array.prototype.slice.call(r)}function zs(r,e){if(!Array.prototype.includes){for(var t in r)if(r[t]===e)return!0;return!1}return r.includes(e)}var R2=function(e,t){return(t||document).querySelectorAll(e)};function Fo(r,e){return r[e]||(r[e]=document.getElementsByTagName(e)[0]),r[e]}function Hwe(r){var e=r.body,t=r.pbody;return e?"body":t?"pbody":"head"}function zg(r,e,t){var s=e.appId,n=e.attribute,i=e.type,a=e.tagIDKeyName;t=t||{};var o=["".concat(i,"[").concat(n,'="').concat(s,'"]'),"".concat(i,"[data-").concat(a,"]")].map(function(l){for(var c in t){var u=t[c],d=u&&u!==!0?'="'.concat(u,'"'):"";l+="[data-".concat(c).concat(d,"]")}return l});return M2(R2(o.join(", "),r))}function Bwe(r,e){var t=r.attribute;M2(R2("[".concat(t,'="').concat(e,'"]'))).map(function(s){return s.remove()})}function Zf(r,e){r.removeAttribute(e)}function V0(r){return r=r||this,r&&(r[Ze]===!0||E1(r[Ze]))}function jwe(r){return r=r||this,r&&!Fn(r[Ze])}function LP(r,e){return r[Ze].pausing=!0,function(){return I2(r)}}function I2(r,e){return r[Ze].pausing=!1,r.$meta().refresh()}function N0(r){var e=r.$router;r[Ze].navGuards||!e||(r[Ze].navGuards=!0,e.beforeEach(function(t,s,n){LP(r),n()}),e.afterEach(function(){r.$nextTick(function(){var t=I2(r),s=t.metaInfo;s&&O1(s.afterNavigation)&&s.afterNavigation(s)})}))}var Cx=1;function Vwe(r,e){var t=["activated","deactivated","beforeMount"],s=!1;return{beforeCreate:function(){var i=this,a="$root",o=this[a],l=this.$options,c=r.config.devtools;if(Object.defineProperty(this,"_hasMetaInfo",{configurable:!0,get:function(){return c&&!o[Ze].deprecationWarningShown&&(Gf("VueMeta DeprecationWarning: _hasMetaInfo has been deprecated and will be removed in a future version. Please use hasMetaInfo(vm) instead"),o[Ze].deprecationWarningShown=!0),V0(this)}}),this===o&&o.$once("hook:beforeMount",function(){if(s=this.$el&&this.$el.nodeType===1&&this.$el.hasAttribute("data-server-rendered"),!s&&o[Ze]&&o[Ze].appId===1){var d=Fo({},"html");s=d&&d.hasAttribute(e.ssrAttribute)}}),!(Fn(l[e.keyName])||l[e.keyName]===null)){if(o[Ze]||(o[Ze]={appId:Cx},Cx++,c&&o.$options[e.keyName]&&this.$nextTick(function(){var d=Fwe(o.$children,function(p){return p.$vnode&&p.$vnode.fnOptions});d&&d.$vnode.fnOptions[e.keyName]&&Gf("VueMeta has detected a possible global mixin which adds a ".concat(e.keyName," property to all Vue components on the page. This could cause severe performance issues. If possible, use $meta().addApp to add meta information instead"))})),!this[Ze]){this[Ze]=!0;for(var u=this.$parent;u&&u!==o;)Fn(u[Ze])&&(u[Ze]=!1),u=u.$parent}O1(l[e.keyName])&&(l.computed=l.computed||{},l.computed.$metaInfo=l[e.keyName],this.$isServer||this.$on("hook:created",function(){this.$watch("$metaInfo",function(){wc(e,this[a],"watcher")})})),Fn(o[Ze].initialized)&&(o[Ze].initialized=this.$isServer,o[Ze].initialized||(o[Ze].initializedSsr||(o[Ze].initializedSsr=!0,this.$on("hook:beforeMount",function(){var d=this[a];s&&(d[Ze].appId=e.ssrAppId)})),this.$on("hook:mounted",function(){var d=this[a];d[Ze].initialized||(d[Ze].initializing=!0,this.$nextTick(function(){var p=d.$meta().refresh(),h=p.tags,m=p.metaInfo;h===!1&&d[Ze].initialized===null&&this.$nextTick(function(){return wc(e,d,"init")}),d[Ze].initialized=!0,delete d[Ze].initializing,!e.refreshOnceOnNavigation&&m.afterNavigation&&N0(d)}))}),e.refreshOnceOnNavigation&&N0(o))),this.$on("hook:destroyed",function(){var d=this;!this.$parent||!V0(this)||(delete this._hasMetaInfo,this.$nextTick(function(){if(!e.waitOnDestroyed||!d.$el||!d.$el.offsetParent){wc(e,d.$root,"destroyed");return}var p=setInterval(function(){d.$el&&d.$el.offsetParent!==null||(clearInterval(p),wc(e,d.$root,"destroyed"))},50)}))}),!this.$isServer&&t.forEach(function(d){i.$on("hook:".concat(d),function(){wc(e,this[a],d)})})}}}}function AP(r){return r=E1(r)?r:{},{keyName:r.keyName||Tn.keyName,attribute:r.attribute||Tn.attribute,ssrAttribute:r.ssrAttribute||Tn.ssrAttribute,tagIDKeyName:r.tagIDKeyName||Tn.tagIDKeyName,contentKeyName:r.contentKeyName||Tn.contentKeyName,metaTemplateKeyName:r.metaTemplateKeyName||Tn.metaTemplateKeyName,debounceWait:Fn(r.debounceWait)?Tn.debounceWait:r.debounceWait,waitOnDestroyed:Fn(r.waitOnDestroyed)?Tn.waitOnDestroyed:r.waitOnDestroyed,ssrAppId:r.ssrAppId||Tn.ssrAppId,refreshOnceOnNavigation:!!r.refreshOnceOnNavigation}}function Nwe(r){var e={};for(var t in r)e[t]=r[t];return e}function Px(r,e){return!e||!E1(r)?Wf(r)?r:[]:(Wf(r[e])||(r[e]=[]),r)}var EP=[[/&/g,"&amp;"],[/</g,"&lt;"],[/>/g,"&gt;"],[/"/g,"&quot;"],[/'/g,"&#x27;"]],zwe=[[/&/g,"&"],[/</g,"<"],[/>/g,">"],[/"/g,'"'],[/'/g,"'"]];function z0(r,e,t,s){var n=e.tagIDKeyName,i=t.doEscape,a=i===void 0?function(h){return h}:i,o={};for(var l in r){var c=r[l];if(zs(D2,l)){o[l]=c;continue}var u=qf[0];if(t[u]&&zs(t[u],l)){o[l]=c;continue}var d=r[n];if(d&&(u=qf[1],t[u]&&t[u][d]&&zs(t[u][d],l))){o[l]=c;continue}if(ywe(c)?o[l]=a(c):Wf(c)?o[l]=c.map(function(h){return xx(h)?z0(h,e,t,!0):a(h)}):xx(c)?o[l]=z0(c,e,t,!0):o[l]=c,s){var p=a(l);l!==p&&(o[p]=o[l],delete o[l])}}return o}function Uwe(r,e,t){t=t||[];var s={doEscape:function(i){return t.reduce(function(a,o){return a.replace(o[0],o[1])},i)}};return qf.forEach(function(n,i){if(i===0)Px(e,n);else if(i===1)for(var a in e[n])Px(e[n],a);s[n]=e[n]}),z0(e,r,s)}function Yf(r,e,t,s){var n=r.component,i=r.metaTemplateKeyName,a=r.contentKeyName;return t===!0||e[i]===!0?!1:(Fn(t)&&e[i]&&(t=e[i],e[i]=!0),t?(Fn(s)&&(s=e[a]),e[a]=O1(t)?t.call(n,s):t.replace(/%s/g,s),!0):(delete e[i],!1))}function Wwe(r,e,t){var s=r.component,n=r.tagIDKeyName,i=r.metaTemplateKeyName,a=r.contentKeyName,o=[];return!e.length&&!t.length?o:(e.forEach(function(l,c){if(!l[n]){o.push(l);return}var u=PP(t,function(m){return m[n]===l[n]}),d=t[u];if(u===-1){o.push(l);return}if(a in d&&d[a]===void 0||"innerHTML"in d&&d.innerHTML===void 0){o.push(l),t.splice(u,1);return}if(d[a]===null||d.innerHTML===null){t.splice(u,1);return}var p=l[i];if(p){var h=d[i];if(!h){Yf({component:s,metaTemplateKeyName:i,contentKeyName:a},d,p),d.template=!0;return}d[a]||Yf({component:s,metaTemplateKeyName:i,contentKeyName:a},d,void 0,l[a])}}),o.concat(t))}var Lx=!1;function Gwe(r,e,t){return t=t||{},e.title===void 0&&delete e.title,T1.forEach(function(s){if(e[s])for(var n in e[s])n in e[s]&&e[s][n]===void 0&&(zs(jd,n)&&!Lx&&(Gf("VueMeta: Please note that since v2 the value undefined is not used to indicate boolean attributes anymore, see migration guide for details"),Lx=!0),delete e[s][n])}),hwe(r,e,{arrayMerge:function(n,i){return Wwe(t,n,i)}})}function OP(r,e){return TP(r||{},e,k2)}function TP(r,e,t){if(t=t||{},e._inactive)return t;r=r||{};var s=r,n=s.keyName,i=e.$metaInfo,a=e.$options,o=e.$children;if(a[n]){var l=i||a[n];E1(l)&&(t=Gwe(t,l,r))}return o.length&&o.forEach(function(c){jwe(c)&&(t=TP(r,c,t))}),t}var kP=[];function qwe(r){return document.readyState==="complete"}function Zwe(r,e){arguments.length===1&&(e=r,r=""),kP.push([r,e])}function Ywe(r,e,t,s){var n=r.tagIDKeyName,i=!1;return t.forEach(function(a){!a[n]||!a.callback||(i=!0,Zwe("".concat(e,"[data-").concat(n,'="').concat(a[n],'"]'),a.callback))}),i}function Kwe(){if(qwe()){Ax();return}document.onreadystatechange=function(){Ax()}}function Ax(r){kP.forEach(function(e){var t=e[0],s=e[1],n="".concat(t,'[onload="this.__vm_l=1"]'),i=[];i=M2(R2(n)),i.forEach(function(a){if(!a.__vm_cb){var o=function(){a.__vm_cb=!0,Zf(a,"onload"),s(a)};if(a.__vm_l){o();return}a.__vm_ev||(a.__vm_ev=!0,a.addEventListener("load",o))}})})}var Ug={};function DP(r,e,t,s,n){var i=e||{},a=i.attribute,o=n.getAttribute(a);o&&(Ug[t]=JSON.parse(decodeURI(o)),Zf(n,a));var l=Ug[t]||{},c=[];for(var u in l)l[u]!==void 0&&r in l[u]&&(c.push(u),s[u]||delete l[u][r]);for(var d in s){var p=l[d];(!p||p[r]!==s[d])&&(c.push(d),s[d]!==void 0&&(l[d]=l[d]||{},l[d][r]=s[d]))}for(var h=0,m=c;h<m.length;h++){var g=m[h],v=l[g],y=[];for(var C in v)Array.prototype.push.apply(y,[].concat(v[C]));if(y.length){var x=zs(jd,g)&&y.some(Boolean)?"":y.filter(function(S){return S!==void 0}).join(" ");n.setAttribute(g,x)}else Zf(n,g)}Ug[t]=l}function Xwe(r){!r&&r!==""||(document.title=r)}function Qwe(r,e,t,s,n,i){var a=e||{},o=a.attribute,l=a.tagIDKeyName,c=CP.slice();c.push(l);var u=[],d={appId:r,attribute:o,type:t,tagIDKeyName:l},p={head:zg(n,d),pbody:zg(i,d,{pbody:!0}),body:zg(i,d,{body:!0})};if(s.length>1){var h=[];s=s.filter(function(v){var y=JSON.stringify(v),C=!zs(h,y);return h.push(y),C})}s.forEach(function(v){if(!v.skip){var y=document.createElement(t);v.once||y.setAttribute(o,r),Object.keys(v).forEach(function(E){if(!zs(xP,E)){if(E==="innerHTML"){y.innerHTML=v.innerHTML;return}if(E==="json"){y.innerHTML=JSON.stringify(v.json);return}if(E==="cssText"){y.styleSheet?y.styleSheet.cssText=v.cssText:y.appendChild(document.createTextNode(v.cssText));return}if(E==="callback"){y.onload=function(){return v[E](y)};return}var G=zs(c,E)?"data-".concat(E):E,K=zs(jd,E);if(!(K&&!v[E])){var le=K?"":v[E];y.setAttribute(G,le)}}});var C=p[Hwe(v)],x,S=C.some(function(E,G){return x=G,y.isEqualNode(E)});S&&(x||x===0)?C.splice(x,1):u.push(y)}});var m=[];for(var g in p)Array.prototype.push.apply(m,p[g]);return m.forEach(function(v){v.parentNode.removeChild(v)}),u.forEach(function(v){if(v.hasAttribute("data-body")){i.appendChild(v);return}if(v.hasAttribute("data-pbody")){i.insertBefore(v,i.firstChild);return}n.appendChild(v)}),{oldTags:m,newTags:u}}function U0(r,e,t){e=e||{};var s=e,n=s.ssrAttribute,i=s.ssrAppId,a={},o=Fo(a,"html");if(r===i&&o.hasAttribute(n)){Zf(o,n);var l=!1;return kwe.forEach(function(v){t[v]&&Ywe(e,v,t[v])&&(l=!0)}),l&&Kwe(),!1}var c={},u={};for(var d in t)if(!zs(D2,d)){if(d==="title"){Xwe(t.title);continue}if(zs(T1,d)){var p=d.substr(0,4);DP(r,e,d,t[d],Fo(a,p));continue}if(Wf(t[d])){var h=Qwe(r,e,d,t[d],Fo(a,"head"),Fo(a,"body")),m=h.oldTags,g=h.newTags;g.length&&(c[d]=g,u[d]=m)}}return{tagsAdded:c,tagsRemoved:u}}var xi;function Jwe(r,e,t){return{set:function(n){return e5e(r,e,t,n)},remove:function(){return t5e(r,e,t)}}}function e5e(r,e,t,s){if(r&&r.$el)return U0(e,t,s);xi=xi||{},xi[e]=s}function t5e(r,e,t){if(r&&r.$el){var s={},n=_we(T1),i;try{for(n.s();!(i=n.n()).done;){var a=i.value,o=a.substr(0,4);DP(e,t,a,{},Fo(s,o))}}catch(l){n.e(l)}finally{n.f()}return Bwe(t,e)}xi[e]&&(delete xi[e],F2())}function MP(){return xi}function F2(r){(r||!Object.keys(xi).length)&&(xi=void 0)}function H2(r,e,t,s){r=r||{},t=t||[];var n=r,i=n.tagIDKeyName;return e.title&&(e.titleChunk=e.title),e.titleTemplate&&e.titleTemplate!=="%s"&&Yf({component:s,contentKeyName:"title"},e,e.titleTemplate,e.titleChunk||""),e.base&&(e.base=Object.keys(e.base).length?[e.base]:[]),e.meta&&(e.meta=e.meta.filter(function(a,o,l){var c=!!a[i];if(!c)return!0;var u=o===PP(l,function(d){return d[i]===a[i]});return u}),e.meta.forEach(function(a){return Yf(r,a)})),Uwe(r,e,t)}function r5e(r,e){if(e=e||{},!r[Ze])return wP(),{};var t=OP(e,r),s=H2(e,t,zwe,r),n=r[Ze].appId,i=U0(n,e,s);i&&O1(s.changed)&&(s.changed(s,i.tagsAdded,i.tagsRemoved),i={addedTags:i.tagsAdded,removedTags:i.tagsRemoved});var a=MP();if(a){for(var o in a)U0(o,e,a[o]),delete a[o];F2(!0)}return{vm:r,metaInfo:s,tags:i}}function s5e(r,e,t,s){var n=s.addSsrAttribute,i=r||{},a=i.attribute,o=i.ssrAttribute,l="";for(var c in t){var u=t[c],d=[];for(var p in u)d.push.apply(d,$P([].concat(u[p])));d.length&&(l+=jd.includes(c)&&d.some(Boolean)?"".concat(c):"".concat(c,'="').concat(d.join(" "),'"'),l+=" ")}return l&&(l+="".concat(a,'="').concat(encodeURI(JSON.stringify(t)),'"')),e==="htmlAttrs"&&n?"".concat(o).concat(l?" ":"").concat(l):l}function n5e(r,e,t,s){var n=s||{},i=n.ln;return t?"<".concat(e,">").concat(t,"</").concat(e,">").concat(i?`
`:""):""}function Ex(r,e,t,s){var n=r||{},i=n.ssrAppId,a=n.attribute,o=n.tagIDKeyName,l=s||{},c=l.appId,u=l.isSSR,d=u===void 0?!0:u,p=l.body,h=p===void 0?!1:p,m=l.pbody,g=m===void 0?!1:m,v=l.ln,y=v===void 0?!1:v,C=[o].concat($P(CP));return!t||!t.length?"":t.reduce(function(x,S){if(S.skip)return x;var E=Object.keys(S);if(E.length===0||!!S.body!==h||!!S.pbody!==g)return x;var G=S.once?"":" ".concat(a,'="').concat(c||(d===!1?"1":i),'"');for(var K in S)if(!(Rwe.includes(K)||xP.includes(K))){if(K==="callback"){G+=' onload="this.__vm_l=1"';continue}var le="";C.includes(K)&&(le="data-");var ue=!le&&jd.includes(K);ue&&!S[K]||(G+=" ".concat(le).concat(K)+(ue?"":'="'.concat(S[K],'"')))}var ie="";S.json&&(ie=JSON.stringify(S.json));var fe=S.innerHTML||S.cssText||ie,k=!Dwe.includes(e),T=k&&Mwe.includes(e);return"".concat(x,"<").concat(e).concat(G).concat(!T&&k?"/":"",">")+(T?"".concat(fe,"</").concat(e,">"):"")+(y?`
`:"")},"")}function RP(r,e,t){var s={data:e,extraData:void 0,addInfo:function(l,c){this.extraData=this.extraData||{},this.extraData[l]=c},callInjectors:function(l){var c=this.injectors;return(l.body||l.pbody?"":c.title.text(l))+c.meta.text(l)+c.base.text(l)+c.link.text(l)+c.style.text(l)+c.script.text(l)+c.noscript.text(l)},injectors:{head:function(l){return s.callInjectors(Rs(Rs({},t),{},{ln:l}))},bodyPrepend:function(l){return s.callInjectors(Rs(Rs({},t),{},{ln:l,pbody:!0}))},bodyAppend:function(l){return s.callInjectors(Rs(Rs({},t),{},{ln:l,body:!0}))}}},n=function(l){if(D2.includes(l))return"continue";s.injectors[l]={text:function(u){var d=u===!0;if(u=Rs(Rs({addSsrAttribute:d},t),u),l==="title")return n5e(r,l,s.data[l],u);if(T1.includes(l)){var p={},h=s.data[l];if(h){var m=u.isSSR===!1?"1":r.ssrAppId;for(var g in h)p[g]=B0({},m,h[g])}if(s.extraData)for(var v in s.extraData){var y=s.extraData[v][l];if(y)for(var C in y)p[C]=Rs(Rs({},p[C]),{},B0({},v,y[C]))}return s5e(r,l,p,u)}var x=Ex(r,l,s.data[l],u);if(s.extraData)for(var S in s.extraData){var E=s.extraData[S][l],G=Ex(r,l,E,Rs({appId:S},u));x="".concat(x).concat(G)}return x}}};for(var i in k2)var a=n(i);return s}function i5e(r,e,t){if(!r[Ze])return wP(),{};var s=OP(e,r),n=H2(e,s,EP,r),i=RP(e,n,t),a=MP();if(a){for(var o in a)i.addInfo(o,a[o]),delete a[o];F2(!0)}return i.injectors}function a5e(r){r=r||{};var e=this.$root;return{getOptions:function(){return Nwe(r)},setOptions:function(s){var n="refreshOnceOnNavigation";s&&s[n]&&(r.refreshOnceOnNavigation=!!s[n],N0(e));var i="debounceWait";if(s&&i in s){var a=parseInt(s[i]);isNaN(a)||(r.debounceWait=a)}var o="waitOnDestroyed";s&&o in s&&(r.waitOnDestroyed=!!s[o])},refresh:function(){return r5e(e,r)},inject:function(s){return i5e(e,r,s)},pause:function(){return LP(e)},resume:function(){return I2(e)},addApp:function(s){return Jwe(e,s,r)}}}function o5e(r,e){e=AP(e);var t=H2(e,r,EP),s=RP(e,t);return s.injectors}function l5e(r,e){r.__vuemeta_installed||(r.__vuemeta_installed=!0,e=AP(e),r.prototype.$meta=function(){return a5e.call(this,e)},r.mixin(Vwe(r,e)))}var c5e={version:fwe,install:l5e,generate:function(e,t){return o5e(e,t)},hasMetaInfo:V0},u5e={render:function(){var r=this,e=r.$createElement,t=r._self._c||e;return t("v-dialog",{attrs:{eager:"",value:"true","max-width":r.width,persistent:r.persistent},on:{input:r.change,keydown:function(s){if(!("button"in s)&&r._k(s.keyCode,"esc",27,s.key,"Escape"))return null;r.choose(!1)}}},[t("v-card",{attrs:{tile:""}},[r.title?t("v-toolbar",{attrs:{dark:"",color:r.color,dense:"",flat:""}},[r.icon?t("v-icon",{attrs:{left:""}},[r._v(r._s(r.icon))]):r._e(),r._v(" "),t("v-toolbar-title",{staticClass:"white--text",domProps:{textContent:r._s(r.title)}})],1):r._e(),r._v(" "),t("v-card-text",{staticClass:"body-1 text-body-1 py-3",domProps:{innerHTML:r._s(r.message)}}),r._v(" "),t("v-card-actions",[t("v-spacer"),r._v(" "),r.buttonFalseText?t("v-btn",{attrs:{color:r.buttonFalseColor,text:r.buttonFalseFlat},on:{click:function(s){r.choose(!1)}}},[r._v(" "+r._s(r.buttonFalseText)+" ")]):r._e(),r._v(" "),r.buttonTrueText?t("v-btn",{attrs:{color:r.buttonTrueColor,text:r.buttonTrueFlat},on:{click:function(s){r.choose(!0)}}},[r._v(" "+r._s(r.buttonTrueText)+" ")]):r._e()],1)],1)],1)},staticRenderFns:[],components:{VCard:Ie,VCardActions:bd,VCardText:Pe,VDialog:hb,VIcon:w,VToolbar:qt,VToolbarTitle:Sd,VSpacer:_t,VBtn:Fe},props:{buttonTrueText:{type:String,default:"Yes"},buttonFalseText:{type:String,default:"No"},buttonTrueColor:{type:String,default:"primary"},buttonFalseColor:{type:String,default:"grey"},buttonFalseFlat:{type:Boolean,default:!0},buttonTrueFlat:{type:Boolean,default:!0},color:{type:String,default:"warning"},icon:{type:String,default:function(){return this.$vuetify.icons.values.warning}},message:{type:String,required:!0},persistent:Boolean,title:{type:String},width:{type:Number,default:450}},data:function(){return{value:!1}},mounted:function(){document.addEventListener("keyup",this.onEnterPressed)},destroyed:function(){document.removeEventListener("keyup",this.onEnterPressed)},methods:{onEnterPressed:function(e){e.keyCode===13&&(e.stopPropagation(),this.choose(!0))},choose:function(e){this.$emit("result",e),this.value=e,this.$destroy()},change:function(e){this.$destroy()}}};function IP(r,e){e===void 0&&(e={});var t=e.property||"$confirm";delete e.property;var s=e.vuetify;delete e.vuetify,s||console.warn("Module vuetify-confirm needs vuetify instance. Use Vue.use(VuetifyConfirm, { vuetify })");var n=r.extend(Object.assign({vuetify:s},u5e));function i(o){var l=document.querySelector("[data-app=true]")||document.body;return new Promise(function(c){var u=new n(Object.assign({},{propsData:Object.assign({},r.prototype[t].options,o),destroyed:function(){l.removeChild(u.$el),c(u.value)}}));l.appendChild(u.$mount().$el)})}function a(o,l){return l===void 0&&(l={}),l.message=o,i(l)}r.prototype[t]=a,r.prototype[t].options=e||{}}typeof window<"u"&&window.Vue&&window.Vue.use(IP);var FP={exports:{}};(function(r){function e(a){return a.type.indexOf("mouse")!==-1?a.clientX:a.touches[0].clientX}function t(a){return a.type.indexOf("mouse")!==-1?a.clientY:a.touches[0].clientY}var s=function(){var a=!1;try{var o=Object.defineProperty({},"passive",{get:function(){a=!0}});window.addEventListener("test",null,o)}catch{}return a}(),n=0,i={install:function(a,o){var l=Object.assign({},{disableClick:!1,tapTolerance:10,swipeTolerance:30,touchHoldTolerance:400,longTapTimeInterval:400,touchClass:"",namespace:"touch"},o);function c(S){var E=this.$$touchObj,G=S.type.indexOf("touch")>=0,K=S.type.indexOf("mouse")>=0,le=this;G&&(n=S.timeStamp),!(K&&n&&S.timeStamp-n<350)&&(E.touchStarted||(v(this),E.touchStarted=!0,E.touchMoved=!1,E.swipeOutBounded=!1,E.startX=e(S),E.startY=t(S),E.currentX=0,E.currentY=0,E.touchStartTime=S.timeStamp,E.touchHoldTimer=setTimeout(function(){E.touchHoldTimer=null,g(S,le,"touchhold")},E.options.touchHoldTolerance),g(S,this,"start")))}function u(S){var E=this.$$touchObj;if(E.currentX=e(S),E.currentY=t(S),E.touchMoved){if(!E.swipeOutBounded){var K=E.options.swipeTolerance;E.swipeOutBounded=Math.abs(E.startX-E.currentX)>K&&Math.abs(E.startY-E.currentY)>K}}else{var G=E.options.tapTolerance;E.touchMoved=Math.abs(E.startX-E.currentX)>G||Math.abs(E.startY-E.currentY)>G,E.touchMoved&&(C(E),g(S,this,"moved"))}E.touchMoved&&g(S,this,"moving")}function d(){var S=this.$$touchObj;C(S),y(this),S.touchStarted=S.touchMoved=!1,S.startX=S.startY=0}function p(S){var E=this.$$touchObj,G=S.type.indexOf("touch")>=0,K=S.type.indexOf("mouse")>=0;G&&(n=S.timeStamp);var le=G&&!E.touchHoldTimer;if(C(E),E.touchStarted=!1,y(this),!(K&&n&&S.timeStamp-n<350))if(g(S,this,"end"),E.touchMoved){if(!E.swipeOutBounded){var ue=E.options.swipeTolerance,ie,fe=Math.abs(E.startY-E.currentY),k=Math.abs(E.startX-E.currentX);(fe>ue||k>ue)&&(fe>k?ie=E.startY>E.currentY?"top":"bottom":ie=E.startX>E.currentX?"left":"right",E.callbacks["swipe."+ie]?g(S,this,"swipe."+ie,ie):g(S,this,"swipe",ie))}}else if(E.callbacks.longtap&&S.timeStamp-E.touchStartTime>E.options.longTapTimeInterval)S.cancelable&&S.preventDefault(),g(S,this,"longtap");else if(E.callbacks.touchhold&&le){S.cancelable&&S.preventDefault();return}else g(S,this,"tap")}function h(){v(this)}function m(){y(this)}function g(S,E,G,K){var le=E.$$touchObj,ue=le&&le.callbacks[G]||[];if(ue.length===0)return null;for(var ie=0;ie<ue.length;ie++){var fe=ue[ie];fe.modifiers.stop&&S.stopPropagation(),fe.modifiers.prevent&&S.cancelable&&S.preventDefault(),!(fe.modifiers.self&&S.target!==S.currentTarget)&&typeof fe.value=="function"&&(K?fe.value(K,S):fe.value(S))}}function v(S){var E=S.$$touchObj.options.touchClass;E&&S.classList.add(E)}function y(S){var E=S.$$touchObj.options.touchClass;E&&S.classList.remove(E)}function C(S){S.touchHoldTimer&&(clearTimeout(S.touchHoldTimer),S.touchHoldTimer=null)}function x(S,E){var G=S.$$touchObj||{callbacks:{},hasBindTouchEvents:!1,options:l};return E&&(G.options=Object.assign({},G.options,E)),S.$$touchObj=G,S.$$touchObj}a.directive(l.namespace,{bind:function(S,E){var G=x(S),K=s?{passive:!0}:!1,le=E.arg||"tap";switch(le){case"swipe":var ue=E.modifiers;if(ue.left||ue.right||ue.top||ue.bottom){for(var ie in E.modifiers)if(["left","right","top","bottom"].indexOf(ie)>=0){var fe="swipe."+ie;G.callbacks[fe]=G.callbacks[fe]||[],G.callbacks[fe].push(E)}}else G.callbacks.swipe=G.callbacks.swipe||[],G.callbacks.swipe.push(E);break;case"start":case"moving":E.modifiers.disablePassive&&(K=!1);default:G.callbacks[le]=G.callbacks[le]||[],G.callbacks[le].push(E)}G.hasBindTouchEvents||(S.addEventListener("touchstart",c,K),S.addEventListener("touchmove",u,K),S.addEventListener("touchcancel",d),S.addEventListener("touchend",p),G.options.disableClick||(S.addEventListener("mousedown",c),S.addEventListener("mousemove",u),S.addEventListener("mouseup",p),S.addEventListener("mouseenter",h),S.addEventListener("mouseleave",m)),G.hasBindTouchEvents=!0)},unbind:function(S){S.removeEventListener("touchstart",c),S.removeEventListener("touchmove",u),S.removeEventListener("touchcancel",d),S.removeEventListener("touchend",p),S.$$touchObj&&!S.$$touchObj.options.disableClick&&(S.removeEventListener("mousedown",c),S.removeEventListener("mousemove",u),S.removeEventListener("mouseup",p),S.removeEventListener("mouseenter",h),S.removeEventListener("mouseleave",m)),delete S.$$touchObj}}),a.directive(l.namespace+"-class",{bind:function(S,E){x(S,{touchClass:E.value})}}),a.directive(l.namespace+"-options",{bind:function(S,E){x(S,E.value)}})}};r.exports=i})(FP);var d5e=FP.exports;const p5e=Il(d5e),xc={};function h5e(r){return Object.keys(r).reduce((e,t)=>(r[t]!==!1&&r[t]!==null&&r[t]!==void 0&&(e[t]=r[t]),e),{})}const f5e={name:"InlineSvg",inheritAttrs:!1,render(r){return this.svgElSource?r("svg",{on:this.$listeners,attrs:Object.assign(this.getSvgAttrs(this.svgElSource),h5e(this.$attrs)),domProps:{innerHTML:this.getSvgContent(this.svgElSource)}}):null},props:{src:{type:String,required:!0},title:{type:String},transformSource:{type:Function,default:r=>r},keepDuringLoading:{type:Boolean,default:!0}},data(){return{svgElSource:null,request:void 0}},watch:{src(r){this.getSource(r)}},mounted(){this.getSource(this.src)},methods:{getSvgAttrs(r){let e={};const t=r.attributes;if(!t)return e;for(let s=t.length-1;s>=0;s--)e[t[s].name]=t[s].value;return e},getSvgContent(r){return r=r.cloneNode(!0),r=this.transformSource(r),this.title&&m5e(r,this.title),r.innerHTML},getSource(r){xc[r]||(xc[r]=this.download(r)),this.svgElSource&&xc[r].getIsPending()&&!this.keepDuringLoading&&(this.svgElSource=null,this.$emit("unloaded")),xc[r].then(e=>{this.svgElSource=e,this.$nextTick(()=>{this.$emit("loaded",this.$el)})}).catch(e=>{this.svgElSource&&(this.svgElSource=null,this.$emit("unloaded")),delete xc[r],this.$emit("error",e)})},download(r){return g5e(new Promise((e,t)=>{const s=new XMLHttpRequest;s.open("GET",r,!0),this.request=s,s.onload=()=>{if(s.status>=200&&s.status<400)try{let a=new DOMParser().parseFromString(s.responseText,"text/xml").getElementsByTagName("svg")[0];a?e(a):t(new Error('Loaded file is not valid SVG"'))}catch(n){t(n)}else t(new Error("Error loading SVG"))},s.onerror=t,s.send()}))}}};function m5e(r,e){const t=r.getElementsByTagName("title");if(t.length)t[0].textContent=e;else{const s=document.createElementNS("http://www.w3.org/2000/svg","title");s.textContent=e,r.insertBefore(s,r.firstChild)}}function g5e(r){if(r.getIsPending)return r;let e=!0,t=r.then(s=>(e=!1,s),s=>{throw e=!1,s});return t.getIsPending=function(){return e},t}const v5e={install(r){r.component("inline-svg",f5e)}},_5e=r=>{const e=Dt.create({withAuth:!0,timeout:he.NETWORK_REQUEST_TIMEOUT});e.defaults.headers.common["Content-Type"]="application/json";const t=["/access/login","/access/refresh_token"],s={400:["/access/login"],502:["/access/oneshot_token","/access/user"]},n=async o=>{if(o.url!=="/access/refresh_jwt"&&await r.dispatch("auth/checkToken")){const u=await r.dispatch("auth/refreshTokens");u&&(o.headers.Authorization=`Bearer ${u}`)}const l=o.url||"";return t.includes(l)&&(o.withAuth=!1),o},i=o=>{switch(o.status){case 200:r.state.config.apiUrl&&o.config.baseURL===r.state.config.apiUrl&&o.config.withAuth&&r.commit("auth/setAuthenticated",!0);break}return o},a=o=>{var u,d,p;let l;if(!o.response||o.code==="ERR_NETWORK")return o.message&&(l=o.message),ye.debug(l||"Network error"),Promise.reject(o);typeof o.response.data=="object"?l=(u=o.response.data.error)==null?void 0:u.message:l=o.response.data;const c=((d=o.config)==null?void 0:d.url)||"";switch(o.response.status){case 500:ye.debug(o.response.status,o.message,l),_r.$emit(l||"Server error",{type:"error"});break;case 502:case 400:ye.debug(o.response.status,o.message,l),s[o.response.status].includes(c)||_r.$emit(l||"Server error",{type:"error"});break;case 401:(p=o.config)!=null&&p.withAuth&&r.dispatch("auth/logout");break;case 404:ye.debug(o.response.status,o.message,l);break;default:ye.debug(o.response.status,o.message),_r.$emit(l||"Server error",{type:"error"})}return Promise.reject(o)};return e.interceptors.request.use(n,a),e.interceptors.response.use(i,a),e},y5e={install(r,e){if(!(e!=null&&e.store))throw new Error("store is required");const t=_5e(e.store);r.prototype.$httpClient=t,r.$httpClient=t}},Ox=/((?:\.[A-Za-z~][A-Za-z0-9~]*)*)$/,W0=48,b5e=57,$5e=65,S5e=90,w5e=97,x5e=122,C5e=126,ia=r=>r>=W0&&r<=b5e,P5e=r=>r>=$5e&&r<=S5e||r>=w5e&&r<=x5e,Tx=r=>{const e=[];for(let t=0;t<r.length;t++){const s=r.charCodeAt(t);e.push(s&255)}return e},kx=r=>r?ia(r)?0:P5e(r)?r:r===C5e?-2:r+256:-1,Dx=(r,e)=>{const t=Tx(r),s=Tx(e),n=t.length,i=s.length;if(n===0||i===0)return n-i;let a=0,o=0;for(;a<n&&o<i;){let l=0;for(;a<n&&!ia(t[a])||o<i&&!ia(s[o]);){const c=kx(t[a]),u=kx(s[o]);if(c!==u)return c-u;a++,o++}for(;a<n&&t[a]===W0;)a++;for(;o<i&&s[o]===W0;)o++;for(;a<n&&o<i&&ia(t[a])&&ia(s[o]);)l||(l=t[a]-s[o]),a++,o++;if(a<n&&ia(t[a]))return 1;if(o<i&&ia(s[o]))return-1;if(l)return l}return 0},L5e=(r,e)=>{if(r===e)return 0;const t=r.replace(Ox,""),s=e.replace(Ox,"");return t===s?Dx(r,e):Dx(t,s)},A5e=(r,e,t)=>{const s=e.length-1;if(s<0)return r===void 0?t:r;for(let n=0;n<s;n++){if(r==null)return t;r=r[e[n]]}return r==null||r[e[s]]===void 0?t:r[e[s]]},Mx=(r,e,t)=>r==null||!e||typeof e!="string"?t:r[e]!==void 0?r[e]:(e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,""),A5e(r,e.split("."),t)),Tt={formatCounterSeconds:r=>{r=+r,(isNaN(r)||!CV(r))&&(r=0);let e=!1;r<0&&(r=Math.abs(r),e=!0);const t=Math.floor(r/3600),s=Math.floor(r%3600/60);let i=Math.floor(r%3600%60)+"s";return i=s+"m "+i,t>0&&(i=t+"h "+i),e?"-"+i:i},getNavigatorLocales:()=>navigator.languages??[navigator.language],getAllLocales:()=>[st.locale,...Tt.getNavigatorLocales()],getDateFormat:r=>({locales:Tt.getAllLocales(),...WC[r??wr.state.config.uiSettings.general.dateFormat]}),getTimeFormat:r=>({locales:Tt.getAllLocales(),...GC[r??wr.state.config.uiSettings.general.timeFormat]}),formatDate:(r,e)=>{const t=new Date(r),s=Tt.getDateFormat();return t.toLocaleDateString(s.locales,{...s.options,...e})},formatTime:(r,e)=>{const t=new Date(r),s=Tt.getTimeFormat();return t.toLocaleTimeString(s.locales,{...s.options,...e})},formatTimeWithSeconds:(r,e)=>Tt.formatTime(r,{second:"2-digit",...e}),formatDateTime:(r,e)=>{const t=Tt.getTimeFormat(),s=Tt.getDateFormat();return t.locales!==s.locales?Tt.formatDate(r,e)+" "+Tt.formatTime(r,e):new Date(r).toLocaleDateString(s.locales,{...s.options,...t.options,...e})},formatRelativeTimeToNow(r,e){return Tt.formatRelativeTimeToDate(r,Date.now(),e)},formatRelativeTimeToDate(r,e,t){let s=Math.floor(+new Date(r)/1e3),n=Math.floor(+new Date(e)/1e3);const i=[{unit:"second",limit:60},{unit:"minute",limit:60},{unit:"hour",limit:24},{unit:"day",limit:30},{unit:"month",limit:12},{unit:"year",limit:-1}];for(const{unit:a,limit:o}of i){if(o===-1||Math.abs(s-n)<o)return Tt.formatRelativeTime(s-n,a,t);s=Math.floor(s/o),n=Math.floor(n/o)}},formatRelativeTime(r,e,t){return new Intl.RelativeTimeFormat(Tt.getAllLocales(),{numeric:"auto",...t}).format(r,e)},formatAbsoluteDateTime:(r,e)=>Tt.isToday(r)?Tt.formatTime(r,e):Tt.isThisYear(r)?Tt.formatDateTime(r,{year:void 0,...e}):Tt.formatDateTime(r,e),isToday:r=>{const e=new Date(r),t=new Date;return e.getDate()===t.getDate()&&e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},isThisMonth:r=>{const e=new Date(r),t=new Date;return e.getMonth()===t.getMonth()&&e.getFullYear()===t.getFullYear()},isThisYear:r=>{const e=new Date(r),t=new Date;return e.getFullYear()===t.getFullYear()},upperFirst:r=>mm(r),prettyCase:r=>r.replace(/_/g," ").split(" ").filter(e=>e).map(Tt.upperFirst).join(" "),camelCase:r=>Fc(r),startCase:r=>Q3(r),capitalize:r=>(r=Tt.camelCase(r),Ny(r)),getReadableFileSizeString(r){let e=-1;const t=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];if(r===0)return`0${t[0]}`;do r=r/1024,e++;while(r>1024);return Math.max(r,.1).toFixed(1)+t[e]},getReadableDataRateString(r){let e=-1;const t=[" kB"," MB"," GB"," TB","PB","EB","ZB","YB"];if(r===0)return`0${t[0]}`;do r=r/1024,e++;while(r>1024);return Math.max(r,.2).toFixed(1)+t[e]+"/Sec"},getReadableLengthString(r,e=!1){return r==null?"-":r>=1e3?(r/1e3).toFixed(2)+" m":r>100?(r/10).toFixed(1)+" cm":r<.1&&e?(r*1e3).toFixed(0)+" μm":r.toFixed(1)+" mm"},getReadableWeightString(r){return r==null?"-":r>=1e3?(r/1e3).toFixed(2)+" kg":r.toFixed(2)+" g"},getReadableFrequencyString(r){let e=0;const t=[" Hz"," kHz"," MHz"," GHz"," THz"];for(;r>=1e3;)r=r/1e3,e++;return r.toFixed()+t[e]},getReadableResistanceString(r){let e=0;const t=[" Ω"," kΩ"," MΩ"," GΩ"," TΩ"];for(;r>=1e3;)r=r/1e3,e++;return r.toFixed(1)+t[e]},getReadableAtmosphericPressureString(r){return r.toFixed(1)+" hPa"},fileSystemSort(r,e,t,s,n){if(e===null||!e.length)return r;const i=new Intl.Collator(s,{sensitivity:"accent",usage:"sort"});return r.sort((a,o)=>{if(a.type==="directory"&&(a.dirname===".."||o.type!=="directory"))return-1;if(o.type==="directory"&&(o.dirname===".."||a.type!=="directory"))return 1;for(let l=0;l<e.length;l++){const c=e[l],u=[Mx(a,c),Mx(o,c)];if(u[0]===u[1])continue;if(t[l]&&u.reverse(),u.every(p=>typeof p=="number"&&!isNaN(p)))return u[0]-u[1];const d=u.map(p=>(p||"").toString());if(n==="numeric-prefix"){const[p,h]=d.map(m=>m.match(/^\d+/));if(p&&h&&p[0]!==h[0])return+p[0]-+h[0]}else if(n==="version")return L5e(d[0],d[1]);return i.compare(d[0],d[1])}return 0})},getApiUrls(r){!r.startsWith("http://")&&!r.startsWith("https://")&&(r=`http://${r}`),r.endsWith("/")&&(r=r.slice(0,-1));const e=new URL(r);return e.protocol=e.protocol==="https:"?"wss://":"ws://",e.pathname+=e.pathname.endsWith("/")?"websocket":"/websocket",{apiUrl:r,socketUrl:e.toString()}},isColorDark(r){return new $t(r).getBrightness()/255*100<=50},routeTo(r,e){r.currentRoute.fullPath!==e&&r.push(e)},convertFilamentWeightToLength(r,e,t){return r/e/(Math.PI*(t/2)**2)*1e3}},Rx={required(r){return(r??"")!==""||st.t("app.general.simple_form.error.required")},numberValid(r){return!isNaN(+(r??NaN))||st.t("app.general.simple_form.error.invalid_number")},numberGreaterThan(r){return e=>e>r||st.t("app.general.simple_form.error.min",{min:`> ${r}`})},numberGreaterThanOrEqual(r){return e=>e>=r||st.t("app.general.simple_form.error.min",{min:r})},numberGreaterThanOrEqualOrZero(r){return e=>+e==0||e>=r||st.t("app.general.simple_form.error.min_or_0",{min:r})},numberGreaterThanOrZero(r){return e=>+e==0||e>r||st.t("app.general.simple_form.error.min_or_0",{min:`> ${r}`})},numberLessThan(r){return e=>e<r||st.t("app.general.simple_form.error.max",{max:`< ${r}`})},numberLessThanOrEqual(r){return e=>e<=r||st.t("app.general.simple_form.error.max",{max:r})},numberLessThanOrEqualOrZero(r){return e=>+e==0||e<=r||st.t("app.general.simple_form.error.max",{max:r})},numberLessThanOrZero(r){return e=>+e==0||e<r||st.t("app.general.simple_form.error.max",{max:r})},lengthGreaterThanOrEqual(r){return e=>e.length>=r||st.t("app.general.simple_form.error.min",{min:r})},lengthLessThanOrEqual(r){return e=>e.length<=r||st.t("app.general.simple_form.error.max",{max:r})},numberArrayValid(r){return!r.some(e=>e===""||isNaN(+(e??NaN)))||st.t("app.general.simple_form.error.arrayofnums")},passwordNotEqualUsername(r){return e=>e.toLowerCase()!==(r??"").toLowerCase()||st.t("app.general.simple_form.error.password_username")},aspectRatioValid(r){return/^\d+\s*[:/]\s*\d+$/.test(r)||st.t("app.general.simple_form.error.invalid_aspect")},regExpPatternValid(r){try{return new RegExp(r),!0}catch{return st.t("app.general.simple_form.error.invalid_expression")}},regExpValid(r,e){return t=>r.test(t)||e||"Invalid"}},E5e={install(r){r.prototype.$filters=Tt,r.prototype.$rules=Rx,r.prototype.$globals=he,r.prototype.$waits=tt,r.$filters=Tt,r.$rules=Rx,r.$globals=he,r.$waits=tt}};class O5e{constructor(e){f(this,"url","");f(this,"connection",null);f(this,"reconnectEnabled",!1);f(this,"reconnectInterval",1e3);f(this,"allowedReconnectAttempts",3);f(this,"reconnectCount",0);f(this,"logPrefix","[WEBSOCKET]");f(this,"requests",[]);f(this,"store",null);f(this,"pingTimeout");f(this,"cache",null);this.url=e.url,this.reconnectEnabled=e.reconnectEnabled||!1,this.reconnectInterval=e.reconnectInterval||1e3,this.store=e.store?e.store:null}pong(){clearTimeout(this.pingTimeout),!this.store.state.socket.disconnecting&&!this.store.state.files.download&&(this.store.commit("socket/setSocketOpen",!0),this.store.dispatch("socket/onSocketConnecting",!1)),this.pingTimeout=setTimeout(()=>{!this.store.state.socket.disconnecting&&!this.store.state.files.download&&(ye.debug(`${this.logPrefix} Connection timeout, pong failed`),this.store&&this.store.commit("socket/setSocketOpen",!1),this.store&&this.store.dispatch("socket/onSocketConnecting",!0))},he.SOCKET_PING_INTERVAL)}close(){this.connection&&(this.cache=null,this.connection.close(),this.reconnectCount=0)}async connect(e){var t;e&&(this.url=e),this.cache=null;try{const n=(await rt.accessOneshotTokenGet()).data.result;this.store&&this.store.dispatch("socket/onSocketConnecting",!0),this.connection=new WebSocket(`${this.url}?token=${n}`),this.connection.onopen=()=>{this.reconnectEnabled&&(this.reconnectCount=1),this.store&&(this.store.dispatch("socket/onSocketConnecting",!1),this.store.dispatch("socket/onSocketOpen",!0))},this.connection.onclose=i=>{ye.debug(`${this.logPrefix} Connection closed:`,i),clearTimeout(this.pingTimeout),this.store&&this.store.dispatch("socket/onSocketClose",i),i.wasClean||this.reconnect()},this.connection.onerror=i=>{ye.error(`${this.logPrefix} Connection error:`,i),this.store&&this.store.dispatch("socket/onSocketError",i)},this.connection.onmessage=i=>{var c,u;const a=JSON.parse(i.data);let o;const l=this.requests.findIndex(d=>d.id===a.id);if(l>-1&&(o=this.requests[l],this.requests.splice(l,1)),this.store&&o&&o.wait&&o.wait.length&&this.store.commit("wait/setRemoveWait",o.wait),a.error){o&&Object.defineProperty(a.error,"__request__",{enumerable:!1,value:o}),ye.debug(`${this.logPrefix} Response error:`,a.error),this.store&&this.store.dispatch("socket/onSocketError",a.error);return}if(this.pong(),o){let d=a.result?a.result:a.params;typeof d=="string"&&(d={result:d}),Object.defineProperty(d,"__request__",{enumerable:!1,value:o}),ye.debug(`${this.logPrefix} Response:`,d),o.dispatch&&this.store&&((c=this.store)==null||c.dispatch(o.dispatch,d)),o.commit&&this.store&&((u=this.store)==null||u.commit(o.commit,d))}else if(a.params&&a.params[0]){const[d,p]=a.params;if(a.method!=="notify_status_update")this.store&&this.store.dispatch("socket/"+Fc(a.method),d);else{for(const m of["motion_report"])this.store&&m in d&&(this.store.dispatch("printer/onFastNotifyStatusUpdate",{key:m,payload:d[m]},{root:!0}),delete d[m]);const h=p?p*1e3:Date.now();this.cache=this.cache?{timestamp:this.cache.timestamp,params:K3(this.cache.params,d,(m,g)=>Array.isArray(m)?g:void 0)}:{timestamp:h,params:d},h-this.cache.timestamp>=1e3&&(this.store&&this.store.dispatch("socket/"+Fc(a.method),this.cache.params),this.cache={timestamp:h,params:{}})}}else this.store&&this.store.dispatch("socket/"+Fc(a.method))}}catch(s){(!Dt.isAxiosError(s)||((t=s.response)==null?void 0:t.status)!==401)&&this.reconnect()}}reconnect(){this.reconnectCount<=this.allowedReconnectAttempts?(this.reconnectCount+=1,this.connection=null,ye.debug(`${this.logPrefix} Reconnecting in ${this.reconnectInterval}`),setTimeout(()=>{this.connect()},this.reconnectInterval)):this.store&&this.store.dispatch("socket/onSocketConnecting",!1)}emit(e,t){var s,n;if(this.store.state.socket.disconnecting||this.store.state.socket.connecting){ye.debug(`${this.logPrefix} Socket emit denied, in disconnecting state:`,e,t);return}if(((s=this.connection)==null?void 0:s.readyState)===WebSocket.OPEN){const a=((c,u)=>Math.floor(Math.random()*(u-c+1))+c)(1e4,99999),o={id:a,method:e,jsonrpc:"2.0"},l={id:a};t&&t.wait&&(l.wait=t.wait,this.store&&this.store.dispatch("wait/addWait",t.wait)),t&&t.params&&(o.params=t.params,l.params=t.params),t&&t.dispatch&&(l.dispatch=t.dispatch),t&&t.commit&&(l.commit=t.commit),this.requests.push(l),this.connection.send(JSON.stringify(o))}else ye.debug(`${this.logPrefix} Not ready, or closed.`,e,t,(n=this.connection)==null?void 0:n.readyState)}}const T5e={install(r,e){if((e==null?void 0:e.url)==null||e.store==null)throw new Error("options required");const t=new O5e(e);r.prototype.$socket=t,r.$socket=t}};class k5e{constructor(e){f(this,"logPrefix","[WEBSOCKET]");f(this,"colorList",{});if(e.colorList)for(const t in e.colorList)if("base"in e.colorList[t]){const s=e.colorList[t],n=new $t(s.base).toHsl();let i=n.h,a=n.l;const o=n.s,l=s.hsplit||0,c=s.lsplit?s.lsplit/100:0;this.colorList[t]=[...Array(s.count).keys()].map(()=>{const u=new $t({h:i,s:o,l:a}).toHexString();return i=i+l,a=a-c,{color:u,used:!1}})}else{const s=e.colorList[t];this.colorList[t]=s.map(n=>({color:n,used:!1}))}}next(e,t){if(this.colorList[e]===void 0)return;const s=this.colorList[e].find(n=>n.name===t);if(s)return s.color;this.colorList[e].findIndex(n=>!n.used)>=0&&this.reset(e);for(const n of this.colorList[e])if(!n.used)return t&&(n.name=t),n.used=!0,n.color}reset(e,t=!1){this.colorList[e]!==void 0&&this.colorList[e].forEach(s=>{(!s.name||t)&&(s.used=!1,delete s.name)})}resetAll(){for(const e in this.colorList)this.reset(e)}forceResetAll(){for(const e in this.colorList)this.reset(e,!0)}}const D5e={install(r,e){const t={colorList:{heater:{base:"#ff5252",hsplit:20,count:3},bed:{base:"#1fb0ff",hsplit:20,count:2},fan:["#3DC25A","#58FC7C","#10EB40","#7EF297"],sensor:["#D67600","#830EE3","#B366F2","#E06573","#E38819","#795548","#607D8B","#3F51B5"]}},s=new k5e({...t,...e});r.prototype.$colorset=s,r.$colorset=s}};var M5e=Object.defineProperty,R5e=Object.getOwnPropertyDescriptor,I5e=(r,e,t,s)=>{for(var n=s>1?void 0:s?R5e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&M5e(e,t,n),n};let G0=class extends b{get appInfo(){return this.$store.state.version.fluidd}};G0=I5e([L({})],G0);var F5e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(HW,{staticClass:"footer justify-end",attrs:{app:"",absolute:"",inset:"",color:"transparent"}},[t("span",{staticClass:"secondary--text"},[e._v(" © "+e._s(new Date().getFullYear())+" fluidd: v"+e._s(e.appInfo.version)+"-"+e._s(e.appInfo.hash)+" ")])])},H5e=[],B5e=A(G0,F5e,H5e,!1,null,"cc1c7a14");const j5e=B5e.exports,B2=r=>{if(r.target){const{isContentEditable:e,tagName:t,type:s,readOnly:n}=r.target;return e?!0:!n&&(t==="TEXTAREA"||t==="SELECT"||t==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(s))}return!1},j2=r=>{const e=[];return r.ctrlKey&&e.push("Ctrl"),r.metaKey&&e.push("Meta"),r.altKey&&e.push("Alt"),r.shiftKey&&e.push("Shift"),e.push(r.key),e.join("+")};var V5e=Object.defineProperty,N5e=Object.getOwnPropertyDescriptor,z5e=(r,e,t,s)=>{for(var n=s>1?void 0:s?N5e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&V5e(e,t,n),n};let q0=class extends b{constructor(){super(...arguments);f(this,"open",!1)}get keyboardShortcuts(){return he.KEYBOARD_SHORTCUTS}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}get supportsHistory(){return this.$store.getters["server/componentSupport"]("history")}get supportsTimelapse(){return this.$store.getters["server/componentSupport"]("timelapse")}get enableDiagnostics(){return this.$store.state.config.uiSettings.general.enableDiagnostics}handleKeyDown(e){if(!this.enableKeyboardShortcuts)return;const t=j2(e);["?","Shift+?"].includes(t)&&!B2(e)&&(e.preventDefault(),this.open=!0)}created(){window.addEventListener("keydown",this.handleKeyDown,!1)}beforeDestroy(){window.removeEventListener("keydown",this.handleKeyDown)}};q0=z5e([L({})],q0);var U5e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.keyboard_shortcuts.title.keyboard_shortcuts"),"max-width":"400","no-actions":""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[t(Ie,{attrs:{flat:""}},[t(jr,[e._v(e._s(e.$t("app.keyboard_shortcuts.label.navigation")))]),t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.home")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.home))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.console")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.console))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.gcode_preview")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.preview))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.jobs")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.jobs))])])]),e.supportsHistory?t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.history")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.history))])])]):e._e(),e.supportsTimelapse?t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.timelapse")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.timelapse))])])]):e._e(),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.tune")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.tune))])])]),e.enableDiagnostics?t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.diagnostics")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.diagnostics))])])]):e._e(),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.configure")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.configure))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.system")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.system))])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.general.title.settings")))]),t("td",[t("kbd",[e._v(e._s(e.keyboardShortcuts.settings))])])])])])],1),t(Ie,{attrs:{flat:""}},[t(jr,[e._v(e._s(e.$t("app.keyboard_shortcuts.label.tool")))]),t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.home_all")))]),t("td",[t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("h")])])])])])],1),t(Ie,{attrs:{flat:""}},[t(jr,[e._v(e._s(e.$t("app.keyboard_shortcuts.label.printing")))]),t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.pause")))]),t("td",[t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("p")])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.cancel")))]),t("td",[t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("c")])])])])])],1),t(Ie,{attrs:{flat:""}},[t(jr,[e._v(e._s(e.$t("app.keyboard_shortcuts.label.actions")))]),t(Zt,{attrs:{dense:""}},[t("tbody",[t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.emergency_stop")))]),t("td",[t("kbd",[e._v("Ctrl")]),e._v(" + "),t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("e")])])]),t("tr",[t("th",[e._v(e._s(e.$t("app.keyboard_shortcuts.label.open_keyboard_shortcut_help")))]),t("td",[t("kbd",[e._v("?")])])])])])],1)],1)],1)},W5e=[],G5e=A(q0,U5e,W5e,!1,null,"4f16e91e");const HP=G5e.exports;var q5e=Object.defineProperty,Z5e=Object.getOwnPropertyDescriptor,Y5e=(r,e,t,s)=>{for(var n=s>1?void 0:s?Z5e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&q5e(e,t,n),n};let Z0=class extends Z(X){get dialog(){return this.$store.state.console.promptDialog}get open(){return this.dialog.open}set open(r){r||this.sendGcode('RESPOND TYPE=command MSG="action:prompt_end"')}handleClick(r){this.sendGcode(r.command||r.text)}};Z0=Y5e([L({})],Z0);var K5e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.dialog.title,"max-width":"450","no-actions":e.dialog.footerButtons.length===0},scopedSlots:e._u([{key:"actions",fn:function(){return[t(_t),e._l(e.dialog.footerButtons,function(s,n){return t(M,{key:`button-${n}`,attrs:{color:s.color??"primary",type:"button"},on:{click:function(i){return e.handleClick(s)}}},[e._v(" "+e._s(s.text)+" ")])})]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,e._l(e.dialog.items,function(s,n){return t(te,{key:`item-${n}`},[s.type==="text"?t(I,[e._v(" "+e._s(s.text)+" ")]):s.type==="button"?t(I,[t(Fe,{attrs:{color:s.color,block:""},on:{click:function(i){return e.handleClick(s)}}},[e._v(" "+e._s(s.text)+" ")])],1):e._e()],1)}),1)],1)},X5e=[],Q5e=A(Z0,K5e,X5e,!1,null,null);const BP=Q5e.exports;var J5e=Object.defineProperty,exe=Object.getOwnPropertyDescriptor,txe=(r,e,t,s)=>{for(var n=s>1?void 0:s?exe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&J5e(e,t,n),n};let Y0=class extends Z(X,lt){constructor(){super(...arguments);f(this,"invokedDialog",!1)}get open(){return this.invokedDialog||this.updating?(this.invokedDialog=!0,!0):!1}set open(e){e||(this.invokedDialog=!1,this.$store.commit("version/setClearUpdateResponse"))}get updating(){return this.$store.state.version.busy}get responses(){return this.$store.getters["version/getResponses"]}};Y0=txe([L({components:{Console:D8}})],Y0);var rxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.updating?e.$t("app.version.status.updating"):e.$t("app.version.status.finished"),loading:e.updating,"close-button-disabled":e.updating,"max-width":"650",persistent:""},scopedSlots:e._u([{key:"actions",fn:function(){return[t(_t),t(M,{attrs:{color:"primary",text:"",disabled:e.updating},on:{click:function(s){e.open=!1}}},[e._v(" "+e._s(e.updating?e.$t("app.version.status.updating"):e.$t("app.version.btn.finish"))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t("console",{attrs:{items:e.responses,fullscreen:e.isMobileViewport,height:250,readonly:""}})],1)],1)},sxe=[],nxe=A(Y0,rxe,sxe,!1,null,null);const ixe=nxe.exports;var axe=Object.defineProperty,oxe=Object.getOwnPropertyDescriptor,lxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?oxe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&axe(e,t,n),n};let K0=class extends Z(X){reload(){window.location.reload()}get activeInstance(){return this.$store.getters["config/getCurrentInstance"]}async reconnect(){const r=await A1(this.activeInstance,this.$store.state.config.hostConfig);r.apiConfig.socketUrl&&r.apiConnected&&r.apiAuthenticated&&this.$socket.connect(r.apiConfig.socketUrl)}};K0=lxe([L({components:{}})],K0);var cxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(kl,{staticStyle:{height:"400px"}},[t(te,{staticClass:"fill-height",attrs:{"align-content":"center",justify:"center"}},[t(I,{staticClass:"subtitle-1 text-center",attrs:{cols:"12"}},[e.socketConnecting?t("span",[e._v(e._s(e.$t("app.socket.msg.connecting")))]):e._e(),e.socketConnecting?e._e():t("span",[e._v(e._s(e.$t("app.socket.msg.no_connection")))])]),t(I,{attrs:{cols:"6",lg:"4"}},[e.socketConnecting?t(Ys,{staticClass:"mb-4",attrs:{color:"warning",indeterminate:"",rounded:"",height:"6"}}):e._e(),e.socketConnecting?e._e():t(M,{staticClass:"me-2 mb-2",attrs:{block:"",color:"info"},on:{click:function(s){return e.reconnect()}}},[e._v(" "+e._s(e.$t("app.general.btn.socket_reconnect"))+" ")]),t(M,{staticClass:"me-2 mb-2",attrs:{block:"",color:"warning"},on:{click:function(s){return e.reload()}}},[e._v(" "+e._s(e.$t("app.general.btn.socket_refresh"))+" ")])],1)],1)],1)},uxe=[],dxe=A(K0,cxe,uxe,!1,null,null);const pxe=dxe.exports;var hxe=Object.defineProperty,fxe=Object.getOwnPropertyDescriptor,mxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?fxe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&hxe(e,t,n),n};let X0=class extends b{constructor(){super(...arguments);f(this,"updateSW",null);f(this,"needRefresh",!1)}onOfflineReady(){ye.debug("[PWA] ready for offline work"),_r.$emit(this.$tc("app.general.msg.offline_ready"),{timeout:5e3})}onNeedRefresh(){ye.debug("[PWA] needs refresh"),this.needRefresh=!0}onRegistered(e){ye.debug("[PWA] registered",e)}onRegisterError(e){ye.error("[PWA] registration error",e)}updateServiceWorker(){this.updateSW&&this.updateSW(!0)}async mounted(){try{const{registerSW:e}=await Ye(async()=>{const{registerSW:t}=await import("./virtual_pwa-register-D8iVBF6Z.js");return{registerSW:t}},[],import.meta.url);this.updateSW=e({immediate:!0,onOfflineReady:this.onOfflineReady,onNeedRefresh:this.onNeedRefresh,onRegistered:this.onRegistered,onRegisterError:this.onRegisterError})}catch{ye.error("[PWA] disabled")}}};X0=mxe([L({})],X0);var gxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Fm,{attrs:{timeout:"-1","multi-line":"",elevation:"24",bottom:"",right:""},scopedSlots:e._u([{key:"action",fn:function({attrs:s}){return[t(M,e._b({on:{click:e.updateServiceWorker}},"app-btn",s,!1),[e._v(" "+e._s(e.$t("app.general.btn.reload"))+" ")])]}}]),model:{value:e.needRefresh,callback:function(s){e.needRefresh=s},expression:"needRefresh"}},[t("span",{domProps:{innerHTML:e._s(e.$t("app.general.msg.needs_refresh"))}})])],1)},vxe=[],_xe=A(X0,gxe,vxe,!1,null,"b7f0c42f");const yxe=_xe.exports,bxe=/(https?:\/\/[^\s]+)/gi,$xe=r=>r.replace(bxe,'<a target="_blank" href="$1">$1</a>');var Sxe=Object.defineProperty,wxe=Object.getOwnPropertyDescriptor,xxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?wxe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Sxe(e,t,n),n};let Q0=class extends Z(X){constructor(){super(...arguments);f(this,"linkExternalUrls",$xe)}get docsUrl(){return he.DOCS_REQUIRED_CONFIGURATION}get moonrakerDocsUrl(){return he.DOCS_MOONRAKER_COMPONENTS}get printerWarningsTxt(){return this.$t("app.general.error.app_setup_link",{url:this.docsUrl})}get moonrakerFailedComponentsTxt(){return this.$t("app.general.error.components_config",{url:this.moonrakerDocsUrl})}get appName(){return he.APP_NAME}get printerWarnings(){return this.$store.getters["printer/getPrinterWarnings"]}get klipperWarnings(){return this.$store.getters["printer/getKlipperWarnings"]}get moonrakerFailedComponents(){return this.$store.getters["printer/getMoonrakerFailedComponents"]}get moonrakerWarnings(){return this.$store.getters["printer/getMoonrakerWarnings"]}};Q0=xxe([L({components:{}})],Q0);var Cxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Vn,{staticClass:"mb-0",attrs:{text:"",dense:"",icon:"$warning",type:"warning"}},[e.printerWarnings.length>0?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.general.error.app_warnings_found",{appName:e.appName}))+" ")]),t("ul",{staticClass:"mb-4"},e._l(e.printerWarnings,function(s,n){return t("li",{key:n,domProps:{innerHTML:e._s(e.linkExternalUrls(s.message))}})}),0)]:e._e(),e.klipperWarnings.length>0?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.general.error.app_warnings_found",{appName:"Klipper"}))+" ")]),t("ul",{staticClass:"mb-4"},e._l(e.klipperWarnings,function(s,n){return t("li",{key:n,domProps:{innerHTML:e._s(e.linkExternalUrls(s.message))}})}),0)]:e._e(),e.moonrakerFailedComponents.length>0?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.general.error.failed_components"))+" ")]),t("ul",{staticClass:"mb-4"},e._l(e.moonrakerFailedComponents,function(s,n){return t("li",{key:n,domProps:{innerHTML:e._s(e.linkExternalUrls(s))}})}),0)]:e._e(),e.moonrakerWarnings.length>0?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.general.error.app_warnings_found",{appName:"Moonraker"}))+" ")]),t("ul",{staticClass:"mb-4"},e._l(e.moonrakerWarnings,function(s,n){return t("li",{key:n,domProps:{innerHTML:e._s(e.linkExternalUrls(s))}})}),0)]:e._e(),e.printerWarnings.length>0?t("div",[t("span",{domProps:{innerHTML:e._s(e.printerWarningsTxt)}})]):e._e(),e.moonrakerFailedComponents.length>0?t("div",[t("span",{domProps:{innerHTML:e._s(e.moonrakerFailedComponentsTxt)}})]):e._e()],2)},Pxe=[],Lxe=A(Q0,Cxe,Pxe,!1,null,null);const Axe=Lxe.exports;var Exe=Object.defineProperty,Oxe=Object.getOwnPropertyDescriptor,Txe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Oxe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Exe(e,t,n),n};let J0=class extends Z(X){};J0=Txe([L({})],J0);var kxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Xe,{attrs:{title:`Klippy: ${e.klippyState}`,icon:"$error","icon-color":"error"}},[t(Pe,[t(te,[t(I,{attrs:{cols:"12",sm:"auto"}},[t(M7)],1),t(I,{attrs:{cols:"12",sm:""}},[e.klippyStateMessage!=="Printer is ready"?t(Vn,{attrs:{text:"",dense:"",type:"error"}},[t("span",{domProps:{innerHTML:e._s(e.klippyStateMessage)}})]):e._e(),e.hasWarnings?t(Axe):e._e()],1)],1)],1)],1)},Dxe=[],Mxe=A(J0,kxe,Dxe,!1,null,null);const Rxe=Mxe.exports;var Ixe=Object.defineProperty,Fxe=Object.getOwnPropertyDescriptor,Vd=(r,e,t,s)=>{for(var n=s>1?void 0:s?Fxe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Ixe(e,t,n),n};let za=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"type");f(this,"text");f(this,"timeout")}};Vd([He({type:Boolean})],za.prototype,"open",2);Vd([$({type:String,default:"dark"})],za.prototype,"type",2);Vd([$({type:String,default:"Saved!"})],za.prototype,"text",2);Vd([$({type:Number,default:1500})],za.prototype,"timeout",2);za=Vd([L({})],za);var Hxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Fm,{attrs:{color:e.type,timeout:e.timeout,elevation:"24","multi-line":"",top:"",centered:""},scopedSlots:e._u([{key:"action",fn:function({attrs:s}){return[t(M,e._b({attrs:{dark:""},on:{click:function(n){e.open=!1}}},"app-btn",s,!1),[e._v(" "+e._s(e.$t("app.general.btn.close"))+" ")])]}}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t("span",{domProps:{innerHTML:e._s(e.text)}})])},Bxe=[],jxe=A(za,Hxe,Bxe,!1,null,"daf8ff2d");const Vxe=jxe.exports;var Nxe=Object.defineProperty,zxe=Object.getOwnPropertyDescriptor,Uxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?zxe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Nxe(e,t,n),n};let ey=class extends b{get user(){return this.$store.getters["auth/getCurrentUser"]}get currentUser(){return this.user?this.user.username==="_TRUSTED_USER_"||this.user.username==="_API__API_KEY_USER_USER_"?Ny(Q3(this.user.username)):this.user.username:""}get isTrustedOnly(){return this.user?this.user.username==="_TRUSTED_USER_"||this.user.username==="_API__API_KEY_USER_USER_":!1}async handleLogout(){await this.$store.dispatch("auth/checkTrust")}};ey=Uxe([L({})],ey);var Wxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{"nudge-width":260,"offset-y":"","close-delay":300},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(Fe,e._g(e._b({attrs:{fab:"",text:"",small:""},on:{click:function(a){return e.$emit("drawer")}}},"v-btn",n,!1),{...i,...s}),[t(w,[e._v("$account")])],1)]}}],null,!0)},[t("span",[e._v(e._s(e.currentUser))])])]}}])},[t(Ie,[t(Pe,{staticClass:"text-center"},[t("div",[t(w,{attrs:{large:""}},[e._v(" $account ")])],1),t("span",{staticClass:"text-h5"},[e._v(e._s(e.currentUser))]),e.user&&!e.isTrustedOnly?t("div",{staticClass:"mt-3"},[t(M,{attrs:{disabled:e.user.source!=="moonraker",small:""},on:{click:function(s){return e.$emit("change-password")}}},[e._v(" "+e._s(e.$t("app.general.label.change_password"))+" ")]),e.user.source!=="moonraker"?t("div",{staticClass:"mt-2"},[t("small",[e._v(" "+e._s(e.$t("app.general.label.user_managed_source",{source:e.$t(`app.general.label.${e.user.source}`)}))+" ")])]):e._e()],1):e._e()]),t(R),t(Mt,{staticClass:"py-0",attrs:{dense:""}},[t(we,{on:{click:function(s){return e.$filters.routeTo(e.$router,"/settings#auth")}}},[t(qe,[t(w,[e._v("$addAccount")])],1),t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.manage_accounts")))])],1)],1),e.isTrustedOnly?e._e():[t(R),t(we,[t(Ee,{staticClass:"justify-center"},[t(M,{on:{click:e.handleLogout}},[e._v(" "+e._s(e.$t("app.general.btn.logout"))+" ")])],1)],1)]],2)],1)],1)},Gxe=[],qxe=A(ey,Wxe,Gxe,!1,null,null);const Zxe=qxe.exports;var Yxe=Object.defineProperty,Kxe=Object.getOwnPropertyDescriptor,Xxe=(r,e,t,s)=>{for(var n=s>1?void 0:s?Kxe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&Yxe(e,t,n),n};let ty=class extends Z(X){get presets(){return[{label:this.$filters.formatRelativeTime(1,"hour",{numeric:"always"}),delay:3600},{label:this.$filters.formatRelativeTime(1,"day",{numeric:"always"}),delay:3600*24},{label:this.$filters.formatRelativeTime(7,"day",{numeric:"always"}),delay:3600*24*7}]}};ty=Xxe([L({})],ty);var Qxe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{bottom:"",left:"","offset-y":"",transition:"slide-y-transition","min-width":"150"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({attrs:{"x-small":""}},"app-btn",n,!1),s),[t(w,{staticClass:"mr-1",attrs:{"x-small":""}},[e._v(" $snooze ")]),e._v(" "+e._s(e.$t("app.general.btn.snooze"))+" "),t(w,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{"x-small":""}},[e._v(" $chevronDown ")])],1)]}}])},[t(Mt,{attrs:{dense:""}},e._l(e.presets,function(s){return t(we,{key:s.delay,attrs:{link:"",dense:""},on:{click:function(n){return e.$emit("dismiss",s.delay)}}},[t(xe,[t(w,{attrs:{small:"",left:""}},[e._v(" $clock ")]),e._v(" "+e._s(s.label)+" ")],1)],1)}),1)],1)},Jxe=[],eCe=A(ty,Qxe,Jxe,!1,null,null);const jP=eCe.exports,tCe=r=>"setAppBadge"in r;var rCe=Object.defineProperty,sCe=Object.getOwnPropertyDescriptor,VP=(r,e,t,s)=>{for(var n=s>1?void 0:s?sCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&rCe(e,t,n),n};let Kf=class extends Z(lt){constructor(){super(...arguments);f(this,"menu",!1)}get notifications(){return this.$store.getters["notifications/getNotifications"]}get notificationsCounter(){return this.notifications.filter(t=>!t.noCount).length}onNotificationsCounter(e){tCe(navigator)&&navigator.setAppBadge(e)}get clearableNotifications(){return this.$store.getters["notifications/getNotifications"].filter(t=>t.clear)}get color(){if(this.notifications.length<=0)return"transparent";let e="transparent";for(const t of this.notifications)if(t.type==="warning"&&e!=="error"&&(e="warning"),t.type==="error"&&e!=="error"){e="error";break}return e}get badgeColor(){return this.color==="transparent"?"info":this.color}icon(e){if(e.icon)return e.icon;switch(e.type){case"info":case"success":case"announcement":return"$info";case"warning":return"$warning"}return"$error"}classes(e){return`notification-${e.type}`}handleClear(e){this.$store.dispatch("notifications/clearNotification",e)}handleClearAll(){this.$store.dispatch("notifications/clearAll")}handleAnnouncementDismiss(e,t){e&&t&&(this.$store.dispatch("announcements/dismiss",{entry_id:e.id,wake_time:t}),this.menu=!1)}};VP([Ae("notificationsCounter")],Kf.prototype,"onNotificationsCounter",1);Kf=VP([L({components:{AppAnnouncementDismissMenu:jP}})],Kf);var nCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Et,{attrs:{"offset-y":"",left:"","max-width":e.isMobileViewport?220:420,"close-on-content-click":!1,"close-delay":300},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:i}){return[t(T6,{attrs:{value:e.notificationsCounter,content:e.notificationsCounter,"offset-x":"17","offset-y":"17",bordered:"",overlap:"",color:e.badgeColor}},[t(Fe,e._g(e._b({attrs:{fab:"",small:"",color:e.color,elevation:0}},"v-btn",n,!1),{...i,...s}),[t(w,{class:{wiggle:e.color==="error"}},[e._v(" $bell ")])],1)],1)]}}],null,!0)},[t("span",[e._v(e._s(e.$t("app.general.tooltip.notifications")))])])]}}]),model:{value:e.menu,callback:function(s){e.menu=s},expression:"menu"}},[t(Ie,[t(Mt,{staticClass:"py-0 overflow-y-auto app-notifications",staticStyle:{"max-height":"90vh"}},[e.notifications.length===0?t(we,[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.no_notifications")))])],1)],1):e.notifications.length>0?[t(we,{attrs:{disabled:e.clearableNotifications.length<=0},on:{click:e.handleClearAll}},[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.clear_all")))])],1),t(ir,{staticClass:"notification-clear-all"},[t(w,{attrs:{small:""}},[e._v(" $close ")])],1)],1),t(R)]:e._e(),e._l(e.notifications,function(s,n){return[t(we,{key:`notification-${s.id}`,class:e.classes(s),attrs:{"three-line":""}},[t(Ee,[t(xe,{domProps:{innerHTML:e._s(s.title)}}),s.description?t(Jp,{staticClass:"notification-description",domProps:{innerHTML:e._s(s.description)}}):e._e(),t(Jp,{staticClass:"notification-timestamp"},[e._v(" "+e._s(e.$filters.formatRelativeTimeToNow(s.timestamp*1e3))+" ")]),s.to?t(Jp,[s.to.startsWith("http")?t(M,{staticClass:"mr-1",attrs:{"x-small":"",href:s.to,target:"_blank"},domProps:{innerHTML:e._s(s.btnText?s.btnText:e.$t("app.general.btn.more_information"))},on:{click:function(i){e.menu=!1}}}):t(M,{staticClass:"mr-1",attrs:{"x-small":"",to:s.to},domProps:{innerHTML:e._s(s.btnText?s.btnText:e.$t("app.general.btn.more_information"))},on:{click:function(i){e.menu=!1}}}),s.type==="announcement"?t(jP,{on:{dismiss:function(i){return e.handleAnnouncementDismiss(s,i)}}}):e._e()],1):e._e()],1),s.suffix?t(ir,{staticClass:"notification-suffix"},[s.suffixIcon?t(w,{attrs:{color:e.color},domProps:{innerHTML:e._s(s.suffixIcon)}}):e._e(),t("div",{staticClass:"notification-temp",domProps:{innerHTML:e._s(s.suffix)}})],1):e._e(),s.clear?t(ir,{staticClass:"notification-clear",on:{click:function(i){return e.handleClear(s)}}},[t(Fe,{attrs:{icon:"",small:""}},[t(w,{attrs:{small:""}},[e._v(" $close ")])],1)],1):e._e()],1),n<e.notifications.length-1?t(R,{key:`divider-${s.id}`}):e._e()]})],2)],1)],1)},iCe=[],aCe=A(Kf,nCe,iCe,!1,null,"a6d059b4");const oCe=aCe.exports;var lCe=Object.defineProperty,cCe=Object.getOwnPropertyDescriptor,V2=(r,e,t,s)=>{for(var n=s>1?void 0:s?cCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&lCe(e,t,n),n};let Zu=class extends b{constructor(){super(...arguments);f(this,"disabled");f(this,"uploadFile")}get rootProperties(){return this.$store.getters["files/getRootProperties"]("gcodes")}get accepts(){return this.rootProperties.accepts.join(",")}fileChanged(e){var t;e.target instanceof HTMLInputElement&&(((t=e.target.files)==null?void 0:t.length)===1&&this.$emit("upload",e.target.files[0]),e.target.value="")}};V2([$({type:Boolean})],Zu.prototype,"disabled",2);V2([ke("uploadFile")],Zu.prototype,"uploadFile",2);Zu=V2([L({})],Zu);var uCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mr-1 bg-transparent",attrs:{fab:"",small:"",elevation:0,color:"transparent",disabled:e.disabled},on:{click:function(i){return e.uploadFile.click()}}},"app-btn",n,!1),s),[t(w,[e._v(" $progressUpload ")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.label.upload_and_print")))])]),t("input",{ref:"uploadFile",staticStyle:{display:"none"},attrs:{type:"file",accept:e.accepts},on:{change:e.fileChanged}})],1)},dCe=[],pCe=A(Zu,uCe,dCe,!1,null,"6c092946");const NP=pCe.exports;var hCe=Object.defineProperty,fCe=Object.getOwnPropertyDescriptor,N2=(r,e,t,s)=>{for(var n=s>1?void 0:s?fCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&hCe(e,t,n),n};let Yu=class extends b{constructor(){super(...arguments);f(this,"disabled");f(this,"loading")}get isExpanded(){return this.$vuetify.breakpoint.mdAndUp}};N2([$({type:Boolean})],Yu.prototype,"disabled",2);N2([$({type:Boolean})],Yu.prototype,"loading",2);Yu=N2([L({})],Yu);var mCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.isExpanded?t(M,{attrs:{color:"",disabled:e.disabled,loading:e.loading},on:{click:function(s){return e.$emit("click")}}},[t(w,{staticClass:"mr-1",attrs:{color:"warning"}},[e._v(" $save ")]),t("span",[e._v(e._s(e.$t("app.general.btn.save_config_and_restart")))])],1):t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({attrs:{fab:"",small:"",text:"",color:"warning",elevation:0,disabled:e.disabled,loading:e.loading},on:{click:function(i){return e.$emit("click")}}},"app-btn",n,!1),s),[t(w,[e._v("$save")])],1)]}}])},[t("span",[e._v(e._s(e.$t("app.general.btn.save_config_and_restart")))])])},gCe=[],vCe=A(Yu,mCe,gCe,!1,null,null);const zP=vCe.exports;var _Ce=Object.defineProperty,yCe=Object.getOwnPropertyDescriptor,bCe=(r,e,t,s)=>{for(var n=s>1?void 0:s?yCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&_Ce(e,t,n),n};let ry=class extends b{get theme(){return this.$store.state.config.uiSettings.theme}get logoSrc(){return`./${this.theme.logo.src}`}};ry=bCe([L({})],ry);var $Ce=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"logo-wrapper"},[t("inline-svg",{attrs:{src:e.logoSrc}})],1)},SCe=[],wCe=A(ry,$Ce,SCe,!1,null,"7fe7065f");const UP=wCe.exports;var xCe=Object.defineProperty,CCe=Object.getOwnPropertyDescriptor,WP=(r,e,t,s)=>{for(var n=s>1?void 0:s?CCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&xCe(e,t,n),n};let Xf=class extends b{constructor(){super(...arguments);f(this,"open");f(this,"currentPassword","");f(this,"password","");f(this,"error",!1);f(this,"loading",!1)}get currentUser(){const t=this.$store.getters["auth/getCurrentUser"];return t&&t.username?t.username:""}async handleSave(){try{this.loading=!0,await rt.accessUserPasswordPost(this.currentPassword,this.password),_r.$emit(this.$tc("app.general.msg.password_changed"),{timeout:2e3}),this.open=!1}catch{this.error=!0}finally{this.loading=!1}}};WP([He({type:Boolean})],Xf.prototype,"open",2);Xf=WP([L({})],Xf);var PCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.general.label.change_password"),"cancel-button-loading":e.loading,"save-button-loading":e.loading,"max-width":"500"},on:{save:e.handleSave},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,{staticClass:"pa-0"},[e.error?[t(Vn,{staticClass:"mx-4 mt-4",attrs:{type:"error",text:""}},[e._v(" "+e._s(e.$t("app.general.msg.wrong_password"))+" ")]),t(R)]:e._e(),t(B,{attrs:{title:e.$t("app.general.label.current_password")}},[t(ae,{staticClass:"mt-0",attrs:{autocomplete:"current-password",filled:"",dense:"",type:"password","hide-details":"auto",rules:[e.$rules.required]},model:{value:e.currentPassword,callback:function(s){e.currentPassword=s},expression:"currentPassword"}})],1),t(R),t(B,{attrs:{title:e.$t("app.general.label.new_password")}},[t(ae,{staticClass:"mt-0",attrs:{autocomplete:"current-password",filled:"",dense:"",type:"password","hide-details":"auto",rules:[e.$rules.required,e.$rules.lengthGreaterThanOrEqual(4),e.$rules.passwordNotEqualUsername(e.currentUser)]},model:{value:e.password,callback:function(s){e.password=s},expression:"password"}})],1)],2)],1)},LCe=[],ACe=A(Xf,PCe,LCe,!1,null,null);const ECe=ACe.exports;var OCe=Object.defineProperty,TCe=Object.getOwnPropertyDescriptor,GP=(r,e,t,s)=>{for(var n=s>1?void 0:s?TCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&OCe(e,t,n),n};let Qf=class extends b{constructor(){super(...arguments);f(this,"open")}get saveConfigPendingItems(){const t=this.$store.getters["printer/getSaveConfigPendingItems"],{changed:s,deleted:n}=Object.entries(t).reduce((a,[o,l])=>{if(l===null)a.deleted.push(`# [${o}]`);else{const c=Object.entries(l).map(([u,d])=>`${u}: ${d}`);a.changed.push(`[${o}]
${c.join(`
`)}`)}return a},{changed:[],deleted:[]}),i=[...s];return n.length>0&&i.push(`# ${this.$t("app.general.msg.pending_configuration_sections_deleted")}
${n.join(`
`)}`),i.join(`
`)}handleSubmit(){this.open=!1,this.$emit("save")}};GP([He({type:Boolean})],Qf.prototype,"open",2);Qf=GP([L({})],Qf);var kCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{title:e.$t("app.general.title.pending_configuration_changes"),"save-button-text":e.$t("app.general.btn.save_config_and_restart"),"max-width":"600"},on:{save:e.handleSubmit},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(jm,{staticStyle:{width:"100%","font-family":"monospace","font-size":"1rem","font-weight":"100 !important"},attrs:{readonly:"","auto-grow":"",rows:"1",value:e.saveConfigPendingItems,spellcheck:"false"}})],1)],1)},DCe=[],MCe=A(Qf,kCe,DCe,!1,null,null);const RCe=MCe.exports;var ICe=Object.defineProperty,FCe=Object.getOwnPropertyDescriptor,HCe=(r,e,t,s)=>{for(var n=s>1?void 0:s?FCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ICe(e,t,n),n};let sy=class extends Z(X,el,dr,lt){constructor(){super(...arguments);f(this,"menu",!1);f(this,"userPasswordDialogOpen",!1);f(this,"pendingChangesDialogOpen",!1)}get supportsAuth(){return this.$store.getters["server/componentSupport"]("authorization")}get instances(){return this.$store.state.config.instances}get instanceName(){return this.$store.state.config.uiSettings.general.instanceName}get currentFile(){return this.$store.state.printer.printer.print_stats.filename}get hasUpdates(){return this.$store.getters["version/hasUpdates"]}get saveConfigPending(){return this.$store.getters["printer/getSaveConfigPending"]}get saveConfigPendingItems(){return this.$store.getters["printer/getSaveConfigPendingItems"]}get showSaveConfigAndRestartForPendingChanges(){if(!this.showSaveConfigAndRestart||!this.saveConfigPending)return!1;const e=this.sectionsToIgnorePendingConfigurationChanges;return e.length===0||Object.keys(this.saveConfigPendingItems).filter(t=>!e.includes(t)).length>0}get devicePowerComponentEnabled(){return this.$store.getters["server/componentSupport"]("power")}get inLayout(){return this.$store.state.config.layoutMode}get showSaveConfigAndRestart(){return this.$store.state.config.uiSettings.general.showSaveConfigAndRestart}get sectionsToIgnorePendingConfigurationChanges(){return this.$store.state.config.uiSettings.general.sectionsToIgnorePendingConfigurationChanges}get showUploadAndPrint(){return this.$store.state.config.uiSettings.general.showUploadAndPrint}get topNavPowerToggle(){const e=this.$store.state.config.uiSettings.general.topNavPowerToggle;if(!e)return null;const[t,s]=e.split(":");switch(s){case"klipper":{const n=this.$store.getters["printer/getPinByName"](t);return{type:s,name:(n==null?void 0:n.prettyName)??t,device:n}}default:{const n=this.$store.getters["power/getDeviceByName"](e);return{type:"moonraker",name:e,device:n}}}}get topNavPowerDeviceOn(){const{type:e,device:t}=this.topNavPowerToggle||{};if(!t)return!1;switch(e){case"moonraker":return t.status==="on";case"klipper":return t.value!==0}return!1}get topNavPowerDeviceDisabled(){const{type:e,device:t}=this.topNavPowerToggle||{};if(!t)return!0;switch(e){case"moonraker":return this.printerPrinting&&t.locked_while_printing||["init","error"].includes(t.status)||!this.devicePowerComponentEnabled;case"klipper":return!this.klippyReady}return!0}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}handleExitLayout(){this.$store.commit("config/setLayoutMode",!1)}get isDashboard(){return this.$route.path==="/"}handleResetLayout(){const t={"/diagnostics":"diagnostics"}[this.$route.path];let s;t?s=Ba().layouts[t]:s=this.$store.getters["layout/getLayout"]("dashboard");const n=t??this.$store.getters["layout/getSpecificLayoutName"];this.$store.dispatch("layout/onLayoutChange",{name:n,value:s})}handleSetDefaultLayout(){const e=this.$store.getters["layout/getSpecificLayoutName"];this.$store.dispatch("layout/onLayoutChange",{name:"dashboard",value:this.$store.getters["layout/getLayout"](e)})}handleResetDefaultLayout(){this.$store.dispatch("layout/onLayoutChange",{name:"dashboard",value:Ba().layouts.dashboard})}async handlePowerToggle(){const{type:e,device:t}=this.topNavPowerToggle||{};if(!t)return;if(!this.$store.state.config.uiSettings.general.confirmOnPowerDeviceChange||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_power_device_toggle"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))switch(e){case"moonraker":{const i=t.status==="on"?"off":"on";F.machineDevicePowerToggle(t.device,i);break}case"klipper":{const i=t.value!==0?0:t.scale;this.sendGcode(`SET_PIN PIN=${t.name} VALUE=${i}`,`${this.$waits.onSetOutputPin}${t.name}`);break}}}handleUploadAndPrint(e){this.uploadFile(e,"/","gcodes",!0)}saveConfigAndRestart(e=!1){if(!e&&this.$store.state.config.uiSettings.general.confirmOnSaveConfigAndRestart){this.pendingChangesDialogOpen=!0;return}this.sendGcode("SAVE_CONFIG",this.$waits.onSaveConfig)}};sy=HCe([L({components:{UserPasswordDialog:ECe,PendingChangesDialog:RCe,AppSaveConfigAndRestartBtn:zP,AppUploadAndPrintBtn:NP}})],sy);var BCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(PU,{attrs:{app:"","clipped-left":"","extension-height":"46",color:e.$vuetify.theme.currentTheme.appbar,height:e.$globals.HEADER_HEIGHT},scopedSlots:e._u([e.inLayout?{key:"extension",fn:function(){return[t(M,{staticClass:"mx-2",attrs:{small:"",color:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleExitLayout.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("app.general.btn.exit_layout"))+" ")]),t(M,{staticClass:"mx-2",attrs:{small:"",color:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleResetLayout.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("app.general.btn.reset_layout"))+" ")]),e.isDashboard?[t(R,{staticClass:"mx-2",attrs:{vertical:""}}),t(M,{staticClass:"mx-2",attrs:{small:"",color:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleSetDefaultLayout.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("app.general.btn.set_default_layout"))+" ")]),t(M,{staticClass:"mx-2",attrs:{small:"",color:"primary"},on:{click:function(s){return s.stopPropagation(),e.handleResetDefaultLayout.apply(null,arguments)}}},[e._v(" "+e._s(e.$t("app.general.btn.reset_default_layout"))+" ")])]:e._e()]},proxy:!0}:null],null,!0)},[e.isMobileViewport?e._e():t("router-link",{staticClass:"toolbar-logo",attrs:{to:"/"}},[t(UP)],1),t("div",{staticClass:"toolbar-title"},[e.isMobileViewport?t(M,{staticClass:"mx-1",attrs:{fab:"",small:"",elevation:0,color:"transparent"},on:{click:function(s){return e.$emit("navdrawer")}}},[t(w,[e._v("$menuAlt")])],1):e._e(),t(Sd,{staticClass:"printer-title text--secondary"},[t("router-link",{attrs:{to:"/"},domProps:{innerHTML:e._s(e.instanceName)}})],1)],1),t("div",{staticClass:"toolbar-supplemental"},[e.socketConnected&&e.klippyReady&&e.authenticated&&e.showSaveConfigAndRestartForPendingChanges?t("div",{staticClass:"mr-1"},[t(zP,{attrs:{loading:e.hasWait(e.$waits.onSaveConfig),disabled:e.printerPrinting||e.printerPaused},on:{click:e.saveConfigAndRestart}})],1):e._e(),e.socketConnected&&!e.isMobileViewport&&e.authenticated?t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mx-1",attrs:{disabled:!e.klippyReady,color:""},on:{click:function(i){return e.emergencyStop()}}},"app-btn",n,!1),s),[t(w,{attrs:{color:"error"}},[e._v(" $estop ")])],1)]}}],null,!1,764196110)},[t("span",[e._v(" "+e._s(e.$t("app.general.tooltip.estop"))+" "),e.enableKeyboardShortcuts?[t("br"),t("kbd",[e._v("Ctrl")]),e._v(" + "),t("kbd",[e._v("Shift")]),e._v(" + "),t("kbd",[e._v("e")])]:e._e()],2)])],1):e._e(),e.authenticated&&e.socketConnected&&e.showUploadAndPrint?t("div",[t(NP,{attrs:{disabled:e.printerPrinting||e.printerPaused||!e.klippyReady},on:{upload:e.handleUploadAndPrint}})],1):e._e(),e.authenticated&&e.socketConnected&&e.topNavPowerToggle?t("div",[t(Oe,{attrs:{bottom:""},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n}){return[t(M,e._g(e._b({staticClass:"mr-1 bg-transparent",attrs:{fab:"",small:"",elevation:0,color:"transparent",disabled:e.topNavPowerDeviceDisabled},on:{click:function(i){return e.handlePowerToggle()}}},"app-btn",n,!1),s),[t(w,[e._v(" "+e._s(e.topNavPowerDeviceOn?"$powerOn":"$powerOff")+" ")])],1)]}}],null,!1,1321933211)},[t("span",[e._v(e._s(e.$t(`app.general.label.turn_device_${e.topNavPowerDeviceOn?"off":"on"}`,{device:e.topNavPowerToggle.name})))])])],1):e._e(),e.authenticated&&e.socketConnected?t("div",{staticClass:"mr-1"},[t(oCe)],1):e._e(),e.supportsAuth&&e.authenticated?t("div",{staticClass:"mr-1"},[t(Zxe,{on:{"change-password":function(s){e.userPasswordDialogOpen=!0}}})],1):e._e(),t(M,{staticClass:"mr-1",attrs:{fab:"",small:"",elevation:0,color:"transparent"},on:{click:function(s){return e.$emit("toolsdrawer")}}},[t(w,[e._v("$menu")])],1)],1),e.userPasswordDialogOpen?t("user-password-dialog",{model:{value:e.userPasswordDialogOpen,callback:function(s){e.userPasswordDialogOpen=s},expression:"userPasswordDialogOpen"}}):e._e(),e.pendingChangesDialogOpen?t("pending-changes-dialog",{on:{save:function(s){return e.saveConfigAndRestart(!0)}},model:{value:e.pendingChangesDialogOpen,callback:function(s){e.pendingChangesDialogOpen=s},expression:"pendingChangesDialogOpen"}}):e._e()],1)},jCe=[],VCe=A(sy,BCe,jCe,!1,null,"213ef2d8");const NCe=VCe.exports;var zCe=Object.defineProperty,UCe=Object.getOwnPropertyDescriptor,Nd=(r,e,t,s)=>{for(var n=s>1?void 0:s?UCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&zCe(e,t,n),n};let Ua=class extends Z(X,lt){constructor(){super(...arguments);f(this,"title");f(this,"to");f(this,"exact");f(this,"icon")}get accelerator(){if(this.to){const e=this.to==="/"?"home":this.to.substring(1);return gl(e,he.KEYBOARD_SHORTCUTS)?he.KEYBOARD_SHORTCUTS[e]:void 0}}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}handleKeyDown(e){if(!this.enableKeyboardShortcuts||!this.accelerator)return;j2(e)===this.accelerator&&!B2(e)&&this.$router.currentRoute.path!==this.to&&(e.preventDefault(),this.$router.push(this.to))}mounted(){window.addEventListener("keydown",this.handleKeyDown,!1)}beforeDestroy(){window.removeEventListener("keydown",this.handleKeyDown)}};Nd([$({type:String})],Ua.prototype,"title",2);Nd([$({type:String})],Ua.prototype,"to",2);Nd([$({type:Boolean})],Ua.prototype,"exact",2);Nd([$({type:String})],Ua.prototype,"icon",2);Ua=Nd([L({})],Ua);var WCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Oe,{attrs:{right:"",disabled:e.isMobileViewport},scopedSlots:e._u([{key:"activator",fn:function({attrs:s,on:n}){return[t(we,e._g(e._b({attrs:{to:e.to,exact:e.exact,link:"",color:"secondary"}},"v-list-item",s,!1),n),[t(qe,[t(w,[e._v(e._s(e.icon))])],1),t(Ee,[t(xe,[e._t("default")],2)],1)],1)]}}],null,!0)},[t("span",[e._t("default"),e.accelerator&&e.enableKeyboardShortcuts?t("kbd",{staticClass:"ml-2"},[e._v(e._s(e.accelerator))]):e._e()],2)])},GCe=[],qCe=A(Ua,WCe,GCe,!1,null,"e6314cf1");const Is=qCe.exports;var ZCe=Object.defineProperty,YCe=Object.getOwnPropertyDescriptor,qP=(r,e,t,s)=>{for(var n=s>1?void 0:s?YCe(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&ZCe(e,t,n),n};let Jf=class extends Z(X,lt){constructor(){super(...arguments);f(this,"open")}get supportsHistory(){return this.$store.getters["server/componentSupport"]("history")}get supportsTimelapse(){return this.$store.getters["server/componentSupport"]("timelapse")}get enableDiagnostics(){return this.$store.state.config.uiSettings.general.enableDiagnostics}get hasSubNavigation(){var e;return((e=this.$route.meta)==null?void 0:e.hasSubNavigation)??!1}get showSubNavigation(){return this.hasSubNavigation&&this.socketConnected&&this.authenticated}};qP([He({type:Boolean})],Jf.prototype,"open",2);Jf=qP([L({})],Jf);var KCe=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Yv,{attrs:{color:e.$vuetify.theme.currentTheme.drawer,"mini-variant":!e.showSubNavigation,floating:!e.showSubNavigation,clipped:"",app:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(te,{staticClass:"fill-height",attrs:{"no-gutters":""}},[t(Yv,{staticClass:"pb-16 pb-sm-0",attrs:{color:e.$vuetify.theme.currentTheme.drawer,"mini-variant":"",value:e.open}},[e.isMobileViewport?t("div",{staticClass:"app-icon",style:`height: ${e.$globals.HEADER_HEIGHT}px;`},[t("router-link",{attrs:{to:"/"}},[t(UP)],1)],1):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.authenticated&&e.socketConnected,expression:"authenticated && socketConnected"}],staticClass:"nav-items"},[t(Is,{attrs:{icon:"$dash",exact:"",to:"/"}},[e._v(" "+e._s(e.$t("app.general.title.home"))+" ")]),t(Is,{attrs:{icon:"$console",to:"/console"}},[e._v(" "+e._s(e.$t("app.general.title.console"))+" ")]),t(Is,{attrs:{icon:"$cubeScan",to:"/preview"}},[e._v(" "+e._s(e.$t("app.general.title.gcode_preview"))+" ")]),t(Is,{attrs:{icon:"$files",to:"/jobs"}},[e._v(" "+e._s(e.$t("app.general.title.jobs"))+" ")]),e.supportsHistory?t(Is,{attrs:{icon:"$history",to:"/history"}},[e._v(" "+e._s(e.$t("app.general.title.history"))+" ")]):e._e(),e.supportsTimelapse?t(Is,{attrs:{icon:"$video",to:"/timelapse"}},[e._v(" "+e._s(e.$t("app.general.title.timelapse"))+" ")]):e._e(),t(Is,{attrs:{icon:"$tune",to:"/tune"}},[e._v(" "+e._s(e.$t("app.general.title.tune"))+" ")]),e.enableDiagnostics?t(Is,{attrs:{icon:"$chart",to:"/diagnostics"}},[e._v(" "+e._s(e.$t("app.general.title.diagnostics"))+" ")]):e._e(),t(Is,{attrs:{icon:"$codeJson",to:"/configure"}},[e._v(" "+e._s(e.$t("app.general.title.configure"))+" ")]),t(Is,{attrs:{icon:"$desktopTower",to:"/system"}},[e._v(" "+e._s(e.$t("app.general.title.system"))+" ")]),t(Is,{attrs:{icon:"$cog",to:"/settings"}},[e._v(" "+e._s(e.$t("app.general.title.settings"))+" ")])],1)]),e.showSubNavigation?t("router-view",{attrs:{name:"navigation"}}):e._e()],1)],1)},XCe=[],QCe=A(Jf,KCe,XCe,!1,null,"7288465b");const JCe=QCe.exports;var e3e=Object.defineProperty,t3e=Object.getOwnPropertyDescriptor,r3e=(r,e,t,s)=>{for(var n=s>1?void 0:s?t3e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&e3e(e,t,n),n};let ny=class extends Z(X){get layoutMode(){return this.$store.state.config.layoutMode}set layoutMode(r){this.$store.commit("config/setLayoutMode",r),this.close()}close(){this.$emit("click")}};ny=r3e([L({})],ny);var s3e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Mt,{attrs:{dense:""}},[t(Jt,[e._v(e._s(e.$t("app.general.label.layout")))]),t(we,{on:{click:function(s){s.preventDefault(),e.layoutMode=!e.layoutMode}}},[t(qe,[t(w,[e._v("$apps")])],1),t(Ee,[t(xe,{staticClass:"text-wrap"},[e._v(" "+e._s(e.$t("app.general.btn.adjust_layout"))+" ")])],1)],1)],1)},n3e=[],i3e=A(ny,s3e,n3e,!1,null,null);const a3e=i3e.exports;var o3e=Object.defineProperty,l3e=Object.getOwnPropertyDescriptor,c3e=(r,e,t,s)=>{for(var n=s>1?void 0:s?l3e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&o3e(e,t,n),n};let iy=class extends Z(X,el){get serverInfo(){return this.$store.getters["server/getInfo"]}get hosted(){return this.$store.state.config.hostConfig.hosted}get powerDevices(){return this.$store.getters["power/getDevices"]}get devicePowerComponentEnabled(){return this.$store.getters["server/componentSupport"]("power")}get services(){return this.$store.getters["server/getServices"].filter(e=>e.name!=="klipper_mcu")}get systemInfo(){return this.$store.getters["server/getSystemInfo"]}get canControlHost(){var r,e;return((e=(r=this.systemInfo)==null?void 0:r.virtualization)==null?void 0:e.virt_type)!=="container"}async checkDialog(r,e,t){var n;(!(this.printerPrinting||["restart","stop"].includes(t))||await this.$confirm((n=this.$t(`app.general.simple_form.msg.confirm_service_${t}`,{name:e.name}))==null?void 0:n.toString(),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"}))&&(this.$emit("click"),await r(e))}async serviceRestart(r){await this.serviceRestartByName(r.name)}async serviceStart(r){await this.serviceStartByName(r.name)}async serviceStop(r){await this.serviceStopByName(r.name)}async handleHostReboot(){await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_reboot_host"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&(this.$emit("click"),this.hostReboot())}async handleHostShutdown(){await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_shutdown_host"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})&&(this.$emit("click"),this.hostShutdown())}async togglePowerDevice(r,e){if(!this.$store.state.config.uiSettings.general.confirmOnPowerDeviceChange||await this.$confirm(this.$tc("app.general.simple_form.msg.confirm_power_device_toggle"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$error"})){const n=r.status==="on"?"off":"on";F.machineDevicePowerToggle(r.device,n,e)}}getPowerIcon(r){switch(r.status){case"error":return"$error";case"init":return"$dots";case"on":return"$powerOn";case"off":return"$powerOff"}}getPowerButtonText(r){switch(r.status){case"error":return`${r.device} [error]`;default:return`${r.device}`}}};iy=c3e([L({})],iy);var u3e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",[e.canControlHost?t(pg,{attrs:{"prepend-icon":"$host","no-action":""},scopedSlots:e._u([{key:"activator",fn:function(){return[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.host")))])],1)]},proxy:!0}],null,!1,1925167467)},[t(we,{attrs:{disabled:e.printerPrinting},on:{click:e.handleHostReboot}},[t(xe,[e._v(e._s(e.$t("app.general.btn.reboot")))]),t(qe,[t(w,{attrs:{color:"error"}},[e._v(" $powerCycle ")])],1)],1),t(we,{attrs:{disabled:e.printerPrinting},on:{click:e.handleHostShutdown}},[t(xe,[e._v(e._s(e.$t("app.general.btn.shutdown")))]),t(qe,[t(w,{attrs:{color:"error"}},[e._v(" $power ")])],1)],1)],1):e._e(),e.devicePowerComponentEnabled&&e.powerDevices.length?t(pg,{attrs:{"prepend-icon":"$power","no-action":""},scopedSlots:e._u([{key:"activator",fn:function(){return[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.power")))])],1)]},proxy:!0}],null,!1,2074444020)},e._l(e.powerDevices,function(s,n){return t(we,{key:n,attrs:{disabled:s.status==="error"||s.status==="init"||e.printerPrinting&&s.locked_while_printing,loading:e.hasWait(`${e.$waits.onDevicePowerToggle}${s.device}`)},on:{click:function(i){return e.togglePowerDevice(s,`${e.$waits.onDevicePowerToggle}${s.device}`)}}},[t(xe,[e._v(e._s(e.getPowerButtonText(s)))]),t(qe,[t(w,[e._v(e._s(e.getPowerIcon(s)))])],1)],1)}),1):e._e(),t(pg,{attrs:{"prepend-icon":"$restart","no-action":""},scopedSlots:e._u([{key:"activator",fn:function(){return[t(Ee,[t(xe,[e._v(e._s(e.$t("app.general.label.services")))])],1)]},proxy:!0}])},[e._l(e.services,function(s){return[t(we,{key:s.name},[t(Ee,[t(xe,[t(Oe,{attrs:{left:""},scopedSlots:e._u([{key:"activator",fn:function({on:n,attrs:i}){return[t("span",e._g(e._b({staticClass:"text-wrap",staticStyle:{"text-transform":"capitalize"}},"span",i,!1),n),[e._v(e._s(s.name))])]}}],null,!0)},[t("span",{staticStyle:{"text-transform":"capitalize"}},[e._v(e._s(s.active_state)+" ("+e._s(s.sub_state)+")")])])],1)],1),t(ir,[s.active_state==="inactive"?t(Fe,{attrs:{icon:""},on:{click:function(n){return e.checkDialog(e.serviceStart,s,"start")}}},[t(w,[e._v("$play")])],1):t(Fe,{attrs:{icon:""},on:{click:function(n){return e.checkDialog(e.serviceRestart,s,"restart")}}},[t(w,{attrs:{color:"warning"}},[e._v(" $restart ")])],1),t(Fe,{style:s.name===e.moonrakerServiceName?"visibility: hidden;":"",attrs:{icon:"",disabled:s.active_state==="inactive"},on:{click:function(n){return e.checkDialog(e.serviceStop,s,"stop")}}},[t(w,{attrs:{color:"error"}},[e._v(" $stop ")])],1)],1)],1)]})],2),t(R)],1)},d3e=[],p3e=A(iy,u3e,d3e,!1,null,"7c86c94d");const h3e=p3e.exports;var f3e=Object.defineProperty,m3e=Object.getOwnPropertyDescriptor,ZP=(r,e,t,s)=>{for(var n=s>1?void 0:s?m3e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&f3e(e,t,n),n};let em=class extends Z(X){constructor(){super(...arguments);f(this,"open")}get supportsHistory(){return this.$store.getters["server/componentSupport"]("history")}get instanceName(){return this.$store.state.config.uiSettings.general.instanceName}get serverInfo(){return this.$store.getters["server/getInfo"]}get hasUpdates(){return this.$store.getters["version/hasUpdates"]}};ZP([He({type:Boolean})],em.prototype,"open",2);em=ZP([L({})],em);var g3e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Yv,{attrs:{app:"",right:"",clipped:"",temporary:"",width:"300",dense:""},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[e.socketConnected&&e.authenticated?t(Mt,{attrs:{dense:""}},[t(Jt,[e._v(e._s(e.instanceName))]),t(R),t(h3e,{on:{click:function(s){e.open=!1}}})],1):e._e(),e.socketConnected&&e.authenticated?t(a3e,{on:{click:function(s){e.open=!1}}}):e._e()],1)},v3e=[],_3e=A(em,g3e,v3e,!1,null,null);const y3e=_3e.exports;var b3e=Object.defineProperty,$3e=Object.getOwnPropertyDescriptor,YP=(r,e,t,s)=>{for(var n=s>1?void 0:s?$3e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&b3e(e,t,n),n};let tm=class extends Z(X){constructor(){super(...arguments);f(this,"open",!!this.currentDownload)}onCurrentDownloadChange(t){this.open=!!t}get currentDownload(){return this.$store.state.files.download}handleCancelDownload(){var t;(t=this.currentDownload)==null||t.abortController.abort()}};YP([Ae("currentDownload")],tm.prototype,"onCurrentDownloadChange",1);tm=YP([L({})],tm);var S3e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(Fm,{attrs:{timeout:"-1","multi-line":"",elevation:"24",bottom:"",right:"",vertical:e.$vuetify.breakpoint.smAndDown},scopedSlots:e._u([{key:"action",fn:function({attrs:s}){return[t(M,e._b({on:{click:e.handleCancelDownload}},"app-btn",s,!1),[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")])]}}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[e.currentDownload?[t("div",{staticClass:"mb-2"},[e._v(" "+e._s(e.$t("app.file_system.title.download_file"))+": "+e._s(e.currentDownload.filepath)+" ")]),t(Ys,{staticClass:"mb-2",attrs:{value:e.currentDownload.percent,color:"primary"}}),t("table",[t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.file_system.label.downloaded"))+": ")]),t("td",[e._v(e._s(e.currentDownload.percent)+"% ("+e._s(e.$filters.getReadableFileSizeString(e.currentDownload.loaded))+" / "+e._s(e.$filters.getReadableFileSizeString(e.currentDownload.size))+")")])]),t("tr",[t("td",{staticClass:"pr-2"},[e._v(" "+e._s(e.$t("app.file_system.label.transfer_rate"))+": ")]),t("td",[e._v(e._s(e.$filters.getReadableDataRateString(e.currentDownload.speed)))])])])]:e._e()],2)},w3e=[],x3e=A(tm,S3e,w3e,!1,null,null);const C3e=x3e.exports;class We{constructor(e,t,s,n,i){this._legacyCanvasSize=We.DEFAULT_CANVAS_SIZE,this._preferredCamera="environment",this._maxScansPerSecond=25,this._lastScanTimestamp=-1,this._destroyed=this._flashOn=this._paused=this._active=!1,this.$video=e,this.$canvas=document.createElement("canvas"),s&&typeof s=="object"?this._onDecode=t:(console.warn(s||n||i?"You're using a deprecated version of the QrScanner constructor which will be removed in the future":"Note that the type of the scan result passed to onDecode will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),this._legacyOnDecode=t),t=typeof s=="object"?s:{},this._onDecodeError=t.onDecodeError||(typeof s=="function"?s:this._onDecodeError),this._calculateScanRegion=t.calculateScanRegion||(typeof n=="function"?n:this._calculateScanRegion),this._preferredCamera=t.preferredCamera||i||this._preferredCamera,this._legacyCanvasSize=typeof s=="number"?s:typeof n=="number"?n:this._legacyCanvasSize,this._maxScansPerSecond=t.maxScansPerSecond||this._maxScansPerSecond,this._onPlay=this._onPlay.bind(this),this._onLoadedMetaData=this._onLoadedMetaData.bind(this),this._onVisibilityChange=this._onVisibilityChange.bind(this),this._updateOverlay=this._updateOverlay.bind(this),e.disablePictureInPicture=!0,e.playsInline=!0,e.muted=!0;let a=!1;if(e.hidden&&(e.hidden=!1,a=!0),document.body.contains(e)||(document.body.appendChild(e),a=!0),s=e.parentElement,t.highlightScanRegion||t.highlightCodeOutline){if(n=!!t.overlay,this.$overlay=t.overlay||document.createElement("div"),i=this.$overlay.style,i.position="absolute",i.display="none",i.pointerEvents="none",this.$overlay.classList.add("scan-region-highlight"),!n&&t.highlightScanRegion){this.$overlay.innerHTML='<svg class="scan-region-highlight-svg" viewBox="0 0 238 238" preserveAspectRatio="none" style="position:absolute;width:100%;height:100%;left:0;top:0;fill:none;stroke:#e9b213;stroke-width:4;stroke-linecap:round;stroke-linejoin:round"><path d="M31 2H10a8 8 0 0 0-8 8v21M207 2h21a8 8 0 0 1 8 8v21m0 176v21a8 8 0 0 1-8 8h-21m-176 0H10a8 8 0 0 1-8-8v-21"/></svg>';try{this.$overlay.firstElementChild.animate({transform:["scale(.98)","scale(1.01)"]},{duration:400,iterations:1/0,direction:"alternate",easing:"ease-in-out"})}catch{}s.insertBefore(this.$overlay,this.$video.nextSibling)}t.highlightCodeOutline&&(this.$overlay.insertAdjacentHTML("beforeend",'<svg class="code-outline-highlight" preserveAspectRatio="none" style="display:none;width:100%;height:100%;fill:none;stroke:#e9b213;stroke-width:5;stroke-dasharray:25;stroke-linecap:round;stroke-linejoin:round"><polygon/></svg>'),this.$codeOutlineHighlight=this.$overlay.lastElementChild)}this._scanRegion=this._calculateScanRegion(e),requestAnimationFrame(()=>{let o=window.getComputedStyle(e);o.display==="none"&&(e.style.setProperty("display","block","important"),a=!0),o.visibility!=="visible"&&(e.style.setProperty("visibility","visible","important"),a=!0),a&&(console.warn("QrScanner has overwritten the video hiding style to avoid Safari stopping the playback."),e.style.opacity="0",e.style.width="0",e.style.height="0",this.$overlay&&this.$overlay.parentElement&&this.$overlay.parentElement.removeChild(this.$overlay),delete this.$overlay,delete this.$codeOutlineHighlight),this.$overlay&&this._updateOverlay()}),e.addEventListener("play",this._onPlay),e.addEventListener("loadedmetadata",this._onLoadedMetaData),document.addEventListener("visibilitychange",this._onVisibilityChange),window.addEventListener("resize",this._updateOverlay),this._qrEnginePromise=We.createQrEngine()}static set WORKER_PATH(e){console.warn("Setting QrScanner.WORKER_PATH is not required and not supported anymore. Have a look at the README for new setup instructions.")}static async hasCamera(){try{return!!(await We.listCameras(!1)).length}catch{return!1}}static async listCameras(e=!1){if(!navigator.mediaDevices)return[];let t=async()=>(await navigator.mediaDevices.enumerateDevices()).filter(n=>n.kind==="videoinput"),s;try{e&&(await t()).every(n=>!n.label)&&(s=await navigator.mediaDevices.getUserMedia({audio:!1,video:!0}))}catch{}try{return(await t()).map((n,i)=>({id:n.deviceId,label:n.label||(i===0?"Default Camera":`Camera ${i+1}`)}))}finally{s&&(console.warn("Call listCameras after successfully starting a QR scanner to avoid creating a temporary video stream"),We._stopVideoStream(s))}}async hasFlash(){let e;try{if(this.$video.srcObject){if(!(this.$video.srcObject instanceof MediaStream))return!1;e=this.$video.srcObject}else e=(await this._getCameraStream()).stream;return"torch"in e.getVideoTracks()[0].getSettings()}catch{return!1}finally{e&&e!==this.$video.srcObject&&(console.warn("Call hasFlash after successfully starting the scanner to avoid creating a temporary video stream"),We._stopVideoStream(e))}}isFlashOn(){return this._flashOn}async toggleFlash(){this._flashOn?await this.turnFlashOff():await this.turnFlashOn()}async turnFlashOn(){if(!this._flashOn&&!this._destroyed&&(this._flashOn=!0,this._active&&!this._paused))try{if(!await this.hasFlash())throw"No flash available";await this.$video.srcObject.getVideoTracks()[0].applyConstraints({advanced:[{torch:!0}]})}catch(e){throw this._flashOn=!1,e}}async turnFlashOff(){this._flashOn&&(this._flashOn=!1,await this._restartVideoStream())}destroy(){this.$video.removeEventListener("loadedmetadata",this._onLoadedMetaData),this.$video.removeEventListener("play",this._onPlay),document.removeEventListener("visibilitychange",this._onVisibilityChange),window.removeEventListener("resize",this._updateOverlay),this._destroyed=!0,this._flashOn=!1,this.stop(),We._postWorkerMessage(this._qrEnginePromise,"close")}async start(){if(this._destroyed)throw Error("The QR scanner can not be started as it had been destroyed.");if((!this._active||this._paused)&&(window.location.protocol!=="https:"&&console.warn("The camera stream is only accessible if the page is transferred via https."),this._active=!0,!document.hidden))if(this._paused=!1,this.$video.srcObject)await this.$video.play();else try{let{stream:e,facingMode:t}=await this._getCameraStream();!this._active||this._paused?We._stopVideoStream(e):(this._setVideoMirror(t),this.$video.srcObject=e,await this.$video.play(),this._flashOn&&(this._flashOn=!1,this.turnFlashOn().catch(()=>{})))}catch(e){if(!this._paused)throw this._active=!1,e}}stop(){this.pause(),this._active=!1}async pause(e=!1){if(this._paused=!0,!this._active)return!0;this.$video.pause(),this.$overlay&&(this.$overlay.style.display="none");let t=()=>{this.$video.srcObject instanceof MediaStream&&(We._stopVideoStream(this.$video.srcObject),this.$video.srcObject=null)};return e?(t(),!0):(await new Promise(s=>setTimeout(s,300)),this._paused?(t(),!0):!1)}async setCamera(e){e!==this._preferredCamera&&(this._preferredCamera=e,await this._restartVideoStream())}static async scanImage(e,t,s,n,i=!1,a=!1){let o,l=!1;t&&("scanRegion"in t||"qrEngine"in t||"canvas"in t||"disallowCanvasResizing"in t||"alsoTryWithoutScanRegion"in t||"returnDetailedScanResult"in t)?(o=t.scanRegion,s=t.qrEngine,n=t.canvas,i=t.disallowCanvasResizing||!1,a=t.alsoTryWithoutScanRegion||!1,l=!0):console.warn(t||s||n||i||a?"You're using a deprecated api for scanImage which will be removed in the future.":"Note that the return type of scanImage will change in the future. To already switch to the new api today, you can pass returnDetailedScanResult: true."),t=!!s;try{let c,u;[s,c]=await Promise.all([s||We.createQrEngine(),We._loadImage(e)]),[n,u]=We._drawToCanvas(c,o,n,i);let d;if(s instanceof Worker){let p=s;t||We._postWorkerMessageSync(p,"inversionMode","both"),d=await new Promise((h,m)=>{let g,v,y,C=-1;v=S=>{S.data.id===C&&(p.removeEventListener("message",v),p.removeEventListener("error",y),clearTimeout(g),S.data.data!==null?h({data:S.data.data,cornerPoints:We._convertPoints(S.data.cornerPoints,o)}):m(We.NO_QR_CODE_FOUND))},y=S=>{p.removeEventListener("message",v),p.removeEventListener("error",y),clearTimeout(g),m("Scanner error: "+(S?S.message||S:"Unknown Error"))},p.addEventListener("message",v),p.addEventListener("error",y),g=setTimeout(()=>y("timeout"),1e4);let x=u.getImageData(0,0,n.width,n.height);C=We._postWorkerMessageSync(p,"decode",x,[x.data.buffer])})}else d=await Promise.race([new Promise((p,h)=>window.setTimeout(()=>h("Scanner error: timeout"),1e4)),(async()=>{try{var[p]=await s.detect(n);if(!p)throw We.NO_QR_CODE_FOUND;return{data:p.rawValue,cornerPoints:We._convertPoints(p.cornerPoints,o)}}catch(h){if(p=h.message||h,/not implemented|service unavailable/.test(p))return We._disableBarcodeDetector=!0,We.scanImage(e,{scanRegion:o,canvas:n,disallowCanvasResizing:i,alsoTryWithoutScanRegion:a});throw`Scanner error: ${p}`}})()]);return l?d:d.data}catch(c){if(!o||!a)throw c;let u=await We.scanImage(e,{qrEngine:s,canvas:n,disallowCanvasResizing:i});return l?u:u.data}finally{t||We._postWorkerMessage(s,"close")}}setGrayscaleWeights(e,t,s,n=!0){We._postWorkerMessage(this._qrEnginePromise,"grayscaleWeights",{red:e,green:t,blue:s,useIntegerApproximation:n})}setInversionMode(e){We._postWorkerMessage(this._qrEnginePromise,"inversionMode",e)}static async createQrEngine(e){if(e&&console.warn("Specifying a worker path is not required and not supported anymore."),e=()=>Ye(()=>import("./qr-scanner-worker.min-D85Z9gVD.js"),[],import.meta.url).then(s=>s.createWorker()),!(!We._disableBarcodeDetector&&"BarcodeDetector"in window&&BarcodeDetector.getSupportedFormats&&(await BarcodeDetector.getSupportedFormats()).includes("qr_code")))return e();let t=navigator.userAgentData;return t&&t.brands.some(({brand:s})=>/Chromium/i.test(s))&&/mac ?OS/i.test(t.platform)&&await t.getHighEntropyValues(["architecture","platformVersion"]).then(({architecture:s,platformVersion:n})=>/arm/i.test(s||"arm")&&13<=parseInt(n||"13")).catch(()=>!0)?e():new BarcodeDetector({formats:["qr_code"]})}_onPlay(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay(),this.$overlay&&(this.$overlay.style.display=""),this._scanFrame()}_onLoadedMetaData(){this._scanRegion=this._calculateScanRegion(this.$video),this._updateOverlay()}_onVisibilityChange(){document.hidden?this.pause():this._active&&this.start()}_calculateScanRegion(e){let t=Math.round(.6666666666666666*Math.min(e.videoWidth,e.videoHeight));return{x:Math.round((e.videoWidth-t)/2),y:Math.round((e.videoHeight-t)/2),width:t,height:t,downScaledWidth:this._legacyCanvasSize,downScaledHeight:this._legacyCanvasSize}}_updateOverlay(){requestAnimationFrame(()=>{if(this.$overlay){var e=this.$video,t=e.videoWidth,s=e.videoHeight,n=e.offsetWidth,i=e.offsetHeight,a=e.offsetLeft,o=e.offsetTop,l=window.getComputedStyle(e),c=l.objectFit,u=t/s,d=n/i;switch(c){case"none":var p=t,h=s;break;case"fill":p=n,h=i;break;default:(c==="cover"?u>d:u<d)?(h=i,p=h*u):(p=n,h=p/u),c==="scale-down"&&(p=Math.min(p,t),h=Math.min(h,s))}var[m,g]=l.objectPosition.split(" ").map((y,C)=>{const x=parseFloat(y);return y.endsWith("%")?(C?i-h:n-p)*x/100:x});l=this._scanRegion.width||t,d=this._scanRegion.height||s,c=this._scanRegion.x||0;var v=this._scanRegion.y||0;u=this.$overlay.style,u.width=`${l/t*p}px`,u.height=`${d/s*h}px`,u.top=`${o+g+v/s*h}px`,s=/scaleX\(-1\)/.test(e.style.transform),u.left=`${a+(s?n-m-p:m)+(s?t-c-l:c)/t*p}px`,u.transform=e.style.transform}})}static _convertPoints(e,t){if(!t)return e;let s=t.x||0,n=t.y||0,i=t.width&&t.downScaledWidth?t.width/t.downScaledWidth:1;t=t.height&&t.downScaledHeight?t.height/t.downScaledHeight:1;for(let a of e)a.x=a.x*i+s,a.y=a.y*t+n;return e}_scanFrame(){!this._active||this.$video.paused||this.$video.ended||("requestVideoFrameCallback"in this.$video?this.$video.requestVideoFrameCallback.bind(this.$video):requestAnimationFrame)(async()=>{if(!(1>=this.$video.readyState)){var e=Date.now()-this._lastScanTimestamp,t=1e3/this._maxScansPerSecond;e<t&&await new Promise(n=>setTimeout(n,t-e)),this._lastScanTimestamp=Date.now();try{var s=await We.scanImage(this.$video,{scanRegion:this._scanRegion,qrEngine:this._qrEnginePromise,canvas:this.$canvas})}catch(n){if(!this._active)return;this._onDecodeError(n)}!We._disableBarcodeDetector||await this._qrEnginePromise instanceof Worker||(this._qrEnginePromise=We.createQrEngine()),s?(this._onDecode?this._onDecode(s):this._legacyOnDecode&&this._legacyOnDecode(s.data),this.$codeOutlineHighlight&&(clearTimeout(this._codeOutlineHighlightRemovalTimeout),this._codeOutlineHighlightRemovalTimeout=void 0,this.$codeOutlineHighlight.setAttribute("viewBox",`${this._scanRegion.x||0} ${this._scanRegion.y||0} ${this._scanRegion.width||this.$video.videoWidth} ${this._scanRegion.height||this.$video.videoHeight}`),this.$codeOutlineHighlight.firstElementChild.setAttribute("points",s.cornerPoints.map(({x:n,y:i})=>`${n},${i}`).join(" ")),this.$codeOutlineHighlight.style.display="")):this.$codeOutlineHighlight&&!this._codeOutlineHighlightRemovalTimeout&&(this._codeOutlineHighlightRemovalTimeout=setTimeout(()=>this.$codeOutlineHighlight.style.display="none",100))}this._scanFrame()})}_onDecodeError(e){e!==We.NO_QR_CODE_FOUND&&console.log(e)}async _getCameraStream(){if(!navigator.mediaDevices)throw"Camera not found.";let e=/^(environment|user)$/.test(this._preferredCamera)?"facingMode":"deviceId",t=[{width:{min:1024}},{width:{min:768}},{}],s=t.map(n=>Object.assign({},n,{[e]:{exact:this._preferredCamera}}));for(let n of[...s,...t])try{let i=await navigator.mediaDevices.getUserMedia({video:n,audio:!1}),a=this._getFacingMode(i)||(n.facingMode?this._preferredCamera:this._preferredCamera==="environment"?"user":"environment");return{stream:i,facingMode:a}}catch{}throw"Camera not found."}async _restartVideoStream(){let e=this._paused;await this.pause(!0)&&!e&&this._active&&await this.start()}static _stopVideoStream(e){for(let t of e.getTracks())t.stop(),e.removeTrack(t)}_setVideoMirror(e){this.$video.style.transform="scaleX("+(e==="user"?-1:1)+")"}_getFacingMode(e){return(e=e.getVideoTracks()[0])?/rear|back|environment/i.test(e.label)?"environment":/front|user|face/i.test(e.label)?"user":null:null}static _drawToCanvas(e,t,s,n=!1){s=s||document.createElement("canvas");let i=t&&t.x?t.x:0,a=t&&t.y?t.y:0,o=t&&t.width?t.width:e.videoWidth||e.width,l=t&&t.height?t.height:e.videoHeight||e.height;return n||(n=t&&t.downScaledWidth?t.downScaledWidth:o,t=t&&t.downScaledHeight?t.downScaledHeight:l,s.width!==n&&(s.width=n),s.height!==t&&(s.height=t)),t=s.getContext("2d",{alpha:!1}),t.imageSmoothingEnabled=!1,t.drawImage(e,i,a,o,l,0,0,s.width,s.height),[s,t]}static async _loadImage(e){if(e instanceof Image)return await We._awaitImageLoad(e),e;if(e instanceof HTMLVideoElement||e instanceof HTMLCanvasElement||e instanceof SVGImageElement||"OffscreenCanvas"in window&&e instanceof OffscreenCanvas||"ImageBitmap"in window&&e instanceof ImageBitmap)return e;if(e instanceof File||e instanceof Blob||e instanceof URL||typeof e=="string"){let t=new Image;t.src=e instanceof File||e instanceof Blob?URL.createObjectURL(e):e.toString();try{return await We._awaitImageLoad(t),t}finally{(e instanceof File||e instanceof Blob)&&URL.revokeObjectURL(t.src)}}else throw"Unsupported image type."}static async _awaitImageLoad(e){e.complete&&e.naturalWidth!==0||await new Promise((t,s)=>{let n=i=>{e.removeEventListener("load",n),e.removeEventListener("error",n),i instanceof ErrorEvent?s("Image load error"):t()};e.addEventListener("load",n),e.addEventListener("error",n)})}static async _postWorkerMessage(e,t,s,n){return We._postWorkerMessageSync(await e,t,s,n)}static _postWorkerMessageSync(e,t,s,n){if(!(e instanceof Worker))return-1;let i=We._workerMessageId++;return e.postMessage({id:i,type:t,data:s},n),i}}We.DEFAULT_CANVAS_SIZE=400;We.NO_QR_CODE_FOUND="No QR code found";We._disableBarcodeDetector=!1;We._workerMessageId=0;var P3e=Object.defineProperty,L3e=Object.getOwnPropertyDescriptor,z2=(r,e,t,s)=>{for(var n=s>1?void 0:s?L3e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&P3e(e,t,n),n};let Ku=class extends Z(X,lt){constructor(){super(...arguments);f(this,"dataPatterns",[/web\+spoolman:s-(\d+)/,/\/spool\/show\/(\d+)\/?/]);f(this,"statusMessage","info.howto");f(this,"lastScanTimestamp",Date.now());f(this,"processing",!1);f(this,"context");f(this,"source");f(this,"canvas")}get camera(){return this.source==="device"?{name:this.$t("app.spoolman.label.device_camera").toString(),service:"device"}:this.$store.getters["webcams/getWebcamById"](this.source)}get open(){return this.source!==null}set open(t){t||(this.source=null)}async mounted(){this.processing=!0,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.processing=!1}async handlePrinterCameraFrame(t){if(!this.processing&&!(Date.now()-this.lastScanTimestamp<100)){if(this.processing=!0,this.lastScanTimestamp=Date.now(),t instanceof HTMLVideoElement?(this.canvas.width=t.videoWidth,this.canvas.height=t.videoHeight):(this.canvas.width=t.naturalWidth,this.canvas.height=t.naturalHeight),!this.canvas.width||!this.canvas.height){this.processing=!1;return}try{this.context.drawImage(t,0,0,this.canvas.width,this.canvas.height);const s=await We.scanImage(this.canvas,{returnDetailedScanResult:!0});s.data&&this.handleCodeFound(s.data)}catch(s){s instanceof DOMException&&(s.name==="SecurityError"?this.statusMessage="error.cors":this.statusMessage="error.no_image_data")}this.processing=!1}}get availableSpools(){return this.$store.getters["spoolman/getAvailableSpools"]}handleCodeFound(t){var n;const s=this.dataPatterns.find(i=>i.test(t));if(s){const i=(n=t.match(s))==null?void 0:n[1];if(i&&!isNaN(Number(i))){const a=parseInt(i);this.availableSpools.some(o=>o.id===a)?this.$emit("detected",a):this.statusMessage="error.spool_not_existant"}else this.statusMessage="warning.invalid_spool_id"}else this.statusMessage="warning.code_not_recognized"}};z2([He({type:String,default:null})],Ku.prototype,"source",2);z2([ke("canvas")],Ku.prototype,"canvas",2);Ku=z2([L({components:{CameraItem:e1}})],Ku);var A3e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{"no-actions":"",width:e.isMobileViewport?"100%":"60vw",title:e.$t("app.spoolman.title.scan_spool")},model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(Pe,[t(Vn,{attrs:{type:e.statusMessage.split(".")[0]}},[e._v(" "+e._s(e.$t(`app.spoolman.msg.${e.statusMessage}`))+" ")]),t("canvas",{ref:"canvas",attrs:{hidden:!0}}),t("CameraItem",{attrs:{camera:e.camera,embedded:!0,crossorigin:"anonymous"},on:{frame:e.handlePrinterCameraFrame}})],1)],1)},E3e=[],O3e=A(Ku,A3e,E3e,!1,null,null);const T3e=O3e.exports;var k3e=Object.defineProperty,D3e=Object.getOwnPropertyDescriptor,KP=(r,e,t,s)=>{for(var n=s>1?void 0:s?D3e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&k3e(e,t,n),n};let rm=class extends Z(X,lt){constructor(){super(...arguments);f(this,"search","");f(this,"selectedSpoolId",null);f(this,"cameraScanSource",null);f(this,"hasDeviceCamera",!1)}async mounted(){this.hasDeviceCamera=await We.hasCamera()}onOpen(){if(this.open){if(this.selectedSpoolId=this.$store.state.spoolman.activeSpool??null,this.targetMacro){const t=this.$store.getters["macros/getMacroByName"](this.targetMacro.toLowerCase());this.selectedSpoolId=(t==null?void 0:t.variables.spool_id)??null}if(this.currentFileName)if(!this.currentFile&&this.currentFileName.includes("/")){const{rootPath:t}=Kt(this.currentFileName,"gcodes");F.serverFilesGetDirectory("gcodes",t)}else F.serverFilesMetadata(this.currentFileName);if(this.hasDeviceCamera&&this.preferDeviceCamera)this.$nextTick(()=>this.cameraScanSource="device");else{const t=this.autoOpenQRDetectionCamera;this.$store.getters["webcams/getWebcamById"](t)&&this.$nextTick(()=>this.cameraScanSource=t)}}}get open(){return this.$store.state.spoolman.dialog.show}set open(t){this.$store.commit("spoolman/setDialogState",{...this.$store.state.spoolman.dialog,show:t})}get availableSpools(){const t=[];for(const s of this.$store.state.spoolman.availableSpools){if(s.archived)continue;let n=s.filament.name;s.filament.vendor&&(n=`${s.filament.vendor.name} - ${n}`),t.push({...s,filament_name:n,material:s.filament.material})}return t}get headers(){const t=["filament_name","id","material","location","comment","last_used"].map(s=>({text:this.$tc(`app.spoolman.label.${s}`),value:s,configurable:s!=="filament_name"}));return this.$store.getters["config/getMergedTableHeaders"](t,"spoolman")}get visibleHeaders(){return this.headers.filter(t=>t.visible||t.visible===void 0)}get selectedSpool(){return this.selectedSpoolId}set selectedSpool(t){this.selectedSpoolId=t}get filename(){let t=this.$store.state.spoolman.dialog.filename;if(t)t.startsWith("/")&&(t=t.slice(1));else return;return t}get currentFileName(){return this.filename||this.$store.state.printer.printer.print_stats.filename}get currentFile(){const{filename:t,rootPath:s}=Kt(this.currentFileName,"gcodes");return this.$store.getters["files/getFile"](s,t)}get targetMacro(){return this.$store.state.spoolman.dialog.targetMacro}get enabledWebcams(){return this.$store.getters["webcams/getEnabledWebcams"]}get availableCameras(){const t=this.enabledWebcams.filter(s=>s.service!=="iframe");return this.hasDeviceCamera&&t.unshift({name:this.$t("app.spoolman.label.device_camera").toString(),uid:"device"}),t}get remainingFilamentUnit(){return this.$store.state.config.uiSettings.spoolman.remainingFilamentUnit}handleQRCodeDetected(t){this.cameraScanSource=null,this.selectedSpoolId=t,this.availableSpools.filter(s=>this.filterResults("",this.search,s)).some(s=>s.id===t)||(this.search=""),this.autoSelectSpoolOnMatch&&this.handleSelectSpool()}async handleSelectSpool(){var s,n,i,a;if(!this.selectedSpool&&!await this.$confirm(this.$tc("app.spoolman.msg.no_spool"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))return;if(this.targetMacro){const o=[`SET_GCODE_VARIABLE MACRO=${this.targetMacro} VARIABLE=spool_id VALUE=${this.selectedSpool??"None"}`];this.$store.getters["printer/getPrinterConfig"]("save_variables")&&o.push(`SAVE_VARIABLE VARIABLE=${this.targetMacro.toUpperCase()}__SPOOL_ID VALUE=${this.selectedSpool??"None"}`),await F.printerGcodeScript(o.join(`
`));const c=this.$store.getters["macros/getMacroByName"](this.targetMacro.toLowerCase());c!=null&&c.variables.active&&await F.serverSpoolmanPostSpoolId(this.selectedSpool??void 0),this.open=!1;return}const t=this.availableSpools.find(o=>o.id===this.selectedSpool);if(t&&this.currentFileName&&(this.warnOnFilamentTypeMismatch||this.warnOnNotEnoughFilament)&&this.currentFile&&(this.filename||!["complete","cancelled"].includes(this.printerState))){if(this.warnOnFilamentTypeMismatch){const l=(s=this.currentFile.filament_type)==null?void 0:s.toLowerCase().split(";").map(u=>u.replace(/"/g,"")),c=(n=t.filament.material)==null?void 0:n.toLowerCase();if(c&&l&&!l.includes(c)&&!await this.$confirm(this.$tc("app.spoolman.msg.mismatched_filament"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))return}let o=(i=this.currentFile)==null?void 0:i.filament_total;if(o&&["printing","paused"].includes(this.printerState)&&(o-=((a=this.$store.state.printer.printer.print_stats)==null?void 0:a.filament_used)??0,o=Math.max(o,0)),!o&&!await this.$confirm(this.$tc("app.spoolman.msg.no_required_length"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))return;if(this.warnOnNotEnoughFilament){let l=t.remaining_length;if(!l&&t.remaining_weight&&(l=this.$filters.convertFilamentWeightToLength(t.remaining_weight,t.filament.density,t.filament.diameter)),typeof l=="number"&&o>=l&&!await this.$confirm(this.$tc("app.spoolman.msg.no_filament"),{title:this.$tc("app.general.label.confirm"),color:"card-heading",icon:"$warning"}))return}}await F.serverSpoolmanPostSpoolId(this.selectedSpool??void 0),this.filename&&(await F.printerPrintStart(this.filename),this.$router.currentRoute.path!=="/"&&this.$router.push({path:"/"})),this.open=!1}filterResults(t,s,n){var i;return s=s.toLowerCase(),[n.id,n.comment,n.filament.name,n.filament.material,(i=n.filament.vendor)==null?void 0:i.name].some(a=>a==null?void 0:a.toString().toLowerCase().includes(s))}get spoolmanURL(){var t;return(t=this.$store.state.server.config.spoolman)==null?void 0:t.server}get preferDeviceCamera(){return this.$store.state.config.uiSettings.spoolman.preferDeviceCamera}get autoOpenQRDetectionCamera(){return this.$store.state.config.uiSettings.spoolman.autoOpenQRDetectionCamera}get autoSelectSpoolOnMatch(){return this.$store.state.config.uiSettings.spoolman.autoSelectSpoolOnMatch}get warnOnNotEnoughFilament(){return this.$store.state.config.uiSettings.spoolman.warnOnNotEnoughFilament}get warnOnFilamentTypeMismatch(){return this.$store.state.config.uiSettings.spoolman.warnOnFilamentTypeMismatch}get sortOrder(){return this.$store.state.config.uiSettings.spoolman.selectionDialogSortOrder}handleSortOrderKeyChange(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.selectionDialogSortOrder.key",value:t??null,server:!0})}handleSortOrderDescChange(t){this.$store.dispatch("config/saveByPath",{path:"uiSettings.spoolman.selectionDialogSortOrder.desc",value:t??null,server:!0})}};KP([Ae("open")],rm.prototype,"onOpen",1);rm=KP([L({components:{QRReader:T3e}})],rm);var M3e=function(){var e=this,t=e._self._c;return e._self._setupProxy,t(et,{attrs:{scrollable:"","max-width":e.isMobileViewport?"90vw":"75vw",title:e.$tc("app.spoolman.title.spool_selection",e.targetMacro?2:1,{macro:e.targetMacro}),"title-shadow":""},scopedSlots:e._u([{key:"menu",fn:function(){return[e.availableCameras.length>1?t(Et,{attrs:{left:"","offset-y":"",transition:"slide-y-transition"},scopedSlots:e._u([{key:"activator",fn:function({on:s,attrs:n,value:i}){return[t(M,e._g(e._b({staticClass:"ms-1 my-1",attrs:{small:""}},"app-btn",n,!1),s),[t(w,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $camera ")]),e._v(" "+e._s(e.$t("app.spoolman.btn.scan_code"))+" "),t(w,{staticClass:"ml-1",class:{"rotate-180":i},attrs:{small:""}},[e._v(" $chevronDown ")])],1)]}}],null,!1,1046628065)},[t(Mt,{attrs:{dense:""}},e._l(e.availableCameras,function(s){return t(we,{key:s.uid,on:{click:function(n){e.cameraScanSource=s.uid}}},[t(qe,[t(w,[e._v(" $camera ")])],1),t(Ee,[t(xe,[e._v(" "+e._s(s.name)+" ")])],1)],1)}),1)],1):e.availableCameras.length?t(M,{staticClass:"ms-1 my-1",attrs:{small:""},on:{click:function(s){e.cameraScanSource=e.availableCameras[0].uid}}},[t(w,{staticClass:"mr-1",attrs:{small:""}},[e._v(" $camera ")]),e._v(" "+e._s(e.$t("app.spoolman.btn.scan_code"))+" ")],1):e._e()]},proxy:!0},{key:"actions",fn:function(){return[e.isMobileViewport?t(_t):e._e(),e.spoolmanURL?t(M,{attrs:{href:e.spoolmanURL,target:"_blank",color:"primary",text:"",type:"button"}},[e._v(" "+e._s(e.$t("app.spoolman.btn.manage_spools"))+" ")]):e._e(),e.isMobileViewport?e._e():t(_t),t(M,{attrs:{text:"",color:"warning"},on:{click:function(s){e.open=!1}}},[e._v(" "+e._s(e.$t("app.general.btn.cancel"))+" ")]),t(M,{attrs:{color:"primary"},on:{click:e.handleSelectSpool}},[e._v(" "+e._s(e.filename?e.$t("app.general.btn.print"):e.$tc("app.spoolman.btn.select",e.targetMacro?2:1,{macro:e.targetMacro}))+" ")])]},proxy:!0}]),model:{value:e.open,callback:function(s){e.open=s},expression:"open"}},[t(qt,{attrs:{dense:""}},[t(_t),t(Zm,{attrs:{"key-name":"spoolman",headers:e.headers}}),t(ae,{staticClass:"ml-1",staticStyle:{"max-width":"360px"},attrs:{outlined:"",dense:"","single-line":"","hide-details":"","append-icon":"$magnify"},model:{value:e.search,callback:function(s){e.search=s},expression:"search"}})],1),t(Pe,{staticClass:"fill-height pt-0"},[t($d,{staticClass:"spool-table",attrs:{items:e.availableSpools,headers:e.visibleHeaders,search:e.search,"custom-filter":e.filterResults,"no-data-text":e.$t("app.file_system.msg.not_found"),"no-results-text":e.$t("app.file_system.msg.not_found"),"sort-by":e.sortOrder.key??void 0,"sort-desc":e.sortOrder.desc??void 0,"mobile-breakpoint":"0","hide-default-footer":"","disable-pagination":""},on:{"update:sort-by":e.handleSortOrderKeyChange,"update:sort-desc":e.handleSortOrderDescChange},scopedSlots:e._u([{key:"item",fn:function({item:s}){return[t("tr",{staticClass:"row-select px-1",class:{"v-data-table__selected":s.id===e.selectedSpool},on:{click:function(n){n.preventDefault(),e.selectedSpool=e.selectedSpool===s.id?null:s.id}}},[t("td",[t("div",{staticClass:"d-flex"},[t(w,{staticClass:"mr-4 flex-column spool-icon",attrs:{color:`#${s.filament.color_hex??(e.$vuetify.theme.dark?"fff":"000")}`,size:"42px"}},[e._v(" "+e._s(s.id===e.selectedSpool?"$markedCircle":"$filament")+" ")]),t("div",{staticClass:"flex-column"},[t("div",{staticClass:"flex-row"},[e._v(" "+e._s(s.filament_name)+" ")]),t("div",{staticClass:"flex-row"},[e.remainingFilamentUnit==="weight"?t("small",[t("b",[e._v(e._s(e.$filters.getReadableWeightString(s.remaining_weight)))]),e._v(" / "+e._s(e.$filters.getReadableWeightString(s.filament.weight))+" ")]):e.remainingFilamentUnit==="length"?t("small",[t("b",[e._v(e._s(e.$filters.getReadableLengthString(s.remaining_length)))]),e._v(" / "+e._s(e.$filters.getReadableLengthString(e.$filters.convertFilamentWeightToLength(s.filament.weight??0,s.filament.density,s.filament.diameter)))+" ")]):e._e()])])],1)]),e._l(e.visibleHeaders.filter(n=>n.value!=="filament_name"),function(n){return t("td",{key:n.value},[n.value==="last_used"?[e._v(" "+e._s(s[n.value]?e.$filters.formatRelativeTimeToNow(s[n.value]):e.$tc("app.setting.label.never"))+" ")]:[e._v(" "+e._s(s[n.value])+" ")]],2)})],2)]}}])})],1),e.cameraScanSource?t("QRReader",{on:{detected:e.handleQRCodeDetected},model:{value:e.cameraScanSource,callback:function(s){e.cameraScanSource=s},expression:"cameraScanSource"}}):e._e()],1)},R3e=[],I3e=A(rm,M3e,R3e,!1,null,"63300ab5");const F3e=I3e.exports;var H3e=Object.defineProperty,B3e=Object.getOwnPropertyDescriptor,U2=(r,e,t,s)=>{for(var n=s>1?void 0:s?B3e(e,t):e,i=r.length-1,a;i>=0;i--)(a=r[i])&&(n=(s?a(e,t,n):a(n))||n);return s&&n&&H3e(e,t,n),n};let Xu=class extends Z(X,dr,lt){constructor(){super(...arguments);f(this,"toolsdrawer",null);f(this,"navdrawer",null);f(this,"dragState",!1);f(this,"customBackgroundImageStyle",{});f(this,"flashMessageState",{open:!1,text:void 0,type:void 0})}get theme(){return this.$store.state.config.uiSettings.theme}get showBackgroundLogo(){return this.theme.backgroundLogo}get logoSrc(){return`./${this.theme.logo.src}`}get primaryColor(){var t;return((t=this.$vuetify.theme.currentTheme.primary)==null?void 0:t.toString())??""}get primaryOffsetColor(){var t;return((t=this.$vuetify.theme.currentTheme["primary-offset"])==null?void 0:t.toString())??""}get updating(){return this.$store.state.version.busy}get inLayout(){return this.$store.state.config.layoutMode}get columnCount(){return this.$store.state.config.containerColumnCount}get fileDropRoot(){var t;return(t=this.$route.meta)==null?void 0:t.fileDropRoot}get loading(){return this.hasWait(this.$waits.onLoadLanguage)}get progress(){const t=this.$store.getters["printer/getPrintProgress"];return Math.floor(t*100)}get pageTitle(){const t=this.$store.state.config.uiSettings.general.instanceName||"",s=this.$route.name;return this.printerPrinting?`[${this.progress}%] | ${t} | ${s}`:`${t} | ${s}`}get pageIcon(){const t=this.printInProgressIconDataUrl||this.defaultIconDataUrl;return[{rel:"icon",type:"image/svg+xml",sizes:"32x32",href:t},{rel:"icon",type:"image/svg+xml",sizes:"16x16",href:t}]}get pageMeta(){return[{name:"theme-color",content:this.primaryColor}]}get printInProgressIconDataUrl(){if(this.printerPrinting){const s=this.primaryColor,n="rgba(255, 255, 255, 0.10)",i=document.createElement("canvas"),a=i.getContext("2d");i.width=64,i.height=64;const o=this.progress,l=i.width/2,c=i.height/2,u=8,d=64/2-u/2,p=1.5*Math.PI,h=p+o*2*Math.PI/100;return a.moveTo(l,c),a.beginPath(),a.arc(l,c,d,0,2*Math.PI,!1),a.strokeStyle=n,a.lineWidth=u,a.stroke(),a.closePath(),a.moveTo(l,c),a.beginPath(),a.arc(l,c,d,p,h,!1),a.strokeStyle=s,a.lineWidth=u,a.stroke(),i.toDataURL("image/png")}}get defaultIconDataUrl(){const t=`<svg width="56" height="56" viewBox="0 0 56 56" xmlns="http://www.w3.org/2000/svg"><g><path fill="${this.primaryOffsetColor}" d="m 14.853368,33.756571 11.61619,9.661168 c 0.130777,0.111917 0.271485,0.207659 0.419213,0.286738 v 0 l 0.0018,9.59e-4 0.04421,0.02288 0.01682,0.0084 0.03004,0.01466 0.02772,0.01301 0.02085,0.0096 0.03643,0.01614 0.0112,0.0048 c 0.261834,0.111457 0.538454,0.172946 0.816165,0.185089 v 0 l 0.0094,4.66e-4 0.04421,0.0014 0.01743,3.11e-4 0.03579,1.57e-4 0.03113,-1.57e-4 0.01976,-3.11e-4 0.04638,-0.0016 0.0066,-1.57e-4 c 0.278332,-0.01219 0.555886,-0.07379 0.818498,-0.185864 v 0 l 0.0076,-0.0031 0.04141,-0.01836 0.01581,-0.0072 0.03019,-0.01433 0.03192,-0.01548 0.01367,-0.0071 0.04375,-0.02273 0.0048,-0.0023 c 0.147428,-0.07893 0.287828,-0.174502 0.418278,-0.28627 v 0 L 40.390591,34.385713 46.037415,38.112852 27.999766,56 9.242502,37.397936 Z m 0.408314,-14.451202 11.425655,7.349201 c 0.406292,0.266969 0.859439,0.40053 1.312586,0.400687 0.452679,0 0.90536,-0.133247 1.311963,-0.400064 v 0 l 11.426278,-7.349045 8.736349,4.462197 -21.47459,17.859067 -21.47459,-17.86031 z M 27.999923,0 52.420045,8.9925786 27.999923,24.698769 3.579955,8.9913323 Z" /><path fill="${this.primaryColor}" d="m 28,0 -0.134766,0.05078125 h 0.150391 V 24.689453 L 52.419922,8.9921875 Z m 12.738281,19.306641 -11.425781,7.347656 -0.05859,0.03906 c -0.386465,0.238992 -0.812514,0.358329 -1.238281,0.361329 v 14.558595 l 21.45898,-17.845703 z m -0.347656,15.080078 -10.859375,9.03125 c -0.13045,0.111767 -0.270596,0.206206 -0.417969,0.285156 l -0.0059,0.002 -0.04297,0.02344 -0.01367,0.0078 -0.0332,0.01563 -0.0293,0.01367 -0.01563,0.0078 -0.04102,0.01758 -0.0078,0.0039 c -0.26261,0.112075 -0.540027,0.173357 -0.818359,0.185547 h -0.0078 l -0.04492,0.002 h -0.02148 -0.01563 V 55.984375 L 46.037109,38.113281 Z" /></g></svg>`;return`data:image/svg+xml;base64,${btoa(t)}`}get customStyleSheet(){return this.$store.getters["config/getCustomThemeFile"]("custom",[".css"])}async onCustomStyleSheet(t){if(!t)return;const s=await this.createFileUrlWithToken(t,"config"),n=document.getElementById("customStylesheet");if(n){n.setAttribute("href",s);return}const i=document.createElement("link");i.rel="stylesheet",i.type="text/css",i.id="customStylesheet",i.href=s,document.head.appendChild(i)}get customBackgroundImage(){return this.$store.getters["config/getCustomThemeFile"]("background",[".png",".jpg",".jpeg",".gif"])}async onCustomBackgroundImage(t){if(!t)return;const s=await this.createFileUrlWithToken(t,"config");this.customBackgroundImageStyle={backgroundImage:`url(${s})`,backgroundSize:"cover",backgroundAttachment:"fixed",backgroundRepeat:"no-repeat"}}get enableKeyboardShortcuts(){return this.$store.state.config.uiSettings.general.enableKeyboardShortcuts}mounted(){window.addEventListener("dragover",this.handleDragOver),window.addEventListener("dragenter",this.handleDragEnter),window.addEventListener("dragleave",this.handleDragLeave),window.addEventListener("drop",this.handleDrop),window.addEventListener("keydown",this.handleKeyDown,!1),_r.bus.$on("flashMessage",s=>{this.flashMessageState.text=s&&s.text||void 0,this.flashMessageState.type=s&&s.type||void 0,this.flashMessageState.timeout=s&&s.timeout!==void 0?s.timeout:void 0,this.flashMessageState.open=!0});const t=["link[rel*='icon'][type='image/png']","meta[name='theme-color']"];for(const s of t)document.querySelectorAll(s).forEach(i=>{const a=i.parentElement;a&&a.removeChild(i)})}beforeDestroy(){window.removeEventListener("dragover",this.handleDragOver),window.removeEventListener("dragenter",this.handleDragEnter),window.removeEventListener("dragleave",this.handleDragLeave),window.removeEventListener("drop",this.handleDrop),window.removeEventListener("keydown",this.handleKeyDown)}handleToolsDrawerChange(){this.toolsdrawer=!this.toolsdrawer}handleNavDrawerChange(){this.navdrawer=!this.navdrawer}handleDragOver(t){this.fileDropRoot&&t.dataTransfer&&r_(t.dataTransfer)&&(t.preventDefault(),this.dragState=!0,t.dataTransfer.dropEffect="copy")}handleDragEnter(t){this.fileDropRoot&&t.preventDefault()}handleDragLeave(t){this.fileDropRoot&&(t.preventDefault(),t.target instanceof HTMLElement&&t.target.className.includes("fluidd")&&(this.dragState=!1))}async handleDrop(t){const s=this.fileDropRoot;if(s&&(t.preventDefault(),this.dragState=!1,t.dataTransfer)){const n=await d8(t.dataTransfer);if(n){const i=this.$store.getters["files/getCurrentPathByRoot"](s)||"",a=i===s?"":i.substring(s.length+1),o=`${this.$waits.onFileSystem}/${i}/`;this.$store.dispatch("wait/addWait",o),await this.uploadFiles(n,a,s,!1),this.$store.dispatch("wait/removeWait",o)}}}handleKeyDown(t){if(!this.enableKeyboardShortcuts)return;const s=j2(t);if(s==="Ctrl+Shift+E"){t.preventDefault(),this.emergencyStop();return}if(!(!this.klippyReady||B2(t)))switch(s){case"Shift+C":(this.printerPrinting||this.printerPaused)&&(t.preventDefault(),this.cancelPrint());break;case"Shift+P":this.printerPrinting&&(t.preventDefault(),this.pausePrint());break;case"Shift+H":this.printerPrinting||(t.preventDefault(),this.homeAll());break}}};U2([Ae("customStyleSheet")],Xu.prototype,"onCustomStyleSheet",1);U2([Ae("customBackgroundImage")],Xu.prototype,"onCustomBackgroundImage",1);Xu=U2([L({metaInfo(){return{title:this.pageTitle,link:this.pageIcon,meta:this.pageMeta}},components:{SpoolSelectionDialog:F3e,FileSystemDownloadDialog:C3e,ActionCommandPromptDialog:BP,KeyboardShortcutsDialog:HP}})],Xu);var j3e=function(){var s;var e=this,t=e._self._c;return e._self._setupProxy,e.loading?t(ow):t(ow,{staticClass:"fluidd",class:{"no-pointer-events":e.dragState}},[t(y3e,{model:{value:e.toolsdrawer,callback:function(n){e.toolsdrawer=n},expression:"toolsdrawer"}}),t(JCe,{model:{value:e.navdrawer,callback:function(n){e.navdrawer=n},expression:"navdrawer"}}),e.showBackgroundLogo&&!e.isMobileViewport?t("inline-svg",{staticClass:"background-logo",attrs:{src:e.logoSrc}}):e._e(),t(NCe,{on:{toolsdrawer:e.handleToolsDrawerChange,navdrawer:e.handleNavDrawerChange}}),e.flashMessageState?t(Vxe,{attrs:{text:e.flashMessageState.text,type:e.flashMessageState.type,timeout:e.flashMessageState.timeout},model:{value:e.flashMessageState.open,callback:function(n){e.$set(e.flashMessageState,"open",n)},expression:"flashMessageState.open"}}):e._e(),e.isMobileViewport&&e.authenticated&&e.socketConnected?t(Fe,{staticClass:"ml-2 mb-2",staticStyle:{"z-index":"2000"},attrs:{"x-small":"",fab:"",fixed:"",bottom:"",left:"",color:"error"},on:{click:function(n){return e.emergencyStop()}}},[t(w,[e._v("$estop")])],1):e._e(),t(PW,{style:e.customBackgroundImageStyle},[t(kl,{staticClass:"constrained-width pa-2 pa-sm-4",class:{"fill-height":((s=e.$route.meta)==null?void 0:s.fillHeight)??!1,[["single","double","triple","quad"][e.columnCount-1]]:!0},attrs:{fluid:""}},[e.socketConnected&&e.apiConnected&&(!e.klippyReady||e.hasWarnings)&&!e.inLayout&&e.$route.path!=="/login"?t(te,[t(I,[t(Rxe)],1)],1):e._e(),e.socketConnected&&e.apiConnected||!e.authenticated&&e.apiConnected?t("router-view"):e._e(),t(yxe)],1),!e.socketConnected&&!e.apiConnected||!e.socketConnected&&e.authenticated?t(pxe):e._e(),t("file-system-download-dialog"),t(ixe),t("spool-selection-dialog"),t(BP),t(HP)],1),t(j5e),t(Gm,{attrs:{message:e.$t("app.file_system.overlay.drag_files_folders_upload"),icon:"$fileUpload"},model:{value:e.dragState,callback:function(n){e.dragState=n},expression:"dragState"}})],1)},V3e=[],N3e=A(Xu,j3e,V3e,!1,null,"d5095050");const z3e=N3e.exports,U3e=r=>{r.onfocus=e=>{e.target instanceof HTMLElement&&e.target.blur()}};b.directive("blur",U3e);b.component("EChart",()=>Ye(()=>import("./vue-echarts-chunk-C9f0iCt7.js"),[],import.meta.url));b.use(yP);b.use(E5e);b.use(c5e);b.use(D5e,{});b.use(IP,{vuetify:vl});b.use(v5e);b.use(p5e);b.use(y5e,{store:wr});A1().then(r=>{ye.debug("Loaded App Configuration",r),b.use(T5e,{url:r.apiConfig.socketUrl,reconnectEnabled:!0,reconnectInterval:he.SOCKET_RETRY_DELAY,store:wr}),r.apiConfig.socketUrl&&r.apiConnected&&r.apiAuthenticated&&b.$socket.connect(r.apiConfig.socketUrl),b.config.productionTip=!1,new b({i18n:st,router:ts,store:wr,vuetify:vl,render:e=>e(z3e)}).$mount("#app")}).catch(r=>{ye.debug("Error attempting to init App:",r)});export{ll as C,G3e as M,ke as R,b as V,Ye as _,BL as a,DA as b,FL as c,NA as d,or as e,L as f,_L as g,SA as h,GL as i,A as j,ye as k,X$e as l,Z as m,om as n,OA as o,TK as p,Mb as q,LL as s,kL as t,EL as u,VL as w};