Files
firefly-iii/public/build/assets/dashboard-9172f6d4.js

41 lines
729 KiB
JavaScript
Raw Normal View History

2023-08-11 06:03:31 +02:00
var bt=Object.defineProperty;var yt=(e,t,n)=>t in e?bt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var x=(e,t,n)=>(yt(e,typeof t!="symbol"?t+"":t,n),n);function bind$4(e,t){return function(){return e.apply(t,arguments)}}const{toString}=Object.prototype,{getPrototypeOf}=Object,kindOf=(e=>t=>{const n=toString.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),kindOfTest=e=>(e=e.toLowerCase(),t=>kindOf(t)===e),typeOfTest=e=>t=>typeof t===e,{isArray:isArray$2}=Array,isUndefined=typeOfTest("undefined");function isBuffer(e){return e!==null&&!isUndefined(e)&&e.constructor!==null&&!isUndefined(e.constructor)&&isFunction$3(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const isArrayBuffer=kindOfTest("ArrayBuffer");function isArrayBufferView(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&isArrayBuffer(e.buffer),t}const isString$1=typeOfTest("string"),isFunction$3=typeOfTest("function"),isNumber$1=typeOfTest("number"),isObject$4=e=>e!==null&&typeof e=="object",isBoolean=e=>e===!0||e===!1,isPlainObject=e=>{if(kindOf(e)!=="object")return!1;const t=getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},isDate$1=kindOfTest("Date"),isFile=kindOfTest("File"),isBlob=kindOfTest("Blob"),isFileList=kindOfTest("FileList"),isStream=e=>isObject$4(e)&&isFunction$3(e.pipe),isFormData=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||isFunction$3(e.append)&&((t=kindOf(e))==="formdata"||t==="object"&&isFunction$3(e.toString)&&e.toString()==="[object FormData]"))},isURLSearchParams=kindOfTest("URLSearchParams"),trim$2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function forEach(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,i;if(typeof e!="object"&&(e=[e]),isArray$2(e))for(a=0,i=e.length;a<i;a++)t.call(null,e[a],a,e);else{const r=n?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length;let s;for(a=0;a<o;a++)s=r[a],t.call(null,e[s],s,e)}}function findKey$1(e,t){t=t.toLowerCase();const n=Object.keys(e);let a=n.length,i;for(;a-- >0;)if(i=n[a],t===i.toLowerCase())return i;return null}const _global=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),isContextDefined=e=>!isUndefined(e)&&e!==_global;function merge$1(){const{caseless:e}=isContextDefined(this)&&this||{},t={},n=(a,i)=>{const r=e&&findKey$1(t,i)||i;isPlainObject(t[r])&&isPlainObject(a)?t[r]=merge$1(t[r],a):isPlainObject(a)?t[r]=merge$1({},a):isArray$2(a)?t[r]=a.slice():t[r]=a};for(let a=0,i=arguments.length;a<i;a++)arguments[a]&&forEach(arguments[a],n);return t}const extend$1=(e,t,n,{allOwnKeys:a}={})=>(forEach(t,(i,r)=>{n&&isFunction$3(i)?e[r]=bind$4(i,n):e[r]=i},{allOwnKeys:a}),e),stripBOM=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),inherits=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject=(e,t,n,a)=>{let i,r,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),r=i.length;r-- >0;)o=i[r],(!a||a(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},endsWith=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},toArray=e=>{if(!e)return null;if(isArray$2(e))return e;let t=e.length;if(!isNumber$1(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},isTypedArray=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&getPrototypeOf(Uint8Array)),forEachEntry=(e,t)=>{const a=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=a.next())&&!i.done;){const r=i.value;t.call(e,r[0],r[1])}},matchAll=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},isHTMLForm=kindOfTest("HTMLFormElement"),toCamelCase=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,i){return a.toUpperCase()+i}),hasOwnPro
`).forEach(function(o){i=o.indexOf(":"),n=o.substring(0,i).trim().toLowerCase(),a=o.substring(i+1).trim(),!(!n||t[n]&&ignoreDuplicateOf[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},$internals=Symbol("internals");function normalizeHeader(e){return e&&String(e).trim().toLowerCase()}function normalizeValue(e){return e===!1||e==null?e:utils.isArray(e)?e.map(normalizeValue):String(e)}function parseTokens(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const isValidHeaderName=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function matchHeaderValue(e,t,n,a,i){if(utils.isFunction(a))return a.call(this,t,n);if(i&&(t=n),!!utils.isString(t)){if(utils.isString(a))return t.indexOf(a)!==-1;if(utils.isRegExp(a))return a.test(t)}}function formatHeader(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function buildAccessors(e,t){const n=utils.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(i,r,o){return this[a].call(this,t,i,r,o)},configurable:!0})})}class AxiosHeaders{constructor(t){t&&this.set(t)}set(t,n,a){const i=this;function r(s,l,u){const c=normalizeHeader(l);if(!c)throw new Error("header name must be a non-empty string");const d=utils.findKey(i,c);(!d||i[d]===void 0||u===!0||u===void 0&&i[d]!==!1)&&(i[d||l]=normalizeValue(s))}const o=(s,l)=>utils.forEach(s,(u,c)=>r(u,c,l));return utils.isPlainObject(t)||t instanceof this.constructor?o(t,n):utils.isString(t)&&(t=t.trim())&&!isValidHeaderName(t)?o(parseHeaders(t),n):t!=null&&r(n,t,a),this}get(t,n){if(t=normalizeHeader(t),t){const a=utils.findKey(this,t);if(a){const i=this[a];if(!n)return i;if(n===!0)return parseTokens(i);if(utils.isFunction(n))return n.call(this,i,a);if(utils.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=normalizeHeader(t),t){const a=utils.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||matchHeaderValue(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let i=!1;function r(o){if(o=normalizeHeader(o),o){const s=utils.findKey(a,o);s&&(!n||matchHeaderValue(a,a[s],s,n))&&(delete a[s],i=!0)}}return utils.isArray(t)?t.forEach(r):r(t),i}clear(t){const n=Object.keys(this);let a=n.length,i=!1;for(;a--;){const r=n[a];(!t||matchHeaderValue(this,this[r],r,t,!0))&&(delete this[r],i=!0)}return i}normalize(t){const n=this,a={};return utils.forEach(this,(i,r)=>{const o=utils.findKey(a,r);if(o){n[o]=normalizeValue(i),delete n[r];return}const s=t?formatHeader(r):String(r).trim();s!==r&&delete n[r],n[s]=normalizeValue(i),a[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return utils.forEach(this,(a,i)=>{a!=null&&a!==!1&&(n[i]=t&&utils.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(i=>a.set(i)),a}static accessor(t){const a=(this[$internals]=this[$internals]={accessors:{}}).accessors,i=this.prototype;function r(o){const s=normalizeHeader(o);a[s]||(buildAccessors(i,o),a[s]=!0)}return utils.isArray(t)?t.forEach(r):r(t),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils.freezeMethods(AxiosHeaders.prototype);utils.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(e,t){const n=this||defaults$2,a=t||n,i=AxiosHeaders$1.from(a.headers);let r=a.data;return utils.forEach(e,function(s){r=s.call(n,r,i.normalize(),t?t.status:void 0)}),i.normalize(),r}function isCancel(e){return!!(e&&e.__CANCEL__)}function CanceledError(e,t,n){AxiosError.call(this,e??"canceled",AxiosError.ERR_CANCELED,t,n),this.name="CanceledError"}utils.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new AxiosError("Request failed with status code "+n.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const cookies=platform.isStandardBrowserEnv?function(){return{write:function(n,a,i,r,o,s){const l=[];l.push(n+"="+encodeURIComponent(a)),utils.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),utils.isString(r)&&l.push("path="+r),utils.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){const a=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function isAbsoluteURL(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function combineURLs(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function buildFullPath(e,t){return e&&!isAbsoluteURL(t)?combineURLs(e,t):t}const isURLSameOrigin=platform.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let a;function i(r){let o=r;return t&&(n.setAttribute("href",o),o=n.href),n.setAttribute("href",o),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return a=i(window.location.href),function(o){const s=utils.isString(o)?i(o):o;return s.protocol===a.protocol&&s.host===a.host}}():function(){return function(){return!0}}();function parseProtocol(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function speedometer(e,t){e=e||10;const n=new Array(e),a=new Array(e);let i=0,r=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=a[r];o||(o=u),n[i]=l,a[i]=u;let d=r,h=0;for(;d!==i;)h+=n[d++],d=d%e;if(i=(i+1)%e,i===r&&(r=(r+1)%e),u-o<t)return;const m=c&&u-c;return m?Math.round(h*1e3/m):void 0}}function progressEventReducer(e,t){let n=0;const a=speedometer(50,250);return i=>{const r=i.loaded,o=i.lengthComputable?i.total:void 0,s=r-n,l=a(s),u=r<=o;n=r;const c={loaded:r,total:o,progress:o?r/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&u?(o-r)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const isXHRAdapterSupported=typeof XMLHttpRequest<"u",xhrAdapter=isXHRAdapterSupported&&function(e){return new Promise(function(n,a){let i=e.data;const r=AxiosHeaders$1.from(e.headers).normalize(),o=e.responseType;let s;function l(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}utils.isFormData(i)&&(platform.isStandardBrowserEnv||platform.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let u=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?
`+gap+s.join(`,
`+gap)+`
`+o+"]":"["+s.join(",")+"]",gap=o,i}if(rep&&typeof rep=="object")for(r=rep.length,n=0;n<r;n+=1)typeof rep[n]=="string"&&(a=rep[n],i=str(a,l),i&&s.push(quote(a)+(gap?": ":":")+i));else for(a in l)Object.prototype.hasOwnProperty.call(l,a)&&(i=str(a,l),i&&s.push(quote(a)+(gap?": ":":")+i));return i=s.length===0?"{}":gap?`{
`+gap+s.join(`,
`+gap)+`
`+o+"}":"{"+s.join(",")+"}",gap=o,i}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(e,t,n){var a;if(gap="",indent="",typeof n=="number")for(a=0;a<n;a+=1)indent+=" ";else typeof n=="string"&&(indent=n);if(rep=t,t&&typeof t!="function"&&(typeof t!="object"||typeof t.length!="number"))throw new Error("JSON.stringify");return str("",{"":e})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(e,t){var n,a,i=e[t];if(i&&typeof i=="object")for(n in i)Object.prototype.hasOwnProperty.call(i,n)&&(a=walk(i,n),a!==void 0?i[n]=a:delete i[n]);return reviver.call(e,t,i)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()),json2$1}var json2=json2Plugin;function json2Plugin(){return requireJson2(),{}}var engine=storeEngine,storages=all,plugins$1=[json2],store_legacy=engine.createStore(storages,plugins$1);const store$1=getDefaultExportFromCjs(store_legacy);var util=util$7,bind$1=util.bind,each$1=util.each,create=util.create,slice=util.slice,events=eventsPlugin$1;function eventsPlugin$1(){var e=_newPubSub();return{watch:t,unwatch:n,once:a,set:i,remove:r,clearAll:o};function t(s,l,u){return e.on(l,bind$1(this,u))}function n(s,l){e.off(l)}function a(s,l,u){e.once(l,bind$1(this,u))}function i(s,l,u){var c=this.get(l);s(),e.fire(l,u,c)}function r(s,l){var u=this.get(l);s(),e.fire(l,void 0,u)}function o(s){var l={};this.each(function(u,c){l[c]=u}),s(),each$1(l,function(u,c){e.fire(c,void 0,u)})}}function _newPubSub(){return create(_pubSubBase,{_id:0,_subSignals:{},_subCallbacks:{}})}var _pubSubBase={_id:null,_subCallbacks:null,_subSignals:null,on:function(e,t){return this._subCallbacks[e]||(this._subCallbacks[e]={}),this._id+=1,this._subCallbacks[e][this._id]=t,this._subSignals[this._id]=e,this._id},off:function(e){var t=this._subSignals[e];delete this._subCallbacks[t][e],delete this._subSignals[e]},once:function(e,t){var n=this.on(e,bind$1(this,function(){t.apply(this,arguments),this.off(n)}))},fire:function(e){var t=slice(arguments,1);each$1(this._subCallbacks[e],function(n){n.apply(this,t)})}},eventsPlugin=events,observe=[eventsPlugin,observePlugin];function observePlugin(){return{observe:e,unobserve:t};function e(n,a,i){var r=this.watch(a,i);return i(this.get(a)),r}function t(n,a){this.unwatch(a)}}const observePlugin$1=getDefaultExportFromCjs(observe);var flushPending=!1,flushing=!1,queue=[],lastFlushedIndex=-1;function scheduler(e){queueJob(e)}function queueJob(e){queue.includes(e)||queue.push(e),queueFlush()}function dequeueJob(e){let t=queue.indexOf(e);t!==-1&&t>lastFlushedIndex&&queue.splice(t,1)}function queueFlush(){!flushing&&!flushPending&&(flushPending=!0,queueMicrotask(flushJobs))}function flushJobs(){flushPending=!1,flushing=!0;for(let e=0;e<queue.length;e++)queue[e](),lastFlushedIndex=e;queue.length=0,lastFlushedIndex=-1,flushing=!1}var reactive,effect$3,release,raw,shouldSchedule=!0;function disableEffectScheduling(e){shouldSchedule=!1,e(),shouldSchedule=!0}function setReactivityEngine(e){reactive=e.reactive,release=e.release,effect$3=t=>e.effect(t,{scheduler:n=>{shouldSchedule?scheduler(n):n()}}),raw=e.raw}function overrideEffect(e){effect$3=e}function elementBoundEffect(e){let t=()=>{};return[a=>{let i=effect$3(a);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(r=>r())}),e._x_effects.add(i),t=()=>{i!==void 0&&(e._x_effects.delete(i),release(i))},i},()=>{t()}]}var onAttributeAddeds=[],onElRemoveds=[],onElAddeds=[];function onElAdded(e){onElAddeds.push(e)}function onElRemoved(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,onElRemoveds.push(t))}function onAttributesAdded(e){onAttributeAddeds.push(e)}function
${n?'Expression: "'+n+`"
`:""}`,t),setTimeout(()=>{throw e},0)}var shouldAutoEvaluateFunctions=!0;function dontAutoEvaluateFunctions(e){let t=shouldAutoEvaluateFunctions;shouldAutoEvaluateFunctions=!1;let n=e();return shouldAutoEvaluateFunctions=t,n}function evaluate(e,t,n={}){let a;return evaluateLater(e,t)(i=>a=i,n),a}function evaluateLater(...e){return theEvaluatorFunction(...e)}var theEvaluatorFunction=normalEvaluator;function setEvaluator(e){theEvaluatorFunction=e}function normalEvaluator(e,t){let n={};injectMagics(n,e);let a=[n,...closestDataStack(e)],i=typeof t=="function"?generateEvaluatorFromFunction(a,t):generateEvaluatorFromString(a,t,e);return tryCatch.bind(null,e,t,i)}function generateEvaluatorFromFunction(e,t){return(n=()=>{},{scope:a={},params:i=[]}={})=>{let r=t.apply(mergeProxies([a,...e]),i);runIfTypeOfFunction(n,r)}}var evaluatorMemo={};function generateFunctionFromString(e,t){if(evaluatorMemo[e])return evaluatorMemo[e];let n=Object.getPrototypeOf(async function(){}).constructor,a=/^[\n\s]*if.*\(.*\)/.test(e)||/^(let|const)\s/.test(e)?`(async()=>{ ${e} })()`:e,r=(()=>{try{return new n(["__self","scope"],`with (scope) { __self.result = ${a} }; __self.finished = true; return __self.result;`)}catch(o){return handleError(o,t,e),Promise.resolve()}})();return evaluatorMemo[e]=r,r}function generateEvaluatorFromString(e,t,n){let a=generateFunctionFromString(t,n);return(i=()=>{},{scope:r={},params:o=[]}={})=>{a.result=void 0,a.finished=!1;let s=mergeProxies([r,...e]);if(typeof a=="function"){let l=a(a,s).catch(u=>handleError(u,n,t));a.finished?(runIfTypeOfFunction(i,a.result,s,o,n),a.result=void 0):l.then(u=>{runIfTypeOfFunction(i,u,s,o,n)}).catch(u=>handleError(u,n,t)).finally(()=>a.result=void 0)}}}function runIfTypeOfFunction(e,t,n,a,i){if(shouldAutoEvaluateFunctions&&typeof t=="function"){let r=t.apply(n,a);r instanceof Promise?r.then(o=>runIfTypeOfFunction(e,o,n,a)).catch(o=>handleError(o,i,t)):e(r)}else typeof t=="object"&&t instanceof Promise?t.then(r=>e(r)):e(t)}var prefixAsString="x-";function prefix(e=""){return prefixAsString+e}function setPrefix(e){prefixAsString=e}var directiveHandlers={};function directive(e,t){return directiveHandlers[e]=t,{before(n){if(!directiveHandlers[n]){console.warn("Cannot find directive `${directive}`. `${name}` will use the default order of execution");return}const a=directiveOrder.indexOf(n);directiveOrder.splice(a>=0?a:directiveOrder.indexOf("DEFAULT"),0,e)}}}function directives(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let r=Object.entries(e._x_virtualDirectives).map(([s,l])=>({name:s,value:l})),o=attributesOnly(r);r=r.map(s=>o.find(l=>l.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),t=t.concat(r)}let a={};return t.map(toTransformedAttributes((r,o)=>a[r]=o)).filter(outNonAlpineAttributes).map(toParsedDirectives(a,n)).sort(byPriority).map(r=>getDirectiveHandler(e,r))}function attributesOnly(e){return Array.from(e).map(toTransformedAttributes()).filter(t=>!outNonAlpineAttributes(t))}var isDeferringHandlers=!1,directiveHandlerStacks=new Map,currentHandlerStackKey=Symbol();function deferHandlingDirectives(e){isDeferringHandlers=!0;let t=Symbol();currentHandlerStackKey=t,directiveHandlerStacks.set(t,[]);let n=()=>{for(;directiveHandlerStacks.get(t).length;)directiveHandlerStacks.get(t).shift()();directiveHandlerStacks.delete(t)},a=()=>{isDeferringHandlers=!1,n()};e(n),a()}function getElementBoundUtilities(e){let t=[],n=s=>t.push(s),[a,i]=elementBoundEffect(e);return t.push(i),[{Alpine:alpine_default,effect:a,cleanup:n,evaluateLater:evaluateLater.bind(evaluateLater,e),evaluate:evaluate.bind(evaluate,e)},()=>t.forEach(s=>s())]}function getDirectiveHandler(e,t){let n=()=>{},a=directiveHandlers[t.type]||n,[i,r]=getElementBoundUtilities(e);onAttributeRemoved(e,t.original,r);let o=()=>{e._x_ignore||e._x_ignoreSelf||(a.inline&&a.inline(e,t,i),a=a.bind(a,e,t,i),isDeferringHandlers?directiveHandlerStacks.get(currentHandlerStackKey).push(a):a())};return o.runCleanups=r,o}var startingWith=(e,t)=>({name:n,value:a})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:a}),into=e=>e;fu
* Bootstrap v5.3.1 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/const elementMap=new Map,Data={set(e,t,n){elementMap.has(e)||elementMap.set(e,new Map);const a=elementMap.get(e);if(!a.has(t)&&a.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(a.keys())[0]}.`);return}a.set(t,n)},get(e,t){return elementMap.has(e)&&elementMap.get(e).get(t)||null},remove(e,t){if(!elementMap.has(e))return;const n=elementMap.get(e);n.delete(t),n.size===0&&elementMap.delete(e)}},MAX_UID=1e6,MILLISECONDS_MULTIPLIER=1e3,TRANSITION_END="transitionend",parseSelector=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,(t,n)=>`#${CSS.escape(n)}`)),e),toType=e=>e==null?`${e}`:Object.prototype.toString.call(e).match(/\s([a-z]+)/i)[1].toLowerCase(),getUID=e=>{do e+=Math.floor(Math.random()*MAX_UID);while(document.getElementById(e));return e},getTransitionDurationFromElement=e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const a=Number.parseFloat(t),i=Number.parseFloat(n);return!a&&!i?0:(t=t.split(",")[0],n=n.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(n))*MILLISECONDS_MULTIPLIER)},triggerTransitionEnd=e=>{e.dispatchEvent(new Event(TRANSITION_END))},isElement=e=>!e||typeof e!="object"?!1:(typeof e.jquery<"u"&&(e=e[0]),typeof e.nodeType<"u"),getElement=e=>isElement(e)?e.jquery?e[0]:e:typeof e=="string"&&e.length>0?document.querySelector(parseSelector(e)):null,isVisible=e=>{if(!isElement(e)||e.getClientRects().length===0)return!1;const t=getComputedStyle(e).getPropertyValue("visibility")==="visible",n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const a=e.closest("summary");if(a&&a.parentNode!==n||a===null)return!1}return t},isDisabled=e=>!e||e.nodeType!==Node.ELEMENT_NODE||e.classList.contains("disabled")?!0:typeof e.disabled<"u"?e.disabled:e.hasAttribute("disabled")&&e.getAttribute("disabled")!=="false",findShadowRoot=e=>{if(!document.documentElement.attachShadow)return null;if(typeof e.getRootNode=="function"){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?findShadowRoot(e.parentNode):null},noop$1=()=>{},reflow=e=>{e.offsetHeight},getjQuery=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,DOMContentLoadedCallbacks=[],onDOMContentLoaded=e=>{document.readyState==="loading"?(DOMContentLoadedCallbacks.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of DOMContentLoadedCallbacks)t()}),DOMContentLoadedCallbacks.push(e)):e()},isRTL=()=>document.documentElement.dir==="rtl",defineJQueryPlugin=e=>{onDOMContentLoaded(()=>{const t=getjQuery();if(t){const n=e.NAME,a=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=a,e.jQueryInterface)}})},execute=(e,t=[],n=e)=>typeof e=="function"?e(...t):n,executeAfterTransition=(e,t,n=!0)=>{if(!n){execute(e);return}const a=5,i=getTransitionDurationFromElement(t)+a;let r=!1;const o=({target:s})=>{s===t&&(r=!0,t.removeEventListener(TRANSITION_END,o),execute(e))};t.addEventListener(TRANSITION_END,o),setTimeout(()=>{r||triggerTransitionEnd(t)},i)},getNextActiveElement=(e,t,n,a)=>{const i=e.length;let r=e.indexOf(t);return r===-1?!n&&a?e[i-1]:e[0]:(r+=n?1:-1,a&&(r=(r+i)%i),e[Math.max(0,Math.min(r,i-1))])},namespaceRegex=/[^.]*(?=\..*)\.|.*/,stripNameRegex=/\..*/,stripUidRegex=/::\d+$/,eventRegistry={};let uidEvent=1;const customEvents={mouseenter:"mouseover",mouseleave:"mouseout"},nativeEvents=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function makeEventUid(e,t){return t&&`${t}::${uidEvent++}`||e
* @kurkle/color v0.3.2
* https://github.com/kurkle/color#readme
* (c) 2023 Jukka Kurkela
* Released under the MIT License
*/function round(e){return e+.5|0}const lim=(e,t,n)=>Math.max(Math.min(e,n),t);function p2b(e){return lim(round(e*2.55),0,255)}function n2b(e){return lim(round(e*255),0,255)}function b2n(e){return lim(round(e/2.55)/100,0,1)}function n2p(e){return lim(round(e*100),0,100)}const map$1={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},hex=[..."0123456789ABCDEF"],h1=e=>hex[e&15],h2=e=>hex[(e&240)>>4]+hex[e&15],eq=e=>(e&240)>>4===(e&15),isShort=e=>eq(e.r)&&eq(e.g)&&eq(e.b)&&eq(e.a);function hexParse(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&map$1[e[1]]*17,g:255&map$1[e[2]]*17,b:255&map$1[e[3]]*17,a:t===5?map$1[e[4]]*17:255}:(t===7||t===9)&&(n={r:map$1[e[1]]<<4|map$1[e[2]],g:map$1[e[3]]<<4|map$1[e[4]],b:map$1[e[5]]<<4|map$1[e[6]],a:t===9?map$1[e[7]]<<4|map$1[e[8]]:255})),n}const alpha=(e,t)=>e<255?t(e):"";function hexString(e){var t=isShort(e)?h1:h2;return e?"#"+t(e.r)+t(e.g)+t(e.b)+alpha(e.a,t):void 0}const HUE_RE=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function hsl2rgbn(e,t,n){const a=t*Math.min(n,1-n),i=(r,o=(r+e/30)%12)=>n-a*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function hsv2rgbn(e,t,n){const a=(i,r=(i+e/60)%6)=>n-n*t*Math.max(Math.min(r,4-r,1),0);return[a(5),a(3),a(1)]}function hwb2rgbn(e,t,n){const a=hsl2rgbn(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)a[i]*=1-t-n,a[i]+=t;return a}function hueValue(e,t,n,a,i){return e===i?(t-n)/a+(t<n?6:0):t===i?(n-e)/a+2:(e-t)/a+4}function rgb2hsl(e){const n=e.r/255,a=e.g/255,i=e.b/255,r=Math.max(n,a,i),o=Math.min(n,a,i),s=(r+o)/2;let l,u,c;return r!==o&&(c=r-o,u=s>.5?c/(2-r-o):c/(r+o),l=hueValue(n,a,i,c,r),l=l*60+.5),[l|0,u||0,s]}function calln(e,t,n,a){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,a)).map(n2b)}function hsl2rgb(e,t,n){return calln(hsl2rgbn,e,t,n)}function hwb2rgb(e,t,n){return calln(hwb2rgbn,e,t,n)}function hsv2rgb(e,t,n){return calln(hsv2rgbn,e,t,n)}function hue(e){return(e%360+360)%360}function hueParse(e){const t=HUE_RE.exec(e);let n=255,a;if(!t)return;t[5]!==a&&(n=t[6]?p2b(+t[5]):n2b(+t[5]));const i=hue(+t[2]),r=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?a=hwb2rgb(i,r,o):t[1]==="hsv"?a=hsv2rgb(i,r,o):a=hsl2rgb(i,r,o),{r:a[0],g:a[1],b:a[2],a:n}}function rotate(e,t){var n=rgb2hsl(e);n[0]=hue(n[0]+t),n=hsl2rgb(n),e.r=n[0],e.g=n[1],e.b=n[2]}function hslString(e){if(!e)return;const t=rgb2hsl(e),n=t[0],a=n2p(t[1]),i=n2p(t[2]);return e.a<255?`hsla(${n}, ${a}%, ${i}%, ${b2n(e.a)})`:`hsl(${n}, ${a}%, ${i}%)`}const map$2={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},names$1={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime
* Chart.js v4.3.3
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/function noop(){}const uid=(()=>{let e=0;return()=>e++})();function isNullOrUndef(e){return e===null||typeof e>"u"}function isArray(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function isObject(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function isNumberFinite(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function finiteOrDefault(e,t){return isNumberFinite(e)?e:t}function valueOrDefault(e,t){return typeof e>"u"?t:e}const toPercentage=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,toDimension=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function callback(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function each(e,t,n,a){let i,r,o;if(isArray(e))if(r=e.length,a)for(i=r-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<r;i++)t.call(n,e[i],i);else if(isObject(e))for(o=Object.keys(e),r=o.length,i=0;i<r;i++)t.call(n,e[o[i]],o[i])}function _elementsEqual(e,t){let n,a,i,r;if(!e||!t||e.length!==t.length)return!1;for(n=0,a=e.length;n<a;++n)if(i=e[n],r=t[n],i.datasetIndex!==r.datasetIndex||i.index!==r.index)return!1;return!0}function clone(e){if(isArray(e))return e.map(clone);if(isObject(e)){const t=Object.create(null),n=Object.keys(e),a=n.length;let i=0;for(;i<a;++i)t[n[i]]=clone(e[n[i]]);return t}return e}function isValidKey(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function _merger(e,t,n,a){if(!isValidKey(e))return;const i=t[e],r=n[e];isObject(i)&&isObject(r)?merge(i,r,a):t[e]=clone(r)}function merge(e,t,n){const a=isArray(t)?t:[t],i=a.length;if(!isObject(e))return e;n=n||{};const r=n.merger||_merger;let o;for(let s=0;s<i;++s){if(o=a[s],!isObject(o))continue;const l=Object.keys(o);for(let u=0,c=l.length;u<c;++u)r(l[u],e,o,n)}return e}function mergeIf(e,t){return merge(e,t,{merger:_mergerIf})}function _mergerIf(e,t,n){if(!isValidKey(e))return;const a=t[e],i=n[e];isObject(a)&&isObject(i)?mergeIf(a,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=clone(i))}const keyResolvers={"":e=>e,x:e=>e.x,y:e=>e.y};function _splitKey(e){const t=e.split("."),n=[];let a="";for(const i of t)a+=i,a.endsWith("\\")?a=a.slice(0,-1)+".":(n.push(a),a="");return n}function _getKeyResolver(e){const t=_splitKey(e);return n=>{for(const a of t){if(a==="")break;n=n&&n[a]}return n}}function resolveObjectKey(e,t){return(keyResolvers[t]||(keyResolvers[t]=_getKeyResolver(t)))(e)}function _capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}const defined$1=e=>typeof e<"u",isFunction=e=>typeof e=="function",setsEqual=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function _isClickEvent(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const PI=Math.PI,TAU=2*PI,PITAU=TAU+PI,INFINITY=Number.POSITIVE_INFINITY,RAD_PER_DEG=PI/180,HALF_PI=PI/2,QUARTER_PI=PI/4,TWO_THIRDS_PI=PI*2/3,log10=Math.log10,sign=Math.sign;function almostEquals(e,t,n){return Math.abs(e-t)<n}function niceNum(e){const t=Math.round(e);e=almostEquals(e,t,e/1e3)?t:e;const n=Math.pow(10,Math.floor(log10(e))),a=e/n;return(a<=1?1:a<=2?2:a<=5?5:10)*n}function _factorize(e){const t=[],n=Math.sqrt(e);let a;for(a=1;a<n;a++)e%a===0&&(t.push(a),t.push(e/a));return n===(n|0)&&t.push(n),t.sort((i,r)=>i-r).pop(),t}function isNumber(e){return!isNaN(parseFloat(e))&&isFinite(e)}function almostWhole(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function _setMinAndMaxByKey(e,t,n){let a,i,r;for(a=0,i=e.length;a<i;a++)r=e[a][n],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}function toRadians(e){return e*(PI/180)}function toDegrees(e){return e*(180/PI)}function _decimalPlaces(e){if(!isNumberFinite(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function getAngleFromPoint(e,t){const n=t.x-e.x,a=t.y-e.y,i=Math.sqrt(n*n+a*a);let r=Math.atan2(a,n);return r<-.5*PI&&(r+=TAU),{angle:r,distance:i}}function distanceBetweenPoints(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function _angleDi
* Chart.js v4.3.3
* https://www.chartjs.org
* (c) 2023 Chart.js Contributors
* Released under the MIT License
*/class Animator{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,a,i){const r=n.listeners[i],o=n.duration;r.forEach(s=>s({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(a-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=requestAnimFrame.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((a,i)=>{if(!a.running||!a.items.length)return;const r=a.items;let o=r.length-1,s=!1,l;for(;o>=0;--o)l=r[o],l._active?(l._total>a.duration&&(a.duration=l._total),l.tick(t),s=!0):(r[o]=r[r.length-1],r.pop());s&&(i.draw(),this._notify(i,a,t,"progress")),r.length||(a.running=!1,this._notify(i,a,t,"complete"),a.initial=!1),n+=r.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let a=n.get(t);return a||(a={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,a)),a}listen(t,n,a){this._getAnims(t).listeners[n].push(a)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((a,i)=>Math.max(a,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const a=n.items;let i=a.length-1;for(;i>=0;--i)a[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var animator=new Animator;const transparent="transparent",interpolators={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const a=color(e||transparent),i=a.valid&&color(t||transparent);return i&&i.valid?i.mix(a,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class Animation{constructor(t,n,a,i){const r=n[a];i=resolve([t.to,i,r,t.from]);const o=resolve([t.from,r,i]);this._active=!0,this._fn=t.fn||interpolators[t.type||typeof o],this._easing=effects[t.easing]||effects.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=a,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,a){if(this._active){this._notify(!1);const i=this._target[this._prop],r=a-this._start,o=this._duration-r;this._start=a,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=resolve([t.to,n,i,t.from]),this._from=resolve([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,a=this._duration,i=this._prop,r=this._from,o=this._loop,s=this._to;let l;if(this._active=r!==s&&(o||n<a),!this._active){this._target[i]=s,this._notify(!0);return}if(n<0){this._target[i]=r;return}l=n/a%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(r,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,a)=>{t.push({res:n,rej:a})})}_notify(t){const n=t?"res":"rej",a=this._promises||[];for(let i=0;i<a.length;i++)a[i][n]()}}class Animations{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!isObject(t))return;const n=Object.keys(defaults.animation),a=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{const r=t[i];if(!isObject(r))return;const o={};for(const s of n)o[s]=r[s];(isArray(r.properties)&&r.properties||[i]).forEach(s=>{(s===i||!a.has(s))&&a.set(s,o)})})}_animateOptions(t,n){const a=n.options,i=resolveTargetOptions(t,a);if(!i)return[];const r=this._createAnimations(i,a);return a.$shared&&awaitAll(t.options.$animations,a).then(()=>{t.options=a},()=>{}),r}_createAnimations(t,n){const a=this._properties,i=[],r=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const u=o[l];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}const c=n[u];let d=r[u];const h=a.get(u)
`)>-1?e.split(`
`):e}function createTooltipItem(e,t){const{element:n,datasetIndex:a,index:i}=t,r=e.getDatasetMeta(a).controller,{label:o,value:s}=r.getLabelAndValue(i);return{chart:e,label:o,parsed:r.getParsed(i),raw:e.data.datasets[a].data[i],formattedValue:s,dataset:r.getDataset(),dataIndex:i,datasetIndex:a,element:n}}function getTooltipSize(e,t){const n=e.chart.ctx,{body:a,footer:i,title:r}=e,{boxWidth:o,boxHeight:s}=t,l=toFont(t.bodyFont),u=toFont(t.titleFont),c=toFont(t.footerFont),d=r.length,h=i.length,m=a.length,g=toPadding(t.padding);let p=g.height,v=0,b=a.reduce((_,w)=>_+w.before.length+w.lines.length+w.after.length,0);if(b+=e.beforeBody.length+e.afterBody.length,d&&(p+=d*u.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const _=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;p+=m*_+(b-m)*l.lineHeight+(b-1)*t.bodySpacing}h&&(p+=t.footerMarginTop+h*c.lineHeight+(h-1)*t.footerSpacing);let y=0;const E=function(_){v=Math.max(v,n.measureText(_).width+y)};return n.save(),n.font=u.string,each(e.title,E),n.font=l.string,each(e.beforeBody.concat(e.afterBody),E),y=t.displayColors?o+2+t.boxPadding:0,each(a,_=>{each(_.before,E),each(_.lines,E),each(_.after,E)}),y=0,n.font=c.string,each(e.footer,E),n.restore(),v+=g.width,{width:v,height:p}}function determineYAlign(e,t){const{y:n,height:a}=t;return n<a/2?"top":n>e.height-a/2?"bottom":"center"}function doesNotFitWithAlign(e,t,n,a){const{x:i,width:r}=a,o=n.caretSize+n.caretPadding;if(e==="left"&&i+r+o>t.width||e==="right"&&i-r-o<0)return!0}function determineXAlign(e,t,n,a){const{x:i,width:r}=n,{width:o,chartArea:{left:s,right:l}}=e;let u="center";return a==="center"?u=i<=(s+l)/2?"left":"right":i<=r/2?u="left":i>=o-r/2&&(u="right"),doesNotFitWithAlign(u,e,t,n)&&(u="center"),u}function determineAlignment(e,t,n){const a=n.yAlign||t.yAlign||determineYAlign(e,n);return{xAlign:n.xAlign||t.xAlign||determineXAlign(e,t,n,a),yAlign:a}}function alignX(e,t){let{x:n,width:a}=e;return t==="right"?n-=a:t==="center"&&(n-=a/2),n}function alignY(e,t,n){let{y:a,height:i}=e;return t==="top"?a+=n:t==="bottom"?a-=i+n:a-=i/2,a}function getBackgroundPoint(e,t,n,a){const{caretSize:i,caretPadding:r,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,u=i+r,{topLeft:c,topRight:d,bottomLeft:h,bottomRight:m}=toTRBLCorners(o);let g=alignX(t,s);const p=alignY(t,l,u);return l==="center"?s==="left"?g+=u:s==="right"&&(g-=u):s==="left"?g-=Math.max(c,h)+i:s==="right"&&(g+=Math.max(d,m)+i),{x:_limitValue(g,0,a.width-t.width),y:_limitValue(p,0,a.height-t.height)}}function getAlignedX(e,t,n){const a=toPadding(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-a.right:e.x+a.left}function getBeforeAfterBodyLines(e){return pushOrConcat([],splitNewlines(e))}function createTooltipContext(e,t,n){return createContext(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function overrideCallbacks(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const defaultCallbacks={beforeTitle:noop,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,a=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(a>0&&t.dataIndex<a)return n[t.dataIndex]}return""},afterTitle:noop,beforeBody:noop,beforeLabel:noop,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const n=e.formattedValue;return isNullOrUndef(n)||(t+=n),t},labelColor(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:noop,afterBody:noop,beforeFooter:noop,footer:noop,afterFooter:noop};function invokeCallbackWithFallback(e,t,n,a){const i=e[t].call(n,a);retur
* chartjs-chart-sankey v0.12.0
* https://github.com/kurkle/chartjs-chart-sankey#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT license
*/function toTextLines(e){const t=[],n=isArray(e)?e:isNullOrUndef(e)?[]:[e];for(;n.length;){const a=n.pop();typeof a=="string"?t.unshift.apply(t,a.split(`
`)):Array.isArray(a)?n.push.apply(n,a):isNullOrUndef(n)||t.unshift(""+a)}return t}function validateSizeValue(e){return!e||["min","max"].indexOf(e)===-1?"max":e}const defined=e=>e!==void 0;function calculateX(e,t){const n=new Set(t.map(o=>o.to)),a=new Set(t.map(o=>o.from)),i=new Set([...e.keys()]);let r=0;for(;i.size;){const o=nextColumn([...i],n);for(const s of o){const l=e.get(s);defined(l.x)||(l.x=r),i.delete(s)}i.size&&(n.clear(),t.filter(s=>i.has(s.from)).forEach(s=>n.add(s.to)),r++)}return[...e.keys()].filter(o=>!a.has(o)).forEach(o=>{const s=e.get(o);s.column||(s.x=r)}),r}function nextColumn(e,t){const n=e.filter(a=>!t.has(a));return n.length?n:e.slice(0,1)}const nodeByXY=(e,t)=>e.x!==t.x?e.x-t.x:e.y-t.y;let prevCountId=-1;function getCountId(){return prevCountId=prevCountId<100?prevCountId+1:0,prevCountId}function nodeCount(e,t,n=getCountId()){let a=0;for(const i of e)i.node._visited!==n&&(i.node._visited=n,a+=i.node[t].length+nodeCount(i.node[t],t,n));return a}const flowByNodeCount=e=>(t,n)=>nodeCount(t.node[e],e)-nodeCount(n.node[e],e)||t.node[e].length-n.node[e].length;function processFrom(e,t){e.from.sort(flowByNodeCount("from"));for(const n of e.from){const a=n.node;defined(a.y)||(a.y=t,processFrom(a,t)),t=Math.max(a.y+a.out,t)}return t}function processTo(e,t){e.to.sort(flowByNodeCount("to"));for(const n of e.to){const a=n.node;defined(a.y)||(a.y=t,processTo(a,t)),t=Math.max(a.y+a.in,t)}return t}function setOrGetY(e,t){return defined(e.y)?e.y:(e.y=t,t)}function processRest(e,t){const n=e.filter(c=>c.x===0),a=e.filter(c=>c.x===t),i=n.filter(c=>!defined(c.y)),r=a.filter(c=>!defined(c.y)),o=e.filter(c=>c.x>0&&c.x<t&&!defined(c.y));let s=n.reduce((c,d)=>Math.max(c,d.y+d.out||0),0),l=a.reduce((c,d)=>Math.max(c,d.y+d.in||0),0),u=0;return s>=l?(i.forEach(c=>{s=setOrGetY(c,s),s=Math.max(s+c.out,processTo(c,s))}),r.forEach(c=>{l=setOrGetY(c,l),l=Math.max(l+c.in,processTo(c,l))})):(r.forEach(c=>{l=setOrGetY(c,l),l=Math.max(l+c.in,processTo(c,l))}),i.forEach(c=>{s=setOrGetY(c,s),s=Math.max(s+c.out,processTo(c,s))})),o.forEach(c=>{let d=e.filter(h=>h.x===c.x&&defined(h.y)).reduce((h,m)=>Math.max(h,m.y+Math.max(m.in,m.out)),0);d=setOrGetY(c,d),d=Math.max(d+c.in,processFrom(c,d)),d=Math.max(d+c.out,processTo(c,d)),u=Math.max(u,d)}),Math.max(s,l,u)}function calculateY(e,t){e.sort((o,s)=>Math.max(s.in,s.out)-Math.max(o.in,o.out));const n=e[0];n.y=0;const a=processFrom(n,0),i=processTo(n,0),r=processRest(e,t);return Math.max(a,i,r)}function calculateYUsingPriority(e,t){let n=0,a=0;for(let i=0;i<=t;i++){let r=a;const o=e.filter(s=>s.x===i).sort((s,l)=>s.priority-l.priority);a=o[0].to.filter(s=>s.node.x>i+1).reduce((s,l)=>s+l.flow,0)||0;for(const s of o)s.y=r,r+=Math.max(s.out,s.in);n=Math.max(r,n)}return n}function addPadding(e,t){let n=1,a=0,i=0,r=0;const o=[];e.sort(nodeByXY);for(const s of e){if(s.y){if(s.x===0)o.push(s.y);else{for(a!==s.x&&(a=s.x,i=0),n=i+1;n<o.length&&!(o[n]>s.y);n++);i=n}s.y+=n*t,n++}r=Math.max(r,s.y+Math.max(s.in,s.out))}return r}function sortFlows(e,t){e.forEach(n=>{const a=Math[t](n.in||n.out,n.out||n.in),i=a<n.in,r=a<n.out;let o=0,s=n.from.length;n.from.sort((l,u)=>l.node.y+l.node.out/2-(u.node.y+u.node.out/2)).forEach((l,u)=>{i?l.addY=u*(a-l.flow)/(s-1):(l.addY=o,o+=l.flow)}),o=0,s=n.to.length,n.to.sort((l,u)=>l.node.y+l.node.in/2-(u.node.y+u.node.in/2)).forEach((l,u)=>{r?l.addY=u*(a-l.flow)/(s-1):(l.addY=o,o+=l.flow)})})}function layout(e,t,n,a){const i=[...e.values()],r=calculateX(e,t),s=(n?calculateYUsingPriority(i,r):calculateY(i,r))*.03,l=addPadding(i,s);return sortFlows(i,a),{maxX:r,maxY:l}}function buildNodesFromRawData(e){const t=new Map;for(let a=0;a<e.length;a++){const{from:i,to:r,flow:o}=e[a];if(!t.has(i))t.set(i,{key:i,in:0,out:o,from:[],to:[{key:r,flow:o,index:a}]});else{const s=t.get(i);s.out+=o,s.to.push({key:r,flow:o,index:a})}if(!t.has(r))t.set(r,{key:r,in:o,out:0,from:[{key:i,flow:o,index:a}],to:[]});else{const s=t.get(r);s.in+=o,s.from.push({key:i,flow:o,index:a})}}const n=(a,i)=>i.flow-a.flow;return[...t.values()].forEach(a=>{a.from=a.from.sort(n),a.from.forEach(i=>{i.node=t.get