gerbil/assets/kcpp_sdui.embd

526 lines
1.3 MiB
Raw 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.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="data:image/x-icon;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBM4O4QTODuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQuDuEGxg7hBsYO4QQuDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBWoO4QfeDuEH3g7hBWoO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QRqDuEHJg7hB/4O4Qf+DuEHJg7hBGoO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBeoO4Qf6DuEH/g7hB/4O4Qf6DuEF6g7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QS6DuEHfg7hB/4O4Qf+DuEH/g7hB/4O4Qd+DuEEug7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEFg7hBmoO4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4QZqDuEEFg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QUiDuEHwg7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB8IO4QUiDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEQg7hBuIO4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBuIO4QRCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QWaDuEH6g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH6g7hBZoO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEgg7hB0oO4Qf+DuEH/g7hB/4O4Qf+DuUH/g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHSg7hBIIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAYO4QYaDuEH/g7hB/4O4Qf+DuEH/g7lB/3ykP/98pD//g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGGg7hBAYO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEE3g7hB5oO4Qf+DuEH/g7hB/4O4Qf+CtEH/amw5/2psOf+CtEH/g7hB/4O4Qf+DuEH/g7hB/4O4QeaDuEE3g7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBCYO4QaaDuEH/g7hB/4O4Qf+DuEH/g7lB/3eTPf9fTDX/X0w1/3eTPf+DuUH/g7hB/4O4Qf+DuEH/g7hB/4O4QaaDuEEJg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEFSg7hB9IO4Qf+DuEH/g7hB/4O5Qf+ArkD/ZmE4/15INf9eSDX/ZmE4/4CuQP+DuUH/g7hB/4O4Qf+DuEH/g7hB9IO4QVKDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBFYO4QcKDuEH/g7hB/4O4Qf+DuEH/g7lB/3KFPP9eSTX/Xkk1/15JNf9eSTX/coU8/4O5Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBwoO4QRWDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEFxg7hB/IO4Qf+DuEH/g7hB/4O5Qf99pj//Y1c3/15INf9eSTX/Xkk1/15INf9jVzf/faY//4O5Qf+DuEH/g7hB/4O4Qf+DuEH8g7hBcYO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBKIO4QdqDuEH/g7hB/4O4Qf+DuEH/g7dB/212Ov9eSDX/Xkk1/15JNf9eSTX/Xkk1/15INf9tdjr/g7dB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHag7hBKIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQODuEGSg7hB/4O4Qf+DuEH/g7hB/4O5Qf95mz7/YFA2/15INf9eSTX/Xkk1/15JNf9eSTX/Xkg1/2BQNv95mz7/g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGSg7hBA4O4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBQIO4QeyDuEH/g7hB/4O4Qf+DuEH/gbJA/2lpOf9dRzX/Xkk1/15JNf9eSTX/Xkk1/15JNf9eSTX/XUc1/2lpOf+BskD/g7hB/4O4Qf+DuEH/g7hB/4O4QeyDuEFAg7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQ2DuEGxg7hB/4O4Qf+DuEH/g7hB/4O5Qf91jj3/X0s1/15JNf9eSTX/Xkk1/15JNf9eSTX/Xkk1/15JNf9eSTX/X0s1/3WOPf+DuUH/g7hB/4O4Qf+DuEH/g7hB/4O4QbGDuEENg7hBAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBXYO4QfiDuEH/g7hB/4O4Qf+DuUH/f6xA/2VdN/9eSDX/Xkk1/15JNf9eSTX/Xko15V5KNeVeSTX/Xkk1/15JNf9eSDX/ZV03/3+sQP+DuUH/g7hB/4O4Qf+DuEH/g7hB+IO4QV2DuEEAg7hBAAAAAAAAAAAAg7hBAIO4QRuDuEHMg7hB/4O4Qf+DuEH/g7hB/4O4Qf9wfzv/Xkk1/15JNf9eSTX/Xkk1/15JNfxfTDVuX0w1bl5JNfxeSTX/Xkk1/15JNf9eSTX/cH87/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBzIO4QRuDuEEAAAAAAIO4QQCDuEEAg7hBfYO4Qf6DuEH/g7hB/4O4Qf+DuUH/fKI//2JUNv9eSDX/Xkk1/15JNf9eSTX/X0o1wWFQNhNhUDYTX0o1wV5JNf9eSTX/Xkk1/15INf9iVDb/fKI//4O5Qf+DuEH/g7hB/4O4Qf+DuEH+g7hBfYO4QQCDuEEAg7hBAIO4QS+DuEHhg7hB/4O4Qf+DuEH/g7hB/4K1Qf9scTn/Xkg1/15JNf9eSTX/Xkk1/15JNfNfTDVQXkg1AF5INQBfTDVQXkk1815JNf9eSTX/Xkk1/15INf9scTn/grVB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHhg7hBL4O4QQCDuEEHg7hBnIO4Qf+DuEH/g7hB/4O4Qf+EukH/eJY9/2BONv9eSTX/Xkk1/15JNf9eSTX/X0s1pGJUNwhhUTYAYVE2AGJUNwhfSzWkXkk1/15JNf9eSTX/Xkk1/2BONv94lj3/hLpB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGcg7hBB4O4QVeDuEHwg7hB/4O4Qf+DuEH/g7lB/4CvQP9nZDj/Xkg1/15JNf9eSTX/Xkk1/15KNeVgTTY1X0s1AGpmOQBqZjkAX0s1AGBNNjVeSjXlXkk1/15JNf9eSTX/Xkg1/2dkOP+Ar0D/g7lB/4O4Qf+DuEH/g7hB/4O4QfCDuEFXg7hBmoO4QciDuEHGg7hBxoO4QcaEukHGdpE9xl9LNcZeSTXGXkk1xl5JNcZeSTXJX0s1dWhhOQJiUzcAAAAAAAAAAABiUzcAaGE5Al9LNXVeSTXJXkk1xl5JNcZeSTXGX0s1xnaRPcaEukHGg7hBxoO4QcaDuEHGg7hByIO4QZqDuEEOg7hBDYO4QQ2DuEENg7hBDYO5QQ1scjoNXEQ0DV5JNQ1eSTUNXkk1DV5JNQ1gTTYFXkg1AAAAAAAAAAAAAAAAAAAAAABeSDUAYE02BV5JNQ1eSTUNXkk1DV5JNQ1cRDQNbHI5DYO5QQ2DuEENg7hBDYO4QQ2DuEENg7hBDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////n////w////8P///+B////gf///wD///4Af//+AH///AA///wAP//4AB//8AAP//AAD//gAAf/4AAH/8AAA//AAAP/gAAB/wAAAP8AAAD+AAAAfgAAAHwAAAA8AAAAOAAYABAAGAAAADwAAAA8AAAAfgAP////8=" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stable UI</title>
<script type="module" crossorigin>var Xx=Object.defineProperty;var qx=(e,t,n)=>t in e?Xx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Xg=(e,t,n)=>(qx(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const g of l.addedNodes)g.tagName==="LINK"&&g.rel==="modulepreload"&&r(g)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerpolicy&&(l.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?l.credentials="include":i.crossorigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();/**
* @vue/shared v3.5.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function Kp(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Tt={},Lo=[],rt=()=>{},y1=()=>!1,cf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Yp=e=>e.startsWith("onUpdate:"),Wt=Object.assign,Xp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Zx=Object.prototype.hasOwnProperty,at=(e,t)=>Zx.call(e,t),Pe=Array.isArray,Fo=e=>Zl(e)==="[object Map]",b1=e=>Zl(e)==="[object Set]",qg=e=>Zl(e)==="[object Date]",Be=e=>typeof e=="function",je=e=>typeof e=="string",Rr=e=>typeof e=="symbol",Ze=e=>e!==null&&typeof e=="object",Wo=e=>(Ze(e)||Be(e))&&Be(e.then)&&Be(e.catch),_1=Object.prototype.toString,Zl=e=>_1.call(e),Jx=e=>Zl(e).slice(8,-1),hl=e=>Zl(e)==="[object Object]",ff=e=>je(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Us=Kp(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),df=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Qx=/-\w/g,ur=df(e=>e.replace(Qx,t=>t.slice(1).toUpperCase())),eT=/\B([A-Z])/g,ga=df(e=>e.replace(eT,"-$1").toLowerCase()),Jl=df(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hs=df(e=>e?`on${Jl(e)}`:""),aa=(e,t)=>!Object.is(e,t),ic=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},w1=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},tT=e=>{const t=parseFloat(e);return isNaN(t)?e:t},nT=e=>{const t=je(e)?Number(e):NaN;return isNaN(t)?e:t};let Zg;const Ql=()=>Zg||(Zg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function He(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=je(r)?oT(r):He(r);if(i)for(const l in i)t[l]=i[l]}return t}else if(je(e)||Ze(e))return e}const rT=/;(?![^(]*\))/g,iT=/:([^]+)/,aT=/\/\*[^]*?\*\//g;function oT(e){const t={};return e.replace(aT,"").split(rT).forEach(n=>{if(n){const r=n.split(iT);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function se(e){let t="";if(je(e))t=e;else if(Pe(e))for(let n=0;n<e.length;n++){const r=se(e[n]);r&&(t+=r+" ")}else if(Ze(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function id(e){if(!e)return null;let{class:t,style:n}=e;return t&&!je(t)&&(e.class=se(t)),n&&(e.style=He(n)),e}const sT="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",lT=Kp(sT);function S1(e){return!!e||e===""}function uT(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=pl(e[r],t[r]);return n}function pl(e,t){if(e===t)return!0;let n=qg(e),r=qg(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Rr(e),r=Rr(t),n||r)return e===t;if(n=Pe(e),r=Pe(t),n||r)return n&&r?uT(e,t):!1;if(n=Ze(e),r=Ze(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,l=Object.keys(t).length;if(i!==l)return!1;for(const g in e){const o=e.hasOwnProperty(g),a=t.hasOwnProperty(g);if(o&&!a||!o&&a||!pl(e[g],t[g]))return!1}}return String(e)===String(t)}const C1=e=>!!(e&&e.__v_isRef===!0),Ae=e=>je(e)?e:e==null?"":Pe(e)||Ze(e)&&(e.toString===_1||!Be(e.toString))?C1(e)?Ae(e.value):JSON.stringify(e,x1,2):String(e),x1=(e,t)=>C1(t)?x1(e,t.value):Fo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],l)=>(n[ad(r,l)+" =>"]=i,n),{})}:b1(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ad(n))}:Rr(t)?ad(t):Ze(t)&&!Pe(t)&&!hl(t)?String(t):t,ad=(e,t="")=>{var n;return Rr(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function cT(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}/**
* @vue/reactivity v3.5.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Cn;class T1{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Cn,!t&&Cn&&(this.index=(Cn.scopes||(Cn.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Cn;try{return Cn=this,t()}finally{Cn=n}}}on(){++this._on===1&&(this.prevScope=Cn,Cn=this)}off(){this._on>0&&--this._on===0&&(Cn=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(this.effects.length=0,n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0}}}function qp(e){return new T1(e)}function hf(){return Cn}function pf(e,t=!1){Cn&&Cn.cleanups.push(e)}let At;const od=new WeakSet;class E1{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Cn&&Cn.active&&Cn.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,od.has(this)&&(od.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||O1(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,Jg(this),A1(this);const t=At,n=Ar;At=this,Ar=!0;try{return this.fn()}finally{P1(this),At=t,Ar=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Qp(t);this.deps=this.depsTail=void 0,Jg(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?od.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){vh(this)&&this.run()}get dirty(){return vh(this)}}let k1=0,Ws,Gs;function O1(e,t=!1){if(e.flags|=8,t){e.next=Gs,Gs=e;return}e.next=Ws,Ws=e}function Zp(){k1++}function Jp(){if(--k1>0)return;if(Gs){let t=Gs;for(Gs=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ws;){let t=Ws;for(Ws=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function A1(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function P1(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),Qp(r),fT(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function vh(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(I1(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function I1(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===vl)||(e.globalVersion=vl,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vh(e))))return;e.flags|=2;const t=e.dep,n=At,r=Ar;At=e,Ar=!0;try{A1(e);const i=e.fn(e._value);(t.version===0||aa(i,e._value))&&(e.flags|=128,e._value=i,t.version++)}catch(i){throw t.version++,i}finally{At=n,Ar=r,P1(e),e.flags&=-3}}function Qp(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let l=n.computed.deps;l;l=l.nextDep)Qp(l,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function fT(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ar=!0;const M1=[];function Ei(){M1.push(Ar),Ar=!1}function ki(){const e=M1.pop();Ar=e===void 0?!0:e}function Jg(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=At;At=void 0;try{t()}finally{At=n}}}let vl=0;class dT{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ev{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!At||!Ar||At===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==At)n=this.activeLink=new dT(At,this),At.deps?(n.prevDep=At.depsTail,At.depsTail.nextDep=n,At.depsTail=n):At.deps=At.depsTail=n,R1(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=At.depsTail,n.nextDep=void 0,At.depsTail.nextDep=n,At.depsTail=n,At.deps===n&&(At.deps=r)}return n}trigger(t){this.version++,vl++,this.notify(t)}notify(t){Zp();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Jp()}}}function R1(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)R1(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const xc=new WeakMap,za=Symbol(""),gh=Symbol(""),gl=Symbol("");function Tn(e,t,n){if(Ar&&At){let r=xc.get(e);r||xc.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new ev),i.map=r,i.key=n),i.track()}}function _i(e,t,n,r,i,l){const g=xc.get(e);if(!g){vl++;return}const o=a=>{a&&a.trigger()};if(Zp(),t==="clear")g.forEach(o);else{const a=Pe(e),c=a&&ff(n);if(a&&n==="length"){const p=Number(r);g.forEach((u,f)=>{(f==="length"||f===gl||!Rr(f)&&f>=p)&&o(u)})}else switch((n!==void 0||g.has(void 0))&&o(g.get(n)),c&&o(g.get(gl)),t){case"add":a?c&&o(g.get("length")):(o(g.get(za)),Fo(e)&&o(g.get(gh)));break;case"delete":a||(o(g.get(za)),Fo(e)&&o(g.get(gh)));break;case"set":Fo(e)&&o(g.get(za));break}}Jp()}function hT(e,t){const n=xc.get(e);return n&&n.get(t)}function mo(e){const t=ft(e);return t===e?t:(Tn(t,"iterate",gl),or(e)?t:t.map(Dr))}function vf(e){return Tn(e=ft(e),"iterate",gl),e}function Xi(e,t){return Oi(e)?xi(e)?Go(Dr(t)):Go(t):Dr(t)}const pT={__proto__:null,[Symbol.iterator](){return sd(this,Symbol.iterator,e=>Xi(this,e))},concat(...e){return mo(this).concat(...e.map(t=>Pe(t)?mo(t):t))},entries(){return sd(this,"entries",e=>(e[1]=Xi(this,e[1]),e))},every(e,t){return ui(this,"every",e,t,void 0,arguments)},filter(e,t){return ui(this,"filter",e,t,n=>n.map(r=>Xi(this,r)),arguments)},find(e,t){return ui(this,"find",e,t,n=>Xi(this,n),arguments)},findIndex(e,t){return ui(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ui(this,"findLast",e,t,n=>Xi(this,n),arguments)},findLastIndex(e,t){return ui(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ui(this,"forEach",e,t,void 0,arguments)},includes(...e){return ld(this,"includes",e)},indexOf(...e){return ld(this,"indexOf",e)},join(e){return mo(this).join(e)},lastIndexOf(...e){return ld(this,"lastIndexOf",e)},map(e,t){return ui(this,"map",e,t,void 0,arguments)},pop(){return Os(this,"pop")},push(...e){return Os(this,"push",e)},reduce(e,...t){return Qg(this,"reduce",e,t)},reduceRight(e,...t){return Qg(this,"reduceRight",e,t)},shift(){return Os(this,"shift")},some(e,t){return ui(this,"some",e,t,void 0,arguments)},splice(...e){return Os(this,"splice",e)},toReversed(){return mo(this).toReversed()},toSorted(e){return mo(this).toSorted(e)},toSpliced(...e){return mo(this).toSpliced(...e)},unshift(...e){return Os(this,"unshift",e)},values(){return sd(this,"values",e=>Xi(this,e))}};function sd(e,t,n){const r=vf(e),i=r[t]();return r!==e&&!or(e)&&(i._next=i.next,i.next=()=>{const l=i._next();return l.done||(l.value=n(l.value)),l}),i}const vT=Array.prototype;function ui(e,t,n,r,i,l){const g=vf(e),o=g!==e&&!or(e),a=g[t];if(a!==vT[t]){const u=a.apply(e,l);return o?Dr(u):u}let c=n;g!==e&&(o?c=function(u,f){return n.call(this,Xi(e,u),f,e)}:n.length>2&&(c=function(u,f){return n.call(this,u,f,e)}));const p=a.call(g,c,r);return o&&i?i(p):p}function Qg(e,t,n,r){const i=vf(e);let l=n;return i!==e&&(or(e)?n.length>3&&(l=function(g,o,a){return n.call(this,g,o,a,e)}):l=function(g,o,a){return n.call(this,g,Xi(e,o),a,e)}),i[t](l,...r)}function ld(e,t,n){const r=ft(e);Tn(r,"iterate",gl);const i=r[t](...n);return(i===-1||i===!1)&&mf(n[0])?(n[0]=ft(n[0]),r[t](...n)):i}function Os(e,t,n=[]){Ei(),Zp();const r=ft(e)[t].apply(e,n);return Jp(),ki(),r}const gT=Kp("__proto__,__v_isRef,__isVue"),D1=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Rr));function mT(e){Rr(e)||(e=String(e));const t=ft(this);return Tn(t,"has",e),t.hasOwnProperty(e)}class L1{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,l=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return l;if(n==="__v_raw")return r===(i?l?kT:z1:l?N1:B1).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const g=Pe(t);if(!i){let a;if(g&&(a=pT[n]))return a;if(n==="hasOwnProperty")return mT}const o=Reflect.get(t,n,yt(t)?t:r);if((Rr(n)?D1.has(n):gT(n))||(i||Tn(t,"get",n),l))return o;if(yt(o)){const a=g&&ff(n)?o:o.value;return i&&Ze(a)?Ga(a):a}return Ze(o)?i?Ga(o):mt(o):o}}class F1 extends L1{constructor(t=!1){super(!1,t)}set(t,n,r,i){let l=t[n];const g=Pe(t)&&ff(n);if(!this._isShallow){const c=Oi(l);if(!or(r)&&!Oi(r)&&(l=ft(l),r=ft(r)),!g&&yt(l)&&!yt(r))return c||(l.value=r),!0}const o=g?Number(n)<t.length:at(t,n),a=Reflect.set(t,n,r,yt(t)?t:i);return t===ft(i)&&(o?aa(r,l)&&_i(t,"set",n,r):_i(t,"add",n,r)),a}deleteProperty(t,n){const r=at(t,n);t[n];const i=Reflect.deleteProperty(t,n);return i&&r&&_i(t,"delete",n,void 0),i}has(t,n){const r=Reflect.has(t,n);return(!Rr(n)||!D1.has(n))&&Tn(t,"has",n),r}ownKeys(t){return Tn(t,"iterate",Pe(t)?"length":za),Reflect.ownKeys(t)}}class yT extends L1{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const bT=new F1,_T=new yT,wT=new F1(!0);const mh=e=>e,xu=e=>Reflect.getPrototypeOf(e);function ST(e,t,n){return function(...r){const i=this.__v_raw,l=ft(i),g=Fo(l),o=e==="entries"||e===Symbol.iterator&&g,a=e==="keys"&&g,c=i[e](...r),p=n?mh:t?Go:Dr;return!t&&Tn(l,"iterate",a?gh:za),Wt(Object.create(c),{next(){const{value:u,done:f}=c.next();return f?{value:u,done:f}:{value:o?[p(u[0]),p(u[1])]:p(u),done:f}}})}}function Tu(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function CT(e,t){const n={get(i){const l=this.__v_raw,g=ft(l),o=ft(i);e||(aa(i,o)&&Tn(g,"get",i),Tn(g,"get",o));const{has:a}=xu(g),c=t?mh:e?Go:Dr;if(a.call(g,i))return c(l.get(i));if(a.call(g,o))return c(l.get(o));l!==g&&l.get(i)},get size(){const i=this.__v_raw;return!e&&Tn(ft(i),"iterate",za),i.size},has(i){const l=this.__v_raw,g=ft(l),o=ft(i);return e||(aa(i,o)&&Tn(g,"has",i),Tn(g,"has",o)),i===o?l.has(i):l.has(i)||l.has(o)},forEach(i,l){const g=this,o=g.__v_raw,a=ft(o),c=t?mh:e?Go:Dr;return!e&&Tn(a,"iterate",za),o.forEach((p,u)=>i.call(l,c(p),c(u),g))}};return Wt(n,e?{add:Tu("add"),set:Tu("set"),delete:Tu("delete"),clear:Tu("clear")}:{add(i){!t&&!or(i)&&!Oi(i)&&(i=ft(i));const l=ft(this);return xu(l).has.call(l,i)||(l.add(i),_i(l,"add",i,i)),this},set(i,l){!t&&!or(l)&&!Oi(l)&&(l=ft(l));const g=ft(this),{has:o,get:a}=xu(g);let c=o.call(g,i);c||(i=ft(i),c=o.call(g,i));const p=a.call(g,i);return g.set(i,l),c?aa(l,p)&&_i(g,"set",i,l):_i(g,"add",i,l),this},delete(i){const l=ft(this),{has:g,get:o}=xu(l);let a=g.call(l,i);a||(i=ft(i),a=g.call(l,i)),o&&o.call(l,i);const c=l.delete(i);return a&&_i(l,"delete",i,void 0),c},clear(){const i=ft(this),l=i.size!==0,g=i.clear();return l&&_i(i,"clear",void 0,void 0),g}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=ST(i,e,t)}),n}function tv(e,t){const n=CT(e,t);return(r,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(at(n,i)&&i in r?n:r,i,l)}const xT={get:tv(!1,!1)},TT={get:tv(!1,!0)},ET={get:tv(!0,!1)};const B1=new WeakMap,N1=new WeakMap,z1=new WeakMap,kT=new WeakMap;function OT(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function AT(e){return e.__v_skip||!Object.isExtensible(e)?0:OT(Jx(e))}function mt(e){return Oi(e)?e:nv(e,!1,bT,xT,B1)}function gf(e){return nv(e,!1,wT,TT,N1)}function Ga(e){return nv(e,!0,_T,ET,z1)}function nv(e,t,n,r,i){if(!Ze(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=AT(e);if(l===0)return e;const g=i.get(e);if(g)return g;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function xi(e){return Oi(e)?xi(e.__v_raw):!!(e&&e.__v_isReactive)}function Oi(e){return!!(e&&e.__v_isReadonly)}function or(e){return!!(e&&e.__v_isShallow)}function mf(e){return e?!!e.__v_raw:!1}function ft(e){const t=e&&e.__v_raw;return t?ft(t):e}function Ai(e){return!at(e,"__v_skip")&&Object.isExtensible(e)&&w1(e,"__v_skip",!0),e}const Dr=e=>Ze(e)?mt(e):e,Go=e=>Ze(e)?Ga(e):e;function yt(e){return e?e.__v_isRef===!0:!1}function re(e){return $1(e,!1)}function Ht(e){return $1(e,!0)}function $1(e,t){return yt(e)?e:new PT(e,t)}class PT{constructor(t,n){this.dep=new ev,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:ft(t),this._value=n?t:Dr(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||or(t)||Oi(t);t=r?t:ft(t),aa(t,n)&&(this._rawValue=t,this._value=r?t:Dr(t),this.dep.trigger())}}function ac(e){e.dep&&e.dep.trigger()}function w(e){return yt(e)?e.value:e}const IT={get:(e,t,n)=>t==="__v_raw"?e:w(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return yt(i)&&!yt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function j1(e){return xi(e)?e:new Proxy(e,IT)}function Lr(e){const t=Pe(e)?new Array(e.length):{};for(const n in e)t[n]=V1(e,n);return t}class MT{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ft(t);let i=!0,l=t;if(!Pe(t)||!ff(String(n)))do i=!mf(l)||or(l);while(i&&(l=l.__v_raw));this._shallow=i}get value(){let t=this._object[this._key];return this._shallow&&(t=w(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&yt(this._raw[this._key])){const n=this._object[this._key];if(yt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return hT(this._raw,this._key)}}class RT{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Fn(e,t,n){return yt(e)?e:Be(e)?new RT(e):Ze(e)&&arguments.length>1?V1(e,t,n):re(e)}function V1(e,t,n){return new MT(e,t,n)}class DT{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new ev(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=vl-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&At!==this)return O1(this,!0),!0}get value(){const t=this.dep.track();return I1(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function LT(e,t,n=!1){let r,i;return Be(e)?r=e:(r=e.get,i=e.set),new DT(r,i,n)}const Eu={},Tc=new WeakMap;let Ta;function FT(e,t=!1,n=Ta){if(n){let r=Tc.get(n);r||Tc.set(n,r=[]),r.push(e)}}function BT(e,t,n=Tt){const{immediate:r,deep:i,once:l,scheduler:g,augmentJob:o,call:a}=n,c=_=>i?_:or(_)||i===!1||i===0?wi(_,1):wi(_);let p,u,f,s,d=!1,v=!1;if(yt(e)?(u=()=>e.value,d=or(e)):xi(e)?(u=()=>c(e),d=!0):Pe(e)?(v=!0,d=e.some(_=>xi(_)||or(_)),u=()=>e.map(_=>{if(yt(_))return _.value;if(xi(_))return c(_);if(Be(_))return a?a(_,2):_()})):Be(e)?t?u=a?()=>a(e,2):e:u=()=>{if(f){Ei();try{f()}finally{ki()}}const _=Ta;Ta=p;try{return a?a(e,3,[s]):e(s)}finally{Ta=_}}:u=rt,t&&i){const _=u,S=i===!0?1/0:i;u=()=>wi(_(),S)}const h=hf(),m=()=>{p.stop(),h&&h.active&&Xp(h.effects,p)};if(l&&t){const _=t;t=(...S)=>{_(...S),m()}}let y=v?new Array(e.length).fill(Eu):Eu;const b=_=>{if(!(!(p.flags&1)||!p.dirty&&!_))if(t){const S=p.run();if(i||d||(v?S.some((x,T)=>aa(x,y[T])):aa(S,y))){f&&f();const x=Ta;Ta=p;try{const T=[S,y===Eu?void 0:v&&y[0]===Eu?[]:y,s];y=S,a?a(t,3,T):t(...T)}finally{Ta=x}}}else p.run()};return o&&o(b),p=new E1(u),p.scheduler=g?()=>g(b,!1):b,s=_=>FT(_,!1,p),f=p.onStop=()=>{const _=Tc.get(p);if(_){if(a)a(_,4);else for(const S of _)S();Tc.delete(p)}},t?r?b(!0):y=p.run():g?g(b.bind(null,!0),!0):p.run(),m.pause=p.pause.bind(p),m.resume=p.resume.bind(p),m.stop=m,m}function wi(e,t=1/0,n){if(t<=0||!Ze(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,yt(e))wi(e.value,t,n);else if(Pe(e))for(let r=0;r<e.length;r++)wi(e[r],t,n);else if(b1(e)||Fo(e))e.forEach(r=>{wi(r,t,n)});else if(hl(e)){for(const r in e)wi(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&wi(e[r],t,n)}return e}/**
* @vue/runtime-core v3.5.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function eu(e,t,n,r){try{return r?e(...r):e()}catch(i){yf(i,t,n)}}function Fr(e,t,n,r){if(Be(e)){const i=eu(e,t,n,r);return i&&Wo(i)&&i.catch(l=>{yf(l,t,n)}),i}if(Pe(e)){const i=[];for(let l=0;l<e.length;l++)i.push(Fr(e[l],t,n,r));return i}}function yf(e,t,n,r=!0){const i=t?t.vnode:null,{errorHandler:l,throwUnhandledErrorInProduction:g}=t&&t.appContext.config||Tt;if(t){let o=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const p=o.ec;if(p){for(let u=0;u<p.length;u++)if(p[u](e,a,c)===!1)return}o=o.parent}if(l){Ei(),eu(l,null,10,[e,a,c]),ki();return}}NT(e,n,i,r,g)}function NT(e,t,n,r=!0,i=!1){if(i)throw e;console.error(e)}const Dn=[];let Yr=-1;const Bo=[];let qi=null,ko=0;const U1=Promise.resolve();let Ec=null;function We(e){const t=Ec||U1;return e?t.then(this?e.bind(this):e):t}function zT(e){let t=Yr+1,n=Dn.length;for(;t<n;){const r=t+n>>>1,i=Dn[r],l=ml(i);l<e||l===e&&i.flags&2?t=r+1:n=r}return t}function rv(e){if(!(e.flags&1)){const t=ml(e),n=Dn[Dn.length-1];!n||!(e.flags&2)&&t>=ml(n)?Dn.push(e):Dn.splice(zT(t),0,e),e.flags|=1,H1()}}function H1(){Ec||(Ec=U1.then(K1))}function W1(e){Pe(e)?Bo.push(...e):qi&&e.id===-1?qi.splice(ko+1,0,e):e.flags&1||(Bo.push(e),e.flags|=1),H1()}function em(e,t,n=Yr+1){for(;n<Dn.length;n++){const r=Dn[n];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Dn.splice(n,1),n--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function G1(e){if(Bo.length){const t=[...new Set(Bo)].sort((n,r)=>ml(n)-ml(r));if(Bo.length=0,qi){qi.push(...t);return}for(qi=t,ko=0;ko<qi.length;ko++){const n=qi[ko];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}qi=null,ko=0}}const ml=e=>e.id==null?e.flags&2?-1:1/0:e.id;function K1(e){const t=rt;try{for(Yr=0;Yr<Dn.length;Yr++){const n=Dn[Yr];n&&!(n.flags&8)&&(n.flags&4&&(n.flags&=-2),eu(n,n.i,n.i?15:14),n.flags&4||(n.flags&=-2))}}finally{for(;Yr<Dn.length;Yr++){const n=Dn[Yr];n&&(n.flags&=-2)}Yr=-1,Dn.length=0,G1(),Ec=null,(Dn.length||Bo.length)&&K1()}}let vn=null,Y1=null;function kc(e){const t=vn;return vn=e,Y1=e&&e.type.__scopeId||null,t}function fe(e,t=vn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Pc(-1);const l=kc(t);let g;try{g=e(...i)}finally{kc(l),r._d&&Pc(1)}return g};return r._n=!0,r._c=!0,r._d=!0,r}function Ct(e,t){if(vn===null)return e;const n=Cf(vn),r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[l,g,o,a=Tt]=t[i];l&&(Be(l)&&(l={mounted:l,updated:l}),l.deep&&wi(g),r.push({dir:l,instance:n,value:g,oldValue:void 0,arg:o,modifiers:a}))}return e}function wa(e,t,n,r){const i=e.dirs,l=t&&t.dirs;for(let g=0;g<i.length;g++){const o=i[g];l&&(o.oldValue=l[g].value);let a=o.dir[r];a&&(Ei(),Fr(a,n,8,[e.el,o,e,t]),ki())}}function wt(e,t){if(En){let n=En.provides;const r=En.parent&&En.parent.provides;r===n&&(n=En.provides=Object.create(r)),n[e]=t}}function Ue(e,t,n=!1){const r=it();if(r||$a){let i=$a?$a._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Be(t)?t.call(r&&r.proxy):t}}function $T(){return!!(it()||$a)}const jT=Symbol.for("v-scx"),VT=()=>Ue(jT);function io(e,t){return bf(e,null,t)}function UT(e,t){return bf(e,null,{flush:"post"})}function ke(e,t,n){return bf(e,t,n)}function bf(e,t,n=Tt){const{immediate:r,deep:i,flush:l,once:g}=n,o=Wt({},n),a=t&&r||!t&&l!=="post";let c;if(wl){if(l==="sync"){const s=VT();c=s.__watcherHandles||(s.__watcherHandles=[])}else if(!a){const s=()=>{};return s.stop=rt,s.resume=rt,s.pause=rt,s}}const p=En;o.call=(s,d,v)=>Fr(s,p,d,v);let u=!1;l==="post"?o.scheduler=s=>{Sn(s,p&&p.suspense)}:l!=="sync"&&(u=!0,o.scheduler=(s,d)=>{d?s():rv(s)}),o.augmentJob=s=>{t&&(s.flags|=4),u&&(s.flags|=2,p&&(s.id=p.uid,s.i=p))};const f=BT(e,t,o);return wl&&(c?c.push(f):a&&f()),f}function HT(e,t,n){const r=this.proxy,i=je(e)?e.includes(".")?X1(r,e):()=>r[e]:e.bind(r,r);let l;Be(t)?l=t:(l=t.handler,n=t);const g=tu(this),o=bf(i,l.bind(r),n);return g(),o}function X1(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}const q1=Symbol("_vte"),Z1=e=>e.__isTeleport,Ks=e=>e&&(e.disabled||e.disabled===""),tm=e=>e&&(e.defer||e.defer===""),nm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,rm=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,yh=(e,t)=>{const n=e&&e.to;return je(n)?t?t(n):null:n},J1={name:"Teleport",__isTeleport:!0,process(e,t,n,r,i,l,g,o,a,c){const{mc:p,pc:u,pbc:f,o:{insert:s,querySelector:d,createText:v,createComment:h}}=c,m=Ks(t.props);let{shapeFlag:y,children:b,dynamicChildren:_}=t;if(e==null){const S=t.el=v(""),x=t.anchor=v("");s(S,n,r),s(x,n,r);const T=(k,D)=>{y&16&&p(b,k,D,i,l,g,o,a)},E=()=>{const k=t.target=yh(t.props,d),D=bh(k,t,v,s);k&&(g!=="svg"&&nm(k)?g="svg":g!=="mathml"&&rm(k)&&(g="mathml"),i&&i.isCE&&(i.ce._teleportTargets||(i.ce._teleportTargets=new Set)).add(k),m||(T(k,D),oc(t,!1)))};m&&(T(n,x),oc(t,!0)),tm(t.props)?(t.el.__isMounted=!1,Sn(()=>{E(),delete t.el.__isMounted},l)):E()}else{if(tm(t.props)&&e.el.__isMounted===!1){Sn(()=>{J1.process(e,t,n,r,i,l,g,o,a,c)},l);return}t.el=e.el,t.targetStart=e.targetStart;const S=t.anchor=e.anchor,x=t.target=e.target,T=t.targetAnchor=e.targetAnchor,E=Ks(e.props),k=E?n:x,D=E?S:T;if(g==="svg"||nm(x)?g="svg":(g==="mathml"||rm(x))&&(g="mathml"),_?(f(e.dynamicChildren,_,k,i,l,g,o),fv(e,t,!0)):a||u(e,t,k,D,i,l,g,o,!1),m)E?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ku(t,n,S,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=yh(t.props,d);W&&ku(t,W,null,c,0)}else E&&ku(t,x,T,c,1);oc(t,m)}},remove(e,t,n,{um:r,o:{remove:i}},l){const{shapeFlag:g,children:o,anchor:a,targetStart:c,targetAnchor:p,target:u,props:f}=e;if(u&&(i(c),i(p)),l&&i(a),g&16){const s=l||!Ks(f);for(let d=0;d<o.length;d++){const v=o[d];r(v,t,n,s,!!v.dynamicChildren)}}},move:ku,hydrate:WT};function ku(e,t,n,{o:{insert:r},m:i},l=2){l===0&&r(e.targetAnchor,t,n);const{el:g,anchor:o,shapeFlag:a,children:c,props:p}=e,u=l===2;if(u&&r(g,t,n),(!u||Ks(p))&&a&16)for(let f=0;f<c.length;f++)i(c[f],t,n,2);u&&r(o,t,n)}function WT(e,t,n,r,i,l,{o:{nextSibling:g,parentNode:o,querySelector:a,insert:c,createText:p}},u){function f(h,m){let y=m;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,h._lpa=t.targetAnchor&&g(t.targetAnchor);break}}y=g(y)}}function s(h,m){m.anchor=u(g(h),m,o(h),n,r,i,l)}const d=t.target=yh(t.props,a),v=Ks(t.props);if(d){const h=d._lpa||d.firstChild;t.shapeFlag&16&&(v?(s(e,t),f(d,h),t.targetAnchor||bh(d,t,p,c,o(e)===d?e:null)):(t.anchor=g(e),f(d,h),t.targetAnchor||bh(d,t,p,c),u(h&&g(h),t,d,n,r,i,l))),oc(t,v)}else v&&t.shapeFlag&16&&(s(e,t),t.targetStart=e,t.targetAnchor=g(e));return t.anchor&&g(t.anchor)}const GT=J1;function oc(e,t){const n=e.ctx;if(n&&n.ut){let r,i;for(t?(r=e.el,i=e.anchor):(r=e.targetStart,i=e.targetAnchor);r&&r!==i;)r.nodeType===1&&r.setAttribute("data-v-owner",n.uid),r=r.nextSibling;n.ut()}}function bh(e,t,n,r,i=null){const l=t.targetStart=n(""),g=t.targetAnchor=n("");return l[q1]=g,e&&(r(l,e,i),r(g,e,i)),g}const Xr=Symbol("_leaveCb"),As=Symbol("_enterCb");function Q1(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return et(()=>{e.isMounted=!0}),kt(()=>{e.isUnmounting=!0}),e}const dr=[Function,Array],e_={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dr,onEnter:dr,onAfterEnter:dr,onEnterCancelled:dr,onBeforeLeave:dr,onLeave:dr,onAfterLeave:dr,onLeaveCancelled:dr,onBeforeAppear:dr,onAppear:dr,onAfterAppear:dr,onAppearCancelled:dr},t_=e=>{const t=e.subTree;return t.component?t_(t.component):t},KT={name:"BaseTransition",props:e_,setup(e,{slots:t}){const n=it(),r=Q1();return()=>{const i=t.default&&iv(t.default(),!0);if(!i||!i.length)return;const l=n_(i),g=ft(e),{mode:o}=g;if(r.isLeaving)return ud(l);const a=im(l);if(!a)return ud(l);let c=yl(a,g,r,n,u=>c=u);a.type!==ln&&Ka(a,c);let p=n.subTree&&im(n.subTree);if(p&&p.type!==ln&&!ka(p,a)&&t_(n).type!==ln){let u=yl(p,g,r,n);if(Ka(p,u),o==="out-in"&&a.type!==ln)return r.isLeaving=!0,u.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,p=void 0},ud(l);o==="in-out"&&a.type!==ln?u.delayLeave=(f,s,d)=>{const v=r_(r,p);v[String(p.key)]=p,f[Xr]=()=>{s(),f[Xr]=void 0,delete c.delayedLeave,p=void 0},c.delayedLeave=()=>{d(),delete c.delayedLeave,p=void 0}}:p=void 0}else p&&(p=void 0);return l}}};function n_(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ln){t=n;break}}return t}const YT=KT;function r_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function yl(e,t,n,r,i){const{appear:l,mode:g,persisted:o=!1,onBeforeEnter:a,onEnter:c,onAfterEnter:p,onEnterCancelled:u,onBeforeLeave:f,onLeave:s,onAfterLeave:d,onLeaveCancelled:v,onBeforeAppear:h,onAppear:m,onAfterAppear:y,onAppearCancelled:b}=t,_=String(e.key),S=r_(n,e),x=(k,D)=>{k&&Fr(k,r,9,D)},T=(k,D)=>{const W=D[1];x(k,D),Pe(k)?k.every(I=>I.length<=1)&&W():k.length<=1&&W()},E={mode:g,persisted:o,beforeEnter(k){let D=a;if(!n.isMounted)if(l)D=h||a;else return;k[Xr]&&k[Xr](!0);const W=S[_];W&&ka(e,W)&&W.el[Xr]&&W.el[Xr](),x(D,[k])},enter(k){if(S[_]===e)return;let D=c,W=p,I=u;if(!n.isMounted)if(l)D=m||c,W=y||p,I=b||u;else return;let U=!1;k[As]=ee=>{U||(U=!0,ee?x(I,[k]):x(W,[k]),E.delayedLeave&&E.delayedLeave(),k[As]=void 0)};const A=k[As].bind(null,!1);D?T(D,[k,A]):A()},leave(k,D){const W=String(e.key);if(k[As]&&k[As](!0),n.isUnmounting)return D();x(f,[k]);let I=!1;k[Xr]=A=>{I||(I=!0,D(),A?x(v,[k]):x(d,[k]),k[Xr]=void 0,S[W]===e&&delete S[W])};const U=k[Xr].bind(null,!1);S[W]=e,s?T(s,[k,U]):U()},clone(k){const D=yl(k,t,n,r,i);return i&&i(D),D}};return E}function ud(e){if(_f(e))return e=Pi(e),e.children=null,e}function im(e){if(!_f(e))return Z1(e.type)&&e.children?n_(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Be(n.default))return n.default()}}function Ka(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ka(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function iv(e,t=!1,n){let r=[],i=0;for(let l=0;l<e.length;l++){let g=e[l];const o=n==null?g.key:String(n)+String(g.key!=null?g.key:l);g.type===Ve?(g.patchFlag&128&&i++,r=r.concat(iv(g.children,t,o))):(t||g.type!==ln)&&r.push(o!=null?Pi(g,{key:o}):g)}if(i>1)for(let l=0;l<r.length;l++)r[l].patchFlag=-2;return r}function we(e,t){return Be(e)?(()=>Wt({name:e.name},t,{setup:e}))():e}function i_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function am(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Oc=new WeakMap;function Ys(e,t,n,r,i=!1){if(Pe(e)){e.forEach((v,h)=>Ys(v,t&&(Pe(t)?t[h]:t),n,r,i));return}if(No(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Ys(e,t,n,r.component.subTree);return}const l=r.shapeFlag&4?Cf(r.component):r.el,g=i?null:l,{i:o,r:a}=e,c=t&&t.r,p=o.refs===Tt?o.refs={}:o.refs,u=o.setupState,f=ft(u),s=u===Tt?y1:v=>am(p,v)?!1:at(f,v),d=(v,h)=>!(h&&am(p,h));if(c!=null&&c!==a){if(om(t),je(c))p[c]=null,s(c)&&(u[c]=null);else if(yt(c)){const v=t;d(c,v.k)&&(c.value=null),v.k&&(p[v.k]=null)}}if(Be(a))eu(a,o,12,[g,p]);else{const v=je(a),h=yt(a);if(v||h){const m=()=>{if(e.f){const y=v?s(a)?u[a]:p[a]:d()||!e.k?a.value:p[e.k];if(i)Pe(y)&&Xp(y,l);else if(Pe(y))y.includes(l)||y.push(l);else if(v)p[a]=[l],s(a)&&(u[a]=p[a]);else{const b=[l];d(a,e.k)&&(a.value=b),e.k&&(p[e.k]=b)}}else v?(p[a]=g,s(a)&&(u[a]=g)):h&&(d(a,e.k)&&(a.value=g),e.k&&(p[e.k]=g))};if(g){const y=()=>{m(),Oc.delete(e)};y.id=-1,Oc.set(e,y),Sn(y,n)}else om(e),m()}}}function om(e){const t=Oc.get(e);t&&(t.flags|=8,Oc.delete(e))}Ql().requestIdleCallback;Ql().cancelIdleCallback;const No=e=>!!e.type.__asyncLoader,_f=e=>e.type.__isKeepAlive;function a_(e,t){s_(e,"a",t)}function o_(e,t){s_(e,"da",t)}function s_(e,t,n=En){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(wf(t,r,n),n){let i=n.parent;for(;i&&i.parent;)_f(i.parent.vnode)&&XT(r,t,n,i),i=i.parent}}function XT(e,t,n,r){const i=wf(t,e,r,!0);os(()=>{Xp(r[t],i)},n)}function wf(e,t,n=En,r=!1){if(n){const i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...g)=>{Ei();const o=tu(n),a=Fr(t,n,e,g);return o(),ki(),a});return r?i.unshift(l):i.push(l),l}}const Li=e=>(t,n=En)=>{(!wl||e==="sp")&&wf(e,(...r)=>t(...r),n)},l_=Li("bm"),et=Li("m"),av=Li("bu"),as=Li("u"),kt=Li("bum"),os=Li("um"),qT=Li("sp"),ZT=Li("rtg"),JT=Li("rtc");function QT(e,t=En){wf("ec",e,t)}const ov="components",eE="directives";function er(e,t){return sv(ov,e,!0,t)||e}const u_=Symbol.for("v-ndc");function st(e){return je(e)?sv(ov,e,!1)||e:e||u_}function tE(e){return sv(eE,e)}function sv(e,t,n=!0,r=!1){const i=vn||En;if(i){const l=i.type;if(e===ov){const o=NE(l,!1);if(o&&(o===t||o===ur(t)||o===Jl(ur(t))))return l}const g=sm(i[e]||l[e],t)||sm(i.appContext[e],t);return!g&&r?l:g}}function sm(e,t){return e&&(e[t]||e[ur(t)]||e[Jl(ur(t))])}function Bt(e,t,n,r){let i;const l=n&&n[r],g=Pe(e);if(g||je(e)){const o=g&&xi(e);let a=!1,c=!1;o&&(a=!or(e),c=Oi(e),e=vf(e)),i=new Array(e.length);for(let p=0,u=e.length;p<u;p++)i[p]=t(a?c?Go(Dr(e[p])):Dr(e[p]):e[p],p,void 0,l&&l[p])}else if(typeof e=="number"){i=new Array(e);for(let o=0;o<e;o++)i[o]=t(o+1,o,void 0,l&&l[o])}else if(Ze(e))if(e[Symbol.iterator])i=Array.from(e,(o,a)=>t(o,a,void 0,l&&l[a]));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;a<c;a++){const p=o[a];i[a]=t(e[p],p,a,l&&l[a])}}else i=[];return n&&(n[r]=i),i}function bl(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Pe(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const l=r.fn(...i);return l&&(l.key=r.key),l}:r.fn)}return e}function xe(e,t,n={},r,i){if(vn.ce||vn.parent&&No(vn.parent)&&vn.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),j(),me(Ve,null,[ue("slot",n,r&&r())],c?-2:64)}let l=e[t];l&&l._c&&(l._d=!1),j();const g=l&&c_(l(n)),o=n.key||g&&g.key,a=me(Ve,{key:(o&&!Rr(o)?o:`_${t}`)+(!g&&r?"_fb":"")},g||(r?r():[]),g&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),l&&l._c&&(l._d=!0),a}function c_(e){return e.some(t=>Nn(t)?!(t.type===ln||t.type===Ve&&!c_(t.children)):!0)?e:null}function nE(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Hs(r)]=e[r];return n}const _h=e=>e?P_(e)?Cf(e):_h(e.parent):null,Xs=Wt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>_h(e.parent),$root:e=>_h(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>lv(e),$forceUpdate:e=>e.f||(e.f=()=>{rv(e.update)}),$nextTick:e=>e.n||(e.n=We.bind(e.proxy)),$watch:e=>HT.bind(e)}),cd=(e,t)=>e!==Tt&&!e.__isScriptSetup&&at(e,t),rE={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:l,accessCache:g,type:o,appContext:a}=e;if(t[0]!=="$"){const f=g[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(cd(r,t))return g[t]=1,r[t];if(i!==Tt&&at(i,t))return g[t]=2,i[t];if(at(l,t))return g[t]=3,l[t];if(n!==Tt&&at(n,t))return g[t]=4,n[t];wh&&(g[t]=0)}}const c=Xs[t];let p,u;if(c)return t==="$attrs"&&Tn(e.attrs,"get",""),c(e);if((p=o.__cssModules)&&(p=p[t]))return p;if(n!==Tt&&at(n,t))return g[t]=4,n[t];if(u=a.config.globalProperties,at(u,t))return u[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return cd(i,t)?(i[t]=n,!0):r!==Tt&&at(r,t)?(r[t]=n,!0):at(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,props:l,type:g}},o){let a;return!!(n[o]||e!==Tt&&o[0]!=="$"&&at(e,o)||cd(t,o)||at(l,o)||at(r,o)||at(Xs,o)||at(i.config.globalProperties,o)||(a=g.__cssModules)&&a[o])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:at(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ao(){return d_().slots}function f_(){return d_().attrs}function d_(e){const t=it();return t.setupContext||(t.setupContext=M_(t))}function lm(e){return Pe(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let wh=!0;function iE(e){const t=lv(e),n=e.proxy,r=e.ctx;wh=!1,t.beforeCreate&&um(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:g,watch:o,provide:a,inject:c,created:p,beforeMount:u,mounted:f,beforeUpdate:s,updated:d,activated:v,deactivated:h,beforeDestroy:m,beforeUnmount:y,destroyed:b,unmounted:_,render:S,renderTracked:x,renderTriggered:T,errorCaptured:E,serverPrefetch:k,expose:D,inheritAttrs:W,components:I,directives:U,filters:A}=t;if(c&&aE(c,r,null),g)for(const z in g){const q=g[z];Be(q)&&(r[z]=q.bind(n))}if(i){const z=i.call(n,n);Ze(z)&&(e.data=mt(z))}if(wh=!0,l)for(const z in l){const q=l[z],O=Be(q)?q.bind(n,n):Be(q.get)?q.get.bind(n,n):rt,F=!Be(q)&&Be(q.set)?q.set.bind(n):rt,R=V({get:O,set:F});Object.defineProperty(r,z,{enumerable:!0,configurable:!0,get:()=>R.value,set:P=>R.value=P})}if(o)for(const z in o)h_(o[z],r,n,z);if(a){const z=Be(a)?a.call(n):a;Reflect.ownKeys(z).forEach(q=>{wt(q,z[q])})}p&&um(p,e,"c");function de(z,q){Pe(q)?q.forEach(O=>z(O.bind(n))):q&&z(q.bind(n))}if(de(l_,u),de(et,f),de(av,s),de(as,d),de(a_,v),de(o_,h),de(QT,E),de(JT,x),de(ZT,T),de(kt,y),de(os,_),de(qT,k),Pe(D))if(D.length){const z=e.exposed||(e.exposed={});D.forEach(q=>{Object.defineProperty(z,q,{get:()=>n[q],set:O=>n[q]=O,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===rt&&(e.render=S),W!=null&&(e.inheritAttrs=W),I&&(e.components=I),U&&(e.directives=U),k&&i_(e)}function aE(e,t,n=rt){Pe(e)&&(e=Sh(e));for(const r in e){const i=e[r];let l;Ze(i)?"default"in i?l=Ue(i.from||r,i.default,!0):l=Ue(i.from||r):l=Ue(i),yt(l)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>l.value,set:g=>l.value=g}):t[r]=l}}function um(e,t,n){Fr(Pe(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function h_(e,t,n,r){let i=r.includes(".")?X1(n,r):()=>n[r];if(je(e)){const l=t[e];Be(l)&&ke(i,l)}else if(Be(e))ke(i,e.bind(n));else if(Ze(e))if(Pe(e))e.forEach(l=>h_(l,t,n,r));else{const l=Be(e.handler)?e.handler.bind(n):t[e.handler];Be(l)&&ke(i,l,e)}}function lv(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:g}}=e.appContext,o=l.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(c=>Ac(a,c,g,!0)),Ac(a,t,g)),Ze(t)&&l.set(t,a),a}function Ac(e,t,n,r=!1){const{mixins:i,extends:l}=t;l&&Ac(e,l,n,!0),i&&i.forEach(g=>Ac(e,g,n,!0));for(const g in t)if(!(r&&g==="expose")){const o=oE[g]||n&&n[g];e[g]=o?o(e[g],t[g]):t[g]}return e}const oE={data:cm,props:fm,emits:fm,methods:Fs,computed:Fs,beforeCreate:Mn,created:Mn,beforeMount:Mn,mounted:Mn,beforeUpdate:Mn,updated:Mn,beforeDestroy:Mn,beforeUnmount:Mn,destroyed:Mn,unmounted:Mn,activated:Mn,deactivated:Mn,errorCaptured:Mn,serverPrefetch:Mn,components:Fs,directives:Fs,watch:lE,provide:cm,inject:sE};function cm(e,t){return t?e?function(){return Wt(Be(e)?e.call(this,this):e,Be(t)?t.call(this,this):t)}:t:e}function sE(e,t){return Fs(Sh(e),Sh(t))}function Sh(e){if(Pe(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Mn(e,t){return e?[...new Set([].concat(e,t))]:t}function Fs(e,t){return e?Wt(Object.create(null),e,t):t}function fm(e,t){return e?Pe(e)&&Pe(t)?[...new Set([...e,...t])]:Wt(Object.create(null),lm(e),lm(t!=null?t:{})):t}function lE(e,t){if(!e)return t;if(!t)return e;const n=Wt(Object.create(null),e);for(const r in t)n[r]=Mn(e[r],t[r]);return n}function p_(){return{app:null,config:{isNativeTag:y1,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let uE=0;function cE(e,t){return function(r,i=null){Be(r)||(r=Wt({},r)),i!=null&&!Ze(i)&&(i=null);const l=p_(),g=new WeakSet,o=[];let a=!1;const c=l.app={_uid:uE++,_component:r,_props:i,_container:null,_context:l,_instance:null,version:$E,get config(){return l.config},set config(p){},use(p,...u){return g.has(p)||(p&&Be(p.install)?(g.add(p),p.install(c,...u)):Be(p)&&(g.add(p),p(c,...u))),c},mixin(p){return l.mixins.includes(p)||l.mixins.push(p),c},component(p,u){return u?(l.components[p]=u,c):l.components[p]},directive(p,u){return u?(l.directives[p]=u,c):l.directives[p]},mount(p,u,f){if(!a){const s=c._ceVNode||ue(r,i);return s.appContext=l,f===!0?f="svg":f===!1&&(f=void 0),u&&t?t(s,p):e(s,p,f),a=!0,c._container=p,p.__vue_app__=c,Cf(s.component)}},onUnmount(p){o.push(p)},unmount(){a&&(Fr(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(p,u){return l.provides[p]=u,c},runWithContext(p){const u=$a;$a=c;try{return p()}finally{$a=u}}};return c}}let $a=null;const fE=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ur(t)}Modifiers`]||e[`${ga(t)}Modifiers`];function dE(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Tt;let i=n;const l=t.startsWith("update:"),g=l&&fE(r,t.slice(7));g&&(g.trim&&(i=n.map(p=>je(p)?p.trim():p)),g.number&&(i=n.map(tT)));let o,a=r[o=Hs(t)]||r[o=Hs(ur(t))];!a&&l&&(a=r[o=Hs(ga(t))]),a&&Fr(a,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Fr(c,e,6,i)}}const hE=new WeakMap;function v_(e,t,n=!1){const r=n?hE:t.emitsCache,i=r.get(e);if(i!==void 0)return i;const l=e.emits;let g={},o=!1;if(!Be(e)){const a=c=>{const p=v_(c,t,!0);p&&(o=!0,Wt(g,p))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!l&&!o?(Ze(e)&&r.set(e,null),null):(Pe(l)?l.forEach(a=>g[a]=null):Wt(g,l),Ze(e)&&r.set(e,g),g)}function Sf(e,t){return!e||!cf(t)?!1:(t=t.slice(2).replace(/Once$/,""),at(e,t[0].toLowerCase()+t.slice(1))||at(e,ga(t))||at(e,t))}function fd(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[l],slots:g,attrs:o,emit:a,render:c,renderCache:p,props:u,data:f,setupState:s,ctx:d,inheritAttrs:v}=e,h=kc(e);let m,y;try{if(n.shapeFlag&4){const _=i||r,S=_;m=Zr(c.call(S,_,p,u,s,f,d)),y=o}else{const _=t;m=Zr(_.length>1?_(u,{attrs:o,slots:g,emit:a}):_(u,null)),y=t.props?o:pE(o)}}catch(_){qs.length=0,yf(_,e,1),m=ue(ln)}let b=m;if(y&&v!==!1){const _=Object.keys(y),{shapeFlag:S}=b;_.length&&S&7&&(l&&_.some(Yp)&&(y=vE(y,l)),b=Pi(b,y,!1,!0))}return n.dirs&&(b=Pi(b,null,!1,!0),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&Ka(b,n.transition),m=b,kc(h),m}const pE=e=>{let t;for(const n in e)(n==="class"||n==="style"||cf(n))&&((t||(t={}))[n]=e[n]);return t},vE=(e,t)=>{const n={};for(const r in e)(!Yp(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function gE(e,t,n){const{props:r,children:i,component:l}=e,{props:g,children:o,patchFlag:a}=t,c=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?dm(r,g,c):!!g;if(a&8){const p=t.dynamicProps;for(let u=0;u<p.length;u++){const f=p[u];if(g_(g,r,f)&&!Sf(c,f))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===g?!1:r?g?dm(r,g,c):!0:!!g;return!1}function dm(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const l=r[i];if(g_(t,e,l)&&!Sf(n,l))return!0}return!1}function g_(e,t,n){const r=e[n],i=t[n];return n==="style"&&Ze(r)&&Ze(i)?!pl(r,i):r!==i}function mE({vnode:e,parent:t},n){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=n,t=t.parent;else break}}const m_={},y_=()=>Object.create(m_),b_=e=>Object.getPrototypeOf(e)===m_;function yE(e,t,n,r=!1){const i={},l=y_();e.propsDefaults=Object.create(null),__(e,t,i,l);for(const g in e.propsOptions[0])g in i||(i[g]=void 0);n?e.props=r?i:gf(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function bE(e,t,n,r){const{props:i,attrs:l,vnode:{patchFlag:g}}=e,o=ft(i),[a]=e.propsOptions;let c=!1;if((r||g>0)&&!(g&16)){if(g&8){const p=e.vnode.dynamicProps;for(let u=0;u<p.length;u++){let f=p[u];if(Sf(e.emitsOptions,f))continue;const s=t[f];if(a)if(at(l,f))s!==l[f]&&(l[f]=s,c=!0);else{const d=ur(f);i[d]=Ch(a,o,d,s,e,!1)}else s!==l[f]&&(l[f]=s,c=!0)}}}else{__(e,t,i,l)&&(c=!0);let p;for(const u in o)(!t||!at(t,u)&&((p=ga(u))===u||!at(t,p)))&&(a?n&&(n[u]!==void 0||n[p]!==void 0)&&(i[u]=Ch(a,o,u,void 0,e,!0)):delete i[u]);if(l!==o)for(const u in l)(!t||!at(t,u)&&!0)&&(delete l[u],c=!0)}c&&_i(e.attrs,"set","")}function __(e,t,n,r){const[i,l]=e.propsOptions;let g=!1,o;if(t)for(let a in t){if(Us(a))continue;const c=t[a];let p;i&&at(i,p=ur(a))?!l||!l.includes(p)?n[p]=c:(o||(o={}))[p]=c:Sf(e.emitsOptions,a)||(!(a in r)||c!==r[a])&&(r[a]=c,g=!0)}if(l){const a=ft(n),c=o||Tt;for(let p=0;p<l.length;p++){const u=l[p];n[u]=Ch(i,a,u,c[u],e,!at(c,u))}}return g}function Ch(e,t,n,r,i,l){const g=e[n];if(g!=null){const o=at(g,"default");if(o&&r===void 0){const a=g.default;if(g.type!==Function&&!g.skipFactory&&Be(a)){const{propsDefaults:c}=i;if(n in c)r=c[n];else{const p=tu(i);r=c[n]=a.call(null,t),p()}}else r=a;i.ce&&i.ce._setProp(n,r)}g[0]&&(l&&!o?r=!1:g[1]&&(r===""||r===ga(n))&&(r=!0))}return r}const _E=new WeakMap;function w_(e,t,n=!1){const r=n?_E:t.propsCache,i=r.get(e);if(i)return i;const l=e.props,g={},o=[];let a=!1;if(!Be(e)){const p=u=>{a=!0;const[f,s]=w_(u,t,!0);Wt(g,f),s&&o.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}if(!l&&!a)return Ze(e)&&r.set(e,Lo),Lo;if(Pe(l))for(let p=0;p<l.length;p++){const u=ur(l[p]);hm(u)&&(g[u]=Tt)}else if(l)for(const p in l){const u=ur(p);if(hm(u)){const f=l[p],s=g[u]=Pe(f)||Be(f)?{type:f}:Wt({},f),d=s.type;let v=!1,h=!0;if(Pe(d))for(let m=0;m<d.length;++m){const y=d[m],b=Be(y)&&y.name;if(b==="Boolean"){v=!0;break}else b==="String"&&(h=!1)}else v=Be(d)&&d.name==="Boolean";s[0]=v,s[1]=h,(v||at(s,"default"))&&o.push(u)}}const c=[g,o];return Ze(e)&&r.set(e,c),c}function hm(e){return e[0]!=="$"&&!Us(e)}const uv=e=>e==="_"||e==="_ctx"||e==="$stable",cv=e=>Pe(e)?e.map(Zr):[Zr(e)],wE=(e,t,n)=>{if(t._n)return t;const r=fe((...i)=>cv(t(...i)),n);return r._c=!1,r},S_=(e,t,n)=>{const r=e._ctx;for(const i in e){if(uv(i))continue;const l=e[i];if(Be(l))t[i]=wE(i,l,r);else if(l!=null){const g=cv(l);t[i]=()=>g}}},C_=(e,t)=>{const n=cv(t);e.slots.default=()=>n},x_=(e,t,n)=>{for(const r in t)(n||!uv(r))&&(e[r]=t[r])},SE=(e,t,n)=>{const r=e.slots=y_();if(e.vnode.shapeFlag&32){const i=t._;i?(x_(r,t,n),n&&w1(r,"_",i,!0)):S_(t,r)}else t&&C_(e,t)},CE=(e,t,n)=>{const{vnode:r,slots:i}=e;let l=!0,g=Tt;if(r.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:x_(i,t,n):(l=!t.$stable,S_(t,i)),g=t}else t&&(C_(e,t),g={default:1});if(l)for(const o in i)!uv(o)&&g[o]==null&&delete i[o]};function xE(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(Ql().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Sn=AE;function TE(e){return EE(e)}function EE(e,t){xE();const n=Ql();n.__VUE__=!0;const{insert:r,remove:i,patchProp:l,createElement:g,createText:o,createComment:a,setText:c,setElementText:p,parentNode:u,nextSibling:f,setScopeId:s=rt,insertStaticContent:d}=e,v=(N,C,H,K=null,L=null,B=null,Z=void 0,ce=null,le=!!C.dynamicChildren)=>{if(N===C)return;N&&!ka(N,C)&&(K=X(N),P(N,L,B,!0),N=null),C.patchFlag===-2&&(le=!1,C.dynamicChildren=null);const{type:Y,ref:he,shapeFlag:ve}=C;switch(Y){case ss:h(N,C,H,K);break;case ln:m(N,C,H,K);break;case sc:N==null&&y(C,H,K,Z);break;case Ve:I(N,C,H,K,L,B,Z,ce,le);break;default:ve&1?S(N,C,H,K,L,B,Z,ce,le):ve&6?U(N,C,H,K,L,B,Z,ce,le):(ve&64||ve&128)&&Y.process(N,C,H,K,L,B,Z,ce,le,J)}he!=null&&L?Ys(he,N&&N.ref,B,C||N,!C):he==null&&N&&N.ref!=null&&Ys(N.ref,null,B,N,!0)},h=(N,C,H,K)=>{if(N==null)r(C.el=o(C.children),H,K);else{const L=C.el=N.el;C.children!==N.children&&c(L,C.children)}},m=(N,C,H,K)=>{N==null?r(C.el=a(C.children||""),H,K):C.el=N.el},y=(N,C,H,K)=>{[N.el,N.anchor]=d(N.children,C,H,K,N.el,N.anchor)},b=({el:N,anchor:C},H,K)=>{let L;for(;N&&N!==C;)L=f(N),r(N,H,K),N=L;r(C,H,K)},_=({el:N,anchor:C})=>{let H;for(;N&&N!==C;)H=f(N),i(N),N=H;i(C)},S=(N,C,H,K,L,B,Z,ce,le)=>{if(C.type==="svg"?Z="svg":C.type==="math"&&(Z="mathml"),N==null)x(C,H,K,L,B,Z,ce,le);else{const Y=N.el&&N.el._isVueCE?N.el:null;try{Y&&Y._beginPatch(),k(N,C,L,B,Z,ce,le)}finally{Y&&Y._endPatch()}}},x=(N,C,H,K,L,B,Z,ce)=>{let le,Y;const{props:he,shapeFlag:ve,transition:ge,dirs:Ee}=N;if(le=N.el=g(N.type,B,he&&he.is,he),ve&8?p(le,N.children):ve&16&&E(N.children,le,null,K,L,dd(N,B),Z,ce),Ee&&wa(N,null,K,"created"),T(le,N,N.scopeId,Z,K),he){for(const Te in he)Te!=="value"&&!Us(Te)&&l(le,Te,null,he[Te],B,K);"value"in he&&l(le,"value",null,he.value,B),(Y=he.onVnodeBeforeMount)&&Hr(Y,K,N)}Ee&&wa(N,null,K,"beforeMount");const _e=kE(L,ge);_e&&ge.beforeEnter(le),r(le,C,H),((Y=he&&he.onVnodeMounted)||_e||Ee)&&Sn(()=>{Y&&Hr(Y,K,N),_e&&ge.enter(le),Ee&&wa(N,null,K,"mounted")},L)},T=(N,C,H,K,L)=>{if(H&&s(N,H),K)for(let B=0;B<K.length;B++)s(N,K[B]);if(L){let B=L.subTree;if(C===B||k_(B.type)&&(B.ssContent===C||B.ssFallback===C)){const Z=L.vnode;T(N,Z,Z.scopeId,Z.slotScopeIds,L.parent)}}},E=(N,C,H,K,L,B,Z,ce,le=0)=>{for(let Y=le;Y<N.length;Y++){const he=N[Y]=ce?gi(N[Y]):Zr(N[Y]);v(null,he,C,H,K,L,B,Z,ce)}},k=(N,C,H,K,L,B,Z)=>{const ce=C.el=N.el;let{patchFlag:le,dynamicChildren:Y,dirs:he}=C;le|=N.patchFlag&16;const ve=N.props||Tt,ge=C.props||Tt;let Ee;if(H&&Sa(H,!1),(Ee=ge.onVnodeBeforeUpdate)&&Hr(Ee,H,C,N),he&&wa(C,N,H,"beforeUpdate"),H&&Sa(H,!0),(ve.innerHTML&&ge.innerHTML==null||ve.textContent&&ge.textContent==null)&&p(ce,""),Y?D(N.dynamicChildren,Y,ce,H,K,dd(C,L),B):Z||q(N,C,ce,null,H,K,dd(C,L),B,!1),le>0){if(le&16)W(ce,ve,ge,H,L);else if(le&2&&ve.class!==ge.class&&l(ce,"class",null,ge.class,L),le&4&&l(ce,"style",ve.style,ge.style,L),le&8){const _e=C.dynamicProps;for(let Te=0;Te<_e.length;Te++){const Oe=_e[Te],tt=ve[Oe],Ce=ge[Oe];(Ce!==tt||Oe==="value")&&l(ce,Oe,tt,Ce,L,H)}}le&1&&N.children!==C.children&&p(ce,C.children)}else!Z&&Y==null&&W(ce,ve,ge,H,L);((Ee=ge.onVnodeUpdated)||he)&&Sn(()=>{Ee&&Hr(Ee,H,C,N),he&&wa(C,N,H,"updated")},K)},D=(N,C,H,K,L,B,Z)=>{for(let ce=0;ce<C.length;ce++){const le=N[ce],Y=C[ce],he=le.el&&(le.type===Ve||!ka(le,Y)||le.shapeFlag&198)?u(le.el):H;v(le,Y,he,null,K,L,B,Z,!0)}},W=(N,C,H,K,L)=>{if(C!==H){if(C!==Tt)for(const B in C)!Us(B)&&!(B in H)&&l(N,B,C[B],null,L,K);for(const B in H){if(Us(B))continue;const Z=H[B],ce=C[B];Z!==ce&&B!=="value"&&l(N,B,ce,Z,L,K)}"value"in H&&l(N,"value",C.value,H.value,L)}},I=(N,C,H,K,L,B,Z,ce,le)=>{const Y=C.el=N?N.el:o(""),he=C.anchor=N?N.anchor:o("");let{patchFlag:ve,dynamicChildren:ge,slotScopeIds:Ee}=C;Ee&&(ce=ce?ce.concat(Ee):Ee),N==null?(r(Y,H,K),r(he,H,K),E(C.children||[],H,he,L,B,Z,ce,le)):ve>0&&ve&64&&ge&&N.dynamicChildren&&N.dynamicChildren.length===ge.length?(D(N.dynamicChildren,ge,H,L,B,Z,ce),(C.key!=null||L&&C===L.subTree)&&fv(N,C,!0)):q(N,C,H,he,L,B,Z,ce,le)},U=(N,C,H,K,L,B,Z,ce,le)=>{C.slotScopeIds=ce,N==null?C.shapeFlag&512?L.ctx.activate(C,H,K,Z,le):A(C,H,K,L,B,Z,le):ee(N,C,le)},A=(N,C,H,K,L,B,Z)=>{const ce=N.component=DE(N,K,L);if(_f(N)&&(ce.ctx.renderer=J),LE(ce,!1,Z),ce.asyncDep){if(L&&L.registerDep(ce,de,Z),!N.el){const le=ce.subTree=ue(ln);m(null,le,C,H),N.placeholder=le.el}}else de(ce,N,C,H,L,B,Z)},ee=(N,C,H)=>{const K=C.component=N.component;if(gE(N,C,H))if(K.asyncDep&&!K.asyncResolved){z(K,C,H);return}else K.next=C,K.update();else C.el=N.el,K.vnode=C},de=(N,C,H,K,L,B,Z)=>{const ce=()=>{if(N.isMounted){let{next:ve,bu:ge,u:Ee,parent:_e,vnode:Te}=N;{const Le=T_(N);if(Le){ve&&(ve.el=Te.el,z(N,ve,Z)),Le.asyncDep.then(()=>{Sn(()=>{N.isUnmounted||Y()},L)});return}}let Oe=ve,tt;Sa(N,!1),ve?(ve.el=Te.el,z(N,ve,Z)):ve=Te,ge&&ic(ge),(tt=ve.props&&ve.props.onVnodeBeforeUpdate)&&Hr(tt,_e,ve,Te),Sa(N,!0);const Ce=fd(N),Me=N.subTree;N.subTree=Ce,v(Me,Ce,u(Me.el),X(Me),N,L,B),ve.el=Ce.el,Oe===null&&mE(N,Ce.el),Ee&&Sn(Ee,L),(tt=ve.props&&ve.props.onVnodeUpdated)&&Sn(()=>Hr(tt,_e,ve,Te),L)}else{let ve;const{el:ge,props:Ee}=C,{bm:_e,m:Te,parent:Oe,root:tt,type:Ce}=N,Me=No(C);if(Sa(N,!1),_e&&ic(_e),!Me&&(ve=Ee&&Ee.onVnodeBeforeMount)&&Hr(ve,Oe,C),Sa(N,!0),ge&&pe){const Le=()=>{N.subTree=fd(N),pe(ge,N.subTree,N,L,null)};Me&&Ce.__asyncHydrate?Ce.__asyncHydrate(ge,N,Le):Le()}else{tt.ce&&tt.ce._hasShadowRoot()&&tt.ce._injectChildStyle(Ce);const Le=N.subTree=fd(N);v(null,Le,H,K,N,L,B),C.el=Le.el}if(Te&&Sn(Te,L),!Me&&(ve=Ee&&Ee.onVnodeMounted)){const Le=C;Sn(()=>Hr(ve,Oe,Le),L)}(C.shapeFlag&256||Oe&&No(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&N.a&&Sn(N.a,L),N.isMounted=!0,C=H=K=null}};N.scope.on();const le=N.effect=new E1(ce);N.scope.off();const Y=N.update=le.run.bind(le),he=N.job=le.runIfDirty.bind(le);he.i=N,he.id=N.uid,le.scheduler=()=>rv(he),Sa(N,!0),Y()},z=(N,C,H)=>{C.component=N;const K=N.vnode.props;N.vnode=C,N.next=null,bE(N,C.props,K,H),CE(N,C.children,H),Ei(),em(N),ki()},q=(N,C,H,K,L,B,Z,ce,le=!1)=>{const Y=N&&N.children,he=N?N.shapeFlag:0,ve=C.children,{patchFlag:ge,shapeFlag:Ee}=C;if(ge>0){if(ge&128){F(Y,ve,H,K,L,B,Z,ce,le);return}else if(ge&256){O(Y,ve,H,K,L,B,Z,ce,le);return}}Ee&8?(he&16&&ne(Y,L,B),ve!==Y&&p(H,ve)):he&16?Ee&16?F(Y,ve,H,K,L,B,Z,ce,le):ne(Y,L,B,!0):(he&8&&p(H,""),Ee&16&&E(ve,H,K,L,B,Z,ce,le))},O=(N,C,H,K,L,B,Z,ce,le)=>{N=N||Lo,C=C||Lo;const Y=N.length,he=C.length,ve=Math.min(Y,he);let ge;for(ge=0;ge<ve;ge++){const Ee=C[ge]=le?gi(C[ge]):Zr(C[ge]);v(N[ge],Ee,H,null,L,B,Z,ce,le)}Y>he?ne(N,L,B,!0,!1,ve):E(C,H,K,L,B,Z,ce,le,ve)},F=(N,C,H,K,L,B,Z,ce,le)=>{let Y=0;const he=C.length;let ve=N.length-1,ge=he-1;for(;Y<=ve&&Y<=ge;){const Ee=N[Y],_e=C[Y]=le?gi(C[Y]):Zr(C[Y]);if(ka(Ee,_e))v(Ee,_e,H,null,L,B,Z,ce,le);else break;Y++}for(;Y<=ve&&Y<=ge;){const Ee=N[ve],_e=C[ge]=le?gi(C[ge]):Zr(C[ge]);if(ka(Ee,_e))v(Ee,_e,H,null,L,B,Z,ce,le);else break;ve--,ge--}if(Y>ve){if(Y<=ge){const Ee=ge+1,_e=Ee<he?C[Ee].el:K;for(;Y<=ge;)v(null,C[Y]=le?gi(C[Y]):Zr(C[Y]),H,_e,L,B,Z,ce,le),Y++}}else if(Y>ge)for(;Y<=ve;)P(N[Y],L,B,!0),Y++;else{const Ee=Y,_e=Y,Te=new Map;for(Y=_e;Y<=ge;Y++){const ze=C[Y]=le?gi(C[Y]):Zr(C[Y]);ze.key!=null&&Te.set(ze.key,Y)}let Oe,tt=0;const Ce=ge-_e+1;let Me=!1,Le=0;const Ge=new Array(Ce);for(Y=0;Y<Ce;Y++)Ge[Y]=0;for(Y=Ee;Y<=ve;Y++){const ze=N[Y];if(tt>=Ce){P(ze,L,B,!0);continue}let lt;if(ze.key!=null)lt=Te.get(ze.key);else for(Oe=_e;Oe<=ge;Oe++)if(Ge[Oe-_e]===0&&ka(ze,C[Oe])){lt=Oe;break}lt===void 0?P(ze,L,B,!0):(Ge[lt-_e]=Y+1,lt>=Le?Le=lt:Me=!0,v(ze,C[lt],H,null,L,B,Z,ce,le),tt++)}const ct=Me?OE(Ge):Lo;for(Oe=ct.length-1,Y=Ce-1;Y>=0;Y--){const ze=_e+Y,lt=C[ze],Pn=C[ze+1],Gt=ze+1<he?Pn.el||E_(Pn):K;Ge[Y]===0?v(null,lt,H,Gt,L,B,Z,ce,le):Me&&(Oe<0||Y!==ct[Oe]?R(lt,H,Gt,2):Oe--)}}},R=(N,C,H,K,L=null)=>{const{el:B,type:Z,transition:ce,children:le,shapeFlag:Y}=N;if(Y&6){R(N.component.subTree,C,H,K);return}if(Y&128){N.suspense.move(C,H,K);return}if(Y&64){Z.move(N,C,H,J);return}if(Z===Ve){r(B,C,H);for(let ve=0;ve<le.length;ve++)R(le[ve],C,H,K);r(N.anchor,C,H);return}if(Z===sc){b(N,C,H);return}if(K!==2&&Y&1&&ce)if(K===0)ce.beforeEnter(B),r(B,C,H),Sn(()=>ce.enter(B),L);else{const{leave:ve,delayLeave:ge,afterLeave:Ee}=ce,_e=()=>{N.ctx.isUnmounted?i(B):r(B,C,H)},Te=()=>{B._isLeaving&&B[Xr](!0),ve(B,()=>{_e(),Ee&&Ee()})};ge?ge(B,_e,Te):Te()}else r(B,C,H)},P=(N,C,H,K=!1,L=!1)=>{const{type:B,props:Z,ref:ce,children:le,dynamicChildren:Y,shapeFlag:he,patchFlag:ve,dirs:ge,cacheIndex:Ee}=N;if(ve===-2&&(L=!1),ce!=null&&(Ei(),Ys(ce,null,H,N,!0),ki()),Ee!=null&&(C.renderCache[Ee]=void 0),he&256){C.ctx.deactivate(N);return}const _e=he&1&&ge,Te=!No(N);let Oe;if(Te&&(Oe=Z&&Z.onVnodeBeforeUnmount)&&Hr(Oe,C,N),he&6)M(N.component,H,K);else{if(he&128){N.suspense.unmount(H,K);return}_e&&wa(N,null,C,"beforeUnmount"),he&64?N.type.remove(N,C,H,J,K):Y&&!Y.hasOnce&&(B!==Ve||ve>0&&ve&64)?ne(Y,C,H,!1,!0):(B===Ve&&ve&384||!L&&he&16)&&ne(le,C,H),K&&G(N)}(Te&&(Oe=Z&&Z.onVnodeUnmounted)||_e)&&Sn(()=>{Oe&&Hr(Oe,C,N),_e&&wa(N,null,C,"unmounted")},H)},G=N=>{const{type:C,el:H,anchor:K,transition:L}=N;if(C===Ve){$(H,K);return}if(C===sc){_(N);return}const B=()=>{i(H),L&&!L.persisted&&L.afterLeave&&L.afterLeave()};if(N.shapeFlag&1&&L&&!L.persisted){const{leave:Z,delayLeave:ce}=L,le=()=>Z(H,B);ce?ce(N.el,B,le):le()}else B()},$=(N,C)=>{let H;for(;N!==C;)H=f(N),i(N),N=H;i(C)},M=(N,C,H)=>{const{bum:K,scope:L,job:B,subTree:Z,um:ce,m:le,a:Y}=N;pm(le),pm(Y),K&&ic(K),L.stop(),B&&(B.flags|=8,P(Z,N,C,H)),ce&&Sn(ce,C),Sn(()=>{N.isUnmounted=!0},C)},ne=(N,C,H,K=!1,L=!1,B=0)=>{for(let Z=B;Z<N.length;Z++)P(N[Z],C,H,K,L)},X=N=>{if(N.shapeFlag&6)return X(N.component.subTree);if(N.shapeFlag&128)return N.suspense.next();const C=f(N.anchor||N.el),H=C&&C[q1];return H?f(H):C};let te=!1;const Q=(N,C,H)=>{let K;N==null?C._vnode&&(P(C._vnode,null,null,!0),K=C._vnode.component):v(C._vnode||null,N,C,null,null,null,H),C._vnode=N,te||(te=!0,em(K),G1(),te=!1)},J={p:v,um:P,m:R,r:G,mt:A,mc:E,pc:q,pbc:D,n:X,o:e};let oe,pe;return t&&([oe,pe]=t(J)),{render:Q,hydrate:oe,createApp:cE(Q,oe)}}function dd({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Sa({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function kE(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fv(e,t,n=!1){const r=e.children,i=t.children;if(Pe(r)&&Pe(i))for(let l=0;l<r.length;l++){const g=r[l];let o=i[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[l]=gi(i[l]),o.el=g.el),!n&&o.patchFlag!==-2&&fv(g,o)),o.type===ss&&(o.patchFlag===-1&&(o=i[l]=gi(o)),o.el=g.el),o.type===ln&&!o.el&&(o.el=g.el)}}function OE(e){const t=e.slice(),n=[0];let r,i,l,g,o;const a=e.length;for(r=0;r<a;r++){const c=e[r];if(c!==0){if(i=n[n.length-1],e[i]<c){t[r]=i,n.push(r);continue}for(l=0,g=n.length-1;l<g;)o=l+g>>1,e[n[o]]<c?l=o+1:g=o;c<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,g=n[l-1];l-- >0;)n[l]=g,g=t[g];return n}function T_(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:T_(t)}function pm(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function E_(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?E_(t.subTree):null}const k_=e=>e.__isSuspense;function AE(e,t){t&&t.pendingBranch?Pe(e)?t.effects.push(...e):t.effects.push(e):W1(e)}const Ve=Symbol.for("v-fgt"),ss=Symbol.for("v-txt"),ln=Symbol.for("v-cmt"),sc=Symbol.for("v-stc"),qs=[];let tr=null;function j(e=!1){qs.push(tr=e?null:[])}function PE(){qs.pop(),tr=qs[qs.length-1]||null}let _l=1;function Pc(e,t=!1){_l+=e,e<0&&tr&&t&&(tr.hasOnce=!0)}function O_(e){return e.dynamicChildren=_l>0?tr||Lo:null,PE(),_l>0&&tr&&tr.push(e),e}function ae(e,t,n,r,i,l){return O_(ie(e,t,n,r,i,l,!0))}function me(e,t,n,r,i){return O_(ue(e,t,n,r,i,!0))}function Nn(e){return e?e.__v_isVNode===!0:!1}function ka(e,t){return e.type===t.type&&e.key===t.key}const A_=({key:e})=>e!=null?e:null,lc=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?je(e)||yt(e)||Be(e)?{i:vn,r:e,k:t,f:!!n}:e:null);function ie(e,t=null,n=null,r=0,i=null,l=e===Ve?0:1,g=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&A_(t),ref:t&&lc(t),scopeId:Y1,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:vn};return o?(dv(a,n),l&128&&e.normalize(a)):n&&(a.shapeFlag|=je(n)?8:16),_l>0&&!g&&tr&&(a.patchFlag>0||l&6)&&a.patchFlag!==32&&tr.push(a),a}const ue=IE;function IE(e,t=null,n=null,r=0,i=null,l=!1){if((!e||e===u_)&&(e=ln),Nn(e)){const o=Pi(e,t,!0);return n&&dv(o,n),_l>0&&!l&&tr&&(o.shapeFlag&6?tr[tr.indexOf(e)]=o:tr.push(o)),o.patchFlag=-2,o}if(zE(e)&&(e=e.__vccOpts),t){t=uc(t);let{class:o,style:a}=t;o&&!je(o)&&(t.class=se(o)),Ze(a)&&(mf(a)&&!Pe(a)&&(a=Wt({},a)),t.style=He(a))}const g=je(e)?1:k_(e)?128:Z1(e)?64:Ze(e)?4:Be(e)?2:0;return ie(e,t,n,r,i,g,l,!0)}function uc(e){return e?mf(e)||b_(e)?Wt({},e):e:null}function Pi(e,t,n=!1,r=!1){const{props:i,ref:l,patchFlag:g,children:o,transition:a}=e,c=t?zt(i||{},t):i,p={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&A_(c),ref:t&&t.ref?n&&l?Pe(l)?l.concat(lc(t)):[l,lc(t)]:lc(t):l,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ve?g===-1?16:g|16:g,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pi(e.ssContent),ssFallback:e.ssFallback&&Pi(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Ka(p,a.clone(p)),p}function qe(e=" ",t=0){return ue(ss,null,e,t)}function ye(e="",t=!1){return t?(j(),me(ln,null,e)):ue(ln,null,e)}function Zr(e){return e==null||typeof e=="boolean"?ue(ln):Pe(e)?ue(Ve,null,e.slice()):Nn(e)?gi(e):ue(ss,null,String(e))}function gi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Pi(e)}function dv(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Pe(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),dv(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!b_(t)?t._ctx=vn:i===3&&vn&&(vn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Be(t)?(t={default:t,_ctx:vn},n=32):(t=String(t),r&64?(n=16,t=[qe(t)]):n=8);e.children=t,e.shapeFlag|=n}function zt(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=se([t.class,r.class]));else if(i==="style")t.style=He([t.style,r.style]);else if(cf(i)){const l=t[i],g=r[i];g&&l!==g&&!(Pe(l)&&l.includes(g))&&(t[i]=l?[].concat(l,g):g)}else i!==""&&(t[i]=r[i])}return t}function Hr(e,t,n,r=null){Fr(e,t,7,[n,r])}const ME=p_();let RE=0;function DE(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ME,l={uid:RE++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new T1(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:w_(r,i),emitsOptions:v_(r,i),emit:null,emitted:null,propsDefaults:Tt,inheritAttrs:r.inheritAttrs,ctx:Tt,data:Tt,props:Tt,attrs:Tt,slots:Tt,refs:Tt,setupState:Tt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return l.ctx={_:l},l.root=t?t.root:l,l.emit=dE.bind(null,l),e.ce&&e.ce(l),l}let En=null;const it=()=>En||vn;let Ic,xh;{const e=Ql(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),l=>{i.length>1?i.forEach(g=>g(l)):i[0](l)}};Ic=t("__VUE_INSTANCE_SETTERS__",n=>En=n),xh=t("__VUE_SSR_SETTERS__",n=>wl=n)}const tu=e=>{const t=En;return Ic(e),e.scope.on(),()=>{e.scope.off(),Ic(t)}},vm=()=>{En&&En.scope.off(),Ic(null)};function P_(e){return e.vnode.shapeFlag&4}let wl=!1;function LE(e,t=!1,n=!1){t&&xh(t);const{props:r,children:i}=e.vnode,l=P_(e);yE(e,r,l,t),SE(e,i,n||t);const g=l?FE(e,t):void 0;return t&&xh(!1),g}function FE(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,rE);const{setup:r}=n;if(r){Ei();const i=e.setupContext=r.length>1?M_(e):null,l=tu(e),g=eu(r,e,0,[e.props,i]),o=Wo(g);if(ki(),l(),(o||e.sp)&&!No(e)&&i_(e),o){if(g.then(vm,vm),t)return g.then(a=>{gm(e,a,t)}).catch(a=>{yf(a,e,0)});e.asyncDep=g}else gm(e,g,t)}else I_(e,t)}function gm(e,t,n){Be(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ze(t)&&(e.setupState=j1(t)),I_(e,n)}let mm;function I_(e,t,n){const r=e.type;if(!e.render){if(!t&&mm&&!r.render){const i=r.template||lv(e).template;if(i){const{isCustomElement:l,compilerOptions:g}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Wt(Wt({isCustomElement:l,delimiters:o},g),a);r.render=mm(i,c)}}e.render=r.render||rt}{const i=tu(e);Ei();try{iE(e)}finally{ki(),i()}}}const BE={get(e,t){return Tn(e,"get",""),e[t]}};function M_(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,BE),slots:e.slots,emit:e.emit,expose:t}}function Cf(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(j1(Ai(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xs)return Xs[n](e)},has(t,n){return n in t||n in Xs}})):e.proxy}function NE(e,t=!0){return Be(e)?e.displayName||e.name:e.name||t&&e.__name}function zE(e){return Be(e)&&"__vccOpts"in e}const V=(e,t)=>LT(e,t,wl);function _t(e,t,n){try{Pc(-1);const r=arguments.length;return r===2?Ze(t)&&!Pe(t)?Nn(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Nn(n)&&(n=[n]),ue(e,t,n))}finally{Pc(1)}}const $E="3.5.29",jE=rt;/**
* @vue/runtime-dom v3.5.29
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Th;const ym=typeof window<"u"&&window.trustedTypes;if(ym)try{Th=ym.createPolicy("vue",{createHTML:e=>e})}catch{}const R_=Th?e=>Th.createHTML(e):e=>e,VE="http://www.w3.org/2000/svg",UE="http://www.w3.org/1998/Math/MathML",pi=typeof document<"u"?document:null,bm=pi&&pi.createElement("template"),HE={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t==="svg"?pi.createElementNS(VE,e):t==="mathml"?pi.createElementNS(UE,e):n?pi.createElement(e,{is:n}):pi.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>pi.createTextNode(e),createComment:e=>pi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>pi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){const g=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===l||!(i=i.nextSibling)););else{bm.innerHTML=R_(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const o=bm.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[g?g.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$i="transition",Ps="animation",Ko=Symbol("_vtc"),D_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},L_=Wt({},e_,D_),WE=e=>(e.displayName="Transition",e.props=L_,e),vr=WE((e,{slots:t})=>_t(YT,F_(e),t)),Ca=(e,t=[])=>{Pe(e)?e.forEach(n=>n(...t)):e&&e(...t)},_m=e=>e?Pe(e)?e.some(t=>t.length>1):e.length>1:!1;function F_(e){const t={};for(const I in e)I in D_||(t[I]=e[I]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:l=`${n}-enter-from`,enterActiveClass:g=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=l,appearActiveClass:c=g,appearToClass:p=o,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:s=`${n}-leave-to`}=e,d=GE(i),v=d&&d[0],h=d&&d[1],{onBeforeEnter:m,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:S,onBeforeAppear:x=m,onAppear:T=y,onAppearCancelled:E=b}=t,k=(I,U,A,ee)=>{I._enterCancelled=ee,Ui(I,U?p:o),Ui(I,U?c:g),A&&A()},D=(I,U)=>{I._isLeaving=!1,Ui(I,u),Ui(I,s),Ui(I,f),U&&U()},W=I=>(U,A)=>{const ee=I?T:y,de=()=>k(U,I,A);Ca(ee,[U,de]),wm(()=>{Ui(U,I?a:l),Kr(U,I?p:o),_m(ee)||Sm(U,r,v,de)})};return Wt(t,{onBeforeEnter(I){Ca(m,[I]),Kr(I,l),Kr(I,g)},onBeforeAppear(I){Ca(x,[I]),Kr(I,a),Kr(I,c)},onEnter:W(!1),onAppear:W(!0),onLeave(I,U){I._isLeaving=!0;const A=()=>D(I,U);Kr(I,u),I._enterCancelled?(Kr(I,f),Eh(I)):(Eh(I),Kr(I,f)),wm(()=>{!I._isLeaving||(Ui(I,u),Kr(I,s),_m(_)||Sm(I,r,h,A))}),Ca(_,[I,A])},onEnterCancelled(I){k(I,!1,void 0,!0),Ca(b,[I])},onAppearCancelled(I){k(I,!0,void 0,!0),Ca(E,[I])},onLeaveCancelled(I){D(I),Ca(S,[I])}})}function GE(e){if(e==null)return null;if(Ze(e))return[hd(e.enter),hd(e.leave)];{const t=hd(e);return[t,t]}}function hd(e){return nT(e)}function Kr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ko]||(e[Ko]=new Set)).add(t)}function Ui(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ko];n&&(n.delete(t),n.size||(e[Ko]=void 0))}function wm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let KE=0;function Sm(e,t,n,r){const i=e._endId=++KE,l=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(l,n);const{type:g,timeout:o,propCount:a}=B_(e,t);if(!g)return r();const c=g+"end";let p=0;const u=()=>{e.removeEventListener(c,f),l()},f=s=>{s.target===e&&++p>=a&&u()};setTimeout(()=>{p<a&&u()},o+1),e.addEventListener(c,f)}function B_(e,t){const n=window.getComputedStyle(e),r=d=>(n[d]||"").split(", "),i=r(`${$i}Delay`),l=r(`${$i}Duration`),g=Cm(i,l),o=r(`${Ps}Delay`),a=r(`${Ps}Duration`),c=Cm(o,a);let p=null,u=0,f=0;t===$i?g>0&&(p=$i,u=g,f=l.length):t===Ps?c>0&&(p=Ps,u=c,f=a.length):(u=Math.max(g,c),p=u>0?g>c?$i:Ps:null,f=p?p===$i?l.length:a.length:0);const s=p===$i&&/\b(?:transform|all)(?:,|$)/.test(r(`${$i}Property`).toString());return{type:p,timeout:u,propCount:f,hasTransform:s}}function Cm(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>xm(n)+xm(e[r])))}function xm(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Eh(e){return(e?e.ownerDocument:document).body.offsetHeight}function YE(e,t,n){const r=e[Ko];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Mc=Symbol("_vod"),N_=Symbol("_vsh"),Yt={name:"show",beforeMount(e,{value:t},{transition:n}){e[Mc]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Is(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Is(e,!0),r.enter(e)):r.leave(e,()=>{Is(e,!1)}):Is(e,t))},beforeUnmount(e,{value:t}){Is(e,t)}};function Is(e,t){e.style.display=t?e[Mc]:"none",e[N_]=!t}const z_=Symbol("");function XE(e){const t=it();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(l=>Rc(l,i))},r=()=>{const i=e(t.proxy);t.ce?Rc(t.ce,i):kh(t.subTree,i),n(i)};av(()=>{W1(r)}),et(()=>{ke(r,rt,{flush:"post"});const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),os(()=>i.disconnect())})}function kh(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{kh(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Rc(e.el,t);else if(e.type===Ve)e.children.forEach(n=>kh(n,t));else if(e.type===sc){let{el:n,anchor:r}=e;for(;n&&(Rc(n,t),n!==r);)n=n.nextSibling}}function Rc(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const i in t){const l=cT(t[i]);n.setProperty(`--${i}`,l),r+=`--${i}: ${l};`}n[z_]=r}}const qE=/(?:^|;)\s*display\s*:/;function ZE(e,t,n){const r=e.style,i=je(n);let l=!1;if(n&&!i){if(t)if(je(t))for(const g of t.split(";")){const o=g.slice(0,g.indexOf(":")).trim();n[o]==null&&cc(r,o,"")}else for(const g in t)n[g]==null&&cc(r,g,"");for(const g in n)g==="display"&&(l=!0),cc(r,g,n[g])}else if(i){if(t!==n){const g=r[z_];g&&(n+=";"+g),r.cssText=n,l=qE.test(n)}}else t&&e.removeAttribute("style");Mc in e&&(e[Mc]=l?r.display:"",e[N_]&&(r.display="none"))}const Tm=/\s*!important$/;function cc(e,t,n){if(Pe(n))n.forEach(r=>cc(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=JE(e,t);Tm.test(n)?e.setProperty(ga(r),n.replace(Tm,""),"important"):e[r]=n}}const Em=["Webkit","Moz","ms"],pd={};function JE(e,t){const n=pd[t];if(n)return n;let r=ur(t);if(r!=="filter"&&r in e)return pd[t]=r;r=Jl(r);for(let i=0;i<Em.length;i++){const l=Em[i]+r;if(l in e)return pd[t]=l}return t}const km="http://www.w3.org/1999/xlink";function Om(e,t,n,r,i,l=lT(t)){r&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(km,t.slice(6,t.length)):e.setAttributeNS(km,t,n):n==null||l&&!S1(n)?e.removeAttribute(t):e.setAttribute(t,l?"":Rr(n)?String(n):n)}function Am(e,t,n,r,i){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?R_(n):n);return}const l=e.tagName;if(t==="value"&&l!=="PROGRESS"&&!l.includes("-")){const o=l==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(o!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let g=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=S1(n):n==null&&o==="string"?(n="",g=!0):o==="number"&&(n=0,g=!0)}try{e[t]=n}catch{}g&&e.removeAttribute(i||t)}function $_(e,t,n,r){e.addEventListener(t,n,r)}function QE(e,t,n,r){e.removeEventListener(t,n,r)}const Pm=Symbol("_vei");function ek(e,t,n,r,i=null){const l=e[Pm]||(e[Pm]={}),g=l[t];if(r&&g)g.value=r;else{const[o,a]=tk(t);if(r){const c=l[t]=ik(r,i);$_(e,o,c,a)}else g&&(QE(e,o,g,a),l[t]=void 0)}}const Im=/(?:Once|Passive|Capture)$/;function tk(e){let t;if(Im.test(e)){t={};let r;for(;r=e.match(Im);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):ga(e.slice(2)),t]}let vd=0;const nk=Promise.resolve(),rk=()=>vd||(nk.then(()=>vd=0),vd=Date.now());function ik(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Fr(ak(r,n.value),t,5,[r])};return n.value=e,n.attached=rk(),n}function ak(e,t){if(Pe(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const Mm=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,ok=(e,t,n,r,i,l)=>{const g=i==="svg";t==="class"?YE(e,r,g):t==="style"?ZE(e,n,r):cf(t)?Yp(t)||ek(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):sk(e,t,r,g))?(Am(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Om(e,t,r,g,l,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!je(r))?Am(e,ur(t),r,l,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Om(e,t,r,g))};function sk(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Mm(t)&&Be(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return Mm(t)&&je(n)?!1:t in e}const j_=new WeakMap,V_=new WeakMap,Dc=Symbol("_moveCb"),Rm=Symbol("_enterCb"),lk=e=>(delete e.props.mode,e),uk=lk({name:"TransitionGroup",props:Wt({},L_,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=it(),r=Q1();let i,l;return as(()=>{if(!i.length)return;const g=e.moveClass||`${e.name||"v"}-move`;if(!hk(i[0].el,n.vnode.el,g)){i=[];return}i.forEach(ck),i.forEach(fk);const o=i.filter(dk);Eh(n.vnode.el),o.forEach(a=>{const c=a.el,p=c.style;Kr(c,g),p.transform=p.webkitTransform=p.transitionDuration="";const u=c[Dc]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",u),c[Dc]=null,Ui(c,g))};c.addEventListener("transitionend",u)}),i=[]}),()=>{const g=ft(e),o=F_(g);let a=g.tag||Ve;if(i=[],l)for(let c=0;c<l.length;c++){const p=l[c];p.el&&p.el instanceof Element&&(i.push(p),Ka(p,yl(p,o,r,n)),j_.set(p,H_(p.el)))}l=t.default?iv(t.default()):[];for(let c=0;c<l.length;c++){const p=l[c];p.key!=null&&Ka(p,yl(p,o,r,n))}return ue(a,null,l)}}}),U_=uk;function ck(e){const t=e.el;t[Dc]&&t[Dc](),t[Rm]&&t[Rm]()}function fk(e){V_.set(e,H_(e.el))}function dk(e){const t=j_.get(e),n=V_.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const l=e.el,g=l.style,o=l.getBoundingClientRect();let a=1,c=1;return l.offsetWidth&&(a=o.width/l.offsetWidth),l.offsetHeight&&(c=o.height/l.offsetHeight),(!Number.isFinite(a)||a===0)&&(a=1),(!Number.isFinite(c)||c===0)&&(c=1),Math.abs(a-1)<.01&&(a=1),Math.abs(c-1)<.01&&(c=1),g.transform=g.webkitTransform=`translate(${r/a}px,${i/c}px)`,g.transitionDuration="0s",e}}function H_(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function hk(e,t,n){const r=e.cloneNode(),i=e[Ko];i&&i.forEach(o=>{o.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(o=>o&&r.classList.add(o)),r.style.display="none";const l=t.nodeType===1?t:t.parentNode;l.appendChild(r);const{hasTransform:g}=B_(r);return l.removeChild(r),g}const Dm=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Pe(t)?n=>ic(t,n):t},gd=Symbol("_assign"),W_={created(e,{value:t},n){e.checked=pl(t,n.props.value),e[gd]=Dm(n),$_(e,"change",()=>{e[gd](pk(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[gd]=Dm(r),t!==n&&(e.checked=pl(t,r.props.value))}};function pk(e){return"_value"in e?e._value:e.value}const vk=["ctrl","shift","alt","meta"],gk={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>vk.some(n=>e[`${n}Key`]&&!t.includes(n))},Qe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=(i,...l)=>{for(let g=0;g<t.length;g++){const o=gk[t[g]];if(o&&o(i,t))return}return e(i,...l)})},mk={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},nr=(e,t)=>{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=i=>{if(!("key"in i))return;const l=ga(i.key);if(t.some(g=>g===l||mk[g]===l))return e(i)})},yk=Wt({patchProp:ok},HE);let Lm;function G_(){return Lm||(Lm=TE(yk))}const Lc=(...e)=>{G_().render(...e)},bk=(...e)=>{const t=G_().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=wk(r);if(!i)return;const l=t._component;!Be(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const g=n(i,!1,_k(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),g},t};function _k(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wk(e){return je(e)?document.querySelector(e):e}var Sk=!1;/*!
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let K_;const xf=e=>K_=e,Y_=Symbol();function Oh(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Zs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Zs||(Zs={}));function Ck(){const e=qp(!0),t=e.run(()=>re({}));let n=[],r=[];const i=Ai({install(l){xf(i),i._a=l,l.provide(Y_,i),l.config.globalProperties.$pinia=i,r.forEach(g=>n.push(g)),r=[]},use(l){return!this._a&&!Sk?r.push(l):n.push(l),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const X_=()=>{};function Fm(e,t,n,r=X_){e.push(t);const i=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),r())};return!n&&hf()&&pf(i),i}function yo(e,...t){e.slice().forEach(n=>{n(...t)})}const xk=e=>e(),Bm=Symbol(),md=Symbol();function Ah(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];Oh(i)&&Oh(r)&&e.hasOwnProperty(n)&&!yt(r)&&!xi(r)?e[n]=Ah(i,r):e[n]=r}return e}const Tk=Symbol();function Ek(e){return!Oh(e)||!e.hasOwnProperty(Tk)}const{assign:Hi}=Object;function kk(e){return!!(yt(e)&&e.effect)}function Ok(e,t,n,r){const{state:i,actions:l,getters:g}=t,o=n.state.value[e];let a;function c(){o||(n.state.value[e]=i?i():{});const p=Lr(n.state.value[e]);return Hi(p,l,Object.keys(g||{}).reduce((u,f)=>(u[f]=Ai(V(()=>{xf(n);const s=n._s.get(e);return g[f].call(s,s)})),u),{}))}return a=q_(e,c,t,n,r,!0),a}function q_(e,t,n={},r,i,l){let g;const o=Hi({actions:{}},n),a={deep:!0};let c,p,u=[],f=[],s;const d=r.state.value[e];!l&&!d&&(r.state.value[e]={}),re({});let v;function h(E){let k;c=p=!1,typeof E=="function"?(E(r.state.value[e]),k={type:Zs.patchFunction,storeId:e,events:s}):(Ah(r.state.value[e],E),k={type:Zs.patchObject,payload:E,storeId:e,events:s});const D=v=Symbol();We().then(()=>{v===D&&(c=!0)}),p=!0,yo(u,k,r.state.value[e])}const m=l?function(){const{state:k}=n,D=k?k():{};this.$patch(W=>{Hi(W,D)})}:X_;function y(){g.stop(),u=[],f=[],r._s.delete(e)}const b=(E,k="")=>{if(Bm in E)return E[md]=k,E;const D=function(){xf(r);const W=Array.from(arguments),I=[],U=[];function A(z){I.push(z)}function ee(z){U.push(z)}yo(f,{args:W,name:D[md],store:S,after:A,onError:ee});let de;try{de=E.apply(this&&this.$id===e?this:S,W)}catch(z){throw yo(U,z),z}return de instanceof Promise?de.then(z=>(yo(I,z),z)).catch(z=>(yo(U,z),Promise.reject(z))):(yo(I,de),de)};return D[Bm]=!0,D[md]=k,D},_={_p:r,$id:e,$onAction:Fm.bind(null,f),$patch:h,$reset:m,$subscribe(E,k={}){const D=Fm(u,E,k.detached,()=>W()),W=g.run(()=>ke(()=>r.state.value[e],I=>{(k.flush==="sync"?p:c)&&E({storeId:e,type:Zs.direct,events:s},I)},Hi({},a,k)));return D},$dispose:y},S=mt(_);r._s.set(e,S);const T=(r._a&&r._a.runWithContext||xk)(()=>r._e.run(()=>(g=qp()).run(()=>t({action:b}))));for(const E in T){const k=T[E];if(yt(k)&&!kk(k)||xi(k))l||(d&&Ek(k)&&(yt(k)?k.value=d[E]:Ah(k,d[E])),r.state.value[e][E]=k);else if(typeof k=="function"){const D=b(k,E);T[E]=D,o.actions[E]=k}}return Hi(S,T),Hi(ft(S),T),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:E=>{h(k=>{Hi(k,E)})}}),r._p.forEach(E=>{Hi(S,g.run(()=>E({store:S,app:r._a,pinia:r,options:o})))}),d&&l&&n.hydrate&&n.hydrate(S.$state,d),c=!0,p=!0,S}/*! #__NO_SIDE_EFFECTS__ */function ls(e,t,n){let r,i;const l=typeof t=="function";typeof e=="string"?(r=e,i=l?n:t):(i=e,r=e.id);function g(o,a){const c=$T();return o=o||(c?Ue(Y_,null):null),o&&xf(o),o=K_,o._s.has(r)||(l?q_(r,t,i,o):Ok(r,i,o)),o._s.get(r)}return g.$id=r,g}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Oo=typeof document<"u";function Z_(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ak(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Z_(e.default)}const St=Object.assign;function yd(e,t){const n={};for(const r in t){const i=t[r];n[r]=Br(i)?i.map(e):e(i)}return n}const Js=()=>{},Br=Array.isArray;function Nm(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const J_=/#/g,Pk=/&/g,Ik=/\//g,Mk=/=/g,Rk=/\?/g,Q_=/\+/g,Dk=/%5B/g,Lk=/%5D/g,ew=/%5E/g,Fk=/%60/g,tw=/%7B/g,Bk=/%7C/g,nw=/%7D/g,Nk=/%20/g;function hv(e){return e==null?"":encodeURI(""+e).replace(Bk,"|").replace(Dk,"[").replace(Lk,"]")}function zk(e){return hv(e).replace(tw,"{").replace(nw,"}").replace(ew,"^")}function Ph(e){return hv(e).replace(Q_,"%2B").replace(Nk,"+").replace(J_,"%23").replace(Pk,"%26").replace(Fk,"`").replace(tw,"{").replace(nw,"}").replace(ew,"^")}function $k(e){return Ph(e).replace(Mk,"%3D")}function jk(e){return hv(e).replace(J_,"%23").replace(Rk,"%3F")}function Vk(e){return jk(e).replace(Ik,"%2F")}function Sl(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Uk=/\/$/,Hk=e=>e.replace(Uk,"");function bd(e,t,n="/"){let r,i={},l="",g="";const o=t.indexOf("#");let a=t.indexOf("?");return a=o>=0&&a>o?-1:a,a>=0&&(r=t.slice(0,a),l=t.slice(a,o>0?o:t.length),i=e(l.slice(1))),o>=0&&(r=r||t.slice(0,o),g=t.slice(o,t.length)),r=Yk(r!=null?r:t,n),{fullPath:r+l+g,path:r,query:i,hash:Sl(g)}}function Wk(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function zm(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gk(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&Yo(t.matched[r],n.matched[i])&&rw(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yo(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function rw(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Kk(e[n],t[n]))return!1;return!0}function Kk(e,t){return Br(e)?$m(e,t):Br(t)?$m(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function $m(e,t){return Br(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Yk(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),i=r[r.length-1];(i===".."||i===".")&&r.push("");let l=n.length-1,g,o;for(g=0;g<r.length;g++)if(o=r[g],o!==".")if(o==="..")l>1&&l--;else break;return n.slice(0,l).join("/")+"/"+r.slice(g).join("/")}const ji={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ih=function(e){return e.pop="pop",e.push="push",e}({}),_d=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function Xk(e){if(!e)if(Oo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Hk(e)}const qk=/^[^#]+#/;function Zk(e,t){return e.replace(qk,"#")+t}function Jk(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const Tf=()=>({left:window.scrollX,top:window.scrollY});function Qk(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Jk(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function jm(e,t){return(history.state?history.state.position-t:-1)+e}const Mh=new Map;function eO(e,t){Mh.set(e,t)}function tO(e){const t=Mh.get(e);return Mh.delete(e),t}function nO(e){return typeof e=="string"||e&&typeof e=="object"}function iw(e){return typeof e=="string"||typeof e=="symbol"}let jt=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const aw=Symbol("");jt.MATCHER_NOT_FOUND+"",jt.NAVIGATION_GUARD_REDIRECT+"",jt.NAVIGATION_ABORTED+"",jt.NAVIGATION_CANCELLED+"",jt.NAVIGATION_DUPLICATED+"";function Xo(e,t){return St(new Error,{type:e,[aw]:!0},t)}function ci(e,t){return e instanceof Error&&aw in e&&(t==null||!!(e.type&t))}const rO=["params","query","hash"];function iO(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of rO)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function aO(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<n.length;++r){const i=n[r].replace(Q_," "),l=i.indexOf("="),g=Sl(l<0?i:i.slice(0,l)),o=l<0?null:Sl(i.slice(l+1));if(g in t){let a=t[g];Br(a)||(a=t[g]=[a]),a.push(o)}else t[g]=o}return t}function Vm(e){let t="";for(let n in e){const r=e[n];if(n=$k(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Br(r)?r.map(i=>i&&Ph(i)):[r&&Ph(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function oO(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Br(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const sO=Symbol(""),Um=Symbol(""),pv=Symbol(""),vv=Symbol(""),Rh=Symbol("");function Ms(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Zi(e,t,n,r,i,l=g=>g()){const g=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((o,a)=>{const c=f=>{f===!1?a(Xo(jt.NAVIGATION_ABORTED,{from:n,to:t})):f instanceof Error?a(f):nO(f)?a(Xo(jt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(g&&r.enterCallbacks[i]===g&&typeof f=="function"&&g.push(f),o())},p=l(()=>e.call(r&&r.instances[i],t,n,c));let u=Promise.resolve(p);e.length<3&&(u=u.then(c)),u.catch(f=>a(f))})}function wd(e,t,n,r,i=l=>l()){const l=[];for(const g of e)for(const o in g.components){let a=g.components[o];if(!(t!=="beforeRouteEnter"&&!g.instances[o]))if(Z_(a)){const c=(a.__vccOpts||a)[t];c&&l.push(Zi(c,n,r,g,o,i))}else{let c=a();l.push(()=>c.then(p=>{if(!p)throw new Error(`Couldn't resolve component "${o}" at "${g.path}"`);const u=Ak(p)?p.default:p;g.mods[o]=p,g.components[o]=u;const f=(u.__vccOpts||u)[t];return f&&Zi(f,n,r,g,o,i)()}))}}return l}function lO(e,t){const n=[],r=[],i=[],l=Math.max(t.matched.length,e.matched.length);for(let g=0;g<l;g++){const o=t.matched[g];o&&(e.matched.find(c=>Yo(c,o))?r.push(o):n.push(o));const a=e.matched[g];a&&(t.matched.find(c=>Yo(c,a))||i.push(a))}return[n,r,i]}/*!
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let uO=()=>location.protocol+"//"+location.host;function ow(e,t){const{pathname:n,search:r,hash:i}=t,l=e.indexOf("#");if(l>-1){let g=i.includes(e.slice(l))?e.slice(l).length:1,o=i.slice(g);return o[0]!=="/"&&(o="/"+o),zm(o,"")}return zm(n,e)+r+i}function cO(e,t,n,r){let i=[],l=[],g=null;const o=({state:f})=>{const s=ow(e,location),d=n.value,v=t.value;let h=0;if(f){if(n.value=s,t.value=f,g&&g===d){g=null;return}h=v?f.position-v.position:0}else r(s);i.forEach(m=>{m(n.value,d,{delta:h,type:Ih.pop,direction:h?h>0?_d.forward:_d.back:_d.unknown})})};function a(){g=n.value}function c(f){i.push(f);const s=()=>{const d=i.indexOf(f);d>-1&&i.splice(d,1)};return l.push(s),s}function p(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(St({},f.state,{scroll:Tf()}),"")}}function u(){for(const f of l)f();l=[],window.removeEventListener("popstate",o),window.removeEventListener("pagehide",p),document.removeEventListener("visibilitychange",p)}return window.addEventListener("popstate",o),window.addEventListener("pagehide",p),document.addEventListener("visibilitychange",p),{pauseListeners:a,listen:c,destroy:u}}function Hm(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Tf():null}}function fO(e){const{history:t,location:n}=window,r={value:ow(e,n)},i={value:t.state};i.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(a,c,p){const u=e.indexOf("#"),f=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+a:uO()+e+a;try{t[p?"replaceState":"pushState"](c,"",f),i.value=c}catch(s){console.error(s),n[p?"replace":"assign"](f)}}function g(a,c){l(a,St({},t.state,Hm(i.value.back,a,i.value.forward,!0),c,{position:i.value.position}),!0),r.value=a}function o(a,c){const p=St({},i.value,t.state,{forward:a,scroll:Tf()});l(p.current,p,!0),l(a,St({},Hm(r.value,a,null),{position:p.position+1},c),!1),r.value=a}return{location:r,state:i,push:o,replace:g}}function dO(e){e=Xk(e);const t=fO(e),n=cO(e,t.state,t.location,t.replace);function r(l,g=!0){g||n.pauseListeners(),history.go(l)}const i=St({location:"",base:e,go:r,createHref:Zk.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}let Pa=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var qt=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(qt||{});const hO={type:Pa.Static,value:""},pO=/[a-zA-Z0-9_]/;function vO(e){if(!e)return[[]];if(e==="/")return[[hO]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(s){throw new Error(`ERR (${n})/"${c}": ${s}`)}let n=qt.Static,r=n;const i=[];let l;function g(){l&&i.push(l),l=[]}let o=0,a,c="",p="";function u(){!c||(n===qt.Static?l.push({type:Pa.Static,value:c}):n===qt.Param||n===qt.ParamRegExp||n===qt.ParamRegExpEnd?(l.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),l.push({type:Pa.Param,value:c,regexp:p,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=a}for(;o<e.length;){if(a=e[o++],a==="\\"&&n!==qt.ParamRegExp){r=n,n=qt.EscapeNext;continue}switch(n){case qt.Static:a==="/"?(c&&u(),g()):a===":"?(u(),n=qt.Param):f();break;case qt.EscapeNext:f(),n=r;break;case qt.Param:a==="("?n=qt.ParamRegExp:pO.test(a)?f():(u(),n=qt.Static,a!=="*"&&a!=="?"&&a!=="+"&&o--);break;case qt.ParamRegExp:a===")"?p[p.length-1]=="\\"?p=p.slice(0,-1)+a:n=qt.ParamRegExpEnd:p+=a;break;case qt.ParamRegExpEnd:u(),n=qt.Static,a!=="*"&&a!=="?"&&a!=="+"&&o--,p="";break;default:t("Unknown state");break}}return n===qt.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),u(),g(),i}const Wm="[^/]+?",gO={sensitive:!1,strict:!1,start:!0,end:!0};var Rn=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Rn||{});const mO=/[.+*?^${}()[\]/\\]/g;function yO(e,t){const n=St({},gO,t),r=[];let i=n.start?"^":"";const l=[];for(const c of e){const p=c.length?[]:[Rn.Root];n.strict&&!c.length&&(i+="/");for(let u=0;u<c.length;u++){const f=c[u];let s=Rn.Segment+(n.sensitive?Rn.BonusCaseSensitive:0);if(f.type===Pa.Static)u||(i+="/"),i+=f.value.replace(mO,"\\$&"),s+=Rn.Static;else if(f.type===Pa.Param){const{value:d,repeatable:v,optional:h,regexp:m}=f;l.push({name:d,repeatable:v,optional:h});const y=m||Wm;if(y!==Wm){s+=Rn.BonusCustomRegExp;try{`${y}`}catch(_){throw new Error(`Invalid custom RegExp for param "${d}" (${y}): `+_.message)}}let b=v?`((?:${y})(?:/(?:${y}))*)`:`(${y})`;u||(b=h&&c.length<2?`(?:/${b})`:"/"+b),h&&(b+="?"),i+=b,s+=Rn.Dynamic,h&&(s+=Rn.BonusOptional),v&&(s+=Rn.BonusRepeatable),y===".*"&&(s+=Rn.BonusWildcard)}p.push(s)}r.push(p)}if(n.strict&&n.end){const c=r.length-1;r[c][r[c].length-1]+=Rn.BonusStrict}n.strict||(i+="/?"),n.end?i+="$":n.strict&&!i.endsWith("/")&&(i+="(?:/|$)");const g=new RegExp(i,n.sensitive?"":"i");function o(c){const p=c.match(g),u={};if(!p)return null;for(let f=1;f<p.length;f++){const s=p[f]||"",d=l[f-1];u[d.name]=s&&d.repeatable?s.split("/"):s}return u}function a(c){let p="",u=!1;for(const f of e){(!u||!p.endsWith("/"))&&(p+="/"),u=!1;for(const s of f)if(s.type===Pa.Static)p+=s.value;else if(s.type===Pa.Param){const{value:d,repeatable:v,optional:h}=s,m=d in c?c[d]:"";if(Br(m)&&!v)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const y=Br(m)?m.join("/"):m;if(!y)if(h)f.length<2&&(p.endsWith("/")?p=p.slice(0,-1):u=!0);else throw new Error(`Missing required param "${d}"`);p+=y}}return p||"/"}return{re:g,score:r,keys:l,parse:o,stringify:a}}function bO(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===Rn.Static+Rn.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Rn.Static+Rn.Segment?1:-1:0}function sw(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const l=bO(r[n],i[n]);if(l)return l;n++}if(Math.abs(i.length-r.length)===1){if(Gm(r))return 1;if(Gm(i))return-1}return i.length-r.length}function Gm(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const _O={strict:!1,end:!0,sensitive:!1};function wO(e,t,n){const r=yO(vO(e.path),n),i=St(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function SO(e,t){const n=[],r=new Map;t=Nm(_O,t);function i(u){return r.get(u)}function l(u,f,s){const d=!s,v=Ym(u);v.aliasOf=s&&s.record;const h=Nm(t,u),m=[v];if("alias"in u){const _=typeof u.alias=="string"?[u.alias]:u.alias;for(const S of _)m.push(Ym(St({},v,{components:s?s.record.components:v.components,path:S,aliasOf:s?s.record:v})))}let y,b;for(const _ of m){const{path:S}=_;if(f&&S[0]!=="/"){const x=f.record.path,T=x[x.length-1]==="/"?"":"/";_.path=f.record.path+(S&&T+S)}if(y=wO(_,f,h),s?s.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),d&&u.name&&!Xm(y)&&g(u.name)),lw(y)&&a(y),v.children){const x=v.children;for(let T=0;T<x.length;T++)l(x[T],y,s&&s.children[T])}s=s||y}return b?()=>{g(b)}:Js}function g(u){if(iw(u)){const f=r.get(u);f&&(r.delete(u),n.splice(n.indexOf(f),1),f.children.forEach(g),f.alias.forEach(g))}else{const f=n.indexOf(u);f>-1&&(n.splice(f,1),u.record.name&&r.delete(u.record.name),u.children.forEach(g),u.alias.forEach(g))}}function o(){return n}function a(u){const f=TO(u,n);n.splice(f,0,u),u.record.name&&!Xm(u)&&r.set(u.record.name,u)}function c(u,f){let s,d={},v,h;if("name"in u&&u.name){if(s=r.get(u.name),!s)throw Xo(jt.MATCHER_NOT_FOUND,{location:u});h=s.record.name,d=St(Km(f.params,s.keys.filter(b=>!b.optional).concat(s.parent?s.parent.keys.filter(b=>b.optional):[]).map(b=>b.name)),u.params&&Km(u.params,s.keys.map(b=>b.name))),v=s.stringify(d)}else if(u.path!=null)v=u.path,s=n.find(b=>b.re.test(v)),s&&(d=s.parse(v),h=s.record.name);else{if(s=f.name?r.get(f.name):n.find(b=>b.re.test(f.path)),!s)throw Xo(jt.MATCHER_NOT_FOUND,{location:u,currentLocation:f});h=s.record.name,d=St({},f.params,u.params),v=s.stringify(d)}const m=[];let y=s;for(;y;)m.unshift(y.record),y=y.parent;return{name:h,path:v,params:d,matched:m,meta:xO(m)}}e.forEach(u=>l(u));function p(){n.length=0,r.clear()}return{addRoute:l,resolve:c,removeRoute:g,clearRoutes:p,getRoutes:o,getRecordMatcher:i}}function Km(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ym(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:CO(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function CO(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Xm(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function xO(e){return e.reduce((t,n)=>St(t,n.meta),{})}function TO(e,t){let n=0,r=t.length;for(;n!==r;){const l=n+r>>1;sw(e,t[l])<0?r=l:n=l+1}const i=EO(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function EO(e){let t=e;for(;t=t.parent;)if(lw(t)&&sw(e,t)===0)return t}function lw({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function qm(e){const t=Ue(pv),n=Ue(vv),r=V(()=>{const a=w(e.to);return t.resolve(a)}),i=V(()=>{const{matched:a}=r.value,{length:c}=a,p=a[c-1],u=n.matched;if(!p||!u.length)return-1;const f=u.findIndex(Yo.bind(null,p));if(f>-1)return f;const s=Zm(a[c-2]);return c>1&&Zm(p)===s&&u[u.length-1].path!==s?u.findIndex(Yo.bind(null,a[c-2])):f}),l=V(()=>i.value>-1&&IO(n.params,r.value.params)),g=V(()=>i.value>-1&&i.value===n.matched.length-1&&rw(n.params,r.value.params));function o(a={}){if(PO(a)){const c=t[w(e.replace)?"replace":"push"](w(e.to)).catch(Js);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:r,href:V(()=>r.value.href),isActive:l,isExactActive:g,navigate:o}}function kO(e){return e.length===1?e[0]:e}const OO=we({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:qm,setup(e,{slots:t}){const n=mt(qm(e)),{options:r}=Ue(pv),i=V(()=>({[Jm(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Jm(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&kO(t.default(n));return e.custom?l:_t("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},l)}}}),AO=OO;function PO(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function IO(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Br(i)||i.length!==r.length||r.some((l,g)=>l.valueOf()!==i[g].valueOf()))return!1}return!0}function Zm(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Jm=(e,t,n)=>e!=null?e:t!=null?t:n,MO=we({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Ue(Rh),i=V(()=>e.route||r.value),l=Ue(Um,0),g=V(()=>{let c=w(l);const{matched:p}=i.value;let u;for(;(u=p[c])&&!u.components;)c++;return c}),o=V(()=>i.value.matched[g.value]);wt(Um,V(()=>g.value+1)),wt(sO,o),wt(Rh,i);const a=re();return ke(()=>[a.value,o.value,e.name],([c,p,u],[f,s,d])=>{p&&(p.instances[u]=c,s&&s!==p&&c&&c===f&&(p.leaveGuards.size||(p.leaveGuards=s.leaveGuards),p.updateGuards.size||(p.updateGuards=s.updateGuards))),c&&p&&(!s||!Yo(p,s)||!f)&&(p.enterCallbacks[u]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=i.value,p=e.name,u=o.value,f=u&&u.components[p];if(!f)return Qm(n.default,{Component:f,route:c});const s=u.props[p],d=s?s===!0?c.params:typeof s=="function"?s(c):s:null,h=_t(f,St({},d,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(u.instances[p]=null)},ref:a}));return Qm(n.default,{Component:h,route:c})||h}}});function Qm(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const uw=MO;function RO(e){const t=SO(e.routes,e),n=e.parseQuery||aO,r=e.stringifyQuery||Vm,i=e.history,l=Ms(),g=Ms(),o=Ms(),a=Ht(ji);let c=ji;Oo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const p=yd.bind(null,X=>""+X),u=yd.bind(null,Vk),f=yd.bind(null,Sl);function s(X,te){let Q,J;return iw(X)?(Q=t.getRecordMatcher(X),J=te):J=X,t.addRoute(J,Q)}function d(X){const te=t.getRecordMatcher(X);te&&t.removeRoute(te)}function v(){return t.getRoutes().map(X=>X.record)}function h(X){return!!t.getRecordMatcher(X)}function m(X,te){if(te=St({},te||a.value),typeof X=="string"){const C=bd(n,X,te.path),H=t.resolve({path:C.path},te),K=i.createHref(C.fullPath);return St(C,H,{params:f(H.params),hash:Sl(C.hash),redirectedFrom:void 0,href:K})}let Q;if(X.path!=null)Q=St({},X,{path:bd(n,X.path,te.path).path});else{const C=St({},X.params);for(const H in C)C[H]==null&&delete C[H];Q=St({},X,{params:u(C)}),te.params=u(te.params)}const J=t.resolve(Q,te),oe=X.hash||"";J.params=p(f(J.params));const pe=Wk(r,St({},X,{hash:zk(oe),path:J.path})),N=i.createHref(pe);return St({fullPath:pe,hash:oe,query:r===Vm?oO(X.query):X.query||{}},J,{redirectedFrom:void 0,href:N})}function y(X){return typeof X=="string"?bd(n,X,a.value.path):St({},X)}function b(X,te){if(c!==X)return Xo(jt.NAVIGATION_CANCELLED,{from:te,to:X})}function _(X){return T(X)}function S(X){return _(St(y(X),{replace:!0}))}function x(X,te){const Q=X.matched[X.matched.length-1];if(Q&&Q.redirect){const{redirect:J}=Q;let oe=typeof J=="function"?J(X,te):J;return typeof oe=="string"&&(oe=oe.includes("?")||oe.includes("#")?oe=y(oe):{path:oe},oe.params={}),St({query:X.query,hash:X.hash,params:oe.path!=null?{}:X.params},oe)}}function T(X,te){const Q=c=m(X),J=a.value,oe=X.state,pe=X.force,N=X.replace===!0,C=x(Q,J);if(C)return T(St(y(C),{state:typeof C=="object"?St({},oe,C.state):oe,force:pe,replace:N}),te||Q);const H=Q;H.redirectedFrom=te;let K;return!pe&&Gk(r,J,Q)&&(K=Xo(jt.NAVIGATION_DUPLICATED,{to:H,from:J}),R(J,J,!0,!1)),(K?Promise.resolve(K):D(H,J)).catch(L=>ci(L)?ci(L,jt.NAVIGATION_GUARD_REDIRECT)?L:F(L):q(L,H,J)).then(L=>{if(L){if(ci(L,jt.NAVIGATION_GUARD_REDIRECT))return T(St({replace:N},y(L.to),{state:typeof L.to=="object"?St({},oe,L.to.state):oe,force:pe}),te||H)}else L=I(H,J,!0,N,oe);return W(H,J,L),L})}function E(X,te){const Q=b(X,te);return Q?Promise.reject(Q):Promise.resolve()}function k(X){const te=$.values().next().value;return te&&typeof te.runWithContext=="function"?te.runWithContext(X):X()}function D(X,te){let Q;const[J,oe,pe]=lO(X,te);Q=wd(J.reverse(),"beforeRouteLeave",X,te);for(const C of J)C.leaveGuards.forEach(H=>{Q.push(Zi(H,X,te))});const N=E.bind(null,X,te);return Q.push(N),ne(Q).then(()=>{Q=[];for(const C of l.list())Q.push(Zi(C,X,te));return Q.push(N),ne(Q)}).then(()=>{Q=wd(oe,"beforeRouteUpdate",X,te);for(const C of oe)C.updateGuards.forEach(H=>{Q.push(Zi(H,X,te))});return Q.push(N),ne(Q)}).then(()=>{Q=[];for(const C of pe)if(C.beforeEnter)if(Br(C.beforeEnter))for(const H of C.beforeEnter)Q.push(Zi(H,X,te));else Q.push(Zi(C.beforeEnter,X,te));return Q.push(N),ne(Q)}).then(()=>(X.matched.forEach(C=>C.enterCallbacks={}),Q=wd(pe,"beforeRouteEnter",X,te,k),Q.push(N),ne(Q))).then(()=>{Q=[];for(const C of g.list())Q.push(Zi(C,X,te));return Q.push(N),ne(Q)}).catch(C=>ci(C,jt.NAVIGATION_CANCELLED)?C:Promise.reject(C))}function W(X,te,Q){o.list().forEach(J=>k(()=>J(X,te,Q)))}function I(X,te,Q,J,oe){const pe=b(X,te);if(pe)return pe;const N=te===ji,C=Oo?history.state:{};Q&&(J||N?i.replace(X.fullPath,St({scroll:N&&C&&C.scroll},oe)):i.push(X.fullPath,oe)),a.value=X,R(X,te,Q,N),F()}let U;function A(){U||(U=i.listen((X,te,Q)=>{if(!M.listening)return;const J=m(X),oe=x(J,M.currentRoute.value);if(oe){T(St(oe,{replace:!0,force:!0}),J).catch(Js);return}c=J;const pe=a.value;Oo&&eO(jm(pe.fullPath,Q.delta),Tf()),D(J,pe).catch(N=>ci(N,jt.NAVIGATION_ABORTED|jt.NAVIGATION_CANCELLED)?N:ci(N,jt.NAVIGATION_GUARD_REDIRECT)?(T(St(y(N.to),{force:!0}),J).then(C=>{ci(C,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&!Q.delta&&Q.type===Ih.pop&&i.go(-1,!1)}).catch(Js),Promise.reject()):(Q.delta&&i.go(-Q.delta,!1),q(N,J,pe))).then(N=>{N=N||I(J,pe,!1),N&&(Q.delta&&!ci(N,jt.NAVIGATION_CANCELLED)?i.go(-Q.delta,!1):Q.type===Ih.pop&&ci(N,jt.NAVIGATION_ABORTED|jt.NAVIGATION_DUPLICATED)&&i.go(-1,!1)),W(J,pe,N)}).catch(Js)}))}let ee=Ms(),de=Ms(),z;function q(X,te,Q){F(X);const J=de.list();return J.length?J.forEach(oe=>oe(X,te,Q)):console.error(X),Promise.reject(X)}function O(){return z&&a.value!==ji?Promise.resolve():new Promise((X,te)=>{ee.add([X,te])})}function F(X){return z||(z=!X,A(),ee.list().forEach(([te,Q])=>X?Q(X):te()),ee.reset()),X}function R(X,te,Q,J){const{scrollBehavior:oe}=e;if(!Oo||!oe)return Promise.resolve();const pe=!Q&&tO(jm(X.fullPath,0))||(J||!Q)&&history.state&&history.state.scroll||null;return We().then(()=>oe(X,te,pe)).then(N=>N&&Qk(N)).catch(N=>q(N,X,te))}const P=X=>i.go(X);let G;const $=new Set,M={currentRoute:a,listening:!0,addRoute:s,removeRoute:d,clearRoutes:t.clearRoutes,hasRoute:h,getRoutes:v,resolve:m,options:e,push:_,replace:S,go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:l.add,beforeResolve:g.add,afterEach:o.add,onError:de.add,isReady:O,install(X){X.component("RouterLink",AO),X.component("RouterView",uw),X.config.globalProperties.$router=M,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>w(a)}),Oo&&!G&&a.value===ji&&(G=!0,_(i.location).catch(J=>{}));const te={};for(const J in ji)Object.defineProperty(te,J,{get:()=>a.value[J],enumerable:!0});X.provide(pv,M),X.provide(vv,gf(te)),X.provide(Rh,a);const Q=X.unmount;$.add(X),X.unmount=function(){$.delete(X),$.size<1&&(c=ji,U&&U(),U=null,a.value=ji,G=!1,z=!1),Q()}}};function ne(X){return X.reduce((te,Q)=>te.then(()=>k(Q)),Promise.resolve())}return M}function DO(e){return Ue(vv)}/*! Element Plus Icons Vue v2.3.2 */var LO=we({name:"ArrowDown",__name:"arrow-down",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.59 30.59 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.59 30.59 0 0 0-42.752 0z"})]))}}),Ef=LO,FO=we({name:"ArrowLeft",__name:"arrow-left",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.59 30.59 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.59 30.59 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0"})]))}}),kf=FO,BO=we({name:"ArrowRight",__name:"arrow-right",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M340.864 149.312a30.59 30.59 0 0 0 0 42.752L652.736 512 340.864 831.872a30.59 30.59 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"})]))}}),us=BO,NO=we({name:"ArrowUp",__name:"arrow-up",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"})]))}}),zO=NO,$O=we({name:"Back",__name:"back",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64"}),ie("path",{fill:"currentColor",d:"m237.248 512 265.408 265.344a32 32 0 0 1-45.312 45.312l-288-288a32 32 0 0 1 0-45.312l288-288a32 32 0 1 1 45.312 45.312z"})]))}}),jO=$O,VO=we({name:"Check",__name:"check",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M406.656 706.944 195.84 496.256a32 32 0 1 0-45.248 45.248l256 256 512-512a32 32 0 0 0-45.248-45.248L406.592 706.944z"})]))}}),cw=VO,UO=we({name:"CircleCheckFilled",__name:"circle-check-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),fw=UO,HO=we({name:"CircleCheck",__name:"circle-check",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),ie("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),nu=HO,WO=we({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),dw=WO,GO=we({name:"CircleClose",__name:"circle-close",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),ie("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),ru=GO,KO=we({name:"CloseBold",__name:"close-bold",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496"})]))}}),YO=KO,XO=we({name:"Close",__name:"close",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),ii=XO,qO=we({name:"Comment",__name:"comment",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112m-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112M128 128v640h192v160l224-160h352V128z"})]))}}),ZO=qO,JO=we({name:"DArrowLeft",__name:"d-arrow-left",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672zm256 0a29.12 29.12 0 0 1 41.728 0 30.59 30.59 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.59 30.59 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672z"})]))}}),QO=JO,eA=we({name:"DArrowRight",__name:"d-arrow-right",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L764.736 512 452.864 192a30.59 30.59 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.59 30.59 0 0 1 0-42.752L508.736 512 196.864 192a30.59 30.59 0 0 1 0-42.688"})]))}}),tA=eA,nA=we({name:"Delete",__name:"delete",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M160 256H96a32 32 0 0 1 0-64h256V95.936a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V192h256a32 32 0 1 1 0 64h-64v672a32 32 0 0 1-32 32H192a32 32 0 0 1-32-32zm448-64v-64H416v64zM224 896h576V256H224zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32m192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32"})]))}}),Of=nA,rA=we({name:"Document",__name:"document",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640zm-26.496-64L640 154.496V320zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32m160 448h384v64H320zm0-192h160v64H320zm0 384h384v64H320z"})]))}}),iA=rA,aA=we({name:"Download",__name:"download",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64m384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64z"})]))}}),Cl=aA,oA=we({name:"EditPen",__name:"edit-pen",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"m199.04 672.64 193.984 112 224-387.968-193.92-112-224 388.032zm-23.872 60.16 32.896 148.288 144.896-45.696zM455.04 229.248l193.92 112 56.704-98.112-193.984-112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336zm384 254.272v-64h448v64z"})]))}}),sA=oA,lA=we({name:"Filter",__name:"filter",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M384 523.392V928a32 32 0 0 0 46.336 28.608l192-96A32 32 0 0 0 640 832V523.392l280.768-343.104a32 32 0 1 0-49.536-40.576l-288 352A32 32 0 0 0 576 512v300.224l-128 64V512a32 32 0 0 0-7.232-20.288L195.52 192H704a32 32 0 1 0 0-64H128a32 32 0 0 0-24.768 52.288z"})]))}}),uA=lA,cA=we({name:"FullScreen",__name:"full-screen",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64z"})]))}}),fA=cA,dA=we({name:"Hide",__name:"hide",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),ie("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),hA=dA,pA=we({name:"InfoFilled",__name:"info-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),Fc=pA,vA=we({name:"Link",__name:"link",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M715.648 625.152 670.4 579.904l90.496-90.56c75.008-74.944 85.12-186.368 22.656-248.896-62.528-62.464-173.952-52.352-248.96 22.656L444.16 353.6l-45.248-45.248 90.496-90.496c100.032-99.968 251.968-110.08 339.456-22.656 87.488 87.488 77.312 239.424-22.656 339.456l-90.496 90.496zm-90.496 90.496-90.496 90.496C434.624 906.112 282.688 916.224 195.2 828.8c-87.488-87.488-77.312-239.424 22.656-339.456l90.496-90.496 45.248 45.248-90.496 90.56c-75.008 74.944-85.12 186.368-22.656 248.896 62.528 62.464 173.952 52.352 248.96-22.656l90.496-90.496zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152z"})]))}}),gA=vA,mA=we({name:"Loading",__name:"loading",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),xl=mA,yA=we({name:"MagicStick",__name:"magic-stick",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 64h64v192h-64zm0 576h64v192h-64zM160 480v-64h192v64zm576 0v-64h192v64zM249.856 199.04l45.248-45.184L430.848 289.6 385.6 334.848 249.856 199.104zM657.152 606.4l45.248-45.248 135.744 135.744-45.248 45.248zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248z"})]))}}),bA=yA,_A=we({name:"Menu",__name:"menu",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M160 448a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V160.064a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32V416a32 32 0 0 1-32 32zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32zm448 0a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h255.936a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32z"})]))}}),wA=_A,SA=we({name:"Minus",__name:"minus",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"})]))}}),hw=SA,CA=we({name:"MoreFilled",__name:"more-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"})]))}}),e0=CA,xA=we({name:"More",__name:"more",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"})]))}}),TA=xA,EA=we({name:"Operation",__name:"operation",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M389.44 768a96.064 96.064 0 0 1 181.12 0H896v64H570.56a96.064 96.064 0 0 1-181.12 0H128v-64zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64z"})]))}}),kA=EA,OA=we({name:"PictureFilled",__name:"picture-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M96 896a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h832a32 32 0 0 1 32 32v704a32 32 0 0 1-32 32zm315.52-228.48-68.928-68.928a32 32 0 0 0-45.248 0L128 768.064h778.688l-242.112-290.56a32 32 0 0 0-49.216 0L458.752 665.408a32 32 0 0 1-47.232 2.112M256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384"})]))}}),Ou=OA,AA=we({name:"Plus",__name:"plus",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"})]))}}),gv=AA,PA=we({name:"RefreshLeft",__name:"refresh-left",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M289.088 296.704h92.992a32 32 0 0 1 0 64H232.96a32 32 0 0 1-32-32V179.712a32 32 0 0 1 64 0v50.56a384 384 0 0 1 643.84 282.88 384 384 0 0 1-383.936 384 384 384 0 0 1-384-384h64a320 320 0 1 0 640 0 320 320 0 0 0-555.712-216.448z"})]))}}),pw=PA,IA=we({name:"RefreshRight",__name:"refresh-right",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M784.512 230.272v-50.56a32 32 0 1 1 64 0v149.056a32 32 0 0 1-32 32H667.52a32 32 0 1 1 0-64h92.992A320 320 0 1 0 524.8 833.152a320 320 0 0 0 320-320h64a384 384 0 0 1-384 384 384 384 0 0 1-384-384 384 384 0 0 1 643.712-282.88"})]))}}),vw=IA,MA=we({name:"Refresh",__name:"refresh",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"})]))}}),t0=MA,RA=we({name:"Right",__name:"right",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"})]))}}),DA=RA,LA=we({name:"ScaleToOriginal",__name:"scale-to-original",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M813.176 180.706a60.235 60.235 0 0 1 60.236 60.235v481.883a60.235 60.235 0 0 1-60.236 60.235H210.824a60.235 60.235 0 0 1-60.236-60.235V240.94a60.235 60.235 0 0 1 60.236-60.235h602.352zm0-60.235H210.824A120.47 120.47 0 0 0 90.353 240.94v481.883a120.47 120.47 0 0 0 120.47 120.47h602.353a120.47 120.47 0 0 0 120.471-120.47V240.94a120.47 120.47 0 0 0-120.47-120.47zm-120.47 180.705a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118m-361.412 0a30.12 30.12 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.12 30.12 0 0 0-30.118-30.118M512 361.412a30.12 30.12 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.12 30.12 0 0 0 512 361.412M512 512a30.12 30.12 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.12 30.12 0 0 0 512 512"})]))}}),FA=LA,BA=we({name:"Sort",__name:"sort",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M384 96a32 32 0 0 1 64 0v786.752a32 32 0 0 1-54.592 22.656L95.936 608a32 32 0 0 1 0-45.312h.128a32 32 0 0 1 45.184 0L384 805.632zm192 45.248a32 32 0 0 1 54.592-22.592L928.064 416a32 32 0 0 1 0 45.312h-.128a32 32 0 0 1-45.184 0L640 218.496V928a32 32 0 1 1-64 0z"})]))}}),NA=BA,zA=we({name:"StarFilled",__name:"star-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M313.6 924.48a70.4 70.4 0 0 1-74.152-5.365 70.4 70.4 0 0 1-27.992-68.875l37.888-220.928L88.96 472.96a70.4 70.4 0 0 1 3.788-104.225A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 100.246-28.595 70.4 70.4 0 0 1 25.962 28.595l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),gw=zA,$A=we({name:"Star",__name:"star",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"m512 747.84 228.16 119.936a6.4 6.4 0 0 0 9.28-6.72l-43.52-254.08 184.512-179.904a6.4 6.4 0 0 0-3.52-10.88l-255.104-37.12L517.76 147.904a6.4 6.4 0 0 0-11.52 0L392.192 379.072l-255.104 37.12a6.4 6.4 0 0 0-3.52 10.88L318.08 606.976l-43.584 254.08a6.4 6.4 0 0 0 9.28 6.72zM313.6 924.48a70.4 70.4 0 0 1-102.144-74.24l37.888-220.928L88.96 472.96A70.4 70.4 0 0 1 128 352.896l221.76-32.256 99.2-200.96a70.4 70.4 0 0 1 126.208 0l99.2 200.96 221.824 32.256a70.4 70.4 0 0 1 39.04 120.064L774.72 629.376l37.888 220.928a70.4 70.4 0 0 1-102.144 74.24L512 820.096l-198.4 104.32z"})]))}}),jA=$A,VA=we({name:"SuccessFilled",__name:"success-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),mw=VA,UA=we({name:"Tools",__name:"tools",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M764.416 254.72a351.7 351.7 0 0 1 86.336 149.184H960v192.064H850.752a351.7 351.7 0 0 1-86.336 149.312l54.72 94.72-166.272 96-54.592-94.72a352.64 352.64 0 0 1-172.48 0L371.136 936l-166.272-96 54.72-94.72a351.7 351.7 0 0 1-86.336-149.312H64v-192h109.248a351.7 351.7 0 0 1 86.336-149.312L204.8 160l166.208-96h.192l54.656 94.592a352.64 352.64 0 0 1 172.48 0L652.8 64h.128L819.2 160l-54.72 94.72zM704 499.968a192 192 0 1 0-384 0 192 192 0 0 0 384 0"})]))}}),HA=UA,WA=we({name:"UploadFilled",__name:"upload-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M544 864V672h128L512 480 352 672h128v192H320v-1.6c-5.376.32-10.496 1.6-16 1.6A240 240 0 0 1 64 624c0-123.136 93.12-223.488 212.608-237.248A239.81 239.81 0 0 1 512 192a239.87 239.87 0 0 1 235.456 194.752c119.488 13.76 212.48 114.112 212.48 237.248a240 240 0 0 1-240 240c-5.376 0-10.56-1.28-16-1.6v1.6z"})]))}}),mv=WA,GA=we({name:"View",__name:"view",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),KA=GA,YA=we({name:"WarningFilled",__name:"warning-filled",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),yv=YA,XA=we({name:"ZoomIn",__name:"zoom-in",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704m-32-384v-96a32 32 0 0 1 64 0v96h96a32 32 0 0 1 0 64h-96v96a32 32 0 0 1-64 0v-96h-96a32 32 0 0 1 0-64z"})]))}}),yw=XA,qA=we({name:"ZoomOut",__name:"zoom-out",setup(e){return(t,n)=>(j(),ae("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[ie("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704M352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64"})]))}}),ZA=qA;const bw=Symbol();var JA=typeof global=="object"&&global&&global.Object===Object&&global;const _w=JA;var QA=typeof self=="object"&&self&&self.Object===Object&&self,e3=_w||QA||Function("return this")();const jr=e3;var t3=jr.Symbol;const gr=t3;var ww=Object.prototype,n3=ww.hasOwnProperty,r3=ww.toString,Rs=gr?gr.toStringTag:void 0;function i3(e){var t=n3.call(e,Rs),n=e[Rs];try{e[Rs]=void 0;var r=!0}catch{}var i=r3.call(e);return r&&(t?e[Rs]=n:delete e[Rs]),i}var a3=Object.prototype,o3=a3.toString;function s3(e){return o3.call(e)}var l3="[object Null]",u3="[object Undefined]",n0=gr?gr.toStringTag:void 0;function oo(e){return e==null?e===void 0?u3:l3:n0&&n0 in Object(e)?i3(e):s3(e)}function Ii(e){return e!=null&&typeof e=="object"}var c3="[object Symbol]";function Af(e){return typeof e=="symbol"||Ii(e)&&oo(e)==c3}function Sw(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var f3=Array.isArray;const mr=f3;var d3=1/0,r0=gr?gr.prototype:void 0,i0=r0?r0.toString:void 0;function Cw(e){if(typeof e=="string")return e;if(mr(e))return Sw(e,Cw)+"";if(Af(e))return i0?i0.call(e):"";var t=e+"";return t=="0"&&1/e==-d3?"-0":t}var h3=/\s/;function p3(e){for(var t=e.length;t--&&h3.test(e.charAt(t)););return t}var v3=/^\s+/;function g3(e){return e&&e.slice(0,p3(e)+1).replace(v3,"")}function yr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var a0=0/0,m3=/^[-+]0x[0-9a-f]+$/i,y3=/^0b[01]+$/i,b3=/^0o[0-7]+$/i,_3=parseInt;function zo(e){if(typeof e=="number")return e;if(Af(e))return a0;if(yr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=yr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=g3(e);var n=y3.test(e);return n||b3.test(e)?_3(e.slice(2),n?2:8):m3.test(e)?a0:+e}var o0=1/0,w3=17976931348623157e292;function S3(e){if(!e)return e===0?e:0;if(e=zo(e),e===o0||e===-o0){var t=e<0?-1:1;return t*w3}return e===e?e:0}function C3(e){var t=S3(e),n=t%1;return t===t?n?t-n:t:0}function xw(e){return e}var x3="[object AsyncFunction]",T3="[object Function]",E3="[object GeneratorFunction]",k3="[object Proxy]";function Tw(e){if(!yr(e))return!1;var t=oo(e);return t==T3||t==E3||t==x3||t==k3}var O3=jr["__core-js_shared__"];const Sd=O3;var s0=function(){var e=/[^.]+$/.exec(Sd&&Sd.keys&&Sd.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function A3(e){return!!s0&&s0 in e}var P3=Function.prototype,I3=P3.toString;function so(e){if(e!=null){try{return I3.call(e)}catch{}try{return e+""}catch{}}return""}var M3=/[\\^$.*+?()[\]{}|]/g,R3=/^\[object .+?Constructor\]$/,D3=Function.prototype,L3=Object.prototype,F3=D3.toString,B3=L3.hasOwnProperty,N3=RegExp("^"+F3.call(B3).replace(M3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function z3(e){if(!yr(e)||A3(e))return!1;var t=Tw(e)?N3:R3;return t.test(so(e))}function $3(e,t){return e==null?void 0:e[t]}function lo(e,t){var n=$3(e,t);return z3(n)?n:void 0}var j3=lo(jr,"WeakMap");const Dh=j3;var l0=Object.create,V3=function(){function e(){}return function(t){if(!yr(t))return{};if(l0)return l0(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const U3=V3;function H3(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function W3(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var G3=800,K3=16,Y3=Date.now;function X3(e){var t=0,n=0;return function(){var r=Y3(),i=K3-(r-n);if(n=r,i>0){if(++t>=G3)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function q3(e){return function(){return e}}var Z3=function(){try{var e=lo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Bc=Z3;var J3=Bc?function(e,t){return Bc(e,"toString",{configurable:!0,enumerable:!1,value:q3(t),writable:!0})}:xw;const Q3=J3;var eP=X3(Q3);const tP=eP;function nP(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function rP(e,t,n,r){for(var i=e.length,l=n+(r?1:-1);r?l--:++l<i;)if(t(e[l],l,e))return l;return-1}var iP=9007199254740991,aP=/^(?:0|[1-9]\d*)$/;function bv(e,t){var n=typeof e;return t=t==null?iP:t,!!t&&(n=="number"||n!="symbol"&&aP.test(e))&&e>-1&&e%1==0&&e<t}function Ew(e,t,n){t=="__proto__"&&Bc?Bc(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function _v(e,t){return e===t||e!==e&&t!==t}var oP=Object.prototype,sP=oP.hasOwnProperty;function wv(e,t,n){var r=e[t];(!(sP.call(e,t)&&_v(r,n))||n===void 0&&!(t in e))&&Ew(e,t,n)}function iu(e,t,n,r){var i=!n;n||(n={});for(var l=-1,g=t.length;++l<g;){var o=t[l],a=r?r(n[o],e[o],o,n,e):void 0;a===void 0&&(a=e[o]),i?Ew(n,o,a):wv(n,o,a)}return n}var u0=Math.max;function lP(e,t,n){return t=u0(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,l=u0(r.length-t,0),g=Array(l);++i<l;)g[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(g),H3(e,this,o)}}var uP=9007199254740991;function Sv(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uP}function kw(e){return e!=null&&Sv(e.length)&&!Tw(e)}var cP=Object.prototype;function Cv(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||cP;return e===n}function fP(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var dP="[object Arguments]";function c0(e){return Ii(e)&&oo(e)==dP}var Ow=Object.prototype,hP=Ow.hasOwnProperty,pP=Ow.propertyIsEnumerable,vP=c0(function(){return arguments}())?c0:function(e){return Ii(e)&&hP.call(e,"callee")&&!pP.call(e,"callee")};const xv=vP;function gP(){return!1}var Aw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,f0=Aw&&typeof module=="object"&&module&&!module.nodeType&&module,mP=f0&&f0.exports===Aw,d0=mP?jr.Buffer:void 0,yP=d0?d0.isBuffer:void 0,bP=yP||gP;const Nc=bP;var _P="[object Arguments]",wP="[object Array]",SP="[object Boolean]",CP="[object Date]",xP="[object Error]",TP="[object Function]",EP="[object Map]",kP="[object Number]",OP="[object Object]",AP="[object RegExp]",PP="[object Set]",IP="[object String]",MP="[object WeakMap]",RP="[object ArrayBuffer]",DP="[object DataView]",LP="[object Float32Array]",FP="[object Float64Array]",BP="[object Int8Array]",NP="[object Int16Array]",zP="[object Int32Array]",$P="[object Uint8Array]",jP="[object Uint8ClampedArray]",VP="[object Uint16Array]",UP="[object Uint32Array]",Pt={};Pt[LP]=Pt[FP]=Pt[BP]=Pt[NP]=Pt[zP]=Pt[$P]=Pt[jP]=Pt[VP]=Pt[UP]=!0;Pt[_P]=Pt[wP]=Pt[RP]=Pt[SP]=Pt[DP]=Pt[CP]=Pt[xP]=Pt[TP]=Pt[EP]=Pt[kP]=Pt[OP]=Pt[AP]=Pt[PP]=Pt[IP]=Pt[MP]=!1;function HP(e){return Ii(e)&&Sv(e.length)&&!!Pt[oo(e)]}function Tv(e){return function(t){return e(t)}}var Pw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Qs=Pw&&typeof module=="object"&&module&&!module.nodeType&&module,WP=Qs&&Qs.exports===Pw,Cd=WP&&_w.process,GP=function(){try{var e=Qs&&Qs.require&&Qs.require("util").types;return e||Cd&&Cd.binding&&Cd.binding("util")}catch{}}();const qo=GP;var h0=qo&&qo.isTypedArray,KP=h0?Tv(h0):HP;const Iw=KP;var YP=Object.prototype,XP=YP.hasOwnProperty;function Mw(e,t){var n=mr(e),r=!n&&xv(e),i=!n&&!r&&Nc(e),l=!n&&!r&&!i&&Iw(e),g=n||r||i||l,o=g?fP(e.length,String):[],a=o.length;for(var c in e)(t||XP.call(e,c))&&!(g&&(c=="length"||i&&(c=="offset"||c=="parent")||l&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||bv(c,a)))&&o.push(c);return o}function Rw(e,t){return function(n){return e(t(n))}}var qP=Rw(Object.keys,Object);const ZP=qP;var JP=Object.prototype,QP=JP.hasOwnProperty;function e4(e){if(!Cv(e))return ZP(e);var t=[];for(var n in Object(e))QP.call(e,n)&&n!="constructor"&&t.push(n);return t}function Pf(e){return kw(e)?Mw(e):e4(e)}function t4(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var n4=Object.prototype,r4=n4.hasOwnProperty;function i4(e){if(!yr(e))return t4(e);var t=Cv(e),n=[];for(var r in e)r=="constructor"&&(t||!r4.call(e,r))||n.push(r);return n}function Ev(e){return kw(e)?Mw(e,!0):i4(e)}var a4=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o4=/^\w*$/;function kv(e,t){if(mr(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||Af(e)?!0:o4.test(e)||!a4.test(e)||t!=null&&e in Object(t)}var s4=lo(Object,"create");const Tl=s4;function l4(){this.__data__=Tl?Tl(null):{},this.size=0}function u4(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var c4="__lodash_hash_undefined__",f4=Object.prototype,d4=f4.hasOwnProperty;function h4(e){var t=this.__data__;if(Tl){var n=t[e];return n===c4?void 0:n}return d4.call(t,e)?t[e]:void 0}var p4=Object.prototype,v4=p4.hasOwnProperty;function g4(e){var t=this.__data__;return Tl?t[e]!==void 0:v4.call(t,e)}var m4="__lodash_hash_undefined__";function y4(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Tl&&t===void 0?m4:t,this}function Ya(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ya.prototype.clear=l4;Ya.prototype.delete=u4;Ya.prototype.get=h4;Ya.prototype.has=g4;Ya.prototype.set=y4;function b4(){this.__data__=[],this.size=0}function If(e,t){for(var n=e.length;n--;)if(_v(e[n][0],t))return n;return-1}var _4=Array.prototype,w4=_4.splice;function S4(e){var t=this.__data__,n=If(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():w4.call(t,n,1),--this.size,!0}function C4(e){var t=this.__data__,n=If(t,e);return n<0?void 0:t[n][1]}function x4(e){return If(this.__data__,e)>-1}function T4(e,t){var n=this.__data__,r=If(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Fi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Fi.prototype.clear=b4;Fi.prototype.delete=S4;Fi.prototype.get=C4;Fi.prototype.has=x4;Fi.prototype.set=T4;var E4=lo(jr,"Map");const El=E4;function k4(){this.size=0,this.__data__={hash:new Ya,map:new(El||Fi),string:new Ya}}function O4(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Mf(e,t){var n=e.__data__;return O4(t)?n[typeof t=="string"?"string":"hash"]:n.map}function A4(e){var t=Mf(this,e).delete(e);return this.size-=t?1:0,t}function P4(e){return Mf(this,e).get(e)}function I4(e){return Mf(this,e).has(e)}function M4(e,t){var n=Mf(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Bi(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Bi.prototype.clear=k4;Bi.prototype.delete=A4;Bi.prototype.get=P4;Bi.prototype.has=I4;Bi.prototype.set=M4;var R4="Expected a function";function Ov(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(R4);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],l=n.cache;if(l.has(i))return l.get(i);var g=e.apply(this,r);return n.cache=l.set(i,g)||l,g};return n.cache=new(Ov.Cache||Bi),n}Ov.Cache=Bi;var D4=500;function L4(e){var t=Ov(e,function(r){return n.size===D4&&n.clear(),r}),n=t.cache;return t}var F4=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,B4=/\\(\\)?/g,N4=L4(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(F4,function(n,r,i,l){t.push(i?l.replace(B4,"$1"):r||n)}),t});const z4=N4;function $4(e){return e==null?"":Cw(e)}function cs(e,t){return mr(e)?e:kv(e,t)?[e]:z4($4(e))}var j4=1/0;function fs(e){if(typeof e=="string"||Af(e))return e;var t=e+"";return t=="0"&&1/e==-j4?"-0":t}function Rf(e,t){t=cs(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[fs(t[n++])];return n&&n==r?e:void 0}function rr(e,t,n){var r=e==null?void 0:Rf(e,t);return r===void 0?n:r}function Av(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var p0=gr?gr.isConcatSpreadable:void 0;function V4(e){return mr(e)||xv(e)||!!(p0&&e&&e[p0])}function Dw(e,t,n,r,i){var l=-1,g=e.length;for(n||(n=V4),i||(i=[]);++l<g;){var o=e[l];t>0&&n(o)?t>1?Dw(o,t-1,n,r,i):Av(i,o):r||(i[i.length]=o)}return i}function Lh(e){var t=e==null?0:e.length;return t?Dw(e,1):[]}function Lw(e){return tP(lP(e,void 0,Lh),e+"")}var U4=Rw(Object.getPrototypeOf,Object);const Pv=U4;var H4="[object Object]",W4=Function.prototype,G4=Object.prototype,Fw=W4.toString,K4=G4.hasOwnProperty,Y4=Fw.call(Object);function Bw(e){if(!Ii(e)||oo(e)!=H4)return!1;var t=Pv(e);if(t===null)return!0;var n=K4.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Fw.call(n)==Y4}function X4(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var l=Array(i);++r<i;)l[r]=e[r+t];return l}function Vn(){if(!arguments.length)return[];var e=arguments[0];return mr(e)?e:[e]}function q4(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function Iv(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=zo(n),n=n===n?n:0),t!==void 0&&(t=zo(t),t=t===t?t:0),q4(zo(e),t,n)}function Z4(){this.__data__=new Fi,this.size=0}function J4(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Q4(e){return this.__data__.get(e)}function eI(e){return this.__data__.has(e)}var tI=200;function nI(e,t){var n=this.__data__;if(n instanceof Fi){var r=n.__data__;if(!El||r.length<tI-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Bi(r)}return n.set(e,t),this.size=n.size,this}function ei(e){var t=this.__data__=new Fi(e);this.size=t.size}ei.prototype.clear=Z4;ei.prototype.delete=J4;ei.prototype.get=Q4;ei.prototype.has=eI;ei.prototype.set=nI;function rI(e,t){return e&&iu(t,Pf(t),e)}function iI(e,t){return e&&iu(t,Ev(t),e)}var Nw=typeof exports=="object"&&exports&&!exports.nodeType&&exports,v0=Nw&&typeof module=="object"&&module&&!module.nodeType&&module,aI=v0&&v0.exports===Nw,g0=aI?jr.Buffer:void 0,m0=g0?g0.allocUnsafe:void 0;function oI(e,t){if(t)return e.slice();var n=e.length,r=m0?m0(n):new e.constructor(n);return e.copy(r),r}function sI(e,t){for(var n=-1,r=e==null?0:e.length,i=0,l=[];++n<r;){var g=e[n];t(g,n,e)&&(l[i++]=g)}return l}function zw(){return[]}var lI=Object.prototype,uI=lI.propertyIsEnumerable,y0=Object.getOwnPropertySymbols,cI=y0?function(e){return e==null?[]:(e=Object(e),sI(y0(e),function(t){return uI.call(e,t)}))}:zw;const Mv=cI;function fI(e,t){return iu(e,Mv(e),t)}var dI=Object.getOwnPropertySymbols,hI=dI?function(e){for(var t=[];e;)Av(t,Mv(e)),e=Pv(e);return t}:zw;const $w=hI;function pI(e,t){return iu(e,$w(e),t)}function jw(e,t,n){var r=t(e);return mr(e)?r:Av(r,n(e))}function Fh(e){return jw(e,Pf,Mv)}function Vw(e){return jw(e,Ev,$w)}var vI=lo(jr,"DataView");const Bh=vI;var gI=lo(jr,"Promise");const Nh=gI;var mI=lo(jr,"Set");const zh=mI;var b0="[object Map]",yI="[object Object]",_0="[object Promise]",w0="[object Set]",S0="[object WeakMap]",C0="[object DataView]",bI=so(Bh),_I=so(El),wI=so(Nh),SI=so(zh),CI=so(Dh),Ea=oo;(Bh&&Ea(new Bh(new ArrayBuffer(1)))!=C0||El&&Ea(new El)!=b0||Nh&&Ea(Nh.resolve())!=_0||zh&&Ea(new zh)!=w0||Dh&&Ea(new Dh)!=S0)&&(Ea=function(e){var t=oo(e),n=t==yI?e.constructor:void 0,r=n?so(n):"";if(r)switch(r){case bI:return C0;case _I:return b0;case wI:return _0;case SI:return w0;case CI:return S0}return t});const kl=Ea;var xI=Object.prototype,TI=xI.hasOwnProperty;function EI(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&TI.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var kI=jr.Uint8Array;const zc=kI;function Rv(e){var t=new e.constructor(e.byteLength);return new zc(t).set(new zc(e)),t}function OI(e,t){var n=t?Rv(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var AI=/\w*$/;function PI(e){var t=new e.constructor(e.source,AI.exec(e));return t.lastIndex=e.lastIndex,t}var x0=gr?gr.prototype:void 0,T0=x0?x0.valueOf:void 0;function II(e){return T0?Object(T0.call(e)):{}}function MI(e,t){var n=t?Rv(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var RI="[object Boolean]",DI="[object Date]",LI="[object Map]",FI="[object Number]",BI="[object RegExp]",NI="[object Set]",zI="[object String]",$I="[object Symbol]",jI="[object ArrayBuffer]",VI="[object DataView]",UI="[object Float32Array]",HI="[object Float64Array]",WI="[object Int8Array]",GI="[object Int16Array]",KI="[object Int32Array]",YI="[object Uint8Array]",XI="[object Uint8ClampedArray]",qI="[object Uint16Array]",ZI="[object Uint32Array]";function JI(e,t,n){var r=e.constructor;switch(t){case jI:return Rv(e);case RI:case DI:return new r(+e);case VI:return OI(e,n);case UI:case HI:case WI:case GI:case KI:case YI:case XI:case qI:case ZI:return MI(e,n);case LI:return new r;case FI:case zI:return new r(e);case BI:return PI(e);case NI:return new r;case $I:return II(e)}}function QI(e){return typeof e.constructor=="function"&&!Cv(e)?U3(Pv(e)):{}}var e5="[object Map]";function t5(e){return Ii(e)&&kl(e)==e5}var E0=qo&&qo.isMap,n5=E0?Tv(E0):t5;const r5=n5;var i5="[object Set]";function a5(e){return Ii(e)&&kl(e)==i5}var k0=qo&&qo.isSet,o5=k0?Tv(k0):a5;const s5=o5;var l5=1,u5=2,c5=4,Uw="[object Arguments]",f5="[object Array]",d5="[object Boolean]",h5="[object Date]",p5="[object Error]",Hw="[object Function]",v5="[object GeneratorFunction]",g5="[object Map]",m5="[object Number]",Ww="[object Object]",y5="[object RegExp]",b5="[object Set]",_5="[object String]",w5="[object Symbol]",S5="[object WeakMap]",C5="[object ArrayBuffer]",x5="[object DataView]",T5="[object Float32Array]",E5="[object Float64Array]",k5="[object Int8Array]",O5="[object Int16Array]",A5="[object Int32Array]",P5="[object Uint8Array]",I5="[object Uint8ClampedArray]",M5="[object Uint16Array]",R5="[object Uint32Array]",Ot={};Ot[Uw]=Ot[f5]=Ot[C5]=Ot[x5]=Ot[d5]=Ot[h5]=Ot[T5]=Ot[E5]=Ot[k5]=Ot[O5]=Ot[A5]=Ot[g5]=Ot[m5]=Ot[Ww]=Ot[y5]=Ot[b5]=Ot[_5]=Ot[w5]=Ot[P5]=Ot[I5]=Ot[M5]=Ot[R5]=!0;Ot[p5]=Ot[Hw]=Ot[S5]=!1;function el(e,t,n,r,i,l){var g,o=t&l5,a=t&u5,c=t&c5;if(n&&(g=i?n(e,r,i,l):n(e)),g!==void 0)return g;if(!yr(e))return e;var p=mr(e);if(p){if(g=EI(e),!o)return W3(e,g)}else{var u=kl(e),f=u==Hw||u==v5;if(Nc(e))return oI(e,o);if(u==Ww||u==Uw||f&&!i){if(g=a||f?{}:QI(e),!o)return a?pI(e,iI(g,e)):fI(e,rI(g,e))}else{if(!Ot[u])return i?e:{};g=JI(e,u,o)}}l||(l=new ei);var s=l.get(e);if(s)return s;l.set(e,g),s5(e)?e.forEach(function(h){g.add(el(h,t,n,h,e,l))}):r5(e)&&e.forEach(function(h,m){g.set(m,el(h,t,n,m,e,l))});var d=c?a?Vw:Fh:a?Ev:Pf,v=p?void 0:d(e);return nP(v||e,function(h,m){v&&(m=h,h=e[m]),wv(g,m,el(h,t,n,m,e,l))}),g}var D5=1,L5=4;function ja(e){return el(e,D5|L5)}var F5="__lodash_hash_undefined__";function B5(e){return this.__data__.set(e,F5),this}function N5(e){return this.__data__.has(e)}function $c(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Bi;++t<n;)this.add(e[t])}$c.prototype.add=$c.prototype.push=B5;$c.prototype.has=N5;function z5(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function $5(e,t){return e.has(t)}var j5=1,V5=2;function Gw(e,t,n,r,i,l){var g=n&j5,o=e.length,a=t.length;if(o!=a&&!(g&&a>o))return!1;var c=l.get(e),p=l.get(t);if(c&&p)return c==t&&p==e;var u=-1,f=!0,s=n&V5?new $c:void 0;for(l.set(e,t),l.set(t,e);++u<o;){var d=e[u],v=t[u];if(r)var h=g?r(v,d,u,t,e,l):r(d,v,u,e,t,l);if(h!==void 0){if(h)continue;f=!1;break}if(s){if(!z5(t,function(m,y){if(!$5(s,y)&&(d===m||i(d,m,n,r,l)))return s.push(y)})){f=!1;break}}else if(!(d===v||i(d,v,n,r,l))){f=!1;break}}return l.delete(e),l.delete(t),f}function U5(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function H5(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var W5=1,G5=2,K5="[object Boolean]",Y5="[object Date]",X5="[object Error]",q5="[object Map]",Z5="[object Number]",J5="[object RegExp]",Q5="[object Set]",e6="[object String]",t6="[object Symbol]",n6="[object ArrayBuffer]",r6="[object DataView]",O0=gr?gr.prototype:void 0,xd=O0?O0.valueOf:void 0;function i6(e,t,n,r,i,l,g){switch(n){case r6:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case n6:return!(e.byteLength!=t.byteLength||!l(new zc(e),new zc(t)));case K5:case Y5:case Z5:return _v(+e,+t);case X5:return e.name==t.name&&e.message==t.message;case J5:case e6:return e==t+"";case q5:var o=U5;case Q5:var a=r&W5;if(o||(o=H5),e.size!=t.size&&!a)return!1;var c=g.get(e);if(c)return c==t;r|=G5,g.set(e,t);var p=Gw(o(e),o(t),r,i,l,g);return g.delete(e),p;case t6:if(xd)return xd.call(e)==xd.call(t)}return!1}var a6=1,o6=Object.prototype,s6=o6.hasOwnProperty;function l6(e,t,n,r,i,l){var g=n&a6,o=Fh(e),a=o.length,c=Fh(t),p=c.length;if(a!=p&&!g)return!1;for(var u=a;u--;){var f=o[u];if(!(g?f in t:s6.call(t,f)))return!1}var s=l.get(e),d=l.get(t);if(s&&d)return s==t&&d==e;var v=!0;l.set(e,t),l.set(t,e);for(var h=g;++u<a;){f=o[u];var m=e[f],y=t[f];if(r)var b=g?r(y,m,f,t,e,l):r(m,y,f,e,t,l);if(!(b===void 0?m===y||i(m,y,n,r,l):b)){v=!1;break}h||(h=f=="constructor")}if(v&&!h){var _=e.constructor,S=t.constructor;_!=S&&"constructor"in e&&"constructor"in t&&!(typeof _=="function"&&_ instanceof _&&typeof S=="function"&&S instanceof S)&&(v=!1)}return l.delete(e),l.delete(t),v}var u6=1,A0="[object Arguments]",P0="[object Array]",Au="[object Object]",c6=Object.prototype,I0=c6.hasOwnProperty;function f6(e,t,n,r,i,l){var g=mr(e),o=mr(t),a=g?P0:kl(e),c=o?P0:kl(t);a=a==A0?Au:a,c=c==A0?Au:c;var p=a==Au,u=c==Au,f=a==c;if(f&&Nc(e)){if(!Nc(t))return!1;g=!0,p=!1}if(f&&!p)return l||(l=new ei),g||Iw(e)?Gw(e,t,n,r,i,l):i6(e,t,a,n,r,i,l);if(!(n&u6)){var s=p&&I0.call(e,"__wrapped__"),d=u&&I0.call(t,"__wrapped__");if(s||d){var v=s?e.value():e,h=d?t.value():t;return l||(l=new ei),i(v,h,n,r,l)}}return f?(l||(l=new ei),l6(e,t,n,r,i,l)):!1}function Df(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ii(e)&&!Ii(t)?e!==e&&t!==t:f6(e,t,n,r,Df,i)}var d6=1,h6=2;function p6(e,t,n,r){var i=n.length,l=i,g=!r;if(e==null)return!l;for(e=Object(e);i--;){var o=n[i];if(g&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<l;){o=n[i];var a=o[0],c=e[a],p=o[1];if(g&&o[2]){if(c===void 0&&!(a in e))return!1}else{var u=new ei;if(r)var f=r(c,p,a,e,t,u);if(!(f===void 0?Df(p,c,d6|h6,r,u):f))return!1}}return!0}function Kw(e){return e===e&&!yr(e)}function v6(e){for(var t=Pf(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Kw(i)]}return t}function Yw(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function g6(e){var t=v6(e);return t.length==1&&t[0][2]?Yw(t[0][0],t[0][1]):function(n){return n===e||p6(n,e,t)}}function m6(e,t){return e!=null&&t in Object(e)}function y6(e,t,n){t=cs(t,e);for(var r=-1,i=t.length,l=!1;++r<i;){var g=fs(t[r]);if(!(l=e!=null&&n(e,g)))break;e=e[g]}return l||++r!=i?l:(i=e==null?0:e.length,!!i&&Sv(i)&&bv(g,i)&&(mr(e)||xv(e)))}function Xw(e,t){return e!=null&&y6(e,t,m6)}var b6=1,_6=2;function w6(e,t){return kv(e)&&Kw(t)?Yw(fs(e),t):function(n){var r=rr(n,e);return r===void 0&&r===t?Xw(n,e):Df(t,r,b6|_6)}}function S6(e){return function(t){return t==null?void 0:t[e]}}function C6(e){return function(t){return Rf(t,e)}}function x6(e){return kv(e)?S6(fs(e)):C6(e)}function T6(e){return typeof e=="function"?e:e==null?xw:typeof e=="object"?mr(e)?w6(e[0],e[1]):g6(e):x6(e)}var E6=function(){return jr.Date.now()};const Td=E6;var k6="Expected a function",O6=Math.max,A6=Math.min;function jc(e,t,n){var r,i,l,g,o,a,c=0,p=!1,u=!1,f=!0;if(typeof e!="function")throw new TypeError(k6);t=zo(t)||0,yr(n)&&(p=!!n.leading,u="maxWait"in n,l=u?O6(zo(n.maxWait)||0,t):l,f="trailing"in n?!!n.trailing:f);function s(x){var T=r,E=i;return r=i=void 0,c=x,g=e.apply(E,T),g}function d(x){return c=x,o=setTimeout(m,t),p?s(x):g}function v(x){var T=x-a,E=x-c,k=t-T;return u?A6(k,l-E):k}function h(x){var T=x-a,E=x-c;return a===void 0||T>=t||T<0||u&&E>=l}function m(){var x=Td();if(h(x))return y(x);o=setTimeout(m,v(x))}function y(x){return o=void 0,f&&r?s(x):(r=i=void 0,g)}function b(){o!==void 0&&clearTimeout(o),c=0,r=a=i=o=void 0}function _(){return o===void 0?g:y(Td())}function S(){var x=Td(),T=h(x);if(r=arguments,i=this,a=x,T){if(o===void 0)return d(a);if(u)return clearTimeout(o),o=setTimeout(m,t),s(a)}return o===void 0&&(o=setTimeout(m,t)),g}return S.cancel=b,S.flush=_,S}function P6(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var I6=Math.max,M6=Math.min;function R6(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=r-1;return n!==void 0&&(i=C3(n),i=n<0?I6(r+i,0):M6(i,r-1)),rP(e,T6(t),i,!0)}function Zo(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}function D6(e,t){return t.length<2?e:Rf(e,X4(t,0,-1))}function kr(e,t){return Df(e,t)}function Qt(e){return e==null}function L6(e){return e===void 0}var F6=Object.prototype,B6=F6.hasOwnProperty;function N6(e,t){t=cs(t,e);var n=-1,r=t.length;if(!r)return!0;for(var i=e==null||typeof e!="object"&&typeof e!="function";++n<r;){var l=t[n];if(typeof l=="string"){if(l==="__proto__"&&!B6.call(e,"__proto__"))return!1;if(l==="constructor"&&n+1<r&&typeof t[n+1]=="string"&&t[n+1]==="prototype"){if(i&&n===0)continue;return!1}}}var g=D6(e,t);return g==null||delete g[fs(P6(t))]}function z6(e){return Bw(e)?void 0:e}var $6=1,j6=2,V6=4,U6=Lw(function(e,t){var n={};if(e==null)return n;var r=!1;t=Sw(t,function(l){return l=cs(l,e),r||(r=l.length>1),l}),iu(e,Vw(e),n),r&&(n=el(n,$6|j6|V6,z6));for(var i=t.length;i--;)N6(n,t[i]);return n});const qw=U6;function Zw(e,t,n,r){if(!yr(e))return e;t=cs(t,e);for(var i=-1,l=t.length,g=l-1,o=e;o!=null&&++i<l;){var a=fs(t[i]),c=n;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(i!=g){var p=o[a];c=r?r(p,a,o):void 0,c===void 0&&(c=yr(p)?p:bv(t[i+1])?[]:{})}wv(o,a,c),o=o[a]}return e}function H6(e,t,n){for(var r=-1,i=t.length,l={};++r<i;){var g=t[r],o=Rf(e,g);n(o,g)&&Zw(l,cs(g,e),o)}return l}function W6(e,t){return H6(e,t,function(n,r){return Xw(e,r)})}var G6=Lw(function(e,t){return e==null?{}:W6(e,t)});const Jw=G6;function K6(e,t,n){return e==null?e:Zw(e,t,n)}var Y6="Expected a function";function Mo(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(Y6);return yr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),jc(e,t,{leading:r,maxWait:t,trailing:i})}var X6={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const q6=e=>(t,n)=>Z6(t,n,w(e)),Z6=(e,t,n)=>rr(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var l;return`${(l=t==null?void 0:t[i])!=null?l:`{${i}}`}`}),J6=e=>{const t=V(()=>w(e).name),n=yt(e)?e:re(e);return{lang:t,locale:n,t:q6(e)}},Qw=Symbol("localeContextKey"),$t=e=>{const t=e||Ue(Qw,re());return J6(V(()=>t.value||X6))},tl="el",Q6="is-",xa=(e,t,n,r,i)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),r&&(l+=`__${r}`),i&&(l+=`--${i}`),l},e2=Symbol("namespaceContextKey"),Dv=e=>{const t=e||(it()?Ue(e2,re(tl)):re(tl));return V(()=>w(t)||tl)},De=(e,t)=>{const n=Dv(t);return{namespace:n,b:(v="")=>xa(n.value,e,v,"",""),e:v=>v?xa(n.value,e,"",v,""):"",m:v=>v?xa(n.value,e,"","",v):"",be:(v,h)=>v&&h?xa(n.value,e,v,h,""):"",em:(v,h)=>v&&h?xa(n.value,e,"",v,h):"",bm:(v,h)=>v&&h?xa(n.value,e,v,"",h):"",bem:(v,h,m)=>v&&h&&m?xa(n.value,e,v,h,m):"",is:(v,...h)=>{const m=h.length>=1?h[0]:!0;return v&&m?`${Q6}${v}`:""},cssVar:v=>{const h={};for(const m in v)v[m]&&(h[`--${n.value}-${m}`]=v[m]);return h},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const h={};for(const m in v)v[m]&&(h[`--${n.value}-${e}-${m}`]=v[m]);return h},cssVarBlockName:v=>`--${n.value}-${e}-${v}`}},gn=e=>e===void 0,An=e=>typeof e=="boolean",Ye=e=>typeof e=="number",e8=e=>!e&&e!==0||Pe(e)&&e.length===0||Ze(e)&&!Object.keys(e).length,Or=e=>typeof Element>"u"?!1:e instanceof Element,$h=e=>Qt(e),t8=e=>je(e)?!Number.isNaN(Number(e)):!1,n8=e=>e===window;function t2(e,t){var n;const r=Ht();return io(()=>{r.value=e()},{...t,flush:(n=t==null?void 0:t.flush)!=null?n:"sync"}),Ga(r)}function ds(e){return hf()?(pf(e),!0):!1}function fa(e){return typeof e=="function"?e():w(e)}function r8(e){if(!yt(e))return mt(e);const t=new Proxy({},{get(n,r,i){return w(Reflect.get(e.value,r,i))},set(n,r,i){return yt(e.value[r])&&!yt(i)?e.value[r].value=i:e.value[r]=i,!0},deleteProperty(n,r){return Reflect.deleteProperty(e.value,r)},has(n,r){return Reflect.has(e.value,r)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return mt(t)}function i8(e){return r8(V(e))}const pt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const a8=e=>typeof e<"u",n2=e=>e!=null,o8=Object.prototype.toString,s8=e=>o8.call(e)==="[object Object]",l8=(e,t,n)=>Math.min(n,Math.max(t,e)),Pr=()=>{},jh=u8();function u8(){var e,t;return pt&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function r2(e,t){function n(...r){return new Promise((i,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(l)})}return n}function c8(e,t={}){let n,r,i=Pr;const l=o=>{clearTimeout(o),i(),i=Pr};return o=>{const a=fa(e),c=fa(t.maxWait);return n&&l(n),a<=0||c!==void 0&&c<=0?(r&&(l(r),r=null),Promise.resolve(o())):new Promise((p,u)=>{i=t.rejectOnCancel?u:p,c&&!r&&(r=setTimeout(()=>{n&&l(n),r=null,p(o())},c)),n=setTimeout(()=>{r&&l(r),r=null,p(o())},a)})}}function f8(...e){let t=0,n,r=!0,i=Pr,l,g,o,a,c;!yt(e[0])&&typeof e[0]=="object"?{delay:g,trailing:o=!0,leading:a=!0,rejectOnCancel:c=!1}=e[0]:[g,o=!0,a=!0,c=!1]=e;const p=()=>{n&&(clearTimeout(n),n=void 0,i(),i=Pr)};return f=>{const s=fa(g),d=Date.now()-t,v=()=>l=f();return p(),s<=0?(t=Date.now(),v()):(d>s&&(a||!r)?(t=Date.now(),v()):o&&(l=new Promise((h,m)=>{i=c?m:h,n=setTimeout(()=>{t=Date.now(),r=!0,h(v()),p()},Math.max(0,s-d))})),!a&&!n&&(n=setTimeout(()=>r=!0,s)),r=!1,l)}}function d8(e){return e||it()}function i2(e,t=200,n={}){return r2(c8(t,n),e)}function h8(e,t=200,n={}){const r=re(e.value),i=i2(()=>{r.value=e.value},t,n);return ke(e,()=>i()),r}function p8(e,t=200,n=!1,r=!0,i=!1){return r2(f8(t,n,r,i),e)}function v8(e,t=!0,n){d8()?et(e,n):t?e():We(e)}function Ol(e,t,n={}){const{immediate:r=!0}=n,i=re(!1);let l=null;function g(){l&&(clearTimeout(l),l=null)}function o(){i.value=!1,g()}function a(...c){g(),i.value=!0,l=setTimeout(()=>{i.value=!1,l=null,e(...c)},fa(t))}return r&&(i.value=!0,pt&&a()),ds(o),{isPending:Ga(i),start:a,stop:o}}function cn(e){var t;const n=fa(e);return(t=n==null?void 0:n.$el)!=null?t:n}const uo=pt?window:void 0,g8=pt?window.document:void 0;function Ft(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=uo):[t,n,r,i]=e,!t)return Pr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],g=()=>{l.forEach(p=>p()),l.length=0},o=(p,u,f,s)=>(p.addEventListener(u,f,s),()=>p.removeEventListener(u,f,s)),a=ke(()=>[cn(t),fa(i)],([p,u])=>{if(g(),!p)return;const f=s8(u)?{...u}:u;l.push(...n.flatMap(s=>r.map(d=>o(p,s,d,f))))},{immediate:!0,flush:"post"}),c=()=>{a(),g()};return ds(c),c}let M0=!1;function m8(e,t,n={}){const{window:r=uo,ignore:i=[],capture:l=!0,detectIframe:g=!1}=n;if(!r)return Pr;jh&&!M0&&(M0=!0,Array.from(r.document.body.children).forEach(f=>f.addEventListener("click",Pr)),r.document.documentElement.addEventListener("click",Pr));let o=!0;const a=f=>i.some(s=>{if(typeof s=="string")return Array.from(r.document.querySelectorAll(s)).some(d=>d===f.target||f.composedPath().includes(d));{const d=cn(s);return d&&(f.target===d||f.composedPath().includes(d))}}),p=[Ft(r,"click",f=>{const s=cn(e);if(!(!s||s===f.target||f.composedPath().includes(s))){if(f.detail===0&&(o=!a(f)),!o){o=!0;return}t(f)}},{passive:!0,capture:l}),Ft(r,"pointerdown",f=>{const s=cn(e);o=!a(f)&&!!(s&&!f.composedPath().includes(s))},{passive:!0}),g&&Ft(r,"blur",f=>{setTimeout(()=>{var s;const d=cn(e);((s=r.document.activeElement)==null?void 0:s.tagName)==="IFRAME"&&!(d!=null&&d.contains(r.document.activeElement))&&t(f)},0)})].filter(Boolean);return()=>p.forEach(f=>f())}function y8(){const e=re(!1),t=it();return t&&et(()=>{e.value=!0},t),e}function Lv(e){const t=y8();return V(()=>(t.value,Boolean(e())))}function b8(e,t,n={}){const{window:r=uo,...i}=n;let l;const g=Lv(()=>r&&"MutationObserver"in r),o=()=>{l&&(l.disconnect(),l=void 0)},a=V(()=>{const f=fa(e),s=(Array.isArray(f)?f:[f]).map(cn).filter(n2);return new Set(s)}),c=ke(()=>a.value,f=>{o(),g.value&&f.size&&(l=new MutationObserver(t),f.forEach(s=>l.observe(s,i)))},{immediate:!0,flush:"post"}),p=()=>l==null?void 0:l.takeRecords(),u=()=>{o(),c()};return ds(u),{isSupported:g,stop:u,takeRecords:p}}function _8(e){return JSON.parse(JSON.stringify(e))}function w8(e={}){const{document:t=g8}=e;if(!t)return re("visible");const n=re(t.visibilityState);return Ft(t,"visibilitychange",()=>{n.value=t.visibilityState}),n}function un(e,t,n={}){const{window:r=uo,...i}=n;let l;const g=Lv(()=>r&&"ResizeObserver"in r),o=()=>{l&&(l.disconnect(),l=void 0)},a=V(()=>Array.isArray(e)?e.map(u=>cn(u)):[cn(e)]),c=ke(a,u=>{if(o(),g.value&&r){l=new ResizeObserver(t);for(const f of u)f&&l.observe(f,i)}},{immediate:!0,flush:"post"}),p=()=>{o(),c()};return ds(p),{isSupported:g,stop:p}}function R0(e,t={width:0,height:0},n={}){const{window:r=uo,box:i="content-box"}=n,l=V(()=>{var u,f;return(f=(u=cn(e))==null?void 0:u.namespaceURI)==null?void 0:f.includes("svg")}),g=re(t.width),o=re(t.height),{stop:a}=un(e,([u])=>{const f=i==="border-box"?u.borderBoxSize:i==="content-box"?u.contentBoxSize:u.devicePixelContentBoxSize;if(r&&l.value){const s=cn(e);if(s){const d=s.getBoundingClientRect();g.value=d.width,o.value=d.height}}else if(f){const s=Array.isArray(f)?f:[f];g.value=s.reduce((d,{inlineSize:v})=>d+v,0),o.value=s.reduce((d,{blockSize:v})=>d+v,0)}else g.value=u.contentRect.width,o.value=u.contentRect.height},n);v8(()=>{const u=cn(e);u&&(g.value="offsetWidth"in u?u.offsetWidth:t.width,o.value="offsetHeight"in u?u.offsetHeight:t.height)});const c=ke(()=>cn(e),u=>{g.value=u?t.width:0,o.value=u?t.height:0});function p(){a(),c()}return{width:g,height:o,stop:p}}function S8(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:l=.1,window:g=uo,immediate:o=!0}=n,a=Lv(()=>g&&"IntersectionObserver"in g),c=V(()=>{const d=fa(e);return(Array.isArray(d)?d:[d]).map(cn).filter(n2)});let p=Pr;const u=re(o),f=a.value?ke(()=>[c.value,cn(r),u.value],([d,v])=>{if(p(),!u.value||!d.length)return;const h=new IntersectionObserver(t,{root:cn(v),rootMargin:i,threshold:l});d.forEach(m=>m&&h.observe(m)),p=()=>{h.disconnect(),p=Pr}},{immediate:o,flush:"post"}):Pr,s=()=>{p(),f(),u.value=!1};return ds(s),{isSupported:a,isActive:u,pause(){p(),u.value=!1},resume(){u.value=!0},stop:s}}function C8(e,t,n,r={}){var i,l,g;const{clone:o=!1,passive:a=!1,eventName:c,deep:p=!1,defaultValue:u,shouldEmit:f}=r,s=it(),d=n||(s==null?void 0:s.emit)||((i=s==null?void 0:s.$emit)==null?void 0:i.bind(s))||((g=(l=s==null?void 0:s.proxy)==null?void 0:l.$emit)==null?void 0:g.bind(s==null?void 0:s.proxy));let v=c;t||(t="modelValue"),v=v||`update:${t.toString()}`;const h=b=>o?typeof o=="function"?o(b):_8(b):b,m=()=>a8(e[t])?h(e[t]):u,y=b=>{f?f(b)&&d(v,b):d(v,b)};if(a){const b=m(),_=re(b);let S=!1;return ke(()=>e[t],x=>{S||(S=!0,_.value=h(x),We(()=>S=!1))}),ke(_,x=>{!S&&(x!==e[t]||p)&&y(x)},{deep:p}),_}else return V({get(){return m()},set(b){y(b)}})}function x8(e={}){const{window:t=uo}=e;if(!t)return re(!1);const n=re(t.document.hasFocus());return Ft(t,"blur",()=>{n.value=!1}),Ft(t,"focus",()=>{n.value=!0}),n}class T8 extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function fn(e,t){throw new T8(`[${e}] ${t}`)}const D0={current:0},L0=re(0),a2=2e3,F0=Symbol("elZIndexContextKey"),o2=Symbol("zIndexContextKey"),Lf=e=>{const t=it()?Ue(F0,D0):D0,n=e||(it()?Ue(o2,void 0):void 0),r=V(()=>{const g=w(n);return Ye(g)?g:a2}),i=V(()=>r.value+L0.value),l=()=>(t.current++,L0.value=t.current,i.value);return!pt&&Ue(F0),{initialZIndex:r,currentZIndex:i,nextZIndex:l}},s2="__epPropKey",Se=e=>e,E8=e=>Ze(e)&&!!e[s2],Ff=(e,t)=>{if(!Ze(e)||E8(e))return e;const{values:n,required:r,default:i,type:l,validator:g}=e,a={type:l,required:!!r,validator:n||g?c=>{let p=!1,u=[];if(n&&(u=Array.from(n),at(e,"default")&&u.push(i),p||(p=u.includes(c))),g&&(p||(p=g(c))),!p&&u.length>0){const f=[...new Set(u)].map(s=>JSON.stringify(s)).join(", ");jE(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(c)}.`)}return p}:void 0,[s2]:!0};return at(e,"default")&&(a.default=i),a},Fe=e=>Zo(Object.entries(e).map(([t,n])=>[t,Ff(n,t)])),co=["","default","small","large"],Nr=Ff({type:String,values:co,required:!1}),l2=Symbol("size"),u2=()=>{const e=Ue(l2,{});return V(()=>w(e.size)||"")},c2=Symbol("emptyValuesContextKey"),k8=["",void 0,null],O8=void 0,Fv=Fe({emptyValues:Array,valueOnClear:{type:Se([String,Number,Boolean,Function]),default:void 0,validator:e=>(e=Be(e)?e():e,Pe(e)?e.every(t=>!t):!e)}}),f2=(e,t)=>{const n=it()?Ue(c2,re({})):re({}),r=V(()=>e.emptyValues||n.value.emptyValues||k8),i=V(()=>Be(e.valueOnClear)?e.valueOnClear():e.valueOnClear!==void 0?e.valueOnClear:Be(n.value.valueOnClear)?n.value.valueOnClear():n.value.valueOnClear!==void 0?n.value.valueOnClear:t!==void 0?t:O8),l=g=>{let o=!0;return Pe(g)?o=r.value.some(a=>kr(g,a)):o=r.value.includes(g),o};return l(i.value),{emptyValues:r,valueOnClear:i,isEmptyValue:l}},Vh=e=>Object.keys(e),A8=e=>Object.entries(e),$o=(e,t,n)=>({get value(){return rr(e,t,n)},set value(r){K6(e,t,r)}}),Vc=re();function au(e,t=void 0){const n=it()?Ue(bw,Vc):Vc;return e?V(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}function d2(e,t){const n=au(),r=De(e,V(()=>{var o;return((o=n.value)==null?void 0:o.namespace)||tl})),i=$t(V(()=>{var o;return(o=n.value)==null?void 0:o.locale})),l=Lf(V(()=>{var o;return((o=n.value)==null?void 0:o.zIndex)||a2})),g=V(()=>{var o;return w(t)||((o=n.value)==null?void 0:o.size)||""});return h2(V(()=>w(n)||{})),{ns:r,locale:i,zIndex:l,size:g}}const h2=(e,t,n=!1)=>{var r;const i=!!it(),l=i?au():void 0,g=(r=t==null?void 0:t.provide)!=null?r:i?wt:void 0;if(!g)return;const o=V(()=>{const a=w(e);return l!=null&&l.value?P8(l.value,a):a});return g(bw,o),g(Qw,V(()=>o.value.locale)),g(e2,V(()=>o.value.namespace)),g(o2,V(()=>o.value.zIndex)),g(l2,{size:V(()=>o.value.size||"")}),g(c2,V(()=>({emptyValues:o.value.emptyValues,valueOnClear:o.value.valueOnClear}))),(n||!Vc.value)&&(Vc.value=o.value),o},P8=(e,t)=>{const n=[...new Set([...Vh(e),...Vh(t)])],r={};for(const i of n)r[i]=t[i]!==void 0?t[i]:e[i];return r},Bv=Fe({to:{type:Se([String,Object]),required:!0},disabled:Boolean}),nt="update:modelValue",Mt="change",sr="input";var I8=we({__name:"teleport",props:Bv,setup(e){return(t,n)=>t.disabled?xe(t.$slots,"default",{key:0}):(j(),me(GT,{key:1,to:t.to},[xe(t.$slots,"default")],8,["to"]))}});const p2=e=>{const t=e.props,n=Pe(t)?Zo(t.map(r=>[r,{}])):t;e.setPropsDefaults=r=>{if(!!n){for(const[i,l]of Object.entries(r)){const g=n[i];if(!!at(n,i)){if(Bw(g)){n[i]={...g,default:l};continue}n[i]={type:g,default:l}}}e.props=n}}},gt=(e,t)=>{if(e.install=n=>{for(const r of[e,...Object.values(t!=null?t:{})])n.component(r.name,r)},t)for(const[n,r]of Object.entries(t))e[n]=r;return p2(e),e},M8=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),R8=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Sr=e=>(e.install=rt,p2(e),e),Nv=gt(I8),v2=e=>pt?window.requestAnimationFrame(e):setTimeout(e,16),D8=e=>pt?window.cancelAnimationFrame(e):clearTimeout(e),L8='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',g2=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,B0=e=>typeof Element>"u"?!1:e instanceof Element,F8=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,N0=e=>Array.from(e.querySelectorAll(L8)).filter(t=>Al(t)&&F8(t)),Al=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},fc=function(e,t,...n){let r;t.includes("mouse")||t.includes("click")?r="MouseEvents":t.includes("key")?r="KeyboardEvent":r="HTMLEvents";const i=document.createEvent(r);return i.initEvent(t,...n),e.dispatchEvent(i),e},Bf=(e,t)=>{if(!e||!e.focus)return;let n=!1;B0(e)&&!Al(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),B0(e)&&n&&e.removeAttribute("tabindex")},m2=(e="")=>e.split(" ").filter(t=>!!t.trim()),y2=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Bs=(e,t)=>{!e||!t.trim()||e.classList.add(...m2(t))},dc=(e,t)=>{!e||!t.trim()||e.classList.remove(...m2(t))},b2=(e,t)=>{var n;if(!pt||!e||!t||g2(e))return"";let r=ur(t);r==="float"&&(r="cssFloat");try{const i=e.style[r];if(i)return i;const l=(n=document.defaultView)==null?void 0:n.getComputedStyle(e,"");return l?l[r]:""}catch{return e.style[r]}};function bn(e,t="px"){if(!e&&e!==0)return"";if(Ye(e)||t8(e))return`${e}${t}`;if(je(e))return e}const B8=(e,t)=>{if(!pt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=b2(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},N8=(e,t)=>{if(!pt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(B8(n,t))return n;g2(n)?n=n.host:n=n.parentNode}return n};let Pu;const z8=e=>{var t;if(!pt)return 0;if(Pu!==void 0)return Pu;const n=document.createElement("div");n.className=`${e}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const l=i.offsetWidth;return(t=n.parentNode)==null||t.removeChild(n),Pu=r-l,Pu};function $8(e,t){if(!pt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((a,c)=>a+c.offsetTop,0),l=i+t.offsetHeight,g=e.scrollTop,o=g+e.clientHeight;i<g?e.scrollTop=i:l>o&&(e.scrollTop=l-e.clientHeight)}const Nt=Se([String,Object,Function]),j8={Close:ii},_2={Close:ii,SuccessFilled:mw,InfoFilled:Fc,WarningFilled:yv,CircleCloseFilled:dw},Uc={primary:Fc,success:mw,warning:yv,error:dw,info:Fc},w2={validating:xl,success:nu,error:ru},V8=Fe({size:{type:Se([Number,String])},color:{type:String}});var U8=we({name:"ElIcon",inheritAttrs:!1,__name:"icon",props:V8,setup(e){const t=e,n=De("icon"),r=V(()=>{const{size:i,color:l}=t,g=bn(i);return!g&&!l?{}:{fontSize:g,"--color":l}});return(i,l)=>(j(),ae("i",zt({class:w(n).b(),style:r.value},i.$attrs),[xe(i.$slots,"default")],16))}});const Ne=gt(U8);var hc=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(hc||{});const ta=e=>{const t=Pe(e)?e:[e],n=[];return t.forEach(r=>{var i;Pe(r)?n.push(...ta(r)):Nn(r)&&((i=r.component)==null?void 0:i.subTree)?n.push(r,...ta(r.component.subTree)):Nn(r)&&Pe(r.children)?n.push(...ta(r.children)):Nn(r)&&r.shapeFlag===2?n.push(...ta(r.type())):n.push(r)}),n};var Wn="top",br="bottom",_r="right",Gn="left",zv="auto",ou=[Wn,br,_r,Gn],Jo="start",Pl="end",H8="clippingParents",S2="viewport",Ds="popper",W8="reference",z0=ou.reduce(function(e,t){return e.concat([t+"-"+Jo,t+"-"+Pl])},[]),hs=[].concat(ou,[zv]).reduce(function(e,t){return e.concat([t,t+"-"+Jo,t+"-"+Pl])},[]),G8="beforeRead",K8="read",Y8="afterRead",X8="beforeMain",q8="main",Z8="afterMain",J8="beforeWrite",Q8="write",eM="afterWrite",tM=[G8,K8,Y8,X8,q8,Z8,J8,Q8,eM];function ai(e){return e?(e.nodeName||"").toLowerCase():null}function cr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Xa(e){var t=cr(e).Element;return e instanceof t||e instanceof Element}function pr(e){var t=cr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function $v(e){if(typeof ShadowRoot>"u")return!1;var t=cr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function nM(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},l=t.elements[n];!pr(l)||!ai(l)||(Object.assign(l.style,r),Object.keys(i).forEach(function(g){var o=i[g];o===!1?l.removeAttribute(g):l.setAttribute(g,o===!0?"":o)}))})}function rM(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],l=t.attributes[r]||{},g=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=g.reduce(function(a,c){return a[c]="",a},{});!pr(i)||!ai(i)||(Object.assign(i.style,o),Object.keys(l).forEach(function(a){i.removeAttribute(a)}))})}}var C2={name:"applyStyles",enabled:!0,phase:"write",fn:nM,effect:rM,requires:["computeStyles"]};function ti(e){return e.split("-")[0]}var Va=Math.max,Hc=Math.min,Qo=Math.round;function Uh(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function x2(){return!/^((?!chrome|android).)*safari/i.test(Uh())}function es(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,l=1;t&&pr(e)&&(i=e.offsetWidth>0&&Qo(r.width)/e.offsetWidth||1,l=e.offsetHeight>0&&Qo(r.height)/e.offsetHeight||1);var g=Xa(e)?cr(e):window,o=g.visualViewport,a=!x2()&&n,c=(r.left+(a&&o?o.offsetLeft:0))/i,p=(r.top+(a&&o?o.offsetTop:0))/l,u=r.width/i,f=r.height/l;return{width:u,height:f,top:p,right:c+u,bottom:p+f,left:c,x:c,y:p}}function jv(e){var t=es(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function T2(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&$v(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Mi(e){return cr(e).getComputedStyle(e)}function iM(e){return["table","td","th"].indexOf(ai(e))>=0}function ma(e){return((Xa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nf(e){return ai(e)==="html"?e:e.assignedSlot||e.parentNode||($v(e)?e.host:null)||ma(e)}function $0(e){return!pr(e)||Mi(e).position==="fixed"?null:e.offsetParent}function aM(e){var t=/firefox/i.test(Uh()),n=/Trident/i.test(Uh());if(n&&pr(e)){var r=Mi(e);if(r.position==="fixed")return null}var i=Nf(e);for($v(i)&&(i=i.host);pr(i)&&["html","body"].indexOf(ai(i))<0;){var l=Mi(i);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return i;i=i.parentNode}return null}function su(e){for(var t=cr(e),n=$0(e);n&&iM(n)&&Mi(n).position==="static";)n=$0(n);return n&&(ai(n)==="html"||ai(n)==="body"&&Mi(n).position==="static")?t:n||aM(e)||t}function Vv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function nl(e,t,n){return Va(e,Hc(t,n))}function oM(e,t,n){var r=nl(e,t,n);return r>n?n:r}function E2(){return{top:0,right:0,bottom:0,left:0}}function k2(e){return Object.assign({},E2(),e)}function O2(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var sM=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,k2(typeof e!="number"?e:O2(e,ou))};function lM(e){var t,n=e.state,r=e.name,i=e.options,l=n.elements.arrow,g=n.modifiersData.popperOffsets,o=ti(n.placement),a=Vv(o),c=[Gn,_r].indexOf(o)>=0,p=c?"height":"width";if(!(!l||!g)){var u=sM(i.padding,n),f=jv(l),s=a==="y"?Wn:Gn,d=a==="y"?br:_r,v=n.rects.reference[p]+n.rects.reference[a]-g[a]-n.rects.popper[p],h=g[a]-n.rects.reference[a],m=su(l),y=m?a==="y"?m.clientHeight||0:m.clientWidth||0:0,b=v/2-h/2,_=u[s],S=y-f[p]-u[d],x=y/2-f[p]/2+b,T=nl(_,x,S),E=a;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-x,t)}}function uM(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||T2(t.elements.popper,i)&&(t.elements.arrow=i))}var cM={name:"arrow",enabled:!0,phase:"main",fn:lM,effect:uM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ts(e){return e.split("-")[1]}var fM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dM(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Qo(n*i)/i||0,y:Qo(r*i)/i||0}}function j0(e){var t,n=e.popper,r=e.popperRect,i=e.placement,l=e.variation,g=e.offsets,o=e.position,a=e.gpuAcceleration,c=e.adaptive,p=e.roundOffsets,u=e.isFixed,f=g.x,s=f===void 0?0:f,d=g.y,v=d===void 0?0:d,h=typeof p=="function"?p({x:s,y:v}):{x:s,y:v};s=h.x,v=h.y;var m=g.hasOwnProperty("x"),y=g.hasOwnProperty("y"),b=Gn,_=Wn,S=window;if(c){var x=su(n),T="clientHeight",E="clientWidth";if(x===cr(n)&&(x=ma(n),Mi(x).position!=="static"&&o==="absolute"&&(T="scrollHeight",E="scrollWidth")),x=x,i===Wn||(i===Gn||i===_r)&&l===Pl){_=br;var k=u&&x===S&&S.visualViewport?S.visualViewport.height:x[T];v-=k-r.height,v*=a?1:-1}if(i===Gn||(i===Wn||i===br)&&l===Pl){b=_r;var D=u&&x===S&&S.visualViewport?S.visualViewport.width:x[E];s-=D-r.width,s*=a?1:-1}}var W=Object.assign({position:o},c&&fM),I=p===!0?dM({x:s,y:v},cr(n)):{x:s,y:v};if(s=I.x,v=I.y,a){var U;return Object.assign({},W,(U={},U[_]=y?"0":"",U[b]=m?"0":"",U.transform=(S.devicePixelRatio||1)<=1?"translate("+s+"px, "+v+"px)":"translate3d("+s+"px, "+v+"px, 0)",U))}return Object.assign({},W,(t={},t[_]=y?v+"px":"",t[b]=m?s+"px":"",t.transform="",t))}function hM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,l=n.adaptive,g=l===void 0?!0:l,o=n.roundOffsets,a=o===void 0?!0:o,c={placement:ti(t.placement),variation:ts(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,j0(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:g,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,j0(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var A2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:hM,data:{}},Iu={passive:!0};function pM(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,l=i===void 0?!0:i,g=r.resize,o=g===void 0?!0:g,a=cr(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&c.forEach(function(p){p.addEventListener("scroll",n.update,Iu)}),o&&a.addEventListener("resize",n.update,Iu),function(){l&&c.forEach(function(p){p.removeEventListener("scroll",n.update,Iu)}),o&&a.removeEventListener("resize",n.update,Iu)}}var P2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:pM,data:{}},vM={left:"right",right:"left",bottom:"top",top:"bottom"};function pc(e){return e.replace(/left|right|bottom|top/g,function(t){return vM[t]})}var gM={start:"end",end:"start"};function V0(e){return e.replace(/start|end/g,function(t){return gM[t]})}function Uv(e){var t=cr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Hv(e){return es(ma(e)).left+Uv(e).scrollLeft}function mM(e,t){var n=cr(e),r=ma(e),i=n.visualViewport,l=r.clientWidth,g=r.clientHeight,o=0,a=0;if(i){l=i.width,g=i.height;var c=x2();(c||!c&&t==="fixed")&&(o=i.offsetLeft,a=i.offsetTop)}return{width:l,height:g,x:o+Hv(e),y:a}}function yM(e){var t,n=ma(e),r=Uv(e),i=(t=e.ownerDocument)==null?void 0:t.body,l=Va(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),g=Va(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+Hv(e),a=-r.scrollTop;return Mi(i||n).direction==="rtl"&&(o+=Va(n.clientWidth,i?i.clientWidth:0)-l),{width:l,height:g,x:o,y:a}}function Wv(e){var t=Mi(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function I2(e){return["html","body","#document"].indexOf(ai(e))>=0?e.ownerDocument.body:pr(e)&&Wv(e)?e:I2(Nf(e))}function rl(e,t){var n;t===void 0&&(t=[]);var r=I2(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),l=cr(r),g=i?[l].concat(l.visualViewport||[],Wv(r)?r:[]):r,o=t.concat(g);return i?o:o.concat(rl(Nf(g)))}function Hh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function bM(e,t){var n=es(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function U0(e,t,n){return t===S2?Hh(mM(e,n)):Xa(t)?bM(t,n):Hh(yM(ma(e)))}function _M(e){var t=rl(Nf(e)),n=["absolute","fixed"].indexOf(Mi(e).position)>=0,r=n&&pr(e)?su(e):e;return Xa(r)?t.filter(function(i){return Xa(i)&&T2(i,r)&&ai(i)!=="body"}):[]}function wM(e,t,n,r){var i=t==="clippingParents"?_M(e):[].concat(t),l=[].concat(i,[n]),g=l[0],o=l.reduce(function(a,c){var p=U0(e,c,r);return a.top=Va(p.top,a.top),a.right=Hc(p.right,a.right),a.bottom=Hc(p.bottom,a.bottom),a.left=Va(p.left,a.left),a},U0(e,g,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function M2(e){var t=e.reference,n=e.element,r=e.placement,i=r?ti(r):null,l=r?ts(r):null,g=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,a;switch(i){case Wn:a={x:g,y:t.y-n.height};break;case br:a={x:g,y:t.y+t.height};break;case _r:a={x:t.x+t.width,y:o};break;case Gn:a={x:t.x-n.width,y:o};break;default:a={x:t.x,y:t.y}}var c=i?Vv(i):null;if(c!=null){var p=c==="y"?"height":"width";switch(l){case Jo:a[c]=a[c]-(t[p]/2-n[p]/2);break;case Pl:a[c]=a[c]+(t[p]/2-n[p]/2);break}}return a}function Il(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,l=n.strategy,g=l===void 0?e.strategy:l,o=n.boundary,a=o===void 0?H8:o,c=n.rootBoundary,p=c===void 0?S2:c,u=n.elementContext,f=u===void 0?Ds:u,s=n.altBoundary,d=s===void 0?!1:s,v=n.padding,h=v===void 0?0:v,m=k2(typeof h!="number"?h:O2(h,ou)),y=f===Ds?W8:Ds,b=e.rects.popper,_=e.elements[d?y:f],S=wM(Xa(_)?_:_.contextElement||ma(e.elements.popper),a,p,g),x=es(e.elements.reference),T=M2({reference:x,element:b,placement:i}),E=Hh(Object.assign({},b,T)),k=f===Ds?E:x,D={top:S.top-k.top+m.top,bottom:k.bottom-S.bottom+m.bottom,left:S.left-k.left+m.left,right:k.right-S.right+m.right},W=e.modifiersData.offset;if(f===Ds&&W){var I=W[i];Object.keys(D).forEach(function(U){var A=[_r,br].indexOf(U)>=0?1:-1,ee=[Wn,br].indexOf(U)>=0?"y":"x";D[U]+=I[ee]*A})}return D}function SM(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,l=n.rootBoundary,g=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,c=a===void 0?hs:a,p=ts(r),u=p?o?z0:z0.filter(function(d){return ts(d)===p}):ou,f=u.filter(function(d){return c.indexOf(d)>=0});f.length===0&&(f=u);var s=f.reduce(function(d,v){return d[v]=Il(e,{placement:v,boundary:i,rootBoundary:l,padding:g})[ti(v)],d},{});return Object.keys(s).sort(function(d,v){return s[d]-s[v]})}function CM(e){if(ti(e)===zv)return[];var t=pc(e);return[V0(e),t,V0(t)]}function xM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,l=i===void 0?!0:i,g=n.altAxis,o=g===void 0?!0:g,a=n.fallbackPlacements,c=n.padding,p=n.boundary,u=n.rootBoundary,f=n.altBoundary,s=n.flipVariations,d=s===void 0?!0:s,v=n.allowedAutoPlacements,h=t.options.placement,m=ti(h),y=m===h,b=a||(y||!d?[pc(h)]:CM(h)),_=[h].concat(b).reduce(function($,M){return $.concat(ti(M)===zv?SM(t,{placement:M,boundary:p,rootBoundary:u,padding:c,flipVariations:d,allowedAutoPlacements:v}):M)},[]),S=t.rects.reference,x=t.rects.popper,T=new Map,E=!0,k=_[0],D=0;D<_.length;D++){var W=_[D],I=ti(W),U=ts(W)===Jo,A=[Wn,br].indexOf(I)>=0,ee=A?"width":"height",de=Il(t,{placement:W,boundary:p,rootBoundary:u,altBoundary:f,padding:c}),z=A?U?_r:Gn:U?br:Wn;S[ee]>x[ee]&&(z=pc(z));var q=pc(z),O=[];if(l&&O.push(de[I]<=0),o&&O.push(de[z]<=0,de[q]<=0),O.every(function($){return $})){k=W,E=!1;break}T.set(W,O)}if(E)for(var F=d?3:1,R=function($){var M=_.find(function(ne){var X=T.get(ne);if(X)return X.slice(0,$).every(function(te){return te})});if(M)return k=M,"break"},P=F;P>0;P--){var G=R(P);if(G==="break")break}t.placement!==k&&(t.modifiersData[r]._skip=!0,t.placement=k,t.reset=!0)}}var TM={name:"flip",enabled:!0,phase:"main",fn:xM,requiresIfExists:["offset"],data:{_skip:!1}};function H0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function W0(e){return[Wn,_r,br,Gn].some(function(t){return e[t]>=0})}function EM(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,l=t.modifiersData.preventOverflow,g=Il(t,{elementContext:"reference"}),o=Il(t,{altBoundary:!0}),a=H0(g,r),c=H0(o,i,l),p=W0(a),u=W0(c);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:u},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":u})}var kM={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:EM};function OM(e,t,n){var r=ti(e),i=[Gn,Wn].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,g=l[0],o=l[1];return g=g||0,o=(o||0)*i,[Gn,_r].indexOf(r)>=0?{x:o,y:g}:{x:g,y:o}}function AM(e){var t=e.state,n=e.options,r=e.name,i=n.offset,l=i===void 0?[0,0]:i,g=hs.reduce(function(p,u){return p[u]=OM(u,t.rects,l),p},{}),o=g[t.placement],a=o.x,c=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=g}var PM={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:AM};function IM(e){var t=e.state,n=e.name;t.modifiersData[n]=M2({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}var R2={name:"popperOffsets",enabled:!0,phase:"read",fn:IM,data:{}};function MM(e){return e==="x"?"y":"x"}function RM(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,l=i===void 0?!0:i,g=n.altAxis,o=g===void 0?!1:g,a=n.boundary,c=n.rootBoundary,p=n.altBoundary,u=n.padding,f=n.tether,s=f===void 0?!0:f,d=n.tetherOffset,v=d===void 0?0:d,h=Il(t,{boundary:a,rootBoundary:c,padding:u,altBoundary:p}),m=ti(t.placement),y=ts(t.placement),b=!y,_=Vv(m),S=MM(_),x=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,k=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,D=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(x){if(l){var U,A=_==="y"?Wn:Gn,ee=_==="y"?br:_r,de=_==="y"?"height":"width",z=x[_],q=z+h[A],O=z-h[ee],F=s?-E[de]/2:0,R=y===Jo?T[de]:E[de],P=y===Jo?-E[de]:-T[de],G=t.elements.arrow,$=s&&G?jv(G):{width:0,height:0},M=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:E2(),ne=M[A],X=M[ee],te=nl(0,T[de],$[de]),Q=b?T[de]/2-F-te-ne-D.mainAxis:R-te-ne-D.mainAxis,J=b?-T[de]/2+F+te+X+D.mainAxis:P+te+X+D.mainAxis,oe=t.elements.arrow&&su(t.elements.arrow),pe=oe?_==="y"?oe.clientTop||0:oe.clientLeft||0:0,N=(U=W==null?void 0:W[_])!=null?U:0,C=z+Q-N-pe,H=z+J-N,K=nl(s?Hc(q,C):q,z,s?Va(O,H):O);x[_]=K,I[_]=K-z}if(o){var L,B=_==="x"?Wn:Gn,Z=_==="x"?br:_r,ce=x[S],le=S==="y"?"height":"width",Y=ce+h[B],he=ce-h[Z],ve=[Wn,Gn].indexOf(m)!==-1,ge=(L=W==null?void 0:W[S])!=null?L:0,Ee=ve?Y:ce-T[le]-E[le]-ge+D.altAxis,_e=ve?ce+T[le]+E[le]-ge-D.altAxis:he,Te=s&&ve?oM(Ee,ce,_e):nl(s?Ee:Y,ce,s?_e:he);x[S]=Te,I[S]=Te-ce}t.modifiersData[r]=I}}var DM={name:"preventOverflow",enabled:!0,phase:"main",fn:RM,requiresIfExists:["offset"]};function LM(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function FM(e){return e===cr(e)||!pr(e)?Uv(e):LM(e)}function BM(e){var t=e.getBoundingClientRect(),n=Qo(t.width)/e.offsetWidth||1,r=Qo(t.height)/e.offsetHeight||1;return n!==1||r!==1}function NM(e,t,n){n===void 0&&(n=!1);var r=pr(t),i=pr(t)&&BM(t),l=ma(t),g=es(e,i,n),o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((ai(t)!=="body"||Wv(l))&&(o=FM(t)),pr(t)?(a=es(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):l&&(a.x=Hv(l))),{x:g.left+o.scrollLeft-a.x,y:g.top+o.scrollTop-a.y,width:g.width,height:g.height}}function zM(e){var t=new Map,n=new Set,r=[];e.forEach(function(l){t.set(l.name,l)});function i(l){n.add(l.name);var g=[].concat(l.requires||[],l.requiresIfExists||[]);g.forEach(function(o){if(!n.has(o)){var a=t.get(o);a&&i(a)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||i(l)}),r}function $M(e){var t=zM(e);return tM.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function jM(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function VM(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var G0={placement:"bottom",modifiers:[],strategy:"absolute"};function K0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function Gv(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,l=i===void 0?G0:i;return function(g,o,a){a===void 0&&(a=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},G0,l),modifiersData:{},elements:{reference:g,popper:o},attributes:{},styles:{}},p=[],u=!1,f={state:c,setOptions:function(v){var h=typeof v=="function"?v(c.options):v;d(),c.options=Object.assign({},l,c.options,h),c.scrollParents={reference:Xa(g)?rl(g):g.contextElement?rl(g.contextElement):[],popper:rl(o)};var m=$M(VM([].concat(r,c.options.modifiers)));return c.orderedModifiers=m.filter(function(y){return y.enabled}),s(),f.update()},forceUpdate:function(){if(!u){var v=c.elements,h=v.reference,m=v.popper;if(K0(h,m)){c.rects={reference:NM(h,su(m),c.options.strategy==="fixed"),popper:jv(m)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(E){return c.modifiersData[E.name]=Object.assign({},E.data)});for(var y=0;y<c.orderedModifiers.length;y++){if(c.reset===!0){c.reset=!1,y=-1;continue}var b=c.orderedModifiers[y],_=b.fn,S=b.options,x=S===void 0?{}:S,T=b.name;typeof _=="function"&&(c=_({state:c,options:x,name:T,instance:f})||c)}}}},update:jM(function(){return new Promise(function(v){f.forceUpdate(),v(c)})}),destroy:function(){d(),u=!0}};if(!K0(g,o))return f;f.setOptions(a).then(function(v){!u&&a.onFirstUpdate&&a.onFirstUpdate(v)});function s(){c.orderedModifiers.forEach(function(v){var h=v.name,m=v.options,y=m===void 0?{}:m,b=v.effect;if(typeof b=="function"){var _=b({state:c,name:h,instance:f,options:y}),S=function(){};p.push(_||S)}})}function d(){p.forEach(function(v){return v()}),p=[]}return f}}Gv();var UM=[P2,R2,A2,C2];Gv({defaultModifiers:UM});var HM=[P2,R2,A2,C2,PM,TM,DM,cM,kM],WM=Gv({defaultModifiers:HM});const D2=Fe({arrowOffset:{type:Number,default:5}}),GM={arrowOffset:5},KM=Fe({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),oi=e=>Jw(KM,e),YM=["fixed","absolute"],XM=Fe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Se(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:hs,default:"bottom"},popperOptions:{type:Se(Object),default:()=>({})},strategy:{type:String,values:YM,default:"absolute"}}),L2=Fe({...XM,...D2,id:String,style:{type:Se([String,Array,Object])},className:{type:Se([String,Array,Object])},effect:{type:Se(String),default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:Boolean,trapping:Boolean,popperClass:{type:Se([String,Array,Object])},popperStyle:{type:Se([String,Array,Object])},referenceEl:{type:Se(Object)},triggerTargetEl:{type:Se(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...oi(["ariaLabel"]),loop:Boolean}),qM={boundariesPadding:0,gpuAcceleration:!0,offset:12,placement:"bottom",popperOptions:()=>({}),strategy:"absolute"},ZM={...qM,...GM,effect:"dark",enterable:!0,stopPopperMouseEvent:!0,visible:!1,pure:!1,focusOnShow:!1,trapping:!1,virtualTriggering:!1,loop:!1,style:void 0,popperStyle:void 0},JM={mouseenter:e=>e instanceof MouseEvent,mouseleave:e=>e instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0};function Y0(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return ds(()=>n()),{registerTimeout:t,cancelTimeout:n}}const QM=Fe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),eR={showAfter:0,hideAfter:200,autoClose:0},tR=({showAfter:e,hideAfter:t,autoClose:n,open:r,close:i})=>{const{registerTimeout:l}=Y0(),{registerTimeout:g,cancelTimeout:o}=Y0();return{onOpen:(p,u=w(e))=>{l(()=>{r(p);const f=w(n);Ye(f)&&f>0&&g(()=>{i(p)},f)},u)},onClose:(p,u=w(t))=>{o(),l(()=>{i(p)},u)}}};({...eR,...ZM});const Ut=Fe({...QM,...L2,appendTo:{type:Bv.to.type},content:{type:String,default:""},rawContent:Boolean,persistent:Boolean,visible:{type:Se(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...oi(["ariaLabel"])}),Jt=e=>e,nR=Fe({id:{type:String,default:void 0},size:Nr,disabled:{type:Boolean,default:void 0},modelValue:{type:Se([String,Number,Object]),default:""},modelModifiers:{type:Se(Object),default:()=>({})},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:Se(String),default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Se([Boolean,Object]),default:!1},autocomplete:{type:Se(String),default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:Boolean,clearable:Boolean,clearIcon:{type:Nt,default:ru},showPassword:Boolean,showWordLimit:Boolean,wordLimitPosition:{type:String,values:["inside","outside"],default:"inside"},suffixIcon:{type:Nt},prefixIcon:{type:Nt},containerRole:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Se([Object,Array,String]),default:()=>Jt({})},autofocus:Boolean,rows:{type:Number,default:2},...oi(["ariaLabel"]),inputmode:{type:Se(String),default:void 0},name:String}),rR={[nt]:e=>je(e),input:e=>je(e),change:(e,t)=>je(e)&&(t instanceof Event||t===void 0),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent};Ai(ru);const Kv=()=>pt&&/firefox/i.test(window.navigator.userAgent),iR=()=>pt&&/android/i.test(window.navigator.userAgent);let jn;const aR={height:"0",visibility:"hidden",overflow:Kv()?"":"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},oR=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],X0=e=>{const t=Number.parseFloat(e);return Number.isNaN(t)?e:t};function sR(e){const t=window.getComputedStyle(e),n=t.getPropertyValue("box-sizing"),r=Number.parseFloat(t.getPropertyValue("padding-bottom"))+Number.parseFloat(t.getPropertyValue("padding-top")),i=Number.parseFloat(t.getPropertyValue("border-bottom-width"))+Number.parseFloat(t.getPropertyValue("border-top-width"));return{contextStyle:oR.map(g=>[g,t.getPropertyValue(g)]),paddingSize:r,borderSize:i,boxSizing:n}}function q0(e,t=1,n){var r;if(!jn){jn=document.createElement("textarea");let u=document.body;!Kv()&&e.parentNode&&(u=e.parentNode),u.appendChild(jn)}const{paddingSize:i,borderSize:l,boxSizing:g,contextStyle:o}=sR(e);o.forEach(([u,f])=>jn==null?void 0:jn.style.setProperty(u,f)),Object.entries(aR).forEach(([u,f])=>jn==null?void 0:jn.style.setProperty(u,f,"important")),jn.value=e.value||e.placeholder||"";let a=jn.scrollHeight;const c={};g==="border-box"?a=a+l:g==="content-box"&&(a=a-i),jn.value="";const p=jn.scrollHeight-i;if(Ye(t)){let u=p*t;g==="border-box"&&(u=u+i+l),a=Math.max(u,a),c.minHeight=`${u}px`}if(Ye(n)){let u=p*n;g==="border-box"&&(u=u+i+l),a=Math.min(u,a)}return c.height=`${a}px`,(r=jn.parentNode)==null||r.removeChild(jn),jn=void 0,c}const lR=["class","style"],uR=/^on[A-Z]/,F2=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=V(()=>((n==null?void 0:n.value)||[]).concat(lR)),i=it();return V(i?()=>{var l;return Zo(Object.entries((l=i.proxy)==null?void 0:l.$attrs).filter(([g])=>!r.value.includes(g)&&!(t&&uR.test(g))))}:()=>({}))},B2=e=>{const t=it();return V(()=>{var n,r;return(r=(n=t==null?void 0:t.proxy)==null?void 0:n.$props)==null?void 0:r[e]})},ps=Symbol("formContextKey"),qa=Symbol("formItemContextKey"),Vr=(e,t={})=>{const n=re(void 0),r=t.prop?n:B2("size"),i=t.global?n:u2(),l=t.form?{size:void 0}:Ue(ps,void 0),g=t.formItem?{size:void 0}:Ue(qa,void 0);return V(()=>r.value||w(e)||(g==null?void 0:g.size)||(l==null?void 0:l.size)||i.value||"")},Kn=e=>{const t=B2("disabled"),n=Ue(ps,void 0);return V(()=>{var r,i,l;return(l=(i=(r=t.value)!=null?r:w(e))!=null?i:n==null?void 0:n.disabled)!=null?l:!1})};function Yv(e,{disabled:t,beforeFocus:n,afterFocus:r,beforeBlur:i,afterBlur:l}={}){const g=it(),{emit:o}=g,a=Ht(),c=re(!1),p=s=>{const d=Be(n)?n(s):!1;w(t)||c.value||d||(c.value=!0,o("focus",s),r==null||r())},u=s=>{var d;const v=Be(i)?i(s):!1;w(t)||s.relatedTarget&&((d=a.value)==null?void 0:d.contains(s.relatedTarget))||v||(c.value=!1,o("blur",s),l==null||l())},f=s=>{var d,v;w(t)||Al(s.target)||((d=a.value)==null?void 0:d.contains(document.activeElement))&&a.value!==document.activeElement||(v=e.value)==null||v.focus()};return ke([a,()=>w(t)],([s,d])=>{!s||(d?s.removeAttribute("tabindex"):s.setAttribute("tabindex","-1"))}),Ft(a,"focus",p,!0),Ft(a,"blur",u,!0),Ft(a,"click",f,!0),{isFocused:c,wrapperRef:a,handleFocus:p,handleBlur:u}}const Z0={prefix:Math.floor(Math.random()*1e4),current:0},cR=Symbol("elIdInjection"),Xv=()=>it()?Ue(cR,Z0):Z0,zr=e=>{const t=Xv(),n=Dv();return t2(()=>w(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Ni=()=>{const e=Ue(ps,void 0),t=Ue(qa,void 0);return{form:e,formItem:t}},vs=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=re(!1)),r||(r=re(!1));const i=it(),l=()=>{let c=i==null?void 0:i.parent;for(;c;){if(c.type.name==="ElFormItem")return!1;if(c.type.name==="ElLabelWrap")return!0;c=c.parent}return!1},g=re();let o;const a=V(()=>{var c;return!!(!(e.label||e.ariaLabel)&&t&&t.inputIds&&((c=t.inputIds)==null?void 0:c.length)<=1)});return et(()=>{o=ke([Fn(e,"id"),n],([c,p])=>{const u=c!=null?c:p?void 0:zr().value;u!==g.value&&((t==null?void 0:t.removeInputId)&&!l()&&(g.value&&t.removeInputId(g.value),!(r!=null&&r.value)&&!p&&u&&t.addInputId(u)),g.value=u)},{immediate:!0})}),os(()=>{o&&o(),t!=null&&t.removeInputId&&g.value&&t.removeInputId(g.value)}),{isLabeledByFormItem:a,inputId:g}},fR=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e);function N2({afterComposition:e,emit:t}){const n=re(!1),r=o=>{t==null||t("compositionstart",o),n.value=!0},i=o=>{var a;t==null||t("compositionupdate",o);const c=(a=o.target)==null?void 0:a.value,p=c[c.length-1]||"";n.value=!fR(p)},l=o=>{t==null||t("compositionend",o),n.value&&(n.value=!1,We(()=>e(o)))};return{isComposing:n,handleComposition:o=>{o.type==="compositionend"?l(o):i(o)},handleCompositionStart:r,handleCompositionUpdate:i,handleCompositionEnd:l}}function dR(e){let t;function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:l,value:g}=e.value;if(i==null||l==null)return;const o=g.slice(0,Math.max(0,i)),a=g.slice(Math.max(0,l));t={selectionStart:i,selectionEnd:l,value:g,beforeTxt:o,afterTxt:a}}function r(){if(e.value==null||t==null)return;const{value:i}=e.value,{beforeTxt:l,afterTxt:g,selectionStart:o}=t;if(l==null||g==null||o==null)return;let a=i.length;if(i.endsWith(g))a=i.length-g.length;else if(i.startsWith(l))a=l.length;else{const c=l[o-1],p=i.indexOf(c,o-1);p!==-1&&(a=p+1)}e.value.setSelectionRange(a,a)}return[n,r]}const hR=["id","name","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus","role","inputmode"],pR=["id","name","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus","rows","role"],vR="ElInput";var gR=we({name:vR,inheritAttrs:!1,__name:"input",props:nR,emits:rR,setup(e,{expose:t,emit:n}){const r=e,i=n,l=f_(),g=F2(),o=ao(),a=V(()=>[r.type==="textarea"?h.b():v.b(),v.m(s.value),v.is("disabled",d.value),v.is("exceed",G.value),{[v.b("group")]:o.prepend||o.append,[v.m("prefix")]:o.prefix||r.prefixIcon,[v.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:O.value&&F.value,[v.b("hidden")]:r.type==="hidden"},l.class]),c=V(()=>[v.e("wrapper"),v.is("focus",k.value)]),{form:p,formItem:u}=Ni(),{inputId:f}=vs(r,{formItemContext:u}),s=Vr(),d=Kn(),v=De("input"),h=De("textarea"),m=Ht(),y=Ht(),b=re(!1),_=re(!1),S=re(),x=Ht(r.inputStyle),T=V(()=>m.value||y.value),{wrapperRef:E,isFocused:k,handleFocus:D,handleBlur:W}=Yv(T,{disabled:d,afterBlur(){var _e;r.validateEvent&&((_e=u==null?void 0:u.validate)==null||_e.call(u,"blur").catch(Te=>void 0))}}),I=V(()=>{var _e;return(_e=p==null?void 0:p.statusIcon)!=null?_e:!1}),U=V(()=>(u==null?void 0:u.validateState)||""),A=V(()=>U.value&&w2[U.value]),ee=V(()=>_.value?KA:hA),de=V(()=>[l.style]),z=V(()=>[r.inputStyle,x.value,{resize:r.resize}]),q=V(()=>Qt(r.modelValue)?"":String(r.modelValue)),O=V(()=>r.clearable&&!d.value&&!r.readonly&&!!q.value&&(k.value||b.value)),F=V(()=>r.showPassword&&!d.value&&!!q.value),R=V(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!d.value&&!r.readonly&&!r.showPassword),P=V(()=>q.value.length),G=V(()=>!!R.value&&P.value>Number(r.maxlength)),$=V(()=>!!o.suffix||!!r.suffixIcon||O.value||r.showPassword||R.value||!!U.value&&I.value),M=V(()=>!!Object.keys(r.modelModifiers).length),[ne,X]=dR(m);un(y,_e=>{if(J(),!R.value||r.resize!=="both"&&r.resize!=="horizontal")return;const Te=_e[0],{width:Oe}=Te.contentRect;S.value={right:`calc(100% - ${Oe+22-10}px)`}});const te=()=>{const{type:_e,autosize:Te}=r;if(!(!pt||_e!=="textarea"||!y.value))if(Te){const Oe=Ze(Te)?Te.minRows:void 0,tt=Ze(Te)?Te.maxRows:void 0,Ce=q0(y.value,Oe,tt);x.value={overflowY:"hidden",...Ce},We(()=>{y.value.offsetHeight,x.value=Ce})}else x.value={minHeight:q0(y.value).minHeight}},J=(_e=>{let Te=!1;return()=>{var Oe;if(Te||!r.autosize)return;((Oe=y.value)==null?void 0:Oe.offsetParent)===null||(setTimeout(_e),Te=!0)}})(te),oe=()=>{const _e=T.value,Te=r.formatter?r.formatter(q.value):q.value;!_e||_e.value===Te||r.type==="file"||(_e.value=Te)},pe=_e=>{const{trim:Te,number:Oe}=r.modelModifiers;return Te&&(_e=_e.trim()),Oe&&(_e=`${X0(_e)}`),r.formatter&&r.parser&&(_e=r.parser(_e)),_e},N=async _e=>{if(H.value)return;const{lazy:Te}=r.modelModifiers;let{value:Oe}=_e.target;if(Te){i(sr,Oe);return}if(Oe=pe(Oe),String(Oe)===q.value){r.formatter&&oe();return}ne(),i(nt,Oe),i(sr,Oe),await We(),(r.formatter&&r.parser||!M.value)&&oe(),X()},C=async _e=>{let{value:Te}=_e.target;Te=pe(Te),r.modelModifiers.lazy&&i(nt,Te),i(Mt,Te,_e),await We(),oe()},{isComposing:H,handleCompositionStart:K,handleCompositionUpdate:L,handleCompositionEnd:B}=N2({emit:i,afterComposition:N}),Z=()=>{_.value=!_.value},ce=()=>{var _e;return(_e=T.value)==null?void 0:_e.focus()},le=()=>{var _e;return(_e=T.value)==null?void 0:_e.blur()},Y=_e=>{b.value=!1,i("mouseleave",_e)},he=_e=>{b.value=!0,i("mouseenter",_e)},ve=_e=>{i("keydown",_e)},ge=()=>{var _e;(_e=T.value)==null||_e.select()},Ee=()=>{i(nt,""),i(Mt,""),i("clear"),i(sr,"")};return ke(()=>r.modelValue,()=>{var _e;We(()=>te()),r.validateEvent&&((_e=u==null?void 0:u.validate)==null||_e.call(u,"change").catch(Te=>void 0))}),ke(q,_e=>{if(!T.value)return;const{trim:Te,number:Oe}=r.modelModifiers,tt=T.value.value,Ce=(Oe||r.type==="number")&&!/^0\d/.test(tt)?`${X0(tt)}`:tt;Ce!==_e&&(document.activeElement===T.value&&T.value.type!=="range"&&Te&&Ce.trim()===_e||oe())}),ke(()=>r.type,async()=>{await We(),oe(),te()}),et(()=>{!r.formatter&&r.parser,oe(),We(te)}),t({input:m,textarea:y,ref:T,textareaStyle:z,autosize:Fn(r,"autosize"),isComposing:H,focus:ce,blur:le,select:ge,clear:Ee,resizeTextarea:te}),(_e,Te)=>(j(),ae("div",{class:se([a.value,{[w(v).bm("group","append")]:_e.$slots.append,[w(v).bm("group","prepend")]:_e.$slots.prepend}]),style:He(de.value),onMouseenter:he,onMouseleave:Y},[ye(" input "),e.type!=="textarea"?(j(),ae(Ve,{key:0},[ye(" prepend slot "),_e.$slots.prepend?(j(),ae("div",{key:0,class:se(w(v).be("group","prepend"))},[xe(_e.$slots,"prepend")],2)):ye("v-if",!0),ie("div",{ref_key:"wrapperRef",ref:E,class:se(c.value)},[ye(" prefix slot "),_e.$slots.prefix||e.prefixIcon?(j(),ae("span",{key:0,class:se(w(v).e("prefix"))},[ie("span",{class:se(w(v).e("prefix-inner"))},[xe(_e.$slots,"prefix"),e.prefixIcon?(j(),me(w(Ne),{key:0,class:se(w(v).e("icon"))},{default:fe(()=>[(j(),me(st(e.prefixIcon)))]),_:1},8,["class"])):ye("v-if",!0)],2)],2)):ye("v-if",!0),ie("input",zt({id:w(f),ref_key:"input",ref:m,class:w(v).e("inner")},w(g),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,type:e.showPassword?_.value?"text":"password":e.type,disabled:w(d),readonly:e.readonly,autocomplete:e.autocomplete,tabindex:e.tabindex,"aria-label":e.ariaLabel,placeholder:e.placeholder,style:e.inputStyle,form:e.form,autofocus:e.autofocus,role:e.containerRole,inputmode:e.inputmode,onCompositionstart:Te[0]||(Te[0]=(...Oe)=>w(K)&&w(K)(...Oe)),onCompositionupdate:Te[1]||(Te[1]=(...Oe)=>w(L)&&w(L)(...Oe)),onCompositionend:Te[2]||(Te[2]=(...Oe)=>w(B)&&w(B)(...Oe)),onInput:N,onChange:C,onKeydown:ve}),null,16,hR),ye(" suffix slot "),$.value?(j(),ae("span",{key:1,class:se(w(v).e("suffix"))},[ie("span",{class:se(w(v).e("suffix-inner"))},[!O.value||!F.value||!R.value?(j(),ae(Ve,{key:0},[xe(_e.$slots,"suffix"),e.suffixIcon?(j(),me(w(Ne),{key:0,class:se(w(v).e("icon"))},{default:fe(()=>[(j(),me(st(e.suffixIcon)))]),_:1},8,["class"])):ye("v-if",!0)],64)):ye("v-if",!0),O.value?(j(),me(w(Ne),{key:1,class:se([w(v).e("icon"),w(v).e("clear")]),onMousedown:Qe(w(rt),["prevent"]),onClick:Ee},{default:fe(()=>[(j(),me(st(e.clearIcon)))]),_:1},8,["class","onMousedown"])):ye("v-if",!0),F.value?(j(),me(w(Ne),{key:2,class:se([w(v).e("icon"),w(v).e("password")]),onClick:Z,onMousedown:Qe(w(rt),["prevent"]),onMouseup:Qe(w(rt),["prevent"])},{default:fe(()=>[(j(),me(st(ee.value)))]),_:1},8,["class","onMousedown","onMouseup"])):ye("v-if",!0),R.value?(j(),ae("span",{key:3,class:se([w(v).e("count"),w(v).is("outside",e.wordLimitPosition==="outside")])},[ie("span",{class:se(w(v).e("count-inner"))},Ae(P.value)+" / "+Ae(e.maxlength),3)],2)):ye("v-if",!0),U.value&&A.value&&I.value?(j(),me(w(Ne),{key:4,class:se([w(v).e("icon"),w(v).e("validateIcon"),w(v).is("loading",U.value==="validating")])},{default:fe(()=>[(j(),me(st(A.value)))]),_:1},8,["class"])):ye("v-if",!0)],2)],2)):ye("v-if",!0)],2),ye(" append slot "),_e.$slots.append?(j(),ae("div",{key:1,class:se(w(v).be("group","append"))},[xe(_e.$slots,"append")],2)):ye("v-if",!0)],64)):(j(),ae(Ve,{key:1},[ye(" textarea "),ie("textarea",zt({id:w(f),ref_key:"textarea",ref:y,class:[w(h).e("inner"),w(v).is("focus",w(k))]},w(g),{name:e.name,minlength:e.minlength,maxlength:e.maxlength,tabindex:e.tabindex,disabled:w(d),readonly:e.readonly,autocomplete:e.autocomplete,style:z.value,"aria-label":e.ariaLabel,placeholder:e.placeholder,form:e.form,autofocus:e.autofocus,rows:e.rows,role:e.containerRole,onCompositionstart:Te[3]||(Te[3]=(...Oe)=>w(K)&&w(K)(...Oe)),onCompositionupdate:Te[4]||(Te[4]=(...Oe)=>w(L)&&w(L)(...Oe)),onCompositionend:Te[5]||(Te[5]=(...Oe)=>w(B)&&w(B)(...Oe)),onInput:N,onFocus:Te[6]||(Te[6]=(...Oe)=>w(D)&&w(D)(...Oe)),onBlur:Te[7]||(Te[7]=(...Oe)=>w(W)&&w(W)(...Oe)),onChange:C,onKeydown:ve}),null,16,pR),R.value?(j(),ae("span",{key:0,style:He(S.value),class:se([w(v).e("count"),w(v).is("outside",e.wordLimitPosition==="outside")])},Ae(P.value)+" / "+Ae(e.maxlength),7)):ye("v-if",!0)],64))],38))}});const gs=gt(gR),mR=Fe({distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Se([String,Object,Array]),default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Array,Object],default:""},noresize:Boolean,tag:{type:String,default:"div"},always:Boolean,minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:String,role:String,...oi(["ariaLabel","ariaOrientation"])}),z2={"end-reached":e=>["left","right","top","bottom"].includes(e),scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(Ye)},yR=Fe({always:{type:Boolean,default:!0},minSize:{type:Number,required:!0}}),bo=4,bR={vertical:{offset:"offsetHeight",scroll:"scrollTop",scrollSize:"scrollHeight",size:"height",key:"vertical",axis:"Y",client:"clientY",direction:"top"},horizontal:{offset:"offsetWidth",scroll:"scrollLeft",scrollSize:"scrollWidth",size:"width",key:"horizontal",axis:"X",client:"clientX",direction:"left"}},_R=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),wR=Fe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),qv=Symbol("scrollbarContextKey"),SR="Thumb";var J0=we({__name:"thumb",props:wR,setup(e){const t=e,n=Ue(qv),r=De("scrollbar");n||fn(SR,"can not inject scrollbar context");const i=re(),l=re(),g=re({}),o=re(!1);let a=!1,c=!1,p=0,u=0,f=pt?document.onselectstart:null;const s=V(()=>bR[t.vertical?"vertical":"horizontal"]),d=V(()=>_R({size:t.size,move:t.move,bar:s.value})),v=V(()=>i.value[s.value.offset]**2/n.wrapElement[s.value.scrollSize]/t.ratio/l.value[s.value.offset]),h=E=>{var k;if(E.stopPropagation(),E.ctrlKey||[1,2].includes(E.button))return;(k=window.getSelection())==null||k.removeAllRanges(),y(E);const D=E.currentTarget;!D||(g.value[s.value.axis]=D[s.value.offset]-(E[s.value.client]-D.getBoundingClientRect()[s.value.direction]))},m=E=>{if(!l.value||!i.value||!n.wrapElement)return;const k=Math.abs(E.target.getBoundingClientRect()[s.value.direction]-E[s.value.client]),D=l.value[s.value.offset]/2,W=(k-D)*100*v.value/i.value[s.value.offset];n.wrapElement[s.value.scroll]=W*n.wrapElement[s.value.scrollSize]/100},y=E=>{E.stopImmediatePropagation(),a=!0,p=n.wrapElement.scrollHeight,u=n.wrapElement.scrollWidth,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),f=document.onselectstart,document.onselectstart=()=>!1},b=E=>{if(!i.value||!l.value||a===!1)return;const k=g.value[s.value.axis];if(!k)return;const D=(i.value.getBoundingClientRect()[s.value.direction]-E[s.value.client])*-1,W=l.value[s.value.offset]-k,I=(D-W)*100*v.value/i.value[s.value.offset];s.value.scroll==="scrollLeft"?n.wrapElement[s.value.scroll]=I*u/100:n.wrapElement[s.value.scroll]=I*p/100},_=()=>{a=!1,g.value[s.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),T(),c&&(o.value=!1)},S=()=>{c=!1,o.value=!!t.size},x=()=>{c=!0,o.value=a};kt(()=>{T(),document.removeEventListener("mouseup",_)});const T=()=>{document.onselectstart!==f&&(document.onselectstart=f)};return Ft(Fn(n,"scrollbarElement"),"mousemove",S),Ft(Fn(n,"scrollbarElement"),"mouseleave",x),(E,k)=>(j(),me(vr,{name:w(r).b("fade"),persisted:""},{default:fe(()=>[Ct(ie("div",{ref_key:"instance",ref:i,class:se([w(r).e("bar"),w(r).is(s.value.key)]),onMousedown:m,onClick:k[0]||(k[0]=Qe(()=>{},["stop"]))},[ie("div",{ref_key:"thumb",ref:l,class:se(w(r).e("thumb")),style:He(d.value),onMousedown:h},null,38)],34),[[Yt,e.always||o.value]])]),_:1},8,["name"]))}}),CR=we({__name:"bar",props:yR,setup(e,{expose:t}){const n=e,r=Ue(qv),i=re(0),l=re(0),g=re(""),o=re(""),a=re(1),c=re(1);return t({handleScroll:f=>{if(f){const s=f.offsetHeight-bo,d=f.offsetWidth-bo;l.value=f.scrollTop*100/s*a.value,i.value=f.scrollLeft*100/d*c.value}},update:()=>{const f=r==null?void 0:r.wrapElement;if(!f)return;const s=f.offsetHeight-bo,d=f.offsetWidth-bo,v=s**2/f.scrollHeight,h=d**2/f.scrollWidth,m=Math.max(v,n.minSize),y=Math.max(h,n.minSize);a.value=v/(s-v)/(m/(s-m)),c.value=h/(d-h)/(y/(d-y)),o.value=m+bo<s?`${m}px`:"",g.value=y+bo<d?`${y}px`:""}}),(f,s)=>(j(),ae(Ve,null,[ue(J0,{move:i.value,ratio:c.value,size:g.value,always:e.always},null,8,["move","ratio","size","always"]),ue(J0,{move:l.value,ratio:a.value,size:o.value,vertical:"",always:e.always},null,8,["move","ratio","size","always"])],64))}});const xR=["tabindex"],TR="ElScrollbar";var ER=we({name:TR,__name:"scrollbar",props:mR,emits:z2,setup(e,{expose:t,emit:n}){const r=e,i=n,l=De("scrollbar");let g,o,a,c=0,p=0,u="";const f={bottom:!1,top:!1,right:!1,left:!1},s=re(),d=re(),v=re(),h=re(),m=V(()=>{const I={},U=bn(r.height),A=bn(r.maxHeight);return U&&(I.height=U),A&&(I.maxHeight=A),[r.wrapStyle,I]}),y=V(()=>[r.wrapClass,l.e("wrap"),{[l.em("wrap","hidden-default")]:!r.native}]),b=V(()=>[l.e("view"),r.viewClass]),_=I=>{var U;return(U=f[I])!=null?U:!1},S={top:"bottom",bottom:"top",left:"right",right:"left"},x=I=>{const U=S[u];if(!U)return;const A=I[u],ee=I[U];A&&!f[u]&&(f[u]=!0),!ee&&f[U]&&(f[U]=!1)},T=()=>{var I;if(d.value){(I=h.value)==null||I.handleScroll(d.value);const U=c,A=p;c=d.value.scrollTop,p=d.value.scrollLeft;const ee={bottom:c+d.value.clientHeight>=d.value.scrollHeight-r.distance,top:c<=r.distance&&U!==0,right:p+d.value.clientWidth>=d.value.scrollWidth-r.distance&&A!==p,left:p<=r.distance&&A!==0};if(i("scroll",{scrollTop:c,scrollLeft:p}),U!==c&&(u=c>U?"bottom":"top"),A!==p&&(u=p>A?"right":"left"),r.distance>0){if(_(u))return;x(ee)}ee[u]&&i("end-reached",u)}};function E(I,U){Ze(I)?d.value.scrollTo(I):Ye(I)&&Ye(U)&&d.value.scrollTo(I,U)}const k=I=>{!Ye(I)||(d.value.scrollTop=I)},D=I=>{!Ye(I)||(d.value.scrollLeft=I)},W=()=>{var I;(I=h.value)==null||I.update(),f[u]=!1};return ke(()=>r.noresize,I=>{I?(g==null||g(),o==null||o(),a==null||a()):({stop:g}=un(v,W),{stop:o}=un(d,W),a=Ft("resize",W))},{immediate:!0}),ke(()=>[r.maxHeight,r.height],()=>{r.native||We(()=>{var I;W(),d.value&&((I=h.value)==null||I.handleScroll(d.value))})}),wt(qv,mt({scrollbarElement:s,wrapElement:d})),a_(()=>{d.value&&(d.value.scrollTop=c,d.value.scrollLeft=p)}),et(()=>{r.native||We(()=>{W()})}),as(()=>W()),t({wrapRef:d,update:W,scrollTo:E,setScrollTop:k,setScrollLeft:D,handleScroll:T}),(I,U)=>(j(),ae("div",{ref_key:"scrollbarRef",ref:s,class:se(w(l).b())},[ie("div",{ref_key:"wrapRef",ref:d,class:se(y.value),style:He(m.value),tabindex:e.tabindex,onScroll:T},[(j(),me(st(e.tag),{id:e.id,ref_key:"resizeRef",ref:v,class:se(b.value),style:He(e.viewStyle),role:e.role,"aria-label":e.ariaLabel,"aria-orientation":e.ariaOrientation},{default:fe(()=>[xe(I.$slots,"default")]),_:3},8,["id","class","style","role","aria-label","aria-orientation"]))],46,xR),e.native?ye("v-if",!0):(j(),me(CR,{key:0,ref_key:"barRef",ref:h,always:e.always,"min-size":e.minSize},null,8,["always","min-size"]))],2))}});const $2=gt(ER),j2=Fe({virtualRef:{type:Se(Object)},virtualTriggering:Boolean,onMouseenter:{type:Se(Function)},onMouseleave:{type:Se(Function)},onClick:{type:Se(Function)},onKeydown:{type:Se(Function)},onFocus:{type:Se(Function)},onBlur:{type:Se(Function)},onContextmenu:{type:Se(Function)},id:String,open:Boolean}),Re={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},oa=Fe({...j2,disabled:Boolean,trigger:{type:Se([String,Array]),default:"hover"},triggerKeys:{type:Se(Array),default:()=>[Re.enter,Re.numpadEnter,Re.space]},focusOnTarget:Boolean}),kR=Ff({type:Se(Boolean),default:null}),OR=Ff({type:Se(Function)}),AR=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:kR,[n]:OR};return{useModelToggle:({indicator:g,toggleReason:o,shouldHideWhenRouteChanges:a,shouldProceed:c,onShow:p,onHide:u})=>{const f=it(),{emit:s}=f,d=f.props,v=V(()=>Be(d[n])),h=V(()=>d[e]===null),m=T=>{g.value!==!0&&(g.value=!0,o&&(o.value=T),Be(p)&&p(T))},y=T=>{g.value!==!1&&(g.value=!1,o&&(o.value=T),Be(u)&&u(T))},b=T=>{if(d.disabled===!0||Be(c)&&!c())return;const E=v.value&&pt;E&&s(t,!0),(h.value||!E)&&m(T)},_=T=>{if(d.disabled===!0||!pt)return;const E=v.value&&pt;E&&s(t,!1),(h.value||!E)&&y(T)},S=T=>{!An(T)||(d.disabled&&T?v.value&&s(t,!1):g.value!==T&&(T?m():y()))},x=()=>{g.value?_():b()};return ke(()=>d[e],S),a&&f.appContext.config.globalProperties.$route!==void 0&&ke(()=>({...f.proxy.$route}),()=>{a.value&&g.value&&_()}),et(()=>{S(d[e])}),{hide:_,show:b,toggle:x,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}},V2=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],U2=Fe({role:{type:String,values:V2,default:"tooltip"}}),{useModelToggleProps:PR,useModelToggleEmits:IR,useModelToggle:MR}=AR("visible"),RR=Fe({...U2,...PR,...Ut,...oa,...D2,showArrow:{type:Boolean,default:!0}}),DR=[...IR,"before-show","before-hide","show","hide","open","close"],Zv=Symbol("popper"),H2=Symbol("popperContent");var LR=we({name:"ElPopper",inheritAttrs:!1,__name:"popper",props:U2,setup(e,{expose:t}){const n=e,r=re(),i=re(),l=re(),g=re(),o=V(()=>n.role),a={triggerRef:r,popperInstanceRef:i,contentRef:l,referenceRef:g,role:o};return t(a),wt(Zv,a),(c,p)=>xe(c.$slots,"default")}}),FR=we({name:"ElPopperArrow",inheritAttrs:!1,__name:"arrow",setup(e,{expose:t}){const n=De("popper"),{arrowRef:r,arrowStyle:i}=Ue(H2,void 0);return kt(()=>{r.value=void 0}),t({arrowRef:r}),(l,g)=>(j(),ae("span",{ref_key:"arrowRef",ref:r,class:se(w(n).e("arrow")),style:He(w(i)),"data-popper-arrow":""},null,6))}});const W2=Symbol("elForwardRef"),BR=e=>{wt(W2,{setForwardRef:n=>{e.value=n}})},NR=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),zR="ElOnlyChild",$R=we({name:zR,setup(e,{slots:t,attrs:n}){var r;const i=Ue(W2),l=NR((r=i==null?void 0:i.setForwardRef)!=null?r:rt);return()=>{var g;const o=(g=t.default)==null?void 0:g.call(t,n);if(!o)return null;const[a,c]=G2(o);return a?Ct(Pi(a,n),[[l]]):null}}});function G2(e){if(!e)return[null,0];const t=e,n=t.filter(r=>r.type!==ln).length;for(const r of t){if(Ze(r))switch(r.type){case ln:continue;case ss:case"svg":return[Q0(r),n];case Ve:return G2(r.children);default:return[r,n]}return[Q0(r),n]}return[null,0]}function Q0(e){const t=De("only-child");return ue("span",{class:t.e("content")},[e])}var jR=we({name:"ElPopperTrigger",inheritAttrs:!1,__name:"trigger",props:j2,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=Ue(Zv,void 0);BR(i);const l=V(()=>o.value?n.id:void 0),g=V(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),o=V(()=>{if(r&&r.value!=="tooltip")return r.value}),a=V(()=>o.value?`${n.open}`:void 0);let c;const p=["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"];return et(()=>{ke(()=>n.virtualRef,u=>{u&&(i.value=cn(u))},{immediate:!0}),ke(i,(u,f)=>{c==null||c(),c=void 0,Or(f)&&p.forEach(s=>{const d=n[s];d&&f.removeEventListener(s.slice(2).toLowerCase(),d,["onFocus","onBlur"].includes(s))}),Or(u)&&(p.forEach(s=>{const d=n[s];d&&u.addEventListener(s.slice(2).toLowerCase(),d,["onFocus","onBlur"].includes(s))}),Al(u)&&(c=ke([l,g,o,a],s=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((d,v)=>{Qt(s[v])?u.removeAttribute(d):u.setAttribute(d,s[v])})},{immediate:!0}))),Or(f)&&Al(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(s=>f.removeAttribute(s))},{immediate:!0})}),kt(()=>{if(c==null||c(),c=void 0,i.value&&Or(i.value)){const u=i.value;p.forEach(f=>{const s=n[f];s&&u.removeEventListener(f.slice(2).toLowerCase(),s,["onFocus","onBlur"].includes(f))}),i.value=void 0}}),t({triggerRef:i}),(u,f)=>e.virtualTriggering?ye("v-if",!0):(j(),me(w($R),zt({key:0},u.$attrs,{"aria-controls":l.value,"aria-describedby":g.value,"aria-expanded":a.value,"aria-haspopup":o.value}),{default:fe(()=>[xe(u.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});const Ed="focus-trap.focus-after-trapped",kd="focus-trap.focus-after-released",VR="focus-trap.focusout-prevented",ey={cancelable:!0,bubbles:!1},UR={cancelable:!0,bubbles:!1},ty="focusAfterTrapped",ny="focusAfterReleased",K2=Symbol("elFocusTrap"),Jv=re(),zf=re(0),Qv=re(0);let Mu=0;const Y2=e=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t},ry=(e,t)=>{for(const n of e)if(!HR(n,t))return n},HR=(e,t)=>{if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},WR=e=>{const t=Y2(e),n=ry(t,e),r=ry(t.reverse(),e);return[n,r]},GR=e=>e instanceof HTMLInputElement&&"select"in e,Wi=(e,t)=>{if(e){const n=document.activeElement;Bf(e,{preventScroll:!0}),Qv.value=window.performance.now(),e!==n&&GR(e)&&t&&e.select()}};function iy(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const KR=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=iy(e,r),e.unshift(r)},remove:r=>{var i,l;e=iy(e,r),(l=(i=e[0])==null?void 0:i.resume)==null||l.call(i)}}},YR=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(Wi(r,t),document.activeElement!==n)return},ay=KR(),XR=()=>zf.value>Qv.value,Ru=()=>{Jv.value="pointer",zf.value=window.performance.now()},oy=()=>{Jv.value="keyboard",zf.value=window.performance.now()},qR=()=>(et(()=>{Mu===0&&(document.addEventListener("mousedown",Ru),document.addEventListener("touchstart",Ru),document.addEventListener("keydown",oy)),Mu++}),kt(()=>{Mu--,Mu<=0&&(document.removeEventListener("mousedown",Ru),document.removeEventListener("touchstart",Ru),document.removeEventListener("keydown",oy))}),{focusReason:Jv,lastUserFocusTimestamp:zf,lastAutomatedFocusTimestamp:Qv}),Du=e=>new CustomEvent(VR,{...UR,detail:e}),vi=(e,t,{checkForDefaultPrevented:n=!0}={})=>i=>{const l=e==null?void 0:e(i);if(n===!1||!l)return t==null?void 0:t(i)},dn=e=>{if(e.code&&e.code!=="Unidentified")return e.code;const t=X2(e);if(t){if(Object.values(Re).includes(t))return t;switch(t){case" ":return Re.space;default:return""}}return""},X2=e=>{let t=e.key&&e.key!=="Unidentified"?e.key:"";if(!t&&e.type==="keyup"&&iR()){const n=e.target;t=n.value.charAt(n.selectionStart-1)}return t};let Ao=[];const sy=e=>{dn(e)===Re.esc&&Ao.forEach(n=>n(e))},ZR=e=>{et(()=>{Ao.length===0&&document.addEventListener("keydown",sy),pt&&Ao.push(e)}),kt(()=>{Ao=Ao.filter(t=>t!==e),Ao.length===0&&pt&&document.removeEventListener("keydown",sy)})};var JR=we({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[ty,ny,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=re();let r,i;const{focusReason:l}=qR();ZR(d=>{e.trapped&&!g.paused&&t("release-requested",d)});const g={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},o=d=>{if(!e.loop&&!e.trapped||g.paused)return;const{altKey:v,ctrlKey:h,metaKey:m,currentTarget:y,shiftKey:b}=d,{loop:_}=e,x=dn(d)===Re.tab&&!v&&!h&&!m,T=document.activeElement;if(x&&T){const E=y,[k,D]=WR(E);if(k&&D){if(!b&&T===D){const I=Du({focusReason:l.value});t("focusout-prevented",I),I.defaultPrevented||(d.preventDefault(),_&&Wi(k,!0))}else if(b&&[k,E].includes(T)){const I=Du({focusReason:l.value});t("focusout-prevented",I),I.defaultPrevented||(d.preventDefault(),_&&Wi(D,!0))}}else if(T===E){const I=Du({focusReason:l.value});t("focusout-prevented",I),I.defaultPrevented||d.preventDefault()}}};wt(K2,{focusTrapRef:n,onKeydown:o}),ke(()=>e.focusTrapEl,d=>{d&&(n.value=d)},{immediate:!0}),ke([n],([d],[v])=>{d&&(d.addEventListener("keydown",o),d.addEventListener("focusin",p),d.addEventListener("focusout",u)),v&&(v.removeEventListener("keydown",o),v.removeEventListener("focusin",p),v.removeEventListener("focusout",u))});const a=d=>{t(ty,d)},c=d=>t(ny,d),p=d=>{const v=w(n);if(!v)return;const h=d.target,m=d.relatedTarget,y=h&&v.contains(h);e.trapped||m&&v.contains(m)||(r=m),y&&t("focusin",d),!g.paused&&e.trapped&&(y?i=h:Wi(i,!0))},u=d=>{const v=w(n);if(!(g.paused||!v))if(e.trapped){const h=d.relatedTarget;!Qt(h)&&!v.contains(h)&&setTimeout(()=>{if(!g.paused&&e.trapped){const m=Du({focusReason:l.value});t("focusout-prevented",m),m.defaultPrevented||Wi(i,!0)}},0)}else{const h=d.target;h&&v.contains(h)||t("focusout",d)}};async function f(){await We();const d=w(n);if(d){ay.push(g);const v=d.contains(document.activeElement)?r:document.activeElement;if(r=v,!d.contains(v)){const m=new Event(Ed,ey);d.addEventListener(Ed,a),d.dispatchEvent(m),m.defaultPrevented||We(()=>{let y=e.focusStartEl;je(y)||(Wi(y),document.activeElement!==y&&(y="first")),y==="first"&&YR(Y2(d),!0),(document.activeElement===v||y==="container")&&Wi(d)})}}}function s(){const d=w(n);if(d){d.removeEventListener(Ed,a);const v=new CustomEvent(kd,{...ey,detail:{focusReason:l.value}});d.addEventListener(kd,c),d.dispatchEvent(v),!v.defaultPrevented&&(l.value=="keyboard"||!XR()||d.contains(document.activeElement))&&Wi(r!=null?r:document.body),d.removeEventListener(kd,c),ay.remove(g),r=null,i=null}}return et(()=>{e.trapped&&f(),ke(()=>e.trapped,d=>{d?f():s()})}),kt(()=>{e.trapped&&s(),n.value&&(n.value.removeEventListener("keydown",o),n.value.removeEventListener("focusin",p),n.value.removeEventListener("focusout",u),n.value=void 0),r=null,i=null}),{onKeydown:o}}}),ms=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};function QR(e,t,n,r,i,l){return xe(e.$slots,"default",{handleKeydown:e.onKeydown})}var $f=ms(JR,[["render",QR]]);const eD=(e,t)=>{const n=re(!1),r=re(),i=()=>{t("focus")},l=c=>{var p;((p=c.detail)==null?void 0:p.focusReason)!=="pointer"&&(r.value="first",t("blur"))},g=c=>{e.visible&&!n.value&&(c.target&&(r.value=c.target),n.value=!0)},o=c=>{e.trapping||(c.detail.focusReason==="pointer"&&c.preventDefault(),n.value=!1)},a=()=>{n.value=!1,t("close")};return kt(()=>{r.value=void 0}),{focusStartRef:r,trapped:n,onFocusAfterReleased:l,onFocusAfterTrapped:i,onFocusInTrap:g,onFocusoutPrevented:o,onReleaseRequested:a}},tD=(e,t=[])=>{const{placement:n,strategy:r,popperOptions:i}=e,l={placement:n,strategy:r,...i,modifiers:[...rD(e),...t]};return iD(l,i==null?void 0:i.modifiers),l},nD=e=>{if(!!pt)return cn(e)};function rD(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:0,bottom:0,left:0,right:0}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function iD(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const aD=(e,t,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:a})=>{const c=oD(a);Object.assign(g.value,c)},requires:["computeStyles"]},i=V(()=>{const{onFirstUpdate:a,placement:c,strategy:p,modifiers:u}=w(n);return{onFirstUpdate:a,placement:c||"bottom",strategy:p||"absolute",modifiers:[...u||[],r,{name:"applyStyles",enabled:!1}]}}),l=Ht(),g=re({styles:{popper:{position:w(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),o=()=>{!l.value||(l.value.destroy(),l.value=void 0)};return ke(i,a=>{const c=w(l);c&&c.setOptions(a)},{deep:!0}),ke([e,t],([a,c])=>{o(),!(!a||!c)&&(l.value=WM(a,c,w(i)))}),kt(()=>{o()}),{state:V(()=>{var a;return{...((a=w(l))==null?void 0:a.state)||{}}}),styles:V(()=>w(g).styles),attributes:V(()=>w(g).attributes),update:()=>{var a;return(a=w(l))==null?void 0:a.update()},forceUpdate:()=>{var a;return(a=w(l))==null?void 0:a.forceUpdate()},instanceRef:V(()=>w(l))}};function oD(e){const t=Object.keys(e.elements),n=Zo(t.map(i=>[i,e.styles[i]||{}])),r=Zo(t.map(i=>[i,e.attributes[i]]));return{styles:n,attributes:r}}const sD=0,lD=e=>{const{popperInstanceRef:t,contentRef:n,triggerRef:r,role:i}=Ue(Zv,void 0),l=re(),g=V(()=>e.arrowOffset),o=V(()=>({name:"eventListeners",enabled:!!e.visible})),a=V(()=>{var m;const y=w(l),b=(m=w(g))!=null?m:sD;return{name:"arrow",enabled:!L6(y),options:{element:y,padding:b}}}),c=V(()=>({onFirstUpdate:()=>{d()},...tD(e,[w(a),w(o)])})),p=V(()=>nD(e.referenceEl)||w(r)),{attributes:u,state:f,styles:s,update:d,forceUpdate:v,instanceRef:h}=aD(p,n,c);return ke(h,m=>t.value=m,{flush:"sync"}),et(()=>{ke(()=>{var m,y;return(y=(m=w(p))==null?void 0:m.getBoundingClientRect)==null?void 0:y.call(m)},()=>{d()})}),kt(()=>{t.value=void 0}),{attributes:u,arrowRef:l,contentRef:n,instanceRef:h,state:f,styles:s,role:i,forceUpdate:v,update:d}},uD=(e,{attributes:t,styles:n,role:r})=>{const{nextZIndex:i}=Lf(),l=De("popper"),g=V(()=>w(t).popper),o=re(Ye(e.zIndex)?e.zIndex:i()),a=V(()=>[l.b(),l.is("pure",e.pure),l.is(e.effect),e.popperClass]),c=V(()=>[{zIndex:w(o)},w(n).popper,e.popperStyle||{}]),p=V(()=>r.value==="dialog"?"false":void 0),u=V(()=>w(n).arrow||{});return{ariaModal:p,arrowStyle:u,contentAttrs:g,contentClass:a,contentStyle:c,contentZIndex:o,updateZIndex:()=>{o.value=Ye(e.zIndex)?e.zIndex:i()}}};var cD=we({name:"ElPopperContent",__name:"content",props:L2,emits:JM,setup(e,{expose:t,emit:n}){const r=n,i=e,{focusStartRef:l,trapped:g,onFocusAfterReleased:o,onFocusAfterTrapped:a,onFocusInTrap:c,onFocusoutPrevented:p,onReleaseRequested:u}=eD(i,r),{attributes:f,arrowRef:s,contentRef:d,styles:v,instanceRef:h,role:m,update:y}=lD(i),{ariaModal:b,arrowStyle:_,contentAttrs:S,contentClass:x,contentStyle:T,updateZIndex:E}=uD(i,{styles:v,attributes:f,role:m}),k=Ue(qa,void 0);wt(H2,{arrowStyle:_,arrowRef:s}),k&&wt(qa,{...k,addInputId:rt,removeInputId:rt});let D;const W=(U=!0)=>{y(),U&&E()},I=()=>{W(!1),i.visible&&i.focusOnShow?g.value=!0:i.visible===!1&&(g.value=!1)};return et(()=>{ke(()=>i.triggerTargetEl,(U,A)=>{D==null||D(),D=void 0;const ee=w(U||d.value),de=w(A||d.value);Or(ee)&&(D=ke([m,()=>i.ariaLabel,b,()=>i.id],z=>{["role","aria-label","aria-modal","id"].forEach((q,O)=>{Qt(z[O])?ee.removeAttribute(q):ee.setAttribute(q,z[O])})},{immediate:!0})),de!==ee&&Or(de)&&["role","aria-label","aria-modal","id"].forEach(z=>{de.removeAttribute(z)})},{immediate:!0}),ke(()=>i.visible,I,{immediate:!0})}),kt(()=>{D==null||D(),D=void 0,d.value=void 0}),t({popperContentRef:d,popperInstanceRef:h,updatePopper:W,contentStyle:T}),(U,A)=>(j(),ae("div",zt({ref_key:"contentRef",ref:d},w(S),{style:w(T),class:w(x),tabindex:"-1",onMouseenter:A[0]||(A[0]=ee=>U.$emit("mouseenter",ee)),onMouseleave:A[1]||(A[1]=ee=>U.$emit("mouseleave",ee))}),[ue(w($f),{loop:e.loop,trapped:w(g),"trap-on-focus-in":!0,"focus-trap-el":w(d),"focus-start-el":w(l),onFocusAfterTrapped:w(a),onFocusAfterReleased:w(o),onFocusin:w(c),onFocusoutPrevented:w(p),onReleaseRequested:w(u)},{default:fe(()=>[xe(U.$slots,"default")]),_:3},8,["loop","trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});const fD=gt(LR),eg=Symbol("elTooltip"),Wh=(e,t)=>Pe(e)?e.includes(t):e===t,_o=(e,t,n)=>r=>{Wh(w(e),t)&&n(r)};var dD=we({name:"ElTooltipTrigger",__name:"trigger",props:oa,setup(e,{expose:t}){const n=e,r=De("tooltip"),{controlled:i,id:l,open:g,onOpen:o,onClose:a,onToggle:c}=Ue(eg,void 0),p=re(null),u=()=>{if(w(i)||n.disabled)return!0},f=Fn(n,"trigger"),s=vi(u,_o(f,"hover",_=>{o(_),n.focusOnTarget&&_.target&&We(()=>{Bf(_.target,{preventScroll:!0})})})),d=vi(u,_o(f,"hover",a)),v=vi(u,_o(f,"click",_=>{_.button===0&&c(_)})),h=vi(u,_o(f,"focus",o)),m=vi(u,_o(f,"focus",a)),y=vi(u,_o(f,"contextmenu",_=>{_.preventDefault(),c(_)})),b=vi(u,_=>{const S=dn(_);n.triggerKeys.includes(S)&&(_.preventDefault(),c(_))});return t({triggerRef:p}),(_,S)=>(j(),me(w(jR),{id:w(l),"virtual-ref":e.virtualRef,open:w(g),"virtual-triggering":e.virtualTriggering,class:se(w(r).e("trigger")),onBlur:w(m),onClick:w(v),onContextmenu:w(y),onFocus:w(h),onMouseenter:w(s),onMouseleave:w(d),onKeydown:w(b)},{default:fe(()=>[xe(_.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});const q2=()=>{const e=Dv(),t=Xv(),n=V(()=>`${e.value}-popper-container-${t.prefix}`),r=V(()=>`#${n.value}`);return{id:n,selector:r}},hD=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},pD=()=>{const{id:e,selector:t}=q2();return l_(()=>{!pt||document.body.querySelector(t.value)||hD(e.value)}),{id:e,selector:t}},vD=e=>!e&&e!==0?[]:Pe(e)?e:[e];var gD=we({name:"ElTooltipContent",inheritAttrs:!1,__name:"content",props:Ut,setup(e,{expose:t}){const n=e,{selector:r}=q2(),i=De("tooltip"),l=re(),g=t2(()=>{var q;return(q=l.value)==null?void 0:q.popperContentRef});let o;const{controlled:a,id:c,open:p,trigger:u,onClose:f,onOpen:s,onShow:d,onHide:v,onBeforeShow:h,onBeforeHide:m}=Ue(eg,void 0),y=V(()=>n.transition||`${i.namespace.value}-fade-in-linear`),b=V(()=>n.persistent);kt(()=>{o==null||o()});const _=V(()=>w(b)?!0:w(p)),S=V(()=>n.disabled?!1:w(p)),x=V(()=>n.appendTo||r.value),T=V(()=>{var q;return(q=n.style)!=null?q:{}}),E=re(!0),k=()=>{v(),z()&&Bf(document.body,{preventScroll:!0}),E.value=!0},D=()=>{if(w(a))return!0},W=vi(D,()=>{n.enterable&&Wh(w(u),"hover")&&s()}),I=vi(D,()=>{Wh(w(u),"hover")&&f()}),U=()=>{var q,O;(O=(q=l.value)==null?void 0:q.updatePopper)==null||O.call(q),h==null||h()},A=()=>{m==null||m()},ee=()=>{d()},de=()=>{n.virtualTriggering||f()},z=q=>{var O;const F=(O=l.value)==null?void 0:O.popperContentRef,R=(q==null?void 0:q.relatedTarget)||document.activeElement;return F==null?void 0:F.contains(R)};return ke(()=>w(p),q=>{q?(E.value=!1,o=m8(g,()=>{if(w(a))return;vD(w(u)).every(F=>F!=="hover"&&F!=="focus")&&f()},{detectIframe:!0})):o==null||o()},{flush:"post"}),ke(()=>n.content,()=>{var q,O;(O=(q=l.value)==null?void 0:q.updatePopper)==null||O.call(q)}),t({contentRef:l,isFocusInsideContent:z}),(q,O)=>(j(),me(w(Nv),{disabled:!e.teleported,to:x.value},{default:fe(()=>[_.value||!E.value?(j(),me(vr,{key:0,name:y.value,appear:!b.value,onAfterLeave:k,onBeforeEnter:U,onAfterEnter:ee,onBeforeLeave:A,persisted:""},{default:fe(()=>[Ct(ue(w(cD),zt({id:w(c),ref_key:"contentRef",ref:l},q.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":E.value,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,T.value],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:S.value,"z-index":e.zIndex,loop:e.loop,onMouseenter:w(W),onMouseleave:w(I),onBlur:de,onClose:w(f)}),{default:fe(()=>[xe(q.$slots,"default")]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","arrow-offset","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","loop","onMouseenter","onMouseleave","onClose"]),[[Yt,S.value]])]),_:3},8,["name","appear"])):ye("v-if",!0)]),_:3},8,["disabled","to"]))}});const mD=["innerHTML"],yD={key:1};var bD=we({name:"ElTooltip",__name:"tooltip",props:RR,emits:DR,setup(e,{expose:t,emit:n}){const r=e,i=n;pD();const l=De("tooltip"),g=zr(),o=re(),a=re(),c=()=>{var _;const S=w(o);S&&((_=S.popperInstanceRef)==null||_.update())},p=re(!1),u=re(),{show:f,hide:s,hasUpdateHandler:d}=MR({indicator:p,toggleReason:u}),{onOpen:v,onClose:h}=tR({showAfter:Fn(r,"showAfter"),hideAfter:Fn(r,"hideAfter"),autoClose:Fn(r,"autoClose"),open:f,close:s}),m=V(()=>An(r.visible)&&!d.value),y=V(()=>[l.b(),r.popperClass]);wt(eg,{controlled:m,id:g,open:Ga(p),trigger:Fn(r,"trigger"),onOpen:v,onClose:h,onToggle:_=>{w(p)?h(_):v(_)},onShow:()=>{i("show",u.value)},onHide:()=>{i("hide",u.value)},onBeforeShow:()=>{i("before-show",u.value)},onBeforeHide:()=>{i("before-hide",u.value)},updatePopper:c}),ke(()=>r.disabled,_=>{_&&p.value&&(p.value=!1)});const b=_=>{var S;return(S=a.value)==null?void 0:S.isFocusInsideContent(_)};return o_(()=>p.value&&s()),kt(()=>{u.value=void 0}),t({popperRef:o,contentRef:a,isFocusInsideContent:b,updatePopper:c,onOpen:v,onClose:h,hide:s}),(_,S)=>(j(),me(w(fD),{ref_key:"popperRef",ref:o,role:e.role},{default:fe(()=>[ue(dD,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering,"focus-on-target":e.focusOnTarget},{default:fe(()=>[_.$slots.default?xe(_.$slots,"default",{key:0}):ye("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering","focus-on-target"]),ue(gD,{ref_key:"contentRef",ref:a,"aria-label":e.ariaLabel,"boundaries-padding":e.boundariesPadding,content:e.content,disabled:e.disabled,effect:e.effect,enterable:e.enterable,"fallback-placements":e.fallbackPlacements,"hide-after":e.hideAfter,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,persistent:e.persistent,"popper-class":y.value,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,"arrow-offset":e.arrowOffset,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.showAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo,loop:e.loop},{default:fe(()=>[xe(_.$slots,"content",{},()=>[e.rawContent?(j(),ae("span",{key:0,innerHTML:e.content},null,8,mD)):(j(),ae("span",yD,Ae(e.content),1))]),e.showArrow?(j(),me(w(FR),{key:0})):ye("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","arrow-offset","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to","loop"])]),_:3},8,["role"]))}});const si=gt(bD),_D=Fe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:Se([String,Object,Array])},offset:{type:Se(Array),default:()=>[0,0]},badgeClass:{type:String}});var wD=we({name:"ElBadge",__name:"badge",props:_D,setup(e,{expose:t}){const n=e,r=De("badge"),i=V(()=>n.isDot?"":Ye(n.value)&&Ye(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`),l=V(()=>{var g;return[{backgroundColor:n.color,marginRight:bn(-n.offset[0]),marginTop:bn(n.offset[1])},(g=n.badgeStyle)!=null?g:{}]});return t({content:i}),(g,o)=>(j(),ae("div",{class:se(w(r).b())},[xe(g.$slots,"default"),ue(vr,{name:`${w(r).namespace.value}-zoom-in-center`},{default:fe(()=>[!e.hidden&&(i.value||e.isDot||g.$slots.content)?(j(),ae("sup",{key:0,class:se([w(r).e("content"),w(r).em("content",e.type),w(r).is("fixed",!!g.$slots.default),w(r).is("dot",e.isDot),w(r).is("hide-zero",!e.showZero&&e.value===0),e.badgeClass]),style:He(l.value)},[xe(g.$slots,"content",{value:i.value},()=>[qe(Ae(i.value),1)])],6)):ye("v-if",!0)]),_:3},8,["name"])],2))}});const SD=gt(wD),CD=["default","primary","success","warning","info","danger","text",""],xD=["button","submit","reset"],Gh=Fe({size:Nr,disabled:{type:Boolean,default:void 0},type:{type:String,values:CD,default:""},icon:{type:Nt},nativeType:{type:String,values:xD,default:"button"},loading:Boolean,loadingIcon:{type:Nt,default:()=>xl},plain:{type:Boolean,default:void 0},text:{type:Boolean,default:void 0},link:Boolean,bg:Boolean,autofocus:Boolean,round:{type:Boolean,default:void 0},circle:Boolean,dashed:{type:Boolean,default:void 0},color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Se([String,Object]),default:"button"}}),TD={click:e=>e instanceof MouseEvent},Z2=Symbol("buttonGroupContextKey"),jf=({from:e,replacement:t,scope:n,version:r,ref:i,type:l="API"},g)=>{ke(()=>w(g),o=>{},{immediate:!0})},ED=(e,t)=>{jf({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},V(()=>e.type==="text"));const n=Ue(Z2,void 0),r=au("button"),{form:i}=Ni(),l=Vr(V(()=>n==null?void 0:n.size)),g=Kn(),o=re(),a=ao(),c=V(()=>{var y;return e.type||(n==null?void 0:n.type)||((y=r.value)==null?void 0:y.type)||""}),p=V(()=>{var y,b,_;return(_=(b=e.autoInsertSpace)!=null?b:(y=r.value)==null?void 0:y.autoInsertSpace)!=null?_:!1}),u=V(()=>{var y,b,_;return(_=(b=e.plain)!=null?b:(y=r.value)==null?void 0:y.plain)!=null?_:!1}),f=V(()=>{var y,b,_;return(_=(b=e.round)!=null?b:(y=r.value)==null?void 0:y.round)!=null?_:!1}),s=V(()=>{var y,b,_;return(_=(b=e.text)!=null?b:(y=r.value)==null?void 0:y.text)!=null?_:!1}),d=V(()=>{var y,b,_;return(_=(b=e.dashed)!=null?b:(y=r.value)==null?void 0:y.dashed)!=null?_:!1}),v=V(()=>e.tag==="button"?{ariaDisabled:g.value||e.loading,disabled:g.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),h=V(()=>{var y;const b=(y=a.default)==null?void 0:y.call(a);if(p.value&&(b==null?void 0:b.length)===1){const _=b[0];if((_==null?void 0:_.type)===ss){const S=_.children;return/^\p{Unified_Ideograph}{2}$/u.test(S.trim())}}return!1});return{_disabled:g,_size:l,_type:c,_ref:o,_props:v,_plain:u,_round:f,_text:s,_dashed:d,shouldAddSpace:h,handleClick:y=>{if(g.value||e.loading){y.stopPropagation();return}e.nativeType==="reset"&&(i==null||i.resetFields()),t("click",y)}}};function mn(e,t){kD(e)&&(e="100%");var n=OD(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Lu(e){return Math.min(1,Math.max(0,e))}function kD(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function OD(e){return typeof e=="string"&&e.indexOf("%")!==-1}function J2(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Fu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Ia(e){return e.length===1?"0"+e:String(e)}function AD(e,t,n){return{r:mn(e,255)*255,g:mn(t,255)*255,b:mn(n,255)*255}}function ly(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,g=0,o=(r+i)/2;if(r===i)g=0,l=0;else{var a=r-i;switch(g=o>.5?a/(2-r-i):a/(r+i),r){case e:l=(t-n)/a+(t<n?6:0);break;case t:l=(n-e)/a+2;break;case n:l=(e-t)/a+4;break}l/=6}return{h:l,s:g,l:o}}function Od(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*(6*n):n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function PD(e,t,n){var r,i,l;if(e=mn(e,360),t=mn(t,100),n=mn(n,100),t===0)i=n,l=n,r=n;else{var g=n<.5?n*(1+t):n+t-n*t,o=2*n-g;r=Od(o,g,e+1/3),i=Od(o,g,e),l=Od(o,g,e-1/3)}return{r:r*255,g:i*255,b:l*255}}function uy(e,t,n){e=mn(e,255),t=mn(t,255),n=mn(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,g=r,o=r-i,a=r===0?0:o/r;if(r===i)l=0;else{switch(r){case e:l=(t-n)/o+(t<n?6:0);break;case t:l=(n-e)/o+2;break;case n:l=(e-t)/o+4;break}l/=6}return{h:l,s:a,v:g}}function ID(e,t,n){e=mn(e,360)*6,t=mn(t,100),n=mn(n,100);var r=Math.floor(e),i=e-r,l=n*(1-t),g=n*(1-i*t),o=n*(1-(1-i)*t),a=r%6,c=[n,g,l,l,o,n][a],p=[o,n,n,g,l,l][a],u=[l,l,o,n,n,g][a];return{r:c*255,g:p*255,b:u*255}}function cy(e,t,n,r){var i=[Ia(Math.round(e).toString(16)),Ia(Math.round(t).toString(16)),Ia(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function MD(e,t,n,r,i){var l=[Ia(Math.round(e).toString(16)),Ia(Math.round(t).toString(16)),Ia(Math.round(n).toString(16)),Ia(RD(r))];return i&&l[0].startsWith(l[0].charAt(1))&&l[1].startsWith(l[1].charAt(1))&&l[2].startsWith(l[2].charAt(1))&&l[3].startsWith(l[3].charAt(1))?l[0].charAt(0)+l[1].charAt(0)+l[2].charAt(0)+l[3].charAt(0):l.join("")}function RD(e){return Math.round(parseFloat(e)*255).toString(16)}function fy(e){return Xn(e)/255}function Xn(e){return parseInt(e,16)}function DD(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Kh={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 LD(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,l=null,g=!1,o=!1;return typeof e=="string"&&(e=ND(e)),typeof e=="object"&&(fi(e.r)&&fi(e.g)&&fi(e.b)?(t=AD(e.r,e.g,e.b),g=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):fi(e.h)&&fi(e.s)&&fi(e.v)?(r=Fu(e.s),i=Fu(e.v),t=ID(e.h,r,i),g=!0,o="hsv"):fi(e.h)&&fi(e.s)&&fi(e.l)&&(r=Fu(e.s),l=Fu(e.l),t=PD(e.h,r,l),g=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=J2(n),{ok:g,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var FD="[-\\+]?\\d+%?",BD="[-\\+]?\\d*\\.\\d+%?",na="(?:".concat(BD,")|(?:").concat(FD,")"),Ad="[\\s|\\(]+(".concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")\\s*\\)?"),Pd="[\\s|\\(]+(".concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")[,|\\s]+(").concat(na,")\\s*\\)?"),Tr={CSS_UNIT:new RegExp(na),rgb:new RegExp("rgb"+Ad),rgba:new RegExp("rgba"+Pd),hsl:new RegExp("hsl"+Ad),hsla:new RegExp("hsla"+Pd),hsv:new RegExp("hsv"+Ad),hsva:new RegExp("hsva"+Pd),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 ND(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Kh[e])e=Kh[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Tr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Tr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Tr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Tr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Tr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Tr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Tr.hex8.exec(e),n?{r:Xn(n[1]),g:Xn(n[2]),b:Xn(n[3]),a:fy(n[4]),format:t?"name":"hex8"}:(n=Tr.hex6.exec(e),n?{r:Xn(n[1]),g:Xn(n[2]),b:Xn(n[3]),format:t?"name":"hex"}:(n=Tr.hex4.exec(e),n?{r:Xn(n[1]+n[1]),g:Xn(n[2]+n[2]),b:Xn(n[3]+n[3]),a:fy(n[4]+n[4]),format:t?"name":"hex8"}:(n=Tr.hex3.exec(e),n?{r:Xn(n[1]+n[1]),g:Xn(n[2]+n[2]),b:Xn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function fi(e){return Boolean(Tr.CSS_UNIT.exec(String(e)))}var Ro=function(){function e(t,n){t===void 0&&(t=""),n===void 0&&(n={});var r;if(t instanceof e)return t;typeof t=="number"&&(t=DD(t)),this.originalInput=t;var i=LD(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.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=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),n,r,i,l=t.r/255,g=t.g/255,o=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),g<=.03928?r=g/12.92:r=Math.pow((g+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=J2(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=uy(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=uy(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=ly(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=ly(this.r,this.g,this.b),n=Math.round(t.h*360),r=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),cy(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),MD(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(n,", ").concat(r,")"):"rgba(".concat(t,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(n){return"".concat(Math.round(mn(n,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(n){return Math.round(mn(n,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+cy(this.r,this.g,this.b,!1),n=0,r=Object.entries(Kh);n<r.length;n++){var i=r[n],l=i[0],g=i[1];if(t===g)return l}return!1},e.prototype.toString=function(t){var n=Boolean(t);t=t!=null?t:this.format;var r=!1,i=this.a<1&&this.a>=0,l=!n&&i&&(t.startsWith("hex")||t==="name");return l?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(r=this.toRgbString()),t==="prgb"&&(r=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(r=this.toHexString()),t==="hex3"&&(r=this.toHexString(!0)),t==="hex4"&&(r=this.toHex8String(!0)),t==="hex8"&&(r=this.toHex8String()),t==="name"&&(r=this.toName()),t==="hsl"&&(r=this.toHslString()),t==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Lu(n.l),new e(n)},e.prototype.brighten=function(t){t===void 0&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(t/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(t/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(t/100)))),new e(n)},e.prototype.darken=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Lu(n.l),new e(n)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Lu(n.s),new e(n)},e.prototype.saturate=function(t){t===void 0&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Lu(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){n===void 0&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),l=n/100,g={r:(i.r-r.r)*l+r.r,g:(i.g-r.g)*l+r.g,b:(i.b-r.b)*l+r.b,a:(i.a-r.a)*l+r.a};return new e(g)},e.prototype.analogous=function(t,n){t===void 0&&(t=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,l=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,l.push(new e(r));return l},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,l=n.v,g=[],o=1/t;t--;)g.push(new e({h:r,s:i,v:l})),l=(l+o)%1;return g},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var n=this.toRgb(),r=new e(t).toRgb(),i=n.a+r.a*(1-n.a);return new e({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],l=360/t,g=1;g<t;g++)i.push(new e({h:(r+g*l)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function Vi(e,t=20){return e.mix("#141414",t).toString()}function zD(e){const t=Kn(),n=De("button");return V(()=>{let r={},i=e.color;if(i){const l=i.match(/var\((.*?)\)/);l&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(l[1]));const g=new Ro(i),o=e.dark?g.tint(20).toString():Vi(g,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?Vi(g,90):g.tint(90).toString(),"text-color":i,"border-color":e.dark?Vi(g,50):g.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":o,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":o}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?Vi(g,90):g.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?Vi(g,50):g.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?Vi(g,80):g.tint(80).toString());else{const a=e.dark?Vi(g,30):g.tint(30).toString(),c=g.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":c,"border-color":i,"hover-bg-color":a,"hover-text-color":c,"hover-border-color":a,"active-bg-color":o,"active-border-color":o}),t.value){const p=e.dark?Vi(g,50):g.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=p,r[n.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=p}}}return r})}var $D=we({name:"ElButton",__name:"button",props:Gh,emits:TD,setup(e,{expose:t,emit:n}){const r=e,i=n,l=zD(r),g=De("button"),{_ref:o,_size:a,_type:c,_disabled:p,_props:u,_plain:f,_round:s,_text:d,_dashed:v,shouldAddSpace:h,handleClick:m}=ED(r,i),y=V(()=>[g.b(),g.m(c.value),g.m(a.value),g.is("disabled",p.value),g.is("loading",r.loading),g.is("plain",f.value),g.is("round",s.value),g.is("circle",r.circle),g.is("text",d.value),g.is("dashed",v.value),g.is("link",r.link),g.is("has-bg",r.bg)]);return t({ref:o,size:a,type:c,disabled:p,shouldAddSpace:h}),(b,_)=>(j(),me(st(e.tag),zt({ref_key:"_ref",ref:o},w(u),{class:y.value,style:w(l),onClick:w(m)}),{default:fe(()=>[e.loading?(j(),ae(Ve,{key:0},[b.$slots.loading?xe(b.$slots,"loading",{key:0}):(j(),me(w(Ne),{key:1,class:se(w(g).is("loading"))},{default:fe(()=>[(j(),me(st(e.loadingIcon)))]),_:1},8,["class"]))],64)):e.icon||b.$slots.icon?(j(),me(w(Ne),{key:1},{default:fe(()=>[e.icon?(j(),me(st(e.icon),{key:0})):xe(b.$slots,"icon",{key:1})]),_:3})):ye("v-if",!0),b.$slots.default?(j(),ae("span",{key:2,class:se({[w(g).em("text","expand")]:w(h)})},[xe(b.$slots,"default")],2)):ye("v-if",!0)]),_:3},16,["class","style","onClick"]))}});const jD={size:Gh.size,type:Gh.type,direction:{type:Se(String),values:["horizontal","vertical"],default:"horizontal"}};var Q2=we({name:"ElButtonGroup",__name:"button-group",props:jD,setup(e){const t=e;wt(Z2,mt({size:Fn(t,"size"),type:Fn(t,"type")}));const n=De("button");return(r,i)=>(j(),ae("div",{class:se([w(n).b("group"),w(n).bm("group",t.direction)])},[xe(r.$slots,"default")],2))}});const vt=gt($D,{ButtonGroup:Q2});Sr(Q2);var Bu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VD(e){var t=e.default;if(typeof t=="function"){var n=function(){return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}const Yh=Fe({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:co},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),UD={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},HD=["aria-label"],WD=["aria-label"];var GD=we({name:"ElTag",__name:"tag",props:Yh,emits:UD,setup(e,{emit:t}){const n=e,r=t,i=Vr(),{t:l}=$t(),g=De("tag"),o=V(()=>{const{type:u,hit:f,effect:s,closable:d,round:v}=n;return[g.b(),g.is("closable",d),g.m(u||"primary"),g.m(i.value),g.m(s),g.is("hit",f),g.is("round",v)]}),a=u=>{r("close",u)},c=u=>{r("click",u)},p=u=>{var f,s,d;(d=(s=(f=u==null?void 0:u.component)==null?void 0:f.subTree)==null?void 0:s.component)!=null&&d.bum&&(u.component.subTree.component.bum=null)};return(u,f)=>e.disableTransitions?(j(),ae("span",{key:0,class:se(o.value),style:He({backgroundColor:e.color}),onClick:c},[ie("span",{class:se(w(g).e("content"))},[xe(u.$slots,"default")],2),e.closable?(j(),ae("button",{key:0,"aria-label":w(l)("el.tag.close"),class:se(w(g).e("close")),type:"button",onClick:Qe(a,["stop"])},[ue(w(Ne),null,{default:fe(()=>[ue(w(ii))]),_:1})],10,HD)):ye("v-if",!0)],6)):(j(),me(vr,{key:1,name:`${w(g).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:p},{default:fe(()=>[ie("span",{class:se(o.value),style:He({backgroundColor:e.color}),onClick:c},[ie("span",{class:se(w(g).e("content"))},[xe(u.$slots,"default")],2),e.closable?(j(),ae("button",{key:0,"aria-label":w(l)("el.tag.close"),class:se(w(g).e("close")),type:"button",onClick:Qe(a,["stop"])},[ue(w(Ne),null,{default:fe(()=>[ue(w(ii))]),_:1})],10,WD)):ye("v-if",!0)],6)]),_:3},8,["name"]))}});const KD=gt(GD),Xh={label:"label",value:"value",disabled:"disabled",options:"options"};function YD(e){const t=re({...Xh,...e.props});let n={...e.props};return ke(()=>e.props,o=>{kr(o,n)||(t.value={...Xh,...o},n={...o})},{deep:!0}),{aliasProps:t,getLabel:o=>rr(o,t.value.label),getValue:o=>rr(o,t.value.value),getDisabled:o=>rr(o,t.value.disabled),getOptions:o=>rr(o,t.value.options)}}const eS=Symbol("ElSelectGroup"),Vf=Symbol("ElSelect"),qh="ElOption",XD=Fe({value:{type:[String,Number,Boolean,Object],required:!0},label:{type:[String,Number]},created:Boolean,disabled:Boolean}),qD=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Qi=e=>Jl(e);function ZD(e,t){const n=Ue(Vf);n||fn(qh,"usage: <el-select><el-option /></el-select/>");const r=Ue(eS,{disabled:!1}),i=V(()=>p(Vn(n.props.modelValue),e.value)),l=V(()=>{var s;if(n.props.multiple){const d=Vn((s=n.props.modelValue)!=null?s:[]);return!i.value&&d.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),g=V(()=>{var s;return(s=e.label)!=null?s:Ze(e.value)?"":e.value}),o=V(()=>e.value||e.label||""),a=V(()=>e.disabled||t.groupDisabled||l.value),c=it(),p=(s=[],d)=>{if(Ze(e.value)){const v=n.props.valueKey;return s&&s.some(h=>ft(rr(h,v))===rr(d,v))}else return s&&s.includes(d)},u=()=>{a.value||(n.states.hoveringIndex=n.optionsArray.indexOf(c.proxy))},f=s=>{const d=new RegExp(qD(s),"i");t.visible=d.test(String(g.value))||e.created};return ke(()=>g.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),ke(()=>e.value,(s,d)=>{const{remote:v,valueKey:h}=n.props;if((v?s!==d:!kr(s,d))&&(n.onOptionDestroy(d,c.proxy),n.onOptionCreate(c.proxy)),!e.created&&!v){if(h&&Ze(s)&&Ze(d)&&s[h]===d[h])return;n.setSelected()}}),ke(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0}),{select:n,currentLabel:g,currentValue:o,itemSelected:i,isDisabled:a,hoverItem:u,updateOption:f}}var JD=we({name:qh,componentName:qh,props:XD,setup(e){const t=De("select"),n=zr(),r=V(()=>[t.be("dropdown","item"),t.is("disabled",w(o)),t.is("selected",w(g)),t.is("hovering",w(f))]),i=mt({index:-1,groupDisabled:!1,visible:!0,hover:!1}),{currentLabel:l,itemSelected:g,isDisabled:o,select:a,hoverItem:c,updateOption:p}=ZD(e,i),{visible:u,hover:f}=Lr(i),s=it().proxy;a.onOptionCreate(s),kt(()=>{const v=s.value;We(()=>{const{selected:h}=a.states,m=h.some(y=>y.value===s.value);a.states.cachedOptions.get(v)===s&&!m&&a.states.cachedOptions.delete(v)}),a.onOptionDestroy(v,s)});function d(){o.value||a.handleOptionSelect(s)}return{ns:t,id:n,containerKls:r,currentLabel:l,itemSelected:g,isDisabled:o,select:a,visible:u,hover:f,states:i,hoverItem:c,updateOption:p,selectOptionClick:d}}});const QD=["id","aria-disabled","aria-selected"];function eL(e,t,n,r,i,l){return Ct((j(),ae("li",{id:e.id,class:se(e.containerKls),role:"option","aria-disabled":e.isDisabled||void 0,"aria-selected":e.itemSelected,onMousemove:t[0]||(t[0]=(...g)=>e.hoverItem&&e.hoverItem(...g)),onClick:t[1]||(t[1]=Qe((...g)=>e.selectOptionClick&&e.selectOptionClick(...g),["stop"]))},[xe(e.$slots,"default",{},()=>[ie("span",null,Ae(e.currentLabel),1)])],42,QD)),[[Yt,e.visible]])}var tg=ms(JD,[["render",eL]]);const tS=11,tL=2;var nL=we({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=Ue(Vf),t=De("select"),n=V(()=>e.props.popperClass),r=V(()=>e.props.multiple),i=V(()=>e.props.fitInputWidth),l=re("");function g(){var o;const a=(o=e.selectRef)==null?void 0:o.offsetWidth;a?l.value=`${a-tL}px`:l.value=""}return et(()=>{g(),un(e.selectRef,g)}),{ns:t,minWidth:l,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function rL(e,t,n,r,i,l){return j(),ae("div",{class:se([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:He({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[e.$slots.header?(j(),ae("div",{key:0,class:se(e.ns.be("dropdown","header"))},[xe(e.$slots,"header")],2)):ye("v-if",!0),xe(e.$slots,"default"),e.$slots.footer?(j(),ae("div",{key:1,class:se(e.ns.be("dropdown","footer"))},[xe(e.$slots,"footer")],2)):ye("v-if",!0)],6)}var iL=ms(nL,[["render",rL]]);const aL=(e,t)=>{const{t:n}=$t(),r=ao(),i=zr(),l=De("select"),g=De("input"),o=mt({inputValue:"",options:new Map,cachedOptions:new Map,optionValues:[],selected:[],selectionWidth:0,collapseItemWidth:0,selectedLabel:"",hoveringIndex:-1,previousQuery:null,inputHovering:!1,menuVisibleOnFocus:!1,isBeforeHide:!1}),a=re(),c=re(),p=re(),u=re(),f=re(),s=re(),d=re(),v=re(),h=re(),m=re(),y=re(),b=re(!1),_=re(),S=re(!1),{form:x,formItem:T}=Ni(),{inputId:E}=vs(e,{formItemContext:T}),{valueOnClear:k,isEmptyValue:D}=f2(e),{isComposing:W,handleCompositionStart:I,handleCompositionUpdate:U,handleCompositionEnd:A}=N2({afterComposition:be=>tt(be)}),ee=Kn(),{wrapperRef:de,isFocused:z,handleBlur:q}=Yv(f,{disabled:ee,afterFocus(){e.automaticDropdown&&!b.value&&(b.value=!0,o.menuVisibleOnFocus=!0)},beforeBlur(be){var Ie,Ke;return((Ie=p.value)==null?void 0:Ie.isFocusInsideContent(be))||((Ke=u.value)==null?void 0:Ke.isFocusInsideContent(be))},afterBlur(){var be;b.value=!1,o.menuVisibleOnFocus=!1,e.validateEvent&&((be=T==null?void 0:T.validate)==null||be.call(T,"blur").catch(Ie=>void 0))}}),O=V(()=>Pe(e.modelValue)?e.modelValue.length>0:!D(e.modelValue)),F=V(()=>{var be;return(be=x==null?void 0:x.statusIcon)!=null?be:!1}),R=V(()=>e.clearable&&!ee.value&&O.value&&(z.value||o.inputHovering)),P=V(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),G=V(()=>l.is("reverse",!!(P.value&&b.value))),$=V(()=>(T==null?void 0:T.validateState)||""),M=V(()=>$.value&&w2[$.value]),ne=V(()=>e.remote?e.debounce:0),X=V(()=>e.remote&&!o.inputValue&&o.options.size===0),te=V(()=>e.loading?e.loadingText||n("el.select.loading"):e.filterable&&o.inputValue&&o.options.size>0&&Q.value===0?e.noMatchText||n("el.select.noMatch"):o.options.size===0?e.noDataText||n("el.select.noData"):null),Q=V(()=>J.value.filter(be=>be.visible).length),J=V(()=>{const be=Array.from(o.options.values()),Ie=[];return o.optionValues.forEach(Ke=>{const xt=be.findIndex(Rt=>Rt.value===Ke);xt>-1&&Ie.push(be[xt])}),Ie.length>=be.length?Ie:be}),oe=V(()=>Array.from(o.cachedOptions.values())),pe=V(()=>{const be=J.value.filter(Ie=>!Ie.created).some(Ie=>Ie.currentLabel===o.inputValue);return e.filterable&&e.allowCreate&&o.inputValue!==""&&!be}),N=()=>{e.filterable&&Be(e.filterMethod)||e.filterable&&e.remote&&Be(e.remoteMethod)||J.value.forEach(be=>{var Ie;(Ie=be.updateOption)==null||Ie.call(be,o.inputValue)})},C=Vr(),H=V(()=>["small"].includes(C.value)?"small":"default"),K=V({get(){return b.value&&(e.loading||!X.value||e.remote&&!!r.empty)&&(!S.value||!e8(o.previousQuery))},set(be){b.value=be}}),L=V(()=>{if(e.multiple&&!gn(e.modelValue))return Vn(e.modelValue).length===0&&!o.inputValue;const be=Pe(e.modelValue)?e.modelValue[0]:e.modelValue;return e.filterable||gn(be)?!o.inputValue:!0}),B=V(()=>{var be;const Ie=(be=e.placeholder)!=null?be:n("el.select.placeholder");return e.multiple||!O.value?Ie:o.selectedLabel}),Z=V(()=>jh?null:"mouseenter");ke(()=>e.modelValue,(be,Ie)=>{e.multiple&&e.filterable&&!e.reserveKeyword&&(o.inputValue="",ce("")),Y(),!kr(be,Ie)&&e.validateEvent&&(T==null||T.validate("change").catch(Ke=>void 0))},{flush:"post",deep:!0}),ke(()=>b.value,be=>{be?ce(o.inputValue):(o.inputValue="",o.previousQuery=null,o.isBeforeHide=!0,o.menuVisibleOnFocus=!1)}),ke(()=>o.options.entries(),()=>{!pt||(Y(),e.defaultFirstOption&&(e.filterable||e.remote)&&Q.value&&le())},{flush:"post"}),ke([()=>o.hoveringIndex,J],([be])=>{Ye(be)&&be>-1?_.value=J.value[be]||{}:_.value={},J.value.forEach(Ie=>{Ie.hover=_.value===Ie})}),io(()=>{o.isBeforeHide||N()});const ce=be=>{o.previousQuery===be||W.value||(o.previousQuery=be,e.filterable&&Be(e.filterMethod)?e.filterMethod(be):e.filterable&&e.remote&&Be(e.remoteMethod)&&e.remoteMethod(be),e.defaultFirstOption&&(e.filterable||e.remote)&&Q.value?We(le):We(ve))},le=()=>{const be=J.value.filter(Rt=>Rt.visible&&!Rt.disabled&&!Rt.states.groupDisabled),Ie=be.find(Rt=>Rt.created),Ke=be[0],xt=J.value.map(Rt=>Rt.value);o.hoveringIndex=Pn(xt,Ie||Ke)},Y=()=>{if(e.multiple)o.selectedLabel="";else{const Ie=Pe(e.modelValue)?e.modelValue[0]:e.modelValue,Ke=he(Ie);o.selectedLabel=Ke.currentLabel,o.selected=[Ke];return}const be=[];gn(e.modelValue)||Vn(e.modelValue).forEach(Ie=>{be.push(he(Ie))}),o.selected=be},he=be=>{let Ie;const Ke=hl(be);for(let $n=o.cachedOptions.size-1;$n>=0;$n--){const Yn=oe.value[$n];if(Ke?rr(Yn.value,e.valueKey)===rr(be,e.valueKey):Yn.value===be){Ie={index:J.value.filter(_a=>!_a.created).indexOf(Yn),value:be,currentLabel:Yn.currentLabel,get isDisabled(){return Yn.isDisabled}};break}}if(Ie)return Ie;const xt=Ke?be.label:be!=null?be:"";return{index:-1,value:be,currentLabel:xt}},ve=()=>{const be=o.selected.length;if(be>0){const Ie=o.selected[be-1];o.hoveringIndex=J.value.findIndex(Ke=>an(Ie)===an(Ke))}else o.hoveringIndex=-1},ge=()=>{o.selectionWidth=Number.parseFloat(window.getComputedStyle(c.value).width)},Ee=()=>{o.collapseItemWidth=m.value.getBoundingClientRect().width},_e=()=>{var be,Ie;(Ie=(be=p.value)==null?void 0:be.updatePopper)==null||Ie.call(be)},Te=()=>{var be,Ie;(Ie=(be=u.value)==null?void 0:be.updatePopper)==null||Ie.call(be)},Oe=()=>{o.inputValue.length>0&&!b.value&&(b.value=!0),ce(o.inputValue)},tt=be=>{if(o.inputValue=be.target.value,e.remote)S.value=!0,Ce();else return Oe()},Ce=i2(()=>{Oe(),S.value=!1},ne),Me=be=>{kr(e.modelValue,be)||t(Mt,be)},Le=be=>R6(be,Ie=>{const Ke=o.cachedOptions.get(Ie);return!(Ke!=null&&Ke.disabled)&&!(Ke!=null&&Ke.states.groupDisabled)}),Ge=be=>{const Ie=dn(be);if(!!e.multiple&&Ie!==Re.delete&&be.target.value.length<=0){const Ke=Vn(e.modelValue).slice(),xt=Le(Ke);if(xt<0)return;const Rt=Ke[xt];Ke.splice(xt,1),t(nt,Ke),Me(Ke),t("remove-tag",Rt)}},ct=(be,Ie)=>{const Ke=o.selected.indexOf(Ie);if(Ke>-1&&!ee.value){const xt=Vn(e.modelValue).slice();xt.splice(Ke,1),t(nt,xt),Me(xt),t("remove-tag",Ie.value)}be.stopPropagation(),xr()},ze=be=>{be.stopPropagation();const Ie=e.multiple?[]:k.value;if(e.multiple)for(const Ke of o.selected)Ke.isDisabled&&Ie.push(Ke.value);t(nt,Ie),Me(Ie),o.hoveringIndex=-1,b.value=!1,t("clear"),xr()},lt=be=>{var Ie;if(e.multiple){const Ke=Vn((Ie=e.modelValue)!=null?Ie:[]).slice(),xt=Pn(Ke,be);xt>-1?Ke.splice(xt,1):(e.multipleLimit<=0||Ke.length<e.multipleLimit)&&Ke.push(be.value),t(nt,Ke),Me(Ke),be.created&&ce(""),e.filterable&&(be.created||!e.reserveKeyword)&&(o.inputValue="")}else!kr(e.modelValue,be.value)&&t(nt,be.value),Me(be.value),b.value=!1;xr(),!b.value&&We(()=>{Gt(be)})},Pn=(be,Ie)=>gn(Ie)?-1:Ze(Ie.value)?be.findIndex(Ke=>kr(rr(Ke,e.valueKey),an(Ie))):be.indexOf(Ie.value),Gt=be=>{var Ie,Ke,xt,Rt,$n;const Yn=Pe(be)?be[be.length-1]:be;let ba=null;if(!Qt(Yn==null?void 0:Yn.value)){const _a=J.value.filter(Yx=>Yx.value===Yn.value);_a.length>0&&(ba=_a[0].$el)}if(p.value&&ba){const _a=(Rt=(xt=(Ke=(Ie=p.value)==null?void 0:Ie.popperRef)==null?void 0:Ke.contentRef)==null?void 0:xt.querySelector)==null?void 0:Rt.call(xt,`.${l.be("dropdown","wrap")}`);_a&&$8(_a,ba)}($n=y.value)==null||$n.handleScroll()},Cr=be=>{o.options.set(be.value,be),o.cachedOptions.set(be.value,be)},nn=(be,Ie)=>{o.options.get(be)===Ie&&o.options.delete(be)},rn=V(()=>{var be,Ie;return(Ie=(be=p.value)==null?void 0:be.popperRef)==null?void 0:Ie.contentRef}),Ur=()=>{o.isBeforeHide=!1,We(()=>{var be;(be=y.value)==null||be.update(),Gt(o.selected)})},xr=()=>{var be;(be=f.value)==null||be.focus()},ed=()=>{var be;if(b.value){b.value=!1,We(()=>{var Ie;return(Ie=f.value)==null?void 0:Ie.blur()});return}(be=f.value)==null||be.blur()},td=be=>{ze(be)},wu=be=>{if(b.value=!1,z.value){const Ie=new FocusEvent("blur",be);We(()=>q(Ie))}},nd=()=>{o.inputValue.length>0?o.inputValue="":b.value=!1},ks=be=>{var Ie;ee.value||e.filterable&&b.value&&be&&!((Ie=d.value)!=null&&Ie.contains(be.target))||(jh&&(o.inputHovering=!0),o.menuVisibleOnFocus?o.menuVisibleOnFocus=!1:b.value=!b.value)},ot=()=>{if(!b.value)ks();else{const be=J.value[o.hoveringIndex];be&&!be.isDisabled&&lt(be)}},an=be=>Ze(be.value)?rr(be.value,e.valueKey):be.value,vo=V(()=>J.value.filter(be=>be.visible).every(be=>be.isDisabled)),on=V(()=>e.multiple?e.collapseTags?o.selected.slice(0,e.maxCollapseTags):o.selected:[]),rd=V(()=>e.multiple?e.collapseTags?o.selected.slice(e.maxCollapseTags):[]:[]),ya=be=>{if(!b.value){b.value=!0;return}if(!(o.options.size===0||Q.value===0||W.value)&&!vo.value){be==="next"?(o.hoveringIndex++,o.hoveringIndex===o.options.size&&(o.hoveringIndex=0)):be==="prev"&&(o.hoveringIndex--,o.hoveringIndex<0&&(o.hoveringIndex=o.options.size-1));const Ie=J.value[o.hoveringIndex];(Ie.isDisabled||!Ie.visible)&&ya(be),We(()=>Gt(_.value))}},Su=(be,Ie,Ke,xt)=>{for(let Rt=Ie;Rt>=0&&Rt<xt;Rt+=Ke){const $n=be[Rt];if(!($n!=null&&$n.isDisabled)&&($n==null?void 0:$n.visible))return Rt}return null},go=(be,Ie)=>{var Ke;const xt=o.options.size;if(xt===0)return;const Rt=Iv(be,0,xt-1),$n=J.value,Yn=Ie==="up"?-1:1,ba=(Ke=Su($n,Rt,Yn,xt))!=null?Ke:Su($n,Rt-Yn,-Yn,xt);ba!=null&&(o.hoveringIndex=ba,We(()=>Gt(_.value)))},Ux=be=>{const Ie=dn(be);let Ke=!0;switch(Ie){case Re.up:ya("prev");break;case Re.down:ya("next");break;case Re.enter:case Re.numpadEnter:W.value||ot();break;case Re.esc:nd();break;case Re.backspace:Ke=!1,Ge(be);return;case Re.home:if(!b.value)return;go(0,"down");break;case Re.end:if(!b.value)return;go(o.options.size-1,"up");break;case Re.pageUp:if(!b.value)return;go(o.hoveringIndex-10,"up");break;case Re.pageDown:if(!b.value)return;go(o.hoveringIndex+10,"down");break;default:Ke=!1;break}Ke&&(be.preventDefault(),be.stopPropagation())},Hx=()=>{if(!c.value)return 0;const be=window.getComputedStyle(c.value);return Number.parseFloat(be.gap||"6px")},Wx=V(()=>{const be=Hx(),Ie=e.filterable?be+tS:0;return{maxWidth:`${m.value&&e.maxCollapseTags===1?o.selectionWidth-o.collapseItemWidth-be-Ie:o.selectionWidth-Ie}px`}}),Gx=V(()=>({maxWidth:`${o.selectionWidth}px`})),Kx=be=>{t("popup-scroll",be)};un(c,ge),un(de,_e),un(h,Te),un(m,Ee);let Cu;return ke(()=>K.value,be=>{be?Cu=un(v,_e).stop:(Cu==null||Cu(),Cu=void 0),t("visible-change",be)}),et(()=>{Y()}),{inputId:E,contentId:i,nsSelect:l,nsInput:g,states:o,isFocused:z,expanded:b,optionsArray:J,hoverOption:_,selectSize:C,filteredOptionsCount:Q,updateTooltip:_e,updateTagTooltip:Te,debouncedOnInputChange:Ce,onInput:tt,deletePrevTag:Ge,deleteTag:ct,deleteSelected:ze,handleOptionSelect:lt,scrollToOption:Gt,hasModelValue:O,shouldShowPlaceholder:L,currentPlaceholder:B,mouseEnterEventName:Z,needStatusIcon:F,showClearBtn:R,iconComponent:P,iconReverse:G,validateState:$,validateIcon:M,showNewOption:pe,updateOptions:N,collapseTagSize:H,setSelected:Y,selectDisabled:ee,emptyText:te,handleCompositionStart:I,handleCompositionUpdate:U,handleCompositionEnd:A,handleKeydown:Ux,onOptionCreate:Cr,onOptionDestroy:nn,handleMenuEnter:Ur,focus:xr,blur:ed,handleClearClick:td,handleClickOutside:wu,handleEsc:nd,toggleMenu:ks,selectOption:ot,getValueKey:an,navigateOptions:ya,dropdownMenuVisible:K,showTagList:on,collapseTagList:rd,popupScroll:Kx,getOption:he,tagStyle:Wx,collapseTagStyle:Gx,popperRef:rn,inputRef:f,tooltipRef:p,tagTooltipRef:u,prefixRef:s,suffixRef:d,selectRef:a,wrapperRef:de,selectionRef:c,scrollbarRef:y,menuRef:v,tagMenuRef:h,collapseItemRef:m}};var oL=we({name:"ElOptions",setup(e,{slots:t}){const n=Ue(Vf);let r=[];return()=>{var i,l;const g=(i=t.default)==null?void 0:i.call(t),o=[];function a(c){!Pe(c)||c.forEach(p=>{var u,f,s,d;const v=(u=(p==null?void 0:p.type)||{})==null?void 0:u.name;v==="ElOptionGroup"?a(!je(p.children)&&!Pe(p.children)&&Be((f=p.children)==null?void 0:f.default)?(s=p.children)==null?void 0:s.default():p.children):v==="ElOption"?o.push((d=p.props)==null?void 0:d.value):Pe(p.children)&&a(p.children)})}return g.length&&a((l=g[0])==null?void 0:l.children),kr(o,r)||(r=o,n&&(n.states.optionValues=o)),g}}});const sL=Fe({name:String,id:String,modelValue:{type:Se([Array,String,Number,Boolean,Object]),default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:Nr,effect:{type:Se(String),default:"light"},disabled:{type:Boolean,default:void 0},clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},popperStyle:{type:Se([String,Object])},popperOptions:{type:Se(Object),default:()=>({})},remote:Boolean,debounce:{type:Number,default:300},loadingText:String,noMatchText:String,noDataText:String,remoteMethod:{type:Se(Function)},filterMethod:{type:Se(Function)},multiple:Boolean,multipleLimit:{type:Number,default:0},placeholder:{type:String},defaultFirstOption:Boolean,reserveKeyword:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},collapseTags:Boolean,collapseTagsTooltip:Boolean,tagTooltip:{type:Se(Object),default:()=>({})},maxCollapseTags:{type:Number,default:1},teleported:Ut.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Nt,default:ru},fitInputWidth:Boolean,suffixIcon:{type:Nt,default:Ef},tagType:{...Yh.type,default:"info"},tagEffect:{...Yh.effect,default:"light"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:Boolean,showArrow:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:Se(String),values:hs,default:"bottom-start"},fallbackPlacements:{type:Se(Array),default:["bottom-start","top-start","right","left"]},tabindex:{type:[String,Number],default:0},appendTo:Ut.appendTo,options:{type:Se(Array)},props:{type:Se(Object),default:()=>Xh},...Fv,...oi(["ariaLabel"])});nt+"",Mt+"",z2.scroll;var lL=we({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:Boolean},setup(e){const t=De("select"),n=re(),r=it(),i=re([]);wt(eS,mt({...Lr(e)}));const l=V(()=>i.value.some(c=>c.visible===!0)),g=c=>{var p;return c.type.name==="ElOption"&&!!((p=c.component)!=null&&p.proxy)},o=c=>{const p=Vn(c),u=[];return p.forEach(f=>{var s;!Nn(f)||(g(f)?u.push(f.component.proxy):Pe(f.children)&&f.children.length?u.push(...o(f.children)):(s=f.component)!=null&&s.subTree&&u.push(...o(f.component.subTree)))}),u},a=()=>{i.value=o(r.subTree)};return et(()=>{a()}),b8(n,a,{attributes:!0,subtree:!0,childList:!0}),{groupRef:n,visible:l,ns:t}}});function uL(e,t,n,r,i,l){return Ct((j(),ae("ul",{ref:"groupRef",class:se(e.ns.be("group","wrap"))},[ie("li",{class:se(e.ns.be("group","title"))},Ae(e.label),3),ie("li",null,[ie("ul",{class:se(e.ns.b("group"))},[xe(e.$slots,"default")],2)])],2)),[[Yt,e.visible]])}var ng=ms(lL,[["render",uL]]);const Gi=new Map;if(pt){let e;document.addEventListener("mousedown",t=>e=t),document.addEventListener("mouseup",t=>{if(e){for(const n of Gi.values())for(const{documentHandler:r}of n)r(t,e);e=void 0}})}function dy(e,t){let n=[];return Pe(t.arg)?n=t.arg:Or(t.arg)&&n.push(t.arg),function(r,i){const l=t.instance.popperRef,g=r.target,o=i==null?void 0:i.target,a=!t||!t.instance,c=!g||!o,p=e.contains(g)||e.contains(o),u=e===g,f=n.length&&n.some(d=>d==null?void 0:d.contains(g))||n.length&&n.includes(o),s=l&&(l.contains(g)||l.contains(o));a||c||p||u||f||s||t.value(r,i)}}const rg={beforeMount(e,t){Gi.has(e)||Gi.set(e,[]),Gi.get(e).push({documentHandler:dy(e,t),bindingFn:t.value})},updated(e,t){Gi.has(e)||Gi.set(e,[]);const n=Gi.get(e),r=n.findIndex(l=>l.bindingFn===t.oldValue),i={documentHandler:dy(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){Gi.delete(e)}};function cL(){const e=Ht(),t=re(0),n=V(()=>({minWidth:`${Math.max(t.value,tS)}px`}));return un(e,()=>{var i,l;t.value=(l=(i=e.value)==null?void 0:i.getBoundingClientRect().width)!=null?l:0}),{calculatorRef:e,calculatorWidth:t,inputStyle:n}}const hy="ElSelect",Ml=new WeakMap,fL=e=>(...t)=>{var n,r;const i=t[0];if(!i||i.includes('Slot "default" invoked outside of the render function')&&((n=t[2])==null?void 0:n.includes("ElTreeSelect")))return;const l=(r=Ml.get(e))==null?void 0:r.originalWarnHandler;if(l){l(...t);return}console.warn(...t)},dL=e=>{let t=Ml.get(e);return t||(t={originalWarnHandler:e.config.warnHandler,handler:fL(e),count:0},Ml.set(e,t)),t};var hL=we({name:hy,componentName:hy,components:{ElSelectMenu:iL,ElOption:tg,ElOptions:oL,ElOptionGroup:ng,ElTag:KD,ElScrollbar:$2,ElTooltip:si,ElIcon:Ne},directives:{ClickOutside:rg},props:sL,emits:[nt,Mt,"remove-tag","clear","visible-change","focus","blur","popup-scroll"],setup(e,{emit:t,slots:n}){const r=it(),i=dL(r.appContext);i.count+=1,r.appContext.config.warnHandler=i.handler;const l=V(()=>{const{modelValue:y,multiple:b}=e,_=b?[]:void 0;return Pe(y)?b?y:_:b?_:y}),g=mt({...Lr(e),modelValue:l}),o=aL(g,t),{calculatorRef:a,inputStyle:c}=cL(),{getLabel:p,getValue:u,getOptions:f,getDisabled:s}=YD(e),d=y=>({label:p(y),value:u(y),disabled:s(y)}),v=y=>y.reduce((b,_)=>(b.push(_),_.children&&_.children.length>0&&b.push(...v(_.children)),b),[]),h=y=>{ta(y||[]).forEach(_=>{var S;if(Ze(_)&&(_.type.name==="ElOption"||_.type.name==="ElTree")){const x=_.type.name;if(x==="ElTree"){const T=((S=_.props)==null?void 0:S.data)||[];v(T).forEach(k=>{k.currentLabel=k.label||(Ze(k.value)?"":k.value),o.onOptionCreate(k)})}else if(x==="ElOption"){const T={..._.props};T.currentLabel=T.label||(Ze(T.value)?"":T.value),o.onOptionCreate(T)}}})};ke(()=>{var y;return[e.persistent||o.expanded.value||!n.default||(y=n.default)==null?void 0:y.call(n),l.value]},()=>{var y;e.persistent||o.expanded.value||(o.states.options.clear(),h((y=n.default)==null?void 0:y.call(n)))},{immediate:!0}),wt(Vf,mt({props:g,states:o.states,selectRef:o.selectRef,optionsArray:o.optionsArray,setSelected:o.setSelected,handleOptionSelect:o.handleOptionSelect,onOptionCreate:o.onOptionCreate,onOptionDestroy:o.onOptionDestroy}));const m=V(()=>e.multiple?o.states.selected.map(y=>y.currentLabel):o.states.selectedLabel);return kt(()=>{const y=Ml.get(r.appContext);!y||(y.count-=1,y.count<=0&&(r.appContext.config.warnHandler=y.originalWarnHandler,Ml.delete(r.appContext)))}),{...o,modelValue:l,selectedLabel:m,calculatorRef:a,inputStyle:c,getLabel:p,getValue:u,getOptions:f,getDisabled:s,getOptionProps:d}}});const pL=["id","value","name","disabled","autocomplete","tabindex","readonly","aria-activedescendant","aria-controls","aria-expanded","aria-label"],vL=["textContent"],gL={key:1};function mL(e,t,n,r,i,l){const g=er("el-tag"),o=er("el-tooltip"),a=er("el-icon"),c=er("el-option"),p=er("el-option-group"),u=er("el-options"),f=er("el-scrollbar"),s=er("el-select-menu"),d=tE("click-outside");return Ct((j(),ae("div",zt({ref:"selectRef",class:[e.nsSelect.b(),e.nsSelect.m(e.selectSize)]},{[Hs(e.mouseEnterEventName)]:t[11]||(t[11]=v=>e.states.inputHovering=!0)},{onMouseleave:t[12]||(t[12]=v=>e.states.inputHovering=!1)}),[ue(o,{ref:"tooltipRef",visible:e.dropdownMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"popper-style":e.popperStyle,"popper-options":e.popperOptions,"fallback-placements":e.fallbackPlacements,effect:e.effect,pure:"",trigger:"click",transition:`${e.nsSelect.namespace.value}-zoom-in-top`,"stop-popper-mouse-event":!1,"gpu-acceleration":!1,persistent:e.persistent,"append-to":e.appendTo,"show-arrow":e.showArrow,offset:e.offset,onBeforeShow:e.handleMenuEnter,onHide:t[10]||(t[10]=v=>e.states.isBeforeHide=!1)},{default:fe(()=>{var v;return[ie("div",{ref:"wrapperRef",class:se([e.nsSelect.e("wrapper"),e.nsSelect.is("focused",e.isFocused),e.nsSelect.is("hovering",e.states.inputHovering),e.nsSelect.is("filterable",e.filterable),e.nsSelect.is("disabled",e.selectDisabled)]),onClick:t[7]||(t[7]=Qe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["prevent"]))},[e.$slots.prefix?(j(),ae("div",{key:0,ref:"prefixRef",class:se(e.nsSelect.e("prefix"))},[xe(e.$slots,"prefix")],2)):ye("v-if",!0),ie("div",{ref:"selectionRef",class:se([e.nsSelect.e("selection"),e.nsSelect.is("near",e.multiple&&!e.$slots.prefix&&!!e.states.selected.length)])},[e.multiple?xe(e.$slots,"tag",{key:0,data:e.states.selected,deleteTag:e.deleteTag,selectDisabled:e.selectDisabled},()=>{var h,m,y,b,_,S,x,T,E,k,D,W,I,U,A,ee,de,z,q,O,F;return[(j(!0),ae(Ve,null,Bt(e.showTagList,R=>(j(),ae("div",{key:e.getValueKey(R),class:se(e.nsSelect.e("selected-item"))},[ue(g,{closable:!e.selectDisabled&&!R.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:He(e.tagStyle),onClose:P=>e.deleteTag(P,R)},{default:fe(()=>[ie("span",{class:se(e.nsSelect.e("tags-text"))},[xe(e.$slots,"label",{index:R.index,label:R.currentLabel,value:R.value},()=>[qe(Ae(R.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","style","onClose"])],2))),128)),e.collapseTags&&e.states.selected.length>e.maxCollapseTags?(j(),me(o,{key:0,ref:"tagTooltipRef",disabled:e.dropdownMenuVisible||!e.collapseTagsTooltip,"fallback-placements":(m=(h=e.tagTooltip)==null?void 0:h.fallbackPlacements)!=null?m:["bottom","top","right","left"],effect:(b=(y=e.tagTooltip)==null?void 0:y.effect)!=null?b:e.effect,placement:(S=(_=e.tagTooltip)==null?void 0:_.placement)!=null?S:"bottom","popper-class":(T=(x=e.tagTooltip)==null?void 0:x.popperClass)!=null?T:e.popperClass,"popper-style":(k=(E=e.tagTooltip)==null?void 0:E.popperStyle)!=null?k:e.popperStyle,teleported:(W=(D=e.tagTooltip)==null?void 0:D.teleported)!=null?W:e.teleported,"append-to":(U=(I=e.tagTooltip)==null?void 0:I.appendTo)!=null?U:e.appendTo,"popper-options":(ee=(A=e.tagTooltip)==null?void 0:A.popperOptions)!=null?ee:e.popperOptions,transition:(de=e.tagTooltip)==null?void 0:de.transition,"show-after":(z=e.tagTooltip)==null?void 0:z.showAfter,"hide-after":(q=e.tagTooltip)==null?void 0:q.hideAfter,"auto-close":(O=e.tagTooltip)==null?void 0:O.autoClose,offset:(F=e.tagTooltip)==null?void 0:F.offset},{default:fe(()=>[ie("div",{ref:"collapseItemRef",class:se(e.nsSelect.e("selected-item"))},[ue(g,{closable:!1,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",style:He(e.collapseTagStyle)},{default:fe(()=>[ie("span",{class:se(e.nsSelect.e("tags-text"))}," + "+Ae(e.states.selected.length-e.maxCollapseTags),3)]),_:1},8,["size","type","effect","style"])],2)]),content:fe(()=>[ie("div",{ref:"tagMenuRef",class:se(e.nsSelect.e("selection"))},[(j(!0),ae(Ve,null,Bt(e.collapseTagList,R=>(j(),ae("div",{key:e.getValueKey(R),class:se(e.nsSelect.e("selected-item"))},[ue(g,{class:"in-tooltip",closable:!e.selectDisabled&&!R.isDisabled,size:e.collapseTagSize,type:e.tagType,effect:e.tagEffect,"disable-transitions":"",onClose:P=>e.deleteTag(P,R)},{default:fe(()=>[ie("span",{class:se(e.nsSelect.e("tags-text"))},[xe(e.$slots,"label",{index:R.index,label:R.currentLabel,value:R.value},()=>[qe(Ae(R.currentLabel),1)])],2)]),_:2},1032,["closable","size","type","effect","onClose"])],2))),128))],2)]),_:3},8,["disabled","fallback-placements","effect","placement","popper-class","popper-style","teleported","append-to","popper-options","transition","show-after","hide-after","auto-close","offset"])):ye("v-if",!0)]}):ye("v-if",!0),ie("div",{class:se([e.nsSelect.e("selected-item"),e.nsSelect.e("input-wrapper"),e.nsSelect.is("hidden",!e.filterable||e.selectDisabled||!e.states.inputValue&&!e.isFocused)])},[ie("input",{id:e.inputId,ref:"inputRef",value:e.states.inputValue,type:"text",name:e.name,class:se([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:He(e.inputStyle),tabindex:e.tabindex,role:"combobox",readonly:!e.filterable,spellcheck:"false","aria-activedescendant":((v=e.hoverOption)==null?void 0:v.id)||"","aria-controls":e.contentId,"aria-expanded":e.dropdownMenuVisible,"aria-label":e.ariaLabel,"aria-autocomplete":"none","aria-haspopup":"listbox",onKeydown:t[0]||(t[0]=(...h)=>e.handleKeydown&&e.handleKeydown(...h)),onCompositionstart:t[1]||(t[1]=(...h)=>e.handleCompositionStart&&e.handleCompositionStart(...h)),onCompositionupdate:t[2]||(t[2]=(...h)=>e.handleCompositionUpdate&&e.handleCompositionUpdate(...h)),onCompositionend:t[3]||(t[3]=(...h)=>e.handleCompositionEnd&&e.handleCompositionEnd(...h)),onInput:t[4]||(t[4]=(...h)=>e.onInput&&e.onInput(...h)),onChange:t[5]||(t[5]=Qe(()=>{},["stop"])),onClick:t[6]||(t[6]=Qe((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},null,46,pL),e.filterable?(j(),ae("span",{key:0,ref:"calculatorRef","aria-hidden":"true",class:se(e.nsSelect.e("input-calculator")),textContent:Ae(e.states.inputValue)},null,10,vL)):ye("v-if",!0)],2),e.shouldShowPlaceholder?(j(),ae("div",{key:1,class:se([e.nsSelect.e("selected-item"),e.nsSelect.e("placeholder"),e.nsSelect.is("transparent",!e.hasModelValue||e.expanded&&!e.states.inputValue)])},[e.hasModelValue?xe(e.$slots,"label",{key:0,index:e.getOption(e.modelValue).index,label:e.currentPlaceholder,value:e.modelValue},()=>[ie("span",null,Ae(e.currentPlaceholder),1)]):(j(),ae("span",gL,Ae(e.currentPlaceholder),1))],2)):ye("v-if",!0)],2),ie("div",{ref:"suffixRef",class:se(e.nsSelect.e("suffix"))},[e.iconComponent&&!e.showClearBtn?(j(),me(a,{key:0,class:se([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:fe(()=>[(j(),me(st(e.iconComponent)))]),_:1},8,["class"])):ye("v-if",!0),e.showClearBtn&&e.clearIcon?(j(),me(a,{key:1,class:se([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.nsSelect.e("clear")]),onClick:e.handleClearClick},{default:fe(()=>[(j(),me(st(e.clearIcon)))]),_:1},8,["class","onClick"])):ye("v-if",!0),e.validateState&&e.validateIcon&&e.needStatusIcon?(j(),me(a,{key:2,class:se([e.nsInput.e("icon"),e.nsInput.e("validateIcon"),e.nsInput.is("loading",e.validateState==="validating")])},{default:fe(()=>[(j(),me(st(e.validateIcon)))]),_:1},8,["class"])):ye("v-if",!0)],2)],2)]}),content:fe(()=>[ue(s,{ref:"menuRef"},{default:fe(()=>[e.$slots.header?(j(),ae("div",{key:0,class:se(e.nsSelect.be("dropdown","header")),onClick:t[8]||(t[8]=Qe(()=>{},["stop"]))},[xe(e.$slots,"header")],2)):ye("v-if",!0),Ct(ue(f,{id:e.contentId,ref:"scrollbarRef",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:se([e.nsSelect.is("empty",e.filteredOptionsCount===0)]),role:"listbox","aria-label":e.ariaLabel,"aria-orientation":"vertical",onScroll:e.popupScroll},{default:fe(()=>[e.showNewOption?(j(),me(c,{key:0,value:e.states.inputValue,created:!0},null,8,["value"])):ye("v-if",!0),ue(u,null,{default:fe(()=>[xe(e.$slots,"default",{},()=>[(j(!0),ae(Ve,null,Bt(e.options,(v,h)=>{var m;return j(),ae(Ve,{key:h},[(m=e.getOptions(v))!=null&&m.length?(j(),me(p,{key:0,label:e.getLabel(v),disabled:e.getDisabled(v)},{default:fe(()=>[(j(!0),ae(Ve,null,Bt(e.getOptions(v),y=>(j(),me(c,zt({key:e.getValue(y)},{ref_for:!0},e.getOptionProps(y)),null,16))),128))]),_:2},1032,["label","disabled"])):(j(),me(c,zt({key:1,ref_for:!0},e.getOptionProps(v)),null,16))],64)}),128))])]),_:3})]),_:3},8,["id","wrap-class","view-class","class","aria-label","onScroll"]),[[Yt,e.states.options.size>0&&!e.loading]]),e.$slots.loading&&e.loading?(j(),ae("div",{key:1,class:se(e.nsSelect.be("dropdown","loading"))},[xe(e.$slots,"loading")],2)):e.loading||e.filteredOptionsCount===0?(j(),ae("div",{key:2,class:se(e.nsSelect.be("dropdown","empty"))},[xe(e.$slots,"empty",{},()=>[ie("span",null,Ae(e.emptyText),1)])],2)):ye("v-if",!0),e.$slots.footer?(j(),ae("div",{key:3,class:se(e.nsSelect.be("dropdown","footer")),onClick:t[9]||(t[9]=Qe(()=>{},["stop"]))},[xe(e.$slots,"footer")],2)):ye("v-if",!0)]),_:3},512)]),_:3},8,["visible","placement","teleported","popper-class","popper-style","popper-options","fallback-placements","effect","transition","persistent","append-to","show-arrow","offset","onBeforeShow"])],16)),[[d,e.handleClickOutside,e.popperRef]])}var yL=ms(hL,[["render",mL]]);const nS=gt(yL,{Option:tg,OptionGroup:ng}),rS=Sr(tg);Sr(ng);const bL=Fe({header:{type:String,default:""},footer:{type:String,default:""},bodyStyle:{type:Se([String,Object,Array]),default:""},headerClass:String,bodyClass:String,footerClass:String,shadow:{type:String,values:["always","hover","never"],default:void 0}});var _L=we({name:"ElCard",__name:"card",props:bL,setup(e){const t=au("card"),n=De("card");return(r,i)=>{var l;return j(),ae("div",{class:se([w(n).b(),w(n).is(`${e.shadow||((l=w(t))==null?void 0:l.shadow)||"always"}-shadow`)])},[r.$slots.header||e.header?(j(),ae("div",{key:0,class:se([w(n).e("header"),e.headerClass])},[xe(r.$slots,"header",{},()=>[qe(Ae(e.header),1)])],2)):ye("v-if",!0),ie("div",{class:se([w(n).e("body"),e.bodyClass]),style:He(e.bodyStyle)},[xe(r.$slots,"default")],6),r.$slots.footer||e.footer?(j(),ae("div",{key:1,class:se([w(n).e("footer"),e.footerClass])},[xe(r.$slots,"footer",{},()=>[qe(Ae(e.footer),1)])],2)):ye("v-if",!0)],2)}}});const wL=gt(_L),SL=Fe({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},cardScale:{type:Number,default:.83},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0},motionBlur:Boolean}),CL={change:(e,t)=>[e,t].every(Ye)},iS=Symbol("carouselContextKey"),Zh="ElCarouselItem",xL=(e,t,n)=>ta(e.subTree).filter(l=>{var g;return Nn(l)&&((g=l.type)==null?void 0:g.name)===t&&!!l.component}).map(l=>l.component.uid).map(l=>n[l]).filter(l=>!!l),aS=(e,t)=>{const n=Ht({}),r=Ht([]),i=new WeakMap,l=p=>{n.value[p.uid]=p,ac(n),et(()=>{const u=p.getVnode().el,f=u.parentNode;if(!i.has(f)){i.set(f,[]);const s=f.insertBefore.bind(f);f.insertBefore=(d,v)=>(i.get(f).some(m=>d===m||v===m)&&ac(n),s(d,v))}i.get(f).push(u)})},g=p=>{delete n.value[p.uid],ac(n);const u=p.getVnode().el,f=u.parentNode,s=i.get(f),d=s.indexOf(u);s.splice(d,1)},o=()=>{r.value=xL(e,t,n.value)},a=p=>p.render(),c=we({setup(p,{slots:u}){return()=>(o(),u.default?_t(a,{render:u.default}):null)}});return{children:r,addChild:l,removeChild:g,ChildrenSorter:c}},py=300,TL=(e,t,n)=>{const{children:r,addChild:i,removeChild:l,ChildrenSorter:g}=aS(it(),Zh),o=ao(),a=re(-1),c=re(null),p=re(!1),u=re(),f=re(0),s=re(!0),d=V(()=>e.arrow!=="never"&&!w(m)),v=V(()=>r.value.some(M=>M.props.label.toString().length>0)),h=V(()=>e.type==="card"),m=V(()=>e.direction==="vertical"),y=V(()=>e.height!=="auto"?{height:e.height}:{height:`${f.value}px`,overflow:"hidden"}),b=Mo(M=>{k(M)},py,{trailing:!0}),_=Mo(M=>{z(M)},py),S=M=>s.value?a.value<=1?M<=1:M>1:!0;function x(){c.value&&(clearInterval(c.value),c.value=null)}function T(){e.interval<=0||!e.autoplay||c.value||(c.value=setInterval(()=>E(),e.interval))}const E=()=>{a.value<r.value.length-1?a.value=a.value+1:e.loop&&(a.value=0)};function k(M){if(je(M)){const te=r.value.filter(Q=>Q.props.name===M);te.length>0&&(M=r.value.indexOf(te[0]))}if(M=Number(M),Number.isNaN(M)||M!==Math.floor(M))return;const ne=r.value.length,X=a.value;M<0?a.value=e.loop?ne-1:0:M>=ne?a.value=e.loop?0:ne-1:a.value=M,X===a.value&&D(X),F()}function D(M){r.value.forEach((ne,X)=>{ne.translateItem(X,a.value,M)})}function W(M,ne){var X,te,Q,J;const oe=w(r),pe=oe.length;if(pe===0||!M.states.inStage)return!1;const N=ne+1,C=ne-1,H=pe-1,K=oe[H].states.active,L=oe[0].states.active,B=(te=(X=oe[N])==null?void 0:X.states)==null?void 0:te.active,Z=(J=(Q=oe[C])==null?void 0:Q.states)==null?void 0:J.active;return ne===H&&L||B?"left":ne===0&&K||Z?"right":!1}function I(){p.value=!0,e.pauseOnHover&&x()}function U(){p.value=!1,T()}function A(M){w(m)||r.value.forEach((ne,X)=>{M===W(ne,X)&&(ne.states.hover=!0)})}function ee(){w(m)||r.value.forEach(M=>{M.states.hover=!1})}function de(M){a.value=M}function z(M){e.trigger==="hover"&&M!==a.value&&(a.value=M)}function q(){k(a.value-1)}function O(){k(a.value+1)}function F(){x(),(!e.pauseOnHover||!p.value)&&T()}function R(M){e.height==="auto"&&(f.value=M)}function P(){var M;const ne=(M=o.default)==null?void 0:M.call(o);if(!ne)return null;const te=ta(ne).filter(Q=>Nn(Q)&&Q.type.name===Zh);return(te==null?void 0:te.length)===2&&e.loop&&!h.value?(s.value=!0,te):(s.value=!1,null)}ke(()=>a.value,(M,ne)=>{D(ne),s.value&&(M=M%2,ne=ne%2),ne>-1&&t(Mt,M,ne)});const G=V({get:()=>s.value?a.value%2:a.value,set:M=>a.value=M});ke(()=>e.autoplay,M=>{M?T():x()}),ke(()=>e.loop,()=>{k(a.value)}),ke(()=>e.interval,()=>{F()});const $=Ht();return et(()=>{ke(()=>r.value,()=>{r.value.length>0&&k(e.initialIndex)},{immediate:!0}),$.value=un(u.value,()=>{D()}),T()}),kt(()=>{x(),u.value&&$.value&&$.value.stop()}),wt(iS,{root:u,isCardType:h,isVertical:m,items:r,loop:e.loop,cardScale:e.cardScale,addItem:i,removeItem:l,setActiveItem:k,setContainerHeight:R}),{root:u,activeIndex:a,exposeActiveIndex:G,arrowDisplay:d,hasLabel:v,hover:p,isCardType:h,items:r,isVertical:m,containerStyle:y,isItemsTwoLength:s,handleButtonEnter:A,handleButtonLeave:ee,handleIndicatorClick:de,handleMouseEnter:I,handleMouseLeave:U,setActiveItem:k,prev:q,next:O,PlaceholderItem:P,isTwoLengthShow:S,ItemsSorter:g,throttledArrowClick:b,throttledIndicatorHover:_}},EL=["aria-label"],kL=["aria-label"],OL=["onMouseenter","onClick"],AL=["aria-label"],PL={key:0},IL={key:2,xmlns:"http://www.w3.org/2000/svg",version:"1.1",style:{display:"none"}},ML="ElCarousel";var RL=we({name:ML,__name:"carousel",props:SL,emits:CL,setup(e,{expose:t,emit:n}){const r=e,i=n,{root:l,activeIndex:g,exposeActiveIndex:o,arrowDisplay:a,hasLabel:c,hover:p,isCardType:u,items:f,isVertical:s,containerStyle:d,handleButtonEnter:v,handleButtonLeave:h,handleIndicatorClick:m,handleMouseEnter:y,handleMouseLeave:b,setActiveItem:_,prev:S,next:x,PlaceholderItem:T,isTwoLengthShow:E,ItemsSorter:k,throttledArrowClick:D,throttledIndicatorHover:W}=TL(r,i),I=De("carousel"),{t:U}=$t(),A=V(()=>{const q=[I.b(),I.m(r.direction)];return w(u)&&q.push(I.m("card")),q.push(I.is("vertical-outside",w(s)&&r.indicatorPosition==="outside")),q}),ee=V(()=>{const q=[I.e("indicators"),I.em("indicators",r.direction)];return w(c)&&q.push(I.em("indicators","labels")),r.indicatorPosition==="outside"&&q.push(I.em("indicators","outside")),w(s)&&q.push(I.em("indicators","right")),q});function de(q){if(!r.motionBlur)return;const O=w(s)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;q.currentTarget.classList.add(O)}function z(q){if(!r.motionBlur)return;const O=w(s)?`${I.namespace.value}-transitioning-vertical`:`${I.namespace.value}-transitioning`;q.currentTarget.classList.remove(O)}return t({activeIndex:o,setActiveItem:_,prev:S,next:x}),(q,O)=>(j(),ae("div",{ref_key:"root",ref:l,class:se(A.value),onMouseenter:O[6]||(O[6]=Qe((...F)=>w(y)&&w(y)(...F),["stop"])),onMouseleave:O[7]||(O[7]=Qe((...F)=>w(b)&&w(b)(...F),["stop"]))},[w(a)?(j(),me(vr,{key:0,name:"carousel-arrow-left",persisted:""},{default:fe(()=>[Ct(ie("button",{type:"button",class:se([w(I).e("arrow"),w(I).em("arrow","left")]),"aria-label":w(U)("el.carousel.leftArrow"),onMouseenter:O[0]||(O[0]=F=>w(v)("left")),onMouseleave:O[1]||(O[1]=(...F)=>w(h)&&w(h)(...F)),onClick:O[2]||(O[2]=Qe(F=>w(D)(w(g)-1),["stop"]))},[ue(w(Ne),null,{default:fe(()=>[ue(w(kf))]),_:1})],42,EL),[[Yt,(e.arrow==="always"||w(p))&&(e.loop||w(g)>0)]])]),_:1})):ye("v-if",!0),w(a)?(j(),me(vr,{key:1,name:"carousel-arrow-right",persisted:""},{default:fe(()=>[Ct(ie("button",{type:"button",class:se([w(I).e("arrow"),w(I).em("arrow","right")]),"aria-label":w(U)("el.carousel.rightArrow"),onMouseenter:O[3]||(O[3]=F=>w(v)("right")),onMouseleave:O[4]||(O[4]=(...F)=>w(h)&&w(h)(...F)),onClick:O[5]||(O[5]=Qe(F=>w(D)(w(g)+1),["stop"]))},[ue(w(Ne),null,{default:fe(()=>[ue(w(us))]),_:1})],42,kL),[[Yt,(e.arrow==="always"||w(p))&&(e.loop||w(g)<w(f).length-1)]])]),_:1})):ye("v-if",!0),ie("div",{class:se(w(I).e("container")),style:He(w(d)),onTransitionstart:de,onTransitionend:z},[ue(w(T)),xe(q.$slots,"default")],38),ue(w(k),null,{default:fe(()=>[e.indicatorPosition!=="none"?(j(),ae("ul",{key:0,class:se(ee.value)},[(j(!0),ae(Ve,null,Bt(w(f),(F,R)=>Ct((j(),ae("li",{key:R,class:se([w(I).e("indicator"),w(I).em("indicator",e.direction),w(I).is("active",R===w(g))]),onMouseenter:P=>w(W)(R),onClick:Qe(P=>w(m)(R),["stop"])},[ie("button",{class:se(w(I).e("button")),"aria-label":w(U)("el.carousel.indicator",{index:R+1})},[w(c)?(j(),ae("span",PL,Ae(F.props.label),1)):ye("v-if",!0)],10,AL)],42,OL)),[[Yt,w(E)(R)]])),128))],2)):ye("v-if",!0)]),_:1}),e.motionBlur?(j(),ae("svg",IL,[...O[8]||(O[8]=[ie("defs",null,[ie("filter",{id:"elCarouselHorizontal"},[ie("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"12,0"})]),ie("filter",{id:"elCarouselVertical"},[ie("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"0,10"})])],-1)])])):ye("v-if",!0)],34))}});const DL=Fe({name:{type:String,default:""},label:{type:[String,Number],default:""}}),LL=e=>{const t=Ue(iS),n=it(),r=re(),i=re(!1),l=re(0),g=re(1),o=re(!1),a=re(!1),c=re(!1),p=re(!1),{isCardType:u,isVertical:f,cardScale:s}=t;function d(_,S,x){const T=x-1,E=S-1,k=S+1,D=x/2;return S===0&&_===T?-1:S===T&&_===0?x:_<E&&S-_>=D?x+1:_>k&&_-S>=D?-2:_}function v(_,S){var x,T;const E=w(f)?((x=t.root.value)==null?void 0:x.offsetHeight)||0:((T=t.root.value)==null?void 0:T.offsetWidth)||0;return c.value?E*((2-s)*(_-S)+1)/4:_<S?-(1+s)*E/4:(3+s)*E/4}function h(_,S,x){const T=t.root.value;return T?((x?T.offsetHeight:T.offsetWidth)||0)*(_-S):0}const m=(_,S,x)=>{var T;const E=w(u),k=(T=t.items.value.length)!=null?T:Number.NaN,D=_===S;!E&&!gn(x)&&(p.value=D||_===x),!D&&k>2&&t.loop&&(_=d(_,S,k));const W=w(f);o.value=D,E?(c.value=Math.round(Math.abs(_-S))<=1,l.value=v(_,S),g.value=w(o)?1:s):l.value=h(_,S,W),a.value=!0,D&&r.value&&t.setContainerHeight(r.value.offsetHeight)};function y(){if(t&&w(u)){const _=t.items.value.findIndex(({uid:S})=>S===n.uid);t.setActiveItem(_)}}const b={props:e,states:mt({hover:i,translate:l,scale:g,active:o,ready:a,inStage:c,animating:p}),uid:n.uid,getVnode:()=>n.vnode,translateItem:m};return t.addItem(b),kt(()=>{t.removeItem(b)}),{carouselItemRef:r,active:o,animating:p,hover:i,inStage:c,isVertical:f,translate:l,isCardType:u,scale:g,ready:a,handleItemClick:y}};var oS=we({name:Zh,__name:"carousel-item",props:DL,setup(e){const t=e,n=De("carousel"),{carouselItemRef:r,active:i,animating:l,hover:g,inStage:o,isVertical:a,translate:c,isCardType:p,scale:u,ready:f,handleItemClick:s}=LL(t),d=V(()=>[n.e("item"),n.is("active",i.value),n.is("in-stage",o.value),n.is("hover",g.value),n.is("animating",l.value),{[n.em("item","card")]:p.value,[n.em("item","card-vertical")]:p.value&&a.value}]),v=V(()=>{const m=`${`translate${w(a)?"Y":"X"}`}(${w(c)}px)`,y=`scale(${w(u)})`;return{transform:[m,y].join(" ")}});return(h,m)=>Ct((j(),ae("div",{ref_key:"carouselItemRef",ref:r,class:se(d.value),style:He(v.value),onClick:m[0]||(m[0]=(...y)=>w(s)&&w(s)(...y))},[w(p)?Ct((j(),ae("div",{key:0,class:se(w(n).e("mask"))},null,2)),[[Yt,!w(i)]]):ye("v-if",!0),xe(h.$slots,"default")],6)),[[Yt,w(f)]])}});const FL=gt(RL,{CarouselItem:oS}),BL=Sr(oS),sS=Fe({modelValue:{type:[String,Number,Boolean],default:void 0},size:Nr,disabled:{type:Boolean,default:void 0},label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),NL=Fe({...sS,border:Boolean}),lS={[nt]:e=>je(e)||Ye(e)||An(e),[Mt]:e=>je(e)||Ye(e)||An(e)},uS=Symbol("radioGroupKey"),cS=(e,t)=>{const n=re(),r=Ue(uS,void 0),i=V(()=>!!r),l=V(()=>$h(e.value)?e.label:e.value),g=V({get(){return i.value?r.modelValue:e.modelValue},set(u){i.value?r.changeEvent(u):t&&t(nt,u),n.value.checked=e.modelValue===l.value}}),o=Vr(V(()=>r==null?void 0:r.size)),a=Kn(V(()=>r==null?void 0:r.disabled)),c=re(!1),p=V(()=>a.value||i.value&&g.value!==l.value?-1:0);return jf({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},V(()=>i.value&&$h(e.value))),{radioRef:n,isGroup:i,radioGroup:r,focus:c,size:o,disabled:a,tabIndex:p,modelValue:g,actualValue:l}},zL=["value","name","disabled","checked"];var fS=we({name:"ElRadio",__name:"radio",props:NL,emits:lS,setup(e,{emit:t}){const n=e,r=t,i=De("radio"),{radioRef:l,radioGroup:g,focus:o,size:a,disabled:c,modelValue:p,actualValue:u}=cS(n,r);function f(){We(()=>r(Mt,p.value))}return(s,d)=>{var v;return j(),ae("label",{class:se([w(i).b(),w(i).is("disabled",w(c)),w(i).is("focus",w(o)),w(i).is("bordered",e.border),w(i).is("checked",w(p)===w(u)),w(i).m(w(a))])},[ie("span",{class:se([w(i).e("input"),w(i).is("disabled",w(c)),w(i).is("checked",w(p)===w(u))])},[Ct(ie("input",{ref_key:"radioRef",ref:l,"onUpdate:modelValue":d[0]||(d[0]=h=>yt(p)?p.value=h:null),class:se(w(i).e("original")),value:w(u),name:e.name||((v=w(g))==null?void 0:v.name),disabled:w(c),checked:w(p)===w(u),type:"radio",onFocus:d[1]||(d[1]=h=>o.value=!0),onBlur:d[2]||(d[2]=h=>o.value=!1),onChange:f,onClick:d[3]||(d[3]=Qe(()=>{},["stop"]))},null,42,zL),[[W_,w(p)]]),ie("span",{class:se(w(i).e("inner"))},null,2)],2),ie("span",{class:se(w(i).e("label")),onKeydown:d[4]||(d[4]=Qe(()=>{},["stop"]))},[xe(s.$slots,"default",{},()=>[qe(Ae(e.label),1)])],34)],2)}}});const $L=Fe({...sS}),jL=["value","name","disabled"];var ig=we({name:"ElRadioButton",__name:"radio-button",props:$L,setup(e){const t=e,n=De("radio"),{radioRef:r,focus:i,size:l,disabled:g,modelValue:o,radioGroup:a,actualValue:c}=cS(t),p=V(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(u,f)=>{var s;return j(),ae("label",{class:se([w(n).b("button"),w(n).is("active",w(o)===w(c)),w(n).is("disabled",w(g)),w(n).is("focus",w(i)),w(n).bm("button",w(l))])},[Ct(ie("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":f[0]||(f[0]=d=>yt(o)?o.value=d:null),class:se(w(n).be("button","original-radio")),value:w(c),type:"radio",name:e.name||((s=w(a))==null?void 0:s.name),disabled:w(g),onFocus:f[1]||(f[1]=d=>i.value=!0),onBlur:f[2]||(f[2]=d=>i.value=!1),onClick:f[3]||(f[3]=Qe(()=>{},["stop"]))},null,42,jL),[[W_,w(o)]]),ie("span",{class:se(w(n).be("button","inner")),style:He(w(o)===w(c)?p.value:{}),onKeydown:f[4]||(f[4]=Qe(()=>{},["stop"]))},[xe(u.$slots,"default",{},()=>[qe(Ae(e.label),1)])],38)],2)}}});const dS={label:"label",value:"value",disabled:"disabled"},VL=Fe({id:{type:String,default:void 0},size:Nr,disabled:{type:Boolean,default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},options:{type:Se(Array)},props:{type:Se(Object),default:()=>dS},type:{type:String,values:["radio","button"],default:"radio"},...oi(["ariaLabel"])}),UL=lS,HL=["id","aria-label","aria-labelledby"];var hS=we({name:"ElRadioGroup",__name:"radio-group",props:VL,emits:UL,setup(e,{emit:t}){const n=e,r=t,i=De("radio"),l=zr(),g=re(),{formItem:o}=Ni(),{inputId:a,isLabeledByFormItem:c}=vs(n,{formItemContext:o}),p=v=>{r(nt,v),We(()=>r(Mt,v))};et(()=>{const v=g.value.querySelectorAll("[type=radio]"),h=v[0];!Array.from(v).some(m=>m.checked)&&h&&(h.tabIndex=0)});const u=V(()=>n.name||l.value),f=V(()=>({...dS,...n.props})),s=v=>{const{label:h,value:m,disabled:y}=f.value,b={label:v[h],value:v[m],disabled:v[y]};return{...qw(v,[h,m,y]),...b}},d=V(()=>n.type==="button"?ig:fS);return wt(uS,mt({...Lr(n),changeEvent:p,name:u})),ke(()=>n.modelValue,(v,h)=>{n.validateEvent&&!kr(v,h)&&(o==null||o.validate("change").catch(m=>void 0))}),(v,h)=>(j(),ae("div",{id:w(a),ref_key:"radioGroupRef",ref:g,class:se(w(i).b("group")),role:"radiogroup","aria-label":w(c)?void 0:e.ariaLabel||"radio-group","aria-labelledby":w(c)?w(o).labelId:void 0},[xe(v.$slots,"default",{},()=>[(j(!0),ae(Ve,null,Bt(e.options,(m,y)=>(j(),me(st(d.value),zt({key:y},{ref_for:!0},s(m)),null,16))),128))])],10,HL))}});gt(fS,{RadioButton:ig,RadioGroup:hS});const WL=Sr(hS),GL=Sr(ig),KL=Fe({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Se([Number,Object]),default:()=>Jt({})},sm:{type:Se([Number,Object]),default:()=>Jt({})},md:{type:Se([Number,Object]),default:()=>Jt({})},lg:{type:Se([Number,Object]),default:()=>Jt({})},xl:{type:Se([Number,Object]),default:()=>Jt({})}}),pS=Symbol("rowContextKey");var YL=we({name:"ElCol",__name:"col",props:KL,setup(e){const t=e,{gutter:n}=Ue(pS,{gutter:V(()=>0)}),r=De("col"),i=V(()=>{const g={};return n.value&&(g.paddingLeft=g.paddingRight=`${n.value/2}px`),g}),l=V(()=>{const g=[];return["span","offset","pull","push"].forEach(c=>{const p=t[c];Ye(p)&&(c==="span"?g.push(r.b(`${t[c]}`)):p>0&&g.push(r.b(`${c}-${t[c]}`)))}),["xs","sm","md","lg","xl"].forEach(c=>{Ye(t[c])?g.push(r.b(`${c}-${t[c]}`)):Ze(t[c])&&Object.entries(t[c]).forEach(([p,u])=>{g.push(p!=="span"?r.b(`${c}-${p}-${u}`):r.b(`${c}-${u}`))})}),n.value&&g.push(r.is("guttered")),[r.b(),g]});return(g,o)=>(j(),me(st(e.tag),{class:se(l.value),style:He(i.value)},{default:fe(()=>[xe(g.$slots,"default")]),_:3},8,["class","style"]))}});const vy=gt(YL),gy=e=>Ye(e)||je(e)||Pe(e),XL=Fe({accordion:Boolean,modelValue:{type:Se([Array,String,Number]),default:()=>Jt([])},expandIconPosition:{type:Se([String]),default:"right"},beforeCollapse:{type:Se(Function)}}),qL={[nt]:gy,[Mt]:gy},vS=Symbol("collapseContextKey"),ZL="ElCollapse",JL=(e,t)=>{const n=re(Vn(e.modelValue)),r=g=>{n.value=g;const o=e.accordion?n.value[0]:n.value;t(nt,o),t(Mt,o)},i=g=>{if(e.accordion)r([n.value[0]===g?"":g]);else{const o=[...n.value],a=o.indexOf(g);a>-1?o.splice(a,1):o.push(g),r(o)}},l=async g=>{const{beforeCollapse:o}=e;if(!o){i(g);return}const a=o(g);[Wo(a),An(a)].includes(!0)||fn(ZL,"beforeCollapse must return type `Promise<boolean>` or `boolean`"),Wo(a)?a.then(p=>{p!==!1&&i(g)}).catch(p=>{}):a&&i(g)};return ke(()=>e.modelValue,()=>n.value=Vn(e.modelValue),{deep:!0}),wt(vS,{activeNames:n,handleItemClick:l}),{activeNames:n,setActiveNames:r}},QL=e=>{const t=De("collapse");return{rootKls:V(()=>[t.b(),t.b(`icon-position-${e.expandIconPosition}`)])}};var eF=we({name:"ElCollapse",__name:"collapse",props:XL,emits:qL,setup(e,{expose:t,emit:n}){const r=e,i=n,{activeNames:l,setActiveNames:g}=JL(r,i),{rootKls:o}=QL(r);return t({activeNames:l,setActiveNames:g}),(a,c)=>(j(),ae("div",{class:se(w(o))},[xe(a.$slots,"default")],2))}});const tF=Fe({title:{type:String,default:""},name:{type:Se([String,Number]),default:void 0},icon:{type:Nt,default:us},disabled:Boolean});var nF=we({name:"ElCollapseTransition",__name:"collapse-transition",setup(e){const t=De("collapse-transition"),n=i=>{i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom},r={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height&&(i.dataset.elExistsHeight=i.style.height),i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){requestAnimationFrame(()=>{i.dataset.oldOverflow=i.style.overflow,i.dataset.elExistsHeight?i.style.maxHeight=i.dataset.elExistsHeight:i.scrollHeight!==0?i.style.maxHeight=`${i.scrollHeight}px`:i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"})},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},enterCancelled(i){n(i)},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){n(i)},leaveCancelled(i){n(i)}};return(i,l)=>(j(),me(vr,zt({name:w(t).b()},nE(r)),{default:fe(()=>[xe(i.$slots,"default")]),_:3},16,["name"]))}});const gS=gt(nF),rF=e=>{const t=Ue(vS),{namespace:n}=De("collapse"),r=re(!1),i=re(!1),l=Xv(),g=V(()=>l.current++),o=V(()=>{var f;return(f=e.name)!=null?f:`${n.value}-id-${l.prefix}-${w(g)}`}),a=V(()=>t==null?void 0:t.activeNames.value.includes(w(o)));return{focusing:r,id:g,isActive:a,handleFocus:()=>{setTimeout(()=>{i.value?i.value=!1:r.value=!0},50)},handleHeaderClick:f=>{if(e.disabled)return;const s=f.target;s!=null&&s.closest("input, textarea, select")||(t==null||t.handleItemClick(w(o)),r.value=!1,i.value=!0)},handleEnterClick:f=>{const s=f.target;s!=null&&s.closest("input, textarea, select")||(f.preventDefault(),t==null||t.handleItemClick(w(o)))}}},iF=(e,{focusing:t,isActive:n,id:r})=>{const i=De("collapse"),l=V(()=>[i.b("item"),i.is("active",w(n)),i.is("disabled",e.disabled)]),g=V(()=>[i.be("item","header"),i.is("active",w(n)),{focusing:w(t)&&!e.disabled}]),o=V(()=>[i.be("item","arrow"),i.is("active",w(n))]),a=V(()=>[i.be("item","title")]),c=V(()=>i.be("item","wrap")),p=V(()=>i.be("item","content")),u=V(()=>i.b(`content-${w(r)}`)),f=V(()=>i.b(`head-${w(r)}`));return{itemTitleKls:a,arrowKls:o,headKls:g,rootKls:l,itemWrapperKls:c,itemContentKls:p,scopedContentId:u,scopedHeadId:f}},aF=["id","aria-expanded","aria-controls","aria-describedby","tabindex","aria-disabled"],oF=["id","aria-hidden","aria-labelledby"];var mS=we({name:"ElCollapseItem",__name:"collapse-item",props:tF,setup(e,{expose:t}){const n=e,{focusing:r,id:i,isActive:l,handleFocus:g,handleHeaderClick:o,handleEnterClick:a}=rF(n),{arrowKls:c,headKls:p,rootKls:u,itemTitleKls:f,itemWrapperKls:s,itemContentKls:d,scopedContentId:v,scopedHeadId:h}=iF(n,{focusing:r,isActive:l,id:i});return t({isActive:l}),(m,y)=>(j(),ae("div",{class:se(w(u))},[ie("div",{id:w(h),class:se(w(p)),"aria-expanded":w(l),"aria-controls":w(v),"aria-describedby":w(v),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"button",onClick:y[0]||(y[0]=(...b)=>w(o)&&w(o)(...b)),onKeydown:y[1]||(y[1]=nr(Qe((...b)=>w(a)&&w(a)(...b),["stop"]),["space","enter"])),onFocus:y[2]||(y[2]=(...b)=>w(g)&&w(g)(...b)),onBlur:y[3]||(y[3]=b=>r.value=!1)},[ie("span",{class:se(w(f))},[xe(m.$slots,"title",{isActive:w(l)},()=>[qe(Ae(e.title),1)])],2),xe(m.$slots,"icon",{isActive:w(l)},()=>[ue(w(Ne),{class:se(w(c))},{default:fe(()=>[(j(),me(st(e.icon)))]),_:1},8,["class"])])],42,aF),ue(w(gS),null,{default:fe(()=>[Ct(ie("div",{id:w(v),role:"region",class:se(w(s)),"aria-hidden":!w(l),"aria-labelledby":w(h)},[ie("div",{class:se(w(d))},[xe(m.$slots,"default")],2)],10,oF),[[Yt,w(l)]])]),_:3})],2))}});const sF=gt(eF,{CollapseItem:mS}),lF=Sr(mS),yS=Fe({modelValue:{type:Se(String),default:void 0},border:{type:Boolean,default:!0},showAlpha:Boolean,colorFormat:{type:Se(String)},disabled:Boolean,predefine:{type:Se(Array)},validateEvent:{type:Boolean,default:!0}}),uF={[nt]:e=>je(e)||Qt(e)},bS=Symbol("colorCommonPickerKey"),_S=Symbol("colorPickerPanelContextKey"),wS=Fe({color:{type:Se(Object),required:!0},vertical:Boolean,disabled:Boolean}),cF=wS;let Id=!1;function Jh(e,t){if(!pt)return;const n=function(l){var g;(g=t.drag)==null||g.call(t,l)},r=function(l){var g;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,Id=!1,(g=t.end)==null||g.call(t,l)},i=function(l){var g;Id||(document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),Id=!0,(g=t.start)==null||g.call(t,l))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i,{passive:!1})}const SS=e=>{let t,n;return e.type==="touchend"?(n=e.changedTouches[0].clientY,t=e.changedTouches[0].clientX):e.type.startsWith("touch")?(n=e.touches[0].clientY,t=e.touches[0].clientX):(n=e.clientY,t=e.clientX),{clientX:t,clientY:n}},CS=(e,{key:t,minValue:n,maxValue:r})=>{const i=it(),l=Ht(),g=Ht(),o=V(()=>e.color.get(t));function a(f){var s;if(e.disabled)return;f.target!==l.value&&c(f),(s=l.value)==null||s.focus()}function c(f){if(!g.value||!l.value||e.disabled)return;const d=i.vnode.el.getBoundingClientRect(),{clientX:v,clientY:h}=SS(f);let m;if(e.vertical){let y=h-d.top;y=Math.max(l.value.offsetHeight/2,y),y=Math.min(y,d.height-l.value.offsetHeight/2),m=Math.round((y-l.value.offsetHeight/2)/(d.height-l.value.offsetHeight)*r)}else{let y=v-d.left;y=Math.max(l.value.offsetWidth/2,y),y=Math.min(y,d.width-l.value.offsetWidth/2),m=Math.round((y-l.value.offsetWidth/2)/(d.width-l.value.offsetWidth)*r)}e.color.set(t,m)}function p(f){if(e.disabled)return;const{shiftKey:s}=f,d=dn(f),v=s?10:1,h=t==="hue"?-1:1;let m=!0;switch(d){case Re.left:case Re.down:u(-v*h);break;case Re.right:case Re.up:u(v*h);break;case Re.home:e.color.set(t,t==="hue"?r:n);break;case Re.end:e.color.set(t,t==="hue"?n:r);break;case Re.pageDown:u(-4*h);break;case Re.pageUp:u(4*h);break;default:m=!1;break}m&&f.preventDefault()}function u(f){let s=o.value+f;s=s<n?n:s>r?r:s,e.color.set(t,s)}return{thumb:l,bar:g,currentValue:o,handleDrag:c,handleClick:a,handleKeydown:p}},xS=(e,{namespace:t,maxValue:n,bar:r,thumb:i,currentValue:l,handleDrag:g,getBackground:o})=>{const a=it(),c=De(t),p=re(0),u=re(0),f=re();function s(){if(!i.value||e.vertical)return 0;const S=a.vnode.el,x=l.value;return S?Math.round(x*(S.offsetWidth-i.value.offsetWidth/2)/n):0}function d(){if(!i.value)return 0;const S=a.vnode.el;if(!e.vertical)return 0;const x=l.value;return S?Math.round(x*(S.offsetHeight-i.value.offsetHeight/2)/n):0}function v(){p.value=s(),u.value=d(),f.value=o==null?void 0:o()}et(()=>{if(!r.value||!i.value)return;const S={drag:x=>{g(x)},end:x=>{g(x)}};Jh(r.value,S),Jh(i.value,S),v()}),ke(l,()=>v()),ke(()=>e.color.value,()=>v());const h=V(()=>[c.b(),c.is("vertical",e.vertical),c.is("disabled",e.disabled)]),m=V(()=>c.e("bar")),y=V(()=>c.e("thumb")),b=V(()=>({background:f.value})),_=V(()=>({left:bn(p.value),top:bn(u.value)}));return{rootKls:h,barKls:m,barStyle:b,thumbKls:y,thumbStyle:_,thumbLeft:p,thumbTop:u,update:v}},fF=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],my=0,Md=100;var dF=we({name:"ElColorAlphaSlider",__name:"alpha-slider",props:wS,setup(e,{expose:t}){const n=e,{currentValue:r,bar:i,thumb:l,handleDrag:g,handleClick:o,handleKeydown:a}=CS(n,{key:"alpha",minValue:my,maxValue:Md}),{rootKls:c,barKls:p,barStyle:u,thumbKls:f,thumbStyle:s,update:d}=xS(n,{namespace:"color-alpha-slider",maxValue:Md,currentValue:r,bar:i,thumb:l,handleDrag:g,getBackground:y}),{t:v}=$t(),h=V(()=>v("el.colorpicker.alphaLabel")),m=V(()=>v("el.colorpicker.alphaDescription",{alpha:r.value,color:n.color.value}));function y(){if(n.color&&n.color.value){const{r:b,g:_,b:S}=n.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${_}, ${S}, 0) 0%, rgba(${b}, ${_}, ${S}, 1) 100%)`}return""}return t({update:d,bar:i,thumb:l}),(b,_)=>(j(),ae("div",{class:se(w(c))},[ie("div",{ref_key:"bar",ref:i,class:se(w(p)),style:He(w(u)),onClick:_[0]||(_[0]=(...S)=>w(o)&&w(o)(...S))},null,6),ie("div",{ref_key:"thumb",ref:l,class:se(w(f)),style:He(w(s)),"aria-label":h.value,"aria-valuenow":w(r),"aria-valuetext":m.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":my,"aria-valuemax":Md,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:_[1]||(_[1]=(...S)=>w(a)&&w(a)(...S))},null,46,fF)],2))}});const hF=["aria-label","aria-valuenow","aria-valuetext","aria-orientation","tabindex","aria-disabled"],yy=0,Rd=360;var pF=we({name:"ElColorHueSlider",__name:"hue-slider",props:cF,setup(e,{expose:t}){const n=e,{currentValue:r,bar:i,thumb:l,handleDrag:g,handleClick:o,handleKeydown:a}=CS(n,{key:"hue",minValue:yy,maxValue:Rd}),{rootKls:c,barKls:p,thumbKls:u,thumbStyle:f,thumbTop:s,update:d}=xS(n,{namespace:"color-hue-slider",maxValue:Rd,currentValue:r,bar:i,thumb:l,handleDrag:g}),{t:v}=$t(),h=V(()=>v("el.colorpicker.hueLabel")),m=V(()=>v("el.colorpicker.hueDescription",{hue:r.value,color:n.color.value}));return t({bar:i,thumb:l,thumbTop:s,update:d}),(y,b)=>(j(),ae("div",{class:se(w(c))},[ie("div",{ref_key:"bar",ref:i,class:se(w(p)),onClick:b[0]||(b[0]=(..._)=>w(o)&&w(o)(..._))},null,2),ie("div",{ref_key:"thumb",ref:l,class:se(w(u)),style:He(w(f)),"aria-label":h.value,"aria-valuenow":w(r),"aria-valuetext":m.value,"aria-orientation":e.vertical?"vertical":"horizontal","aria-valuemin":yy,"aria-valuemax":Rd,role:"slider",tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,onKeydown:b[1]||(b[1]=(..._)=>w(a)&&w(a)(..._))},null,46,hF)],2))}});const vF=Fe({colors:{type:Se(Array),required:!0},color:{type:Se(Object),required:!0},enableAlpha:{type:Boolean,required:!0},disabled:Boolean});var gF=Object.defineProperty,mF=(e,t,n)=>t in e?gF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wr=(e,t,n)=>mF(e,typeof t!="symbol"?t+"":t,n);class Wc{constructor(t={}){Wr(this,"_hue",0),Wr(this,"_saturation",100),Wr(this,"_value",100),Wr(this,"_alpha",100),Wr(this,"_tiny",new Ro),Wr(this,"_isValid",!1),Wr(this,"enableAlpha",!1),Wr(this,"format",""),Wr(this,"value",""),Wr(this,"selected");for(const n in t)at(t,n)&&(this[n]=t[n]);t.value?this.fromString(t.value):this.doOnChange()}set(t,n){if(arguments.length===1&&typeof t=="object"){for(const r in t)at(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this._isValid=!0,this.doOnChange()}get(t){return["hue","saturation","value","alpha"].includes(t)?Math.round(this[`_${t}`]):this[`_${t}`]}toRgb(){return this._isValid?this._tiny.toRgb():{r:255,g:255,b:255,a:0}}fromString(t){const n=new Ro(t);if(this._isValid=n.isValid,n.isValid){const{h:r,s:i,v:l,a:g}=n.toHsv();this._hue=r,this._saturation=i*100,this._value=l*100,this._alpha=g*100}else this._hue=0,this._saturation=100,this._value=100,this._alpha=100;this.doOnChange()}clear(){this._isValid=!1,this.value="",this._hue=0,this._saturation=100,this._value=100,this._alpha=100}compare(t){const n=new Ro({h:t._hue,s:t._saturation/100,v:t._value/100,a:t._alpha/100});return this._tiny.equals(n)}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:i,format:l,enableAlpha:g}=this;let o=l||(g?"rgb":"hex");l==="hex"&&g&&(o="hex8"),this._tiny=new Ro({h:t,s:n/100,v:r/100,a:i/100}),this.value=this._isValid?this._tiny.toString(o):""}}const yF=e=>{const{currentColor:t}=Ue(_S),n=re(i(e.colors,e.color));ke(()=>t.value,l=>{const g=new Wc({value:l,enableAlpha:e.enableAlpha});n.value.forEach(o=>{o.selected=g.compare(o)})}),io(()=>{n.value=i(e.colors,e.color)});function r(l){e.color.fromString(e.colors[l])}function i(l,g){return l.map(o=>{const a=new Wc({value:o,enableAlpha:e.enableAlpha});return a.selected=a.compare(g),a})}return{rgbaColors:n,handleSelect:r}},bF=e=>{const t=De("color-predefine"),n=V(()=>[t.b(),t.is("disabled",e.disabled)]),r=V(()=>t.e("colors"));function i(l){return[t.e("color-selector"),t.is("alpha",l.get("alpha")<100),{selected:l.selected}]}return{rootKls:n,colorsKls:r,colorSelectorKls:i}},_F=["disabled","aria-label","onClick"];var wF=we({name:"ElColorPredefine",__name:"predefine",props:vF,setup(e){const t=e,{rgbaColors:n,handleSelect:r}=yF(t),{rootKls:i,colorsKls:l,colorSelectorKls:g}=bF(t),{t:o}=$t(),a=c=>o("el.colorpicker.predefineDescription",{value:c});return(c,p)=>(j(),ae("div",{class:se(w(i))},[ie("div",{class:se(w(l))},[(j(!0),ae(Ve,null,Bt(w(n),(u,f)=>(j(),ae("button",{key:e.colors[f],type:"button",disabled:e.disabled,"aria-label":a(u.value),class:se(w(g)(u)),onClick:s=>w(r)(f)},[ie("div",{style:He({backgroundColor:u.value})},null,4)],10,_F))),128))],2)],2))}});const SF=Fe({color:{type:Se(Object),required:!0},disabled:Boolean}),CF=e=>{const t=it(),n=re(),r=re(0),i=re(0),l=re("hsl(0, 100%, 50%)"),g=V(()=>e.color.get("saturation")),o=V(()=>e.color.get("value")),a=V(()=>e.color.get("hue"));function c(d){var v;if(e.disabled)return;d.target!==n.value&&p(d),(v=n.value)==null||v.focus({preventScroll:!0})}function p(d){if(e.disabled)return;const h=t.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=SS(d);let b=m-h.left,_=y-h.top;b=Math.max(0,b),b=Math.min(b,h.width),_=Math.max(0,_),_=Math.min(_,h.height),i.value=b,r.value=_,e.color.set({saturation:b/h.width*100,value:100-_/h.height*100})}function u(d){if(e.disabled)return;const{shiftKey:v}=d,h=dn(d),m=v?10:1;let y=!0;switch(h){case Re.left:f(-m);break;case Re.right:f(m);break;case Re.up:s(m);break;case Re.down:s(-m);break;default:y=!1;break}y&&d.preventDefault()}function f(d){let v=g.value+d;v=v<0?0:v>100?100:v,e.color.set("saturation",v)}function s(d){let v=o.value+d;v=v<0?0:v>100?100:v,e.color.set("value",v)}return{cursorRef:n,cursorTop:r,cursorLeft:i,background:l,saturation:g,brightness:o,hue:a,handleClick:c,handleDrag:p,handleKeydown:u}},xF=(e,{cursorTop:t,cursorLeft:n,background:r,handleDrag:i})=>{const l=it(),g=De("color-svpanel");function o(){const f=e.color.get("saturation"),s=e.color.get("value"),d=l.vnode.el,{clientWidth:v,clientHeight:h}=d;n.value=f*v/100,t.value=(100-s)*h/100,r.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}et(()=>{Jh(l.vnode.el,{drag:f=>{i(f)},end:f=>{i(f)}}),o()}),ke([()=>e.color.get("hue"),()=>e.color.get("value"),()=>e.color.value],()=>o());const a=V(()=>g.b()),c=V(()=>g.e("cursor")),p=V(()=>({backgroundColor:r.value})),u=V(()=>({top:bn(t.value),left:bn(n.value)}));return{rootKls:a,cursorKls:c,rootStyle:p,cursorStyle:u,update:o}},TF=["tabindex","aria-disabled","aria-label","aria-valuenow","aria-valuetext"];var EF=we({name:"ElSvPanel",__name:"sv-panel",props:SF,setup(e,{expose:t}){const n=e,{cursorRef:r,cursorTop:i,cursorLeft:l,background:g,saturation:o,brightness:a,handleClick:c,handleDrag:p,handleKeydown:u}=CF(n),{rootKls:f,cursorKls:s,rootStyle:d,cursorStyle:v,update:h}=xF(n,{cursorTop:i,cursorLeft:l,background:g,handleDrag:p}),{t:m}=$t(),y=V(()=>m("el.colorpicker.svLabel")),b=V(()=>m("el.colorpicker.svDescription",{saturation:o.value,brightness:a.value,color:n.color.value}));return t({update:h}),(_,S)=>(j(),ae("div",{class:se(w(f)),style:He(w(d)),onClick:S[1]||(S[1]=(...x)=>w(c)&&w(c)(...x))},[ie("div",{ref_key:"cursorRef",ref:r,class:se(w(s)),style:He(w(v)),tabindex:e.disabled?void 0:0,"aria-disabled":e.disabled,role:"slider","aria-valuemin":"0,0","aria-valuemax":"100,100","aria-label":y.value,"aria-valuenow":`${w(o)},${w(a)}`,"aria-valuetext":b.value,onKeydown:S[0]||(S[0]=(...x)=>w(u)&&w(u)(...x))},null,46,TF)],6))}});const TS=(e,t)=>{const n=mt(new Wc({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue}));return ke(()=>[e.colorFormat,e.showAlpha],()=>{n.enableAlpha=e.showAlpha,n.format=e.colorFormat||n.format,n.doOnChange(),t(nt,n.value)}),{color:n}};var kF=we({name:"ElColorPickerPanel",__name:"color-picker-panel",props:yS,emits:uF,setup(e,{expose:t,emit:n}){const r=e,i=n,l=De("color-picker-panel"),{formItem:g}=Ni(),o=Kn(),a=re(),c=re(),p=re(),u=re(),f=re(""),{color:s}=Ue(bS,()=>TS(r,i),!0);function d(){s.fromString(f.value),s.value!==f.value&&(f.value=s.value)}function v(){var m;r.validateEvent&&((m=g==null?void 0:g.validate)==null||m.call(g,"blur").catch(y=>void 0))}function h(){var m,y,b;(m=a.value)==null||m.update(),(y=c.value)==null||y.update(),(b=p.value)==null||b.update()}return et(()=>{r.modelValue&&(f.value=s.value),We(h)}),ke(()=>r.modelValue,m=>{m!==s.value&&(m?s.fromString(m):s.clear())}),ke(()=>s.value,m=>{i(nt,m),f.value=m,r.validateEvent&&(g==null||g.validate("change").catch(y=>void 0))}),wt(_S,{currentColor:V(()=>s.value)}),t({color:s,inputRef:u,update:h}),(m,y)=>(j(),ae("div",{class:se([w(l).b(),w(l).is("disabled",w(o)),w(l).is("border",e.border)]),onFocusout:v},[ie("div",{class:se(w(l).e("wrapper"))},[ue(pF,{ref_key:"hueRef",ref:a,class:"hue-slider",color:w(s),vertical:"",disabled:w(o)},null,8,["color","disabled"]),ue(EF,{ref_key:"svRef",ref:c,color:w(s),disabled:w(o)},null,8,["color","disabled"])],2),e.showAlpha?(j(),me(dF,{key:0,ref_key:"alphaRef",ref:p,color:w(s),disabled:w(o)},null,8,["color","disabled"])):ye("v-if",!0),e.predefine?(j(),me(wF,{key:1,ref:"predefine","enable-alpha":e.showAlpha,color:w(s),colors:e.predefine,disabled:w(o)},null,8,["enable-alpha","color","colors","disabled"])):ye("v-if",!0),ie("div",{class:se(w(l).e("footer"))},[ue(w(gs),{ref_key:"inputRef",ref:u,modelValue:f.value,"onUpdate:modelValue":y[0]||(y[0]=b=>f.value=b),"validate-event":!1,size:"small",disabled:w(o),onChange:d},null,8,["modelValue","disabled"]),xe(m.$slots,"footer")],2)],34))}});const OF=gt(kF),AF=Fe({persistent:{type:Boolean,default:!0},modelValue:{type:Se(String),default:void 0},id:String,showAlpha:Boolean,colorFormat:{type:Se(String)},disabled:{type:Boolean,default:void 0},clearable:{type:Boolean,default:!0},size:Nr,popperClass:Ut.popperClass,popperStyle:Ut.popperStyle,tabindex:{type:[String,Number],default:0},teleported:Ut.teleported,appendTo:Ut.appendTo,predefine:{type:Se(Array)},validateEvent:{type:Boolean,default:!0},...Fv,...oi(["ariaLabel"])}),PF={[nt]:e=>je(e)||Qt(e),[Mt]:e=>je(e)||Qt(e),activeChange:e=>je(e)||Qt(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>!0},IF=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"];var MF=we({name:"ElColorPicker",__name:"color-picker",props:AF,emits:PF,setup(e,{expose:t,emit:n}){const r=e,i=n,{t:l}=$t(),g=De("color"),{formItem:o}=Ni(),a=Vr(),c=Kn(),{valueOnClear:p,isEmptyValue:u}=f2(r,null),f=TS(r,i),{inputId:s,isLabeledByFormItem:d}=vs(r,{formItemContext:o}),v=re(),h=re(),m=re(),y=re(!1),b=re(!1);let _=!0;const{isFocused:S,handleFocus:x,handleBlur:T}=Yv(h,{disabled:c,beforeBlur(J){var oe;return(oe=v.value)==null?void 0:oe.isFocusInsideContent(J)},afterBlur(){var J;de(!1),F(),r.validateEvent&&((J=o==null?void 0:o.validate)==null||J.call(o,"blur").catch(oe=>void 0))}}),E=i8(()=>{var J,oe;return(oe=(J=m.value)==null?void 0:J.color)!=null?oe:f.color}),k=V(()=>Jw(r,Object.keys(yS))),D=V(()=>!r.modelValue&&!b.value?"transparent":ee(E,r.showAlpha)),W=V(()=>!r.modelValue&&!b.value?"":E.value),I=V(()=>d.value?void 0:r.ariaLabel||l("el.colorpicker.defaultLabel")),U=V(()=>d.value?o==null?void 0:o.labelId:void 0),A=V(()=>[g.b("picker"),g.is("disabled",c.value),g.bm("picker",a.value),g.is("focused",S.value)]);function ee(J,oe){const{r:pe,g:N,b:C,a:H}=J.toRgb();return oe?`rgba(${pe}, ${N}, ${C}, ${H})`:`rgb(${pe}, ${N}, ${C})`}function de(J){y.value=J}const z=jc(de,100,{leading:!0});function q(){c.value||de(!0)}function O(){z(!1),F()}function F(){We(()=>{r.modelValue?E.fromString(r.modelValue):(E.value="",We(()=>{b.value=!1}))})}function R(){c.value||(y.value&&F(),z(!y.value))}function P(){const J=u(E.value)?p.value:E.value;i(nt,J),i(Mt,J),r.validateEvent&&(o==null||o.validate("change").catch(oe=>void 0)),z(!1),We(()=>{const oe=new Wc({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});E.compare(oe)||F()})}function G(){z(!1),i(nt,p.value),i(Mt,p.value),r.modelValue!==p.value&&r.validateEvent&&(o==null||o.validate("change").catch(J=>void 0)),F(),i("clear")}function $(){var J,oe;(oe=(J=m==null?void 0:m.value)==null?void 0:J.inputRef)==null||oe.focus()}function M(){!y.value||(O(),S.value&&te())}function ne(J){J.preventDefault(),J.stopPropagation(),de(!1),F()}function X(J){switch(dn(J)){case Re.enter:case Re.numpadEnter:case Re.space:J.preventDefault(),J.stopPropagation(),q();break;case Re.esc:ne(J);break}}function te(){h.value.focus()}function Q(){h.value.blur()}return ke(()=>W.value,J=>{_&&i("activeChange",J),_=!0}),ke(()=>E.value,()=>{!r.modelValue&&!b.value&&(b.value=!0)}),ke(()=>r.modelValue,J=>{J?J&&J!==E.value&&(_=!1,E.fromString(J)):b.value=!1}),ke(()=>y.value,()=>{m.value&&We(m.value.update)}),wt(bS,f),t({color:E,show:q,hide:O,focus:te,blur:Q}),(J,oe)=>(j(),me(w(si),{ref_key:"popper",ref:v,visible:y.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[w(g).be("picker","panel"),e.popperClass],"popper-style":e.popperStyle,"stop-popper-mouse-event":!1,pure:"",loop:"",role:"dialog",effect:"light",trigger:"click",teleported:e.teleported,transition:`${w(g).namespace.value}-zoom-in-top`,persistent:e.persistent,"append-to":e.appendTo,onShow:$,onHide:oe[2]||(oe[2]=pe=>de(!1))},{content:fe(()=>[Ct((j(),me(w(OF),zt({ref_key:"pickerPanelRef",ref:m},k.value,{border:!1,"validate-event":!1,onKeydown:nr(ne,["esc"])}),{footer:fe(()=>[ie("div",null,[e.clearable?(j(),me(w(vt),{key:0,class:se(w(g).be("footer","link-btn")),text:"",size:"small",onClick:G},{default:fe(()=>[qe(Ae(w(l)("el.colorpicker.clear")),1)]),_:1},8,["class"])):ye("v-if",!0),ue(w(vt),{plain:"",size:"small",class:se(w(g).be("footer","btn")),onClick:P},{default:fe(()=>[qe(Ae(w(l)("el.colorpicker.confirm")),1)]),_:1},8,["class"])])]),_:1},16)),[[w(rg),M,h.value]])]),default:fe(()=>[ie("div",zt({id:w(s),ref_key:"triggerRef",ref:h},J.$attrs,{class:A.value,role:"button","aria-label":I.value,"aria-labelledby":U.value,"aria-description":w(l)("el.colorpicker.description",{color:e.modelValue||""}),"aria-disabled":w(c),tabindex:w(c)?void 0:e.tabindex,onKeydown:X,onFocus:oe[0]||(oe[0]=(...pe)=>w(x)&&w(x)(...pe)),onBlur:oe[1]||(oe[1]=(...pe)=>w(T)&&w(T)(...pe))}),[ie("div",{class:se(w(g).be("picker","trigger")),onClick:R},[ie("span",{class:se([w(g).be("picker","color"),w(g).is("alpha",e.showAlpha)])},[ie("span",{class:se(w(g).be("picker","color-inner")),style:He({backgroundColor:D.value})},[Ct(ue(w(Ne),{class:se([w(g).be("picker","icon"),w(g).is("icon-arrow-down")])},{default:fe(()=>[ue(w(Ef))]),_:1},8,["class"]),[[Yt,e.modelValue||b.value]]),Ct(ue(w(Ne),{class:se([w(g).be("picker","empty"),w(g).is("icon-close")])},{default:fe(()=>[ue(w(ii))]),_:1},8,["class"]),[[Yt,!e.modelValue&&!b.value]])],6)],2)],2)],16,IF)]),_:1},8,["visible","popper-class","popper-style","teleported","transition","persistent","append-to"]))}});const RF=gt(MF),DF=Fe({a11y:{type:Boolean,default:!0},locale:{type:Se(Object)},size:Nr,button:{type:Se(Object)},card:{type:Se(Object)},dialog:{type:Se(Object)},link:{type:Se(Object)},experimentalFeatures:{type:Se(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Se(Object)},zIndex:Number,namespace:{type:String,default:"el"},table:{type:Se(Object)},...Fv}),xn={placement:"top"};we({name:"ElConfigProvider",props:DF,setup(e,{slots:t}){const n=h2(e);return ke(()=>e.message,r=>{var i,l;Object.assign(xn,(l=(i=n==null?void 0:n.value)==null?void 0:i.message)!=null?l:{},r!=null?r:{})},{immediate:!0,deep:!0}),()=>xe(t,"default",{config:n==null?void 0:n.value})}});const LF=100,FF=600,Nu="_RepeatClick",by={beforeMount(e,t){const n=t.value,{interval:r=LF,delay:i=FF}=Be(n)?{}:n;let l,g;const o=()=>Be(n)?n():n.handler(),a=()=>{g&&(clearTimeout(g),g=void 0),l&&(clearInterval(l),l=void 0)},c=p=>{p.button===0&&(a(),o(),document.addEventListener("mouseup",a,{once:!0}),g=setTimeout(()=>{l=setInterval(()=>{o()},r)},i))};e[Nu]={start:c,clear:a},e.addEventListener("mousedown",c)},unmounted(e){if(!e[Nu])return;const{start:t,clear:n}=e[Nu];t&&e.removeEventListener("mousedown",t),n&&(n(),document.removeEventListener("mouseup",n)),e[Nu]=null}},ES=Fe({center:Boolean,alignCenter:{type:Boolean,default:void 0},closeIcon:{type:Nt},draggable:{type:Boolean,default:void 0},overflow:{type:Boolean,default:void 0},fullscreen:Boolean,headerClass:String,bodyClass:String,footerClass:String,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),BF={close:()=>!0},NF={alignCenter:void 0,draggable:void 0,overflow:void 0,showClose:!0,title:"",ariaLevel:"2"},zF=Fe({...ES,appendToBody:Boolean,appendTo:{type:Bv.to.type,default:"body"},beforeClose:{type:Se(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},modalPenetrable:Boolean,openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,headerClass:String,bodyClass:String,footerClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:Boolean,headerAriaLevel:{type:String,default:"2"},transition:{type:Se([String,Object]),default:void 0}}),$F={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[nt]:e=>An(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0};({...NF});const ag=e=>{if(!e)return{onClick:rt,onMousedown:rt,onMouseup:rt};let t=!1,n=!1;return{onClick:g=>{t&&n&&e(g),t=n=!1},onMousedown:g=>{t=g.target===g.currentTarget},onMouseup:g=>{n=g.target===g.currentTarget}}},jF=Fe({mask:{type:Boolean,default:!0},customMaskEvent:Boolean,overlayClass:{type:Se([String,Array,Object])},zIndex:{type:Se([String,Number])}}),VF={click:e=>e instanceof MouseEvent},UF="overlay";var HF=we({name:"ElOverlay",props:jF,emits:VF,setup(e,{slots:t,emit:n}){const r=De(UF),i=a=>{n("click",a)},{onClick:l,onMousedown:g,onMouseup:o}=ag(e.customMaskEvent?void 0:i);return()=>e.mask?ue("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:g,onMouseup:o},[xe(t,"default")],hc.STYLE|hc.CLASS|hc.PROPS,["onClick","onMouseup","onMousedown"]):_t("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[xe(t,"default")])}});const kS=HF,OS=Symbol("dialogInjectionKey"),_y="dialog-fade",WF=(...e)=>t=>{e.forEach(n=>{n.value=t})},AS=(e,t,n,r)=>{const i={offsetX:0,offsetY:0},l=re(!1),g=(f,s)=>{if(e.value){const{offsetX:d,offsetY:v}=i,h=e.value.getBoundingClientRect(),m=h.left,y=h.top,b=h.width,_=h.height,S=document.documentElement.clientWidth,x=document.documentElement.clientHeight,T=-m+d,E=-y+v,k=S-m-b+d,D=x-y-(_<x?_:0)+v;r!=null&&r.value||(f=Math.min(Math.max(f,T),k),s=Math.min(Math.max(s,E),D)),i.offsetX=f,i.offsetY=s,e.value.style.transform=`translate(${bn(f)}, ${bn(s)})`}},o=f=>{const s=f.clientX,d=f.clientY,{offsetX:v,offsetY:h}=i,m=b=>{l.value||(l.value=!0);const _=v+b.clientX-s,S=h+b.clientY-d;g(_,S)},y=()=>{l.value=!1,document.removeEventListener("mousemove",m),document.removeEventListener("mouseup",y)};document.addEventListener("mousemove",m),document.addEventListener("mouseup",y)},a=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",o),window.addEventListener("resize",u))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",o),window.removeEventListener("resize",u))},p=()=>{i.offsetX=0,i.offsetY=0,e.value&&(e.value.style.transform="")},u=()=>{const{offsetX:f,offsetY:s}=i;g(f,s)};return et(()=>{io(()=>{n.value?a():c()})}),kt(()=>{c()}),{isDragging:l,resetPosition:p,updatePosition:u}},GF=["aria-level"],KF=["aria-label"],YF=["id"];var XF=we({name:"ElDialogContent",__name:"dialog-content",props:ES,emits:BF,setup(e,{expose:t}){const{t:n}=$t(),{Close:r}=j8,i=e,{dialogRef:l,headerRef:g,bodyId:o,ns:a,style:c}=Ue(OS),{focusTrapRef:p}=Ue(K2),u=WF(p,l),f=V(()=>!!i.draggable),s=V(()=>!!i.overflow),{resetPosition:d,updatePosition:v,isDragging:h}=AS(l,g,f,s),m=V(()=>[a.b(),a.is("fullscreen",i.fullscreen),a.is("draggable",f.value),a.is("dragging",h.value),a.is("align-center",!!i.alignCenter),{[a.m("center")]:i.center}]);return t({resetPosition:d,updatePosition:v}),(y,b)=>(j(),ae("div",{ref:w(u),class:se(m.value),style:He(w(c)),tabindex:"-1"},[ie("header",{ref_key:"headerRef",ref:g,class:se([w(a).e("header"),e.headerClass,{"show-close":e.showClose}])},[xe(y.$slots,"header",{},()=>[ie("span",{role:"heading","aria-level":e.ariaLevel,class:se(w(a).e("title"))},Ae(e.title),11,GF)]),e.showClose?(j(),ae("button",{key:0,"aria-label":w(n)("el.dialog.close"),class:se(w(a).e("headerbtn")),type:"button",onClick:b[0]||(b[0]=_=>y.$emit("close"))},[ue(w(Ne),{class:se(w(a).e("close"))},{default:fe(()=>[(j(),me(st(e.closeIcon||w(r))))]),_:1},8,["class"])],10,KF)):ye("v-if",!0)],2),ie("div",{id:w(o),class:se([w(a).e("body"),e.bodyClass])},[xe(y.$slots,"default")],10,YF),y.$slots.footer?(j(),ae("footer",{key:0,class:se([w(a).e("footer"),e.footerClass])},[xe(y.$slots,"footer")],2)):ye("v-if",!0)],6))}});const og=(e,t={})=>{yt(e)||fn("[useLockscreen]","You need to pass a ref param to this function");const n=t.ns||De("popup"),r=V(()=>n.bm("parent","hidden"));let i=0,l=!1,g="0",o=!1;const a=()=>{o||(o=!0,setTimeout(()=>{typeof document>"u"||l&&document&&(document.body.style.width=g,dc(document.body,r.value))},200))};ke(e,c=>{if(!c){a();return}o=!1,l=!y2(document.body,r.value),l&&(g=document.body.style.width,Bs(document.body,r.value)),i=z8(n.namespace.value);const p=document.documentElement.clientHeight<document.body.scrollHeight,u=b2(document.body,"overflowY");i>0&&(p||u==="scroll")&&l&&(document.body.style.width=`calc(100% - ${i}px)`)}),pf(()=>a())},qF=(e,t)=>{var n;const i=it().emit,{nextZIndex:l}=Lf();let g="";const o=zr(),a=zr(),c=re(!1),p=re(!1),u=re(!1),f=re((n=e.zIndex)!=null?n:l()),s=re(!1);let d,v;const h=au(),m=V(()=>{var P,G;return(G=(P=h.value)==null?void 0:P.namespace)!=null?G:tl}),y=V(()=>{var P;return(P=h.value)==null?void 0:P.dialog}),b=V(()=>{const P={},G=`--${m.value}-dialog`;if(!e.fullscreen){e.top&&(P[`${G}-margin-top`]=e.top);const $=bn(e.width);$&&(P[`${G}-width`]=$)}return P}),_=V(()=>{var P,G,$;return(($=(G=e.draggable)!=null?G:(P=y.value)==null?void 0:P.draggable)!=null?$:!1)&&!e.fullscreen}),S=V(()=>{var P,G,$;return($=(G=e.alignCenter)!=null?G:(P=y.value)==null?void 0:P.alignCenter)!=null?$:!1}),x=V(()=>{var P,G,$;return($=(G=e.overflow)!=null?G:(P=y.value)==null?void 0:P.overflow)!=null?$:!1}),T=V(()=>S.value?{display:"flex"}:{}),E=V(()=>{var P,G,$;const M=($=(G=e.transition)!=null?G:(P=y.value)==null?void 0:P.transition)!=null?$:_y,ne={name:M,onAfterEnter:k,onBeforeLeave:W,onAfterLeave:D};if(Ze(M)){const X={...M},te=(Q,J)=>oe=>{Pe(Q)?Q.forEach(pe=>{Be(pe)&&pe(oe)}):Be(Q)&&Q(oe),J()};return X.onAfterEnter=te(X.onAfterEnter,k),X.onBeforeLeave=te(X.onBeforeLeave,W),X.onAfterLeave=te(X.onAfterLeave,D),X.name||(X.name=_y),X}return ne});function k(){i("opened")}function D(){i("closed"),i(nt,!1),e.destroyOnClose&&(u.value=!1),s.value=!1}function W(){s.value=!0,i("close")}function I(){v==null||v(),d==null||d(),e.openDelay&&e.openDelay>0?{stop:d}=Ol(()=>de(),e.openDelay):de()}function U(){d==null||d(),v==null||v(),e.closeDelay&&e.closeDelay>0?{stop:v}=Ol(()=>z(),e.closeDelay):z()}function A(){function P(G){G||(p.value=!0,c.value=!1)}e.beforeClose?e.beforeClose(P):U()}function ee(){e.closeOnClickModal&&A()}function de(){!pt||(c.value=!0)}function z(){c.value=!1}function q(){i("openAutoFocus")}function O(){i("closeAutoFocus")}function F(P){var G;((G=P.detail)==null?void 0:G.focusReason)==="pointer"&&P.preventDefault()}e.lockScroll&&og(c);function R(){e.closeOnPressEscape&&A()}return ke(()=>e.zIndex,()=>{var P;f.value=(P=e.zIndex)!=null?P:l()}),ke(()=>e.modelValue,P=>{var G;P?(p.value=!1,s.value=!1,I(),u.value=!0,f.value=(G=e.zIndex)!=null?G:l(),We(()=>{i("open"),t.value&&(t.value.parentElement.scrollTop=0,t.value.parentElement.scrollLeft=0,t.value.scrollTop=0)})):c.value&&U()}),ke(()=>e.fullscreen,P=>{!t.value||(P?(g=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=g)}),et(()=>{e.modelValue&&(c.value=!0,u.value=!0,I())}),{afterEnter:k,afterLeave:D,beforeLeave:W,handleClose:A,onModalClick:ee,close:U,doClose:z,onOpenAutoFocus:q,onCloseAutoFocus:O,onCloseRequested:R,onFocusoutPrevented:F,titleId:o,bodyId:a,closed:p,style:b,overlayDialogStyle:T,rendered:u,visible:c,zIndex:f,transitionConfig:E,_draggable:_,_alignCenter:S,_overflow:x,closing:s}},ZF=["aria-label","aria-labelledby","aria-describedby"];var JF=we({name:"ElDialog",inheritAttrs:!1,__name:"dialog",props:zF,emits:$F,setup(e,{expose:t}){const n=e,r=ao();jf({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},V(()=>!!r.title));const i=De("dialog"),l=re(),g=re(),o=re(),{visible:a,titleId:c,bodyId:p,style:u,overlayDialogStyle:f,rendered:s,transitionConfig:d,zIndex:v,_draggable:h,_alignCenter:m,_overflow:y,handleClose:b,onModalClick:_,onOpenAutoFocus:S,onCloseAutoFocus:x,onCloseRequested:T,onFocusoutPrevented:E,closing:k}=qF(n,l);wt(OS,{dialogRef:l,headerRef:g,bodyId:p,ns:i,rendered:s,style:u});const D=ag(_),W=V(()=>n.modalPenetrable&&!n.modal&&!n.fullscreen);return t({visible:a,dialogContentRef:o,resetPosition:()=>{var U;(U=o.value)==null||U.resetPosition()},handleClose:b}),(U,A)=>(j(),me(w(Nv),{to:e.appendTo,disabled:e.appendTo!=="body"?!1:!e.appendToBody},{default:fe(()=>[ue(vr,zt(w(d),{persisted:""}),{default:fe(()=>{var ee;return[Ct(ue(w(kS),{"custom-mask-event":"",mask:e.modal,"overlay-class":[(ee=e.modalClass)!=null?ee:"",`${w(i).namespace.value}-modal-dialog`,w(i).is("penetrable",W.value)],"z-index":w(v)},{default:fe(()=>[ie("div",{role:"dialog","aria-modal":"true","aria-label":e.title||void 0,"aria-labelledby":e.title?void 0:w(c),"aria-describedby":w(p),class:se([`${w(i).namespace.value}-overlay-dialog`,w(i).is("closing",w(k))]),style:He(w(f)),onClick:A[0]||(A[0]=(...de)=>w(D).onClick&&w(D).onClick(...de)),onMousedown:A[1]||(A[1]=(...de)=>w(D).onMousedown&&w(D).onMousedown(...de)),onMouseup:A[2]||(A[2]=(...de)=>w(D).onMouseup&&w(D).onMouseup(...de))},[ue(w($f),{loop:"",trapped:w(a),"focus-start-el":"container",onFocusAfterTrapped:w(S),onFocusAfterReleased:w(x),onFocusoutPrevented:w(E),onReleaseRequested:w(T)},{default:fe(()=>[w(s)?(j(),me(XF,zt({key:0,ref_key:"dialogContentRef",ref:o},U.$attrs,{center:e.center,"align-center":w(m),"close-icon":e.closeIcon,draggable:w(h),overflow:w(y),fullscreen:e.fullscreen,"header-class":e.headerClass,"body-class":e.bodyClass,"footer-class":e.footerClass,"show-close":e.showClose,title:e.title,"aria-level":e.headerAriaLevel,onClose:w(b)}),bl({header:fe(()=>[U.$slots.title?xe(U.$slots,"title",{key:1}):xe(U.$slots,"header",{key:0,close:w(b),titleId:w(c),titleClass:w(i).e("title")})]),default:fe(()=>[xe(U.$slots,"default")]),_:2},[U.$slots.footer?{name:"footer",fn:fe(()=>[xe(U.$slots,"footer")]),key:"0"}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","header-class","body-class","footer-class","show-close","title","aria-level","onClose"])):ye("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,ZF)]),_:3},8,["mask","overlay-class","z-index"]),[[Yt,w(a)]])]}),_:3},16)]),_:3},8,["to","disabled"]))}});const QF=gt(JF),eB=Fe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Se(String),default:"solid"}});var tB=we({name:"ElDivider",__name:"divider",props:eB,setup(e){const t=e,n=De("divider"),r=V(()=>n.cssVar({"border-style":t.borderStyle}));return(i,l)=>(j(),ae("div",{class:se([w(n).b(),w(n).m(e.direction)]),style:He(r.value),role:"separator"},[i.$slots.default&&e.direction!=="vertical"?(j(),ae("div",{key:0,class:se([w(n).e("text"),w(n).is(e.contentPosition)])},[xe(i.$slots,"default")],2)):ye("v-if",!0)],6))}});const nB=gt(tB),Dd=Fe({trigger:{...oa.trigger,type:Se([String,Array])},triggerKeys:{type:Se(Array),default:()=>[Re.enter,Re.numpadEnter,Re.space,Re.down]},virtualTriggering:oa.virtualTriggering,virtualRef:oa.virtualRef,effect:{...Ut.effect,default:"light"},type:{type:Se(String)},placement:{type:Se(String),default:"bottom"},popperOptions:{type:Se(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showArrow:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Se([Number,String]),default:0},maxHeight:{type:Se([Number,String]),default:""},popperClass:Ut.popperClass,popperStyle:Ut.popperStyle,disabled:Boolean,role:{type:String,values:V2,default:"menu"},buttonProps:{type:Se(Object)},teleported:Ut.teleported,appendTo:Ut.appendTo,persistent:{type:Boolean,default:!0}});Fe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Nt}});Fe({onKeydown:{type:Se(Function)}});Re.down,Re.pageDown,Re.home;Re.up,Re.pageUp,Re.end;const rB=Fe({image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}}),iB={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},aB=["id"],oB=["stop-color"],sB=["stop-color"],lB=["id"],uB=["stop-color"],cB=["stop-color"],fB=["id"],dB={stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},hB={transform:"translate(-1268.000000, -535.000000)"},pB={transform:"translate(1268.000000, 535.000000)"},vB=["fill"],gB=["fill"],mB={transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},yB=["fill"],bB=["fill"],_B=["fill"],wB=["fill"],SB=["fill"],CB={transform:"translate(53.000000, 45.000000)"},xB=["fill","xlink:href"],TB=["fill","mask"],EB=["fill"];var kB=we({name:"ImgEmpty",__name:"img-empty",setup(e){const t=De("empty"),n=zr();return(r,i)=>(j(),ae("svg",iB,[ie("defs",null,[ie("linearGradient",{id:`linearGradient-1-${w(n)}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[ie("stop",{"stop-color":`var(${w(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,oB),ie("stop",{"stop-color":`var(${w(t).cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,sB)],8,aB),ie("linearGradient",{id:`linearGradient-2-${w(n)}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[ie("stop",{"stop-color":`var(${w(t).cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,uB),ie("stop",{"stop-color":`var(${w(t).cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,cB)],8,lB),ie("rect",{id:`path-3-${w(n)}`,x:"0",y:"0",width:"17",height:"36"},null,8,fB)]),ie("g",dB,[ie("g",hB,[ie("g",pB,[ie("path",{d:"M39.5,86 C61.3152476,86 79,83.9106622 79,81.3333333 C79,78.7560045 57.3152476,78 35.5,78 C13.6847524,78 0,78.7560045 0,81.3333333 C0,83.9106622 17.6847524,86 39.5,86 Z",fill:`var(${w(t).cssVarBlockName("fill-color-3")})`},null,8,vB),ie("polygon",{fill:`var(${w(t).cssVarBlockName("fill-color-7")})`,transform:"translate(27.500000, 51.500000) scale(1, -1) translate(-27.500000, -51.500000) ",points:"13 58 53 58 42 45 2 45"},null,8,gB),ie("g",mB,[ie("polygon",{fill:`var(${w(t).cssVarBlockName("fill-color-7")})`,transform:"translate(11.500000, 5.000000) scale(1, -1) translate(-11.500000, -5.000000) ",points:"2.84078316e-14 3 18 3 23 7 5 7"},null,8,yB),ie("polygon",{fill:`var(${w(t).cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,bB),ie("rect",{fill:`url(#linearGradient-1-${w(n)})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,_B),ie("polygon",{fill:`var(${w(t).cssVarBlockName("fill-color-2")})`,transform:"translate(39.500000, 3.500000) scale(-1, 1) translate(-39.500000, -3.500000) ",points:"24 7 41 7 55 -3.63806207e-12 38 -3.63806207e-12"},null,8,wB)]),ie("rect",{fill:`url(#linearGradient-2-${w(n)})`,x:"13",y:"45",width:"40",height:"36"},null,8,SB),ie("g",CB,[ie("use",{fill:`var(${w(t).cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${w(n)}`},null,8,xB),ie("polygon",{fill:`var(${w(t).cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${w(n)})`,transform:"translate(12.000000, 9.000000) scale(-1, 1) translate(-12.000000, -9.000000) ",points:"7 0 24 0 20 18 7 16.5"},null,8,TB)]),ie("polygon",{fill:`var(${w(t).cssVarBlockName("fill-color-2")})`,transform:"translate(66.000000, 51.500000) scale(-1, 1) translate(-66.000000, -51.500000) ",points:"62 45 79 45 70 58 53 58"},null,8,EB)])])])]))}});const OB=["src"],AB={key:1};var PB=we({name:"ElEmpty",__name:"empty",props:rB,setup(e){const t=e,{t:n}=$t(),r=De("empty"),i=V(()=>t.description||n("el.table.emptyText")),l=V(()=>({width:bn(t.imageSize)}));return(g,o)=>(j(),ae("div",{class:se(w(r).b())},[ie("div",{class:se(w(r).e("image")),style:He(l.value)},[e.image?(j(),ae("img",{key:0,src:e.image,ondragstart:"return false"},null,8,OB)):xe(g.$slots,"image",{key:1},()=>[ue(kB)])],6),ie("div",{class:se(w(r).e("description"))},[g.$slots.description?xe(g.$slots,"description",{key:0}):(j(),ae("p",AB,Ae(i.value),1))],2),g.$slots.default?(j(),ae("div",{key:0,class:se(w(r).e("bottom"))},[xe(g.$slots,"default")],2)):ye("v-if",!0)],2))}});const IB=gt(PB),MB=Fe({size:{type:String,values:co},disabled:Boolean}),RB=Fe({...MB,model:Object,rules:{type:Se(Object)},labelPosition:{type:String,values:["left","right","top"],default:"right"},requireAsteriskPosition:{type:String,values:["left","right"],default:"left"},labelWidth:{type:[String,Number],default:""},labelSuffix:{type:String,default:""},inline:Boolean,inlineMessage:Boolean,statusIcon:Boolean,showMessage:{type:Boolean,default:!0},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:Boolean,scrollToError:Boolean,scrollIntoViewOptions:{type:Se([Object,Boolean]),default:!0}}),DB={validate:(e,t,n)=>(Pe(e)||je(e))&&An(t)&&je(n)};function LB(){const e=re([]),t=V(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){const g=e.value.indexOf(l);return g===-1&&t.value,g}function r(l,g){if(l&&g){const o=n(g);e.value.splice(o,1,l)}else l&&e.value.push(l)}function i(l){const g=n(l);g>-1&&e.value.splice(g,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const zu=(e,t)=>{const n=Vn(t).map(r=>Pe(r)?r.join("."):r);return n.length>0?e.filter(r=>r.propString&&n.includes(r.propString)):e},FB="ElForm";var BB=we({name:FB,__name:"form",props:RB,emits:DB,setup(e,{expose:t,emit:n}){const r=e,i=n,l=re(),g=mt([]),o=new Map,a=Vr(),c=De("form"),p=V(()=>{const{labelPosition:T,inline:E}=r;return[c.b(),c.m(a.value||"default"),{[c.m(`label-${T}`)]:T,[c.m("inline")]:E}]}),u=T=>zu(g,[T])[0],f=T=>{g.push(T),T.propString&&(o.has(T.propString)?T.setInitialValue(o.get(T.propString)):o.set(T.propString,ja(T.fieldValue)))},s=T=>{T.prop&&g.splice(g.indexOf(T),1)},d=T=>{if(!!r.model&&!!T){for(const E of o.keys())o.set(E,ja($o(T,E).value));g.forEach(E=>{E.prop&&E.setInitialValue($o(T,E.prop).value)})}},v=(T=[])=>{if(!r.model)return;zu(g,T).forEach(D=>D.resetField());const E=new Set(g.map(D=>D.propString).filter(Boolean)),k=T.length>0?Vn(T).map(D=>Pe(D)?D.join("."):D):[...o.keys()];for(const D of k)!E.has(D)&&o.has(D)&&($o(r.model,D).value=ja(o.get(D)))},h=(T=[])=>{zu(g,T).forEach(E=>E.clearValidate())},m=V(()=>!!r.model),y=T=>{if(g.length===0)return[];const E=zu(g,T);return E.length?E:[]},b=async T=>S(void 0,T),_=async(T=[])=>{if(!m.value)return!1;const E=y(T);if(E.length===0)return!0;let k={};for(const D of E)try{await D.validate(""),D.validateState==="error"&&!D.error&&D.resetField()}catch(W){k={...k,...W}}return Object.keys(k).length===0?!0:Promise.reject(k)},S=async(T=[],E)=>{let k=!1;const D=!Be(E);try{return k=await _(T),k===!0&&await(E==null?void 0:E(k)),k}catch(W){if(W instanceof Error)throw W;const I=W;if(r.scrollToError&&l.value){const U=l.value.querySelector(`.${c.b()}-item.is-error`);U==null||U.scrollIntoView(r.scrollIntoViewOptions)}return!k&&await(E==null?void 0:E(!1,I)),D&&Promise.reject(I)}},x=T=>{var E;const k=u(T);k&&((E=k.$el)==null||E.scrollIntoView(r.scrollIntoViewOptions))};return ke(()=>r.rules,()=>{r.validateOnRuleChange&&b().catch(T=>void 0)},{deep:!0,flush:"post"}),wt(ps,mt({...Lr(r),emit:i,resetFields:v,clearValidate:h,validateField:S,getField:u,addField:f,removeField:s,setInitialValues:d,...LB()})),t({validate:b,validateField:S,resetFields:v,clearValidate:h,scrollToField:x,getField:u,fields:g,setInitialValues:d}),(T,E)=>(j(),ae("form",{ref_key:"formRef",ref:l,class:se(p.value)},[xe(T.$slots,"default")],2))}});const NB=["","error","validating","success"],zB=Fe({label:String,labelWidth:{type:[String,Number]},labelPosition:{type:String,values:["left","right","top",""],default:""},prop:{type:Se([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Se([Object,Array])},error:String,validateStatus:{type:String,values:NB},for:String,inlineMessage:{type:Boolean,default:void 0},showMessage:{type:Boolean,default:!0},size:{type:String,values:co}});function Ma(){return Ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ma.apply(this,arguments)}function $B(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rl(e,t)}function Qh(e){return Qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qh(e)}function Rl(e,t){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rl(e,t)}function jB(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function vc(e,t,n){return jB()?vc=Reflect.construct.bind():vc=function(i,l,g){var o=[null];o.push.apply(o,l);var a=Function.bind.apply(i,o),c=new a;return g&&Rl(c,g.prototype),c},vc.apply(null,arguments)}function VB(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function ep(e){var t=typeof Map=="function"?new Map:void 0;return ep=function(r){if(r===null||!VB(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return vc(r,arguments,Qh(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Rl(i,r)},ep(e)}var UB=/%[sdj%]/g,HB=function(){};typeof process<"u"&&process.env;function tp(e){if(!e||!e.length)return null;var t={};return e.forEach(function(n){var r=n.field;t[r]=t[r]||[],t[r].push(n)}),t}function ir(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=0,l=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var g=e.replace(UB,function(o){if(o==="%%")return"%";if(i>=l)return o;switch(o){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return o}});return g}return e}function WB(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function tn(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||WB(t)&&typeof e=="string"&&!e)}function GB(e,t,n){var r=[],i=0,l=e.length;function g(o){r.push.apply(r,o||[]),i++,i===l&&n(r)}e.forEach(function(o){t(o,g)})}function wy(e,t,n){var r=0,i=e.length;function l(g){if(g&&g.length){n(g);return}var o=r;r=r+1,o<i?t(e[o],l):n([])}l([])}function KB(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Sy=function(e){$B(t,e);function t(n,r){var i;return i=e.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return t}(ep(Error));function YB(e,t,n,r,i){if(t.first){var l=new Promise(function(f,s){var d=function(m){return r(m),m.length?s(new Sy(m,tp(m))):f(i)},v=KB(e);wy(v,n,d)});return l.catch(function(f){return f}),l}var g=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),a=o.length,c=0,p=[],u=new Promise(function(f,s){var d=function(h){if(p.push.apply(p,h),c++,c===a)return r(p),p.length?s(new Sy(p,tp(p))):f(i)};o.length||(r(p),f(i)),o.forEach(function(v){var h=e[v];g.indexOf(v)!==-1?wy(h,n,d):GB(h,n,d)})});return u.catch(function(f){return f}),u}function XB(e){return!!(e&&e.message!==void 0)}function qB(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Cy(e,t){return function(n){var r;return e.fullFields?r=qB(t,e.fullFields):r=t[n.field||e.fullField],XB(n)?(n.field=n.field||e.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||e.fullField}}}function xy(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=Ma({},e[n],r):e[n]=r}}return e}var PS=function(t,n,r,i,l,g){t.required&&(!r.hasOwnProperty(t.field)||tn(n,g||t.type))&&i.push(ir(l.messages.required,t.fullField))},ZB=function(t,n,r,i,l){(/^\s+$/.test(n)||n==="")&&i.push(ir(l.messages.whitespace,t.fullField))},$u,JB=function(){if($u)return $u;var e="[a-fA-F\\d:]",t=function(_){return _&&_.includeBoundaries?"(?:(?<=\\s|^)(?="+e+")|(?<="+e+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
(?:
(?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),l=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),g=new RegExp("^"+n+"$"),o=new RegExp("^"+i+"$"),a=function(_){return _&&_.exact?l:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+i+t(_)+")","g")};a.v4=function(b){return b&&b.exact?g:new RegExp(""+t(b)+n+t(b),"g")},a.v6=function(b){return b&&b.exact?o:new RegExp(""+t(b)+i+t(b),"g")};var c="(?:(?:[a-z]+:)?//)",p="(?:\\S+(?::\\S*)?@)?",u=a.v4().source,f=a.v6().source,s="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",d="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",h="(?::\\d{2,5})?",m='(?:[/?#][^\\s"]*)?',y="(?:"+c+"|www\\.)"+p+"(?:localhost|"+u+"|"+f+"|"+s+d+v+")"+h+m;return $u=new RegExp("(?:^"+y+"$)","i"),$u},Ty={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Ns={integer:function(t){return Ns.number(t)&&parseInt(t,10)===t},float:function(t){return Ns.number(t)&&!Ns.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!Ns.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ty.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(JB())},hex:function(t){return typeof t=="string"&&!!t.match(Ty.hex)}},QB=function(t,n,r,i,l){if(t.required&&n===void 0){PS(t,n,r,i,l);return}var g=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;g.indexOf(o)>-1?Ns[o](n)||i.push(ir(l.messages.types[o],t.fullField,t.type)):o&&typeof n!==t.type&&i.push(ir(l.messages.types[o],t.fullField,t.type))},eN=function(t,n,r,i,l){var g=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,p=n,u=null,f=typeof n=="number",s=typeof n=="string",d=Array.isArray(n);if(f?u="number":s?u="string":d&&(u="array"),!u)return!1;d&&(p=n.length),s&&(p=n.replace(c,"_").length),g?p!==t.len&&i.push(ir(l.messages[u].len,t.fullField,t.len)):o&&!a&&p<t.min?i.push(ir(l.messages[u].min,t.fullField,t.min)):a&&!o&&p>t.max?i.push(ir(l.messages[u].max,t.fullField,t.max)):o&&a&&(p<t.min||p>t.max)&&i.push(ir(l.messages[u].range,t.fullField,t.min,t.max))},wo="enum",tN=function(t,n,r,i,l){t[wo]=Array.isArray(t[wo])?t[wo]:[],t[wo].indexOf(n)===-1&&i.push(ir(l.messages[wo],t.fullField,t[wo].join(", ")))},nN=function(t,n,r,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(ir(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var g=new RegExp(t.pattern);g.test(n)||i.push(ir(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},ut={required:PS,whitespace:ZB,type:QB,range:eN,enum:tN,pattern:nN},rN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n,"string")&&!t.required)return r();ut.required(t,n,i,g,l,"string"),tn(n,"string")||(ut.type(t,n,i,g,l),ut.range(t,n,i,g,l),ut.pattern(t,n,i,g,l),t.whitespace===!0&&ut.whitespace(t,n,i,g,l))}r(g)},iN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n)&&!t.required)return r();ut.required(t,n,i,g,l),n!==void 0&&ut.type(t,n,i,g,l)}r(g)},aN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n===""&&(n=void 0),tn(n)&&!t.required)return r();ut.required(t,n,i,g,l),n!==void 0&&(ut.type(t,n,i,g,l),ut.range(t,n,i,g,l))}r(g)},oN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n)&&!t.required)return r();ut.required(t,n,i,g,l),n!==void 0&&ut.type(t,n,i,g,l)}r(g)},sN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n)&&!t.required)return r();ut.required(t,n,i,g,l),tn(n)||ut.type(t,n,i,g,l)}r(g)},lN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n)&&!t.required)return r();ut.required(t,n,i,g,l),n!==void 0&&(ut.type(t,n,i,g,l),ut.range(t,n,i,g,l))}r(g)},uN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n)&&!t.required)return r();ut.required(t,n,i,g,l),n!==void 0&&(ut.type(t,n,i,g,l),ut.range(t,n,i,g,l))}r(g)},cN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n==null&&!t.required)return r();ut.required(t,n,i,g,l,"array"),n!=null&&(ut.type(t,n,i,g,l),ut.range(t,n,i,g,l))}r(g)},fN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n)&&!t.required)return r();ut.required(t,n,i,g,l),n!==void 0&&ut.type(t,n,i,g,l)}r(g)},dN="enum",hN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n)&&!t.required)return r();ut.required(t,n,i,g,l),n!==void 0&&ut[dN](t,n,i,g,l)}r(g)},pN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n,"string")&&!t.required)return r();ut.required(t,n,i,g,l),tn(n,"string")||ut.pattern(t,n,i,g,l)}r(g)},vN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n,"date")&&!t.required)return r();if(ut.required(t,n,i,g,l),!tn(n,"date")){var a;n instanceof Date?a=n:a=new Date(n),ut.type(t,a,i,g,l),a&&ut.range(t,a.getTime(),i,g,l)}}r(g)},gN=function(t,n,r,i,l){var g=[],o=Array.isArray(n)?"array":typeof n;ut.required(t,n,i,g,l,o),r(g)},Ld=function(t,n,r,i,l){var g=t.type,o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(tn(n,g)&&!t.required)return r();ut.required(t,n,i,o,l,g),tn(n,g)||ut.type(t,n,i,o,l)}r(o)},mN=function(t,n,r,i,l){var g=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(tn(n)&&!t.required)return r();ut.required(t,n,i,g,l)}r(g)},il={string:rN,method:iN,number:aN,boolean:oN,regexp:sN,integer:lN,float:uN,array:cN,object:fN,enum:hN,pattern:pN,date:vN,url:Ld,hex:Ld,email:Ld,required:gN,any:mN};function np(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var rp=np(),lu=function(){function e(n){this.rules=null,this._messages=rp,this.define(n)}var t=e.prototype;return t.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(l){var g=r[l];i.rules[l]=Array.isArray(g)?g:[g]})},t.messages=function(r){return r&&(this._messages=xy(np(),r)),this._messages},t.validate=function(r,i,l){var g=this;i===void 0&&(i={}),l===void 0&&(l=function(){});var o=r,a=i,c=l;if(typeof a=="function"&&(c=a,a={}),!this.rules||Object.keys(this.rules).length===0)return c&&c(null,o),Promise.resolve(o);function p(v){var h=[],m={};function y(_){if(Array.isArray(_)){var S;h=(S=h).concat.apply(S,_)}else h.push(_)}for(var b=0;b<v.length;b++)y(v[b]);h.length?(m=tp(h),c(h,m)):c(null,o)}if(a.messages){var u=this.messages();u===rp&&(u=np()),xy(u,a.messages),a.messages=u}else a.messages=this.messages();var f={},s=a.keys||Object.keys(this.rules);s.forEach(function(v){var h=g.rules[v],m=o[v];h.forEach(function(y){var b=y;typeof b.transform=="function"&&(o===r&&(o=Ma({},o)),m=o[v]=b.transform(m)),typeof b=="function"?b={validator:b}:b=Ma({},b),b.validator=g.getValidationMethod(b),b.validator&&(b.field=v,b.fullField=b.fullField||v,b.type=g.getType(b),f[v]=f[v]||[],f[v].push({rule:b,value:m,source:o,field:v}))})});var d={};return YB(f,a,function(v,h){var m=v.rule,y=(m.type==="object"||m.type==="array")&&(typeof m.fields=="object"||typeof m.defaultField=="object");y=y&&(m.required||!m.required&&v.value),m.field=v.field;function b(x,T){return Ma({},T,{fullField:m.fullField+"."+x,fullFields:m.fullFields?[].concat(m.fullFields,[x]):[x]})}function _(x){x===void 0&&(x=[]);var T=Array.isArray(x)?x:[x];!a.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&m.message!==void 0&&(T=[].concat(m.message));var E=T.map(Cy(m,o));if(a.first&&E.length)return d[m.field]=1,h(E);if(!y)h(E);else{if(m.required&&!v.value)return m.message!==void 0?E=[].concat(m.message).map(Cy(m,o)):a.error&&(E=[a.error(m,ir(a.messages.required,m.field))]),h(E);var k={};m.defaultField&&Object.keys(v.value).map(function(I){k[I]=m.defaultField}),k=Ma({},k,v.rule.fields);var D={};Object.keys(k).forEach(function(I){var U=k[I],A=Array.isArray(U)?U:[U];D[I]=A.map(b.bind(null,I))});var W=new e(D);W.messages(a.messages),v.rule.options&&(v.rule.options.messages=a.messages,v.rule.options.error=a.error),W.validate(v.value,v.rule.options||a,function(I){var U=[];E&&E.length&&U.push.apply(U,E),I&&I.length&&U.push.apply(U,I),h(U.length?U:null)})}}var S;if(m.asyncValidator)S=m.asyncValidator(m,v.value,_,v.source,a);else if(m.validator){try{S=m.validator(m,v.value,_,v.source,a)}catch(x){console.error==null||console.error(x),a.suppressValidatorError||setTimeout(function(){throw x},0),_(x.message)}S===!0?_():S===!1?_(typeof m.message=="function"?m.message(m.fullField||m.field):m.message||(m.fullField||m.field)+" fails"):S instanceof Array?_(S):S instanceof Error&&_(S.message)}S&&S.then&&S.then(function(){return _()},function(x){return _(x)})},function(v){p(v)},o)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!il.hasOwnProperty(r.type))throw new Error(ir("Unknown rule type %s",r.type));return r.type||"string"},t.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),l=i.indexOf("message");return l!==-1&&i.splice(l,1),i.length===1&&i[0]==="required"?il.required:il[this.getType(r)]||void 0},e}();lu.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");il[t]=n};lu.warning=HB;lu.messages=rp;lu.validators=il;const Ey="ElLabelWrap";var yN=we({name:Ey,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=Ue(ps,void 0),r=Ue(qa);r||fn(Ey,"usage: <el-form-item><label-wrap /></el-form-item>");const i=De("form"),l=re(),g=re(0),o=()=>{var p;if((p=l.value)!=null&&p.firstElementChild){const u=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(u))}else return 0},a=(p="update")=>{We(()=>{t.default&&e.isAutoWidth&&(p==="update"?g.value=o():p==="remove"&&(n==null||n.deregisterLabelWidth(g.value)))})},c=()=>a("update");return et(()=>{c()}),kt(()=>{a("remove")}),as(()=>c()),ke(g,(p,u)=>{e.updateAll&&(n==null||n.registerLabelWidth(p,u))}),un(V(()=>{var p,u;return(u=(p=l.value)==null?void 0:p.firstElementChild)!=null?u:null}),c),()=>{var p,u;if(!t)return null;const{isAutoWidth:f}=e;if(f){const s=n==null?void 0:n.autoLabelWidth,d=r==null?void 0:r.hasLabel,v={};if(d&&s&&s!=="auto"){const h=Math.max(0,Number.parseInt(s,10)-g.value),y=(r.labelPosition||n.labelPosition)==="left"?"marginRight":"marginLeft";h&&(v[y]=`${h}px`)}return ue("div",{ref:l,class:[i.be("item","label-wrap")],style:v},[(p=t.default)==null?void 0:p.call(t)])}else return ue(Ve,{ref:l},[(u=t.default)==null?void 0:u.call(t)])}}});const bN=["role","aria-labelledby"];var IS=we({name:"ElFormItem",__name:"form-item",props:zB,setup(e,{expose:t}){const n=e,r=ao(),i=Ue(ps,void 0),l=Ue(qa,void 0),g=Vr(void 0,{formItem:!1}),o=De("form-item"),a=zr().value,c=re([]),p=re(""),u=h8(p,100),f=re(""),s=re();let d,v=!1;const h=V(()=>n.labelPosition||(i==null?void 0:i.labelPosition)),m=V(()=>{var Q;return h.value==="top"?{}:{width:bn((Q=n.labelWidth)!=null?Q:i==null?void 0:i.labelWidth)}}),y=V(()=>{var Q;if(h.value==="top"||(i==null?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&D)return{};const J=bn((Q=n.labelWidth)!=null?Q:i==null?void 0:i.labelWidth);return!n.label&&!r.label?{marginLeft:J}:{}}),b=V(()=>[o.b(),o.m(g.value),o.is("error",p.value==="error"),o.is("validating",p.value==="validating"),o.is("success",p.value==="success"),o.is("required",ee.value||n.required),o.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[o.m("feedback")]:i==null?void 0:i.statusIcon,[o.m(`label-${h.value}`)]:h.value}]),_=V(()=>An(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),S=V(()=>[o.e("error"),{[o.em("error","inline")]:_.value}]),x=V(()=>n.prop?Pe(n.prop)?n.prop.join("."):n.prop:""),T=V(()=>!!(n.label||r.label)),E=V(()=>{var Q;return(Q=n.for)!=null?Q:c.value.length===1?c.value[0]:void 0}),k=V(()=>!E.value&&T.value),D=!!l,W=V(()=>{const Q=i==null?void 0:i.model;if(!(!Q||!n.prop))return $o(Q,n.prop).value}),I=V(()=>{const{required:Q}=n,J=[];n.rules&&J.push(...Vn(n.rules));const oe=i==null?void 0:i.rules;if(oe&&n.prop){const pe=$o(oe,n.prop).value;pe&&J.push(...Vn(pe))}if(Q!==void 0){const pe=J.map((N,C)=>[N,C]).filter(([N])=>"required"in N);if(pe.length>0)for(const[N,C]of pe)N.required!==Q&&(J[C]={...N,required:Q});else J.push({required:Q})}return J}),U=V(()=>I.value.length>0),A=Q=>I.value.filter(oe=>!oe.trigger||!Q?!0:Pe(oe.trigger)?oe.trigger.includes(Q):oe.trigger===Q).map(({trigger:oe,...pe})=>pe),ee=V(()=>I.value.some(Q=>Q.required)),de=V(()=>{var Q;return u.value==="error"&&n.showMessage&&((Q=i==null?void 0:i.showMessage)!=null?Q:!0)}),z=V(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),q=Q=>{p.value=Q},O=Q=>{var J,oe;const{errors:pe,fields:N}=Q;(!pe||!N)&&console.error(Q),q("error"),f.value=pe?(oe=(J=pe==null?void 0:pe[0])==null?void 0:J.message)!=null?oe:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,f.value)},F=()=>{q("success"),i==null||i.emit("validate",n.prop,!0,"")},R=async Q=>{const J=x.value;return new lu({[J]:Q}).validate({[J]:W.value},{firstFields:!0}).then(()=>(F(),!0)).catch(pe=>(O(pe),Promise.reject(pe)))},P=async(Q,J)=>{if(v||!n.prop)return!1;const oe=Be(J);if(!U.value)return J==null||J(!1),!1;const pe=A(Q);return pe.length===0?(J==null||J(!0),!0):(q("validating"),R(pe).then(()=>(J==null||J(!0),!0)).catch(N=>{const{fields:C}=N;return J==null||J(!1,C),oe?!1:Promise.reject(C)}))},G=()=>{q(""),f.value="",v=!1},$=async()=>{const Q=i==null?void 0:i.model;if(!Q||!n.prop)return;const J=$o(Q,n.prop);v=!0,J.value=ja(d),await We(),G(),v=!1},M=Q=>{c.value.includes(Q)||c.value.push(Q)},ne=Q=>{c.value=c.value.filter(J=>J!==Q)},X=Q=>{d=ja(Q)};ke(()=>n.error,Q=>{f.value=Q||"",q(Q?"error":"")},{immediate:!0}),ke(()=>n.validateStatus,Q=>q(Q||""));const te=mt({...Lr(n),$el:s,size:g,validateMessage:f,validateState:p,labelId:a,inputIds:c,isGroup:k,hasLabel:T,fieldValue:W,addInputId:M,removeInputId:ne,resetField:$,clearValidate:G,validate:P,propString:x,setInitialValue:X});return wt(qa,te),et(()=>{n.prop&&(X(W.value),i==null||i.addField(te))}),kt(()=>{i==null||i.removeField(te)}),t({size:g,validateMessage:f,validateState:p,validate:P,clearValidate:G,resetField:$,setInitialValue:X}),(Q,J)=>{var oe;return j(),ae("div",{ref_key:"formItemRef",ref:s,class:se(b.value),role:k.value?"group":void 0,"aria-labelledby":k.value?w(a):void 0},[ue(w(yN),{"is-auto-width":m.value.width==="auto","update-all":((oe=w(i))==null?void 0:oe.labelWidth)==="auto"},{default:fe(()=>[e.label||Q.$slots.label?(j(),me(st(E.value?"label":"div"),{key:0,id:w(a),for:E.value,class:se(w(o).e("label")),style:He(m.value)},{default:fe(()=>[xe(Q.$slots,"label",{label:z.value},()=>[qe(Ae(z.value),1)])]),_:3},8,["id","for","class","style"])):ye("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),ie("div",{class:se(w(o).e("content")),style:He(y.value)},[xe(Q.$slots,"default"),ue(U_,{name:`${w(o).namespace.value}-zoom-in-top`},{default:fe(()=>[de.value?xe(Q.$slots,"error",{key:0,error:f.value},()=>[ie("div",{class:se(S.value)},Ae(f.value),3)]):ye("v-if",!0)]),_:3},8,["name"])],6)],10,bN)}}});const sg=gt(BB,{FormItem:IS}),sa=Sr(IS),_N=Fe({hideOnClickModal:Boolean,src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:Boolean,scrollContainer:{type:Se([String,Object])},previewSrcList:{type:Se(Array),default:()=>Jt([])},previewTeleported:Boolean,zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Se(String)}}),wN={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>Ye(e),close:()=>!0,show:()=>!0},SN=Fe({urlList:{type:Se(Array),default:()=>Jt([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:Boolean,teleported:Boolean,closeOnPressEscape:{type:Boolean,default:!0},zoomRate:{type:Number,default:1.2},scale:{type:Number,default:1},minScale:{type:Number,default:.2},maxScale:{type:Number,default:7},showProgress:Boolean,crossorigin:{type:Se(String)}}),CN={close:()=>!0,error:e=>e instanceof Event,switch:e=>Ye(e),rotate:e=>Ye(e)},xN=["src","crossorigin"];var TN=we({name:"ElImageViewer",__name:"image-viewer",props:SN,emits:CN,setup(e,{expose:t,emit:n}){var r;const i={CONTAIN:{name:"contain",icon:Ai(fA)},ORIGINAL:{name:"original",icon:Ai(FA)}},l=e,g=n;let o;const{t:a}=$t(),c=De("image-viewer"),{nextZIndex:p}=Lf(),u=re(),f=re(),s=qp(),d=V(()=>{const{scale:J,minScale:oe,maxScale:pe}=l;return l8(J,oe,pe)}),v=re(!0),h=re(!1),m=re(!1),y=re(l.initialIndex),b=Ht(i.CONTAIN),_=re({scale:d.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),S=re((r=l.zIndex)!=null?r:p());og(m,{ns:c});const x=V(()=>{const{urlList:J}=l;return J.length<=1}),T=V(()=>y.value===0),E=V(()=>y.value===l.urlList.length-1),k=V(()=>l.urlList[y.value]),D=V(()=>[c.e("btn"),c.e("prev"),c.is("disabled",!l.infinite&&T.value)]),W=V(()=>[c.e("btn"),c.e("next"),c.is("disabled",!l.infinite&&E.value)]),I=V(()=>{const{scale:J,deg:oe,offsetX:pe,offsetY:N,enableTransition:C}=_.value;let H=pe/J,K=N/J;const L=oe*Math.PI/180,B=Math.cos(L),Z=Math.sin(L);H=H*B+K*Z,K=K*B-pe/J*Z;const ce={transform:`scale(${J}) rotate(${oe}deg) translate(${H}px, ${K}px)`,transition:C?"transform .3s":""};return b.value.name===i.CONTAIN.name&&(ce.maxWidth=ce.maxHeight="100%"),ce}),U=V(()=>`${y.value+1} / ${l.urlList.length}`);function A(){de(),o==null||o(),m.value=!1,g("close")}function ee(){const J=Mo(pe=>{switch(dn(pe)){case Re.esc:l.closeOnPressEscape&&A();break;case Re.space:P();break;case Re.left:$();break;case Re.up:ne("zoomIn");break;case Re.right:M();break;case Re.down:ne("zoomOut");break}}),oe=Mo(pe=>{const N=pe.deltaY||pe.deltaX;ne(N<0?"zoomIn":"zoomOut",{zoomRate:l.zoomRate,enableTransition:!1})});s.run(()=>{Ft(document,"keydown",J),Ft(u,"wheel",oe)})}function de(){s.stop()}function z(){v.value=!1}function q(J){h.value=!0,v.value=!1,g("error",J),J.target.alt=a("el.image.error")}function O(J){if(v.value||J.button!==0||!u.value)return;_.value.enableTransition=!1;const{offsetX:oe,offsetY:pe}=_.value,N=J.pageX,C=J.pageY,H=Mo(B=>{_.value={..._.value,offsetX:oe+B.pageX-N,offsetY:pe+B.pageY-C}}),K=Ft(document,"mousemove",H),L=Ft(document,"mouseup",()=>{K(),L()});J.preventDefault()}function F(J){if(v.value||!u.value||J.touches.length!==1)return;_.value.enableTransition=!1;const{offsetX:oe,offsetY:pe}=_.value,{pageX:N,pageY:C}=J.touches[0],H=Mo(B=>{const Z=B.touches[0];_.value={..._.value,offsetX:oe+Z.pageX-N,offsetY:pe+Z.pageY-C}}),K=Ft(document,"touchmove",H),L=Ft(document,"touchend",()=>{K(),L()});J.preventDefault()}function R(){_.value={scale:d.value,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function P(){if(v.value||h.value)return;const J=Vh(i),oe=Object.values(i),pe=b.value.name,C=(oe.findIndex(H=>H.name===pe)+1)%J.length;b.value=i[J[C]],R()}function G(J){h.value=!1;const oe=l.urlList.length;y.value=(J+oe)%oe}function $(){T.value&&!l.infinite||G(y.value-1)}function M(){E.value&&!l.infinite||G(y.value+1)}function ne(J,oe={}){if(v.value||h.value)return;const{minScale:pe,maxScale:N}=l,{zoomRate:C,rotateDeg:H,enableTransition:K}={zoomRate:l.zoomRate,rotateDeg:90,enableTransition:!0,...oe};switch(J){case"zoomOut":_.value.scale>pe&&(_.value.scale=Number.parseFloat((_.value.scale/C).toFixed(3)));break;case"zoomIn":_.value.scale<N&&(_.value.scale=Number.parseFloat((_.value.scale*C).toFixed(3)));break;case"clockwise":_.value.deg+=H,g("rotate",_.value.deg);break;case"anticlockwise":_.value.deg-=H,g("rotate",_.value.deg);break}_.value.enableTransition=K}function X(J){var oe;((oe=J.detail)==null?void 0:oe.focusReason)==="pointer"&&J.preventDefault()}function te(){l.closeOnPressEscape&&A()}function Q(J){if(!!J.ctrlKey){if(J.deltaY<0)return J.preventDefault(),!1;if(J.deltaY>0)return J.preventDefault(),!1}}return ke(()=>d.value,J=>{_.value.scale=J}),ke(k,()=>{We(()=>{const J=f.value;J!=null&&J.complete||(v.value=!0)})}),ke(y,J=>{R(),g("switch",J)}),et(()=>{m.value=!0,ee(),o=Ft("wheel",Q,{passive:!1})}),t({setActiveItem:G}),(J,oe)=>(j(),me(w(Nv),{to:"body",disabled:!e.teleported},{default:fe(()=>[ue(vr,{name:"viewer-fade",appear:""},{default:fe(()=>[ie("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:se(w(c).e("wrapper")),style:He({zIndex:S.value})},[ue(w($f),{loop:"",trapped:"","focus-trap-el":u.value,"focus-start-el":"container",onFocusoutPrevented:X,onReleaseRequested:te},{default:fe(()=>[ie("div",{class:se(w(c).e("mask")),onClick:oe[0]||(oe[0]=Qe(pe=>e.hideOnClickModal&&A(),["self"]))},null,2),ye(" CLOSE "),ie("span",{class:se([w(c).e("btn"),w(c).e("close")]),onClick:A},[ue(w(Ne),null,{default:fe(()=>[ue(w(ii))]),_:1})],2),ye(" ARROW "),x.value?ye("v-if",!0):(j(),ae(Ve,{key:0},[ie("span",{class:se(D.value),onClick:$},[ue(w(Ne),null,{default:fe(()=>[ue(w(kf))]),_:1})],2),ie("span",{class:se(W.value),onClick:M},[ue(w(Ne),null,{default:fe(()=>[ue(w(us))]),_:1})],2)],64)),J.$slots.progress||e.showProgress?(j(),ae("div",{key:1,class:se([w(c).e("btn"),w(c).e("progress")])},[xe(J.$slots,"progress",{activeIndex:y.value,total:e.urlList.length},()=>[qe(Ae(U.value),1)])],2)):ye("v-if",!0),ye(" ACTIONS "),ie("div",{class:se([w(c).e("btn"),w(c).e("actions")])},[ie("div",{class:se(w(c).e("actions__inner"))},[xe(J.$slots,"toolbar",{actions:ne,prev:$,next:M,reset:P,activeIndex:y.value,setActiveItem:G},()=>[ue(w(Ne),{onClick:oe[1]||(oe[1]=pe=>ne("zoomOut"))},{default:fe(()=>[ue(w(ZA))]),_:1}),ue(w(Ne),{onClick:oe[2]||(oe[2]=pe=>ne("zoomIn"))},{default:fe(()=>[ue(w(yw))]),_:1}),ie("i",{class:se(w(c).e("actions__divider"))},null,2),ue(w(Ne),{onClick:P},{default:fe(()=>[(j(),me(st(b.value.icon)))]),_:1}),ie("i",{class:se(w(c).e("actions__divider"))},null,2),ue(w(Ne),{onClick:oe[3]||(oe[3]=pe=>ne("anticlockwise"))},{default:fe(()=>[ue(w(pw))]),_:1}),ue(w(Ne),{onClick:oe[4]||(oe[4]=pe=>ne("clockwise"))},{default:fe(()=>[ue(w(vw))]),_:1})])],2)],2),ye(" CANVAS "),ie("div",{class:se(w(c).e("canvas"))},[h.value&&J.$slots["viewer-error"]?xe(J.$slots,"viewer-error",{key:0,activeIndex:y.value,src:k.value}):(j(),ae("img",{ref_key:"imgRef",ref:f,key:k.value,src:k.value,style:He(I.value),class:se(w(c).e("img")),crossorigin:e.crossorigin,onLoad:z,onError:q,onMousedown:O,onTouchstart:F},null,46,xN))],2),xe(J.$slots,"default")]),_:3},8,["focus-trap-el"])],6)]),_:3})]),_:3},8,["disabled"]))}});const EN=gt(TN),kN=["src","loading","crossorigin"],ON={key:0};var AN=we({name:"ElImage",inheritAttrs:!1,__name:"image",props:_N,emits:wN,setup(e,{expose:t,emit:n}){const r=e,i=n,{t:l}=$t(),g=De("image"),o=f_(),a=V(()=>Zo(Object.entries(o).filter(([z])=>/^(data-|on[A-Z])/i.test(z)||["id","style"].includes(z)))),c=F2({excludeListeners:!0,excludeKeys:V(()=>Object.keys(a.value))}),p=re(),u=re(!1),f=re(!0),s=re(!1),d=re(),v=re(),h=pt&&"loading"in HTMLImageElement.prototype;let m;const y=V(()=>[g.e("inner"),_.value&&g.e("preview"),f.value&&g.is("loading")]),b=V(()=>{const{fit:z}=r;return pt&&z?{objectFit:z}:{}}),_=V(()=>{const{previewSrcList:z}=r;return Pe(z)&&z.length>0}),S=V(()=>{const{previewSrcList:z,initialIndex:q}=r;let O=q;return q>z.length-1&&(O=0),O}),x=V(()=>r.loading==="eager"?!1:!h&&r.loading==="lazy"||r.lazy),T=()=>{!pt||(f.value=!0,u.value=!1,p.value=r.src)};function E(z){f.value=!1,u.value=!1,i("load",z)}function k(z){f.value=!1,u.value=!0,i("error",z)}function D(z){z&&(T(),U())}const W=p8(D,200,!0);async function I(){var z;if(!pt)return;await We();const{scrollContainer:q}=r;if(Or(q))v.value=q;else if(je(q)&&q!=="")v.value=(z=document.querySelector(q))!=null?z:void 0;else if(d.value){const F=N8(d.value);v.value=n8(F)?void 0:F}const{stop:O}=S8(d,([F])=>{W(F.isIntersecting)},{root:v});m=O}function U(){!pt||!W||(m==null||m(),v.value=void 0,m=void 0)}function A(){!_.value||(s.value=!0,i("show"))}function ee(){s.value=!1,i("close")}function de(z){i("switch",z)}return ke(()=>r.src,()=>{x.value?(f.value=!0,u.value=!1,U(),I()):T()}),et(()=>{x.value?I():T()}),t({showPreview:A}),(z,q)=>(j(),ae("div",zt({ref_key:"container",ref:d},a.value,{class:[w(g).b(),z.$attrs.class]}),[u.value?xe(z.$slots,"error",{key:0},()=>[ie("div",{class:se(w(g).e("error"))},Ae(w(l)("el.image.error")),3)]):(j(),ae(Ve,{key:1},[p.value!==void 0?(j(),ae("img",zt({key:0},w(c),{src:p.value,loading:e.loading,style:b.value,class:y.value,crossorigin:e.crossorigin,onClick:A,onLoad:E,onError:k}),null,16,kN)):ye("v-if",!0),f.value?(j(),ae("div",{key:1,class:se(w(g).e("wrapper"))},[xe(z.$slots,"placeholder",{},()=>[ie("div",{class:se(w(g).e("placeholder"))},null,2)])],2)):ye("v-if",!0)],64)),_.value?(j(),ae(Ve,{key:2},[s.value?(j(),me(w(EN),{key:0,"z-index":e.zIndex,"initial-index":S.value,infinite:e.infinite,"zoom-rate":e.zoomRate,"min-scale":e.minScale,"max-scale":e.maxScale,"show-progress":e.showProgress,"url-list":e.previewSrcList,scale:e.scale,crossorigin:e.crossorigin,"hide-on-click-modal":e.hideOnClickModal,teleported:e.previewTeleported,"close-on-press-escape":e.closeOnPressEscape,onClose:ee,onSwitch:de},bl({toolbar:fe(O=>[xe(z.$slots,"toolbar",id(uc(O)))]),default:fe(()=>[z.$slots.viewer?(j(),ae("div",ON,[xe(z.$slots,"viewer")])):ye("v-if",!0)]),_:2},[z.$slots.progress?{name:"progress",fn:fe(O=>[xe(z.$slots,"progress",id(uc(O)))]),key:"0"}:void 0,z.$slots["viewer-error"]?{name:"viewer-error",fn:fe(O=>[xe(z.$slots,"viewer-error",id(uc(O)))]),key:"1"}:void 0]),1032,["z-index","initial-index","infinite","zoom-rate","min-scale","max-scale","show-progress","url-list","scale","crossorigin","hide-on-click-modal","teleported","close-on-press-escape"])):ye("v-if",!0)],64)):ye("v-if",!0)],16))}});const lg=gt(AN),PN=Fe({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.MAX_SAFE_INTEGER},min:{type:Number,default:Number.MIN_SAFE_INTEGER},modelValue:{type:[Number,null]},readonly:Boolean,disabled:{type:Boolean,default:void 0},size:Nr,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:Se([String,Number,null]),validator:e=>e===null||Ye(e)||["min","max"].includes(e),default:null},name:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0},...oi(["ariaLabel"]),inputmode:{type:Se(String),default:void 0},align:{type:Se(String),default:"center"},disabledScientific:Boolean}),IN={[Mt]:(e,t)=>t!==e,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[sr]:e=>Ye(e)||Qt(e),[nt]:e=>Ye(e)||Qt(e)},MN=["aria-label"],RN=["aria-label"];var DN=we({name:"ElInputNumber",__name:"input-number",props:PN,emits:IN,setup(e,{expose:t,emit:n}){const r=e,i=n,{t:l}=$t(),g=De("input-number"),o=re(),a=mt({currentValue:r.modelValue,userInput:null}),{formItem:c}=Ni(),p=V(()=>Ye(r.modelValue)&&r.modelValue<=r.min),u=V(()=>Ye(r.modelValue)&&r.modelValue>=r.max),f=V(()=>{const z=y(r.step);return gn(r.precision)?Math.max(y(r.modelValue),z):(z>r.precision,r.precision)}),s=V(()=>r.controls&&r.controlsPosition==="right"),d=Vr(),v=Kn(),h=V(()=>{if(a.userInput!==null)return a.userInput;let z=a.currentValue;if(Qt(z))return"";if(Ye(z)){if(Number.isNaN(z))return"";gn(r.precision)||(z=z.toFixed(r.precision))}return z}),m=(z,q)=>{if(gn(q)&&(q=f.value),q===0)return Math.round(z);let O=String(z);const F=O.indexOf(".");if(F===-1||!O.replace(".","").split("")[F+q])return z;const G=O.length;return O.charAt(G-1)==="5"&&(O=`${O.slice(0,Math.max(0,G-1))}6`),Number.parseFloat(Number(O).toFixed(q))},y=z=>{if(Qt(z))return 0;const q=z.toString(),O=q.indexOf(".");let F=0;return O!==-1&&(F=q.length-O-1),F},b=(z,q=1)=>Ye(z)?z>=Number.MAX_SAFE_INTEGER&&q===1||z<=Number.MIN_SAFE_INTEGER&&q===-1?z:m(z+r.step*q):a.currentValue,_=z=>{const q=dn(z),O=X2(z);if(r.disabledScientific&&["e","E"].includes(O)){z.preventDefault();return}switch(q){case Re.up:{z.preventDefault(),S();break}case Re.down:{z.preventDefault(),x();break}}},S=()=>{if(r.readonly||v.value||u.value)return;const z=Number(h.value)||0,q=b(z);E(q),i(sr,a.currentValue),ee()},x=()=>{if(r.readonly||v.value||p.value)return;const z=Number(h.value)||0,q=b(z,-1);E(q),i(sr,a.currentValue),ee()},T=(z,q)=>{const{max:O,min:F,step:R,precision:P,stepStrictly:G,valueOnClear:$}=r;O<F&&fn("InputNumber","min should not be greater than max.");let M=Number(z);if(Qt(z)||Number.isNaN(M))return null;if(z===""){if($===null)return null;M=je($)?{min:F,max:O}[$]:$}return G&&(M=m(Math.round(m(M/R))*R,P),M!==z&&q&&i(nt,M)),gn(P)||(M=m(M,P)),(M>O||M<F)&&(M=M>O?O:F,q&&i(nt,M)),M},E=(z,q=!0)=>{var O;const F=a.currentValue,R=T(z);if(!q){i(nt,R);return}a.userInput=null,!(F===R&&z)&&(i(nt,R),F!==R&&i(Mt,R,F),r.validateEvent&&((O=c==null?void 0:c.validate)==null||O.call(c,"change").catch(P=>void 0)),a.currentValue=R)},k=z=>{a.userInput=z;const q=z===""?null:Number(z);i(sr,q),E(q,!1)},D=z=>{const q=z!==""?Number(z):"";(Ye(q)&&!Number.isNaN(q)||z==="")&&E(q),ee(),a.userInput=null},W=()=>{var z,q;(q=(z=o.value)==null?void 0:z.focus)==null||q.call(z)},I=()=>{var z,q;(q=(z=o.value)==null?void 0:z.blur)==null||q.call(z)},U=z=>{i("focus",z)},A=z=>{var q,O;a.userInput=null,a.currentValue===null&&((q=o.value)==null?void 0:q.input)&&(o.value.input.value=""),i("blur",z),r.validateEvent&&((O=c==null?void 0:c.validate)==null||O.call(c,"blur").catch(F=>void 0))},ee=()=>{a.currentValue!==r.modelValue&&(a.currentValue=r.modelValue)},de=z=>{document.activeElement===z.target&&z.preventDefault()};return ke(()=>r.modelValue,(z,q)=>{const O=T(z,!0);a.userInput===null&&O!==q&&(a.currentValue=O)},{immediate:!0}),ke(()=>r.precision,()=>{a.currentValue=T(r.modelValue)}),et(()=>{var z;const{min:q,max:O,modelValue:F}=r,R=(z=o.value)==null?void 0:z.input;if(R.setAttribute("role","spinbutton"),Number.isFinite(O)?R.setAttribute("aria-valuemax",String(O)):R.removeAttribute("aria-valuemax"),Number.isFinite(q)?R.setAttribute("aria-valuemin",String(q)):R.removeAttribute("aria-valuemin"),R.setAttribute("aria-valuenow",a.currentValue||a.currentValue===0?String(a.currentValue):""),R.setAttribute("aria-disabled",String(v.value)),!Ye(F)&&F!=null){let P=Number(F);Number.isNaN(P)&&(P=null),i(nt,P)}R.addEventListener("wheel",de,{passive:!1})}),as(()=>{var z,q;const O=(z=o.value)==null?void 0:z.input;O==null||O.setAttribute("aria-valuenow",`${(q=a.currentValue)!=null?q:""}`)}),t({focus:W,blur:I}),(z,q)=>(j(),ae("div",{class:se([w(g).b(),w(g).m(w(d)),w(g).is("disabled",w(v)),w(g).is("without-controls",!e.controls),w(g).is("controls-right",s.value),w(g).is(e.align,!!e.align)]),onDragstart:q[0]||(q[0]=Qe(()=>{},["prevent"]))},[e.controls?Ct((j(),ae("span",{key:0,role:"button","aria-label":w(l)("el.inputNumber.decrease"),class:se([w(g).e("decrease"),w(g).is("disabled",p.value)]),onKeydown:nr(x,["enter"])},[xe(z.$slots,"decrease-icon",{},()=>[ue(w(Ne),null,{default:fe(()=>[s.value?(j(),me(w(Ef),{key:0})):(j(),me(w(hw),{key:1}))]),_:1})])],42,MN)),[[w(by),x]]):ye("v-if",!0),e.controls?Ct((j(),ae("span",{key:1,role:"button","aria-label":w(l)("el.inputNumber.increase"),class:se([w(g).e("increase"),w(g).is("disabled",u.value)]),onKeydown:nr(S,["enter"])},[xe(z.$slots,"increase-icon",{},()=>[ue(w(Ne),null,{default:fe(()=>[s.value?(j(),me(w(zO),{key:0})):(j(),me(w(gv),{key:1}))]),_:1})])],42,RN)),[[w(by),S]]):ye("v-if",!0),ue(w(gs),{id:e.id,ref_key:"input",ref:o,type:"number",step:e.step,"model-value":h.value,placeholder:e.placeholder,readonly:e.readonly,disabled:w(v),size:w(d),max:e.max,min:e.min,name:e.name,"aria-label":e.ariaLabel,"validate-event":!1,inputmode:e.inputmode,onKeydown:_,onBlur:A,onFocus:U,onInput:k,onChange:D},bl({_:2},[z.$slots.prefix?{name:"prefix",fn:fe(()=>[xe(z.$slots,"prefix")]),key:"0"}:void 0,z.$slots.suffix?{name:"suffix",fn:fe(()=>[xe(z.$slots,"suffix")]),key:"1"}:void 0]),1032,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","aria-label","inputmode"])],34))}});const ip=gt(DN);var LN=Object.defineProperty,FN=(e,t,n)=>t in e?LN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ky=(e,t,n)=>FN(e,typeof t!="symbol"?t+"":t,n);class BN{constructor(t,n){this.parent=t,this.domNode=n,ky(this,"subMenuItems"),ky(this,"subIndex",0),this.subIndex=0,this.init()}init(){this.subMenuItems=this.domNode.querySelectorAll("li"),this.addListeners()}gotoSubIndex(t){t===this.subMenuItems.length?t=0:t<0&&(t=this.subMenuItems.length-1),this.subMenuItems[t].focus(),this.subIndex=t}addListeners(){const t=this.parent.domNode;Array.prototype.forEach.call(this.subMenuItems,n=>{n.addEventListener("keydown",r=>{const i=dn(r);let l=!1;switch(i){case Re.down:{this.gotoSubIndex(this.subIndex+1),l=!0;break}case Re.up:{this.gotoSubIndex(this.subIndex-1),l=!0;break}case Re.tab:{fc(t,"mouseleave");break}case Re.enter:case Re.numpadEnter:case Re.space:{l=!0,r.currentTarget.click();break}}return l&&(r.preventDefault(),r.stopPropagation()),!1})})}}var NN=Object.defineProperty,zN=(e,t,n)=>t in e?NN(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,$N=(e,t,n)=>zN(e,t+"",n);class jN{constructor(t,n){this.domNode=t,$N(this,"submenu",null),this.submenu=null,this.init(n)}init(t){this.domNode.setAttribute("tabindex","0");const n=this.domNode.querySelector(`.${t}-menu`);n&&(this.submenu=new BN(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{const n=dn(t);let r=!1;switch(n){case Re.down:{fc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),r=!0;break}case Re.up:{fc(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),r=!0;break}case Re.tab:{fc(t.currentTarget,"mouseleave");break}case Re.enter:case Re.numpadEnter:case Re.space:{r=!0,t.currentTarget.click();break}}r&&t.preventDefault()})}}class VN{constructor(t,n){this.domNode=t,this.init(n)}init(t){const n=this.domNode.childNodes;Array.from(n).forEach(r=>{r.nodeType===1&&new jN(r,t)})}}var UN=we({name:"ElMenuCollapseTransition",__name:"menu-collapse-transition",setup(e){const t=De("menu"),n={onBeforeEnter:r=>r.style.opacity="0.2",onEnter(r,i){Bs(r,`${t.namespace.value}-opacity-transition`),r.style.opacity="1",i()},onAfterEnter(r){dc(r,`${t.namespace.value}-opacity-transition`),r.style.opacity=""},onBeforeLeave(r){r.dataset||(r.dataset={}),y2(r,t.m("collapse"))?(dc(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),Bs(r,t.m("collapse"))):(Bs(r,t.m("collapse")),r.dataset.oldOverflow=r.style.overflow,r.dataset.scrollWidth=r.clientWidth.toString(),dc(r,t.m("collapse"))),r.style.width=`${r.scrollWidth}px`,r.style.overflow="hidden"},onLeave(r){Bs(r,"horizontal-collapse-transition"),r.style.width=`${r.dataset.scrollWidth}px`}};return(r,i)=>(j(),me(vr,zt({mode:"out-in"},n),{default:fe(()=>[xe(r.$slots,"default")]),_:3},16))}});function MS(e,t){const n=V(()=>{let i=e.parent;const l=[t.value];for(;i.type.name!=="ElMenu";)i.props.index&&l.unshift(i.props.index),i=i.parent;return l});return{parentMenu:V(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function HN(e){return V(()=>{const n=e.backgroundColor;return n?new Ro(n).shade(20).toString():""})}const RS=(e,t)=>{const n=De("menu");return V(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":HN(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},ug="rootMenu",Gc="subMenu:",WN=Fe({index:{type:String,required:!0},showTimeout:Number,hideTimeout:Number,popperClass:String,popperStyle:{type:Se([String,Object])},disabled:Boolean,teleported:{type:Boolean,default:void 0},popperOffset:Number,expandCloseIcon:{type:Nt},expandOpenIcon:{type:Nt},collapseCloseIcon:{type:Nt},collapseOpenIcon:{type:Nt}}),Fd="ElSubMenu";var cg=we({name:Fd,props:WN,setup(e,{slots:t,expose:n}){const r=it(),{indexPath:i,parentMenu:l}=MS(r,V(()=>e.index)),g=De("menu"),o=De("sub-menu"),a=Ue(ug);a||fn(Fd,"can not inject root menu");const c=Ue(`${Gc}${l.value.uid}`);c||fn(Fd,"can not inject sub menu");const p=re({}),u=re({});let f;const s=re(!1),d=re(),v=re(),h=V(()=>c.level===0),m=V(()=>E.value==="horizontal"&&h.value?"bottom-start":"right-start"),y=V(()=>E.value==="horizontal"&&h.value||E.value==="vertical"&&!a.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?x.value?e.expandOpenIcon:e.expandCloseIcon:Ef:e.collapseCloseIcon&&e.collapseOpenIcon?x.value?e.collapseOpenIcon:e.collapseCloseIcon:us),b=V(()=>{const P=e.teleported;return gn(P)?h.value:P}),_=V(()=>a.props.collapse?`${g.namespace.value}-zoom-in-left`:`${g.namespace.value}-zoom-in-top`),S=V(()=>E.value==="horizontal"&&h.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","right","right-end","left-start","bottom-start","bottom-end","top-start","top-end"]),x=V(()=>a.openedMenus.includes(e.index)),T=V(()=>[...Object.values(p.value),...Object.values(u.value)].some(({active:P})=>P)),E=V(()=>a.props.mode),k=V(()=>a.props.persistent),D=mt({index:e.index,indexPath:i,active:T}),W=RS(a.props,c.level+1),I=V(()=>{var P;return(P=e.popperOffset)!=null?P:a.props.popperOffset}),U=V(()=>{var P;return(P=e.popperClass)!=null?P:a.props.popperClass}),A=V(()=>{var P;return(P=e.popperStyle)!=null?P:a.props.popperStyle}),ee=V(()=>{var P;return(P=e.showTimeout)!=null?P:a.props.showTimeout}),de=V(()=>{var P;return(P=e.hideTimeout)!=null?P:a.props.hideTimeout}),z=()=>{var P,G,$;return($=(G=(P=v.value)==null?void 0:P.popperRef)==null?void 0:G.popperInstanceRef)==null?void 0:$.destroy()},q=P=>{P||z()},O=()=>{a.props.menuTrigger==="hover"&&a.props.mode==="horizontal"||a.props.collapse&&a.props.mode==="vertical"||e.disabled||a.handleSubMenuClick({index:e.index,indexPath:i.value,active:T.value})},F=(P,G=ee.value)=>{var $;if(P.type!=="focus"){if(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||e.disabled){c.mouseInChild.value=!0;return}c.mouseInChild.value=!0,f==null||f(),{stop:f}=Ol(()=>{a.openMenu(e.index,i.value)},G),b.value&&(($=l.value.vnode.el)==null||$.dispatchEvent(new MouseEvent("mouseenter"))),P.type==="mouseenter"&&P.target&&We(()=>{Bf(P.target,{preventScroll:!0})})}},R=(P=!1)=>{var G;if(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"){c.mouseInChild.value=!1;return}f==null||f(),c.mouseInChild.value=!1,{stop:f}=Ol(()=>!s.value&&a.closeMenu(e.index,i.value),de.value),b.value&&P&&((G=c.handleMouseleave)==null||G.call(c,!0))};ke(()=>a.props.collapse,P=>q(Boolean(P)));{const P=$=>{u.value[$.index]=$},G=$=>{delete u.value[$.index]};wt(`${Gc}${r.uid}`,{addSubMenu:P,removeSubMenu:G,handleMouseleave:R,mouseInChild:s,level:c.level+1})}return n({opened:x}),et(()=>{a.addSubMenu(D),c.addSubMenu(D)}),kt(()=>{c.removeSubMenu(D),a.removeSubMenu(D)}),()=>{var P;const G=[(P=t.title)==null?void 0:P.call(t),_t(Ne,{class:o.e("icon-arrow"),style:{transform:x.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&a.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>je(y.value)?_t(r.appContext.components[y.value]):_t(y.value)})],$=a.isMenuPopup?_t(si,{ref:v,visible:x.value,effect:"light",pure:!0,offset:I.value,showArrow:!1,persistent:k.value,popperClass:U.value,popperStyle:A.value,placement:m.value,teleported:b.value,fallbackPlacements:S.value,transition:_.value,gpuAcceleration:!1},{content:()=>{var M;return _t("div",{class:[g.m(E.value),g.m("popup-container"),U.value],onMouseenter:ne=>F(ne,100),onMouseleave:()=>R(!0),onFocus:ne=>F(ne,100)},[_t("ul",{class:[g.b(),g.m("popup"),g.m(`popup-${m.value}`)],style:W.value},[(M=t.default)==null?void 0:M.call(t)])])},default:()=>_t("div",{class:o.e("title"),onClick:O},G)}):_t(Ve,{},[_t("div",{class:o.e("title"),ref:d,onClick:O},G),_t(gS,{},{default:()=>{var M;return Ct(_t("ul",{role:"menu",class:[g.b(),g.m("inline")],style:W.value},[(M=t.default)==null?void 0:M.call(t)]),[[Yt,x.value]])}})]);return _t("li",{class:[o.b(),o.is("active",T.value),o.is("opened",x.value),o.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:F,onMouseleave:()=>R(),onFocus:F},[$])}}});const GN=Fe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Se(Array),default:()=>Jt([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,closeOnClickOutside:Boolean,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},popperOffset:{type:Number,default:6},ellipsisIcon:{type:Nt,default:()=>TA},popperEffect:{type:Se(String),default:"dark"},popperClass:String,popperStyle:{type:Se([String,Object])},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},persistent:{type:Boolean,default:!0}}),Bd=e=>Pe(e)&&e.every(t=>je(t)),KN={close:(e,t)=>je(e)&&Bd(t),open:(e,t)=>je(e)&&Bd(t),select:(e,t,n,r)=>je(e)&&Bd(t)&&Ze(n)&&(gn(r)||r instanceof Promise)},Oy=64;var YN=we({name:"ElMenu",props:GN,emits:KN,setup(e,{emit:t,slots:n,expose:r}){const i=it(),l=i.appContext.config.globalProperties.$router,g=re(),o=re(),a=De("menu"),c=De("sub-menu");let p=Oy;const u=re(-1),f=re(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),s=re(e.defaultActive),d=re({}),v=re({}),h=V(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),m=()=>{const z=s.value&&d.value[s.value];if(!z||e.mode==="horizontal"||e.collapse)return;z.indexPath.forEach(O=>{const F=v.value[O];F&&y(O,F.indexPath)})},y=(z,q)=>{f.value.includes(z)||(e.uniqueOpened&&(f.value=f.value.filter(O=>q.includes(O))),f.value.push(z),t("open",z,q))},b=z=>{const q=f.value.indexOf(z);q!==-1&&f.value.splice(q,1)},_=(z,q)=>{b(z),t("close",z,q)},S=({index:z,indexPath:q})=>{f.value.includes(z)?_(z,q):y(z,q)},x=z=>{(e.mode==="horizontal"||e.collapse)&&(f.value=[]);const{index:q,indexPath:O}=z;if(!(Qt(q)||Qt(O)))if(e.router&&l){const F=z.route||q,R=l.push(F).then(P=>(P||(s.value=q),P));t("select",q,O,{index:q,indexPath:O,route:F},R)}else s.value=q,t("select",q,O,{index:q,indexPath:O})},T=z=>{var q;const O=d.value,F=O[z]||s.value&&O[s.value]||O[e.defaultActive];s.value=(q=F==null?void 0:F.index)!=null?q:z},E=z=>{const q=getComputedStyle(z),O=Number.parseInt(q.marginLeft,10),F=Number.parseInt(q.marginRight,10);return z.offsetWidth+O+F||0},k=()=>{if(!g.value)return-1;const z=Array.from(g.value.childNodes).filter($=>$.nodeName!=="#comment"&&($.nodeName!=="#text"||$.nodeValue)),q=getComputedStyle(g.value),O=Number.parseInt(q.paddingLeft,10),F=Number.parseInt(q.paddingRight,10),R=g.value.clientWidth-O-F;let P=0,G=0;return z.forEach(($,M)=>{P+=E($),P<=R-p&&(G=M+1)}),G===z.length?-1:G},D=z=>v.value[z].indexPath,W=(z,q=33.34)=>{let O;return()=>{O&&clearTimeout(O),O=setTimeout(()=>{z()},q)}};let I=!0;const U=()=>{const z=cn(o);if(z&&(p=E(z)||Oy),u.value===k())return;const q=()=>{u.value=-1,We(()=>{u.value=k()})};I?q():W(q)(),I=!1};ke(()=>e.defaultActive,z=>{d.value[z]||(s.value=""),T(z)}),ke(()=>e.collapse,z=>{z&&(f.value=[])}),ke(d.value,m);let A;io(()=>{e.mode==="horizontal"&&e.ellipsis?A=un(g,U).stop:A==null||A()});const ee=re(!1);{const z=R=>{v.value[R.index]=R},q=R=>{delete v.value[R.index]};wt(ug,mt({props:e,openedMenus:f,items:d,subMenus:v,activeIndex:s,isMenuPopup:h,addMenuItem:R=>{d.value[R.index]=R},removeMenuItem:R=>{delete d.value[R.index]},addSubMenu:z,removeSubMenu:q,openMenu:y,closeMenu:_,handleMenuItemClick:x,handleSubMenuClick:S})),wt(`${Gc}${i.uid}`,{addSubMenu:z,removeSubMenu:q,mouseInChild:ee,level:0})}et(()=>{e.mode==="horizontal"&&new VN(i.vnode.el,a.namespace.value)}),r({open:q=>{const{indexPath:O}=v.value[q];O.forEach(F=>y(F,O))},close:b,updateActiveIndex:T,handleResize:U});const de=RS(e,0);return()=>{var z,q;let O=(q=(z=n.default)==null?void 0:z.call(n))!=null?q:[];const F=[];if(e.mode==="horizontal"&&g.value){const G=ta(O).filter(ne=>(ne==null?void 0:ne.shapeFlag)!==8),$=u.value===-1?G:G.slice(0,u.value),M=u.value===-1?[]:G.slice(u.value);(M==null?void 0:M.length)&&e.ellipsis&&(O=$,F.push(_t(cg,{ref:o,index:"sub-menu-more",class:c.e("hide-arrow"),popperOffset:e.popperOffset},{title:()=>_t(Ne,{class:c.e("icon-more")},{default:()=>_t(e.ellipsisIcon)}),default:()=>M})))}const R=e.closeOnClickOutside?[[rg,()=>{!f.value.length||ee.value||(f.value.forEach(G=>t("close",G,D(G))),f.value=[])}]]:[],P=Ct(_t("ul",{key:String(e.collapse),role:"menubar",ref:g,style:de.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...O,...F]),R);return e.collapseTransition&&e.mode==="vertical"?_t(UN,()=>P):P}}});const XN=Fe({index:{type:Se([String,null]),default:null},route:{type:Se([String,Object])},disabled:Boolean}),qN={click:e=>je(e.index)&&Pe(e.indexPath)},Nd="ElMenuItem";var DS=we({name:Nd,__name:"menu-item",props:XN,emits:qN,setup(e,{expose:t,emit:n}){const r=e,i=n;$h(r.index)&&void 0;const l=it(),g=Ue(ug),o=De("menu"),a=De("menu-item");g||fn(Nd,"can not inject root menu");const{parentMenu:c,indexPath:p}=MS(l,Fn(r,"index")),u=Ue(`${Gc}${c.value.uid}`);u||fn(Nd,"can not inject sub menu");const f=V(()=>r.index===g.activeIndex),s=mt({index:r.index,indexPath:p,active:f}),d=()=>{r.disabled||(g.handleMenuItemClick({index:r.index,indexPath:p.value,route:r.route}),i("click",s))};return et(()=>{u.addSubMenu(s),g.addMenuItem(s)}),kt(()=>{u.removeSubMenu(s),g.removeMenuItem(s)}),t({parentMenu:c,rootMenu:g,active:f,nsMenu:o,nsMenuItem:a,handleClick:d}),(v,h)=>(j(),ae("li",{class:se([w(a).b(),w(a).is("active",f.value),w(a).is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:d},[w(c).type.name==="ElMenu"&&w(g).props.collapse&&v.$slots.title?(j(),me(w(si),{key:0,effect:w(g).props.popperEffect,placement:"right","fallback-placements":["left"],"popper-class":w(g).props.popperClass,"popper-style":w(g).props.popperStyle,persistent:w(g).props.persistent,"focus-on-target":""},{content:fe(()=>[xe(v.$slots,"title")]),default:fe(()=>[ie("div",{class:se(w(o).be("tooltip","trigger"))},[xe(v.$slots,"default")],2)]),_:3},8,["effect","popper-class","popper-style","persistent"])):(j(),ae(Ve,{key:1},[xe(v.$slots,"default"),xe(v.$slots,"title")],64))],2))}});const ZN={title:String};var LS=we({name:"ElMenuItemGroup",__name:"menu-item-group",props:ZN,setup(e){const t=De("menu-item-group");return(n,r)=>(j(),ae("li",{class:se(w(t).b())},[ie("div",{class:se(w(t).e("title"))},[n.$slots.title?xe(n.$slots,"title",{key:1}):(j(),ae(Ve,{key:0},[qe(Ae(e.title),1)],64))],2),ie("ul",null,[xe(n.$slots,"default")])],2))}});const FS=gt(YN,{MenuItem:DS,MenuItemGroup:LS,SubMenu:cg}),fg=Sr(DS);Sr(LS);Sr(cg);const BS=Symbol("elPaginationKey"),JN=Fe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Nt}}),QN={click:e=>e instanceof MouseEvent},ez=["disabled","aria-label","aria-disabled"],tz={key:0};var nz=we({name:"ElPaginationPrev",__name:"prev",props:JN,emits:QN,setup(e){const t=e,{t:n}=$t(),r=V(()=>t.disabled||t.currentPage<=1);return(i,l)=>(j(),ae("button",{type:"button",class:"btn-prev",disabled:r.value,"aria-label":i.prevText||w(n)("el.pagination.prev"),"aria-disabled":r.value,onClick:l[0]||(l[0]=g=>i.$emit("click",g))},[i.prevText?(j(),ae("span",tz,Ae(i.prevText),1)):(j(),me(w(Ne),{key:1},{default:fe(()=>[(j(),me(st(i.prevIcon)))]),_:1}))],8,ez))}});const rz=Fe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Nt}}),iz=["disabled","aria-label","aria-disabled"],az={key:0};var oz=we({name:"ElPaginationNext",__name:"next",props:rz,emits:["click"],setup(e){const t=e,{t:n}=$t(),r=V(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(i,l)=>(j(),ae("button",{type:"button",class:"btn-next",disabled:r.value,"aria-label":i.nextText||w(n)("el.pagination.next"),"aria-disabled":r.value,onClick:l[0]||(l[0]=g=>i.$emit("click",g))},[i.nextText?(j(),ae("span",az,Ae(i.nextText),1)):(j(),me(w(Ne),{key:1},{default:fe(()=>[(j(),me(st(i.nextIcon)))]),_:1}))],8,iz))}});const dg=()=>Ue(BS,{}),sz=Fe({pageSize:{type:Number,required:!0},pageSizes:{type:Se(Array),default:()=>Jt([10,20,30,40,50,100])},popperClass:{type:String},popperStyle:{type:Se([String,Object])},disabled:Boolean,teleported:Boolean,size:{type:String,values:co},appendSizeTo:String});var lz=we({name:"ElPaginationSizes",__name:"sizes",props:sz,emits:["page-size-change"],setup(e,{emit:t}){const n=e,r=t,{t:i}=$t(),l=De("pagination"),g=dg(),o=re(n.pageSize);ke(()=>n.pageSizes,(p,u)=>{if(!kr(p,u)&&Pe(p)){const f=p.includes(n.pageSize)?n.pageSize:n.pageSizes[0];r("page-size-change",f)}}),ke(()=>n.pageSize,p=>{o.value=p});const a=V(()=>n.pageSizes);function c(p){var u;p!==o.value&&(o.value=p,(u=g.handleSizeChange)==null||u.call(g,Number(p)))}return(p,u)=>(j(),ae("span",{class:se(w(l).e("sizes"))},[ue(w(nS),{"model-value":o.value,disabled:p.disabled,"popper-class":p.popperClass,"popper-style":p.popperStyle,size:p.size,teleported:p.teleported,"validate-event":!1,"append-to":p.appendSizeTo,onChange:c},{default:fe(()=>[(j(!0),ae(Ve,null,Bt(a.value,f=>(j(),me(w(rS),{key:f,value:f,label:f+w(i)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","popper-style","size","teleported","append-to"])],2))}});const uz=Fe({size:{type:String,values:co}}),cz=["disabled"];var fz=we({name:"ElPaginationJumper",__name:"jumper",props:uz,setup(e){const{t}=$t(),n=De("pagination"),{pageCount:r,disabled:i,currentPage:l,changeEvent:g}=dg(),o=re(),a=V(()=>{var u;return(u=o.value)!=null?u:l==null?void 0:l.value});function c(u){o.value=u?+u:""}function p(u){u=Math.trunc(+u),g==null||g(u),o.value=void 0}return(u,f)=>(j(),ae("span",{class:se(w(n).e("jump")),disabled:w(i)},[ie("span",{class:se([w(n).e("goto")])},Ae(w(t)("el.pagination.goto")),3),ue(w(gs),{size:u.size,class:se([w(n).e("editor"),w(n).is("in-pagination")]),min:1,max:w(r),disabled:w(i),"model-value":a.value,"validate-event":!1,"aria-label":w(t)("el.pagination.page"),type:"number","onUpdate:modelValue":c,onChange:p},null,8,["size","class","max","disabled","model-value","aria-label"]),ie("span",{class:se([w(n).e("classifier")])},Ae(w(t)("el.pagination.pageClassifier")),3)],10,cz))}});const dz=Fe({total:{type:Number,default:1e3}}),hz=["disabled"];var pz=we({name:"ElPaginationTotal",__name:"total",props:dz,setup(e){const{t}=$t(),n=De("pagination"),{disabled:r}=dg();return(i,l)=>(j(),ae("span",{class:se(w(n).e("total")),disabled:w(r)},Ae(w(t)("el.pagination.total",{total:i.total})),11,hz))}});const vz=Fe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),gz=["aria-current","aria-label","tabindex"],mz=["tabindex","aria-label"],yz=["aria-current","aria-label","tabindex"],bz=["tabindex","aria-label"],_z=["aria-current","aria-label","tabindex"];var wz=we({name:"ElPaginationPager",__name:"pager",props:vz,emits:[Mt],setup(e,{emit:t}){const n=e,r=t,i=De("pager"),l=De("icon"),{t:g}=$t(),o=re(!1),a=re(!1),c=re(!1),p=re(!1),u=re(!1),f=re(!1),s=V(()=>{const S=n.pagerCount,x=(S-1)/2,T=Number(n.currentPage),E=Number(n.pageCount);let k=!1,D=!1;E>S&&(T>S-x&&(k=!0),T<E-x&&(D=!0));const W=[];if(k&&!D){const I=E-(S-2);for(let U=I;U<E;U++)W.push(U)}else if(!k&&D)for(let I=2;I<S;I++)W.push(I);else if(k&&D){const I=Math.floor(S/2)-1;for(let U=T-I;U<=T+I;U++)W.push(U)}else for(let I=2;I<E;I++)W.push(I);return W}),d=V(()=>["more","btn-quickprev",l.b(),i.is("disabled",n.disabled)]),v=V(()=>["more","btn-quicknext",l.b(),i.is("disabled",n.disabled)]),h=V(()=>n.disabled?-1:0);ke(()=>[n.pageCount,n.pagerCount,n.currentPage],([S,x,T])=>{const E=(x-1)/2;let k=!1,D=!1;S>x&&(k=T>x-E,D=T<S-E),c.value&&(c.value=k),p.value&&(p.value=D),o.value=k,a.value=D},{immediate:!0});function m(S=!1){n.disabled||(S?c.value=!0:p.value=!0)}function y(S=!1){S?u.value=!0:f.value=!0}function b(S){const x=S.target;if(x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("number")){const T=Number(x.textContent);T!==n.currentPage&&r(Mt,T)}else x.tagName.toLowerCase()==="li"&&Array.from(x.classList).includes("more")&&_(S)}function _(S){const x=S.target;if(x.tagName.toLowerCase()==="ul"||n.disabled)return;let T=Number(x.textContent);const E=n.pageCount,k=n.currentPage,D=n.pagerCount-2;x.className.includes("more")&&(x.className.includes("quickprev")?T=k-D:x.className.includes("quicknext")&&(T=k+D)),Number.isNaN(+T)||(T<1&&(T=1),T>E&&(T=E)),T!==k&&r(Mt,T)}return(S,x)=>(j(),ae("ul",{class:se(w(i).b()),onClick:_,onKeyup:nr(b,["enter"])},[S.pageCount>0?(j(),ae("li",{key:0,class:se([[w(i).is("active",S.currentPage===1),w(i).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===1,"aria-label":w(g)("el.pagination.currentPage",{pager:1}),tabindex:h.value}," 1 ",10,gz)):ye("v-if",!0),o.value?(j(),ae("li",{key:1,class:se(d.value),tabindex:h.value,"aria-label":w(g)("el.pagination.prevPages",{pager:S.pagerCount-2}),onMouseenter:x[0]||(x[0]=T=>m(!0)),onMouseleave:x[1]||(x[1]=T=>c.value=!1),onFocus:x[2]||(x[2]=T=>y(!0)),onBlur:x[3]||(x[3]=T=>u.value=!1)},[(c.value||u.value)&&!S.disabled?(j(),me(w(QO),{key:0})):(j(),me(w(e0),{key:1}))],42,mz)):ye("v-if",!0),(j(!0),ae(Ve,null,Bt(s.value,T=>(j(),ae("li",{key:T,class:se([[w(i).is("active",S.currentPage===T),w(i).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===T,"aria-label":w(g)("el.pagination.currentPage",{pager:T}),tabindex:h.value},Ae(T),11,yz))),128)),a.value?(j(),ae("li",{key:2,class:se(v.value),tabindex:h.value,"aria-label":w(g)("el.pagination.nextPages",{pager:S.pagerCount-2}),onMouseenter:x[4]||(x[4]=T=>m()),onMouseleave:x[5]||(x[5]=T=>p.value=!1),onFocus:x[6]||(x[6]=T=>y()),onBlur:x[7]||(x[7]=T=>f.value=!1)},[(p.value||f.value)&&!S.disabled?(j(),me(w(tA),{key:0})):(j(),me(w(e0),{key:1}))],42,bz)):ye("v-if",!0),S.pageCount>1?(j(),ae("li",{key:3,class:se([[w(i).is("active",S.currentPage===S.pageCount),w(i).is("disabled",S.disabled)],"number"]),"aria-current":S.currentPage===S.pageCount,"aria-label":w(g)("el.pagination.currentPage",{pager:S.pageCount}),tabindex:h.value},Ae(S.pageCount),11,_z)):ye("v-if",!0)],34))}});const In=e=>typeof e!="number",Sz=Fe({pageSize:Number,defaultPageSize:Number,total:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>Ye(e)&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},currentPage:Number,defaultCurrentPage:Number,layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Se(Array),default:()=>Jt([10,20,30,40,50,100])},popperClass:{type:String,default:""},popperStyle:{type:Se([String,Object])},prevText:{type:String,default:""},prevIcon:{type:Nt,default:()=>kf},nextText:{type:String,default:""},nextIcon:{type:Nt,default:()=>us},teleported:{type:Boolean,default:!0},small:Boolean,size:Nr,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean,appendSizeTo:String}),Cz={"update:current-page":e=>Ye(e),"update:page-size":e=>Ye(e),"size-change":e=>Ye(e),change:(e,t)=>Ye(e)&&Ye(t),"current-change":e=>Ye(e),"prev-click":e=>Ye(e),"next-click":e=>Ye(e)},Ay="ElPagination";var xz=we({name:Ay,props:Sz,emits:Cz,setup(e,{emit:t,slots:n}){const{t:r}=$t(),i=De("pagination"),l=it().vnode.props||{},g=u2(),o=V(()=>{var S;return e.small?"small":(S=e.size)!=null?S:g.value});jf({from:"small",replacement:"size",version:"3.0.0",scope:"el-pagination",ref:"https://element-plus.org/zh-CN/component/pagination.html"},V(()=>!!e.small));const a="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,c="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,p=V(()=>{if(In(e.total)&&In(e.pageCount)||!In(e.currentPage)&&!a)return!1;if(e.layout.includes("sizes")){if(In(e.pageCount)){if(!In(e.total)&&!In(e.pageSize)&&!c)return!1}else if(!c)return!1}return!0}),u=re(In(e.defaultPageSize)?10:e.defaultPageSize),f=re(In(e.defaultCurrentPage)?1:e.defaultCurrentPage),s=V({get(){return In(e.pageSize)?u.value:e.pageSize},set(S){In(e.pageSize)&&(u.value=S),c&&(t("update:page-size",S),t("size-change",S))}}),d=V(()=>{let S=0;return In(e.pageCount)?In(e.total)||(S=Math.max(1,Math.ceil(e.total/s.value))):S=e.pageCount,S}),v=V({get(){return In(e.currentPage)?f.value:e.currentPage},set(S){let x=S;S<1?x=1:S>d.value&&(x=d.value),In(e.currentPage)&&(f.value=x),a&&(t("update:current-page",x),t("current-change",x))}});ke(d,S=>{v.value>S&&(v.value=S)}),ke([v,s],S=>{t(Mt,...S)},{flush:"post"});function h(S){v.value=S}function m(S){s.value=S;const x=d.value;v.value>x&&(v.value=x)}function y(){e.disabled||(v.value-=1,t("prev-click",v.value))}function b(){e.disabled||(v.value+=1,t("next-click",v.value))}function _(S,x){S&&(S.props||(S.props={}),S.props.class=[S.props.class,x].join(" "))}return wt(BS,{pageCount:d,disabled:V(()=>e.disabled),currentPage:v,changeEvent:h,handleSizeChange:m}),()=>{var S,x;if(!p.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&d.value<=1)return null;const T=[],E=[],k=_t("div",{class:i.e("rightwrapper")},E),D={prev:_t(nz,{disabled:e.disabled,currentPage:v.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:y}),jumper:_t(fz,{size:o.value}),pager:_t(wz,{currentPage:v.value,pageCount:d.value,pagerCount:e.pagerCount,onChange:h,disabled:e.disabled}),next:_t(oz,{disabled:e.disabled,currentPage:v.value,pageCount:d.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:b}),sizes:_t(lz,{pageSize:s.value,pageSizes:e.pageSizes,popperClass:e.popperClass,popperStyle:e.popperStyle,disabled:e.disabled,teleported:e.teleported,size:o.value,appendSizeTo:e.appendSizeTo}),slot:(x=(S=n==null?void 0:n.default)==null?void 0:S.call(n))!=null?x:null,total:_t(pz,{total:In(e.total)?0:e.total})},W=e.layout.split(",").map(U=>U.trim());let I=!1;return W.forEach(U=>{if(U==="->"){I=!0;return}I?E.push(D[U]):T.push(D[U])}),_(T[0],i.is("first")),_(T[T.length-1],i.is("last")),I&&E.length>0&&(_(E[0],i.is("first")),_(E[E.length-1],i.is("last")),T.push(k)),_t("div",{class:[i.b(),i.is("background",e.background),i.m(o.value)]},T)}}});const Tz=gt(xz),Ez=Fe({trigger:oa.trigger,triggerKeys:oa.triggerKeys,placement:Dd.placement,disabled:oa.disabled,visible:Ut.visible,transition:Ut.transition,popperOptions:Dd.popperOptions,tabindex:Dd.tabindex,content:Ut.content,popperStyle:Ut.popperStyle,popperClass:Ut.popperClass,enterable:{...Ut.enterable,default:!0},effect:{...Ut.effect,default:"light"},teleported:Ut.teleported,appendTo:Ut.appendTo,title:String,width:{type:[String,Number],default:150},offset:{type:Number,default:void 0},showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0},showArrow:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},"onUpdate:visible":{type:Function}}),kz={"update:visible":e=>An(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},Oz="onUpdate:visible";var Az=we({name:"ElPopover",__name:"popover",props:Ez,emits:kz,setup(e,{expose:t,emit:n}){const r=e,i=n,l=V(()=>r[Oz]),g=De("popover"),o=re(),a=V(()=>{var m;return(m=w(o))==null?void 0:m.popperRef}),c=V(()=>[{width:bn(r.width)},r.popperStyle]),p=V(()=>[g.b(),r.popperClass,{[g.m("plain")]:!!r.content}]),u=V(()=>r.transition===`${g.namespace.value}-fade-in-linear`),f=()=>{var m;(m=o.value)==null||m.hide()},s=()=>{i("before-enter")},d=()=>{i("before-leave")},v=()=>{i("after-enter")},h=()=>{i("update:visible",!1),i("after-leave")};return t({popperRef:a,hide:f}),(m,y)=>(j(),me(w(si),zt({ref_key:"tooltipRef",ref:o},m.$attrs,{trigger:e.trigger,"trigger-keys":e.triggerKeys,placement:e.placement,disabled:e.disabled,visible:e.visible,transition:e.transition,"popper-options":e.popperOptions,tabindex:e.tabindex,content:e.content,offset:e.offset,"show-after":e.showAfter,"hide-after":e.hideAfter,"auto-close":e.autoClose,"show-arrow":e.showArrow,"aria-label":e.title,effect:e.effect,enterable:e.enterable,"popper-class":p.value,"popper-style":c.value,teleported:e.teleported,"append-to":e.appendTo,persistent:e.persistent,"gpu-acceleration":u.value,"onUpdate:visible":l.value,onBeforeShow:s,onBeforeHide:d,onShow:v,onHide:h}),{content:fe(()=>[e.title?(j(),ae("div",{key:0,class:se(w(g).e("title")),role:"title"},Ae(e.title),3)):ye("v-if",!0),xe(m.$slots,"default",{},()=>[qe(Ae(e.content),1)])]),default:fe(()=>[m.$slots.reference?xe(m.$slots,"reference",{key:0}):ye("v-if",!0)]),_:3},16,["trigger","trigger-keys","placement","disabled","visible","transition","popper-options","tabindex","content","offset","show-after","hide-after","auto-close","show-arrow","aria-label","effect","enterable","popper-class","popper-style","teleported","append-to","persistent","gpu-acceleration","onUpdate:visible"]))}});const Py=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var Pz={mounted(e,t){Py(e,t)},updated(e,t){Py(e,t)}};const Iz="popover",Mz=R8(Pz,Iz),ju=gt(Az,{directive:Mz}),Rz=Fe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:Boolean,duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Se(String),default:"round"},textInside:Boolean,width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Se([String,Array,Function]),default:""},striped:Boolean,stripedFlow:Boolean,format:{type:Se(Function),default:e=>`${e}%`}}),Dz=["aria-valuenow"],Lz={viewBox:"0 0 100 100"},Fz=["d","stroke","stroke-linecap","stroke-width"],Bz=["d","stroke","opacity","stroke-linecap","stroke-width"],Nz={key:0};var zz=we({name:"ElProgress",__name:"progress",props:Rz,setup(e){const t={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},n=e,r=De("progress"),i=V(()=>{const b={width:`${n.percentage}%`,animationDuration:`${n.duration}s`},_=y(n.percentage);return _.includes("gradient")?b.background=_:b.backgroundColor=_,b}),l=V(()=>(n.strokeWidth/n.width*100).toFixed(1)),g=V(()=>["circle","dashboard"].includes(n.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),o=V(()=>{const b=g.value,_=n.type==="dashboard";return`
M 50 50
m 0 ${_?"":"-"}${b}
a ${b} ${b} 0 1 1 0 ${_?"-":""}${b*2}
a ${b} ${b} 0 1 1 0 ${_?"":"-"}${b*2}
`}),a=V(()=>2*Math.PI*g.value),c=V(()=>n.type==="dashboard"?.75:1),p=V(()=>`${-1*a.value*(1-c.value)/2}px`),u=V(()=>({strokeDasharray:`${a.value*c.value}px, ${a.value}px`,strokeDashoffset:p.value})),f=V(()=>({strokeDasharray:`${a.value*c.value*(n.percentage/100)}px, ${a.value}px`,strokeDashoffset:p.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),s=V(()=>{let b;return n.color?b=y(n.percentage):b=t[n.status]||t.default,b}),d=V(()=>n.status==="warning"?yv:n.type==="line"?n.status==="success"?nu:ru:n.status==="success"?cw:ii),v=V(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),h=V(()=>n.format(n.percentage));function m(b){const _=100/b.length;return b.map((x,T)=>je(x)?{color:x,percentage:(T+1)*_}:x).sort((x,T)=>x.percentage-T.percentage)}const y=b=>{var _;const{color:S}=n;if(Be(S))return S(b);if(je(S))return S;{const x=m(S);for(const T of x)if(T.percentage>b)return T.color;return(_=x[x.length-1])==null?void 0:_.color}};return(b,_)=>(j(),ae("div",{class:se([w(r).b(),w(r).m(e.type),w(r).is(e.status),{[w(r).m("without-text")]:!e.showText,[w(r).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(j(),ae("div",{key:0,class:se(w(r).b("bar"))},[ie("div",{class:se(w(r).be("bar","outer")),style:He({height:`${e.strokeWidth}px`})},[ie("div",{class:se([w(r).be("bar","inner"),{[w(r).bem("bar","inner","indeterminate")]:e.indeterminate},{[w(r).bem("bar","inner","striped")]:e.striped},{[w(r).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:He(i.value)},[(e.showText||b.$slots.default)&&e.textInside?(j(),ae("div",{key:0,class:se(w(r).be("bar","innerText"))},[xe(b.$slots,"default",{percentage:e.percentage},()=>[ie("span",null,Ae(h.value),1)])],2)):ye("v-if",!0)],6)],6)],2)):(j(),ae("div",{key:1,class:se(w(r).b("circle")),style:He({height:`${e.width}px`,width:`${e.width}px`})},[(j(),ae("svg",Lz,[ie("path",{class:se(w(r).be("circle","track")),d:o.value,stroke:`var(${w(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,fill:"none",style:He(u.value)},null,14,Fz),ie("path",{class:se(w(r).be("circle","path")),d:o.value,stroke:s.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":l.value,style:He(f.value)},null,14,Bz)]))],6)),(e.showText||b.$slots.default)&&!e.textInside?(j(),ae("div",{key:2,class:se(w(r).e("text")),style:He({fontSize:`${v.value}px`})},[xe(b.$slots,"default",{percentage:e.percentage},()=>[e.status?(j(),me(w(Ne),{key:1},{default:fe(()=>[(j(),me(st(d.value)))]),_:1})):(j(),ae("span",Nz,Ae(h.value),1))])],6)):ye("v-if",!0)],10,Dz))}});const NS=gt(zz),$z=["start","center","end","space-around","space-between","space-evenly"],jz=["top","middle","bottom"],Vz=Fe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:$z,default:"start"},align:{type:String,values:jz}});var Uz=we({name:"ElRow",__name:"row",props:Vz,setup(e){const t=e,n=De("row"),r=V(()=>t.gutter);wt(pS,{gutter:r});const i=V(()=>{const g={};return t.gutter&&(g.marginRight=g.marginLeft=`-${t.gutter/2}px`),g}),l=V(()=>[n.b(),n.is(`justify-${t.justify}`,t.justify!=="start"),n.is(`align-${t.align}`,!!t.align)]);return(g,o)=>(j(),me(st(e.tag),{class:se(l.value),style:He(i.value)},{default:fe(()=>[xe(g.$slots,"default")]),_:3},8,["class","style"]))}});const Hz=gt(Uz),Wz="horizontal",Gz=({atEndEdge:e,atStartEdge:t,layout:n},r)=>{let i,l=0;const g=a=>a<0&&t.value||a>0&&e.value;return{hasReachedEdge:g,onWheel:a=>{D8(i);let{deltaX:c,deltaY:p}=a;a.shiftKey&&p!==0&&(c=p,p=0);const u=n.value===Wz?c:p;g(u)||(l+=u,!Kv()&&u!==0&&a.preventDefault(),i=v2(()=>{r(l),l=0}))}}},zS=Symbol("sliderContextKey"),Kz=Fe({modelValue:{type:Se([Number,Array]),default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:Nr,inputSize:Nr,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Se(Function),default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Se(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:hs,default:"top"},marks:{type:Se(Object)},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},...oi(["ariaLabel"])}),zd=e=>Ye(e)||Pe(e)&&e.every(Ye),Yz={[nt]:zd,[sr]:zd,[Mt]:zd},Xz=Fe({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:hs,default:"top"}}),qz={[nt]:e=>Ye(e)},Zz=(e,t,n)=>{const r=re(),i=re(!1),l=V(()=>t.value instanceof Function),g=V(()=>l.value&&t.value(e.modelValue)||e.modelValue),o=jc(()=>{n.value&&(i.value=!0)},50),a=jc(()=>{n.value&&(i.value=!1)},50);return{tooltip:r,tooltipVisible:i,formatValue:g,displayTooltip:o,hideTooltip:a}},Jz=(e,t,n)=>{const{disabled:r,min:i,max:l,step:g,showTooltip:o,persistent:a,precision:c,sliderSize:p,formatTooltip:u,emitChange:f,resetSize:s,updateDragging:d}=Ue(zS),{tooltip:v,tooltipVisible:h,formatValue:m,displayTooltip:y,hideTooltip:b}=Zz(e,u,o),_=re(),S=V(()=>`${(e.modelValue-i.value)/(l.value-i.value)*100}%`),x=V(()=>e.vertical?{bottom:S.value}:{left:S.value}),T=()=>{t.hovering=!0,y()},E=()=>{t.hovering=!1,t.dragging||b()},k=G=>{r.value||(G.preventDefault(),O(G),window.addEventListener("mousemove",F),window.addEventListener("touchmove",F),window.addEventListener("mouseup",R),window.addEventListener("touchend",R),window.addEventListener("contextmenu",R),_.value.focus())},D=G=>{r.value||(t.newPosition=Number.parseFloat(S.value)+G/(l.value-i.value)*100,P(t.newPosition),f())},W=()=>{D(-g.value)},I=()=>{D(g.value)},U=()=>{D(-g.value*4)},A=()=>{D(g.value*4)},ee=()=>{r.value||(P(0),f())},de=()=>{r.value||(P(100),f())},z=G=>{const $=dn(G);let M=!0;switch($){case Re.left:case Re.down:W();break;case Re.right:case Re.up:I();break;case Re.home:ee();break;case Re.end:de();break;case Re.pageDown:U();break;case Re.pageUp:A();break;default:M=!1;break}M&&G.preventDefault()},q=G=>{let $,M;return G.type.startsWith("touch")?(M=G.touches[0].clientY,$=G.touches[0].clientX):(M=G.clientY,$=G.clientX),{clientX:$,clientY:M}},O=G=>{t.dragging=!0,t.isClick=!0;const{clientX:$,clientY:M}=q(G);e.vertical?t.startY=M:t.startX=$,t.startPosition=Number.parseFloat(S.value),t.newPosition=t.startPosition},F=G=>{if(t.dragging){t.isClick=!1,y(),s();let $;const{clientX:M,clientY:ne}=q(G);e.vertical?(t.currentY=ne,$=(t.startY-t.currentY)/p.value*100):(t.currentX=M,$=(t.currentX-t.startX)/p.value*100),t.newPosition=t.startPosition+$,P(t.newPosition)}},R=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||P(t.newPosition),f()},0),window.removeEventListener("mousemove",F),window.removeEventListener("touchmove",F),window.removeEventListener("mouseup",R),window.removeEventListener("touchend",R),window.removeEventListener("contextmenu",R))},P=async G=>{if(G===null||Number.isNaN(+G))return;G=Iv(G,0,100);const $=Math.floor((l.value-i.value)/g.value),M=$*g.value/(l.value-i.value)*100,ne=M+(100-M)/2;let X;if(G<M){const te=M/$,Q=Math.round(G/te);X=i.value+Q*g.value}else G<ne?X=i.value+$*g.value:X=l.value;X=Number.parseFloat(X.toFixed(c.value)),X!==e.modelValue&&n(nt,X),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await We(),t.dragging&&y(),v.value.updatePopper()};return ke(()=>t.dragging,G=>{d(G)}),Ft(_,"touchstart",k,{passive:!1}),{disabled:r,button:_,tooltip:v,tooltipVisible:h,showTooltip:o,persistent:a,wrapperStyle:x,formatValue:m,handleMouseEnter:T,handleMouseLeave:E,onButtonDown:k,onKeyDown:z,setPosition:P}},Qz=["tabindex"];var Iy=we({name:"ElSliderButton",__name:"button",props:Xz,emits:qz,setup(e,{expose:t,emit:n}){const r=e,i=n,l=De("slider"),g=mt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),o=V(()=>u.value?f.value:!1),{disabled:a,button:c,tooltip:p,showTooltip:u,persistent:f,tooltipVisible:s,wrapperStyle:d,formatValue:v,handleMouseEnter:h,handleMouseLeave:m,onButtonDown:y,onKeyDown:b,setPosition:_}=Jz(r,g,i),{hovering:S,dragging:x}=Lr(g);return t({onButtonDown:y,onKeyDown:b,setPosition:_,hovering:S,dragging:x}),(T,E)=>(j(),ae("div",{ref_key:"button",ref:c,class:se([w(l).e("button-wrapper"),{hover:w(S),dragging:w(x)}]),style:He(w(d)),tabindex:w(a)?void 0:0,onMouseenter:E[0]||(E[0]=(...k)=>w(h)&&w(h)(...k)),onMouseleave:E[1]||(E[1]=(...k)=>w(m)&&w(m)(...k)),onMousedown:E[2]||(E[2]=(...k)=>w(y)&&w(y)(...k)),onFocus:E[3]||(E[3]=(...k)=>w(h)&&w(h)(...k)),onBlur:E[4]||(E[4]=(...k)=>w(m)&&w(m)(...k)),onKeydown:E[5]||(E[5]=(...k)=>w(b)&&w(b)(...k))},[ue(w(si),{ref_key:"tooltip",ref:p,visible:w(s),placement:T.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":T.tooltipClass,disabled:!w(u),persistent:o.value},{content:fe(()=>[ie("span",null,Ae(w(v)),1)]),default:fe(()=>[ie("div",{class:se([w(l).e("button"),{hover:w(S),dragging:w(x)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,Qz))}});const e$=Fe({mark:{type:Se([String,Object]),default:void 0}});var t$=we({name:"ElSliderMarker",props:e$,setup(e){const t=De("slider"),n=V(()=>je(e.mark)?e.mark:e.mark.label),r=V(()=>je(e.mark)?void 0:e.mark.style);return()=>_t("div",{class:t.e("marks-text"),style:r.value},n.value)}});const n$=(e,t,n)=>{const{formItem:r}=Ni(),i=Ht(),l=re(),g=re(),o={firstButton:l,secondButton:g},a=Kn(),c=V(()=>Math.min(t.firstValue,t.secondValue)),p=V(()=>Math.max(t.firstValue,t.secondValue)),u=V(()=>e.range?`${100*(p.value-c.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),f=V(()=>e.range?`${100*(c.value-e.min)/(e.max-e.min)}%`:"0%"),s=V(()=>e.vertical?{height:e.height}:{}),d=V(()=>e.vertical?{height:u.value,bottom:f.value}:{width:u.value,left:f.value}),v=()=>{if(i.value){const W=i.value.getBoundingClientRect();t.sliderSize=W[e.vertical?"height":"width"]}},h=W=>{const I=e.min+W*(e.max-e.min)/100;if(!e.range)return l;let U;return Math.abs(c.value-I)<Math.abs(p.value-I)?U=t.firstValue<t.secondValue?"firstButton":"secondButton":U=t.firstValue>t.secondValue?"firstButton":"secondButton",o[U]},m=W=>{const I=h(W);return I.value.setPosition(W),I},y=W=>{t.firstValue=W!=null?W:e.min,_(e.range?[c.value,p.value]:W!=null?W:e.min)},b=W=>{t.secondValue=W,e.range&&_([c.value,p.value])},_=W=>{n(nt,W),n(sr,W)},S=async()=>{await We(),n(Mt,e.range?[c.value,p.value]:e.modelValue)},x=W=>{var I,U,A,ee,de,z;if(a.value||t.dragging)return;v();let q=0;if(e.vertical){const O=(A=(U=(I=W.touches)==null?void 0:I.item(0))==null?void 0:U.clientY)!=null?A:W.clientY;q=(i.value.getBoundingClientRect().bottom-O)/t.sliderSize*100}else{const O=(z=(de=(ee=W.touches)==null?void 0:ee.item(0))==null?void 0:de.clientX)!=null?z:W.clientX,F=i.value.getBoundingClientRect().left;q=(O-F)/t.sliderSize*100}if(!(q<0||q>100))return m(q)};return{elFormItem:r,slider:i,firstButton:l,secondButton:g,sliderDisabled:a,minValue:c,maxValue:p,runwayStyle:s,barStyle:d,resetSize:v,setPosition:m,emitChange:S,onSliderWrapperPrevent:W=>{var I,U;(((I=o.firstButton.value)==null?void 0:I.dragging)||((U=o.secondButton.value)==null?void 0:U.dragging))&&W.preventDefault()},onSliderClick:W=>{x(W)&&S()},onSliderDown:async W=>{const I=x(W);I&&(await We(),I.value.onButtonDown(W))},onSliderMarkerDown:W=>{if(a.value||t.dragging)return;m(W)&&S()},setFirstValue:y,setSecondValue:b}},r$=(e,t,n,r)=>({stops:V(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const g=Math.ceil((e.max-e.min)/e.step),o=100*e.step/(e.max-e.min),a=Array.from({length:g-1}).map((c,p)=>(p+1)*o);return e.range?a.filter(c=>c<100*(n.value-e.min)/(e.max-e.min)||c>100*(r.value-e.min)/(e.max-e.min)):a.filter(c=>c>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:g=>e.vertical?{bottom:`${g}%`}:{left:`${g}%`}}),i$=e=>V(()=>e.marks?Object.keys(e.marks).map(Number.parseFloat).sort((n,r)=>n-r).filter(n=>n<=e.max&&n>=e.min).map(n=>({point:n,position:(n-e.min)*100/(e.max-e.min),mark:e.marks[n]})):[]),a$=(e,t,n,r,i,l)=>{const g=c=>{i(nt,c),i(sr,c)},o=()=>e.range?![n.value,r.value].every((c,p)=>c===t.oldValue[p]):e.modelValue!==t.oldValue,a=()=>{var c,p;e.min>e.max&&fn("Slider","min should not be greater than max.");const u=e.modelValue;e.range&&Pe(u)?u[1]<e.min?g([e.min,e.min]):u[0]>e.max?g([e.max,e.max]):u[0]<e.min?g([e.min,u[1]]):u[1]>e.max?g([u[0],e.max]):(t.firstValue=u[0],t.secondValue=u[1],o()&&(e.validateEvent&&((c=l==null?void 0:l.validate)==null||c.call(l,"change").catch(f=>void 0)),t.oldValue=u.slice())):!e.range&&Ye(u)&&!Number.isNaN(u)&&(u<e.min?g(e.min):u>e.max?g(e.max):(t.firstValue=u,o()&&(e.validateEvent&&((p=l==null?void 0:l.validate)==null||p.call(l,"change").catch(f=>void 0)),t.oldValue=u)))};a(),ke(()=>t.dragging,c=>{c||a()}),ke(()=>e.modelValue,(c,p)=>{t.dragging||Pe(c)&&Pe(p)&&c.every((u,f)=>u===p[f])&&t.firstValue===c[0]&&t.secondValue===c[1]||a()},{deep:!0}),ke(()=>[e.min,e.max],()=>{a()})},o$=(e,t,n)=>{const r=re();return et(async()=>{e.range?(Pe(e.modelValue)?(t.firstValue=Math.max(e.min,e.modelValue[0]),t.secondValue=Math.min(e.max,e.modelValue[1])):(t.firstValue=e.min,t.secondValue=e.max),t.oldValue=[t.firstValue,t.secondValue]):(!Ye(e.modelValue)||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),Ft(window,"resize",n),await We(),n()}),{sliderWrapper:r}},s$=["id","role","aria-label","aria-labelledby"],l$={key:1};var u$=we({name:"ElSlider",__name:"slider",props:Kz,emits:Yz,setup(e,{expose:t,emit:n}){const r=e,i=n,l=De("slider"),{t:g}=$t(),o=mt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:a,slider:c,firstButton:p,secondButton:u,sliderDisabled:f,minValue:s,maxValue:d,runwayStyle:v,barStyle:h,resetSize:m,emitChange:y,onSliderWrapperPrevent:b,onSliderClick:_,onSliderDown:S,onSliderMarkerDown:x,setFirstValue:T,setSecondValue:E}=n$(r,o,i),{stops:k,getStopStyle:D}=r$(r,o,s,d),{inputId:W,isLabeledByFormItem:I}=vs(r,{formItemContext:a}),U=Vr(),A=V(()=>r.inputSize||U.value),ee=V(()=>r.ariaLabel||g("el.slider.defaultLabel",{min:r.min,max:r.max})),de=V(()=>r.range?r.rangeStartLabel||g("el.slider.defaultRangeStartLabel"):ee.value),z=V(()=>r.formatValueText?r.formatValueText($.value):`${$.value}`),q=V(()=>r.rangeEndLabel||g("el.slider.defaultRangeEndLabel")),O=V(()=>r.formatValueText?r.formatValueText(M.value):`${M.value}`),F=V(()=>[l.b(),l.m(U.value),l.is("vertical",r.vertical),{[l.m("with-input")]:r.showInput}]),R=i$(r);a$(r,o,s,d,i,a);const P=V(()=>{const te=[r.min,r.max,r.step].map(Q=>{const J=`${Q}`.split(".")[1];return J?J.length:0});return Math.max.apply(null,te)}),{sliderWrapper:G}=o$(r,o,m),{firstValue:$,secondValue:M,sliderSize:ne}=Lr(o),X=te=>{o.dragging=te};return Ft(G,"touchstart",b,{passive:!1}),Ft(G,"touchmove",b,{passive:!1}),wt(zS,{...Lr(r),sliderSize:ne,disabled:f,precision:P,emitChange:y,resetSize:m,updateDragging:X}),t({onSliderClick:_}),(te,Q)=>{var J,oe;return j(),ae("div",{id:te.range?w(W):void 0,ref_key:"sliderWrapper",ref:G,class:se(F.value),role:te.range?"group":void 0,"aria-label":te.range&&!w(I)?ee.value:void 0,"aria-labelledby":te.range&&w(I)?(J=w(a))==null?void 0:J.labelId:void 0},[ie("div",{ref_key:"slider",ref:c,class:se([w(l).e("runway"),{"show-input":te.showInput&&!te.range},w(l).is("disabled",w(f))]),style:He(w(v)),onMousedown:Q[0]||(Q[0]=(...pe)=>w(S)&&w(S)(...pe)),onTouchstartPassive:Q[1]||(Q[1]=(...pe)=>w(S)&&w(S)(...pe))},[ie("div",{class:se(w(l).e("bar")),style:He(w(h))},null,6),ue(Iy,{id:te.range?void 0:w(W),ref_key:"firstButton",ref:p,"model-value":w($),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":te.range||!w(I)?de.value:void 0,"aria-labelledby":!te.range&&w(I)?(oe=w(a))==null?void 0:oe.labelId:void 0,"aria-valuemin":te.min,"aria-valuemax":te.range?w(M):te.max,"aria-valuenow":w($),"aria-valuetext":z.value,"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":w(f),"onUpdate:modelValue":w(T)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),te.range?(j(),me(Iy,{key:0,ref_key:"secondButton",ref:u,"model-value":w(M),vertical:te.vertical,"tooltip-class":te.tooltipClass,placement:te.placement,role:"slider","aria-label":q.value,"aria-valuemin":w($),"aria-valuemax":te.max,"aria-valuenow":w(M),"aria-valuetext":O.value,"aria-orientation":te.vertical?"vertical":"horizontal","aria-disabled":w(f),"onUpdate:modelValue":w(E)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):ye("v-if",!0),te.showStops?(j(),ae("div",l$,[(j(!0),ae(Ve,null,Bt(w(k),(pe,N)=>(j(),ae("div",{key:N,class:se(w(l).e("stop")),style:He(w(D)(pe))},null,6))),128))])):ye("v-if",!0),w(R).length>0?(j(),ae(Ve,{key:2},[ie("div",null,[(j(!0),ae(Ve,null,Bt(w(R),(pe,N)=>(j(),ae("div",{key:N,style:He(w(D)(pe.position)),class:se([w(l).e("stop"),w(l).e("marks-stop")])},null,6))),128))]),ie("div",{class:se(w(l).e("marks"))},[(j(!0),ae(Ve,null,Bt(w(R),(pe,N)=>(j(),me(w(t$),{key:N,mark:pe.mark,style:He(w(D)(pe.position)),onMousedown:Qe(C=>w(x)(pe.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):ye("v-if",!0)],38),te.showInput&&!te.range?(j(),me(w(ip),{key:0,ref:"input","model-value":w($),class:se(w(l).e("input")),step:te.step,disabled:w(f),controls:te.showInputControls,min:te.min,max:te.max,precision:P.value,size:A.value,"onUpdate:modelValue":w(T),onChange:w(y)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):ye("v-if",!0)],10,s$)}}});const My=gt(u$),$S=e=>["",...co].includes(e),c$=Fe({modelValue:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:void 0},loading:Boolean,size:{type:String,validator:$S},width:{type:[String,Number],default:""},inlinePrompt:Boolean,inactiveActionIcon:{type:Nt},activeActionIcon:{type:Nt},activeIcon:{type:Nt},inactiveIcon:{type:Nt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[Boolean,String,Number],default:!0},inactiveValue:{type:[Boolean,String,Number],default:!1},name:{type:String,default:""},validateEvent:{type:Boolean,default:!0},beforeChange:{type:Se(Function)},id:String,tabindex:{type:[String,Number]},...oi(["ariaLabel"])}),f$={[nt]:e=>An(e)||je(e)||Ye(e),[Mt]:e=>An(e)||je(e)||Ye(e),[sr]:e=>An(e)||je(e)||Ye(e)},d$=["id","aria-checked","aria-disabled","aria-label","name","true-value","false-value","disabled","tabindex"],h$=["aria-hidden"],p$={key:1},v$={key:1},g$=["aria-hidden"],Ry="ElSwitch";var m$=we({name:Ry,__name:"switch",props:c$,emits:f$,setup(e,{expose:t,emit:n}){const r=e,i=n,{formItem:l}=Ni(),g=Vr(),o=De("switch"),{inputId:a}=vs(r,{formItemContext:l}),c=Kn(V(()=>{if(r.loading)return!0})),p=re(r.modelValue!==!1),u=Ht(),f=V(()=>[o.b(),o.m(g.value),o.is("disabled",c.value),o.is("checked",m.value)]),s=V(()=>[o.e("label"),o.em("label","left"),o.is("active",!m.value)]),d=V(()=>[o.e("label"),o.em("label","right"),o.is("active",m.value)]),v=V(()=>({width:bn(r.width)}));ke(()=>r.modelValue,()=>{p.value=!0});const h=V(()=>p.value?r.modelValue:!1),m=V(()=>h.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(h.value)||(i(nt,r.inactiveValue),i(Mt,r.inactiveValue),i(sr,r.inactiveValue)),ke(m,S=>{var x;u.value.checked=S,r.validateEvent&&((x=l==null?void 0:l.validate)==null||x.call(l,"change").catch(T=>void 0))});const y=()=>{const S=m.value?r.inactiveValue:r.activeValue;i(nt,S),i(Mt,S),i(sr,S),We(()=>{u.value.checked=m.value})},b=()=>{if(c.value)return;const{beforeChange:S}=r;if(!S){y();return}const x=S();[Wo(x),An(x)].includes(!0)||fn(Ry,"beforeChange must return type `Promise<boolean>` or `boolean`"),Wo(x)?x.then(E=>{E&&y()}).catch(E=>{}):x&&y()},_=()=>{var S,x;(x=(S=u.value)==null?void 0:S.focus)==null||x.call(S)};return et(()=>{u.value.checked=m.value}),t({focus:_,checked:m}),(S,x)=>(j(),ae("div",{class:se(f.value),onClick:Qe(b,["prevent"])},[ie("input",{id:w(a),ref_key:"input",ref:u,class:se(w(o).e("input")),type:"checkbox",role:"switch","aria-checked":m.value,"aria-disabled":w(c),"aria-label":e.ariaLabel,name:e.name,"true-value":e.activeValue,"false-value":e.inactiveValue,disabled:w(c),tabindex:e.tabindex,onChange:y,onKeydown:nr(b,["enter"])},null,42,d$),!e.inlinePrompt&&(e.inactiveIcon||e.inactiveText||S.$slots.inactive)?(j(),ae("span",{key:0,class:se(s.value)},[xe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(j(),me(w(Ne),{key:0},{default:fe(()=>[(j(),me(st(e.inactiveIcon)))]),_:1})):ye("v-if",!0),!e.inactiveIcon&&e.inactiveText?(j(),ae("span",{key:1,"aria-hidden":m.value},Ae(e.inactiveText),9,h$)):ye("v-if",!0)])],2)):ye("v-if",!0),ie("span",{class:se(w(o).e("core")),style:He(v.value)},[e.inlinePrompt?(j(),ae("div",{key:0,class:se(w(o).e("inner"))},[m.value?(j(),ae("div",{key:1,class:se(w(o).e("inner-wrapper"))},[xe(S.$slots,"active",{},()=>[e.activeIcon?(j(),me(w(Ne),{key:0},{default:fe(()=>[(j(),me(st(e.activeIcon)))]),_:1})):ye("v-if",!0),!e.activeIcon&&e.activeText?(j(),ae("span",v$,Ae(e.activeText),1)):ye("v-if",!0)])],2)):(j(),ae("div",{key:0,class:se(w(o).e("inner-wrapper"))},[xe(S.$slots,"inactive",{},()=>[e.inactiveIcon?(j(),me(w(Ne),{key:0},{default:fe(()=>[(j(),me(st(e.inactiveIcon)))]),_:1})):ye("v-if",!0),!e.inactiveIcon&&e.inactiveText?(j(),ae("span",p$,Ae(e.inactiveText),1)):ye("v-if",!0)])],2))],2)):ye("v-if",!0),ie("div",{class:se(w(o).e("action"))},[e.loading?(j(),me(w(Ne),{key:0,class:se(w(o).is("loading"))},{default:fe(()=>[ue(w(xl))]),_:1},8,["class"])):m.value?xe(S.$slots,"active-action",{key:1},()=>[e.activeActionIcon?(j(),me(w(Ne),{key:0},{default:fe(()=>[(j(),me(st(e.activeActionIcon)))]),_:1})):ye("v-if",!0)]):m.value?ye("v-if",!0):xe(S.$slots,"inactive-action",{key:2},()=>[e.inactiveActionIcon?(j(),me(w(Ne),{key:0},{default:fe(()=>[(j(),me(st(e.inactiveActionIcon)))]),_:1})):ye("v-if",!0)])],2)],6),!e.inlinePrompt&&(e.activeIcon||e.activeText||S.$slots.active)?(j(),ae("span",{key:1,class:se(d.value)},[xe(S.$slots,"active",{},()=>[e.activeIcon?(j(),me(w(Ne),{key:0},{default:fe(()=>[(j(),me(st(e.activeIcon)))]),_:1})):ye("v-if",!0),!e.activeIcon&&e.activeText?(j(),ae("span",{key:1,"aria-hidden":!m.value},Ae(e.activeText),9,g$)):ye("v-if",!0)])],2)):ye("v-if",!0)],2))}});const Dy=gt(m$),Uf=Symbol("tabsRootContextKey"),y$=Fe({tabs:{type:Se(Array),default:()=>Jt([])},tabRefs:{type:Se(Object),default:()=>Jt({})}}),Ly="ElTabBar";var b$=we({name:Ly,__name:"tab-bar",props:y$,setup(e,{expose:t}){const n=e,r=Ue(Uf);r||fn(Ly,"<el-tabs><el-tab-bar /></el-tabs>");const i=De("tabs"),l=re(),g=re(),o=V(()=>{var s;return gn(r.props.defaultValue)||Boolean((s=g.value)==null?void 0:s.transform)}),a=()=>{let s=0,d=0;const v=["top","bottom"].includes(r.props.tabPosition)?"width":"height",h=v==="width"?"x":"y",m=h==="x"?"left":"top";return n.tabs.every(y=>{if(gn(y.paneName))return!1;const b=n.tabRefs[y.paneName];if(!b)return!1;if(!y.active)return!0;s=b[`offset${Qi(m)}`],d=b[`client${Qi(v)}`];const _=window.getComputedStyle(b);return v==="width"&&(d-=Number.parseFloat(_.paddingLeft)+Number.parseFloat(_.paddingRight),s+=Number.parseFloat(_.paddingLeft)),!1}),{[v]:`${d}px`,transform:`translate${Qi(h)}(${s}px)`}},c=()=>g.value=a(),p=[],u=()=>{p.forEach(s=>s.stop()),p.length=0,Object.values(n.tabRefs).forEach(s=>{p.push(un(s,c))})};ke(()=>n.tabs,async()=>{await We(),c(),u()},{immediate:!0});const f=un(l,()=>c());return kt(()=>{p.forEach(s=>s.stop()),p.length=0,f.stop()}),t({ref:l,update:c}),(s,d)=>o.value?(j(),ae("div",{key:0,ref_key:"barRef",ref:l,class:se([w(i).e("active-bar"),w(i).is(w(r).props.tabPosition)]),style:He(g.value)},null,6)):ye("v-if",!0)}});const _$=Fe({panes:{type:Se(Array),default:()=>Jt([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean,tabindex:{type:[String,Number],default:void 0}}),w$={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},Fy="ElTabNav",S$=we({name:Fy,props:_$,emits:w$,setup(e,{expose:t,emit:n}){const r=Ue(Uf);r||fn(Fy,"<el-tabs><tab-nav /></el-tabs>");const i=De("tabs"),l=w8(),g=x8(),o=re(),a=re(),c=re(),p=re({}),u=re(),f=re(!1),s=re(0),d=re(!1),v=re(!0),h=Ht(),m=V(()=>["top","bottom"].includes(r.props.tabPosition)),y=V(()=>m.value?"width":"height"),b=V(()=>({transform:`translate${y.value==="width"?"X":"Y"}(-${s.value}px)`})),{width:_,height:S}=R0(o),{width:x,height:T}=R0(a,{width:0,height:0},{box:"border-box"}),E=V(()=>m.value?_.value:S.value),k=V(()=>m.value?x.value:T.value),{onWheel:D}=Gz({atStartEdge:V(()=>s.value<=0),atEndEdge:V(()=>k.value-s.value<=E.value),layout:V(()=>m.value?"horizontal":"vertical")},F=>{s.value=Iv(s.value+F,0,k.value-E.value)}),W=()=>{if(!o.value)return;const F=o.value[`offset${Qi(y.value)}`],R=s.value;if(!R)return;const P=R>F?R-F:0;s.value=P},I=()=>{if(!o.value||!a.value)return;const F=a.value[`offset${Qi(y.value)}`],R=o.value[`offset${Qi(y.value)}`],P=s.value;if(F-P<=R)return;const G=F-P>R*2?P+R:F-R;s.value=G},U=async()=>{const F=a.value;if(!f.value||!c.value||!o.value||!F)return;await We();const R=p.value[e.currentName];if(!R)return;const P=o.value,G=R.getBoundingClientRect(),$=P.getBoundingClientRect(),M=m.value?F.offsetWidth-$.width:F.offsetHeight-$.height,ne=s.value;let X=ne;m.value?(G.left<$.left&&(X=ne-($.left-G.left)),G.right>$.right&&(X=ne+G.right-$.right)):(G.top<$.top&&(X=ne-($.top-G.top)),G.bottom>$.bottom&&(X=ne+(G.bottom-$.bottom))),X=Math.max(X,0),s.value=Math.min(X,M)},A=()=>{var F;if(!a.value||!o.value)return;e.stretch&&((F=u.value)==null||F.update());const R=a.value[`offset${Qi(y.value)}`],P=o.value[`offset${Qi(y.value)}`],G=s.value;P<R?(f.value=f.value||{},f.value.prev=G,f.value.next=G+P<R,R-G<P&&(s.value=R-P)):(f.value=!1,G>0&&(s.value=0))},ee=F=>{const R=dn(F);let P=0;switch(R){case Re.left:case Re.up:P=-1;break;case Re.right:case Re.down:P=1;break;default:return}const G=Array.from(F.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)"));let M=G.indexOf(F.target)+P;M<0?M=G.length-1:M>=G.length&&(M=0),G[M].focus({preventScroll:!0}),G[M].click(),de()},de=()=>{v.value&&(d.value=!0)},z=()=>d.value=!1,q=(F,R)=>{p.value[R]=F},O=async()=>{await We();const F=p.value[e.currentName];F==null||F.focus({preventScroll:!0})};return ke(l,F=>{F==="hidden"?v.value=!1:F==="visible"&&setTimeout(()=>v.value=!0,50)}),ke(g,F=>{F?setTimeout(()=>v.value=!0,50):v.value=!1}),un(c,()=>{v2(A)}),et(()=>setTimeout(()=>U(),0)),as(()=>A()),t({scrollToActiveTab:U,removeFocus:z,focusActiveTab:O,tabListRef:a,tabBarRef:u,scheduleRender:()=>ac(h)}),()=>{const F=f.value?[ue("span",{class:[i.e("nav-prev"),i.is("disabled",!f.value.prev)],onClick:W},[ue(Ne,null,{default:()=>[ue(kf,null,null)]})]),ue("span",{class:[i.e("nav-next"),i.is("disabled",!f.value.next)],onClick:I},[ue(Ne,null,{default:()=>[ue(us,null,null)]})])]:null,R=e.panes.map((P,G)=>{var $,M,ne,X,te;const Q=P.uid,J=P.props.disabled,oe=(M=($=P.props.name)!=null?$:P.index)!=null?M:`${G}`,pe=!J&&(P.isClosable||P.props.closable!==!1&&e.editable);P.index=`${G}`;const N=pe?ue(Ne,{class:"is-icon-close",onClick:K=>n("tabRemove",P,K)},{default:()=>[ue(ii,null,null)]}):null,C=((X=(ne=P.slots).label)==null?void 0:X.call(ne))||P.props.label,H=!J&&P.active?(te=e.tabindex)!=null?te:r.props.tabindex:-1;return ue("div",{ref:K=>q(K,oe),class:[i.e("item"),i.is(r.props.tabPosition),i.is("active",P.active),i.is("disabled",J),i.is("closable",pe),i.is("focus",d.value)],id:`tab-${oe}`,key:`tab-${Q}`,"aria-controls":`pane-${oe}`,role:"tab","aria-selected":P.active,tabindex:H,onFocus:()=>de(),onBlur:()=>z(),onClick:K=>{z(),n("tabClick",P,oe,K)},onKeydown:K=>{const L=dn(K);pe&&(L===Re.delete||L===Re.backspace)&&n("tabRemove",P,K)}},[C,N])});return h.value,ue("div",{ref:c,class:[i.e("nav-wrap"),i.is("scrollable",!!f.value),i.is(r.props.tabPosition)]},[F,ue("div",{class:i.e("nav-scroll"),ref:o},[e.panes.length>0?ue("div",{class:[i.e("nav"),i.is(r.props.tabPosition),i.is("stretch",e.stretch&&["top","bottom"].includes(r.props.tabPosition))],ref:a,style:b.value,role:"tablist",onKeydown:ee,onWheel:D},[e.type?null:ue(b$,{ref:u,tabs:[...e.panes],tabRefs:p.value},null),R]):null])])}}}),C$=Fe({type:{type:String,values:["card","border-card",""],default:""},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},defaultValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Se(Function),default:()=>!0},stretch:Boolean,tabindex:{type:[String,Number],default:0}}),$d=e=>je(e)||Ye(e),x$={[nt]:e=>$d(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>$d(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>$d(e),tabAdd:()=>!0},T$=we({name:"ElTabs",props:C$,emits:x$,setup(e,{emit:t,slots:n,expose:r}){var i;const l=De("tabs"),g=V(()=>["left","right"].includes(e.tabPosition)),{children:o,addChild:a,removeChild:c,ChildrenSorter:p}=aS(it(),"ElTabPane"),u=re(),f=re((i=gn(e.modelValue)?e.defaultValue:e.modelValue)!=null?i:"0"),s=async(b,_=!1)=>{var S,x,T,E;if(!(f.value===b||gn(b)))try{let k;if(e.beforeLeave){const D=e.beforeLeave(b,f.value);k=D instanceof Promise?await D:D}else k=!0;if(k!==!1){const D=(S=o.value.find(W=>W.paneName===f.value))==null?void 0:S.isFocusInsidePane();f.value=b,_&&(t(nt,b),t("tabChange",b)),(T=(x=u.value)==null?void 0:x.removeFocus)==null||T.call(x),D&&((E=u.value)==null||E.focusActiveTab())}}catch{}},d=(b,_,S)=>{b.props.disabled||(t("tabClick",b,S),s(_,!0))},v=(b,_)=>{b.props.disabled||gn(b.props.name)||(_.stopPropagation(),t("edit",b.props.name,"remove"),t("tabRemove",b.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")},m=b=>{const _=dn(b);[Re.enter,Re.numpadEnter].includes(_)&&h()},y=b=>{const _=b.el.firstChild,S=["bottom","right"].includes(e.tabPosition)?b.children[0].el:b.children[1].el;_!==S&&_.before(S)};return ke(()=>e.modelValue,b=>s(b)),ke(f,async()=>{var b;await We(),(b=u.value)==null||b.scrollToActiveTab()}),wt(Uf,{props:e,currentName:f,registerPane:a,unregisterPane:c,nav$:u}),r({currentName:f,get tabNavRef(){return qw(u.value,["scheduleRender"])}}),()=>{const b=n["add-icon"],_=e.editable||e.addable?ue("div",{class:[l.e("new-tab"),g.value&&l.e("new-tab-vertical")],tabindex:e.tabindex,onClick:h,onKeydown:m},[b?xe(n,"add-icon"):ue(Ne,{class:l.is("icon-plus")},{default:()=>[ue(gv,null,null)]})]):null,S=()=>ue(S$,{ref:u,currentName:f.value,editable:e.editable,type:e.type,panes:o.value,stretch:e.stretch,onTabClick:d,onTabRemove:v},null),x=ue("div",{class:[l.e("header"),g.value&&l.e("header-vertical"),l.is(e.tabPosition)]},[ue(p,null,{default:S,$stable:!0}),_]),T=ue("div",{class:l.e("content")},[xe(n,"default")]);return ue("div",{class:[l.b(),l.m(e.tabPosition),{[l.m("card")]:e.type==="card",[l.m("border-card")]:e.type==="border-card"}],onVnodeMounted:y,onVnodeUpdated:y},[T,x])}}}),E$=Fe({label:{type:String,default:""},name:{type:[String,Number]},closable:{type:Boolean,default:void 0},disabled:Boolean,lazy:Boolean}),k$=["id","aria-hidden","aria-labelledby"],By="ElTabPane";var jS=we({name:By,__name:"tab-pane",props:E$,setup(e){const t=e,n=it(),r=ao(),i=Ue(Uf);i||fn(By,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const l=De("tab-pane"),g=re(),o=re(),a=V(()=>{var v;return(v=t.closable)!=null?v:i.props.closable}),c=V(()=>{var v;return i.currentName.value===((v=t.name)!=null?v:o.value)}),p=re(c.value),u=V(()=>{var v;return(v=t.name)!=null?v:o.value}),f=V(()=>!t.lazy||p.value||c.value),s=()=>{var v;return(v=g.value)==null?void 0:v.contains(document.activeElement)};ke(c,v=>{v&&(p.value=!0)});const d=mt({uid:n.uid,getVnode:()=>n.vnode,slots:r,props:t,paneName:u,active:c,index:o,isClosable:a,isFocusInsidePane:s});return i.registerPane(d),kt(()=>{i.unregisterPane(d)}),av(()=>{var v;r.label&&((v=i.nav$.value)==null||v.scheduleRender())}),(v,h)=>f.value?Ct((j(),ae("div",{key:0,id:`pane-${u.value}`,ref_key:"paneRef",ref:g,class:se(w(l).b()),role:"tabpanel","aria-hidden":!c.value,"aria-labelledby":`tab-${u.value}`},[xe(v.$slots,"default")],10,k$)),[[Yt,c.value]]):ye("v-if",!0)}});const O$=gt(T$,{TabPane:jS}),jd=Sr(jS);var A$=Object.defineProperty,P$=(e,t,n)=>t in e?A$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vu=(e,t,n)=>P$(e,typeof t!="symbol"?t+"":t,n);const I$="ElUpload";class M$ extends Error{constructor(t,n,r,i){super(t),Vu(this,"name","UploadAjaxError"),Vu(this,"status"),Vu(this,"method"),Vu(this,"url"),this.status=n,this.method=r,this.url=i}}function Ny(e,t,n){let r;return n.response?r=`${n.response.error||n.response}`:n.responseText?r=`${n.responseText}`:r=`fail to ${t.method} ${e} ${n.status}`,new M$(r,n.status,t.method,e)}function R$(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const D$=e=>{typeof XMLHttpRequest>"u"&&fn(I$,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const g=l;g.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(g)});const r=new FormData;if(e.data)for(const[l,g]of Object.entries(e.data))Pe(g)?g.length===2&&g[0]instanceof Blob&&je(g[1])?r.append(l,g[0],g[1]):g.forEach(o=>{r.append(l,o)}):r.append(l,g);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(Ny(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(Ny(n,e,t));e.onSuccess(R$(t))}),t.open(e.method,n,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const i=e.headers||{};if(i instanceof Headers)i.forEach((l,g)=>t.setRequestHeader(g,l));else for(const[l,g]of Object.entries(i))Qt(g)||t.setRequestHeader(l,String(g));return t.send(r),t},VS=["text","picture","picture-card"];let L$=1;const ap=()=>Date.now()+L$++,US=Fe({action:{type:String,default:"#"},headers:{type:Se(Object)},method:{type:String,default:"post"},data:{type:Se([Object,Function,Promise]),default:()=>Jt({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:Se(Array),default:()=>Jt([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:VS,default:"text"},httpRequest:{type:Se(Function),default:D$},disabled:{type:Boolean,default:void 0},limit:Number,directory:Boolean}),F$=Fe({...US,beforeUpload:{type:Se(Function),default:rt},beforeRemove:{type:Se(Function)},onRemove:{type:Se(Function),default:rt},onChange:{type:Se(Function),default:rt},onPreview:{type:Se(Function),default:rt},onSuccess:{type:Se(Function),default:rt},onProgress:{type:Se(Function),default:rt},onError:{type:Se(Function),default:rt},onExceed:{type:Se(Function),default:rt},crossorigin:{type:Se(String)}}),HS=Symbol("uploadContextKey"),B$=Fe({files:{type:Se(Array),default:()=>Jt([])},disabled:{type:Boolean,default:void 0},handlePreview:{type:Se(Function),default:rt},listType:{type:String,values:VS,default:"text"},crossorigin:{type:Se(String)}}),N$={remove:e=>!!e},z$=["tabindex","aria-disabled","onKeydown"],$$=["src","crossorigin"],j$=["onClick"],V$=["title"],U$=["onClick"],H$=["onClick"];var zy=we({name:"ElUploadList",__name:"upload-list",props:B$,emits:N$,setup(e,{emit:t}){const n=e,r=t,{t:i}=$t(),l=De("upload"),g=De("icon"),o=De("list"),a=Kn(),c=re(!1),p=V(()=>[l.b("list"),l.bm("list",n.listType),l.is("disabled",a.value)]),u=f=>{r("remove",f)};return(f,s)=>(j(),me(U_,{tag:"ul",class:se(p.value),name:w(o).b()},{default:fe(()=>[(j(!0),ae(Ve,null,Bt(e.files,(d,v)=>(j(),ae("li",{key:d.uid||d.name,class:se([w(l).be("list","item"),w(l).is(d.status),{focusing:c.value}]),tabindex:w(a)?void 0:0,"aria-disabled":w(a),role:"button",onKeydown:nr(h=>!w(a)&&u(d),["delete"]),onFocus:s[0]||(s[0]=h=>c.value=!0),onBlur:s[1]||(s[1]=h=>c.value=!1),onClick:s[2]||(s[2]=h=>c.value=!1)},[xe(f.$slots,"default",{file:d,index:v},()=>[e.listType==="picture"||d.status!=="uploading"&&e.listType==="picture-card"?(j(),ae("img",{key:0,class:se(w(l).be("list","item-thumbnail")),src:d.url,crossorigin:e.crossorigin,alt:""},null,10,$$)):ye("v-if",!0),d.status==="uploading"||e.listType!=="picture-card"?(j(),ae("div",{key:1,class:se(w(l).be("list","item-info"))},[ie("a",{class:se(w(l).be("list","item-name")),onClick:Qe(h=>e.handlePreview(d),["prevent"])},[ue(w(Ne),{class:se(w(g).m("document"))},{default:fe(()=>[ue(w(iA))]),_:1},8,["class"]),ie("span",{class:se(w(l).be("list","item-file-name")),title:d.name},Ae(d.name),11,V$)],10,j$),d.status==="uploading"?(j(),me(w(NS),{key:0,type:e.listType==="picture-card"?"circle":"line","stroke-width":e.listType==="picture-card"?6:2,percentage:Number(d.percentage),style:He(e.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ye("v-if",!0)],2)):ye("v-if",!0),ie("label",{class:se(w(l).be("list","item-status-label"))},[e.listType==="text"?(j(),me(w(Ne),{key:0,class:se([w(g).m("upload-success"),w(g).m("circle-check")])},{default:fe(()=>[ue(w(nu))]),_:1},8,["class"])):["picture-card","picture"].includes(e.listType)?(j(),me(w(Ne),{key:1,class:se([w(g).m("upload-success"),w(g).m("check")])},{default:fe(()=>[ue(w(cw))]),_:1},8,["class"])):ye("v-if",!0)],2),w(a)?ye("v-if",!0):(j(),me(w(Ne),{key:2,class:se(w(g).m("close")),"aria-label":w(i)("el.upload.delete"),role:"button",tabindex:"0",onClick:h=>u(d),onKeydown:nr(Qe(h=>u(d),["prevent"]),["enter","space"])},{default:fe(()=>[ue(w(ii))]),_:1},8,["class","aria-label","onClick","onKeydown"])),w(a)?ye("v-if",!0):(j(),ae("i",{key:3,class:se(w(g).m("close-tip"))},Ae(w(i)("el.upload.deleteTip")),3)),e.listType==="picture-card"?(j(),ae("span",{key:4,class:se(w(l).be("list","item-actions"))},[ie("span",{class:se(w(l).be("list","item-preview")),onClick:h=>e.handlePreview(d)},[ue(w(Ne),{class:se(w(g).m("zoom-in"))},{default:fe(()=>[ue(w(yw))]),_:1},8,["class"])],10,U$),w(a)?ye("v-if",!0):(j(),ae("span",{key:0,class:se(w(l).be("list","item-delete")),onClick:h=>u(d)},[ue(w(Ne),{class:se(w(g).m("delete"))},{default:fe(()=>[ue(w(Of))]),_:1},8,["class"])],10,H$))],2)):ye("v-if",!0)])],42,z$))),128)),xe(f.$slots,"append")]),_:3},8,["class","name"]))}});const W$=Fe({...US,beforeUpload:{type:Se(Function),default:rt},onRemove:{type:Se(Function),default:rt},onStart:{type:Se(Function),default:rt},onSuccess:{type:Se(Function),default:rt},onProgress:{type:Se(Function),default:rt},onError:{type:Se(Function),default:rt},onExceed:{type:Se(Function),default:rt}}),G$=Fe({disabled:{type:Boolean,default:void 0},directory:Boolean}),K$={file:e=>Pe(e)},$y="ElUploadDrag";var Y$=we({name:$y,__name:"upload-dragger",props:G$,emits:K$,setup(e,{emit:t}){const n=e,r=t;Ue(HS)||fn($y,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=De("upload"),g=re(!1),o=Kn(),a=s=>new Promise((d,v)=>s.file(d,v)),c=async s=>{try{if(s.isFile){const d=await a(s);return d.isDirectory=!1,[d]}if(s.isDirectory){const d=s.createReader(),v=()=>new Promise((_,S)=>d.readEntries(_,S)),h=[];let m=await v();for(;m.length>0;)h.push(...m),m=await v();const y=h.map(_=>c(_).catch(()=>[])),b=await Promise.all(y);return Lh(b)}}catch{return[]}return[]},p=async s=>{if(o.value)return;g.value=!1,s.stopPropagation();const d=Array.from(s.dataTransfer.files),v=s.dataTransfer.items||[];if(n.directory){const h=Array.from(v).map(y=>{var b;return(b=y==null?void 0:y.webkitGetAsEntry)==null?void 0:b.call(y)}).filter(y=>y),m=await Promise.all(h.map(c));r("file",Lh(m));return}d.forEach((h,m)=>{var y;const b=v[m],_=(y=b==null?void 0:b.webkitGetAsEntry)==null?void 0:y.call(b);_&&(h.isDirectory=_.isDirectory)}),r("file",d)},u=()=>{o.value||(g.value=!0)},f=s=>{s.currentTarget.contains(s.relatedTarget)||(g.value=!1)};return(s,d)=>(j(),ae("div",{class:se([w(l).b("dragger"),w(l).is("dragover",g.value)]),onDrop:Qe(p,["prevent"]),onDragover:Qe(u,["prevent"]),onDragleave:Qe(f,["prevent"])},[xe(s.$slots,"default")],34))}});const X$=["tabindex","aria-disabled","onKeydown"],q$=["name","disabled","multiple","accept","webkitdirectory"];var jy=we({name:"ElUploadContent",inheritAttrs:!1,__name:"upload-content",props:W$,setup(e,{expose:t}){const n=e,r=De("upload"),i=Kn(),l=Ht({}),g=Ht(),o=v=>{if(v.length===0)return;const{autoUpload:h,limit:m,fileList:y,multiple:b,onStart:_,onExceed:S}=n;if(m&&y.length+v.length>m){S(v,y);return}b||(v=v.slice(0,1));for(const x of v){const T=x;T.uid=ap(),_(T),h&&a(T)}},a=async v=>{if(g.value.value="",!n.beforeUpload)return p(v);let h,m={};try{const b=n.data,_=n.beforeUpload(v);m=hl(n.data)?ja(n.data):n.data,h=await _,hl(n.data)&&kr(b,m)&&(m=ja(n.data))}catch{h=!1}if(h===!1){n.onRemove(v);return}let y=v;h instanceof Blob&&(h instanceof File?y=h:y=new File([h],v.name,{type:v.type})),p(Object.assign(y,{uid:v.uid}),m)},c=async(v,h)=>Be(v)?v(h):v,p=async(v,h)=>{const{headers:m,data:y,method:b,withCredentials:_,name:S,action:x,onProgress:T,onSuccess:E,onError:k,httpRequest:D}=n;try{h=await c(h!=null?h:y,v)}catch{n.onRemove(v);return}const{uid:W}=v,I={headers:m||{},withCredentials:_,file:v,data:h,method:b,filename:S,action:x,onProgress:A=>{T(A,v)},onSuccess:A=>{E(A,v),delete l.value[W]},onError:A=>{k(A,v),delete l.value[W]}},U=D(I);l.value[W]=U,U instanceof Promise&&U.then(I.onSuccess,I.onError)},u=v=>{const h=v.target.files;!h||o(Array.from(h))},f=()=>{i.value||(g.value.value="",g.value.click())},s=()=>{f()};return t({abort:v=>{A8(l.value).filter(v?([m])=>String(v.uid)===m:()=>!0).forEach(([m,y])=>{y instanceof XMLHttpRequest&&y.abort(),delete l.value[m]})},upload:a}),(v,h)=>(j(),ae("div",{class:se([w(r).b(),w(r).m(e.listType),w(r).is("drag",e.drag),w(r).is("disabled",w(i))]),tabindex:w(i)?void 0:0,"aria-disabled":w(i),role:"button",onClick:f,onKeydown:nr(Qe(s,["self"]),["enter","space"])},[e.drag?(j(),me(Y$,{key:0,disabled:w(i),directory:e.directory,onFile:o},{default:fe(()=>[xe(v.$slots,"default")]),_:3},8,["disabled","directory"])):xe(v.$slots,"default",{key:1}),ie("input",{ref_key:"inputRef",ref:g,class:se(w(r).e("input")),name:e.name,disabled:w(i),multiple:e.multiple,accept:e.accept,webkitdirectory:e.directory||void 0,type:"file",onChange:u,onClick:h[0]||(h[0]=Qe(()=>{},["stop"]))},null,42,q$)],42,X$))}});const Vy="ElUpload",Uy=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},Z$=(e,t)=>{const n=C8(e,"fileList",void 0,{passive:!0}),r=d=>n.value.find(v=>v.uid===d.uid);function i(d){var v;(v=t.value)==null||v.abort(d)}function l(d=["ready","uploading","success","fail"]){n.value=n.value.filter(v=>!d.includes(v.status))}function g(d){n.value=n.value.filter(v=>v.uid!==d.uid)}const o=d=>{We(()=>e.onChange(d,n.value))},a=(d,v)=>{const h=r(v);!h||(console.error(d),h.status="fail",g(h),e.onError(d,h,n.value),o(h))},c=(d,v)=>{const h=r(v);!h||(e.onProgress(d,h,n.value),h.status="uploading",h.percentage=Math.round(d.percent))},p=(d,v)=>{const h=r(v);!h||(h.status="success",h.response=d,e.onSuccess(d,h,n.value),o(h))},u=d=>{Qt(d.uid)&&(d.uid=ap());const v={name:d.name,percentage:0,status:"ready",size:d.size,raw:d,uid:d.uid};if(e.listType==="picture-card"||e.listType==="picture")try{v.url=URL.createObjectURL(d)}catch(h){h.message,e.onError(h,v,n.value)}n.value=[...n.value,v],o(v)},f=async d=>{const v=d instanceof File?r(d):d;v||fn(Vy,"file to be removed not found");const h=m=>{i(m),g(m),e.onRemove(m,n.value),Uy(m)};e.beforeRemove?await e.beforeRemove(v,n.value)!==!1&&h(v):h(v)};function s(){n.value.filter(({status:d})=>d==="ready").forEach(({raw:d})=>{var v;return d&&((v=t.value)==null?void 0:v.upload(d))})}return ke(()=>e.listType,d=>{d!=="picture-card"&&d!=="picture"||(n.value=n.value.map(v=>{const{raw:h,url:m}=v;if(!m&&h)try{v.url=URL.createObjectURL(h)}catch(y){e.onError(y,v,n.value)}return v}))}),ke(n,d=>{for(const v of d)v.uid||(v.uid=ap()),v.status||(v.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:l,handleError:a,handleProgress:c,handleStart:u,handleSuccess:p,handleRemove:f,submit:s,revokeFileObjectURL:Uy}};var J$=we({name:"ElUpload",__name:"upload",props:F$,setup(e,{expose:t}){const n=e,r=Kn(),i=Ht(),{abort:l,submit:g,clearFiles:o,uploadFiles:a,handleStart:c,handleError:p,handleRemove:u,handleSuccess:f,handleProgress:s,revokeFileObjectURL:d}=Z$(n,i),v=V(()=>n.listType==="picture-card"),h=V(()=>({...n,fileList:a.value,onStart:c,onProgress:s,onSuccess:f,onError:p,onRemove:u}));return kt(()=>{a.value.forEach(d)}),wt(HS,{accept:Fn(n,"accept")}),t({abort:l,submit:g,clearFiles:o,handleStart:c,handleRemove:u}),(m,y)=>(j(),ae("div",null,[v.value&&e.showFileList?(j(),me(zy,{key:0,disabled:w(r),"list-type":e.listType,files:w(a),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:w(u)},bl({append:fe(()=>[ue(jy,zt({ref_key:"uploadRef",ref:i},h.value),{default:fe(()=>[m.$slots.trigger?xe(m.$slots,"trigger",{key:0}):ye("v-if",!0),!m.$slots.trigger&&m.$slots.default?xe(m.$slots,"default",{key:1}):ye("v-if",!0)]),_:3},16)]),_:2},[m.$slots.file?{name:"default",fn:fe(({file:b,index:_})=>[xe(m.$slots,"file",{file:b,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ye("v-if",!0),!v.value||v.value&&!e.showFileList?(j(),me(jy,zt({key:1,ref_key:"uploadRef",ref:i},h.value),{default:fe(()=>[m.$slots.trigger?xe(m.$slots,"trigger",{key:0}):ye("v-if",!0),!m.$slots.trigger&&m.$slots.default?xe(m.$slots,"default",{key:1}):ye("v-if",!0)]),_:3},16)):ye("v-if",!0),m.$slots.trigger?xe(m.$slots,"default",{key:2}):ye("v-if",!0),xe(m.$slots,"tip"),!v.value&&e.showFileList?(j(),me(zy,{key:3,disabled:w(r),"list-type":e.listType,files:w(a),crossorigin:e.crossorigin,"handle-preview":e.onPreview,onRemove:w(u)},bl({_:2},[m.$slots.file?{name:"default",fn:fe(({file:b,index:_})=>[xe(m.$slots,"file",{file:b,index:_})]),key:"0"}:void 0]),1032,["disabled","list-type","files","crossorigin","handle-preview","onRemove"])):ye("v-if",!0)]))}});const hg=gt(J$),WS=["primary","success","info","warning","error"],GS=["top","top-left","top-right","bottom","bottom-left","bottom-right"],jo="top",wn=Jt({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:pt?document.body:void 0}),Q$=Fe({customClass:{type:String,default:wn.customClass},dangerouslyUseHTMLString:{type:Boolean,default:wn.dangerouslyUseHTMLString},duration:{type:Number,default:wn.duration},icon:{type:Nt,default:wn.icon},id:{type:String,default:wn.id},message:{type:Se([String,Object,Function]),default:wn.message},onClose:{type:Se(Function),default:wn.onClose},showClose:{type:Boolean,default:wn.showClose},type:{type:String,values:WS,default:wn.type},plain:{type:Boolean,default:wn.plain},offset:{type:Number,default:wn.offset},placement:{type:String,values:GS,default:wn.placement},zIndex:{type:Number,default:wn.zIndex},grouping:{type:Boolean,default:wn.grouping},repeatNum:{type:Number,default:wn.repeatNum}}),ej={destroy:()=>!0},Ir=gf({}),tj=e=>(Ir[e]||(Ir[e]=gf([])),Ir[e]),nj=(e,t)=>{const n=Ir[t]||[],r=n.findIndex(g=>g.id===e),i=n[r];let l;return r>0&&(l=n[r-1]),{current:i,prev:l}},rj=(e,t)=>{const{prev:n}=nj(e,t);return n?n.vm.exposed.bottom.value:0},ij=(e,t,n)=>(Ir[n]||[]).findIndex(l=>l.id===e)>0?16:t,aj=["id"],oj=["innerHTML"];var sj=we({name:"ElMessage",__name:"message",props:Q$,emits:ej,setup(e,{expose:t,emit:n}){const{Close:r}=_2,i=e,l=n,g=re(!1),{ns:o,zIndex:a}=d2("message"),{currentZIndex:c,nextZIndex:p}=a,u=re(),f=re(!1),s=re(0);let d;const v=V(()=>i.type?i.type==="error"?"danger":i.type:"info"),h=V(()=>{const U=i.type;return{[o.bm("icon",U)]:U&&Uc[U]}}),m=V(()=>i.icon||Uc[i.type]||""),y=V(()=>i.placement||jo),b=V(()=>rj(i.id,y.value)),_=V(()=>ij(i.id,i.offset,y.value)+b.value),S=V(()=>s.value+_.value),x=V(()=>y.value.includes("left")?o.is("left"):y.value.includes("right")?o.is("right"):o.is("center")),T=V(()=>y.value.startsWith("top")?"top":"bottom"),E=V(()=>({[T.value]:`${_.value}px`,zIndex:c.value}));function k(){i.duration!==0&&({stop:d}=Ol(()=>{W()},i.duration))}function D(){d==null||d()}function W(){f.value=!1,We(()=>{var U;g.value||((U=i.onClose)==null||U.call(i),l("destroy"))})}function I(U){dn(U)===Re.esc&&W()}return et(()=>{k(),p(),f.value=!0}),ke(()=>i.repeatNum,()=>{D(),k()}),Ft(document,"keydown",I),un(u,()=>{s.value=u.value.getBoundingClientRect().height}),t({visible:f,bottom:S,close:W}),(U,A)=>(j(),me(vr,{name:w(o).b("fade"),onBeforeEnter:A[0]||(A[0]=ee=>g.value=!0),onBeforeLeave:e.onClose,onAfterLeave:A[1]||(A[1]=ee=>U.$emit("destroy")),persisted:""},{default:fe(()=>[Ct(ie("div",{id:e.id,ref_key:"messageRef",ref:u,class:se([w(o).b(),{[w(o).m(e.type)]:e.type},w(o).is("closable",e.showClose),w(o).is("plain",e.plain),w(o).is("bottom",T.value==="bottom"),x.value,e.customClass]),style:He(E.value),role:"alert",onMouseenter:D,onMouseleave:k},[e.repeatNum>1?(j(),me(w(SD),{key:0,value:e.repeatNum,type:v.value,class:se(w(o).e("badge"))},null,8,["value","type","class"])):ye("v-if",!0),m.value?(j(),me(w(Ne),{key:1,class:se([w(o).e("icon"),h.value])},{default:fe(()=>[(j(),me(st(m.value)))]),_:1},8,["class"])):ye("v-if",!0),xe(U.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(j(),ae(Ve,{key:1},[ye(" Caution here, message could've been compromised, never use user's input as message "),ie("p",{class:se(w(o).e("content")),innerHTML:e.message},null,10,oj)],2112)):(j(),ae("p",{key:0,class:se(w(o).e("content"))},Ae(e.message),3))]),e.showClose?(j(),me(w(Ne),{key:2,class:se(w(o).e("closeBtn")),onClick:Qe(W,["stop"])},{default:fe(()=>[ue(w(r))]),_:1},8,["class"])):ye("v-if",!0)],46,aj),[[Yt,f.value]])]),_:3},8,["name","onBeforeLeave"]))}});let lj=1;const uj=e=>{if(!e.appendTo)e.appendTo=document.body;else if(je(e.appendTo)){let n=document.querySelector(e.appendTo);Or(n)||(n=document.body),e.appendTo=n}},cj=e=>{!e.placement&&je(xn.placement)&&xn.placement&&(e.placement=xn.placement),e.placement||(e.placement=jo),GS.includes(e.placement)||(`${e.placement}${jo}`,e.placement=jo)},KS=e=>{const t=!e||je(e)||Nn(e)||Be(e)?{message:e}:e,n={...wn,...t};return uj(n),cj(n),An(xn.grouping)&&!n.grouping&&(n.grouping=xn.grouping),Ye(xn.duration)&&n.duration===3e3&&(n.duration=xn.duration),Ye(xn.offset)&&n.offset===16&&(n.offset=xn.offset),An(xn.showClose)&&!n.showClose&&(n.showClose=xn.showClose),An(xn.plain)&&!n.plain&&(n.plain=xn.plain),n},fj=e=>{const t=e.props.placement||jo,n=Ir[t],r=n.indexOf(e);if(r===-1)return;n.splice(r,1);const{handler:i}=e;i.close()},dj=({appendTo:e,...t},n)=>{const r=`message_${lj++}`,i=t.onClose,l=document.createElement("div"),g={...t,id:r,onClose:()=>{i==null||i(),fj(p)},onDestroy:()=>{Lc(null,l)}},o=ue(sj,g,Be(g.message)||Nn(g.message)?{default:Be(g.message)?g.message:()=>g.message}:null);o.appContext=n||Za._context,Lc(o,l),e.appendChild(l.firstElementChild);const a=o.component,p={id:r,vnode:o,vm:a,handler:{close:()=>{a.exposed.close()}},props:o.component.props};return p},Za=(e={},t)=>{if(!pt)return{close:()=>{}};const n=KS(e),r=tj(n.placement||jo);if(n.grouping&&r.length){const l=r.find(({vnode:g})=>{var o;return((o=g.props)==null?void 0:o.message)===n.message});if(l)return l.props.repeatNum+=1,l.props.type=n.type,l.handler}if(Ye(xn.max)&&r.length>=xn.max)return{close:()=>{}};const i=dj(n,t);return r.push(i),i.handler};WS.forEach(e=>{Za[e]=(t={},n)=>{const r=KS(t);return Za({...r,type:e},n)}});function hj(e){for(const t in Ir)if(at(Ir,t)){const n=[...Ir[t]];for(const r of n)(!e||e===r.props.type)&&r.handler.close()}}function pj(e){if(!Ir[e])return;[...Ir[e]].forEach(n=>n.handler.close())}Za.closeAll=hj;Za.closeAllByPlacement=pj;Za._context=null;const da=M8(Za,"$message"),op="_trap-focus-children",Ra=[],Hy=e=>{if(Ra.length===0)return;const t=dn(e),n=Ra[Ra.length-1][op];if(n.length>0&&t===Re.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const r=e.shiftKey,i=e.target===n[0],l=e.target===n[n.length-1];i&&r&&(e.preventDefault(),n[n.length-1].focus()),l&&!r&&(e.preventDefault(),n[0].focus())}},vj={beforeMount(e){e[op]=N0(e),Ra.push(e),Ra.length<=1&&document.addEventListener("keydown",Hy)},updated(e){We(()=>{e[op]=N0(e)})},unmounted(){Ra.shift(),Ra.length===0&&document.removeEventListener("keydown",Hy)}};var gj=we({name:"ElMessageBox",directives:{TrapFocus:vj},components:{ElButton:vt,ElFocusTrap:$f,ElInput:gs,ElOverlay:kS,ElIcon:Ne,..._2},inheritAttrs:!1,props:{buttonSize:{type:String,validator:$S},modal:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},closeOnHashChange:{type:Boolean,default:!0},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:Boolean,container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{locale:n,zIndex:r,ns:i,size:l}=d2("message-box",V(()=>e.buttonSize)),{t:g}=n,{nextZIndex:o}=r,a=re(!1),c=mt({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",cancelButtonType:"",confirmButtonType:"primary",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",closeIcon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:"",inputValidator:void 0,inputErrorMessage:"",message:"",modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonLoadingIcon:Ai(xl),cancelButtonLoadingIcon:Ai(xl),confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:o()}),p=V(()=>{const z=c.type;return{[i.bm("icon",z)]:z&&Uc[z]}}),u=zr(),f=zr(),s=V(()=>{const z=c.type;return c.icon||z&&Uc[z]||""}),d=V(()=>!!c.message),v=re(),h=re(),m=re(),y=re(),b=re(),_=V(()=>c.confirmButtonClass);ke(()=>c.inputValue,async z=>{await We(),e.boxType==="prompt"&&z&&U()},{immediate:!0}),ke(()=>a.value,z=>{var q,O;z&&(e.boxType!=="prompt"&&(c.autofocus?m.value=(O=(q=b.value)==null?void 0:q.$el)!=null?O:v.value:m.value=v.value),c.zIndex=o()),e.boxType==="prompt"&&(z?We().then(()=>{var F;y.value&&y.value.$el&&(c.autofocus?m.value=(F=A())!=null?F:v.value:m.value=v.value)}):(c.editorErrorMessage="",c.validateError=!1))});const S=V(()=>e.draggable),x=V(()=>e.overflow),{isDragging:T}=AS(v,h,S,x);et(async()=>{await We(),e.closeOnHashChange&&window.addEventListener("hashchange",E)}),kt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",E)});function E(){!a.value||(a.value=!1,We(()=>{c.action&&t("action",c.action)}))}const k=()=>{e.closeOnClickModal&&I(c.distinguishCancelAndClose?"close":"cancel")},D=ag(k),W=z=>{var q;if(c.inputType!=="textarea"&&!((q=y.value)!=null&&q.isComposing))return z.preventDefault(),I("confirm")},I=z=>{var q;e.boxType==="prompt"&&z==="confirm"&&!U()||(c.action=z,c.beforeClose?(q=c.beforeClose)==null||q.call(c,z,c,E):E())},U=()=>{if(e.boxType==="prompt"){const z=c.inputPattern;if(z&&!z.test(c.inputValue||""))return c.editorErrorMessage=c.inputErrorMessage||g("el.messagebox.error"),c.validateError=!0,!1;const q=c.inputValidator;if(Be(q)){const O=q(c.inputValue);if(O===!1)return c.editorErrorMessage=c.inputErrorMessage||g("el.messagebox.error"),c.validateError=!0,!1;if(je(O))return c.editorErrorMessage=O,c.validateError=!0,!1}}return c.editorErrorMessage="",c.validateError=!1,!0},A=()=>{var z,q;const O=(z=y.value)==null?void 0:z.$refs;return(q=O==null?void 0:O.input)!=null?q:O==null?void 0:O.textarea},ee=()=>{I("close")},de=()=>{e.closeOnPressEscape&&ee()};return e.lockScroll&&og(a,{ns:i}),{...Lr(c),ns:i,overlayEvent:D,visible:a,hasMessage:d,typeClass:p,contentId:u,inputId:f,btnSize:l,iconComponent:s,confirmButtonClasses:_,rootRef:v,focusStartRef:m,headerRef:h,inputRef:y,isDragging:T,confirmRef:b,doClose:E,handleClose:ee,onCloseRequested:de,handleWrapperClick:k,handleInputEnter:W,handleAction:I,t:g}}});const mj=["aria-label","aria-describedby"],yj=["aria-label"],bj=["id"];function _j(e,t,n,r,i,l){const g=er("el-icon"),o=er("el-input"),a=er("el-button"),c=er("el-focus-trap"),p=er("el-overlay");return j(),me(vr,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=u=>e.$emit("vanish")),persisted:""},{default:fe(()=>[Ct(ue(p,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:fe(()=>[ie("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:se(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...u)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...u)),onMousedown:t[9]||(t[9]=(...u)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...u)),onMouseup:t[10]||(t[10]=(...u)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...u))},[ue(c,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:fe(()=>[ie("div",{ref:"rootRef",class:se([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),e.ns.is("dragging",e.isDragging),{[e.ns.m("center")]:e.center}]),style:He(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Qe(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(j(),ae("div",{key:0,ref:"headerRef",class:se([e.ns.e("header"),{"show-close":e.showClose}])},[ie("div",{class:se(e.ns.e("title"))},[e.iconComponent&&e.center?(j(),me(g,{key:0,class:se([e.ns.e("status"),e.typeClass])},{default:fe(()=>[(j(),me(st(e.iconComponent)))]),_:1},8,["class"])):ye("v-if",!0),ie("span",null,Ae(e.title),1)],2),e.showClose?(j(),ae("button",{key:0,type:"button",class:se(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=u=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=nr(Qe(u=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[ue(g,{class:se(e.ns.e("close"))},{default:fe(()=>[(j(),me(st(e.closeIcon||"close")))]),_:1},8,["class"])],42,yj)):ye("v-if",!0)],2)):ye("v-if",!0),ie("div",{id:e.contentId,class:se(e.ns.e("content"))},[ie("div",{class:se(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(j(),me(g,{key:0,class:se([e.ns.e("status"),e.typeClass])},{default:fe(()=>[(j(),me(st(e.iconComponent)))]),_:1},8,["class"])):ye("v-if",!0),e.hasMessage?(j(),ae("div",{key:1,class:se(e.ns.e("message"))},[xe(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(j(),me(st(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(j(),me(st(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0,textContent:Ae(e.message)},null,8,["for","textContent"]))])],2)):ye("v-if",!0)],2),Ct(ie("div",{class:se(e.ns.e("input"))},[ue(o,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=u=>e.inputValue=u),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:se({invalid:e.validateError}),onKeydown:nr(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),ie("div",{class:se(e.ns.e("errormsg")),style:He({visibility:e.editorErrorMessage?"visible":"hidden"})},Ae(e.editorErrorMessage),7)],2),[[Yt,e.showInput]])],10,bj),ie("div",{class:se(e.ns.e("btns"))},[e.showCancelButton?(j(),me(a,{key:0,type:e.cancelButtonType==="text"?"":e.cancelButtonType,text:e.cancelButtonType==="text",loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:se([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=u=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=nr(Qe(u=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:fe(()=>[qe(Ae(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","size"])):ye("v-if",!0),Ct(ue(a,{ref:"confirmRef",type:e.confirmButtonType==="text"?"":e.confirmButtonType,text:e.confirmButtonType==="text",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:se([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=u=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=nr(Qe(u=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:fe(()=>[qe(Ae(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["type","text","loading","loading-icon","class","round","disabled","size"]),[[Yt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,mj)]),_:3},8,["z-index","overlay-class","mask"]),[[Yt,e.visible]])]),_:3})}var wj=ms(gj,[["render",_j]]);const Dl=new Map,Sj=e=>{let t=document.body;return e.appendTo&&(je(e.appendTo)&&(t=document.querySelector(e.appendTo)),Or(e.appendTo)&&(t=e.appendTo),Or(t)||(t=document.body)),t},Cj=(e,t,n=null)=>{const r=ue(wj,e,Be(e.message)||Nn(e.message)?{default:Be(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Lc(r,t),Sj(e).appendChild(t.firstElementChild),r.component},xj=()=>document.createElement("div"),Tj=(e,t)=>{const n=xj();e.onVanish=()=>{Lc(null,n),Dl.delete(i)},e.onAction=l=>{const g=Dl.get(i);let o;e.showInput?o={value:i.inputValue,action:l}:o=l,e.callback?e.callback(o,r.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?g.reject("close"):g.reject("cancel"):g.resolve(o)};const r=Cj(e,n,t),i=r.proxy;for(const l in e)at(e,l)&&!at(i.$props,l)&&(l==="closeIcon"&&Ze(e[l])?i[l]=Ai(e[l]):i[l]=e[l]);return i.visible=!0,i};function ys(e,t=null){if(!pt)return Promise.reject();let n;return je(e)||Nn(e)?e={message:e}:n=e.callback,new Promise((r,i)=>{const l=Tj(e,t!=null?t:ys._context);Dl.set(l,{options:e,callback:n,resolve:r,reject:i})})}const Ej=["alert","confirm","prompt"],kj={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};Ej.forEach(e=>{ys[e]=Oj(e)});function Oj(e){return(t,n,r,i)=>{let l="";return Ze(n)?(r=n,l=""):gn(n)?l="":l=n,ys(Object.assign({title:l,message:t,type:"",...kj[e]},r,{boxType:e}),i)}}ys.close=()=>{Dl.forEach((e,t)=>{t.doClose()}),Dl.clear()};ys._context=null;const Ki=ys;Ki.install=e=>{Ki._context=e._context,e.config.globalProperties.$msgbox=Ki,e.config.globalProperties.$messageBox=Ki,e.config.globalProperties.$alert=Ki.alert,e.config.globalProperties.$confirm=Ki.confirm,e.config.globalProperties.$prompt=Ki.prompt};const YS=Ki;var Wy;const uu=typeof window<"u",Aj=e=>typeof e=="function",Pj=e=>typeof e=="string",lr=()=>{};uu&&((Wy=window==null?void 0:window.navigator)==null?void 0:Wy.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Qr(e){return typeof e=="function"?e():w(e)}function pg(e,t){function n(...r){return new Promise((i,l)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(l)})}return n}const XS=e=>e();function Ij(e,t={}){let n,r,i=lr;const l=o=>{clearTimeout(o),i(),i=lr};return o=>{const a=Qr(e),c=Qr(t.maxWait);return n&&l(n),a<=0||c!==void 0&&c<=0?(r&&(l(r),r=null),Promise.resolve(o())):new Promise((p,u)=>{i=t.rejectOnCancel?u:p,c&&!r&&(r=setTimeout(()=>{n&&l(n),r=null,p(o())},c)),n=setTimeout(()=>{r&&l(r),r=null,p(o())},a)})}}function Mj(e,t=!0,n=!0,r=!1){let i=0,l,g=!0,o=lr,a;const c=()=>{l&&(clearTimeout(l),l=void 0,o(),o=lr)};return u=>{const f=Qr(e),s=Date.now()-i,d=()=>a=u();return c(),f<=0?(i=Date.now(),d()):(s>f&&(n||!g)?(i=Date.now(),d()):t&&(a=new Promise((v,h)=>{o=r?h:v,l=setTimeout(()=>{i=Date.now(),g=!0,v(d()),c()},Math.max(0,f-s))})),!n&&!l&&(l=setTimeout(()=>g=!0,f)),g=!1,a)}}function Rj(e=XS){const t=re(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...l)=>{t.value&&e(...l)};return{isActive:Ga(t),pause:n,resume:r,eventFilter:i}}function Dj(e){return e}function Lj(e,t){var n;if(typeof e=="number")return e+t;const r=((n=e.match(/^-?[0-9]+\.?[0-9]*/))==null?void 0:n[0])||"",i=e.slice(r.length),l=parseFloat(r)+t;return Number.isNaN(l)?e:l+i}function Hf(e){return hf()?(pf(e),!0):!1}function Fj(e,t=200,n={}){return pg(Ij(t,n),e)}function Bj(e,t=200,n=!1,r=!0,i=!1){return pg(Mj(t,n,r,i),e)}function Nj(e){return typeof e=="function"?V(e):re(e)}function vg(e,t=!0){it()?et(e):t?e():We(e)}var Gy=Object.getOwnPropertySymbols,zj=Object.prototype.hasOwnProperty,$j=Object.prototype.propertyIsEnumerable,jj=(e,t)=>{var n={};for(var r in e)zj.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gy)for(var r of Gy(e))t.indexOf(r)<0&&$j.call(e,r)&&(n[r]=e[r]);return n};function Vj(e,t,n={}){const r=n,{eventFilter:i=XS}=r,l=jj(r,["eventFilter"]);return ke(e,pg(i,t),l)}var Uj=Object.defineProperty,Hj=Object.defineProperties,Wj=Object.getOwnPropertyDescriptors,Kc=Object.getOwnPropertySymbols,qS=Object.prototype.hasOwnProperty,ZS=Object.prototype.propertyIsEnumerable,Ky=(e,t,n)=>t in e?Uj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Gj=(e,t)=>{for(var n in t||(t={}))qS.call(t,n)&&Ky(e,n,t[n]);if(Kc)for(var n of Kc(t))ZS.call(t,n)&&Ky(e,n,t[n]);return e},Kj=(e,t)=>Hj(e,Wj(t)),Yj=(e,t)=>{var n={};for(var r in e)qS.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Kc)for(var r of Kc(e))t.indexOf(r)<0&&ZS.call(e,r)&&(n[r]=e[r]);return n};function Xj(e,t,n={}){const r=n,{eventFilter:i}=r,l=Yj(r,["eventFilter"]),{eventFilter:g,pause:o,resume:a,isActive:c}=Rj(i);return{stop:Vj(e,t,Kj(Gj({},l),{eventFilter:g})),pause:o,resume:a,isActive:c}}function Yy(e,t,n){let r;yt(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:l=void 0,shallow:g=!1,onError:o=lr}=r,a=re(!i),c=g?Ht(t):re(t);let p=0;return io(async u=>{if(!a.value)return;p++;const f=p;let s=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const d=await e(v=>{u(()=>{l&&(l.value=!1),s||v()})});f===p&&(c.value=d)}catch(d){o(d)}finally{l&&f===p&&(l.value=!1),s=!0}}),i?V(()=>(a.value=!0,c.value)):c}function Yc(e){var t;const n=Qr(e);return(t=n==null?void 0:n.$el)!=null?t:n}const $r=uu?window:void 0;uu&&window.document;uu&&window.navigator;uu&&window.location;function Un(...e){let t,n,r,i;if(Pj(e[0])||Array.isArray(e[0])?([n,r,i]=e,t=$r):[t,n,r,i]=e,!t)return lr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const l=[],g=()=>{l.forEach(p=>p()),l.length=0},o=(p,u,f,s)=>(p.addEventListener(u,f,s),()=>p.removeEventListener(u,f,s)),a=ke(()=>[Yc(t),Qr(i)],([p,u])=>{g(),p&&l.push(...n.flatMap(f=>r.map(s=>o(p,f,s,u))))},{immediate:!0,flush:"post"}),c=()=>{a(),g()};return Hf(c),c}const qj=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function Xy(...e){let t,n,r={};e.length===3?(t=e[0],n=e[1],r=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],r=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:i=$r,eventName:l="keydown",passive:g=!1}=r,o=qj(t);return Un(i,l,c=>{o(c)&&n(c)},g)}const Zj=500;function Jj(e,t,n){var r,i;const l=V(()=>Yc(e));let g;function o(){g&&(clearTimeout(g),g=void 0)}function a(p){var u,f,s,d;((u=n==null?void 0:n.modifiers)==null?void 0:u.self)&&p.target!==l.value||(o(),(f=n==null?void 0:n.modifiers)!=null&&f.prevent&&p.preventDefault(),(s=n==null?void 0:n.modifiers)!=null&&s.stop&&p.stopPropagation(),g=setTimeout(()=>t(p),(d=n==null?void 0:n.delay)!=null?d:Zj))}const c={capture:(r=n==null?void 0:n.modifiers)==null?void 0:r.capture,once:(i=n==null?void 0:n.modifiers)==null?void 0:i.once};Un(l,"pointerdown",a,c),Un(l,"pointerup",o,c),Un(l,"pointerleave",o,c)}function JS(e,t=!1){const n=re(),r=()=>n.value=Boolean(e());return r(),vg(r,t),n}function Po(e,t={}){const{window:n=$r}=t,r=JS(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const l=re(!1),g=()=>{!i||("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},o=()=>{!r.value||(g(),i=n.matchMedia(Nj(e).value),l.value=i.matches,"addEventListener"in i?i.addEventListener("change",o):i.addListener(o))};return io(o),Hf(()=>g()),l}const gg={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var Qj=Object.defineProperty,qy=Object.getOwnPropertySymbols,eV=Object.prototype.hasOwnProperty,tV=Object.prototype.propertyIsEnumerable,Zy=(e,t,n)=>t in e?Qj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nV=(e,t)=>{for(var n in t||(t={}))eV.call(t,n)&&Zy(e,n,t[n]);if(qy)for(var n of qy(t))tV.call(t,n)&&Zy(e,n,t[n]);return e};function mg(e,t={}){function n(o,a){let c=e[o];return a!=null&&(c=Lj(c,a)),typeof c=="number"&&(c=`${c}px`),c}const{window:r=$r}=t;function i(o){return r?r.matchMedia(o).matches:!1}const l=o=>Po(`(min-width: ${n(o)})`,t),g=Object.keys(e).reduce((o,a)=>(Object.defineProperty(o,a,{get:()=>l(a),enumerable:!0,configurable:!0}),o),{});return nV({greater(o){return Po(`(min-width: ${n(o,.1)})`,t)},greaterOrEqual:l,smaller(o){return Po(`(max-width: ${n(o,-.1)})`,t)},smallerOrEqual(o){return Po(`(max-width: ${n(o)})`,t)},between(o,a){return Po(`(min-width: ${n(o)}) and (max-width: ${n(a,-.1)})`,t)},isGreater(o){return i(`(min-width: ${n(o,.1)})`)},isGreaterOrEqual(o){return i(`(min-width: ${n(o)})`)},isSmaller(o){return i(`(max-width: ${n(o,-.1)})`)},isSmallerOrEqual(o){return i(`(max-width: ${n(o)})`)},isInBetween(o,a){return i(`(min-width: ${n(o)}) and (max-width: ${n(a,-.1)})`)}},g)}const sp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},lp="__vueuse_ssr_handlers__";sp[lp]=sp[lp]||{};const rV=sp[lp];function QS(e,t){return rV[e]||t}function iV(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var aV=Object.defineProperty,Jy=Object.getOwnPropertySymbols,oV=Object.prototype.hasOwnProperty,sV=Object.prototype.propertyIsEnumerable,Qy=(e,t,n)=>t in e?aV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,eb=(e,t)=>{for(var n in t||(t={}))oV.call(t,n)&&Qy(e,n,t[n]);if(Jy)for(var n of Jy(t))sV.call(t,n)&&Qy(e,n,t[n]);return e};const lV={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},tb="vueuse-storage";function eC(e,t,n,r={}){var i;const{flush:l="pre",deep:g=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:p,window:u=$r,eventFilter:f,onError:s=E=>{console.error(E)}}=r,d=(p?Ht:re)(t);if(!n)try{n=QS("getDefaultStorage",()=>{var E;return(E=$r)==null?void 0:E.localStorage})()}catch(E){s(E)}if(!n)return d;const v=Qr(t),h=iV(v),m=(i=r.serializer)!=null?i:lV[h],{pause:y,resume:b}=Xj(d,()=>_(d.value),{flush:l,deep:g,eventFilter:f});return u&&o&&(Un(u,"storage",T),Un(u,tb,x)),T(),d;function _(E){try{if(E==null)n.removeItem(e);else{const k=m.write(E),D=n.getItem(e);D!==k&&(n.setItem(e,k),u&&u.dispatchEvent(new CustomEvent(tb,{detail:{key:e,oldValue:D,newValue:k,storageArea:n}})))}}catch(k){s(k)}}function S(E){const k=E?E.newValue:n.getItem(e);if(k==null)return a&&v!==null&&n.setItem(e,m.write(v)),v;if(!E&&c){const D=m.read(k);return Aj(c)?c(D,v):h==="object"&&!Array.isArray(D)?eb(eb({},v),D):D}else return typeof k!="string"?k:m.read(k)}function x(E){T(E.detail)}function T(E){if(!(E&&E.storageArea!==n)){if(E&&E.key==null){d.value=v;return}if(!(E&&E.key!==e)){y();try{d.value=S(E)}catch(k){s(k)}finally{E?We(b):b()}}}}}function uV(e){return Po("(prefers-color-scheme: dark)",e)}var cV=Object.defineProperty,nb=Object.getOwnPropertySymbols,fV=Object.prototype.hasOwnProperty,dV=Object.prototype.propertyIsEnumerable,rb=(e,t,n)=>t in e?cV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hV=(e,t)=>{for(var n in t||(t={}))fV.call(t,n)&&rb(e,n,t[n]);if(nb)for(var n of nb(t))dV.call(t,n)&&rb(e,n,t[n]);return e};function ib(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=$r,storage:l,storageKey:g="vueuse-color-scheme",listenToStorageChanges:o=!0,storageRef:a,emitAuto:c}=e,p=hV({auto:"",light:"light",dark:"dark"},e.modes||{}),u=uV({window:i}),f=V(()=>u.value?"dark":"light"),s=a||(g==null?re(r):eC(g,r,l,{window:i,listenToStorageChanges:o})),d=V({get(){return s.value==="auto"&&!c?f.value:s.value},set(y){s.value=y}}),v=QS("updateHTMLAttrs",(y,b,_)=>{const S=i==null?void 0:i.document.querySelector(y);if(!!S)if(b==="class"){const x=_.split(/\s/g);Object.values(p).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{x.includes(T)?S.classList.add(T):S.classList.remove(T)})}else S.setAttribute(b,_)});function h(y){var b;const _=y==="auto"?f.value:y;v(t,n,(b=p[_])!=null?b:_)}function m(y){e.onChanged?e.onChanged(y,h):h(y)}return ke(d,m,{flush:"post",immediate:!0}),c&&ke(f,()=>m(d.value),{flush:"post"}),vg(()=>m(d.value)),d}const ab=1;function pV(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=lr,onScroll:l=lr,offset:g={left:0,right:0,top:0,bottom:0},eventListenerOptions:o={capture:!1,passive:!0},behavior:a="auto"}=t,c=re(0),p=re(0),u=V({get(){return c.value},set(_){s(_,void 0)}}),f=V({get(){return p.value},set(_){s(void 0,_)}});function s(_,S){var x,T,E;const k=Qr(e);!k||(E=k instanceof Document?document.body:k)==null||E.scrollTo({top:(x=Qr(S))!=null?x:f.value,left:(T=Qr(_))!=null?T:u.value,behavior:Qr(a)})}const d=re(!1),v=mt({left:!0,right:!1,top:!0,bottom:!1}),h=mt({left:!1,right:!1,top:!1,bottom:!1}),m=_=>{!d.value||(d.value=!1,h.left=!1,h.right=!1,h.top=!1,h.bottom=!1,i(_))},y=Fj(m,n+r),b=_=>{const S=_.target===document?_.target.documentElement:_.target,x=S.scrollLeft;h.left=x<c.value,h.right=x>p.value,v.left=x<=0+(g.left||0),v.right=x+S.clientWidth>=S.scrollWidth-(g.right||0)-ab,c.value=x;let T=S.scrollTop;_.target===document&&!T&&(T=document.body.scrollTop),h.top=T<p.value,h.bottom=T>p.value,v.top=T<=0+(g.top||0),v.bottom=T+S.clientHeight>=S.scrollHeight-(g.bottom||0)-ab,p.value=T,d.value=!0,y(_),l(_)};return Un(e,"scroll",n?Bj(b,n,!0,!1):b,o),Un(e,"scrollend",m,o),{x:u,y:f,isScrolling:d,arrivedState:v,directions:h}}function vV(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:l=.1,window:g=$r}=n,o=JS(()=>g&&"IntersectionObserver"in g);let a=lr;const c=o.value?ke(()=>({el:Yc(e),root:Yc(r)}),({el:u,root:f})=>{if(a(),!u)return;const s=new IntersectionObserver(t,{root:f,rootMargin:i,threshold:l});s.observe(u),a=()=>{s.disconnect(),a=lr}},{immediate:!0,flush:"post"}):lr,p=()=>{a(),c()};return Hf(p),{isSupported:o,stop:p}}function Qn(e,t,n={}){const{window:r=$r}=n;return eC(e,t,r==null?void 0:r.localStorage,n)}var Oa;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Oa||(Oa={}));function gV(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:l,passive:g=!0,window:o=$r}=t,a=mt({x:0,y:0}),c=mt({x:0,y:0}),p=V(()=>a.x-c.x),u=V(()=>a.y-c.y),{max:f,abs:s}=Math,d=V(()=>f(s(p.value),s(u.value))>=n),v=re(!1),h=V(()=>d.value?s(p.value)>s(u.value)?p.value>0?Oa.LEFT:Oa.RIGHT:u.value>0?Oa.UP:Oa.DOWN:Oa.NONE),m=k=>[k.touches[0].clientX,k.touches[0].clientY],y=(k,D)=>{a.x=k,a.y=D},b=(k,D)=>{c.x=k,c.y=D};let _;const S=mV(o==null?void 0:o.document);g?_=S?{passive:!0}:{capture:!1}:_=S?{passive:!1,capture:!0}:{capture:!0};const x=k=>{v.value&&(i==null||i(k,h.value)),v.value=!1},T=[Un(e,"touchstart",k=>{_.capture&&!_.passive&&k.preventDefault();const[D,W]=m(k);y(D,W),b(D,W),l==null||l(k)},_),Un(e,"touchmove",k=>{const[D,W]=m(k);b(D,W),!v.value&&d.value&&(v.value=!0),v.value&&(r==null||r(k))},_),Un(e,"touchend",x,_),Un(e,"touchcancel",x,_)];return{isPassiveEventSupported:S,isSwiping:v,direction:h,coordsStart:a,coordsEnd:c,lengthX:p,lengthY:u,stop:()=>T.forEach(k=>k())}}function mV(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",lr,n),e.removeEventListener("x",lr),t}var yV=Object.defineProperty,ob=Object.getOwnPropertySymbols,bV=Object.prototype.hasOwnProperty,_V=Object.prototype.propertyIsEnumerable,sb=(e,t,n)=>t in e?yV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,wV=(e,t)=>{for(var n in t||(t={}))bV.call(t,n)&&sb(e,n,t[n]);if(ob)for(var n of ob(t))_V.call(t,n)&&sb(e,n,t[n]);return e};const SV={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};wV({linear:Dj},SV);function tC(e={}){const{window:t=$r,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:l=!0}=e,g=re(n),o=re(r),a=()=>{t&&(l?(g.value=t.innerWidth,o.value=t.innerHeight):(g.value=t.document.documentElement.clientWidth,o.value=t.document.documentElement.clientHeight))};return a(),vg(a),Un("resize",a,{passive:!0}),i&&Un("orientationchange",a,{passive:!0}),{width:g,height:o}}const Zt=ls("options",()=>{const e=Qn("options",re({colorMode:ib({emitAuto:!0})})),t=Qn("pageSize",25),n=Qn("pageless","Disabled"),r=Qn("allowLargerParams","Disabled"),i=Qn("alsoRequestAvi","Disabled"),l=Qn("autoCarousel","Enabled"),g=Qn("useBeta","Disabled"),o=Qn("imageDownloadType","PNG"),a=Qn("baseURL","");return e.value.colorMode=ib({emitAuto:!0,initialValue:e.value.colorMode}),{options:e,pageSize:t,pageless:n,allowLargerParams:r,alsoRequestAvi:i,autoCarousel:l,useBeta:g,imageDownloadType:o,baseURL:a}});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var ht=function(){return ht=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},ht.apply(this,arguments)};function up(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var It=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Xt=Object.keys,On=Array.isArray;typeof Promise<"u"&&!It.Promise&&(It.Promise=Promise);function zn(e,t){return typeof t!="object"||Xt(t).forEach(function(n){e[n]=t[n]}),e}var Ll=Object.getPrototypeOf,CV={}.hasOwnProperty;function fr(e,t){return CV.call(e,t)}function ns(e,t){typeof t=="function"&&(t=t(Ll(e))),(typeof Reflect>"u"?Xt:Reflect.ownKeys)(t).forEach(function(n){Ri(e,n,t[n])})}var nC=Object.defineProperty;function Ri(e,t,n,r){nC(e,t,zn(n&&fr(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function bs(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Ri(e.prototype,"constructor",e),{extend:ns.bind(null,e.prototype)}}}}var xV=Object.getOwnPropertyDescriptor;function yg(e,t){var n=xV(e,t),r;return n||(r=Ll(e))&&yg(r,t)}var TV=[].slice;function Wf(e,t,n){return TV.call(e,t,n)}function rC(e,t){return t(e)}function zs(e){if(!e)throw new Error("Assertion Failed")}function iC(e){It.setImmediate?setImmediate(e):setTimeout(e,0)}function aC(e,t){return e.reduce(function(n,r,i){var l=t(r,i);return l&&(n[l[0]]=l[1]),n},{})}function EV(e,t,n){try{e.apply(null,n)}catch(r){t&&t(r)}}function Ti(e,t){if(typeof t=="string"&&fr(e,t))return e[t];if(!t)return e;if(typeof t!="string"){for(var n=[],r=0,i=t.length;r<i;++r){var l=Ti(e,t[r]);n.push(l)}return n}var g=t.indexOf(".");if(g!==-1){var o=e[t.substr(0,g)];return o==null?void 0:Ti(o,t.substr(g+1))}}function Mr(e,t,n){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){zs(typeof n!="string"&&"length"in n);for(var r=0,i=t.length;r<i;++r)Mr(e,t[r],n[r])}else{var l=t.indexOf(".");if(l!==-1){var g=t.substr(0,l),o=t.substr(l+1);if(o==="")n===void 0?On(e)&&!isNaN(parseInt(g))?e.splice(g,1):delete e[g]:e[g]=n;else{var a=e[g];(!a||!fr(e,g))&&(a=e[g]={}),Mr(a,o,n)}}else n===void 0?On(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function kV(e,t){typeof t=="string"?Mr(e,t,void 0):"length"in t&&[].map.call(t,function(n){Mr(e,n,void 0)})}function oC(e){var t={};for(var n in e)fr(e,n)&&(t[n]=e[n]);return t}var OV=[].concat;function sC(e){return OV.apply([],e)}var lC="BigUint64Array,BigInt64Array,Array,Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,FileSystemDirectoryHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(sC([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return It[e]}),AV=lC.map(function(e){return It[e]});aC(lC,function(e){return[e,!0]});var Ji=null;function cu(e){Ji=typeof WeakMap<"u"&&new WeakMap;var t=cp(e);return Ji=null,t}function cp(e){if(!e||typeof e!="object")return e;var t=Ji&&Ji.get(e);if(t)return t;if(On(e)){t=[],Ji&&Ji.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(cp(e[n]))}else if(AV.indexOf(e.constructor)>=0)t=e;else{var i=Ll(e);t=i===Object.prototype?{}:Object.create(i),Ji&&Ji.set(e,t);for(var l in e)fr(e,l)&&(t[l]=cp(e[l]))}return t}var PV={}.toString;function fp(e){return PV.call(e).slice(8,-1)}var dp=typeof Symbol<"u"?Symbol.iterator:"@@iterator",IV=typeof dp=="symbol"?function(e){var t;return e!=null&&(t=e[dp])&&t.apply(e)}:function(){return null},Io={};function Si(e){var t,n,r,i;if(arguments.length===1){if(On(e))return e.slice();if(this===Io&&typeof e=="string")return[e];if(i=IV(e)){for(n=[];r=i.next(),!r.done;)n.push(r.value);return n}if(e==null)return[e];if(t=e.length,typeof t=="number"){for(n=new Array(t);t--;)n[t]=e[t];return n}return[e]}for(t=arguments.length,n=new Array(t);t--;)n[t]=arguments[t];return n}var bg=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},li=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function uC(e,t){li=e,cC=t}var cC=function(){return!0},MV=!new Error("").stack;function fo(){if(MV)try{throw fo.arguments,new Error}catch(e){return e}return new Error}function hp(e,t){var n=e.stack;return n?(t=t||0,n.indexOf(e.name)===0&&(t+=(e.name+e.message).split(`
`).length),n.split(`
`).slice(t).filter(cC).map(function(r){return`
`+r}).join("")):""}var RV=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],fC=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],_g=RV.concat(fC),DV={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed",MissingAPI:"IndexedDB API missing. Please visit https://tinyurl.com/y2uuvskb"};function _s(e,t){this._e=fo(),this.name=e,this.message=t}bs(_s).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+hp(this._e,2))}},toString:function(){return this.name+": "+this.message}});function dC(e,t){return e+". Errors: "+Object.keys(t).map(function(n){return t[n].toString()}).filter(function(n,r,i){return i.indexOf(n)===r}).join(`
`)}function Xc(e,t,n,r){this._e=fo(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=dC(e,t)}bs(Xc).from(_s);function al(e,t){this._e=fo(),this.name="BulkError",this.failures=Object.keys(t).map(function(n){return t[n]}),this.failuresByPos=t,this.message=dC(e,t)}bs(al).from(_s);var wg=_g.reduce(function(e,t){return e[t]=t+"Error",e},{}),LV=_s,Je=_g.reduce(function(e,t){var n=t+"Error";function r(i,l){this._e=fo(),this.name=n,i?typeof i=="string"?(this.message=""+i+(l?`
`+l:""),this.inner=l||null):typeof i=="object"&&(this.message=i.name+" "+i.message,this.inner=i):(this.message=DV[t]||n,this.inner=null)}return bs(r).from(LV),e[t]=r,e},{});Je.Syntax=SyntaxError;Je.Type=TypeError;Je.Range=RangeError;var lb=fC.reduce(function(e,t){return e[t+"Error"]=Je[t],e},{});function FV(e,t){if(!e||e instanceof _s||e instanceof TypeError||e instanceof SyntaxError||!e.name||!lb[e.name])return e;var n=new lb[e.name](t||e.message,e);return"stack"in e&&Ri(n,"stack",{get:function(){return this.inner.stack}}),n}var Gf=_g.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=Je[t]),e},{});Gf.ModifyError=Xc;Gf.DexieError=_s;Gf.BulkError=al;function Et(){}function fu(e){return e}function BV(e,t){return e==null||e===fu?t:function(n){return t(e(n))}}function Ja(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function NV(e,t){return e===Et?t:function(){var n=e.apply(this,arguments);n!==void 0&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var l=t.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?Ja(r,this.onsuccess):r),i&&(this.onerror=this.onerror?Ja(i,this.onerror):i),l!==void 0?l:n}}function zV(e,t){return e===Et?t:function(){e.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,t.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?Ja(n,this.onsuccess):n),r&&(this.onerror=this.onerror?Ja(r,this.onerror):r)}}function $V(e,t){return e===Et?t:function(n){var r=e.apply(this,arguments);zn(n,r);var i=this.onsuccess,l=this.onerror;this.onsuccess=null,this.onerror=null;var g=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?Ja(i,this.onsuccess):i),l&&(this.onerror=this.onerror?Ja(l,this.onerror):l),r===void 0?g===void 0?void 0:g:zn(r,g)}}function jV(e,t){return e===Et?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function Sg(e,t){return e===Et?t:function(){var n=e.apply(this,arguments);if(n&&typeof n.then=="function"){for(var r=this,i=arguments.length,l=new Array(i);i--;)l[i]=arguments[i];return n.then(function(){return t.apply(r,l)})}return t.apply(this,arguments)}}var Fl={},VV=100,UV=20,hC=100,Cg=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,Ll(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,Ll(t),e]}(),pp=Cg[0],qc=Cg[1],vp=Cg[2],pC=qc&&qc.then,gc=pp&&pp.constructor,xg=!!vp,gp=!1,HV=vp?function(){vp.then(Uu)}:It.setImmediate?setImmediate.bind(null,Uu):It.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){Uu(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(Uu,0)},Bl=function(e,t){$s.push([e,t]),Zc&&(HV(),Zc=!1)},mp=!0,Zc=!0,Ua=[],mc=[],yp=null,bp=fu,Vo={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:fb,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{fb(e[0],e[1])}catch{}})}},Xe=Vo,$s=[],Ha=0,yc=[];function $e(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Et,this._lib=!1;var t=this._PSD=Xe;if(li&&(this._stackHolder=fo(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Fl)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&wp(this,this._value);return}this._state=null,this._value=null,++t.ref,gC(this,e)}var _p={get:function(){var e=Xe,t=Jc;function n(r,i){var l=this,g=!e.global&&(e!==Xe||t!==Jc),o=g&&!Di(),a=new $e(function(c,p){Tg(l,new vC(ef(r,e,g,o),ef(i,e,g,o),c,p,e))});return li&&bC(a,this),a}return n.prototype=Fl,n},set:function(e){Ri(this,"then",e&&e.prototype===Fl?_p:{get:function(){return e},set:_p.set})}};ns($e.prototype,{then:_p,_then:function(e,t){Tg(this,new vC(null,null,e,t,Xe))},catch:function(e){if(arguments.length===1)return this.then(null,e);var t=arguments[0],n=arguments[1];return typeof t=="function"?this.then(null,function(r){return r instanceof t?n(r):bc(r)}):this.then(null,function(r){return r&&r.name===t?n(r):bc(r)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),bc(t)})},stack:{get:function(){if(this._stack)return this._stack;try{gp=!0;var e=yC(this,[],UV),t=e.join(`
From previous: `);return this._state!==null&&(this._stack=t),t}finally{gp=!1}}},timeout:function(e,t){var n=this;return e<1/0?new $e(function(r,i){var l=setTimeout(function(){return i(new Je.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,l))}):this}});typeof Symbol<"u"&&Symbol.toStringTag&&Ri($e.prototype,Symbol.toStringTag,"Dexie.Promise");Vo.env=_C();function vC(e,t,n,r,i){this.onFulfilled=typeof e=="function"?e:null,this.onRejected=typeof t=="function"?t:null,this.resolve=n,this.reject=r,this.psd=i}ns($e,{all:function(){var e=Si.apply(null,arguments).map(Qc);return new $e(function(t,n){e.length===0&&t([]);var r=e.length;e.forEach(function(i,l){return $e.resolve(i).then(function(g){e[l]=g,--r||t(e)},n)})})},resolve:function(e){if(e instanceof $e)return e;if(e&&typeof e.then=="function")return new $e(function(n,r){e.then(n,r)});var t=new $e(Fl,!0,e);return bC(t,yp),t},reject:bc,race:function(){var e=Si.apply(null,arguments).map(Qc);return new $e(function(t,n){e.map(function(r){return $e.resolve(r).then(t,n)})})},PSD:{get:function(){return Xe},set:function(e){return Xe=e}},totalEchoes:{get:function(){return Jc}},newPSD:ha,usePSD:Ss,scheduler:{get:function(){return Bl},set:function(e){Bl=e}},rejectionMapper:{get:function(){return bp},set:function(e){bp=e}},follow:function(e,t){return new $e(function(n,r){return ha(function(i,l){var g=Xe;g.unhandleds=[],g.onunhandled=l,g.finalize=Ja(function(){var o=this;GV(function(){o.unhandleds.length===0?i():l(o.unhandleds[0])})},g.finalize),e()},t,n,r)})}});gc&&(gc.allSettled&&Ri($e,"allSettled",function(){var e=Si.apply(null,arguments).map(Qc);return new $e(function(t){e.length===0&&t([]);var n=e.length,r=new Array(n);e.forEach(function(i,l){return $e.resolve(i).then(function(g){return r[l]={status:"fulfilled",value:g}},function(g){return r[l]={status:"rejected",reason:g}}).then(function(){return--n||t(r)})})})}),gc.any&&typeof AggregateError<"u"&&Ri($e,"any",function(){var e=Si.apply(null,arguments).map(Qc);return new $e(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,i=new Array(r);e.forEach(function(l,g){return $e.resolve(l).then(function(o){return t(o)},function(o){i[g]=o,--r||n(new AggregateError(i))})})})}));function gC(e,t){try{t(function(n){if(e._state===null){if(n===e)throw new TypeError("A promise cannot be resolved with itself.");var r=e._lib&&du();n&&typeof n.then=="function"?gC(e,function(i,l){n instanceof $e?n._then(i,l):n.then(i,l)}):(e._state=!0,e._value=n,mC(e)),r&&hu()}},wp.bind(null,e))}catch(n){wp(e,n)}}function wp(e,t){if(mc.push(t),e._state===null){var n=e._lib&&du();t=bp(t),e._state=!1,e._value=t,li&&t!==null&&typeof t=="object"&&!t._promise&&EV(function(){var r=yg(t,"stack");t._promise=e,Ri(t,"stack",{get:function(){return gp?r&&(r.get?r.get.apply(t):r.value):e.stack}})}),KV(e),mC(e),n&&hu()}}function mC(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Tg(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),Ha===0&&(++Ha,Bl(function(){--Ha===0&&Eg()},[]))}function Tg(e,t){if(e._state===null){e._listeners.push(t);return}var n=e._state?t.onFulfilled:t.onRejected;if(n===null)return(e._state?t.resolve:t.reject)(e._value);++t.psd.ref,++Ha,Bl(WV,[n,e,t])}function WV(e,t,n){try{yp=t;var r,i=t._value;t._state?r=e(i):(mc.length&&(mc=[]),r=e(i),mc.indexOf(i)===-1&&YV(t)),n.resolve(r)}catch(l){n.reject(l)}finally{yp=null,--Ha===0&&Eg(),--n.psd.ref||n.psd.finalize()}}function yC(e,t,n){if(t.length===n)return t;var r="";if(e._state===!1){var i=e._value,l,g;i!=null?(l=i.name||"Error",g=i.message||i,r=hp(i,0)):(l=i,g=""),t.push(l+(g?": "+g:"")+r)}return li&&(r=hp(e._stackHolder,2),r&&t.indexOf(r)===-1&&t.push(r),e._prev&&yC(e._prev,t,n)),t}function bC(e,t){var n=t?t._numPrev+1:0;n<VV&&(e._prev=t,e._numPrev=n)}function Uu(){du()&&hu()}function du(){var e=mp;return mp=!1,Zc=!1,e}function hu(){var e,t,n;do for(;$s.length>0;)for(e=$s,$s=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while($s.length>0);mp=!0,Zc=!0}function Eg(){var e=Ua;Ua=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=yc.slice(0),n=t.length;n;)t[--n]()}function GV(e){function t(){e(),yc.splice(yc.indexOf(t),1)}yc.push(t),++Ha,Bl(function(){--Ha===0&&Eg()},[])}function KV(e){Ua.some(function(t){return t._value===e._value})||Ua.push(e)}function YV(e){for(var t=Ua.length;t;)if(Ua[--t]._value===e._value){Ua.splice(t,1);return}}function bc(e){return new $e(Fl,!1,e)}function Lt(e,t){var n=Xe;return function(){var r=du(),i=Xe;try{return pa(n,!0),e.apply(this,arguments)}catch(l){t&&t(l)}finally{pa(i,!1),r&&hu()}}}var kn={awaits:0,echoes:0,id:0},XV=0,_c=[],Vd=0,Jc=0,qV=0;function ha(e,t,n,r){var i=Xe,l=Object.create(i);l.parent=i,l.ref=0,l.global=!1,l.id=++qV;var g=Vo.env;l.env=xg?{Promise:$e,PromiseProp:{value:$e,configurable:!0,writable:!0},all:$e.all,race:$e.race,allSettled:$e.allSettled,any:$e.any,resolve:$e.resolve,reject:$e.reject,nthen:ub(g.nthen,l),gthen:ub(g.gthen,l)}:{},t&&zn(l,t),++i.ref,l.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=Ss(l,e,n,r);return l.ref===0&&l.finalize(),o}function ws(){return kn.id||(kn.id=++XV),++kn.awaits,kn.echoes+=hC,kn.id}function Di(){return kn.awaits?(--kn.awaits===0&&(kn.id=0),kn.echoes=kn.awaits*hC,!0):!1}(""+pC).indexOf("[native code]")===-1&&(ws=Di=Et);function Qc(e){return kn.echoes&&e&&e.constructor===gc?(ws(),e.then(function(t){return Di(),t},function(t){return Di(),en(t)})):e}function ZV(e){++Jc,(!kn.echoes||--kn.echoes===0)&&(kn.echoes=kn.id=0),_c.push(Xe),pa(e,!0)}function JV(){var e=_c[_c.length-1];_c.pop(),pa(e,!1)}function pa(e,t){var n=Xe;if((t?kn.echoes&&(!Vd++||e!==Xe):Vd&&(!--Vd||e!==Xe))&&wC(t?ZV.bind(null,e):JV),e!==Xe&&(Xe=e,n===Vo&&(Vo.env=_C()),xg)){var r=Vo.env.Promise,i=e.env;qc.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(It,"Promise",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject,i.allSettled&&(r.allSettled=i.allSettled),i.any&&(r.any=i.any))}}function _C(){var e=It.Promise;return xg?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(It,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:qc.then,gthen:e.prototype.then}:{}}function Ss(e,t,n,r,i){var l=Xe;try{return pa(e,!0),t(n,r,i)}finally{pa(l,!1)}}function wC(e){pC.call(pp,e)}function ef(e,t,n,r){return typeof e!="function"?e:function(){var i=Xe;n&&ws(),pa(t,!0);try{return e.apply(this,arguments)}finally{pa(i,!1),r&&wC(Di)}}}function ub(e,t){return function(n,r){return e.call(this,ef(n,t),ef(r,t))}}var cb="unhandledrejection";function fb(e,t){var n;try{n=t.onuncatched(e)}catch{}if(n!==!1)try{var r,i={promise:t,reason:e};if(It.document&&document.createEvent?(r=document.createEvent("Event"),r.initEvent(cb,!0,!0),zn(r,i)):It.CustomEvent&&(r=new CustomEvent(cb,{detail:i}),zn(r,i)),r&&It.dispatchEvent&&(dispatchEvent(r),!It.PromiseRejectionEvent&&It.onunhandledrejection))try{It.onunhandledrejection(r)}catch{}li&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch{}}var en=$e.reject;function Sp(e,t,n,r){if(!e.idbdb||!e._state.openComplete&&!Xe.letThrough&&!e._vip){if(e._state.openComplete)return en(new Je.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return en(new Je.DatabaseClosed);e.open().catch(Et)}return e._state.dbReadyPromise.then(function(){return Sp(e,t,n,r)})}else{var i=e._createTransaction(t,n,e._dbSchema);try{i.create(),e._state.PR1398_maxLoop=3}catch(l){return l.name===wg.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return Sp(e,t,n,r)})):en(l)}return i._promise(t,function(l,g){return ha(function(){return Xe.trans=i,r(l,g,i)})}).then(function(l){return i._completion.then(function(){return l})})}}var db="3.2.7",Da=String.fromCharCode(65535),Cp=-1/0,di="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",SC="String expected.",ol=[],Kf=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),QV=Kf,e9=Kf,CC=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},Yf="__dbnames",Ud="readonly",Hd="readwrite";function Qa(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var xC={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Hu(e){return typeof e=="string"&&!/\./.test(e)?function(t){return t[e]===void 0&&e in t&&(t=cu(t),delete t[e]),t}:function(t){return t}}var t9=function(){function e(){}return e.prototype._trans=function(t,n,r){var i=this._tx||Xe.trans,l=this.name;function g(a,c,p){if(!p.schema[l])throw new Je.NotFound("Table "+l+" not part of transaction");return n(p.idbtrans,p)}var o=du();try{return i&&i.db===this.db?i===Xe.trans?i._promise(t,g,r):ha(function(){return i._promise(t,g,r)},{trans:i,transless:Xe.transless||Xe}):Sp(this.db,t,[this.name],g)}finally{o&&hu()}},e.prototype.get=function(t,n){var r=this;return t&&t.constructor===Object?this.where(t).first(n):this._trans("readonly",function(i){return r.core.get({trans:i,key:t}).then(function(l){return r.hook.reading.fire(l)})}).then(n)},e.prototype.where=function(t){if(typeof t=="string")return new this.db.WhereClause(this,t);if(On(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var n=Xt(t);if(n.length===1)return this.where(n[0]).equals(t[n[0]]);var r=this.schema.indexes.concat(this.schema.primKey).filter(function(u){if(u.compound&&n.every(function(s){return u.keyPath.indexOf(s)>=0})){for(var f=0;f<n.length;++f)if(n.indexOf(u.keyPath[f])===-1)return!1;return!0}return!1}).sort(function(u,f){return u.keyPath.length-f.keyPath.length})[0];if(r&&this.db._maxKey!==Da){var i=r.keyPath.slice(0,n.length);return this.where(i).equals(i.map(function(u){return t[u]}))}!r&&li&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a "+("compound index ["+n.join("+")+"]"));var l=this.schema.idxByName,g=this.db._deps.indexedDB;function o(u,f){try{return g.cmp(u,f)===0}catch{return!1}}var a=n.reduce(function(u,f){var s=u[0],d=u[1],v=l[f],h=t[f];return[s||v,s||!v?Qa(d,v&&v.multi?function(m){var y=Ti(m,f);return On(y)&&y.some(function(b){return o(h,b)})}:function(m){return o(h,Ti(m,f))}):d]},[null,null]),c=a[0],p=a[1];return c?this.where(c.name).equals(t[c.keyPath]).filter(p):r?this.filter(p):this.where(n).equals("")},e.prototype.filter=function(t){return this.toCollection().and(t)},e.prototype.count=function(t){return this.toCollection().count(t)},e.prototype.offset=function(t){return this.toCollection().offset(t)},e.prototype.limit=function(t){return this.toCollection().limit(t)},e.prototype.each=function(t){return this.toCollection().each(t)},e.prototype.toArray=function(t){return this.toCollection().toArray(t)},e.prototype.toCollection=function(){return new this.db.Collection(new this.db.WhereClause(this))},e.prototype.orderBy=function(t){return new this.db.Collection(new this.db.WhereClause(this,On(t)?"["+t.join("+")+"]":t))},e.prototype.reverse=function(){return this.toCollection().reverse()},e.prototype.mapToClass=function(t){this.schema.mappedClass=t;var n=function(r){if(!r)return r;var i=Object.create(t.prototype);for(var l in r)if(fr(r,l))try{i[l]=r[l]}catch{}return i};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=n,this.hook("reading",n),t},e.prototype.defineClass=function(){function t(n){zn(this,n)}return this.mapToClass(t)},e.prototype.add=function(t,n){var r=this,i=this.schema.primKey,l=i.auto,g=i.keyPath,o=t;return g&&l&&(o=Hu(g)(t)),this._trans("readwrite",function(a){return r.core.mutate({trans:a,type:"add",keys:n!=null?[n]:null,values:[o]})}).then(function(a){return a.numFailures?$e.reject(a.failures[0]):a.lastResult}).then(function(a){if(g)try{Mr(t,g,a)}catch{}return a})},e.prototype.update=function(t,n){if(typeof t=="object"&&!On(t)){var r=Ti(t,this.schema.primKey.keyPath);if(r===void 0)return en(new Je.InvalidArgument("Given object does not contain its primary key"));try{typeof n!="function"?Xt(n).forEach(function(i){Mr(t,i,n[i])}):n(t,{value:t,primKey:r})}catch{}return this.where(":id").equals(r).modify(n)}else return this.where(":id").equals(t).modify(n)},e.prototype.put=function(t,n){var r=this,i=this.schema.primKey,l=i.auto,g=i.keyPath,o=t;return g&&l&&(o=Hu(g)(t)),this._trans("readwrite",function(a){return r.core.mutate({trans:a,type:"put",values:[o],keys:n!=null?[n]:null})}).then(function(a){return a.numFailures?$e.reject(a.failures[0]):a.lastResult}).then(function(a){if(g)try{Mr(t,g,a)}catch{}return a})},e.prototype.delete=function(t){var n=this;return this._trans("readwrite",function(r){return n.core.mutate({trans:r,type:"delete",keys:[t]})}).then(function(r){return r.numFailures?$e.reject(r.failures[0]):void 0})},e.prototype.clear=function(){var t=this;return this._trans("readwrite",function(n){return t.core.mutate({trans:n,type:"deleteRange",range:xC})}).then(function(n){return n.numFailures?$e.reject(n.failures[0]):void 0})},e.prototype.bulkGet=function(t){var n=this;return this._trans("readonly",function(r){return n.core.getMany({keys:t,trans:r}).then(function(i){return i.map(function(l){return n.hook.reading.fire(l)})})})},e.prototype.bulkAdd=function(t,n,r){var i=this,l=Array.isArray(n)?n:void 0;r=r||(l?void 0:n);var g=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,c=a.auto,p=a.keyPath;if(p&&l)throw new Je.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(l&&l.length!==t.length)throw new Je.InvalidArgument("Arguments objects and keys must have the same length");var u=t.length,f=p&&c?t.map(Hu(p)):t;return i.core.mutate({trans:o,type:"add",keys:l,values:f,wantResults:g}).then(function(s){var d=s.numFailures,v=s.results,h=s.lastResult,m=s.failures,y=g?v:h;if(d===0)return y;throw new al(i.name+".bulkAdd(): "+d+" of "+u+" operations failed",m)})})},e.prototype.bulkPut=function(t,n,r){var i=this,l=Array.isArray(n)?n:void 0;r=r||(l?void 0:n);var g=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,c=a.auto,p=a.keyPath;if(p&&l)throw new Je.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(l&&l.length!==t.length)throw new Je.InvalidArgument("Arguments objects and keys must have the same length");var u=t.length,f=p&&c?t.map(Hu(p)):t;return i.core.mutate({trans:o,type:"put",keys:l,values:f,wantResults:g}).then(function(s){var d=s.numFailures,v=s.results,h=s.lastResult,m=s.failures,y=g?v:h;if(d===0)return y;throw new al(i.name+".bulkPut(): "+d+" of "+u+" operations failed",m)})})},e.prototype.bulkDelete=function(t){var n=this,r=t.length;return this._trans("readwrite",function(i){return n.core.mutate({trans:i,type:"delete",keys:t})}).then(function(i){var l=i.numFailures,g=i.lastResult,o=i.failures;if(l===0)return g;throw new al(n.name+".bulkDelete(): "+l+" of "+r+" operations failed",o)})},e}();function pu(e){var t={},n=function(o,a){if(a){for(var c=arguments.length,p=new Array(c-1);--c;)p[c-1]=arguments[c];return t[o].subscribe.apply(null,p),e}else if(typeof o=="string")return t[o]};n.addEventType=l;for(var r=1,i=arguments.length;r<i;++r)l(arguments[r]);return n;function l(o,a,c){if(typeof o=="object")return g(o);a||(a=jV),c||(c=Et);var p={subscribers:[],fire:c,subscribe:function(u){p.subscribers.indexOf(u)===-1&&(p.subscribers.push(u),p.fire=a(p.fire,u))},unsubscribe:function(u){p.subscribers=p.subscribers.filter(function(f){return f!==u}),p.fire=p.subscribers.reduce(a,c)}};return t[o]=n[o]=p,p}function g(o){Xt(o).forEach(function(a){var c=o[a];if(On(c))l(a,o[a][0],o[a][1]);else if(c==="asap")var p=l(a,fu,function(){for(var f=arguments.length,s=new Array(f);f--;)s[f]=arguments[f];p.subscribers.forEach(function(d){iC(function(){d.apply(null,s)})})});else throw new Je.InvalidArgument("Invalid event config")})}}function vu(e,t){return bs(t).from({prototype:e}),t}function n9(e){return vu(t9.prototype,function(n,r,i){this.db=e,this._tx=i,this.name=n,this.schema=r,this.hook=e._allTables[n]?e._allTables[n].hook:pu(null,{creating:[NV,Et],reading:[BV,fu],updating:[$V,Et],deleting:[zV,Et]})})}function So(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Wd(e,t){e.filter=Qa(e.filter,t)}function Gd(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Qa(r(),t())}:t,e.justLimit=n&&!r}function r9(e,t){e.isMatch=Qa(e.isMatch,t)}function wc(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new Je.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function hb(e,t,n){var r=wc(e,t.schema);return t.openCursor({trans:n,values:!e.keysOnly,reverse:e.dir==="prev",unique:!!e.unique,query:{index:r,range:e.range}})}function Wu(e,t,n,r){var i=e.replayFilter?Qa(e.filter,e.replayFilter()):e.filter;if(e.or){var l={},g=function(o,a,c){if(!i||i(a,c,function(f){return a.stop(f)},function(f){return a.fail(f)})){var p=a.primaryKey,u=""+p;u==="[object ArrayBuffer]"&&(u=""+new Uint8Array(p)),fr(l,u)||(l[u]=!0,t(o,a,c))}};return Promise.all([e.or._iterate(g,n),pb(hb(e,r,n),e.algorithm,g,!e.keysOnly&&e.valueMapper)])}else return pb(hb(e,r,n),Qa(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function pb(e,t,n,r){var i=r?function(g,o,a){return n(r(g),o,a)}:n,l=Lt(i);return e.then(function(g){if(g)return g.start(function(){var o=function(){return g.continue()};(!t||t(g,function(a){return o=a},function(a){g.stop(a),o=Et},function(a){g.fail(a),o=Et}))&&l(g.value,g,function(a){return o=a}),o()})})}function Ln(e,t){try{var n=vb(e),r=vb(t);if(n!==r)return n==="Array"?1:r==="Array"?-1:n==="binary"?1:r==="binary"?-1:n==="string"?1:r==="string"?-1:n==="Date"?1:r!=="Date"?NaN:-1;switch(n){case"number":case"Date":case"string":return e>t?1:e<t?-1:0;case"binary":return a9(gb(e),gb(t));case"Array":return i9(e,t)}}catch{}return NaN}function i9(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,l=0;l<i;++l){var g=Ln(e[l],t[l]);if(g!==0)return g}return n===r?0:n<r?-1:1}function a9(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,l=0;l<i;++l)if(e[l]!==t[l])return e[l]<t[l]?-1:1;return n===r?0:n<r?-1:1}function vb(e){var t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";var n=fp(e);return n==="ArrayBuffer"?"binary":n}function gb(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var o9=function(){function e(){}return e.prototype._read=function(t,n){var r=this._ctx;return r.error?r.table._trans(null,en.bind(null,r.error)):r.table._trans("readonly",t).then(n)},e.prototype._write=function(t){var n=this._ctx;return n.error?n.table._trans(null,en.bind(null,n.error)):n.table._trans("readwrite",t,"locked")},e.prototype._addAlgorithm=function(t){var n=this._ctx;n.algorithm=Qa(n.algorithm,t)},e.prototype._iterate=function(t,n){return Wu(this._ctx,t,n,this._ctx.table.core)},e.prototype.clone=function(t){var n=Object.create(this.constructor.prototype),r=Object.create(this._ctx);return t&&zn(r,t),n._ctx=r,n},e.prototype.raw=function(){return this._ctx.valueMapper=null,this},e.prototype.each=function(t){var n=this._ctx;return this._read(function(r){return Wu(n,t,r,n.table.core)})},e.prototype.count=function(t){var n=this;return this._read(function(r){var i=n._ctx,l=i.table.core;if(So(i,!0))return l.count({trans:r,query:{index:wc(i,l.schema),range:i.range}}).then(function(o){return Math.min(o,i.limit)});var g=0;return Wu(i,function(){return++g,!1},r,l).then(function(){return g})}).then(t)},e.prototype.sortBy=function(t,n){var r=t.split(".").reverse(),i=r[0],l=r.length-1;function g(c,p){return p?g(c[r[p]],p-1):c[i]}var o=this._ctx.dir==="next"?1:-1;function a(c,p){var u=g(c,l),f=g(p,l);return u<f?-o:u>f?o:0}return this.toArray(function(c){return c.sort(a)}).then(n)},e.prototype.toArray=function(t){var n=this;return this._read(function(r){var i=n._ctx;if(i.dir==="next"&&So(i,!0)&&i.limit>0){var l=i.valueMapper,g=wc(i,i.table.core.schema);return i.table.core.query({trans:r,limit:i.limit,values:!0,query:{index:g,range:i.range}}).then(function(a){var c=a.result;return l?c.map(l):c})}else{var o=[];return Wu(i,function(a){return o.push(a)},r,i.table.core).then(function(){return o})}},t)},e.prototype.offset=function(t){var n=this._ctx;return t<=0?this:(n.offset+=t,So(n)?Gd(n,function(){var r=t;return function(i,l){return r===0?!0:r===1?(--r,!1):(l(function(){i.advance(r),r=0}),!1)}}):Gd(n,function(){var r=t;return function(){return--r<0}}),this)},e.prototype.limit=function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),Gd(this._ctx,function(){var n=t;return function(r,i,l){return--n<=0&&i(l),n>=0}},!0),this},e.prototype.until=function(t,n){return Wd(this._ctx,function(r,i,l){return t(r.value)?(i(l),n):!0}),this},e.prototype.first=function(t){return this.limit(1).toArray(function(n){return n[0]}).then(t)},e.prototype.last=function(t){return this.reverse().first(t)},e.prototype.filter=function(t){return Wd(this._ctx,function(n){return t(n.value)}),r9(this._ctx,t),this},e.prototype.and=function(t){return this.filter(t)},e.prototype.or=function(t){return new this.db.WhereClause(this._ctx.table,t,this)},e.prototype.reverse=function(){return this._ctx.dir=this._ctx.dir==="prev"?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},e.prototype.desc=function(){return this.reverse()},e.prototype.eachKey=function(t){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,i){t(i.key,i)})},e.prototype.eachUniqueKey=function(t){return this._ctx.unique="unique",this.eachKey(t)},e.prototype.eachPrimaryKey=function(t){var n=this._ctx;return n.keysOnly=!n.isMatch,this.each(function(r,i){t(i.primaryKey,i)})},e.prototype.keys=function(t){var n=this._ctx;n.keysOnly=!n.isMatch;var r=[];return this.each(function(i,l){r.push(l.key)}).then(function(){return r}).then(t)},e.prototype.primaryKeys=function(t){var n=this._ctx;if(n.dir==="next"&&So(n,!0)&&n.limit>0)return this._read(function(i){var l=wc(n,n.table.core.schema);return n.table.core.query({trans:i,values:!1,limit:n.limit,query:{index:l,range:n.range}})}).then(function(i){var l=i.result;return l}).then(t);n.keysOnly=!n.isMatch;var r=[];return this.each(function(i,l){r.push(l.primaryKey)}).then(function(){return r}).then(t)},e.prototype.uniqueKeys=function(t){return this._ctx.unique="unique",this.keys(t)},e.prototype.firstKey=function(t){return this.limit(1).keys(function(n){return n[0]}).then(t)},e.prototype.lastKey=function(t){return this.reverse().firstKey(t)},e.prototype.distinct=function(){var t=this._ctx,n=t.index&&t.table.schema.idxByName[t.index];if(!n||!n.multi)return this;var r={};return Wd(this._ctx,function(i){var l=i.primaryKey.toString(),g=fr(r,l);return r[l]=!0,!g}),this},e.prototype.modify=function(t){var n=this,r=this._ctx;return this._write(function(i){var l;if(typeof t=="function")l=t;else{var g=Xt(t),o=g.length;l=function(m){for(var y=!1,b=0;b<o;++b){var _=g[b],S=t[_];Ti(m,_)!==S&&(Mr(m,_,S),y=!0)}return y}}var a=r.table.core,c=a.schema.primaryKey,p=c.outbound,u=c.extractKey,f=n.db._options.modifyChunkSize||200,s=[],d=0,v=[],h=function(m,y){var b=y.failures,_=y.numFailures;d+=m-_;for(var S=0,x=Xt(b);S<x.length;S++){var T=x[S];s.push(b[T])}};return n.clone().primaryKeys().then(function(m){var y=function(b){var _=Math.min(f,m.length-b);return a.getMany({trans:i,keys:m.slice(b,b+_),cache:"immutable"}).then(function(S){for(var x=[],T=[],E=p?[]:null,k=[],D=0;D<_;++D){var W=S[D],I={value:cu(W),primKey:m[b+D]};l.call(I,I.value,I)!==!1&&(I.value==null?k.push(m[b+D]):!p&&Ln(u(W),u(I.value))!==0?(k.push(m[b+D]),x.push(I.value)):(T.push(I.value),p&&E.push(m[b+D])))}var U=So(r)&&r.limit===1/0&&(typeof t!="function"||t===Kd)&&{index:r.index,range:r.range};return Promise.resolve(x.length>0&&a.mutate({trans:i,type:"add",values:x}).then(function(A){for(var ee in A.failures)k.splice(parseInt(ee),1);h(x.length,A)})).then(function(){return(T.length>0||U&&typeof t=="object")&&a.mutate({trans:i,type:"put",keys:E,values:T,criteria:U,changeSpec:typeof t!="function"&&t}).then(function(A){return h(T.length,A)})}).then(function(){return(k.length>0||U&&t===Kd)&&a.mutate({trans:i,type:"delete",keys:k,criteria:U}).then(function(A){return h(k.length,A)})}).then(function(){return m.length>b+_&&y(b+f)})})};return y(0).then(function(){if(s.length>0)throw new Xc("Error modifying one or more objects",s,d,v);return m.length})})})},e.prototype.delete=function(){var t=this._ctx,n=t.range;return So(t)&&(t.isPrimKey&&!e9||n.type===3)?this._write(function(r){var i=t.table.core.schema.primaryKey,l=n;return t.table.core.count({trans:r,query:{index:i,range:l}}).then(function(g){return t.table.core.mutate({trans:r,type:"deleteRange",range:l}).then(function(o){var a=o.failures;o.lastResult,o.results;var c=o.numFailures;if(c)throw new Xc("Could not delete some values",Object.keys(a).map(function(p){return a[p]}),g-c);return g-c})})}):this.modify(Kd)},e}(),Kd=function(e,t){return t.value=null};function s9(e){return vu(o9.prototype,function(n,r){this.db=e;var i=xC,l=null;if(r)try{i=r()}catch(c){l=c}var g=n._ctx,o=g.table,a=o.hook.reading.fire;this._ctx={table:o,index:g.index,isPrimKey:!g.index||o.schema.primKey.keyPath&&g.index===o.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:l,or:g.or,valueMapper:a!==fu?a:null}})}function l9(e,t){return e<t?-1:e===t?0:1}function u9(e,t){return e>t?-1:e===t?0:1}function qn(e,t,n){var r=e instanceof EC?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function Co(e){return new e.Collection(e,function(){return TC("")}).limit(0)}function c9(e){return e==="next"?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function f9(e){return e==="next"?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function d9(e,t,n,r,i,l){for(var g=Math.min(e.length,r.length),o=-1,a=0;a<g;++a){var c=t[a];if(c!==r[a])return i(e[a],n[a])<0?e.substr(0,a)+n[a]+n.substr(a+1):i(e[a],r[a])<0?e.substr(0,a)+r[a]+n.substr(a+1):o>=0?e.substr(0,o)+t[o]+n.substr(o+1):null;i(e[a],c)<0&&(o=a)}return g<r.length&&l==="next"?e+n.substr(e.length):g<e.length&&l==="prev"?e.substr(0,n.length):o<0?null:e.substr(0,o)+r[o]+n.substr(o+1)}function Gu(e,t,n,r){var i,l,g,o,a,c,p,u=n.length;if(!n.every(function(v){return typeof v=="string"}))return qn(e,SC);function f(v){i=c9(v),l=f9(v),g=v==="next"?l9:u9;var h=n.map(function(m){return{lower:l(m),upper:i(m)}}).sort(function(m,y){return g(m.lower,y.lower)});o=h.map(function(m){return m.upper}),a=h.map(function(m){return m.lower}),c=v,p=v==="next"?"":r}f("next");var s=new e.Collection(e,function(){return Yi(o[0],a[u-1]+r)});s._ondirectionchange=function(v){f(v)};var d=0;return s._addAlgorithm(function(v,h,m){var y=v.key;if(typeof y!="string")return!1;var b=l(y);if(t(b,a,d))return!0;for(var _=null,S=d;S<u;++S){var x=d9(y,b,o[S],a[S],g,c);x===null&&_===null?d=S+1:(_===null||g(_,x)>0)&&(_=x)}return h(_!==null?function(){v.continue(_+p)}:m),!1}),s}function Yi(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function TC(e){return{type:1,lower:e,upper:e}}var EC=function(){function e(){}return Object.defineProperty(e.prototype,"Collection",{get:function(){return this._ctx.table.db.Collection},enumerable:!1,configurable:!0}),e.prototype.between=function(t,n,r,i){r=r!==!1,i=i===!0;try{return this._cmp(t,n)>0||this._cmp(t,n)===0&&(r||i)&&!(r&&i)?Co(this):new this.Collection(this,function(){return Yi(t,n,!r,!i)})}catch{return qn(this,di)}},e.prototype.equals=function(t){return t==null?qn(this,di):new this.Collection(this,function(){return TC(t)})},e.prototype.above=function(t){return t==null?qn(this,di):new this.Collection(this,function(){return Yi(t,void 0,!0)})},e.prototype.aboveOrEqual=function(t){return t==null?qn(this,di):new this.Collection(this,function(){return Yi(t,void 0,!1)})},e.prototype.below=function(t){return t==null?qn(this,di):new this.Collection(this,function(){return Yi(void 0,t,!1,!0)})},e.prototype.belowOrEqual=function(t){return t==null?qn(this,di):new this.Collection(this,function(){return Yi(void 0,t)})},e.prototype.startsWith=function(t){return typeof t!="string"?qn(this,SC):this.between(t,t+Da,!0,!0)},e.prototype.startsWithIgnoreCase=function(t){return t===""?this.startsWith(t):Gu(this,function(n,r){return n.indexOf(r[0])===0},[t],Da)},e.prototype.equalsIgnoreCase=function(t){return Gu(this,function(n,r){return n===r[0]},[t],"")},e.prototype.anyOfIgnoreCase=function(){var t=Si.apply(Io,arguments);return t.length===0?Co(this):Gu(this,function(n,r){return r.indexOf(n)!==-1},t,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var t=Si.apply(Io,arguments);return t.length===0?Co(this):Gu(this,function(n,r){return r.some(function(i){return n.indexOf(i)===0})},t,Da)},e.prototype.anyOf=function(){var t=this,n=Si.apply(Io,arguments),r=this._cmp;try{n.sort(r)}catch{return qn(this,di)}if(n.length===0)return Co(this);var i=new this.Collection(this,function(){return Yi(n[0],n[n.length-1])});i._ondirectionchange=function(g){r=g==="next"?t._ascending:t._descending,n.sort(r)};var l=0;return i._addAlgorithm(function(g,o,a){for(var c=g.key;r(c,n[l])>0;)if(++l,l===n.length)return o(a),!1;return r(c,n[l])===0?!0:(o(function(){g.continue(n[l])}),!1)}),i},e.prototype.notEqual=function(t){return this.inAnyRange([[Cp,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var t=Si.apply(Io,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return qn(this,di)}var n=t.reduce(function(r,i){return r?r.concat([[r[r.length-1][1],i]]):[[Cp,i]]},null);return n.push([t[t.length-1],this.db._maxKey]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},e.prototype.inAnyRange=function(t,n){var r=this,i=this._cmp,l=this._ascending,g=this._descending,o=this._min,a=this._max;if(t.length===0)return Co(this);if(!t.every(function(S){return S[0]!==void 0&&S[1]!==void 0&&l(S[0],S[1])<=0}))return qn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Je.InvalidArgument);var c=!n||n.includeLowers!==!1,p=n&&n.includeUppers===!0;function u(S,x){for(var T=0,E=S.length;T<E;++T){var k=S[T];if(i(x[0],k[1])<0&&i(x[1],k[0])>0){k[0]=o(k[0],x[0]),k[1]=a(k[1],x[1]);break}}return T===E&&S.push(x),S}var f=l;function s(S,x){return f(S[0],x[0])}var d;try{d=t.reduce(u,[]),d.sort(s)}catch{return qn(this,di)}var v=0,h=p?function(S){return l(S,d[v][1])>0}:function(S){return l(S,d[v][1])>=0},m=c?function(S){return g(S,d[v][0])>0}:function(S){return g(S,d[v][0])>=0};function y(S){return!h(S)&&!m(S)}var b=h,_=new this.Collection(this,function(){return Yi(d[0][0],d[d.length-1][1],!c,!p)});return _._ondirectionchange=function(S){S==="next"?(b=h,f=l):(b=m,f=g),d.sort(s)},_._addAlgorithm(function(S,x,T){for(var E=S.key;b(E);)if(++v,v===d.length)return x(T),!1;return y(E)?!0:(r._cmp(E,d[v][1])===0||r._cmp(E,d[v][0])===0||x(function(){f===l?S.continue(d[v][0]):S.continue(d[v][1])}),!1)}),_},e.prototype.startsWithAnyOf=function(){var t=Si.apply(Io,arguments);return t.every(function(n){return typeof n=="string"})?t.length===0?Co(this):this.inAnyRange(t.map(function(n){return[n,n+Da]})):qn(this,"startsWithAnyOf() only works with strings")},e}();function h9(e){return vu(EC.prototype,function(n,r,i){this.db=e,this._ctx={table:n,index:r===":id"?null:r,or:i};var l=e._deps.indexedDB;if(!l)throw new Je.MissingAPI;this._cmp=this._ascending=l.cmp.bind(l),this._descending=function(g,o){return l.cmp(o,g)},this._max=function(g,o){return l.cmp(g,o)>0?g:o},this._min=function(g,o){return l.cmp(g,o)<0?g:o},this._IDBKeyRange=e._deps.IDBKeyRange})}function qr(e){return Lt(function(t){return Nl(t),e(t.target.error),!1})}function Nl(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var zl="storagemutated",ra="x-storagemutated-1",va=pu(null,zl),p9=function(){function e(){}return e.prototype._lock=function(){return zs(!Xe.global),++this._reculock,this._reculock===1&&!Xe.global&&(Xe.lockOwnerFor=this),this},e.prototype._unlock=function(){if(zs(!Xe.global),--this._reculock===0)for(Xe.global||(Xe.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{Ss(t[1],t[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&Xe.lockOwnerFor!==this},e.prototype.create=function(t){var n=this;if(!this.mode)return this;var r=this.db.idbdb,i=this.db._state.dbOpenError;if(zs(!this.idbtrans),!t&&!r)switch(i&&i.name){case"DatabaseClosedError":throw new Je.DatabaseClosed(i);case"MissingAPIError":throw new Je.MissingAPI(i.message,i);default:throw new Je.OpenFailed(i)}if(!this.active)throw new Je.TransactionInactive;return zs(this._completion._state===null),t=this.idbtrans=t||(this.db.core?this.db.core.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability}):r.transaction(this.storeNames,this.mode,{durability:this.chromeTransactionDurability})),t.onerror=Lt(function(l){Nl(l),n._reject(t.error)}),t.onabort=Lt(function(l){Nl(l),n.active&&n._reject(new Je.Abort(t.error)),n.active=!1,n.on("abort").fire(l)}),t.oncomplete=Lt(function(){n.active=!1,n._resolve(),"mutatedParts"in t&&va.storagemutated.fire(t.mutatedParts)}),this},e.prototype._promise=function(t,n,r){var i=this;if(t==="readwrite"&&this.mode!=="readwrite")return en(new Je.ReadOnly("Transaction is readonly"));if(!this.active)return en(new Je.TransactionInactive);if(this._locked())return new $e(function(g,o){i._blockedFuncs.push([function(){i._promise(t,n,r).then(g,o)},Xe])});if(r)return ha(function(){var g=new $e(function(o,a){i._lock();var c=n(o,a,i);c&&c.then&&c.then(o,a)});return g.finally(function(){return i._unlock()}),g._lib=!0,g});var l=new $e(function(g,o){var a=n(g,o,i);a&&a.then&&a.then(g,o)});return l._lib=!0,l},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(t){var n=this._root(),r=$e.resolve(t);if(n._waitingFor)n._waitingFor=n._waitingFor.then(function(){return r});else{n._waitingFor=r,n._waitingQueue=[];var i=n.idbtrans.objectStore(n.storeNames[0]);(function g(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(i.get(-1/0).onsuccess=g)})()}var l=n._waitingFor;return new $e(function(g,o){r.then(function(a){return n._waitingQueue.push(Lt(g.bind(null,a)))},function(a){return n._waitingQueue.push(Lt(o.bind(null,a)))}).finally(function(){n._waitingFor===l&&(n._waitingFor=null)})})},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Je.Abort))},e.prototype.table=function(t){var n=this._memoizedTables||(this._memoizedTables={});if(fr(n,t))return n[t];var r=this.schema[t];if(!r)throw new Je.NotFound("Table "+t+" not part of transaction");var i=new this.db.Table(t,r,this);return i.core=this.db.core.table(t),n[t]=i,i},e}();function v9(e){return vu(p9.prototype,function(n,r,i,l,g){var o=this;this.db=e,this.mode=n,this.storeNames=r,this.schema=i,this.chromeTransactionDurability=l,this.idbtrans=null,this.on=pu(this,"complete","error","abort"),this.parent=g||null,this.active=!0,this._reculock=0,this._blockedFuncs=[],this._resolve=null,this._reject=null,this._waitingFor=null,this._waitingQueue=null,this._spinCount=0,this._completion=new $e(function(a,c){o._resolve=a,o._reject=c}),this._completion.then(function(){o.active=!1,o.on.complete.fire()},function(a){var c=o.active;return o.active=!1,o.on.error.fire(a),o.parent?o.parent._reject(a):c&&o.idbtrans&&o.idbtrans.abort(),en(a)})})}function xp(e,t,n,r,i,l,g){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:l,src:(n&&!g?"&":"")+(r?"*":"")+(i?"++":"")+kC(t)}}function kC(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function OC(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:aC(n,function(r){return[r.name,r]})}}function g9(e){return e.length===1?e[0]:e}var $l=function(e){try{return e.only([[]]),$l=function(){return[[]]},[[]]}catch{return $l=function(){return Da},Da}};function Tp(e){return e==null?function(){}:typeof e=="string"?m9(e):function(t){return Ti(t,e)}}function m9(e){var t=e.split(".");return t.length===1?function(n){return n[e]}:function(n){return Ti(n,e)}}function mb(e){return[].slice.call(e)}var y9=0;function sl(e){return e==null?":id":typeof e=="string"?e:"["+e.join("+")+"]"}function b9(e,t,n){function r(u,f){var s=mb(u.objectStoreNames);return{schema:{name:u.name,tables:s.map(function(d){return f.objectStore(d)}).map(function(d){var v=d.keyPath,h=d.autoIncrement,m=On(v),y=v==null,b={},_={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:y,compound:m,keyPath:v,autoIncrement:h,unique:!0,extractKey:Tp(v)},indexes:mb(d.indexNames).map(function(S){return d.index(S)}).map(function(S){var x=S.name,T=S.unique,E=S.multiEntry,k=S.keyPath,D=On(k),W={name:x,compound:D,keyPath:k,unique:T,multiEntry:E,extractKey:Tp(k)};return b[sl(k)]=W,W}),getIndexByKeyPath:function(S){return b[sl(S)]}};return b[":id"]=_.primaryKey,v!=null&&(b[sl(v)]=_.primaryKey),_})},hasGetAll:s.length>0&&"getAll"in f.objectStore(s[0])&&!(typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604)}}function i(u){if(u.type===3)return null;if(u.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var f=u.lower,s=u.upper,d=u.lowerOpen,v=u.upperOpen,h=f===void 0?s===void 0?null:t.upperBound(s,!!v):s===void 0?t.lowerBound(f,!!d):t.bound(f,s,!!d,!!v);return h}function l(u){var f=u.name;function s(h){var m=h.trans,y=h.type,b=h.keys,_=h.values,S=h.range;return new Promise(function(x,T){x=Lt(x);var E=m.objectStore(f),k=E.keyPath==null,D=y==="put"||y==="add";if(!D&&y!=="delete"&&y!=="deleteRange")throw new Error("Invalid operation type: "+y);var W=(b||_||{length:1}).length;if(b&&_&&b.length!==_.length)throw new Error("Given keys array must have same length as given values array.");if(W===0)return x({numFailures:0,failures:{},results:[],lastResult:void 0});var I,U=[],A=[],ee=0,de=function(P){++ee,Nl(P)};if(y==="deleteRange"){if(S.type===4)return x({numFailures:ee,failures:A,results:[],lastResult:void 0});S.type===3?U.push(I=E.clear()):U.push(I=E.delete(i(S)))}else{var z=D?k?[_,b]:[_,null]:[b,null],q=z[0],O=z[1];if(D)for(var F=0;F<W;++F)U.push(I=O&&O[F]!==void 0?E[y](q[F],O[F]):E[y](q[F])),I.onerror=de;else for(var F=0;F<W;++F)U.push(I=E[y](q[F])),I.onerror=de}var R=function(P){var G=P.target.result;U.forEach(function($,M){return $.error!=null&&(A[M]=$.error)}),x({numFailures:ee,failures:A,results:y==="delete"?b:U.map(function($){return $.result}),lastResult:G})};I.onerror=function(P){de(P),R(P)},I.onsuccess=R})}function d(h){var m=h.trans,y=h.values,b=h.query,_=h.reverse,S=h.unique;return new Promise(function(x,T){x=Lt(x);var E=b.index,k=b.range,D=m.objectStore(f),W=E.isPrimaryKey?D:D.index(E.name),I=_?S?"prevunique":"prev":S?"nextunique":"next",U=y||!("openKeyCursor"in W)?W.openCursor(i(k),I):W.openKeyCursor(i(k),I);U.onerror=qr(T),U.onsuccess=Lt(function(A){var ee=U.result;if(!ee){x(null);return}ee.___id=++y9,ee.done=!1;var de=ee.continue.bind(ee),z=ee.continuePrimaryKey;z&&(z=z.bind(ee));var q=ee.advance.bind(ee),O=function(){throw new Error("Cursor not started")},F=function(){throw new Error("Cursor not stopped")};ee.trans=m,ee.stop=ee.continue=ee.continuePrimaryKey=ee.advance=O,ee.fail=Lt(T),ee.next=function(){var R=this,P=1;return this.start(function(){return P--?R.continue():R.stop()}).then(function(){return R})},ee.start=function(R){var P=new Promise(function($,M){$=Lt($),U.onerror=qr(M),ee.fail=M,ee.stop=function(ne){ee.stop=ee.continue=ee.continuePrimaryKey=ee.advance=F,$(ne)}}),G=function(){if(U.result)try{R()}catch($){ee.fail($)}else ee.done=!0,ee.start=function(){throw new Error("Cursor behind last entry")},ee.stop()};return U.onsuccess=Lt(function($){U.onsuccess=G,G()}),ee.continue=de,ee.continuePrimaryKey=z,ee.advance=q,G(),P},x(ee)},T)})}function v(h){return function(m){return new Promise(function(y,b){y=Lt(y);var _=m.trans,S=m.values,x=m.limit,T=m.query,E=x===1/0?void 0:x,k=T.index,D=T.range,W=_.objectStore(f),I=k.isPrimaryKey?W:W.index(k.name),U=i(D);if(x===0)return y({result:[]});if(h){var A=S?I.getAll(U,E):I.getAllKeys(U,E);A.onsuccess=function(q){return y({result:q.target.result})},A.onerror=qr(b)}else{var ee=0,de=S||!("openKeyCursor"in I)?I.openCursor(U):I.openKeyCursor(U),z=[];de.onsuccess=function(q){var O=de.result;if(!O)return y({result:z});if(z.push(S?O.value:O.primaryKey),++ee===x)return y({result:z});O.continue()},de.onerror=qr(b)}})}}return{name:f,schema:u,mutate:s,getMany:function(h){var m=h.trans,y=h.keys;return new Promise(function(b,_){b=Lt(b);for(var S=m.objectStore(f),x=y.length,T=new Array(x),E=0,k=0,D,W=function(ee){var de=ee.target;(T[de._pos]=de.result)!=null,++k===E&&b(T)},I=qr(_),U=0;U<x;++U){var A=y[U];A!=null&&(D=S.get(y[U]),D._pos=U,D.onsuccess=W,D.onerror=I,++E)}E===0&&b(T)})},get:function(h){var m=h.trans,y=h.key;return new Promise(function(b,_){b=Lt(b);var S=m.objectStore(f),x=S.get(y);x.onsuccess=function(T){return b(T.target.result)},x.onerror=qr(_)})},query:v(a),openCursor:d,count:function(h){var m=h.query,y=h.trans,b=m.index,_=m.range;return new Promise(function(S,x){var T=y.objectStore(f),E=b.isPrimaryKey?T:T.index(b.name),k=i(_),D=k?E.count(k):E.count();D.onsuccess=Lt(function(W){return S(W.target.result)}),D.onerror=qr(x)})}}}var g=r(e,n),o=g.schema,a=g.hasGetAll,c=o.tables.map(function(u){return l(u)}),p={};return c.forEach(function(u){return p[u.name]=u}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(u){var f=p[u];if(!f)throw new Error("Table '"+u+"' not found");return p[u]},MIN_KEY:-1/0,MAX_KEY:$l(t),schema:o}}function _9(e,t){return t.reduce(function(n,r){var i=r.create;return ht(ht({},n),i(n))},e)}function w9(e,t,n,r){var i=n.IDBKeyRange;n.indexedDB;var l=_9(b9(t,i,r),e.dbcore);return{dbcore:l}}function kg(e,t){var n=e._novip,r=t.db,i=w9(n._middlewares,r,n._deps,t);n.core=i.dbcore,n.tables.forEach(function(l){var g=l.name;n.core.schema.tables.some(function(o){return o.name===g})&&(l.core=n.core.table(g),n[g]instanceof n.Table&&(n[g].core=l.core))})}function tf(e,t,n,r){var i=e._novip;n.forEach(function(l){var g=r[l];t.forEach(function(o){var a=yg(o,l);(!a||"value"in a&&a.value===void 0)&&(o===i.Transaction.prototype||o instanceof i.Transaction?Ri(o,l,{get:function(){return this.table(l)},set:function(c){nC(this,l,{value:c,writable:!0,configurable:!0,enumerable:!0})}}):o[l]=new i.Table(l,g))})})}function Ep(e,t){var n=e._novip;t.forEach(function(r){for(var i in r)r[i]instanceof n.Table&&delete r[i]})}function S9(e,t){return e._cfg.version-t._cfg.version}function C9(e,t,n,r){var i=e._dbSchema,l=e._createTransaction("readwrite",e._storeNames,i);l.create(n),l._completion.catch(r);var g=l._reject.bind(l),o=Xe.transless||Xe;ha(function(){Xe.trans=l,Xe.transless=o,t===0?(Xt(i).forEach(function(a){Og(n,a,i[a].primKey,i[a].indexes)}),kg(e,n),$e.follow(function(){return e.on.populate.fire(l)}).catch(g)):x9(e,t,l,n).catch(g)})}function x9(e,t,n,r){var i=e._novip,l=[],g=i._versions,o=i._dbSchema=Ag(i,i.idbdb,r),a=!1,c=g.filter(function(u){return u._cfg.version>=t});c.forEach(function(u){l.push(function(){var f=o,s=u._cfg.dbschema;Op(i,f,r),Op(i,s,r),o=i._dbSchema=s;var d=AC(f,s);d.add.forEach(function(_){Og(r,_[0],_[1].primKey,_[1].indexes)}),d.change.forEach(function(_){if(_.recreate)throw new Je.Upgrade("Not yet support for changing primary key");var S=r.objectStore(_.name);_.add.forEach(function(x){return kp(S,x)}),_.change.forEach(function(x){S.deleteIndex(x.name),kp(S,x)}),_.del.forEach(function(x){return S.deleteIndex(x)})});var v=u._cfg.contentUpgrade;if(v&&u._cfg.version>t){kg(i,r),n._memoizedTables={},a=!0;var h=oC(s);d.del.forEach(function(_){h[_]=f[_]}),Ep(i,[i.Transaction.prototype]),tf(i,[i.Transaction.prototype],Xt(h),h),n.schema=h;var m=bg(v);m&&ws();var y,b=$e.follow(function(){if(y=v(n),y&&m){var _=Di.bind(null,null);y.then(_,_)}});return y&&typeof y.then=="function"?$e.resolve(y):b.then(function(){return y})}}),l.push(function(f){if(!a||!QV){var s=u._cfg.dbschema;E9(s,f)}Ep(i,[i.Transaction.prototype]),tf(i,[i.Transaction.prototype],i._storeNames,i._dbSchema),n.schema=i._dbSchema})});function p(){return l.length?$e.resolve(l.shift()(n.idbtrans)).then(p):$e.resolve()}return p().then(function(){T9(o,r)})}function AC(e,t){var n={del:[],add:[],change:[]},r;for(r in e)t[r]||n.del.push(r);for(r in t){var i=e[r],l=t[r];if(!i)n.add.push([r,l]);else{var g={name:r,def:l,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(l.primKey.keyPath||"")||i.primKey.auto!==l.primKey.auto&&!Kf)g.recreate=!0,n.change.push(g);else{var o=i.idxByName,a=l.idxByName,c=void 0;for(c in o)a[c]||g.del.push(c);for(c in a){var p=o[c],u=a[c];p?p.src!==u.src&&g.change.push(u):g.add.push(u)}(g.del.length>0||g.add.length>0||g.change.length>0)&&n.change.push(g)}}}return n}function Og(e,t,n,r){var i=e.db.createObjectStore(t,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach(function(l){return kp(i,l)}),i}function T9(e,t){Xt(e).forEach(function(n){t.db.objectStoreNames.contains(n)||Og(t,n,e[n].primKey,e[n].indexes)})}function E9(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(n){return e[n]==null&&t.db.deleteObjectStore(n)})}function kp(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Ag(e,t,n){var r={},i=Wf(t.objectStoreNames,0);return i.forEach(function(l){for(var g=n.objectStore(l),o=g.keyPath,a=xp(kC(o),o||"",!1,!1,!!g.autoIncrement,o&&typeof o!="string",!0),c=[],p=0;p<g.indexNames.length;++p){var u=g.index(g.indexNames[p]);o=u.keyPath;var f=xp(u.name,o,!!u.unique,!!u.multiEntry,!1,o&&typeof o!="string",!1);c.push(f)}r[l]=OC(l,a,c)}),r}function k9(e,t,n){var r=e._novip;r.verno=t.version/10;var i=r._dbSchema=Ag(r,t,n);r._storeNames=Wf(t.objectStoreNames,0),tf(r,[r._allTables],Xt(i),i)}function O9(e,t){var n=Ag(e,e.idbdb,t),r=AC(n,e._dbSchema);return!(r.add.length||r.change.some(function(i){return i.add.length||i.change.length}))}function Op(e,t,n){for(var r=e._novip,i=n.db.objectStoreNames,l=0;l<i.length;++l){var g=i[l],o=n.objectStore(g);r._hasGetAll="getAll"in o;for(var a=0;a<o.indexNames.length;++a){var c=o.indexNames[a],p=o.index(c).keyPath,u=typeof p=="string"?p:"["+Wf(p).join("+")+"]";if(t[g]){var f=t[g].idxByName[u];f&&(f.name=c,delete t[g].idxByName[u],t[g].idxByName[c]=f)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&It.WorkerGlobalScope&&It instanceof It.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}function A9(e){return e.split(",").map(function(t,n){t=t.trim();var r=t.replace(/([&*]|\+\+)/g,""),i=/^\[/.test(r)?r.match(/^\[(.*)\]$/)[1].split("+"):r;return xp(r,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),On(i),n===0)})}var P9=function(){function e(){}return e.prototype._parseStoresSpec=function(t,n){Xt(t).forEach(function(r){if(t[r]!==null){var i=A9(t[r]),l=i.shift();if(l.multi)throw new Je.Schema("Primary key cannot be multi-valued");i.forEach(function(g){if(g.auto)throw new Je.Schema("Only primary key can be marked as autoIncrement (++)");if(!g.keyPath)throw new Je.Schema("Index must have a name and cannot be an empty string")}),n[r]=OC(r,l,i)}})},e.prototype.stores=function(t){var n=this.db;this._cfg.storesSource=this._cfg.storesSource?zn(this._cfg.storesSource,t):t;var r=n._versions,i={},l={};return r.forEach(function(g){zn(i,g._cfg.storesSource),l=g._cfg.dbschema={},g._parseStoresSpec(i,l)}),n._dbSchema=l,Ep(n,[n._allTables,n,n.Transaction.prototype]),tf(n,[n._allTables,n,n.Transaction.prototype,this._cfg.tables],Xt(l),l),n._storeNames=Xt(l),this},e.prototype.upgrade=function(t){return this._cfg.contentUpgrade=Sg(this._cfg.contentUpgrade||Et,t),this},e}();function I9(e){return vu(P9.prototype,function(n){this.db=e,this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function Pg(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new Dg(Yf,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function Ig(e){return e&&typeof e.databases=="function"}function M9(e){var t=e.indexedDB,n=e.IDBKeyRange;return Ig(t)?Promise.resolve(t.databases()).then(function(r){return r.map(function(i){return i.name}).filter(function(i){return i!==Yf})}):Pg(t,n).toCollection().primaryKeys()}function R9(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Ig(n)&&t!==Yf&&Pg(n,r).put({name:t}).catch(Et)}function D9(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Ig(n)&&t!==Yf&&Pg(n,r).delete(t).catch(Et)}function Ap(e){return ha(function(){return Xe.letThrough=!0,e()})}function L9(){var e=!navigator.userAgentData&&/Safari\//.test(navigator.userAgent)&&!/Chrom(e|ium)\//.test(navigator.userAgent);if(!e||!indexedDB.databases)return Promise.resolve();var t;return new Promise(function(n){var r=function(){return indexedDB.databases().finally(n)};t=setInterval(r,100),r()}).finally(function(){return clearInterval(t)})}function F9(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?en(t.dbOpenError):e});li&&(t.openCanceller._stackHolder=fo()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new Je.DatabaseClosed("db.open() was cancelled")}var l=t.dbReadyResolve,g=null,o=!1,a=function(){return new $e(function(c,p){if(i(),!n)throw new Je.MissingAPI;var u=e.name,f=t.autoSchema?n.open(u):n.open(u,Math.round(e.verno*10));if(!f)throw new Je.MissingAPI;f.onerror=qr(p),f.onblocked=Lt(e._fireOnBlocked),f.onupgradeneeded=Lt(function(s){if(g=f.transaction,t.autoSchema&&!e._options.allowEmptyDB){f.onerror=Nl,g.abort(),f.result.close();var d=n.deleteDatabase(u);d.onsuccess=d.onerror=Lt(function(){p(new Je.NoSuchDatabase("Database "+u+" doesnt exist"))})}else{g.onerror=qr(p);var v=s.oldVersion>Math.pow(2,62)?0:s.oldVersion;o=v<1,e._novip.idbdb=f.result,C9(e,v/10,g,p)}},p),f.onsuccess=Lt(function(){g=null;var s=e._novip.idbdb=f.result,d=Wf(s.objectStoreNames);if(d.length>0)try{var v=s.transaction(g9(d),"readonly");t.autoSchema?k9(e,s,v):(Op(e,e._dbSchema,v),O9(e,v)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),kg(e,v)}catch{}ol.push(e),s.onversionchange=Lt(function(h){t.vcFired=!0,e.on("versionchange").fire(h)}),s.onclose=Lt(function(h){e.on("close").fire(h)}),o&&R9(e._deps,u),c()},p)}).catch(function(c){return c&&c.name==="UnknownError"&&t.PR1398_maxLoop>0?(t.PR1398_maxLoop--,console.warn("Dexie: Workaround for Chrome UnknownError on open()"),a()):$e.reject(c)})};return $e.race([r,(typeof navigator>"u"?$e.resolve():L9()).then(a)]).then(function(){return i(),t.onReadyBeingFired=[],$e.resolve(Ap(function(){return e.on.ready.fire(e.vip)})).then(function c(){if(t.onReadyBeingFired.length>0){var p=t.onReadyBeingFired.reduce(Sg,Et);return t.onReadyBeingFired=[],$e.resolve(Ap(function(){return p(e.vip)})).then(c)}})}).finally(function(){t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(function(){return e}).catch(function(c){t.dbOpenError=c;try{g&&g.abort()}catch{}return r===t.openCanceller&&e._close(),en(c)}).finally(function(){t.openComplete=!0,l()})}function Pp(e){var t=function(g){return e.next(g)},n=function(g){return e.throw(g)},r=l(t),i=l(n);function l(g){return function(o){var a=g(o),c=a.value;return a.done?c:!c||typeof c.then!="function"?On(c)?Promise.all(c).then(r,i):r(c):c.then(r,i)}}return l(t)()}function B9(e,t,n){var r=arguments.length;if(r<2)throw new Je.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];n=i.pop();var l=sC(i);return[e,l,n]}function PC(e,t,n,r,i){return $e.resolve().then(function(){var l=Xe.transless||Xe,g=e._createTransaction(t,n,e._dbSchema,r),o={trans:g,transless:l};if(r)g.idbtrans=r.idbtrans;else try{g.create(),e._state.PR1398_maxLoop=3}catch(u){return u.name===wg.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return PC(e,t,n,null,i)})):en(u)}var a=bg(i);a&&ws();var c,p=$e.follow(function(){if(c=i.call(g,g),c)if(a){var u=Di.bind(null,null);c.then(u,u)}else typeof c.next=="function"&&typeof c.throw=="function"&&(c=Pp(c))},o);return(c&&typeof c.then=="function"?$e.resolve(c).then(function(u){return g.active?u:en(new Je.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):p.then(function(){return c})).then(function(u){return r&&g._resolve(),g._completion.then(function(){return u})}).catch(function(u){return g._reject(u),en(u)})})}function Ku(e,t,n){for(var r=On(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}function N9(e){return ht(ht({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},l=[];function g(v,h,m){var y=sl(v),b=i[y]=i[y]||[],_=v==null?0:typeof v=="string"?1:v.length,S=h>0,x=ht(ht({},m),{isVirtual:S,keyTail:h,keyLength:_,extractKey:Tp(v),unique:!S&&m.unique});if(b.push(x),x.isPrimaryKey||l.push(x),_>1){var T=_===2?v[0]:v.slice(0,_-1);g(T,h+1,m)}return b.sort(function(E,k){return E.keyTail-k.keyTail}),x}var o=g(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[o];for(var a=0,c=r.indexes;a<c.length;a++){var p=c[a];g(p.keyPath,0,p)}function u(v){var h=i[sl(v)];return h&&h[0]}function f(v,h){return{type:v.type===1?2:v.type,lower:Ku(v.lower,v.lowerOpen?e.MAX_KEY:e.MIN_KEY,h),lowerOpen:!0,upper:Ku(v.upper,v.upperOpen?e.MIN_KEY:e.MAX_KEY,h),upperOpen:!0}}function s(v){var h=v.query.index;return h.isVirtual?ht(ht({},v),{query:{index:h,range:f(v.query.range,h.keyTail)}}):v}var d=ht(ht({},n),{schema:ht(ht({},r),{primaryKey:o,indexes:l,getIndexByKeyPath:u}),count:function(v){return n.count(s(v))},query:function(v){return n.query(s(v))},openCursor:function(v){var h=v.query.index,m=h.keyTail,y=h.isVirtual,b=h.keyLength;if(!y)return n.openCursor(v);function _(S){function x(E){E!=null?S.continue(Ku(E,v.reverse?e.MAX_KEY:e.MIN_KEY,m)):v.unique?S.continue(S.key.slice(0,b).concat(v.reverse?e.MIN_KEY:e.MAX_KEY,m)):S.continue()}var T=Object.create(S,{continue:{value:x},continuePrimaryKey:{value:function(E,k){S.continuePrimaryKey(Ku(E,e.MAX_KEY,m),k)}},primaryKey:{get:function(){return S.primaryKey}},key:{get:function(){var E=S.key;return b===1?E[0]:E.slice(0,b)}},value:{get:function(){return S.value}}});return T}return n.openCursor(s(v)).then(function(S){return S&&_(S)})}});return d}})}var z9={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:N9};function Mg(e,t,n,r){return n=n||{},r=r||"",Xt(e).forEach(function(i){if(!fr(t,i))n[r+i]=void 0;else{var l=e[i],g=t[i];if(typeof l=="object"&&typeof g=="object"&&l&&g){var o=fp(l),a=fp(g);o!==a?n[r+i]=t[i]:o==="Object"?Mg(l,g,n,r+i+"."):l!==g&&(n[r+i]=t[i])}else l!==g&&(n[r+i]=t[i])}}),Xt(t).forEach(function(i){fr(e,i)||(n[r+i]=t[i])}),n}function $9(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var j9={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return ht(ht({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey,i=ht(ht({},n),{mutate:function(l){var g=Xe.trans,o=g.table(t).hook,a=o.deleting,c=o.creating,p=o.updating;switch(l.type){case"add":if(c.fire===Et)break;return g._promise("readwrite",function(){return u(l)},!0);case"put":if(c.fire===Et&&p.fire===Et)break;return g._promise("readwrite",function(){return u(l)},!0);case"delete":if(a.fire===Et)break;return g._promise("readwrite",function(){return u(l)},!0);case"deleteRange":if(a.fire===Et)break;return g._promise("readwrite",function(){return f(l)},!0)}return n.mutate(l);function u(d){var v=Xe.trans,h=d.keys||$9(r,d);if(!h)throw new Error("Keys missing");return d=d.type==="add"||d.type==="put"?ht(ht({},d),{keys:h}):ht({},d),d.type!=="delete"&&(d.values=up([],d.values,!0)),d.keys&&(d.keys=up([],d.keys,!0)),V9(n,d,h).then(function(m){var y=h.map(function(b,_){var S=m[_],x={onerror:null,onsuccess:null};if(d.type==="delete")a.fire.call(x,b,S,v);else if(d.type==="add"||S===void 0){var T=c.fire.call(x,b,d.values[_],v);b==null&&T!=null&&(b=T,d.keys[_]=b,r.outbound||Mr(d.values[_],r.keyPath,b))}else{var E=Mg(S,d.values[_]),k=p.fire.call(x,E,b,S,v);if(k){var D=d.values[_];Object.keys(k).forEach(function(W){fr(D,W)?D[W]=k[W]:Mr(D,W,k[W])})}}return x});return n.mutate(d).then(function(b){for(var _=b.failures,S=b.results,x=b.numFailures,T=b.lastResult,E=0;E<h.length;++E){var k=S?S[E]:h[E],D=y[E];k==null?D.onerror&&D.onerror(_[E]):D.onsuccess&&D.onsuccess(d.type==="put"&&m[E]?d.values[E]:k)}return{failures:_,results:S,numFailures:x,lastResult:T}}).catch(function(b){return y.forEach(function(_){return _.onerror&&_.onerror(b)}),Promise.reject(b)})})}function f(d){return s(d.trans,d.range,1e4)}function s(d,v,h){return n.query({trans:d,values:!1,query:{index:r,range:v},limit:h}).then(function(m){var y=m.result;return u({type:"delete",keys:y,trans:d}).then(function(b){return b.numFailures>0?Promise.reject(b.failures[0]):y.length<h?{failures:[],numFailures:0,lastResult:void 0}:s(d,ht(ht({},v),{lower:y[y.length-1],lowerOpen:!0}),h)})})}}});return i}})}};function V9(e,t,n){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}function IC(e,t,n){try{if(!t||t.keys.length<e.length)return null;for(var r=[],i=0,l=0;i<t.keys.length&&l<e.length;++i)Ln(t.keys[i],e[l])===0&&(r.push(n?cu(t.values[i]):t.values[i]),++l);return r.length===e.length?r:null}catch{return null}}var U9={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return ht(ht({},n),{getMany:function(r){if(!r.cache)return n.getMany(r);var i=IC(r.keys,r.trans._cache,r.cache==="clone");return i?$e.resolve(i):n.getMany(r).then(function(l){return r.trans._cache={keys:r.keys,values:r.cache==="clone"?cu(l):l},l})},mutate:function(r){return r.type!=="add"&&(r.trans._cache=null),n.mutate(r)}})}}}},Yd;function Rg(e){return!("from"in e)}var mi=function(e,t){if(this)zn(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{var n=new mi;return e&&"d"in e&&zn(n,e),n}};ns(mi.prototype,(Yd={add:function(e){return nf(this,e),this},addKey:function(e){return jl(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(n){return jl(t,n,n)}),this}},Yd[dp]=function(){return Ip(this)},Yd));function jl(e,t,n){var r=Ln(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Rg(e))return zn(e,{from:t,to:n,d:1});var i=e.l,l=e.r;if(Ln(n,e.from)<0)return i?jl(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},yb(e);if(Ln(t,e.to)>0)return l?jl(l,t,n):e.r={from:t,to:n,d:1,l:null,r:null},yb(e);Ln(t,e.from)<0&&(e.from=t,e.l=null,e.d=l?l.d+1:1),Ln(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var g=!e.r;i&&!e.l&&nf(e,i),l&&g&&nf(e,l)}}function nf(e,t){function n(r,i){var l=i.from,g=i.to,o=i.l,a=i.r;jl(r,l,g),o&&n(r,o),a&&n(r,a)}Rg(t)||n(e,t)}function H9(e,t){var n=Ip(t),r=n.next();if(r.done)return!1;for(var i=r.value,l=Ip(e),g=l.next(i.from),o=g.value;!r.done&&!g.done;){if(Ln(o.from,i.to)<=0&&Ln(o.to,i.from)>=0)return!0;Ln(i.from,o.from)<0?i=(r=n.next(o.from)).value:o=(g=l.next(i.from)).value}return!1}function Ip(e){var t=Rg(e)?null:{s:0,n:e};return{next:function(n){for(var r=arguments.length>0;t;)switch(t.s){case 0:if(t.s=1,r)for(;t.n.l&&Ln(n,t.n.from)<0;)t={up:t,n:t.n.l,s:1};else for(;t.n.l;)t={up:t,n:t.n.l,s:1};case 1:if(t.s=2,!r||Ln(n,t.n.to)<=0)return{value:t.n,done:!1};case 2:if(t.n.r){t.s=3,t={up:t,n:t.n.r,s:0};continue}case 3:t=t.up}return{done:!0}}}}function yb(e){var t,n,r=(((t=e.r)===null||t===void 0?void 0:t.d)||0)-(((n=e.l)===null||n===void 0?void 0:n.d)||0),i=r>1?"r":r<-1?"l":"";if(i){var l=i==="r"?"l":"r",g=ht({},e),o=e[i];e.from=o.from,e.to=o.to,e[i]=o[i],g[i]=o[l],e[l]=g,g.d=bb(g)}e.d=bb(e)}function bb(e){var t=e.r,n=e.l;return(t?n?Math.max(t.d,n.d):t.d:n?n.d:0)+1}var W9={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new mi(e.MIN_KEY,e.MAX_KEY);return ht(ht({},e),{table:function(r){var i=e.table(r),l=i.schema,g=l.primaryKey,o=g.extractKey,a=g.outbound,c=ht(ht({},i),{mutate:function(f){var s=f.trans,d=s.mutatedParts||(s.mutatedParts={}),v=function(T){var E="idb://"+t+"/"+r+"/"+T;return d[E]||(d[E]=new mi)},h=v(""),m=v(":dels"),y=f.type,b=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[],_=b[0],S=b[1],x=f.trans._cache;return i.mutate(f).then(function(T){if(On(_)){y!=="delete"&&(_=T.results),h.addKeys(_);var E=IC(_,x);!E&&y!=="add"&&m.addKeys(_),(E||S)&&G9(v,l,E,S)}else if(_){var k={from:_.lower,to:_.upper};m.add(k),h.add(k)}else h.add(n),m.add(n),l.indexes.forEach(function(D){return v(D.name).add(n)});return T})}}),p=function(f){var s,d,v=f.query,h=v.index,m=v.range;return[h,new mi((s=m.lower)!==null&&s!==void 0?s:e.MIN_KEY,(d=m.upper)!==null&&d!==void 0?d:e.MAX_KEY)]},u={get:function(f){return[g,new mi(f.key)]},getMany:function(f){return[g,new mi().addKeys(f.keys)]},count:p,query:p,openCursor:p};return Xt(u).forEach(function(f){c[f]=function(s){var d=Xe.subscr;if(d){var v=function(x){var T="idb://"+t+"/"+r+"/"+x;return d[T]||(d[T]=new mi)},h=v(""),m=v(":dels"),y=u[f](s),b=y[0],_=y[1];if(v(b.name||"").add(_),!b.isPrimaryKey)if(f==="count")m.add(n);else{var S=f==="query"&&a&&s.values&&i.query(ht(ht({},s),{values:!1}));return i[f].apply(this,arguments).then(function(x){if(f==="query"){if(a&&s.values)return S.then(function(D){var W=D.result;return h.addKeys(W),x});var T=s.values?x.result.map(o):x.result;s.values?h.addKeys(T):m.addKeys(T)}else if(f==="openCursor"){var E=x,k=s.values;return E&&Object.create(E,{key:{get:function(){return m.addKey(E.primaryKey),E.key}},primaryKey:{get:function(){var D=E.primaryKey;return m.addKey(D),D}},value:{get:function(){return k&&h.addKey(E.primaryKey),E.value}}})}return x})}}return i[f].apply(this,arguments)}}),c}})}};function G9(e,t,n,r){function i(l){var g=e(l.name||"");function o(c){return c!=null?l.extractKey(c):null}var a=function(c){return l.multiEntry&&On(c)?c.forEach(function(p){return g.addKey(p)}):g.addKey(c)};(n||r).forEach(function(c,p){var u=n&&o(n[p]),f=r&&o(r[p]);Ln(u,f)!==0&&(u!=null&&a(u),f!=null&&a(f))})}t.indexes.forEach(i)}var Dg=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=ht({addons:e.addons,autoOpen:!0,indexedDB:i.indexedDB,IDBKeyRange:i.IDBKeyRange},n),this._deps={indexedDB:n.indexedDB,IDBKeyRange:n.IDBKeyRange};var l=n.addons;this._dbSchema={},this._versions=[],this._storeNames=[],this._allTables={},this.idbdb=null,this._novip=this;var g={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Et,dbReadyPromise:null,cancelOpen:Et,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};g.dbReadyPromise=new $e(function(o){g.dbReadyResolve=o}),g.openCanceller=new $e(function(o,a){g.cancelOpen=a}),this._state=g,this.name=t,this.on=pu(this,"populate","blocked","versionchange","close",{ready:[Sg,Et]}),this.on.ready.subscribe=rC(this.on.ready.subscribe,function(o){return function(a,c){e.vip(function(){var p=r._state;if(p.openComplete)p.dbOpenError||$e.resolve().then(a),c&&o(a);else if(p.onReadyBeingFired)p.onReadyBeingFired.push(a),c&&o(a);else{o(a);var u=r;c||o(function f(){u.on.ready.unsubscribe(a),u.on.ready.unsubscribe(f)})}})}}),this.Collection=s9(this),this.Table=n9(this),this.Transaction=v9(this),this.Version=I9(this),this.WhereClause=h9(this),this.on("versionchange",function(o){o.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()}),this.on("blocked",function(o){!o.newVersion||o.newVersion<o.oldVersion?console.warn("Dexie.delete('"+r.name+"') was blocked"):console.warn("Upgrade '"+r.name+"' blocked by other connection holding version "+o.oldVersion/10)}),this._maxKey=$l(n.IDBKeyRange),this._createTransaction=function(o,a,c,p){return new r.Transaction(o,a,c,r._options.chromeTransactionDurability,p)},this._fireOnBlocked=function(o){r.on("blocked").fire(o),ol.filter(function(a){return a.name===r.name&&a!==r&&!a._state.vcFired}).map(function(a){return a.on("versionchange").fire(o)})},this.use(z9),this.use(j9),this.use(W9),this.use(U9),this.vip=Object.create(this,{_vip:{value:!0}}),l.forEach(function(o){return o(r)})}return e.prototype.version=function(t){if(isNaN(t)||t<.1)throw new Je.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new Je.Schema("Cannot add version when database is open");this.verno=Math.max(this.verno,t);var n=this._versions,r=n.filter(function(i){return i._cfg.version===t})[0];return r||(r=new this.Version(t),n.push(r),n.sort(S9),r.stores({}),this._state.autoSchema=!1,r)},e.prototype._whenReady=function(t){var n=this;return this.idbdb&&(this._state.openComplete||Xe.letThrough||this._vip)?t():new $e(function(r,i){if(n._state.openComplete)return i(new Je.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._options.autoOpen){i(new Je.DatabaseClosed);return}n.open().catch(Et)}n._state.dbReadyPromise.then(r,i)}).then(t)},e.prototype.use=function(t){var n=t.stack,r=t.create,i=t.level,l=t.name;l&&this.unuse({stack:n,name:l});var g=this._middlewares[n]||(this._middlewares[n]=[]);return g.push({stack:n,create:r,level:i==null?10:i,name:l}),g.sort(function(o,a){return o.level-a.level}),this},e.prototype.unuse=function(t){var n=t.stack,r=t.name,i=t.create;return n&&this._middlewares[n]&&(this._middlewares[n]=this._middlewares[n].filter(function(l){return i?l.create!==i:r?l.name!==r:!1})),this},e.prototype.open=function(){return F9(this)},e.prototype._close=function(){var t=this._state,n=ol.indexOf(this);if(n>=0&&ol.splice(n,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new $e(function(r){t.dbReadyResolve=r}),t.openCanceller=new $e(function(r,i){t.cancelOpen=i})},e.prototype.close=function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Je.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)},e.prototype.delete=function(){var t=this,n=arguments.length>0,r=this._state;return new $e(function(i,l){var g=function(){t.close();var o=t._deps.indexedDB.deleteDatabase(t.name);o.onsuccess=Lt(function(){D9(t._deps,t.name),i()}),o.onerror=qr(l),o.onblocked=t._fireOnBlocked};if(n)throw new Je.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(g):g()})},e.prototype.backendDB=function(){return this.idbdb},e.prototype.isOpen=function(){return this.idbdb!==null},e.prototype.hasBeenClosed=function(){var t=this._state.dbOpenError;return t&&t.name==="DatabaseClosed"},e.prototype.hasFailed=function(){return this._state.dbOpenError!==null},e.prototype.dynamicallyOpened=function(){return this._state.autoSchema},Object.defineProperty(e.prototype,"tables",{get:function(){var t=this;return Xt(this._allTables).map(function(n){return t._allTables[n]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var t=B9.apply(this,arguments);return this._transaction.apply(this,t)},e.prototype._transaction=function(t,n,r){var i=this,l=Xe.trans;(!l||l.db!==this||t.indexOf("!")!==-1)&&(l=null);var g=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");var o,a;try{if(a=n.map(function(p){var u=p instanceof i.Table?p.name:p;if(typeof u!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return u}),t=="r"||t===Ud)o=Ud;else if(t=="rw"||t==Hd)o=Hd;else throw new Je.InvalidArgument("Invalid transaction mode: "+t);if(l){if(l.mode===Ud&&o===Hd)if(g)l=null;else throw new Je.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");l&&a.forEach(function(p){if(l&&l.storeNames.indexOf(p)===-1)if(g)l=null;else throw new Je.SubTransaction("Table "+p+" not included in parent transaction.")}),g&&l&&!l.active&&(l=null)}}catch(p){return l?l._promise(null,function(u,f){f(p)}):en(p)}var c=PC.bind(null,this,o,a,l,r);return l?l._promise(o,c,"lock"):Xe.trans?Ss(Xe.transless,function(){return i._whenReady(c)}):this._whenReady(c)},e.prototype.table=function(t){if(!fr(this._allTables,t))throw new Je.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},e}(),K9=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",Y9=function(){function e(t){this._subscribe=t}return e.prototype.subscribe=function(t,n,r){return this._subscribe(!t||typeof t=="function"?{next:t,error:n,complete:r}:t)},e.prototype[K9]=function(){return this},e}();function MC(e,t){return Xt(t).forEach(function(n){var r=e[n]||(e[n]=new mi);nf(r,t[n])}),e}function Lg(e){var t=!1,n=void 0,r=new Y9(function(i){var l=bg(e);function g(h){l&&ws();var m=function(){return ha(e,{subscr:h,trans:null})},y=Xe.trans?Ss(Xe.transless,m):m();return l&&y.then(Di,Di),y}var o=!1,a={},c={},p={get closed(){return o},unsubscribe:function(){o=!0,va.storagemutated.unsubscribe(d)}};i.start&&i.start(p);var u=!1,f=!1;function s(){return Xt(c).some(function(h){return a[h]&&H9(a[h],c[h])})}var d=function(h){MC(a,h),s()&&v()},v=function(){if(!(u||o)){a={};var h={},m=g(h);f||(va(zl,d),f=!0),u=!0,Promise.resolve(m).then(function(y){t=!0,n=y,u=!1,!o&&(s()?v():(a={},c=h,i.next&&i.next(y)))},function(y){u=!1,t=!1,i.error&&i.error(y),p.unsubscribe()})}};return v(),p});return r.hasValue=function(){return t},r.getValue=function(){return n},r}var Mp;try{Mp={indexedDB:It.indexedDB||It.mozIndexedDB||It.webkitIndexedDB||It.msIndexedDB,IDBKeyRange:It.IDBKeyRange||It.webkitIDBKeyRange}}catch{Mp={indexedDB:null,IDBKeyRange:null}}var Aa=Dg;ns(Aa,ht(ht({},Gf),{delete:function(e){var t=new Aa(e,{addons:[]});return t.delete()},exists:function(e){return new Aa(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return M9(Aa.dependencies).then(e)}catch{return en(new Je.MissingAPI)}},defineClass:function(){function e(t){zn(this,t)}return e},ignoreTransaction:function(e){return Xe.trans?Ss(Xe.transless,e):e()},vip:Ap,async:function(e){return function(){try{var t=Pp(e.apply(this,arguments));return!t||typeof t.then!="function"?$e.resolve(t):t}catch(n){return en(n)}}},spawn:function(e,t,n){try{var r=Pp(e.apply(n,t||[]));return!r||typeof r.then!="function"?$e.resolve(r):r}catch(i){return en(i)}},currentTransaction:{get:function(){return Xe.trans||null}},waitFor:function(e,t){var n=$e.resolve(typeof e=="function"?Aa.ignoreTransaction(e):e).timeout(t||6e4);return Xe.trans?Xe.trans.waitFor(n):n},Promise:$e,debug:{get:function(){return li},set:function(e){uC(e,e==="dexie"?function(){return!0}:CC)}},derive:bs,extend:zn,props:ns,override:rC,Events:pu,on:va,liveQuery:Lg,extendObservabilitySet:MC,getByKeyPath:Ti,setByKeyPath:Mr,delByKeyPath:kV,shallowClone:oC,deepClone:cu,getObjectDiff:Mg,cmp:Ln,asap:iC,minKey:Cp,addons:[],connections:ol,errnames:wg,dependencies:Mp,semVer:db,version:db.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,n*2)})}));Aa.maxKey=$l(Aa.dependencies.IDBKeyRange);typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(va(zl,function(e){if(!Ci){var t;Kf?(t=document.createEvent("CustomEvent"),t.initCustomEvent(ra,!0,!0,e)):t=new CustomEvent(ra,{detail:e}),Ci=!0,dispatchEvent(t),Ci=!1}}),addEventListener(ra,function(e){var t=e.detail;Ci||rf(t)}));function rf(e){var t=Ci;try{Ci=!0,va.storagemutated.fire(e)}finally{Ci=t}}var Ci=!1;if(typeof BroadcastChannel<"u"){var Yu=new BroadcastChannel(ra);typeof Yu.unref=="function"&&Yu.unref(),va(zl,function(e){Ci||Yu.postMessage(e)}),Yu.onmessage=function(e){e.data&&rf(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){va(zl,function(e){try{Ci||(typeof localStorage<"u"&&localStorage.setItem(ra,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&up([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:ra,changedParts:e})}))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",function(e){if(e.key===ra){var t=JSON.parse(e.newValue);t&&rf(t.changedParts)}});var _b=self.document&&navigator.serviceWorker;_b&&_b.addEventListener("message",X9)}function X9(e){var t=e.data;t&&t.type===ra&&rf(t.changedParts)}$e.rejectionMapper=FV;uC(li,CC);class q9 extends Dg{constructor(){super("stableui");Xg(this,"outputs");this.version(.2).stores({outputs:""}),this.version(.3).stores({outputs:null,outputsTemp:"++id"}).upgrade(async n=>{const r=await n.table("outputs").get("outputs");await n.table("outputsTemp").bulkPut(JSON.parse(r))}),this.version(.4).stores({outputsTemp:null,outputs:"++id"}).upgrade(async n=>{const r=await n.table("outputsTemp").toArray();await n.table("outputs").bulkPut(r)}),this.version(.5).stores({outputs:"++id,starred,rated"}).upgrade(async n=>await n.table("outputs").toCollection().modify(r=>{r.starred=Number(r.starred),r.rated=Number(r.rated)}))}}const Vt=new q9;Vt.open().catch(()=>{Kt().raiseError("The image database failed to open! This usually happens when using Firefox in Private Browsing mode. Try disabling Private Browsing or using another browser.",!0)});function Xu(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var RC={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(e,t){(function(n){e.exports=n()})(function(){return function n(r,i,l){function g(c,p){if(!i[c]){if(!r[c]){var u=typeof Xu=="function"&&Xu;if(!p&&u)return u(c,!0);if(o)return o(c,!0);var f=new Error("Cannot find module '"+c+"'");throw f.code="MODULE_NOT_FOUND",f}var s=i[c]={exports:{}};r[c][0].call(s.exports,function(d){var v=r[c][1][d];return g(v||d)},s,s.exports,n,r,i,l)}return i[c].exports}for(var o=typeof Xu=="function"&&Xu,a=0;a<l.length;a++)g(l[a]);return g}({1:[function(n,r,i){var l=n("./utils"),g=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(a){for(var c,p,u,f,s,d,v,h=[],m=0,y=a.length,b=y,_=l.getTypeOf(a)!=="string";m<a.length;)b=y-m,u=_?(c=a[m++],p=m<y?a[m++]:0,m<y?a[m++]:0):(c=a.charCodeAt(m++),p=m<y?a.charCodeAt(m++):0,m<y?a.charCodeAt(m++):0),f=c>>2,s=(3&c)<<4|p>>4,d=1<b?(15&p)<<2|u>>6:64,v=2<b?63&u:64,h.push(o.charAt(f)+o.charAt(s)+o.charAt(d)+o.charAt(v));return h.join("")},i.decode=function(a){var c,p,u,f,s,d,v=0,h=0,m="data:";if(a.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var y,b=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===o.charAt(64)&&b--,a.charAt(a.length-2)===o.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(y=g.uint8array?new Uint8Array(0|b):new Array(0|b);v<a.length;)c=o.indexOf(a.charAt(v++))<<2|(f=o.indexOf(a.charAt(v++)))>>4,p=(15&f)<<4|(s=o.indexOf(a.charAt(v++)))>>2,u=(3&s)<<6|(d=o.indexOf(a.charAt(v++))),y[h++]=c,s!==64&&(y[h++]=p),d!==64&&(y[h++]=u);return y}},{"./support":30,"./utils":32}],2:[function(n,r,i){var l=n("./external"),g=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),a=n("./stream/DataLengthProbe");function c(p,u,f,s,d){this.compressedSize=p,this.uncompressedSize=u,this.crc32=f,this.compression=s,this.compressedContent=d}c.prototype={getContentWorker:function(){var p=new g(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),u=this;return p.on("end",function(){if(this.streamInfo.data_length!==u.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),p},getCompressedWorker:function(){return new g(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},c.createWorkerFrom=function(p,u,f){return p.pipe(new o).pipe(new a("uncompressedSize")).pipe(u.compressWorker(f)).pipe(new a("compressedSize")).withStreamInfo("compression",u)},r.exports=c},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,i){var l=n("./stream/GenericWorker");i.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},i.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,i){var l=n("./utils"),g=function(){for(var o,a=[],c=0;c<256;c++){o=c;for(var p=0;p<8;p++)o=1&o?3988292384^o>>>1:o>>>1;a[c]=o}return a}();r.exports=function(o,a){return o!==void 0&&o.length?l.getTypeOf(o)!=="string"?function(c,p,u,f){var s=g,d=f+u;c^=-1;for(var v=f;v<d;v++)c=c>>>8^s[255&(c^p[v])];return-1^c}(0|a,o,o.length,0):function(c,p,u,f){var s=g,d=f+u;c^=-1;for(var v=f;v<d;v++)c=c>>>8^s[255&(c^p.charCodeAt(v))];return-1^c}(0|a,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var l=null;l=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:l}},{lie:37}],7:[function(n,r,i){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",g=n("pako"),o=n("./utils"),a=n("./stream/GenericWorker"),c=l?"uint8array":"array";function p(u,f){a.call(this,"FlateWorker/"+u),this._pako=null,this._pakoAction=u,this._pakoOptions=f,this.meta={}}i.magic="\b\0",o.inherits(p,a),p.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(c,u.data),!1)},p.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},p.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},p.prototype._createPako=function(){this._pako=new g[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var u=this;this._pako.onData=function(f){u.push({data:f,meta:u.meta})}},i.compressWorker=function(u){return new p("Deflate",u)},i.uncompressWorker=function(){return new p("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function l(s,d){var v,h="";for(v=0;v<d;v++)h+=String.fromCharCode(255&s),s>>>=8;return h}function g(s,d,v,h,m,y){var b,_,S=s.file,x=s.compression,T=y!==c.utf8encode,E=o.transformTo("string",y(S.name)),k=o.transformTo("string",c.utf8encode(S.name)),D=S.comment,W=o.transformTo("string",y(D)),I=o.transformTo("string",c.utf8encode(D)),U=k.length!==S.name.length,A=I.length!==D.length,ee="",de="",z="",q=S.dir,O=S.date,F={crc32:0,compressedSize:0,uncompressedSize:0};d&&!v||(F.crc32=s.crc32,F.compressedSize=s.compressedSize,F.uncompressedSize=s.uncompressedSize);var R=0;d&&(R|=8),T||!U&&!A||(R|=2048);var P=0,G=0;q&&(P|=16),m==="UNIX"?(G=798,P|=function(M,ne){var X=M;return M||(X=ne?16893:33204),(65535&X)<<16}(S.unixPermissions,q)):(G=20,P|=function(M){return 63&(M||0)}(S.dosPermissions)),b=O.getUTCHours(),b<<=6,b|=O.getUTCMinutes(),b<<=5,b|=O.getUTCSeconds()/2,_=O.getUTCFullYear()-1980,_<<=4,_|=O.getUTCMonth()+1,_<<=5,_|=O.getUTCDate(),U&&(de=l(1,1)+l(p(E),4)+k,ee+="up"+l(de.length,2)+de),A&&(z=l(1,1)+l(p(W),4)+I,ee+="uc"+l(z.length,2)+z);var $="";return $+=`
\0`,$+=l(R,2),$+=x.magic,$+=l(b,2),$+=l(_,2),$+=l(F.crc32,4),$+=l(F.compressedSize,4),$+=l(F.uncompressedSize,4),$+=l(E.length,2),$+=l(ee.length,2),{fileRecord:u.LOCAL_FILE_HEADER+$+E+ee,dirRecord:u.CENTRAL_FILE_HEADER+l(G,2)+$+l(W.length,2)+"\0\0\0\0"+l(P,4)+l(h,4)+E+ee+W}}var o=n("../utils"),a=n("../stream/GenericWorker"),c=n("../utf8"),p=n("../crc32"),u=n("../signature");function f(s,d,v,h){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=v,this.encodeFileName=h,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(f,a),f.prototype.push=function(s){var d=s.meta.percent||0,v=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,a.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:v?(d+100*(v-h-1))/v:100}}))},f.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var d=this.streamFiles&&!s.file.dir;if(d){var v=g(s,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:v.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(s){this.accumulate=!1;var d=this.streamFiles&&!s.file.dir,v=g(s,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),d)this.push({data:function(h){return u.DATA_DESCRIPTOR+l(h.crc32,4)+l(h.compressedSize,4)+l(h.uncompressedSize,4)}(s),meta:{percent:100}});else for(this.push({data:v.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var s=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var v=this.bytesWritten-s,h=function(m,y,b,_,S){var x=o.transformTo("string",S(_));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(m,2)+l(m,2)+l(y,4)+l(b,4)+l(x.length,2)+x}(this.dirRecords.length,v,s,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},f.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},f.prototype.registerPrevious=function(s){this._sources.push(s);var d=this;return s.on("data",function(v){d.processChunk(v)}),s.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),s.on("error",function(v){d.error(v)}),this},f.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(s){var d=this._sources;if(!a.prototype.error.call(this,s))return!1;for(var v=0;v<d.length;v++)try{d[v].error(s)}catch{}return!0},f.prototype.lock=function(){a.prototype.lock.call(this);for(var s=this._sources,d=0;d<s.length;d++)s[d].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var l=n("../compressions"),g=n("./ZipFileWorker");i.generateWorker=function(o,a,c){var p=new g(a.streamFiles,c,a.platform,a.encodeFileName),u=0;try{o.forEach(function(f,s){u++;var d=function(y,b){var _=y||b,S=l[_];if(!S)throw new Error(_+" is not a valid compression method !");return S}(s.options.compression,a.compression),v=s.options.compressionOptions||a.compressionOptions||{},h=s.dir,m=s.date;s._compressWorker(d,v).withStreamInfo("file",{name:f,dir:h,date:m,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(p)}),p.entriesCount=u}catch(f){p.error(f)}return p}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,i){function l(){if(!(this instanceof l))return new l;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var g=new l;for(var o in this)typeof this[o]!="function"&&(g[o]=this[o]);return g}}(l.prototype=n("./object")).loadAsync=n("./load"),l.support=n("./support"),l.defaults=n("./defaults"),l.version="3.10.1",l.loadAsync=function(g,o){return new l().loadAsync(g,o)},l.external=n("./external"),r.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var l=n("./utils"),g=n("./external"),o=n("./utf8"),a=n("./zipEntries"),c=n("./stream/Crc32Probe"),p=n("./nodejsUtils");function u(f){return new g.Promise(function(s,d){var v=f.decompressed.getContentWorker().pipe(new c);v.on("error",function(h){d(h)}).on("end",function(){v.streamInfo.crc32!==f.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):s()}).resume()})}r.exports=function(f,s){var d=this;return s=l.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),p.isNode&&p.isStream(f)?g.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):l.prepareContent("the loaded zip file",f,!0,s.optimizedBinaryString,s.base64).then(function(v){var h=new a(s);return h.load(v),h}).then(function(v){var h=[g.Promise.resolve(v)],m=v.files;if(s.checkCRC32)for(var y=0;y<m.length;y++)h.push(u(m[y]));return g.Promise.all(h)}).then(function(v){for(var h=v.shift(),m=h.files,y=0;y<m.length;y++){var b=m[y],_=b.fileNameStr,S=l.resolve(b.fileNameStr);d.file(S,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:s.createFolders}),b.dir||(d.file(S).unsafeOriginalName=_)}return h.zipComment.length&&(d.comment=h.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var l=n("../utils"),g=n("../stream/GenericWorker");function o(a,c){g.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(c)}l.inherits(o,g),o.prototype._bindStream=function(a){var c=this;(this._stream=a).pause(),a.on("data",function(p){c.push({data:p,meta:{percent:0}})}).on("error",function(p){c.isPaused?this.generatedError=p:c.error(p)}).on("end",function(){c.isPaused?c._upstreamEnded=!0:c.end()})},o.prototype.pause=function(){return!!g.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var l=n("readable-stream").Readable;function g(o,a,c){l.call(this,a),this._helper=o;var p=this;o.on("data",function(u,f){p.push(u)||p._helper.pause(),c&&c(f)}).on("error",function(u){p.emit("error",u)}).on("end",function(){p.push(null)})}n("../utils").inherits(g,l),g.prototype._read=function(){this._helper.resume()},r.exports=g},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,g){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,g);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,g)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var g=new Buffer(l);return g.fill(0),g},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(n,r,i){function l(S,x,T){var E,k=o.getTypeOf(x),D=o.extend(T||{},p);D.date=D.date||new Date,D.compression!==null&&(D.compression=D.compression.toUpperCase()),typeof D.unixPermissions=="string"&&(D.unixPermissions=parseInt(D.unixPermissions,8)),D.unixPermissions&&16384&D.unixPermissions&&(D.dir=!0),D.dosPermissions&&16&D.dosPermissions&&(D.dir=!0),D.dir&&(S=m(S)),D.createFolders&&(E=h(S))&&y.call(this,E,!0);var W=k==="string"&&D.binary===!1&&D.base64===!1;T&&T.binary!==void 0||(D.binary=!W),(x instanceof u&&x.uncompressedSize===0||D.dir||!x||x.length===0)&&(D.base64=!1,D.binary=!0,x="",D.compression="STORE",k="string");var I=null;I=x instanceof u||x instanceof a?x:d.isNode&&d.isStream(x)?new v(S,x):o.prepareContent(S,x,D.binary,D.optimizedBinaryString,D.base64);var U=new f(S,I,D);this.files[S]=U}var g=n("./utf8"),o=n("./utils"),a=n("./stream/GenericWorker"),c=n("./stream/StreamHelper"),p=n("./defaults"),u=n("./compressedObject"),f=n("./zipObject"),s=n("./generate"),d=n("./nodejsUtils"),v=n("./nodejs/NodejsStreamInputAdapter"),h=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var x=S.lastIndexOf("/");return 0<x?S.substring(0,x):""},m=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},y=function(S,x){return x=x!==void 0?x:p.createFolders,S=m(S),this.files[S]||l.call(this,S,null,{dir:!0,createFolders:x}),this.files[S]};function b(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var _={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var x,T,E;for(x in this.files)E=this.files[x],(T=x.slice(this.root.length,x.length))&&x.slice(0,this.root.length)===this.root&&S(T,E)},filter:function(S){var x=[];return this.forEach(function(T,E){S(T,E)&&x.push(E)}),x},file:function(S,x,T){if(arguments.length!==1)return S=this.root+S,l.call(this,S,x,T),this;if(b(S)){var E=S;return this.filter(function(D,W){return!W.dir&&E.test(D)})}var k=this.files[this.root+S];return k&&!k.dir?k:null},folder:function(S){if(!S)return this;if(b(S))return this.filter(function(k,D){return D.dir&&S.test(k)});var x=this.root+S,T=y.call(this,x),E=this.clone();return E.root=T.name,E},remove:function(S){S=this.root+S;var x=this.files[S];if(x||(S.slice(-1)!=="/"&&(S+="/"),x=this.files[S]),x&&!x.dir)delete this.files[S];else for(var T=this.filter(function(k,D){return D.name.slice(0,S.length)===S}),E=0;E<T.length;E++)delete this.files[T[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var x,T={};try{if((T=o.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:g.utf8encode})).type=T.type.toLowerCase(),T.compression=T.compression.toUpperCase(),T.type==="binarystring"&&(T.type="string"),!T.type)throw new Error("No output type specified.");o.checkSupport(T.type),T.platform!=="darwin"&&T.platform!=="freebsd"&&T.platform!=="linux"&&T.platform!=="sunos"||(T.platform="UNIX"),T.platform==="win32"&&(T.platform="DOS");var E=T.comment||this.comment||"";x=s.generateWorker(this,T,E)}catch(k){(x=new a("error")).error(k)}return new c(x,T.type||"string",T.mimeType)},generateAsync:function(S,x){return this.generateInternalStream(S).accumulate(x)},generateNodeStream:function(S,x){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(x)}};r.exports=_},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,i){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,i){var l=n("./DataReader");function g(o){l.call(this,o);for(var a=0;a<this.data.length;a++)o[a]=255&o[a]}n("../utils").inherits(g,l),g.prototype.byteAt=function(o){return this.data[this.zero+o]},g.prototype.lastIndexOfSignature=function(o){for(var a=o.charCodeAt(0),c=o.charCodeAt(1),p=o.charCodeAt(2),u=o.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===a&&this.data[f+1]===c&&this.data[f+2]===p&&this.data[f+3]===u)return f-this.zero;return-1},g.prototype.readAndCheckSignature=function(o){var a=o.charCodeAt(0),c=o.charCodeAt(1),p=o.charCodeAt(2),u=o.charCodeAt(3),f=this.readData(4);return a===f[0]&&c===f[1]&&p===f[2]&&u===f[3]},g.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=g},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var l=n("../utils");function g(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}g.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var a,c=0;for(this.checkOffset(o),a=this.index+o-1;a>=this.index;a--)c=(c<<8)+this.byteAt(a);return this.index+=o,c},readString:function(o){return l.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},r.exports=g},{"../utils":32}],19:[function(n,r,i){var l=n("./Uint8ArrayReader");function g(o){l.call(this,o)}n("../utils").inherits(g,l),g.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=g},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var l=n("./DataReader");function g(o){l.call(this,o)}n("../utils").inherits(g,l),g.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},g.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},g.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},g.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=g},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var l=n("./ArrayReader");function g(o){l.call(this,o)}n("../utils").inherits(g,l),g.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=g},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var l=n("../utils"),g=n("../support"),o=n("./ArrayReader"),a=n("./StringReader"),c=n("./NodeBufferReader"),p=n("./Uint8ArrayReader");r.exports=function(u){var f=l.getTypeOf(u);return l.checkSupport(f),f!=="string"||g.uint8array?f==="nodebuffer"?new c(u):g.uint8array?new p(l.transformTo("uint8array",u)):new o(l.transformTo("array",u)):new a(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,i){i.LOCAL_FILE_HEADER="PK",i.CENTRAL_FILE_HEADER="PK",i.CENTRAL_DIRECTORY_END="PK",i.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",i.ZIP64_CENTRAL_DIRECTORY_END="PK",i.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,i){var l=n("./GenericWorker"),g=n("../utils");function o(a){l.call(this,"ConvertWorker to "+a),this.destType=a}g.inherits(o,l),o.prototype.processChunk=function(a){this.push({data:g.transformTo(this.destType,a.data),meta:a.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var l=n("./GenericWorker"),g=n("../crc32");function o(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,l),o.prototype.processChunk=function(a){this.streamInfo.crc32=g(a.data,this.streamInfo.crc32||0),this.push(a)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var l=n("../utils"),g=n("./GenericWorker");function o(a){g.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}l.inherits(o,g),o.prototype.processChunk=function(a){if(a){var c=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=c+a.data.length}g.prototype.processChunk.call(this,a)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var l=n("../utils"),g=n("./GenericWorker");function o(a){g.call(this,"DataWorker");var c=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(p){c.dataIsReady=!0,c.data=p,c.max=p&&p.length||0,c.type=l.getTypeOf(p),c.isPaused||c._tickAndRepeat()},function(p){c.error(p)})}l.inherits(o,g),o.prototype.cleanUp=function(){g.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!g.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,c=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,c);break;case"uint8array":a=this.data.subarray(this.index,c);break;case"array":case"nodebuffer":a=this.data.slice(this.index,c)}return this.index=c,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function l(g){this.name=g||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(g){this.emit("data",g)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(g){this.emit("error",g)}return!0},error:function(g){return!this.isFinished&&(this.isPaused?this.generatedError=g:(this.isFinished=!0,this.emit("error",g),this.previous&&this.previous.error(g),this.cleanUp()),!0)},on:function(g,o){return this._listeners[g].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(g,o){if(this._listeners[g])for(var a=0;a<this._listeners[g].length;a++)this._listeners[g][a].call(this,o)},pipe:function(g){return g.registerPrevious(this)},registerPrevious:function(g){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=g.streamInfo,this.mergeStreamInfo(),this.previous=g;var o=this;return g.on("data",function(a){o.processChunk(a)}),g.on("end",function(){o.end()}),g.on("error",function(a){o.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var g=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),g=!0),this.previous&&this.previous.resume(),!g},flush:function(){},processChunk:function(g){this.push(g)},withStreamInfo:function(g,o){return this.extraStreamInfo[g]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var g in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,g)&&(this.streamInfo[g]=this.extraStreamInfo[g])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var g="Worker "+this.name;return this.previous?this.previous+" -> "+g:g}},r.exports=l},{}],29:[function(n,r,i){var l=n("../utils"),g=n("./ConvertWorker"),o=n("./GenericWorker"),a=n("../base64"),c=n("../support"),p=n("../external"),u=null;if(c.nodestream)try{u=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(d,v){return new p.Promise(function(h,m){var y=[],b=d._internalType,_=d._outputType,S=d._mimeType;d.on("data",function(x,T){y.push(x),v&&v(T)}).on("error",function(x){y=[],m(x)}).on("end",function(){try{var x=function(T,E,k){switch(T){case"blob":return l.newBlob(l.transformTo("arraybuffer",E),k);case"base64":return a.encode(E);default:return l.transformTo(T,E)}}(_,function(T,E){var k,D=0,W=null,I=0;for(k=0;k<E.length;k++)I+=E[k].length;switch(T){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(W=new Uint8Array(I),k=0;k<E.length;k++)W.set(E[k],D),D+=E[k].length;return W;case"nodebuffer":return Buffer.concat(E);default:throw new Error("concat : unsupported type '"+T+"'")}}(b,y),S);h(x)}catch(T){m(T)}y=[]}).resume()})}function s(d,v,h){var m=v;switch(v){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=v,this._mimeType=h,l.checkSupport(m),this._worker=d.pipe(new g(m)),d.lock()}catch(y){this._worker=new o("error"),this._worker.error(y)}}s.prototype={accumulate:function(d){return f(this,d)},on:function(d,v){var h=this;return d==="data"?this._worker.on(d,function(m){v.call(h,m.data,m.meta)}):this._worker.on(d,function(){l.delay(v,arguments,h)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(l.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:this._outputType!=="nodebuffer"},d)}},r.exports=s},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,i){if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",i.nodebuffer=typeof Buffer<"u",i.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")i.blob=!1;else{var l=new ArrayBuffer(0);try{i.blob=new Blob([l],{type:"application/zip"}).size===0}catch{try{var g=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);g.append(l),i.blob=g.getBlob("application/zip").size===0}catch{i.blob=!1}}}try{i.nodestream=!!n("readable-stream").Readable}catch{i.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,i){for(var l=n("./utils"),g=n("./support"),o=n("./nodejsUtils"),a=n("./stream/GenericWorker"),c=new Array(256),p=0;p<256;p++)c[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;c[254]=c[254]=1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function f(){a.call(this,"utf-8 encode")}i.utf8encode=function(s){return g.nodebuffer?o.newBufferFrom(s,"utf-8"):function(d){var v,h,m,y,b,_=d.length,S=0;for(y=0;y<_;y++)(64512&(h=d.charCodeAt(y)))==55296&&y+1<_&&(64512&(m=d.charCodeAt(y+1)))==56320&&(h=65536+(h-55296<<10)+(m-56320),y++),S+=h<128?1:h<2048?2:h<65536?3:4;for(v=g.uint8array?new Uint8Array(S):new Array(S),y=b=0;b<S;y++)(64512&(h=d.charCodeAt(y)))==55296&&y+1<_&&(64512&(m=d.charCodeAt(y+1)))==56320&&(h=65536+(h-55296<<10)+(m-56320),y++),h<128?v[b++]=h:(h<2048?v[b++]=192|h>>>6:(h<65536?v[b++]=224|h>>>12:(v[b++]=240|h>>>18,v[b++]=128|h>>>12&63),v[b++]=128|h>>>6&63),v[b++]=128|63&h);return v}(s)},i.utf8decode=function(s){return g.nodebuffer?l.transformTo("nodebuffer",s).toString("utf-8"):function(d){var v,h,m,y,b=d.length,_=new Array(2*b);for(v=h=0;v<b;)if((m=d[v++])<128)_[h++]=m;else if(4<(y=c[m]))_[h++]=65533,v+=y-1;else{for(m&=y===2?31:y===3?15:7;1<y&&v<b;)m=m<<6|63&d[v++],y--;1<y?_[h++]=65533:m<65536?_[h++]=m:(m-=65536,_[h++]=55296|m>>10&1023,_[h++]=56320|1023&m)}return _.length!==h&&(_.subarray?_=_.subarray(0,h):_.length=h),l.applyFromCharCode(_)}(s=l.transformTo(g.uint8array?"uint8array":"array",s))},l.inherits(u,a),u.prototype.processChunk=function(s){var d=l.transformTo(g.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(g.uint8array){var v=d;(d=new Uint8Array(v.length+this.leftOver.length)).set(this.leftOver,0),d.set(v,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var h=function(y,b){var _;for((b=b||y.length)>y.length&&(b=y.length),_=b-1;0<=_&&(192&y[_])==128;)_--;return _<0||_===0?b:_+c[y[_]]>b?_:b}(d),m=d;h!==d.length&&(g.uint8array?(m=d.subarray(0,h),this.leftOver=d.subarray(h,d.length)):(m=d.slice(0,h),this.leftOver=d.slice(h,d.length))),this.push({data:i.utf8decode(m),meta:s.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=u,l.inherits(f,a),f.prototype.processChunk=function(s){this.push({data:i.utf8encode(s.data),meta:s.meta})},i.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var l=n("./support"),g=n("./base64"),o=n("./nodejsUtils"),a=n("./external");function c(v){return v}function p(v,h){for(var m=0;m<v.length;++m)h[m]=255&v.charCodeAt(m);return h}n("setimmediate"),i.newBlob=function(v,h){i.checkSupport("blob");try{return new Blob([v],{type:h})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(v),m.getBlob(h)}catch{throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(v,h,m){var y=[],b=0,_=v.length;if(_<=m)return String.fromCharCode.apply(null,v);for(;b<_;)h==="array"||h==="nodebuffer"?y.push(String.fromCharCode.apply(null,v.slice(b,Math.min(b+m,_)))):y.push(String.fromCharCode.apply(null,v.subarray(b,Math.min(b+m,_)))),b+=m;return y.join("")},stringifyByChar:function(v){for(var h="",m=0;m<v.length;m++)h+=String.fromCharCode(v[m]);return h},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}}()}};function f(v){var h=65536,m=i.getTypeOf(v),y=!0;if(m==="uint8array"?y=u.applyCanBeUsed.uint8array:m==="nodebuffer"&&(y=u.applyCanBeUsed.nodebuffer),y)for(;1<h;)try{return u.stringifyByChunk(v,m,h)}catch{h=Math.floor(h/2)}return u.stringifyByChar(v)}function s(v,h){for(var m=0;m<v.length;m++)h[m]=v[m];return h}i.applyFromCharCode=f;var d={};d.string={string:c,array:function(v){return p(v,new Array(v.length))},arraybuffer:function(v){return d.string.uint8array(v).buffer},uint8array:function(v){return p(v,new Uint8Array(v.length))},nodebuffer:function(v){return p(v,o.allocBuffer(v.length))}},d.array={string:f,array:c,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return o.newBufferFrom(v)}},d.arraybuffer={string:function(v){return f(new Uint8Array(v))},array:function(v){return s(new Uint8Array(v),new Array(v.byteLength))},arraybuffer:c,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return o.newBufferFrom(new Uint8Array(v))}},d.uint8array={string:f,array:function(v){return s(v,new Array(v.length))},arraybuffer:function(v){return v.buffer},uint8array:c,nodebuffer:function(v){return o.newBufferFrom(v)}},d.nodebuffer={string:f,array:function(v){return s(v,new Array(v.length))},arraybuffer:function(v){return d.nodebuffer.uint8array(v).buffer},uint8array:function(v){return s(v,new Uint8Array(v.length))},nodebuffer:c},i.transformTo=function(v,h){if(h=h||"",!v)return h;i.checkSupport(v);var m=i.getTypeOf(h);return d[m][v](h)},i.resolve=function(v){for(var h=v.split("/"),m=[],y=0;y<h.length;y++){var b=h[y];b==="."||b===""&&y!==0&&y!==h.length-1||(b===".."?m.pop():m.push(b))}return m.join("/")},i.getTypeOf=function(v){return typeof v=="string"?"string":Object.prototype.toString.call(v)==="[object Array]"?"array":l.nodebuffer&&o.isBuffer(v)?"nodebuffer":l.uint8array&&v instanceof Uint8Array?"uint8array":l.arraybuffer&&v instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(v){if(!l[v.toLowerCase()])throw new Error(v+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(v){var h,m,y="";for(m=0;m<(v||"").length;m++)y+="\\x"+((h=v.charCodeAt(m))<16?"0":"")+h.toString(16).toUpperCase();return y},i.delay=function(v,h,m){setImmediate(function(){v.apply(m||null,h||[])})},i.inherits=function(v,h){function m(){}m.prototype=h.prototype,v.prototype=new m},i.extend=function(){var v,h,m={};for(v=0;v<arguments.length;v++)for(h in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],h)&&m[h]===void 0&&(m[h]=arguments[v][h]);return m},i.prepareContent=function(v,h,m,y,b){return a.Promise.resolve(h).then(function(_){return l.blob&&(_ instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(_))!==-1)&&typeof FileReader<"u"?new a.Promise(function(S,x){var T=new FileReader;T.onload=function(E){S(E.target.result)},T.onerror=function(E){x(E.target.error)},T.readAsArrayBuffer(_)}):_}).then(function(_){var S=i.getTypeOf(_);return S?(S==="arraybuffer"?_=i.transformTo("uint8array",_):S==="string"&&(b?_=g.decode(_):m&&y!==!0&&(_=function(x){return p(x,l.uint8array?new Uint8Array(x.length):new Array(x.length))}(_))),_):a.Promise.reject(new Error("Can't read the data of '"+v+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,i){var l=n("./reader/readerFor"),g=n("./utils"),o=n("./signature"),a=n("./zipEntry"),c=n("./support");function p(u){this.files=[],this.loadOptions=u}p.prototype={checkSignature:function(u){if(!this.reader.readAndCheckSignature(u)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+g.pretty(f)+", expected "+g.pretty(u)+")")}},isSignature:function(u,f){var s=this.reader.index;this.reader.setIndex(u);var d=this.reader.readString(4)===f;return this.reader.setIndex(s),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var u=this.reader.readData(this.zipCommentLength),f=c.uint8array?"uint8array":"array",s=g.transformTo(f,u);this.zipComment=this.loadOptions.decodeFileName(s)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var u,f,s,d=this.zip64EndOfCentralSize-44;0<d;)u=this.reader.readInt(2),f=this.reader.readInt(4),s=this.reader.readData(f),this.zip64ExtensibleData[u]={id:u,length:f,value:s}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var u,f;for(u=0;u<this.files.length;u++)f=this.files[u],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var u;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(u=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(u);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var u=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(u<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(u);var f=u;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===g.MAX_VALUE_16BITS||this.diskWithCentralDirStart===g.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===g.MAX_VALUE_16BITS||this.centralDirRecords===g.MAX_VALUE_16BITS||this.centralDirSize===g.MAX_VALUE_32BITS||this.centralDirOffset===g.MAX_VALUE_32BITS){if(this.zip64=!0,(u=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(u),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var s=this.centralDirOffset+this.centralDirSize;this.zip64&&(s+=20,s+=12+this.zip64EndOfCentralSize);var d=f-s;if(0<d)this.isSignature(f,o.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(u){this.reader=l(u)},load:function(u){this.prepareReader(u),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=p},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var l=n("./reader/readerFor"),g=n("./utils"),o=n("./compressedObject"),a=n("./crc32"),c=n("./utf8"),p=n("./compressions"),u=n("./support");function f(s,d){this.options=s,this.loadOptions=d}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(s){var d,v;if(s.skip(22),this.fileNameLength=s.readInt(2),v=s.readInt(2),this.fileName=s.readData(this.fileNameLength),s.skip(v),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=function(h){for(var m in p)if(Object.prototype.hasOwnProperty.call(p,m)&&p[m].magic===h)return p[m];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+g.pretty(this.compressionMethod)+" unknown (inner file : "+g.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,d,s.readData(this.compressedSize))},readCentralPart:function(s){this.versionMadeBy=s.readInt(2),s.skip(2),this.bitFlag=s.readInt(2),this.compressionMethod=s.readString(2),this.date=s.readDate(),this.crc32=s.readInt(4),this.compressedSize=s.readInt(4),this.uncompressedSize=s.readInt(4);var d=s.readInt(2);if(this.extraFieldsLength=s.readInt(2),this.fileCommentLength=s.readInt(2),this.diskNumberStart=s.readInt(2),this.internalFileAttributes=s.readInt(2),this.externalFileAttributes=s.readInt(4),this.localHeaderOffset=s.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");s.skip(d),this.readExtraFields(s),this.parseZIP64ExtraField(s),this.fileComment=s.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var s=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),s==0&&(this.dosPermissions=63&this.externalFileAttributes),s==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var s=l(this.extraFields[1].value);this.uncompressedSize===g.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===g.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===g.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===g.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(s){var d,v,h,m=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<m;)d=s.readInt(2),v=s.readInt(2),h=s.readData(v),this.extraFields[d]={id:d,length:v,value:h};s.setIndex(m)},handleUTF8:function(){var s=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=c.utf8decode(this.fileName),this.fileCommentStr=c.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var v=g.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var m=g.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var d=l(s.value);return d.readInt(1)!==1||a(this.fileName)!==d.readInt(4)?null:c.utf8decode(d.readData(s.length-5))}return null},findExtraFieldUnicodeComment:function(){var s=this.extraFields[25461];if(s){var d=l(s.value);return d.readInt(1)!==1||a(this.fileComment)!==d.readInt(4)?null:c.utf8decode(d.readData(s.length-5))}return null}},r.exports=f},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,i){function l(d,v,h){this.name=d,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=v,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var g=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),a=n("./utf8"),c=n("./compressedObject"),p=n("./stream/GenericWorker");l.prototype={internalStream:function(d){var v=null,h="string";try{if(!d)throw new Error("No output type specified.");var m=(h=d.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),v=this._decompressWorker();var y=!this._dataBinary;y&&!m&&(v=v.pipe(new a.Utf8EncodeWorker)),!y&&m&&(v=v.pipe(new a.Utf8DecodeWorker))}catch(b){(v=new p("error")).error(b)}return new g(v,h,"")},async:function(d,v){return this.internalStream(d).accumulate(v)},nodeStream:function(d,v){return this.internalStream(d||"nodebuffer").toNodejsStream(v)},_compressWorker:function(d,v){if(this._data instanceof c&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new a.Utf8EncodeWorker)),c.createWorkerFrom(h,d,v)},_decompressWorker:function(){return this._data instanceof c?this._data.getContentWorker():this._data instanceof p?this._data:new o(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],f=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},s=0;s<u.length;s++)l.prototype[u[s]]=f;r.exports=l},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,i){(function(l){var g,o,a=l.MutationObserver||l.WebKitMutationObserver;if(a){var c=0,p=new a(d),u=l.document.createTextNode("");p.observe(u,{characterData:!0}),g=function(){u.data=c=++c%2}}else if(l.setImmediate||l.MessageChannel===void 0)g="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var v=l.document.createElement("script");v.onreadystatechange=function(){d(),v.onreadystatechange=null,v.parentNode.removeChild(v),v=null},l.document.documentElement.appendChild(v)}:function(){setTimeout(d,0)};else{var f=new l.MessageChannel;f.port1.onmessage=d,g=function(){f.port2.postMessage(0)}}var s=[];function d(){var v,h;o=!0;for(var m=s.length;m;){for(h=s,s=[],v=-1;++v<m;)h[v]();m=s.length}o=!1}r.exports=function(v){s.push(v)!==1||o||g()}}).call(this,typeof Bu<"u"?Bu:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var l=n("immediate");function g(){}var o={},a=["REJECTED"],c=["FULFILLED"],p=["PENDING"];function u(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=p,this.queue=[],this.outcome=void 0,m!==g&&v(this,m)}function f(m,y,b){this.promise=m,typeof y=="function"&&(this.onFulfilled=y,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function s(m,y,b){l(function(){var _;try{_=y(b)}catch(S){return o.reject(m,S)}_===m?o.reject(m,new TypeError("Cannot resolve promise with itself")):o.resolve(m,_)})}function d(m){var y=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof y=="function")return function(){y.apply(m,arguments)}}function v(m,y){var b=!1;function _(T){b||(b=!0,o.reject(m,T))}function S(T){b||(b=!0,o.resolve(m,T))}var x=h(function(){y(S,_)});x.status==="error"&&_(x.value)}function h(m,y){var b={};try{b.value=m(y),b.status="success"}catch(_){b.status="error",b.value=_}return b}(r.exports=u).prototype.finally=function(m){if(typeof m!="function")return this;var y=this.constructor;return this.then(function(b){return y.resolve(m()).then(function(){return b})},function(b){return y.resolve(m()).then(function(){throw b})})},u.prototype.catch=function(m){return this.then(null,m)},u.prototype.then=function(m,y){if(typeof m!="function"&&this.state===c||typeof y!="function"&&this.state===a)return this;var b=new this.constructor(g);return this.state!==p?s(b,this.state===c?m:y,this.outcome):this.queue.push(new f(b,m,y)),b},f.prototype.callFulfilled=function(m){o.resolve(this.promise,m)},f.prototype.otherCallFulfilled=function(m){s(this.promise,this.onFulfilled,m)},f.prototype.callRejected=function(m){o.reject(this.promise,m)},f.prototype.otherCallRejected=function(m){s(this.promise,this.onRejected,m)},o.resolve=function(m,y){var b=h(d,y);if(b.status==="error")return o.reject(m,b.value);var _=b.value;if(_)v(m,_);else{m.state=c,m.outcome=y;for(var S=-1,x=m.queue.length;++S<x;)m.queue[S].callFulfilled(y)}return m},o.reject=function(m,y){m.state=a,m.outcome=y;for(var b=-1,_=m.queue.length;++b<_;)m.queue[b].callRejected(y);return m},u.resolve=function(m){return m instanceof this?m:o.resolve(new this(g),m)},u.reject=function(m){var y=new this(g);return o.reject(y,m)},u.all=function(m){var y=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=m.length,_=!1;if(!b)return this.resolve([]);for(var S=new Array(b),x=0,T=-1,E=new this(g);++T<b;)k(m[T],T);return E;function k(D,W){y.resolve(D).then(function(I){S[W]=I,++x!==b||_||(_=!0,o.resolve(E,S))},function(I){_||(_=!0,o.reject(E,I))})}},u.race=function(m){var y=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=m.length,_=!1;if(!b)return this.resolve([]);for(var S=-1,x=new this(g);++S<b;)T=m[S],y.resolve(T).then(function(E){_||(_=!0,o.resolve(x,E))},function(E){_||(_=!0,o.reject(x,E))});var T;return x}},{immediate:36}],38:[function(n,r,i){var l={};(0,n("./lib/utils/common").assign)(l,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var l=n("./zlib/deflate"),g=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/messages"),c=n("./zlib/zstream"),p=Object.prototype.toString,u=0,f=-1,s=0,d=8;function v(m){if(!(this instanceof v))return new v(m);this.options=g.assign({level:f,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},m||{});var y=this.options;y.raw&&0<y.windowBits?y.windowBits=-y.windowBits:y.gzip&&0<y.windowBits&&y.windowBits<16&&(y.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new c,this.strm.avail_out=0;var b=l.deflateInit2(this.strm,y.level,y.method,y.windowBits,y.memLevel,y.strategy);if(b!==u)throw new Error(a[b]);if(y.header&&l.deflateSetHeader(this.strm,y.header),y.dictionary){var _;if(_=typeof y.dictionary=="string"?o.string2buf(y.dictionary):p.call(y.dictionary)==="[object ArrayBuffer]"?new Uint8Array(y.dictionary):y.dictionary,(b=l.deflateSetDictionary(this.strm,_))!==u)throw new Error(a[b]);this._dict_set=!0}}function h(m,y){var b=new v(y);if(b.push(m,!0),b.err)throw b.msg||a[b.err];return b.result}v.prototype.push=function(m,y){var b,_,S=this.strm,x=this.options.chunkSize;if(this.ended)return!1;_=y===~~y?y:y===!0?4:0,typeof m=="string"?S.input=o.string2buf(m):p.call(m)==="[object ArrayBuffer]"?S.input=new Uint8Array(m):S.input=m,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new g.Buf8(x),S.next_out=0,S.avail_out=x),(b=l.deflate(S,_))!==1&&b!==u)return this.onEnd(b),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||_!==4&&_!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(g.shrinkBuf(S.output,S.next_out))):this.onData(g.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&b!==1);return _===4?(b=l.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===u):_!==2||(this.onEnd(u),!(S.avail_out=0))},v.prototype.onData=function(m){this.chunks.push(m)},v.prototype.onEnd=function(m){m===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=g.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},i.Deflate=v,i.deflate=h,i.deflateRaw=function(m,y){return(y=y||{}).raw=!0,h(m,y)},i.gzip=function(m,y){return(y=y||{}).gzip=!0,h(m,y)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,i){var l=n("./zlib/inflate"),g=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/constants"),c=n("./zlib/messages"),p=n("./zlib/zstream"),u=n("./zlib/gzheader"),f=Object.prototype.toString;function s(v){if(!(this instanceof s))return new s(v);this.options=g.assign({chunkSize:16384,windowBits:0,to:""},v||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||v&&v.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&(15&h.windowBits)==0&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var m=l.inflateInit2(this.strm,h.windowBits);if(m!==a.Z_OK)throw new Error(c[m]);this.header=new u,l.inflateGetHeader(this.strm,this.header)}function d(v,h){var m=new s(h);if(m.push(v,!0),m.err)throw m.msg||c[m.err];return m.result}s.prototype.push=function(v,h){var m,y,b,_,S,x,T=this.strm,E=this.options.chunkSize,k=this.options.dictionary,D=!1;if(this.ended)return!1;y=h===~~h?h:h===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof v=="string"?T.input=o.binstring2buf(v):f.call(v)==="[object ArrayBuffer]"?T.input=new Uint8Array(v):T.input=v,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new g.Buf8(E),T.next_out=0,T.avail_out=E),(m=l.inflate(T,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&k&&(x=typeof k=="string"?o.string2buf(k):f.call(k)==="[object ArrayBuffer]"?new Uint8Array(k):k,m=l.inflateSetDictionary(this.strm,x)),m===a.Z_BUF_ERROR&&D===!0&&(m=a.Z_OK,D=!1),m!==a.Z_STREAM_END&&m!==a.Z_OK)return this.onEnd(m),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&m!==a.Z_STREAM_END&&(T.avail_in!==0||y!==a.Z_FINISH&&y!==a.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=o.utf8border(T.output,T.next_out),_=T.next_out-b,S=o.buf2string(T.output,b),T.next_out=_,T.avail_out=E-_,_&&g.arraySet(T.output,T.output,b,_,0),this.onData(S)):this.onData(g.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(D=!0)}while((0<T.avail_in||T.avail_out===0)&&m!==a.Z_STREAM_END);return m===a.Z_STREAM_END&&(y=a.Z_FINISH),y===a.Z_FINISH?(m=l.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===a.Z_OK):y!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(T.avail_out=0))},s.prototype.onData=function(v){this.chunks.push(v)},s.prototype.onEnd=function(v){v===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=g.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Inflate=s,i.inflate=d,i.inflateRaw=function(v,h){return(h=h||{}).raw=!0,d(v,h)},i.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(a){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var p=c.shift();if(p){if(typeof p!="object")throw new TypeError(p+"must be non-object");for(var u in p)p.hasOwnProperty(u)&&(a[u]=p[u])}}return a},i.shrinkBuf=function(a,c){return a.length===c?a:a.subarray?a.subarray(0,c):(a.length=c,a)};var g={arraySet:function(a,c,p,u,f){if(c.subarray&&a.subarray)a.set(c.subarray(p,p+u),f);else for(var s=0;s<u;s++)a[f+s]=c[p+s]},flattenChunks:function(a){var c,p,u,f,s,d;for(c=u=0,p=a.length;c<p;c++)u+=a[c].length;for(d=new Uint8Array(u),c=f=0,p=a.length;c<p;c++)s=a[c],d.set(s,f),f+=s.length;return d}},o={arraySet:function(a,c,p,u,f){for(var s=0;s<u;s++)a[f+s]=c[p+s]},flattenChunks:function(a){return[].concat.apply([],a)}};i.setTyped=function(a){a?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,g)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(l)},{}],42:[function(n,r,i){var l=n("./common"),g=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{g=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new l.Buf8(256),c=0;c<256;c++)a[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<=c?2:1;function p(u,f){if(f<65537&&(u.subarray&&o||!u.subarray&&g))return String.fromCharCode.apply(null,l.shrinkBuf(u,f));for(var s="",d=0;d<f;d++)s+=String.fromCharCode(u[d]);return s}a[254]=a[254]=1,i.string2buf=function(u){var f,s,d,v,h,m=u.length,y=0;for(v=0;v<m;v++)(64512&(s=u.charCodeAt(v)))==55296&&v+1<m&&(64512&(d=u.charCodeAt(v+1)))==56320&&(s=65536+(s-55296<<10)+(d-56320),v++),y+=s<128?1:s<2048?2:s<65536?3:4;for(f=new l.Buf8(y),v=h=0;h<y;v++)(64512&(s=u.charCodeAt(v)))==55296&&v+1<m&&(64512&(d=u.charCodeAt(v+1)))==56320&&(s=65536+(s-55296<<10)+(d-56320),v++),s<128?f[h++]=s:(s<2048?f[h++]=192|s>>>6:(s<65536?f[h++]=224|s>>>12:(f[h++]=240|s>>>18,f[h++]=128|s>>>12&63),f[h++]=128|s>>>6&63),f[h++]=128|63&s);return f},i.buf2binstring=function(u){return p(u,u.length)},i.binstring2buf=function(u){for(var f=new l.Buf8(u.length),s=0,d=f.length;s<d;s++)f[s]=u.charCodeAt(s);return f},i.buf2string=function(u,f){var s,d,v,h,m=f||u.length,y=new Array(2*m);for(s=d=0;s<m;)if((v=u[s++])<128)y[d++]=v;else if(4<(h=a[v]))y[d++]=65533,s+=h-1;else{for(v&=h===2?31:h===3?15:7;1<h&&s<m;)v=v<<6|63&u[s++],h--;1<h?y[d++]=65533:v<65536?y[d++]=v:(v-=65536,y[d++]=55296|v>>10&1023,y[d++]=56320|1023&v)}return p(y,d)},i.utf8border=function(u,f){var s;for((f=f||u.length)>u.length&&(f=u.length),s=f-1;0<=s&&(192&u[s])==128;)s--;return s<0||s===0?f:s+a[u[s]]>f?s:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(l,g,o,a){for(var c=65535&l|0,p=l>>>16&65535|0,u=0;o!==0;){for(o-=u=2e3<o?2e3:o;p=p+(c=c+g[a++]|0)|0,--u;);c%=65521,p%=65521}return c|p<<16|0}},{}],44:[function(n,r,i){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,i){var l=function(){for(var g,o=[],a=0;a<256;a++){g=a;for(var c=0;c<8;c++)g=1&g?3988292384^g>>>1:g>>>1;o[a]=g}return o}();r.exports=function(g,o,a,c){var p=l,u=c+a;g^=-1;for(var f=c;f<u;f++)g=g>>>8^p[255&(g^o[f])];return-1^g}},{}],46:[function(n,r,i){var l,g=n("../utils/common"),o=n("./trees"),a=n("./adler32"),c=n("./crc32"),p=n("./messages"),u=0,f=4,s=0,d=-2,v=-1,h=4,m=2,y=8,b=9,_=286,S=30,x=19,T=2*_+1,E=15,k=3,D=258,W=D+k+1,I=42,U=113,A=1,ee=2,de=3,z=4;function q(C,H){return C.msg=p[H],H}function O(C){return(C<<1)-(4<C?9:0)}function F(C){for(var H=C.length;0<=--H;)C[H]=0}function R(C){var H=C.state,K=H.pending;K>C.avail_out&&(K=C.avail_out),K!==0&&(g.arraySet(C.output,H.pending_buf,H.pending_out,K,C.next_out),C.next_out+=K,H.pending_out+=K,C.total_out+=K,C.avail_out-=K,H.pending-=K,H.pending===0&&(H.pending_out=0))}function P(C,H){o._tr_flush_block(C,0<=C.block_start?C.block_start:-1,C.strstart-C.block_start,H),C.block_start=C.strstart,R(C.strm)}function G(C,H){C.pending_buf[C.pending++]=H}function $(C,H){C.pending_buf[C.pending++]=H>>>8&255,C.pending_buf[C.pending++]=255&H}function M(C,H){var K,L,B=C.max_chain_length,Z=C.strstart,ce=C.prev_length,le=C.nice_match,Y=C.strstart>C.w_size-W?C.strstart-(C.w_size-W):0,he=C.window,ve=C.w_mask,ge=C.prev,Ee=C.strstart+D,_e=he[Z+ce-1],Te=he[Z+ce];C.prev_length>=C.good_match&&(B>>=2),le>C.lookahead&&(le=C.lookahead);do if(he[(K=H)+ce]===Te&&he[K+ce-1]===_e&&he[K]===he[Z]&&he[++K]===he[Z+1]){Z+=2,K++;do;while(he[++Z]===he[++K]&&he[++Z]===he[++K]&&he[++Z]===he[++K]&&he[++Z]===he[++K]&&he[++Z]===he[++K]&&he[++Z]===he[++K]&&he[++Z]===he[++K]&&he[++Z]===he[++K]&&Z<Ee);if(L=D-(Ee-Z),Z=Ee-D,ce<L){if(C.match_start=H,le<=(ce=L))break;_e=he[Z+ce-1],Te=he[Z+ce]}}while((H=ge[H&ve])>Y&&--B!=0);return ce<=C.lookahead?ce:C.lookahead}function ne(C){var H,K,L,B,Z,ce,le,Y,he,ve,ge=C.w_size;do{if(B=C.window_size-C.lookahead-C.strstart,C.strstart>=ge+(ge-W)){for(g.arraySet(C.window,C.window,ge,ge,0),C.match_start-=ge,C.strstart-=ge,C.block_start-=ge,H=K=C.hash_size;L=C.head[--H],C.head[H]=ge<=L?L-ge:0,--K;);for(H=K=ge;L=C.prev[--H],C.prev[H]=ge<=L?L-ge:0,--K;);B+=ge}if(C.strm.avail_in===0)break;if(ce=C.strm,le=C.window,Y=C.strstart+C.lookahead,he=B,ve=void 0,ve=ce.avail_in,he<ve&&(ve=he),K=ve===0?0:(ce.avail_in-=ve,g.arraySet(le,ce.input,ce.next_in,ve,Y),ce.state.wrap===1?ce.adler=a(ce.adler,le,ve,Y):ce.state.wrap===2&&(ce.adler=c(ce.adler,le,ve,Y)),ce.next_in+=ve,ce.total_in+=ve,ve),C.lookahead+=K,C.lookahead+C.insert>=k)for(Z=C.strstart-C.insert,C.ins_h=C.window[Z],C.ins_h=(C.ins_h<<C.hash_shift^C.window[Z+1])&C.hash_mask;C.insert&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[Z+k-1])&C.hash_mask,C.prev[Z&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=Z,Z++,C.insert--,!(C.lookahead+C.insert<k)););}while(C.lookahead<W&&C.strm.avail_in!==0)}function X(C,H){for(var K,L;;){if(C.lookahead<W){if(ne(C),C.lookahead<W&&H===u)return A;if(C.lookahead===0)break}if(K=0,C.lookahead>=k&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+k-1])&C.hash_mask,K=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart),K!==0&&C.strstart-K<=C.w_size-W&&(C.match_length=M(C,K)),C.match_length>=k)if(L=o._tr_tally(C,C.strstart-C.match_start,C.match_length-k),C.lookahead-=C.match_length,C.match_length<=C.max_lazy_match&&C.lookahead>=k){for(C.match_length--;C.strstart++,C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+k-1])&C.hash_mask,K=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart,--C.match_length!=0;);C.strstart++}else C.strstart+=C.match_length,C.match_length=0,C.ins_h=C.window[C.strstart],C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+1])&C.hash_mask;else L=o._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++;if(L&&(P(C,!1),C.strm.avail_out===0))return A}return C.insert=C.strstart<k-1?C.strstart:k-1,H===f?(P(C,!0),C.strm.avail_out===0?de:z):C.last_lit&&(P(C,!1),C.strm.avail_out===0)?A:ee}function te(C,H){for(var K,L,B;;){if(C.lookahead<W){if(ne(C),C.lookahead<W&&H===u)return A;if(C.lookahead===0)break}if(K=0,C.lookahead>=k&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+k-1])&C.hash_mask,K=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart),C.prev_length=C.match_length,C.prev_match=C.match_start,C.match_length=k-1,K!==0&&C.prev_length<C.max_lazy_match&&C.strstart-K<=C.w_size-W&&(C.match_length=M(C,K),C.match_length<=5&&(C.strategy===1||C.match_length===k&&4096<C.strstart-C.match_start)&&(C.match_length=k-1)),C.prev_length>=k&&C.match_length<=C.prev_length){for(B=C.strstart+C.lookahead-k,L=o._tr_tally(C,C.strstart-1-C.prev_match,C.prev_length-k),C.lookahead-=C.prev_length-1,C.prev_length-=2;++C.strstart<=B&&(C.ins_h=(C.ins_h<<C.hash_shift^C.window[C.strstart+k-1])&C.hash_mask,K=C.prev[C.strstart&C.w_mask]=C.head[C.ins_h],C.head[C.ins_h]=C.strstart),--C.prev_length!=0;);if(C.match_available=0,C.match_length=k-1,C.strstart++,L&&(P(C,!1),C.strm.avail_out===0))return A}else if(C.match_available){if((L=o._tr_tally(C,0,C.window[C.strstart-1]))&&P(C,!1),C.strstart++,C.lookahead--,C.strm.avail_out===0)return A}else C.match_available=1,C.strstart++,C.lookahead--}return C.match_available&&(L=o._tr_tally(C,0,C.window[C.strstart-1]),C.match_available=0),C.insert=C.strstart<k-1?C.strstart:k-1,H===f?(P(C,!0),C.strm.avail_out===0?de:z):C.last_lit&&(P(C,!1),C.strm.avail_out===0)?A:ee}function Q(C,H,K,L,B){this.good_length=C,this.max_lazy=H,this.nice_length=K,this.max_chain=L,this.func=B}function J(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=y,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new g.Buf16(2*T),this.dyn_dtree=new g.Buf16(2*(2*S+1)),this.bl_tree=new g.Buf16(2*(2*x+1)),F(this.dyn_ltree),F(this.dyn_dtree),F(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new g.Buf16(E+1),this.heap=new g.Buf16(2*_+1),F(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new g.Buf16(2*_+1),F(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function oe(C){var H;return C&&C.state?(C.total_in=C.total_out=0,C.data_type=m,(H=C.state).pending=0,H.pending_out=0,H.wrap<0&&(H.wrap=-H.wrap),H.status=H.wrap?I:U,C.adler=H.wrap===2?0:1,H.last_flush=u,o._tr_init(H),s):q(C,d)}function pe(C){var H=oe(C);return H===s&&function(K){K.window_size=2*K.w_size,F(K.head),K.max_lazy_match=l[K.level].max_lazy,K.good_match=l[K.level].good_length,K.nice_match=l[K.level].nice_length,K.max_chain_length=l[K.level].max_chain,K.strstart=0,K.block_start=0,K.lookahead=0,K.insert=0,K.match_length=K.prev_length=k-1,K.match_available=0,K.ins_h=0}(C.state),H}function N(C,H,K,L,B,Z){if(!C)return d;var ce=1;if(H===v&&(H=6),L<0?(ce=0,L=-L):15<L&&(ce=2,L-=16),B<1||b<B||K!==y||L<8||15<L||H<0||9<H||Z<0||h<Z)return q(C,d);L===8&&(L=9);var le=new J;return(C.state=le).strm=C,le.wrap=ce,le.gzhead=null,le.w_bits=L,le.w_size=1<<le.w_bits,le.w_mask=le.w_size-1,le.hash_bits=B+7,le.hash_size=1<<le.hash_bits,le.hash_mask=le.hash_size-1,le.hash_shift=~~((le.hash_bits+k-1)/k),le.window=new g.Buf8(2*le.w_size),le.head=new g.Buf16(le.hash_size),le.prev=new g.Buf16(le.w_size),le.lit_bufsize=1<<B+6,le.pending_buf_size=4*le.lit_bufsize,le.pending_buf=new g.Buf8(le.pending_buf_size),le.d_buf=1*le.lit_bufsize,le.l_buf=3*le.lit_bufsize,le.level=H,le.strategy=Z,le.method=K,pe(C)}l=[new Q(0,0,0,0,function(C,H){var K=65535;for(K>C.pending_buf_size-5&&(K=C.pending_buf_size-5);;){if(C.lookahead<=1){if(ne(C),C.lookahead===0&&H===u)return A;if(C.lookahead===0)break}C.strstart+=C.lookahead,C.lookahead=0;var L=C.block_start+K;if((C.strstart===0||C.strstart>=L)&&(C.lookahead=C.strstart-L,C.strstart=L,P(C,!1),C.strm.avail_out===0)||C.strstart-C.block_start>=C.w_size-W&&(P(C,!1),C.strm.avail_out===0))return A}return C.insert=0,H===f?(P(C,!0),C.strm.avail_out===0?de:z):(C.strstart>C.block_start&&(P(C,!1),C.strm.avail_out),A)}),new Q(4,4,8,4,X),new Q(4,5,16,8,X),new Q(4,6,32,32,X),new Q(4,4,16,16,te),new Q(8,16,32,32,te),new Q(8,16,128,128,te),new Q(8,32,128,256,te),new Q(32,128,258,1024,te),new Q(32,258,258,4096,te)],i.deflateInit=function(C,H){return N(C,H,y,15,8,0)},i.deflateInit2=N,i.deflateReset=pe,i.deflateResetKeep=oe,i.deflateSetHeader=function(C,H){return C&&C.state?C.state.wrap!==2?d:(C.state.gzhead=H,s):d},i.deflate=function(C,H){var K,L,B,Z;if(!C||!C.state||5<H||H<0)return C?q(C,d):d;if(L=C.state,!C.output||!C.input&&C.avail_in!==0||L.status===666&&H!==f)return q(C,C.avail_out===0?-5:d);if(L.strm=C,K=L.last_flush,L.last_flush=H,L.status===I)if(L.wrap===2)C.adler=0,G(L,31),G(L,139),G(L,8),L.gzhead?(G(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),G(L,255&L.gzhead.time),G(L,L.gzhead.time>>8&255),G(L,L.gzhead.time>>16&255),G(L,L.gzhead.time>>24&255),G(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),G(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(G(L,255&L.gzhead.extra.length),G(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(C.adler=c(C.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(G(L,0),G(L,0),G(L,0),G(L,0),G(L,0),G(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),G(L,3),L.status=U);else{var ce=y+(L.w_bits-8<<4)<<8;ce|=(2<=L.strategy||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6,L.strstart!==0&&(ce|=32),ce+=31-ce%31,L.status=U,$(L,ce),L.strstart!==0&&($(L,C.adler>>>16),$(L,65535&C.adler)),C.adler=1}if(L.status===69)if(L.gzhead.extra){for(B=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>B&&(C.adler=c(C.adler,L.pending_buf,L.pending-B,B)),R(C),B=L.pending,L.pending!==L.pending_buf_size));)G(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>B&&(C.adler=c(C.adler,L.pending_buf,L.pending-B,B)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(L.status===73)if(L.gzhead.name){B=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>B&&(C.adler=c(C.adler,L.pending_buf,L.pending-B,B)),R(C),B=L.pending,L.pending===L.pending_buf_size)){Z=1;break}Z=L.gzindex<L.gzhead.name.length?255&L.gzhead.name.charCodeAt(L.gzindex++):0,G(L,Z)}while(Z!==0);L.gzhead.hcrc&&L.pending>B&&(C.adler=c(C.adler,L.pending_buf,L.pending-B,B)),Z===0&&(L.gzindex=0,L.status=91)}else L.status=91;if(L.status===91)if(L.gzhead.comment){B=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>B&&(C.adler=c(C.adler,L.pending_buf,L.pending-B,B)),R(C),B=L.pending,L.pending===L.pending_buf_size)){Z=1;break}Z=L.gzindex<L.gzhead.comment.length?255&L.gzhead.comment.charCodeAt(L.gzindex++):0,G(L,Z)}while(Z!==0);L.gzhead.hcrc&&L.pending>B&&(C.adler=c(C.adler,L.pending_buf,L.pending-B,B)),Z===0&&(L.status=103)}else L.status=103;if(L.status===103&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&R(C),L.pending+2<=L.pending_buf_size&&(G(L,255&C.adler),G(L,C.adler>>8&255),C.adler=0,L.status=U)):L.status=U),L.pending!==0){if(R(C),C.avail_out===0)return L.last_flush=-1,s}else if(C.avail_in===0&&O(H)<=O(K)&&H!==f)return q(C,-5);if(L.status===666&&C.avail_in!==0)return q(C,-5);if(C.avail_in!==0||L.lookahead!==0||H!==u&&L.status!==666){var le=L.strategy===2?function(Y,he){for(var ve;;){if(Y.lookahead===0&&(ne(Y),Y.lookahead===0)){if(he===u)return A;break}if(Y.match_length=0,ve=o._tr_tally(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++,ve&&(P(Y,!1),Y.strm.avail_out===0))return A}return Y.insert=0,he===f?(P(Y,!0),Y.strm.avail_out===0?de:z):Y.last_lit&&(P(Y,!1),Y.strm.avail_out===0)?A:ee}(L,H):L.strategy===3?function(Y,he){for(var ve,ge,Ee,_e,Te=Y.window;;){if(Y.lookahead<=D){if(ne(Y),Y.lookahead<=D&&he===u)return A;if(Y.lookahead===0)break}if(Y.match_length=0,Y.lookahead>=k&&0<Y.strstart&&(ge=Te[Ee=Y.strstart-1])===Te[++Ee]&&ge===Te[++Ee]&&ge===Te[++Ee]){_e=Y.strstart+D;do;while(ge===Te[++Ee]&&ge===Te[++Ee]&&ge===Te[++Ee]&&ge===Te[++Ee]&&ge===Te[++Ee]&&ge===Te[++Ee]&&ge===Te[++Ee]&&ge===Te[++Ee]&&Ee<_e);Y.match_length=D-(_e-Ee),Y.match_length>Y.lookahead&&(Y.match_length=Y.lookahead)}if(Y.match_length>=k?(ve=o._tr_tally(Y,1,Y.match_length-k),Y.lookahead-=Y.match_length,Y.strstart+=Y.match_length,Y.match_length=0):(ve=o._tr_tally(Y,0,Y.window[Y.strstart]),Y.lookahead--,Y.strstart++),ve&&(P(Y,!1),Y.strm.avail_out===0))return A}return Y.insert=0,he===f?(P(Y,!0),Y.strm.avail_out===0?de:z):Y.last_lit&&(P(Y,!1),Y.strm.avail_out===0)?A:ee}(L,H):l[L.level].func(L,H);if(le!==de&&le!==z||(L.status=666),le===A||le===de)return C.avail_out===0&&(L.last_flush=-1),s;if(le===ee&&(H===1?o._tr_align(L):H!==5&&(o._tr_stored_block(L,0,0,!1),H===3&&(F(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),R(C),C.avail_out===0))return L.last_flush=-1,s}return H!==f?s:L.wrap<=0?1:(L.wrap===2?(G(L,255&C.adler),G(L,C.adler>>8&255),G(L,C.adler>>16&255),G(L,C.adler>>24&255),G(L,255&C.total_in),G(L,C.total_in>>8&255),G(L,C.total_in>>16&255),G(L,C.total_in>>24&255)):($(L,C.adler>>>16),$(L,65535&C.adler)),R(C),0<L.wrap&&(L.wrap=-L.wrap),L.pending!==0?s:1)},i.deflateEnd=function(C){var H;return C&&C.state?(H=C.state.status)!==I&&H!==69&&H!==73&&H!==91&&H!==103&&H!==U&&H!==666?q(C,d):(C.state=null,H===U?q(C,-3):s):d},i.deflateSetDictionary=function(C,H){var K,L,B,Z,ce,le,Y,he,ve=H.length;if(!C||!C.state||(Z=(K=C.state).wrap)===2||Z===1&&K.status!==I||K.lookahead)return d;for(Z===1&&(C.adler=a(C.adler,H,ve,0)),K.wrap=0,ve>=K.w_size&&(Z===0&&(F(K.head),K.strstart=0,K.block_start=0,K.insert=0),he=new g.Buf8(K.w_size),g.arraySet(he,H,ve-K.w_size,K.w_size,0),H=he,ve=K.w_size),ce=C.avail_in,le=C.next_in,Y=C.input,C.avail_in=ve,C.next_in=0,C.input=H,ne(K);K.lookahead>=k;){for(L=K.strstart,B=K.lookahead-(k-1);K.ins_h=(K.ins_h<<K.hash_shift^K.window[L+k-1])&K.hash_mask,K.prev[L&K.w_mask]=K.head[K.ins_h],K.head[K.ins_h]=L,L++,--B;);K.strstart=L,K.lookahead=k-1,ne(K)}return K.strstart+=K.lookahead,K.block_start=K.strstart,K.insert=K.lookahead,K.lookahead=0,K.match_length=K.prev_length=k-1,K.match_available=0,C.next_in=le,C.input=Y,C.avail_in=ce,K.wrap=Z,s},i.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,i){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,i){r.exports=function(l,g){var o,a,c,p,u,f,s,d,v,h,m,y,b,_,S,x,T,E,k,D,W,I,U,A,ee;o=l.state,a=l.next_in,A=l.input,c=a+(l.avail_in-5),p=l.next_out,ee=l.output,u=p-(g-l.avail_out),f=p+(l.avail_out-257),s=o.dmax,d=o.wsize,v=o.whave,h=o.wnext,m=o.window,y=o.hold,b=o.bits,_=o.lencode,S=o.distcode,x=(1<<o.lenbits)-1,T=(1<<o.distbits)-1;e:do{b<15&&(y+=A[a++]<<b,b+=8,y+=A[a++]<<b,b+=8),E=_[y&x];t:for(;;){if(y>>>=k=E>>>24,b-=k,(k=E>>>16&255)===0)ee[p++]=65535&E;else{if(!(16&k)){if((64&k)==0){E=_[(65535&E)+(y&(1<<k)-1)];continue t}if(32&k){o.mode=12;break e}l.msg="invalid literal/length code",o.mode=30;break e}D=65535&E,(k&=15)&&(b<k&&(y+=A[a++]<<b,b+=8),D+=y&(1<<k)-1,y>>>=k,b-=k),b<15&&(y+=A[a++]<<b,b+=8,y+=A[a++]<<b,b+=8),E=S[y&T];n:for(;;){if(y>>>=k=E>>>24,b-=k,!(16&(k=E>>>16&255))){if((64&k)==0){E=S[(65535&E)+(y&(1<<k)-1)];continue n}l.msg="invalid distance code",o.mode=30;break e}if(W=65535&E,b<(k&=15)&&(y+=A[a++]<<b,(b+=8)<k&&(y+=A[a++]<<b,b+=8)),s<(W+=y&(1<<k)-1)){l.msg="invalid distance too far back",o.mode=30;break e}if(y>>>=k,b-=k,(k=p-u)<W){if(v<(k=W-k)&&o.sane){l.msg="invalid distance too far back",o.mode=30;break e}if(U=m,(I=0)===h){if(I+=d-k,k<D){for(D-=k;ee[p++]=m[I++],--k;);I=p-W,U=ee}}else if(h<k){if(I+=d+h-k,(k-=h)<D){for(D-=k;ee[p++]=m[I++],--k;);if(I=0,h<D){for(D-=k=h;ee[p++]=m[I++],--k;);I=p-W,U=ee}}}else if(I+=h-k,k<D){for(D-=k;ee[p++]=m[I++],--k;);I=p-W,U=ee}for(;2<D;)ee[p++]=U[I++],ee[p++]=U[I++],ee[p++]=U[I++],D-=3;D&&(ee[p++]=U[I++],1<D&&(ee[p++]=U[I++]))}else{for(I=p-W;ee[p++]=ee[I++],ee[p++]=ee[I++],ee[p++]=ee[I++],2<(D-=3););D&&(ee[p++]=ee[I++],1<D&&(ee[p++]=ee[I++]))}break}}break}}while(a<c&&p<f);a-=D=b>>3,y&=(1<<(b-=D<<3))-1,l.next_in=a,l.next_out=p,l.avail_in=a<c?c-a+5:5-(a-c),l.avail_out=p<f?f-p+257:257-(p-f),o.hold=y,o.bits=b}},{}],49:[function(n,r,i){var l=n("../utils/common"),g=n("./adler32"),o=n("./crc32"),a=n("./inffast"),c=n("./inftrees"),p=1,u=2,f=0,s=-2,d=1,v=852,h=592;function m(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function y(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new l.Buf16(320),this.work=new l.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(I){var U;return I&&I.state?(U=I.state,I.total_in=I.total_out=U.total=0,I.msg="",U.wrap&&(I.adler=1&U.wrap),U.mode=d,U.last=0,U.havedict=0,U.dmax=32768,U.head=null,U.hold=0,U.bits=0,U.lencode=U.lendyn=new l.Buf32(v),U.distcode=U.distdyn=new l.Buf32(h),U.sane=1,U.back=-1,f):s}function _(I){var U;return I&&I.state?((U=I.state).wsize=0,U.whave=0,U.wnext=0,b(I)):s}function S(I,U){var A,ee;return I&&I.state?(ee=I.state,U<0?(A=0,U=-U):(A=1+(U>>4),U<48&&(U&=15)),U&&(U<8||15<U)?s:(ee.window!==null&&ee.wbits!==U&&(ee.window=null),ee.wrap=A,ee.wbits=U,_(I))):s}function x(I,U){var A,ee;return I?(ee=new y,(I.state=ee).window=null,(A=S(I,U))!==f&&(I.state=null),A):s}var T,E,k=!0;function D(I){if(k){var U;for(T=new l.Buf32(512),E=new l.Buf32(32),U=0;U<144;)I.lens[U++]=8;for(;U<256;)I.lens[U++]=9;for(;U<280;)I.lens[U++]=7;for(;U<288;)I.lens[U++]=8;for(c(p,I.lens,0,288,T,0,I.work,{bits:9}),U=0;U<32;)I.lens[U++]=5;c(u,I.lens,0,32,E,0,I.work,{bits:5}),k=!1}I.lencode=T,I.lenbits=9,I.distcode=E,I.distbits=5}function W(I,U,A,ee){var de,z=I.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new l.Buf8(z.wsize)),ee>=z.wsize?(l.arraySet(z.window,U,A-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(ee<(de=z.wsize-z.wnext)&&(de=ee),l.arraySet(z.window,U,A-ee,de,z.wnext),(ee-=de)?(l.arraySet(z.window,U,A-ee,ee,0),z.wnext=ee,z.whave=z.wsize):(z.wnext+=de,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=de))),0}i.inflateReset=_,i.inflateReset2=S,i.inflateResetKeep=b,i.inflateInit=function(I){return x(I,15)},i.inflateInit2=x,i.inflate=function(I,U){var A,ee,de,z,q,O,F,R,P,G,$,M,ne,X,te,Q,J,oe,pe,N,C,H,K,L,B=0,Z=new l.Buf8(4),ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return s;(A=I.state).mode===12&&(A.mode=13),q=I.next_out,de=I.output,F=I.avail_out,z=I.next_in,ee=I.input,O=I.avail_in,R=A.hold,P=A.bits,G=O,$=F,H=f;e:for(;;)switch(A.mode){case d:if(A.wrap===0){A.mode=13;break}for(;P<16;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if(2&A.wrap&&R===35615){Z[A.check=0]=255&R,Z[1]=R>>>8&255,A.check=o(A.check,Z,2,0),P=R=0,A.mode=2;break}if(A.flags=0,A.head&&(A.head.done=!1),!(1&A.wrap)||(((255&R)<<8)+(R>>8))%31){I.msg="incorrect header check",A.mode=30;break}if((15&R)!=8){I.msg="unknown compression method",A.mode=30;break}if(P-=4,C=8+(15&(R>>>=4)),A.wbits===0)A.wbits=C;else if(C>A.wbits){I.msg="invalid window size",A.mode=30;break}A.dmax=1<<C,I.adler=A.check=1,A.mode=512&R?10:12,P=R=0;break;case 2:for(;P<16;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if(A.flags=R,(255&A.flags)!=8){I.msg="unknown compression method",A.mode=30;break}if(57344&A.flags){I.msg="unknown header flags set",A.mode=30;break}A.head&&(A.head.text=R>>8&1),512&A.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,A.check=o(A.check,Z,2,0)),P=R=0,A.mode=3;case 3:for(;P<32;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}A.head&&(A.head.time=R),512&A.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,Z[2]=R>>>16&255,Z[3]=R>>>24&255,A.check=o(A.check,Z,4,0)),P=R=0,A.mode=4;case 4:for(;P<16;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}A.head&&(A.head.xflags=255&R,A.head.os=R>>8),512&A.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,A.check=o(A.check,Z,2,0)),P=R=0,A.mode=5;case 5:if(1024&A.flags){for(;P<16;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}A.length=R,A.head&&(A.head.extra_len=R),512&A.flags&&(Z[0]=255&R,Z[1]=R>>>8&255,A.check=o(A.check,Z,2,0)),P=R=0}else A.head&&(A.head.extra=null);A.mode=6;case 6:if(1024&A.flags&&(O<(M=A.length)&&(M=O),M&&(A.head&&(C=A.head.extra_len-A.length,A.head.extra||(A.head.extra=new Array(A.head.extra_len)),l.arraySet(A.head.extra,ee,z,M,C)),512&A.flags&&(A.check=o(A.check,ee,M,z)),O-=M,z+=M,A.length-=M),A.length))break e;A.length=0,A.mode=7;case 7:if(2048&A.flags){if(O===0)break e;for(M=0;C=ee[z+M++],A.head&&C&&A.length<65536&&(A.head.name+=String.fromCharCode(C)),C&&M<O;);if(512&A.flags&&(A.check=o(A.check,ee,M,z)),O-=M,z+=M,C)break e}else A.head&&(A.head.name=null);A.length=0,A.mode=8;case 8:if(4096&A.flags){if(O===0)break e;for(M=0;C=ee[z+M++],A.head&&C&&A.length<65536&&(A.head.comment+=String.fromCharCode(C)),C&&M<O;);if(512&A.flags&&(A.check=o(A.check,ee,M,z)),O-=M,z+=M,C)break e}else A.head&&(A.head.comment=null);A.mode=9;case 9:if(512&A.flags){for(;P<16;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if(R!==(65535&A.check)){I.msg="header crc mismatch",A.mode=30;break}P=R=0}A.head&&(A.head.hcrc=A.flags>>9&1,A.head.done=!0),I.adler=A.check=0,A.mode=12;break;case 10:for(;P<32;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}I.adler=A.check=m(R),P=R=0,A.mode=11;case 11:if(A.havedict===0)return I.next_out=q,I.avail_out=F,I.next_in=z,I.avail_in=O,A.hold=R,A.bits=P,2;I.adler=A.check=1,A.mode=12;case 12:if(U===5||U===6)break e;case 13:if(A.last){R>>>=7&P,P-=7&P,A.mode=27;break}for(;P<3;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}switch(A.last=1&R,P-=1,3&(R>>>=1)){case 0:A.mode=14;break;case 1:if(D(A),A.mode=20,U!==6)break;R>>>=2,P-=2;break e;case 2:A.mode=17;break;case 3:I.msg="invalid block type",A.mode=30}R>>>=2,P-=2;break;case 14:for(R>>>=7&P,P-=7&P;P<32;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if((65535&R)!=(R>>>16^65535)){I.msg="invalid stored block lengths",A.mode=30;break}if(A.length=65535&R,P=R=0,A.mode=15,U===6)break e;case 15:A.mode=16;case 16:if(M=A.length){if(O<M&&(M=O),F<M&&(M=F),M===0)break e;l.arraySet(de,ee,z,M,q),O-=M,z+=M,F-=M,q+=M,A.length-=M;break}A.mode=12;break;case 17:for(;P<14;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if(A.nlen=257+(31&R),R>>>=5,P-=5,A.ndist=1+(31&R),R>>>=5,P-=5,A.ncode=4+(15&R),R>>>=4,P-=4,286<A.nlen||30<A.ndist){I.msg="too many length or distance symbols",A.mode=30;break}A.have=0,A.mode=18;case 18:for(;A.have<A.ncode;){for(;P<3;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}A.lens[ce[A.have++]]=7&R,R>>>=3,P-=3}for(;A.have<19;)A.lens[ce[A.have++]]=0;if(A.lencode=A.lendyn,A.lenbits=7,K={bits:A.lenbits},H=c(0,A.lens,0,19,A.lencode,0,A.work,K),A.lenbits=K.bits,H){I.msg="invalid code lengths set",A.mode=30;break}A.have=0,A.mode=19;case 19:for(;A.have<A.nlen+A.ndist;){for(;Q=(B=A.lencode[R&(1<<A.lenbits)-1])>>>16&255,J=65535&B,!((te=B>>>24)<=P);){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if(J<16)R>>>=te,P-=te,A.lens[A.have++]=J;else{if(J===16){for(L=te+2;P<L;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if(R>>>=te,P-=te,A.have===0){I.msg="invalid bit length repeat",A.mode=30;break}C=A.lens[A.have-1],M=3+(3&R),R>>>=2,P-=2}else if(J===17){for(L=te+3;P<L;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}P-=te,C=0,M=3+(7&(R>>>=te)),R>>>=3,P-=3}else{for(L=te+7;P<L;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}P-=te,C=0,M=11+(127&(R>>>=te)),R>>>=7,P-=7}if(A.have+M>A.nlen+A.ndist){I.msg="invalid bit length repeat",A.mode=30;break}for(;M--;)A.lens[A.have++]=C}}if(A.mode===30)break;if(A.lens[256]===0){I.msg="invalid code -- missing end-of-block",A.mode=30;break}if(A.lenbits=9,K={bits:A.lenbits},H=c(p,A.lens,0,A.nlen,A.lencode,0,A.work,K),A.lenbits=K.bits,H){I.msg="invalid literal/lengths set",A.mode=30;break}if(A.distbits=6,A.distcode=A.distdyn,K={bits:A.distbits},H=c(u,A.lens,A.nlen,A.ndist,A.distcode,0,A.work,K),A.distbits=K.bits,H){I.msg="invalid distances set",A.mode=30;break}if(A.mode=20,U===6)break e;case 20:A.mode=21;case 21:if(6<=O&&258<=F){I.next_out=q,I.avail_out=F,I.next_in=z,I.avail_in=O,A.hold=R,A.bits=P,a(I,$),q=I.next_out,de=I.output,F=I.avail_out,z=I.next_in,ee=I.input,O=I.avail_in,R=A.hold,P=A.bits,A.mode===12&&(A.back=-1);break}for(A.back=0;Q=(B=A.lencode[R&(1<<A.lenbits)-1])>>>16&255,J=65535&B,!((te=B>>>24)<=P);){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if(Q&&(240&Q)==0){for(oe=te,pe=Q,N=J;Q=(B=A.lencode[N+((R&(1<<oe+pe)-1)>>oe)])>>>16&255,J=65535&B,!(oe+(te=B>>>24)<=P);){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}R>>>=oe,P-=oe,A.back+=oe}if(R>>>=te,P-=te,A.back+=te,A.length=J,Q===0){A.mode=26;break}if(32&Q){A.back=-1,A.mode=12;break}if(64&Q){I.msg="invalid literal/length code",A.mode=30;break}A.extra=15&Q,A.mode=22;case 22:if(A.extra){for(L=A.extra;P<L;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}A.length+=R&(1<<A.extra)-1,R>>>=A.extra,P-=A.extra,A.back+=A.extra}A.was=A.length,A.mode=23;case 23:for(;Q=(B=A.distcode[R&(1<<A.distbits)-1])>>>16&255,J=65535&B,!((te=B>>>24)<=P);){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if((240&Q)==0){for(oe=te,pe=Q,N=J;Q=(B=A.distcode[N+((R&(1<<oe+pe)-1)>>oe)])>>>16&255,J=65535&B,!(oe+(te=B>>>24)<=P);){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}R>>>=oe,P-=oe,A.back+=oe}if(R>>>=te,P-=te,A.back+=te,64&Q){I.msg="invalid distance code",A.mode=30;break}A.offset=J,A.extra=15&Q,A.mode=24;case 24:if(A.extra){for(L=A.extra;P<L;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}A.offset+=R&(1<<A.extra)-1,R>>>=A.extra,P-=A.extra,A.back+=A.extra}if(A.offset>A.dmax){I.msg="invalid distance too far back",A.mode=30;break}A.mode=25;case 25:if(F===0)break e;if(M=$-F,A.offset>M){if((M=A.offset-M)>A.whave&&A.sane){I.msg="invalid distance too far back",A.mode=30;break}ne=M>A.wnext?(M-=A.wnext,A.wsize-M):A.wnext-M,M>A.length&&(M=A.length),X=A.window}else X=de,ne=q-A.offset,M=A.length;for(F<M&&(M=F),F-=M,A.length-=M;de[q++]=X[ne++],--M;);A.length===0&&(A.mode=21);break;case 26:if(F===0)break e;de[q++]=A.length,F--,A.mode=21;break;case 27:if(A.wrap){for(;P<32;){if(O===0)break e;O--,R|=ee[z++]<<P,P+=8}if($-=F,I.total_out+=$,A.total+=$,$&&(I.adler=A.check=A.flags?o(A.check,de,$,q-$):g(A.check,de,$,q-$)),$=F,(A.flags?R:m(R))!==A.check){I.msg="incorrect data check",A.mode=30;break}P=R=0}A.mode=28;case 28:if(A.wrap&&A.flags){for(;P<32;){if(O===0)break e;O--,R+=ee[z++]<<P,P+=8}if(R!==(4294967295&A.total)){I.msg="incorrect length check",A.mode=30;break}P=R=0}A.mode=29;case 29:H=1;break e;case 30:H=-3;break e;case 31:return-4;case 32:default:return s}return I.next_out=q,I.avail_out=F,I.next_in=z,I.avail_in=O,A.hold=R,A.bits=P,(A.wsize||$!==I.avail_out&&A.mode<30&&(A.mode<27||U!==4))&&W(I,I.output,I.next_out,$-I.avail_out)?(A.mode=31,-4):(G-=I.avail_in,$-=I.avail_out,I.total_in+=G,I.total_out+=$,A.total+=$,A.wrap&&$&&(I.adler=A.check=A.flags?o(A.check,de,$,I.next_out-$):g(A.check,de,$,I.next_out-$)),I.data_type=A.bits+(A.last?64:0)+(A.mode===12?128:0)+(A.mode===20||A.mode===15?256:0),(G==0&&$===0||U===4)&&H===f&&(H=-5),H)},i.inflateEnd=function(I){if(!I||!I.state)return s;var U=I.state;return U.window&&(U.window=null),I.state=null,f},i.inflateGetHeader=function(I,U){var A;return I&&I.state?(2&(A=I.state).wrap)==0?s:((A.head=U).done=!1,f):s},i.inflateSetDictionary=function(I,U){var A,ee=U.length;return I&&I.state?(A=I.state).wrap!==0&&A.mode!==11?s:A.mode===11&&g(1,U,ee,0)!==A.check?-3:W(I,U,ee,ee)?(A.mode=31,-4):(A.havedict=1,f):s},i.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,i){var l=n("../utils/common"),g=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],c=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(p,u,f,s,d,v,h,m){var y,b,_,S,x,T,E,k,D,W=m.bits,I=0,U=0,A=0,ee=0,de=0,z=0,q=0,O=0,F=0,R=0,P=null,G=0,$=new l.Buf16(16),M=new l.Buf16(16),ne=null,X=0;for(I=0;I<=15;I++)$[I]=0;for(U=0;U<s;U++)$[u[f+U]]++;for(de=W,ee=15;1<=ee&&$[ee]===0;ee--);if(ee<de&&(de=ee),ee===0)return d[v++]=20971520,d[v++]=20971520,m.bits=1,0;for(A=1;A<ee&&$[A]===0;A++);for(de<A&&(de=A),I=O=1;I<=15;I++)if(O<<=1,(O-=$[I])<0)return-1;if(0<O&&(p===0||ee!==1))return-1;for(M[1]=0,I=1;I<15;I++)M[I+1]=M[I]+$[I];for(U=0;U<s;U++)u[f+U]!==0&&(h[M[u[f+U]]++]=U);if(T=p===0?(P=ne=h,19):p===1?(P=g,G-=257,ne=o,X-=257,256):(P=a,ne=c,-1),I=A,x=v,q=U=R=0,_=-1,S=(F=1<<(z=de))-1,p===1&&852<F||p===2&&592<F)return 1;for(;;){for(E=I-q,D=h[U]<T?(k=0,h[U]):h[U]>T?(k=ne[X+h[U]],P[G+h[U]]):(k=96,0),y=1<<I-q,A=b=1<<z;d[x+(R>>q)+(b-=y)]=E<<24|k<<16|D|0,b!==0;);for(y=1<<I-1;R&y;)y>>=1;if(y!==0?(R&=y-1,R+=y):R=0,U++,--$[I]==0){if(I===ee)break;I=u[f+h[U]]}if(de<I&&(R&S)!==_){for(q===0&&(q=de),x+=A,O=1<<(z=I-q);z+q<ee&&!((O-=$[z+q])<=0);)z++,O<<=1;if(F+=1<<z,p===1&&852<F||p===2&&592<F)return 1;d[_=R&S]=de<<24|z<<16|x-v|0}}return R!==0&&(d[x+R]=I-q<<24|64<<16|0),m.bits=de,0}},{"../utils/common":41}],51:[function(n,r,i){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,i){var l=n("../utils/common"),g=0,o=1;function a(B){for(var Z=B.length;0<=--Z;)B[Z]=0}var c=0,p=29,u=256,f=u+1+p,s=30,d=19,v=2*f+1,h=15,m=16,y=7,b=256,_=16,S=17,x=18,T=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],k=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],W=new Array(2*(f+2));a(W);var I=new Array(2*s);a(I);var U=new Array(512);a(U);var A=new Array(256);a(A);var ee=new Array(p);a(ee);var de,z,q,O=new Array(s);function F(B,Z,ce,le,Y){this.static_tree=B,this.extra_bits=Z,this.extra_base=ce,this.elems=le,this.max_length=Y,this.has_stree=B&&B.length}function R(B,Z){this.dyn_tree=B,this.max_code=0,this.stat_desc=Z}function P(B){return B<256?U[B]:U[256+(B>>>7)]}function G(B,Z){B.pending_buf[B.pending++]=255&Z,B.pending_buf[B.pending++]=Z>>>8&255}function $(B,Z,ce){B.bi_valid>m-ce?(B.bi_buf|=Z<<B.bi_valid&65535,G(B,B.bi_buf),B.bi_buf=Z>>m-B.bi_valid,B.bi_valid+=ce-m):(B.bi_buf|=Z<<B.bi_valid&65535,B.bi_valid+=ce)}function M(B,Z,ce){$(B,ce[2*Z],ce[2*Z+1])}function ne(B,Z){for(var ce=0;ce|=1&B,B>>>=1,ce<<=1,0<--Z;);return ce>>>1}function X(B,Z,ce){var le,Y,he=new Array(h+1),ve=0;for(le=1;le<=h;le++)he[le]=ve=ve+ce[le-1]<<1;for(Y=0;Y<=Z;Y++){var ge=B[2*Y+1];ge!==0&&(B[2*Y]=ne(he[ge]++,ge))}}function te(B){var Z;for(Z=0;Z<f;Z++)B.dyn_ltree[2*Z]=0;for(Z=0;Z<s;Z++)B.dyn_dtree[2*Z]=0;for(Z=0;Z<d;Z++)B.bl_tree[2*Z]=0;B.dyn_ltree[2*b]=1,B.opt_len=B.static_len=0,B.last_lit=B.matches=0}function Q(B){8<B.bi_valid?G(B,B.bi_buf):0<B.bi_valid&&(B.pending_buf[B.pending++]=B.bi_buf),B.bi_buf=0,B.bi_valid=0}function J(B,Z,ce,le){var Y=2*Z,he=2*ce;return B[Y]<B[he]||B[Y]===B[he]&&le[Z]<=le[ce]}function oe(B,Z,ce){for(var le=B.heap[ce],Y=ce<<1;Y<=B.heap_len&&(Y<B.heap_len&&J(Z,B.heap[Y+1],B.heap[Y],B.depth)&&Y++,!J(Z,le,B.heap[Y],B.depth));)B.heap[ce]=B.heap[Y],ce=Y,Y<<=1;B.heap[ce]=le}function pe(B,Z,ce){var le,Y,he,ve,ge=0;if(B.last_lit!==0)for(;le=B.pending_buf[B.d_buf+2*ge]<<8|B.pending_buf[B.d_buf+2*ge+1],Y=B.pending_buf[B.l_buf+ge],ge++,le===0?M(B,Y,Z):(M(B,(he=A[Y])+u+1,Z),(ve=T[he])!==0&&$(B,Y-=ee[he],ve),M(B,he=P(--le),ce),(ve=E[he])!==0&&$(B,le-=O[he],ve)),ge<B.last_lit;);M(B,b,Z)}function N(B,Z){var ce,le,Y,he=Z.dyn_tree,ve=Z.stat_desc.static_tree,ge=Z.stat_desc.has_stree,Ee=Z.stat_desc.elems,_e=-1;for(B.heap_len=0,B.heap_max=v,ce=0;ce<Ee;ce++)he[2*ce]!==0?(B.heap[++B.heap_len]=_e=ce,B.depth[ce]=0):he[2*ce+1]=0;for(;B.heap_len<2;)he[2*(Y=B.heap[++B.heap_len]=_e<2?++_e:0)]=1,B.depth[Y]=0,B.opt_len--,ge&&(B.static_len-=ve[2*Y+1]);for(Z.max_code=_e,ce=B.heap_len>>1;1<=ce;ce--)oe(B,he,ce);for(Y=Ee;ce=B.heap[1],B.heap[1]=B.heap[B.heap_len--],oe(B,he,1),le=B.heap[1],B.heap[--B.heap_max]=ce,B.heap[--B.heap_max]=le,he[2*Y]=he[2*ce]+he[2*le],B.depth[Y]=(B.depth[ce]>=B.depth[le]?B.depth[ce]:B.depth[le])+1,he[2*ce+1]=he[2*le+1]=Y,B.heap[1]=Y++,oe(B,he,1),2<=B.heap_len;);B.heap[--B.heap_max]=B.heap[1],function(Te,Oe){var tt,Ce,Me,Le,Ge,ct,ze=Oe.dyn_tree,lt=Oe.max_code,Pn=Oe.stat_desc.static_tree,Gt=Oe.stat_desc.has_stree,Cr=Oe.stat_desc.extra_bits,nn=Oe.stat_desc.extra_base,rn=Oe.stat_desc.max_length,Ur=0;for(Le=0;Le<=h;Le++)Te.bl_count[Le]=0;for(ze[2*Te.heap[Te.heap_max]+1]=0,tt=Te.heap_max+1;tt<v;tt++)rn<(Le=ze[2*ze[2*(Ce=Te.heap[tt])+1]+1]+1)&&(Le=rn,Ur++),ze[2*Ce+1]=Le,lt<Ce||(Te.bl_count[Le]++,Ge=0,nn<=Ce&&(Ge=Cr[Ce-nn]),ct=ze[2*Ce],Te.opt_len+=ct*(Le+Ge),Gt&&(Te.static_len+=ct*(Pn[2*Ce+1]+Ge)));if(Ur!==0){do{for(Le=rn-1;Te.bl_count[Le]===0;)Le--;Te.bl_count[Le]--,Te.bl_count[Le+1]+=2,Te.bl_count[rn]--,Ur-=2}while(0<Ur);for(Le=rn;Le!==0;Le--)for(Ce=Te.bl_count[Le];Ce!==0;)lt<(Me=Te.heap[--tt])||(ze[2*Me+1]!==Le&&(Te.opt_len+=(Le-ze[2*Me+1])*ze[2*Me],ze[2*Me+1]=Le),Ce--)}}(B,Z),X(he,_e,B.bl_count)}function C(B,Z,ce){var le,Y,he=-1,ve=Z[1],ge=0,Ee=7,_e=4;for(ve===0&&(Ee=138,_e=3),Z[2*(ce+1)+1]=65535,le=0;le<=ce;le++)Y=ve,ve=Z[2*(le+1)+1],++ge<Ee&&Y===ve||(ge<_e?B.bl_tree[2*Y]+=ge:Y!==0?(Y!==he&&B.bl_tree[2*Y]++,B.bl_tree[2*_]++):ge<=10?B.bl_tree[2*S]++:B.bl_tree[2*x]++,he=Y,_e=(ge=0)===ve?(Ee=138,3):Y===ve?(Ee=6,3):(Ee=7,4))}function H(B,Z,ce){var le,Y,he=-1,ve=Z[1],ge=0,Ee=7,_e=4;for(ve===0&&(Ee=138,_e=3),le=0;le<=ce;le++)if(Y=ve,ve=Z[2*(le+1)+1],!(++ge<Ee&&Y===ve)){if(ge<_e)for(;M(B,Y,B.bl_tree),--ge!=0;);else Y!==0?(Y!==he&&(M(B,Y,B.bl_tree),ge--),M(B,_,B.bl_tree),$(B,ge-3,2)):ge<=10?(M(B,S,B.bl_tree),$(B,ge-3,3)):(M(B,x,B.bl_tree),$(B,ge-11,7));he=Y,_e=(ge=0)===ve?(Ee=138,3):Y===ve?(Ee=6,3):(Ee=7,4)}}a(O);var K=!1;function L(B,Z,ce,le){$(B,(c<<1)+(le?1:0),3),function(Y,he,ve,ge){Q(Y),ge&&(G(Y,ve),G(Y,~ve)),l.arraySet(Y.pending_buf,Y.window,he,ve,Y.pending),Y.pending+=ve}(B,Z,ce,!0)}i._tr_init=function(B){K||(function(){var Z,ce,le,Y,he,ve=new Array(h+1);for(Y=le=0;Y<p-1;Y++)for(ee[Y]=le,Z=0;Z<1<<T[Y];Z++)A[le++]=Y;for(A[le-1]=Y,Y=he=0;Y<16;Y++)for(O[Y]=he,Z=0;Z<1<<E[Y];Z++)U[he++]=Y;for(he>>=7;Y<s;Y++)for(O[Y]=he<<7,Z=0;Z<1<<E[Y]-7;Z++)U[256+he++]=Y;for(ce=0;ce<=h;ce++)ve[ce]=0;for(Z=0;Z<=143;)W[2*Z+1]=8,Z++,ve[8]++;for(;Z<=255;)W[2*Z+1]=9,Z++,ve[9]++;for(;Z<=279;)W[2*Z+1]=7,Z++,ve[7]++;for(;Z<=287;)W[2*Z+1]=8,Z++,ve[8]++;for(X(W,f+1,ve),Z=0;Z<s;Z++)I[2*Z+1]=5,I[2*Z]=ne(Z,5);de=new F(W,T,u+1,f,h),z=new F(I,E,0,s,h),q=new F(new Array(0),k,0,d,y)}(),K=!0),B.l_desc=new R(B.dyn_ltree,de),B.d_desc=new R(B.dyn_dtree,z),B.bl_desc=new R(B.bl_tree,q),B.bi_buf=0,B.bi_valid=0,te(B)},i._tr_stored_block=L,i._tr_flush_block=function(B,Z,ce,le){var Y,he,ve=0;0<B.level?(B.strm.data_type===2&&(B.strm.data_type=function(ge){var Ee,_e=4093624447;for(Ee=0;Ee<=31;Ee++,_e>>>=1)if(1&_e&&ge.dyn_ltree[2*Ee]!==0)return g;if(ge.dyn_ltree[18]!==0||ge.dyn_ltree[20]!==0||ge.dyn_ltree[26]!==0)return o;for(Ee=32;Ee<u;Ee++)if(ge.dyn_ltree[2*Ee]!==0)return o;return g}(B)),N(B,B.l_desc),N(B,B.d_desc),ve=function(ge){var Ee;for(C(ge,ge.dyn_ltree,ge.l_desc.max_code),C(ge,ge.dyn_dtree,ge.d_desc.max_code),N(ge,ge.bl_desc),Ee=d-1;3<=Ee&&ge.bl_tree[2*D[Ee]+1]===0;Ee--);return ge.opt_len+=3*(Ee+1)+5+5+4,Ee}(B),Y=B.opt_len+3+7>>>3,(he=B.static_len+3+7>>>3)<=Y&&(Y=he)):Y=he=ce+5,ce+4<=Y&&Z!==-1?L(B,Z,ce,le):B.strategy===4||he===Y?($(B,2+(le?1:0),3),pe(B,W,I)):($(B,4+(le?1:0),3),function(ge,Ee,_e,Te){var Oe;for($(ge,Ee-257,5),$(ge,_e-1,5),$(ge,Te-4,4),Oe=0;Oe<Te;Oe++)$(ge,ge.bl_tree[2*D[Oe]+1],3);H(ge,ge.dyn_ltree,Ee-1),H(ge,ge.dyn_dtree,_e-1)}(B,B.l_desc.max_code+1,B.d_desc.max_code+1,ve+1),pe(B,B.dyn_ltree,B.dyn_dtree)),te(B),le&&Q(B)},i._tr_tally=function(B,Z,ce){return B.pending_buf[B.d_buf+2*B.last_lit]=Z>>>8&255,B.pending_buf[B.d_buf+2*B.last_lit+1]=255&Z,B.pending_buf[B.l_buf+B.last_lit]=255&ce,B.last_lit++,Z===0?B.dyn_ltree[2*ce]++:(B.matches++,Z--,B.dyn_ltree[2*(A[ce]+u+1)]++,B.dyn_dtree[2*P(Z)]++),B.last_lit===B.lit_bufsize-1},i._tr_align=function(B){$(B,2,3),M(B,b,W),function(Z){Z.bi_valid===16?(G(Z,Z.bi_buf),Z.bi_buf=0,Z.bi_valid=0):8<=Z.bi_valid&&(Z.pending_buf[Z.pending++]=255&Z.bi_buf,Z.bi_buf>>=8,Z.bi_valid-=8)}(B)}},{"../utils/common":41}],53:[function(n,r,i){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,i){(function(l){(function(g,o){if(!g.setImmediate){var a,c,p,u,f=1,s={},d=!1,v=g.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(g);h=h&&h.setTimeout?h:g,a={}.toString.call(g.process)==="[object process]"?function(_){process.nextTick(function(){y(_)})}:function(){if(g.postMessage&&!g.importScripts){var _=!0,S=g.onmessage;return g.onmessage=function(){_=!1},g.postMessage("","*"),g.onmessage=S,_}}()?(u="setImmediate$"+Math.random()+"$",g.addEventListener?g.addEventListener("message",b,!1):g.attachEvent("onmessage",b),function(_){g.postMessage(u+_,"*")}):g.MessageChannel?((p=new MessageChannel).port1.onmessage=function(_){y(_.data)},function(_){p.port2.postMessage(_)}):v&&"onreadystatechange"in v.createElement("script")?(c=v.documentElement,function(_){var S=v.createElement("script");S.onreadystatechange=function(){y(_),S.onreadystatechange=null,c.removeChild(S),S=null},c.appendChild(S)}):function(_){setTimeout(y,0,_)},h.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var S=new Array(arguments.length-1),x=0;x<S.length;x++)S[x]=arguments[x+1];var T={callback:_,args:S};return s[f]=T,a(f),f++},h.clearImmediate=m}function m(_){delete s[_]}function y(_){if(d)setTimeout(y,0,_);else{var S=s[_];if(S){d=!0;try{(function(x){var T=x.callback,E=x.args;switch(E.length){case 0:T();break;case 1:T(E[0]);break;case 2:T(E[0],E[1]);break;case 3:T(E[0],E[1],E[2]);break;default:T.apply(o,E)}})(S)}finally{m(_),d=!1}}}}function b(_){_.source===g&&typeof _.data=="string"&&_.data.indexOf(u)===0&&y(+_.data.slice(u.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof Bu<"u"?Bu:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(RC);var Rp=function(e,t){return Rp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Rp(e,t)};function Fg(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Rp(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function Z9(e,t,n,r){function i(l){return l instanceof n?l:new n(function(g){g(l)})}return new(n||(n=Promise))(function(l,g){function o(p){try{c(r.next(p))}catch(u){g(u)}}function a(p){try{c(r.throw(p))}catch(u){g(u)}}function c(p){p.done?l(p.value):i(p.value).then(o,a)}c((r=r.apply(e,t||[])).next())})}function DC(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,i,l,g=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return g.next=o(0),g.throw=o(1),g.return=o(2),typeof Symbol=="function"&&(g[Symbol.iterator]=function(){return this}),g;function o(c){return function(p){return a([c,p])}}function a(c){if(r)throw new TypeError("Generator is already executing.");for(;g&&(g=0,c[0]&&(n=0)),n;)try{if(r=1,i&&(l=c[0]&2?i.return:c[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,c[1])).done)return l;switch(i=0,l&&(c=[c[0]&2,l.value]),c[0]){case 0:case 1:l=c;break;case 4:return n.label++,{value:c[1],done:!1};case 5:n.label++,i=c[1],c=[0];continue;case 7:c=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!l||c[1]>l[0]&&c[1]<l[3])){n.label=c[1];break}if(c[0]===6&&n.label<l[1]){n.label=l[1],l=c;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(c);break}l[2]&&n.ops.pop(),n.trys.pop();continue}c=t.call(e,n)}catch(p){c=[6,p],i=0}finally{r=l=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Vl(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function af(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,l=[],g;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(o){g={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(g)throw g.error}}return l}function of(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}function Uo(e){return this instanceof Uo?(this.v=e,this):new Uo(e)}function J9(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,l=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),o("next"),o("throw"),o("return",g),i[Symbol.asyncIterator]=function(){return this},i;function g(s){return function(d){return Promise.resolve(d).then(s,u)}}function o(s,d){r[s]&&(i[s]=function(v){return new Promise(function(h,m){l.push([s,v,h,m])>1||a(s,v)})},d&&(i[s]=d(i[s])))}function a(s,d){try{c(r[s](d))}catch(v){f(l[0][3],v)}}function c(s){s.value instanceof Uo?Promise.resolve(s.value.v).then(p,u):f(l[0][2],s)}function p(s){a("next",s)}function u(s){a("throw",s)}function f(s,d){s(d),l.shift(),l.length&&a(l[0][0],l[0][1])}}function Q9(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Vl=="function"?Vl(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(l){n[l]=e[l]&&function(g){return new Promise(function(o,a){g=e[l](g),i(o,a,g.done,g.value)})}}function i(l,g,o,a){Promise.resolve(a).then(function(c){l({value:c,done:o})},g)}}function yn(e){return typeof e=="function"}function eU(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Xd=eU(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription:
`+n.map(function(r,i){return i+1+") "+r.toString()}).join(`
`):"",this.name="UnsubscriptionError",this.errors=n}});function wb(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Bg=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,l;if(!this.closed){this.closed=!0;var g=this._parentage;if(g)if(this._parentage=null,Array.isArray(g))try{for(var o=Vl(g),a=o.next();!a.done;a=o.next()){var c=a.value;c.remove(this)}}catch(v){t={error:v}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}else g.remove(this);var p=this.initialTeardown;if(yn(p))try{p()}catch(v){l=v instanceof Xd?v.errors:[v]}var u=this._finalizers;if(u){this._finalizers=null;try{for(var f=Vl(u),s=f.next();!s.done;s=f.next()){var d=s.value;try{Sb(d)}catch(v){l=l!=null?l:[],v instanceof Xd?l=of(of([],af(l)),af(v.errors)):l.push(v)}}}catch(v){r={error:v}}finally{try{s&&!s.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(l)throw new Xd(l)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Sb(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&wb(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&wb(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();Bg.EMPTY;function LC(e){return e instanceof Bg||e&&"closed"in e&&yn(e.remove)&&yn(e.add)&&yn(e.unsubscribe)}function Sb(e){yn(e)?e():e.unsubscribe()}var Xf={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Dp={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Dp.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,of([e,t],af(n))):setTimeout.apply(void 0,of([e,t],af(n)))},clearTimeout:function(e){var t=Dp.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function FC(e){Dp.setTimeout(function(){var t=Xf.onUnhandledError;if(t)t(e);else throw e})}function Cb(){}var qu=null;function tU(e){if(Xf.useDeprecatedSynchronousErrorHandling){var t=!qu;if(t&&(qu={errorThrown:!1,error:null}),e(),t){var n=qu,r=n.errorThrown,i=n.error;if(qu=null,r)throw i}}else e()}var Ng=function(e){Fg(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,LC(n)&&n.add(r)):r.destination=aU,r}return t.create=function(n,r,i){return new Lp(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Bg),nU=Function.prototype.bind;function qd(e,t){return nU.call(e,t)}var rU=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Zu(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Zu(r)}else Zu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Zu(n)}},e}(),Lp=function(e){Fg(t,e);function t(n,r,i){var l=e.call(this)||this,g;if(yn(n)||!n)g={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var o;l&&Xf.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=function(){return l.unsubscribe()},g={next:n.next&&qd(n.next,o),error:n.error&&qd(n.error,o),complete:n.complete&&qd(n.complete,o)}):g=n}return l.destination=new rU(g),l}return t}(Ng);function Zu(e){FC(e)}function iU(e){throw e}var aU={closed:!0,next:Cb,error:iU,complete:Cb},zg=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function oU(e){return e}function sU(e){return e.length===0?oU:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var zi=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,l=uU(t)?t:new Lp(t,n,r);return tU(function(){var g=i,o=g.operator,a=g.source;l.add(o?o.call(l,a):a?i._subscribe(l):i._trySubscribe(l))}),l},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=xb(n),new n(function(i,l){var g=new Lp({next:function(o){try{t(o)}catch(a){l(a),g.unsubscribe()}},error:l,complete:i});r.subscribe(g)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[zg]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return sU(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=xb(t),new t(function(r,i){var l;n.subscribe(function(g){return l=g},function(g){return i(g)},function(){return r(l)})})},e.create=function(t){return new e(t)},e}();function xb(e){var t;return(t=e!=null?e:Xf.Promise)!==null&&t!==void 0?t:Promise}function lU(e){return e&&yn(e.next)&&yn(e.error)&&yn(e.complete)}function uU(e){return e&&e instanceof Ng||lU(e)&&LC(e)}function cU(e){return yn(e==null?void 0:e.lift)}function BC(e){return function(t){if(cU(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function fU(e,t,n,r,i){return new dU(e,t,n,r,i)}var dU=function(e){Fg(t,e);function t(n,r,i,l,g,o){var a=e.call(this,n)||this;return a.onFinalize=g,a.shouldUnsubscribe=o,a._next=r?function(c){try{r(c)}catch(p){n.error(p)}}:e.prototype._next,a._error=l?function(c){try{l(c)}catch(p){n.error(p)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,a}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(Ng),NC=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function zC(e){return yn(e==null?void 0:e.then)}function $C(e){return yn(e[zg])}function jC(e){return Symbol.asyncIterator&&yn(e==null?void 0:e[Symbol.asyncIterator])}function VC(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function hU(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var UC=hU();function HC(e){return yn(e==null?void 0:e[UC])}function WC(e){return J9(this,arguments,function(){var n,r,i,l;return DC(this,function(g){switch(g.label){case 0:n=e.getReader(),g.label=1;case 1:g.trys.push([1,,9,10]),g.label=2;case 2:return[4,Uo(n.read())];case 3:return r=g.sent(),i=r.value,l=r.done,l?[4,Uo(void 0)]:[3,5];case 4:return[2,g.sent()];case 5:return[4,Uo(i)];case 6:return[4,g.sent()];case 7:return g.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function GC(e){return yn(e==null?void 0:e.getReader)}function $g(e){if(e instanceof zi)return e;if(e!=null){if($C(e))return pU(e);if(NC(e))return vU(e);if(zC(e))return gU(e);if(jC(e))return KC(e);if(HC(e))return mU(e);if(GC(e))return yU(e)}throw VC(e)}function pU(e){return new zi(function(t){var n=e[zg]();if(yn(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function vU(e){return new zi(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function gU(e){return new zi(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,FC)})}function mU(e){return new zi(function(t){var n,r;try{for(var i=Vl(e),l=i.next();!l.done;l=i.next()){var g=l.value;if(t.next(g),t.closed)return}}catch(o){n={error:o}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function KC(e){return new zi(function(t){bU(e,t).catch(function(n){return t.error(n)})})}function yU(e){return KC(WC(e))}function bU(e,t){var n,r,i,l;return Z9(this,void 0,void 0,function(){var g,o;return DC(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=Q9(e),a.label=1;case 1:return[4,n.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(g=r.value,t.next(g),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=a.sent(),i={error:o},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(l=n.return)?[4,l.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function Wa(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var l=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(l),!i)return l}function YC(e,t){return t===void 0&&(t=0),BC(function(n,r){n.subscribe(fU(r,function(i){return Wa(r,e,function(){return r.next(i)},t)},function(){return Wa(r,e,function(){return r.complete()},t)},function(i){return Wa(r,e,function(){return r.error(i)},t)}))})}function XC(e,t){return t===void 0&&(t=0),BC(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function _U(e,t){return $g(e).pipe(XC(t),YC(t))}function wU(e,t){return $g(e).pipe(XC(t),YC(t))}function SU(e,t){return new zi(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function CU(e,t){return new zi(function(n){var r;return Wa(n,t,function(){r=e[UC](),Wa(n,t,function(){var i,l,g;try{i=r.next(),l=i.value,g=i.done}catch(o){n.error(o);return}g?n.complete():n.next(l)},0,!0)}),function(){return yn(r==null?void 0:r.return)&&r.return()}})}function qC(e,t){if(!e)throw new Error("Iterable cannot be null");return new zi(function(n){Wa(n,t,function(){var r=e[Symbol.asyncIterator]();Wa(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function xU(e,t){return qC(WC(e),t)}function TU(e,t){if(e!=null){if($C(e))return _U(e,t);if(NC(e))return SU(e,t);if(zC(e))return wU(e,t);if(jC(e))return qC(e,t);if(HC(e))return CU(e,t);if(GC(e))return xU(e,t)}throw VC(e)}function EU(e,t){return t?TU(e,t):$g(e)}function kU(e,t){const n=re(t==null?void 0:t.initialValue),r=e.subscribe({next:i=>n.value=i,error:t==null?void 0:t.onError});return Hf(()=>{r.unsubscribe()}),n}function OU(e,t,n){const r=re(n==null?void 0:n.initialValue),i=Lg(e);let l=i.subscribe({next:g=>r.value=g,error:n==null?void 0:n.onError});return ke(t,()=>{l.unsubscribe(),l=i.subscribe({next:g=>r.value=g,error:n==null?void 0:n.onError})}),os(()=>{l.unsubscribe()}),r}const eo=ls("outputs",()=>{const e=kU(EU(Lg(()=>Vt.outputs.count())),{initialValue:0}),t=re(1),n=Qn("sortOutputsBy","Oldest"),r=Qn("currentImagesLayout","dynamic"),i=re("all"),l=OU(()=>{const s=Zt();let d;return i.value==="all"?d=Vt.outputs:i.value==="favourited"?d=Vt.outputs.where("starred").equals(1):i.value==="unfavourited"?d=Vt.outputs.where("starred").equals(0):d=Vt.outputs.where("rated").equals(0),n.value==="Newest"&&(d=d.reverse()),s.pageless==="Enabled"?d.toArray():d.offset((t.value-1)*s.pageSize).limit(s.pageSize).toArray()},[Fn(Zt(),"pageless"),Fn(Zt(),"pageSize"),t,n,i],{initialValue:[]});async function g(){if(navigator.storage&&navigator.storage.persist){const s=await navigator.storage.persist();console.log(`Persisted storage granted: ${s}`)}}async function o(){const s=localStorage.getItem("outputs");!s||(a(JSON.parse(s)),localStorage.removeItem("outputs"))}g(),o();async function a(s){const d=s.map(m=>{const{id:y,...b}=m;return b}),v=50,h=[];for(let m=0;m<d.length;m+=v){const y=d.slice(m,m+v),b=JSON.parse(JSON.stringify(y));console.log(`Inserting outputs into database. Chunk ${m} - ${m+v}:`,b);const _=await Vt.outputs.bulkAdd(b,void 0,{allKeys:!0});h.push(..._)}return Vt.outputs.bulkGet(h)}async function c(s){const d=Kt();if(!s.raw)return;if(!s.raw.type.includes("zip")){d.raiseError("Uploaded file needs to be a ZIP!",!1);return}const{files:v}=await RC.exports.loadAsync(s.raw);let h=0,m=0;da({message:"Loading images...",type:"info"});const y=[];for(const[_,S]of Object.entries(v)){const x=_.split("."),T=x.slice(-1).join("."),E=x.slice(0,-1).join(".");(T==="webp"||T==="png"||T==="gif"||T==="jpg"||T==="jpeg")&&y.push(new Promise(k=>{S.async("base64").then(async D=>{if(!v[E+".json"])return m++,k(null);const W=JSON.parse(await v[E+".json"].async("text"));h++,k({id:-1,image:`data:image/webp;base64,${D}`,...W,rated:W.rated?1:0,starred:W.starred?1:0})}).catch(D=>(d.raiseError(`Error while importing image: ${D}`,!1),m++,k(null)))}))}const b=await Promise.all(y);a(b.filter(_=>_!==null)),da({message:`Successfully imported ${h}/${h+m} images!`,type:"success"})}async function p(s){const d=await Vt.outputs.get(s);return Vt.outputs.update(s,{starred:d!=null&&d.starred?0:1})}function u(s){return Vt.outputs.delete(s)}async function f(s){const d=Kt();return d.selected=[],d.multiSelect=!1,s===await Vt.outputs.toCollection().primaryKeys()?Vt.outputs.clear():Vt.outputs.bulkDelete(s)}return{outputsLength:e,sortBy:n,filterBy:i,currentPage:t,currentOutputs:l,currentLayout:r,deleteOutput:u,deleteMultipleOutputs:f,toggleStarred:p,pushOutputs:a,importFromZip:c}}),Kt=ls("ui",()=>{const e=re(!1),t=re([]),n=re(["1"]),r=re(-1),i=re(!1),l=re(!1);function g(f,s){console.error(f),da({type:"error",message:f,duration:s?0:void 0,showClose:s})}function o(f,s){console.warn(f),da({type:"warning",message:f,duration:s?0:void 0,showClose:s})}function a(){e.value=!e.value,!e.value&&(t.value=[])}function c(f){if(t.value.includes(f)){const s=t.value.indexOf(f);t.value.splice(s,1),t.value.length===0&&(e.value=!1);return}t.value.push(f)}async function p(){const f=eo(),s=Zt(),d=f.currentOutputs.findIndex(h=>h.id===r.value),v=f.currentOutputs[d+1];if(v){r.value=v.id;return}if(f.currentPage<=Math.floor(f.outputsLength/s.pageSize)){const h=f.sortBy==="Newest"?await Vt.outputs.where(":id").below(r.value).last():await Vt.outputs.where(":id").above(r.value).first();f.currentPage++,r.value=(h==null?void 0:h.id)||r.value;return}}async function u(){const f=eo(),s=f.currentOutputs.findIndex(v=>v.id===r.value),d=f.currentOutputs[s-1];if(f.currentPage>1&&!d){const v=f.sortBy==="Oldest"?await Vt.outputs.where(":id").below(r.value).last():await Vt.outputs.where(":id").above(r.value).first();f.currentPage--,r.value=(v==null?void 0:v.id)||r.value;return}if(d){r.value=d.id;return}}return{multiSelect:e,selected:t,activeCollapse:n,activeModal:r,showGeneratorBadge:i,showGeneratedImages:l,raiseError:g,raiseWarning:o,toggleMultiSelect:a,toggleSelection:c,openModalToRight:p,openModalToLeft:u}}),_n=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},AU={},PU={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"};function IU(e,t){return j(),ae("svg",PU,[...t[0]||(t[0]=[ie("circle",{cy:"12",cx:"12",r:"12",stroke:"currentColor"},null,-1)])])}const MU=_n(AU,[["render",IU]]),Zd=we({__name:"MainMenuItem",props:{index:{},isMobile:{type:Boolean}},setup(e){return(t,n)=>(j(),me(w(fg),{index:e.index},{default:fe(()=>[xe(t.$slots,"icon"),e.isMobile?ye("",!0):xe(t.$slots,"title",{key:0})]),_:3},8,["index"]))}});const RU="modulepreload",DU=function(e,t){return new URL(e,t).href},Tb={},Eb=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=DU(l,r),l in Tb)return;Tb[l]=!0;const g=l.endsWith(".css"),o=g?'[rel="stylesheet"]':"";if(!!r)for(let p=i.length-1;p>=0;p--){const u=i[p];if(u.href===l&&(!g||u.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${o}`))return;const c=document.createElement("link");if(c.rel=g?"stylesheet":RU,g||(c.as="script",c.crossOrigin=""),c.href=l,document.head.appendChild(c),g)return new Promise((p,u)=>{c.addEventListener("load",p),c.addEventListener("error",()=>u(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t())};const LU={},FU={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"};function BU(e,t){return j(),ae("svg",FU,[...t[0]||(t[0]=[ie("path",{d:"M7 14c-1.66 0-3 1.34-3 3c0 1.31-1.16 2-2 2c.92 1.22 2.49 2 4 2c2.21 0 4-1.79 4-4c0-1.66-1.34-3-3-3zm13.71-9.37l-1.34-1.34a.996.996 0 0 0-1.41 0L9 12.25L11.75 15l8.96-8.96a.996.996 0 0 0 0-1.41z",fill:"currentColor"},null,-1)])])}const ZC=_n(LU,[["render",BU]]),NU={},zU={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"};function $U(e,t){return j(),ae("svg",zU,[...t[0]||(t[0]=[ie("path",{d:"M24 14a5.99 5.99 0 0 0-4.885 9.471L14 28.586L15.414 30l5.115-5.115A5.997 5.997 0 1 0 24 14zm0 10a4 4 0 1 1 4-4a4.005 4.005 0 0 1-4 4z",fill:"currentColor"},null,-1),ie("path",{d:"M17 12a3 3 0 1 0-3-3a3.003 3.003 0 0 0 3 3zm0-4a1 1 0 1 1-1 1a1 1 0 0 1 1-1z",fill:"currentColor"},null,-1),ie("path",{d:"M12 24H4v-6.003L9 13l5.586 5.586L16 17.168l-5.586-5.585a2 2 0 0 0-2.828 0L4 15.168V4h20v6h2V4a2.002 2.002 0 0 0-2-2H4a2.002 2.002 0 0 0-2 2v20a2.002 2.002 0 0 0 2 2h8z",fill:"currentColor"},null,-1)])])}const jU=_n(NU,[["render",$U]]);function JC(){const e=re("..."),t=setInterval(()=>{e.value=e.value.length>=3?"":".".repeat(e.value.length+1)},1e3);return os(()=>{clearInterval(t)}),{ellipsis:e}}const VU={style:{"text-align":"center"}},UU={class:"gen-text"},HU={key:0},WU={key:1},GU=we({__name:"ImageProgress",props:{generated:{},total:{},elapsed:{}},emits:["showGenerated"],setup(e){const{ellipsis:t}=JC();return(n,r)=>{var i,l;return j(),ae("div",VU,[ue(w(NS),{type:"circle",percentage:100*((i=e.generated)!=null?i:0)/((l=e.total)!=null?l:1),width:200},{default:fe(()=>[ie("span",null,Ae(e.generated)+" / "+Ae(e.total),1),r[1]||(r[1]=ie("br",null,null,-1))]),_:1},8,["percentage"]),ie("div",UU,[e.generated===e.total?(j(),ae("span",HU,"All done!")):(j(),ae("span",WU,[qe("Generating"+Ae(w(t))+Ae("\xA0".repeat(3-w(t).length)),1),r[2]||(r[2]=ie("br",null,null,-1)),ie("sup",null,Ae(e.elapsed),1)]))]),e.generated?(j(),ae("div",{key:0,onClick:r[0]||(r[0]=g=>n.$emit("showGenerated")),class:"view-images"},[ie("span",null,"View image"+Ae(e.total===1?"":"s"),1),ue(w(Ne),null,{default:fe(()=>[ue(w(DA))]),_:1})])):ye("",!0)])}}});const KU=_n(GU,[["__scopeId","data-v-02b183d9"]]);const YU={style:{width:"200px"}},XU=we({__name:"InfoTooltip",props:{info:{},size:{},trigger:{}},setup(e){return(t,n)=>(j(),me(w(si),{trigger:e.trigger},{content:fe(()=>[ie("div",YU,[xe(t.$slots,"default",{},()=>[qe(Ae(e.info),1)])])]),default:fe(()=>[ue(w(Ne),{size:e.size},{default:fe(()=>[ue(w(Fc))]),_:1},8,["size"])]),_:3},8,["trigger"]))}}),qU={key:0,class:"align-vertical",style:{"margin-left":"5px"}},ZU=we({__name:"FormLabel",props:{label:{},info:{},labelStyle:{}},setup(e){return(t,n)=>(j(),ae("span",{class:"align-vertical",style:He(e.labelStyle||"height: 100%;")},[xe(t.$slots,"default",{},()=>[qe(Ae(e.label),1)],!0),e.info?(j(),ae("div",qU,[ue(XU,{info:e.info,size:15},null,8,["info"])])):ye("",!0)],4))}});const gu=_n(ZU,[["__scopeId","data-v-f636a774"]]),JU={key:0,style:{width:"100%"}},QU={key:1,style:{display:"flex","flex-direction":"column",gap:"8px",width:"100%"}},Zn=we({__name:"FormSlider",props:{label:{},modelValue:{},prop:{},min:{},max:{},step:{},info:{},disabled:{type:Boolean},labelStyle:{},multiple:{type:Boolean}},emits:["update:modelValue","change","onAdd","onRemove"],setup(e,{emit:t}){const r=mg(gg).smallerOrEqual("md"),i=e,l=t;function g(u,f){var d;if(i.multiple&&Array.isArray(i.modelValue)){f=f||0;const v=(d=Array.isArray(u)?u[0]:u)!=null?d:i.min;let h=i.modelValue;h[f]=v,l("update:modelValue",h),l("change",h);return}const s=u!=null?u:i.min;l("update:modelValue",s),l("change",s)}function o(){if(!i.multiple||!Array.isArray(i.modelValue))return;const u=i.min;l("update:modelValue",[...i.modelValue,u]),l("onAdd",u)}function a(){if(!i.multiple||!Array.isArray(i.modelValue))return;const u=i.modelValue,f=u.pop();l("update:modelValue",u),l("onRemove",f)}const c=V(()=>i.multiple&&Array.isArray(i.modelValue)?Array.from(Array(i.modelValue.length).keys()):[]),p=V(()=>Array.isArray(i.modelValue)?i.modelValue[0]:i.modelValue);return(u,f)=>(j(),me(w(sa),{prop:e.prop},{label:fe(()=>[ue(gu,{info:e.info,"label-style":e.labelStyle},{default:fe(()=>[xe(u.$slots,"label",{},()=>[qe(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:fe(()=>[!e.multiple||!Array.isArray(e.modelValue)?(j(),ae("div",JU,[w(r)?ye("",!0):(j(),me(w(My),{key:0,"model-value":p.value,min:e.min,max:e.max,step:e.step,onInput:g,disabled:e.disabled,"show-input":""},null,8,["model-value","min","max","step","disabled"])),w(r)?(j(),me(w(ip),{key:1,"model-value":p.value,min:e.min,max:e.max,step:e.step,onChange:g,disabled:e.disabled},null,8,["model-value","min","max","step","disabled"])):ye("",!0)])):(j(),ae("div",QU,[(j(!0),ae(Ve,null,Bt(c.value,s=>(j(),ae("div",{key:s},[w(r)?ye("",!0):(j(),me(w(My),{key:0,"model-value":e.modelValue[s],min:e.min,max:e.max,step:e.step,onInput:d=>g(d,s),disabled:e.disabled,"show-input":""},null,8,["model-value","min","max","step","onInput","disabled"])),w(r)?(j(),me(w(ip),{key:1,"model-value":e.modelValue[s],min:e.min,max:e.max,step:e.step,onChange:d=>g(d,s),disabled:e.disabled},null,8,["model-value","min","max","step","onChange","disabled"])):ye("",!0)]))),128)),ie("div",null,[ue(w(vt),{icon:w(gv),onClick:f[0]||(f[0]=()=>o())},null,8,["icon"]),ue(w(vt),{icon:w(hw),onClick:f[1]||(f[1]=()=>a()),disabled:c.value.length<=1},null,8,["icon","disabled"])])])),xe(u.$slots,"inline")]),_:3},8,["prop"]))}});const Sc=we({__name:"FormSelect",props:{label:{},modelValue:{},prop:{},options:{},multiple:{type:Boolean},info:{},filterable:{type:Boolean},labelStyle:{},placement:{}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=t;function r(i){n("update:modelValue",i),n("change",i)}return(i,l)=>(j(),me(w(sa),{prop:e.prop},{label:fe(()=>[ue(gu,{info:e.info,"label-style":e.labelStyle},{default:fe(()=>[xe(i.$slots,"label",{},()=>[qe(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:fe(()=>[ue(w(nS),{"model-value":e.modelValue,filterable:e.filterable,multiple:e.multiple,placement:e.placement,onChange:r,placeholder:"Select"},{default:fe(()=>[(j(!0),ae(Ve,null,Bt(e.options,g=>(j(),me(w(rS),{key:g,label:g.label!==void 0?g.label:g,value:g.value!==void 0?g.value:g,disabled:g.disabled!==void 0?g.disabled:!1},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","filterable","multiple","placement"]),xe(i.$slots,"inline")]),_:3},8,["prop"]))}}),Fp=we({__name:"FormInput",props:{label:{},modelValue:{},prop:{},type:{},resize:{},placeholder:{},autosize:{type:[Boolean,Object]},info:{},labelStyle:{},change:{type:Function},clearable:{type:Boolean},clearIcon:{}},emits:["update:modelValue","focus","blur"],setup(e,{emit:t}){const n=e,r=t;function i(l){r("update:modelValue",l),n.change&&n.change(l)}return(l,g)=>(j(),me(w(sa),{prop:e.prop},{label:fe(()=>[ue(gu,{info:e.info,"label-style":e.labelStyle},{default:fe(()=>[xe(l.$slots,"label",{},()=>[qe(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:fe(()=>[ue(w(gs),{"model-value":e.modelValue,autosize:e.autosize,resize:e.resize,onInput:i,type:e.type,placeholder:e.placeholder,clearable:e.clearable,"clear-icon":e.clearIcon,onFocus:g[0]||(g[0]=o=>l.$emit("focus")),onBlur:g[1]||(g[1]=o=>l.$emit("blur"))},{append:fe(()=>[xe(l.$slots,"append")]),_:3},8,["model-value","autosize","resize","type","placeholder","clearable","clear-icon"]),xe(l.$slots,"inline")]),_:3},8,["prop"]))}});const kb=we({__name:"FormSwitch",props:{label:{},modelValue:{type:Boolean},prop:{},disabled:{type:Boolean},disabledText:{},defaultValue:{type:Boolean},info:{},labelStyle:{},change:{type:Function}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function i(l){const g=!!l;r("update:modelValue",g),n.change&&n.change(g)}return UT(()=>{n.disabled&&n.defaultValue!==void 0&&r("update:modelValue",n.defaultValue)}),(l,g)=>(j(),me(w(sa),{prop:e.prop},{label:fe(()=>[ue(gu,{info:e.info,"label-style":e.labelStyle},{default:fe(()=>[xe(l.$slots,"label",{},()=>[qe(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:fe(()=>[e.disabledText&&e.disabled?(j(),me(w(si),{key:0,content:e.disabledText,placement:"top",enterable:!1,"hide-after":100},{default:fe(()=>[ue(w(Dy),{disabled:e.disabled,"model-value":e.modelValue,onChange:i},null,8,["disabled","model-value"])]),_:1},8,["content"])):(j(),me(w(Dy),{key:1,disabled:e.disabled,"model-value":e.modelValue,onChange:i},null,8,["disabled","model-value"])),xe(l.$slots,"inline")]),_:3},8,["prop"]))}}),eH=we({__name:"FormPromptInput",setup(e){const t=pn();return(n,r)=>(j(),me(Fp,{prop:"prompt",modelValue:w(t).prompt,"onUpdate:modelValue":r[0]||(r[0]=i=>w(t).prompt=i),autosize:{minRows:2,maxRows:15},resize:"vertical",type:"textarea",placeholder:"Enter prompt here","label-position":"top","label-style":"justify-content: space-between; width: 100%;"},{label:fe(()=>[...r[1]||(r[1]=[ie("div",null,"Prompt",-1)])]),_:1},8,["modelValue"]))}});const tH=_n(eH,[["__scopeId","data-v-d8908195"]]);const nH={style:{position:"relative",height:"100%",width:"100%"}},rH={class:"carousel-container"},iH=["src"],aH={class:"carousel-footer"},oH={style:{display:"flex","justify-content":"center"}},sH={style:{"white-space":"nowrap"}},lH=we({__name:"GeneratedCarousel",setup(e){const t=pn(),n=Kt(),r=Zt(),i=re(0);function l(o){i.value=o,console.log(t.outputs[i.value])}function g(o){t.outputs.splice(t.outputs.findIndex(a=>a.output.id===o),1)}return(o,a)=>(j(),ae("div",nH,[w(t).generating?(j(),ae("div",{key:0,class:"back-to-generation",onClick:a[0]||(a[0]=c=>w(n).showGeneratedImages=!1)},[ue(w(Ne),null,{default:fe(()=>[ue(w(jO))]),_:1}),a[1]||(a[1]=ie("span",null,"Back to generation status",-1))])):ye("",!0),ie("div",rH,[ue(w(FL),{class:"carousel",autoplay:w(r).autoCarousel==="Enabled",trigger:"click","indicator-position":"outside",onChange:l},{default:fe(()=>[(j(!0),ae(Ve,null,Bt(w(t).outputs,(c,p)=>(j(),me(w(BL),{key:p,style:{display:"flex","justify-content":"center"}},{default:fe(()=>[c.type==="video"?(j(),ae("video",{key:0,src:c.output.image,controls:"",style:{"max-width":"100%",height:"100%"}},null,8,iH)):ye("",!0),c.type==="image"?(j(),me(w(lg),{key:1,src:c.output.image,style:{width:"100%",height:"100%"},fit:"scale-down",onClick:()=>w(n).activeModal=c.output.id},null,8,["src","onClick"])):ye("",!0)]),_:2},1024))),128))]),_:1},8,["autoplay"])]),ie("div",aH,[ue(w(nB)),ie("div",oH,[ue(w($2),null,{default:fe(()=>[ie("div",sH,[ue(Vx,{imageData:w(t).outputs[i.value].output,"on-delete":g,"show-dismiss":!0},null,8,["imageData"])])]),_:1})])])]))}});const uH=_n(lH,[["__scopeId","data-v-2f8c767c"]]);var Er={};const cH={},fH=Object.freeze(Object.defineProperty({__proto__:null,default:cH},Symbol.toStringTag,{value:"Module"})),Jd=VD(fH);(function(e){/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */var t=t||{version:"5.5.2"};if(e.fabric=t,typeof document<"u"&&typeof window<"u")document instanceof(typeof HTMLDocument<"u"?HTMLDocument:Document)?t.document=document:t.document=document.implementation.createHTMLDocument(""),t.window=window;else{var n=Jd,r=new n.JSDOM(decodeURIComponent("%3C!DOCTYPE%20html%3E%3Chtml%3E%3Chead%3E%3C%2Fhead%3E%3Cbody%3E%3C%2Fbody%3E%3C%2Fhtml%3E"),{features:{FetchExternalResources:["img"]},resources:"usable"}).window;t.document=r.document,t.jsdomImplForWrapper=Jd.implForWrapper,t.nodeCanvas=Jd.Canvas,t.window=r,DOMParser=t.window.DOMParser}t.isTouchSupported="ontouchstart"in t.window||"ontouchstart"in t.document||t.window&&t.window.navigator&&t.window.navigator.maxTouchPoints>0,t.isLikelyNode=typeof Buffer<"u"&&typeof window>"u",t.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],t.DPI=96,t.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",t.commaWsp="(?:\\s+,?\\s*|,\\s*)",t.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/ig,t.reNonWord=/[ \n\.,;!\?\-]/,t.fontPaths={},t.iMatrix=[1,0,0,1,0,0],t.svgNS="http://www.w3.org/2000/svg",t.perfLimitSizeTotal=2097152,t.maxCacheSideLimit=4096,t.minCacheSideLimit=256,t.charWidthsCache={},t.textureSize=2048,t.disableStyleCopyPaste=!1,t.enableGLFiltering=!0,t.devicePixelRatio=t.window.devicePixelRatio||t.window.webkitDevicePixelRatio||t.window.mozDevicePixelRatio||1,t.browserShadowBlurConstant=1,t.arcToSegmentsCache={},t.boundsOfCurveCache={},t.cachesBoundsOfCurve=!0,t.forceGLPutImageData=!1,t.initFilterBackend=function(){if(t.enableGLFiltering&&t.isWebglSupported&&t.isWebglSupported(t.textureSize))return console.log("max texture size: "+t.maxTextureSize),new t.WebglFilterBackend({tileSize:t.textureSize});if(t.Canvas2dFilterBackend)return new t.Canvas2dFilterBackend},typeof document<"u"&&typeof window<"u"&&(window.fabric=t),function(){function o(s,d){if(!!this.__eventListeners[s]){var v=this.__eventListeners[s];d?v[v.indexOf(d)]=!1:t.util.array.fill(v,!1)}}function a(s,d){if(this.__eventListeners||(this.__eventListeners={}),arguments.length===1)for(var v in s)this.on(v,s[v]);else this.__eventListeners[s]||(this.__eventListeners[s]=[]),this.__eventListeners[s].push(d);return this}function c(s,d){var v=function(){d.apply(this,arguments),this.off(s,v)}.bind(this);this.on(s,v)}function p(s,d){if(arguments.length===1)for(var v in s)c.call(this,v,s[v]);else c.call(this,s,d);return this}function u(s,d){if(!this.__eventListeners)return this;if(arguments.length===0)for(s in this.__eventListeners)o.call(this,s);else if(arguments.length===1&&typeof arguments[0]=="object")for(var v in s)o.call(this,v,s[v]);else o.call(this,s,d);return this}function f(s,d){if(!this.__eventListeners)return this;var v=this.__eventListeners[s];if(!v)return this;for(var h=0,m=v.length;h<m;h++)v[h]&&v[h].call(this,d||{});return this.__eventListeners[s]=v.filter(function(y){return y!==!1}),this}t.Observable={fire:f,on:a,once:p,off:u}}(),t.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var o=0,a=arguments.length;o<a;o++)this._onObjectAdded(arguments[o]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(o,a,c){var p=this._objects;return c?p[a]=o:p.splice(a,0,o),this._onObjectAdded&&this._onObjectAdded(o),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var o=this._objects,a,c=!1,p=0,u=arguments.length;p<u;p++)a=o.indexOf(arguments[p]),a!==-1&&(c=!0,o.splice(a,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[p]));return this.renderOnAddRemove&&c&&this.requestRenderAll(),this},forEachObject:function(o,a){for(var c=this.getObjects(),p=0,u=c.length;p<u;p++)o.call(a,c[p],p,c);return this},getObjects:function(o){return typeof o>"u"?this._objects.concat():this._objects.filter(function(a){return a.type===o})},item:function(o){return this._objects[o]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(o,a){return this._objects.indexOf(o)>-1?!0:a?this._objects.some(function(c){return typeof c.contains=="function"&&c.contains(o,!0)}):!1},complexity:function(){return this._objects.reduce(function(o,a){return o+=a.complexity?a.complexity():0,o},0)}},t.CommonMethods={_setOptions:function(o){for(var a in o)this.set(a,o[a])},_initGradient:function(o,a){o&&o.colorStops&&!(o instanceof t.Gradient)&&this.set(a,new t.Gradient(o))},_initPattern:function(o,a,c){o&&o.source&&!(o instanceof t.Pattern)?this.set(a,new t.Pattern(o,c)):c&&c()},_setObject:function(o){for(var a in o)this._set(a,o[a])},set:function(o,a){return typeof o=="object"?this._setObject(o):this._set(o,a),this},_set:function(o,a){this[o]=a},toggle:function(o){var a=this.get(o);return typeof a=="boolean"&&this.set(o,!a),this},get:function(o){return this[o]}},function(o){var a=Math.sqrt,c=Math.atan2,p=Math.pow,u=Math.PI/180,f=Math.PI/2;t.util={cos:function(s){if(s===0)return 1;s<0&&(s=-s);var d=s/f;switch(d){case 1:case 3:return 0;case 2:return-1}return Math.cos(s)},sin:function(s){if(s===0)return 0;var d=s/f,v=1;switch(s<0&&(v=-1),d){case 1:return v;case 2:return 0;case 3:return-v}return Math.sin(s)},removeFromArray:function(s,d){var v=s.indexOf(d);return v!==-1&&s.splice(v,1),s},getRandomInt:function(s,d){return Math.floor(Math.random()*(d-s+1))+s},degreesToRadians:function(s){return s*u},radiansToDegrees:function(s){return s/u},rotatePoint:function(s,d,v){var h=new t.Point(s.x-d.x,s.y-d.y),m=t.util.rotateVector(h,v);return new t.Point(m.x,m.y).addEquals(d)},rotateVector:function(s,d){var v=t.util.sin(d),h=t.util.cos(d),m=s.x*h-s.y*v,y=s.x*v+s.y*h;return{x:m,y}},createVector:function(s,d){return new t.Point(d.x-s.x,d.y-s.y)},calcAngleBetweenVectors:function(s,d){return Math.acos((s.x*d.x+s.y*d.y)/(Math.hypot(s.x,s.y)*Math.hypot(d.x,d.y)))},getHatVector:function(s){return new t.Point(s.x,s.y).multiply(1/Math.hypot(s.x,s.y))},getBisector:function(s,d,v){var h=t.util.createVector(s,d),m=t.util.createVector(s,v),y=t.util.calcAngleBetweenVectors(h,m),b=t.util.calcAngleBetweenVectors(t.util.rotateVector(h,y),m),_=y*(b===0?1:-1)/2;return{vector:t.util.getHatVector(t.util.rotateVector(h,_)),angle:y}},projectStrokeOnPoints:function(s,d,v){var h=[],m=d.strokeWidth/2,y=d.strokeUniform?new t.Point(1/d.scaleX,1/d.scaleY):new t.Point(1,1),b=function(_){var S=m/Math.hypot(_.x,_.y);return new t.Point(_.x*S*y.x,_.y*S*y.y)};return s.length<=1||s.forEach(function(_,S){var x=new t.Point(_.x,_.y),T,E;S===0?(E=s[S+1],T=v?b(t.util.createVector(E,x)).addEquals(x):s[s.length-1]):S===s.length-1?(T=s[S-1],E=v?b(t.util.createVector(T,x)).addEquals(x):s[0]):(T=s[S-1],E=s[S+1]);var k=t.util.getBisector(x,T,E),D=k.vector,W=k.angle,I,U;if(d.strokeLineJoin==="miter"&&(I=-m/Math.sin(W/2),U=new t.Point(D.x*I*y.x,D.y*I*y.y),Math.hypot(U.x,U.y)/m<=d.strokeMiterLimit)){h.push(x.add(U)),h.push(x.subtract(U));return}I=-m*Math.SQRT2,U=new t.Point(D.x*I*y.x,D.y*I*y.y),h.push(x.add(U)),h.push(x.subtract(U))}),h},transformPoint:function(s,d,v){return v?new t.Point(d[0]*s.x+d[2]*s.y,d[1]*s.x+d[3]*s.y):new t.Point(d[0]*s.x+d[2]*s.y+d[4],d[1]*s.x+d[3]*s.y+d[5])},makeBoundingBoxFromPoints:function(s,d){if(d)for(var v=0;v<s.length;v++)s[v]=t.util.transformPoint(s[v],d);var h=[s[0].x,s[1].x,s[2].x,s[3].x],m=t.util.array.min(h),y=t.util.array.max(h),b=y-m,_=[s[0].y,s[1].y,s[2].y,s[3].y],S=t.util.array.min(_),x=t.util.array.max(_),T=x-S;return{left:m,top:S,width:b,height:T}},invertTransform:function(s){var d=1/(s[0]*s[3]-s[1]*s[2]),v=[d*s[3],-d*s[1],-d*s[2],d*s[0]],h=t.util.transformPoint({x:s[4],y:s[5]},v,!0);return v[4]=-h.x,v[5]=-h.y,v},toFixed:function(s,d){return parseFloat(Number(s).toFixed(d))},parseUnit:function(s,d){var v=/\D{0,2}$/.exec(s),h=parseFloat(s);switch(d||(d=t.Text.DEFAULT_SVG_FONT_SIZE),v[0]){case"mm":return h*t.DPI/25.4;case"cm":return h*t.DPI/2.54;case"in":return h*t.DPI;case"pt":return h*t.DPI/72;case"pc":return h*t.DPI/72*12;case"em":return h*d;default:return h}},falseFunction:function(){return!1},getKlass:function(s,d){return s=t.util.string.camelize(s.charAt(0).toUpperCase()+s.slice(1)),t.util.resolveNamespace(d)[s]},getSvgAttributes:function(s){var d=["instantiated_by_use","style","id","class"];switch(s){case"linearGradient":d=d.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":d=d.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":d=d.concat(["offset","stop-color","stop-opacity"]);break}return d},resolveNamespace:function(s){if(!s)return t;var d=s.split("."),v=d.length,h,m=o||t.window;for(h=0;h<v;++h)m=m[d[h]];return m},loadImage:function(s,d,v,h){if(!s){d&&d.call(v,s);return}var m=t.util.createImage(),y=function(){d&&d.call(v,m,!1),m=m.onload=m.onerror=null};m.onload=y,m.onerror=function(){t.log("Error loading "+m.src),d&&d.call(v,null,!0),m=m.onload=m.onerror=null},s.indexOf("data")!==0&&h!==void 0&&h!==null&&(m.crossOrigin=h),s.substring(0,14)==="data:image/svg"&&(m.onload=null,t.util.loadImageInDom(m,y)),m.src=s},loadImageInDom:function(s,d){var v=t.document.createElement("div");v.style.width=v.style.height="1px",v.style.left=v.style.top="-100%",v.style.position="absolute",v.appendChild(s),t.document.querySelector("body").appendChild(v),s.onload=function(){d(),v.parentNode.removeChild(v),v=null}},enlivenObjects:function(s,d,v,h){s=s||[];var m=[],y=0,b=s.length;function _(){++y===b&&d&&d(m.filter(function(S){return S}))}if(!b){d&&d(m);return}s.forEach(function(S,x){if(!S||!S.type){_();return}var T=t.util.getKlass(S.type,v);T.fromObject(S,function(E,k){k||(m[x]=E),h&&h(S,E,k),_()})})},enlivenObjectEnlivables:function(s,d,v){var h=t.Object.ENLIVEN_PROPS.filter(function(m){return!!s[m]});t.util.enlivenObjects(h.map(function(m){return s[m]}),function(m){var y={};h.forEach(function(b,_){y[b]=m[_],d&&(d[b]=m[_])}),v&&v(y)})},enlivenPatterns:function(s,d){s=s||[];function v(){++m===y&&d&&d(h)}var h=[],m=0,y=s.length;if(!y){d&&d(h);return}s.forEach(function(b,_){b&&b.source?new t.Pattern(b,function(S){h[_]=S,v()}):(h[_]=b,v())})},groupSVGElements:function(s,d,v){var h;return s&&s.length===1?(typeof v<"u"&&(s[0].sourcePath=v),s[0]):(d&&(d.width&&d.height?d.centerPoint={x:d.width/2,y:d.height/2}:(delete d.width,delete d.height)),h=new t.Group(s,d),typeof v<"u"&&(h.sourcePath=v),h)},populateWithProperties:function(s,d,v){if(v&&Array.isArray(v))for(var h=0,m=v.length;h<m;h++)v[h]in s&&(d[v[h]]=s[v[h]])},createCanvasElement:function(){return t.document.createElement("canvas")},copyCanvasElement:function(s){var d=t.util.createCanvasElement();return d.width=s.width,d.height=s.height,d.getContext("2d").drawImage(s,0,0),d},toDataURL:function(s,d,v){return s.toDataURL("image/"+d,v)},createImage:function(){return t.document.createElement("img")},multiplyTransformMatrices:function(s,d,v){return[s[0]*d[0]+s[2]*d[1],s[1]*d[0]+s[3]*d[1],s[0]*d[2]+s[2]*d[3],s[1]*d[2]+s[3]*d[3],v?0:s[0]*d[4]+s[2]*d[5]+s[4],v?0:s[1]*d[4]+s[3]*d[5]+s[5]]},qrDecompose:function(s){var d=c(s[1],s[0]),v=p(s[0],2)+p(s[1],2),h=a(v),m=(s[0]*s[3]-s[2]*s[1])/h,y=c(s[0]*s[2]+s[1]*s[3],v);return{angle:d/u,scaleX:h,scaleY:m,skewX:y/u,skewY:0,translateX:s[4],translateY:s[5]}},calcRotateMatrix:function(s){if(!s.angle)return t.iMatrix.concat();var d=t.util.degreesToRadians(s.angle),v=t.util.cos(d),h=t.util.sin(d);return[v,h,-h,v,0,0]},calcDimensionsMatrix:function(s){var d=typeof s.scaleX>"u"?1:s.scaleX,v=typeof s.scaleY>"u"?1:s.scaleY,h=[s.flipX?-d:d,0,0,s.flipY?-v:v,0,0],m=t.util.multiplyTransformMatrices,y=t.util.degreesToRadians;return s.skewX&&(h=m(h,[1,0,Math.tan(y(s.skewX)),1],!0)),s.skewY&&(h=m(h,[1,Math.tan(y(s.skewY)),0,1],!0)),h},composeMatrix:function(s){var d=[1,0,0,1,s.translateX||0,s.translateY||0],v=t.util.multiplyTransformMatrices;return s.angle&&(d=v(d,t.util.calcRotateMatrix(s))),(s.scaleX!==1||s.scaleY!==1||s.skewX||s.skewY||s.flipX||s.flipY)&&(d=v(d,t.util.calcDimensionsMatrix(s))),d},resetObjectTransform:function(s){s.scaleX=1,s.scaleY=1,s.skewX=0,s.skewY=0,s.flipX=!1,s.flipY=!1,s.rotate(0)},saveObjectTransform:function(s){return{scaleX:s.scaleX,scaleY:s.scaleY,skewX:s.skewX,skewY:s.skewY,angle:s.angle,left:s.left,flipX:s.flipX,flipY:s.flipY,top:s.top}},isTransparent:function(s,d,v,h){h>0&&(d>h?d-=h:d=0,v>h?v-=h:v=0);var m=!0,y,b,_=s.getImageData(d,v,h*2||1,h*2||1),S=_.data.length;for(y=3;y<S&&(b=_.data[y],m=b<=0,m!==!1);y+=4);return _=null,m},parsePreserveAspectRatioAttribute:function(s){var d="meet",v="Mid",h="Mid",m=s.split(" "),y;return m&&m.length&&(d=m.pop(),d!=="meet"&&d!=="slice"?(y=d,d="meet"):m.length&&(y=m.pop())),v=y!=="none"?y.slice(1,4):"none",h=y!=="none"?y.slice(5,8):"none",{meetOrSlice:d,alignX:v,alignY:h}},clearFabricFontCache:function(s){s=(s||"").toLowerCase(),s?t.charWidthsCache[s]&&delete t.charWidthsCache[s]:t.charWidthsCache={}},limitDimsByArea:function(s,d){var v=Math.sqrt(d*s),h=Math.floor(d/v);return{x:Math.floor(v),y:h}},capValue:function(s,d,v){return Math.max(s,Math.min(d,v))},findScaleToFit:function(s,d){return Math.min(d.width/s.width,d.height/s.height)},findScaleToCover:function(s,d){return Math.max(d.width/s.width,d.height/s.height)},matrixToSVG:function(s){return"matrix("+s.map(function(d){return t.util.toFixed(d,t.Object.NUM_FRACTION_DIGITS)}).join(" ")+")"},removeTransformFromObject:function(s,d){var v=t.util.invertTransform(d),h=t.util.multiplyTransformMatrices(v,s.calcOwnMatrix());t.util.applyTransformToObject(s,h)},addTransformToObject:function(s,d){t.util.applyTransformToObject(s,t.util.multiplyTransformMatrices(d,s.calcOwnMatrix()))},applyTransformToObject:function(s,d){var v=t.util.qrDecompose(d),h=new t.Point(v.translateX,v.translateY);s.flipX=!1,s.flipY=!1,s.set("scaleX",v.scaleX),s.set("scaleY",v.scaleY),s.skewX=v.skewX,s.skewY=v.skewY,s.angle=v.angle,s.setPositionByOrigin(h,"center","center")},sizeAfterTransform:function(s,d,v){var h=s/2,m=d/2,y=[{x:-h,y:-m},{x:h,y:-m},{x:-h,y:m},{x:h,y:m}],b=t.util.calcDimensionsMatrix(v),_=t.util.makeBoundingBoxFromPoints(y,b);return{x:_.width,y:_.height}},mergeClipPaths:function(s,d){var v=s,h=d;v.inverted&&!h.inverted&&(v=d,h=s),t.util.applyTransformToObject(h,t.util.multiplyTransformMatrices(t.util.invertTransform(v.calcTransformMatrix()),h.calcTransformMatrix()));var m=v.inverted&&h.inverted;return m&&(v.inverted=h.inverted=!1),new t.Group([v],{clipPath:h,inverted:m})},hasStyleChanged:function(s,d,v){return v=v||!1,s.fill!==d.fill||s.stroke!==d.stroke||s.strokeWidth!==d.strokeWidth||s.fontSize!==d.fontSize||s.fontFamily!==d.fontFamily||s.fontWeight!==d.fontWeight||s.fontStyle!==d.fontStyle||s.textBackgroundColor!==d.textBackgroundColor||s.deltaY!==d.deltaY||v&&(s.overline!==d.overline||s.underline!==d.underline||s.linethrough!==d.linethrough)},stylesToArray:function(v,d){for(var v=t.util.object.clone(v,!0),h=d.split(`
`),m=-1,y={},b=[],_=0;_<h.length;_++){if(!v[_]){m+=h[_].length;continue}for(var S=0;S<h[_].length;S++){m++;var x=v[_][S];if(x&&Object.keys(x).length>0){var T=t.util.hasStyleChanged(y,x,!0);T?b.push({start:m,end:m+1,style:x}):b[b.length-1].end++}y=x||{}}}return b},stylesFromArray:function(s,d){if(!Array.isArray(s))return s;for(var v=d.split(`
`),h=-1,m=0,y={},b=0;b<v.length;b++)for(var _=0;_<v[b].length;_++)h++,s[m]&&s[m].start<=h&&h<s[m].end&&(y[b]=y[b]||{},y[b][_]=Object.assign({},s[m].style),h===s[m].end-1&&m++);return y}}}(e),function(){var o=Array.prototype.join,a={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},c={m:"l",M:"L"};function p(O,F,R,P,G,$,M,ne,X,te,Q){var J=t.util.cos(O),oe=t.util.sin(O),pe=t.util.cos(F),N=t.util.sin(F),C=R*G*pe-P*$*N+M,H=P*G*pe+R*$*N+ne,K=te+X*(-R*G*oe-P*$*J),L=Q+X*(-P*G*oe+R*$*J),B=C+X*(R*G*N+P*$*pe),Z=H+X*(P*G*N-R*$*pe);return["C",K,L,B,Z,C,H]}function u(O,F,R,P,G,$,M){var ne=Math.PI,X=M*ne/180,te=t.util.sin(X),Q=t.util.cos(X),J=0,oe=0;R=Math.abs(R),P=Math.abs(P);var pe=-Q*O*.5-te*F*.5,N=-Q*F*.5+te*O*.5,C=R*R,H=P*P,K=N*N,L=pe*pe,B=C*H-C*K-H*L,Z=0;if(B<0){var ce=Math.sqrt(1-B/(C*H));R*=ce,P*=ce}else Z=(G===$?-1:1)*Math.sqrt(B/(C*K+H*L));var le=Z*R*N/P,Y=-Z*P*pe/R,he=Q*le-te*Y+O*.5,ve=te*le+Q*Y+F*.5,ge=f(1,0,(pe-le)/R,(N-Y)/P),Ee=f((pe-le)/R,(N-Y)/P,(-pe-le)/R,(-N-Y)/P);$===0&&Ee>0?Ee-=2*ne:$===1&&Ee<0&&(Ee+=2*ne);for(var _e=Math.ceil(Math.abs(Ee/ne*2)),Te=[],Oe=Ee/_e,tt=8/3*Math.sin(Oe/4)*Math.sin(Oe/4)/Math.sin(Oe/2),Ce=ge+Oe,Me=0;Me<_e;Me++)Te[Me]=p(ge,Ce,Q,te,R,P,he,ve,tt,J,oe),J=Te[Me][5],oe=Te[Me][6],ge=Ce,Ce+=Oe;return Te}function f(O,F,R,P){var G=Math.atan2(F,O),$=Math.atan2(P,R);return $>=G?$-G:2*Math.PI-(G-$)}function s(O,F,R,P,G,$,M,ne){var X;if(t.cachesBoundsOfCurve&&(X=o.call(arguments),t.boundsOfCurveCache[X]))return t.boundsOfCurveCache[X];var te=Math.sqrt,Q=Math.min,J=Math.max,oe=Math.abs,pe=[],N=[[],[]],C,H,K,L,B,Z,ce,le;H=6*O-12*R+6*G,C=-3*O+9*R-9*G+3*M,K=3*R-3*O;for(var Y=0;Y<2;++Y){if(Y>0&&(H=6*F-12*P+6*$,C=-3*F+9*P-9*$+3*ne,K=3*P-3*F),oe(C)<1e-12){if(oe(H)<1e-12)continue;L=-K/H,0<L&&L<1&&pe.push(L);continue}ce=H*H-4*K*C,!(ce<0)&&(le=te(ce),B=(-H+le)/(2*C),0<B&&B<1&&pe.push(B),Z=(-H-le)/(2*C),0<Z&&Z<1&&pe.push(Z))}for(var he,ve,ge=pe.length,Ee=ge,_e;ge--;)L=pe[ge],_e=1-L,he=_e*_e*_e*O+3*_e*_e*L*R+3*_e*L*L*G+L*L*L*M,N[0][ge]=he,ve=_e*_e*_e*F+3*_e*_e*L*P+3*_e*L*L*$+L*L*L*ne,N[1][ge]=ve;N[0][Ee]=O,N[1][Ee]=F,N[0][Ee+1]=M,N[1][Ee+1]=ne;var Te=[{x:Q.apply(null,N[0]),y:Q.apply(null,N[1])},{x:J.apply(null,N[0]),y:J.apply(null,N[1])}];return t.cachesBoundsOfCurve&&(t.boundsOfCurveCache[X]=Te),Te}function d(O,F,R){for(var P=R[1],G=R[2],$=R[3],M=R[4],ne=R[5],X=R[6],te=R[7],Q=u(X-O,te-F,P,G,M,ne,$),J=0,oe=Q.length;J<oe;J++)Q[J][1]+=O,Q[J][2]+=F,Q[J][3]+=O,Q[J][4]+=F,Q[J][5]+=O,Q[J][6]+=F;return Q}function v(O){var F=0,R=0,P=O.length,G=0,$=0,M,ne,X,te=[],Q,J,oe;for(ne=0;ne<P;++ne){switch(X=!1,M=O[ne].slice(0),M[0]){case"l":M[0]="L",M[1]+=F,M[2]+=R;case"L":F=M[1],R=M[2];break;case"h":M[1]+=F;case"H":M[0]="L",M[2]=R,F=M[1];break;case"v":M[1]+=R;case"V":M[0]="L",R=M[1],M[1]=F,M[2]=R;break;case"m":M[0]="M",M[1]+=F,M[2]+=R;case"M":F=M[1],R=M[2],G=M[1],$=M[2];break;case"c":M[0]="C",M[1]+=F,M[2]+=R,M[3]+=F,M[4]+=R,M[5]+=F,M[6]+=R;case"C":J=M[3],oe=M[4],F=M[5],R=M[6];break;case"s":M[0]="S",M[1]+=F,M[2]+=R,M[3]+=F,M[4]+=R;case"S":Q==="C"?(J=2*F-J,oe=2*R-oe):(J=F,oe=R),F=M[3],R=M[4],M[0]="C",M[5]=M[3],M[6]=M[4],M[3]=M[1],M[4]=M[2],M[1]=J,M[2]=oe,J=M[3],oe=M[4];break;case"q":M[0]="Q",M[1]+=F,M[2]+=R,M[3]+=F,M[4]+=R;case"Q":J=M[1],oe=M[2],F=M[3],R=M[4];break;case"t":M[0]="T",M[1]+=F,M[2]+=R;case"T":Q==="Q"?(J=2*F-J,oe=2*R-oe):(J=F,oe=R),M[0]="Q",F=M[1],R=M[2],M[1]=J,M[2]=oe,M[3]=F,M[4]=R;break;case"a":M[0]="A",M[6]+=F,M[7]+=R;case"A":X=!0,te=te.concat(d(F,R,M)),F=M[6],R=M[7];break;case"z":case"Z":F=G,R=$;break}X||te.push(M),Q=M[0]}return te}function h(O,F,R,P){return Math.sqrt((R-O)*(R-O)+(P-F)*(P-F))}function m(O){return O*O*O}function y(O){return 3*O*O*(1-O)}function b(O){return 3*O*(1-O)*(1-O)}function _(O){return(1-O)*(1-O)*(1-O)}function S(O,F,R,P,G,$,M,ne){return function(X){var te=m(X),Q=y(X),J=b(X),oe=_(X);return{x:M*te+G*Q+R*J+O*oe,y:ne*te+$*Q+P*J+F*oe}}}function x(O,F,R,P,G,$,M,ne){return function(X){var te=1-X,Q=3*te*te*(R-O)+6*te*X*(G-R)+3*X*X*(M-G),J=3*te*te*(P-F)+6*te*X*($-P)+3*X*X*(ne-$);return Math.atan2(J,Q)}}function T(O){return O*O}function E(O){return 2*O*(1-O)}function k(O){return(1-O)*(1-O)}function D(O,F,R,P,G,$){return function(M){var ne=T(M),X=E(M),te=k(M);return{x:G*ne+R*X+O*te,y:$*ne+P*X+F*te}}}function W(O,F,R,P,G,$){return function(M){var ne=1-M,X=2*ne*(R-O)+2*M*(G-R),te=2*ne*(P-F)+2*M*($-P);return Math.atan2(te,X)}}function I(O,F,R){var P={x:F,y:R},G,$=0,M;for(M=1;M<=100;M+=1)G=O(M/100),$+=h(P.x,P.y,G.x,G.y),P=G;return $}function U(O,F){for(var R=0,P=0,G=O.iterator,$={x:O.x,y:O.y},M,ne,X=.01,te=O.angleFinder,Q;P<F&&X>1e-4;)M=G(R),Q=R,ne=h($.x,$.y,M.x,M.y),ne+P>F?(R-=X,X/=2):($=M,R+=X,P+=ne);return M.angle=te(Q),M}function A(O){for(var F=0,R=O.length,P,G=0,$=0,M=0,ne=0,X=[],te,Q,J,oe=0;oe<R;oe++){switch(P=O[oe],Q={x:G,y:$,command:P[0]},P[0]){case"M":Q.length=0,M=G=P[1],ne=$=P[2];break;case"L":Q.length=h(G,$,P[1],P[2]),G=P[1],$=P[2];break;case"C":te=S(G,$,P[1],P[2],P[3],P[4],P[5],P[6]),J=x(G,$,P[1],P[2],P[3],P[4],P[5],P[6]),Q.iterator=te,Q.angleFinder=J,Q.length=I(te,G,$),G=P[5],$=P[6];break;case"Q":te=D(G,$,P[1],P[2],P[3],P[4]),J=W(G,$,P[1],P[2],P[3],P[4]),Q.iterator=te,Q.angleFinder=J,Q.length=I(te,G,$),G=P[3],$=P[4];break;case"Z":case"z":Q.destX=M,Q.destY=ne,Q.length=h(G,$,M,ne),G=M,$=ne;break}F+=Q.length,X.push(Q)}return X.push({length:F,x:G,y:$}),X}function ee(O,F,R){R||(R=A(O));for(var P=0;F-R[P].length>0&&P<R.length-2;)F-=R[P].length,P++;var G=R[P],$=F/G.length,M=G.command,ne=O[P],X;switch(M){case"M":return{x:G.x,y:G.y,angle:0};case"Z":case"z":return X=new t.Point(G.x,G.y).lerp(new t.Point(G.destX,G.destY),$),X.angle=Math.atan2(G.destY-G.y,G.destX-G.x),X;case"L":return X=new t.Point(G.x,G.y).lerp(new t.Point(ne[1],ne[2]),$),X.angle=Math.atan2(ne[2]-G.y,ne[1]-G.x),X;case"C":return U(G,F);case"Q":return U(G,F)}}function de(O){var F=[],R=[],P,G,$=t.rePathCommand,M="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",ne="("+M+")"+t.commaWsp,X="([01])"+t.commaWsp+"?",te=ne+"?"+ne+"?"+ne+X+X+ne+"?("+M+")",Q=new RegExp(te,"g"),J,oe,pe;if(!O||!O.match)return F;pe=O.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var N=0,C,H=pe.length;N<H;N++){P=pe[N],oe=P.slice(1).trim(),R.length=0;var K=P.charAt(0);if(C=[K],K.toLowerCase()==="a")for(var L;L=Q.exec(oe);)for(var B=1;B<L.length;B++)R.push(L[B]);else for(;J=$.exec(oe);)R.push(J[0]);for(var B=0,Z=R.length;B<Z;B++)G=parseFloat(R[B]),isNaN(G)||C.push(G);var ce=a[K.toLowerCase()],le=c[K]||K;if(C.length-1>ce)for(var Y=1,he=C.length;Y<he;Y+=ce)F.push([K].concat(C.slice(Y,Y+ce))),K=le;else F.push(C)}return F}function z(O,F){var R=[],P,G=new t.Point(O[0].x,O[0].y),$=new t.Point(O[1].x,O[1].y),M=O.length,ne=1,X=0,te=M>2;for(F=F||0,te&&(ne=O[2].x<$.x?-1:O[2].x===$.x?0:1,X=O[2].y<$.y?-1:O[2].y===$.y?0:1),R.push(["M",G.x-ne*F,G.y-X*F]),P=1;P<M;P++){if(!G.eq($)){var Q=G.midPointFrom($);R.push(["Q",G.x,G.y,Q.x,Q.y])}G=O[P],P+1<O.length&&($=O[P+1])}return te&&(ne=G.x>O[P-2].x?1:G.x===O[P-2].x?0:-1,X=G.y>O[P-2].y?1:G.y===O[P-2].y?0:-1),R.push(["L",G.x+ne*F,G.y+X*F]),R}function q(O,F,R){return R&&(F=t.util.multiplyTransformMatrices(F,[1,0,0,1,-R.x,-R.y])),O.map(function(P){for(var G=P.slice(0),$={},M=1;M<P.length-1;M+=2)$.x=P[M],$.y=P[M+1],$=t.util.transformPoint($,F),G[M]=$.x,G[M+1]=$.y;return G})}t.util.joinPath=function(O){return O.map(function(F){return F.join(" ")}).join(" ")},t.util.parsePath=de,t.util.makePathSimpler=v,t.util.getSmoothPathFromPoints=z,t.util.getPathSegmentsInfo=A,t.util.getBoundsOfCurve=s,t.util.getPointOnPath=ee,t.util.transformPath=q}(),function(){var o=Array.prototype.slice;function a(s,d){for(var v=o.call(arguments,2),h=[],m=0,y=s.length;m<y;m++)h[m]=v.length?s[m][d].apply(s[m],v):s[m][d].call(s[m]);return h}function c(s,d){return f(s,d,function(v,h){return v>=h})}function p(s,d){return f(s,d,function(v,h){return v<h})}function u(s,d){for(var v=s.length;v--;)s[v]=d;return s}function f(s,d,v){if(!(!s||s.length===0)){var h=s.length-1,m=d?s[h][d]:s[h];if(d)for(;h--;)v(s[h][d],m)&&(m=s[h][d]);else for(;h--;)v(s[h],m)&&(m=s[h]);return m}}t.util.array={fill:u,invoke:a,min:p,max:c}}(),function(){function o(c,p,u){if(u)if(!t.isLikelyNode&&p instanceof Element)c=p;else if(p instanceof Array){c=[];for(var f=0,s=p.length;f<s;f++)c[f]=o({},p[f],u)}else if(p&&typeof p=="object")for(var d in p)d==="canvas"||d==="group"?c[d]=null:p.hasOwnProperty(d)&&(c[d]=o({},p[d],u));else c=p;else for(var d in p)c[d]=p[d];return c}function a(c,p){return o({},c,p)}t.util.object={extend:o,clone:a},t.util.object.extend(t.util,t.Observable)}(),function(){function o(f){return f.replace(/-+(.)?/g,function(s,d){return d?d.toUpperCase():""})}function a(f,s){return f.charAt(0).toUpperCase()+(s?f.slice(1):f.slice(1).toLowerCase())}function c(f){return f.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function p(f){var s=0,d,v=[];for(s=0,d;s<f.length;s++)(d=u(f,s))!==!1&&v.push(d);return v}function u(f,s){var d=f.charCodeAt(s);if(isNaN(d))return"";if(d<55296||d>57343)return f.charAt(s);if(55296<=d&&d<=56319){if(f.length<=s+1)throw"High surrogate without following low surrogate";var v=f.charCodeAt(s+1);if(56320>v||v>57343)throw"High surrogate without following low surrogate";return f.charAt(s)+f.charAt(s+1)}if(s===0)throw"Low surrogate without preceding high surrogate";var h=f.charCodeAt(s-1);if(55296>h||h>56319)throw"Low surrogate without preceding high surrogate";return!1}t.util.string={camelize:o,capitalize:a,escapeXml:c,graphemeSplit:p}}(),function(){var o=Array.prototype.slice,a=function(){},c=function(){for(var d in{toString:1})if(d==="toString")return!1;return!0}(),p=function(d,v,h){for(var m in v)m in d.prototype&&typeof d.prototype[m]=="function"&&(v[m]+"").indexOf("callSuper")>-1?d.prototype[m]=function(y){return function(){var b=this.constructor.superclass;this.constructor.superclass=h;var _=v[y].apply(this,arguments);if(this.constructor.superclass=b,y!=="initialize")return _}}(m):d.prototype[m]=v[m],c&&(v.toString!==Object.prototype.toString&&(d.prototype.toString=v.toString),v.valueOf!==Object.prototype.valueOf&&(d.prototype.valueOf=v.valueOf))};function u(){}function f(d){for(var v=null,h=this;h.constructor.superclass;){var m=h.constructor.superclass.prototype[d];if(h[d]!==m){v=m;break}h=h.constructor.superclass.prototype}return v?arguments.length>1?v.apply(this,o.call(arguments,1)):v.call(this):console.log("tried to callSuper "+d+", method not found in prototype chain",this)}function s(){var d=null,v=o.call(arguments,0);typeof v[0]=="function"&&(d=v.shift());function h(){this.initialize.apply(this,arguments)}h.superclass=d,h.subclasses=[],d&&(u.prototype=d.prototype,h.prototype=new u,d.subclasses.push(h));for(var m=0,y=v.length;m<y;m++)p(h,v[m],d);return h.prototype.initialize||(h.prototype.initialize=a),h.prototype.constructor=h,h.prototype.callSuper=f,h}t.util.createClass=s}(),function(){var o=!!t.document.createElement("div").attachEvent,a=["touchstart","touchmove","touchend"];t.util.addListener=function(p,u,f,s){p&&p.addEventListener(u,f,o?!1:s)},t.util.removeListener=function(p,u,f,s){p&&p.removeEventListener(u,f,o?!1:s)};function c(p){var u=p.changedTouches;return u&&u[0]?u[0]:p}t.util.getPointer=function(p){var u=p.target,f=t.util.getScrollLeftTop(u),s=c(p);return{x:s.clientX+f.left,y:s.clientY+f.top}},t.util.isTouchEvent=function(p){return a.indexOf(p.type)>-1||p.pointerType==="touch"}}(),function(){function o(s,d){var v=s.style;if(!v)return s;if(typeof d=="string")return s.style.cssText+=";"+d,d.indexOf("opacity")>-1?f(s,d.match(/opacity:\s*(\d?\.?\d*)/)[1]):s;for(var h in d)if(h==="opacity")f(s,d[h]);else{var m=h==="float"||h==="cssFloat"?typeof v.styleFloat>"u"?"cssFloat":"styleFloat":h;v.setProperty(m,d[h])}return s}var a=t.document.createElement("div"),c=typeof a.style.opacity=="string",p=typeof a.style.filter=="string",u=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,f=function(s){return s};c?f=function(s,d){return s.style.opacity=d,s}:p&&(f=function(s,d){var v=s.style;return s.currentStyle&&!s.currentStyle.hasLayout&&(v.zoom=1),u.test(v.filter)?(d=d>=.9999?"":"alpha(opacity="+d*100+")",v.filter=v.filter.replace(u,d)):v.filter+=" alpha(opacity="+d*100+")",s}),t.util.setStyle=o}(),function(){var o=Array.prototype.slice;function a(_){return typeof _=="string"?t.document.getElementById(_):_}var c,p=function(_){return o.call(_,0)};try{c=p(t.document.childNodes)instanceof Array}catch{}c||(p=function(_){for(var S=new Array(_.length),x=_.length;x--;)S[x]=_[x];return S});function u(_,S){var x=t.document.createElement(_);for(var T in S)T==="class"?x.className=S[T]:T==="for"?x.htmlFor=S[T]:x.setAttribute(T,S[T]);return x}function f(_,S){_&&(" "+_.className+" ").indexOf(" "+S+" ")===-1&&(_.className+=(_.className?" ":"")+S)}function s(_,S,x){return typeof S=="string"&&(S=u(S,x)),_.parentNode&&_.parentNode.replaceChild(S,_),S.appendChild(_),S}function d(_){for(var S=0,x=0,T=t.document.documentElement,E=t.document.body||{scrollLeft:0,scrollTop:0};_&&(_.parentNode||_.host)&&(_=_.parentNode||_.host,_===t.document?(S=E.scrollLeft||T.scrollLeft||0,x=E.scrollTop||T.scrollTop||0):(S+=_.scrollLeft||0,x+=_.scrollTop||0),!(_.nodeType===1&&_.style.position==="fixed")););return{left:S,top:x}}function v(_){var S,x=_&&_.ownerDocument,T={left:0,top:0},E={left:0,top:0},k,D={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!x)return E;for(var W in D)E[D[W]]+=parseInt(h(_,W),10)||0;return S=x.documentElement,typeof _.getBoundingClientRect<"u"&&(T=_.getBoundingClientRect()),k=d(_),{left:T.left+k.left-(S.clientLeft||0)+E.left,top:T.top+k.top-(S.clientTop||0)+E.top}}var h;t.document.defaultView&&t.document.defaultView.getComputedStyle?h=function(_,S){var x=t.document.defaultView.getComputedStyle(_,null);return x?x[S]:void 0}:h=function(_,S){var x=_.style[S];return!x&&_.currentStyle&&(x=_.currentStyle[S]),x},function(){var _=t.document.documentElement.style,S="userSelect"in _?"userSelect":"MozUserSelect"in _?"MozUserSelect":"WebkitUserSelect"in _?"WebkitUserSelect":"KhtmlUserSelect"in _?"KhtmlUserSelect":"";function x(E){return typeof E.onselectstart<"u"&&(E.onselectstart=t.util.falseFunction),S?E.style[S]="none":typeof E.unselectable=="string"&&(E.unselectable="on"),E}function T(E){return typeof E.onselectstart<"u"&&(E.onselectstart=null),S?E.style[S]="":typeof E.unselectable=="string"&&(E.unselectable=""),E}t.util.makeElementUnselectable=x,t.util.makeElementSelectable=T}();function m(_){var S=t.jsdomImplForWrapper(_);return S._canvas||S._image}function y(_){if(!!t.isLikelyNode){var S=t.jsdomImplForWrapper(_);S&&(S._image=null,S._canvas=null,S._currentSrc=null,S._attributes=null,S._classList=null)}}function b(_,S){_.imageSmoothingEnabled=_.imageSmoothingEnabled||_.webkitImageSmoothingEnabled||_.mozImageSmoothingEnabled||_.msImageSmoothingEnabled||_.oImageSmoothingEnabled,_.imageSmoothingEnabled=S}t.util.setImageSmoothing=b,t.util.getById=a,t.util.toArray=p,t.util.addClass=f,t.util.makeElement=u,t.util.wrapElement=s,t.util.getScrollLeftTop=d,t.util.getElementOffset=v,t.util.getNodeCanvas=m,t.util.cleanUpJsdomNode=y}(),function(){function o(p,u){return p+(/\?/.test(p)?"&":"?")+u}function a(){}function c(p,u){u||(u={});var f=u.method?u.method.toUpperCase():"GET",s=u.onComplete||function(){},d=new t.window.XMLHttpRequest,v=u.body||u.parameters;return d.onreadystatechange=function(){d.readyState===4&&(s(d),d.onreadystatechange=a)},f==="GET"&&(v=null,typeof u.parameters=="string"&&(p=o(p,u.parameters))),d.open(f,p,!0),(f==="POST"||f==="PUT")&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.send(v),d}t.util.request=c}(),t.log=console.log,t.warn=console.warn,function(){var o=t.util.object.extend,a=t.util.object.clone,c=[];t.util.object.extend(c,{cancelAll:function(){var m=this.splice(0);return m.forEach(function(y){y.cancel()}),m},cancelByCanvas:function(m){if(!m)return[];var y=this.filter(function(b){return typeof b.target=="object"&&b.target.canvas===m});return y.forEach(function(b){b.cancel()}),y},cancelByTarget:function(m){var y=this.findAnimationsByTarget(m);return y.forEach(function(b){b.cancel()}),y},findAnimationIndex:function(m){return this.indexOf(this.findAnimation(m))},findAnimation:function(m){return this.find(function(y){return y.cancel===m})},findAnimationsByTarget:function(m){return m?this.filter(function(y){return y.target===m}):[]}});function p(){return!1}function u(m,y,b,_){return-b*Math.cos(m/_*(Math.PI/2))+b+y}function f(m){m||(m={});var y=!1,b,_=function(){var S=t.runningAnimations.indexOf(b);return S>-1&&t.runningAnimations.splice(S,1)[0]};return b=o(a(m),{cancel:function(){return y=!0,_()},currentValue:"startValue"in m?m.startValue:0,completionRate:0,durationRate:0}),t.runningAnimations.push(b),v(function(S){var x=S||+new Date,T=m.duration||500,E=x+T,k,D=m.onChange||p,W=m.abort||p,I=m.onComplete||p,U=m.easing||u,A="startValue"in m?m.startValue.length>0:!1,ee="startValue"in m?m.startValue:0,de="endValue"in m?m.endValue:100,z=m.byValue||(A?ee.map(function(q,O){return de[O]-ee[O]}):de-ee);m.onStart&&m.onStart(),function q(O){k=O||+new Date;var F=k>E?T:k-x,R=F/T,P=A?ee.map(function($,M){return U(F,ee[M],z[M],T)}):U(F,ee,z,T),G=Math.abs(A?(P[0]-ee[0])/z[0]:(P-ee)/z);if(b.currentValue=A?P.slice():P,b.completionRate=G,b.durationRate=R,!y){if(W(P,G,R)){_();return}if(k>E){b.currentValue=A?de.slice():de,b.completionRate=1,b.durationRate=1,D(A?de.slice():de,1,1),I(de,1,1),_();return}else D(P,G,R),v(q)}}(x)}),b.cancel}var s=t.window.requestAnimationFrame||t.window.webkitRequestAnimationFrame||t.window.mozRequestAnimationFrame||t.window.oRequestAnimationFrame||t.window.msRequestAnimationFrame||function(m){return t.window.setTimeout(m,1e3/60)},d=t.window.cancelAnimationFrame||t.window.clearTimeout;function v(){return s.apply(t.window,arguments)}function h(){return d.apply(t.window,arguments)}t.util.animate=f,t.util.requestAnimFrame=v,t.util.cancelAnimFrame=h,t.runningAnimations=c}(),function(){function o(c,p,u){var f="rgba("+parseInt(c[0]+u*(p[0]-c[0]),10)+","+parseInt(c[1]+u*(p[1]-c[1]),10)+","+parseInt(c[2]+u*(p[2]-c[2]),10);return f+=","+(c&&p?parseFloat(c[3]+u*(p[3]-c[3])):1),f+=")",f}function a(c,p,u,f){var s=new t.Color(c).getSource(),d=new t.Color(p).getSource(),v=f.onComplete,h=f.onChange;return f=f||{},t.util.animate(t.util.object.extend(f,{duration:u||500,startValue:s,endValue:d,byValue:d,easing:function(m,y,b,_){var S=f.colorEasing?f.colorEasing(m,_):1-Math.cos(m/_*(Math.PI/2));return o(y,b,S)},onComplete:function(m,y,b){if(v)return v(o(d,d,0),y,b)},onChange:function(m,y,b){if(h){if(Array.isArray(m))return h(o(m,m,0),y,b);h(m,y,b)}}}))}t.util.animateColor=a}(),function(){function o(O,F,R,P){return O<Math.abs(F)?(O=F,P=R/4):F===0&&O===0?P=R/(2*Math.PI)*Math.asin(1):P=R/(2*Math.PI)*Math.asin(F/O),{a:O,c:F,p:R,s:P}}function a(O,F,R){return O.a*Math.pow(2,10*(F-=1))*Math.sin((F*R-O.s)*(2*Math.PI)/O.p)}function c(O,F,R,P){return R*((O=O/P-1)*O*O+1)+F}function p(O,F,R,P){return O/=P/2,O<1?R/2*O*O*O+F:R/2*((O-=2)*O*O+2)+F}function u(O,F,R,P){return R*(O/=P)*O*O*O+F}function f(O,F,R,P){return-R*((O=O/P-1)*O*O*O-1)+F}function s(O,F,R,P){return O/=P/2,O<1?R/2*O*O*O*O+F:-R/2*((O-=2)*O*O*O-2)+F}function d(O,F,R,P){return R*(O/=P)*O*O*O*O+F}function v(O,F,R,P){return R*((O=O/P-1)*O*O*O*O+1)+F}function h(O,F,R,P){return O/=P/2,O<1?R/2*O*O*O*O*O+F:R/2*((O-=2)*O*O*O*O+2)+F}function m(O,F,R,P){return-R*Math.cos(O/P*(Math.PI/2))+R+F}function y(O,F,R,P){return R*Math.sin(O/P*(Math.PI/2))+F}function b(O,F,R,P){return-R/2*(Math.cos(Math.PI*O/P)-1)+F}function _(O,F,R,P){return O===0?F:R*Math.pow(2,10*(O/P-1))+F}function S(O,F,R,P){return O===P?F+R:R*(-Math.pow(2,-10*O/P)+1)+F}function x(O,F,R,P){return O===0?F:O===P?F+R:(O/=P/2,O<1?R/2*Math.pow(2,10*(O-1))+F:R/2*(-Math.pow(2,-10*--O)+2)+F)}function T(O,F,R,P){return-R*(Math.sqrt(1-(O/=P)*O)-1)+F}function E(O,F,R,P){return R*Math.sqrt(1-(O=O/P-1)*O)+F}function k(O,F,R,P){return O/=P/2,O<1?-R/2*(Math.sqrt(1-O*O)-1)+F:R/2*(Math.sqrt(1-(O-=2)*O)+1)+F}function D(O,F,R,P){var G=1.70158,$=0,M=R;if(O===0)return F;if(O/=P,O===1)return F+R;$||($=P*.3);var ne=o(M,R,$,G);return-a(ne,O,P)+F}function W(O,F,R,P){var G=1.70158,$=0,M=R;if(O===0)return F;if(O/=P,O===1)return F+R;$||($=P*.3);var ne=o(M,R,$,G);return ne.a*Math.pow(2,-10*O)*Math.sin((O*P-ne.s)*(2*Math.PI)/ne.p)+ne.c+F}function I(O,F,R,P){var G=1.70158,$=0,M=R;if(O===0)return F;if(O/=P/2,O===2)return F+R;$||($=P*(.3*1.5));var ne=o(M,R,$,G);return O<1?-.5*a(ne,O,P)+F:ne.a*Math.pow(2,-10*(O-=1))*Math.sin((O*P-ne.s)*(2*Math.PI)/ne.p)*.5+ne.c+F}function U(O,F,R,P,G){return G===void 0&&(G=1.70158),R*(O/=P)*O*((G+1)*O-G)+F}function A(O,F,R,P,G){return G===void 0&&(G=1.70158),R*((O=O/P-1)*O*((G+1)*O+G)+1)+F}function ee(O,F,R,P,G){return G===void 0&&(G=1.70158),O/=P/2,O<1?R/2*(O*O*(((G*=1.525)+1)*O-G))+F:R/2*((O-=2)*O*(((G*=1.525)+1)*O+G)+2)+F}function de(O,F,R,P){return R-z(P-O,0,R,P)+F}function z(O,F,R,P){return(O/=P)<1/2.75?R*(7.5625*O*O)+F:O<2/2.75?R*(7.5625*(O-=1.5/2.75)*O+.75)+F:O<2.5/2.75?R*(7.5625*(O-=2.25/2.75)*O+.9375)+F:R*(7.5625*(O-=2.625/2.75)*O+.984375)+F}function q(O,F,R,P){return O<P/2?de(O*2,0,R,P)*.5+F:z(O*2-P,0,R,P)*.5+R*.5+F}t.util.ease={easeInQuad:function(O,F,R,P){return R*(O/=P)*O+F},easeOutQuad:function(O,F,R,P){return-R*(O/=P)*(O-2)+F},easeInOutQuad:function(O,F,R,P){return O/=P/2,O<1?R/2*O*O+F:-R/2*(--O*(O-2)-1)+F},easeInCubic:function(O,F,R,P){return R*(O/=P)*O*O+F},easeOutCubic:c,easeInOutCubic:p,easeInQuart:u,easeOutQuart:f,easeInOutQuart:s,easeInQuint:d,easeOutQuint:v,easeInOutQuint:h,easeInSine:m,easeOutSine:y,easeInOutSine:b,easeInExpo:_,easeOutExpo:S,easeInOutExpo:x,easeInCirc:T,easeOutCirc:E,easeInOutCirc:k,easeInElastic:D,easeOutElastic:W,easeInOutElastic:I,easeInBack:U,easeOutBack:A,easeInOutBack:ee,easeInBounce:de,easeOutBounce:z,easeInOutBounce:q}}(),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,p=a.util.object.clone,u=a.util.toFixed,f=a.util.parseUnit,s=a.util.multiplyTransformMatrices,d=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],v=["symbol","image","marker","pattern","view","svg"],h=["pattern","defs","symbol","metadata","clipPath","mask","desc"],m=["symbol","g","a","svg","clipPath","defs"],y={cx:"left",x:"left",r:"radius",cy:"top",y:"top",display:"visible",visibility:"visible",transform:"transformMatrix","fill-opacity":"fillOpacity","fill-rule":"fillRule","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","letter-spacing":"charSpacing","paint-order":"paintFirst","stroke-dasharray":"strokeDashArray","stroke-dashoffset":"strokeDashOffset","stroke-linecap":"strokeLineCap","stroke-linejoin":"strokeLineJoin","stroke-miterlimit":"strokeMiterLimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-decoration":"textDecoration","text-anchor":"textAnchor",opacity:"opacity","clip-path":"clipPath","clip-rule":"clipRule","vector-effect":"strokeUniform","image-rendering":"imageSmoothing"},b={stroke:"strokeOpacity",fill:"fillOpacity"},_="font-size",S="clip-path";a.svgValidTagNamesRegEx=E(d),a.svgViewBoxElementsRegEx=E(v),a.svgInvalidAncestorsRegEx=E(h),a.svgValidParentsRegEx=E(m),a.cssRules={},a.gradientDefs={},a.clipPaths={};function x($){return $ in y?y[$]:$}function T($,M,ne,X){var te=Array.isArray(M),Q;if(($==="fill"||$==="stroke")&&M==="none")M="";else{if($==="strokeUniform")return M==="non-scaling-stroke";if($==="strokeDashArray")M==="none"?M=null:M=M.replace(/,/g," ").split(/\s+/).map(parseFloat);else if($==="transformMatrix")ne&&ne.transformMatrix?M=s(ne.transformMatrix,a.parseTransformAttribute(M)):M=a.parseTransformAttribute(M);else if($==="visible")M=M!=="none"&&M!=="hidden",ne&&ne.visible===!1&&(M=!1);else if($==="opacity")M=parseFloat(M),ne&&typeof ne.opacity<"u"&&(M*=ne.opacity);else if($==="textAnchor")M=M==="start"?"left":M==="end"?"right":"center";else if($==="charSpacing")Q=f(M,X)/X*1e3;else if($==="paintFirst"){var J=M.indexOf("fill"),oe=M.indexOf("stroke"),M="fill";(J>-1&&oe>-1&&oe<J||J===-1&&oe>-1)&&(M="stroke")}else{if($==="href"||$==="xlink:href"||$==="font")return M;if($==="imageSmoothing")return M==="optimizeQuality";Q=te?M.map(f):f(M,X)}}return!te&&isNaN(Q)?M:Q}function E($){return new RegExp("^("+$.join("|")+")\\b","i")}function k($){for(var M in b)if(!(typeof $[b[M]]>"u"||$[M]==="")){if(typeof $[M]>"u"){if(!a.Object.prototype[M])continue;$[M]=a.Object.prototype[M]}if($[M].indexOf("url(")!==0){var ne=new a.Color($[M]);$[M]=ne.setAlpha(u(ne.getAlpha()*$[b[M]],2)).toRgba()}}return $}function D($,M){var ne,X=[],te,Q,J;for(Q=0,J=M.length;Q<J;Q++)ne=M[Q],te=$.getElementsByTagName(ne),X=X.concat(Array.prototype.slice.call(te));return X}a.parseTransformAttribute=function(){function $(Y,he){var ve=a.util.cos(he[0]),ge=a.util.sin(he[0]),Ee=0,_e=0;he.length===3&&(Ee=he[1],_e=he[2]),Y[0]=ve,Y[1]=ge,Y[2]=-ge,Y[3]=ve,Y[4]=Ee-(ve*Ee-ge*_e),Y[5]=_e-(ge*Ee+ve*_e)}function M(Y,he){var ve=he[0],ge=he.length===2?he[1]:he[0];Y[0]=ve,Y[3]=ge}function ne(Y,he,ve){Y[ve]=Math.tan(a.util.degreesToRadians(he[0]))}function X(Y,he){Y[4]=he[0],he.length===2&&(Y[5]=he[1])}var te=a.iMatrix,Q=a.reNum,J=a.commaWsp,oe="(?:(skewX)\\s*\\(\\s*("+Q+")\\s*\\))",pe="(?:(skewY)\\s*\\(\\s*("+Q+")\\s*\\))",N="(?:(rotate)\\s*\\(\\s*("+Q+")(?:"+J+"("+Q+")"+J+"("+Q+"))?\\s*\\))",C="(?:(scale)\\s*\\(\\s*("+Q+")(?:"+J+"("+Q+"))?\\s*\\))",H="(?:(translate)\\s*\\(\\s*("+Q+")(?:"+J+"("+Q+"))?\\s*\\))",K="(?:(matrix)\\s*\\(\\s*("+Q+")"+J+"("+Q+")"+J+"("+Q+")"+J+"("+Q+")"+J+"("+Q+")"+J+"("+Q+")\\s*\\))",L="(?:"+K+"|"+H+"|"+C+"|"+N+"|"+oe+"|"+pe+")",B="(?:"+L+"(?:"+J+"*"+L+")*)",Z="^\\s*(?:"+B+"?)\\s*$",ce=new RegExp(Z),le=new RegExp(L,"g");return function(Y){var he=te.concat(),ve=[];if(!Y||Y&&!ce.test(Y))return he;Y.replace(le,function(Ee){var _e=new RegExp(L).exec(Ee).filter(function(tt){return!!tt}),Te=_e[1],Oe=_e.slice(2).map(parseFloat);switch(Te){case"translate":X(he,Oe);break;case"rotate":Oe[0]=a.util.degreesToRadians(Oe[0]),$(he,Oe);break;case"scale":M(he,Oe);break;case"skewX":ne(he,Oe,2);break;case"skewY":ne(he,Oe,1);break;case"matrix":he=Oe;break}ve.push(he.concat()),he=te.concat()});for(var ge=ve[0];ve.length>1;)ve.shift(),ge=a.util.multiplyTransformMatrices(ge,ve[0]);return ge}}();function W($,M){var ne,X;$.replace(/;\s*$/,"").split(";").forEach(function(te){var Q=te.split(":");ne=Q[0].trim().toLowerCase(),X=Q[1].trim(),M[ne]=X})}function I($,M){var ne,X;for(var te in $)typeof $[te]>"u"||(ne=te.toLowerCase(),X=$[te],M[ne]=X)}function U($,M){var ne={};for(var X in a.cssRules[M])if(A($,X.split(" ")))for(var te in a.cssRules[M][X])ne[te]=a.cssRules[M][X][te];return ne}function A($,M){var ne,X=!0;return ne=de($,M.pop()),ne&&M.length&&(X=ee($,M)),ne&&X&&M.length===0}function ee($,M){for(var ne,X=!0;$.parentNode&&$.parentNode.nodeType===1&&M.length;)X&&(ne=M.pop()),$=$.parentNode,X=de($,ne);return M.length===0}function de($,M){var ne=$.nodeName,X=$.getAttribute("class"),te=$.getAttribute("id"),Q,J;if(Q=new RegExp("^"+ne,"i"),M=M.replace(Q,""),te&&M.length&&(Q=new RegExp("#"+te+"(?![a-zA-Z\\-]+)","i"),M=M.replace(Q,"")),X&&M.length)for(X=X.split(" "),J=X.length;J--;)Q=new RegExp("\\."+X[J]+"(?![a-zA-Z\\-]+)","i"),M=M.replace(Q,"");return M.length===0}function z($,M){var ne;if($.getElementById&&(ne=$.getElementById(M)),ne)return ne;var X,te,Q,J=$.getElementsByTagName("*");for(te=0,Q=J.length;te<Q;te++)if(X=J[te],M===X.getAttribute("id"))return X}function q($){for(var M=D($,["use","svg:use"]),ne=0;M.length&&ne<M.length;){var X=M[ne],te=X.getAttribute("xlink:href")||X.getAttribute("href");if(te===null)return;var Q=te.slice(1),J=X.getAttribute("x")||0,oe=X.getAttribute("y")||0,pe=z($,Q).cloneNode(!0),N=(pe.getAttribute("transform")||"")+" translate("+J+", "+oe+")",C,H=M.length,K,L,B,Z,ce=a.svgNS;if(F(pe),/^svg$/i.test(pe.nodeName)){var le=pe.ownerDocument.createElementNS(ce,"g");for(L=0,B=pe.attributes,Z=B.length;L<Z;L++)K=B.item(L),le.setAttributeNS(ce,K.nodeName,K.nodeValue);for(;pe.firstChild;)le.appendChild(pe.firstChild);pe=le}for(L=0,B=X.attributes,Z=B.length;L<Z;L++)K=B.item(L),!(K.nodeName==="x"||K.nodeName==="y"||K.nodeName==="xlink:href"||K.nodeName==="href")&&(K.nodeName==="transform"?N=K.nodeValue+" "+N:pe.setAttribute(K.nodeName,K.nodeValue));pe.setAttribute("transform",N),pe.setAttribute("instantiated_by_use","1"),pe.removeAttribute("id"),C=X.parentNode,C.replaceChild(pe,X),M.length===H&&ne++}}var O=new RegExp("^\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*$");function F($){if(!a.svgViewBoxElementsRegEx.test($.nodeName))return{};var M=$.getAttribute("viewBox"),ne=1,X=1,te=0,Q=0,J,oe,pe,N,C=$.getAttribute("width"),H=$.getAttribute("height"),K=$.getAttribute("x")||0,L=$.getAttribute("y")||0,B=$.getAttribute("preserveAspectRatio")||"",Z=!M||!(M=M.match(O)),ce=!C||!H||C==="100%"||H==="100%",le=Z&&ce,Y={},he="",ve=0,ge=0;if(Y.width=0,Y.height=0,Y.toBeParsed=le,Z&&(K||L)&&$.parentNode&&$.parentNode.nodeName!=="#document"&&(he=" translate("+f(K)+" "+f(L)+") ",pe=($.getAttribute("transform")||"")+he,$.setAttribute("transform",pe),$.removeAttribute("x"),$.removeAttribute("y")),le)return Y;if(Z)return Y.width=f(C),Y.height=f(H),Y;if(te=-parseFloat(M[1]),Q=-parseFloat(M[2]),J=parseFloat(M[3]),oe=parseFloat(M[4]),Y.minX=te,Y.minY=Q,Y.viewBoxWidth=J,Y.viewBoxHeight=oe,ce?(Y.width=J,Y.height=oe):(Y.width=f(C),Y.height=f(H),ne=Y.width/J,X=Y.height/oe),B=a.util.parsePreserveAspectRatioAttribute(B),B.alignX!=="none"&&(B.meetOrSlice==="meet"&&(X=ne=ne>X?X:ne),B.meetOrSlice==="slice"&&(X=ne=ne>X?ne:X),ve=Y.width-J*ne,ge=Y.height-oe*ne,B.alignX==="Mid"&&(ve/=2),B.alignY==="Mid"&&(ge/=2),B.alignX==="Min"&&(ve=0),B.alignY==="Min"&&(ge=0)),ne===1&&X===1&&te===0&&Q===0&&K===0&&L===0)return Y;if((K||L)&&$.parentNode.nodeName!=="#document"&&(he=" translate("+f(K)+" "+f(L)+") "),pe=he+" matrix("+ne+" 0 0 "+X+" "+(te*ne+ve)+" "+(Q*X+ge)+") ",$.nodeName==="svg"){for(N=$.ownerDocument.createElementNS(a.svgNS,"g");$.firstChild;)N.appendChild($.firstChild);$.appendChild(N)}else N=$,N.removeAttribute("x"),N.removeAttribute("y"),pe=N.getAttribute("transform")+pe;return N.setAttribute("transform",pe),Y}function R($,M){for(;$&&($=$.parentNode);)if($.nodeName&&M.test($.nodeName.replace("svg:",""))&&!$.getAttribute("instantiated_by_use"))return!0;return!1}a.parseSVGDocument=function($,M,ne,X){if(!!$){q($);var te=a.Object.__uid++,Q,J,oe=F($),pe=a.util.toArray($.getElementsByTagName("*"));if(oe.crossOrigin=X&&X.crossOrigin,oe.svgUid=te,pe.length===0&&a.isLikelyNode){pe=$.selectNodes('//*[name(.)!="svg"]');var N=[];for(Q=0,J=pe.length;Q<J;Q++)N[Q]=pe[Q];pe=N}var C=pe.filter(function(K){return F(K),a.svgValidTagNamesRegEx.test(K.nodeName.replace("svg:",""))&&!R(K,a.svgInvalidAncestorsRegEx)});if(!C||C&&!C.length){M&&M([],{});return}var H={};pe.filter(function(K){return K.nodeName.replace("svg:","")==="clipPath"}).forEach(function(K){var L=K.getAttribute("id");H[L]=a.util.toArray(K.getElementsByTagName("*")).filter(function(B){return a.svgValidTagNamesRegEx.test(B.nodeName.replace("svg:",""))})}),a.gradientDefs[te]=a.getGradientDefs($),a.cssRules[te]=a.getCSSRules($),a.clipPaths[te]=H,a.parseElements(C,function(K,L){M&&(M(K,oe,L,pe),delete a.gradientDefs[te],delete a.cssRules[te],delete a.clipPaths[te])},p(oe),ne,X)}};function P($,M){var ne=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],X="xlink:href",te=M.getAttribute(X).slice(1),Q=z($,te);if(Q&&Q.getAttribute(X)&&P($,Q),ne.forEach(function(oe){Q&&!M.hasAttribute(oe)&&Q.hasAttribute(oe)&&M.setAttribute(oe,Q.getAttribute(oe))}),!M.children.length)for(var J=Q.cloneNode(!0);J.firstChild;)M.appendChild(J.firstChild);M.removeAttribute(X)}var G=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+a.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+a.reNum+"))?\\s+(.*)");c(a,{parseFontDeclaration:function($,M){var ne=$.match(G);if(!!ne){var X=ne[1],te=ne[3],Q=ne[4],J=ne[5],oe=ne[6];X&&(M.fontStyle=X),te&&(M.fontWeight=isNaN(parseFloat(te))?te:parseFloat(te)),Q&&(M.fontSize=f(Q)),oe&&(M.fontFamily=oe),J&&(M.lineHeight=J==="normal"?1:J)}},getGradientDefs:function($){var M=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],ne=D($,M),X,te=0,Q={};for(te=ne.length;te--;)X=ne[te],X.getAttribute("xlink:href")&&P($,X),Q[X.getAttribute("id")]=X;return Q},parseAttributes:function($,M,ne){if(!!$){var X,te={},Q,J;typeof ne>"u"&&(ne=$.getAttribute("svgUid")),$.parentNode&&a.svgValidParentsRegEx.test($.parentNode.nodeName)&&(te=a.parseAttributes($.parentNode,M,ne));var oe=M.reduce(function(B,Z){return X=$.getAttribute(Z),X&&(B[Z]=X),B},{}),pe=c(U($,ne),a.parseStyleAttribute($));oe=c(oe,pe),pe[S]&&$.setAttribute(S,pe[S]),Q=J=te.fontSize||a.Text.DEFAULT_SVG_FONT_SIZE,oe[_]&&(oe[_]=Q=f(oe[_],J));var N,C,H={};for(var K in oe)N=x(K),C=T(N,oe[K],te,Q),H[N]=C;H&&H.font&&a.parseFontDeclaration(H.font,H);var L=c(te,H);return a.svgValidParentsRegEx.test($.nodeName)?L:k(L)}},parseElements:function($,M,ne,X,te){new a.ElementsParser($,M,ne,X,te).parse()},parseStyleAttribute:function($){var M={},ne=$.getAttribute("style");return ne&&(typeof ne=="string"?W(ne,M):I(ne,M)),M},parsePointsAttribute:function($){if(!$)return null;$=$.replace(/,/g," ").trim(),$=$.split(/\s+/);var M=[],ne,X;for(ne=0,X=$.length;ne<X;ne+=2)M.push({x:parseFloat($[ne]),y:parseFloat($[ne+1])});return M},getCSSRules:function($){var M=$.getElementsByTagName("style"),ne,X,te={},Q;for(ne=0,X=M.length;ne<X;ne++){var J=M[ne].textContent;J=J.replace(/\/\*[\s\S]*?\*\//g,""),J.trim()!==""&&(Q=J.split("}"),Q=Q.filter(function(oe){return oe.trim()}),Q.forEach(function(oe){var pe=oe.split("{"),N={},C=pe[1].trim(),H=C.split(";").filter(function(Z){return Z.trim()});for(ne=0,X=H.length;ne<X;ne++){var K=H[ne].split(":"),L=K[0].trim(),B=K[1].trim();N[L]=B}oe=pe[0].trim(),oe.split(",").forEach(function(Z){Z=Z.replace(/^svg/i,"").trim(),Z!==""&&(te[Z]?a.util.object.extend(te[Z],N):te[Z]=a.util.object.clone(N))})}))}return te},loadSVGFromURL:function($,M,ne,X){$=$.replace(/^\n\s*/,"").trim(),new a.util.request($,{method:"get",onComplete:te});function te(Q){var J=Q.responseXML;if(!J||!J.documentElement)return M&&M(null),!1;a.parseSVGDocument(J.documentElement,function(oe,pe,N,C){M&&M(oe,pe,N,C)},ne,X)}},loadSVGFromString:function($,M,ne,X){var te=new a.window.DOMParser,Q=te.parseFromString($.trim(),"text/xml");a.parseSVGDocument(Q.documentElement,function(J,oe,pe,N){M(J,oe,pe,N)},ne,X)}})}(e),t.ElementsParser=function(o,a,c,p,u,f){this.elements=o,this.callback=a,this.options=c,this.reviver=p,this.svgUid=c&&c.svgUid||0,this.parsingOptions=u,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=f},function(o){o.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},o.createObjects=function(){var a=this;this.elements.forEach(function(c,p){c.setAttribute("svgUid",a.svgUid),a.createObject(c,p)})},o.findTag=function(a){return t[t.util.string.capitalize(a.tagName.replace("svg:",""))]},o.createObject=function(a,c){var p=this.findTag(a);if(p&&p.fromElement)try{p.fromElement(a,this.createCallback(c,a),this.options)}catch(u){t.log(u)}else this.checkIfDone()},o.createCallback=function(a,c){var p=this;return function(u){var f;p.resolveGradient(u,c,"fill"),p.resolveGradient(u,c,"stroke"),u instanceof t.Image&&u._originalElement&&(f=u.parsePreserveAspectRatioAttribute(c)),u._removeTransformMatrix(f),p.resolveClipPath(u,c),p.reviver&&p.reviver(c,u),p.instances[a]=u,p.checkIfDone()}},o.extractPropertyDefinition=function(a,c,p){var u=a[c],f=this.regexUrl;if(!!f.test(u)){f.lastIndex=0;var s=f.exec(u)[1];return f.lastIndex=0,t[p][this.svgUid][s]}},o.resolveGradient=function(a,c,p){var u=this.extractPropertyDefinition(a,p,"gradientDefs");if(u){var f=c.getAttribute(p+"-opacity"),s=t.Gradient.fromElement(u,a,f,this.options);a.set(p,s)}},o.createClipPathCallback=function(a,c){return function(p){p._removeTransformMatrix(),p.fillRule=p.clipRule,c.push(p)}},o.resolveClipPath=function(a,c){var p=this.extractPropertyDefinition(a,"clipPath","clipPaths"),u,f,s,d,v,h;if(p){d=[],s=t.util.invertTransform(a.calcTransformMatrix());for(var m=p[0].parentNode,y=c;y.parentNode&&y.getAttribute("clip-path")!==a.clipPath;)y=y.parentNode;y.parentNode.appendChild(m);for(var b=0;b<p.length;b++)u=p[b],f=this.findTag(u),f.fromElement(u,this.createClipPathCallback(a,d),this.options);d.length===1?p=d[0]:p=new t.Group(d),v=t.util.multiplyTransformMatrices(s,p.calcTransformMatrix()),p.clipPath&&this.resolveClipPath(p,y);var h=t.util.qrDecompose(v);p.flipX=!1,p.flipY=!1,p.set("scaleX",h.scaleX),p.set("scaleY",h.scaleY),p.angle=h.angle,p.skewX=h.skewX,p.skewY=0,p.setPositionByOrigin({x:h.translateX,y:h.translateY},"center","center"),a.clipPath=p}else delete a.clipPath},o.checkIfDone=function(){--this.numElements===0&&(this.instances=this.instances.filter(function(a){return a!=null}),this.callback(this.instances,this.elements))}}(t.ElementsParser.prototype),function(o){var a=o.fabric||(o.fabric={});if(a.Point){a.warn("fabric.Point is already defined");return}a.Point=c;function c(p,u){this.x=p,this.y=u}c.prototype={type:"point",constructor:c,add:function(p){return new c(this.x+p.x,this.y+p.y)},addEquals:function(p){return this.x+=p.x,this.y+=p.y,this},scalarAdd:function(p){return new c(this.x+p,this.y+p)},scalarAddEquals:function(p){return this.x+=p,this.y+=p,this},subtract:function(p){return new c(this.x-p.x,this.y-p.y)},subtractEquals:function(p){return this.x-=p.x,this.y-=p.y,this},scalarSubtract:function(p){return new c(this.x-p,this.y-p)},scalarSubtractEquals:function(p){return this.x-=p,this.y-=p,this},multiply:function(p){return new c(this.x*p,this.y*p)},multiplyEquals:function(p){return this.x*=p,this.y*=p,this},divide:function(p){return new c(this.x/p,this.y/p)},divideEquals:function(p){return this.x/=p,this.y/=p,this},eq:function(p){return this.x===p.x&&this.y===p.y},lt:function(p){return this.x<p.x&&this.y<p.y},lte:function(p){return this.x<=p.x&&this.y<=p.y},gt:function(p){return this.x>p.x&&this.y>p.y},gte:function(p){return this.x>=p.x&&this.y>=p.y},lerp:function(p,u){return typeof u>"u"&&(u=.5),u=Math.max(Math.min(1,u),0),new c(this.x+(p.x-this.x)*u,this.y+(p.y-this.y)*u)},distanceFrom:function(p){var u=this.x-p.x,f=this.y-p.y;return Math.sqrt(u*u+f*f)},midPointFrom:function(p){return this.lerp(p)},min:function(p){return new c(Math.min(this.x,p.x),Math.min(this.y,p.y))},max:function(p){return new c(Math.max(this.x,p.x),Math.max(this.y,p.y))},toString:function(){return this.x+","+this.y},setXY:function(p,u){return this.x=p,this.y=u,this},setX:function(p){return this.x=p,this},setY:function(p){return this.y=p,this},setFromPoint:function(p){return this.x=p.x,this.y=p.y,this},swap:function(p){var u=this.x,f=this.y;this.x=p.x,this.y=p.y,p.x=u,p.y=f},clone:function(){return new c(this.x,this.y)}}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Intersection){a.warn("fabric.Intersection is already defined");return}function c(p){this.status=p,this.points=[]}a.Intersection=c,a.Intersection.prototype={constructor:c,appendPoint:function(p){return this.points.push(p),this},appendPoints:function(p){return this.points=this.points.concat(p),this}},a.Intersection.intersectLineLine=function(p,u,f,s){var d,v=(s.x-f.x)*(p.y-f.y)-(s.y-f.y)*(p.x-f.x),h=(u.x-p.x)*(p.y-f.y)-(u.y-p.y)*(p.x-f.x),m=(s.y-f.y)*(u.x-p.x)-(s.x-f.x)*(u.y-p.y);if(m!==0){var y=v/m,b=h/m;0<=y&&y<=1&&0<=b&&b<=1?(d=new c("Intersection"),d.appendPoint(new a.Point(p.x+y*(u.x-p.x),p.y+y*(u.y-p.y)))):d=new c}else v===0||h===0?d=new c("Coincident"):d=new c("Parallel");return d},a.Intersection.intersectLinePolygon=function(p,u,f){var s=new c,d=f.length,v,h,m,y;for(y=0;y<d;y++)v=f[y],h=f[(y+1)%d],m=c.intersectLineLine(p,u,v,h),s.appendPoints(m.points);return s.points.length>0&&(s.status="Intersection"),s},a.Intersection.intersectPolygonPolygon=function(p,u){var f=new c,s=p.length,d;for(d=0;d<s;d++){var v=p[d],h=p[(d+1)%s],m=c.intersectLinePolygon(v,h,u);f.appendPoints(m.points)}return f.points.length>0&&(f.status="Intersection"),f},a.Intersection.intersectPolygonRectangle=function(p,u,f){var s=u.min(f),d=u.max(f),v=new a.Point(d.x,s.y),h=new a.Point(s.x,d.y),m=c.intersectLinePolygon(s,v,p),y=c.intersectLinePolygon(v,d,p),b=c.intersectLinePolygon(d,h,p),_=c.intersectLinePolygon(h,s,p),S=new c;return S.appendPoints(m.points),S.appendPoints(y.points),S.appendPoints(b.points),S.appendPoints(_.points),S.points.length>0&&(S.status="Intersection"),S}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Color){a.warn("fabric.Color is already defined.");return}function c(u){u?this._tryParsingColor(u):this.setSource([0,0,0,1])}a.Color=c,a.Color.prototype={_tryParsingColor:function(u){var f;u in c.colorNameMap&&(u=c.colorNameMap[u]),u==="transparent"&&(f=[255,255,255,0]),f||(f=c.sourceFromHex(u)),f||(f=c.sourceFromRgb(u)),f||(f=c.sourceFromHsl(u)),f||(f=[0,0,0,1]),f&&this.setSource(f)},_rgbToHsl:function(u,f,s){u/=255,f/=255,s/=255;var d,v,h,m=a.util.array.max([u,f,s]),y=a.util.array.min([u,f,s]);if(h=(m+y)/2,m===y)d=v=0;else{var b=m-y;switch(v=h>.5?b/(2-m-y):b/(m+y),m){case u:d=(f-s)/b+(f<s?6:0);break;case f:d=(s-u)/b+2;break;case s:d=(u-f)/b+4;break}d/=6}return[Math.round(d*360),Math.round(v*100),Math.round(h*100)]},getSource:function(){return this._source},setSource:function(u){this._source=u},toRgb:function(){var u=this.getSource();return"rgb("+u[0]+","+u[1]+","+u[2]+")"},toRgba:function(){var u=this.getSource();return"rgba("+u[0]+","+u[1]+","+u[2]+","+u[3]+")"},toHsl:function(){var u=this.getSource(),f=this._rgbToHsl(u[0],u[1],u[2]);return"hsl("+f[0]+","+f[1]+"%,"+f[2]+"%)"},toHsla:function(){var u=this.getSource(),f=this._rgbToHsl(u[0],u[1],u[2]);return"hsla("+f[0]+","+f[1]+"%,"+f[2]+"%,"+u[3]+")"},toHex:function(){var u=this.getSource(),f,s,d;return f=u[0].toString(16),f=f.length===1?"0"+f:f,s=u[1].toString(16),s=s.length===1?"0"+s:s,d=u[2].toString(16),d=d.length===1?"0"+d:d,f.toUpperCase()+s.toUpperCase()+d.toUpperCase()},toHexa:function(){var u=this.getSource(),f;return f=Math.round(u[3]*255),f=f.toString(16),f=f.length===1?"0"+f:f,this.toHex()+f.toUpperCase()},getAlpha:function(){return this.getSource()[3]},setAlpha:function(u){var f=this.getSource();return f[3]=u,this.setSource(f),this},toGrayscale:function(){var u=this.getSource(),f=parseInt((u[0]*.3+u[1]*.59+u[2]*.11).toFixed(0),10),s=u[3];return this.setSource([f,f,f,s]),this},toBlackWhite:function(u){var f=this.getSource(),s=(f[0]*.3+f[1]*.59+f[2]*.11).toFixed(0),d=f[3];return u=u||127,s=Number(s)<Number(u)?0:255,this.setSource([s,s,s,d]),this},overlayWith:function(u){u instanceof c||(u=new c(u));var f=[],s=this.getAlpha(),d=.5,v=this.getSource(),h=u.getSource(),m;for(m=0;m<3;m++)f.push(Math.round(v[m]*(1-d)+h[m]*d));return f[3]=s,this.setSource(f),this}},a.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,a.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,a.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,a.Color.colorNameMap={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",darkgrey:"#A9A9A9",darkgreen:"#006400",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",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",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 p(u,f,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?u+(f-u)*6*s:s<1/2?f:s<2/3?u+(f-u)*(2/3-s)*6:u}a.Color.fromRgb=function(u){return c.fromSource(c.sourceFromRgb(u))},a.Color.sourceFromRgb=function(u){var f=u.match(c.reRGBa);if(f){var s=parseInt(f[1],10)/(/%$/.test(f[1])?100:1)*(/%$/.test(f[1])?255:1),d=parseInt(f[2],10)/(/%$/.test(f[2])?100:1)*(/%$/.test(f[2])?255:1),v=parseInt(f[3],10)/(/%$/.test(f[3])?100:1)*(/%$/.test(f[3])?255:1);return[parseInt(s,10),parseInt(d,10),parseInt(v,10),f[4]?parseFloat(f[4]):1]}},a.Color.fromRgba=c.fromRgb,a.Color.fromHsl=function(u){return c.fromSource(c.sourceFromHsl(u))},a.Color.sourceFromHsl=function(u){var f=u.match(c.reHSLa);if(!!f){var s=(parseFloat(f[1])%360+360)%360/360,d=parseFloat(f[2])/(/%$/.test(f[2])?100:1),v=parseFloat(f[3])/(/%$/.test(f[3])?100:1),h,m,y;if(d===0)h=m=y=v;else{var b=v<=.5?v*(d+1):v+d-v*d,_=v*2-b;h=p(_,b,s+1/3),m=p(_,b,s),y=p(_,b,s-1/3)}return[Math.round(h*255),Math.round(m*255),Math.round(y*255),f[4]?parseFloat(f[4]):1]}},a.Color.fromHsla=c.fromHsl,a.Color.fromHex=function(u){return c.fromSource(c.sourceFromHex(u))},a.Color.sourceFromHex=function(u){if(u.match(c.reHex)){var f=u.slice(u.indexOf("#")+1),s=f.length===3||f.length===4,d=f.length===8||f.length===4,v=s?f.charAt(0)+f.charAt(0):f.substring(0,2),h=s?f.charAt(1)+f.charAt(1):f.substring(2,4),m=s?f.charAt(2)+f.charAt(2):f.substring(4,6),y=d?s?f.charAt(3)+f.charAt(3):f.substring(6,8):"FF";return[parseInt(v,16),parseInt(h,16),parseInt(m,16),parseFloat((parseInt(y,16)/255).toFixed(2))]}},a.Color.fromSource=function(u){var f=new c;return f.setSource(u),f}}(e),function(o){var a=o.fabric||(o.fabric={}),c=["e","se","s","sw","w","nw","n","ne","e"],p=["ns","nesw","ew","nwse"],u={},f="left",s="top",d="right",v="bottom",h="center",m={top:v,bottom:s,left:d,right:f,center:h},y=a.util.radiansToDegrees,b=Math.sign||function(N){return(N>0)-(N<0)||+N};function _(N,C){var H=N.angle+y(Math.atan2(C.y,C.x))+360;return Math.round(H%360/45)}function S(N,C){var H=C.transform.target,K=H.canvas,L=a.util.object.clone(C);L.target=H,K&&K.fire("object:"+N,L),H.fire(N,C)}function x(N,C){var H=C.canvas,K=H.uniScaleKey,L=N[K];return H.uniformScaling&&!L||!H.uniformScaling&&L}function T(N){return N.originX===h&&N.originY===h}function E(N,C,H){var K=N.lockScalingX,L=N.lockScalingY;return!!(K&&L||!C&&(K||L)&&H||K&&C==="x"||L&&C==="y")}function k(N,C,H){var K="not-allowed",L=x(N,H),B="";if(C.x!==0&&C.y===0?B="x":C.x===0&&C.y!==0&&(B="y"),E(H,B,L))return K;var Z=_(H,C);return c[Z]+"-resize"}function D(N,C,H){var K="not-allowed";if(C.x!==0&&H.lockSkewingY||C.y!==0&&H.lockSkewingX)return K;var L=_(H,C)%4;return p[L]+"-resize"}function W(N,C,H){return N[H.canvas.altActionKey]?u.skewCursorStyleHandler(N,C,H):u.scaleCursorStyleHandler(N,C,H)}function I(N,C,H){var K=N[H.canvas.altActionKey];if(C.x===0)return K?"skewX":"scaleY";if(C.y===0)return K?"skewY":"scaleX"}function U(N,C,H){return H.lockRotation?"not-allowed":C.cursorStyle}function A(N,C,H,K){return{e:N,transform:C,pointer:{x:H,y:K}}}function ee(N){return function(C,H,K,L){var B=H.target,Z=B.getCenterPoint(),ce=B.translateToOriginPoint(Z,H.originX,H.originY),le=N(C,H,K,L);return B.setPositionByOrigin(ce,H.originX,H.originY),le}}function de(N,C){return function(H,K,L,B){var Z=C(H,K,L,B);return Z&&S(N,A(H,K,L,B)),Z}}function z(N,C,H,K,L){var B=N.target,Z=B.controls[N.corner],ce=B.canvas.getZoom(),le=B.padding/ce,Y=B.toLocalPoint(new a.Point(K,L),C,H);return Y.x>=le&&(Y.x-=le),Y.x<=-le&&(Y.x+=le),Y.y>=le&&(Y.y-=le),Y.y<=le&&(Y.y+=le),Y.x-=Z.offsetX,Y.y-=Z.offsetY,Y}function q(N){return N.flipX!==N.flipY}function O(N,C,H,K,L){if(N[C]!==0){var B=N._getTransformedDimensions()[K],Z=L/B*N[H];N.set(H,Z)}}function F(N,C,H,K){var L=C.target,B=L._getTransformedDimensions(0,L.skewY),Z=z(C,C.originX,C.originY,H,K),ce=Math.abs(Z.x*2)-B.x,le=L.skewX,Y;ce<2?Y=0:(Y=y(Math.atan2(ce/L.scaleX,B.y/L.scaleY)),C.originX===f&&C.originY===v&&(Y=-Y),C.originX===d&&C.originY===s&&(Y=-Y),q(L)&&(Y=-Y));var he=le!==Y;if(he){var ve=L._getTransformedDimensions().y;L.set("skewX",Y),O(L,"skewY","scaleY","y",ve)}return he}function R(N,C,H,K){var L=C.target,B=L._getTransformedDimensions(L.skewX,0),Z=z(C,C.originX,C.originY,H,K),ce=Math.abs(Z.y*2)-B.y,le=L.skewY,Y;ce<2?Y=0:(Y=y(Math.atan2(ce/L.scaleY,B.x/L.scaleX)),C.originX===f&&C.originY===v&&(Y=-Y),C.originX===d&&C.originY===s&&(Y=-Y),q(L)&&(Y=-Y));var he=le!==Y;if(he){var ve=L._getTransformedDimensions().x;L.set("skewY",Y),O(L,"skewX","scaleX","x",ve)}return he}function P(N,C,H,K){var L=C.target,B=L.skewX,Z,ce=C.originY;if(L.lockSkewingX)return!1;if(B===0){var le=z(C,h,h,H,K);le.x>0?Z=f:Z=d}else B>0&&(Z=ce===s?f:d),B<0&&(Z=ce===s?d:f),q(L)&&(Z=Z===f?d:f);C.originX=Z;var Y=de("skewing",ee(F));return Y(N,C,H,K)}function G(N,C,H,K){var L=C.target,B=L.skewY,Z,ce=C.originX;if(L.lockSkewingY)return!1;if(B===0){var le=z(C,h,h,H,K);le.y>0?Z=s:Z=v}else B>0&&(Z=ce===f?s:v),B<0&&(Z=ce===f?v:s),q(L)&&(Z=Z===s?v:s);C.originY=Z;var Y=de("skewing",ee(R));return Y(N,C,H,K)}function $(N,C,H,K){var L=C,B=L.target,Z=B.translateToOriginPoint(B.getCenterPoint(),L.originX,L.originY);if(B.lockRotation)return!1;var ce=Math.atan2(L.ey-Z.y,L.ex-Z.x),le=Math.atan2(K-Z.y,H-Z.x),Y=y(le-ce+L.theta),he=!0;if(B.snapAngle>0){var ve=B.snapAngle,ge=B.snapThreshold||ve,Ee=Math.ceil(Y/ve)*ve,_e=Math.floor(Y/ve)*ve;Math.abs(Y-_e)<ge?Y=_e:Math.abs(Y-Ee)<ge&&(Y=Ee)}return Y<0&&(Y=360+Y),Y%=360,he=B.angle!==Y,B.angle=Y,he}function M(N,C,H,K,L){L=L||{};var B=C.target,Z=B.lockScalingX,ce=B.lockScalingY,le=L.by,Y,he,ve,ge,Ee=x(N,B),_e=E(B,le,Ee),Te,Oe,tt=C.gestureScale;if(_e)return!1;if(tt)he=C.scaleX*tt,ve=C.scaleY*tt;else{if(Y=z(C,C.originX,C.originY,H,K),Te=le!=="y"?b(Y.x):1,Oe=le!=="x"?b(Y.y):1,C.signX||(C.signX=Te),C.signY||(C.signY=Oe),B.lockScalingFlip&&(C.signX!==Te||C.signY!==Oe))return!1;if(ge=B._getTransformedDimensions(),Ee&&!le){var Ce=Math.abs(Y.x)+Math.abs(Y.y),Me=C.original,Le=Math.abs(ge.x*Me.scaleX/B.scaleX)+Math.abs(ge.y*Me.scaleY/B.scaleY),Ge=Ce/Le;he=Me.scaleX*Ge,ve=Me.scaleY*Ge}else he=Math.abs(Y.x*B.scaleX/ge.x),ve=Math.abs(Y.y*B.scaleY/ge.y);T(C)&&(he*=2,ve*=2),C.signX!==Te&&le!=="y"&&(C.originX=m[C.originX],he*=-1,C.signX=Te),C.signY!==Oe&&le!=="x"&&(C.originY=m[C.originY],ve*=-1,C.signY=Oe)}var ct=B.scaleX,ze=B.scaleY;return le?(le==="x"&&B.set("scaleX",he),le==="y"&&B.set("scaleY",ve)):(!Z&&B.set("scaleX",he),!ce&&B.set("scaleY",ve)),ct!==B.scaleX||ze!==B.scaleY}function ne(N,C,H,K){return M(N,C,H,K)}function X(N,C,H,K){return M(N,C,H,K,{by:"x"})}function te(N,C,H,K){return M(N,C,H,K,{by:"y"})}function Q(N,C,H,K){return N[C.target.canvas.altActionKey]?u.skewHandlerX(N,C,H,K):u.scalingY(N,C,H,K)}function J(N,C,H,K){return N[C.target.canvas.altActionKey]?u.skewHandlerY(N,C,H,K):u.scalingX(N,C,H,K)}function oe(N,C,H,K){var L=C.target,B=z(C,C.originX,C.originY,H,K),Z=L.strokeWidth/(L.strokeUniform?L.scaleX:1),ce=T(C)?2:1,le=L.width,Y=Math.abs(B.x*ce/L.scaleX)-Z;return L.set("width",Math.max(Y,0)),le!==Y}function pe(N,C,H,K){var L=C.target,B=H-C.offsetX,Z=K-C.offsetY,ce=!L.get("lockMovementX")&&L.left!==B,le=!L.get("lockMovementY")&&L.top!==Z;return ce&&L.set("left",B),le&&L.set("top",Z),(ce||le)&&S("moving",A(N,C,H,K)),ce||le}u.scaleCursorStyleHandler=k,u.skewCursorStyleHandler=D,u.scaleSkewCursorStyleHandler=W,u.rotationWithSnapping=de("rotating",ee($)),u.scalingEqually=de("scaling",ee(ne)),u.scalingX=de("scaling",ee(X)),u.scalingY=de("scaling",ee(te)),u.scalingYOrSkewingX=Q,u.scalingXOrSkewingY=J,u.changeWidth=de("resizing",ee(oe)),u.skewHandlerX=P,u.skewHandlerY=G,u.dragHandler=pe,u.scaleOrSkewActionName=I,u.rotationStyleHandler=U,u.fireEvent=S,u.wrapWithFixedAnchor=ee,u.wrapWithFireEvent=de,u.getLocalPoint=z,a.controlsUtils=u}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.degreesToRadians,p=a.controlsUtils;function u(s,d,v,h,m){h=h||{};var y=this.sizeX||h.cornerSize||m.cornerSize,b=this.sizeY||h.cornerSize||m.cornerSize,_=typeof h.transparentCorners<"u"?h.transparentCorners:m.transparentCorners,S=_?"stroke":"fill",x=!_&&(h.cornerStrokeColor||m.cornerStrokeColor),T=d,E=v,k;s.save(),s.fillStyle=h.cornerColor||m.cornerColor,s.strokeStyle=h.cornerStrokeColor||m.cornerStrokeColor,y>b?(k=y,s.scale(1,b/y),E=v*y/b):b>y?(k=b,s.scale(y/b,1),T=d*b/y):k=y,s.lineWidth=1,s.beginPath(),s.arc(T,E,k/2,0,2*Math.PI,!1),s[S](),x&&s.stroke(),s.restore()}function f(s,d,v,h,m){h=h||{};var y=this.sizeX||h.cornerSize||m.cornerSize,b=this.sizeY||h.cornerSize||m.cornerSize,_=typeof h.transparentCorners<"u"?h.transparentCorners:m.transparentCorners,S=_?"stroke":"fill",x=!_&&(h.cornerStrokeColor||m.cornerStrokeColor),T=y/2,E=b/2;s.save(),s.fillStyle=h.cornerColor||m.cornerColor,s.strokeStyle=h.cornerStrokeColor||m.cornerStrokeColor,s.lineWidth=1,s.translate(d,v),s.rotate(c(m.angle)),s[S+"Rect"](-T,-E,y,b),x&&s.strokeRect(-T,-E,y,b),s.restore()}p.renderCircleControl=u,p.renderSquareControl=f}(e),function(o){var a=o.fabric||(o.fabric={});function c(p){for(var u in p)this[u]=p[u]}a.Control=c,a.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(p,u){return u.cursorStyle},getActionName:function(p,u){return u.actionName},getVisibility:function(p,u){var f=p._controlsVisibility;return f&&typeof f[u]<"u"?f[u]:this.visible},setVisibility:function(p){this.visible=p},positionHandler:function(p,u){var f=a.util.transformPoint({x:this.x*p.x+this.offsetX,y:this.y*p.y+this.offsetY},u);return f},calcCornerCoords:function(p,u,f,s,d){var v,h,m,y,b=d?this.touchSizeX:this.sizeX,_=d?this.touchSizeY:this.sizeY;if(b&&_&&b!==_){var S=Math.atan2(_,b),x=Math.sqrt(b*b+_*_)/2,T=S-a.util.degreesToRadians(p),E=Math.PI/2-S-a.util.degreesToRadians(p);v=x*a.util.cos(T),h=x*a.util.sin(T),m=x*a.util.cos(E),y=x*a.util.sin(E)}else{var k=b&&_?b:u;x=k*.7071067812;var T=a.util.degreesToRadians(45-p);v=m=x*a.util.cos(T),h=y=x*a.util.sin(T)}return{tl:{x:f-y,y:s-m},tr:{x:f+v,y:s-h},bl:{x:f-v,y:s+h},br:{x:f+y,y:s+m}}},render:function(p,u,f,s,d){switch(s=s||{},s.cornerStyle||d.cornerStyle){case"circle":a.controlsUtils.renderCircleControl.call(this,p,u,f,s,d);break;default:a.controlsUtils.renderSquareControl.call(this,p,u,f,s,d)}}}}(e),function(){function o(f,s){var d=f.getAttribute("style"),v=f.getAttribute("offset")||0,h,m,y,b;if(v=parseFloat(v)/(/%$/.test(v)?100:1),v=v<0?0:v>1?1:v,d){var _=d.split(/\s*;\s*/);for(_[_.length-1]===""&&_.pop(),b=_.length;b--;){var S=_[b].split(/\s*:\s*/),x=S[0].trim(),T=S[1].trim();x==="stop-color"?h=T:x==="stop-opacity"&&(y=T)}}return h||(h=f.getAttribute("stop-color")||"rgb(0,0,0)"),y||(y=f.getAttribute("stop-opacity")),h=new t.Color(h),m=h.getAlpha(),y=isNaN(parseFloat(y))?1:parseFloat(y),y*=m*s,{offset:v,color:h.toRgb(),opacity:y}}function a(f){return{x1:f.getAttribute("x1")||0,y1:f.getAttribute("y1")||0,x2:f.getAttribute("x2")||"100%",y2:f.getAttribute("y2")||0}}function c(f){return{x1:f.getAttribute("fx")||f.getAttribute("cx")||"50%",y1:f.getAttribute("fy")||f.getAttribute("cy")||"50%",r1:0,x2:f.getAttribute("cx")||"50%",y2:f.getAttribute("cy")||"50%",r2:f.getAttribute("r")||"50%"}}var p=t.util.object.clone;t.Gradient=t.util.createClass({offsetX:0,offsetY:0,gradientTransform:null,gradientUnits:"pixels",type:"linear",initialize:function(f){f||(f={}),f.coords||(f.coords={});var s,d=this;Object.keys(f).forEach(function(v){d[v]=f[v]}),this.id?this.id+="_"+t.Object.__uid++:this.id=t.Object.__uid++,s={x1:f.coords.x1||0,y1:f.coords.y1||0,x2:f.coords.x2||0,y2:f.coords.y2||0},this.type==="radial"&&(s.r1=f.coords.r1||0,s.r2=f.coords.r2||0),this.coords=s,this.colorStops=f.colorStops.slice()},addColorStop:function(f){for(var s in f){var d=new t.Color(f[s]);this.colorStops.push({offset:parseFloat(s),color:d.toRgb(),opacity:d.getAlpha()})}return this},toObject:function(f){var s={type:this.type,coords:this.coords,colorStops:this.colorStops,offsetX:this.offsetX,offsetY:this.offsetY,gradientUnits:this.gradientUnits,gradientTransform:this.gradientTransform?this.gradientTransform.concat():this.gradientTransform};return t.util.populateWithProperties(this,s,f),s},toSVG:function(f,m){var d=p(this.coords,!0),v,h,m=m||{},y,b,_=p(this.colorStops,!0),S=d.r1>d.r2,x=this.gradientTransform?this.gradientTransform.concat():t.iMatrix.concat(),T=-this.offsetX,E=-this.offsetY,k=!!m.additionalTransform,D=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox";if(_.sort(function(ee,de){return ee.offset-de.offset}),D==="objectBoundingBox"?(T/=f.width,E/=f.height):(T+=f.width/2,E+=f.height/2),f.type==="path"&&this.gradientUnits!=="percentage"&&(T-=f.pathOffset.x,E-=f.pathOffset.y),x[4]-=T,x[5]-=E,b='id="SVGID_'+this.id+'" gradientUnits="'+D+'"',b+=' gradientTransform="'+(k?m.additionalTransform+" ":"")+t.util.matrixToSVG(x)+'" ',this.type==="linear"?y=["<linearGradient ",b,' x1="',d.x1,'" y1="',d.y1,'" x2="',d.x2,'" y2="',d.y2,`">
`]:this.type==="radial"&&(y=["<radialGradient ",b,' cx="',S?d.x1:d.x2,'" cy="',S?d.y1:d.y2,'" r="',S?d.r1:d.r2,'" fx="',S?d.x2:d.x1,'" fy="',S?d.y2:d.y1,`">
`]),this.type==="radial"){if(S)for(_=_.concat(),_.reverse(),v=0,h=_.length;v<h;v++)_[v].offset=1-_[v].offset;var W=Math.min(d.r1,d.r2);if(W>0){var I=Math.max(d.r1,d.r2),U=W/I;for(v=0,h=_.length;v<h;v++)_[v].offset+=U*(1-_[v].offset)}}for(v=0,h=_.length;v<h;v++){var A=_[v];y.push("<stop ",'offset="',A.offset*100+"%",'" style="stop-color:',A.color,typeof A.opacity<"u"?";stop-opacity: "+A.opacity:";",`"/>
`)}return y.push(this.type==="linear"?`</linearGradient>
`:`</radialGradient>
`),y.join("")},toLive:function(f){var s,d=t.util.object.clone(this.coords),v,h;if(!!this.type){for(this.type==="linear"?s=f.createLinearGradient(d.x1,d.y1,d.x2,d.y2):this.type==="radial"&&(s=f.createRadialGradient(d.x1,d.y1,d.r1,d.x2,d.y2,d.r2)),v=0,h=this.colorStops.length;v<h;v++){var m=this.colorStops[v].color,y=this.colorStops[v].opacity,b=this.colorStops[v].offset;typeof y<"u"&&(m=new t.Color(m).setAlpha(y).toRgba()),s.addColorStop(b,m)}return s}}}),t.util.object.extend(t.Gradient,{fromElement:function(f,s,d,v){var h=parseFloat(d)/(/%$/.test(d)?100:1);h=h<0?0:h>1?1:h,isNaN(h)&&(h=1);var m=f.getElementsByTagName("stop"),y,b=f.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage",_=f.getAttribute("gradientTransform")||"",S=[],x,T,E=0,k=0,D;for(f.nodeName==="linearGradient"||f.nodeName==="LINEARGRADIENT"?(y="linear",x=a(f)):(y="radial",x=c(f)),T=m.length;T--;)S.push(o(m[T],h));D=t.parseTransformAttribute(_),u(s,x,v,b),b==="pixels"&&(E=-s.left,k=-s.top);var W=new t.Gradient({id:f.getAttribute("id"),type:y,coords:x,colorStops:S,gradientUnits:b,gradientTransform:D,offsetX:E,offsetY:k});return W}});function u(f,s,d,v){var h,m;Object.keys(s).forEach(function(y){h=s[y],h==="Infinity"?m=1:h==="-Infinity"?m=0:(m=parseFloat(s[y],10),typeof h=="string"&&/^(\d+\.\d+)%|(\d+)%$/.test(h)&&(m*=.01,v==="pixels"&&((y==="x1"||y==="x2"||y==="r2")&&(m*=d.viewBoxWidth||d.width),(y==="y1"||y==="y2")&&(m*=d.viewBoxHeight||d.height)))),s[y]=m})}}(),function(){var o=t.util.toFixed;t.Pattern=t.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(a,c){if(a||(a={}),this.id=t.Object.__uid++,this.setOptions(a),!a.source||a.source&&typeof a.source!="string"){c&&c(this);return}else{var p=this;this.source=t.util.createImage(),t.util.loadImage(a.source,function(u,f){p.source=u,c&&c(p,f)},null,this.crossOrigin)}},toObject:function(a){var c=t.Object.NUM_FRACTION_DIGITS,p,u;return typeof this.source.src=="string"?p=this.source.src:typeof this.source=="object"&&this.source.toDataURL&&(p=this.source.toDataURL()),u={type:"pattern",source:p,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:o(this.offsetX,c),offsetY:o(this.offsetY,c),patternTransform:this.patternTransform?this.patternTransform.concat():null},t.util.populateWithProperties(this,u,a),u},toSVG:function(a){var c=typeof this.source=="function"?this.source():this.source,p=c.width/a.width,u=c.height/a.height,f=this.offsetX/a.width,s=this.offsetY/a.height,d="";return(this.repeat==="repeat-x"||this.repeat==="no-repeat")&&(u=1,s&&(u+=Math.abs(s))),(this.repeat==="repeat-y"||this.repeat==="no-repeat")&&(p=1,f&&(p+=Math.abs(f))),c.src?d=c.src:c.toDataURL&&(d=c.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+f+'" y="'+s+'" width="'+p+'" height="'+u+`">
<image x="0" y="0" width="`+c.width+'" height="'+c.height+'" xlink:href="'+d+`"></image>
</pattern>
`},setOptions:function(a){for(var c in a)this[c]=a[c]},toLive:function(a){var c=this.source;return!c||typeof c.src<"u"&&(!c.complete||c.naturalWidth===0||c.naturalHeight===0)?"":a.createPattern(c,this.repeat)}})}(),function(o){var a=o.fabric||(o.fabric={}),c=a.util.toFixed;if(a.Shadow){a.warn("fabric.Shadow is already defined.");return}a.Shadow=a.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(p){typeof p=="string"&&(p=this._parseShadow(p));for(var u in p)this[u]=p[u];this.id=a.Object.__uid++},_parseShadow:function(p){var u=p.trim(),f=a.Shadow.reOffsetsAndBlur.exec(u)||[],s=u.replace(a.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:s.trim(),offsetX:parseFloat(f[1],10)||0,offsetY:parseFloat(f[2],10)||0,blur:parseFloat(f[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(p){var u=40,f=40,s=a.Object.NUM_FRACTION_DIGITS,d=a.util.rotateVector({x:this.offsetX,y:this.offsetY},a.util.degreesToRadians(-p.angle)),v=20,h=new a.Color(this.color);return p.width&&p.height&&(u=c((Math.abs(d.x)+this.blur)/p.width,s)*100+v,f=c((Math.abs(d.y)+this.blur)/p.height,s)*100+v),p.flipX&&(d.x*=-1),p.flipY&&(d.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+f+'%" height="'+(100+2*f)+'%" x="-'+u+'%" width="'+(100+2*u)+`%" >
<feGaussianBlur in="SourceAlpha" stdDeviation="`+c(this.blur?this.blur/2:0,s)+`"></feGaussianBlur>
<feOffset dx="`+c(d.x,s)+'" dy="'+c(d.y,s)+`" result="oBlur" ></feOffset>
<feFlood flood-color="`+h.toRgb()+'" flood-opacity="'+h.getAlpha()+`"/>
<feComposite in2="oBlur" operator="in" />
<feMerge>
<feMergeNode></feMergeNode>
<feMergeNode in="SourceGraphic"></feMergeNode>
</feMerge>
</filter>
`},toObject:function(){if(this.includeDefaultValues)return{color:this.color,blur:this.blur,offsetX:this.offsetX,offsetY:this.offsetY,affectStroke:this.affectStroke,nonScaling:this.nonScaling};var p={},u=a.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(f){this[f]!==u[f]&&(p[f]=this[f])},this),p}}),a.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/}(e),function(){if(t.StaticCanvas){t.warn("fabric.StaticCanvas is already defined.");return}var o=t.util.object.extend,a=t.util.getElementOffset,c=t.util.removeFromArray,p=t.util.toFixed,u=t.util.transformPoint,f=t.util.invertTransform,s=t.util.getNodeCanvas,d=t.util.createCanvasElement,v=new Error("Could not initialize `canvas` element");t.StaticCanvas=t.util.createClass(t.CommonMethods,{initialize:function(h,m){m||(m={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(h,m)},backgroundColor:"",backgroundImage:null,overlayColor:"",overlayImage:null,includeDefaultValues:!0,stateful:!1,renderOnAddRemove:!0,controlsAboveOverlay:!1,allowTouchScrolling:!1,imageSmoothingEnabled:!0,viewportTransform:t.iMatrix.concat(),backgroundVpt:!0,overlayVpt:!0,enableRetinaScaling:!0,vptCoords:{},skipOffscreen:!0,clipPath:void 0,_initStatic:function(h,m){var y=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(h),this._initOptions(m),this.interactive||this._initRetinaScaling(),m.overlayImage&&this.setOverlayImage(m.overlayImage,y),m.backgroundImage&&this.setBackgroundImage(m.backgroundImage,y),m.backgroundColor&&this.setBackgroundColor(m.backgroundColor,y),m.overlayColor&&this.setOverlayColor(m.overlayColor,y),this.calcOffset()},_isRetinaScaling:function(){return t.devicePixelRatio>1&&this.enableRetinaScaling},getRetinaScaling:function(){return this._isRetinaScaling()?Math.max(1,t.devicePixelRatio):1},_initRetinaScaling:function(){if(!!this._isRetinaScaling()){var h=t.devicePixelRatio;this.__initRetinaScaling(h,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(h,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(h,m,y){m.setAttribute("width",this.width*h),m.setAttribute("height",this.height*h),y.scale(h,h)},calcOffset:function(){return this._offset=a(this.lowerCanvasEl),this},setOverlayImage:function(h,m,y){return this.__setBgOverlayImage("overlayImage",h,m,y)},setBackgroundImage:function(h,m,y){return this.__setBgOverlayImage("backgroundImage",h,m,y)},setOverlayColor:function(h,m){return this.__setBgOverlayColor("overlayColor",h,m)},setBackgroundColor:function(h,m){return this.__setBgOverlayColor("backgroundColor",h,m)},__setBgOverlayImage:function(h,m,y,b){return typeof m=="string"?t.util.loadImage(m,function(_,S){if(_){var x=new t.Image(_,b);this[h]=x,x.canvas=this}y&&y(_,S)},this,b&&b.crossOrigin):(b&&m.setOptions(b),this[h]=m,m&&(m.canvas=this),y&&y(m,!1)),this},__setBgOverlayColor:function(h,m,y){return this[h]=m,this._initGradient(m,h),this._initPattern(m,h,y),this},_createCanvasElement:function(){var h=d();if(!h||(h.style||(h.style={}),typeof h.getContext>"u"))throw v;return h},_initOptions:function(h){var m=this.lowerCanvasEl;this._setOptions(h),this.width=this.width||parseInt(m.width,10)||0,this.height=this.height||parseInt(m.height,10)||0,this.lowerCanvasEl.style&&(m.width=this.width,m.height=this.height,m.style.width=this.width+"px",m.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(h){h&&h.getContext?this.lowerCanvasEl=h:this.lowerCanvasEl=t.util.getById(h)||this._createCanvasElement(),t.util.addClass(this.lowerCanvasEl,"lower-canvas"),this._originalCanvasStyle=this.lowerCanvasEl.style,this.interactive&&this._applyCanvasStyle(this.lowerCanvasEl),this.contextContainer=this.lowerCanvasEl.getContext("2d")},getWidth:function(){return this.width},getHeight:function(){return this.height},setWidth:function(h,m){return this.setDimensions({width:h},m)},setHeight:function(h,m){return this.setDimensions({height:h},m)},setDimensions:function(h,m){var y;m=m||{};for(var b in h)y=h[b],m.cssOnly||(this._setBackstoreDimension(b,h[b]),y+="px",this.hasLostContext=!0),m.backstoreOnly||this._setCssDimension(b,y);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),m.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(h,m){return this.lowerCanvasEl[h]=m,this.upperCanvasEl&&(this.upperCanvasEl[h]=m),this.cacheCanvasEl&&(this.cacheCanvasEl[h]=m),this[h]=m,this},_setCssDimension:function(h,m){return this.lowerCanvasEl.style[h]=m,this.upperCanvasEl&&(this.upperCanvasEl.style[h]=m),this.wrapperEl&&(this.wrapperEl.style[h]=m),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(h){var m=this._activeObject,y=this.backgroundImage,b=this.overlayImage,_,S,x;for(this.viewportTransform=h,S=0,x=this._objects.length;S<x;S++)_=this._objects[S],_.group||_.setCoords(!0);return m&&m.setCoords(),y&&y.setCoords(!0),b&&b.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(h,m){var y=h,b=this.viewportTransform.slice(0);h=u(h,f(this.viewportTransform)),b[0]=m,b[3]=m;var _=u(h,b);return b[4]+=y.x-_.x,b[5]+=y.y-_.y,this.setViewportTransform(b)},setZoom:function(h){return this.zoomToPoint(new t.Point(0,0),h),this},absolutePan:function(h){var m=this.viewportTransform.slice(0);return m[4]=-h.x,m[5]=-h.y,this.setViewportTransform(m)},relativePan:function(h){return this.absolutePan(new t.Point(-h.x-this.viewportTransform[4],-h.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(h){this.stateful&&h.setupState(),h._set("canvas",this),h.setCoords(),this.fire("object:added",{target:h}),h.fire("added")},_onObjectRemoved:function(h){this.fire("object:removed",{target:h}),h.fire("removed"),delete h.canvas},clearContext:function(h){return h.clearRect(0,0,this.width,this.height),this},getContext:function(){return this.contextContainer},clear:function(){return this.remove.apply(this,this.getObjects()),this.backgroundImage=null,this.overlayImage=null,this.backgroundColor="",this.overlayColor="",this._hasITextHandlers&&(this.off("mouse:up",this._mouseUpITextHandler),this._iTextInstances=null,this._hasITextHandlers=!1),this.clearContext(this.contextContainer),this.fire("canvas:cleared"),this.renderOnAddRemove&&this.requestRenderAll(),this},renderAll:function(){var h=this.contextContainer;return this.renderCanvas(h,this._objects),this},renderAndReset:function(){this.isRendering=0,this.renderAll()},requestRenderAll:function(){return this.isRendering||(this.isRendering=t.util.requestAnimFrame(this.renderAndResetBound)),this},calcViewportBoundaries:function(){var h={},m=this.width,y=this.height,b=f(this.viewportTransform);return h.tl=u({x:0,y:0},b),h.br=u({x:m,y},b),h.tr=new t.Point(h.br.x,h.tl.y),h.bl=new t.Point(h.tl.x,h.br.y),this.vptCoords=h,h},cancelRequestedRender:function(){this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(h,m){var y=this.viewportTransform,b=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(h),t.util.setImageSmoothing(h,this.imageSmoothingEnabled),this.fire("before:render",{ctx:h}),this._renderBackground(h),h.save(),h.transform(y[0],y[1],y[2],y[3],y[4],y[5]),this._renderObjects(h,m),h.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(h),b&&(b.canvas=this,b.shouldCache(),b._transformDone=!0,b.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(h)),this._renderOverlay(h),this.controlsAboveOverlay&&this.interactive&&this.drawControls(h),this.fire("after:render",{ctx:h})},drawClipPathOnCanvas:function(h){var m=this.viewportTransform,y=this.clipPath;h.save(),h.transform(m[0],m[1],m[2],m[3],m[4],m[5]),h.globalCompositeOperation="destination-in",y.transform(h),h.scale(1/y.zoomX,1/y.zoomY),h.drawImage(y._cacheCanvas,-y.cacheTranslationX,-y.cacheTranslationY),h.restore()},_renderObjects:function(h,m){var y,b;for(y=0,b=m.length;y<b;++y)m[y]&&m[y].render(h)},_renderBackgroundOrOverlay:function(h,m){var y=this[m+"Color"],b=this[m+"Image"],_=this.viewportTransform,S=this[m+"Vpt"];if(!(!y&&!b)){if(y){h.save(),h.beginPath(),h.moveTo(0,0),h.lineTo(this.width,0),h.lineTo(this.width,this.height),h.lineTo(0,this.height),h.closePath(),h.fillStyle=y.toLive?y.toLive(h,this):y,S&&h.transform(_[0],_[1],_[2],_[3],_[4],_[5]),h.transform(1,0,0,1,y.offsetX||0,y.offsetY||0);var x=y.gradientTransform||y.patternTransform;x&&h.transform(x[0],x[1],x[2],x[3],x[4],x[5]),h.fill(),h.restore()}if(b){h.save();var T=this.skipOffscreen;this.skipOffscreen=S,S&&h.transform(_[0],_[1],_[2],_[3],_[4],_[5]),b.render(h),this.skipOffscreen=T,h.restore()}}},_renderBackground:function(h){this._renderBackgroundOrOverlay(h,"background")},_renderOverlay:function(h){this._renderBackgroundOrOverlay(h,"overlay")},getCenter:function(){return{top:this.height/2,left:this.width/2}},getCenterPoint:function(){return new t.Point(this.width/2,this.height/2)},centerObjectH:function(h){return this._centerObject(h,new t.Point(this.getCenterPoint().x,h.getCenterPoint().y))},centerObjectV:function(h){return this._centerObject(h,new t.Point(h.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(h){var m=this.getCenterPoint();return this._centerObject(h,m)},viewportCenterObject:function(h){var m=this.getVpCenter();return this._centerObject(h,m)},viewportCenterObjectH:function(h){var m=this.getVpCenter();return this._centerObject(h,new t.Point(m.x,h.getCenterPoint().y)),this},viewportCenterObjectV:function(h){var m=this.getVpCenter();return this._centerObject(h,new t.Point(h.getCenterPoint().x,m.y))},getVpCenter:function(){var h=this.getCenterPoint(),m=f(this.viewportTransform);return u(h,m)},_centerObject:function(h,m){return h.setPositionByOrigin(m,"center","center"),h.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(h){return this.toDatalessObject(h)},toObject:function(h){return this._toObjectMethod("toObject",h)},toDatalessObject:function(h){return this._toObjectMethod("toDatalessObject",h)},_toObjectMethod:function(h,m){var y=this.clipPath,b={version:t.version,objects:this._toObjects(h,m)};return y&&!y.excludeFromExport&&(b.clipPath=this._toObject(this.clipPath,h,m)),o(b,this.__serializeBgOverlay(h,m)),t.util.populateWithProperties(this,b,m),b},_toObjects:function(h,m){return this._objects.filter(function(y){return!y.excludeFromExport}).map(function(y){return this._toObject(y,h,m)},this)},_toObject:function(h,m,y){var b;this.includeDefaultValues||(b=h.includeDefaultValues,h.includeDefaultValues=!1);var _=h[m](y);return this.includeDefaultValues||(h.includeDefaultValues=b),_},__serializeBgOverlay:function(h,m){var y={},b=this.backgroundImage,_=this.overlayImage,S=this.backgroundColor,x=this.overlayColor;return S&&S.toObject?S.excludeFromExport||(y.background=S.toObject(m)):S&&(y.background=S),x&&x.toObject?x.excludeFromExport||(y.overlay=x.toObject(m)):x&&(y.overlay=x),b&&!b.excludeFromExport&&(y.backgroundImage=this._toObject(b,h,m)),_&&!_.excludeFromExport&&(y.overlayImage=this._toObject(_,h,m)),y},svgViewportTransformation:!0,toSVG:function(h,m){h||(h={}),h.reviver=m;var y=[];return this._setSVGPreamble(y,h),this._setSVGHeader(y,h),this.clipPath&&y.push('<g clip-path="url(#'+this.clipPath.clipPathId+`)" >
`),this._setSVGBgOverlayColor(y,"background"),this._setSVGBgOverlayImage(y,"backgroundImage",m),this._setSVGObjects(y,m),this.clipPath&&y.push(`</g>
`),this._setSVGBgOverlayColor(y,"overlay"),this._setSVGBgOverlayImage(y,"overlayImage",m),y.push("</svg>"),y.join("")},_setSVGPreamble:function(h,m){m.suppressPreamble||h.push('<?xml version="1.0" encoding="',m.encoding||"UTF-8",`" standalone="no" ?>
`,'<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" ',`"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
`)},_setSVGHeader:function(h,m){var y=m.width||this.width,b=m.height||this.height,_,S='viewBox="0 0 '+this.width+" "+this.height+'" ',x=t.Object.NUM_FRACTION_DIGITS;m.viewBox?S='viewBox="'+m.viewBox.x+" "+m.viewBox.y+" "+m.viewBox.width+" "+m.viewBox.height+'" ':this.svgViewportTransformation&&(_=this.viewportTransform,S='viewBox="'+p(-_[4]/_[0],x)+" "+p(-_[5]/_[3],x)+" "+p(this.width/_[0],x)+" "+p(this.height/_[3],x)+'" '),h.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',y,'" ','height="',b,'" ',S,`xml:space="preserve">
`,"<desc>Created with Fabric.js ",t.version,`</desc>
`,`<defs>
`,this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(m),`</defs>
`)},createSVGClipPathMarkup:function(h){var m=this.clipPath;return m?(m.clipPathId="CLIPPATH_"+t.Object.__uid++,'<clipPath id="'+m.clipPathId+`" >
`+this.clipPath.toClipPathSVG(h.reviver)+`</clipPath>
`):""},createSVGRefElementsMarkup:function(){var h=this,m=["background","overlay"].map(function(y){var b=h[y+"Color"];if(b&&b.toLive){var _=h[y+"Vpt"],S=h.viewportTransform,x={width:h.width/(_?S[0]:1),height:h.height/(_?S[3]:1)};return b.toSVG(x,{additionalTransform:_?t.util.matrixToSVG(S):""})}});return m.join("")},createSVGFontFacesMarkup:function(){var h="",m={},y,b,_,S,x,T,E,k,D,W=t.fontPaths,I=[];for(this._objects.forEach(function A(ee){I.push(ee),ee._objects&&ee._objects.forEach(A)}),k=0,D=I.length;k<D;k++)if(y=I[k],b=y.fontFamily,!(y.type.indexOf("text")===-1||m[b]||!W[b])&&(m[b]=!0,!!y.styles)){_=y.styles;for(x in _){S=_[x];for(E in S)T=S[E],b=T.fontFamily,!m[b]&&W[b]&&(m[b]=!0)}}for(var U in m)h+=[` @font-face {
`," font-family: '",U,`';
`," src: url('",W[U],`');
`,` }
`].join("");return h&&(h=[' <style type="text/css">',`<![CDATA[
`,h,"]]>",`</style>
`].join("")),h},_setSVGObjects:function(h,m){var y,b,_,S=this._objects;for(b=0,_=S.length;b<_;b++)y=S[b],!y.excludeFromExport&&this._setSVGObject(h,y,m)},_setSVGObject:function(h,m,y){h.push(m.toSVG(y))},_setSVGBgOverlayImage:function(h,m,y){this[m]&&!this[m].excludeFromExport&&this[m].toSVG&&h.push(this[m].toSVG(y))},_setSVGBgOverlayColor:function(h,m){var y=this[m+"Color"],b=this.viewportTransform,_=this.width,S=this.height;if(!!y)if(y.toLive){var x=y.repeat,T=t.util.invertTransform(b),E=this[m+"Vpt"],k=E?t.util.matrixToSVG(T):"";h.push('<rect transform="'+k+" translate(",_/2,",",S/2,')"',' x="',y.offsetX-_/2,'" y="',y.offsetY-S/2,'" ','width="',x==="repeat-y"||x==="no-repeat"?y.source.width:_,'" height="',x==="repeat-x"||x==="no-repeat"?y.source.height:S,'" fill="url(#SVGID_'+y.id+')"',`></rect>
`)}else h.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',y,'"',`></rect>
`)},sendToBack:function(h){if(!h)return this;var m=this._activeObject,y,b,_;if(h===m&&h.type==="activeSelection")for(_=m._objects,y=_.length;y--;)b=_[y],c(this._objects,b),this._objects.unshift(b);else c(this._objects,h),this._objects.unshift(h);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(h){if(!h)return this;var m=this._activeObject,y,b,_;if(h===m&&h.type==="activeSelection")for(_=m._objects,y=0;y<_.length;y++)b=_[y],c(this._objects,b),this._objects.push(b);else c(this._objects,h),this._objects.push(h);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(h,m){if(!h)return this;var y=this._activeObject,b,_,S,x,T,E=0;if(h===y&&h.type==="activeSelection")for(T=y._objects,b=0;b<T.length;b++)_=T[b],S=this._objects.indexOf(_),S>0+E&&(x=S-1,c(this._objects,_),this._objects.splice(x,0,_)),E++;else S=this._objects.indexOf(h),S!==0&&(x=this._findNewLowerIndex(h,S,m),c(this._objects,h),this._objects.splice(x,0,h));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(h,m,y){var b,_;if(y)for(b=m,_=m-1;_>=0;--_){var S=h.intersectsWithObject(this._objects[_])||h.isContainedWithinObject(this._objects[_])||this._objects[_].isContainedWithinObject(h);if(S){b=_;break}}else b=m-1;return b},bringForward:function(h,m){if(!h)return this;var y=this._activeObject,b,_,S,x,T,E=0;if(h===y&&h.type==="activeSelection")for(T=y._objects,b=T.length;b--;)_=T[b],S=this._objects.indexOf(_),S<this._objects.length-1-E&&(x=S+1,c(this._objects,_),this._objects.splice(x,0,_)),E++;else S=this._objects.indexOf(h),S!==this._objects.length-1&&(x=this._findNewUpperIndex(h,S,m),c(this._objects,h),this._objects.splice(x,0,h));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(h,m,y){var b,_,S;if(y)for(b=m,_=m+1,S=this._objects.length;_<S;++_){var x=h.intersectsWithObject(this._objects[_])||h.isContainedWithinObject(this._objects[_])||this._objects[_].isContainedWithinObject(h);if(x){b=_;break}}else b=m+1;return b},moveTo:function(h,m){return c(this._objects,h),this._objects.splice(m,0,h),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject(function(h){h.dispose&&h.dispose()}),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),t.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),t.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),o(t.StaticCanvas.prototype,t.Observable),o(t.StaticCanvas.prototype,t.Collection),o(t.StaticCanvas.prototype,t.DataURLExporter),o(t.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(h){var m=d();if(!m||!m.getContext)return null;var y=m.getContext("2d");if(!y)return null;switch(h){case"setLineDash":return typeof y.setLineDash<"u";default:return null}}}),t.StaticCanvas.prototype.toJSON=t.StaticCanvas.prototype.toObject,t.isLikelyNode&&(t.StaticCanvas.prototype.createPNGStream=function(){var h=s(this.lowerCanvasEl);return h&&h.createPNGStream()},t.StaticCanvas.prototype.createJPEGStream=function(h){var m=s(this.lowerCanvasEl);return m&&m.createJPEGStream(h)})}(),t.BaseBrush=t.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(o){o.strokeStyle=this.color,o.lineWidth=this.width,o.lineCap=this.strokeLineCap,o.miterLimit=this.strokeMiterLimit,o.lineJoin=this.strokeLineJoin,o.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(o){var a=this.canvas.viewportTransform;o.save(),o.transform(a[0],a[1],a[2],a[3],a[4],a[5])},_setShadow:function(){if(!!this.shadow){var o=this.canvas,a=this.shadow,c=o.contextTop,p=o.getZoom();o&&o._isRetinaScaling()&&(p*=t.devicePixelRatio),c.shadowColor=a.color,c.shadowBlur=a.blur*p,c.shadowOffsetX=a.offsetX*p,c.shadowOffsetY=a.offsetY*p}},needsFullRender:function(){var o=new t.Color(this.color);return o.getAlpha()<1||!!this.shadow},_resetShadow:function(){var o=this.canvas.contextTop;o.shadowColor="",o.shadowBlur=o.shadowOffsetX=o.shadowOffsetY=0},_isOutSideCanvas:function(o){return o.x<0||o.x>this.canvas.getWidth()||o.y<0||o.y>this.canvas.getHeight()}}),function(){t.PencilBrush=t.util.createClass(t.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(o){this.canvas=o,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(o,a,c){var p=a.midPointFrom(c);return o.quadraticCurveTo(a.x,a.y,p.x,p.y),p},onMouseDown:function(o,a){!this.canvas._isMainEvent(a.e)||(this.drawStraightLine=a.e[this.straightLineKey],this._prepareForDrawing(o),this._captureDrawingPath(o),this._render())},onMouseMove:function(o,a){if(!!this.canvas._isMainEvent(a.e)&&(this.drawStraightLine=a.e[this.straightLineKey],!(this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o))&&this._captureDrawingPath(o)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var c=this._points,p=c.length,u=this.canvas.contextTop;this._saveAndTransform(u),this.oldEnd&&(u.beginPath(),u.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(u,c[p-2],c[p-1],!0),u.stroke(),u.restore()}},onMouseUp:function(o){return this.canvas._isMainEvent(o.e)?(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1):!0},_prepareForDrawing:function(o){var a=new t.Point(o.x,o.y);this._reset(),this._addPoint(a),this.canvas.contextTop.moveTo(a.x,a.y)},_addPoint:function(o){return this._points.length>1&&o.eq(this._points[this._points.length-1])?!1:(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(o),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(o){var a=new t.Point(o.x,o.y);return this._addPoint(a)},_render:function(o){var a,c,p=this._points[0],u=this._points[1];if(o=o||this.canvas.contextTop,this._saveAndTransform(o),o.beginPath(),this._points.length===2&&p.x===u.x&&p.y===u.y){var f=this.width/1e3;p=new t.Point(p.x,p.y),u=new t.Point(u.x,u.y),p.x-=f,u.x+=f}for(o.moveTo(p.x,p.y),a=1,c=this._points.length;a<c;a++)this._drawSegment(o,p,u),p=this._points[a],u=this._points[a+1];o.lineTo(p.x,p.y),o.stroke(),o.restore()},convertPointsToSVGPath:function(o){var a=this.width/1e3;return t.util.getSmoothPathFromPoints(o,a)},_isEmptySVGPath:function(o){var a=t.util.joinPath(o);return a==="M 0 0 Q 0 0 0 0 L 0 0"},createPath:function(o){var a=new t.Path(o,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,a.shadow=new t.Shadow(this.shadow)),a},decimatePoints:function(o,a){if(o.length<=2)return o;var c=this.canvas.getZoom(),p=Math.pow(a/c,2),u,f=o.length-1,s=o[0],d=[s],v;for(u=1;u<f-1;u++)v=Math.pow(s.x-o[u].x,2)+Math.pow(s.y-o[u].y,2),v>=p&&(s=o[u],d.push(s));return d.push(o[f]),d},_finalizeAndAddPath:function(){var o=this.canvas.contextTop;o.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var a=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(a)){this.canvas.requestRenderAll();return}var c=this.createPath(a);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:c}),this.canvas.add(c),this.canvas.requestRenderAll(),c.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:c})}})}(),t.CircleBrush=t.util.createClass(t.BaseBrush,{width:10,initialize:function(o){this.canvas=o,this.points=[]},drawDot:function(o){var a=this.addPoint(o),c=this.canvas.contextTop;this._saveAndTransform(c),this.dot(c,a),c.restore()},dot:function(o,a){o.fillStyle=a.fill,o.beginPath(),o.arc(a.x,a.y,a.radius,0,Math.PI*2,!1),o.closePath(),o.fill()},onMouseDown:function(o){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(o)},_render:function(){var o=this.canvas.contextTop,a,c,p=this.points;for(this._saveAndTransform(o),a=0,c=p.length;a<c;a++)this.dot(o,p[a]);o.restore()},onMouseMove:function(o){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(o),this._render()):this.drawDot(o))},onMouseUp:function(){var o=this.canvas.renderOnAddRemove,a,c;this.canvas.renderOnAddRemove=!1;var p=[];for(a=0,c=this.points.length;a<c;a++){var u=this.points[a],f=new t.Circle({radius:u.radius,left:u.x,top:u.y,originX:"center",originY:"center",fill:u.fill});this.shadow&&(f.shadow=new t.Shadow(this.shadow)),p.push(f)}var s=new t.Group(p);s.canvas=this.canvas,this.canvas.fire("before:path:created",{path:s}),this.canvas.add(s),this.canvas.fire("path:created",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=o,this.canvas.requestRenderAll()},addPoint:function(o){var a=new t.Point(o.x,o.y),c=t.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,p=new t.Color(this.color).setAlpha(t.util.getRandomInt(0,100)/100).toRgba();return a.radius=c,a.fill=p,this.points.push(a),a}}),t.SprayBrush=t.util.createClass(t.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(o){this.canvas=o,this.sprayChunks=[]},onMouseDown:function(o){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(o),this.render(this.sprayChunkPoints)},onMouseMove:function(o){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o)||(this.addSprayChunk(o),this.render(this.sprayChunkPoints))},onMouseUp:function(){var o=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var a=[],c=0,p=this.sprayChunks.length;c<p;c++)for(var u=this.sprayChunks[c],f=0,s=u.length;f<s;f++){var d=new t.Rect({width:u[f].width,height:u[f].width,left:u[f].x+1,top:u[f].y+1,originX:"center",originY:"center",fill:this.color});a.push(d)}this.optimizeOverlapping&&(a=this._getOptimizedRects(a));var v=new t.Group(a);this.shadow&&v.set("shadow",new t.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:v}),this.canvas.add(v),this.canvas.fire("path:created",{path:v}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=o,this.canvas.requestRenderAll()},_getOptimizedRects:function(o){var a={},c,p,u;for(p=0,u=o.length;p<u;p++)c=o[p].left+""+o[p].top,a[c]||(a[c]=o[p]);var f=[];for(c in a)f.push(a[c]);return f},render:function(o){var a=this.canvas.contextTop,c,p;for(a.fillStyle=this.color,this._saveAndTransform(a),c=0,p=o.length;c<p;c++){var u=o[c];typeof u.opacity<"u"&&(a.globalAlpha=u.opacity),a.fillRect(u.x,u.y,u.width,u.width)}a.restore()},_render:function(){var o=this.canvas.contextTop,a,c;for(o.fillStyle=this.color,this._saveAndTransform(o),a=0,c=this.sprayChunks.length;a<c;a++)this.render(this.sprayChunks[a]);o.restore()},addSprayChunk:function(o){this.sprayChunkPoints=[];var a,c,p,u=this.width/2,f;for(f=0;f<this.density;f++){a=t.util.getRandomInt(o.x-u,o.x+u),c=t.util.getRandomInt(o.y-u,o.y+u),this.dotWidthVariance?p=t.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):p=this.dotWidth;var s=new t.Point(a,c);s.width=p,this.randomOpacity&&(s.opacity=t.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),t.PatternBrush=t.util.createClass(t.PencilBrush,{getPatternSrc:function(){var o=20,a=5,c=t.util.createCanvasElement(),p=c.getContext("2d");return c.width=c.height=o+a,p.fillStyle=this.color,p.beginPath(),p.arc(o/2,o/2,o/2,0,Math.PI*2,!1),p.closePath(),p.fill(),c},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(o){return o.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(o){this.callSuper("_setBrushStyles",o),o.strokeStyle=this.getPattern(o)},createPath:function(o){var a=this.callSuper("createPath",o),c=a._getLeftTopCoords().scalarAdd(a.strokeWidth/2);return a.stroke=new t.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-c.x,offsetY:-c.y}),a}}),function(){var o=t.util.getPointer,a=t.util.degreesToRadians,c=t.util.isTouchEvent;t.Canvas=t.util.createClass(t.StaticCanvas,{initialize:function(u,f){f||(f={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(u,f),this._initInteractive(),this._createCacheCanvas()},uniformScaling:!0,uniScaleKey:"shiftKey",centeredScaling:!1,centeredRotation:!1,centeredKey:"altKey",altActionKey:"shiftKey",interactive:!0,selection:!0,selectionKey:"shiftKey",altSelectionKey:null,selectionColor:"rgba(100, 100, 255, 0.3)",selectionDashArray:[],selectionBorderColor:"rgba(255, 255, 255, 0.3)",selectionLineWidth:1,selectionFullyContained:!1,hoverCursor:"move",moveCursor:"move",defaultCursor:"default",freeDrawingCursor:"crosshair",notAllowedCursor:"not-allowed",containerClass:"canvas-container",perPixelTargetFind:!1,targetFindTolerance:0,skipTargetFind:!1,isDrawingMode:!1,preserveObjectStacking:!1,snapAngle:0,snapThreshold:null,stopContextMenu:!1,fireRightClick:!1,fireMiddleClick:!1,targets:[],enablePointerEvents:!1,_hoveredTarget:null,_hoveredTargets:[],_initInteractive:function(){this._currentTransform=null,this._groupSelector=null,this._initWrapperElement(),this._createUpperCanvas(),this._initEventListeners(),this._initRetinaScaling(),this.freeDrawingBrush=t.PencilBrush&&new t.PencilBrush(this),this.calcOffset()},_chooseObjectsToRender:function(){var u=this.getActiveObjects(),f,s,d;if(u.length>0&&!this.preserveObjectStacking){s=[],d=[];for(var v=0,h=this._objects.length;v<h;v++)f=this._objects[v],u.indexOf(f)===-1?s.push(f):d.push(f);u.length>1&&(this._activeObject._objects=d),s.push.apply(s,d)}else s=this._objects;return s},renderAll:function(){this.contextTopDirty&&!this._groupSelector&&!this.isDrawingMode&&(this.clearContext(this.contextTop),this.contextTopDirty=!1),this.hasLostContext&&(this.renderTopLayer(this.contextTop),this.hasLostContext=!1);var u=this.contextContainer;return this.renderCanvas(u,this._chooseObjectsToRender()),this},renderTopLayer:function(u){u.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(u),this.contextTopDirty=!0),u.restore()},renderTop:function(){var u=this.contextTop;return this.clearContext(u),this.renderTopLayer(u),this.fire("after:render"),this},_normalizePointer:function(u,f){var s=u.calcTransformMatrix(),d=t.util.invertTransform(s),v=this.restorePointerVpt(f);return t.util.transformPoint(v,d)},isTargetTransparent:function(u,f,s){if(u.shouldCache()&&u._cacheCanvas&&u!==this._activeObject){var d=this._normalizePointer(u,{x:f,y:s}),v=Math.max(u.cacheTranslationX+d.x*u.zoomX,0),h=Math.max(u.cacheTranslationY+d.y*u.zoomY,0),_=t.util.isTransparent(u._cacheContext,Math.round(v),Math.round(h),this.targetFindTolerance);return _}var m=this.contextCache,y=u.selectionBackgroundColor,b=this.viewportTransform;u.selectionBackgroundColor="",this.clearContext(m),m.save(),m.transform(b[0],b[1],b[2],b[3],b[4],b[5]),u.render(m),m.restore(),u.selectionBackgroundColor=y;var _=t.util.isTransparent(m,f,s,this.targetFindTolerance);return _},_isSelectionKeyPressed:function(u){var f=!1;return Array.isArray(this.selectionKey)?f=!!this.selectionKey.find(function(s){return u[s]===!0}):f=u[this.selectionKey],f},_shouldClearSelection:function(u,f){var s=this.getActiveObjects(),d=this._activeObject;return!f||f&&d&&s.length>1&&s.indexOf(f)===-1&&d!==f&&!this._isSelectionKeyPressed(u)||f&&!f.evented||f&&!f.selectable&&d&&d!==f},_shouldCenterTransform:function(u,f,s){if(!!u){var d;return f==="scale"||f==="scaleX"||f==="scaleY"||f==="resizing"?d=this.centeredScaling||u.centeredScaling:f==="rotate"&&(d=this.centeredRotation||u.centeredRotation),d?!s:s}},_getOriginFromCorner:function(u,f){var s={x:u.originX,y:u.originY};return f==="ml"||f==="tl"||f==="bl"?s.x="right":(f==="mr"||f==="tr"||f==="br")&&(s.x="left"),f==="tl"||f==="mt"||f==="tr"?s.y="bottom":(f==="bl"||f==="mb"||f==="br")&&(s.y="top"),s},_getActionFromCorner:function(u,f,s,d){if(!f||!u)return"drag";var v=d.controls[f];return v.getActionName(s,v,d)},_setupCurrentTransform:function(u,f,s){if(!!f){var d=this.getPointer(u),v=f.__corner,h=f.controls[v],m=s&&v?h.getActionHandler(u,f,h):t.controlsUtils.dragHandler,y=this._getActionFromCorner(s,v,u,f),b=this._getOriginFromCorner(f,v),_=u[this.centeredKey],S={target:f,action:y,actionHandler:m,corner:v,scaleX:f.scaleX,scaleY:f.scaleY,skewX:f.skewX,skewY:f.skewY,offsetX:d.x-f.left,offsetY:d.y-f.top,originX:b.x,originY:b.y,ex:d.x,ey:d.y,lastX:d.x,lastY:d.y,theta:a(f.angle),width:f.width*f.scaleX,shiftKey:u.shiftKey,altKey:_,original:t.util.saveObjectTransform(f)};this._shouldCenterTransform(f,y,_)&&(S.originX="center",S.originY="center"),S.original.originX=b.x,S.original.originY=b.y,this._currentTransform=S,this._beforeTransform(u)}},setCursor:function(u){this.upperCanvasEl.style.cursor=u},_drawSelection:function(u){var f=this._groupSelector,s=new t.Point(f.ex,f.ey),d=t.util.transformPoint(s,this.viewportTransform),v=new t.Point(f.ex+f.left,f.ey+f.top),h=t.util.transformPoint(v,this.viewportTransform),m=Math.min(d.x,h.x),y=Math.min(d.y,h.y),b=Math.max(d.x,h.x),_=Math.max(d.y,h.y),S=this.selectionLineWidth/2;this.selectionColor&&(u.fillStyle=this.selectionColor,u.fillRect(m,y,b-m,_-y)),!(!this.selectionLineWidth||!this.selectionBorderColor)&&(u.lineWidth=this.selectionLineWidth,u.strokeStyle=this.selectionBorderColor,m+=S,y+=S,b-=S,_-=S,t.Object.prototype._setLineDash.call(this,u,this.selectionDashArray),u.strokeRect(m,y,b-m,_-y))},findTarget:function(u,f){if(!this.skipTargetFind){var s=!0,d=this.getPointer(u,s),v=this._activeObject,h=this.getActiveObjects(),m,y,b=c(u),_=h.length>1&&!f||h.length===1;if(this.targets=[],_&&v._findTargetCorner(d,b)||h.length>1&&!f&&v===this._searchPossibleTargets([v],d))return v;if(h.length===1&&v===this._searchPossibleTargets([v],d))if(this.preserveObjectStacking)m=v,y=this.targets,this.targets=[];else return v;var S=this._searchPossibleTargets(this._objects,d);return u[this.altSelectionKey]&&S&&m&&S!==m&&(S=m,this.targets=y),S}},_checkTarget:function(u,f,s){if(f&&f.visible&&f.evented&&f.containsPoint(u))if((this.perPixelTargetFind||f.perPixelTargetFind)&&!f.isEditing){var d=this.isTargetTransparent(f,s.x,s.y);if(!d)return!0}else return!0},_searchPossibleTargets:function(u,f){for(var s,d=u.length,v;d--;){var h=u[d],m=h.group?this._normalizePointer(h.group,f):f;if(this._checkTarget(m,h,f)){s=u[d],s.subTargetCheck&&s instanceof t.Group&&(v=this._searchPossibleTargets(s._objects,f),v&&this.targets.push(v));break}}return s},restorePointerVpt:function(u){return t.util.transformPoint(u,t.util.invertTransform(this.viewportTransform))},getPointer:function(u,f){if(this._absolutePointer&&!f)return this._absolutePointer;if(this._pointer&&f)return this._pointer;var s=o(u),d=this.upperCanvasEl,v=d.getBoundingClientRect(),h=v.width||0,m=v.height||0,y;(!h||!m)&&("top"in v&&"bottom"in v&&(m=Math.abs(v.top-v.bottom)),"right"in v&&"left"in v&&(h=Math.abs(v.right-v.left))),this.calcOffset(),s.x=s.x-this._offset.left,s.y=s.y-this._offset.top,f||(s=this.restorePointerVpt(s));var b=this.getRetinaScaling();return b!==1&&(s.x/=b,s.y/=b),h===0||m===0?y={width:1,height:1}:y={width:d.width/h,height:d.height/m},{x:s.x*y.width,y:s.y*y.height}},_createUpperCanvas:function(){var u=this.lowerCanvasEl.className.replace(/\s*lower-canvas\s*/,""),f=this.lowerCanvasEl,s=this.upperCanvasEl;s?s.className="":(s=this._createCanvasElement(),this.upperCanvasEl=s),t.util.addClass(s,"upper-canvas "+u),this.wrapperEl.appendChild(s),this._copyCanvasStyle(f,s),this._applyCanvasStyle(s),this.contextTop=s.getContext("2d")},getTopContext:function(){return this.contextTop},_createCacheCanvas:function(){this.cacheCanvasEl=this._createCanvasElement(),this.cacheCanvasEl.setAttribute("width",this.width),this.cacheCanvasEl.setAttribute("height",this.height),this.contextCache=this.cacheCanvasEl.getContext("2d")},_initWrapperElement:function(){this.wrapperEl=t.util.wrapElement(this.lowerCanvasEl,"div",{class:this.containerClass}),t.util.setStyle(this.wrapperEl,{width:this.width+"px",height:this.height+"px",position:"relative"}),t.util.makeElementUnselectable(this.wrapperEl)},_applyCanvasStyle:function(u){var f=this.width||u.width,s=this.height||u.height;t.util.setStyle(u,{position:"absolute",width:f+"px",height:s+"px",left:0,top:0,"touch-action":this.allowTouchScrolling?"manipulation":"none","-ms-touch-action":this.allowTouchScrolling?"manipulation":"none"}),u.width=f,u.height=s,t.util.makeElementUnselectable(u)},_copyCanvasStyle:function(u,f){f.style.cssText=u.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var u=this._activeObject;return u?u.type==="activeSelection"&&u._objects?u._objects.slice(0):[u]:[]},_onObjectRemoved:function(u){u===this._activeObject&&(this.fire("before:selection:cleared",{target:u}),this._discardActiveObject(),this.fire("selection:cleared",{target:u}),u.fire("deselected")),u===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",u)},_fireSelectionEvents:function(u,f){var s=!1,d=this.getActiveObjects(),v=[],h=[];u.forEach(function(m){d.indexOf(m)===-1&&(s=!0,m.fire("deselected",{e:f,target:m}),h.push(m))}),d.forEach(function(m){u.indexOf(m)===-1&&(s=!0,m.fire("selected",{e:f,target:m}),v.push(m))}),u.length>0&&d.length>0?s&&this.fire("selection:updated",{e:f,selected:v,deselected:h}):d.length>0?this.fire("selection:created",{e:f,selected:v}):u.length>0&&this.fire("selection:cleared",{e:f,deselected:h})},setActiveObject:function(u,f){var s=this.getActiveObjects();return this._setActiveObject(u,f),this._fireSelectionEvents(s,f),this},_setActiveObject:function(u,f){return this._activeObject===u||!this._discardActiveObject(f,u)||u.onSelect({e:f})?!1:(this._activeObject=u,!0)},_discardActiveObject:function(u,f){var s=this._activeObject;if(s){if(s.onDeselect({e:u,object:f}))return!1;this._activeObject=null}return!0},discardActiveObject:function(u){var f=this.getActiveObjects(),s=this.getActiveObject();return f.length&&this.fire("before:selection:cleared",{target:s,e:u}),this._discardActiveObject(u),this._fireSelectionEvents(f,u),this},dispose:function(){var u=this.wrapperEl;return this.removeListeners(),u.removeChild(this.upperCanvasEl),u.removeChild(this.lowerCanvasEl),this.contextCache=null,this.contextTop=null,["upperCanvasEl","cacheCanvasEl"].forEach(function(f){t.util.cleanUpJsdomNode(this[f]),this[f]=void 0}.bind(this)),u.parentNode&&u.parentNode.replaceChild(this.lowerCanvasEl,this.wrapperEl),delete this.wrapperEl,t.StaticCanvas.prototype.dispose.call(this),this},clear:function(){return this.discardActiveObject(),this.clearContext(this.contextTop),this.callSuper("clear")},drawControls:function(u){var f=this._activeObject;f&&f._renderControls(u)},_toObject:function(u,f,s){var d=this._realizeGroupTransformOnObject(u),v=this.callSuper("_toObject",u,f,s);return this._unwindGroupTransformOnObject(u,d),v},_realizeGroupTransformOnObject:function(u){if(u.group&&u.group.type==="activeSelection"&&this._activeObject===u.group){var f=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],s={};return f.forEach(function(d){s[d]=u[d]}),t.util.addTransformToObject(u,this._activeObject.calcOwnMatrix()),s}else return null},_unwindGroupTransformOnObject:function(u,f){f&&u.set(f)},_setSVGObject:function(u,f,s){var d=this._realizeGroupTransformOnObject(f);this.callSuper("_setSVGObject",u,f,s),this._unwindGroupTransformOnObject(f,d)},setViewportTransform:function(u){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),t.StaticCanvas.prototype.setViewportTransform.call(this,u)}});for(var p in t.StaticCanvas)p!=="prototype"&&(t.Canvas[p]=t.StaticCanvas[p])}(),function(){var o=t.util.addListener,a=t.util.removeListener,c=3,p=2,u=1,f={passive:!1};function s(d,v){return d.button&&d.button===v-1}t.util.object.extend(t.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(o,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(d,v){var h=this.upperCanvasEl,m=this._getEventPrefix();d(t.window,"resize",this._onResize),d(h,m+"down",this._onMouseDown),d(h,m+"move",this._onMouseMove,f),d(h,m+"out",this._onMouseOut),d(h,m+"enter",this._onMouseEnter),d(h,"wheel",this._onMouseWheel),d(h,"contextmenu",this._onContextMenu),d(h,"dblclick",this._onDoubleClick),d(h,"dragover",this._onDragOver),d(h,"dragenter",this._onDragEnter),d(h,"dragleave",this._onDragLeave),d(h,"drop",this._onDrop),this.enablePointerEvents||d(h,"touchstart",this._onTouchStart,f),typeof eventjs<"u"&&v in eventjs&&(eventjs[v](h,"gesture",this._onGesture),eventjs[v](h,"drag",this._onDrag),eventjs[v](h,"orientation",this._onOrientationChange),eventjs[v](h,"shake",this._onShake),eventjs[v](h,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(a,"remove");var d=this._getEventPrefix();a(t.document,d+"up",this._onMouseUp),a(t.document,"touchend",this._onTouchEnd,f),a(t.document,d+"move",this._onMouseMove,f),a(t.document,"touchmove",this._onMouseMove,f)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(d,v){this.__onTransformGesture&&this.__onTransformGesture(d,v)},_onDrag:function(d,v){this.__onDrag&&this.__onDrag(d,v)},_onMouseWheel:function(d){this.__onMouseWheel(d)},_onMouseOut:function(d){var v=this._hoveredTarget;this.fire("mouse:out",{target:v,e:d}),this._hoveredTarget=null,v&&v.fire("mouseout",{e:d});var h=this;this._hoveredTargets.forEach(function(m){h.fire("mouse:out",{target:m,e:d}),m&&m.fire("mouseout",{e:d})}),this._hoveredTargets=[]},_onMouseEnter:function(d){!this._currentTransform&&!this.findTarget(d)&&(this.fire("mouse:over",{target:null,e:d}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(d,v){this.__onOrientationChange&&this.__onOrientationChange(d,v)},_onShake:function(d,v){this.__onShake&&this.__onShake(d,v)},_onLongPress:function(d,v){this.__onLongPress&&this.__onLongPress(d,v)},_onDragOver:function(d){d.preventDefault();var v=this._simpleEventHandler("dragover",d);this._fireEnterLeaveEvents(v,d)},_onDrop:function(d){return this._simpleEventHandler("drop:before",d),this._simpleEventHandler("drop",d)},_onContextMenu:function(d){return this.stopContextMenu&&(d.stopPropagation(),d.preventDefault()),!1},_onDoubleClick:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"dblclick"),this._resetTransformEventData(d)},getPointerId:function(d){var v=d.changedTouches;return v?v[0]&&v[0].identifier:this.enablePointerEvents?d.pointerId:-1},_isMainEvent:function(d){return d.isPrimary===!0?!0:d.isPrimary===!1?!1:d.type==="touchend"&&d.touches.length===0?!0:d.changedTouches?d.changedTouches[0].identifier===this.mainTouchId:!0},_onTouchStart:function(d){d.preventDefault(),this.mainTouchId===null&&(this.mainTouchId=this.getPointerId(d)),this.__onMouseDown(d),this._resetTransformEventData();var v=this.upperCanvasEl,h=this._getEventPrefix();o(t.document,"touchend",this._onTouchEnd,f),o(t.document,"touchmove",this._onMouseMove,f),a(v,h+"down",this._onMouseDown)},_onMouseDown:function(d){this.__onMouseDown(d),this._resetTransformEventData();var v=this.upperCanvasEl,h=this._getEventPrefix();a(v,h+"move",this._onMouseMove,f),o(t.document,h+"up",this._onMouseUp),o(t.document,h+"move",this._onMouseMove,f)},_onTouchEnd:function(d){if(!(d.touches.length>0)){this.__onMouseUp(d),this._resetTransformEventData(),this.mainTouchId=null;var v=this._getEventPrefix();a(t.document,"touchend",this._onTouchEnd,f),a(t.document,"touchmove",this._onMouseMove,f);var h=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){o(h.upperCanvasEl,v+"down",h._onMouseDown),h._willAddMouseDown=0},400)}},_onMouseUp:function(d){this.__onMouseUp(d),this._resetTransformEventData();var v=this.upperCanvasEl,h=this._getEventPrefix();this._isMainEvent(d)&&(a(t.document,h+"up",this._onMouseUp),a(t.document,h+"move",this._onMouseMove,f),o(v,h+"move",this._onMouseMove,f))},_onMouseMove:function(d){!this.allowTouchScrolling&&d.preventDefault&&d.preventDefault(),this.__onMouseMove(d)},_onResize:function(){this.calcOffset()},_shouldRender:function(d){var v=this._activeObject;return!!v!=!!d||v&&d&&v!==d?!0:(v&&v.isEditing,!1)},__onMouseUp:function(d){var v,h=this._currentTransform,m=this._groupSelector,y=!1,b=!m||m.left===0&&m.top===0;if(this._cacheTransformEventData(d),v=this._target,this._handleEvent(d,"up:before"),s(d,c)){this.fireRightClick&&this._handleEvent(d,"up",c,b);return}if(s(d,p)){this.fireMiddleClick&&this._handleEvent(d,"up",p,b),this._resetTransformEventData();return}if(this.isDrawingMode&&this._isCurrentlyDrawing){this._onMouseUpInDrawingMode(d);return}if(!!this._isMainEvent(d)){if(h&&(this._finalizeCurrentTransform(d),y=h.actionPerformed),!b){var _=v===this._activeObject;this._maybeGroupObjects(d),y||(y=this._shouldRender(v)||!_&&v===this._activeObject)}var S,x;if(v){if(S=v._findTargetCorner(this.getPointer(d,!0),t.util.isTouchEvent(d)),v.selectable&&v!==this._activeObject&&v.activeOn==="up")this.setActiveObject(v,d),y=!0;else{var T=v.controls[S],E=T&&T.getMouseUpHandler(d,v,T);E&&(x=this.getPointer(d),E(d,h,x.x,x.y))}v.isMoving=!1}if(h&&(h.target!==v||h.corner!==S)){var k=h.target&&h.target.controls[h.corner],D=k&&k.getMouseUpHandler(d,v,T);x=x||this.getPointer(d),D&&D(d,h,x.x,x.y)}this._setCursorFromEvent(d,v),this._handleEvent(d,"up",u,b),this._groupSelector=null,this._currentTransform=null,v&&(v.__corner=0),y?this.requestRenderAll():b||this.renderTop()}},_simpleEventHandler:function(d,v){var h=this.findTarget(v),m=this.targets,y={e:v,target:h,subTargets:m};if(this.fire(d,y),h&&h.fire(d,y),!m)return h;for(var b=0;b<m.length;b++)m[b].fire(d,y);return h},_handleEvent:function(d,v,h,m){var y=this._target,b=this.targets||[],_={e:d,target:y,subTargets:b,button:h||u,isClick:m||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};v==="up"&&(_.currentTarget=this.findTarget(d),_.currentSubTargets=this.targets),this.fire("mouse:"+v,_),y&&y.fire("mouse"+v,_);for(var S=0;S<b.length;S++)b[S].fire("mouse"+v,_)},_finalizeCurrentTransform:function(d){var v=this._currentTransform,h=v.target,m={e:d,target:h,transform:v,action:v.action};h._scaling&&(h._scaling=!1),h.setCoords(),(v.actionPerformed||this.stateful&&h.hasStateChanged())&&this._fire("modified",m)},_onMouseDownInDrawingMode:function(d){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(d).requestRenderAll();var v=this.getPointer(d);this.freeDrawingBrush.onMouseDown(v,{e:d,pointer:v}),this._handleEvent(d,"down")},_onMouseMoveInDrawingMode:function(d){if(this._isCurrentlyDrawing){var v=this.getPointer(d);this.freeDrawingBrush.onMouseMove(v,{e:d,pointer:v})}this.setCursor(this.freeDrawingCursor),this._handleEvent(d,"move")},_onMouseUpInDrawingMode:function(d){var v=this.getPointer(d);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:d,pointer:v}),this._handleEvent(d,"up")},__onMouseDown:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"down:before");var v=this._target;if(s(d,c)){this.fireRightClick&&this._handleEvent(d,"down",c);return}if(s(d,p)){this.fireMiddleClick&&this._handleEvent(d,"down",p);return}if(this.isDrawingMode){this._onMouseDownInDrawingMode(d);return}if(!!this._isMainEvent(d)&&!this._currentTransform){var h=this._pointer;this._previousPointer=h;var m=this._shouldRender(v),y=this._shouldGroup(d,v);if(this._shouldClearSelection(d,v)?this.discardActiveObject(d):y&&(this._handleGrouping(d,v),v=this._activeObject),this.selection&&(!v||!v.selectable&&!v.isEditing&&v!==this._activeObject)&&(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),v){var b=v===this._activeObject;v.selectable&&v.activeOn==="down"&&this.setActiveObject(v,d);var _=v._findTargetCorner(this.getPointer(d,!0),t.util.isTouchEvent(d));if(v.__corner=_,v===this._activeObject&&(_||!y)){this._setupCurrentTransform(d,v,b);var S=v.controls[_],h=this.getPointer(d),x=S&&S.getMouseDownHandler(d,v,S);x&&x(d,this._currentTransform,h.x,h.y)}}this._handleEvent(d,"down"),(m||y)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(d){this._resetTransformEventData(),this._pointer=this.getPointer(d,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(d)||null},_beforeTransform:function(d){var v=this._currentTransform;this.stateful&&v.target.saveState(),this.fire("before:transform",{e:d,transform:v})},__onMouseMove:function(d){this._handleEvent(d,"move:before"),this._cacheTransformEventData(d);var v,h;if(this.isDrawingMode){this._onMouseMoveInDrawingMode(d);return}if(!!this._isMainEvent(d)){var m=this._groupSelector;m?(h=this._absolutePointer,m.left=h.x-m.ex,m.top=h.y-m.ey,this.renderTop()):this._currentTransform?this._transformObject(d):(v=this.findTarget(d)||null,this._setCursorFromEvent(d,v),this._fireOverOutEvents(v,d)),this._handleEvent(d,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(d,v){var h=this._hoveredTarget,m=this._hoveredTargets,y=this.targets,b=Math.max(m.length,y.length);this.fireSyntheticInOutEvents(d,v,{oldTarget:h,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var _=0;_<b;_++)this.fireSyntheticInOutEvents(y[_],v,{oldTarget:m[_],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=d,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(d,v){var h=this._draggedoverTarget,m=this._hoveredTargets,y=this.targets,b=Math.max(m.length,y.length);this.fireSyntheticInOutEvents(d,v,{oldTarget:h,evtOut:"dragleave",evtIn:"dragenter"});for(var _=0;_<b;_++)this.fireSyntheticInOutEvents(y[_],v,{oldTarget:m[_],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=d},fireSyntheticInOutEvents:function(d,v,h){var m,y,b=h.oldTarget,_,S,x=b!==d,T=h.canvasEvtIn,E=h.canvasEvtOut;x&&(m={e:v,target:d,previousTarget:b},y={e:v,target:b,nextTarget:d}),S=d&&x,_=b&&x,_&&(E&&this.fire(E,y),b.fire(h.evtOut,y)),S&&(T&&this.fire(T,m),d.fire(h.evtIn,m))},__onMouseWheel:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"wheel"),this._resetTransformEventData()},_transformObject:function(d){var v=this.getPointer(d),h=this._currentTransform;h.reset=!1,h.shiftKey=d.shiftKey,h.altKey=d[this.centeredKey],this._performTransformAction(d,h,v),h.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(d,v,h){var m=h.x,y=h.y,b=v.action,_=!1,S=v.actionHandler;S&&(_=S(d,v,m,y)),b==="drag"&&_&&(v.target.isMoving=!0,this.setCursor(v.target.moveCursor||this.moveCursor)),v.actionPerformed=v.actionPerformed||_},_fire:t.controlsUtils.fireEvent,_setCursorFromEvent:function(d,v){if(!v)return this.setCursor(this.defaultCursor),!1;var h=v.hoverCursor||this.hoverCursor,m=this._activeObject&&this._activeObject.type==="activeSelection"?this._activeObject:null,y=(!m||!m.contains(v))&&v._findTargetCorner(this.getPointer(d,!0));y?this.setCursor(this.getCornerCursor(y,v,d)):(v.subTargetCheck&&this.targets.concat().reverse().map(function(b){h=b.hoverCursor||h}),this.setCursor(h))},getCornerCursor:function(d,v,h){var m=v.controls[d];return m.cursorStyleHandler(h,m,v)}})}(),function(){var o=Math.min,a=Math.max;t.util.object.extend(t.Canvas.prototype,{_shouldGroup:function(c,p){var u=this._activeObject;return u&&this._isSelectionKeyPressed(c)&&p&&p.selectable&&this.selection&&(u!==p||u.type==="activeSelection")&&!p.onSelect({e:c})},_handleGrouping:function(c,p){var u=this._activeObject;u.__corner||p===u&&(p=this.findTarget(c,!0),!p||!p.selectable)||(u&&u.type==="activeSelection"?this._updateActiveSelection(p,c):this._createActiveSelection(p,c))},_updateActiveSelection:function(c,p){var u=this._activeObject,f=u._objects.slice(0);u.contains(c)?(u.removeWithUpdate(c),this._hoveredTarget=c,this._hoveredTargets=this.targets.concat(),u.size()===1&&this._setActiveObject(u.item(0),p)):(u.addWithUpdate(c),this._hoveredTarget=u,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(f,p)},_createActiveSelection:function(c,p){var u=this.getActiveObjects(),f=this._createGroup(c);this._hoveredTarget=f,this._setActiveObject(f,p),this._fireSelectionEvents(u,p)},_createGroup:function(c){var p=this._objects,u=p.indexOf(this._activeObject)<p.indexOf(c),f=u?[this._activeObject,c]:[c,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new t.ActiveSelection(f,{canvas:this})},_groupSelectedObjects:function(c){var p=this._collectObjects(c),u;p.length===1?this.setActiveObject(p[0],c):p.length>1&&(u=new t.ActiveSelection(p.reverse(),{canvas:this}),this.setActiveObject(u,c))},_collectObjects:function(c){for(var p=[],u,f=this._groupSelector.ex,s=this._groupSelector.ey,d=f+this._groupSelector.left,v=s+this._groupSelector.top,h=new t.Point(o(f,d),o(s,v)),m=new t.Point(a(f,d),a(s,v)),y=!this.selectionFullyContained,b=f===d&&s===v,_=this._objects.length;_--&&(u=this._objects[_],!(!(!u||!u.selectable||!u.visible)&&(y&&u.intersectsWithRect(h,m,!0)||u.isContainedWithinRect(h,m,!0)||y&&u.containsPoint(h,null,!0)||y&&u.containsPoint(m,null,!0))&&(p.push(u),b))););return p.length>1&&(p=p.filter(function(S){return!S.onSelect({e:c})})),p},_maybeGroupObjects:function(c){this.selection&&this._groupSelector&&this._groupSelectedObjects(c),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),function(){t.util.object.extend(t.StaticCanvas.prototype,{toDataURL:function(o){o||(o={});var a=o.format||"png",c=o.quality||1,p=(o.multiplier||1)*(o.enableRetinaScaling?this.getRetinaScaling():1),u=this.toCanvasElement(p,o);return t.util.toDataURL(u,a,c)},toCanvasElement:function(o,a){o=o||1,a=a||{};var c=(a.width||this.width)*o,p=(a.height||this.height)*o,u=this.getZoom(),f=this.width,s=this.height,d=u*o,v=this.viewportTransform,h=(v[4]-(a.left||0))*o,m=(v[5]-(a.top||0))*o,y=this.interactive,b=[d,0,0,d,h,m],_=this.enableRetinaScaling,S=t.util.createCanvasElement(),x=this.contextTop;return S.width=c,S.height=p,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=b,this.width=c,this.height=p,this.calcViewportBoundaries(),this.renderCanvas(S.getContext("2d"),this._objects),this.viewportTransform=v,this.width=f,this.height=s,this.calcViewportBoundaries(),this.interactive=y,this.enableRetinaScaling=_,this.contextTop=x,S}})}(),t.util.object.extend(t.StaticCanvas.prototype,{loadFromJSON:function(o,a,c){if(!!o){var p=typeof o=="string"?JSON.parse(o):t.util.object.clone(o),u=this,f=p.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete p.clipPath,this._enlivenObjects(p.objects,function(d){u.clear(),u._setBgOverlay(p,function(){f?u._enlivenObjects([f],function(v){u.clipPath=v[0],u.__setupCanvas.call(u,p,d,s,a)}):u.__setupCanvas.call(u,p,d,s,a)})},c),this}},__setupCanvas:function(o,a,c,p){var u=this;a.forEach(function(f,s){u.insertAt(f,s)}),this.renderOnAddRemove=c,delete o.objects,delete o.backgroundImage,delete o.overlayImage,delete o.background,delete o.overlay,this._setOptions(o),this.renderAll(),p&&p()},_setBgOverlay:function(o,a){var c={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(!o.backgroundImage&&!o.overlayImage&&!o.background&&!o.overlay){a&&a();return}var p=function(){c.backgroundImage&&c.overlayImage&&c.backgroundColor&&c.overlayColor&&a&&a()};this.__setBgOverlay("backgroundImage",o.backgroundImage,c,p),this.__setBgOverlay("overlayImage",o.overlayImage,c,p),this.__setBgOverlay("backgroundColor",o.background,c,p),this.__setBgOverlay("overlayColor",o.overlay,c,p)},__setBgOverlay:function(o,a,c,p){var u=this;if(!a){c[o]=!0,p&&p();return}o==="backgroundImage"||o==="overlayImage"?t.util.enlivenObjects([a],function(f){u[o]=f[0],c[o]=!0,p&&p()}):this["set"+t.util.string.capitalize(o,!0)](a,function(){c[o]=!0,p&&p()})},_enlivenObjects:function(o,a,c){if(!o||o.length===0){a&&a([]);return}t.util.enlivenObjects(o,function(p){a&&a(p)},null,c)},_toDataURL:function(o,a){this.clone(function(c){a(c.toDataURL(o))})},_toDataURLWithMultiplier:function(o,a,c){this.clone(function(p){c(p.toDataURLWithMultiplier(o,a))})},clone:function(o,a){var c=JSON.stringify(this.toJSON(a));this.cloneWithoutData(function(p){p.loadFromJSON(c,function(){o&&o(p)})})},cloneWithoutData:function(o){var a=t.util.createCanvasElement();a.width=this.width,a.height=this.height;var c=new t.Canvas(a);this.backgroundImage?(c.setBackgroundImage(this.backgroundImage.src,function(){c.renderAll(),o&&o(c)}),c.backgroundImageOpacity=this.backgroundImageOpacity,c.backgroundImageStretch=this.backgroundImageStretch):o&&o(c)}}),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,p=a.util.object.clone,u=a.util.toFixed,f=a.util.string.capitalize,s=a.util.degreesToRadians,d=!a.isLikelyNode,v=2;a.Object||(a.Object=a.util.createClass(a.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:d,statefullCache:!1,noScaleCache:!0,strokeUniform:!1,dirty:!0,__corner:0,paintFirst:"fill",activeOn:"down",stateProperties:"top left width height scaleX scaleY flipX flipY originX originY transformMatrix stroke strokeWidth strokeDashArray strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit angle opacity fill globalCompositeOperation shadow visible backgroundColor skewX skewY fillRule paintFirst clipPath strokeUniform".split(" "),cacheProperties:"fill stroke strokeWidth strokeDashArray width height paintFirst strokeUniform strokeLineCap strokeDashOffset strokeLineJoin strokeMiterLimit backgroundColor clipPath".split(" "),colorProperties:"fill stroke backgroundColor".split(" "),clipPath:void 0,inverted:!1,absolutePositioned:!1,initialize:function(h){h&&this.setOptions(h)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=a.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(h){var m=a.perfLimitSizeTotal,y=h.width,b=h.height,_=a.maxCacheSideLimit,S=a.minCacheSideLimit;if(y<=_&&b<=_&&y*b<=m)return y<S&&(h.width=S),b<S&&(h.height=S),h;var x=y/b,T=a.util.limitDimsByArea(x,m),E=a.util.capValue,k=E(S,T.x,_),D=E(S,T.y,_);return y>k&&(h.zoomX/=y/k,h.width=k,h.capped=!0),b>D&&(h.zoomY/=b/D,h.height=D,h.capped=!0),h},_getCacheCanvasDimensions:function(){var h=this.getTotalObjectScaling(),m=this._getTransformedDimensions(0,0),y=m.x*h.scaleX/this.scaleX,b=m.y*h.scaleY/this.scaleY;return{width:Math.ceil(y+v),height:Math.ceil(b+v),zoomX:h.scaleX,zoomY:h.scaleY,x:y,y:b}},_updateCacheCanvas:function(){var h=this.canvas;if(this.noScaleCache&&h&&h._currentTransform){var m=h._currentTransform.target,y=h._currentTransform.action;if(this===m&&y.slice&&y.slice(0,5)==="scale")return!1}var b=this._cacheCanvas,_=this._limitCacheSize(this._getCacheCanvasDimensions()),S=_.width,x=_.height,T,E,k=_.zoomX,D=_.zoomY,W=S!==this.cacheWidth||x!==this.cacheHeight,I=this.zoomX!==k||this.zoomY!==D,U=W||I;return U?(W?(b.width=S,b.height=x):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,b.width,b.height)),T=_.x/2,E=_.y/2,this.cacheTranslationX=Math.round(b.width/2-T)+T,this.cacheTranslationY=Math.round(b.height/2-E)+E,this.cacheWidth=S,this.cacheHeight=x,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(k,D),this.zoomX=k,this.zoomY=D,!0):!1},setOptions:function(h){this._setOptions(h),this._initGradient(h.fill,"fill"),this._initGradient(h.stroke,"stroke"),this._initPattern(h.fill,"fill"),this._initPattern(h.stroke,"stroke")},transform:function(h){var m=this.group&&!this.group._transformDone||this.group&&this.canvas&&h===this.canvas.contextTop,y=this.calcTransformMatrix(!m);h.transform(y[0],y[1],y[2],y[3],y[4],y[5])},toObject:function(h){var m=a.Object.NUM_FRACTION_DIGITS,y={type:this.type,version:a.version,originX:this.originX,originY:this.originY,left:u(this.left,m),top:u(this.top,m),width:u(this.width,m),height:u(this.height,m),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:u(this.strokeWidth,m),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:u(this.strokeMiterLimit,m),scaleX:u(this.scaleX,m),scaleY:u(this.scaleY,m),angle:u(this.angle,m),flipX:this.flipX,flipY:this.flipY,opacity:u(this.opacity,m),shadow:this.shadow&&this.shadow.toObject?this.shadow.toObject():this.shadow,visible:this.visible,backgroundColor:this.backgroundColor,fillRule:this.fillRule,paintFirst:this.paintFirst,globalCompositeOperation:this.globalCompositeOperation,skewX:u(this.skewX,m),skewY:u(this.skewY,m)};return this.clipPath&&!this.clipPath.excludeFromExport&&(y.clipPath=this.clipPath.toObject(h),y.clipPath.inverted=this.clipPath.inverted,y.clipPath.absolutePositioned=this.clipPath.absolutePositioned),a.util.populateWithProperties(this,y,h),this.includeDefaultValues||(y=this._removeDefaultValues(y)),y},toDatalessObject:function(h){return this.toObject(h)},_removeDefaultValues:function(h){var m=a.util.getKlass(h.type).prototype,y=m.stateProperties;return y.forEach(function(b){b==="left"||b==="top"||(h[b]===m[b]&&delete h[b],Array.isArray(h[b])&&Array.isArray(m[b])&&h[b].length===0&&m[b].length===0&&delete h[b])}),h},toString:function(){return"#<fabric."+f(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var h=a.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(h.scaleX),scaleY:Math.abs(h.scaleY)}},getTotalObjectScaling:function(){var h=this.getObjectScaling(),m=h.scaleX,y=h.scaleY;if(this.canvas){var b=this.canvas.getZoom(),_=this.canvas.getRetinaScaling();m*=b*_,y*=b*_}return{scaleX:m,scaleY:y}},getObjectOpacity:function(){var h=this.opacity;return this.group&&(h*=this.group.getObjectOpacity()),h},_set:function(h,m){var y=h==="scaleX"||h==="scaleY",b=this[h]!==m,_=!1;return y&&(m=this._constrainScale(m)),h==="scaleX"&&m<0?(this.flipX=!this.flipX,m*=-1):h==="scaleY"&&m<0?(this.flipY=!this.flipY,m*=-1):h==="shadow"&&m&&!(m instanceof a.Shadow)?m=new a.Shadow(m):h==="dirty"&&this.group&&this.group.set("dirty",m),this[h]=m,b&&(_=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(h)>-1?(this.dirty=!0,_&&this.group.set("dirty",!0)):_&&this.stateProperties.indexOf(h)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:a.iMatrix.concat()},isNotVisible:function(){return this.opacity===0||!this.width&&!this.height&&this.strokeWidth===0||!this.visible},render:function(h){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(h.save(),this._setupCompositeOperation(h),this.drawSelectionBackground(h),this.transform(h),this._setOpacity(h),this._setShadow(h,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(h)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(h),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),h.restore())},renderCache:function(h){h=h||{},(!this._cacheCanvas||!this._cacheContext)&&this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,h.forClipping),this.dirty=!1)},_removeCacheCanvas:function(){this._cacheCanvas=null,this._cacheContext=null,this.cacheWidth=0,this.cacheHeight=0},hasStroke:function(){return this.stroke&&this.stroke!=="transparent"&&this.strokeWidth!==0},hasFill:function(){return this.fill&&this.fill!=="transparent"},needsItsOwnCache:function(){return!!(this.paintFirst==="stroke"&&this.hasFill()&&this.hasStroke()&&typeof this.shadow=="object"||this.clipPath)},shouldCache:function(){return this.ownCaching=this.needsItsOwnCache()||this.objectCaching&&(!this.group||!this.group.isOnACache()),this.ownCaching},willDrawShadow:function(){return!!this.shadow&&(this.shadow.offsetX!==0||this.shadow.offsetY!==0)},drawClipPathOnCache:function(h,m){if(h.save(),m.inverted?h.globalCompositeOperation="destination-out":h.globalCompositeOperation="destination-in",m.absolutePositioned){var y=a.util.invertTransform(this.calcTransformMatrix());h.transform(y[0],y[1],y[2],y[3],y[4],y[5])}m.transform(h),h.scale(1/m.zoomX,1/m.zoomY),h.drawImage(m._cacheCanvas,-m.cacheTranslationX,-m.cacheTranslationY),h.restore()},drawObject:function(h,m){var y=this.fill,b=this.stroke;m?(this.fill="black",this.stroke="",this._setClippingProperties(h)):this._renderBackground(h),this._render(h),this._drawClipPath(h,this.clipPath),this.fill=y,this.stroke=b},_drawClipPath:function(h,m){!m||(m.canvas=this.canvas,m.shouldCache(),m._transformDone=!0,m.renderCache({forClipping:!0}),this.drawClipPathOnCache(h,m))},drawCacheOnCanvas:function(h){h.scale(1/this.zoomX,1/this.zoomY),h.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(h){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!h&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!h){var m=this.cacheWidth/this.zoomX,y=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-m/2,-y/2,m,y)}return!0}return!1},_renderBackground:function(h){if(!!this.backgroundColor){var m=this._getNonTransformedDimensions();h.fillStyle=this.backgroundColor,h.fillRect(-m.x/2,-m.y/2,m.x,m.y),this._removeShadow(h)}},_setOpacity:function(h){this.group&&!this.group._transformDone?h.globalAlpha=this.getObjectOpacity():h.globalAlpha*=this.opacity},_setStrokeStyles:function(h,m){var y=m.stroke;y&&(h.lineWidth=m.strokeWidth,h.lineCap=m.strokeLineCap,h.lineDashOffset=m.strokeDashOffset,h.lineJoin=m.strokeLineJoin,h.miterLimit=m.strokeMiterLimit,y.toLive?y.gradientUnits==="percentage"||y.gradientTransform||y.patternTransform?this._applyPatternForTransformedGradient(h,y):(h.strokeStyle=y.toLive(h,this),this._applyPatternGradientTransform(h,y)):h.strokeStyle=m.stroke)},_setFillStyles:function(h,m){var y=m.fill;y&&(y.toLive?(h.fillStyle=y.toLive(h,this),this._applyPatternGradientTransform(h,m.fill)):h.fillStyle=y)},_setClippingProperties:function(h){h.globalAlpha=1,h.strokeStyle="transparent",h.fillStyle="#000000"},_setLineDash:function(h,m){!m||m.length===0||(1&m.length&&m.push.apply(m,m),h.setLineDash(m))},_renderControls:function(h,m){var y=this.getViewportTransform(),b=this.calcTransformMatrix(),_,S,x;m=m||{},S=typeof m.hasBorders<"u"?m.hasBorders:this.hasBorders,x=typeof m.hasControls<"u"?m.hasControls:this.hasControls,b=a.util.multiplyTransformMatrices(y,b),_=a.util.qrDecompose(b),h.save(),h.translate(_.translateX,_.translateY),h.lineWidth=1*this.borderScaleFactor,this.group||(h.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(_.angle-=180),h.rotate(s(this.group?_.angle:this.angle)),m.forActiveSelection||this.group?S&&this.drawBordersInGroup(h,_,m):S&&this.drawBorders(h,m),x&&this.drawControls(h,m),h.restore()},_setShadow:function(h){if(!!this.shadow){var m=this.shadow,y=this.canvas,b,_=y&&y.viewportTransform[0]||1,S=y&&y.viewportTransform[3]||1;m.nonScaling?b={scaleX:1,scaleY:1}:b=this.getObjectScaling(),y&&y._isRetinaScaling()&&(_*=a.devicePixelRatio,S*=a.devicePixelRatio),h.shadowColor=m.color,h.shadowBlur=m.blur*a.browserShadowBlurConstant*(_+S)*(b.scaleX+b.scaleY)/4,h.shadowOffsetX=m.offsetX*_*b.scaleX,h.shadowOffsetY=m.offsetY*S*b.scaleY}},_removeShadow:function(h){!this.shadow||(h.shadowColor="",h.shadowBlur=h.shadowOffsetX=h.shadowOffsetY=0)},_applyPatternGradientTransform:function(h,m){if(!m||!m.toLive)return{offsetX:0,offsetY:0};var y=m.gradientTransform||m.patternTransform,b=-this.width/2+m.offsetX||0,_=-this.height/2+m.offsetY||0;return m.gradientUnits==="percentage"?h.transform(this.width,0,0,this.height,b,_):h.transform(1,0,0,1,b,_),y&&h.transform(y[0],y[1],y[2],y[3],y[4],y[5]),{offsetX:b,offsetY:_}},_renderPaintInOrder:function(h){this.paintFirst==="stroke"?(this._renderStroke(h),this._renderFill(h)):(this._renderFill(h),this._renderStroke(h))},_render:function(){},_renderFill:function(h){!this.fill||(h.save(),this._setFillStyles(h,this),this.fillRule==="evenodd"?h.fill("evenodd"):h.fill(),h.restore())},_renderStroke:function(h){if(!(!this.stroke||this.strokeWidth===0)){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(h),h.save(),this.strokeUniform&&this.group){var m=this.getObjectScaling();h.scale(1/m.scaleX,1/m.scaleY)}else this.strokeUniform&&h.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(h,this.strokeDashArray),this._setStrokeStyles(h,this),h.stroke(),h.restore()}},_applyPatternForTransformedGradient:function(h,m){var y=this._limitCacheSize(this._getCacheCanvasDimensions()),b=a.util.createCanvasElement(),_,S=this.canvas.getRetinaScaling(),x=y.x/this.scaleX/S,T=y.y/this.scaleY/S;b.width=Math.ceil(x),b.height=Math.ceil(T),_=b.getContext("2d"),_.beginPath(),_.moveTo(0,0),_.lineTo(x,0),_.lineTo(x,T),_.lineTo(0,T),_.closePath(),_.translate(x/2,T/2),_.scale(y.zoomX/this.scaleX/S,y.zoomY/this.scaleY/S),this._applyPatternGradientTransform(_,m),_.fillStyle=m.toLive(h),_.fill(),h.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),h.scale(S*this.scaleX/y.zoomX,S*this.scaleY/y.zoomY),h.strokeStyle=_.createPattern(b,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var h=a.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",h.scaleX),this.set("scaleY",h.scaleY),this.angle=h.angle,this.skewX=h.skewX,this.skewY=0}},_removeTransformMatrix:function(h){var m=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),m=a.util.transformPoint(m,this.transformMatrix)),this.transformMatrix=null,h&&(this.scaleX*=h.scaleX,this.scaleY*=h.scaleY,this.cropX=h.cropX,this.cropY=h.cropY,m.x+=h.offsetLeft,m.y+=h.offsetTop,this.width=h.width,this.height=h.height),this.setPositionByOrigin(m,"center","center")},clone:function(h,m){var y=this.toObject(m);this.constructor.fromObject?this.constructor.fromObject(y,h):a.Object._fromObject("Object",y,h)},cloneAsImage:function(h,m){var y=this.toCanvasElement(m);return h&&h(new a.Image(y)),this},toCanvasElement:function(h){h||(h={});var m=a.util,y=m.saveObjectTransform(this),b=this.group,_=this.shadow,S=Math.abs,x=(h.multiplier||1)*(h.enableRetinaScaling?a.devicePixelRatio:1);delete this.group,h.withoutTransform&&m.resetObjectTransform(this),h.withoutShadow&&(this.shadow=null);var T=a.util.createCanvasElement(),E=this.getBoundingRect(!0,!0),k=this.shadow,D,W={x:0,y:0},I,U,A;k&&(I=k.blur,k.nonScaling?D={scaleX:1,scaleY:1}:D=this.getObjectScaling(),W.x=2*Math.round(S(k.offsetX)+I)*S(D.scaleX),W.y=2*Math.round(S(k.offsetY)+I)*S(D.scaleY)),U=E.width+W.x,A=E.height+W.y,T.width=Math.ceil(U),T.height=Math.ceil(A);var ee=new a.StaticCanvas(T,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});h.format==="jpeg"&&(ee.backgroundColor="#fff"),this.setPositionByOrigin(new a.Point(ee.width/2,ee.height/2),"center","center");var de=this.canvas;ee.add(this);var z=ee.toCanvasElement(x||1,h);return this.shadow=_,this.set("canvas",de),b&&(this.group=b),this.set(y).setCoords(),ee._objects=[],ee.dispose(),ee=null,z},toDataURL:function(h){return h||(h={}),a.util.toDataURL(this.toCanvasElement(h),h.format||"png",h.quality||1)},isType:function(h){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===h},complexity:function(){return 1},toJSON:function(h){return this.toObject(h)},rotate:function(h){var m=(this.originX!=="center"||this.originY!=="center")&&this.centeredRotation;return m&&this._setOriginToCenter(),this.set("angle",h),m&&this._resetOrigin(),this},centerH:function(){return this.canvas&&this.canvas.centerObjectH(this),this},viewportCenterH:function(){return this.canvas&&this.canvas.viewportCenterObjectH(this),this},centerV:function(){return this.canvas&&this.canvas.centerObjectV(this),this},viewportCenterV:function(){return this.canvas&&this.canvas.viewportCenterObjectV(this),this},center:function(){return this.canvas&&this.canvas.centerObject(this),this},viewportCenter:function(){return this.canvas&&this.canvas.viewportCenterObject(this),this},getLocalPointer:function(h,m){m=m||this.canvas.getPointer(h);var y=new a.Point(m.x,m.y),b=this._getLeftTopCoords();return this.angle&&(y=a.util.rotatePoint(y,b,s(-this.angle))),{x:y.x-b.x,y:y.y-b.y}},_setupCompositeOperation:function(h){this.globalCompositeOperation&&(h.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){a.runningAnimations&&a.runningAnimations.cancelByTarget(this)}}),a.util.createAccessors&&a.util.createAccessors(a.Object),c(a.Object.prototype,a.Observable),a.Object.NUM_FRACTION_DIGITS=2,a.Object.ENLIVEN_PROPS=["clipPath"],a.Object._fromObject=function(h,m,y,b){var _=a[h];m=p(m,!0),a.util.enlivenPatterns([m.fill,m.stroke],function(S){typeof S[0]<"u"&&(m.fill=S[0]),typeof S[1]<"u"&&(m.stroke=S[1]),a.util.enlivenObjectEnlivables(m,m,function(){var x=b?new _(m[b],m):new _(m);y&&y(x)})})},a.Object.__uid=0)}(e),function(){var o=t.util.degreesToRadians,a={left:-.5,center:0,right:.5},c={top:-.5,center:0,bottom:.5};t.util.object.extend(t.Object.prototype,{translateToGivenOrigin:function(p,u,f,s,d){var v=p.x,h=p.y,m,y,b;return typeof u=="string"?u=a[u]:u-=.5,typeof s=="string"?s=a[s]:s-=.5,m=s-u,typeof f=="string"?f=c[f]:f-=.5,typeof d=="string"?d=c[d]:d-=.5,y=d-f,(m||y)&&(b=this._getTransformedDimensions(),v=p.x+m*b.x,h=p.y+y*b.y),new t.Point(v,h)},translateToCenterPoint:function(p,u,f){var s=this.translateToGivenOrigin(p,u,f,"center","center");return this.angle?t.util.rotatePoint(s,p,o(this.angle)):s},translateToOriginPoint:function(p,u,f){var s=this.translateToGivenOrigin(p,"center","center",u,f);return this.angle?t.util.rotatePoint(s,p,o(this.angle)):s},getCenterPoint:function(){var p=new t.Point(this.left,this.top);return this.translateToCenterPoint(p,this.originX,this.originY)},getPointByOrigin:function(p,u){var f=this.getCenterPoint();return this.translateToOriginPoint(f,p,u)},toLocalPoint:function(p,u,f){var s=this.getCenterPoint(),d,v;return typeof u<"u"&&typeof f<"u"?d=this.translateToGivenOrigin(s,"center","center",u,f):d=new t.Point(this.left,this.top),v=new t.Point(p.x,p.y),this.angle&&(v=t.util.rotatePoint(v,s,-o(this.angle))),v.subtractEquals(d)},setPositionByOrigin:function(p,u,f){var s=this.translateToCenterPoint(p,u,f),d=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",d.x),this.set("top",d.y)},adjustPosition:function(p){var u=o(this.angle),f=this.getScaledWidth(),s=t.util.cos(u)*f,d=t.util.sin(u)*f,v,h;typeof this.originX=="string"?v=a[this.originX]:v=this.originX-.5,typeof p=="string"?h=a[p]:h=p-.5,this.left+=s*(h-v),this.top+=d*(h-v),this.setCoords(),this.originX=p},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var p=this.getCenterPoint();this.originX="center",this.originY="center",this.left=p.x,this.top=p.y},_resetOrigin:function(){var p=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=p.x,this.top=p.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function o(f){return[new t.Point(f.tl.x,f.tl.y),new t.Point(f.tr.x,f.tr.y),new t.Point(f.br.x,f.br.y),new t.Point(f.bl.x,f.bl.y)]}var a=t.util,c=a.degreesToRadians,p=a.multiplyTransformMatrices,u=a.transformPoint;a.object.extend(t.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(f,s){return s?f?this.calcACoords():this.calcLineCoords():((!this.aCoords||!this.lineCoords)&&this.setCoords(!0),f?this.aCoords:this.lineCoords)},getCoords:function(f,s){return o(this._getCoords(f,s))},intersectsWithRect:function(f,s,d,v){var h=this.getCoords(d,v),m=t.Intersection.intersectPolygonRectangle(h,f,s);return m.status==="Intersection"},intersectsWithObject:function(f,s,d){var v=t.Intersection.intersectPolygonPolygon(this.getCoords(s,d),f.getCoords(s,d));return v.status==="Intersection"||f.isContainedWithinObject(this,s,d)||this.isContainedWithinObject(f,s,d)},isContainedWithinObject:function(f,s,d){for(var v=this.getCoords(s,d),h=s?f.aCoords:f.lineCoords,m=0,y=f._getImageLines(h);m<4;m++)if(!f.containsPoint(v[m],y))return!1;return!0},isContainedWithinRect:function(f,s,d,v){var h=this.getBoundingRect(d,v);return h.left>=f.x&&h.left+h.width<=s.x&&h.top>=f.y&&h.top+h.height<=s.y},containsPoint:function(f,m,d,v){var h=this._getCoords(d,v),m=m||this._getImageLines(h),y=this._findCrossPoints(f,m);return y!==0&&y%2===1},isOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,d=this.canvas.vptCoords.br,v=this.getCoords(!0,f);return v.some(function(h){return h.x<=d.x&&h.x>=s.x&&h.y<=d.y&&h.y>=s.y})||this.intersectsWithRect(s,d,!0,f)?!0:this._containsCenterOfCanvas(s,d,f)},_containsCenterOfCanvas:function(f,s,d){var v={x:(f.x+s.x)/2,y:(f.y+s.y)/2};return!!this.containsPoint(v,null,!0,d)},isPartiallyOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,d=this.canvas.vptCoords.br;if(this.intersectsWithRect(s,d,!0,f))return!0;var v=this.getCoords(!0,f).every(function(h){return(h.x>=d.x||h.x<=s.x)&&(h.y>=d.y||h.y<=s.y)});return v&&this._containsCenterOfCanvas(s,d,f)},_getImageLines:function(f){var s={topline:{o:f.tl,d:f.tr},rightline:{o:f.tr,d:f.br},bottomline:{o:f.br,d:f.bl},leftline:{o:f.bl,d:f.tl}};return s},_findCrossPoints:function(f,s){var d,v,h,m,y,b=0,_;for(var S in s)if(_=s[S],!(_.o.y<f.y&&_.d.y<f.y)&&!(_.o.y>=f.y&&_.d.y>=f.y)&&(_.o.x===_.d.x&&_.o.x>=f.x?y=_.o.x:(d=0,v=(_.d.y-_.o.y)/(_.d.x-_.o.x),h=f.y-d*f.x,m=_.o.y-v*_.o.x,y=-(h-m)/(d-v)),y>=f.x&&(b+=1),b===2))break;return b},getBoundingRect:function(f,s){var d=this.getCoords(f,s);return a.makeBoundingBoxFromPoints(d)},getScaledWidth:function(){return this._getTransformedDimensions().x},getScaledHeight:function(){return this._getTransformedDimensions().y},_constrainScale:function(f){return Math.abs(f)<this.minScaleLimit?f<0?-this.minScaleLimit:this.minScaleLimit:f===0?1e-4:f},scale:function(f){return this._set("scaleX",f),this._set("scaleY",f),this.setCoords()},scaleToWidth:function(f,s){var d=this.getBoundingRect(s).width/this.getScaledWidth();return this.scale(f/this.width/d)},scaleToHeight:function(f,s){var d=this.getBoundingRect(s).height/this.getScaledHeight();return this.scale(f/this.height/d)},calcLineCoords:function(){var f=this.getViewportTransform(),s=this.padding,d=c(this.angle),v=a.cos(d),h=a.sin(d),m=v*s,y=h*s,b=m+y,_=m-y,S=this.calcACoords(),x={tl:u(S.tl,f),tr:u(S.tr,f),bl:u(S.bl,f),br:u(S.br,f)};return s&&(x.tl.x-=_,x.tl.y-=b,x.tr.x+=b,x.tr.y-=_,x.bl.x-=b,x.bl.y+=_,x.br.x+=_,x.br.y+=b),x},calcOCoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),d=this.getViewportTransform(),v=p(d,s),h=p(v,f),h=p(h,[1/d[0],0,0,1/d[3],0,0]),m=this._calculateCurrentDimensions(),y={};return this.forEachControl(function(b,_,S){y[_]=b.positionHandler(m,h,S)}),y},calcACoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),d=p(s,f),v=this._getTransformedDimensions(),h=v.x/2,m=v.y/2;return{tl:u({x:-h,y:-m},d),tr:u({x:h,y:-m},d),bl:u({x:-h,y:m},d),br:u({x:h,y:m},d)}},setCoords:function(f){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),f?this:(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords(),this)},_calcRotateMatrix:function(){return a.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var f=this.getCenterPoint();return[1,0,0,1,f.x,f.y]},transformMatrixKey:function(f){var s="_",d="";return!f&&this.group&&(d=this.group.transformMatrixKey(f)+s),d+this.top+s+this.left+s+this.scaleX+s+this.scaleY+s+this.skewX+s+this.skewY+s+this.angle+s+this.originX+s+this.originY+s+this.width+s+this.height+s+this.strokeWidth+this.flipX+this.flipY},calcTransformMatrix:function(f){var s=this.calcOwnMatrix();if(f||!this.group)return s;var d=this.transformMatrixKey(f),v=this.matrixCache||(this.matrixCache={});return v.key===d?v.value:(this.group&&(s=p(this.group.calcTransformMatrix(!1),s)),v.key=d,v.value=s,s)},calcOwnMatrix:function(){var f=this.transformMatrixKey(!0),s=this.ownMatrixCache||(this.ownMatrixCache={});if(s.key===f)return s.value;var d=this._calcTranslateMatrix(),v={angle:this.angle,translateX:d[4],translateY:d[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return s.key=f,s.value=a.composeMatrix(v),s.value},_getNonTransformedDimensions:function(){var f=this.strokeWidth,s=this.width+f,d=this.height+f;return{x:s,y:d}},_getTransformedDimensions:function(f,s){typeof f>"u"&&(f=this.skewX),typeof s>"u"&&(s=this.skewY);var d,v,h,m=f===0&&s===0;if(this.strokeUniform?(v=this.width,h=this.height):(d=this._getNonTransformedDimensions(),v=d.x,h=d.y),m)return this._finalizeDimensions(v*this.scaleX,h*this.scaleY);var y=a.sizeAfterTransform(v,h,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:f,skewY:s});return this._finalizeDimensions(y.x,y.y)},_finalizeDimensions:function(f,s){return this.strokeUniform?{x:f+this.strokeWidth,y:s+this.strokeWidth}:{x:f,y:s}},_calculateCurrentDimensions:function(){var f=this.getViewportTransform(),s=this._getTransformedDimensions(),d=u(s,f,!0);return d.scalarAdd(2*this.padding)}})}(),t.util.object.extend(t.Object.prototype,{sendToBack:function(){return this.group?t.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?t.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(o){return this.group?t.StaticCanvas.prototype.sendBackwards.call(this.group,this,o):this.canvas&&this.canvas.sendBackwards(this,o),this},bringForward:function(o){return this.group?t.StaticCanvas.prototype.bringForward.call(this.group,this,o):this.canvas&&this.canvas.bringForward(this,o),this},moveTo:function(o){return this.group&&this.group.type!=="activeSelection"?t.StaticCanvas.prototype.moveTo.call(this.group,this,o):this.canvas&&this.canvas.moveTo(this,o),this}}),function(){function o(c,p){if(p){if(p.toLive)return c+": url(#SVGID_"+p.id+"); ";var u=new t.Color(p),f=c+": "+u.toRgb()+"; ",s=u.getAlpha();return s!==1&&(f+=c+"-opacity: "+s.toString()+"; "),f}else return c+": none; "}var a=t.util.toFixed;t.util.object.extend(t.Object.prototype,{getSvgStyles:function(c){var p=this.fillRule?this.fillRule:"nonzero",u=this.strokeWidth?this.strokeWidth:"0",f=this.strokeDashArray?this.strokeDashArray.join(" "):"none",s=this.strokeDashOffset?this.strokeDashOffset:"0",d=this.strokeLineCap?this.strokeLineCap:"butt",v=this.strokeLineJoin?this.strokeLineJoin:"miter",h=this.strokeMiterLimit?this.strokeMiterLimit:"4",m=typeof this.opacity<"u"?this.opacity:"1",y=this.visible?"":" visibility: hidden;",b=c?"":this.getSvgFilter(),_=o("fill",this.fill),S=o("stroke",this.stroke);return[S,"stroke-width: ",u,"; ","stroke-dasharray: ",f,"; ","stroke-linecap: ",d,"; ","stroke-dashoffset: ",s,"; ","stroke-linejoin: ",v,"; ","stroke-miterlimit: ",h,"; ",_,"fill-rule: ",p,"; ","opacity: ",m,";",b,y].join("")},getSvgSpanStyles:function(c,p){var u="; ",s=c.fontFamily?"font-family: "+(c.fontFamily.indexOf("'")===-1&&c.fontFamily.indexOf('"')===-1?"'"+c.fontFamily+"'":c.fontFamily)+u:"",f=c.strokeWidth?"stroke-width: "+c.strokeWidth+u:"",s=s,d=c.fontSize?"font-size: "+c.fontSize+"px"+u:"",v=c.fontStyle?"font-style: "+c.fontStyle+u:"",h=c.fontWeight?"font-weight: "+c.fontWeight+u:"",m=c.fill?o("fill",c.fill):"",y=c.stroke?o("stroke",c.stroke):"",b=this.getSvgTextDecoration(c),_=c.deltaY?"baseline-shift: "+-c.deltaY+"; ":"";return b&&(b="text-decoration: "+b+u),[y,f,s,d,v,h,b,m,_,p?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(c){return["overline","underline","line-through"].filter(function(p){return c[p.replace("-","")]}).join(" ")},getSvgFilter:function(){return this.shadow?"filter: url(#SVGID_"+this.shadow.id+");":""},getSvgCommons:function(){return[this.id?'id="'+this.id+'" ':"",this.clipPath?'clip-path="url(#'+this.clipPath.clipPathId+')" ':""].join("")},getSvgTransform:function(c,p){var u=c?this.calcTransformMatrix():this.calcOwnMatrix(),f='transform="'+t.util.matrixToSVG(u);return f+(p||"")+'" '},_setSVGBg:function(c){if(this.backgroundColor){var p=t.Object.NUM_FRACTION_DIGITS;c.push(" <rect ",this._getFillAttributes(this.backgroundColor),' x="',a(-this.width/2,p),'" y="',a(-this.height/2,p),'" width="',a(this.width,p),'" height="',a(this.height,p),`"></rect>
`)}},toSVG:function(c){return this._createBaseSVGMarkup(this._toSVG(c),{reviver:c})},toClipPathSVG:function(c){return" "+this._createBaseClipPathSVGMarkup(this._toSVG(c),{reviver:c})},_createBaseClipPathSVGMarkup:function(c,p){p=p||{};var u=p.reviver,f=p.additionalTransform||"",s=[this.getSvgTransform(!0,f),this.getSvgCommons()].join(""),d=c.indexOf("COMMON_PARTS");return c[d]=s,u?u(c.join("")):c.join("")},_createBaseSVGMarkup:function(c,p){p=p||{};var u=p.noStyle,f=p.reviver,s=u?"":'style="'+this.getSvgStyles()+'" ',d=p.withShadow?'style="'+this.getSvgFilter()+'" ':"",v=this.clipPath,h=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",m=v&&v.absolutePositioned,y=this.stroke,b=this.fill,_=this.shadow,S,x=[],T,E=c.indexOf("COMMON_PARTS"),k=p.additionalTransform;return v&&(v.clipPathId="CLIPPATH_"+t.Object.__uid++,T='<clipPath id="'+v.clipPathId+`" >
`+v.toClipPathSVG(f)+`</clipPath>
`),m&&x.push("<g ",d,this.getSvgCommons(),` >
`),x.push("<g ",this.getSvgTransform(!1),m?"":d+this.getSvgCommons(),` >
`),S=[s,h,u?"":this.addPaintOrder()," ",k?'transform="'+k+'" ':""].join(""),c[E]=S,b&&b.toLive&&x.push(b.toSVG(this)),y&&y.toLive&&x.push(y.toSVG(this)),_&&x.push(_.toSVG(this)),v&&x.push(T),x.push(c.join("")),x.push(`</g>
`),m&&x.push(`</g>
`),f?f(x.join("")):x.join("")},addPaintOrder:function(){return this.paintFirst!=="fill"?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var o=t.util.object.extend,a="stateProperties";function c(u,f,s){var d={},v=!0;s.forEach(function(h){d[h]=u[h]}),o(u[f],d,v)}function p(u,f,s){if(u===f)return!0;if(Array.isArray(u)){if(!Array.isArray(f)||u.length!==f.length)return!1;for(var d=0,v=u.length;d<v;d++)if(!p(u[d],f[d]))return!1;return!0}else if(u&&typeof u=="object"){var h=Object.keys(u),m;if(!f||typeof f!="object"||!s&&h.length!==Object.keys(f).length)return!1;for(var d=0,v=h.length;d<v;d++)if(m=h[d],!(m==="canvas"||m==="group")&&!p(u[m],f[m]))return!1;return!0}}t.util.object.extend(t.Object.prototype,{hasStateChanged:function(u){u=u||a;var f="_"+u;return Object.keys(this[f]).length<this[u].length?!0:!p(this[f],this,!0)},saveState:function(u){var f=u&&u.propertySet||a,s="_"+f;return this[s]?(c(this,s,this[f]),u&&u.stateProperties&&c(this,s,u.stateProperties),this):this.setupState(u)},setupState:function(u){u=u||{};var f=u.propertySet||a;return u.propertySet=f,this["_"+f]={},this.saveState(u),this}})}(),function(){var o=t.util.degreesToRadians;t.util.object.extend(t.Object.prototype,{_findTargetCorner:function(a,c){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var p=a.x,u=a.y,f,s,d=Object.keys(this.oCoords),v=d.length-1,h;for(this.__corner=0;v>=0;v--)if(h=d[v],!!this.isControlVisible(h)&&(s=this._getImageLines(c?this.oCoords[h].touchCorner:this.oCoords[h].corner),f=this._findCrossPoints({x:p,y:u},s),f!==0&&f%2===1))return this.__corner=h,h;return!1},forEachControl:function(a){for(var c in this.controls)a(this.controls[c],c,this)},_setCornerCoords:function(){var a=this.oCoords;for(var c in a){var p=this.controls[c];a[c].corner=p.calcCornerCoords(this.angle,this.cornerSize,a[c].x,a[c].y,!1),a[c].touchCorner=p.calcCornerCoords(this.angle,this.touchCornerSize,a[c].x,a[c].y,!0)}},drawSelectionBackground:function(a){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;a.save();var c=this.getCenterPoint(),p=this._calculateCurrentDimensions(),u=this.canvas.viewportTransform;return a.translate(c.x,c.y),a.scale(1/u[0],1/u[3]),a.rotate(o(this.angle)),a.fillStyle=this.selectionBackgroundColor,a.fillRect(-p.x/2,-p.y/2,p.x,p.y),a.restore(),this},drawBorders:function(a,c){c=c||{};var p=this._calculateCurrentDimensions(),u=this.borderScaleFactor,f=p.x+u,s=p.y+u,d=typeof c.hasControls<"u"?c.hasControls:this.hasControls,v=!1;return a.save(),a.strokeStyle=c.borderColor||this.borderColor,this._setLineDash(a,c.borderDashArray||this.borderDashArray),a.strokeRect(-f/2,-s/2,f,s),d&&(a.beginPath(),this.forEachControl(function(h,m,y){h.withConnection&&h.getVisibility(y,m)&&(v=!0,a.moveTo(h.x*f,h.y*s),a.lineTo(h.x*f+h.offsetX,h.y*s+h.offsetY))}),v&&a.stroke()),a.restore(),this},drawBordersInGroup:function(a,c,p){p=p||{};var u=t.util.sizeAfterTransform(this.width,this.height,c),f=this.strokeWidth,s=this.strokeUniform,d=this.borderScaleFactor,v=u.x+f*(s?this.canvas.getZoom():c.scaleX)+d,h=u.y+f*(s?this.canvas.getZoom():c.scaleY)+d;return a.save(),this._setLineDash(a,p.borderDashArray||this.borderDashArray),a.strokeStyle=p.borderColor||this.borderColor,a.strokeRect(-v/2,-h/2,v,h),a.restore(),this},drawControls:function(a,c){c=c||{},a.save();var p=1,u,f;return this.canvas&&(p=this.canvas.getRetinaScaling()),a.setTransform(p,0,0,p,0,0),a.strokeStyle=a.fillStyle=c.cornerColor||this.cornerColor,this.transparentCorners||(a.strokeStyle=c.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(a,c.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(u=this.group.calcTransformMatrix()),this.forEachControl(function(s,d,v){f=v.oCoords[d],s.getVisibility(v,d)&&(u&&(f=t.util.transformPoint(f,u)),s.render(a,f.x,f.y,c,v))}),a.restore(),this},isControlVisible:function(a){return this.controls[a]&&this.controls[a].getVisibility(this,a)},setControlVisible:function(a,c){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[a]=c,this},setControlsVisibility:function(a){a||(a={});for(var c in a)this.setControlVisible(c,a[c]);return this},onDeselect:function(){},onSelect:function(){}})}(),t.util.object.extend(t.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(o,a){a=a||{};var c=function(){},p=a.onComplete||c,u=a.onChange||c,f=this;return t.util.animate({target:this,startValue:o.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(s){o.set("left",s),f.requestRenderAll(),u()},onComplete:function(){o.setCoords(),p()}})},fxCenterObjectV:function(o,a){a=a||{};var c=function(){},p=a.onComplete||c,u=a.onChange||c,f=this;return t.util.animate({target:this,startValue:o.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(s){o.set("top",s),f.requestRenderAll(),u()},onComplete:function(){o.setCoords(),p()}})},fxRemove:function(o,a){a=a||{};var c=function(){},p=a.onComplete||c,u=a.onChange||c,f=this;return t.util.animate({target:this,startValue:o.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(s){o.set("opacity",s),f.requestRenderAll(),u()},onComplete:function(){f.remove(o),p()}})}}),t.util.object.extend(t.Object.prototype,{animate:function(){if(arguments[0]&&typeof arguments[0]=="object"){var o=[],a,c,p=[];for(a in arguments[0])o.push(a);for(var u=0,f=o.length;u<f;u++)a=o[u],c=u!==f-1,p.push(this._animate(a,arguments[0][a],arguments[1],c));return p}else return this._animate.apply(this,arguments)},_animate:function(o,a,c,p){var u=this,f;a=a.toString(),c?c=t.util.object.clone(c):c={},~o.indexOf(".")&&(f=o.split("."));var s=u.colorProperties.indexOf(o)>-1||f&&u.colorProperties.indexOf(f[1])>-1,d=f?this.get(f[0])[f[1]]:this.get(o);"from"in c||(c.from=d),s||(~a.indexOf("=")?a=d+parseFloat(a.replace("=","")):a=parseFloat(a));var v={target:this,startValue:c.from,endValue:a,byValue:c.by,easing:c.easing,duration:c.duration,abort:c.abort&&function(h,m,y){return c.abort.call(u,h,m,y)},onChange:function(h,m,y){f?u[f[0]][f[1]]=h:u.set(o,h),!p&&c.onChange&&c.onChange(h,m,y)},onComplete:function(h,m,y){p||(u.setCoords(),c.onComplete&&c.onComplete(h,m,y))}};return s?t.util.animateColor(v.startValue,v.endValue,v.duration,v):t.util.animate(v)}}),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,p=a.util.object.clone,u={x1:1,x2:1,y1:1,y2:1};if(a.Line){a.warn("fabric.Line is already defined");return}a.Line=a.util.createClass(a.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:a.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(s,d){s||(s=[0,0,0,0]),this.callSuper("initialize",d),this.set("x1",s[0]),this.set("y1",s[1]),this.set("x2",s[2]),this.set("y2",s[3]),this._setWidthHeight(d)},_setWidthHeight:function(s){s||(s={}),this.width=Math.abs(this.x2-this.x1),this.height=Math.abs(this.y2-this.y1),this.left="left"in s?s.left:this._getLeftToOriginX(),this.top="top"in s?s.top:this._getTopToOriginY()},_set:function(s,d){return this.callSuper("_set",s,d),typeof u[s]<"u"&&this._setWidthHeight(),this},_getLeftToOriginX:f({origin:"originX",axis1:"x1",axis2:"x2",dimension:"width"},{nearest:"left",center:"center",farthest:"right"}),_getTopToOriginY:f({origin:"originY",axis1:"y1",axis2:"y2",dimension:"height"},{nearest:"top",center:"center",farthest:"bottom"}),_render:function(s){s.beginPath();var d=this.calcLinePoints();s.moveTo(d.x1,d.y1),s.lineTo(d.x2,d.y2),s.lineWidth=this.strokeWidth;var v=s.strokeStyle;s.strokeStyle=this.stroke||s.fillStyle,this.stroke&&this._renderStroke(s),s.strokeStyle=v},_findCenterFromElement:function(){return{x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2}},toObject:function(s){return c(this.callSuper("toObject",s),this.calcLinePoints())},_getNonTransformedDimensions:function(){var s=this.callSuper("_getNonTransformedDimensions");return this.strokeLineCap==="butt"&&(this.width===0&&(s.y-=this.strokeWidth),this.height===0&&(s.x-=this.strokeWidth)),s},calcLinePoints:function(){var s=this.x1<=this.x2?-1:1,d=this.y1<=this.y2?-1:1,v=s*this.width*.5,h=d*this.height*.5,m=s*this.width*-.5,y=d*this.height*-.5;return{x1:v,x2:m,y1:h,y2:y}},_toSVG:function(){var s=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',s.x1,'" y1="',s.y1,'" x2="',s.x2,'" y2="',s.y2,`" />
`]}}),a.Line.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),a.Line.fromElement=function(s,d,v){v=v||{};var h=a.parseAttributes(s,a.Line.ATTRIBUTE_NAMES),m=[h.x1||0,h.y1||0,h.x2||0,h.y2||0];d(new a.Line(m,c(h,v)))},a.Line.fromObject=function(s,d){function v(m){delete m.points,d&&d(m)}var h=p(s,!0);h.points=[s.x1,s.y1,s.x2,s.y2],a.Object._fromObject("Line",h,v,"points")};function f(s,d){var v=s.origin,h=s.axis1,m=s.axis2,y=s.dimension,b=d.nearest,_=d.center,S=d.farthest;return function(){switch(this.get(v)){case b:return Math.min(this.get(h),this.get(m));case _:return Math.min(this.get(h),this.get(m))+.5*this.get(y);case S:return Math.max(this.get(h),this.get(m))}}}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.degreesToRadians;if(a.Circle){a.warn("fabric.Circle is already defined.");return}a.Circle=a.util.createClass(a.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:a.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(u,f){return this.callSuper("_set",u,f),u==="radius"&&this.setRadius(f),this},toObject:function(u){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(u))},_toSVG:function(){var u,f=0,s=0,d=(this.endAngle-this.startAngle)%360;if(d===0)u=["<circle ","COMMON_PARTS",'cx="'+f+'" cy="'+s+'" ','r="',this.radius,`" />
`];else{var v=c(this.startAngle),h=c(this.endAngle),m=this.radius,y=a.util.cos(v)*m,b=a.util.sin(v)*m,_=a.util.cos(h)*m,S=a.util.sin(h)*m,x=d>180?"1":"0";u=['<path d="M '+y+" "+b," A "+m+" "+m," 0 ",+x+" 1"," "+_+" "+S,'" ',"COMMON_PARTS",` />
`]}return u},_render:function(u){u.beginPath(),u.arc(0,0,this.radius,c(this.startAngle),c(this.endAngle),!1),this._renderPaintInOrder(u)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(u){return this.radius=u,this.set("width",u*2).set("height",u*2)}}),a.Circle.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),a.Circle.fromElement=function(u,f){var s=a.parseAttributes(u,a.Circle.ATTRIBUTE_NAMES);if(!p(s))throw new Error("value of `r` attribute is required and can not be negative");s.left=(s.left||0)-s.radius,s.top=(s.top||0)-s.radius,f(new a.Circle(s))};function p(u){return"radius"in u&&u.radius>=0}a.Circle.fromObject=function(u,f){a.Object._fromObject("Circle",u,f)}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Triangle){a.warn("fabric.Triangle is already defined");return}a.Triangle=a.util.createClass(a.Object,{type:"triangle",width:100,height:100,_render:function(c){var p=this.width/2,u=this.height/2;c.beginPath(),c.moveTo(-p,u),c.lineTo(0,-u),c.lineTo(p,u),c.closePath(),this._renderPaintInOrder(c)},_toSVG:function(){var c=this.width/2,p=this.height/2,u=[-c+" "+p,"0 "+-p,c+" "+p].join(",");return["<polygon ","COMMON_PARTS",'points="',u,'" />']}}),a.Triangle.fromObject=function(c,p){return a.Object._fromObject("Triangle",c,p)}}(e),function(o){var a=o.fabric||(o.fabric={}),c=Math.PI*2;if(a.Ellipse){a.warn("fabric.Ellipse is already defined.");return}a.Ellipse=a.util.createClass(a.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:a.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(p){this.callSuper("initialize",p),this.set("rx",p&&p.rx||0),this.set("ry",p&&p.ry||0)},_set:function(p,u){switch(this.callSuper("_set",p,u),p){case"rx":this.rx=u,this.set("width",u*2);break;case"ry":this.ry=u,this.set("height",u*2);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(p){return this.callSuper("toObject",["rx","ry"].concat(p))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,`" />
`]},_render:function(p){p.beginPath(),p.save(),p.transform(1,0,0,this.ry/this.rx,0,0),p.arc(0,0,this.rx,0,c,!1),p.restore(),this._renderPaintInOrder(p)}}),a.Ellipse.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),a.Ellipse.fromElement=function(p,u){var f=a.parseAttributes(p,a.Ellipse.ATTRIBUTE_NAMES);f.left=(f.left||0)-f.rx,f.top=(f.top||0)-f.ry,u(new a.Ellipse(f))},a.Ellipse.fromObject=function(p,u){a.Object._fromObject("Ellipse",p,u)}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend;if(a.Rect){a.warn("fabric.Rect is already defined");return}a.Rect=a.util.createClass(a.Object,{stateProperties:a.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:a.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(p){this.callSuper("initialize",p),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(p){var u=this.rx?Math.min(this.rx,this.width/2):0,f=this.ry?Math.min(this.ry,this.height/2):0,s=this.width,d=this.height,v=-this.width/2,h=-this.height/2,m=u!==0||f!==0,y=1-.5522847498;p.beginPath(),p.moveTo(v+u,h),p.lineTo(v+s-u,h),m&&p.bezierCurveTo(v+s-y*u,h,v+s,h+y*f,v+s,h+f),p.lineTo(v+s,h+d-f),m&&p.bezierCurveTo(v+s,h+d-y*f,v+s-y*u,h+d,v+s-u,h+d),p.lineTo(v+u,h+d),m&&p.bezierCurveTo(v+y*u,h+d,v,h+d-y*f,v,h+d-f),p.lineTo(v,h+f),m&&p.bezierCurveTo(v,h+y*f,v+y*u,h,v+u,h),p.closePath(),this._renderPaintInOrder(p)},toObject:function(p){return this.callSuper("toObject",["rx","ry"].concat(p))},_toSVG:function(){var p=-this.width/2,u=-this.height/2;return["<rect ","COMMON_PARTS",'x="',p,'" y="',u,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,`" />
`]}}),a.Rect.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),a.Rect.fromElement=function(p,u,f){if(!p)return u(null);f=f||{};var s=a.parseAttributes(p,a.Rect.ATTRIBUTE_NAMES);s.left=s.left||0,s.top=s.top||0,s.height=s.height||0,s.width=s.width||0;var d=new a.Rect(c(f?a.util.object.clone(f):{},s));d.visible=d.visible&&d.width>0&&d.height>0,u(d)},a.Rect.fromObject=function(p,u){return a.Object._fromObject("Rect",p,u)}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,p=a.util.array.min,u=a.util.array.max,f=a.util.toFixed,s=a.util.projectStrokeOnPoints;if(a.Polyline){a.warn("fabric.Polyline is already defined");return}a.Polyline=a.util.createClass(a.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:a.Object.prototype.cacheProperties.concat("points"),initialize:function(d,v){v=v||{},this.points=d||[],this.callSuper("initialize",v),this._setPositionDimensions(v)},_projectStrokeOnPoints:function(){return s(this.points,this,!0)},_setPositionDimensions:function(d){var v=this._calcDimensions(d),h,m=this.exactBoundingBox?this.strokeWidth:0;this.width=v.width-m,this.height=v.height-m,d.fromSVG||(h=this.translateToGivenOrigin({x:v.left-this.strokeWidth/2+m/2,y:v.top-this.strokeWidth/2+m/2},"left","top",this.originX,this.originY)),typeof d.left>"u"&&(this.left=d.fromSVG?v.left:h.x),typeof d.top>"u"&&(this.top=d.fromSVG?v.top:h.y),this.pathOffset={x:v.left+this.width/2+m/2,y:v.top+this.height/2+m/2}},_calcDimensions:function(){var d=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,v=p(d,"x")||0,h=p(d,"y")||0,m=u(d,"x")||0,y=u(d,"y")||0,b=m-v,_=y-h;return{left:v,top:h,width:b,height:_}},toObject:function(d){return c(this.callSuper("toObject",d),{points:this.points.concat()})},_toSVG:function(){for(var d=[],v=this.pathOffset.x,h=this.pathOffset.y,m=a.Object.NUM_FRACTION_DIGITS,y=0,b=this.points.length;y<b;y++)d.push(f(this.points[y].x-v,m),",",f(this.points[y].y-h,m)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',d.join(""),`" />
`]},commonRender:function(d){var v,h=this.points.length,m=this.pathOffset.x,y=this.pathOffset.y;if(!h||isNaN(this.points[h-1].y))return!1;d.beginPath(),d.moveTo(this.points[0].x-m,this.points[0].y-y);for(var b=0;b<h;b++)v=this.points[b],d.lineTo(v.x-m,v.y-y);return!0},_render:function(d){!this.commonRender(d)||this._renderPaintInOrder(d)},complexity:function(){return this.get("points").length}}),a.Polyline.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polyline.fromElementGenerator=function(d){return function(v,h,m){if(!v)return h(null);m||(m={});var y=a.parsePointsAttribute(v.getAttribute("points")),b=a.parseAttributes(v,a[d].ATTRIBUTE_NAMES);b.fromSVG=!0,h(new a[d](y,c(b,m)))}},a.Polyline.fromElement=a.Polyline.fromElementGenerator("Polyline"),a.Polyline.fromObject=function(d,v){return a.Object._fromObject("Polyline",d,v,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.projectStrokeOnPoints;if(a.Polygon){a.warn("fabric.Polygon is already defined");return}a.Polygon=a.util.createClass(a.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return c(this.points,this)},_render:function(p){!this.commonRender(p)||(p.closePath(),this._renderPaintInOrder(p))}}),a.Polygon.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polygon.fromElement=a.Polyline.fromElementGenerator("Polygon"),a.Polygon.fromObject=function(p,u){a.Object._fromObject("Polygon",p,u,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.array.min,p=a.util.array.max,u=a.util.object.extend,f=a.util.object.clone,s=a.util.toFixed;if(a.Path){a.warn("fabric.Path is already defined");return}a.Path=a.util.createClass(a.Object,{type:"path",path:null,cacheProperties:a.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:a.Object.prototype.stateProperties.concat("path"),initialize:function(d,v){v=f(v||{}),delete v.path,this.callSuper("initialize",v),this._setPath(d||[],v)},_setPath:function(d,v){this.path=a.util.makePathSimpler(Array.isArray(d)?d:a.util.parsePath(d)),a.Polyline.prototype._setPositionDimensions.call(this,v||{})},_renderPathCommands:function(d){var v,h=0,m=0,y=0,b=0,_=0,S=0,x=-this.pathOffset.x,T=-this.pathOffset.y;d.beginPath();for(var E=0,k=this.path.length;E<k;++E)switch(v=this.path[E],v[0]){case"L":y=v[1],b=v[2],d.lineTo(y+x,b+T);break;case"M":y=v[1],b=v[2],h=y,m=b,d.moveTo(y+x,b+T);break;case"C":y=v[5],b=v[6],_=v[3],S=v[4],d.bezierCurveTo(v[1]+x,v[2]+T,_+x,S+T,y+x,b+T);break;case"Q":d.quadraticCurveTo(v[1]+x,v[2]+T,v[3]+x,v[4]+T),y=v[3],b=v[4],_=v[1],S=v[2];break;case"z":case"Z":y=h,b=m,d.closePath();break}},_render:function(d){this._renderPathCommands(d),this._renderPaintInOrder(d)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(d){return u(this.callSuper("toObject",d),{path:this.path.map(function(v){return v.slice()})})},toDatalessObject:function(d){var v=this.toObject(["sourcePath"].concat(d));return v.sourcePath&&delete v.path,v},_toSVG:function(){var d=a.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',d,'" stroke-linecap="round" ',`/>
`]},_getOffsetTransform:function(){var d=a.Object.NUM_FRACTION_DIGITS;return" translate("+s(-this.pathOffset.x,d)+", "+s(-this.pathOffset.y,d)+")"},toClipPathSVG:function(d){var v=this._getOffsetTransform();return" "+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:d,additionalTransform:v})},toSVG:function(d){var v=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:d,additionalTransform:v})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var d=[],v=[],h,m=0,y=0,b=0,_=0,S,x=0,T=this.path.length;x<T;++x){switch(h=this.path[x],h[0]){case"L":b=h[1],_=h[2],S=[];break;case"M":b=h[1],_=h[2],m=b,y=_,S=[];break;case"C":S=a.util.getBoundsOfCurve(b,_,h[1],h[2],h[3],h[4],h[5],h[6]),b=h[5],_=h[6];break;case"Q":S=a.util.getBoundsOfCurve(b,_,h[1],h[2],h[1],h[2],h[3],h[4]),b=h[3],_=h[4];break;case"z":case"Z":b=m,_=y;break}S.forEach(function(A){d.push(A.x),v.push(A.y)}),d.push(b),v.push(_)}var E=c(d)||0,k=c(v)||0,D=p(d)||0,W=p(v)||0,I=D-E,U=W-k;return{left:E,top:k,width:I,height:U}}}),a.Path.fromObject=function(d,v){if(typeof d.sourcePath=="string"){var h=d.sourcePath;a.loadSVGFromURL(h,function(m){var y=m[0];y.setOptions(d),d.clipPath?a.util.enlivenObjects([d.clipPath],function(b){y.clipPath=b[0],v&&v(y)}):v&&v(y)})}else a.Object._fromObject("Path",d,v,"path")},a.Path.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(["d"]),a.Path.fromElement=function(d,v,h){var m=a.parseAttributes(d,a.Path.ATTRIBUTE_NAMES);m.fromSVG=!0,v(new a.Path(m.d,u(m,h)))}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.array.min,p=a.util.array.max;a.Group||(a.Group=a.util.createClass(a.Object,a.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(u,f,s){f=f||{},this._objects=[],s&&this.callSuper("initialize",f),this._objects=u||[];for(var d=this._objects.length;d--;)this._objects[d].group=this;if(s)this._updateObjectsACoords();else{var v=f&&f.centerPoint;f.originX!==void 0&&(this.originX=f.originX),f.originY!==void 0&&(this.originY=f.originY),v||this._calcBounds(),this._updateObjectsCoords(v),delete f.centerPoint,this.callSuper("initialize",f)}this.setCoords()},_updateObjectsACoords:function(){for(var u=!0,f=this._objects.length;f--;)this._objects[f].setCoords(u)},_updateObjectsCoords:function(f){for(var f=f||this.getCenterPoint(),s=this._objects.length;s--;)this._updateObjectCoords(this._objects[s],f)},_updateObjectCoords:function(u,f){var s=u.left,d=u.top,v=!0;u.set({left:s-f.x,top:d-f.y}),u.group=this,u.setCoords(v)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(u){var f=!!this.group;return this._restoreObjectsState(),a.util.resetObjectTransform(this),u&&(f&&a.util.removeTransformFromObject(u,this.group.calcTransformMatrix()),this._objects.push(u),u.group=this,u._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,f?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(u){return this._restoreObjectsState(),a.util.resetObjectTransform(this),this.remove(u),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(u){this.dirty=!0,u.group=this,u._set("canvas",this.canvas)},_onObjectRemoved:function(u){this.dirty=!0,delete u.group},_set:function(u,f){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(u,f);if(u==="canvas")for(;s--;)this._objects[s]._set(u,f);a.Object.prototype._set.call(this,u,f)},toObject:function(u){var f=this.includeDefaultValues,s=this._objects.filter(function(v){return!v.excludeFromExport}).map(function(v){var h=v.includeDefaultValues;v.includeDefaultValues=f;var m=v.toObject(u);return v.includeDefaultValues=h,m}),d=a.Object.prototype.toObject.call(this,u);return d.objects=s,d},toDatalessObject:function(u){var f,s=this.sourcePath;if(s)f=s;else{var d=this.includeDefaultValues;f=this._objects.map(function(h){var m=h.includeDefaultValues;h.includeDefaultValues=d;var y=h.toDatalessObject(u);return h.includeDefaultValues=m,y})}var v=a.Object.prototype.toDatalessObject.call(this,u);return v.objects=f,v},render:function(u){this._transformDone=!0,this.callSuper("render",u),this._transformDone=!1},shouldCache:function(){var u=a.Object.prototype.shouldCache.call(this);if(u){for(var f=0,s=this._objects.length;f<s;f++)if(this._objects[f].willDrawShadow())return this.ownCaching=!1,!1}return u},willDrawShadow:function(){if(a.Object.prototype.willDrawShadow.call(this))return!0;for(var u=0,f=this._objects.length;u<f;u++)if(this._objects[u].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(u){for(var f=0,s=this._objects.length;f<s;f++)this._objects[f].render(u);this._drawClipPath(u,this.clipPath)},isCacheDirty:function(u){if(this.callSuper("isCacheDirty",u))return!0;if(!this.statefullCache)return!1;for(var f=0,s=this._objects.length;f<s;f++)if(this._objects[f].isCacheDirty(!0)){if(this._cacheCanvas){var d=this.cacheWidth/this.zoomX,v=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-d/2,-v/2,d,v)}return!0}return!1},_restoreObjectsState:function(){var u=this.calcOwnMatrix();return this._objects.forEach(function(f){a.util.addTransformToObject(f,u),delete f.group,f.setCoords()}),this},destroy:function(){return this._objects.forEach(function(u){u.set("dirty",!0)}),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject(function(u){u.dispose&&u.dispose()}),this._objects=[]},toActiveSelection:function(){if(!!this.canvas){var u=this._objects,f=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var d=new a.ActiveSelection([]);return d.set(s),d.type="activeSelection",f.remove(this),u.forEach(function(v){v.group=d,v.dirty=!0,f.add(v)}),d.canvas=f,d._objects=u,f._activeObject=d,d.setCoords(),d}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var u=!0;return this.forEachObject(function(f){f.setCoords(u)}),this},_calcBounds:function(u){for(var f=[],s=[],d,v,h,m=["tr","br","bl","tl"],y=0,b=this._objects.length,_,S=m.length;y<b;++y){for(d=this._objects[y],h=d.calcACoords(),_=0;_<S;_++)v=m[_],f.push(h[v].x),s.push(h[v].y);d.aCoords=h}this._getBounds(f,s,u)},_getBounds:function(u,f,s){var d=new a.Point(c(u),c(f)),v=new a.Point(p(u),p(f)),h=d.y||0,m=d.x||0,y=v.x-d.x||0,b=v.y-d.y||0;this.width=y,this.height=b,s||this.setPositionByOrigin({x:m,y:h},"left","top")},_toSVG:function(u){for(var f=["<g ","COMMON_PARTS",` >
`],s=0,d=this._objects.length;s<d;s++)f.push(" ",this._objects[s].toSVG(u));return f.push(`</g>
`),f},getSvgStyles:function(){var u=typeof this.opacity<"u"&&this.opacity!==1?"opacity: "+this.opacity+";":"",f=this.visible?"":" visibility: hidden;";return[u,this.getSvgFilter(),f].join("")},toClipPathSVG:function(u){for(var f=[],s=0,d=this._objects.length;s<d;s++)f.push(" ",this._objects[s].toClipPathSVG(u));return this._createBaseClipPathSVGMarkup(f,{reviver:u})}}),a.Group.fromObject=function(u,f){var s=u.objects,d=a.util.object.clone(u,!0);if(delete d.objects,typeof s=="string"){a.loadSVGFromURL(s,function(v){var h=a.util.groupSVGElements(v,u,s),m=d.clipPath;delete d.clipPath,h.set(d),m?a.util.enlivenObjects([m],function(y){h.clipPath=y[0],f&&f(h)}):f&&f(h)});return}a.util.enlivenObjects(s,function(v){a.util.enlivenObjectEnlivables(u,d,function(){f&&f(new a.Group(v,d,!0))})})})}(e),function(o){var a=o.fabric||(o.fabric={});a.ActiveSelection||(a.ActiveSelection=a.util.createClass(a.Group,{type:"activeSelection",initialize:function(c,p){p=p||{},this._objects=c||[];for(var u=this._objects.length;u--;)this._objects[u].group=this;p.originX&&(this.originX=p.originX),p.originY&&(this.originY=p.originY),this._calcBounds(),this._updateObjectsCoords(),a.Object.prototype.initialize.call(this,p),this.setCoords()},toGroup:function(){var c=this._objects.concat();this._objects=[];var p=a.Object.prototype.toObject.call(this),u=new a.Group([]);if(delete p.type,u.set(p),c.forEach(function(s){s.canvas.remove(s),s.group=u}),u._objects=c,!this.canvas)return u;var f=this.canvas;return f.add(u),f._activeObject=u,u.setCoords(),u},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(c,p,u){c.save(),c.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,u=u||{},typeof u.hasControls>"u"&&(u.hasControls=!1),u.forActiveSelection=!0;for(var f=0,s=this._objects.length;f<s;f++)this._objects[f]._renderControls(c,u);this.callSuper("_renderControls",c,p),c.restore()}}),a.ActiveSelection.fromObject=function(c,p){a.util.enlivenObjects(c.objects,function(u){delete c.objects,p&&p(new a.ActiveSelection(u,c,!0))})})}(e),function(o){var a=t.util.object.extend;if(o.fabric||(o.fabric={}),o.fabric.Image){t.warn("fabric.Image is already defined.");return}t.Image=t.util.createClass(t.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:t.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:t.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(c,p){p||(p={}),this.filters=[],this.cacheKey="texture"+t.Object.__uid++,this.callSuper("initialize",p),this._initElement(c,p)},getElement:function(){return this._element||{}},setElement:function(c,p){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=c,this._originalElement=c,this._initConfig(p),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(c){var p=t.filterBackend;p&&p.evictCachesForKey&&p.evictCachesForKey(c)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(c){t.util.cleanUpJsdomNode(this[c]),this[c]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var c=this.getElement();return{width:c.naturalWidth||c.width,height:c.naturalHeight||c.height}},_stroke:function(c){if(!(!this.stroke||this.strokeWidth===0)){var p=this.width/2,u=this.height/2;c.beginPath(),c.moveTo(-p,-u),c.lineTo(p,-u),c.lineTo(p,u),c.lineTo(-p,u),c.lineTo(-p,-u),c.closePath()}},toObject:function(c){var p=[];this.filters.forEach(function(f){f&&p.push(f.toObject())});var u=a(this.callSuper("toObject",["cropX","cropY"].concat(c)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:p});return this.resizeFilter&&(u.resizeFilter=this.resizeFilter.toObject()),u},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var c=[],p=[],u,f=this._element,s=-this.width/2,d=-this.height/2,v="",h="";if(!f)return[];if(this.hasCrop()){var m=t.Object.__uid++;c.push('<clipPath id="imageCrop_'+m+`">
`,' <rect x="'+s+'" y="'+d+'" width="'+this.width+'" height="'+this.height+`" />
`,`</clipPath>
`),v=' clip-path="url(#imageCrop_'+m+')" '}if(this.imageSmoothing||(h='" image-rendering="optimizeSpeed'),p.push(" <image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',s-this.cropX,'" y="',d-this.cropY,'" width="',f.width||f.naturalWidth,'" height="',f.height||f.height,h,'"',v,`></image>
`),this.stroke||this.strokeDashArray){var y=this.fill;this.fill=null,u=[" <rect ",'x="',s,'" y="',d,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),`"/>
`],this.fill=y}return this.paintFirst!=="fill"?c=c.concat(u,p):c=c.concat(p,u),c},getSrc:function(c){var p=c?this._element:this._originalElement;return p?p.toDataURL?p.toDataURL():this.srcFromAttribute?p.getAttribute("src"):p.src:this.src||""},setSrc:function(c,p,u){return t.util.loadImage(c,function(f,s){this.setElement(f,u),this._setWidthHeight(),p&&p(this,s)},this,u&&u.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var c=this.resizeFilter,p=this.minimumScaleTrigger,u=this.getTotalObjectScaling(),f=u.scaleX,s=u.scaleY,d=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!c||f>p&&s>p){this._element=d,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=f,this._lastScaleY=s;return}t.filterBackend||(t.filterBackend=t.initFilterBackend());var v=t.util.createCanvasElement(),h=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,m=d.width,y=d.height;v.width=m,v.height=y,this._element=v,this._lastScaleX=c.scaleX=f,this._lastScaleY=c.scaleY=s,t.filterBackend.applyFilters([c],d,m,y,this._element,h),this._filterScalingX=v.width/this._originalElement.width,this._filterScalingY=v.height/this._originalElement.height},applyFilters:function(c){if(c=c||this.filters||[],c=c.filter(function(d){return d&&!d.isNeutralState()}),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),c.length===0)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var p=this._originalElement,u=p.naturalWidth||p.width,f=p.naturalHeight||p.height;if(this._element===this._originalElement){var s=t.util.createCanvasElement();s.width=u,s.height=f,this._element=s,this._filteredEl=s}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,u,f),this._lastScaleX=1,this._lastScaleY=1;return t.filterBackend||(t.filterBackend=t.initFilterBackend()),t.filterBackend.applyFilters(c,this._originalElement,u,f,this._element,this.cacheKey),(this._originalElement.width!==this._element.width||this._originalElement.height!==this._element.height)&&(this._filterScalingX=this._element.width/this._originalElement.width,this._filterScalingY=this._element.height/this._originalElement.height),this},_render:function(c){t.util.setImageSmoothing(c,this.imageSmoothing),this.isMoving!==!0&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(c),this._renderPaintInOrder(c)},drawCacheOnCanvas:function(c){t.util.setImageSmoothing(c,this.imageSmoothing),t.Object.prototype.drawCacheOnCanvas.call(this,c)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(c){var p=this._element;if(!!p){var u=this._filterScalingX,f=this._filterScalingY,s=this.width,d=this.height,v=Math.min,h=Math.max,m=h(this.cropX,0),y=h(this.cropY,0),b=p.naturalWidth||p.width,_=p.naturalHeight||p.height,S=m*u,x=y*f,T=v(s*u,b-S),E=v(d*f,_-x),k=-s/2,D=-d/2,W=v(s,b/u-m),I=v(d,_/f-y);p&&c.drawImage(p,S,x,T,E,k,D,W,I)}},_needsResize:function(){var c=this.getTotalObjectScaling();return c.scaleX!==this._lastScaleX||c.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(c,p){this.setElement(t.util.getById(c),p),t.util.addClass(this.getElement(),t.Image.CSS_CANVAS)},_initConfig:function(c){c||(c={}),this.setOptions(c),this._setWidthHeight(c)},_initFilters:function(c,p){c&&c.length?t.util.enlivenObjects(c,function(u){p&&p(u)},"fabric.Image.filters"):p&&p()},_setWidthHeight:function(c){c||(c={});var p=this.getElement();this.width=c.width||p.naturalWidth||p.width||0,this.height=c.height||p.naturalHeight||p.height||0},parsePreserveAspectRatioAttribute:function(){var c=t.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),p=this._element.width,u=this._element.height,f=1,s=1,d=0,v=0,h=0,m=0,y,b=this.width,_=this.height,S={width:b,height:_};return c&&(c.alignX!=="none"||c.alignY!=="none")?(c.meetOrSlice==="meet"&&(f=s=t.util.findScaleToFit(this._element,S),y=(b-p*f)/2,c.alignX==="Min"&&(d=-y),c.alignX==="Max"&&(d=y),y=(_-u*s)/2,c.alignY==="Min"&&(v=-y),c.alignY==="Max"&&(v=y)),c.meetOrSlice==="slice"&&(f=s=t.util.findScaleToCover(this._element,S),y=p-b/f,c.alignX==="Mid"&&(h=y/2),c.alignX==="Max"&&(h=y),y=u-_/s,c.alignY==="Mid"&&(m=y/2),c.alignY==="Max"&&(m=y),p=b/f,u=_/s)):(f=b/p,s=_/u),{width:p,height:u,scaleX:f,scaleY:s,offsetLeft:d,offsetTop:v,cropX:h,cropY:m}}}),t.Image.CSS_CANVAS="canvas-img",t.Image.prototype.getSvgSrc=t.Image.prototype.getSrc,t.Image.fromObject=function(c,p){var u=t.util.object.clone(c);t.util.loadImage(u.src,function(f,s){if(s){p&&p(null,!0);return}t.Image.prototype._initFilters.call(u,u.filters,function(d){u.filters=d||[],t.Image.prototype._initFilters.call(u,[u.resizeFilter],function(v){u.resizeFilter=v[0],t.util.enlivenObjectEnlivables(u,u,function(){var h=new t.Image(f,u);p(h,!1)})})})},null,u.crossOrigin)},t.Image.fromURL=function(c,p,u){t.util.loadImage(c,function(f,s){p&&p(new t.Image(f,u),s)},null,u&&u.crossOrigin)},t.Image.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),t.Image.fromElement=function(c,p,u){var f=t.parseAttributes(c,t.Image.ATTRIBUTE_NAMES);t.Image.fromURL(f["xlink:href"],p,a(u?t.util.object.clone(u):{},f))}}(e),t.util.object.extend(t.Object.prototype,{_getAngleValueForStraighten:function(){var o=this.angle%360;return o>0?Math.round((o-1)/90)*90:Math.round(o/90)*90},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(o){o=o||{};var a=function(){},c=o.onComplete||a,p=o.onChange||a,u=this;return t.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(f){u.rotate(f),p()},onComplete:function(){u.setCoords(),c()}})}}),t.util.object.extend(t.StaticCanvas.prototype,{straightenObject:function(o){return o.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(o){return o.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){function o(c,p){var u="precision "+p+` float;
void main(){}`,f=c.createShader(c.FRAGMENT_SHADER);return c.shaderSource(f,u),c.compileShader(f),!!c.getShaderParameter(f,c.COMPILE_STATUS)}t.isWebglSupported=function(c){if(t.isLikelyNode)return!1;c=c||t.WebglFilterBackend.prototype.tileSize;var p=document.createElement("canvas"),u=p.getContext("webgl")||p.getContext("experimental-webgl"),f=!1;if(u){t.maxTextureSize=u.getParameter(u.MAX_TEXTURE_SIZE),f=t.maxTextureSize>=c;for(var s=["highp","mediump","lowp"],d=0;d<3;d++)if(o(u,s[d])){t.webGlPrecision=s[d];break}}return this.isSupported=f,f},t.WebglFilterBackend=a;function a(c){c&&c.tileSize&&(this.tileSize=c.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}a.prototype={tileSize:2048,resources:{},setupGLContext:function(c,p){this.dispose(),this.createWebGLCanvas(c,p),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(c,p)},chooseFastestCopyGLTo2DMethod:function(c,p){var u=typeof window.performance<"u",f;try{new ImageData(1,1),f=!0}catch{f=!1}var s=typeof ArrayBuffer<"u",d=typeof Uint8ClampedArray<"u";if(!!(u&&f&&s&&d)){var v=t.util.createCanvasElement(),h=new ArrayBuffer(c*p*4);if(t.forceGLPutImageData){this.imageBuffer=h,this.copyGLTo2D=g;return}var m={imageBuffer:h,destinationWidth:c,destinationHeight:p,targetCanvas:v},y,b,_;v.width=c,v.height=p,y=window.performance.now(),l.call(m,this.gl,m),b=window.performance.now()-y,y=window.performance.now(),g.call(m,this.gl,m),_=window.performance.now()-y,b>_?(this.imageBuffer=h,this.copyGLTo2D=g):this.copyGLTo2D=l}},createWebGLCanvas:function(c,p){var u=t.util.createCanvasElement();u.width=c,u.height=p;var f={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},s=u.getContext("webgl",f);s||(s=u.getContext("experimental-webgl",f)),s&&(s.clearColor(0,0,0,0),this.canvas=u,this.gl=s)},applyFilters:function(c,p,u,f,s,d){var v=this.gl,h;d&&(h=this.getCachedTexture(d,p));var m={originalWidth:p.width||p.originalWidth,originalHeight:p.height||p.originalHeight,sourceWidth:u,sourceHeight:f,destinationWidth:u,destinationHeight:f,context:v,sourceTexture:this.createTexture(v,u,f,!h&&p),targetTexture:this.createTexture(v,u,f),originalTexture:h||this.createTexture(v,u,f,!h&&p),passes:c.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},y=v.createFramebuffer();return v.bindFramebuffer(v.FRAMEBUFFER,y),c.forEach(function(b){b&&b.applyTo(m)}),i(m),this.copyGLTo2D(v,m),v.bindTexture(v.TEXTURE_2D,null),v.deleteTexture(m.sourceTexture),v.deleteTexture(m.targetTexture),v.deleteFramebuffer(y),s.getContext("2d").setTransform(1,0,0,1,0,0),m},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(c,p,u,f,s){var d=c.createTexture();return c.bindTexture(c.TEXTURE_2D,d),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,s||c.NEAREST),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,s||c.NEAREST),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE),c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE),f?c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,f):c.texImage2D(c.TEXTURE_2D,0,c.RGBA,p,u,0,c.RGBA,c.UNSIGNED_BYTE,null),d},getCachedTexture:function(c,p){if(this.textureCache[c])return this.textureCache[c];var u=this.createTexture(this.gl,p.width,p.height,p);return this.textureCache[c]=u,u},evictCachesForKey:function(c){this.textureCache[c]&&(this.gl.deleteTexture(this.textureCache[c]),delete this.textureCache[c])},copyGLTo2D:l,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var c=this.gl,p={renderer:"",vendor:""};if(!c)return p;var u=c.getExtension("WEBGL_debug_renderer_info");if(u){var f=c.getParameter(u.UNMASKED_RENDERER_WEBGL),s=c.getParameter(u.UNMASKED_VENDOR_WEBGL);f&&(p.renderer=f.toLowerCase()),s&&(p.vendor=s.toLowerCase())}return this.gpuInfo=p,p}}}();function i(o){var a=o.targetCanvas,c=a.width,p=a.height,u=o.destinationWidth,f=o.destinationHeight;(c!==u||p!==f)&&(a.width=u,a.height=f)}function l(o,a){var c=o.canvas,p=a.targetCanvas,u=p.getContext("2d");u.translate(0,p.height),u.scale(1,-1);var f=c.height-p.height;u.drawImage(c,0,f,p.width,p.height,0,0,p.width,p.height)}function g(o,a){var c=a.targetCanvas,p=c.getContext("2d"),u=a.destinationWidth,f=a.destinationHeight,s=u*f*4,d=new Uint8Array(this.imageBuffer,0,s),v=new Uint8ClampedArray(this.imageBuffer,0,s);o.readPixels(0,0,u,f,o.RGBA,o.UNSIGNED_BYTE,d);var h=new ImageData(v,u,f);p.putImageData(h,0,0)}(function(){var o=function(){};t.Canvas2dFilterBackend=a;function a(){}a.prototype={evictCachesForKey:o,dispose:o,clearWebGLCaches:o,resources:{},applyFilters:function(c,p,u,f,s){var d=s.getContext("2d");d.drawImage(p,0,0,u,f);var v=d.getImageData(0,0,u,f),h=d.getImageData(0,0,u,f),m={sourceWidth:u,sourceHeight:f,imageData:v,originalEl:p,originalImageData:h,canvasEl:s,ctx:d,filterBackend:this};return c.forEach(function(y){y.applyTo(m)}),(m.imageData.width!==u||m.imageData.height!==f)&&(s.width=m.imageData.width,s.height=m.imageData.height),d.putImageData(m.imageData,0,0),m}}})(),t.Image=t.Image||{},t.Image.filters=t.Image.filters||{},t.Image.filters.BaseFilter=t.util.createClass({type:"BaseFilter",vertexSource:`attribute vec2 aPosition;
varying vec2 vTexCoord;
void main() {
vTexCoord = aPosition;
gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
}`,fragmentSource:`precision highp float;
varying vec2 vTexCoord;
uniform sampler2D uTexture;
void main() {
gl_FragColor = texture2D(uTexture, vTexCoord);
}`,initialize:function(o){o&&this.setOptions(o)},setOptions:function(o){for(var a in o)this[a]=o[a]},createProgram:function(o,a,c){a=a||this.fragmentSource,c=c||this.vertexSource,t.webGlPrecision!=="highp"&&(a=a.replace(/precision highp float/g,"precision "+t.webGlPrecision+" float"));var p=o.createShader(o.VERTEX_SHADER);if(o.shaderSource(p,c),o.compileShader(p),!o.getShaderParameter(p,o.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+o.getShaderInfoLog(p));var u=o.createShader(o.FRAGMENT_SHADER);if(o.shaderSource(u,a),o.compileShader(u),!o.getShaderParameter(u,o.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+o.getShaderInfoLog(u));var f=o.createProgram();if(o.attachShader(f,p),o.attachShader(f,u),o.linkProgram(f),!o.getProgramParameter(f,o.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+o.getProgramInfoLog(f));var s=this.getAttributeLocations(o,f),d=this.getUniformLocations(o,f)||{};return d.uStepW=o.getUniformLocation(f,"uStepW"),d.uStepH=o.getUniformLocation(f,"uStepH"),{program:f,attributeLocations:s,uniformLocations:d}},getAttributeLocations:function(o,a){return{aPosition:o.getAttribLocation(a,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(o,a,c){var p=a.aPosition,u=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,u),o.enableVertexAttribArray(p),o.vertexAttribPointer(p,2,o.FLOAT,!1,0,0),o.bufferData(o.ARRAY_BUFFER,c,o.STATIC_DRAW)},_setupFrameBuffer:function(o){var a=o.context,c,p;o.passes>1?(c=o.destinationWidth,p=o.destinationHeight,(o.sourceWidth!==c||o.sourceHeight!==p)&&(a.deleteTexture(o.targetTexture),o.targetTexture=o.filterBackend.createTexture(a,c,p)),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,o.targetTexture,0)):(a.bindFramebuffer(a.FRAMEBUFFER,null),a.finish())},_swapTextures:function(o){o.passes--,o.pass++;var a=o.targetTexture;o.targetTexture=o.sourceTexture,o.sourceTexture=a},isNeutralState:function(){var o=this.mainParameter,a=t.Image.filters[this.type].prototype;if(o)if(Array.isArray(a[o])){for(var c=a[o].length;c--;)if(this[o][c]!==a[o][c])return!1;return!0}else return a[o]===this[o];else return!1},applyTo:function(o){o.webgl?(this._setupFrameBuffer(o),this.applyToWebGL(o),this._swapTextures(o)):this.applyTo2d(o)},retrieveShader:function(o){return o.programCache.hasOwnProperty(this.type)||(o.programCache[this.type]=this.createProgram(o.context)),o.programCache[this.type]},applyToWebGL:function(o){var a=o.context,c=this.retrieveShader(o);o.pass===0&&o.originalTexture?a.bindTexture(a.TEXTURE_2D,o.originalTexture):a.bindTexture(a.TEXTURE_2D,o.sourceTexture),a.useProgram(c.program),this.sendAttributeData(a,c.attributeLocations,o.aPosition),a.uniform1f(c.uniformLocations.uStepW,1/o.sourceWidth),a.uniform1f(c.uniformLocations.uStepH,1/o.sourceHeight),this.sendUniformData(a,c.uniformLocations),a.viewport(0,0,o.destinationWidth,o.destinationHeight),a.drawArrays(a.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(o,a,c){o.activeTexture(c),o.bindTexture(o.TEXTURE_2D,a),o.activeTexture(o.TEXTURE0)},unbindAdditionalTexture:function(o,a){o.activeTexture(a),o.bindTexture(o.TEXTURE_2D,null),o.activeTexture(o.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(o){this[this.mainParameter]=o},sendUniformData:function(){},createHelpLayer:function(o){if(!o.helpLayer){var a=document.createElement("canvas");a.width=o.sourceWidth,a.height=o.sourceHeight,o.helpLayer=a}},toObject:function(){var o={type:this.type},a=this.mainParameter;return a&&(o[a]=this[a]),o},toJSON:function(){return this.toObject()}}),t.Image.filters.BaseFilter.fromObject=function(o,a){var c=new t.Image.filters[o.type](o);return a&&a(c),c},function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.ColorMatrix=p(c.BaseFilter,{type:"ColorMatrix",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
varying vec2 vTexCoord;
uniform mat4 uColorMatrix;
uniform vec4 uConstants;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color *= uColorMatrix;
color += uConstants;
gl_FragColor = color;
}`,matrix:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],mainParameter:"matrix",colorsOnly:!0,initialize:function(u){this.callSuper("initialize",u),this.matrix=this.matrix.slice(0)},applyTo2d:function(u){var f=u.imageData,s=f.data,d=s.length,v=this.matrix,h,m,y,b,_,S=this.colorsOnly;for(_=0;_<d;_+=4)h=s[_],m=s[_+1],y=s[_+2],S?(s[_]=h*v[0]+m*v[1]+y*v[2]+v[4]*255,s[_+1]=h*v[5]+m*v[6]+y*v[7]+v[9]*255,s[_+2]=h*v[10]+m*v[11]+y*v[12]+v[14]*255):(b=s[_+3],s[_]=h*v[0]+m*v[1]+y*v[2]+b*v[3]+v[4]*255,s[_+1]=h*v[5]+m*v[6]+y*v[7]+b*v[8]+v[9]*255,s[_+2]=h*v[10]+m*v[11]+y*v[12]+b*v[13]+v[14]*255,s[_+3]=h*v[15]+m*v[16]+y*v[17]+b*v[18]+v[19]*255)},getUniformLocations:function(u,f){return{uColorMatrix:u.getUniformLocation(f,"uColorMatrix"),uConstants:u.getUniformLocation(f,"uConstants")}},sendUniformData:function(u,f){var s=this.matrix,d=[s[0],s[1],s[2],s[3],s[5],s[6],s[7],s[8],s[10],s[11],s[12],s[13],s[15],s[16],s[17],s[18]],v=[s[4],s[9],s[14],s[19]];u.uniformMatrix4fv(f.uColorMatrix,!1,d),u.uniform4fv(f.uConstants,v)}}),a.Image.filters.ColorMatrix.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Brightness=p(c.BaseFilter,{type:"Brightness",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uBrightness;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color.rgb += uBrightness;
gl_FragColor = color;
}`,brightness:0,mainParameter:"brightness",applyTo2d:function(u){if(this.brightness!==0){var f=u.imageData,s=f.data,d,v=s.length,h=Math.round(this.brightness*255);for(d=0;d<v;d+=4)s[d]=s[d]+h,s[d+1]=s[d+1]+h,s[d+2]=s[d+2]+h}},getUniformLocations:function(u,f){return{uBrightness:u.getUniformLocation(f,"uBrightness")}},sendUniformData:function(u,f){u.uniform1f(f.uBrightness,this.brightness)}}),a.Image.filters.Brightness.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,p=a.Image.filters,u=a.util.createClass;p.Convolute=u(p.BaseFilter,{type:"Convolute",opaque:!1,matrix:[0,0,0,0,1,0,0,0,0],fragmentSource:{Convolute_3_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[9];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 3.0; h+=1.0) {
for (float w = 0.0; w < 3.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 1), uStepH * (h - 1));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 3.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_3_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[9];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 3.0; h+=1.0) {
for (float w = 0.0; w < 3.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 1.0), uStepH * (h - 1.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 3.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_5_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[25];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 5.0; h+=1.0) {
for (float w = 0.0; w < 5.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 5.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_5_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[25];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 5.0; h+=1.0) {
for (float w = 0.0; w < 5.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 2.0), uStepH * (h - 2.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 5.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_7_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[49];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 7.0; h+=1.0) {
for (float w = 0.0; w < 7.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 7.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_7_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[49];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 7.0; h+=1.0) {
for (float w = 0.0; w < 7.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 3.0), uStepH * (h - 3.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 7.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`,Convolute_9_1:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[81];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 0);
for (float h = 0.0; h < 9.0; h+=1.0) {
for (float w = 0.0; w < 9.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
color += texture2D(uTexture, vTexCoord + matrixPos) * uMatrix[int(h * 9.0 + w)];
}
}
gl_FragColor = color;
}`,Convolute_9_0:`precision highp float;
uniform sampler2D uTexture;
uniform float uMatrix[81];
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
vec4 color = vec4(0, 0, 0, 1);
for (float h = 0.0; h < 9.0; h+=1.0) {
for (float w = 0.0; w < 9.0; w+=1.0) {
vec2 matrixPos = vec2(uStepW * (w - 4.0), uStepH * (h - 4.0));
color.rgb += texture2D(uTexture, vTexCoord + matrixPos).rgb * uMatrix[int(h * 9.0 + w)];
}
}
float alpha = texture2D(uTexture, vTexCoord).a;
gl_FragColor = color;
gl_FragColor.a = alpha;
}`},retrieveShader:function(f){var s=Math.sqrt(this.matrix.length),d=this.type+"_"+s+"_"+(this.opaque?1:0),v=this.fragmentSource[d];return f.programCache.hasOwnProperty(d)||(f.programCache[d]=this.createProgram(f.context,v)),f.programCache[d]},applyTo2d:function(f){var s=f.imageData,d=s.data,v=this.matrix,h=Math.round(Math.sqrt(v.length)),m=Math.floor(h/2),y=s.width,b=s.height,_=f.ctx.createImageData(y,b),S=_.data,x=this.opaque?1:0,T,E,k,D,W,I,U,A,ee,de,z,q,O;for(z=0;z<b;z++)for(de=0;de<y;de++){for(W=(z*y+de)*4,T=0,E=0,k=0,D=0,O=0;O<h;O++)for(q=0;q<h;q++)U=z+O-m,I=de+q-m,!(U<0||U>=b||I<0||I>=y)&&(A=(U*y+I)*4,ee=v[O*h+q],T+=d[A]*ee,E+=d[A+1]*ee,k+=d[A+2]*ee,x||(D+=d[A+3]*ee));S[W]=T,S[W+1]=E,S[W+2]=k,x?S[W+3]=d[W+3]:S[W+3]=D}f.imageData=_},getUniformLocations:function(f,s){return{uMatrix:f.getUniformLocation(s,"uMatrix"),uOpaque:f.getUniformLocation(s,"uOpaque"),uHalfSize:f.getUniformLocation(s,"uHalfSize"),uSize:f.getUniformLocation(s,"uSize")}},sendUniformData:function(f,s){f.uniform1fv(s.uMatrix,this.matrix)},toObject:function(){return c(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),a.Image.filters.Convolute.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Grayscale=p(c.BaseFilter,{type:"Grayscale",fragmentSource:{average:`precision highp float;
uniform sampler2D uTexture;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float average = (color.r + color.b + color.g) / 3.0;
gl_FragColor = vec4(average, average, average, color.a);
}`,lightness:`precision highp float;
uniform sampler2D uTexture;
uniform int uMode;
varying vec2 vTexCoord;
void main() {
vec4 col = texture2D(uTexture, vTexCoord);
float average = (max(max(col.r, col.g),col.b) + min(min(col.r, col.g),col.b)) / 2.0;
gl_FragColor = vec4(average, average, average, col.a);
}`,luminosity:`precision highp float;
uniform sampler2D uTexture;
uniform int uMode;
varying vec2 vTexCoord;
void main() {
vec4 col = texture2D(uTexture, vTexCoord);
float average = 0.21 * col.r + 0.72 * col.g + 0.07 * col.b;
gl_FragColor = vec4(average, average, average, col.a);
}`},mode:"average",mainParameter:"mode",applyTo2d:function(u){var f=u.imageData,s=f.data,d,v=s.length,h,m=this.mode;for(d=0;d<v;d+=4)m==="average"?h=(s[d]+s[d+1]+s[d+2])/3:m==="lightness"?h=(Math.min(s[d],s[d+1],s[d+2])+Math.max(s[d],s[d+1],s[d+2]))/2:m==="luminosity"&&(h=.21*s[d]+.72*s[d+1]+.07*s[d+2]),s[d]=h,s[d+1]=h,s[d+2]=h},retrieveShader:function(u){var f=this.type+"_"+this.mode;if(!u.programCache.hasOwnProperty(f)){var s=this.fragmentSource[this.mode];u.programCache[f]=this.createProgram(u.context,s)}return u.programCache[f]},getUniformLocations:function(u,f){return{uMode:u.getUniformLocation(f,"uMode")}},sendUniformData:function(u,f){var s=1;u.uniform1i(f.uMode,s)},isNeutralState:function(){return!1}}),a.Image.filters.Grayscale.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Invert=p(c.BaseFilter,{type:"Invert",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform int uInvert;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
if (uInvert == 1) {
gl_FragColor = vec4(1.0 - color.r,1.0 -color.g,1.0 -color.b,color.a);
} else {
gl_FragColor = color;
}
}`,invert:!0,mainParameter:"invert",applyTo2d:function(u){var f=u.imageData,s=f.data,d,v=s.length;for(d=0;d<v;d+=4)s[d]=255-s[d],s[d+1]=255-s[d+1],s[d+2]=255-s[d+2]},isNeutralState:function(){return!this.invert},getUniformLocations:function(u,f){return{uInvert:u.getUniformLocation(f,"uInvert")}},sendUniformData:function(u,f){u.uniform1i(f.uInvert,this.invert)}}),a.Image.filters.Invert.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,p=a.Image.filters,u=a.util.createClass;p.Noise=u(p.BaseFilter,{type:"Noise",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uStepH;
uniform float uNoise;
uniform float uSeed;
varying vec2 vTexCoord;
float rand(vec2 co, float seed, float vScale) {
return fract(sin(dot(co.xy * vScale ,vec2(12.9898 , 78.233))) * 43758.5453 * (seed + 0.01) / 2.0);
}
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
color.rgb += (0.5 - rand(vTexCoord, uSeed, 0.1 / uStepH)) * uNoise;
gl_FragColor = color;
}`,mainParameter:"noise",noise:0,applyTo2d:function(f){if(this.noise!==0){var s=f.imageData,d=s.data,v,h=d.length,m=this.noise,y;for(v=0,h=d.length;v<h;v+=4)y=(.5-Math.random())*m,d[v]+=y,d[v+1]+=y,d[v+2]+=y}},getUniformLocations:function(f,s){return{uNoise:f.getUniformLocation(s,"uNoise"),uSeed:f.getUniformLocation(s,"uSeed")}},sendUniformData:function(f,s){f.uniform1f(s.uNoise,this.noise/255),f.uniform1f(s.uSeed,Math.random())},toObject:function(){return c(this.callSuper("toObject"),{noise:this.noise})}}),a.Image.filters.Noise.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Pixelate=p(c.BaseFilter,{type:"Pixelate",blocksize:4,mainParameter:"blocksize",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uBlocksize;
uniform float uStepW;
uniform float uStepH;
varying vec2 vTexCoord;
void main() {
float blockW = uBlocksize * uStepW;
float blockH = uBlocksize * uStepW;
int posX = int(vTexCoord.x / blockW);
int posY = int(vTexCoord.y / blockH);
float fposX = float(posX);
float fposY = float(posY);
vec2 squareCoords = vec2(fposX * blockW, fposY * blockH);
vec4 color = texture2D(uTexture, squareCoords);
gl_FragColor = color;
}`,applyTo2d:function(u){var f=u.imageData,s=f.data,d=f.height,v=f.width,h,m,y,b,_,S,x,T,E,k,D;for(m=0;m<d;m+=this.blocksize)for(y=0;y<v;y+=this.blocksize)for(h=m*4*v+y*4,b=s[h],_=s[h+1],S=s[h+2],x=s[h+3],k=Math.min(m+this.blocksize,d),D=Math.min(y+this.blocksize,v),T=m;T<k;T++)for(E=y;E<D;E++)h=T*4*v+E*4,s[h]=b,s[h+1]=_,s[h+2]=S,s[h+3]=x},isNeutralState:function(){return this.blocksize===1},getUniformLocations:function(u,f){return{uBlocksize:u.getUniformLocation(f,"uBlocksize"),uStepW:u.getUniformLocation(f,"uStepW"),uStepH:u.getUniformLocation(f,"uStepH")}},sendUniformData:function(u,f){u.uniform1f(f.uBlocksize,this.blocksize)}}),a.Image.filters.Pixelate.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.extend,p=a.Image.filters,u=a.util.createClass;p.RemoveColor=u(p.BaseFilter,{type:"RemoveColor",color:"#FFFFFF",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec4 uLow;
uniform vec4 uHigh;
varying vec2 vTexCoord;
void main() {
gl_FragColor = texture2D(uTexture, vTexCoord);
if(all(greaterThan(gl_FragColor.rgb,uLow.rgb)) && all(greaterThan(uHigh.rgb,gl_FragColor.rgb))) {
gl_FragColor.a = 0.0;
}
}`,distance:.02,useAlpha:!1,applyTo2d:function(f){var s=f.imageData,d=s.data,v,h=this.distance*255,m,y,b,_=new a.Color(this.color).getSource(),S=[_[0]-h,_[1]-h,_[2]-h],x=[_[0]+h,_[1]+h,_[2]+h];for(v=0;v<d.length;v+=4)m=d[v],y=d[v+1],b=d[v+2],m>S[0]&&y>S[1]&&b>S[2]&&m<x[0]&&y<x[1]&&b<x[2]&&(d[v+3]=0)},getUniformLocations:function(f,s){return{uLow:f.getUniformLocation(s,"uLow"),uHigh:f.getUniformLocation(s,"uHigh")}},sendUniformData:function(f,s){var d=new a.Color(this.color).getSource(),v=parseFloat(this.distance),h=[0+d[0]/255-v,0+d[1]/255-v,0+d[2]/255-v,1],m=[d[0]/255+v,d[1]/255+v,d[2]/255+v,1];f.uniform4fv(s.uLow,h),f.uniform4fv(s.uHigh,m)},toObject:function(){return c(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),a.Image.filters.RemoveColor.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass,u={Brownie:[.5997,.34553,-.27082,0,.186,-.0377,.86095,.15059,0,-.1449,.24113,-.07441,.44972,0,-.02965,0,0,0,1,0],Vintage:[.62793,.32021,-.03965,0,.03784,.02578,.64411,.03259,0,.02926,.0466,-.08512,.52416,0,.02023,0,0,0,1,0],Kodachrome:[1.12855,-.39673,-.03992,0,.24991,-.16404,1.08352,-.05498,0,.09698,-.16786,-.56034,1.60148,0,.13972,0,0,0,1,0],Technicolor:[1.91252,-.85453,-.09155,0,.04624,-.30878,1.76589,-.10601,0,-.27589,-.2311,-.75018,1.84759,0,.12137,0,0,0,1,0],Polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],Sepia:[.393,.769,.189,0,0,.349,.686,.168,0,0,.272,.534,.131,0,0,0,0,0,1,0],BlackWhite:[1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,1.5,1.5,1.5,0,-1,0,0,0,1,0]};for(var f in u)c[f]=p(c.ColorMatrix,{type:f,matrix:u[f],mainParameter:!1,colorsOnly:!0}),a.Image.filters[f].fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric,c=a.Image.filters,p=a.util.createClass;c.BlendColor=p(c.BaseFilter,{type:"BlendColor",color:"#F95C63",mode:"multiply",alpha:1,fragmentSource:{multiply:`gl_FragColor.rgb *= uColor.rgb;
`,screen:`gl_FragColor.rgb = 1.0 - (1.0 - gl_FragColor.rgb) * (1.0 - uColor.rgb);
`,add:`gl_FragColor.rgb += uColor.rgb;
`,diff:`gl_FragColor.rgb = abs(gl_FragColor.rgb - uColor.rgb);
`,subtract:`gl_FragColor.rgb -= uColor.rgb;
`,lighten:`gl_FragColor.rgb = max(gl_FragColor.rgb, uColor.rgb);
`,darken:`gl_FragColor.rgb = min(gl_FragColor.rgb, uColor.rgb);
`,exclusion:`gl_FragColor.rgb += uColor.rgb - 2.0 * (uColor.rgb * gl_FragColor.rgb);
`,overlay:`if (uColor.r < 0.5) {
gl_FragColor.r *= 2.0 * uColor.r;
} else {
gl_FragColor.r = 1.0 - 2.0 * (1.0 - gl_FragColor.r) * (1.0 - uColor.r);
}
if (uColor.g < 0.5) {
gl_FragColor.g *= 2.0 * uColor.g;
} else {
gl_FragColor.g = 1.0 - 2.0 * (1.0 - gl_FragColor.g) * (1.0 - uColor.g);
}
if (uColor.b < 0.5) {
gl_FragColor.b *= 2.0 * uColor.b;
} else {
gl_FragColor.b = 1.0 - 2.0 * (1.0 - gl_FragColor.b) * (1.0 - uColor.b);
}
`,tint:`gl_FragColor.rgb *= (1.0 - uColor.a);
gl_FragColor.rgb += uColor.rgb;
`},buildSource:function(u){return`precision highp float;
uniform sampler2D uTexture;
uniform vec4 uColor;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
gl_FragColor = color;
if (color.a > 0.0) {
`+this.fragmentSource[u]+`}
}`},retrieveShader:function(u){var f=this.type+"_"+this.mode,s;return u.programCache.hasOwnProperty(f)||(s=this.buildSource(this.mode),u.programCache[f]=this.createProgram(u.context,s)),u.programCache[f]},applyTo2d:function(u){var f=u.imageData,s=f.data,d=s.length,v,h,m,y,b,_,S,x=1-this.alpha;S=new a.Color(this.color).getSource(),v=S[0]*this.alpha,h=S[1]*this.alpha,m=S[2]*this.alpha;for(var T=0;T<d;T+=4)switch(y=s[T],b=s[T+1],_=s[T+2],this.mode){case"multiply":s[T]=y*v/255,s[T+1]=b*h/255,s[T+2]=_*m/255;break;case"screen":s[T]=255-(255-y)*(255-v)/255,s[T+1]=255-(255-b)*(255-h)/255,s[T+2]=255-(255-_)*(255-m)/255;break;case"add":s[T]=y+v,s[T+1]=b+h,s[T+2]=_+m;break;case"diff":case"difference":s[T]=Math.abs(y-v),s[T+1]=Math.abs(b-h),s[T+2]=Math.abs(_-m);break;case"subtract":s[T]=y-v,s[T+1]=b-h,s[T+2]=_-m;break;case"darken":s[T]=Math.min(y,v),s[T+1]=Math.min(b,h),s[T+2]=Math.min(_,m);break;case"lighten":s[T]=Math.max(y,v),s[T+1]=Math.max(b,h),s[T+2]=Math.max(_,m);break;case"overlay":s[T]=v<128?2*y*v/255:255-2*(255-y)*(255-v)/255,s[T+1]=h<128?2*b*h/255:255-2*(255-b)*(255-h)/255,s[T+2]=m<128?2*_*m/255:255-2*(255-_)*(255-m)/255;break;case"exclusion":s[T]=v+y-2*v*y/255,s[T+1]=h+b-2*h*b/255,s[T+2]=m+_-2*m*_/255;break;case"tint":s[T]=v+y*x,s[T+1]=h+b*x,s[T+2]=m+_*x}},getUniformLocations:function(u,f){return{uColor:u.getUniformLocation(f,"uColor")}},sendUniformData:function(u,f){var s=new a.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,u.uniform4fv(f.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),a.Image.filters.BlendColor.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric,c=a.Image.filters,p=a.util.createClass;c.BlendImage=p(c.BaseFilter,{type:"BlendImage",image:null,mode:"multiply",alpha:1,vertexSource:`attribute vec2 aPosition;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
uniform mat3 uTransformMatrix;
void main() {
vTexCoord = aPosition;
vTexCoord2 = (uTransformMatrix * vec3(aPosition, 1.0)).xy;
gl_Position = vec4(aPosition * 2.0 - 1.0, 0.0, 1.0);
}`,fragmentSource:{multiply:`precision highp float;
uniform sampler2D uTexture;
uniform sampler2D uImage;
uniform vec4 uColor;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec4 color2 = texture2D(uImage, vTexCoord2);
color.rgba *= color2.rgba;
gl_FragColor = color;
}`,mask:`precision highp float;
uniform sampler2D uTexture;
uniform sampler2D uImage;
uniform vec4 uColor;
varying vec2 vTexCoord;
varying vec2 vTexCoord2;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec4 color2 = texture2D(uImage, vTexCoord2);
color.a = color2.a;
gl_FragColor = color;
}`},retrieveShader:function(u){var f=this.type+"_"+this.mode,s=this.fragmentSource[this.mode];return u.programCache.hasOwnProperty(f)||(u.programCache[f]=this.createProgram(u.context,s)),u.programCache[f]},applyToWebGL:function(u){var f=u.context,s=this.createTexture(u.filterBackend,this.image);this.bindAdditionalTexture(f,s,f.TEXTURE1),this.callSuper("applyToWebGL",u),this.unbindAdditionalTexture(f,f.TEXTURE1)},createTexture:function(u,f){return u.getCachedTexture(f.cacheKey,f._element)},calculateMatrix:function(){var u=this.image,f=u._element.width,s=u._element.height;return[1/u.scaleX,0,0,0,1/u.scaleY,0,-u.left/f,-u.top/s,1]},applyTo2d:function(u){var f=u.imageData,s=u.filterBackend.resources,d=f.data,v=d.length,h=f.width,m=f.height,y,b,_,S,x,T,E,k,D,W,I=this.image,U;s.blendImage||(s.blendImage=a.util.createCanvasElement()),D=s.blendImage,W=D.getContext("2d"),D.width!==h||D.height!==m?(D.width=h,D.height=m):W.clearRect(0,0,h,m),W.setTransform(I.scaleX,0,0,I.scaleY,I.left,I.top),W.drawImage(I._element,0,0,h,m),U=W.getImageData(0,0,h,m).data;for(var A=0;A<v;A+=4)switch(x=d[A],T=d[A+1],E=d[A+2],k=d[A+3],y=U[A],b=U[A+1],_=U[A+2],S=U[A+3],this.mode){case"multiply":d[A]=x*y/255,d[A+1]=T*b/255,d[A+2]=E*_/255,d[A+3]=k*S/255;break;case"mask":d[A+3]=S;break}},getUniformLocations:function(u,f){return{uTransformMatrix:u.getUniformLocation(f,"uTransformMatrix"),uImage:u.getUniformLocation(f,"uImage")}},sendUniformData:function(u,f){var s=this.calculateMatrix();u.uniform1i(f.uImage,1),u.uniformMatrix3fv(f.uTransformMatrix,!1,s)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),a.Image.filters.BlendImage.fromObject=function(u,f){a.Image.fromObject(u.image,function(s){var d=a.util.object.clone(u);d.image=s,f(new a.Image.filters.BlendImage(d))})}}(e),function(o){var a=o.fabric||(o.fabric={}),c=Math.pow,p=Math.floor,u=Math.sqrt,f=Math.abs,s=Math.round,d=Math.sin,v=Math.ceil,h=a.Image.filters,m=a.util.createClass;h.Resize=m(h.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(y,b){return{uDelta:y.getUniformLocation(b,"uDelta"),uTaps:y.getUniformLocation(b,"uTaps")}},sendUniformData:function(y,b){y.uniform2fv(b.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),y.uniform1fv(b.uTaps,this.taps)},retrieveShader:function(y){var b=this.getFilterWindow(),_=this.type+"_"+b;if(!y.programCache.hasOwnProperty(_)){var S=this.generateShader(b);y.programCache[_]=this.createProgram(y.context,S)}return y.programCache[_]},getFilterWindow:function(){var y=this.tempScale;return Math.ceil(this.lanczosLobes/y)},getTaps:function(){for(var y=this.lanczosCreate(this.lanczosLobes),b=this.tempScale,_=this.getFilterWindow(),S=new Array(_),x=1;x<=_;x++)S[x-1]=y(x*b);return S},generateShader:function(S){for(var b=new Array(S),_=this.fragmentSourceTOP,S,x=1;x<=S;x++)b[x-1]=x+".0 * uDelta";return _+="uniform float uTaps["+S+`];
`,_+=`void main() {
`,_+=` vec4 color = texture2D(uTexture, vTexCoord);
`,_+=` float sum = 1.0;
`,b.forEach(function(T,E){_+=" color += texture2D(uTexture, vTexCoord + "+T+") * uTaps["+E+`];
`,_+=" color += texture2D(uTexture, vTexCoord - "+T+") * uTaps["+E+`];
`,_+=" sum += 2.0 * uTaps["+E+`];
`}),_+=` gl_FragColor = color / sum;
`,_+="}",_},fragmentSourceTOP:`precision highp float;
uniform sampler2D uTexture;
uniform vec2 uDelta;
varying vec2 vTexCoord;
`,applyTo:function(y){y.webgl?(y.passes++,this.width=y.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=y.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),y.destinationWidth=this.dW,this._setupFrameBuffer(y),this.applyToWebGL(y),this._swapTextures(y),y.sourceWidth=y.destinationWidth,this.height=y.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),y.destinationHeight=this.dH,this._setupFrameBuffer(y),this.applyToWebGL(y),this._swapTextures(y),y.sourceHeight=y.destinationHeight):this.applyTo2d(y)},isNeutralState:function(){return this.scaleX===1&&this.scaleY===1},lanczosCreate:function(y){return function(b){if(b>=y||b<=-y)return 0;if(b<11920929e-14&&b>-11920929e-14)return 1;b*=Math.PI;var _=b/y;return d(b)/b*d(_)/_}},applyTo2d:function(y){var b=y.imageData,_=this.scaleX,S=this.scaleY;this.rcpScaleX=1/_,this.rcpScaleY=1/S;var x=b.width,T=b.height,E=s(x*_),k=s(T*S),D;this.resizeType==="sliceHack"?D=this.sliceByTwo(y,x,T,E,k):this.resizeType==="hermite"?D=this.hermiteFastResize(y,x,T,E,k):this.resizeType==="bilinear"?D=this.bilinearFiltering(y,x,T,E,k):this.resizeType==="lanczos"&&(D=this.lanczosResize(y,x,T,E,k)),y.imageData=D},sliceByTwo:function(y,b,_,S,x){var T=y.imageData,E=.5,k=!1,D=!1,W=b*E,I=_*E,U=a.filterBackend.resources,A,ee,de=0,z=0,q=b,O=0;for(U.sliceByTwo||(U.sliceByTwo=document.createElement("canvas")),A=U.sliceByTwo,(A.width<b*1.5||A.height<_)&&(A.width=b*1.5,A.height=_),ee=A.getContext("2d"),ee.clearRect(0,0,b*1.5,_),ee.putImageData(T,0,0),S=p(S),x=p(x);!k||!D;)b=W,_=I,S<p(W*E)?W=p(W*E):(W=S,k=!0),x<p(I*E)?I=p(I*E):(I=x,D=!0),ee.drawImage(A,de,z,b,_,q,O,W,I),de=q,z=O,O+=I;return ee.getImageData(de,z,S,x)},lanczosResize:function(y,b,_,S,x){function T(R){var P,G,$,M,ne,X,te,Q,J,oe,pe;for(O.x=(R+.5)*I,F.x=p(O.x),P=0;P<x;P++){for(O.y=(P+.5)*U,F.y=p(O.y),ne=0,X=0,te=0,Q=0,J=0,G=F.x-de;G<=F.x+de;G++)if(!(G<0||G>=b)){oe=p(1e3*f(G-O.x)),q[oe]||(q[oe]={});for(var N=F.y-z;N<=F.y+z;N++)N<0||N>=_||(pe=p(1e3*f(N-O.y)),q[oe][pe]||(q[oe][pe]=W(u(c(oe*A,2)+c(pe*ee,2))/1e3)),$=q[oe][pe],$>0&&(M=(N*b+G)*4,ne+=$,X+=$*E[M],te+=$*E[M+1],Q+=$*E[M+2],J+=$*E[M+3]))}M=(P*S+R)*4,D[M]=X/ne,D[M+1]=te/ne,D[M+2]=Q/ne,D[M+3]=J/ne}return++R<S?T(R):k}var E=y.imageData.data,k=y.ctx.createImageData(S,x),D=k.data,W=this.lanczosCreate(this.lanczosLobes),I=this.rcpScaleX,U=this.rcpScaleY,A=2/this.rcpScaleX,ee=2/this.rcpScaleY,de=v(I*this.lanczosLobes/2),z=v(U*this.lanczosLobes/2),q={},O={},F={};return T(0)},bilinearFiltering:function(y,b,_,S,x){var T,E,k,D,W,I,U,A,ee,de,z,q,O=0,F,R=this.rcpScaleX,P=this.rcpScaleY,G=4*(b-1),$=y.imageData,M=$.data,ne=y.ctx.createImageData(S,x),X=ne.data;for(U=0;U<x;U++)for(A=0;A<S;A++)for(W=p(R*A),I=p(P*U),ee=R*A-W,de=P*U-I,F=4*(I*b+W),z=0;z<4;z++)T=M[F+z],E=M[F+4+z],k=M[F+G+z],D=M[F+G+4+z],q=T*(1-ee)*(1-de)+E*ee*(1-de)+k*de*(1-ee)+D*ee*de,X[O++]=q;return ne},hermiteFastResize:function(y,b,_,S,x){for(var T=this.rcpScaleX,E=this.rcpScaleY,k=v(T/2),D=v(E/2),W=y.imageData,I=W.data,U=y.ctx.createImageData(S,x),A=U.data,ee=0;ee<x;ee++)for(var de=0;de<S;de++){for(var z=(de+ee*S)*4,q=0,O=0,F=0,R=0,P=0,G=0,$=0,M=(ee+.5)*E,ne=p(ee*E);ne<(ee+1)*E;ne++)for(var X=f(M-(ne+.5))/D,te=(de+.5)*T,Q=X*X,J=p(de*T);J<(de+1)*T;J++){var oe=f(te-(J+.5))/k,pe=u(Q+oe*oe);pe>1&&pe<-1||(q=2*pe*pe*pe-3*pe*pe+1,q>0&&(oe=4*(J+ne*b),$+=q*I[oe+3],F+=q,I[oe+3]<255&&(q=q*I[oe+3]/250),R+=q*I[oe],P+=q*I[oe+1],G+=q*I[oe+2],O+=q))}A[z]=R/O,A[z+1]=P/O,A[z+2]=G/O,A[z+3]=$/F}return U},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),a.Image.filters.Resize.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Contrast=p(c.BaseFilter,{type:"Contrast",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uContrast;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float contrastF = 1.015 * (uContrast + 1.0) / (1.0 * (1.015 - uContrast));
color.rgb = contrastF * (color.rgb - 0.5) + 0.5;
gl_FragColor = color;
}`,contrast:0,mainParameter:"contrast",applyTo2d:function(u){if(this.contrast!==0){var f=u.imageData,s,v,d=f.data,v=d.length,h=Math.floor(this.contrast*255),m=259*(h+255)/(255*(259-h));for(s=0;s<v;s+=4)d[s]=m*(d[s]-128)+128,d[s+1]=m*(d[s+1]-128)+128,d[s+2]=m*(d[s+2]-128)+128}},getUniformLocations:function(u,f){return{uContrast:u.getUniformLocation(f,"uContrast")}},sendUniformData:function(u,f){u.uniform1f(f.uContrast,this.contrast)}}),a.Image.filters.Contrast.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Saturation=p(c.BaseFilter,{type:"Saturation",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uSaturation;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float rgMax = max(color.r, color.g);
float rgbMax = max(rgMax, color.b);
color.r += rgbMax != color.r ? (rgbMax - color.r) * uSaturation : 0.00;
color.g += rgbMax != color.g ? (rgbMax - color.g) * uSaturation : 0.00;
color.b += rgbMax != color.b ? (rgbMax - color.b) * uSaturation : 0.00;
gl_FragColor = color;
}`,saturation:0,mainParameter:"saturation",applyTo2d:function(u){if(this.saturation!==0){var f=u.imageData,s=f.data,d=s.length,v=-this.saturation,h,m;for(h=0;h<d;h+=4)m=Math.max(s[h],s[h+1],s[h+2]),s[h]+=m!==s[h]?(m-s[h])*v:0,s[h+1]+=m!==s[h+1]?(m-s[h+1])*v:0,s[h+2]+=m!==s[h+2]?(m-s[h+2])*v:0}},getUniformLocations:function(u,f){return{uSaturation:u.getUniformLocation(f,"uSaturation")}},sendUniformData:function(u,f){u.uniform1f(f.uSaturation,-this.saturation)}}),a.Image.filters.Saturation.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Vibrance=p(c.BaseFilter,{type:"Vibrance",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform float uVibrance;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
float max = max(color.r, max(color.g, color.b));
float avg = (color.r + color.g + color.b) / 3.0;
float amt = (abs(max - avg) * 2.0) * uVibrance;
color.r += max != color.r ? (max - color.r) * amt : 0.00;
color.g += max != color.g ? (max - color.g) * amt : 0.00;
color.b += max != color.b ? (max - color.b) * amt : 0.00;
gl_FragColor = color;
}`,vibrance:0,mainParameter:"vibrance",applyTo2d:function(u){if(this.vibrance!==0){var f=u.imageData,s=f.data,d=s.length,v=-this.vibrance,h,m,y,b;for(h=0;h<d;h+=4)m=Math.max(s[h],s[h+1],s[h+2]),y=(s[h]+s[h+1]+s[h+2])/3,b=Math.abs(m-y)*2/255*v,s[h]+=m!==s[h]?(m-s[h])*b:0,s[h+1]+=m!==s[h+1]?(m-s[h+1])*b:0,s[h+2]+=m!==s[h+2]?(m-s[h+2])*b:0}},getUniformLocations:function(u,f){return{uVibrance:u.getUniformLocation(f,"uVibrance")}},sendUniformData:function(u,f){u.uniform1f(f.uVibrance,-this.vibrance)}}),a.Image.filters.Vibrance.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Blur=p(c.BaseFilter,{type:"Blur",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec2 uDelta;
varying vec2 vTexCoord;
const float nSamples = 15.0;
vec3 v3offset = vec3(12.9898, 78.233, 151.7182);
float random(vec3 scale) {
return fract(sin(dot(gl_FragCoord.xyz, scale)) * 43758.5453);
}
void main() {
vec4 color = vec4(0.0);
float total = 0.0;
float offset = random(v3offset);
for (float t = -nSamples; t <= nSamples; t++) {
float percent = (t + offset - 0.5) / nSamples;
float weight = 1.0 - abs(percent);
color += texture2D(uTexture, vTexCoord + uDelta * percent) * weight;
total += weight;
}
gl_FragColor = color / total;
}`,blur:0,mainParameter:"blur",applyTo:function(u){u.webgl?(this.aspectRatio=u.sourceWidth/u.sourceHeight,u.passes++,this._setupFrameBuffer(u),this.horizontal=!0,this.applyToWebGL(u),this._swapTextures(u),this._setupFrameBuffer(u),this.horizontal=!1,this.applyToWebGL(u),this._swapTextures(u)):this.applyTo2d(u)},applyTo2d:function(u){u.imageData=this.simpleBlur(u)},simpleBlur:function(u){var f=u.filterBackend.resources,s,d,v=u.imageData.width,h=u.imageData.height;f.blurLayer1||(f.blurLayer1=a.util.createCanvasElement(),f.blurLayer2=a.util.createCanvasElement()),s=f.blurLayer1,d=f.blurLayer2,(s.width!==v||s.height!==h)&&(d.width=s.width=v,d.height=s.height=h);var m=s.getContext("2d"),y=d.getContext("2d"),b=15,_,S,x,T,E=this.blur*.06*.5;for(m.putImageData(u.imageData,0,0),y.clearRect(0,0,v,h),T=-b;T<=b;T++)_=(Math.random()-.5)/4,S=T/b,x=E*S*v+_,y.globalAlpha=1-Math.abs(S),y.drawImage(s,x,_),m.drawImage(d,0,0),y.globalAlpha=1,y.clearRect(0,0,d.width,d.height);for(T=-b;T<=b;T++)_=(Math.random()-.5)/4,S=T/b,x=E*S*h+_,y.globalAlpha=1-Math.abs(S),y.drawImage(s,_,x),m.drawImage(d,0,0),y.globalAlpha=1,y.clearRect(0,0,d.width,d.height);u.ctx.drawImage(s,0,0);var k=u.ctx.getImageData(0,0,s.width,s.height);return m.globalAlpha=1,m.clearRect(0,0,s.width,s.height),k},getUniformLocations:function(u,f){return{delta:u.getUniformLocation(f,"uDelta")}},sendUniformData:function(u,f){var s=this.chooseRightDelta();u.uniform2fv(f.delta,s)},chooseRightDelta:function(){var u=1,f=[0,0],s;return this.horizontal?this.aspectRatio>1&&(u=1/this.aspectRatio):this.aspectRatio<1&&(u=this.aspectRatio),s=u*this.blur*.12,this.horizontal?f[0]=s:f[1]=s,f}}),c.Blur.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Gamma=p(c.BaseFilter,{type:"Gamma",fragmentSource:`precision highp float;
uniform sampler2D uTexture;
uniform vec3 uGamma;
varying vec2 vTexCoord;
void main() {
vec4 color = texture2D(uTexture, vTexCoord);
vec3 correction = (1.0 / uGamma);
color.r = pow(color.r, correction.r);
color.g = pow(color.g, correction.g);
color.b = pow(color.b, correction.b);
gl_FragColor = color;
gl_FragColor.rgb *= color.a;
}`,gamma:[1,1,1],mainParameter:"gamma",initialize:function(u){this.gamma=[1,1,1],c.BaseFilter.prototype.initialize.call(this,u)},applyTo2d:function(u){var f=u.imageData,s=f.data,d=this.gamma,v=s.length,h=1/d[0],m=1/d[1],y=1/d[2],b;for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),b=0,v=256;b<v;b++)this.rVals[b]=Math.pow(b/255,h)*255,this.gVals[b]=Math.pow(b/255,m)*255,this.bVals[b]=Math.pow(b/255,y)*255;for(b=0,v=s.length;b<v;b+=4)s[b]=this.rVals[s[b]],s[b+1]=this.gVals[s[b+1]],s[b+2]=this.bVals[s[b+2]]},getUniformLocations:function(u,f){return{uGamma:u.getUniformLocation(f,"uGamma")}},sendUniformData:function(u,f){u.uniform3fv(f.uGamma,this.gamma)}}),a.Image.filters.Gamma.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.Composed=p(c.BaseFilter,{type:"Composed",subFilters:[],initialize:function(u){this.callSuper("initialize",u),this.subFilters=this.subFilters.slice(0)},applyTo:function(u){u.passes+=this.subFilters.length-1,this.subFilters.forEach(function(f){f.applyTo(u)})},toObject:function(){return a.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map(function(u){return u.toObject()})})},isNeutralState:function(){return!this.subFilters.some(function(u){return!u.isNeutralState()})}}),a.Image.filters.Composed.fromObject=function(u,f){var s=u.subFilters||[],d=s.map(function(h){return new a.Image.filters[h.type](h)}),v=new a.Image.filters.Composed({subFilters:d});return f&&f(v),v}}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.Image.filters,p=a.util.createClass;c.HueRotation=p(c.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var u=this.rotation*Math.PI,f=a.util.cos(u),s=a.util.sin(u),d=1/3,v=Math.sqrt(d)*s,h=1-f;this.matrix=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],this.matrix[0]=f+h/3,this.matrix[1]=d*h-v,this.matrix[2]=d*h+v,this.matrix[5]=d*h+v,this.matrix[6]=f+d*h,this.matrix[7]=d*h-v,this.matrix[10]=d*h-v,this.matrix[11]=d*h+v,this.matrix[12]=f+d*h},isNeutralState:function(u){return this.calculateMatrix(),c.BaseFilter.prototype.isNeutralState.call(this,u)},applyTo:function(u){this.calculateMatrix(),c.BaseFilter.prototype.applyTo.call(this,u)}}),a.Image.filters.HueRotation.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),c=a.util.object.clone;if(a.Text){a.warn("fabric.Text is already defined");return}var p="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");a.Text=a.util.createClass(a.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:a.Object.prototype.stateProperties.concat(p),cacheProperties:a.Object.prototype.cacheProperties.concat(p),stroke:null,shadow:null,path:null,pathStartOffset:0,pathSide:"left",pathAlign:"baseline",_fontSizeFraction:.222,offsets:{underline:.1,linethrough:-.315,overline:-.88},_fontSizeMult:1.13,charSpacing:0,styles:null,_measuringContext:null,deltaY:0,direction:"ltr",_styleProperties:["stroke","strokeWidth","fill","fontFamily","fontSize","fontWeight","fontStyle","underline","overline","linethrough","deltaY","textBackgroundColor"],__charBounds:[],CACHE_FONT_SIZE:400,MIN_TEXT_WIDTH:2,initialize:function(u,f){this.styles=f?f.styles||{}:{},this.text=u,this.__skipDimension=!0,this.callSuper("initialize",f),this.path&&this.setPathInfo(),this.__skipDimension=!1,this.initDimensions(),this.setCoords(),this.setupState({propertySet:"_dimensionAffectingProps"})},setPathInfo:function(){var u=this.path;u&&(u.segmentsInfo=a.util.getPathSegmentsInfo(u.path))},getMeasuringContext:function(){return a._measuringContext||(a._measuringContext=this.canvas&&this.canvas.contextCache||a.util.createCanvasElement().getContext("2d")),a._measuringContext},_splitText:function(){var u=this._splitTextIntoLines(this.text);return this.textLines=u.lines,this._textLines=u.graphemeLines,this._unwrappedTextLines=u._unwrappedLines,this._text=u.graphemeText,u},initDimensions:function(){if(!this.__skipDimension){if(this._splitText(),this._clearCache(),this.path){var u=this.getHeightOfLine(0)*1.1;this.width=this.path.width+u,this.height=this.path.height+u}else this.width=this.calcTextWidth()||this.cursorWidth||this.MIN_TEXT_WIDTH,this.height=this.calcTextHeight();this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.saveState({propertySet:"_dimensionAffectingProps"})}},enlargeSpaces:function(){for(var u,f,s,d,v,h,m,y=0,b=this._textLines.length;y<b;y++)if(!(this.textAlign!=="justify"&&(y===b-1||this.isEndOfWrapping(y)))&&(d=0,v=this._textLines[y],f=this.getLineWidth(y),f<this.width&&(m=this.textLines[y].match(this._reSpacesAndTabs)))){s=m.length,u=(this.width-f)/s;for(var _=0,S=v.length;_<=S;_++)h=this.__charBounds[y][_],this._reSpaceAndTab.test(v[_])?(h.width+=u,h.kernedWidth+=u,h.left+=d,d+=u):h.left+=d}},isEndOfWrapping:function(u){return u===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var u=this.callSuper("_getCacheCanvasDimensions"),f=this.fontSize;return u.width+=f*u.zoomX,u.height+=f*u.zoomY,u},_render:function(u){var f=this.path;f&&!f.isNotVisible()&&f._render(u),this._setTextStyles(u),this._renderTextLinesBackground(u),this._renderTextDecoration(u,"underline"),this._renderText(u),this._renderTextDecoration(u,"overline"),this._renderTextDecoration(u,"linethrough")},_renderText:function(u){this.paintFirst==="stroke"?(this._renderTextStroke(u),this._renderTextFill(u)):(this._renderTextFill(u),this._renderTextStroke(u))},_setTextStyles:function(u,f,s){if(u.textBaseline="alphabetic",this.path)switch(this.pathAlign){case"center":u.textBaseline="middle";break;case"ascender":u.textBaseline="top";break;case"descender":u.textBaseline="bottom";break}u.font=this._getFontDeclaration(f,s)},calcTextWidth:function(){for(var u=this.getLineWidth(0),f=1,s=this._textLines.length;f<s;f++){var d=this.getLineWidth(f);d>u&&(u=d)}return u},_renderTextLine:function(u,f,s,d,v,h){this._renderChars(u,f,s,d,v,h)},_renderTextLinesBackground:function(u){if(!(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))){for(var f,s,d=u.fillStyle,v,h,m=this._getLeftOffset(),y=this._getTopOffset(),b=0,_=0,S,x,T=this.path,E,k=0,D=this._textLines.length;k<D;k++){if(f=this.getHeightOfLine(k),!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",k)){y+=f;continue}v=this._textLines[k],s=this._getLineLeftOffset(k),_=0,b=0,h=this.getValueOfPropertyAt(k,0,"textBackgroundColor");for(var W=0,I=v.length;W<I;W++)S=this.__charBounds[k][W],x=this.getValueOfPropertyAt(k,W,"textBackgroundColor"),T?(u.save(),u.translate(S.renderLeft,S.renderTop),u.rotate(S.angle),u.fillStyle=x,x&&u.fillRect(-S.width/2,-f/this.lineHeight*(1-this._fontSizeFraction),S.width,f/this.lineHeight),u.restore()):x!==h?(E=m+s+b,this.direction==="rtl"&&(E=this.width-E-_),u.fillStyle=h,h&&u.fillRect(E,y,_,f/this.lineHeight),b=S.left,_=S.width,h=x):_+=S.kernedWidth;x&&!T&&(E=m+s+b,this.direction==="rtl"&&(E=this.width-E-_),u.fillStyle=x,u.fillRect(E,y,_,f/this.lineHeight)),y+=f}u.fillStyle=d,this._removeShadow(u)}},getFontCache:function(u){var f=u.fontFamily.toLowerCase();a.charWidthsCache[f]||(a.charWidthsCache[f]={});var s=a.charWidthsCache[f],d=u.fontStyle.toLowerCase()+"_"+(u.fontWeight+"").toLowerCase();return s[d]||(s[d]={}),s[d]},_measureChar:function(u,f,s,d){var v=this.getFontCache(f),h=this._getFontDeclaration(f),m=this._getFontDeclaration(d),y=s+u,b=h===m,_,S,x,T=f.fontSize/this.CACHE_FONT_SIZE,E;if(s&&v[s]!==void 0&&(x=v[s]),v[u]!==void 0&&(E=_=v[u]),b&&v[y]!==void 0&&(S=v[y],E=S-x),_===void 0||x===void 0||S===void 0){var k=this.getMeasuringContext();this._setTextStyles(k,f,!0)}return _===void 0&&(E=_=k.measureText(u).width,v[u]=_),x===void 0&&b&&s&&(x=k.measureText(s).width,v[s]=x),b&&S===void 0&&(S=k.measureText(y).width,v[y]=S,E=S-x),{width:_*T,kernedWidth:E*T}},getHeightOfChar:function(u,f){return this.getValueOfPropertyAt(u,f,"fontSize")},measureLine:function(u){var f=this._measureLine(u);return this.charSpacing!==0&&(f.width-=this._getWidthOfCharSpacing()),f.width<0&&(f.width=0),f},_measureLine:function(u){var f=0,s,d,v=this._textLines[u],h,m,y=0,b=new Array(v.length),_=0,S,x,T=this.path,E=this.pathSide==="right";for(this.__charBounds[u]=b,s=0;s<v.length;s++)d=v[s],m=this._getGraphemeBox(d,u,s,h),b[s]=m,f+=m.kernedWidth,h=d;if(b[s]={left:m?m.left+m.width:0,width:0,kernedWidth:0,height:this.fontSize},T){switch(x=T.segmentsInfo[T.segmentsInfo.length-1].length,S=a.util.getPointOnPath(T.path,0,T.segmentsInfo),S.x+=T.pathOffset.x,S.y+=T.pathOffset.y,this.textAlign){case"left":_=E?x-f:0;break;case"center":_=(x-f)/2;break;case"right":_=E?0:x-f;break}for(_+=this.pathStartOffset*(E?-1:1),s=E?v.length-1:0;E?s>=0:s<v.length;E?s--:s++)m=b[s],_>x?_%=x:_<0&&(_+=x),this._setGraphemeOnPath(_,m,S),_+=m.kernedWidth}return{width:f,numOfSpaces:y}},_setGraphemeOnPath:function(u,f,s){var d=u+f.kernedWidth/2,v=this.path,h=a.util.getPointOnPath(v.path,d,v.segmentsInfo);f.renderLeft=h.x-s.x,f.renderTop=h.y-s.y,f.angle=h.angle+(this.pathSide==="right"?Math.PI:0)},_getGraphemeBox:function(u,f,s,d,v){var h=this.getCompleteStyleDeclaration(f,s),m=d?this.getCompleteStyleDeclaration(f,s-1):{},y=this._measureChar(u,h,d,m),b=y.kernedWidth,_=y.width,S;this.charSpacing!==0&&(S=this._getWidthOfCharSpacing(),_+=S,b+=S);var x={width:_,left:0,height:h.fontSize,kernedWidth:b,deltaY:h.deltaY};if(s>0&&!v){var T=this.__charBounds[f][s-1];x.left=T.left+T.width+y.kernedWidth-y.width}return x},getHeightOfLine:function(u){if(this.__lineHeights[u])return this.__lineHeights[u];for(var f=this._textLines[u],s=this.getHeightOfChar(u,0),d=1,v=f.length;d<v;d++)s=Math.max(this.getHeightOfChar(u,d),s);return this.__lineHeights[u]=s*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var u,f=0,s=0,d=this._textLines.length;s<d;s++)u=this.getHeightOfLine(s),f+=s===d-1?u/this.lineHeight:u;return f},_getLeftOffset:function(){return this.direction==="ltr"?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(u,f){u.save();for(var s=0,d=this._getLeftOffset(),v=this._getTopOffset(),h=0,m=this._textLines.length;h<m;h++){var y=this.getHeightOfLine(h),b=y/this.lineHeight,_=this._getLineLeftOffset(h);this._renderTextLine(f,u,this._textLines[h],d+_,v+s+b,h),s+=y}u.restore()},_renderTextFill:function(u){!this.fill&&!this.styleHas("fill")||this._renderTextCommon(u,"fillText")},_renderTextStroke:function(u){(!this.stroke||this.strokeWidth===0)&&this.isEmptyStyles()||(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(u),u.save(),this._setLineDash(u,this.strokeDashArray),u.beginPath(),this._renderTextCommon(u,"strokeText"),u.closePath(),u.restore())},_renderChars:function(u,f,s,d,v,h){var m=this.getHeightOfLine(h),y=this.textAlign.indexOf("justify")!==-1,b,_,S="",x,T=0,E,k=this.path,D=!y&&this.charSpacing===0&&this.isEmptyStyles(h)&&!k,W=this.direction==="ltr",I=this.direction==="ltr"?1:-1,U,A=f.canvas.getAttribute("dir");if(f.save(),A!==this.direction&&(f.canvas.setAttribute("dir",W?"ltr":"rtl"),f.direction=W?"ltr":"rtl",f.textAlign=W?"left":"right"),v-=m*this._fontSizeFraction/this.lineHeight,D){this._renderChar(u,f,h,0,s.join(""),d,v,m),f.restore();return}for(var ee=0,de=s.length-1;ee<=de;ee++)E=ee===de||this.charSpacing||k,S+=s[ee],x=this.__charBounds[h][ee],T===0?(d+=I*(x.kernedWidth-x.width),T+=x.width):T+=x.kernedWidth,y&&!E&&this._reSpaceAndTab.test(s[ee])&&(E=!0),E||(b=b||this.getCompleteStyleDeclaration(h,ee),_=this.getCompleteStyleDeclaration(h,ee+1),E=a.util.hasStyleChanged(b,_,!1)),E&&(k?(f.save(),f.translate(x.renderLeft,x.renderTop),f.rotate(x.angle),this._renderChar(u,f,h,ee,S,-T/2,0,m),f.restore()):(U=d,this._renderChar(u,f,h,ee,S,U,v,m)),S="",b=_,d+=I*T,T=0);f.restore()},_applyPatternGradientTransformText:function(u){var f=a.util.createCanvasElement(),s,d=this.width+this.strokeWidth,v=this.height+this.strokeWidth;return f.width=d,f.height=v,s=f.getContext("2d"),s.beginPath(),s.moveTo(0,0),s.lineTo(d,0),s.lineTo(d,v),s.lineTo(0,v),s.closePath(),s.translate(d/2,v/2),s.fillStyle=u.toLive(s),this._applyPatternGradientTransform(s,u),s.fill(),s.createPattern(f,"no-repeat")},handleFiller:function(u,f,s){var d,v;return s.toLive?s.gradientUnits==="percentage"||s.gradientTransform||s.patternTransform?(d=-this.width/2,v=-this.height/2,u.translate(d,v),u[f]=this._applyPatternGradientTransformText(s),{offsetX:d,offsetY:v}):(u[f]=s.toLive(u,this),this._applyPatternGradientTransform(u,s)):(u[f]=s,{offsetX:0,offsetY:0})},_setStrokeStyles:function(u,f){return u.lineWidth=f.strokeWidth,u.lineCap=this.strokeLineCap,u.lineDashOffset=this.strokeDashOffset,u.lineJoin=this.strokeLineJoin,u.miterLimit=this.strokeMiterLimit,this.handleFiller(u,"strokeStyle",f.stroke)},_setFillStyles:function(u,f){return this.handleFiller(u,"fillStyle",f.fill)},_renderChar:function(u,f,s,d,v,h,m){var y=this._getStyleDeclaration(s,d),b=this.getCompleteStyleDeclaration(s,d),_=u==="fillText"&&b.fill,S=u==="strokeText"&&b.stroke&&b.strokeWidth,x,T;!S&&!_||(f.save(),_&&(x=this._setFillStyles(f,b)),S&&(T=this._setStrokeStyles(f,b)),f.font=this._getFontDeclaration(b),y&&y.textBackgroundColor&&this._removeShadow(f),y&&y.deltaY&&(m+=y.deltaY),_&&f.fillText(v,h-x.offsetX,m-x.offsetY),S&&f.strokeText(v,h-T.offsetX,m-T.offsetY),f.restore())},setSuperscript:function(u,f){return this._setScript(u,f,this.superscript)},setSubscript:function(u,f){return this._setScript(u,f,this.subscript)},_setScript:function(u,f,s){var d=this.get2DCursorLocation(u,!0),v=this.getValueOfPropertyAt(d.lineIndex,d.charIndex,"fontSize"),h=this.getValueOfPropertyAt(d.lineIndex,d.charIndex,"deltaY"),m={fontSize:v*s.size,deltaY:h+v*s.baseline};return this.setSelectionStyles(m,u,f),this},_getLineLeftOffset:function(u){var f=this.getLineWidth(u),s=this.width-f,d=this.textAlign,v=this.direction,m,h=0,m=this.isEndOfWrapping(u);return d==="justify"||d==="justify-center"&&!m||d==="justify-right"&&!m||d==="justify-left"&&!m?0:(d==="center"&&(h=s/2),d==="right"&&(h=s),d==="justify-center"&&(h=s/2),d==="justify-right"&&(h=s),v==="rtl"&&(h-=s),h)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var u=this._forceClearCache;return u||(u=this.hasStateChanged("_dimensionAffectingProps")),u&&(this.dirty=!0,this._forceClearCache=!1),u},getLineWidth:function(u){if(this.__lineWidths[u]!==void 0)return this.__lineWidths[u];var f=this.measureLine(u),s=f.width;return this.__lineWidths[u]=s,s},_getWidthOfCharSpacing:function(){return this.charSpacing!==0?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(u,f,s){var d=this._getStyleDeclaration(u,f);return d&&typeof d[s]<"u"?d[s]:this[s]},_renderTextDecoration:function(u,f){if(!(!this[f]&&!this.styleHas(f))){u.save(),(f==="overline"||f==="linethrough")&&this._removeShadow(u);for(var s,d,v,h,m,y,b,_,S=this._getLeftOffset(),x=this._getTopOffset(),T,E,k,D,W,I,U,A,ee=this.path,de=this._getWidthOfCharSpacing(),z=this.offsets[f],q=0,O=this._textLines.length;q<O;q++){if(s=this.getHeightOfLine(q),!this[f]&&!this.styleHas(f,q)){x+=s;continue}b=this._textLines[q],I=s/this.lineHeight,h=this._getLineLeftOffset(q),E=0,k=0,_=this.getValueOfPropertyAt(q,0,f),A=this.getValueOfPropertyAt(q,0,"fill"),T=x+I*(1-this._fontSizeFraction),d=this.getHeightOfChar(q,0),m=this.getValueOfPropertyAt(q,0,"deltaY");for(var F=0,R=b.length;F<R;F++)if(D=this.__charBounds[q][F],W=this.getValueOfPropertyAt(q,F,f),U=this.getValueOfPropertyAt(q,F,"fill"),v=this.getHeightOfChar(q,F),y=this.getValueOfPropertyAt(q,F,"deltaY"),ee&&W&&U)u.save(),u.fillStyle=A,u.translate(D.renderLeft,D.renderTop),u.rotate(D.angle),u.fillRect(-D.kernedWidth/2,z*v+y,D.kernedWidth,this.fontSize/15),u.restore();else if((W!==_||U!==A||v!==d||y!==m)&&k>0){var P=S+h+E;this.direction==="rtl"&&(P=this.width-P-k),_&&A&&(u.fillStyle=A,u.fillRect(P,T+z*d+m,k,this.fontSize/15)),E=D.left,k=D.width,_=W,A=U,d=v,m=y}else k+=D.kernedWidth;var P=S+h+E;this.direction==="rtl"&&(P=this.width-P-k),u.fillStyle=U,W&&U&&u.fillRect(P,T+z*d+m,k-de,this.fontSize/15),x+=s}u.restore()}},_getFontDeclaration:function(u,f){var s=u||this,d=this.fontFamily,v=a.Text.genericFonts.indexOf(d.toLowerCase())>-1,h=d===void 0||d.indexOf("'")>-1||d.indexOf(",")>-1||d.indexOf('"')>-1||v?s.fontFamily:'"'+s.fontFamily+'"';return[a.isLikelyNode?s.fontWeight:s.fontStyle,a.isLikelyNode?s.fontStyle:s.fontWeight,f?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",h].join(" ")},render:function(u){!this.visible||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",u))},_splitTextIntoLines:function(u){for(var f=u.split(this._reNewline),s=new Array(f.length),d=[`
`],v=[],h=0;h<f.length;h++)s[h]=a.util.string.graphemeSplit(f[h]),v=v.concat(s[h],d);return v.pop(),{_unwrappedLines:s,lines:f,graphemeText:v,graphemeLines:s}},toObject:function(u){var f=p.concat(u),s=this.callSuper("toObject",f);return s.styles=a.util.stylesToArray(this.styles,this.text),s.path&&(s.path=this.path.toObject()),s},set:function(u,f){this.callSuper("set",u,f);var s=!1,d=!1;if(typeof u=="object")for(var v in u)v==="path"&&this.setPathInfo(),s=s||this._dimensionAffectingProps.indexOf(v)!==-1,d=d||v==="path";else s=this._dimensionAffectingProps.indexOf(u)!==-1,d=u==="path";return d&&this.setPathInfo(),s&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),a.Text.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),a.Text.DEFAULT_SVG_FONT_SIZE=16,a.Text.fromElement=function(u,f,s){if(!u)return f(null);var d=a.parseAttributes(u,a.Text.ATTRIBUTE_NAMES),v=d.textAnchor||"left";if(s=a.util.object.extend(s?c(s):{},d),s.top=s.top||0,s.left=s.left||0,d.textDecoration){var h=d.textDecoration;h.indexOf("underline")!==-1&&(s.underline=!0),h.indexOf("overline")!==-1&&(s.overline=!0),h.indexOf("line-through")!==-1&&(s.linethrough=!0),delete s.textDecoration}"dx"in d&&(s.left+=d.dx),"dy"in d&&(s.top+=d.dy),"fontSize"in s||(s.fontSize=a.Text.DEFAULT_SVG_FONT_SIZE);var m="";"textContent"in u?m=u.textContent:"firstChild"in u&&u.firstChild!==null&&"data"in u.firstChild&&u.firstChild.data!==null&&(m=u.firstChild.data),m=m.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var y=s.strokeWidth;s.strokeWidth=0;var b=new a.Text(m,s),_=b.getScaledHeight()/b.height,S=(b.height+b.strokeWidth)*b.lineHeight-b.height,x=S*_,T=b.getScaledHeight()+x,E=0;v==="center"&&(E=b.getScaledWidth()/2),v==="right"&&(E=b.getScaledWidth()),b.set({left:b.left-E,top:b.top-(T-b.fontSize*(.07+b._fontSizeFraction))/b.lineHeight,strokeWidth:typeof y<"u"?y:1}),f(b)},a.Text.fromObject=function(u,f){var s=c(u),d=u.path;return delete s.path,a.Object._fromObject("Text",s,function(v){v.styles=a.util.stylesFromArray(u.styles,u.text),d?a.Object._fromObject("Path",d,function(h){v.set("path",h),f(v)},"path"):f(v)},"text")},a.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],a.util.createAccessors&&a.util.createAccessors(a.Text)}(e),function(){t.util.object.extend(t.Text.prototype,{isEmptyStyles:function(o){if(!this.styles||typeof o<"u"&&!this.styles[o])return!0;var a=typeof o>"u"?this.styles:{line:this.styles[o]};for(var c in a)for(var p in a[c])for(var u in a[c][p])return!1;return!0},styleHas:function(o,a){if(!this.styles||!o||o===""||typeof a<"u"&&!this.styles[a])return!1;var c=typeof a>"u"?this.styles:{0:this.styles[a]};for(var p in c)for(var u in c[p])if(typeof c[p][u][o]<"u")return!0;return!1},cleanStyle:function(o){if(!this.styles||!o||o==="")return!1;var a=this.styles,c=0,p,u,f=!0,s=0,d;for(var v in a){p=0;for(var h in a[v]){var d=a[v][h],m=d.hasOwnProperty(o);c++,m?(u?d[o]!==u&&(f=!1):u=d[o],d[o]===this[o]&&delete d[o]):f=!1,Object.keys(d).length!==0?p++:delete a[v][h]}p===0&&delete a[v]}for(var y=0;y<this._textLines.length;y++)s+=this._textLines[y].length;f&&c===s&&(this[o]=u,this.removeStyle(o))},removeStyle:function(o){if(!(!this.styles||!o||o==="")){var a=this.styles,c,p,u;for(p in a){c=a[p];for(u in c)delete c[u][o],Object.keys(c[u]).length===0&&delete c[u];Object.keys(c).length===0&&delete a[p]}}},_extendStyles:function(o,a){var c=this.get2DCursorLocation(o);this._getLineStyle(c.lineIndex)||this._setLineStyle(c.lineIndex),this._getStyleDeclaration(c.lineIndex,c.charIndex)||this._setStyleDeclaration(c.lineIndex,c.charIndex,{}),t.util.object.extend(this._getStyleDeclaration(c.lineIndex,c.charIndex),a)},get2DCursorLocation:function(o,a){typeof o>"u"&&(o=this.selectionStart);for(var c=a?this._unwrappedTextLines:this._textLines,p=c.length,u=0;u<p;u++){if(o<=c[u].length)return{lineIndex:u,charIndex:o};o-=c[u].length+this.missingNewlineOffset(u,a)}return{lineIndex:u-1,charIndex:c[u-1].length<o?c[u-1].length:o}},getSelectionStyles:function(o,a,c){typeof o>"u"&&(o=this.selectionStart||0),typeof a>"u"&&(a=this.selectionEnd||o);for(var p=[],u=o;u<a;u++)p.push(this.getStyleAtPosition(u,c));return p},getStyleAtPosition:function(o,a){var c=this.get2DCursorLocation(o),p=a?this.getCompleteStyleDeclaration(c.lineIndex,c.charIndex):this._getStyleDeclaration(c.lineIndex,c.charIndex);return p||{}},setSelectionStyles:function(o,a,c){typeof a>"u"&&(a=this.selectionStart||0),typeof c>"u"&&(c=this.selectionEnd||a);for(var p=a;p<c;p++)this._extendStyles(p,o);return this._forceClearCache=!0,this},_getStyleDeclaration:function(o,a){var c=this.styles&&this.styles[o];return c?c[a]:null},getCompleteStyleDeclaration:function(o,a){for(var c=this._getStyleDeclaration(o,a)||{},p={},u,f=0;f<this._styleProperties.length;f++)u=this._styleProperties[f],p[u]=typeof c[u]>"u"?this[u]:c[u];return p},_setStyleDeclaration:function(o,a,c){this.styles[o][a]=c},_deleteStyleDeclaration:function(o,a){delete this.styles[o][a]},_getLineStyle:function(o){return!!this.styles[o]},_setLineStyle:function(o){this.styles[o]={}},_deleteLineStyle:function(o){delete this.styles[o]}})}(),function(){function o(a){a.textDecoration&&(a.textDecoration.indexOf("underline")>-1&&(a.underline=!0),a.textDecoration.indexOf("line-through")>-1&&(a.linethrough=!0),a.textDecoration.indexOf("overline")>-1&&(a.overline=!0),delete a.textDecoration)}t.IText=t.util.createClass(t.Text,t.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(a,c){this.callSuper("initialize",a,c),this.initBehavior()},setSelectionStart:function(a){a=Math.max(a,0),this._updateAndFire("selectionStart",a)},setSelectionEnd:function(a){a=Math.min(a,this.text.length),this._updateAndFire("selectionEnd",a)},_updateAndFire:function(a,c){this[a]!==c&&(this._fireSelectionChanged(),this[a]=c),this._updateTextarea()},_fireSelectionChanged:function(){this.fire("selection:changed"),this.canvas&&this.canvas.fire("text:selection:changed",{target:this})},initDimensions:function(){this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this.callSuper("initDimensions")},render:function(a){this.clearContextTop(),this.callSuper("render",a),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(a){this.callSuper("_render",a)},clearContextTop:function(a){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var c=this.canvas.contextTop,p=this.canvas.viewportTransform;c.save(),c.transform(p[0],p[1],p[2],p[3],p[4],p[5]),this.transform(c),this._clearTextArea(c),a||c.restore()}},renderCursorOrSelection:function(){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var a=this._getCursorBoundaries(),c=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(a,c):this.renderSelection(a,c),c.restore()}},_clearTextArea:function(a){var c=this.width+4,p=this.height+4;a.clearRect(-c/2,-p/2,c,p)},_getCursorBoundaries:function(a){typeof a>"u"&&(a=this.selectionStart);var c=this._getLeftOffset(),p=this._getTopOffset(),u=this._getCursorBoundariesOffsets(a);return{left:c,top:p,leftOffset:u.left,topOffset:u.top}},_getCursorBoundariesOffsets:function(a){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var c,p,u,f=0,s=0,d,v=this.get2DCursorLocation(a);u=v.charIndex,p=v.lineIndex;for(var h=0;h<p;h++)f+=this.getHeightOfLine(h);c=this._getLineLeftOffset(p);var m=this.__charBounds[p][u];return m&&(s=m.left),this.charSpacing!==0&&u===this._textLines[p].length&&(s-=this._getWidthOfCharSpacing()),d={top:f,left:c+(s>0?s:0)},this.direction==="rtl"&&(d.left*=-1),this.cursorOffsetCache=d,this.cursorOffsetCache},renderCursor:function(a,c){var p=this.get2DCursorLocation(),u=p.lineIndex,f=p.charIndex>0?p.charIndex-1:0,s=this.getValueOfPropertyAt(u,f,"fontSize"),d=this.scaleX*this.canvas.getZoom(),v=this.cursorWidth/d,h=a.topOffset,m=this.getValueOfPropertyAt(u,f,"deltaY");h+=(1-this._fontSizeFraction)*this.getHeightOfLine(u)/this.lineHeight-s*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(a,c),c.fillStyle=this.cursorColor||this.getValueOfPropertyAt(u,f,"fill"),c.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,c.fillRect(a.left+a.leftOffset-v/2,h+a.top+m,v,s)},renderSelection:function(a,c){for(var p=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,u=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,f=this.textAlign.indexOf("justify")!==-1,s=this.get2DCursorLocation(p),d=this.get2DCursorLocation(u),v=s.lineIndex,h=d.lineIndex,m=s.charIndex<0?0:s.charIndex,y=d.charIndex<0?0:d.charIndex,b=v;b<=h;b++){var _=this._getLineLeftOffset(b)||0,S=this.getHeightOfLine(b),x=0,T=0,E=0;if(b===v&&(T=this.__charBounds[v][m].left),b>=v&&b<h)E=f&&!this.isEndOfWrapping(b)?this.width:this.getLineWidth(b)||5;else if(b===h)if(y===0)E=this.__charBounds[h][y].left;else{var k=this._getWidthOfCharSpacing();E=this.__charBounds[h][y-1].left+this.__charBounds[h][y-1].width-k}x=S,(this.lineHeight<1||b===h&&this.lineHeight>1)&&(S/=this.lineHeight);var D=a.left+_+T,W=E-T,I=S,U=0;this.inCompositionMode?(c.fillStyle=this.compositionColor||"black",I=1,U=S):c.fillStyle=this.selectionColor,this.direction==="rtl"&&(D=this.width-D-W),c.fillRect(D,a.top+a.topOffset+U,W,I),a.topOffset+=x}},getCurrentCharFontSize:function(){var a=this._getCurrentCharIndex();return this.getValueOfPropertyAt(a.l,a.c,"fontSize")},getCurrentCharColor:function(){var a=this._getCurrentCharIndex();return this.getValueOfPropertyAt(a.l,a.c,"fill")},_getCurrentCharIndex:function(){var a=this.get2DCursorLocation(this.selectionStart,!0),c=a.charIndex>0?a.charIndex-1:0;return{l:a.lineIndex,c}}}),t.IText.fromObject=function(a,c){var p=t.util.stylesFromArray(a.styles,a.text),u=Object.assign({},a,{styles:p});if(delete u.path,o(u),u.styles)for(var f in u.styles)for(var s in u.styles[f])o(u.styles[f][s]);t.Object._fromObject("IText",u,function(d){a.path?t.Object._fromObject("Path",a.path,function(v){d.set("path",v),c(d)},"path"):c(d)},"text")}}(),function(){var o=t.util.object.clone;t.util.object.extend(t.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var a=this;this.on("added",function(){var c=a.canvas;c&&(c._hasITextHandlers||(c._hasITextHandlers=!0,a._initCanvasHandlers(c)),c._iTextInstances=c._iTextInstances||[],c._iTextInstances.push(a))})},initRemovedHandler:function(){var a=this;this.on("removed",function(){var c=a.canvas;c&&(c._iTextInstances=c._iTextInstances||[],t.util.removeFromArray(c._iTextInstances,a),c._iTextInstances.length===0&&(c._hasITextHandlers=!1,a._removeCanvasHandlers(c)))})},_initCanvasHandlers:function(a){a._mouseUpITextHandler=function(){a._iTextInstances&&a._iTextInstances.forEach(function(c){c.__isMousedown=!1})},a.on("mouse:up",a._mouseUpITextHandler)},_removeCanvasHandlers:function(a){a.off("mouse:up",a._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(a,c,p,u){var f;return f={isAborted:!1,abort:function(){this.isAborted=!0}},a.animate("_currentCursorOpacity",c,{duration:p,onComplete:function(){f.isAborted||a[u]()},onChange:function(){a.canvas&&a.selectionStart===a.selectionEnd&&a.renderCursorOrSelection()},abort:function(){return f.isAborted}}),f},_onTickComplete:function(){var a=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){a._currentTickCompleteState=a._animateCursor(a,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(a){var c=this,p=a?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){c._tick()},p)},abortCursorAnimation:function(){var a=this._currentTickState||this._currentTickCompleteState,c=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,a&&c&&c.clearContext(c.contextTop||c.contextContainer)},selectAll:function(){return this.selectionStart=0,this.selectionEnd=this._text.length,this._fireSelectionChanged(),this._updateTextarea(),this},getSelectedText:function(){return this._text.slice(this.selectionStart,this.selectionEnd).join("")},findWordBoundaryLeft:function(a){var c=0,p=a-1;if(this._reSpace.test(this._text[p]))for(;this._reSpace.test(this._text[p]);)c++,p--;for(;/\S/.test(this._text[p])&&p>-1;)c++,p--;return a-c},findWordBoundaryRight:function(a){var c=0,p=a;if(this._reSpace.test(this._text[p]))for(;this._reSpace.test(this._text[p]);)c++,p++;for(;/\S/.test(this._text[p])&&p<this._text.length;)c++,p++;return a+c},findLineBoundaryLeft:function(a){for(var c=0,p=a-1;!/\n/.test(this._text[p])&&p>-1;)c++,p--;return a-c},findLineBoundaryRight:function(a){for(var c=0,p=a;!/\n/.test(this._text[p])&&p<this._text.length;)c++,p++;return a+c},searchWordBoundary:function(a,c){for(var p=this._text,u=this._reSpace.test(p[a])?a-1:a,f=p[u],s=t.reNonWord;!s.test(f)&&u>0&&u<p.length;)u+=c,f=p[u];return s.test(f)&&(u+=c===1?0:1),u},selectWord:function(a){a=a||this.selectionStart;var c=this.searchWordBoundary(a,-1),p=this.searchWordBoundary(a,1);this.selectionStart=c,this.selectionEnd=p,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(a){a=a||this.selectionStart;var c=this.findLineBoundaryLeft(a),p=this.findLineBoundaryRight(a);return this.selectionStart=c,this.selectionEnd=p,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(a){if(!(this.isEditing||!this.editable))return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(a),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(a){a._iTextInstances&&a._iTextInstances.forEach(function(c){c.selected=!1,c.isEditing&&c.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(a){if(!(!this.__isMousedown||!this.isEditing)){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var c=this.getSelectionStartFromPointer(a.e),p=this.selectionStart,u=this.selectionEnd;(c!==this.__selectionStartOnMouseDown||p===u)&&(p===c||u===c)||(c>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=c):(this.selectionStart=c,this.selectionEnd=this.__selectionStartOnMouseDown),(this.selectionStart!==p||this.selectionEnd!==u)&&(this.restartCursorIfNeeded(),this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()))}},_setEditingProps:function(){this.hoverCursor="text",this.canvas&&(this.canvas.defaultCursor=this.canvas.moveCursor="text"),this.borderColor=this.editingBorderColor,this.hasControls=this.selectable=!1,this.lockMovementX=this.lockMovementY=!0},fromStringToGraphemeSelection:function(a,c,p){var u=p.slice(0,a),f=t.util.string.graphemeSplit(u).length;if(a===c)return{selectionStart:f,selectionEnd:f};var s=p.slice(a,c),d=t.util.string.graphemeSplit(s).length;return{selectionStart:f,selectionEnd:f+d}},fromGraphemeToStringSelection:function(a,c,p){var u=p.slice(0,a),f=u.join("").length;if(a===c)return{selectionStart:f,selectionEnd:f};var s=p.slice(a,c),d=s.join("").length;return{selectionStart:f,selectionEnd:f+d}},_updateTextarea:function(){if(this.cursorOffsetCache={},!!this.hiddenTextarea){if(!this.inCompositionMode){var a=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=a.selectionStart,this.hiddenTextarea.selectionEnd=a.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(!!this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var a=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=a.selectionEnd,this.inCompositionMode||(this.selectionStart=a.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var a=this._calcTextareaPosition();this.hiddenTextarea.style.left=a.left,this.hiddenTextarea.style.top=a.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var a=this.inCompositionMode?this.compositionStart:this.selectionStart,c=this._getCursorBoundaries(a),p=this.get2DCursorLocation(a),u=p.lineIndex,f=p.charIndex,s=this.getValueOfPropertyAt(u,f,"fontSize")*this.lineHeight,d=c.leftOffset,v=this.calcTransformMatrix(),h={x:c.left+d,y:c.top+c.topOffset+s},m=this.canvas.getRetinaScaling(),y=this.canvas.upperCanvasEl,b=y.width/m,_=y.height/m,S=b-s,x=_-s,T=y.clientWidth/b,E=y.clientHeight/_;return h=t.util.transformPoint(h,v),h=t.util.transformPoint(h,this.canvas.viewportTransform),h.x*=T,h.y*=E,h.x<0&&(h.x=0),h.x>S&&(h.x=S),h.y<0&&(h.y=0),h.y>x&&(h.y=x),h.x+=this.canvas._offset.left,h.y+=this.canvas._offset.top,{left:h.x+"px",top:h.y+"px",fontSize:s+"px",charHeight:s}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){!this._savedProps||(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var a=this._textBeforeEdit!==this.text,c=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,c&&(c.blur&&c.blur(),c.parentNode&&c.parentNode.removeChild(c)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),a&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),a&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var a in this.styles)this._textLines[a]||delete this.styles[a]},removeStyleFromTo:function(a,c){var p=this.get2DCursorLocation(a,!0),u=this.get2DCursorLocation(c,!0),f=p.lineIndex,s=p.charIndex,d=u.lineIndex,v=u.charIndex,h,m;if(f!==d){if(this.styles[f])for(h=s;h<this._unwrappedTextLines[f].length;h++)delete this.styles[f][h];if(this.styles[d])for(h=v;h<this._unwrappedTextLines[d].length;h++)m=this.styles[d][h],m&&(this.styles[f]||(this.styles[f]={}),this.styles[f][s+h-v]=m);for(h=f+1;h<=d;h++)delete this.styles[h];this.shiftLineStyles(d,f-d)}else if(this.styles[f]){m=this.styles[f];var y=v-s,b,_;for(h=s;h<v;h++)delete m[h];for(_ in this.styles[f])b=parseInt(_,10),b>=v&&(m[b-y]=m[_],delete m[_])}},shiftLineStyles:function(a,c){var p=o(this.styles);for(var u in this.styles){var f=parseInt(u,10);f>a&&(this.styles[f+c]=p[f],p[f-c]||delete this.styles[f])}},restartCursorIfNeeded:function(){(!this._currentTickState||this._currentTickState.isAborted||!this._currentTickCompleteState||this._currentTickCompleteState.isAborted)&&this.initDelayedCursor()},insertNewlineStyleObject:function(a,c,p,u){var f,s={},d=!1,v=this._unwrappedTextLines[a].length,h=v===c;p||(p=1),this.shiftLineStyles(a,p),this.styles[a]&&(f=this.styles[a][c===0?c:c-1]);for(var m in this.styles[a]){var y=parseInt(m,10);y>=c&&(d=!0,s[y-c]=this.styles[a][m],h&&c===0||delete this.styles[a][m])}var b=!1;for(d&&!h&&(this.styles[a+p]=s,b=!0),(b||v>c)&&p--;p>0;)u&&u[p-1]?this.styles[a+p]={0:o(u[p-1])}:f?this.styles[a+p]={0:o(f)}:delete this.styles[a+p],p--;this._forceClearCache=!0},insertCharStyleObject:function(a,c,p,u){this.styles||(this.styles={});var f=this.styles[a],s=f?o(f):{};p||(p=1);for(var d in s){var v=parseInt(d,10);v>=c&&(f[v+p]=s[v],s[v-p]||delete f[v])}if(this._forceClearCache=!0,u){for(;p--;)!Object.keys(u[p]).length||(this.styles[a]||(this.styles[a]={}),this.styles[a][c+p]=o(u[p]));return}if(!!f)for(var h=f[c?c-1:1];h&&p--;)this.styles[a][c+p]=o(h)},insertNewStyleBlock:function(a,c,p){for(var u=this.get2DCursorLocation(c,!0),f=[0],s=0,d=0;d<a.length;d++)a[d]===`
`?(s++,f[s]=0):f[s]++;f[0]>0&&(this.insertCharStyleObject(u.lineIndex,u.charIndex,f[0],p),p=p&&p.slice(f[0]+1)),s&&this.insertNewlineStyleObject(u.lineIndex,u.charIndex+f[0],s);for(var d=1;d<s;d++)f[d]>0?this.insertCharStyleObject(u.lineIndex+d,0,f[d],p):p&&this.styles[u.lineIndex+d]&&p[0]&&(this.styles[u.lineIndex+d][0]=p[0]),p=p&&p.slice(f[d]+1);f[d]>0&&this.insertCharStyleObject(u.lineIndex+d,0,f[d],p)},setSelectionStartEndWithShift:function(a,c,p){p<=a?(c===a?this._selectionDirection="left":this._selectionDirection==="right"&&(this._selectionDirection="left",this.selectionEnd=a),this.selectionStart=p):p>a&&p<c?this._selectionDirection==="right"?this.selectionEnd=p:this.selectionStart=p:(c===a?this._selectionDirection="right":this._selectionDirection==="left"&&(this._selectionDirection="right",this.selectionStart=c),this.selectionEnd=p)},setSelectionInBoundaries:function(){var a=this.text.length;this.selectionStart>a?this.selectionStart=a:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>a?this.selectionEnd=a:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),t.util.object.extend(t.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(o){if(!!this.canvas){this.__newClickTime=+new Date;var a=o.pointer;this.isTripleClick(a)&&(this.fire("tripleclick",o),this._stopEvent(o.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=a,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(o){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===o.x&&this.__lastPointer.y===o.y},_stopEvent:function(o){o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(o){!this.isEditing||this.selectWord(this.getSelectionStartFromPointer(o.e))},tripleClickHandler:function(o){!this.isEditing||this.selectLine(this.getSelectionStartFromPointer(o.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(o){!this.canvas||!this.editable||o.e.button&&o.e.button!==1||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(o.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(o){!this.canvas||!this.editable||o.e.button&&o.e.button!==1||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(o){if(this.__isMousedown=!1,!(!this.editable||this.group||o.transform&&o.transform.actionPerformed||o.e.button&&o.e.button!==1)){if(this.canvas){var a=this.canvas._activeObject;if(a&&a!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(o.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(o){var a=this.getSelectionStartFromPointer(o),c=this.selectionStart,p=this.selectionEnd;o.shiftKey?this.setSelectionStartEndWithShift(c,p,a):(this.selectionStart=a,this.selectionEnd=a),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(o){for(var a=this.getLocalPointer(o),c=0,p=0,u=0,f=0,s=0,d,v,h=0,m=this._textLines.length;h<m&&u<=a.y;h++)u+=this.getHeightOfLine(h)*this.scaleY,s=h,h>0&&(f+=this._textLines[h-1].length+this.missingNewlineOffset(h-1));d=this._getLineLeftOffset(s),p=d*this.scaleX,v=this._textLines[s],this.direction==="rtl"&&(a.x=this.width*this.scaleX-a.x+p);for(var y=0,b=v.length;y<b&&(c=p,p+=this.__charBounds[s][y].kernedWidth*this.scaleX,p<=a.x);y++)f++;return this._getNewSelectionStartFromOffset(a,c,p,f,b)},_getNewSelectionStartFromOffset:function(o,a,c,p,u){var f=o.x-a,s=c-o.x,d=s>f||s<0?0:1,v=p+d;return this.flipX&&(v=u-v),v>this._text.length&&(v=this._text.length),v}}),t.util.object.extend(t.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=t.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var o=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+o.top+"; left: "+o.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding-top: "+o.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):t.document.body.appendChild(this.hiddenTextarea),t.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),t.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),t.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),t.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(t.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(o){if(!!this.isEditing){var a=this.direction==="rtl"?this.keysMapRtl:this.keysMap;if(o.keyCode in a)this[a[o.keyCode]](o);else if(o.keyCode in this.ctrlKeysMapDown&&(o.ctrlKey||o.metaKey))this[this.ctrlKeysMapDown[o.keyCode]](o);else return;o.stopImmediatePropagation(),o.preventDefault(),o.keyCode>=33&&o.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(o){if(!this.isEditing||this._copyDone||this.inCompositionMode){this._copyDone=!1;return}if(o.keyCode in this.ctrlKeysMapUp&&(o.ctrlKey||o.metaKey))this[this.ctrlKeysMapUp[o.keyCode]](o);else return;o.stopImmediatePropagation(),o.preventDefault(),this.canvas&&this.canvas.requestRenderAll()},onInput:function(o){var a=this.fromPaste;if(this.fromPaste=!1,o&&o.stopPropagation(),!!this.isEditing){var c=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,p=this._text.length,u=c.length,f,s,d=u-p,v=this.selectionStart,h=this.selectionEnd,m=v!==h,y,b,_;if(this.hiddenTextarea.value===""){this.styles={},this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll());return}var S=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value),x=v>S.selectionStart;m?(f=this._text.slice(v,h),d+=h-v):u<p&&(x?f=this._text.slice(h+d,h):f=this._text.slice(v,v-d)),s=c.slice(S.selectionEnd-d,S.selectionEnd),f&&f.length&&(s.length&&(y=this.getSelectionStyles(v,v+1,!1),y=s.map(function(){return y[0]})),m?(b=v,_=h):x?(b=h-f.length,_=h):(b=h,_=h+f.length),this.removeStyleFromTo(b,_)),s.length&&(a&&s.join("")===t.copiedText&&!t.disableStyleCopyPaste&&(y=t.copiedTextStyle),this.insertNewStyleBlock(s,v,y)),this.updateFromTextArea(),this.fire("changed"),this.canvas&&(this.canvas.fire("text:changed",{target:this}),this.canvas.requestRenderAll())}},onCompositionStart:function(){this.inCompositionMode=!0},onCompositionEnd:function(){this.inCompositionMode=!1},onCompositionUpdate:function(o){this.compositionStart=o.target.selectionStart,this.compositionEnd=o.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(t.copiedText=this.getSelectedText(),t.disableStyleCopyPaste?t.copiedTextStyle=null:t.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(o){return o&&o.clipboardData||t.window.clipboardData},_getWidthBeforeCursor:function(o,a){var c=this._getLineLeftOffset(o),p;return a>0&&(p=this.__charBounds[o][a-1],c+=p.left+p.width),c},getDownCursorOffset:function(o,a){var c=this._getSelectionForOffset(o,a),p=this.get2DCursorLocation(c),u=p.lineIndex;if(u===this._textLines.length-1||o.metaKey||o.keyCode===34)return this._text.length-c;var f=p.charIndex,s=this._getWidthBeforeCursor(u,f),d=this._getIndexOnLine(u+1,s),v=this._textLines[u].slice(f);return v.length+d+1+this.missingNewlineOffset(u)},_getSelectionForOffset:function(o,a){return o.shiftKey&&this.selectionStart!==this.selectionEnd&&a?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(o,a){var c=this._getSelectionForOffset(o,a),p=this.get2DCursorLocation(c),u=p.lineIndex;if(u===0||o.metaKey||o.keyCode===33)return-c;var f=p.charIndex,s=this._getWidthBeforeCursor(u,f),d=this._getIndexOnLine(u-1,s),v=this._textLines[u].slice(0,f),h=this.missingNewlineOffset(u-1);return-this._textLines[u-1].length+d-v.length+(1-h)},_getIndexOnLine:function(o,a){for(var c=this._textLines[o],p=this._getLineLeftOffset(o),u=p,f=0,s,d,v=0,h=c.length;v<h;v++)if(s=this.__charBounds[o][v].width,u+=s,u>a){d=!0;var m=u-s,y=u,b=Math.abs(m-a),_=Math.abs(y-a);f=_<b?v:v-1;break}return d||(f=c.length-1),f},moveCursorDown:function(o){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",o)},moveCursorUp:function(o){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown("Up",o)},_moveCursorUpOrDown:function(o,a){var c="get"+o+"CursorOffset",p=this[c](a,this._selectionDirection==="right");a.shiftKey?this.moveCursorWithShift(p):this.moveCursorWithoutShift(p),p!==0&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(o){var a=this._selectionDirection==="left"?this.selectionStart+o:this.selectionEnd+o;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,a),o!==0},moveCursorWithoutShift:function(o){return o<0?(this.selectionStart+=o,this.selectionEnd=this.selectionStart):(this.selectionEnd+=o,this.selectionStart=this.selectionEnd),o!==0},moveCursorLeft:function(o){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight("Left",o)},_move:function(o,a,c){var p;if(o.altKey)p=this["findWordBoundary"+c](this[a]);else if(o.metaKey||o.keyCode===35||o.keyCode===36)p=this["findLineBoundary"+c](this[a]);else return this[a]+=c==="Left"?-1:1,!0;if(typeof p<"u"&&this[a]!==p)return this[a]=p,!0},_moveLeft:function(o,a){return this._move(o,a,"Left")},_moveRight:function(o,a){return this._move(o,a,"Right")},moveCursorLeftWithoutShift:function(o){var a=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(a=this._moveLeft(o,"selectionStart")),this.selectionEnd=this.selectionStart,a},moveCursorLeftWithShift:function(o){if(this._selectionDirection==="right"&&this.selectionStart!==this.selectionEnd)return this._moveLeft(o,"selectionEnd");if(this.selectionStart!==0)return this._selectionDirection="left",this._moveLeft(o,"selectionStart")},moveCursorRight:function(o){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",o)},_moveCursorLeftOrRight:function(o,a){var c="moveCursor"+o+"With";this._currentCursorOpacity=1,a.shiftKey?c+="Shift":c+="outShift",this[c](a)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(o){if(this._selectionDirection==="left"&&this.selectionStart!==this.selectionEnd)return this._moveRight(o,"selectionStart");if(this.selectionEnd!==this._text.length)return this._selectionDirection="right",this._moveRight(o,"selectionEnd")},moveCursorRightWithoutShift:function(o){var a=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(a=this._moveRight(o,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,a},removeChars:function(o,a){typeof a>"u"&&(a=o+1),this.removeStyleFromTo(o,a),this._text.splice(o,a-o),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(o,a,c,p){typeof p>"u"&&(p=c),p>c&&this.removeStyleFromTo(c,p);var u=t.util.string.graphemeSplit(o);this.insertNewStyleBlock(u,c,a),this._text=[].concat(this._text.slice(0,c),u,this._text.slice(p)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var o=t.util.toFixed,a=t.util.radiansToDegrees,c=t.util.calcRotateMatrix,p=t.util.transformPoint,u=/ +/g;t.util.object.extend(t.Text.prototype,{_toSVG:function(){var f=this._getSVGLeftTopOffsets(),s=this._getSVGTextAndBg(f.textTop,f.textLeft);return this._wrapSVGTextAndBg(s)},toSVG:function(f){var s=this._createBaseSVGMarkup(this._toSVG(),{reviver:f,noStyle:!0,withShadow:!0}),d=this.path;return d?s+d._createBaseSVGMarkup(d._toSVG(),{reviver:f,withShadow:!0}):s},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(f){var s=!0,d=this.getSvgTextDecoration(this);return[f.textBgRects.join(""),' <text xml:space="preserve" ',this.fontFamily?'font-family="'+this.fontFamily.replace(/"/g,"'")+'" ':"",this.fontSize?'font-size="'+this.fontSize+'" ':"",this.fontStyle?'font-style="'+this.fontStyle+'" ':"",this.fontWeight?'font-weight="'+this.fontWeight+'" ':"",d?'text-decoration="'+d+'" ':"",'style="',this.getSvgStyles(s),'"',this.addPaintOrder()," >",f.textSpans.join(""),`</text>
`]},_getSVGTextAndBg:function(f,s){var d=[],v=[],h=f,m;this._setSVGBg(v);for(var y=0,b=this._textLines.length;y<b;y++)m=this._getLineLeftOffset(y),(this.textBackgroundColor||this.styleHas("textBackgroundColor",y))&&this._setSVGTextLineBg(v,y,s+m,h),this._setSVGTextLineText(d,y,s+m,h),h+=this.getHeightOfLine(y);return{textSpans:d,textBgRects:v}},_createTextCharSpan:function(f,s,d,v,h){var m=f!==f.trim()||f.match(u),y=this.getSvgSpanStyles(s,m),b=y?'style="'+y+'"':"",_=s.deltaY,S="",x=t.Object.NUM_FRACTION_DIGITS,T="";if(_&&(S=' dy="'+o(_,x)+'" '),h.renderLeft!==void 0){var E=h.angle;T=' rotate="'+o(a(E),t.Object.NUM_FRACTION_DIGITS)+'" ';var k=h.width/2,D=c({angle:a(E)});D[4]=h.renderLeft,D[5]=h.renderTop;var W=p({x:-k,y:0},D);d=W.x,v=W.y}return['<tspan x="',o(d,x),'" y="',o(v,x),'" ',S,b,T,">",t.util.string.escapeXml(f),"</tspan>"].join("")},_setSVGTextLineText:function(f,s,d,v){var h=this.getHeightOfLine(s),m=this.textAlign.indexOf("justify")!==-1,y,b,_="",S,x,T=0,E=this._textLines[s],k;v+=h*(1-this._fontSizeFraction)/this.lineHeight;for(var D=0,W=E.length-1;D<=W;D++)k=D===W||this.charSpacing||this.path,_+=E[D],S=this.__charBounds[s][D],T===0?(d+=S.kernedWidth-S.width,T+=S.width):T+=S.kernedWidth,m&&!k&&this._reSpaceAndTab.test(E[D])&&(k=!0),k||(y=y||this.getCompleteStyleDeclaration(s,D),b=this.getCompleteStyleDeclaration(s,D+1),k=t.util.hasStyleChanged(y,b,!0)),k&&(x=this._getStyleDeclaration(s,D)||{},f.push(this._createTextCharSpan(_,x,d,v,S)),_="",y=b,d+=T,T=0)},_pushTextBgRect:function(f,s,d,v,h,m){var y=t.Object.NUM_FRACTION_DIGITS;f.push(" <rect ",this._getFillAttributes(s),' x="',o(d,y),'" y="',o(v,y),'" width="',o(h,y),'" height="',o(m,y),`"></rect>
`)},_setSVGTextLineBg:function(f,s,d,v){for(var h=this._textLines[s],m=this.getHeightOfLine(s)/this.lineHeight,y=0,b=0,_,S,x=this.getValueOfPropertyAt(s,0,"textBackgroundColor"),T=0,E=h.length;T<E;T++)_=this.__charBounds[s][T],S=this.getValueOfPropertyAt(s,T,"textBackgroundColor"),S!==x?(x&&this._pushTextBgRect(f,x,d+b,v,y,m),b=_.left,y=_.width,x=S):y+=_.kernedWidth;S&&this._pushTextBgRect(f,S,d+b,v,y,m)},_getFillAttributes:function(f){var s=f&&typeof f=="string"?new t.Color(f):"";return!s||!s.getSource()||s.getAlpha()===1?'fill="'+f+'"':'opacity="'+s.getAlpha()+'" fill="'+s.setAlpha(1).toRgb()+'"'},_getSVGLineTopOffset:function(f){for(var s=0,d=0,v=0;v<f;v++)s+=this.getHeightOfLine(v);return d=this.getHeightOfLine(v),{lineTop:s,offset:(this._fontSizeMult-this._fontSizeFraction)*d/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(f){var s=t.Object.prototype.getSvgStyles.call(this,f);return s+" white-space: pre;"}})}(),function(o){var a=o.fabric||(o.fabric={});a.Textbox=a.util.createClass(a.IText,a.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:a.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(c){for(var p=0,u=0,f=0,s={},d=0;d<c.graphemeLines.length;d++)c.graphemeText[f]===`
`&&d>0?(u=0,f++,p++):!this.splitByGrapheme&&this._reSpaceAndTab.test(c.graphemeText[f])&&d>0&&(u++,f++),s[d]={line:p,offset:u},f+=c.graphemeLines[d].length,u+=c.graphemeLines[d].length;return s},styleHas:function(c,p){if(this._styleMap&&!this.isWrapping){var u=this._styleMap[p];u&&(p=u.line)}return a.Text.prototype.styleHas.call(this,c,p)},isEmptyStyles:function(c){if(!this.styles)return!0;var p=0,u=c+1,f,s,d=!1,v=this._styleMap[c],h=this._styleMap[c+1];v&&(c=v.line,p=v.offset),h&&(u=h.line,d=u===c,f=h.offset),s=typeof c>"u"?this.styles:{line:this.styles[c]};for(var m in s)for(var y in s[m])if(y>=p&&(!d||y<f))for(var b in s[m][y])return!1;return!0},_getStyleDeclaration:function(c,p){if(this._styleMap&&!this.isWrapping){var u=this._styleMap[c];if(!u)return null;c=u.line,p=u.offset+p}return this.callSuper("_getStyleDeclaration",c,p)},_setStyleDeclaration:function(c,p,u){var f=this._styleMap[c];c=f.line,p=f.offset+p,this.styles[c][p]=u},_deleteStyleDeclaration:function(c,p){var u=this._styleMap[c];c=u.line,p=u.offset+p,delete this.styles[c][p]},_getLineStyle:function(c){var p=this._styleMap[c];return!!this.styles[p.line]},_setLineStyle:function(c){var p=this._styleMap[c];this.styles[p.line]={}},_wrapText:function(c,p){var u=[],f;for(this.isWrapping=!0,f=0;f<c.length;f++)u=u.concat(this._wrapLine(c[f],f,p));return this.isWrapping=!1,u},_measureWord:function(c,p,u){var f=0,s,d=!0;u=u||0;for(var v=0,h=c.length;v<h;v++){var m=this._getGraphemeBox(c[v],p,v+u,s,d);f+=m.kernedWidth,s=c[v]}return f},_wrapLine:function(c,p,u,D){var s=0,d=this.splitByGrapheme,v=[],h=[],m=d?a.util.string.graphemeSplit(c):c.split(this._wordJoiners),y="",b=0,_=d?"":" ",S=0,x=0,T=0,E=!0,k=this._getWidthOfCharSpacing(),D=D||0;m.length===0&&m.push([]),u-=D;for(var W=0;W<m.length;W++)y=d?m[W]:a.util.string.graphemeSplit(m[W]),S=this._measureWord(y,p,b),b+=y.length,s+=x+S-k,s>u&&!E?(v.push(h),h=[],s=S,E=!0):s+=k,!E&&!d&&h.push(_),h=h.concat(y),x=d?0:this._measureWord([_],p,b),b++,E=!1,S>T&&(T=S);return W&&v.push(h),T+D>this.dynamicMinWidth&&(this.dynamicMinWidth=T-k+D),v},isEndOfWrapping:function(c){return!this._styleMap[c+1]||this._styleMap[c+1].line!==this._styleMap[c].line},missingNewlineOffset:function(c,p){return this.splitByGrapheme&&!p?this.isEndOfWrapping(c)?1:0:1},_splitTextIntoLines:function(c){for(var p=a.Text.prototype._splitTextIntoLines.call(this,c),u=this._wrapText(p.lines,this.width),f=new Array(u.length),s=0;s<u.length;s++)f[s]=u[s].join("");return p.lines=f,p.graphemeLines=u,p},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var c={};for(var p in this._styleMap)this._textLines[p]&&(c[this._styleMap[p].line]=1);for(var p in this.styles)c[p]||delete this.styles[p]},toObject:function(c){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(c))}}),a.Textbox.fromObject=function(c,p){var u=a.util.stylesFromArray(c.styles,c.text),f=Object.assign({},c,{styles:u});return delete f.path,a.Object._fromObject("Textbox",f,function(s){c.path?a.Object._fromObject("Path",c.path,function(d){s.set("path",d),p(s)},"path"):p(s)},"text")}}(e),function(){var o=t.controlsUtils,a=o.scaleSkewCursorStyleHandler,c=o.scaleCursorStyleHandler,p=o.scalingEqually,u=o.scalingYOrSkewingX,f=o.scalingXOrSkewingY,s=o.scaleOrSkewActionName,d=t.Object.prototype.controls;if(d.ml=new t.Control({x:-.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),d.mr=new t.Control({x:.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),d.mb=new t.Control({x:0,y:.5,cursorStyleHandler:a,actionHandler:u,getActionName:s}),d.mt=new t.Control({x:0,y:-.5,cursorStyleHandler:a,actionHandler:u,getActionName:s}),d.tl=new t.Control({x:-.5,y:-.5,cursorStyleHandler:c,actionHandler:p}),d.tr=new t.Control({x:.5,y:-.5,cursorStyleHandler:c,actionHandler:p}),d.bl=new t.Control({x:-.5,y:.5,cursorStyleHandler:c,actionHandler:p}),d.br=new t.Control({x:.5,y:.5,cursorStyleHandler:c,actionHandler:p}),d.mtr=new t.Control({x:0,y:-.5,actionHandler:o.rotationWithSnapping,cursorStyleHandler:o.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),t.Textbox){var v=t.Textbox.prototype.controls={};v.mtr=d.mtr,v.tr=d.tr,v.br=d.br,v.tl=d.tl,v.bl=d.bl,v.mt=d.mt,v.mb=d.mb,v.mr=new t.Control({x:.5,y:0,actionHandler:o.changeWidth,cursorStyleHandler:a,actionName:"resizing"}),v.ml=new t.Control({x:-.5,y:0,actionHandler:o.changeWidth,cursorStyleHandler:a,actionName:"resizing"})}}()})(Er);const ll=ls("canvas",()=>{const e=()=>({canvas:void 0,brush:void 0,visibleImageLayer:void 0,imageLayer:void 0,visibleDrawLayer:void 0,drawLayer:void 0,cropPreviewLayer:void 0,maskPathColor:"",maskBackgroundColor:"",imageScale:1,undoHistory:[],redoHistory:[],drawing:!1}),t=re({...e(),maskPathColor:"white",maskBackgroundColor:"black"}),n=re({...e(),maskPathColor:"black",maskBackgroundColor:"white"}),r=V(()=>pn().generatorType==="Inpainting"),i=V(()=>r.value?t.value:n.value),l=V(()=>pn().currentImageProps),g=V({get:()=>i.value.drawing&&!r.value,set:F=>i.value.drawing=F}),o=re(512),a=re(512),c=re(!1),p=re(30),u=re(!1),f=new Er.fabric.Circle({radius:p.value,left:0,originX:"center",originY:"center",angle:0,fill:"",stroke:"red",strokeWidth:3,opacity:0}),s=re("Erase"),d=re("rgb(0, 0, 0, 1)");function v(){!i.value.canvas||i.value.canvas.renderAll()}function h(){c.value=!c.value,s.value=c.value?"Draw":"Erase"}function m(F=null){!i.value.canvas||(i.value.brush=i.value.canvas.freeDrawingBrush,i.value.brush.color=F||i.value.brush.color,i.value.brush.width=p.value)}async function y({history:F,erase:R=!1,draw:P=!1}={}){if(!F||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;F.path.selectable=!1,F.path.opacity=1,F.drawPath=await z(F.path),F.visibleDrawPath=await z(F.path),R?(F.visibleDrawPath.globalCompositeOperation="destination-out",F.drawPath.stroke=i.value.maskBackgroundColor):(F.visibleDrawPath.globalCompositeOperation="source-over",F.drawPath.stroke=P?d.value:i.value.maskPathColor);let G=await z(F.drawPath);G=G.scale(i.value.imageScale),G.left=G.left+F.drawPath.left*(i.value.imageScale-1),G.top=G.top+F.drawPath.top*(i.value.imageScale-1),P?(i.value.imageLayer.add(G),i.value.visibleImageLayer.addWithUpdate(F.visibleDrawPath)):(i.value.drawLayer.add(G),i.value.visibleDrawLayer.addWithUpdate(F.visibleDrawPath)),i.value.canvas.remove(F.path),v()}function b(){if(i.value.undoHistory.length===0)return;const F=i.value.undoHistory.pop();y({history:F,erase:!1,draw:g.value}),i.value.redoHistory.push(F)}function _(){if(i.value.redoHistory.length===0||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;const F=i.value.redoHistory.pop();i.value.undoHistory.push(F),g.value?(i.value.imageLayer.remove(F.drawPath),i.value.visibleImageLayer.remove(F.visibleDrawPath)):(i.value.drawLayer.remove(F.drawPath),i.value.visibleDrawLayer.remove(F.visibleDrawPath)),delete F.drawPath,delete F.visibleDrawPath,v()}function S(F){i.value.canvas=new Er.fabric.Canvas(F,{isDrawingMode:!1,width:o.value,height:a.value,backgroundColor:"white"}),i.value.canvas.selection=!1,i.value.canvas.freeDrawingCursor="crosshair",m(i.value.maskPathColor),i.value.canvas.on("mouse:move",O),i.value.canvas.on("path:created",q),v()}function x(F,R,P,G){let $=G,M=G;return R>P?(F.scaleToWidth(G),$=G*(a.value/o.value)):(F.scaleToHeight(G),M=G*(o.value/a.value)),{newHeight:$,newWidth:M}}function T(F){const R=pn();if(A(),F.selectable=!1,o.value=F.width,a.value=F.height,o.value>R.maxDimensions||a.value>R.maxDimensions){const{newHeight:G,newWidth:$}=x(F,o.value,a.value,R.maxDimensions);o.value=$,a.value=G}if(o.value<R.minDimensions||a.value<R.minDimensions){const{newHeight:G,newWidth:$}=x(F,o.value,a.value,R.minDimensions);o.value=$,a.value=G}const P=512;F.cloneAsImage(G=>{o.value>a.value?i.value.imageScale=o.value/P:i.value.imageScale=a.value/P,i.value.imageLayer=I({image:G,layerHeight:G.height,layerWidth:G.width})}),F.cloneAsImage(G=>{if(!i.value.canvas)return;if(o.value!==P||a.value!==P){const{newHeight:ne,newWidth:X}=x(G,o.value,a.value,P);o.value=X,a.value=ne}i.value.canvas.setWidth(o.value),i.value.canvas.setHeight(a.value),i.value.canvas.isDrawingMode=!0,i.value.visibleDrawLayer=U(),i.value.visibleImageLayer=U({image:G}),i.value.drawLayer=I();const $=o.value*i.value.imageScale,M=a.value*i.value.imageScale;R.params.width=$-$%64,R.params.height=M-M%64,i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleImageLayer),i.value.canvas.add(i.value.visibleDrawLayer),i.value.canvas.add(f),u.value=!0,D(),E()})}function E(){const F=pn();if(!i.value.imageLayer||!i.value.drawLayer)return;const R=i.value.imageLayer.getCenter().left-F.params.width/2,P=F.params.width,G=i.value.imageLayer.getCenter().top-F.params.height/2,$=F.params.height,M={format:"jpeg",quality:1,left:R,top:G,width:P,height:$};l.value.sourceImage=i.value.imageLayer.toDataURL(M),l.value.maskImage=i.value.redoHistory.length===0||g.value?void 0:i.value.drawLayer.toDataURL(M).split(",")[1]}let k;function D(){if(!i.value.canvas)return;const F=pn();i.value.cropPreviewLayer&&(i.value.canvas.remove(i.value.cropPreviewLayer),i.value.cropPreviewLayer=void 0),u.value&&(i.value.cropPreviewLayer=U({layerWidth:F.params.width/i.value.imageScale,layerHeight:F.params.height/i.value.imageScale,fill:"rgba(100, 0, 0, 0.5)"}),i.value.canvas.centerObject(i.value.cropPreviewLayer),i.value.canvas.add(i.value.cropPreviewLayer),k&&clearTimeout(k),k=setTimeout(()=>{u.value=!1,D(),k=void 0},5e3))}function W(F,R){const P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=";Er.fabric.Image.fromURL(P,G=>{G.set({height:F,width:R});const $=G.toDataURL({format:"png"});l.value.sourceImage=$,g.value=!0,T(G)})}function I({image:F,layerWidth:R,layerHeight:P}={}){const G=new Er.fabric.Canvas(null);return G.selection=!1,G.backgroundColor=i.value.maskBackgroundColor,G.setHeight(P||a.value),G.setWidth(R||o.value),F&&G.add(F),G}function U({image:F,layerWidth:R,layerHeight:P,fill:G,abosolute:$}={}){const M=F||new Er.fabric.Rect({width:R||o.value,height:P||a.value,left:0,top:0,fill:G||"transparent",absolutePositioned:$||!0,selectable:!1});return new Er.fabric.Group([M],{selectable:!1,absolutePositioned:$||!0})}function A(){!i.value.canvas||(i.value.visibleImageLayer&&(i.value.canvas.remove(i.value.visibleImageLayer),i.value.visibleImageLayer=void 0),i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),i.value.imageLayer=void 0,i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.canvas.isDrawingMode=!1)}function ee(){if(!!i.value.canvas){if(i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),g.value){const F=pn();W(F.params.height||512,F.params.width||512)}i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.visibleDrawLayer=U(),i.value.drawLayer=I(),i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleDrawLayer)}}function de(){var R;E();const F=document.createElement("a");if(g.value){F.href="data:image/png;base64,"+((R=l.value.sourceImage)==null?void 0:R.split(",")[1]),F.download="image_drawing.png",F.click();return}F.href="data:image/png;base64,"+l.value.maskImage,F.download="image_mask.png",F.click()}async function z(F){return new Promise((R,P)=>{try{F.clone(R)}catch(G){P(G)}})}async function q(F){const R={path:F.path};y({history:R,erase:c.value,draw:g.value}),i.value.redoHistory.push(R)}function O(F){if(!i.value.canvas)return;const R=i.value.canvas.getPointer(F.e);f.left=R.x,f.top=R.y,f.opacity=.8,c.value?(f.set("strokeWidth",3),f.set("fill",""),m("red")):(f.set("strokeWidth",0),g.value?(f.set("fill",d.value),m(d.value)):(f.set("fill","white"),m("white"))),f.set("radius",p.value/2),v()}return{showCropPreview:u,erasing:c,switchToolText:s,brushSize:p,drawColor:d,drawing:g,imageProps:i,updateCropPreview:D,createNewCanvas:S,downloadMask:de,resetCanvas:A,resetDrawing:ee,flipErase:h,undoAction:_,redoAction:b,newImage:T,newBlankImage:W,setBrush:m,saveImages:E}});const dH={},hH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"};function pH(e,t){return j(),ae("svg",hH,[...t[0]||(t[0]=[ie("g",{fill:"none"},[ie("path",{d:"M11.197 2.44a1.5 1.5 0 0 1 2.121 0l4.243 4.242a1.5 1.5 0 0 1 0 2.121L9.364 17H14.5a.5.5 0 0 1 0 1H7.82a1.496 1.496 0 0 1-1.14-.437L2.437 13.32a1.5 1.5 0 0 1 0-2.121l8.76-8.76zm1.414.706a.5.5 0 0 0-.707 0L5.538 9.512l4.95 4.95l6.366-6.366a.5.5 0 0 0 0-.707L12.61 3.146zM9.781 15.17l-4.95-4.95l-1.687 1.687a.5.5 0 0 0 0 .707l4.243 4.243a.5.5 0 0 0 .707 0l1.687-1.687z",fill:"currentColor"})],-1)])])}const vH=_n(dH,[["render",pH]]);async function gH(e,t){const n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image;return i.src=e,await new Promise(g=>i.onload=g),n.width=i.width,n.height=i.height,r==null||r.drawImage(i,0,0),n.toDataURL(t)}async function mH(e,t){const n=e.split(";base64,"),r=t!=null?t:n[0].split(":")[1],i=window.atob(r===n[0].split(":")[1]?n[1]:(await gH(e,r)).split(",")[1]),l=new Uint8Array(i.length);for(let g=0;g<i.length;++g)l[g]=i.charCodeAt(g);return l}async function La(e,t){const n=t!=null?t:e.split(";base64,")[0].split(":")[1],r=await mH(e,t);return new Blob([r],{type:n})}function QC(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=i=>n(i),r.readAsDataURL(e)})}const yH={key:0},bH={class:"canvas-container"},_H={class:"action-buttons",style:{left:"10px",right:"unset"}},wH={class:"action-buttons"},SH=we({__name:"CustomCanvas",setup(e){const t=pn(),n=Kt(),r=ll(),i=re();async function l(o){if(!o.raw.type.includes("image")){n.raiseError("Uploaded file needs to be a image!",!1),i.value.clearFiles();return}const a=await QC(o.raw);t.currentImageProps.sourceImage=a,r.drawing=!1,Er.fabric.Image.fromURL(a,r.newImage)}function g(){t.currentImageProps.sourceImage="",r.resetCanvas()}return et(()=>{r.createNewCanvas("canvas"),t.currentImageProps.sourceImage&&Er.fabric.Image.fromURL(t.currentImageProps.sourceImage,r.newImage)}),(o,a)=>(j(),ae(Ve,null,[w(t).currentImageProps.sourceImage?ye("",!0):(j(),me(w(hg),{key:0,drag:"",ref_key:"upload",ref:i,"auto-upload":!1,onChange:l,limit:1,multiple:""},{tip:fe(()=>[w(t).generatorType==="Img2Img"?(j(),ae("div",yH,[a[9]||(a[9]=ie("div",{class:"center-horizontal",style:{"margin-top":"5px"}},"OR",-1)),ie("div",{class:"center-both",style:{cursor:"pointer","text-decoration":"underline","font-size":"1rem"},onClick:a[0]||(a[0]=c=>w(r).newBlankImage(w(t).params.height||512,w(t).params.width||512))},[ue(w(Ne),{size:20,style:{"margin-right":"2px"}},{default:fe(()=>[ue(ZC)]),_:1}),a[8]||(a[8]=qe("draw something",-1))])])):ye("",!0)]),default:fe(()=>[ue(w(Ne),{size:100},{default:fe(()=>[ue(w(mv))]),_:1}),a[10]||(a[10]=ie("div",null,[qe("Drop file here OR "),ie("em",null,"click to upload")],-1))]),_:1},512)),Ct(ie("div",null,[ie("div",bH,[a[11]||(a[11]=ie("canvas",{id:"canvas"},null,-1)),ie("div",_H,[ue(w(vt),{onClick:a[1]||(a[1]=c=>w(r).undoAction()),icon:w(pw),plain:"",disabled:w(r).imageProps.redoHistory.length===0},null,8,["icon","disabled"]),ue(w(vt),{onClick:a[2]||(a[2]=c=>w(r).redoAction()),icon:w(vw),plain:"",disabled:w(r).imageProps.undoHistory.length===0},null,8,["icon","disabled"])]),ie("div",wH,[ue(w(vt),{onClick:a[3]||(a[3]=c=>w(r).resetDrawing()),icon:w(ii),plain:""},null,8,["icon"]),ue(w(vt),{onClick:g,icon:w(Of),plain:""},null,8,["icon"]),ue(w(vt),{onClick:a[4]||(a[4]=c=>w(r).downloadMask()),icon:w(Cl),plain:""},null,8,["icon"]),ue(w(vt),{onClick:a[5]||(a[5]=c=>w(r).flipErase()),icon:w(r).erasing?w(sA):vH,plain:""},null,8,["icon"]),w(r).drawing?(j(),me(w(RF),{key:0,modelValue:w(r).drawColor,"onUpdate:modelValue":a[6]||(a[6]=c=>w(r).drawColor=c),"show-alpha":""},null,8,["modelValue"])):ye("",!0)]),ue(w(sg),{"label-width":"110px",style:{"margin-top":"10px"}},{default:fe(()=>[ue(Zn,{style:{"margin-bottom":"5px"},label:"Brush Size",prop:"brushSize",modelValue:w(r).brushSize,"onUpdate:modelValue":a[7]||(a[7]=c=>w(r).brushSize=c),min:10,max:100,step:10,change:w(r).setBrush},null,8,["modelValue","change"])]),_:1})])],512),[[Yt,w(t).currentImageProps.sourceImage]])],64))}});const Ob=_n(SH,[["__scopeId","data-v-3bceb40f"]]),CH={class:"centerIcons"},xH={class:"stackedIcons"},TH=we({__name:"StackedIcon",props:{iconOne:{type:[Object,Function]},iconTwo:{type:[Object,Function]},size:{}},setup(e){XE(n=>({a52249ca:n.size+"px"}));const t=e;return(n,r)=>(j(),ae("div",CH,[ie("div",xH,[ue(w(Ne),{class:"firstIcon",size:e.size},{default:fe(()=>[(j(),me(st(t.iconOne)))]),_:1},8,["size"]),ue(w(Ne),{class:"secondIcon",size:e.size},{default:fe(()=>[(j(),me(st(t.iconTwo)))]),_:1},8,["size"])])]))}});const EH=_n(TH,[["__scopeId","data-v-97afe113"]]),kH={key:1,style:{width:"40px"}},Ju=we({__name:"GeneratorMenuItem",props:{index:{},iconOne:{type:[Object,Function]},iconTwo:{type:[Object,Function]},isMobile:{type:Boolean}},setup(e){const t=e;return(n,r)=>(j(),me(w(si),{content:e.index,placement:e.isMobile?"bottom":"right",enterable:!1,"hide-after":100},{default:fe(()=>[ue(w(fg),{index:e.index,style:{height:"60px",display:"flex","justify-content":"center"}},{default:fe(()=>[e.iconTwo?(j(),me(EH,{key:0,iconOne:e.iconOne,iconTwo:e.iconTwo,size:40},null,8,["iconOne","iconTwo"])):(j(),ae("div",kH,[ue(w(Ne),{style:{width:"35px"},size:40},{default:fe(()=>[(j(),me(st(t.iconOne)))]),_:1})]))]),_:1},8,["index"])]),_:1},8,["content","placement"]))}});/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const OH=4,Ab=0,Pb=1,AH=2;function Cs(e){let t=e.length;for(;--t>=0;)e[t]=0}const PH=0,ex=1,IH=2,MH=3,RH=258,jg=29,mu=256,Ul=mu+1+jg,Ho=30,Vg=19,tx=2*Ul+1,Fa=15,Qd=16,DH=7,Ug=256,nx=16,rx=17,ix=18,Bp=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Cc=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),LH=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),ax=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),FH=512,yi=new Array((Ul+2)*2);Cs(yi);const ul=new Array(Ho*2);Cs(ul);const Hl=new Array(FH);Cs(Hl);const Wl=new Array(RH-MH+1);Cs(Wl);const Hg=new Array(jg);Cs(Hg);const sf=new Array(Ho);Cs(sf);function eh(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}let ox,sx,lx;function th(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const ux=e=>e<256?Hl[e]:Hl[256+(e>>>7)],Gl=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Hn=(e,t,n)=>{e.bi_valid>Qd-n?(e.bi_buf|=t<<e.bi_valid&65535,Gl(e,e.bi_buf),e.bi_buf=t>>Qd-e.bi_valid,e.bi_valid+=n-Qd):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},Jr=(e,t,n)=>{Hn(e,n[t*2],n[t*2+1])},cx=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},BH=e=>{e.bi_valid===16?(Gl(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},NH=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,l=t.stat_desc.has_stree,g=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,a=t.stat_desc.max_length;let c,p,u,f,s,d,v=0;for(f=0;f<=Fa;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,c=e.heap_max+1;c<tx;c++)p=e.heap[c],f=n[n[p*2+1]*2+1]+1,f>a&&(f=a,v++),n[p*2+1]=f,!(p>r)&&(e.bl_count[f]++,s=0,p>=o&&(s=g[p-o]),d=n[p*2],e.opt_len+=d*(f+s),l&&(e.static_len+=d*(i[p*2+1]+s)));if(v!==0){do{for(f=a-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[a]--,v-=2}while(v>0);for(f=a;f!==0;f--)for(p=e.bl_count[f];p!==0;)u=e.heap[--c],!(u>r)&&(n[u*2+1]!==f&&(e.opt_len+=(f-n[u*2+1])*n[u*2],n[u*2+1]=f),p--)}},fx=(e,t,n)=>{const r=new Array(Fa+1);let i=0,l,g;for(l=1;l<=Fa;l++)i=i+n[l-1]<<1,r[l]=i;for(g=0;g<=t;g++){let o=e[g*2+1];o!==0&&(e[g*2]=cx(r[o]++,o))}},zH=()=>{let e,t,n,r,i;const l=new Array(Fa+1);for(n=0,r=0;r<jg-1;r++)for(Hg[r]=n,e=0;e<1<<Bp[r];e++)Wl[n++]=r;for(Wl[n-1]=r,i=0,r=0;r<16;r++)for(sf[r]=i,e=0;e<1<<Cc[r];e++)Hl[i++]=r;for(i>>=7;r<Ho;r++)for(sf[r]=i<<7,e=0;e<1<<Cc[r]-7;e++)Hl[256+i++]=r;for(t=0;t<=Fa;t++)l[t]=0;for(e=0;e<=143;)yi[e*2+1]=8,e++,l[8]++;for(;e<=255;)yi[e*2+1]=9,e++,l[9]++;for(;e<=279;)yi[e*2+1]=7,e++,l[7]++;for(;e<=287;)yi[e*2+1]=8,e++,l[8]++;for(fx(yi,Ul+1,l),e=0;e<Ho;e++)ul[e*2+1]=5,ul[e*2]=cx(e,5);ox=new eh(yi,Bp,mu+1,Ul,Fa),sx=new eh(ul,Cc,0,Ho,Fa),lx=new eh(new Array(0),LH,0,Vg,DH)},dx=e=>{let t;for(t=0;t<Ul;t++)e.dyn_ltree[t*2]=0;for(t=0;t<Ho;t++)e.dyn_dtree[t*2]=0;for(t=0;t<Vg;t++)e.bl_tree[t*2]=0;e.dyn_ltree[Ug*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},hx=e=>{e.bi_valid>8?Gl(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},Ib=(e,t,n,r)=>{const i=t*2,l=n*2;return e[i]<e[l]||e[i]===e[l]&&r[t]<=r[n]},nh=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&Ib(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!Ib(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},Mb=(e,t,n)=>{let r,i,l=0,g,o;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+l++]&255,r+=(e.pending_buf[e.sym_buf+l++]&255)<<8,i=e.pending_buf[e.sym_buf+l++],r===0?Jr(e,i,t):(g=Wl[i],Jr(e,g+mu+1,t),o=Bp[g],o!==0&&(i-=Hg[g],Hn(e,i,o)),r--,g=ux(r),Jr(e,g,n),o=Cc[g],o!==0&&(r-=sf[g],Hn(e,r,o)));while(l<e.sym_next);Jr(e,Ug,t)},Np=(e,t)=>{const n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,l=t.stat_desc.elems;let g,o,a=-1,c;for(e.heap_len=0,e.heap_max=tx,g=0;g<l;g++)n[g*2]!==0?(e.heap[++e.heap_len]=a=g,e.depth[g]=0):n[g*2+1]=0;for(;e.heap_len<2;)c=e.heap[++e.heap_len]=a<2?++a:0,n[c*2]=1,e.depth[c]=0,e.opt_len--,i&&(e.static_len-=r[c*2+1]);for(t.max_code=a,g=e.heap_len>>1;g>=1;g--)nh(e,n,g);c=l;do g=e.heap[1],e.heap[1]=e.heap[e.heap_len--],nh(e,n,1),o=e.heap[1],e.heap[--e.heap_max]=g,e.heap[--e.heap_max]=o,n[c*2]=n[g*2]+n[o*2],e.depth[c]=(e.depth[g]>=e.depth[o]?e.depth[g]:e.depth[o])+1,n[g*2+1]=n[o*2+1]=c,e.heap[1]=c++,nh(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],NH(e,t),fx(n,a,e.bl_count)},Rb=(e,t,n)=>{let r,i=-1,l,g=t[0*2+1],o=0,a=7,c=4;for(g===0&&(a=138,c=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)l=g,g=t[(r+1)*2+1],!(++o<a&&l===g)&&(o<c?e.bl_tree[l*2]+=o:l!==0?(l!==i&&e.bl_tree[l*2]++,e.bl_tree[nx*2]++):o<=10?e.bl_tree[rx*2]++:e.bl_tree[ix*2]++,o=0,i=l,g===0?(a=138,c=3):l===g?(a=6,c=3):(a=7,c=4))},Db=(e,t,n)=>{let r,i=-1,l,g=t[0*2+1],o=0,a=7,c=4;for(g===0&&(a=138,c=3),r=0;r<=n;r++)if(l=g,g=t[(r+1)*2+1],!(++o<a&&l===g)){if(o<c)do Jr(e,l,e.bl_tree);while(--o!==0);else l!==0?(l!==i&&(Jr(e,l,e.bl_tree),o--),Jr(e,nx,e.bl_tree),Hn(e,o-3,2)):o<=10?(Jr(e,rx,e.bl_tree),Hn(e,o-3,3)):(Jr(e,ix,e.bl_tree),Hn(e,o-11,7));o=0,i=l,g===0?(a=138,c=3):l===g?(a=6,c=3):(a=7,c=4)}},$H=e=>{let t;for(Rb(e,e.dyn_ltree,e.l_desc.max_code),Rb(e,e.dyn_dtree,e.d_desc.max_code),Np(e,e.bl_desc),t=Vg-1;t>=3&&e.bl_tree[ax[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},jH=(e,t,n,r)=>{let i;for(Hn(e,t-257,5),Hn(e,n-1,5),Hn(e,r-4,4),i=0;i<r;i++)Hn(e,e.bl_tree[ax[i]*2+1],3);Db(e,e.dyn_ltree,t-1),Db(e,e.dyn_dtree,n-1)},VH=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Ab;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return Pb;for(n=32;n<mu;n++)if(e.dyn_ltree[n*2]!==0)return Pb;return Ab};let Lb=!1;const UH=e=>{Lb||(zH(),Lb=!0),e.l_desc=new th(e.dyn_ltree,ox),e.d_desc=new th(e.dyn_dtree,sx),e.bl_desc=new th(e.bl_tree,lx),e.bi_buf=0,e.bi_valid=0,dx(e)},px=(e,t,n,r)=>{Hn(e,(PH<<1)+(r?1:0),3),hx(e),Gl(e,n),Gl(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},HH=e=>{Hn(e,ex<<1,3),Jr(e,Ug,yi),BH(e)},WH=(e,t,n,r)=>{let i,l,g=0;e.level>0?(e.strm.data_type===AH&&(e.strm.data_type=VH(e)),Np(e,e.l_desc),Np(e,e.d_desc),g=$H(e),i=e.opt_len+3+7>>>3,l=e.static_len+3+7>>>3,l<=i&&(i=l)):i=l=n+5,n+4<=i&&t!==-1?px(e,t,n,r):e.strategy===OH||l===i?(Hn(e,(ex<<1)+(r?1:0),3),Mb(e,yi,ul)):(Hn(e,(IH<<1)+(r?1:0),3),jH(e,e.l_desc.max_code+1,e.d_desc.max_code+1,g+1),Mb(e,e.dyn_ltree,e.dyn_dtree)),dx(e),r&&hx(e)},GH=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Wl[n]+mu+1)*2]++,e.dyn_dtree[ux(t)*2]++),e.sym_next===e.sym_end);var KH=UH,YH=px,XH=WH,qH=GH,ZH=HH,JH={_tr_init:KH,_tr_stored_block:YH,_tr_flush_block:XH,_tr_tally:qH,_tr_align:ZH};const QH=(e,t,n,r)=>{let i=e&65535|0,l=e>>>16&65535|0,g=0;for(;n!==0;){g=n>2e3?2e3:n,n-=g;do i=i+t[r++]|0,l=l+i|0;while(--g);i%=65521,l%=65521}return i|l<<16|0};var Kl=QH;const e7=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},t7=new Uint32Array(e7()),n7=(e,t,n,r)=>{const i=t7,l=r+n;e^=-1;for(let g=r;g<l;g++)e=e>>>8^i[(e^t[g])&255];return e^-1};var sn=n7,to={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},xs={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:r7,_tr_stored_block:zp,_tr_flush_block:i7,_tr_tally:la,_tr_align:a7}=JH,{Z_NO_FLUSH:ua,Z_PARTIAL_FLUSH:o7,Z_FULL_FLUSH:s7,Z_FINISH:hr,Z_BLOCK:Fb,Z_OK:hn,Z_STREAM_END:Bb,Z_STREAM_ERROR:ni,Z_DATA_ERROR:l7,Z_BUF_ERROR:rh,Z_DEFAULT_COMPRESSION:u7,Z_FILTERED:c7,Z_HUFFMAN_ONLY:Qu,Z_RLE:f7,Z_FIXED:d7,Z_DEFAULT_STRATEGY:h7,Z_UNKNOWN:p7,Z_DEFLATED:qf}=xs,v7=9,g7=15,m7=8,y7=29,b7=256,$p=b7+1+y7,_7=30,w7=19,S7=2*$p+1,C7=15,dt=3,ia=258,ri=ia+dt+1,x7=32,rs=42,Wg=57,jp=69,Vp=73,Up=91,Hp=103,Ba=113,js=666,Bn=1,Ts=2,no=3,Es=4,T7=3,Na=(e,t)=>(e.msg=to[t],t),Nb=e=>e*2-(e>4?9:0),ea=e=>{let t=e.length;for(;--t>=0;)e[t]=0},E7=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)};let k7=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,ca=k7;const Jn=e=>{const t=e.state;let n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},ar=(e,t)=>{i7(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Jn(e.strm)},bt=(e,t)=>{e.pending_buf[e.pending++]=t},Ls=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Wp=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=Kl(e.adler,t,i,n):e.state.wrap===2&&(e.adler=sn(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},vx=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,l,g=e.prev_length,o=e.nice_match;const a=e.strstart>e.w_size-ri?e.strstart-(e.w_size-ri):0,c=e.window,p=e.w_mask,u=e.prev,f=e.strstart+ia;let s=c[r+g-1],d=c[r+g];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do if(i=t,!(c[i+g]!==d||c[i+g-1]!==s||c[i]!==c[r]||c[++i]!==c[r+1])){r+=2,i++;do;while(c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&c[++r]===c[++i]&&r<f);if(l=ia-(f-r),r=f-ia,l>g){if(e.match_start=t,g=l,l>=o)break;s=c[r+g-1],d=c[r+g]}}while((t=u[t&p])>a&&--n!==0);return g<=e.lookahead?g:e.lookahead},is=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-ri)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),E7(e),r+=t),e.strm.avail_in===0)break;if(n=Wp(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=dt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=ca(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=ca(e,e.ins_h,e.window[i+dt-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert<dt)););}while(e.lookahead<ri&&e.strm.avail_in!==0)},gx=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,l,g=0,o=e.strm.avail_in;do{if(r=65535,l=e.bi_valid+42>>3,e.strm.avail_out<l||(l=e.strm.avail_out-l,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>l&&(r=l),r<n&&(r===0&&t!==hr||t===ua||r!==i+e.strm.avail_in)))break;g=t===hr&&r===i+e.strm.avail_in?1:0,zp(e,0,0,g),e.pending_buf[e.pending-4]=r,e.pending_buf[e.pending-3]=r>>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Jn(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Wp(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(g===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),g?Es:t!==ua&&t!==hr&&e.strm.avail_in===0&&e.strstart===e.block_start?Ts:(l=e.window_size-e.strstart,e.strm.avail_in>l&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,l+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),l>e.strm.avail_in&&(l=e.strm.avail_in),l&&(Wp(e.strm,e.window,e.strstart,l),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.high_water<e.strstart&&(e.high_water=e.strstart),l=e.bi_valid+42>>3,l=e.pending_buf_size-l>65535?65535:e.pending_buf_size-l,n=l>e.w_size?e.w_size:l,i=e.strstart-e.block_start,(i>=n||(i||t===hr)&&t!==ua&&e.strm.avail_in===0&&i<=l)&&(r=i>l?l:i,g=t===hr&&e.strm.avail_in===0&&r===i?1:0,zp(e,e.block_start,r,g),e.block_start+=r,Jn(e.strm)),g?no:Bn)},ih=(e,t)=>{let n,r;for(;;){if(e.lookahead<ri){if(is(e),e.lookahead<ri&&t===ua)return Bn;if(e.lookahead===0)break}if(n=0,e.lookahead>=dt&&(e.ins_h=ca(e,e.ins_h,e.window[e.strstart+dt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-ri&&(e.match_length=vx(e,n)),e.match_length>=dt)if(r=la(e,e.strstart-e.match_start,e.match_length-dt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=dt){e.match_length--;do e.strstart++,e.ins_h=ca(e,e.ins_h,e.window[e.strstart+dt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=ca(e,e.ins_h,e.window[e.strstart+1]);else r=la(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(ar(e,!1),e.strm.avail_out===0))return Bn}return e.insert=e.strstart<dt-1?e.strstart:dt-1,t===hr?(ar(e,!0),e.strm.avail_out===0?no:Es):e.sym_next&&(ar(e,!1),e.strm.avail_out===0)?Bn:Ts},xo=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<ri){if(is(e),e.lookahead<ri&&t===ua)return Bn;if(e.lookahead===0)break}if(n=0,e.lookahead>=dt&&(e.ins_h=ca(e,e.ins_h,e.window[e.strstart+dt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=dt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-ri&&(e.match_length=vx(e,n),e.match_length<=5&&(e.strategy===c7||e.match_length===dt&&e.strstart-e.match_start>4096)&&(e.match_length=dt-1)),e.prev_length>=dt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-dt,r=la(e,e.strstart-1-e.prev_match,e.prev_length-dt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=ca(e,e.ins_h,e.window[e.strstart+dt-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=dt-1,e.strstart++,r&&(ar(e,!1),e.strm.avail_out===0))return Bn}else if(e.match_available){if(r=la(e,0,e.window[e.strstart-1]),r&&ar(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Bn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=la(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<dt-1?e.strstart:dt-1,t===hr?(ar(e,!0),e.strm.avail_out===0?no:Es):e.sym_next&&(ar(e,!1),e.strm.avail_out===0)?Bn:Ts},O7=(e,t)=>{let n,r,i,l;const g=e.window;for(;;){if(e.lookahead<=ia){if(is(e),e.lookahead<=ia&&t===ua)return Bn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=dt&&e.strstart>0&&(i=e.strstart-1,r=g[i],r===g[++i]&&r===g[++i]&&r===g[++i])){l=e.strstart+ia;do;while(r===g[++i]&&r===g[++i]&&r===g[++i]&&r===g[++i]&&r===g[++i]&&r===g[++i]&&r===g[++i]&&r===g[++i]&&i<l);e.match_length=ia-(l-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=dt?(n=la(e,1,e.match_length-dt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=la(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(ar(e,!1),e.strm.avail_out===0))return Bn}return e.insert=0,t===hr?(ar(e,!0),e.strm.avail_out===0?no:Es):e.sym_next&&(ar(e,!1),e.strm.avail_out===0)?Bn:Ts},A7=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(is(e),e.lookahead===0)){if(t===ua)return Bn;break}if(e.match_length=0,n=la(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(ar(e,!1),e.strm.avail_out===0))return Bn}return e.insert=0,t===hr?(ar(e,!0),e.strm.avail_out===0?no:Es):e.sym_next&&(ar(e,!1),e.strm.avail_out===0)?Bn:Ts};function Gr(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const Vs=[new Gr(0,0,0,0,gx),new Gr(4,4,8,4,ih),new Gr(4,5,16,8,ih),new Gr(4,6,32,32,ih),new Gr(4,4,16,16,xo),new Gr(8,16,32,32,xo),new Gr(8,16,128,128,xo),new Gr(8,32,128,256,xo),new Gr(32,128,258,1024,xo),new Gr(32,258,258,4096,xo)],P7=e=>{e.window_size=2*e.w_size,ea(e.head),e.max_lazy_match=Vs[e.level].max_lazy,e.good_match=Vs[e.level].good_length,e.nice_match=Vs[e.level].nice_length,e.max_chain_length=Vs[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=dt-1,e.match_available=0,e.ins_h=0};function I7(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=qf,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(S7*2),this.dyn_dtree=new Uint16Array((2*_7+1)*2),this.bl_tree=new Uint16Array((2*w7+1)*2),ea(this.dyn_ltree),ea(this.dyn_dtree),ea(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(C7+1),this.heap=new Uint16Array(2*$p+1),ea(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*$p+1),ea(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const yu=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==rs&&t.status!==Wg&&t.status!==jp&&t.status!==Vp&&t.status!==Up&&t.status!==Hp&&t.status!==Ba&&t.status!==js?1:0},mx=e=>{if(yu(e))return Na(e,ni);e.total_in=e.total_out=0,e.data_type=p7;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Wg:t.wrap?rs:Ba,e.adler=t.wrap===2?0:1,t.last_flush=-2,r7(t),hn},yx=e=>{const t=mx(e);return t===hn&&P7(e.state),t},M7=(e,t)=>yu(e)||e.state.wrap!==2?ni:(e.state.gzhead=t,hn),bx=(e,t,n,r,i,l)=>{if(!e)return ni;let g=1;if(t===u7&&(t=6),r<0?(g=0,r=-r):r>15&&(g=2,r-=16),i<1||i>v7||n!==qf||r<8||r>15||t<0||t>9||l<0||l>d7||r===8&&g!==1)return Na(e,ni);r===8&&(r=9);const o=new I7;return e.state=o,o.strm=e,o.status=rs,o.wrap=g,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+dt-1)/dt),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=t,o.strategy=l,o.method=n,yx(e)},R7=(e,t)=>bx(e,t,qf,g7,m7,h7),D7=(e,t)=>{if(yu(e)||t>Fb||t<0)return e?Na(e,ni):ni;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===js&&t!==hr)return Na(e,e.avail_out===0?rh:ni);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Jn(e),e.avail_out===0)return n.last_flush=-1,hn}else if(e.avail_in===0&&Nb(t)<=Nb(r)&&t!==hr)return Na(e,rh);if(n.status===js&&e.avail_in!==0)return Na(e,rh);if(n.status===rs&&n.wrap===0&&(n.status=Ba),n.status===rs){let i=qf+(n.w_bits-8<<4)<<8,l=-1;if(n.strategy>=Qu||n.level<2?l=0:n.level<6?l=1:n.level===6?l=2:l=3,i|=l<<6,n.strstart!==0&&(i|=x7),i+=31-i%31,Ls(n,i),n.strstart!==0&&(Ls(n,e.adler>>>16),Ls(n,e.adler&65535)),e.adler=1,n.status=Ba,Jn(e),n.pending!==0)return n.last_flush=-1,hn}if(n.status===Wg){if(e.adler=0,bt(n,31),bt(n,139),bt(n,8),n.gzhead)bt(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),bt(n,n.gzhead.time&255),bt(n,n.gzhead.time>>8&255),bt(n,n.gzhead.time>>16&255),bt(n,n.gzhead.time>>24&255),bt(n,n.level===9?2:n.strategy>=Qu||n.level<2?4:0),bt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(bt(n,n.gzhead.extra.length&255),bt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=sn(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=jp;else if(bt(n,0),bt(n,0),bt(n,0),bt(n,0),bt(n,0),bt(n,n.level===9?2:n.strategy>=Qu||n.level<2?4:0),bt(n,T7),n.status=Ba,Jn(e),n.pending!==0)return n.last_flush=-1,hn}if(n.status===jp){if(n.gzhead.extra){let i=n.pending,l=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+l>n.pending_buf_size;){let o=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=o,Jn(e),n.pending!==0)return n.last_flush=-1,hn;i=0,l-=o}let g=new Uint8Array(n.gzhead.extra);n.pending_buf.set(g.subarray(n.gzindex,n.gzindex+l),n.pending),n.pending+=l,n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Vp}if(n.status===Vp){if(n.gzhead.name){let i=n.pending,l;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),Jn(e),n.pending!==0)return n.last_flush=-1,hn;i=0}n.gzindex<n.gzhead.name.length?l=n.gzhead.name.charCodeAt(n.gzindex++)&255:l=0,bt(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Up}if(n.status===Up){if(n.gzhead.comment){let i=n.pending,l;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i)),Jn(e),n.pending!==0)return n.last_flush=-1,hn;i=0}n.gzindex<n.gzhead.comment.length?l=n.gzhead.comment.charCodeAt(n.gzindex++)&255:l=0,bt(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=sn(e.adler,n.pending_buf,n.pending-i,i))}n.status=Hp}if(n.status===Hp){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Jn(e),n.pending!==0))return n.last_flush=-1,hn;bt(n,e.adler&255),bt(n,e.adler>>8&255),e.adler=0}if(n.status=Ba,Jn(e),n.pending!==0)return n.last_flush=-1,hn}if(e.avail_in!==0||n.lookahead!==0||t!==ua&&n.status!==js){let i=n.level===0?gx(n,t):n.strategy===Qu?A7(n,t):n.strategy===f7?O7(n,t):Vs[n.level].func(n,t);if((i===no||i===Es)&&(n.status=js),i===Bn||i===no)return e.avail_out===0&&(n.last_flush=-1),hn;if(i===Ts&&(t===o7?a7(n):t!==Fb&&(zp(n,0,0,!1),t===s7&&(ea(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Jn(e),e.avail_out===0))return n.last_flush=-1,hn}return t!==hr?hn:n.wrap<=0?Bb:(n.wrap===2?(bt(n,e.adler&255),bt(n,e.adler>>8&255),bt(n,e.adler>>16&255),bt(n,e.adler>>24&255),bt(n,e.total_in&255),bt(n,e.total_in>>8&255),bt(n,e.total_in>>16&255),bt(n,e.total_in>>24&255)):(Ls(n,e.adler>>>16),Ls(n,e.adler&65535)),Jn(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?hn:Bb)},L7=e=>{if(yu(e))return ni;const t=e.state.status;return e.state=null,t===Ba?Na(e,l7):hn},F7=(e,t)=>{let n=t.length;if(yu(e))return ni;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==rs||r.lookahead)return ni;if(i===1&&(e.adler=Kl(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(ea(r.head),r.strstart=0,r.block_start=0,r.insert=0);let a=new Uint8Array(r.w_size);a.set(t.subarray(n-r.w_size,n),0),t=a,n=r.w_size}const l=e.avail_in,g=e.next_in,o=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,is(r);r.lookahead>=dt;){let a=r.strstart,c=r.lookahead-(dt-1);do r.ins_h=ca(r,r.ins_h,r.window[a+dt-1]),r.prev[a&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=a,a++;while(--c);r.strstart=a,r.lookahead=dt-1,is(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=dt-1,r.match_available=0,e.next_in=g,e.input=o,e.avail_in=l,r.wrap=i,hn};var B7=R7,N7=bx,z7=yx,$7=mx,j7=M7,V7=D7,U7=L7,H7=F7,W7="pako deflate (from Nodeca project)",cl={deflateInit:B7,deflateInit2:N7,deflateReset:z7,deflateResetKeep:$7,deflateSetHeader:j7,deflate:V7,deflateEnd:U7,deflateSetDictionary:H7,deflateInfo:W7};const G7=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var K7=function(e){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const n=t.shift();if(!!n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(const r in n)G7(n,r)&&(e[r]=n[r])}}return e},Y7=e=>{let t=0;for(let r=0,i=e.length;r<i;r++)t+=e[r].length;const n=new Uint8Array(t);for(let r=0,i=0,l=e.length;r<l;r++){let g=e[r];n.set(g,i),i+=g.length}return n},Zf={assign:K7,flattenChunks:Y7};let _x=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{_x=!1}const Yl=new Uint8Array(256);for(let e=0;e<256;e++)Yl[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;Yl[254]=Yl[254]=1;var X7=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,l,g=e.length,o=0;for(i=0;i<g;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<g&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),o+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(o),l=0,i=0;l<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<g&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),n<128?t[l++]=n:n<2048?(t[l++]=192|n>>>6,t[l++]=128|n&63):n<65536?(t[l++]=224|n>>>12,t[l++]=128|n>>>6&63,t[l++]=128|n&63):(t[l++]=240|n>>>18,t[l++]=128|n>>>12&63,t[l++]=128|n>>>6&63,t[l++]=128|n&63);return t};const q7=(e,t)=>{if(t<65534&&e.subarray&&_x)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n};var Z7=(e,t)=>{const n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i;const l=new Array(n*2);for(i=0,r=0;r<n;){let g=e[r++];if(g<128){l[i++]=g;continue}let o=Yl[g];if(o>4){l[i++]=65533,r+=o-1;continue}for(g&=o===2?31:o===3?15:7;o>1&&r<n;)g=g<<6|e[r++]&63,o--;if(o>1){l[i++]=65533;continue}g<65536?l[i++]=g:(g-=65536,l[i++]=55296|g>>10&1023,l[i++]=56320|g&1023)}return q7(l,i)},J7=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+Yl[e[n]]>t?n:t},Xl={string2buf:X7,buf2string:Z7,utf8border:J7};function Q7(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var wx=Q7;const Sx=Object.prototype.toString,{Z_NO_FLUSH:eW,Z_SYNC_FLUSH:tW,Z_FULL_FLUSH:nW,Z_FINISH:rW,Z_OK:lf,Z_STREAM_END:iW,Z_DEFAULT_COMPRESSION:aW,Z_DEFAULT_STRATEGY:oW,Z_DEFLATED:sW}=xs;function bu(e){this.options=Zf.assign({level:aW,method:sW,chunkSize:16384,windowBits:15,memLevel:8,strategy:oW},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wx,this.strm.avail_out=0;let n=cl.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==lf)throw new Error(to[n]);if(t.header&&cl.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=Xl.string2buf(t.dictionary):Sx.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=cl.deflateSetDictionary(this.strm,r),n!==lf)throw new Error(to[n]);this._dict_set=!0}}bu.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize;let i,l;if(this.ended)return!1;for(t===~~t?l=t:l=t===!0?rW:eW,typeof e=="string"?n.input=Xl.string2buf(e):Sx.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(l===tW||l===nW)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=cl.deflate(n,l),i===iW)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=cl.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===lf;if(n.avail_out===0){this.onData(n.output);continue}if(l>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};bu.prototype.onData=function(e){this.chunks.push(e)};bu.prototype.onEnd=function(e){e===lf&&(this.result=Zf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Gg(e,t){const n=new bu(t);if(n.push(e,!0),n.err)throw n.msg||to[n.err];return n.result}function lW(e,t){return t=t||{},t.raw=!0,Gg(e,t)}function uW(e,t){return t=t||{},t.gzip=!0,Gg(e,t)}var cW=bu,fW=Gg,dW=lW,hW=uW,pW=xs,vW={Deflate:cW,deflate:fW,deflateRaw:dW,gzip:hW,constants:pW};const ec=16209,gW=16191;var mW=function(t,n){let r,i,l,g,o,a,c,p,u,f,s,d,v,h,m,y,b,_,S,x,T,E,k,D;const W=t.state;r=t.next_in,k=t.input,i=r+(t.avail_in-5),l=t.next_out,D=t.output,g=l-(n-t.avail_out),o=l+(t.avail_out-257),a=W.dmax,c=W.wsize,p=W.whave,u=W.wnext,f=W.window,s=W.hold,d=W.bits,v=W.lencode,h=W.distcode,m=(1<<W.lenbits)-1,y=(1<<W.distbits)-1;e:do{d<15&&(s+=k[r++]<<d,d+=8,s+=k[r++]<<d,d+=8),b=v[s&m];t:for(;;){if(_=b>>>24,s>>>=_,d-=_,_=b>>>16&255,_===0)D[l++]=b&65535;else if(_&16){S=b&65535,_&=15,_&&(d<_&&(s+=k[r++]<<d,d+=8),S+=s&(1<<_)-1,s>>>=_,d-=_),d<15&&(s+=k[r++]<<d,d+=8,s+=k[r++]<<d,d+=8),b=h[s&y];n:for(;;){if(_=b>>>24,s>>>=_,d-=_,_=b>>>16&255,_&16){if(x=b&65535,_&=15,d<_&&(s+=k[r++]<<d,d+=8,d<_&&(s+=k[r++]<<d,d+=8)),x+=s&(1<<_)-1,x>a){t.msg="invalid distance too far back",W.mode=ec;break e}if(s>>>=_,d-=_,_=l-g,x>_){if(_=x-_,_>p&&W.sane){t.msg="invalid distance too far back",W.mode=ec;break e}if(T=0,E=f,u===0){if(T+=c-_,_<S){S-=_;do D[l++]=f[T++];while(--_);T=l-x,E=D}}else if(u<_){if(T+=c+u-_,_-=u,_<S){S-=_;do D[l++]=f[T++];while(--_);if(T=0,u<S){_=u,S-=_;do D[l++]=f[T++];while(--_);T=l-x,E=D}}}else if(T+=u-_,_<S){S-=_;do D[l++]=f[T++];while(--_);T=l-x,E=D}for(;S>2;)D[l++]=E[T++],D[l++]=E[T++],D[l++]=E[T++],S-=3;S&&(D[l++]=E[T++],S>1&&(D[l++]=E[T++]))}else{T=l-x;do D[l++]=D[T++],D[l++]=D[T++],D[l++]=D[T++],S-=3;while(S>2);S&&(D[l++]=D[T++],S>1&&(D[l++]=D[T++]))}}else if((_&64)===0){b=h[(b&65535)+(s&(1<<_)-1)];continue n}else{t.msg="invalid distance code",W.mode=ec;break e}break}}else if((_&64)===0){b=v[(b&65535)+(s&(1<<_)-1)];continue t}else if(_&32){W.mode=gW;break e}else{t.msg="invalid literal/length code",W.mode=ec;break e}break}}while(r<i&&l<o);S=d>>3,r-=S,d-=S<<3,s&=(1<<d)-1,t.next_in=r,t.next_out=l,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=l<o?257+(o-l):257-(l-o),W.hold=s,W.bits=d};const To=15,zb=852,$b=592,jb=0,ah=1,Vb=2,yW=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),bW=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),_W=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),wW=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),SW=(e,t,n,r,i,l,g,o)=>{const a=o.bits;let c=0,p=0,u=0,f=0,s=0,d=0,v=0,h=0,m=0,y=0,b,_,S,x,T,E=null,k;const D=new Uint16Array(To+1),W=new Uint16Array(To+1);let I=null,U,A,ee;for(c=0;c<=To;c++)D[c]=0;for(p=0;p<r;p++)D[t[n+p]]++;for(s=a,f=To;f>=1&&D[f]===0;f--);if(s>f&&(s=f),f===0)return i[l++]=1<<24|64<<16|0,i[l++]=1<<24|64<<16|0,o.bits=1,0;for(u=1;u<f&&D[u]===0;u++);for(s<u&&(s=u),h=1,c=1;c<=To;c++)if(h<<=1,h-=D[c],h<0)return-1;if(h>0&&(e===jb||f!==1))return-1;for(W[1]=0,c=1;c<To;c++)W[c+1]=W[c]+D[c];for(p=0;p<r;p++)t[n+p]!==0&&(g[W[t[n+p]]++]=p);if(e===jb?(E=I=g,k=20):e===ah?(E=yW,I=bW,k=257):(E=_W,I=wW,k=0),y=0,p=0,c=u,T=l,d=s,v=0,S=-1,m=1<<s,x=m-1,e===ah&&m>zb||e===Vb&&m>$b)return 1;for(;;){U=c-v,g[p]+1<k?(A=0,ee=g[p]):g[p]>=k?(A=I[g[p]-k],ee=E[g[p]-k]):(A=32+64,ee=0),b=1<<c-v,_=1<<d,u=_;do _-=b,i[T+(y>>v)+_]=U<<24|A<<16|ee|0;while(_!==0);for(b=1<<c-1;y&b;)b>>=1;if(b!==0?(y&=b-1,y+=b):y=0,p++,--D[c]===0){if(c===f)break;c=t[n+g[p]]}if(c>s&&(y&x)!==S){for(v===0&&(v=s),T+=u,d=c-v,h=1<<d;d+v<f&&(h-=D[d+v],!(h<=0));)d++,h<<=1;if(m+=1<<d,e===ah&&m>zb||e===Vb&&m>$b)return 1;S=y&x,i[S]=s<<24|d<<16|T-l|0}}return y!==0&&(i[T+y]=c-v<<24|64<<16|0),o.bits=s,0};var fl=SW;const CW=0,Cx=1,xx=2,{Z_FINISH:Ub,Z_BLOCK:xW,Z_TREES:tc,Z_OK:ro,Z_STREAM_END:TW,Z_NEED_DICT:EW,Z_STREAM_ERROR:wr,Z_DATA_ERROR:Tx,Z_MEM_ERROR:Ex,Z_BUF_ERROR:kW,Z_DEFLATED:Hb}=xs,Jf=16180,Wb=16181,Gb=16182,Kb=16183,Yb=16184,Xb=16185,qb=16186,Zb=16187,Jb=16188,Qb=16189,uf=16190,hi=16191,oh=16192,e1=16193,sh=16194,t1=16195,n1=16196,r1=16197,i1=16198,nc=16199,rc=16200,a1=16201,o1=16202,s1=16203,l1=16204,u1=16205,lh=16206,c1=16207,f1=16208,Dt=16209,kx=16210,Ox=16211,OW=852,AW=592,PW=15,IW=PW,d1=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function MW(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const ho=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Jf||t.mode>Ox?1:0},Ax=e=>{if(ho(e))return wr;const t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Jf,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(OW),t.distcode=t.distdyn=new Int32Array(AW),t.sane=1,t.back=-1,ro},Px=e=>{if(ho(e))return wr;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Ax(e)},Ix=(e,t)=>{let n;if(ho(e))return wr;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?wr:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Px(e))},Mx=(e,t)=>{if(!e)return wr;const n=new MW;e.state=n,n.strm=e,n.window=null,n.mode=Jf;const r=Ix(e,t);return r!==ro&&(e.state=null),r},RW=e=>Mx(e,IW);let h1=!0,uh,ch;const DW=e=>{if(h1){uh=new Int32Array(512),ch=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(fl(Cx,e.lens,0,288,uh,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;fl(xx,e.lens,0,32,ch,0,e.work,{bits:5}),h1=!1}e.lencode=uh,e.lenbits=9,e.distcode=ch,e.distbits=5},Rx=(e,t,n,r)=>{let i;const l=e.state;return l.window===null&&(l.wsize=1<<l.wbits,l.wnext=0,l.whave=0,l.window=new Uint8Array(l.wsize)),r>=l.wsize?(l.window.set(t.subarray(n-l.wsize,n),0),l.wnext=0,l.whave=l.wsize):(i=l.wsize-l.wnext,i>r&&(i=r),l.window.set(t.subarray(n-r,n-r+i),l.wnext),r-=i,r?(l.window.set(t.subarray(n-r,n),0),l.wnext=r,l.whave=l.wsize):(l.wnext+=i,l.wnext===l.wsize&&(l.wnext=0),l.whave<l.wsize&&(l.whave+=i))),0},LW=(e,t)=>{let n,r,i,l,g,o,a,c,p,u,f,s,d,v,h=0,m,y,b,_,S,x,T,E;const k=new Uint8Array(4);let D,W;const I=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(ho(e)||!e.output||!e.input&&e.avail_in!==0)return wr;n=e.state,n.mode===hi&&(n.mode=oh),g=e.next_out,i=e.output,a=e.avail_out,l=e.next_in,r=e.input,o=e.avail_in,c=n.hold,p=n.bits,u=o,f=a,E=ro;e:for(;;)switch(n.mode){case Jf:if(n.wrap===0){n.mode=oh;break}for(;p<16;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if(n.wrap&2&&c===35615){n.wbits===0&&(n.wbits=15),n.check=0,k[0]=c&255,k[1]=c>>>8&255,n.check=sn(n.check,k,2,0),c=0,p=0,n.mode=Wb;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((c&255)<<8)+(c>>8))%31){e.msg="incorrect header check",n.mode=Dt;break}if((c&15)!==Hb){e.msg="unknown compression method",n.mode=Dt;break}if(c>>>=4,p-=4,T=(c&15)+8,n.wbits===0&&(n.wbits=T),T>15||T>n.wbits){e.msg="invalid window size",n.mode=Dt;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=c&512?Qb:hi,c=0,p=0;break;case Wb:for(;p<16;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if(n.flags=c,(n.flags&255)!==Hb){e.msg="unknown compression method",n.mode=Dt;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=Dt;break}n.head&&(n.head.text=c>>8&1),n.flags&512&&n.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,n.check=sn(n.check,k,2,0)),c=0,p=0,n.mode=Gb;case Gb:for(;p<32;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}n.head&&(n.head.time=c),n.flags&512&&n.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,k[2]=c>>>16&255,k[3]=c>>>24&255,n.check=sn(n.check,k,4,0)),c=0,p=0,n.mode=Kb;case Kb:for(;p<16;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}n.head&&(n.head.xflags=c&255,n.head.os=c>>8),n.flags&512&&n.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,n.check=sn(n.check,k,2,0)),c=0,p=0,n.mode=Yb;case Yb:if(n.flags&1024){for(;p<16;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}n.length=c,n.head&&(n.head.extra_len=c),n.flags&512&&n.wrap&4&&(k[0]=c&255,k[1]=c>>>8&255,n.check=sn(n.check,k,2,0)),c=0,p=0}else n.head&&(n.head.extra=null);n.mode=Xb;case Xb:if(n.flags&1024&&(s=n.length,s>o&&(s=o),s&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(l,l+s),T)),n.flags&512&&n.wrap&4&&(n.check=sn(n.check,r,s,l)),o-=s,l+=s,n.length-=s),n.length))break e;n.length=0,n.mode=qb;case qb:if(n.flags&2048){if(o===0)break e;s=0;do T=r[l+s++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T));while(T&&s<o);if(n.flags&512&&n.wrap&4&&(n.check=sn(n.check,r,s,l)),o-=s,l+=s,T)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=Zb;case Zb:if(n.flags&4096){if(o===0)break e;s=0;do T=r[l+s++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T));while(T&&s<o);if(n.flags&512&&n.wrap&4&&(n.check=sn(n.check,r,s,l)),o-=s,l+=s,T)break e}else n.head&&(n.head.comment=null);n.mode=Jb;case Jb:if(n.flags&512){for(;p<16;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if(n.wrap&4&&c!==(n.check&65535)){e.msg="header crc mismatch",n.mode=Dt;break}c=0,p=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=hi;break;case Qb:for(;p<32;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}e.adler=n.check=d1(c),c=0,p=0,n.mode=uf;case uf:if(n.havedict===0)return e.next_out=g,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=c,n.bits=p,EW;e.adler=n.check=1,n.mode=hi;case hi:if(t===xW||t===tc)break e;case oh:if(n.last){c>>>=p&7,p-=p&7,n.mode=lh;break}for(;p<3;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}switch(n.last=c&1,c>>>=1,p-=1,c&3){case 0:n.mode=e1;break;case 1:if(DW(n),n.mode=nc,t===tc){c>>>=2,p-=2;break e}break;case 2:n.mode=n1;break;case 3:e.msg="invalid block type",n.mode=Dt}c>>>=2,p-=2;break;case e1:for(c>>>=p&7,p-=p&7;p<32;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if((c&65535)!==(c>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Dt;break}if(n.length=c&65535,c=0,p=0,n.mode=sh,t===tc)break e;case sh:n.mode=t1;case t1:if(s=n.length,s){if(s>o&&(s=o),s>a&&(s=a),s===0)break e;i.set(r.subarray(l,l+s),g),o-=s,l+=s,a-=s,g+=s,n.length-=s;break}n.mode=hi;break;case n1:for(;p<14;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if(n.nlen=(c&31)+257,c>>>=5,p-=5,n.ndist=(c&31)+1,c>>>=5,p-=5,n.ncode=(c&15)+4,c>>>=4,p-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Dt;break}n.have=0,n.mode=r1;case r1:for(;n.have<n.ncode;){for(;p<3;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}n.lens[I[n.have++]]=c&7,c>>>=3,p-=3}for(;n.have<19;)n.lens[I[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},E=fl(CW,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,E){e.msg="invalid code lengths set",n.mode=Dt;break}n.have=0,n.mode=i1;case i1:for(;n.have<n.nlen+n.ndist;){for(;h=n.lencode[c&(1<<n.lenbits)-1],m=h>>>24,y=h>>>16&255,b=h&65535,!(m<=p);){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if(b<16)c>>>=m,p-=m,n.lens[n.have++]=b;else{if(b===16){for(W=m+2;p<W;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if(c>>>=m,p-=m,n.have===0){e.msg="invalid bit length repeat",n.mode=Dt;break}T=n.lens[n.have-1],s=3+(c&3),c>>>=2,p-=2}else if(b===17){for(W=m+3;p<W;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}c>>>=m,p-=m,T=0,s=3+(c&7),c>>>=3,p-=3}else{for(W=m+7;p<W;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}c>>>=m,p-=m,T=0,s=11+(c&127),c>>>=7,p-=7}if(n.have+s>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Dt;break}for(;s--;)n.lens[n.have++]=T}}if(n.mode===Dt)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Dt;break}if(n.lenbits=9,D={bits:n.lenbits},E=fl(Cx,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,E){e.msg="invalid literal/lengths set",n.mode=Dt;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},E=fl(xx,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,E){e.msg="invalid distances set",n.mode=Dt;break}if(n.mode=nc,t===tc)break e;case nc:n.mode=rc;case rc:if(o>=6&&a>=258){e.next_out=g,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=c,n.bits=p,mW(e,f),g=e.next_out,i=e.output,a=e.avail_out,l=e.next_in,r=e.input,o=e.avail_in,c=n.hold,p=n.bits,n.mode===hi&&(n.back=-1);break}for(n.back=0;h=n.lencode[c&(1<<n.lenbits)-1],m=h>>>24,y=h>>>16&255,b=h&65535,!(m<=p);){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if(y&&(y&240)===0){for(_=m,S=y,x=b;h=n.lencode[x+((c&(1<<_+S)-1)>>_)],m=h>>>24,y=h>>>16&255,b=h&65535,!(_+m<=p);){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}c>>>=_,p-=_,n.back+=_}if(c>>>=m,p-=m,n.back+=m,n.length=b,y===0){n.mode=u1;break}if(y&32){n.back=-1,n.mode=hi;break}if(y&64){e.msg="invalid literal/length code",n.mode=Dt;break}n.extra=y&15,n.mode=a1;case a1:if(n.extra){for(W=n.extra;p<W;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}n.length+=c&(1<<n.extra)-1,c>>>=n.extra,p-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=o1;case o1:for(;h=n.distcode[c&(1<<n.distbits)-1],m=h>>>24,y=h>>>16&255,b=h&65535,!(m<=p);){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if((y&240)===0){for(_=m,S=y,x=b;h=n.distcode[x+((c&(1<<_+S)-1)>>_)],m=h>>>24,y=h>>>16&255,b=h&65535,!(_+m<=p);){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}c>>>=_,p-=_,n.back+=_}if(c>>>=m,p-=m,n.back+=m,y&64){e.msg="invalid distance code",n.mode=Dt;break}n.offset=b,n.extra=y&15,n.mode=s1;case s1:if(n.extra){for(W=n.extra;p<W;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}n.offset+=c&(1<<n.extra)-1,c>>>=n.extra,p-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Dt;break}n.mode=l1;case l1:if(a===0)break e;if(s=f-a,n.offset>s){if(s=n.offset-s,s>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Dt;break}s>n.wnext?(s-=n.wnext,d=n.wsize-s):d=n.wnext-s,s>n.length&&(s=n.length),v=n.window}else v=i,d=g-n.offset,s=n.length;s>a&&(s=a),a-=s,n.length-=s;do i[g++]=v[d++];while(--s);n.length===0&&(n.mode=rc);break;case u1:if(a===0)break e;i[g++]=n.length,a--,n.mode=rc;break;case lh:if(n.wrap){for(;p<32;){if(o===0)break e;o--,c|=r[l++]<<p,p+=8}if(f-=a,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?sn(n.check,i,f,g-f):Kl(n.check,i,f,g-f)),f=a,n.wrap&4&&(n.flags?c:d1(c))!==n.check){e.msg="incorrect data check",n.mode=Dt;break}c=0,p=0}n.mode=c1;case c1:if(n.wrap&&n.flags){for(;p<32;){if(o===0)break e;o--,c+=r[l++]<<p,p+=8}if(n.wrap&4&&c!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=Dt;break}c=0,p=0}n.mode=f1;case f1:E=TW;break e;case Dt:E=Tx;break e;case kx:return Ex;case Ox:default:return wr}return e.next_out=g,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=c,n.bits=p,(n.wsize||f!==e.avail_out&&n.mode<Dt&&(n.mode<lh||t!==Ub))&&Rx(e,e.output,e.next_out,f-e.avail_out),u-=e.avail_in,f-=e.avail_out,e.total_in+=u,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?sn(n.check,i,f,e.next_out-f):Kl(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===hi?128:0)+(n.mode===nc||n.mode===sh?256:0),(u===0&&f===0||t===Ub)&&E===ro&&(E=kW),E},FW=e=>{if(ho(e))return wr;let t=e.state;return t.window&&(t.window=null),e.state=null,ro},BW=(e,t)=>{if(ho(e))return wr;const n=e.state;return(n.wrap&2)===0?wr:(n.head=t,t.done=!1,ro)},NW=(e,t)=>{const n=t.length;let r,i,l;return ho(e)||(r=e.state,r.wrap!==0&&r.mode!==uf)?wr:r.mode===uf&&(i=1,i=Kl(i,t,n,0),i!==r.check)?Tx:(l=Rx(e,t,n,n),l?(r.mode=kx,Ex):(r.havedict=1,ro))};var zW=Px,$W=Ix,jW=Ax,VW=RW,UW=Mx,HW=LW,WW=FW,GW=BW,KW=NW,YW="pako inflate (from Nodeca project)",bi={inflateReset:zW,inflateReset2:$W,inflateResetKeep:jW,inflateInit:VW,inflateInit2:UW,inflate:HW,inflateEnd:WW,inflateGetHeader:GW,inflateSetDictionary:KW,inflateInfo:YW};function XW(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var qW=XW;const Dx=Object.prototype.toString,{Z_NO_FLUSH:ZW,Z_FINISH:JW,Z_OK:ql,Z_STREAM_END:fh,Z_NEED_DICT:dh,Z_STREAM_ERROR:QW,Z_DATA_ERROR:p1,Z_MEM_ERROR:eG}=xs;function _u(e){this.options=Zf.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new wx,this.strm.avail_out=0;let n=bi.inflateInit2(this.strm,t.windowBits);if(n!==ql)throw new Error(to[n]);if(this.header=new qW,bi.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Xl.string2buf(t.dictionary):Dx.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=bi.inflateSetDictionary(this.strm,t.dictionary),n!==ql)))throw new Error(to[n])}_u.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let l,g,o;if(this.ended)return!1;for(t===~~t?g=t:g=t===!0?JW:ZW,Dx.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),l=bi.inflate(n,g),l===dh&&i&&(l=bi.inflateSetDictionary(n,i),l===ql?l=bi.inflate(n,g):l===p1&&(l=dh));n.avail_in>0&&l===fh&&n.state.wrap>0&&e[n.next_in]!==0;)bi.inflateReset(n),l=bi.inflate(n,g);switch(l){case QW:case p1:case dh:case eG:return this.onEnd(l),this.ended=!0,!1}if(o=n.avail_out,n.next_out&&(n.avail_out===0||l===fh))if(this.options.to==="string"){let a=Xl.utf8border(n.output,n.next_out),c=n.next_out-a,p=Xl.buf2string(n.output,a);n.next_out=c,n.avail_out=r-c,c&&n.output.set(n.output.subarray(a,a+c),0),this.onData(p)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(l===ql&&o===0)){if(l===fh)return l=bi.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};_u.prototype.onData=function(e){this.chunks.push(e)};_u.prototype.onEnd=function(e){e===ql&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Zf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kg(e,t){const n=new _u(t);if(n.push(e),n.err)throw n.msg||to[n.err];return n.result}function tG(e,t){return t=t||{},t.raw=!0,Kg(e,t)}var nG=_u,rG=Kg,iG=tG,aG=Kg,oG=xs,sG={Inflate:nG,inflate:rG,inflateRaw:iG,ungzip:aG,constants:oG};const{Deflate:xK,deflate:TK,deflateRaw:lG,gzip:EK}=vW,{Inflate:kK,inflate:OK,inflateRaw:uG,ungzip:AK}=sG;var cG=lG,fG=uG;function v1(e){const t=new Map;for(const n of e){const[r,i]=n.split("="),l=decodeURIComponent(i);t.set(r,l)}return t}const dG=function(){if(!window.location.search.includes("?"))return;const t=window.location.search.replace("?","").split("&");let n=v1(t);if(console.log("URL params:",n),n.get("share")){const l=fG(new Uint8Array(atob(n.get("share")).split("").map(g=>g.charCodeAt(0))),{to:"string"});if(!l){Kt().raiseError("Error when trying to decode share parameter!",!1);return}n=v1(l.split("&")),console.log("Share URL params:",n)}const r={id:-1,image:"",prompt:n.get("prompt")||"",sampler_name:n.get("sampler_name")||"k_euler",seed:Number(n.get("seed"))||-1,steps:Number(n.get("steps")||20),cfg_scale:Number(n.get("cfg_scale")||5),height:Number(n.get("height")||512),width:Number(n.get("width")||512),clip_skip:Number(n.get("clip_skip")||0),frames:Number(n.get("frames")||1),scheduler:n.get("scheduler")||"default"};pn().generateText2Img(r,!1)},hG=10;function Gp(e,t,n,r,i=l=>Kt().raiseError(l,!1)){if(e.status===n&&t)return!0;if(!t.message)return i(`${r}: Got response code ${e.status}`);if(!t.errors)return i(`${r}: ${t.message}`);const l=Object.entries(t.errors).map(g=>`${g[0]} - ${g[1]}`).join(" | ");return i(`${r}: ${t.message} (${l})`)}const pG=ls("interrogate",()=>{const e=re({}),t=re(!1);async function n(g){Kt().raiseError(g,!1),t.value=!1,e.value={}}async function r(){const g=Zt(),{source_image:o}=e.value;if(!o)return n("Failed to get interrogation ID: No image supplied.");t.value=!0;const a=await fetch(`${g.baseURL.length===0?".":g.baseURL}/sdapi/v1/interrogate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:o.split(",")[1],model:"clip"})}),c=await a.json();!Gp(a,c,200,"Failed to get interrogation",n)||(e.value.id=c.id,e.value.status=c.caption)}function i(){e.value={},t.value=!1}function l(){return e.value.status||!1}return{currentInterrogation:e,interrogating:t,interrogateImage:r,getFormStatus:l,resetInterrogation:i}}),vG={key:0,style:{"margin-top":"16px"}},gG={key:1,style:{"margin-top":"16px"}},mG={key:2},yG={style:{"margin-top":"8px"}},bG={key:0},_G={key:0},wG={key:1},SG=we({__name:"InterrogationView",setup(e){const t=pG(),n=pn(),r=Kt(),i=re();async function l(c){if(i.value.clearFiles(),!c.raw.type.includes("image")){r.raiseError("Uploaded file needs to be a image!",!1);return}const p=await QC(c.raw);t.currentInterrogation.source_image=p,t.interrogateImage()}function g(){n.generateText2Img({prompt:o.value})}const o=V(()=>t.getFormStatus()),{ellipsis:a}=JC();return(c,p)=>w(t).currentInterrogation.source_image?w(t).currentInterrogation.status?(j(),ae("div",mG,[ie("div",yG,[ue(w(vt),{icon:w(t0),onClick:w(t).resetInterrogation},{default:fe(()=>[...p[1]||(p[1]=[qe("New Interrogation",-1)])]),_:1},8,["icon","onClick"]),o.value?(j(),me(w(vt),{key:0,icon:w(t0),onClick:g,disabled:!o.value},{default:fe(()=>[...p[2]||(p[2]=[qe("Text2Img (Caption)",-1)])]),_:1},8,["icon","disabled"])):ye("",!0)]),p[4]||(p[4]=ie("h2",{style:{margin:"16px 0 8px 0"}},"Interrogation Results",-1)),ue(w(lg),{src:w(t).currentInterrogation.source_image,alt:"Uploaded Image"},null,8,["src"]),o.value?(j(),ae("div",bG,[p[3]||(p[3]=ie("h3",null,"Caption",-1)),o.value?(j(),ae("div",wG,[ie("strong",null,Ae(o.value),1)])):(j(),ae("div",_G,"Processing"+Ae(w(a)),1))])):ye("",!0)])):(j(),ae("div",gG,[ie("strong",null,"Uploading image"+Ae(w(a)),1)])):(j(),ae("div",vG,[ie("div",null,[ue(w(hg),{onChange:l,"auto-upload":!1,limit:1,class:"interrogation-upload",ref_key:"upload",ref:i,multiple:"",drag:""},{default:fe(()=>[ue(w(Ne),{size:100},{default:fe(()=>[ue(w(mv))]),_:1}),p[0]||(p[0]=ie("div",null,[qe("Drop file here OR "),ie("em",null,"click to upload")],-1))]),_:1},512)])]))}});const CG=_n(SG,[["__scopeId","data-v-2060eb26"]]);function xG(e,t,n){if(e===0)return"0"+(t?"s":"seconds");if(e==null)return"?";const r=Math.floor(e/86400),i=Math.floor(e%86400/3600),l=Math.floor(e%86400%3600/60),g=Math.floor(e%86400%3600%60),o=r>0?r+(t?"d":"days"):"",a=i>0?i+(t?"h":"hours"):"",c=l>0?l+(t?"m":"minutes"):"",p=g>0?g+(t?"s":"seconds"):"",u=[];return n!=null&&n.days&&u.push(o),n!=null&&n.hours&&u.push(a),n!=null&&n.minutes&&u.push(c),n!=null&&n.seconds&&u.push(p),u.join(" ")}const TG={class:"form"},EG={key:0,style:{"padding-bottom":"50px"}},kG={class:"sidebar"},OG={class:"main"},AG={class:"image center-horizontal"},PG={key:0},IG=we({__name:"GenerateView",setup(e){const n=mg(gg).smallerOrEqual("md"),r=pn(),i=Kt(),l=ll();Zt();const g=Yy(async()=>{const v=r.cacheVersion,m=(await r.getAvailableSamplers()).map(y=>y.name);return m.length===0?[]:c(m)},[]),o=Yy(async()=>{const v=r.cacheVersion,m=(await r.getAvailableSchedulers()).map(y=>y.name);return m.length===0?[]:p(m)},[]),a=mt({prompt:[{required:!0,message:"Please input prompt",trigger:"change"}]});function c(v){return!r.params||!r.params.sampler_name||v.indexOf(r.params.sampler_name)===-1&&(r.params.sampler_name=v[0]),v}function p(v){return!r.params||!r.params.scheduler||v.indexOf(r.params.scheduler)===-1&&(r.params.scheduler=v[0]),v}function u(v){return"Elapsed: "+xG(v,!0,{days:!0,hours:!0,minutes:!0,seconds:!0})}function f(){r.validGeneratorTypes.includes(r.generatorType)||(i.showGeneratorBadge=!1)}function s(v){r.generatorType=v,f(),console.log(v)}function d(){l.showCropPreview=!0,l.updateCropPreview()}return f(),dG(),(v,h)=>(j(),ae(Ve,null,[ue(w(FS),{"default-active":w(r).generatorType,collapse:!0,onSelect:s,mode:w(n)?"horizontal":"vertical",class:se(w(n)?"mobile-generator-types":"generator-types"),style:He(w(n)?"overflow-x: auto":"")},{default:fe(()=>[ue(Ju,{index:"Text2Img","icon-one":w(ZO),"icon-two":w(Ou),isMobile:w(n)},null,8,["icon-one","icon-two","isMobile"]),ue(Ju,{index:"Img2Img","icon-one":w(Ou),"icon-two":w(Ou),isMobile:w(n)},null,8,["icon-one","icon-two","isMobile"]),ue(Ju,{index:"Inpainting","icon-one":ZC,"icon-two":w(Ou),isMobile:w(n)},null,8,["icon-two","isMobile"]),ue(Ju,{index:"Interrogation","icon-one":jU,isMobile:w(n)},null,8,["isMobile"])]),_:1},8,["default-active","mode","class","style"]),ie("div",TG,[w(r).generatorType==="Interrogation"?(j(),ae("div",EG,[h[27]||(h[27]=ie("h1",{style:{margin:"0"}},"Interrogation",-1)),h[28]||(h[28]=ie("div",null,"Interrogate images to get their predicted descriptions.",-1)),ue(CG)])):(j(),me(w(sg),{key:1,"label-position":"left","label-width":"140px",model:w(r),class:"container",rules:a,onSubmit:h[26]||(h[26]=Qe(()=>{},["prevent"]))},{default:fe(()=>[ie("div",kG,[ue(w(sF),{modelValue:w(i).activeCollapse,"onUpdate:modelValue":h[21]||(h[21]=m=>w(i).activeCollapse=m),style:{"margin-bottom":"24px"}},{default:fe(()=>[ue(w(lF),{title:"Generation Options",name:"1"},{default:fe(()=>[ue(tH),ue(Fp,{label:"Negative Prompt",prop:"negativePrompt",modelValue:w(r).negativePrompt,"onUpdate:modelValue":h[0]||(h[0]=m=>w(r).negativePrompt=m),autosize:{maxRows:15},resize:"vertical",type:"textarea",placeholder:"Enter negative prompt here",info:"What to exclude from the image. Not working? Try increasing the guidance.","label-position":"top"},null,8,["modelValue"]),ue(Fp,{label:"Seed",prop:"seed",modelValue:w(r).params.seed,"onUpdate:modelValue":h[2]||(h[2]=m=>w(r).params.seed=m),placeholder:"Enter seed here",clearable:"","clear-icon":w(YO)},{append:fe(()=>[ue(w(si),{content:"Randomize!",placement:"top"},{default:fe(()=>[ue(w(vt),{icon:w(bA),onClick:h[1]||(h[1]=()=>w(r).params.seed=w(Lx)())},null,8,["icon"])]),_:1})]),_:1},8,["modelValue","clear-icon"]),w(r).multiSelect.sampler.state==="Multiple"?(j(),me(Sc,{key:0,label:"Sampler(s)",prop:"samplers",modelValue:w(r).multiSelect.sampler.selected,"onUpdate:modelValue":h[3]||(h[3]=m=>w(r).multiSelect.sampler.selected=m),options:w(g),info:"Multi-select enabled. Heun and DPM2 double generation time per step, but converge twice as fast.",multiple:""},null,8,["modelValue","options"])):w(r).multiSelect.sampler.state==="Enabled"?(j(),me(Sc,{key:1,label:"Sampler",prop:"sampler",modelValue:w(r).params.sampler_name,"onUpdate:modelValue":h[4]||(h[4]=m=>w(r).params.sampler_name=m),options:w(g),info:"Heun and DPM2 double generation time per step, but converge twice as fast."},null,8,["modelValue","options"])):ye("",!0),ue(Zn,{label:"Batch Size",prop:"batchSize",modelValue:w(r).params.n,"onUpdate:modelValue":h[5]||(h[5]=m=>w(r).params.n=m),min:w(r).minImages,max:w(r).maxImages},null,8,["modelValue","min","max"]),w(r).multiSelect.steps.state==="Multiple"?(j(),me(Zn,{key:2,label:"Steps(s)",prop:"multiSteps",modelValue:w(r).multiSelect.steps.selected,"onUpdate:modelValue":h[6]||(h[6]=m=>w(r).multiSelect.steps.selected=m),min:w(r).minSteps,max:w(r).maxSteps,info:"Multi-select enabled. Keep step count between 30 to 50 for optimal generation times. Coherence typically peaks between 60 and 90 steps, with a trade-off in speed.",multiple:""},null,8,["modelValue","min","max"])):w(r).multiSelect.steps.state==="Enabled"?(j(),me(Zn,{key:3,label:"Steps",prop:"steps",modelValue:w(r).params.steps,"onUpdate:modelValue":h[7]||(h[7]=m=>w(r).params.steps=m),min:w(r).minSteps,max:w(r).maxSteps,info:"Keep step count between 30 to 50 for optimal generation times. Coherence typically peaks between 60 and 90 steps, with a trade-off in speed."},null,8,["modelValue","min","max"])):ye("",!0),ue(Zn,{label:"Width",prop:"width",modelValue:w(r).params.width,"onUpdate:modelValue":h[8]||(h[8]=m=>w(r).params.width=m),min:w(r).minDimensions,max:w(r).maxDimensions,step:64,change:d},null,8,["modelValue","min","max"]),ue(Zn,{label:"Height",prop:"height",modelValue:w(r).params.height,"onUpdate:modelValue":h[9]||(h[9]=m=>w(r).params.height=m),min:w(r).minDimensions,max:w(r).maxDimensions,step:64,change:d},null,8,["modelValue","min","max"]),w(r).multiSelect.guidance.state==="Multiple"?(j(),me(Zn,{key:4,label:"Guidance(s)",prop:"cfgScales",modelValue:w(r).multiSelect.guidance.selected,"onUpdate:modelValue":h[10]||(h[10]=m=>w(r).multiSelect.guidance.selected=m),min:w(r).minCfgScale,max:w(r).maxCfgScale,info:"Multi-select enabled. Higher values will make the AI respect your prompt more. Lower values allow the AI to be more creative.",multiple:""},null,8,["modelValue","min","max"])):w(r).multiSelect.guidance.state==="Enabled"?(j(),me(Zn,{key:5,label:"Guidance",prop:"cfgScale",modelValue:w(r).params.cfg_scale,"onUpdate:modelValue":h[11]||(h[11]=m=>w(r).params.cfg_scale=m),min:w(r).minCfgScale,max:w(r).maxCfgScale,step:.5,info:"Higher values will make the AI respect your prompt more. Lower values allow the AI to be more creative."},null,8,["modelValue","min","max"])):ye("",!0),w(r).multiSelect.clipSkip.state==="Multiple"?(j(),me(Zn,{key:6,label:"CLIP Skip(s)",prop:"clipSkips",modelValue:w(r).multiSelect.clipSkip.selected,"onUpdate:modelValue":h[12]||(h[12]=m=>w(r).multiSelect.clipSkip.selected=m),min:w(r).minClipSkip,max:w(r).maxClipSkip,info:"Multi-select enabled. Last layers of CLIP to ignore. For most situations this can be left alone.",multiple:""},null,8,["modelValue","min","max"])):w(r).multiSelect.clipSkip.state==="Enabled"?(j(),me(Zn,{key:7,label:"CLIP Skip",prop:"clipSkip",modelValue:w(r).params.clip_skip,"onUpdate:modelValue":h[13]||(h[13]=m=>w(r).params.clip_skip=m),min:w(r).minClipSkip,max:w(r).maxClipSkip,info:"Last layers of CLIP to ignore. For most situations this can be left alone."},null,8,["modelValue","min","max"])):ye("",!0),w(r).sourceGeneratorTypes.includes(w(r).generatorType)?(j(),me(Zn,{key:8,label:"Init Strength",prop:"denoise",modelValue:w(r).params.denoising_strength,"onUpdate:modelValue":h[14]||(h[14]=m=>w(r).params.denoising_strength=m),min:w(r).minDenoise,max:w(r).maxDenoise,step:.01,info:"The final image will diverge from the starting image at higher values. 0=unchanged, 1=fullychanged"},null,8,["modelValue","min","max"])):ye("",!0),ue(Zn,{label:"Video Frames",prop:"frames",modelValue:w(r).params.frames,"onUpdate:modelValue":h[15]||(h[15]=m=>w(r).params.frames=m),min:w(r).minFrames,max:w(r).maxFrames,info:"Number of consecutive video frames to generate (Video models only). Max 80 frames, about 5 seconds of video."},null,8,["modelValue","min","max"]),w(r).multiSelect.scheduler.state==="Enabled"?(j(),me(Sc,{key:9,label:"Scheduler",prop:"scheduler",modelValue:w(r).params.scheduler,"onUpdate:modelValue":h[16]||(h[16]=m=>w(r).params.scheduler=m),options:w(o),info:"Experimental! Allows you to use a different scheduler. Leave as default otherwise."},null,8,["modelValue","options"])):ye("",!0),ie("div",null,[h[29]||(h[29]=ie("span",{style:{height:"100%","font-size":"14px"}},[qe("Reference Image: "),ie("br"),qe("(Photomaker/Kontext) ")],-1)),ie("input",{class:"el-button",type:"file",id:"extra_image_input",onChange:h[17]||(h[17]=m=>w(r).setExtraImage(m)),accept:"image/*",multiple:""},null,32),ie("button",{onClick:h[18]||(h[18]=m=>w(r).clearExtraImage()),class:"el-button"},"Clear Image"),ue(w(Hz),null,{default:fe(()=>[ue(w(vy),{span:w(n)?24:12},{default:fe(()=>[ue(kb,{label:"ESRGAN Upscale",prop:"enable_hr",modelValue:w(r).params.enable_hr,"onUpdate:modelValue":h[19]||(h[19]=m=>w(r).params.enable_hr=m),info:"Enable upscale with ESRGAN."},null,8,["modelValue"])]),_:1},8,["span"]),ue(w(vy),{span:w(n)?24:12},{default:fe(()=>[w(r).generatorType==="Img2Img"?(j(),me(kb,{key:0,label:"Send as RefImg",prop:"send_as_refimg",modelValue:w(r).params.send_as_refimg,"onUpdate:modelValue":h[20]||(h[20]=m=>w(r).params.send_as_refimg=m),info:"Instead of regular Img2Img, send the image as a reference image for edit models."},null,8,["modelValue"])):ye("",!0)]),_:1},8,["span"])]),_:1})])]),_:1})]),_:1},8,["modelValue"])]),ie("div",OG,[ue(w(vt),{onClick:h[22]||(h[22]=()=>{w(r).cancelled=!0,w(r).generating=!1,w(r).resetStore()}),class:"reset-btn"},{default:fe(()=>[...h[30]||(h[30]=[qe("Reset",-1)])]),_:1}),ue(w(vt),{type:"primary",class:"generate-cancel-btn",style:He(w(r).generating?"width: 55%;":""),onClick:h[23]||(h[23]=()=>w(r).generateImage(w(r).generatorType))},{default:fe(()=>[ie("span",null," Generate "+Ae(w(r).totalImageCount)+" image"+Ae(w(r).totalImageCount===1?"":"s"),1)]),_:1},8,["style"]),w(r).generating?(j(),me(w(vt),{key:0,type:"danger",class:"generate-cancel-btn",style:{width:"25%"},disabled:w(r).cancelled,onClick:h[24]||(h[24]=()=>{w(r).cancelled=!0,w(r).generating=!1,w(r).clearQueue()})},{default:fe(()=>[...h[31]||(h[31]=[qe("Cancel all",-1)])]),_:1},8,["disabled"])):ye("",!0)]),ie("div",AG,[ue(w(wL),{class:"center-both generated-image"},{default:fe(()=>[!w(r).generating&&w(r).outputs.length==0?(j(),ae("div",PG,[/Inpainting/.test(w(r).generatorType)?(j(),me(Ob,{key:0})):ye("",!0),/Img2Img/.test(w(r).generatorType)?(j(),me(Ob,{key:1})):ye("",!0)])):ye("",!0),!w(i).showGeneratedImages&&w(r).generating?(j(),me(KU,{key:1,generated:w(r).outputs.length,total:w(r).queue.length,elapsed:u(w(r).timer.seconds),onShowGenerated:h[25]||(h[25]=m=>w(i).showGeneratedImages=!0)},null,8,["generated","total","elapsed"])):ye("",!0),w(i).showGeneratedImages&&w(r).outputs.length!==0?(j(),me(uH,{key:2})):ye("",!0)]),_:1})])]),_:1},8,["model","rules"]))])],64))}});const dl=RO({history:dO("./"),routes:[{path:"/",name:"generate",component:IG},{path:"/images",name:"images",component:()=>Eb(()=>Promise.resolve().then(()=>bK),void 0,import.meta.url)},{path:"/options",name:"options",component:()=>Eb(()=>Promise.resolve().then(()=>SK),void 0,import.meta.url)},{path:"/return",name:"return",redirect:e=>(window.location.href=window.location.pathname.endsWith("/")?"..":".","/")}]});function hh(){return{steps:20,n:1,sampler_name:"Euler",width:512,height:512,cfg_scale:5,clip_skip:0,seed:-1,denoising_strength:.6,frames:1,enable_hr:!1,send_as_refimg:!1,scheduler:"default"}}function Lx(){return Math.floor(Math.random()*9999999)+1}const pn=ls("generator",()=>{const e=["Text2Img","Img2Img","Inpainting"],t=["Img2Img","Inpainting"],n=re("Text2Img"),r=re(""),i=Qn("promptHistory",[]),l=re(""),g=Qn("negativeLibrary",[]),o=re(hh()),a=re({interval:0,seconds:0}),c=re({sampler:{name:"Sampler",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.sampler_name],mapToParam:Ce=>Ce.sampler_name},scheduler:{name:"Scheduler",state:"Enabled",allowedStates:["Disabled","Enabled"],selected:[o.value.scheduler],mapToParam:Ce=>Ce.scheduler},steps:{name:"Steps",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.steps],mapToParam:Ce=>Ce.steps},guidance:{name:"CFG Scale",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.cfg_scale],mapToParam:Ce=>Ce.cfg_scale},clipSkip:{name:"Clip Skip",state:"Disabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.clip_skip],mapToParam:Ce=>Ce.clip_skip}}),p=()=>({sourceProcessing:void 0,sourceImage:void 0,maskImage:void 0}),u=re({...p(),sourceProcessing:"inpainting"}),f=re({...p(),sourceProcessing:"img2img"}),s=Ce=>Ce==="Inpainting"?u.value:Ce==="Img2Img"?f.value:p(),d=V(()=>s(n.value)),v=re(""),h=re(!1),m=re(!1),y=re([]),b=re([]),_=re(64),S=V(()=>Zt().allowLargerParams==="Enabled"?3072:1024),x=re(1),T=re(20),E=re(1),k=V(()=>Zt().allowLargerParams==="Enabled"?150:50),D=re(1),W=re(24),I=re(0),U=re(1),A=re(0),ee=re(10),de=re(1),z=re(80),q=(Ce,Me,Le)=>Array.from({length:(Me-Ce+1)/Le},(Ge,ct)=>(ct+Ce)*Le),O=re(q(A.value,ee.value,1)),F=re(q(D.value,W.value,.5)),R=V(()=>{const Ce=(Gt,Cr,nn=1)=>Gt*(Cr.state==="Multiple"?Cr.selected.length:nn),Le=o.value.n*N().length,Ge=Ce(Le,c.value.sampler),ct=Ce(Ge,c.value.scheduler),ze=Ce(ct,c.value.steps),lt=Ce(ze,c.value.guidance);return Ce(lt,c.value.clipSkip)});function P(){return o.value=hh(),u.value=p(),f.value=p(),y.value=[],Kt().showGeneratedImages=!1,G(),!0}function G(){b.value=[]}function $(){y.value=[]}async function M(Ce){if(!e.includes(Ce))return[];if(r.value==="")return X("Failed to generate: No prompt submitted.");const Me=ll(),Le=Kt();Me.saveImages();const{sourceImage:Ge,maskImage:ct,sourceProcessing:ze}=s(Ce);ge(r.value);const lt=[],Pn=N();let Gt=parseInt(o.value.seed.toString());(isNaN(Gt)||Gt<0)&&(Gt=Lx());const Cr=[];for(let ot=0;ot<o.value.n;ot++)Cr.push(Gt+ot);const nn=(ot,an)=>ot.state==="Disabled"?[]:ot.state==="Enabled"?[an]:ot.state==="Multiple"&&ot.selected.length===0?[]:ot.selected;let rn={seed:Cr,cfg_scale:nn(c.value.guidance,o.value.cfg_scale),steps:nn(c.value.steps,o.value.steps),clip_skip:nn(c.value.clipSkip,o.value.clip_skip),sampler_name:nn(c.value.sampler,o.value.sampler_name),scheduler:nn(c.value.scheduler,o.value.scheduler)};const Ur={...o.value};for(const ot of Object.keys(rn))delete Ur[ot];const ed=(ot=>Object.entries(ot).filter(([vo,on])=>on.length>0).reduce((vo,[on,rd])=>{const ya=[];for(const Su of vo)for(const go of rd)ya.push({...Su,[on]:go});return ya},[{}]))(rn),td=[await K()];for(const ot of Pn){const an=ot.split(" ### ");for(const vo of ed){let on={prompt:ot,params:{...Ur,...vo,prompt:an[0],negative_prompt:an[1]||"",init_images:Ge?[Ge.split(",")[1]]:[],mask:ct,inpainting_mask_invert:ct?0:null,inpainting_fill:ct?1:null},source_image:Ge==null?void 0:Ge.split(",")[1],source_mask:ct,source_processing:ze,models:td};on.params.sampler_name=="default"&&delete on.params.sampler_name,on.params.scheduler=="default"&&delete on.params.scheduler,on.params.frames&&on.params.frames<=1&&delete on.params.frames,Te&&Te.length>0&&(on.params.extra_images=Te),Zt().alsoRequestAvi==="Enabled"&&on.params.frames&&on.params.frames>1&&(on.params.video_output_type=2),lt.push(on)}}let wu=!1;h.value||(wu=!0,y.value=[]),h.value=!0,Le.showGeneratedImages=!1;let ks=b.value.filter(ot=>!ot.gathered&&!ot.failed).length;for(let ot=0;ot<lt.length;ot++)ks<hG&&(b.value.push({...lt[ot],jobId:"",index:ot,gathered:!1,failed:!1}),++ks);if(!!wu)for(m.value=!1,a.value.interval&&(clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0),a.value.interval=setInterval(()=>{a.value.seconds++},1e3);!b.value.every(ot=>ot.gathered||ot.failed)&&!m.value;){const ot=b.value.find(an=>!an.gathered&&!an.failed);if(!ot)break;ot.gathered=!0;try{const an=await C(ot.params);if(!an){ot.failed=!0;continue}ne([{...an,...ot}])}catch(an){ot.failed=!0,console.error("Error fetching image:",an)}}}async function ne(Ce){const Me=eo();console.log(Ce);const Le=await Promise.all(Ce.map(async ze=>{const lt=ze.images[0],Gt=!!ze.animated?"gif":"png",Cr=ze.extra_data?`data:video/avi;base64,${ze.extra_data}`:"";let nn={id:-1,image:`data:image/${Gt};base64,${lt}`,prompt:ze.prompt,modelName:ze.models[0],frames:ze.params.frames,extra_avi:Cr,enable_hr:ze.params.enable_hr,send_as_refimg:ze.params.send_as_refimg};if(ze.info&&typeof ze.info=="string"&&ze.info.trim()!=="")try{const rn=JSON.parse(ze.info);["seed","steps","sampler_name","cfg_scale","width","height","clip_skip"].forEach(xr=>{rn[xr]!=null?nn[xr]=rn[xr]:nn[xr]=ze.params[xr]}),rn.extra_generation_params&&rn.extra_generation_params["Schedule type"]?nn.scheduler=rn.extra_generation_params["Schedule type"]:nn.scheduler=ze.params.scheduler}catch(rn){console.warn("Failed to parse info JSON:",rn)}return nn})),Ge=await Me.pushOutputs(Le),ct=0;return y.value=[...Ge.map(ze=>({type:"image",index:ct,output:ze})),...y.value].sort((ze,lt)=>ze.index-lt.index),y.value.length===b.value.length&&(b.value=[],h.value=!1,Kt().showGeneratedImages=!0,clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0),Le}async function X(Ce){const Me=Kt();return Ce&&Me.raiseError(Ce,!1),[]}function te(Ce,Me,Le,Ge){return Me<=Le?Me:(Kt().raiseWarning(`This image was generated using the 'Larger Values' option. Setting '${Ce}' to its default value instead of ${Me}.`,!0),Ge)}async function Q(Ce,Me=!0){const Le=hh();if(n.value="Text2Img",c.value.guidance.state="Enabled",c.value.sampler.state="Enabled",c.value.steps.state="Enabled",c.value.clipSkip.state="Disabled",c.value.scheduler.state="Enabled",dl.push("/"),Me&&(Ce.width=Ce.width||Le.width,Ce.height=Ce.height||Le.height),Ce.prompt){const Ge=Ce.prompt.split(" ### ");r.value=Ge[0],l.value=Ge[1]||""}if(Ce.sampler_name){o.value.sampler_name=Ce.sampler_name;const ct=(await le()).find(ze=>ze.aliases&&ze.aliases.includes(Ce.sampler_name));ct&&(o.value.sampler_name=ct.name)}Ce.steps&&(o.value.steps=te("steps",Ce.steps,k.value,Le.steps)),Ce.cfg_scale&&(o.value.cfg_scale=Ce.cfg_scale),Ce.width&&(o.value.width=te("width",Ce.width,S.value,Le.width)),Ce.height&&(o.value.height=te("height",Ce.height,S.value,Le.height)),Ce.seed&&(o.value.seed=Ce.seed),Ce.clip_skip&&(o.value.clip_skip=te("clip_skip",Ce.clip_skip,ee.value,Le.clip_skip)),Ce.scheduler&&(o.value.scheduler=Ce.scheduler),Ce.frames&&(o.value.frames=te("frames",Ce.frames,z.value,Le.frames))}function J(Ce){const Me=ll();n.value="Img2Img",f.value.sourceImage=Ce,Me.drawing=!1,y.value=[],dl.push("/"),Er.fabric.Image.fromURL(Ce,Me.newImage)}function oe(Ce){const Me=ll();y.value=[],u.value.sourceImage=Ce,n.value="Inpainting",dl.push("/"),Er.fabric.Image.fromURL(Ce,Me.newImage)}function pe(){return l.value===""?r.value:`${r.value} ### ${l.value}`}function N(){const Ce=pe(),Me=Ce.match(/\{(.*?)\}/g)||[];if(Me.length===0)return[Ce];let Le=[];return Me.forEach(Ge=>{const ct=[],ze=Ge.replace("{","").replace("}","").split("|");Le.length===0?ze.forEach(lt=>{const Pn=Ce.replace(Ge,lt);ct.push(Pn)}):Le.forEach(lt=>{ze.forEach(Pn=>{const Gt=lt.replace(Ge,Pn);ct.push(Gt)})}),Le=[...ct]}),Le}async function C(Ce){const Me=Zt();try{const Le=await fetch(`${Me.baseURL.length===0?".":Me.baseURL}/sdapi/v1/${Ce.init_images.length>0?"img":"txt"}2img`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ce)}),Ge=await Le.json();return Gp(Le,Ge,200,"Failed to fetch",H)?Ge:!1}catch{return!1}}function H(Ce){return Kt().raiseError(Ce,!1),m.value=!1,y.value=[],!1}async function K(){const Ce=Zt(),Me=await fetch(`${Ce.baseURL.length===0?".":Ce.baseURL}/sdapi/v1/sd-models`),Le=await Me.json();if(!!Gp(Me,Le,200,"Failed to get available models"))return Le.length===0?"(No model loaded)":Le[0].model_name}const L=re(0),B=new Map;function Z(){B.clear(),L.value++}ke(()=>Zt().baseURL,()=>{Z()});async function ce(Ce){const Me=Zt(),Ge=((Me.baseURL.length===0?".":Me.baseURL).replace(/\/+$/,"")||".")+"/"+Ce.replace(/^\/+/,"");if(B.has(Ge))return B.get(Ge);const ct=(async()=>{try{const ze=await fetch(Ge);if(ze.ok)return await ze.json();console.error(`API Error: ${ze.status} ${ze.statusText} at ${Ge}`)}catch(ze){console.error(`Fetch error for ${Ge}:`,ze)}return B.delete(Ge),null})();return B.set(Ge,ct),ct}async function le(){const Ce=await ce("/sdapi/v1/samplers");return Array.isArray(Ce)?Ce:[]}async function Y(){const Ce=await ce("/sdapi/v1/schedulers");return Array.isArray(Ce)?Ce:[]}function he(Ce){g.value.indexOf(Ce)===-1&&(g.value=[...g.value,Ce])}function ve(Ce){g.value=g.value.filter(Me=>Me!=Ce)}function ge(Ce){if(i.value.findIndex(Me=>Me.prompt===Ce)===-1){if(i.value.length>=10+i.value.filter(Me=>Me.starred).length){const Me=i.value.filter(Ge=>!Ge.starred),Le=i.value.findIndex(Ge=>Ge===Me[Me.length-1]);i.value.splice(Le,1)}i.value=[...i.value,{starred:!1,timestamp:Date.now(),prompt:Ce}]}}function Ee(Ce){i.value=i.value.filter(Me=>Me.prompt!=Ce&&Me!=Ce)}function _e(){return!1}var Te=[];function Oe(Ce){let Me=Ce.target;if(Te=[],Me.files.length>0)for(let Le=0;Le<Me.files.length;++Le){let Ge=Me.files[Le];const ct=new FileReader;ct.onload=function(ze){let lt=ze.target?ze.target.result:"";lt.includes("data:image")&&(lt=lt.split(",")[1]),console.log(lt),Te.push(lt)},ct.onerror=function(){console.log("Error reading file.")},ct.readAsDataURL(Ge)}else console.log("No file to load")}function tt(){Te=[];const Ce=document.getElementById("extra_image_input");Ce&&(Ce.value="")}return{generatorType:n,prompt:r,params:o,outputs:y,inpainting:u,img2img:f,uploadDimensions:v,cancelled:m,multiSelect:c,negativePrompt:l,generating:h,negativePromptLibrary:g,minDimensions:_,maxDimensions:S,minImages:x,maxImages:T,minSteps:E,maxSteps:k,minCfgScale:D,maxCfgScale:W,minDenoise:I,maxDenoise:U,minClipSkip:A,maxClipSkip:ee,minFrames:de,maxFrames:z,clipSkipList:O,cfgList:F,queue:b,promptHistory:i,timer:a,validGeneratorTypes:e,sourceGeneratorTypes:t,currentImageProps:d,totalImageCount:R,generateImage:M,generateText2Img:Q,generateImg2Img:J,generateInpainting:oe,getPrompt:_e,resetStore:P,clearQueue:G,clearOutputs:$,pushToNegativeLibrary:he,removeFromNegativeLibrary:ve,pushToPromptHistory:ge,removeFromPromptHistory:Ee,setExtraImage:Oe,clearExtraImage:tt,getAvailableSamplers:le,getAvailableSchedulers:Y,cacheVersion:L,invalidateApiCaches:Z,getCachedEndpoint:ce}});"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}});var Qf=e=>new DataView(new ArrayBuffer(e)),po=e=>new Uint8Array(e.buffer||e),Do=e=>new TextEncoder().encode(String(e));function MG(e,t,n=436){if(t===void 0||t instanceof Date||(t=new Date(t)),e instanceof File)return{t:t||new Date(e.lastModified),bytes:e.stream(),mode:n};if(e instanceof Response)return{t:t||new Date(e.headers.get("Last-Modified")||Date.now()),bytes:e.body,mode:n};if(t===void 0)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(typeof e=="string")return{t,bytes:Do(e),mode:n};if(e instanceof Blob)return{t,bytes:e.stream(),mode:n};if(e instanceof Uint8Array||e instanceof ReadableStream)return{t,bytes:e,mode:n};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{t,bytes:po(e),mode:n};if(Symbol.asyncIterator in e)return{t,bytes:Fx(e[Symbol.asyncIterator]()),mode:n};throw new TypeError("Unsupported input format.")}function Fx(e,t=e){return new ReadableStream({async pull(n){let r=0;for(;n.desiredSize>r;){const i=await e.next();if(!i.value){n.close();break}{const l=RG(i.value);n.enqueue(l),r+=l.byteLength}}},cancel(n){var r;(r=t.throw)==null||r.call(t,n)}})}function RG(e){return typeof e=="string"?Do(e):e instanceof Uint8Array?e:po(e)}function Bx(e,t,n){let[r,i]=function(l){return l?l instanceof Uint8Array?[l,1]:ArrayBuffer.isView(l)||l instanceof ArrayBuffer?[po(l),1]:[Do(l),0]:[void 0,0]}(t);if(e instanceof File)return{o:ph(r||Do(e.name)),i:e.size,u:i};if(e instanceof Response){const l=e.headers.get("content-disposition"),g=l&&l.match(/;\s*filename\*?\s*=\s*(?:UTF-\d+''|)["']?([^;"'\r\n]*)["']?(?:;|$)/i),o=g&&g[1]||e.url&&new URL(e.url).pathname.split("/").findLast(Boolean),a=o&&decodeURIComponent(o),c=n||+e.headers.get("content-length");return{o:ph(r||Do(a)),i:c,u:i}}return r=ph(r),typeof e=="string"?{o:r,i:Do(e).length,u:i}:e instanceof Blob?{o:r,i:e.size,u:i}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{o:r,i:e.byteLength,u:i}:{o:r,i:DG(e,n),u:i}}function DG(e,t){return t>-1?t:e?void 0:0}function ph(e){if(!e||e.every(t=>t===47))throw new Error("The file must have a name.");for(;e[e.length-1]===47;)e=e.subarray(0,-1);return e}var Nx=new Uint32Array(256);for(let e=0;e<256;++e){let t=e;for(let n=0;n<8;++n)t=t>>>1^(1&t&&3988292384);Nx[e]=t}function g1(e,t=0){t=~t;for(var n=0,r=e.length;n<r;n++)t=t>>>8^Nx[255&t^e[n]];return~t>>>0}function zx(e,t,n=0){const r=e.getSeconds()>>1|e.getMinutes()<<5|e.getHours()<<11,i=e.getDate()|e.getMonth()+1<<5|e.getFullYear()-1980<<9;t.setUint16(n,r,1),t.setUint16(n+2,i,1)}function LG({o:e,u:t},n){return 8*(!t||(n!=null?n:function(r){try{FG.decode(r)}catch{return 0}return 1}(e)))}var FG=new TextDecoder("utf8",{fatal:1});function BG(e,t=0){const n=Qf(30);return n.setUint32(0,1347093252),n.setUint32(4,335546368|t),zx(e.t,n,10),n.setUint16(26,e.o.length,1),po(n)}async function*NG(e){let{bytes:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.l=g1(t,0),e.i=t.length;else{e.i=0;const n=t.getReader();for(;;){const{value:r,done:i}=await n.read();if(i)break;e.l=g1(r,e.l),e.i+=r.length,yield r}}}function zG(e){const t=Qf(16);return t.setUint32(0,1347094280),t.setUint32(4,e.l,1),t.setUint32(8,e.i,1),t.setUint32(12,e.i,1),po(t)}function $G(e,t,n=0){const r=Qf(46);return r.setUint32(0,1347092738),r.setUint32(4,352523264),r.setUint16(8,2048|n),zx(e.t,r,12),r.setUint32(16,e.l,1),r.setUint32(20,e.i,1),r.setUint32(24,e.i,1),r.setUint16(28,e.o.length,1),r.setUint16(40,32768|e.mode,1),r.setUint32(42,t,1),po(r)}function $x(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified,e.mode]]}var jG=e=>function(t){var n;let r=22;for(const i of t){if(!i.o)throw new Error("Every file must have a non-empty name.");if(isNaN((n=i.i)!=null?n:NaN))throw new Error(`Missing size for file "${new TextDecoder().decode(i.o)}".`);r+=2*i.o.length+i.i+92}return r}(function*(t){for(const n of t)yield Bx(...$x(n)[0])}(e));function VG(e,t={}){const n={"Content-Type":"application/zip","Content-Disposition":"attachment"};Number.isInteger(t.length)&&t.length>0&&(n["Content-Length"]=t.length),t.metadata&&(n["Content-Length"]=jG(t.metadata));const r=function(i){var l;const g=i[Symbol.iterator in i?Symbol.iterator:Symbol.asyncIterator]();return{async next(){const o=await g.next();if(o.done)return o;const[a,c]=$x(o.value);return{done:0,value:Object.assign(MG(...c),Bx(...a))}},throw:(l=g.throw)==null?void 0:l.bind(g),[Symbol.asyncIterator](){return this}}}(e);return new Response(Fx(async function*(i,l){const g=[];let o=0,a=0;for await(const u of i){const f=LG(u,l.buffersAreUTF8);yield BG(u,f),yield new Uint8Array(u.o),yield*NG(u),yield zG(u),g.push($G(u,o,f)),g.push(u.o),a++,o+=46+u.o.length+u.i}let c=0;for(const u of g)yield u,c+=u.length;const p=Qf(22);p.setUint32(0,1347093766),p.setUint16(8,a,1),p.setUint16(10,a,1),p.setUint32(12,c,1),p.setUint32(16,o,1),yield po(p)}(r,t),r),{headers:n})}async function jx(e,t=!0,n){const r=Zt();t&&da({message:`Downloading ${e.length} image(s)...`,type:"info"});const i=[];for(let o=0;o<e.length;o++){const a=await Vt.outputs.get(e[o]);if(!a)continue;const{image:c,id:p,...u}=a,f=`${o}-${a.seed}-${a.prompt}`.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd();let s=r.imageDownloadType;c.startsWith("data:image/gif")&&(s="GIF"),s==="PNG"?i.push({name:f+".png",input:await La(c,"image/png")}):s==="JPG"?i.push({name:f+".jpg",input:await La(c,"image/jpeg")}):s==="GIF"?i.push({name:f+".gif",input:await La(c,"image/gif")}):i.push({name:f+".webp",input:await La(c,"image/webp")}),i.push({name:f+".json",input:JSON.stringify(u,void 0,4)}),n&&n()}const l=await VG(i).blob(),g=document.createElement("a");g.href=URL.createObjectURL(l),g.download="sdui_images.zip",g.click()}async function UG(e,t){const n=Zt(),r=document.createElement("a");let i,l=n.imageDownloadType;e.startsWith("data:image/gif")&&(l="GIF"),l==="PNG"?(i=await La(e,"image/png"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".png"):l==="JPG"?(i=await La(e,"image/jpeg"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".jpg"):l==="GIF"?(i=await La(e,"image/gif"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".gif"):(r.href=e,r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".webp"),r.click(),i&&URL.revokeObjectURL(r.href)}const HG=we({__name:"ImageActions",props:{imageData:{},onDelete:{type:Function},showDismiss:{type:Boolean}},setup(e){const t=pn(),n=eo(),r=e,i=()=>{YS.confirm("This action will permanently delete this image. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{n.deleteOutput(r.imageData.id),r.onDelete!==void 0&&r.onDelete(r.imageData.id),da({type:"success",message:"Deleted Image"})})},l=()=>{pn().clearOutputs(),Kt().showGeneratedImages=!1,pn().clearQueue()};async function g(o){const a=window.location.origin,c={prompt:o.prompt,width:o.width?o.width:void 0,height:o.height?o.height:void 0,steps:o.steps,cfg_scale:o.cfg_scale,sampler_name:o.sampler_name,model_name:o.modelName,seed:o.seed,clip_skip:o.clip_skip,frames:o.frames,scheduler:o.scheduler,extra_avi:o.extra_avi,enable_hr:o.enable_hr,send_as_refimg:o.send_as_refimg},p=window.location.pathname.replace("images","");let u=`${a}${p}?share=`,f="",s="";for(const[v,h]of Object.entries(c)){if(!h)continue;let m=h;typeof h=="string"?m=encodeURIComponent(h):Array.isArray(h)&&(m=JSON.stringify(h)),f+=`${s}${v}=${m}`,s="&"}const d=btoa(String.fromCharCode.apply(null,Array.from(cG(f))));u+=d,await navigator.clipboard.writeText(u),da({type:"success",message:"Copied shareable link to clipboard"})}return(o,a)=>(j(),ae(Ve,null,[ue(w(vt),{class:"compact-button",onClick:i,type:"danger",size:"small",icon:w(Of),plain:""},{default:fe(()=>[...a[8]||(a[8]=[qe("Delete",-1)])]),_:1},8,["icon"]),ue(w(vt),{class:"compact-button",onClick:a[0]||(a[0]=c=>w(UG)(e.imageData.image,`${e.imageData.seed}-${e.imageData.prompt}`)),type:"success",size:"small",icon:w(Cl),plain:""},{default:fe(()=>[...a[9]||(a[9]=[qe("Download",-1)])]),_:1},8,["icon"]),e.imageData.starred?ye("",!0):(j(),me(w(vt),{key:0,class:"compact-button",onClick:a[1]||(a[1]=c=>w(n).toggleStarred(e.imageData.id)),type:"warning",size:"small",icon:w(jA),plain:""},{default:fe(()=>[...a[10]||(a[10]=[qe("Star",-1)])]),_:1},8,["icon"])),e.imageData.starred?(j(),me(w(vt),{key:1,class:"compact-button",onClick:a[2]||(a[2]=c=>w(n).toggleStarred(e.imageData.id)),type:"warning",size:"small",icon:w(gw),plain:""},{default:fe(()=>[...a[11]||(a[11]=[qe("Unstar",-1)])]),_:1},8,["icon"])):ye("",!0),ue(w(vt),{class:"compact-button",onClick:a[3]||(a[3]=c=>w(t).generateText2Img(e.imageData)),type:"success",size:"small",plain:""},{default:fe(()=>[...a[12]||(a[12]=[qe("Txt2img",-1)])]),_:1}),ue(w(vt),{class:"compact-button",onClick:a[4]||(a[4]=c=>w(t).generateImg2Img(e.imageData.image)),type:"success",size:"small",plain:""},{default:fe(()=>[...a[13]||(a[13]=[qe("Img2img",-1)])]),_:1}),ue(w(vt),{class:"compact-button",onClick:a[5]||(a[5]=c=>w(t).generateInpainting(e.imageData.image)),type:"success",size:"small",plain:""},{default:fe(()=>[...a[14]||(a[14]=[qe("Inpaint",-1)])]),_:1}),e.showDismiss?(j(),me(w(vt),{key:2,class:"compact-button",onClick:a[6]||(a[6]=c=>l()),type:"success",size:"small",plain:""},{default:fe(()=>[...a[15]||(a[15]=[qe("Dismiss",-1)])]),_:1})):ye("",!0),ue(w(vt),{class:"compact-button",onClick:a[7]||(a[7]=c=>g(e.imageData)),type:"success",icon:w(gA),size:"small",plain:""},{default:fe(()=>[...a[16]||(a[16]=[qe("Share",-1)])]),_:1},8,["icon"])],64))}});const Vx=_n(HG,[["__scopeId","data-v-005f0de2"]]),WG={class:"main-output",style:{position:"relative",display:"flex","align-items":"center","justify-content":"center"}},GG=["src"],KG={style:{"font-size":"18px","font-weight":"500"}},YG={style:{"font-family":"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif","letter-spacing":"0.025em"}},XG={key:0},qG=we({__name:"ImageDialog",setup(e){const t=eo(),n=Kt(),r=re();gV(r,{onSwipeEnd(a,c){c==="RIGHT"&&n.openModalToLeft(),c==="LEFT"&&n.openModalToRight()}});const i=V({get(){return n.activeModal!==-1},set(){n.activeModal=-1}}),l=re(t.currentOutputs[0]);ke(()=>n.activeModal,async()=>{const a=t.currentOutputs.find(c=>c.id===n.activeModal);if(a)return l.value=a;l.value=await Vt.outputs.get(n.activeModal)||t.currentOutputs[0]});function g(){i.value=!1}function o(){var v,h;if(!((v=l.value)!=null&&v.extra_avi))return;const a=l.value.extra_avi.split(",")[1];if(!a)return;const c=atob(a),p=c.length,u=new Uint8Array(p);for(let m=0;m<p;m++)u[m]=c.charCodeAt(m);const f=new Blob([u],{type:"video/avi"}),s=URL.createObjectURL(f),d=document.createElement("a");d.href=s,d.download=`output-${(h=l.value.id)!=null?h:"video"}.avi`,document.body.appendChild(d),d.click(),document.body.removeChild(d),URL.revokeObjectURL(s)}return(a,c)=>{var p;return j(),me(w(QF),{"model-value":i.value,width:(p=l.value)==null?void 0:p.width,class:"image-viewer",onClosed:g,"align-center":""},{footer:fe(()=>[ue(Vx,{"image-data":l.value,"on-delete":g},null,8,["image-data"])]),default:fe(()=>{var u,f,s,d;return[ie("div",{class:"main-output-container",ref_key:"target",ref:r},[ie("div",WG,[(u=l.value)!=null&&u.image?(j(),ae("img",{key:0,src:l.value.image,alt:"Output image",style:{"max-width":"100%","max-height":"100%","object-fit":"contain"}},null,8,GG)):ye("",!0)])],512),ie("div",KG,Ae(((f=l.value.prompt)==null?void 0:f.split("###")[0])||"Unknown Creation"),1),ie("div",YG,[ie("div",null,"Negative Prompt: "+Ae(((s=l.value.prompt)==null?void 0:s.split("###")[1])||"None"),1),ie("span",null,"Model: "+Ae(l.value.modelName||"Unknown")+" - ",1),ie("span",null,"Sampler: "+Ae(l.value.sampler_name||"Unknown")+" - ",1),ie("span",null,"Scheduler: "+Ae(l.value.scheduler||"Unknown")+" - ",1),ie("span",null,"Seed: "+Ae(l.value.seed||"Unknown")+" - ",1),ie("span",null,"Steps: "+Ae(l.value.steps||"Unknown")+" - ",1),ie("span",null,"CFG Scale: "+Ae(l.value.cfg_scale||"Unknown")+" - ",1),ie("span",null,"Clip Skip: "+Ae((d=l.value.clip_skip)!=null?d:"Unknown")+" - ",1),ie("span",null,"Dimensions: "+Ae(l.value.width||"???")+"x"+Ae(l.value.height||"???")+" - ",1),ie("span",null,"Frames: "+Ae(l.value.frames||"1"),1),l.value.extra_avi?(j(),ae("span",XG,[c[0]||(c[0]=qe(" - ",-1)),ie("a",{href:"#",onClick:Qe(o,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Download AVI]")])):ye("",!0)])]}),_:1},8,["model-value","width"])}}});const ZG={class:"generator-icons"},JG=we({__name:"App",setup(e){const n=mg(gg).smallerOrEqual("md"),r=Kt();Zt();const i=DO(),l=re();return ke(()=>i.path,g=>{l.value&&l.value.open(g)}),(g,o)=>(j(),ae(Ve,null,[ie("div",{class:se({"menu-container":!w(n)})},[ue(w(FS),{"default-active":w(i).path,mode:"horizontal",router:!0,ellipsis:!w(n),class:se(w(n)?"mobile-menu":"menu"),ref_key:"menuRef",ref:l},{default:fe(()=>[w(n)?ye("",!0):(j(),me(w(fg),{key:0,class:"remove-item-styling center-vertical"},{title:fe(()=>[...o[0]||(o[0]=[ie("div",{style:{"font-size":"20px"}},"Stable UI",-1)])]),_:1})),ue(Zd,{isMobile:w(n),index:"/"},{icon:fe(()=>[ie("div",ZG,[ue(w(Ne),null,{default:fe(()=>[ue(w(kA))]),_:1}),w(r).showGeneratorBadge?(j(),me(w(Ne),{key:0,class:"generator-badge",size:10},{default:fe(()=>[ue(MU)]),_:1})):ye("",!0)])]),title:fe(()=>[...o[1]||(o[1]=[qe("Generate",-1)])]),_:1},8,["isMobile"]),ue(Zd,{isMobile:w(n),index:"/images"},{icon:fe(()=>[ue(w(Ne),null,{default:fe(()=>[ue(w(wA))]),_:1})]),title:fe(()=>[...o[2]||(o[2]=[qe("Images",-1)])]),_:1},8,["isMobile"]),ue(Zd,{isMobile:w(n),index:"/options"},{icon:fe(()=>[ue(w(Ne),null,{default:fe(()=>[ue(w(HA))]),_:1})]),title:fe(()=>[...o[3]||(o[3]=[qe("Options",-1)])]),_:1},8,["isMobile"])]),_:1},8,["default-active","ellipsis","class"])],2),ie("div",{class:se({view:!w(n)})},[ue(w(uw))],2),ue(qG)],64))}});const QG=_n(JG,[["__scopeId","data-v-8ed673e3"]]);const Yg=bk(QG);Yg.use(Ck());Yg.use(dl);Yg.mount("#app");dl.replace("/");window.addEventListener("beforeunload",e=>{pn().generating&&(e.preventDefault(),e.returnValue="")});const eK={key:1,class:"image-action"},tK=we({__name:"CustomImage",props:{imageData:{}},setup(e){const t=e,n=Kt(),r=re(null);Jj(r,n.toggleMultiSelect,{modifiers:{prevent:!0}});const i=re(!1);vV(r,([{isIntersecting:g}])=>{g&&(i.value=g)},{rootMargin:"500px"});const l=V(()=>n.selected.includes(t.imageData.id));return(g,o)=>(j(),ae("div",{class:"relative",ref_key:"containerRef",ref:r},[i.value?(j(),me(w(lg),{key:0,class:"thumbnail",src:e.imageData.image,onClick:o[0]||(o[0]=a=>w(n).activeModal=e.imageData.id),fit:"cover",loading:"lazy",style:He(`${l.value&&"opacity: 0.5"}`)},null,8,["src","style"])):ye("",!0),i.value?(j(),ae("div",eK,[e.imageData.starred?(j(),me(w(Ne),{key:0,class:"starred-icon",size:35,color:"var(--el-color-warning)"},{default:fe(()=>[ue(w(gw))]),_:1})):ye("",!0),w(n).multiSelect?(j(),ae("div",{key:1,class:"select-container",onClick:o[1]||(o[1]=a=>w(n).toggleSelection(e.imageData.id))},[ue(w(Ne),{class:"select-icon",size:35,color:`rgba(255, 255, 255, ${l.value?"1":"0.5"})`},{default:fe(()=>[l.value?ye("",!0):(j(),me(w(nu),{key:0})),l.value?(j(),me(w(fw),{key:1})):ye("",!0)]),_:1},8,["color"])])):ye("",!0)])):ye("",!0)],512))}});const m1=_n(tK,[["__scopeId","data-v-2920607f"]]);function nK({mobileWidth:e=768,hideAfterDistanceFromTop:t=100,hideAfterScroll:n=100}={}){const{width:r}=tC(),i=V(()=>r.value<=e),l=re(!0),{y:g}=pV(window);let o=g.value,a=0;return ke(g,c=>{if(!i.value)return;const p=c-o;if(o=c,p>0&&c>t){a+=p,a>=n&&(l.value=!1,a=0);return}p<0&&(a=0,l.value=!0)}),{isVisible:l,isMobile:i}}const rK={},iK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"};function aK(e,t){return j(),ae("svg",iK,[...t[0]||(t[0]=[ie("path",{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-696 72h136v656H184V184zm656 656H384V384h456v456zM384 320V184h456v136H384z",fill:"currentColor"},null,-1)])])}const oK=_n(rK,[["render",aK]]),sK={class:"options"},lK=["onClick"],uK=["onClick"],cK=["onClick"],fK={key:1,class:"center-both",style:{gap:"12px"}},dK={key:2},hK={key:0},pK={key:0,style:{display:"flex",gap:"8px"}},vK={key:1,class:"images"},gK={key:1},mK=we({__name:"ImagesView",setup(e){const{width:t}=tC(),{isVisible:n,isMobile:r}=nK(),i=eo(),l=Zt(),g=Kt();function o(){g.selected=g.selected.filter(d=>!i.currentOutputs.map(v=>v.id).includes(d)),g.selected=[...g.selected,...i.currentOutputs.map(d=>d.id)],g.multiSelect=!0}async function a(){const d=await Vt.outputs.toCollection().primaryKeys();g.selected=d,g.multiSelect=!0}function c(){g.selected=g.selected.filter(d=>!i.currentOutputs.map(v=>v.id).includes(d)),g.selected.length===0&&(g.multiSelect=!1)}function p(){g.selected=[],g.multiSelect=!1}const u=()=>{YS.confirm(`This action will permanently delete ${g.selected.length} images. Continue?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{i.deleteMultipleOutputs(g.selected)})};Xy(["a","A","ArrowLeft"],g.openModalToLeft),Xy(["d","D","ArrowRight"],g.openModalToRight);async function f(){jx(g.selected)}const s=V(()=>{let d=2;t.value>1440?d=6:t.value>1280?d=5:t.value>768?d=4:t.value>480&&(d=3);const v=[];for(let h=0;h<d;h++){const m=[];for(let y=h;y<i.currentOutputs.length;y+=d)m.push(i.currentOutputs[y]);v.push(m)}return v});return(d,v)=>(j(),ae(Ve,null,[ie("div",{class:se(["images-top-bar",{"mobile-hidden":w(r)&&!w(n)}])},[ie("div",sK,[ue(w(ju),{placement:"bottom",title:"Sort By",trigger:"click",width:200,transition:"none","hide-after":0},{reference:fe(()=>[ue(w(vt),{class:"btn-select"},{default:fe(()=>[ue(w(Ne),{size:16},{default:fe(()=>[ue(w(NA))]),_:1})]),_:1})]),default:fe(()=>[(j(),ae(Ve,null,Bt(["Newest","Oldest"],h=>ie("div",{key:h,onClick:()=>w(i).sortBy=h,class:se(`el-select-dropdown__item ${w(i).sortBy===h?"selected":""}`)},Ae(h),11,lK)),64))]),_:1}),ue(w(ju),{placement:"bottom",title:"Filter By",trigger:"click",width:240,transition:"none","hide-after":0},{reference:fe(()=>[ue(w(vt),{class:"btn-select"},{default:fe(()=>[ue(w(Ne),{size:16},{default:fe(()=>[ue(w(uA))]),_:1})]),_:1})]),default:fe(()=>[(j(),ae(Ve,null,Bt(["all","favourited","unfavourited","unrated"],h=>ie("div",{key:h,onClick:()=>w(i).filterBy=h,class:se(`el-select-dropdown__item ${w(i).filterBy===h?"selected":""}`)},Ae(w(i).filterBy===h?"Showing":"Show")+" "+Ae(h),11,uK)),64))]),_:1}),ue(w(ju),{placement:"bottom",title:"Image Layout",trigger:"click",width:240,transition:"none","hide-after":0},{reference:fe(()=>[ue(w(vt),{class:"btn-select"},{default:fe(()=>[ue(w(Ne),{size:16},{default:fe(()=>[ue(oK)]),_:1})]),_:1})]),default:fe(()=>[(j(),ae(Ve,null,Bt([{label:"Square Grid",value:"grid"},{label:"Dynamic Layout",value:"dynamic"}],h=>ie("div",{key:h.value,onClick:()=>w(i).currentLayout=h.value,class:se(`el-select-dropdown__item ${w(i).currentLayout===h.value?"selected":""}`)},Ae(h.label),11,cK)),64))]),_:1}),ue(w(ju),{placement:"bottom",title:"Selection",trigger:"click",width:240,transition:"none","hide-after":0},{reference:fe(()=>[ue(w(vt),{class:"btn-select"},{default:fe(()=>[ue(w(Ne),{size:16},{default:fe(()=>[w(g).multiSelect?(j(),me(w(fw),{key:0})):(j(),me(w(nu),{key:1}))]),_:1})]),_:1})]),default:fe(()=>[w(g).multiSelect?(j(),ae("div",{key:0,class:"el-select-dropdown__item selected",onClick:v[0]||(v[0]=(...h)=>w(g).toggleMultiSelect&&w(g).toggleMultiSelect(...h))},"Disable multi-select")):(j(),ae("div",{key:1,class:"el-select-dropdown__item",onClick:v[1]||(v[1]=(...h)=>w(g).toggleMultiSelect&&w(g).toggleMultiSelect(...h))},"Enable multi-select")),w(g).selected.length>0?(j(),ae("div",{key:2,class:"el-select-dropdown__item selected",onClick:p},"Deselect All")):(j(),ae("div",{key:3,class:"el-select-dropdown__item",onClick:a},"Select All")),w(g).selected.every(h=>!w(i).currentOutputs.map(m=>m.id).includes(h))?(j(),ae("div",{key:5,class:"el-select-dropdown__item",onClick:o},"Select Page")):(j(),ae("div",{key:4,class:"el-select-dropdown__item selected",onClick:c},"Deselect Page"))]),_:1})]),w(l).pageless==="Disabled"?(j(),me(w(Tz),{key:0,layout:"prev, pager, next",total:w(i).outputsLength,"page-size":w(l).pageSize,"current-page":w(i).currentPage,"onUpdate:currentPage":v[2]||(v[2]=h=>w(i).currentPage=h),"hide-on-single-page":""},null,8,["total","page-size","current-page"])):ye("",!0),w(g).multiSelect?(j(),ae("div",fK,[ie("div",null,Ae(w(g).selected.length)+" selected",1),ue(w(vt),{type:"danger",onClick:u,icon:w(Of),plain:""},{default:fe(()=>[...v[3]||(v[3]=[qe("Delete",-1)])]),_:1},8,["icon"]),ue(w(vt),{type:"success",onClick:f,icon:w(Cl),plain:"",style:{margin:"0"}},{default:fe(()=>[...v[4]||(v[4]=[qe("Download",-1)])]),_:1},8,["icon"])])):(j(),ae("div",dK,[...v[5]||(v[5]=[ie("em",{style:{"font-size":"14px"}},"(long press to select multiple images)",-1)])]))],2),w(i).outputsLength!=0?(j(),ae("div",hK,[w(i).currentLayout==="dynamic"?(j(),ae("div",pK,[(j(!0),ae(Ve,null,Bt(s.value,(h,m)=>(j(),ae("div",{key:m,style:{flex:"1 1 0%"}},[(j(!0),ae(Ve,null,Bt(h,y=>(j(),me(m1,{key:y.id,"image-data":y,style:{"margin-bottom":"8px"}},null,8,["image-data"]))),128))]))),128))])):ye("",!0),w(i).currentLayout==="grid"?(j(),ae("div",vK,[(j(!0),ae(Ve,null,Bt(w(i).currentOutputs,h=>(j(),me(m1,{key:h.id,"image-data":h,style:{width:"200px",height:"200px"}},null,8,["image-data"]))),128))])):ye("",!0)])):ye("",!0),w(i).outputsLength==0?(j(),ae("div",gK,[ue(w(IB),{description:"No Images Found"})])):ye("",!0)],64))}});const yK=_n(mK,[["__scopeId","data-v-b9913ae1"]]),bK=Object.freeze(Object.defineProperty({__proto__:null,default:yK},Symbol.toStringTag,{value:"Module"}));const Eo=we({__name:"FormRadio",props:{label:{},modelValue:{},prop:{},useBoolean:{type:Boolean},options:{},disabled:{type:Boolean},info:{},labelStyle:{},change:{type:Function}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t;function i(g){if(n.useBoolean&&g==="Enabled"?r("update:modelValue",!0):n.useBoolean&&g==="Disabled"?r("update:modelValue",!1):r("update:modelValue",g),!!n.change)return n.useBoolean&&g==="Enabled"?n.change(!0):n.useBoolean&&g==="Disabled"?n.change(!1):n.change(g)}const l=V(()=>n.useBoolean?n.modelValue===!0?"Enabled":n.modelValue===!1?"Disabled":n.modelValue:n.modelValue);return(g,o)=>(j(),me(w(sa),{prop:e.prop},{label:fe(()=>[ue(gu,{info:e.info,"label-style":e.labelStyle},{default:fe(()=>[xe(g.$slots,"label",{},()=>[qe(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:fe(()=>[ue(w(WL),{disabled:e.disabled,"model-value":l.value,onChange:i},{default:fe(()=>[(j(!0),ae(Ve,null,Bt(e.options,a=>(j(),me(w(GL),{key:a,label:a},null,8,["label"]))),128))]),_:1},8,["disabled","model-value"]),xe(g.$slots,"inline")]),_:3},8,["prop"]))}}),_K=we({__name:"OptionsView",setup(e){const t=Zt(),n=eo(),r=pn(),i=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],l=re([]),g=re(),o=re(!1),a=re(0);async function c(u){n.importFromZip(u),g.value.clearFiles()}async function p(){da({message:`Downloading ${n.outputsLength} image(s)... (this may take a while)`,type:"info"}),o.value=!0,a.value=0;const u=await Vt.outputs.toCollection().primaryKeys();await jx(u,!1,()=>{a.value++}),o.value=!1,a.value=0}return(u,f)=>(j(),ae(Ve,null,[f[15]||(f[15]=ie("h1",null,"Options",-1)),ue(w(sg),{"label-position":"top",model:w(t).options,onSubmit:f[9]||(f[9]=Qe(()=>{},["prevent"]))},{default:fe(()=>[ue(w(O$),{type:"border-card",style:{"min-height":"50vh"}},{default:fe(()=>[ue(w(jd),{label:"\u{1F5A8}\uFE0F Generation"},{default:fe(()=>[f[10]||(f[10]=ie("h2",null,"Generation Options",-1)),ue(w(sa),{label:"Base URL"},{default:fe(()=>[ue(w(gs),{class:"apikey",prop:"baseURL",modelValue:w(t).baseURL,"onUpdate:modelValue":f[0]||(f[0]=s=>w(t).baseURL=s)},null,8,["modelValue"])]),_:1}),f[11]||(f[11]=ie("h3",null,"Parameter Controls",-1)),(j(!0),ae(Ve,null,Bt(w(r).multiSelect,(s,d)=>{var v;return j(),ae("div",{key:d},[ue(Eo,{label:s.name,prop:"pageless",modelValue:s.state,"onUpdate:modelValue":h=>s.state=h,options:(v=s.allowedStates)!=null?v:[]},null,8,["label","modelValue","onUpdate:modelValue","options"])])}),128)),ue(Eo,{label:"Allow Larger Params",prop:"pageless",modelValue:w(t).allowLargerParams,"onUpdate:modelValue":f[1]||(f[1]=s=>w(t).allowLargerParams=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),ue(Eo,{label:"Video Gen: Request AVI download",prop:"pageless",modelValue:w(t).alsoRequestAvi,"onUpdate:modelValue":f[2]||(f[2]=s=>w(t).alsoRequestAvi=s),options:["Enabled","Disabled"]},null,8,["modelValue"])]),_:1}),ue(w(jd),{label:"\u{1F4F7} Images"},{default:fe(()=>[f[13]||(f[13]=ie("h2",null,"Image Options",-1)),ue(Zn,{label:"Images Per Page",prop:"pageSize",modelValue:w(t).pageSize,"onUpdate:modelValue":f[3]||(f[3]=s=>w(t).pageSize=s),min:10,max:50,step:5,disabled:w(t).pageless==="Enabled"},null,8,["modelValue","disabled"]),ue(Eo,{label:"Pageless Format",prop:"pageless",modelValue:w(t).pageless,"onUpdate:modelValue":f[4]||(f[4]=s=>w(t).pageless=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),ue(Eo,{label:"Carousel Auto Cycle",prop:"autoCarousel",modelValue:w(t).autoCarousel,"onUpdate:modelValue":f[5]||(f[5]=s=>w(t).autoCarousel=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),ue(Eo,{label:"Image Download Format",prop:"downloadType",modelValue:w(t).imageDownloadType,"onUpdate:modelValue":f[6]||(f[6]=s=>w(t).imageDownloadType=s),options:["PNG","JPG","WEBP","GIF"]},null,8,["modelValue"]),ue(w(sa),{label:"Export Images (ZIP File)"},{default:fe(()=>[o.value?(j(),me(w(vt),{key:1,icon:w(Cl),disabled:""},{default:fe(()=>[qe("Downloading... ("+Ae(a.value)+" / "+Ae(w(n).outputsLength)+" image(s))",1)]),_:1},8,["icon"])):(j(),me(w(vt),{key:0,icon:w(Cl),onClick:f[7]||(f[7]=s=>p())},{default:fe(()=>[qe("Download "+Ae(w(n).outputsLength)+" image(s)",1)]),_:1},8,["icon"]))]),_:1}),ue(w(sa),{label:"Import Images (ZIP File)"},{default:fe(()=>[ue(w(hg),{drag:"",ref_key:"upload",ref:g,"auto-upload":!1,onChange:c,"file-list":l.value,limit:1,multiple:""},{default:fe(()=>[ue(w(Ne),{size:100},{default:fe(()=>[ue(w(mv))]),_:1}),f[12]||(f[12]=ie("div",null,[qe("Drop file here OR "),ie("em",null,"click to upload")],-1))]),_:1},8,["file-list"])]),_:1})]),_:1}),ue(w(jd),{label:"\u2699\uFE0F General"},{default:fe(()=>[f[14]||(f[14]=ie("h2",null,"General Options",-1)),ue(Sc,{label:"Color Scheme",prop:"colorScheme",modelValue:w(t).options.colorMode,"onUpdate:modelValue":f[8]||(f[8]=s=>w(t).options.colorMode=s),options:i},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])],64))}});const wK=_n(_K,[["__scopeId","data-v-0a002ec9"]]),SK=Object.freeze(Object.defineProperty({__proto__:null,default:wK},Symbol.toStringTag,{value:"Module"}));</script>
<style rel="stylesheet">:root{--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary-rgb:64,158,255;--el-color-success-rgb:103,194,58;--el-color-warning-rgb:230,162,60;--el-color-danger-rgb:245,108,108;--el-color-error-rgb:245,108,108;--el-color-info-rgb:144,147,153;--el-font-size-extra-large:20px;--el-font-size-large:18px;--el-font-size-medium:16px;--el-font-size-base:14px;--el-font-size-small:13px;--el-font-size-extra-small:12px;--el-font-family:"Helvetica Neue",Helvetica,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","\5fae\8f6f\96c5\9ed1",Arial,sans-serif;--el-font-weight-primary:500;--el-font-line-height-primary:24px;--el-index-normal:1;--el-index-top:1000;--el-index-popper:2000;--el-border-radius-base:4px;--el-border-radius-small:2px;--el-border-radius-round:20px;--el-border-radius-circle:100%;--el-transition-duration:.3s;--el-transition-duration-fast:.2s;--el-transition-function-ease-in-out-bezier:cubic-bezier(.645,.045,.355,1);--el-transition-function-fast-bezier:cubic-bezier(.23,1,.32,1);--el-transition-all:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);--el-transition-fade:opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-md-fade:transform var(--el-transition-duration) var(--el-transition-function-fast-bezier),opacity var(--el-transition-duration) var(--el-transition-function-fast-bezier);--el-transition-fade-linear:opacity var(--el-transition-duration-fast) linear;--el-transition-border:border-color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-box-shadow:box-shadow var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-transition-color:color var(--el-transition-duration-fast) var(--el-transition-function-ease-in-out-bezier);--el-component-size-large:40px;--el-component-size:32px;--el-component-size-small:24px;color-scheme:light;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(121,187,255);--el-color-primary-light-5:rgb(160,207,255);--el-color-primary-light-7:rgb(198,226,255);--el-color-primary-light-8:rgb(217,236,255);--el-color-primary-light-9:rgb(236,245,255);--el-color-primary-dark-2:rgb(51,126,204);--el-color-success:#67c23a;--el-color-success-light-3:rgb(149,212,117);--el-color-success-light-5:rgb(179,225,157);--el-color-success-light-7:rgb(209,237,196);--el-color-success-light-8:rgb(225,243,216);--el-color-success-light-9:rgb(240,249,235);--el-color-success-dark-2:rgb(82,155,46);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(238,190,119);--el-color-warning-light-5:rgb(243,209,158);--el-color-warning-light-7:rgb(248,227,197);--el-color-warning-light-8:rgb(250,236,216);--el-color-warning-light-9:rgb(253,246,236);--el-color-warning-dark-2:rgb(184,130,48);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(248,152,152);--el-color-danger-light-5:rgb(250,182,182);--el-color-danger-light-7:rgb(252,211,211);--el-color-danger-light-8:rgb(253,226,226);--el-color-danger-light-9:rgb(254,240,240);--el-color-danger-dark-2:rgb(196,86,86);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(248,152,152);--el-color-error-light-5:rgb(250,182,182);--el-color-error-light-7:rgb(252,211,211);--el-color-error-light-8:rgb(253,226,226);--el-color-error-light-9:rgb(254,240,240);--el-color-error-dark-2:rgb(196,86,86);--el-color-info:#909399;--el-color-info-light-3:rgb(177,179,184);--el-color-info-light-5:rgb(200,201,204);--el-color-info-light-7:rgb(222,223,224);--el-color-info-light-8:rgb(233,233,235);--el-color-info-light-9:rgb(244,244,245);--el-color-info-dark-2:rgb(115,118,122);--el-bg-color:#ffffff;--el-bg-color-page:#f2f3f5;--el-bg-color-overlay:#ffffff;--el-text-color-primary:#303133;--el-text-color-regular:#606266;--el-text-color-secondary:#909399;--el-text-color-placeholder:#a8abb2;--el-text-color-disabled:#c0c4cc;--el-border-color:#dcdfe6;--el-border-color-light:#e4e7ed;--el-border-color-lighter:#ebeef5;--el-border-color-extra-light:#f2f6fc;--el-border-color-dark:#d4d7de;--el-border-color-darker:#cdd0d6;--el-fill-color:#f0f2f5;--el-fill-color-light:#f5f7fa;--el-fill-color-lighter:#fafafa;--el-fill-color-extra-light:#fafcff;--el-fill-color-dark:#ebedf0;--el-fill-color-darker:#e6e8eb;--el-fill-color-blank:#ffffff;--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.04),0px 8px 20px rgba(0,0,0,.08);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.12);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.12);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.08),0px 12px 32px rgba(0,0,0,.12),0px 8px 16px -8px rgba(0,0,0,.16);--el-disabled-bg-color:var(--el-fill-color-light);--el-disabled-text-color:var(--el-text-color-placeholder);--el-disabled-border-color:var(--el-border-color-light);--el-overlay-color:rgba(0,0,0,.8);--el-overlay-color-light:rgba(0,0,0,.7);--el-overlay-color-lighter:rgba(0,0,0,.5);--el-mask-color:rgba(255,255,255,.9);--el-mask-color-extra-light:rgba(255,255,255,.3);--el-border-width:1px;--el-border-style:solid;--el-border-color-hover:var(--el-text-color-disabled);--el-border:var(--el-border-width) var(--el-border-style) var(--el-border-color);--el-svg-monochrome-grey:var(--el-border-color)}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.el-icon{--color:inherit;align-items:center;color:var(--color);display:inline-flex;fill:currentColor;font-size:inherit;height:1em;justify-content:center;line-height:1em;position:relative;width:1em}.el-icon.is-loading{animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.fade-in-linear-enter-active,.fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.fade-in-linear-enter-from,.fade-in-linear-leave-to{opacity:0}.el-fade-in-linear-enter-active,.el-fade-in-linear-leave-active{transition:var(--el-transition-fade-linear)}.el-fade-in-linear-enter-from,.el-fade-in-linear-leave-to{opacity:0}.el-fade-in-enter-active,.el-fade-in-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-fade-in-enter-from,.el-fade-in-leave-active{opacity:0}.el-zoom-in-center-enter-active,.el-zoom-in-center-leave-active{transition:all var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}.el-zoom-in-center-enter-from,.el-zoom-in-center-leave-active{opacity:0;transform:scaleX(0)}.el-zoom-in-top-enter-active,.el-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transform-origin:center top;transition:var(--el-transition-md-fade)}.el-zoom-in-top-enter-active[data-popper-placement^=top],.el-zoom-in-top-leave-active[data-popper-placement^=top]{transform-origin:center bottom}.el-zoom-in-top-enter-from,.el-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-bottom-enter-active,.el-zoom-in-bottom-leave-active{opacity:1;transform:scaleY(1);transform-origin:center bottom;transition:var(--el-transition-md-fade)}.el-zoom-in-bottom-enter-from,.el-zoom-in-bottom-leave-active{opacity:0;transform:scaleY(0)}.el-zoom-in-left-enter-active,.el-zoom-in-left-leave-active{opacity:1;transform:scale(1);transform-origin:top left;transition:var(--el-transition-md-fade)}.el-zoom-in-left-enter-from,.el-zoom-in-left-leave-active{opacity:0;transform:scale(.45)}.collapse-transition{transition:var(--el-transition-duration) height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.el-collapse-transition-enter-active,.el-collapse-transition-leave-active{transition:var(--el-transition-duration) max-height ease-in-out,var(--el-transition-duration) padding-top ease-in-out,var(--el-transition-duration) padding-bottom ease-in-out}.horizontal-collapse-transition{transition:var(--el-transition-duration) width ease-in-out,var(--el-transition-duration) padding-left ease-in-out,var(--el-transition-duration) padding-right ease-in-out}.el-list-enter-active,.el-list-leave-active{transition:all 1s}.el-list-enter-from,.el-list-leave-to{opacity:0;transform:translateY(-30px)}.el-list-leave-active{position:absolute!important}.el-opacity-transition{transition:opacity var(--el-transition-duration) cubic-bezier(.55,0,.1,1)}:root{--el-menu-active-color:var(--el-color-primary);--el-menu-text-color:var(--el-text-color-primary);--el-menu-hover-text-color:var(--el-color-primary);--el-menu-bg-color:var(--el-fill-color-blank);--el-menu-hover-bg-color:var(--el-color-primary-light-9);--el-menu-item-height:56px;--el-menu-sub-item-height:calc(var(--el-menu-item-height) - 6px);--el-menu-horizontal-height:60px;--el-menu-horizontal-sub-item-height:36px;--el-menu-item-font-size:var(--el-font-size-base);--el-menu-item-hover-fill:var(--el-color-primary-light-9);--el-menu-border-color:var(--el-border-color);--el-menu-base-level-padding:20px;--el-menu-level-padding:20px;--el-menu-icon-width:24px}.el-menu{background-color:var(--el-menu-bg-color);border-right:1px solid var(--el-menu-border-color);box-sizing:border-box;list-style:none;margin:0;padding-left:0;position:relative}.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-menu-item-group__title,.el-menu--vertical:not(.el-menu--collapse):not(.el-menu--popup-container) .el-sub-menu__title{padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level)*var(--el-menu-level-padding));white-space:nowrap}.el-menu:not(.el-menu--collapse) .el-sub-menu__title{padding-right:calc(var(--el-menu-base-level-padding) + var(--el-menu-icon-width))}.el-menu--horizontal{border-right:none;display:flex;flex-wrap:nowrap;height:var(--el-menu-horizontal-height)}.el-menu--horizontal.el-menu--popup-container{height:unset}.el-menu--horizontal.el-menu{border-bottom:1px solid var(--el-menu-border-color)}.el-menu--horizontal>.el-menu-item{align-items:center;border-bottom:2px solid transparent;color:var(--el-menu-text-color);display:inline-flex;height:100%;justify-content:center;margin:0}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:none}.el-menu--horizontal>.el-sub-menu:hover .el-sub-menu__title{color:var(--el-menu-hover-text-color)}.el-menu--horizontal>.el-sub-menu.is-active .el-sub-menu__title{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title{border-bottom:2px solid transparent;color:var(--el-menu-text-color);height:100%}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-menu-bg-color)}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{align-items:center;background-color:var(--el-menu-bg-color);color:var(--el-menu-text-color);display:flex;height:var(--el-menu-horizontal-sub-item-height);line-height:var(--el-menu-horizontal-sub-item-height);padding:0 10px}.el-menu--horizontal .el-menu .el-sub-menu__title{padding-right:40px}.el-menu--horizontal .el-menu .el-menu-item.is-active,.el-menu--horizontal .el-menu .el-menu-item.is-active:hover,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title,.el-menu--horizontal .el-menu .el-sub-menu.is-active>.el-sub-menu__title:hover{color:var(--el-menu-active-color)}.el-menu--horizontal .el-menu-item:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item:not(.is-disabled):hover{background-color:var(--el-menu-hover-bg-color);color:var(--el-menu-active-color,var(--el-menu-hover-text-color));outline:none}.el-menu--horizontal>.el-menu-item.is-active{border-bottom:2px solid var(--el-menu-active-color);color:var(--el-menu-active-color)!important}.el-menu--collapse{width:calc(var(--el-menu-icon-width) + var(--el-menu-base-level-padding)*2)}.el-menu--collapse>.el-menu-item [class^=el-icon],.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title [class^=el-icon],.el-menu--collapse>.el-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu--collapse>.el-menu-item .el-sub-menu__icon-arrow,.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title .el-sub-menu__icon-arrow{display:none}.el-menu--collapse>.el-menu-item-group>ul>.el-sub-menu>.el-sub-menu__title>span,.el-menu--collapse>.el-menu-item>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.el-menu--collapse>.el-menu-item.is-active i{color:inherit}.el-menu--collapse .el-menu .el-sub-menu{min-width:200px}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{border:none;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light);min-width:200px;padding:5px 0;z-index:100}.el-menu .el-icon{flex-shrink:0}.el-menu-item{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:none}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-menu-item [class^=el-icon]{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-menu-item.is-active{color:var(--el-menu-active-color)}.el-menu-item.is-active i{color:inherit}.el-menu-item .el-menu-tooltip__trigger{align-items:center;box-sizing:border-box;display:inline-flex;height:100%;left:0;padding:0 var(--el-menu-base-level-padding);position:absolute;top:0;width:100%}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{align-items:center;box-sizing:border-box;color:var(--el-menu-text-color);cursor:pointer;display:flex;font-size:var(--el-menu-item-font-size);height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);list-style:none;padding:0 var(--el-menu-base-level-padding);position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);white-space:nowrap}.el-sub-menu__title *{vertical-align:bottom}.el-sub-menu__title i{color:inherit}.el-sub-menu__title:focus,.el-sub-menu__title:hover{outline:none}.el-sub-menu__title.is-disabled{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu__title:hover{background-color:var(--el-menu-hover-bg-color)}.el-sub-menu .el-menu{border:none}.el-sub-menu .el-menu-item{height:var(--el-menu-sub-item-height);line-height:var(--el-menu-sub-item-height)}.el-sub-menu.el-sub-menu__hide-arrow .el-sub-menu__title{padding-right:var(--el-menu-base-level-padding)}.el-sub-menu__hide-arrow .el-sub-menu__icon-arrow{display:none!important}.el-sub-menu.is-active .el-sub-menu__title{border-bottom-color:var(--el-menu-active-color)}.el-sub-menu.is-disabled .el-menu-item,.el-sub-menu.is-disabled .el-sub-menu__title{background:none!important;cursor:not-allowed;opacity:.25}.el-sub-menu .el-icon{font-size:18px;margin-right:5px;text-align:center;vertical-align:middle;width:var(--el-menu-icon-width)}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{font-size:12px;margin-right:0;margin-top:-6px;position:absolute;right:var(--el-menu-base-level-padding);top:50%;transition:transform var(--el-transition-duration);width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{color:var(--el-text-color-secondary);font-size:12px;line-height:normal;padding:7px 0 7px var(--el-menu-base-level-padding)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{opacity:0;transition:var(--el-transition-duration-fast)}.el-menu,.el-menu--popup-container,.el-popper{outline:none}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius,4px);--el-popper-bg-color-light:var(--el-bg-color-overlay);--el-popper-bg-color-dark:var(--el-text-color-primary);border-radius:var(--el-popper-border-radius);font-size:12px;line-height:20px;min-width:10px;overflow-wrap:break-word;padding:5px 11px;position:absolute;visibility:visible;word-break:normal;z-index:2000}.el-popper.is-dark{--el-fill-color-blank:var(--el-popper-bg-color-dark);color:var(--el-bg-color)}.el-popper.is-dark,.el-popper.is-dark>.el-popper__arrow:before{background:var(--el-popper-bg-color-dark);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark>.el-popper__arrow:before{right:0}.el-popper.is-light{--el-fill-color-blank:var(--el-popper-bg-color-light)}.el-popper.is-light,.el-popper.is-light>.el-popper__arrow:before{background:var(--el-popper-bg-color-light);border:1px solid var(--el-border-color-light)}.el-popper.is-light>.el-popper__arrow:before{right:0}.el-popper.is-pure{padding:0}.el-popper__arrow,.el-popper__arrow:before{height:10px;position:absolute;width:10px;z-index:-1}.el-popper__arrow:before{background:var(--el-text-color-primary);box-sizing:border-box;content:" ";transform:rotate(45deg)}.el-popper[data-popper-placement^=top]>.el-popper__arrow{bottom:-5px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-bottom-right-radius:2px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow{top:-5px}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-top-left-radius:2px}.el-popper[data-popper-placement^=left]>.el-popper__arrow{right:-5px}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-top-right-radius:2px}.el-popper[data-popper-placement^=right]>.el-popper__arrow{left:-5px}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-bottom-left-radius:2px}.el-popper[data-popper-placement^=top]>.el-popper__arrow:before{border-left-color:transparent!important;border-top-color:transparent!important}.el-popper[data-popper-placement^=bottom]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-right-color:transparent!important}.el-popper[data-popper-placement^=left]>.el-popper__arrow:before{border-bottom-color:transparent!important;border-left-color:transparent!important}.el-popper[data-popper-placement^=right]>.el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-badge{--el-badge-bg-color:var(--el-color-danger);--el-badge-radius:10px;--el-badge-font-size:12px;--el-badge-padding:6px;--el-badge-size:18px;display:inline-block;position:relative;vertical-align:middle;width:-moz-fit-content;width:fit-content}.el-badge__content{align-items:center;background-color:var(--el-badge-bg-color);border:1px solid var(--el-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;font-size:var(--el-badge-font-size);height:var(--el-badge-size);justify-content:center;padding:0 var(--el-badge-padding);white-space:nowrap}.el-badge__content.is-fixed{position:absolute;right:calc(1px + var(--el-badge-size)/2);top:0;transform:translateY(-50%) translate(100%);z-index:var(--el-index-normal)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{border-radius:50%;height:8px;padding:0;right:0;width:8px}.el-badge__content.is-hide-zero{display:none}.el-badge__content--primary{background-color:var(--el-color-primary)}.el-badge__content--success{background-color:var(--el-color-success)}.el-badge__content--warning{background-color:var(--el-color-warning)}.el-badge__content--info{background-color:var(--el-color-info)}.el-badge__content--danger{background-color:var(--el-color-danger)}.el-message{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-border-color-lighter);--el-message-padding:11px 15px;--el-message-close-size:16px;--el-message-close-icon-color:var(--el-text-color-placeholder);--el-message-close-hover-color:var(--el-text-color-secondary);align-items:center;background-color:var(--el-message-bg-color);border-color:var(--el-message-border-color);border-radius:var(--el-border-radius-base);border-style:var(--el-border-style);border-width:var(--el-border-width);box-sizing:border-box;display:flex;gap:8px;max-width:calc(100% - 32px);padding:var(--el-message-padding);position:fixed;transition:opacity var(--el-transition-duration),transform .4s,top .4s,bottom .4s;width:-moz-max-content;width:max-content}.el-message.is-left{left:16px}.el-message.is-right{right:16px}.el-message.is-center{left:50%;transform:translate(-50%)}.el-message.is-plain{background-color:var(--el-bg-color-overlay);border-color:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-message p{margin:0}.el-message--primary{--el-message-bg-color:var(--el-color-primary-light-9);--el-message-border-color:var(--el-color-primary-light-8);--el-message-text-color:var(--el-color-primary)}.el-message--primary .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--primary{color:var(--el-message-text-color)}.el-message--success{--el-message-bg-color:var(--el-color-success-light-9);--el-message-border-color:var(--el-color-success-light-8);--el-message-text-color:var(--el-color-success)}.el-message--success .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--success{color:var(--el-message-text-color)}.el-message--info{--el-message-bg-color:var(--el-color-info-light-9);--el-message-border-color:var(--el-color-info-light-8);--el-message-text-color:var(--el-color-info)}.el-message--info .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--info{color:var(--el-message-text-color)}.el-message--warning{--el-message-bg-color:var(--el-color-warning-light-9);--el-message-border-color:var(--el-color-warning-light-8);--el-message-text-color:var(--el-color-warning)}.el-message--warning .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--warning{color:var(--el-message-text-color)}.el-message--error{--el-message-bg-color:var(--el-color-error-light-9);--el-message-border-color:var(--el-color-error-light-8);--el-message-text-color:var(--el-color-error)}.el-message--error .el-message__content{color:var(--el-message-text-color);overflow-wrap:break-word}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message .el-message__badge{position:absolute;right:-8px;top:-8px}.el-message__content{font-size:14px;line-height:1;padding:0}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{color:var(--el-message-close-icon-color);cursor:pointer;font-size:var(--el-message-close-size)}.el-message .el-message__closeBtn:focus{outline-width:0}.el-message .el-message__closeBtn:hover{color:var(--el-message-close-hover-color)}.el-message-fade-enter-from,.el-message-fade-leave-to{opacity:0}.el-message-fade-enter-from.is-left,.el-message-fade-enter-from.is-right,.el-message-fade-leave-to.is-left,.el-message-fade-leave-to.is-right{transform:translateY(-100%)}.el-message-fade-enter-from.is-left.is-bottom,.el-message-fade-enter-from.is-right.is-bottom,.el-message-fade-leave-to.is-left.is-bottom,.el-message-fade-leave-to.is-right.is-bottom{transform:translateY(100%)}.el-message-fade-enter-from.is-center,.el-message-fade-leave-to.is-center{transform:translate(-50%,-100%)}.el-message-fade-enter-from.is-center.is-bottom,.el-message-fade-leave-to.is-center.is-bottom{transform:translate(-50%,100%)}.el-dialog{--el-dialog-width:50%;--el-dialog-margin-top:15vh;--el-dialog-bg-color:var(--el-bg-color);--el-dialog-box-shadow:var(--el-box-shadow);--el-dialog-title-font-size:var(--el-font-size-large);--el-dialog-content-font-size:14px;--el-dialog-font-line-height:var(--el-font-line-height-primary);--el-dialog-padding-primary:16px;--el-dialog-border-radius:var(--el-border-radius-base);background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;margin:var(--el-dialog-margin-top,15vh) auto 50px;overflow-wrap:break-word;padding:var(--el-dialog-padding-primary);position:relative;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:none!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;border-radius:0;height:100%;margin-bottom:0;overflow:auto}.el-dialog__wrapper{bottom:0;left:0;margin:0;overflow:auto;position:fixed;right:0;top:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-dialog__header{padding-bottom:var(--el-dialog-padding-primary)}.el-dialog__header.show-close{padding-right:calc(var(--el-dialog-padding-primary) + var(--el-message-close-size, 16px))}.el-dialog__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:48px;outline:none;padding:0;position:absolute;right:0;top:0;width:48px}.el-dialog__headerbtn .el-dialog__close{color:var(--el-color-info);font-size:inherit}.el-dialog__headerbtn:focus .el-dialog__close,.el-dialog__headerbtn:hover .el-dialog__close{color:var(--el-color-primary)}.el-dialog__title{color:var(--el-text-color-primary);font-size:var(--el-dialog-title-font-size);line-height:var(--el-dialog-font-line-height)}.el-dialog__body{color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size)}.el-dialog__footer{box-sizing:border-box;padding-top:var(--el-dialog-padding-primary);text-align:right}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-modal-dialog.is-penetrable{pointer-events:none}.el-modal-dialog.is-penetrable .el-dialog{pointer-events:auto}.el-overlay-dialog{bottom:0;left:0;overflow:auto;position:fixed;right:0;top:0}.el-overlay-dialog.is-closing .el-dialog{pointer-events:none}.dialog-fade-enter-active{animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{animation:dialog-fade-out var(--el-transition-duration)}@keyframes dialog-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes dialog-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-overlay{background-color:var(--el-overlay-color-lighter);bottom:0;height:100%;left:0;overflow:auto;position:fixed;right:0;top:0;z-index:2000}.el-overlay .el-overlay-root{height:0}.el-collapse{--el-collapse-border-color:var(--el-border-color-lighter);--el-collapse-header-height:48px;--el-collapse-header-bg-color:var(--el-fill-color-blank);--el-collapse-header-text-color:var(--el-text-color-primary);--el-collapse-header-font-size:13px;--el-collapse-content-bg-color:var(--el-fill-color-blank);--el-collapse-content-font-size:13px;--el-collapse-content-text-color:var(--el-text-color-primary);border-bottom:1px solid var(--el-collapse-border-color);border-top:1px solid var(--el-collapse-border-color)}.el-collapse-icon-position-left .el-collapse-item__header{gap:8px}.el-collapse-icon-position-left .el-collapse-item__title{order:1}.el-collapse-icon-position-right .el-collapse-item__header{padding-right:8px}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{align-items:center;background-color:var(--el-collapse-header-bg-color);border:none;border-bottom:1px solid var(--el-collapse-border-color);box-sizing:border-box;color:var(--el-collapse-header-text-color);cursor:pointer;display:flex;font-size:var(--el-collapse-header-font-size);font-weight:500;line-height:var(--el-collapse-header-height);min-height:var(--el-collapse-header-height);outline:none;padding:0;transition:border-bottom-color var(--el-transition-duration);width:100%}.el-collapse-item__arrow{font-weight:300;transition:transform var(--el-transition-duration)}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.el-collapse-item__title{flex:auto;text-align:left}.el-collapse-item__header.focusing:focus:not(:hover){color:var(--el-color-primary)}.el-collapse-item__header.is-active{border-bottom-color:transparent}.el-collapse-item__wrap{background-color:var(--el-collapse-content-bg-color);border-bottom:1px solid var(--el-collapse-border-color);box-sizing:border-box;overflow:hidden;will-change:height}.el-collapse-item__content{color:var(--el-collapse-content-text-color);font-size:var(--el-collapse-content-font-size);line-height:1.7692307692;padding-bottom:25px}.el-collapse-item:last-child{margin-bottom:-1px}.el-form{--el-form-label-font-size:var(--el-font-size-base);--el-form-inline-content-width:220px}.el-form--inline .el-form-item{display:inline-flex;margin-right:32px;vertical-align:middle}.el-form--inline.el-form--label-top{display:flex;flex-wrap:wrap}.el-form--inline.el-form--label-top .el-form-item{display:block}.el-button{--el-button-font-weight:var(--el-font-weight-primary);--el-button-border-color:var(--el-border-color);--el-button-bg-color:var(--el-fill-color-blank);--el-button-text-color:var(--el-text-color-regular);--el-button-disabled-text-color:var(--el-disabled-text-color);--el-button-disabled-bg-color:var(--el-fill-color-blank);--el-button-disabled-border-color:var(--el-border-color-light);--el-button-divide-border-color:rgba(255,255,255,.5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-7);--el-button-active-text-color:var(--el-button-hover-text-color);--el-button-active-border-color:var(--el-color-primary);--el-button-active-bg-color:var(--el-button-hover-bg-color);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-hover-link-text-color:var(--el-text-color-secondary);--el-button-active-color:var(--el-text-color-primary);align-items:center;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);box-sizing:border-box;color:var(--el-button-text-color);cursor:pointer;display:inline-flex;font-weight:var(--el-button-font-weight);height:32px;justify-content:center;line-height:1;outline:none;text-align:center;transition:.1s;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-button:hover{background-color:var(--el-button-hover-bg-color);border-color:var(--el-button-hover-border-color);color:var(--el-button-hover-text-color);outline:none}.el-button:active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button>span{align-items:center;display:inline-flex}.el-button+.el-button{margin-left:12px}.el-button{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base)}.el-button,.el-button.is-round{padding:8px 15px}.el-button::-moz-focus-inner{border:0}.el-button [class*=el-icon]+span{margin-left:6px}.el-button [class*=el-icon] svg{vertical-align:bottom}.el-button.is-plain{--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-active{background-color:var(--el-button-active-bg-color);border-color:var(--el-button-active-border-color);color:var(--el-button-active-text-color);outline:none}.el-button.is-disabled,.el-button.is-disabled:hover{background-color:var(--el-button-disabled-bg-color);background-image:none;border-color:var(--el-button-disabled-border-color);color:var(--el-button-disabled-text-color);cursor:not-allowed}.el-button.is-loading{pointer-events:none;position:relative}.el-button.is-loading:before{background-color:var(--el-mask-color-extra-light);border-radius:inherit;bottom:-1px;content:"";left:-1px;pointer-events:none;position:absolute;right:-1px;top:-1px;z-index:1}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-dashed{border-style:dashed;--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-fill-color-blank);--el-button-hover-border-color:var(--el-color-primary)}.el-button.is-circle{border-radius:50%;padding:8px;width:32px}.el-button.is-text{background-color:transparent;border:0 solid transparent;color:var(--el-button-text-color)}.el-button.is-text.is-disabled{background-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-text:not(.is-disabled):hover{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled):focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px;transition:outline-offset 0s,outline 0s}.el-button.is-text:not(.is-disabled):active{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg{background-color:var(--el-fill-color-light)}.el-button.is-text:not(.is-disabled).is-has-bg:hover{background-color:var(--el-fill-color)}.el-button.is-text:not(.is-disabled).is-has-bg:active{background-color:var(--el-fill-color-dark)}.el-button__text--expand{letter-spacing:.3em;margin-right:-.3em}.el-button.is-link{background:transparent;border-color:transparent;color:var(--el-button-text-color);height:auto;padding:2px}.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button.is-link:not(.is-disabled):active,.el-button.is-link:not(.is-disabled):hover{background-color:transparent;border-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color)}.el-button--text{background:transparent;border-color:transparent;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{background-color:transparent!important;border-color:transparent!important;color:var(--el-button-disabled-text-color)}.el-button--text:not(.is-disabled):hover{background-color:transparent;border-color:transparent;color:var(--el-color-primary-light-3)}.el-button--text:not(.is-disabled):active{background-color:transparent;border-color:transparent;color:var(--el-color-primary-dark-2)}.el-button__link--expand{letter-spacing:.3em;margin-right:-.3em}.el-button--primary{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-primary);--el-button-border-color:var(--el-color-primary);--el-button-outline-color:var(--el-color-primary-light-5);--el-button-active-color:var(--el-color-primary-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-primary-light-5);--el-button-hover-bg-color:var(--el-color-primary-light-3);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-bg-color:var(--el-color-primary-dark-2);--el-button-active-border-color:var(--el-color-primary-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-primary-light-5);--el-button-disabled-border-color:var(--el-color-primary-light-5)}.el-button--primary.is-link,.el-button--primary.is-plain,.el-button--primary.is-text{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-primary);--el-button-hover-border-color:var(--el-color-primary);--el-button-active-text-color:var(--el-color-white)}.el-button--primary.is-link.is-disabled,.el-button--primary.is-link.is-disabled:active,.el-button--primary.is-link.is-disabled:focus,.el-button--primary.is-link.is-disabled:hover,.el-button--primary.is-plain.is-disabled,.el-button--primary.is-plain.is-disabled:active,.el-button--primary.is-plain.is-disabled:focus,.el-button--primary.is-plain.is-disabled:hover,.el-button--primary.is-text.is-disabled,.el-button--primary.is-text.is-disabled:active,.el-button--primary.is-text.is-disabled:focus,.el-button--primary.is-text.is-disabled:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8);color:var(--el-color-primary-light-5)}.el-button--primary.is-dashed{--el-button-text-color:var(--el-color-primary);--el-button-bg-color:var(--el-color-primary-light-9);--el-button-border-color:var(--el-color-primary-light-5);--el-button-hover-text-color:var(--el-color-primary);--el-button-hover-bg-color:var(--el-color-primary-light-9);--el-button-hover-border-color:var(--el-color-primary-light-3);--el-button-active-text-color:var(--el-color-primary-dark-2);--el-button-active-bg-color:var(--el-color-primary-light-9);--el-button-active-border-color:var(--el-color-primary-dark-2)}.el-button--primary.is-dashed.is-disabled,.el-button--primary.is-dashed.is-disabled:active,.el-button--primary.is-dashed.is-disabled:focus,.el-button--primary.is-dashed.is-disabled:hover{background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8);color:var(--el-color-primary-light-5)}.el-button--success{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-success);--el-button-border-color:var(--el-color-success);--el-button-outline-color:var(--el-color-success-light-5);--el-button-active-color:var(--el-color-success-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-success-light-5);--el-button-hover-bg-color:var(--el-color-success-light-3);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-bg-color:var(--el-color-success-dark-2);--el-button-active-border-color:var(--el-color-success-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-success-light-5);--el-button-disabled-border-color:var(--el-color-success-light-5)}.el-button--success.is-link,.el-button--success.is-plain,.el-button--success.is-text{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-success);--el-button-hover-border-color:var(--el-color-success);--el-button-active-text-color:var(--el-color-white)}.el-button--success.is-link.is-disabled,.el-button--success.is-link.is-disabled:active,.el-button--success.is-link.is-disabled:focus,.el-button--success.is-link.is-disabled:hover,.el-button--success.is-plain.is-disabled,.el-button--success.is-plain.is-disabled:active,.el-button--success.is-plain.is-disabled:focus,.el-button--success.is-plain.is-disabled:hover,.el-button--success.is-text.is-disabled,.el-button--success.is-text.is-disabled:active,.el-button--success.is-text.is-disabled:focus,.el-button--success.is-text.is-disabled:hover{background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8);color:var(--el-color-success-light-5)}.el-button--success.is-dashed{--el-button-text-color:var(--el-color-success);--el-button-bg-color:var(--el-color-success-light-9);--el-button-border-color:var(--el-color-success-light-5);--el-button-hover-text-color:var(--el-color-success);--el-button-hover-bg-color:var(--el-color-success-light-9);--el-button-hover-border-color:var(--el-color-success-light-3);--el-button-active-text-color:var(--el-color-success-dark-2);--el-button-active-bg-color:var(--el-color-success-light-9);--el-button-active-border-color:var(--el-color-success-dark-2)}.el-button--success.is-dashed.is-disabled,.el-button--success.is-dashed.is-disabled:active,.el-button--success.is-dashed.is-disabled:focus,.el-button--success.is-dashed.is-disabled:hover{background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8);color:var(--el-color-success-light-5)}.el-button--warning{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-warning);--el-button-border-color:var(--el-color-warning);--el-button-outline-color:var(--el-color-warning-light-5);--el-button-active-color:var(--el-color-warning-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-warning-light-5);--el-button-hover-bg-color:var(--el-color-warning-light-3);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-bg-color:var(--el-color-warning-dark-2);--el-button-active-border-color:var(--el-color-warning-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-warning-light-5);--el-button-disabled-border-color:var(--el-color-warning-light-5)}.el-button--warning.is-link,.el-button--warning.is-plain,.el-button--warning.is-text{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-warning);--el-button-hover-border-color:var(--el-color-warning);--el-button-active-text-color:var(--el-color-white)}.el-button--warning.is-link.is-disabled,.el-button--warning.is-link.is-disabled:active,.el-button--warning.is-link.is-disabled:focus,.el-button--warning.is-link.is-disabled:hover,.el-button--warning.is-plain.is-disabled,.el-button--warning.is-plain.is-disabled:active,.el-button--warning.is-plain.is-disabled:focus,.el-button--warning.is-plain.is-disabled:hover,.el-button--warning.is-text.is-disabled,.el-button--warning.is-text.is-disabled:active,.el-button--warning.is-text.is-disabled:focus,.el-button--warning.is-text.is-disabled:hover{background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8);color:var(--el-color-warning-light-5)}.el-button--warning.is-dashed{--el-button-text-color:var(--el-color-warning);--el-button-bg-color:var(--el-color-warning-light-9);--el-button-border-color:var(--el-color-warning-light-5);--el-button-hover-text-color:var(--el-color-warning);--el-button-hover-bg-color:var(--el-color-warning-light-9);--el-button-hover-border-color:var(--el-color-warning-light-3);--el-button-active-text-color:var(--el-color-warning-dark-2);--el-button-active-bg-color:var(--el-color-warning-light-9);--el-button-active-border-color:var(--el-color-warning-dark-2)}.el-button--warning.is-dashed.is-disabled,.el-button--warning.is-dashed.is-disabled:active,.el-button--warning.is-dashed.is-disabled:focus,.el-button--warning.is-dashed.is-disabled:hover{background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8);color:var(--el-color-warning-light-5)}.el-button--danger{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-danger);--el-button-border-color:var(--el-color-danger);--el-button-outline-color:var(--el-color-danger-light-5);--el-button-active-color:var(--el-color-danger-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-danger-light-5);--el-button-hover-bg-color:var(--el-color-danger-light-3);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-bg-color:var(--el-color-danger-dark-2);--el-button-active-border-color:var(--el-color-danger-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-danger-light-5);--el-button-disabled-border-color:var(--el-color-danger-light-5)}.el-button--danger.is-link,.el-button--danger.is-plain,.el-button--danger.is-text{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-danger);--el-button-hover-border-color:var(--el-color-danger);--el-button-active-text-color:var(--el-color-white)}.el-button--danger.is-link.is-disabled,.el-button--danger.is-link.is-disabled:active,.el-button--danger.is-link.is-disabled:focus,.el-button--danger.is-link.is-disabled:hover,.el-button--danger.is-plain.is-disabled,.el-button--danger.is-plain.is-disabled:active,.el-button--danger.is-plain.is-disabled:focus,.el-button--danger.is-plain.is-disabled:hover,.el-button--danger.is-text.is-disabled,.el-button--danger.is-text.is-disabled:active,.el-button--danger.is-text.is-disabled:focus,.el-button--danger.is-text.is-disabled:hover{background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8);color:var(--el-color-danger-light-5)}.el-button--danger.is-dashed{--el-button-text-color:var(--el-color-danger);--el-button-bg-color:var(--el-color-danger-light-9);--el-button-border-color:var(--el-color-danger-light-5);--el-button-hover-text-color:var(--el-color-danger);--el-button-hover-bg-color:var(--el-color-danger-light-9);--el-button-hover-border-color:var(--el-color-danger-light-3);--el-button-active-text-color:var(--el-color-danger-dark-2);--el-button-active-bg-color:var(--el-color-danger-light-9);--el-button-active-border-color:var(--el-color-danger-dark-2)}.el-button--danger.is-dashed.is-disabled,.el-button--danger.is-dashed.is-disabled:active,.el-button--danger.is-dashed.is-disabled:focus,.el-button--danger.is-dashed.is-disabled:hover{background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8);color:var(--el-color-danger-light-5)}.el-button--info{--el-button-text-color:var(--el-color-white);--el-button-bg-color:var(--el-color-info);--el-button-border-color:var(--el-color-info);--el-button-outline-color:var(--el-color-info-light-5);--el-button-active-color:var(--el-color-info-dark-2);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-link-text-color:var(--el-color-info-light-5);--el-button-hover-bg-color:var(--el-color-info-light-3);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-bg-color:var(--el-color-info-dark-2);--el-button-active-border-color:var(--el-color-info-dark-2);--el-button-disabled-text-color:var(--el-color-white);--el-button-disabled-bg-color:var(--el-color-info-light-5);--el-button-disabled-border-color:var(--el-color-info-light-5)}.el-button--info.is-link,.el-button--info.is-plain,.el-button--info.is-text{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-white);--el-button-hover-bg-color:var(--el-color-info);--el-button-hover-border-color:var(--el-color-info);--el-button-active-text-color:var(--el-color-white)}.el-button--info.is-link.is-disabled,.el-button--info.is-link.is-disabled:active,.el-button--info.is-link.is-disabled:focus,.el-button--info.is-link.is-disabled:hover,.el-button--info.is-plain.is-disabled,.el-button--info.is-plain.is-disabled:active,.el-button--info.is-plain.is-disabled:focus,.el-button--info.is-plain.is-disabled:hover,.el-button--info.is-text.is-disabled,.el-button--info.is-text.is-disabled:active,.el-button--info.is-text.is-disabled:focus,.el-button--info.is-text.is-disabled:hover{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);color:var(--el-color-info-light-5)}.el-button--info.is-dashed{--el-button-text-color:var(--el-color-info);--el-button-bg-color:var(--el-color-info-light-9);--el-button-border-color:var(--el-color-info-light-5);--el-button-hover-text-color:var(--el-color-info);--el-button-hover-bg-color:var(--el-color-info-light-9);--el-button-hover-border-color:var(--el-color-info-light-3);--el-button-active-text-color:var(--el-color-info-dark-2);--el-button-active-bg-color:var(--el-color-info-light-9);--el-button-active-border-color:var(--el-color-info-dark-2)}.el-button--info.is-dashed.is-disabled,.el-button--info.is-dashed.is-disabled:active,.el-button--info.is-dashed.is-disabled:focus,.el-button--info.is-dashed.is-disabled:hover{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);color:var(--el-color-info-light-5)}.el-button--large{--el-button-size:40px;height:var(--el-button-size)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large{border-radius:var(--el-border-radius-base);font-size:var(--el-font-size-base);padding:12px 19px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{padding:12px;width:var(--el-button-size)}.el-button--small{--el-button-size:24px;height:var(--el-button-size)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small{border-radius:calc(var(--el-border-radius-base) - 1px);font-size:12px;padding:5px 11px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{padding:5px;width:var(--el-button-size)}.el-card{--el-card-border-color:var(--el-border-color-light);--el-card-border-radius:4px;--el-card-padding:20px;--el-card-bg-color:var(--el-fill-color-blank);background-color:var(--el-card-bg-color);border:1px solid var(--el-card-border-color);border-radius:var(--el-card-border-radius);color:var(--el-text-color-primary);display:flex;flex-direction:column;overflow:hidden;transition:var(--el-transition-duration)}.el-card.is-always-shadow,.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-card__body{flex-grow:1;overflow:auto;padding:var(--el-card-padding)}.el-card__footer{border-top:1px solid var(--el-card-border-color);box-sizing:border-box;padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding)}.el-row{box-sizing:border-box;display:flex;flex-wrap:wrap;position:relative}.el-row.is-justify-center{justify-content:center}.el-row.is-justify-end{justify-content:flex-end}.el-row.is-justify-space-between{justify-content:space-between}.el-row.is-justify-space-around{justify-content:space-around}.el-row.is-justify-space-evenly{justify-content:space-evenly}.el-row.is-align-top{align-items:flex-start}.el-row.is-align-middle{align-items:center}.el-row.is-align-bottom{align-items:flex-end}[class*=el-col-]{box-sizing:border-box}[class*=el-col-].is-guttered{display:block;min-height:1px}.el-col-0{flex:0 0 0%;max-width:0}.el-col-0,.el-col-0.is-guttered{display:none}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{left:0;position:relative}.el-col-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-1,.el-col-1.is-guttered{display:block}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{left:4.1666666667%;position:relative}.el-col-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-2,.el-col-2.is-guttered{display:block}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{left:8.3333333333%;position:relative}.el-col-3{flex:0 0 12.5%;max-width:12.5%}.el-col-3,.el-col-3.is-guttered{display:block}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{left:12.5%;position:relative}.el-col-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-4,.el-col-4.is-guttered{display:block}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{left:16.6666666667%;position:relative}.el-col-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-5,.el-col-5.is-guttered{display:block}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{left:20.8333333333%;position:relative}.el-col-6{flex:0 0 25%;max-width:25%}.el-col-6,.el-col-6.is-guttered{display:block}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{left:25%;position:relative}.el-col-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-7,.el-col-7.is-guttered{display:block}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{left:29.1666666667%;position:relative}.el-col-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-8,.el-col-8.is-guttered{display:block}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{left:33.3333333333%;position:relative}.el-col-9{flex:0 0 37.5%;max-width:37.5%}.el-col-9,.el-col-9.is-guttered{display:block}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{left:37.5%;position:relative}.el-col-10{flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-10,.el-col-10.is-guttered{display:block}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{left:41.6666666667%;position:relative}.el-col-11{flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-11,.el-col-11.is-guttered{display:block}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{left:45.8333333333%;position:relative}.el-col-12{flex:0 0 50%;max-width:50%}.el-col-12,.el-col-12.is-guttered{display:block}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{left:50%;position:relative}.el-col-13{flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-13,.el-col-13.is-guttered{display:block}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{left:54.1666666667%;position:relative}.el-col-14{flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-14,.el-col-14.is-guttered{display:block}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{left:58.3333333333%;position:relative}.el-col-15{flex:0 0 62.5%;max-width:62.5%}.el-col-15,.el-col-15.is-guttered{display:block}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{left:62.5%;position:relative}.el-col-16{flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-16,.el-col-16.is-guttered{display:block}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{left:66.6666666667%;position:relative}.el-col-17{flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-17,.el-col-17.is-guttered{display:block}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{left:70.8333333333%;position:relative}.el-col-18{flex:0 0 75%;max-width:75%}.el-col-18,.el-col-18.is-guttered{display:block}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{left:75%;position:relative}.el-col-19{flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-19,.el-col-19.is-guttered{display:block}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{left:79.1666666667%;position:relative}.el-col-20{flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-20,.el-col-20.is-guttered{display:block}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{left:83.3333333333%;position:relative}.el-col-21{flex:0 0 87.5%;max-width:87.5%}.el-col-21,.el-col-21.is-guttered{display:block}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{left:87.5%;position:relative}.el-col-22{flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-22,.el-col-22.is-guttered{display:block}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{left:91.6666666667%;position:relative}.el-col-23{flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-23,.el-col-23.is-guttered{display:block}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{left:95.8333333333%;position:relative}.el-col-24{flex:0 0 100%;max-width:100%}.el-col-24,.el-col-24.is-guttered{display:block}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{left:100%;position:relative}@media only screen and (max-width:767px){.el-col-xs-0{display:none;flex:0 0 0%;max-width:0}.el-col-xs-0.is-guttered{display:none}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{left:0;position:relative}.el-col-xs-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xs-1,.el-col-xs-1.is-guttered{display:block}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{left:4.1666666667%;position:relative}.el-col-xs-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xs-2,.el-col-xs-2.is-guttered{display:block}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{left:8.3333333333%;position:relative}.el-col-xs-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xs-3,.el-col-xs-3.is-guttered{display:block}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{left:12.5%;position:relative}.el-col-xs-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xs-4,.el-col-xs-4.is-guttered{display:block}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{left:16.6666666667%;position:relative}.el-col-xs-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xs-5,.el-col-xs-5.is-guttered{display:block}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{left:20.8333333333%;position:relative}.el-col-xs-6{flex:0 0 25%;max-width:25%}.el-col-xs-6,.el-col-xs-6.is-guttered{display:block}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{left:25%;position:relative}.el-col-xs-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xs-7,.el-col-xs-7.is-guttered{display:block}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{left:29.1666666667%;position:relative}.el-col-xs-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xs-8,.el-col-xs-8.is-guttered{display:block}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{left:33.3333333333%;position:relative}.el-col-xs-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xs-9,.el-col-xs-9.is-guttered{display:block}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{left:37.5%;position:relative}.el-col-xs-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xs-10.is-guttered{display:block}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{left:41.6666666667%;position:relative}.el-col-xs-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xs-11.is-guttered{display:block}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{left:45.8333333333%;position:relative}.el-col-xs-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xs-12.is-guttered{display:block}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{left:50%;position:relative}.el-col-xs-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xs-13.is-guttered{display:block}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{left:54.1666666667%;position:relative}.el-col-xs-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xs-14.is-guttered{display:block}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{left:58.3333333333%;position:relative}.el-col-xs-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xs-15.is-guttered{display:block}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{left:62.5%;position:relative}.el-col-xs-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xs-16.is-guttered{display:block}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{left:66.6666666667%;position:relative}.el-col-xs-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xs-17.is-guttered{display:block}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{left:70.8333333333%;position:relative}.el-col-xs-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xs-18.is-guttered{display:block}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{left:75%;position:relative}.el-col-xs-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xs-19.is-guttered{display:block}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{left:79.1666666667%;position:relative}.el-col-xs-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xs-20.is-guttered{display:block}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{left:83.3333333333%;position:relative}.el-col-xs-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xs-21.is-guttered{display:block}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{left:87.5%;position:relative}.el-col-xs-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xs-22.is-guttered{display:block}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{left:91.6666666667%;position:relative}.el-col-xs-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xs-23.is-guttered{display:block}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{left:95.8333333333%;position:relative}.el-col-xs-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xs-24.is-guttered{display:block}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{left:100%;position:relative}}@media only screen and (min-width:768px){.el-col-sm-0{display:none;flex:0 0 0%;max-width:0}.el-col-sm-0.is-guttered{display:none}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{left:0;position:relative}.el-col-sm-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-sm-1,.el-col-sm-1.is-guttered{display:block}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{left:4.1666666667%;position:relative}.el-col-sm-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-sm-2,.el-col-sm-2.is-guttered{display:block}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{left:8.3333333333%;position:relative}.el-col-sm-3{flex:0 0 12.5%;max-width:12.5%}.el-col-sm-3,.el-col-sm-3.is-guttered{display:block}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{left:12.5%;position:relative}.el-col-sm-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-sm-4,.el-col-sm-4.is-guttered{display:block}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{left:16.6666666667%;position:relative}.el-col-sm-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-sm-5,.el-col-sm-5.is-guttered{display:block}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{left:20.8333333333%;position:relative}.el-col-sm-6{flex:0 0 25%;max-width:25%}.el-col-sm-6,.el-col-sm-6.is-guttered{display:block}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{left:25%;position:relative}.el-col-sm-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-sm-7,.el-col-sm-7.is-guttered{display:block}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{left:29.1666666667%;position:relative}.el-col-sm-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-sm-8,.el-col-sm-8.is-guttered{display:block}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{left:33.3333333333%;position:relative}.el-col-sm-9{flex:0 0 37.5%;max-width:37.5%}.el-col-sm-9,.el-col-sm-9.is-guttered{display:block}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{left:37.5%;position:relative}.el-col-sm-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-sm-10.is-guttered{display:block}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{left:41.6666666667%;position:relative}.el-col-sm-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-sm-11.is-guttered{display:block}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{left:45.8333333333%;position:relative}.el-col-sm-12{display:block;flex:0 0 50%;max-width:50%}.el-col-sm-12.is-guttered{display:block}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{left:50%;position:relative}.el-col-sm-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-sm-13.is-guttered{display:block}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{left:54.1666666667%;position:relative}.el-col-sm-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-sm-14.is-guttered{display:block}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{left:58.3333333333%;position:relative}.el-col-sm-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-sm-15.is-guttered{display:block}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{left:62.5%;position:relative}.el-col-sm-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-sm-16.is-guttered{display:block}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{left:66.6666666667%;position:relative}.el-col-sm-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-sm-17.is-guttered{display:block}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{left:70.8333333333%;position:relative}.el-col-sm-18{display:block;flex:0 0 75%;max-width:75%}.el-col-sm-18.is-guttered{display:block}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{left:75%;position:relative}.el-col-sm-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-sm-19.is-guttered{display:block}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{left:79.1666666667%;position:relative}.el-col-sm-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-sm-20.is-guttered{display:block}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{left:83.3333333333%;position:relative}.el-col-sm-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-sm-21.is-guttered{display:block}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{left:87.5%;position:relative}.el-col-sm-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-sm-22.is-guttered{display:block}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{left:91.6666666667%;position:relative}.el-col-sm-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-sm-23.is-guttered{display:block}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{left:95.8333333333%;position:relative}.el-col-sm-24{display:block;flex:0 0 100%;max-width:100%}.el-col-sm-24.is-guttered{display:block}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{left:100%;position:relative}}@media only screen and (min-width:992px){.el-col-md-0{display:none;flex:0 0 0%;max-width:0}.el-col-md-0.is-guttered{display:none}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{left:0;position:relative}.el-col-md-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-md-1,.el-col-md-1.is-guttered{display:block}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{left:4.1666666667%;position:relative}.el-col-md-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-md-2,.el-col-md-2.is-guttered{display:block}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{left:8.3333333333%;position:relative}.el-col-md-3{flex:0 0 12.5%;max-width:12.5%}.el-col-md-3,.el-col-md-3.is-guttered{display:block}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{left:12.5%;position:relative}.el-col-md-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-md-4,.el-col-md-4.is-guttered{display:block}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{left:16.6666666667%;position:relative}.el-col-md-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-md-5,.el-col-md-5.is-guttered{display:block}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{left:20.8333333333%;position:relative}.el-col-md-6{flex:0 0 25%;max-width:25%}.el-col-md-6,.el-col-md-6.is-guttered{display:block}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{left:25%;position:relative}.el-col-md-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-md-7,.el-col-md-7.is-guttered{display:block}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{left:29.1666666667%;position:relative}.el-col-md-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-md-8,.el-col-md-8.is-guttered{display:block}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{left:33.3333333333%;position:relative}.el-col-md-9{flex:0 0 37.5%;max-width:37.5%}.el-col-md-9,.el-col-md-9.is-guttered{display:block}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{left:37.5%;position:relative}.el-col-md-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-md-10.is-guttered{display:block}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{left:41.6666666667%;position:relative}.el-col-md-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-md-11.is-guttered{display:block}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{left:45.8333333333%;position:relative}.el-col-md-12{display:block;flex:0 0 50%;max-width:50%}.el-col-md-12.is-guttered{display:block}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{left:50%;position:relative}.el-col-md-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-md-13.is-guttered{display:block}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{left:54.1666666667%;position:relative}.el-col-md-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-md-14.is-guttered{display:block}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{left:58.3333333333%;position:relative}.el-col-md-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-md-15.is-guttered{display:block}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{left:62.5%;position:relative}.el-col-md-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-md-16.is-guttered{display:block}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{left:66.6666666667%;position:relative}.el-col-md-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-md-17.is-guttered{display:block}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{left:70.8333333333%;position:relative}.el-col-md-18{display:block;flex:0 0 75%;max-width:75%}.el-col-md-18.is-guttered{display:block}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{left:75%;position:relative}.el-col-md-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-md-19.is-guttered{display:block}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{left:79.1666666667%;position:relative}.el-col-md-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-md-20.is-guttered{display:block}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{left:83.3333333333%;position:relative}.el-col-md-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-md-21.is-guttered{display:block}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{left:87.5%;position:relative}.el-col-md-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-md-22.is-guttered{display:block}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{left:91.6666666667%;position:relative}.el-col-md-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-md-23.is-guttered{display:block}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{left:95.8333333333%;position:relative}.el-col-md-24{display:block;flex:0 0 100%;max-width:100%}.el-col-md-24.is-guttered{display:block}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{left:100%;position:relative}}@media only screen and (min-width:1200px){.el-col-lg-0{display:none;flex:0 0 0%;max-width:0}.el-col-lg-0.is-guttered{display:none}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{left:0;position:relative}.el-col-lg-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-lg-1,.el-col-lg-1.is-guttered{display:block}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{left:4.1666666667%;position:relative}.el-col-lg-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-lg-2,.el-col-lg-2.is-guttered{display:block}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{left:8.3333333333%;position:relative}.el-col-lg-3{flex:0 0 12.5%;max-width:12.5%}.el-col-lg-3,.el-col-lg-3.is-guttered{display:block}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{left:12.5%;position:relative}.el-col-lg-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-lg-4,.el-col-lg-4.is-guttered{display:block}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{left:16.6666666667%;position:relative}.el-col-lg-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-lg-5,.el-col-lg-5.is-guttered{display:block}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{left:20.8333333333%;position:relative}.el-col-lg-6{flex:0 0 25%;max-width:25%}.el-col-lg-6,.el-col-lg-6.is-guttered{display:block}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{left:25%;position:relative}.el-col-lg-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-lg-7,.el-col-lg-7.is-guttered{display:block}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{left:29.1666666667%;position:relative}.el-col-lg-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-lg-8,.el-col-lg-8.is-guttered{display:block}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{left:33.3333333333%;position:relative}.el-col-lg-9{flex:0 0 37.5%;max-width:37.5%}.el-col-lg-9,.el-col-lg-9.is-guttered{display:block}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{left:37.5%;position:relative}.el-col-lg-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-lg-10.is-guttered{display:block}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{left:41.6666666667%;position:relative}.el-col-lg-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-lg-11.is-guttered{display:block}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{left:45.8333333333%;position:relative}.el-col-lg-12{display:block;flex:0 0 50%;max-width:50%}.el-col-lg-12.is-guttered{display:block}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{left:50%;position:relative}.el-col-lg-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-lg-13.is-guttered{display:block}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{left:54.1666666667%;position:relative}.el-col-lg-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-lg-14.is-guttered{display:block}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{left:58.3333333333%;position:relative}.el-col-lg-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-lg-15.is-guttered{display:block}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{left:62.5%;position:relative}.el-col-lg-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-lg-16.is-guttered{display:block}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{left:66.6666666667%;position:relative}.el-col-lg-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-lg-17.is-guttered{display:block}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{left:70.8333333333%;position:relative}.el-col-lg-18{display:block;flex:0 0 75%;max-width:75%}.el-col-lg-18.is-guttered{display:block}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{left:75%;position:relative}.el-col-lg-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-lg-19.is-guttered{display:block}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{left:79.1666666667%;position:relative}.el-col-lg-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-lg-20.is-guttered{display:block}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{left:83.3333333333%;position:relative}.el-col-lg-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-lg-21.is-guttered{display:block}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{left:87.5%;position:relative}.el-col-lg-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-lg-22.is-guttered{display:block}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{left:91.6666666667%;position:relative}.el-col-lg-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-lg-23.is-guttered{display:block}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{left:95.8333333333%;position:relative}.el-col-lg-24{display:block;flex:0 0 100%;max-width:100%}.el-col-lg-24.is-guttered{display:block}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{left:100%;position:relative}}@media only screen and (min-width:1920px){.el-col-xl-0{display:none;flex:0 0 0%;max-width:0}.el-col-xl-0.is-guttered{display:none}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{left:0;position:relative}.el-col-xl-1{flex:0 0 4.1666666667%;max-width:4.1666666667%}.el-col-xl-1,.el-col-xl-1.is-guttered{display:block}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{left:4.1666666667%;position:relative}.el-col-xl-2{flex:0 0 8.3333333333%;max-width:8.3333333333%}.el-col-xl-2,.el-col-xl-2.is-guttered{display:block}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{left:8.3333333333%;position:relative}.el-col-xl-3{flex:0 0 12.5%;max-width:12.5%}.el-col-xl-3,.el-col-xl-3.is-guttered{display:block}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{left:12.5%;position:relative}.el-col-xl-4{flex:0 0 16.6666666667%;max-width:16.6666666667%}.el-col-xl-4,.el-col-xl-4.is-guttered{display:block}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{left:16.6666666667%;position:relative}.el-col-xl-5{flex:0 0 20.8333333333%;max-width:20.8333333333%}.el-col-xl-5,.el-col-xl-5.is-guttered{display:block}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{left:20.8333333333%;position:relative}.el-col-xl-6{flex:0 0 25%;max-width:25%}.el-col-xl-6,.el-col-xl-6.is-guttered{display:block}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{left:25%;position:relative}.el-col-xl-7{flex:0 0 29.1666666667%;max-width:29.1666666667%}.el-col-xl-7,.el-col-xl-7.is-guttered{display:block}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{left:29.1666666667%;position:relative}.el-col-xl-8{flex:0 0 33.3333333333%;max-width:33.3333333333%}.el-col-xl-8,.el-col-xl-8.is-guttered{display:block}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{left:33.3333333333%;position:relative}.el-col-xl-9{flex:0 0 37.5%;max-width:37.5%}.el-col-xl-9,.el-col-xl-9.is-guttered{display:block}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{left:37.5%;position:relative}.el-col-xl-10{display:block;flex:0 0 41.6666666667%;max-width:41.6666666667%}.el-col-xl-10.is-guttered{display:block}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{left:41.6666666667%;position:relative}.el-col-xl-11{display:block;flex:0 0 45.8333333333%;max-width:45.8333333333%}.el-col-xl-11.is-guttered{display:block}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{left:45.8333333333%;position:relative}.el-col-xl-12{display:block;flex:0 0 50%;max-width:50%}.el-col-xl-12.is-guttered{display:block}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{left:50%;position:relative}.el-col-xl-13{display:block;flex:0 0 54.1666666667%;max-width:54.1666666667%}.el-col-xl-13.is-guttered{display:block}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{left:54.1666666667%;position:relative}.el-col-xl-14{display:block;flex:0 0 58.3333333333%;max-width:58.3333333333%}.el-col-xl-14.is-guttered{display:block}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{left:58.3333333333%;position:relative}.el-col-xl-15{display:block;flex:0 0 62.5%;max-width:62.5%}.el-col-xl-15.is-guttered{display:block}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{left:62.5%;position:relative}.el-col-xl-16{display:block;flex:0 0 66.6666666667%;max-width:66.6666666667%}.el-col-xl-16.is-guttered{display:block}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{left:66.6666666667%;position:relative}.el-col-xl-17{display:block;flex:0 0 70.8333333333%;max-width:70.8333333333%}.el-col-xl-17.is-guttered{display:block}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{left:70.8333333333%;position:relative}.el-col-xl-18{display:block;flex:0 0 75%;max-width:75%}.el-col-xl-18.is-guttered{display:block}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{left:75%;position:relative}.el-col-xl-19{display:block;flex:0 0 79.1666666667%;max-width:79.1666666667%}.el-col-xl-19.is-guttered{display:block}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{left:79.1666666667%;position:relative}.el-col-xl-20{display:block;flex:0 0 83.3333333333%;max-width:83.3333333333%}.el-col-xl-20.is-guttered{display:block}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{left:83.3333333333%;position:relative}.el-col-xl-21{display:block;flex:0 0 87.5%;max-width:87.5%}.el-col-xl-21.is-guttered{display:block}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{left:87.5%;position:relative}.el-col-xl-22{display:block;flex:0 0 91.6666666667%;max-width:91.6666666667%}.el-col-xl-22.is-guttered{display:block}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{left:91.6666666667%;position:relative}.el-col-xl-23{display:block;flex:0 0 95.8333333333%;max-width:95.8333333333%}.el-col-xl-23.is-guttered{display:block}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{left:95.8333333333%;position:relative}.el-col-xl-24{display:block;flex:0 0 100%;max-width:100%}.el-col-xl-24.is-guttered{display:block}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{left:100%;position:relative}}.el-progress{align-items:center;display:flex;line-height:1;position:relative}.el-progress__text{color:var(--el-text-color-regular);font-size:14px;line-height:1;margin-left:5px;min-width:50px}.el-progress__text i{display:block;vertical-align:middle}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{left:0;margin:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);width:100%}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{display:inline-block;vertical-align:middle}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{display:block;margin-right:0;padding-right:0}.el-progress--text-inside .el-progress-bar{margin-right:0;padding-right:0}.el-progress.is-success .el-progress-bar__inner{background-color:var(--el-color-success)}.el-progress.is-success .el-progress__text{color:var(--el-color-success)}.el-progress.is-warning .el-progress-bar__inner{background-color:var(--el-color-warning)}.el-progress.is-warning .el-progress__text{color:var(--el-color-warning)}.el-progress.is-exception .el-progress-bar__inner{background-color:var(--el-color-danger)}.el-progress.is-exception .el-progress__text{color:var(--el-color-danger)}.el-progress-bar{box-sizing:border-box;flex-grow:1}.el-progress-bar__outer{background-color:var(--el-border-color-lighter);border-radius:100px;height:6px;overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{background-color:var(--el-color-primary);border-radius:100px;height:100%;left:0;line-height:1;position:absolute;text-align:right;top:0;transition:width .6s ease;white-space:nowrap}.el-progress-bar__inner:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{animation:indeterminate 3s infinite;transform:translateZ(0)}.el-progress-bar__inner--striped{background-image:linear-gradient(45deg,rgba(0,0,0,.1) 25%,transparent 0,transparent 50%,rgba(0,0,0,.1) 0,rgba(0,0,0,.1) 75%,transparent 0,transparent);background-size:1.25em 1.25em}.el-progress-bar__inner--striped.el-progress-bar__inner--striped-flow{animation:striped-flow 3s linear infinite}.el-progress-bar__innerText{color:#fff;display:inline-block;font-size:12px;margin:0 5px;vertical-align:middle}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes striped-flow{0%{background-position:-100%}to{background-position:100%}}.view-images[data-v-02b183d9],.gen-text[data-v-02b183d9]{display:flex;align-items:center;justify-content:center;color:var(--el-color-info);font-weight:500;margin-top:8px;gap:8px}.gen-text[data-v-02b183d9]{font-weight:400}.view-images[data-v-02b183d9]:hover{cursor:pointer;text-decoration:underline}.el-form-item{display:flex;--font-size:14px;margin-bottom:18px}.el-form-item .el-form-item{margin-bottom:0}.el-form-item .el-input__validateIcon{display:none}.el-form-item--large{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:22px}.el-form-item--large .el-form-item__label{height:40px;line-height:40px}.el-form-item--large .el-form-item__content{line-height:40px}.el-form-item--large .el-form-item__error{padding-top:4px}.el-form-item--default{--font-size:14px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--default .el-form-item__label{height:32px;line-height:32px}.el-form-item--default .el-form-item__content{line-height:32px}.el-form-item--default .el-form-item__error{padding-top:2px}.el-form-item--small{--font-size:12px;--el-form-label-font-size:var(--font-size);margin-bottom:18px}.el-form-item--small .el-form-item__label{height:24px;line-height:24px}.el-form-item--small .el-form-item__content{line-height:24px}.el-form-item--small .el-form-item__error{padding-top:2px}.el-form-item--label-left .el-form-item__label{justify-content:flex-start;text-align:left}.el-form-item--label-right .el-form-item__label{justify-content:flex-end;text-align:right}.el-form-item--label-top{display:block}.el-form-item--label-top .el-form-item__label{display:block;height:auto;line-height:22px;margin-bottom:8px;padding-right:0;text-align:left;width:-moz-fit-content;width:fit-content}.el-form-item__label-wrap{display:flex}.el-form-item__label{align-items:flex-start;box-sizing:border-box;color:var(--el-text-color-regular);display:inline-flex;flex:0 0 auto;font-size:var(--el-form-label-font-size);height:32px;line-height:32px;padding:0 12px 0 0}.el-form-item__content{align-items:center;display:flex;flex:1;flex-wrap:wrap;font-size:var(--font-size);line-height:32px;min-width:0;position:relative}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;left:0;line-height:1;padding-top:2px;position:absolute;top:100%}.el-form-item__error--inline{display:inline-block;left:auto;margin-left:10px;position:relative;top:auto}.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before{color:var(--el-color-danger);content:"*";margin-right:4px}.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label-wrap>.el-form-item__label:after,.el-form-item.is-required:not(.is-no-asterisk).asterisk-right>.el-form-item__label:after{color:var(--el-color-danger);content:"*";margin-left:4px}.el-form-item.is-error .el-form-item__content .el-input-tag__wrapper,.el-form-item.is-error .el-form-item__content .el-input-tag__wrapper.is-focus,.el-form-item.is-error .el-form-item__content .el-input-tag__wrapper:focus,.el-form-item.is-error .el-form-item__content .el-input-tag__wrapper:hover,.el-form-item.is-error .el-form-item__content .el-input__wrapper,.el-form-item.is-error .el-form-item__content .el-input__wrapper.is-focus,.el-form-item.is-error .el-form-item__content .el-input__wrapper:focus,.el-form-item.is-error .el-form-item__content .el-input__wrapper:hover,.el-form-item.is-error .el-form-item__content .el-select__wrapper,.el-form-item.is-error .el-form-item__content .el-select__wrapper.is-focus,.el-form-item.is-error .el-form-item__content .el-select__wrapper:focus,.el-form-item.is-error .el-form-item__content .el-select__wrapper:hover,.el-form-item.is-error .el-form-item__content .el-textarea__inner,.el-form-item.is-error .el-form-item__content .el-textarea__inner.is-focus,.el-form-item.is-error .el-form-item__content .el-textarea__inner:focus,.el-form-item.is-error .el-form-item__content .el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-form-item__content .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-form-item__content .el-input-group__prepend .el-input__wrapper{box-shadow:inset 0 0 0 1px transparent}.el-form-item.is-error .el-form-item__content .el-input-group__append .el-input__validateIcon,.el-form-item.is-error .el-form-item__content .el-input-group__prepend .el-input__validateIcon{display:none}.el-form-item.is-error .el-form-item__content .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.el-slider{--el-slider-main-bg-color:var(--el-color-primary);--el-slider-runway-bg-color:var(--el-border-color-light);--el-slider-stop-bg-color:var(--el-color-white);--el-slider-disabled-color:var(--el-text-color-placeholder);--el-slider-border-radius:3px;--el-slider-height:6px;--el-slider-button-size:20px;--el-slider-button-wrapper-size:36px;--el-slider-button-wrapper-offset:-15px;align-items:center;display:flex;height:32px;width:100%}.el-slider__runway{background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);cursor:pointer;flex:1;height:var(--el-slider-height);position:relative}.el-slider__runway.show-input{margin-right:30px;width:auto}.el-slider__runway.is-disabled{cursor:default}.el-slider__runway.is-disabled .el-slider__bar{background-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button{border-color:var(--el-slider-disabled-color)}.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging,.el-slider__runway.is-disabled .el-slider__button-wrapper.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover{cursor:not-allowed}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{transform:scale(1)}.el-slider__runway.is-disabled .el-slider__button.dragging,.el-slider__runway.is-disabled .el-slider__button.hover,.el-slider__runway.is-disabled .el-slider__button:hover{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{background-color:var(--el-slider-main-bg-color);border-bottom-left-radius:var(--el-slider-border-radius);border-top-left-radius:var(--el-slider-border-radius);height:var(--el-slider-height);position:absolute}.el-slider__button-wrapper{background-color:transparent;height:var(--el-slider-button-wrapper-size);line-height:normal;outline:none;position:absolute;text-align:center;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);-webkit-user-select:none;-moz-user-select:none;user-select:none;width:var(--el-slider-button-wrapper-size);z-index:1}.el-slider__button-wrapper:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:grab}.el-slider__button-wrapper.dragging{cursor:grabbing}.el-slider__button{background-color:var(--el-color-white);border:2px solid var(--el-slider-main-bg-color);border-radius:50%;box-sizing:border-box;display:inline-block;height:var(--el-slider-button-size);transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:var(--el-slider-button-size)}.el-slider__button.dragging,.el-slider__button.hover,.el-slider__button:hover{transform:scale(1.2)}.el-slider__button.hover,.el-slider__button:hover{cursor:grab}.el-slider__button.dragging{cursor:grabbing}.el-slider__stop{background-color:var(--el-slider-stop-bg-color);border-radius:var(--el-border-radius-circle);height:var(--el-slider-height);position:absolute;transform:translate(-50%);width:var(--el-slider-height)}.el-slider__marks{height:100%;left:12px;top:0;width:18px}.el-slider__marks-text{color:var(--el-color-info);font-size:14px;margin-top:15px;position:absolute;transform:translate(-50%);white-space:pre}.el-slider.is-vertical{display:inline-flex;flex:0;height:100%;position:relative;width:auto}.el-slider.is-vertical .el-slider__runway{height:100%;margin:0 16px;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__bar{border-radius:0 0 3px 3px;height:auto;width:var(--el-slider-height)}.el-slider.is-vertical .el-slider__button-wrapper{left:var(--el-slider-button-wrapper-offset);top:auto;transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{left:15px;margin-top:0;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-textarea{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;display:inline-block;font-size:var(--el-font-size-base);position:relative;vertical-align:bottom;width:100%}.el-textarea__inner{-webkit-appearance:none;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));display:block;font-family:inherit;font-size:inherit;line-height:1.5;padding:5px 11px;position:relative;resize:vertical;transition:var(--el-transition-box-shadow);width:100%}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset;outline:none}.el-textarea .el-input__count{background:var(--el-fill-color-blank);bottom:5px;color:var(--el-color-info);font-size:12px;line-height:14px;position:absolute;right:10px}.el-textarea .el-input__count.is-outside{background:transparent;bottom:unset;line-height:1;padding-top:2px;position:absolute;right:0;top:100%}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;color:var(--el-disabled-text-color);cursor:not-allowed}.el-textarea.is-disabled .el-textarea__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-disabled .el-textarea__inner::placeholder{color:var(--el-text-color-placeholder)}.el-textarea.is-exceed .el-textarea__inner{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-textarea.is-exceed .el-input__count{color:var(--el-color-danger)}.el-input{--el-input-text-color:var(--el-text-color-regular);--el-input-border:var(--el-border);--el-input-hover-border:var(--el-border-color-hover);--el-input-focus-border:var(--el-color-primary);--el-input-transparent-border:0 0 0 1px transparent inset;--el-input-border-color:var(--el-border-color);--el-input-border-radius:var(--el-border-radius-base);--el-input-bg-color:var(--el-fill-color-blank);--el-input-icon-color:var(--el-text-color-placeholder);--el-input-placeholder-color:var(--el-text-color-placeholder);--el-input-hover-border-color:var(--el-border-color-hover);--el-input-clear-hover-color:var(--el-text-color-secondary);--el-input-focus-border-color:var(--el-color-primary);--el-input-width:100%;--el-input-height:var(--el-component-size);box-sizing:border-box;display:inline-flex;font-size:var(--el-font-size-base);line-height:var(--el-input-height);position:relative;vertical-align:middle;width:var(--el-input-width)}.el-input::-webkit-scrollbar{width:6px;z-index:11}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{background:var(--el-text-color-disabled);border-radius:5px;width:6px}.el-input::-webkit-scrollbar-corner,.el-input::-webkit-scrollbar-track{background:var(--el-fill-color-blank)}.el-input::-webkit-scrollbar-track-piece{background:var(--el-fill-color-blank);width:6px}.el-input .el-input__clear,.el-input .el-input__password{color:var(--el-input-icon-color);cursor:pointer;font-size:14px}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{align-items:center;color:var(--el-color-info);display:inline-flex;font-size:12px;height:100%}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);display:inline-block;line-height:normal;padding-left:8px}.el-input .el-input__count.is-outside{height:unset;padding-top:2px;position:absolute;right:0;top:100%}.el-input .el-input__count.is-outside .el-input__count-inner{background:transparent;line-height:1;padding-left:0}.el-input__wrapper{align-items:center;background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;cursor:text;display:inline-flex;flex-grow:1;justify-content:center;padding:1px 11px;transform:translateZ(0);transition:var(--el-transition-box-shadow)}.el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-input-hover-border-color) inset}.el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-input{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px)}.el-input__inner{-webkit-appearance:none;background:none;border:none;box-sizing:border-box;color:var(--el-input-text-color,var(--el-text-color-regular));flex-grow:1;font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);outline:none;padding:0;width:100%}.el-input__inner:focus{outline:none}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner::placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner[type=password]::-ms-reveal{display:none}.el-input__inner[type=number]{line-height:1}.el-input__prefix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__prefix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__prefix-inner>:last-child{margin-right:8px}.el-input__prefix-inner>:first-child,.el-input__prefix-inner>:first-child.el-input__icon{margin-left:0}.el-input__suffix{color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:inline-flex;flex-shrink:0;flex-wrap:nowrap;height:100%;line-height:var(--el-input-inner-height);pointer-events:none;text-align:center;transition:all var(--el-transition-duration);white-space:nowrap}.el-input__suffix-inner{align-items:center;display:inline-flex;justify-content:center;pointer-events:all}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{align-items:center;display:flex;height:inherit;justify-content:center;line-height:inherit;margin-left:8px;transition:all var(--el-transition-duration)}.el-input__validateIcon{pointer-events:none}.el-input.is-active .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-color, ) inset}.el-input.is-disabled{cursor:not-allowed}.el-input.is-disabled .el-input__wrapper{background-color:var(--el-disabled-bg-color);box-shadow:0 0 0 1px var(--el-disabled-border-color) inset;cursor:not-allowed}.el-input.is-disabled .el-input__inner{color:var(--el-disabled-text-color);-webkit-text-fill-color:var(--el-disabled-text-color);cursor:not-allowed}.el-input.is-disabled .el-input__inner::-moz-placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__inner::placeholder{color:var(--el-text-color-placeholder)}.el-input.is-disabled .el-input__icon{cursor:not-allowed}.el-input.is-disabled .el-input__prefix-inner,.el-input.is-disabled .el-input__suffix-inner{pointer-events:none}.el-input.is-exceed .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-input.is-exceed .el-input__suffix .el-input__count{color:var(--el-color-danger)}.el-input--large{--el-input-height:var(--el-component-size-large);font-size:14px}.el-input--large .el-input__wrapper{padding:1px 15px}.el-input--large{--el-input-inner-height:calc(var(--el-input-height, 40px) - 2px)}.el-input--small{--el-input-height:var(--el-component-size-small);font-size:12px}.el-input--small .el-input__wrapper{padding:1px 7px}.el-input--small{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{align-items:stretch;display:inline-flex;width:100%}.el-input-group__append,.el-input-group__prepend{align-items:center;background-color:var(--el-fill-color-light);border-radius:var(--el-input-border-radius);color:var(--el-color-info);display:inline-flex;justify-content:center;min-height:100%;padding:0 20px;position:relative;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:none}.el-input-group__append .el-button,.el-input-group__append .el-select,.el-input-group__prepend .el-button,.el-input-group__prepend .el-select{display:inline-block;flex:1;margin:0 -20px}.el-input-group__append button.el-button,.el-input-group__append button.el-button:hover,.el-input-group__append div.el-select .el-select__wrapper,.el-input-group__append div.el-select:hover .el-select__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-select__wrapper,.el-input-group__prepend div.el-select:hover .el-select__wrapper{background-color:transparent;border-color:transparent;color:inherit}.el-input-group__append .el-button,.el-input-group__append .el-input,.el-input-group__prepend .el-button,.el-input-group__prepend .el-input{font-size:inherit}.el-input-group__prepend{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group__append{border-left:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-group--prepend>.el-input__wrapper,.el-input-group__append{border-bottom-left-radius:0;border-top-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-select__wrapper{border-bottom-right-radius:0;border-top-right-radius:0;box-shadow:1px 0 0 0 var(--el-input-border-color) inset,0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset}.el-input-group--append>.el-input__wrapper{border-bottom-right-radius:0;border-top-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-select__wrapper{border-bottom-left-radius:0;border-top-left-radius:0;box-shadow:0 1px 0 0 var(--el-input-border-color) inset,0 -1px 0 0 var(--el-input-border-color) inset,-1px 0 0 0 var(--el-input-border-color) inset}.el-input-hidden{display:none!important}.el-input-number{display:inline-flex;line-height:30px;position:relative;vertical-align:middle;width:150px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;line-height:1;text-align:center}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-input-number.is-left .el-input__inner{text-align:left}.el-input-number.is-right .el-input__inner{text-align:right}.el-input-number.is-center .el-input__inner{text-align:center}.el-input-number__decrease,.el-input-number__increase{align-items:center;background:var(--el-fill-color-light);bottom:1px;color:var(--el-text-color-regular);cursor:pointer;display:flex;font-size:13px;height:auto;justify-content:center;position:absolute;top:1px;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:32px;z-index:1}.el-input-number__decrease:hover,.el-input-number__increase:hover{color:var(--el-color-primary)}.el-input-number__decrease:hover~.el-input:not(.is-disabled) .el-input__wrapper,.el-input-number__increase:hover~.el-input:not(.is-disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-input-focus-border-color,var(--el-color-primary)) inset}.el-input-number__decrease.is-disabled,.el-input-number__increase.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-input-number__increase{border-left:var(--el-border);border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;right:1px}.el-input-number__decrease{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border);left:1px}.el-input-number.is-disabled .el-input-number__decrease,.el-input-number.is-disabled .el-input-number__increase{border-color:var(--el-disabled-border-color);color:var(--el-disabled-border-color)}.el-input-number.is-disabled .el-input-number__decrease:hover,.el-input-number.is-disabled .el-input-number__increase:hover{color:var(--el-disabled-border-color);cursor:not-allowed}.el-input-number--large{line-height:38px;width:180px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{font-size:14px;width:40px}.el-input-number--large.is-controls-right .el-input--large .el-input__wrapper{padding-right:47px}.el-input-number--large .el-input--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{line-height:22px;width:120px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{font-size:12px;width:24px}.el-input-number--small.is-controls-right .el-input--small .el-input__wrapper{padding-right:31px}.el-input-number--small .el-input--small .el-input__wrapper{padding-left:31px;padding-right:31px}.el-input-number--small .el-input-number__decrease [class*=el-icon],.el-input-number--small .el-input-number__increase [class*=el-icon]{transform:scale(.9)}.el-input-number.is-without-controls .el-input__wrapper{padding-left:15px;padding-right:15px}.el-input-number.is-controls-right .el-input__wrapper{padding-left:15px;padding-right:42px}.el-input-number.is-controls-right .el-input-number__decrease,.el-input-number.is-controls-right .el-input-number__increase{--el-input-number-controls-height:15px;height:var(--el-input-number-controls-height);line-height:var(--el-input-number-controls-height)}.el-input-number.is-controls-right .el-input-number__decrease [class*=el-icon],.el-input-number.is-controls-right .el-input-number__increase [class*=el-icon]{transform:scale(.8)}.el-input-number.is-controls-right .el-input-number__increase{border-bottom:var(--el-border);border-radius:0 var(--el-border-radius-base) 0 0;bottom:auto;left:auto}.el-input-number.is-controls-right .el-input-number__decrease{border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0;border-right:none;left:auto;right:1px;top:auto}.el-input-number.is-controls-right[class*=large] [class*=decrease],.el-input-number.is-controls-right[class*=large] [class*=increase]{--el-input-number-controls-height:19px}.el-input-number.is-controls-right[class*=small] [class*=decrease],.el-input-number.is-controls-right[class*=small] [class*=increase]{--el-input-number-controls-height:11px}.align-vertical[data-v-f636a774]{display:flex;align-items:center;height:100%}.el-tag{--el-tag-font-size:12px;--el-tag-border-radius:4px;--el-tag-border-radius-rounded:9999px;align-items:center;background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);border-radius:var(--el-tag-border-radius);border-style:solid;border-width:1px;box-sizing:border-box;color:var(--el-tag-text-color);display:inline-flex;font-size:var(--el-tag-font-size);height:24px;justify-content:center;line-height:1;padding:0 9px;vertical-align:middle;white-space:nowrap;--el-icon-size:14px}.el-tag,.el-tag.el-tag--primary{--el-tag-bg-color:var(--el-color-primary-light-9);--el-tag-border-color:var(--el-color-primary-light-8);--el-tag-hover-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-bg-color:var(--el-color-success-light-9);--el-tag-border-color:var(--el-color-success-light-8);--el-tag-hover-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-bg-color:var(--el-color-warning-light-9);--el-tag-border-color:var(--el-color-warning-light-8);--el-tag-hover-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-bg-color:var(--el-color-danger-light-9);--el-tag-border-color:var(--el-color-danger-light-8);--el-tag-hover-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-bg-color:var(--el-color-error-light-9);--el-tag-border-color:var(--el-color-error-light-8);--el-tag-hover-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-bg-color:var(--el-color-info-light-9);--el-tag-border-color:var(--el-color-info-light-8);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-hit{border-color:var(--el-color-primary)}.el-tag.is-round{border-radius:var(--el-tag-border-radius-rounded)}.el-tag .el-tag__close{color:var(--el-tag-text-color);flex-shrink:0}.el-tag .el-tag__close:hover{background-color:var(--el-tag-hover-color);color:var(--el-color-white)}.el-tag.el-tag--primary{--el-tag-text-color:var(--el-color-primary)}.el-tag.el-tag--success{--el-tag-text-color:var(--el-color-success)}.el-tag.el-tag--warning{--el-tag-text-color:var(--el-color-warning)}.el-tag.el-tag--danger{--el-tag-text-color:var(--el-color-danger)}.el-tag.el-tag--error{--el-tag-text-color:var(--el-color-error)}.el-tag.el-tag--info{--el-tag-text-color:var(--el-color-info)}.el-tag .el-icon{border-radius:50%;cursor:pointer;display:flex;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{background-color:transparent;border:none;border-radius:50%;margin-left:6px;outline:none;overflow:hidden;padding:0}.el-tag .el-tag__close:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:2px}.el-tag--dark{--el-tag-text-color:var(--el-color-white)}.el-tag--dark,.el-tag--dark.el-tag--primary{--el-tag-bg-color:var(--el-color-primary);--el-tag-border-color:var(--el-color-primary);--el-tag-hover-color:var(--el-color-primary-light-3)}.el-tag--dark.el-tag--success{--el-tag-bg-color:var(--el-color-success);--el-tag-border-color:var(--el-color-success);--el-tag-hover-color:var(--el-color-success-light-3)}.el-tag--dark.el-tag--warning{--el-tag-bg-color:var(--el-color-warning);--el-tag-border-color:var(--el-color-warning);--el-tag-hover-color:var(--el-color-warning-light-3)}.el-tag--dark.el-tag--danger{--el-tag-bg-color:var(--el-color-danger);--el-tag-border-color:var(--el-color-danger);--el-tag-hover-color:var(--el-color-danger-light-3)}.el-tag--dark.el-tag--error{--el-tag-bg-color:var(--el-color-error);--el-tag-border-color:var(--el-color-error);--el-tag-hover-color:var(--el-color-error-light-3)}.el-tag--dark.el-tag--info{--el-tag-bg-color:var(--el-color-info);--el-tag-border-color:var(--el-color-info);--el-tag-hover-color:var(--el-color-info-light-3)}.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info,.el-tag--dark.el-tag--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning{--el-tag-text-color:var(--el-color-white)}.el-tag--plain,.el-tag--plain.el-tag--primary{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary)}.el-tag--plain.el-tag--success{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-success-light-5);--el-tag-hover-color:var(--el-color-success)}.el-tag--plain.el-tag--warning{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-warning-light-5);--el-tag-hover-color:var(--el-color-warning)}.el-tag--plain.el-tag--danger{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-danger-light-5);--el-tag-hover-color:var(--el-color-danger)}.el-tag--plain.el-tag--error{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-error-light-5);--el-tag-hover-color:var(--el-color-error)}.el-tag--plain.el-tag--info{--el-tag-bg-color:var(--el-fill-color-blank);--el-tag-border-color:var(--el-color-info-light-5);--el-tag-hover-color:var(--el-color-info)}.el-tag.is-closable{padding-right:5px}.el-tag--large{height:32px;padding:0 11px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{height:20px;padding:0 7px;--el-icon-size:12px}.el-tag--small .el-tag__close{margin-left:4px}.el-tag--small.is-closable{padding-right:3px}.el-tag--small .el-icon-close{transform:scale(.8)}.el-tag.el-tag--primary.is-hit{border-color:var(--el-color-primary)}.el-tag.el-tag--success.is-hit{border-color:var(--el-color-success)}.el-tag.el-tag--warning.is-hit{border-color:var(--el-color-warning)}.el-tag.el-tag--danger.is-hit{border-color:var(--el-color-danger)}.el-tag.el-tag--error.is-hit{border-color:var(--el-color-error)}.el-tag.el-tag--info.is-hit{border-color:var(--el-color-info)}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-scrollbar{--el-scrollbar-opacity:.3;--el-scrollbar-bg-color:var(--el-text-color-secondary);--el-scrollbar-hover-opacity:.5;--el-scrollbar-hover-bg-color:var(--el-text-color-secondary);height:100%;overflow:hidden;position:relative}.el-scrollbar__wrap{height:100%;overflow:auto}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));border-radius:inherit;cursor:pointer;display:block;height:0;opacity:var(--el-scrollbar-opacity,.3);position:relative;transition:var(--el-transition-duration) background-color;width:0}.el-scrollbar__thumb:hover{background-color:var(--el-scrollbar-hover-bg-color,var(--el-text-color-secondary));opacity:var(--el-scrollbar-hover-opacity,.5)}.el-scrollbar__bar{border-radius:4px;bottom:2px;position:absolute;right:2px;z-index:1}.el-scrollbar__bar.is-vertical{top:2px;width:6px}.el-scrollbar__bar.is-vertical>div{width:100%}.el-scrollbar__bar.is-horizontal{height:6px;left:2px}.el-scrollbar__bar.is-horizontal>div{height:100%}.el-scrollbar-fade-enter-active{transition:opacity .34s ease-out}.el-scrollbar-fade-leave-active{transition:opacity .12s ease-out}.el-scrollbar-fade-enter-from,.el-scrollbar-fade-leave-active{opacity:0}.el-select-dropdown{border-radius:var(--el-border-radius-base);box-sizing:border-box;z-index:calc(var(--el-index-top) + 1)}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown__empty,.el-select-dropdown__loading{color:var(--el-text-color-secondary);font-size:var(--el-select-font-size);margin:0;padding:10px 0;text-align:center}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{box-sizing:border-box;list-style:none;margin:0;padding:6px 0}.el-select-dropdown__list.el-vl__window{margin:6px 0;padding:0}.el-select-dropdown__header{border-bottom:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__footer{border-top:1px solid var(--el-border-color-light);padding:10px}.el-select-dropdown__item{box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;font-size:var(--el-font-size-base);height:34px;line-height:34px;overflow:hidden;padding:0 32px 0 20px;position:relative;text-overflow:ellipsis;white-space:nowrap}.el-select-dropdown__item.is-hovering{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.is-selected{color:var(--el-color-primary);font-weight:700}.el-select-dropdown__item.is-disabled{background-color:unset;color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-selected:after{background-color:var(--el-color-primary);background-position:50%;background-repeat:no-repeat;border-right:none;border-top:none;content:"";height:12px;mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;mask-size:100% 100%;-webkit-mask:url("data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E") no-repeat;-webkit-mask-size:100% 100%;position:absolute;right:20px;top:50%;transform:translateY(-50%);width:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.is-disabled:after{background-color:var(--el-text-color-placeholder)}.el-select-group{margin:0;padding:0}.el-select-group__wrap{list-style:none;margin:0;padding:0;position:relative}.el-select-group__title{box-sizing:border-box;color:var(--el-color-info);font-size:12px;line-height:34px;overflow:hidden;padding:0 20px;text-overflow:ellipsis;white-space:nowrap}.el-select-group .el-select-dropdown__item{padding-left:20px}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--el-select-disabled-color:var(--el-disabled-text-color);--el-select-disabled-border:var(--el-disabled-border-color);--el-select-font-size:var(--el-font-size-base);--el-select-close-hover-color:var(--el-text-color-secondary);--el-select-input-color:var(--el-text-color-placeholder);--el-select-multiple-input-color:var(--el-text-color-regular);--el-select-input-focus-border-color:var(--el-color-primary);--el-select-input-font-size:14px;--el-select-width:100%;display:inline-block;position:relative;vertical-align:middle;width:var(--el-select-width)}.el-select__wrapper{align-items:center;background-color:var(--el-fill-color-blank);border-radius:var(--el-border-radius-base);box-shadow:0 0 0 1px var(--el-border-color) inset;box-sizing:border-box;cursor:pointer;display:flex;font-size:14px;gap:6px;line-height:24px;min-height:32px;padding:4px 12px;position:relative;text-align:left;transform:translateZ(0);transition:var(--el-transition-duration)}.el-select__wrapper.is-filterable{cursor:text}.el-select__wrapper.is-focused{box-shadow:0 0 0 1px var(--el-color-primary) inset}.el-select__wrapper.is-hovering:not(.is-focused){box-shadow:0 0 0 1px var(--el-border-color-hover) inset}.el-select__wrapper.is-disabled{background-color:var(--el-fill-color-light);color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select__wrapper.is-disabled,.el-select__wrapper.is-disabled:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select__wrapper.is-disabled.is-focus{box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-select__wrapper.is-disabled .el-select__selected-item{color:var(--el-select-disabled-color)}.el-select__wrapper.is-disabled .el-select__caret,.el-select__wrapper.is-disabled .el-tag,.el-select__wrapper.is-disabled input{cursor:not-allowed}.el-select__wrapper.is-disabled .el-select__prefix,.el-select__wrapper.is-disabled .el-select__suffix{pointer-events:none}.el-select__prefix,.el-select__suffix{align-items:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));display:flex;flex-shrink:0;gap:6px}.el-select__caret{color:var(--el-select-input-color);cursor:pointer;font-size:var(--el-select-input-font-size);transform:rotate(0);transition:var(--el-transition-duration)}.el-select__caret.is-reverse{transform:rotate(180deg)}.el-select__clear{cursor:pointer}.el-select__clear:hover{color:var(--el-select-close-hover-color)}.el-select__selection{align-items:center;display:flex;flex:1;flex-wrap:wrap;gap:6px;min-width:0;position:relative}.el-select__selection.is-near{margin-left:-8px}.el-select__selection .el-tag{border-color:transparent;cursor:pointer}.el-select__selection .el-tag.el-tag--plain{border-color:var(--el-tag-border-color)}.el-select__selection .el-tag .el-tag__content{min-width:0}.el-select__selected-item{display:flex;flex-wrap:wrap;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__tags-text{line-height:normal}.el-select__placeholder,.el-select__tags-text{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select__placeholder{color:var(--el-input-text-color,var(--el-text-color-regular));position:absolute;top:50%;transform:translateY(-50%);width:100%;z-index:-1}.el-select__placeholder.is-transparent{color:var(--el-text-color-placeholder);-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);box-shadow:var(--el-box-shadow-light)}.el-select__popper.el-popper,.el-select__popper.el-popper .el-popper__arrow:before{border:1px solid var(--el-border-color-light)}.el-select__popper.el-popper[data-popper-placement^=top] .el-popper__arrow:before{border-left-color:transparent;border-top-color:transparent}.el-select__popper.el-popper[data-popper-placement^=bottom] .el-popper__arrow:before{border-bottom-color:transparent;border-right-color:transparent}.el-select__popper.el-popper[data-popper-placement^=left] .el-popper__arrow:before{border-bottom-color:transparent;border-left-color:transparent}.el-select__popper.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent;border-top-color:transparent}.el-select__input-wrapper{flex:1}.el-select__input-wrapper.is-hidden{opacity:0;position:absolute;z-index:-1}.el-select__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;color:var(--el-select-multiple-input-color);font-family:inherit;font-size:inherit;height:24px;outline:none;padding:0;width:100%}.el-select__input-calculator{left:0;max-width:100%;overflow:hidden;position:absolute;top:0;visibility:hidden;white-space:pre}.el-select--large .el-select__wrapper{font-size:14px;gap:6px;line-height:24px;min-height:40px;padding:8px 16px}.el-select--large .el-select__selection{gap:6px}.el-select--large .el-select__selection.is-near{margin-left:-8px}.el-select--large .el-select__prefix,.el-select--large .el-select__suffix{gap:6px}.el-select--large .el-select__input{height:24px}.el-select--small .el-select__wrapper{font-size:12px;gap:4px;line-height:20px;min-height:24px;padding:2px 8px}.el-select--small .el-select__selection{gap:4px}.el-select--small .el-select__selection.is-near{margin-left:-6px}.el-select--small .el-select__prefix,.el-select--small .el-select__suffix{gap:4px}.el-select--small .el-select__input{height:20px}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color);align-items:center;display:inline-flex;font-size:14px;height:32px;line-height:20px;position:relative;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{color:var(--el-text-color-primary);cursor:pointer;display:inline-block;font-size:14px;font-weight:500;height:20px;transition:var(--el-transition-duration-fast);vertical-align:middle}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{display:inline-block;font-size:14px;line-height:1}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{height:0;margin:0;opacity:0;position:absolute;width:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{align-items:center;background:var(--el-switch-off-color);border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));border-radius:10px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:20px;min-width:40px;outline:none;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{align-items:center;display:flex;height:16px;justify-content:center;overflow:hidden;padding:0 4px 0 18px;transition:all var(--el-transition-duration);width:100%}.el-switch__core .el-switch__inner-wrapper{align-items:center;color:var(--el-color-white);display:flex;font-size:12px;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-switch__core .el-switch__action{align-items:center;background-color:var(--el-color-white);border-radius:var(--el-border-radius-circle);color:var(--el-switch-off-color);display:flex;height:16px;justify-content:center;left:1px;position:absolute;transition:all var(--el-transition-duration);width:16px}.el-switch.is-checked .el-switch__core{background-color:var(--el-switch-on-color);border-color:var(--el-switch-border-color,var(--el-switch-on-color))}.el-switch.is-checked .el-switch__core .el-switch__action{color:var(--el-switch-on-color);left:calc(100% - 17px)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;height:40px;line-height:24px}.el-switch--large .el-switch__label{font-size:14px;height:24px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{border-radius:12px;height:24px;min-width:50px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{height:20px;width:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;height:24px;line-height:16px}.el-switch--small .el-switch__label{font-size:12px;height:16px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{border-radius:8px;height:16px;min-width:30px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{height:12px;width:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}h3[data-v-d8908195]{margin:0}h4[data-v-d8908195],h5[data-v-d8908195]{margin-bottom:0}.tag-select[data-v-d8908195]{display:flex;justify-content:space-between;gap:32px;padding:0 8px;width:240px}.tag-select[data-v-d8908195]:hover{background-color:#646464!important}.trigger-select[data-v-d8908195]{width:30px;height:30px}[data-v-d8908195] .trigger-select .el-input__wrapper{padding:0}[data-v-d8908195] .trigger-select .el-input__suffix{width:100%}.el-carousel{--el-carousel-arrow-font-size:12px;--el-carousel-arrow-size:36px;--el-carousel-arrow-background:rgba(31,45,61,.11);--el-carousel-arrow-hover-background:rgba(31,45,61,.23);--el-carousel-indicator-width:30px;--el-carousel-indicator-height:2px;--el-carousel-indicator-padding-horizontal:4px;--el-carousel-indicator-padding-vertical:12px;--el-carousel-indicator-out-color:var(--el-border-color-hover);position:relative}.el-carousel--horizontal,.el-carousel--vertical{overflow:hidden}.el-carousel.is-vertical-outside{align-items:center;display:flex;flex-direction:row}.el-carousel.is-vertical-outside .el-carousel__container{flex:1}.el-carousel__container{height:300px;position:relative}.el-carousel__arrow{align-items:center;background-color:var(--el-carousel-arrow-background);border:none;border-radius:50%;color:#fff;cursor:pointer;display:inline-flex;font-size:var(--el-carousel-arrow-font-size);height:var(--el-carousel-arrow-size);justify-content:center;margin:0;outline:none;padding:0;position:absolute;text-align:center;top:50%;transform:translateY(-50%);transition:var(--el-transition-duration);width:var(--el-carousel-arrow-size);z-index:10}.el-carousel__arrow--left{left:16px}.el-carousel__arrow--right{right:16px}.el-carousel__arrow:hover{background-color:var(--el-carousel-arrow-hover-background)}.el-carousel__arrow i{cursor:pointer}.el-carousel__indicators{list-style:none;margin:0;padding:0;position:absolute;z-index:calc(var(--el-index-normal) + 1)}.el-carousel__indicators--horizontal{bottom:0;left:50%;transform:translate(-50%)}.el-carousel__indicators--vertical{right:0;top:50%;transform:translateY(-50%)}.el-carousel__indicators--outside{position:static;text-align:center;transform:none}.el-carousel__indicators--outside .el-carousel__indicator:hover button{opacity:.64}.el-carousel__indicators--outside button{background-color:var(--el-carousel-indicator-out-color);opacity:.24}.el-carousel__indicators--right{right:0}.el-carousel__indicators--labels .el-carousel__button{color:#000;font-size:12px;padding:2px 18px}.el-carousel__indicators--labels .el-carousel__indicator{padding:6px 4px}.el-carousel__indicator{background-color:transparent;cursor:pointer}.el-carousel__indicator:hover button{opacity:.72}.el-carousel__indicator--horizontal{display:inline-block;padding:var(--el-carousel-indicator-padding-vertical) var(--el-carousel-indicator-padding-horizontal)}.el-carousel__indicator--vertical{padding:var(--el-carousel-indicator-padding-horizontal) var(--el-carousel-indicator-padding-vertical)}.el-carousel__indicator--vertical .el-carousel__button{height:calc(var(--el-carousel-indicator-width)/2);width:var(--el-carousel-indicator-height)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{background-color:#fff;border:none;cursor:pointer;display:block;height:var(--el-carousel-indicator-height);margin:0;opacity:.48;outline:none;padding:0;transition:var(--el-transition-duration);width:var(--el-carousel-indicator-width)}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{opacity:0;transform:translateY(-50%) translate(-10px)}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{opacity:0;transform:translateY(-50%) translate(10px)}.el-transitioning{filter:url(#elCarouselHorizontal)}.el-transitioning-vertical{filter:url(#elCarouselVertical)}.el-carousel__item{display:inline-block;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%}.el-carousel__item,.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item--card,.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%}.el-carousel__item--card.is-in-stage{cursor:pointer;z-index:var(--el-index-normal)}.el-carousel__item--card.is-in-stage.is-hover .el-carousel__mask,.el-carousel__item--card.is-in-stage:hover .el-carousel__mask{opacity:.12}.el-carousel__item--card.is-active{z-index:calc(var(--el-index-normal) + 1)}.el-carousel__item--card-vertical{height:50%;width:100%}.el-carousel__mask{background-color:var(--el-color-white);height:100%;left:0;opacity:.24;position:absolute;top:0;transition:var(--el-transition-duration-fast);width:100%}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{height:100%;width:100%}.el-image{display:inline-block;overflow:hidden;position:relative}.el-image__inner{opacity:1;vertical-align:top}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{left:0;position:absolute;top:0}.el-image__error,.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{align-items:center;color:var(--el-text-color-placeholder);display:flex;font-size:14px;justify-content:center;vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{bottom:0;left:0;position:fixed;right:0;top:0}.el-image-viewer__wrapper:focus{outline:none!important}.el-image-viewer__btn{align-items:center;border-radius:50%;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;opacity:.8;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.el-image-viewer__btn .el-icon{cursor:pointer}.el-image-viewer__close{font-size:40px;height:40px;right:40px;top:40px;width:40px}.el-image-viewer__canvas{align-items:center;display:flex;height:100%;justify-content:center;position:static;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:100%}.el-image-viewer__actions{background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px;bottom:30px;height:44px;left:50%;padding:0 23px;transform:translate(-50%)}.el-image-viewer__actions__inner{align-items:center;color:#fff;cursor:default;display:flex;font-size:23px;gap:22px;height:100%;justify-content:space-around;padding:0 6px;width:100%}.el-image-viewer__actions__divider{margin:0 -6px}.el-image-viewer__progress{bottom:90px;color:#fff;cursor:default;left:50%;transform:translate(-50%)}.el-image-viewer__prev{left:40px}.el-image-viewer__next,.el-image-viewer__prev{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;top:50%;transform:translateY(-50%);width:44px}.el-image-viewer__next{right:40px;text-indent:2px}.el-image-viewer__close{background-color:var(--el-text-color-regular);border-color:#fff;color:#fff;font-size:24px;height:44px;width:44px}.el-image-viewer__mask{background:#000;height:100%;left:0;opacity:.5;position:absolute;top:0;width:100%}.el-image-viewer-parent--hidden{overflow:hidden}.viewer-fade-enter-active{animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{animation:viewer-fade-out var(--el-transition-duration)}@keyframes viewer-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}@keyframes viewer-fade-out{0%{opacity:1;transform:translateZ(0)}to{opacity:0;transform:translate3d(0,-20px,0)}}.el-divider{position:relative}.el-divider--horizontal{border-top:1px var(--el-border-color) var(--el-border-style);display:block;height:1px;margin:24px 0;width:100%}.el-divider--vertical{border-left:1px var(--el-border-color) var(--el-border-style);display:inline-block;height:1em;margin:0 8px;position:relative;vertical-align:middle;width:1px}.el-divider__text{background-color:var(--el-bg-color);color:var(--el-text-color-primary);font-size:14px;font-weight:500;padding:0 20px;position:absolute}.el-divider__text.is-left{left:20px;transform:translateY(-50%)}.el-divider__text.is-center{left:50%;transform:translate(-50%) translateY(-50%)}.el-divider__text.is-right{right:20px;transform:translateY(-50%)}.carousel-footer[data-v-2f8c767c]{position:absolute;bottom:24px;width:100%}.carousel[data-v-2f8c767c]{--el-carousel-indicator-padding-vertical: 4px;width:100%;margin:auto}.carousel-container[data-v-2f8c767c]{display:flex;width:100%;height:100%;overflow-y:auto}.back-to-generation[data-v-2f8c767c]{position:absolute;top:16px;left:16px;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--el-color-info);font-weight:500;z-index:1}.back-to-generation[data-v-2f8c767c]:hover{cursor:pointer;text-decoration:underline}@media only screen and (max-width: 1280px){.carousel-footer[data-v-2f8c767c]{bottom:5px}.carousel-footer>.el-divider[data-v-2f8c767c]{margin:5px 0}}.el-upload{--el-upload-dragger-padding-horizontal:10px;--el-upload-dragger-padding-vertical:40px;--el-upload-list-picture-card-size:var(--el-upload-picture-card-size);--el-upload-picture-card-size:148px;align-items:center;cursor:pointer;display:inline-flex;justify-content:center;outline:none}.el-upload.is-disabled{cursor:not-allowed}.el-upload.is-disabled:focus{color:inherit}.el-upload.is-disabled:focus,.el-upload.is-disabled:focus .el-upload-dragger{border-color:var(--el-border-color-darker)}.el-upload.is-disabled .el-upload-dragger{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-upload.is-disabled .el-upload-dragger .el-upload__text{color:var(--el-text-color-placeholder)}.el-upload.is-disabled .el-upload-dragger .el-upload__text em{color:var(--el-disabled-text-color)}.el-upload.is-disabled .el-upload-dragger:hover{border-color:var(--el-border-color-darker)}.el-upload__input{display:none}.el-upload__tip{color:var(--el-text-color-regular);font-size:12px;margin-top:7px}.el-upload iframe{filter:alpha(opacity=0);left:0;opacity:0;position:absolute;top:0;z-index:-1}.el-upload--picture-card{align-items:center;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:var(--el-upload-picture-card-size);justify-content:center;vertical-align:top;width:var(--el-upload-picture-card-size)}.el-upload--picture-card>i{color:var(--el-text-color-secondary);font-size:28px}.el-upload--picture-card:hover{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload.is-drag{display:block}.el-upload:focus{color:var(--el-color-primary)}.el-upload:focus,.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;cursor:pointer;overflow:hidden;padding:var(--el-upload-dragger-padding-vertical) var(--el-upload-dragger-padding-horizontal);position:relative;text-align:center}.el-upload-dragger .el-icon--upload{color:var(--el-text-color-placeholder);font-size:67px;line-height:50px;margin-bottom:16px}.el-upload-dragger+.el-upload__tip{text-align:center}.el-upload-dragger~.el-upload__files{border-top:var(--el-border);margin-top:7px;padding-top:5px}.el-upload-dragger .el-upload__text{color:var(--el-text-color-regular);font-size:14px;text-align:center}.el-upload-dragger .el-upload__text em{color:var(--el-color-primary);font-style:normal}.el-upload-dragger:hover{border-color:var(--el-color-primary)}.el-upload-dragger.is-dragover{background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary);padding:calc(var(--el-upload-dragger-padding-vertical) - 1px) calc(var(--el-upload-dragger-padding-horizontal) - 1px)}.el-upload-list{--el-upload-dragger-padding-horizontal:10px;--el-upload-dragger-padding-vertical:40px;--el-upload-list-picture-card-size:var(--el-upload-picture-card-size);--el-upload-picture-card-size:148px;list-style:none;margin:10px 0 0;padding:0;position:relative}.el-upload-list__item{border-radius:4px;box-sizing:border-box;color:var(--el-text-color-regular);font-size:14px;margin-bottom:5px;position:relative;transition:all .5s cubic-bezier(.55,0,.1,1);width:100%}.el-upload-list__item .el-progress{position:absolute;top:20px;width:100%}.el-upload-list__item .el-progress__text{position:absolute;right:0;top:-13px}.el-upload-list__item .el-progress-bar{margin-right:0;padding-right:0}.el-upload-list__item .el-icon--upload-success{color:var(--el-color-success)}.el-upload-list__item .el-icon--close{color:var(--el-text-color-regular);cursor:pointer;display:none;opacity:.75;position:absolute;right:5px;top:50%;transform:translateY(-50%);transition:opacity var(--el-transition-duration)}.el-upload-list__item .el-icon--close:hover{color:var(--el-color-primary);opacity:1}.el-upload-list__item .el-icon--close-tip{color:var(--el-color-primary);cursor:pointer;display:none;font-size:12px;font-style:normal;opacity:1;position:absolute;right:5px;top:1px}.el-upload-list__item:focus-within,.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:focus-within .el-icon--close,.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:focus-within .el-icon--close-tip,.el-upload-list__item:hover .el-icon--close-tip{right:24px}.el-upload-list__item:focus-within .el-progress__text,.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;flex-direction:column;justify-content:center;margin-left:4px;width:calc(100% - 30px)}.el-upload-list__item.is-success .el-upload-list__item-status-label{display:inline-flex}.el-upload-list__item.is-success .el-upload-list__item-name:focus,.el-upload-list__item.is-success .el-upload-list__item-name:hover{color:var(--el-color-primary);cursor:pointer}.el-upload-list__item.is-success:focus:not(:hover) .el-icon--close-tip{display:inline-block}.el-upload-list__item.is-success:active,.el-upload-list__item.is-success:not(.focusing):focus{outline-width:0}.el-upload-list__item.is-success:active .el-icon--close-tip,.el-upload-list__item.is-success:not(.focusing):focus .el-icon--close-tip{display:none}.el-upload-list__item.is-success:focus .el-upload-list__item-status-label,.el-upload-list__item.is-success:focus-within .el-upload-list__item-status-label,.el-upload-list__item.is-success:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list__item-name{align-items:center;color:var(--el-text-color-regular);display:inline-flex;font-size:var(--el-font-size-base);padding:0 4px;text-align:center;transition:color var(--el-transition-duration)}.el-upload-list__item-name .el-icon{color:var(--el-text-color-secondary);margin-right:6px}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{align-items:center;display:none;height:100%;justify-content:center;line-height:inherit;position:absolute;right:5px;top:0;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{color:var(--el-text-color-regular);display:none;font-size:12px;position:absolute;right:10px;top:0}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:inline-flex;height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;overflow:hidden;padding:0;width:var(--el-upload-list-picture-card-size)}.el-upload-list--picture-card .el-upload-list__item .el-icon--check,.el-upload-list--picture-card .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture-card .el-upload-list__item .el-icon--close{display:none}.el-upload-list--picture-card .el-upload-list__item:hover .el-upload-list__item-status-label{display:block;opacity:0}.el-upload-list--picture-card .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture-card .el-upload-list__item .el-upload-list__item-name{display:none}.el-upload-list--picture-card .el-upload-list__item-thumbnail{height:100%;-o-object-fit:contain;object-fit:contain;width:100%}.el-upload-list--picture-card .el-upload-list__item-status-label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-list--picture-card .el-upload-list__item-status-label i{font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-list--picture-card .el-upload-list__item-actions{align-items:center;background-color:var(--el-overlay-color-lighter);color:#fff;cursor:default;display:inline-flex;font-size:20px;height:100%;justify-content:center;left:0;opacity:0;position:absolute;top:0;transition:opacity var(--el-transition-duration);width:100%}.el-upload-list--picture-card .el-upload-list__item-actions span{cursor:pointer;display:none}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:16px}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{color:inherit;font-size:inherit;position:static}.el-upload-list--picture-card .el-upload-list__item-actions:hover{opacity:1}.el-upload-list--picture-card .el-upload-list__item-actions:hover span{display:inline-flex}.el-upload-list--picture-card .el-progress{bottom:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;display:flex;margin-top:10px;overflow:hidden;padding:10px;z-index:0}.el-upload-list--picture .el-upload-list__item .el-icon--check,.el-upload-list--picture .el-upload-list__item .el-icon--circle-check{color:#fff}.el-upload-list--picture .el-upload-list__item:hover .el-upload-list__item-status-label{display:inline-flex;opacity:0}.el-upload-list--picture .el-upload-list__item:hover .el-progress__text{display:block}.el-upload-list--picture .el-upload-list__item.is-success .el-upload-list__item-name i{display:none}.el-upload-list--picture .el-upload-list__item .el-icon--close{top:5px;transform:translateY(0)}.el-upload-list--picture .el-upload-list__item-thumbnail{align-items:center;background-color:var(--el-color-white);display:inline-flex;height:70px;justify-content:center;-o-object-fit:contain;object-fit:contain;position:relative;width:70px;z-index:1}.el-upload-list--picture .el-upload-list__item-status-label{background:var(--el-color-success);height:26px;position:absolute;right:-17px;text-align:center;top:-7px;transform:rotate(45deg);width:46px}.el-upload-list--picture .el-upload-list__item-status-label i{font-size:12px;margin-top:12px;transform:rotate(-45deg)}.el-upload-list--picture .el-progress{position:relative;top:-7px}.el-upload-cover{cursor:default;height:100%;left:0;overflow:hidden;position:absolute;top:0;width:100%;z-index:10}.el-upload-cover:after{content:"";display:inline-block;height:100%;vertical-align:middle}.el-upload-cover img{display:block;height:100%;width:100%}.el-upload-cover__label{background:var(--el-color-success);height:24px;right:-15px;text-align:center;top:-6px;transform:rotate(45deg);width:40px}.el-upload-cover__label i{color:#fff;font-size:12px;margin-top:11px;transform:rotate(-45deg)}.el-upload-cover__progress{display:inline-block;position:static;vertical-align:middle;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{height:100%;left:0;position:absolute;top:0;width:100%}.el-upload-cover__interact{background-color:var(--el-overlay-color-light);bottom:0;height:100%;left:0;position:absolute;text-align:center;width:100%}.el-upload-cover__interact .btn{color:#fff;cursor:pointer;display:inline-block;font-size:14px;margin-top:60px;transition:var(--el-transition-md-fade);vertical-align:middle}.el-upload-cover__interact .btn i{margin-top:0}.el-upload-cover__interact .btn span{opacity:0;transition:opacity .15s linear}.el-upload-cover__interact .btn:not(:first-child){margin-left:35px}.el-upload-cover__interact .btn:hover{transform:translateY(-13px)}.el-upload-cover__interact .btn:hover span{opacity:1}.el-upload-cover__interact .btn i{color:#fff;display:block;font-size:24px;line-height:inherit;margin:0 auto 5px}.el-upload-cover__title{background-color:#fff;bottom:0;color:var(--el-text-color-primary);font-size:14px;font-weight:400;height:36px;left:0;line-height:36px;margin:0;overflow:hidden;padding:0 10px;position:absolute;text-align:left;text-overflow:ellipsis;white-space:nowrap;width:100%}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-color-picker{display:inline-block;height:32px;line-height:normal;outline:none;position:relative;width:32px}.el-color-picker:hover:not(.is-disabled,.is-focused) .el-color-picker__trigger{border-color:var(--el-border-color-hover)}.el-color-picker:focus-visible:not(.is-disabled) .el-color-picker__trigger{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-picker.is-focused .el-color-picker__trigger{border-color:var(--el-color-primary)}.el-color-picker.is-disabled .el-color-picker__trigger{background-color:var(--el-fill-color-light);cursor:not-allowed}.el-color-picker.is-disabled .el-color-picker__color{opacity:.3}.el-color-picker--large{height:40px;width:40px}.el-color-picker--small{height:24px;width:24px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__trigger{align-items:center;border:1px solid var(--el-border-color);border-radius:4px;cursor:pointer;display:inline-flex;font-size:0;justify-content:center;padding:4px}.el-color-picker__color,.el-color-picker__trigger{box-sizing:border-box;height:100%;position:relative;width:100%}.el-color-picker__color{border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);display:block;text-align:center}.el-color-picker__color.is-alpha{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px}.el-color-picker__color-inner{align-items:center;display:inline-flex;height:100%;justify-content:center;width:100%}.el-color-picker .el-color-picker__empty{color:var(--el-text-color-secondary);font-size:12px}.el-color-picker .el-color-picker__icon{align-items:center;color:#fff;display:inline-flex;font-size:12px;justify-content:center}.el-color-picker__panel{background-color:#fff;border-radius:var(--el-border-radius-base);box-shadow:var(--el-box-shadow-light)}.el-color-picker__panel.el-popper{border:1px solid var(--el-border-color-lighter)}.el-color-picker,.el-color-picker__panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker,.dark .el-color-picker__panel{--el-color-picker-alpha-bg-a:#333333}.el-color-picker-panel{--el-colorpicker-bg-color:var(--el-bg-color-overlay);--el-fill-color-blank:var(--el-colorpicker-bg-color);background:var(--el-colorpicker-bg-color);box-sizing:content-box;padding:12px;width:300px}.el-color-picker-panel.is-border{border:1px solid var(--el-border-color-lighter);border-radius:4px}.el-color-picker-panel__wrapper{margin-bottom:6px}.el-color-picker-panel__footer{display:flex;justify-content:space-between;margin-top:12px;text-align:right}.el-color-picker-panel__footer .el-input{color:#000;font-size:12px;line-height:26px;width:160px}.el-color-picker-panel.is-disabled .el-color-hue-slider,.el-color-picker-panel.is-disabled .el-color-svpanel{cursor:not-allowed;opacity:.3}.el-color-picker-panel.is-disabled .el-color-hue-slider__thumb{cursor:not-allowed}.el-color-picker-panel.is-disabled .el-color-alpha-slider,.el-color-picker-panel.is-disabled .el-color-predefine .el-color-predefine__color-selector{cursor:not-allowed;opacity:.3}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap;gap:8px}.el-color-predefine__color-selector{border:none;border-radius:var(--el-border-radius-base);cursor:pointer;height:20px;outline:none;overflow:hidden;padding:0;width:20px}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:2px}.el-color-predefine__color-selector>div{display:flex;height:100%}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{background-color:red;box-sizing:border-box;float:right;height:12px;padding:0 2px;position:relative;width:280px}.el-color-hue-slider__bar{background:linear-gradient(90deg,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00);height:100%;position:relative}.el-color-hue-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px #0009;box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-hue-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-hue-slider.is-vertical{height:180px;padding:2px 0;width:12px}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(180deg,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-svpanel{background-image:linear-gradient(0deg,#000,rgba(0,0,0,0)),linear-gradient(90deg,#fff,rgba(255,255,255,0));height:180px;position:relative;width:280px}.el-color-svpanel__cursor{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;cursor:pointer;height:4px;position:absolute;transform:translate(-2px,-2px);width:4px}.el-color-svpanel__cursor:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:2px}.el-color-alpha-slider{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px;box-sizing:border-box;height:12px;position:relative;width:280px}.el-color-alpha-slider.is-disabled .el-color-alpha-slider__thumb{cursor:not-allowed}.el-color-alpha-slider__bar{background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%;position:relative}.el-color-alpha-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px #0009;box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-alpha-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-alpha-slider.is-vertical{height:180px;width:20px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgb(255,255,255))}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-picker-panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker-panel{--el-color-picker-alpha-bg-a:#333333}.action-buttons[data-v-3bceb40f]{display:flex;flex-direction:column;position:absolute;gap:10px;top:10px;right:10px}.action-buttons[data-v-3bceb40f]>*{width:30px;height:30px;margin:0}.canvas-container[data-v-3bceb40f]{position:relative}@media only screen and (max-width: 1280px){.canvas-container[data-v-3bceb40f]{transform:scale(.7)}}.firstIcon[data-v-97afe113]{position:absolute;right:15%;bottom:12%;opacity:.8;z-index:0}.secondIcon[data-v-97afe113]{position:absolute;left:15%;top:12%;z-index:1}.centerIcons[data-v-97afe113]{width:var(--a52249ca);height:var(--a52249ca);display:flex;align-items:center;justify-content:center}.stackedIcons[data-v-97afe113]{position:relative;width:100%;height:100%}@media only screen and (max-width: 768px){.firstIcon[data-v-97afe113]{right:30%}.secondIcon[data-v-97afe113]{left:30%}}h3[data-v-2060eb26]{margin-bottom:0}.interrogation-upload[data-v-2060eb26]{max-width:720px}:root{--sidebar-width: 70px }.small-btn{padding:6px 8px;height:unset}.generator-types{position:fixed;height:calc(100vh - 67px);top:67px}.mobile-generator-types{width:100%}.generated-image{aspect-ratio:1 / 1;width:100%;height:100%;display:flex;justify-content:center;align-items:center;padding-top:20px;padding-bottom:20px}.generated-image>.el-card__body{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-collapse,.sidebar-container{width:100%}.form{padding-left:20px;margin-left:var(--sidebar-width)}.main{grid-area:main;display:flex;justify-content:center}.generate-cancel-btn{width:80%}.sidebar{grid-area:sidebar;max-width:90%}.image{grid-area:image}.container{display:grid;height:75vh;grid-template-columns:50% 50%;grid-template-rows:40px 95%;grid-template-areas:"sidebar main" "sidebar image"}@media only screen and (max-width: 1280px){.generated-image>.el-card__body{height:100%;display:flex;justify-content:center;align-items:center}.generated-image{width:90%;height:100%;padding-top:0;padding-bottom:0}.container{display:grid;height:110vh;grid-template-rows:minmax(400px,45vh) 65px 60%;grid-template-columns:100%;gap:10px;grid-template-areas:"image" "main" "sidebar"}.sidebar{max-width:100%}.main{flex-wrap:wrap;gap:5px}.main>*{width:100%!important;margin:0!important}.reset-btn{order:1}.generate-cancel-btn{order:0}}@media only screen and (max-width: 768px){.generated-image{width:100%;height:100%;padding-top:0;padding-bottom:0}.container{grid-template-rows:minmax(400px,50vh) 65px 60%}.form{padding-top:20px;padding-left:0;margin-left:0}}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{background:var(--el-popup-modal-bg-color);height:100%;left:0;opacity:var(--el-popup-modal-opacity);position:fixed;top:0;width:100%}.el-popup-parent--hidden{overflow:hidden}.el-message-box{--el-messagebox-title-color:var(--el-text-color-primary);--el-messagebox-width:420px;--el-messagebox-border-radius:4px;--el-messagebox-box-shadow:var(--el-box-shadow);--el-messagebox-font-size:var(--el-font-size-large);--el-messagebox-content-font-size:var(--el-font-size-base);--el-messagebox-content-color:var(--el-text-color-regular);--el-messagebox-error-font-size:12px;--el-messagebox-padding-primary:12px;--el-messagebox-font-line-height:var(--el-font-line-height-primary);backface-visibility:hidden;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);box-shadow:var(--el-messagebox-box-shadow);box-sizing:border-box;display:inline-block;font-size:var(--el-messagebox-font-size);max-width:var(--el-messagebox-width);overflow:hidden;overflow-wrap:break-word;padding:var(--el-messagebox-padding-primary);position:relative;text-align:left;vertical-align:middle;width:100%}.el-message-box:focus{outline:none!important}.is-message-box .el-overlay-message-box{bottom:0;left:0;overflow:auto;padding:16px;position:fixed;right:0;text-align:center;top:0}.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;vertical-align:middle;width:0}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-message-box__header{padding-bottom:var(--el-messagebox-padding-primary)}.el-message-box__header.show-close{padding-right:calc(var(--el-messagebox-padding-primary) + var(--el-message-close-size, 16px))}.el-message-box__title{color:var(--el-messagebox-title-color);font-size:var(--el-messagebox-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__headerbtn{background:transparent;border:none;cursor:pointer;font-size:var(--el-message-close-size,16px);height:40px;outline:none;padding:0;position:absolute;right:0;top:0;width:40px}.el-message-box__headerbtn .el-message-box__close{color:var(--el-color-info);font-size:inherit}.el-message-box__headerbtn:focus .el-message-box__close,.el-message-box__headerbtn:hover .el-message-box__close{color:var(--el-color-primary)}.el-message-box__content{color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{align-items:center;display:flex;gap:12px}.el-message-box__input{padding-top:12px}.el-message-box__input div.invalid>input,.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{font-size:24px}.el-message-box__status.el-message-box-icon--primary{--el-messagebox-color:var(--el-color-primary);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--success{--el-messagebox-color:var(--el-color-success);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--info{--el-messagebox-color:var(--el-color-info);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--warning{--el-messagebox-color:var(--el-color-warning);color:var(--el-messagebox-color)}.el-message-box__status.el-message-box-icon--error{--el-messagebox-color:var(--el-color-error);color:var(--el-messagebox-color)}.el-message-box__message{margin:0;min-width:0}.el-message-box__message p{line-height:var(--el-messagebox-font-line-height);margin:0}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);line-height:var(--el-messagebox-font-line-height)}.el-message-box__btns{align-items:center;display:flex;flex-wrap:wrap;justify-content:flex-end;padding-top:var(--el-messagebox-padding-primary)}.el-message-box--center .el-message-box__title{align-items:center;display:flex;gap:6px;justify-content:center}.el-message-box--center .el-message-box__status{font-size:inherit}.el-message-box--center .el-message-box__btns,.el-message-box--center .el-message-box__container{justify-content:center}.el-message-box-parent--hidden{overflow:hidden}.fade-in-linear-enter-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration)}.fade-in-linear-leave-active .el-overlay-message-box{animation:msgbox-fade-in var(--el-transition-duration) reverse}@keyframes msgbox-fade-in{0%{opacity:0;transform:translate3d(0,-20px,0)}to{opacity:1;transform:translateZ(0)}}.compact-button[data-v-005f0de2]{padding-left:6px;padding-right:6px;margin-left:6px}.main-output-container{display:flex;justify-content:center;background-color:var(--el-fill-color-light)}.main-output{width:100%;height:512px;max-height:100%}.image-viewer{width:100%;max-width:1024px;height:72vh;display:flex;flex-direction:column}.image-viewer>.el-dialog__header{padding:12px 26px}.image-viewer>.el-dialog__body{display:flex;flex-direction:column;justify-content:space-between;gap:10px;text-align:center;word-break:keep-all;overflow-y:scroll;padding-top:0;height:100%}.image-viewer>.el-dialog__footer{border-top:1px solid var(--el-border-color);display:flex;flex-wrap:wrap;justify-content:center;row-gap:8px}@media only screen and (max-width: 1280px){.image-viewer{width:720px}}@media only screen and (max-width: 768px){.image-viewer{width:100%;height:80vh}.main-output{width:100%;height:40vh}}.el-menu--horizontal .el-menu-item[data-v-8ed673e3]:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item[data-v-8ed673e3]:not(.is-disabled):hover{background-color:transparent!important}.remove-item-styling[data-v-8ed673e3]{cursor:default;color:var(--el-menu-text-color)!important;background-color:transparent!important}.remove-item-styling[data-v-8ed673e3]:hover{cursor:default;color:var(--el-menu-text-color)!important}.view[data-v-8ed673e3]{margin-top:80px}.generator-icons[data-v-8ed673e3]{position:relative;display:inline-flex;justify-content:center;align-items:center}.generator-badge[data-v-8ed673e3]{position:absolute;bottom:9px;right:-7px;color:var(--el-color-danger)!important}.mobile-menu[data-v-8ed673e3]{z-index:100;position:fixed;bottom:0;height:50px;left:50%;transform:translate(-50%);width:100%;justify-content:center;--el-menu-bg-color: var(--el-mask-color) }.mobile-menu[data-v-8ed673e3]>*{width:60px}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:rgb(51,117,185);--el-color-primary-light-5:rgb(42,89,138);--el-color-primary-light-7:rgb(33,61,91);--el-color-primary-light-8:rgb(29,48,67);--el-color-primary-light-9:rgb(24,34,43);--el-color-primary-dark-2:rgb(102,177,255);--el-color-success:#67c23a;--el-color-success-light-3:rgb(78,142,47);--el-color-success-light-5:rgb(62,107,39);--el-color-success-light-7:rgb(45,72,31);--el-color-success-light-8:rgb(37,55,28);--el-color-success-light-9:rgb(28,37,24);--el-color-success-dark-2:rgb(133,206,97);--el-color-warning:#e6a23c;--el-color-warning-light-3:rgb(167,119,48);--el-color-warning-light-5:rgb(125,91,40);--el-color-warning-light-7:rgb(83,63,32);--el-color-warning-light-8:rgb(62,48,28);--el-color-warning-light-9:rgb(41,34,24);--el-color-warning-dark-2:rgb(235,181,99);--el-color-danger:#f56c6c;--el-color-danger-light-3:rgb(178,82,82);--el-color-danger-light-5:rgb(133,64,64);--el-color-danger-light-7:rgb(88,46,46);--el-color-danger-light-8:rgb(65,38,38);--el-color-danger-light-9:rgb(42,29,29);--el-color-danger-dark-2:rgb(247,137,137);--el-color-error:#f56c6c;--el-color-error-light-3:rgb(178,82,82);--el-color-error-light-5:rgb(133,64,64);--el-color-error-light-7:rgb(88,46,46);--el-color-error-light-8:rgb(65,38,38);--el-color-error-light-9:rgb(42,29,29);--el-color-error-dark-2:rgb(247,137,137);--el-color-info:#909399;--el-color-info-light-3:rgb(107,109,113);--el-color-info-light-5:rgb(82,84,87);--el-color-info-light-7:rgb(57,58,60);--el-color-info-light-8:rgb(45,45,47);--el-color-info-light-9:rgb(32,33,33);--el-color-info-dark-2:rgb(166,169,173);--el-box-shadow:0px 12px 32px 4px rgba(0,0,0,.36),0px 8px 20px rgba(0,0,0,.72);--el-box-shadow-light:0px 0px 12px rgba(0,0,0,.72);--el-box-shadow-lighter:0px 0px 6px rgba(0,0,0,.72);--el-box-shadow-dark:0px 16px 48px 16px rgba(0,0,0,.72),0px 12px 32px #000000,0px 8px 16px -8px #000000;--el-bg-color-page:#0a0a0a;--el-bg-color:#141414;--el-bg-color-overlay:#1d1e1f;--el-text-color-primary:#E5EAF3;--el-text-color-regular:#CFD3DC;--el-text-color-secondary:#A3A6AD;--el-text-color-placeholder:#8D9095;--el-text-color-disabled:#6C6E72;--el-border-color-darker:#636466;--el-border-color-dark:#58585B;--el-border-color:#4C4D4F;--el-border-color-light:#414243;--el-border-color-lighter:#363637;--el-border-color-extra-light:#2B2B2C;--el-fill-color-darker:#424243;--el-fill-color-dark:#39393A;--el-fill-color:#303030;--el-fill-color-light:#262727;--el-fill-color-lighter:#1D1D1D;--el-fill-color-extra-light:#191919;--el-fill-color-blank:#141414;--el-mask-color:rgba(0,0,0,.8);--el-mask-color-extra-light:rgba(0,0,0,.3)}html.dark .el-button{--el-button-disabled-text-color:rgba(255,255,255,.5)}html.dark .el-card{--el-card-bg-color:var(--el-bg-color-overlay);--el-fill-color-blank:var(--el-card-bg-color)}html.dark .el-empty{--el-empty-fill-color-0:var(--el-color-black);--el-empty-fill-color-1:#4b4b52;--el-empty-fill-color-2:#36383d;--el-empty-fill-color-3:#1e1e20;--el-empty-fill-color-4:#262629;--el-empty-fill-color-5:#202124;--el-empty-fill-color-6:#212224;--el-empty-fill-color-7:#1b1c1f;--el-empty-fill-color-8:#1c1d1f;--el-empty-fill-color-9:#18181a}html{height:100%}body{padding:0;height:calc(100% - 16px);display:flex;justify-content:center;transition:color .5s,background-color .5s;line-height:1.6;font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;font-size:15px;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#app{height:100%}#app,.menu{width:calc(100% - 8px)}@media only screen and (min-width: 1024px){#app,.menu{max-width:1024px}}@media only screen and (min-width: 1280px){#app,.menu{max-width:1280px}}@media only screen and (min-width: 1536px){#app,.menu{max-width:1536px}}.image-notification{padding:25px!important;width:310px!important;justify-content:space-evenly;user-select:none}.image-notification>.el-notification__icon{height:auto!important;width:auto!important;align-items:start!important}.center-both{display:flex;justify-content:center;align-items:center}.center-horizontal{display:flex;justify-content:center}.center-vertical{display:flex;align-items:center}.menu-container{width:100%;z-index:100;padding-top:4px;backdrop-filter:blur(4px);display:flex;justify-content:center;border-bottom:solid 1px var(--el-menu-border-color);position:fixed;top:0;left:0}html.dark .menu-container{background-color:#00000080}html.light .menu-container{background-color:#ffffff80}.menu{border-bottom:0;background-color:transparent}*{scrollbar-width:auto;scrollbar-color:rgba(163,166,173,.3) transparent}*::-webkit-scrollbar{width:12px}*::-webkit-scrollbar-thumb{background-color:#a3a6ad4d;border-radius:10px;border:3px none transparent}*::-webkit-scrollbar-thumb:hover{background-color:#a3a6ad80}#extra_image_input::file-selector-button{visibility:hidden}.thumbnail[data-v-2920607f]{display:block;width:100%;height:100%;border-radius:4px}.thumbnail[data-v-2920607f]:hover{cursor:pointer}.relative[data-v-2920607f]{position:relative}.image-action[data-v-2920607f]{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.starred-icon[data-v-2920607f]{position:absolute;left:5px;top:5px}.select-container[data-v-2920607f]{position:absolute;width:100%;height:100%;pointer-events:all}.select-icon[data-v-2920607f]{position:absolute;right:5px;top:5px}.el-empty{--el-empty-padding:40px 0;--el-empty-image-width:160px;--el-empty-description-margin-top:20px;--el-empty-bottom-margin-top:20px;--el-empty-fill-color-0:var(--el-color-white);--el-empty-fill-color-1:#fcfcfd;--el-empty-fill-color-2:#f8f9fb;--el-empty-fill-color-3:#f7f8fc;--el-empty-fill-color-4:#eeeff3;--el-empty-fill-color-5:#edeef2;--el-empty-fill-color-6:#e9ebef;--el-empty-fill-color-7:#e5e7e9;--el-empty-fill-color-8:#e0e3e9;--el-empty-fill-color-9:#d5d7de;align-items:center;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;padding:var(--el-empty-padding);text-align:center}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{height:100%;-o-object-fit:contain;object-fit:contain;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:top;width:100%}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;height:100%;vertical-align:top;width:100%}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{color:var(--el-text-color-secondary);font-size:var(--el-font-size-base);margin:0}.el-empty__bottom{margin-top:var(--el-empty-bottom-margin-top)}.el-pagination{--el-pagination-font-size:14px;--el-pagination-bg-color:var(--el-fill-color-blank);--el-pagination-text-color:var(--el-text-color-primary);--el-pagination-border-radius:2px;--el-pagination-button-color:var(--el-text-color-primary);--el-pagination-button-width:32px;--el-pagination-button-height:32px;--el-pagination-button-disabled-color:var(--el-text-color-placeholder);--el-pagination-button-disabled-bg-color:var(--el-fill-color-blank);--el-pagination-button-bg-color:var(--el-fill-color);--el-pagination-hover-color:var(--el-color-primary);--el-pagination-font-size-small:12px;--el-pagination-button-width-small:24px;--el-pagination-button-height-small:24px;--el-pagination-button-width-large:40px;--el-pagination-button-height-large:40px;--el-pagination-item-gap:16px;align-items:center;color:var(--el-pagination-text-color);display:flex;font-size:var(--el-pagination-font-size);font-weight:400;white-space:nowrap}.el-pagination .el-input__inner{-moz-appearance:textfield;text-align:center}.el-pagination .el-select{width:128px}.el-pagination .btn-next,.el-pagination .btn-prev{align-items:center;background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;display:flex;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pagination .btn-next *,.el-pagination .btn-prev *{pointer-events:none}.el-pagination .btn-next:focus,.el-pagination .btn-prev:focus{outline:none}.el-pagination .btn-next:hover,.el-pagination .btn-prev:hover{color:var(--el-pagination-hover-color)}.el-pagination .btn-next.is-active,.el-pagination .btn-prev.is-active{color:var(--el-pagination-hover-color);cursor:default;font-weight:700}.el-pagination .btn-next.is-active.is-disabled,.el-pagination .btn-prev.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pagination .btn-next.is-disabled,.el-pagination .btn-next:disabled,.el-pagination .btn-prev.is-disabled,.el-pagination .btn-prev:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pagination .btn-next:focus-visible,.el-pagination .btn-prev:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination>.is-first{margin-left:0!important}.el-pagination>.is-last{margin-right:0!important}.el-pagination .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination__sizes,.el-pagination__total{color:var(--el-text-color-regular);font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{align-items:center;color:var(--el-text-color-regular);display:flex;font-weight:400;margin-left:var(--el-pagination-item-gap)}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__goto{margin-right:8px}.el-pagination__editor{box-sizing:border-box;text-align:center}.el-pagination__editor.el-input{width:56px}.el-pagination__editor .el-input__inner::-webkit-inner-spin-button,.el-pagination__editor .el-input__inner::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.el-pagination__classifier{margin-left:8px}.el-pagination__rightwrapper{align-items:center;display:flex;flex:1;justify-content:flex-end}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{background-color:var(--el-pagination-button-bg-color);margin:0 4px}.el-pagination.is-background .btn-next.is-active,.el-pagination.is-background .btn-prev.is-active,.el-pagination.is-background .el-pager li.is-active{background-color:var(--el-color-primary);color:var(--el-color-white)}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .btn-prev:disabled,.el-pagination.is-background .el-pager li.is-disabled,.el-pagination.is-background .el-pager li:disabled{background-color:var(--el-disabled-bg-color);color:var(--el-text-color-placeholder)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-next:disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .btn-prev:disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active,.el-pagination.is-background .el-pager li:disabled.is-active{background-color:var(--el-fill-color-dark);color:var(--el-text-color-secondary)}.el-pagination.is-background .btn-prev{margin-left:var(--el-pagination-item-gap)}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li{font-size:var(--el-pagination-font-size-small);height:var(--el-pagination-button-height-small);line-height:var(--el-pagination-button-height-small);min-width:var(--el-pagination-button-width-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){font-size:var(--el-pagination-font-size-small)}.el-pagination--small .el-select{width:100px}.el-pagination--large .btn-next,.el-pagination--large .btn-prev,.el-pagination--large .el-pager li{height:var(--el-pagination-button-height-large);line-height:var(--el-pagination-button-height-large);min-width:var(--el-pagination-button-width-large)}.el-pagination--large .el-select .el-input{width:160px}.el-pager{font-size:0;list-style:none;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.el-pager,.el-pager li{align-items:center;display:flex}.el-pager li{background:var(--el-pagination-bg-color);border:none;border-radius:var(--el-pagination-border-radius);box-sizing:border-box;color:var(--el-pagination-button-color);cursor:pointer;font-size:var(--el-pagination-font-size);height:var(--el-pagination-button-height);justify-content:center;line-height:var(--el-pagination-button-height);min-width:var(--el-pagination-button-width);padding:0 4px;text-align:center}.el-pager li *{pointer-events:none}.el-pager li:focus{outline:none}.el-pager li.is-active,.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{cursor:default;font-weight:700}.el-pager li.is-active.is-disabled{color:var(--el-text-color-secondary);font-weight:700}.el-pager li.is-disabled,.el-pager li:disabled{background-color:var(--el-pagination-button-disabled-bg-color);color:var(--el-pagination-button-disabled-color);cursor:not-allowed}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color);outline-offset:-1px}.el-popover{--el-popover-bg-color:var(--el-bg-color-overlay);--el-popover-font-size:var(--el-font-size-base);--el-popover-border-color:var(--el-border-color-lighter);--el-popover-padding:12px;--el-popover-padding-large:18px 20px;--el-popover-title-font-size:16px;--el-popover-title-text-color:var(--el-text-color-primary);--el-popover-border-radius:4px}.el-popover.el-popper{background:var(--el-popover-bg-color);border:1px solid var(--el-popover-border-color);border-radius:var(--el-popover-border-radius);box-shadow:var(--el-box-shadow-light);box-sizing:border-box;color:var(--el-text-color-regular);font-size:var(--el-popover-font-size);line-height:1.4;min-width:150px;overflow-wrap:break-word;padding:var(--el-popover-padding);z-index:var(--el-index-popper)}.el-popover.el-popper--plain{padding:var(--el-popover-padding-large)}.el-popover__title{color:var(--el-popover-title-text-color);font-size:var(--el-popover-title-font-size);line-height:1;margin-bottom:12px}.el-popover__reference:focus:hover,.el-popover__reference:focus:not(.focusing){outline-width:0}.el-popover.el-popper.is-dark{--el-popover-bg-color:var(--el-text-color-primary);--el-popover-border-color:var(--el-text-color-primary);--el-popover-title-text-color:var(--el-bg-color);color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.images[data-v-b9913ae1]{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}.selected[data-v-b9913ae1]{color:var(--el-color-primary);text-decoration:underline;background-color:#262626}.btn-select[data-v-b9913ae1]{width:48px;height:32px}.options[data-v-b9913ae1]{display:flex;align-items:center;gap:8px}.options[data-v-b9913ae1]>*{margin:0}.images-top-bar[data-v-b9913ae1]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px;position:sticky;top:60px;z-index:99;padding:8px;background-color:color-mix(in srgb,var(--el-bg-color-overlay) 60%,transparent);border-bottom:1px solid var(--el-border-color);transition:transform .3s ease-in-out}.images-top-bar.mobile-hidden[data-v-b9913ae1]{transform:translateY(-100%)}.images-top-bar[data-v-b9913ae1]>*{width:100%;display:flex;justify-content:center;text-align:center;white-space:nowrap;flex-grow:0}.bottom-pagination[data-v-b9913ae1]{display:none}@media only screen and (max-width: 768px){.images-top-bar[data-v-b9913ae1]{top:0;flex-wrap:wrap}.bottom-pagination[data-v-b9913ae1]{margin-bottom:50px;display:flex}}.el-tabs{--el-tabs-header-height:40px;display:flex}.el-tabs__header{align-items:center;display:flex;justify-content:space-between;margin:0 0 15px;padding:0;position:relative}.el-tabs__header-vertical{flex-direction:column}.el-tabs__active-bar{background-color:var(--el-color-primary);bottom:0;height:2px;left:0;list-style:none;position:absolute;transition:width var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),transform var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);z-index:1}.el-tabs__active-bar.is-bottom{bottom:auto}.el-tabs__new-tab{align-items:center;border:1px solid var(--el-border-color);border-radius:3px;color:var(--el-text-color-primary);cursor:pointer;display:flex;flex-shrink:0;font-size:12px;height:20px;justify-content:center;line-height:20px;margin:10px 0 10px 10px;text-align:center;transition:all .15s;width:20px}.el-tabs__new-tab .is-icon-plus{height:inherit;transform:scale(.8);width:inherit}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__new-tab-vertical{margin-left:0}.el-tabs__nav-wrap{flex:1 auto;margin-bottom:-1px;overflow:hidden;position:relative}.el-tabs__nav-wrap:after{background-color:var(--el-border-color-light);bottom:0;content:"";height:2px;left:0;position:absolute;width:100%;z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-bottom:after{bottom:auto;top:0}.el-tabs__nav-wrap.is-scrollable{box-sizing:border-box;padding:0 20px}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{color:var(--el-text-color-secondary);cursor:pointer;font-size:12px;line-height:44px;position:absolute;text-align:center;width:20px}.el-tabs__nav-next.is-disabled,.el-tabs__nav-prev.is-disabled{color:var(--el-text-color-disabled);cursor:not-allowed}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{display:flex;float:left;position:relative;transition:transform var(--el-transition-duration);white-space:nowrap;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{display:flex;min-width:100%}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{align-items:center;box-sizing:border-box;color:var(--el-text-color-primary);display:flex;font-size:var(--el-font-size-base);font-weight:500;height:var(--el-tabs-header-height);justify-content:center;list-style:none;padding:0 20px;position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:none}.el-tabs__item:focus-visible{border-radius:3px;box-shadow:0 0 2px 2px var(--el-color-primary) inset}.el-tabs__item .is-icon-close{border-radius:50%;margin-left:5px;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs__item .is-icon-close:before{display:inline-block;transform:scale(.9)}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item.is-active,.el-tabs__item:hover{color:var(--el-color-primary)}.el-tabs__item:hover{cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{flex-grow:1;overflow:hidden;position:relative}.el-tabs--bottom>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:0}.el-tabs--bottom>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top>.el-tabs__header .el-tabs__item:last-child{padding-right:0}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:nth-child(2){padding-left:20px}.el-tabs--bottom.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom.el-tabs--card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--border-card>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top.el-tabs--card>.el-tabs__header .el-tabs__item:last-child{padding-right:20px}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);box-sizing:border-box;height:var(--el-tabs-header-height)}.el-tabs--card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--card>.el-tabs__header .el-tabs__nav{border:1px solid var(--el-border-color-light);border-bottom:none;border-radius:4px 4px 0 0;box-sizing:border-box}.el-tabs--card>.el-tabs__header .el-tabs__active-bar{display:none}.el-tabs--card>.el-tabs__header .el-tabs__item .is-icon-close{font-size:12px;height:14px;overflow:hidden;position:relative;right:-2px;transform-origin:100% 50%;width:0}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);margin-top:-1px;transition:color var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier),padding var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--card>.el-tabs__header .el-tabs__item:first-child{border-left:none}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover{padding-left:13px;padding-right:13px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-closable:hover .is-icon-close{width:14px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active{border-bottom-color:var(--el-bg-color)}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable{padding-left:20px;padding-right:20px}.el-tabs--card>.el-tabs__header .el-tabs__item.is-active.is-closable .is-icon-close{width:14px}.el-tabs--border-card{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color)}.el-tabs--border-card>.el-tabs__content{padding:15px}.el-tabs--border-card>.el-tabs__header{background-color:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color-light);margin:0}.el-tabs--border-card>.el-tabs__header .el-tabs__nav-wrap:after{content:none}.el-tabs--border-card>.el-tabs__header .el-tabs__item{border:1px solid transparent;color:var(--el-text-color-secondary);margin-top:-1px;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier)}.el-tabs--border-card>.el-tabs__header .el-tabs__item+.el-tabs__item,.el-tabs--border-card>.el-tabs__header .el-tabs__item:first-child{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{background-color:var(--el-bg-color-overlay);border-left-color:var(--el-border-color);border-right-color:var(--el-border-color);color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item:not(.is-disabled):hover{color:var(--el-color-primary)}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-disabled{color:var(--el-disabled-text-color)}.el-tabs--border-card>.el-tabs__header .is-scrollable .el-tabs__item:first-child{margin-left:0}.el-tabs--bottom{flex-direction:column}.el-tabs--bottom .el-tabs__header.is-bottom{margin-bottom:0;margin-top:10px}.el-tabs--bottom.el-tabs--border-card .el-tabs__header.is-bottom{border-bottom:0;border-top:1px solid var(--el-border-color)}.el-tabs--bottom.el-tabs--border-card .el-tabs__nav-wrap.is-bottom{margin-bottom:0;margin-top:-1px}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom:not(.is-active){border:1px solid transparent}.el-tabs--bottom.el-tabs--border-card .el-tabs__item.is-bottom{margin:0 -1px -1px}.el-tabs--left,.el-tabs--right{overflow:hidden}.el-tabs--left .el-tabs__header.is-left,.el-tabs--left .el-tabs__header.is-right,.el-tabs--left .el-tabs__nav-scroll,.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__header.is-left,.el-tabs--right .el-tabs__header.is-right,.el-tabs--right .el-tabs__nav-scroll,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{height:100%}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__active-bar.is-right,.el-tabs--right .el-tabs__active-bar.is-left,.el-tabs--right .el-tabs__active-bar.is-right{bottom:auto;height:auto;top:0;width:2px}.el-tabs--left .el-tabs__nav-wrap.is-left,.el-tabs--left .el-tabs__nav-wrap.is-right,.el-tabs--right .el-tabs__nav-wrap.is-left,.el-tabs--right .el-tabs__nav-wrap.is-right{margin-bottom:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{cursor:pointer;height:30px;line-height:30px;text-align:center;width:100%}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next i,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev i{transform:rotate(90deg)}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next.is-disabled,.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev.is-disabled,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next.is-disabled,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev.is-disabled,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next.is-disabled,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev.is-disabled,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next.is-disabled,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev.is-disabled{cursor:not-allowed}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-prev,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-prev{left:auto;top:0}.el-tabs--left .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--left .el-tabs__nav-wrap.is-right>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-left>.el-tabs__nav-next,.el-tabs--right .el-tabs__nav-wrap.is-right>.el-tabs__nav-next{bottom:0;right:auto}.el-tabs--left .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--left .el-tabs__nav-wrap.is-right.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-left.is-scrollable,.el-tabs--right .el-tabs__nav-wrap.is-right.is-scrollable{padding:30px 0}.el-tabs--left .el-tabs__nav-wrap.is-left:after,.el-tabs--left .el-tabs__nav-wrap.is-right:after,.el-tabs--right .el-tabs__nav-wrap.is-left:after,.el-tabs--right .el-tabs__nav-wrap.is-right:after{bottom:auto;height:100%;top:0;width:2px}.el-tabs--left .el-tabs__nav.is-left,.el-tabs--left .el-tabs__nav.is-right,.el-tabs--right .el-tabs__nav.is-left,.el-tabs--right .el-tabs__nav.is-right{flex-direction:column}.el-tabs--left .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-left{justify-content:flex-end}.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-right{justify-content:flex-start}.el-tabs--left{flex-direction:row}.el-tabs--left .el-tabs__header.is-left{margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__active-bar.is-left,.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__item.is-left{text-align:right}.el-tabs--left.el-tabs--card .el-tabs__active-bar.is-left{display:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left{border-bottom:none;border-left:none;border-right:1px solid var(--el-border-color-light);border-top:1px solid var(--el-border-color-light);text-align:left}.el-tabs--left.el-tabs--card .el-tabs__item.is-left:first-child{border-right:1px solid var(--el-border-color-light);border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:none;border-right:1px solid #fff}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:first-child{border-top:none}.el-tabs--left.el-tabs--card .el-tabs__item.is-left.is-active:last-child{border-bottom:none}.el-tabs--left.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-radius:4px 0 0 4px;border-right:none}.el-tabs--left.el-tabs--card .el-tabs__new-tab{float:none}.el-tabs--left.el-tabs--border-card .el-tabs__header.is-left{border-right:1px solid var(--el-border-color)}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left{border:1px solid transparent;margin:-1px 0 -1px -1px}.el-tabs--left.el-tabs--border-card .el-tabs__item.is-left.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--left>.el-tabs__content+.el-tabs__header{order:-1}.el-tabs--right .el-tabs__header.is-right{margin-bottom:0;margin-left:10px}.el-tabs--right .el-tabs__nav-wrap.is-right{margin-left:-1px}.el-tabs--right .el-tabs__nav-wrap.is-right:after{left:0;right:auto}.el-tabs--right .el-tabs__active-bar.is-right{left:0}.el-tabs--right.el-tabs--card .el-tabs__active-bar.is-right{display:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right{border-bottom:none;border-top:1px solid var(--el-border-color-light)}.el-tabs--right.el-tabs--card .el-tabs__item.is-right:first-child{border-left:1px solid var(--el-border-color-light);border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active{border:1px solid var(--el-border-color-light);border-bottom:none;border-left:1px solid #fff;border-right:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:first-child{border-top:none}.el-tabs--right.el-tabs--card .el-tabs__item.is-right.is-active:last-child{border-bottom:none}.el-tabs--right.el-tabs--card .el-tabs__nav{border-bottom:1px solid var(--el-border-color-light);border-left:none;border-radius:0 4px 4px 0}.el-tabs--right.el-tabs--border-card .el-tabs__header.is-right{border-left:1px solid var(--el-border-color)}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right{border:1px solid transparent;margin:-1px -1px -1px 0}.el-tabs--right.el-tabs--border-card .el-tabs__item.is-right.is-active{border-color:rgb(209,219,229) transparent}.el-tabs--top{flex-direction:column}.el-tabs--top>.el-tabs__content+.el-tabs__header{order:-1}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{animation:slideInRight-leave var(--el-transition-duration);left:0;position:absolute;right:0}.slideInLeft-enter{animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{animation:slideInLeft-leave var(--el-transition-duration);left:0;position:absolute;right:0}@keyframes slideInRight-enter{0%{opacity:0;transform:translate(100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInRight-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(100%);transform-origin:0 0}}@keyframes slideInLeft-enter{0%{opacity:0;transform:translate(-100%);transform-origin:0 0}to{opacity:1;transform:translate(0);transform-origin:0 0}}@keyframes slideInLeft-leave{0%{opacity:1;transform:translate(0);transform-origin:0 0}to{opacity:0;transform:translate(-100%);transform-origin:0 0}}.el-radio{--el-radio-font-size:var(--el-font-size-base);--el-radio-text-color:var(--el-text-color-regular);--el-radio-font-weight:var(--el-font-weight-primary);--el-radio-input-height:14px;--el-radio-input-width:14px;--el-radio-input-border-radius:var(--el-border-radius-circle);--el-radio-input-bg-color:var(--el-fill-color-blank);--el-radio-input-border:var(--el-border);--el-radio-input-border-color:var(--el-border-color);--el-radio-input-border-color-hover:var(--el-color-primary);align-items:center;color:var(--el-radio-text-color);cursor:pointer;display:inline-flex;font-size:var(--el-font-size-base);font-weight:var(--el-radio-font-weight);height:32px;margin-right:30px;outline:none;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-radio.el-radio--large{height:40px}.el-radio.el-radio--small{height:24px}.el-radio.is-bordered{border:var(--el-border);border-radius:var(--el-border-radius-base);box-sizing:border-box;padding:0 15px 0 9px}.el-radio.is-bordered.is-checked{border-color:var(--el-color-primary)}.el-radio.is-bordered.is-disabled{border-color:var(--el-border-color-lighter);cursor:not-allowed}.el-radio.is-bordered.el-radio--large{border-radius:var(--el-border-radius-base);padding:0 19px 0 11px}.el-radio.is-bordered.el-radio--large .el-radio__label{font-size:var(--el-font-size-base)}.el-radio.is-bordered.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.is-bordered.el-radio--small{border-radius:var(--el-border-radius-base);padding:0 11px 0 7px}.el-radio.is-bordered.el-radio--small .el-radio__label{font-size:12px}.el-radio.is-bordered.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio:last-child{margin-right:0}.el-radio__input{cursor:pointer;display:inline-flex;outline:none;position:relative;vertical-align:middle;white-space:nowrap}.el-radio__input.is-disabled .el-radio__inner{border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled .el-radio__inner,.el-radio__input.is-disabled .el-radio__inner:after{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.el-radio__input.is-disabled .el-radio__inner+.el-radio__label{cursor:not-allowed}.el-radio__input.is-disabled.is-checked .el-radio__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color)}.el-radio__input.is-disabled.is-checked .el-radio__inner:after{background-color:var(--el-text-color-placeholder)}.el-radio__input.is-disabled+span.el-radio__label{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-radio__input.is-checked .el-radio__inner{background:var(--el-color-primary);border-color:var(--el-color-primary)}.el-radio__input.is-checked .el-radio__inner:after{background-color:var(--el-color-white);transform:translate(-50%,-50%) scale(1)}.el-radio__input.is-checked+.el-radio__label{color:var(--el-color-primary)}.el-radio__input.is-focus .el-radio__inner{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner{background-color:var(--el-radio-input-bg-color);border:var(--el-radio-input-border);border-radius:var(--el-radio-input-border-radius);box-sizing:border-box;cursor:pointer;display:inline-block;height:var(--el-radio-input-height);position:relative;transition:all .3s;width:var(--el-radio-input-width)}.el-radio__inner:hover{border-color:var(--el-radio-input-border-color-hover)}.el-radio__inner:after{border-radius:var(--el-radio-input-border-radius);content:"";height:4px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .15s ease-in;width:4px}.el-radio__original{bottom:0;left:0;margin:0;opacity:0;outline:none;position:absolute;right:0;top:0;z-index:-1}.el-radio__original:focus-visible+.el-radio__inner{border-radius:var(--el-radio-input-border-radius);outline:2px solid var(--el-radio-input-border-color-hover);outline-offset:1px}.el-radio:focus:not(:focus-visible):not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner{box-shadow:0 0 2px 2px var(--el-radio-input-border-color-hover)}.el-radio__label{font-size:var(--el-radio-font-size);padding-left:8px}.el-radio.el-radio--large .el-radio__label{font-size:14px}.el-radio.el-radio--large .el-radio__inner{height:14px;width:14px}.el-radio.el-radio--small .el-radio__label{font-size:12px}.el-radio.el-radio--small .el-radio__inner{height:12px;width:12px}.el-radio-group{align-items:center;display:inline-flex;flex-wrap:wrap;font-size:0}.el-radio-button{--el-radio-button-checked-bg-color:var(--el-color-primary);--el-radio-button-checked-text-color:var(--el-color-white);--el-radio-button-checked-border-color:var(--el-color-primary);--el-radio-button-disabled-checked-fill:var(--el-border-color-extra-light);display:inline-block;outline:none;position:relative}.el-radio-button__inner{-webkit-appearance:none;background:var(--el-button-bg-color,var(--el-fill-color-blank));border-radius:0;box-sizing:border-box;color:var(--el-button-text-color,var(--el-text-color-regular));cursor:pointer;display:inline-block;font-size:var(--el-font-size-base);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));line-height:1;margin:0;outline:var(--el-border);padding:8px 15px;position:relative;text-align:center;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;white-space:nowrap}.el-radio-button__inner.is-round{padding:8px 15px}.el-radio-button__inner:hover{color:var(--el-color-primary)}.el-radio-button__inner [class*=el-icon-]{line-height:.9}.el-radio-button__inner [class*=el-icon-]+span{margin-left:5px}.el-radio-button:first-child .el-radio-button__inner{border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button.is-active .el-radio-button__original-radio:not(:disabled)+.el-radio-button__inner{background-color:var(--el-radio-button-checked-bg-color,var(--el-color-primary));border-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));box-shadow:-1px 0 0 0 var(--el-radio-button-checked-border-color,var(--el-color-primary));color:var(--el-radio-button-checked-text-color,var(--el-color-white))}.el-radio-button__original-radio{opacity:0;outline:none;position:absolute;z-index:-1}.el-radio-button__original-radio:focus-visible+.el-radio-button__inner{border-left:var(--el-border);border-left-color:var(--el-radio-button-checked-border-color,var(--el-color-primary));border-radius:var(--el-border-radius-base);box-shadow:none;outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2}.el-radio-button__original-radio:disabled+.el-radio-button__inner{background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));background-image:none;border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none;color:var(--el-disabled-text-color);cursor:not-allowed}.el-radio-button__original-radio:disabled:checked+.el-radio-button__inner{background-color:var(--el-radio-button-disabled-checked-fill)}.el-radio-button:last-child .el-radio-button__inner{border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0}.el-radio-button:first-child:last-child .el-radio-button__inner{border-radius:var(--el-border-radius-base)}.el-radio-button--large .el-radio-button__inner{border-radius:0;font-size:var(--el-font-size-base);padding:12px 19px}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{border-radius:0;font-size:12px;padding:5px 11px}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.anon[data-v-0a002ec9]{width:80px}.el-tab-pane[data-v-0a002ec9]{max-width:600px}h2[data-v-0a002ec9]{margin-top:0}.apikey[data-v-0a002ec9]{width:calc(100% - 80px)}@media only screen and (max-width: 1000px){.anon[data-v-0a002ec9]{width:80px}.apikey[data-v-0a002ec9]{width:100%}}</style>
</head>
<body>
<div id="app"></div>
<script>window.history.pushState=window.history.replaceState=function(){};</script>
</body>
</html>