mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
519 lines
1.2 MiB
519 lines
1.2 MiB
<!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 for KoboldCpp</title>
|
||
<script type="module" crossorigin>var j2=Object.defineProperty;var V2=(e,t,n)=>t in e?j2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ug=(e,t,n)=>(V2(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 m of l.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&r(m)}).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)}})();function vh(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const H2="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",U2=vh(H2);function gy(e){return!!e||e===""}function Fe(e){if(je(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Ye(r)?X2(r):Fe(r);if(i)for(const l in i)t[l]=i[l]}return t}else{if(Ye(e))return e;if(Qe(e))return e}}const W2=/;(?![^(]*\))/g,Y2=/:(.+)/;function X2(e){const t={};return e.split(W2).forEach(n=>{if(n){const r=n.split(Y2);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function fe(e){let t="";if(Ye(e))t=e;else if(je(e))for(let n=0;n<e.length;n++){const r=fe(e[n]);r&&(t+=r+" ")}else if(Qe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function K2(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Su(e[r],t[r]);return n}function Su(e,t){if(e===t)return!0;let n=cg(e),r=cg(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=ys(e),r=ys(t),n||r)return e===t;if(n=je(e),r=je(t),n||r)return n&&r?K2(e,t):!1;if(n=Qe(e),r=Qe(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 m in e){const a=e.hasOwnProperty(m),o=t.hasOwnProperty(m);if(a&&!o||!a&&o||!Su(e[m],t[m]))return!1}}return String(e)===String(t)}const Ae=e=>Ye(e)?e:e==null?"":je(e)||Qe(e)&&(e.toString===yy||!Ve(e.toString))?JSON.stringify(e,vy,2):String(e),vy=(e,t)=>t&&t.__v_isRef?vy(e,t.value):Go(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:my(t)?{[`Set(${t.size})`]:[...t.values()]}:Qe(t)&&!je(t)&&!by(t)?String(t):t,xt={},Ko=[],it=()=>{},G2=()=>!1,q2=/^on[^a-z]/,rc=e=>q2.test(e),mh=e=>e.startsWith("onUpdate:"),Ut=Object.assign,yh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Z2=Object.prototype.hasOwnProperty,Ge=(e,t)=>Z2.call(e,t),je=Array.isArray,Go=e=>rl(e)==="[object Map]",my=e=>rl(e)==="[object Set]",cg=e=>rl(e)==="[object Date]",Ve=e=>typeof e=="function",Ye=e=>typeof e=="string",ys=e=>typeof e=="symbol",Qe=e=>e!==null&&typeof e=="object",xu=e=>Qe(e)&&Ve(e.then)&&Ve(e.catch),yy=Object.prototype.toString,rl=e=>yy.call(e),tu=e=>rl(e).slice(8,-1),by=e=>rl(e)==="[object Object]",bh=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,nu=vh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ic=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},J2=/-(\w)/g,Qn=ic(e=>e.replace(J2,(t,n)=>n?n.toUpperCase():"")),Q2=/\B([A-Z])/g,wo=ic(e=>e.replace(Q2,"-$1").toLowerCase()),il=ic(e=>e.charAt(0).toUpperCase()+e.slice(1)),ru=ic(e=>e?`on${il(e)}`:""),bs=(e,t)=>!Object.is(e,t),iu=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Tu=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ku=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fg;const eC=()=>fg||(fg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let xn;class _y{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&xn&&(this.parent=xn,this.index=(xn.scopes||(xn.scopes=[])).push(this)-1)}run(t){if(this.active){const n=xn;try{return xn=this,t()}finally{xn=n}}}on(){xn=this}off(){xn=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.active=!1}}}function _h(e){return new _y(e)}function tC(e,t=xn){t&&t.active&&t.effects.push(e)}function wy(){return xn}function wh(e){xn&&xn.cleanups.push(e)}const Ch=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Cy=e=>(e.w&xi)>0,Sy=e=>(e.n&xi)>0,nC=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=xi},rC=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];Cy(i)&&!Sy(i)?i.delete(e):t[n++]=i,i.w&=~xi,i.n&=~xi}t.length=n}},Wf=new WeakMap;let Ha=0,xi=1;const Yf=30;let Kn;const io=Symbol(""),Xf=Symbol("");class Sh{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,tC(this,r)}run(){if(!this.active)return this.fn();let t=Kn,n=yi;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Kn,Kn=this,yi=!0,xi=1<<++Ha,Ha<=Yf?nC(this):dg(this),this.fn()}finally{Ha<=Yf&&rC(this),xi=1<<--Ha,Kn=this.parent,yi=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Kn===this?this.deferStop=!0:this.active&&(dg(this),this.onStop&&this.onStop(),this.active=!1)}}function dg(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let yi=!0;const xy=[];function Co(){xy.push(yi),yi=!1}function So(){const e=xy.pop();yi=e===void 0?!0:e}function In(e,t,n){if(yi&&Kn){let r=Wf.get(e);r||Wf.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=Ch()),Ty(i)}}function Ty(e,t){let n=!1;Ha<=Yf?Sy(e)||(e.n|=xi,n=!Cy(e)):n=!e.has(Kn),n&&(e.add(Kn),Kn.deps.push(e))}function Vr(e,t,n,r,i,l){const m=Wf.get(e);if(!m)return;let a=[];if(t==="clear")a=[...m.values()];else if(n==="length"&&je(e))m.forEach((o,u)=>{(u==="length"||u>=r)&&a.push(o)});else switch(n!==void 0&&a.push(m.get(n)),t){case"add":je(e)?bh(n)&&a.push(m.get("length")):(a.push(m.get(io)),Go(e)&&a.push(m.get(Xf)));break;case"delete":je(e)||(a.push(m.get(io)),Go(e)&&a.push(m.get(Xf)));break;case"set":Go(e)&&a.push(m.get(io));break}if(a.length===1)a[0]&&Kf(a[0]);else{const o=[];for(const u of a)u&&o.push(...u);Kf(Ch(o))}}function Kf(e,t){const n=je(e)?e:[...e];for(const r of n)r.computed&&hg(r);for(const r of n)r.computed||hg(r)}function hg(e,t){(e!==Kn||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const iC=vh("__proto__,__v_isRef,__isVue"),ky=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ys)),oC=xh(),aC=xh(!1,!0),sC=xh(!0),pg=lC();function lC(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=Ze(this);for(let l=0,m=this.length;l<m;l++)In(r,"get",l+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(Ze)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Co();const r=Ze(this)[t].apply(this,n);return So(),r}}),e}function xh(e=!1,t=!1){return function(r,i,l){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&l===(e?t?xC:Iy:t?Py:Ay).get(r))return r;const m=je(r);if(!e&&m&&Ge(pg,i))return Reflect.get(pg,i,l);const a=Reflect.get(r,i,l);return(ys(i)?ky.has(i):iC(i))||(e||In(r,"get",i),t)?a:St(a)?m&&bh(i)?a:a.value:Qe(a)?e?ac(a):_t(a):a}}const uC=Ey(),cC=Ey(!0);function Ey(e=!1){return function(n,r,i,l){let m=n[r];if(ta(m)&&St(m)&&!St(i))return!1;if(!e&&(!Eu(i)&&!ta(i)&&(m=Ze(m),i=Ze(i)),!je(n)&&St(m)&&!St(i)))return m.value=i,!0;const a=je(n)&&bh(r)?Number(r)<n.length:Ge(n,r),o=Reflect.set(n,r,i,l);return n===Ze(l)&&(a?bs(i,m)&&Vr(n,"set",r,i):Vr(n,"add",r,i)),o}}function fC(e,t){const n=Ge(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Vr(e,"delete",t,void 0),r}function dC(e,t){const n=Reflect.has(e,t);return(!ys(t)||!ky.has(t))&&In(e,"has",t),n}function hC(e){return In(e,"iterate",je(e)?"length":io),Reflect.ownKeys(e)}const Oy={get:oC,set:uC,deleteProperty:fC,has:dC,ownKeys:hC},pC={get:sC,set(e,t){return!0},deleteProperty(e,t){return!0}},gC=Ut({},Oy,{get:aC,set:cC}),Th=e=>e,oc=e=>Reflect.getPrototypeOf(e);function kl(e,t,n=!1,r=!1){e=e.__v_raw;const i=Ze(e),l=Ze(t);n||(t!==l&&In(i,"get",t),In(i,"get",l));const{has:m}=oc(i),a=r?Th:n?Oh:_s;if(m.call(i,t))return a(e.get(t));if(m.call(i,l))return a(e.get(l));e!==i&&e.get(t)}function El(e,t=!1){const n=this.__v_raw,r=Ze(n),i=Ze(e);return t||(e!==i&&In(r,"has",e),In(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Ol(e,t=!1){return e=e.__v_raw,!t&&In(Ze(e),"iterate",io),Reflect.get(e,"size",e)}function gg(e){e=Ze(e);const t=Ze(this);return oc(t).has.call(t,e)||(t.add(e),Vr(t,"add",e,e)),this}function vg(e,t){t=Ze(t);const n=Ze(this),{has:r,get:i}=oc(n);let l=r.call(n,e);l||(e=Ze(e),l=r.call(n,e));const m=i.call(n,e);return n.set(e,t),l?bs(t,m)&&Vr(n,"set",e,t):Vr(n,"add",e,t),this}function mg(e){const t=Ze(this),{has:n,get:r}=oc(t);let i=n.call(t,e);i||(e=Ze(e),i=n.call(t,e)),r&&r.call(t,e);const l=t.delete(e);return i&&Vr(t,"delete",e,void 0),l}function yg(){const e=Ze(this),t=e.size!==0,n=e.clear();return t&&Vr(e,"clear",void 0,void 0),n}function Al(e,t){return function(r,i){const l=this,m=l.__v_raw,a=Ze(m),o=t?Th:e?Oh:_s;return!e&&In(a,"iterate",io),m.forEach((u,h)=>r.call(i,o(u),o(h),l))}}function Pl(e,t,n){return function(...r){const i=this.__v_raw,l=Ze(i),m=Go(l),a=e==="entries"||e===Symbol.iterator&&m,o=e==="keys"&&m,u=i[e](...r),h=n?Th:t?Oh:_s;return!t&&In(l,"iterate",o?Xf:io),{next(){const{value:c,done:f}=u.next();return f?{value:c,done:f}:{value:a?[h(c[0]),h(c[1])]:h(c),done:f}},[Symbol.iterator](){return this}}}}function ni(e){return function(...t){return e==="delete"?!1:this}}function vC(){const e={get(l){return kl(this,l)},get size(){return Ol(this)},has:El,add:gg,set:vg,delete:mg,clear:yg,forEach:Al(!1,!1)},t={get(l){return kl(this,l,!1,!0)},get size(){return Ol(this)},has:El,add:gg,set:vg,delete:mg,clear:yg,forEach:Al(!1,!0)},n={get(l){return kl(this,l,!0)},get size(){return Ol(this,!0)},has(l){return El.call(this,l,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:Al(!0,!1)},r={get(l){return kl(this,l,!0,!0)},get size(){return Ol(this,!0)},has(l){return El.call(this,l,!0)},add:ni("add"),set:ni("set"),delete:ni("delete"),clear:ni("clear"),forEach:Al(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Pl(l,!1,!1),n[l]=Pl(l,!0,!1),t[l]=Pl(l,!1,!0),r[l]=Pl(l,!0,!0)}),[e,n,t,r]}const[mC,yC,bC,_C]=vC();function kh(e,t){const n=t?e?_C:bC:e?yC:mC;return(r,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ge(n,i)&&i in r?n:r,i,l)}const wC={get:kh(!1,!1)},CC={get:kh(!1,!0)},SC={get:kh(!0,!1)},Ay=new WeakMap,Py=new WeakMap,Iy=new WeakMap,xC=new WeakMap;function TC(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function kC(e){return e.__v_skip||!Object.isExtensible(e)?0:TC(tu(e))}function _t(e){return ta(e)?e:Eh(e,!1,Oy,wC,Ay)}function My(e){return Eh(e,!1,gC,CC,Py)}function ac(e){return Eh(e,!0,pC,SC,Iy)}function Eh(e,t,n,r,i){if(!Qe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=i.get(e);if(l)return l;const m=kC(e);if(m===0)return e;const a=new Proxy(e,m===2?r:n);return i.set(e,a),a}function bi(e){return ta(e)?bi(e.__v_raw):!!(e&&e.__v_isReactive)}function ta(e){return!!(e&&e.__v_isReadonly)}function Eu(e){return!!(e&&e.__v_isShallow)}function Ly(e){return bi(e)||ta(e)}function Ze(e){const t=e&&e.__v_raw;return t?Ze(t):e}function Ti(e){return Tu(e,"__v_skip",!0),e}const _s=e=>Qe(e)?_t(e):e,Oh=e=>Qe(e)?ac(e):e;function Ry(e){yi&&Kn&&(e=Ze(e),Ty(e.dep||(e.dep=Ch())))}function Ah(e,t){e=Ze(e),e.dep&&Kf(e.dep)}function St(e){return!!(e&&e.__v_isRef===!0)}function se(e){return Dy(e,!1)}function en(e){return Dy(e,!0)}function Dy(e,t){return St(e)?e:new EC(e,t)}class EC{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:Ze(t),this._value=n?t:_s(t)}get value(){return Ry(this),this._value}set value(t){const n=this.__v_isShallow||Eu(t)||ta(t);t=n?t:Ze(t),bs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:_s(t),Ah(this))}}function Ra(e){Ah(e)}function C(e){return St(e)?e.value:e}const OC={get:(e,t,n)=>C(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return St(i)&&!St(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function $y(e){return bi(e)?e:new Proxy(e,OC)}function zn(e){const t=je(e)?new Array(e.length):{};for(const n in e)t[n]=yn(e,n);return t}class AC{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function yn(e,t,n){const r=e[t];return St(r)?r:new AC(e,t,n)}var By;class PC{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[By]=!1,this._dirty=!0,this.effect=new Sh(t,()=>{this._dirty||(this._dirty=!0,Ah(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=Ze(this);return Ry(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}By="__v_isReadonly";function Fy(e,t,n=!1){let r,i;const l=Ve(e);return l?(r=e,i=it):(r=e.get,i=e.set),new PC(r,i,l||!i,n)}const qa=[];function IC(e,...t){Co();const n=qa.length?qa[qa.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=MC();if(r)Fr(r,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:l})=>`at <${gb(n,l.type)}>`).join(`
|
||
`),i]);else{const l=[`[Vue warn]: ${e}`,...t];i.length&&l.push(`
|
||
`,...LC(i)),console.warn(...l)}So()}function MC(){let e=qa[qa.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function LC(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
|
||
`],...RC(n))}),t}function RC({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${gb(e.component,e.type,r)}`,l=">"+n;return e.props?[i,...DC(e.props),l]:[i+l]}function DC(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...zy(r,e[r]))}),n.length>3&&t.push(" ..."),t}function zy(e,t,n){return Ye(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:St(t)?(t=zy(e,Ze(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ve(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ze(t),n?t:[`${e}=`,t])}function Fr(e,t,n,r){let i;try{i=r?e(...r):e()}catch(l){sc(l,t,n)}return i}function Bn(e,t,n,r){if(Ve(e)){const l=Fr(e,t,n,r);return l&&xu(l)&&l.catch(m=>{sc(m,t,n)}),l}const i=[];for(let l=0;l<e.length;l++)i.push(Bn(e[l],t,n,r));return i}function sc(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let l=t.parent;const m=t.proxy,a=n;for(;l;){const u=l.ec;if(u){for(let h=0;h<u.length;h++)if(u[h](e,m,a)===!1)return}l=l.parent}const o=t.appContext.config.errorHandler;if(o){Fr(o,null,10,[e,m,a]);return}}$C(e,n,i,r)}function $C(e,t,n,r=!0){console.error(e)}let ws=!1,Gf=!1;const Gt=[];let fr=0;const qo=[];let Pr=null,Hi=0;const Ny=Promise.resolve();let Ph=null;function He(e){const t=Ph||Ny;return e?t.then(this?e.bind(this):e):t}function BC(e){let t=fr+1,n=Gt.length;for(;t<n;){const r=t+n>>>1;Cs(Gt[r])<e?t=r+1:n=r}return t}function Ih(e){(!Gt.length||!Gt.includes(e,ws&&e.allowRecurse?fr+1:fr))&&(e.id==null?Gt.push(e):Gt.splice(BC(e.id),0,e),jy())}function jy(){!ws&&!Gf&&(Gf=!0,Ph=Ny.then(Hy))}function FC(e){const t=Gt.indexOf(e);t>fr&&Gt.splice(t,1)}function zC(e){je(e)?qo.push(...e):(!Pr||!Pr.includes(e,e.allowRecurse?Hi+1:Hi))&&qo.push(e),jy()}function bg(e,t=ws?fr+1:0){for(;t<Gt.length;t++){const n=Gt[t];n&&n.pre&&(Gt.splice(t,1),t--,n())}}function Vy(e){if(qo.length){const t=[...new Set(qo)];if(qo.length=0,Pr){Pr.push(...t);return}for(Pr=t,Pr.sort((n,r)=>Cs(n)-Cs(r)),Hi=0;Hi<Pr.length;Hi++)Pr[Hi]();Pr=null,Hi=0}}const Cs=e=>e.id==null?1/0:e.id,NC=(e,t)=>{const n=Cs(e)-Cs(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Hy(e){Gf=!1,ws=!0,Gt.sort(NC);const t=it;try{for(fr=0;fr<Gt.length;fr++){const n=Gt[fr];n&&n.active!==!1&&Fr(n,null,14)}}finally{fr=0,Gt.length=0,Vy(),ws=!1,Ph=null,(Gt.length||qo.length)&&Hy()}}function jC(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||xt;let i=n;const l=t.startsWith("update:"),m=l&&t.slice(7);if(m&&m in r){const h=`${m==="modelValue"?"model":m}Modifiers`,{number:c,trim:f}=r[h]||xt;f&&(i=n.map(s=>s.trim())),c&&(i=n.map(ku))}let a,o=r[a=ru(t)]||r[a=ru(Qn(t))];!o&&l&&(o=r[a=ru(wo(t))]),o&&Bn(o,e,6,i);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Bn(u,e,6,i)}}function Uy(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const l=e.emits;let m={},a=!1;if(!Ve(e)){const o=u=>{const h=Uy(u,t,!0);h&&(a=!0,Ut(m,h))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return!l&&!a?(Qe(e)&&r.set(e,null),null):(je(l)?l.forEach(o=>m[o]=null):Ut(m,l),Qe(e)&&r.set(e,m),m)}function lc(e,t){return!e||!rc(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ge(e,t[0].toLowerCase()+t.slice(1))||Ge(e,wo(t))||Ge(e,t))}let Zt=null,uc=null;function Ou(e){const t=Zt;return Zt=e,uc=e&&e.type.__scopeId||null,t}function Kr(e){uc=e}function Gr(){uc=null}function he(e,t=Zt,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Ig(-1);const l=Ou(t),m=e(...i);return Ou(l),r._d&&Ig(1),m};return r._n=!0,r._c=!0,r._d=!0,r}function Nc(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:l,propsOptions:[m],slots:a,attrs:o,emit:u,render:h,renderCache:c,data:f,setupState:s,ctx:d,inheritAttrs:v}=e;let g,y;const b=Ou(e);try{if(n.shapeFlag&4){const w=i||r;g=cr(h.call(w,w,c,l,s,f,d)),y=o}else{const w=t;g=cr(w.length>1?w(l,{attrs:o,slots:a,emit:u}):w(l,null)),y=t.props?o:VC(o)}}catch(w){Qa.length=0,sc(w,e,1),g=ue(An)}let _=g;if(y&&v!==!1){const w=Object.keys(y),{shapeFlag:S}=_;w.length&&S&7&&(m&&w.some(mh)&&(y=HC(y,m)),_=Hr(_,y))}return n.dirs&&(_=Hr(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),g=_,Ou(b),g}const VC=e=>{let t;for(const n in e)(n==="class"||n==="style"||rc(n))&&((t||(t={}))[n]=e[n]);return t},HC=(e,t)=>{const n={};for(const r in e)(!mh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function UC(e,t,n){const{props:r,children:i,component:l}=e,{props:m,children:a,patchFlag:o}=t,u=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&o>=0){if(o&1024)return!0;if(o&16)return r?_g(r,m,u):!!m;if(o&8){const h=t.dynamicProps;for(let c=0;c<h.length;c++){const f=h[c];if(m[f]!==r[f]&&!lc(u,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===m?!1:r?m?_g(r,m,u):!0:!!m;return!1}function _g(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(t[l]!==e[l]&&!lc(n,l))return!0}return!1}function WC({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const YC=e=>e.__isSuspense;function XC(e,t){t&&t.pendingBranch?je(e)?t.effects.push(...e):t.effects.push(e):zC(e)}function st(e,t){if(Vt){let n=Vt.provides;const r=Vt.parent&&Vt.parent.provides;r===n&&(n=Vt.provides=Object.create(r)),n[e]=t}}function We(e,t,n=!1){const r=Vt||Zt;if(r){const i=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&Ve(t)?t.call(r.proxy):t}}function xo(e,t){return cc(e,null,t)}function Wy(e,t){return cc(e,null,{flush:"post"})}const wg={};function xe(e,t,n){return cc(e,t,n)}function cc(e,t,{immediate:n,deep:r,flush:i,onTrack:l,onTrigger:m}=xt){const a=Vt;let o,u=!1,h=!1;if(St(e)?(o=()=>e.value,u=Eu(e)):bi(e)?(o=()=>e,r=!0):je(e)?(h=!0,u=e.some(y=>bi(y)||Eu(y)),o=()=>e.map(y=>{if(St(y))return y.value;if(bi(y))return qi(y);if(Ve(y))return Fr(y,a,2)})):Ve(e)?t?o=()=>Fr(e,a,2):o=()=>{if(!(a&&a.isUnmounted))return c&&c(),Bn(e,a,3,[f])}:o=it,t&&r){const y=o;o=()=>qi(y())}let c,f=y=>{c=g.onStop=()=>{Fr(y,a,4)}};if(ks)return f=it,t?n&&Bn(t,a,3,[o(),h?[]:void 0,f]):o(),it;let s=h?[]:wg;const d=()=>{if(!!g.active)if(t){const y=g.run();(r||u||(h?y.some((b,_)=>bs(b,s[_])):bs(y,s)))&&(c&&c(),Bn(t,a,3,[y,s===wg?void 0:s,f]),s=y)}else g.run()};d.allowRecurse=!!t;let v;i==="sync"?v=d:i==="post"?v=()=>hn(d,a&&a.suspense):(d.pre=!0,a&&(d.id=a.uid),v=()=>Ih(d));const g=new Sh(o,v);return t?n?d():s=g.run():i==="post"?hn(g.run.bind(g),a&&a.suspense):g.run(),()=>{g.stop(),a&&a.scope&&yh(a.scope.effects,g)}}function KC(e,t,n){const r=this.proxy,i=Ye(e)?e.includes(".")?Yy(r,e):()=>r[e]:e.bind(r,r);let l;Ve(t)?l=t:(l=t.handler,n=t);const m=Vt;na(this);const a=cc(i,l.bind(r),n);return m?na(m):oo(),a}function Yy(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}}function qi(e,t){if(!Qe(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),St(e))qi(e.value,t);else if(je(e))for(let n=0;n<e.length;n++)qi(e[n],t);else if(my(e)||Go(e))e.forEach(n=>{qi(n,t)});else if(by(e))for(const n in e)qi(e[n],t);return e}function Xy(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return qe(()=>{e.isMounted=!0}),Nt(()=>{e.isUnmounting=!0}),e}const Ln=[Function,Array],GC={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Ln,onEnter:Ln,onAfterEnter:Ln,onEnterCancelled:Ln,onBeforeLeave:Ln,onLeave:Ln,onAfterLeave:Ln,onLeaveCancelled:Ln,onBeforeAppear:Ln,onAppear:Ln,onAfterAppear:Ln,onAppearCancelled:Ln},setup(e,{slots:t}){const n=gt(),r=Xy();let i;return()=>{const l=t.default&&Mh(t.default(),!0);if(!l||!l.length)return;let m=l[0];if(l.length>1){for(const v of l)if(v.type!==An){m=v;break}}const a=Ze(e),{mode:o}=a;if(r.isLeaving)return jc(m);const u=Cg(m);if(!u)return jc(m);const h=Ss(u,a,r,n);xs(u,h);const c=n.subTree,f=c&&Cg(c);let s=!1;const{getTransitionKey:d}=u.type;if(d){const v=d();i===void 0?i=v:v!==i&&(i=v,s=!0)}if(f&&f.type!==An&&(!Ui(u,f)||s)){const v=Ss(f,a,r,n);if(xs(f,v),o==="out-in")return r.isLeaving=!0,v.afterLeave=()=>{r.isLeaving=!1,n.update()},jc(m);o==="in-out"&&u.type!==An&&(v.delayLeave=(g,y,b)=>{const _=Gy(r,f);_[String(f.key)]=f,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete h.delayedLeave},h.delayedLeave=b})}return m}}},Ky=GC;function Gy(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 Ss(e,t,n,r){const{appear:i,mode:l,persisted:m=!1,onBeforeEnter:a,onEnter:o,onAfterEnter:u,onEnterCancelled:h,onBeforeLeave:c,onLeave:f,onAfterLeave:s,onLeaveCancelled:d,onBeforeAppear:v,onAppear:g,onAfterAppear:y,onAppearCancelled:b}=t,_=String(e.key),w=Gy(n,e),S=(O,A)=>{O&&Bn(O,r,9,A)},x=(O,A)=>{const $=A[1];S(O,A),je(O)?O.every(j=>j.length<=1)&&$():O.length<=1&&$()},T={mode:l,persisted:m,beforeEnter(O){let A=a;if(!n.isMounted)if(i)A=v||a;else return;O._leaveCb&&O._leaveCb(!0);const $=w[_];$&&Ui(e,$)&&$.el._leaveCb&&$.el._leaveCb(),S(A,[O])},enter(O){let A=o,$=u,j=h;if(!n.isMounted)if(i)A=g||o,$=y||u,j=b||h;else return;let R=!1;const F=O._enterCb=E=>{R||(R=!0,E?S(j,[O]):S($,[O]),T.delayedLeave&&T.delayedLeave(),O._enterCb=void 0)};A?x(A,[O,F]):F()},leave(O,A){const $=String(e.key);if(O._enterCb&&O._enterCb(!0),n.isUnmounting)return A();S(c,[O]);let j=!1;const R=O._leaveCb=F=>{j||(j=!0,A(),F?S(d,[O]):S(s,[O]),O._leaveCb=void 0,w[$]===e&&delete w[$])};w[$]=e,f?x(f,[O,R]):R()},clone(O){return Ss(O,t,n,r)}};return T}function jc(e){if(fc(e))return e=Hr(e),e.children=null,e}function Cg(e){return fc(e)?e.children?e.children[0]:void 0:e}function xs(e,t){e.shapeFlag&6&&e.component?xs(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 Mh(e,t=!1,n){let r=[],i=0;for(let l=0;l<e.length;l++){let m=e[l];const a=n==null?m.key:String(n)+String(m.key!=null?m.key:l);m.type===ze?(m.patchFlag&128&&i++,r=r.concat(Mh(m.children,t,a))):(t||m.type!==An)&&r.push(a!=null?Hr(m,{key:a}):m)}if(i>1)for(let l=0;l<r.length;l++)r[l].patchFlag=-2;return r}function Te(e){return Ve(e)?{setup:e,name:e.name}:e}const Za=e=>!!e.type.__asyncLoader,fc=e=>e.type.__isKeepAlive;function qC(e,t){Zy(e,"a",t)}function qy(e,t){Zy(e,"da",t)}function Zy(e,t,n=Vt){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(dc(t,r,n),n){let i=n.parent;for(;i&&i.parent;)fc(i.parent.vnode)&&ZC(r,t,n,i),i=i.parent}}function ZC(e,t,n,r){const i=dc(t,e,r,!0);Zr(()=>{yh(r[t],i)},n)}function dc(e,t,n=Vt,r=!1){if(n){const i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...m)=>{if(n.isUnmounted)return;Co(),na(n);const a=Bn(t,n,e,m);return oo(),So(),a});return r?i.unshift(l):i.push(l),l}}const qr=e=>(t,n=Vt)=>(!ks||e==="sp")&&dc(e,(...r)=>t(...r),n),Jy=qr("bm"),qe=qr("m"),JC=qr("bu"),To=qr("u"),Nt=qr("bum"),Zr=qr("um"),QC=qr("sp"),eS=qr("rtg"),tS=qr("rtc");function nS(e,t=Vt){dc("ec",e,t)}function pt(e,t){const n=Zt;if(n===null)return e;const r=pc(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[m,a,o,u=xt]=t[l];Ve(m)&&(m={mounted:m,updated:m}),m.deep&&qi(a),i.push({dir:m,instance:r,value:a,oldValue:void 0,arg:o,modifiers:u})}return e}function $i(e,t,n,r){const i=e.dirs,l=t&&t.dirs;for(let m=0;m<i.length;m++){const a=i[m];l&&(a.oldValue=l[m].value);let o=a.dir[r];o&&(Co(),Bn(o,n,8,[e.el,a,e,t]),So())}}const Lh="components",rS="directives";function ft(e,t){return Rh(Lh,e,!0,t)||e}const Qy=Symbol();function yt(e){return Ye(e)?Rh(Lh,e,!1)||e:e||Qy}function eb(e){return Rh(rS,e)}function Rh(e,t,n=!0,r=!1){const i=Zt||Vt;if(i){const l=i.type;if(e===Lh){const a=pb(l,!1);if(a&&(a===t||a===Qn(t)||a===il(Qn(t))))return l}const m=Sg(i[e]||l[e],t)||Sg(i.appContext[e],t);return!m&&r?l:m}}function Sg(e,t){return e&&(e[t]||e[Qn(t)]||e[il(Qn(t))])}function Rt(e,t,n,r){let i;const l=n&&n[r];if(je(e)||Ye(e)){i=new Array(e.length);for(let m=0,a=e.length;m<a;m++)i[m]=t(e[m],m,void 0,l&&l[m])}else if(typeof e=="number"){i=new Array(e);for(let m=0;m<e;m++)i[m]=t(m+1,m,void 0,l&&l[m])}else if(Qe(e))if(e[Symbol.iterator])i=Array.from(e,(m,a)=>t(m,a,void 0,l&&l[a]));else{const m=Object.keys(e);i=new Array(m.length);for(let a=0,o=m.length;a<o;a++){const u=m[a];i[a]=t(e[u],u,a,l&&l[a])}}else i=[];return n&&(n[r]=i),i}function Au(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(je(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 Se(e,t,n={},r,i){if(Zt.isCE||Zt.parent&&Za(Zt.parent)&&Zt.parent.isCE)return ue("slot",t==="default"?null:{name:t},r&&r());let l=e[t];l&&l._c&&(l._d=!1),V();const m=l&&tb(l(n)),a=_e(ze,{key:n.key||m&&m.key||`_${t}`},m||(r?r():[]),m&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),l&&l._c&&(l._d=!0),a}function tb(e){return e.some(t=>ki(t)?!(t.type===An||t.type===ze&&!tb(t.children)):!0)?e:null}function iS(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:ru(r)]=e[r];return n}const qf=e=>e?fb(e)?pc(e)||e.proxy:qf(e.parent):null,Pu=Ut(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=>qf(e.parent),$root:e=>qf(e.root),$emit:e=>e.emit,$options:e=>Dh(e),$forceUpdate:e=>e.f||(e.f=()=>Ih(e.update)),$nextTick:e=>e.n||(e.n=He.bind(e.proxy)),$watch:e=>KC.bind(e)}),oS={get({_:e},t){const{ctx:n,setupState:r,data:i,props:l,accessCache:m,type:a,appContext:o}=e;let u;if(t[0]!=="$"){const s=m[t];if(s!==void 0)switch(s){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return l[t]}else{if(r!==xt&&Ge(r,t))return m[t]=1,r[t];if(i!==xt&&Ge(i,t))return m[t]=2,i[t];if((u=e.propsOptions[0])&&Ge(u,t))return m[t]=3,l[t];if(n!==xt&&Ge(n,t))return m[t]=4,n[t];Zf&&(m[t]=0)}}const h=Pu[t];let c,f;if(h)return t==="$attrs"&&In(e,"get",t),h(e);if((c=a.__cssModules)&&(c=c[t]))return c;if(n!==xt&&Ge(n,t))return m[t]=4,n[t];if(f=o.config.globalProperties,Ge(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return i!==xt&&Ge(i,t)?(i[t]=n,!0):r!==xt&&Ge(r,t)?(r[t]=n,!0):Ge(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,propsOptions:l}},m){let a;return!!n[m]||e!==xt&&Ge(e,m)||t!==xt&&Ge(t,m)||(a=l[0])&&Ge(a,m)||Ge(r,m)||Ge(Pu,m)||Ge(i.config.globalProperties,m)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ge(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let Zf=!0;function aS(e){const t=Dh(e),n=e.proxy,r=e.ctx;Zf=!1,t.beforeCreate&&xg(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:m,watch:a,provide:o,inject:u,created:h,beforeMount:c,mounted:f,beforeUpdate:s,updated:d,activated:v,deactivated:g,beforeDestroy:y,beforeUnmount:b,destroyed:_,unmounted:w,render:S,renderTracked:x,renderTriggered:T,errorCaptured:O,serverPrefetch:A,expose:$,inheritAttrs:j,components:R,directives:F,filters:E}=t;if(u&&sS(u,r,null,e.appContext.config.unwrapInjectedRef),m)for(const Q in m){const le=m[Q];Ve(le)&&(r[Q]=le.bind(n))}if(i){const Q=i.call(n,n);Qe(Q)&&(e.data=_t(Q))}if(Zf=!0,l)for(const Q in l){const le=l[Q],I=Ve(le)?le.bind(n,n):Ve(le.get)?le.get.bind(n,n):it,z=!Ve(le)&&Ve(le.set)?le.set.bind(n):it,M=ee({get:I,set:z});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>M.value,set:L=>M.value=L})}if(a)for(const Q in a)nb(a[Q],r,n,Q);if(o){const Q=Ve(o)?o.call(n):o;Reflect.ownKeys(Q).forEach(le=>{st(le,Q[le])})}h&&xg(h,e,"c");function te(Q,le){je(le)?le.forEach(I=>Q(I.bind(n))):le&&Q(le.bind(n))}if(te(Jy,c),te(qe,f),te(JC,s),te(To,d),te(qC,v),te(qy,g),te(nS,O),te(tS,x),te(eS,T),te(Nt,b),te(Zr,w),te(QC,A),je($))if($.length){const Q=e.exposed||(e.exposed={});$.forEach(le=>{Object.defineProperty(Q,le,{get:()=>n[le],set:I=>n[le]=I})})}else e.exposed||(e.exposed={});S&&e.render===it&&(e.render=S),j!=null&&(e.inheritAttrs=j),R&&(e.components=R),F&&(e.directives=F)}function sS(e,t,n=it,r=!1){je(e)&&(e=Jf(e));for(const i in e){const l=e[i];let m;Qe(l)?"default"in l?m=We(l.from||i,l.default,!0):m=We(l.from||i):m=We(l),St(m)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>m.value,set:a=>m.value=a}):t[i]=m}}function xg(e,t,n){Bn(je(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function nb(e,t,n,r){const i=r.includes(".")?Yy(n,r):()=>n[r];if(Ye(e)){const l=t[e];Ve(l)&&xe(i,l)}else if(Ve(e))xe(i,e.bind(n));else if(Qe(e))if(je(e))e.forEach(l=>nb(l,t,n,r));else{const l=Ve(e.handler)?e.handler.bind(n):t[e.handler];Ve(l)&&xe(i,l,e)}}function Dh(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:m}}=e.appContext,a=l.get(t);let o;return a?o=a:!i.length&&!n&&!r?o=t:(o={},i.length&&i.forEach(u=>Iu(o,u,m,!0)),Iu(o,t,m)),Qe(t)&&l.set(t,o),o}function Iu(e,t,n,r=!1){const{mixins:i,extends:l}=t;l&&Iu(e,l,n,!0),i&&i.forEach(m=>Iu(e,m,n,!0));for(const m in t)if(!(r&&m==="expose")){const a=lS[m]||n&&n[m];e[m]=a?a(e[m],t[m]):t[m]}return e}const lS={data:Tg,props:ji,emits:ji,methods:ji,computed:ji,beforeCreate:an,created:an,beforeMount:an,mounted:an,beforeUpdate:an,updated:an,beforeDestroy:an,beforeUnmount:an,destroyed:an,unmounted:an,activated:an,deactivated:an,errorCaptured:an,serverPrefetch:an,components:ji,directives:ji,watch:cS,provide:Tg,inject:uS};function Tg(e,t){return t?e?function(){return Ut(Ve(e)?e.call(this,this):e,Ve(t)?t.call(this,this):t)}:t:e}function uS(e,t){return ji(Jf(e),Jf(t))}function Jf(e){if(je(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function an(e,t){return e?[...new Set([].concat(e,t))]:t}function ji(e,t){return e?Ut(Ut(Object.create(null),e),t):t}function cS(e,t){if(!e)return t;if(!t)return e;const n=Ut(Object.create(null),e);for(const r in t)n[r]=an(e[r],t[r]);return n}function fS(e,t,n,r=!1){const i={},l={};Tu(l,hc,1),e.propsDefaults=Object.create(null),rb(e,t,i,l);for(const m in e.propsOptions[0])m in i||(i[m]=void 0);n?e.props=r?i:My(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function dS(e,t,n,r){const{props:i,attrs:l,vnode:{patchFlag:m}}=e,a=Ze(i),[o]=e.propsOptions;let u=!1;if((r||m>0)&&!(m&16)){if(m&8){const h=e.vnode.dynamicProps;for(let c=0;c<h.length;c++){let f=h[c];if(lc(e.emitsOptions,f))continue;const s=t[f];if(o)if(Ge(l,f))s!==l[f]&&(l[f]=s,u=!0);else{const d=Qn(f);i[d]=Qf(o,a,d,s,e,!1)}else s!==l[f]&&(l[f]=s,u=!0)}}}else{rb(e,t,i,l)&&(u=!0);let h;for(const c in a)(!t||!Ge(t,c)&&((h=wo(c))===c||!Ge(t,h)))&&(o?n&&(n[c]!==void 0||n[h]!==void 0)&&(i[c]=Qf(o,a,c,void 0,e,!0)):delete i[c]);if(l!==a)for(const c in l)(!t||!Ge(t,c)&&!0)&&(delete l[c],u=!0)}u&&Vr(e,"set","$attrs")}function rb(e,t,n,r){const[i,l]=e.propsOptions;let m=!1,a;if(t)for(let o in t){if(nu(o))continue;const u=t[o];let h;i&&Ge(i,h=Qn(o))?!l||!l.includes(h)?n[h]=u:(a||(a={}))[h]=u:lc(e.emitsOptions,o)||(!(o in r)||u!==r[o])&&(r[o]=u,m=!0)}if(l){const o=Ze(n),u=a||xt;for(let h=0;h<l.length;h++){const c=l[h];n[c]=Qf(i,o,c,u[c],e,!Ge(u,c))}}return m}function Qf(e,t,n,r,i,l){const m=e[n];if(m!=null){const a=Ge(m,"default");if(a&&r===void 0){const o=m.default;if(m.type!==Function&&Ve(o)){const{propsDefaults:u}=i;n in u?r=u[n]:(na(i),r=u[n]=o.call(null,t),oo())}else r=o}m[0]&&(l&&!a?r=!1:m[1]&&(r===""||r===wo(n))&&(r=!0))}return r}function ib(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const l=e.props,m={},a=[];let o=!1;if(!Ve(e)){const h=c=>{o=!0;const[f,s]=ib(c,t,!0);Ut(m,f),s&&a.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!l&&!o)return Qe(e)&&r.set(e,Ko),Ko;if(je(l))for(let h=0;h<l.length;h++){const c=Qn(l[h]);kg(c)&&(m[c]=xt)}else if(l)for(const h in l){const c=Qn(h);if(kg(c)){const f=l[h],s=m[c]=je(f)||Ve(f)?{type:f}:f;if(s){const d=Ag(Boolean,s.type),v=Ag(String,s.type);s[0]=d>-1,s[1]=v<0||d<v,(d>-1||Ge(s,"default"))&&a.push(c)}}}const u=[m,a];return Qe(e)&&r.set(e,u),u}function kg(e){return e[0]!=="$"}function Eg(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Og(e,t){return Eg(e)===Eg(t)}function Ag(e,t){return je(t)?t.findIndex(n=>Og(n,e)):Ve(t)&&Og(t,e)?0:-1}const ob=e=>e[0]==="_"||e==="$stable",$h=e=>je(e)?e.map(cr):[cr(e)],hS=(e,t,n)=>{if(t._n)return t;const r=he((...i)=>$h(t(...i)),n);return r._c=!1,r},ab=(e,t,n)=>{const r=e._ctx;for(const i in e){if(ob(i))continue;const l=e[i];if(Ve(l))t[i]=hS(i,l,r);else if(l!=null){const m=$h(l);t[i]=()=>m}}},sb=(e,t)=>{const n=$h(t);e.slots.default=()=>n},pS=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=Ze(t),Tu(t,"_",n)):ab(t,e.slots={})}else e.slots={},t&&sb(e,t);Tu(e.slots,hc,1)},gS=(e,t,n)=>{const{vnode:r,slots:i}=e;let l=!0,m=xt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?l=!1:(Ut(i,t),!n&&a===1&&delete i._):(l=!t.$stable,ab(t,i)),m=t}else t&&(sb(e,t),m={default:1});if(l)for(const a in i)!ob(a)&&!(a in m)&&delete i[a]};function lb(){return{app:null,config:{isNativeTag:G2,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 vS=0;function mS(e,t){return function(r,i=null){Ve(r)||(r=Object.assign({},r)),i!=null&&!Qe(i)&&(i=null);const l=lb(),m=new Set;let a=!1;const o=l.app={_uid:vS++,_component:r,_props:i,_container:null,_context:l,_instance:null,version:$S,get config(){return l.config},set config(u){},use(u,...h){return m.has(u)||(u&&Ve(u.install)?(m.add(u),u.install(o,...h)):Ve(u)&&(m.add(u),u(o,...h))),o},mixin(u){return l.mixins.includes(u)||l.mixins.push(u),o},component(u,h){return h?(l.components[u]=h,o):l.components[u]},directive(u,h){return h?(l.directives[u]=h,o):l.directives[u]},mount(u,h,c){if(!a){const f=ue(r,i);return f.appContext=l,h&&t?t(f,u):e(f,u,c),a=!0,o._container=u,u.__vue_app__=o,pc(f.component)||f.component.proxy}},unmount(){a&&(e(null,o._container),delete o._container.__vue_app__)},provide(u,h){return l.provides[u]=h,o}};return o}}function ed(e,t,n,r,i=!1){if(je(e)){e.forEach((f,s)=>ed(f,t&&(je(t)?t[s]:t),n,r,i));return}if(Za(r)&&!i)return;const l=r.shapeFlag&4?pc(r.component)||r.component.proxy:r.el,m=i?null:l,{i:a,r:o}=e,u=t&&t.r,h=a.refs===xt?a.refs={}:a.refs,c=a.setupState;if(u!=null&&u!==o&&(Ye(u)?(h[u]=null,Ge(c,u)&&(c[u]=null)):St(u)&&(u.value=null)),Ve(o))Fr(o,a,12,[m,h]);else{const f=Ye(o),s=St(o);if(f||s){const d=()=>{if(e.f){const v=f?h[o]:o.value;i?je(v)&&yh(v,l):je(v)?v.includes(l)||v.push(l):f?(h[o]=[l],Ge(c,o)&&(c[o]=h[o])):(o.value=[l],e.k&&(h[e.k]=o.value))}else f?(h[o]=m,Ge(c,o)&&(c[o]=m)):s&&(o.value=m,e.k&&(h[e.k]=m))};m?(d.id=-1,hn(d,n)):d()}}}const hn=XC;function yS(e){return bS(e)}function bS(e,t){const n=eC();n.__VUE__=!0;const{insert:r,remove:i,patchProp:l,createElement:m,createText:a,createComment:o,setText:u,setElementText:h,parentNode:c,nextSibling:f,setScopeId:s=it,insertStaticContent:d}=e,v=(Y,K,k,N=null,H=null,D=null,B=!1,X=null,ae=!!K.dynamicChildren)=>{if(Y===K)return;Y&&!Ui(Y,K)&&(N=Z(Y),L(Y,H,D,!0),Y=null),K.patchFlag===-2&&(ae=!1,K.dynamicChildren=null);const{type:ne,ref:G,shapeFlag:pe}=K;switch(ne){case ol:g(Y,K,k,N);break;case An:y(Y,K,k,N);break;case ou:Y==null&&b(K,k,N,B);break;case ze:R(Y,K,k,N,H,D,B,X,ae);break;default:pe&1?S(Y,K,k,N,H,D,B,X,ae):pe&6?F(Y,K,k,N,H,D,B,X,ae):(pe&64||pe&128)&&ne.process(Y,K,k,N,H,D,B,X,ae,de)}G!=null&&H&&ed(G,Y&&Y.ref,D,K||Y,!K)},g=(Y,K,k,N)=>{if(Y==null)r(K.el=a(K.children),k,N);else{const H=K.el=Y.el;K.children!==Y.children&&u(H,K.children)}},y=(Y,K,k,N)=>{Y==null?r(K.el=o(K.children||""),k,N):K.el=Y.el},b=(Y,K,k,N)=>{[Y.el,Y.anchor]=d(Y.children,K,k,N,Y.el,Y.anchor)},_=({el:Y,anchor:K},k,N)=>{let H;for(;Y&&Y!==K;)H=f(Y),r(Y,k,N),Y=H;r(K,k,N)},w=({el:Y,anchor:K})=>{let k;for(;Y&&Y!==K;)k=f(Y),i(Y),Y=k;i(K)},S=(Y,K,k,N,H,D,B,X,ae)=>{B=B||K.type==="svg",Y==null?x(K,k,N,H,D,B,X,ae):A(Y,K,H,D,B,X,ae)},x=(Y,K,k,N,H,D,B,X)=>{let ae,ne;const{type:G,props:pe,shapeFlag:ie,transition:ge,dirs:we}=Y;if(ae=Y.el=m(Y.type,D,pe&&pe.is,pe),ie&8?h(ae,Y.children):ie&16&&O(Y.children,ae,null,N,H,D&&G!=="foreignObject",B,X),we&&$i(Y,null,N,"created"),pe){for(const Ee in pe)Ee!=="value"&&!nu(Ee)&&l(ae,Ee,null,pe[Ee],D,Y.children,N,H,q);"value"in pe&&l(ae,"value",null,pe.value),(ne=pe.onVnodeBeforeMount)&&ar(ne,N,Y)}T(ae,Y,Y.scopeId,B,N),we&&$i(Y,null,N,"beforeMount");const ke=(!H||H&&!H.pendingBranch)&&ge&&!ge.persisted;ke&&ge.beforeEnter(ae),r(ae,K,k),((ne=pe&&pe.onVnodeMounted)||ke||we)&&hn(()=>{ne&&ar(ne,N,Y),ke&&ge.enter(ae),we&&$i(Y,null,N,"mounted")},H)},T=(Y,K,k,N,H)=>{if(k&&s(Y,k),N)for(let D=0;D<N.length;D++)s(Y,N[D]);if(H){let D=H.subTree;if(K===D){const B=H.vnode;T(Y,B,B.scopeId,B.slotScopeIds,H.parent)}}},O=(Y,K,k,N,H,D,B,X,ae=0)=>{for(let ne=ae;ne<Y.length;ne++){const G=Y[ne]=X?fi(Y[ne]):cr(Y[ne]);v(null,G,K,k,N,H,D,B,X)}},A=(Y,K,k,N,H,D,B)=>{const X=K.el=Y.el;let{patchFlag:ae,dynamicChildren:ne,dirs:G}=K;ae|=Y.patchFlag&16;const pe=Y.props||xt,ie=K.props||xt;let ge;k&&Bi(k,!1),(ge=ie.onVnodeBeforeUpdate)&&ar(ge,k,K,Y),G&&$i(K,Y,k,"beforeUpdate"),k&&Bi(k,!0);const we=H&&K.type!=="foreignObject";if(ne?$(Y.dynamicChildren,ne,X,k,N,we,D):B||le(Y,K,X,null,k,N,we,D,!1),ae>0){if(ae&16)j(X,K,pe,ie,k,N,H);else if(ae&2&&pe.class!==ie.class&&l(X,"class",null,ie.class,H),ae&4&&l(X,"style",pe.style,ie.style,H),ae&8){const ke=K.dynamicProps;for(let Ee=0;Ee<ke.length;Ee++){const Pe=ke[Ee],ye=pe[Pe],Ce=ie[Pe];(Ce!==ye||Pe==="value")&&l(X,Pe,ye,Ce,H,Y.children,k,N,q)}}ae&1&&Y.children!==K.children&&h(X,K.children)}else!B&&ne==null&&j(X,K,pe,ie,k,N,H);((ge=ie.onVnodeUpdated)||G)&&hn(()=>{ge&&ar(ge,k,K,Y),G&&$i(K,Y,k,"updated")},N)},$=(Y,K,k,N,H,D,B)=>{for(let X=0;X<K.length;X++){const ae=Y[X],ne=K[X],G=ae.el&&(ae.type===ze||!Ui(ae,ne)||ae.shapeFlag&70)?c(ae.el):k;v(ae,ne,G,null,N,H,D,B,!0)}},j=(Y,K,k,N,H,D,B)=>{if(k!==N){if(k!==xt)for(const X in k)!nu(X)&&!(X in N)&&l(Y,X,k[X],null,B,K.children,H,D,q);for(const X in N){if(nu(X))continue;const ae=N[X],ne=k[X];ae!==ne&&X!=="value"&&l(Y,X,ne,ae,B,K.children,H,D,q)}"value"in N&&l(Y,"value",k.value,N.value)}},R=(Y,K,k,N,H,D,B,X,ae)=>{const ne=K.el=Y?Y.el:a(""),G=K.anchor=Y?Y.anchor:a("");let{patchFlag:pe,dynamicChildren:ie,slotScopeIds:ge}=K;ge&&(X=X?X.concat(ge):ge),Y==null?(r(ne,k,N),r(G,k,N),O(K.children,k,G,H,D,B,X,ae)):pe>0&&pe&64&&ie&&Y.dynamicChildren?($(Y.dynamicChildren,ie,k,H,D,B,X),(K.key!=null||H&&K===H.subTree)&&Bh(Y,K,!0)):le(Y,K,k,G,H,D,B,X,ae)},F=(Y,K,k,N,H,D,B,X,ae)=>{K.slotScopeIds=X,Y==null?K.shapeFlag&512?H.ctx.activate(K,k,N,B,ae):E(K,k,N,H,D,B,ae):W(Y,K,ae)},E=(Y,K,k,N,H,D,B)=>{const X=Y.component=AS(Y,N,H);if(fc(Y)&&(X.ctx.renderer=de),PS(X),X.asyncDep){if(H&&H.registerDep(X,te),!Y.el){const ae=X.subTree=ue(An);y(null,ae,K,k)}return}te(X,Y,K,k,H,D,B)},W=(Y,K,k)=>{const N=K.component=Y.component;if(UC(Y,K,k))if(N.asyncDep&&!N.asyncResolved){Q(N,K,k);return}else N.next=K,FC(N.update),N.update();else K.el=Y.el,N.vnode=K},te=(Y,K,k,N,H,D,B)=>{const X=()=>{if(Y.isMounted){let{next:G,bu:pe,u:ie,parent:ge,vnode:we}=Y,ke=G,Ee;Bi(Y,!1),G?(G.el=we.el,Q(Y,G,B)):G=we,pe&&iu(pe),(Ee=G.props&&G.props.onVnodeBeforeUpdate)&&ar(Ee,ge,G,we),Bi(Y,!0);const Pe=Nc(Y),ye=Y.subTree;Y.subTree=Pe,v(ye,Pe,c(ye.el),Z(ye),Y,H,D),G.el=Pe.el,ke===null&&WC(Y,Pe.el),ie&&hn(ie,H),(Ee=G.props&&G.props.onVnodeUpdated)&&hn(()=>ar(Ee,ge,G,we),H)}else{let G;const{el:pe,props:ie}=K,{bm:ge,m:we,parent:ke}=Y,Ee=Za(K);if(Bi(Y,!1),ge&&iu(ge),!Ee&&(G=ie&&ie.onVnodeBeforeMount)&&ar(G,ke,K),Bi(Y,!0),pe&&me){const Pe=()=>{Y.subTree=Nc(Y),me(pe,Y.subTree,Y,H,null)};Ee?K.type.__asyncLoader().then(()=>!Y.isUnmounted&&Pe()):Pe()}else{const Pe=Y.subTree=Nc(Y);v(null,Pe,k,N,Y,H,D),K.el=Pe.el}if(we&&hn(we,H),!Ee&&(G=ie&&ie.onVnodeMounted)){const Pe=K;hn(()=>ar(G,ke,Pe),H)}(K.shapeFlag&256||ke&&Za(ke.vnode)&&ke.vnode.shapeFlag&256)&&Y.a&&hn(Y.a,H),Y.isMounted=!0,K=k=N=null}},ae=Y.effect=new Sh(X,()=>Ih(ne),Y.scope),ne=Y.update=()=>ae.run();ne.id=Y.uid,Bi(Y,!0),ne()},Q=(Y,K,k)=>{K.component=Y;const N=Y.vnode.props;Y.vnode=K,Y.next=null,dS(Y,K.props,N,k),gS(Y,K.children,k),Co(),bg(),So()},le=(Y,K,k,N,H,D,B,X,ae=!1)=>{const ne=Y&&Y.children,G=Y?Y.shapeFlag:0,pe=K.children,{patchFlag:ie,shapeFlag:ge}=K;if(ie>0){if(ie&128){z(ne,pe,k,N,H,D,B,X,ae);return}else if(ie&256){I(ne,pe,k,N,H,D,B,X,ae);return}}ge&8?(G&16&&q(ne,H,D),pe!==ne&&h(k,pe)):G&16?ge&16?z(ne,pe,k,N,H,D,B,X,ae):q(ne,H,D,!0):(G&8&&h(k,""),ge&16&&O(pe,k,N,H,D,B,X,ae))},I=(Y,K,k,N,H,D,B,X,ae)=>{Y=Y||Ko,K=K||Ko;const ne=Y.length,G=K.length,pe=Math.min(ne,G);let ie;for(ie=0;ie<pe;ie++){const ge=K[ie]=ae?fi(K[ie]):cr(K[ie]);v(Y[ie],ge,k,null,H,D,B,X,ae)}ne>G?q(Y,H,D,!0,!1,pe):O(K,k,N,H,D,B,X,ae,pe)},z=(Y,K,k,N,H,D,B,X,ae)=>{let ne=0;const G=K.length;let pe=Y.length-1,ie=G-1;for(;ne<=pe&&ne<=ie;){const ge=Y[ne],we=K[ne]=ae?fi(K[ne]):cr(K[ne]);if(Ui(ge,we))v(ge,we,k,null,H,D,B,X,ae);else break;ne++}for(;ne<=pe&&ne<=ie;){const ge=Y[pe],we=K[ie]=ae?fi(K[ie]):cr(K[ie]);if(Ui(ge,we))v(ge,we,k,null,H,D,B,X,ae);else break;pe--,ie--}if(ne>pe){if(ne<=ie){const ge=ie+1,we=ge<G?K[ge].el:N;for(;ne<=ie;)v(null,K[ne]=ae?fi(K[ne]):cr(K[ne]),k,we,H,D,B,X,ae),ne++}}else if(ne>ie)for(;ne<=pe;)L(Y[ne],H,D,!0),ne++;else{const ge=ne,we=ne,ke=new Map;for(ne=we;ne<=ie;ne++){const wt=K[ne]=ae?fi(K[ne]):cr(K[ne]);wt.key!=null&&ke.set(wt.key,ne)}let Ee,Pe=0;const ye=ie-we+1;let Ce=!1,Me=0;const De=new Array(ye);for(ne=0;ne<ye;ne++)De[ne]=0;for(ne=ge;ne<=pe;ne++){const wt=Y[ne];if(Pe>=ye){L(wt,H,D,!0);continue}let ut;if(wt.key!=null)ut=ke.get(wt.key);else for(Ee=we;Ee<=ie;Ee++)if(De[Ee-we]===0&&Ui(wt,K[Ee])){ut=Ee;break}ut===void 0?L(wt,H,D,!0):(De[ut-we]=ne+1,ut>=Me?Me=ut:Ce=!0,v(wt,K[ut],k,null,H,D,B,X,ae),Pe++)}const lt=Ce?_S(De):Ko;for(Ee=lt.length-1,ne=ye-1;ne>=0;ne--){const wt=we+ne,ut=K[wt],rn=wt+1<G?K[wt+1].el:N;De[ne]===0?v(null,ut,k,rn,H,D,B,X,ae):Ce&&(Ee<0||ne!==lt[Ee]?M(ut,k,rn,2):Ee--)}}},M=(Y,K,k,N,H=null)=>{const{el:D,type:B,transition:X,children:ae,shapeFlag:ne}=Y;if(ne&6){M(Y.component.subTree,K,k,N);return}if(ne&128){Y.suspense.move(K,k,N);return}if(ne&64){B.move(Y,K,k,de);return}if(B===ze){r(D,K,k);for(let pe=0;pe<ae.length;pe++)M(ae[pe],K,k,N);r(Y.anchor,K,k);return}if(B===ou){_(Y,K,k);return}if(N!==2&&ne&1&&X)if(N===0)X.beforeEnter(D),r(D,K,k),hn(()=>X.enter(D),H);else{const{leave:pe,delayLeave:ie,afterLeave:ge}=X,we=()=>r(D,K,k),ke=()=>{pe(D,()=>{we(),ge&&ge()})};ie?ie(D,we,ke):ke()}else r(D,K,k)},L=(Y,K,k,N=!1,H=!1)=>{const{type:D,props:B,ref:X,children:ae,dynamicChildren:ne,shapeFlag:G,patchFlag:pe,dirs:ie}=Y;if(X!=null&&ed(X,null,k,Y,!0),G&256){K.ctx.deactivate(Y);return}const ge=G&1&&ie,we=!Za(Y);let ke;if(we&&(ke=B&&B.onVnodeBeforeUnmount)&&ar(ke,K,Y),G&6)P(Y.component,k,N);else{if(G&128){Y.suspense.unmount(k,N);return}ge&&$i(Y,null,K,"beforeUnmount"),G&64?Y.type.remove(Y,K,k,H,de,N):ne&&(D!==ze||pe>0&&pe&64)?q(ne,K,k,!1,!0):(D===ze&&pe&384||!H&&G&16)&&q(ae,K,k),N&&J(Y)}(we&&(ke=B&&B.onVnodeUnmounted)||ge)&&hn(()=>{ke&&ar(ke,K,Y),ge&&$i(Y,null,K,"unmounted")},k)},J=Y=>{const{type:K,el:k,anchor:N,transition:H}=Y;if(K===ze){U(k,N);return}if(K===ou){w(Y);return}const D=()=>{i(k),H&&!H.persisted&&H.afterLeave&&H.afterLeave()};if(Y.shapeFlag&1&&H&&!H.persisted){const{leave:B,delayLeave:X}=H,ae=()=>B(k,D);X?X(Y.el,D,ae):ae()}else D()},U=(Y,K)=>{let k;for(;Y!==K;)k=f(Y),i(Y),Y=k;i(K)},P=(Y,K,k)=>{const{bum:N,scope:H,update:D,subTree:B,um:X}=Y;N&&iu(N),H.stop(),D&&(D.active=!1,L(B,Y,K,k)),X&&hn(X,K),hn(()=>{Y.isUnmounted=!0},K),K&&K.pendingBranch&&!K.isUnmounted&&Y.asyncDep&&!Y.asyncResolved&&Y.suspenseId===K.pendingId&&(K.deps--,K.deps===0&&K.resolve())},q=(Y,K,k,N=!1,H=!1,D=0)=>{for(let B=D;B<Y.length;B++)L(Y[B],K,k,N,H)},Z=Y=>Y.shapeFlag&6?Z(Y.component.subTree):Y.shapeFlag&128?Y.suspense.next():f(Y.anchor||Y.el),re=(Y,K,k)=>{Y==null?K._vnode&&L(K._vnode,null,null,!0):v(K._vnode||null,Y,K,null,null,null,k),bg(),Vy(),K._vnode=Y},de={p:v,um:L,m:M,r:J,mt:E,mc:O,pc:le,pbc:$,n:Z,o:e};let ve,me;return t&&([ve,me]=t(de)),{render:re,hydrate:ve,createApp:mS(re,ve)}}function Bi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Bh(e,t,n=!1){const r=e.children,i=t.children;if(je(r)&&je(i))for(let l=0;l<r.length;l++){const m=r[l];let a=i[l];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[l]=fi(i[l]),a.el=m.el),n||Bh(m,a))}}function _S(e){const t=e.slice(),n=[0];let r,i,l,m,a;const o=e.length;for(r=0;r<o;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(l=0,m=n.length-1;l<m;)a=l+m>>1,e[n[a]]<u?l=a+1:m=a;u<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,m=n[l-1];l-- >0;)n[l]=m,m=t[m];return n}const wS=e=>e.__isTeleport,Ja=e=>e&&(e.disabled||e.disabled===""),Pg=e=>typeof SVGElement<"u"&&e instanceof SVGElement,td=(e,t)=>{const n=e&&e.to;return Ye(n)?t?t(n):null:n},CS={__isTeleport:!0,process(e,t,n,r,i,l,m,a,o,u){const{mc:h,pc:c,pbc:f,o:{insert:s,querySelector:d,createText:v,createComment:g}}=u,y=Ja(t.props);let{shapeFlag:b,children:_,dynamicChildren:w}=t;if(e==null){const S=t.el=v(""),x=t.anchor=v("");s(S,n,r),s(x,n,r);const T=t.target=td(t.props,d),O=t.targetAnchor=v("");T&&(s(O,T),m=m||Pg(T));const A=($,j)=>{b&16&&h(_,$,j,i,l,m,a,o)};y?A(n,x):T&&A(T,O)}else{t.el=e.el;const S=t.anchor=e.anchor,x=t.target=e.target,T=t.targetAnchor=e.targetAnchor,O=Ja(e.props),A=O?n:x,$=O?S:T;if(m=m||Pg(x),w?(f(e.dynamicChildren,w,A,i,l,m,a),Bh(e,t,!0)):o||c(e,t,A,$,i,l,m,a,!1),y)O||Il(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=td(t.props,d);j&&Il(t,j,null,u,0)}else O&&Il(t,x,T,u,1)}},remove(e,t,n,r,{um:i,o:{remove:l}},m){const{shapeFlag:a,children:o,anchor:u,targetAnchor:h,target:c,props:f}=e;if(c&&l(h),(m||!Ja(f))&&(l(u),a&16))for(let s=0;s<o.length;s++){const d=o[s];i(d,t,n,!0,!!d.dynamicChildren)}},move:Il,hydrate:SS};function Il(e,t,n,{o:{insert:r},m:i},l=2){l===0&&r(e.targetAnchor,t,n);const{el:m,anchor:a,shapeFlag:o,children:u,props:h}=e,c=l===2;if(c&&r(m,t,n),(!c||Ja(h))&&o&16)for(let f=0;f<u.length;f++)i(u[f],t,n,2);c&&r(a,t,n)}function SS(e,t,n,r,i,l,{o:{nextSibling:m,parentNode:a,querySelector:o}},u){const h=t.target=td(t.props,o);if(h){const c=h._lpa||h.firstChild;if(t.shapeFlag&16)if(Ja(t.props))t.anchor=u(m(e),t,a(e),n,r,i,l),t.targetAnchor=c;else{t.anchor=m(e);let f=c;for(;f;)if(f=m(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,h._lpa=t.targetAnchor&&m(t.targetAnchor);break}u(c,t,h,n,r,i,l)}}return t.anchor&&m(t.anchor)}const Fh=CS,ze=Symbol(void 0),ol=Symbol(void 0),An=Symbol(void 0),ou=Symbol(void 0),Qa=[];let Gn=null;function V(e=!1){Qa.push(Gn=e?null:[])}function xS(){Qa.pop(),Gn=Qa[Qa.length-1]||null}let Ts=1;function Ig(e){Ts+=e}function ub(e){return e.dynamicChildren=Ts>0?Gn||Ko:null,xS(),Ts>0&&Gn&&Gn.push(e),e}function ce(e,t,n,r,i,l){return ub(oe(e,t,n,r,i,l,!0))}function _e(e,t,n,r,i){return ub(ue(e,t,n,r,i,!0))}function ki(e){return e?e.__v_isVNode===!0:!1}function Ui(e,t){return e.type===t.type&&e.key===t.key}const hc="__vInternal",cb=({key:e})=>e!=null?e:null,au=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ye(e)||St(e)||Ve(e)?{i:Zt,r:e,k:t,f:!!n}:e:null;function oe(e,t=null,n=null,r=0,i=null,l=e===ze?0:1,m=!1,a=!1){const o={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&cb(t),ref:t&&au(t),scopeId:uc,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:l,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(zh(o,n),l&128&&e.normalize(o)):n&&(o.shapeFlag|=Ye(n)?8:16),Ts>0&&!m&&Gn&&(o.patchFlag>0||l&6)&&o.patchFlag!==32&&Gn.push(o),o}const ue=TS;function TS(e,t=null,n=null,r=0,i=null,l=!1){if((!e||e===Qy)&&(e=An),ki(e)){const a=Hr(e,t,!0);return n&&zh(a,n),Ts>0&&!l&&Gn&&(a.shapeFlag&6?Gn[Gn.indexOf(e)]=a:Gn.push(a)),a.patchFlag|=-2,a}if(DS(e)&&(e=e.__vccOpts),t){t=kS(t);let{class:a,style:o}=t;a&&!Ye(a)&&(t.class=fe(a)),Qe(o)&&(Ly(o)&&!je(o)&&(o=Ut({},o)),t.style=Fe(o))}const m=Ye(e)?1:YC(e)?128:wS(e)?64:Qe(e)?4:Ve(e)?2:0;return oe(e,t,n,r,i,m,l,!0)}function kS(e){return e?Ly(e)||hc in e?Ut({},e):e:null}function Hr(e,t,n=!1){const{props:r,ref:i,patchFlag:l,children:m}=e,a=t?gn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&cb(a),ref:t&&t.ref?n&&i?je(i)?i.concat(au(t)):[i,au(t)]:au(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:m,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ze?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hr(e.ssContent),ssFallback:e.ssFallback&&Hr(e.ssFallback),el:e.el,anchor:e.anchor}}function Ne(e=" ",t=0){return ue(ol,null,e,t)}function be(e="",t=!1){return t?(V(),_e(An,null,e)):ue(An,null,e)}function cr(e){return e==null||typeof e=="boolean"?ue(An):je(e)?ue(ze,null,e.slice()):typeof e=="object"?fi(e):ue(ol,null,String(e))}function fi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Hr(e)}function zh(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(je(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),zh(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(hc in t)?t._ctx=Zt:i===3&&Zt&&(Zt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ve(t)?(t={default:t,_ctx:Zt},n=32):(t=String(t),r&64?(n=16,t=[Ne(t)]):n=8);e.children=t,e.shapeFlag|=n}function gn(...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=fe([t.class,r.class]));else if(i==="style")t.style=Fe([t.style,r.style]);else if(rc(i)){const l=t[i],m=r[i];m&&l!==m&&!(je(l)&&l.includes(m))&&(t[i]=l?[].concat(l,m):m)}else i!==""&&(t[i]=r[i])}return t}function ar(e,t,n,r=null){Bn(e,t,7,[n,r])}const ES=lb();let OS=0;function AS(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ES,l={uid:OS++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new _y(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ib(r,i),emitsOptions:Uy(r,i),emit:null,emitted:null,propsDefaults:xt,inheritAttrs:r.inheritAttrs,ctx:xt,data:xt,props:xt,attrs:xt,slots:xt,refs:xt,setupState:xt,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=jC.bind(null,l),e.ce&&e.ce(l),l}let Vt=null;const gt=()=>Vt||Zt,na=e=>{Vt=e,e.scope.on()},oo=()=>{Vt&&Vt.scope.off(),Vt=null};function fb(e){return e.vnode.shapeFlag&4}let ks=!1;function PS(e,t=!1){ks=t;const{props:n,children:r}=e.vnode,i=fb(e);fS(e,n,i,t),pS(e,r);const l=i?IS(e,t):void 0;return ks=!1,l}function IS(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ti(new Proxy(e.ctx,oS));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?hb(e):null;na(e),Co();const l=Fr(r,e,0,[e.props,i]);if(So(),oo(),xu(l)){if(l.then(oo,oo),t)return l.then(m=>{Mg(e,m,t)}).catch(m=>{sc(m,e,0)});e.asyncDep=l}else Mg(e,l,t)}else db(e,t)}function Mg(e,t,n){Ve(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Qe(t)&&(e.setupState=$y(t)),db(e,n)}let Lg;function db(e,t,n){const r=e.type;if(!e.render){if(!t&&Lg&&!r.render){const i=r.template||Dh(e).template;if(i){const{isCustomElement:l,compilerOptions:m}=e.appContext.config,{delimiters:a,compilerOptions:o}=r,u=Ut(Ut({isCustomElement:l,delimiters:a},m),o);r.render=Lg(i,u)}}e.render=r.render||it}na(e),Co(),aS(e),So(),oo()}function MS(e){return new Proxy(e.attrs,{get(t,n){return In(e,"get","$attrs"),t[n]}})}function hb(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=MS(e))},slots:e.slots,emit:e.emit,expose:t}}function pc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy($y(Ti(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Pu)return Pu[n](e)}}))}const LS=/(?:^|[-_])(\w)/g,RS=e=>e.replace(LS,t=>t.toUpperCase()).replace(/[-_]/g,"");function pb(e,t=!0){return Ve(e)?e.displayName||e.name:e.name||t&&e.__name}function gb(e,t,n=!1){let r=pb(t);if(!r&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(r=i[1])}if(!r&&e&&e.parent){const i=l=>{for(const m in l)if(l[m]===t)return m};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?RS(r):n?"App":"Anonymous"}function DS(e){return Ve(e)&&"__vccOpts"in e}const ee=(e,t)=>Fy(e,t,ks);function ma(){return mb().slots}function vb(){return mb().attrs}function mb(){const e=gt();return e.setupContext||(e.setupContext=hb(e))}function ht(e,t,n){const r=arguments.length;return r===2?Qe(t)&&!je(t)?ki(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&ki(n)&&(n=[n]),ue(e,t,n))}const $S="3.2.40",BS="http://www.w3.org/2000/svg",Wi=typeof document<"u"?document:null,Rg=Wi&&Wi.createElement("template"),FS={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?Wi.createElementNS(BS,e):Wi.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>Wi.createTextNode(e),createComment:e=>Wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Wi.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){const m=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===l||!(i=i.nextSibling)););else{Rg.innerHTML=r?`<svg>${e}</svg>`:e;const a=Rg.content;if(r){const o=a.firstChild;for(;o.firstChild;)a.appendChild(o.firstChild);a.removeChild(o)}t.insertBefore(a,n)}return[m?m.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function zS(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function NS(e,t,n){const r=e.style,i=Ye(n);if(n&&!i){for(const l in n)nd(r,l,n[l]);if(t&&!Ye(t))for(const l in t)n[l]==null&&nd(r,l,"")}else{const l=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=l)}}const Dg=/\s*!important$/;function nd(e,t,n){if(je(n))n.forEach(r=>nd(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=jS(e,t);Dg.test(n)?e.setProperty(wo(r),n.replace(Dg,""),"important"):e[r]=n}}const $g=["Webkit","Moz","ms"],Vc={};function jS(e,t){const n=Vc[t];if(n)return n;let r=Qn(t);if(r!=="filter"&&r in e)return Vc[t]=r;r=il(r);for(let i=0;i<$g.length;i++){const l=$g[i]+r;if(l in e)return Vc[t]=l}return t}const Bg="http://www.w3.org/1999/xlink";function VS(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Bg,t.slice(6,t.length)):e.setAttributeNS(Bg,t,n);else{const l=U2(t);n==null||l&&!gy(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function HS(e,t,n,r,i,l,m){if(t==="innerHTML"||t==="textContent"){r&&m(r,i,l),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const o=n==null?"":n;(e.value!==o||e.tagName==="OPTION")&&(e.value=o),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const o=typeof e[t];o==="boolean"?n=gy(n):n==null&&o==="string"?(n="",a=!0):o==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}const[yb,US]=(()=>{let e=Date.now,t=!1;if(typeof window<"u"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let rd=0;const WS=Promise.resolve(),YS=()=>{rd=0},XS=()=>rd||(WS.then(YS),rd=yb());function Yi(e,t,n,r){e.addEventListener(t,n,r)}function KS(e,t,n,r){e.removeEventListener(t,n,r)}function GS(e,t,n,r,i=null){const l=e._vei||(e._vei={}),m=l[t];if(r&&m)m.value=r;else{const[a,o]=qS(t);if(r){const u=l[t]=ZS(r,i);Yi(e,a,u,o)}else m&&(KS(e,a,m,o),l[t]=void 0)}}const Fg=/(?:Once|Passive|Capture)$/;function qS(e){let t;if(Fg.test(e)){t={};let r;for(;r=e.match(Fg);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):wo(e.slice(2)),t]}function ZS(e,t){const n=r=>{const i=r.timeStamp||yb();(US||i>=n.attached-1)&&Bn(JS(r,n.value),t,5,[r])};return n.value=e,n.attached=XS(),n}function JS(e,t){if(je(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 zg=/^on[a-z]/,QS=(e,t,n,r,i=!1,l,m,a,o)=>{t==="class"?zS(e,r,i):t==="style"?NS(e,n,r):rc(t)?mh(t)||GS(e,t,n,r,m):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ex(e,t,r,i))?HS(e,t,r,l,m,a,o):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),VS(e,t,r,i))};function ex(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&zg.test(t)&&Ve(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||zg.test(t)&&Ye(n)?!1:t in e}function tx(e){const t=gt();if(!t)return;const n=()=>id(t.subTree,e(t.proxy));Wy(n),qe(()=>{const r=new MutationObserver(n);r.observe(t.subTree.el.parentNode,{childList:!0}),Zr(()=>r.disconnect())})}function id(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{id(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Ng(e.el,t);else if(e.type===ze)e.children.forEach(n=>id(n,t));else if(e.type===ou){let{el:n,anchor:r}=e;for(;n&&(Ng(n,t),n!==r);)n=n.nextSibling}}function Ng(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const ri="transition",Da="animation",tn=(e,{slots:t})=>ht(Ky,_b(e),t);tn.displayName="Transition";const bb={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},nx=tn.props=Ut({},Ky.props,bb),Fi=(e,t=[])=>{je(e)?e.forEach(n=>n(...t)):e&&e(...t)},jg=e=>e?je(e)?e.some(t=>t.length>1):e.length>1:!1;function _b(e){const t={};for(const R in e)R in bb||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:l=`${n}-enter-from`,enterActiveClass:m=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:o=l,appearActiveClass:u=m,appearToClass:h=a,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:s=`${n}-leave-to`}=e,d=rx(i),v=d&&d[0],g=d&&d[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:w,onLeaveCancelled:S,onBeforeAppear:x=y,onAppear:T=b,onAppearCancelled:O=_}=t,A=(R,F,E)=>{ai(R,F?h:a),ai(R,F?u:m),E&&E()},$=(R,F)=>{R._isLeaving=!1,ai(R,c),ai(R,s),ai(R,f),F&&F()},j=R=>(F,E)=>{const W=R?T:b,te=()=>A(F,R,E);Fi(W,[F,te]),Vg(()=>{ai(F,R?o:l),Ar(F,R?h:a),jg(W)||Hg(F,r,v,te)})};return Ut(t,{onBeforeEnter(R){Fi(y,[R]),Ar(R,l),Ar(R,m)},onBeforeAppear(R){Fi(x,[R]),Ar(R,o),Ar(R,u)},onEnter:j(!1),onAppear:j(!0),onLeave(R,F){R._isLeaving=!0;const E=()=>$(R,F);Ar(R,c),Cb(),Ar(R,f),Vg(()=>{!R._isLeaving||(ai(R,c),Ar(R,s),jg(w)||Hg(R,r,g,E))}),Fi(w,[R,E])},onEnterCancelled(R){A(R,!1),Fi(_,[R])},onAppearCancelled(R){A(R,!0),Fi(O,[R])},onLeaveCancelled(R){$(R),Fi(S,[R])}})}function rx(e){if(e==null)return null;if(Qe(e))return[Hc(e.enter),Hc(e.leave)];{const t=Hc(e);return[t,t]}}function Hc(e){return ku(e)}function Ar(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function ai(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Vg(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let ix=0;function Hg(e,t,n,r){const i=e._endId=++ix,l=()=>{i===e._endId&&r()};if(n)return setTimeout(l,n);const{type:m,timeout:a,propCount:o}=wb(e,t);if(!m)return r();const u=m+"end";let h=0;const c=()=>{e.removeEventListener(u,f),l()},f=s=>{s.target===e&&++h>=o&&c()};setTimeout(()=>{h<o&&c()},a+1),e.addEventListener(u,f)}function wb(e,t){const n=window.getComputedStyle(e),r=d=>(n[d]||"").split(", "),i=r(ri+"Delay"),l=r(ri+"Duration"),m=Ug(i,l),a=r(Da+"Delay"),o=r(Da+"Duration"),u=Ug(a,o);let h=null,c=0,f=0;t===ri?m>0&&(h=ri,c=m,f=l.length):t===Da?u>0&&(h=Da,c=u,f=o.length):(c=Math.max(m,u),h=c>0?m>u?ri:Da:null,f=h?h===ri?l.length:o.length:0);const s=h===ri&&/\b(transform|all)(,|$)/.test(n[ri+"Property"]);return{type:h,timeout:c,propCount:f,hasTransform:s}}function Ug(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Wg(n)+Wg(e[r])))}function Wg(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Cb(){return document.body.offsetHeight}const Sb=new WeakMap,xb=new WeakMap,ox={name:"TransitionGroup",props:Ut({},nx,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=gt(),r=Xy();let i,l;return To(()=>{if(!i.length)return;const m=e.moveClass||`${e.name||"v"}-move`;if(!cx(i[0].el,n.vnode.el,m))return;i.forEach(sx),i.forEach(lx);const a=i.filter(ux);Cb(),a.forEach(o=>{const u=o.el,h=u.style;Ar(u,m),h.transform=h.webkitTransform=h.transitionDuration="";const c=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",c),u._moveCb=null,ai(u,m))};u.addEventListener("transitionend",c)})}),()=>{const m=Ze(e),a=_b(m);let o=m.tag||ze;i=l,l=t.default?Mh(t.default()):[];for(let u=0;u<l.length;u++){const h=l[u];h.key!=null&&xs(h,Ss(h,a,r,n))}if(i)for(let u=0;u<i.length;u++){const h=i[u];xs(h,Ss(h,a,r,n)),Sb.set(h,h.el.getBoundingClientRect())}return ue(o,null,l)}}},ax=ox;function sx(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function lx(e){xb.set(e,e.el.getBoundingClientRect())}function ux(e){const t=Sb.get(e),n=xb.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const l=e.el.style;return l.transform=l.webkitTransform=`translate(${r}px,${i}px)`,l.transitionDuration="0s",e}}function cx(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(m=>{m.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(m=>m&&r.classList.add(m)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=wb(r);return i.removeChild(r),l}const Mu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return je(t)?n=>iu(t,n):t};function fx(e){e.target.composing=!0}function Yg(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const dx={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Mu(i);const l=r||i.props&&i.props.type==="number";Yi(e,t?"change":"input",m=>{if(m.target.composing)return;let a=e.value;n&&(a=a.trim()),l&&(a=ku(a)),e._assign(a)}),n&&Yi(e,"change",()=>{e.value=e.value.trim()}),t||(Yi(e,"compositionstart",fx),Yi(e,"compositionend",Yg),Yi(e,"change",Yg))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},l){if(e._assign=Mu(l),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&ku(e.value)===t))return;const m=t==null?"":t;e.value!==m&&(e.value=m)}},Tb={created(e,{value:t},n){e.checked=Su(t,n.props.value),e._assign=Mu(n),Yi(e,"change",()=>{e._assign(hx(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Mu(r),t!==n&&(e.checked=Su(t,r.props.value))}};function hx(e){return"_value"in e?e._value:e.value}const px=["ctrl","shift","alt","meta"],gx={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)=>px.some(n=>e[`${n}Key`]&&!t.includes(n))},Je=(e,t)=>(n,...r)=>{for(let i=0;i<t.length;i++){const l=gx[t[i]];if(l&&l(n,t))return}return e(n,...r)},vx={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Et=(e,t)=>n=>{if(!("key"in n))return;const r=wo(n.key);if(t.some(i=>i===r||vx[i]===r))return e(n)},Lt={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):$a(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),$a(e,!0),r.enter(e)):r.leave(e,()=>{$a(e,!1)}):$a(e,t))},beforeUnmount(e,{value:t}){$a(e,t)}};function $a(e,t){e.style.display=t?e._vod:"none"}const mx=Ut({patchProp:QS},FS);let Xg;function kb(){return Xg||(Xg=yS(mx))}const Lu=(...e)=>{kb().render(...e)},yx=(...e)=>{const t=kb().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=bx(r);if(!i)return;const l=t._component;!Ve(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.innerHTML="";const m=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),m},t};function bx(e){return Ye(e)?document.querySelector(e):e}var _x=!1;/*!
|
||
* pinia v2.0.22
|
||
* (c) 2022 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let Eb;const gc=e=>Eb=e,Ob=Symbol();function od(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var es;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(es||(es={}));function wx(){const e=_h(!0),t=e.run(()=>se({}));let n=[],r=[];const i=Ti({install(l){gc(i),i._a=l,l.provide(Ob,i),l.config.globalProperties.$pinia=i,r.forEach(m=>n.push(m)),r=[]},use(l){return!this._a&&!_x?r.push(l):n.push(l),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Ab=()=>{};function Kg(e,t,n,r=Ab){e.push(t);const i=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),r())};return!n&>()&&Zr(i),i}function Ro(e,...t){e.slice().forEach(n=>{n(...t)})}function ad(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];od(i)&&od(r)&&e.hasOwnProperty(n)&&!St(r)&&!bi(r)?e[n]=ad(i,r):e[n]=r}return e}const Cx=Symbol();function Sx(e){return!od(e)||!e.hasOwnProperty(Cx)}const{assign:Ir}=Object;function xx(e){return!!(St(e)&&e.effect)}function Tx(e,t,n,r){const{state:i,actions:l,getters:m}=t,a=n.state.value[e];let o;function u(){a||(n.state.value[e]=i?i():{});const h=zn(n.state.value[e]);return Ir(h,l,Object.keys(m||{}).reduce((c,f)=>(c[f]=Ti(ee(()=>{gc(n);const s=n._s.get(e);return m[f].call(s,s)})),c),{}))}return o=Pb(e,u,t,n,r,!0),o.$reset=function(){const c=i?i():{};this.$patch(f=>{Ir(f,c)})},o}function Pb(e,t,n={},r,i,l){let m;const a=Ir({actions:{}},n),o={deep:!0};let u,h,c=Ti([]),f=Ti([]),s;const d=r.state.value[e];!l&&!d&&(r.state.value[e]={}),se({});let v;function g(T){let O;u=h=!1,typeof T=="function"?(T(r.state.value[e]),O={type:es.patchFunction,storeId:e,events:s}):(ad(r.state.value[e],T),O={type:es.patchObject,payload:T,storeId:e,events:s});const A=v=Symbol();He().then(()=>{v===A&&(u=!0)}),h=!0,Ro(c,O,r.state.value[e])}const y=Ab;function b(){m.stop(),c=[],f=[],r._s.delete(e)}function _(T,O){return function(){gc(r);const A=Array.from(arguments),$=[],j=[];function R(W){$.push(W)}function F(W){j.push(W)}Ro(f,{args:A,name:T,store:S,after:R,onError:F});let E;try{E=O.apply(this&&this.$id===e?this:S,A)}catch(W){throw Ro(j,W),W}return E instanceof Promise?E.then(W=>(Ro($,W),W)).catch(W=>(Ro(j,W),Promise.reject(W))):(Ro($,E),E)}}const w={_p:r,$id:e,$onAction:Kg.bind(null,f),$patch:g,$reset:y,$subscribe(T,O={}){const A=Kg(c,T,O.detached,()=>$()),$=m.run(()=>xe(()=>r.state.value[e],j=>{(O.flush==="sync"?h:u)&&T({storeId:e,type:es.direct,events:s},j)},Ir({},o,O)));return A},$dispose:b},S=_t(Ir({},w));r._s.set(e,S);const x=r._e.run(()=>(m=_h(),m.run(()=>t())));for(const T in x){const O=x[T];if(St(O)&&!xx(O)||bi(O))l||(d&&Sx(O)&&(St(O)?O.value=d[T]:ad(O,d[T])),r.state.value[e][T]=O);else if(typeof O=="function"){const A=_(T,O);x[T]=A,a.actions[T]=O}}return Ir(S,x),Ir(Ze(S),x),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:T=>{g(O=>{Ir(O,T)})}}),r._p.forEach(T=>{Ir(S,m.run(()=>T({store:S,app:r._a,pinia:r,options:a})))}),d&&l&&n.hydrate&&n.hydrate(S.$state,d),u=!0,h=!0,S}function ya(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 m(a,o){const u=gt();return a=a||u&&We(Ob),a&&gc(a),a=Eb,a._s.has(r)||(l?Pb(r,t,i,a):Tx(r,i,a)),a._s.get(r)}return m.$id=r,m}/*!
|
||
* vue-router v4.1.5
|
||
* (c) 2022 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const Vo=typeof window<"u";function kx(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const mt=Object.assign;function Uc(e,t){const n={};for(const r in t){const i=t[r];n[r]=er(i)?i.map(e):e(i)}return n}const ts=()=>{},er=Array.isArray,Ex=/\/$/,Ox=e=>e.replace(Ex,"");function Wc(e,t,n="/"){let r,i={},l="",m="";const a=t.indexOf("#");let o=t.indexOf("?");return a<o&&a>=0&&(o=-1),o>-1&&(r=t.slice(0,o),l=t.slice(o+1,a>-1?a:t.length),i=e(l)),a>-1&&(r=r||t.slice(0,a),m=t.slice(a,t.length)),r=Mx(r!=null?r:t,n),{fullPath:r+(l&&"?")+l+m,path:r,query:i,hash:m}}function Ax(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Gg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Px(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ra(t.matched[r],n.matched[i])&&Ib(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ra(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ib(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Ix(e[n],t[n]))return!1;return!0}function Ix(e,t){return er(e)?qg(e,t):er(t)?qg(t,e):e===t}function qg(e,t){return er(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Mx(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let i=n.length-1,l,m;for(l=0;l<r.length;l++)if(m=r[l],m!==".")if(m==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(l-(l===r.length?1:0)).join("/")}var Es;(function(e){e.pop="pop",e.push="push"})(Es||(Es={}));var ns;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ns||(ns={}));function Lx(e){if(!e)if(Vo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ox(e)}const Rx=/^[^#]+#/;function Dx(e,t){return e.replace(Rx,"#")+t}function $x(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 vc=()=>({left:window.pageXOffset,top:window.pageYOffset});function Bx(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=$x(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function Zg(e,t){return(history.state?history.state.position-t:-1)+e}const sd=new Map;function Fx(e,t){sd.set(e,t)}function zx(e){const t=sd.get(e);return sd.delete(e),t}let Nx=()=>location.protocol+"//"+location.host;function Mb(e,t){const{pathname:n,search:r,hash:i}=t,l=e.indexOf("#");if(l>-1){let a=i.includes(e.slice(l))?e.slice(l).length:1,o=i.slice(a);return o[0]!=="/"&&(o="/"+o),Gg(o,"")}return Gg(n,e)+r+i}function jx(e,t,n,r){let i=[],l=[],m=null;const a=({state:f})=>{const s=Mb(e,location),d=n.value,v=t.value;let g=0;if(f){if(n.value=s,t.value=f,m&&m===d){m=null;return}g=v?f.position-v.position:0}else r(s);i.forEach(y=>{y(n.value,d,{delta:g,type:Es.pop,direction:g?g>0?ns.forward:ns.back:ns.unknown})})};function o(){m=n.value}function u(f){i.push(f);const s=()=>{const d=i.indexOf(f);d>-1&&i.splice(d,1)};return l.push(s),s}function h(){const{history:f}=window;!f.state||f.replaceState(mt({},f.state,{scroll:vc()}),"")}function c(){for(const f of l)f();l=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",h),{pauseListeners:o,listen:u,destroy:c}}function Jg(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?vc():null}}function Vx(e){const{history:t,location:n}=window,r={value:Mb(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(o,u,h){const c=e.indexOf("#"),f=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+o:Nx()+e+o;try{t[h?"replaceState":"pushState"](u,"",f),i.value=u}catch(s){console.error(s),n[h?"replace":"assign"](f)}}function m(o,u){const h=mt({},t.state,Jg(i.value.back,o,i.value.forward,!0),u,{position:i.value.position});l(o,h,!0),r.value=o}function a(o,u){const h=mt({},i.value,t.state,{forward:o,scroll:vc()});l(h.current,h,!0);const c=mt({},Jg(r.value,o,null),{position:h.position+1},u);l(o,c,!1),r.value=o}return{location:r,state:i,push:a,replace:m}}function Hx(e){e=Lx(e);const t=Vx(e),n=jx(e,t.state,t.location,t.replace);function r(l,m=!0){m||n.pauseListeners(),history.go(l)}const i=mt({location:"",base:e,go:r,createHref:Dx.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}function Ux(e){return typeof e=="string"||e&&typeof e=="object"}function Lb(e){return typeof e=="string"||typeof e=="symbol"}const ii={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Rb=Symbol("");var Qg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Qg||(Qg={}));function ia(e,t){return mt(new Error,{type:e,[Rb]:!0},t)}function Tr(e,t){return e instanceof Error&&Rb in e&&(t==null||!!(e.type&t))}const ev="[^/]+?",Wx={sensitive:!1,strict:!1,start:!0,end:!0},Yx=/[.+*?^${}()[\]/\\]/g;function Xx(e,t){const n=mt({},Wx,t),r=[];let i=n.start?"^":"";const l=[];for(const u of e){const h=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let c=0;c<u.length;c++){const f=u[c];let s=40+(n.sensitive?.25:0);if(f.type===0)c||(i+="/"),i+=f.value.replace(Yx,"\\$&"),s+=40;else if(f.type===1){const{value:d,repeatable:v,optional:g,regexp:y}=f;l.push({name:d,repeatable:v,optional:g});const b=y||ev;if(b!==ev){s+=10;try{new RegExp(`(${b})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${d}" (${b}): `+w.message)}}let _=v?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;c||(_=g&&u.length<2?`(?:/${_})`:"/"+_),g&&(_+="?"),i+=_,s+=20,g&&(s+=-8),v&&(s+=-20),b===".*"&&(s+=-50)}h.push(s)}r.push(h)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const m=new RegExp(i,n.sensitive?"":"i");function a(u){const h=u.match(m),c={};if(!h)return null;for(let f=1;f<h.length;f++){const s=h[f]||"",d=l[f-1];c[d.name]=s&&d.repeatable?s.split("/"):s}return c}function o(u){let h="",c=!1;for(const f of e){(!c||!h.endsWith("/"))&&(h+="/"),c=!1;for(const s of f)if(s.type===0)h+=s.value;else if(s.type===1){const{value:d,repeatable:v,optional:g}=s,y=d in u?u[d]:"";if(er(y)&&!v)throw new Error(`Provided param "${d}" is an array but it is not repeatable (* or + modifiers)`);const b=er(y)?y.join("/"):y;if(!b)if(g)f.length<2&&(h.endsWith("/")?h=h.slice(0,-1):c=!0);else throw new Error(`Missing required param "${d}"`);h+=b}}return h||"/"}return{re:m,score:r,keys:l,parse:a,stringify:o}}function Kx(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]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Gx(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const l=Kx(r[n],i[n]);if(l)return l;n++}if(Math.abs(i.length-r.length)===1){if(tv(r))return 1;if(tv(i))return-1}return i.length-r.length}function tv(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const qx={type:0,value:""},Zx=/[a-zA-Z0-9_]/;function Jx(e){if(!e)return[[]];if(e==="/")return[[qx]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(s){throw new Error(`ERR (${n})/"${u}": ${s}`)}let n=0,r=n;const i=[];let l;function m(){l&&i.push(l),l=[]}let a=0,o,u="",h="";function c(){!u||(n===0?l.push({type:0,value:u}):n===1||n===2||n===3?(l.length>1&&(o==="*"||o==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:u,regexp:h,repeatable:o==="*"||o==="+",optional:o==="*"||o==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=o}for(;a<e.length;){if(o=e[a++],o==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:o==="/"?(u&&c(),m()):o===":"?(c(),n=1):f();break;case 4:f(),n=r;break;case 1:o==="("?n=2:Zx.test(o)?f():(c(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&a--);break;case 2:o===")"?h[h.length-1]=="\\"?h=h.slice(0,-1)+o:n=3:h+=o;break;case 3:c(),n=0,o!=="*"&&o!=="?"&&o!=="+"&&a--,h="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),m(),i}function Qx(e,t,n){const r=Xx(Jx(e.path),n),i=mt(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function eT(e,t){const n=[],r=new Map;t=iv({strict:!1,end:!0,sensitive:!1},t);function i(h){return r.get(h)}function l(h,c,f){const s=!f,d=tT(h);d.aliasOf=f&&f.record;const v=iv(t,h),g=[d];if("alias"in h){const _=typeof h.alias=="string"?[h.alias]:h.alias;for(const w of _)g.push(mt({},d,{components:f?f.record.components:d.components,path:w,aliasOf:f?f.record:d}))}let y,b;for(const _ of g){const{path:w}=_;if(c&&w[0]!=="/"){const S=c.record.path,x=S[S.length-1]==="/"?"":"/";_.path=c.record.path+(w&&x+w)}if(y=Qx(_,c,v),f?f.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),s&&h.name&&!rv(y)&&m(h.name)),d.children){const S=d.children;for(let x=0;x<S.length;x++)l(S[x],y,f&&f.children[x])}f=f||y,o(y)}return b?()=>{m(b)}:ts}function m(h){if(Lb(h)){const c=r.get(h);c&&(r.delete(h),n.splice(n.indexOf(c),1),c.children.forEach(m),c.alias.forEach(m))}else{const c=n.indexOf(h);c>-1&&(n.splice(c,1),h.record.name&&r.delete(h.record.name),h.children.forEach(m),h.alias.forEach(m))}}function a(){return n}function o(h){let c=0;for(;c<n.length&&Gx(h,n[c])>=0&&(h.record.path!==n[c].record.path||!Db(h,n[c]));)c++;n.splice(c,0,h),h.record.name&&!rv(h)&&r.set(h.record.name,h)}function u(h,c){let f,s={},d,v;if("name"in h&&h.name){if(f=r.get(h.name),!f)throw ia(1,{location:h});v=f.record.name,s=mt(nv(c.params,f.keys.filter(b=>!b.optional).map(b=>b.name)),h.params&&nv(h.params,f.keys.map(b=>b.name))),d=f.stringify(s)}else if("path"in h)d=h.path,f=n.find(b=>b.re.test(d)),f&&(s=f.parse(d),v=f.record.name);else{if(f=c.name?r.get(c.name):n.find(b=>b.re.test(c.path)),!f)throw ia(1,{location:h,currentLocation:c});v=f.record.name,s=mt({},c.params,h.params),d=f.stringify(s)}const g=[];let y=f;for(;y;)g.unshift(y.record),y=y.parent;return{name:v,path:d,params:s,matched:g,meta:rT(g)}}return e.forEach(h=>l(h)),{addRoute:l,resolve:u,removeRoute:m,getRoutes:a,getRecordMatcher:i}}function nv(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function tT(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:nT(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}function nT(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function rv(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function rT(e){return e.reduce((t,n)=>mt(t,n.meta),{})}function iv(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function Db(e,t){return t.children.some(n=>n===e||Db(e,n))}const $b=/#/g,iT=/&/g,oT=/\//g,aT=/=/g,sT=/\?/g,Bb=/\+/g,lT=/%5B/g,uT=/%5D/g,Fb=/%5E/g,cT=/%60/g,zb=/%7B/g,fT=/%7C/g,Nb=/%7D/g,dT=/%20/g;function Nh(e){return encodeURI(""+e).replace(fT,"|").replace(lT,"[").replace(uT,"]")}function hT(e){return Nh(e).replace(zb,"{").replace(Nb,"}").replace(Fb,"^")}function ld(e){return Nh(e).replace(Bb,"%2B").replace(dT,"+").replace($b,"%23").replace(iT,"%26").replace(cT,"`").replace(zb,"{").replace(Nb,"}").replace(Fb,"^")}function pT(e){return ld(e).replace(aT,"%3D")}function gT(e){return Nh(e).replace($b,"%23").replace(sT,"%3F")}function vT(e){return e==null?"":gT(e).replace(oT,"%2F")}function Ru(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function mT(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const l=r[i].replace(Bb," "),m=l.indexOf("="),a=Ru(m<0?l:l.slice(0,m)),o=m<0?null:Ru(l.slice(m+1));if(a in t){let u=t[a];er(u)||(u=t[a]=[u]),u.push(o)}else t[a]=o}return t}function ov(e){let t="";for(let n in e){const r=e[n];if(n=pT(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(er(r)?r.map(l=>l&&ld(l)):[r&&ld(r)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function yT(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=er(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const bT=Symbol(""),av=Symbol(""),jh=Symbol(""),Vh=Symbol(""),ud=Symbol("");function Ba(){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,reset:n}}function di(e,t,n,r,i){const l=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((m,a)=>{const o=c=>{c===!1?a(ia(4,{from:n,to:t})):c instanceof Error?a(c):Ux(c)?a(ia(2,{from:t,to:c})):(l&&r.enterCallbacks[i]===l&&typeof c=="function"&&l.push(c),m())},u=e.call(r&&r.instances[i],t,n,o);let h=Promise.resolve(u);e.length<3&&(h=h.then(o)),h.catch(c=>a(c))})}function Yc(e,t,n,r){const i=[];for(const l of e)for(const m in l.components){let a=l.components[m];if(!(t!=="beforeRouteEnter"&&!l.instances[m]))if(_T(a)){const u=(a.__vccOpts||a)[t];u&&i.push(di(u,n,r,l,m))}else{let o=a();i.push(()=>o.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${m}" at "${l.path}"`));const h=kx(u)?u.default:u;l.components[m]=h;const f=(h.__vccOpts||h)[t];return f&&di(f,n,r,l,m)()}))}}return i}function _T(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sv(e){const t=We(jh),n=We(Vh),r=ee(()=>t.resolve(C(e.to))),i=ee(()=>{const{matched:o}=r.value,{length:u}=o,h=o[u-1],c=n.matched;if(!h||!c.length)return-1;const f=c.findIndex(ra.bind(null,h));if(f>-1)return f;const s=lv(o[u-2]);return u>1&&lv(h)===s&&c[c.length-1].path!==s?c.findIndex(ra.bind(null,o[u-2])):f}),l=ee(()=>i.value>-1&&xT(n.params,r.value.params)),m=ee(()=>i.value>-1&&i.value===n.matched.length-1&&Ib(n.params,r.value.params));function a(o={}){return ST(o)?t[C(e.replace)?"replace":"push"](C(e.to)).catch(ts):Promise.resolve()}return{route:r,href:ee(()=>r.value.href),isActive:l,isExactActive:m,navigate:a}}const wT=Te({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:sv,setup(e,{slots:t}){const n=_t(sv(e)),{options:r}=We(jh),i=ee(()=>({[uv(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[uv(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&t.default(n);return e.custom?l:ht("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},l)}}}),CT=wT;function ST(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 xT(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(!er(i)||i.length!==r.length||r.some((l,m)=>l!==i[m]))return!1}return!0}function lv(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const uv=(e,t,n)=>e!=null?e:t!=null?t:n,TT=Te({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=We(ud),i=ee(()=>e.route||r.value),l=We(av,0),m=ee(()=>{let u=C(l);const{matched:h}=i.value;let c;for(;(c=h[u])&&!c.components;)u++;return u}),a=ee(()=>i.value.matched[m.value]);st(av,ee(()=>m.value+1)),st(bT,a),st(ud,i);const o=se();return xe(()=>[o.value,a.value,e.name],([u,h,c],[f,s,d])=>{h&&(h.instances[c]=u,s&&s!==h&&u&&u===f&&(h.leaveGuards.size||(h.leaveGuards=s.leaveGuards),h.updateGuards.size||(h.updateGuards=s.updateGuards))),u&&h&&(!s||!ra(h,s)||!f)&&(h.enterCallbacks[c]||[]).forEach(v=>v(u))},{flush:"post"}),()=>{const u=i.value,h=e.name,c=a.value,f=c&&c.components[h];if(!f)return cv(n.default,{Component:f,route:u});const s=c.props[h],d=s?s===!0?u.params:typeof s=="function"?s(u):s:null,g=ht(f,mt({},d,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[h]=null)},ref:o}));return cv(n.default,{Component:g,route:u})||g}}});function cv(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const jb=TT;function kT(e){const t=eT(e.routes,e),n=e.parseQuery||mT,r=e.stringifyQuery||ov,i=e.history,l=Ba(),m=Ba(),a=Ba(),o=en(ii);let u=ii;Vo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=Uc.bind(null,P=>""+P),c=Uc.bind(null,vT),f=Uc.bind(null,Ru);function s(P,q){let Z,re;return Lb(P)?(Z=t.getRecordMatcher(P),re=q):re=P,t.addRoute(re,Z)}function d(P){const q=t.getRecordMatcher(P);q&&t.removeRoute(q)}function v(){return t.getRoutes().map(P=>P.record)}function g(P){return!!t.getRecordMatcher(P)}function y(P,q){if(q=mt({},q||o.value),typeof P=="string"){const Y=Wc(n,P,q.path),K=t.resolve({path:Y.path},q),k=i.createHref(Y.fullPath);return mt(Y,K,{params:f(K.params),hash:Ru(Y.hash),redirectedFrom:void 0,href:k})}let Z;if("path"in P)Z=mt({},P,{path:Wc(n,P.path,q.path).path});else{const Y=mt({},P.params);for(const K in Y)Y[K]==null&&delete Y[K];Z=mt({},P,{params:c(P.params)}),q.params=c(q.params)}const re=t.resolve(Z,q),de=P.hash||"";re.params=h(f(re.params));const ve=Ax(r,mt({},P,{hash:hT(de),path:re.path})),me=i.createHref(ve);return mt({fullPath:ve,hash:de,query:r===ov?yT(P.query):P.query||{}},re,{redirectedFrom:void 0,href:me})}function b(P){return typeof P=="string"?Wc(n,P,o.value.path):mt({},P)}function _(P,q){if(u!==P)return ia(8,{from:q,to:P})}function w(P){return T(P)}function S(P){return w(mt(b(P),{replace:!0}))}function x(P){const q=P.matched[P.matched.length-1];if(q&&q.redirect){const{redirect:Z}=q;let re=typeof Z=="function"?Z(P):Z;return typeof re=="string"&&(re=re.includes("?")||re.includes("#")?re=b(re):{path:re},re.params={}),mt({query:P.query,hash:P.hash,params:"path"in re?{}:P.params},re)}}function T(P,q){const Z=u=y(P),re=o.value,de=P.state,ve=P.force,me=P.replace===!0,Y=x(Z);if(Y)return T(mt(b(Y),{state:typeof Y=="object"?mt({},de,Y.state):de,force:ve,replace:me}),q||Z);const K=Z;K.redirectedFrom=q;let k;return!ve&&Px(r,re,Z)&&(k=ia(16,{to:K,from:re}),z(re,re,!0,!1)),(k?Promise.resolve(k):A(K,re)).catch(N=>Tr(N)?Tr(N,2)?N:I(N):Q(N,K,re)).then(N=>{if(N){if(Tr(N,2))return T(mt({replace:me},b(N.to),{state:typeof N.to=="object"?mt({},de,N.to.state):de,force:ve}),q||K)}else N=j(K,re,!0,me,de);return $(K,re,N),N})}function O(P,q){const Z=_(P,q);return Z?Promise.reject(Z):Promise.resolve()}function A(P,q){let Z;const[re,de,ve]=ET(P,q);Z=Yc(re.reverse(),"beforeRouteLeave",P,q);for(const Y of re)Y.leaveGuards.forEach(K=>{Z.push(di(K,P,q))});const me=O.bind(null,P,q);return Z.push(me),Do(Z).then(()=>{Z=[];for(const Y of l.list())Z.push(di(Y,P,q));return Z.push(me),Do(Z)}).then(()=>{Z=Yc(de,"beforeRouteUpdate",P,q);for(const Y of de)Y.updateGuards.forEach(K=>{Z.push(di(K,P,q))});return Z.push(me),Do(Z)}).then(()=>{Z=[];for(const Y of P.matched)if(Y.beforeEnter&&!q.matched.includes(Y))if(er(Y.beforeEnter))for(const K of Y.beforeEnter)Z.push(di(K,P,q));else Z.push(di(Y.beforeEnter,P,q));return Z.push(me),Do(Z)}).then(()=>(P.matched.forEach(Y=>Y.enterCallbacks={}),Z=Yc(ve,"beforeRouteEnter",P,q),Z.push(me),Do(Z))).then(()=>{Z=[];for(const Y of m.list())Z.push(di(Y,P,q));return Z.push(me),Do(Z)}).catch(Y=>Tr(Y,8)?Y:Promise.reject(Y))}function $(P,q,Z){for(const re of a.list())re(P,q,Z)}function j(P,q,Z,re,de){const ve=_(P,q);if(ve)return ve;const me=q===ii,Y=Vo?history.state:{};Z&&(re||me?i.replace(P.fullPath,mt({scroll:me&&Y&&Y.scroll},de)):i.push(P.fullPath,de)),o.value=P,z(P,q,Z,me),I()}let R;function F(){R||(R=i.listen((P,q,Z)=>{if(!U.listening)return;const re=y(P),de=x(re);if(de){T(mt(de,{replace:!0}),re).catch(ts);return}u=re;const ve=o.value;Vo&&Fx(Zg(ve.fullPath,Z.delta),vc()),A(re,ve).catch(me=>Tr(me,12)?me:Tr(me,2)?(T(me.to,re).then(Y=>{Tr(Y,20)&&!Z.delta&&Z.type===Es.pop&&i.go(-1,!1)}).catch(ts),Promise.reject()):(Z.delta&&i.go(-Z.delta,!1),Q(me,re,ve))).then(me=>{me=me||j(re,ve,!1),me&&(Z.delta&&!Tr(me,8)?i.go(-Z.delta,!1):Z.type===Es.pop&&Tr(me,20)&&i.go(-1,!1)),$(re,ve,me)}).catch(ts)}))}let E=Ba(),W=Ba(),te;function Q(P,q,Z){I(P);const re=W.list();return re.length?re.forEach(de=>de(P,q,Z)):console.error(P),Promise.reject(P)}function le(){return te&&o.value!==ii?Promise.resolve():new Promise((P,q)=>{E.add([P,q])})}function I(P){return te||(te=!P,F(),E.list().forEach(([q,Z])=>P?Z(P):q()),E.reset()),P}function z(P,q,Z,re){const{scrollBehavior:de}=e;if(!Vo||!de)return Promise.resolve();const ve=!Z&&zx(Zg(P.fullPath,0))||(re||!Z)&&history.state&&history.state.scroll||null;return He().then(()=>de(P,q,ve)).then(me=>me&&Bx(me)).catch(me=>Q(me,P,q))}const M=P=>i.go(P);let L;const J=new Set,U={currentRoute:o,listening:!0,addRoute:s,removeRoute:d,hasRoute:g,getRoutes:v,resolve:y,options:e,push:w,replace:S,go:M,back:()=>M(-1),forward:()=>M(1),beforeEach:l.add,beforeResolve:m.add,afterEach:a.add,onError:W.add,isReady:le,install(P){const q=this;P.component("RouterLink",CT),P.component("RouterView",jb),P.config.globalProperties.$router=q,Object.defineProperty(P.config.globalProperties,"$route",{enumerable:!0,get:()=>C(o)}),Vo&&!L&&o.value===ii&&(L=!0,w(i.location).catch(de=>{}));const Z={};for(const de in ii)Z[de]=ee(()=>o.value[de]);P.provide(jh,q),P.provide(Vh,_t(Z)),P.provide(ud,o);const re=P.unmount;J.add(P),P.unmount=function(){J.delete(P),J.size<1&&(u=ii,R&&R(),R=null,o.value=ii,L=!1,te=!1),re()}}};return U}function Do(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function ET(e,t){const n=[],r=[],i=[],l=Math.max(t.matched.length,e.matched.length);for(let m=0;m<l;m++){const a=t.matched[m];a&&(e.matched.find(u=>ra(u,a))?r.push(a):n.push(a));const o=e.matched[m];o&&(t.matched.find(u=>ra(u,o))||i.push(o))}return[n,r,i]}function OT(){return We(Vh)}/*! Element Plus Icons Vue v2.0.9 */var Ke=(e,t)=>{let n=e.__vccOpts||e;for(let[r,i]of t)n[r]=i;return n},AT={name:"ArrowDown"},PT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},IT=oe("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 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.592 30.592 0 0 0-42.752 0z"},null,-1),MT=[IT];function LT(e,t,n,r,i,l){return V(),ce("svg",PT,MT)}var mc=Ke(AT,[["render",LT],["__file","arrow-down.vue"]]),RT={name:"ArrowLeft"},DT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$T=oe("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.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"},null,-1),BT=[$T];function FT(e,t,n,r,i,l){return V(),ce("svg",DT,BT)}var yc=Ke(RT,[["render",FT],["__file","arrow-left.vue"]]),zT={name:"ArrowRight"},NT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jT=oe("path",{fill:"currentColor",d:"M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 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"},null,-1),VT=[jT];function HT(e,t,n,r,i,l){return V(),ce("svg",NT,VT)}var ba=Ke(zT,[["render",HT],["__file","arrow-right.vue"]]),UT={name:"ArrowUp"},WT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YT=oe("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 0z"},null,-1),XT=[YT];function KT(e,t,n,r,i,l){return V(),ce("svg",WT,XT)}var GT=Ke(UT,[["render",KT],["__file","arrow-up.vue"]]),qT={name:"Back"},ZT={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},JT=oe("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),QT=oe("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.312L237.248 512z"},null,-1),ek=[JT,QT];function tk(e,t,n,r,i,l){return V(),ce("svg",ZT,ek)}var Vb=Ke(qT,[["render",tk],["__file","back.vue"]]),nk={name:"Check"},rk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ik=oe("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"},null,-1),ok=[ik];function ak(e,t,n,r,i,l){return V(),ce("svg",rk,ok)}var Hb=Ke(nk,[["render",ak],["__file","check.vue"]]),sk={name:"CircleCheckFilled"},lk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uk=oe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),ck=[uk];function fk(e,t,n,r,i,l){return V(),ce("svg",lk,ck)}var Ub=Ke(sk,[["render",fk],["__file","circle-check-filled.vue"]]),dk={name:"CircleCheck"},hk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},pk=oe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),gk=oe("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.752l265.344-265.408z"},null,-1),vk=[pk,gk];function mk(e,t,n,r,i,l){return V(),ce("svg",hk,vk)}var al=Ke(dk,[["render",mk],["__file","circle-check.vue"]]),yk={name:"CircleCloseFilled"},bk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_k=oe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 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.336L512 457.664z"},null,-1),wk=[_k];function Ck(e,t,n,r,i,l){return V(),ce("svg",bk,wk)}var Wb=Ke(yk,[["render",Ck],["__file","circle-close-filled.vue"]]),Sk={name:"CircleClose"},xk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Tk=oe("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.248L466.752 512z"},null,-1),kk=oe("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768zm0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896z"},null,-1),Ek=[Tk,kk];function Ok(e,t,n,r,i,l){return V(),ce("svg",xk,Ek)}var bc=Ke(Sk,[["render",Ok],["__file","circle-close.vue"]]),Ak={name:"Close"},Pk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ik=oe("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"},null,-1),Mk=[Ik];function Lk(e,t,n,r,i,l){return V(),ce("svg",Pk,Mk)}var yr=Ke(Ak,[["render",Lk],["__file","close.vue"]]),Rk={name:"Comment"},Dk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$k=oe("path",{fill:"currentColor",d:"M736 504a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zm-224 0a56 56 0 1 1 0-112 56 56 0 0 1 0 112zM128 128v640h192v160l224-160h352V128H128z"},null,-1),Bk=[$k];function Fk(e,t,n,r,i,l){return V(),ce("svg",Dk,Bk)}var zk=Ke(Rk,[["render",Fk],["__file","comment.vue"]]),Nk={name:"DArrowLeft"},jk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Vk=oe("path",{fill:"currentColor",d:"M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 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.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 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.672l331.648-340.224z"},null,-1),Hk=[Vk];function Uk(e,t,n,r,i,l){return V(),ce("svg",jk,Hk)}var Wk=Ke(Nk,[["render",Uk],["__file","d-arrow-left.vue"]]),Yk={name:"DArrowRight"},Xk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Kk=oe("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.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688zm-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.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"},null,-1),Gk=[Kk];function qk(e,t,n,r,i,l){return V(),ce("svg",Xk,Gk)}var Zk=Ke(Yk,[["render",qk],["__file","d-arrow-right.vue"]]),Jk={name:"Delete"},Qk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},eE=oe("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-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32zm192 0a32 32 0 0 1-32-32V416a32 32 0 0 1 64 0v320a32 32 0 0 1-32 32z"},null,-1),tE=[eE];function nE(e,t,n,r,i,l){return V(),ce("svg",Qk,tE)}var _c=Ke(Jk,[["render",nE],["__file","delete.vue"]]),rE={name:"Document"},iE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},oE=oe("path",{fill:"currentColor",d:"M832 384H576V128H192v768h640V384zm-26.496-64L640 154.496V320h165.504zM160 64h480l256 256v608a32 32 0 0 1-32 32H160a32 32 0 0 1-32-32V96a32 32 0 0 1 32-32zm160 448h384v64H320v-64zm0-192h160v64H320v-64zm0 384h384v64H320v-64z"},null,-1),aE=[oE];function sE(e,t,n,r,i,l){return V(),ce("svg",iE,aE)}var Yb=Ke(rE,[["render",sE],["__file","document.vue"]]),lE={name:"Download"},uE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},cE=oe("path",{fill:"currentColor",d:"M160 832h704a32 32 0 1 1 0 64H160a32 32 0 1 1 0-64zm384-253.696 236.288-236.352 45.248 45.248L508.8 704 192 387.2l45.248-45.248L480 584.704V128h64v450.304z"},null,-1),fE=[cE];function dE(e,t,n,r,i,l){return V(),ce("svg",uE,fE)}var Os=Ke(lE,[["render",dE],["__file","download.vue"]]),hE={name:"EditPen"},pE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gE=oe("path",{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.696L175.168 732.8zM455.04 229.248l193.92 112 56.704-98.112-193.984-112-56.64 98.112zM104.32 708.8l384-665.024 304.768 175.936L409.152 884.8h.064l-248.448 78.336L104.32 708.8zm384 254.272v-64h448v64h-448z",fill:"currentColor"},null,-1),vE=[gE];function mE(e,t,n,r,i,l){return V(),ce("svg",pE,vE)}var yE=Ke(hE,[["render",mE],["__file","edit-pen.vue"]]),bE={name:"Filter"},_E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wE=oe("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.288L384 523.392z"},null,-1),CE=[wE];function SE(e,t,n,r,i,l){return V(),ce("svg",_E,CE)}var xE=Ke(bE,[["render",SE],["__file","filter.vue"]]),TE={name:"FullScreen"},kE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},EE=oe("path",{fill:"currentColor",d:"m160 96.064 192 .192a32 32 0 0 1 0 64l-192-.192V352a32 32 0 0 1-64 0V96h64v.064zm0 831.872V928H96V672a32 32 0 1 1 64 0v191.936l192-.192a32 32 0 1 1 0 64l-192 .192zM864 96.064V96h64v256a32 32 0 1 1-64 0V160.064l-192 .192a32 32 0 1 1 0-64l192-.192zm0 831.872-192-.192a32 32 0 0 1 0-64l192 .192V672a32 32 0 1 1 64 0v256h-64v-.064z"},null,-1),OE=[EE];function AE(e,t,n,r,i,l){return V(),ce("svg",kE,OE)}var PE=Ke(TE,[["render",AE],["__file","full-screen.vue"]]),IE={name:"Hide"},ME={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LE=oe("path",{d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-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 176C44.8 438.4 0 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.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 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.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2L371.2 588.8ZM889.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.6-28.8 48-80 105.6-153.6 172.8-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-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z",fill:"currentColor"},null,-1),RE=oe("path",{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 112-32 28.8-67.2 48-112 48Z",fill:"currentColor"},null,-1),DE=[LE,RE];function $E(e,t,n,r,i,l){return V(),ce("svg",ME,DE)}var BE=Ke(IE,[["render",$E],["__file","hide.vue"]]),FE={name:"InfoFilled"},zE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},NE=oe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64zm67.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.344zM590.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.992 12.992 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"},null,-1),jE=[NE];function VE(e,t,n,r,i,l){return V(),ce("svg",zE,jE)}var Hh=Ke(FE,[["render",VE],["__file","info-filled.vue"]]),HE={name:"Link"},UE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},WE=oe("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.496 45.248 45.248zm0-362.048 45.248 45.248L398.848 670.4 353.6 625.152 625.152 353.6z"},null,-1),YE=[WE];function XE(e,t,n,r,i,l){return V(),ce("svg",UE,YE)}var KE=Ke(HE,[["render",XE],["__file","link.vue"]]),GE={name:"Loading"},qE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ZE=oe("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32zm0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32zm448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32zm-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32zM195.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.248zm452.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.248zM828.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 0zm-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 0z"},null,-1),JE=[ZE];function QE(e,t,n,r,i,l){return V(),ce("svg",qE,JE)}var Uh=Ke(GE,[["render",QE],["__file","loading.vue"]]),e3={name:"MagicStick"},t3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},n3=oe("path",{fill:"currentColor",d:"M512 64h64v192h-64V64zm0 576h64v192h-64V640zM160 480v-64h192v64H160zm576 0v-64h192v64H736zM249.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.248L657.152 606.4zM114.048 923.2 68.8 877.952l316.8-316.8 45.248 45.248-316.8 316.8zM702.4 334.848 657.152 289.6l135.744-135.744 45.248 45.248L702.4 334.848z"},null,-1),r3=[n3];function i3(e,t,n,r,i,l){return V(),ce("svg",t3,r3)}var o3=Ke(e3,[["render",i3],["__file","magic-stick.vue"]]),a3={name:"Menu"},s3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},l3=oe("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 32H160zm448 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 32H608zM160 896a32 32 0 0 1-32-32V608a32 32 0 0 1 32-32h256a32 32 0 0 1 32 32v256a32 32 0 0 1-32 32H160zm448 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 32H608z"},null,-1),u3=[l3];function c3(e,t,n,r,i,l){return V(),ce("svg",s3,u3)}var f3=Ke(a3,[["render",c3],["__file","menu.vue"]]),d3={name:"Minus"},h3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},p3=oe("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),g3=[p3];function v3(e,t,n,r,i,l){return V(),ce("svg",h3,g3)}var Xb=Ke(d3,[["render",v3],["__file","minus.vue"]]),m3={name:"MoreFilled"},y3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},b3=oe("path",{fill:"currentColor",d:"M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224z"},null,-1),_3=[b3];function w3(e,t,n,r,i,l){return V(),ce("svg",y3,_3)}var fv=Ke(m3,[["render",w3],["__file","more-filled.vue"]]),C3={name:"More"},S3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},x3=oe("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-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96zm336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224zm0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96z"},null,-1),T3=[x3];function k3(e,t,n,r,i,l){return V(),ce("svg",S3,T3)}var E3=Ke(C3,[["render",k3],["__file","more.vue"]]),O3={name:"Operation"},A3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P3=oe("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-64h261.44zm192-288a96.064 96.064 0 0 1 181.12 0H896v64H762.56a96.064 96.064 0 0 1-181.12 0H128v-64h453.44zm-320-288a96.064 96.064 0 0 1 181.12 0H896v64H442.56a96.064 96.064 0 0 1-181.12 0H128v-64h133.44z"},null,-1),I3=[P3];function M3(e,t,n,r,i,l){return V(),ce("svg",A3,I3)}var L3=Ke(O3,[["render",M3],["__file","operation.vue"]]),R3={name:"PictureFilled"},D3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$3=oe("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 32H96zm315.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.112zM256 384a96 96 0 1 0 192.064-.064A96 96 0 0 0 256 384z"},null,-1),B3=[$3];function F3(e,t,n,r,i,l){return V(),ce("svg",D3,B3)}var Xc=Ke(R3,[["render",F3],["__file","picture-filled.vue"]]),z3={name:"Plus"},N3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},j3=oe("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-64h352z"},null,-1),V3=[j3];function H3(e,t,n,r,i,l){return V(),ce("svg",N3,V3)}var Wh=Ke(z3,[["render",H3],["__file","plus.vue"]]),U3={name:"RefreshLeft"},W3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Y3=oe("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"},null,-1),X3=[Y3];function K3(e,t,n,r,i,l){return V(),ce("svg",W3,X3)}var Kb=Ke(U3,[["render",K3],["__file","refresh-left.vue"]]),G3={name:"RefreshRight"},q3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Z3=oe("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.88z"},null,-1),J3=[Z3];function Q3(e,t,n,r,i,l){return V(),ce("svg",q3,J3)}var Gb=Ke(G3,[["render",Q3],["__file","refresh-right.vue"]]),eO={name:"Refresh"},tO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},nO=oe("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"},null,-1),rO=[nO];function iO(e,t,n,r,i,l){return V(),ce("svg",tO,rO)}var Du=Ke(eO,[["render",iO],["__file","refresh.vue"]]),oO={name:"Right"},aO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},sO=oe("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.312L754.752 480z"},null,-1),lO=[sO];function uO(e,t,n,r,i,l){return V(),ce("svg",aO,lO)}var cO=Ke(oO,[["render",uO],["__file","right.vue"]]),fO={name:"ScaleToOriginal"},dO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},hO=oe("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.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 0 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zm-361.412 0a30.118 30.118 0 0 0-30.118 30.118v301.177a30.118 30.118 0 1 0 60.236 0V331.294a30.118 30.118 0 0 0-30.118-30.118zM512 361.412a30.118 30.118 0 0 0-30.118 30.117v30.118a30.118 30.118 0 0 0 60.236 0V391.53A30.118 30.118 0 0 0 512 361.412zM512 512a30.118 30.118 0 0 0-30.118 30.118v30.117a30.118 30.118 0 0 0 60.236 0v-30.117A30.118 30.118 0 0 0 512 512z"},null,-1),pO=[hO];function gO(e,t,n,r,i,l){return V(),ce("svg",dO,pO)}var vO=Ke(fO,[["render",gO],["__file","scale-to-original.vue"]]),mO={name:"Sort"},yO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},bO=oe("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.632V96zm192 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 0V141.248z"},null,-1),_O=[bO];function wO(e,t,n,r,i,l){return V(),ce("svg",yO,_O)}var CO=Ke(mO,[["render",wO],["__file","sort.vue"]]),SO={name:"StarFilled"},xO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},TO=oe("path",{fill:"currentColor",d:"M283.84 867.84 512 747.776l228.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.72z"},null,-1),kO=[TO];function EO(e,t,n,r,i,l){return V(),ce("svg",xO,kO)}var qb=Ke(SO,[["render",EO],["__file","star-filled.vue"]]),OO={name:"Star"},AO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},PO=oe("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.72L512 747.84zM313.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"},null,-1),IO=[PO];function MO(e,t,n,r,i,l){return V(),ce("svg",AO,IO)}var LO=Ke(OO,[["render",MO],["__file","star.vue"]]),RO={name:"SuccessFilled"},DO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$O=oe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336L456.192 600.384z"},null,-1),BO=[$O];function FO(e,t,n,r,i,l){return V(),ce("svg",DO,BO)}var Zb=Ke(RO,[["render",FO],["__file","success-filled.vue"]]),zO={name:"Tools"},NO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jO=oe("path",{fill:"currentColor",d:"M764.416 254.72a351.68 351.68 0 0 1 86.336 149.184H960v192.064H850.752a351.68 351.68 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.68 351.68 0 0 1-86.336-149.312H64v-192h109.248a351.68 351.68 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 0z"},null,-1),VO=[jO];function HO(e,t,n,r,i,l){return V(),ce("svg",NO,VO)}var UO=Ke(zO,[["render",HO],["__file","tools.vue"]]),WO={name:"UploadFilled"},YO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},XO=oe("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.808 239.808 0 0 1 512 192a239.872 239.872 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.6H544z"},null,-1),KO=[XO];function GO(e,t,n,r,i,l){return V(),ce("svg",YO,KO)}var Yh=Ke(WO,[["render",GO],["__file","upload-filled.vue"]]),qO={name:"View"},ZO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},JO=oe("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352zm0 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-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448zm0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160z"},null,-1),QO=[JO];function e4(e,t,n,r,i,l){return V(),ce("svg",ZO,QO)}var t4=Ke(qO,[["render",e4],["__file","view.vue"]]),n4={name:"WarningFilled"},r4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},i4=oe("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896zm0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256zm0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4z"},null,-1),o4=[i4];function a4(e,t,n,r,i,l){return V(),ce("svg",r4,o4)}var Xh=Ke(n4,[["render",a4],["__file","warning-filled.vue"]]),s4={name:"ZoomIn"},l4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},u4=oe("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 704zm-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-64h96z"},null,-1),c4=[u4];function f4(e,t,n,r,i,l){return V(),ce("svg",l4,c4)}var Jb=Ke(s4,[["render",f4],["__file","zoom-in.vue"]]),d4={name:"ZoomOut"},h4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},p4=oe("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 704zM352 448h256a32 32 0 0 1 0 64H352a32 32 0 0 1 0-64z"},null,-1),g4=[p4];function v4(e,t,n,r,i,l){return V(),ce("svg",h4,g4)}var m4=Ke(d4,[["render",v4],["__file","zoom-out.vue"]]),y4=typeof global=="object"&&global&&global.Object===Object&&global;const Qb=y4;var b4=typeof self=="object"&&self&&self.Object===Object&&self,_4=Qb||b4||Function("return this")();const rr=_4;var w4=rr.Symbol;const br=w4;var e_=Object.prototype,C4=e_.hasOwnProperty,S4=e_.toString,Fa=br?br.toStringTag:void 0;function x4(e){var t=C4.call(e,Fa),n=e[Fa];try{e[Fa]=void 0;var r=!0}catch{}var i=S4.call(e);return r&&(t?e[Fa]=n:delete e[Fa]),i}var T4=Object.prototype,k4=T4.toString;function E4(e){return k4.call(e)}var O4="[object Null]",A4="[object Undefined]",dv=br?br.toStringTag:void 0;function _a(e){return e==null?e===void 0?A4:O4:dv&&dv in Object(e)?x4(e):E4(e)}function Ei(e){return e!=null&&typeof e=="object"}var P4="[object Symbol]";function wc(e){return typeof e=="symbol"||Ei(e)&&_a(e)==P4}function I4(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 M4=Array.isArray;const Ur=M4;var L4=1/0,hv=br?br.prototype:void 0,pv=hv?hv.toString:void 0;function t_(e){if(typeof e=="string")return e;if(Ur(e))return I4(e,t_)+"";if(wc(e))return pv?pv.call(e):"";var t=e+"";return t=="0"&&1/e==-L4?"-0":t}var R4=/\s/;function D4(e){for(var t=e.length;t--&&R4.test(e.charAt(t)););return t}var $4=/^\s+/;function B4(e){return e&&e.slice(0,D4(e)+1).replace($4,"")}function tr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gv=0/0,F4=/^[-+]0x[0-9a-f]+$/i,z4=/^0b[01]+$/i,N4=/^0o[0-7]+$/i,j4=parseInt;function vv(e){if(typeof e=="number")return e;if(wc(e))return gv;if(tr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=tr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=B4(e);var n=z4.test(e);return n||N4.test(e)?j4(e.slice(2),n?2:8):F4.test(e)?gv:+e}var V4="[object AsyncFunction]",H4="[object Function]",U4="[object GeneratorFunction]",W4="[object Proxy]";function n_(e){if(!tr(e))return!1;var t=_a(e);return t==H4||t==U4||t==V4||t==W4}var Y4=rr["__core-js_shared__"];const Kc=Y4;var mv=function(){var e=/[^.]+$/.exec(Kc&&Kc.keys&&Kc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function X4(e){return!!mv&&mv in e}var K4=Function.prototype,G4=K4.toString;function ko(e){if(e!=null){try{return G4.call(e)}catch{}try{return e+""}catch{}}return""}var q4=/[\\^$.*+?()[\]{}|]/g,Z4=/^\[object .+?Constructor\]$/,J4=Function.prototype,Q4=Object.prototype,eA=J4.toString,tA=Q4.hasOwnProperty,nA=RegExp("^"+eA.call(tA).replace(q4,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function rA(e){if(!tr(e)||X4(e))return!1;var t=n_(e)?nA:Z4;return t.test(ko(e))}function iA(e,t){return e==null?void 0:e[t]}function Eo(e,t){var n=iA(e,t);return rA(n)?n:void 0}var oA=Eo(rr,"WeakMap");const cd=oA;var yv=Object.create,aA=function(){function e(){}return function(t){if(!tr(t))return{};if(yv)return yv(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const sA=aA;function lA(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var uA=function(){try{var e=Eo(Object,"defineProperty");return e({},"",{}),e}catch{}}();const bv=uA;function cA(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var fA=9007199254740991,dA=/^(?:0|[1-9]\d*)$/;function r_(e,t){var n=typeof e;return t=t==null?fA:t,!!t&&(n=="number"||n!="symbol"&&dA.test(e))&&e>-1&&e%1==0&&e<t}function i_(e,t,n){t=="__proto__"&&bv?bv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Kh(e,t){return e===t||e!==e&&t!==t}var hA=Object.prototype,pA=hA.hasOwnProperty;function Gh(e,t,n){var r=e[t];(!(pA.call(e,t)&&Kh(r,n))||n===void 0&&!(t in e))&&i_(e,t,n)}function Cc(e,t,n,r){var i=!n;n||(n={});for(var l=-1,m=t.length;++l<m;){var a=t[l],o=r?r(n[a],e[a],a,n,e):void 0;o===void 0&&(o=e[a]),i?i_(n,a,o):Gh(n,a,o)}return n}var gA=9007199254740991;function o_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=gA}function a_(e){return e!=null&&o_(e.length)&&!n_(e)}var vA=Object.prototype;function qh(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||vA;return e===n}function mA(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var yA="[object Arguments]";function _v(e){return Ei(e)&&_a(e)==yA}var s_=Object.prototype,bA=s_.hasOwnProperty,_A=s_.propertyIsEnumerable,wA=_v(function(){return arguments}())?_v:function(e){return Ei(e)&&bA.call(e,"callee")&&!_A.call(e,"callee")};const CA=wA;function SA(){return!1}var l_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wv=l_&&typeof module=="object"&&module&&!module.nodeType&&module,xA=wv&&wv.exports===l_,Cv=xA?rr.Buffer:void 0,TA=Cv?Cv.isBuffer:void 0,kA=TA||SA;const $u=kA;var EA="[object Arguments]",OA="[object Array]",AA="[object Boolean]",PA="[object Date]",IA="[object Error]",MA="[object Function]",LA="[object Map]",RA="[object Number]",DA="[object Object]",$A="[object RegExp]",BA="[object Set]",FA="[object String]",zA="[object WeakMap]",NA="[object ArrayBuffer]",jA="[object DataView]",VA="[object Float32Array]",HA="[object Float64Array]",UA="[object Int8Array]",WA="[object Int16Array]",YA="[object Int32Array]",XA="[object Uint8Array]",KA="[object Uint8ClampedArray]",GA="[object Uint16Array]",qA="[object Uint32Array]",Ot={};Ot[VA]=Ot[HA]=Ot[UA]=Ot[WA]=Ot[YA]=Ot[XA]=Ot[KA]=Ot[GA]=Ot[qA]=!0;Ot[EA]=Ot[OA]=Ot[NA]=Ot[AA]=Ot[jA]=Ot[PA]=Ot[IA]=Ot[MA]=Ot[LA]=Ot[RA]=Ot[DA]=Ot[$A]=Ot[BA]=Ot[FA]=Ot[zA]=!1;function ZA(e){return Ei(e)&&o_(e.length)&&!!Ot[_a(e)]}function Zh(e){return function(t){return e(t)}}var u_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,rs=u_&&typeof module=="object"&&module&&!module.nodeType&&module,JA=rs&&rs.exports===u_,Gc=JA&&Qb.process,QA=function(){try{var e=rs&&rs.require&&rs.require("util").types;return e||Gc&&Gc.binding&&Gc.binding("util")}catch{}}();const oa=QA;var Sv=oa&&oa.isTypedArray,eP=Sv?Zh(Sv):ZA;const c_=eP;var tP=Object.prototype,nP=tP.hasOwnProperty;function f_(e,t){var n=Ur(e),r=!n&&CA(e),i=!n&&!r&&$u(e),l=!n&&!r&&!i&&c_(e),m=n||r||i||l,a=m?mA(e.length,String):[],o=a.length;for(var u in e)(t||nP.call(e,u))&&!(m&&(u=="length"||i&&(u=="offset"||u=="parent")||l&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||r_(u,o)))&&a.push(u);return a}function d_(e,t){return function(n){return e(t(n))}}var rP=d_(Object.keys,Object);const iP=rP;var oP=Object.prototype,aP=oP.hasOwnProperty;function sP(e){if(!qh(e))return iP(e);var t=[];for(var n in Object(e))aP.call(e,n)&&n!="constructor"&&t.push(n);return t}function Jh(e){return a_(e)?f_(e):sP(e)}function lP(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var uP=Object.prototype,cP=uP.hasOwnProperty;function fP(e){if(!tr(e))return lP(e);var t=qh(e),n=[];for(var r in e)r=="constructor"&&(t||!cP.call(e,r))||n.push(r);return n}function Qh(e){return a_(e)?f_(e,!0):fP(e)}var dP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hP=/^\w*$/;function pP(e,t){if(Ur(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||wc(e)?!0:hP.test(e)||!dP.test(e)||t!=null&&e in Object(t)}var gP=Eo(Object,"create");const As=gP;function vP(){this.__data__=As?As(null):{},this.size=0}function mP(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var yP="__lodash_hash_undefined__",bP=Object.prototype,_P=bP.hasOwnProperty;function wP(e){var t=this.__data__;if(As){var n=t[e];return n===yP?void 0:n}return _P.call(t,e)?t[e]:void 0}var CP=Object.prototype,SP=CP.hasOwnProperty;function xP(e){var t=this.__data__;return As?t[e]!==void 0:SP.call(t,e)}var TP="__lodash_hash_undefined__";function kP(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=As&&t===void 0?TP:t,this}function co(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])}}co.prototype.clear=vP;co.prototype.delete=mP;co.prototype.get=wP;co.prototype.has=xP;co.prototype.set=kP;function EP(){this.__data__=[],this.size=0}function Sc(e,t){for(var n=e.length;n--;)if(Kh(e[n][0],t))return n;return-1}var OP=Array.prototype,AP=OP.splice;function PP(e){var t=this.__data__,n=Sc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():AP.call(t,n,1),--this.size,!0}function IP(e){var t=this.__data__,n=Sc(t,e);return n<0?void 0:t[n][1]}function MP(e){return Sc(this.__data__,e)>-1}function LP(e,t){var n=this.__data__,r=Sc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Jr(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])}}Jr.prototype.clear=EP;Jr.prototype.delete=PP;Jr.prototype.get=IP;Jr.prototype.has=MP;Jr.prototype.set=LP;var RP=Eo(rr,"Map");const Ps=RP;function DP(){this.size=0,this.__data__={hash:new co,map:new(Ps||Jr),string:new co}}function $P(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function xc(e,t){var n=e.__data__;return $P(t)?n[typeof t=="string"?"string":"hash"]:n.map}function BP(e){var t=xc(this,e).delete(e);return this.size-=t?1:0,t}function FP(e){return xc(this,e).get(e)}function zP(e){return xc(this,e).has(e)}function NP(e,t){var n=xc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Qr(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])}}Qr.prototype.clear=DP;Qr.prototype.delete=BP;Qr.prototype.get=FP;Qr.prototype.has=zP;Qr.prototype.set=NP;var jP="Expected a function";function ep(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(jP);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 m=e.apply(this,r);return n.cache=l.set(i,m)||l,m};return n.cache=new(ep.Cache||Qr),n}ep.Cache=Qr;var VP=500;function HP(e){var t=ep(e,function(r){return n.size===VP&&n.clear(),r}),n=t.cache;return t}var UP=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WP=/\\(\\)?/g,YP=HP(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(UP,function(n,r,i,l){t.push(i?l.replace(WP,"$1"):r||n)}),t});const XP=YP;function KP(e){return e==null?"":t_(e)}function h_(e,t){return Ur(e)?e:pP(e,t)?[e]:XP(KP(e))}var GP=1/0;function p_(e){if(typeof e=="string"||wc(e))return e;var t=e+"";return t=="0"&&1/e==-GP?"-0":t}function qP(e,t){t=h_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[p_(t[n++])];return n&&n==r?e:void 0}function Tn(e,t,n){var r=e==null?void 0:qP(e,t);return r===void 0?n:r}function g_(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var ZP=d_(Object.getPrototypeOf,Object);const v_=ZP;function Is(){if(!arguments.length)return[];var e=arguments[0];return Ur(e)?e:[e]}function JP(){this.__data__=new Jr,this.size=0}function QP(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function e5(e){return this.__data__.get(e)}function t5(e){return this.__data__.has(e)}var n5=200;function r5(e,t){var n=this.__data__;if(n instanceof Jr){var r=n.__data__;if(!Ps||r.length<n5-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qr(r)}return n.set(e,t),this.size=n.size,this}function zr(e){var t=this.__data__=new Jr(e);this.size=t.size}zr.prototype.clear=JP;zr.prototype.delete=QP;zr.prototype.get=e5;zr.prototype.has=t5;zr.prototype.set=r5;function i5(e,t){return e&&Cc(t,Jh(t),e)}function o5(e,t){return e&&Cc(t,Qh(t),e)}var m_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,xv=m_&&typeof module=="object"&&module&&!module.nodeType&&module,a5=xv&&xv.exports===m_,Tv=a5?rr.Buffer:void 0,kv=Tv?Tv.allocUnsafe:void 0;function s5(e,t){if(t)return e.slice();var n=e.length,r=kv?kv(n):new e.constructor(n);return e.copy(r),r}function l5(e,t){for(var n=-1,r=e==null?0:e.length,i=0,l=[];++n<r;){var m=e[n];t(m,n,e)&&(l[i++]=m)}return l}function y_(){return[]}var u5=Object.prototype,c5=u5.propertyIsEnumerable,Ev=Object.getOwnPropertySymbols,f5=Ev?function(e){return e==null?[]:(e=Object(e),l5(Ev(e),function(t){return c5.call(e,t)}))}:y_;const tp=f5;function d5(e,t){return Cc(e,tp(e),t)}var h5=Object.getOwnPropertySymbols,p5=h5?function(e){for(var t=[];e;)g_(t,tp(e)),e=v_(e);return t}:y_;const b_=p5;function g5(e,t){return Cc(e,b_(e),t)}function __(e,t,n){var r=t(e);return Ur(e)?r:g_(r,n(e))}function fd(e){return __(e,Jh,tp)}function v5(e){return __(e,Qh,b_)}var m5=Eo(rr,"DataView");const dd=m5;var y5=Eo(rr,"Promise");const hd=y5;var b5=Eo(rr,"Set");const pd=b5;var Ov="[object Map]",_5="[object Object]",Av="[object Promise]",Pv="[object Set]",Iv="[object WeakMap]",Mv="[object DataView]",w5=ko(dd),C5=ko(Ps),S5=ko(hd),x5=ko(pd),T5=ko(cd),Vi=_a;(dd&&Vi(new dd(new ArrayBuffer(1)))!=Mv||Ps&&Vi(new Ps)!=Ov||hd&&Vi(hd.resolve())!=Av||pd&&Vi(new pd)!=Pv||cd&&Vi(new cd)!=Iv)&&(Vi=function(e){var t=_a(e),n=t==_5?e.constructor:void 0,r=n?ko(n):"";if(r)switch(r){case w5:return Mv;case C5:return Ov;case S5:return Av;case x5:return Pv;case T5:return Iv}return t});const Ms=Vi;var k5=Object.prototype,E5=k5.hasOwnProperty;function O5(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&E5.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var A5=rr.Uint8Array;const Bu=A5;function np(e){var t=new e.constructor(e.byteLength);return new Bu(t).set(new Bu(e)),t}function P5(e,t){var n=t?np(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var I5=/\w*$/;function M5(e){var t=new e.constructor(e.source,I5.exec(e));return t.lastIndex=e.lastIndex,t}var Lv=br?br.prototype:void 0,Rv=Lv?Lv.valueOf:void 0;function L5(e){return Rv?Object(Rv.call(e)):{}}function R5(e,t){var n=t?np(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var D5="[object Boolean]",$5="[object Date]",B5="[object Map]",F5="[object Number]",z5="[object RegExp]",N5="[object Set]",j5="[object String]",V5="[object Symbol]",H5="[object ArrayBuffer]",U5="[object DataView]",W5="[object Float32Array]",Y5="[object Float64Array]",X5="[object Int8Array]",K5="[object Int16Array]",G5="[object Int32Array]",q5="[object Uint8Array]",Z5="[object Uint8ClampedArray]",J5="[object Uint16Array]",Q5="[object Uint32Array]";function e6(e,t,n){var r=e.constructor;switch(t){case H5:return np(e);case D5:case $5:return new r(+e);case U5:return P5(e,n);case W5:case Y5:case X5:case K5:case G5:case q5:case Z5:case J5:case Q5:return R5(e,n);case B5:return new r;case F5:case j5:return new r(e);case z5:return M5(e);case N5:return new r;case V5:return L5(e)}}function t6(e){return typeof e.constructor=="function"&&!qh(e)?sA(v_(e)):{}}var n6="[object Map]";function r6(e){return Ei(e)&&Ms(e)==n6}var Dv=oa&&oa.isMap,i6=Dv?Zh(Dv):r6;const o6=i6;var a6="[object Set]";function s6(e){return Ei(e)&&Ms(e)==a6}var $v=oa&&oa.isSet,l6=$v?Zh($v):s6;const u6=l6;var c6=1,f6=2,d6=4,w_="[object Arguments]",h6="[object Array]",p6="[object Boolean]",g6="[object Date]",v6="[object Error]",C_="[object Function]",m6="[object GeneratorFunction]",y6="[object Map]",b6="[object Number]",S_="[object Object]",_6="[object RegExp]",w6="[object Set]",C6="[object String]",S6="[object Symbol]",x6="[object WeakMap]",T6="[object ArrayBuffer]",k6="[object DataView]",E6="[object Float32Array]",O6="[object Float64Array]",A6="[object Int8Array]",P6="[object Int16Array]",I6="[object Int32Array]",M6="[object Uint8Array]",L6="[object Uint8ClampedArray]",R6="[object Uint16Array]",D6="[object Uint32Array]",kt={};kt[w_]=kt[h6]=kt[T6]=kt[k6]=kt[p6]=kt[g6]=kt[E6]=kt[O6]=kt[A6]=kt[P6]=kt[I6]=kt[y6]=kt[b6]=kt[S_]=kt[_6]=kt[w6]=kt[C6]=kt[S6]=kt[M6]=kt[L6]=kt[R6]=kt[D6]=!0;kt[v6]=kt[C_]=kt[x6]=!1;function su(e,t,n,r,i,l){var m,a=t&c6,o=t&f6,u=t&d6;if(n&&(m=i?n(e,r,i,l):n(e)),m!==void 0)return m;if(!tr(e))return e;var h=Ur(e);if(h){if(m=O5(e),!a)return lA(e,m)}else{var c=Ms(e),f=c==C_||c==m6;if($u(e))return s5(e,a);if(c==S_||c==w_||f&&!i){if(m=o||f?{}:t6(e),!a)return o?g5(e,o5(m,e)):d5(e,i5(m,e))}else{if(!kt[c])return i?e:{};m=e6(e,c,a)}}l||(l=new zr);var s=l.get(e);if(s)return s;l.set(e,m),u6(e)?e.forEach(function(g){m.add(su(g,t,n,g,e,l))}):o6(e)&&e.forEach(function(g,y){m.set(y,su(g,t,n,y,e,l))});var d=u?o?v5:fd:o?Qh:Jh,v=h?void 0:d(e);return cA(v||e,function(g,y){v&&(y=g,g=e[y]),Gh(m,y,su(g,t,n,y,e,l))}),m}var $6=4;function Bv(e){return su(e,$6)}var B6="__lodash_hash_undefined__";function F6(e){return this.__data__.set(e,B6),this}function z6(e){return this.__data__.has(e)}function Fu(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Qr;++t<n;)this.add(e[t])}Fu.prototype.add=Fu.prototype.push=F6;Fu.prototype.has=z6;function N6(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 j6(e,t){return e.has(t)}var V6=1,H6=2;function x_(e,t,n,r,i,l){var m=n&V6,a=e.length,o=t.length;if(a!=o&&!(m&&o>a))return!1;var u=l.get(e),h=l.get(t);if(u&&h)return u==t&&h==e;var c=-1,f=!0,s=n&H6?new Fu:void 0;for(l.set(e,t),l.set(t,e);++c<a;){var d=e[c],v=t[c];if(r)var g=m?r(v,d,c,t,e,l):r(d,v,c,e,t,l);if(g!==void 0){if(g)continue;f=!1;break}if(s){if(!N6(t,function(y,b){if(!j6(s,b)&&(d===y||i(d,y,n,r,l)))return s.push(b)})){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 U6(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function W6(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Y6=1,X6=2,K6="[object Boolean]",G6="[object Date]",q6="[object Error]",Z6="[object Map]",J6="[object Number]",Q6="[object RegExp]",e8="[object Set]",t8="[object String]",n8="[object Symbol]",r8="[object ArrayBuffer]",i8="[object DataView]",Fv=br?br.prototype:void 0,qc=Fv?Fv.valueOf:void 0;function o8(e,t,n,r,i,l,m){switch(n){case i8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case r8:return!(e.byteLength!=t.byteLength||!l(new Bu(e),new Bu(t)));case K6:case G6:case J6:return Kh(+e,+t);case q6:return e.name==t.name&&e.message==t.message;case Q6:case t8:return e==t+"";case Z6:var a=U6;case e8:var o=r&Y6;if(a||(a=W6),e.size!=t.size&&!o)return!1;var u=m.get(e);if(u)return u==t;r|=X6,m.set(e,t);var h=x_(a(e),a(t),r,i,l,m);return m.delete(e),h;case n8:if(qc)return qc.call(e)==qc.call(t)}return!1}var a8=1,s8=Object.prototype,l8=s8.hasOwnProperty;function u8(e,t,n,r,i,l){var m=n&a8,a=fd(e),o=a.length,u=fd(t),h=u.length;if(o!=h&&!m)return!1;for(var c=o;c--;){var f=a[c];if(!(m?f in t:l8.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 g=m;++c<o;){f=a[c];var y=e[f],b=t[f];if(r)var _=m?r(b,y,f,t,e,l):r(y,b,f,e,t,l);if(!(_===void 0?y===b||i(y,b,n,r,l):_)){v=!1;break}g||(g=f=="constructor")}if(v&&!g){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(v=!1)}return l.delete(e),l.delete(t),v}var c8=1,zv="[object Arguments]",Nv="[object Array]",Ml="[object Object]",f8=Object.prototype,jv=f8.hasOwnProperty;function d8(e,t,n,r,i,l){var m=Ur(e),a=Ur(t),o=m?Nv:Ms(e),u=a?Nv:Ms(t);o=o==zv?Ml:o,u=u==zv?Ml:u;var h=o==Ml,c=u==Ml,f=o==u;if(f&&$u(e)){if(!$u(t))return!1;m=!0,h=!1}if(f&&!h)return l||(l=new zr),m||c_(e)?x_(e,t,n,r,i,l):o8(e,t,o,n,r,i,l);if(!(n&c8)){var s=h&&jv.call(e,"__wrapped__"),d=c&&jv.call(t,"__wrapped__");if(s||d){var v=s?e.value():e,g=d?t.value():t;return l||(l=new zr),i(v,g,n,r,l)}}return f?(l||(l=new zr),u8(e,t,n,r,i,l)):!1}function T_(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ei(e)&&!Ei(t)?e!==e&&t!==t:d8(e,t,n,r,T_,i)}var h8=function(){return rr.Date.now()};const Zc=h8;var p8="Expected a function",g8=Math.max,v8=Math.min;function aa(e,t,n){var r,i,l,m,a,o,u=0,h=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError(p8);t=vv(t)||0,tr(n)&&(h=!!n.leading,c="maxWait"in n,l=c?g8(vv(n.maxWait)||0,t):l,f="trailing"in n?!!n.trailing:f);function s(x){var T=r,O=i;return r=i=void 0,u=x,m=e.apply(O,T),m}function d(x){return u=x,a=setTimeout(y,t),h?s(x):m}function v(x){var T=x-o,O=x-u,A=t-T;return c?v8(A,l-O):A}function g(x){var T=x-o,O=x-u;return o===void 0||T>=t||T<0||c&&O>=l}function y(){var x=Zc();if(g(x))return b(x);a=setTimeout(y,v(x))}function b(x){return a=void 0,f&&r?s(x):(r=i=void 0,m)}function _(){a!==void 0&&clearTimeout(a),u=0,r=o=i=a=void 0}function w(){return a===void 0?m:b(Zc())}function S(){var x=Zc(),T=g(x);if(r=arguments,i=this,o=x,T){if(a===void 0)return d(o);if(c)return clearTimeout(a),a=setTimeout(y,t),s(o)}return a===void 0&&(a=setTimeout(y,t)),m}return S.cancel=_,S.flush=w,S}function k_(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 gd(e,t){return T_(e,t)}function pr(e){return e==null}function m8(e,t,n,r){if(!tr(e))return e;t=h_(t,e);for(var i=-1,l=t.length,m=l-1,a=e;a!=null&&++i<l;){var o=p_(t[i]),u=n;if(o==="__proto__"||o==="constructor"||o==="prototype")return e;if(i!=m){var h=a[o];u=r?r(h,o,a):void 0,u===void 0&&(u=tr(h)?h:r_(t[i+1])?[]:{})}Gh(a,o,u),a=a[o]}return e}function y8(e,t,n){return e==null?e:m8(e,t,n)}var b8="Expected a function";function is(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(b8);return tr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),aa(e,t,{leading:r,maxWait:t,trailing:i})}const _8='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',w8=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,Vv=e=>Array.from(e.querySelectorAll(_8)).filter(t=>C8(t)&&w8(t)),C8=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.disabled)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}},lu=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},Mr=(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)};var S8=Object.defineProperty,x8=Object.defineProperties,T8=Object.getOwnPropertyDescriptors,Hv=Object.getOwnPropertySymbols,k8=Object.prototype.hasOwnProperty,E8=Object.prototype.propertyIsEnumerable,Uv=(e,t,n)=>t in e?S8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,O8=(e,t)=>{for(var n in t||(t={}))k8.call(t,n)&&Uv(e,n,t[n]);if(Hv)for(var n of Hv(t))E8.call(t,n)&&Uv(e,n,t[n]);return e},A8=(e,t)=>x8(e,T8(t));function Wv(e,t){var n;const r=en();return xo(()=>{r.value=e()},A8(O8({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),ac(r)}var Yv;const ot=typeof window<"u",P8=e=>typeof e<"u",Pn=e=>typeof e=="boolean",E_=e=>typeof e=="function",et=e=>typeof e=="number",I8=e=>typeof e=="string",Nr=()=>{};ot&&((Yv=window==null?void 0:window.navigator)==null?void 0:Yv.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function sa(e){return typeof e=="function"?e():C(e)}function rp(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}const O_=e=>e();function M8(e,t={}){let n,r;return l=>{const m=sa(e),a=sa(t.maxWait);if(n&&clearTimeout(n),m<=0||a!==void 0&&a<=0)return r&&(clearTimeout(r),r=null),l();a&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,l()},a)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,l()},m)}}function L8(e,t=!0,n=!0){let r=0,i,l=!0;const m=()=>{i&&(clearTimeout(i),i=void 0)};return o=>{const u=sa(e),h=Date.now()-r;if(m(),u<=0)return r=Date.now(),o();h>u&&(n||!l)?(r=Date.now(),o()):t&&(i=setTimeout(()=>{r=Date.now(),l=!0,m(),o()},u)),!n&&!i&&(i=setTimeout(()=>l=!0,u)),l=!1}}function R8(e=O_){const t=se(!0);function n(){t.value=!1}function r(){t.value=!0}return{isActive:t,pause:n,resume:r,eventFilter:(...l)=>{t.value&&e(...l)}}}function D8(e){return e}function $8(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 wa(e){return wy()?(wh(e),!0):!1}function B8(e,t=200,n={}){return rp(M8(t,n),e)}function F8(e,t=200,n={}){if(t<=0)return e;const r=se(e.value),i=B8(()=>{r.value=e.value},t,n);return xe(e,()=>i()),r}function z8(e,t=200,n=!1,r=!0){return rp(L8(t,n,r),e)}function N8(e){return typeof e=="function"?ee(e):se(e)}function ip(e,t=!0){gt()?qe(e):t?e():He(e)}function Ls(e,t,n={}){const{immediate:r=!0}=n,i=se(!1);let l=null;function m(){l&&(clearTimeout(l),l=null)}function a(){i.value=!1,m()}function o(...u){m(),i.value=!0,l=setTimeout(()=>{i.value=!1,l=null,e(...u)},sa(t))}return r&&(i.value=!0,ot&&o()),wa(a),{isPending:i,start:o,stop:a}}var Xv=Object.getOwnPropertySymbols,j8=Object.prototype.hasOwnProperty,V8=Object.prototype.propertyIsEnumerable,H8=(e,t)=>{var n={};for(var r in e)j8.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Xv)for(var r of Xv(e))t.indexOf(r)<0&&V8.call(e,r)&&(n[r]=e[r]);return n};function U8(e,t,n={}){const r=n,{eventFilter:i=O_}=r,l=H8(r,["eventFilter"]);return xe(e,rp(i,t),l)}var W8=Object.defineProperty,Y8=Object.defineProperties,X8=Object.getOwnPropertyDescriptors,zu=Object.getOwnPropertySymbols,A_=Object.prototype.hasOwnProperty,P_=Object.prototype.propertyIsEnumerable,Kv=(e,t,n)=>t in e?W8(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,K8=(e,t)=>{for(var n in t||(t={}))A_.call(t,n)&&Kv(e,n,t[n]);if(zu)for(var n of zu(t))P_.call(t,n)&&Kv(e,n,t[n]);return e},G8=(e,t)=>Y8(e,X8(t)),q8=(e,t)=>{var n={};for(var r in e)A_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&zu)for(var r of zu(e))t.indexOf(r)<0&&P_.call(e,r)&&(n[r]=e[r]);return n};function Z8(e,t,n={}){const r=n,{eventFilter:i}=r,l=q8(r,["eventFilter"]),{eventFilter:m,pause:a,resume:o,isActive:u}=R8(i);return{stop:U8(e,t,G8(K8({},l),{eventFilter:m})),pause:a,resume:o,isActive:u}}function J8(e,t,n){let r;St(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:l=void 0,onError:m=Nr}=r,a=se(!i),o=se(t);let u=0;return xo(async h=>{if(!a.value)return;u++;const c=u;let f=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const s=await e(d=>{h(()=>{l&&(l.value=!1),f||d()})});c===u&&(o.value=s)}catch(s){m(s)}finally{l&&c===u&&(l.value=!1),f=!0}}),i?ee(()=>(a.value=!0,o.value)):o}function qn(e){var t;const n=sa(e);return(t=n==null?void 0:n.$el)!=null?t:n}const bn=ot?window:void 0,Q8=ot?window.document:void 0;ot&&window.navigator;ot&&window.location;function bt(...e){let t,n,r,i;if(I8(e[0])?([n,r,i]=e,t=bn):[t,n,r,i]=e,!t)return Nr;let l=Nr;const m=xe(()=>qn(t),o=>{l(),o&&(o.addEventListener(n,r,i),l=()=>{o.removeEventListener(n,r,i),l=Nr})},{immediate:!0,flush:"post"}),a=()=>{m(),l()};return wa(a),a}function eI(e,t,n={}){const{window:r=bn,ignore:i,capture:l=!0,detectIframe:m=!1}=n;if(!r)return;const a=se(!0);let o;const u=s=>{r.clearTimeout(o);const d=qn(e);!d||d===s.target||s.composedPath().includes(d)||!a.value||t(s)},h=s=>i&&i.some(d=>{const v=qn(d);return v&&(s.target===v||s.composedPath().includes(v))}),c=[bt(r,"click",u,{passive:!0,capture:l}),bt(r,"pointerdown",s=>{const d=qn(e);a.value=!!d&&!s.composedPath().includes(d)&&!h(s)},{passive:!0}),bt(r,"pointerup",s=>{if(s.button===0){const d=s.composedPath();s.composedPath=()=>d,o=r.setTimeout(()=>u(s),50)}},{passive:!0}),m&&bt(r,"blur",s=>{var d;const v=qn(e);((d=document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!(v!=null&&v.contains(document.activeElement))&&t(s)})].filter(Boolean);return()=>c.forEach(s=>s())}const tI=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function Gv(...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=bn,eventName:l="keydown",passive:m=!1}=r,a=tI(t);return bt(i,l,u=>{a(u)&&n(u)},m)}const nI=500;function rI(e,t,n){var r,i;const l=ee(()=>qn(e));let m;function a(){m&&(clearTimeout(m),m=void 0)}function o(h){var c,f,s,d;((c=n==null?void 0:n.modifiers)==null?void 0:c.self)&&h.target!==l.value||(a(),(f=n==null?void 0:n.modifiers)!=null&&f.prevent&&h.preventDefault(),(s=n==null?void 0:n.modifiers)!=null&&s.stop&&h.stopPropagation(),m=setTimeout(()=>t(h),(d=n==null?void 0:n.delay)!=null?d:nI))}const u={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};bt(l,"pointerdown",o,u),bt(l,"pointerup",a,u),bt(l,"pointerleave",a,u)}function op(e,t=!1){const n=se(),r=()=>n.value=Boolean(e());return r(),ip(r,t),n}function Ho(e,t={}){const{window:n=bn}=t,r=op(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const l=se(!1),m=()=>{!i||("removeEventListener"in i?i.removeEventListener("change",a):i.removeListener(a))},a=()=>{!r.value||(m(),i=n.matchMedia(N8(e).value),l.value=i.matches,"addEventListener"in i?i.addEventListener("change",a):i.addListener(a))};return xo(a),wa(()=>m()),l}const ap={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var iI=Object.defineProperty,qv=Object.getOwnPropertySymbols,oI=Object.prototype.hasOwnProperty,aI=Object.prototype.propertyIsEnumerable,Zv=(e,t,n)=>t in e?iI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sI=(e,t)=>{for(var n in t||(t={}))oI.call(t,n)&&Zv(e,n,t[n]);if(qv)for(var n of qv(t))aI.call(t,n)&&Zv(e,n,t[n]);return e};function sp(e,t={}){function n(a,o){let u=e[a];return o!=null&&(u=$8(u,o)),typeof u=="number"&&(u=`${u}px`),u}const{window:r=bn}=t;function i(a){return r?r.matchMedia(a).matches:!1}const l=a=>Ho(`(min-width: ${n(a)})`,t),m=Object.keys(e).reduce((a,o)=>(Object.defineProperty(a,o,{get:()=>l(o),enumerable:!0,configurable:!0}),a),{});return sI({greater(a){return Ho(`(min-width: ${n(a,.1)})`,t)},greaterOrEqual:l,smaller(a){return Ho(`(max-width: ${n(a,-.1)})`,t)},smallerOrEqual(a){return Ho(`(max-width: ${n(a)})`,t)},between(a,o){return Ho(`(min-width: ${n(a)}) and (max-width: ${n(o,-.1)})`,t)},isGreater(a){return i(`(min-width: ${n(a,.1)})`)},isGreaterOrEqual(a){return i(`(min-width: ${n(a)})`)},isSmaller(a){return i(`(max-width: ${n(a,-.1)})`)},isSmallerOrEqual(a){return i(`(max-width: ${n(a)})`)},isInBetween(a,o){return i(`(min-width: ${n(a)}) and (max-width: ${n(o,-.1)})`)}},m)}function lI(e){return JSON.parse(JSON.stringify(e))}const vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},md="__vueuse_ssr_handlers__";vd[md]=vd[md]||{};const uI=vd[md];function I_(e,t){return uI[e]||t}function cI(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"||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}var fI=Object.defineProperty,Jv=Object.getOwnPropertySymbols,dI=Object.prototype.hasOwnProperty,hI=Object.prototype.propertyIsEnumerable,Qv=(e,t,n)=>t in e?fI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,em=(e,t)=>{for(var n in t||(t={}))dI.call(t,n)&&Qv(e,n,t[n]);if(Jv)for(var n of Jv(t))hI.call(t,n)&&Qv(e,n,t[n]);return e};const pI={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()}};function M_(e,t,n,r={}){var i;const{flush:l="pre",deep:m=!0,listenToStorageChanges:a=!0,writeDefaults:o=!0,mergeDefaults:u=!1,shallow:h,window:c=bn,eventFilter:f,onError:s=T=>{console.error(T)}}=r,d=(h?en:se)(t);if(!n)try{n=I_("getDefaultStorage",()=>{var T;return(T=bn)==null?void 0:T.localStorage})()}catch(T){s(T)}if(!n)return d;const v=sa(t),g=cI(v),y=(i=r.serializer)!=null?i:pI[g],{pause:b,resume:_}=Z8(d,()=>w(d.value),{flush:l,deep:m,eventFilter:f});return c&&a&&bt(c,"storage",x),x(),d;function w(T){try{T==null?n.removeItem(e):n.setItem(e,y.write(T))}catch(O){s(O)}}function S(T){if(!(T&&T.key!==e)){b();try{const O=T?T.newValue:n.getItem(e);if(O==null)return o&&v!==null&&n.setItem(e,y.write(v)),v;if(!T&&u){const A=y.read(O);return E_(u)?u(A,v):g==="object"&&!Array.isArray(A)?em(em({},v),A):A}else return typeof O!="string"?O:y.read(O)}catch(O){s(O)}finally{_()}}}function x(T){T&&T.key!==e||(d.value=S(T))}}function gI(e){return Ho("(prefers-color-scheme: dark)",e)}var vI=Object.defineProperty,tm=Object.getOwnPropertySymbols,mI=Object.prototype.hasOwnProperty,yI=Object.prototype.propertyIsEnumerable,nm=(e,t,n)=>t in e?vI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bI=(e,t)=>{for(var n in t||(t={}))mI.call(t,n)&&nm(e,n,t[n]);if(tm)for(var n of tm(t))yI.call(t,n)&&nm(e,n,t[n]);return e};function rm(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=bn,storage:l,storageKey:m="vueuse-color-scheme",listenToStorageChanges:a=!0,storageRef:o,emitAuto:u}=e,h=bI({auto:"",light:"light",dark:"dark"},e.modes||{}),c=gI({window:i}),f=ee(()=>c.value?"dark":"light"),s=o||(m==null?se(r):M_(m,r,l,{window:i,listenToStorageChanges:a})),d=ee({get(){return s.value==="auto"&&!u?f.value:s.value},set(b){s.value=b}}),v=I_("updateHTMLAttrs",(b,_,w)=>{const S=i==null?void 0:i.document.querySelector(b);if(!!S)if(_==="class"){const x=w.split(/\s/g);Object.values(h).flatMap(T=>(T||"").split(/\s/g)).filter(Boolean).forEach(T=>{x.includes(T)?S.classList.add(T):S.classList.remove(T)})}else S.setAttribute(_,w)});function g(b){var _;const w=b==="auto"?f.value:b;v(t,n,(_=h[w])!=null?_:w)}function y(b){e.onChanged?e.onChanged(b,g):g(b)}return xe(d,y,{flush:"post",immediate:!0}),u&&xe(f,()=>y(d.value),{flush:"post"}),ip(()=>y(d.value)),d}function _I({document:e=Q8}={}){if(!e)return se("visible");const t=se(e.visibilityState);return bt(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var im=Object.getOwnPropertySymbols,wI=Object.prototype.hasOwnProperty,CI=Object.prototype.propertyIsEnumerable,SI=(e,t)=>{var n={};for(var r in e)wI.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&im)for(var r of im(e))t.indexOf(r)<0&&CI.call(e,r)&&(n[r]=e[r]);return n};function Cr(e,t,n={}){const r=n,{window:i=bn}=r,l=SI(r,["window"]);let m;const a=op(()=>i&&"ResizeObserver"in i),o=()=>{m&&(m.disconnect(),m=void 0)},u=xe(()=>qn(e),c=>{o(),a.value&&i&&c&&(m=new ResizeObserver(t),m.observe(c,l))},{immediate:!0,flush:"post"}),h=()=>{o(),u()};return wa(h),{isSupported:a,stop:h}}function xI(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:l=.1,window:m=bn}=n,a=op(()=>m&&"IntersectionObserver"in m);let o=Nr;const u=a.value?xe(()=>({el:qn(e),root:qn(r)}),({el:c,root:f})=>{if(o(),!c)return;const s=new IntersectionObserver(t,{root:f,rootMargin:i,threshold:l});s.observe(c),o=()=>{s.disconnect(),o=Nr}},{immediate:!0,flush:"post"}):Nr,h=()=>{o(),u()};return wa(h),{isSupported:a,stop:h}}function Rn(e,t,n={}){const{window:r=bn}=n;return M_(e,t,r==null?void 0:r.localStorage,n)}var Xi;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(Xi||(Xi={}));function TI(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:l,passive:m=!0,window:a=bn}=t,o=_t({x:0,y:0}),u=_t({x:0,y:0}),h=ee(()=>o.x-u.x),c=ee(()=>o.y-u.y),{max:f,abs:s}=Math,d=ee(()=>f(s(h.value),s(c.value))>=n),v=se(!1),g=ee(()=>d.value?s(h.value)>s(c.value)?h.value>0?Xi.LEFT:Xi.RIGHT:c.value>0?Xi.UP:Xi.DOWN:Xi.NONE),y=A=>[A.touches[0].clientX,A.touches[0].clientY],b=(A,$)=>{o.x=A,o.y=$},_=(A,$)=>{u.x=A,u.y=$};let w;const S=kI(a==null?void 0:a.document);m?w=S?{passive:!0}:{capture:!1}:w=S?{passive:!1,capture:!0}:{capture:!0};const x=A=>{v.value&&(i==null||i(A,g.value)),v.value=!1},T=[bt(e,"touchstart",A=>{w.capture&&!w.passive&&A.preventDefault();const[$,j]=y(A);b($,j),_($,j),l==null||l(A)},w),bt(e,"touchmove",A=>{const[$,j]=y(A);_($,j),!v.value&&d.value&&(v.value=!0),v.value&&(r==null||r(A))},w),bt(e,"touchend",x,w),bt(e,"touchcancel",x,w)];return{isPassiveEventSupported:S,isSwiping:v,direction:g,coordsStart:o,coordsEnd:u,lengthX:h,lengthY:c,stop:()=>T.forEach(A=>A())}}function kI(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",Nr,n),e.removeEventListener("x",Nr),t}var EI=Object.defineProperty,om=Object.getOwnPropertySymbols,OI=Object.prototype.hasOwnProperty,AI=Object.prototype.propertyIsEnumerable,am=(e,t,n)=>t in e?EI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,PI=(e,t)=>{for(var n in t||(t={}))OI.call(t,n)&&am(e,n,t[n]);if(om)for(var n of om(t))AI.call(t,n)&&am(e,n,t[n]);return e};const II={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]};PI({linear:D8},II);function MI(e,t,n,r={}){var i,l,m;const{clone:a=!1,passive:o=!1,eventName:u,deep:h=!1,defaultValue:c}=r,f=gt(),s=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((m=(l=f==null?void 0:f.proxy)==null?void 0:l.$emit)==null?void 0:m.bind(f==null?void 0:f.proxy));let d=u;t||(t="modelValue"),d=u||d||`update:${t.toString()}`;const v=y=>a?E_(a)?a(y):lI(y):y,g=()=>P8(e[t])?v(e[t]):c;if(o){const y=g(),b=se(y);return xe(()=>e[t],_=>b.value=v(_)),xe(b,_=>{(_!==e[t]||h)&&s(d,_)},{deep:h}),b}else return ee({get(){return g()},set(y){s(d,y)}})}function LI({window:e=bn}={}){if(!e)return se(!1);const t=se(e.document.hasFocus());return bt(e,"blur",()=>{t.value=!1}),bt(e,"focus",()=>{t.value=!0}),t}function RI(e={}){const{window:t=bn,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:l=!0}=e,m=se(n),a=se(r),o=()=>{t&&(l?(m.value=t.innerWidth,a.value=t.innerHeight):(m.value=t.document.documentElement.clientWidth,a.value=t.document.documentElement.clientHeight))};return o(),ip(o),bt("resize",o,{passive:!0}),i&&bt("orientationchange",o,{passive:!0}),{width:m,height:a}}const DI=(e,t)=>{if(!ot||!e||!t)return!1;const n=e.getBoundingClientRect();let r;return t instanceof Element?r=t.getBoundingClientRect():r={top:0,right:window.innerWidth,bottom:window.innerHeight,left:0},n.top<r.bottom&&n.bottom>r.top&&n.right>r.left&&n.left<r.right},lp=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}},Zn=e=>e===void 0,fo=e=>typeof Element>"u"?!1:e instanceof Element,$I=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Ki=e=>il(e),yd=e=>Object.keys(e),BI=e=>Object.entries(e),Jc=(e,t,n)=>({get value(){return Tn(e,t,n)},set value(r){y8(e,t,r)}});class FI extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function un(e,t){throw new FI(`[${e}] ${t}`)}const L_=(e="")=>e.split(" ").filter(t=>!!t.trim()),bd=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Ua=(e,t)=>{!e||!t.trim()||e.classList.add(...L_(t))},uu=(e,t)=>{!e||!t.trim()||e.classList.remove(...L_(t))},R_=(e,t)=>{var n;if(!ot||!e||!t)return"";let r=Qn(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 _r(e,t="px"){if(!e)return"";if(Ye(e))return e;if(et(e))return`${e}${t}`}const zI=(e,t)=>{if(!ot)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=R_(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},NI=(e,t)=>{if(!ot)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(zI(n,t))return n;n=n.parentNode}return n};let Ll;const jI=e=>{var t;if(!ot)return 0;if(Ll!==void 0)return Ll;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),Ll=r-l,Ll};function VI(e,t){if(!ot)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((o,u)=>o+u.offsetTop,0),l=i+t.offsetHeight,m=e.scrollTop,a=m+e.clientHeight;i<m?e.scrollTop=i:l>a&&(e.scrollTop=l-e.clientHeight)}const D_="__epPropKey",Oe=e=>e,HI=e=>Qe(e)&&!!e[D_],Tc=(e,t)=>{if(!Qe(e)||HI(e))return e;const{values:n,required:r,default:i,type:l,validator:m}=e,o={type:l,required:!!r,validator:n||m?u=>{let h=!1,c=[];if(n&&(c=Array.from(n),Ge(e,"default")&&c.push(i),h||(h=c.includes(u))),m&&(h||(h=m(u))),!h&&c.length>0){const f=[...new Set(c)].map(s=>JSON.stringify(s)).join(", ");IC(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return h}:void 0,[D_]:!0};return Ge(e,"default")&&(o.default=i),o},Be=e=>k_(Object.entries(e).map(([t,n])=>[t,Tc(n,t)])),Bt=Oe([String,Object,Function]),UI={Close:yr},$_={Close:yr,SuccessFilled:Zb,InfoFilled:Hh,WarningFilled:Xh,CircleCloseFilled:Wb},Nu={success:Zb,warning:Xh,error:Wb,info:Hh},WI={validating:Uh,success:al,error:bc},vt=(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 e},YI=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),XI=(e,t)=>(e.install=n=>{n.directive(t,e)},e),Hn=e=>(e.install=it,e),KI=(...e)=>t=>{e.forEach(n=>{Ve(n)?n(t):n.value=t})},Ct={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"},at="update:modelValue",nr="change",ho="input",sl=["","default","small","large"],GI={large:40,default:32,small:24},qI=e=>GI[e||"default"],kc=e=>["",...sl].includes(e);var cu=(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))(cu||{});const B_=e=>{const t=je(e)?e:[e],n=[];return t.forEach(r=>{je(r.children)?n.push(...B_(r.children)):n.push(r)}),n},ZI=()=>ot&&/firefox/i.test(window.navigator.userAgent),F_=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),up=()=>Math.floor(Math.random()*1e4),Ht=e=>e,JI=["class","style"],QI=/^on[A-Z]/,z_=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=ee(()=>((n==null?void 0:n.value)||[]).concat(JI)),i=gt();return ee(i?()=>{var l;return k_(Object.entries((l=i.proxy)==null?void 0:l.$attrs).filter(([m])=>!r.value.includes(m)&&!(t&&QI.test(m))))}:()=>({}))},N_=Symbol("buttonGroupContextKey"),j_=Symbol("carouselContextKey"),V_=Symbol("collapseContextKey"),H_=Symbol(),U_=Symbol("dialogInjectionKey"),Ca=Symbol("formContextKey"),po=Symbol("formItemContextKey"),W_=Symbol("elPaginationKey"),Y_=Symbol("radioGroupKey"),X_=Symbol("rowContextKey"),K_=Symbol("scrollbarContextKey"),G_=Symbol("sliderContextKey"),Ec=Symbol("tabsRootContextKey"),q_=Symbol("uploadContextKey"),cp=Symbol("popper"),Z_=Symbol("popperContent"),J_=e=>{const t=gt();return ee(()=>{var n,r;return(r=((n=t.proxy)==null?void 0:n.$props)[e])!=null?r:void 0})},ju=se();function ei(e,t=void 0){const n=gt()?We(H_,ju):ju;return e?ee(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}const eM=(e,t,n=!1)=>{var r;const i=!!gt(),l=i?ei():void 0,m=(r=t==null?void 0:t.provide)!=null?r:i?st:void 0;if(!m)return;const a=ee(()=>{const o=C(e);return l!=null&&l.value?tM(l.value,o):o});return m(H_,a),(n||!ju.value)&&(ju.value=a.value),a},tM=(e,t)=>{var n;const r=[...new Set([...yd(e),...yd(t)])],i={};for(const l of r)i[l]=(n=t[l])!=null?n:e[l];return i},Oi=Tc({type:String,values:sl,required:!1}),Un=(e,t={})=>{const n=se(void 0),r=t.prop?n:J_("size"),i=t.global?n:ei("size"),l=t.form?{size:void 0}:We(Ca,void 0),m=t.formItem?{size:void 0}:We(po,void 0);return ee(()=>r.value||C(e)||(m==null?void 0:m.size)||(l==null?void 0:l.size)||i.value||"")},Oo=e=>{const t=J_("disabled"),n=We(Ca,void 0);return ee(()=>t.value||C(e)||(n==null?void 0:n.disabled)||!1)},Rs=({from:e,replacement:t,scope:n,version:r,ref:i,type:l="API"},m)=>{xe(()=>C(m),a=>{},{immediate:!0})},Q_=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=a=>{const o=a.clientX,u=a.clientY,{offsetX:h,offsetY:c}=r,f=e.value.getBoundingClientRect(),s=f.left,d=f.top,v=f.width,g=f.height,y=document.documentElement.clientWidth,b=document.documentElement.clientHeight,_=-s+h,w=-d+c,S=y-s-v+h,x=b-d-g+c,T=A=>{const $=Math.min(Math.max(h+A.clientX-o,_),S),j=Math.min(Math.max(c+A.clientY-u,w),x);r={offsetX:$,offsetY:j},e.value.style.transform=`translate(${_r($)}, ${_r(j)})`},O=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",O)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",O)},l=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},m=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};qe(()=>{xo(()=>{n.value?l():m()})}),Nt(()=>{m()})},nM=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}}),Oc="el",rM="is-",zi=(e,t,n,r,i)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),r&&(l+=`__${r}`),i&&(l+=`--${i}`),l},Ie=e=>{const t=ei("namespace",Oc);return{namespace:t,b:(d="")=>zi(t.value,e,d,"",""),e:d=>d?zi(t.value,e,"",d,""):"",m:d=>d?zi(t.value,e,"","",d):"",be:(d,v)=>d&&v?zi(t.value,e,d,v,""):"",em:(d,v)=>d&&v?zi(t.value,e,"",d,v):"",bm:(d,v)=>d&&v?zi(t.value,e,d,"",v):"",bem:(d,v,g)=>d&&v&&g?zi(t.value,e,d,v,g):"",is:(d,...v)=>{const g=v.length>=1?v[0]:!0;return d&&g?`${rM}${d}`:""},cssVar:d=>{const v={};for(const g in d)d[g]&&(v[`--${t.value}-${g}`]=d[g]);return v},cssVarName:d=>`--${t.value}-${d}`,cssVarBlock:d=>{const v={};for(const g in d)d[g]&&(v[`--${t.value}-${e}-${g}`]=d[g]);return v},cssVarBlockName:d=>`--${t.value}-${e}-${d}`}},iM={prefix:Math.floor(Math.random()*1e4),current:0},oM=Symbol("elIdInjection"),Ai=e=>{const t=We(oM,iM),n=ei("namespace",Oc);return ee(()=>C(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Ri=()=>{const e=We(Ca,void 0),t=We(po,void 0);return{form:e,formItem:t}},ll=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=se(!1)),r||(r=se(!1));const i=se();let l;const m=ee(()=>{var a;return!!(!e.label&&t&&t.inputIds&&((a=t.inputIds)==null?void 0:a.length)<=1)});return qe(()=>{l=xe([yn(e,"id"),n],([a,o])=>{const u=a!=null?a:o?void 0:Ai().value;u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!o&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),Zr(()=>{l&&l(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:m,inputId:i}};var aM={name:"en",el:{colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new 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",week:"week",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"},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:"",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"},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"}}};const sM=e=>(t,n)=>lM(t,n,C(e)),lM=(e,t,n)=>Tn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var l;return`${(l=t==null?void 0:t[i])!=null?l:`{${i}}`}`}),uM=e=>{const t=ee(()=>C(e).name),n=St(e)?e:se(e);return{lang:t,locale:n,t:sM(e)}},nn=()=>{const e=ei("locale");return uM(ee(()=>e.value||aM))},e1=e=>{St(e)||un("[useLockscreen]","You need to pass a ref param to this function");const t=Ie("popup"),n=Fy(()=>t.bm("parent","hidden"));if(!ot||bd(document.body,n.value))return;let r=0,i=!1,l="0";const m=()=>{setTimeout(()=>{uu(document.body,n.value),i&&(document.body.style.width=l)},200)};xe(e,a=>{if(!a){m();return}i=!bd(document.body,n.value),i&&(l=document.body.style.width),r=jI(t.namespace.value);const o=document.documentElement.clientHeight<document.body.scrollHeight,u=R_(document.body,"overflowY");r>0&&(o||u==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),Ua(document.body,n.value)}),wh(()=>m())},cM=Tc({type:Oe(Boolean),default:null}),fM=Tc({type:Oe(Function)}),dM=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:cM,[n]:fM};return{useModelToggle:({indicator:m,toggleReason:a,shouldHideWhenRouteChanges:o,shouldProceed:u,onShow:h,onHide:c})=>{const f=gt(),{emit:s}=f,d=f.props,v=ee(()=>Ve(d[n])),g=ee(()=>d[e]===null),y=T=>{m.value!==!0&&(m.value=!0,a&&(a.value=T),Ve(h)&&h(T))},b=T=>{m.value!==!1&&(m.value=!1,a&&(a.value=T),Ve(c)&&c(T))},_=T=>{if(d.disabled===!0||Ve(u)&&!u())return;const O=v.value&&ot;O&&s(t,!0),(g.value||!O)&&y(T)},w=T=>{if(d.disabled===!0||!ot)return;const O=v.value&&ot;O&&s(t,!1),(g.value||!O)&&b(T)},S=T=>{!Pn(T)||(d.disabled&&T?v.value&&s(t,!1):m.value!==T&&(T?y():b()))},x=()=>{m.value?w():_()};return xe(()=>d[e],S),o&&f.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...f.proxy.$route}),()=>{o.value&&m.value&&w()}),qe(()=>{S(d[e])}),{hide:w,show:_,toggle:x,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}},hM=(e,t)=>{let n;xe(()=>e.value,r=>{var i,l;r?(n=document.activeElement,St(t)&&((l=(i=t.value).focus)==null||l.call(i))):n.focus()})},fp=e=>{if(!e)return{onClick:it,onMousedown:it,onMouseup:it};let t=!1,n=!1;return{onClick:m=>{t&&n&&e(m),t=n=!1},onMousedown:m=>{t=m.target===m.currentTarget},onMouseup:m=>{n=m.target===m.currentTarget}}};function pM(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return wa(()=>n()),{registerTimeout:t,cancelTimeout:n}}let Uo=[];const sm=e=>{const t=e;t.key===Ct.esc&&Uo.forEach(n=>n(t))},gM=e=>{qe(()=>{Uo.length===0&&document.addEventListener("keydown",sm),ot&&Uo.push(e)}),Nt(()=>{Uo=Uo.filter(t=>t!==e),Uo.length===0&&ot&&document.removeEventListener("keydown",sm)})};let lm;const vM=ei("namespace",Oc),t1=`${vM.value}-popper-container-${up()}`,n1=`#${t1}`,mM=()=>{const e=document.createElement("div");return e.id=t1,document.body.appendChild(e),e},yM=()=>{Jy(()=>{!ot||(!lm||!document.body.querySelector(n1))&&(lm=mM())})},bM=Be({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),_M=({showAfter:e,hideAfter:t,open:n,close:r})=>{const{registerTimeout:i}=pM();return{onOpen:a=>{i(()=>{n(a)},C(e))},onClose:a=>{i(()=>{r(a)},C(t))}}},r1=Symbol("elForwardRef"),wM=e=>{st(r1,{setForwardRef:n=>{e.value=n}})},CM=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),um=se(0),ul=()=>{const e=ei("zIndex",2e3),t=ee(()=>e.value+um.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(um.value++,t.value)}};function SM(e){const t=se();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:l,value:m}=e.value;if(i==null||l==null)return;const a=m.slice(0,Math.max(0,i)),o=m.slice(Math.max(0,l));t.value={selectionStart:i,selectionEnd:l,value:m,beforeTxt:a,afterTxt:o}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:l,afterTxt:m,selectionStart:a}=t.value;if(l==null||m==null||a==null)return;let o=i.length;if(i.endsWith(m))o=i.length-m.length;else if(i.startsWith(l))o=l.length;else{const u=l[a-1],h=i.indexOf(u,a-1);h!==-1&&(o=h+1)}e.value.setSelectionRange(o,o)}return[n,r]}var Le=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const xM=Be({size:{type:Oe([Number,String])},color:{type:String}}),TM={name:"ElIcon",inheritAttrs:!1},kM=Te({...TM,props:xM,setup(e){const t=e,n=Ie("icon"),r=ee(()=>{const{size:i,color:l}=t;return!i&&!l?{}:{fontSize:Zn(i)?void 0:_r(i),"--color":l}});return(i,l)=>(V(),ce("i",gn({class:C(n).b(),style:C(r)},i.$attrs),[Se(i.$slots,"default")],16))}});var EM=Le(kM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Re=vt(EM);let Wn;const OM=`
|
||
height:0 !important;
|
||
visibility:hidden !important;
|
||
overflow:hidden !important;
|
||
position:absolute !important;
|
||
z-index:-1000 !important;
|
||
top:0 !important;
|
||
right:0 !important;
|
||
`,AM=["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"];function PM(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:AM.map(m=>`${m}:${t.getPropertyValue(m)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function cm(e,t=1,n){var r;Wn||(Wn=document.createElement("textarea"),document.body.appendChild(Wn));const{paddingSize:i,borderSize:l,boxSizing:m,contextStyle:a}=PM(e);Wn.setAttribute("style",`${a};${OM}`),Wn.value=e.value||e.placeholder||"";let o=Wn.scrollHeight;const u={};m==="border-box"?o=o+l:m==="content-box"&&(o=o-i),Wn.value="";const h=Wn.scrollHeight-i;if(et(t)){let c=h*t;m==="border-box"&&(c=c+i+l),o=Math.max(c,o),u.minHeight=`${c}px`}if(et(n)){let c=h*n;m==="border-box"&&(c=c+i+l),o=Math.min(c,o)}return u.height=`${o}px`,(r=Wn.parentNode)==null||r.removeChild(Wn),Wn=void 0,u}const IM=Be({id:{type:String,default:void 0},size:Oi,disabled:Boolean,modelValue:{type:Oe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Oe([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String,default:""},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Bt},prefixIcon:{type:Bt},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Oe([Object,Array,String]),default:()=>Ht({})}}),MM={[at]:e=>Ye(e),input:e=>Ye(e),change:e=>Ye(e),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},LM=["role"],RM=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],DM=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],$M={name:"ElInput",inheritAttrs:!1},BM=Te({...$M,props:IM,emits:MM,setup(e,{expose:t,emit:n}){const r=e,i={suffix:"append",prefix:"prepend"},l=gt(),m=vb(),a=ma(),o=ee(()=>{const ie={};return r.containerRole==="combobox"&&(ie["aria-haspopup"]=m["aria-haspopup"],ie["aria-owns"]=m["aria-owns"],ie["aria-expanded"]=m["aria-expanded"]),ie}),u=z_({excludeKeys:ee(()=>Object.keys(o.value))}),{form:h,formItem:c}=Ri(),{inputId:f}=ll(r,{formItemContext:c}),s=Un(),d=Oo(),v=Ie("input"),g=Ie("textarea"),y=en(),b=en(),_=se(!1),w=se(!1),S=se(!1),x=se(!1),T=se(),O=en(r.inputStyle),A=ee(()=>y.value||b.value),$=ee(()=>{var ie;return(ie=h==null?void 0:h.statusIcon)!=null?ie:!1}),j=ee(()=>(c==null?void 0:c.validateState)||""),R=ee(()=>j.value&&WI[j.value]),F=ee(()=>x.value?t4:BE),E=ee(()=>[m.style,r.inputStyle]),W=ee(()=>[r.inputStyle,O.value,{resize:r.resize}]),te=ee(()=>pr(r.modelValue)?"":String(r.modelValue)),Q=ee(()=>r.clearable&&!d.value&&!r.readonly&&!!te.value&&(_.value||w.value)),le=ee(()=>r.showPassword&&!d.value&&!r.readonly&&!!te.value&&(!!te.value||_.value)),I=ee(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!d.value&&!r.readonly&&!r.showPassword),z=ee(()=>Array.from(te.value).length),M=ee(()=>!!I.value&&z.value>Number(u.value.maxlength)),L=ee(()=>!!a.suffix||!!r.suffixIcon||Q.value||r.showPassword||I.value||!!j.value&&$.value),[J,U]=SM(y);Cr(b,ie=>{if(!I.value||r.resize!=="both")return;const ge=ie[0],{width:we}=ge.contentRect;T.value={right:`calc(100% - ${we+15+6}px)`}});const P=()=>{const{type:ie,autosize:ge}=r;if(!(!ot||ie!=="textarea"))if(ge){const we=Qe(ge)?ge.minRows:void 0,ke=Qe(ge)?ge.maxRows:void 0;O.value={...cm(b.value,we,ke)}}else O.value={minHeight:cm(b.value).minHeight}},q=()=>{const ie=A.value;!ie||ie.value===te.value||(ie.value=te.value)},Z=ie=>{const{el:ge}=l.vnode;if(!ge)return;const ke=Array.from(ge.querySelectorAll(`.${v.e(ie)}`)).find(Pe=>Pe.parentNode===ge);if(!ke)return;const Ee=i[ie];a[Ee]?ke.style.transform=`translateX(${ie==="suffix"?"-":""}${ge.querySelector(`.${v.be("group",Ee)}`).offsetWidth}px)`:ke.removeAttribute("style")},re=()=>{Z("prefix"),Z("suffix")},de=async ie=>{J();let{value:ge}=ie.target;if(r.formatter&&(ge=r.parser?r.parser(ge):ge,ge=r.formatter(ge)),!S.value){if(ge===te.value){q();return}n(at,ge),n("input",ge),await He(),q(),U()}},ve=ie=>{n("change",ie.target.value)},me=ie=>{n("compositionstart",ie),S.value=!0},Y=ie=>{var ge;n("compositionupdate",ie);const we=(ge=ie.target)==null?void 0:ge.value,ke=we[we.length-1]||"";S.value=!F_(ke)},K=ie=>{n("compositionend",ie),S.value&&(S.value=!1,de(ie))},k=()=>{x.value=!x.value,N()},N=async()=>{var ie;await He(),(ie=A.value)==null||ie.focus()},H=()=>{var ie;return(ie=A.value)==null?void 0:ie.blur()},D=ie=>{_.value=!0,n("focus",ie)},B=ie=>{var ge;_.value=!1,n("blur",ie),r.validateEvent&&((ge=c==null?void 0:c.validate)==null||ge.call(c,"blur").catch(we=>void 0))},X=ie=>{w.value=!1,n("mouseleave",ie)},ae=ie=>{w.value=!0,n("mouseenter",ie)},ne=ie=>{n("keydown",ie)},G=()=>{var ie;(ie=A.value)==null||ie.select()},pe=()=>{n(at,""),n("change",""),n("clear"),n("input","")};return xe(()=>r.modelValue,()=>{var ie;He(()=>P()),r.validateEvent&&((ie=c==null?void 0:c.validate)==null||ie.call(c,"change").catch(ge=>void 0))}),xe(te,()=>q()),xe(()=>r.type,async()=>{await He(),q(),P(),re()}),qe(async()=>{!r.formatter&&r.parser,q(),re(),await He(),P()}),To(async()=>{await He(),re()}),t({input:y,textarea:b,ref:A,textareaStyle:W,autosize:yn(r,"autosize"),focus:N,blur:H,select:G,clear:pe,resizeTextarea:P}),(ie,ge)=>pt((V(),ce("div",gn(C(o),{class:[ie.type==="textarea"?C(g).b():C(v).b(),C(v).m(C(s)),C(v).is("disabled",C(d)),C(v).is("exceed",C(M)),{[C(v).b("group")]:ie.$slots.prepend||ie.$slots.append,[C(v).bm("group","append")]:ie.$slots.append,[C(v).bm("group","prepend")]:ie.$slots.prepend,[C(v).m("prefix")]:ie.$slots.prefix||ie.prefixIcon,[C(v).m("suffix")]:ie.$slots.suffix||ie.suffixIcon||ie.clearable||ie.showPassword,[C(v).bm("suffix","password-clear")]:C(Q)&&C(le)},ie.$attrs.class],style:C(E),role:ie.containerRole,onMouseenter:ae,onMouseleave:X}),[be(" input "),ie.type!=="textarea"?(V(),ce(ze,{key:0},[be(" prepend slot "),ie.$slots.prepend?(V(),ce("div",{key:0,class:fe(C(v).be("group","prepend"))},[Se(ie.$slots,"prepend")],2)):be("v-if",!0),oe("div",{class:fe([C(v).e("wrapper"),C(v).is("focus",_.value)])},[be(" prefix slot "),ie.$slots.prefix||ie.prefixIcon?(V(),ce("span",{key:0,class:fe(C(v).e("prefix"))},[oe("span",{class:fe(C(v).e("prefix-inner"))},[Se(ie.$slots,"prefix"),ie.prefixIcon?(V(),_e(C(Re),{key:0,class:fe(C(v).e("icon"))},{default:he(()=>[(V(),_e(yt(ie.prefixIcon)))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0),oe("input",gn({id:C(f),ref_key:"input",ref:y,class:C(v).e("inner")},C(u),{type:ie.showPassword?x.value?"text":"password":ie.type,disabled:C(d),formatter:ie.formatter,parser:ie.parser,readonly:ie.readonly,autocomplete:ie.autocomplete,tabindex:ie.tabindex,"aria-label":ie.label,placeholder:ie.placeholder,style:ie.inputStyle,onCompositionstart:me,onCompositionupdate:Y,onCompositionend:K,onInput:de,onFocus:D,onBlur:B,onChange:ve,onKeydown:ne}),null,16,RM),be(" suffix slot "),C(L)?(V(),ce("span",{key:1,class:fe(C(v).e("suffix"))},[oe("span",{class:fe(C(v).e("suffix-inner"))},[!C(Q)||!C(le)||!C(I)?(V(),ce(ze,{key:0},[Se(ie.$slots,"suffix"),ie.suffixIcon?(V(),_e(C(Re),{key:0,class:fe(C(v).e("icon"))},{default:he(()=>[(V(),_e(yt(ie.suffixIcon)))]),_:1},8,["class"])):be("v-if",!0)],64)):be("v-if",!0),C(Q)?(V(),_e(C(Re),{key:1,class:fe([C(v).e("icon"),C(v).e("clear")]),onMousedown:Je(C(it),["prevent"]),onClick:pe},{default:he(()=>[ue(C(bc))]),_:1},8,["class","onMousedown"])):be("v-if",!0),C(le)?(V(),_e(C(Re),{key:2,class:fe([C(v).e("icon"),C(v).e("password")]),onClick:k},{default:he(()=>[(V(),_e(yt(C(F))))]),_:1},8,["class"])):be("v-if",!0),C(I)?(V(),ce("span",{key:3,class:fe(C(v).e("count"))},[oe("span",{class:fe(C(v).e("count-inner"))},Ae(C(z))+" / "+Ae(C(u).maxlength),3)],2)):be("v-if",!0),C(j)&&C(R)&&C($)?(V(),_e(C(Re),{key:4,class:fe([C(v).e("icon"),C(v).e("validateIcon"),C(v).is("loading",C(j)==="validating")])},{default:he(()=>[(V(),_e(yt(C(R))))]),_:1},8,["class"])):be("v-if",!0)],2)],2)):be("v-if",!0)],2),be(" append slot "),ie.$slots.append?(V(),ce("div",{key:1,class:fe(C(v).be("group","append"))},[Se(ie.$slots,"append")],2)):be("v-if",!0)],64)):(V(),ce(ze,{key:1},[be(" textarea "),oe("textarea",gn({id:C(f),ref_key:"textarea",ref:b,class:C(g).e("inner")},C(u),{tabindex:ie.tabindex,disabled:C(d),readonly:ie.readonly,autocomplete:ie.autocomplete,style:C(W),"aria-label":ie.label,placeholder:ie.placeholder,onCompositionstart:me,onCompositionupdate:Y,onCompositionend:K,onInput:de,onFocus:D,onBlur:B,onChange:ve,onKeydown:ne}),null,16,DM),C(I)?(V(),ce("span",{key:0,style:Fe(T.value),class:fe(C(v).e("count"))},Ae(C(z))+" / "+Ae(C(u).maxlength),7)):be("v-if",!0)],64))],16,LM)),[[Lt,ie.type!=="hidden"]])}});var FM=Le(BM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Ao=vt(FM),Yo=4,zM={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"}},NM=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),jM=Be({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),VM=Te({__name:"thumb",props:jM,setup(e){const t=e,n="Thumb",r=We(K_),i=Ie("scrollbar");r||un(n,"can not inject scrollbar context");const l=se(),m=se(),a=se({}),o=se(!1);let u=!1,h=!1,c=ot?document.onselectstart:null;const f=ee(()=>zM[t.vertical?"vertical":"horizontal"]),s=ee(()=>NM({size:t.size,move:t.move,bar:f.value})),d=ee(()=>l.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/m.value[f.value.offset]),v=T=>{var O;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(O=window.getSelection())==null||O.removeAllRanges(),y(T);const A=T.currentTarget;!A||(a.value[f.value.axis]=A[f.value.offset]-(T[f.value.client]-A.getBoundingClientRect()[f.value.direction]))},g=T=>{if(!m.value||!l.value||!r.wrapElement)return;const O=Math.abs(T.target.getBoundingClientRect()[f.value.direction]-T[f.value.client]),A=m.value[f.value.offset]/2,$=(O-A)*100*d.value/l.value[f.value.offset];r.wrapElement[f.value.scroll]=$*r.wrapElement[f.value.scrollSize]/100},y=T=>{T.stopImmediatePropagation(),u=!0,document.addEventListener("mousemove",b),document.addEventListener("mouseup",_),c=document.onselectstart,document.onselectstart=()=>!1},b=T=>{if(!l.value||!m.value||u===!1)return;const O=a.value[f.value.axis];if(!O)return;const A=(l.value.getBoundingClientRect()[f.value.direction]-T[f.value.client])*-1,$=m.value[f.value.offset]-O,j=(A-$)*100*d.value/l.value[f.value.offset];r.wrapElement[f.value.scroll]=j*r.wrapElement[f.value.scrollSize]/100},_=()=>{u=!1,a.value[f.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),x(),h&&(o.value=!1)},w=()=>{h=!1,o.value=!!t.size},S=()=>{h=!0,o.value=u};Nt(()=>{x(),document.removeEventListener("mouseup",_)});const x=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return bt(yn(r,"scrollbarElement"),"mousemove",w),bt(yn(r,"scrollbarElement"),"mouseleave",S),(T,O)=>(V(),_e(tn,{name:C(i).b("fade"),persisted:""},{default:he(()=>[pt(oe("div",{ref_key:"instance",ref:l,class:fe([C(i).e("bar"),C(i).is(C(f).key)]),onMousedown:g},[oe("div",{ref_key:"thumb",ref:m,class:fe(C(i).e("thumb")),style:Fe(C(s)),onMousedown:v},null,38)],34),[[Lt,T.always||o.value]])]),_:1},8,["name"]))}});var fm=Le(VM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const HM=Be({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),UM=Te({__name:"bar",props:HM,setup(e,{expose:t}){const n=e,r=se(0),i=se(0);return t({handleScroll:m=>{if(m){const a=m.offsetHeight-Yo,o=m.offsetWidth-Yo;i.value=m.scrollTop*100/a*n.ratioY,r.value=m.scrollLeft*100/o*n.ratioX}}}),(m,a)=>(V(),ce(ze,null,[ue(fm,{move:r.value,ratio:m.ratioX,size:m.width,always:m.always},null,8,["move","ratio","size","always"]),ue(fm,{move:i.value,ratio:m.ratioY,size:m.height,vertical:"",always:m.always},null,8,["move","ratio","size","always"])],64))}});var WM=Le(UM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const YM=Be({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Oe([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}}),XM={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(et)},KM={name:"ElScrollbar"},GM=Te({...KM,props:YM,emits:XM,setup(e,{expose:t,emit:n}){const r=e,i=Ie("scrollbar");let l,m;const a=se(),o=se(),u=se(),h=se("0"),c=se("0"),f=se(),s=se(1),d=se(1),v=ee(()=>{const S={};return r.height&&(S.height=_r(r.height)),r.maxHeight&&(S.maxHeight=_r(r.maxHeight)),[r.wrapStyle,S]}),g=()=>{var S;o.value&&((S=f.value)==null||S.handleScroll(o.value),n("scroll",{scrollTop:o.value.scrollTop,scrollLeft:o.value.scrollLeft}))};function y(S,x){Qe(S)?o.value.scrollTo(S):et(S)&&et(x)&&o.value.scrollTo(S,x)}const b=S=>{!et(S)||(o.value.scrollTop=S)},_=S=>{!et(S)||(o.value.scrollLeft=S)},w=()=>{if(!o.value)return;const S=o.value.offsetHeight-Yo,x=o.value.offsetWidth-Yo,T=S**2/o.value.scrollHeight,O=x**2/o.value.scrollWidth,A=Math.max(T,r.minSize),$=Math.max(O,r.minSize);s.value=T/(S-T)/(A/(S-A)),d.value=O/(x-O)/($/(x-$)),c.value=A+Yo<S?`${A}px`:"",h.value=$+Yo<x?`${$}px`:""};return xe(()=>r.noresize,S=>{S?(l==null||l(),m==null||m()):({stop:l}=Cr(u,w),m=bt("resize",w))},{immediate:!0}),xe(()=>[r.maxHeight,r.height],()=>{r.native||He(()=>{var S;w(),o.value&&((S=f.value)==null||S.handleScroll(o.value))})}),st(K_,_t({scrollbarElement:a,wrapElement:o})),qe(()=>{r.native||He(()=>{w()})}),To(()=>w()),t({wrap$:o,update:w,scrollTo:y,setScrollTop:b,setScrollLeft:_,handleScroll:g}),(S,x)=>(V(),ce("div",{ref_key:"scrollbar$",ref:a,class:fe(C(i).b())},[oe("div",{ref_key:"wrap$",ref:o,class:fe([S.wrapClass,C(i).e("wrap"),{[C(i).em("wrap","hidden-default")]:!S.native}]),style:Fe(C(v)),onScroll:g},[(V(),_e(yt(S.tag),{ref_key:"resize$",ref:u,class:fe([C(i).e("view"),S.viewClass]),style:Fe(S.viewStyle)},{default:he(()=>[Se(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?be("v-if",!0):(V(),_e(WM,{key:0,ref_key:"barRef",ref:f,height:c.value,width:h.value,always:S.always,"ratio-x":d.value,"ratio-y":s.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var qM=Le(GM,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const i1=vt(qM),ZM={LIGHT:"light",DARK:"dark"},JM=["dialog","grid","listbox","menu","tooltip","tree"],o1=Be({role:{type:String,values:JM,default:"tooltip"}}),QM={name:"ElPopperRoot",inheritAttrs:!1},eL=Te({...QM,props:o1,setup(e,{expose:t}){const n=e,r=se(),i=se(),l=se(),m=se(),a=ee(()=>n.role),o={triggerRef:r,popperInstanceRef:i,contentRef:l,referenceRef:m,role:a};return t(o),st(cp,o),(u,h)=>Se(u.$slots,"default")}});var tL=Le(eL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const a1=Be({arrowOffset:{type:Number,default:5}}),nL={name:"ElPopperArrow",inheritAttrs:!1},rL=Te({...nL,props:a1,setup(e,{expose:t}){const n=e,r=Ie("popper"),{arrowOffset:i,arrowRef:l}=We(Z_,void 0);return xe(()=>n.arrowOffset,m=>{i.value=m}),Nt(()=>{l.value=void 0}),t({arrowRef:l}),(m,a)=>(V(),ce("span",{ref_key:"arrowRef",ref:l,class:fe(C(r).e("arrow")),"data-popper-arrow":""},null,2))}});var iL=Le(rL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const oL="ElOnlyChild",aL=Te({name:oL,setup(e,{slots:t,attrs:n}){var r;const i=We(r1),l=CM((r=i==null?void 0:i.setForwardRef)!=null?r:it);return()=>{var m;const a=(m=t.default)==null?void 0:m.call(t,n);if(!a||a.length>1)return null;const o=s1(a);return o?pt(Hr(o,n),[[l]]):null}}});function s1(e){if(!e)return null;const t=e;for(const n of t){if(Qe(n))switch(n.type){case An:continue;case ol:case"svg":return dm(n);case ze:return s1(n.children);default:return n}return dm(n)}return null}function dm(e){const t=Ie("only-child");return ue("span",{class:t.e("content")},[e])}const l1=Be({virtualRef:{type:Oe(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),sL={name:"ElPopperTrigger",inheritAttrs:!1},lL=Te({...sL,props:l1,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=We(cp,void 0);wM(i);const l=ee(()=>a.value?n.id:void 0),m=ee(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),a=ee(()=>{if(r&&r.value!=="tooltip")return r.value}),o=ee(()=>a.value?`${n.open}`:void 0);let u;return qe(()=>{xe(()=>n.virtualRef,h=>{h&&(i.value=qn(h))},{immediate:!0}),xe(()=>i.value,(h,c)=>{u==null||u(),u=void 0,fo(h)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var s;const d=n[f];d&&(h.addEventListener(f.slice(2).toLowerCase(),d),(s=c==null?void 0:c.removeEventListener)==null||s.call(c,f.slice(2).toLowerCase(),d))}),u=xe([l,m,a,o],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((s,d)=>{pr(f[d])?h.removeAttribute(s):h.setAttribute(s,f[d])})},{immediate:!0})),fo(c)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>c.removeAttribute(f))},{immediate:!0})}),Nt(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(h,c)=>h.virtualTriggering?be("v-if",!0):(V(),_e(C(aL),gn({key:0},h.$attrs,{"aria-controls":C(l),"aria-describedby":C(m),"aria-expanded":C(o),"aria-haspopup":C(a)}),{default:he(()=>[Se(h.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var uL=Le(lL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),vn="top",Nn="bottom",jn="right",mn="left",dp="auto",cl=[vn,Nn,jn,mn],la="start",Ds="end",cL="clippingParents",u1="viewport",za="popper",fL="reference",hm=cl.reduce(function(e,t){return e.concat([t+"-"+la,t+"-"+Ds])},[]),Sa=[].concat(cl,[dp]).reduce(function(e,t){return e.concat([t,t+"-"+la,t+"-"+Ds])},[]),dL="beforeRead",hL="read",pL="afterRead",gL="beforeMain",vL="main",mL="afterMain",yL="beforeWrite",bL="write",_L="afterWrite",wL=[dL,hL,pL,gL,vL,mL,yL,bL,_L];function wr(e){return e?(e.nodeName||"").toLowerCase():null}function ir(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ua(e){var t=ir(e).Element;return e instanceof t||e instanceof Element}function Fn(e){var t=ir(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hp(e){if(typeof ShadowRoot>"u")return!1;var t=ir(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function CL(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];!Fn(l)||!wr(l)||(Object.assign(l.style,r),Object.keys(i).forEach(function(m){var a=i[m];a===!1?l.removeAttribute(m):l.setAttribute(m,a===!0?"":a)}))})}function SL(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]||{},m=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=m.reduce(function(o,u){return o[u]="",o},{});!Fn(i)||!wr(i)||(Object.assign(i.style,a),Object.keys(l).forEach(function(o){i.removeAttribute(o)}))})}}var c1={name:"applyStyles",enabled:!0,phase:"write",fn:CL,effect:SL,requires:["computeStyles"]};function gr(e){return e.split("-")[0]}var ao=Math.max,Vu=Math.min,ca=Math.round;function fa(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(Fn(e)&&t){var l=e.offsetHeight,m=e.offsetWidth;m>0&&(r=ca(n.width)/m||1),l>0&&(i=ca(n.height)/l||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function pp(e){var t=fa(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 f1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&hp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Wr(e){return ir(e).getComputedStyle(e)}function xL(e){return["table","td","th"].indexOf(wr(e))>=0}function Di(e){return((ua(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ac(e){return wr(e)==="html"?e:e.assignedSlot||e.parentNode||(hp(e)?e.host:null)||Di(e)}function pm(e){return!Fn(e)||Wr(e).position==="fixed"?null:e.offsetParent}function TL(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Fn(e)){var r=Wr(e);if(r.position==="fixed")return null}var i=Ac(e);for(hp(i)&&(i=i.host);Fn(i)&&["html","body"].indexOf(wr(i))<0;){var l=Wr(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 fl(e){for(var t=ir(e),n=pm(e);n&&xL(n)&&Wr(n).position==="static";)n=pm(n);return n&&(wr(n)==="html"||wr(n)==="body"&&Wr(n).position==="static")?t:n||TL(e)||t}function gp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function os(e,t,n){return ao(e,Vu(t,n))}function kL(e,t,n){var r=os(e,t,n);return r>n?n:r}function d1(){return{top:0,right:0,bottom:0,left:0}}function h1(e){return Object.assign({},d1(),e)}function p1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var EL=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,h1(typeof e!="number"?e:p1(e,cl))};function OL(e){var t,n=e.state,r=e.name,i=e.options,l=n.elements.arrow,m=n.modifiersData.popperOffsets,a=gr(n.placement),o=gp(a),u=[mn,jn].indexOf(a)>=0,h=u?"height":"width";if(!(!l||!m)){var c=EL(i.padding,n),f=pp(l),s=o==="y"?vn:mn,d=o==="y"?Nn:jn,v=n.rects.reference[h]+n.rects.reference[o]-m[o]-n.rects.popper[h],g=m[o]-n.rects.reference[o],y=fl(l),b=y?o==="y"?y.clientHeight||0:y.clientWidth||0:0,_=v/2-g/2,w=c[s],S=b-f[h]-c[d],x=b/2-f[h]/2+_,T=os(w,x,S),O=o;n.modifiersData[r]=(t={},t[O]=T,t.centerOffset=T-x,t)}}function AL(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)||!f1(t.elements.popper,i)||(t.elements.arrow=i))}var PL={name:"arrow",enabled:!0,phase:"main",fn:OL,effect:AL,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function da(e){return e.split("-")[1]}var IL={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ML(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:ca(t*i)/i||0,y:ca(n*i)/i||0}}function gm(e){var t,n=e.popper,r=e.popperRect,i=e.placement,l=e.variation,m=e.offsets,a=e.position,o=e.gpuAcceleration,u=e.adaptive,h=e.roundOffsets,c=e.isFixed,f=m.x,s=f===void 0?0:f,d=m.y,v=d===void 0?0:d,g=typeof h=="function"?h({x:s,y:v}):{x:s,y:v};s=g.x,v=g.y;var y=m.hasOwnProperty("x"),b=m.hasOwnProperty("y"),_=mn,w=vn,S=window;if(u){var x=fl(n),T="clientHeight",O="clientWidth";if(x===ir(n)&&(x=Di(n),Wr(x).position!=="static"&&a==="absolute"&&(T="scrollHeight",O="scrollWidth")),x=x,i===vn||(i===mn||i===jn)&&l===Ds){w=Nn;var A=c&&x===S&&S.visualViewport?S.visualViewport.height:x[T];v-=A-r.height,v*=o?1:-1}if(i===mn||(i===vn||i===Nn)&&l===Ds){_=jn;var $=c&&x===S&&S.visualViewport?S.visualViewport.width:x[O];s-=$-r.width,s*=o?1:-1}}var j=Object.assign({position:a},u&&IL),R=h===!0?ML({x:s,y:v}):{x:s,y:v};if(s=R.x,v=R.y,o){var F;return Object.assign({},j,(F={},F[w]=b?"0":"",F[_]=y?"0":"",F.transform=(S.devicePixelRatio||1)<=1?"translate("+s+"px, "+v+"px)":"translate3d("+s+"px, "+v+"px, 0)",F))}return Object.assign({},j,(t={},t[w]=b?v+"px":"",t[_]=y?s+"px":"",t.transform="",t))}function LL(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,l=n.adaptive,m=l===void 0?!0:l,a=n.roundOffsets,o=a===void 0?!0:a,u={placement:gr(t.placement),variation:da(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,gm(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:m,roundOffsets:o})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,gm(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var g1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:LL,data:{}},Rl={passive:!0};function RL(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,l=i===void 0?!0:i,m=r.resize,a=m===void 0?!0:m,o=ir(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&u.forEach(function(h){h.addEventListener("scroll",n.update,Rl)}),a&&o.addEventListener("resize",n.update,Rl),function(){l&&u.forEach(function(h){h.removeEventListener("scroll",n.update,Rl)}),a&&o.removeEventListener("resize",n.update,Rl)}}var v1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:RL,data:{}},DL={left:"right",right:"left",bottom:"top",top:"bottom"};function fu(e){return e.replace(/left|right|bottom|top/g,function(t){return DL[t]})}var $L={start:"end",end:"start"};function vm(e){return e.replace(/start|end/g,function(t){return $L[t]})}function vp(e){var t=ir(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function mp(e){return fa(Di(e)).left+vp(e).scrollLeft}function BL(e){var t=ir(e),n=Di(e),r=t.visualViewport,i=n.clientWidth,l=n.clientHeight,m=0,a=0;return r&&(i=r.width,l=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(m=r.offsetLeft,a=r.offsetTop)),{width:i,height:l,x:m+mp(e),y:a}}function FL(e){var t,n=Di(e),r=vp(e),i=(t=e.ownerDocument)==null?void 0:t.body,l=ao(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),m=ao(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+mp(e),o=-r.scrollTop;return Wr(i||n).direction==="rtl"&&(a+=ao(n.clientWidth,i?i.clientWidth:0)-l),{width:l,height:m,x:a,y:o}}function yp(e){var t=Wr(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function m1(e){return["html","body","#document"].indexOf(wr(e))>=0?e.ownerDocument.body:Fn(e)&&yp(e)?e:m1(Ac(e))}function as(e,t){var n;t===void 0&&(t=[]);var r=m1(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),l=ir(r),m=i?[l].concat(l.visualViewport||[],yp(r)?r:[]):r,a=t.concat(m);return i?a:a.concat(as(Ac(m)))}function _d(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function zL(e){var t=fa(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function mm(e,t){return t===u1?_d(BL(e)):ua(t)?zL(t):_d(FL(Di(e)))}function NL(e){var t=as(Ac(e)),n=["absolute","fixed"].indexOf(Wr(e).position)>=0,r=n&&Fn(e)?fl(e):e;return ua(r)?t.filter(function(i){return ua(i)&&f1(i,r)&&wr(i)!=="body"}):[]}function jL(e,t,n){var r=t==="clippingParents"?NL(e):[].concat(t),i=[].concat(r,[n]),l=i[0],m=i.reduce(function(a,o){var u=mm(e,o);return a.top=ao(u.top,a.top),a.right=Vu(u.right,a.right),a.bottom=Vu(u.bottom,a.bottom),a.left=ao(u.left,a.left),a},mm(e,l));return m.width=m.right-m.left,m.height=m.bottom-m.top,m.x=m.left,m.y=m.top,m}function y1(e){var t=e.reference,n=e.element,r=e.placement,i=r?gr(r):null,l=r?da(r):null,m=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,o;switch(i){case vn:o={x:m,y:t.y-n.height};break;case Nn:o={x:m,y:t.y+t.height};break;case jn:o={x:t.x+t.width,y:a};break;case mn:o={x:t.x-n.width,y:a};break;default:o={x:t.x,y:t.y}}var u=i?gp(i):null;if(u!=null){var h=u==="y"?"height":"width";switch(l){case la:o[u]=o[u]-(t[h]/2-n[h]/2);break;case Ds:o[u]=o[u]+(t[h]/2-n[h]/2);break}}return o}function $s(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,l=n.boundary,m=l===void 0?cL:l,a=n.rootBoundary,o=a===void 0?u1:a,u=n.elementContext,h=u===void 0?za:u,c=n.altBoundary,f=c===void 0?!1:c,s=n.padding,d=s===void 0?0:s,v=h1(typeof d!="number"?d:p1(d,cl)),g=h===za?fL:za,y=e.rects.popper,b=e.elements[f?g:h],_=jL(ua(b)?b:b.contextElement||Di(e.elements.popper),m,o),w=fa(e.elements.reference),S=y1({reference:w,element:y,strategy:"absolute",placement:i}),x=_d(Object.assign({},y,S)),T=h===za?x:w,O={top:_.top-T.top+v.top,bottom:T.bottom-_.bottom+v.bottom,left:_.left-T.left+v.left,right:T.right-_.right+v.right},A=e.modifiersData.offset;if(h===za&&A){var $=A[i];Object.keys(O).forEach(function(j){var R=[jn,Nn].indexOf(j)>=0?1:-1,F=[vn,Nn].indexOf(j)>=0?"y":"x";O[j]+=$[F]*R})}return O}function VL(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,l=n.rootBoundary,m=n.padding,a=n.flipVariations,o=n.allowedAutoPlacements,u=o===void 0?Sa:o,h=da(r),c=h?a?hm:hm.filter(function(d){return da(d)===h}):cl,f=c.filter(function(d){return u.indexOf(d)>=0});f.length===0&&(f=c);var s=f.reduce(function(d,v){return d[v]=$s(e,{placement:v,boundary:i,rootBoundary:l,padding:m})[gr(v)],d},{});return Object.keys(s).sort(function(d,v){return s[d]-s[v]})}function HL(e){if(gr(e)===dp)return[];var t=fu(e);return[vm(e),t,vm(t)]}function UL(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,m=n.altAxis,a=m===void 0?!0:m,o=n.fallbackPlacements,u=n.padding,h=n.boundary,c=n.rootBoundary,f=n.altBoundary,s=n.flipVariations,d=s===void 0?!0:s,v=n.allowedAutoPlacements,g=t.options.placement,y=gr(g),b=y===g,_=o||(b||!d?[fu(g)]:HL(g)),w=[g].concat(_).reduce(function(U,P){return U.concat(gr(P)===dp?VL(t,{placement:P,boundary:h,rootBoundary:c,padding:u,flipVariations:d,allowedAutoPlacements:v}):P)},[]),S=t.rects.reference,x=t.rects.popper,T=new Map,O=!0,A=w[0],$=0;$<w.length;$++){var j=w[$],R=gr(j),F=da(j)===la,E=[vn,Nn].indexOf(R)>=0,W=E?"width":"height",te=$s(t,{placement:j,boundary:h,rootBoundary:c,altBoundary:f,padding:u}),Q=E?F?jn:mn:F?Nn:vn;S[W]>x[W]&&(Q=fu(Q));var le=fu(Q),I=[];if(l&&I.push(te[R]<=0),a&&I.push(te[Q]<=0,te[le]<=0),I.every(function(U){return U})){A=j,O=!1;break}T.set(j,I)}if(O)for(var z=d?3:1,M=function(U){var P=w.find(function(q){var Z=T.get(q);if(Z)return Z.slice(0,U).every(function(re){return re})});if(P)return A=P,"break"},L=z;L>0;L--){var J=M(L);if(J==="break")break}t.placement!==A&&(t.modifiersData[r]._skip=!0,t.placement=A,t.reset=!0)}}var WL={name:"flip",enabled:!0,phase:"main",fn:UL,requiresIfExists:["offset"],data:{_skip:!1}};function ym(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 bm(e){return[vn,jn,Nn,mn].some(function(t){return e[t]>=0})}function YL(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,l=t.modifiersData.preventOverflow,m=$s(t,{elementContext:"reference"}),a=$s(t,{altBoundary:!0}),o=ym(m,r),u=ym(a,i,l),h=bm(o),c=bm(u);t.modifiersData[n]={referenceClippingOffsets:o,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":c})}var XL={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YL};function KL(e,t,n){var r=gr(e),i=[mn,vn].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,m=l[0],a=l[1];return m=m||0,a=(a||0)*i,[mn,jn].indexOf(r)>=0?{x:a,y:m}:{x:m,y:a}}function GL(e){var t=e.state,n=e.options,r=e.name,i=n.offset,l=i===void 0?[0,0]:i,m=Sa.reduce(function(h,c){return h[c]=KL(c,t.rects,l),h},{}),a=m[t.placement],o=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=o,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=m}var qL={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GL};function ZL(e){var t=e.state,n=e.name;t.modifiersData[n]=y1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var b1={name:"popperOffsets",enabled:!0,phase:"read",fn:ZL,data:{}};function JL(e){return e==="x"?"y":"x"}function QL(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,l=i===void 0?!0:i,m=n.altAxis,a=m===void 0?!1:m,o=n.boundary,u=n.rootBoundary,h=n.altBoundary,c=n.padding,f=n.tether,s=f===void 0?!0:f,d=n.tetherOffset,v=d===void 0?0:d,g=$s(t,{boundary:o,rootBoundary:u,padding:c,altBoundary:h}),y=gr(t.placement),b=da(t.placement),_=!b,w=gp(y),S=JL(w),x=t.modifiersData.popperOffsets,T=t.rects.reference,O=t.rects.popper,A=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,$=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,R={x:0,y:0};if(x){if(l){var F,E=w==="y"?vn:mn,W=w==="y"?Nn:jn,te=w==="y"?"height":"width",Q=x[w],le=Q+g[E],I=Q-g[W],z=s?-O[te]/2:0,M=b===la?T[te]:O[te],L=b===la?-O[te]:-T[te],J=t.elements.arrow,U=s&&J?pp(J):{width:0,height:0},P=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:d1(),q=P[E],Z=P[W],re=os(0,T[te],U[te]),de=_?T[te]/2-z-re-q-$.mainAxis:M-re-q-$.mainAxis,ve=_?-T[te]/2+z+re+Z+$.mainAxis:L+re+Z+$.mainAxis,me=t.elements.arrow&&fl(t.elements.arrow),Y=me?w==="y"?me.clientTop||0:me.clientLeft||0:0,K=(F=j==null?void 0:j[w])!=null?F:0,k=Q+de-K-Y,N=Q+ve-K,H=os(s?Vu(le,k):le,Q,s?ao(I,N):I);x[w]=H,R[w]=H-Q}if(a){var D,B=w==="x"?vn:mn,X=w==="x"?Nn:jn,ae=x[S],ne=S==="y"?"height":"width",G=ae+g[B],pe=ae-g[X],ie=[vn,mn].indexOf(y)!==-1,ge=(D=j==null?void 0:j[S])!=null?D:0,we=ie?G:ae-T[ne]-O[ne]-ge+$.altAxis,ke=ie?ae+T[ne]+O[ne]-ge-$.altAxis:pe,Ee=s&&ie?kL(we,ae,ke):os(s?we:G,ae,s?ke:pe);x[S]=Ee,R[S]=Ee-ae}t.modifiersData[r]=R}}var eR={name:"preventOverflow",enabled:!0,phase:"main",fn:QL,requiresIfExists:["offset"]};function tR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function nR(e){return e===ir(e)||!Fn(e)?vp(e):tR(e)}function rR(e){var t=e.getBoundingClientRect(),n=ca(t.width)/e.offsetWidth||1,r=ca(t.height)/e.offsetHeight||1;return n!==1||r!==1}function iR(e,t,n){n===void 0&&(n=!1);var r=Fn(t),i=Fn(t)&&rR(t),l=Di(t),m=fa(e,i),a={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(r||!r&&!n)&&((wr(t)!=="body"||yp(l))&&(a=nR(t)),Fn(t)?(o=fa(t,!0),o.x+=t.clientLeft,o.y+=t.clientTop):l&&(o.x=mp(l))),{x:m.left+a.scrollLeft-o.x,y:m.top+a.scrollTop-o.y,width:m.width,height:m.height}}function oR(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 m=[].concat(l.requires||[],l.requiresIfExists||[]);m.forEach(function(a){if(!n.has(a)){var o=t.get(a);o&&i(o)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||i(l)}),r}function aR(e){var t=oR(e);return wL.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function sR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function lR(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 _m={placement:"bottom",modifiers:[],strategy:"absolute"};function wm(){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 bp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,l=i===void 0?_m:i;return function(m,a,o){o===void 0&&(o=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},_m,l),modifiersData:{},elements:{reference:m,popper:a},attributes:{},styles:{}},h=[],c=!1,f={state:u,setOptions:function(v){var g=typeof v=="function"?v(u.options):v;d(),u.options=Object.assign({},l,u.options,g),u.scrollParents={reference:ua(m)?as(m):m.contextElement?as(m.contextElement):[],popper:as(a)};var y=aR(lR([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),s(),f.update()},forceUpdate:function(){if(!c){var v=u.elements,g=v.reference,y=v.popper;if(wm(g,y)){u.rects={reference:iR(g,fl(y),u.options.strategy==="fixed"),popper:pp(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(O){return u.modifiersData[O.name]=Object.assign({},O.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var _=u.orderedModifiers[b],w=_.fn,S=_.options,x=S===void 0?{}:S,T=_.name;typeof w=="function"&&(u=w({state:u,options:x,name:T,instance:f})||u)}}}},update:sR(function(){return new Promise(function(v){f.forceUpdate(),v(u)})}),destroy:function(){d(),c=!0}};if(!wm(m,a))return f;f.setOptions(o).then(function(v){!c&&o.onFirstUpdate&&o.onFirstUpdate(v)});function s(){u.orderedModifiers.forEach(function(v){var g=v.name,y=v.options,b=y===void 0?{}:y,_=v.effect;if(typeof _=="function"){var w=_({state:u,name:g,instance:f,options:b}),S=function(){};h.push(w||S)}})}function d(){h.forEach(function(v){return v()}),h=[]}return f}}bp();var uR=[v1,b1,g1,c1];bp({defaultModifiers:uR});var cR=[v1,b1,g1,c1,qL,WL,eR,PL,XL],fR=bp({defaultModifiers:cR});const _1=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},Cm=(e,t)=>{for(const n of e)if(!dR(n,t))return n},dR=(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},hR=e=>{const t=_1(e),n=Cm(t,e),r=Cm(t.reverse(),e);return[n,r]},pR=e=>e instanceof HTMLInputElement&&"select"in e,si=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&pR(e)&&t&&e.select()}};function Sm(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const gR=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=Sm(e,r),e.unshift(r)},remove:r=>{var i,l;e=Sm(e,r),(l=(i=e[0])==null?void 0:i.resume)==null||l.call(i)}}},vR=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(si(r,t),document.activeElement!==n)return},xm=gR(),Qc="focus-trap.focus-after-trapped",ef="focus-trap.focus-after-released",Tm={cancelable:!0,bubbles:!1},km="focusAfterTrapped",Em="focusAfterReleased",w1=Symbol("elFocusTrap"),mR=Te({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[km,Em,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=se();let r,i;gM(s=>{e.trapped&&!l.paused&&t("release-requested",s)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},m=s=>{if(!e.loop&&!e.trapped||l.paused)return;const{key:d,altKey:v,ctrlKey:g,metaKey:y,currentTarget:b,shiftKey:_}=s,{loop:w}=e,S=d===Ct.tab&&!v&&!g&&!y,x=document.activeElement;if(S&&x){const T=b,[O,A]=hR(T);O&&A?!_&&x===A?(s.preventDefault(),w&&si(O,!0),t("focusout-prevented")):_&&[O,T].includes(x)&&(s.preventDefault(),w&&si(A,!0),t("focusout-prevented")):x===T&&(s.preventDefault(),t("focusout-prevented"))}};st(w1,{focusTrapRef:n,onKeydown:m}),xe(()=>e.focusTrapEl,s=>{s&&(n.value=s)},{immediate:!0}),xe([n],([s],[d])=>{s&&(s.addEventListener("keydown",m),s.addEventListener("focusin",u),s.addEventListener("focusout",h)),d&&(d.removeEventListener("keydown",m),d.removeEventListener("focusin",u),d.removeEventListener("focusout",h))});const a=s=>{t(km,s)},o=s=>t(Em,s),u=s=>{const d=C(n);if(!d)return;const v=s.target,g=v&&d.contains(v);g&&t("focusin",s),!l.paused&&e.trapped&&(g?i=v:si(i,!0))},h=s=>{const d=C(n);if(!(l.paused||!d))if(e.trapped){const v=s.relatedTarget;!pr(v)&&!d.contains(v)&&setTimeout(()=>{!l.paused&&e.trapped&&si(i,!0)},0)}else{const v=s.target;v&&d.contains(v)||t("focusout",s)}};async function c(){await He();const s=C(n);if(s){xm.push(l);const d=document.activeElement;if(r=d,!s.contains(d)){const g=new Event(Qc,Tm);s.addEventListener(Qc,a),s.dispatchEvent(g),g.defaultPrevented||He(()=>{let y=e.focusStartEl;Ye(y)||(si(y),document.activeElement!==y&&(y="first")),y==="first"&&vR(_1(s),!0),(document.activeElement===d||y==="container")&&si(s)})}}}function f(){const s=C(n);if(s){s.removeEventListener(Qc,a);const d=new Event(ef,Tm);s.addEventListener(ef,o),s.dispatchEvent(d),d.defaultPrevented||si(r!=null?r:document.body,!0),s.removeEventListener(ef,a),xm.remove(l)}}return qe(()=>{e.trapped&&c(),xe(()=>e.trapped,s=>{s?c():f()})}),Nt(()=>{e.trapped&&f()}),{onKeydown:m}}});function yR(e,t,n,r,i,l){return Se(e.$slots,"default",{handleKeydown:e.onKeydown})}var _p=Le(mR,[["render",yR],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const bR=["fixed","absolute"],_R=Be({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Oe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:Sa,default:"bottom"},popperOptions:{type:Oe(Object),default:()=>({})},strategy:{type:String,values:bR,default:"absolute"}}),C1=Be({..._R,id:String,style:{type:Oe([String,Array,Object])},className:{type:Oe([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Oe([String,Array,Object])},popperStyle:{type:Oe([String,Array,Object])},referenceEl:{type:Oe(Object)},triggerTargetEl:{type:Oe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),wR=["mouseenter","mouseleave","focus","blur","close"],Om=(e,t)=>{const{placement:n,strategy:r,popperOptions:i}=e,l={placement:n,strategy:r,...i,modifiers:SR(e)};return xR(l,t),TR(l,i==null?void 0:i.modifiers),l},CR=e=>{if(!!ot)return qn(e)};function SR(e){const{offset:t,gpuAcceleration:n,fallbackPlacements:r}=e;return[{name:"offset",options:{offset:[0,t!=null?t:12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n,adaptive:n}}]}function xR(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function TR(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const kR={name:"ElPopperContent"},ER=Te({...kR,props:C1,emits:wR,setup(e,{expose:t,emit:n}){const r=e,{popperInstanceRef:i,contentRef:l,triggerRef:m,role:a}=We(cp,void 0),o=We(po,void 0),{nextZIndex:u}=ul(),h=Ie("popper"),c=se(),f=se("first"),s=se(),d=se();st(Z_,{arrowRef:s,arrowOffset:d}),o&&(o.addInputId||o.removeInputId)&&st(po,{...o,addInputId:it,removeInputId:it});const v=se(r.zIndex||u()),g=se(!1);let y;const b=ee(()=>CR(r.referenceEl)||C(m)),_=ee(()=>[{zIndex:C(v)},r.popperStyle]),w=ee(()=>[h.b(),h.is("pure",r.pure),h.is(r.effect),r.popperClass]),S=ee(()=>a&&a.value==="dialog"?"false":void 0),x=({referenceEl:E,popperContentEl:W,arrowEl:te})=>{const Q=Om(r,{arrowEl:te,arrowOffset:C(d)});return fR(E,W,Q)},T=(E=!0)=>{var W;(W=C(i))==null||W.update(),E&&(v.value=r.zIndex||u())},O=()=>{var E,W;const te={name:"eventListeners",enabled:r.visible};(W=(E=C(i))==null?void 0:E.setOptions)==null||W.call(E,Q=>({...Q,modifiers:[...Q.modifiers||[],te]})),T(!1),r.visible&&r.focusOnShow?g.value=!0:r.visible===!1&&(g.value=!1)},A=()=>{n("focus")},$=()=>{f.value="first",n("blur")},j=E=>{var W;r.visible&&!g.value&&(E.target&&(f.value=E.target),g.value=!0,E.relatedTarget&&((W=E.relatedTarget)==null||W.focus()))},R=()=>{r.trapping||(g.value=!1)},F=()=>{g.value=!1,n("close")};return qe(()=>{let E;xe(b,W=>{var te;E==null||E();const Q=C(i);if((te=Q==null?void 0:Q.destroy)==null||te.call(Q),W){const le=C(c);l.value=le,i.value=x({referenceEl:W,popperContentEl:le,arrowEl:C(s)}),E=xe(()=>W.getBoundingClientRect(),()=>T(),{immediate:!0})}else i.value=void 0},{immediate:!0}),xe(()=>r.triggerTargetEl,(W,te)=>{y==null||y(),y=void 0;const Q=C(W||c.value),le=C(te||c.value);if(fo(Q)){const{ariaLabel:I,id:z}=zn(r);y=xe([a,I,S,z],M=>{["role","aria-label","aria-modal","id"].forEach((L,J)=>{pr(M[J])?Q.removeAttribute(L):Q.setAttribute(L,M[J])})},{immediate:!0})}le!==Q&&fo(le)&&["role","aria-label","aria-modal","id"].forEach(I=>{le.removeAttribute(I)})},{immediate:!0}),xe(()=>r.visible,O,{immediate:!0}),xe(()=>Om(r,{arrowEl:C(s),arrowOffset:C(d)}),W=>{var te;return(te=i.value)==null?void 0:te.setOptions(W)})}),Nt(()=>{y==null||y(),y=void 0}),t({popperContentRef:c,popperInstanceRef:i,updatePopper:T,contentStyle:_}),(E,W)=>(V(),ce("div",{ref_key:"popperContentRef",ref:c,style:Fe(C(_)),class:fe(C(w)),tabindex:"-1",onMouseenter:W[0]||(W[0]=te=>E.$emit("mouseenter",te)),onMouseleave:W[1]||(W[1]=te=>E.$emit("mouseleave",te))},[ue(C(_p),{trapped:g.value,"trap-on-focus-in":!0,"focus-trap-el":c.value,"focus-start-el":f.value,onFocusAfterTrapped:A,onFocusAfterReleased:$,onFocusin:j,onFocusoutPrevented:R,onReleaseRequested:F},{default:he(()=>[Se(E.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var OR=Le(ER,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const AR=vt(tL),PR=Ie("tooltip"),Dn=Be({...bM,...C1,appendTo:{type:Oe([String,Object]),default:n1},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Oe(Boolean),default:null},transition:{type:String,default:`${PR.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),Bs=Be({...l1,disabled:Boolean,trigger:{type:Oe([String,Array]),default:"hover"},triggerKeys:{type:Oe(Array),default:()=>[Ct.enter,Ct.space]}}),IR=Be({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),wp=Symbol("elTooltip"),MR=Te({name:"ElTooltipContent",components:{ElPopperContent:OR},inheritAttrs:!1,props:Dn,setup(e){const t=se(null),n=se(!1),r=se(!1),i=se(!1),l=se(!1),{controlled:m,id:a,open:o,trigger:u,onClose:h,onOpen:c,onShow:f,onHide:s,onBeforeShow:d,onBeforeHide:v}=We(wp,void 0),g=ee(()=>e.persistent);Nt(()=>{l.value=!0});const y=ee(()=>C(g)?!0:C(o)),b=ee(()=>e.disabled?!1:C(o)),_=ee(()=>{var E;return(E=e.style)!=null?E:{}}),w=ee(()=>!C(o)),S=()=>{s()},x=()=>{if(C(m))return!0},T=Mr(x,()=>{e.enterable&&C(u)==="hover"&&c()}),O=Mr(x,()=>{C(u)==="hover"&&h()}),A=()=>{var E,W;(W=(E=t.value)==null?void 0:E.updatePopper)==null||W.call(E),d==null||d()},$=()=>{v==null||v()},j=()=>{f(),F=eI(ee(()=>{var E;return(E=t.value)==null?void 0:E.popperContentRef}),()=>{if(C(m))return;C(u)!=="hover"&&h()})},R=()=>{e.virtualTriggering||h()};let F;return xe(()=>C(o),E=>{E||F==null||F()},{flush:"post"}),{ariaHidden:w,entering:r,leaving:i,id:a,intermediateOpen:n,contentStyle:_,contentRef:t,destroyed:l,shouldRender:y,shouldShow:b,onClose:h,open:o,onAfterShow:j,onBeforeEnter:A,onBeforeLeave:$,onContentEnter:T,onContentLeave:O,onTransitionLeave:S,onBlur:R}}});function LR(e,t,n,r,i,l){const m=ft("el-popper-content");return V(),_e(Fh,{disabled:!e.teleported,to:e.appendTo},[ue(tn,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:he(()=>[e.shouldRender?pt((V(),_e(m,gn({key:0,id:e.id,ref:"contentRef"},e.$attrs,{"aria-label":e.ariaLabel,"aria-hidden":e.ariaHidden,"boundaries-padding":e.boundariesPadding,"fallback-placements":e.fallbackPlacements,"gpu-acceleration":e.gpuAcceleration,offset:e.offset,placement:e.placement,"popper-options":e.popperOptions,strategy:e.strategy,effect:e.effect,enterable:e.enterable,pure:e.pure,"popper-class":e.popperClass,"popper-style":[e.popperStyle,e.contentStyle],"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,visible:e.shouldShow,"z-index":e.zIndex,onMouseenter:e.onContentEnter,onMouseleave:e.onContentLeave,onBlur:e.onBlur,onClose:e.onClose}),{default:he(()=>[be(" Workaround bug #6378 "),e.destroyed?be("v-if",!0):Se(e.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onBlur","onClose"])),[[Lt,e.shouldShow]]):be("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var RR=Le(MR,[["render",LR],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const DR=(e,t)=>je(e)?e.includes(t):e===t,$o=(e,t,n)=>r=>{DR(C(e),t)&&n(r)},$R=Te({name:"ElTooltipTrigger",components:{ElPopperTrigger:uL},props:Bs,setup(e){const t=Ie("tooltip"),{controlled:n,id:r,open:i,onOpen:l,onClose:m,onToggle:a}=We(wp,void 0),o=se(null),u=()=>{if(C(n)||e.disabled)return!0},h=yn(e,"trigger"),c=Mr(u,$o(h,"hover",l)),f=Mr(u,$o(h,"hover",m)),s=Mr(u,$o(h,"click",b=>{b.button===0&&a(b)})),d=Mr(u,$o(h,"focus",l)),v=Mr(u,$o(h,"focus",m)),g=Mr(u,$o(h,"contextmenu",b=>{b.preventDefault(),a(b)})),y=Mr(u,b=>{const{code:_}=b;e.triggerKeys.includes(_)&&(b.preventDefault(),a(b))});return{onBlur:v,onContextMenu:g,onFocus:d,onMouseenter:c,onMouseleave:f,onClick:s,onKeydown:y,open:i,id:r,triggerRef:o,ns:t}}});function BR(e,t,n,r,i,l){const m=ft("el-popper-trigger");return V(),_e(m,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:fe(e.ns.e("trigger")),onBlur:e.onBlur,onClick:e.onClick,onContextmenu:e.onContextMenu,onFocus:e.onFocus,onMouseenter:e.onMouseenter,onMouseleave:e.onMouseleave,onKeydown:e.onKeydown},{default:he(()=>[Se(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var FR=Le($R,[["render",BR],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:zR,useModelToggle:NR,useModelToggleEmits:jR}=dM("visible"),VR=Te({name:"ElTooltip",components:{ElPopper:AR,ElPopperArrow:iL,ElTooltipContent:RR,ElTooltipTrigger:FR},props:{...o1,...zR,...Dn,...Bs,...a1,...IR},emits:[...jR,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){yM();const n=ee(()=>(Zn(e.openDelay),e.openDelay||e.showAfter)),r=ee(()=>(Zn(e.visibleArrow),Pn(e.visibleArrow)?e.visibleArrow:e.showArrow)),i=Ai(),l=se(null),m=se(null),a=()=>{var y;const b=C(l);b&&((y=b.popperInstanceRef)==null||y.update())},o=se(!1),u=se(void 0),{show:h,hide:c,hasUpdateHandler:f}=NR({indicator:o,toggleReason:u}),{onOpen:s,onClose:d}=_M({showAfter:n,hideAfter:yn(e,"hideAfter"),open:h,close:c}),v=ee(()=>Pn(e.visible)&&!f.value);st(wp,{controlled:v,id:i,open:ac(o),trigger:yn(e,"trigger"),onOpen:y=>{s(y)},onClose:y=>{d(y)},onToggle:y=>{C(o)?d(y):s(y)},onShow:()=>{t("show",u.value)},onHide:()=>{t("hide",u.value)},onBeforeShow:()=>{t("before-show",u.value)},onBeforeHide:()=>{t("before-hide",u.value)},updatePopper:a}),xe(()=>e.disabled,y=>{y&&o.value&&(o.value=!1)});const g=()=>{var y,b;const _=(b=(y=m.value)==null?void 0:y.contentRef)==null?void 0:b.popperContentRef;return _&&_.contains(document.activeElement)};return qy(()=>o.value&&c()),{compatShowAfter:n,compatShowArrow:r,popperRef:l,contentRef:m,open:o,hide:c,isFocusInsideContent:g,updatePopper:a,onOpen:s,onClose:d}}}),HR=["innerHTML"],UR={key:1};function WR(e,t,n,r,i,l){const m=ft("el-tooltip-trigger"),a=ft("el-popper-arrow"),o=ft("el-tooltip-content"),u=ft("el-popper");return V(),_e(u,{ref:"popperRef",role:e.role},{default:he(()=>[ue(m,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:he(()=>[e.$slots.default?Se(e.$slots,"default",{key:0}):be("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ue(o,{ref:"contentRef","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":e.popperClass,"popper-style":e.popperStyle,placement:e.placement,"popper-options":e.popperOptions,pure:e.pure,"raw-content":e.rawContent,"reference-el":e.referenceEl,"trigger-target-el":e.triggerTargetEl,"show-after":e.compatShowAfter,strategy:e.strategy,teleported:e.teleported,transition:e.transition,"virtual-triggering":e.virtualTriggering,"z-index":e.zIndex,"append-to":e.appendTo},{default:he(()=>[Se(e.$slots,"content",{},()=>[e.rawContent?(V(),ce("span",{key:0,innerHTML:e.content},null,8,HR)):(V(),ce("span",UR,Ae(e.content),1))]),e.compatShowArrow?(V(),_e(a,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):be("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","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var YR=Le(VR,[["render",WR],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Sr=vt(YR),XR=Be({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"}}),KR=["textContent"],GR={name:"ElBadge"},qR=Te({...GR,props:XR,setup(e,{expose:t}){const n=e,r=Ie("badge"),i=ee(()=>n.isDot?"":et(n.value)&&et(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:i}),(l,m)=>(V(),ce("div",{class:fe(C(r).b())},[Se(l.$slots,"default"),ue(tn,{name:`${C(r).namespace.value}-zoom-in-center`,persisted:""},{default:he(()=>[pt(oe("sup",{class:fe([C(r).e("content"),C(r).em("content",l.type),C(r).is("fixed",!!l.$slots.default),C(r).is("dot",l.isDot)]),textContent:Ae(C(i))},null,10,KR),[[Lt,!l.hidden&&(C(i)||l.isDot)]])]),_:1},8,["name"])],2))}});var ZR=Le(qR,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const JR=vt(ZR),QR=["default","primary","success","warning","info","danger","text",""],eD=["button","submit","reset"],wd=Be({size:Oi,disabled:Boolean,type:{type:String,values:QR,default:""},icon:{type:Bt},nativeType:{type:String,values:eD,default:"button"},loading:Boolean,loadingIcon:{type:Bt,default:()=>Uh},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),tD={click:e=>e instanceof MouseEvent};function Xt(e,t){nD(e)&&(e="100%");var n=rD(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 Dl(e){return Math.min(1,Math.max(0,e))}function nD(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function rD(e){return typeof e=="string"&&e.indexOf("%")!==-1}function S1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function $l(e){return e<=1?"".concat(Number(e)*100,"%"):e}function Zi(e){return e.length===1?"0"+e:String(e)}function iD(e,t,n){return{r:Xt(e,255)*255,g:Xt(t,255)*255,b:Xt(n,255)*255}}function Am(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,m=0,a=(r+i)/2;if(r===i)m=0,l=0;else{var o=r-i;switch(m=a>.5?o/(2-r-i):o/(r+i),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:m,l:a}}function tf(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 oD(e,t,n){var r,i,l;if(e=Xt(e,360),t=Xt(t,100),n=Xt(n,100),t===0)i=n,l=n,r=n;else{var m=n<.5?n*(1+t):n+t-n*t,a=2*n-m;r=tf(a,m,e+1/3),i=tf(a,m,e),l=tf(a,m,e-1/3)}return{r:r*255,g:i*255,b:l*255}}function Pm(e,t,n){e=Xt(e,255),t=Xt(t,255),n=Xt(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,m=r,a=r-i,o=r===0?0:a/r;if(r===i)l=0;else{switch(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:o,v:m}}function aD(e,t,n){e=Xt(e,360)*6,t=Xt(t,100),n=Xt(n,100);var r=Math.floor(e),i=e-r,l=n*(1-t),m=n*(1-i*t),a=n*(1-(1-i)*t),o=r%6,u=[n,m,l,l,a,n][o],h=[a,n,n,m,l,l][o],c=[l,l,a,n,n,m][o];return{r:u*255,g:h*255,b:c*255}}function Im(e,t,n,r){var i=[Zi(Math.round(e).toString(16)),Zi(Math.round(t).toString(16)),Zi(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 sD(e,t,n,r,i){var l=[Zi(Math.round(e).toString(16)),Zi(Math.round(t).toString(16)),Zi(Math.round(n).toString(16)),Zi(lD(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 lD(e){return Math.round(parseFloat(e)*255).toString(16)}function Mm(e){return wn(e)/255}function wn(e){return parseInt(e,16)}function uD(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var Cd={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 cD(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,l=null,m=!1,a=!1;return typeof e=="string"&&(e=hD(e)),typeof e=="object"&&(kr(e.r)&&kr(e.g)&&kr(e.b)?(t=iD(e.r,e.g,e.b),m=!0,a=String(e.r).substr(-1)==="%"?"prgb":"rgb"):kr(e.h)&&kr(e.s)&&kr(e.v)?(r=$l(e.s),i=$l(e.v),t=aD(e.h,r,i),m=!0,a="hsv"):kr(e.h)&&kr(e.s)&&kr(e.l)&&(r=$l(e.s),l=$l(e.l),t=oD(e.h,r,l),m=!0,a="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=S1(n),{ok:m,format:e.format||a,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+%?",dD="[-\\+]?\\d*\\.\\d+%?",gi="(?:".concat(dD,")|(?:").concat(fD,")"),nf="[\\s|\\(]+(".concat(gi,")[,|\\s]+(").concat(gi,")[,|\\s]+(").concat(gi,")\\s*\\)?"),rf="[\\s|\\(]+(".concat(gi,")[,|\\s]+(").concat(gi,")[,|\\s]+(").concat(gi,")[,|\\s]+(").concat(gi,")\\s*\\)?"),Yn={CSS_UNIT:new RegExp(gi),rgb:new RegExp("rgb"+nf),rgba:new RegExp("rgba"+rf),hsl:new RegExp("hsl"+nf),hsla:new RegExp("hsla"+rf),hsv:new RegExp("hsv"+nf),hsva:new RegExp("hsva"+rf),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 hD(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(Cd[e])e=Cd[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Yn.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=Yn.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Yn.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=Yn.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Yn.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=Yn.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Yn.hex8.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),a:Mm(n[4]),format:t?"name":"hex8"}:(n=Yn.hex6.exec(e),n?{r:wn(n[1]),g:wn(n[2]),b:wn(n[3]),format:t?"name":"hex"}:(n=Yn.hex4.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),a:Mm(n[4]+n[4]),format:t?"name":"hex8"}:(n=Yn.hex3.exec(e),n?{r:wn(n[1]+n[1]),g:wn(n[2]+n[2]),b:wn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function kr(e){return Boolean(Yn.CSS_UNIT.exec(String(e)))}var x1=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=uD(t)),this.originalInput=t;var i=cD(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,m=t.g/255,a=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),m<=.03928?r=m/12.92:r=Math.pow((m+.055)/1.055,2.4),a<=.03928?i=a/12.92:i=Math.pow((a+.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=S1(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=Pm(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=Pm(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=Am(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=Am(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),Im(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),sD(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.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(Xt(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(Xt(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="#"+Im(this.r,this.g,this.b,!1),n=0,r=Object.entries(Cd);n<r.length;n++){var i=r[n],l=i[0],m=i[1];if(t===m)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=Dl(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=Dl(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=Dl(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=Dl(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,m={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(m)},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,m=[],a=1/t;t--;)m.push(new e({h:r,s:i,v:l})),l=(l+a)%1;return m},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();return new e({r:r.r+(n.r-r.r)*n.a,g:r.g+(n.g-r.g)*n.a,b:r.b+(n.b-r.b)*n.a})},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,m=1;m<t;m++)i.push(new e({h:(r+m*l)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function oi(e,t=20){return e.mix("#141414",t).toString()}function pD(e){const t=Oo(),n=Ie("button");return ee(()=>{let r={};const i=e.color;if(i){const l=new x1(i),m=e.dark?l.tint(20).toString():oi(l,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?oi(l,90):l.tint(90).toString(),"text-color":i,"border-color":e.dark?oi(l,50):l.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":m,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":m}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?oi(l,90):l.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?oi(l,50):l.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?oi(l,80):l.tint(80).toString());else{const a=e.dark?oi(l,30):l.tint(30).toString(),o=l.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":o,"border-color":i,"hover-bg-color":a,"hover-text-color":o,"hover-border-color":a,"active-bg-color":m,"active-border-color":m}),t.value){const u=e.dark?oi(l,50):l.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=u,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")]=u}}}return r})}const gD=["aria-disabled","disabled","autofocus","type"],vD={name:"ElButton"},mD=Te({...vD,props:wd,emits:tD,setup(e,{expose:t,emit:n}){const r=e,i=ma();Rs({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},ee(()=>r.type==="text"));const l=We(N_,void 0),m=ei("button"),a=Ie("button"),{form:o}=Ri(),u=Un(ee(()=>l==null?void 0:l.size)),h=Oo(),c=se(),f=ee(()=>r.type||(l==null?void 0:l.type)||""),s=ee(()=>{var y,b,_;return(_=(b=r.autoInsertSpace)!=null?b:(y=m.value)==null?void 0:y.autoInsertSpace)!=null?_:!1}),d=ee(()=>{var y;const b=(y=i.default)==null?void 0:y.call(i);if(s.value&&(b==null?void 0:b.length)===1){const _=b[0];if((_==null?void 0:_.type)===ol){const w=_.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1}),v=pD(r),g=y=>{r.nativeType==="reset"&&(o==null||o.resetFields()),n("click",y)};return t({ref:c,size:u,type:f,disabled:h,shouldAddSpace:d}),(y,b)=>(V(),ce("button",{ref_key:"_ref",ref:c,class:fe([C(a).b(),C(a).m(C(f)),C(a).m(C(u)),C(a).is("disabled",C(h)),C(a).is("loading",y.loading),C(a).is("plain",y.plain),C(a).is("round",y.round),C(a).is("circle",y.circle),C(a).is("text",y.text),C(a).is("link",y.link),C(a).is("has-bg",y.bg)]),"aria-disabled":C(h)||y.loading,disabled:C(h)||y.loading,autofocus:y.autofocus,type:y.nativeType,style:Fe(C(v)),onClick:g},[y.loading?(V(),ce(ze,{key:0},[y.$slots.loading?Se(y.$slots,"loading",{key:0}):(V(),_e(C(Re),{key:1,class:fe(C(a).is("loading"))},{default:he(()=>[(V(),_e(yt(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(V(),_e(C(Re),{key:1},{default:he(()=>[y.icon?(V(),_e(yt(y.icon),{key:0})):Se(y.$slots,"icon",{key:1})]),_:3})):be("v-if",!0),y.$slots.default?(V(),ce("span",{key:2,class:fe({[C(a).em("text","expand")]:C(d)})},[Se(y.$slots,"default")],2)):be("v-if",!0)],14,gD))}});var yD=Le(mD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const bD={size:wd.size,type:wd.type},_D={name:"ElButtonGroup"},wD=Te({..._D,props:bD,setup(e){const t=e;st(N_,_t({size:yn(t,"size"),type:yn(t,"type")}));const n=Ie("button");return(r,i)=>(V(),ce("div",{class:fe(`${C(n).b("group")}`)},[Se(r.$slots,"default")],2))}});var T1=Le(wD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const dt=vt(yD,{ButtonGroup:T1});Hn(T1);var Bl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function CD(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 li=new Map;let Lm;ot&&(document.addEventListener("mousedown",e=>Lm=e),document.addEventListener("mouseup",e=>{for(const t of li.values())for(const{documentHandler:n}of t)n(e,Lm)}));function Rm(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:fo(t.arg)&&n.push(t.arg),function(r,i){const l=t.instance.popperRef,m=r.target,a=i==null?void 0:i.target,o=!t||!t.instance,u=!m||!a,h=e.contains(m)||e.contains(a),c=e===m,f=n.length&&n.some(d=>d==null?void 0:d.contains(m))||n.length&&n.includes(a),s=l&&(l.contains(m)||l.contains(a));o||u||h||c||f||s||t.value(r,i)}}const k1={beforeMount(e,t){li.has(e)||li.set(e,[]),li.get(e).push({documentHandler:Rm(e,t),bindingFn:t.value})},updated(e,t){li.has(e)||li.set(e,[]);const n=li.get(e),r=n.findIndex(l=>l.bindingFn===t.oldValue),i={documentHandler:Rm(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){li.delete(e)}},SD=100,xD=600,Dm={beforeMount(e,t){let n=null,r=null;const i=()=>t.value&&t.value(),l=()=>{r&&(clearTimeout(r),r=null),n&&(clearInterval(n),n=null)};e.addEventListener("mousedown",m=>{m.button===0&&(i(),document.addEventListener("mouseup",l,{once:!0}),l(),r=setTimeout(()=>{n=setInterval(()=>{i()},SD)},xD))})}},Sd="_trap-focus-children",Ji=[],$m=e=>{if(Ji.length===0)return;const t=Ji[Ji.length-1][Sd];if(t.length>0&&e.code===Ct.tab){if(t.length===1){e.preventDefault(),document.activeElement!==t[0]&&t[0].focus();return}const n=e.shiftKey,r=e.target===t[0],i=e.target===t[t.length-1];r&&n&&(e.preventDefault(),t[t.length-1].focus()),i&&!n&&(e.preventDefault(),t[0].focus())}},TD={beforeMount(e){e[Sd]=Vv(e),Ji.push(e),Ji.length<=1&&document.addEventListener("keydown",$m)},updated(e){He(()=>{e[Sd]=Vv(e)})},unmounted(){Ji.shift(),Ji.length===0&&document.removeEventListener("keydown",$m)}},kD=Be({header:{type:String,default:""},bodyStyle:{type:Oe([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),ED={name:"ElCard"},OD=Te({...ED,props:kD,setup(e){const t=Ie("card");return(n,r)=>(V(),ce("div",{class:fe([C(t).b(),C(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(V(),ce("div",{key:0,class:fe(C(t).e("header"))},[Se(n.$slots,"header",{},()=>[Ne(Ae(n.header),1)])],2)):be("v-if",!0),oe("div",{class:fe(C(t).e("body")),style:Fe(n.bodyStyle)},[Se(n.$slots,"default")],6)],2))}});var AD=Le(OD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const PD=vt(AD),ID=Be({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:""},indicator:{type:Boolean,default:!0},arrow:{type:String,values:["always","hover","never"],default:"hover"},type:{type:String,values:["","card"],default:""},loop:{type:Boolean,default:!0},direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},pauseOnHover:{type:Boolean,default:!0}}),MD={change:(e,t)=>[e,t].every(et)},LD=["onMouseenter","onMouseleave"],RD=["onMouseenter","onClick"],DD={key:0},$D={name:"ElCarousel"},BD=Te({...$D,props:ID,emits:MD,setup(e,{expose:t,emit:n}){const r=e,i=Ie("carousel"),l=300,m=se(-1),a=se(null),o=se(!1),u=se(),h=se([]),c=ee(()=>r.arrow!=="never"&&!C(g)),f=ee(()=>h.value.some(M=>M.props.label.toString().length>0)),s=ee(()=>{const M=[i.b(),i.m(r.direction)];return C(v)&&M.push(i.m("card")),M}),d=ee(()=>{const M=[i.e("indicators"),i.em("indicators",r.direction)];return f.value&&M.push(i.em("indicators","labels")),(r.indicatorPosition==="outside"||C(v))&&M.push(i.em("indicators","outside")),M}),v=ee(()=>r.type==="card"),g=ee(()=>r.direction==="vertical"),y=is(M=>{x(M)},l,{trailing:!0}),b=is(M=>{te(M)},l);function _(){a.value&&(clearInterval(a.value),a.value=null)}function w(){r.interval<=0||!r.autoplay||a.value||(a.value=setInterval(()=>S(),r.interval))}const S=()=>{m.value<h.value.length-1?m.value=m.value+1:r.loop&&(m.value=0)};function x(M){if(Ye(M)){const U=h.value.filter(P=>P.props.name===M);U.length>0&&(M=h.value.indexOf(U[0]))}if(M=Number(M),Number.isNaN(M)||M!==Math.floor(M))return;const L=h.value.length,J=m.value;M<0?m.value=r.loop?L-1:0:M>=L?m.value=r.loop?0:L-1:m.value=M,J===m.value&&T(J),I()}function T(M){h.value.forEach((L,J)=>{L.translateItem(J,m.value,M)})}function O(M){h.value.push(M)}function A(M){const L=h.value.findIndex(J=>J.uid===M);L!==-1&&(h.value.splice(L,1),m.value===L&&le())}function $(M,L){var J,U,P,q;const Z=C(h),re=Z.length;if(re===0||!M.states.inStage)return!1;const de=L+1,ve=L-1,me=re-1,Y=Z[me].states.active,K=Z[0].states.active,k=(U=(J=Z[de])==null?void 0:J.states)==null?void 0:U.active,N=(q=(P=Z[ve])==null?void 0:P.states)==null?void 0:q.active;return L===me&&K||k?"left":L===0&&Y||N?"right":!1}function j(){o.value=!0,r.pauseOnHover&&_()}function R(){o.value=!1,w()}function F(M){C(g)||h.value.forEach((L,J)=>{M===$(L,J)&&(L.states.hover=!0)})}function E(){C(g)||h.value.forEach(M=>{M.states.hover=!1})}function W(M){m.value=M}function te(M){r.trigger==="hover"&&M!==m.value&&(m.value=M)}function Q(){x(m.value-1)}function le(){x(m.value+1)}function I(){_(),w()}xe(()=>m.value,(M,L)=>{T(L),L>-1&&n("change",M,L)}),xe(()=>r.autoplay,M=>{M?w():_()}),xe(()=>r.loop,()=>{x(m.value)}),xe(()=>r.interval,()=>{I()});const z=en();return qe(async()=>{await He(),z.value=Cr(u.value,()=>{T()}),r.initialIndex<h.value.length&&r.initialIndex>=0&&(m.value=r.initialIndex),w()}),Nt(()=>{_(),u.value&&z.value&&z.value.stop()}),st(j_,{root:u,isCardType:v,isVertical:g,items:h,loop:r.loop,addItem:O,removeItem:A,setActiveItem:x}),t({setActiveItem:x,prev:Q,next:le}),(M,L)=>(V(),ce("div",{ref_key:"root",ref:u,class:fe(C(s)),onMouseenter:Je(j,["stop"]),onMouseleave:Je(R,["stop"])},[oe("div",{class:fe(C(i).e("container")),style:Fe({height:M.height})},[C(c)?(V(),_e(tn,{key:0,name:"carousel-arrow-left",persisted:""},{default:he(()=>[pt(oe("button",{type:"button",class:fe([C(i).e("arrow"),C(i).em("arrow","left")]),onMouseenter:L[0]||(L[0]=J=>F("left")),onMouseleave:E,onClick:L[1]||(L[1]=Je(J=>C(y)(m.value-1),["stop"]))},[ue(C(Re),null,{default:he(()=>[ue(C(yc))]),_:1})],34),[[Lt,(M.arrow==="always"||o.value)&&(r.loop||m.value>0)]])]),_:1})):be("v-if",!0),C(c)?(V(),_e(tn,{key:1,name:"carousel-arrow-right",persisted:""},{default:he(()=>[pt(oe("button",{type:"button",class:fe([C(i).e("arrow"),C(i).em("arrow","right")]),onMouseenter:L[2]||(L[2]=J=>F("right")),onMouseleave:E,onClick:L[3]||(L[3]=Je(J=>C(y)(m.value+1),["stop"]))},[ue(C(Re),null,{default:he(()=>[ue(C(ba))]),_:1})],34),[[Lt,(M.arrow==="always"||o.value)&&(r.loop||m.value<h.value.length-1)]])]),_:1})):be("v-if",!0),Se(M.$slots,"default")],6),M.indicatorPosition!=="none"?(V(),ce("ul",{key:0,class:fe(C(d))},[(V(!0),ce(ze,null,Rt(h.value,(J,U)=>(V(),ce("li",{key:U,class:fe([C(i).e("indicator"),C(i).em("indicator",M.direction),C(i).is("active",U===m.value)]),onMouseenter:P=>C(b)(U),onClick:Je(P=>W(U),["stop"])},[oe("button",{class:fe(C(i).e("button"))},[C(f)?(V(),ce("span",DD,Ae(J.props.label),1)):be("v-if",!0)],2)],42,RD))),128))],2)):be("v-if",!0)],42,LD))}});var FD=Le(BD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const zD=Be({name:{type:String,default:""},label:{type:[String,Number],default:""}}),ND={name:"ElCarouselItem"},jD=Te({...ND,props:zD,setup(e){const t=e,n=Ie("carousel"),r=We(j_),i=gt(),l=.83,m=se(!1),a=se(0),o=se(1),u=se(!1),h=se(!1),c=se(!1),f=se(!1),{isCardType:s,isVertical:d}=r,v=ee(()=>{const x=`${`translate${C(d)?"Y":"X"}`}(${C(a)}px)`,T=`scale(${C(o)})`;return{transform:[x,T].join(" ")}});function g(S,x,T){const O=T-1,A=x-1,$=x+1,j=T/2;return x===0&&S===O?-1:x===O&&S===0?T:S<A&&x-S>=j?T+1:S>$&&S-x>=j?-2:S}function y(S,x){var T;const O=((T=r.root.value)==null?void 0:T.offsetWidth)||0;return c.value?O*((2-l)*(S-x)+1)/4:S<x?-(1+l)*O/4:(3+l)*O/4}function b(S,x,T){const O=r.root.value;return O?((T?O.offsetHeight:O.offsetWidth)||0)*(S-x):0}const _=(S,x,T)=>{var O;const A=C(s),$=(O=r.items.value.length)!=null?O:Number.NaN,j=S===x;!A&&!Zn(T)&&(f.value=j||S===T),!j&&$>2&&r.loop&&(S=g(S,x,$));const R=C(d);u.value=j,A?(c.value=Math.round(Math.abs(S-x))<=1,a.value=y(S,x),o.value=C(u)?1:l):a.value=b(S,x,R),h.value=!0};function w(){if(r&&C(s)){const S=r.items.value.findIndex(({uid:x})=>x===i.uid);r.setActiveItem(S)}}return qe(()=>{r.addItem({props:t,states:_t({hover:m,translate:a,scale:o,active:u,ready:h,inStage:c,animating:f}),uid:i.uid,translateItem:_})}),Zr(()=>{r.removeItem(i.uid)}),(S,x)=>pt((V(),ce("div",{class:fe([C(n).e("item"),C(n).is("active",u.value),C(n).is("in-stage",c.value),C(n).is("hover",m.value),C(n).is("animating",f.value),{[C(n).em("item","card")]:C(s)}]),style:Fe(C(v)),onClick:w},[C(s)?pt((V(),ce("div",{key:0,class:fe(C(n).e("mask"))},null,2)),[[Lt,!u.value]]):be("v-if",!0),Se(S.$slots,"default")],6)),[[Lt,h.value]])}});var E1=Le(jD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const VD=vt(FD,{CarouselItem:E1}),HD=Hn(E1),O1=Be({size:Oi,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),UD=Be({...O1,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),A1={[at]:e=>Ye(e)||et(e)||Pn(e),[nr]:e=>Ye(e)||et(e)||Pn(e)},P1=(e,t)=>{const n=se(),r=We(Y_,void 0),i=ee(()=>!!r),l=ee({get(){return i.value?r.modelValue:e.modelValue},set(h){i.value?r.changeEvent(h):t&&t(at,h),n.value.checked=e.modelValue===e.label}}),m=Un(ee(()=>r==null?void 0:r.size)),a=Oo(ee(()=>r==null?void 0:r.disabled)),o=se(!1),u=ee(()=>a.value||i.value&&l.value!==e.label?-1:0);return{radioRef:n,isGroup:i,radioGroup:r,focus:o,size:m,disabled:a,tabIndex:u,modelValue:l}},WD=["value","name","disabled"],YD={name:"ElRadio"},XD=Te({...YD,props:UD,emits:A1,setup(e,{emit:t}){const n=e,r=Ie("radio"),{radioRef:i,radioGroup:l,focus:m,size:a,disabled:o,modelValue:u}=P1(n,t);function h(){He(()=>t("change",u.value))}return(c,f)=>{var s;return V(),ce("label",{class:fe([C(r).b(),C(r).is("disabled",C(o)),C(r).is("focus",C(m)),C(r).is("bordered",c.border),C(r).is("checked",C(u)===c.label),C(r).m(C(a))])},[oe("span",{class:fe([C(r).e("input"),C(r).is("disabled",C(o)),C(r).is("checked",C(u)===c.label)])},[pt(oe("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":f[0]||(f[0]=d=>St(u)?u.value=d:null),class:fe(C(r).e("original")),value:c.label,name:c.name||((s=C(l))==null?void 0:s.name),disabled:C(o),type:"radio",onFocus:f[1]||(f[1]=d=>m.value=!0),onBlur:f[2]||(f[2]=d=>m.value=!1),onChange:h},null,42,WD),[[Tb,C(u)]]),oe("span",{class:fe(C(r).e("inner"))},null,2)],2),oe("span",{class:fe(C(r).e("label")),onKeydown:f[3]||(f[3]=Je(()=>{},["stop"]))},[Se(c.$slots,"default",{},()=>[Ne(Ae(c.label),1)])],34)],2)}}});var KD=Le(XD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const GD=Be({...O1,name:{type:String,default:""}}),qD=["value","name","disabled"],ZD={name:"ElRadioButton"},JD=Te({...ZD,props:GD,setup(e){const t=e,n=Ie("radio"),{radioRef:r,focus:i,size:l,disabled:m,modelValue:a,radioGroup:o}=P1(t),u=ee(()=>({backgroundColor:(o==null?void 0:o.fill)||"",borderColor:(o==null?void 0:o.fill)||"",boxShadow:o!=null&&o.fill?`-1px 0 0 0 ${o.fill}`:"",color:(o==null?void 0:o.textColor)||""}));return(h,c)=>{var f;return V(),ce("label",{class:fe([C(n).b("button"),C(n).is("active",C(a)===h.label),C(n).is("disabled",C(m)),C(n).is("focus",C(i)),C(n).bm("button",C(l))])},[pt(oe("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":c[0]||(c[0]=s=>St(a)?a.value=s:null),class:fe(C(n).be("button","original-radio")),value:h.label,type:"radio",name:h.name||((f=C(o))==null?void 0:f.name),disabled:C(m),onFocus:c[1]||(c[1]=s=>i.value=!0),onBlur:c[2]||(c[2]=s=>i.value=!1)},null,42,qD),[[Tb,C(a)]]),oe("span",{class:fe(C(n).be("button","inner")),style:Fe(C(a)===h.label?C(u):{}),onKeydown:c[3]||(c[3]=Je(()=>{},["stop"]))},[Se(h.$slots,"default",{},()=>[Ne(Ae(h.label),1)])],38)],2)}}});var I1=Le(JD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const QD=Be({id:{type:String,default:void 0},size:Oi,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:""},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0}}),e$=A1,t$=["id","aria-label","aria-labelledby"],n$={name:"ElRadioGroup"},r$=Te({...n$,props:QD,emits:e$,setup(e,{emit:t}){const n=e,r=Ie("radio"),i=Ai(),l=se(),{formItem:m}=Ri(),{inputId:a,isLabeledByFormItem:o}=ll(n,{formItemContext:m}),u=c=>{t(at,c),He(()=>t("change",c))};qe(()=>{const c=l.value.querySelectorAll("[type=radio]"),f=c[0];!Array.from(c).some(s=>s.checked)&&f&&(f.tabIndex=0)});const h=ee(()=>n.name||i.value);return st(Y_,_t({...zn(n),changeEvent:u,name:h})),xe(()=>n.modelValue,()=>{n.validateEvent&&(m==null||m.validate("change").catch(c=>void 0))}),(c,f)=>(V(),ce("div",{id:C(a),ref_key:"radioGroupRef",ref:l,class:fe(C(r).b("group")),role:"radiogroup","aria-label":C(o)?void 0:c.label||"radio-group","aria-labelledby":C(o)?C(m).labelId:void 0},[Se(c.$slots,"default")],10,t$))}});var M1=Le(r$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);vt(KD,{RadioButton:I1,RadioGroup:M1});const i$=Hn(M1),o$=Hn(I1),L1=Be({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:sl,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),a$={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},s$={name:"ElTag"},l$=Te({...s$,props:L1,emits:a$,setup(e,{emit:t}){const n=e,r=Un(),i=Ie("tag"),l=ee(()=>{const{type:o,hit:u,effect:h,closable:c,round:f}=n;return[i.b(),i.is("closable",c),i.m(o),i.m(r.value),i.m(h),i.is("hit",u),i.is("round",f)]}),m=o=>{t("close",o)},a=o=>{t("click",o)};return(o,u)=>o.disableTransitions?(V(),ce("span",{key:0,class:fe(C(l)),style:Fe({backgroundColor:o.color}),onClick:a},[oe("span",{class:fe(C(i).e("content"))},[Se(o.$slots,"default")],2),o.closable?(V(),_e(C(Re),{key:0,class:fe(C(i).e("close")),onClick:Je(m,["stop"])},{default:he(()=>[ue(C(yr))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)):(V(),_e(tn,{key:1,name:`${C(i).namespace.value}-zoom-in-center`,appear:""},{default:he(()=>[oe("span",{class:fe(C(l)),style:Fe({backgroundColor:o.color}),onClick:a},[oe("span",{class:fe(C(i).e("content"))},[Se(o.$slots,"default")],2),o.closable?(V(),_e(C(Re),{key:0,class:fe(C(i).e("close")),onClick:Je(m,["stop"])},{default:he(()=>[ue(C(yr))]),_:1},8,["class","onClick"])):be("v-if",!0)],6)]),_:3},8,["name"]))}});var u$=Le(l$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const c$=vt(u$),f$=Be({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:Oe([Number,Object]),default:()=>Ht({})},sm:{type:Oe([Number,Object]),default:()=>Ht({})},md:{type:Oe([Number,Object]),default:()=>Ht({})},lg:{type:Oe([Number,Object]),default:()=>Ht({})},xl:{type:Oe([Number,Object]),default:()=>Ht({})}}),d$={name:"ElCol"},h$=Te({...d$,props:f$,setup(e){const t=e,{gutter:n}=We(X_,{gutter:ee(()=>0)}),r=Ie("col"),i=ee(()=>{const m={};return n.value&&(m.paddingLeft=m.paddingRight=`${n.value/2}px`),m}),l=ee(()=>{const m=[];return["span","offset","pull","push"].forEach(u=>{const h=t[u];et(h)&&(u==="span"?m.push(r.b(`${t[u]}`)):h>0&&m.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{et(t[u])?m.push(r.b(`${u}-${t[u]}`)):Qe(t[u])&&Object.entries(t[u]).forEach(([h,c])=>{m.push(h!=="span"?r.b(`${u}-${h}-${c}`):r.b(`${u}-${c}`))})}),n.value&&m.push(r.is("guttered")),m});return(m,a)=>(V(),_e(yt(m.tag),{class:fe([C(r).b(),C(l)]),style:Fe(C(i))},{default:he(()=>[Se(m.$slots,"default")]),_:3},8,["class","style"]))}});var p$=Le(h$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const of=vt(p$),Bm=e=>typeof et(e),g$=Be({accordion:Boolean,modelValue:{type:Oe([Array,String,Number]),default:()=>Ht([])}}),v$={[at]:Bm,[nr]:Bm},m$={name:"ElCollapse"},y$=Te({...m$,props:g$,emits:v$,setup(e,{expose:t,emit:n}){const r=e,i=Ie("collapse"),l=se(Is(r.modelValue)),m=o=>{l.value=o;const u=r.accordion?l.value[0]:l.value;n(at,u),n(nr,u)},a=o=>{if(r.accordion)m([(l.value[0]||l.value[0]===0)&&l.value[0]===o?"":o]);else{const u=[...l.value],h=u.indexOf(o);h>-1?u.splice(h,1):u.push(o),m(u)}};return xe(()=>r.modelValue,()=>l.value=Is(r.modelValue),{deep:!0}),st(V_,{activeNames:l,handleItemClick:a}),t({activeNames:l,setActiveNames:m}),(o,u)=>(V(),ce("div",{class:fe(C(i).b()),role:"tablist","aria-multiselectable":"true"},[Se(o.$slots,"default")],2))}});var b$=Le(y$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse.vue"]]);const _$={name:"ElCollapseTransition"},w$=Te({..._$,setup(e){const t=Ie("collapse-transition"),n={beforeEnter(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0},enter(r){r.dataset.oldOverflow=r.style.overflow,r.scrollHeight!==0?(r.style.maxHeight=`${r.scrollHeight}px`,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom):(r.style.maxHeight=0,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom),r.style.overflow="hidden"},afterEnter(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow},beforeLeave(r){r.dataset||(r.dataset={}),r.dataset.oldPaddingTop=r.style.paddingTop,r.dataset.oldPaddingBottom=r.style.paddingBottom,r.dataset.oldOverflow=r.style.overflow,r.style.maxHeight=`${r.scrollHeight}px`,r.style.overflow="hidden"},leave(r){r.scrollHeight!==0&&(r.style.maxHeight=0,r.style.paddingTop=0,r.style.paddingBottom=0)},afterLeave(r){r.style.maxHeight="",r.style.overflow=r.dataset.oldOverflow,r.style.paddingTop=r.dataset.oldPaddingTop,r.style.paddingBottom=r.dataset.oldPaddingBottom}};return(r,i)=>(V(),_e(tn,gn({name:C(t).b()},iS(n)),{default:he(()=>[Se(r.$slots,"default")]),_:3},16,["name"]))}});var du=Le(w$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);du.install=e=>{e.component(du.name,du)};const R1=du,C$=Be({title:{type:String,default:""},name:{type:Oe([String,Number]),default:()=>up()},disabled:Boolean}),S$=["aria-expanded","aria-controls","aria-describedby"],x$=["id","tabindex","onKeypress"],T$=["id","aria-hidden","aria-labelledby"],k$={name:"ElCollapseItem"},E$=Te({...k$,props:C$,setup(e,{expose:t}){const n=e,r=We(V_),i=Ie("collapse"),l=se(!1),m=se(!1),a=se(up()),o=ee(()=>r==null?void 0:r.activeNames.value.includes(n.name)),u=()=>{setTimeout(()=>{m.value?m.value=!1:l.value=!0},50)},h=()=>{n.disabled||(r==null||r.handleItemClick(n.name),l.value=!1,m.value=!0)},c=()=>{r==null||r.handleItemClick(n.name)};return t({isActive:o}),(f,s)=>(V(),ce("div",{class:fe([C(i).b("item"),C(i).is("active",C(o)),C(i).is("disabled",f.disabled)])},[oe("div",{role:"tab","aria-expanded":C(o),"aria-controls":C(i).b(`content-${a.value}`),"aria-describedby":C(i).b(`content-${a.value}`)},[oe("div",{id:C(i).b(`head-${a.value}`),class:fe([C(i).be("item","header"),C(i).is("active",C(o)),{focusing:l.value&&!f.disabled}]),role:"button",tabindex:f.disabled?-1:0,onClick:h,onKeypress:Et(Je(c,["stop","prevent"]),["space","enter"]),onFocus:u,onBlur:s[0]||(s[0]=d=>l.value=!1)},[Se(f.$slots,"title",{},()=>[Ne(Ae(f.title),1)]),ue(C(Re),{class:fe([C(i).be("item","arrow"),C(i).is("active",C(o))])},{default:he(()=>[ue(C(ba))]),_:1},8,["class"])],42,x$)],8,S$),ue(C(R1),null,{default:he(()=>[pt(oe("div",{id:C(i).b(`content-${a.value}`),class:fe(C(i).be("item","wrap")),role:"tabpanel","aria-hidden":!C(o),"aria-labelledby":C(i).b(`head-${a.value}`)},[oe("div",{class:fe(C(i).be("item","content"))},[Se(f.$slots,"default")],2)],10,T$),[[Lt,C(o)]])]),_:3})],2))}});var D1=Le(E$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse/src/collapse-item.vue"]]);const O$=vt(b$,{CollapseItem:D1}),A$=Hn(D1);let af=!1;function Fs(e,t){if(!ot)return;const n=function(l){var m;(m=t.drag)==null||m.call(t,l)},r=function(l){var m;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,af=!1,(m=t.end)==null||m.call(t,l)},i=function(l){var m;af||(l.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),af=!0,(m=t.start)==null||m.call(t,l))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i)}const P$=Te({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=Ie("color-alpha-slider"),n=gt(),r=en(null),i=en(null),l=se(0),m=se(0),a=se(null);xe(()=>e.color.get("alpha"),()=>{s()}),xe(()=>e.color.value,()=>{s()});function o(){if(e.vertical)return 0;const d=n.vnode.el,v=e.color.get("alpha");return d?Math.round(v*(d.offsetWidth-r.value.offsetWidth/2)/100):0}function u(){const d=n.vnode.el;if(!e.vertical)return 0;const v=e.color.get("alpha");return d?Math.round(v*(d.offsetHeight-r.value.offsetHeight/2)/100):0}function h(){if(e.color&&e.color.value){const{r:d,g:v,b:g}=e.color.toRgb();return`linear-gradient(to right, rgba(${d}, ${v}, ${g}, 0) 0%, rgba(${d}, ${v}, ${g}, 1) 100%)`}return null}function c(d){d.target!==r.value&&f(d)}function f(d){const g=n.vnode.el.getBoundingClientRect(),{clientX:y,clientY:b}=lp(d);if(e.vertical){let _=b-g.top;_=Math.max(r.value.offsetHeight/2,_),_=Math.min(_,g.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((_-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*100))}else{let _=y-g.left;_=Math.max(r.value.offsetWidth/2,_),_=Math.min(_,g.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((_-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*100))}}function s(){l.value=o(),m.value=u(),a.value=h()}return qe(()=>{const d={drag:v=>{f(v)},end:v=>{f(v)}};Fs(i.value,d),Fs(r.value,d),s()}),{thumb:r,bar:i,thumbLeft:l,thumbTop:m,background:a,handleClick:c,update:s,ns:t}}});function I$(e,t,n,r,i,l){return V(),ce("div",{class:fe([e.ns.b(),e.ns.is("vertical",e.vertical)])},[oe("div",{ref:"bar",class:fe(e.ns.e("bar")),style:Fe({background:e.background}),onClick:t[0]||(t[0]=(...m)=>e.handleClick&&e.handleClick(...m))},null,6),oe("div",{ref:"thumb",class:fe(e.ns.e("thumb")),style:Fe({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var M$=Le(P$,[["render",I$],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const L$=Te({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ie("color-hue-slider"),n=gt(),r=se(null),i=se(null),l=se(0),m=se(0),a=ee(()=>e.color.get("hue"));xe(()=>a.value,()=>{f()});function o(s){s.target!==r.value&&u(s)}function u(s){const v=n.vnode.el.getBoundingClientRect(),{clientX:g,clientY:y}=lp(s);let b;if(e.vertical){let _=y-v.top;_=Math.min(_,v.height-r.value.offsetHeight/2),_=Math.max(r.value.offsetHeight/2,_),b=Math.round((_-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let _=g-v.left;_=Math.min(_,v.width-r.value.offsetWidth/2),_=Math.max(r.value.offsetWidth/2,_),b=Math.round((_-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}e.color.set("hue",b)}function h(){const s=n.vnode.el;if(e.vertical)return 0;const d=e.color.get("hue");return s?Math.round(d*(s.offsetWidth-r.value.offsetWidth/2)/360):0}function c(){const s=n.vnode.el;if(!e.vertical)return 0;const d=e.color.get("hue");return s?Math.round(d*(s.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){l.value=h(),m.value=c()}return qe(()=>{const s={drag:d=>{u(d)},end:d=>{u(d)}};Fs(i.value,s),Fs(r.value,s),f()}),{bar:i,thumb:r,thumbLeft:l,thumbTop:m,hueValue:a,handleClick:o,update:f,ns:t}}});function R$(e,t,n,r,i,l){return V(),ce("div",{class:fe([e.ns.b(),e.ns.is("vertical",e.vertical)])},[oe("div",{ref:"bar",class:fe(e.ns.e("bar")),onClick:t[0]||(t[0]=(...m)=>e.handleClick&&e.handleClick(...m))},null,2),oe("div",{ref:"thumb",class:fe(e.ns.e("thumb")),style:Fe({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var D$=Le(L$,[["render",R$],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const $1=Symbol(),$$=()=>We($1),Fm=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},B$=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},F$=function(e){return typeof e=="string"&&e.includes("%")},Zo=function(e,t){B$(e)&&(e="100%");const n=F$(e);return e=Math.min(t,Math.max(0,Number.parseFloat(`${e}`))),n&&(e=Number.parseInt(`${e*t}`,10)/100),Math.abs(e-t)<1e-6?1:e%t/Number.parseFloat(t)},zm={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},hu=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${zm[t]||t}${zm[n]||n}`},Nm=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${hu(e)}${hu(t)}${hu(n)}`},sf={A:10,B:11,C:12,D:13,E:14,F:15},Ni=function(e){return e.length===2?(sf[e[0].toUpperCase()]||+e[0])*16+(sf[e[1].toUpperCase()]||+e[1]):sf[e[1].toUpperCase()]||+e[1]},z$=function(e,t,n){t=t/100,n=n/100;let r=t;const i=Math.max(n,.01);n*=2,t*=n<=1?n:2-n,r*=i<=1?i:2-i;const l=(n+t)/2,m=n===0?2*r/(i+r):2*t/(n+t);return{h:e,s:m*100,v:l*100}},jm=function(e,t,n){e=Zo(e,255),t=Zo(t,255),n=Zo(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let l;const m=r,a=r-i,o=r===0?0:a/r;if(r===i)l=0;else{switch(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*360,s:o*100,v:m*100}},Na=function(e,t,n){e=Zo(e,360)*6,t=Zo(t,100),n=Zo(n,100);const r=Math.floor(e),i=e-r,l=n*(1-t),m=n*(1-i*t),a=n*(1-(1-i)*t),o=r%6,u=[n,m,l,l,a,n][o],h=[a,n,n,m,l,l][o],c=[l,l,a,n,n,m][o];return{r:Math.round(u*255),g:Math.round(h*255),b:Math.round(c*255)}};class ss{constructor(t){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="",t=t||{};for(const n in t)Ge(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)Ge(t,r)&&this.set(r,t[r]);return}this[`_${t}`]=n,this.doOnChange()}get(t){return t==="alpha"?Math.floor(this[`_${t}`]):this[`_${t}`]}toRgb(){return Na(this._hue,this._saturation,this._value)}fromString(t){if(!t){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,i,l)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,i)),this._value=Math.max(0,Math.min(100,l)),this.doOnChange()};if(t.includes("hsl")){const r=t.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:l,v:m}=z$(r[0],r[1],r[2]);n(i,l,m)}}else if(t.includes("hsv")){const r=t.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(t.includes("rgb")){const r=t.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,l)=>l>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:l,v:m}=jm(r[0],r[1],r[2]);n(i,l,m)}}else if(t.includes("#")){const r=t.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,l,m;r.length===3?(i=Ni(r[0]+r[0]),l=Ni(r[1]+r[1]),m=Ni(r[2]+r[2])):(r.length===6||r.length===8)&&(i=Ni(r.slice(0,2)),l=Ni(r.slice(2,4)),m=Ni(r.slice(4,6))),r.length===8?this._alpha=Ni(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:a,s:o,v:u}=jm(i,l,m);n(a,o,u)}}compare(t){return Math.abs(t._hue-this._hue)<2&&Math.abs(t._saturation-this._saturation)<1&&Math.abs(t._value-this._value)<1&&Math.abs(t._alpha-this._alpha)<1}doOnChange(){const{_hue:t,_saturation:n,_value:r,_alpha:i,format:l}=this;if(this.enableAlpha)switch(l){case"hsl":{const m=Fm(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(m[1]*100)}%, ${Math.round(m[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${t}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${Nm(Na(t,n,r))}${hu(i*255/100)}`;break}default:{const{r:m,g:a,b:o}=Na(t,n,r);this.value=`rgba(${m}, ${a}, ${o}, ${this.get("alpha")/100})`}}else switch(l){case"hsl":{const m=Fm(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(m[1]*100)}%, ${Math.round(m[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:m,g:a,b:o}=Na(t,n,r);this.value=`rgb(${m}, ${a}, ${o})`;break}default:this.value=Nm(Na(t,n,r))}}}const N$=Te({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Ie("color-predefine"),{currentColor:n}=$$(),r=se(l(e.colors,e.color));xe(()=>n.value,m=>{const a=new ss;a.fromString(m),r.value.forEach(o=>{o.selected=a.compare(o)})}),xo(()=>{r.value=l(e.colors,e.color)});function i(m){e.color.fromString(e.colors[m])}function l(m,a){return m.map(o=>{const u=new ss;return u.enableAlpha=!0,u.format="rgba",u.fromString(o),u.selected=u.value===a.value,u})}return{rgbaColors:r,handleSelect:i,ns:t}}}),j$=["onClick"];function V$(e,t,n,r,i,l){return V(),ce("div",{class:fe(e.ns.b())},[oe("div",{class:fe(e.ns.e("colors"))},[(V(!0),ce(ze,null,Rt(e.rgbaColors,(m,a)=>(V(),ce("div",{key:e.colors[a],class:fe([e.ns.e("color-selector"),e.ns.is("alpha",m._alpha<100),{selected:m.selected}]),onClick:o=>e.handleSelect(a)},[oe("div",{style:Fe({backgroundColor:m.value})},null,4)],10,j$))),128))],2)],2)}var H$=Le(N$,[["render",V$],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const U$=Te({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ie("color-svpanel"),n=gt(),r=se(0),i=se(0),l=se("hsl(0, 100%, 50%)"),m=ee(()=>{const u=e.color.get("hue"),h=e.color.get("value");return{hue:u,value:h}});function a(){const u=e.color.get("saturation"),h=e.color.get("value"),c=n.vnode.el,{clientWidth:f,clientHeight:s}=c;i.value=u*f/100,r.value=(100-h)*s/100,l.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function o(u){const c=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:s}=lp(u);let d=f-c.left,v=s-c.top;d=Math.max(0,d),d=Math.min(d,c.width),v=Math.max(0,v),v=Math.min(v,c.height),i.value=d,r.value=v,e.color.set({saturation:d/c.width*100,value:100-v/c.height*100})}return xe(()=>m.value,()=>{a()}),qe(()=>{Fs(n.vnode.el,{drag:u=>{o(u)},end:u=>{o(u)}}),a()}),{cursorTop:r,cursorLeft:i,background:l,colorValue:m,handleDrag:o,update:a,ns:t}}}),W$=oe("div",null,null,-1),Y$=[W$];function X$(e,t,n,r,i,l){return V(),ce("div",{class:fe(e.ns.b()),style:Fe({backgroundColor:e.background})},[oe("div",{class:fe(e.ns.e("white"))},null,2),oe("div",{class:fe(e.ns.e("black"))},null,2),oe("div",{class:fe(e.ns.e("cursor")),style:Fe({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},Y$,6)],6)}var K$=Le(U$,[["render",X$],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const G$=Te({name:"ElColorPicker",components:{ElButton:dt,ElTooltip:Sr,ElInput:Ao,ElIcon:Re,Close:yr,ArrowDown:mc,SvPanel:K$,HueSlider:D$,AlphaSlider:M$,Predefine:H$},directives:{ClickOutside:k1},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:kc},popperClass:String,label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},predefine:Array,validateEvent:{type:Boolean,default:!0}},emits:["change","active-change",at],setup(e,{emit:t}){const{t:n}=nn(),r=Ie("color"),{form:i,formItem:l}=Ri(),{inputId:m,isLabeledByFormItem:a}=ll(e,{formItemContext:l}),o=se(),u=se(),h=se(),c=se(null);let f=!0;const s=_t(new ss({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),d=se(!1),v=se(!1),g=se(""),y=ee(()=>!e.modelValue&&!v.value?"transparent":T(s,e.showAlpha)),b=Un(),_=ee(()=>!!(e.disabled||(i==null?void 0:i.disabled))),w=ee(()=>!e.modelValue&&!v.value?"":s.value),S=ee(()=>a.value?void 0:e.label||n("el.colorpicker.defaultLabel")),x=ee(()=>a.value?l==null?void 0:l.labelId:void 0);xe(()=>e.modelValue,te=>{te?te&&te!==s.value&&(f=!1,s.fromString(te)):v.value=!1}),xe(()=>w.value,te=>{g.value=te,f&&t("active-change",te),f=!0}),xe(()=>s.value,()=>{!e.modelValue&&!v.value&&(v.value=!0)});function T(te,Q){if(!(te instanceof ss))throw new TypeError("color should be instance of _color Class");const{r:le,g:I,b:z}=te.toRgb();return Q?`rgba(${le}, ${I}, ${z}, ${te.get("alpha")/100})`:`rgb(${le}, ${I}, ${z})`}function O(te){d.value=te}const A=aa(O,100);function $(){A(!1),j()}function j(){He(()=>{e.modelValue?s.fromString(e.modelValue):(s.value="",He(()=>{v.value=!1}))})}function R(){_.value||A(!d.value)}function F(){s.fromString(g.value)}function E(){const te=s.value;t(at,te),t("change",te),e.validateEvent&&(l==null||l.validate("change").catch(Q=>void 0)),A(!1),He(()=>{const Q=new ss({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});s.compare(Q)||j()})}function W(){A(!1),t(at,null),t("change",null),e.modelValue!==null&&e.validateEvent&&(l==null||l.validate("change").catch(te=>void 0)),j()}return qe(()=>{e.modelValue&&(g.value=w.value)}),xe(()=>d.value,()=>{He(()=>{var te,Q,le;(te=o.value)==null||te.update(),(Q=u.value)==null||Q.update(),(le=h.value)==null||le.update()})}),st($1,{currentColor:w}),{color:s,colorDisabled:_,colorSize:b,displayedColor:y,showPanelColor:v,showPicker:d,customInput:g,buttonId:m,buttonAriaLabel:S,buttonAriaLabelledby:x,handleConfirm:F,hide:$,handleTrigger:R,clear:W,confirmValue:E,t:n,ns:r,hue:o,svPanel:u,alpha:h,popper:c}}}),q$=["id","aria-label","aria-labelledby","aria-description","tabindex"];function Z$(e,t,n,r,i,l){const m=ft("hue-slider"),a=ft("sv-panel"),o=ft("alpha-slider"),u=ft("predefine"),h=ft("el-input"),c=ft("el-button"),f=ft("arrow-down"),s=ft("el-icon"),d=ft("close"),v=ft("el-tooltip"),g=eb("click-outside");return V(),_e(v,{ref:"popper",visible:e.showPicker,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[e.ns.be("picker","panel"),e.ns.b("dropdown"),e.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",transition:`${e.ns.namespace.value}-zoom-in-top`,persistent:""},{content:he(()=>[pt((V(),ce("div",null,[oe("div",{class:fe(e.ns.be("dropdown","main-wrapper"))},[ue(m,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),ue(a,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(V(),_e(o,{key:0,ref:"alpha",color:e.color},null,8,["color"])):be("v-if",!0),e.predefine?(V(),_e(u,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):be("v-if",!0),oe("div",{class:fe(e.ns.be("dropdown","btns"))},[oe("span",{class:fe(e.ns.be("dropdown","value"))},[ue(h,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=y=>e.customInput=y),"validate-event":!1,size:"small",onKeyup:Et(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),ue(c,{class:fe(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:he(()=>[Ne(Ae(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),ue(c,{plain:"",size:"small",class:fe(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:he(()=>[Ne(Ae(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[g,e.hide]])]),default:he(()=>[oe("div",{id:e.buttonId,class:fe([e.ns.b("picker"),e.ns.is("disabled",e.colorDisabled),e.ns.bm("picker",e.colorSize)]),role:"button","aria-label":e.buttonAriaLabel,"aria-labelledby":e.buttonAriaLabelledby,"aria-description":e.t("el.colorpicker.description",{color:e.modelValue||""}),tabindex:e.tabindex,onKeydown:t[2]||(t[2]=Et((...y)=>e.handleTrigger&&e.handleTrigger(...y),["enter"]))},[e.colorDisabled?(V(),ce("div",{key:0,class:fe(e.ns.be("picker","mask"))},null,2)):be("v-if",!0),oe("div",{class:fe(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...y)=>e.handleTrigger&&e.handleTrigger(...y))},[oe("span",{class:fe([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[oe("span",{class:fe(e.ns.be("picker","color-inner")),style:Fe({backgroundColor:e.displayedColor})},[pt(ue(s,{class:fe([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:he(()=>[ue(f)]),_:1},8,["class"]),[[Lt,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(V(),_e(s,{key:0,class:fe([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:he(()=>[ue(d)]),_:1},8,["class"])):be("v-if",!0)],6)],2)],2)],42,q$)]),_:1},8,["visible","popper-class","transition"])}var pu=Le(G$,[["render",Z$],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);pu.install=e=>{e.component(pu.name,pu)};const J$=pu,Q$=J$,xd={},eB=Be({a11y:{type:Boolean,default:!0},locale:{type:Oe(Object)},size:Oi,button:{type:Oe(Object)},experimentalFeatures:{type:Oe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Oe(Object)},zIndex:Number,namespace:{type:String,default:"el"}});Te({name:"ElConfigProvider",props:eB,setup(e,{slots:t}){xe(()=>e.message,r=>{Object.assign(xd,r!=null?r:{})},{immediate:!0,deep:!0});const n=eM(e);return()=>Se(t,"default",{config:n==null?void 0:n.value})}});const tB=Be({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Oe([String,Array,Object])},zIndex:{type:Oe([String,Number])}}),nB={click:e=>e instanceof MouseEvent};var rB=Te({name:"ElOverlay",props:tB,emits:nB,setup(e,{slots:t,emit:n}){const r=Ie("overlay"),i=o=>{n("click",o)},{onClick:l,onMousedown:m,onMouseup:a}=fp(e.customMaskEvent?void 0:i);return()=>e.mask?ue("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:m,onMouseup:a},[Se(t,"default")],cu.STYLE|cu.CLASS|cu.PROPS,["onClick","onMouseup","onMousedown"]):ht("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Se(t,"default")])}});const B1=rB,F1=Be({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Bt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),iB={close:()=>!0},oB=["aria-label"],aB=["id"],sB={name:"ElDialogContent"},lB=Te({...sB,props:F1,emits:iB,setup(e){const t=e,{t:n}=nn(),{Close:r}=UI,{dialogRef:i,headerRef:l,bodyId:m,ns:a,style:o}=We(U_),{focusTrapRef:u}=We(w1),h=KI(u,i),c=ee(()=>t.draggable);return Q_(i,l,c),(f,s)=>(V(),ce("div",{ref:C(h),class:fe([C(a).b(),C(a).is("fullscreen",f.fullscreen),C(a).is("draggable",C(c)),C(a).is("align-center",f.alignCenter),{[C(a).m("center")]:f.center},f.customClass]),style:Fe(C(o)),tabindex:"-1",onClick:s[1]||(s[1]=Je(()=>{},["stop"]))},[oe("header",{ref_key:"headerRef",ref:l,class:fe(C(a).e("header"))},[Se(f.$slots,"header",{},()=>[oe("span",{role:"heading",class:fe(C(a).e("title"))},Ae(f.title),3)]),f.showClose?(V(),ce("button",{key:0,"aria-label":C(n)("el.dialog.close"),class:fe(C(a).e("headerbtn")),type:"button",onClick:s[0]||(s[0]=d=>f.$emit("close"))},[ue(C(Re),{class:fe(C(a).e("close"))},{default:he(()=>[(V(),_e(yt(f.closeIcon||C(r))))]),_:1},8,["class"])],10,oB)):be("v-if",!0)],2),oe("div",{id:C(m),class:fe(C(a).e("body"))},[Se(f.$slots,"default")],10,aB),f.$slots.footer?(V(),ce("footer",{key:0,class:fe(C(a).e("footer"))},[Se(f.$slots,"footer")],2)):be("v-if",!0)],6))}});var uB=Le(lB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const cB=Be({...F1,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Oe(Function)},destroyOnClose:{type:Boolean,default:!1},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:{type:Boolean,default:!1},modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1}}),fB={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[at]:e=>Pn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},dB=(e,t)=>{const r=gt().emit,{nextZIndex:i}=ul();let l="";const m=Ai(),a=Ai(),o=se(!1),u=se(!1),h=se(!1),c=se(e.zIndex||i());let f,s;const d=ei("namespace",Oc),v=ee(()=>{const F={},E=`--${d.value}-dialog`;return e.fullscreen||(e.top&&(F[`${E}-margin-top`]=e.top),e.width&&(F[`${E}-width`]=_r(e.width))),F}),g=ee(()=>e.alignCenter?{display:"flex"}:{});function y(){r("opened")}function b(){r("closed"),r(at,!1),e.destroyOnClose&&(h.value=!1)}function _(){r("close")}function w(){s==null||s(),f==null||f(),e.openDelay&&e.openDelay>0?{stop:f}=Ls(()=>O(),e.openDelay):O()}function S(){f==null||f(),s==null||s(),e.closeDelay&&e.closeDelay>0?{stop:s}=Ls(()=>A(),e.closeDelay):A()}function x(){function F(E){E||(u.value=!0,o.value=!1)}e.beforeClose?e.beforeClose(F):S()}function T(){e.closeOnClickModal&&x()}function O(){!ot||(o.value=!0)}function A(){o.value=!1}function $(){r("openAutoFocus")}function j(){r("closeAutoFocus")}e.lockScroll&&e1(o);function R(){e.closeOnPressEscape&&x()}return xe(()=>e.modelValue,F=>{F?(u.value=!1,w(),h.value=!0,c.value=e.zIndex?c.value++:i(),He(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):o.value&&S()}),xe(()=>e.fullscreen,F=>{!t.value||(F?(l=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=l)}),qe(()=>{e.modelValue&&(o.value=!0,h.value=!0,w())}),{afterEnter:y,afterLeave:b,beforeLeave:_,handleClose:x,onModalClick:T,close:S,doClose:A,onOpenAutoFocus:$,onCloseAutoFocus:j,onCloseRequested:R,titleId:m,bodyId:a,closed:u,style:v,overlayDialogStyle:g,rendered:h,visible:o,zIndex:c}},hB=["aria-label","aria-labelledby","aria-describedby"],pB={name:"ElDialog",inheritAttrs:!1},gB=Te({...pB,props:cB,emits:fB,setup(e,{expose:t}){const n=e,r=ma();Rs({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"},ee(()=>!!r.title)),Rs({scope:"el-dialog",from:"custom-class",replacement:"class",version:"2.3.0",ref:"https://element-plus.org/en-US/component/dialog.html#attributes",type:"Attribute"},ee(()=>!!n.customClass));const i=Ie("dialog"),l=se(),m=se(),a=se(),{visible:o,titleId:u,bodyId:h,style:c,overlayDialogStyle:f,rendered:s,zIndex:d,afterEnter:v,afterLeave:g,beforeLeave:y,handleClose:b,onModalClick:_,onOpenAutoFocus:w,onCloseAutoFocus:S,onCloseRequested:x}=dB(n,l);st(U_,{dialogRef:l,headerRef:m,bodyId:h,ns:i,rendered:s,style:c});const T=fp(_),O=ee(()=>n.draggable&&!n.fullscreen);return t({visible:o,dialogContentRef:a}),(A,$)=>(V(),_e(Fh,{to:"body",disabled:!A.appendToBody},[ue(tn,{name:"dialog-fade",onAfterEnter:C(v),onAfterLeave:C(g),onBeforeLeave:C(y),persisted:""},{default:he(()=>[pt(ue(C(B1),{"custom-mask-event":"",mask:A.modal,"overlay-class":A.modalClass,"z-index":C(d)},{default:he(()=>[oe("div",{role:"dialog","aria-modal":"true","aria-label":A.title||void 0,"aria-labelledby":A.title?void 0:C(u),"aria-describedby":C(h),class:fe(`${C(i).namespace.value}-overlay-dialog`),style:Fe(C(f)),onClick:$[0]||($[0]=(...j)=>C(T).onClick&&C(T).onClick(...j)),onMousedown:$[1]||($[1]=(...j)=>C(T).onMousedown&&C(T).onMousedown(...j)),onMouseup:$[2]||($[2]=(...j)=>C(T).onMouseup&&C(T).onMouseup(...j))},[ue(C(_p),{loop:"",trapped:C(o),"focus-start-el":"container",onFocusAfterTrapped:C(w),onFocusAfterReleased:C(S),onReleaseRequested:C(x)},{default:he(()=>[C(s)?(V(),_e(uB,gn({key:0,ref_key:"dialogContentRef",ref:a},A.$attrs,{"custom-class":A.customClass,center:A.center,"align-center":A.alignCenter,"close-icon":A.closeIcon,draggable:C(O),fullscreen:A.fullscreen,"show-close":A.showClose,title:A.title,onClose:C(b)}),Au({header:he(()=>[A.$slots.title?Se(A.$slots,"title",{key:1}):Se(A.$slots,"header",{key:0,close:C(b),titleId:C(u),titleClass:C(i).e("title")})]),default:he(()=>[Se(A.$slots,"default")]),_:2},[A.$slots.footer?{name:"footer",fn:he(()=>[Se(A.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):be("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,hB)]),_:3},8,["mask","overlay-class","z-index"]),[[Lt,C(o)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var vB=Le(gB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const mB=vt(vB),yB=Be({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Oe(String),default:"solid"}}),bB={name:"ElDivider"},_B=Te({...bB,props:yB,setup(e){const t=e,n=Ie("divider"),r=ee(()=>n.cssVar({"border-style":t.borderStyle}));return(i,l)=>(V(),ce("div",{class:fe([C(n).b(),C(n).m(i.direction)]),style:Fe(C(r)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(V(),ce("div",{key:0,class:fe([C(n).e("text"),C(n).is(i.contentPosition)])},[Se(i.$slots,"default")],2)):be("v-if",!0)],6))}});var wB=Le(_B,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const CB=vt(wB),SB={inheritAttrs:!1};function xB(e,t,n,r,i,l){return Se(e.$slots,"default")}var TB=Le(SB,[["render",xB],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const kB={name:"ElCollectionItem",inheritAttrs:!1};function EB(e,t,n,r,i,l){return Se(e.$slots,"default")}var OB=Le(kB,[["render",EB],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const AB="data-el-collection-item",PB=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),i=Symbol(n),l={...TB,name:t,setup(){const a=se(null),o=new Map;st(r,{itemMap:o,getItems:()=>{const h=C(a);if(!h)return[];const c=Array.from(h.querySelectorAll(`[${AB}]`));return[...o.values()].sort((s,d)=>c.indexOf(s.ref)-c.indexOf(d.ref))},collectionRef:a})}},m={...OB,name:n,setup(a,{attrs:o}){const u=se(null),h=We(r,void 0);st(i,{collectionItemRef:u}),qe(()=>{const c=C(u);c&&h.itemMap.set(c,{ref:c,...o})}),Nt(()=>{const c=C(u);h.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:l,ElCollectionItem:m}},lf=Be({trigger:Bs.trigger,effect:{...Dn.effect,default:"light"},type:{type:Oe(String)},placement:{type:Oe(String),default:"bottom"},popperOptions:{type:Oe(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:Oe([Number,String]),default:0},maxHeight:{type:Oe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Oe(Object)}});Be({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Bt}});Be({onKeydown:{type:Oe(Function)}});PB("Dropdown");let IB=0;const MB=Te({name:"ImgEmpty",setup(){return{ns:Ie("empty"),id:++IB}}}),LB={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},RB=["id"],DB=["stop-color"],$B=["stop-color"],BB=["id"],FB=["stop-color"],zB=["stop-color"],NB=["id"],jB={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},VB={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},HB={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},UB=["fill"],WB=["fill"],YB={id:"Group-Copy",transform:"translate(34.500000, 31.500000) scale(-1, 1) rotate(-25.000000) translate(-34.500000, -31.500000) translate(7.000000, 10.000000)"},XB=["fill"],KB=["fill"],GB=["fill"],qB=["fill"],ZB=["fill"],JB={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},QB=["fill","xlink:href"],eF=["fill","mask"],tF=["fill"];function nF(e,t,n,r,i,l){return V(),ce("svg",LB,[oe("defs",null,[oe("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[oe("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,DB),oe("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,$B)],8,RB),oe("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[oe("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,FB),oe("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,zB)],8,BB),oe("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,NB)]),oe("g",jB,[oe("g",VB,[oe("g",HB,[oe("path",{id:"Oval-Copy-2",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(${e.ns.cssVarBlockName("fill-color-3")})`},null,8,UB),oe("polygon",{id:"Rectangle-Copy-14",fill:`var(${e.ns.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,WB),oe("g",YB,[oe("polygon",{id:"Rectangle-Copy-10",fill:`var(${e.ns.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,XB),oe("polygon",{id:"Rectangle-Copy-11",fill:`var(${e.ns.cssVarBlockName("fill-color-5")})`,points:"-3.69149156e-15 7 38 7 38 43 -3.69149156e-15 43"},null,8,KB),oe("rect",{id:"Rectangle-Copy-12",fill:`url(#linearGradient-1-${e.id})`,transform:"translate(46.500000, 25.000000) scale(-1, 1) translate(-46.500000, -25.000000) ",x:"38",y:"7",width:"17",height:"36"},null,8,GB),oe("polygon",{id:"Rectangle-Copy-13",fill:`var(${e.ns.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,qB)]),oe("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,ZB),oe("g",JB,[oe("use",{id:"Mask",fill:`var(${e.ns.cssVarBlockName("fill-color-8")})`,transform:"translate(8.500000, 18.000000) scale(-1, 1) translate(-8.500000, -18.000000) ","xlink:href":`#path-3-${e.id}`},null,8,QB),oe("polygon",{id:"Rectangle-Copy",fill:`var(${e.ns.cssVarBlockName("fill-color-9")})`,mask:`url(#mask-4-${e.id})`,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,eF)]),oe("polygon",{id:"Rectangle-Copy-18",fill:`var(${e.ns.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,tF)])])])])}var rF=Le(MB,[["render",nF],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const iF={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},oF=["src"],aF={key:1},sF={name:"ElEmpty"},lF=Te({...sF,props:iF,setup(e){const t=e,{t:n}=nn(),r=Ie("empty"),i=ee(()=>t.description||n("el.table.emptyText")),l=ee(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(m,a)=>(V(),ce("div",{class:fe(C(r).b())},[oe("div",{class:fe(C(r).e("image")),style:Fe(C(l))},[m.image?(V(),ce("img",{key:0,src:m.image,ondragstart:"return false"},null,8,oF)):Se(m.$slots,"image",{key:1},()=>[ue(rF)])],6),oe("div",{class:fe(C(r).e("description"))},[m.$slots.description?Se(m.$slots,"description",{key:0}):(V(),ce("p",aF,Ae(C(i)),1))],2),m.$slots.default?(V(),ce("div",{key:0,class:fe(C(r).e("bottom"))},[Se(m.$slots,"default")],2)):be("v-if",!0)],2))}});var uF=Le(lF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const cF=vt(uF),fF=Be({model:Object,rules:{type:Oe(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},size:{type:String,values:sl},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),dF={validate:(e,t,n)=>(je(e)||Ye(e))&&Pn(t)&&Ye(n)};function hF(){const e=se([]),t=ee(()=>{if(!e.value.length)return"0";const l=Math.max(...e.value);return l?`${l}px`:""});function n(l){return e.value.indexOf(l)}function r(l,m){if(l&&m){const a=n(m);e.value.splice(a,1,l)}else l&&e.value.push(l)}function i(l){const m=n(l);m>-1&&e.value.splice(m,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const Fl=(e,t)=>{const n=Is(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},pF={name:"ElForm"},gF=Te({...pF,props:fF,emits:dF,setup(e,{expose:t,emit:n}){const r=e,i=[],l=Un(),m=Ie("form"),a=ee(()=>{const{labelPosition:b,inline:_}=r;return[m.b(),m.m(l.value||"default"),{[m.m(`label-${b}`)]:b,[m.m("inline")]:_}]}),o=b=>{i.push(b)},u=b=>{b.prop&&i.splice(i.indexOf(b),1)},h=(b=[])=>{!r.model||Fl(i,b).forEach(_=>_.resetField())},c=(b=[])=>{Fl(i,b).forEach(_=>_.clearValidate())},f=ee(()=>!!r.model),s=b=>{if(i.length===0)return[];const _=Fl(i,b);return _.length?_:[]},d=async b=>g(void 0,b),v=async(b=[])=>{if(!f.value)return!1;const _=s(b);if(_.length===0)return!0;let w={};for(const S of _)try{await S.validate("")}catch(x){w={...w,...x}}return Object.keys(w).length===0?!0:Promise.reject(w)},g=async(b=[],_)=>{const w=!Ve(_);try{const S=await v(b);return S===!0&&(_==null||_(S)),S}catch(S){const x=S;return r.scrollToError&&y(Object.keys(x)[0]),_==null||_(!1,x),w&&Promise.reject(x)}},y=b=>{var _;const w=Fl(i,b)[0];w&&((_=w.$el)==null||_.scrollIntoView())};return xe(()=>r.rules,()=>{r.validateOnRuleChange&&d().catch(b=>void 0)},{deep:!0}),st(Ca,_t({...zn(r),emit:n,resetFields:h,clearValidate:c,validateField:g,addField:o,removeField:u,...hF()})),t({validate:d,validateField:g,resetFields:h,clearValidate:c,scrollToField:y}),(b,_)=>(V(),ce("form",{class:fe(C(a))},[Se(b.$slots,"default")],2))}});var vF=Le(gF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function Qi(){return Qi=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},Qi.apply(this,arguments)}function mF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zs(e,t)}function Td(e){return Td=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Td(e)}function zs(e,t){return zs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},zs(e,t)}function yF(){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 gu(e,t,n){return yF()?gu=Reflect.construct.bind():gu=function(i,l,m){var a=[null];a.push.apply(a,l);var o=Function.bind.apply(i,a),u=new o;return m&&zs(u,m.prototype),u},gu.apply(null,arguments)}function bF(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function kd(e){var t=typeof Map=="function"?new Map:void 0;return kd=function(r){if(r===null||!bF(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 gu(r,arguments,Td(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),zs(i,r)},kd(e)}var _F=/%[sdj%]/g,wF=function(){};typeof process<"u"&&process.env;function Ed(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 En(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 m=e.replace(_F,function(a){if(a==="%%")return"%";if(i>=l)return a;switch(a){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 a}});return m}return e}function CF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function zt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||CF(t)&&typeof e=="string"&&!e)}function SF(e,t,n){var r=[],i=0,l=e.length;function m(a){r.push.apply(r,a||[]),i++,i===l&&n(r)}e.forEach(function(a){t(a,m)})}function Vm(e,t,n){var r=0,i=e.length;function l(m){if(m&&m.length){n(m);return}var a=r;r=r+1,a<i?t(e[a],l):n([])}l([])}function xF(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var Hm=function(e){mF(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}(kd(Error));function TF(e,t,n,r,i){if(t.first){var l=new Promise(function(f,s){var d=function(y){return r(y),y.length?s(new Hm(y,Ed(y))):f(i)},v=xF(e);Vm(v,n,d)});return l.catch(function(f){return f}),l}var m=t.firstFields===!0?Object.keys(e):t.firstFields||[],a=Object.keys(e),o=a.length,u=0,h=[],c=new Promise(function(f,s){var d=function(g){if(h.push.apply(h,g),u++,u===o)return r(h),h.length?s(new Hm(h,Ed(h))):f(i)};a.length||(r(h),f(i)),a.forEach(function(v){var g=e[v];m.indexOf(v)!==-1?Vm(g,n,d):SF(g,n,d)})});return c.catch(function(f){return f}),c}function kF(e){return!!(e&&e.message!==void 0)}function EF(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function Um(e,t){return function(n){var r;return e.fullFields?r=EF(t,e.fullFields):r=t[n.field||e.fullField],kF(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 Wm(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]=Qi({},e[n],r):e[n]=r}}return e}var z1=function(t,n,r,i,l,m){t.required&&(!r.hasOwnProperty(t.field)||zt(n,m||t.type))&&i.push(En(l.messages.required,t.fullField))},OF=function(t,n,r,i,l){(/^\s+$/.test(n)||n==="")&&i.push(En(l.messages.whitespace,t.fullField))},zl,AF=function(){if(zl)return zl;var e="[a-fA-F\\d:]",t=function(w){return w&&w.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+"$)"),m=new RegExp("^"+n+"$"),a=new RegExp("^"+i+"$"),o=function(w){return w&&w.exact?l:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+i+t(w)+")","g")};o.v4=function(_){return _&&_.exact?m:new RegExp(""+t(_)+n+t(_),"g")},o.v6=function(_){return _&&_.exact?a:new RegExp(""+t(_)+i+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",h="(?:\\S+(?::\\S*)?@)?",c=o.v4().source,f=o.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,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+h+"(?:localhost|"+c+"|"+f+"|"+s+d+v+")"+g+y;return zl=new RegExp("(?:^"+b+"$)","i"),zl},Ym={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},Wa={integer:function(t){return Wa.number(t)&&parseInt(t,10)===t},float:function(t){return Wa.number(t)&&!Wa.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"&&!Wa.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Ym.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(AF())},hex:function(t){return typeof t=="string"&&!!t.match(Ym.hex)}},PF=function(t,n,r,i,l){if(t.required&&n===void 0){z1(t,n,r,i,l);return}var m=["integer","float","array","regexp","object","method","email","number","date","url","hex"],a=t.type;m.indexOf(a)>-1?Wa[a](n)||i.push(En(l.messages.types[a],t.fullField,t.type)):a&&typeof n!==t.type&&i.push(En(l.messages.types[a],t.fullField,t.type))},IF=function(t,n,r,i,l){var m=typeof t.len=="number",a=typeof t.min=="number",o=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,h=n,c=null,f=typeof n=="number",s=typeof n=="string",d=Array.isArray(n);if(f?c="number":s?c="string":d&&(c="array"),!c)return!1;d&&(h=n.length),s&&(h=n.replace(u,"_").length),m?h!==t.len&&i.push(En(l.messages[c].len,t.fullField,t.len)):a&&!o&&h<t.min?i.push(En(l.messages[c].min,t.fullField,t.min)):o&&!a&&h>t.max?i.push(En(l.messages[c].max,t.fullField,t.max)):a&&o&&(h<t.min||h>t.max)&&i.push(En(l.messages[c].range,t.fullField,t.min,t.max))},Bo="enum",MF=function(t,n,r,i,l){t[Bo]=Array.isArray(t[Bo])?t[Bo]:[],t[Bo].indexOf(n)===-1&&i.push(En(l.messages[Bo],t.fullField,t[Bo].join(", ")))},LF=function(t,n,r,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(En(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var m=new RegExp(t.pattern);m.test(n)||i.push(En(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},tt={required:z1,whitespace:OF,type:PF,range:IF,enum:MF,pattern:LF},RF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n,"string")&&!t.required)return r();tt.required(t,n,i,m,l,"string"),zt(n,"string")||(tt.type(t,n,i,m,l),tt.range(t,n,i,m,l),tt.pattern(t,n,i,m,l),t.whitespace===!0&&tt.whitespace(t,n,i,m,l))}r(m)},DF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n)&&!t.required)return r();tt.required(t,n,i,m,l),n!==void 0&&tt.type(t,n,i,m,l)}r(m)},$F=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n===""&&(n=void 0),zt(n)&&!t.required)return r();tt.required(t,n,i,m,l),n!==void 0&&(tt.type(t,n,i,m,l),tt.range(t,n,i,m,l))}r(m)},BF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n)&&!t.required)return r();tt.required(t,n,i,m,l),n!==void 0&&tt.type(t,n,i,m,l)}r(m)},FF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n)&&!t.required)return r();tt.required(t,n,i,m,l),zt(n)||tt.type(t,n,i,m,l)}r(m)},zF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n)&&!t.required)return r();tt.required(t,n,i,m,l),n!==void 0&&(tt.type(t,n,i,m,l),tt.range(t,n,i,m,l))}r(m)},NF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n)&&!t.required)return r();tt.required(t,n,i,m,l),n!==void 0&&(tt.type(t,n,i,m,l),tt.range(t,n,i,m,l))}r(m)},jF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(n==null&&!t.required)return r();tt.required(t,n,i,m,l,"array"),n!=null&&(tt.type(t,n,i,m,l),tt.range(t,n,i,m,l))}r(m)},VF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n)&&!t.required)return r();tt.required(t,n,i,m,l),n!==void 0&&tt.type(t,n,i,m,l)}r(m)},HF="enum",UF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n)&&!t.required)return r();tt.required(t,n,i,m,l),n!==void 0&&tt[HF](t,n,i,m,l)}r(m)},WF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n,"string")&&!t.required)return r();tt.required(t,n,i,m,l),zt(n,"string")||tt.pattern(t,n,i,m,l)}r(m)},YF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n,"date")&&!t.required)return r();if(tt.required(t,n,i,m,l),!zt(n,"date")){var o;n instanceof Date?o=n:o=new Date(n),tt.type(t,o,i,m,l),o&&tt.range(t,o.getTime(),i,m,l)}}r(m)},XF=function(t,n,r,i,l){var m=[],a=Array.isArray(n)?"array":typeof n;tt.required(t,n,i,m,l,a),r(m)},uf=function(t,n,r,i,l){var m=t.type,a=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(zt(n,m)&&!t.required)return r();tt.required(t,n,i,a,l,m),zt(n,m)||tt.type(t,n,i,a,l)}r(a)},KF=function(t,n,r,i,l){var m=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(zt(n)&&!t.required)return r();tt.required(t,n,i,m,l)}r(m)},ls={string:RF,method:DF,number:$F,boolean:BF,regexp:FF,integer:zF,float:NF,array:jF,object:VF,enum:UF,pattern:WF,date:YF,url:uf,hex:uf,email:uf,required:XF,any:KF};function Od(){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 Ad=Od(),dl=function(){function e(n){this.rules=null,this._messages=Ad,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 m=r[l];i.rules[l]=Array.isArray(m)?m:[m]})},t.messages=function(r){return r&&(this._messages=Wm(Od(),r)),this._messages},t.validate=function(r,i,l){var m=this;i===void 0&&(i={}),l===void 0&&(l=function(){});var a=r,o=i,u=l;if(typeof o=="function"&&(u=o,o={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,a),Promise.resolve(a);function h(v){var g=[],y={};function b(w){if(Array.isArray(w)){var S;g=(S=g).concat.apply(S,w)}else g.push(w)}for(var _=0;_<v.length;_++)b(v[_]);g.length?(y=Ed(g),u(g,y)):u(null,a)}if(o.messages){var c=this.messages();c===Ad&&(c=Od()),Wm(c,o.messages),o.messages=c}else o.messages=this.messages();var f={},s=o.keys||Object.keys(this.rules);s.forEach(function(v){var g=m.rules[v],y=a[v];g.forEach(function(b){var _=b;typeof _.transform=="function"&&(a===r&&(a=Qi({},a)),y=a[v]=_.transform(y)),typeof _=="function"?_={validator:_}:_=Qi({},_),_.validator=m.getValidationMethod(_),_.validator&&(_.field=v,_.fullField=_.fullField||v,_.type=m.getType(_),f[v]=f[v]||[],f[v].push({rule:_,value:y,source:a,field:v}))})});var d={};return TF(f,o,function(v,g){var y=v.rule,b=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");b=b&&(y.required||!y.required&&v.value),y.field=v.field;function _(x,T){return Qi({},T,{fullField:y.fullField+"."+x,fullFields:y.fullFields?[].concat(y.fullFields,[x]):[x]})}function w(x){x===void 0&&(x=[]);var T=Array.isArray(x)?x:[x];!o.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var O=T.map(Um(y,a));if(o.first&&O.length)return d[y.field]=1,g(O);if(!b)g(O);else{if(y.required&&!v.value)return y.message!==void 0?O=[].concat(y.message).map(Um(y,a)):o.error&&(O=[o.error(y,En(o.messages.required,y.field))]),g(O);var A={};y.defaultField&&Object.keys(v.value).map(function(R){A[R]=y.defaultField}),A=Qi({},A,v.rule.fields);var $={};Object.keys(A).forEach(function(R){var F=A[R],E=Array.isArray(F)?F:[F];$[R]=E.map(_.bind(null,R))});var j=new e($);j.messages(o.messages),v.rule.options&&(v.rule.options.messages=o.messages,v.rule.options.error=o.error),j.validate(v.value,v.rule.options||o,function(R){var F=[];O&&O.length&&F.push.apply(F,O),R&&R.length&&F.push.apply(F,R),g(F.length?F:null)})}}var S;if(y.asyncValidator)S=y.asyncValidator(y,v.value,w,v.source,o);else if(y.validator){try{S=y.validator(y,v.value,w,v.source,o)}catch(x){console.error==null||console.error(x),o.suppressValidatorError||setTimeout(function(){throw x},0),w(x.message)}S===!0?w():S===!1?w(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):S instanceof Array?w(S):S instanceof Error&&w(S.message)}S&&S.then&&S.then(function(){return w()},function(x){return w(x)})},function(v){h(v)},a)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!ls.hasOwnProperty(r.type))throw new Error(En("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"?ls.required:ls[this.getType(r)]||void 0},e}();dl.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");ls[t]=n};dl.warning=wF;dl.messages=Ad;dl.validators=ls;const GF=["","error","validating","success"],qF=Be({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Oe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Oe([Object,Array])},error:String,validateStatus:{type:String,values:GF},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:sl}}),Xm="ElLabelWrap";var ZF=Te({name:Xm,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=We(Ca,void 0);We(po)||un(Xm,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Ie("form"),l=se(),m=se(0),a=()=>{var h;if((h=l.value)!=null&&h.firstElementChild){const c=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},o=(h="update")=>{He(()=>{t.default&&e.isAutoWidth&&(h==="update"?m.value=a():h==="remove"&&(n==null||n.deregisterLabelWidth(m.value)))})},u=()=>o("update");return qe(()=>{u()}),Nt(()=>{o("remove")}),To(()=>u()),xe(m,(h,c)=>{e.updateAll&&(n==null||n.registerLabelWidth(h,c))}),Cr(ee(()=>{var h,c;return(c=(h=l.value)==null?void 0:h.firstElementChild)!=null?c:null}),u),()=>{var h,c;if(!t)return null;const{isAutoWidth:f}=e;if(f){const s=n==null?void 0:n.autoLabelWidth,d={};if(s&&s!=="auto"){const v=Math.max(0,Number.parseInt(s,10)-m.value),g=n.labelPosition==="left"?"marginRight":"marginLeft";v&&(d[g]=`${v}px`)}return ue("div",{ref:l,class:[i.be("item","label-wrap")],style:d},[(h=t.default)==null?void 0:h.call(t)])}else return ue(ze,{ref:l},[(c=t.default)==null?void 0:c.call(t)])}}});const JF=["role","aria-labelledby"],QF={name:"ElFormItem"},ez=Te({...QF,props:qF,setup(e,{expose:t}){const n=e,r=ma(),i=We(Ca,void 0),l=We(po,void 0),m=Un(void 0,{formItem:!1}),a=Ie("form-item"),o=Ai().value,u=se([]),h=se(""),c=F8(h,100),f=se(""),s=se();let d,v=!1;const g=ee(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const Z=_r(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return Z?{width:Z}:{}}),y=ee(()=>{if((i==null?void 0:i.labelPosition)==="top"||(i==null?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&A)return{};const Z=_r(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:Z}:{}}),b=ee(()=>[a.b(),a.m(m.value),a.is("error",h.value==="error"),a.is("validating",h.value==="validating"),a.is("success",h.value==="success"),a.is("required",E.value||n.required),a.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[a.m("feedback")]:i==null?void 0:i.statusIcon}]),_=ee(()=>Pn(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),w=ee(()=>[a.e("error"),{[a.em("error","inline")]:_.value}]),S=ee(()=>n.prop?Ye(n.prop)?n.prop:n.prop.join("."):""),x=ee(()=>!!(n.label||r.label)),T=ee(()=>n.for||u.value.length===1?u.value[0]:void 0),O=ee(()=>!T.value&&x.value),A=!!l,$=ee(()=>{const Z=i==null?void 0:i.model;if(!(!Z||!n.prop))return Jc(Z,n.prop).value}),j=ee(()=>{const{required:Z}=n,re=[];n.rules&&re.push(...Is(n.rules));const de=i==null?void 0:i.rules;if(de&&n.prop){const ve=Jc(de,n.prop).value;ve&&re.push(...Is(ve))}if(Z!==void 0){const ve=re.map((me,Y)=>[me,Y]).filter(([me])=>Object.keys(me).includes("required"));if(ve.length>0)for(const[me,Y]of ve)me.required!==Z&&(re[Y]={...me,required:Z});else re.push({required:Z})}return re}),R=ee(()=>j.value.length>0),F=Z=>j.value.filter(de=>!de.trigger||!Z?!0:Array.isArray(de.trigger)?de.trigger.includes(Z):de.trigger===Z).map(({trigger:de,...ve})=>ve),E=ee(()=>j.value.some(Z=>Z.required)),W=ee(()=>{var Z;return c.value==="error"&&n.showMessage&&((Z=i==null?void 0:i.showMessage)!=null?Z:!0)}),te=ee(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),Q=Z=>{h.value=Z},le=Z=>{var re,de;const{errors:ve,fields:me}=Z;(!ve||!me)&&console.error(Z),Q("error"),f.value=ve?(de=(re=ve==null?void 0:ve[0])==null?void 0:re.message)!=null?de:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,f.value)},I=()=>{Q("success"),i==null||i.emit("validate",n.prop,!0,"")},z=async Z=>{const re=S.value;return new dl({[re]:Z}).validate({[re]:$.value},{firstFields:!0}).then(()=>(I(),!0)).catch(ve=>(le(ve),Promise.reject(ve)))},M=async(Z,re)=>{if(v)return!1;const de=Ve(re);if(!R.value)return re==null||re(!1),!1;const ve=F(Z);return ve.length===0?(re==null||re(!0),!0):(Q("validating"),z(ve).then(()=>(re==null||re(!0),!0)).catch(me=>{const{fields:Y}=me;return re==null||re(!1,Y),de?!1:Promise.reject(Y)}))},L=()=>{Q(""),f.value="",v=!1},J=async()=>{const Z=i==null?void 0:i.model;if(!Z||!n.prop)return;const re=Jc(Z,n.prop);v=!0,re.value=Bv(d),await He(),L(),v=!1},U=Z=>{u.value.includes(Z)||u.value.push(Z)},P=Z=>{u.value=u.value.filter(re=>re!==Z)};xe(()=>n.error,Z=>{f.value=Z||"",Q(Z?"error":"")},{immediate:!0}),xe(()=>n.validateStatus,Z=>Q(Z||""));const q=_t({...zn(n),$el:s,size:m,validateState:h,labelId:o,inputIds:u,isGroup:O,addInputId:U,removeInputId:P,resetField:J,clearValidate:L,validate:M});return st(po,q),qe(()=>{n.prop&&(i==null||i.addField(q),d=Bv($.value))}),Nt(()=>{i==null||i.removeField(q)}),t({size:m,validateMessage:f,validateState:h,validate:M,clearValidate:L,resetField:J}),(Z,re)=>{var de;return V(),ce("div",{ref_key:"formItemRef",ref:s,class:fe(C(b)),role:C(O)?"group":void 0,"aria-labelledby":C(O)?C(o):void 0},[ue(C(ZF),{"is-auto-width":C(g).width==="auto","update-all":((de=C(i))==null?void 0:de.labelWidth)==="auto"},{default:he(()=>[C(x)?(V(),_e(yt(C(T)?"label":"div"),{key:0,id:C(o),for:C(T),class:fe(C(a).e("label")),style:Fe(C(g))},{default:he(()=>[Se(Z.$slots,"label",{label:C(te)},()=>[Ne(Ae(C(te)),1)])]),_:3},8,["id","for","class","style"])):be("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),oe("div",{class:fe(C(a).e("content")),style:Fe(C(y))},[Se(Z.$slots,"default"),ue(tn,{name:`${C(a).namespace.value}-zoom-in-top`},{default:he(()=>[C(W)?Se(Z.$slots,"error",{key:0,error:f.value},()=>[oe("div",{class:fe(C(w))},Ae(f.value),3)]):be("v-if",!0)]),_:3},8,["name"])],6)],10,JF)}}});var N1=Le(ez,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Cp=vt(vF,{FormItem:N1}),_i=Hn(N1),tz=Be({urlList:{type:Oe(Array),default:()=>Ht([])},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},hideOnClickModal:{type:Boolean,default:!1},teleported:{type:Boolean,default:!1},closeOnPressEscape:{type:Boolean,default:!0}}),nz={close:()=>!0,switch:e=>et(e)},rz=["src"],iz={name:"ElImageViewer"},oz=Te({...iz,props:tz,emits:nz,setup(e,{expose:t,emit:n}){const r=e,i={CONTAIN:{name:"contain",icon:Ti(PE)},ORIGINAL:{name:"original",icon:Ti(vO)}},l=ZI()?"DOMMouseScroll":"mousewheel",{t:m}=nn(),a=Ie("image-viewer"),{nextZIndex:o}=ul(),u=se(),h=se([]),c=_h(),f=se(!0),s=se(r.initialIndex),d=en(i.CONTAIN),v=se({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),g=ee(()=>{const{urlList:le}=r;return le.length<=1}),y=ee(()=>s.value===0),b=ee(()=>s.value===r.urlList.length-1),_=ee(()=>r.urlList[s.value]),w=ee(()=>{const{scale:le,deg:I,offsetX:z,offsetY:M,enableTransition:L}=v.value;let J=z/le,U=M/le;switch(I%360){case 90:case-270:[J,U]=[U,-J];break;case 180:case-180:[J,U]=[-J,-U];break;case 270:case-90:[J,U]=[-U,J];break}const P={transform:`scale(${le}) rotate(${I}deg) translate(${J}px, ${U}px)`,transition:L?"transform .3s":""};return d.value.name===i.CONTAIN.name&&(P.maxWidth=P.maxHeight="100%"),P}),S=ee(()=>et(r.zIndex)?r.zIndex:o());function x(){O(),n("close")}function T(){const le=is(z=>{switch(z.code){case Ct.esc:r.closeOnPressEscape&&x();break;case Ct.space:F();break;case Ct.left:W();break;case Ct.up:Q("zoomIn");break;case Ct.right:te();break;case Ct.down:Q("zoomOut");break}}),I=is(z=>{(z.wheelDelta?z.wheelDelta:-z.detail)>0?Q("zoomIn",{zoomRate:1.2,enableTransition:!1}):Q("zoomOut",{zoomRate:1.2,enableTransition:!1})});c.run(()=>{bt(document,"keydown",le),bt(document,l,I)})}function O(){c.stop()}function A(){f.value=!1}function $(le){f.value=!1,le.target.alt=m("el.image.error")}function j(le){if(f.value||le.button!==0||!u.value)return;v.value.enableTransition=!1;const{offsetX:I,offsetY:z}=v.value,M=le.pageX,L=le.pageY,J=is(P=>{v.value={...v.value,offsetX:I+P.pageX-M,offsetY:z+P.pageY-L}}),U=bt(document,"mousemove",J);bt(document,"mouseup",()=>{U()}),le.preventDefault()}function R(){v.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function F(){if(f.value)return;const le=yd(i),I=Object.values(i),z=d.value.name,L=(I.findIndex(J=>J.name===z)+1)%le.length;d.value=i[le[L]],R()}function E(le){const I=r.urlList.length;s.value=(le+I)%I}function W(){y.value&&!r.infinite||E(s.value-1)}function te(){b.value&&!r.infinite||E(s.value+1)}function Q(le,I={}){if(f.value)return;const{zoomRate:z,rotateDeg:M,enableTransition:L}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...I};switch(le){case"zoomOut":v.value.scale>.2&&(v.value.scale=Number.parseFloat((v.value.scale/z).toFixed(3)));break;case"zoomIn":v.value.scale<7&&(v.value.scale=Number.parseFloat((v.value.scale*z).toFixed(3)));break;case"clockwise":v.value.deg+=M;break;case"anticlockwise":v.value.deg-=M;break}v.value.enableTransition=L}return xe(_,()=>{He(()=>{const le=h.value[0];le!=null&&le.complete||(f.value=!0)})}),xe(s,le=>{R(),n("switch",le)}),qe(()=>{var le,I;T(),(I=(le=u.value)==null?void 0:le.focus)==null||I.call(le)}),t({setActiveItem:E}),(le,I)=>(V(),_e(Fh,{to:"body",disabled:!le.teleported},[ue(tn,{name:"viewer-fade",appear:""},{default:he(()=>[oe("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:fe(C(a).e("wrapper")),style:Fe({zIndex:C(S)})},[oe("div",{class:fe(C(a).e("mask")),onClick:I[0]||(I[0]=Je(z=>le.hideOnClickModal&&x(),["self"]))},null,2),be(" CLOSE "),oe("span",{class:fe([C(a).e("btn"),C(a).e("close")]),onClick:x},[ue(C(Re),null,{default:he(()=>[ue(C(yr))]),_:1})],2),be(" ARROW "),C(g)?be("v-if",!0):(V(),ce(ze,{key:0},[oe("span",{class:fe([C(a).e("btn"),C(a).e("prev"),C(a).is("disabled",!le.infinite&&C(y))]),onClick:W},[ue(C(Re),null,{default:he(()=>[ue(C(yc))]),_:1})],2),oe("span",{class:fe([C(a).e("btn"),C(a).e("next"),C(a).is("disabled",!le.infinite&&C(b))]),onClick:te},[ue(C(Re),null,{default:he(()=>[ue(C(ba))]),_:1})],2)],64)),be(" ACTIONS "),oe("div",{class:fe([C(a).e("btn"),C(a).e("actions")])},[oe("div",{class:fe(C(a).e("actions__inner"))},[ue(C(Re),{onClick:I[1]||(I[1]=z=>Q("zoomOut"))},{default:he(()=>[ue(C(m4))]),_:1}),ue(C(Re),{onClick:I[2]||(I[2]=z=>Q("zoomIn"))},{default:he(()=>[ue(C(Jb))]),_:1}),oe("i",{class:fe(C(a).e("actions__divider"))},null,2),ue(C(Re),{onClick:F},{default:he(()=>[(V(),_e(yt(C(d).icon)))]),_:1}),oe("i",{class:fe(C(a).e("actions__divider"))},null,2),ue(C(Re),{onClick:I[3]||(I[3]=z=>Q("anticlockwise"))},{default:he(()=>[ue(C(Kb))]),_:1}),ue(C(Re),{onClick:I[4]||(I[4]=z=>Q("clockwise"))},{default:he(()=>[ue(C(Gb))]),_:1})],2)],2),be(" CANVAS "),oe("div",{class:fe(C(a).e("canvas"))},[(V(!0),ce(ze,null,Rt(le.urlList,(z,M)=>pt((V(),ce("img",{ref_for:!0,ref:L=>h.value[M]=L,key:z,src:z,style:Fe(C(w)),class:fe(C(a).e("img")),onLoad:A,onError:$,onMousedown:j},null,46,rz)),[[Lt,M===s.value]])),128))],2),Se(le.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var az=Le(oz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const sz=vt(az),lz=Be({hideOnClickModal:{type:Boolean,default:!1},src:{type:String,default:""},fit:{type:String,values:["","contain","cover","fill","none","scale-down"],default:""},loading:{type:String,values:["eager","lazy"]},lazy:{type:Boolean,default:!1},scrollContainer:{type:Oe([String,Object])},previewSrcList:{type:Oe(Array),default:()=>Ht([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),uz={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>et(e),close:()=>!0,show:()=>!0},cz=["src","loading"],fz={key:0},dz={name:"ElImage",inheritAttrs:!1},hz=Te({...dz,props:lz,emits:uz,setup(e,{emit:t}){const n=e;let r="";const{t:i}=nn(),l=Ie("image"),m=vb(),a=z_(),o=se(),u=se(!1),h=se(!0),c=se(!1),f=se(),s=se(),d=ot&&"loading"in HTMLImageElement.prototype;let v,g;const y=ee(()=>m.style),b=ee(()=>{const{fit:Q}=n;return ot&&Q?{objectFit:Q}:{}}),_=ee(()=>{const{previewSrcList:Q}=n;return Array.isArray(Q)&&Q.length>0}),w=ee(()=>{const{previewSrcList:Q,initialIndex:le}=n;let I=le;return le>Q.length-1&&(I=0),I}),S=ee(()=>n.loading==="eager"?!1:!d&&n.loading==="lazy"||n.lazy),x=()=>{!ot||(h.value=!0,u.value=!1,o.value=n.src)};function T(Q){h.value=!1,u.value=!1,t("load",Q)}function O(Q){h.value=!1,u.value=!0,t("error",Q)}function A(){DI(f.value,s.value)&&(x(),R())}const $=z8(A,200);async function j(){var Q;if(!ot)return;await He();const{scrollContainer:le}=n;fo(le)?s.value=le:Ye(le)&&le!==""?s.value=(Q=document.querySelector(le))!=null?Q:void 0:f.value&&(s.value=NI(f.value)),s.value&&(v=bt(s,"scroll",$),setTimeout(()=>A(),100))}function R(){!ot||!s.value||!$||(v==null||v(),s.value=void 0)}function F(Q){if(!!Q.ctrlKey){if(Q.deltaY<0)return Q.preventDefault(),!1;if(Q.deltaY>0)return Q.preventDefault(),!1}}function E(){!_.value||(g=bt("wheel",F,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",c.value=!0,t("show"))}function W(){g==null||g(),document.body.style.overflow=r,c.value=!1,t("close")}function te(Q){t("switch",Q)}return xe(()=>n.src,()=>{S.value?(h.value=!0,u.value=!1,R(),j()):x()}),qe(()=>{S.value?j():x()}),(Q,le)=>(V(),ce("div",{ref_key:"container",ref:f,class:fe([C(l).b(),Q.$attrs.class]),style:Fe(C(y))},[o.value!==void 0&&!u.value?(V(),ce("img",gn({key:0},C(a),{src:o.value,loading:Q.loading,style:C(b),class:[C(l).e("inner"),C(_)&&C(l).e("preview"),h.value&&C(l).is("loading")],onClick:E,onLoad:T,onError:O}),null,16,cz)):be("v-if",!0),h.value||u.value?(V(),ce("div",{key:1,class:fe(C(l).e("wrapper"))},[h.value?Se(Q.$slots,"placeholder",{key:0},()=>[oe("div",{class:fe(C(l).e("placeholder"))},null,2)]):u.value?Se(Q.$slots,"error",{key:1},()=>[oe("div",{class:fe(C(l).e("error"))},Ae(C(i)("el.image.error")),3)]):be("v-if",!0)],2)):be("v-if",!0),C(_)?(V(),ce(ze,{key:2},[c.value?(V(),_e(C(sz),{key:0,"z-index":Q.zIndex,"initial-index":C(w),infinite:Q.infinite,"url-list":Q.previewSrcList,"hide-on-click-modal":Q.hideOnClickModal,teleported:Q.previewTeleported,"close-on-press-escape":Q.closeOnPressEscape,onClose:W,onSwitch:te},{default:he(()=>[Q.$slots.viewer?(V(),ce("div",fz,[Se(Q.$slots,"viewer")])):be("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):be("v-if",!0)],64)):be("v-if",!0)],6))}});var pz=Le(hz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Sp=vt(pz),gz=Be({id:{type:String,default:void 0},step:{type:Number,default:1},stepStrictly:Boolean,max:{type:Number,default:Number.POSITIVE_INFINITY},min:{type:Number,default:Number.NEGATIVE_INFINITY},modelValue:Number,readonly:Boolean,disabled:Boolean,size:Oi,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||et(e)||["min","max"].includes(e),default:null},name:String,label:String,placeholder:String,precision:{type:Number,validator:e=>e>=0&&e===Number.parseInt(`${e}`,10)},validateEvent:{type:Boolean,default:!0}}),vz={[nr]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[ho]:e=>et(e)||pr(e),[at]:e=>et(e)||pr(e)},mz=["aria-label","onKeydown"],yz=["aria-label","onKeydown"],bz={name:"ElInputNumber"},_z=Te({...bz,props:gz,emits:vz,setup(e,{expose:t,emit:n}){const r=e,{t:i}=nn(),l=Ie("input-number"),m=se(),a=_t({currentValue:r.modelValue,userInput:null}),{formItem:o}=Ri(),u=ee(()=>et(r.modelValue)&&b(r.modelValue,-1)<r.min),h=ee(()=>et(r.modelValue)&&b(r.modelValue)>r.max),c=ee(()=>{const F=y(r.step);return Zn(r.precision)?Math.max(y(r.modelValue),F):(F>r.precision,r.precision)}),f=ee(()=>r.controls&&r.controlsPosition==="right"),s=Un(),d=Oo(),v=ee(()=>{if(a.userInput!==null)return a.userInput;let F=a.currentValue;if(pr(F))return"";if(et(F)){if(Number.isNaN(F))return"";Zn(r.precision)||(F=F.toFixed(r.precision))}return F}),g=(F,E)=>{if(Zn(E)&&(E=c.value),E===0)return Math.round(F);let W=String(F);const te=W.indexOf(".");if(te===-1||!W.replace(".","").split("")[te+E])return F;const I=W.length;return W.charAt(I-1)==="5"&&(W=`${W.slice(0,Math.max(0,I-1))}6`),Number.parseFloat(Number(W).toFixed(E))},y=F=>{if(pr(F))return 0;const E=F.toString(),W=E.indexOf(".");let te=0;return W!==-1&&(te=E.length-W-1),te},b=(F,E=1)=>et(F)?g(F+r.step*E):a.currentValue,_=()=>{if(r.readonly||d.value||h.value)return;const F=r.modelValue||0,E=b(F);x(E)},w=()=>{if(r.readonly||d.value||u.value)return;const F=r.modelValue||0,E=b(F,-1);x(E)},S=(F,E)=>{const{max:W,min:te,step:Q,precision:le,stepStrictly:I,valueOnClear:z}=r;let M=Number(F);if(pr(F)||Number.isNaN(M))return null;if(F===""){if(z===null)return null;M=Ye(z)?{min:te,max:W}[z]:z}return I&&(M=g(Math.round(M/Q)*Q,le)),Zn(le)||(M=g(M,le)),(M>W||M<te)&&(M=M>W?W:te,E&&n("update:modelValue",M)),M},x=F=>{var E;const W=a.currentValue,te=S(F);W!==te&&(a.userInput=null,n("update:modelValue",te),n("input",te),n("change",te,W),r.validateEvent&&((E=o==null?void 0:o.validate)==null||E.call(o,"change").catch(Q=>void 0)),a.currentValue=te)},T=F=>a.userInput=F,O=F=>{const E=F!==""?Number(F):"";(et(E)&&!Number.isNaN(E)||F==="")&&x(E),a.userInput=null},A=()=>{var F,E;(E=(F=m.value)==null?void 0:F.focus)==null||E.call(F)},$=()=>{var F,E;(E=(F=m.value)==null?void 0:F.blur)==null||E.call(F)},j=F=>{n("focus",F)},R=F=>{var E;n("blur",F),r.validateEvent&&((E=o==null?void 0:o.validate)==null||E.call(o,"blur").catch(W=>void 0))};return xe(()=>r.modelValue,F=>{a.currentValue=S(F,!0),a.userInput=null},{immediate:!0}),qe(()=>{var F;const{min:E,max:W,modelValue:te}=r,Q=(F=m.value)==null?void 0:F.input;if(Q.setAttribute("role","spinbutton"),Number.isFinite(W)?Q.setAttribute("aria-valuemax",String(W)):Q.removeAttribute("aria-valuemax"),Number.isFinite(E)?Q.setAttribute("aria-valuemin",String(E)):Q.removeAttribute("aria-valuemin"),Q.setAttribute("aria-valuenow",String(a.currentValue)),Q.setAttribute("aria-disabled",String(d.value)),!et(te)&&te!=null){let le=Number(te);Number.isNaN(le)&&(le=null),n("update:modelValue",le)}}),To(()=>{var F;const E=(F=m.value)==null?void 0:F.input;E==null||E.setAttribute("aria-valuenow",`${a.currentValue}`)}),t({focus:A,blur:$}),(F,E)=>(V(),ce("div",{class:fe([C(l).b(),C(l).m(C(s)),C(l).is("disabled",C(d)),C(l).is("without-controls",!F.controls),C(l).is("controls-right",C(f))]),onDragstart:E[0]||(E[0]=Je(()=>{},["prevent"]))},[F.controls?pt((V(),ce("span",{key:0,role:"button","aria-label":C(i)("el.inputNumber.decrease"),class:fe([C(l).e("decrease"),C(l).is("disabled",C(u))]),onKeydown:Et(w,["enter"])},[ue(C(Re),null,{default:he(()=>[C(f)?(V(),_e(C(mc),{key:0})):(V(),_e(C(Xb),{key:1}))]),_:1})],42,mz)),[[C(Dm),w]]):be("v-if",!0),F.controls?pt((V(),ce("span",{key:1,role:"button","aria-label":C(i)("el.inputNumber.increase"),class:fe([C(l).e("increase"),C(l).is("disabled",C(h))]),onKeydown:Et(_,["enter"])},[ue(C(Re),null,{default:he(()=>[C(f)?(V(),_e(C(GT),{key:0})):(V(),_e(C(Wh),{key:1}))]),_:1})],42,yz)),[[C(Dm),_]]):be("v-if",!0),ue(C(Ao),{id:F.id,ref_key:"input",ref:m,type:"number",step:F.step,"model-value":C(v),placeholder:F.placeholder,readonly:F.readonly,disabled:C(d),size:C(s),max:F.max,min:F.min,name:F.name,label:F.label,"validate-event":!1,onKeydown:[Et(Je(_,["prevent"]),["up"]),Et(Je(w,["prevent"]),["down"])],onBlur:R,onFocus:j,onInput:T,onChange:O},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var wz=Le(_z,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Pd=vt(wz);class Cz{constructor(t,n){this.parent=t,this.domNode=n,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=>{let i=!1;switch(r.code){case Ct.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Ct.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Ct.tab:{lu(t,"mouseleave");break}case Ct.enter:case Ct.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}}class Sz{constructor(t,n){this.domNode=t,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 Cz(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Ct.down:{lu(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Ct.up:{lu(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Ct.tab:{lu(t.currentTarget,"mouseleave");break}case Ct.enter:case Ct.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class xz{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 Sz(r,t)})}}const Tz=Te({name:"ElMenuCollapseTransition",setup(){const e=Ie("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){Ua(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){uu(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),bd(n,e.m("collapse"))?(uu(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Ua(n,e.m("collapse"))):(Ua(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),uu(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){Ua(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function kz(e,t,n,r,i,l){return V(),_e(tn,gn({mode:"out-in"},e.listeners),{default:he(()=>[Se(e.$slots,"default")]),_:3},16)}var Ez=Le(Tz,[["render",kz],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function j1(e,t){const n=ee(()=>{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:ee(()=>{let i=e.parent;for(;i&&!["ElMenu","ElSubMenu"].includes(i.type.name);)i=i.parent;return i}),indexPath:n}}function Oz(e){return ee(()=>{const n=e.backgroundColor;return n?new x1(n).shade(20).toString():""})}const V1=(e,t)=>{const n=Ie("menu");return ee(()=>n.cssVarBlock({"text-color":e.textColor||"","hover-text-color":e.textColor||"","bg-color":e.backgroundColor||"","hover-bg-color":Oz(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},Az=Be({index:{type:String,required:!0},showTimeout:{type:Number,default:300},hideTimeout:{type:Number,default:300},popperClass:String,disabled:Boolean,popperAppendToBody:{type:Boolean,default:void 0},popperOffset:{type:Number,default:6},expandCloseIcon:{type:Bt},expandOpenIcon:{type:Bt},collapseCloseIcon:{type:Bt},collapseOpenIcon:{type:Bt}}),cf="ElSubMenu";var xp=Te({name:cf,props:Az,setup(e,{slots:t,expose:n}){const r=gt(),{indexPath:i,parentMenu:l}=j1(r,ee(()=>e.index)),m=Ie("menu"),a=Ie("sub-menu"),o=We("rootMenu");o||un(cf,"can not inject root menu");const u=We(`subMenu:${l.value.uid}`);u||un(cf,"can not inject sub menu");const h=se({}),c=se({});let f;const s=se(!1),d=se(),v=se(null),g=ee(()=>j.value==="horizontal"&&b.value?"bottom-start":"right-start"),y=ee(()=>j.value==="horizontal"&&b.value||j.value==="vertical"&&!o.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?x.value?e.expandOpenIcon:e.expandCloseIcon:mc:e.collapseCloseIcon&&e.collapseOpenIcon?x.value?e.collapseOpenIcon:e.collapseCloseIcon:ba),b=ee(()=>u.level===0),_=ee(()=>e.popperAppendToBody===void 0?b.value:Boolean(e.popperAppendToBody)),w=ee(()=>o.props.collapse?`${m.namespace.value}-zoom-in-left`:`${m.namespace.value}-zoom-in-top`),S=ee(()=>j.value==="horizontal"&&b.value?["bottom-start","bottom-end","top-start","top-end","right-start","left-start"]:["right-start","left-start","bottom-start","bottom-end","top-start","top-end"]),x=ee(()=>o.openedMenus.includes(e.index)),T=ee(()=>{let I=!1;return Object.values(h.value).forEach(z=>{z.active&&(I=!0)}),Object.values(c.value).forEach(z=>{z.active&&(I=!0)}),I}),O=ee(()=>o.props.backgroundColor||""),A=ee(()=>o.props.activeTextColor||""),$=ee(()=>o.props.textColor||""),j=ee(()=>o.props.mode),R=_t({index:e.index,indexPath:i,active:T}),F=ee(()=>j.value!=="horizontal"?{color:$.value}:{borderBottomColor:T.value?o.props.activeTextColor?A.value:"":"transparent",color:T.value?A.value:$.value}),E=()=>{var I,z,M;return(M=(z=(I=v.value)==null?void 0:I.popperRef)==null?void 0:z.popperInstanceRef)==null?void 0:M.destroy()},W=I=>{I||E()},te=()=>{o.props.menuTrigger==="hover"&&o.props.mode==="horizontal"||o.props.collapse&&o.props.mode==="vertical"||e.disabled||o.handleSubMenuClick({index:e.index,indexPath:i.value,active:T.value})},Q=(I,z=e.showTimeout)=>{var M;I.type!=="focus"&&(o.props.menuTrigger==="click"&&o.props.mode==="horizontal"||!o.props.collapse&&o.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,f==null||f(),{stop:f}=Ls(()=>{o.openMenu(e.index,i.value)},z),_.value&&((M=l.value.vnode.el)==null||M.dispatchEvent(new MouseEvent("mouseenter")))))},le=(I=!1)=>{var z,M;o.props.menuTrigger==="click"&&o.props.mode==="horizontal"||!o.props.collapse&&o.props.mode==="vertical"||(f==null||f(),u.mouseInChild.value=!1,{stop:f}=Ls(()=>!s.value&&o.closeMenu(e.index,i.value),e.hideTimeout),_.value&&I&&((z=r.parent)==null?void 0:z.type.name)==="ElSubMenu"&&((M=u.handleMouseleave)==null||M.call(u,!0)))};xe(()=>o.props.collapse,I=>W(Boolean(I)));{const I=M=>{c.value[M.index]=M},z=M=>{delete c.value[M.index]};st(`subMenu:${r.uid}`,{addSubMenu:I,removeSubMenu:z,handleMouseleave:le,mouseInChild:s,level:u.level+1})}return n({opened:x}),qe(()=>{o.addSubMenu(R),u.addSubMenu(R)}),Nt(()=>{u.removeSubMenu(R),o.removeSubMenu(R)}),()=>{var I;const z=[(I=t.title)==null?void 0:I.call(t),ht(Re,{class:a.e("icon-arrow"),style:{transform:x.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&o.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ye(y.value)?ht(r.appContext.components[y.value]):ht(y.value)})],M=V1(o.props,u.level+1),L=o.isMenuPopup?ht(Sr,{ref:v,visible:x.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:g.value,teleported:_.value,fallbackPlacements:S.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var J;return ht("div",{class:[m.m(j.value),m.m("popup-container"),e.popperClass],onMouseenter:U=>Q(U,100),onMouseleave:()=>le(!0),onFocus:U=>Q(U,100)},[ht("ul",{class:[m.b(),m.m("popup"),m.m(`popup-${g.value}`)],style:M.value},[(J=t.default)==null?void 0:J.call(t)])])},default:()=>ht("div",{class:a.e("title"),style:[F.value,{backgroundColor:O.value}],onClick:te},z)}):ht(ze,{},[ht("div",{class:a.e("title"),style:[F.value,{backgroundColor:O.value}],ref:d,onClick:te},z),ht(R1,{},{default:()=>{var J;return pt(ht("ul",{role:"menu",class:[m.b(),m.m("inline")],style:M.value},[(J=t.default)==null?void 0:J.call(t)]),[[Lt,x.value]])}})]);return ht("li",{class:[a.b(),a.is("active",T.value),a.is("opened",x.value),a.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:Q,onMouseleave:()=>le(!0),onFocus:Q},[L])}}});const Pz=Be({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Oe(Array),default:()=>Ht([])},uniqueOpened:Boolean,router:Boolean,menuTrigger:{type:String,values:["hover","click"],default:"hover"},collapse:Boolean,backgroundColor:String,textColor:String,activeTextColor:String,collapseTransition:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0}}),ff=e=>Array.isArray(e)&&e.every(t=>Ye(t)),Iz={close:(e,t)=>Ye(e)&&ff(t),open:(e,t)=>Ye(e)&&ff(t),select:(e,t,n,r)=>Ye(e)&&ff(t)&&Qe(n)&&(r===void 0||r instanceof Promise)};var Mz=Te({name:"ElMenu",props:Pz,emits:Iz,setup(e,{emit:t,slots:n,expose:r}){const i=gt(),l=i.appContext.config.globalProperties.$router,m=se(),a=Ie("menu"),o=Ie("sub-menu"),u=se(-1),h=se(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=se(e.defaultActive),f=se({}),s=se({}),d=ee(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),v=()=>{const $=c.value&&f.value[c.value];if(!$||e.mode==="horizontal"||e.collapse)return;$.indexPath.forEach(R=>{const F=s.value[R];F&&g(R,F.indexPath)})},g=($,j)=>{h.value.includes($)||(e.uniqueOpened&&(h.value=h.value.filter(R=>j.includes(R))),h.value.push($),t("open",$,j))},y=($,j)=>{const R=h.value.indexOf($);R!==-1&&h.value.splice(R,1),t("close",$,j)},b=({index:$,indexPath:j})=>{h.value.includes($)?y($,j):g($,j)},_=$=>{(e.mode==="horizontal"||e.collapse)&&(h.value=[]);const{index:j,indexPath:R}=$;if(!(j===void 0||R===void 0))if(e.router&&l){const F=$.route||j,E=l.push(F).then(W=>(W||(c.value=j),W));t("select",j,R,{index:j,indexPath:R,route:F},E)}else c.value=j,t("select",j,R,{index:j,indexPath:R})},w=$=>{const j=f.value,R=j[$]||c.value&&j[c.value]||j[e.defaultActive];R?c.value=R.index:c.value=$},S=()=>{var $,j;if(!m.value)return-1;const R=Array.from((j=($=m.value)==null?void 0:$.childNodes)!=null?j:[]).filter(I=>I.nodeName!=="#text"||I.nodeValue),F=64,E=Number.parseInt(getComputedStyle(m.value).paddingLeft,10),W=Number.parseInt(getComputedStyle(m.value).paddingRight,10),te=m.value.clientWidth-E-W;let Q=0,le=0;return R.forEach((I,z)=>{Q+=I.offsetWidth||0,Q<=te-F&&(le=z+1)}),le===R.length?-1:le},x=($,j=33.34)=>{let R;return()=>{R&&clearTimeout(R),R=setTimeout(()=>{$()},j)}};let T=!0;const O=()=>{const $=()=>{u.value=-1,He(()=>{u.value=S()})};T?$():x($)(),T=!1};xe(()=>e.defaultActive,$=>{f.value[$]||(c.value=""),w($)}),xe(()=>e.collapse,$=>{$&&(h.value=[])}),xe(f.value,v);let A;xo(()=>{e.mode==="horizontal"&&e.ellipsis?A=Cr(m,O).stop:A==null||A()});{const $=E=>{s.value[E.index]=E},j=E=>{delete s.value[E.index]};st("rootMenu",_t({props:e,openedMenus:h,items:f,subMenus:s,activeIndex:c,isMenuPopup:d,addMenuItem:E=>{f.value[E.index]=E},removeMenuItem:E=>{delete f.value[E.index]},addSubMenu:$,removeSubMenu:j,openMenu:g,closeMenu:y,handleMenuItemClick:_,handleSubMenuClick:b})),st(`subMenu:${i.uid}`,{addSubMenu:$,removeSubMenu:j,mouseInChild:se(!1),level:0})}return qe(()=>{e.mode==="horizontal"&&new xz(i.vnode.el,a.namespace.value)}),r({open:j=>{const{indexPath:R}=s.value[j];R.forEach(F=>g(F,R))},close:y,handleResize:O}),()=>{var $,j;let R=(j=($=n.default)==null?void 0:$.call(n))!=null?j:[];const F=[];if(e.mode==="horizontal"&&m.value){const te=B_(R),Q=u.value===-1?te:te.slice(0,u.value),le=u.value===-1?[]:te.slice(u.value);(le==null?void 0:le.length)&&e.ellipsis&&(R=Q,F.push(ht(xp,{index:"sub-menu-more",class:o.e("hide-arrow")},{title:()=>ht(Re,{class:o.e("icon-more")},{default:()=>ht(E3)}),default:()=>le})))}const E=V1(e,0),W=ht("ul",{key:String(e.collapse),role:"menubar",ref:m,style:E.value,class:{[a.b()]:!0,[a.m(e.mode)]:!0,[a.m("collapse")]:e.collapse}},[...R,...F]);return e.collapseTransition&&e.mode==="vertical"?ht(Ez,()=>W):W}}});const Lz=Be({index:{type:Oe([String,null]),default:null},route:{type:Oe([String,Object])},disabled:Boolean}),Rz={click:e=>Ye(e.index)&&Array.isArray(e.indexPath)},df="ElMenuItem",Dz=Te({name:df,components:{ElTooltip:Sr},props:Lz,emits:Rz,setup(e,{emit:t}){const n=gt(),r=We("rootMenu"),i=Ie("menu"),l=Ie("menu-item");r||un(df,"can not inject root menu");const{parentMenu:m,indexPath:a}=j1(n,yn(e,"index")),o=We(`subMenu:${m.value.uid}`);o||un(df,"can not inject sub menu");const u=ee(()=>e.index===r.activeIndex),h=_t({index:e.index,indexPath:a,active:u}),c=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:a.value,route:e.route}),t("click",h))};return qe(()=>{o.addSubMenu(h),r.addMenuItem(h)}),Nt(()=>{o.removeSubMenu(h),r.removeMenuItem(h)}),{Effect:ZM,parentMenu:m,rootMenu:r,active:u,nsMenu:i,nsMenuItem:l,handleClick:c}}});function $z(e,t,n,r,i,l){const m=ft("el-tooltip");return V(),ce("li",{class:fe([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(V(),_e(m,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:he(()=>[Se(e.$slots,"title")]),default:he(()=>[oe("div",{class:fe(e.nsMenu.be("tooltip","trigger"))},[Se(e.$slots,"default")],2)]),_:3},8,["effect"])):(V(),ce(ze,{key:1},[Se(e.$slots,"default"),Se(e.$slots,"title")],64))],2)}var H1=Le(Dz,[["render",$z],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const Bz={title:String},Fz="ElMenuItemGroup",zz=Te({name:Fz,props:Bz,setup(){return{ns:Ie("menu-item-group")}}});function Nz(e,t,n,r,i,l){return V(),ce("li",{class:fe(e.ns.b())},[oe("div",{class:fe(e.ns.e("title"))},[e.$slots.title?Se(e.$slots,"title",{key:1}):(V(),ce(ze,{key:0},[Ne(Ae(e.title),1)],64))],2),oe("ul",null,[Se(e.$slots,"default")])],2)}var U1=Le(zz,[["render",Nz],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const W1=vt(Mz,{MenuItem:H1,MenuItemGroup:U1,SubMenu:xp}),Tp=Hn(H1);Hn(U1);Hn(xp);const jz=Be({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Bt}}),Vz={click:e=>e instanceof MouseEvent},Hz=["disabled","aria-disabled"],Uz={key:0},Wz={name:"ElPaginationPrev"},Yz=Te({...Wz,props:jz,emits:Vz,setup(e){const t=e,n=ee(()=>t.disabled||t.currentPage<=1);return(r,i)=>(V(),ce("button",{type:"button",class:"btn-prev",disabled:C(n),"aria-disabled":C(n),onClick:i[0]||(i[0]=l=>r.$emit("click",l))},[r.prevText?(V(),ce("span",Uz,Ae(r.prevText),1)):(V(),_e(C(Re),{key:1},{default:he(()=>[(V(),_e(yt(r.prevIcon)))]),_:1}))],8,Hz))}});var Xz=Le(Yz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const Kz=Be({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Bt}}),Gz=["disabled","aria-disabled"],qz={key:0},Zz={name:"ElPaginationNext"},Jz=Te({...Zz,props:Kz,emits:["click"],setup(e){const t=e,n=ee(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(V(),ce("button",{type:"button",class:"btn-next",disabled:C(n),"aria-disabled":C(n),onClick:i[0]||(i[0]=l=>r.$emit("click",l))},[r.nextText?(V(),ce("span",qz,Ae(r.nextText),1)):(V(),_e(C(Re),{key:1},{default:he(()=>[(V(),_e(yt(r.nextIcon)))]),_:1}))],8,Gz))}});var Qz=Le(Jz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const Y1="ElSelectGroup",Pc="ElSelect";function eN(e,t){const n=We(Pc),r=We(Y1,{disabled:!1}),i=ee(()=>Object.prototype.toString.call(e.value).toLowerCase()==="[object object]"),l=ee(()=>n.props.multiple?c(n.props.modelValue,e.value):f(e.value,n.props.modelValue)),m=ee(()=>{if(n.props.multiple){const v=n.props.modelValue||[];return!l.value&&v.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),a=ee(()=>e.label||(i.value?"":e.value)),o=ee(()=>e.value||e.label||""),u=ee(()=>e.disabled||t.groupDisabled||m.value),h=gt(),c=(v=[],g)=>{if(i.value){const y=n.props.valueKey;return v&&v.some(b=>Ze(Tn(b,y))===Tn(g,y))}else return v&&v.includes(g)},f=(v,g)=>{if(i.value){const{valueKey:y}=n.props;return Tn(v,y)===Tn(g,y)}else return v===g},s=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(h.proxy))};xe(()=>a.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),xe(()=>e.value,(v,g)=>{const{remote:y,valueKey:b}=n.props;if(Object.is(v,g)||(n.onOptionDestroy(g,h.proxy),n.onOptionCreate(h.proxy)),!e.created&&!y){if(b&&typeof v=="object"&&typeof g=="object"&&v[b]===g[b])return;n.setSelected()}}),xe(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:d}=Ze(n);return xe(d,v=>{const{query:g}=C(v),y=new RegExp($I(g),"i");t.visible=y.test(a.value)||e.created,t.visible||n.filteredOptionsCount--}),{select:n,currentLabel:a,currentValue:o,itemSelected:l,isDisabled:u,hoverItem:s}}const tN=Te({name:"ElOption",componentName:"ElOption",props:{value:{required:!0,type:[String,Number,Boolean,Object]},label:[String,Number],created:Boolean,disabled:{type:Boolean,default:!1}},setup(e){const t=Ie("select"),n=_t({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:l,select:m,hoverItem:a}=eN(e,n),{visible:o,hover:u}=zn(n),h=gt().proxy;m.onOptionCreate(h),Nt(()=>{const f=h.value,{selected:s}=m,v=(m.props.multiple?s:[s]).some(g=>g.value===h.value);He(()=>{m.cachedOptions.get(f)===h&&!v&&m.cachedOptions.delete(f)}),m.onOptionDestroy(f,h)});function c(){e.disabled!==!0&&n.groupDisabled!==!0&&m.handleOptionSelect(h,!0)}return{ns:t,currentLabel:r,itemSelected:i,isDisabled:l,select:m,hoverItem:a,visible:o,hover:u,selectOptionClick:c,states:n}}});function nN(e,t,n,r,i,l){return pt((V(),ce("li",{class:fe([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...m)=>e.hoverItem&&e.hoverItem(...m)),onClick:t[1]||(t[1]=Je((...m)=>e.selectOptionClick&&e.selectOptionClick(...m),["stop"]))},[Se(e.$slots,"default",{},()=>[oe("span",null,Ae(e.currentLabel),1)])],34)),[[Lt,e.visible]])}var kp=Le(tN,[["render",nN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const rN=Te({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=We(Pc),t=Ie("select"),n=ee(()=>e.props.popperClass),r=ee(()=>e.props.multiple),i=ee(()=>e.props.fitInputWidth),l=se("");function m(){var a;l.value=`${(a=e.selectWrapper)==null?void 0:a.offsetWidth}px`}return qe(()=>{m(),Cr(e.selectWrapper,m)}),{ns:t,minWidth:l,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function iN(e,t,n,r,i,l){return V(),ce("div",{class:fe([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Fe({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Se(e.$slots,"default")],6)}var oN=Le(rN,[["render",iN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function aN(e){const{t}=nn();return _t({options:new Map,cachedOptions:new Map,createdLabel:null,createdSelected:!1,selected:e.multiple?[]:{},inputLength:20,inputWidth:0,optionsCount:0,filteredOptionsCount:0,visible:!1,softFocus:!1,selectedLabel:"",hoverIndex:-1,query:"",previousQuery:null,inputHovering:!1,cachedPlaceHolder:"",currentPlaceholder:t("el.select.placeholder"),menuVisibleOnFocus:!1,isOnComposition:!1,isSilentBlur:!1,prefixWidth:11,tagInMultiLine:!1})}const sN=(e,t,n)=>{const{t:r}=nn(),i=Ie("select"),l=se(null),m=se(null),a=se(null),o=se(null),u=se(null),h=se(null),c=se(-1),f=en({query:""}),s=en(""),{form:d,formItem:v}=Ri(),g=ee(()=>!e.filterable||e.multiple||!t.visible),y=ee(()=>e.disabled||(d==null?void 0:d.disabled)),b=ee(()=>{const ye=e.multiple?Array.isArray(e.modelValue)&&e.modelValue.length>0:e.modelValue!==void 0&&e.modelValue!==null&&e.modelValue!=="";return e.clearable&&!y.value&&t.inputHovering&&ye}),_=ee(()=>e.remote&&e.filterable&&!e.remoteShowSuffix?"":e.suffixIcon),w=ee(()=>i.is("reverse",_.value&&t.visible&&e.suffixTransition)),S=ee(()=>e.remote?300:0),x=ee(()=>e.loading?e.loadingText||r("el.select.loading"):e.remote&&t.query===""&&t.options.size===0?!1:e.filterable&&t.query&&t.options.size>0&&t.filteredOptionsCount===0?e.noMatchText||r("el.select.noMatch"):t.options.size===0?e.noDataText||r("el.select.noData"):null),T=ee(()=>Array.from(t.options.values())),O=ee(()=>Array.from(t.cachedOptions.values())),A=ee(()=>{const ye=T.value.filter(Ce=>!Ce.created).some(Ce=>Ce.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!ye}),$=Un(),j=ee(()=>["small"].includes($.value)?"small":"default"),R=ee({get(){return t.visible&&x.value!==!1},set(ye){t.visible=ye}});xe([()=>y.value,()=>$.value,()=>d==null?void 0:d.size],()=>{He(()=>{F()})}),xe(()=>e.placeholder,ye=>{t.cachedPlaceHolder=t.currentPlaceholder=ye}),xe(()=>e.modelValue,(ye,Ce)=>{e.multiple&&(F(),ye&&ye.length>0||m.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",E(t.query))),Q(),e.filterable&&!e.multiple&&(t.inputLength=20),!gd(ye,Ce)&&e.validateEvent&&(v==null||v.validate("change").catch(Me=>void 0))},{flush:"post",deep:!0}),xe(()=>t.visible,ye=>{var Ce,Me,De;ye?((Me=(Ce=a.value)==null?void 0:Ce.updatePopper)==null||Me.call(Ce),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(De=m.value)==null||De.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),E(t.query),!e.multiple&&!e.remote&&(f.value.query="",Ra(f),Ra(s)))):(m.value&&m.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,I(),He(()=>{m.value&&m.value.value===""&&t.selected.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)}),e.multiple||(t.selected&&(e.filterable&&e.allowCreate&&t.createdSelected&&t.createdLabel?t.selectedLabel=t.createdLabel:t.selectedLabel=t.selected.currentLabel,e.filterable&&(t.query=t.selectedLabel)),e.filterable&&(t.currentPlaceholder=t.cachedPlaceHolder))),n.emit("visible-change",ye)}),xe(()=>t.options.entries(),()=>{var ye,Ce,Me;if(!ot)return;(Ce=(ye=a.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye),e.multiple&&F();const De=((Me=u.value)==null?void 0:Me.querySelectorAll("input"))||[];Array.from(De).includes(document.activeElement)||Q(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&te()},{flush:"post"}),xe(()=>t.hoverIndex,ye=>{typeof ye=="number"&&ye>-1?c.value=T.value[ye]||{}:c.value={},T.value.forEach(Ce=>{Ce.hover=c.value===Ce})});const F=()=>{e.collapseTags&&!e.filterable||He(()=>{var ye,Ce;if(!l.value)return;const Me=l.value.$el.querySelector("input"),De=o.value,lt=qI($.value||(d==null?void 0:d.size));Me.style.height=`${(t.selected.length===0?lt:Math.max(De?De.clientHeight+(De.clientHeight>lt?6:0):0,lt))-2}px`,t.tagInMultiLine=Number.parseFloat(Me.style.height)>=lt,t.visible&&x.value!==!1&&((Ce=(ye=a.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye))})},E=async ye=>{if(!(t.previousQuery===ye||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=ye;return}t.previousQuery=ye,He(()=>{var Ce,Me;t.visible&&((Me=(Ce=a.value)==null?void 0:Ce.updatePopper)==null||Me.call(Ce))}),t.hoverIndex=-1,e.multiple&&e.filterable&&He(()=>{const Ce=m.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Ce):Ce,W(),F()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(ye)):typeof e.filterMethod=="function"?(e.filterMethod(ye),Ra(s)):(t.filteredOptionsCount=t.optionsCount,f.value.query=ye,Ra(f),Ra(s)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await He(),te())}},W=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=m.value.value?"":t.cachedPlaceHolder)},te=()=>{const ye=T.value.filter(De=>De.visible&&!De.disabled&&!De.states.groupDisabled),Ce=ye.find(De=>De.created),Me=ye[0];t.hoverIndex=ve(T.value,Ce||Me)},Q=()=>{var ye;if(e.multiple)t.selectedLabel="";else{const Me=le(e.modelValue);(ye=Me.props)!=null&&ye.created?(t.createdLabel=Me.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=Me.currentLabel,t.selected=Me,e.filterable&&(t.query=t.selectedLabel);return}const Ce=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(Me=>{Ce.push(le(Me))}),t.selected=Ce,He(()=>{F()})},le=ye=>{let Ce;const Me=tu(ye).toLowerCase()==="object",De=tu(ye).toLowerCase()==="null",lt=tu(ye).toLowerCase()==="undefined";for(let rn=t.cachedOptions.size-1;rn>=0;rn--){const fn=O.value[rn];if(Me?Tn(fn.value,e.valueKey)===Tn(ye,e.valueKey):fn.value===ye){Ce={value:ye,currentLabel:fn.currentLabel,isDisabled:fn.isDisabled};break}}if(Ce)return Ce;const wt=Me?ye.label:!De&&!lt?ye:"",ut={value:ye,currentLabel:wt};return e.multiple&&(ut.hitState=!1),ut},I=()=>{setTimeout(()=>{const ye=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Ce=>T.value.findIndex(Me=>Tn(Me,ye)===Tn(Ce,ye)))):t.hoverIndex=-1:t.hoverIndex=T.value.findIndex(Ce=>ke(Ce)===ke(t.selected))},300)},z=()=>{var ye,Ce;M(),(Ce=(ye=a.value)==null?void 0:ye.updatePopper)==null||Ce.call(ye),e.multiple&&!e.filterable&&F()},M=()=>{var ye;t.inputWidth=(ye=l.value)==null?void 0:ye.$el.getBoundingClientRect().width},L=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,E(t.query))},J=aa(()=>{L()},S.value),U=aa(ye=>{E(ye.target.value)},S.value),P=ye=>{gd(e.modelValue,ye)||n.emit(nr,ye)},q=ye=>{if(ye.target.value.length<=0&&!H()){const Ce=e.modelValue.slice();Ce.pop(),n.emit(at,Ce),P(Ce)}ye.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},Z=(ye,Ce)=>{const Me=t.selected.indexOf(Ce);if(Me>-1&&!y.value){const De=e.modelValue.slice();De.splice(Me,1),n.emit(at,De),P(De),n.emit("remove-tag",Ce.value)}ye.stopPropagation()},re=ye=>{ye.stopPropagation();const Ce=e.multiple?[]:"";if(typeof Ce!="string")for(const Me of t.selected)Me.isDisabled&&Ce.push(Me.value);n.emit(at,Ce),P(Ce),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},de=(ye,Ce)=>{var Me;if(e.multiple){const De=(e.modelValue||[]).slice(),lt=ve(De,ye.value);lt>-1?De.splice(lt,1):(e.multipleLimit<=0||De.length<e.multipleLimit)&&De.push(ye.value),n.emit(at,De),P(De),ye.created&&(t.query="",E(""),t.inputLength=20),e.filterable&&((Me=m.value)==null||Me.focus())}else n.emit(at,ye.value),P(ye.value),t.visible=!1;t.isSilentBlur=Ce,me(),!t.visible&&He(()=>{Y(ye)})},ve=(ye=[],Ce)=>{if(!Qe(Ce))return ye.indexOf(Ce);const Me=e.valueKey;let De=-1;return ye.some((lt,wt)=>Ze(Tn(lt,Me))===Tn(Ce,Me)?(De=wt,!0):!1),De},me=()=>{t.softFocus=!0;const ye=m.value||l.value;ye&&(ye==null||ye.focus())},Y=ye=>{var Ce,Me,De,lt,wt;const ut=Array.isArray(ye)?ye[0]:ye;let rn=null;if(ut!=null&&ut.value){const fn=T.value.filter(Lo=>Lo.value===ut.value);fn.length>0&&(rn=fn[0].$el)}if(a.value&&rn){const fn=(lt=(De=(Me=(Ce=a.value)==null?void 0:Ce.popperRef)==null?void 0:Me.contentRef)==null?void 0:De.querySelector)==null?void 0:lt.call(De,`.${i.be("dropdown","wrap")}`);fn&&VI(fn,rn)}(wt=h.value)==null||wt.handleScroll()},K=ye=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(ye.value,ye),t.cachedOptions.set(ye.value,ye)},k=(ye,Ce)=>{t.options.get(ye)===Ce&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(ye))},N=ye=>{ye.code!==Ct.backspace&&H(!1),t.inputLength=m.value.value.length*15+20,F()},H=ye=>{if(!Array.isArray(t.selected))return;const Ce=t.selected[t.selected.length-1];if(!!Ce)return ye===!0||ye===!1?(Ce.hitState=ye,ye):(Ce.hitState=!Ce.hitState,Ce.hitState)},D=ye=>{const Ce=ye.target.value;if(ye.type==="compositionend")t.isOnComposition=!1,He(()=>E(Ce));else{const Me=Ce[Ce.length-1]||"";t.isOnComposition=!F_(Me)}},B=()=>{He(()=>Y(t.selected))},X=ye=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",ye))},ae=()=>{var ye;t.visible=!1,(ye=l.value)==null||ye.blur()},ne=ye=>{He(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",ye)}),t.softFocus=!1},G=ye=>{re(ye)},pe=()=>{t.visible=!1},ie=ye=>{t.visible&&(ye.preventDefault(),ye.stopPropagation(),t.visible=!1)},ge=()=>{var ye;y.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&((ye=m.value||l.value)==null||ye.focus()))},we=()=>{t.visible?T.value[t.hoverIndex]&&de(T.value[t.hoverIndex],void 0):ge()},ke=ye=>Qe(ye.value)?Tn(ye.value,e.valueKey):ye.value,Ee=ee(()=>T.value.filter(ye=>ye.visible).every(ye=>ye.disabled)),Pe=ye=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Ee.value){ye==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):ye==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Ce=T.value[t.hoverIndex];(Ce.disabled===!0||Ce.states.groupDisabled===!0||!Ce.visible)&&Pe(ye),He(()=>Y(c.value))}};return{optionsArray:T,selectSize:$,handleResize:z,debouncedOnInputChange:J,debouncedQueryChange:U,deletePrevTag:q,deleteTag:Z,deleteSelected:re,handleOptionSelect:de,scrollToOption:Y,readonly:g,resetInputHeight:F,showClose:b,iconComponent:_,iconReverse:w,showNewOption:A,collapseTagSize:j,setSelected:Q,managePlaceholder:W,selectDisabled:y,emptyText:x,toggleLastOptionHitState:H,resetInputState:N,handleComposition:D,onOptionCreate:K,onOptionDestroy:k,handleMenuEnter:B,handleFocus:X,blur:ae,handleBlur:ne,handleClearClick:G,handleClose:pe,handleKeydownEscape:ie,toggleMenu:ge,selectOption:we,getValueKey:ke,navigateOptions:Pe,dropMenuVisible:R,queryChange:f,groupQueryChange:s,reference:l,input:m,tooltipRef:a,tags:o,selectWrapper:u,scrollbar:h}},Km="ElSelect",lN=Te({name:Km,componentName:Km,components:{ElInput:Ao,ElSelectMenu:oN,ElOption:kp,ElTag:c$,ElScrollbar:i1,ElTooltip:Sr,ElIcon:Re},directives:{ClickOutside:k1},props:{name:String,id:String,modelValue:{type:[Array,String,Number,Boolean,Object],default:void 0},autocomplete:{type:String,default:"off"},automaticDropdown:Boolean,size:{type:String,validator:kc},effect:{type:String,default:"light"},disabled:Boolean,clearable:Boolean,filterable:Boolean,allowCreate:Boolean,loading:Boolean,popperClass:{type:String,default:""},remote:Boolean,loadingText:String,noMatchText:String,noDataText:String,remoteMethod:Function,filterMethod: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:{type:Boolean,default:!1},teleported:Dn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Bt,default:bc},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Bt,default:mc},tagType:{...L1.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:Sa,default:"bottom-start"}},emits:[at,nr,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Ie("select"),r=Ie("input"),{t:i}=nn(),l=aN(e),{optionsArray:m,selectSize:a,readonly:o,handleResize:u,collapseTagSize:h,debouncedOnInputChange:c,debouncedQueryChange:f,deletePrevTag:s,deleteTag:d,deleteSelected:v,handleOptionSelect:g,scrollToOption:y,setSelected:b,resetInputHeight:_,managePlaceholder:w,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:O,showNewOption:A,emptyText:$,toggleLastOptionHitState:j,resetInputState:R,handleComposition:F,onOptionCreate:E,onOptionDestroy:W,handleMenuEnter:te,handleFocus:Q,blur:le,handleBlur:I,handleClearClick:z,handleClose:M,handleKeydownEscape:L,toggleMenu:J,selectOption:U,getValueKey:P,navigateOptions:q,dropMenuVisible:Z,reference:re,input:de,tooltipRef:ve,tags:me,selectWrapper:Y,scrollbar:K,queryChange:k,groupQueryChange:N}=sN(e,l,t),{focus:H}=nM(re),{inputWidth:D,selected:B,inputLength:X,filteredOptionsCount:ae,visible:ne,softFocus:G,selectedLabel:pe,hoverIndex:ie,query:ge,inputHovering:we,currentPlaceholder:ke,menuVisibleOnFocus:Ee,isOnComposition:Pe,isSilentBlur:ye,options:Ce,cachedOptions:Me,optionsCount:De,prefixWidth:lt,tagInMultiLine:wt}=zn(l),ut=ee(()=>{const _n=[n.b()],or=C(a);return or&&_n.push(n.m(or)),e.disabled&&_n.push(n.m("disabled")),_n}),rn=ee(()=>({maxWidth:`${C(D)-32}px`,width:"100%"})),fn=ee(()=>({maxWidth:`${C(D)>123?C(D)-123:C(D)-75}px`}));st(Pc,_t({props:e,options:Ce,optionsArray:m,cachedOptions:Me,optionsCount:De,filteredOptionsCount:ae,hoverIndex:ie,handleOptionSelect:g,onOptionCreate:E,onOptionDestroy:W,selectWrapper:Y,selected:B,setSelected:b,queryChange:k,groupQueryChange:N})),qe(()=>{l.cachedPlaceHolder=ke.value=e.placeholder||i("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(ke.value=""),Cr(Y,u),e.remote&&e.multiple&&_(),He(()=>{const _n=re.value&&re.value.$el;if(!!_n&&(D.value=_n.getBoundingClientRect().width,t.slots.prefix)){const or=_n.querySelector(`.${r.e("prefix")}`);lt.value=Math.max(or.getBoundingClientRect().width+5,30)}}),b()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(at,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(at,"");const Lo=ee(()=>{var _n,or;return(or=(_n=ve.value)==null?void 0:_n.popperRef)==null?void 0:or.contentRef});return{tagInMultiLine:wt,prefixWidth:lt,selectSize:a,readonly:o,handleResize:u,collapseTagSize:h,debouncedOnInputChange:c,debouncedQueryChange:f,deletePrevTag:s,deleteTag:d,deleteSelected:v,handleOptionSelect:g,scrollToOption:y,inputWidth:D,selected:B,inputLength:X,filteredOptionsCount:ae,visible:ne,softFocus:G,selectedLabel:pe,hoverIndex:ie,query:ge,inputHovering:we,currentPlaceholder:ke,menuVisibleOnFocus:Ee,isOnComposition:Pe,isSilentBlur:ye,options:Ce,resetInputHeight:_,managePlaceholder:w,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:O,showNewOption:A,emptyText:$,toggleLastOptionHitState:j,resetInputState:R,handleComposition:F,handleMenuEnter:te,handleFocus:Q,blur:le,handleBlur:I,handleClearClick:z,handleClose:M,handleKeydownEscape:L,toggleMenu:J,selectOption:U,getValueKey:P,navigateOptions:q,dropMenuVisible:Z,focus:H,reference:re,input:de,tooltipRef:ve,popperPaneRef:Lo,tags:me,selectWrapper:Y,scrollbar:K,wrapperKls:ut,selectTagsStyle:rn,nsSelect:n,tagTextStyle:fn}}}),uN=["disabled","autocomplete"],cN={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function fN(e,t,n,r,i,l){const m=ft("el-tag"),a=ft("el-tooltip"),o=ft("el-icon"),u=ft("el-input"),h=ft("el-option"),c=ft("el-scrollbar"),f=ft("el-select-menu"),s=eb("click-outside");return pt((V(),ce("div",{ref:"selectWrapper",class:fe(e.wrapperKls),onClick:t[22]||(t[22]=Je((...d)=>e.toggleMenu&&e.toggleMenu(...d),["stop"]))},[ue(a,{ref:"tooltipRef",visible:e.dropMenuVisible,placement:e.placement,teleported:e.teleported,"popper-class":[e.nsSelect.e("popper"),e.popperClass],"fallback-placements":["bottom-start","top-start","right","left"],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,onShow:e.handleMenuEnter},{default:he(()=>[oe("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=d=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=d=>e.inputHovering=!1)},[e.multiple?(V(),ce("div",{key:0,ref:"tags",class:fe(e.nsSelect.e("tags")),style:Fe(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(V(),ce("span",{key:0,class:fe([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[ue(m,{closable:!e.selectDisabled&&!e.selected[0].isDisabled,size:e.collapseTagSize,hit:e.selected[0].hitState,type:e.tagType,"disable-transitions":"",onClose:t[0]||(t[0]=d=>e.deleteTag(d,e.selected[0]))},{default:he(()=>[oe("span",{class:fe(e.nsSelect.e("tags-text")),style:Fe(e.tagTextStyle)},Ae(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(V(),_e(m,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:he(()=>[e.collapseTagsTooltip?(V(),_e(a,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:he(()=>[oe("span",{class:fe(e.nsSelect.e("tags-text"))},"+ "+Ae(e.selected.length-1),3)]),content:he(()=>[oe("div",{class:fe(e.nsSelect.e("collapse-tags"))},[(V(!0),ce(ze,null,Rt(e.selected.slice(1),(d,v)=>(V(),ce("div",{key:v,class:fe(e.nsSelect.e("collapse-tag"))},[(V(),_e(m,{key:e.getValueKey(d),class:"in-tooltip",closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,hit:d.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:g=>e.deleteTag(g,d)},{default:he(()=>[oe("span",{class:fe(e.nsSelect.e("tags-text")),style:Fe({maxWidth:e.inputWidth-75+"px"})},Ae(d.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(V(),ce("span",{key:1,class:fe(e.nsSelect.e("tags-text"))},"+ "+Ae(e.selected.length-1),3))]),_:1},8,["size","type"])):be("v-if",!0)],2)):be("v-if",!0),be(" <div> "),e.collapseTags?be("v-if",!0):(V(),_e(tn,{key:1,onAfterLeave:e.resetInputHeight},{default:he(()=>[oe("span",{class:fe([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(V(!0),ce(ze,null,Rt(e.selected,d=>(V(),_e(m,{key:e.getValueKey(d),closable:!e.selectDisabled&&!d.isDisabled,size:e.collapseTagSize,hit:d.hitState,type:e.tagType,"disable-transitions":"",onClose:v=>e.deleteTag(v,d)},{default:he(()=>[oe("span",{class:fe(e.nsSelect.e("tags-text")),style:Fe({maxWidth:e.inputWidth-75+"px"})},Ae(d.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),be(" </div> "),e.filterable?pt((V(),ce("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=d=>e.query=d),type:"text",class:fe([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Fe({marginLeft:e.prefixWidth&&!e.selected.length||e.tagInMultiLine?`${e.prefixWidth}px`:"",flexGrow:1,width:`${e.inputLength/(e.inputWidth-32)}%`,maxWidth:`${e.inputWidth-42}px`}),onFocus:t[2]||(t[2]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[3]||(t[3]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onKeyup:t[4]||(t[4]=(...d)=>e.managePlaceholder&&e.managePlaceholder(...d)),onKeydown:[t[5]||(t[5]=(...d)=>e.resetInputState&&e.resetInputState(...d)),t[6]||(t[6]=Et(Je(d=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=Et(Je(d=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=Et((...d)=>e.handleKeydownEscape&&e.handleKeydownEscape(...d),["esc"])),t[9]||(t[9]=Et(Je((...d)=>e.selectOption&&e.selectOption(...d),["stop","prevent"]),["enter"])),t[10]||(t[10]=Et((...d)=>e.deletePrevTag&&e.deletePrevTag(...d),["delete"])),t[11]||(t[11]=Et(d=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionupdate:t[13]||(t[13]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionend:t[14]||(t[14]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onInput:t[15]||(t[15]=(...d)=>e.debouncedQueryChange&&e.debouncedQueryChange(...d))},null,46,uN)),[[dx,e.query]]):be("v-if",!0)],6)):be("v-if",!0),ue(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=d=>e.selectedLabel=d),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:fe([e.nsSelect.is("focus",e.visible)]),tabindex:e.multiple&&e.filterable?-1:void 0,onFocus:e.handleFocus,onBlur:e.handleBlur,onInput:e.debouncedOnInputChange,onPaste:e.debouncedOnInputChange,onCompositionstart:e.handleComposition,onCompositionupdate:e.handleComposition,onCompositionend:e.handleComposition,onKeydown:[t[17]||(t[17]=Et(Je(d=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Et(Je(d=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Et(Je(e.selectOption,["stop","prevent"]),["enter"]),Et(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Et(d=>e.visible=!1,["tab"]))]},Au({suffix:he(()=>[e.iconComponent&&!e.showClose?(V(),_e(o,{key:0,class:fe([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:he(()=>[(V(),_e(yt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.showClose&&e.clearIcon?(V(),_e(o,{key:1,class:fe([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:he(()=>[(V(),_e(yt(e.clearIcon)))]),_:1},8,["class","onClick"])):be("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:he(()=>[oe("div",cN,[Se(e.$slots,"prefix")])])}:void 0]),1032,["id","modelValue","placeholder","name","autocomplete","size","disabled","readonly","class","tabindex","onFocus","onBlur","onInput","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onKeydown"])],32)]),content:he(()=>[ue(f,null,{default:he(()=>[pt(ue(c,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:fe([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:he(()=>[e.showNewOption?(V(),_e(h,{key:0,value:e.query,created:!0},null,8,["value"])):be("v-if",!0),Se(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[Lt,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(V(),ce(ze,{key:0},[e.$slots.empty?Se(e.$slots,"empty",{key:0}):(V(),ce("p",{key:1,class:fe(e.nsSelect.be("dropdown","empty"))},Ae(e.emptyText),3))],64)):be("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[s,e.handleClose,e.popperPaneRef]])}var dN=Le(lN,[["render",fN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const hN=Te({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Ie("select"),n=se(!0),r=gt(),i=se([]);st(Y1,_t({...zn(e)}));const l=We(Pc);qe(()=>{i.value=m(r.subTree)});const m=o=>{const u=[];return Array.isArray(o.children)&&o.children.forEach(h=>{var c;h.type&&h.type.name==="ElOption"&&h.component&&h.component.proxy?u.push(h.component.proxy):(c=h.children)!=null&&c.length&&u.push(...m(h))}),u},{groupQueryChange:a}=Ze(l);return xe(a,()=>{n.value=i.value.some(o=>o.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function pN(e,t,n,r,i,l){return pt((V(),ce("ul",{class:fe(e.ns.be("group","wrap"))},[oe("li",{class:fe(e.ns.be("group","title"))},Ae(e.label),3),oe("li",null,[oe("ul",{class:fe(e.ns.b("group"))},[Se(e.$slots,"default")],2)])],2)),[[Lt,e.visible]])}var X1=Le(hN,[["render",pN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const K1=vt(dN,{Option:kp,OptionGroup:X1}),G1=Hn(kp);Hn(X1);const Ep=()=>We(W_,{}),gN=Be({pageSize:{type:Number,required:!0},pageSizes:{type:Oe(Array),default:()=>Ht([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),vN={name:"ElPaginationSizes"},mN=Te({...vN,props:gN,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=nn(),i=Ie("pagination"),l=Ep(),m=se(n.pageSize);xe(()=>n.pageSizes,(u,h)=>{if(!gd(u,h)&&Array.isArray(u)){const c=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",c)}}),xe(()=>n.pageSize,u=>{m.value=u});const a=ee(()=>n.pageSizes);function o(u){var h;u!==m.value&&(m.value=u,(h=l.handleSizeChange)==null||h.call(l,Number(u)))}return(u,h)=>(V(),ce("span",{class:fe(C(i).e("sizes"))},[ue(C(K1),{"model-value":m.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,"validate-event":!1,onChange:o},{default:he(()=>[(V(!0),ce(ze,null,Rt(C(a),c=>(V(),_e(C(G1),{key:c,value:c,label:c+C(r)("el.pagination.pagesize")},null,8,["value","label"]))),128))]),_:1},8,["model-value","disabled","popper-class","size"])],2))}});var yN=Le(mN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const bN=["disabled"],_N={name:"ElPaginationJumper"},wN=Te({..._N,setup(e){const{t}=nn(),n=Ie("pagination"),{pageCount:r,disabled:i,currentPage:l,changeEvent:m}=Ep(),a=se(),o=ee(()=>{var c;return(c=a.value)!=null?c:l==null?void 0:l.value});function u(c){a.value=+c}function h(c){c=Math.trunc(+c),m==null||m(+c),a.value=void 0}return(c,f)=>(V(),ce("span",{class:fe(C(n).e("jump")),disabled:C(i)},[Ne(Ae(C(t)("el.pagination.goto"))+" ",1),ue(C(Ao),{size:"small",class:fe([C(n).e("editor"),C(n).is("in-pagination")]),min:1,max:C(r),disabled:C(i),"model-value":C(o),"validate-event":!1,type:"number","onUpdate:modelValue":u,onChange:h},null,8,["class","max","disabled","model-value"]),Ne(" "+Ae(C(t)("el.pagination.pageClassifier")),1)],10,bN))}});var CN=Le(wN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const SN=Be({total:{type:Number,default:1e3}}),xN=["disabled"],TN={name:"ElPaginationTotal"},kN=Te({...TN,props:SN,setup(e){const{t}=nn(),n=Ie("pagination"),{disabled:r}=Ep();return(i,l)=>(V(),ce("span",{class:fe(C(n).e("total")),disabled:C(r)},Ae(C(t)("el.pagination.total",{total:i.total})),11,xN))}});var EN=Le(kN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const ON=Be({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),AN=["onKeyup"],PN=["aria-current","tabindex"],IN=["tabindex"],MN=["aria-current","tabindex"],LN=["tabindex"],RN=["aria-current","tabindex"],DN={name:"ElPaginationPager"},$N=Te({...DN,props:ON,emits:["change"],setup(e,{emit:t}){const n=e,r=Ie("pager"),i=Ie("icon"),l=se(!1),m=se(!1),a=se(!1),o=se(!1),u=se(!1),h=se(!1),c=ee(()=>{const y=n.pagerCount,b=(y-1)/2,_=Number(n.currentPage),w=Number(n.pageCount);let S=!1,x=!1;w>y&&(_>y-b&&(S=!0),_<w-b&&(x=!0));const T=[];if(S&&!x){const O=w-(y-2);for(let A=O;A<w;A++)T.push(A)}else if(!S&&x)for(let O=2;O<y;O++)T.push(O);else if(S&&x){const O=Math.floor(y/2)-1;for(let A=_-O;A<=_+O;A++)T.push(A)}else for(let O=2;O<w;O++)T.push(O);return T}),f=ee(()=>n.disabled?-1:0);xo(()=>{const y=(n.pagerCount-1)/2;l.value=!1,m.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-y&&(l.value=!0),n.currentPage<n.pageCount-y&&(m.value=!0))});function s(y=!1){n.disabled||(y?a.value=!0:o.value=!0)}function d(y=!1){y?u.value=!0:h.value=!0}function v(y){const b=y.target;if(b.tagName.toLowerCase()==="li"&&Array.from(b.classList).includes("number")){const _=Number(b.textContent);_!==n.currentPage&&t("change",_)}else b.tagName.toLowerCase()==="li"&&Array.from(b.classList).includes("more")&&g(y)}function g(y){const b=y.target;if(b.tagName.toLowerCase()==="ul"||n.disabled)return;let _=Number(b.textContent);const w=n.pageCount,S=n.currentPage,x=n.pagerCount-2;b.className.includes("more")&&(b.className.includes("quickprev")?_=S-x:b.className.includes("quicknext")&&(_=S+x)),Number.isNaN(+_)||(_<1&&(_=1),_>w&&(_=w)),_!==S&&t("change",_)}return(y,b)=>(V(),ce("ul",{class:fe(C(r).b()),onClick:g,onKeyup:Et(v,["enter"])},[y.pageCount>0?(V(),ce("li",{key:0,class:fe([[C(r).is("active",y.currentPage===1),C(r).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===1,tabindex:C(f)}," 1 ",10,PN)):be("v-if",!0),l.value?(V(),ce("li",{key:1,class:fe(["more","btn-quickprev",C(i).b(),C(r).is("disabled",y.disabled)]),tabindex:C(f),onMouseenter:b[0]||(b[0]=_=>s(!0)),onMouseleave:b[1]||(b[1]=_=>a.value=!1),onFocus:b[2]||(b[2]=_=>d(!0)),onBlur:b[3]||(b[3]=_=>u.value=!1)},[a.value||u.value?(V(),_e(C(Wk),{key:0})):(V(),_e(C(fv),{key:1}))],42,IN)):be("v-if",!0),(V(!0),ce(ze,null,Rt(C(c),_=>(V(),ce("li",{key:_,class:fe([[C(r).is("active",y.currentPage===_),C(r).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===_,tabindex:C(f)},Ae(_),11,MN))),128)),m.value?(V(),ce("li",{key:2,class:fe(["more","btn-quicknext",C(i).b(),C(r).is("disabled",y.disabled)]),tabindex:C(f),onMouseenter:b[4]||(b[4]=_=>s()),onMouseleave:b[5]||(b[5]=_=>o.value=!1),onFocus:b[6]||(b[6]=_=>d()),onBlur:b[7]||(b[7]=_=>h.value=!1)},[o.value||h.value?(V(),_e(C(Zk),{key:0})):(V(),_e(C(fv),{key:1}))],42,LN)):be("v-if",!0),y.pageCount>1?(V(),ce("li",{key:3,class:fe([[C(r).is("active",y.currentPage===y.pageCount),C(r).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===y.pageCount,tabindex:C(f)},Ae(y.pageCount),11,RN)):be("v-if",!0)],42,AN))}});var BN=Le($N,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const on=e=>typeof e!="number",FN=Be({total:Number,pageSize:Number,defaultPageSize:Number,currentPage:Number,defaultCurrentPage:Number,pageCount:Number,pagerCount:{type:Number,validator:e=>typeof e=="number"&&Math.trunc(e)===e&&e>4&&e<22&&e%2===1,default:7},layout:{type:String,default:["prev","pager","next","jumper","->","total"].join(", ")},pageSizes:{type:Oe(Array),default:()=>Ht([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Bt,default:()=>yc},nextText:{type:String,default:""},nextIcon:{type:Bt,default:()=>ba},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),zN={"update:current-page":e=>typeof e=="number","update:page-size":e=>typeof e=="number","size-change":e=>typeof e=="number","current-change":e=>typeof e=="number","prev-click":e=>typeof e=="number","next-click":e=>typeof e=="number"},Gm="ElPagination";var NN=Te({name:Gm,props:FN,emits:zN,setup(e,{emit:t,slots:n}){const{t:r}=nn(),i=Ie("pagination"),l=gt().vnode.props||{},m="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,a="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,o=ee(()=>{if(on(e.total)&&on(e.pageCount)||!on(e.currentPage)&&!m)return!1;if(e.layout.includes("sizes")){if(on(e.pageCount)){if(!on(e.total)&&!on(e.pageSize)&&!a)return!1}else if(!a)return!1}return!0}),u=se(on(e.defaultPageSize)?10:e.defaultPageSize),h=se(on(e.defaultCurrentPage)?1:e.defaultCurrentPage),c=ee({get(){return on(e.pageSize)?u.value:e.pageSize},set(_){on(e.pageSize)&&(u.value=_),a&&(t("update:page-size",_),t("size-change",_))}}),f=ee(()=>{let _=0;return on(e.pageCount)?on(e.total)||(_=Math.max(1,Math.ceil(e.total/c.value))):_=e.pageCount,_}),s=ee({get(){return on(e.currentPage)?h.value:e.currentPage},set(_){let w=_;_<1?w=1:_>f.value&&(w=f.value),on(e.currentPage)&&(h.value=w),m&&(t("update:current-page",w),t("current-change",w))}});xe(f,_=>{s.value>_&&(s.value=_)});function d(_){s.value=_}function v(_){c.value=_;const w=f.value;s.value>w&&(s.value=w)}function g(){e.disabled||(s.value-=1,t("prev-click",s.value))}function y(){e.disabled||(s.value+=1,t("next-click",s.value))}function b(_,w){_&&(_.props||(_.props={}),_.props.class=[_.props.class,w].join(" "))}return st(W_,{pageCount:f,disabled:ee(()=>e.disabled),currentPage:s,changeEvent:d,handleSizeChange:v}),()=>{var _,w;if(!o.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const S=[],x=[],T=ht("div",{class:i.e("rightwrapper")},x),O={prev:ht(Xz,{disabled:e.disabled,currentPage:s.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:g}),jumper:ht(CN),pager:ht(BN,{currentPage:s.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:d,disabled:e.disabled}),next:ht(Qz,{disabled:e.disabled,currentPage:s.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:ht(yN,{pageSize:c.value,pageSizes:e.pageSizes,popperClass:e.popperClass,disabled:e.disabled,size:e.small?"small":"default"}),slot:(w=(_=n==null?void 0:n.default)==null?void 0:_.call(n))!=null?w:null,total:ht(EN,{total:on(e.total)?0:e.total})},A=e.layout.split(",").map(j=>j.trim());let $=!1;return A.forEach(j=>{if(j==="->"){$=!0;return}$?x.push(O[j]):S.push(O[j])}),b(S[0],i.is("first")),b(S[S.length-1],i.is("last")),$&&x.length>0&&(b(x[0],i.is("first")),b(x[x.length-1],i.is("last")),S.push(T)),ht("div",{role:"pagination","aria-label":"pagination",class:[i.b(),i.is("background",e.background),{[i.m("small")]:e.small}]},S)}}});const jN=vt(NN),VN=Be({trigger:Bs.trigger,placement:lf.placement,disabled:Bs.disabled,visible:Dn.visible,transition:Dn.transition,popperOptions:lf.popperOptions,tabindex:lf.tabindex,content:Dn.content,popperStyle:Dn.popperStyle,popperClass:Dn.popperClass,enterable:{...Dn.enterable,default:!0},effect:{...Dn.effect,default:"light"},teleported:Dn.teleported,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}}),HN={"update:visible":e=>Pn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},UN={name:"ElPopover"},WN=Te({...UN,props:VN,emits:HN,setup(e,{expose:t,emit:n}){const r=e,i="onUpdate:visible",l=ee(()=>r[i]),m=Ie("popover"),a=se(),o=ee(()=>{var y;return(y=C(a))==null?void 0:y.popperRef}),u=ee(()=>[{width:_r(r.width)},r.popperStyle]),h=ee(()=>[m.b(),r.popperClass,{[m.m("plain")]:!!r.content}]),c=ee(()=>r.transition===`${m.namespace.value}-fade-in-linear`),f=()=>{var y;(y=a.value)==null||y.hide()},s=()=>{n("before-enter")},d=()=>{n("before-leave")},v=()=>{n("after-enter")},g=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:o,hide:f}),(y,b)=>(V(),_e(C(Sr),gn({ref_key:"tooltipRef",ref:a},y.$attrs,{trigger:y.trigger,placement:y.placement,disabled:y.disabled,visible:y.visible,transition:y.transition,"popper-options":y.popperOptions,tabindex:y.tabindex,content:y.content,offset:y.offset,"show-after":y.showAfter,"hide-after":y.hideAfter,"auto-close":y.autoClose,"show-arrow":y.showArrow,"aria-label":y.title,effect:y.effect,enterable:y.enterable,"popper-class":C(h),"popper-style":C(u),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":C(c),"onUpdate:visible":C(l),onBeforeShow:s,onBeforeHide:d,onShow:v,onHide:g}),{content:he(()=>[y.title?(V(),ce("div",{key:0,class:fe(C(m).e("title")),role:"title"},Ae(y.title),3)):be("v-if",!0),Se(y.$slots,"default",{},()=>[Ne(Ae(y.content),1)])]),default:he(()=>[y.$slots.reference?Se(y.$slots,"reference",{key:0}):be("v-if",!0)]),_:3},16,["trigger","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","persistent","gpu-acceleration","onUpdate:visible"]))}});var YN=Le(WN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const qm=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var XN={mounted(e,t){qm(e,t)},updated(e,t){qm(e,t)}};const KN="popover",GN=XI(XN,KN),Nl=vt(YN,{directive:GN}),qN=Be({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:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Oe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Oe([String,Array,Function]),default:""},format:{type:Oe(Function),default:e=>`${e}%`}}),ZN=["aria-valuenow"],JN={viewBox:"0 0 100 100"},QN=["d","stroke","stroke-width"],ej=["d","stroke","opacity","stroke-linecap","stroke-width"],tj={key:0},nj={name:"ElProgress"},rj=Te({...nj,props:qN,setup(e){const t=e,n={success:"#13ce66",exception:"#ff4949",warning:"#e6a23c",default:"#20a0ff"},r=Ie("progress"),i=ee(()=>({width:`${t.percentage}%`,animationDuration:`${t.duration}s`,backgroundColor:b(t.percentage)})),l=ee(()=>(t.strokeWidth/t.width*100).toFixed(1)),m=ee(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),a=ee(()=>{const _=m.value,w=t.type==="dashboard";return`
|
||
M 50 50
|
||
m 0 ${w?"":"-"}${_}
|
||
a ${_} ${_} 0 1 1 0 ${w?"-":""}${_*2}
|
||
a ${_} ${_} 0 1 1 0 ${w?"":"-"}${_*2}
|
||
`}),o=ee(()=>2*Math.PI*m.value),u=ee(()=>t.type==="dashboard"?.75:1),h=ee(()=>`${-1*o.value*(1-u.value)/2}px`),c=ee(()=>({strokeDasharray:`${o.value*u.value}px, ${o.value}px`,strokeDashoffset:h.value})),f=ee(()=>({strokeDasharray:`${o.value*u.value*(t.percentage/100)}px, ${o.value}px`,strokeDashoffset:h.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),s=ee(()=>{let _;return t.color?_=b(t.percentage):_=n[t.status]||n.default,_}),d=ee(()=>t.status==="warning"?Xh:t.type==="line"?t.status==="success"?al:bc:t.status==="success"?Hb:yr),v=ee(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),g=ee(()=>t.format(t.percentage));function y(_){const w=100/_.length;return _.map((x,T)=>Ye(x)?{color:x,percentage:(T+1)*w}:x).sort((x,T)=>x.percentage-T.percentage)}const b=_=>{var w;const{color:S}=t;if(Ve(S))return S(_);if(Ye(S))return S;{const x=y(S);for(const T of x)if(T.percentage>_)return T.color;return(w=x[x.length-1])==null?void 0:w.color}};return(_,w)=>(V(),ce("div",{class:fe([C(r).b(),C(r).m(_.type),C(r).is(_.status),{[C(r).m("without-text")]:!_.showText,[C(r).m("text-inside")]:_.textInside}]),role:"progressbar","aria-valuenow":_.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[_.type==="line"?(V(),ce("div",{key:0,class:fe(C(r).b("bar"))},[oe("div",{class:fe(C(r).be("bar","outer")),style:Fe({height:`${_.strokeWidth}px`})},[oe("div",{class:fe([C(r).be("bar","inner"),{[C(r).bem("bar","inner","indeterminate")]:_.indeterminate}]),style:Fe(C(i))},[(_.showText||_.$slots.default)&&_.textInside?(V(),ce("div",{key:0,class:fe(C(r).be("bar","innerText"))},[Se(_.$slots,"default",{percentage:_.percentage},()=>[oe("span",null,Ae(C(g)),1)])],2)):be("v-if",!0)],6)],6)],2)):(V(),ce("div",{key:1,class:fe(C(r).b("circle")),style:Fe({height:`${_.width}px`,width:`${_.width}px`})},[(V(),ce("svg",JN,[oe("path",{class:fe(C(r).be("circle","track")),d:C(a),stroke:`var(${C(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":C(l),fill:"none",style:Fe(C(c))},null,14,QN),oe("path",{class:fe(C(r).be("circle","path")),d:C(a),stroke:C(s),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":C(l),style:Fe(C(f))},null,14,ej)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(V(),ce("div",{key:2,class:fe(C(r).e("text")),style:Fe({fontSize:`${C(v)}px`})},[Se(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(V(),_e(C(Re),{key:1},{default:he(()=>[(V(),_e(yt(C(d))))]),_:1})):(V(),ce("span",tj,Ae(C(g)),1))])],6)):be("v-if",!0)],10,ZN))}});var ij=Le(rj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const q1=vt(ij),oj=["start","center","end","space-around","space-between","space-evenly"],aj=["top","middle","bottom"],sj=Be({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:oj,default:"start"},align:{type:String,values:aj,default:"top"}}),lj={name:"ElRow"},uj=Te({...lj,props:sj,setup(e){const t=e,n=Ie("row"),r=ee(()=>t.gutter);st(X_,{gutter:r});const i=ee(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l});return(l,m)=>(V(),_e(yt(l.tag),{class:fe([C(n).b(),C(n).is(`justify-${t.justify}`,l.justify!=="start"),C(n).is(`align-${t.align}`,l.align!=="top")]),style:Fe(C(i))},{default:he(()=>[Se(l.$slots,"default")]),_:3},8,["class","style"]))}});var cj=Le(uj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const fj=vt(cj),dj=Be({modelValue:{type:Oe([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:Oi,inputSize:Oi,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Oe(Function),default:void 0},disabled:Boolean,range:Boolean,vertical:Boolean,height:String,debounce:{type:Number,default:300},label:{type:String,default:void 0},rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Oe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:Sa,default:"top"},marks:{type:Oe(Object)},validateEvent:{type:Boolean,default:!0}}),hf=e=>et(e)||je(e)&&e.every(et),hj={[at]:hf,[ho]:hf,[nr]:hf},pj=(e,t,n)=>{const r=se();return qe(async()=>{e.range?(Array.isArray(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]):(typeof e.modelValue!="number"||Number.isNaN(e.modelValue)?t.firstValue=e.min:t.firstValue=Math.min(e.max,Math.max(e.min,e.modelValue)),t.oldValue=t.firstValue),bt(window,"resize",n),await He(),n()}),{sliderWrapper:r}},gj=e=>ee(()=>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]})):[]),vj=(e,t,n)=>{const{form:r,formItem:i}=Ri(),l=en(),m=se(),a=se(),o={firstButton:m,secondButton:a},u=ee(()=>e.disabled||(r==null?void 0:r.disabled)||!1),h=ee(()=>Math.min(t.firstValue,t.secondValue)),c=ee(()=>Math.max(t.firstValue,t.secondValue)),f=ee(()=>e.range?`${100*(c.value-h.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),s=ee(()=>e.range?`${100*(h.value-e.min)/(e.max-e.min)}%`:"0%"),d=ee(()=>e.vertical?{height:e.height}:{}),v=ee(()=>e.vertical?{height:f.value,bottom:s.value}:{width:f.value,left:s.value}),g=()=>{l.value&&(t.sliderSize=l.value[`client${e.vertical?"Height":"Width"}`])},y=j=>{const R=e.min+j*(e.max-e.min)/100;if(!e.range)return m;let F;return Math.abs(h.value-R)<Math.abs(c.value-R)?F=t.firstValue<t.secondValue?"firstButton":"secondButton":F=t.firstValue>t.secondValue?"firstButton":"secondButton",o[F]},b=j=>{const R=y(j);return R.value.setPosition(j),R},_=j=>{t.firstValue=j,S(e.range?[h.value,c.value]:j)},w=j=>{t.secondValue=j,e.range&&S([h.value,c.value])},S=j=>{n(at,j),n(ho,j)},x=async()=>{await He(),n(nr,e.range?[h.value,c.value]:e.modelValue)},T=j=>{var R,F,E,W,te,Q;if(u.value||t.dragging)return;g();let le=0;if(e.vertical){const I=(E=(F=(R=j.touches)==null?void 0:R.item(0))==null?void 0:F.clientY)!=null?E:j.clientY;le=(l.value.getBoundingClientRect().bottom-I)/t.sliderSize*100}else{const I=(Q=(te=(W=j.touches)==null?void 0:W.item(0))==null?void 0:te.clientX)!=null?Q:j.clientX,z=l.value.getBoundingClientRect().left;le=(I-z)/t.sliderSize*100}if(!(le<0||le>100))return b(le)};return{elFormItem:i,slider:l,firstButton:m,secondButton:a,sliderDisabled:u,minValue:h,maxValue:c,runwayStyle:d,barStyle:v,resetSize:g,setPosition:b,emitChange:x,onSliderWrapperPrevent:j=>{var R,F;(((R=o.firstButton.value)==null?void 0:R.dragging)||((F=o.secondButton.value)==null?void 0:F.dragging))&&j.preventDefault()},onSliderClick:j=>{T(j)&&x()},onSliderDown:async j=>{const R=T(j);R&&(await He(),R.value.onButtonDown(j))},setFirstValue:_,setSecondValue:w}},{left:mj,down:yj,right:bj,up:_j,home:wj,end:Cj,pageUp:Sj,pageDown:xj}=Ct,Tj=(e,t,n)=>{const r=se(),i=se(!1),l=ee(()=>t.value instanceof Function),m=ee(()=>l.value&&t.value(e.modelValue)||e.modelValue),a=aa(()=>{n.value&&(i.value=!0)},50),o=aa(()=>{n.value&&(i.value=!1)},50);return{tooltip:r,tooltipVisible:i,formatValue:m,displayTooltip:a,hideTooltip:o}},kj=(e,t,n)=>{const{disabled:r,min:i,max:l,step:m,showTooltip:a,precision:o,sliderSize:u,formatTooltip:h,emitChange:c,resetSize:f,updateDragging:s}=We(G_),{tooltip:d,tooltipVisible:v,formatValue:g,displayTooltip:y,hideTooltip:b}=Tj(e,h,a),_=se(),w=ee(()=>`${(e.modelValue-i.value)/(l.value-i.value)*100}%`),S=ee(()=>e.vertical?{bottom:w.value}:{left:w.value}),x=()=>{t.hovering=!0,y()},T=()=>{t.hovering=!1,t.dragging||b()},O=L=>{r.value||(L.preventDefault(),le(L),window.addEventListener("mousemove",I),window.addEventListener("touchmove",I),window.addEventListener("mouseup",z),window.addEventListener("touchend",z),window.addEventListener("contextmenu",z),_.value.focus())},A=L=>{r.value||(t.newPosition=Number.parseFloat(w.value)+L/(l.value-i.value)*100,M(t.newPosition),c())},$=()=>{A(-m.value)},j=()=>{A(m.value)},R=()=>{A(-m.value*4)},F=()=>{A(m.value*4)},E=()=>{r.value||(M(0),c())},W=()=>{r.value||(M(100),c())},te=L=>{let J=!0;[mj,yj].includes(L.key)?$():[bj,_j].includes(L.key)?j():L.key===wj?E():L.key===Cj?W():L.key===xj?R():L.key===Sj?F():J=!1,J&&L.preventDefault()},Q=L=>{let J,U;return L.type.startsWith("touch")?(U=L.touches[0].clientY,J=L.touches[0].clientX):(U=L.clientY,J=L.clientX),{clientX:J,clientY:U}},le=L=>{t.dragging=!0,t.isClick=!0;const{clientX:J,clientY:U}=Q(L);e.vertical?t.startY=U:t.startX=J,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},I=L=>{if(t.dragging){t.isClick=!1,y(),f();let J;const{clientX:U,clientY:P}=Q(L);e.vertical?(t.currentY=P,J=(t.startY-t.currentY)/u.value*100):(t.currentX=U,J=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+J,M(t.newPosition)}},z=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||M(t.newPosition),c()},0),window.removeEventListener("mousemove",I),window.removeEventListener("touchmove",I),window.removeEventListener("mouseup",z),window.removeEventListener("touchend",z),window.removeEventListener("contextmenu",z))},M=async L=>{if(L===null||Number.isNaN(+L))return;L<0?L=0:L>100&&(L=100);const J=100/((l.value-i.value)/m.value);let P=Math.round(L/J)*J*(l.value-i.value)*.01+i.value;P=Number.parseFloat(P.toFixed(o.value)),P!==e.modelValue&&n(at,P),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await He(),t.dragging&&y(),d.value.updatePopper()};return xe(()=>t.dragging,L=>{s(L)}),{disabled:r,button:_,tooltip:d,tooltipVisible:v,showTooltip:a,wrapperStyle:S,formatValue:g,handleMouseEnter:x,handleMouseLeave:T,onButtonDown:O,onKeyDown:te,setPosition:M}},Ej=(e,t,n,r)=>({stops:ee(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const m=(e.max-e.min)/e.step,a=100*e.step/(e.max-e.min),o=Array.from({length:m-1}).map((u,h)=>(h+1)*a);return e.range?o.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):o.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:m=>e.vertical?{bottom:`${m}%`}:{left:`${m}%`}}),Oj=(e,t,n,r,i,l)=>{const m=u=>{i(at,u),i(ho,u)},a=()=>e.range?![n.value,r.value].every((u,h)=>u===t.oldValue[h]):e.modelValue!==t.oldValue,o=()=>{var u,h;if(e.min>e.max){un("Slider","min should not be greater than max.");return}const c=e.modelValue;e.range&&Array.isArray(c)?c[1]<e.min?m([e.min,e.min]):c[0]>e.max?m([e.max,e.max]):c[0]<e.min?m([e.min,c[1]]):c[1]>e.max?m([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],a()&&(e.validateEvent&&((u=l==null?void 0:l.validate)==null||u.call(l,"change").catch(f=>void 0)),t.oldValue=c.slice())):!e.range&&typeof c=="number"&&!Number.isNaN(c)&&(c<e.min?m(e.min):c>e.max?m(e.max):(t.firstValue=c,a()&&(e.validateEvent&&((h=l==null?void 0:l.validate)==null||h.call(l,"change").catch(f=>void 0)),t.oldValue=c)))};o(),xe(()=>t.dragging,u=>{u||o()}),xe(()=>e.modelValue,(u,h)=>{t.dragging||Array.isArray(u)&&Array.isArray(h)&&u.every((c,f)=>c===h[f])&&t.firstValue===u[0]&&t.secondValue===u[1]||o()},{deep:!0}),xe(()=>[e.min,e.max],()=>{o()})},Aj=Be({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:Sa,default:"top"}}),Pj={[at]:e=>et(e)},Ij=["tabindex"],Mj={name:"ElSliderButton"},Lj=Te({...Mj,props:Aj,emits:Pj,setup(e,{expose:t,emit:n}){const r=e,i=Ie("slider"),l=_t({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:m,button:a,tooltip:o,showTooltip:u,tooltipVisible:h,wrapperStyle:c,formatValue:f,handleMouseEnter:s,handleMouseLeave:d,onButtonDown:v,onKeyDown:g,setPosition:y}=kj(r,l,n),{hovering:b,dragging:_}=zn(l);return t({onButtonDown:v,onKeyDown:g,setPosition:y,hovering:b,dragging:_}),(w,S)=>(V(),ce("div",{ref_key:"button",ref:a,class:fe([C(i).e("button-wrapper"),{hover:C(b),dragging:C(_)}]),style:Fe(C(c)),tabindex:C(m)?-1:0,onMouseenter:S[0]||(S[0]=(...x)=>C(s)&&C(s)(...x)),onMouseleave:S[1]||(S[1]=(...x)=>C(d)&&C(d)(...x)),onMousedown:S[2]||(S[2]=(...x)=>C(v)&&C(v)(...x)),onTouchstart:S[3]||(S[3]=(...x)=>C(v)&&C(v)(...x)),onFocus:S[4]||(S[4]=(...x)=>C(s)&&C(s)(...x)),onBlur:S[5]||(S[5]=(...x)=>C(d)&&C(d)(...x)),onKeydown:S[6]||(S[6]=(...x)=>C(g)&&C(g)(...x))},[ue(C(Sr),{ref_key:"tooltip",ref:o,visible:C(h),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!C(u),persistent:""},{content:he(()=>[oe("span",null,Ae(C(f)),1)]),default:he(()=>[oe("div",{class:fe([C(i).e("button"),{hover:C(b),dragging:C(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,Ij))}});var Zm=Le(Lj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const Rj=Be({mark:{type:Oe([String,Object]),default:void 0}});var Dj=Te({name:"ElSliderMarker",props:Rj,setup(e){const t=Ie("slider"),n=ee(()=>Ye(e.mark)?e.mark:e.mark.label),r=ee(()=>Ye(e.mark)?void 0:e.mark.style);return()=>ht("div",{class:t.e("marks-text"),style:r.value},n.value)}});const $j=["id","role","aria-label","aria-labelledby"],Bj={key:1},Fj={name:"ElSlider"},zj=Te({...Fj,props:dj,emits:hj,setup(e,{expose:t,emit:n}){const r=e,i=Ie("slider"),{t:l}=nn(),m=_t({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:a,slider:o,firstButton:u,secondButton:h,sliderDisabled:c,minValue:f,maxValue:s,runwayStyle:d,barStyle:v,resetSize:g,emitChange:y,onSliderWrapperPrevent:b,onSliderClick:_,onSliderDown:w,setFirstValue:S,setSecondValue:x}=vj(r,m,n),{stops:T,getStopStyle:O}=Ej(r,m,f,s),{inputId:A,isLabeledByFormItem:$}=ll(r,{formItemContext:a}),j=Un(),R=ee(()=>r.inputSize||j.value),F=ee(()=>r.label||l("el.slider.defaultLabel",{min:r.min,max:r.max})),E=ee(()=>r.range?r.rangeStartLabel||l("el.slider.defaultRangeStartLabel"):F.value),W=ee(()=>r.formatValueText?r.formatValueText(L.value):`${L.value}`),te=ee(()=>r.rangeEndLabel||l("el.slider.defaultRangeEndLabel")),Q=ee(()=>r.formatValueText?r.formatValueText(J.value):`${J.value}`),le=ee(()=>[i.b(),i.m(j.value),i.is("vertical",r.vertical),{[i.m("with-input")]:r.showInput}]),I=gj(r);Oj(r,m,f,s,n,a);const z=ee(()=>{const q=[r.min,r.max,r.step].map(Z=>{const re=`${Z}`.split(".")[1];return re?re.length:0});return Math.max.apply(null,q)}),{sliderWrapper:M}=pj(r,m,g),{firstValue:L,secondValue:J,sliderSize:U}=zn(m),P=q=>{m.dragging=q};return st(G_,{...zn(r),sliderSize:U,disabled:c,precision:z,emitChange:y,resetSize:g,updateDragging:P}),t({onSliderClick:_}),(q,Z)=>{var re,de;return V(),ce("div",{id:q.range?C(A):void 0,ref_key:"sliderWrapper",ref:M,class:fe(C(le)),role:q.range?"group":void 0,"aria-label":q.range&&!C($)?C(F):void 0,"aria-labelledby":q.range&&C($)?(re=C(a))==null?void 0:re.labelId:void 0,onTouchstart:Z[2]||(Z[2]=(...ve)=>C(b)&&C(b)(...ve)),onTouchmove:Z[3]||(Z[3]=(...ve)=>C(b)&&C(b)(...ve))},[oe("div",{ref_key:"slider",ref:o,class:fe([C(i).e("runway"),{"show-input":q.showInput&&!q.range},C(i).is("disabled",C(c))]),style:Fe(C(d)),onMousedown:Z[0]||(Z[0]=(...ve)=>C(w)&&C(w)(...ve)),onTouchstart:Z[1]||(Z[1]=(...ve)=>C(w)&&C(w)(...ve))},[oe("div",{class:fe(C(i).e("bar")),style:Fe(C(v))},null,6),ue(Zm,{id:q.range?void 0:C(A),ref_key:"firstButton",ref:u,"model-value":C(L),vertical:q.vertical,"tooltip-class":q.tooltipClass,placement:q.placement,role:"slider","aria-label":q.range||!C($)?C(E):void 0,"aria-labelledby":!q.range&&C($)?(de=C(a))==null?void 0:de.labelId:void 0,"aria-valuemin":q.min,"aria-valuemax":q.range?C(J):q.max,"aria-valuenow":C(L),"aria-valuetext":C(W),"aria-orientation":q.vertical?"vertical":"horizontal","aria-disabled":C(c),"onUpdate:modelValue":C(S)},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"]),q.range?(V(),_e(Zm,{key:0,ref_key:"secondButton",ref:h,"model-value":C(J),vertical:q.vertical,"tooltip-class":q.tooltipClass,placement:q.placement,role:"slider","aria-label":C(te),"aria-valuemin":C(L),"aria-valuemax":q.max,"aria-valuenow":C(J),"aria-valuetext":C(Q),"aria-orientation":q.vertical?"vertical":"horizontal","aria-disabled":C(c),"onUpdate:modelValue":C(x)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):be("v-if",!0),q.showStops?(V(),ce("div",Bj,[(V(!0),ce(ze,null,Rt(C(T),(ve,me)=>(V(),ce("div",{key:me,class:fe(C(i).e("stop")),style:Fe(C(O)(ve))},null,6))),128))])):be("v-if",!0),C(I).length>0?(V(),ce(ze,{key:2},[oe("div",null,[(V(!0),ce(ze,null,Rt(C(I),(ve,me)=>(V(),ce("div",{key:me,style:Fe(C(O)(ve.position)),class:fe([C(i).e("stop"),C(i).e("marks-stop")])},null,6))),128))]),oe("div",{class:fe(C(i).e("marks"))},[(V(!0),ce(ze,null,Rt(C(I),(ve,me)=>(V(),_e(C(Dj),{key:me,mark:ve.mark,style:Fe(C(O)(ve.position))},null,8,["mark","style"]))),128))],2)],64)):be("v-if",!0)],38),q.showInput&&!q.range?(V(),_e(C(Pd),{key:0,ref:"input","model-value":C(L),class:fe(C(i).e("input")),step:q.step,disabled:C(c),controls:q.showInputControls,min:q.min,max:q.max,debounce:q.debounce,size:C(R),"onUpdate:modelValue":C(S),onChange:C(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):be("v-if",!0)],42,$j)}}});var Nj=Le(zj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const Jm=vt(Nj),jj=Be({modelValue:{type:[Boolean,String,Number],default:!1},value:{type:[Boolean,String,Number],default:!1},disabled:{type:Boolean,default:!1},width:{type:[String,Number],default:""},inlinePrompt:{type:Boolean,default:!1},activeIcon:{type:Bt},inactiveIcon:{type:Bt},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},borderColor:{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},id:String,loading:{type:Boolean,default:!1},beforeChange:{type:Oe(Function)},size:{type:String,validator:kc},tabindex:{type:[String,Number]}}),Vj={[at]:e=>Pn(e)||Ye(e)||et(e),[nr]:e=>Pn(e)||Ye(e)||et(e),[ho]:e=>Pn(e)||Ye(e)||et(e)},Hj=["onClick"],Uj=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],Wj=["aria-hidden"],Yj=["aria-hidden"],Xj=["aria-hidden"],Kj=["aria-hidden"],Gj={name:"ElSwitch"},qj=Te({...Gj,props:jj,emits:Vj,setup(e,{expose:t,emit:n}){const r=e,i="ElSwitch",l=gt(),{formItem:m}=Ri(),a=Un(),o=Ie("switch");Rs({from:'"value"',replacement:'"model-value" or "v-model"',scope:i,version:"2.3.0",ref:"https://element-plus.org/en-US/component/switch.html#attributes",type:"Attribute"},ee(()=>{var x;return!!((x=l.vnode.props)!=null&&x.value)}));const{inputId:u}=ll(r,{formItemContext:m}),h=Oo(ee(()=>r.loading)),c=se(r.modelValue!==!1),f=se(),s=se(),d=ee(()=>[o.b(),o.m(a.value),o.is("disabled",h.value),o.is("checked",y.value)]),v=ee(()=>({width:_r(r.width)}));xe(()=>r.modelValue,()=>{c.value=!0}),xe(()=>r.value,()=>{c.value=!1});const g=ee(()=>c.value?r.modelValue:r.value),y=ee(()=>g.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(g.value)||(n(at,r.inactiveValue),n(nr,r.inactiveValue),n(ho,r.inactiveValue)),xe(y,x=>{var T;f.value.checked=x,r.validateEvent&&((T=m==null?void 0:m.validate)==null||T.call(m,"change").catch(O=>void 0))});const b=()=>{const x=y.value?r.inactiveValue:r.activeValue;n(at,x),n(nr,x),n(ho,x),He(()=>{f.value.checked=y.value})},_=()=>{if(h.value)return;const{beforeChange:x}=r;if(!x){b();return}const T=x();[xu(T),Pn(T)].includes(!0)||un(i,"beforeChange must return type `Promise<boolean>` or `boolean`"),xu(T)?T.then(A=>{A&&b()}).catch(A=>{}):T&&b()},w=ee(()=>o.cssVarBlock({...r.activeColor?{"on-color":r.activeColor}:null,...r.inactiveColor?{"off-color":r.inactiveColor}:null,...r.borderColor?{"border-color":r.borderColor}:null})),S=()=>{var x,T;(T=(x=f.value)==null?void 0:x.focus)==null||T.call(x)};return qe(()=>{f.value.checked=y.value}),t({focus:S,checked:y}),(x,T)=>(V(),ce("div",{class:fe(C(d)),style:Fe(C(w)),onClick:Je(_,["prevent"])},[oe("input",{id:C(u),ref_key:"input",ref:f,class:fe(C(o).e("input")),type:"checkbox",role:"switch","aria-checked":C(y),"aria-disabled":C(h),name:x.name,"true-value":x.activeValue,"false-value":x.inactiveValue,disabled:C(h),tabindex:x.tabindex,onChange:b,onKeydown:Et(_,["enter"])},null,42,Uj),!x.inlinePrompt&&(x.inactiveIcon||x.inactiveText)?(V(),ce("span",{key:0,class:fe([C(o).e("label"),C(o).em("label","left"),C(o).is("active",!C(y))])},[x.inactiveIcon?(V(),_e(C(Re),{key:0},{default:he(()=>[(V(),_e(yt(x.inactiveIcon)))]),_:1})):be("v-if",!0),!x.inactiveIcon&&x.inactiveText?(V(),ce("span",{key:1,"aria-hidden":C(y)},Ae(x.inactiveText),9,Wj)):be("v-if",!0)],2)):be("v-if",!0),oe("span",{ref_key:"core",ref:s,class:fe(C(o).e("core")),style:Fe(C(v))},[x.inlinePrompt?(V(),ce("div",{key:0,class:fe(C(o).e("inner"))},[x.activeIcon||x.inactiveIcon?(V(),ce(ze,{key:0},[x.activeIcon?(V(),_e(C(Re),{key:0,class:fe([C(o).is("icon"),C(y)?C(o).is("show"):C(o).is("hide")])},{default:he(()=>[(V(),_e(yt(x.activeIcon)))]),_:1},8,["class"])):be("v-if",!0),x.inactiveIcon?(V(),_e(C(Re),{key:1,class:fe([C(o).is("icon"),C(y)?C(o).is("hide"):C(o).is("show")])},{default:he(()=>[(V(),_e(yt(x.inactiveIcon)))]),_:1},8,["class"])):be("v-if",!0)],64)):x.activeText||x.inactiveIcon?(V(),ce(ze,{key:1},[x.activeText?(V(),ce("span",{key:0,class:fe([C(o).is("text"),C(y)?C(o).is("show"):C(o).is("hide")]),"aria-hidden":!C(y)},Ae(x.activeText.substring(0,3)),11,Yj)):be("v-if",!0),x.inactiveText?(V(),ce("span",{key:1,class:fe([C(o).is("text"),C(y)?C(o).is("hide"):C(o).is("show")]),"aria-hidden":C(y)},Ae(x.inactiveText.substring(0,3)),11,Xj)):be("v-if",!0)],64)):be("v-if",!0)],2)):be("v-if",!0),oe("div",{class:fe(C(o).e("action"))},[x.loading?(V(),_e(C(Re),{key:0,class:fe(C(o).is("loading"))},{default:he(()=>[ue(C(Uh))]),_:1},8,["class"])):be("v-if",!0)],2)],6),!x.inlinePrompt&&(x.activeIcon||x.activeText)?(V(),ce("span",{key:1,class:fe([C(o).e("label"),C(o).em("label","right"),C(o).is("active",C(y))])},[x.activeIcon?(V(),_e(C(Re),{key:0},{default:he(()=>[(V(),_e(yt(x.activeIcon)))]),_:1})):be("v-if",!0),!x.activeIcon&&x.activeText?(V(),ce("span",{key:1,"aria-hidden":!C(y)},Ae(x.activeText),9,Kj)):be("v-if",!0)],2)):be("v-if",!0)],14,Hj))}});var Zj=Le(qj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const Qm=vt(Zj),Jj=Be({tabs:{type:Oe(Array),default:()=>Ht([])}}),Qj={name:"ElTabBar"},e9=Te({...Qj,props:Jj,setup(e,{expose:t}){const n=e,r="ElTabBar",i=gt(),l=We(Ec);l||un(r,"<el-tabs><el-tab-bar /></el-tabs>");const m=Ie("tabs"),a=se(),o=se(),u=()=>{let c=0,f=0;const s=["top","bottom"].includes(l.props.tabPosition)?"width":"height",d=s==="width"?"x":"y";return n.tabs.every(v=>{var g,y,b,_;const w=(y=(g=i.parent)==null?void 0:g.refs)==null?void 0:y[`tab-${v.uid}`];if(!w)return!1;if(!v.active)return!0;f=w[`client${Ki(s)}`];const S=d==="x"?"left":"top";c=w.getBoundingClientRect()[S]-((_=(b=w.parentElement)==null?void 0:b.getBoundingClientRect()[S])!=null?_:0);const x=window.getComputedStyle(w);return s==="width"&&(n.tabs.length>1&&(f-=Number.parseFloat(x.paddingLeft)+Number.parseFloat(x.paddingRight)),c+=Number.parseFloat(x.paddingLeft)),!1}),{[s]:`${f}px`,transform:`translate${Ki(d)}(${c}px)`}},h=()=>o.value=u();return xe(()=>n.tabs,async()=>{await He(),h()},{immediate:!0}),Cr(a,()=>h()),t({ref:a,update:h}),(c,f)=>(V(),ce("div",{ref_key:"barRef",ref:a,class:fe([C(m).e("active-bar"),C(m).is(C(l).props.tabPosition)]),style:Fe(o.value)},null,6))}});var t9=Le(e9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const n9=Be({panes:{type:Oe(Array),default:()=>Ht([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),r9={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},e0="ElTabNav",i9=Te({name:e0,props:n9,emits:r9,setup(e,{expose:t,emit:n}){const r=gt(),i=We(Ec);i||un(e0,"<el-tabs><tab-nav /></el-tabs>");const l=Ie("tabs"),m=_I(),a=LI(),o=se(),u=se(),h=se(),c=se(!1),f=se(0),s=se(!1),d=se(!0),v=ee(()=>["top","bottom"].includes(i.props.tabPosition)?"width":"height"),g=ee(()=>({transform:`translate${v.value==="width"?"X":"Y"}(-${f.value}px)`})),y=()=>{if(!o.value)return;const O=o.value[`offset${Ki(v.value)}`],A=f.value;if(!A)return;const $=A>O?A-O:0;f.value=$},b=()=>{if(!o.value||!u.value)return;const O=u.value[`offset${Ki(v.value)}`],A=o.value[`offset${Ki(v.value)}`],$=f.value;if(O-$<=A)return;const j=O-$>A*2?$+A:O-A;f.value=j},_=async()=>{const O=u.value;if(!c.value||!h.value||!o.value||!O)return;await He();const A=h.value.querySelector(".is-active");if(!A)return;const $=o.value,j=["top","bottom"].includes(i.props.tabPosition),R=A.getBoundingClientRect(),F=$.getBoundingClientRect(),E=j?O.offsetWidth-F.width:O.offsetHeight-F.height,W=f.value;let te=W;j?(R.left<F.left&&(te=W-(F.left-R.left)),R.right>F.right&&(te=W+R.right-F.right)):(R.top<F.top&&(te=W-(F.top-R.top)),R.bottom>F.bottom&&(te=W+(R.bottom-F.bottom))),te=Math.max(te,0),f.value=Math.min(te,E)},w=()=>{if(!u.value||!o.value)return;const O=u.value[`offset${Ki(v.value)}`],A=o.value[`offset${Ki(v.value)}`],$=f.value;if(A<O){const j=f.value;c.value=c.value||{},c.value.prev=j,c.value.next=j+A<O,O-j<A&&(f.value=O-A)}else c.value=!1,$>0&&(f.value=0)},S=O=>{const A=O.code,{up:$,down:j,left:R,right:F}=Ct;if(![$,j,R,F].includes(A))return;const E=Array.from(O.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),W=E.indexOf(O.target);let te;A===R||A===$?W===0?te=E.length-1:te=W-1:W<E.length-1?te=W+1:te=0,E[te].focus(),E[te].click(),x()},x=()=>{d.value&&(s.value=!0)},T=()=>s.value=!1;return xe(m,O=>{O==="hidden"?d.value=!1:O==="visible"&&setTimeout(()=>d.value=!0,50)}),xe(a,O=>{O?setTimeout(()=>d.value=!0,50):d.value=!1}),Cr(h,w),qe(()=>setTimeout(()=>_(),0)),To(()=>w()),t({scrollToActiveTab:_,removeFocus:T}),xe(()=>e.panes,()=>r.update(),{flush:"post"}),()=>{const O=c.value?[ue("span",{class:[l.e("nav-prev"),l.is("disabled",!c.value.prev)],onClick:y},[ue(Re,null,{default:()=>[ue(yc,null,null)]})]),ue("span",{class:[l.e("nav-next"),l.is("disabled",!c.value.next)],onClick:b},[ue(Re,null,{default:()=>[ue(ba,null,null)]})])]:null,A=e.panes.map(($,j)=>{var R,F,E,W;const te=$.uid,Q=$.props.disabled,le=(F=(R=$.props.name)!=null?R:$.index)!=null?F:`${j}`,I=!Q&&($.isClosable||e.editable);$.index=`${j}`;const z=I?ue(Re,{class:"is-icon-close",onClick:J=>n("tabRemove",$,J)},{default:()=>[ue(yr,null,null)]}):null,M=((W=(E=$.slots).label)==null?void 0:W.call(E))||$.props.label,L=!Q&&$.active?0:-1;return ue("div",{ref:`tab-${te}`,class:[l.e("item"),l.is(i.props.tabPosition),l.is("active",$.active),l.is("disabled",Q),l.is("closable",I),l.is("focus",s.value)],id:`tab-${le}`,key:`tab-${te}`,"aria-controls":`pane-${le}`,role:"tab","aria-selected":$.active,tabindex:L,onFocus:()=>x(),onBlur:()=>T(),onClick:J=>{T(),n("tabClick",$,le,J)},onKeydown:J=>{I&&(J.code===Ct.delete||J.code===Ct.backspace)&&n("tabRemove",$,J)}},[M,z])});return ue("div",{ref:h,class:[l.e("nav-wrap"),l.is("scrollable",!!c.value),l.is(i.props.tabPosition)]},[O,ue("div",{class:l.e("nav-scroll"),ref:o},[ue("div",{class:[l.e("nav"),l.is(i.props.tabPosition),l.is("stretch",e.stretch&&["top","bottom"].includes(i.props.tabPosition))],ref:u,style:g.value,role:"tablist",onKeydown:S},[e.type?null:ue(t9,{tabs:[...e.panes]},null),A])])])}}}),o9=Be({type:{type:String,values:["card","border-card",""],default:""},activeName:{type:[String,Number]},closable:Boolean,addable:Boolean,modelValue:{type:[String,Number]},editable:Boolean,tabPosition:{type:String,values:["top","right","bottom","left"],default:"top"},beforeLeave:{type:Oe(Function),default:()=>!0},stretch:Boolean}),pf=e=>Ye(e)||et(e),a9={[at]:e=>pf(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>pf(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>pf(e),tabAdd:()=>!0};var s9=Te({name:"ElTabs",props:o9,emits:a9,setup(e,{emit:t,slots:n,expose:r}){var i,l;const m=Ie("tabs"),a=se(),o=_t({}),u=se((l=(i=e.modelValue)!=null?i:e.activeName)!=null?l:"0"),h=v=>{u.value=v,t(at,v),t("tabChange",v)},c=async v=>{var g,y,b;if(!(u.value===v||Zn(v)))try{await((g=e.beforeLeave)==null?void 0:g.call(e,v,u.value))!==!1&&(h(v),(b=(y=a.value)==null?void 0:y.removeFocus)==null||b.call(y))}catch{}},f=(v,g,y)=>{v.props.disabled||(c(g),t("tabClick",v,y))},s=(v,g)=>{v.props.disabled||Zn(v.props.name)||(g.stopPropagation(),t("edit",v.props.name,"remove"),t("tabRemove",v.props.name))},d=()=>{t("edit",void 0,"add"),t("tabAdd")};return Rs({from:'"activeName"',replacement:'"model-value" or "v-model"',scope:"ElTabs",version:"2.3.0",ref:"https://element-plus.org/en-US/component/tabs.html#attributes",type:"Attribute"},ee(()=>!!e.activeName)),xe(()=>e.activeName,v=>c(v)),xe(()=>e.modelValue,v=>c(v)),xe(u,async()=>{var v;await He(),(v=a.value)==null||v.scrollToActiveTab()}),st(Ec,{props:e,currentName:u,registerPane:y=>o[y.uid]=y,unregisterPane:y=>delete o[y]}),r({currentName:u}),()=>{const v=e.editable||e.addable?ue("span",{class:m.e("new-tab"),tabindex:"0",onClick:d,onKeydown:b=>{b.code===Ct.enter&&d()}},[ue(Re,{class:m.is("icon-plus")},{default:()=>[ue(Wh,null,null)]})]):null,g=ue("div",{class:[m.e("header"),m.is(e.tabPosition)]},[v,ue(i9,{ref:a,currentName:u.value,editable:e.editable,type:e.type,panes:Object.values(o),stretch:e.stretch,onTabClick:f,onTabRemove:s},null)]),y=ue("div",{class:m.e("content")},[Se(n,"default")]);return ue("div",{class:[m.b(),m.m(e.tabPosition),{[m.m("card")]:e.type==="card",[m.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[g,y]:[y,g]])}}});const l9=Be({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),u9=["id","aria-hidden","aria-labelledby"],c9={name:"ElTabPane"},f9=Te({...c9,props:l9,setup(e){const t=e,n="ElTabPane",r=gt(),i=ma(),l=We(Ec);l||un(n,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const m=Ie("tab-pane"),a=se(),o=ee(()=>t.closable||l.props.closable),u=Wv(()=>{var d;return l.currentName.value===((d=t.name)!=null?d:a.value)}),h=se(u.value),c=ee(()=>{var d;return(d=t.name)!=null?d:a.value}),f=Wv(()=>!t.lazy||h.value||u.value);xe(u,d=>{d&&(h.value=!0)});const s=_t({uid:r.uid,slots:i,props:t,paneName:c,active:u,index:a,isClosable:o});return qe(()=>{l.registerPane(s)}),Zr(()=>{l.unregisterPane(s.uid)}),(d,v)=>C(f)?pt((V(),ce("div",{key:0,id:`pane-${C(c)}`,class:fe(C(m).b()),role:"tabpanel","aria-hidden":!C(u),"aria-labelledby":`tab-${C(c)}`},[Se(d.$slots,"default")],10,u9)),[[Lt,C(u)]]):be("v-if",!0)}});var Z1=Le(f9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const d9=vt(s9,{TabPane:Z1}),gf=Hn(Z1),h9="ElUpload";class p9 extends Error{constructor(t,n,r,i){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=i}}function t0(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 p9(r,n.status,t.method,e)}function g9(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const v9=e=>{typeof XMLHttpRequest>"u"&&un(h9,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const m=l;m.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(m)});const r=new FormData;if(e.data)for(const[l,m]of Object.entries(e.data))Array.isArray(m)?r.append(l,...m):r.append(l,m);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(t0(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(t0(n,e,t));e.onSuccess(g9(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,m)=>t.setRequestHeader(m,l));else for(const[l,m]of Object.entries(i))pr(m)||t.setRequestHeader(l,String(m));return t.send(r),t},J1=["text","picture","picture-card"];let m9=1;const Q1=()=>Date.now()+m9++,ew=Be({action:{type:String,default:"#"},headers:{type:Oe(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>Ht({})},multiple:{type:Boolean,default:!1},name:{type:String,default:"file"},drag:{type:Boolean,default:!1},withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},type:{type:String,default:"select"},fileList:{type:Oe(Array),default:()=>Ht([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:J1,default:"text"},httpRequest:{type:Oe(Function),default:v9},disabled:Boolean,limit:Number}),y9=Be({...ew,beforeUpload:{type:Oe(Function),default:it},beforeRemove:{type:Oe(Function)},onRemove:{type:Oe(Function),default:it},onChange:{type:Oe(Function),default:it},onPreview:{type:Oe(Function),default:it},onSuccess:{type:Oe(Function),default:it},onProgress:{type:Oe(Function),default:it},onError:{type:Oe(Function),default:it},onExceed:{type:Oe(Function),default:it}}),b9=Be({files:{type:Oe(Array),default:()=>Ht([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Oe(Function),default:it},listType:{type:String,values:J1,default:"text"}}),_9={remove:e=>!!e},w9=["onKeydown"],C9=["src"],S9=["onClick"],x9=["onClick"],T9=["onClick"],k9={name:"ElUploadList"},E9=Te({...k9,props:b9,emits:_9,setup(e,{emit:t}){const{t:n}=nn(),r=Ie("upload"),i=Ie("icon"),l=Ie("list"),m=se(!1),a=o=>{t("remove",o)};return(o,u)=>(V(),_e(ax,{tag:"ul",class:fe([C(r).b("list"),C(r).bm("list",o.listType),C(r).is("disabled",o.disabled)]),name:C(l).b()},{default:he(()=>[(V(!0),ce(ze,null,Rt(o.files,h=>(V(),ce("li",{key:h.uid||h.name,class:fe([C(r).be("list","item"),C(r).is(h.status),{focusing:m.value}]),tabindex:"0",onKeydown:Et(c=>!o.disabled&&a(h),["delete"]),onFocus:u[0]||(u[0]=c=>m.value=!0),onBlur:u[1]||(u[1]=c=>m.value=!1),onClick:u[2]||(u[2]=c=>m.value=!1)},[Se(o.$slots,"default",{file:h},()=>[o.listType==="picture"||h.status!=="uploading"&&o.listType==="picture-card"?(V(),ce("img",{key:0,class:fe(C(r).be("list","item-thumbnail")),src:h.url,alt:""},null,10,C9)):be("v-if",!0),h.status==="uploading"||o.listType!=="picture-card"?(V(),ce("div",{key:1,class:fe(C(r).be("list","item-info"))},[oe("a",{class:fe(C(r).be("list","item-name")),onClick:Je(c=>o.handlePreview(h),["prevent"])},[ue(C(Re),{class:fe(C(i).m("document"))},{default:he(()=>[ue(C(Yb))]),_:1},8,["class"]),oe("span",{class:fe(C(r).be("list","item-file-name"))},Ae(h.name),3)],10,S9),h.status==="uploading"?(V(),_e(C(q1),{key:0,type:o.listType==="picture-card"?"circle":"line","stroke-width":o.listType==="picture-card"?6:2,percentage:Number(h.percentage),style:Fe(o.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):be("v-if",!0)],2)):be("v-if",!0),oe("label",{class:fe(C(r).be("list","item-status-label"))},[o.listType==="text"?(V(),_e(C(Re),{key:0,class:fe([C(i).m("upload-success"),C(i).m("circle-check")])},{default:he(()=>[ue(C(al))]),_:1},8,["class"])):["picture-card","picture"].includes(o.listType)?(V(),_e(C(Re),{key:1,class:fe([C(i).m("upload-success"),C(i).m("check")])},{default:he(()=>[ue(C(Hb))]),_:1},8,["class"])):be("v-if",!0)],2),o.disabled?be("v-if",!0):(V(),_e(C(Re),{key:2,class:fe(C(i).m("close")),onClick:c=>a(h)},{default:he(()=>[ue(C(yr))]),_:2},1032,["class","onClick"])),be(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),be(" This is a bug which needs to be fixed "),be(" TODO: Fix the incorrect navigation interaction "),o.disabled?be("v-if",!0):(V(),ce("i",{key:3,class:fe(C(i).m("close-tip"))},Ae(C(n)("el.upload.deleteTip")),3)),o.listType==="picture-card"?(V(),ce("span",{key:4,class:fe(C(r).be("list","item-actions"))},[oe("span",{class:fe(C(r).be("list","item-preview")),onClick:c=>o.handlePreview(h)},[ue(C(Re),{class:fe(C(i).m("zoom-in"))},{default:he(()=>[ue(C(Jb))]),_:1},8,["class"])],10,x9),o.disabled?be("v-if",!0):(V(),ce("span",{key:0,class:fe(C(r).be("list","item-delete")),onClick:c=>a(h)},[ue(C(Re),{class:fe(C(i).m("delete"))},{default:he(()=>[ue(C(_c))]),_:1},8,["class"])],10,T9))],2)):be("v-if",!0)])],42,w9))),128)),Se(o.$slots,"append")]),_:3},8,["class","name"]))}});var n0=Le(E9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const O9=Be({disabled:{type:Boolean,default:!1}}),A9={file:e=>je(e)},P9=["onDrop","onDragover"],I9={name:"ElUploadDrag"},M9=Te({...I9,props:O9,emits:A9,setup(e,{emit:t}){const n=e,r="ElUploadDrag",i=We(q_);i||un(r,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=Ie("upload"),m=se(!1),a=u=>{if(n.disabled)return;m.value=!1;const h=Array.from(u.dataTransfer.files),c=i.accept.value;if(!c){t("file",h);return}const f=h.filter(s=>{const{type:d,name:v}=s,g=v.includes(".")?`.${v.split(".").pop()}`:"",y=d.replace(/\/.*$/,"");return c.split(",").map(b=>b.trim()).filter(b=>b).some(b=>b.startsWith(".")?g===b:/\/\*$/.test(b)?y===b.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(b)?d===b:!1)});t("file",f)},o=()=>{n.disabled||(m.value=!0)};return(u,h)=>(V(),ce("div",{class:fe([C(l).b("dragger"),C(l).is("dragover",m.value)]),onDrop:Je(a,["prevent"]),onDragover:Je(o,["prevent"]),onDragleave:h[0]||(h[0]=Je(c=>m.value=!1,["prevent"]))},[Se(u.$slots,"default")],42,P9))}});var L9=Le(M9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const R9=Be({...ew,beforeUpload:{type:Oe(Function),default:it},onRemove:{type:Oe(Function),default:it},onStart:{type:Oe(Function),default:it},onSuccess:{type:Oe(Function),default:it},onProgress:{type:Oe(Function),default:it},onError:{type:Oe(Function),default:it},onExceed:{type:Oe(Function),default:it}}),D9=["onKeydown"],$9=["name","multiple","accept"],B9={name:"ElUploadContent",inheritAttrs:!1},F9=Te({...B9,props:R9,setup(e,{expose:t}){const n=e,r=Ie("upload"),i=en({}),l=en(),m=s=>{if(s.length===0)return;const{autoUpload:d,limit:v,fileList:g,multiple:y,onStart:b,onExceed:_}=n;if(v&&g.length+s.length>v){_(s,g);return}y||(s=s.slice(0,1));for(const w of s){const S=w;S.uid=Q1(),b(S),d&&a(S)}},a=async s=>{if(l.value.value="",!n.beforeUpload)return o(s);let d;try{d=await n.beforeUpload(s)}catch{d=!1}if(d===!1){n.onRemove(s);return}let v=s;d instanceof Blob&&(d instanceof File?v=d:v=new File([d],s.name,{type:s.type})),o(Object.assign(v,{uid:s.uid}))},o=s=>{const{headers:d,data:v,method:g,withCredentials:y,name:b,action:_,onProgress:w,onSuccess:S,onError:x,httpRequest:T}=n,{uid:O}=s,A={headers:d||{},withCredentials:y,file:s,data:v,method:g,filename:b,action:_,onProgress:j=>{w(j,s)},onSuccess:j=>{S(j,s),delete i.value[O]},onError:j=>{x(j,s),delete i.value[O]}},$=T(A);i.value[O]=$,$ instanceof Promise&&$.then(A.onSuccess,A.onError)},u=s=>{const d=s.target.files;!d||m(Array.from(d))},h=()=>{n.disabled||(l.value.value="",l.value.click())},c=()=>{h()};return t({abort:s=>{BI(i.value).filter(s?([v])=>String(s.uid)===v:()=>!0).forEach(([v,g])=>{g instanceof XMLHttpRequest&&g.abort(),delete i.value[v]})},upload:a}),(s,d)=>(V(),ce("div",{class:fe([C(r).b(),C(r).m(s.listType),C(r).is("drag",s.drag)]),tabindex:"0",onClick:h,onKeydown:Et(Je(c,["self"]),["enter","space"])},[s.drag?(V(),_e(L9,{key:0,disabled:s.disabled,onFile:m},{default:he(()=>[Se(s.$slots,"default")]),_:3},8,["disabled"])):Se(s.$slots,"default",{key:1}),oe("input",{ref_key:"inputRef",ref:l,class:fe(C(r).e("input")),name:s.name,multiple:s.multiple,accept:s.accept,type:"file",onChange:u,onClick:d[0]||(d[0]=Je(()=>{},["stop"]))},null,42,$9)],42,D9))}});var r0=Le(F9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const i0="ElUpload",z9=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},N9=(e,t)=>{const n=MI(e,"fileList",void 0,{passive:!0}),r=f=>n.value.find(s=>s.uid===f.uid);function i(f){var s;(s=t.value)==null||s.abort(f)}function l(f=["ready","uploading","success","fail"]){n.value=n.value.filter(s=>!f.includes(s.status))}const m=(f,s)=>{const d=r(s);!d||(console.error(f),d.status="fail",n.value.splice(n.value.indexOf(d),1),e.onError(f,d,n.value),e.onChange(d,n.value))},a=(f,s)=>{const d=r(s);!d||(e.onProgress(f,d,n.value),d.status="uploading",d.percentage=Math.round(f.percent))},o=(f,s)=>{const d=r(s);!d||(d.status="success",d.response=f,e.onSuccess(f,d,n.value),e.onChange(d,n.value))},u=f=>{const s={name:f.name,percentage:0,status:"ready",size:f.size,raw:f,uid:f.uid};if(e.listType==="picture-card"||e.listType==="picture")try{s.url=URL.createObjectURL(f)}catch(d){d.message,e.onError(d,s,n.value)}n.value=[...n.value,s],e.onChange(s,n.value)},h=async f=>{const s=f instanceof File?r(f):f;s||un(i0,"file to be removed not found");const d=v=>{i(v);const g=n.value;g.splice(g.indexOf(v),1),e.onRemove(v,g),z9(v)};e.beforeRemove?await e.beforeRemove(s,n.value)!==!1&&d(s):d(s)};function c(){n.value.filter(({status:f})=>f==="ready").forEach(({raw:f})=>{var s;return f&&((s=t.value)==null?void 0:s.upload(f))})}return xe(()=>e.listType,f=>{f!=="picture-card"&&f!=="picture"||(n.value=n.value.map(s=>{const{raw:d,url:v}=s;if(!v&&d)try{s.url=URL.createObjectURL(d)}catch(g){e.onError(g,s,n.value)}return s}))}),xe(n,f=>{for(const s of f)s.uid||(s.uid=Q1()),s.status||(s.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:l,handleError:m,handleProgress:a,handleStart:u,handleSuccess:o,handleRemove:h,submit:c}},j9={name:"ElUpload"},V9=Te({...j9,props:y9,setup(e,{expose:t}){const n=e,r=ma(),i=Oo(),l=en(),{abort:m,submit:a,clearFiles:o,uploadFiles:u,handleStart:h,handleError:c,handleRemove:f,handleSuccess:s,handleProgress:d}=N9(n,l),v=ee(()=>n.listType==="picture-card"),g=ee(()=>({...n,fileList:u.value,onStart:h,onProgress:d,onSuccess:s,onError:c,onRemove:f}));return Nt(()=>{u.value.forEach(({url:y})=>{y!=null&&y.startsWith("blob:")&&URL.revokeObjectURL(y)})}),st(q_,{accept:yn(n,"accept")}),t({abort:m,submit:a,clearFiles:o,handleStart:h,handleRemove:f}),(y,b)=>(V(),ce("div",null,[C(v)&&y.showFileList?(V(),_e(n0,{key:0,disabled:C(i),"list-type":y.listType,files:C(u),"handle-preview":y.onPreview,onRemove:C(f)},Au({append:he(()=>[ue(r0,gn({ref_key:"uploadRef",ref:l},C(g)),{default:he(()=>[C(r).trigger?Se(y.$slots,"trigger",{key:0}):be("v-if",!0),!C(r).trigger&&C(r).default?Se(y.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:he(({file:_})=>[Se(y.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):be("v-if",!0),!C(v)||C(v)&&!y.showFileList?(V(),_e(r0,gn({key:1,ref_key:"uploadRef",ref:l},C(g)),{default:he(()=>[C(r).trigger?Se(y.$slots,"trigger",{key:0}):be("v-if",!0),!C(r).trigger&&C(r).default?Se(y.$slots,"default",{key:1}):be("v-if",!0)]),_:3},16)):be("v-if",!0),y.$slots.trigger?Se(y.$slots,"default",{key:2}):be("v-if",!0),Se(y.$slots,"tip"),!C(v)&&y.showFileList?(V(),_e(n0,{key:3,disabled:C(i),"list-type":y.listType,files:C(u),"handle-preview":y.onPreview,onRemove:C(f)},Au({_:2},[y.$slots.file?{name:"default",fn:he(({file:_})=>[Se(y.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):be("v-if",!0)]))}});var H9=Le(V9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Op=vt(H9),tw=["success","info","warning","error"],dn=Ht({customClass:"",center:!1,dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",offset:16,zIndex:0,grouping:!1,repeatNum:1,appendTo:ot?document.body:void 0}),U9=Be({customClass:{type:String,default:dn.customClass},center:{type:Boolean,default:dn.center},dangerouslyUseHTMLString:{type:Boolean,default:dn.dangerouslyUseHTMLString},duration:{type:Number,default:dn.duration},icon:{type:Bt,default:dn.icon},id:{type:String,default:dn.id},message:{type:Oe([String,Object,Function]),default:dn.message},onClose:{type:Oe(Function),required:!1},showClose:{type:Boolean,default:dn.showClose},type:{type:String,values:tw,default:dn.type},offset:{type:Number,default:dn.offset},zIndex:{type:Number,default:dn.zIndex},grouping:{type:Boolean,default:dn.grouping},repeatNum:{type:Number,default:dn.repeatNum}}),W9={destroy:()=>!0},hr=My([]),Y9=e=>{const t=hr.findIndex(i=>i.id===e),n=hr[t];let r;return t>0&&(r=hr[t-1]),{current:n,prev:r}},X9=e=>{const{prev:t}=Y9(e);return t?t.vm.exposed.bottom.value:0},K9=["id"],G9=["innerHTML"],q9={name:"ElMessage"},Z9=Te({...q9,props:U9,emits:W9,setup(e,{expose:t}){const n=e,{Close:r}=$_,i=Ie("message"),l=se(),m=se(!1),a=se(0);let o;const u=ee(()=>n.type?n.type==="error"?"danger":n.type:"info"),h=ee(()=>{const w=n.type;return{[i.bm("icon",w)]:w&&Nu[w]}}),c=ee(()=>n.icon||Nu[n.type]||""),f=ee(()=>X9(n.id)),s=ee(()=>n.offset+f.value),d=ee(()=>a.value+s.value),v=ee(()=>({top:`${s.value}px`,zIndex:n.zIndex}));function g(){n.duration!==0&&({stop:o}=Ls(()=>{b()},n.duration))}function y(){o==null||o()}function b(){m.value=!1}function _({code:w}){w===Ct.esc&&b()}return qe(()=>{g(),m.value=!0}),xe(()=>n.repeatNum,()=>{y(),g()}),bt(document,"keydown",_),Cr(l,()=>{a.value=l.value.getBoundingClientRect().height}),t({visible:m,bottom:d,close:b}),(w,S)=>(V(),_e(tn,{name:C(i).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S[0]||(S[0]=x=>w.$emit("destroy")),persisted:""},{default:he(()=>[pt(oe("div",{id:w.id,ref_key:"messageRef",ref:l,class:fe([C(i).b(),{[C(i).m(w.type)]:w.type&&!w.icon},C(i).is("center",w.center),C(i).is("closable",w.showClose),w.customClass]),style:Fe(C(v)),role:"alert",onMouseenter:y,onMouseleave:g},[w.repeatNum>1?(V(),_e(C(JR),{key:0,value:w.repeatNum,type:C(u),class:fe(C(i).e("badge"))},null,8,["value","type","class"])):be("v-if",!0),C(c)?(V(),_e(C(Re),{key:1,class:fe([C(i).e("icon"),C(h)])},{default:he(()=>[(V(),_e(yt(C(c))))]),_:1},8,["class"])):be("v-if",!0),Se(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(V(),ce(ze,{key:1},[be(" Caution here, message could've been compromised, never use user's input as message "),oe("p",{class:fe(C(i).e("content")),innerHTML:w.message},null,10,G9)],2112)):(V(),ce("p",{key:0,class:fe(C(i).e("content"))},Ae(w.message),3))]),w.showClose?(V(),_e(C(Re),{key:2,class:fe(C(i).e("closeBtn")),onClick:Je(b,["stop"])},{default:he(()=>[ue(C(r))]),_:1},8,["class","onClick"])):be("v-if",!0)],46,K9),[[Lt,m.value]])]),_:3},8,["name","onBeforeLeave"]))}});var J9=Le(Z9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let Q9=1;const nw=e=>{const t=!e||Ye(e)||ki(e)||Ve(e)?{message:e}:e,n={...dn,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ye(n.appendTo)){let r=document.querySelector(n.appendTo);fo(r)||(r=document.body),n.appendTo=r}return n},eV=e=>{const t=hr.indexOf(e);if(t===-1)return;hr.splice(t,1);const{handler:n}=e;n.close()},tV=({appendTo:e,...t},n)=>{const{nextZIndex:r}=ul(),i=`message_${Q9++}`,l=t.onClose,m=document.createElement("div"),a={...t,zIndex:r()+t.zIndex,id:i,onClose:()=>{l==null||l(),eV(c)},onDestroy:()=>{Lu(null,m)}},o=ue(J9,a,Ve(a.message)||ki(a.message)?{default:Ve(a.message)?a.message:()=>a.message}:null);o.appContext=n||ha._context,Lu(o,m),e.appendChild(m.firstElementChild);const u=o.component,c={id:i,vnode:o,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:o.component.props};return c},ha=(e={},t)=>{if(!ot)return{close:()=>{}};if(et(xd.max)&&hr.length>=xd.max)return{close:()=>{}};const n=nw(e);if(n.grouping&&hr.length){const i=hr.find(({vnode:l})=>{var m;return((m=l.props)==null?void 0:m.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}const r=tV(n,t);return hr.push(r),r.handler};tw.forEach(e=>{ha[e]=(t={},n)=>{const r=nw(t);return ha({...r,type:e},n)}});function nV(e){for(const t of hr)(!e||e===t.props.type)&&t.handler.close()}ha.closeAll=nV;ha._context=null;const Pi=YI(ha,"$message"),rV=Te({name:"ElMessageBox",directives:{TrapFocus:TD},components:{ElButton:dt,ElFocusTrap:_p,ElInput:Ao,ElOverlay:B1,ElIcon:Re,...$_},inheritAttrs:!1,props:{buttonSize:{type:String,validator:kc},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,roundButton:{default:!1,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:t}){const{t:n}=nn(),r=Ie("message-box"),i=se(!1),{nextZIndex:l}=ul(),m=_t({autofocus:!0,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:!1,distinguishCancelAndClose:!1,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:!0,modalClass:"",showCancelButton:!1,showConfirmButton:!0,type:"",title:void 0,showInput:!1,action:"",confirmButtonLoading:!1,cancelButtonLoading:!1,confirmButtonDisabled:!1,editorErrorMessage:"",validateError:!1,zIndex:l()}),a=ee(()=>{const F=m.type;return{[r.bm("icon",F)]:F&&Nu[F]}}),o=Ai(),u=Ai(),h=Un(ee(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),c=ee(()=>m.icon||Nu[m.type]||""),f=ee(()=>!!m.message),s=se(),d=se(),v=se(),g=se(),y=se(),b=ee(()=>m.confirmButtonClass);xe(()=>m.inputValue,async F=>{await He(),e.boxType==="prompt"&&F!==null&&A()},{immediate:!0}),xe(()=>i.value,F=>{var E,W;F&&(e.boxType!=="prompt"&&(m.autofocus?v.value=(W=(E=y.value)==null?void 0:E.$el)!=null?W:s.value:v.value=s.value),m.zIndex=l()),e.boxType==="prompt"&&(F?He().then(()=>{var te;g.value&&g.value.$el&&(m.autofocus?v.value=(te=$())!=null?te:s.value:v.value=s.value)}):(m.editorErrorMessage="",m.validateError=!1))});const _=ee(()=>e.draggable);Q_(s,d,_),qe(async()=>{await He(),e.closeOnHashChange&&window.addEventListener("hashchange",w)}),Nt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",w)});function w(){!i.value||(i.value=!1,He(()=>{m.action&&t("action",m.action)}))}const S=()=>{e.closeOnClickModal&&O(m.distinguishCancelAndClose?"close":"cancel")},x=fp(S),T=F=>{if(m.inputType!=="textarea")return F.preventDefault(),O("confirm")},O=F=>{var E;e.boxType==="prompt"&&F==="confirm"&&!A()||(m.action=F,m.beforeClose?(E=m.beforeClose)==null||E.call(m,F,m,w):w())},A=()=>{if(e.boxType==="prompt"){const F=m.inputPattern;if(F&&!F.test(m.inputValue||""))return m.editorErrorMessage=m.inputErrorMessage||n("el.messagebox.error"),m.validateError=!0,!1;const E=m.inputValidator;if(typeof E=="function"){const W=E(m.inputValue);if(W===!1)return m.editorErrorMessage=m.inputErrorMessage||n("el.messagebox.error"),m.validateError=!0,!1;if(typeof W=="string")return m.editorErrorMessage=W,m.validateError=!0,!1}}return m.editorErrorMessage="",m.validateError=!1,!0},$=()=>{const F=g.value.$refs;return F.input||F.textarea},j=()=>{O("close")},R=()=>{e.closeOnPressEscape&&j()};return e.lockScroll&&e1(i),hM(i),{...zn(m),ns:r,overlayEvent:x,visible:i,hasMessage:f,typeClass:a,contentId:o,inputId:u,btnSize:h,iconComponent:c,confirmButtonClasses:b,rootRef:s,focusStartRef:v,headerRef:d,inputRef:g,confirmRef:y,doClose:w,handleClose:j,onCloseRequested:R,handleWrapperClick:S,handleInputEnter:T,handleAction:O,t:n}}}),iV=["aria-label","aria-describedby"],oV=["aria-label"],aV=["id"];function sV(e,t,n,r,i,l){const m=ft("el-icon"),a=ft("close"),o=ft("el-input"),u=ft("el-button"),h=ft("el-focus-trap"),c=ft("el-overlay");return V(),_e(tn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:he(()=>[pt(ue(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:he(()=>[oe("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:fe(`${e.ns.namespace.value}-overlay-message-box`),onClick:t[8]||(t[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:t[9]||(t[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:t[10]||(t[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[ue(h,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:he(()=>[oe("div",{ref:"rootRef",class:fe([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Fe(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=Je(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(V(),ce("div",{key:0,ref:"headerRef",class:fe(e.ns.e("header"))},[oe("div",{class:fe(e.ns.e("title"))},[e.iconComponent&&e.center?(V(),_e(m,{key:0,class:fe([e.ns.e("status"),e.typeClass])},{default:he(()=>[(V(),_e(yt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),oe("span",null,Ae(e.title),1)],2),e.showClose?(V(),ce("button",{key:0,type:"button",class:fe(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:t[0]||(t[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:t[1]||(t[1]=Et(Je(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[ue(m,{class:fe(e.ns.e("close"))},{default:he(()=>[ue(a)]),_:1},8,["class"])],42,oV)):be("v-if",!0)],2)):be("v-if",!0),oe("div",{id:e.contentId,class:fe(e.ns.e("content"))},[oe("div",{class:fe(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(V(),_e(m,{key:0,class:fe([e.ns.e("status"),e.typeClass])},{default:he(()=>[(V(),_e(yt(e.iconComponent)))]),_:1},8,["class"])):be("v-if",!0),e.hasMessage?(V(),ce("div",{key:1,class:fe(e.ns.e("message"))},[Se(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(V(),_e(yt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(V(),_e(yt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:he(()=>[Ne(Ae(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):be("v-if",!0)],2),pt(oe("div",{class:fe(e.ns.e("input"))},[ue(o,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":t[2]||(t[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:fe({invalid:e.validateError}),onKeydown:Et(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),oe("div",{class:fe(e.ns.e("errormsg")),style:Fe({visibility:e.editorErrorMessage?"visible":"hidden"})},Ae(e.editorErrorMessage),7)],2),[[Lt,e.showInput]])],10,aV),oe("div",{class:fe(e.ns.e("btns"))},[e.showCancelButton?(V(),_e(u,{key:0,loading:e.cancelButtonLoading,class:fe([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Et(Je(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:he(()=>[Ne(Ae(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):be("v-if",!0),pt(ue(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:fe([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:t[5]||(t[5]=f=>e.handleAction("confirm")),onKeydown:t[6]||(t[6]=Et(Je(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:he(()=>[Ne(Ae(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Lt,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,iV)]),_:3},8,["z-index","overlay-class","mask"]),[[Lt,e.visible]])]),_:3})}var lV=Le(rV,[["render",sV],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const Ns=new Map,uV=(e,t,n=null)=>{const r=ue(lV,e,Ve(e.message)||ki(e.message)?{default:Ve(e.message)?e.message:()=>e.message}:null);return r.appContext=n,Lu(r,t),document.body.appendChild(t.firstElementChild),r.component},cV=()=>document.createElement("div"),fV=(e,t)=>{const n=cV();e.onVanish=()=>{Lu(null,n),Ns.delete(i)},e.onAction=l=>{const m=Ns.get(i);let a;e.showInput?a={value:i.inputValue,action:l}:a=l,e.callback?e.callback(a,r.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?m.reject("close"):m.reject("cancel"):m.resolve(a)};const r=uV(e,n,t),i=r.proxy;for(const l in e)Ge(e,l)&&!Ge(i.$props,l)&&(i[l]=e[l]);return i.visible=!0,i};function xa(e,t=null){if(!ot)return Promise.reject();let n;return Ye(e)||ki(e)?e={message:e}:n=e.callback,new Promise((r,i)=>{const l=fV(e,t!=null?t:xa._context);Ns.set(l,{options:e,callback:n,resolve:r,reject:i})})}const dV=["alert","confirm","prompt"],hV={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};dV.forEach(e=>{xa[e]=pV(e)});function pV(e){return(t,n,r,i)=>{let l="";return Qe(n)?(r=n,l=""):Zn(n)?l="":l=n,xa(Object.assign({title:l,message:t,type:"",...hV[e]},r,{boxType:e}),i)}}xa.close=()=>{Ns.forEach((e,t)=>{t.doClose()}),Ns.clear()};xa._context=null;const ui=xa;ui.install=e=>{ui._context=e._context,e.config.globalProperties.$msgbox=ui,e.config.globalProperties.$messageBox=ui,e.config.globalProperties.$alert=ui.alert,e.config.globalProperties.$confirm=ui.confirm,e.config.globalProperties.$prompt=ui.prompt};const rw=ui;const Jt=ya("options",()=>{const e=Rn("options",se({colorMode:rm({emitAuto:!0})})),t=Rn("pageSize",25),n=Rn("pageless","Disabled"),r=Rn("allowLargerParams","Disabled"),i=Rn("autoCarousel","Enabled"),l=Rn("useBeta","Disabled"),m=Rn("imageDownloadType","PNG"),a=Rn("baseURL","");return e.value.colorMode=rm({emitAuto:!0,initialValue:e.value.colorMode}),{options:e,pageSize:t,pageless:n,allowLargerParams:r,autoCarousel:i,useBeta:l,imageDownloadType:m,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 rt=function(){return rt=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},rt.apply(this,arguments)};function Id(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 At=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$t=Object.keys,Qt=Array.isArray;typeof Promise<"u"&&!At.Promise&&(At.Promise=Promise);function cn(e,t){return typeof t!="object"||$t(t).forEach(function(n){e[n]=t[n]}),e}var js=Object.getPrototypeOf,gV={}.hasOwnProperty;function Mn(e,t){return gV.call(e,t)}function pa(e,t){typeof t=="function"&&(t=t(js(e))),(typeof Reflect>"u"?$t:Reflect.ownKeys)(t).forEach(function(n){Yr(e,n,t[n])})}var iw=Object.defineProperty;function Yr(e,t,n,r){iw(e,t,cn(n&&Mn(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function Ta(e){return{from:function(t){return e.prototype=Object.create(t.prototype),Yr(e.prototype,"constructor",e),{extend:pa.bind(null,e.prototype)}}}}var vV=Object.getOwnPropertyDescriptor;function Ap(e,t){var n=vV(e,t),r;return n||(r=js(e))&&Ap(r,t)}var mV=[].slice;function Ic(e,t,n){return mV.call(e,t,n)}function ow(e,t){return t(e)}function Ya(e){if(!e)throw new Error("Assertion Failed")}function aw(e){At.setImmediate?setImmediate(e):setTimeout(e,0)}function sw(e,t){return e.reduce(function(n,r,i){var l=t(r,i);return l&&(n[l[0]]=l[1]),n},{})}function yV(e,t,n){try{e.apply(null,n)}catch(r){t&&t(r)}}function jr(e,t){if(Mn(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=jr(e,t[r]);n.push(l)}return n}var m=t.indexOf(".");if(m!==-1){var a=e[t.substr(0,m)];return a===void 0?void 0:jr(a,t.substr(m+1))}}function Jn(e,t,n){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){Ya(typeof n!="string"&&"length"in n);for(var r=0,i=t.length;r<i;++r)Jn(e,t[r],n[r])}else{var l=t.indexOf(".");if(l!==-1){var m=t.substr(0,l),a=t.substr(l+1);if(a==="")n===void 0?Qt(e)&&!isNaN(parseInt(m))?e.splice(m,1):delete e[m]:e[m]=n;else{var o=e[m];(!o||!Mn(e,m))&&(o=e[m]={}),Jn(o,a,n)}}else n===void 0?Qt(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function bV(e,t){typeof t=="string"?Jn(e,t,void 0):"length"in t&&[].map.call(t,function(n){Jn(e,n,void 0)})}function lw(e){var t={};for(var n in e)Mn(e,n)&&(t[n]=e[n]);return t}var _V=[].concat;function uw(e){return _V.apply([],e)}var cw="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(uw([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return At[e]}),wV=cw.map(function(e){return At[e]});sw(cw,function(e){return[e,!0]});var hi=null;function hl(e){hi=typeof WeakMap<"u"&&new WeakMap;var t=Md(e);return hi=null,t}function Md(e){if(!e||typeof e!="object")return e;var t=hi&&hi.get(e);if(t)return t;if(Qt(e)){t=[],hi&&hi.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(Md(e[n]))}else if(wV.indexOf(e.constructor)>=0)t=e;else{var i=js(e);t=i===Object.prototype?{}:Object.create(i),hi&&hi.set(e,t);for(var l in e)Mn(e,l)&&(t[l]=Md(e[l]))}return t}var CV={}.toString;function Ld(e){return CV.call(e).slice(8,-1)}var Rd=typeof Symbol<"u"?Symbol.iterator:"@@iterator",SV=typeof Rd=="symbol"?function(e){var t;return e!=null&&(t=e[Rd])&&t.apply(e)}:function(){return null},Wo={};function $r(e){var t,n,r,i;if(arguments.length===1){if(Qt(e))return e.slice();if(this===Wo&&typeof e=="string")return[e];if(i=SV(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 Pp=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},xr=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function fw(e,t){xr=e,dw=t}var dw=function(){return!0},xV=!new Error("").stack;function Po(){if(xV)try{throw Po.arguments,new Error}catch(e){return e}return new Error}function Dd(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(dw).map(function(r){return`
|
||
`+r}).join("")):""}var TV=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],hw=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Ip=TV.concat(hw),kV={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 ka(e,t){this._e=Po(),this.name=e,this.message=t}Ta(ka).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Dd(this._e,2))}},toString:function(){return this.name+": "+this.message}});function pw(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 Hu(e,t,n,r){this._e=Po(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=pw(e,t)}Ta(Hu).from(ka);function us(e,t){this._e=Po(),this.name="BulkError",this.failures=Object.keys(t).map(function(n){return t[n]}),this.failuresByPos=t,this.message=pw(e,t)}Ta(us).from(ka);var Mp=Ip.reduce(function(e,t){return e[t]=t+"Error",e},{}),EV=ka,Xe=Ip.reduce(function(e,t){var n=t+"Error";function r(i,l){this._e=Po(),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=kV[t]||n,this.inner=null)}return Ta(r).from(EV),e[t]=r,e},{});Xe.Syntax=SyntaxError;Xe.Type=TypeError;Xe.Range=RangeError;var o0=hw.reduce(function(e,t){return e[t+"Error"]=Xe[t],e},{});function OV(e,t){if(!e||e instanceof ka||e instanceof TypeError||e instanceof SyntaxError||!e.name||!o0[e.name])return e;var n=new o0[e.name](t||e.message,e);return"stack"in e&&Yr(n,"stack",{get:function(){return this.inner.stack}}),n}var Mc=Ip.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=Xe[t]),e},{});Mc.ModifyError=Hu;Mc.DexieError=ka;Mc.BulkError=us;function Tt(){}function pl(e){return e}function AV(e,t){return e==null||e===pl?t:function(n){return t(e(n))}}function go(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function PV(e,t){return e===Tt?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?go(r,this.onsuccess):r),i&&(this.onerror=this.onerror?go(i,this.onerror):i),l!==void 0?l:n}}function IV(e,t){return e===Tt?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?go(n,this.onsuccess):n),r&&(this.onerror=this.onerror?go(r,this.onerror):r)}}function MV(e,t){return e===Tt?t:function(n){var r=e.apply(this,arguments);cn(n,r);var i=this.onsuccess,l=this.onerror;this.onsuccess=null,this.onerror=null;var m=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?go(i,this.onsuccess):i),l&&(this.onerror=this.onerror?go(l,this.onerror):l),r===void 0?m===void 0?void 0:m:cn(r,m)}}function LV(e,t){return e===Tt?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function Lp(e,t){return e===Tt?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 Vs={},RV=100,DV=20,gw=100,Rp=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,js(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,js(t),e]}(),$d=Rp[0],Uu=Rp[1],Bd=Rp[2],vw=Uu&&Uu.then,vu=$d&&$d.constructor,Dp=!!Bd,Fd=!1,$V=Bd?function(){Bd.then(jl)}:At.setImmediate?setImmediate.bind(null,jl):At.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){jl(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(jl,0)},Hs=function(e,t){Xa.push([e,t]),Wu&&($V(),Wu=!1)},zd=!0,Wu=!0,so=[],mu=[],Nd=null,jd=pl,Jo={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:l0,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{l0(e[0],e[1])}catch{}})}},Ue=Jo,Xa=[],lo=0,yu=[];function $e(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=Tt,this._lib=!1;var t=this._PSD=Ue;if(xr&&(this._stackHolder=Po(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==Vs)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&Hd(this,this._value);return}this._state=null,this._value=null,++t.ref,yw(this,e)}var Vd={get:function(){var e=Ue,t=Yu;function n(r,i){var l=this,m=!e.global&&(e!==Ue||t!==Yu),a=m&&!Xr(),o=new $e(function(u,h){$p(l,new mw(Ku(r,e,m,a),Ku(i,e,m,a),u,h,e))});return xr&&ww(o,this),o}return n.prototype=Vs,n},set:function(e){Yr(this,"then",e&&e.prototype===Vs?Vd:{get:function(){return e},set:Vd.set})}};pa($e.prototype,{then:Vd,_then:function(e,t){$p(this,new mw(null,null,e,t,Ue))},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):bu(r)}):this.then(null,function(r){return r&&r.name===t?n(r):bu(r)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),bu(t)})},stack:{get:function(){if(this._stack)return this._stack;try{Fd=!0;var e=_w(this,[],DV),t=e.join(`
|
||
From previous: `);return this._state!==null&&(this._stack=t),t}finally{Fd=!1}}},timeout:function(e,t){var n=this;return e<1/0?new $e(function(r,i){var l=setTimeout(function(){return i(new Xe.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,l))}):this}});typeof Symbol<"u"&&Symbol.toStringTag&&Yr($e.prototype,Symbol.toStringTag,"Dexie.Promise");Jo.env=Cw();function mw(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}pa($e,{all:function(){var e=$r.apply(null,arguments).map(Xu);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(m){e[l]=m,--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(Vs,!0,e);return ww(t,Nd),t},reject:bu,race:function(){var e=$r.apply(null,arguments).map(Xu);return new $e(function(t,n){e.map(function(r){return $e.resolve(r).then(t,n)})})},PSD:{get:function(){return Ue},set:function(e){return Ue=e}},totalEchoes:{get:function(){return Yu}},newPSD:Ii,usePSD:Oa,scheduler:{get:function(){return Hs},set:function(e){Hs=e}},rejectionMapper:{get:function(){return jd},set:function(e){jd=e}},follow:function(e,t){return new $e(function(n,r){return Ii(function(i,l){var m=Ue;m.unhandleds=[],m.onunhandled=l,m.finalize=go(function(){var a=this;FV(function(){a.unhandleds.length===0?i():l(a.unhandleds[0])})},m.finalize),e()},t,n,r)})}});vu&&(vu.allSettled&&Yr($e,"allSettled",function(){var e=$r.apply(null,arguments).map(Xu);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(m){return r[l]={status:"fulfilled",value:m}},function(m){return r[l]={status:"rejected",reason:m}}).then(function(){return--n||t(r)})})})}),vu.any&&typeof AggregateError<"u"&&Yr($e,"any",function(){var e=$r.apply(null,arguments).map(Xu);return new $e(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,i=new Array(r);e.forEach(function(l,m){return $e.resolve(l).then(function(a){return t(a)},function(a){i[m]=a,--r||n(new AggregateError(i))})})})}));function yw(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&&gl();n&&typeof n.then=="function"?yw(e,function(i,l){n instanceof $e?n._then(i,l):n.then(i,l)}):(e._state=!0,e._value=n,bw(e)),r&&vl()}},Hd.bind(null,e))}catch(n){Hd(e,n)}}function Hd(e,t){if(mu.push(t),e._state===null){var n=e._lib&&gl();t=jd(t),e._state=!1,e._value=t,xr&&t!==null&&typeof t=="object"&&!t._promise&&yV(function(){var r=Ap(t,"stack");t._promise=e,Yr(t,"stack",{get:function(){return Fd?r&&(r.get?r.get.apply(t):r.value):e.stack}})}),zV(e),bw(e),n&&vl()}}function bw(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)$p(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),lo===0&&(++lo,Hs(function(){--lo===0&&Bp()},[]))}function $p(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,++lo,Hs(BV,[n,e,t])}function BV(e,t,n){try{Nd=t;var r,i=t._value;t._state?r=e(i):(mu.length&&(mu=[]),r=e(i),mu.indexOf(i)===-1&&NV(t)),n.resolve(r)}catch(l){n.reject(l)}finally{Nd=null,--lo===0&&Bp(),--n.psd.ref||n.psd.finalize()}}function _w(e,t,n){if(t.length===n)return t;var r="";if(e._state===!1){var i=e._value,l,m;i!=null?(l=i.name||"Error",m=i.message||i,r=Dd(i,0)):(l=i,m=""),t.push(l+(m?": "+m:"")+r)}return xr&&(r=Dd(e._stackHolder,2),r&&t.indexOf(r)===-1&&t.push(r),e._prev&&_w(e._prev,t,n)),t}function ww(e,t){var n=t?t._numPrev+1:0;n<RV&&(e._prev=t,e._numPrev=n)}function jl(){gl()&&vl()}function gl(){var e=zd;return zd=!1,Wu=!1,e}function vl(){var e,t,n;do for(;Xa.length>0;)for(e=Xa,Xa=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(Xa.length>0);zd=!0,Wu=!0}function Bp(){var e=so;so=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=yu.slice(0),n=t.length;n;)t[--n]()}function FV(e){function t(){e(),yu.splice(yu.indexOf(t),1)}yu.push(t),++lo,Hs(function(){--lo===0&&Bp()},[])}function zV(e){so.some(function(t){return t._value===e._value})||so.push(e)}function NV(e){for(var t=so.length;t;)if(so[--t]._value===e._value){so.splice(t,1);return}}function bu(e){return new $e(Vs,!1,e)}function It(e,t){var n=Ue;return function(){var r=gl(),i=Ue;try{return Mi(n,!0),e.apply(this,arguments)}catch(l){t&&t(l)}finally{Mi(i,!1),r&&vl()}}}var qt={awaits:0,echoes:0,id:0},jV=0,_u=[],vf=0,Yu=0,VV=0;function Ii(e,t,n,r){var i=Ue,l=Object.create(i);l.parent=i,l.ref=0,l.global=!1,l.id=++VV;var m=Jo.env;l.env=Dp?{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:a0(m.nthen,l),gthen:a0(m.gthen,l)}:{},t&&cn(l,t),++i.ref,l.finalize=function(){--this.parent.ref||this.parent.finalize()};var a=Oa(l,e,n,r);return l.ref===0&&l.finalize(),a}function Ea(){return qt.id||(qt.id=++jV),++qt.awaits,qt.echoes+=gw,qt.id}function Xr(){return qt.awaits?(--qt.awaits===0&&(qt.id=0),qt.echoes=qt.awaits*gw,!0):!1}(""+vw).indexOf("[native code]")===-1&&(Ea=Xr=Tt);function Xu(e){return qt.echoes&&e&&e.constructor===vu?(Ea(),e.then(function(t){return Xr(),t},function(t){return Xr(),Ft(t)})):e}function HV(e){++Yu,(!qt.echoes||--qt.echoes===0)&&(qt.echoes=qt.id=0),_u.push(Ue),Mi(e,!0)}function UV(){var e=_u[_u.length-1];_u.pop(),Mi(e,!1)}function Mi(e,t){var n=Ue;if((t?qt.echoes&&(!vf++||e!==Ue):vf&&(!--vf||e!==Ue))&&Sw(t?HV.bind(null,e):UV),e!==Ue&&(Ue=e,n===Jo&&(Jo.env=Cw()),Dp)){var r=Jo.env.Promise,i=e.env;Uu.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty(At,"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 Cw(){var e=At.Promise;return Dp?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor(At,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:Uu.then,gthen:e.prototype.then}:{}}function Oa(e,t,n,r,i){var l=Ue;try{return Mi(e,!0),t(n,r,i)}finally{Mi(l,!1)}}function Sw(e){vw.call($d,e)}function Ku(e,t,n,r){return typeof e!="function"?e:function(){var i=Ue;n&&Ea(),Mi(t,!0);try{return e.apply(this,arguments)}finally{Mi(i,!1),r&&Sw(Xr)}}}function a0(e,t){return function(n,r){return e.call(this,Ku(n,t),Ku(r,t))}}var s0="unhandledrejection";function l0(e,t){var n;try{n=t.onuncatched(e)}catch{}if(n!==!1)try{var r,i={promise:t,reason:e};if(At.document&&document.createEvent?(r=document.createEvent("Event"),r.initEvent(s0,!0,!0),cn(r,i)):At.CustomEvent&&(r=new CustomEvent(s0,{detail:i}),cn(r,i)),r&&At.dispatchEvent&&(dispatchEvent(r),!At.PromiseRejectionEvent&&At.onunhandledrejection))try{At.onunhandledrejection(r)}catch{}xr&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch{}}var Ft=$e.reject;function Ud(e,t,n,r){if(!e.idbdb||!e._state.openComplete&&!Ue.letThrough&&!e._vip){if(e._state.openComplete)return Ft(new Xe.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return Ft(new Xe.DatabaseClosed);e.open().catch(Tt)}return e._state.dbReadyPromise.then(function(){return Ud(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===Mp.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return Ud(e,t,n,r)})):Ft(l)}return i._promise(t,function(l,m){return Ii(function(){return Ue.trans=i,r(l,m,i)})}).then(function(l){return i._completion.then(function(){return l})})}}var u0="3.2.2",eo=String.fromCharCode(65535),Wd=-1/0,Er="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",xw="String expected.",cs=[],Lc=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),WV=Lc,YV=Lc,Tw=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},Rc="__dbnames",mf="readonly",yf="readwrite";function vo(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var kw={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function Vl(e){return typeof e=="string"&&!/\./.test(e)?function(t){return t[e]===void 0&&e in t&&(t=hl(t),delete t[e]),t}:function(t){return t}}var XV=function(){function e(){}return e.prototype._trans=function(t,n,r){var i=this._tx||Ue.trans,l=this.name;function m(o,u,h){if(!h.schema[l])throw new Xe.NotFound("Table "+l+" not part of transaction");return n(h.idbtrans,h)}var a=gl();try{return i&&i.db===this.db?i===Ue.trans?i._promise(t,m,r):Ii(function(){return i._promise(t,m,r)},{trans:i,transless:Ue.transless||Ue}):Ud(this.db,t,[this.name],m)}finally{a&&vl()}},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(Qt(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var n=$t(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(h){return h.compound&&n.every(function(c){return h.keyPath.indexOf(c)>=0})&&h.keyPath.every(function(c){return n.indexOf(c)>=0})})[0];if(r&&this.db._maxKey!==eo)return this.where(r.name).equals(r.keyPath.map(function(h){return t[h]}));!r&&xr&&console.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a "+("compound index ["+n.join("+")+"]"));var i=this.schema.idxByName,l=this.db._deps.indexedDB;function m(h,c){try{return l.cmp(h,c)===0}catch{return!1}}var a=n.reduce(function(h,c){var f=h[0],s=h[1],d=i[c],v=t[c];return[f||d,f||!d?vo(s,d&&d.multi?function(g){var y=jr(g,c);return Qt(y)&&y.some(function(b){return m(v,b)})}:function(g){return m(v,jr(g,c))}):s]},[null,null]),o=a[0],u=a[1];return o?this.where(o.name).equals(t[o.keyPath]).filter(u):r?this.filter(u):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,Qt(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(Mn(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){cn(this,n)}return this.mapToClass(t)},e.prototype.add=function(t,n){var r=this,i=this.schema.primKey,l=i.auto,m=i.keyPath,a=t;return m&&l&&(a=Vl(m)(t)),this._trans("readwrite",function(o){return r.core.mutate({trans:o,type:"add",keys:n!=null?[n]:null,values:[a]})}).then(function(o){return o.numFailures?$e.reject(o.failures[0]):o.lastResult}).then(function(o){if(m)try{Jn(t,m,o)}catch{}return o})},e.prototype.update=function(t,n){if(typeof t=="object"&&!Qt(t)){var r=jr(t,this.schema.primKey.keyPath);if(r===void 0)return Ft(new Xe.InvalidArgument("Given object does not contain its primary key"));try{typeof n!="function"?$t(n).forEach(function(i){Jn(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,m=i.keyPath,a=t;return m&&l&&(a=Vl(m)(t)),this._trans("readwrite",function(o){return r.core.mutate({trans:o,type:"put",values:[a],keys:n!=null?[n]:null})}).then(function(o){return o.numFailures?$e.reject(o.failures[0]):o.lastResult}).then(function(o){if(m)try{Jn(t,m,o)}catch{}return o})},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:kw})}).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 m=r?r.allKeys:void 0;return this._trans("readwrite",function(a){var o=i.schema.primKey,u=o.auto,h=o.keyPath;if(h&&l)throw new Xe.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(l&&l.length!==t.length)throw new Xe.InvalidArgument("Arguments objects and keys must have the same length");var c=t.length,f=h&&u?t.map(Vl(h)):t;return i.core.mutate({trans:a,type:"add",keys:l,values:f,wantResults:m}).then(function(s){var d=s.numFailures,v=s.results,g=s.lastResult,y=s.failures,b=m?v:g;if(d===0)return b;throw new us(i.name+".bulkAdd(): "+d+" of "+c+" operations failed",y)})})},e.prototype.bulkPut=function(t,n,r){var i=this,l=Array.isArray(n)?n:void 0;r=r||(l?void 0:n);var m=r?r.allKeys:void 0;return this._trans("readwrite",function(a){var o=i.schema.primKey,u=o.auto,h=o.keyPath;if(h&&l)throw new Xe.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(l&&l.length!==t.length)throw new Xe.InvalidArgument("Arguments objects and keys must have the same length");var c=t.length,f=h&&u?t.map(Vl(h)):t;return i.core.mutate({trans:a,type:"put",keys:l,values:f,wantResults:m}).then(function(s){var d=s.numFailures,v=s.results,g=s.lastResult,y=s.failures,b=m?v:g;if(d===0)return b;throw new us(i.name+".bulkPut(): "+d+" of "+c+" operations failed",y)})})},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,m=i.lastResult,a=i.failures;if(l===0)return m;throw new us(n.name+".bulkDelete(): "+l+" of "+r+" operations failed",a)})},e}();function ml(e){var t={},n=function(a,o){if(o){for(var u=arguments.length,h=new Array(u-1);--u;)h[u-1]=arguments[u];return t[a].subscribe.apply(null,h),e}else if(typeof a=="string")return t[a]};n.addEventType=l;for(var r=1,i=arguments.length;r<i;++r)l(arguments[r]);return n;function l(a,o,u){if(typeof a=="object")return m(a);o||(o=LV),u||(u=Tt);var h={subscribers:[],fire:u,subscribe:function(c){h.subscribers.indexOf(c)===-1&&(h.subscribers.push(c),h.fire=o(h.fire,c))},unsubscribe:function(c){h.subscribers=h.subscribers.filter(function(f){return f!==c}),h.fire=h.subscribers.reduce(o,u)}};return t[a]=n[a]=h,h}function m(a){$t(a).forEach(function(o){var u=a[o];if(Qt(u))l(o,a[o][0],a[o][1]);else if(u==="asap")var h=l(o,pl,function(){for(var f=arguments.length,s=new Array(f);f--;)s[f]=arguments[f];h.subscribers.forEach(function(d){aw(function(){d.apply(null,s)})})});else throw new Xe.InvalidArgument("Invalid event config")})}}function yl(e,t){return Ta(t).from({prototype:e}),t}function KV(e){return yl(XV.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:ml(null,{creating:[PV,Tt],reading:[AV,pl],updating:[MV,Tt],deleting:[IV,Tt]})})}function Fo(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function bf(e,t){e.filter=vo(e.filter,t)}function _f(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return vo(r(),t())}:t,e.justLimit=n&&!r}function GV(e,t){e.isMatch=vo(e.isMatch,t)}function wu(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new Xe.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function c0(e,t,n){var r=wu(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 Hl(e,t,n,r){var i=e.replayFilter?vo(e.filter,e.replayFilter()):e.filter;if(e.or){var l={},m=function(a,o,u){if(!i||i(o,u,function(f){return o.stop(f)},function(f){return o.fail(f)})){var h=o.primaryKey,c=""+h;c==="[object ArrayBuffer]"&&(c=""+new Uint8Array(h)),Mn(l,c)||(l[c]=!0,t(a,o,u))}};return Promise.all([e.or._iterate(m,n),f0(c0(e,r,n),e.algorithm,m,!e.keysOnly&&e.valueMapper)])}else return f0(c0(e,r,n),vo(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function f0(e,t,n,r){var i=r?function(m,a,o){return n(r(m),a,o)}:n,l=It(i);return e.then(function(m){if(m)return m.start(function(){var a=function(){return m.continue()};(!t||t(m,function(o){return a=o},function(o){m.stop(o),a=Tt},function(o){m.fail(o),a=Tt}))&&l(m.value,m,function(o){return a=o}),a()})})}function sn(e,t){try{var n=d0(e),r=d0(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 ZV(h0(e),h0(t));case"Array":return qV(e,t)}}catch{}return NaN}function qV(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,l=0;l<i;++l){var m=sn(e[l],t[l]);if(m!==0)return m}return n===r?0:n<r?-1:1}function ZV(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 d0(e){var t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";var n=Ld(e);return n==="ArrayBuffer"?"binary":n}function h0(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var JV=function(){function e(){}return e.prototype._read=function(t,n){var r=this._ctx;return r.error?r.table._trans(null,Ft.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,Ft.bind(null,n.error)):n.table._trans("readwrite",t,"locked")},e.prototype._addAlgorithm=function(t){var n=this._ctx;n.algorithm=vo(n.algorithm,t)},e.prototype._iterate=function(t,n){return Hl(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&&cn(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 Hl(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(Fo(i,!0))return l.count({trans:r,query:{index:wu(i,l.schema),range:i.range}}).then(function(a){return Math.min(a,i.limit)});var m=0;return Hl(i,function(){return++m,!1},r,l).then(function(){return m})}).then(t)},e.prototype.sortBy=function(t,n){var r=t.split(".").reverse(),i=r[0],l=r.length-1;function m(u,h){return h?m(u[r[h]],h-1):u[i]}var a=this._ctx.dir==="next"?1:-1;function o(u,h){var c=m(u,l),f=m(h,l);return c<f?-a:c>f?a:0}return this.toArray(function(u){return u.sort(o)}).then(n)},e.prototype.toArray=function(t){var n=this;return this._read(function(r){var i=n._ctx;if(i.dir==="next"&&Fo(i,!0)&&i.limit>0){var l=i.valueMapper,m=wu(i,i.table.core.schema);return i.table.core.query({trans:r,limit:i.limit,values:!0,query:{index:m,range:i.range}}).then(function(o){var u=o.result;return l?u.map(l):u})}else{var a=[];return Hl(i,function(o){return a.push(o)},r,i.table.core).then(function(){return a})}},t)},e.prototype.offset=function(t){var n=this._ctx;return t<=0?this:(n.offset+=t,Fo(n)?_f(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)}}):_f(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),_f(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 bf(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 bf(this._ctx,function(n){return t(n.value)}),GV(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"&&Fo(n,!0)&&n.limit>0)return this._read(function(i){var l=wu(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 bf(this._ctx,function(i){var l=i.primaryKey.toString(),m=Mn(r,l);return r[l]=!0,!m}),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 m=$t(t),a=m.length;l=function(y){for(var b=!1,_=0;_<a;++_){var w=m[_],S=t[w];jr(y,w)!==S&&(Jn(y,w,S),b=!0)}return b}}var o=r.table.core,u=o.schema.primaryKey,h=u.outbound,c=u.extractKey,f=n.db._options.modifyChunkSize||200,s=[],d=0,v=[],g=function(y,b){var _=b.failures,w=b.numFailures;d+=y-w;for(var S=0,x=$t(_);S<x.length;S++){var T=x[S];s.push(_[T])}};return n.clone().primaryKeys().then(function(y){var b=function(_){var w=Math.min(f,y.length-_);return o.getMany({trans:i,keys:y.slice(_,_+w),cache:"immutable"}).then(function(S){for(var x=[],T=[],O=h?[]:null,A=[],$=0;$<w;++$){var j=S[$],R={value:hl(j),primKey:y[_+$]};l.call(R,R.value,R)!==!1&&(R.value==null?A.push(y[_+$]):!h&&sn(c(j),c(R.value))!==0?(A.push(y[_+$]),x.push(R.value)):(T.push(R.value),h&&O.push(y[_+$])))}var F=Fo(r)&&r.limit===1/0&&(typeof t!="function"||t===wf)&&{index:r.index,range:r.range};return Promise.resolve(x.length>0&&o.mutate({trans:i,type:"add",values:x}).then(function(E){for(var W in E.failures)A.splice(parseInt(W),1);g(x.length,E)})).then(function(){return(T.length>0||F&&typeof t=="object")&&o.mutate({trans:i,type:"put",keys:O,values:T,criteria:F,changeSpec:typeof t!="function"&&t}).then(function(E){return g(T.length,E)})}).then(function(){return(A.length>0||F&&t===wf)&&o.mutate({trans:i,type:"delete",keys:A,criteria:F}).then(function(E){return g(A.length,E)})}).then(function(){return y.length>_+w&&b(_+f)})})};return b(0).then(function(){if(s.length>0)throw new Hu("Error modifying one or more objects",s,d,v);return y.length})})})},e.prototype.delete=function(){var t=this._ctx,n=t.range;return Fo(t)&&(t.isPrimKey&&!YV||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(m){return t.table.core.mutate({trans:r,type:"deleteRange",range:l}).then(function(a){var o=a.failures;a.lastResult,a.results;var u=a.numFailures;if(u)throw new Hu("Could not delete some values",Object.keys(o).map(function(h){return o[h]}),m-u);return m-u})})}):this.modify(wf)},e}(),wf=function(e,t){return t.value=null};function QV(e){return yl(JV.prototype,function(n,r){this.db=e;var i=kw,l=null;if(r)try{i=r()}catch(u){l=u}var m=n._ctx,a=m.table,o=a.hook.reading.fire;this._ctx={table:a,index:m.index,isPrimKey:!m.index||a.schema.primKey.keyPath&&m.index===a.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:m.or,valueMapper:o!==pl?o:null}})}function e7(e,t){return e<t?-1:e===t?0:1}function t7(e,t){return e>t?-1:e===t?0:1}function Cn(e,t,n){var r=e instanceof Ow?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function zo(e){return new e.Collection(e,function(){return Ew("")}).limit(0)}function n7(e){return e==="next"?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function r7(e){return e==="next"?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function i7(e,t,n,r,i,l){for(var m=Math.min(e.length,r.length),a=-1,o=0;o<m;++o){var u=t[o];if(u!==r[o])return i(e[o],n[o])<0?e.substr(0,o)+n[o]+n.substr(o+1):i(e[o],r[o])<0?e.substr(0,o)+r[o]+n.substr(o+1):a>=0?e.substr(0,a)+t[a]+n.substr(a+1):null;i(e[o],u)<0&&(a=o)}return m<r.length&&l==="next"?e+n.substr(e.length):m<e.length&&l==="prev"?e.substr(0,n.length):a<0?null:e.substr(0,a)+r[a]+n.substr(a+1)}function Ul(e,t,n,r){var i,l,m,a,o,u,h,c=n.length;if(!n.every(function(v){return typeof v=="string"}))return Cn(e,xw);function f(v){i=n7(v),l=r7(v),m=v==="next"?e7:t7;var g=n.map(function(y){return{lower:l(y),upper:i(y)}}).sort(function(y,b){return m(y.lower,b.lower)});a=g.map(function(y){return y.upper}),o=g.map(function(y){return y.lower}),u=v,h=v==="next"?"":r}f("next");var s=new e.Collection(e,function(){return ci(a[0],o[c-1]+r)});s._ondirectionchange=function(v){f(v)};var d=0;return s._addAlgorithm(function(v,g,y){var b=v.key;if(typeof b!="string")return!1;var _=l(b);if(t(_,o,d))return!0;for(var w=null,S=d;S<c;++S){var x=i7(b,_,a[S],o[S],m,u);x===null&&w===null?d=S+1:(w===null||m(w,x)>0)&&(w=x)}return g(w!==null?function(){v.continue(w+h)}:y),!1}),s}function ci(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Ew(e){return{type:1,lower:e,upper:e}}var Ow=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)?zo(this):new this.Collection(this,function(){return ci(t,n,!r,!i)})}catch{return Cn(this,Er)}},e.prototype.equals=function(t){return t==null?Cn(this,Er):new this.Collection(this,function(){return Ew(t)})},e.prototype.above=function(t){return t==null?Cn(this,Er):new this.Collection(this,function(){return ci(t,void 0,!0)})},e.prototype.aboveOrEqual=function(t){return t==null?Cn(this,Er):new this.Collection(this,function(){return ci(t,void 0,!1)})},e.prototype.below=function(t){return t==null?Cn(this,Er):new this.Collection(this,function(){return ci(void 0,t,!1,!0)})},e.prototype.belowOrEqual=function(t){return t==null?Cn(this,Er):new this.Collection(this,function(){return ci(void 0,t)})},e.prototype.startsWith=function(t){return typeof t!="string"?Cn(this,xw):this.between(t,t+eo,!0,!0)},e.prototype.startsWithIgnoreCase=function(t){return t===""?this.startsWith(t):Ul(this,function(n,r){return n.indexOf(r[0])===0},[t],eo)},e.prototype.equalsIgnoreCase=function(t){return Ul(this,function(n,r){return n===r[0]},[t],"")},e.prototype.anyOfIgnoreCase=function(){var t=$r.apply(Wo,arguments);return t.length===0?zo(this):Ul(this,function(n,r){return r.indexOf(n)!==-1},t,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var t=$r.apply(Wo,arguments);return t.length===0?zo(this):Ul(this,function(n,r){return r.some(function(i){return n.indexOf(i)===0})},t,eo)},e.prototype.anyOf=function(){var t=this,n=$r.apply(Wo,arguments),r=this._cmp;try{n.sort(r)}catch{return Cn(this,Er)}if(n.length===0)return zo(this);var i=new this.Collection(this,function(){return ci(n[0],n[n.length-1])});i._ondirectionchange=function(m){r=m==="next"?t._ascending:t._descending,n.sort(r)};var l=0;return i._addAlgorithm(function(m,a,o){for(var u=m.key;r(u,n[l])>0;)if(++l,l===n.length)return a(o),!1;return r(u,n[l])===0?!0:(a(function(){m.continue(n[l])}),!1)}),i},e.prototype.notEqual=function(t){return this.inAnyRange([[Wd,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var t=$r.apply(Wo,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return Cn(this,Er)}var n=t.reduce(function(r,i){return r?r.concat([[r[r.length-1][1],i]]):[[Wd,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,m=this._descending,a=this._min,o=this._max;if(t.length===0)return zo(this);if(!t.every(function(S){return S[0]!==void 0&&S[1]!==void 0&&l(S[0],S[1])<=0}))return Cn(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Xe.InvalidArgument);var u=!n||n.includeLowers!==!1,h=n&&n.includeUppers===!0;function c(S,x){for(var T=0,O=S.length;T<O;++T){var A=S[T];if(i(x[0],A[1])<0&&i(x[1],A[0])>0){A[0]=a(A[0],x[0]),A[1]=o(A[1],x[1]);break}}return T===O&&S.push(x),S}var f=l;function s(S,x){return f(S[0],x[0])}var d;try{d=t.reduce(c,[]),d.sort(s)}catch{return Cn(this,Er)}var v=0,g=h?function(S){return l(S,d[v][1])>0}:function(S){return l(S,d[v][1])>=0},y=u?function(S){return m(S,d[v][0])>0}:function(S){return m(S,d[v][0])>=0};function b(S){return!g(S)&&!y(S)}var _=g,w=new this.Collection(this,function(){return ci(d[0][0],d[d.length-1][1],!u,!h)});return w._ondirectionchange=function(S){S==="next"?(_=g,f=l):(_=y,f=m),d.sort(s)},w._addAlgorithm(function(S,x,T){for(var O=S.key;_(O);)if(++v,v===d.length)return x(T),!1;return b(O)?!0:(r._cmp(O,d[v][1])===0||r._cmp(O,d[v][0])===0||x(function(){f===l?S.continue(d[v][0]):S.continue(d[v][1])}),!1)}),w},e.prototype.startsWithAnyOf=function(){var t=$r.apply(Wo,arguments);return t.every(function(n){return typeof n=="string"})?t.length===0?zo(this):this.inAnyRange(t.map(function(n){return[n,n+eo]})):Cn(this,"startsWithAnyOf() only works with strings")},e}();function o7(e){return yl(Ow.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 Xe.MissingAPI;this._cmp=this._ascending=l.cmp.bind(l),this._descending=function(m,a){return l.cmp(a,m)},this._max=function(m,a){return l.cmp(m,a)>0?m:a},this._min=function(m,a){return l.cmp(m,a)<0?m:a},this._IDBKeyRange=e._deps.IDBKeyRange})}function ur(e){return It(function(t){return Us(t),e(t.target.error),!1})}function Us(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var Ws="storagemutated",vi="x-storagemutated-1",Li=ml(null,Ws),a7=function(){function e(){}return e.prototype._lock=function(){return Ya(!Ue.global),++this._reculock,this._reculock===1&&!Ue.global&&(Ue.lockOwnerFor=this),this},e.prototype._unlock=function(){if(Ya(!Ue.global),--this._reculock===0)for(Ue.global||(Ue.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{Oa(t[1],t[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&Ue.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(Ya(!this.idbtrans),!t&&!r)switch(i&&i.name){case"DatabaseClosedError":throw new Xe.DatabaseClosed(i);case"MissingAPIError":throw new Xe.MissingAPI(i.message,i);default:throw new Xe.OpenFailed(i)}if(!this.active)throw new Xe.TransactionInactive;return Ya(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=It(function(l){Us(l),n._reject(t.error)}),t.onabort=It(function(l){Us(l),n.active&&n._reject(new Xe.Abort(t.error)),n.active=!1,n.on("abort").fire(l)}),t.oncomplete=It(function(){n.active=!1,n._resolve(),"mutatedParts"in t&&Li.storagemutated.fire(t.mutatedParts)}),this},e.prototype._promise=function(t,n,r){var i=this;if(t==="readwrite"&&this.mode!=="readwrite")return Ft(new Xe.ReadOnly("Transaction is readonly"));if(!this.active)return Ft(new Xe.TransactionInactive);if(this._locked())return new $e(function(m,a){i._blockedFuncs.push([function(){i._promise(t,n,r).then(m,a)},Ue])});if(r)return Ii(function(){var m=new $e(function(a,o){i._lock();var u=n(a,o,i);u&&u.then&&u.then(a,o)});return m.finally(function(){return i._unlock()}),m._lib=!0,m});var l=new $e(function(m,a){var o=n(m,a,i);o&&o.then&&o.then(m,a)});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 m(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(i.get(-1/0).onsuccess=m)})()}var l=n._waitingFor;return new $e(function(m,a){r.then(function(o){return n._waitingQueue.push(It(m.bind(null,o)))},function(o){return n._waitingQueue.push(It(a.bind(null,o)))}).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 Xe.Abort))},e.prototype.table=function(t){var n=this._memoizedTables||(this._memoizedTables={});if(Mn(n,t))return n[t];var r=this.schema[t];if(!r)throw new Xe.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 s7(e){return yl(a7.prototype,function(n,r,i,l,m){var a=this;this.db=e,this.mode=n,this.storeNames=r,this.schema=i,this.chromeTransactionDurability=l,this.idbtrans=null,this.on=ml(this,"complete","error","abort"),this.parent=m||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(o,u){a._resolve=o,a._reject=u}),this._completion.then(function(){a.active=!1,a.on.complete.fire()},function(o){var u=a.active;return a.active=!1,a.on.error.fire(o),a.parent?a.parent._reject(o):u&&a.idbtrans&&a.idbtrans.abort(),Ft(o)})})}function Yd(e,t,n,r,i,l,m){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:l,src:(n&&!m?"&":"")+(r?"*":"")+(i?"++":"")+Aw(t)}}function Aw(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function Pw(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:sw(n,function(r){return[r.name,r]})}}function l7(e){return e.length===1?e[0]:e}var Ys=function(e){try{return e.only([[]]),Ys=function(){return[[]]},[[]]}catch{return Ys=function(){return eo},eo}};function Xd(e){return e==null?function(){}:typeof e=="string"?u7(e):function(t){return jr(t,e)}}function u7(e){var t=e.split(".");return t.length===1?function(n){return n[e]}:function(n){return jr(n,e)}}function p0(e){return[].slice.call(e)}var c7=0;function fs(e){return e==null?":id":typeof e=="string"?e:"["+e.join("+")+"]"}function f7(e,t,n){function r(c,f){var s=p0(c.objectStoreNames);return{schema:{name:c.name,tables:s.map(function(d){return f.objectStore(d)}).map(function(d){var v=d.keyPath,g=d.autoIncrement,y=Qt(v),b=v==null,_={},w={name:d.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:b,compound:y,keyPath:v,autoIncrement:g,unique:!0,extractKey:Xd(v)},indexes:p0(d.indexNames).map(function(S){return d.index(S)}).map(function(S){var x=S.name,T=S.unique,O=S.multiEntry,A=S.keyPath,$=Qt(A),j={name:x,compound:$,keyPath:A,unique:T,multiEntry:O,extractKey:Xd(A)};return _[fs(A)]=j,j}),getIndexByKeyPath:function(S){return _[fs(S)]}};return _[":id"]=w.primaryKey,v!=null&&(_[fs(v)]=w.primaryKey),w})},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(c){if(c.type===3)return null;if(c.type===4)throw new Error("Cannot convert never type to IDBKeyRange");var f=c.lower,s=c.upper,d=c.lowerOpen,v=c.upperOpen,g=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 g}function l(c){var f=c.name;function s(g){var y=g.trans,b=g.type,_=g.keys,w=g.values,S=g.range;return new Promise(function(x,T){x=It(x);var O=y.objectStore(f),A=O.keyPath==null,$=b==="put"||b==="add";if(!$&&b!=="delete"&&b!=="deleteRange")throw new Error("Invalid operation type: "+b);var j=(_||w||{length:1}).length;if(_&&w&&_.length!==w.length)throw new Error("Given keys array must have same length as given values array.");if(j===0)return x({numFailures:0,failures:{},results:[],lastResult:void 0});var R,F=[],E=[],W=0,te=function(L){++W,Us(L)};if(b==="deleteRange"){if(S.type===4)return x({numFailures:W,failures:E,results:[],lastResult:void 0});S.type===3?F.push(R=O.clear()):F.push(R=O.delete(i(S)))}else{var Q=$?A?[w,_]:[w,null]:[_,null],le=Q[0],I=Q[1];if($)for(var z=0;z<j;++z)F.push(R=I&&I[z]!==void 0?O[b](le[z],I[z]):O[b](le[z])),R.onerror=te;else for(var z=0;z<j;++z)F.push(R=O[b](le[z])),R.onerror=te}var M=function(L){var J=L.target.result;F.forEach(function(U,P){return U.error!=null&&(E[P]=U.error)}),x({numFailures:W,failures:E,results:b==="delete"?_:F.map(function(U){return U.result}),lastResult:J})};R.onerror=function(L){te(L),M(L)},R.onsuccess=M})}function d(g){var y=g.trans,b=g.values,_=g.query,w=g.reverse,S=g.unique;return new Promise(function(x,T){x=It(x);var O=_.index,A=_.range,$=y.objectStore(f),j=O.isPrimaryKey?$:$.index(O.name),R=w?S?"prevunique":"prev":S?"nextunique":"next",F=b||!("openKeyCursor"in j)?j.openCursor(i(A),R):j.openKeyCursor(i(A),R);F.onerror=ur(T),F.onsuccess=It(function(E){var W=F.result;if(!W){x(null);return}W.___id=++c7,W.done=!1;var te=W.continue.bind(W),Q=W.continuePrimaryKey;Q&&(Q=Q.bind(W));var le=W.advance.bind(W),I=function(){throw new Error("Cursor not started")},z=function(){throw new Error("Cursor not stopped")};W.trans=y,W.stop=W.continue=W.continuePrimaryKey=W.advance=I,W.fail=It(T),W.next=function(){var M=this,L=1;return this.start(function(){return L--?M.continue():M.stop()}).then(function(){return M})},W.start=function(M){var L=new Promise(function(U,P){U=It(U),F.onerror=ur(P),W.fail=P,W.stop=function(q){W.stop=W.continue=W.continuePrimaryKey=W.advance=z,U(q)}}),J=function(){if(F.result)try{M()}catch(U){W.fail(U)}else W.done=!0,W.start=function(){throw new Error("Cursor behind last entry")},W.stop()};return F.onsuccess=It(function(U){F.onsuccess=J,J()}),W.continue=te,W.continuePrimaryKey=Q,W.advance=le,J(),L},x(W)},T)})}function v(g){return function(y){return new Promise(function(b,_){b=It(b);var w=y.trans,S=y.values,x=y.limit,T=y.query,O=x===1/0?void 0:x,A=T.index,$=T.range,j=w.objectStore(f),R=A.isPrimaryKey?j:j.index(A.name),F=i($);if(x===0)return b({result:[]});if(g){var E=S?R.getAll(F,O):R.getAllKeys(F,O);E.onsuccess=function(le){return b({result:le.target.result})},E.onerror=ur(_)}else{var W=0,te=S||!("openKeyCursor"in R)?R.openCursor(F):R.openKeyCursor(F),Q=[];te.onsuccess=function(le){var I=te.result;if(!I)return b({result:Q});if(Q.push(S?I.value:I.primaryKey),++W===x)return b({result:Q});I.continue()},te.onerror=ur(_)}})}}return{name:f,schema:c,mutate:s,getMany:function(g){var y=g.trans,b=g.keys;return new Promise(function(_,w){_=It(_);for(var S=y.objectStore(f),x=b.length,T=new Array(x),O=0,A=0,$,j=function(W){var te=W.target;(T[te._pos]=te.result)!=null,++A===O&&_(T)},R=ur(w),F=0;F<x;++F){var E=b[F];E!=null&&($=S.get(b[F]),$._pos=F,$.onsuccess=j,$.onerror=R,++O)}O===0&&_(T)})},get:function(g){var y=g.trans,b=g.key;return new Promise(function(_,w){_=It(_);var S=y.objectStore(f),x=S.get(b);x.onsuccess=function(T){return _(T.target.result)},x.onerror=ur(w)})},query:v(o),openCursor:d,count:function(g){var y=g.query,b=g.trans,_=y.index,w=y.range;return new Promise(function(S,x){var T=b.objectStore(f),O=_.isPrimaryKey?T:T.index(_.name),A=i(w),$=A?O.count(A):O.count();$.onsuccess=It(function(j){return S(j.target.result)}),$.onerror=ur(x)})}}}var m=r(e,n),a=m.schema,o=m.hasGetAll,u=a.tables.map(function(c){return l(c)}),h={};return u.forEach(function(c){return h[c.name]=c}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(c){var f=h[c];if(!f)throw new Error("Table '"+c+"' not found");return h[c]},MIN_KEY:-1/0,MAX_KEY:Ys(t),schema:a}}function d7(e,t){return t.reduce(function(n,r){var i=r.create;return rt(rt({},n),i(n))},e)}function h7(e,t,n,r){var i=n.IDBKeyRange;n.indexedDB;var l=d7(f7(t,i,r),e.dbcore);return{dbcore:l}}function Fp(e,t){var n=e._novip,r=t.db,i=h7(n._middlewares,r,n._deps,t);n.core=i.dbcore,n.tables.forEach(function(l){var m=l.name;n.core.schema.tables.some(function(a){return a.name===m})&&(l.core=n.core.table(m),n[m]instanceof n.Table&&(n[m].core=l.core))})}function Gu(e,t,n,r){var i=e._novip;n.forEach(function(l){var m=r[l];t.forEach(function(a){var o=Ap(a,l);(!o||"value"in o&&o.value===void 0)&&(a===i.Transaction.prototype||a instanceof i.Transaction?Yr(a,l,{get:function(){return this.table(l)},set:function(u){iw(this,l,{value:u,writable:!0,configurable:!0,enumerable:!0})}}):a[l]=new i.Table(l,m))})})}function Kd(e,t){var n=e._novip;t.forEach(function(r){for(var i in r)r[i]instanceof n.Table&&delete r[i]})}function p7(e,t){return e._cfg.version-t._cfg.version}function g7(e,t,n,r){var i=e._dbSchema,l=e._createTransaction("readwrite",e._storeNames,i);l.create(n),l._completion.catch(r);var m=l._reject.bind(l),a=Ue.transless||Ue;Ii(function(){Ue.trans=l,Ue.transless=a,t===0?($t(i).forEach(function(o){zp(n,o,i[o].primKey,i[o].indexes)}),Fp(e,n),$e.follow(function(){return e.on.populate.fire(l)}).catch(m)):v7(e,t,l,n).catch(m)})}function v7(e,t,n,r){var i=e._novip,l=[],m=i._versions,a=i._dbSchema=Np(i,i.idbdb,r),o=!1,u=m.filter(function(c){return c._cfg.version>=t});u.forEach(function(c){l.push(function(){var f=a,s=c._cfg.dbschema;qd(i,f,r),qd(i,s,r),a=i._dbSchema=s;var d=Iw(f,s);d.add.forEach(function(w){zp(r,w[0],w[1].primKey,w[1].indexes)}),d.change.forEach(function(w){if(w.recreate)throw new Xe.Upgrade("Not yet support for changing primary key");var S=r.objectStore(w.name);w.add.forEach(function(x){return Gd(S,x)}),w.change.forEach(function(x){S.deleteIndex(x.name),Gd(S,x)}),w.del.forEach(function(x){return S.deleteIndex(x)})});var v=c._cfg.contentUpgrade;if(v&&c._cfg.version>t){Fp(i,r),n._memoizedTables={},o=!0;var g=lw(s);d.del.forEach(function(w){g[w]=f[w]}),Kd(i,[i.Transaction.prototype]),Gu(i,[i.Transaction.prototype],$t(g),g),n.schema=g;var y=Pp(v);y&&Ea();var b,_=$e.follow(function(){if(b=v(n),b&&y){var w=Xr.bind(null,null);b.then(w,w)}});return b&&typeof b.then=="function"?$e.resolve(b):_.then(function(){return b})}}),l.push(function(f){if(!o||!WV){var s=c._cfg.dbschema;y7(s,f)}Kd(i,[i.Transaction.prototype]),Gu(i,[i.Transaction.prototype],i._storeNames,i._dbSchema),n.schema=i._dbSchema})});function h(){return l.length?$e.resolve(l.shift()(n.idbtrans)).then(h):$e.resolve()}return h().then(function(){m7(a,r)})}function Iw(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 m={name:r,def:l,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(l.primKey.keyPath||"")||i.primKey.auto!==l.primKey.auto&&!Lc)m.recreate=!0,n.change.push(m);else{var a=i.idxByName,o=l.idxByName,u=void 0;for(u in a)o[u]||m.del.push(u);for(u in o){var h=a[u],c=o[u];h?h.src!==c.src&&m.change.push(c):m.add.push(c)}(m.del.length>0||m.add.length>0||m.change.length>0)&&n.change.push(m)}}}return n}function zp(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 Gd(i,l)}),i}function m7(e,t){$t(e).forEach(function(n){t.db.objectStoreNames.contains(n)||zp(t,n,e[n].primKey,e[n].indexes)})}function y7(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(n){return e[n]==null&&t.db.deleteObjectStore(n)})}function Gd(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function Np(e,t,n){var r={},i=Ic(t.objectStoreNames,0);return i.forEach(function(l){for(var m=n.objectStore(l),a=m.keyPath,o=Yd(Aw(a),a||"",!1,!1,!!m.autoIncrement,a&&typeof a!="string",!0),u=[],h=0;h<m.indexNames.length;++h){var c=m.index(m.indexNames[h]);a=c.keyPath;var f=Yd(c.name,a,!!c.unique,!!c.multiEntry,!1,a&&typeof a!="string",!1);u.push(f)}r[l]=Pw(l,o,u)}),r}function b7(e,t,n){var r=e._novip;r.verno=t.version/10;var i=r._dbSchema=Np(r,t,n);r._storeNames=Ic(t.objectStoreNames,0),Gu(r,[r._allTables],$t(i),i)}function _7(e,t){var n=Np(e,e.idbdb,t),r=Iw(n,e._dbSchema);return!(r.add.length||r.change.some(function(i){return i.add.length||i.change.length}))}function qd(e,t,n){for(var r=e._novip,i=n.db.objectStoreNames,l=0;l<i.length;++l){var m=i[l],a=n.objectStore(m);r._hasGetAll="getAll"in a;for(var o=0;o<a.indexNames.length;++o){var u=a.indexNames[o],h=a.index(u).keyPath,c=typeof h=="string"?h:"["+Ic(h).join("+")+"]";if(t[m]){var f=t[m].idxByName[c];f&&(f.name=u,delete t[m].idxByName[c],t[m].idxByName[u]=f)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&At.WorkerGlobalScope&&At instanceof At.WorkerGlobalScope&&[].concat(navigator.userAgent.match(/Safari\/(\d*)/))[1]<604&&(r._hasGetAll=!1)}function w7(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 Yd(r,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),Qt(i),n===0)})}var C7=function(){function e(){}return e.prototype._parseStoresSpec=function(t,n){$t(t).forEach(function(r){if(t[r]!==null){var i=w7(t[r]),l=i.shift();if(l.multi)throw new Xe.Schema("Primary key cannot be multi-valued");i.forEach(function(m){if(m.auto)throw new Xe.Schema("Only primary key can be marked as autoIncrement (++)");if(!m.keyPath)throw new Xe.Schema("Index must have a name and cannot be an empty string")}),n[r]=Pw(r,l,i)}})},e.prototype.stores=function(t){var n=this.db;this._cfg.storesSource=this._cfg.storesSource?cn(this._cfg.storesSource,t):t;var r=n._versions,i={},l={};return r.forEach(function(m){cn(i,m._cfg.storesSource),l=m._cfg.dbschema={},m._parseStoresSpec(i,l)}),n._dbSchema=l,Kd(n,[n._allTables,n,n.Transaction.prototype]),Gu(n,[n._allTables,n,n.Transaction.prototype,this._cfg.tables],$t(l),l),n._storeNames=$t(l),this},e.prototype.upgrade=function(t){return this._cfg.contentUpgrade=Lp(this._cfg.contentUpgrade||Tt,t),this},e}();function S7(e){return yl(C7.prototype,function(n){this.db=e,this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function jp(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new Wp(Rc,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function Vp(e){return e&&typeof e.databases=="function"}function x7(e){var t=e.indexedDB,n=e.IDBKeyRange;return Vp(t)?Promise.resolve(t.databases()).then(function(r){return r.map(function(i){return i.name}).filter(function(i){return i!==Rc})}):jp(t,n).toCollection().primaryKeys()}function T7(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Vp(n)&&t!==Rc&&jp(n,r).put({name:t}).catch(Tt)}function k7(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!Vp(n)&&t!==Rc&&jp(n,r).delete(t).catch(Tt)}function Zd(e){return Ii(function(){return Ue.letThrough=!0,e()})}function E7(){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 O7(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?Ft(t.dbOpenError):e});xr&&(t.openCanceller._stackHolder=Po()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new Xe.DatabaseClosed("db.open() was cancelled")}var l=t.dbReadyResolve,m=null,a=!1;return $e.race([r,(typeof navigator>"u"?$e.resolve():E7()).then(function(){return new $e(function(o,u){if(i(),!n)throw new Xe.MissingAPI;var h=e.name,c=t.autoSchema?n.open(h):n.open(h,Math.round(e.verno*10));if(!c)throw new Xe.MissingAPI;c.onerror=ur(u),c.onblocked=It(e._fireOnBlocked),c.onupgradeneeded=It(function(f){if(m=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=Us,m.abort(),c.result.close();var s=n.deleteDatabase(h);s.onsuccess=s.onerror=It(function(){u(new Xe.NoSuchDatabase("Database "+h+" doesnt exist"))})}else{m.onerror=ur(u);var d=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;a=d<1,e._novip.idbdb=c.result,g7(e,d/10,m,u)}},u),c.onsuccess=It(function(){m=null;var f=e._novip.idbdb=c.result,s=Ic(f.objectStoreNames);if(s.length>0)try{var d=f.transaction(l7(s),"readonly");t.autoSchema?b7(e,f,d):(qd(e,e._dbSchema,d),_7(e,d)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Fp(e,d)}catch{}cs.push(e),f.onversionchange=It(function(v){t.vcFired=!0,e.on("versionchange").fire(v)}),f.onclose=It(function(v){e.on("close").fire(v)}),a&&T7(e._deps,h),o()},u)})})]).then(function(){return i(),t.onReadyBeingFired=[],$e.resolve(Zd(function(){return e.on.ready.fire(e.vip)})).then(function o(){if(t.onReadyBeingFired.length>0){var u=t.onReadyBeingFired.reduce(Lp,Tt);return t.onReadyBeingFired=[],$e.resolve(Zd(function(){return u(e.vip)})).then(o)}})}).finally(function(){t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(function(){return e}).catch(function(o){t.dbOpenError=o;try{m&&m.abort()}catch{}return r===t.openCanceller&&e._close(),Ft(o)}).finally(function(){t.openComplete=!0,l()})}function Jd(e){var t=function(m){return e.next(m)},n=function(m){return e.throw(m)},r=l(t),i=l(n);function l(m){return function(a){var o=m(a),u=o.value;return o.done?u:!u||typeof u.then!="function"?Qt(u)?Promise.all(u).then(r,i):r(u):u.then(r,i)}}return l(t)()}function A7(e,t,n){var r=arguments.length;if(r<2)throw new Xe.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];n=i.pop();var l=uw(i);return[e,l,n]}function Mw(e,t,n,r,i){return $e.resolve().then(function(){var l=Ue.transless||Ue,m=e._createTransaction(t,n,e._dbSchema,r),a={trans:m,transless:l};if(r)m.idbtrans=r.idbtrans;else try{m.create(),e._state.PR1398_maxLoop=3}catch(c){return c.name===Mp.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return Mw(e,t,n,null,i)})):Ft(c)}var o=Pp(i);o&&Ea();var u,h=$e.follow(function(){if(u=i.call(m,m),u)if(o){var c=Xr.bind(null,null);u.then(c,c)}else typeof u.next=="function"&&typeof u.throw=="function"&&(u=Jd(u))},a);return(u&&typeof u.then=="function"?$e.resolve(u).then(function(c){return m.active?c:Ft(new Xe.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):h.then(function(){return u})).then(function(c){return r&&m._resolve(),m._completion.then(function(){return c})}).catch(function(c){return m._reject(c),Ft(c)})})}function Wl(e,t,n){for(var r=Qt(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}function P7(e){return rt(rt({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},l=[];function m(v,g,y){var b=fs(v),_=i[b]=i[b]||[],w=v==null?0:typeof v=="string"?1:v.length,S=g>0,x=rt(rt({},y),{isVirtual:S,keyTail:g,keyLength:w,extractKey:Xd(v),unique:!S&&y.unique});if(_.push(x),x.isPrimaryKey||l.push(x),w>1){var T=w===2?v[0]:v.slice(0,w-1);m(T,g+1,y)}return _.sort(function(O,A){return O.keyTail-A.keyTail}),x}var a=m(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[a];for(var o=0,u=r.indexes;o<u.length;o++){var h=u[o];m(h.keyPath,0,h)}function c(v){var g=i[fs(v)];return g&&g[0]}function f(v,g){return{type:v.type===1?2:v.type,lower:Wl(v.lower,v.lowerOpen?e.MAX_KEY:e.MIN_KEY,g),lowerOpen:!0,upper:Wl(v.upper,v.upperOpen?e.MIN_KEY:e.MAX_KEY,g),upperOpen:!0}}function s(v){var g=v.query.index;return g.isVirtual?rt(rt({},v),{query:{index:g,range:f(v.query.range,g.keyTail)}}):v}var d=rt(rt({},n),{schema:rt(rt({},r),{primaryKey:a,indexes:l,getIndexByKeyPath:c}),count:function(v){return n.count(s(v))},query:function(v){return n.query(s(v))},openCursor:function(v){var g=v.query.index,y=g.keyTail,b=g.isVirtual,_=g.keyLength;if(!b)return n.openCursor(v);function w(S){function x(O){O!=null?S.continue(Wl(O,v.reverse?e.MAX_KEY:e.MIN_KEY,y)):v.unique?S.continue(S.key.slice(0,_).concat(v.reverse?e.MIN_KEY:e.MAX_KEY,y)):S.continue()}var T=Object.create(S,{continue:{value:x},continuePrimaryKey:{value:function(O,A){S.continuePrimaryKey(Wl(O,e.MAX_KEY,y),A)}},primaryKey:{get:function(){return S.primaryKey}},key:{get:function(){var O=S.key;return _===1?O[0]:O.slice(0,_)}},value:{get:function(){return S.value}}});return T}return n.openCursor(s(v)).then(function(S){return S&&w(S)})}});return d}})}var I7={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:P7};function Hp(e,t,n,r){return n=n||{},r=r||"",$t(e).forEach(function(i){if(!Mn(t,i))n[r+i]=void 0;else{var l=e[i],m=t[i];if(typeof l=="object"&&typeof m=="object"&&l&&m){var a=Ld(l),o=Ld(m);a!==o?n[r+i]=t[i]:a==="Object"?Hp(l,m,n,r+i+"."):l!==m&&(n[r+i]=t[i])}else l!==m&&(n[r+i]=t[i])}}),$t(t).forEach(function(i){Mn(e,i)||(n[r+i]=t[i])}),n}function M7(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var L7={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return rt(rt({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey,i=rt(rt({},n),{mutate:function(l){var m=Ue.trans,a=m.table(t).hook,o=a.deleting,u=a.creating,h=a.updating;switch(l.type){case"add":if(u.fire===Tt)break;return m._promise("readwrite",function(){return c(l)},!0);case"put":if(u.fire===Tt&&h.fire===Tt)break;return m._promise("readwrite",function(){return c(l)},!0);case"delete":if(o.fire===Tt)break;return m._promise("readwrite",function(){return c(l)},!0);case"deleteRange":if(o.fire===Tt)break;return m._promise("readwrite",function(){return f(l)},!0)}return n.mutate(l);function c(d){var v=Ue.trans,g=d.keys||M7(r,d);if(!g)throw new Error("Keys missing");return d=d.type==="add"||d.type==="put"?rt(rt({},d),{keys:g}):rt({},d),d.type!=="delete"&&(d.values=Id([],d.values,!0)),d.keys&&(d.keys=Id([],d.keys,!0)),R7(n,d,g).then(function(y){var b=g.map(function(_,w){var S=y[w],x={onerror:null,onsuccess:null};if(d.type==="delete")o.fire.call(x,_,S,v);else if(d.type==="add"||S===void 0){var T=u.fire.call(x,_,d.values[w],v);_==null&&T!=null&&(_=T,d.keys[w]=_,r.outbound||Jn(d.values[w],r.keyPath,_))}else{var O=Hp(S,d.values[w]),A=h.fire.call(x,O,_,S,v);if(A){var $=d.values[w];Object.keys(A).forEach(function(j){Mn($,j)?$[j]=A[j]:Jn($,j,A[j])})}}return x});return n.mutate(d).then(function(_){for(var w=_.failures,S=_.results,x=_.numFailures,T=_.lastResult,O=0;O<g.length;++O){var A=S?S[O]:g[O],$=b[O];A==null?$.onerror&&$.onerror(w[O]):$.onsuccess&&$.onsuccess(d.type==="put"&&y[O]?d.values[O]:A)}return{failures:w,results:S,numFailures:x,lastResult:T}}).catch(function(_){return b.forEach(function(w){return w.onerror&&w.onerror(_)}),Promise.reject(_)})})}function f(d){return s(d.trans,d.range,1e4)}function s(d,v,g){return n.query({trans:d,values:!1,query:{index:r,range:v},limit:g}).then(function(y){var b=y.result;return c({type:"delete",keys:b,trans:d}).then(function(_){return _.numFailures>0?Promise.reject(_.failures[0]):b.length<g?{failures:[],numFailures:0,lastResult:void 0}:s(d,rt(rt({},v),{lower:b[b.length-1],lowerOpen:!0}),g)})})}}});return i}})}};function R7(e,t,n){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}function Lw(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)sn(t.keys[i],e[l])===0&&(r.push(n?hl(t.values[i]):t.values[i]),++l);return r.length===e.length?r:null}catch{return null}}var D7={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return rt(rt({},n),{getMany:function(r){if(!r.cache)return n.getMany(r);var i=Lw(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"?hl(l):l},l})},mutate:function(r){return r.type!=="add"&&(r.trans._cache=null),n.mutate(r)}})}}}},Cf;function Up(e){return!("from"in e)}var Lr=function(e,t){if(this)cn(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{var n=new Lr;return e&&"d"in e&&cn(n,e),n}};pa(Lr.prototype,(Cf={add:function(e){return qu(this,e),this},addKey:function(e){return Xs(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(n){return Xs(t,n,n)}),this}},Cf[Rd]=function(){return Qd(this)},Cf));function Xs(e,t,n){var r=sn(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(Up(e))return cn(e,{from:t,to:n,d:1});var i=e.l,l=e.r;if(sn(n,e.from)<0)return i?Xs(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},g0(e);if(sn(t,e.to)>0)return l?Xs(l,t,n):e.r={from:t,to:n,d:1,l:null,r:null},g0(e);sn(t,e.from)<0&&(e.from=t,e.l=null,e.d=l?l.d+1:1),sn(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var m=!e.r;i&&!e.l&&qu(e,i),l&&m&&qu(e,l)}}function qu(e,t){function n(r,i){var l=i.from,m=i.to,a=i.l,o=i.r;Xs(r,l,m),a&&n(r,a),o&&n(r,o)}Up(t)||n(e,t)}function $7(e,t){var n=Qd(t),r=n.next();if(r.done)return!1;for(var i=r.value,l=Qd(e),m=l.next(i.from),a=m.value;!r.done&&!m.done;){if(sn(a.from,i.to)<=0&&sn(a.to,i.from)>=0)return!0;sn(i.from,a.from)<0?i=(r=n.next(a.from)).value:a=(m=l.next(i.from)).value}return!1}function Qd(e){var t=Up(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&&sn(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||sn(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 g0(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",m=rt({},e),a=e[i];e.from=a.from,e.to=a.to,e[i]=a[i],m[i]=a[l],e[l]=m,m.d=v0(m)}e.d=v0(e)}function v0(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 B7={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new Lr(e.MIN_KEY,e.MAX_KEY);return rt(rt({},e),{table:function(r){var i=e.table(r),l=i.schema,m=l.primaryKey,a=m.extractKey,o=m.outbound,u=rt(rt({},i),{mutate:function(f){var s=f.trans,d=s.mutatedParts||(s.mutatedParts={}),v=function(T){var O="idb://"+t+"/"+r+"/"+T;return d[O]||(d[O]=new Lr)},g=v(""),y=v(":dels"),b=f.type,_=f.type==="deleteRange"?[f.range]:f.type==="delete"?[f.keys]:f.values.length<50?[[],f.values]:[],w=_[0],S=_[1],x=f.trans._cache;return i.mutate(f).then(function(T){if(Qt(w)){b!=="delete"&&(w=T.results),g.addKeys(w);var O=Lw(w,x);!O&&b!=="add"&&y.addKeys(w),(O||S)&&F7(v,l,O,S)}else if(w){var A={from:w.lower,to:w.upper};y.add(A),g.add(A)}else g.add(n),y.add(n),l.indexes.forEach(function($){return v($.name).add(n)});return T})}}),h=function(f){var s,d,v=f.query,g=v.index,y=v.range;return[g,new Lr((s=y.lower)!==null&&s!==void 0?s:e.MIN_KEY,(d=y.upper)!==null&&d!==void 0?d:e.MAX_KEY)]},c={get:function(f){return[m,new Lr(f.key)]},getMany:function(f){return[m,new Lr().addKeys(f.keys)]},count:h,query:h,openCursor:h};return $t(c).forEach(function(f){u[f]=function(s){var d=Ue.subscr;if(d){var v=function(x){var T="idb://"+t+"/"+r+"/"+x;return d[T]||(d[T]=new Lr)},g=v(""),y=v(":dels"),b=c[f](s),_=b[0],w=b[1];if(v(_.name||"").add(w),!_.isPrimaryKey)if(f==="count")y.add(n);else{var S=f==="query"&&o&&s.values&&i.query(rt(rt({},s),{values:!1}));return i[f].apply(this,arguments).then(function(x){if(f==="query"){if(o&&s.values)return S.then(function($){var j=$.result;return g.addKeys(j),x});var T=s.values?x.result.map(a):x.result;s.values?g.addKeys(T):y.addKeys(T)}else if(f==="openCursor"){var O=x,A=s.values;return O&&Object.create(O,{key:{get:function(){return y.addKey(O.primaryKey),O.key}},primaryKey:{get:function(){var $=O.primaryKey;return y.addKey($),$}},value:{get:function(){return A&&g.addKey(O.primaryKey),O.value}}})}return x})}}return i[f].apply(this,arguments)}}),u}})}};function F7(e,t,n,r){function i(l){var m=e(l.name||"");function a(u){return u!=null?l.extractKey(u):null}var o=function(u){return l.multiEntry&&Qt(u)?u.forEach(function(h){return m.addKey(h)}):m.addKey(u)};(n||r).forEach(function(u,h){var c=n&&a(n[h]),f=r&&a(r[h]);sn(c,f)!==0&&(c!=null&&o(c),f!=null&&o(f))})}t.indexes.forEach(i)}var Wp=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=rt({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 m={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:Tt,dbReadyPromise:null,cancelOpen:Tt,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};m.dbReadyPromise=new $e(function(a){m.dbReadyResolve=a}),m.openCanceller=new $e(function(a,o){m.cancelOpen=o}),this._state=m,this.name=t,this.on=ml(this,"populate","blocked","versionchange","close",{ready:[Lp,Tt]}),this.on.ready.subscribe=ow(this.on.ready.subscribe,function(a){return function(o,u){e.vip(function(){var h=r._state;if(h.openComplete)h.dbOpenError||$e.resolve().then(o),u&&a(o);else if(h.onReadyBeingFired)h.onReadyBeingFired.push(o),u&&a(o);else{a(o);var c=r;u||a(function f(){c.on.ready.unsubscribe(o),c.on.ready.unsubscribe(f)})}})}}),this.Collection=QV(this),this.Table=KV(this),this.Transaction=s7(this),this.Version=S7(this),this.WhereClause=o7(this),this.on("versionchange",function(a){a.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(a){!a.newVersion||a.newVersion<a.oldVersion?console.warn("Dexie.delete('"+r.name+"') was blocked"):console.warn("Upgrade '"+r.name+"' blocked by other connection holding version "+a.oldVersion/10)}),this._maxKey=Ys(n.IDBKeyRange),this._createTransaction=function(a,o,u,h){return new r.Transaction(a,o,u,r._options.chromeTransactionDurability,h)},this._fireOnBlocked=function(a){r.on("blocked").fire(a),cs.filter(function(o){return o.name===r.name&&o!==r&&!o._state.vcFired}).map(function(o){return o.on("versionchange").fire(a)})},this.use(I7),this.use(L7),this.use(B7),this.use(D7),this.vip=Object.create(this,{_vip:{value:!0}}),l.forEach(function(a){return a(r)})}return e.prototype.version=function(t){if(isNaN(t)||t<.1)throw new Xe.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new Xe.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(p7),r.stores({}),this._state.autoSchema=!1,r)},e.prototype._whenReady=function(t){var n=this;return this.idbdb&&(this._state.openComplete||Ue.letThrough||this._vip)?t():new $e(function(r,i){if(n._state.openComplete)return i(new Xe.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._options.autoOpen){i(new Xe.DatabaseClosed);return}n.open().catch(Tt)}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 m=this._middlewares[n]||(this._middlewares[n]=[]);return m.push({stack:n,create:r,level:i==null?10:i,name:l}),m.sort(function(a,o){return a.level-o.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 O7(this)},e.prototype._close=function(){var t=this._state,n=cs.indexOf(this);if(n>=0&&cs.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 Xe.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 m=function(){t.close();var a=t._deps.indexedDB.deleteDatabase(t.name);a.onsuccess=It(function(){k7(t._deps,t.name),i()}),a.onerror=ur(l),a.onblocked=t._fireOnBlocked};if(n)throw new Xe.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(m):m()})},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 $t(this._allTables).map(function(n){return t._allTables[n]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var t=A7.apply(this,arguments);return this._transaction.apply(this,t)},e.prototype._transaction=function(t,n,r){var i=this,l=Ue.trans;(!l||l.db!==this||t.indexOf("!")!==-1)&&(l=null);var m=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");var a,o;try{if(o=n.map(function(h){var c=h instanceof i.Table?h.name:h;if(typeof c!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return c}),t=="r"||t===mf)a=mf;else if(t=="rw"||t==yf)a=yf;else throw new Xe.InvalidArgument("Invalid transaction mode: "+t);if(l){if(l.mode===mf&&a===yf)if(m)l=null;else throw new Xe.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");l&&o.forEach(function(h){if(l&&l.storeNames.indexOf(h)===-1)if(m)l=null;else throw new Xe.SubTransaction("Table "+h+" not included in parent transaction.")}),m&&l&&!l.active&&(l=null)}}catch(h){return l?l._promise(null,function(c,f){f(h)}):Ft(h)}var u=Mw.bind(null,this,a,o,l,r);return l?l._promise(a,u,"lock"):Ue.trans?Oa(Ue.transless,function(){return i._whenReady(u)}):this._whenReady(u)},e.prototype.table=function(t){if(!Mn(this._allTables,t))throw new Xe.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},e}(),z7=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",N7=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[z7]=function(){return this},e}();function Rw(e,t){return $t(t).forEach(function(n){var r=e[n]||(e[n]=new Lr);qu(r,t[n])}),e}function Yp(e){return new N7(function(t){var n=Pp(e);function r(s){n&&Ea();var d=function(){return Ii(e,{subscr:s,trans:null})},v=Ue.trans?Oa(Ue.transless,d):d();return n&&v.then(Xr,Xr),v}var i=!1,l={},m={},a={get closed(){return i},unsubscribe:function(){i=!0,Li.storagemutated.unsubscribe(c)}};t.start&&t.start(a);var o=!1,u=!1;function h(){return $t(m).some(function(s){return l[s]&&$7(l[s],m[s])})}var c=function(s){Rw(l,s),h()&&f()},f=function(){if(!(o||i)){l={};var s={},d=r(s);u||(Li(Ws,c),u=!0),o=!0,Promise.resolve(d).then(function(v){o=!1,!i&&(h()?f():(l={},m=s,t.next&&t.next(v)))},function(v){o=!1,t.error&&t.error(v),a.unsubscribe()})}};return f(),a})}var eh;try{eh={indexedDB:At.indexedDB||At.mozIndexedDB||At.webkitIndexedDB||At.msIndexedDB,IDBKeyRange:At.IDBKeyRange||At.webkitIDBKeyRange}}catch{eh={indexedDB:null,IDBKeyRange:null}}var Gi=Wp;pa(Gi,rt(rt({},Mc),{delete:function(e){var t=new Gi(e,{addons:[]});return t.delete()},exists:function(e){return new Gi(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return x7(Gi.dependencies).then(e)}catch{return Ft(new Xe.MissingAPI)}},defineClass:function(){function e(t){cn(this,t)}return e},ignoreTransaction:function(e){return Ue.trans?Oa(Ue.transless,e):e()},vip:Zd,async:function(e){return function(){try{var t=Jd(e.apply(this,arguments));return!t||typeof t.then!="function"?$e.resolve(t):t}catch(n){return Ft(n)}}},spawn:function(e,t,n){try{var r=Jd(e.apply(n,t||[]));return!r||typeof r.then!="function"?$e.resolve(r):r}catch(i){return Ft(i)}},currentTransaction:{get:function(){return Ue.trans||null}},waitFor:function(e,t){var n=$e.resolve(typeof e=="function"?Gi.ignoreTransaction(e):e).timeout(t||6e4);return Ue.trans?Ue.trans.waitFor(n):n},Promise:$e,debug:{get:function(){return xr},set:function(e){fw(e,e==="dexie"?function(){return!0}:Tw)}},derive:Ta,extend:cn,props:pa,override:ow,Events:ml,on:Li,liveQuery:Yp,extendObservabilitySet:Rw,getByKeyPath:jr,setByKeyPath:Jn,delByKeyPath:bV,shallowClone:lw,deepClone:hl,getObjectDiff:Hp,cmp:sn,asap:aw,minKey:Wd,addons:[],connections:cs,errnames:Mp,dependencies:eh,semVer:u0,version:u0.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,n*2)})}));Gi.maxKey=Ys(Gi.dependencies.IDBKeyRange);typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Li(Ws,function(e){if(!Br){var t;Lc?(t=document.createEvent("CustomEvent"),t.initCustomEvent(vi,!0,!0,e)):t=new CustomEvent(vi,{detail:e}),Br=!0,dispatchEvent(t),Br=!1}}),addEventListener(vi,function(e){var t=e.detail;Br||Zu(t)}));function Zu(e){var t=Br;try{Br=!0,Li.storagemutated.fire(e)}finally{Br=t}}var Br=!1;if(typeof BroadcastChannel<"u"){var m0=new BroadcastChannel(vi);Li(Ws,function(e){Br||m0.postMessage(e)}),m0.onmessage=function(e){e.data&&Zu(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){Li(Ws,function(e){try{Br||(typeof localStorage<"u"&&localStorage.setItem(vi,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&Id([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:vi,changedParts:e})}))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",function(e){if(e.key===vi){var t=JSON.parse(e.newValue);t&&Zu(t.changedParts)}});var y0=self.document&&navigator.serviceWorker;y0&&y0.addEventListener("message",j7)}function j7(e){var t=e.data;t&&t.type===vi&&Zu(t.changedParts)}$e.rejectionMapper=OV;fw(xr,Tw);class V7 extends Wp{constructor(){super("stableui");ug(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 Mt=new V7;Mt.open().catch(()=>{Dt().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 Yl(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 Dw={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 m(u,h){if(!i[u]){if(!r[u]){var c=typeof Yl=="function"&&Yl;if(!h&&c)return c(u,!0);if(a)return a(u,!0);var f=new Error("Cannot find module '"+u+"'");throw f.code="MODULE_NOT_FOUND",f}var s=i[u]={exports:{}};r[u][0].call(s.exports,function(d){var v=r[u][1][d];return m(v||d)},s,s.exports,n,r,i,l)}return i[u].exports}for(var a=typeof Yl=="function"&&Yl,o=0;o<l.length;o++)m(l[o]);return m}({1:[function(n,r,i){var l=n("./utils"),m=n("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(o){for(var u,h,c,f,s,d,v,g=[],y=0,b=o.length,_=b,w=l.getTypeOf(o)!=="string";y<o.length;)_=b-y,c=w?(u=o[y++],h=y<b?o[y++]:0,y<b?o[y++]:0):(u=o.charCodeAt(y++),h=y<b?o.charCodeAt(y++):0,y<b?o.charCodeAt(y++):0),f=u>>2,s=(3&u)<<4|h>>4,d=1<_?(15&h)<<2|c>>6:64,v=2<_?63&c:64,g.push(a.charAt(f)+a.charAt(s)+a.charAt(d)+a.charAt(v));return g.join("")},i.decode=function(o){var u,h,c,f,s,d,v=0,g=0,y="data:";if(o.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var b,_=3*(o=o.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(o.charAt(o.length-1)===a.charAt(64)&&_--,o.charAt(o.length-2)===a.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=m.uint8array?new Uint8Array(0|_):new Array(0|_);v<o.length;)u=a.indexOf(o.charAt(v++))<<2|(f=a.indexOf(o.charAt(v++)))>>4,h=(15&f)<<4|(s=a.indexOf(o.charAt(v++)))>>2,c=(3&s)<<6|(d=a.indexOf(o.charAt(v++))),b[g++]=u,s!==64&&(b[g++]=h),d!==64&&(b[g++]=c);return b}},{"./support":30,"./utils":32}],2:[function(n,r,i){var l=n("./external"),m=n("./stream/DataWorker"),a=n("./stream/Crc32Probe"),o=n("./stream/DataLengthProbe");function u(h,c,f,s,d){this.compressedSize=h,this.uncompressedSize=c,this.crc32=f,this.compression=s,this.compressedContent=d}u.prototype={getContentWorker:function(){var h=new m(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),c=this;return h.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),h},getCompressedWorker:function(){return new m(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(h,c,f){return h.pipe(new a).pipe(new o("uncompressedSize")).pipe(c.compressWorker(f)).pipe(new o("compressedSize")).withStreamInfo("compression",c)},r.exports=u},{"./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"),m=function(){for(var a,o=[],u=0;u<256;u++){a=u;for(var h=0;h<8;h++)a=1&a?3988292384^a>>>1:a>>>1;o[u]=a}return o}();r.exports=function(a,o){return a!==void 0&&a.length?l.getTypeOf(a)!=="string"?function(u,h,c,f){var s=m,d=f+c;u^=-1;for(var v=f;v<d;v++)u=u>>>8^s[255&(u^h[v])];return-1^u}(0|o,a,a.length,0):function(u,h,c,f){var s=m,d=f+c;u^=-1;for(var v=f;v<d;v++)u=u>>>8^s[255&(u^h.charCodeAt(v))];return-1^u}(0|o,a,a.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",m=n("pako"),a=n("./utils"),o=n("./stream/GenericWorker"),u=l?"uint8array":"array";function h(c,f){o.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=f,this.meta={}}i.magic="\b\0",a.inherits(h,o),h.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(u,c.data),!1)},h.prototype.flush=function(){o.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},h.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},h.prototype._createPako=function(){this._pako=new m[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var c=this;this._pako.onData=function(f){c.push({data:f,meta:c.meta})}},i.compressWorker=function(c){return new h("Deflate",c)},i.uncompressWorker=function(){return new h("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function l(s,d){var v,g="";for(v=0;v<d;v++)g+=String.fromCharCode(255&s),s>>>=8;return g}function m(s,d,v,g,y,b){var _,w,S=s.file,x=s.compression,T=b!==u.utf8encode,O=a.transformTo("string",b(S.name)),A=a.transformTo("string",u.utf8encode(S.name)),$=S.comment,j=a.transformTo("string",b($)),R=a.transformTo("string",u.utf8encode($)),F=A.length!==S.name.length,E=R.length!==$.length,W="",te="",Q="",le=S.dir,I=S.date,z={crc32:0,compressedSize:0,uncompressedSize:0};d&&!v||(z.crc32=s.crc32,z.compressedSize=s.compressedSize,z.uncompressedSize=s.uncompressedSize);var M=0;d&&(M|=8),T||!F&&!E||(M|=2048);var L=0,J=0;le&&(L|=16),y==="UNIX"?(J=798,L|=function(P,q){var Z=P;return P||(Z=q?16893:33204),(65535&Z)<<16}(S.unixPermissions,le)):(J=20,L|=function(P){return 63&(P||0)}(S.dosPermissions)),_=I.getUTCHours(),_<<=6,_|=I.getUTCMinutes(),_<<=5,_|=I.getUTCSeconds()/2,w=I.getUTCFullYear()-1980,w<<=4,w|=I.getUTCMonth()+1,w<<=5,w|=I.getUTCDate(),F&&(te=l(1,1)+l(h(O),4)+A,W+="up"+l(te.length,2)+te),E&&(Q=l(1,1)+l(h(j),4)+R,W+="uc"+l(Q.length,2)+Q);var U="";return U+=`
|
||
\0`,U+=l(M,2),U+=x.magic,U+=l(_,2),U+=l(w,2),U+=l(z.crc32,4),U+=l(z.compressedSize,4),U+=l(z.uncompressedSize,4),U+=l(O.length,2),U+=l(W.length,2),{fileRecord:c.LOCAL_FILE_HEADER+U+O+W,dirRecord:c.CENTRAL_FILE_HEADER+l(J,2)+U+l(j.length,2)+"\0\0\0\0"+l(L,4)+l(g,4)+O+W+j}}var a=n("../utils"),o=n("../stream/GenericWorker"),u=n("../utf8"),h=n("../crc32"),c=n("../signature");function f(s,d,v,g){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=v,this.encodeFileName=g,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(f,o),f.prototype.push=function(s){var d=s.meta.percent||0,v=this.entriesCount,g=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,o.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:v?(d+100*(v-g-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=m(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=m(s,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(v.dirRecord),d)this.push({data:function(g){return c.DATA_DESCRIPTOR+l(g.crc32,4)+l(g.compressedSize,4)+l(g.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,g=function(y,b,_,w,S){var x=a.transformTo("string",S(w));return c.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(y,2)+l(y,2)+l(b,4)+l(_,4)+l(x.length,2)+x}(this.dirRecords.length,v,s,this.zipComment,this.encodeFileName);this.push({data:g,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!!o.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(!o.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(){o.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"),m=n("./ZipFileWorker");i.generateWorker=function(a,o,u){var h=new m(o.streamFiles,u,o.platform,o.encodeFileName),c=0;try{a.forEach(function(f,s){c++;var d=function(b,_){var w=b||_,S=l[w];if(!S)throw new Error(w+" is not a valid compression method !");return S}(s.options.compression,o.compression),v=s.options.compressionOptions||o.compressionOptions||{},g=s.dir,y=s.date;s._compressWorker(d,v).withStreamInfo("file",{name:f,dir:g,date:y,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(h)}),h.entriesCount=c}catch(f){h.error(f)}return h}},{"../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 m=new l;for(var a in this)typeof this[a]!="function"&&(m[a]=this[a]);return m}}(l.prototype=n("./object")).loadAsync=n("./load"),l.support=n("./support"),l.defaults=n("./defaults"),l.version="3.10.1",l.loadAsync=function(m,a){return new l().loadAsync(m,a)},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"),m=n("./external"),a=n("./utf8"),o=n("./zipEntries"),u=n("./stream/Crc32Probe"),h=n("./nodejsUtils");function c(f){return new m.Promise(function(s,d){var v=f.decompressed.getContentWorker().pipe(new u);v.on("error",function(g){d(g)}).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:a.utf8decode}),h.isNode&&h.isStream(f)?m.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 g=new o(s);return g.load(v),g}).then(function(v){var g=[m.Promise.resolve(v)],y=v.files;if(s.checkCRC32)for(var b=0;b<y.length;b++)g.push(c(y[b]));return m.Promise.all(g)}).then(function(v){for(var g=v.shift(),y=g.files,b=0;b<y.length;b++){var _=y[b],w=_.fileNameStr,S=l.resolve(_.fileNameStr);d.file(S,_.decompressed,{binary:!0,optimizedBinaryString:!0,date:_.date,dir:_.dir,comment:_.fileCommentStr.length?_.fileCommentStr:null,unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions,createFolders:s.createFolders}),_.dir||(d.file(S).unsafeOriginalName=w)}return g.zipComment.length&&(d.comment=g.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var l=n("../utils"),m=n("../stream/GenericWorker");function a(o,u){m.call(this,"Nodejs stream input adapter for "+o),this._upstreamEnded=!1,this._bindStream(u)}l.inherits(a,m),a.prototype._bindStream=function(o){var u=this;(this._stream=o).pause(),o.on("data",function(h){u.push({data:h,meta:{percent:0}})}).on("error",function(h){u.isPaused?this.generatedError=h:u.error(h)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},a.prototype.pause=function(){return!!m.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var l=n("readable-stream").Readable;function m(a,o,u){l.call(this,o),this._helper=a;var h=this;a.on("data",function(c,f){h.push(c)||h._helper.pause(),u&&u(f)}).on("error",function(c){h.emit("error",c)}).on("end",function(){h.push(null)})}n("../utils").inherits(m,l),m.prototype._read=function(){this._helper.resume()},r.exports=m},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,m){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,m);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,m)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var m=new Buffer(l);return m.fill(0),m},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 O,A=a.getTypeOf(x),$=a.extend(T||{},h);$.date=$.date||new Date,$.compression!==null&&($.compression=$.compression.toUpperCase()),typeof $.unixPermissions=="string"&&($.unixPermissions=parseInt($.unixPermissions,8)),$.unixPermissions&&16384&$.unixPermissions&&($.dir=!0),$.dosPermissions&&16&$.dosPermissions&&($.dir=!0),$.dir&&(S=y(S)),$.createFolders&&(O=g(S))&&b.call(this,O,!0);var j=A==="string"&&$.binary===!1&&$.base64===!1;T&&T.binary!==void 0||($.binary=!j),(x instanceof c&&x.uncompressedSize===0||$.dir||!x||x.length===0)&&($.base64=!1,$.binary=!0,x="",$.compression="STORE",A="string");var R=null;R=x instanceof c||x instanceof o?x:d.isNode&&d.isStream(x)?new v(S,x):a.prepareContent(S,x,$.binary,$.optimizedBinaryString,$.base64);var F=new f(S,R,$);this.files[S]=F}var m=n("./utf8"),a=n("./utils"),o=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),h=n("./defaults"),c=n("./compressedObject"),f=n("./zipObject"),s=n("./generate"),d=n("./nodejsUtils"),v=n("./nodejs/NodejsStreamInputAdapter"),g=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var x=S.lastIndexOf("/");return 0<x?S.substring(0,x):""},y=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},b=function(S,x){return x=x!==void 0?x:h.createFolders,S=y(S),this.files[S]||l.call(this,S,null,{dir:!0,createFolders:x}),this.files[S]};function _(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var w={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,O;for(x in this.files)O=this.files[x],(T=x.slice(this.root.length,x.length))&&x.slice(0,this.root.length)===this.root&&S(T,O)},filter:function(S){var x=[];return this.forEach(function(T,O){S(T,O)&&x.push(O)}),x},file:function(S,x,T){if(arguments.length!==1)return S=this.root+S,l.call(this,S,x,T),this;if(_(S)){var O=S;return this.filter(function($,j){return!j.dir&&O.test($)})}var A=this.files[this.root+S];return A&&!A.dir?A:null},folder:function(S){if(!S)return this;if(_(S))return this.filter(function(A,$){return $.dir&&S.test(A)});var x=this.root+S,T=b.call(this,x),O=this.clone();return O.root=T.name,O},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(A,$){return $.name.slice(0,S.length)===S}),O=0;O<T.length;O++)delete this.files[T[O].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=a.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:m.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.");a.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 O=T.comment||this.comment||"";x=s.generateWorker(this,T,O)}catch(A){(x=new o("error")).error(A)}return new u(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=w},{"./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 m(a){l.call(this,a);for(var o=0;o<this.data.length;o++)a[o]=255&a[o]}n("../utils").inherits(m,l),m.prototype.byteAt=function(a){return this.data[this.zero+a]},m.prototype.lastIndexOfSignature=function(a){for(var o=a.charCodeAt(0),u=a.charCodeAt(1),h=a.charCodeAt(2),c=a.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===o&&this.data[f+1]===u&&this.data[f+2]===h&&this.data[f+3]===c)return f-this.zero;return-1},m.prototype.readAndCheckSignature=function(a){var o=a.charCodeAt(0),u=a.charCodeAt(1),h=a.charCodeAt(2),c=a.charCodeAt(3),f=this.readData(4);return o===f[0]&&u===f[1]&&h===f[2]&&c===f[3]},m.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},r.exports=m},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var l=n("../utils");function m(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}m.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var o,u=0;for(this.checkOffset(a),o=this.index+a-1;o>=this.index;o--)u=(u<<8)+this.byteAt(o);return this.index+=a,u},readString:function(a){return l.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},r.exports=m},{"../utils":32}],19:[function(n,r,i){var l=n("./Uint8ArrayReader");function m(a){l.call(this,a)}n("../utils").inherits(m,l),m.prototype.readData=function(a){this.checkOffset(a);var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},r.exports=m},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var l=n("./DataReader");function m(a){l.call(this,a)}n("../utils").inherits(m,l),m.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},m.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},m.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},m.prototype.readData=function(a){this.checkOffset(a);var o=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},r.exports=m},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var l=n("./ArrayReader");function m(a){l.call(this,a)}n("../utils").inherits(m,l),m.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var o=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,o},r.exports=m},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var l=n("../utils"),m=n("../support"),a=n("./ArrayReader"),o=n("./StringReader"),u=n("./NodeBufferReader"),h=n("./Uint8ArrayReader");r.exports=function(c){var f=l.getTypeOf(c);return l.checkSupport(f),f!=="string"||m.uint8array?f==="nodebuffer"?new u(c):m.uint8array?new h(l.transformTo("uint8array",c)):new a(l.transformTo("array",c)):new o(c)}},{"../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"),m=n("../utils");function a(o){l.call(this,"ConvertWorker to "+o),this.destType=o}m.inherits(a,l),a.prototype.processChunk=function(o){this.push({data:m.transformTo(this.destType,o.data),meta:o.meta})},r.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var l=n("./GenericWorker"),m=n("../crc32");function a(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(a,l),a.prototype.processChunk=function(o){this.streamInfo.crc32=m(o.data,this.streamInfo.crc32||0),this.push(o)},r.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var l=n("../utils"),m=n("./GenericWorker");function a(o){m.call(this,"DataLengthProbe for "+o),this.propName=o,this.withStreamInfo(o,0)}l.inherits(a,m),a.prototype.processChunk=function(o){if(o){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+o.data.length}m.prototype.processChunk.call(this,o)},r.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var l=n("../utils"),m=n("./GenericWorker");function a(o){m.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,o.then(function(h){u.dataIsReady=!0,u.data=h,u.max=h&&h.length||0,u.type=l.getTypeOf(h),u.isPaused||u._tickAndRepeat()},function(h){u.error(h)})}l.inherits(a,m),a.prototype.cleanUp=function(){m.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!m.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var o=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":o=this.data.substring(this.index,u);break;case"uint8array":o=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":o=this.data.slice(this.index,u)}return this.index=u,this.push({data:o,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function l(m){this.name=m||"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(m){this.emit("data",m)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(m){this.emit("error",m)}return!0},error:function(m){return!this.isFinished&&(this.isPaused?this.generatedError=m:(this.isFinished=!0,this.emit("error",m),this.previous&&this.previous.error(m),this.cleanUp()),!0)},on:function(m,a){return this._listeners[m].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(m,a){if(this._listeners[m])for(var o=0;o<this._listeners[m].length;o++)this._listeners[m][o].call(this,a)},pipe:function(m){return m.registerPrevious(this)},registerPrevious:function(m){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=m.streamInfo,this.mergeStreamInfo(),this.previous=m;var a=this;return m.on("data",function(o){a.processChunk(o)}),m.on("end",function(){a.end()}),m.on("error",function(o){a.error(o)}),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 m=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),m=!0),this.previous&&this.previous.resume(),!m},flush:function(){},processChunk:function(m){this.push(m)},withStreamInfo:function(m,a){return this.extraStreamInfo[m]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var m in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,m)&&(this.streamInfo[m]=this.extraStreamInfo[m])},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 m="Worker "+this.name;return this.previous?this.previous+" -> "+m:m}},r.exports=l},{}],29:[function(n,r,i){var l=n("../utils"),m=n("./ConvertWorker"),a=n("./GenericWorker"),o=n("../base64"),u=n("../support"),h=n("../external"),c=null;if(u.nodestream)try{c=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(d,v){return new h.Promise(function(g,y){var b=[],_=d._internalType,w=d._outputType,S=d._mimeType;d.on("data",function(x,T){b.push(x),v&&v(T)}).on("error",function(x){b=[],y(x)}).on("end",function(){try{var x=function(T,O,A){switch(T){case"blob":return l.newBlob(l.transformTo("arraybuffer",O),A);case"base64":return o.encode(O);default:return l.transformTo(T,O)}}(w,function(T,O){var A,$=0,j=null,R=0;for(A=0;A<O.length;A++)R+=O[A].length;switch(T){case"string":return O.join("");case"array":return Array.prototype.concat.apply([],O);case"uint8array":for(j=new Uint8Array(R),A=0;A<O.length;A++)j.set(O[A],$),$+=O[A].length;return j;case"nodebuffer":return Buffer.concat(O);default:throw new Error("concat : unsupported type '"+T+"'")}}(_,b),S);g(x)}catch(T){y(T)}b=[]}).resume()})}function s(d,v,g){var y=v;switch(v){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=v,this._mimeType=g,l.checkSupport(y),this._worker=d.pipe(new m(y)),d.lock()}catch(b){this._worker=new a("error"),this._worker.error(b)}}s.prototype={accumulate:function(d){return f(this,d)},on:function(d,v){var g=this;return d==="data"?this._worker.on(d,function(y){v.call(g,y.data,y.meta)}):this._worker.on(d,function(){l.delay(v,arguments,g)}),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 c(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 m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);m.append(l),i.blob=m.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"),m=n("./support"),a=n("./nodejsUtils"),o=n("./stream/GenericWorker"),u=new Array(256),h=0;h<256;h++)u[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;u[254]=u[254]=1;function c(){o.call(this,"utf-8 decode"),this.leftOver=null}function f(){o.call(this,"utf-8 encode")}i.utf8encode=function(s){return m.nodebuffer?a.newBufferFrom(s,"utf-8"):function(d){var v,g,y,b,_,w=d.length,S=0;for(b=0;b<w;b++)(64512&(g=d.charCodeAt(b)))==55296&&b+1<w&&(64512&(y=d.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),b++),S+=g<128?1:g<2048?2:g<65536?3:4;for(v=m.uint8array?new Uint8Array(S):new Array(S),b=_=0;_<S;b++)(64512&(g=d.charCodeAt(b)))==55296&&b+1<w&&(64512&(y=d.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(y-56320),b++),g<128?v[_++]=g:(g<2048?v[_++]=192|g>>>6:(g<65536?v[_++]=224|g>>>12:(v[_++]=240|g>>>18,v[_++]=128|g>>>12&63),v[_++]=128|g>>>6&63),v[_++]=128|63&g);return v}(s)},i.utf8decode=function(s){return m.nodebuffer?l.transformTo("nodebuffer",s).toString("utf-8"):function(d){var v,g,y,b,_=d.length,w=new Array(2*_);for(v=g=0;v<_;)if((y=d[v++])<128)w[g++]=y;else if(4<(b=u[y]))w[g++]=65533,v+=b-1;else{for(y&=b===2?31:b===3?15:7;1<b&&v<_;)y=y<<6|63&d[v++],b--;1<b?w[g++]=65533:y<65536?w[g++]=y:(y-=65536,w[g++]=55296|y>>10&1023,w[g++]=56320|1023&y)}return w.length!==g&&(w.subarray?w=w.subarray(0,g):w.length=g),l.applyFromCharCode(w)}(s=l.transformTo(m.uint8array?"uint8array":"array",s))},l.inherits(c,o),c.prototype.processChunk=function(s){var d=l.transformTo(m.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(m.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 g=function(b,_){var w;for((_=_||b.length)>b.length&&(_=b.length),w=_-1;0<=w&&(192&b[w])==128;)w--;return w<0||w===0?_:w+u[b[w]]>_?w:_}(d),y=d;g!==d.length&&(m.uint8array?(y=d.subarray(0,g),this.leftOver=d.subarray(g,d.length)):(y=d.slice(0,g),this.leftOver=d.slice(g,d.length))),this.push({data:i.utf8decode(y),meta:s.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:i.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},i.Utf8DecodeWorker=c,l.inherits(f,o),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"),m=n("./base64"),a=n("./nodejsUtils"),o=n("./external");function u(v){return v}function h(v,g){for(var y=0;y<v.length;++y)g[y]=255&v.charCodeAt(y);return g}n("setimmediate"),i.newBlob=function(v,g){i.checkSupport("blob");try{return new Blob([v],{type:g})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(v),y.getBlob(g)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(v,g,y){var b=[],_=0,w=v.length;if(w<=y)return String.fromCharCode.apply(null,v);for(;_<w;)g==="array"||g==="nodebuffer"?b.push(String.fromCharCode.apply(null,v.slice(_,Math.min(_+y,w)))):b.push(String.fromCharCode.apply(null,v.subarray(_,Math.min(_+y,w)))),_+=y;return b.join("")},stringifyByChar:function(v){for(var g="",y=0;y<v.length;y++)g+=String.fromCharCode(v[y]);return g},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,a.allocBuffer(1)).length===1}catch{return!1}}()}};function f(v){var g=65536,y=i.getTypeOf(v),b=!0;if(y==="uint8array"?b=c.applyCanBeUsed.uint8array:y==="nodebuffer"&&(b=c.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return c.stringifyByChunk(v,y,g)}catch{g=Math.floor(g/2)}return c.stringifyByChar(v)}function s(v,g){for(var y=0;y<v.length;y++)g[y]=v[y];return g}i.applyFromCharCode=f;var d={};d.string={string:u,array:function(v){return h(v,new Array(v.length))},arraybuffer:function(v){return d.string.uint8array(v).buffer},uint8array:function(v){return h(v,new Uint8Array(v.length))},nodebuffer:function(v){return h(v,a.allocBuffer(v.length))}},d.array={string:f,array:u,arraybuffer:function(v){return new Uint8Array(v).buffer},uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return a.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:u,uint8array:function(v){return new Uint8Array(v)},nodebuffer:function(v){return a.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:u,nodebuffer:function(v){return a.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:u},i.transformTo=function(v,g){if(g=g||"",!v)return g;i.checkSupport(v);var y=i.getTypeOf(g);return d[y][v](g)},i.resolve=function(v){for(var g=v.split("/"),y=[],b=0;b<g.length;b++){var _=g[b];_==="."||_===""&&b!==0&&b!==g.length-1||(_===".."?y.pop():y.push(_))}return y.join("/")},i.getTypeOf=function(v){return typeof v=="string"?"string":Object.prototype.toString.call(v)==="[object Array]"?"array":l.nodebuffer&&a.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 g,y,b="";for(y=0;y<(v||"").length;y++)b+="\\x"+((g=v.charCodeAt(y))<16?"0":"")+g.toString(16).toUpperCase();return b},i.delay=function(v,g,y){setImmediate(function(){v.apply(y||null,g||[])})},i.inherits=function(v,g){function y(){}y.prototype=g.prototype,v.prototype=new y},i.extend=function(){var v,g,y={};for(v=0;v<arguments.length;v++)for(g in arguments[v])Object.prototype.hasOwnProperty.call(arguments[v],g)&&y[g]===void 0&&(y[g]=arguments[v][g]);return y},i.prepareContent=function(v,g,y,b,_){return o.Promise.resolve(g).then(function(w){return l.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new o.Promise(function(S,x){var T=new FileReader;T.onload=function(O){S(O.target.result)},T.onerror=function(O){x(O.target.error)},T.readAsArrayBuffer(w)}):w}).then(function(w){var S=i.getTypeOf(w);return S?(S==="arraybuffer"?w=i.transformTo("uint8array",w):S==="string"&&(_?w=m.decode(w):y&&b!==!0&&(w=function(x){return h(x,l.uint8array?new Uint8Array(x.length):new Array(x.length))}(w))),w):o.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"),m=n("./utils"),a=n("./signature"),o=n("./zipEntry"),u=n("./support");function h(c){this.files=[],this.loadOptions=c}h.prototype={checkSignature:function(c){if(!this.reader.readAndCheckSignature(c)){this.reader.index-=4;var f=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+m.pretty(f)+", expected "+m.pretty(c)+")")}},isSignature:function(c,f){var s=this.reader.index;this.reader.setIndex(c);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 c=this.reader.readData(this.zipCommentLength),f=u.uint8array?"uint8array":"array",s=m.transformTo(f,c);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 c,f,s,d=this.zip64EndOfCentralSize-44;0<d;)c=this.reader.readInt(2),f=this.reader.readInt(4),s=this.reader.readData(f),this.zip64ExtensibleData[c]={id:c,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 c,f;for(c=0;c<this.files.length;c++)f=this.files[c],this.reader.setIndex(f.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(c=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(c);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 c=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,a.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(c);var f=c;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===m.MAX_VALUE_16BITS||this.diskWithCentralDirStart===m.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===m.MAX_VALUE_16BITS||this.centralDirRecords===m.MAX_VALUE_16BITS||this.centralDirSize===m.MAX_VALUE_32BITS||this.centralDirOffset===m.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.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(a.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,a.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(c){this.reader=l(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=h},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var l=n("./reader/readerFor"),m=n("./utils"),a=n("./compressedObject"),o=n("./crc32"),u=n("./utf8"),h=n("./compressions"),c=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(g){for(var y in h)if(Object.prototype.hasOwnProperty.call(h,y)&&h[y].magic===g)return h[y];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+m.pretty(this.compressionMethod)+" unknown (inner file : "+m.transformTo("string",this.fileName)+")");this.decompressed=new a(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===m.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===m.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===m.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===m.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(s){var d,v,g,y=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<y;)d=s.readInt(2),v=s.readInt(2),g=s.readData(v),this.extraFields[d]={id:d,length:v,value:g};s.setIndex(y)},handleUTF8:function(){var s=c.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=u.utf8decode(this.fileName),this.fileCommentStr=u.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var v=m.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(v)}var g=this.findExtraFieldUnicodeComment();if(g!==null)this.fileCommentStr=g;else{var y=m.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var d=l(s.value);return d.readInt(1)!==1||o(this.fileName)!==d.readInt(4)?null:u.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||o(this.fileComment)!==d.readInt(4)?null:u.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,g){this.name=d,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=v,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var m=n("./stream/StreamHelper"),a=n("./stream/DataWorker"),o=n("./utf8"),u=n("./compressedObject"),h=n("./stream/GenericWorker");l.prototype={internalStream:function(d){var v=null,g="string";try{if(!d)throw new Error("No output type specified.");var y=(g=d.toLowerCase())==="string"||g==="text";g!=="binarystring"&&g!=="text"||(g="string"),v=this._decompressWorker();var b=!this._dataBinary;b&&!y&&(v=v.pipe(new o.Utf8EncodeWorker)),!b&&y&&(v=v.pipe(new o.Utf8DecodeWorker))}catch(_){(v=new h("error")).error(_)}return new m(v,g,"")},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 u&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var g=this._decompressWorker();return this._dataBinary||(g=g.pipe(new o.Utf8EncodeWorker)),u.createWorkerFrom(g,d,v)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof h?this._data:new a(this._data)}};for(var c=["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<c.length;s++)l.prototype[c[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 m,a,o=l.MutationObserver||l.WebKitMutationObserver;if(o){var u=0,h=new o(d),c=l.document.createTextNode("");h.observe(c,{characterData:!0}),m=function(){c.data=u=++u%2}}else if(l.setImmediate||l.MessageChannel===void 0)m="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,m=function(){f.port2.postMessage(0)}}var s=[];function d(){var v,g;a=!0;for(var y=s.length;y;){for(g=s,s=[],v=-1;++v<y;)g[v]();y=s.length}a=!1}r.exports=function(v){s.push(v)!==1||a||m()}}).call(this,typeof Bl<"u"?Bl:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var l=n("immediate");function m(){}var a={},o=["REJECTED"],u=["FULFILLED"],h=["PENDING"];function c(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,y!==m&&v(this,y)}function f(y,b,_){this.promise=y,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof _=="function"&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}function s(y,b,_){l(function(){var w;try{w=b(_)}catch(S){return a.reject(y,S)}w===y?a.reject(y,new TypeError("Cannot resolve promise with itself")):a.resolve(y,w)})}function d(y){var b=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof b=="function")return function(){b.apply(y,arguments)}}function v(y,b){var _=!1;function w(T){_||(_=!0,a.reject(y,T))}function S(T){_||(_=!0,a.resolve(y,T))}var x=g(function(){b(S,w)});x.status==="error"&&w(x.value)}function g(y,b){var _={};try{_.value=y(b),_.status="success"}catch(w){_.status="error",_.value=w}return _}(r.exports=c).prototype.finally=function(y){if(typeof y!="function")return this;var b=this.constructor;return this.then(function(_){return b.resolve(y()).then(function(){return _})},function(_){return b.resolve(y()).then(function(){throw _})})},c.prototype.catch=function(y){return this.then(null,y)},c.prototype.then=function(y,b){if(typeof y!="function"&&this.state===u||typeof b!="function"&&this.state===o)return this;var _=new this.constructor(m);return this.state!==h?s(_,this.state===u?y:b,this.outcome):this.queue.push(new f(_,y,b)),_},f.prototype.callFulfilled=function(y){a.resolve(this.promise,y)},f.prototype.otherCallFulfilled=function(y){s(this.promise,this.onFulfilled,y)},f.prototype.callRejected=function(y){a.reject(this.promise,y)},f.prototype.otherCallRejected=function(y){s(this.promise,this.onRejected,y)},a.resolve=function(y,b){var _=g(d,b);if(_.status==="error")return a.reject(y,_.value);var w=_.value;if(w)v(y,w);else{y.state=u,y.outcome=b;for(var S=-1,x=y.queue.length;++S<x;)y.queue[S].callFulfilled(b)}return y},a.reject=function(y,b){y.state=o,y.outcome=b;for(var _=-1,w=y.queue.length;++_<w;)y.queue[_].callRejected(b);return y},c.resolve=function(y){return y instanceof this?y:a.resolve(new this(m),y)},c.reject=function(y){var b=new this(m);return a.reject(b,y)},c.all=function(y){var b=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=y.length,w=!1;if(!_)return this.resolve([]);for(var S=new Array(_),x=0,T=-1,O=new this(m);++T<_;)A(y[T],T);return O;function A($,j){b.resolve($).then(function(R){S[j]=R,++x!==_||w||(w=!0,a.resolve(O,S))},function(R){w||(w=!0,a.reject(O,R))})}},c.race=function(y){var b=this;if(Object.prototype.toString.call(y)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=y.length,w=!1;if(!_)return this.resolve([]);for(var S=-1,x=new this(m);++S<_;)T=y[S],b.resolve(T).then(function(O){w||(w=!0,a.resolve(x,O))},function(O){w||(w=!0,a.reject(x,O))});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"),m=n("./utils/common"),a=n("./utils/strings"),o=n("./zlib/messages"),u=n("./zlib/zstream"),h=Object.prototype.toString,c=0,f=-1,s=0,d=8;function v(y){if(!(this instanceof v))return new v(y);this.options=m.assign({level:f,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},y||{});var b=this.options;b.raw&&0<b.windowBits?b.windowBits=-b.windowBits:b.gzip&&0<b.windowBits&&b.windowBits<16&&(b.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new u,this.strm.avail_out=0;var _=l.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(_!==c)throw new Error(o[_]);if(b.header&&l.deflateSetHeader(this.strm,b.header),b.dictionary){var w;if(w=typeof b.dictionary=="string"?a.string2buf(b.dictionary):h.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(_=l.deflateSetDictionary(this.strm,w))!==c)throw new Error(o[_]);this._dict_set=!0}}function g(y,b){var _=new v(b);if(_.push(y,!0),_.err)throw _.msg||o[_.err];return _.result}v.prototype.push=function(y,b){var _,w,S=this.strm,x=this.options.chunkSize;if(this.ended)return!1;w=b===~~b?b:b===!0?4:0,typeof y=="string"?S.input=a.string2buf(y):h.call(y)==="[object ArrayBuffer]"?S.input=new Uint8Array(y):S.input=y,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new m.Buf8(x),S.next_out=0,S.avail_out=x),(_=l.deflate(S,w))!==1&&_!==c)return this.onEnd(_),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||w!==4&&w!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(m.shrinkBuf(S.output,S.next_out))):this.onData(m.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&_!==1);return w===4?(_=l.deflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===c):w!==2||(this.onEnd(c),!(S.avail_out=0))},v.prototype.onData=function(y){this.chunks.push(y)},v.prototype.onEnd=function(y){y===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},i.Deflate=v,i.deflate=g,i.deflateRaw=function(y,b){return(b=b||{}).raw=!0,g(y,b)},i.gzip=function(y,b){return(b=b||{}).gzip=!0,g(y,b)}},{"./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"),m=n("./utils/common"),a=n("./utils/strings"),o=n("./zlib/constants"),u=n("./zlib/messages"),h=n("./zlib/zstream"),c=n("./zlib/gzheader"),f=Object.prototype.toString;function s(v){if(!(this instanceof s))return new s(v);this.options=m.assign({chunkSize:16384,windowBits:0,to:""},v||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||v&&v.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var y=l.inflateInit2(this.strm,g.windowBits);if(y!==o.Z_OK)throw new Error(u[y]);this.header=new c,l.inflateGetHeader(this.strm,this.header)}function d(v,g){var y=new s(g);if(y.push(v,!0),y.err)throw y.msg||u[y.err];return y.result}s.prototype.push=function(v,g){var y,b,_,w,S,x,T=this.strm,O=this.options.chunkSize,A=this.options.dictionary,$=!1;if(this.ended)return!1;b=g===~~g?g:g===!0?o.Z_FINISH:o.Z_NO_FLUSH,typeof v=="string"?T.input=a.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 m.Buf8(O),T.next_out=0,T.avail_out=O),(y=l.inflate(T,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&A&&(x=typeof A=="string"?a.string2buf(A):f.call(A)==="[object ArrayBuffer]"?new Uint8Array(A):A,y=l.inflateSetDictionary(this.strm,x)),y===o.Z_BUF_ERROR&&$===!0&&(y=o.Z_OK,$=!1),y!==o.Z_STREAM_END&&y!==o.Z_OK)return this.onEnd(y),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&y!==o.Z_STREAM_END&&(T.avail_in!==0||b!==o.Z_FINISH&&b!==o.Z_SYNC_FLUSH)||(this.options.to==="string"?(_=a.utf8border(T.output,T.next_out),w=T.next_out-_,S=a.buf2string(T.output,_),T.next_out=w,T.avail_out=O-w,w&&m.arraySet(T.output,T.output,_,w,0),this.onData(S)):this.onData(m.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&($=!0)}while((0<T.avail_in||T.avail_out===0)&&y!==o.Z_STREAM_END);return y===o.Z_STREAM_END&&(b=o.Z_FINISH),b===o.Z_FINISH?(y=l.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===o.Z_OK):b!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(T.avail_out=0))},s.prototype.onData=function(v){this.chunks.push(v)},s.prototype.onEnd=function(v){v===o.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=m.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},i.Inflate=s,i.inflate=d,i.inflateRaw=function(v,g){return(g=g||{}).raw=!0,d(v,g)},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(o){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var h=u.shift();if(h){if(typeof h!="object")throw new TypeError(h+"must be non-object");for(var c in h)h.hasOwnProperty(c)&&(o[c]=h[c])}}return o},i.shrinkBuf=function(o,u){return o.length===u?o:o.subarray?o.subarray(0,u):(o.length=u,o)};var m={arraySet:function(o,u,h,c,f){if(u.subarray&&o.subarray)o.set(u.subarray(h,h+c),f);else for(var s=0;s<c;s++)o[f+s]=u[h+s]},flattenChunks:function(o){var u,h,c,f,s,d;for(u=c=0,h=o.length;u<h;u++)c+=o[u].length;for(d=new Uint8Array(c),u=f=0,h=o.length;u<h;u++)s=o[u],d.set(s,f),f+=s.length;return d}},a={arraySet:function(o,u,h,c,f){for(var s=0;s<c;s++)o[f+s]=u[h+s]},flattenChunks:function(o){return[].concat.apply([],o)}};i.setTyped=function(o){o?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,m)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,a))},i.setTyped(l)},{}],42:[function(n,r,i){var l=n("./common"),m=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{m=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var o=new l.Buf8(256),u=0;u<256;u++)o[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function h(c,f){if(f<65537&&(c.subarray&&a||!c.subarray&&m))return String.fromCharCode.apply(null,l.shrinkBuf(c,f));for(var s="",d=0;d<f;d++)s+=String.fromCharCode(c[d]);return s}o[254]=o[254]=1,i.string2buf=function(c){var f,s,d,v,g,y=c.length,b=0;for(v=0;v<y;v++)(64512&(s=c.charCodeAt(v)))==55296&&v+1<y&&(64512&(d=c.charCodeAt(v+1)))==56320&&(s=65536+(s-55296<<10)+(d-56320),v++),b+=s<128?1:s<2048?2:s<65536?3:4;for(f=new l.Buf8(b),v=g=0;g<b;v++)(64512&(s=c.charCodeAt(v)))==55296&&v+1<y&&(64512&(d=c.charCodeAt(v+1)))==56320&&(s=65536+(s-55296<<10)+(d-56320),v++),s<128?f[g++]=s:(s<2048?f[g++]=192|s>>>6:(s<65536?f[g++]=224|s>>>12:(f[g++]=240|s>>>18,f[g++]=128|s>>>12&63),f[g++]=128|s>>>6&63),f[g++]=128|63&s);return f},i.buf2binstring=function(c){return h(c,c.length)},i.binstring2buf=function(c){for(var f=new l.Buf8(c.length),s=0,d=f.length;s<d;s++)f[s]=c.charCodeAt(s);return f},i.buf2string=function(c,f){var s,d,v,g,y=f||c.length,b=new Array(2*y);for(s=d=0;s<y;)if((v=c[s++])<128)b[d++]=v;else if(4<(g=o[v]))b[d++]=65533,s+=g-1;else{for(v&=g===2?31:g===3?15:7;1<g&&s<y;)v=v<<6|63&c[s++],g--;1<g?b[d++]=65533:v<65536?b[d++]=v:(v-=65536,b[d++]=55296|v>>10&1023,b[d++]=56320|1023&v)}return h(b,d)},i.utf8border=function(c,f){var s;for((f=f||c.length)>c.length&&(f=c.length),s=f-1;0<=s&&(192&c[s])==128;)s--;return s<0||s===0?f:s+o[c[s]]>f?s:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(l,m,a,o){for(var u=65535&l|0,h=l>>>16&65535|0,c=0;a!==0;){for(a-=c=2e3<a?2e3:a;h=h+(u=u+m[o++]|0)|0,--c;);u%=65521,h%=65521}return u|h<<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 m,a=[],o=0;o<256;o++){m=o;for(var u=0;u<8;u++)m=1&m?3988292384^m>>>1:m>>>1;a[o]=m}return a}();r.exports=function(m,a,o,u){var h=l,c=u+o;m^=-1;for(var f=u;f<c;f++)m=m>>>8^h[255&(m^a[f])];return-1^m}},{}],46:[function(n,r,i){var l,m=n("../utils/common"),a=n("./trees"),o=n("./adler32"),u=n("./crc32"),h=n("./messages"),c=0,f=4,s=0,d=-2,v=-1,g=4,y=2,b=8,_=9,w=286,S=30,x=19,T=2*w+1,O=15,A=3,$=258,j=$+A+1,R=42,F=113,E=1,W=2,te=3,Q=4;function le(k,N){return k.msg=h[N],N}function I(k){return(k<<1)-(4<k?9:0)}function z(k){for(var N=k.length;0<=--N;)k[N]=0}function M(k){var N=k.state,H=N.pending;H>k.avail_out&&(H=k.avail_out),H!==0&&(m.arraySet(k.output,N.pending_buf,N.pending_out,H,k.next_out),k.next_out+=H,N.pending_out+=H,k.total_out+=H,k.avail_out-=H,N.pending-=H,N.pending===0&&(N.pending_out=0))}function L(k,N){a._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,N),k.block_start=k.strstart,M(k.strm)}function J(k,N){k.pending_buf[k.pending++]=N}function U(k,N){k.pending_buf[k.pending++]=N>>>8&255,k.pending_buf[k.pending++]=255&N}function P(k,N){var H,D,B=k.max_chain_length,X=k.strstart,ae=k.prev_length,ne=k.nice_match,G=k.strstart>k.w_size-j?k.strstart-(k.w_size-j):0,pe=k.window,ie=k.w_mask,ge=k.prev,we=k.strstart+$,ke=pe[X+ae-1],Ee=pe[X+ae];k.prev_length>=k.good_match&&(B>>=2),ne>k.lookahead&&(ne=k.lookahead);do if(pe[(H=N)+ae]===Ee&&pe[H+ae-1]===ke&&pe[H]===pe[X]&&pe[++H]===pe[X+1]){X+=2,H++;do;while(pe[++X]===pe[++H]&&pe[++X]===pe[++H]&&pe[++X]===pe[++H]&&pe[++X]===pe[++H]&&pe[++X]===pe[++H]&&pe[++X]===pe[++H]&&pe[++X]===pe[++H]&&pe[++X]===pe[++H]&&X<we);if(D=$-(we-X),X=we-$,ae<D){if(k.match_start=N,ne<=(ae=D))break;ke=pe[X+ae-1],Ee=pe[X+ae]}}while((N=ge[N&ie])>G&&--B!=0);return ae<=k.lookahead?ae:k.lookahead}function q(k){var N,H,D,B,X,ae,ne,G,pe,ie,ge=k.w_size;do{if(B=k.window_size-k.lookahead-k.strstart,k.strstart>=ge+(ge-j)){for(m.arraySet(k.window,k.window,ge,ge,0),k.match_start-=ge,k.strstart-=ge,k.block_start-=ge,N=H=k.hash_size;D=k.head[--N],k.head[N]=ge<=D?D-ge:0,--H;);for(N=H=ge;D=k.prev[--N],k.prev[N]=ge<=D?D-ge:0,--H;);B+=ge}if(k.strm.avail_in===0)break;if(ae=k.strm,ne=k.window,G=k.strstart+k.lookahead,pe=B,ie=void 0,ie=ae.avail_in,pe<ie&&(ie=pe),H=ie===0?0:(ae.avail_in-=ie,m.arraySet(ne,ae.input,ae.next_in,ie,G),ae.state.wrap===1?ae.adler=o(ae.adler,ne,ie,G):ae.state.wrap===2&&(ae.adler=u(ae.adler,ne,ie,G)),ae.next_in+=ie,ae.total_in+=ie,ie),k.lookahead+=H,k.lookahead+k.insert>=A)for(X=k.strstart-k.insert,k.ins_h=k.window[X],k.ins_h=(k.ins_h<<k.hash_shift^k.window[X+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[X+A-1])&k.hash_mask,k.prev[X&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=X,X++,k.insert--,!(k.lookahead+k.insert<A)););}while(k.lookahead<j&&k.strm.avail_in!==0)}function Z(k,N){for(var H,D;;){if(k.lookahead<j){if(q(k),k.lookahead<j&&N===c)return E;if(k.lookahead===0)break}if(H=0,k.lookahead>=A&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+A-1])&k.hash_mask,H=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),H!==0&&k.strstart-H<=k.w_size-j&&(k.match_length=P(k,H)),k.match_length>=A)if(D=a._tr_tally(k,k.strstart-k.match_start,k.match_length-A),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=A){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+A-1])&k.hash_mask,H=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart,--k.match_length!=0;);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else D=a._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(D&&(L(k,!1),k.strm.avail_out===0))return E}return k.insert=k.strstart<A-1?k.strstart:A-1,N===f?(L(k,!0),k.strm.avail_out===0?te:Q):k.last_lit&&(L(k,!1),k.strm.avail_out===0)?E:W}function re(k,N){for(var H,D,B;;){if(k.lookahead<j){if(q(k),k.lookahead<j&&N===c)return E;if(k.lookahead===0)break}if(H=0,k.lookahead>=A&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+A-1])&k.hash_mask,H=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=A-1,H!==0&&k.prev_length<k.max_lazy_match&&k.strstart-H<=k.w_size-j&&(k.match_length=P(k,H),k.match_length<=5&&(k.strategy===1||k.match_length===A&&4096<k.strstart-k.match_start)&&(k.match_length=A-1)),k.prev_length>=A&&k.match_length<=k.prev_length){for(B=k.strstart+k.lookahead-A,D=a._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-A),k.lookahead-=k.prev_length-1,k.prev_length-=2;++k.strstart<=B&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+A-1])&k.hash_mask,H=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),--k.prev_length!=0;);if(k.match_available=0,k.match_length=A-1,k.strstart++,D&&(L(k,!1),k.strm.avail_out===0))return E}else if(k.match_available){if((D=a._tr_tally(k,0,k.window[k.strstart-1]))&&L(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return E}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(D=a._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<A-1?k.strstart:A-1,N===f?(L(k,!0),k.strm.avail_out===0?te:Q):k.last_lit&&(L(k,!1),k.strm.avail_out===0)?E:W}function de(k,N,H,D,B){this.good_length=k,this.max_lazy=N,this.nice_length=H,this.max_chain=D,this.func=B}function ve(){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=b,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 m.Buf16(2*T),this.dyn_dtree=new m.Buf16(2*(2*S+1)),this.bl_tree=new m.Buf16(2*(2*x+1)),z(this.dyn_ltree),z(this.dyn_dtree),z(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new m.Buf16(O+1),this.heap=new m.Buf16(2*w+1),z(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new m.Buf16(2*w+1),z(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 me(k){var N;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=y,(N=k.state).pending=0,N.pending_out=0,N.wrap<0&&(N.wrap=-N.wrap),N.status=N.wrap?R:F,k.adler=N.wrap===2?0:1,N.last_flush=c,a._tr_init(N),s):le(k,d)}function Y(k){var N=me(k);return N===s&&function(H){H.window_size=2*H.w_size,z(H.head),H.max_lazy_match=l[H.level].max_lazy,H.good_match=l[H.level].good_length,H.nice_match=l[H.level].nice_length,H.max_chain_length=l[H.level].max_chain,H.strstart=0,H.block_start=0,H.lookahead=0,H.insert=0,H.match_length=H.prev_length=A-1,H.match_available=0,H.ins_h=0}(k.state),N}function K(k,N,H,D,B,X){if(!k)return d;var ae=1;if(N===v&&(N=6),D<0?(ae=0,D=-D):15<D&&(ae=2,D-=16),B<1||_<B||H!==b||D<8||15<D||N<0||9<N||X<0||g<X)return le(k,d);D===8&&(D=9);var ne=new ve;return(k.state=ne).strm=k,ne.wrap=ae,ne.gzhead=null,ne.w_bits=D,ne.w_size=1<<ne.w_bits,ne.w_mask=ne.w_size-1,ne.hash_bits=B+7,ne.hash_size=1<<ne.hash_bits,ne.hash_mask=ne.hash_size-1,ne.hash_shift=~~((ne.hash_bits+A-1)/A),ne.window=new m.Buf8(2*ne.w_size),ne.head=new m.Buf16(ne.hash_size),ne.prev=new m.Buf16(ne.w_size),ne.lit_bufsize=1<<B+6,ne.pending_buf_size=4*ne.lit_bufsize,ne.pending_buf=new m.Buf8(ne.pending_buf_size),ne.d_buf=1*ne.lit_bufsize,ne.l_buf=3*ne.lit_bufsize,ne.level=N,ne.strategy=X,ne.method=H,Y(k)}l=[new de(0,0,0,0,function(k,N){var H=65535;for(H>k.pending_buf_size-5&&(H=k.pending_buf_size-5);;){if(k.lookahead<=1){if(q(k),k.lookahead===0&&N===c)return E;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var D=k.block_start+H;if((k.strstart===0||k.strstart>=D)&&(k.lookahead=k.strstart-D,k.strstart=D,L(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-j&&(L(k,!1),k.strm.avail_out===0))return E}return k.insert=0,N===f?(L(k,!0),k.strm.avail_out===0?te:Q):(k.strstart>k.block_start&&(L(k,!1),k.strm.avail_out),E)}),new de(4,4,8,4,Z),new de(4,5,16,8,Z),new de(4,6,32,32,Z),new de(4,4,16,16,re),new de(8,16,32,32,re),new de(8,16,128,128,re),new de(8,32,128,256,re),new de(32,128,258,1024,re),new de(32,258,258,4096,re)],i.deflateInit=function(k,N){return K(k,N,b,15,8,0)},i.deflateInit2=K,i.deflateReset=Y,i.deflateResetKeep=me,i.deflateSetHeader=function(k,N){return k&&k.state?k.state.wrap!==2?d:(k.state.gzhead=N,s):d},i.deflate=function(k,N){var H,D,B,X;if(!k||!k.state||5<N||N<0)return k?le(k,d):d;if(D=k.state,!k.output||!k.input&&k.avail_in!==0||D.status===666&&N!==f)return le(k,k.avail_out===0?-5:d);if(D.strm=k,H=D.last_flush,D.last_flush=N,D.status===R)if(D.wrap===2)k.adler=0,J(D,31),J(D,139),J(D,8),D.gzhead?(J(D,(D.gzhead.text?1:0)+(D.gzhead.hcrc?2:0)+(D.gzhead.extra?4:0)+(D.gzhead.name?8:0)+(D.gzhead.comment?16:0)),J(D,255&D.gzhead.time),J(D,D.gzhead.time>>8&255),J(D,D.gzhead.time>>16&255),J(D,D.gzhead.time>>24&255),J(D,D.level===9?2:2<=D.strategy||D.level<2?4:0),J(D,255&D.gzhead.os),D.gzhead.extra&&D.gzhead.extra.length&&(J(D,255&D.gzhead.extra.length),J(D,D.gzhead.extra.length>>8&255)),D.gzhead.hcrc&&(k.adler=u(k.adler,D.pending_buf,D.pending,0)),D.gzindex=0,D.status=69):(J(D,0),J(D,0),J(D,0),J(D,0),J(D,0),J(D,D.level===9?2:2<=D.strategy||D.level<2?4:0),J(D,3),D.status=F);else{var ae=b+(D.w_bits-8<<4)<<8;ae|=(2<=D.strategy||D.level<2?0:D.level<6?1:D.level===6?2:3)<<6,D.strstart!==0&&(ae|=32),ae+=31-ae%31,D.status=F,U(D,ae),D.strstart!==0&&(U(D,k.adler>>>16),U(D,65535&k.adler)),k.adler=1}if(D.status===69)if(D.gzhead.extra){for(B=D.pending;D.gzindex<(65535&D.gzhead.extra.length)&&(D.pending!==D.pending_buf_size||(D.gzhead.hcrc&&D.pending>B&&(k.adler=u(k.adler,D.pending_buf,D.pending-B,B)),M(k),B=D.pending,D.pending!==D.pending_buf_size));)J(D,255&D.gzhead.extra[D.gzindex]),D.gzindex++;D.gzhead.hcrc&&D.pending>B&&(k.adler=u(k.adler,D.pending_buf,D.pending-B,B)),D.gzindex===D.gzhead.extra.length&&(D.gzindex=0,D.status=73)}else D.status=73;if(D.status===73)if(D.gzhead.name){B=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>B&&(k.adler=u(k.adler,D.pending_buf,D.pending-B,B)),M(k),B=D.pending,D.pending===D.pending_buf_size)){X=1;break}X=D.gzindex<D.gzhead.name.length?255&D.gzhead.name.charCodeAt(D.gzindex++):0,J(D,X)}while(X!==0);D.gzhead.hcrc&&D.pending>B&&(k.adler=u(k.adler,D.pending_buf,D.pending-B,B)),X===0&&(D.gzindex=0,D.status=91)}else D.status=91;if(D.status===91)if(D.gzhead.comment){B=D.pending;do{if(D.pending===D.pending_buf_size&&(D.gzhead.hcrc&&D.pending>B&&(k.adler=u(k.adler,D.pending_buf,D.pending-B,B)),M(k),B=D.pending,D.pending===D.pending_buf_size)){X=1;break}X=D.gzindex<D.gzhead.comment.length?255&D.gzhead.comment.charCodeAt(D.gzindex++):0,J(D,X)}while(X!==0);D.gzhead.hcrc&&D.pending>B&&(k.adler=u(k.adler,D.pending_buf,D.pending-B,B)),X===0&&(D.status=103)}else D.status=103;if(D.status===103&&(D.gzhead.hcrc?(D.pending+2>D.pending_buf_size&&M(k),D.pending+2<=D.pending_buf_size&&(J(D,255&k.adler),J(D,k.adler>>8&255),k.adler=0,D.status=F)):D.status=F),D.pending!==0){if(M(k),k.avail_out===0)return D.last_flush=-1,s}else if(k.avail_in===0&&I(N)<=I(H)&&N!==f)return le(k,-5);if(D.status===666&&k.avail_in!==0)return le(k,-5);if(k.avail_in!==0||D.lookahead!==0||N!==c&&D.status!==666){var ne=D.strategy===2?function(G,pe){for(var ie;;){if(G.lookahead===0&&(q(G),G.lookahead===0)){if(pe===c)return E;break}if(G.match_length=0,ie=a._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++,ie&&(L(G,!1),G.strm.avail_out===0))return E}return G.insert=0,pe===f?(L(G,!0),G.strm.avail_out===0?te:Q):G.last_lit&&(L(G,!1),G.strm.avail_out===0)?E:W}(D,N):D.strategy===3?function(G,pe){for(var ie,ge,we,ke,Ee=G.window;;){if(G.lookahead<=$){if(q(G),G.lookahead<=$&&pe===c)return E;if(G.lookahead===0)break}if(G.match_length=0,G.lookahead>=A&&0<G.strstart&&(ge=Ee[we=G.strstart-1])===Ee[++we]&&ge===Ee[++we]&&ge===Ee[++we]){ke=G.strstart+$;do;while(ge===Ee[++we]&&ge===Ee[++we]&&ge===Ee[++we]&&ge===Ee[++we]&&ge===Ee[++we]&&ge===Ee[++we]&&ge===Ee[++we]&&ge===Ee[++we]&&we<ke);G.match_length=$-(ke-we),G.match_length>G.lookahead&&(G.match_length=G.lookahead)}if(G.match_length>=A?(ie=a._tr_tally(G,1,G.match_length-A),G.lookahead-=G.match_length,G.strstart+=G.match_length,G.match_length=0):(ie=a._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++),ie&&(L(G,!1),G.strm.avail_out===0))return E}return G.insert=0,pe===f?(L(G,!0),G.strm.avail_out===0?te:Q):G.last_lit&&(L(G,!1),G.strm.avail_out===0)?E:W}(D,N):l[D.level].func(D,N);if(ne!==te&&ne!==Q||(D.status=666),ne===E||ne===te)return k.avail_out===0&&(D.last_flush=-1),s;if(ne===W&&(N===1?a._tr_align(D):N!==5&&(a._tr_stored_block(D,0,0,!1),N===3&&(z(D.head),D.lookahead===0&&(D.strstart=0,D.block_start=0,D.insert=0))),M(k),k.avail_out===0))return D.last_flush=-1,s}return N!==f?s:D.wrap<=0?1:(D.wrap===2?(J(D,255&k.adler),J(D,k.adler>>8&255),J(D,k.adler>>16&255),J(D,k.adler>>24&255),J(D,255&k.total_in),J(D,k.total_in>>8&255),J(D,k.total_in>>16&255),J(D,k.total_in>>24&255)):(U(D,k.adler>>>16),U(D,65535&k.adler)),M(k),0<D.wrap&&(D.wrap=-D.wrap),D.pending!==0?s:1)},i.deflateEnd=function(k){var N;return k&&k.state?(N=k.state.status)!==R&&N!==69&&N!==73&&N!==91&&N!==103&&N!==F&&N!==666?le(k,d):(k.state=null,N===F?le(k,-3):s):d},i.deflateSetDictionary=function(k,N){var H,D,B,X,ae,ne,G,pe,ie=N.length;if(!k||!k.state||(X=(H=k.state).wrap)===2||X===1&&H.status!==R||H.lookahead)return d;for(X===1&&(k.adler=o(k.adler,N,ie,0)),H.wrap=0,ie>=H.w_size&&(X===0&&(z(H.head),H.strstart=0,H.block_start=0,H.insert=0),pe=new m.Buf8(H.w_size),m.arraySet(pe,N,ie-H.w_size,H.w_size,0),N=pe,ie=H.w_size),ae=k.avail_in,ne=k.next_in,G=k.input,k.avail_in=ie,k.next_in=0,k.input=N,q(H);H.lookahead>=A;){for(D=H.strstart,B=H.lookahead-(A-1);H.ins_h=(H.ins_h<<H.hash_shift^H.window[D+A-1])&H.hash_mask,H.prev[D&H.w_mask]=H.head[H.ins_h],H.head[H.ins_h]=D,D++,--B;);H.strstart=D,H.lookahead=A-1,q(H)}return H.strstart+=H.lookahead,H.block_start=H.strstart,H.insert=H.lookahead,H.lookahead=0,H.match_length=H.prev_length=A-1,H.match_available=0,k.next_in=ne,k.input=G,k.avail_in=ae,H.wrap=X,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,m){var a,o,u,h,c,f,s,d,v,g,y,b,_,w,S,x,T,O,A,$,j,R,F,E,W;a=l.state,o=l.next_in,E=l.input,u=o+(l.avail_in-5),h=l.next_out,W=l.output,c=h-(m-l.avail_out),f=h+(l.avail_out-257),s=a.dmax,d=a.wsize,v=a.whave,g=a.wnext,y=a.window,b=a.hold,_=a.bits,w=a.lencode,S=a.distcode,x=(1<<a.lenbits)-1,T=(1<<a.distbits)-1;e:do{_<15&&(b+=E[o++]<<_,_+=8,b+=E[o++]<<_,_+=8),O=w[b&x];t:for(;;){if(b>>>=A=O>>>24,_-=A,(A=O>>>16&255)===0)W[h++]=65535&O;else{if(!(16&A)){if((64&A)==0){O=w[(65535&O)+(b&(1<<A)-1)];continue t}if(32&A){a.mode=12;break e}l.msg="invalid literal/length code",a.mode=30;break e}$=65535&O,(A&=15)&&(_<A&&(b+=E[o++]<<_,_+=8),$+=b&(1<<A)-1,b>>>=A,_-=A),_<15&&(b+=E[o++]<<_,_+=8,b+=E[o++]<<_,_+=8),O=S[b&T];n:for(;;){if(b>>>=A=O>>>24,_-=A,!(16&(A=O>>>16&255))){if((64&A)==0){O=S[(65535&O)+(b&(1<<A)-1)];continue n}l.msg="invalid distance code",a.mode=30;break e}if(j=65535&O,_<(A&=15)&&(b+=E[o++]<<_,(_+=8)<A&&(b+=E[o++]<<_,_+=8)),s<(j+=b&(1<<A)-1)){l.msg="invalid distance too far back",a.mode=30;break e}if(b>>>=A,_-=A,(A=h-c)<j){if(v<(A=j-A)&&a.sane){l.msg="invalid distance too far back",a.mode=30;break e}if(F=y,(R=0)===g){if(R+=d-A,A<$){for($-=A;W[h++]=y[R++],--A;);R=h-j,F=W}}else if(g<A){if(R+=d+g-A,(A-=g)<$){for($-=A;W[h++]=y[R++],--A;);if(R=0,g<$){for($-=A=g;W[h++]=y[R++],--A;);R=h-j,F=W}}}else if(R+=g-A,A<$){for($-=A;W[h++]=y[R++],--A;);R=h-j,F=W}for(;2<$;)W[h++]=F[R++],W[h++]=F[R++],W[h++]=F[R++],$-=3;$&&(W[h++]=F[R++],1<$&&(W[h++]=F[R++]))}else{for(R=h-j;W[h++]=W[R++],W[h++]=W[R++],W[h++]=W[R++],2<($-=3););$&&(W[h++]=W[R++],1<$&&(W[h++]=W[R++]))}break}}break}}while(o<u&&h<f);o-=$=_>>3,b&=(1<<(_-=$<<3))-1,l.next_in=o,l.next_out=h,l.avail_in=o<u?u-o+5:5-(o-u),l.avail_out=h<f?f-h+257:257-(h-f),a.hold=b,a.bits=_}},{}],49:[function(n,r,i){var l=n("../utils/common"),m=n("./adler32"),a=n("./crc32"),o=n("./inffast"),u=n("./inftrees"),h=1,c=2,f=0,s=-2,d=1,v=852,g=592;function y(R){return(R>>>24&255)+(R>>>8&65280)+((65280&R)<<8)+((255&R)<<24)}function b(){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 _(R){var F;return R&&R.state?(F=R.state,R.total_in=R.total_out=F.total=0,R.msg="",F.wrap&&(R.adler=1&F.wrap),F.mode=d,F.last=0,F.havedict=0,F.dmax=32768,F.head=null,F.hold=0,F.bits=0,F.lencode=F.lendyn=new l.Buf32(v),F.distcode=F.distdyn=new l.Buf32(g),F.sane=1,F.back=-1,f):s}function w(R){var F;return R&&R.state?((F=R.state).wsize=0,F.whave=0,F.wnext=0,_(R)):s}function S(R,F){var E,W;return R&&R.state?(W=R.state,F<0?(E=0,F=-F):(E=1+(F>>4),F<48&&(F&=15)),F&&(F<8||15<F)?s:(W.window!==null&&W.wbits!==F&&(W.window=null),W.wrap=E,W.wbits=F,w(R))):s}function x(R,F){var E,W;return R?(W=new b,(R.state=W).window=null,(E=S(R,F))!==f&&(R.state=null),E):s}var T,O,A=!0;function $(R){if(A){var F;for(T=new l.Buf32(512),O=new l.Buf32(32),F=0;F<144;)R.lens[F++]=8;for(;F<256;)R.lens[F++]=9;for(;F<280;)R.lens[F++]=7;for(;F<288;)R.lens[F++]=8;for(u(h,R.lens,0,288,T,0,R.work,{bits:9}),F=0;F<32;)R.lens[F++]=5;u(c,R.lens,0,32,O,0,R.work,{bits:5}),A=!1}R.lencode=T,R.lenbits=9,R.distcode=O,R.distbits=5}function j(R,F,E,W){var te,Q=R.state;return Q.window===null&&(Q.wsize=1<<Q.wbits,Q.wnext=0,Q.whave=0,Q.window=new l.Buf8(Q.wsize)),W>=Q.wsize?(l.arraySet(Q.window,F,E-Q.wsize,Q.wsize,0),Q.wnext=0,Q.whave=Q.wsize):(W<(te=Q.wsize-Q.wnext)&&(te=W),l.arraySet(Q.window,F,E-W,te,Q.wnext),(W-=te)?(l.arraySet(Q.window,F,E-W,W,0),Q.wnext=W,Q.whave=Q.wsize):(Q.wnext+=te,Q.wnext===Q.wsize&&(Q.wnext=0),Q.whave<Q.wsize&&(Q.whave+=te))),0}i.inflateReset=w,i.inflateReset2=S,i.inflateResetKeep=_,i.inflateInit=function(R){return x(R,15)},i.inflateInit2=x,i.inflate=function(R,F){var E,W,te,Q,le,I,z,M,L,J,U,P,q,Z,re,de,ve,me,Y,K,k,N,H,D,B=0,X=new l.Buf8(4),ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!R||!R.state||!R.output||!R.input&&R.avail_in!==0)return s;(E=R.state).mode===12&&(E.mode=13),le=R.next_out,te=R.output,z=R.avail_out,Q=R.next_in,W=R.input,I=R.avail_in,M=E.hold,L=E.bits,J=I,U=z,N=f;e:for(;;)switch(E.mode){case d:if(E.wrap===0){E.mode=13;break}for(;L<16;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if(2&E.wrap&&M===35615){X[E.check=0]=255&M,X[1]=M>>>8&255,E.check=a(E.check,X,2,0),L=M=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&M)<<8)+(M>>8))%31){R.msg="incorrect header check",E.mode=30;break}if((15&M)!=8){R.msg="unknown compression method",E.mode=30;break}if(L-=4,k=8+(15&(M>>>=4)),E.wbits===0)E.wbits=k;else if(k>E.wbits){R.msg="invalid window size",E.mode=30;break}E.dmax=1<<k,R.adler=E.check=1,E.mode=512&M?10:12,L=M=0;break;case 2:for(;L<16;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if(E.flags=M,(255&E.flags)!=8){R.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){R.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=M>>8&1),512&E.flags&&(X[0]=255&M,X[1]=M>>>8&255,E.check=a(E.check,X,2,0)),L=M=0,E.mode=3;case 3:for(;L<32;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}E.head&&(E.head.time=M),512&E.flags&&(X[0]=255&M,X[1]=M>>>8&255,X[2]=M>>>16&255,X[3]=M>>>24&255,E.check=a(E.check,X,4,0)),L=M=0,E.mode=4;case 4:for(;L<16;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}E.head&&(E.head.xflags=255&M,E.head.os=M>>8),512&E.flags&&(X[0]=255&M,X[1]=M>>>8&255,E.check=a(E.check,X,2,0)),L=M=0,E.mode=5;case 5:if(1024&E.flags){for(;L<16;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}E.length=M,E.head&&(E.head.extra_len=M),512&E.flags&&(X[0]=255&M,X[1]=M>>>8&255,E.check=a(E.check,X,2,0)),L=M=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(I<(P=E.length)&&(P=I),P&&(E.head&&(k=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),l.arraySet(E.head.extra,W,Q,P,k)),512&E.flags&&(E.check=a(E.check,W,P,Q)),I-=P,Q+=P,E.length-=P),E.length))break e;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(I===0)break e;for(P=0;k=W[Q+P++],E.head&&k&&E.length<65536&&(E.head.name+=String.fromCharCode(k)),k&&P<I;);if(512&E.flags&&(E.check=a(E.check,W,P,Q)),I-=P,Q+=P,k)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(I===0)break e;for(P=0;k=W[Q+P++],E.head&&k&&E.length<65536&&(E.head.comment+=String.fromCharCode(k)),k&&P<I;);if(512&E.flags&&(E.check=a(E.check,W,P,Q)),I-=P,Q+=P,k)break e}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;L<16;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if(M!==(65535&E.check)){R.msg="header crc mismatch",E.mode=30;break}L=M=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),R.adler=E.check=0,E.mode=12;break;case 10:for(;L<32;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}R.adler=E.check=y(M),L=M=0,E.mode=11;case 11:if(E.havedict===0)return R.next_out=le,R.avail_out=z,R.next_in=Q,R.avail_in=I,E.hold=M,E.bits=L,2;R.adler=E.check=1,E.mode=12;case 12:if(F===5||F===6)break e;case 13:if(E.last){M>>>=7&L,L-=7&L,E.mode=27;break}for(;L<3;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}switch(E.last=1&M,L-=1,3&(M>>>=1)){case 0:E.mode=14;break;case 1:if($(E),E.mode=20,F!==6)break;M>>>=2,L-=2;break e;case 2:E.mode=17;break;case 3:R.msg="invalid block type",E.mode=30}M>>>=2,L-=2;break;case 14:for(M>>>=7&L,L-=7&L;L<32;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if((65535&M)!=(M>>>16^65535)){R.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&M,L=M=0,E.mode=15,F===6)break e;case 15:E.mode=16;case 16:if(P=E.length){if(I<P&&(P=I),z<P&&(P=z),P===0)break e;l.arraySet(te,W,Q,P,le),I-=P,Q+=P,z-=P,le+=P,E.length-=P;break}E.mode=12;break;case 17:for(;L<14;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if(E.nlen=257+(31&M),M>>>=5,L-=5,E.ndist=1+(31&M),M>>>=5,L-=5,E.ncode=4+(15&M),M>>>=4,L-=4,286<E.nlen||30<E.ndist){R.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;L<3;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}E.lens[ae[E.have++]]=7&M,M>>>=3,L-=3}for(;E.have<19;)E.lens[ae[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,H={bits:E.lenbits},N=u(0,E.lens,0,19,E.lencode,0,E.work,H),E.lenbits=H.bits,N){R.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;de=(B=E.lencode[M&(1<<E.lenbits)-1])>>>16&255,ve=65535&B,!((re=B>>>24)<=L);){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if(ve<16)M>>>=re,L-=re,E.lens[E.have++]=ve;else{if(ve===16){for(D=re+2;L<D;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if(M>>>=re,L-=re,E.have===0){R.msg="invalid bit length repeat",E.mode=30;break}k=E.lens[E.have-1],P=3+(3&M),M>>>=2,L-=2}else if(ve===17){for(D=re+3;L<D;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}L-=re,k=0,P=3+(7&(M>>>=re)),M>>>=3,L-=3}else{for(D=re+7;L<D;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}L-=re,k=0,P=11+(127&(M>>>=re)),M>>>=7,L-=7}if(E.have+P>E.nlen+E.ndist){R.msg="invalid bit length repeat",E.mode=30;break}for(;P--;)E.lens[E.have++]=k}}if(E.mode===30)break;if(E.lens[256]===0){R.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,H={bits:E.lenbits},N=u(h,E.lens,0,E.nlen,E.lencode,0,E.work,H),E.lenbits=H.bits,N){R.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,H={bits:E.distbits},N=u(c,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,H),E.distbits=H.bits,N){R.msg="invalid distances set",E.mode=30;break}if(E.mode=20,F===6)break e;case 20:E.mode=21;case 21:if(6<=I&&258<=z){R.next_out=le,R.avail_out=z,R.next_in=Q,R.avail_in=I,E.hold=M,E.bits=L,o(R,U),le=R.next_out,te=R.output,z=R.avail_out,Q=R.next_in,W=R.input,I=R.avail_in,M=E.hold,L=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;de=(B=E.lencode[M&(1<<E.lenbits)-1])>>>16&255,ve=65535&B,!((re=B>>>24)<=L);){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if(de&&(240&de)==0){for(me=re,Y=de,K=ve;de=(B=E.lencode[K+((M&(1<<me+Y)-1)>>me)])>>>16&255,ve=65535&B,!(me+(re=B>>>24)<=L);){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}M>>>=me,L-=me,E.back+=me}if(M>>>=re,L-=re,E.back+=re,E.length=ve,de===0){E.mode=26;break}if(32&de){E.back=-1,E.mode=12;break}if(64&de){R.msg="invalid literal/length code",E.mode=30;break}E.extra=15&de,E.mode=22;case 22:if(E.extra){for(D=E.extra;L<D;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}E.length+=M&(1<<E.extra)-1,M>>>=E.extra,L-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;de=(B=E.distcode[M&(1<<E.distbits)-1])>>>16&255,ve=65535&B,!((re=B>>>24)<=L);){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if((240&de)==0){for(me=re,Y=de,K=ve;de=(B=E.distcode[K+((M&(1<<me+Y)-1)>>me)])>>>16&255,ve=65535&B,!(me+(re=B>>>24)<=L);){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}M>>>=me,L-=me,E.back+=me}if(M>>>=re,L-=re,E.back+=re,64&de){R.msg="invalid distance code",E.mode=30;break}E.offset=ve,E.extra=15&de,E.mode=24;case 24:if(E.extra){for(D=E.extra;L<D;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}E.offset+=M&(1<<E.extra)-1,M>>>=E.extra,L-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){R.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(z===0)break e;if(P=U-z,E.offset>P){if((P=E.offset-P)>E.whave&&E.sane){R.msg="invalid distance too far back",E.mode=30;break}q=P>E.wnext?(P-=E.wnext,E.wsize-P):E.wnext-P,P>E.length&&(P=E.length),Z=E.window}else Z=te,q=le-E.offset,P=E.length;for(z<P&&(P=z),z-=P,E.length-=P;te[le++]=Z[q++],--P;);E.length===0&&(E.mode=21);break;case 26:if(z===0)break e;te[le++]=E.length,z--,E.mode=21;break;case 27:if(E.wrap){for(;L<32;){if(I===0)break e;I--,M|=W[Q++]<<L,L+=8}if(U-=z,R.total_out+=U,E.total+=U,U&&(R.adler=E.check=E.flags?a(E.check,te,U,le-U):m(E.check,te,U,le-U)),U=z,(E.flags?M:y(M))!==E.check){R.msg="incorrect data check",E.mode=30;break}L=M=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;L<32;){if(I===0)break e;I--,M+=W[Q++]<<L,L+=8}if(M!==(4294967295&E.total)){R.msg="incorrect length check",E.mode=30;break}L=M=0}E.mode=29;case 29:N=1;break e;case 30:N=-3;break e;case 31:return-4;case 32:default:return s}return R.next_out=le,R.avail_out=z,R.next_in=Q,R.avail_in=I,E.hold=M,E.bits=L,(E.wsize||U!==R.avail_out&&E.mode<30&&(E.mode<27||F!==4))&&j(R,R.output,R.next_out,U-R.avail_out)?(E.mode=31,-4):(J-=R.avail_in,U-=R.avail_out,R.total_in+=J,R.total_out+=U,E.total+=U,E.wrap&&U&&(R.adler=E.check=E.flags?a(E.check,te,U,R.next_out-U):m(E.check,te,U,R.next_out-U)),R.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(J==0&&U===0||F===4)&&N===f&&(N=-5),N)},i.inflateEnd=function(R){if(!R||!R.state)return s;var F=R.state;return F.window&&(F.window=null),R.state=null,f},i.inflateGetHeader=function(R,F){var E;return R&&R.state?(2&(E=R.state).wrap)==0?s:((E.head=F).done=!1,f):s},i.inflateSetDictionary=function(R,F){var E,W=F.length;return R&&R.state?(E=R.state).wrap!==0&&E.mode!==11?s:E.mode===11&&m(1,F,W,0)!==E.check?-3:j(R,F,W,W)?(E.mode=31,-4):(E.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"),m=[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],a=[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],o=[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],u=[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(h,c,f,s,d,v,g,y){var b,_,w,S,x,T,O,A,$,j=y.bits,R=0,F=0,E=0,W=0,te=0,Q=0,le=0,I=0,z=0,M=0,L=null,J=0,U=new l.Buf16(16),P=new l.Buf16(16),q=null,Z=0;for(R=0;R<=15;R++)U[R]=0;for(F=0;F<s;F++)U[c[f+F]]++;for(te=j,W=15;1<=W&&U[W]===0;W--);if(W<te&&(te=W),W===0)return d[v++]=20971520,d[v++]=20971520,y.bits=1,0;for(E=1;E<W&&U[E]===0;E++);for(te<E&&(te=E),R=I=1;R<=15;R++)if(I<<=1,(I-=U[R])<0)return-1;if(0<I&&(h===0||W!==1))return-1;for(P[1]=0,R=1;R<15;R++)P[R+1]=P[R]+U[R];for(F=0;F<s;F++)c[f+F]!==0&&(g[P[c[f+F]]++]=F);if(T=h===0?(L=q=g,19):h===1?(L=m,J-=257,q=a,Z-=257,256):(L=o,q=u,-1),R=E,x=v,le=F=M=0,w=-1,S=(z=1<<(Q=te))-1,h===1&&852<z||h===2&&592<z)return 1;for(;;){for(O=R-le,$=g[F]<T?(A=0,g[F]):g[F]>T?(A=q[Z+g[F]],L[J+g[F]]):(A=96,0),b=1<<R-le,E=_=1<<Q;d[x+(M>>le)+(_-=b)]=O<<24|A<<16|$|0,_!==0;);for(b=1<<R-1;M&b;)b>>=1;if(b!==0?(M&=b-1,M+=b):M=0,F++,--U[R]==0){if(R===W)break;R=c[f+g[F]]}if(te<R&&(M&S)!==w){for(le===0&&(le=te),x+=E,I=1<<(Q=R-le);Q+le<W&&!((I-=U[Q+le])<=0);)Q++,I<<=1;if(z+=1<<Q,h===1&&852<z||h===2&&592<z)return 1;d[w=M&S]=te<<24|Q<<16|x-v|0}}return M!==0&&(d[x+M]=R-le<<24|64<<16|0),y.bits=te,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"),m=0,a=1;function o(B){for(var X=B.length;0<=--X;)B[X]=0}var u=0,h=29,c=256,f=c+1+h,s=30,d=19,v=2*f+1,g=15,y=16,b=7,_=256,w=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],O=[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],A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j=new Array(2*(f+2));o(j);var R=new Array(2*s);o(R);var F=new Array(512);o(F);var E=new Array(256);o(E);var W=new Array(h);o(W);var te,Q,le,I=new Array(s);function z(B,X,ae,ne,G){this.static_tree=B,this.extra_bits=X,this.extra_base=ae,this.elems=ne,this.max_length=G,this.has_stree=B&&B.length}function M(B,X){this.dyn_tree=B,this.max_code=0,this.stat_desc=X}function L(B){return B<256?F[B]:F[256+(B>>>7)]}function J(B,X){B.pending_buf[B.pending++]=255&X,B.pending_buf[B.pending++]=X>>>8&255}function U(B,X,ae){B.bi_valid>y-ae?(B.bi_buf|=X<<B.bi_valid&65535,J(B,B.bi_buf),B.bi_buf=X>>y-B.bi_valid,B.bi_valid+=ae-y):(B.bi_buf|=X<<B.bi_valid&65535,B.bi_valid+=ae)}function P(B,X,ae){U(B,ae[2*X],ae[2*X+1])}function q(B,X){for(var ae=0;ae|=1&B,B>>>=1,ae<<=1,0<--X;);return ae>>>1}function Z(B,X,ae){var ne,G,pe=new Array(g+1),ie=0;for(ne=1;ne<=g;ne++)pe[ne]=ie=ie+ae[ne-1]<<1;for(G=0;G<=X;G++){var ge=B[2*G+1];ge!==0&&(B[2*G]=q(pe[ge]++,ge))}}function re(B){var X;for(X=0;X<f;X++)B.dyn_ltree[2*X]=0;for(X=0;X<s;X++)B.dyn_dtree[2*X]=0;for(X=0;X<d;X++)B.bl_tree[2*X]=0;B.dyn_ltree[2*_]=1,B.opt_len=B.static_len=0,B.last_lit=B.matches=0}function de(B){8<B.bi_valid?J(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 ve(B,X,ae,ne){var G=2*X,pe=2*ae;return B[G]<B[pe]||B[G]===B[pe]&&ne[X]<=ne[ae]}function me(B,X,ae){for(var ne=B.heap[ae],G=ae<<1;G<=B.heap_len&&(G<B.heap_len&&ve(X,B.heap[G+1],B.heap[G],B.depth)&&G++,!ve(X,ne,B.heap[G],B.depth));)B.heap[ae]=B.heap[G],ae=G,G<<=1;B.heap[ae]=ne}function Y(B,X,ae){var ne,G,pe,ie,ge=0;if(B.last_lit!==0)for(;ne=B.pending_buf[B.d_buf+2*ge]<<8|B.pending_buf[B.d_buf+2*ge+1],G=B.pending_buf[B.l_buf+ge],ge++,ne===0?P(B,G,X):(P(B,(pe=E[G])+c+1,X),(ie=T[pe])!==0&&U(B,G-=W[pe],ie),P(B,pe=L(--ne),ae),(ie=O[pe])!==0&&U(B,ne-=I[pe],ie)),ge<B.last_lit;);P(B,_,X)}function K(B,X){var ae,ne,G,pe=X.dyn_tree,ie=X.stat_desc.static_tree,ge=X.stat_desc.has_stree,we=X.stat_desc.elems,ke=-1;for(B.heap_len=0,B.heap_max=v,ae=0;ae<we;ae++)pe[2*ae]!==0?(B.heap[++B.heap_len]=ke=ae,B.depth[ae]=0):pe[2*ae+1]=0;for(;B.heap_len<2;)pe[2*(G=B.heap[++B.heap_len]=ke<2?++ke:0)]=1,B.depth[G]=0,B.opt_len--,ge&&(B.static_len-=ie[2*G+1]);for(X.max_code=ke,ae=B.heap_len>>1;1<=ae;ae--)me(B,pe,ae);for(G=we;ae=B.heap[1],B.heap[1]=B.heap[B.heap_len--],me(B,pe,1),ne=B.heap[1],B.heap[--B.heap_max]=ae,B.heap[--B.heap_max]=ne,pe[2*G]=pe[2*ae]+pe[2*ne],B.depth[G]=(B.depth[ae]>=B.depth[ne]?B.depth[ae]:B.depth[ne])+1,pe[2*ae+1]=pe[2*ne+1]=G,B.heap[1]=G++,me(B,pe,1),2<=B.heap_len;);B.heap[--B.heap_max]=B.heap[1],function(Ee,Pe){var ye,Ce,Me,De,lt,wt,ut=Pe.dyn_tree,rn=Pe.max_code,fn=Pe.stat_desc.static_tree,Lo=Pe.stat_desc.has_stree,_n=Pe.stat_desc.extra_bits,or=Pe.stat_desc.extra_base,La=Pe.stat_desc.max_length,Tl=0;for(De=0;De<=g;De++)Ee.bl_count[De]=0;for(ut[2*Ee.heap[Ee.heap_max]+1]=0,ye=Ee.heap_max+1;ye<v;ye++)La<(De=ut[2*ut[2*(Ce=Ee.heap[ye])+1]+1]+1)&&(De=La,Tl++),ut[2*Ce+1]=De,rn<Ce||(Ee.bl_count[De]++,lt=0,or<=Ce&&(lt=_n[Ce-or]),wt=ut[2*Ce],Ee.opt_len+=wt*(De+lt),Lo&&(Ee.static_len+=wt*(fn[2*Ce+1]+lt)));if(Tl!==0){do{for(De=La-1;Ee.bl_count[De]===0;)De--;Ee.bl_count[De]--,Ee.bl_count[De+1]+=2,Ee.bl_count[La]--,Tl-=2}while(0<Tl);for(De=La;De!==0;De--)for(Ce=Ee.bl_count[De];Ce!==0;)rn<(Me=Ee.heap[--ye])||(ut[2*Me+1]!==De&&(Ee.opt_len+=(De-ut[2*Me+1])*ut[2*Me],ut[2*Me+1]=De),Ce--)}}(B,X),Z(pe,ke,B.bl_count)}function k(B,X,ae){var ne,G,pe=-1,ie=X[1],ge=0,we=7,ke=4;for(ie===0&&(we=138,ke=3),X[2*(ae+1)+1]=65535,ne=0;ne<=ae;ne++)G=ie,ie=X[2*(ne+1)+1],++ge<we&&G===ie||(ge<ke?B.bl_tree[2*G]+=ge:G!==0?(G!==pe&&B.bl_tree[2*G]++,B.bl_tree[2*w]++):ge<=10?B.bl_tree[2*S]++:B.bl_tree[2*x]++,pe=G,ke=(ge=0)===ie?(we=138,3):G===ie?(we=6,3):(we=7,4))}function N(B,X,ae){var ne,G,pe=-1,ie=X[1],ge=0,we=7,ke=4;for(ie===0&&(we=138,ke=3),ne=0;ne<=ae;ne++)if(G=ie,ie=X[2*(ne+1)+1],!(++ge<we&&G===ie)){if(ge<ke)for(;P(B,G,B.bl_tree),--ge!=0;);else G!==0?(G!==pe&&(P(B,G,B.bl_tree),ge--),P(B,w,B.bl_tree),U(B,ge-3,2)):ge<=10?(P(B,S,B.bl_tree),U(B,ge-3,3)):(P(B,x,B.bl_tree),U(B,ge-11,7));pe=G,ke=(ge=0)===ie?(we=138,3):G===ie?(we=6,3):(we=7,4)}}o(I);var H=!1;function D(B,X,ae,ne){U(B,(u<<1)+(ne?1:0),3),function(G,pe,ie,ge){de(G),ge&&(J(G,ie),J(G,~ie)),l.arraySet(G.pending_buf,G.window,pe,ie,G.pending),G.pending+=ie}(B,X,ae,!0)}i._tr_init=function(B){H||(function(){var X,ae,ne,G,pe,ie=new Array(g+1);for(G=ne=0;G<h-1;G++)for(W[G]=ne,X=0;X<1<<T[G];X++)E[ne++]=G;for(E[ne-1]=G,G=pe=0;G<16;G++)for(I[G]=pe,X=0;X<1<<O[G];X++)F[pe++]=G;for(pe>>=7;G<s;G++)for(I[G]=pe<<7,X=0;X<1<<O[G]-7;X++)F[256+pe++]=G;for(ae=0;ae<=g;ae++)ie[ae]=0;for(X=0;X<=143;)j[2*X+1]=8,X++,ie[8]++;for(;X<=255;)j[2*X+1]=9,X++,ie[9]++;for(;X<=279;)j[2*X+1]=7,X++,ie[7]++;for(;X<=287;)j[2*X+1]=8,X++,ie[8]++;for(Z(j,f+1,ie),X=0;X<s;X++)R[2*X+1]=5,R[2*X]=q(X,5);te=new z(j,T,c+1,f,g),Q=new z(R,O,0,s,g),le=new z(new Array(0),A,0,d,b)}(),H=!0),B.l_desc=new M(B.dyn_ltree,te),B.d_desc=new M(B.dyn_dtree,Q),B.bl_desc=new M(B.bl_tree,le),B.bi_buf=0,B.bi_valid=0,re(B)},i._tr_stored_block=D,i._tr_flush_block=function(B,X,ae,ne){var G,pe,ie=0;0<B.level?(B.strm.data_type===2&&(B.strm.data_type=function(ge){var we,ke=4093624447;for(we=0;we<=31;we++,ke>>>=1)if(1&ke&&ge.dyn_ltree[2*we]!==0)return m;if(ge.dyn_ltree[18]!==0||ge.dyn_ltree[20]!==0||ge.dyn_ltree[26]!==0)return a;for(we=32;we<c;we++)if(ge.dyn_ltree[2*we]!==0)return a;return m}(B)),K(B,B.l_desc),K(B,B.d_desc),ie=function(ge){var we;for(k(ge,ge.dyn_ltree,ge.l_desc.max_code),k(ge,ge.dyn_dtree,ge.d_desc.max_code),K(ge,ge.bl_desc),we=d-1;3<=we&&ge.bl_tree[2*$[we]+1]===0;we--);return ge.opt_len+=3*(we+1)+5+5+4,we}(B),G=B.opt_len+3+7>>>3,(pe=B.static_len+3+7>>>3)<=G&&(G=pe)):G=pe=ae+5,ae+4<=G&&X!==-1?D(B,X,ae,ne):B.strategy===4||pe===G?(U(B,2+(ne?1:0),3),Y(B,j,R)):(U(B,4+(ne?1:0),3),function(ge,we,ke,Ee){var Pe;for(U(ge,we-257,5),U(ge,ke-1,5),U(ge,Ee-4,4),Pe=0;Pe<Ee;Pe++)U(ge,ge.bl_tree[2*$[Pe]+1],3);N(ge,ge.dyn_ltree,we-1),N(ge,ge.dyn_dtree,ke-1)}(B,B.l_desc.max_code+1,B.d_desc.max_code+1,ie+1),Y(B,B.dyn_ltree,B.dyn_dtree)),re(B),ne&&de(B)},i._tr_tally=function(B,X,ae){return B.pending_buf[B.d_buf+2*B.last_lit]=X>>>8&255,B.pending_buf[B.d_buf+2*B.last_lit+1]=255&X,B.pending_buf[B.l_buf+B.last_lit]=255&ae,B.last_lit++,X===0?B.dyn_ltree[2*ae]++:(B.matches++,X--,B.dyn_ltree[2*(E[ae]+c+1)]++,B.dyn_dtree[2*L(X)]++),B.last_lit===B.lit_bufsize-1},i._tr_align=function(B){U(B,2,3),P(B,_,j),function(X){X.bi_valid===16?(J(X,X.bi_buf),X.bi_buf=0,X.bi_valid=0):8<=X.bi_valid&&(X.pending_buf[X.pending++]=255&X.bi_buf,X.bi_buf>>=8,X.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(m,a){if(!m.setImmediate){var o,u,h,c,f=1,s={},d=!1,v=m.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(m);g=g&&g.setTimeout?g:m,o={}.toString.call(m.process)==="[object process]"?function(w){process.nextTick(function(){b(w)})}:function(){if(m.postMessage&&!m.importScripts){var w=!0,S=m.onmessage;return m.onmessage=function(){w=!1},m.postMessage("","*"),m.onmessage=S,w}}()?(c="setImmediate$"+Math.random()+"$",m.addEventListener?m.addEventListener("message",_,!1):m.attachEvent("onmessage",_),function(w){m.postMessage(c+w,"*")}):m.MessageChannel?((h=new MessageChannel).port1.onmessage=function(w){b(w.data)},function(w){h.port2.postMessage(w)}):v&&"onreadystatechange"in v.createElement("script")?(u=v.documentElement,function(w){var S=v.createElement("script");S.onreadystatechange=function(){b(w),S.onreadystatechange=null,u.removeChild(S),S=null},u.appendChild(S)}):function(w){setTimeout(b,0,w)},g.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var S=new Array(arguments.length-1),x=0;x<S.length;x++)S[x]=arguments[x+1];var T={callback:w,args:S};return s[f]=T,o(f),f++},g.clearImmediate=y}function y(w){delete s[w]}function b(w){if(d)setTimeout(b,0,w);else{var S=s[w];if(S){d=!0;try{(function(x){var T=x.callback,O=x.args;switch(O.length){case 0:T();break;case 1:T(O[0]);break;case 2:T(O[0],O[1]);break;case 3:T(O[0],O[1],O[2]);break;default:T.apply(a,O)}})(S)}finally{y(w),d=!1}}}}function _(w){w.source===m&&typeof w.data=="string"&&w.data.indexOf(c)===0&&b(+w.data.slice(c.length))}})(typeof self>"u"?l===void 0?this:l:self)}).call(this,typeof Bl<"u"?Bl:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Dw);var th=function(e,t){return th=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])},th(e,t)};function Xp(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");th(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function H7(e,t,n,r){function i(l){return l instanceof n?l:new n(function(m){m(l)})}return new(n||(n=Promise))(function(l,m){function a(h){try{u(r.next(h))}catch(c){m(c)}}function o(h){try{u(r.throw(h))}catch(c){m(c)}}function u(h){h.done?l(h.value):i(h.value).then(a,o)}u((r=r.apply(e,t||[])).next())})}function $w(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,i,l,m;return m={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function a(u){return function(h){return o([u,h])}}function o(u){if(r)throw new TypeError("Generator is already executing.");for(;m&&(m=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(l=u[0]&2?i.return:u[0]?i.throw||((l=i.return)&&l.call(i),0):i.next)&&!(l=l.call(i,u[1])).done)return l;switch(i=0,l&&(u=[u[0]&2,l.value]),u[0]){case 0:case 1:l=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(l=n.trys,!(l=l.length>0&&l[l.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!l||u[1]>l[0]&&u[1]<l[3])){n.label=u[1];break}if(u[0]===6&&n.label<l[1]){n.label=l[1],l=u;break}if(l&&n.label<l[2]){n.label=l[2],n.ops.push(u);break}l[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(h){u=[6,h],i=0}finally{r=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ks(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 Ju(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,l=[],m;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(a){m={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(m)throw m.error}}return l}function Qu(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 Qo(e){return this instanceof Qo?(this.v=e,this):new Qo(e)}function U7(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,l=[];return i={},m("next"),m("throw"),m("return"),i[Symbol.asyncIterator]=function(){return this},i;function m(f){r[f]&&(i[f]=function(s){return new Promise(function(d,v){l.push([f,s,d,v])>1||a(f,s)})})}function a(f,s){try{o(r[f](s))}catch(d){c(l[0][3],d)}}function o(f){f.value instanceof Qo?Promise.resolve(f.value.v).then(u,h):c(l[0][2],f)}function u(f){a("next",f)}function h(f){a("throw",f)}function c(f,s){f(s),l.shift(),l.length&&a(l[0][0],l[0][1])}}function W7(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 Ks=="function"?Ks(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(m){return new Promise(function(a,o){m=e[l](m),i(a,o,m.done,m.value)})}}function i(l,m,a,o){Promise.resolve(o).then(function(u){l({value:u,done:a})},m)}}function Kt(e){return typeof e=="function"}function Y7(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 Sf=Y7(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 b0(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var Kp=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 m=this._parentage;if(m)if(this._parentage=null,Array.isArray(m))try{for(var a=Ks(m),o=a.next();!o.done;o=a.next()){var u=o.value;u.remove(this)}}catch(v){t={error:v}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else m.remove(this);var h=this.initialTeardown;if(Kt(h))try{h()}catch(v){l=v instanceof Sf?v.errors:[v]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=Ks(c),s=f.next();!s.done;s=f.next()){var d=s.value;try{_0(d)}catch(v){l=l!=null?l:[],v instanceof Sf?l=Qu(Qu([],Ju(l)),Ju(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 Sf(l)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)_0(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)&&b0(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&b0(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();Kp.EMPTY;function Bw(e){return e instanceof Kp||e&&"closed"in e&&Kt(e.remove)&&Kt(e.add)&&Kt(e.unsubscribe)}function _0(e){Kt(e)?e():e.unsubscribe()}var Dc={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},nh={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=nh.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,Qu([e,t],Ju(n))):setTimeout.apply(void 0,Qu([e,t],Ju(n)))},clearTimeout:function(e){var t=nh.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Fw(e){nh.setTimeout(function(){var t=Dc.onUnhandledError;if(t)t(e);else throw e})}function w0(){}var Xl=null;function X7(e){if(Dc.useDeprecatedSynchronousErrorHandling){var t=!Xl;if(t&&(Xl={errorThrown:!1,error:null}),e(),t){var n=Xl,r=n.errorThrown,i=n.error;if(Xl=null,r)throw i}}else e()}var Gp=function(e){Xp(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,Bw(n)&&n.add(r)):r.destination=Z7,r}return t.create=function(n,r,i){return new rh(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}(Kp),K7=Function.prototype.bind;function xf(e,t){return K7.call(e,t)}var G7=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){Kl(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Kl(r)}else Kl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Kl(n)}},e}(),rh=function(e){Xp(t,e);function t(n,r,i){var l=e.call(this)||this,m;if(Kt(n)||!n)m={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var a;l&&Dc.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return l.unsubscribe()},m={next:n.next&&xf(n.next,a),error:n.error&&xf(n.error,a),complete:n.complete&&xf(n.complete,a)}):m=n}return l.destination=new G7(m),l}return t}(Gp);function Kl(e){Fw(e)}function q7(e){throw e}var Z7={closed:!0,next:w0,error:q7,complete:w0},qp=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function J7(e){return e}function Q7(e){return e.length===0?J7:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var ti=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=tH(t)?t:new rh(t,n,r);return X7(function(){var m=i,a=m.operator,o=m.source;l.add(a?a.call(l,o):o?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=C0(n),new n(function(i,l){var m=new rh({next:function(a){try{t(a)}catch(o){l(o),m.unsubscribe()}},error:l,complete:i});r.subscribe(m)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[qp]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Q7(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=C0(t),new t(function(r,i){var l;n.subscribe(function(m){return l=m},function(m){return i(m)},function(){return r(l)})})},e.create=function(t){return new e(t)},e}();function C0(e){var t;return(t=e!=null?e:Dc.Promise)!==null&&t!==void 0?t:Promise}function eH(e){return e&&Kt(e.next)&&Kt(e.error)&&Kt(e.complete)}function tH(e){return e&&e instanceof Gp||eH(e)&&Bw(e)}function nH(e){return Kt(e==null?void 0:e.lift)}function zw(e){return function(t){if(nH(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 rH(e,t,n,r,i){return new iH(e,t,n,r,i)}var iH=function(e){Xp(t,e);function t(n,r,i,l,m,a){var o=e.call(this,n)||this;return o.onFinalize=m,o.shouldUnsubscribe=a,o._next=r?function(u){try{r(u)}catch(h){n.error(h)}}:e.prototype._next,o._error=l?function(u){try{l(u)}catch(h){n.error(h)}finally{this.unsubscribe()}}:e.prototype._error,o._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,o}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}(Gp),Nw=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function jw(e){return Kt(e==null?void 0:e.then)}function Vw(e){return Kt(e[qp])}function Hw(e){return Symbol.asyncIterator&&Kt(e==null?void 0:e[Symbol.asyncIterator])}function Uw(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 oH(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ww=oH();function Yw(e){return Kt(e==null?void 0:e[Ww])}function Xw(e){return U7(this,arguments,function(){var n,r,i,l;return $w(this,function(m){switch(m.label){case 0:n=e.getReader(),m.label=1;case 1:m.trys.push([1,,9,10]),m.label=2;case 2:return[4,Qo(n.read())];case 3:return r=m.sent(),i=r.value,l=r.done,l?[4,Qo(void 0)]:[3,5];case 4:return[2,m.sent()];case 5:return[4,Qo(i)];case 6:return[4,m.sent()];case 7:return m.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function Kw(e){return Kt(e==null?void 0:e.getReader)}function Zp(e){if(e instanceof ti)return e;if(e!=null){if(Vw(e))return aH(e);if(Nw(e))return sH(e);if(jw(e))return lH(e);if(Hw(e))return Gw(e);if(Yw(e))return uH(e);if(Kw(e))return cH(e)}throw Uw(e)}function aH(e){return new ti(function(t){var n=e[qp]();if(Kt(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function sH(e){return new ti(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function lH(e){return new ti(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,Fw)})}function uH(e){return new ti(function(t){var n,r;try{for(var i=Ks(e),l=i.next();!l.done;l=i.next()){var m=l.value;if(t.next(m),t.closed)return}}catch(a){n={error:a}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function Gw(e){return new ti(function(t){fH(e,t).catch(function(n){return t.error(n)})})}function cH(e){return Gw(Xw(e))}function fH(e,t){var n,r,i,l;return H7(this,void 0,void 0,function(){var m,a;return $w(this,function(o){switch(o.label){case 0:o.trys.push([0,5,6,11]),n=W7(e),o.label=1;case 1:return[4,n.next()];case 2:if(r=o.sent(),!!r.done)return[3,4];if(m=r.value,t.next(m),t.closed)return[2];o.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=o.sent(),i={error:a},[3,11];case 6:return o.trys.push([6,,9,10]),r&&!r.done&&(l=n.return)?[4,l.call(n)]:[3,8];case 7:o.sent(),o.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 uo(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 qw(e,t){return t===void 0&&(t=0),zw(function(n,r){n.subscribe(rH(r,function(i){return uo(r,e,function(){return r.next(i)},t)},function(){return uo(r,e,function(){return r.complete()},t)},function(i){return uo(r,e,function(){return r.error(i)},t)}))})}function Zw(e,t){return t===void 0&&(t=0),zw(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function dH(e,t){return Zp(e).pipe(Zw(t),qw(t))}function hH(e,t){return Zp(e).pipe(Zw(t),qw(t))}function pH(e,t){return new ti(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function gH(e,t){return new ti(function(n){var r;return uo(n,t,function(){r=e[Ww](),uo(n,t,function(){var i,l,m;try{i=r.next(),l=i.value,m=i.done}catch(a){n.error(a);return}m?n.complete():n.next(l)},0,!0)}),function(){return Kt(r==null?void 0:r.return)&&r.return()}})}function Jw(e,t){if(!e)throw new Error("Iterable cannot be null");return new ti(function(n){uo(n,t,function(){var r=e[Symbol.asyncIterator]();uo(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function vH(e,t){return Jw(Xw(e),t)}function mH(e,t){if(e!=null){if(Vw(e))return dH(e,t);if(Nw(e))return pH(e,t);if(jw(e))return hH(e,t);if(Hw(e))return Jw(e,t);if(Yw(e))return gH(e,t);if(Kw(e))return vH(e,t)}throw Uw(e)}function yH(e,t){return t?mH(e,t):Zp(e)}var S0;const bH=typeof window<"u";bH&&((S0=window==null?void 0:window.navigator)==null?void 0:S0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function _H(e){return wy()?(wh(e),!0):!1}function wH(e,t){const n=se(t==null?void 0:t.initialValue),r=e.subscribe({next:i=>n.value=i,error:t==null?void 0:t.onError});return _H(()=>{r.unsubscribe()}),n}function CH(e,t,n){const r=se(n==null?void 0:n.initialValue),i=Yp(e);let l=i.subscribe({next:m=>r.value=m,error:n==null?void 0:n.onError});return xe(t,()=>{l.unsubscribe(),l=i.subscribe({next:m=>r.value=m,error:n==null?void 0:n.onError})}),Zr(()=>{l.unsubscribe()}),r}const mo=ya("outputs",()=>{const e=wH(yH(Yp(()=>Mt.outputs.count())),{initialValue:0}),t=se(1),n=Rn("sortOutputsBy","Oldest"),r=Rn("currentImagesLayout","dynamic"),i=se("all"),l=CH(()=>{const s=Jt();let d;return i.value==="all"?d=Mt.outputs:i.value==="favourited"?d=Mt.outputs.where("starred").equals(1):i.value==="unfavourited"?d=Mt.outputs.where("starred").equals(0):d=Mt.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()},[yn(Jt(),"pageless"),yn(Jt(),"pageSize"),t,n,i],{initialValue:[]});async function m(){if(navigator.storage&&navigator.storage.persist){const s=await navigator.storage.persist();console.log(`Persisted storage granted: ${s}`)}}async function a(){const s=localStorage.getItem("outputs");!s||(o(JSON.parse(s)),localStorage.removeItem("outputs"))}m(),a();async function o(s){const d=s.map(y=>{const{id:b,..._}=y;return _}),v=JSON.parse(JSON.stringify(d));console.log("Inserting outputs into database",v);const g=await Mt.outputs.bulkAdd(v,void 0,{allKeys:!0});return Mt.outputs.bulkGet(g)}async function u(s){const d=Dt();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 Dw.exports.loadAsync(s.raw);let g=0,y=0;Pi({message:"Loading images...",type:"info"});const b=[];for(const[w,S]of Object.entries(v)){const x=w.split("."),T=x.slice(-1).join("."),O=x.slice(0,-1).join(".");T==="webp"&&b.push(new Promise(A=>{S.async("base64").then(async $=>{if(!v[O+".json"])return y++,A(null);const j=JSON.parse(await v[O+".json"].async("text"));g++,A({id:-1,image:`data:image/webp;base64,${$}`,...j,rated:j.rated?1:0,starred:j.starred?1:0})}).catch($=>(d.raiseError(`Error while importing image: ${$}`,!1),y++,A(null)))}))}const _=await Promise.all(b);o(_.filter(w=>w!==null)),Pi({message:`Successfully imported ${g}/${g+y} images!`,type:"success"})}async function h(s){const d=await Mt.outputs.get(s);return Mt.outputs.update(s,{starred:d!=null&&d.starred?0:1})}function c(s){return Mt.outputs.delete(s)}async function f(s){const d=Dt();return d.selected=[],d.multiSelect=!1,s===await Mt.outputs.toCollection().primaryKeys()?Mt.outputs.clear():Mt.outputs.bulkDelete(s)}return{outputsLength:e,sortBy:n,filterBy:i,currentPage:t,currentOutputs:l,currentLayout:r,deleteOutput:c,deleteMultipleOutputs:f,toggleStarred:h,pushOutputs:o,importFromZip:u}}),Dt=ya("ui",()=>{const e=se(!1),t=se([]),n=se(["1"]),r=se(-1),i=se(!1),l=se(!1);function m(f,s){console.error(f),Pi({type:"error",message:f,duration:s?0:void 0,showClose:s})}function a(f,s){console.warn(f),Pi({type:"warning",message:f,duration:s?0:void 0,showClose:s})}function o(){e.value=!e.value,!e.value&&(t.value=[])}function u(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 h(){const f=mo(),s=Jt(),d=f.currentOutputs.findIndex(g=>g.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 g=f.sortBy==="Newest"?await Mt.outputs.where(":id").below(r.value).last():await Mt.outputs.where(":id").above(r.value).first();f.currentPage++,r.value=(g==null?void 0:g.id)||r.value;return}}async function c(){const f=mo(),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 Mt.outputs.where(":id").below(r.value).last():await Mt.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:m,raiseWarning:a,toggleMultiSelect:o,toggleSelection:u,openModalToRight:h,openModalToLeft:c}}),Wt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},SH={},xH={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},TH=oe("circle",{cy:"12",cx:"12",r:"12",stroke:"currentColor"},null,-1),kH=[TH];function EH(e,t){return V(),ce("svg",xH,kH)}const OH=Wt(SH,[["render",EH]]),ja=Te({__name:"MainMenuItem",props:{index:null,isMobile:{type:Boolean}},setup(e){return(t,n)=>(V(),_e(C(Tp),{index:e.index},{default:he(()=>[Se(t.$slots,"icon"),e.isMobile?be("",!0):Se(t.$slots,"title",{key:0})]),_:3},8,["index"]))}});const AH="modulepreload",PH=function(e,t){return new URL(e,t).href},x0={},Tf=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=PH(l,r),l in x0)return;x0[l]=!0;const m=l.endsWith(".css"),a=m?'[rel="stylesheet"]':"";if(!!r)for(let h=i.length-1;h>=0;h--){const c=i[h];if(c.href===l&&(!m||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${a}`))return;const u=document.createElement("link");if(u.rel=m?"stylesheet":AH,m||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),m)return new Promise((h,c)=>{u.addEventListener("load",h),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t())};const IH={},MH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},LH=oe("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),RH=oe("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),DH=oe("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),$H=[LH,RH,DH];function BH(e,t){return V(),ce("svg",MH,$H)}const FH=Wt(IH,[["render",BH]]);function Qw(){const e=se("..."),t=setInterval(()=>{e.value=e.value.length>=3?"":".".repeat(e.value.length+1)},1e3);return Zr(()=>{clearInterval(t)}),{ellipsis:e}}const e2=e=>(Kr("data-v-dc223229"),e=e(),Gr(),e),zH={style:{"text-align":"center"}},NH=e2(()=>oe("br",null,null,-1)),jH={class:"gen-text"},VH={key:0},HH={key:1},UH=e2(()=>oe("br",null,null,-1)),WH=Te({__name:"ImageProgress",props:{generated:null,total:null,elapsed:null},emits:["showGenerated"],setup(e){const{ellipsis:t}=Qw();return(n,r)=>{var i,l;return V(),ce("div",zH,[ue(C(q1),{type:"circle",percentage:100*((i=e.generated)!=null?i:0)/((l=e.total)!=null?l:1),width:200},{default:he(()=>[oe("span",null,Ae(e.generated)+" / "+Ae(e.total),1),NH]),_:1},8,["percentage"]),oe("div",jH,[e.generated===e.total?(V(),ce("span",VH,"All done!")):(V(),ce("span",HH,[Ne("Generating"+Ae(C(t))+Ae("\xA0".repeat(3-C(t).length)),1),UH,oe("sup",null,Ae(e.elapsed),1)]))]),e.generated?(V(),ce("div",{key:0,onClick:r[0]||(r[0]=m=>n.$emit("showGenerated")),class:"view-images"},[oe("span",null,"View image"+Ae(e.total===1?"":"s"),1),ue(C(Re),null,{default:he(()=>[ue(C(cO))]),_:1})])):be("",!0)])}}});const YH=Wt(WH,[["__scopeId","data-v-dc223229"]]);const XH={style:{width:"200px"}},KH=Te({__name:"InfoTooltip",props:{info:null,size:null,trigger:null},setup(e){return(t,n)=>(V(),_e(C(Sr),{trigger:e.trigger},{content:he(()=>[oe("div",XH,[Se(t.$slots,"default",{},()=>[Ne(Ae(e.info),1)])])]),default:he(()=>[ue(C(Re),{size:e.size},{default:he(()=>[ue(C(Hh))]),_:1},8,["size"])]),_:3},8,["trigger"]))}}),GH={key:0,class:"align-vertical",style:{"margin-left":"5px"}},qH=Te({__name:"FormLabel",props:{label:null,info:null,labelStyle:null},setup(e){return(t,n)=>(V(),ce("span",{class:"align-vertical",style:Fe(e.labelStyle||"height: 100%;")},[Se(t.$slots,"default",{},()=>[Ne(Ae(e.label),1)],!0),e.info?(V(),ce("div",GH,[ue(KH,{info:e.info,size:15},null,8,["info"])])):be("",!0)],4))}});const bl=Wt(qH,[["__scopeId","data-v-ec7e7ec1"]]),ZH={key:0,style:{width:"100%"}},JH={key:1,style:{display:"flex","flex-direction":"column",gap:"8px",width:"100%"}},lr=Te({__name:"FormSlider",props:{label:null,modelValue:null,prop:null,min:null,max:null,step:null,info:null,disabled:{type:Boolean},labelStyle:null,multiple:{type:Boolean}},emits:["update:modelValue","change","onAdd","onRemove"],setup(e,{emit:t}){const n=e,i=sp(ap).smallerOrEqual("md");function l(h,c){var s;if(n.multiple&&Array.isArray(n.modelValue)){c=c||0;const d=(s=Array.isArray(h)?h[0]:h)!=null?s:n.min;let v=n.modelValue;v[c]=d,t("update:modelValue",v),t("change",v);return}const f=h!=null?h:n.min;t("update:modelValue",f),t("change",f)}function m(){if(!n.multiple||!Array.isArray(n.modelValue))return;const h=n.min;t("update:modelValue",[...n.modelValue,h]),t("onAdd",h)}function a(){if(!n.multiple||!Array.isArray(n.modelValue))return;const h=n.modelValue,c=h.pop();t("update:modelValue",h),t("onRemove",c)}const o=ee(()=>n.multiple&&Array.isArray(n.modelValue)?Array.from(Array(n.modelValue.length).keys()):[]),u=ee(()=>Array.isArray(n.modelValue)?n.modelValue[0]:n.modelValue);return(h,c)=>(V(),_e(C(_i),{prop:e.prop},{label:he(()=>[ue(bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Se(h.$slots,"label",{},()=>[Ne(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[!e.multiple||!Array.isArray(e.modelValue)?(V(),ce("div",ZH,[C(i)?be("",!0):(V(),_e(C(Jm),{key:0,"model-value":C(u),min:e.min,max:e.max,step:e.step,onInput:l,disabled:e.disabled,"show-input":""},null,8,["model-value","min","max","step","disabled"])),C(i)?(V(),_e(C(Pd),{key:1,"model-value":C(u),min:e.min,max:e.max,step:e.step,onChange:l,disabled:e.disabled},null,8,["model-value","min","max","step","disabled"])):be("",!0)])):(V(),ce("div",JH,[(V(!0),ce(ze,null,Rt(C(o),f=>(V(),ce("div",{key:f},[C(i)?be("",!0):(V(),_e(C(Jm),{key:0,"model-value":e.modelValue[f],min:e.min,max:e.max,step:e.step,onInput:s=>l(s,f),disabled:e.disabled,"show-input":""},null,8,["model-value","min","max","step","onInput","disabled"])),C(i)?(V(),_e(C(Pd),{key:1,"model-value":e.modelValue[f],min:e.min,max:e.max,step:e.step,onChange:s=>l(s,f),disabled:e.disabled},null,8,["model-value","min","max","step","onChange","disabled"])):be("",!0)]))),128)),oe("div",null,[ue(C(dt),{icon:C(Wh),onClick:c[0]||(c[0]=()=>m())},null,8,["icon"]),ue(C(dt),{icon:C(Xb),onClick:c[1]||(c[1]=()=>a()),disabled:C(o).length<=1},null,8,["icon","disabled"])])])),Se(h.$slots,"inline")]),_:3},8,["prop"]))}});const ih=Te({__name:"FormSelect",props:{label:null,modelValue:null,prop:null,options:null,multiple:{type:Boolean},info:null,filterable:{type:Boolean},labelStyle:null,placement:null},emits:["update:modelValue","change"],setup(e,{emit:t}){function n(r){t("update:modelValue",r),t("change",r)}return(r,i)=>(V(),_e(C(_i),{prop:e.prop},{label:he(()=>[ue(bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Se(r.$slots,"label",{},()=>[Ne(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ue(C(K1),{"model-value":e.modelValue,filterable:e.filterable,multiple:e.multiple,placement:e.placement,onChange:n,placeholder:"Select"},{default:he(()=>[(V(!0),ce(ze,null,Rt(e.options,l=>(V(),_e(C(G1),{key:l,label:l.label!==void 0?l.label:l,value:l.value!==void 0?l.value:l,disabled:l.disabled!==void 0?l.disabled:!1},null,8,["label","value","disabled"]))),128))]),_:1},8,["model-value","filterable","multiple","placement"]),Se(r.$slots,"inline")]),_:3},8,["prop"]))}}),oh=Te({__name:"FormInput",props:{label:null,modelValue:null,prop:null,type:null,resize:null,placeholder:null,autosize:{type:[Boolean,Object]},info:null,labelStyle:null,change:null},emits:["update:modelValue","focus","blur"],setup(e,{emit:t}){const n=e;function r(i){t("update:modelValue",i),n.change&&n.change(i)}return(i,l)=>(V(),_e(C(_i),{prop:e.prop},{label:he(()=>[ue(bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Se(i.$slots,"label",{},()=>[Ne(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ue(C(Ao),{"model-value":e.modelValue,autosize:e.autosize,resize:e.resize,onInput:r,type:e.type,placeholder:e.placeholder,onFocus:l[0]||(l[0]=m=>i.$emit("focus")),onBlur:l[1]||(l[1]=m=>i.$emit("blur"))},{append:he(()=>[Se(i.$slots,"append")]),_:3},8,["model-value","autosize","resize","type","placeholder"]),Se(i.$slots,"inline")]),_:3},8,["prop"]))}});const kf=Te({__name:"FormSwitch",props:{label:null,modelValue:{type:Boolean},prop:null,disabled:{type:Boolean},disabledText:null,defaultValue:{type:Boolean},info:null,labelStyle:null,change:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;function r(i){const l=!!i;t("update:modelValue",l),n.change&&n.change(l)}return Wy(()=>{n.disabled&&n.defaultValue!==void 0&&t("update:modelValue",n.defaultValue)}),(i,l)=>(V(),_e(C(_i),{prop:e.prop},{label:he(()=>[ue(bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Se(i.$slots,"label",{},()=>[Ne(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[e.disabledText&&e.disabled?(V(),_e(C(Sr),{key:0,content:e.disabledText,placement:"top",enterable:!1,"hide-after":100},{default:he(()=>[ue(C(Qm),{disabled:e.disabled,"model-value":e.modelValue,onChange:r},null,8,["disabled","model-value"])]),_:1},8,["content"])):(V(),_e(C(Qm),{key:1,disabled:e.disabled,"model-value":e.modelValue,onChange:r},null,8,["disabled","model-value"])),Se(i.$slots,"inline")]),_:3},8,["prop"]))}}),QH=e=>(Kr("data-v-cf07eac2"),e=e(),Gr(),e),eU=QH(()=>oe("div",null,"Prompt",-1)),tU=Te({__name:"FormPromptInput",setup(e){const t=kn();return(n,r)=>(V(),_e(oh,{prop:"prompt",modelValue:C(t).prompt,"onUpdate:modelValue":r[0]||(r[0]=i=>C(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:he(()=>[eU]),_:1},8,["modelValue"]))}});const nU=Wt(tU,[["__scopeId","data-v-cf07eac2"]]);const rU=e=>(Kr("data-v-274da5ab"),e=e(),Gr(),e),iU={style:{position:"relative",height:"100%",width:"100%"}},oU=rU(()=>oe("span",null,"Back to generation status",-1)),aU={class:"carousel-container"},sU=["src"],lU={class:"carousel-footer"},uU={style:{display:"flex","justify-content":"center"}},cU={style:{"white-space":"nowrap"}},fU=Te({__name:"GeneratedCarousel",setup(e){const t=kn(),n=Dt(),r=Jt(),i=se(0);function l(a){i.value=a,console.log(t.outputs[i.value])}function m(a){t.outputs.splice(t.outputs.findIndex(o=>o.output.id===a),1)}return(a,o)=>(V(),ce("div",iU,[C(t).generating?(V(),ce("div",{key:0,class:"back-to-generation",onClick:o[0]||(o[0]=u=>C(n).showGeneratedImages=!1)},[ue(C(Re),null,{default:he(()=>[ue(C(Vb))]),_:1}),oU])):be("",!0),oe("div",aU,[ue(C(VD),{class:"carousel",autoplay:C(r).autoCarousel==="Enabled",trigger:"click","indicator-position":"outside",onChange:l},{default:he(()=>[(V(!0),ce(ze,null,Rt(C(t).outputs,(u,h)=>(V(),_e(C(HD),{key:h,style:{display:"flex","justify-content":"center"}},{default:he(()=>[u.type==="video"?(V(),ce("video",{key:0,src:u.output.image,controls:"",style:{"max-width":"100%",height:"100%"}},null,8,sU)):be("",!0),u.type==="image"?(V(),_e(C(Sp),{key:1,src:u.output.image,style:{width:"100%",height:"100%"},fit:"scale-down",onClick:()=>C(n).activeModal=u.output.id},null,8,["src","onClick"])):be("",!0)]),_:2},1024))),128))]),_:1},8,["autoplay"])]),oe("div",lU,[ue(C(CB)),oe("div",uU,[ue(C(i1),null,{default:he(()=>[oe("div",cU,[ue(N2,{imageData:C(t).outputs[i.value].output,"on-delete":m},null,8,["imageData"])])]),_:1})])])]))}});const dU=Wt(fU,[["__scopeId","data-v-274da5ab"]]);var Xn={};const hU={},pU=Object.freeze(Object.defineProperty({__proto__:null,default:hU},Symbol.toStringTag,{value:"Module"})),Ef=CD(pU);(function(e){/*! Fabric.js Copyright 2008-2015, Printio (Juriy Zaytsev, Maxim Chernyak) */var t=t||{version:"5.2.4"};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=Ef,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=Ef.implForWrapper,t.nodeCanvas=Ef.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 a(s,d){if(!!this.__eventListeners[s]){var v=this.__eventListeners[s];d?v[v.indexOf(d)]=!1:t.util.array.fill(v,!1)}}function o(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 u(s,d){var v=function(){d.apply(this,arguments),this.off(s,v)}.bind(this);this.on(s,v)}function h(s,d){if(arguments.length===1)for(var v in s)u.call(this,v,s[v]);else u.call(this,s,d);return this}function c(s,d){if(!this.__eventListeners)return this;if(arguments.length===0)for(s in this.__eventListeners)a.call(this,s);else if(arguments.length===1&&typeof arguments[0]=="object")for(var v in s)a.call(this,v,s[v]);else a.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 g=0,y=v.length;g<y;g++)v[g]&&v[g].call(this,d||{});return this.__eventListeners[s]=v.filter(function(b){return b!==!1}),this}t.Observable={fire:f,on:o,once:h,off:c}}(),t.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var a=0,o=arguments.length;a<o;a++)this._onObjectAdded(arguments[a]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(a,o,u){var h=this._objects;return u?h[o]=a:h.splice(o,0,a),this._onObjectAdded&&this._onObjectAdded(a),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var a=this._objects,o,u=!1,h=0,c=arguments.length;h<c;h++)o=a.indexOf(arguments[h]),o!==-1&&(u=!0,a.splice(o,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[h]));return this.renderOnAddRemove&&u&&this.requestRenderAll(),this},forEachObject:function(a,o){for(var u=this.getObjects(),h=0,c=u.length;h<c;h++)a.call(o,u[h],h,u);return this},getObjects:function(a){return typeof a>"u"?this._objects.concat():this._objects.filter(function(o){return o.type===a})},item:function(a){return this._objects[a]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(a,o){return this._objects.indexOf(a)>-1?!0:o?this._objects.some(function(u){return typeof u.contains=="function"&&u.contains(a,!0)}):!1},complexity:function(){return this._objects.reduce(function(a,o){return a+=o.complexity?o.complexity():0,a},0)}},t.CommonMethods={_setOptions:function(a){for(var o in a)this.set(o,a[o])},_initGradient:function(a,o){a&&a.colorStops&&!(a instanceof t.Gradient)&&this.set(o,new t.Gradient(a))},_initPattern:function(a,o,u){a&&a.source&&!(a instanceof t.Pattern)?this.set(o,new t.Pattern(a,u)):u&&u()},_setObject:function(a){for(var o in a)this._set(o,a[o])},set:function(a,o){return typeof a=="object"?this._setObject(a):this._set(a,o),this},_set:function(a,o){this[a]=o},toggle:function(a){var o=this.get(a);return typeof o=="boolean"&&this.set(a,!o),this},get:function(a){return this[a]}},function(a){var o=Math.sqrt,u=Math.atan2,h=Math.pow,c=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*c},radiansToDegrees:function(s){return s/c},rotatePoint:function(s,d,v){var g=new t.Point(s.x-d.x,s.y-d.y),y=t.util.rotateVector(g,v);return new t.Point(y.x,y.y).addEquals(d)},rotateVector:function(s,d){var v=t.util.sin(d),g=t.util.cos(d),y=s.x*g-s.y*v,b=s.x*v+s.y*g;return{x:y,y:b}},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 g=t.util.createVector(s,d),y=t.util.createVector(s,v),b=t.util.calcAngleBetweenVectors(g,y),_=t.util.calcAngleBetweenVectors(t.util.rotateVector(g,b),y),w=b*(_===0?1:-1)/2;return{vector:t.util.getHatVector(t.util.rotateVector(g,w)),angle:b}},projectStrokeOnPoints:function(s,d,v){var g=[],y=d.strokeWidth/2,b=d.strokeUniform?new t.Point(1/d.scaleX,1/d.scaleY):new t.Point(1,1),_=function(w){var S=y/Math.hypot(w.x,w.y);return new t.Point(w.x*S*b.x,w.y*S*b.y)};return s.length<=1||s.forEach(function(w,S){var x=new t.Point(w.x,w.y),T,O;S===0?(O=s[S+1],T=v?_(t.util.createVector(O,x)).addEquals(x):s[s.length-1]):S===s.length-1?(T=s[S-1],O=v?_(t.util.createVector(T,x)).addEquals(x):s[0]):(T=s[S-1],O=s[S+1]);var A=t.util.getBisector(x,T,O),$=A.vector,j=A.angle,R,F;if(d.strokeLineJoin==="miter"&&(R=-y/Math.sin(j/2),F=new t.Point($.x*R*b.x,$.y*R*b.y),Math.hypot(F.x,F.y)/y<=d.strokeMiterLimit)){g.push(x.add(F)),g.push(x.subtract(F));return}R=-y*Math.SQRT2,F=new t.Point($.x*R*b.x,$.y*R*b.y),g.push(x.add(F)),g.push(x.subtract(F))}),g},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 g=[s[0].x,s[1].x,s[2].x,s[3].x],y=t.util.array.min(g),b=t.util.array.max(g),_=b-y,w=[s[0].y,s[1].y,s[2].y,s[3].y],S=t.util.array.min(w),x=t.util.array.max(w),T=x-S;return{left:y,top:S,width:_,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]],g=t.util.transformPoint({x:s[4],y:s[5]},v,!0);return v[4]=-g.x,v[5]=-g.y,v},toFixed:function(s,d){return parseFloat(Number(s).toFixed(d))},parseUnit:function(s,d){var v=/\D{0,2}$/.exec(s),g=parseFloat(s);switch(d||(d=t.Text.DEFAULT_SVG_FONT_SIZE),v[0]){case"mm":return g*t.DPI/25.4;case"cm":return g*t.DPI/2.54;case"in":return g*t.DPI;case"pt":return g*t.DPI/72;case"pc":return g*t.DPI/72*12;case"em":return g*d;default:return g}},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,g,y=a||t.window;for(g=0;g<v;++g)y=y[d[g]];return y},loadImage:function(s,d,v,g){if(!s){d&&d.call(v,s);return}var y=t.util.createImage(),b=function(){d&&d.call(v,y,!1),y=y.onload=y.onerror=null};y.onload=b,y.onerror=function(){t.log("Error loading "+y.src),d&&d.call(v,null,!0),y=y.onload=y.onerror=null},s.indexOf("data")!==0&&g!==void 0&&g!==null&&(y.crossOrigin=g),s.substring(0,14)==="data:image/svg"&&(y.onload=null,t.util.loadImageInDom(y,b)),y.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,g){s=s||[];var y=[],b=0,_=s.length;function w(){++b===_&&d&&d(y.filter(function(S){return S}))}if(!_){d&&d(y);return}s.forEach(function(S,x){if(!S||!S.type){w();return}var T=t.util.getKlass(S.type,v);T.fromObject(S,function(O,A){A||(y[x]=O),g&&g(S,O,A),w()})})},enlivenObjectEnlivables:function(s,d,v){var g=t.Object.ENLIVEN_PROPS.filter(function(y){return!!s[y]});t.util.enlivenObjects(g.map(function(y){return s[y]}),function(y){var b={};g.forEach(function(_,w){b[_]=y[w],d&&(d[_]=y[w])}),v&&v(b)})},enlivenPatterns:function(s,d){s=s||[];function v(){++y===b&&d&&d(g)}var g=[],y=0,b=s.length;if(!b){d&&d(g);return}s.forEach(function(_,w){_&&_.source?new t.Pattern(_,function(S){g[w]=S,v()}):(g[w]=_,v())})},groupSVGElements:function(s,d,v){var g;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)),g=new t.Group(s,d),typeof v<"u"&&(g.sourcePath=v),g)},populateWithProperties:function(s,d,v){if(v&&Array.isArray(v))for(var g=0,y=v.length;g<y;g++)v[g]in s&&(d[v[g]]=s[v[g]])},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=u(s[1],s[0]),v=h(s[0],2)+h(s[1],2),g=o(v),y=(s[0]*s[3]-s[2]*s[1])/g,b=u(s[0]*s[2]+s[1]*s[3],v);return{angle:d/c,scaleX:g,scaleY:y,skewX:b/c,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),g=t.util.sin(d);return[v,g,-g,v,0,0]},calcDimensionsMatrix:function(s){var d=typeof s.scaleX>"u"?1:s.scaleX,v=typeof s.scaleY>"u"?1:s.scaleY,g=[s.flipX?-d:d,0,0,s.flipY?-v:v,0,0],y=t.util.multiplyTransformMatrices,b=t.util.degreesToRadians;return s.skewX&&(g=y(g,[1,0,Math.tan(b(s.skewX)),1],!0)),s.skewY&&(g=y(g,[1,Math.tan(b(s.skewY)),0,1],!0)),g},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,g){g>0&&(d>g?d-=g:d=0,v>g?v-=g:v=0);var y=!0,b,_,w=s.getImageData(d,v,g*2||1,g*2||1),S=w.data.length;for(b=3;b<S&&(_=w.data[b],y=_<=0,y!==!1);b+=4);return w=null,y},parsePreserveAspectRatioAttribute:function(s){var d="meet",v="Mid",g="Mid",y=s.split(" "),b;return y&&y.length&&(d=y.pop(),d!=="meet"&&d!=="slice"?(b=d,d="meet"):y.length&&(b=y.pop())),v=b!=="none"?b.slice(1,4):"none",g=b!=="none"?b.slice(5,8):"none",{meetOrSlice:d,alignX:v,alignY:g}},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),g=Math.floor(d/v);return{x:Math.floor(v),y:g}},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),g=t.util.multiplyTransformMatrices(v,s.calcOwnMatrix());t.util.applyTransformToObject(s,g)},addTransformToObject:function(s,d){t.util.applyTransformToObject(s,t.util.multiplyTransformMatrices(d,s.calcOwnMatrix()))},applyTransformToObject:function(s,d){var v=t.util.qrDecompose(d),g=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(g,"center","center")},sizeAfterTransform:function(s,d,v){var g=s/2,y=d/2,b=[{x:-g,y:-y},{x:g,y:-y},{x:-g,y},{x:g,y}],_=t.util.calcDimensionsMatrix(v),w=t.util.makeBoundingBoxFromPoints(b,_);return{x:w.width,y:w.height}},mergeClipPaths:function(s,d){var v=s,g=d;v.inverted&&!g.inverted&&(v=d,g=s),t.util.applyTransformToObject(g,t.util.multiplyTransformMatrices(t.util.invertTransform(v.calcTransformMatrix()),g.calcTransformMatrix()));var y=v.inverted&&g.inverted;return y&&(v.inverted=g.inverted=!1),new t.Group([v],{clipPath:g,inverted:y})},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.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),g=d.split(`
|
||
`),y=-1,b={},_=[],w=0;w<g.length;w++){if(!v[w]){y+=g[w].length;continue}for(var S=0;S<g[w].length;S++){y++;var x=v[w][S];if(x){var T=t.util.hasStyleChanged(b,x,!0);T?_.push({start:y,end:y+1,style:x}):_[_.length-1].end++}b=x||{}}}return _},stylesFromArray:function(s,d){if(!Array.isArray(s))return s;for(var v=d.split(`
|
||
`),g=-1,y=0,b={},_=0;_<v.length;_++)for(var w=0;w<v[_].length;w++)g++,s[y]&&s[y].start<=g&&g<s[y].end&&(b[_]=b[_]||{},b[_][w]=Object.assign({},s[y].style),g===s[y].end-1&&y++);return b}}}(e),function(){var a=Array.prototype.join,o={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},u={m:"l",M:"L"};function h(I,z,M,L,J,U,P,q,Z,re,de){var ve=t.util.cos(I),me=t.util.sin(I),Y=t.util.cos(z),K=t.util.sin(z),k=M*J*Y-L*U*K+P,N=L*J*Y+M*U*K+q,H=re+Z*(-M*J*me-L*U*ve),D=de+Z*(-L*J*me+M*U*ve),B=k+Z*(M*J*K+L*U*Y),X=N+Z*(L*J*K-M*U*Y);return["C",H,D,B,X,k,N]}function c(I,z,M,L,J,U,P){var q=Math.PI,Z=P*q/180,re=t.util.sin(Z),de=t.util.cos(Z),ve=0,me=0;M=Math.abs(M),L=Math.abs(L);var Y=-de*I*.5-re*z*.5,K=-de*z*.5+re*I*.5,k=M*M,N=L*L,H=K*K,D=Y*Y,B=k*N-k*H-N*D,X=0;if(B<0){var ae=Math.sqrt(1-B/(k*N));M*=ae,L*=ae}else X=(J===U?-1:1)*Math.sqrt(B/(k*H+N*D));var ne=X*M*K/L,G=-X*L*Y/M,pe=de*ne-re*G+I*.5,ie=re*ne+de*G+z*.5,ge=f(1,0,(Y-ne)/M,(K-G)/L),we=f((Y-ne)/M,(K-G)/L,(-Y-ne)/M,(-K-G)/L);U===0&&we>0?we-=2*q:U===1&&we<0&&(we+=2*q);for(var ke=Math.ceil(Math.abs(we/q*2)),Ee=[],Pe=we/ke,ye=8/3*Math.sin(Pe/4)*Math.sin(Pe/4)/Math.sin(Pe/2),Ce=ge+Pe,Me=0;Me<ke;Me++)Ee[Me]=h(ge,Ce,de,re,M,L,pe,ie,ye,ve,me),ve=Ee[Me][5],me=Ee[Me][6],ge=Ce,Ce+=Pe;return Ee}function f(I,z,M,L){var J=Math.atan2(z,I),U=Math.atan2(L,M);return U>=J?U-J:2*Math.PI-(J-U)}function s(I,z,M,L,J,U,P,q){var Z;if(t.cachesBoundsOfCurve&&(Z=a.call(arguments),t.boundsOfCurveCache[Z]))return t.boundsOfCurveCache[Z];var re=Math.sqrt,de=Math.min,ve=Math.max,me=Math.abs,Y=[],K=[[],[]],k,N,H,D,B,X,ae,ne;N=6*I-12*M+6*J,k=-3*I+9*M-9*J+3*P,H=3*M-3*I;for(var G=0;G<2;++G){if(G>0&&(N=6*z-12*L+6*U,k=-3*z+9*L-9*U+3*q,H=3*L-3*z),me(k)<1e-12){if(me(N)<1e-12)continue;D=-H/N,0<D&&D<1&&Y.push(D);continue}ae=N*N-4*H*k,!(ae<0)&&(ne=re(ae),B=(-N+ne)/(2*k),0<B&&B<1&&Y.push(B),X=(-N-ne)/(2*k),0<X&&X<1&&Y.push(X))}for(var pe,ie,ge=Y.length,we=ge,ke;ge--;)D=Y[ge],ke=1-D,pe=ke*ke*ke*I+3*ke*ke*D*M+3*ke*D*D*J+D*D*D*P,K[0][ge]=pe,ie=ke*ke*ke*z+3*ke*ke*D*L+3*ke*D*D*U+D*D*D*q,K[1][ge]=ie;K[0][we]=I,K[1][we]=z,K[0][we+1]=P,K[1][we+1]=q;var Ee=[{x:de.apply(null,K[0]),y:de.apply(null,K[1])},{x:ve.apply(null,K[0]),y:ve.apply(null,K[1])}];return t.cachesBoundsOfCurve&&(t.boundsOfCurveCache[Z]=Ee),Ee}function d(I,z,M){for(var L=M[1],J=M[2],U=M[3],P=M[4],q=M[5],Z=M[6],re=M[7],de=c(Z-I,re-z,L,J,P,q,U),ve=0,me=de.length;ve<me;ve++)de[ve][1]+=I,de[ve][2]+=z,de[ve][3]+=I,de[ve][4]+=z,de[ve][5]+=I,de[ve][6]+=z;return de}function v(I){var z=0,M=0,L=I.length,J=0,U=0,P,q,Z,re=[],de,ve,me;for(q=0;q<L;++q){switch(Z=!1,P=I[q].slice(0),P[0]){case"l":P[0]="L",P[1]+=z,P[2]+=M;case"L":z=P[1],M=P[2];break;case"h":P[1]+=z;case"H":P[0]="L",P[2]=M,z=P[1];break;case"v":P[1]+=M;case"V":P[0]="L",M=P[1],P[1]=z,P[2]=M;break;case"m":P[0]="M",P[1]+=z,P[2]+=M;case"M":z=P[1],M=P[2],J=P[1],U=P[2];break;case"c":P[0]="C",P[1]+=z,P[2]+=M,P[3]+=z,P[4]+=M,P[5]+=z,P[6]+=M;case"C":ve=P[3],me=P[4],z=P[5],M=P[6];break;case"s":P[0]="S",P[1]+=z,P[2]+=M,P[3]+=z,P[4]+=M;case"S":de==="C"?(ve=2*z-ve,me=2*M-me):(ve=z,me=M),z=P[3],M=P[4],P[0]="C",P[5]=P[3],P[6]=P[4],P[3]=P[1],P[4]=P[2],P[1]=ve,P[2]=me,ve=P[3],me=P[4];break;case"q":P[0]="Q",P[1]+=z,P[2]+=M,P[3]+=z,P[4]+=M;case"Q":ve=P[1],me=P[2],z=P[3],M=P[4];break;case"t":P[0]="T",P[1]+=z,P[2]+=M;case"T":de==="Q"?(ve=2*z-ve,me=2*M-me):(ve=z,me=M),P[0]="Q",z=P[1],M=P[2],P[1]=ve,P[2]=me,P[3]=z,P[4]=M;break;case"a":P[0]="A",P[6]+=z,P[7]+=M;case"A":Z=!0,re=re.concat(d(z,M,P)),z=P[6],M=P[7];break;case"z":case"Z":z=J,M=U;break}Z||re.push(P),de=P[0]}return re}function g(I,z,M,L){return Math.sqrt((M-I)*(M-I)+(L-z)*(L-z))}function y(I){return I*I*I}function b(I){return 3*I*I*(1-I)}function _(I){return 3*I*(1-I)*(1-I)}function w(I){return(1-I)*(1-I)*(1-I)}function S(I,z,M,L,J,U,P,q){return function(Z){var re=y(Z),de=b(Z),ve=_(Z),me=w(Z);return{x:P*re+J*de+M*ve+I*me,y:q*re+U*de+L*ve+z*me}}}function x(I,z,M,L,J,U,P,q){return function(Z){var re=1-Z,de=3*re*re*(M-I)+6*re*Z*(J-M)+3*Z*Z*(P-J),ve=3*re*re*(L-z)+6*re*Z*(U-L)+3*Z*Z*(q-U);return Math.atan2(ve,de)}}function T(I){return I*I}function O(I){return 2*I*(1-I)}function A(I){return(1-I)*(1-I)}function $(I,z,M,L,J,U){return function(P){var q=T(P),Z=O(P),re=A(P);return{x:J*q+M*Z+I*re,y:U*q+L*Z+z*re}}}function j(I,z,M,L,J,U){return function(P){var q=1-P,Z=2*q*(M-I)+2*P*(J-M),re=2*q*(L-z)+2*P*(U-L);return Math.atan2(re,Z)}}function R(I,z,M){var L={x:z,y:M},J,U=0,P;for(P=1;P<=100;P+=1)J=I(P/100),U+=g(L.x,L.y,J.x,J.y),L=J;return U}function F(I,z){for(var M=0,L=0,J=I.iterator,U={x:I.x,y:I.y},P,q,Z=.01,re=I.angleFinder,de;L<z&&Z>1e-4;)P=J(M),de=M,q=g(U.x,U.y,P.x,P.y),q+L>z?(M-=Z,Z/=2):(U=P,M+=Z,L+=q);return P.angle=re(de),P}function E(I){for(var z=0,M=I.length,L,J=0,U=0,P=0,q=0,Z=[],re,de,ve,me=0;me<M;me++){switch(L=I[me],de={x:J,y:U,command:L[0]},L[0]){case"M":de.length=0,P=J=L[1],q=U=L[2];break;case"L":de.length=g(J,U,L[1],L[2]),J=L[1],U=L[2];break;case"C":re=S(J,U,L[1],L[2],L[3],L[4],L[5],L[6]),ve=x(J,U,L[1],L[2],L[3],L[4],L[5],L[6]),de.iterator=re,de.angleFinder=ve,de.length=R(re,J,U),J=L[5],U=L[6];break;case"Q":re=$(J,U,L[1],L[2],L[3],L[4]),ve=j(J,U,L[1],L[2],L[3],L[4]),de.iterator=re,de.angleFinder=ve,de.length=R(re,J,U),J=L[3],U=L[4];break;case"Z":case"z":de.destX=P,de.destY=q,de.length=g(J,U,P,q),J=P,U=q;break}z+=de.length,Z.push(de)}return Z.push({length:z,x:J,y:U}),Z}function W(I,z,M){M||(M=E(I));for(var L=0;z-M[L].length>0&&L<M.length-2;)z-=M[L].length,L++;var J=M[L],U=z/J.length,P=J.command,q=I[L],Z;switch(P){case"M":return{x:J.x,y:J.y,angle:0};case"Z":case"z":return Z=new t.Point(J.x,J.y).lerp(new t.Point(J.destX,J.destY),U),Z.angle=Math.atan2(J.destY-J.y,J.destX-J.x),Z;case"L":return Z=new t.Point(J.x,J.y).lerp(new t.Point(q[1],q[2]),U),Z.angle=Math.atan2(q[2]-J.y,q[1]-J.x),Z;case"C":return F(J,z);case"Q":return F(J,z)}}function te(I){var z=[],M=[],L,J,U=t.rePathCommand,P="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",q="("+P+")"+t.commaWsp,Z="([01])"+t.commaWsp+"?",re=q+"?"+q+"?"+q+Z+Z+q+"?("+P+")",de=new RegExp(re,"g"),ve,me,Y;if(!I||!I.match)return z;Y=I.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var K=0,k,N=Y.length;K<N;K++){L=Y[K],me=L.slice(1).trim(),M.length=0;var H=L.charAt(0);if(k=[H],H.toLowerCase()==="a")for(var D;D=de.exec(me);)for(var B=1;B<D.length;B++)M.push(D[B]);else for(;ve=U.exec(me);)M.push(ve[0]);for(var B=0,X=M.length;B<X;B++)J=parseFloat(M[B]),isNaN(J)||k.push(J);var ae=o[H.toLowerCase()],ne=u[H]||H;if(k.length-1>ae)for(var G=1,pe=k.length;G<pe;G+=ae)z.push([H].concat(k.slice(G,G+ae))),H=ne;else z.push(k)}return z}function Q(I,z){var M=[],L,J=new t.Point(I[0].x,I[0].y),U=new t.Point(I[1].x,I[1].y),P=I.length,q=1,Z=0,re=P>2;for(z=z||0,re&&(q=I[2].x<U.x?-1:I[2].x===U.x?0:1,Z=I[2].y<U.y?-1:I[2].y===U.y?0:1),M.push(["M",J.x-q*z,J.y-Z*z]),L=1;L<P;L++){if(!J.eq(U)){var de=J.midPointFrom(U);M.push(["Q",J.x,J.y,de.x,de.y])}J=I[L],L+1<I.length&&(U=I[L+1])}return re&&(q=J.x>I[L-2].x?1:J.x===I[L-2].x?0:-1,Z=J.y>I[L-2].y?1:J.y===I[L-2].y?0:-1),M.push(["L",J.x+q*z,J.y+Z*z]),M}function le(I,z,M){return M&&(z=t.util.multiplyTransformMatrices(z,[1,0,0,1,-M.x,-M.y])),I.map(function(L){for(var J=L.slice(0),U={},P=1;P<L.length-1;P+=2)U.x=L[P],U.y=L[P+1],U=t.util.transformPoint(U,z),J[P]=U.x,J[P+1]=U.y;return J})}t.util.joinPath=function(I){return I.map(function(z){return z.join(" ")}).join(" ")},t.util.parsePath=te,t.util.makePathSimpler=v,t.util.getSmoothPathFromPoints=Q,t.util.getPathSegmentsInfo=E,t.util.getBoundsOfCurve=s,t.util.getPointOnPath=W,t.util.transformPath=le}(),function(){var a=Array.prototype.slice;function o(s,d){for(var v=a.call(arguments,2),g=[],y=0,b=s.length;y<b;y++)g[y]=v.length?s[y][d].apply(s[y],v):s[y][d].call(s[y]);return g}function u(s,d){return f(s,d,function(v,g){return v>=g})}function h(s,d){return f(s,d,function(v,g){return v<g})}function c(s,d){for(var v=s.length;v--;)s[v]=d;return s}function f(s,d,v){if(!(!s||s.length===0)){var g=s.length-1,y=d?s[g][d]:s[g];if(d)for(;g--;)v(s[g][d],y)&&(y=s[g][d]);else for(;g--;)v(s[g],y)&&(y=s[g]);return y}}t.util.array={fill:c,invoke:o,min:h,max:u}}(),function(){function a(u,h,c){if(c)if(!t.isLikelyNode&&h instanceof Element)u=h;else if(h instanceof Array){u=[];for(var f=0,s=h.length;f<s;f++)u[f]=a({},h[f],c)}else if(h&&typeof h=="object")for(var d in h)d==="canvas"||d==="group"?u[d]=null:h.hasOwnProperty(d)&&(u[d]=a({},h[d],c));else u=h;else for(var d in h)u[d]=h[d];return u}function o(u,h){return a({},u,h)}t.util.object={extend:a,clone:o},t.util.object.extend(t.util,t.Observable)}(),function(){function a(f){return f.replace(/-+(.)?/g,function(s,d){return d?d.toUpperCase():""})}function o(f,s){return f.charAt(0).toUpperCase()+(s?f.slice(1):f.slice(1).toLowerCase())}function u(f){return f.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function h(f){var s=0,d,v=[];for(s=0,d;s<f.length;s++)(d=c(f,s))!==!1&&v.push(d);return v}function c(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 g=f.charCodeAt(s-1);if(55296>g||g>56319)throw"Low surrogate without preceding high surrogate";return!1}t.util.string={camelize:a,capitalize:o,escapeXml:u,graphemeSplit:h}}(),function(){var a=Array.prototype.slice,o=function(){},u=function(){for(var d in{toString:1})if(d==="toString")return!1;return!0}(),h=function(d,v,g){for(var y in v)y in d.prototype&&typeof d.prototype[y]=="function"&&(v[y]+"").indexOf("callSuper")>-1?d.prototype[y]=function(b){return function(){var _=this.constructor.superclass;this.constructor.superclass=g;var w=v[b].apply(this,arguments);if(this.constructor.superclass=_,b!=="initialize")return w}}(y):d.prototype[y]=v[y],u&&(v.toString!==Object.prototype.toString&&(d.prototype.toString=v.toString),v.valueOf!==Object.prototype.valueOf&&(d.prototype.valueOf=v.valueOf))};function c(){}function f(d){for(var v=null,g=this;g.constructor.superclass;){var y=g.constructor.superclass.prototype[d];if(g[d]!==y){v=y;break}g=g.constructor.superclass.prototype}return v?arguments.length>1?v.apply(this,a.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=a.call(arguments,0);typeof v[0]=="function"&&(d=v.shift());function g(){this.initialize.apply(this,arguments)}g.superclass=d,g.subclasses=[],d&&(c.prototype=d.prototype,g.prototype=new c,d.subclasses.push(g));for(var y=0,b=v.length;y<b;y++)h(g,v[y],d);return g.prototype.initialize||(g.prototype.initialize=o),g.prototype.constructor=g,g.prototype.callSuper=f,g}t.util.createClass=s}(),function(){var a=!!t.document.createElement("div").attachEvent,o=["touchstart","touchmove","touchend"];t.util.addListener=function(h,c,f,s){h&&h.addEventListener(c,f,a?!1:s)},t.util.removeListener=function(h,c,f,s){h&&h.removeEventListener(c,f,a?!1:s)};function u(h){var c=h.changedTouches;return c&&c[0]?c[0]:h}t.util.getPointer=function(h){var c=h.target,f=t.util.getScrollLeftTop(c),s=u(h);return{x:s.clientX+f.left,y:s.clientY+f.top}},t.util.isTouchEvent=function(h){return o.indexOf(h.type)>-1||h.pointerType==="touch"}}(),function(){function a(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 g in d)if(g==="opacity")f(s,d[g]);else{var y=g==="float"||g==="cssFloat"?typeof v.styleFloat>"u"?"cssFloat":"styleFloat":g;v.setProperty(y,d[g])}return s}var o=t.document.createElement("div"),u=typeof o.style.opacity=="string",h=typeof o.style.filter=="string",c=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,f=function(s){return s};u?f=function(s,d){return s.style.opacity=d,s}:h&&(f=function(s,d){var v=s.style;return s.currentStyle&&!s.currentStyle.hasLayout&&(v.zoom=1),c.test(v.filter)?(d=d>=.9999?"":"alpha(opacity="+d*100+")",v.filter=v.filter.replace(c,d)):v.filter+=" alpha(opacity="+d*100+")",s}),t.util.setStyle=a}(),function(){var a=Array.prototype.slice;function o(w){return typeof w=="string"?t.document.getElementById(w):w}var u,h=function(w){return a.call(w,0)};try{u=h(t.document.childNodes)instanceof Array}catch{}u||(h=function(w){for(var S=new Array(w.length),x=w.length;x--;)S[x]=w[x];return S});function c(w,S){var x=t.document.createElement(w);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(w,S){w&&(" "+w.className+" ").indexOf(" "+S+" ")===-1&&(w.className+=(w.className?" ":"")+S)}function s(w,S,x){return typeof S=="string"&&(S=c(S,x)),w.parentNode&&w.parentNode.replaceChild(S,w),S.appendChild(w),S}function d(w){for(var S=0,x=0,T=t.document.documentElement,O=t.document.body||{scrollLeft:0,scrollTop:0};w&&(w.parentNode||w.host)&&(w=w.parentNode||w.host,w===t.document?(S=O.scrollLeft||T.scrollLeft||0,x=O.scrollTop||T.scrollTop||0):(S+=w.scrollLeft||0,x+=w.scrollTop||0),!(w.nodeType===1&&w.style.position==="fixed")););return{left:S,top:x}}function v(w){var S,x=w&&w.ownerDocument,T={left:0,top:0},O={left:0,top:0},A,$={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!x)return O;for(var j in $)O[$[j]]+=parseInt(g(w,j),10)||0;return S=x.documentElement,typeof w.getBoundingClientRect<"u"&&(T=w.getBoundingClientRect()),A=d(w),{left:T.left+A.left-(S.clientLeft||0)+O.left,top:T.top+A.top-(S.clientTop||0)+O.top}}var g;t.document.defaultView&&t.document.defaultView.getComputedStyle?g=function(w,S){var x=t.document.defaultView.getComputedStyle(w,null);return x?x[S]:void 0}:g=function(w,S){var x=w.style[S];return!x&&w.currentStyle&&(x=w.currentStyle[S]),x},function(){var w=t.document.documentElement.style,S="userSelect"in w?"userSelect":"MozUserSelect"in w?"MozUserSelect":"WebkitUserSelect"in w?"WebkitUserSelect":"KhtmlUserSelect"in w?"KhtmlUserSelect":"";function x(O){return typeof O.onselectstart<"u"&&(O.onselectstart=t.util.falseFunction),S?O.style[S]="none":typeof O.unselectable=="string"&&(O.unselectable="on"),O}function T(O){return typeof O.onselectstart<"u"&&(O.onselectstart=null),S?O.style[S]="":typeof O.unselectable=="string"&&(O.unselectable=""),O}t.util.makeElementUnselectable=x,t.util.makeElementSelectable=T}();function y(w){var S=t.jsdomImplForWrapper(w);return S._canvas||S._image}function b(w){if(!!t.isLikelyNode){var S=t.jsdomImplForWrapper(w);S&&(S._image=null,S._canvas=null,S._currentSrc=null,S._attributes=null,S._classList=null)}}function _(w,S){w.imageSmoothingEnabled=w.imageSmoothingEnabled||w.webkitImageSmoothingEnabled||w.mozImageSmoothingEnabled||w.msImageSmoothingEnabled||w.oImageSmoothingEnabled,w.imageSmoothingEnabled=S}t.util.setImageSmoothing=_,t.util.getById=o,t.util.toArray=h,t.util.addClass=f,t.util.makeElement=c,t.util.wrapElement=s,t.util.getScrollLeftTop=d,t.util.getElementOffset=v,t.util.getNodeCanvas=y,t.util.cleanUpJsdomNode=b}(),function(){function a(h,c){return h+(/\?/.test(h)?"&":"?")+c}function o(){}function u(h,c){c||(c={});var f=c.method?c.method.toUpperCase():"GET",s=c.onComplete||function(){},d=new t.window.XMLHttpRequest,v=c.body||c.parameters;return d.onreadystatechange=function(){d.readyState===4&&(s(d),d.onreadystatechange=o)},f==="GET"&&(v=null,typeof c.parameters=="string"&&(h=a(h,c.parameters))),d.open(f,h,!0),(f==="POST"||f==="PUT")&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.send(v),d}t.util.request=u}(),t.log=console.log,t.warn=console.warn,function(){var a=t.util.object.extend,o=t.util.object.clone,u=[];t.util.object.extend(u,{cancelAll:function(){var y=this.splice(0);return y.forEach(function(b){b.cancel()}),y},cancelByCanvas:function(y){if(!y)return[];var b=this.filter(function(_){return typeof _.target=="object"&&_.target.canvas===y});return b.forEach(function(_){_.cancel()}),b},cancelByTarget:function(y){var b=this.findAnimationsByTarget(y);return b.forEach(function(_){_.cancel()}),b},findAnimationIndex:function(y){return this.indexOf(this.findAnimation(y))},findAnimation:function(y){return this.find(function(b){return b.cancel===y})},findAnimationsByTarget:function(y){return y?this.filter(function(b){return b.target===y}):[]}});function h(){return!1}function c(y,b,_,w){return-_*Math.cos(y/w*(Math.PI/2))+_+b}function f(y){y||(y={});var b=!1,_,w=function(){var S=t.runningAnimations.indexOf(_);return S>-1&&t.runningAnimations.splice(S,1)[0]};return _=a(o(y),{cancel:function(){return b=!0,w()},currentValue:"startValue"in y?y.startValue:0,completionRate:0,durationRate:0}),t.runningAnimations.push(_),v(function(S){var x=S||+new Date,T=y.duration||500,O=x+T,A,$=y.onChange||h,j=y.abort||h,R=y.onComplete||h,F=y.easing||c,E="startValue"in y?y.startValue.length>0:!1,W="startValue"in y?y.startValue:0,te="endValue"in y?y.endValue:100,Q=y.byValue||(E?W.map(function(le,I){return te[I]-W[I]}):te-W);y.onStart&&y.onStart(),function le(I){A=I||+new Date;var z=A>O?T:A-x,M=z/T,L=E?W.map(function(U,P){return F(z,W[P],Q[P],T)}):F(z,W,Q,T),J=Math.abs(E?(L[0]-W[0])/Q[0]:(L-W)/Q);if(_.currentValue=E?L.slice():L,_.completionRate=J,_.durationRate=M,!b){if(j(L,J,M)){w();return}if(A>O){_.currentValue=E?te.slice():te,_.completionRate=1,_.durationRate=1,$(E?te.slice():te,1,1),R(te,1,1),w();return}else $(L,J,M),v(le)}}(x)}),_.cancel}var s=t.window.requestAnimationFrame||t.window.webkitRequestAnimationFrame||t.window.mozRequestAnimationFrame||t.window.oRequestAnimationFrame||t.window.msRequestAnimationFrame||function(y){return t.window.setTimeout(y,1e3/60)},d=t.window.cancelAnimationFrame||t.window.clearTimeout;function v(){return s.apply(t.window,arguments)}function g(){return d.apply(t.window,arguments)}t.util.animate=f,t.util.requestAnimFrame=v,t.util.cancelAnimFrame=g,t.runningAnimations=u}(),function(){function a(u,h,c){var f="rgba("+parseInt(u[0]+c*(h[0]-u[0]),10)+","+parseInt(u[1]+c*(h[1]-u[1]),10)+","+parseInt(u[2]+c*(h[2]-u[2]),10);return f+=","+(u&&h?parseFloat(u[3]+c*(h[3]-u[3])):1),f+=")",f}function o(u,h,c,f){var s=new t.Color(u).getSource(),d=new t.Color(h).getSource(),v=f.onComplete,g=f.onChange;return f=f||{},t.util.animate(t.util.object.extend(f,{duration:c||500,startValue:s,endValue:d,byValue:d,easing:function(y,b,_,w){var S=f.colorEasing?f.colorEasing(y,w):1-Math.cos(y/w*(Math.PI/2));return a(b,_,S)},onComplete:function(y,b,_){if(v)return v(a(d,d,0),b,_)},onChange:function(y,b,_){if(g){if(Array.isArray(y))return g(a(y,y,0),b,_);g(y,b,_)}}}))}t.util.animateColor=o}(),function(){function a(I,z,M,L){return I<Math.abs(z)?(I=z,L=M/4):z===0&&I===0?L=M/(2*Math.PI)*Math.asin(1):L=M/(2*Math.PI)*Math.asin(z/I),{a:I,c:z,p:M,s:L}}function o(I,z,M){return I.a*Math.pow(2,10*(z-=1))*Math.sin((z*M-I.s)*(2*Math.PI)/I.p)}function u(I,z,M,L){return M*((I=I/L-1)*I*I+1)+z}function h(I,z,M,L){return I/=L/2,I<1?M/2*I*I*I+z:M/2*((I-=2)*I*I+2)+z}function c(I,z,M,L){return M*(I/=L)*I*I*I+z}function f(I,z,M,L){return-M*((I=I/L-1)*I*I*I-1)+z}function s(I,z,M,L){return I/=L/2,I<1?M/2*I*I*I*I+z:-M/2*((I-=2)*I*I*I-2)+z}function d(I,z,M,L){return M*(I/=L)*I*I*I*I+z}function v(I,z,M,L){return M*((I=I/L-1)*I*I*I*I+1)+z}function g(I,z,M,L){return I/=L/2,I<1?M/2*I*I*I*I*I+z:M/2*((I-=2)*I*I*I*I+2)+z}function y(I,z,M,L){return-M*Math.cos(I/L*(Math.PI/2))+M+z}function b(I,z,M,L){return M*Math.sin(I/L*(Math.PI/2))+z}function _(I,z,M,L){return-M/2*(Math.cos(Math.PI*I/L)-1)+z}function w(I,z,M,L){return I===0?z:M*Math.pow(2,10*(I/L-1))+z}function S(I,z,M,L){return I===L?z+M:M*(-Math.pow(2,-10*I/L)+1)+z}function x(I,z,M,L){return I===0?z:I===L?z+M:(I/=L/2,I<1?M/2*Math.pow(2,10*(I-1))+z:M/2*(-Math.pow(2,-10*--I)+2)+z)}function T(I,z,M,L){return-M*(Math.sqrt(1-(I/=L)*I)-1)+z}function O(I,z,M,L){return M*Math.sqrt(1-(I=I/L-1)*I)+z}function A(I,z,M,L){return I/=L/2,I<1?-M/2*(Math.sqrt(1-I*I)-1)+z:M/2*(Math.sqrt(1-(I-=2)*I)+1)+z}function $(I,z,M,L){var J=1.70158,U=0,P=M;if(I===0)return z;if(I/=L,I===1)return z+M;U||(U=L*.3);var q=a(P,M,U,J);return-o(q,I,L)+z}function j(I,z,M,L){var J=1.70158,U=0,P=M;if(I===0)return z;if(I/=L,I===1)return z+M;U||(U=L*.3);var q=a(P,M,U,J);return q.a*Math.pow(2,-10*I)*Math.sin((I*L-q.s)*(2*Math.PI)/q.p)+q.c+z}function R(I,z,M,L){var J=1.70158,U=0,P=M;if(I===0)return z;if(I/=L/2,I===2)return z+M;U||(U=L*(.3*1.5));var q=a(P,M,U,J);return I<1?-.5*o(q,I,L)+z:q.a*Math.pow(2,-10*(I-=1))*Math.sin((I*L-q.s)*(2*Math.PI)/q.p)*.5+q.c+z}function F(I,z,M,L,J){return J===void 0&&(J=1.70158),M*(I/=L)*I*((J+1)*I-J)+z}function E(I,z,M,L,J){return J===void 0&&(J=1.70158),M*((I=I/L-1)*I*((J+1)*I+J)+1)+z}function W(I,z,M,L,J){return J===void 0&&(J=1.70158),I/=L/2,I<1?M/2*(I*I*(((J*=1.525)+1)*I-J))+z:M/2*((I-=2)*I*(((J*=1.525)+1)*I+J)+2)+z}function te(I,z,M,L){return M-Q(L-I,0,M,L)+z}function Q(I,z,M,L){return(I/=L)<1/2.75?M*(7.5625*I*I)+z:I<2/2.75?M*(7.5625*(I-=1.5/2.75)*I+.75)+z:I<2.5/2.75?M*(7.5625*(I-=2.25/2.75)*I+.9375)+z:M*(7.5625*(I-=2.625/2.75)*I+.984375)+z}function le(I,z,M,L){return I<L/2?te(I*2,0,M,L)*.5+z:Q(I*2-L,0,M,L)*.5+M*.5+z}t.util.ease={easeInQuad:function(I,z,M,L){return M*(I/=L)*I+z},easeOutQuad:function(I,z,M,L){return-M*(I/=L)*(I-2)+z},easeInOutQuad:function(I,z,M,L){return I/=L/2,I<1?M/2*I*I+z:-M/2*(--I*(I-2)-1)+z},easeInCubic:function(I,z,M,L){return M*(I/=L)*I*I+z},easeOutCubic:u,easeInOutCubic:h,easeInQuart:c,easeOutQuart:f,easeInOutQuart:s,easeInQuint:d,easeOutQuint:v,easeInOutQuint:g,easeInSine:y,easeOutSine:b,easeInOutSine:_,easeInExpo:w,easeOutExpo:S,easeInOutExpo:x,easeInCirc:T,easeOutCirc:O,easeInOutCirc:A,easeInElastic:$,easeOutElastic:j,easeInOutElastic:R,easeInBack:F,easeOutBack:E,easeInOutBack:W,easeInBounce:te,easeOutBounce:Q,easeInOutBounce:le}}(),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.extend,h=o.util.object.clone,c=o.util.toFixed,f=o.util.parseUnit,s=o.util.multiplyTransformMatrices,d=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],v=["symbol","image","marker","pattern","view","svg"],g=["pattern","defs","symbol","metadata","clipPath","mask","desc"],y=["symbol","g","a","svg","clipPath","defs"],b={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"},_={stroke:"strokeOpacity",fill:"fillOpacity"},w="font-size",S="clip-path";o.svgValidTagNamesRegEx=O(d),o.svgViewBoxElementsRegEx=O(v),o.svgInvalidAncestorsRegEx=O(g),o.svgValidParentsRegEx=O(y),o.cssRules={},o.gradientDefs={},o.clipPaths={};function x(U){return U in b?b[U]:U}function T(U,P,q,Z){var re=Array.isArray(P),de;if((U==="fill"||U==="stroke")&&P==="none")P="";else{if(U==="strokeUniform")return P==="non-scaling-stroke";if(U==="strokeDashArray")P==="none"?P=null:P=P.replace(/,/g," ").split(/\s+/).map(parseFloat);else if(U==="transformMatrix")q&&q.transformMatrix?P=s(q.transformMatrix,o.parseTransformAttribute(P)):P=o.parseTransformAttribute(P);else if(U==="visible")P=P!=="none"&&P!=="hidden",q&&q.visible===!1&&(P=!1);else if(U==="opacity")P=parseFloat(P),q&&typeof q.opacity<"u"&&(P*=q.opacity);else if(U==="textAnchor")P=P==="start"?"left":P==="end"?"right":"center";else if(U==="charSpacing")de=f(P,Z)/Z*1e3;else if(U==="paintFirst"){var ve=P.indexOf("fill"),me=P.indexOf("stroke"),P="fill";(ve>-1&&me>-1&&me<ve||ve===-1&&me>-1)&&(P="stroke")}else{if(U==="href"||U==="xlink:href"||U==="font")return P;if(U==="imageSmoothing")return P==="optimizeQuality";de=re?P.map(f):f(P,Z)}}return!re&&isNaN(de)?P:de}function O(U){return new RegExp("^("+U.join("|")+")\\b","i")}function A(U){for(var P in _)if(!(typeof U[_[P]]>"u"||U[P]==="")){if(typeof U[P]>"u"){if(!o.Object.prototype[P])continue;U[P]=o.Object.prototype[P]}if(U[P].indexOf("url(")!==0){var q=new o.Color(U[P]);U[P]=q.setAlpha(c(q.getAlpha()*U[_[P]],2)).toRgba()}}return U}function $(U,P){var q,Z=[],re,de,ve;for(de=0,ve=P.length;de<ve;de++)q=P[de],re=U.getElementsByTagName(q),Z=Z.concat(Array.prototype.slice.call(re));return Z}o.parseTransformAttribute=function(){function U(G,pe){var ie=o.util.cos(pe[0]),ge=o.util.sin(pe[0]),we=0,ke=0;pe.length===3&&(we=pe[1],ke=pe[2]),G[0]=ie,G[1]=ge,G[2]=-ge,G[3]=ie,G[4]=we-(ie*we-ge*ke),G[5]=ke-(ge*we+ie*ke)}function P(G,pe){var ie=pe[0],ge=pe.length===2?pe[1]:pe[0];G[0]=ie,G[3]=ge}function q(G,pe,ie){G[ie]=Math.tan(o.util.degreesToRadians(pe[0]))}function Z(G,pe){G[4]=pe[0],pe.length===2&&(G[5]=pe[1])}var re=o.iMatrix,de=o.reNum,ve=o.commaWsp,me="(?:(skewX)\\s*\\(\\s*("+de+")\\s*\\))",Y="(?:(skewY)\\s*\\(\\s*("+de+")\\s*\\))",K="(?:(rotate)\\s*\\(\\s*("+de+")(?:"+ve+"("+de+")"+ve+"("+de+"))?\\s*\\))",k="(?:(scale)\\s*\\(\\s*("+de+")(?:"+ve+"("+de+"))?\\s*\\))",N="(?:(translate)\\s*\\(\\s*("+de+")(?:"+ve+"("+de+"))?\\s*\\))",H="(?:(matrix)\\s*\\(\\s*("+de+")"+ve+"("+de+")"+ve+"("+de+")"+ve+"("+de+")"+ve+"("+de+")"+ve+"("+de+")\\s*\\))",D="(?:"+H+"|"+N+"|"+k+"|"+K+"|"+me+"|"+Y+")",B="(?:"+D+"(?:"+ve+"*"+D+")*)",X="^\\s*(?:"+B+"?)\\s*$",ae=new RegExp(X),ne=new RegExp(D,"g");return function(G){var pe=re.concat(),ie=[];if(!G||G&&!ae.test(G))return pe;G.replace(ne,function(we){var ke=new RegExp(D).exec(we).filter(function(ye){return!!ye}),Ee=ke[1],Pe=ke.slice(2).map(parseFloat);switch(Ee){case"translate":Z(pe,Pe);break;case"rotate":Pe[0]=o.util.degreesToRadians(Pe[0]),U(pe,Pe);break;case"scale":P(pe,Pe);break;case"skewX":q(pe,Pe,2);break;case"skewY":q(pe,Pe,1);break;case"matrix":pe=Pe;break}ie.push(pe.concat()),pe=re.concat()});for(var ge=ie[0];ie.length>1;)ie.shift(),ge=o.util.multiplyTransformMatrices(ge,ie[0]);return ge}}();function j(U,P){var q,Z;U.replace(/;\s*$/,"").split(";").forEach(function(re){var de=re.split(":");q=de[0].trim().toLowerCase(),Z=de[1].trim(),P[q]=Z})}function R(U,P){var q,Z;for(var re in U)typeof U[re]>"u"||(q=re.toLowerCase(),Z=U[re],P[q]=Z)}function F(U,P){var q={};for(var Z in o.cssRules[P])if(E(U,Z.split(" ")))for(var re in o.cssRules[P][Z])q[re]=o.cssRules[P][Z][re];return q}function E(U,P){var q,Z=!0;return q=te(U,P.pop()),q&&P.length&&(Z=W(U,P)),q&&Z&&P.length===0}function W(U,P){for(var q,Z=!0;U.parentNode&&U.parentNode.nodeType===1&&P.length;)Z&&(q=P.pop()),U=U.parentNode,Z=te(U,q);return P.length===0}function te(U,P){var q=U.nodeName,Z=U.getAttribute("class"),re=U.getAttribute("id"),de,ve;if(de=new RegExp("^"+q,"i"),P=P.replace(de,""),re&&P.length&&(de=new RegExp("#"+re+"(?![a-zA-Z\\-]+)","i"),P=P.replace(de,"")),Z&&P.length)for(Z=Z.split(" "),ve=Z.length;ve--;)de=new RegExp("\\."+Z[ve]+"(?![a-zA-Z\\-]+)","i"),P=P.replace(de,"");return P.length===0}function Q(U,P){var q;if(U.getElementById&&(q=U.getElementById(P)),q)return q;var Z,re,de,ve=U.getElementsByTagName("*");for(re=0,de=ve.length;re<de;re++)if(Z=ve[re],P===Z.getAttribute("id"))return Z}function le(U){for(var P=$(U,["use","svg:use"]),q=0;P.length&&q<P.length;){var Z=P[q],re=Z.getAttribute("xlink:href")||Z.getAttribute("href");if(re===null)return;var de=re.slice(1),ve=Z.getAttribute("x")||0,me=Z.getAttribute("y")||0,Y=Q(U,de).cloneNode(!0),K=(Y.getAttribute("transform")||"")+" translate("+ve+", "+me+")",k,N=P.length,H,D,B,X,ae=o.svgNS;if(z(Y),/^svg$/i.test(Y.nodeName)){var ne=Y.ownerDocument.createElementNS(ae,"g");for(D=0,B=Y.attributes,X=B.length;D<X;D++)H=B.item(D),ne.setAttributeNS(ae,H.nodeName,H.nodeValue);for(;Y.firstChild;)ne.appendChild(Y.firstChild);Y=ne}for(D=0,B=Z.attributes,X=B.length;D<X;D++)H=B.item(D),!(H.nodeName==="x"||H.nodeName==="y"||H.nodeName==="xlink:href"||H.nodeName==="href")&&(H.nodeName==="transform"?K=H.nodeValue+" "+K:Y.setAttribute(H.nodeName,H.nodeValue));Y.setAttribute("transform",K),Y.setAttribute("instantiated_by_use","1"),Y.removeAttribute("id"),k=Z.parentNode,k.replaceChild(Y,Z),P.length===N&&q++}}var I=new RegExp("^\\s*("+o.reNum+"+)\\s*,?\\s*("+o.reNum+"+)\\s*,?\\s*("+o.reNum+"+)\\s*,?\\s*("+o.reNum+"+)\\s*$");function z(U){if(!o.svgViewBoxElementsRegEx.test(U.nodeName))return{};var P=U.getAttribute("viewBox"),q=1,Z=1,re=0,de=0,ve,me,Y,K,k=U.getAttribute("width"),N=U.getAttribute("height"),H=U.getAttribute("x")||0,D=U.getAttribute("y")||0,B=U.getAttribute("preserveAspectRatio")||"",X=!P||!(P=P.match(I)),ae=!k||!N||k==="100%"||N==="100%",ne=X&&ae,G={},pe="",ie=0,ge=0;if(G.width=0,G.height=0,G.toBeParsed=ne,X&&(H||D)&&U.parentNode&&U.parentNode.nodeName!=="#document"&&(pe=" translate("+f(H)+" "+f(D)+") ",Y=(U.getAttribute("transform")||"")+pe,U.setAttribute("transform",Y),U.removeAttribute("x"),U.removeAttribute("y")),ne)return G;if(X)return G.width=f(k),G.height=f(N),G;if(re=-parseFloat(P[1]),de=-parseFloat(P[2]),ve=parseFloat(P[3]),me=parseFloat(P[4]),G.minX=re,G.minY=de,G.viewBoxWidth=ve,G.viewBoxHeight=me,ae?(G.width=ve,G.height=me):(G.width=f(k),G.height=f(N),q=G.width/ve,Z=G.height/me),B=o.util.parsePreserveAspectRatioAttribute(B),B.alignX!=="none"&&(B.meetOrSlice==="meet"&&(Z=q=q>Z?Z:q),B.meetOrSlice==="slice"&&(Z=q=q>Z?q:Z),ie=G.width-ve*q,ge=G.height-me*q,B.alignX==="Mid"&&(ie/=2),B.alignY==="Mid"&&(ge/=2),B.alignX==="Min"&&(ie=0),B.alignY==="Min"&&(ge=0)),q===1&&Z===1&&re===0&&de===0&&H===0&&D===0)return G;if((H||D)&&U.parentNode.nodeName!=="#document"&&(pe=" translate("+f(H)+" "+f(D)+") "),Y=pe+" matrix("+q+" 0 0 "+Z+" "+(re*q+ie)+" "+(de*Z+ge)+") ",U.nodeName==="svg"){for(K=U.ownerDocument.createElementNS(o.svgNS,"g");U.firstChild;)K.appendChild(U.firstChild);U.appendChild(K)}else K=U,K.removeAttribute("x"),K.removeAttribute("y"),Y=K.getAttribute("transform")+Y;return K.setAttribute("transform",Y),G}function M(U,P){for(;U&&(U=U.parentNode);)if(U.nodeName&&P.test(U.nodeName.replace("svg:",""))&&!U.getAttribute("instantiated_by_use"))return!0;return!1}o.parseSVGDocument=function(U,P,q,Z){if(!!U){le(U);var re=o.Object.__uid++,de,ve,me=z(U),Y=o.util.toArray(U.getElementsByTagName("*"));if(me.crossOrigin=Z&&Z.crossOrigin,me.svgUid=re,Y.length===0&&o.isLikelyNode){Y=U.selectNodes('//*[name(.)!="svg"]');var K=[];for(de=0,ve=Y.length;de<ve;de++)K[de]=Y[de];Y=K}var k=Y.filter(function(H){return z(H),o.svgValidTagNamesRegEx.test(H.nodeName.replace("svg:",""))&&!M(H,o.svgInvalidAncestorsRegEx)});if(!k||k&&!k.length){P&&P([],{});return}var N={};Y.filter(function(H){return H.nodeName.replace("svg:","")==="clipPath"}).forEach(function(H){var D=H.getAttribute("id");N[D]=o.util.toArray(H.getElementsByTagName("*")).filter(function(B){return o.svgValidTagNamesRegEx.test(B.nodeName.replace("svg:",""))})}),o.gradientDefs[re]=o.getGradientDefs(U),o.cssRules[re]=o.getCSSRules(U),o.clipPaths[re]=N,o.parseElements(k,function(H,D){P&&(P(H,me,D,Y),delete o.gradientDefs[re],delete o.cssRules[re],delete o.clipPaths[re])},h(me),q,Z)}};function L(U,P){var q=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],Z="xlink:href",re=P.getAttribute(Z).slice(1),de=Q(U,re);if(de&&de.getAttribute(Z)&&L(U,de),q.forEach(function(me){de&&!P.hasAttribute(me)&&de.hasAttribute(me)&&P.setAttribute(me,de.getAttribute(me))}),!P.children.length)for(var ve=de.cloneNode(!0);ve.firstChild;)P.appendChild(ve.firstChild);P.removeAttribute(Z)}var J=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+o.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+o.reNum+"))?\\s+(.*)");u(o,{parseFontDeclaration:function(U,P){var q=U.match(J);if(!!q){var Z=q[1],re=q[3],de=q[4],ve=q[5],me=q[6];Z&&(P.fontStyle=Z),re&&(P.fontWeight=isNaN(parseFloat(re))?re:parseFloat(re)),de&&(P.fontSize=f(de)),me&&(P.fontFamily=me),ve&&(P.lineHeight=ve==="normal"?1:ve)}},getGradientDefs:function(U){var P=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],q=$(U,P),Z,re=0,de={};for(re=q.length;re--;)Z=q[re],Z.getAttribute("xlink:href")&&L(U,Z),de[Z.getAttribute("id")]=Z;return de},parseAttributes:function(U,P,q){if(!!U){var Z,re={},de,ve;typeof q>"u"&&(q=U.getAttribute("svgUid")),U.parentNode&&o.svgValidParentsRegEx.test(U.parentNode.nodeName)&&(re=o.parseAttributes(U.parentNode,P,q));var me=P.reduce(function(B,X){return Z=U.getAttribute(X),Z&&(B[X]=Z),B},{}),Y=u(F(U,q),o.parseStyleAttribute(U));me=u(me,Y),Y[S]&&U.setAttribute(S,Y[S]),de=ve=re.fontSize||o.Text.DEFAULT_SVG_FONT_SIZE,me[w]&&(me[w]=de=f(me[w],ve));var K,k,N={};for(var H in me)K=x(H),k=T(K,me[H],re,de),N[K]=k;N&&N.font&&o.parseFontDeclaration(N.font,N);var D=u(re,N);return o.svgValidParentsRegEx.test(U.nodeName)?D:A(D)}},parseElements:function(U,P,q,Z,re){new o.ElementsParser(U,P,q,Z,re).parse()},parseStyleAttribute:function(U){var P={},q=U.getAttribute("style");return q&&(typeof q=="string"?j(q,P):R(q,P)),P},parsePointsAttribute:function(U){if(!U)return null;U=U.replace(/,/g," ").trim(),U=U.split(/\s+/);var P=[],q,Z;for(q=0,Z=U.length;q<Z;q+=2)P.push({x:parseFloat(U[q]),y:parseFloat(U[q+1])});return P},getCSSRules:function(U){var P=U.getElementsByTagName("style"),q,Z,re={},de;for(q=0,Z=P.length;q<Z;q++){var ve=P[q].textContent;ve=ve.replace(/\/\*[\s\S]*?\*\//g,""),ve.trim()!==""&&(de=ve.split("}"),de=de.filter(function(me){return me.trim()}),de.forEach(function(me){var Y=me.split("{"),K={},k=Y[1].trim(),N=k.split(";").filter(function(X){return X.trim()});for(q=0,Z=N.length;q<Z;q++){var H=N[q].split(":"),D=H[0].trim(),B=H[1].trim();K[D]=B}me=Y[0].trim(),me.split(",").forEach(function(X){X=X.replace(/^svg/i,"").trim(),X!==""&&(re[X]?o.util.object.extend(re[X],K):re[X]=o.util.object.clone(K))})}))}return re},loadSVGFromURL:function(U,P,q,Z){U=U.replace(/^\n\s*/,"").trim(),new o.util.request(U,{method:"get",onComplete:re});function re(de){var ve=de.responseXML;if(!ve||!ve.documentElement)return P&&P(null),!1;o.parseSVGDocument(ve.documentElement,function(me,Y,K,k){P&&P(me,Y,K,k)},q,Z)}},loadSVGFromString:function(U,P,q,Z){var re=new o.window.DOMParser,de=re.parseFromString(U.trim(),"text/xml");o.parseSVGDocument(de.documentElement,function(ve,me,Y,K){P(ve,me,Y,K)},q,Z)}})}(e),t.ElementsParser=function(a,o,u,h,c,f){this.elements=a,this.callback=o,this.options=u,this.reviver=h,this.svgUid=u&&u.svgUid||0,this.parsingOptions=c,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=f},function(a){a.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},a.createObjects=function(){var o=this;this.elements.forEach(function(u,h){u.setAttribute("svgUid",o.svgUid),o.createObject(u,h)})},a.findTag=function(o){return t[t.util.string.capitalize(o.tagName.replace("svg:",""))]},a.createObject=function(o,u){var h=this.findTag(o);if(h&&h.fromElement)try{h.fromElement(o,this.createCallback(u,o),this.options)}catch(c){t.log(c)}else this.checkIfDone()},a.createCallback=function(o,u){var h=this;return function(c){var f;h.resolveGradient(c,u,"fill"),h.resolveGradient(c,u,"stroke"),c instanceof t.Image&&c._originalElement&&(f=c.parsePreserveAspectRatioAttribute(u)),c._removeTransformMatrix(f),h.resolveClipPath(c,u),h.reviver&&h.reviver(u,c),h.instances[o]=c,h.checkIfDone()}},a.extractPropertyDefinition=function(o,u,h){var c=o[u],f=this.regexUrl;if(!!f.test(c)){f.lastIndex=0;var s=f.exec(c)[1];return f.lastIndex=0,t[h][this.svgUid][s]}},a.resolveGradient=function(o,u,h){var c=this.extractPropertyDefinition(o,h,"gradientDefs");if(c){var f=u.getAttribute(h+"-opacity"),s=t.Gradient.fromElement(c,o,f,this.options);o.set(h,s)}},a.createClipPathCallback=function(o,u){return function(h){h._removeTransformMatrix(),h.fillRule=h.clipRule,u.push(h)}},a.resolveClipPath=function(o,u){var h=this.extractPropertyDefinition(o,"clipPath","clipPaths"),c,f,s,d,v,g;if(h){d=[],s=t.util.invertTransform(o.calcTransformMatrix());for(var y=h[0].parentNode,b=u;b.parentNode&&b.getAttribute("clip-path")!==o.clipPath;)b=b.parentNode;b.parentNode.appendChild(y);for(var _=0;_<h.length;_++)c=h[_],f=this.findTag(c),f.fromElement(c,this.createClipPathCallback(o,d),this.options);d.length===1?h=d[0]:h=new t.Group(d),v=t.util.multiplyTransformMatrices(s,h.calcTransformMatrix()),h.clipPath&&this.resolveClipPath(h,b);var g=t.util.qrDecompose(v);h.flipX=!1,h.flipY=!1,h.set("scaleX",g.scaleX),h.set("scaleY",g.scaleY),h.angle=g.angle,h.skewX=g.skewX,h.skewY=0,h.setPositionByOrigin({x:g.translateX,y:g.translateY},"center","center"),o.clipPath=h}else delete o.clipPath},a.checkIfDone=function(){--this.numElements===0&&(this.instances=this.instances.filter(function(o){return o!=null}),this.callback(this.instances,this.elements))}}(t.ElementsParser.prototype),function(a){var o=a.fabric||(a.fabric={});if(o.Point){o.warn("fabric.Point is already defined");return}o.Point=u;function u(h,c){this.x=h,this.y=c}u.prototype={type:"point",constructor:u,add:function(h){return new u(this.x+h.x,this.y+h.y)},addEquals:function(h){return this.x+=h.x,this.y+=h.y,this},scalarAdd:function(h){return new u(this.x+h,this.y+h)},scalarAddEquals:function(h){return this.x+=h,this.y+=h,this},subtract:function(h){return new u(this.x-h.x,this.y-h.y)},subtractEquals:function(h){return this.x-=h.x,this.y-=h.y,this},scalarSubtract:function(h){return new u(this.x-h,this.y-h)},scalarSubtractEquals:function(h){return this.x-=h,this.y-=h,this},multiply:function(h){return new u(this.x*h,this.y*h)},multiplyEquals:function(h){return this.x*=h,this.y*=h,this},divide:function(h){return new u(this.x/h,this.y/h)},divideEquals:function(h){return this.x/=h,this.y/=h,this},eq:function(h){return this.x===h.x&&this.y===h.y},lt:function(h){return this.x<h.x&&this.y<h.y},lte:function(h){return this.x<=h.x&&this.y<=h.y},gt:function(h){return this.x>h.x&&this.y>h.y},gte:function(h){return this.x>=h.x&&this.y>=h.y},lerp:function(h,c){return typeof c>"u"&&(c=.5),c=Math.max(Math.min(1,c),0),new u(this.x+(h.x-this.x)*c,this.y+(h.y-this.y)*c)},distanceFrom:function(h){var c=this.x-h.x,f=this.y-h.y;return Math.sqrt(c*c+f*f)},midPointFrom:function(h){return this.lerp(h)},min:function(h){return new u(Math.min(this.x,h.x),Math.min(this.y,h.y))},max:function(h){return new u(Math.max(this.x,h.x),Math.max(this.y,h.y))},toString:function(){return this.x+","+this.y},setXY:function(h,c){return this.x=h,this.y=c,this},setX:function(h){return this.x=h,this},setY:function(h){return this.y=h,this},setFromPoint:function(h){return this.x=h.x,this.y=h.y,this},swap:function(h){var c=this.x,f=this.y;this.x=h.x,this.y=h.y,h.x=c,h.y=f},clone:function(){return new u(this.x,this.y)}}}(e),function(a){var o=a.fabric||(a.fabric={});if(o.Intersection){o.warn("fabric.Intersection is already defined");return}function u(h){this.status=h,this.points=[]}o.Intersection=u,o.Intersection.prototype={constructor:u,appendPoint:function(h){return this.points.push(h),this},appendPoints:function(h){return this.points=this.points.concat(h),this}},o.Intersection.intersectLineLine=function(h,c,f,s){var d,v=(s.x-f.x)*(h.y-f.y)-(s.y-f.y)*(h.x-f.x),g=(c.x-h.x)*(h.y-f.y)-(c.y-h.y)*(h.x-f.x),y=(s.y-f.y)*(c.x-h.x)-(s.x-f.x)*(c.y-h.y);if(y!==0){var b=v/y,_=g/y;0<=b&&b<=1&&0<=_&&_<=1?(d=new u("Intersection"),d.appendPoint(new o.Point(h.x+b*(c.x-h.x),h.y+b*(c.y-h.y)))):d=new u}else v===0||g===0?d=new u("Coincident"):d=new u("Parallel");return d},o.Intersection.intersectLinePolygon=function(h,c,f){var s=new u,d=f.length,v,g,y,b;for(b=0;b<d;b++)v=f[b],g=f[(b+1)%d],y=u.intersectLineLine(h,c,v,g),s.appendPoints(y.points);return s.points.length>0&&(s.status="Intersection"),s},o.Intersection.intersectPolygonPolygon=function(h,c){var f=new u,s=h.length,d;for(d=0;d<s;d++){var v=h[d],g=h[(d+1)%s],y=u.intersectLinePolygon(v,g,c);f.appendPoints(y.points)}return f.points.length>0&&(f.status="Intersection"),f},o.Intersection.intersectPolygonRectangle=function(h,c,f){var s=c.min(f),d=c.max(f),v=new o.Point(d.x,s.y),g=new o.Point(s.x,d.y),y=u.intersectLinePolygon(s,v,h),b=u.intersectLinePolygon(v,d,h),_=u.intersectLinePolygon(d,g,h),w=u.intersectLinePolygon(g,s,h),S=new u;return S.appendPoints(y.points),S.appendPoints(b.points),S.appendPoints(_.points),S.appendPoints(w.points),S.points.length>0&&(S.status="Intersection"),S}}(e),function(a){var o=a.fabric||(a.fabric={});if(o.Color){o.warn("fabric.Color is already defined.");return}function u(c){c?this._tryParsingColor(c):this.setSource([0,0,0,1])}o.Color=u,o.Color.prototype={_tryParsingColor:function(c){var f;c in u.colorNameMap&&(c=u.colorNameMap[c]),c==="transparent"&&(f=[255,255,255,0]),f||(f=u.sourceFromHex(c)),f||(f=u.sourceFromRgb(c)),f||(f=u.sourceFromHsl(c)),f||(f=[0,0,0,1]),f&&this.setSource(f)},_rgbToHsl:function(c,f,s){c/=255,f/=255,s/=255;var d,v,g,y=o.util.array.max([c,f,s]),b=o.util.array.min([c,f,s]);if(g=(y+b)/2,y===b)d=v=0;else{var _=y-b;switch(v=g>.5?_/(2-y-b):_/(y+b),y){case c:d=(f-s)/_+(f<s?6:0);break;case f:d=(s-c)/_+2;break;case s:d=(c-f)/_+4;break}d/=6}return[Math.round(d*360),Math.round(v*100),Math.round(g*100)]},getSource:function(){return this._source},setSource:function(c){this._source=c},toRgb:function(){var c=this.getSource();return"rgb("+c[0]+","+c[1]+","+c[2]+")"},toRgba:function(){var c=this.getSource();return"rgba("+c[0]+","+c[1]+","+c[2]+","+c[3]+")"},toHsl:function(){var c=this.getSource(),f=this._rgbToHsl(c[0],c[1],c[2]);return"hsl("+f[0]+","+f[1]+"%,"+f[2]+"%)"},toHsla:function(){var c=this.getSource(),f=this._rgbToHsl(c[0],c[1],c[2]);return"hsla("+f[0]+","+f[1]+"%,"+f[2]+"%,"+c[3]+")"},toHex:function(){var c=this.getSource(),f,s,d;return f=c[0].toString(16),f=f.length===1?"0"+f:f,s=c[1].toString(16),s=s.length===1?"0"+s:s,d=c[2].toString(16),d=d.length===1?"0"+d:d,f.toUpperCase()+s.toUpperCase()+d.toUpperCase()},toHexa:function(){var c=this.getSource(),f;return f=Math.round(c[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(c){var f=this.getSource();return f[3]=c,this.setSource(f),this},toGrayscale:function(){var c=this.getSource(),f=parseInt((c[0]*.3+c[1]*.59+c[2]*.11).toFixed(0),10),s=c[3];return this.setSource([f,f,f,s]),this},toBlackWhite:function(c){var f=this.getSource(),s=(f[0]*.3+f[1]*.59+f[2]*.11).toFixed(0),d=f[3];return c=c||127,s=Number(s)<Number(c)?0:255,this.setSource([s,s,s,d]),this},overlayWith:function(c){c instanceof u||(c=new u(c));var f=[],s=this.getAlpha(),d=.5,v=this.getSource(),g=c.getSource(),y;for(y=0;y<3;y++)f.push(Math.round(v[y]*(1-d)+g[y]*d));return f[3]=s,this.setSource(f),this}},o.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,o.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,o.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,o.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 h(c,f,s){return s<0&&(s+=1),s>1&&(s-=1),s<1/6?c+(f-c)*6*s:s<1/2?f:s<2/3?c+(f-c)*(2/3-s)*6:c}o.Color.fromRgb=function(c){return u.fromSource(u.sourceFromRgb(c))},o.Color.sourceFromRgb=function(c){var f=c.match(u.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]}},o.Color.fromRgba=u.fromRgb,o.Color.fromHsl=function(c){return u.fromSource(u.sourceFromHsl(c))},o.Color.sourceFromHsl=function(c){var f=c.match(u.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),g,y,b;if(d===0)g=y=b=v;else{var _=v<=.5?v*(d+1):v+d-v*d,w=v*2-_;g=h(w,_,s+1/3),y=h(w,_,s),b=h(w,_,s-1/3)}return[Math.round(g*255),Math.round(y*255),Math.round(b*255),f[4]?parseFloat(f[4]):1]}},o.Color.fromHsla=u.fromHsl,o.Color.fromHex=function(c){return u.fromSource(u.sourceFromHex(c))},o.Color.sourceFromHex=function(c){if(c.match(u.reHex)){var f=c.slice(c.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),g=s?f.charAt(1)+f.charAt(1):f.substring(2,4),y=s?f.charAt(2)+f.charAt(2):f.substring(4,6),b=d?s?f.charAt(3)+f.charAt(3):f.substring(6,8):"FF";return[parseInt(v,16),parseInt(g,16),parseInt(y,16),parseFloat((parseInt(b,16)/255).toFixed(2))]}},o.Color.fromSource=function(c){var f=new u;return f.setSource(c),f}}(e),function(a){var o=a.fabric||(a.fabric={}),u=["e","se","s","sw","w","nw","n","ne","e"],h=["ns","nesw","ew","nwse"],c={},f="left",s="top",d="right",v="bottom",g="center",y={top:v,bottom:s,left:d,right:f,center:g},b=o.util.radiansToDegrees,_=Math.sign||function(K){return(K>0)-(K<0)||+K};function w(K,k){var N=K.angle+b(Math.atan2(k.y,k.x))+360;return Math.round(N%360/45)}function S(K,k){var N=k.transform.target,H=N.canvas,D=o.util.object.clone(k);D.target=N,H&&H.fire("object:"+K,D),N.fire(K,k)}function x(K,k){var N=k.canvas,H=N.uniScaleKey,D=K[H];return N.uniformScaling&&!D||!N.uniformScaling&&D}function T(K){return K.originX===g&&K.originY===g}function O(K,k,N){var H=K.lockScalingX,D=K.lockScalingY;return!!(H&&D||!k&&(H||D)&&N||H&&k==="x"||D&&k==="y")}function A(K,k,N){var H="not-allowed",D=x(K,N),B="";if(k.x!==0&&k.y===0?B="x":k.x===0&&k.y!==0&&(B="y"),O(N,B,D))return H;var X=w(N,k);return u[X]+"-resize"}function $(K,k,N){var H="not-allowed";if(k.x!==0&&N.lockSkewingY||k.y!==0&&N.lockSkewingX)return H;var D=w(N,k)%4;return h[D]+"-resize"}function j(K,k,N){return K[N.canvas.altActionKey]?c.skewCursorStyleHandler(K,k,N):c.scaleCursorStyleHandler(K,k,N)}function R(K,k,N){var H=K[N.canvas.altActionKey];if(k.x===0)return H?"skewX":"scaleY";if(k.y===0)return H?"skewY":"scaleX"}function F(K,k,N){return N.lockRotation?"not-allowed":k.cursorStyle}function E(K,k,N,H){return{e:K,transform:k,pointer:{x:N,y:H}}}function W(K){return function(k,N,H,D){var B=N.target,X=B.getCenterPoint(),ae=B.translateToOriginPoint(X,N.originX,N.originY),ne=K(k,N,H,D);return B.setPositionByOrigin(ae,N.originX,N.originY),ne}}function te(K,k){return function(N,H,D,B){var X=k(N,H,D,B);return X&&S(K,E(N,H,D,B)),X}}function Q(K,k,N,H,D){var B=K.target,X=B.controls[K.corner],ae=B.canvas.getZoom(),ne=B.padding/ae,G=B.toLocalPoint(new o.Point(H,D),k,N);return G.x>=ne&&(G.x-=ne),G.x<=-ne&&(G.x+=ne),G.y>=ne&&(G.y-=ne),G.y<=ne&&(G.y+=ne),G.x-=X.offsetX,G.y-=X.offsetY,G}function le(K){return K.flipX!==K.flipY}function I(K,k,N,H,D){if(K[k]!==0){var B=K._getTransformedDimensions()[H],X=D/B*K[N];K.set(N,X)}}function z(K,k,N,H){var D=k.target,B=D._getTransformedDimensions(0,D.skewY),X=Q(k,k.originX,k.originY,N,H),ae=Math.abs(X.x*2)-B.x,ne=D.skewX,G;ae<2?G=0:(G=b(Math.atan2(ae/D.scaleX,B.y/D.scaleY)),k.originX===f&&k.originY===v&&(G=-G),k.originX===d&&k.originY===s&&(G=-G),le(D)&&(G=-G));var pe=ne!==G;if(pe){var ie=D._getTransformedDimensions().y;D.set("skewX",G),I(D,"skewY","scaleY","y",ie)}return pe}function M(K,k,N,H){var D=k.target,B=D._getTransformedDimensions(D.skewX,0),X=Q(k,k.originX,k.originY,N,H),ae=Math.abs(X.y*2)-B.y,ne=D.skewY,G;ae<2?G=0:(G=b(Math.atan2(ae/D.scaleY,B.x/D.scaleX)),k.originX===f&&k.originY===v&&(G=-G),k.originX===d&&k.originY===s&&(G=-G),le(D)&&(G=-G));var pe=ne!==G;if(pe){var ie=D._getTransformedDimensions().x;D.set("skewY",G),I(D,"skewX","scaleX","x",ie)}return pe}function L(K,k,N,H){var D=k.target,B=D.skewX,X,ae=k.originY;if(D.lockSkewingX)return!1;if(B===0){var ne=Q(k,g,g,N,H);ne.x>0?X=f:X=d}else B>0&&(X=ae===s?f:d),B<0&&(X=ae===s?d:f),le(D)&&(X=X===f?d:f);k.originX=X;var G=te("skewing",W(z));return G(K,k,N,H)}function J(K,k,N,H){var D=k.target,B=D.skewY,X,ae=k.originX;if(D.lockSkewingY)return!1;if(B===0){var ne=Q(k,g,g,N,H);ne.y>0?X=s:X=v}else B>0&&(X=ae===f?s:v),B<0&&(X=ae===f?v:s),le(D)&&(X=X===s?v:s);k.originY=X;var G=te("skewing",W(M));return G(K,k,N,H)}function U(K,k,N,H){var D=k,B=D.target,X=B.translateToOriginPoint(B.getCenterPoint(),D.originX,D.originY);if(B.lockRotation)return!1;var ae=Math.atan2(D.ey-X.y,D.ex-X.x),ne=Math.atan2(H-X.y,N-X.x),G=b(ne-ae+D.theta),pe=!0;if(B.snapAngle>0){var ie=B.snapAngle,ge=B.snapThreshold||ie,we=Math.ceil(G/ie)*ie,ke=Math.floor(G/ie)*ie;Math.abs(G-ke)<ge?G=ke:Math.abs(G-we)<ge&&(G=we)}return G<0&&(G=360+G),G%=360,pe=B.angle!==G,B.angle=G,pe}function P(K,k,N,H,D){D=D||{};var B=k.target,X=B.lockScalingX,ae=B.lockScalingY,ne=D.by,G,pe,ie,ge,we=x(K,B),ke=O(B,ne,we),Ee,Pe,ye=k.gestureScale;if(ke)return!1;if(ye)pe=k.scaleX*ye,ie=k.scaleY*ye;else{if(G=Q(k,k.originX,k.originY,N,H),Ee=ne!=="y"?_(G.x):1,Pe=ne!=="x"?_(G.y):1,k.signX||(k.signX=Ee),k.signY||(k.signY=Pe),B.lockScalingFlip&&(k.signX!==Ee||k.signY!==Pe))return!1;if(ge=B._getTransformedDimensions(),we&&!ne){var Ce=Math.abs(G.x)+Math.abs(G.y),Me=k.original,De=Math.abs(ge.x*Me.scaleX/B.scaleX)+Math.abs(ge.y*Me.scaleY/B.scaleY),lt=Ce/De;pe=Me.scaleX*lt,ie=Me.scaleY*lt}else pe=Math.abs(G.x*B.scaleX/ge.x),ie=Math.abs(G.y*B.scaleY/ge.y);T(k)&&(pe*=2,ie*=2),k.signX!==Ee&&ne!=="y"&&(k.originX=y[k.originX],pe*=-1,k.signX=Ee),k.signY!==Pe&&ne!=="x"&&(k.originY=y[k.originY],ie*=-1,k.signY=Pe)}var wt=B.scaleX,ut=B.scaleY;return ne?(ne==="x"&&B.set("scaleX",pe),ne==="y"&&B.set("scaleY",ie)):(!X&&B.set("scaleX",pe),!ae&&B.set("scaleY",ie)),wt!==B.scaleX||ut!==B.scaleY}function q(K,k,N,H){return P(K,k,N,H)}function Z(K,k,N,H){return P(K,k,N,H,{by:"x"})}function re(K,k,N,H){return P(K,k,N,H,{by:"y"})}function de(K,k,N,H){return K[k.target.canvas.altActionKey]?c.skewHandlerX(K,k,N,H):c.scalingY(K,k,N,H)}function ve(K,k,N,H){return K[k.target.canvas.altActionKey]?c.skewHandlerY(K,k,N,H):c.scalingX(K,k,N,H)}function me(K,k,N,H){var D=k.target,B=Q(k,k.originX,k.originY,N,H),X=D.strokeWidth/(D.strokeUniform?D.scaleX:1),ae=T(k)?2:1,ne=D.width,G=Math.abs(B.x*ae/D.scaleX)-X;return D.set("width",Math.max(G,0)),ne!==G}function Y(K,k,N,H){var D=k.target,B=N-k.offsetX,X=H-k.offsetY,ae=!D.get("lockMovementX")&&D.left!==B,ne=!D.get("lockMovementY")&&D.top!==X;return ae&&D.set("left",B),ne&&D.set("top",X),(ae||ne)&&S("moving",E(K,k,N,H)),ae||ne}c.scaleCursorStyleHandler=A,c.skewCursorStyleHandler=$,c.scaleSkewCursorStyleHandler=j,c.rotationWithSnapping=te("rotating",W(U)),c.scalingEqually=te("scaling",W(q)),c.scalingX=te("scaling",W(Z)),c.scalingY=te("scaling",W(re)),c.scalingYOrSkewingX=de,c.scalingXOrSkewingY=ve,c.changeWidth=te("resizing",W(me)),c.skewHandlerX=L,c.skewHandlerY=J,c.dragHandler=Y,c.scaleOrSkewActionName=R,c.rotationStyleHandler=F,c.fireEvent=S,c.wrapWithFixedAnchor=W,c.wrapWithFireEvent=te,c.getLocalPoint=Q,o.controlsUtils=c}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.degreesToRadians,h=o.controlsUtils;function c(s,d,v,g,y){g=g||{};var b=this.sizeX||g.cornerSize||y.cornerSize,_=this.sizeY||g.cornerSize||y.cornerSize,w=typeof g.transparentCorners<"u"?g.transparentCorners:y.transparentCorners,S=w?"stroke":"fill",x=!w&&(g.cornerStrokeColor||y.cornerStrokeColor),T=d,O=v,A;s.save(),s.fillStyle=g.cornerColor||y.cornerColor,s.strokeStyle=g.cornerStrokeColor||y.cornerStrokeColor,b>_?(A=b,s.scale(1,_/b),O=v*b/_):_>b?(A=_,s.scale(b/_,1),T=d*_/b):A=b,s.lineWidth=1,s.beginPath(),s.arc(T,O,A/2,0,2*Math.PI,!1),s[S](),x&&s.stroke(),s.restore()}function f(s,d,v,g,y){g=g||{};var b=this.sizeX||g.cornerSize||y.cornerSize,_=this.sizeY||g.cornerSize||y.cornerSize,w=typeof g.transparentCorners<"u"?g.transparentCorners:y.transparentCorners,S=w?"stroke":"fill",x=!w&&(g.cornerStrokeColor||y.cornerStrokeColor),T=b/2,O=_/2;s.save(),s.fillStyle=g.cornerColor||y.cornerColor,s.strokeStyle=g.cornerStrokeColor||y.cornerStrokeColor,s.lineWidth=1,s.translate(d,v),s.rotate(u(y.angle)),s[S+"Rect"](-T,-O,b,_),x&&s.strokeRect(-T,-O,b,_),s.restore()}h.renderCircleControl=c,h.renderSquareControl=f}(e),function(a){var o=a.fabric||(a.fabric={});function u(h){for(var c in h)this[c]=h[c]}o.Control=u,o.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(h,c){return c.cursorStyle},getActionName:function(h,c){return c.actionName},getVisibility:function(h,c){var f=h._controlsVisibility;return f&&typeof f[c]<"u"?f[c]:this.visible},setVisibility:function(h){this.visible=h},positionHandler:function(h,c){var f=o.util.transformPoint({x:this.x*h.x+this.offsetX,y:this.y*h.y+this.offsetY},c);return f},calcCornerCoords:function(h,c,f,s,d){var v,g,y,b,_=d?this.touchSizeX:this.sizeX,w=d?this.touchSizeY:this.sizeY;if(_&&w&&_!==w){var S=Math.atan2(w,_),x=Math.sqrt(_*_+w*w)/2,T=S-o.util.degreesToRadians(h),O=Math.PI/2-S-o.util.degreesToRadians(h);v=x*o.util.cos(T),g=x*o.util.sin(T),y=x*o.util.cos(O),b=x*o.util.sin(O)}else{var A=_&&w?_:c;x=A*.7071067812;var T=o.util.degreesToRadians(45-h);v=y=x*o.util.cos(T),g=b=x*o.util.sin(T)}return{tl:{x:f-b,y:s-y},tr:{x:f+v,y:s-g},bl:{x:f-v,y:s+g},br:{x:f+b,y:s+y}}},render:function(h,c,f,s,d){switch(s=s||{},s.cornerStyle||d.cornerStyle){case"circle":o.controlsUtils.renderCircleControl.call(this,h,c,f,s,d);break;default:o.controlsUtils.renderSquareControl.call(this,h,c,f,s,d)}}}}(e),function(){function a(f,s){var d=f.getAttribute("style"),v=f.getAttribute("offset")||0,g,y,b,_;if(v=parseFloat(v)/(/%$/.test(v)?100:1),v=v<0?0:v>1?1:v,d){var w=d.split(/\s*;\s*/);for(w[w.length-1]===""&&w.pop(),_=w.length;_--;){var S=w[_].split(/\s*:\s*/),x=S[0].trim(),T=S[1].trim();x==="stop-color"?g=T:x==="stop-opacity"&&(b=T)}}return g||(g=f.getAttribute("stop-color")||"rgb(0,0,0)"),b||(b=f.getAttribute("stop-opacity")),g=new t.Color(g),y=g.getAlpha(),b=isNaN(parseFloat(b))?1:parseFloat(b),b*=y*s,{offset:v,color:g.toRgb(),opacity:b}}function o(f){return{x1:f.getAttribute("x1")||0,y1:f.getAttribute("y1")||0,x2:f.getAttribute("x2")||"100%",y2:f.getAttribute("y2")||0}}function u(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 h=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,y){var d=h(this.coords,!0),v,g,y=y||{},b,_,w=h(this.colorStops,!0),S=d.r1>d.r2,x=this.gradientTransform?this.gradientTransform.concat():t.iMatrix.concat(),T=-this.offsetX,O=-this.offsetY,A=!!y.additionalTransform,$=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox";if(w.sort(function(W,te){return W.offset-te.offset}),$==="objectBoundingBox"?(T/=f.width,O/=f.height):(T+=f.width/2,O+=f.height/2),f.type==="path"&&this.gradientUnits!=="percentage"&&(T-=f.pathOffset.x,O-=f.pathOffset.y),x[4]-=T,x[5]-=O,_='id="SVGID_'+this.id+'" gradientUnits="'+$+'"',_+=' gradientTransform="'+(A?y.additionalTransform+" ":"")+t.util.matrixToSVG(x)+'" ',this.type==="linear"?b=["<linearGradient ",_,' x1="',d.x1,'" y1="',d.y1,'" x2="',d.x2,'" y2="',d.y2,`">
|
||
`]:this.type==="radial"&&(b=["<radialGradient ",_,' 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(w=w.concat(),w.reverse(),v=0,g=w.length;v<g;v++)w[v].offset=1-w[v].offset;var j=Math.min(d.r1,d.r2);if(j>0){var R=Math.max(d.r1,d.r2),F=j/R;for(v=0,g=w.length;v<g;v++)w[v].offset+=F*(1-w[v].offset)}}for(v=0,g=w.length;v<g;v++){var E=w[v];b.push("<stop ",'offset="',E.offset*100+"%",'" style="stop-color:',E.color,typeof E.opacity<"u"?";stop-opacity: "+E.opacity:";",`"/>
|
||
`)}return b.push(this.type==="linear"?`</linearGradient>
|
||
`:`</radialGradient>
|
||
`),b.join("")},toLive:function(f){var s,d=t.util.object.clone(this.coords),v,g;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,g=this.colorStops.length;v<g;v++){var y=this.colorStops[v].color,b=this.colorStops[v].opacity,_=this.colorStops[v].offset;typeof b<"u"&&(y=new t.Color(y).setAlpha(b).toRgba()),s.addColorStop(_,y)}return s}}}),t.util.object.extend(t.Gradient,{fromElement:function(f,s,d,v){var g=parseFloat(d)/(/%$/.test(d)?100:1);g=g<0?0:g>1?1:g,isNaN(g)&&(g=1);var y=f.getElementsByTagName("stop"),b,_=f.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage",w=f.getAttribute("gradientTransform")||"",S=[],x,T,O=0,A=0,$;for(f.nodeName==="linearGradient"||f.nodeName==="LINEARGRADIENT"?(b="linear",x=o(f)):(b="radial",x=u(f)),T=y.length;T--;)S.push(a(y[T],g));$=t.parseTransformAttribute(w),c(s,x,v,_),_==="pixels"&&(O=-s.left,A=-s.top);var j=new t.Gradient({id:f.getAttribute("id"),type:b,coords:x,colorStops:S,gradientUnits:_,gradientTransform:$,offsetX:O,offsetY:A});return j}});function c(f,s,d,v){var g,y;Object.keys(s).forEach(function(b){g=s[b],g==="Infinity"?y=1:g==="-Infinity"?y=0:(y=parseFloat(s[b],10),typeof g=="string"&&/^(\d+\.\d+)%|(\d+)%$/.test(g)&&(y*=.01,v==="pixels"&&((b==="x1"||b==="x2"||b==="r2")&&(y*=d.viewBoxWidth||d.width),(b==="y1"||b==="y2")&&(y*=d.viewBoxHeight||d.height)))),s[b]=y})}}(),function(){var a=t.util.toFixed;t.Pattern=t.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(o,u){if(o||(o={}),this.id=t.Object.__uid++,this.setOptions(o),!o.source||o.source&&typeof o.source!="string"){u&&u(this);return}else{var h=this;this.source=t.util.createImage(),t.util.loadImage(o.source,function(c,f){h.source=c,u&&u(h,f)},null,this.crossOrigin)}},toObject:function(o){var u=t.Object.NUM_FRACTION_DIGITS,h,c;return typeof this.source.src=="string"?h=this.source.src:typeof this.source=="object"&&this.source.toDataURL&&(h=this.source.toDataURL()),c={type:"pattern",source:h,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:a(this.offsetX,u),offsetY:a(this.offsetY,u),patternTransform:this.patternTransform?this.patternTransform.concat():null},t.util.populateWithProperties(this,c,o),c},toSVG:function(o){var u=typeof this.source=="function"?this.source():this.source,h=u.width/o.width,c=u.height/o.height,f=this.offsetX/o.width,s=this.offsetY/o.height,d="";return(this.repeat==="repeat-x"||this.repeat==="no-repeat")&&(c=1,s&&(c+=Math.abs(s))),(this.repeat==="repeat-y"||this.repeat==="no-repeat")&&(h=1,f&&(h+=Math.abs(f))),u.src?d=u.src:u.toDataURL&&(d=u.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+f+'" y="'+s+'" width="'+h+'" height="'+c+`">
|
||
<image x="0" y="0" width="`+u.width+'" height="'+u.height+'" xlink:href="'+d+`"></image>
|
||
</pattern>
|
||
`},setOptions:function(o){for(var u in o)this[u]=o[u]},toLive:function(o){var u=this.source;return!u||typeof u.src<"u"&&(!u.complete||u.naturalWidth===0||u.naturalHeight===0)?"":o.createPattern(u,this.repeat)}})}(),function(a){var o=a.fabric||(a.fabric={}),u=o.util.toFixed;if(o.Shadow){o.warn("fabric.Shadow is already defined.");return}o.Shadow=o.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(h){typeof h=="string"&&(h=this._parseShadow(h));for(var c in h)this[c]=h[c];this.id=o.Object.__uid++},_parseShadow:function(h){var c=h.trim(),f=o.Shadow.reOffsetsAndBlur.exec(c)||[],s=c.replace(o.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(h){var c=40,f=40,s=o.Object.NUM_FRACTION_DIGITS,d=o.util.rotateVector({x:this.offsetX,y:this.offsetY},o.util.degreesToRadians(-h.angle)),v=20,g=new o.Color(this.color);return h.width&&h.height&&(c=u((Math.abs(d.x)+this.blur)/h.width,s)*100+v,f=u((Math.abs(d.y)+this.blur)/h.height,s)*100+v),h.flipX&&(d.x*=-1),h.flipY&&(d.y*=-1),'<filter id="SVGID_'+this.id+'" y="-'+f+'%" height="'+(100+2*f)+'%" x="-'+c+'%" width="'+(100+2*c)+`%" >
|
||
<feGaussianBlur in="SourceAlpha" stdDeviation="`+u(this.blur?this.blur/2:0,s)+`"></feGaussianBlur>
|
||
<feOffset dx="`+u(d.x,s)+'" dy="'+u(d.y,s)+`" result="oBlur" ></feOffset>
|
||
<feFlood flood-color="`+g.toRgb()+'" flood-opacity="'+g.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 h={},c=o.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(f){this[f]!==c[f]&&(h[f]=this[f])},this),h}}),o.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 a=t.util.object.extend,o=t.util.getElementOffset,u=t.util.removeFromArray,h=t.util.toFixed,c=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(g,y){y||(y={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(g,y)},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(g,y){var b=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(g),this._initOptions(y),this.interactive||this._initRetinaScaling(),y.overlayImage&&this.setOverlayImage(y.overlayImage,b),y.backgroundImage&&this.setBackgroundImage(y.backgroundImage,b),y.backgroundColor&&this.setBackgroundColor(y.backgroundColor,b),y.overlayColor&&this.setOverlayColor(y.overlayColor,b),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 g=t.devicePixelRatio;this.__initRetinaScaling(g,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(g,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(g,y,b){y.setAttribute("width",this.width*g),y.setAttribute("height",this.height*g),b.scale(g,g)},calcOffset:function(){return this._offset=o(this.lowerCanvasEl),this},setOverlayImage:function(g,y,b){return this.__setBgOverlayImage("overlayImage",g,y,b)},setBackgroundImage:function(g,y,b){return this.__setBgOverlayImage("backgroundImage",g,y,b)},setOverlayColor:function(g,y){return this.__setBgOverlayColor("overlayColor",g,y)},setBackgroundColor:function(g,y){return this.__setBgOverlayColor("backgroundColor",g,y)},__setBgOverlayImage:function(g,y,b,_){return typeof y=="string"?t.util.loadImage(y,function(w,S){if(w){var x=new t.Image(w,_);this[g]=x,x.canvas=this}b&&b(w,S)},this,_&&_.crossOrigin):(_&&y.setOptions(_),this[g]=y,y&&(y.canvas=this),b&&b(y,!1)),this},__setBgOverlayColor:function(g,y,b){return this[g]=y,this._initGradient(y,g),this._initPattern(y,g,b),this},_createCanvasElement:function(){var g=d();if(!g||(g.style||(g.style={}),typeof g.getContext>"u"))throw v;return g},_initOptions:function(g){var y=this.lowerCanvasEl;this._setOptions(g),this.width=this.width||parseInt(y.width,10)||0,this.height=this.height||parseInt(y.height,10)||0,this.lowerCanvasEl.style&&(y.width=this.width,y.height=this.height,y.style.width=this.width+"px",y.style.height=this.height+"px",this.viewportTransform=this.viewportTransform.slice())},_createLowerCanvas:function(g){g&&g.getContext?this.lowerCanvasEl=g:this.lowerCanvasEl=t.util.getById(g)||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(g,y){return this.setDimensions({width:g},y)},setHeight:function(g,y){return this.setDimensions({height:g},y)},setDimensions:function(g,y){var b;y=y||{};for(var _ in g)b=g[_],y.cssOnly||(this._setBackstoreDimension(_,g[_]),b+="px",this.hasLostContext=!0),y.backstoreOnly||this._setCssDimension(_,b);return this._isCurrentlyDrawing&&this.freeDrawingBrush&&this.freeDrawingBrush._setBrushStyles(this.contextTop),this._initRetinaScaling(),this.calcOffset(),y.cssOnly||this.requestRenderAll(),this},_setBackstoreDimension:function(g,y){return this.lowerCanvasEl[g]=y,this.upperCanvasEl&&(this.upperCanvasEl[g]=y),this.cacheCanvasEl&&(this.cacheCanvasEl[g]=y),this[g]=y,this},_setCssDimension:function(g,y){return this.lowerCanvasEl.style[g]=y,this.upperCanvasEl&&(this.upperCanvasEl.style[g]=y),this.wrapperEl&&(this.wrapperEl.style[g]=y),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(g){var y=this._activeObject,b=this.backgroundImage,_=this.overlayImage,w,S,x;for(this.viewportTransform=g,S=0,x=this._objects.length;S<x;S++)w=this._objects[S],w.group||w.setCoords(!0);return y&&y.setCoords(),b&&b.setCoords(!0),_&&_.setCoords(!0),this.calcViewportBoundaries(),this.renderOnAddRemove&&this.requestRenderAll(),this},zoomToPoint:function(g,y){var b=g,_=this.viewportTransform.slice(0);g=c(g,f(this.viewportTransform)),_[0]=y,_[3]=y;var w=c(g,_);return _[4]+=b.x-w.x,_[5]+=b.y-w.y,this.setViewportTransform(_)},setZoom:function(g){return this.zoomToPoint(new t.Point(0,0),g),this},absolutePan:function(g){var y=this.viewportTransform.slice(0);return y[4]=-g.x,y[5]=-g.y,this.setViewportTransform(y)},relativePan:function(g){return this.absolutePan(new t.Point(-g.x-this.viewportTransform[4],-g.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(g){this.stateful&&g.setupState(),g._set("canvas",this),g.setCoords(),this.fire("object:added",{target:g}),g.fire("added")},_onObjectRemoved:function(g){this.fire("object:removed",{target:g}),g.fire("removed"),delete g.canvas},clearContext:function(g){return g.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 g=this.contextContainer;return this.renderCanvas(g,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 g={},y=this.width,b=this.height,_=f(this.viewportTransform);return g.tl=c({x:0,y:0},_),g.br=c({x:y,y:b},_),g.tr=new t.Point(g.br.x,g.tl.y),g.bl=new t.Point(g.tl.x,g.br.y),this.vptCoords=g,g},cancelRequestedRender:function(){this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(g,y){var b=this.viewportTransform,_=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(g),t.util.setImageSmoothing(g,this.imageSmoothingEnabled),this.fire("before:render",{ctx:g}),this._renderBackground(g),g.save(),g.transform(b[0],b[1],b[2],b[3],b[4],b[5]),this._renderObjects(g,y),g.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(g),_&&(_.canvas=this,_.shouldCache(),_._transformDone=!0,_.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(g)),this._renderOverlay(g),this.controlsAboveOverlay&&this.interactive&&this.drawControls(g),this.fire("after:render",{ctx:g})},drawClipPathOnCanvas:function(g){var y=this.viewportTransform,b=this.clipPath;g.save(),g.transform(y[0],y[1],y[2],y[3],y[4],y[5]),g.globalCompositeOperation="destination-in",b.transform(g),g.scale(1/b.zoomX,1/b.zoomY),g.drawImage(b._cacheCanvas,-b.cacheTranslationX,-b.cacheTranslationY),g.restore()},_renderObjects:function(g,y){var b,_;for(b=0,_=y.length;b<_;++b)y[b]&&y[b].render(g)},_renderBackgroundOrOverlay:function(g,y){var b=this[y+"Color"],_=this[y+"Image"],w=this.viewportTransform,S=this[y+"Vpt"];if(!(!b&&!_)){if(b){g.save(),g.beginPath(),g.moveTo(0,0),g.lineTo(this.width,0),g.lineTo(this.width,this.height),g.lineTo(0,this.height),g.closePath(),g.fillStyle=b.toLive?b.toLive(g,this):b,S&&g.transform(w[0],w[1],w[2],w[3],w[4],w[5]),g.transform(1,0,0,1,b.offsetX||0,b.offsetY||0);var x=b.gradientTransform||b.patternTransform;x&&g.transform(x[0],x[1],x[2],x[3],x[4],x[5]),g.fill(),g.restore()}_&&(g.save(),S&&g.transform(w[0],w[1],w[2],w[3],w[4],w[5]),_.render(g),g.restore())}},_renderBackground:function(g){this._renderBackgroundOrOverlay(g,"background")},_renderOverlay:function(g){this._renderBackgroundOrOverlay(g,"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(g){return this._centerObject(g,new t.Point(this.getCenterPoint().x,g.getCenterPoint().y))},centerObjectV:function(g){return this._centerObject(g,new t.Point(g.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(g){var y=this.getCenterPoint();return this._centerObject(g,y)},viewportCenterObject:function(g){var y=this.getVpCenter();return this._centerObject(g,y)},viewportCenterObjectH:function(g){var y=this.getVpCenter();return this._centerObject(g,new t.Point(y.x,g.getCenterPoint().y)),this},viewportCenterObjectV:function(g){var y=this.getVpCenter();return this._centerObject(g,new t.Point(g.getCenterPoint().x,y.y))},getVpCenter:function(){var g=this.getCenterPoint(),y=f(this.viewportTransform);return c(g,y)},_centerObject:function(g,y){return g.setPositionByOrigin(y,"center","center"),g.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(g){return this.toDatalessObject(g)},toObject:function(g){return this._toObjectMethod("toObject",g)},toDatalessObject:function(g){return this._toObjectMethod("toDatalessObject",g)},_toObjectMethod:function(g,y){var b=this.clipPath,_={version:t.version,objects:this._toObjects(g,y)};return b&&!b.excludeFromExport&&(_.clipPath=this._toObject(this.clipPath,g,y)),a(_,this.__serializeBgOverlay(g,y)),t.util.populateWithProperties(this,_,y),_},_toObjects:function(g,y){return this._objects.filter(function(b){return!b.excludeFromExport}).map(function(b){return this._toObject(b,g,y)},this)},_toObject:function(g,y,b){var _;this.includeDefaultValues||(_=g.includeDefaultValues,g.includeDefaultValues=!1);var w=g[y](b);return this.includeDefaultValues||(g.includeDefaultValues=_),w},__serializeBgOverlay:function(g,y){var b={},_=this.backgroundImage,w=this.overlayImage,S=this.backgroundColor,x=this.overlayColor;return S&&S.toObject?S.excludeFromExport||(b.background=S.toObject(y)):S&&(b.background=S),x&&x.toObject?x.excludeFromExport||(b.overlay=x.toObject(y)):x&&(b.overlay=x),_&&!_.excludeFromExport&&(b.backgroundImage=this._toObject(_,g,y)),w&&!w.excludeFromExport&&(b.overlayImage=this._toObject(w,g,y)),b},svgViewportTransformation:!0,toSVG:function(g,y){g||(g={}),g.reviver=y;var b=[];return this._setSVGPreamble(b,g),this._setSVGHeader(b,g),this.clipPath&&b.push('<g clip-path="url(#'+this.clipPath.clipPathId+`)" >
|
||
`),this._setSVGBgOverlayColor(b,"background"),this._setSVGBgOverlayImage(b,"backgroundImage",y),this._setSVGObjects(b,y),this.clipPath&&b.push(`</g>
|
||
`),this._setSVGBgOverlayColor(b,"overlay"),this._setSVGBgOverlayImage(b,"overlayImage",y),b.push("</svg>"),b.join("")},_setSVGPreamble:function(g,y){y.suppressPreamble||g.push('<?xml version="1.0" encoding="',y.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(g,y){var b=y.width||this.width,_=y.height||this.height,w,S='viewBox="0 0 '+this.width+" "+this.height+'" ',x=t.Object.NUM_FRACTION_DIGITS;y.viewBox?S='viewBox="'+y.viewBox.x+" "+y.viewBox.y+" "+y.viewBox.width+" "+y.viewBox.height+'" ':this.svgViewportTransformation&&(w=this.viewportTransform,S='viewBox="'+h(-w[4]/w[0],x)+" "+h(-w[5]/w[3],x)+" "+h(this.width/w[0],x)+" "+h(this.height/w[3],x)+'" '),g.push("<svg ",'xmlns="http://www.w3.org/2000/svg" ','xmlns:xlink="http://www.w3.org/1999/xlink" ','version="1.1" ','width="',b,'" ','height="',_,'" ',S,`xml:space="preserve">
|
||
`,"<desc>Created with Fabric.js ",t.version,`</desc>
|
||
`,`<defs>
|
||
`,this.createSVGFontFacesMarkup(),this.createSVGRefElementsMarkup(),this.createSVGClipPathMarkup(y),`</defs>
|
||
`)},createSVGClipPathMarkup:function(g){var y=this.clipPath;return y?(y.clipPathId="CLIPPATH_"+t.Object.__uid++,'<clipPath id="'+y.clipPathId+`" >
|
||
`+this.clipPath.toClipPathSVG(g.reviver)+`</clipPath>
|
||
`):""},createSVGRefElementsMarkup:function(){var g=this,y=["background","overlay"].map(function(b){var _=g[b+"Color"];if(_&&_.toLive){var w=g[b+"Vpt"],S=g.viewportTransform,x={width:g.width/(w?S[0]:1),height:g.height/(w?S[3]:1)};return _.toSVG(x,{additionalTransform:w?t.util.matrixToSVG(S):""})}});return y.join("")},createSVGFontFacesMarkup:function(){var g="",y={},b,_,w,S,x,T,O,A,$,j=t.fontPaths,R=[];for(this._objects.forEach(function E(W){R.push(W),W._objects&&W._objects.forEach(E)}),A=0,$=R.length;A<$;A++)if(b=R[A],_=b.fontFamily,!(b.type.indexOf("text")===-1||y[_]||!j[_])&&(y[_]=!0,!!b.styles)){w=b.styles;for(x in w){S=w[x];for(O in S)T=S[O],_=T.fontFamily,!y[_]&&j[_]&&(y[_]=!0)}}for(var F in y)g+=[` @font-face {
|
||
`," font-family: '",F,`';
|
||
`," src: url('",j[F],`');
|
||
`,` }
|
||
`].join("");return g&&(g=[' <style type="text/css">',`<![CDATA[
|
||
`,g,"]]>",`</style>
|
||
`].join("")),g},_setSVGObjects:function(g,y){var b,_,w,S=this._objects;for(_=0,w=S.length;_<w;_++)b=S[_],!b.excludeFromExport&&this._setSVGObject(g,b,y)},_setSVGObject:function(g,y,b){g.push(y.toSVG(b))},_setSVGBgOverlayImage:function(g,y,b){this[y]&&!this[y].excludeFromExport&&this[y].toSVG&&g.push(this[y].toSVG(b))},_setSVGBgOverlayColor:function(g,y){var b=this[y+"Color"],_=this.viewportTransform,w=this.width,S=this.height;if(!!b)if(b.toLive){var x=b.repeat,T=t.util.invertTransform(_),O=this[y+"Vpt"],A=O?t.util.matrixToSVG(T):"";g.push('<rect transform="'+A+" translate(",w/2,",",S/2,')"',' x="',b.offsetX-w/2,'" y="',b.offsetY-S/2,'" ','width="',x==="repeat-y"||x==="no-repeat"?b.source.width:w,'" height="',x==="repeat-x"||x==="no-repeat"?b.source.height:S,'" fill="url(#SVGID_'+b.id+')"',`></rect>
|
||
`)}else g.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',b,'"',`></rect>
|
||
`)},sendToBack:function(g){if(!g)return this;var y=this._activeObject,b,_,w;if(g===y&&g.type==="activeSelection")for(w=y._objects,b=w.length;b--;)_=w[b],u(this._objects,_),this._objects.unshift(_);else u(this._objects,g),this._objects.unshift(g);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(g){if(!g)return this;var y=this._activeObject,b,_,w;if(g===y&&g.type==="activeSelection")for(w=y._objects,b=0;b<w.length;b++)_=w[b],u(this._objects,_),this._objects.push(_);else u(this._objects,g),this._objects.push(g);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(g,y){if(!g)return this;var b=this._activeObject,_,w,S,x,T,O=0;if(g===b&&g.type==="activeSelection")for(T=b._objects,_=0;_<T.length;_++)w=T[_],S=this._objects.indexOf(w),S>0+O&&(x=S-1,u(this._objects,w),this._objects.splice(x,0,w)),O++;else S=this._objects.indexOf(g),S!==0&&(x=this._findNewLowerIndex(g,S,y),u(this._objects,g),this._objects.splice(x,0,g));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(g,y,b){var _,w;if(b)for(_=y,w=y-1;w>=0;--w){var S=g.intersectsWithObject(this._objects[w])||g.isContainedWithinObject(this._objects[w])||this._objects[w].isContainedWithinObject(g);if(S){_=w;break}}else _=y-1;return _},bringForward:function(g,y){if(!g)return this;var b=this._activeObject,_,w,S,x,T,O=0;if(g===b&&g.type==="activeSelection")for(T=b._objects,_=T.length;_--;)w=T[_],S=this._objects.indexOf(w),S<this._objects.length-1-O&&(x=S+1,u(this._objects,w),this._objects.splice(x,0,w)),O++;else S=this._objects.indexOf(g),S!==this._objects.length-1&&(x=this._findNewUpperIndex(g,S,y),u(this._objects,g),this._objects.splice(x,0,g));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(g,y,b){var _,w,S;if(b)for(_=y,w=y+1,S=this._objects.length;w<S;++w){var x=g.intersectsWithObject(this._objects[w])||g.isContainedWithinObject(this._objects[w])||this._objects[w].isContainedWithinObject(g);if(x){_=w;break}}else _=y+1;return _},moveTo:function(g,y){return u(this._objects,g),this._objects.splice(y,0,g),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject(function(g){g.dispose&&g.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+" }>"}}),a(t.StaticCanvas.prototype,t.Observable),a(t.StaticCanvas.prototype,t.Collection),a(t.StaticCanvas.prototype,t.DataURLExporter),a(t.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(g){var y=d();if(!y||!y.getContext)return null;var b=y.getContext("2d");if(!b)return null;switch(g){case"setLineDash":return typeof b.setLineDash<"u";default:return null}}}),t.StaticCanvas.prototype.toJSON=t.StaticCanvas.prototype.toObject,t.isLikelyNode&&(t.StaticCanvas.prototype.createPNGStream=function(){var g=s(this.lowerCanvasEl);return g&&g.createPNGStream()},t.StaticCanvas.prototype.createJPEGStream=function(g){var y=s(this.lowerCanvasEl);return y&&y.createJPEGStream(g)})}(),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(a){a.strokeStyle=this.color,a.lineWidth=this.width,a.lineCap=this.strokeLineCap,a.miterLimit=this.strokeMiterLimit,a.lineJoin=this.strokeLineJoin,a.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(a){var o=this.canvas.viewportTransform;a.save(),a.transform(o[0],o[1],o[2],o[3],o[4],o[5])},_setShadow:function(){if(!!this.shadow){var a=this.canvas,o=this.shadow,u=a.contextTop,h=a.getZoom();a&&a._isRetinaScaling()&&(h*=t.devicePixelRatio),u.shadowColor=o.color,u.shadowBlur=o.blur*h,u.shadowOffsetX=o.offsetX*h,u.shadowOffsetY=o.offsetY*h}},needsFullRender:function(){var a=new t.Color(this.color);return a.getAlpha()<1||!!this.shadow},_resetShadow:function(){var a=this.canvas.contextTop;a.shadowColor="",a.shadowBlur=a.shadowOffsetX=a.shadowOffsetY=0},_isOutSideCanvas:function(a){return a.x<0||a.x>this.canvas.getWidth()||a.y<0||a.y>this.canvas.getHeight()}}),function(){t.PencilBrush=t.util.createClass(t.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(a){this.canvas=a,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(a,o,u){var h=o.midPointFrom(u);return a.quadraticCurveTo(o.x,o.y,h.x,h.y),h},onMouseDown:function(a,o){!this.canvas._isMainEvent(o.e)||(this.drawStraightLine=o.e[this.straightLineKey],this._prepareForDrawing(a),this._captureDrawingPath(a),this._render())},onMouseMove:function(a,o){if(!!this.canvas._isMainEvent(o.e)&&(this.drawStraightLine=o.e[this.straightLineKey],!(this.limitedToCanvasSize===!0&&this._isOutSideCanvas(a))&&this._captureDrawingPath(a)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var u=this._points,h=u.length,c=this.canvas.contextTop;this._saveAndTransform(c),this.oldEnd&&(c.beginPath(),c.moveTo(this.oldEnd.x,this.oldEnd.y)),this.oldEnd=this._drawSegment(c,u[h-2],u[h-1],!0),c.stroke(),c.restore()}},onMouseUp:function(a){return this.canvas._isMainEvent(a.e)?(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1):!0},_prepareForDrawing:function(a){var o=new t.Point(a.x,a.y);this._reset(),this._addPoint(o),this.canvas.contextTop.moveTo(o.x,o.y)},_addPoint:function(a){return this._points.length>1&&a.eq(this._points[this._points.length-1])?!1:(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(a),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(a){var o=new t.Point(a.x,a.y);return this._addPoint(o)},_render:function(a){var o,u,h=this._points[0],c=this._points[1];if(a=a||this.canvas.contextTop,this._saveAndTransform(a),a.beginPath(),this._points.length===2&&h.x===c.x&&h.y===c.y){var f=this.width/1e3;h=new t.Point(h.x,h.y),c=new t.Point(c.x,c.y),h.x-=f,c.x+=f}for(a.moveTo(h.x,h.y),o=1,u=this._points.length;o<u;o++)this._drawSegment(a,h,c),h=this._points[o],c=this._points[o+1];a.lineTo(h.x,h.y),a.stroke(),a.restore()},convertPointsToSVGPath:function(a){var o=this.width/1e3;return t.util.getSmoothPathFromPoints(a,o)},_isEmptySVGPath:function(a){var o=t.util.joinPath(a);return o==="M 0 0 Q 0 0 0 0 L 0 0"},createPath:function(a){var o=new t.Path(a,{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,o.shadow=new t.Shadow(this.shadow)),o},decimatePoints:function(a,o){if(a.length<=2)return a;var u=this.canvas.getZoom(),h=Math.pow(o/u,2),c,f=a.length-1,s=a[0],d=[s],v;for(c=1;c<f-1;c++)v=Math.pow(s.x-a[c].x,2)+Math.pow(s.y-a[c].y,2),v>=h&&(s=a[c],d.push(s));return d.push(a[f]),d},_finalizeAndAddPath:function(){var a=this.canvas.contextTop;a.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var o=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(o)){this.canvas.requestRenderAll();return}var u=this.createPath(o);this.canvas.clearContext(this.canvas.contextTop),this.canvas.fire("before:path:created",{path:u}),this.canvas.add(u),this.canvas.requestRenderAll(),u.setCoords(),this._resetShadow(),this.canvas.fire("path:created",{path:u})}})}(),t.CircleBrush=t.util.createClass(t.BaseBrush,{width:10,initialize:function(a){this.canvas=a,this.points=[]},drawDot:function(a){var o=this.addPoint(a),u=this.canvas.contextTop;this._saveAndTransform(u),this.dot(u,o),u.restore()},dot:function(a,o){a.fillStyle=o.fill,a.beginPath(),a.arc(o.x,o.y,o.radius,0,Math.PI*2,!1),a.closePath(),a.fill()},onMouseDown:function(a){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(a)},_render:function(){var a=this.canvas.contextTop,o,u,h=this.points;for(this._saveAndTransform(a),o=0,u=h.length;o<u;o++)this.dot(a,h[o]);a.restore()},onMouseMove:function(a){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(a)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(a),this._render()):this.drawDot(a))},onMouseUp:function(){var a=this.canvas.renderOnAddRemove,o,u;this.canvas.renderOnAddRemove=!1;var h=[];for(o=0,u=this.points.length;o<u;o++){var c=this.points[o],f=new t.Circle({radius:c.radius,left:c.x,top:c.y,originX:"center",originY:"center",fill:c.fill});this.shadow&&(f.shadow=new t.Shadow(this.shadow)),h.push(f)}var s=new t.Group(h);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=a,this.canvas.requestRenderAll()},addPoint:function(a){var o=new t.Point(a.x,a.y),u=t.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,h=new t.Color(this.color).setAlpha(t.util.getRandomInt(0,100)/100).toRgba();return o.radius=u,o.fill=h,this.points.push(o),o}}),t.SprayBrush=t.util.createClass(t.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(a){this.canvas=a,this.sprayChunks=[]},onMouseDown:function(a){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(a),this.render(this.sprayChunkPoints)},onMouseMove:function(a){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(a)||(this.addSprayChunk(a),this.render(this.sprayChunkPoints))},onMouseUp:function(){var a=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var o=[],u=0,h=this.sprayChunks.length;u<h;u++)for(var c=this.sprayChunks[u],f=0,s=c.length;f<s;f++){var d=new t.Rect({width:c[f].width,height:c[f].width,left:c[f].x+1,top:c[f].y+1,originX:"center",originY:"center",fill:this.color});o.push(d)}this.optimizeOverlapping&&(o=this._getOptimizedRects(o));var v=new t.Group(o);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=a,this.canvas.requestRenderAll()},_getOptimizedRects:function(a){var o={},u,h,c;for(h=0,c=a.length;h<c;h++)u=a[h].left+""+a[h].top,o[u]||(o[u]=a[h]);var f=[];for(u in o)f.push(o[u]);return f},render:function(a){var o=this.canvas.contextTop,u,h;for(o.fillStyle=this.color,this._saveAndTransform(o),u=0,h=a.length;u<h;u++){var c=a[u];typeof c.opacity<"u"&&(o.globalAlpha=c.opacity),o.fillRect(c.x,c.y,c.width,c.width)}o.restore()},_render:function(){var a=this.canvas.contextTop,o,u;for(a.fillStyle=this.color,this._saveAndTransform(a),o=0,u=this.sprayChunks.length;o<u;o++)this.render(this.sprayChunks[o]);a.restore()},addSprayChunk:function(a){this.sprayChunkPoints=[];var o,u,h,c=this.width/2,f;for(f=0;f<this.density;f++){o=t.util.getRandomInt(a.x-c,a.x+c),u=t.util.getRandomInt(a.y-c,a.y+c),this.dotWidthVariance?h=t.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):h=this.dotWidth;var s=new t.Point(o,u);s.width=h,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 a=20,o=5,u=t.util.createCanvasElement(),h=u.getContext("2d");return u.width=u.height=a+o,h.fillStyle=this.color,h.beginPath(),h.arc(a/2,a/2,a/2,0,Math.PI*2,!1),h.closePath(),h.fill(),u},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(a){return a.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(a){this.callSuper("_setBrushStyles",a),a.strokeStyle=this.getPattern(a)},createPath:function(a){var o=this.callSuper("createPath",a),u=o._getLeftTopCoords().scalarAdd(o.strokeWidth/2);return o.stroke=new t.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-u.x,offsetY:-u.y}),o}}),function(){var a=t.util.getPointer,o=t.util.degreesToRadians,u=t.util.isTouchEvent;t.Canvas=t.util.createClass(t.StaticCanvas,{initialize:function(c,f){f||(f={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(c,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 c=this.getActiveObjects(),f,s,d;if(c.length>0&&!this.preserveObjectStacking){s=[],d=[];for(var v=0,g=this._objects.length;v<g;v++)f=this._objects[v],c.indexOf(f)===-1?s.push(f):d.push(f);c.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 c=this.contextContainer;return this.renderCanvas(c,this._chooseObjectsToRender()),this},renderTopLayer:function(c){c.save(),this.isDrawingMode&&this._isCurrentlyDrawing&&(this.freeDrawingBrush&&this.freeDrawingBrush._render(),this.contextTopDirty=!0),this.selection&&this._groupSelector&&(this._drawSelection(c),this.contextTopDirty=!0),c.restore()},renderTop:function(){var c=this.contextTop;return this.clearContext(c),this.renderTopLayer(c),this.fire("after:render"),this},_normalizePointer:function(c,f){var s=c.calcTransformMatrix(),d=t.util.invertTransform(s),v=this.restorePointerVpt(f);return t.util.transformPoint(v,d)},isTargetTransparent:function(c,f,s){if(c.shouldCache()&&c._cacheCanvas&&c!==this._activeObject){var d=this._normalizePointer(c,{x:f,y:s}),v=Math.max(c.cacheTranslationX+d.x*c.zoomX,0),g=Math.max(c.cacheTranslationY+d.y*c.zoomY,0),w=t.util.isTransparent(c._cacheContext,Math.round(v),Math.round(g),this.targetFindTolerance);return w}var y=this.contextCache,b=c.selectionBackgroundColor,_=this.viewportTransform;c.selectionBackgroundColor="",this.clearContext(y),y.save(),y.transform(_[0],_[1],_[2],_[3],_[4],_[5]),c.render(y),y.restore(),c.selectionBackgroundColor=b;var w=t.util.isTransparent(y,f,s,this.targetFindTolerance);return w},_isSelectionKeyPressed:function(c){var f=!1;return Array.isArray(this.selectionKey)?f=!!this.selectionKey.find(function(s){return c[s]===!0}):f=c[this.selectionKey],f},_shouldClearSelection:function(c,f){var s=this.getActiveObjects(),d=this._activeObject;return!f||f&&d&&s.length>1&&s.indexOf(f)===-1&&d!==f&&!this._isSelectionKeyPressed(c)||f&&!f.evented||f&&!f.selectable&&d&&d!==f},_shouldCenterTransform:function(c,f,s){if(!!c){var d;return f==="scale"||f==="scaleX"||f==="scaleY"||f==="resizing"?d=this.centeredScaling||c.centeredScaling:f==="rotate"&&(d=this.centeredRotation||c.centeredRotation),d?!s:s}},_getOriginFromCorner:function(c,f){var s={x:c.originX,y:c.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(c,f,s,d){if(!f||!c)return"drag";var v=d.controls[f];return v.getActionName(s,v,d)},_setupCurrentTransform:function(c,f,s){if(!!f){var d=this.getPointer(c),v=f.__corner,g=f.controls[v],y=s&&v?g.getActionHandler(c,f,g):t.controlsUtils.dragHandler,b=this._getActionFromCorner(s,v,c,f),_=this._getOriginFromCorner(f,v),w=c[this.centeredKey],S={target:f,action:b,actionHandler:y,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:_.x,originY:_.y,ex:d.x,ey:d.y,lastX:d.x,lastY:d.y,theta:o(f.angle),width:f.width*f.scaleX,shiftKey:c.shiftKey,altKey:w,original:t.util.saveObjectTransform(f)};this._shouldCenterTransform(f,b,w)&&(S.originX="center",S.originY="center"),S.original.originX=_.x,S.original.originY=_.y,this._currentTransform=S,this._beforeTransform(c)}},setCursor:function(c){this.upperCanvasEl.style.cursor=c},_drawSelection:function(c){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),g=t.util.transformPoint(v,this.viewportTransform),y=Math.min(d.x,g.x),b=Math.min(d.y,g.y),_=Math.max(d.x,g.x),w=Math.max(d.y,g.y),S=this.selectionLineWidth/2;this.selectionColor&&(c.fillStyle=this.selectionColor,c.fillRect(y,b,_-y,w-b)),!(!this.selectionLineWidth||!this.selectionBorderColor)&&(c.lineWidth=this.selectionLineWidth,c.strokeStyle=this.selectionBorderColor,y+=S,b+=S,_-=S,w-=S,t.Object.prototype._setLineDash.call(this,c,this.selectionDashArray),c.strokeRect(y,b,_-y,w-b))},findTarget:function(c,f){if(!this.skipTargetFind){var s=!0,d=this.getPointer(c,s),v=this._activeObject,g=this.getActiveObjects(),y,b,_=u(c),w=g.length>1&&!f||g.length===1;if(this.targets=[],w&&v._findTargetCorner(d,_)||g.length>1&&!f&&v===this._searchPossibleTargets([v],d))return v;if(g.length===1&&v===this._searchPossibleTargets([v],d))if(this.preserveObjectStacking)y=v,b=this.targets,this.targets=[];else return v;var S=this._searchPossibleTargets(this._objects,d);return c[this.altSelectionKey]&&S&&y&&S!==y&&(S=y,this.targets=b),S}},_checkTarget:function(c,f,s){if(f&&f.visible&&f.evented&&f.containsPoint(c))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(c,f){for(var s,d=c.length,v;d--;){var g=c[d],y=g.group?this._normalizePointer(g.group,f):f;if(this._checkTarget(y,g,f)){s=c[d],s.subTargetCheck&&s instanceof t.Group&&(v=this._searchPossibleTargets(s._objects,f),v&&this.targets.push(v));break}}return s},restorePointerVpt:function(c){return t.util.transformPoint(c,t.util.invertTransform(this.viewportTransform))},getPointer:function(c,f){if(this._absolutePointer&&!f)return this._absolutePointer;if(this._pointer&&f)return this._pointer;var s=a(c),d=this.upperCanvasEl,v=d.getBoundingClientRect(),g=v.width||0,y=v.height||0,b;(!g||!y)&&("top"in v&&"bottom"in v&&(y=Math.abs(v.top-v.bottom)),"right"in v&&"left"in v&&(g=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 _=this.getRetinaScaling();return _!==1&&(s.x/=_,s.y/=_),g===0||y===0?b={width:1,height:1}:b={width:d.width/g,height:d.height/y},{x:s.x*b.width,y:s.y*b.height}},_createUpperCanvas:function(){var c=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 "+c),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(c){var f=this.width||c.width,s=this.height||c.height;t.util.setStyle(c,{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"}),c.width=f,c.height=s,t.util.makeElementUnselectable(c)},_copyCanvasStyle:function(c,f){f.style.cssText=c.style.cssText},getSelectionContext:function(){return this.contextTop},getSelectionElement:function(){return this.upperCanvasEl},getActiveObject:function(){return this._activeObject},getActiveObjects:function(){var c=this._activeObject;return c?c.type==="activeSelection"&&c._objects?c._objects.slice(0):[c]:[]},_onObjectRemoved:function(c){c===this._activeObject&&(this.fire("before:selection:cleared",{target:c}),this._discardActiveObject(),this.fire("selection:cleared",{target:c}),c.fire("deselected")),c===this._hoveredTarget&&(this._hoveredTarget=null,this._hoveredTargets=[]),this.callSuper("_onObjectRemoved",c)},_fireSelectionEvents:function(c,f){var s=!1,d=this.getActiveObjects(),v=[],g=[];c.forEach(function(y){d.indexOf(y)===-1&&(s=!0,y.fire("deselected",{e:f,target:y}),g.push(y))}),d.forEach(function(y){c.indexOf(y)===-1&&(s=!0,y.fire("selected",{e:f,target:y}),v.push(y))}),c.length>0&&d.length>0?s&&this.fire("selection:updated",{e:f,selected:v,deselected:g}):d.length>0?this.fire("selection:created",{e:f,selected:v}):c.length>0&&this.fire("selection:cleared",{e:f,deselected:g})},setActiveObject:function(c,f){var s=this.getActiveObjects();return this._setActiveObject(c,f),this._fireSelectionEvents(s,f),this},_setActiveObject:function(c,f){return this._activeObject===c||!this._discardActiveObject(f,c)||c.onSelect({e:f})?!1:(this._activeObject=c,!0)},_discardActiveObject:function(c,f){var s=this._activeObject;if(s){if(s.onDeselect({e:c,object:f}))return!1;this._activeObject=null}return!0},discardActiveObject:function(c){var f=this.getActiveObjects(),s=this.getActiveObject();return f.length&&this.fire("before:selection:cleared",{target:s,e:c}),this._discardActiveObject(c),this._fireSelectionEvents(f,c),this},dispose:function(){var c=this.wrapperEl;return this.removeListeners(),c.removeChild(this.upperCanvasEl),c.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)),c.parentNode&&c.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(c){var f=this._activeObject;f&&f._renderControls(c)},_toObject:function(c,f,s){var d=this._realizeGroupTransformOnObject(c),v=this.callSuper("_toObject",c,f,s);return this._unwindGroupTransformOnObject(c,d),v},_realizeGroupTransformOnObject:function(c){if(c.group&&c.group.type==="activeSelection"&&this._activeObject===c.group){var f=["angle","flipX","flipY","left","scaleX","scaleY","skewX","skewY","top"],s={};return f.forEach(function(d){s[d]=c[d]}),t.util.addTransformToObject(c,this._activeObject.calcOwnMatrix()),s}else return null},_unwindGroupTransformOnObject:function(c,f){f&&c.set(f)},_setSVGObject:function(c,f,s){var d=this._realizeGroupTransformOnObject(f);this.callSuper("_setSVGObject",c,f,s),this._unwindGroupTransformOnObject(f,d)},setViewportTransform:function(c){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),t.StaticCanvas.prototype.setViewportTransform.call(this,c)}});for(var h in t.StaticCanvas)h!=="prototype"&&(t.Canvas[h]=t.StaticCanvas[h])}(),function(){var a=t.util.addListener,o=t.util.removeListener,u=3,h=2,c=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(a,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(d,v){var g=this.upperCanvasEl,y=this._getEventPrefix();d(t.window,"resize",this._onResize),d(g,y+"down",this._onMouseDown),d(g,y+"move",this._onMouseMove,f),d(g,y+"out",this._onMouseOut),d(g,y+"enter",this._onMouseEnter),d(g,"wheel",this._onMouseWheel),d(g,"contextmenu",this._onContextMenu),d(g,"dblclick",this._onDoubleClick),d(g,"dragover",this._onDragOver),d(g,"dragenter",this._onDragEnter),d(g,"dragleave",this._onDragLeave),d(g,"drop",this._onDrop),this.enablePointerEvents||d(g,"touchstart",this._onTouchStart,f),typeof eventjs<"u"&&v in eventjs&&(eventjs[v](g,"gesture",this._onGesture),eventjs[v](g,"drag",this._onDrag),eventjs[v](g,"orientation",this._onOrientationChange),eventjs[v](g,"shake",this._onShake),eventjs[v](g,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(o,"remove");var d=this._getEventPrefix();o(t.document,d+"up",this._onMouseUp),o(t.document,"touchend",this._onTouchEnd,f),o(t.document,d+"move",this._onMouseMove,f),o(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 g=this;this._hoveredTargets.forEach(function(y){g.fire("mouse:out",{target:v,e:d}),y&&v.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,g=this._getEventPrefix();a(t.document,"touchend",this._onTouchEnd,f),a(t.document,"touchmove",this._onMouseMove,f),o(v,g+"down",this._onMouseDown)},_onMouseDown:function(d){this.__onMouseDown(d),this._resetTransformEventData();var v=this.upperCanvasEl,g=this._getEventPrefix();o(v,g+"move",this._onMouseMove,f),a(t.document,g+"up",this._onMouseUp),a(t.document,g+"move",this._onMouseMove,f)},_onTouchEnd:function(d){if(!(d.touches.length>0)){this.__onMouseUp(d),this._resetTransformEventData(),this.mainTouchId=null;var v=this._getEventPrefix();o(t.document,"touchend",this._onTouchEnd,f),o(t.document,"touchmove",this._onMouseMove,f);var g=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){a(g.upperCanvasEl,v+"down",g._onMouseDown),g._willAddMouseDown=0},400)}},_onMouseUp:function(d){this.__onMouseUp(d),this._resetTransformEventData();var v=this.upperCanvasEl,g=this._getEventPrefix();this._isMainEvent(d)&&(o(t.document,g+"up",this._onMouseUp),o(t.document,g+"move",this._onMouseMove,f),a(v,g+"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,g=this._currentTransform,y=this._groupSelector,b=!1,_=!y||y.left===0&&y.top===0;if(this._cacheTransformEventData(d),v=this._target,this._handleEvent(d,"up:before"),s(d,u)){this.fireRightClick&&this._handleEvent(d,"up",u,_);return}if(s(d,h)){this.fireMiddleClick&&this._handleEvent(d,"up",h,_),this._resetTransformEventData();return}if(this.isDrawingMode&&this._isCurrentlyDrawing){this._onMouseUpInDrawingMode(d);return}if(!!this._isMainEvent(d)){if(g&&(this._finalizeCurrentTransform(d),b=g.actionPerformed),!_){var w=v===this._activeObject;this._maybeGroupObjects(d),b||(b=this._shouldRender(v)||!w&&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),b=!0;else{var T=v.controls[S],O=T&&T.getMouseUpHandler(d,v,T);O&&(x=this.getPointer(d),O(d,g,x.x,x.y))}v.isMoving=!1}if(g&&(g.target!==v||g.corner!==S)){var A=g.target&&g.target.controls[g.corner],$=A&&A.getMouseUpHandler(d,v,T);x=x||this.getPointer(d),$&&$(d,g,x.x,x.y)}this._setCursorFromEvent(d,v),this._handleEvent(d,"up",c,_),this._groupSelector=null,this._currentTransform=null,v&&(v.__corner=0),b?this.requestRenderAll():_||this.renderTop()}},_simpleEventHandler:function(d,v){var g=this.findTarget(v),y=this.targets,b={e:v,target:g,subTargets:y};if(this.fire(d,b),g&&g.fire(d,b),!y)return g;for(var _=0;_<y.length;_++)y[_].fire(d,b);return g},_handleEvent:function(d,v,g,y){var b=this._target,_=this.targets||[],w={e:d,target:b,subTargets:_,button:g||c,isClick:y||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};v==="up"&&(w.currentTarget=this.findTarget(d),w.currentSubTargets=this.targets),this.fire("mouse:"+v,w),b&&b.fire("mouse"+v,w);for(var S=0;S<_.length;S++)_[S].fire("mouse"+v,w)},_finalizeCurrentTransform:function(d){var v=this._currentTransform,g=v.target,y={e:d,target:g,transform:v,action:v.action};g._scaling&&(g._scaling=!1),g.setCoords(),(v.actionPerformed||this.stateful&&g.hasStateChanged())&&this._fire("modified",y)},_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,u)){this.fireRightClick&&this._handleEvent(d,"down",u);return}if(s(d,h)){this.fireMiddleClick&&this._handleEvent(d,"down",h);return}if(this.isDrawingMode){this._onMouseDownInDrawingMode(d);return}if(!!this._isMainEvent(d)&&!this._currentTransform){var g=this._pointer;this._previousPointer=g;var y=this._shouldRender(v),b=this._shouldGroup(d,v);if(this._shouldClearSelection(d,v)?this.discardActiveObject(d):b&&(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 _=v===this._activeObject;v.selectable&&v.activeOn==="down"&&this.setActiveObject(v,d);var w=v._findTargetCorner(this.getPointer(d,!0),t.util.isTouchEvent(d));if(v.__corner=w,v===this._activeObject&&(w||!b)){this._setupCurrentTransform(d,v,_);var S=v.controls[w],g=this.getPointer(d),x=S&&S.getMouseDownHandler(d,v,S);x&&x(d,this._currentTransform,g.x,g.y)}}this._handleEvent(d,"down"),(y||b)&&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,g;if(this.isDrawingMode){this._onMouseMoveInDrawingMode(d);return}if(!!this._isMainEvent(d)){var y=this._groupSelector;y?(g=this._absolutePointer,y.left=g.x-y.ex,y.top=g.y-y.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 g=this._hoveredTarget,y=this._hoveredTargets,b=this.targets,_=Math.max(y.length,b.length);this.fireSyntheticInOutEvents(d,v,{oldTarget:g,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var w=0;w<_;w++)this.fireSyntheticInOutEvents(b[w],v,{oldTarget:y[w],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=d,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(d,v){var g=this._draggedoverTarget,y=this._hoveredTargets,b=this.targets,_=Math.max(y.length,b.length);this.fireSyntheticInOutEvents(d,v,{oldTarget:g,evtOut:"dragleave",evtIn:"dragenter"});for(var w=0;w<_;w++)this.fireSyntheticInOutEvents(b[w],v,{oldTarget:y[w],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=d},fireSyntheticInOutEvents:function(d,v,g){var y,b,_=g.oldTarget,w,S,x=_!==d,T=g.canvasEvtIn,O=g.canvasEvtOut;x&&(y={e:v,target:d,previousTarget:_},b={e:v,target:_,nextTarget:d}),S=d&&x,w=_&&x,w&&(O&&this.fire(O,b),_.fire(g.evtOut,b)),S&&(T&&this.fire(T,y),d.fire(g.evtIn,y))},__onMouseWheel:function(d){this._cacheTransformEventData(d),this._handleEvent(d,"wheel"),this._resetTransformEventData()},_transformObject:function(d){var v=this.getPointer(d),g=this._currentTransform;g.reset=!1,g.shiftKey=d.shiftKey,g.altKey=d[this.centeredKey],this._performTransformAction(d,g,v),g.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(d,v,g){var y=g.x,b=g.y,_=v.action,w=!1,S=v.actionHandler;S&&(w=S(d,v,y,b)),_==="drag"&&w&&(v.target.isMoving=!0,this.setCursor(v.target.moveCursor||this.moveCursor)),v.actionPerformed=v.actionPerformed||w},_fire:t.controlsUtils.fireEvent,_setCursorFromEvent:function(d,v){if(!v)return this.setCursor(this.defaultCursor),!1;var g=v.hoverCursor||this.hoverCursor,y=this._activeObject&&this._activeObject.type==="activeSelection"?this._activeObject:null,b=(!y||!y.contains(v))&&v._findTargetCorner(this.getPointer(d,!0));b?this.setCursor(this.getCornerCursor(b,v,d)):(v.subTargetCheck&&this.targets.concat().reverse().map(function(_){g=_.hoverCursor||g}),this.setCursor(g))},getCornerCursor:function(d,v,g){var y=v.controls[d];return y.cursorStyleHandler(g,y,v)}})}(),function(){var a=Math.min,o=Math.max;t.util.object.extend(t.Canvas.prototype,{_shouldGroup:function(u,h){var c=this._activeObject;return c&&this._isSelectionKeyPressed(u)&&h&&h.selectable&&this.selection&&(c!==h||c.type==="activeSelection")&&!h.onSelect({e:u})},_handleGrouping:function(u,h){var c=this._activeObject;c.__corner||h===c&&(h=this.findTarget(u,!0),!h||!h.selectable)||(c&&c.type==="activeSelection"?this._updateActiveSelection(h,u):this._createActiveSelection(h,u))},_updateActiveSelection:function(u,h){var c=this._activeObject,f=c._objects.slice(0);c.contains(u)?(c.removeWithUpdate(u),this._hoveredTarget=u,this._hoveredTargets=this.targets.concat(),c.size()===1&&this._setActiveObject(c.item(0),h)):(c.addWithUpdate(u),this._hoveredTarget=c,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(f,h)},_createActiveSelection:function(u,h){var c=this.getActiveObjects(),f=this._createGroup(u);this._hoveredTarget=f,this._setActiveObject(f,h),this._fireSelectionEvents(c,h)},_createGroup:function(u){var h=this._objects,c=h.indexOf(this._activeObject)<h.indexOf(u),f=c?[this._activeObject,u]:[u,this._activeObject];return this._activeObject.isEditing&&this._activeObject.exitEditing(),new t.ActiveSelection(f,{canvas:this})},_groupSelectedObjects:function(u){var h=this._collectObjects(u),c;h.length===1?this.setActiveObject(h[0],u):h.length>1&&(c=new t.ActiveSelection(h.reverse(),{canvas:this}),this.setActiveObject(c,u))},_collectObjects:function(u){for(var h=[],c,f=this._groupSelector.ex,s=this._groupSelector.ey,d=f+this._groupSelector.left,v=s+this._groupSelector.top,g=new t.Point(a(f,d),a(s,v)),y=new t.Point(o(f,d),o(s,v)),b=!this.selectionFullyContained,_=f===d&&s===v,w=this._objects.length;w--&&(c=this._objects[w],!(!(!c||!c.selectable||!c.visible)&&(b&&c.intersectsWithRect(g,y,!0)||c.isContainedWithinRect(g,y,!0)||b&&c.containsPoint(g,null,!0)||b&&c.containsPoint(y,null,!0))&&(h.push(c),_))););return h.length>1&&(h=h.filter(function(S){return!S.onSelect({e:u})})),h},_maybeGroupObjects:function(u){this.selection&&this._groupSelector&&this._groupSelectedObjects(u),this.setCursor(this.defaultCursor),this._groupSelector=null}})}(),function(){t.util.object.extend(t.StaticCanvas.prototype,{toDataURL:function(a){a||(a={});var o=a.format||"png",u=a.quality||1,h=(a.multiplier||1)*(a.enableRetinaScaling?this.getRetinaScaling():1),c=this.toCanvasElement(h,a);return t.util.toDataURL(c,o,u)},toCanvasElement:function(a,o){a=a||1,o=o||{};var u=(o.width||this.width)*a,h=(o.height||this.height)*a,c=this.getZoom(),f=this.width,s=this.height,d=c*a,v=this.viewportTransform,g=(v[4]-(o.left||0))*a,y=(v[5]-(o.top||0))*a,b=this.interactive,_=[d,0,0,d,g,y],w=this.enableRetinaScaling,S=t.util.createCanvasElement(),x=this.contextTop;return S.width=u,S.height=h,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=_,this.width=u,this.height=h,this.calcViewportBoundaries(),this.renderCanvas(S.getContext("2d"),this._objects),this.viewportTransform=v,this.width=f,this.height=s,this.calcViewportBoundaries(),this.interactive=b,this.enableRetinaScaling=w,this.contextTop=x,S}})}(),t.util.object.extend(t.StaticCanvas.prototype,{loadFromJSON:function(a,o,u){if(!!a){var h=typeof a=="string"?JSON.parse(a):t.util.object.clone(a),c=this,f=h.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete h.clipPath,this._enlivenObjects(h.objects,function(d){c.clear(),c._setBgOverlay(h,function(){f?c._enlivenObjects([f],function(v){c.clipPath=v[0],c.__setupCanvas.call(c,h,d,s,o)}):c.__setupCanvas.call(c,h,d,s,o)})},u),this}},__setupCanvas:function(a,o,u,h){var c=this;o.forEach(function(f,s){c.insertAt(f,s)}),this.renderOnAddRemove=u,delete a.objects,delete a.backgroundImage,delete a.overlayImage,delete a.background,delete a.overlay,this._setOptions(a),this.renderAll(),h&&h()},_setBgOverlay:function(a,o){var u={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(!a.backgroundImage&&!a.overlayImage&&!a.background&&!a.overlay){o&&o();return}var h=function(){u.backgroundImage&&u.overlayImage&&u.backgroundColor&&u.overlayColor&&o&&o()};this.__setBgOverlay("backgroundImage",a.backgroundImage,u,h),this.__setBgOverlay("overlayImage",a.overlayImage,u,h),this.__setBgOverlay("backgroundColor",a.background,u,h),this.__setBgOverlay("overlayColor",a.overlay,u,h)},__setBgOverlay:function(a,o,u,h){var c=this;if(!o){u[a]=!0,h&&h();return}a==="backgroundImage"||a==="overlayImage"?t.util.enlivenObjects([o],function(f){c[a]=f[0],u[a]=!0,h&&h()}):this["set"+t.util.string.capitalize(a,!0)](o,function(){u[a]=!0,h&&h()})},_enlivenObjects:function(a,o,u){if(!a||a.length===0){o&&o([]);return}t.util.enlivenObjects(a,function(h){o&&o(h)},null,u)},_toDataURL:function(a,o){this.clone(function(u){o(u.toDataURL(a))})},_toDataURLWithMultiplier:function(a,o,u){this.clone(function(h){u(h.toDataURLWithMultiplier(a,o))})},clone:function(a,o){var u=JSON.stringify(this.toJSON(o));this.cloneWithoutData(function(h){h.loadFromJSON(u,function(){a&&a(h)})})},cloneWithoutData:function(a){var o=t.util.createCanvasElement();o.width=this.width,o.height=this.height;var u=new t.Canvas(o);this.backgroundImage?(u.setBackgroundImage(this.backgroundImage.src,function(){u.renderAll(),a&&a(u)}),u.backgroundImageOpacity=this.backgroundImageOpacity,u.backgroundImageStretch=this.backgroundImageStretch):a&&a(u)}}),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.extend,h=o.util.object.clone,c=o.util.toFixed,f=o.util.string.capitalize,s=o.util.degreesToRadians,d=!o.isLikelyNode,v=2;o.Object||(o.Object=o.util.createClass(o.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(g){g&&this.setOptions(g)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=o.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(g){var y=o.perfLimitSizeTotal,b=g.width,_=g.height,w=o.maxCacheSideLimit,S=o.minCacheSideLimit;if(b<=w&&_<=w&&b*_<=y)return b<S&&(g.width=S),_<S&&(g.height=S),g;var x=b/_,T=o.util.limitDimsByArea(x,y),O=o.util.capValue,A=O(S,T.x,w),$=O(S,T.y,w);return b>A&&(g.zoomX/=b/A,g.width=A,g.capped=!0),_>$&&(g.zoomY/=_/$,g.height=$,g.capped=!0),g},_getCacheCanvasDimensions:function(){var g=this.getTotalObjectScaling(),y=this._getTransformedDimensions(0,0),b=y.x*g.scaleX/this.scaleX,_=y.y*g.scaleY/this.scaleY;return{width:b+v,height:_+v,zoomX:g.scaleX,zoomY:g.scaleY,x:b,y:_}},_updateCacheCanvas:function(){var g=this.canvas;if(this.noScaleCache&&g&&g._currentTransform){var y=g._currentTransform.target,b=g._currentTransform.action;if(this===y&&b.slice&&b.slice(0,5)==="scale")return!1}var _=this._cacheCanvas,w=this._limitCacheSize(this._getCacheCanvasDimensions()),S=o.minCacheSideLimit,x=w.width,T=w.height,O,A,$=w.zoomX,j=w.zoomY,R=x!==this.cacheWidth||T!==this.cacheHeight,F=this.zoomX!==$||this.zoomY!==j,E=R||F,W=0,te=0,Q=!1;if(R){var le=this._cacheCanvas.width,I=this._cacheCanvas.height,z=x>le||T>I,M=(x<le*.9||T<I*.9)&&le>S&&I>S;Q=z||M,z&&!w.capped&&(x>S||T>S)&&(W=x*.1,te=T*.1)}return this instanceof o.Text&&this.path&&(E=!0,Q=!0,W+=this.getHeightOfLine(0)*this.zoomX,te+=this.getHeightOfLine(0)*this.zoomY),E?(Q?(_.width=Math.ceil(x+W),_.height=Math.ceil(T+te)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,_.width,_.height)),O=w.x/2,A=w.y/2,this.cacheTranslationX=Math.round(_.width/2-O)+O,this.cacheTranslationY=Math.round(_.height/2-A)+A,this.cacheWidth=x,this.cacheHeight=T,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale($,j),this.zoomX=$,this.zoomY=j,!0):!1},setOptions:function(g){this._setOptions(g),this._initGradient(g.fill,"fill"),this._initGradient(g.stroke,"stroke"),this._initPattern(g.fill,"fill"),this._initPattern(g.stroke,"stroke")},transform:function(g){var y=this.group&&!this.group._transformDone||this.group&&this.canvas&&g===this.canvas.contextTop,b=this.calcTransformMatrix(!y);g.transform(b[0],b[1],b[2],b[3],b[4],b[5])},toObject:function(g){var y=o.Object.NUM_FRACTION_DIGITS,b={type:this.type,version:o.version,originX:this.originX,originY:this.originY,left:c(this.left,y),top:c(this.top,y),width:c(this.width,y),height:c(this.height,y),fill:this.fill&&this.fill.toObject?this.fill.toObject():this.fill,stroke:this.stroke&&this.stroke.toObject?this.stroke.toObject():this.stroke,strokeWidth:c(this.strokeWidth,y),strokeDashArray:this.strokeDashArray?this.strokeDashArray.concat():this.strokeDashArray,strokeLineCap:this.strokeLineCap,strokeDashOffset:this.strokeDashOffset,strokeLineJoin:this.strokeLineJoin,strokeUniform:this.strokeUniform,strokeMiterLimit:c(this.strokeMiterLimit,y),scaleX:c(this.scaleX,y),scaleY:c(this.scaleY,y),angle:c(this.angle,y),flipX:this.flipX,flipY:this.flipY,opacity:c(this.opacity,y),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:c(this.skewX,y),skewY:c(this.skewY,y)};return this.clipPath&&!this.clipPath.excludeFromExport&&(b.clipPath=this.clipPath.toObject(g),b.clipPath.inverted=this.clipPath.inverted,b.clipPath.absolutePositioned=this.clipPath.absolutePositioned),o.util.populateWithProperties(this,b,g),this.includeDefaultValues||(b=this._removeDefaultValues(b)),b},toDatalessObject:function(g){return this.toObject(g)},_removeDefaultValues:function(g){var y=o.util.getKlass(g.type).prototype,b=y.stateProperties;return b.forEach(function(_){_==="left"||_==="top"||(g[_]===y[_]&&delete g[_],Array.isArray(g[_])&&Array.isArray(y[_])&&g[_].length===0&&y[_].length===0&&delete g[_])}),g},toString:function(){return"#<fabric."+f(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var g=o.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(g.scaleX),scaleY:Math.abs(g.scaleY)}},getTotalObjectScaling:function(){var g=this.getObjectScaling(),y=g.scaleX,b=g.scaleY;if(this.canvas){var _=this.canvas.getZoom(),w=this.canvas.getRetinaScaling();y*=_*w,b*=_*w}return{scaleX:y,scaleY:b}},getObjectOpacity:function(){var g=this.opacity;return this.group&&(g*=this.group.getObjectOpacity()),g},_set:function(g,y){var b=g==="scaleX"||g==="scaleY",_=this[g]!==y,w=!1;return b&&(y=this._constrainScale(y)),g==="scaleX"&&y<0?(this.flipX=!this.flipX,y*=-1):g==="scaleY"&&y<0?(this.flipY=!this.flipY,y*=-1):g==="shadow"&&y&&!(y instanceof o.Shadow)?y=new o.Shadow(y):g==="dirty"&&this.group&&this.group.set("dirty",y),this[g]=y,_&&(w=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(g)>-1?(this.dirty=!0,w&&this.group.set("dirty",!0)):w&&this.stateProperties.indexOf(g)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:o.iMatrix.concat()},isNotVisible:function(){return this.opacity===0||!this.width&&!this.height&&this.strokeWidth===0||!this.visible},render:function(g){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(g.save(),this._setupCompositeOperation(g),this.drawSelectionBackground(g),this.transform(g),this._setOpacity(g),this._setShadow(g,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(g)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(g),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),g.restore())},renderCache:function(g){g=g||{},(!this._cacheCanvas||!this._cacheContext)&&this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,g.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(g,y){if(g.save(),y.inverted?g.globalCompositeOperation="destination-out":g.globalCompositeOperation="destination-in",y.absolutePositioned){var b=o.util.invertTransform(this.calcTransformMatrix());g.transform(b[0],b[1],b[2],b[3],b[4],b[5])}y.transform(g),g.scale(1/y.zoomX,1/y.zoomY),g.drawImage(y._cacheCanvas,-y.cacheTranslationX,-y.cacheTranslationY),g.restore()},drawObject:function(g,y){var b=this.fill,_=this.stroke;y?(this.fill="black",this.stroke="",this._setClippingProperties(g)):this._renderBackground(g),this._render(g),this._drawClipPath(g,this.clipPath),this.fill=b,this.stroke=_},_drawClipPath:function(g,y){!y||(y.canvas=this.canvas,y.shouldCache(),y._transformDone=!0,y.renderCache({forClipping:!0}),this.drawClipPathOnCache(g,y))},drawCacheOnCanvas:function(g){g.scale(1/this.zoomX,1/this.zoomY),g.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(g){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!g&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!g){var y=this.cacheWidth/this.zoomX,b=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-y/2,-b/2,y,b)}return!0}return!1},_renderBackground:function(g){if(!!this.backgroundColor){var y=this._getNonTransformedDimensions();g.fillStyle=this.backgroundColor,g.fillRect(-y.x/2,-y.y/2,y.x,y.y),this._removeShadow(g)}},_setOpacity:function(g){this.group&&!this.group._transformDone?g.globalAlpha=this.getObjectOpacity():g.globalAlpha*=this.opacity},_setStrokeStyles:function(g,y){var b=y.stroke;b&&(g.lineWidth=y.strokeWidth,g.lineCap=y.strokeLineCap,g.lineDashOffset=y.strokeDashOffset,g.lineJoin=y.strokeLineJoin,g.miterLimit=y.strokeMiterLimit,b.toLive?b.gradientUnits==="percentage"||b.gradientTransform||b.patternTransform?this._applyPatternForTransformedGradient(g,b):(g.strokeStyle=b.toLive(g,this),this._applyPatternGradientTransform(g,b)):g.strokeStyle=y.stroke)},_setFillStyles:function(g,y){var b=y.fill;b&&(b.toLive?(g.fillStyle=b.toLive(g,this),this._applyPatternGradientTransform(g,y.fill)):g.fillStyle=b)},_setClippingProperties:function(g){g.globalAlpha=1,g.strokeStyle="transparent",g.fillStyle="#000000"},_setLineDash:function(g,y){!y||y.length===0||(1&y.length&&y.push.apply(y,y),g.setLineDash(y))},_renderControls:function(g,y){var b=this.getViewportTransform(),_=this.calcTransformMatrix(),w,S,x;y=y||{},S=typeof y.hasBorders<"u"?y.hasBorders:this.hasBorders,x=typeof y.hasControls<"u"?y.hasControls:this.hasControls,_=o.util.multiplyTransformMatrices(b,_),w=o.util.qrDecompose(_),g.save(),g.translate(w.translateX,w.translateY),g.lineWidth=1*this.borderScaleFactor,this.group||(g.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(w.angle-=180),g.rotate(s(this.group?w.angle:this.angle)),y.forActiveSelection||this.group?S&&this.drawBordersInGroup(g,w,y):S&&this.drawBorders(g,y),x&&this.drawControls(g,y),g.restore()},_setShadow:function(g){if(!!this.shadow){var y=this.shadow,b=this.canvas,_,w=b&&b.viewportTransform[0]||1,S=b&&b.viewportTransform[3]||1;y.nonScaling?_={scaleX:1,scaleY:1}:_=this.getObjectScaling(),b&&b._isRetinaScaling()&&(w*=o.devicePixelRatio,S*=o.devicePixelRatio),g.shadowColor=y.color,g.shadowBlur=y.blur*o.browserShadowBlurConstant*(w+S)*(_.scaleX+_.scaleY)/4,g.shadowOffsetX=y.offsetX*w*_.scaleX,g.shadowOffsetY=y.offsetY*S*_.scaleY}},_removeShadow:function(g){!this.shadow||(g.shadowColor="",g.shadowBlur=g.shadowOffsetX=g.shadowOffsetY=0)},_applyPatternGradientTransform:function(g,y){if(!y||!y.toLive)return{offsetX:0,offsetY:0};var b=y.gradientTransform||y.patternTransform,_=-this.width/2+y.offsetX||0,w=-this.height/2+y.offsetY||0;return y.gradientUnits==="percentage"?g.transform(this.width,0,0,this.height,_,w):g.transform(1,0,0,1,_,w),b&&g.transform(b[0],b[1],b[2],b[3],b[4],b[5]),{offsetX:_,offsetY:w}},_renderPaintInOrder:function(g){this.paintFirst==="stroke"?(this._renderStroke(g),this._renderFill(g)):(this._renderFill(g),this._renderStroke(g))},_render:function(){},_renderFill:function(g){!this.fill||(g.save(),this._setFillStyles(g,this),this.fillRule==="evenodd"?g.fill("evenodd"):g.fill(),g.restore())},_renderStroke:function(g){if(!(!this.stroke||this.strokeWidth===0)){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(g),g.save(),this.strokeUniform&&this.group){var y=this.getObjectScaling();g.scale(1/y.scaleX,1/y.scaleY)}else this.strokeUniform&&g.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(g,this.strokeDashArray),this._setStrokeStyles(g,this),g.stroke(),g.restore()}},_applyPatternForTransformedGradient:function(g,y){var b=this._limitCacheSize(this._getCacheCanvasDimensions()),_=o.util.createCanvasElement(),w,S=this.canvas.getRetinaScaling(),x=b.x/this.scaleX/S,T=b.y/this.scaleY/S;_.width=x,_.height=T,w=_.getContext("2d"),w.beginPath(),w.moveTo(0,0),w.lineTo(x,0),w.lineTo(x,T),w.lineTo(0,T),w.closePath(),w.translate(x/2,T/2),w.scale(b.zoomX/this.scaleX/S,b.zoomY/this.scaleY/S),this._applyPatternGradientTransform(w,y),w.fillStyle=y.toLive(g),w.fill(),g.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),g.scale(S*this.scaleX/b.zoomX,S*this.scaleY/b.zoomY),g.strokeStyle=w.createPattern(_,"no-repeat")},_findCenterFromElement:function(){return{x:this.left+this.width/2,y:this.top+this.height/2}},_assignTransformMatrixProps:function(){if(this.transformMatrix){var g=o.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",g.scaleX),this.set("scaleY",g.scaleY),this.angle=g.angle,this.skewX=g.skewX,this.skewY=0}},_removeTransformMatrix:function(g){var y=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),y=o.util.transformPoint(y,this.transformMatrix)),this.transformMatrix=null,g&&(this.scaleX*=g.scaleX,this.scaleY*=g.scaleY,this.cropX=g.cropX,this.cropY=g.cropY,y.x+=g.offsetLeft,y.y+=g.offsetTop,this.width=g.width,this.height=g.height),this.setPositionByOrigin(y,"center","center")},clone:function(g,y){var b=this.toObject(y);this.constructor.fromObject?this.constructor.fromObject(b,g):o.Object._fromObject("Object",b,g)},cloneAsImage:function(g,y){var b=this.toCanvasElement(y);return g&&g(new o.Image(b)),this},toCanvasElement:function(g){g||(g={});var y=o.util,b=y.saveObjectTransform(this),_=this.group,w=this.shadow,S=Math.abs,x=(g.multiplier||1)*(g.enableRetinaScaling?o.devicePixelRatio:1);delete this.group,g.withoutTransform&&y.resetObjectTransform(this),g.withoutShadow&&(this.shadow=null);var T=o.util.createCanvasElement(),O=this.getBoundingRect(!0,!0),A=this.shadow,$,j={x:0,y:0},R,F,E;A&&(R=A.blur,A.nonScaling?$={scaleX:1,scaleY:1}:$=this.getObjectScaling(),j.x=2*Math.round(S(A.offsetX)+R)*S($.scaleX),j.y=2*Math.round(S(A.offsetY)+R)*S($.scaleY)),F=O.width+j.x,E=O.height+j.y,T.width=Math.ceil(F),T.height=Math.ceil(E);var W=new o.StaticCanvas(T,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});g.format==="jpeg"&&(W.backgroundColor="#fff"),this.setPositionByOrigin(new o.Point(W.width/2,W.height/2),"center","center");var te=this.canvas;W.add(this);var Q=W.toCanvasElement(x||1,g);return this.shadow=w,this.set("canvas",te),_&&(this.group=_),this.set(b).setCoords(),W._objects=[],W.dispose(),W=null,Q},toDataURL:function(g){return g||(g={}),o.util.toDataURL(this.toCanvasElement(g),g.format||"png",g.quality||1)},isType:function(g){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===g},complexity:function(){return 1},toJSON:function(g){return this.toObject(g)},rotate:function(g){var y=(this.originX!=="center"||this.originY!=="center")&&this.centeredRotation;return y&&this._setOriginToCenter(),this.set("angle",g),y&&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(g,y){y=y||this.canvas.getPointer(g);var b=new o.Point(y.x,y.y),_=this._getLeftTopCoords();return this.angle&&(b=o.util.rotatePoint(b,_,s(-this.angle))),{x:b.x-_.x,y:b.y-_.y}},_setupCompositeOperation:function(g){this.globalCompositeOperation&&(g.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){o.runningAnimations&&o.runningAnimations.cancelByTarget(this)}}),o.util.createAccessors&&o.util.createAccessors(o.Object),u(o.Object.prototype,o.Observable),o.Object.NUM_FRACTION_DIGITS=2,o.Object.ENLIVEN_PROPS=["clipPath"],o.Object._fromObject=function(g,y,b,_){var w=o[g];y=h(y,!0),o.util.enlivenPatterns([y.fill,y.stroke],function(S){typeof S[0]<"u"&&(y.fill=S[0]),typeof S[1]<"u"&&(y.stroke=S[1]),o.util.enlivenObjectEnlivables(y,y,function(){var x=_?new w(y[_],y):new w(y);b&&b(x)})})},o.Object.__uid=0)}(e),function(){var a=t.util.degreesToRadians,o={left:-.5,center:0,right:.5},u={top:-.5,center:0,bottom:.5};t.util.object.extend(t.Object.prototype,{translateToGivenOrigin:function(h,c,f,s,d){var v=h.x,g=h.y,y,b,_;return typeof c=="string"?c=o[c]:c-=.5,typeof s=="string"?s=o[s]:s-=.5,y=s-c,typeof f=="string"?f=u[f]:f-=.5,typeof d=="string"?d=u[d]:d-=.5,b=d-f,(y||b)&&(_=this._getTransformedDimensions(),v=h.x+y*_.x,g=h.y+b*_.y),new t.Point(v,g)},translateToCenterPoint:function(h,c,f){var s=this.translateToGivenOrigin(h,c,f,"center","center");return this.angle?t.util.rotatePoint(s,h,a(this.angle)):s},translateToOriginPoint:function(h,c,f){var s=this.translateToGivenOrigin(h,"center","center",c,f);return this.angle?t.util.rotatePoint(s,h,a(this.angle)):s},getCenterPoint:function(){var h=new t.Point(this.left,this.top);return this.translateToCenterPoint(h,this.originX,this.originY)},getPointByOrigin:function(h,c){var f=this.getCenterPoint();return this.translateToOriginPoint(f,h,c)},toLocalPoint:function(h,c,f){var s=this.getCenterPoint(),d,v;return typeof c<"u"&&typeof f<"u"?d=this.translateToGivenOrigin(s,"center","center",c,f):d=new t.Point(this.left,this.top),v=new t.Point(h.x,h.y),this.angle&&(v=t.util.rotatePoint(v,s,-a(this.angle))),v.subtractEquals(d)},setPositionByOrigin:function(h,c,f){var s=this.translateToCenterPoint(h,c,f),d=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",d.x),this.set("top",d.y)},adjustPosition:function(h){var c=a(this.angle),f=this.getScaledWidth(),s=t.util.cos(c)*f,d=t.util.sin(c)*f,v,g;typeof this.originX=="string"?v=o[this.originX]:v=this.originX-.5,typeof h=="string"?g=o[h]:g=h-.5,this.left+=s*(g-v),this.top+=d*(g-v),this.setCoords(),this.originX=h},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var h=this.getCenterPoint();this.originX="center",this.originY="center",this.left=h.x,this.top=h.y},_resetOrigin:function(){var h=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=h.x,this.top=h.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function a(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 o=t.util,u=o.degreesToRadians,h=o.multiplyTransformMatrices,c=o.transformPoint;o.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 a(this._getCoords(f,s))},intersectsWithRect:function(f,s,d,v){var g=this.getCoords(d,v),y=t.Intersection.intersectPolygonRectangle(g,f,s);return y.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),g=s?f.aCoords:f.lineCoords,y=0,b=f._getImageLines(g);y<4;y++)if(!f.containsPoint(v[y],b))return!1;return!0},isContainedWithinRect:function(f,s,d,v){var g=this.getBoundingRect(d,v);return g.left>=f.x&&g.left+g.width<=s.x&&g.top>=f.y&&g.top+g.height<=s.y},containsPoint:function(f,y,d,v){var g=this._getCoords(d,v),y=y||this._getImageLines(g),b=this._findCrossPoints(f,y);return b!==0&&b%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(g){return g.x<=d.x&&g.x>=s.x&&g.y<=d.y&&g.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(g){return(g.x>=d.x||g.x<=s.x)&&(g.y>=d.y||g.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,g,y,b,_=0,w;for(var S in s)if(w=s[S],!(w.o.y<f.y&&w.d.y<f.y)&&!(w.o.y>=f.y&&w.d.y>=f.y)&&(w.o.x===w.d.x&&w.o.x>=f.x?b=w.o.x:(d=0,v=(w.d.y-w.o.y)/(w.d.x-w.o.x),g=f.y-d*f.x,y=w.o.y-v*w.o.x,b=-(g-y)/(d-v)),b>=f.x&&(_+=1),_===2))break;return _},getBoundingRect:function(f,s){var d=this.getCoords(f,s);return o.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=u(this.angle),v=o.cos(d),g=o.sin(d),y=v*s,b=g*s,_=y+b,w=y-b,S=this.calcACoords(),x={tl:c(S.tl,f),tr:c(S.tr,f),bl:c(S.bl,f),br:c(S.br,f)};return s&&(x.tl.x-=w,x.tl.y-=_,x.tr.x+=_,x.tr.y-=w,x.bl.x-=_,x.bl.y+=w,x.br.x+=w,x.br.y+=_),x},calcOCoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),d=this.getViewportTransform(),v=h(d,s),g=h(v,f),g=h(g,[1/d[0],0,0,1/d[3],0,0]),y=this._calculateCurrentDimensions(),b={};return this.forEachControl(function(_,w,S){b[w]=_.positionHandler(y,g,S)}),b},calcACoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),d=h(s,f),v=this._getTransformedDimensions(),g=v.x/2,y=v.y/2;return{tl:c({x:-g,y:-y},d),tr:c({x:g,y:-y},d),bl:c({x:-g,y},d),br:c({x:g,y},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 o.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=h(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=o.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,g,y=f===0&&s===0;if(this.strokeUniform?(v=this.width,g=this.height):(d=this._getNonTransformedDimensions(),v=d.x,g=d.y),y)return this._finalizeDimensions(v*this.scaleX,g*this.scaleY);var b=o.sizeAfterTransform(v,g,{scaleX:this.scaleX,scaleY:this.scaleY,skewX:f,skewY:s});return this._finalizeDimensions(b.x,b.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=c(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(a){return this.group?t.StaticCanvas.prototype.sendBackwards.call(this.group,this,a):this.canvas&&this.canvas.sendBackwards(this,a),this},bringForward:function(a){return this.group?t.StaticCanvas.prototype.bringForward.call(this.group,this,a):this.canvas&&this.canvas.bringForward(this,a),this},moveTo:function(a){return this.group&&this.group.type!=="activeSelection"?t.StaticCanvas.prototype.moveTo.call(this.group,this,a):this.canvas&&this.canvas.moveTo(this,a),this}}),function(){function a(u,h){if(h){if(h.toLive)return u+": url(#SVGID_"+h.id+"); ";var c=new t.Color(h),f=u+": "+c.toRgb()+"; ",s=c.getAlpha();return s!==1&&(f+=u+"-opacity: "+s.toString()+"; "),f}else return u+": none; "}var o=t.util.toFixed;t.util.object.extend(t.Object.prototype,{getSvgStyles:function(u){var h=this.fillRule?this.fillRule:"nonzero",c=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",g=this.strokeMiterLimit?this.strokeMiterLimit:"4",y=typeof this.opacity<"u"?this.opacity:"1",b=this.visible?"":" visibility: hidden;",_=u?"":this.getSvgFilter(),w=a("fill",this.fill),S=a("stroke",this.stroke);return[S,"stroke-width: ",c,"; ","stroke-dasharray: ",f,"; ","stroke-linecap: ",d,"; ","stroke-dashoffset: ",s,"; ","stroke-linejoin: ",v,"; ","stroke-miterlimit: ",g,"; ",w,"fill-rule: ",h,"; ","opacity: ",y,";",_,b].join("")},getSvgSpanStyles:function(u,h){var c="; ",s=u.fontFamily?"font-family: "+(u.fontFamily.indexOf("'")===-1&&u.fontFamily.indexOf('"')===-1?"'"+u.fontFamily+"'":u.fontFamily)+c:"",f=u.strokeWidth?"stroke-width: "+u.strokeWidth+c:"",s=s,d=u.fontSize?"font-size: "+u.fontSize+"px"+c:"",v=u.fontStyle?"font-style: "+u.fontStyle+c:"",g=u.fontWeight?"font-weight: "+u.fontWeight+c:"",y=u.fill?a("fill",u.fill):"",b=u.stroke?a("stroke",u.stroke):"",_=this.getSvgTextDecoration(u),w=u.deltaY?"baseline-shift: "+-u.deltaY+"; ":"";return _&&(_="text-decoration: "+_+c),[b,f,s,d,v,g,_,y,w,h?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(u){return["overline","underline","line-through"].filter(function(h){return u[h.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(u,h){var c=u?this.calcTransformMatrix():this.calcOwnMatrix(),f='transform="'+t.util.matrixToSVG(c);return f+(h||"")+'" '},_setSVGBg:function(u){if(this.backgroundColor){var h=t.Object.NUM_FRACTION_DIGITS;u.push(" <rect ",this._getFillAttributes(this.backgroundColor),' x="',o(-this.width/2,h),'" y="',o(-this.height/2,h),'" width="',o(this.width,h),'" height="',o(this.height,h),`"></rect>
|
||
`)}},toSVG:function(u){return this._createBaseSVGMarkup(this._toSVG(u),{reviver:u})},toClipPathSVG:function(u){return" "+this._createBaseClipPathSVGMarkup(this._toSVG(u),{reviver:u})},_createBaseClipPathSVGMarkup:function(u,h){h=h||{};var c=h.reviver,f=h.additionalTransform||"",s=[this.getSvgTransform(!0,f),this.getSvgCommons()].join(""),d=u.indexOf("COMMON_PARTS");return u[d]=s,c?c(u.join("")):u.join("")},_createBaseSVGMarkup:function(u,h){h=h||{};var c=h.noStyle,f=h.reviver,s=c?"":'style="'+this.getSvgStyles()+'" ',d=h.withShadow?'style="'+this.getSvgFilter()+'" ':"",v=this.clipPath,g=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",y=v&&v.absolutePositioned,b=this.stroke,_=this.fill,w=this.shadow,S,x=[],T,O=u.indexOf("COMMON_PARTS"),A=h.additionalTransform;return v&&(v.clipPathId="CLIPPATH_"+t.Object.__uid++,T='<clipPath id="'+v.clipPathId+`" >
|
||
`+v.toClipPathSVG(f)+`</clipPath>
|
||
`),y&&x.push("<g ",d,this.getSvgCommons(),` >
|
||
`),x.push("<g ",this.getSvgTransform(!1),y?"":d+this.getSvgCommons(),` >
|
||
`),S=[s,g,c?"":this.addPaintOrder()," ",A?'transform="'+A+'" ':""].join(""),u[O]=S,_&&_.toLive&&x.push(_.toSVG(this)),b&&b.toLive&&x.push(b.toSVG(this)),w&&x.push(w.toSVG(this)),v&&x.push(T),x.push(u.join("")),x.push(`</g>
|
||
`),y&&x.push(`</g>
|
||
`),f?f(x.join("")):x.join("")},addPaintOrder:function(){return this.paintFirst!=="fill"?' paint-order="'+this.paintFirst+'" ':""}})}(),function(){var a=t.util.object.extend,o="stateProperties";function u(c,f,s){var d={},v=!0;s.forEach(function(g){d[g]=c[g]}),a(c[f],d,v)}function h(c,f,s){if(c===f)return!0;if(Array.isArray(c)){if(!Array.isArray(f)||c.length!==f.length)return!1;for(var d=0,v=c.length;d<v;d++)if(!h(c[d],f[d]))return!1;return!0}else if(c&&typeof c=="object"){var g=Object.keys(c),y;if(!f||typeof f!="object"||!s&&g.length!==Object.keys(f).length)return!1;for(var d=0,v=g.length;d<v;d++)if(y=g[d],!(y==="canvas"||y==="group")&&!h(c[y],f[y]))return!1;return!0}}t.util.object.extend(t.Object.prototype,{hasStateChanged:function(c){c=c||o;var f="_"+c;return Object.keys(this[f]).length<this[c].length?!0:!h(this[f],this,!0)},saveState:function(c){var f=c&&c.propertySet||o,s="_"+f;return this[s]?(u(this,s,this[f]),c&&c.stateProperties&&u(this,s,c.stateProperties),this):this.setupState(c)},setupState:function(c){c=c||{};var f=c.propertySet||o;return c.propertySet=f,this["_"+f]={},this.saveState(c),this}})}(),function(){var a=t.util.degreesToRadians;t.util.object.extend(t.Object.prototype,{_findTargetCorner:function(o,u){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var h=o.x,c=o.y,f,s,d=Object.keys(this.oCoords),v=d.length-1,g;for(this.__corner=0;v>=0;v--)if(g=d[v],!!this.isControlVisible(g)&&(s=this._getImageLines(u?this.oCoords[g].touchCorner:this.oCoords[g].corner),f=this._findCrossPoints({x:h,y:c},s),f!==0&&f%2===1))return this.__corner=g,g;return!1},forEachControl:function(o){for(var u in this.controls)o(this.controls[u],u,this)},_setCornerCoords:function(){var o=this.oCoords;for(var u in o){var h=this.controls[u];o[u].corner=h.calcCornerCoords(this.angle,this.cornerSize,o[u].x,o[u].y,!1),o[u].touchCorner=h.calcCornerCoords(this.angle,this.touchCornerSize,o[u].x,o[u].y,!0)}},drawSelectionBackground:function(o){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;o.save();var u=this.getCenterPoint(),h=this._calculateCurrentDimensions(),c=this.canvas.viewportTransform;return o.translate(u.x,u.y),o.scale(1/c[0],1/c[3]),o.rotate(a(this.angle)),o.fillStyle=this.selectionBackgroundColor,o.fillRect(-h.x/2,-h.y/2,h.x,h.y),o.restore(),this},drawBorders:function(o,u){u=u||{};var h=this._calculateCurrentDimensions(),c=this.borderScaleFactor,f=h.x+c,s=h.y+c,d=typeof u.hasControls<"u"?u.hasControls:this.hasControls,v=!1;return o.save(),o.strokeStyle=u.borderColor||this.borderColor,this._setLineDash(o,u.borderDashArray||this.borderDashArray),o.strokeRect(-f/2,-s/2,f,s),d&&(o.beginPath(),this.forEachControl(function(g,y,b){g.withConnection&&g.getVisibility(b,y)&&(v=!0,o.moveTo(g.x*f,g.y*s),o.lineTo(g.x*f+g.offsetX,g.y*s+g.offsetY))}),v&&o.stroke()),o.restore(),this},drawBordersInGroup:function(o,u,h){h=h||{};var c=t.util.sizeAfterTransform(this.width,this.height,u),f=this.strokeWidth,s=this.strokeUniform,d=this.borderScaleFactor,v=c.x+f*(s?this.canvas.getZoom():u.scaleX)+d,g=c.y+f*(s?this.canvas.getZoom():u.scaleY)+d;return o.save(),this._setLineDash(o,h.borderDashArray||this.borderDashArray),o.strokeStyle=h.borderColor||this.borderColor,o.strokeRect(-v/2,-g/2,v,g),o.restore(),this},drawControls:function(o,u){u=u||{},o.save();var h=this.canvas.getRetinaScaling(),c,f;return o.setTransform(h,0,0,h,0,0),o.strokeStyle=o.fillStyle=u.cornerColor||this.cornerColor,this.transparentCorners||(o.strokeStyle=u.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(o,u.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(c=this.group.calcTransformMatrix()),this.forEachControl(function(s,d,v){f=v.oCoords[d],s.getVisibility(v,d)&&(c&&(f=t.util.transformPoint(f,c)),s.render(o,f.x,f.y,u,v))}),o.restore(),this},isControlVisible:function(o){return this.controls[o]&&this.controls[o].getVisibility(this,o)},setControlVisible:function(o,u){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[o]=u,this},setControlsVisibility:function(o){o||(o={});for(var u in o)this.setControlVisible(u,o[u]);return this},onDeselect:function(){},onSelect:function(){}})}(),t.util.object.extend(t.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(a,o){o=o||{};var u=function(){},h=o.onComplete||u,c=o.onChange||u,f=this;return t.util.animate({target:this,startValue:a.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(s){a.set("left",s),f.requestRenderAll(),c()},onComplete:function(){a.setCoords(),h()}})},fxCenterObjectV:function(a,o){o=o||{};var u=function(){},h=o.onComplete||u,c=o.onChange||u,f=this;return t.util.animate({target:this,startValue:a.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(s){a.set("top",s),f.requestRenderAll(),c()},onComplete:function(){a.setCoords(),h()}})},fxRemove:function(a,o){o=o||{};var u=function(){},h=o.onComplete||u,c=o.onChange||u,f=this;return t.util.animate({target:this,startValue:a.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(s){a.set("opacity",s),f.requestRenderAll(),c()},onComplete:function(){f.remove(a),h()}})}}),t.util.object.extend(t.Object.prototype,{animate:function(){if(arguments[0]&&typeof arguments[0]=="object"){var a=[],o,u,h=[];for(o in arguments[0])a.push(o);for(var c=0,f=a.length;c<f;c++)o=a[c],u=c!==f-1,h.push(this._animate(o,arguments[0][o],arguments[1],u));return h}else return this._animate.apply(this,arguments)},_animate:function(a,o,u,h){var c=this,f;o=o.toString(),u?u=t.util.object.clone(u):u={},~a.indexOf(".")&&(f=a.split("."));var s=c.colorProperties.indexOf(a)>-1||f&&c.colorProperties.indexOf(f[1])>-1,d=f?this.get(f[0])[f[1]]:this.get(a);"from"in u||(u.from=d),s||(~o.indexOf("=")?o=d+parseFloat(o.replace("=","")):o=parseFloat(o));var v={target:this,startValue:u.from,endValue:o,byValue:u.by,easing:u.easing,duration:u.duration,abort:u.abort&&function(g,y,b){return u.abort.call(c,g,y,b)},onChange:function(g,y,b){f?c[f[0]][f[1]]=g:c.set(a,g),!h&&u.onChange&&u.onChange(g,y,b)},onComplete:function(g,y,b){h||(c.setCoords(),u.onComplete&&u.onComplete(g,y,b))}};return s?t.util.animateColor(v.startValue,v.endValue,v.duration,v):t.util.animate(v)}}),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.extend,h=o.util.object.clone,c={x1:1,x2:1,y1:1,y2:1};if(o.Line){o.warn("fabric.Line is already defined");return}o.Line=o.util.createClass(o.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:o.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 c[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 u(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,g=d*this.height*.5,y=s*this.width*-.5,b=d*this.height*-.5;return{x1:v,x2:y,y1:g,y2:b}},_toSVG:function(){var s=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',s.x1,'" y1="',s.y1,'" x2="',s.x2,'" y2="',s.y2,`" />
|
||
`]}}),o.Line.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),o.Line.fromElement=function(s,d,v){v=v||{};var g=o.parseAttributes(s,o.Line.ATTRIBUTE_NAMES),y=[g.x1||0,g.y1||0,g.x2||0,g.y2||0];d(new o.Line(y,u(g,v)))},o.Line.fromObject=function(s,d){function v(y){delete y.points,d&&d(y)}var g=h(s,!0);g.points=[s.x1,s.y1,s.x2,s.y2],o.Object._fromObject("Line",g,v,"points")};function f(s,d){var v=s.origin,g=s.axis1,y=s.axis2,b=s.dimension,_=d.nearest,w=d.center,S=d.farthest;return function(){switch(this.get(v)){case _:return Math.min(this.get(g),this.get(y));case w:return Math.min(this.get(g),this.get(y))+.5*this.get(b);case S:return Math.max(this.get(g),this.get(y))}}}}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.degreesToRadians;if(o.Circle){o.warn("fabric.Circle is already defined.");return}o.Circle=o.util.createClass(o.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:o.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(c,f){return this.callSuper("_set",c,f),c==="radius"&&this.setRadius(f),this},toObject:function(c){return this.callSuper("toObject",["radius","startAngle","endAngle"].concat(c))},_toSVG:function(){var c,f=0,s=0,d=(this.endAngle-this.startAngle)%360;if(d===0)c=["<circle ","COMMON_PARTS",'cx="'+f+'" cy="'+s+'" ','r="',this.radius,`" />
|
||
`];else{var v=u(this.startAngle),g=u(this.endAngle),y=this.radius,b=o.util.cos(v)*y,_=o.util.sin(v)*y,w=o.util.cos(g)*y,S=o.util.sin(g)*y,x=d>180?"1":"0";c=['<path d="M '+b+" "+_," A "+y+" "+y," 0 ",+x+" 1"," "+w+" "+S,'" ',"COMMON_PARTS",` />
|
||
`]}return c},_render:function(c){c.beginPath(),c.arc(0,0,this.radius,u(this.startAngle),u(this.endAngle),!1),this._renderPaintInOrder(c)},getRadiusX:function(){return this.get("radius")*this.get("scaleX")},getRadiusY:function(){return this.get("radius")*this.get("scaleY")},setRadius:function(c){return this.radius=c,this.set("width",c*2).set("height",c*2)}}),o.Circle.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),o.Circle.fromElement=function(c,f){var s=o.parseAttributes(c,o.Circle.ATTRIBUTE_NAMES);if(!h(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 o.Circle(s))};function h(c){return"radius"in c&&c.radius>=0}o.Circle.fromObject=function(c,f){o.Object._fromObject("Circle",c,f)}}(e),function(a){var o=a.fabric||(a.fabric={});if(o.Triangle){o.warn("fabric.Triangle is already defined");return}o.Triangle=o.util.createClass(o.Object,{type:"triangle",width:100,height:100,_render:function(u){var h=this.width/2,c=this.height/2;u.beginPath(),u.moveTo(-h,c),u.lineTo(0,-c),u.lineTo(h,c),u.closePath(),this._renderPaintInOrder(u)},_toSVG:function(){var u=this.width/2,h=this.height/2,c=[-u+" "+h,"0 "+-h,u+" "+h].join(",");return["<polygon ","COMMON_PARTS",'points="',c,'" />']}}),o.Triangle.fromObject=function(u,h){return o.Object._fromObject("Triangle",u,h)}}(e),function(a){var o=a.fabric||(a.fabric={}),u=Math.PI*2;if(o.Ellipse){o.warn("fabric.Ellipse is already defined.");return}o.Ellipse=o.util.createClass(o.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:o.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(h){this.callSuper("initialize",h),this.set("rx",h&&h.rx||0),this.set("ry",h&&h.ry||0)},_set:function(h,c){switch(this.callSuper("_set",h,c),h){case"rx":this.rx=c,this.set("width",c*2);break;case"ry":this.ry=c,this.set("height",c*2);break}return this},getRx:function(){return this.get("rx")*this.get("scaleX")},getRy:function(){return this.get("ry")*this.get("scaleY")},toObject:function(h){return this.callSuper("toObject",["rx","ry"].concat(h))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,`" />
|
||
`]},_render:function(h){h.beginPath(),h.save(),h.transform(1,0,0,this.ry/this.rx,0,0),h.arc(0,0,this.rx,0,u,!1),h.restore(),this._renderPaintInOrder(h)}}),o.Ellipse.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),o.Ellipse.fromElement=function(h,c){var f=o.parseAttributes(h,o.Ellipse.ATTRIBUTE_NAMES);f.left=(f.left||0)-f.rx,f.top=(f.top||0)-f.ry,c(new o.Ellipse(f))},o.Ellipse.fromObject=function(h,c){o.Object._fromObject("Ellipse",h,c)}}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.extend;if(o.Rect){o.warn("fabric.Rect is already defined");return}o.Rect=o.util.createClass(o.Object,{stateProperties:o.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:o.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(h){this.callSuper("initialize",h),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(h){var c=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,g=-this.height/2,y=c!==0||f!==0,b=1-.5522847498;h.beginPath(),h.moveTo(v+c,g),h.lineTo(v+s-c,g),y&&h.bezierCurveTo(v+s-b*c,g,v+s,g+b*f,v+s,g+f),h.lineTo(v+s,g+d-f),y&&h.bezierCurveTo(v+s,g+d-b*f,v+s-b*c,g+d,v+s-c,g+d),h.lineTo(v+c,g+d),y&&h.bezierCurveTo(v+b*c,g+d,v,g+d-b*f,v,g+d-f),h.lineTo(v,g+f),y&&h.bezierCurveTo(v,g+b*f,v+b*c,g,v+c,g),h.closePath(),this._renderPaintInOrder(h)},toObject:function(h){return this.callSuper("toObject",["rx","ry"].concat(h))},_toSVG:function(){var h=-this.width/2,c=-this.height/2;return["<rect ","COMMON_PARTS",'x="',h,'" y="',c,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,`" />
|
||
`]}}),o.Rect.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),o.Rect.fromElement=function(h,c,f){if(!h)return c(null);f=f||{};var s=o.parseAttributes(h,o.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 o.Rect(u(f?o.util.object.clone(f):{},s));d.visible=d.visible&&d.width>0&&d.height>0,c(d)},o.Rect.fromObject=function(h,c){return o.Object._fromObject("Rect",h,c)}}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.extend,h=o.util.array.min,c=o.util.array.max,f=o.util.toFixed,s=o.util.projectStrokeOnPoints;if(o.Polyline){o.warn("fabric.Polyline is already defined");return}o.Polyline=o.util.createClass(o.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:o.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),g,y=this.exactBoundingBox?this.strokeWidth:0;this.width=v.width-y,this.height=v.height-y,d.fromSVG||(g=this.translateToGivenOrigin({x:v.left-this.strokeWidth/2+y/2,y:v.top-this.strokeWidth/2+y/2},"left","top",this.originX,this.originY)),typeof d.left>"u"&&(this.left=d.fromSVG?v.left:g.x),typeof d.top>"u"&&(this.top=d.fromSVG?v.top:g.y),this.pathOffset={x:v.left+this.width/2+y/2,y:v.top+this.height/2+y/2}},_calcDimensions:function(){var d=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,v=h(d,"x")||0,g=h(d,"y")||0,y=c(d,"x")||0,b=c(d,"y")||0,_=y-v,w=b-g;return{left:v,top:g,width:_,height:w}},toObject:function(d){return u(this.callSuper("toObject",d),{points:this.points.concat()})},_toSVG:function(){for(var d=[],v=this.pathOffset.x,g=this.pathOffset.y,y=o.Object.NUM_FRACTION_DIGITS,b=0,_=this.points.length;b<_;b++)d.push(f(this.points[b].x-v,y),",",f(this.points[b].y-g,y)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',d.join(""),`" />
|
||
`]},commonRender:function(d){var v,g=this.points.length,y=this.pathOffset.x,b=this.pathOffset.y;if(!g||isNaN(this.points[g-1].y))return!1;d.beginPath(),d.moveTo(this.points[0].x-y,this.points[0].y-b);for(var _=0;_<g;_++)v=this.points[_],d.lineTo(v.x-y,v.y-b);return!0},_render:function(d){!this.commonRender(d)||this._renderPaintInOrder(d)},complexity:function(){return this.get("points").length}}),o.Polyline.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat(),o.Polyline.fromElementGenerator=function(d){return function(v,g,y){if(!v)return g(null);y||(y={});var b=o.parsePointsAttribute(v.getAttribute("points")),_=o.parseAttributes(v,o[d].ATTRIBUTE_NAMES);_.fromSVG=!0,g(new o[d](b,u(_,y)))}},o.Polyline.fromElement=o.Polyline.fromElementGenerator("Polyline"),o.Polyline.fromObject=function(d,v){return o.Object._fromObject("Polyline",d,v,"points")}}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.projectStrokeOnPoints;if(o.Polygon){o.warn("fabric.Polygon is already defined");return}o.Polygon=o.util.createClass(o.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return u(this.points,this)},_render:function(h){!this.commonRender(h)||(h.closePath(),this._renderPaintInOrder(h))}}),o.Polygon.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat(),o.Polygon.fromElement=o.Polyline.fromElementGenerator("Polygon"),o.Polygon.fromObject=function(h,c){o.Object._fromObject("Polygon",h,c,"points")}}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.array.min,h=o.util.array.max,c=o.util.object.extend,f=o.util.object.clone,s=o.util.toFixed;if(o.Path){o.warn("fabric.Path is already defined");return}o.Path=o.util.createClass(o.Object,{type:"path",path:null,cacheProperties:o.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:o.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=o.util.makePathSimpler(Array.isArray(d)?d:o.util.parsePath(d)),o.Polyline.prototype._setPositionDimensions.call(this,v||{})},_renderPathCommands:function(d){var v,g=0,y=0,b=0,_=0,w=0,S=0,x=-this.pathOffset.x,T=-this.pathOffset.y;d.beginPath();for(var O=0,A=this.path.length;O<A;++O)switch(v=this.path[O],v[0]){case"L":b=v[1],_=v[2],d.lineTo(b+x,_+T);break;case"M":b=v[1],_=v[2],g=b,y=_,d.moveTo(b+x,_+T);break;case"C":b=v[5],_=v[6],w=v[3],S=v[4],d.bezierCurveTo(v[1]+x,v[2]+T,w+x,S+T,b+x,_+T);break;case"Q":d.quadraticCurveTo(v[1]+x,v[2]+T,v[3]+x,v[4]+T),b=v[3],_=v[4],w=v[1],S=v[2];break;case"z":case"Z":b=g,_=y,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 c(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=o.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',d,'" stroke-linecap="round" ',`/>
|
||
`]},_getOffsetTransform:function(){var d=o.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=[],g,y=0,b=0,_=0,w=0,S,x=0,T=this.path.length;x<T;++x){switch(g=this.path[x],g[0]){case"L":_=g[1],w=g[2],S=[];break;case"M":_=g[1],w=g[2],y=_,b=w,S=[];break;case"C":S=o.util.getBoundsOfCurve(_,w,g[1],g[2],g[3],g[4],g[5],g[6]),_=g[5],w=g[6];break;case"Q":S=o.util.getBoundsOfCurve(_,w,g[1],g[2],g[1],g[2],g[3],g[4]),_=g[3],w=g[4];break;case"z":case"Z":_=y,w=b;break}S.forEach(function(E){d.push(E.x),v.push(E.y)}),d.push(_),v.push(w)}var O=u(d)||0,A=u(v)||0,$=h(d)||0,j=h(v)||0,R=$-O,F=j-A;return{left:O,top:A,width:R,height:F}}}),o.Path.fromObject=function(d,v){if(typeof d.sourcePath=="string"){var g=d.sourcePath;o.loadSVGFromURL(g,function(y){var b=y[0];b.setOptions(d),d.clipPath?o.util.enlivenObjects([d.clipPath],function(_){b.clipPath=_[0],v&&v(b)}):v&&v(b)})}else o.Object._fromObject("Path",d,v,"path")},o.Path.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat(["d"]),o.Path.fromElement=function(d,v,g){var y=o.parseAttributes(d,o.Path.ATTRIBUTE_NAMES);y.fromSVG=!0,v(new o.Path(y.d,c(y,g)))}}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.array.min,h=o.util.array.max;o.Group||(o.Group=o.util.createClass(o.Object,o.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(c,f,s){f=f||{},this._objects=[],s&&this.callSuper("initialize",f),this._objects=c||[];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 c=!0,f=this._objects.length;f--;)this._objects[f].setCoords(c)},_updateObjectsCoords:function(f){for(var f=f||this.getCenterPoint(),s=this._objects.length;s--;)this._updateObjectCoords(this._objects[s],f)},_updateObjectCoords:function(c,f){var s=c.left,d=c.top,v=!0;c.set({left:s-f.x,top:d-f.y}),c.group=this,c.setCoords(v)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(c){var f=!!this.group;return this._restoreObjectsState(),o.util.resetObjectTransform(this),c&&(f&&o.util.removeTransformFromObject(c,this.group.calcTransformMatrix()),this._objects.push(c),c.group=this,c._set("canvas",this.canvas)),this._calcBounds(),this._updateObjectsCoords(),this.dirty=!0,f?this.group.addWithUpdate():this.setCoords(),this},removeWithUpdate:function(c){return this._restoreObjectsState(),o.util.resetObjectTransform(this),this.remove(c),this._calcBounds(),this._updateObjectsCoords(),this.setCoords(),this.dirty=!0,this},_onObjectAdded:function(c){this.dirty=!0,c.group=this,c._set("canvas",this.canvas)},_onObjectRemoved:function(c){this.dirty=!0,delete c.group},_set:function(c,f){var s=this._objects.length;if(this.useSetOnGroup)for(;s--;)this._objects[s].setOnGroup(c,f);if(c==="canvas")for(;s--;)this._objects[s]._set(c,f);o.Object.prototype._set.call(this,c,f)},toObject:function(c){var f=this.includeDefaultValues,s=this._objects.filter(function(v){return!v.excludeFromExport}).map(function(v){var g=v.includeDefaultValues;v.includeDefaultValues=f;var y=v.toObject(c);return v.includeDefaultValues=g,y}),d=o.Object.prototype.toObject.call(this,c);return d.objects=s,d},toDatalessObject:function(c){var f,s=this.sourcePath;if(s)f=s;else{var d=this.includeDefaultValues;f=this._objects.map(function(g){var y=g.includeDefaultValues;g.includeDefaultValues=d;var b=g.toDatalessObject(c);return g.includeDefaultValues=y,b})}var v=o.Object.prototype.toDatalessObject.call(this,c);return v.objects=f,v},render:function(c){this._transformDone=!0,this.callSuper("render",c),this._transformDone=!1},shouldCache:function(){var c=o.Object.prototype.shouldCache.call(this);if(c){for(var f=0,s=this._objects.length;f<s;f++)if(this._objects[f].willDrawShadow())return this.ownCaching=!1,!1}return c},willDrawShadow:function(){if(o.Object.prototype.willDrawShadow.call(this))return!0;for(var c=0,f=this._objects.length;c<f;c++)if(this._objects[c].willDrawShadow())return!0;return!1},isOnACache:function(){return this.ownCaching||this.group&&this.group.isOnACache()},drawObject:function(c){for(var f=0,s=this._objects.length;f<s;f++)this._objects[f].render(c);this._drawClipPath(c,this.clipPath)},isCacheDirty:function(c){if(this.callSuper("isCacheDirty",c))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 c=this.calcOwnMatrix();return this._objects.forEach(function(f){o.util.addTransformToObject(f,c),delete f.group,f.setCoords()}),this},destroy:function(){return this._objects.forEach(function(c){c.set("dirty",!0)}),this._restoreObjectsState()},dispose:function(){this.callSuper("dispose"),this.forEachObject(function(c){c.dispose&&c.dispose()}),this._objects=[]},toActiveSelection:function(){if(!!this.canvas){var c=this._objects,f=this.canvas;this._objects=[];var s=this.toObject();delete s.objects;var d=new o.ActiveSelection([]);return d.set(s),d.type="activeSelection",f.remove(this),c.forEach(function(v){v.group=d,v.dirty=!0,f.add(v)}),d.canvas=f,d._objects=c,f._activeObject=d,d.setCoords(),d}},ungroupOnCanvas:function(){return this._restoreObjectsState()},setObjectsCoords:function(){var c=!0;return this.forEachObject(function(f){f.setCoords(c)}),this},_calcBounds:function(c){for(var f=[],s=[],d,v,g,y=["tr","br","bl","tl"],b=0,_=this._objects.length,w,S=y.length;b<_;++b){for(d=this._objects[b],g=d.calcACoords(),w=0;w<S;w++)v=y[w],f.push(g[v].x),s.push(g[v].y);d.aCoords=g}this._getBounds(f,s,c)},_getBounds:function(c,f,s){var d=new o.Point(u(c),u(f)),v=new o.Point(h(c),h(f)),g=d.y||0,y=d.x||0,b=v.x-d.x||0,_=v.y-d.y||0;this.width=b,this.height=_,s||this.setPositionByOrigin({x:y,y:g},"left","top")},_toSVG:function(c){for(var f=["<g ","COMMON_PARTS",` >
|
||
`],s=0,d=this._objects.length;s<d;s++)f.push(" ",this._objects[s].toSVG(c));return f.push(`</g>
|
||
`),f},getSvgStyles:function(){var c=typeof this.opacity<"u"&&this.opacity!==1?"opacity: "+this.opacity+";":"",f=this.visible?"":" visibility: hidden;";return[c,this.getSvgFilter(),f].join("")},toClipPathSVG:function(c){for(var f=[],s=0,d=this._objects.length;s<d;s++)f.push(" ",this._objects[s].toClipPathSVG(c));return this._createBaseClipPathSVGMarkup(f,{reviver:c})}}),o.Group.fromObject=function(c,f){var s=c.objects,d=o.util.object.clone(c,!0);if(delete d.objects,typeof s=="string"){o.loadSVGFromURL(s,function(v){var g=o.util.groupSVGElements(v,c,s),y=d.clipPath;delete d.clipPath,g.set(d),y?o.util.enlivenObjects([y],function(b){g.clipPath=b[0],f&&f(g)}):f&&f(g)});return}o.util.enlivenObjects(s,function(v){o.util.enlivenObjectEnlivables(c,d,function(){f&&f(new o.Group(v,d,!0))})})})}(e),function(a){var o=a.fabric||(a.fabric={});o.ActiveSelection||(o.ActiveSelection=o.util.createClass(o.Group,{type:"activeSelection",initialize:function(u,h){h=h||{},this._objects=u||[];for(var c=this._objects.length;c--;)this._objects[c].group=this;h.originX&&(this.originX=h.originX),h.originY&&(this.originY=h.originY),this._calcBounds(),this._updateObjectsCoords(),o.Object.prototype.initialize.call(this,h),this.setCoords()},toGroup:function(){var u=this._objects.concat();this._objects=[];var h=o.Object.prototype.toObject.call(this),c=new o.Group([]);if(delete h.type,c.set(h),u.forEach(function(s){s.canvas.remove(s),s.group=c}),c._objects=u,!this.canvas)return c;var f=this.canvas;return f.add(c),f._activeObject=c,c.setCoords(),c},onDeselect:function(){return this.destroy(),!1},toString:function(){return"#<fabric.ActiveSelection: ("+this.complexity()+")>"},shouldCache:function(){return!1},isOnACache:function(){return!1},_renderControls:function(u,h,c){u.save(),u.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",u,h),c=c||{},typeof c.hasControls>"u"&&(c.hasControls=!1),c.forActiveSelection=!0;for(var f=0,s=this._objects.length;f<s;f++)this._objects[f]._renderControls(u,c);u.restore()}}),o.ActiveSelection.fromObject=function(u,h){o.util.enlivenObjects(u.objects,function(c){delete u.objects,h&&h(new o.ActiveSelection(c,u,!0))})})}(e),function(a){var o=t.util.object.extend;if(a.fabric||(a.fabric={}),a.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(u,h){h||(h={}),this.filters=[],this.cacheKey="texture"+t.Object.__uid++,this.callSuper("initialize",h),this._initElement(u,h)},getElement:function(){return this._element||{}},setElement:function(u,h){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=u,this._originalElement=u,this._initConfig(h),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(u){var h=t.filterBackend;h&&h.evictCachesForKey&&h.evictCachesForKey(u)},dispose:function(){this.callSuper("dispose"),this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._cacheContext=void 0,["_originalElement","_element","_filteredEl","_cacheCanvas"].forEach(function(u){t.util.cleanUpJsdomNode(this[u]),this[u]=void 0}.bind(this))},getCrossOrigin:function(){return this._originalElement&&(this._originalElement.crossOrigin||null)},getOriginalSize:function(){var u=this.getElement();return{width:u.naturalWidth||u.width,height:u.naturalHeight||u.height}},_stroke:function(u){if(!(!this.stroke||this.strokeWidth===0)){var h=this.width/2,c=this.height/2;u.beginPath(),u.moveTo(-h,-c),u.lineTo(h,-c),u.lineTo(h,c),u.lineTo(-h,c),u.lineTo(-h,-c),u.closePath()}},toObject:function(u){var h=[];this.filters.forEach(function(f){f&&h.push(f.toObject())});var c=o(this.callSuper("toObject",["cropX","cropY"].concat(u)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:h});return this.resizeFilter&&(c.resizeFilter=this.resizeFilter.toObject()),c},hasCrop:function(){return this.cropX||this.cropY||this.width<this._element.width||this.height<this._element.height},_toSVG:function(){var u=[],h=[],c,f=this._element,s=-this.width/2,d=-this.height/2,v="",g="";if(!f)return[];if(this.hasCrop()){var y=t.Object.__uid++;u.push('<clipPath id="imageCrop_'+y+`">
|
||
`,' <rect x="'+s+'" y="'+d+'" width="'+this.width+'" height="'+this.height+`" />
|
||
`,`</clipPath>
|
||
`),v=' clip-path="url(#imageCrop_'+y+')" '}if(this.imageSmoothing||(g='" image-rendering="optimizeSpeed'),h.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,g,'"',v,`></image>
|
||
`),this.stroke||this.strokeDashArray){var b=this.fill;this.fill=null,c=[" <rect ",'x="',s,'" y="',d,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),`"/>
|
||
`],this.fill=b}return this.paintFirst!=="fill"?u=u.concat(c,h):u=u.concat(h,c),u},getSrc:function(u){var h=u?this._element:this._originalElement;return h?h.toDataURL?h.toDataURL():this.srcFromAttribute?h.getAttribute("src"):h.src:this.src||""},setSrc:function(u,h,c){return t.util.loadImage(u,function(f,s){this.setElement(f,c),this._setWidthHeight(),h&&h(this,s)},this,c&&c.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var u=this.resizeFilter,h=this.minimumScaleTrigger,c=this.getTotalObjectScaling(),f=c.scaleX,s=c.scaleY,d=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!u||f>h&&s>h){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(),g=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,y=d.width,b=d.height;v.width=y,v.height=b,this._element=v,this._lastScaleX=u.scaleX=f,this._lastScaleY=u.scaleY=s,t.filterBackend.applyFilters([u],d,y,b,this._element,g),this._filterScalingX=v.width/this._originalElement.width,this._filterScalingY=v.height/this._originalElement.height},applyFilters:function(u){if(u=u||this.filters||[],u=u.filter(function(d){return d&&!d.isNeutralState()}),this.set("dirty",!0),this.removeTexture(this.cacheKey+"_filtered"),u.length===0)return this._element=this._originalElement,this._filteredEl=null,this._filterScalingX=1,this._filterScalingY=1,this;var h=this._originalElement,c=h.naturalWidth||h.width,f=h.naturalHeight||h.height;if(this._element===this._originalElement){var s=t.util.createCanvasElement();s.width=c,s.height=f,this._element=s,this._filteredEl=s}else this._element=this._filteredEl,this._filteredEl.getContext("2d").clearRect(0,0,c,f),this._lastScaleX=1,this._lastScaleY=1;return t.filterBackend||(t.filterBackend=t.initFilterBackend()),t.filterBackend.applyFilters(u,this._originalElement,c,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(u){t.util.setImageSmoothing(u,this.imageSmoothing),this.isMoving!==!0&&this.resizeFilter&&this._needsResize()&&this.applyResizeFilters(),this._stroke(u),this._renderPaintInOrder(u)},drawCacheOnCanvas:function(u){t.util.setImageSmoothing(u,this.imageSmoothing),t.Object.prototype.drawCacheOnCanvas.call(this,u)},shouldCache:function(){return this.needsItsOwnCache()},_renderFill:function(u){var h=this._element;if(!!h){var c=this._filterScalingX,f=this._filterScalingY,s=this.width,d=this.height,v=Math.min,g=Math.max,y=g(this.cropX,0),b=g(this.cropY,0),_=h.naturalWidth||h.width,w=h.naturalHeight||h.height,S=y*c,x=b*f,T=v(s*c,_-S),O=v(d*f,w-x),A=-s/2,$=-d/2,j=v(s,_/c-y),R=v(d,w/f-b);h&&u.drawImage(h,S,x,T,O,A,$,j,R)}},_needsResize:function(){var u=this.getTotalObjectScaling();return u.scaleX!==this._lastScaleX||u.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(u,h){this.setElement(t.util.getById(u),h),t.util.addClass(this.getElement(),t.Image.CSS_CANVAS)},_initConfig:function(u){u||(u={}),this.setOptions(u),this._setWidthHeight(u)},_initFilters:function(u,h){u&&u.length?t.util.enlivenObjects(u,function(c){h&&h(c)},"fabric.Image.filters"):h&&h()},_setWidthHeight:function(u){u||(u={});var h=this.getElement();this.width=u.width||h.naturalWidth||h.width||0,this.height=u.height||h.naturalHeight||h.height||0},parsePreserveAspectRatioAttribute:function(){var u=t.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),h=this._element.width,c=this._element.height,f=1,s=1,d=0,v=0,g=0,y=0,b,_=this.width,w=this.height,S={width:_,height:w};return u&&(u.alignX!=="none"||u.alignY!=="none")?(u.meetOrSlice==="meet"&&(f=s=t.util.findScaleToFit(this._element,S),b=(_-h*f)/2,u.alignX==="Min"&&(d=-b),u.alignX==="Max"&&(d=b),b=(w-c*s)/2,u.alignY==="Min"&&(v=-b),u.alignY==="Max"&&(v=b)),u.meetOrSlice==="slice"&&(f=s=t.util.findScaleToCover(this._element,S),b=h-_/f,u.alignX==="Mid"&&(g=b/2),u.alignX==="Max"&&(g=b),b=c-w/s,u.alignY==="Mid"&&(y=b/2),u.alignY==="Max"&&(y=b),h=_/f,c=w/s)):(f=_/h,s=w/c),{width:h,height:c,scaleX:f,scaleY:s,offsetLeft:d,offsetTop:v,cropX:g,cropY:y}}}),t.Image.CSS_CANVAS="canvas-img",t.Image.prototype.getSvgSrc=t.Image.prototype.getSrc,t.Image.fromObject=function(u,h){var c=t.util.object.clone(u);t.util.loadImage(c.src,function(f,s){if(s){h&&h(null,!0);return}t.Image.prototype._initFilters.call(c,c.filters,function(d){c.filters=d||[],t.Image.prototype._initFilters.call(c,[c.resizeFilter],function(v){c.resizeFilter=v[0],t.util.enlivenObjectEnlivables(c,c,function(){var g=new t.Image(f,c);h(g,!1)})})})},null,c.crossOrigin)},t.Image.fromURL=function(u,h,c){t.util.loadImage(u,function(f,s){h&&h(new t.Image(f,c),s)},null,c&&c.crossOrigin)},t.Image.ATTRIBUTE_NAMES=t.SHARED_ATTRIBUTES.concat("x y width height preserveAspectRatio xlink:href crossOrigin image-rendering".split(" ")),t.Image.fromElement=function(u,h,c){var f=t.parseAttributes(u,t.Image.ATTRIBUTE_NAMES);t.Image.fromURL(f["xlink:href"],h,o(c?t.util.object.clone(c):{},f))}}(e),t.util.object.extend(t.Object.prototype,{_getAngleValueForStraighten:function(){var a=this.angle%360;return a>0?Math.round((a-1)/90)*90:Math.round(a/90)*90},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(a){a=a||{};var o=function(){},u=a.onComplete||o,h=a.onChange||o,c=this;return t.util.animate({target:this,startValue:this.get("angle"),endValue:this._getAngleValueForStraighten(),duration:this.FX_DURATION,onChange:function(f){c.rotate(f),h()},onComplete:function(){c.setCoords(),u()}})}}),t.util.object.extend(t.StaticCanvas.prototype,{straightenObject:function(a){return a.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(a){return a.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){function a(u,h){var c="precision "+h+` float;
|
||
void main(){}`,f=u.createShader(u.FRAGMENT_SHADER);return u.shaderSource(f,c),u.compileShader(f),!!u.getShaderParameter(f,u.COMPILE_STATUS)}t.isWebglSupported=function(u){if(t.isLikelyNode)return!1;u=u||t.WebglFilterBackend.prototype.tileSize;var h=document.createElement("canvas"),c=h.getContext("webgl")||h.getContext("experimental-webgl"),f=!1;if(c){t.maxTextureSize=c.getParameter(c.MAX_TEXTURE_SIZE),f=t.maxTextureSize>=u;for(var s=["highp","mediump","lowp"],d=0;d<3;d++)if(a(c,s[d])){t.webGlPrecision=s[d];break}}return this.isSupported=f,f},t.WebglFilterBackend=o;function o(u){u&&u.tileSize&&(this.tileSize=u.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}o.prototype={tileSize:2048,resources:{},setupGLContext:function(u,h){this.dispose(),this.createWebGLCanvas(u,h),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(u,h)},chooseFastestCopyGLTo2DMethod:function(u,h){var c=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(!!(c&&f&&s&&d)){var v=t.util.createCanvasElement(),g=new ArrayBuffer(u*h*4);if(t.forceGLPutImageData){this.imageBuffer=g,this.copyGLTo2D=m;return}var y={imageBuffer:g,destinationWidth:u,destinationHeight:h,targetCanvas:v},b,_,w;v.width=u,v.height=h,b=window.performance.now(),l.call(y,this.gl,y),_=window.performance.now()-b,b=window.performance.now(),m.call(y,this.gl,y),w=window.performance.now()-b,_>w?(this.imageBuffer=g,this.copyGLTo2D=m):this.copyGLTo2D=l}},createWebGLCanvas:function(u,h){var c=t.util.createCanvasElement();c.width=u,c.height=h;var f={alpha:!0,premultipliedAlpha:!1,depth:!1,stencil:!1,antialias:!1},s=c.getContext("webgl",f);s||(s=c.getContext("experimental-webgl",f)),s&&(s.clearColor(0,0,0,0),this.canvas=c,this.gl=s)},applyFilters:function(u,h,c,f,s,d){var v=this.gl,g;d&&(g=this.getCachedTexture(d,h));var y={originalWidth:h.width||h.originalWidth,originalHeight:h.height||h.originalHeight,sourceWidth:c,sourceHeight:f,destinationWidth:c,destinationHeight:f,context:v,sourceTexture:this.createTexture(v,c,f,!g&&h),targetTexture:this.createTexture(v,c,f),originalTexture:g||this.createTexture(v,c,f,!g&&h),passes:u.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},b=v.createFramebuffer();return v.bindFramebuffer(v.FRAMEBUFFER,b),u.forEach(function(_){_&&_.applyTo(y)}),i(y),this.copyGLTo2D(v,y),v.bindTexture(v.TEXTURE_2D,null),v.deleteTexture(y.sourceTexture),v.deleteTexture(y.targetTexture),v.deleteFramebuffer(b),s.getContext("2d").setTransform(1,0,0,1,0,0),y},dispose:function(){this.canvas&&(this.canvas=null,this.gl=null),this.clearWebGLCaches()},clearWebGLCaches:function(){this.programCache={},this.textureCache={}},createTexture:function(u,h,c,f){var s=u.createTexture();return u.bindTexture(u.TEXTURE_2D,s),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MAG_FILTER,u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_MIN_FILTER,u.NEAREST),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_S,u.CLAMP_TO_EDGE),u.texParameteri(u.TEXTURE_2D,u.TEXTURE_WRAP_T,u.CLAMP_TO_EDGE),f?u.texImage2D(u.TEXTURE_2D,0,u.RGBA,u.RGBA,u.UNSIGNED_BYTE,f):u.texImage2D(u.TEXTURE_2D,0,u.RGBA,h,c,0,u.RGBA,u.UNSIGNED_BYTE,null),s},getCachedTexture:function(u,h){if(this.textureCache[u])return this.textureCache[u];var c=this.createTexture(this.gl,h.width,h.height,h);return this.textureCache[u]=c,c},evictCachesForKey:function(u){this.textureCache[u]&&(this.gl.deleteTexture(this.textureCache[u]),delete this.textureCache[u])},copyGLTo2D:l,captureGPUInfo:function(){if(this.gpuInfo)return this.gpuInfo;var u=this.gl,h={renderer:"",vendor:""};if(!u)return h;var c=u.getExtension("WEBGL_debug_renderer_info");if(c){var f=u.getParameter(c.UNMASKED_RENDERER_WEBGL),s=u.getParameter(c.UNMASKED_VENDOR_WEBGL);f&&(h.renderer=f.toLowerCase()),s&&(h.vendor=s.toLowerCase())}return this.gpuInfo=h,h}}}();function i(a){var o=a.targetCanvas,u=o.width,h=o.height,c=a.destinationWidth,f=a.destinationHeight;(u!==c||h!==f)&&(o.width=c,o.height=f)}function l(a,o){var u=a.canvas,h=o.targetCanvas,c=h.getContext("2d");c.translate(0,h.height),c.scale(1,-1);var f=u.height-h.height;c.drawImage(u,0,f,h.width,h.height,0,0,h.width,h.height)}function m(a,o){var u=o.targetCanvas,h=u.getContext("2d"),c=o.destinationWidth,f=o.destinationHeight,s=c*f*4,d=new Uint8Array(this.imageBuffer,0,s),v=new Uint8ClampedArray(this.imageBuffer,0,s);a.readPixels(0,0,c,f,a.RGBA,a.UNSIGNED_BYTE,d);var g=new ImageData(v,c,f);h.putImageData(g,0,0)}(function(){var a=function(){};t.Canvas2dFilterBackend=o;function o(){}o.prototype={evictCachesForKey:a,dispose:a,clearWebGLCaches:a,resources:{},applyFilters:function(u,h,c,f,s){var d=s.getContext("2d");d.drawImage(h,0,0,c,f);var v=d.getImageData(0,0,c,f),g=d.getImageData(0,0,c,f),y={sourceWidth:c,sourceHeight:f,imageData:v,originalEl:h,originalImageData:g,canvasEl:s,ctx:d,filterBackend:this};return u.forEach(function(b){b.applyTo(y)}),(y.imageData.width!==c||y.imageData.height!==f)&&(s.width=y.imageData.width,s.height=y.imageData.height),d.putImageData(y.imageData,0,0),y}}})(),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(a){a&&this.setOptions(a)},setOptions:function(a){for(var o in a)this[o]=a[o]},createProgram:function(a,o,u){o=o||this.fragmentSource,u=u||this.vertexSource,t.webGlPrecision!=="highp"&&(o=o.replace(/precision highp float/g,"precision "+t.webGlPrecision+" float"));var h=a.createShader(a.VERTEX_SHADER);if(a.shaderSource(h,u),a.compileShader(h),!a.getShaderParameter(h,a.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+a.getShaderInfoLog(h));var c=a.createShader(a.FRAGMENT_SHADER);if(a.shaderSource(c,o),a.compileShader(c),!a.getShaderParameter(c,a.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+a.getShaderInfoLog(c));var f=a.createProgram();if(a.attachShader(f,h),a.attachShader(f,c),a.linkProgram(f),!a.getProgramParameter(f,a.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+a.getProgramInfoLog(f));var s=this.getAttributeLocations(a,f),d=this.getUniformLocations(a,f)||{};return d.uStepW=a.getUniformLocation(f,"uStepW"),d.uStepH=a.getUniformLocation(f,"uStepH"),{program:f,attributeLocations:s,uniformLocations:d}},getAttributeLocations:function(a,o){return{aPosition:a.getAttribLocation(o,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(a,o,u){var h=o.aPosition,c=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,c),a.enableVertexAttribArray(h),a.vertexAttribPointer(h,2,a.FLOAT,!1,0,0),a.bufferData(a.ARRAY_BUFFER,u,a.STATIC_DRAW)},_setupFrameBuffer:function(a){var o=a.context,u,h;a.passes>1?(u=a.destinationWidth,h=a.destinationHeight,(a.sourceWidth!==u||a.sourceHeight!==h)&&(o.deleteTexture(a.targetTexture),a.targetTexture=a.filterBackend.createTexture(o,u,h)),o.framebufferTexture2D(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,a.targetTexture,0)):(o.bindFramebuffer(o.FRAMEBUFFER,null),o.finish())},_swapTextures:function(a){a.passes--,a.pass++;var o=a.targetTexture;a.targetTexture=a.sourceTexture,a.sourceTexture=o},isNeutralState:function(){var a=this.mainParameter,o=t.Image.filters[this.type].prototype;if(a)if(Array.isArray(o[a])){for(var u=o[a].length;u--;)if(this[a][u]!==o[a][u])return!1;return!0}else return o[a]===this[a];else return!1},applyTo:function(a){a.webgl?(this._setupFrameBuffer(a),this.applyToWebGL(a),this._swapTextures(a)):this.applyTo2d(a)},retrieveShader:function(a){return a.programCache.hasOwnProperty(this.type)||(a.programCache[this.type]=this.createProgram(a.context)),a.programCache[this.type]},applyToWebGL:function(a){var o=a.context,u=this.retrieveShader(a);a.pass===0&&a.originalTexture?o.bindTexture(o.TEXTURE_2D,a.originalTexture):o.bindTexture(o.TEXTURE_2D,a.sourceTexture),o.useProgram(u.program),this.sendAttributeData(o,u.attributeLocations,a.aPosition),o.uniform1f(u.uniformLocations.uStepW,1/a.sourceWidth),o.uniform1f(u.uniformLocations.uStepH,1/a.sourceHeight),this.sendUniformData(o,u.uniformLocations),o.viewport(0,0,a.destinationWidth,a.destinationHeight),o.drawArrays(o.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(a,o,u){a.activeTexture(u),a.bindTexture(a.TEXTURE_2D,o),a.activeTexture(a.TEXTURE0)},unbindAdditionalTexture:function(a,o){a.activeTexture(o),a.bindTexture(a.TEXTURE_2D,null),a.activeTexture(a.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(a){this[this.mainParameter]=a},sendUniformData:function(){},createHelpLayer:function(a){if(!a.helpLayer){var o=document.createElement("canvas");o.width=a.sourceWidth,o.height=a.sourceHeight,a.helpLayer=o}},toObject:function(){var a={type:this.type},o=this.mainParameter;return o&&(a[o]=this[o]),a},toJSON:function(){return this.toObject()}}),t.Image.filters.BaseFilter.fromObject=function(a,o){var u=new t.Image.filters[a.type](a);return o&&o(u),u},function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.ColorMatrix=h(u.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(c){this.callSuper("initialize",c),this.matrix=this.matrix.slice(0)},applyTo2d:function(c){var f=c.imageData,s=f.data,d=s.length,v=this.matrix,g,y,b,_,w,S=this.colorsOnly;for(w=0;w<d;w+=4)g=s[w],y=s[w+1],b=s[w+2],S?(s[w]=g*v[0]+y*v[1]+b*v[2]+v[4]*255,s[w+1]=g*v[5]+y*v[6]+b*v[7]+v[9]*255,s[w+2]=g*v[10]+y*v[11]+b*v[12]+v[14]*255):(_=s[w+3],s[w]=g*v[0]+y*v[1]+b*v[2]+_*v[3]+v[4]*255,s[w+1]=g*v[5]+y*v[6]+b*v[7]+_*v[8]+v[9]*255,s[w+2]=g*v[10]+y*v[11]+b*v[12]+_*v[13]+v[14]*255,s[w+3]=g*v[15]+y*v[16]+b*v[17]+_*v[18]+v[19]*255)},getUniformLocations:function(c,f){return{uColorMatrix:c.getUniformLocation(f,"uColorMatrix"),uConstants:c.getUniformLocation(f,"uConstants")}},sendUniformData:function(c,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]];c.uniformMatrix4fv(f.uColorMatrix,!1,d),c.uniform4fv(f.uConstants,v)}}),o.Image.filters.ColorMatrix.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Brightness=h(u.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(c){if(this.brightness!==0){var f=c.imageData,s=f.data,d,v=s.length,g=Math.round(this.brightness*255);for(d=0;d<v;d+=4)s[d]=s[d]+g,s[d+1]=s[d+1]+g,s[d+2]=s[d+2]+g}},getUniformLocations:function(c,f){return{uBrightness:c.getUniformLocation(f,"uBrightness")}},sendUniformData:function(c,f){c.uniform1f(f.uBrightness,this.brightness)}}),o.Image.filters.Brightness.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.extend,h=o.Image.filters,c=o.util.createClass;h.Convolute=c(h.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,g=Math.round(Math.sqrt(v.length)),y=Math.floor(g/2),b=s.width,_=s.height,w=f.ctx.createImageData(b,_),S=w.data,x=this.opaque?1:0,T,O,A,$,j,R,F,E,W,te,Q,le,I;for(Q=0;Q<_;Q++)for(te=0;te<b;te++){for(j=(Q*b+te)*4,T=0,O=0,A=0,$=0,I=0;I<g;I++)for(le=0;le<g;le++)F=Q+I-y,R=te+le-y,!(F<0||F>=_||R<0||R>=b)&&(E=(F*b+R)*4,W=v[I*g+le],T+=d[E]*W,O+=d[E+1]*W,A+=d[E+2]*W,x||($+=d[E+3]*W));S[j]=T,S[j+1]=O,S[j+2]=A,x?S[j+3]=d[j+3]:S[j+3]=$}f.imageData=w},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 u(this.callSuper("toObject"),{opaque:this.opaque,matrix:this.matrix})}}),o.Image.filters.Convolute.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Grayscale=h(u.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(c){var f=c.imageData,s=f.data,d,v=s.length,g,y=this.mode;for(d=0;d<v;d+=4)y==="average"?g=(s[d]+s[d+1]+s[d+2])/3:y==="lightness"?g=(Math.min(s[d],s[d+1],s[d+2])+Math.max(s[d],s[d+1],s[d+2]))/2:y==="luminosity"&&(g=.21*s[d]+.72*s[d+1]+.07*s[d+2]),s[d]=g,s[d+1]=g,s[d+2]=g},retrieveShader:function(c){var f=this.type+"_"+this.mode;if(!c.programCache.hasOwnProperty(f)){var s=this.fragmentSource[this.mode];c.programCache[f]=this.createProgram(c.context,s)}return c.programCache[f]},getUniformLocations:function(c,f){return{uMode:c.getUniformLocation(f,"uMode")}},sendUniformData:function(c,f){var s=1;c.uniform1i(f.uMode,s)},isNeutralState:function(){return!1}}),o.Image.filters.Grayscale.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Invert=h(u.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(c){var f=c.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(c,f){return{uInvert:c.getUniformLocation(f,"uInvert")}},sendUniformData:function(c,f){c.uniform1i(f.uInvert,this.invert)}}),o.Image.filters.Invert.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.extend,h=o.Image.filters,c=o.util.createClass;h.Noise=c(h.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,g=d.length,y=this.noise,b;for(v=0,g=d.length;v<g;v+=4)b=(.5-Math.random())*y,d[v]+=b,d[v+1]+=b,d[v+2]+=b}},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 u(this.callSuper("toObject"),{noise:this.noise})}}),o.Image.filters.Noise.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Pixelate=h(u.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(c){var f=c.imageData,s=f.data,d=f.height,v=f.width,g,y,b,_,w,S,x,T,O,A,$;for(y=0;y<d;y+=this.blocksize)for(b=0;b<v;b+=this.blocksize)for(g=y*4*v+b*4,_=s[g],w=s[g+1],S=s[g+2],x=s[g+3],A=Math.min(y+this.blocksize,d),$=Math.min(b+this.blocksize,v),T=y;T<A;T++)for(O=b;O<$;O++)g=T*4*v+O*4,s[g]=_,s[g+1]=w,s[g+2]=S,s[g+3]=x},isNeutralState:function(){return this.blocksize===1},getUniformLocations:function(c,f){return{uBlocksize:c.getUniformLocation(f,"uBlocksize"),uStepW:c.getUniformLocation(f,"uStepW"),uStepH:c.getUniformLocation(f,"uStepH")}},sendUniformData:function(c,f){c.uniform1f(f.uBlocksize,this.blocksize)}}),o.Image.filters.Pixelate.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.extend,h=o.Image.filters,c=o.util.createClass;h.RemoveColor=c(h.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,g=this.distance*255,y,b,_,w=new o.Color(this.color).getSource(),S=[w[0]-g,w[1]-g,w[2]-g],x=[w[0]+g,w[1]+g,w[2]+g];for(v=0;v<d.length;v+=4)y=d[v],b=d[v+1],_=d[v+2],y>S[0]&&b>S[1]&&_>S[2]&&y<x[0]&&b<x[1]&&_<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 o.Color(this.color).getSource(),v=parseFloat(this.distance),g=[0+d[0]/255-v,0+d[1]/255-v,0+d[2]/255-v,1],y=[d[0]/255+v,d[1]/255+v,d[2]/255+v,1];f.uniform4fv(s.uLow,g),f.uniform4fv(s.uHigh,y)},toObject:function(){return u(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),o.Image.filters.RemoveColor.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass,c={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 c)u[f]=h(u.ColorMatrix,{type:f,matrix:c[f],mainParameter:!1,colorsOnly:!0}),o.Image.filters[f].fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric,u=o.Image.filters,h=o.util.createClass;u.BlendColor=h(u.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(c){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[c]+`}
|
||
}`},retrieveShader:function(c){var f=this.type+"_"+this.mode,s;return c.programCache.hasOwnProperty(f)||(s=this.buildSource(this.mode),c.programCache[f]=this.createProgram(c.context,s)),c.programCache[f]},applyTo2d:function(c){var f=c.imageData,s=f.data,d=s.length,v,g,y,b,_,w,S,x=1-this.alpha;S=new o.Color(this.color).getSource(),v=S[0]*this.alpha,g=S[1]*this.alpha,y=S[2]*this.alpha;for(var T=0;T<d;T+=4)switch(b=s[T],_=s[T+1],w=s[T+2],this.mode){case"multiply":s[T]=b*v/255,s[T+1]=_*g/255,s[T+2]=w*y/255;break;case"screen":s[T]=255-(255-b)*(255-v)/255,s[T+1]=255-(255-_)*(255-g)/255,s[T+2]=255-(255-w)*(255-y)/255;break;case"add":s[T]=b+v,s[T+1]=_+g,s[T+2]=w+y;break;case"diff":case"difference":s[T]=Math.abs(b-v),s[T+1]=Math.abs(_-g),s[T+2]=Math.abs(w-y);break;case"subtract":s[T]=b-v,s[T+1]=_-g,s[T+2]=w-y;break;case"darken":s[T]=Math.min(b,v),s[T+1]=Math.min(_,g),s[T+2]=Math.min(w,y);break;case"lighten":s[T]=Math.max(b,v),s[T+1]=Math.max(_,g),s[T+2]=Math.max(w,y);break;case"overlay":s[T]=v<128?2*b*v/255:255-2*(255-b)*(255-v)/255,s[T+1]=g<128?2*_*g/255:255-2*(255-_)*(255-g)/255,s[T+2]=y<128?2*w*y/255:255-2*(255-w)*(255-y)/255;break;case"exclusion":s[T]=v+b-2*v*b/255,s[T+1]=g+_-2*g*_/255,s[T+2]=y+w-2*y*w/255;break;case"tint":s[T]=v+b*x,s[T+1]=g+_*x,s[T+2]=y+w*x}},getUniformLocations:function(c,f){return{uColor:c.getUniformLocation(f,"uColor")}},sendUniformData:function(c,f){var s=new o.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,c.uniform4fv(f.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),o.Image.filters.BlendColor.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric,u=o.Image.filters,h=o.util.createClass;u.BlendImage=h(u.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(c){var f=this.type+"_"+this.mode,s=this.fragmentSource[this.mode];return c.programCache.hasOwnProperty(f)||(c.programCache[f]=this.createProgram(c.context,s)),c.programCache[f]},applyToWebGL:function(c){var f=c.context,s=this.createTexture(c.filterBackend,this.image);this.bindAdditionalTexture(f,s,f.TEXTURE1),this.callSuper("applyToWebGL",c),this.unbindAdditionalTexture(f,f.TEXTURE1)},createTexture:function(c,f){return c.getCachedTexture(f.cacheKey,f._element)},calculateMatrix:function(){var c=this.image,f=c._element.width,s=c._element.height;return[1/c.scaleX,0,0,0,1/c.scaleY,0,-c.left/f,-c.top/s,1]},applyTo2d:function(c){var f=c.imageData,s=c.filterBackend.resources,d=f.data,v=d.length,g=f.width,y=f.height,b,_,w,S,x,T,O,A,$,j,R=this.image,F;s.blendImage||(s.blendImage=o.util.createCanvasElement()),$=s.blendImage,j=$.getContext("2d"),$.width!==g||$.height!==y?($.width=g,$.height=y):j.clearRect(0,0,g,y),j.setTransform(R.scaleX,0,0,R.scaleY,R.left,R.top),j.drawImage(R._element,0,0,g,y),F=j.getImageData(0,0,g,y).data;for(var E=0;E<v;E+=4)switch(x=d[E],T=d[E+1],O=d[E+2],A=d[E+3],b=F[E],_=F[E+1],w=F[E+2],S=F[E+3],this.mode){case"multiply":d[E]=x*b/255,d[E+1]=T*_/255,d[E+2]=O*w/255,d[E+3]=A*S/255;break;case"mask":d[E+3]=S;break}},getUniformLocations:function(c,f){return{uTransformMatrix:c.getUniformLocation(f,"uTransformMatrix"),uImage:c.getUniformLocation(f,"uImage")}},sendUniformData:function(c,f){var s=this.calculateMatrix();c.uniform1i(f.uImage,1),c.uniformMatrix3fv(f.uTransformMatrix,!1,s)},toObject:function(){return{type:this.type,image:this.image&&this.image.toObject(),mode:this.mode,alpha:this.alpha}}}),o.Image.filters.BlendImage.fromObject=function(c,f){o.Image.fromObject(c.image,function(s){var d=o.util.object.clone(c);d.image=s,f(new o.Image.filters.BlendImage(d))})}}(e),function(a){var o=a.fabric||(a.fabric={}),u=Math.pow,h=Math.floor,c=Math.sqrt,f=Math.abs,s=Math.round,d=Math.sin,v=Math.ceil,g=o.Image.filters,y=o.util.createClass;g.Resize=y(g.BaseFilter,{type:"Resize",resizeType:"hermite",scaleX:1,scaleY:1,lanczosLobes:3,getUniformLocations:function(b,_){return{uDelta:b.getUniformLocation(_,"uDelta"),uTaps:b.getUniformLocation(_,"uTaps")}},sendUniformData:function(b,_){b.uniform2fv(_.uDelta,this.horizontal?[1/this.width,0]:[0,1/this.height]),b.uniform1fv(_.uTaps,this.taps)},retrieveShader:function(b){var _=this.getFilterWindow(),w=this.type+"_"+_;if(!b.programCache.hasOwnProperty(w)){var S=this.generateShader(_);b.programCache[w]=this.createProgram(b.context,S)}return b.programCache[w]},getFilterWindow:function(){var b=this.tempScale;return Math.ceil(this.lanczosLobes/b)},getTaps:function(){for(var b=this.lanczosCreate(this.lanczosLobes),_=this.tempScale,w=this.getFilterWindow(),S=new Array(w),x=1;x<=w;x++)S[x-1]=b(x*_);return S},generateShader:function(S){for(var _=new Array(S),w=this.fragmentSourceTOP,S,x=1;x<=S;x++)_[x-1]=x+".0 * uDelta";return w+="uniform float uTaps["+S+`];
|
||
`,w+=`void main() {
|
||
`,w+=` vec4 color = texture2D(uTexture, vTexCoord);
|
||
`,w+=` float sum = 1.0;
|
||
`,_.forEach(function(T,O){w+=" color += texture2D(uTexture, vTexCoord + "+T+") * uTaps["+O+`];
|
||
`,w+=" color += texture2D(uTexture, vTexCoord - "+T+") * uTaps["+O+`];
|
||
`,w+=" sum += 2.0 * uTaps["+O+`];
|
||
`}),w+=` gl_FragColor = color / sum;
|
||
`,w+="}",w},fragmentSourceTOP:`precision highp float;
|
||
uniform sampler2D uTexture;
|
||
uniform vec2 uDelta;
|
||
varying vec2 vTexCoord;
|
||
`,applyTo:function(b){b.webgl?(b.passes++,this.width=b.sourceWidth,this.horizontal=!0,this.dW=Math.round(this.width*this.scaleX),this.dH=b.sourceHeight,this.tempScale=this.dW/this.width,this.taps=this.getTaps(),b.destinationWidth=this.dW,this._setupFrameBuffer(b),this.applyToWebGL(b),this._swapTextures(b),b.sourceWidth=b.destinationWidth,this.height=b.sourceHeight,this.horizontal=!1,this.dH=Math.round(this.height*this.scaleY),this.tempScale=this.dH/this.height,this.taps=this.getTaps(),b.destinationHeight=this.dH,this._setupFrameBuffer(b),this.applyToWebGL(b),this._swapTextures(b),b.sourceHeight=b.destinationHeight):this.applyTo2d(b)},isNeutralState:function(){return this.scaleX===1&&this.scaleY===1},lanczosCreate:function(b){return function(_){if(_>=b||_<=-b)return 0;if(_<11920929e-14&&_>-11920929e-14)return 1;_*=Math.PI;var w=_/b;return d(_)/_*d(w)/w}},applyTo2d:function(b){var _=b.imageData,w=this.scaleX,S=this.scaleY;this.rcpScaleX=1/w,this.rcpScaleY=1/S;var x=_.width,T=_.height,O=s(x*w),A=s(T*S),$;this.resizeType==="sliceHack"?$=this.sliceByTwo(b,x,T,O,A):this.resizeType==="hermite"?$=this.hermiteFastResize(b,x,T,O,A):this.resizeType==="bilinear"?$=this.bilinearFiltering(b,x,T,O,A):this.resizeType==="lanczos"&&($=this.lanczosResize(b,x,T,O,A)),b.imageData=$},sliceByTwo:function(b,_,w,S,x){var T=b.imageData,O=.5,A=!1,$=!1,j=_*O,R=w*O,F=o.filterBackend.resources,E,W,te=0,Q=0,le=_,I=0;for(F.sliceByTwo||(F.sliceByTwo=document.createElement("canvas")),E=F.sliceByTwo,(E.width<_*1.5||E.height<w)&&(E.width=_*1.5,E.height=w),W=E.getContext("2d"),W.clearRect(0,0,_*1.5,w),W.putImageData(T,0,0),S=h(S),x=h(x);!A||!$;)_=j,w=R,S<h(j*O)?j=h(j*O):(j=S,A=!0),x<h(R*O)?R=h(R*O):(R=x,$=!0),W.drawImage(E,te,Q,_,w,le,I,j,R),te=le,Q=I,I+=R;return W.getImageData(te,Q,S,x)},lanczosResize:function(b,_,w,S,x){function T(M){var L,J,U,P,q,Z,re,de,ve,me,Y;for(I.x=(M+.5)*R,z.x=h(I.x),L=0;L<x;L++){for(I.y=(L+.5)*F,z.y=h(I.y),q=0,Z=0,re=0,de=0,ve=0,J=z.x-te;J<=z.x+te;J++)if(!(J<0||J>=_)){me=h(1e3*f(J-I.x)),le[me]||(le[me]={});for(var K=z.y-Q;K<=z.y+Q;K++)K<0||K>=w||(Y=h(1e3*f(K-I.y)),le[me][Y]||(le[me][Y]=j(c(u(me*E,2)+u(Y*W,2))/1e3)),U=le[me][Y],U>0&&(P=(K*_+J)*4,q+=U,Z+=U*O[P],re+=U*O[P+1],de+=U*O[P+2],ve+=U*O[P+3]))}P=(L*S+M)*4,$[P]=Z/q,$[P+1]=re/q,$[P+2]=de/q,$[P+3]=ve/q}return++M<S?T(M):A}var O=b.imageData.data,A=b.ctx.createImageData(S,x),$=A.data,j=this.lanczosCreate(this.lanczosLobes),R=this.rcpScaleX,F=this.rcpScaleY,E=2/this.rcpScaleX,W=2/this.rcpScaleY,te=v(R*this.lanczosLobes/2),Q=v(F*this.lanczosLobes/2),le={},I={},z={};return T(0)},bilinearFiltering:function(b,_,w,S,x){var T,O,A,$,j,R,F,E,W,te,Q,le,I=0,z,M=this.rcpScaleX,L=this.rcpScaleY,J=4*(_-1),U=b.imageData,P=U.data,q=b.ctx.createImageData(S,x),Z=q.data;for(F=0;F<x;F++)for(E=0;E<S;E++)for(j=h(M*E),R=h(L*F),W=M*E-j,te=L*F-R,z=4*(R*_+j),Q=0;Q<4;Q++)T=P[z+Q],O=P[z+4+Q],A=P[z+J+Q],$=P[z+J+4+Q],le=T*(1-W)*(1-te)+O*W*(1-te)+A*te*(1-W)+$*W*te,Z[I++]=le;return q},hermiteFastResize:function(b,_,w,S,x){for(var T=this.rcpScaleX,O=this.rcpScaleY,A=v(T/2),$=v(O/2),j=b.imageData,R=j.data,F=b.ctx.createImageData(S,x),E=F.data,W=0;W<x;W++)for(var te=0;te<S;te++){for(var Q=(te+W*S)*4,le=0,I=0,z=0,M=0,L=0,J=0,U=0,P=(W+.5)*O,q=h(W*O);q<(W+1)*O;q++)for(var Z=f(P-(q+.5))/$,re=(te+.5)*T,de=Z*Z,ve=h(te*T);ve<(te+1)*T;ve++){var me=f(re-(ve+.5))/A,Y=c(de+me*me);Y>1&&Y<-1||(le=2*Y*Y*Y-3*Y*Y+1,le>0&&(me=4*(ve+q*_),U+=le*R[me+3],z+=le,R[me+3]<255&&(le=le*R[me+3]/250),M+=le*R[me],L+=le*R[me+1],J+=le*R[me+2],I+=le))}E[Q]=M/I,E[Q+1]=L/I,E[Q+2]=J/I,E[Q+3]=U/z}return F},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),o.Image.filters.Resize.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Contrast=h(u.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(c){if(this.contrast!==0){var f=c.imageData,s,v,d=f.data,v=d.length,g=Math.floor(this.contrast*255),y=259*(g+255)/(255*(259-g));for(s=0;s<v;s+=4)d[s]=y*(d[s]-128)+128,d[s+1]=y*(d[s+1]-128)+128,d[s+2]=y*(d[s+2]-128)+128}},getUniformLocations:function(c,f){return{uContrast:c.getUniformLocation(f,"uContrast")}},sendUniformData:function(c,f){c.uniform1f(f.uContrast,this.contrast)}}),o.Image.filters.Contrast.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Saturation=h(u.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(c){if(this.saturation!==0){var f=c.imageData,s=f.data,d=s.length,v=-this.saturation,g,y;for(g=0;g<d;g+=4)y=Math.max(s[g],s[g+1],s[g+2]),s[g]+=y!==s[g]?(y-s[g])*v:0,s[g+1]+=y!==s[g+1]?(y-s[g+1])*v:0,s[g+2]+=y!==s[g+2]?(y-s[g+2])*v:0}},getUniformLocations:function(c,f){return{uSaturation:c.getUniformLocation(f,"uSaturation")}},sendUniformData:function(c,f){c.uniform1f(f.uSaturation,-this.saturation)}}),o.Image.filters.Saturation.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Vibrance=h(u.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(c){if(this.vibrance!==0){var f=c.imageData,s=f.data,d=s.length,v=-this.vibrance,g,y,b,_;for(g=0;g<d;g+=4)y=Math.max(s[g],s[g+1],s[g+2]),b=(s[g]+s[g+1]+s[g+2])/3,_=Math.abs(y-b)*2/255*v,s[g]+=y!==s[g]?(y-s[g])*_:0,s[g+1]+=y!==s[g+1]?(y-s[g+1])*_:0,s[g+2]+=y!==s[g+2]?(y-s[g+2])*_:0}},getUniformLocations:function(c,f){return{uVibrance:c.getUniformLocation(f,"uVibrance")}},sendUniformData:function(c,f){c.uniform1f(f.uVibrance,-this.vibrance)}}),o.Image.filters.Vibrance.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Blur=h(u.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(c){c.webgl?(this.aspectRatio=c.sourceWidth/c.sourceHeight,c.passes++,this._setupFrameBuffer(c),this.horizontal=!0,this.applyToWebGL(c),this._swapTextures(c),this._setupFrameBuffer(c),this.horizontal=!1,this.applyToWebGL(c),this._swapTextures(c)):this.applyTo2d(c)},applyTo2d:function(c){c.imageData=this.simpleBlur(c)},simpleBlur:function(c){var f=c.filterBackend.resources,s,d,v=c.imageData.width,g=c.imageData.height;f.blurLayer1||(f.blurLayer1=o.util.createCanvasElement(),f.blurLayer2=o.util.createCanvasElement()),s=f.blurLayer1,d=f.blurLayer2,(s.width!==v||s.height!==g)&&(d.width=s.width=v,d.height=s.height=g);var y=s.getContext("2d"),b=d.getContext("2d"),_=15,w,S,x,T,O=this.blur*.06*.5;for(y.putImageData(c.imageData,0,0),b.clearRect(0,0,v,g),T=-_;T<=_;T++)w=(Math.random()-.5)/4,S=T/_,x=O*S*v+w,b.globalAlpha=1-Math.abs(S),b.drawImage(s,x,w),y.drawImage(d,0,0),b.globalAlpha=1,b.clearRect(0,0,d.width,d.height);for(T=-_;T<=_;T++)w=(Math.random()-.5)/4,S=T/_,x=O*S*g+w,b.globalAlpha=1-Math.abs(S),b.drawImage(s,w,x),y.drawImage(d,0,0),b.globalAlpha=1,b.clearRect(0,0,d.width,d.height);c.ctx.drawImage(s,0,0);var A=c.ctx.getImageData(0,0,s.width,s.height);return y.globalAlpha=1,y.clearRect(0,0,s.width,s.height),A},getUniformLocations:function(c,f){return{delta:c.getUniformLocation(f,"uDelta")}},sendUniformData:function(c,f){var s=this.chooseRightDelta();c.uniform2fv(f.delta,s)},chooseRightDelta:function(){var c=1,f=[0,0],s;return this.horizontal?this.aspectRatio>1&&(c=1/this.aspectRatio):this.aspectRatio<1&&(c=this.aspectRatio),s=c*this.blur*.12,this.horizontal?f[0]=s:f[1]=s,f}}),u.Blur.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Gamma=h(u.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(c){this.gamma=[1,1,1],u.BaseFilter.prototype.initialize.call(this,c)},applyTo2d:function(c){var f=c.imageData,s=f.data,d=this.gamma,v=s.length,g=1/d[0],y=1/d[1],b=1/d[2],_;for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),_=0,v=256;_<v;_++)this.rVals[_]=Math.pow(_/255,g)*255,this.gVals[_]=Math.pow(_/255,y)*255,this.bVals[_]=Math.pow(_/255,b)*255;for(_=0,v=s.length;_<v;_+=4)s[_]=this.rVals[s[_]],s[_+1]=this.gVals[s[_+1]],s[_+2]=this.bVals[s[_+2]]},getUniformLocations:function(c,f){return{uGamma:c.getUniformLocation(f,"uGamma")}},sendUniformData:function(c,f){c.uniform3fv(f.uGamma,this.gamma)}}),o.Image.filters.Gamma.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.Composed=h(u.BaseFilter,{type:"Composed",subFilters:[],initialize:function(c){this.callSuper("initialize",c),this.subFilters=this.subFilters.slice(0)},applyTo:function(c){c.passes+=this.subFilters.length-1,this.subFilters.forEach(function(f){f.applyTo(c)})},toObject:function(){return o.util.object.extend(this.callSuper("toObject"),{subFilters:this.subFilters.map(function(c){return c.toObject()})})},isNeutralState:function(){return!this.subFilters.some(function(c){return!c.isNeutralState()})}}),o.Image.filters.Composed.fromObject=function(c,f){var s=c.subFilters||[],d=s.map(function(g){return new o.Image.filters[g.type](g)}),v=new o.Image.filters.Composed({subFilters:d});return f&&f(v),v}}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.Image.filters,h=o.util.createClass;u.HueRotation=h(u.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var c=this.rotation*Math.PI,f=o.util.cos(c),s=o.util.sin(c),d=1/3,v=Math.sqrt(d)*s,g=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+g/3,this.matrix[1]=d*g-v,this.matrix[2]=d*g+v,this.matrix[5]=d*g+v,this.matrix[6]=f+d*g,this.matrix[7]=d*g-v,this.matrix[10]=d*g-v,this.matrix[11]=d*g+v,this.matrix[12]=f+d*g},isNeutralState:function(c){return this.calculateMatrix(),u.BaseFilter.prototype.isNeutralState.call(this,c)},applyTo:function(c){this.calculateMatrix(),u.BaseFilter.prototype.applyTo.call(this,c)}}),o.Image.filters.HueRotation.fromObject=o.Image.filters.BaseFilter.fromObject}(e),function(a){var o=a.fabric||(a.fabric={}),u=o.util.object.clone;if(o.Text){o.warn("fabric.Text is already defined");return}var h="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");o.Text=o.util.createClass(o.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:o.Object.prototype.stateProperties.concat(h),cacheProperties:o.Object.prototype.cacheProperties.concat(h),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(c,f){this.styles=f?f.styles||{}:{},this.text=c,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 c=this.path;c&&(c.segmentsInfo=o.util.getPathSegmentsInfo(c.path))},getMeasuringContext:function(){return o._measuringContext||(o._measuringContext=this.canvas&&this.canvas.contextCache||o.util.createCanvasElement().getContext("2d")),o._measuringContext},_splitText:function(){var c=this._splitTextIntoLines(this.text);return this.textLines=c.lines,this._textLines=c.graphemeLines,this._unwrappedTextLines=c._unwrappedLines,this._text=c.graphemeText,c},initDimensions:function(){this.__skipDimension||(this._splitText(),this._clearCache(),this.path?(this.width=this.path.width,this.height=this.path.height):(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 c,f,s,d,v,g,y,b=0,_=this._textLines.length;b<_;b++)if(!(this.textAlign!=="justify"&&(b===_-1||this.isEndOfWrapping(b)))&&(d=0,v=this._textLines[b],f=this.getLineWidth(b),f<this.width&&(y=this.textLines[b].match(this._reSpacesAndTabs)))){s=y.length,c=(this.width-f)/s;for(var w=0,S=v.length;w<=S;w++)g=this.__charBounds[b][w],this._reSpaceAndTab.test(v[w])?(g.width+=c,g.kernedWidth+=c,g.left+=d,d+=c):g.left+=d}},isEndOfWrapping:function(c){return c===this._textLines.length-1},missingNewlineOffset:function(){return 1},toString:function(){return"#<fabric.Text ("+this.complexity()+'): { "text": "'+this.text+'", "fontFamily": "'+this.fontFamily+'" }>'},_getCacheCanvasDimensions:function(){var c=this.callSuper("_getCacheCanvasDimensions"),f=this.fontSize;return c.width+=f*c.zoomX,c.height+=f*c.zoomY,c},_render:function(c){var f=this.path;f&&!f.isNotVisible()&&f._render(c),this._setTextStyles(c),this._renderTextLinesBackground(c),this._renderTextDecoration(c,"underline"),this._renderText(c),this._renderTextDecoration(c,"overline"),this._renderTextDecoration(c,"linethrough")},_renderText:function(c){this.paintFirst==="stroke"?(this._renderTextStroke(c),this._renderTextFill(c)):(this._renderTextFill(c),this._renderTextStroke(c))},_setTextStyles:function(c,f,s){if(c.textBaseline="alphabetical",this.path)switch(this.pathAlign){case"center":c.textBaseline="middle";break;case"ascender":c.textBaseline="top";break;case"descender":c.textBaseline="bottom";break}c.font=this._getFontDeclaration(f,s)},calcTextWidth:function(){for(var c=this.getLineWidth(0),f=1,s=this._textLines.length;f<s;f++){var d=this.getLineWidth(f);d>c&&(c=d)}return c},_renderTextLine:function(c,f,s,d,v,g){this._renderChars(c,f,s,d,v,g)},_renderTextLinesBackground:function(c){if(!(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))){for(var f,s,d=c.fillStyle,v,g,y=this._getLeftOffset(),b=this._getTopOffset(),_=0,w=0,S,x,T=this.path,O,A=0,$=this._textLines.length;A<$;A++){if(f=this.getHeightOfLine(A),!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",A)){b+=f;continue}v=this._textLines[A],s=this._getLineLeftOffset(A),w=0,_=0,g=this.getValueOfPropertyAt(A,0,"textBackgroundColor");for(var j=0,R=v.length;j<R;j++)S=this.__charBounds[A][j],x=this.getValueOfPropertyAt(A,j,"textBackgroundColor"),T?(c.save(),c.translate(S.renderLeft,S.renderTop),c.rotate(S.angle),c.fillStyle=x,x&&c.fillRect(-S.width/2,-f/this.lineHeight*(1-this._fontSizeFraction),S.width,f/this.lineHeight),c.restore()):x!==g?(O=y+s+_,this.direction==="rtl"&&(O=this.width-O-w),c.fillStyle=g,g&&c.fillRect(O,b,w,f/this.lineHeight),_=S.left,w=S.width,g=x):w+=S.kernedWidth;x&&!T&&(O=y+s+_,this.direction==="rtl"&&(O=this.width-O-w),c.fillStyle=x,c.fillRect(O,b,w,f/this.lineHeight)),b+=f}c.fillStyle=d,this._removeShadow(c)}},getFontCache:function(c){var f=c.fontFamily.toLowerCase();o.charWidthsCache[f]||(o.charWidthsCache[f]={});var s=o.charWidthsCache[f],d=c.fontStyle.toLowerCase()+"_"+(c.fontWeight+"").toLowerCase();return s[d]||(s[d]={}),s[d]},_measureChar:function(c,f,s,d){var v=this.getFontCache(f),g=this._getFontDeclaration(f),y=this._getFontDeclaration(d),b=s+c,_=g===y,w,S,x,T=f.fontSize/this.CACHE_FONT_SIZE,O;if(s&&v[s]!==void 0&&(x=v[s]),v[c]!==void 0&&(O=w=v[c]),_&&v[b]!==void 0&&(S=v[b],O=S-x),w===void 0||x===void 0||S===void 0){var A=this.getMeasuringContext();this._setTextStyles(A,f,!0)}return w===void 0&&(O=w=A.measureText(c).width,v[c]=w),x===void 0&&_&&s&&(x=A.measureText(s).width,v[s]=x),_&&S===void 0&&(S=A.measureText(b).width,v[b]=S,O=S-x),{width:w*T,kernedWidth:O*T}},getHeightOfChar:function(c,f){return this.getValueOfPropertyAt(c,f,"fontSize")},measureLine:function(c){var f=this._measureLine(c);return this.charSpacing!==0&&(f.width-=this._getWidthOfCharSpacing()),f.width<0&&(f.width=0),f},_measureLine:function(c){var f=0,s,d,v=this._textLines[c],g,y,b=0,_=new Array(v.length),w=0,S,x,T=this.path,O=this.pathSide==="right";for(this.__charBounds[c]=_,s=0;s<v.length;s++)d=v[s],y=this._getGraphemeBox(d,c,s,g),_[s]=y,f+=y.kernedWidth,g=d;if(_[s]={left:y?y.left+y.width:0,width:0,kernedWidth:0,height:this.fontSize},T){switch(x=T.segmentsInfo[T.segmentsInfo.length-1].length,S=o.util.getPointOnPath(T.path,0,T.segmentsInfo),S.x+=T.pathOffset.x,S.y+=T.pathOffset.y,this.textAlign){case"left":w=O?x-f:0;break;case"center":w=(x-f)/2;break;case"right":w=O?0:x-f;break}for(w+=this.pathStartOffset*(O?-1:1),s=O?v.length-1:0;O?s>=0:s<v.length;O?s--:s++)y=_[s],w>x?w%=x:w<0&&(w+=x),this._setGraphemeOnPath(w,y,S),w+=y.kernedWidth}return{width:f,numOfSpaces:b}},_setGraphemeOnPath:function(c,f,s){var d=c+f.kernedWidth/2,v=this.path,g=o.util.getPointOnPath(v.path,d,v.segmentsInfo);f.renderLeft=g.x-s.x,f.renderTop=g.y-s.y,f.angle=g.angle+(this.pathSide==="right"?Math.PI:0)},_getGraphemeBox:function(c,f,s,d,v){var g=this.getCompleteStyleDeclaration(f,s),y=d?this.getCompleteStyleDeclaration(f,s-1):{},b=this._measureChar(c,g,d,y),_=b.kernedWidth,w=b.width,S;this.charSpacing!==0&&(S=this._getWidthOfCharSpacing(),w+=S,_+=S);var x={width:w,left:0,height:g.fontSize,kernedWidth:_,deltaY:g.deltaY};if(s>0&&!v){var T=this.__charBounds[f][s-1];x.left=T.left+T.width+b.kernedWidth-b.width}return x},getHeightOfLine:function(c){if(this.__lineHeights[c])return this.__lineHeights[c];for(var f=this._textLines[c],s=this.getHeightOfChar(c,0),d=1,v=f.length;d<v;d++)s=Math.max(this.getHeightOfChar(c,d),s);return this.__lineHeights[c]=s*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var c,f=0,s=0,d=this._textLines.length;s<d;s++)c=this.getHeightOfLine(s),f+=s===d-1?c/this.lineHeight:c;return f},_getLeftOffset:function(){return this.direction==="ltr"?-this.width/2:this.width/2},_getTopOffset:function(){return-this.height/2},_renderTextCommon:function(c,f){c.save();for(var s=0,d=this._getLeftOffset(),v=this._getTopOffset(),g=0,y=this._textLines.length;g<y;g++){var b=this.getHeightOfLine(g),_=b/this.lineHeight,w=this._getLineLeftOffset(g);this._renderTextLine(f,c,this._textLines[g],d+w,v+s+_,g),s+=b}c.restore()},_renderTextFill:function(c){!this.fill&&!this.styleHas("fill")||this._renderTextCommon(c,"fillText")},_renderTextStroke:function(c){(!this.stroke||this.strokeWidth===0)&&this.isEmptyStyles()||(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(c),c.save(),this._setLineDash(c,this.strokeDashArray),c.beginPath(),this._renderTextCommon(c,"strokeText"),c.closePath(),c.restore())},_renderChars:function(c,f,s,d,v,g){var y=this.getHeightOfLine(g),b=this.textAlign.indexOf("justify")!==-1,_,w,S="",x,T=0,O,A=this.path,$=!b&&this.charSpacing===0&&this.isEmptyStyles(g)&&!A,j=this.direction==="ltr",R=this.direction==="ltr"?1:-1,F,E=f.canvas.getAttribute("dir");if(f.save(),E!==this.direction&&(f.canvas.setAttribute("dir",j?"ltr":"rtl"),f.direction=j?"ltr":"rtl",f.textAlign=j?"left":"right"),v-=y*this._fontSizeFraction/this.lineHeight,$){this._renderChar(c,f,g,0,s.join(""),d,v,y),f.restore();return}for(var W=0,te=s.length-1;W<=te;W++)O=W===te||this.charSpacing||A,S+=s[W],x=this.__charBounds[g][W],T===0?(d+=R*(x.kernedWidth-x.width),T+=x.width):T+=x.kernedWidth,b&&!O&&this._reSpaceAndTab.test(s[W])&&(O=!0),O||(_=_||this.getCompleteStyleDeclaration(g,W),w=this.getCompleteStyleDeclaration(g,W+1),O=o.util.hasStyleChanged(_,w,!1)),O&&(A?(f.save(),f.translate(x.renderLeft,x.renderTop),f.rotate(x.angle),this._renderChar(c,f,g,W,S,-T/2,0,y),f.restore()):(F=d,this._renderChar(c,f,g,W,S,F,v,y)),S="",_=w,d+=R*T,T=0);f.restore()},_applyPatternGradientTransformText:function(c){var f=o.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=c.toLive(s),this._applyPatternGradientTransform(s,c),s.fill(),s.createPattern(f,"no-repeat")},handleFiller:function(c,f,s){var d,v;return s.toLive?s.gradientUnits==="percentage"||s.gradientTransform||s.patternTransform?(d=-this.width/2,v=-this.height/2,c.translate(d,v),c[f]=this._applyPatternGradientTransformText(s),{offsetX:d,offsetY:v}):(c[f]=s.toLive(c,this),this._applyPatternGradientTransform(c,s)):(c[f]=s,{offsetX:0,offsetY:0})},_setStrokeStyles:function(c,f){return c.lineWidth=f.strokeWidth,c.lineCap=this.strokeLineCap,c.lineDashOffset=this.strokeDashOffset,c.lineJoin=this.strokeLineJoin,c.miterLimit=this.strokeMiterLimit,this.handleFiller(c,"strokeStyle",f.stroke)},_setFillStyles:function(c,f){return this.handleFiller(c,"fillStyle",f.fill)},_renderChar:function(c,f,s,d,v,g,y){var b=this._getStyleDeclaration(s,d),_=this.getCompleteStyleDeclaration(s,d),w=c==="fillText"&&_.fill,S=c==="strokeText"&&_.stroke&&_.strokeWidth,x,T;!S&&!w||(f.save(),w&&(x=this._setFillStyles(f,_)),S&&(T=this._setStrokeStyles(f,_)),f.font=this._getFontDeclaration(_),b&&b.textBackgroundColor&&this._removeShadow(f),b&&b.deltaY&&(y+=b.deltaY),w&&f.fillText(v,g-x.offsetX,y-x.offsetY),S&&f.strokeText(v,g-T.offsetX,y-T.offsetY),f.restore())},setSuperscript:function(c,f){return this._setScript(c,f,this.superscript)},setSubscript:function(c,f){return this._setScript(c,f,this.subscript)},_setScript:function(c,f,s){var d=this.get2DCursorLocation(c,!0),v=this.getValueOfPropertyAt(d.lineIndex,d.charIndex,"fontSize"),g=this.getValueOfPropertyAt(d.lineIndex,d.charIndex,"deltaY"),y={fontSize:v*s.size,deltaY:g+v*s.baseline};return this.setSelectionStyles(y,c,f),this},_getLineLeftOffset:function(c){var f=this.getLineWidth(c),s=this.width-f,d=this.textAlign,v=this.direction,y,g=0,y=this.isEndOfWrapping(c);return d==="justify"||d==="justify-center"&&!y||d==="justify-right"&&!y||d==="justify-left"&&!y?0:(d==="center"&&(g=s/2),d==="right"&&(g=s),d==="justify-center"&&(g=s/2),d==="justify-right"&&(g=s),v==="rtl"&&(g-=s),g)},_clearCache:function(){this.__lineWidths=[],this.__lineHeights=[],this.__charBounds=[]},_shouldClearDimensionCache:function(){var c=this._forceClearCache;return c||(c=this.hasStateChanged("_dimensionAffectingProps")),c&&(this.dirty=!0,this._forceClearCache=!1),c},getLineWidth:function(c){if(this.__lineWidths[c]!==void 0)return this.__lineWidths[c];var f=this.measureLine(c),s=f.width;return this.__lineWidths[c]=s,s},_getWidthOfCharSpacing:function(){return this.charSpacing!==0?this.fontSize*this.charSpacing/1e3:0},getValueOfPropertyAt:function(c,f,s){var d=this._getStyleDeclaration(c,f);return d&&typeof d[s]<"u"?d[s]:this[s]},_renderTextDecoration:function(c,f){if(!(!this[f]&&!this.styleHas(f))){for(var s,d,v,g,y,b,_,w,S=this._getLeftOffset(),x=this._getTopOffset(),T,O,A,$,j,R,F,E,W=this.path,te=this._getWidthOfCharSpacing(),Q=this.offsets[f],le=0,I=this._textLines.length;le<I;le++){if(s=this.getHeightOfLine(le),!this[f]&&!this.styleHas(f,le)){x+=s;continue}_=this._textLines[le],R=s/this.lineHeight,g=this._getLineLeftOffset(le),O=0,A=0,w=this.getValueOfPropertyAt(le,0,f),E=this.getValueOfPropertyAt(le,0,"fill"),T=x+R*(1-this._fontSizeFraction),d=this.getHeightOfChar(le,0),y=this.getValueOfPropertyAt(le,0,"deltaY");for(var z=0,M=_.length;z<M;z++)if($=this.__charBounds[le][z],j=this.getValueOfPropertyAt(le,z,f),F=this.getValueOfPropertyAt(le,z,"fill"),v=this.getHeightOfChar(le,z),b=this.getValueOfPropertyAt(le,z,"deltaY"),W&&j&&F)c.save(),c.fillStyle=E,c.translate($.renderLeft,$.renderTop),c.rotate($.angle),c.fillRect(-$.kernedWidth/2,Q*v+b,$.kernedWidth,this.fontSize/15),c.restore();else if((j!==w||F!==E||v!==d||b!==y)&&A>0){var L=S+g+O;this.direction==="rtl"&&(L=this.width-L-A),w&&E&&(c.fillStyle=E,c.fillRect(L,T+Q*d+y,A,this.fontSize/15)),O=$.left,A=$.width,w=j,E=F,d=v,y=b}else A+=$.kernedWidth;var L=S+g+O;this.direction==="rtl"&&(L=this.width-L-A),c.fillStyle=F,j&&F&&c.fillRect(L,T+Q*d+y,A-te,this.fontSize/15),x+=s}this._removeShadow(c)}},_getFontDeclaration:function(c,f){var s=c||this,d=this.fontFamily,v=o.Text.genericFonts.indexOf(d.toLowerCase())>-1,g=d===void 0||d.indexOf("'")>-1||d.indexOf(",")>-1||d.indexOf('"')>-1||v?s.fontFamily:'"'+s.fontFamily+'"';return[o.isLikelyNode?s.fontWeight:s.fontStyle,o.isLikelyNode?s.fontStyle:s.fontWeight,f?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",g].join(" ")},render:function(c){!this.visible||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(this._shouldClearDimensionCache()&&this.initDimensions(),this.callSuper("render",c))},_splitTextIntoLines:function(c){for(var f=c.split(this._reNewline),s=new Array(f.length),d=[`
|
||
`],v=[],g=0;g<f.length;g++)s[g]=o.util.string.graphemeSplit(f[g]),v=v.concat(s[g],d);return v.pop(),{_unwrappedLines:s,lines:f,graphemeText:v,graphemeLines:s}},toObject:function(c){var f=h.concat(c),s=this.callSuper("toObject",f);return s.styles=o.util.stylesToArray(this.styles,this.text),s.path&&(s.path=this.path.toObject()),s},set:function(c,f){this.callSuper("set",c,f);var s=!1,d=!1;if(typeof c=="object")for(var v in c)v==="path"&&this.setPathInfo(),s=s||this._dimensionAffectingProps.indexOf(v)!==-1,d=d||v==="path";else s=this._dimensionAffectingProps.indexOf(c)!==-1,d=c==="path";return d&&this.setPathInfo(),s&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),o.Text.ATTRIBUTE_NAMES=o.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),o.Text.DEFAULT_SVG_FONT_SIZE=16,o.Text.fromElement=function(c,f,s){if(!c)return f(null);var d=o.parseAttributes(c,o.Text.ATTRIBUTE_NAMES),v=d.textAnchor||"left";if(s=o.util.object.extend(s?u(s):{},d),s.top=s.top||0,s.left=s.left||0,d.textDecoration){var g=d.textDecoration;g.indexOf("underline")!==-1&&(s.underline=!0),g.indexOf("overline")!==-1&&(s.overline=!0),g.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=o.Text.DEFAULT_SVG_FONT_SIZE);var y="";"textContent"in c?y=c.textContent:"firstChild"in c&&c.firstChild!==null&&"data"in c.firstChild&&c.firstChild.data!==null&&(y=c.firstChild.data),y=y.replace(/^\s+|\s+$|\n+/g,"").replace(/\s+/g," ");var b=s.strokeWidth;s.strokeWidth=0;var _=new o.Text(y,s),w=_.getScaledHeight()/_.height,S=(_.height+_.strokeWidth)*_.lineHeight-_.height,x=S*w,T=_.getScaledHeight()+x,O=0;v==="center"&&(O=_.getScaledWidth()/2),v==="right"&&(O=_.getScaledWidth()),_.set({left:_.left-O,top:_.top-(T-_.fontSize*(.07+_._fontSizeFraction))/_.lineHeight,strokeWidth:typeof b<"u"?b:1}),f(_)},o.Text.fromObject=function(c,f){var s=u(c),d=c.path;return delete s.path,o.Object._fromObject("Text",s,function(v){v.styles=o.util.stylesFromArray(c.styles,c.text),d?o.Object._fromObject("Path",d,function(g){v.set("path",g),f(v)},"path"):f(v)},"text")},o.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],o.util.createAccessors&&o.util.createAccessors(o.Text)}(e),function(){t.util.object.extend(t.Text.prototype,{isEmptyStyles:function(a){if(!this.styles||typeof a<"u"&&!this.styles[a])return!0;var o=typeof a>"u"?this.styles:{line:this.styles[a]};for(var u in o)for(var h in o[u])for(var c in o[u][h])return!1;return!0},styleHas:function(a,o){if(!this.styles||!a||a===""||typeof o<"u"&&!this.styles[o])return!1;var u=typeof o>"u"?this.styles:{0:this.styles[o]};for(var h in u)for(var c in u[h])if(typeof u[h][c][a]<"u")return!0;return!1},cleanStyle:function(a){if(!this.styles||!a||a==="")return!1;var o=this.styles,u=0,h,c,f=!0,s=0,d;for(var v in o){h=0;for(var g in o[v]){var d=o[v][g],y=d.hasOwnProperty(a);u++,y?(c?d[a]!==c&&(f=!1):c=d[a],d[a]===this[a]&&delete d[a]):f=!1,Object.keys(d).length!==0?h++:delete o[v][g]}h===0&&delete o[v]}for(var b=0;b<this._textLines.length;b++)s+=this._textLines[b].length;f&&u===s&&(this[a]=c,this.removeStyle(a))},removeStyle:function(a){if(!(!this.styles||!a||a==="")){var o=this.styles,u,h,c;for(h in o){u=o[h];for(c in u)delete u[c][a],Object.keys(u[c]).length===0&&delete u[c];Object.keys(u).length===0&&delete o[h]}}},_extendStyles:function(a,o){var u=this.get2DCursorLocation(a);this._getLineStyle(u.lineIndex)||this._setLineStyle(u.lineIndex),this._getStyleDeclaration(u.lineIndex,u.charIndex)||this._setStyleDeclaration(u.lineIndex,u.charIndex,{}),t.util.object.extend(this._getStyleDeclaration(u.lineIndex,u.charIndex),o)},get2DCursorLocation:function(a,o){typeof a>"u"&&(a=this.selectionStart);for(var u=o?this._unwrappedTextLines:this._textLines,h=u.length,c=0;c<h;c++){if(a<=u[c].length)return{lineIndex:c,charIndex:a};a-=u[c].length+this.missingNewlineOffset(c)}return{lineIndex:c-1,charIndex:u[c-1].length<a?u[c-1].length:a}},getSelectionStyles:function(a,o,u){typeof a>"u"&&(a=this.selectionStart||0),typeof o>"u"&&(o=this.selectionEnd||a);for(var h=[],c=a;c<o;c++)h.push(this.getStyleAtPosition(c,u));return h},getStyleAtPosition:function(a,o){var u=this.get2DCursorLocation(a),h=o?this.getCompleteStyleDeclaration(u.lineIndex,u.charIndex):this._getStyleDeclaration(u.lineIndex,u.charIndex);return h||{}},setSelectionStyles:function(a,o,u){typeof o>"u"&&(o=this.selectionStart||0),typeof u>"u"&&(u=this.selectionEnd||o);for(var h=o;h<u;h++)this._extendStyles(h,a);return this._forceClearCache=!0,this},_getStyleDeclaration:function(a,o){var u=this.styles&&this.styles[a];return u?u[o]:null},getCompleteStyleDeclaration:function(a,o){for(var u=this._getStyleDeclaration(a,o)||{},h={},c,f=0;f<this._styleProperties.length;f++)c=this._styleProperties[f],h[c]=typeof u[c]>"u"?this[c]:u[c];return h},_setStyleDeclaration:function(a,o,u){this.styles[a][o]=u},_deleteStyleDeclaration:function(a,o){delete this.styles[a][o]},_getLineStyle:function(a){return!!this.styles[a]},_setLineStyle:function(a){this.styles[a]={}},_deleteLineStyle:function(a){delete this.styles[a]}})}(),function(){function a(o){o.textDecoration&&(o.textDecoration.indexOf("underline")>-1&&(o.underline=!0),o.textDecoration.indexOf("line-through")>-1&&(o.linethrough=!0),o.textDecoration.indexOf("overline")>-1&&(o.overline=!0),delete o.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(o,u){this.callSuper("initialize",o,u),this.initBehavior()},setSelectionStart:function(o){o=Math.max(o,0),this._updateAndFire("selectionStart",o)},setSelectionEnd:function(o){o=Math.min(o,this.text.length),this._updateAndFire("selectionEnd",o)},_updateAndFire:function(o,u){this[o]!==u&&(this._fireSelectionChanged(),this[o]=u),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(o){this.clearContextTop(),this.callSuper("render",o),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(o){this.callSuper("_render",o)},clearContextTop:function(o){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var u=this.canvas.contextTop,h=this.canvas.viewportTransform;u.save(),u.transform(h[0],h[1],h[2],h[3],h[4],h[5]),this.transform(u),this._clearTextArea(u),o||u.restore()}},renderCursorOrSelection:function(){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var o=this._getCursorBoundaries(),u=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(o,u):this.renderSelection(o,u),u.restore()}},_clearTextArea:function(o){var u=this.width+4,h=this.height+4;o.clearRect(-u/2,-h/2,u,h)},_getCursorBoundaries:function(o){typeof o>"u"&&(o=this.selectionStart);var u=this._getLeftOffset(),h=this._getTopOffset(),c=this._getCursorBoundariesOffsets(o);return{left:u,top:h,leftOffset:c.left,topOffset:c.top}},_getCursorBoundariesOffsets:function(o){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var u,h,c,f=0,s=0,d,v=this.get2DCursorLocation(o);c=v.charIndex,h=v.lineIndex;for(var g=0;g<h;g++)f+=this.getHeightOfLine(g);u=this._getLineLeftOffset(h);var y=this.__charBounds[h][c];return y&&(s=y.left),this.charSpacing!==0&&c===this._textLines[h].length&&(s-=this._getWidthOfCharSpacing()),d={top:f,left:u+(s>0?s:0)},this.direction==="rtl"&&(d.left*=-1),this.cursorOffsetCache=d,this.cursorOffsetCache},renderCursor:function(o,u){var h=this.get2DCursorLocation(),c=h.lineIndex,f=h.charIndex>0?h.charIndex-1:0,s=this.getValueOfPropertyAt(c,f,"fontSize"),d=this.scaleX*this.canvas.getZoom(),v=this.cursorWidth/d,g=o.topOffset,y=this.getValueOfPropertyAt(c,f,"deltaY");g+=(1-this._fontSizeFraction)*this.getHeightOfLine(c)/this.lineHeight-s*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(o,u),u.fillStyle=this.cursorColor||this.getValueOfPropertyAt(c,f,"fill"),u.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,u.fillRect(o.left+o.leftOffset-v/2,g+o.top+y,v,s)},renderSelection:function(o,u){for(var h=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,c=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,f=this.textAlign.indexOf("justify")!==-1,s=this.get2DCursorLocation(h),d=this.get2DCursorLocation(c),v=s.lineIndex,g=d.lineIndex,y=s.charIndex<0?0:s.charIndex,b=d.charIndex<0?0:d.charIndex,_=v;_<=g;_++){var w=this._getLineLeftOffset(_)||0,S=this.getHeightOfLine(_),x=0,T=0,O=0;if(_===v&&(T=this.__charBounds[v][y].left),_>=v&&_<g)O=f&&!this.isEndOfWrapping(_)?this.width:this.getLineWidth(_)||5;else if(_===g)if(b===0)O=this.__charBounds[g][b].left;else{var A=this._getWidthOfCharSpacing();O=this.__charBounds[g][b-1].left+this.__charBounds[g][b-1].width-A}x=S,(this.lineHeight<1||_===g&&this.lineHeight>1)&&(S/=this.lineHeight);var $=o.left+w+T,j=O-T,R=S,F=0;this.inCompositionMode?(u.fillStyle=this.compositionColor||"black",R=1,F=S):u.fillStyle=this.selectionColor,this.direction==="rtl"&&($=this.width-$-j),u.fillRect($,o.top+o.topOffset+F,j,R),o.topOffset+=x}},getCurrentCharFontSize:function(){var o=this._getCurrentCharIndex();return this.getValueOfPropertyAt(o.l,o.c,"fontSize")},getCurrentCharColor:function(){var o=this._getCurrentCharIndex();return this.getValueOfPropertyAt(o.l,o.c,"fill")},_getCurrentCharIndex:function(){var o=this.get2DCursorLocation(this.selectionStart,!0),u=o.charIndex>0?o.charIndex-1:0;return{l:o.lineIndex,c:u}}}),t.IText.fromObject=function(o,u){var h=t.util.stylesFromArray(o.styles,o.text),c=Object.assign({},o,{styles:h});if(a(c),c.styles)for(var f in c.styles)for(var s in c.styles[f])a(c.styles[f][s]);t.Object._fromObject("IText",c,u,"text")}}(),function(){var a=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 o=this;this.on("added",function(){var u=o.canvas;u&&(u._hasITextHandlers||(u._hasITextHandlers=!0,o._initCanvasHandlers(u)),u._iTextInstances=u._iTextInstances||[],u._iTextInstances.push(o))})},initRemovedHandler:function(){var o=this;this.on("removed",function(){var u=o.canvas;u&&(u._iTextInstances=u._iTextInstances||[],t.util.removeFromArray(u._iTextInstances,o),u._iTextInstances.length===0&&(u._hasITextHandlers=!1,o._removeCanvasHandlers(u)))})},_initCanvasHandlers:function(o){o._mouseUpITextHandler=function(){o._iTextInstances&&o._iTextInstances.forEach(function(u){u.__isMousedown=!1})},o.on("mouse:up",o._mouseUpITextHandler)},_removeCanvasHandlers:function(o){o.off("mouse:up",o._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(o,u,h,c){var f;return f={isAborted:!1,abort:function(){this.isAborted=!0}},o.animate("_currentCursorOpacity",u,{duration:h,onComplete:function(){f.isAborted||o[c]()},onChange:function(){o.canvas&&o.selectionStart===o.selectionEnd&&o.renderCursorOrSelection()},abort:function(){return f.isAborted}}),f},_onTickComplete:function(){var o=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){o._currentTickCompleteState=o._animateCursor(o,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(o){var u=this,h=o?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){u._tick()},h)},abortCursorAnimation:function(){var o=this._currentTickState||this._currentTickCompleteState,u=this.canvas;this._currentTickState&&this._currentTickState.abort(),this._currentTickCompleteState&&this._currentTickCompleteState.abort(),clearTimeout(this._cursorTimeout1),clearTimeout(this._cursorTimeout2),this._currentCursorOpacity=0,o&&u&&u.clearContext(u.contextTop||u.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(o){var u=0,h=o-1;if(this._reSpace.test(this._text[h]))for(;this._reSpace.test(this._text[h]);)u++,h--;for(;/\S/.test(this._text[h])&&h>-1;)u++,h--;return o-u},findWordBoundaryRight:function(o){var u=0,h=o;if(this._reSpace.test(this._text[h]))for(;this._reSpace.test(this._text[h]);)u++,h++;for(;/\S/.test(this._text[h])&&h<this._text.length;)u++,h++;return o+u},findLineBoundaryLeft:function(o){for(var u=0,h=o-1;!/\n/.test(this._text[h])&&h>-1;)u++,h--;return o-u},findLineBoundaryRight:function(o){for(var u=0,h=o;!/\n/.test(this._text[h])&&h<this._text.length;)u++,h++;return o+u},searchWordBoundary:function(o,u){for(var h=this._text,c=this._reSpace.test(h[o])?o-1:o,f=h[c],s=t.reNonWord;!s.test(f)&&c>0&&c<h.length;)c+=u,f=h[c];return s.test(f)&&(c+=u===1?0:1),c},selectWord:function(o){o=o||this.selectionStart;var u=this.searchWordBoundary(o,-1),h=this.searchWordBoundary(o,1);this.selectionStart=u,this.selectionEnd=h,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(o){o=o||this.selectionStart;var u=this.findLineBoundaryLeft(o),h=this.findLineBoundaryRight(o);return this.selectionStart=u,this.selectionEnd=h,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(o){if(!(this.isEditing||!this.editable))return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(o),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(o){o._iTextInstances&&o._iTextInstances.forEach(function(u){u.selected=!1,u.isEditing&&u.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(o){if(!(!this.__isMousedown||!this.isEditing)){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var u=this.getSelectionStartFromPointer(o.e),h=this.selectionStart,c=this.selectionEnd;(u!==this.__selectionStartOnMouseDown||h===c)&&(h===u||c===u)||(u>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=u):(this.selectionStart=u,this.selectionEnd=this.__selectionStartOnMouseDown),(this.selectionStart!==h||this.selectionEnd!==c)&&(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(o,u,h){var c=h.slice(0,o),f=t.util.string.graphemeSplit(c).length;if(o===u)return{selectionStart:f,selectionEnd:f};var s=h.slice(o,u),d=t.util.string.graphemeSplit(s).length;return{selectionStart:f,selectionEnd:f+d}},fromGraphemeToStringSelection:function(o,u,h){var c=h.slice(0,o),f=c.join("").length;if(o===u)return{selectionStart:f,selectionEnd:f};var s=h.slice(o,u),d=s.join("").length;return{selectionStart:f,selectionEnd:f+d}},_updateTextarea:function(){if(this.cursorOffsetCache={},!!this.hiddenTextarea){if(!this.inCompositionMode){var o=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=o.selectionStart,this.hiddenTextarea.selectionEnd=o.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(!!this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var o=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=o.selectionEnd,this.inCompositionMode||(this.selectionStart=o.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var o=this._calcTextareaPosition();this.hiddenTextarea.style.left=o.left,this.hiddenTextarea.style.top=o.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var o=this.inCompositionMode?this.compositionStart:this.selectionStart,u=this._getCursorBoundaries(o),h=this.get2DCursorLocation(o),c=h.lineIndex,f=h.charIndex,s=this.getValueOfPropertyAt(c,f,"fontSize")*this.lineHeight,d=u.leftOffset,v=this.calcTransformMatrix(),g={x:u.left+d,y:u.top+u.topOffset+s},y=this.canvas.getRetinaScaling(),b=this.canvas.upperCanvasEl,_=b.width/y,w=b.height/y,S=_-s,x=w-s,T=b.clientWidth/_,O=b.clientHeight/w;return g=t.util.transformPoint(g,v),g=t.util.transformPoint(g,this.canvas.viewportTransform),g.x*=T,g.y*=O,g.x<0&&(g.x=0),g.x>S&&(g.x=S),g.y<0&&(g.y=0),g.y>x&&(g.y=x),g.x+=this.canvas._offset.left,g.y+=this.canvas._offset.top,{left:g.x+"px",top:g.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 o=this._textBeforeEdit!==this.text,u=this.hiddenTextarea;return this.selected=!1,this.isEditing=!1,this.selectionEnd=this.selectionStart,u&&(u.blur&&u.blur(),u.parentNode&&u.parentNode.removeChild(u)),this.hiddenTextarea=null,this.abortCursorAnimation(),this._restoreEditingProps(),this._currentCursorOpacity=0,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this.fire("editing:exited"),o&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),o&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var o in this.styles)this._textLines[o]||delete this.styles[o]},removeStyleFromTo:function(o,u){var h=this.get2DCursorLocation(o,!0),c=this.get2DCursorLocation(u,!0),f=h.lineIndex,s=h.charIndex,d=c.lineIndex,v=c.charIndex,g,y;if(f!==d){if(this.styles[f])for(g=s;g<this._unwrappedTextLines[f].length;g++)delete this.styles[f][g];if(this.styles[d])for(g=v;g<this._unwrappedTextLines[d].length;g++)y=this.styles[d][g],y&&(this.styles[f]||(this.styles[f]={}),this.styles[f][s+g-v]=y);for(g=f+1;g<=d;g++)delete this.styles[g];this.shiftLineStyles(d,f-d)}else if(this.styles[f]){y=this.styles[f];var b=v-s,_,w;for(g=s;g<v;g++)delete y[g];for(w in this.styles[f])_=parseInt(w,10),_>=v&&(y[_-b]=y[w],delete y[w])}},shiftLineStyles:function(o,u){var h=a(this.styles);for(var c in this.styles){var f=parseInt(c,10);f>o&&(this.styles[f+u]=h[f],h[f-u]||delete this.styles[f])}},restartCursorIfNeeded:function(){(!this._currentTickState||this._currentTickState.isAborted||!this._currentTickCompleteState||this._currentTickCompleteState.isAborted)&&this.initDelayedCursor()},insertNewlineStyleObject:function(o,u,h,c){var f,s={},d=!1,v=this._unwrappedTextLines[o].length===u;h||(h=1),this.shiftLineStyles(o,h),this.styles[o]&&(f=this.styles[o][u===0?u:u-1]);for(var g in this.styles[o]){var y=parseInt(g,10);y>=u&&(d=!0,s[y-u]=this.styles[o][g],v&&u===0||delete this.styles[o][g])}var b=!1;for(d&&!v&&(this.styles[o+h]=s,b=!0),b&&h--;h>0;)c&&c[h-1]?this.styles[o+h]={0:a(c[h-1])}:f?this.styles[o+h]={0:a(f)}:delete this.styles[o+h],h--;this._forceClearCache=!0},insertCharStyleObject:function(o,u,h,c){this.styles||(this.styles={});var f=this.styles[o],s=f?a(f):{};h||(h=1);for(var d in s){var v=parseInt(d,10);v>=u&&(f[v+h]=s[v],s[v-h]||delete f[v])}if(this._forceClearCache=!0,c){for(;h--;)!Object.keys(c[h]).length||(this.styles[o]||(this.styles[o]={}),this.styles[o][u+h]=a(c[h]));return}if(!!f)for(var g=f[u?u-1:1];g&&h--;)this.styles[o][u+h]=a(g)},insertNewStyleBlock:function(o,u,h){for(var c=this.get2DCursorLocation(u,!0),f=[0],s=0,d=0;d<o.length;d++)o[d]===`
|
||
`?(s++,f[s]=0):f[s]++;f[0]>0&&(this.insertCharStyleObject(c.lineIndex,c.charIndex,f[0],h),h=h&&h.slice(f[0]+1)),s&&this.insertNewlineStyleObject(c.lineIndex,c.charIndex+f[0],s);for(var d=1;d<s;d++)f[d]>0?this.insertCharStyleObject(c.lineIndex+d,0,f[d],h):h&&this.styles[c.lineIndex+d]&&h[0]&&(this.styles[c.lineIndex+d][0]=h[0]),h=h&&h.slice(f[d]+1);f[d]>0&&this.insertCharStyleObject(c.lineIndex+d,0,f[d],h)},setSelectionStartEndWithShift:function(o,u,h){h<=o?(u===o?this._selectionDirection="left":this._selectionDirection==="right"&&(this._selectionDirection="left",this.selectionEnd=o),this.selectionStart=h):h>o&&h<u?this._selectionDirection==="right"?this.selectionEnd=h:this.selectionStart=h:(u===o?this._selectionDirection="right":this._selectionDirection==="left"&&(this._selectionDirection="right",this.selectionStart=u),this.selectionEnd=h)},setSelectionInBoundaries:function(){var o=this.text.length;this.selectionStart>o?this.selectionStart=o:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>o?this.selectionEnd=o: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(a){if(!!this.canvas){this.__newClickTime=+new Date;var o=a.pointer;this.isTripleClick(o)&&(this.fire("tripleclick",a),this._stopEvent(a.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=o,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(a){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===a.x&&this.__lastPointer.y===a.y},_stopEvent:function(a){a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(a){!this.isEditing||this.selectWord(this.getSelectionStartFromPointer(a.e))},tripleClickHandler:function(a){!this.isEditing||this.selectLine(this.getSelectionStartFromPointer(a.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(a){!this.canvas||!this.editable||a.e.button&&a.e.button!==1||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(a.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(a){!this.canvas||!this.editable||a.e.button&&a.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(a){if(this.__isMousedown=!1,!(!this.editable||this.group||a.transform&&a.transform.actionPerformed||a.e.button&&a.e.button!==1)){if(this.canvas){var o=this.canvas._activeObject;if(o&&o!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(a.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(a){var o=this.getSelectionStartFromPointer(a),u=this.selectionStart,h=this.selectionEnd;a.shiftKey?this.setSelectionStartEndWithShift(u,h,o):(this.selectionStart=o,this.selectionEnd=o),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(a){for(var o=this.getLocalPointer(a),u=0,h=0,c=0,f=0,s=0,d,v,g=0,y=this._textLines.length;g<y&&c<=o.y;g++)c+=this.getHeightOfLine(g)*this.scaleY,s=g,g>0&&(f+=this._textLines[g-1].length+this.missingNewlineOffset(g-1));d=this._getLineLeftOffset(s),h=d*this.scaleX,v=this._textLines[s],this.direction==="rtl"&&(o.x=this.width*this.scaleX-o.x+h);for(var b=0,_=v.length;b<_&&(u=h,h+=this.__charBounds[s][b].kernedWidth*this.scaleX,h<=o.x);b++)f++;return this._getNewSelectionStartFromOffset(o,u,h,f,_)},_getNewSelectionStartFromOffset:function(a,o,u,h,c){var f=a.x-o,s=u-a.x,d=s>f||s<0?0:1,v=h+d;return this.flipX&&(v=c-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 a=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+a.top+"; left: "+a.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding\uFF70top: "+a.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(a){if(!!this.isEditing){var o=this.direction==="rtl"?this.keysMapRtl:this.keysMap;if(a.keyCode in o)this[o[a.keyCode]](a);else if(a.keyCode in this.ctrlKeysMapDown&&(a.ctrlKey||a.metaKey))this[this.ctrlKeysMapDown[a.keyCode]](a);else return;a.stopImmediatePropagation(),a.preventDefault(),a.keyCode>=33&&a.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(a){if(!this.isEditing||this._copyDone||this.inCompositionMode){this._copyDone=!1;return}if(a.keyCode in this.ctrlKeysMapUp&&(a.ctrlKey||a.metaKey))this[this.ctrlKeysMapUp[a.keyCode]](a);else return;a.stopImmediatePropagation(),a.preventDefault(),this.canvas&&this.canvas.requestRenderAll()},onInput:function(a){var o=this.fromPaste;if(this.fromPaste=!1,a&&a.stopPropagation(),!!this.isEditing){var u=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,h=this._text.length,c=u.length,f,s,d=c-h,v=this.selectionStart,g=this.selectionEnd,y=v!==g,b,_,w;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;y?(f=this._text.slice(v,g),d+=g-v):c<h&&(x?f=this._text.slice(g+d,g):f=this._text.slice(v,v-d)),s=u.slice(S.selectionEnd-d,S.selectionEnd),f&&f.length&&(s.length&&(b=this.getSelectionStyles(v,v+1,!1),b=s.map(function(){return b[0]})),y?(_=v,w=g):x?(_=g-f.length,w=g):(_=g,w=g+f.length),this.removeStyleFromTo(_,w)),s.length&&(o&&s.join("")===t.copiedText&&!t.disableStyleCopyPaste&&(b=t.copiedTextStyle),this.insertNewStyleBlock(s,v,b)),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(a){this.compositionStart=a.target.selectionStart,this.compositionEnd=a.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(a){return a&&a.clipboardData||t.window.clipboardData},_getWidthBeforeCursor:function(a,o){var u=this._getLineLeftOffset(a),h;return o>0&&(h=this.__charBounds[a][o-1],u+=h.left+h.width),u},getDownCursorOffset:function(a,o){var u=this._getSelectionForOffset(a,o),h=this.get2DCursorLocation(u),c=h.lineIndex;if(c===this._textLines.length-1||a.metaKey||a.keyCode===34)return this._text.length-u;var f=h.charIndex,s=this._getWidthBeforeCursor(c,f),d=this._getIndexOnLine(c+1,s),v=this._textLines[c].slice(f);return v.length+d+1+this.missingNewlineOffset(c)},_getSelectionForOffset:function(a,o){return a.shiftKey&&this.selectionStart!==this.selectionEnd&&o?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(a,o){var u=this._getSelectionForOffset(a,o),h=this.get2DCursorLocation(u),c=h.lineIndex;if(c===0||a.metaKey||a.keyCode===33)return-u;var f=h.charIndex,s=this._getWidthBeforeCursor(c,f),d=this._getIndexOnLine(c-1,s),v=this._textLines[c].slice(0,f),g=this.missingNewlineOffset(c-1);return-this._textLines[c-1].length+d-v.length+(1-g)},_getIndexOnLine:function(a,o){for(var u=this._textLines[a],h=this._getLineLeftOffset(a),c=h,f=0,s,d,v=0,g=u.length;v<g;v++)if(s=this.__charBounds[a][v].width,c+=s,c>o){d=!0;var y=c-s,b=c,_=Math.abs(y-o),w=Math.abs(b-o);f=w<_?v:v-1;break}return d||(f=u.length-1),f},moveCursorDown:function(a){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",a)},moveCursorUp:function(a){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown("Up",a)},_moveCursorUpOrDown:function(a,o){var u="get"+a+"CursorOffset",h=this[u](o,this._selectionDirection==="right");o.shiftKey?this.moveCursorWithShift(h):this.moveCursorWithoutShift(h),h!==0&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(a){var o=this._selectionDirection==="left"?this.selectionStart+a:this.selectionEnd+a;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,o),a!==0},moveCursorWithoutShift:function(a){return a<0?(this.selectionStart+=a,this.selectionEnd=this.selectionStart):(this.selectionEnd+=a,this.selectionStart=this.selectionEnd),a!==0},moveCursorLeft:function(a){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight("Left",a)},_move:function(a,o,u){var h;if(a.altKey)h=this["findWordBoundary"+u](this[o]);else if(a.metaKey||a.keyCode===35||a.keyCode===36)h=this["findLineBoundary"+u](this[o]);else return this[o]+=u==="Left"?-1:1,!0;if(typeof h<"u"&&this[o]!==h)return this[o]=h,!0},_moveLeft:function(a,o){return this._move(a,o,"Left")},_moveRight:function(a,o){return this._move(a,o,"Right")},moveCursorLeftWithoutShift:function(a){var o=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(o=this._moveLeft(a,"selectionStart")),this.selectionEnd=this.selectionStart,o},moveCursorLeftWithShift:function(a){if(this._selectionDirection==="right"&&this.selectionStart!==this.selectionEnd)return this._moveLeft(a,"selectionEnd");if(this.selectionStart!==0)return this._selectionDirection="left",this._moveLeft(a,"selectionStart")},moveCursorRight:function(a){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",a)},_moveCursorLeftOrRight:function(a,o){var u="moveCursor"+a+"With";this._currentCursorOpacity=1,o.shiftKey?u+="Shift":u+="outShift",this[u](o)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(a){if(this._selectionDirection==="left"&&this.selectionStart!==this.selectionEnd)return this._moveRight(a,"selectionStart");if(this.selectionEnd!==this._text.length)return this._selectionDirection="right",this._moveRight(a,"selectionEnd")},moveCursorRightWithoutShift:function(a){var o=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(o=this._moveRight(a,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,o},removeChars:function(a,o){typeof o>"u"&&(o=a+1),this.removeStyleFromTo(a,o),this._text.splice(a,o-a),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(a,o,u,h){typeof h>"u"&&(h=u),h>u&&this.removeStyleFromTo(u,h);var c=t.util.string.graphemeSplit(a);this.insertNewStyleBlock(c,u,o),this._text=[].concat(this._text.slice(0,u),c,this._text.slice(h)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var a=t.util.toFixed,o=/ +/g;t.util.object.extend(t.Text.prototype,{_toSVG:function(){var u=this._getSVGLeftTopOffsets(),h=this._getSVGTextAndBg(u.textTop,u.textLeft);return this._wrapSVGTextAndBg(h)},toSVG:function(u){return this._createBaseSVGMarkup(this._toSVG(),{reviver:u,noStyle:!0,withShadow:!0})},_getSVGLeftTopOffsets:function(){return{textLeft:-this.width/2,textTop:-this.height/2,lineTop:this.getHeightOfLine(0)}},_wrapSVGTextAndBg:function(u){var h=!0,c=this.getSvgTextDecoration(this);return[u.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+'" ':"",c?'text-decoration="'+c+'" ':"",'style="',this.getSvgStyles(h),'"',this.addPaintOrder()," >",u.textSpans.join(""),`</text>
|
||
`]},_getSVGTextAndBg:function(u,h){var c=[],f=[],s=u,d;this._setSVGBg(f);for(var v=0,g=this._textLines.length;v<g;v++)d=this._getLineLeftOffset(v),(this.textBackgroundColor||this.styleHas("textBackgroundColor",v))&&this._setSVGTextLineBg(f,v,h+d,s),this._setSVGTextLineText(c,v,h+d,s),s+=this.getHeightOfLine(v);return{textSpans:c,textBgRects:f}},_createTextCharSpan:function(u,h,c,f){var s=u!==u.trim()||u.match(o),d=this.getSvgSpanStyles(h,s),v=d?'style="'+d+'"':"",g=h.deltaY,y="",b=t.Object.NUM_FRACTION_DIGITS;return g&&(y=' dy="'+a(g,b)+'" '),['<tspan x="',a(c,b),'" y="',a(f,b),'" ',y,v,">",t.util.string.escapeXml(u),"</tspan>"].join("")},_setSVGTextLineText:function(u,h,c,f){var s=this.getHeightOfLine(h),d=this.textAlign.indexOf("justify")!==-1,v,g,y="",b,_,w=0,S=this._textLines[h],x;f+=s*(1-this._fontSizeFraction)/this.lineHeight;for(var T=0,O=S.length-1;T<=O;T++)x=T===O||this.charSpacing,y+=S[T],b=this.__charBounds[h][T],w===0?(c+=b.kernedWidth-b.width,w+=b.width):w+=b.kernedWidth,d&&!x&&this._reSpaceAndTab.test(S[T])&&(x=!0),x||(v=v||this.getCompleteStyleDeclaration(h,T),g=this.getCompleteStyleDeclaration(h,T+1),x=t.util.hasStyleChanged(v,g,!0)),x&&(_=this._getStyleDeclaration(h,T)||{},u.push(this._createTextCharSpan(y,_,c,f)),y="",v=g,c+=w,w=0)},_pushTextBgRect:function(u,h,c,f,s,d){var v=t.Object.NUM_FRACTION_DIGITS;u.push(" <rect ",this._getFillAttributes(h),' x="',a(c,v),'" y="',a(f,v),'" width="',a(s,v),'" height="',a(d,v),`"></rect>
|
||
`)},_setSVGTextLineBg:function(u,h,c,f){for(var s=this._textLines[h],d=this.getHeightOfLine(h)/this.lineHeight,v=0,g=0,y,b,_=this.getValueOfPropertyAt(h,0,"textBackgroundColor"),w=0,S=s.length;w<S;w++)y=this.__charBounds[h][w],b=this.getValueOfPropertyAt(h,w,"textBackgroundColor"),b!==_?(_&&this._pushTextBgRect(u,_,c+g,f,v,d),g=y.left,v=y.width,_=b):v+=y.kernedWidth;b&&this._pushTextBgRect(u,b,c+g,f,v,d)},_getFillAttributes:function(u){var h=u&&typeof u=="string"?new t.Color(u):"";return!h||!h.getSource()||h.getAlpha()===1?'fill="'+u+'"':'opacity="'+h.getAlpha()+'" fill="'+h.setAlpha(1).toRgb()+'"'},_getSVGLineTopOffset:function(u){for(var h=0,c=0,f=0;f<u;f++)h+=this.getHeightOfLine(f);return c=this.getHeightOfLine(f),{lineTop:h,offset:(this._fontSizeMult-this._fontSizeFraction)*c/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(u){var h=t.Object.prototype.getSvgStyles.call(this,u);return h+" white-space: pre;"}})}(),function(a){var o=a.fabric||(a.fabric={});o.Textbox=o.util.createClass(o.IText,o.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:o.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(u){for(var h=0,c=0,f=0,s={},d=0;d<u.graphemeLines.length;d++)u.graphemeText[f]===`
|
||
`&&d>0?(c=0,f++,h++):!this.splitByGrapheme&&this._reSpaceAndTab.test(u.graphemeText[f])&&d>0&&(c++,f++),s[d]={line:h,offset:c},f+=u.graphemeLines[d].length,c+=u.graphemeLines[d].length;return s},styleHas:function(u,h){if(this._styleMap&&!this.isWrapping){var c=this._styleMap[h];c&&(h=c.line)}return o.Text.prototype.styleHas.call(this,u,h)},isEmptyStyles:function(u){if(!this.styles)return!0;var h=0,c=u+1,f,s,d=!1,v=this._styleMap[u],g=this._styleMap[u+1];v&&(u=v.line,h=v.offset),g&&(c=g.line,d=c===u,f=g.offset),s=typeof u>"u"?this.styles:{line:this.styles[u]};for(var y in s)for(var b in s[y])if(b>=h&&(!d||b<f))for(var _ in s[y][b])return!1;return!0},_getStyleDeclaration:function(u,h){if(this._styleMap&&!this.isWrapping){var c=this._styleMap[u];if(!c)return null;u=c.line,h=c.offset+h}return this.callSuper("_getStyleDeclaration",u,h)},_setStyleDeclaration:function(u,h,c){var f=this._styleMap[u];u=f.line,h=f.offset+h,this.styles[u][h]=c},_deleteStyleDeclaration:function(u,h){var c=this._styleMap[u];u=c.line,h=c.offset+h,delete this.styles[u][h]},_getLineStyle:function(u){var h=this._styleMap[u];return!!this.styles[h.line]},_setLineStyle:function(u){var h=this._styleMap[u];this.styles[h.line]={}},_wrapText:function(u,h){var c=[],f;for(this.isWrapping=!0,f=0;f<u.length;f++)c=c.concat(this._wrapLine(u[f],f,h));return this.isWrapping=!1,c},_measureWord:function(u,h,c){var f=0,s,d=!0;c=c||0;for(var v=0,g=u.length;v<g;v++){var y=this._getGraphemeBox(u[v],h,v+c,s,d);f+=y.kernedWidth,s=u[v]}return f},_wrapLine:function(u,h,c,$){var s=0,d=this.splitByGrapheme,v=[],g=[],y=d?o.util.string.graphemeSplit(u):u.split(this._wordJoiners),b="",_=0,w=d?"":" ",S=0,x=0,T=0,O=!0,A=this._getWidthOfCharSpacing(),$=$||0;y.length===0&&y.push([]),c-=$;for(var j=0;j<y.length;j++)b=d?y[j]:o.util.string.graphemeSplit(y[j]),S=this._measureWord(b,h,_),_+=b.length,s+=x+S-A,s>c&&!O?(v.push(g),g=[],s=S,O=!0):s+=A,!O&&!d&&g.push(w),g=g.concat(b),x=d?0:this._measureWord([w],h,_),_++,O=!1,S>T&&(T=S);return j&&v.push(g),T+$>this.dynamicMinWidth&&(this.dynamicMinWidth=T-A+$),v},isEndOfWrapping:function(u){return!this._styleMap[u+1]||this._styleMap[u+1].line!==this._styleMap[u].line},missingNewlineOffset:function(u){return this.splitByGrapheme?this.isEndOfWrapping(u)?1:0:1},_splitTextIntoLines:function(u){for(var h=o.Text.prototype._splitTextIntoLines.call(this,u),c=this._wrapText(h.lines,this.width),f=new Array(c.length),s=0;s<c.length;s++)f[s]=c[s].join("");return h.lines=f,h.graphemeLines=c,h},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var u={};for(var h in this._styleMap)this._textLines[h]&&(u[this._styleMap[h].line]=1);for(var h in this.styles)u[h]||delete this.styles[h]},toObject:function(u){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(u))}}),o.Textbox.fromObject=function(u,h){var c=o.util.stylesFromArray(u.styles,u.text),f=Object.assign({},u,{styles:c});return o.Object._fromObject("Textbox",f,h,"text")}}(e),function(){var a=t.controlsUtils,o=a.scaleSkewCursorStyleHandler,u=a.scaleCursorStyleHandler,h=a.scalingEqually,c=a.scalingYOrSkewingX,f=a.scalingXOrSkewingY,s=a.scaleOrSkewActionName,d=t.Object.prototype.controls;if(d.ml=new t.Control({x:-.5,y:0,cursorStyleHandler:o,actionHandler:f,getActionName:s}),d.mr=new t.Control({x:.5,y:0,cursorStyleHandler:o,actionHandler:f,getActionName:s}),d.mb=new t.Control({x:0,y:.5,cursorStyleHandler:o,actionHandler:c,getActionName:s}),d.mt=new t.Control({x:0,y:-.5,cursorStyleHandler:o,actionHandler:c,getActionName:s}),d.tl=new t.Control({x:-.5,y:-.5,cursorStyleHandler:u,actionHandler:h}),d.tr=new t.Control({x:.5,y:-.5,cursorStyleHandler:u,actionHandler:h}),d.bl=new t.Control({x:-.5,y:.5,cursorStyleHandler:u,actionHandler:h}),d.br=new t.Control({x:.5,y:.5,cursorStyleHandler:u,actionHandler:h}),d.mtr=new t.Control({x:0,y:-.5,actionHandler:a.rotationWithSnapping,cursorStyleHandler:a.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:a.changeWidth,cursorStyleHandler:o,actionName:"resizing"}),v.ml=new t.Control({x:-.5,y:0,actionHandler:a.changeWidth,cursorStyleHandler:o,actionName:"resizing"})}}()})(Xn);const ds=ya("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=se({...e(),maskPathColor:"white",maskBackgroundColor:"black"}),n=se({...e(),maskPathColor:"black",maskBackgroundColor:"white"}),r=ee(()=>kn().generatorType==="Inpainting"),i=ee(()=>r.value?t.value:n.value),l=ee(()=>kn().currentImageProps),m=ee({get:()=>i.value.drawing&&!r.value,set:z=>i.value.drawing=z}),a=se(512),o=se(512),u=se(!1),h=se(30),c=se(!1),f=new Xn.fabric.Circle({radius:h.value,left:0,originX:"center",originY:"center",angle:0,fill:"",stroke:"red",strokeWidth:3,opacity:0}),s=se("Erase"),d=se("rgb(0, 0, 0, 1)");function v(){!i.value.canvas||i.value.canvas.renderAll()}function g(){u.value=!u.value,s.value=u.value?"Draw":"Erase"}function y(z=null){!i.value.canvas||(i.value.brush=i.value.canvas.freeDrawingBrush,i.value.brush.color=z||i.value.brush.color,i.value.brush.width=h.value)}async function b({history:z,erase:M=!1,draw:L=!1}={}){if(!z||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;z.path.selectable=!1,z.path.opacity=1,z.drawPath=await Q(z.path),z.visibleDrawPath=await Q(z.path),M?(z.visibleDrawPath.globalCompositeOperation="destination-out",z.drawPath.stroke=i.value.maskBackgroundColor):(z.visibleDrawPath.globalCompositeOperation="source-over",z.drawPath.stroke=L?d.value:i.value.maskPathColor);let J=await Q(z.drawPath);J=J.scale(i.value.imageScale),J.left=J.left+z.drawPath.left*(i.value.imageScale-1),J.top=J.top+z.drawPath.top*(i.value.imageScale-1),L?(i.value.imageLayer.add(J),i.value.visibleImageLayer.addWithUpdate(z.visibleDrawPath)):(i.value.drawLayer.add(J),i.value.visibleDrawLayer.addWithUpdate(z.visibleDrawPath)),i.value.canvas.remove(z.path),v()}function _(){if(i.value.undoHistory.length===0)return;const z=i.value.undoHistory.pop();b({history:z,erase:!1,draw:m.value}),i.value.redoHistory.push(z)}function w(){if(i.value.redoHistory.length===0||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;const z=i.value.redoHistory.pop();i.value.undoHistory.push(z),m.value?(i.value.imageLayer.remove(z.drawPath),i.value.visibleImageLayer.remove(z.visibleDrawPath)):(i.value.drawLayer.remove(z.drawPath),i.value.visibleDrawLayer.remove(z.visibleDrawPath)),delete z.drawPath,delete z.visibleDrawPath,v()}function S(z){i.value.canvas=new Xn.fabric.Canvas(z,{isDrawingMode:!1,width:a.value,height:o.value,backgroundColor:"white"}),i.value.canvas.selection=!1,i.value.canvas.freeDrawingCursor="crosshair",y(i.value.maskPathColor),i.value.canvas.on("mouse:move",I),i.value.canvas.on("path:created",le),v()}function x(z,M,L,J){let U=J,P=J;return M>L?(z.scaleToWidth(J),U=J*(o.value/a.value)):(z.scaleToHeight(J),P=J*(a.value/o.value)),{newHeight:U,newWidth:P}}function T(z){const M=kn();if(E(),z.selectable=!1,a.value=z.width,o.value=z.height,a.value>M.maxDimensions||o.value>M.maxDimensions){const{newHeight:J,newWidth:U}=x(z,a.value,o.value,M.maxDimensions);a.value=U,o.value=J}if(a.value<M.minDimensions||o.value<M.minDimensions){const{newHeight:J,newWidth:U}=x(z,a.value,o.value,M.minDimensions);a.value=U,o.value=J}const L=512;z.cloneAsImage(J=>{a.value>o.value?i.value.imageScale=a.value/L:i.value.imageScale=o.value/L,i.value.imageLayer=R({image:J,layerHeight:J.height,layerWidth:J.width})}),z.cloneAsImage(J=>{if(!i.value.canvas)return;if(a.value!==L||o.value!==L){const{newHeight:q,newWidth:Z}=x(J,a.value,o.value,L);a.value=Z,o.value=q}i.value.canvas.setWidth(a.value),i.value.canvas.setHeight(o.value),i.value.canvas.isDrawingMode=!0,i.value.visibleDrawLayer=F(),i.value.visibleImageLayer=F({image:J}),i.value.drawLayer=R();const U=a.value*i.value.imageScale,P=o.value*i.value.imageScale;M.params.width=U-U%64,M.params.height=P-P%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),c.value=!0,$(),O()})}function O(){const z=kn();if(!i.value.imageLayer||!i.value.drawLayer)return;const M=i.value.imageLayer.getCenter().left-z.params.width/2,L=z.params.width,J=i.value.imageLayer.getCenter().top-z.params.height/2,U=z.params.height,P={format:"jpeg",quality:1,left:M,top:J,width:L,height:U};l.value.sourceImage=i.value.imageLayer.toDataURL(P),l.value.maskImage=i.value.redoHistory.length===0||m.value?void 0:i.value.drawLayer.toDataURL(P).split(",")[1]}let A;function $(){if(!i.value.canvas)return;const z=kn();i.value.cropPreviewLayer&&(i.value.canvas.remove(i.value.cropPreviewLayer),i.value.cropPreviewLayer=void 0),c.value&&(i.value.cropPreviewLayer=F({layerWidth:z.params.width/i.value.imageScale,layerHeight:z.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),A&&clearTimeout(A),A=setTimeout(()=>{c.value=!1,$(),A=void 0},5e3))}function j(z,M){const L="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=";Xn.fabric.Image.fromURL(L,J=>{J.set({height:z,width:M});const U=J.toDataURL({format:"png"});l.value.sourceImage=U,m.value=!0,T(J)})}function R({image:z,layerWidth:M,layerHeight:L}={}){const J=new Xn.fabric.Canvas(null);return J.selection=!1,J.backgroundColor=i.value.maskBackgroundColor,J.setHeight(L||o.value),J.setWidth(M||a.value),z&&J.add(z),J}function F({image:z,layerWidth:M,layerHeight:L,fill:J,abosolute:U}={}){const P=z||new Xn.fabric.Rect({width:M||a.value,height:L||o.value,left:0,top:0,fill:J||"transparent",absolutePositioned:U||!0,selectable:!1});return new Xn.fabric.Group([P],{selectable:!1,absolutePositioned:U||!0})}function E(){!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 W(){if(!!i.value.canvas){if(i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),m.value){const z=kn();j(z.params.height||512,z.params.width||512)}i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.visibleDrawLayer=F(),i.value.drawLayer=R(),i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleDrawLayer)}}function te(){var M;O();const z=document.createElement("a");if(m.value){z.href="data:image/png;base64,"+((M=l.value.sourceImage)==null?void 0:M.split(",")[1]),z.download="image_drawing.png",z.click();return}z.href="data:image/png;base64,"+l.value.maskImage,z.download="image_mask.png",z.click()}async function Q(z){return new Promise((M,L)=>{try{z.clone(M)}catch(J){L(J)}})}async function le(z){const M={path:z.path};b({history:M,erase:u.value,draw:m.value}),i.value.redoHistory.push(M)}function I(z){if(!i.value.canvas)return;const M=i.value.canvas.getPointer(z.e);f.left=M.x,f.top=M.y,f.opacity=.8,u.value?(f.set("strokeWidth",3),f.set("fill",""),y("red")):(f.set("strokeWidth",0),m.value?(f.set("fill",d.value),y(d.value)):(f.set("fill","white"),y("white"))),f.set("radius",h.value/2),v()}return{showCropPreview:c,erasing:u,switchToolText:s,brushSize:h,drawColor:d,drawing:m,imageProps:i,updateCropPreview:$,createNewCanvas:S,downloadMask:te,resetCanvas:E,resetDrawing:W,flipErase:g,undoAction:w,redoAction:_,newImage:T,newBlankImage:j,setBrush:y,saveImages:O}});const gU={},vU={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},mU=oe("g",{fill:"none"},[oe("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),yU=[mU];function bU(e,t){return V(),ce("svg",vU,yU)}const _U=Wt(gU,[["render",bU]]),wU={},CU={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},SU=oe("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),xU=[SU];function TU(e,t){return V(),ce("svg",CU,xU)}const kU=Wt(wU,[["render",TU]]);async function EU(e,t){const n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image;return i.src=e,await new Promise(m=>i.onload=m),n.width=i.width,n.height=i.height,r==null||r.drawImage(i,0,0),n.toDataURL(t)}async function OU(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 EU(e,r)).split(",")[1]),l=new Uint8Array(i.length);for(let m=0;m<i.length;++m)l[m]=i.charCodeAt(m);return l}async function hs(e,t){const n=t!=null?t:e.split(";base64,")[0].split(":")[1],r=await OU(e,t);return new Blob([r],{type:n})}function t2(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=i=>n(i),r.readAsDataURL(e)})}const Jp=e=>(Kr("data-v-d200c279"),e=e(),Gr(),e),AU=Jp(()=>oe("div",null,[Ne("Drop file here OR "),oe("em",null,"click to upload")],-1)),PU={key:0},IU=Jp(()=>oe("div",{class:"center-horizontal",style:{"margin-top":"5px"}},"OR",-1)),MU={class:"canvas-container"},LU=Jp(()=>oe("canvas",{id:"canvas"},null,-1)),RU={class:"action-buttons",style:{left:"10px",right:"unset"}},DU={class:"action-buttons"},$U=Te({__name:"CustomCanvas",setup(e){const t=kn(),n=Dt(),r=ds(),i=se();async function l(a){if(!a.raw.type.includes("image")){n.raiseError("Uploaded file needs to be a image!",!1),i.value.clearFiles();return}const o=await t2(a.raw);t.currentImageProps.sourceImage=o,r.drawing=!1,Xn.fabric.Image.fromURL(o,r.newImage)}function m(){t.currentImageProps.sourceImage="",r.resetCanvas()}return qe(()=>{r.createNewCanvas("canvas"),t.currentImageProps.sourceImage&&Xn.fabric.Image.fromURL(t.currentImageProps.sourceImage,r.newImage)}),(a,o)=>(V(),ce(ze,null,[C(t).currentImageProps.sourceImage?be("",!0):(V(),_e(C(Op),{key:0,drag:"",ref_key:"upload",ref:i,"auto-upload":!1,onChange:l,limit:1,multiple:""},{tip:he(()=>[C(t).generatorType==="Img2Img"?(V(),ce("div",PU,[IU,oe("div",{class:"center-both",style:{cursor:"pointer","text-decoration":"underline","font-size":"1rem"},onClick:o[0]||(o[0]=u=>C(r).newBlankImage(C(t).params.height||512,C(t).params.width||512))},[ue(C(Re),{size:20,style:{"margin-right":"2px"}},{default:he(()=>[ue(kU)]),_:1}),Ne("draw something")])])):be("",!0)]),default:he(()=>[ue(C(Re),{size:100},{default:he(()=>[ue(C(Yh))]),_:1}),AU]),_:1},512)),pt(oe("div",null,[oe("div",MU,[LU,oe("div",RU,[ue(C(dt),{onClick:o[1]||(o[1]=u=>C(r).undoAction()),icon:C(Kb),plain:"",disabled:C(r).imageProps.redoHistory.length===0},null,8,["icon","disabled"]),ue(C(dt),{onClick:o[2]||(o[2]=u=>C(r).redoAction()),icon:C(Gb),plain:"",disabled:C(r).imageProps.undoHistory.length===0},null,8,["icon","disabled"])]),oe("div",DU,[ue(C(dt),{onClick:o[3]||(o[3]=u=>C(r).resetDrawing()),icon:C(yr),plain:""},null,8,["icon"]),ue(C(dt),{onClick:m,icon:C(_c),plain:""},null,8,["icon"]),ue(C(dt),{onClick:o[4]||(o[4]=u=>C(r).downloadMask()),icon:C(Os),plain:""},null,8,["icon"]),ue(C(dt),{onClick:o[5]||(o[5]=u=>C(r).flipErase()),icon:C(r).erasing?C(yE):_U,plain:""},null,8,["icon"]),C(r).drawing?(V(),_e(C(Q$),{key:0,modelValue:C(r).drawColor,"onUpdate:modelValue":o[6]||(o[6]=u=>C(r).drawColor=u),"show-alpha":""},null,8,["modelValue"])):be("",!0)]),ue(C(Cp),{"label-width":"110px",style:{"margin-top":"10px"}},{default:he(()=>[ue(lr,{style:{"margin-bottom":"5px"},label:"Brush Size",prop:"brushSize",modelValue:C(r).brushSize,"onUpdate:modelValue":o[7]||(o[7]=u=>C(r).brushSize=u),min:10,max:100,step:10,change:C(r).setBrush},null,8,["modelValue","change"])]),_:1})])],512),[[Lt,C(t).currentImageProps.sourceImage]])],64))}});const T0=Wt($U,[["__scopeId","data-v-d200c279"]]),BU={class:"centerIcons"},FU={class:"stackedIcons"},zU=Te({__name:"StackedIcon",props:{iconOne:null,iconTwo:null,size:null},setup(e){const t=e;return tx(n=>({"2ad037ca":e.size+"px"})),(n,r)=>(V(),ce("div",BU,[oe("div",FU,[ue(C(Re),{class:"firstIcon",size:e.size},{default:he(()=>[(V(),_e(yt(t.iconOne)))]),_:1},8,["size"]),ue(C(Re),{class:"secondIcon",size:e.size},{default:he(()=>[(V(),_e(yt(t.iconTwo)))]),_:1},8,["size"])])]))}});const NU=Wt(zU,[["__scopeId","data-v-74586a39"]]),jU={key:1,style:{width:"40px"}},Of=Te({__name:"GeneratorMenuItem",props:{index:null,iconOne:null,iconTwo:null,isMobile:{type:Boolean}},setup(e){const t=e;return(n,r)=>(V(),_e(C(Sr),{content:e.index,placement:e.isMobile?"bottom":"right",enterable:!1,"hide-after":100},{default:he(()=>[ue(C(Tp),{index:e.index,style:{height:"60px",display:"flex","justify-content":"center"}},{default:he(()=>[e.iconTwo?(V(),_e(NU,{key:0,iconOne:e.iconOne,iconTwo:e.iconTwo,size:40},null,8,["iconOne","iconTwo"])):(V(),ce("div",jU,[ue(C(Re),{style:{width:"35px"},size:40},{default:he(()=>[(V(),_e(yt(t.iconOne)))]),_:1})]))]),_:1},8,["index"])]),_:1},8,["content","placement"]))}});/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const VU=4,k0=0,E0=1,HU=2;function Aa(e){let t=e.length;for(;--t>=0;)e[t]=0}const UU=0,n2=1,WU=2,YU=3,XU=258,Qp=29,_l=256,Gs=_l+1+Qp,ea=30,eg=19,r2=2*Gs+1,to=15,Af=16,KU=7,tg=256,i2=16,o2=17,a2=18,ah=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]),Cu=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]),GU=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),s2=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),qU=512,Rr=new Array((Gs+2)*2);Aa(Rr);const ps=new Array(ea*2);Aa(ps);const qs=new Array(qU);Aa(qs);const Zs=new Array(XU-YU+1);Aa(Zs);const ng=new Array(Qp);Aa(ng);const ec=new Array(ea);Aa(ec);function Pf(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 l2,u2,c2;function If(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const f2=e=>e<256?qs[e]:qs[256+(e>>>7)],Js=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},pn=(e,t,n)=>{e.bi_valid>Af-n?(e.bi_buf|=t<<e.bi_valid&65535,Js(e,e.bi_buf),e.bi_buf=t>>Af-e.bi_valid,e.bi_valid+=n-Af):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},dr=(e,t,n)=>{pn(e,n[t*2],n[t*2+1])},d2=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},ZU=e=>{e.bi_valid===16?(Js(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)},JU=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,l=t.stat_desc.has_stree,m=t.stat_desc.extra_bits,a=t.stat_desc.extra_base,o=t.stat_desc.max_length;let u,h,c,f,s,d,v=0;for(f=0;f<=to;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<r2;u++)h=e.heap[u],f=n[n[h*2+1]*2+1]+1,f>o&&(f=o,v++),n[h*2+1]=f,!(h>r)&&(e.bl_count[f]++,s=0,h>=a&&(s=m[h-a]),d=n[h*2],e.opt_len+=d*(f+s),l&&(e.static_len+=d*(i[h*2+1]+s)));if(v!==0){do{for(f=o-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[o]--,v-=2}while(v>0);for(f=o;f!==0;f--)for(h=e.bl_count[f];h!==0;)c=e.heap[--u],!(c>r)&&(n[c*2+1]!==f&&(e.opt_len+=(f-n[c*2+1])*n[c*2],n[c*2+1]=f),h--)}},h2=(e,t,n)=>{const r=new Array(to+1);let i=0,l,m;for(l=1;l<=to;l++)i=i+n[l-1]<<1,r[l]=i;for(m=0;m<=t;m++){let a=e[m*2+1];a!==0&&(e[m*2]=d2(r[a]++,a))}},QU=()=>{let e,t,n,r,i;const l=new Array(to+1);for(n=0,r=0;r<Qp-1;r++)for(ng[r]=n,e=0;e<1<<ah[r];e++)Zs[n++]=r;for(Zs[n-1]=r,i=0,r=0;r<16;r++)for(ec[r]=i,e=0;e<1<<Cu[r];e++)qs[i++]=r;for(i>>=7;r<ea;r++)for(ec[r]=i<<7,e=0;e<1<<Cu[r]-7;e++)qs[256+i++]=r;for(t=0;t<=to;t++)l[t]=0;for(e=0;e<=143;)Rr[e*2+1]=8,e++,l[8]++;for(;e<=255;)Rr[e*2+1]=9,e++,l[9]++;for(;e<=279;)Rr[e*2+1]=7,e++,l[7]++;for(;e<=287;)Rr[e*2+1]=8,e++,l[8]++;for(h2(Rr,Gs+1,l),e=0;e<ea;e++)ps[e*2+1]=5,ps[e*2]=d2(e,5);l2=new Pf(Rr,ah,_l+1,Gs,to),u2=new Pf(ps,Cu,0,ea,to),c2=new Pf(new Array(0),GU,0,eg,KU)},p2=e=>{let t;for(t=0;t<Gs;t++)e.dyn_ltree[t*2]=0;for(t=0;t<ea;t++)e.dyn_dtree[t*2]=0;for(t=0;t<eg;t++)e.bl_tree[t*2]=0;e.dyn_ltree[tg*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},g2=e=>{e.bi_valid>8?Js(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},O0=(e,t,n,r)=>{const i=t*2,l=n*2;return e[i]<e[l]||e[i]===e[l]&&r[t]<=r[n]},Mf=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&O0(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!O0(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},A0=(e,t,n)=>{let r,i,l=0,m,a;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?dr(e,i,t):(m=Zs[i],dr(e,m+_l+1,t),a=ah[m],a!==0&&(i-=ng[m],pn(e,i,a)),r--,m=f2(r),dr(e,m,n),a=Cu[m],a!==0&&(r-=ec[m],pn(e,r,a)));while(l<e.sym_next);dr(e,tg,t)},sh=(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 m,a,o=-1,u;for(e.heap_len=0,e.heap_max=r2,m=0;m<l;m++)n[m*2]!==0?(e.heap[++e.heap_len]=o=m,e.depth[m]=0):n[m*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=o<2?++o:0,n[u*2]=1,e.depth[u]=0,e.opt_len--,i&&(e.static_len-=r[u*2+1]);for(t.max_code=o,m=e.heap_len>>1;m>=1;m--)Mf(e,n,m);u=l;do m=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Mf(e,n,1),a=e.heap[1],e.heap[--e.heap_max]=m,e.heap[--e.heap_max]=a,n[u*2]=n[m*2]+n[a*2],e.depth[u]=(e.depth[m]>=e.depth[a]?e.depth[m]:e.depth[a])+1,n[m*2+1]=n[a*2+1]=u,e.heap[1]=u++,Mf(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],JU(e,t),h2(n,o,e.bl_count)},P0=(e,t,n)=>{let r,i=-1,l,m=t[0*2+1],a=0,o=7,u=4;for(m===0&&(o=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)l=m,m=t[(r+1)*2+1],!(++a<o&&l===m)&&(a<u?e.bl_tree[l*2]+=a:l!==0?(l!==i&&e.bl_tree[l*2]++,e.bl_tree[i2*2]++):a<=10?e.bl_tree[o2*2]++:e.bl_tree[a2*2]++,a=0,i=l,m===0?(o=138,u=3):l===m?(o=6,u=3):(o=7,u=4))},I0=(e,t,n)=>{let r,i=-1,l,m=t[0*2+1],a=0,o=7,u=4;for(m===0&&(o=138,u=3),r=0;r<=n;r++)if(l=m,m=t[(r+1)*2+1],!(++a<o&&l===m)){if(a<u)do dr(e,l,e.bl_tree);while(--a!==0);else l!==0?(l!==i&&(dr(e,l,e.bl_tree),a--),dr(e,i2,e.bl_tree),pn(e,a-3,2)):a<=10?(dr(e,o2,e.bl_tree),pn(e,a-3,3)):(dr(e,a2,e.bl_tree),pn(e,a-11,7));a=0,i=l,m===0?(o=138,u=3):l===m?(o=6,u=3):(o=7,u=4)}},eW=e=>{let t;for(P0(e,e.dyn_ltree,e.l_desc.max_code),P0(e,e.dyn_dtree,e.d_desc.max_code),sh(e,e.bl_desc),t=eg-1;t>=3&&e.bl_tree[s2[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},tW=(e,t,n,r)=>{let i;for(pn(e,t-257,5),pn(e,n-1,5),pn(e,r-4,4),i=0;i<r;i++)pn(e,e.bl_tree[s2[i]*2+1],3);I0(e,e.dyn_ltree,t-1),I0(e,e.dyn_dtree,n-1)},nW=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return k0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return E0;for(n=32;n<_l;n++)if(e.dyn_ltree[n*2]!==0)return E0;return k0};let M0=!1;const rW=e=>{M0||(QU(),M0=!0),e.l_desc=new If(e.dyn_ltree,l2),e.d_desc=new If(e.dyn_dtree,u2),e.bl_desc=new If(e.bl_tree,c2),e.bi_buf=0,e.bi_valid=0,p2(e)},v2=(e,t,n,r)=>{pn(e,(UU<<1)+(r?1:0),3),g2(e),Js(e,n),Js(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},iW=e=>{pn(e,n2<<1,3),dr(e,tg,Rr),ZU(e)},oW=(e,t,n,r)=>{let i,l,m=0;e.level>0?(e.strm.data_type===HU&&(e.strm.data_type=nW(e)),sh(e,e.l_desc),sh(e,e.d_desc),m=eW(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?v2(e,t,n,r):e.strategy===VU||l===i?(pn(e,(n2<<1)+(r?1:0),3),A0(e,Rr,ps)):(pn(e,(WU<<1)+(r?1:0),3),tW(e,e.l_desc.max_code+1,e.d_desc.max_code+1,m+1),A0(e,e.dyn_ltree,e.dyn_dtree)),p2(e),r&&g2(e)},aW=(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[(Zs[n]+_l+1)*2]++,e.dyn_dtree[f2(t)*2]++),e.sym_next===e.sym_end);var sW=rW,lW=v2,uW=oW,cW=aW,fW=iW,dW={_tr_init:sW,_tr_stored_block:lW,_tr_flush_block:uW,_tr_tally:cW,_tr_align:fW};const hW=(e,t,n,r)=>{let i=e&65535|0,l=e>>>16&65535|0,m=0;for(;n!==0;){m=n>2e3?2e3:n,n-=m;do i=i+t[r++]|0,l=l+i|0;while(--m);i%=65521,l%=65521}return i|l<<16|0};var Qs=hW;const pW=()=>{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},gW=new Uint32Array(pW()),vW=(e,t,n,r)=>{const i=gW,l=r+n;e^=-1;for(let m=r;m<l;m++)e=e>>>8^i[(e^t[m])&255];return e^-1};var jt=vW,yo={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"},Pa={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:mW,_tr_stored_block:lh,_tr_flush_block:yW,_tr_tally:wi,_tr_align:bW}=dW,{Z_NO_FLUSH:Ci,Z_PARTIAL_FLUSH:_W,Z_FULL_FLUSH:wW,Z_FINISH:$n,Z_BLOCK:L0,Z_OK:Yt,Z_STREAM_END:R0,Z_STREAM_ERROR:vr,Z_DATA_ERROR:CW,Z_BUF_ERROR:Lf,Z_DEFAULT_COMPRESSION:SW,Z_FILTERED:xW,Z_HUFFMAN_ONLY:Gl,Z_RLE:TW,Z_FIXED:kW,Z_DEFAULT_STRATEGY:EW,Z_UNKNOWN:OW,Z_DEFLATED:$c}=Pa,AW=9,PW=15,IW=8,MW=29,LW=256,uh=LW+1+MW,RW=30,DW=19,$W=2*uh+1,BW=15,nt=3,mi=258,mr=mi+nt+1,FW=32,ga=42,rg=57,ch=69,fh=73,dh=91,hh=103,no=113,Ka=666,ln=1,Ia=2,bo=3,Ma=4,zW=3,ro=(e,t)=>(e.msg=yo[t],t),D0=e=>e*2-(e>4?9:0),pi=e=>{let t=e.length;for(;--t>=0;)e[t]=0},NW=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 jW=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,Si=jW;const Sn=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))},On=(e,t)=>{yW(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Sn(e.strm)},ct=(e,t)=>{e.pending_buf[e.pending++]=t},Va=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},ph=(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=Qs(e.adler,t,i,n):e.state.wrap===2&&(e.adler=jt(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},m2=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,l,m=e.prev_length,a=e.nice_match;const o=e.strstart>e.w_size-mr?e.strstart-(e.w_size-mr):0,u=e.window,h=e.w_mask,c=e.prev,f=e.strstart+mi;let s=u[r+m-1],d=u[r+m];e.prev_length>=e.good_match&&(n>>=2),a>e.lookahead&&(a=e.lookahead);do if(i=t,!(u[i+m]!==d||u[i+m-1]!==s||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&r<f);if(l=mi-(f-r),r=f-mi,l>m){if(e.match_start=t,m=l,l>=a)break;s=u[r+m-1],d=u[r+m]}}while((t=c[t&h])>o&&--n!==0);return m<=e.lookahead?m:e.lookahead},va=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-mr)&&(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),NW(e),r+=t),e.strm.avail_in===0)break;if(n=ph(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=nt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Si(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Si(e,e.ins_h,e.window[i+nt-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<nt)););}while(e.lookahead<mr&&e.strm.avail_in!==0)},y2=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,l,m=0,a=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!==$n||t===Ci||r!==i+e.strm.avail_in)))break;m=t===$n&&r===i+e.strm.avail_in?1:0,lh(e,0,0,m),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,Sn(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&&(ph(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(m===0);return a-=e.strm.avail_in,a&&(a>=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<=a&&(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-a,e.strm.next_in),e.strstart),e.strstart+=a,e.insert+=a>e.w_size-e.insert?e.w_size-e.insert:a),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),m?Ma:t!==Ci&&t!==$n&&e.strm.avail_in===0&&e.strstart===e.block_start?Ia:(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&&(ph(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===$n)&&t!==Ci&&e.strm.avail_in===0&&i<=l)&&(r=i>l?l:i,m=t===$n&&e.strm.avail_in===0&&r===i?1:0,lh(e,e.block_start,r,m),e.block_start+=r,Sn(e.strm)),m?bo:ln)},Rf=(e,t)=>{let n,r;for(;;){if(e.lookahead<mr){if(va(e),e.lookahead<mr&&t===Ci)return ln;if(e.lookahead===0)break}if(n=0,e.lookahead>=nt&&(e.ins_h=Si(e,e.ins_h,e.window[e.strstart+nt-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-mr&&(e.match_length=m2(e,n)),e.match_length>=nt)if(r=wi(e,e.strstart-e.match_start,e.match_length-nt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=nt){e.match_length--;do e.strstart++,e.ins_h=Si(e,e.ins_h,e.window[e.strstart+nt-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=Si(e,e.ins_h,e.window[e.strstart+1]);else r=wi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(On(e,!1),e.strm.avail_out===0))return ln}return e.insert=e.strstart<nt-1?e.strstart:nt-1,t===$n?(On(e,!0),e.strm.avail_out===0?bo:Ma):e.sym_next&&(On(e,!1),e.strm.avail_out===0)?ln:Ia},No=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<mr){if(va(e),e.lookahead<mr&&t===Ci)return ln;if(e.lookahead===0)break}if(n=0,e.lookahead>=nt&&(e.ins_h=Si(e,e.ins_h,e.window[e.strstart+nt-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=nt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-mr&&(e.match_length=m2(e,n),e.match_length<=5&&(e.strategy===xW||e.match_length===nt&&e.strstart-e.match_start>4096)&&(e.match_length=nt-1)),e.prev_length>=nt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-nt,r=wi(e,e.strstart-1-e.prev_match,e.prev_length-nt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Si(e,e.ins_h,e.window[e.strstart+nt-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=nt-1,e.strstart++,r&&(On(e,!1),e.strm.avail_out===0))return ln}else if(e.match_available){if(r=wi(e,0,e.window[e.strstart-1]),r&&On(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return ln}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=wi(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<nt-1?e.strstart:nt-1,t===$n?(On(e,!0),e.strm.avail_out===0?bo:Ma):e.sym_next&&(On(e,!1),e.strm.avail_out===0)?ln:Ia},VW=(e,t)=>{let n,r,i,l;const m=e.window;for(;;){if(e.lookahead<=mi){if(va(e),e.lookahead<=mi&&t===Ci)return ln;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=nt&&e.strstart>0&&(i=e.strstart-1,r=m[i],r===m[++i]&&r===m[++i]&&r===m[++i])){l=e.strstart+mi;do;while(r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&r===m[++i]&&i<l);e.match_length=mi-(l-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=nt?(n=wi(e,1,e.match_length-nt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=wi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(On(e,!1),e.strm.avail_out===0))return ln}return e.insert=0,t===$n?(On(e,!0),e.strm.avail_out===0?bo:Ma):e.sym_next&&(On(e,!1),e.strm.avail_out===0)?ln:Ia},HW=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(va(e),e.lookahead===0)){if(t===Ci)return ln;break}if(e.match_length=0,n=wi(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(On(e,!1),e.strm.avail_out===0))return ln}return e.insert=0,t===$n?(On(e,!0),e.strm.avail_out===0?bo:Ma):e.sym_next&&(On(e,!1),e.strm.avail_out===0)?ln:Ia};function sr(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 Ga=[new sr(0,0,0,0,y2),new sr(4,4,8,4,Rf),new sr(4,5,16,8,Rf),new sr(4,6,32,32,Rf),new sr(4,4,16,16,No),new sr(8,16,32,32,No),new sr(8,16,128,128,No),new sr(8,32,128,256,No),new sr(32,128,258,1024,No),new sr(32,258,258,4096,No)],UW=e=>{e.window_size=2*e.w_size,pi(e.head),e.max_lazy_match=Ga[e.level].max_lazy,e.good_match=Ga[e.level].good_length,e.nice_match=Ga[e.level].nice_length,e.max_chain_length=Ga[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=nt-1,e.match_available=0,e.ins_h=0};function WW(){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=$c,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($W*2),this.dyn_dtree=new Uint16Array((2*RW+1)*2),this.bl_tree=new Uint16Array((2*DW+1)*2),pi(this.dyn_ltree),pi(this.dyn_dtree),pi(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(BW+1),this.heap=new Uint16Array(2*uh+1),pi(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*uh+1),pi(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 wl=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==ga&&t.status!==rg&&t.status!==ch&&t.status!==fh&&t.status!==dh&&t.status!==hh&&t.status!==no&&t.status!==Ka?1:0},b2=e=>{if(wl(e))return ro(e,vr);e.total_in=e.total_out=0,e.data_type=OW;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?rg:t.wrap?ga:no,e.adler=t.wrap===2?0:1,t.last_flush=-2,mW(t),Yt},_2=e=>{const t=b2(e);return t===Yt&&UW(e.state),t},YW=(e,t)=>wl(e)||e.state.wrap!==2?vr:(e.state.gzhead=t,Yt),w2=(e,t,n,r,i,l)=>{if(!e)return vr;let m=1;if(t===SW&&(t=6),r<0?(m=0,r=-r):r>15&&(m=2,r-=16),i<1||i>AW||n!==$c||r<8||r>15||t<0||t>9||l<0||l>kW||r===8&&m!==1)return ro(e,vr);r===8&&(r=9);const a=new WW;return e.state=a,a.strm=e,a.status=ga,a.wrap=m,a.gzhead=null,a.w_bits=r,a.w_size=1<<a.w_bits,a.w_mask=a.w_size-1,a.hash_bits=i+7,a.hash_size=1<<a.hash_bits,a.hash_mask=a.hash_size-1,a.hash_shift=~~((a.hash_bits+nt-1)/nt),a.window=new Uint8Array(a.w_size*2),a.head=new Uint16Array(a.hash_size),a.prev=new Uint16Array(a.w_size),a.lit_bufsize=1<<i+6,a.pending_buf_size=a.lit_bufsize*4,a.pending_buf=new Uint8Array(a.pending_buf_size),a.sym_buf=a.lit_bufsize,a.sym_end=(a.lit_bufsize-1)*3,a.level=t,a.strategy=l,a.method=n,_2(e)},XW=(e,t)=>w2(e,t,$c,PW,IW,EW),KW=(e,t)=>{if(wl(e)||t>L0||t<0)return e?ro(e,vr):vr;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Ka&&t!==$n)return ro(e,e.avail_out===0?Lf:vr);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Sn(e),e.avail_out===0)return n.last_flush=-1,Yt}else if(e.avail_in===0&&D0(t)<=D0(r)&&t!==$n)return ro(e,Lf);if(n.status===Ka&&e.avail_in!==0)return ro(e,Lf);if(n.status===ga&&n.wrap===0&&(n.status=no),n.status===ga){let i=$c+(n.w_bits-8<<4)<<8,l=-1;if(n.strategy>=Gl||n.level<2?l=0:n.level<6?l=1:n.level===6?l=2:l=3,i|=l<<6,n.strstart!==0&&(i|=FW),i+=31-i%31,Va(n,i),n.strstart!==0&&(Va(n,e.adler>>>16),Va(n,e.adler&65535)),e.adler=1,n.status=no,Sn(e),n.pending!==0)return n.last_flush=-1,Yt}if(n.status===rg){if(e.adler=0,ct(n,31),ct(n,139),ct(n,8),n.gzhead)ct(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)),ct(n,n.gzhead.time&255),ct(n,n.gzhead.time>>8&255),ct(n,n.gzhead.time>>16&255),ct(n,n.gzhead.time>>24&255),ct(n,n.level===9?2:n.strategy>=Gl||n.level<2?4:0),ct(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(ct(n,n.gzhead.extra.length&255),ct(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=jt(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=ch;else if(ct(n,0),ct(n,0),ct(n,0),ct(n,0),ct(n,0),ct(n,n.level===9?2:n.strategy>=Gl||n.level<2?4:0),ct(n,zW),n.status=no,Sn(e),n.pending!==0)return n.last_flush=-1,Yt}if(n.status===ch){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 a=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+a),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=jt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=a,Sn(e),n.pending!==0)return n.last_flush=-1,Yt;i=0,l-=a}let m=new Uint8Array(n.gzhead.extra);n.pending_buf.set(m.subarray(n.gzindex,n.gzindex+l),n.pending),n.pending+=l,n.gzhead.hcrc&&n.pending>i&&(e.adler=jt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=fh}if(n.status===fh){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=jt(e.adler,n.pending_buf,n.pending-i,i)),Sn(e),n.pending!==0)return n.last_flush=-1,Yt;i=0}n.gzindex<n.gzhead.name.length?l=n.gzhead.name.charCodeAt(n.gzindex++)&255:l=0,ct(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=jt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=dh}if(n.status===dh){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=jt(e.adler,n.pending_buf,n.pending-i,i)),Sn(e),n.pending!==0)return n.last_flush=-1,Yt;i=0}n.gzindex<n.gzhead.comment.length?l=n.gzhead.comment.charCodeAt(n.gzindex++)&255:l=0,ct(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=jt(e.adler,n.pending_buf,n.pending-i,i))}n.status=hh}if(n.status===hh){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Sn(e),n.pending!==0))return n.last_flush=-1,Yt;ct(n,e.adler&255),ct(n,e.adler>>8&255),e.adler=0}if(n.status=no,Sn(e),n.pending!==0)return n.last_flush=-1,Yt}if(e.avail_in!==0||n.lookahead!==0||t!==Ci&&n.status!==Ka){let i=n.level===0?y2(n,t):n.strategy===Gl?HW(n,t):n.strategy===TW?VW(n,t):Ga[n.level].func(n,t);if((i===bo||i===Ma)&&(n.status=Ka),i===ln||i===bo)return e.avail_out===0&&(n.last_flush=-1),Yt;if(i===Ia&&(t===_W?bW(n):t!==L0&&(lh(n,0,0,!1),t===wW&&(pi(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Sn(e),e.avail_out===0))return n.last_flush=-1,Yt}return t!==$n?Yt:n.wrap<=0?R0:(n.wrap===2?(ct(n,e.adler&255),ct(n,e.adler>>8&255),ct(n,e.adler>>16&255),ct(n,e.adler>>24&255),ct(n,e.total_in&255),ct(n,e.total_in>>8&255),ct(n,e.total_in>>16&255),ct(n,e.total_in>>24&255)):(Va(n,e.adler>>>16),Va(n,e.adler&65535)),Sn(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Yt:R0)},GW=e=>{if(wl(e))return vr;const t=e.state.status;return e.state=null,t===no?ro(e,CW):Yt},qW=(e,t)=>{let n=t.length;if(wl(e))return vr;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==ga||r.lookahead)return vr;if(i===1&&(e.adler=Qs(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(pi(r.head),r.strstart=0,r.block_start=0,r.insert=0);let o=new Uint8Array(r.w_size);o.set(t.subarray(n-r.w_size,n),0),t=o,n=r.w_size}const l=e.avail_in,m=e.next_in,a=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,va(r);r.lookahead>=nt;){let o=r.strstart,u=r.lookahead-(nt-1);do r.ins_h=Si(r,r.ins_h,r.window[o+nt-1]),r.prev[o&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=o,o++;while(--u);r.strstart=o,r.lookahead=nt-1,va(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=nt-1,r.match_available=0,e.next_in=m,e.input=a,e.avail_in=l,r.wrap=i,Yt};var ZW=XW,JW=w2,QW=_2,eY=b2,tY=YW,nY=KW,rY=GW,iY=qW,oY="pako deflate (from Nodeca project)",gs={deflateInit:ZW,deflateInit2:JW,deflateReset:QW,deflateResetKeep:eY,deflateSetHeader:tY,deflate:nY,deflateEnd:rY,deflateSetDictionary:iY,deflateInfo:oY};const aY=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var sY=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)aY(n,r)&&(e[r]=n[r])}}return e},lY=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 m=e[r];n.set(m,i),i+=m.length}return n},Bc={assign:sY,flattenChunks:lY};let C2=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{C2=!1}const el=new Uint8Array(256);for(let e=0;e<256;e++)el[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;el[254]=el[254]=1;var uY=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,l,m=e.length,a=0;for(i=0;i<m;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<m&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),a+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(a),l=0,i=0;l<a;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<m&&(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 cY=(e,t)=>{if(t<65534&&e.subarray&&C2)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 fY=(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 m=e[r++];if(m<128){l[i++]=m;continue}let a=el[m];if(a>4){l[i++]=65533,r+=a-1;continue}for(m&=a===2?31:a===3?15:7;a>1&&r<n;)m=m<<6|e[r++]&63,a--;if(a>1){l[i++]=65533;continue}m<65536?l[i++]=m:(m-=65536,l[i++]=55296|m>>10&1023,l[i++]=56320|m&1023)}return cY(l,i)},dY=(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+el[e[n]]>t?n:t},tl={string2buf:uY,buf2string:fY,utf8border:dY};function hY(){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 S2=hY;const x2=Object.prototype.toString,{Z_NO_FLUSH:pY,Z_SYNC_FLUSH:gY,Z_FULL_FLUSH:vY,Z_FINISH:mY,Z_OK:tc,Z_STREAM_END:yY,Z_DEFAULT_COMPRESSION:bY,Z_DEFAULT_STRATEGY:_Y,Z_DEFLATED:wY}=Pa;function Cl(e){this.options=Bc.assign({level:bY,method:wY,chunkSize:16384,windowBits:15,memLevel:8,strategy:_Y},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 S2,this.strm.avail_out=0;let n=gs.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==tc)throw new Error(yo[n]);if(t.header&&gs.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=tl.string2buf(t.dictionary):x2.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=gs.deflateSetDictionary(this.strm,r),n!==tc)throw new Error(yo[n]);this._dict_set=!0}}Cl.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?mY:pY,typeof e=="string"?n.input=tl.string2buf(e):x2.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===gY||l===vY)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=gs.deflate(n,l),i===yY)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=gs.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===tc;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};Cl.prototype.onData=function(e){this.chunks.push(e)};Cl.prototype.onEnd=function(e){e===tc&&(this.result=Bc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function ig(e,t){const n=new Cl(t);if(n.push(e,!0),n.err)throw n.msg||yo[n.err];return n.result}function CY(e,t){return t=t||{},t.raw=!0,ig(e,t)}function SY(e,t){return t=t||{},t.gzip=!0,ig(e,t)}var xY=Cl,TY=ig,kY=CY,EY=SY,OY=Pa,AY={Deflate:xY,deflate:TY,deflateRaw:kY,gzip:EY,constants:OY};const ql=16209,PY=16191;var IY=function(t,n){let r,i,l,m,a,o,u,h,c,f,s,d,v,g,y,b,_,w,S,x,T,O,A,$;const j=t.state;r=t.next_in,A=t.input,i=r+(t.avail_in-5),l=t.next_out,$=t.output,m=l-(n-t.avail_out),a=l+(t.avail_out-257),o=j.dmax,u=j.wsize,h=j.whave,c=j.wnext,f=j.window,s=j.hold,d=j.bits,v=j.lencode,g=j.distcode,y=(1<<j.lenbits)-1,b=(1<<j.distbits)-1;e:do{d<15&&(s+=A[r++]<<d,d+=8,s+=A[r++]<<d,d+=8),_=v[s&y];t:for(;;){if(w=_>>>24,s>>>=w,d-=w,w=_>>>16&255,w===0)$[l++]=_&65535;else if(w&16){S=_&65535,w&=15,w&&(d<w&&(s+=A[r++]<<d,d+=8),S+=s&(1<<w)-1,s>>>=w,d-=w),d<15&&(s+=A[r++]<<d,d+=8,s+=A[r++]<<d,d+=8),_=g[s&b];n:for(;;){if(w=_>>>24,s>>>=w,d-=w,w=_>>>16&255,w&16){if(x=_&65535,w&=15,d<w&&(s+=A[r++]<<d,d+=8,d<w&&(s+=A[r++]<<d,d+=8)),x+=s&(1<<w)-1,x>o){t.msg="invalid distance too far back",j.mode=ql;break e}if(s>>>=w,d-=w,w=l-m,x>w){if(w=x-w,w>h&&j.sane){t.msg="invalid distance too far back",j.mode=ql;break e}if(T=0,O=f,c===0){if(T+=u-w,w<S){S-=w;do $[l++]=f[T++];while(--w);T=l-x,O=$}}else if(c<w){if(T+=u+c-w,w-=c,w<S){S-=w;do $[l++]=f[T++];while(--w);if(T=0,c<S){w=c,S-=w;do $[l++]=f[T++];while(--w);T=l-x,O=$}}}else if(T+=c-w,w<S){S-=w;do $[l++]=f[T++];while(--w);T=l-x,O=$}for(;S>2;)$[l++]=O[T++],$[l++]=O[T++],$[l++]=O[T++],S-=3;S&&($[l++]=O[T++],S>1&&($[l++]=O[T++]))}else{T=l-x;do $[l++]=$[T++],$[l++]=$[T++],$[l++]=$[T++],S-=3;while(S>2);S&&($[l++]=$[T++],S>1&&($[l++]=$[T++]))}}else if((w&64)===0){_=g[(_&65535)+(s&(1<<w)-1)];continue n}else{t.msg="invalid distance code",j.mode=ql;break e}break}}else if((w&64)===0){_=v[(_&65535)+(s&(1<<w)-1)];continue t}else if(w&32){j.mode=PY;break e}else{t.msg="invalid literal/length code",j.mode=ql;break e}break}}while(r<i&&l<a);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<a?257+(a-l):257-(l-a),j.hold=s,j.bits=d};const jo=15,$0=852,B0=592,F0=0,Df=1,z0=2,MY=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]),LY=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]),RY=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]),DY=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]),$Y=(e,t,n,r,i,l,m,a)=>{const o=a.bits;let u=0,h=0,c=0,f=0,s=0,d=0,v=0,g=0,y=0,b=0,_,w,S,x,T,O=null,A;const $=new Uint16Array(jo+1),j=new Uint16Array(jo+1);let R=null,F,E,W;for(u=0;u<=jo;u++)$[u]=0;for(h=0;h<r;h++)$[t[n+h]]++;for(s=o,f=jo;f>=1&&$[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,a.bits=1,0;for(c=1;c<f&&$[c]===0;c++);for(s<c&&(s=c),g=1,u=1;u<=jo;u++)if(g<<=1,g-=$[u],g<0)return-1;if(g>0&&(e===F0||f!==1))return-1;for(j[1]=0,u=1;u<jo;u++)j[u+1]=j[u]+$[u];for(h=0;h<r;h++)t[n+h]!==0&&(m[j[t[n+h]]++]=h);if(e===F0?(O=R=m,A=20):e===Df?(O=MY,R=LY,A=257):(O=RY,R=DY,A=0),b=0,h=0,u=c,T=l,d=s,v=0,S=-1,y=1<<s,x=y-1,e===Df&&y>$0||e===z0&&y>B0)return 1;for(;;){F=u-v,m[h]+1<A?(E=0,W=m[h]):m[h]>=A?(E=R[m[h]-A],W=O[m[h]-A]):(E=32+64,W=0),_=1<<u-v,w=1<<d,c=w;do w-=_,i[T+(b>>v)+w]=F<<24|E<<16|W|0;while(w!==0);for(_=1<<u-1;b&_;)_>>=1;if(_!==0?(b&=_-1,b+=_):b=0,h++,--$[u]===0){if(u===f)break;u=t[n+m[h]]}if(u>s&&(b&x)!==S){for(v===0&&(v=s),T+=c,d=u-v,g=1<<d;d+v<f&&(g-=$[d+v],!(g<=0));)d++,g<<=1;if(y+=1<<d,e===Df&&y>$0||e===z0&&y>B0)return 1;S=b&x,i[S]=s<<24|d<<16|T-l|0}}return b!==0&&(i[T+b]=u-v<<24|64<<16|0),a.bits=s,0};var vs=$Y;const BY=0,T2=1,k2=2,{Z_FINISH:N0,Z_BLOCK:FY,Z_TREES:Zl,Z_OK:_o,Z_STREAM_END:zY,Z_NEED_DICT:NY,Z_STREAM_ERROR:Vn,Z_DATA_ERROR:E2,Z_MEM_ERROR:O2,Z_BUF_ERROR:jY,Z_DEFLATED:j0}=Pa,Fc=16180,V0=16181,H0=16182,U0=16183,W0=16184,Y0=16185,X0=16186,K0=16187,G0=16188,q0=16189,nc=16190,Or=16191,$f=16192,Z0=16193,Bf=16194,J0=16195,Q0=16196,ey=16197,ty=16198,Jl=16199,Ql=16200,ny=16201,ry=16202,iy=16203,oy=16204,ay=16205,Ff=16206,sy=16207,ly=16208,Pt=16209,A2=16210,P2=16211,VY=852,HY=592,UY=15,WY=UY,uy=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function YY(){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 Io=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<Fc||t.mode>P2?1:0},I2=e=>{if(Io(e))return Vn;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=Fc,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(VY),t.distcode=t.distdyn=new Int32Array(HY),t.sane=1,t.back=-1,_o},M2=e=>{if(Io(e))return Vn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,I2(e)},L2=(e,t)=>{let n;if(Io(e))return Vn;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Vn:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,M2(e))},R2=(e,t)=>{if(!e)return Vn;const n=new YY;e.state=n,n.strm=e,n.window=null,n.mode=Fc;const r=L2(e,t);return r!==_o&&(e.state=null),r},XY=e=>R2(e,WY);let cy=!0,zf,Nf;const KY=e=>{if(cy){zf=new Int32Array(512),Nf=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(vs(T2,e.lens,0,288,zf,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;vs(k2,e.lens,0,32,Nf,0,e.work,{bits:5}),cy=!1}e.lencode=zf,e.lenbits=9,e.distcode=Nf,e.distbits=5},D2=(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},GY=(e,t)=>{let n,r,i,l,m,a,o,u,h,c,f,s,d,v,g=0,y,b,_,w,S,x,T,O;const A=new Uint8Array(4);let $,j;const R=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Io(e)||!e.output||!e.input&&e.avail_in!==0)return Vn;n=e.state,n.mode===Or&&(n.mode=$f),m=e.next_out,i=e.output,o=e.avail_out,l=e.next_in,r=e.input,a=e.avail_in,u=n.hold,h=n.bits,c=a,f=o,O=_o;e:for(;;)switch(n.mode){case Fc:if(n.wrap===0){n.mode=$f;break}for(;h<16;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if(n.wrap&2&&u===35615){n.wbits===0&&(n.wbits=15),n.check=0,A[0]=u&255,A[1]=u>>>8&255,n.check=jt(n.check,A,2,0),u=0,h=0,n.mode=V0;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Pt;break}if((u&15)!==j0){e.msg="unknown compression method",n.mode=Pt;break}if(u>>>=4,h-=4,T=(u&15)+8,n.wbits===0&&(n.wbits=T),T>15||T>n.wbits){e.msg="invalid window size",n.mode=Pt;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=u&512?q0:Or,u=0,h=0;break;case V0:for(;h<16;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if(n.flags=u,(n.flags&255)!==j0){e.msg="unknown compression method",n.mode=Pt;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=Pt;break}n.head&&(n.head.text=u>>8&1),n.flags&512&&n.wrap&4&&(A[0]=u&255,A[1]=u>>>8&255,n.check=jt(n.check,A,2,0)),u=0,h=0,n.mode=H0;case H0:for(;h<32;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}n.head&&(n.head.time=u),n.flags&512&&n.wrap&4&&(A[0]=u&255,A[1]=u>>>8&255,A[2]=u>>>16&255,A[3]=u>>>24&255,n.check=jt(n.check,A,4,0)),u=0,h=0,n.mode=U0;case U0:for(;h<16;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}n.head&&(n.head.xflags=u&255,n.head.os=u>>8),n.flags&512&&n.wrap&4&&(A[0]=u&255,A[1]=u>>>8&255,n.check=jt(n.check,A,2,0)),u=0,h=0,n.mode=W0;case W0:if(n.flags&1024){for(;h<16;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}n.length=u,n.head&&(n.head.extra_len=u),n.flags&512&&n.wrap&4&&(A[0]=u&255,A[1]=u>>>8&255,n.check=jt(n.check,A,2,0)),u=0,h=0}else n.head&&(n.head.extra=null);n.mode=Y0;case Y0:if(n.flags&1024&&(s=n.length,s>a&&(s=a),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=jt(n.check,r,s,l)),a-=s,l+=s,n.length-=s),n.length))break e;n.length=0,n.mode=X0;case X0:if(n.flags&2048){if(a===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<a);if(n.flags&512&&n.wrap&4&&(n.check=jt(n.check,r,s,l)),a-=s,l+=s,T)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=K0;case K0:if(n.flags&4096){if(a===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<a);if(n.flags&512&&n.wrap&4&&(n.check=jt(n.check,r,s,l)),a-=s,l+=s,T)break e}else n.head&&(n.head.comment=null);n.mode=G0;case G0:if(n.flags&512){for(;h<16;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if(n.wrap&4&&u!==(n.check&65535)){e.msg="header crc mismatch",n.mode=Pt;break}u=0,h=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=Or;break;case q0:for(;h<32;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}e.adler=n.check=uy(u),u=0,h=0,n.mode=nc;case nc:if(n.havedict===0)return e.next_out=m,e.avail_out=o,e.next_in=l,e.avail_in=a,n.hold=u,n.bits=h,NY;e.adler=n.check=1,n.mode=Or;case Or:if(t===FY||t===Zl)break e;case $f:if(n.last){u>>>=h&7,h-=h&7,n.mode=Ff;break}for(;h<3;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}switch(n.last=u&1,u>>>=1,h-=1,u&3){case 0:n.mode=Z0;break;case 1:if(KY(n),n.mode=Jl,t===Zl){u>>>=2,h-=2;break e}break;case 2:n.mode=Q0;break;case 3:e.msg="invalid block type",n.mode=Pt}u>>>=2,h-=2;break;case Z0:for(u>>>=h&7,h-=h&7;h<32;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Pt;break}if(n.length=u&65535,u=0,h=0,n.mode=Bf,t===Zl)break e;case Bf:n.mode=J0;case J0:if(s=n.length,s){if(s>a&&(s=a),s>o&&(s=o),s===0)break e;i.set(r.subarray(l,l+s),m),a-=s,l+=s,o-=s,m+=s,n.length-=s;break}n.mode=Or;break;case Q0:for(;h<14;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if(n.nlen=(u&31)+257,u>>>=5,h-=5,n.ndist=(u&31)+1,u>>>=5,h-=5,n.ncode=(u&15)+4,u>>>=4,h-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Pt;break}n.have=0,n.mode=ey;case ey:for(;n.have<n.ncode;){for(;h<3;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}n.lens[R[n.have++]]=u&7,u>>>=3,h-=3}for(;n.have<19;)n.lens[R[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,$={bits:n.lenbits},O=vs(BY,n.lens,0,19,n.lencode,0,n.work,$),n.lenbits=$.bits,O){e.msg="invalid code lengths set",n.mode=Pt;break}n.have=0,n.mode=ty;case ty:for(;n.have<n.nlen+n.ndist;){for(;g=n.lencode[u&(1<<n.lenbits)-1],y=g>>>24,b=g>>>16&255,_=g&65535,!(y<=h);){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if(_<16)u>>>=y,h-=y,n.lens[n.have++]=_;else{if(_===16){for(j=y+2;h<j;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if(u>>>=y,h-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=Pt;break}T=n.lens[n.have-1],s=3+(u&3),u>>>=2,h-=2}else if(_===17){for(j=y+3;h<j;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}u>>>=y,h-=y,T=0,s=3+(u&7),u>>>=3,h-=3}else{for(j=y+7;h<j;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}u>>>=y,h-=y,T=0,s=11+(u&127),u>>>=7,h-=7}if(n.have+s>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Pt;break}for(;s--;)n.lens[n.have++]=T}}if(n.mode===Pt)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Pt;break}if(n.lenbits=9,$={bits:n.lenbits},O=vs(T2,n.lens,0,n.nlen,n.lencode,0,n.work,$),n.lenbits=$.bits,O){e.msg="invalid literal/lengths set",n.mode=Pt;break}if(n.distbits=6,n.distcode=n.distdyn,$={bits:n.distbits},O=vs(k2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,$),n.distbits=$.bits,O){e.msg="invalid distances set",n.mode=Pt;break}if(n.mode=Jl,t===Zl)break e;case Jl:n.mode=Ql;case Ql:if(a>=6&&o>=258){e.next_out=m,e.avail_out=o,e.next_in=l,e.avail_in=a,n.hold=u,n.bits=h,IY(e,f),m=e.next_out,i=e.output,o=e.avail_out,l=e.next_in,r=e.input,a=e.avail_in,u=n.hold,h=n.bits,n.mode===Or&&(n.back=-1);break}for(n.back=0;g=n.lencode[u&(1<<n.lenbits)-1],y=g>>>24,b=g>>>16&255,_=g&65535,!(y<=h);){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if(b&&(b&240)===0){for(w=y,S=b,x=_;g=n.lencode[x+((u&(1<<w+S)-1)>>w)],y=g>>>24,b=g>>>16&255,_=g&65535,!(w+y<=h);){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}u>>>=w,h-=w,n.back+=w}if(u>>>=y,h-=y,n.back+=y,n.length=_,b===0){n.mode=ay;break}if(b&32){n.back=-1,n.mode=Or;break}if(b&64){e.msg="invalid literal/length code",n.mode=Pt;break}n.extra=b&15,n.mode=ny;case ny:if(n.extra){for(j=n.extra;h<j;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,h-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ry;case ry:for(;g=n.distcode[u&(1<<n.distbits)-1],y=g>>>24,b=g>>>16&255,_=g&65535,!(y<=h);){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if((b&240)===0){for(w=y,S=b,x=_;g=n.distcode[x+((u&(1<<w+S)-1)>>w)],y=g>>>24,b=g>>>16&255,_=g&65535,!(w+y<=h);){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}u>>>=w,h-=w,n.back+=w}if(u>>>=y,h-=y,n.back+=y,b&64){e.msg="invalid distance code",n.mode=Pt;break}n.offset=_,n.extra=b&15,n.mode=iy;case iy:if(n.extra){for(j=n.extra;h<j;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,h-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Pt;break}n.mode=oy;case oy:if(o===0)break e;if(s=f-o,n.offset>s){if(s=n.offset-s,s>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Pt;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=m-n.offset,s=n.length;s>o&&(s=o),o-=s,n.length-=s;do i[m++]=v[d++];while(--s);n.length===0&&(n.mode=Ql);break;case ay:if(o===0)break e;i[m++]=n.length,o--,n.mode=Ql;break;case Ff:if(n.wrap){for(;h<32;){if(a===0)break e;a--,u|=r[l++]<<h,h+=8}if(f-=o,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?jt(n.check,i,f,m-f):Qs(n.check,i,f,m-f)),f=o,n.wrap&4&&(n.flags?u:uy(u))!==n.check){e.msg="incorrect data check",n.mode=Pt;break}u=0,h=0}n.mode=sy;case sy:if(n.wrap&&n.flags){for(;h<32;){if(a===0)break e;a--,u+=r[l++]<<h,h+=8}if(n.wrap&4&&u!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=Pt;break}u=0,h=0}n.mode=ly;case ly:O=zY;break e;case Pt:O=E2;break e;case A2:return O2;case P2:default:return Vn}return e.next_out=m,e.avail_out=o,e.next_in=l,e.avail_in=a,n.hold=u,n.bits=h,(n.wsize||f!==e.avail_out&&n.mode<Pt&&(n.mode<Ff||t!==N0))&&D2(e,e.output,e.next_out,f-e.avail_out),c-=e.avail_in,f-=e.avail_out,e.total_in+=c,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?jt(n.check,i,f,e.next_out-f):Qs(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===Or?128:0)+(n.mode===Jl||n.mode===Bf?256:0),(c===0&&f===0||t===N0)&&O===_o&&(O=jY),O},qY=e=>{if(Io(e))return Vn;let t=e.state;return t.window&&(t.window=null),e.state=null,_o},ZY=(e,t)=>{if(Io(e))return Vn;const n=e.state;return(n.wrap&2)===0?Vn:(n.head=t,t.done=!1,_o)},JY=(e,t)=>{const n=t.length;let r,i,l;return Io(e)||(r=e.state,r.wrap!==0&&r.mode!==nc)?Vn:r.mode===nc&&(i=1,i=Qs(i,t,n,0),i!==r.check)?E2:(l=D2(e,t,n,n),l?(r.mode=A2,O2):(r.havedict=1,_o))};var QY=M2,eX=L2,tX=I2,nX=XY,rX=R2,iX=GY,oX=qY,aX=ZY,sX=JY,lX="pako inflate (from Nodeca project)",Dr={inflateReset:QY,inflateReset2:eX,inflateResetKeep:tX,inflateInit:nX,inflateInit2:rX,inflate:iX,inflateEnd:oX,inflateGetHeader:aX,inflateSetDictionary:sX,inflateInfo:lX};function uX(){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 cX=uX;const $2=Object.prototype.toString,{Z_NO_FLUSH:fX,Z_FINISH:dX,Z_OK:nl,Z_STREAM_END:jf,Z_NEED_DICT:Vf,Z_STREAM_ERROR:hX,Z_DATA_ERROR:fy,Z_MEM_ERROR:pX}=Pa;function Sl(e){this.options=Bc.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 S2,this.strm.avail_out=0;let n=Dr.inflateInit2(this.strm,t.windowBits);if(n!==nl)throw new Error(yo[n]);if(this.header=new cX,Dr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=tl.string2buf(t.dictionary):$2.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Dr.inflateSetDictionary(this.strm,t.dictionary),n!==nl)))throw new Error(yo[n])}Sl.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let l,m,a;if(this.ended)return!1;for(t===~~t?m=t:m=t===!0?dX:fX,$2.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=Dr.inflate(n,m),l===Vf&&i&&(l=Dr.inflateSetDictionary(n,i),l===nl?l=Dr.inflate(n,m):l===fy&&(l=Vf));n.avail_in>0&&l===jf&&n.state.wrap>0&&e[n.next_in]!==0;)Dr.inflateReset(n),l=Dr.inflate(n,m);switch(l){case hX:case fy:case Vf:case pX:return this.onEnd(l),this.ended=!0,!1}if(a=n.avail_out,n.next_out&&(n.avail_out===0||l===jf))if(this.options.to==="string"){let o=tl.utf8border(n.output,n.next_out),u=n.next_out-o,h=tl.buf2string(n.output,o);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(o,o+u),0),this.onData(h)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(l===nl&&a===0)){if(l===jf)return l=Dr.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};Sl.prototype.onData=function(e){this.chunks.push(e)};Sl.prototype.onEnd=function(e){e===nl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Bc.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function og(e,t){const n=new Sl(t);if(n.push(e),n.err)throw n.msg||yo[n.err];return n.result}function gX(e,t){return t=t||{},t.raw=!0,og(e,t)}var vX=Sl,mX=og,yX=gX,bX=og,_X=Pa,wX={Inflate:vX,inflate:mX,inflateRaw:yX,ungzip:bX,constants:_X};const{Deflate:cG,deflate:fG,deflateRaw:CX,gzip:dG}=AY,{Inflate:hG,inflate:pG,inflateRaw:SX,ungzip:gG}=wX;var xX=CX,TX=SX;function dy(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 kX=function(){if(!window.location.search.includes("?"))return;const t=window.location.search.replace("?","").split("&");let n=dy(t);if(console.log("URL params:",n),n.get("share")){const l=TX(new Uint8Array(atob(n.get("share")).split("").map(m=>m.charCodeAt(0))),{to:"string"});if(!l){Dt().raiseError("Error when trying to decode share parameter!",!1);return}n=dy(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")||30),cfg_scale:Number(n.get("cfg_scale")||7),height:Number(n.get("height")||512),width:Number(n.get("width")||512)};kn().generateText2Img(r,!1)},EX=10;function gh(e,t,n,r,i=l=>Dt().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(m=>`${m[0]} - ${m[1]}`).join(" | ");return i(`${r}: ${t.message} (${l})`)}const OX=ya("interrogate",()=>{const e=se({}),t=se(!1);async function n(m){Dt().raiseError(m,!1),t.value=!1,e.value={}}async function r(){const m=Jt(),{source_image:a}=e.value;if(!a)return n("Failed to get interrogation ID: No image supplied.");t.value=!0;const o=await fetch(`${m.baseURL.length===0?".":m.baseURL}/sdapi/v1/interrogate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:a.split(",")[1],model:"clip"})}),u=await o.json();!gh(o,u,200,"Failed to get interrogation",n)||(e.value.id=u.id,e.value.status=u.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}}),ag=e=>(Kr("data-v-db184ac6"),e=e(),Gr(),e),AX={key:0,style:{"margin-top":"16px"}},PX=ag(()=>oe("div",null,[Ne("Drop file here OR "),oe("em",null,"click to upload")],-1)),IX={key:1,style:{"margin-top":"16px"}},MX={key:2},LX={style:{"margin-top":"8px"}},RX=ag(()=>oe("h2",{style:{margin:"16px 0 8px 0"}},"Interrogation Results",-1)),DX={key:0},$X=ag(()=>oe("h3",null,"Caption",-1)),BX={key:0},FX={key:1},zX=Te({__name:"InterrogationView",setup(e){const t=OX(),n=kn(),r=Dt(),i=se();async function l(u){if(i.value.clearFiles(),!u.raw.type.includes("image")){r.raiseError("Uploaded file needs to be a image!",!1);return}const h=await t2(u.raw);t.currentInterrogation.source_image=h,t.interrogateImage()}function m(){n.generateText2Img({prompt:a.value})}const a=ee(()=>t.getFormStatus()),{ellipsis:o}=Qw();return(u,h)=>C(t).currentInterrogation.source_image?C(t).currentInterrogation.status?(V(),ce("div",MX,[oe("div",LX,[ue(C(dt),{icon:C(Du),onClick:C(t).resetInterrogation},{default:he(()=>[Ne("New Interrogation")]),_:1},8,["icon","onClick"]),C(a)?(V(),_e(C(dt),{key:0,icon:C(Du),onClick:m,disabled:!C(a)},{default:he(()=>[Ne("Text2Img (Caption)")]),_:1},8,["icon","disabled"])):be("",!0)]),RX,ue(C(Sp),{src:C(t).currentInterrogation.source_image,alt:"Uploaded Image"},null,8,["src"]),C(a)?(V(),ce("div",DX,[$X,C(a)?(V(),ce("div",FX,[oe("strong",null,Ae(C(a)),1)])):(V(),ce("div",BX,"Processing"+Ae(C(o)),1))])):be("",!0)])):(V(),ce("div",IX,[oe("strong",null,"Uploading image"+Ae(C(o)),1)])):(V(),ce("div",AX,[oe("div",null,[ue(C(Op),{onChange:l,"auto-upload":!1,limit:1,class:"interrogation-upload",ref_key:"upload",ref:i,multiple:"",drag:""},{default:he(()=>[ue(C(Re),{size:100},{default:he(()=>[ue(C(Yh))]),_:1}),PX]),_:1},512)])]))}});const NX=Wt(zX,[["__scopeId","data-v-db184ac6"]]);function jX(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),m=Math.floor(e%86400%3600%60),a=r>0?r+(t?"d":"days"):"",o=i>0?i+(t?"h":"hours"):"",u=l>0?l+(t?"m":"minutes"):"",h=m>0?m+(t?"s":"seconds"):"",c=[];return n!=null&&n.days&&c.push(a),n!=null&&n.hours&&c.push(o),n!=null&&n.minutes&&c.push(u),n!=null&&n.seconds&&c.push(h),c.join(" ")}const VX={class:"form"},HX={key:0,style:{"padding-bottom":"50px"}},UX=oe("h1",{style:{margin:"0"}},"Interrogation",-1),WX=oe("div",null,"Interrogate images to get their predicted descriptions.",-1),YX={class:"sidebar"},XX=oe("h3",{style:{margin:"16px 0 4px 0"}},"Multi Select",-1),KX={class:"main"},GX={class:"image center-horizontal"},qX={key:0},ZX=Te({__name:"GenerateView",setup(e){const n=sp(ap).smallerOrEqual("md"),r=kn(),i=Dt(),l=ds(),m=Jt();let a=[];const o=J8(async()=>{if(a.length===0)try{a=(await(await fetch(`${m.baseURL.length===0?".":m.baseURL}/sdapi/v1/samplers`)).json()).map(v=>v.name)}catch{a=[]}return a.length===0?[]:h(a)}),u=_t({prompt:[{required:!0,message:"Please input prompt",trigger:"change"}]});function h(v){return!r.params||!r.params.sampler_name||v.indexOf(r.params.sampler_name)===-1&&(r.params.sampler_name=v[0]),v}function c(v){return"Elapsed: "+jX(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(),kX(),(v,g)=>(V(),ce(ze,null,[ue(C(W1),{"default-active":C(r).generatorType,collapse:!0,onSelect:s,mode:C(n)?"horizontal":"vertical",class:fe(C(n)?"mobile-generator-types":"generator-types"),style:Fe(C(n)?"overflow-x: auto":"")},{default:he(()=>[ue(Of,{index:"Text2Img","icon-one":C(zk),"icon-two":C(Xc),isMobile:C(n)},null,8,["icon-one","icon-two","isMobile"]),ue(Of,{index:"Img2Img","icon-one":C(Xc),"icon-two":C(Xc),isMobile:C(n)},null,8,["icon-one","icon-two","isMobile"]),ue(Of,{index:"Interrogation","icon-one":FH,isMobile:C(n)},null,8,["isMobile"])]),_:1},8,["default-active","mode","class","style"]),oe("div",VX,[C(r).generatorType==="Interrogation"?(V(),ce("div",HX,[UX,WX,ue(NX)])):(V(),_e(C(Cp),{key:1,"label-position":"left","label-width":"140px",model:C(r),class:"container",rules:u,onSubmit:g[21]||(g[21]=Je(()=>{},["prevent"]))},{default:he(()=>[oe("div",YX,[ue(C(O$),{modelValue:C(i).activeCollapse,"onUpdate:modelValue":g[16]||(g[16]=y=>C(i).activeCollapse=y),style:{"margin-bottom":"24px"}},{default:he(()=>[ue(C(A$),{title:"Generation Options",name:"1"},{default:he(()=>[ue(nU),ue(oh,{label:"Negative Prompt",prop:"negativePrompt",modelValue:C(r).negativePrompt,"onUpdate:modelValue":g[0]||(g[0]=y=>C(r).negativePrompt=y),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(oh,{label:"Seed",prop:"seed",modelValue:C(r).params.seed,"onUpdate:modelValue":g[2]||(g[2]=y=>C(r).params.seed=y),placeholder:"Enter seed here"},{append:he(()=>[ue(C(Sr),{content:"Randomize!",placement:"top"},{default:he(()=>[ue(C(dt),{icon:C(o3),onClick:g[1]||(g[1]=()=>C(r).params.seed=Math.abs(Math.random()*2**32|0))},null,8,["icon"])]),_:1})]),_:1},8,["modelValue"]),C(r).multiSelect.sampler.enabled?(V(),_e(ih,{key:0,label:"Sampler(s)",prop:"samplers",modelValue:C(r).multiSelect.sampler.selected,"onUpdate:modelValue":g[3]||(g[3]=y=>C(r).multiSelect.sampler.selected=y),options:C(o),info:"Multi-select enabled. k_heun and k_dpm_2 double generation time and kudos cost, but converge twice as fast.",multiple:""},null,8,["modelValue","options"])):(V(),_e(ih,{key:1,label:"Sampler",prop:"sampler",modelValue:C(r).params.sampler_name,"onUpdate:modelValue":g[4]||(g[4]=y=>C(r).params.sampler_name=y),options:C(o),info:"k_heun and k_dpm_2 double generation time and kudos cost, but converge twice as fast."},null,8,["modelValue","options"])),ue(lr,{label:"Batch Size",prop:"batchSize",modelValue:C(r).params.n,"onUpdate:modelValue":g[5]||(g[5]=y=>C(r).params.n=y),min:C(r).minImages,max:C(r).maxImages},null,8,["modelValue","min","max"]),C(r).multiSelect.steps.enabled?(V(),_e(lr,{key:2,label:"Steps(s)",prop:"multiSteps",modelValue:C(r).multiSelect.steps.selected,"onUpdate:modelValue":g[6]||(g[6]=y=>C(r).multiSelect.steps.selected=y),min:C(r).minSteps,max:C(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"])):(V(),_e(lr,{key:3,label:"Steps",prop:"steps",modelValue:C(r).params.steps,"onUpdate:modelValue":g[7]||(g[7]=y=>C(r).params.steps=y),min:C(r).minSteps,max:C(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"])),ue(lr,{label:"Width",prop:"width",modelValue:C(r).params.width,"onUpdate:modelValue":g[8]||(g[8]=y=>C(r).params.width=y),min:C(r).minDimensions,max:C(r).maxDimensions,step:64,change:d},null,8,["modelValue","min","max"]),ue(lr,{label:"Height",prop:"height",modelValue:C(r).params.height,"onUpdate:modelValue":g[9]||(g[9]=y=>C(r).params.height=y),min:C(r).minDimensions,max:C(r).maxDimensions,step:64,change:d},null,8,["modelValue","min","max"]),C(r).multiSelect.guidance.enabled?(V(),_e(lr,{key:4,label:"Guidance(s)",prop:"cfgScales",modelValue:C(r).multiSelect.guidance.selected,"onUpdate:modelValue":g[10]||(g[10]=y=>C(r).multiSelect.guidance.selected=y),min:C(r).minCfgScale,max:C(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"])):(V(),_e(lr,{key:5,label:"Guidance",prop:"cfgScale",modelValue:C(r).params.cfg_scale,"onUpdate:modelValue":g[11]||(g[11]=y=>C(r).params.cfg_scale=y),min:C(r).minCfgScale,max:C(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","step"])),C(r).sourceGeneratorTypes.includes(C(r).generatorType)?(V(),_e(lr,{key:6,label:"Init Strength",prop:"denoise",modelValue:C(r).params.denoising_strength,"onUpdate:modelValue":g[12]||(g[12]=y=>C(r).params.denoising_strength=y),min:C(r).minDenoise,max:C(r).maxDenoise,step:.01,info:"The final image will diverge from the starting image at higher values."},null,8,["modelValue","min","max","step"])):be("",!0),XX,ue(C(fj),null,{default:he(()=>[ue(C(of),{span:C(n)?24:12},{default:he(()=>[ue(kf,{label:"Multi Sampler",prop:"multiSamplerSwitch",modelValue:C(r).multiSelect.sampler.enabled,"onUpdate:modelValue":g[13]||(g[13]=y=>C(r).multiSelect.sampler.enabled=y)},null,8,["modelValue"])]),_:1},8,["span"]),ue(C(of),{span:C(n)?24:12},{default:he(()=>[ue(kf,{label:"Multi Guidance",prop:"multiGuidanceSwitch",modelValue:C(r).multiSelect.guidance.enabled,"onUpdate:modelValue":g[14]||(g[14]=y=>C(r).multiSelect.guidance.enabled=y)},null,8,["modelValue"])]),_:1},8,["span"]),ue(C(of),{span:C(n)?24:12},{default:he(()=>[ue(kf,{label:"Multi Steps",prop:"multiStepsSwitch",modelValue:C(r).multiSelect.steps.enabled,"onUpdate:modelValue":g[15]||(g[15]=y=>C(r).multiSelect.steps.enabled=y)},null,8,["modelValue"])]),_:1},8,["span"])]),_:1})]),_:1})]),_:1},8,["modelValue"])]),oe("div",KX,[ue(C(dt),{onClick:g[17]||(g[17]=()=>C(r).resetStore()),class:"reset-btn"},{default:he(()=>[Ne("Reset")]),_:1}),ue(C(dt),{type:"primary",class:"generate-cancel-btn",style:Fe(C(r).generating?"width: 55%;":""),onClick:g[18]||(g[18]=()=>C(r).generateImage(C(r).generatorType))},{default:he(()=>[oe("span",null," Generate "+Ae(C(r).totalImageCount)+" image"+Ae(C(r).totalImageCount===1?"":"s"),1)]),_:1},8,["style"]),C(r).generating?(V(),_e(C(dt),{key:0,type:"danger",class:"generate-cancel-btn",style:{width:"25%"},disabled:C(r).cancelled,onClick:g[19]||(g[19]=()=>{C(r).cancelled=!0,C(r).generating=!1})},{default:he(()=>[Ne("Cancel all")]),_:1},8,["disabled"])):be("",!0)]),oe("div",GX,[ue(C(PD),{class:"center-both generated-image"},{default:he(()=>[!C(r).generating&&C(r).outputs.length==0?(V(),ce("div",qX,[/Inpainting/.test(C(r).generatorType)?(V(),_e(T0,{key:0})):be("",!0),/Img2Img/.test(C(r).generatorType)?(V(),_e(T0,{key:1})):be("",!0)])):be("",!0),!C(i).showGeneratedImages&&C(r).generating?(V(),_e(YH,{key:1,generated:C(r).outputs.length,total:C(r).queue.length,elapsed:c(C(r).timer.seconds),onShowGenerated:g[20]||(g[20]=y=>C(i).showGeneratedImages=!0)},null,8,["generated","total","elapsed"])):be("",!0),C(i).showGeneratedImages&&C(r).outputs.length!==0?(V(),_e(dU,{key:2})):be("",!0)]),_:1})])]),_:1},8,["model","rules"]))])],64))}});const ms=kT({history:Hx("./"),routes:[{path:"/",name:"generate",component:ZX},{path:"/images",name:"images",component:()=>Tf(()=>Promise.resolve().then(()=>UK),void 0,import.meta.url)},{path:"/about",name:"about",component:()=>Tf(()=>Promise.resolve().then(()=>eG),void 0,import.meta.url)},{path:"/options",name:"options",component:()=>Tf(()=>Promise.resolve().then(()=>lG),void 0,import.meta.url)},{path:"/return",name:"return",redirect:e=>(window.location.href=window.location.pathname.endsWith("/")?"..":".","/")}]});function Hf(){return{steps:30,n:1,sampler_name:"Euler",width:512,height:512,cfg_scale:7,seed:-1,denoising_strength:.1}}const kn=ya("generator",()=>{const e=["Text2Img","Img2Img","Inpainting"],t=["Img2Img","Inpainting"],n=se("Text2Img"),r=se(""),i=Rn("promptHistory",[]),l=se(""),m=Rn("negativeLibrary",[]),a=se(Hf()),o=se({interval:0,seconds:0}),u=se({sampler:{name:"Sampler",enabled:!1,selected:["Euler"],noneMessage:"Failed to generate: No sampler selected.",mapToParam:N=>N.sampler_name},steps:{name:"Steps",enabled:!1,selected:[30],noneMessage:"Failed to generate: No steps selected.",mapToParam:N=>N.steps},guidance:{name:"CFG Scale",enabled:!1,selected:[7],noneMessage:"Failed to generate: No guidance selected.",mapToParam:N=>N.cfg_scale}}),h=()=>({sourceProcessing:void 0,sourceImage:void 0,maskImage:void 0}),c=se({...h(),sourceProcessing:"inpainting"}),f=se({...h(),sourceProcessing:"img2img"}),s=N=>N==="Inpainting"?c.value:N==="Img2Img"?f.value:h(),d=ee(()=>s(n.value)),v=se(""),g=se(!1),y=se(!1),b=se([]),_=se([]),w=se(64),S=ee(()=>Jt().allowLargerParams==="Enabled"?3072:1024),x=se(1),T=se(20),O=se(1),A=ee(()=>Jt().allowLargerParams==="Enabled"?500:50),$=se(1),j=se(24),R=se(.1),F=se(1),W=se(((N,H,D)=>Array.from({length:(H-N+1)/D},(B,X)=>(X+N)*D))($.value,j.value,.5)),te=ee(()=>{const N=(ne,G,pe=1)=>ne*(G.enabled?G.selected.length:pe),D=a.value.n*q().length,B=N(D,u.value.sampler),X=N(B,u.value.steps);return N(X,u.value.guidance)});function Q(){return a.value=Hf(),c.value=h(),f.value=h(),b.value=[],Dt().showGeneratedImages=!1,!0}async function le(N){if(!e.includes(N))return[];if(r.value==="")return z("Failed to generate: No prompt submitted.");for(const Pe of Object.values(u.value))if(Pe.enabled&&Pe.selected.length===0)return z(Pe.noneMessage);const H=ds(),D=Dt();H.saveImages();const{sourceImage:B,maskImage:X,sourceProcessing:ae}=s(N);Y(r.value);const ne=[],G=(Pe,ye)=>Pe.enabled?Pe.selected:ye,pe=q(),ie=G(u.value.guidance,[a.value.cfg_scale]),ge=G(u.value.steps,[a.value.steps]),we=G(u.value.sampler,[a.value.sampler_name]),ke=[await de()];for(const Pe of ie)for(const ye of ge)for(const Ce of pe){const Me=Ce.split(" ### ");for(const De of we)for(let lt=0;lt<a.value.n;lt++)ne.push({prompt:Ce,params:{...a.value,sampler_name:De,cfg_scale:Pe,steps:ye,prompt:Me[0],negative_prompt:Me[1]||"",init_images:B?[B.split(",")[1]]:[]},source_image:B==null?void 0:B.split(",")[1],source_mask:X,source_processing:ae,models:ke})}g.value=!0,D.showGeneratedImages=!1;for(let Pe=0;Pe<ne.length;Pe++)_.value.push({...ne[Pe],jobId:"",index:Pe,gathered:!1,failed:!1});b.value=[],y.value=!1;function Ee(Pe){return Math.min(Pe.length,EX)}for(o.value.interval&&(clearInterval(o.value.interval),o.value.interval=0,o.value.seconds=0),o.value.interval=setInterval(()=>{o.value.seconds++},1e3);!_.value.every(Pe=>Pe.gathered||Pe.failed)&&!y.value;){const Pe=_.value.filter(ye=>!ye.gathered&&!ye.failed);await Promise.all(Pe.slice(0,Ee(Pe)).map(async(ye,Ce)=>{y.value||(ye.gathered=!0,Z(ye.params).then(Me=>{if(!Me){ye.failed=!0;return}I([{...Me,...ye}])}))}))}}async function I(N){const H=mo();console.log(N);const D=await Promise.all(N.map(async ae=>{const ne=ae.images[0];return{id:-1,image:`data:image/png;base64,${ne}`,prompt:ae.prompt,modelName:ae.models[0],seed:ae.params.seed,steps:ae.params.steps,sampler_name:ae.params.sampler_name,cfg_scale:ae.params.cfg_scale,width:ae.params.width,height:ae.params.height}})),B=await H.pushOutputs(D),X=0;return b.value=[...B.map(ae=>({type:"image",index:X,output:ae})),...b.value].sort((ae,ne)=>ae.index-ne.index),b.value.length===_.value.length&&(_.value=[],g.value=!1,Dt().showGeneratedImages=!0,clearInterval(o.value.interval),o.value.interval=0,o.value.seconds=0),D}async function z(N){const H=Dt();return N&&H.raiseError(N,!1),[]}function M(N,H,D,B){return H<=D?H:(Dt().raiseWarning(`This image was generated using the 'Larger Values' option. Setting '${N}' to its default value instead of ${H}.`,!0),B)}function L(N,H=!0){const D=Hf();if(n.value="Text2Img",u.value.guidance.enabled=!1,u.value.sampler.enabled=!1,ms.push("/"),H&&(N.width=N.width||D.width,N.height=N.height||D.height),N.prompt){const B=N.prompt.split(" ### ");r.value=B[0],l.value=B[1]||""}N.sampler_name&&(a.value.sampler_name=N.sampler_name),N.steps&&(a.value.steps=M("steps",N.steps,A.value,D.steps)),N.cfg_scale&&(a.value.cfg_scale=N.cfg_scale),N.width&&(a.value.width=M("width",N.width,S.value,D.width)),N.height&&(a.value.height=M("height",N.height,S.value,D.height)),N.seed&&(a.value.seed=N.seed)}function J(N){const H=ds();n.value="Img2Img",f.value.sourceImage=N,H.drawing=!1,b.value=[],ms.push("/"),Xn.fabric.Image.fromURL(N,H.newImage)}function U(N){const H=ds();b.value=[],c.value.sourceImage=N,n.value="Inpainting",ms.push("/"),Xn.fabric.Image.fromURL(N,H.newImage)}function P(){return l.value===""?r.value:`${r.value} ### ${l.value}`}function q(){const N=P(),H=N.match(/\{(.*?)\}/g)||[];if(H.length===0)return[N];let D=[];return H.forEach(B=>{const X=[],ae=B.replace("{","").replace("}","").split("|");D.length===0?ae.forEach(ne=>{const G=N.replace(B,ne);X.push(G)}):D.forEach(ne=>{ae.forEach(G=>{const pe=ne.replace(B,G);X.push(pe)})}),D=[...X]}),D}async function Z(N){const H=Jt();try{const D=await fetch(`${H.baseURL.length===0?".":H.baseURL}/sdapi/v1/${N.init_images.length>0?"img":"txt"}2img`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(N)}),B=await D.json();return gh(D,B,200,"Failed to fetch",re)?B:!1}catch{return!1}}function re(N){return Dt().raiseError(N,!1),y.value=!1,b.value=[],!1}async function de(){const N=Jt(),H=await fetch(`${N.baseURL.length===0?".":N.baseURL}/sdapi/v1/sd-models`),D=await H.json();if(!!gh(H,D,200,"Failed to get available models"))return D.length===0?"(No model loaded)":D[0].model_name}function ve(N){m.value.indexOf(N)===-1&&(m.value=[...m.value,N])}function me(N){m.value=m.value.filter(H=>H!=N)}function Y(N){if(i.value.findIndex(H=>H.prompt===N)===-1){if(i.value.length>=10+i.value.filter(H=>H.starred).length){const H=i.value.filter(B=>!B.starred),D=i.value.findIndex(B=>B===H[H.length-1]);i.value.splice(D,1)}i.value=[...i.value,{starred:!1,timestamp:Date.now(),prompt:N}]}}function K(N){i.value=i.value.filter(H=>H.prompt!=N&&H!=N)}function k(){return!1}return{generatorType:n,prompt:r,params:a,outputs:b,inpainting:c,img2img:f,uploadDimensions:v,cancelled:y,multiSelect:u,negativePrompt:l,generating:g,negativePromptLibrary:m,minDimensions:w,maxDimensions:S,minImages:x,maxImages:T,minSteps:O,maxSteps:A,minCfgScale:$,maxCfgScale:j,minDenoise:R,maxDenoise:F,cfgList:W,queue:_,promptHistory:i,timer:o,validGeneratorTypes:e,sourceGeneratorTypes:t,currentImageProps:d,totalImageCount:te,generateImage:le,generateText2Img:L,generateImg2Img:J,generateInpainting:U,getPrompt:k,resetStore:Q,pushToNegativeLibrary:ve,removeFromNegativeLibrary:me,pushToPromptHistory:Y,removeFromPromptHistory:K}});"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}});var zc=e=>new DataView(new ArrayBuffer(e)),Mo=e=>new Uint8Array(e.buffer||e),Xo=e=>new TextEncoder().encode(String(e));function JX(e,t){if(t===void 0||t instanceof Date||(t=new Date(t)),e instanceof File)return{t:t||new Date(e.lastModified),o:e.stream()};if(e instanceof Response)return{t:t||new Date(e.headers.get("Last-Modified")||Date.now()),o:e.body};if(t===void 0)t=new Date;else if(isNaN(t))throw new Error("Invalid modification date.");if(typeof e=="string")return{t,o:Xo(e)};if(e instanceof Blob)return{t,o:e.stream()};if(e instanceof Uint8Array||e instanceof ReadableStream)return{t,o:e};if(e instanceof ArrayBuffer||ArrayBuffer.isView(e))return{t,o:Mo(e)};if(Symbol.asyncIterator in e)return{t,o:B2(e)};throw new TypeError("Unsupported input format.")}function B2(e){const t="next"in e?e:e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){let r=0;for(;n.desiredSize>r;){const i=await t.next();if(!i.value){n.close();break}{const l=QX(i.value);n.enqueue(l),r+=l.byteLength}}}})}function QX(e){return typeof e=="string"?Xo(e):e instanceof Uint8Array?e:Mo(e)}function eK(e,t,n){if(t===void 0||t instanceof Uint8Array||(t=Xo(t)),e instanceof File)return{i:t||Xo(e.name),A:e.size};if(e instanceof Response){const r=e.headers.get("content-disposition"),i=r&&r.match(/;\s*filename\*?=["']?(.*?)["']?$/i),l=i&&i[1]||new URL(e.url).pathname.split("/").pop(),m=l&&decodeURIComponent(l),a=n||+e.headers.get("content-length");return{i:t||Xo(m),A:a}}if(!t||t.length===0)throw new Error("The file must have a name.");return typeof e=="string"?{i:t,A:Xo(e).length}:e instanceof Blob?{i:t,A:e.size}:e instanceof ArrayBuffer||ArrayBuffer.isView(e)?{i:t,A:e.byteLength}:{i:t,A:n}}var tK=new WebAssembly.Instance(new WebAssembly.Module(Uint8Array.from(atob("AGFzbQEAAAABCgJgAABgAn9/AXwDAwIAAQUDAQACBwkCAW0CAAFjAAEIAQAKlQECSQEDfwNAIAEhAEEAIQIDQCAAQQF2IABBAXFBoIbi7X5scyEAIAJBAWoiAkEIRw0ACyABQQJ0IAA2AgAgAUEBaiIBQYACRw0ACwtJAQF/IAFBf3MhAUGAgAQhAkGAgAQgAGohAANAIAFB/wFxIAItAABzQQJ0KAIAIAFBCHZzIQEgAkEBaiICIABJDQALIAFBf3O4Cw"),e=>e.charCodeAt(0)))),{c:nK,m:rK}=tK.exports,iK=Mo(rK).subarray(65536);function hy(e,t=0){for(const n of function*(r){for(;r.length>65536;)yield r.subarray(0,65536),r=r.subarray(65536);r.length&&(yield r)}(e))iK.set(n),t=nK(n.length,t);return t}function F2(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 oK(e){const t=zc(30);return t.setUint32(0,1347093252),t.setUint32(4,335546368),F2(e.t,t,10),t.setUint16(26,e.i.length,1),Mo(t)}async function*aK(e){let{o:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.u=hy(t,0),e.A=t.length;else{e.A=0;const n=t.getReader();for(;;){const{value:r,done:i}=await n.read();if(i)break;e.u=hy(r,e.u),e.A+=r.length,yield r}}}function sK(e){const t=zc(16);return t.setUint32(0,1347094280),t.setUint32(4,e.u,1),t.setUint32(8,e.A,1),t.setUint32(12,e.A,1),Mo(t)}function lK(e,t){const n=zc(46);return n.setUint32(0,1347092738),n.setUint32(4,352523264),n.setUint16(8,2048),F2(e.t,n,12),n.setUint32(16,e.u,1),n.setUint32(20,e.A,1),n.setUint32(24,e.A,1),n.setUint16(28,e.i.length,1),n.setUint16(40,33204,1),n.setUint32(42,t,1),Mo(n)}function uK(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified]]}function cK(e,t={}){const n={"Content-Type":"application/zip","Content-Disposition":"attachment"};return Number.isInteger(t.length)&&t.length>0&&(n["Content-Length"]=t.length),t.metadata&&(n["Content-Length"]=p(t.metadata)),new Response(B2(async function*(r){const i=[];let l=0,m=0;for await(const u of r)yield oK(u),yield u.i,yield*aK(u),yield sK(u),i.push(lK(u,l)),i.push(u.i),m++,l+=46+u.i.length+u.A;let a=0;for(const u of i)yield u,a+=u.length;const o=zc(22);o.setUint32(0,1347093766),o.setUint16(8,m,1),o.setUint16(10,m,1),o.setUint32(12,a,1),o.setUint32(16,l,1),yield Mo(o)}(async function*(r){for await(const i of r){const[l,m]=uK(i);yield Object.assign(JX(...m),eK(...l))}}(e))),{headers:n})}async function z2(e,t=!0,n){const r=Jt();t&&Pi({message:`Downloading ${e.length} image(s)...`,type:"info"});const i=[];for(let a=0;a<e.length;a++){const o=await Mt.outputs.get(e[a]);if(!o)continue;const{image:u,id:h,...c}=o,f=`${a}-${o.seed}-${o.prompt}`.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd();r.imageDownloadType==="PNG"?i.push({name:f+".png",input:await hs(u,"image/png")}):r.imageDownloadType==="JPG"?i.push({name:f+".jpg",input:await hs(u,"image/jpeg")}):i.push({name:f+".webp",input:await hs(u,"image/webp")}),i.push({name:f+".json",input:JSON.stringify(c,void 0,4)}),n&&n()}const l=await cK(i).blob(),m=document.createElement("a");m.href=URL.createObjectURL(l),m.download="stable_horde.zip",m.click()}async function fK(e,t){const n=Jt(),r=document.createElement("a");let i;n.imageDownloadType==="PNG"?(i=await hs(e,"image/png"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".png"):n.imageDownloadType==="JPG"?(i=await hs(e,"image/jpeg"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".jpg"):(r.href=e,r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".webp"),r.click(),i&&URL.revokeObjectURL(r.href)}const N2=Te({__name:"ImageActions",props:{imageData:null,onDelete:null},setup(e){const t=e,n=kn(),r=mo(),i=()=>{rw.confirm("This action will permanently delete this image. Continue?","Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{r.deleteOutput(t.imageData.id),t.onDelete!==void 0&&t.onDelete(t.imageData.id),Pi({type:"success",message:"Deleted Image"})})};async function l(m){const a=window.location.origin,o={prompt:m.prompt,width:m.width?m.width:void 0,height:m.height?m.height:void 0,steps:m.steps,cfg_scale:m.cfg_scale,sampler_name:m.sampler_name,model_name:m.modelName,seed:m.seed},u=window.location.pathname.replace("images","");let h=`${a}${u}?share=`,c="",f="";for(const[d,v]of Object.entries(o)){if(!v)continue;let g=v;typeof v=="string"?g=encodeURIComponent(v):Array.isArray(v)&&(g=JSON.stringify(v)),c+=`${f}${d}=${g}`,f="&"}h+=btoa(String.fromCharCode.apply(null,Array.from(xX(c)))),await navigator.clipboard.writeText(h),Pi({type:"success",message:"Copied shareable link to clipboard"})}return(m,a)=>(V(),ce(ze,null,[ue(C(dt),{onClick:i,type:"danger",icon:C(_c),plain:""},{default:he(()=>[Ne("Delete")]),_:1},8,["icon"]),ue(C(dt),{onClick:a[0]||(a[0]=o=>C(fK)(e.imageData.image,`${e.imageData.seed}-${e.imageData.prompt}`)),type:"success",icon:C(Os),plain:""},{default:he(()=>[Ne("Download")]),_:1},8,["icon"]),e.imageData.starred?be("",!0):(V(),_e(C(dt),{key:0,onClick:a[1]||(a[1]=o=>C(r).toggleStarred(e.imageData.id)),type:"warning",icon:C(LO),plain:""},{default:he(()=>[Ne("Favourite")]),_:1},8,["icon"])),e.imageData.starred?(V(),_e(C(dt),{key:1,onClick:a[2]||(a[2]=o=>C(r).toggleStarred(e.imageData.id)),type:"warning",icon:C(qb),plain:""},{default:he(()=>[Ne("Unfavourite")]),_:1},8,["icon"])):be("",!0),ue(C(dt),{onClick:a[3]||(a[3]=o=>C(n).generateText2Img(e.imageData)),type:"success",icon:C(Du),plain:""},{default:he(()=>[Ne("Text2img")]),_:1},8,["icon"]),ue(C(dt),{onClick:a[4]||(a[4]=o=>C(n).generateImg2Img(e.imageData.image)),type:"success",icon:C(Du),plain:""},{default:he(()=>[Ne("Img2img")]),_:1},8,["icon"]),ue(C(dt),{onClick:a[5]||(a[5]=o=>l(e.imageData)),type:"success",icon:C(KE),plain:""},{default:he(()=>[Ne("Copy Link")]),_:1},8,["icon"])],64))}}),dK={style:{"font-size":"18px","font-weight":"500"}},hK={style:{"font-family":"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif","letter-spacing":"0.025em"}},pK=Te({__name:"ImageDialog",setup(e){const t=mo(),n=Dt(),r=se();TI(r,{onSwipeEnd(a,o){o==="RIGHT"&&n.openModalToLeft(),o==="LEFT"&&n.openModalToRight()}});const i=ee({get(){return n.activeModal!==-1},set(){n.activeModal=-1}}),l=se(t.currentOutputs[0]);xe(()=>n.activeModal,async()=>{const a=t.currentOutputs.find(o=>o.id===n.activeModal);if(a)return l.value=a;l.value=await Mt.outputs.get(n.activeModal)||t.currentOutputs[0]});function m(){i.value=!1}return(a,o)=>{var u;return V(),_e(C(mB),{"model-value":C(i),width:(u=l.value)==null?void 0:u.width,class:"image-viewer",onClosed:m,"align-center":""},{default:he(()=>{var h,c;return[oe("div",{class:"main-output-container",ref_key:"target",ref:r},[oe("div",{class:"main-output",style:Fe({backgroundImage:`url(${l.value.image||""})`,backgroundSize:"contain",backgroundRepeat:"no-repeat",backgroundPosition:"center center"})},null,4)],512),oe("div",dK,Ae(((h=l.value.prompt)==null?void 0:h.split("###")[0])||"Unkown Creation"),1),oe("div",hK,[oe("div",null,"Negative Prompt: "+Ae(((c=l.value.prompt)==null?void 0:c.split("###")[1])||"None"),1),oe("span",null,"Model: "+Ae(l.value.modelName||"Unknown")+" - ",1),oe("span",null,"Sampler: "+Ae(l.value.sampler_name||"Unknown")+" - ",1),oe("span",null,"Seed: "+Ae(l.value.seed||"Unknown")+" - ",1),oe("span",null,"Steps: "+Ae(l.value.steps||"Unknown")+" - ",1),oe("span",null,"CFG Scale: "+Ae(l.value.cfg_scale||"Unknown")+" - ",1),oe("span",null,"Dimensions: "+Ae(l.value.width||"???")+"x"+Ae(l.value.height||"???")+" - ",1)]),oe("div",null,[ue(N2,{"image-data":l.value},null,8,["image-data"])])]}),_:1},8,["model-value","width"])}}});const gK=e=>(Kr("data-v-8f4d2380"),e=e(),Gr(),e),vK=gK(()=>oe("div",{style:{"font-size":"20px"}},"Stable UI",-1)),mK={class:"generator-icons"},yK=Te({__name:"App",setup(e){const n=sp(ap).smallerOrEqual("md"),r=Dt();Jt();const i=OT(),l=se();return xe(()=>i.path,m=>{l.value&&l.value.open(m)}),(m,a)=>(V(),ce(ze,null,[oe("div",{class:fe({"menu-container":!C(n)})},[ue(C(W1),{"default-active":C(i).path,mode:"horizontal",router:!0,ellipsis:!C(n),class:fe(C(n)?"mobile-menu":"menu"),ref_key:"menuRef",ref:l},{default:he(()=>[C(n)?be("",!0):(V(),_e(C(Tp),{key:0,class:"remove-item-styling center-vertical"},{title:he(()=>[vK]),_:1})),ue(ja,{isMobile:C(n),index:"/"},{icon:he(()=>[oe("div",mK,[ue(C(Re),null,{default:he(()=>[ue(C(L3))]),_:1}),C(r).showGeneratorBadge?(V(),_e(C(Re),{key:0,class:"generator-badge",size:10},{default:he(()=>[ue(OH)]),_:1})):be("",!0)])]),title:he(()=>[Ne("Generate")]),_:1},8,["isMobile"]),ue(ja,{isMobile:C(n),index:"/images"},{icon:he(()=>[ue(C(Re),null,{default:he(()=>[ue(C(f3))]),_:1})]),title:he(()=>[Ne("Images")]),_:1},8,["isMobile"]),ue(ja,{isMobile:C(n),index:"/about"},{icon:he(()=>[ue(C(Re),null,{default:he(()=>[ue(C(Yb))]),_:1})]),title:he(()=>[Ne("About")]),_:1},8,["isMobile"]),ue(ja,{isMobile:C(n),index:"/options"},{icon:he(()=>[ue(C(Re),null,{default:he(()=>[ue(C(UO))]),_:1})]),title:he(()=>[Ne("Options")]),_:1},8,["isMobile"]),ue(ja,{isMobile:C(n),index:"/return"},{icon:he(()=>[ue(C(Re),null,{default:he(()=>[ue(C(Vb))]),_:1})]),title:he(()=>[Ne("Return to Lite")]),_:1},8,["isMobile"])]),_:1},8,["default-active","ellipsis","class"])],2),oe("div",{class:fe({view:!C(n)})},[ue(C(jb))],2),ue(pK)],64))}});const bK=Wt(yK,[["__scopeId","data-v-8f4d2380"]]);const sg=yx(bK);sg.use(wx());sg.use(ms);sg.mount("#app");ms.replace("/");const _K={key:1,class:"image-action"},wK=Te({__name:"CustomImage",props:{imageData:null},setup(e){const t=e,n=Dt(),r=se(null);rI(r,n.toggleMultiSelect,{modifiers:{prevent:!0}});const i=se(!1);xI(r,([{isIntersecting:m}])=>{m&&(i.value=m)},{rootMargin:"500px"});const l=ee(()=>n.selected.includes(t.imageData.id));return(m,a)=>(V(),ce("div",{class:"relative",ref_key:"containerRef",ref:r},[i.value?(V(),_e(C(Sp),{key:0,class:"thumbnail",src:e.imageData.image,onClick:a[0]||(a[0]=o=>C(n).activeModal=e.imageData.id),fit:"cover",loading:"lazy",style:Fe(`${C(l)&&"opacity: 0.5"}`)},null,8,["src","style"])):be("",!0),i.value?(V(),ce("div",_K,[e.imageData.starred?(V(),_e(C(Re),{key:0,class:"starred-icon",size:35,color:"var(--el-color-warning)"},{default:he(()=>[ue(C(qb))]),_:1})):be("",!0),C(n).multiSelect?(V(),ce("div",{key:1,class:"select-container",onClick:a[1]||(a[1]=o=>C(n).toggleSelection(e.imageData.id))},[ue(C(Re),{class:"select-icon",size:35,color:`rgba(255, 255, 255, ${C(l)?"1":"0.5"})`},{default:he(()=>[C(l)?be("",!0):(V(),_e(C(al),{key:0})),C(l)?(V(),_e(C(Ub),{key:1})):be("",!0)]),_:1},8,["color"])])):be("",!0)])):be("",!0)],512))}});const py=Wt(wK,[["__scopeId","data-v-b9569bbd"]]);const CK={},SK={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},xK=oe("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),TK=[xK];function kK(e,t){return V(),ce("svg",SK,TK)}const EK=Wt(CK,[["render",kK]]),OK=e=>(Kr("data-v-301360a8"),e=e(),Gr(),e),AK={class:"images-top-bar"},PK={class:"options"},IK=["onClick"],MK=["onClick"],LK=["onClick"],RK={key:1,class:"center-both",style:{gap:"12px"}},DK={key:2},$K=OK(()=>oe("em",{style:{"font-size":"14px"}},"(long press to select multiple images)",-1)),BK=[$K],FK={key:0},zK={key:0,style:{display:"flex",gap:"8px"}},NK={key:1,class:"images"},jK={key:1},VK=Te({__name:"ImagesView",setup(e){const{width:t}=RI(),n=mo(),r=Jt(),i=Dt();function l(){i.selected=i.selected.filter(f=>!n.currentOutputs.map(s=>s.id).includes(f)),i.selected=[...i.selected,...n.currentOutputs.map(f=>f.id)],i.multiSelect=!0}async function m(){const f=await Mt.outputs.toCollection().primaryKeys();i.selected=f,i.multiSelect=!0}function a(){i.selected=i.selected.filter(f=>!n.currentOutputs.map(s=>s.id).includes(f)),i.selected.length===0&&(i.multiSelect=!1)}function o(){i.selected=[],i.multiSelect=!1}const u=()=>{rw.confirm(`This action will permanently delete ${i.selected.length} images. Continue?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{n.deleteMultipleOutputs(i.selected)})};Gv(["a","A","ArrowLeft"],i.openModalToLeft),Gv(["d","D","ArrowRight"],i.openModalToRight);async function h(){z2(i.selected)}const c=ee(()=>{let f=2;t.value>1440?f=6:t.value>1280?f=5:t.value>768?f=4:t.value>480&&(f=3);const s=[];for(let d=0;d<f;d++){const v=[];for(let g=d;g<n.currentOutputs.length;g+=f)v.push(n.currentOutputs[g]);s.push(v)}return s});return(f,s)=>(V(),ce(ze,null,[oe("div",AK,[oe("div",PK,[ue(C(Nl),{placement:"bottom",title:"Sort By",trigger:"click",width:200,transition:"none","hide-after":0},{reference:he(()=>[ue(C(dt),{class:"btn-select"},{default:he(()=>[ue(C(Re),{size:16},{default:he(()=>[ue(C(CO))]),_:1})]),_:1})]),default:he(()=>[(V(),ce(ze,null,Rt(["Newest","Oldest"],d=>oe("div",{key:d,onClick:()=>C(n).sortBy=d,class:fe(`el-select-dropdown__item ${C(n).sortBy===d?"selected":""}`)},Ae(d),11,IK)),64))]),_:1}),ue(C(Nl),{placement:"bottom",title:"Filter By",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ue(C(dt),{class:"btn-select"},{default:he(()=>[ue(C(Re),{size:16},{default:he(()=>[ue(C(xE))]),_:1})]),_:1})]),default:he(()=>[(V(),ce(ze,null,Rt(["all","favourited","unfavourited","unrated"],d=>oe("div",{key:d,onClick:()=>C(n).filterBy=d,class:fe(`el-select-dropdown__item ${C(n).filterBy===d?"selected":""}`)},Ae(C(n).filterBy===d?"Showing":"Show")+" "+Ae(d),11,MK)),64))]),_:1}),ue(C(Nl),{placement:"bottom",title:"Image Layout",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ue(C(dt),{class:"btn-select"},{default:he(()=>[ue(C(Re),{size:16},{default:he(()=>[ue(EK)]),_:1})]),_:1})]),default:he(()=>[(V(),ce(ze,null,Rt([{label:"Square Grid",value:"grid"},{label:"Dynamic Layout",value:"dynamic"}],d=>oe("div",{key:d.value,onClick:()=>C(n).currentLayout=d.value,class:fe(`el-select-dropdown__item ${C(n).currentLayout===d.value?"selected":""}`)},Ae(d.label),11,LK)),64))]),_:1}),ue(C(Nl),{placement:"bottom",title:"Selection",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ue(C(dt),{class:"btn-select"},{default:he(()=>[ue(C(Re),{size:16},{default:he(()=>[C(i).multiSelect?(V(),_e(C(Ub),{key:0})):(V(),_e(C(al),{key:1}))]),_:1})]),_:1})]),default:he(()=>[C(i).multiSelect?(V(),ce("div",{key:0,class:"el-select-dropdown__item selected",onClick:s[0]||(s[0]=(...d)=>C(i).toggleMultiSelect&&C(i).toggleMultiSelect(...d))},"Disable multi-select")):(V(),ce("div",{key:1,class:"el-select-dropdown__item",onClick:s[1]||(s[1]=(...d)=>C(i).toggleMultiSelect&&C(i).toggleMultiSelect(...d))},"Enable multi-select")),C(i).selected.length>0?(V(),ce("div",{key:2,class:"el-select-dropdown__item selected",onClick:o},"Deselect All")):(V(),ce("div",{key:3,class:"el-select-dropdown__item",onClick:m},"Select All")),C(i).selected.every(d=>!C(n).currentOutputs.map(v=>v.id).includes(d))?(V(),ce("div",{key:5,class:"el-select-dropdown__item",onClick:l},"Select Page")):(V(),ce("div",{key:4,class:"el-select-dropdown__item selected",onClick:a},"Deselect Page"))]),_:1})]),C(r).pageless==="Disabled"?(V(),_e(C(jN),{key:0,layout:"prev, pager, next",total:C(n).outputsLength,"page-size":C(r).pageSize,"current-page":C(n).currentPage,"onUpdate:currentPage":s[2]||(s[2]=d=>C(n).currentPage=d),"hide-on-single-page":""},null,8,["total","page-size","current-page"])):be("",!0),C(i).multiSelect?(V(),ce("div",RK,[oe("div",null,Ae(C(i).selected.length)+" selected",1),ue(C(dt),{type:"danger",onClick:u,icon:C(_c),plain:""},{default:he(()=>[Ne("Delete")]),_:1},8,["icon"]),ue(C(dt),{type:"success",onClick:h,icon:C(Os),plain:"",style:{margin:"0"}},{default:he(()=>[Ne("Download")]),_:1},8,["icon"])])):(V(),ce("div",DK,BK))]),C(n).outputsLength!=0?(V(),ce("div",FK,[C(n).currentLayout==="dynamic"?(V(),ce("div",zK,[(V(!0),ce(ze,null,Rt(C(c),(d,v)=>(V(),ce("div",{key:v,style:{flex:"1 1 0%"}},[(V(!0),ce(ze,null,Rt(d,g=>(V(),_e(py,{key:g.id,"image-data":g,style:{"margin-bottom":"8px"}},null,8,["image-data"]))),128))]))),128))])):be("",!0),C(n).currentLayout==="grid"?(V(),ce("div",NK,[(V(!0),ce(ze,null,Rt(C(n).currentOutputs,d=>(V(),_e(py,{key:d.id,"image-data":d,style:{width:"200px",height:"200px"}},null,8,["image-data"]))),128))])):be("",!0)])):be("",!0),C(n).outputsLength==0?(V(),ce("div",jK,[ue(C(cF),{description:"No Images Found"})])):be("",!0)],64))}});const HK=Wt(VK,[["__scopeId","data-v-301360a8"]]),UK=Object.freeze(Object.defineProperty({__proto__:null,default:HK},Symbol.toStringTag,{value:"Module"})),WK=["href"],YK=Te({__name:"BaseLink",props:{href:null,router:{type:Boolean}},setup(e){return(t,n)=>{const r=ft("router-link");return V(),ce(ze,null,[e.router?be("",!0):(V(),ce("a",{key:0,target:"_blank",rel:"noreferrer noopener",href:e.href},[Se(t.$slots,"default",{},void 0,!0)],8,WK)),e.router?(V(),_e(r,{key:1,to:e.href},{default:he(()=>[Se(t.$slots,"default",{},void 0,!0)]),_:3},8,["to"])):be("",!0)],64)}}});const eu=Wt(YK,[["__scopeId","data-v-17b53b7d"]]),lg=e=>(Kr("data-v-22668836"),e=e(),Gr(),e),XK={class:"about"},KK={class:"about-content"},GK=lg(()=>oe("h1",{style:{"margin-top":"0"}},"Stable UI",-1)),qK=lg(()=>oe("br",null,null,-1)),ZK=lg(()=>oe("br",null,null,-1)),JK=Te({__name:"AboutView",setup(e){return(t,n)=>(V(),ce("div",XK,[oe("div",KK,[GK,oe("div",null,[Ne("This tool was originally a front-end for the AI Horde and has since been converted for local generations with the A1111 API. While Stable UI was originally created as a way to explore web APIs and "),ue(eu,{href:"https://vuejs.org/"},{default:he(()=>[Ne("Vue")]),_:1}),Ne(", it has since evolved into a tool that allows users to easily access Stable Diffusion to create fascinating images!")]),qK,oe("div",null,[Ne("If you want to help improve this tool, you can find the source code from this modified version on https://github.com/ayunami2000/stable-ui and its original AI Horde version on https://github.com/aqualxx/stable-ui. Feel free to contribute! Message the original author on Discord (aqualxx#5004) or through the "),ue(eu,{href:"https://discord.com/channels/781145214752129095/1033312325668708393"},{default:he(()=>[Ne("Stable-UI Suggestions")]),_:1}),Ne(" thread if you have any problems or questions. If you're feeling quite generous, I'd really appreciate it if you were to "),ue(eu,{href:"https://ko-fi.com/aqualxx"},{default:he(()=>[Ne("buy me a coffee")]),_:1}),Ne("! Generate some images and enjoy using this tool.")]),ZK,oe("div",null,[Ne("You can find the KoboldAI community and authors of this fork on the "),ue(eu,{href:"https://koboldai.org/discord"},{default:he(()=>[Ne("KoboldAI Discord")]),_:1})])])]))}});const QK=Wt(JK,[["__scopeId","data-v-22668836"]]),eG=Object.freeze(Object.defineProperty({__proto__:null,default:QK},Symbol.toStringTag,{value:"Module"}));const Uf=Te({__name:"FormRadio",props:{label:null,modelValue:null,prop:null,useBoolean:{type:Boolean},options:null,disabled:{type:Boolean},info:null,labelStyle:null,change:null},emits:["update:modelValue"],setup(e,{emit:t}){const n=e;function r(l){if(n.useBoolean&&l==="Enabled"?t("update:modelValue",!0):n.useBoolean&&l==="Disabled"?t("update:modelValue",!1):t("update:modelValue",l),!!n.change)return n.useBoolean&&l==="Enabled"?n.change(!0):n.useBoolean&&l==="Disabled"?n.change(!1):n.change(l)}const i=ee(()=>n.useBoolean?n.modelValue===!0?"Enabled":n.modelValue===!1?"Disabled":n.modelValue:n.modelValue);return(l,m)=>(V(),_e(C(_i),{prop:e.prop},{label:he(()=>[ue(bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Se(l.$slots,"label",{},()=>[Ne(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ue(C(i$),{disabled:e.disabled,"model-value":C(i),onChange:r},{default:he(()=>[(V(!0),ce(ze,null,Rt(e.options,a=>(V(),_e(C(o$),{key:a,label:a},null,8,["label"]))),128))]),_:1},8,["disabled","model-value"]),Se(l.$slots,"inline")]),_:3},8,["prop"]))}}),xl=e=>(Kr("data-v-1aa3949b"),e=e(),Gr(),e),tG=xl(()=>oe("h1",null,"Options",-1)),nG=xl(()=>oe("h2",null,"Generation Options",-1)),rG=xl(()=>oe("h2",null,"Image Options",-1)),iG=xl(()=>oe("div",null,[Ne("Drop file here OR "),oe("em",null,"click to upload")],-1)),oG=xl(()=>oe("h2",null,"General Options",-1)),aG=Te({__name:"OptionsView",setup(e){const t=Jt(),n=mo(),r=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],i=se([]),l=se(),m=se(!1),a=se(0);async function o(h){n.importFromZip(h),l.value.clearFiles()}async function u(){Pi({message:`Downloading ${n.outputsLength} image(s)... (this may take a while)`,type:"info"}),m.value=!0,a.value=0;const h=await Mt.outputs.toCollection().primaryKeys();await z2(h,!1,()=>{a.value++}),m.value=!1,a.value=0}return(h,c)=>(V(),ce(ze,null,[tG,ue(C(Cp),{"label-position":"top",model:C(t).options,onSubmit:c[7]||(c[7]=Je(()=>{},["prevent"]))},{default:he(()=>[ue(C(d9),{type:"border-card",style:{"min-height":"50vh"}},{default:he(()=>[ue(C(gf),{label:"\u{1F5A8}\uFE0F Generation"},{default:he(()=>[nG,ue(C(_i),{label:"Base URL"},{default:he(()=>[ue(C(Ao),{class:"apikey",prop:"baseURL",modelValue:C(t).baseURL,"onUpdate:modelValue":c[0]||(c[0]=f=>C(t).baseURL=f)},null,8,["modelValue"])]),_:1})]),_:1}),ue(C(gf),{label:"\u{1F4F7} Images"},{default:he(()=>[rG,ue(lr,{label:"Images Per Page",prop:"pageSize",modelValue:C(t).pageSize,"onUpdate:modelValue":c[1]||(c[1]=f=>C(t).pageSize=f),min:10,max:50,step:5,disabled:C(t).pageless==="Enabled"},null,8,["modelValue","disabled"]),ue(Uf,{label:"Pageless Format",prop:"pageless",modelValue:C(t).pageless,"onUpdate:modelValue":c[2]||(c[2]=f=>C(t).pageless=f),options:["Enabled","Disabled"]},null,8,["modelValue"]),ue(Uf,{label:"Carousel Auto Cycle",prop:"autoCarousel",modelValue:C(t).autoCarousel,"onUpdate:modelValue":c[3]||(c[3]=f=>C(t).autoCarousel=f),options:["Enabled","Disabled"]},null,8,["modelValue"]),ue(Uf,{label:"Image Download Format",prop:"downloadType",modelValue:C(t).imageDownloadType,"onUpdate:modelValue":c[4]||(c[4]=f=>C(t).imageDownloadType=f),options:["PNG","JPG","WEBP"]},null,8,["modelValue"]),ue(C(_i),{label:"Export Images (ZIP File)"},{default:he(()=>[m.value?(V(),_e(C(dt),{key:1,icon:C(Os),disabled:""},{default:he(()=>[Ne("Downloading... ("+Ae(a.value)+" / "+Ae(C(n).outputsLength)+" image(s))",1)]),_:1},8,["icon"])):(V(),_e(C(dt),{key:0,icon:C(Os),onClick:c[5]||(c[5]=f=>u())},{default:he(()=>[Ne("Download "+Ae(C(n).outputsLength)+" image(s)",1)]),_:1},8,["icon"]))]),_:1}),ue(C(_i),{label:"Import Images (ZIP File)"},{default:he(()=>[ue(C(Op),{drag:"",ref_key:"upload",ref:l,"auto-upload":!1,onChange:o,"file-list":i.value,limit:1,multiple:""},{default:he(()=>[ue(C(Re),{size:100},{default:he(()=>[ue(C(Yh))]),_:1}),iG]),_:1},8,["file-list"])]),_:1})]),_:1}),ue(C(gf),{label:"\u2699\uFE0F General"},{default:he(()=>[oG,ue(ih,{label:"Color Scheme",prop:"colorScheme",modelValue:C(t).options.colorMode,"onUpdate:modelValue":c[6]||(c[6]=f=>C(t).options.colorMode=f),options:r},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])],64))}});const sG=Wt(aG,[["__scopeId","data-v-1aa3949b"]]),lG=Object.freeze(Object.defineProperty({__proto__:null,default:sG},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}:root{color-scheme:light;--el-color-white:#ffffff;--el-color-black:#000000;--el-color-primary:#409eff;--el-color-primary-light-3:#79bbff;--el-color-primary-light-5:#a0cfff;--el-color-primary-light-7:#c6e2ff;--el-color-primary-light-8:#d9ecff;--el-color-primary-light-9:#ecf5ff;--el-color-primary-dark-2:#337ecc;--el-color-success:#67c23a;--el-color-success-light-3:#95d475;--el-color-success-light-5:#b3e19d;--el-color-success-light-7:#d1edc4;--el-color-success-light-8:#e1f3d8;--el-color-success-light-9:#f0f9eb;--el-color-success-dark-2:#529b2e;--el-color-warning:#e6a23c;--el-color-warning-light-3:#eebe77;--el-color-warning-light-5:#f3d19e;--el-color-warning-light-7:#f8e3c5;--el-color-warning-light-8:#faecd8;--el-color-warning-light-9:#fdf6ec;--el-color-warning-dark-2:#b88230;--el-color-danger:#f56c6c;--el-color-danger-light-3:#f89898;--el-color-danger-light-5:#fab6b6;--el-color-danger-light-7:#fcd3d3;--el-color-danger-light-8:#fde2e2;--el-color-danger-light-9:#fef0f0;--el-color-danger-dark-2:#c45656;--el-color-error:#f56c6c;--el-color-error-light-3:#f89898;--el-color-error-light-5:#fab6b6;--el-color-error-light-7:#fcd3d3;--el-color-error-light-8:#fde2e2;--el-color-error-light-9:#fef0f0;--el-color-error-dark-2:#c45656;--el-color-info:#909399;--el-color-info-light-3:#b1b3b8;--el-color-info-light-5:#c8c9cc;--el-color-info-light-7:#dedfe0;--el-color-info-light-8:#e9e9eb;--el-color-info-light-9:#f4f4f5;--el-color-info-dark-2:#73767a;--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)}.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);transition:var(--el-transition-md-fade);transform-origin:center top}.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);transition:var(--el-transition-md-fade);transform-origin:center bottom}.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);transition:var(--el-transition-md-fade);transform-origin:top left}.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)}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;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);transition:var(--el-transition-md-fade);transform-origin:center top}.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);transition:var(--el-transition-md-fade);transform-origin:center bottom}.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);transition:var(--el-transition-md-fade);transform-origin:top left}.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-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{border-right:solid 1px var(--el-menu-border-color);list-style:none;position:relative;margin:0;padding-left:0;background-color:var(--el-menu-bg-color);box-sizing:border-box}.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{white-space:nowrap;padding-left:calc(var(--el-menu-base-level-padding) + var(--el-menu-level) * var(--el-menu-level-padding))}.el-menu--horizontal{display:flex;flex-wrap:nowrap;border-bottom:solid 1px var(--el-menu-border-color);border-right:none}.el-menu--horizontal>.el-menu-item{display:inline-flex;justify-content:center;align-items:center;height:100%;margin:0;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-menu-item a,.el-menu--horizontal>.el-menu-item a:hover{color:inherit}.el-menu--horizontal>.el-menu-item:not(.is-disabled):focus,.el-menu--horizontal>.el-menu-item:not(.is-disabled):hover{background-color:#fff}.el-menu--horizontal>.el-sub-menu:focus,.el-menu--horizontal>.el-sub-menu:hover{outline:0}.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{height:100%;border-bottom:2px solid transparent;color:var(--el-menu-text-color)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__title:hover{background-color:var(--el-bg-color-overlay)}.el-menu--horizontal>.el-sub-menu .el-sub-menu__icon-arrow{position:static;vertical-align:middle;margin-left:8px;margin-top:-3px}.el-menu--horizontal .el-menu .el-menu-item,.el-menu--horizontal .el-menu .el-sub-menu__title{background-color:var(--el-menu-bg-color);display:flex;align-items:center;height:var(--el-menu-horizontal-sub-item-height);padding:0 10px;color:var(--el-menu-text-color)}.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-sub-menu.is-active>.el-sub-menu__title{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{outline:0;color:var(--el-menu-hover-text-color);background-color:var(--el-menu-hover-bg-color)}.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-sub-menu>.el-sub-menu__title [class^=el-icon]{margin:0;vertical-align:middle;width:var(--el-menu-icon-width);text-align:center}.el-menu--collapse>.el-menu-item .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>span,.el-menu--collapse>.el-sub-menu>.el-sub-menu__title>span{height:0;width:0;overflow:hidden;visibility:hidden;display:inline-block}.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{position:relative}.el-menu--collapse .el-sub-menu .el-menu{position:absolute;margin-left:5px;top:0;left:100%;z-index:10;border:1px solid var(--el-border-color-light);border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu--collapse .el-sub-menu.is-active .el-sub-menu__title{color:var(--el-menu-active-color)}.el-menu--popup{z-index:100;min-width:200px;border:none;padding:5px 0;border-radius:var(--el-border-radius-small);box-shadow:var(--el-box-shadow-light)}.el-menu .el-icon{flex-shrink:0}.el-menu-item{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;white-space:nowrap}.el-menu-item *{vertical-align:bottom}.el-menu-item i{color:inherit}.el-menu-item:focus,.el-menu-item:hover{outline:0}.el-menu-item:hover{background-color:var(--el-menu-hover-bg-color)}.el-menu-item.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.el-menu-item [class^=el-icon]{margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px;vertical-align:middle}.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{position:absolute;left:0;top:0;height:100%;width:100%;display:inline-flex;align-items:center;box-sizing:border-box;padding:0 var(--el-menu-base-level-padding)}.el-sub-menu{list-style:none;margin:0;padding-left:0}.el-sub-menu__title{display:flex;align-items:center;height:var(--el-menu-item-height);line-height:var(--el-menu-item-height);font-size:var(--el-menu-item-font-size);color:var(--el-menu-text-color);padding:0 var(--el-menu-base-level-padding);list-style:none;cursor:pointer;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration),color var(--el-transition-duration);box-sizing:border-box;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:0}.el-sub-menu__title.is-disabled{opacity:.25;cursor:not-allowed;background:0 0!important}.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);min-width:200px}.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{opacity:.25;cursor:not-allowed;background:0 0!important}.el-sub-menu .el-icon{vertical-align:middle;margin-right:5px;width:var(--el-menu-icon-width);text-align:center;font-size:18px}.el-sub-menu .el-icon.el-sub-menu__icon-more{margin-right:0!important}.el-sub-menu .el-sub-menu__icon-arrow{position:absolute;top:50%;right:var(--el-menu-base-level-padding);margin-top:-7px;transition:transform var(--el-transition-duration);font-size:12px;margin-right:0;width:inherit}.el-menu-item-group>ul{padding:0}.el-menu-item-group__title{padding:7px 0 7px var(--el-menu-base-level-padding);line-height:normal;font-size:12px;color:var(--el-text-color-secondary)}.horizontal-collapse-transition .el-sub-menu__title .el-sub-menu__icon-arrow{transition:var(--el-transition-duration-fast);opacity:0}.el-popper{--el-popper-border-radius:var(--el-popover-border-radius, 4px)}.el-popper{position:absolute;border-radius:var(--el-popper-border-radius);padding:5px 11px;z-index:2000;font-size:12px;line-height:20px;min-width:10px;word-wrap:break-word;visibility:visible}.el-popper.is-dark{color:var(--el-bg-color);background:var(--el-text-color-primary);border:1px solid var(--el-text-color-primary)}.el-popper.is-dark .el-popper__arrow:before{border:1px solid var(--el-text-color-primary);background:var(--el-text-color-primary);right:0}.el-popper.is-light{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light)}.el-popper.is-light .el-popper__arrow:before{border:1px solid var(--el-border-color-light);background:var(--el-bg-color-overlay);right:0}.el-popper.is-pure{padding:0}.el-popper__arrow{position:absolute;width:10px;height:10px;z-index:-1}.el-popper__arrow:before{position:absolute;width:10px;height:10px;z-index:-1;content:" ";transform:rotate(45deg);background:var(--el-text-color-primary);box-sizing:border-box}.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-top-color:transparent!important;border-left-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-left-color:transparent!important;border-bottom-color:transparent!important}.el-popper[data-popper-placement^=right] .el-popper__arrow:before{border-right-color:transparent!important;border-top-color:transparent!important}.el-icon-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon--right{margin-left:5px}.el-icon--left{margin-right:5px}@-webkit-keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.el-icon{--color:inherit;height:1em;width:1em;line-height:1em;display:inline-flex;justify-content:center;align-items:center;position:relative;fill:currentColor;color:var(--color);font-size:inherit}.el-icon.is-loading{-webkit-animation:rotating 2s linear infinite;animation:rotating 2s linear infinite}.el-icon svg{height:1em;width:1em}.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;position:relative;vertical-align:middle;display:inline-block}.el-badge__content{background-color:var(--el-badge-bg-color);border-radius:var(--el-badge-radius);color:var(--el-color-white);display:inline-flex;justify-content:center;align-items:center;font-size:var(--el-badge-font-size);height:var(--el-badge-size);padding:0 var(--el-badge-padding);white-space:nowrap;border:1px solid var(--el-bg-color)}.el-badge__content.is-fixed{position:absolute;top:0;right:calc(1px + var(--el-badge-size)/ 2);transform:translateY(-50%) translate(100%)}.el-badge__content.is-fixed.is-dot{right:5px}.el-badge__content.is-dot{height:8px;width:8px;padding:0;right:0;border-radius:50%}.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:15px 19px;--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)}.el-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;max-width:calc(100% - 32px);box-sizing:border-box;border-radius:var(--el-border-radius-base);border-width:var(--el-border-width);border-style:var(--el-border-style);border-color:var(--el-message-border-color);position:fixed;left:50%;top:20px;transform:translate(-50%);background-color:var(--el-message-bg-color);transition:opacity var(--el-transition-duration),transform .4s,top .4s;padding:var(--el-message-padding);display:flex;align-items:center}.el-message.is-center{justify-content:center}.el-message.is-closable .el-message__content{padding-right:31px}.el-message p{margin:0}.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:anywhere}.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:anywhere}.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:anywhere}.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:anywhere}.el-message .el-message-icon--error{color:var(--el-message-text-color)}.el-message__icon{margin-right:10px}.el-message .el-message__badge{position:absolute;top:-8px;right:-8px}.el-message__content{padding:0;font-size:14px;line-height:1}.el-message__content:focus{outline-width:0}.el-message .el-message__closeBtn{position:absolute;top:50%;right:19px;transform:translateY(-50%);cursor:pointer;color:var(--el-message-close-icon-color);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;transform:translate(-50%,-100%)}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.el-popup-parent--hidden{overflow:hidden}.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:20px;--el-dialog-border-radius:var(--el-border-radius-small);position:relative;margin:var(--el-dialog-margin-top,15vh) auto 50px;background:var(--el-dialog-bg-color);border-radius:var(--el-dialog-border-radius);box-shadow:var(--el-dialog-box-shadow);box-sizing:border-box;width:var(--el-dialog-width,50%)}.el-dialog:focus{outline:0!important}.el-dialog.is-align-center{margin:auto}.el-dialog.is-fullscreen{--el-dialog-width:100%;--el-dialog-margin-top:0;margin-bottom:0;height:100%;overflow:auto}.el-dialog__wrapper{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto;margin:0}.el-dialog.is-draggable .el-dialog__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-dialog__header{padding:var(--el-dialog-padding-primary);padding-bottom:10px;margin-right:16px;word-break:break-all}.el-dialog__headerbtn{position:absolute;top:6px;right:0;padding:0;width:54px;height:54px;background:0 0;border:none;outline:0;cursor:pointer;font-size:var(--el-message-close-size,16px)}.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{line-height:var(--el-dialog-font-line-height);font-size:var(--el-dialog-title-font-size);color:var(--el-text-color-primary)}.el-dialog__body{padding:calc(var(--el-dialog-padding-primary) + 10px) var(--el-dialog-padding-primary);color:var(--el-text-color-regular);font-size:var(--el-dialog-content-font-size);word-break:break-all}.el-dialog__footer{padding:var(--el-dialog-padding-primary);padding-top:10px;text-align:right;box-sizing:border-box}.el-dialog--center{text-align:center}.el-dialog--center .el-dialog__body{text-align:initial;padding:25px calc(var(--el-dialog-padding-primary) + 5px) 30px}.el-dialog--center .el-dialog__footer{text-align:inherit}.el-overlay-dialog{position:fixed;top:0;right:0;bottom:0;left:0;overflow:auto}.dialog-fade-enter-active{-webkit-animation:modal-fade-in var(--el-transition-duration);animation:modal-fade-in var(--el-transition-duration)}.dialog-fade-enter-active .el-overlay-dialog{-webkit-animation:dialog-fade-in var(--el-transition-duration);animation:dialog-fade-in var(--el-transition-duration)}.dialog-fade-leave-active{-webkit-animation:modal-fade-out var(--el-transition-duration);animation:modal-fade-out var(--el-transition-duration)}.dialog-fade-leave-active .el-overlay-dialog{-webkit-animation:dialog-fade-out var(--el-transition-duration);animation:dialog-fade-out var(--el-transition-duration)}@-webkit-keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes dialog-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes dialog-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@-webkit-keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@-webkit-keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}@keyframes modal-fade-out{0%{opacity:1}to{opacity:0}}.el-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;height:100%;background-color:var(--el-overlay-color-lighter);overflow:auto}.el-overlay .el-overlay-root{height:0}.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);transition:var(--el-transition-md-fade);transform-origin:center top}.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);transition:var(--el-transition-md-fade);transform-origin:center bottom}.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);transition:var(--el-transition-md-fade);transform-origin:top left}.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)}.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-top:1px solid var(--el-collapse-border-color);border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item.is-disabled .el-collapse-item__header{color:var(--el-text-color-disabled);cursor:not-allowed}.el-collapse-item__header{display:flex;align-items:center;height:var(--el-collapse-header-height);line-height:var(--el-collapse-header-height);background-color:var(--el-collapse-header-bg-color);color:var(--el-collapse-header-text-color);cursor:pointer;border-bottom:1px solid var(--el-collapse-border-color);font-size:var(--el-collapse-header-font-size);font-weight:500;transition:border-bottom-color var(--el-transition-duration);outline:0}.el-collapse-item__arrow{margin:0 8px 0 auto;transition:transform var(--el-transition-duration);font-weight:300}.el-collapse-item__arrow.is-active{transform:rotate(90deg)}.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{will-change:height;background-color:var(--el-collapse-content-bg-color);overflow:hidden;box-sizing:border-box;border-bottom:1px solid var(--el-collapse-border-color)}.el-collapse-item__content{padding-bottom:25px;font-size:var(--el-collapse-content-font-size);color:var(--el-collapse-content-text-color);line-height:1.7692307692}.el-collapse-item:last-child{margin-bottom:-1px}.el-form{--el-form-label-font-size:var(--el-font-size-base)}.el-form--label-left .el-form-item__label{justify-content:flex-start}.el-form--label-top .el-form-item{display:block}.el-form--label-top .el-form-item .el-form-item__label{display:block;height:auto;text-align:left;margin-bottom:8px;line-height:22px}.el-form--inline .el-form-item{display:inline-flex;vertical-align:middle;margin-right:32px}.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-form--large.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:12px;line-height:22px}.el-form--default.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:8px;line-height:22px}.el-form--small.el-form--label-top .el-form-item .el-form-item__label{margin-bottom:4px;line-height:20px}.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-wrap{display:flex}.el-form-item__label{display:inline-flex;justify-content:flex-end;align-items:flex-start;flex:0 0 auto;font-size:var(--el-form-label-font-size);color:var(--el-text-color-regular);height:32px;line-height:32px;padding:0 12px 0 0;box-sizing:border-box}.el-form-item__content{display:flex;flex-wrap:wrap;align-items:center;flex:1;line-height:32px;position:relative;font-size:var(--font-size);min-width:0}.el-form-item__content .el-input-group{vertical-align:top}.el-form-item__error{color:var(--el-color-danger);font-size:12px;line-height:1;padding-top:2px;position:absolute;top:100%;left:0}.el-form-item__error--inline{position:relative;top:auto;left:auto;display:inline-block;margin-left:10px}.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{content:"*";color:var(--el-color-danger);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{content:"*";color:var(--el-color-danger);margin-left:4px}.el-form-item.is-error .el-select-v2__wrapper,.el-form-item.is-error .el-select-v2__wrapper:focus,.el-form-item.is-error .el-textarea__inner,.el-form-item.is-error .el-textarea__inner:focus{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input__wrapper{box-shadow:0 0 0 1px var(--el-color-danger) inset}.el-form-item.is-error .el-input-group__append .el-input__wrapper,.el-form-item.is-error .el-input-group__prepend .el-input__wrapper{box-shadow:0 0 0 1px transparent inset}.el-form-item.is-error .el-input__validateIcon{color:var(--el-color-danger)}.el-form-item--feedback .el-input__validateIcon{display:inline-flex}.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-color-info);--el-button-active-color:var(--el-text-color-primary)}.el-button{display:inline-flex;justify-content:center;align-items:center;line-height:1;height:32px;white-space:nowrap;cursor:pointer;color:var(--el-button-text-color);text-align:center;box-sizing:border-box;outline:0;transition:.1s;font-weight:var(--el-button-font-weight);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;-webkit-appearance:none;background-color:var(--el-button-bg-color);border:var(--el-border);border-color:var(--el-button-border-color);padding:8px 15px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button:focus,.el-button:hover{color:var(--el-button-hover-text-color);border-color:var(--el-button-hover-border-color);background-color:var(--el-button-hover-bg-color);outline:0}.el-button:active{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button:focus-visible{outline:2px solid var(--el-button-outline-color);outline-offset:1px}.el-button>span{display:inline-flex;align-items:center}.el-button+.el-button{margin-left:12px}.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{color:var(--el-button-active-text-color);border-color:var(--el-button-active-border-color);background-color:var(--el-button-active-bg-color);outline:0}.el-button.is-disabled,.el-button.is-disabled:focus,.el-button.is-disabled:hover{color:var(--el-button-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color);border-color:var(--el-button-disabled-border-color)}.el-button.is-loading{position:relative;pointer-events:none}.el-button.is-loading:before{z-index:1;pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;right:-1px;bottom:-1px;border-radius:inherit;background-color:var(--el-mask-color-extra-light)}.el-button.is-round{border-radius:var(--el-border-radius-round)}.el-button.is-circle{border-radius:50%;padding:8px}.el-button.is-text{color:var(--el-button-text-color);border:0 solid transparent;background-color:transparent}.el-button.is-text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important}.el-button.is-text:not(.is-disabled):focus,.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}.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:focus,.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{border-color:transparent;color:var(--el-button-text-color);background:0 0;padding:2px;height:auto}.el-button.is-link:focus,.el-button.is-link:hover{color:var(--el-button-hover-link-text-color)}.el-button.is-link.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button.is-link:not(.is-disabled):focus,.el-button.is-link:not(.is-disabled):hover{border-color:transparent;background-color:transparent}.el-button.is-link:not(.is-disabled):active{color:var(--el-button-active-color);border-color:transparent;background-color:transparent}.el-button--text{border-color:transparent;background:0 0;color:var(--el-color-primary);padding-left:0;padding-right:0}.el-button--text.is-disabled{color:var(--el-button-disabled-text-color);background-color:transparent!important;border-color:transparent!important}.el-button--text:not(.is-disabled):focus,.el-button--text:not(.is-disabled):hover{color:var(--el-color-primary-light-3);border-color:transparent;background-color:transparent}.el-button--text:not(.is-disabled):active{color:var(--el-color-primary-dark-2);border-color:transparent;background-color:transparent}.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{color:var(--el-color-primary-light-5);background-color:var(--el-color-primary-light-9);border-color:var(--el-color-primary-light-8)}.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{color:var(--el-color-success-light-5);background-color:var(--el-color-success-light-9);border-color:var(--el-color-success-light-8)}.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{color:var(--el-color-warning-light-5);background-color:var(--el-color-warning-light-9);border-color:var(--el-color-warning-light-8)}.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{color:var(--el-color-danger-light-5);background-color:var(--el-color-danger-light-9);border-color:var(--el-color-danger-light-8)}.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{color:var(--el-color-info-light-5);background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8)}.el-button--large{--el-button-size:40px;height:var(--el-button-size);padding:12px 19px;font-size:var(--el-font-size-base);border-radius:var(--el-border-radius-base)}.el-button--large [class*=el-icon]+span{margin-left:8px}.el-button--large.is-round{padding:12px 19px}.el-button--large.is-circle{width:var(--el-button-size);padding:12px}.el-button--small{--el-button-size:24px;height:var(--el-button-size);padding:5px 11px;font-size:12px;border-radius:calc(var(--el-border-radius-base) - 1px)}.el-button--small [class*=el-icon]+span{margin-left:4px}.el-button--small.is-round{padding:5px 11px}.el-button--small.is-circle{width:var(--el-button-size);padding:5px}.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)}.el-card{border-radius:var(--el-card-border-radius);border:1px solid var(--el-card-border-color);background-color:var(--el-card-bg-color);overflow:hidden;color:var(--el-text-color-primary);transition:var(--el-transition-duration)}.el-card.is-always-shadow{box-shadow:var(--el-box-shadow-light)}.el-card.is-hover-shadow:focus,.el-card.is-hover-shadow:hover{box-shadow:var(--el-box-shadow-light)}.el-card__header{padding:calc(var(--el-card-padding) - 2px) var(--el-card-padding);border-bottom:1px solid var(--el-card-border-color);box-sizing:border-box}.el-card__body{padding:var(--el-card-padding)}.el-row{display:flex;flex-wrap:wrap;position:relative;box-sizing:border-box}.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-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,.el-col-0.is-guttered{display:none}.el-col-0{max-width:0%;flex:0 0 0%}.el-col-offset-0{margin-left:0}.el-col-pull-0{position:relative;right:0}.el-col-push-0{position:relative;left:0}.el-col-1{max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-offset-1{margin-left:4.1666666667%}.el-col-pull-1{position:relative;right:4.1666666667%}.el-col-push-1{position:relative;left:4.1666666667%}.el-col-2{max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-offset-2{margin-left:8.3333333333%}.el-col-pull-2{position:relative;right:8.3333333333%}.el-col-push-2{position:relative;left:8.3333333333%}.el-col-3{max-width:12.5%;flex:0 0 12.5%}.el-col-offset-3{margin-left:12.5%}.el-col-pull-3{position:relative;right:12.5%}.el-col-push-3{position:relative;left:12.5%}.el-col-4{max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-offset-4{margin-left:16.6666666667%}.el-col-pull-4{position:relative;right:16.6666666667%}.el-col-push-4{position:relative;left:16.6666666667%}.el-col-5{max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-offset-5{margin-left:20.8333333333%}.el-col-pull-5{position:relative;right:20.8333333333%}.el-col-push-5{position:relative;left:20.8333333333%}.el-col-6{max-width:25%;flex:0 0 25%}.el-col-offset-6{margin-left:25%}.el-col-pull-6{position:relative;right:25%}.el-col-push-6{position:relative;left:25%}.el-col-7{max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-offset-7{margin-left:29.1666666667%}.el-col-pull-7{position:relative;right:29.1666666667%}.el-col-push-7{position:relative;left:29.1666666667%}.el-col-8{max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-offset-8{margin-left:33.3333333333%}.el-col-pull-8{position:relative;right:33.3333333333%}.el-col-push-8{position:relative;left:33.3333333333%}.el-col-9{max-width:37.5%;flex:0 0 37.5%}.el-col-offset-9{margin-left:37.5%}.el-col-pull-9{position:relative;right:37.5%}.el-col-push-9{position:relative;left:37.5%}.el-col-10{max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-offset-10{margin-left:41.6666666667%}.el-col-pull-10{position:relative;right:41.6666666667%}.el-col-push-10{position:relative;left:41.6666666667%}.el-col-11{max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-offset-11{margin-left:45.8333333333%}.el-col-pull-11{position:relative;right:45.8333333333%}.el-col-push-11{position:relative;left:45.8333333333%}.el-col-12{max-width:50%;flex:0 0 50%}.el-col-offset-12{margin-left:50%}.el-col-pull-12{position:relative;right:50%}.el-col-push-12{position:relative;left:50%}.el-col-13{max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-offset-13{margin-left:54.1666666667%}.el-col-pull-13{position:relative;right:54.1666666667%}.el-col-push-13{position:relative;left:54.1666666667%}.el-col-14{max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-offset-14{margin-left:58.3333333333%}.el-col-pull-14{position:relative;right:58.3333333333%}.el-col-push-14{position:relative;left:58.3333333333%}.el-col-15{max-width:62.5%;flex:0 0 62.5%}.el-col-offset-15{margin-left:62.5%}.el-col-pull-15{position:relative;right:62.5%}.el-col-push-15{position:relative;left:62.5%}.el-col-16{max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-offset-16{margin-left:66.6666666667%}.el-col-pull-16{position:relative;right:66.6666666667%}.el-col-push-16{position:relative;left:66.6666666667%}.el-col-17{max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-offset-17{margin-left:70.8333333333%}.el-col-pull-17{position:relative;right:70.8333333333%}.el-col-push-17{position:relative;left:70.8333333333%}.el-col-18{max-width:75%;flex:0 0 75%}.el-col-offset-18{margin-left:75%}.el-col-pull-18{position:relative;right:75%}.el-col-push-18{position:relative;left:75%}.el-col-19{max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-offset-19{margin-left:79.1666666667%}.el-col-pull-19{position:relative;right:79.1666666667%}.el-col-push-19{position:relative;left:79.1666666667%}.el-col-20{max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-offset-20{margin-left:83.3333333333%}.el-col-pull-20{position:relative;right:83.3333333333%}.el-col-push-20{position:relative;left:83.3333333333%}.el-col-21{max-width:87.5%;flex:0 0 87.5%}.el-col-offset-21{margin-left:87.5%}.el-col-pull-21{position:relative;right:87.5%}.el-col-push-21{position:relative;left:87.5%}.el-col-22{max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-offset-22{margin-left:91.6666666667%}.el-col-pull-22{position:relative;right:91.6666666667%}.el-col-push-22{position:relative;left:91.6666666667%}.el-col-23{max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-offset-23{margin-left:95.8333333333%}.el-col-pull-23{position:relative;right:95.8333333333%}.el-col-push-23{position:relative;left:95.8333333333%}.el-col-24{max-width:100%;flex:0 0 100%}.el-col-offset-24{margin-left:100%}.el-col-pull-24{position:relative;right:100%}.el-col-push-24{position:relative;left:100%}@media only screen and (max-width:768px){.el-col-xs-0,.el-col-xs-0.is-guttered{display:none}.el-col-xs-0{max-width:0%;flex:0 0 0%}.el-col-xs-offset-0{margin-left:0}.el-col-xs-pull-0{position:relative;right:0}.el-col-xs-push-0{position:relative;left:0}.el-col-xs-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xs-offset-1{margin-left:4.1666666667%}.el-col-xs-pull-1{position:relative;right:4.1666666667%}.el-col-xs-push-1{position:relative;left:4.1666666667%}.el-col-xs-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xs-offset-2{margin-left:8.3333333333%}.el-col-xs-pull-2{position:relative;right:8.3333333333%}.el-col-xs-push-2{position:relative;left:8.3333333333%}.el-col-xs-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xs-offset-3{margin-left:12.5%}.el-col-xs-pull-3{position:relative;right:12.5%}.el-col-xs-push-3{position:relative;left:12.5%}.el-col-xs-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xs-offset-4{margin-left:16.6666666667%}.el-col-xs-pull-4{position:relative;right:16.6666666667%}.el-col-xs-push-4{position:relative;left:16.6666666667%}.el-col-xs-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xs-offset-5{margin-left:20.8333333333%}.el-col-xs-pull-5{position:relative;right:20.8333333333%}.el-col-xs-push-5{position:relative;left:20.8333333333%}.el-col-xs-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xs-offset-6{margin-left:25%}.el-col-xs-pull-6{position:relative;right:25%}.el-col-xs-push-6{position:relative;left:25%}.el-col-xs-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xs-offset-7{margin-left:29.1666666667%}.el-col-xs-pull-7{position:relative;right:29.1666666667%}.el-col-xs-push-7{position:relative;left:29.1666666667%}.el-col-xs-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xs-offset-8{margin-left:33.3333333333%}.el-col-xs-pull-8{position:relative;right:33.3333333333%}.el-col-xs-push-8{position:relative;left:33.3333333333%}.el-col-xs-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xs-offset-9{margin-left:37.5%}.el-col-xs-pull-9{position:relative;right:37.5%}.el-col-xs-push-9{position:relative;left:37.5%}.el-col-xs-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xs-offset-10{margin-left:41.6666666667%}.el-col-xs-pull-10{position:relative;right:41.6666666667%}.el-col-xs-push-10{position:relative;left:41.6666666667%}.el-col-xs-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xs-offset-11{margin-left:45.8333333333%}.el-col-xs-pull-11{position:relative;right:45.8333333333%}.el-col-xs-push-11{position:relative;left:45.8333333333%}.el-col-xs-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xs-offset-12{margin-left:50%}.el-col-xs-pull-12{position:relative;right:50%}.el-col-xs-push-12{position:relative;left:50%}.el-col-xs-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xs-offset-13{margin-left:54.1666666667%}.el-col-xs-pull-13{position:relative;right:54.1666666667%}.el-col-xs-push-13{position:relative;left:54.1666666667%}.el-col-xs-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xs-offset-14{margin-left:58.3333333333%}.el-col-xs-pull-14{position:relative;right:58.3333333333%}.el-col-xs-push-14{position:relative;left:58.3333333333%}.el-col-xs-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xs-offset-15{margin-left:62.5%}.el-col-xs-pull-15{position:relative;right:62.5%}.el-col-xs-push-15{position:relative;left:62.5%}.el-col-xs-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xs-offset-16{margin-left:66.6666666667%}.el-col-xs-pull-16{position:relative;right:66.6666666667%}.el-col-xs-push-16{position:relative;left:66.6666666667%}.el-col-xs-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xs-offset-17{margin-left:70.8333333333%}.el-col-xs-pull-17{position:relative;right:70.8333333333%}.el-col-xs-push-17{position:relative;left:70.8333333333%}.el-col-xs-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xs-offset-18{margin-left:75%}.el-col-xs-pull-18{position:relative;right:75%}.el-col-xs-push-18{position:relative;left:75%}.el-col-xs-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xs-offset-19{margin-left:79.1666666667%}.el-col-xs-pull-19{position:relative;right:79.1666666667%}.el-col-xs-push-19{position:relative;left:79.1666666667%}.el-col-xs-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xs-offset-20{margin-left:83.3333333333%}.el-col-xs-pull-20{position:relative;right:83.3333333333%}.el-col-xs-push-20{position:relative;left:83.3333333333%}.el-col-xs-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xs-offset-21{margin-left:87.5%}.el-col-xs-pull-21{position:relative;right:87.5%}.el-col-xs-push-21{position:relative;left:87.5%}.el-col-xs-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xs-offset-22{margin-left:91.6666666667%}.el-col-xs-pull-22{position:relative;right:91.6666666667%}.el-col-xs-push-22{position:relative;left:91.6666666667%}.el-col-xs-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xs-offset-23{margin-left:95.8333333333%}.el-col-xs-pull-23{position:relative;right:95.8333333333%}.el-col-xs-push-23{position:relative;left:95.8333333333%}.el-col-xs-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xs-offset-24{margin-left:100%}.el-col-xs-pull-24{position:relative;right:100%}.el-col-xs-push-24{position:relative;left:100%}}@media only screen and (min-width:768px){.el-col-sm-0,.el-col-sm-0.is-guttered{display:none}.el-col-sm-0{max-width:0%;flex:0 0 0%}.el-col-sm-offset-0{margin-left:0}.el-col-sm-pull-0{position:relative;right:0}.el-col-sm-push-0{position:relative;left:0}.el-col-sm-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-sm-offset-1{margin-left:4.1666666667%}.el-col-sm-pull-1{position:relative;right:4.1666666667%}.el-col-sm-push-1{position:relative;left:4.1666666667%}.el-col-sm-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-sm-offset-2{margin-left:8.3333333333%}.el-col-sm-pull-2{position:relative;right:8.3333333333%}.el-col-sm-push-2{position:relative;left:8.3333333333%}.el-col-sm-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-sm-offset-3{margin-left:12.5%}.el-col-sm-pull-3{position:relative;right:12.5%}.el-col-sm-push-3{position:relative;left:12.5%}.el-col-sm-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-sm-offset-4{margin-left:16.6666666667%}.el-col-sm-pull-4{position:relative;right:16.6666666667%}.el-col-sm-push-4{position:relative;left:16.6666666667%}.el-col-sm-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-sm-offset-5{margin-left:20.8333333333%}.el-col-sm-pull-5{position:relative;right:20.8333333333%}.el-col-sm-push-5{position:relative;left:20.8333333333%}.el-col-sm-6{display:block;max-width:25%;flex:0 0 25%}.el-col-sm-offset-6{margin-left:25%}.el-col-sm-pull-6{position:relative;right:25%}.el-col-sm-push-6{position:relative;left:25%}.el-col-sm-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-sm-offset-7{margin-left:29.1666666667%}.el-col-sm-pull-7{position:relative;right:29.1666666667%}.el-col-sm-push-7{position:relative;left:29.1666666667%}.el-col-sm-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-sm-offset-8{margin-left:33.3333333333%}.el-col-sm-pull-8{position:relative;right:33.3333333333%}.el-col-sm-push-8{position:relative;left:33.3333333333%}.el-col-sm-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-sm-offset-9{margin-left:37.5%}.el-col-sm-pull-9{position:relative;right:37.5%}.el-col-sm-push-9{position:relative;left:37.5%}.el-col-sm-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-sm-offset-10{margin-left:41.6666666667%}.el-col-sm-pull-10{position:relative;right:41.6666666667%}.el-col-sm-push-10{position:relative;left:41.6666666667%}.el-col-sm-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-sm-offset-11{margin-left:45.8333333333%}.el-col-sm-pull-11{position:relative;right:45.8333333333%}.el-col-sm-push-11{position:relative;left:45.8333333333%}.el-col-sm-12{display:block;max-width:50%;flex:0 0 50%}.el-col-sm-offset-12{margin-left:50%}.el-col-sm-pull-12{position:relative;right:50%}.el-col-sm-push-12{position:relative;left:50%}.el-col-sm-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-sm-offset-13{margin-left:54.1666666667%}.el-col-sm-pull-13{position:relative;right:54.1666666667%}.el-col-sm-push-13{position:relative;left:54.1666666667%}.el-col-sm-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-sm-offset-14{margin-left:58.3333333333%}.el-col-sm-pull-14{position:relative;right:58.3333333333%}.el-col-sm-push-14{position:relative;left:58.3333333333%}.el-col-sm-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-sm-offset-15{margin-left:62.5%}.el-col-sm-pull-15{position:relative;right:62.5%}.el-col-sm-push-15{position:relative;left:62.5%}.el-col-sm-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-sm-offset-16{margin-left:66.6666666667%}.el-col-sm-pull-16{position:relative;right:66.6666666667%}.el-col-sm-push-16{position:relative;left:66.6666666667%}.el-col-sm-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-sm-offset-17{margin-left:70.8333333333%}.el-col-sm-pull-17{position:relative;right:70.8333333333%}.el-col-sm-push-17{position:relative;left:70.8333333333%}.el-col-sm-18{display:block;max-width:75%;flex:0 0 75%}.el-col-sm-offset-18{margin-left:75%}.el-col-sm-pull-18{position:relative;right:75%}.el-col-sm-push-18{position:relative;left:75%}.el-col-sm-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-sm-offset-19{margin-left:79.1666666667%}.el-col-sm-pull-19{position:relative;right:79.1666666667%}.el-col-sm-push-19{position:relative;left:79.1666666667%}.el-col-sm-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-sm-offset-20{margin-left:83.3333333333%}.el-col-sm-pull-20{position:relative;right:83.3333333333%}.el-col-sm-push-20{position:relative;left:83.3333333333%}.el-col-sm-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-sm-offset-21{margin-left:87.5%}.el-col-sm-pull-21{position:relative;right:87.5%}.el-col-sm-push-21{position:relative;left:87.5%}.el-col-sm-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-sm-offset-22{margin-left:91.6666666667%}.el-col-sm-pull-22{position:relative;right:91.6666666667%}.el-col-sm-push-22{position:relative;left:91.6666666667%}.el-col-sm-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-sm-offset-23{margin-left:95.8333333333%}.el-col-sm-pull-23{position:relative;right:95.8333333333%}.el-col-sm-push-23{position:relative;left:95.8333333333%}.el-col-sm-24{display:block;max-width:100%;flex:0 0 100%}.el-col-sm-offset-24{margin-left:100%}.el-col-sm-pull-24{position:relative;right:100%}.el-col-sm-push-24{position:relative;left:100%}}@media only screen and (min-width:992px){.el-col-md-0,.el-col-md-0.is-guttered{display:none}.el-col-md-0{max-width:0%;flex:0 0 0%}.el-col-md-offset-0{margin-left:0}.el-col-md-pull-0{position:relative;right:0}.el-col-md-push-0{position:relative;left:0}.el-col-md-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-md-offset-1{margin-left:4.1666666667%}.el-col-md-pull-1{position:relative;right:4.1666666667%}.el-col-md-push-1{position:relative;left:4.1666666667%}.el-col-md-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-md-offset-2{margin-left:8.3333333333%}.el-col-md-pull-2{position:relative;right:8.3333333333%}.el-col-md-push-2{position:relative;left:8.3333333333%}.el-col-md-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-md-offset-3{margin-left:12.5%}.el-col-md-pull-3{position:relative;right:12.5%}.el-col-md-push-3{position:relative;left:12.5%}.el-col-md-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-md-offset-4{margin-left:16.6666666667%}.el-col-md-pull-4{position:relative;right:16.6666666667%}.el-col-md-push-4{position:relative;left:16.6666666667%}.el-col-md-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-md-offset-5{margin-left:20.8333333333%}.el-col-md-pull-5{position:relative;right:20.8333333333%}.el-col-md-push-5{position:relative;left:20.8333333333%}.el-col-md-6{display:block;max-width:25%;flex:0 0 25%}.el-col-md-offset-6{margin-left:25%}.el-col-md-pull-6{position:relative;right:25%}.el-col-md-push-6{position:relative;left:25%}.el-col-md-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-md-offset-7{margin-left:29.1666666667%}.el-col-md-pull-7{position:relative;right:29.1666666667%}.el-col-md-push-7{position:relative;left:29.1666666667%}.el-col-md-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-md-offset-8{margin-left:33.3333333333%}.el-col-md-pull-8{position:relative;right:33.3333333333%}.el-col-md-push-8{position:relative;left:33.3333333333%}.el-col-md-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-md-offset-9{margin-left:37.5%}.el-col-md-pull-9{position:relative;right:37.5%}.el-col-md-push-9{position:relative;left:37.5%}.el-col-md-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-md-offset-10{margin-left:41.6666666667%}.el-col-md-pull-10{position:relative;right:41.6666666667%}.el-col-md-push-10{position:relative;left:41.6666666667%}.el-col-md-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-md-offset-11{margin-left:45.8333333333%}.el-col-md-pull-11{position:relative;right:45.8333333333%}.el-col-md-push-11{position:relative;left:45.8333333333%}.el-col-md-12{display:block;max-width:50%;flex:0 0 50%}.el-col-md-offset-12{margin-left:50%}.el-col-md-pull-12{position:relative;right:50%}.el-col-md-push-12{position:relative;left:50%}.el-col-md-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-md-offset-13{margin-left:54.1666666667%}.el-col-md-pull-13{position:relative;right:54.1666666667%}.el-col-md-push-13{position:relative;left:54.1666666667%}.el-col-md-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-md-offset-14{margin-left:58.3333333333%}.el-col-md-pull-14{position:relative;right:58.3333333333%}.el-col-md-push-14{position:relative;left:58.3333333333%}.el-col-md-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-md-offset-15{margin-left:62.5%}.el-col-md-pull-15{position:relative;right:62.5%}.el-col-md-push-15{position:relative;left:62.5%}.el-col-md-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-md-offset-16{margin-left:66.6666666667%}.el-col-md-pull-16{position:relative;right:66.6666666667%}.el-col-md-push-16{position:relative;left:66.6666666667%}.el-col-md-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-md-offset-17{margin-left:70.8333333333%}.el-col-md-pull-17{position:relative;right:70.8333333333%}.el-col-md-push-17{position:relative;left:70.8333333333%}.el-col-md-18{display:block;max-width:75%;flex:0 0 75%}.el-col-md-offset-18{margin-left:75%}.el-col-md-pull-18{position:relative;right:75%}.el-col-md-push-18{position:relative;left:75%}.el-col-md-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-md-offset-19{margin-left:79.1666666667%}.el-col-md-pull-19{position:relative;right:79.1666666667%}.el-col-md-push-19{position:relative;left:79.1666666667%}.el-col-md-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-md-offset-20{margin-left:83.3333333333%}.el-col-md-pull-20{position:relative;right:83.3333333333%}.el-col-md-push-20{position:relative;left:83.3333333333%}.el-col-md-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-md-offset-21{margin-left:87.5%}.el-col-md-pull-21{position:relative;right:87.5%}.el-col-md-push-21{position:relative;left:87.5%}.el-col-md-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-md-offset-22{margin-left:91.6666666667%}.el-col-md-pull-22{position:relative;right:91.6666666667%}.el-col-md-push-22{position:relative;left:91.6666666667%}.el-col-md-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-md-offset-23{margin-left:95.8333333333%}.el-col-md-pull-23{position:relative;right:95.8333333333%}.el-col-md-push-23{position:relative;left:95.8333333333%}.el-col-md-24{display:block;max-width:100%;flex:0 0 100%}.el-col-md-offset-24{margin-left:100%}.el-col-md-pull-24{position:relative;right:100%}.el-col-md-push-24{position:relative;left:100%}}@media only screen and (min-width:1200px){.el-col-lg-0,.el-col-lg-0.is-guttered{display:none}.el-col-lg-0{max-width:0%;flex:0 0 0%}.el-col-lg-offset-0{margin-left:0}.el-col-lg-pull-0{position:relative;right:0}.el-col-lg-push-0{position:relative;left:0}.el-col-lg-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-lg-offset-1{margin-left:4.1666666667%}.el-col-lg-pull-1{position:relative;right:4.1666666667%}.el-col-lg-push-1{position:relative;left:4.1666666667%}.el-col-lg-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-lg-offset-2{margin-left:8.3333333333%}.el-col-lg-pull-2{position:relative;right:8.3333333333%}.el-col-lg-push-2{position:relative;left:8.3333333333%}.el-col-lg-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-lg-offset-3{margin-left:12.5%}.el-col-lg-pull-3{position:relative;right:12.5%}.el-col-lg-push-3{position:relative;left:12.5%}.el-col-lg-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-lg-offset-4{margin-left:16.6666666667%}.el-col-lg-pull-4{position:relative;right:16.6666666667%}.el-col-lg-push-4{position:relative;left:16.6666666667%}.el-col-lg-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-lg-offset-5{margin-left:20.8333333333%}.el-col-lg-pull-5{position:relative;right:20.8333333333%}.el-col-lg-push-5{position:relative;left:20.8333333333%}.el-col-lg-6{display:block;max-width:25%;flex:0 0 25%}.el-col-lg-offset-6{margin-left:25%}.el-col-lg-pull-6{position:relative;right:25%}.el-col-lg-push-6{position:relative;left:25%}.el-col-lg-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-lg-offset-7{margin-left:29.1666666667%}.el-col-lg-pull-7{position:relative;right:29.1666666667%}.el-col-lg-push-7{position:relative;left:29.1666666667%}.el-col-lg-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-lg-offset-8{margin-left:33.3333333333%}.el-col-lg-pull-8{position:relative;right:33.3333333333%}.el-col-lg-push-8{position:relative;left:33.3333333333%}.el-col-lg-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-lg-offset-9{margin-left:37.5%}.el-col-lg-pull-9{position:relative;right:37.5%}.el-col-lg-push-9{position:relative;left:37.5%}.el-col-lg-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-lg-offset-10{margin-left:41.6666666667%}.el-col-lg-pull-10{position:relative;right:41.6666666667%}.el-col-lg-push-10{position:relative;left:41.6666666667%}.el-col-lg-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-lg-offset-11{margin-left:45.8333333333%}.el-col-lg-pull-11{position:relative;right:45.8333333333%}.el-col-lg-push-11{position:relative;left:45.8333333333%}.el-col-lg-12{display:block;max-width:50%;flex:0 0 50%}.el-col-lg-offset-12{margin-left:50%}.el-col-lg-pull-12{position:relative;right:50%}.el-col-lg-push-12{position:relative;left:50%}.el-col-lg-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-lg-offset-13{margin-left:54.1666666667%}.el-col-lg-pull-13{position:relative;right:54.1666666667%}.el-col-lg-push-13{position:relative;left:54.1666666667%}.el-col-lg-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-lg-offset-14{margin-left:58.3333333333%}.el-col-lg-pull-14{position:relative;right:58.3333333333%}.el-col-lg-push-14{position:relative;left:58.3333333333%}.el-col-lg-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-lg-offset-15{margin-left:62.5%}.el-col-lg-pull-15{position:relative;right:62.5%}.el-col-lg-push-15{position:relative;left:62.5%}.el-col-lg-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-lg-offset-16{margin-left:66.6666666667%}.el-col-lg-pull-16{position:relative;right:66.6666666667%}.el-col-lg-push-16{position:relative;left:66.6666666667%}.el-col-lg-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-lg-offset-17{margin-left:70.8333333333%}.el-col-lg-pull-17{position:relative;right:70.8333333333%}.el-col-lg-push-17{position:relative;left:70.8333333333%}.el-col-lg-18{display:block;max-width:75%;flex:0 0 75%}.el-col-lg-offset-18{margin-left:75%}.el-col-lg-pull-18{position:relative;right:75%}.el-col-lg-push-18{position:relative;left:75%}.el-col-lg-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-lg-offset-19{margin-left:79.1666666667%}.el-col-lg-pull-19{position:relative;right:79.1666666667%}.el-col-lg-push-19{position:relative;left:79.1666666667%}.el-col-lg-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-lg-offset-20{margin-left:83.3333333333%}.el-col-lg-pull-20{position:relative;right:83.3333333333%}.el-col-lg-push-20{position:relative;left:83.3333333333%}.el-col-lg-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-lg-offset-21{margin-left:87.5%}.el-col-lg-pull-21{position:relative;right:87.5%}.el-col-lg-push-21{position:relative;left:87.5%}.el-col-lg-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-lg-offset-22{margin-left:91.6666666667%}.el-col-lg-pull-22{position:relative;right:91.6666666667%}.el-col-lg-push-22{position:relative;left:91.6666666667%}.el-col-lg-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-lg-offset-23{margin-left:95.8333333333%}.el-col-lg-pull-23{position:relative;right:95.8333333333%}.el-col-lg-push-23{position:relative;left:95.8333333333%}.el-col-lg-24{display:block;max-width:100%;flex:0 0 100%}.el-col-lg-offset-24{margin-left:100%}.el-col-lg-pull-24{position:relative;right:100%}.el-col-lg-push-24{position:relative;left:100%}}@media only screen and (min-width:1920px){.el-col-xl-0,.el-col-xl-0.is-guttered{display:none}.el-col-xl-0{max-width:0%;flex:0 0 0%}.el-col-xl-offset-0{margin-left:0}.el-col-xl-pull-0{position:relative;right:0}.el-col-xl-push-0{position:relative;left:0}.el-col-xl-1{display:block;max-width:4.1666666667%;flex:0 0 4.1666666667%}.el-col-xl-offset-1{margin-left:4.1666666667%}.el-col-xl-pull-1{position:relative;right:4.1666666667%}.el-col-xl-push-1{position:relative;left:4.1666666667%}.el-col-xl-2{display:block;max-width:8.3333333333%;flex:0 0 8.3333333333%}.el-col-xl-offset-2{margin-left:8.3333333333%}.el-col-xl-pull-2{position:relative;right:8.3333333333%}.el-col-xl-push-2{position:relative;left:8.3333333333%}.el-col-xl-3{display:block;max-width:12.5%;flex:0 0 12.5%}.el-col-xl-offset-3{margin-left:12.5%}.el-col-xl-pull-3{position:relative;right:12.5%}.el-col-xl-push-3{position:relative;left:12.5%}.el-col-xl-4{display:block;max-width:16.6666666667%;flex:0 0 16.6666666667%}.el-col-xl-offset-4{margin-left:16.6666666667%}.el-col-xl-pull-4{position:relative;right:16.6666666667%}.el-col-xl-push-4{position:relative;left:16.6666666667%}.el-col-xl-5{display:block;max-width:20.8333333333%;flex:0 0 20.8333333333%}.el-col-xl-offset-5{margin-left:20.8333333333%}.el-col-xl-pull-5{position:relative;right:20.8333333333%}.el-col-xl-push-5{position:relative;left:20.8333333333%}.el-col-xl-6{display:block;max-width:25%;flex:0 0 25%}.el-col-xl-offset-6{margin-left:25%}.el-col-xl-pull-6{position:relative;right:25%}.el-col-xl-push-6{position:relative;left:25%}.el-col-xl-7{display:block;max-width:29.1666666667%;flex:0 0 29.1666666667%}.el-col-xl-offset-7{margin-left:29.1666666667%}.el-col-xl-pull-7{position:relative;right:29.1666666667%}.el-col-xl-push-7{position:relative;left:29.1666666667%}.el-col-xl-8{display:block;max-width:33.3333333333%;flex:0 0 33.3333333333%}.el-col-xl-offset-8{margin-left:33.3333333333%}.el-col-xl-pull-8{position:relative;right:33.3333333333%}.el-col-xl-push-8{position:relative;left:33.3333333333%}.el-col-xl-9{display:block;max-width:37.5%;flex:0 0 37.5%}.el-col-xl-offset-9{margin-left:37.5%}.el-col-xl-pull-9{position:relative;right:37.5%}.el-col-xl-push-9{position:relative;left:37.5%}.el-col-xl-10{display:block;max-width:41.6666666667%;flex:0 0 41.6666666667%}.el-col-xl-offset-10{margin-left:41.6666666667%}.el-col-xl-pull-10{position:relative;right:41.6666666667%}.el-col-xl-push-10{position:relative;left:41.6666666667%}.el-col-xl-11{display:block;max-width:45.8333333333%;flex:0 0 45.8333333333%}.el-col-xl-offset-11{margin-left:45.8333333333%}.el-col-xl-pull-11{position:relative;right:45.8333333333%}.el-col-xl-push-11{position:relative;left:45.8333333333%}.el-col-xl-12{display:block;max-width:50%;flex:0 0 50%}.el-col-xl-offset-12{margin-left:50%}.el-col-xl-pull-12{position:relative;right:50%}.el-col-xl-push-12{position:relative;left:50%}.el-col-xl-13{display:block;max-width:54.1666666667%;flex:0 0 54.1666666667%}.el-col-xl-offset-13{margin-left:54.1666666667%}.el-col-xl-pull-13{position:relative;right:54.1666666667%}.el-col-xl-push-13{position:relative;left:54.1666666667%}.el-col-xl-14{display:block;max-width:58.3333333333%;flex:0 0 58.3333333333%}.el-col-xl-offset-14{margin-left:58.3333333333%}.el-col-xl-pull-14{position:relative;right:58.3333333333%}.el-col-xl-push-14{position:relative;left:58.3333333333%}.el-col-xl-15{display:block;max-width:62.5%;flex:0 0 62.5%}.el-col-xl-offset-15{margin-left:62.5%}.el-col-xl-pull-15{position:relative;right:62.5%}.el-col-xl-push-15{position:relative;left:62.5%}.el-col-xl-16{display:block;max-width:66.6666666667%;flex:0 0 66.6666666667%}.el-col-xl-offset-16{margin-left:66.6666666667%}.el-col-xl-pull-16{position:relative;right:66.6666666667%}.el-col-xl-push-16{position:relative;left:66.6666666667%}.el-col-xl-17{display:block;max-width:70.8333333333%;flex:0 0 70.8333333333%}.el-col-xl-offset-17{margin-left:70.8333333333%}.el-col-xl-pull-17{position:relative;right:70.8333333333%}.el-col-xl-push-17{position:relative;left:70.8333333333%}.el-col-xl-18{display:block;max-width:75%;flex:0 0 75%}.el-col-xl-offset-18{margin-left:75%}.el-col-xl-pull-18{position:relative;right:75%}.el-col-xl-push-18{position:relative;left:75%}.el-col-xl-19{display:block;max-width:79.1666666667%;flex:0 0 79.1666666667%}.el-col-xl-offset-19{margin-left:79.1666666667%}.el-col-xl-pull-19{position:relative;right:79.1666666667%}.el-col-xl-push-19{position:relative;left:79.1666666667%}.el-col-xl-20{display:block;max-width:83.3333333333%;flex:0 0 83.3333333333%}.el-col-xl-offset-20{margin-left:83.3333333333%}.el-col-xl-pull-20{position:relative;right:83.3333333333%}.el-col-xl-push-20{position:relative;left:83.3333333333%}.el-col-xl-21{display:block;max-width:87.5%;flex:0 0 87.5%}.el-col-xl-offset-21{margin-left:87.5%}.el-col-xl-pull-21{position:relative;right:87.5%}.el-col-xl-push-21{position:relative;left:87.5%}.el-col-xl-22{display:block;max-width:91.6666666667%;flex:0 0 91.6666666667%}.el-col-xl-offset-22{margin-left:91.6666666667%}.el-col-xl-pull-22{position:relative;right:91.6666666667%}.el-col-xl-push-22{position:relative;left:91.6666666667%}.el-col-xl-23{display:block;max-width:95.8333333333%;flex:0 0 95.8333333333%}.el-col-xl-offset-23{margin-left:95.8333333333%}.el-col-xl-pull-23{position:relative;right:95.8333333333%}.el-col-xl-push-23{position:relative;left:95.8333333333%}.el-col-xl-24{display:block;max-width:100%;flex:0 0 100%}.el-col-xl-offset-24{margin-left:100%}.el-col-xl-pull-24{position:relative;right:100%}.el-col-xl-push-24{position:relative;left:100%}}.el-progress{position:relative;line-height:1;display:flex;align-items:center}.el-progress__text{font-size:14px;color:var(--el-text-color-regular);margin-left:5px;min-width:50px;line-height:1}.el-progress__text i{vertical-align:middle;display:block}.el-progress--circle,.el-progress--dashboard{display:inline-block}.el-progress--circle .el-progress__text,.el-progress--dashboard .el-progress__text{position:absolute;top:50%;left:0;width:100%;text-align:center;margin:0;transform:translateY(-50%)}.el-progress--circle .el-progress__text i,.el-progress--dashboard .el-progress__text i{vertical-align:middle;display:inline-block}.el-progress--without-text .el-progress__text{display:none}.el-progress--without-text .el-progress-bar{padding-right:0;margin-right:0;display:block}.el-progress--text-inside .el-progress-bar{padding-right:0;margin-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{flex-grow:1;box-sizing:border-box}.el-progress-bar__outer{height:6px;border-radius:100px;background-color:var(--el-border-color-lighter);overflow:hidden;position:relative;vertical-align:middle}.el-progress-bar__inner{position:absolute;left:0;top:0;height:100%;background-color:var(--el-color-primary);text-align:right;border-radius:100px;line-height:1;white-space:nowrap;transition:width .6s ease}.el-progress-bar__inner:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-progress-bar__inner--indeterminate{transform:translateZ(0);-webkit-animation:indeterminate 3s infinite;animation:indeterminate 3s infinite}.el-progress-bar__innerText{display:inline-block;vertical-align:middle;color:#fff;font-size:12px;margin:0 5px}@-webkit-keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@keyframes progress{0%{background-position:0 0}to{background-position:32px 0}}@-webkit-keyframes indeterminate{0%{left:-100%}to{left:100%}}@keyframes indeterminate{0%{left:-100%}to{left:100%}}.view-images[data-v-dc223229],.gen-text[data-v-dc223229]{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-dc223229]{font-weight:400}.view-images[data-v-dc223229]:hover{cursor:pointer;text-decoration:underline}.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}.el-slider{width:100%;height:32px;display:flex;align-items:center}.el-slider__runway{flex:1;height:var(--el-slider-height);background-color:var(--el-slider-runway-bg-color);border-radius:var(--el-slider-border-radius);position:relative;cursor:pointer}.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.hover,.el-slider__runway.is-disabled .el-slider__button-wrapper:hover,.el-slider__runway.is-disabled .el-slider__button-wrapper.dragging{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.hover,.el-slider__runway.is-disabled .el-slider__button:hover,.el-slider__runway.is-disabled .el-slider__button.dragging{cursor:not-allowed}.el-slider__input{flex-shrink:0;width:130px}.el-slider__bar{height:var(--el-slider-height);background-color:var(--el-slider-main-bg-color);border-top-left-radius:var(--el-slider-border-radius);border-bottom-left-radius:var(--el-slider-border-radius);position:absolute}.el-slider__button-wrapper{height:var(--el-slider-button-wrapper-size);width:var(--el-slider-button-wrapper-size);position:absolute;z-index:1;top:var(--el-slider-button-wrapper-offset);transform:translate(-50%);background-color:transparent;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;line-height:normal;outline:0}.el-slider__button-wrapper:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-slider__button-wrapper.hover,.el-slider__button-wrapper:hover{cursor:-webkit-grab;cursor:grab}.el-slider__button-wrapper.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__button{display:inline-block;width:var(--el-slider-button-size);height:var(--el-slider-button-size);vertical-align:middle;border:solid 2px var(--el-slider-main-bg-color);background-color:var(--el-color-white);border-radius:50%;box-sizing:border-box;transition:var(--el-transition-duration-fast);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.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:-webkit-grab;cursor:grab}.el-slider__button.dragging{cursor:-webkit-grabbing;cursor:grabbing}.el-slider__stop{position:absolute;height:var(--el-slider-height);width:var(--el-slider-height);border-radius:var(--el-border-radius-circle);background-color:var(--el-slider-stop-bg-color);transform:translate(-50%)}.el-slider__marks{top:0;left:12px;width:18px;height:100%}.el-slider__marks-text{position:absolute;transform:translate(-50%);font-size:14px;color:var(--el-color-info);margin-top:15px}.el-slider.is-vertical{position:relative;display:inline-flex;width:auto;height:100%;flex:0}.el-slider.is-vertical .el-slider__runway{width:var(--el-slider-height);height:100%;margin:0 16px}.el-slider.is-vertical .el-slider__bar{width:var(--el-slider-height);height:auto;border-radius:0 0 3px 3px}.el-slider.is-vertical .el-slider__button-wrapper{top:auto;left:var(--el-slider-button-wrapper-offset);transform:translateY(50%)}.el-slider.is-vertical .el-slider__stop{transform:translateY(50%)}.el-slider.is-vertical .el-slider__marks-text{margin-top:0;left:15px;transform:translateY(50%)}.el-slider--large{height:40px}.el-slider--small{height:24px}.el-input-number{position:relative;display:inline-block;width:150px;line-height:30px}.el-input-number .el-input__wrapper{padding-left:42px;padding-right:42px}.el-input-number .el-input__inner{-webkit-appearance:none;-moz-appearance:textfield;text-align:center;line-height:1}.el-input-number .el-input__inner::-webkit-inner-spin-button,.el-input-number .el-input__inner::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.el-input-number__decrease,.el-input-number__increase{display:flex;justify-content:center;align-items:center;height:auto;position:absolute;z-index:1;top:1px;bottom:1px;width:32px;background:var(--el-fill-color-light);color:var(--el-text-color-regular);cursor:pointer;font-size:13px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.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{right:1px;border-radius:0 var(--el-border-radius-base) var(--el-border-radius-base) 0;border-left:var(--el-border)}.el-input-number__decrease{left:1px;border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);border-right:var(--el-border)}.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{width:180px;line-height:38px}.el-input-number--large .el-input-number__decrease,.el-input-number--large .el-input-number__increase{width:40px;font-size:14px}.el-input-number--large .el-input__wrapper{padding-left:47px;padding-right:47px}.el-input-number--small{width:120px;line-height:22px}.el-input-number--small .el-input-number__decrease,.el-input-number--small .el-input-number__increase{width:24px;font-size:12px}.el-input-number--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{bottom:auto;left:auto;border-radius:0 var(--el-border-radius-base) 0 0;border-bottom:var(--el-border)}.el-input-number.is-controls-right .el-input-number__decrease{right:1px;top:auto;left:auto;border-right:none;border-left:var(--el-border);border-radius:0 0 var(--el-border-radius-base) 0}.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}.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-textarea{position:relative;display:inline-block;width:100%;vertical-align:bottom;font-size:var(--el-font-size-base)}.el-textarea__inner{position:relative;display:block;resize:vertical;padding:5px 11px;line-height:1.5;box-sizing:border-box;width:100%;font-size:inherit;font-family:inherit;color:var(--el-input-text-color,var(--el-text-color-regular));background-color:var(--el-input-bg-color,var(--el-fill-color-blank));background-image:none;-webkit-appearance:none;box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset;border-radius:var(--el-input-border-radius,var(--el-border-radius-base));transition:var(--el-transition-box-shadow);border:none}.el-textarea__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-textarea__inner:-ms-input-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{outline:0;box-shadow:0 0 0 1px var(--el-input-focus-border-color) inset}.el-textarea .el-input__count{color:var(--el-color-info);background:var(--el-fill-color-blank);position:absolute;font-size:12px;line-height:14px;bottom:5px;right:10px}.el-textarea.is-disabled .el-textarea__inner{background-color:var(--el-disabled-bg-color);border-color:var(--el-disabled-border-color);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:-ms-input-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{border-color:var(--el-color-danger)}.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{--el-input-height:var(--el-component-size);position:relative;font-size:var(--el-font-size-base);display:inline-flex;width:100%;line-height:var(--el-input-height);box-sizing:border-box;vertical-align:middle}.el-input::-webkit-scrollbar{z-index:11;width:6px}.el-input::-webkit-scrollbar:horizontal{height:6px}.el-input::-webkit-scrollbar-thumb{border-radius:5px;width:6px;background:var(--el-text-color-disabled)}.el-input::-webkit-scrollbar-corner{background:var(--el-fill-color-blank)}.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);font-size:14px;cursor:pointer}.el-input .el-input__clear:hover,.el-input .el-input__password:hover{color:var(--el-input-clear-hover-color)}.el-input .el-input__count{height:100%;display:inline-flex;align-items:center;color:var(--el-color-info);font-size:12px}.el-input .el-input__count .el-input__count-inner{background:var(--el-fill-color-blank);line-height:initial;display:inline-block;padding-left:8px}.el-input__wrapper{display:inline-flex;flex-grow:1;align-items:center;justify-content:center;padding:1px 11px;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));transition:var(--el-transition-box-shadow);box-shadow:0 0 0 1px var(--el-input-border-color,var(--el-border-color)) inset}.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__inner{--el-input-inner-height:calc(var(--el-input-height, 32px) - 2px);width:100%;flex-grow:1;-webkit-appearance:none;color:var(--el-input-text-color,var(--el-text-color-regular));font-size:inherit;height:var(--el-input-inner-height);line-height:var(--el-input-inner-height);padding:0;outline:0;border:none;background:0 0;box-sizing:border-box}.el-input__inner:focus{outline:0}.el-input__inner::-moz-placeholder{color:var(--el-input-placeholder-color,var(--el-text-color-placeholder))}.el-input__inner:-ms-input-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__prefix{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__prefix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.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{display:inline-flex;white-space:nowrap;flex-shrink:0;flex-wrap:nowrap;height:100%;text-align:center;color:var(--el-input-icon-color,var(--el-text-color-placeholder));transition:all var(--el-transition-duration);pointer-events:none}.el-input__suffix-inner{pointer-events:all;display:inline-flex;align-items:center;justify-content:center}.el-input__suffix-inner>:first-child{margin-left:8px}.el-input .el-input__icon{height:inherit;line-height:inherit;display:flex;justify-content:center;align-items:center;transition:all var(--el-transition-duration);margin-left:8px}.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}.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:-ms-input-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-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{--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{--el-input-inner-height:calc(var(--el-input-height, 24px) - 2px)}.el-input-group{display:inline-flex;width:100%;align-items:stretch}.el-input-group__append,.el-input-group__prepend{background-color:var(--el-fill-color-light);color:var(--el-color-info);position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:100%;border-radius:var(--el-input-border-radius);padding:0 20px;white-space:nowrap}.el-input-group__append:focus,.el-input-group__prepend:focus{outline:0}.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;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-input__wrapper,.el-input-group__append div.el-select:hover .el-input__wrapper,.el-input-group__prepend button.el-button,.el-input-group__prepend button.el-button:hover,.el-input-group__prepend div.el-select .el-input__wrapper,.el-input-group__prepend div.el-select:hover .el-input__wrapper{border-color:transparent;background-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-right:0;border-top-right-radius:0;border-bottom-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;border-top-left-radius:0;border-bottom-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-group--prepend>.el-input__wrapper{border-top-left-radius:0;border-bottom-left-radius:0}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input .el-input__wrapper{border-top-right-radius:0;border-bottom-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--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper{box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important;z-index:2}.el-input-group--prepend .el-input-group__prepend .el-select .el-input.is-focus .el-input__wrapper:focus{outline:0;z-index:2;box-shadow:1px 0 0 0 var(--el-input-focus-border-color) inset,1px 0 0 0 var(--el-input-focus-border-color),0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--prepend .el-input-group__prepend .el-select:hover .el-input__wrapper{z-index:1;box-shadow:1px 0 0 0 var(--el-input-hover-border-color) inset,1px 0 0 0 var(--el-input-hover-border-color),0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.el-input-group--append>.el-input__wrapper{border-top-right-radius:0;border-bottom-right-radius:0}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input .el-input__wrapper{border-top-left-radius:0;border-bottom-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-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select .el-input.is-focus .el-input__wrapper{z-index:2;box-shadow:-1px 0 0 0 var(--el-input-focus-border-color),-1px 0 0 0 var(--el-input-focus-border-color) inset,0 1px 0 0 var(--el-input-focus-border-color) inset,0 -1px 0 0 var(--el-input-focus-border-color) inset!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__inner{box-shadow:none!important}.el-input-group--append .el-input-group__append .el-select:hover .el-input__wrapper{z-index:1;box-shadow:-1px 0 0 0 var(--el-input-hover-border-color),-1px 0 0 0 var(--el-input-hover-border-color) inset,0 1px 0 0 var(--el-input-hover-border-color) inset,0 -1px 0 0 var(--el-input-hover-border-color) inset!important}.align-vertical[data-v-ec7e7ec1]{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}.el-tag{--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-text-color:var(--el-color-primary);background-color:var(--el-tag-bg-color);border-color:var(--el-tag-border-color);color:var(--el-tag-text-color);display:inline-flex;justify-content:center;align-items:center;height:24px;padding:0 9px;font-size:var(--el-tag-font-size);line-height:1;border-width:1px;border-style:solid;border-radius:var(--el-tag-border-radius);box-sizing:border-box;white-space:nowrap;--el-icon-size:14px}.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.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.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)}.el-tag .el-tag__close:hover{color:var(--el-color-white);background-color:var(--el-tag-hover-color)}.el-tag .el-icon{border-radius:50%;cursor:pointer;font-size:calc(var(--el-icon-size) - 2px);height:var(--el-icon-size);width:var(--el-icon-size)}.el-tag .el-tag__close{margin-left:6px}.el-tag--dark{--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-text-color:var(--el-color-white)}.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--primary,.el-tag--dark.el-tag--success,.el-tag--dark.el-tag--warning,.el-tag--dark.el-tag--danger,.el-tag--dark.el-tag--error,.el-tag--dark.el-tag--info{--el-tag-text-color:var(--el-color-white)}.el-tag--plain{--el-tag-border-color:var(--el-color-primary-light-5);--el-tag-hover-color:var(--el-color-primary);--el-tag-bg-color:var(--el-fill-color-blank)}.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{padding:0 11px;height:32px;--el-icon-size:16px}.el-tag--large .el-tag__close{margin-left:8px}.el-tag--large.is-closable{padding-right:7px}.el-tag--small{padding:0 7px;height:20px;--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__item{font-size:var(--el-font-size-base);padding:0 32px 0 20px;position:relative;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--el-text-color-regular);height:34px;line-height:34px;box-sizing:border-box;cursor:pointer}.el-select-dropdown__item.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-select-dropdown__item.hover,.el-select-dropdown__item:hover{background-color:var(--el-fill-color-light)}.el-select-dropdown__item.selected{color:var(--el-color-primary);font-weight:700}.el-select-group{margin:0;padding:0}.el-select-group__wrap{position:relative;list-style:none;margin:0;padding:0}.el-select-group__wrap:not(:last-of-type){padding-bottom:24px}.el-select-group__wrap:not(:last-of-type):after{content:"";position:absolute;display:block;left:20px;right:20px;bottom:12px;height:1px;background:var(--el-border-color-light)}.el-select-group__split-dash{position:absolute;left:20px;right:20px;height:1px;background:var(--el-border-color-light)}.el-select-group__title{padding-left:20px;font-size:12px;color:var(--el-color-info);line-height:30px}.el-select-group .el-select-dropdown__item{padding-left:20px}.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)}.el-scrollbar{overflow:hidden;position:relative;height:100%}.el-scrollbar__wrap{overflow:auto;height:100%}.el-scrollbar__wrap--hidden-default{scrollbar-width:none}.el-scrollbar__wrap--hidden-default::-webkit-scrollbar{display:none}.el-scrollbar__thumb{position:relative;display:block;width:0;height:0;cursor:pointer;border-radius:inherit;background-color:var(--el-scrollbar-bg-color,var(--el-text-color-secondary));transition:var(--el-transition-duration) background-color;opacity:var(--el-scrollbar-opacity,.3)}.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{position:absolute;right:2px;bottom:2px;z-index:1;border-radius:4px}.el-scrollbar__bar.is-vertical{width:6px;top:2px}.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{z-index:calc(var(--el-index-top) + 1);border-radius:var(--el-border-radius-base);box-sizing:border-box}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.hover{background-color:var(--el-fill-color-light)}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-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;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%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown.is-multiple .el-select-dropdown__item.selected.is-disabled:after{background-color:var(--el-text-color-disabled)}.el-select-dropdown .el-select-dropdown__option-item.is-selected:after{content:"";position:absolute;top:50%;right:20px;border-top:none;border-right:none;background-repeat:no-repeat;background-position:center;background-color:var(--el-color-primary);-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;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%;transform:translateY(-50%);width:12px;height:12px}.el-select-dropdown .el-scrollbar.is-empty .el-select-dropdown__list{padding:0}.el-select-dropdown .el-select-dropdown__item.is-disabled:hover{background-color:unset}.el-select-dropdown .el-select-dropdown__item.is-disabled.selected{color:var(--el-text-color-disabled)}.el-select-dropdown__empty{padding:10px 0;margin:0;text-align:center;color:var(--el-text-color-secondary);font-size:var(--el-select-font-size)}.el-select-dropdown__wrap{max-height:274px}.el-select-dropdown__list{list-style:none;padding:6px 0;margin:0;box-sizing:border-box}.el-select{--el-select-border-color-hover:var(--el-border-color-hover);--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{display:inline-block;position:relative;vertical-align:middle;line-height:32px}.el-select__popper.el-popper{background:var(--el-bg-color-overlay);border:1px solid var(--el-border-color-light);box-shadow:var(--el-box-shadow-light)}.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-top-color:transparent;border-left-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-left-color:transparent;border-bottom-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 .el-select-tags-wrapper.has-prefix{margin-left:6px}.el-select--large{line-height:40px}.el-select--large .el-select-tags-wrapper.has-prefix{margin-left:8px}.el-select--small{line-height:24px}.el-select--small .el-select-tags-wrapper.has-prefix{margin-left:4px}.el-select .el-select__tags>span{display:inline-block}.el-select:hover:not(.el-select--disabled) .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-border-color-hover) inset}.el-select .el-select__tags-text{display:inline-block;line-height:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-select .el-input__wrapper{cursor:pointer}.el-select .el-input__wrapper.is-focus{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select .el-input__inner{cursor:pointer}.el-select .el-input{display:flex}.el-select .el-input .el-select__caret{color:var(--el-select-input-color);font-size:var(--el-select-input-font-size);transition:transform var(--el-transition-duration);transform:rotate(0);cursor:pointer}.el-select .el-input .el-select__caret.is-reverse{transform:rotate(-180deg)}.el-select .el-input .el-select__caret.is-show-close{font-size:var(--el-select-font-size);text-align:center;transform:rotate(0);border-radius:var(--el-border-radius-circle);color:var(--el-select-input-color);transition:var(--el-transition-color)}.el-select .el-input .el-select__caret.is-show-close:hover{color:var(--el-select-close-hover-color)}.el-select .el-input .el-select__caret.el-icon{position:relative;height:inherit;z-index:2}.el-select .el-input.is-disabled .el-input__wrapper{cursor:not-allowed}.el-select .el-input.is-disabled .el-input__wrapper:hover{box-shadow:0 0 0 1px var(--el-select-disabled-border) inset}.el-select .el-input.is-disabled .el-input__inner,.el-select .el-input.is-disabled .el-select__caret{cursor:not-allowed}.el-select .el-input.is-focus .el-input__wrapper{box-shadow:0 0 0 1px var(--el-select-input-focus-border-color) inset!important}.el-select__input{border:none;outline:0;padding:0;margin-left:15px;color:var(--el-select-multiple-input-color);font-size:var(--el-select-font-size);-webkit-appearance:none;-moz-appearance:none;appearance:none;height:28px;background-color:transparent}.el-select__input.is-small{height:14px}.el-select__close{cursor:pointer;position:absolute;top:8px;z-index:var(--el-index-top);right:25px;color:var(--el-select-input-color);line-height:18px;font-size:var(--el-select-input-font-size)}.el-select__close:hover{color:var(--el-select-close-hover-color)}.el-select__tags{position:absolute;line-height:normal;top:50%;transform:translateY(-50%);white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-select__collapse-tags{white-space:normal;z-index:var(--el-index-normal);display:flex;align-items:center;flex-wrap:wrap}.el-select__collapse-tag{line-height:inherit;height:inherit;display:flex}.el-select .el-select__tags .el-tag{box-sizing:border-box;border-color:transparent;margin:2px 6px 2px 0}.el-select .el-select__tags .el-tag:last-child{margin-right:0}.el-select .el-select__tags .el-tag .el-icon-close{background-color:var(--el-text-color-placeholder);right:-7px;top:0;color:#fff}.el-select .el-select__tags .el-tag .el-icon-close:hover{background-color:var(--el-text-color-secondary)}.el-select .el-select__tags .el-tag .el-icon-close:before{display:block;transform:translateY(.5px)}.el-select .el-select__tags .el-tag--info{background-color:var(--el-fill-color)}.el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color)}.el-switch{display:inline-flex;align-items:center;position:relative;font-size:14px;line-height:20px;height:32px;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{transition:var(--el-transition-duration-fast);height:20px;display:inline-block;font-size:14px;font-weight:500;cursor:pointer;vertical-align:middle;color:var(--el-text-color-primary)}.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 *{line-height:1;font-size:14px;display:inline-block}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{position:absolute;width:0;height:0;opacity:0;margin:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{margin:0;display:inline-block;position:relative;width:40px;height:20px;border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));outline:0;border-radius:10px;box-sizing:border-box;background:var(--el-switch-off-color);cursor:pointer;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration);vertical-align:middle}.el-switch__core .el-switch__inner{position:absolute;top:1px;left:1px;transition:all var(--el-transition-duration);width:16px;height:16px;display:flex;justify-content:center;align-items:center;left:50%;white-space:nowrap}.el-switch__core .el-switch__inner .is-icon,.el-switch__core .el-switch__inner .is-text{color:var(--el-color-white);transition:opacity var(--el-transition-duration);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-switch__core .el-switch__action{position:absolute;top:1px;left:1px;border-radius:var(--el-border-radius-circle);transition:all var(--el-transition-duration);width:16px;height:16px;background-color:var(--el-color-white);display:flex;justify-content:center;align-items:center;color:var(--el-switch-off-color)}.el-switch__core .el-switch__action .is-icon,.el-switch__core .el-switch__action .is-text{transition:opacity var(--el-transition-duration);position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-switch__core .is-text{font-size:12px}.el-switch__core .is-show{opacity:1}.el-switch__core .is-hide{opacity:0}.el-switch.is-checked .el-switch__core{border-color:var(--el-switch-border-color,var(--el-switch-on-color));background-color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__action{left:100%;margin-left:-17px;color:var(--el-switch-on-color)}.el-switch.is-checked .el-switch__core .el-switch__inner{left:50%;white-space:nowrap;margin-left:-17px}.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;line-height:24px;height:40px}.el-switch--large .el-switch__label{height:24px;font-size:14px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{width:50px;height:24px;border-radius:12px}.el-switch--large .el-switch__core .el-switch__inner,.el-switch--large .el-switch__core .el-switch__action{width:20px;height:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action,.el-switch--large.is-checked .el-switch__core .el-switch__inner{margin-left:-21px}.el-switch--small{font-size:12px;line-height:16px;height:24px}.el-switch--small .el-switch__label{height:16px;font-size:12px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{width:30px;height:16px;border-radius:8px}.el-switch--small .el-switch__core .el-switch__inner,.el-switch--small .el-switch__core .el-switch__action{width:12px;height:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action,.el-switch--small.is-checked .el-switch__core .el-switch__inner{margin-left:-13px}h3[data-v-cf07eac2]{margin:0}h4[data-v-cf07eac2],h5[data-v-cf07eac2]{margin-bottom:0}.tag-select[data-v-cf07eac2]{display:flex;justify-content:space-between;gap:32px;padding:0 8px;width:240px}.tag-select[data-v-cf07eac2]:hover{background-color:#646464!important}.trigger-select[data-v-cf07eac2]{width:30px;height:30px}[data-v-cf07eac2] .trigger-select .el-input__wrapper{padding:0}[data-v-cf07eac2] .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{overflow-x:hidden}.el-carousel--vertical{overflow-y:hidden}.el-carousel__container{position:relative;height:300px}.el-carousel__arrow{border:none;outline:0;padding:0;margin:0;height:var(--el-carousel-arrow-size);width:var(--el-carousel-arrow-size);cursor:pointer;transition:var(--el-transition-duration);border-radius:50%;background-color:var(--el-carousel-arrow-background);color:#fff;position:absolute;top:50%;z-index:10;transform:translateY(-50%);text-align:center;font-size:var(--el-carousel-arrow-font-size);display:inline-flex;justify-content:center;align-items:center}.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{position:absolute;list-style:none;margin:0;padding:0;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{bottom:calc(var(--el-carousel-indicator-height) + var(--el-carousel-indicator-padding-vertical) * 2);text-align:center;position:static;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--labels{left:0;right:0;transform:none;text-align:center}.el-carousel__indicators--labels .el-carousel__button{height:auto;width:auto;padding:2px 18px;font-size:12px}.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{width:var(--el-carousel-indicator-height);height:calc(var(--el-carousel-indicator-width)/ 2)}.el-carousel__indicator.is-active button{opacity:1}.el-carousel__button{display:block;opacity:.48;width:var(--el-carousel-indicator-width);height:var(--el-carousel-indicator-height);background-color:#fff;border:none;outline:0;padding:0;margin:0;cursor:pointer;transition:var(--el-transition-duration)}.carousel-arrow-left-enter-from,.carousel-arrow-left-leave-active{transform:translateY(-50%) translate(-10px);opacity:0}.carousel-arrow-right-enter-from,.carousel-arrow-right-leave-active{transform:translateY(-50%) translate(10px);opacity:0}.el-carousel__item{position:absolute;top:0;left:0;width:100%;height:100%;display:inline-block;overflow:hidden;z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-active{z-index:calc(var(--el-index-normal) - 1)}.el-carousel__item.is-animating{transition:transform .4s ease-in-out}.el-carousel__item--card{width:50%;transition:transform .4s ease-in-out}.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__mask{position:absolute;width:100%;height:100%;top:0;left:0;background-color:var(--el-color-white);opacity:.24;transition:var(--el-transition-duration-fast)}.el-image__error,.el-image__inner,.el-image__placeholder,.el-image__wrapper{width:100%;height:100%}.el-image{position:relative;display:inline-block;overflow:hidden}.el-image__inner{vertical-align:top;opacity:1}.el-image__inner.is-loading{opacity:0}.el-image__wrapper{position:absolute;top:0;left:0}.el-image__placeholder{background:var(--el-fill-color-light)}.el-image__error{display:flex;justify-content:center;align-items:center;font-size:14px;background:var(--el-fill-color-light);color:var(--el-text-color-placeholder);vertical-align:middle}.el-image__preview{cursor:pointer}.el-image-viewer__wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.el-image-viewer__btn{position:absolute;z-index:1;display:flex;align-items:center;justify-content:center;border-radius:50%;opacity:.8;cursor:pointer;box-sizing:border-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__btn .el-icon{font-size:inherit;cursor:pointer}.el-image-viewer__close{top:40px;right:40px;width:40px;height:40px;font-size:40px}.el-image-viewer__canvas{width:100%;height:100%;display:flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-image-viewer__actions{left:50%;bottom:30px;transform:translate(-50%);width:282px;height:44px;padding:0 23px;background-color:var(--el-text-color-regular);border-color:#fff;border-radius:22px}.el-image-viewer__actions__inner{width:100%;height:100%;text-align:justify;cursor:default;font-size:23px;color:#fff;display:flex;align-items:center;justify-content:space-around}.el-image-viewer__prev{top:50%;transform:translateY(-50%);left:40px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__next{top:50%;transform:translateY(-50%);right:40px;text-indent:2px;width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__close{width:44px;height:44px;font-size:24px;color:#fff;background-color:var(--el-text-color-regular);border-color:#fff}.el-image-viewer__mask{position:absolute;width:100%;height:100%;top:0;left:0;opacity:.5;background:#000}.viewer-fade-enter-active{-webkit-animation:viewer-fade-in var(--el-transition-duration);animation:viewer-fade-in var(--el-transition-duration)}.viewer-fade-leave-active{-webkit-animation:viewer-fade-out var(--el-transition-duration);animation:viewer-fade-out var(--el-transition-duration)}@-webkit-keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes viewer-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes viewer-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.el-divider{position:relative}.el-divider--horizontal{display:block;height:1px;width:100%;margin:24px 0;border-top:1px var(--el-border-color) var(--el-border-style)}.el-divider--vertical{display:inline-block;width:1px;height:1em;margin:0 8px;vertical-align:middle;position:relative;border-left:1px var(--el-border-color) var(--el-border-style)}.el-divider__text{position:absolute;background-color:var(--el-bg-color);padding:0 20px;font-weight:500;color:var(--el-text-color-primary);font-size:14px}.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-274da5ab]{position:absolute;bottom:24px;width:100%}.carousel[data-v-274da5ab]{--el-carousel-indicator-padding-vertical: 4px;width:100%;margin:auto}.carousel-container[data-v-274da5ab]{display:flex;width:100%;height:100%;overflow-y:auto}.back-to-generation[data-v-274da5ab]{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-274da5ab]:hover{cursor:pointer;text-decoration:underline}@media only screen and (max-width: 1280px){.carousel-footer[data-v-274da5ab]{bottom:5px}.carousel-footer>.el-divider[data-v-274da5ab]{margin:5px 0}}.el-upload{--el-upload-dragger-padding-horizontal:40px;--el-upload-dragger-padding-vertical:10px}.el-upload{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;outline:0}.el-upload__input{display:none}.el-upload__tip{font-size:12px;color:var(--el-text-color-regular);margin-top:7px}.el-upload iframe{position:absolute;z-index:-1;top:0;left:0;opacity:0}.el-upload--picture-card{--el-upload-picture-card-size:148px;background-color:var(--el-fill-color-lighter);border:1px dashed var(--el-border-color-darker);border-radius:6px;box-sizing:border-box;width:var(--el-upload-picture-card-size);height:var(--el-upload-picture-card-size);cursor:pointer;vertical-align:top;display:inline-flex;justify-content:center;align-items:center}.el-upload--picture-card i{font-size:28px;color:var(--el-text-color-secondary)}.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{border-color:var(--el-color-primary);color:var(--el-color-primary)}.el-upload:focus .el-upload-dragger{border-color:var(--el-color-primary)}.el-upload-dragger{padding:var(--el-upload-dragger-padding-horizontal) var(--el-upload-dragger-padding-vertical);background-color:var(--el-fill-color-blank);border:1px dashed var(--el-border-color);border-radius:6px;box-sizing:border-box;text-align:center;cursor:pointer;position:relative;overflow:hidden}.el-upload-dragger .el-icon--upload{font-size:67px;color:var(--el-text-color-placeholder);margin-bottom:16px;line-height:50px}.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{padding:calc(var(--el-upload-dragger-padding-horizontal) - 1px) calc(var(--el-upload-dragger-padding-vertical) - 1px);background-color:var(--el-color-primary-light-9);border:2px dashed var(--el-color-primary)}.el-upload-list{margin:10px 0 0;padding:0;list-style:none;position:relative}.el-upload-list__item{transition:all .5s cubic-bezier(.55,0,.1,1);font-size:14px;color:var(--el-text-color-regular);margin-bottom:5px;position:relative;box-sizing:border-box;border-radius:4px;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{display:none;position:absolute;right:5px;top:50%;cursor:pointer;opacity:.75;color:var(--el-text-color-regular);transition:opacity var(--el-transition-duration);transform:translateY(-50%)}.el-upload-list__item .el-icon--close:hover{opacity:1;color:var(--el-color-primary)}.el-upload-list__item .el-icon--close-tip{display:none;position:absolute;top:1px;right:5px;font-size:12px;cursor:pointer;opacity:1;color:var(--el-color-primary);font-style:normal}.el-upload-list__item:hover{background-color:var(--el-fill-color-light)}.el-upload-list__item:hover .el-icon--close{display:inline-flex}.el-upload-list__item:hover .el-progress__text{display:none}.el-upload-list__item .el-upload-list__item-info{display:inline-flex;justify-content:center;flex-direction:column;width:calc(100% - 30px);margin-left:4px}.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:hover .el-upload-list__item-status-label{display:none;opacity:0}.el-upload-list.is-disabled .el-upload-list__item-status-label,.el-upload-list.is-disabled .el-upload-list__item:hover{display:block}.el-upload-list__item-name{color:var(--el-text-color-regular);display:inline-flex;text-align:center;align-items:center;padding:0 4px;transition:color var(--el-transition-duration);font-size:var(--el-font-size-base)}.el-upload-list__item-name .el-icon{margin-right:6px;color:var(--el-text-color-secondary)}.el-upload-list__item-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.el-upload-list__item-status-label{position:absolute;right:5px;top:0;line-height:inherit;display:none;height:100%;justify-content:center;align-items:center;transition:opacity var(--el-transition-duration)}.el-upload-list__item-delete{position:absolute;right:10px;top:0;font-size:12px;color:var(--el-text-color-regular);display:none}.el-upload-list__item-delete:hover{color:var(--el-color-primary)}.el-upload-list--picture-card{--el-upload-list-picture-card-size:148px;display:inline-flex;flex-wrap:wrap;margin:0}.el-upload-list--picture-card .el-upload-list__item{overflow:hidden;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;width:var(--el-upload-list-picture-card-size);height:var(--el-upload-list-picture-card-size);margin:0 8px 8px 0;padding:0;display:inline-flex}.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{opacity:0;display:block}.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{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.el-upload-list--picture-card .el-upload-list__item-status-label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.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{position:absolute;width:100%;height:100%;left:0;top:0;cursor:default;display:inline-flex;justify-content:center;align-items:center;color:#fff;opacity:0;font-size:20px;background-color:var(--el-overlay-color-lighter);transition:opacity var(--el-transition-duration)}.el-upload-list--picture-card .el-upload-list__item-actions span{display:none;cursor:pointer}.el-upload-list--picture-card .el-upload-list__item-actions span+span{margin-left:1rem}.el-upload-list--picture-card .el-upload-list__item-actions .el-upload-list__item-delete{position:static;font-size:inherit;color:inherit}.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{top:50%;left:50%;transform:translate(-50%,-50%);bottom:auto;width:126px}.el-upload-list--picture-card .el-progress .el-progress__text{top:50%}.el-upload-list--picture .el-upload-list__item{overflow:hidden;z-index:0;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:6px;box-sizing:border-box;margin-top:10px;padding:10px;display:flex;align-items:center}.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{opacity:0;display:block}.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{display:inline-flex;justify-content:center;align-items:center;width:70px;height:70px;-o-object-fit:contain;object-fit:contain;position:relative;z-index:1;background-color:var(--el-color-white)}.el-upload-list--picture .el-upload-list__item-status-label{position:absolute;right:-17px;top:-7px;width:46px;height:26px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.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{position:absolute;left:0;top:0;width:100%;height:100%;overflow:hidden;z-index:10;cursor:default}.el-upload-cover:after{display:inline-block;content:"";height:100%;vertical-align:middle}.el-upload-cover img{display:block;width:100%;height:100%}.el-upload-cover__label{right:-15px;top:-6px;width:40px;height:24px;background:var(--el-color-success);text-align:center;transform:rotate(45deg)}.el-upload-cover__label i{font-size:12px;margin-top:11px;transform:rotate(-45deg);color:#fff}.el-upload-cover__progress{display:inline-block;vertical-align:middle;position:static;width:243px}.el-upload-cover__progress+.el-upload__inner{opacity:0}.el-upload-cover__content{position:absolute;top:0;left:0;width:100%;height:100%}.el-upload-cover__interact{position:absolute;bottom:0;left:0;width:100%;height:100%;background-color:var(--el-overlay-color-light);text-align:center}.el-upload-cover__interact .btn{display:inline-block;color:#fff;font-size:14px;cursor:pointer;vertical-align:middle;transition:var(--el-transition-md-fade);margin-top:60px}.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{position:absolute;bottom:0;left:0;background-color:#fff;height:36px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;text-align:left;padding:0 10px;margin:0;line-height:36px;font-size:14px;color:var(--el-text-color-primary)}.el-upload-cover+.el-upload__inner{opacity:0;position:relative;z-index:1}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap}.el-color-predefine__color-selector{margin:0 0 8px 8px;width:20px;height:20px;border-radius:4px;cursor:pointer}.el-color-predefine__color-selector:nth-child(10n+1){margin-left:0}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector>div{display:flex;height:100%;border-radius:3px}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{position:relative;box-sizing:border-box;width:280px;height:12px;background-color:red;padding:0 2px;float:right}.el-color-hue-slider__bar{position:relative;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%);height:100%}.el-color-hue-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-hue-slider.is-vertical{width:12px;height:180px;padding:2px 0}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(to bottom,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-svpanel{position:relative;width:280px;height:180px}.el-color-svpanel__black,.el-color-svpanel__white{position:absolute;top:0;left:0;right:0;bottom:0}.el-color-svpanel__white{background:linear-gradient(to right,#fff,rgba(255,255,255,0))}.el-color-svpanel__black{background:linear-gradient(to top,#000,rgba(0,0,0,0))}.el-color-svpanel__cursor{position:absolute}.el-color-svpanel__cursor>div{cursor:head;width:4px;height:4px;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px #0000004d,0 0 1px 2px #0006;border-radius:50%;transform:translate(-2px,-2px)}.el-color-alpha-slider{position:relative;box-sizing:border-box;width:280px;height:12px;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-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-alpha-slider__bar{position:relative;background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%}.el-color-alpha-slider__thumb{position:absolute;cursor:pointer;box-sizing:border-box;left:0;top:0;width:4px;height:100%;border-radius:1px;background:#fff;border:1px solid var(--el-border-color-lighter);box-shadow:0 0 2px #0009;z-index:1}.el-color-alpha-slider.is-vertical{width:20px;height:180px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(to bottom,rgba(255,255,255,0) 0,#fff 100%)}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{left:0;top:0;width:100%;height:4px}.el-color-dropdown{width:300px}.el-color-dropdown__main-wrapper{margin-bottom:6px}.el-color-dropdown__main-wrapper:after{content:"";display:table;clear:both}.el-color-dropdown__btns{margin-top:12px;text-align:right}.el-color-dropdown__value{float:left;line-height:26px;font-size:12px;color:#000;width:160px}.el-color-picker{display:inline-block;position:relative;line-height:normal}.el-color-picker.is-disabled .el-color-picker__trigger{cursor:not-allowed}.el-color-picker--large{height:40px}.el-color-picker--large .el-color-picker__trigger{height:40px;width:40px}.el-color-picker--large .el-color-picker__mask{height:38px;width:38px}.el-color-picker--small{height:24px}.el-color-picker--small .el-color-picker__trigger{height:24px;width:24px}.el-color-picker--small .el-color-picker__mask{height:22px;width:22px}.el-color-picker--small .el-color-picker__empty,.el-color-picker--small .el-color-picker__icon{transform:scale(.8)}.el-color-picker__mask{height:38px;width:38px;border-radius:4px;position:absolute;top:1px;left:1px;z-index:1;cursor:not-allowed;background-color:#ffffffb3}.el-color-picker__trigger{display:inline-flex;justify-content:center;align-items:center;box-sizing:border-box;height:32px;width:32px;padding:4px;border:1px solid var(--el-border-color);border-radius:4px;font-size:0;position:relative;cursor:pointer}.el-color-picker__color{position:relative;display:block;box-sizing:border-box;border:1px solid var(--el-text-color-secondary);border-radius:var(--el-border-radius-small);width:100%;height:100%;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-size:12px 12px;background-position:0 0,6px 0,6px -6px,0 6px}.el-color-picker__color-inner{display:inline-flex;justify-content:center;align-items:center;width:100%;height:100%}.el-color-picker .el-color-picker__empty{font-size:12px;color:var(--el-text-color-secondary)}.el-color-picker .el-color-picker__icon{display:inline-flex;justify-content:center;align-items:center;color:#fff;font-size:12px}.el-color-picker__panel{position:absolute;z-index:10;padding:6px;box-sizing:content-box;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}.action-buttons[data-v-d200c279]{display:flex;flex-direction:column;position:absolute;gap:10px;top:10px;right:10px}.action-buttons>*[data-v-d200c279]{width:30px;height:30px;margin:0}.canvas-container[data-v-d200c279]{position:relative}@media only screen and (max-width: 1280px){.canvas-container[data-v-d200c279]{transform:scale(.7)}}.firstIcon[data-v-74586a39]{position:absolute;right:15%;bottom:12%;opacity:.8;z-index:0}.secondIcon[data-v-74586a39]{position:absolute;left:15%;top:12%;z-index:1}.centerIcons[data-v-74586a39]{width:var(--2ad037ca);height:var(--2ad037ca);display:flex;align-items:center;justify-content:center}.stackedIcons[data-v-74586a39]{position:relative;width:100%;height:100%}@media only screen and (max-width: 768px){.firstIcon[data-v-74586a39]{right:30%}.secondIcon[data-v-74586a39]{left:30%}}h3[data-v-db184ac6]{margin-bottom:0}.interrogation-upload[data-v-db184ac6]{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}.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:80%;height:100%}.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%}.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{-webkit-animation:v-modal-in var(--el-transition-duration-fast) ease;animation:v-modal-in var(--el-transition-duration-fast) ease}.v-modal-leave{-webkit-animation:v-modal-out var(--el-transition-duration-fast) ease forwards;animation:v-modal-out var(--el-transition-duration-fast) ease forwards}@-webkit-keyframes v-modal-in{0%{opacity:0}}@keyframes v-modal-in{0%{opacity:0}}@-webkit-keyframes v-modal-out{to{opacity:0}}@keyframes v-modal-out{to{opacity:0}}.v-modal{position:fixed;left:0;top:0;width:100%;height:100%;opacity:var(--el-popup-modal-opacity);background:var(--el-popup-modal-bg-color)}.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-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:15px}.el-message-box{display:inline-block;max-width:var(--el-messagebox-width);width:100%;padding-bottom:10px;vertical-align:middle;background-color:var(--el-bg-color);border-radius:var(--el-messagebox-border-radius);border:1px solid var(--el-border-color-lighter);font-size:var(--el-messagebox-font-size);box-shadow:var(--el-box-shadow-light);text-align:left;overflow:hidden;-webkit-backface-visibility:hidden;backface-visibility:hidden}.el-message-box:focus{outline:0!important}.el-overlay.is-message-box .el-overlay-message-box{text-align:center;position:fixed;top:0;right:0;bottom:0;left:0;padding:16px;overflow:auto}.el-overlay.is-message-box .el-overlay-message-box:after{content:"";display:inline-block;height:100%;width:0;vertical-align:middle}.el-message-box.is-draggable .el-message-box__header{cursor:move;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.el-message-box__header{position:relative;padding:var(--el-messagebox-padding-primary);padding-bottom:10px}.el-message-box__title{padding-left:0;margin-bottom:0;font-size:var(--el-messagebox-font-size);line-height:1;color:var(--el-messagebox-title-color)}.el-message-box__headerbtn{position:absolute;top:var(--el-messagebox-padding-primary);right:var(--el-messagebox-padding-primary);padding:0;border:none;outline:0;background:0 0;font-size:var(--el-message-close-size,16px);cursor:pointer}.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{padding:10px var(--el-messagebox-padding-primary);color:var(--el-messagebox-content-color);font-size:var(--el-messagebox-content-font-size)}.el-message-box__container{position:relative}.el-message-box__input{padding-top:15px}.el-message-box__input div.invalid>input{border-color:var(--el-color-error)}.el-message-box__input div.invalid>input:focus{border-color:var(--el-color-error)}.el-message-box__status{position:absolute;top:50%;transform:translateY(-50%);font-size:24px!important}.el-message-box__status:before{padding-left:1px}.el-message-box__status.el-icon{position:absolute}.el-message-box__status+.el-message-box__message{padding-left:36px;padding-right:12px;word-break:break-word}.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}.el-message-box__message p{margin:0;line-height:24px}.el-message-box__errormsg{color:var(--el-color-error);font-size:var(--el-messagebox-error-font-size);min-height:18px;margin-top:2px}.el-message-box__btns{padding:5px 15px 0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center}.el-message-box__btns button:nth-child(2){margin-left:10px}.el-message-box__btns-reverse{flex-direction:row-reverse}.el-message-box--center .el-message-box__title{position:relative;display:flex;align-items:center;justify-content:center}.el-message-box--center .el-message-box__status{position:relative;top:auto;padding-right:5px;text-align:center;transform:translateY(-1px)}.el-message-box--center .el-message-box__message{margin-left:0}.el-message-box--center .el-message-box__btns{justify-content:center}.el-message-box--center .el-message-box__content{padding-left:calc(var(--el-messagebox-padding-primary) + 12px);padding-right:calc(var(--el-messagebox-padding-primary) + 12px);text-align:center}.fade-in-linear-enter-active .el-overlay-message-box{-webkit-animation:msgbox-fade-in var(--el-transition-duration);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}@-webkit-keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@keyframes msgbox-fade-in{0%{transform:translate3d(0,-20px,0);opacity:0}to{transform:translateZ(0);opacity:1}}@-webkit-keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}@keyframes msgbox-fade-out{0%{transform:translateZ(0);opacity:1}to{transform:translate3d(0,-20px,0);opacity:0}}.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: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%}@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-8f4d2380]:not(.is-disabled):focus,.el-menu--horizontal .el-menu-item[data-v-8f4d2380]:not(.is-disabled):hover{background-color:transparent!important}.remove-item-styling[data-v-8f4d2380]{cursor:default;color:var(--el-menu-text-color)!important;background-color:transparent!important}.remove-item-styling[data-v-8f4d2380]:hover{cursor:default;color:var(--el-menu-text-color)!important}.view[data-v-8f4d2380]{margin-top:80px}.generator-icons[data-v-8f4d2380]{position:relative;display:inline-flex;justify-content:center;align-items:center}.generator-badge[data-v-8f4d2380]{position:absolute;bottom:9px;right:-7px;color:var(--el-color-danger)!important}.mobile-menu[data-v-8f4d2380]{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-8f4d2380]{width:60px}html.dark{color-scheme:dark;--el-color-primary:#409eff;--el-color-primary-light-3:#3375b9;--el-color-primary-light-5:#2a598a;--el-color-primary-light-7:#213d5b;--el-color-primary-light-8:#1d3043;--el-color-primary-light-9:#18222c;--el-color-primary-dark-2:#66b1ff;--el-color-success:#67c23a;--el-color-success-light-3:#4e8e2f;--el-color-success-light-5:#3e6b27;--el-color-success-light-7:#2d481f;--el-color-success-light-8:#25371c;--el-color-success-light-9:#1c2518;--el-color-success-dark-2:#85ce61;--el-color-warning:#e6a23c;--el-color-warning-light-3:#a77730;--el-color-warning-light-5:#7d5b28;--el-color-warning-light-7:#533f20;--el-color-warning-light-8:#3e301c;--el-color-warning-light-9:#292218;--el-color-warning-dark-2:#ebb563;--el-color-danger:#f56c6c;--el-color-danger-light-3:#b25252;--el-color-danger-light-5:#854040;--el-color-danger-light-7:#582e2e;--el-color-danger-light-8:#412626;--el-color-danger-light-9:#2b1d1d;--el-color-danger-dark-2:#f78989;--el-color-error:#f56c6c;--el-color-error-light-3:#b25252;--el-color-error-light-5:#854040;--el-color-error-light-7:#582e2e;--el-color-error-light-8:#412626;--el-color-error-light-9:#2b1d1d;--el-color-error-dark-2:#f78989;--el-color-info:#909399;--el-color-info-light-3:#6b6d71;--el-color-info-light-5:#525457;--el-color-info-light-7:#393a3c;--el-color-info-light-8:#2d2d2f;--el-color-info-light-9:#202121;--el-color-info-dark-2:#a6a9ad;--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:transparent;--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)}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}.thumbnail[data-v-b9569bbd]{display:block;width:100%;height:100%;border-radius:4px}.thumbnail[data-v-b9569bbd]:hover{cursor:pointer}.relative[data-v-b9569bbd]{position:relative}.image-action[data-v-b9569bbd]{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.starred-icon[data-v-b9569bbd]{position:absolute;left:5px;top:5px}.select-container[data-v-b9569bbd]{position:absolute;width:100%;height:100%;pointer-events:all}.select-icon[data-v-b9569bbd]{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;display:flex;justify-content:center;align-items:center;flex-direction:column;text-align:center;box-sizing:border-box;padding:var(--el-empty-padding)}.el-empty__image{width:var(--el-empty-image-width)}.el-empty__image img{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;width:100%;height:100%;vertical-align:top;-o-object-fit:contain;object-fit:contain}.el-empty__image svg{color:var(--el-svg-monochrome-grey);fill:currentColor;width:100%;height:100%;vertical-align:top}.el-empty__description{margin-top:var(--el-empty-description-margin-top)}.el-empty__description p{margin:0;font-size:var(--el-font-size-base);color:var(--el-text-color-secondary)}.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:3px;--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-height-extra-small:24px;--el-pagination-line-height-extra-small:var(--el-pagination-height-extra-small);white-space:nowrap;padding:2px 5px;color:var(--el-pagination-text-color);font-weight:400;display:flex;align-items:center}.el-pagination:after,.el-pagination:before{display:table;content:""}.el-pagination:after{clear:both}.el-pagination button,.el-pagination span:not([class*=suffix]){display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);box-sizing:border-box}.el-pagination .el-input__inner{text-align:center;-moz-appearance:textfield;line-height:normal}.el-pagination .el-select .el-input{width:128px}.el-pagination button{border:none;padding:0 6px;background:0 0}.el-pagination button:focus{outline:0}.el-pagination button:hover{color:var(--el-pagination-hover-color)}.el-pagination button:disabled{color:var(--el-pagination-button-disabled-color);background-color:var(--el-pagination-button-disabled-bg-color);cursor:not-allowed}.el-pagination .btn-next,.el-pagination .btn-prev{background:center center no-repeat;background-size:16px;background-color:var(--el-pagination-bg-color);cursor:pointer;margin:0;color:var(--el-pagination-button-color)}.el-pagination .btn-next .el-icon,.el-pagination .btn-prev .el-icon{display:block;font-size:12px;font-weight:700;width:inherit}.el-pagination .btn-next:focus-visible,.el-pagination .btn-prev:focus-visible{outline:1px solid var(--el-pagination-hover-color);color:var(--el-pagination-hover-color)}.el-pagination .el-pager li.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-pagination--small .btn-next,.el-pagination--small .btn-prev,.el-pagination--small .el-pager li,.el-pagination--small .el-pager li.btn-quicknext,.el-pagination--small .el-pager li.btn-quickprev,.el-pagination--small .el-pager li:last-child{border-color:transparent;font-size:var(--el-font-size-extra-small);line-height:var(--el-pagination-line-height-extra-small);height:var(--el-pagination-height-extra-small);min-width:24px}.el-pagination--small .arrow.is-disabled{visibility:hidden}.el-pagination--small .more:before,.el-pagination--small li.more:before{line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small button,.el-pagination--small span:not([class*=suffix]){height:var(--el-pagination-height-extra-small);line-height:var(--el-pagination-line-height-extra-small);font-size:var(--el-font-size-extra-small)}.el-pagination--small .el-pagination__editor{height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-pagination__editor.el-input .el-input__inner{height:var(--el-pagination-height-extra-small)}.el-pagination--small .el-input--small,.el-pagination--small .el-input__inner{height:var(--el-pagination-height-extra-small)!important;line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-input__suffix,.el-pagination--small .el-input__suffix .el-input__suffix-inner,.el-pagination--small .el-input__suffix .el-input__suffix-inner i.el-select__caret{line-height:var(--el-pagination-line-height-extra-small)}.el-pagination--small .el-select .el-input{width:100px}.el-pagination__sizes{margin:0 16px 0 0;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__sizes+button.btn-prev[type=button]{margin-left:0}.el-pagination__sizes+.el-pager .number:first-child{margin-left:0}.el-pagination__sizes+.el-pager .number:last-child{margin-right:0}.el-pagination__total{margin-right:16px;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__total+button.btn-prev[type=button]{margin-left:0}.el-pagination__total+.el-pager .number:first-child{margin-left:0}.el-pagination__total+.el-pager .number:last-child{margin-right:0}.el-pagination__total[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__jump{margin-left:16px;font-weight:400;color:var(--el-text-color-regular)}.el-pagination__jump .el-input__inner{padding:0 3px}.el-pagination__jump[disabled=true]{color:var(--el-text-color-placeholder)}.el-pagination__rightwrapper{flex:1;display:flex;align-items:center;justify-content:flex-end}.el-pagination__editor{line-height:18px;margin:0 8px;height:var(--el-pagination-button-height);min-width:56px;text-align:center;box-sizing:border-box;border-radius:var(--el-pagination-border-radius)}.el-pagination__editor.el-input{width:50px}.el-pagination__editor.el-input .el-input__inner{height:var(--el-pagination-button-height)}.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.is-background .btn-next,.el-pagination.is-background .btn-prev,.el-pagination.is-background .el-pager li{margin:0 4px;background-color:var(--el-pagination-button-bg-color);color:var(--el-text-color-regular);min-width:32px;border-radius:2px}.el-pagination.is-background .btn-next.is-disabled,.el-pagination.is-background .btn-prev.is-disabled,.el-pagination.is-background .el-pager li.is-disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next.is-disabled.is-active,.el-pagination.is-background .btn-prev.is-disabled.is-active,.el-pagination.is-background .el-pager li.is-disabled.is-active{color:var(--el-text-color-secondary);background-color:var(--el-fill-color-dark)}.el-pagination.is-background .btn-next.is-first,.el-pagination.is-background .btn-prev.is-first,.el-pagination.is-background .el-pager li.is-first{margin-left:0}.el-pagination.is-background .btn-next.is-last,.el-pagination.is-background .btn-prev.is-last,.el-pagination.is-background .el-pager li.is-last{margin-right:0}.el-pagination.is-background .btn-next,.el-pagination.is-background .btn-prev{padding:0}.el-pagination.is-background .btn-next:disabled,.el-pagination.is-background .btn-prev:disabled{color:var(--el-text-color-placeholder);background-color:var(--el-disabled-bg-color)}.el-pagination.is-background .btn-next:hover:not([disabled]),.el-pagination.is-background .btn-prev:hover:not([disabled]){color:var(--el-pagination-hover-color)}.el-pagination.is-background .el-pager li:not(.is-disabled):hover{color:var(--el-pagination-hover-color)}.el-pagination.is-background .el-pager li:not(.is-disabled).is-active{background-color:var(--el-color-primary);color:var(--el-color-white);font-weight:700}.el-pagination.is-background.el-pagination--small .btn-next,.el-pagination.is-background.el-pagination--small .btn-prev,.el-pagination.is-background.el-pagination--small .el-pager li{min-width:24px}.el-pagination.is-background .el-pagination__sizes.is-last{margin-left:16px}.el-pager{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;list-style:none;font-size:0;padding:0;margin:0;display:flex;align-items:center}.el-pager li{padding:0 4px;background:var(--el-pagination-bg-color);display:flex;justify-content:center;align-items:center;font-size:var(--el-pagination-font-size);min-width:var(--el-pagination-button-width);height:var(--el-pagination-button-height);line-height:var(--el-pagination-button-height);box-sizing:border-box;cursor:pointer;text-align:center;margin:0 1px}.el-pager li.btn-quickprev:hover,.el-pager li.btn-quicknext:hover{cursor:pointer}.el-pager li.btn-quicknext,.el-pager li.btn-quickprev{line-height:32px;color:var(--el-pagination-button-color)}.el-pager li.btn-quicknext.is-disabled,.el-pager li.btn-quickprev.is-disabled{color:var(--el-text-color-placeholder);cursor:not-allowed}.el-pager li.btn-quicknext svg,.el-pager li.btn-quickprev svg{pointer-events:none}.el-pager li.btn-quicknext:focus-visible,.el-pager li.btn-quickprev:focus-visible{outline:1px solid var(--el-pagination-hover-color);color:var(--el-pagination-hover-color)}.el-pager li.is-active+li{border-left:0}.el-pager li:focus-visible{outline:1px solid var(--el-pagination-hover-color)}.el-pager li:hover{color:var(--el-pagination-hover-color)}.el-pager li.is-active{color:var(--el-pagination-hover-color);cursor:default}.el-pager li.is-active.is-disabled{font-weight:700;color:var(--el-text-color-secondary)}.el-pager+button.btn-next[type=button]{margin-right:0}.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);min-width:150px;border-radius:var(--el-popover-border-radius);border:1px solid var(--el-popover-border-color);padding:var(--el-popover-padding);z-index:var(--el-index-popper);color:var(--el-text-color-regular);line-height:1.4;text-align:justify;font-size:var(--el-popover-font-size);box-shadow:var(--el-box-shadow-light);word-break:break-all;box-sizing:border-box}.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-title-text-color:var(--el-bg-color)}.el-popover.el-popper:focus,.el-popover.el-popper:focus:active{outline-width:0}.images[data-v-301360a8]{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}.selected[data-v-301360a8]{color:var(--el-color-primary);text-decoration:underline;background-color:#262626}.btn-select[data-v-301360a8]{width:48px;height:32px}.options[data-v-301360a8]{display:flex;align-items:center;gap:8px}.options>*[data-v-301360a8]{margin:0}.images-top-bar[data-v-301360a8]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.images-top-bar>*[data-v-301360a8]{width:100%;display:flex;justify-content:center;text-align:center;white-space:nowrap;flex-grow:0}.bottom-pagination[data-v-301360a8]{display:none}@media only screen and (max-width: 768px){.images-top-bar[data-v-301360a8]{flex-wrap:wrap}.bottom-pagination[data-v-301360a8]{margin-bottom:50px;display:flex}}a[data-v-17b53b7d]{color:var(--el-color-primary);text-decoration:none}a[data-v-17b53b7d]:hover{text-decoration:underline}h3[data-v-22668836],h1[data-v-22668836]{margin-bottom:0}.about[data-v-22668836]{width:100%;font-size:1.1rem;display:flex;justify-content:center}.about-content[data-v-22668836]{width:60%}.faq[data-v-22668836]{font-size:1.05rem}@media only screen and (max-width: 1000px){.about-content[data-v-22668836]{width:80%}}@media only screen and (max-width: 700px){.about-content[data-v-22668836]{width:100%}}.el-tabs{--el-tabs-header-height:40px}.el-tabs__header{padding:0;position:relative;margin:0 0 15px}.el-tabs__active-bar{position:absolute;bottom:0;left:0;height:2px;background-color:var(--el-color-primary);z-index:1;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);list-style:none}.el-tabs__new-tab{display:flex;align-items:center;justify-content:center;float:right;border:1px solid var(--el-border-color);height:20px;width:20px;line-height:20px;margin:10px 0 10px 10px;border-radius:3px;text-align:center;font-size:12px;color:var(--el-text-color-primary);cursor:pointer;transition:all .15s}.el-tabs__new-tab .is-icon-plus{height:inherit;width:inherit;transform:scale(.8)}.el-tabs__new-tab .is-icon-plus svg{vertical-align:middle}.el-tabs__new-tab:hover{color:var(--el-color-primary)}.el-tabs__nav-wrap{overflow:hidden;margin-bottom:-1px;position:relative}.el-tabs__nav-wrap:after{content:"";position:absolute;left:0;bottom:0;width:100%;height:2px;background-color:var(--el-border-color-light);z-index:var(--el-index-normal)}.el-tabs__nav-wrap.is-scrollable{padding:0 20px;box-sizing:border-box}.el-tabs__nav-scroll{overflow:hidden}.el-tabs__nav-next,.el-tabs__nav-prev{position:absolute;cursor:pointer;line-height:44px;font-size:12px;color:var(--el-text-color-secondary)}.el-tabs__nav-next{right:0}.el-tabs__nav-prev{left:0}.el-tabs__nav{white-space:nowrap;position:relative;transition:transform var(--el-transition-duration);float:left;z-index:calc(var(--el-index-normal) + 1)}.el-tabs__nav.is-stretch{min-width:100%;display:flex}.el-tabs__nav.is-stretch>*{flex:1;text-align:center}.el-tabs__item{padding:0 20px;height:var(--el-tabs-header-height);box-sizing:border-box;line-height:var(--el-tabs-header-height);display:inline-block;list-style:none;font-size:var(--el-font-size-base);font-weight:500;color:var(--el-text-color-primary);position:relative}.el-tabs__item:focus,.el-tabs__item:focus:active{outline:0}.el-tabs__item:focus-visible{box-shadow:0 0 2px 2px var(--el-color-primary) inset;border-radius:3px}.el-tabs__item .is-icon-close{border-radius:50%;text-align:center;transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);margin-left:5px}.el-tabs__item .is-icon-close:before{transform:scale(.9);display:inline-block}.el-tabs__item .is-icon-close:hover{background-color:var(--el-text-color-placeholder);color:#fff}.el-tabs__item .is-icon-close svg{margin-top:1px}.el-tabs__item.is-active{color:var(--el-color-primary)}.el-tabs__item:hover{color:var(--el-color-primary);cursor:pointer}.el-tabs__item.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-tabs__content{overflow:hidden;position:relative}.el-tabs--card>.el-tabs__header{border-bottom:1px solid var(--el-border-color-light);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{position:relative;font-size:12px;width:0;height:14px;vertical-align:middle;line-height:15px;overflow:hidden;top:-1px;right:-2px;transform-origin:100% 50%}.el-tabs--card>.el-tabs__header .el-tabs__item{border-bottom:1px solid transparent;border-left:1px solid var(--el-border-color-light);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{transition:all var(--el-transition-duration) var(--el-transition-function-ease-in-out-bezier);border:1px solid transparent;margin-top:-1px;color:var(--el-text-color-secondary)}.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+.el-tabs__item{margin-left:-1px}.el-tabs--border-card>.el-tabs__header .el-tabs__item.is-active{color:var(--el-color-primary);background-color:var(--el-bg-color-overlay);border-right-color:var(--el-border-color);border-left-color:var(--el-border-color)}.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 .el-tabs__item.is-bottom:nth-child(2),.el-tabs--bottom .el-tabs__item.is-top:nth-child(2),.el-tabs--top .el-tabs__item.is-bottom:nth-child(2),.el-tabs--top .el-tabs__item.is-top:nth-child(2){padding-left:0}.el-tabs--bottom .el-tabs__item.is-bottom:last-child,.el-tabs--bottom .el-tabs__item.is-top:last-child,.el-tabs--top .el-tabs__item.is-bottom:last-child,.el-tabs--top .el-tabs__item.is-top:last-child{padding-right:0}.el-tabs--bottom .el-tabs--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:nth-child(2),.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--left>.el-tabs__header .el-tabs__item:nth-child(2),.el-tabs--top .el-tabs--right>.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--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--bottom .el-tabs--right>.el-tabs__header .el-tabs__item:last-child,.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--left>.el-tabs__header .el-tabs__item:last-child,.el-tabs--top .el-tabs--right>.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--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-top:-1px;margin-bottom:0}.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{top:0;bottom:auto;width:2px;height:auto}.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{height:30px;line-height:30px;width:100%;text-align:center;cursor:pointer}.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-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{right:auto;bottom:0}.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{height:100%;width:2px;bottom:auto;top:0}.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{float:none}.el-tabs--left .el-tabs__item.is-left,.el-tabs--left .el-tabs__item.is-right,.el-tabs--right .el-tabs__item.is-left,.el-tabs--right .el-tabs__item.is-right{display:block}.el-tabs--left .el-tabs__header.is-left{float:left;margin-bottom:0;margin-right:10px}.el-tabs--left .el-tabs__nav-wrap.is-left{margin-right:-1px}.el-tabs--left .el-tabs__nav-wrap.is-left:after{left:auto;right:0}.el-tabs--left .el-tabs__active-bar.is-left{right:0;left:auto}.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-left:none;border-right:1px solid var(--el-border-color-light);border-bottom:none;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-right-color:#fff;border-left:none;border-bottom:none}.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-radius:4px 0 0 4px;border-bottom:1px solid var(--el-border-color-light);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:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.el-tabs--right .el-tabs__header.is-right{float: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-left-color:#fff;border-right:none;border-bottom: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-radius:0 4px 4px 0;border-bottom:1px solid var(--el-border-color-light);border-left:none}.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:transparent;border-top-color:#d1dbe5;border-bottom-color:#d1dbe5}.slideInLeft-transition,.slideInRight-transition{display:inline-block}.slideInRight-enter{-webkit-animation:slideInRight-enter var(--el-transition-duration);animation:slideInRight-enter var(--el-transition-duration)}.slideInRight-leave{position:absolute;left:0;right:0;-webkit-animation:slideInRight-leave var(--el-transition-duration);animation:slideInRight-leave var(--el-transition-duration)}.slideInLeft-enter{-webkit-animation:slideInLeft-enter var(--el-transition-duration);animation:slideInLeft-enter var(--el-transition-duration)}.slideInLeft-leave{position:absolute;left:0;right:0;-webkit-animation:slideInLeft-leave var(--el-transition-duration);animation:slideInLeft-leave var(--el-transition-duration)}@-webkit-keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInRight-enter{0%{opacity:0;transform-origin:0 0;transform:translate(100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@keyframes slideInRight-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(100%);opacity:0}}@-webkit-keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@keyframes slideInLeft-enter{0%{opacity:0;transform-origin:0 0;transform:translate(-100%)}to{opacity:1;transform-origin:0 0;transform:translate(0)}}@-webkit-keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}@keyframes slideInLeft-leave{0%{transform-origin:0 0;transform:translate(0);opacity:1}to{transform-origin:0 0;transform:translate(-100%);opacity:0}}.el-radio-group{display:inline-flex;align-items:center;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)}.el-radio-button{position:relative;display:inline-block;outline:0}.el-radio-button__inner{display:inline-block;line-height:1;white-space:nowrap;vertical-align:middle;background:var(--el-button-bg-color,var(--el-fill-color-blank));border:var(--el-border);font-weight:var(--el-button-font-weight,var(--el-font-weight-primary));border-left:0;color:var(--el-button-text-color,var(--el-text-color-regular));-webkit-appearance:none;text-align:center;box-sizing:border-box;outline:0;margin:0;position:relative;cursor:pointer;transition:var(--el-transition-all);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;padding:8px 15px;font-size:var(--el-font-size-base);border-radius:0}.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-left:var(--el-border);border-radius:var(--el-border-radius-base) 0 0 var(--el-border-radius-base);box-shadow:none!important}.el-radio-button__original-radio{opacity:0;outline:0;position:absolute;z-index:-1}.el-radio-button__original-radio:checked+.el-radio-button__inner{color:var(--el-radio-button-checked-text-color,var(--el-color-white));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))}.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));outline:2px solid var(--el-radio-button-checked-border-color);outline-offset:1px;z-index:2;border-radius:var(--el-border-radius-base);box-shadow:none}.el-radio-button__original-radio:disabled+.el-radio-button__inner{color:var(--el-disabled-text-color);cursor:not-allowed;background-image:none;background-color:var(--el-button-disabled-bg-color,var(--el-fill-color-blank));border-color:var(--el-button-disabled-border-color,var(--el-border-color-light));box-shadow:none}.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{padding:12px 19px;font-size:var(--el-font-size-base);border-radius:0}.el-radio-button--large .el-radio-button__inner.is-round{padding:12px 19px}.el-radio-button--small .el-radio-button__inner{padding:5px 11px;font-size:12px;border-radius:0}.el-radio-button--small .el-radio-button__inner.is-round{padding:5px 11px}.anon[data-v-1aa3949b]{width:80px}.el-tab-pane[data-v-1aa3949b]{max-width:600px}h2[data-v-1aa3949b]{margin-top:0}.apikey[data-v-1aa3949b]{width:calc(100% - 80px)}@media only screen and (max-width: 1000px){.anon[data-v-1aa3949b]{width:80px}.apikey[data-v-1aa3949b]{width:100%}}
|
||
</style>
|
||
</head>
|
||
<body>
|
||
<div id="app"></div>
|
||
|
||
<script>window.history.pushState=window.history.replaceState=function(){};</script>
|
||
</body>
|
||
</html>
|