koboldcpp/embd_res/kcpp_sdui.embd
2026-05-31 23:08:58 +08:00

519 lines
1.3 MiB
Raw Blame History

This file contains invisible Unicode characters

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

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="data:image/x-icon;base64,AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBM4O4QTODuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQuDuEGxg7hBsYO4QQuDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBWoO4QfeDuEH3g7hBWoO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QRqDuEHJg7hB/4O4Qf+DuEHJg7hBGoO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBeoO4Qf6DuEH/g7hB/4O4Qf6DuEF6g7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QS6DuEHfg7hB/4O4Qf+DuEH/g7hB/4O4Qd+DuEEug7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEFg7hBmoO4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4QZqDuEEFg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QUiDuEHwg7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB8IO4QUiDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEQg7hBuIO4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBuIO4QRCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAIO4QWaDuEH6g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hB/4O4Qf+DuEH6g7hBZoO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEgg7hB0oO4Qf+DuEH/g7hB/4O4Qf+DuUH/g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHSg7hBIIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBAYO4QYaDuEH/g7hB/4O4Qf+DuEH/g7lB/3ykP/98pD//g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGGg7hBAYO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEE3g7hB5oO4Qf+DuEH/g7hB/4O4Qf+CtEH/amw5/2psOf+CtEH/g7hB/4O4Qf+DuEH/g7hB/4O4QeaDuEE3g7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBCYO4QaaDuEH/g7hB/4O4Qf+DuEH/g7lB/3eTPf9fTDX/X0w1/3eTPf+DuUH/g7hB/4O4Qf+DuEH/g7hB/4O4QaaDuEEJg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEFSg7hB9IO4Qf+DuEH/g7hB/4O5Qf+ArkD/ZmE4/15INf9eSDX/ZmE4/4CuQP+DuUH/g7hB/4O4Qf+DuEH/g7hB9IO4QVKDuEEAg7hBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBFYO4QcKDuEH/g7hB/4O4Qf+DuEH/g7lB/3KFPP9eSTX/Xkk1/15JNf9eSTX/coU8/4O5Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBwoO4QRWDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQCDuEFxg7hB/IO4Qf+DuEH/g7hB/4O5Qf99pj//Y1c3/15INf9eSTX/Xkk1/15INf9jVzf/faY//4O5Qf+DuEH/g7hB/4O4Qf+DuEH8g7hBcYO4QQCDuEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACDuEEAg7hBKIO4QdqDuEH/g7hB/4O4Qf+DuEH/g7dB/212Ov9eSDX/Xkk1/15JNf9eSTX/Xkk1/15INf9tdjr/g7dB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHag7hBKIO4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQODuEGSg7hB/4O4Qf+DuEH/g7hB/4O5Qf95mz7/YFA2/15INf9eSTX/Xkk1/15JNf9eSTX/Xkg1/2BQNv95mz7/g7lB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGSg7hBA4O4QQAAAAAAAAAAAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBQIO4QeyDuEH/g7hB/4O4Qf+DuEH/gbJA/2lpOf9dRzX/Xkk1/15JNf9eSTX/Xkk1/15JNf9eSTX/XUc1/2lpOf+BskD/g7hB/4O4Qf+DuEH/g7hB/4O4QeyDuEFAg7hBAIO4QQAAAAAAAAAAAAAAAAAAAAAAg7hBAIO4QQ2DuEGxg7hB/4O4Qf+DuEH/g7hB/4O5Qf91jj3/X0s1/15JNf9eSTX/Xkk1/15JNf9eSTX/Xkk1/15JNf9eSTX/X0s1/3WOPf+DuUH/g7hB/4O4Qf+DuEH/g7hB/4O4QbGDuEENg7hBAAAAAAAAAAAAAAAAAIO4QQCDuEEAg7hBXYO4QfiDuEH/g7hB/4O4Qf+DuUH/f6xA/2VdN/9eSDX/Xkk1/15JNf9eSTX/Xko15V5KNeVeSTX/Xkk1/15JNf9eSDX/ZV03/3+sQP+DuUH/g7hB/4O4Qf+DuEH/g7hB+IO4QV2DuEEAg7hBAAAAAAAAAAAAg7hBAIO4QRuDuEHMg7hB/4O4Qf+DuEH/g7hB/4O4Qf9wfzv/Xkk1/15JNf9eSTX/Xkk1/15JNfxfTDVuX0w1bl5JNfxeSTX/Xkk1/15JNf9eSTX/cH87/4O4Qf+DuEH/g7hB/4O4Qf+DuEH/g7hBzIO4QRuDuEEAAAAAAIO4QQCDuEEAg7hBfYO4Qf6DuEH/g7hB/4O4Qf+DuUH/fKI//2JUNv9eSDX/Xkk1/15JNf9eSTX/X0o1wWFQNhNhUDYTX0o1wV5JNf9eSTX/Xkk1/15INf9iVDb/fKI//4O5Qf+DuEH/g7hB/4O4Qf+DuEH+g7hBfYO4QQCDuEEAg7hBAIO4QS+DuEHhg7hB/4O4Qf+DuEH/g7hB/4K1Qf9scTn/Xkg1/15JNf9eSTX/Xkk1/15JNfNfTDVQXkg1AF5INQBfTDVQXkk1815JNf9eSTX/Xkk1/15INf9scTn/grVB/4O4Qf+DuEH/g7hB/4O4Qf+DuEHhg7hBL4O4QQCDuEEHg7hBnIO4Qf+DuEH/g7hB/4O4Qf+EukH/eJY9/2BONv9eSTX/Xkk1/15JNf9eSTX/X0s1pGJUNwhhUTYAYVE2AGJUNwhfSzWkXkk1/15JNf9eSTX/Xkk1/2BONv94lj3/hLpB/4O4Qf+DuEH/g7hB/4O4Qf+DuEGcg7hBB4O4QVeDuEHwg7hB/4O4Qf+DuEH/g7lB/4CvQP9nZDj/Xkg1/15JNf9eSTX/Xkk1/15KNeVgTTY1X0s1AGpmOQBqZjkAX0s1AGBNNjVeSjXlXkk1/15JNf9eSTX/Xkg1/2dkOP+Ar0D/g7lB/4O4Qf+DuEH/g7hB/4O4QfCDuEFXg7hBmoO4QciDuEHGg7hBxoO4QcaEukHGdpE9xl9LNcZeSTXGXkk1xl5JNcZeSTXJX0s1dWhhOQJiUzcAAAAAAAAAAABiUzcAaGE5Al9LNXVeSTXJXkk1xl5JNcZeSTXGX0s1xnaRPcaEukHGg7hBxoO4QcaDuEHGg7hByIO4QZqDuEEOg7hBDYO4QQ2DuEENg7hBDYO5QQ1scjoNXEQ0DV5JNQ1eSTUNXkk1DV5JNQ1gTTYFXkg1AAAAAAAAAAAAAAAAAAAAAABeSDUAYE02BV5JNQ1eSTUNXkk1DV5JNQ1cRDQNbHI5DYO5QQ2DuEENg7hBDYO4QQ2DuEENg7hBDgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////////////n////w////8P///+B////gf///wD///4Af//+AH///AA///wAP//4AB//8AAP//AAD//gAAf/4AAH/8AAA//AAAP/gAAB/wAAAP8AAAD+AAAAfgAAAHwAAAA8AAAAOAAYABAAGAAAADwAAAA8AAAAfgAP////8=" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stable UI for KoboldCpp</title>
<script type="module" crossorigin>var _C=Object.defineProperty;var wC=(e,t,n)=>t in e?_C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var km=(e,t,n)=>(wC(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 v of l.addedNodes)v.tagName==="LINK"&&v.rel==="modulepreload"&&r(v)}).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 Mh(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 CC="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",SC=Mh(CC);function Dy(e){return!!e||e===""}function Ne(e){if(He(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=Ge(r)?kC(r):Ne(r);if(i)for(const l in i)t[l]=i[l]}return t}else{if(Ge(e))return e;if(ot(e))return e}}const xC=/;(?![^(]*\))/g,TC=/:(.+)/;function kC(e){const t={};return e.split(xC).forEach(n=>{if(n){const r=n.split(TC);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function de(e){let t="";if(Ge(e))t=e;else if(He(e))for(let n=0;n<e.length;n++){const r=de(e[n]);r&&(t+=r+" ")}else if(ot(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function EC(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Hu(e[r],t[r]);return n}function Hu(e,t){if(e===t)return!0;let n=Em(e),r=Em(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=$s(e),r=$s(t),n||r)return e===t;if(n=He(e),r=He(t),n||r)return n&&r?EC(e,t):!1;if(n=ot(e),r=ot(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 v in e){const o=e.hasOwnProperty(v),a=t.hasOwnProperty(v);if(o&&!a||!o&&a||!Hu(e[v],t[v]))return!1}}return String(e)===String(t)}const Ae=e=>Ge(e)?e:e==null?"":He(e)||ot(e)&&(e.toString===Fy||!Ye(e.toString))?JSON.stringify(e,$y,2):String(e),$y=(e,t)=>t&&t.__v_isRef?$y(e,t.value):mo(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:By(t)?{[`Set(${t.size})`]:[...t.values()]}:ot(t)&&!He(t)&&!zy(t)?String(t):t,Pt={},po=[],ct=()=>{},OC=()=>!1,AC=/^on[^a-z]/,Sc=e=>AC.test(e),Lh=e=>e.startsWith("onUpdate:"),en=Object.assign,Rh=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},PC=Object.prototype.hasOwnProperty,et=(e,t)=>PC.call(e,t),He=Array.isArray,mo=e=>_l(e)==="[object Map]",By=e=>_l(e)==="[object Set]",Em=e=>_l(e)==="[object Date]",Ye=e=>typeof e=="function",Ge=e=>typeof e=="string",$s=e=>typeof e=="symbol",ot=e=>e!==null&&typeof e=="object",Wu=e=>ot(e)&&Ye(e.then)&&Ye(e.catch),Fy=Object.prototype.toString,_l=e=>Fy.call(e),wu=e=>_l(e).slice(8,-1),zy=e=>_l(e)==="[object Object]",Dh=e=>Ge(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Cu=Mh(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xc=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},IC=/-(\w)/g,lr=xc(e=>e.replace(IC,(t,n)=>n?n.toUpperCase():"")),MC=/\B([A-Z])/g,Ba=xc(e=>e.replace(MC,"-$1").toLowerCase()),wl=xc(e=>e.charAt(0).toUpperCase()+e.slice(1)),Su=xc(e=>e?`on${wl(e)}`:""),Bs=(e,t)=>!Object.is(e,t),xu=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Yu=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Xu=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Om;const LC=()=>Om||(Om=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ln;class Ny{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ln&&(this.parent=Ln,this.index=(Ln.scopes||(Ln.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Ln;try{return Ln=this,t()}finally{Ln=n}}}on(){Ln=this}off(){Ln=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 Ny(e)}function RC(e,t=Ln){t&&t.active&&t.effects.push(e)}function jy(){return Ln}function Bh(e){Ln&&Ln.cleanups.push(e)}const Fh=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Vy=e=>(e.w&Bi)>0,Uy=e=>(e.n&Bi)>0,DC=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Bi},$C=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];Vy(i)&&!Uy(i)?i.delete(e):t[n++]=i,i.w&=~Bi,i.n&=~Bi}t.length=n}},sd=new WeakMap;let ls=0,Bi=1;const ld=30;let nr;const wa=Symbol(""),ud=Symbol("");class zh{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,RC(this,r)}run(){if(!this.active)return this.fn();let t=nr,n=Ii;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=nr,nr=this,Ii=!0,Bi=1<<++ls,ls<=ld?DC(this):Am(this),this.fn()}finally{ls<=ld&&$C(this),Bi=1<<--ls,nr=this.parent,Ii=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){nr===this?this.deferStop=!0:this.active&&(Am(this),this.onStop&&this.onStop(),this.active=!1)}}function Am(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ii=!0;const Hy=[];function Fa(){Hy.push(Ii),Ii=!1}function za(){const e=Hy.pop();Ii=e===void 0?!0:e}function zn(e,t,n){if(Ii&&nr){let r=sd.get(e);r||sd.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=Fh()),Wy(i)}}function Wy(e,t){let n=!1;ls<=ld?Uy(e)||(e.n|=Bi,n=!Vy(e)):n=!e.has(nr),n&&(e.add(nr),nr.deps.push(e))}function Jr(e,t,n,r,i,l){const v=sd.get(e);if(!v)return;let o=[];if(t==="clear")o=[...v.values()];else if(n==="length"&&He(e))v.forEach((a,u)=>{(u==="length"||u>=r)&&o.push(a)});else switch(n!==void 0&&o.push(v.get(n)),t){case"add":He(e)?Dh(n)&&o.push(v.get("length")):(o.push(v.get(wa)),mo(e)&&o.push(v.get(ud)));break;case"delete":He(e)||(o.push(v.get(wa)),mo(e)&&o.push(v.get(ud)));break;case"set":mo(e)&&o.push(v.get(wa));break}if(o.length===1)o[0]&&cd(o[0]);else{const a=[];for(const u of o)u&&a.push(...u);cd(Fh(a))}}function cd(e,t){const n=He(e)?e:[...e];for(const r of n)r.computed&&Pm(r);for(const r of n)r.computed||Pm(r)}function Pm(e,t){(e!==nr||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const BC=Mh("__proto__,__v_isRef,__isVue"),Yy=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($s)),FC=Nh(),zC=Nh(!1,!0),NC=Nh(!0),Im=jC();function jC(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=it(this);for(let l=0,v=this.length;l<v;l++)zn(r,"get",l+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(it)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Fa();const r=it(this)[t].apply(this,n);return za(),r}}),e}function Nh(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?rS:Zy:t?qy:Gy).get(r))return r;const v=He(r);if(!e&&v&&et(Im,i))return Reflect.get(Im,i,l);const o=Reflect.get(r,i,l);return($s(i)?Yy.has(i):BC(i))||(e||zn(r,"get",i),t)?o:At(o)?v&&Dh(i)?o:o.value:ot(o)?e?kc(o):vt(o):o}}const VC=Xy(),UC=Xy(!0);function Xy(e=!1){return function(n,r,i,l){let v=n[r];if(wo(v)&&At(v)&&!At(i))return!1;if(!e&&(!Ku(i)&&!wo(i)&&(v=it(v),i=it(i)),!He(n)&&At(v)&&!At(i)))return v.value=i,!0;const o=He(n)&&Dh(r)?Number(r)<n.length:et(n,r),a=Reflect.set(n,r,i,l);return n===it(l)&&(o?Bs(i,v)&&Jr(n,"set",r,i):Jr(n,"add",r,i)),a}}function HC(e,t){const n=et(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Jr(e,"delete",t,void 0),r}function WC(e,t){const n=Reflect.has(e,t);return(!$s(t)||!Yy.has(t))&&zn(e,"has",t),n}function YC(e){return zn(e,"iterate",He(e)?"length":wa),Reflect.ownKeys(e)}const Ky={get:FC,set:VC,deleteProperty:HC,has:WC,ownKeys:YC},XC={get:NC,set(e,t){return!0},deleteProperty(e,t){return!0}},KC=en({},Ky,{get:zC,set:UC}),jh=e=>e,Tc=e=>Reflect.getPrototypeOf(e);function Hl(e,t,n=!1,r=!1){e=e.__v_raw;const i=it(e),l=it(t);n||(t!==l&&zn(i,"get",t),zn(i,"get",l));const{has:v}=Tc(i),o=r?jh:n?Hh:Fs;if(v.call(i,t))return o(e.get(t));if(v.call(i,l))return o(e.get(l));e!==i&&e.get(t)}function Wl(e,t=!1){const n=this.__v_raw,r=it(n),i=it(e);return t||(e!==i&&zn(r,"has",e),zn(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function Yl(e,t=!1){return e=e.__v_raw,!t&&zn(it(e),"iterate",wa),Reflect.get(e,"size",e)}function Mm(e){e=it(e);const t=it(this);return Tc(t).has.call(t,e)||(t.add(e),Jr(t,"add",e,e)),this}function Lm(e,t){t=it(t);const n=it(this),{has:r,get:i}=Tc(n);let l=r.call(n,e);l||(e=it(e),l=r.call(n,e));const v=i.call(n,e);return n.set(e,t),l?Bs(t,v)&&Jr(n,"set",e,t):Jr(n,"add",e,t),this}function Rm(e){const t=it(this),{has:n,get:r}=Tc(t);let i=n.call(t,e);i||(e=it(e),i=n.call(t,e)),r&&r.call(t,e);const l=t.delete(e);return i&&Jr(t,"delete",e,void 0),l}function Dm(){const e=it(this),t=e.size!==0,n=e.clear();return t&&Jr(e,"clear",void 0,void 0),n}function Xl(e,t){return function(r,i){const l=this,v=l.__v_raw,o=it(v),a=t?jh:e?Hh:Fs;return!e&&zn(o,"iterate",wa),v.forEach((u,d)=>r.call(i,a(u),a(d),l))}}function Kl(e,t,n){return function(...r){const i=this.__v_raw,l=it(i),v=mo(l),o=e==="entries"||e===Symbol.iterator&&v,a=e==="keys"&&v,u=i[e](...r),d=n?jh:t?Hh:Fs;return!t&&zn(l,"iterate",a?ud:wa),{next(){const{value:c,done:f}=u.next();return f?{value:c,done:f}:{value:o?[d(c[0]),d(c[1])]:d(c),done:f}},[Symbol.iterator](){return this}}}}function mi(e){return function(...t){return e==="delete"?!1:this}}function GC(){const e={get(l){return Hl(this,l)},get size(){return Yl(this)},has:Wl,add:Mm,set:Lm,delete:Rm,clear:Dm,forEach:Xl(!1,!1)},t={get(l){return Hl(this,l,!1,!0)},get size(){return Yl(this)},has:Wl,add:Mm,set:Lm,delete:Rm,clear:Dm,forEach:Xl(!1,!0)},n={get(l){return Hl(this,l,!0)},get size(){return Yl(this,!0)},has(l){return Wl.call(this,l,!0)},add:mi("add"),set:mi("set"),delete:mi("delete"),clear:mi("clear"),forEach:Xl(!0,!1)},r={get(l){return Hl(this,l,!0,!0)},get size(){return Yl(this,!0)},has(l){return Wl.call(this,l,!0)},add:mi("add"),set:mi("set"),delete:mi("delete"),clear:mi("clear"),forEach:Xl(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(l=>{e[l]=Kl(l,!1,!1),n[l]=Kl(l,!0,!1),t[l]=Kl(l,!1,!0),r[l]=Kl(l,!0,!0)}),[e,n,t,r]}const[qC,ZC,JC,QC]=GC();function Vh(e,t){const n=t?e?QC:JC:e?ZC:qC;return(r,i,l)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(et(n,i)&&i in r?n:r,i,l)}const eS={get:Vh(!1,!1)},tS={get:Vh(!1,!0)},nS={get:Vh(!0,!1)},Gy=new WeakMap,qy=new WeakMap,Zy=new WeakMap,rS=new WeakMap;function iS(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function aS(e){return e.__v_skip||!Object.isExtensible(e)?0:iS(wu(e))}function vt(e){return wo(e)?e:Uh(e,!1,Ky,eS,Gy)}function Jy(e){return Uh(e,!1,KC,tS,qy)}function kc(e){return Uh(e,!0,XC,nS,Zy)}function Uh(e,t,n,r,i){if(!ot(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const l=i.get(e);if(l)return l;const v=aS(e);if(v===0)return e;const o=new Proxy(e,v===2?r:n);return i.set(e,o),o}function Mi(e){return wo(e)?Mi(e.__v_raw):!!(e&&e.__v_isReactive)}function wo(e){return!!(e&&e.__v_isReadonly)}function Ku(e){return!!(e&&e.__v_isShallow)}function Qy(e){return Mi(e)||wo(e)}function it(e){const t=e&&e.__v_raw;return t?it(t):e}function Fi(e){return Yu(e,"__v_skip",!0),e}const Fs=e=>ot(e)?vt(e):e,Hh=e=>ot(e)?kc(e):e;function eb(e){Ii&&nr&&(e=it(e),Wy(e.dep||(e.dep=Fh())))}function Wh(e,t){e=it(e),e.dep&&cd(e.dep)}function At(e){return!!(e&&e.__v_isRef===!0)}function oe(e){return tb(e,!1)}function fn(e){return tb(e,!0)}function tb(e,t){return At(e)?e:new oS(e,t)}class oS{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:it(t),this._value=n?t:Fs(t)}get value(){return eb(this),this._value}set value(t){const n=this.__v_isShallow||Ku(t)||wo(t);t=n?t:it(t),Bs(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Fs(t),Wh(this))}}function Qo(e){Wh(e)}function C(e){return At(e)?e.value:e}const sS={get:(e,t,n)=>C(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return At(i)&&!At(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function nb(e){return Mi(e)?e:new Proxy(e,sS)}function Xn(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=On(e,n);return t}class lS{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 On(e,t,n){const r=e[t];return At(r)?r:new lS(e,t,n)}var rb;class uS{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this[rb]=!1,this._dirty=!0,this.effect=new zh(t,()=>{this._dirty||(this._dirty=!0,Wh(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=it(this);return eb(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}rb="__v_isReadonly";function ib(e,t,n=!1){let r,i;const l=Ye(e);return l?(r=e,i=ct):(r=e.get,i=e.set),new uS(r,i,l||!i,n)}const ms=[];function cS(e,...t){Fa();const n=ms.length?ms[ms.length-1].component:null,r=n&&n.appContext.config.warnHandler,i=fS();if(r)Gr(r,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:l})=>`at <${Db(n,l.type)}>`).join(`
`),i]);else{const l=[`[Vue warn]: ${e}`,...t];i.length&&l.push(`
`,...dS(i)),console.warn(...l)}za()}function fS(){let e=ms[ms.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 dS(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
`],...hS(n))}),t}function hS({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,i=` at <${Db(e.component,e.type,r)}`,l=">"+n;return e.props?[i,...pS(e.props),l]:[i+l]}function pS(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...ab(r,e[r]))}),n.length>3&&t.push(" ..."),t}function ab(e,t,n){return Ge(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:At(t)?(t=ab(e,it(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Ye(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=it(t),n?t:[`${e}=`,t])}function Gr(e,t,n,r){let i;try{i=r?e(...r):e()}catch(l){Ec(l,t,n)}return i}function Wn(e,t,n,r){if(Ye(e)){const l=Gr(e,t,n,r);return l&&Wu(l)&&l.catch(v=>{Ec(v,t,n)}),l}const i=[];for(let l=0;l<e.length;l++)i.push(Wn(e[l],t,n,r));return i}function Ec(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let l=t.parent;const v=t.proxy,o=n;for(;l;){const u=l.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,v,o)===!1)return}l=l.parent}const a=t.appContext.config.errorHandler;if(a){Gr(a,null,10,[e,v,o]);return}}mS(e,n,i,r)}function mS(e,t,n,r=!0){console.error(e)}let zs=!1,fd=!1;const sn=[];let br=0;const go=[];let jr=null,aa=0;const ob=Promise.resolve();let Yh=null;function Xe(e){const t=Yh||ob;return e?t.then(this?e.bind(this):e):t}function gS(e){let t=br+1,n=sn.length;for(;t<n;){const r=t+n>>>1;Ns(sn[r])<e?t=r+1:n=r}return t}function Xh(e){(!sn.length||!sn.includes(e,zs&&e.allowRecurse?br+1:br))&&(e.id==null?sn.push(e):sn.splice(gS(e.id),0,e),sb())}function sb(){!zs&&!fd&&(fd=!0,Yh=ob.then(ub))}function vS(e){const t=sn.indexOf(e);t>br&&sn.splice(t,1)}function yS(e){He(e)?go.push(...e):(!jr||!jr.includes(e,e.allowRecurse?aa+1:aa))&&go.push(e),sb()}function $m(e,t=zs?br+1:0){for(;t<sn.length;t++){const n=sn[t];n&&n.pre&&(sn.splice(t,1),t--,n())}}function lb(e){if(go.length){const t=[...new Set(go)];if(go.length=0,jr){jr.push(...t);return}for(jr=t,jr.sort((n,r)=>Ns(n)-Ns(r)),aa=0;aa<jr.length;aa++)jr[aa]();jr=null,aa=0}}const Ns=e=>e.id==null?1/0:e.id,bS=(e,t)=>{const n=Ns(e)-Ns(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ub(e){fd=!1,zs=!0,sn.sort(bS);const t=ct;try{for(br=0;br<sn.length;br++){const n=sn[br];n&&n.active!==!1&&Gr(n,null,14)}}finally{br=0,sn.length=0,lb(),zs=!1,Yh=null,(sn.length||go.length)&&ub()}}function _S(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Pt;let i=n;const l=t.startsWith("update:"),v=l&&t.slice(7);if(v&&v in r){const d=`${v==="modelValue"?"model":v}Modifiers`,{number:c,trim:f}=r[d]||Pt;f&&(i=n.map(s=>s.trim())),c&&(i=n.map(Xu))}let o,a=r[o=Su(t)]||r[o=Su(lr(t))];!a&&l&&(a=r[o=Su(Ba(t))]),a&&Wn(a,e,6,i);const u=r[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Wn(u,e,6,i)}}function cb(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const l=e.emits;let v={},o=!1;if(!Ye(e)){const a=u=>{const d=cb(u,t,!0);d&&(o=!0,en(v,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!l&&!o?(ot(e)&&r.set(e,null),null):(He(l)?l.forEach(a=>v[a]=null):en(v,l),ot(e)&&r.set(e,v),v)}function Oc(e,t){return!e||!Sc(t)?!1:(t=t.slice(2).replace(/Once$/,""),et(e,t[0].toLowerCase()+t.slice(1))||et(e,Ba(t))||et(e,t))}let un=null,Ac=null;function Gu(e){const t=un;return un=e,Ac=e&&e.type.__scopeId||null,t}function ai(e){Ac=e}function oi(){Ac=null}function he(e,t=un,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&Km(-1);const l=Gu(t),v=e(...i);return Gu(l),r._d&&Km(1),v};return r._n=!0,r._c=!0,r._d=!0,r}function lf(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:l,propsOptions:[v],slots:o,attrs:a,emit:u,render:d,renderCache:c,data:f,setupState:s,ctx:h,inheritAttrs:g}=e;let m,y;const b=Gu(e);try{if(n.shapeFlag&4){const w=i||r;m=yr(d.call(w,w,c,l,s,f,h)),y=a}else{const w=t;m=yr(w.length>1?w(l,{attrs:a,slots:o,emit:u}):w(l,null)),y=t.props?a:wS(a)}}catch(w){ys.length=0,Ec(w,e,1),m=ue(Bn)}let _=m;if(y&&g!==!1){const w=Object.keys(y),{shapeFlag:S}=_;w.length&&S&7&&(v&&w.some(Lh)&&(y=CS(y,v)),_=Qr(_,y))}return n.dirs&&(_=Qr(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),m=_,Gu(b),m}const wS=e=>{let t;for(const n in e)(n==="class"||n==="style"||Sc(n))&&((t||(t={}))[n]=e[n]);return t},CS=(e,t)=>{const n={};for(const r in e)(!Lh(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function SS(e,t,n){const{props:r,children:i,component:l}=e,{props:v,children:o,patchFlag:a}=t,u=l.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Bm(r,v,u):!!v;if(a&8){const d=t.dynamicProps;for(let c=0;c<d.length;c++){const f=d[c];if(v[f]!==r[f]&&!Oc(u,f))return!0}}}else return(i||o)&&(!o||!o.$stable)?!0:r===v?!1:r?v?Bm(r,v,u):!0:!!v;return!1}function Bm(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]&&!Oc(n,l))return!0}return!1}function xS({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const TS=e=>e.__isSuspense;function kS(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):yS(e)}function gt(e,t){if(Qt){let n=Qt.provides;const r=Qt.parent&&Qt.parent.provides;r===n&&(n=Qt.provides=Object.create(r)),n[e]=t}}function qe(e,t,n=!1){const r=Qt||un;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&&Ye(t)?t.call(r.proxy):t}}function Na(e,t){return Pc(e,null,t)}function fb(e,t){return Pc(e,null,{flush:"post"})}const Fm={};function xe(e,t,n){return Pc(e,t,n)}function Pc(e,t,{immediate:n,deep:r,flush:i,onTrack:l,onTrigger:v}=Pt){const o=Qt;let a,u=!1,d=!1;if(At(e)?(a=()=>e.value,u=Ku(e)):Mi(e)?(a=()=>e,r=!0):He(e)?(d=!0,u=e.some(y=>Mi(y)||Ku(y)),a=()=>e.map(y=>{if(At(y))return y.value;if(Mi(y))return da(y);if(Ye(y))return Gr(y,o,2)})):Ye(e)?t?a=()=>Gr(e,o,2):a=()=>{if(!(o&&o.isUnmounted))return c&&c(),Wn(e,o,3,[f])}:a=ct,t&&r){const y=a;a=()=>da(y())}let c,f=y=>{c=m.onStop=()=>{Gr(y,o,4)}};if(Hs)return f=ct,t?n&&Wn(t,o,3,[a(),d?[]:void 0,f]):a(),ct;let s=d?[]:Fm;const h=()=>{if(!!m.active)if(t){const y=m.run();(r||u||(d?y.some((b,_)=>Bs(b,s[_])):Bs(y,s)))&&(c&&c(),Wn(t,o,3,[y,s===Fm?void 0:s,f]),s=y)}else m.run()};h.allowRecurse=!!t;let g;i==="sync"?g=h:i==="post"?g=()=>Cn(h,o&&o.suspense):(h.pre=!0,o&&(h.id=o.uid),g=()=>Xh(h));const m=new zh(a,g);return t?n?h():s=m.run():i==="post"?Cn(m.run.bind(m),o&&o.suspense):m.run(),()=>{m.stop(),o&&o.scope&&Rh(o.scope.effects,m)}}function ES(e,t,n){const r=this.proxy,i=Ge(e)?e.includes(".")?db(r,e):()=>r[e]:e.bind(r,r);let l;Ye(t)?l=t:(l=t.handler,n=t);const v=Qt;Co(this);const o=Pc(i,l.bind(r),n);return v?Co(v):Ca(),o}function db(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 da(e,t){if(!ot(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),At(e))da(e.value,t);else if(He(e))for(let n=0;n<e.length;n++)da(e[n],t);else if(By(e)||mo(e))e.forEach(n=>{da(n,t)});else if(zy(e))for(const n in e)da(e[n],t);return e}function hb(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return nt(()=>{e.isMounted=!0}),Yt(()=>{e.isUnmounting=!0}),e}const jn=[Function,Array],OS={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:jn,onEnter:jn,onAfterEnter:jn,onEnterCancelled:jn,onBeforeLeave:jn,onLeave:jn,onAfterLeave:jn,onLeaveCancelled:jn,onBeforeAppear:jn,onAppear:jn,onAfterAppear:jn,onAppearCancelled:jn},setup(e,{slots:t}){const n=St(),r=hb();let i;return()=>{const l=t.default&&Kh(t.default(),!0);if(!l||!l.length)return;let v=l[0];if(l.length>1){for(const g of l)if(g.type!==Bn){v=g;break}}const o=it(e),{mode:a}=o;if(r.isLeaving)return uf(v);const u=zm(v);if(!u)return uf(v);const d=js(u,o,r,n);Vs(u,d);const c=n.subTree,f=c&&zm(c);let s=!1;const{getTransitionKey:h}=u.type;if(h){const g=h();i===void 0?i=g:g!==i&&(i=g,s=!0)}if(f&&f.type!==Bn&&(!oa(u,f)||s)){const g=js(f,o,r,n);if(Vs(f,g),a==="out-in")return r.isLeaving=!0,g.afterLeave=()=>{r.isLeaving=!1,n.update()},uf(v);a==="in-out"&&u.type!==Bn&&(g.delayLeave=(m,y,b)=>{const _=mb(r,f);_[String(f.key)]=f,m._leaveCb=()=>{y(),m._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=b})}return v}}},pb=OS;function mb(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 js(e,t,n,r){const{appear:i,mode:l,persisted:v=!1,onBeforeEnter:o,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:c,onLeave:f,onAfterLeave:s,onLeaveCancelled:h,onBeforeAppear:g,onAppear:m,onAfterAppear:y,onAppearCancelled:b}=t,_=String(e.key),w=mb(n,e),S=(E,I)=>{E&&Wn(E,r,9,I)},x=(E,I)=>{const D=I[1];S(E,I),He(E)?E.every(N=>N.length<=1)&&D():E.length<=1&&D()},T={mode:l,persisted:v,beforeEnter(E){let I=o;if(!n.isMounted)if(i)I=g||o;else return;E._leaveCb&&E._leaveCb(!0);const D=w[_];D&&oa(e,D)&&D.el._leaveCb&&D.el._leaveCb(),S(I,[E])},enter(E){let I=a,D=u,N=d;if(!n.isMounted)if(i)I=m||a,D=y||u,N=b||d;else return;let L=!1;const F=E._enterCb=O=>{L||(L=!0,O?S(N,[E]):S(D,[E]),T.delayedLeave&&T.delayedLeave(),E._enterCb=void 0)};I?x(I,[E,F]):F()},leave(E,I){const D=String(e.key);if(E._enterCb&&E._enterCb(!0),n.isUnmounting)return I();S(c,[E]);let N=!1;const L=E._leaveCb=F=>{N||(N=!0,I(),F?S(h,[E]):S(s,[E]),E._leaveCb=void 0,w[D]===e&&delete w[D])};w[D]=e,f?x(f,[E,L]):L()},clone(E){return js(E,t,n,r)}};return T}function uf(e){if(Ic(e))return e=Qr(e),e.children=null,e}function zm(e){return Ic(e)?e.children?e.children[0]:void 0:e}function Vs(e,t){e.shapeFlag&6&&e.component?Vs(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 Kh(e,t=!1,n){let r=[],i=0;for(let l=0;l<e.length;l++){let v=e[l];const o=n==null?v.key:String(n)+String(v.key!=null?v.key:l);v.type===je?(v.patchFlag&128&&i++,r=r.concat(Kh(v.children,t,o))):(t||v.type!==Bn)&&r.push(o!=null?Qr(v,{key:o}):v)}if(i>1)for(let l=0;l<r.length;l++)r[l].patchFlag=-2;return r}function Ee(e){return Ye(e)?{setup:e,name:e.name}:e}const gs=e=>!!e.type.__asyncLoader,Ic=e=>e.type.__isKeepAlive;function AS(e,t){vb(e,"a",t)}function gb(e,t){vb(e,"da",t)}function vb(e,t,n=Qt){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Mc(t,r,n),n){let i=n.parent;for(;i&&i.parent;)Ic(i.parent.vnode)&&PS(r,t,n,i),i=i.parent}}function PS(e,t,n,r){const i=Mc(t,e,r,!0);li(()=>{Rh(r[t],i)},n)}function Mc(e,t,n=Qt,r=!1){if(n){const i=n[e]||(n[e]=[]),l=t.__weh||(t.__weh=(...v)=>{if(n.isUnmounted)return;Fa(),Co(n);const o=Wn(t,n,e,v);return Ca(),za(),o});return r?i.unshift(l):i.push(l),l}}const si=e=>(t,n=Qt)=>(!Hs||e==="sp")&&Mc(e,(...r)=>t(...r),n),yb=si("bm"),nt=si("m"),IS=si("bu"),ja=si("u"),Yt=si("bum"),li=si("um"),MS=si("sp"),LS=si("rtg"),RS=si("rtc");function DS(e,t=Qt){Mc("ec",e,t)}function kt(e,t){const n=un;if(n===null)return e;const r=Rc(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[v,o,a,u=Pt]=t[l];Ye(v)&&(v={mounted:v,updated:v}),v.deep&&da(o),i.push({dir:v,instance:r,value:o,oldValue:void 0,arg:a,modifiers:u})}return e}function Ji(e,t,n,r){const i=e.dirs,l=t&&t.dirs;for(let v=0;v<i.length;v++){const o=i[v];l&&(o.oldValue=l[v].value);let a=o.dir[r];a&&(Fa(),Wn(a,n,8,[e.el,o,e,t]),za())}}const Gh="components",$S="directives";function mt(e,t){return qh(Gh,e,!0,t)||e}const bb=Symbol();function Tt(e){return Ge(e)?qh(Gh,e,!1)||e:e||bb}function _b(e){return qh($S,e)}function qh(e,t,n=!0,r=!1){const i=un||Qt;if(i){const l=i.type;if(e===Gh){const o=Rb(l,!1);if(o&&(o===t||o===lr(t)||o===wl(lr(t))))return l}const v=Nm(i[e]||l[e],t)||Nm(i.appContext[e],t);return!v&&r?l:v}}function Nm(e,t){return e&&(e[t]||e[lr(t)]||e[wl(lr(t))])}function jt(e,t,n,r){let i;const l=n&&n[r];if(He(e)||Ge(e)){i=new Array(e.length);for(let v=0,o=e.length;v<o;v++)i[v]=t(e[v],v,void 0,l&&l[v])}else if(typeof e=="number"){i=new Array(e);for(let v=0;v<e;v++)i[v]=t(v+1,v,void 0,l&&l[v])}else if(ot(e))if(e[Symbol.iterator])i=Array.from(e,(v,o)=>t(v,o,void 0,l&&l[o]));else{const v=Object.keys(e);i=new Array(v.length);for(let o=0,a=v.length;o<a;o++){const u=v[o];i[o]=t(e[u],u,o,l&&l[o])}}else i=[];return n&&(n[r]=i),i}function qu(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(He(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 Te(e,t,n={},r,i){if(un.isCE||un.parent&&gs(un.parent)&&un.parent.isCE)return ue("slot",t==="default"?null:{name:t},r&&r());let l=e[t];l&&l._c&&(l._d=!1),z();const v=l&&wb(l(n)),o=be(je,{key:n.key||v&&v.key||`_${t}`},v||(r?r():[]),v&&e._===1?64:-2);return!i&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),l&&l._c&&(l._d=!0),o}function wb(e){return e.some(t=>zi(t)?!(t.type===Bn||t.type===je&&!wb(t.children)):!0)?e:null}function BS(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Su(r)]=e[r];return n}const dd=e=>e?Ib(e)?Rc(e)||e.proxy:dd(e.parent):null,Zu=en(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=>dd(e.parent),$root:e=>dd(e.root),$emit:e=>e.emit,$options:e=>Zh(e),$forceUpdate:e=>e.f||(e.f=()=>Xh(e.update)),$nextTick:e=>e.n||(e.n=Xe.bind(e.proxy)),$watch:e=>ES.bind(e)}),FS={get({_:e},t){const{ctx:n,setupState:r,data:i,props:l,accessCache:v,type:o,appContext:a}=e;let u;if(t[0]!=="$"){const s=v[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!==Pt&&et(r,t))return v[t]=1,r[t];if(i!==Pt&&et(i,t))return v[t]=2,i[t];if((u=e.propsOptions[0])&&et(u,t))return v[t]=3,l[t];if(n!==Pt&&et(n,t))return v[t]=4,n[t];hd&&(v[t]=0)}}const d=Zu[t];let c,f;if(d)return t==="$attrs"&&zn(e,"get",t),d(e);if((c=o.__cssModules)&&(c=c[t]))return c;if(n!==Pt&&et(n,t))return v[t]=4,n[t];if(f=a.config.globalProperties,et(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:l}=e;return i!==Pt&&et(i,t)?(i[t]=n,!0):r!==Pt&&et(r,t)?(r[t]=n,!0):et(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}},v){let o;return!!n[v]||e!==Pt&&et(e,v)||t!==Pt&&et(t,v)||(o=l[0])&&et(o,v)||et(r,v)||et(Zu,v)||et(i.config.globalProperties,v)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:et(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let hd=!0;function zS(e){const t=Zh(e),n=e.proxy,r=e.ctx;hd=!1,t.beforeCreate&&jm(t.beforeCreate,e,"bc");const{data:i,computed:l,methods:v,watch:o,provide:a,inject:u,created:d,beforeMount:c,mounted:f,beforeUpdate:s,updated:h,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:_,unmounted:w,render:S,renderTracked:x,renderTriggered:T,errorCaptured:E,serverPrefetch:I,expose:D,inheritAttrs:N,components:L,directives:F,filters:O}=t;if(u&&NS(u,r,null,e.appContext.config.unwrapInjectedRef),v)for(const J in v){const le=v[J];Ye(le)&&(r[J]=le.bind(n))}if(i){const J=i.call(n,n);ot(J)&&(e.data=vt(J))}if(hd=!0,l)for(const J in l){const le=l[J],M=Ye(le)?le.bind(n,n):Ye(le.get)?le.get.bind(n,n):ct,U=!Ye(le)&&Ye(le.set)?le.set.bind(n):ct,R=ee({get:M,set:U});Object.defineProperty(r,J,{enumerable:!0,configurable:!0,get:()=>R.value,set:P=>R.value=P})}if(o)for(const J in o)Cb(o[J],r,n,J);if(a){const J=Ye(a)?a.call(n):a;Reflect.ownKeys(J).forEach(le=>{gt(le,J[le])})}d&&jm(d,e,"c");function ne(J,le){He(le)?le.forEach(M=>J(M.bind(n))):le&&J(le.bind(n))}if(ne(yb,c),ne(nt,f),ne(IS,s),ne(ja,h),ne(AS,g),ne(gb,m),ne(DS,E),ne(RS,x),ne(LS,T),ne(Yt,b),ne(li,w),ne(MS,I),He(D))if(D.length){const J=e.exposed||(e.exposed={});D.forEach(le=>{Object.defineProperty(J,le,{get:()=>n[le],set:M=>n[le]=M})})}else e.exposed||(e.exposed={});S&&e.render===ct&&(e.render=S),N!=null&&(e.inheritAttrs=N),L&&(e.components=L),F&&(e.directives=F)}function NS(e,t,n=ct,r=!1){He(e)&&(e=pd(e));for(const i in e){const l=e[i];let v;ot(l)?"default"in l?v=qe(l.from||i,l.default,!0):v=qe(l.from||i):v=qe(l),At(v)&&r?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>v.value,set:o=>v.value=o}):t[i]=v}}function jm(e,t,n){Wn(He(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cb(e,t,n,r){const i=r.includes(".")?db(n,r):()=>n[r];if(Ge(e)){const l=t[e];Ye(l)&&xe(i,l)}else if(Ye(e))xe(i,e.bind(n));else if(ot(e))if(He(e))e.forEach(l=>Cb(l,t,n,r));else{const l=Ye(e.handler)?e.handler.bind(n):t[e.handler];Ye(l)&&xe(i,l,e)}}function Zh(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:l,config:{optionMergeStrategies:v}}=e.appContext,o=l.get(t);let a;return o?a=o:!i.length&&!n&&!r?a=t:(a={},i.length&&i.forEach(u=>Ju(a,u,v,!0)),Ju(a,t,v)),ot(t)&&l.set(t,a),a}function Ju(e,t,n,r=!1){const{mixins:i,extends:l}=t;l&&Ju(e,l,n,!0),i&&i.forEach(v=>Ju(e,v,n,!0));for(const v in t)if(!(r&&v==="expose")){const o=jS[v]||n&&n[v];e[v]=o?o(e[v],t[v]):t[v]}return e}const jS={data:Vm,props:ra,emits:ra,methods:ra,computed:ra,beforeCreate:mn,created:mn,beforeMount:mn,mounted:mn,beforeUpdate:mn,updated:mn,beforeDestroy:mn,beforeUnmount:mn,destroyed:mn,unmounted:mn,activated:mn,deactivated:mn,errorCaptured:mn,serverPrefetch:mn,components:ra,directives:ra,watch:US,provide:Vm,inject:VS};function Vm(e,t){return t?e?function(){return en(Ye(e)?e.call(this,this):e,Ye(t)?t.call(this,this):t)}:t:e}function VS(e,t){return ra(pd(e),pd(t))}function pd(e){if(He(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function mn(e,t){return e?[...new Set([].concat(e,t))]:t}function ra(e,t){return e?en(en(Object.create(null),e),t):t}function US(e,t){if(!e)return t;if(!t)return e;const n=en(Object.create(null),e);for(const r in t)n[r]=mn(e[r],t[r]);return n}function HS(e,t,n,r=!1){const i={},l={};Yu(l,Lc,1),e.propsDefaults=Object.create(null),Sb(e,t,i,l);for(const v in e.propsOptions[0])v in i||(i[v]=void 0);n?e.props=r?i:Jy(i):e.type.props?e.props=i:e.props=l,e.attrs=l}function WS(e,t,n,r){const{props:i,attrs:l,vnode:{patchFlag:v}}=e,o=it(i),[a]=e.propsOptions;let u=!1;if((r||v>0)&&!(v&16)){if(v&8){const d=e.vnode.dynamicProps;for(let c=0;c<d.length;c++){let f=d[c];if(Oc(e.emitsOptions,f))continue;const s=t[f];if(a)if(et(l,f))s!==l[f]&&(l[f]=s,u=!0);else{const h=lr(f);i[h]=md(a,o,h,s,e,!1)}else s!==l[f]&&(l[f]=s,u=!0)}}}else{Sb(e,t,i,l)&&(u=!0);let d;for(const c in o)(!t||!et(t,c)&&((d=Ba(c))===c||!et(t,d)))&&(a?n&&(n[c]!==void 0||n[d]!==void 0)&&(i[c]=md(a,o,c,void 0,e,!0)):delete i[c]);if(l!==o)for(const c in l)(!t||!et(t,c)&&!0)&&(delete l[c],u=!0)}u&&Jr(e,"set","$attrs")}function Sb(e,t,n,r){const[i,l]=e.propsOptions;let v=!1,o;if(t)for(let a in t){if(Cu(a))continue;const u=t[a];let d;i&&et(i,d=lr(a))?!l||!l.includes(d)?n[d]=u:(o||(o={}))[d]=u:Oc(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,v=!0)}if(l){const a=it(n),u=o||Pt;for(let d=0;d<l.length;d++){const c=l[d];n[c]=md(i,a,c,u[c],e,!et(u,c))}}return v}function md(e,t,n,r,i,l){const v=e[n];if(v!=null){const o=et(v,"default");if(o&&r===void 0){const a=v.default;if(v.type!==Function&&Ye(a)){const{propsDefaults:u}=i;n in u?r=u[n]:(Co(i),r=u[n]=a.call(null,t),Ca())}else r=a}v[0]&&(l&&!o?r=!1:v[1]&&(r===""||r===Ba(n))&&(r=!0))}return r}function xb(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const l=e.props,v={},o=[];let a=!1;if(!Ye(e)){const d=c=>{a=!0;const[f,s]=xb(c,t,!0);en(v,f),s&&o.push(...s)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!l&&!a)return ot(e)&&r.set(e,po),po;if(He(l))for(let d=0;d<l.length;d++){const c=lr(l[d]);Um(c)&&(v[c]=Pt)}else if(l)for(const d in l){const c=lr(d);if(Um(c)){const f=l[d],s=v[c]=He(f)||Ye(f)?{type:f}:f;if(s){const h=Ym(Boolean,s.type),g=Ym(String,s.type);s[0]=h>-1,s[1]=g<0||h<g,(h>-1||et(s,"default"))&&o.push(c)}}}const u=[v,o];return ot(e)&&r.set(e,u),u}function Um(e){return e[0]!=="$"}function Hm(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Wm(e,t){return Hm(e)===Hm(t)}function Ym(e,t){return He(t)?t.findIndex(n=>Wm(n,e)):Ye(t)&&Wm(t,e)?0:-1}const Tb=e=>e[0]==="_"||e==="$stable",Jh=e=>He(e)?e.map(yr):[yr(e)],YS=(e,t,n)=>{if(t._n)return t;const r=he((...i)=>Jh(t(...i)),n);return r._c=!1,r},kb=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Tb(i))continue;const l=e[i];if(Ye(l))t[i]=YS(i,l,r);else if(l!=null){const v=Jh(l);t[i]=()=>v}}},Eb=(e,t)=>{const n=Jh(t);e.slots.default=()=>n},XS=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=it(t),Yu(t,"_",n)):kb(t,e.slots={})}else e.slots={},t&&Eb(e,t);Yu(e.slots,Lc,1)},KS=(e,t,n)=>{const{vnode:r,slots:i}=e;let l=!0,v=Pt;if(r.shapeFlag&32){const o=t._;o?n&&o===1?l=!1:(en(i,t),!n&&o===1&&delete i._):(l=!t.$stable,kb(t,i)),v=t}else t&&(Eb(e,t),v={default:1});if(l)for(const o in i)!Tb(o)&&!(o in v)&&delete i[o]};function Ob(){return{app:null,config:{isNativeTag:OC,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 GS=0;function qS(e,t){return function(r,i=null){Ye(r)||(r=Object.assign({},r)),i!=null&&!ot(i)&&(i=null);const l=Ob(),v=new Set;let o=!1;const a=l.app={_uid:GS++,_component:r,_props:i,_container:null,_context:l,_instance:null,version:mx,get config(){return l.config},set config(u){},use(u,...d){return v.has(u)||(u&&Ye(u.install)?(v.add(u),u.install(a,...d)):Ye(u)&&(v.add(u),u(a,...d))),a},mixin(u){return l.mixins.includes(u)||l.mixins.push(u),a},component(u,d){return d?(l.components[u]=d,a):l.components[u]},directive(u,d){return d?(l.directives[u]=d,a):l.directives[u]},mount(u,d,c){if(!o){const f=ue(r,i);return f.appContext=l,d&&t?t(f,u):e(f,u,c),o=!0,a._container=u,u.__vue_app__=a,Rc(f.component)||f.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(u,d){return l.provides[u]=d,a}};return a}}function gd(e,t,n,r,i=!1){if(He(e)){e.forEach((f,s)=>gd(f,t&&(He(t)?t[s]:t),n,r,i));return}if(gs(r)&&!i)return;const l=r.shapeFlag&4?Rc(r.component)||r.component.proxy:r.el,v=i?null:l,{i:o,r:a}=e,u=t&&t.r,d=o.refs===Pt?o.refs={}:o.refs,c=o.setupState;if(u!=null&&u!==a&&(Ge(u)?(d[u]=null,et(c,u)&&(c[u]=null)):At(u)&&(u.value=null)),Ye(a))Gr(a,o,12,[v,d]);else{const f=Ge(a),s=At(a);if(f||s){const h=()=>{if(e.f){const g=f?d[a]:a.value;i?He(g)&&Rh(g,l):He(g)?g.includes(l)||g.push(l):f?(d[a]=[l],et(c,a)&&(c[a]=d[a])):(a.value=[l],e.k&&(d[e.k]=a.value))}else f?(d[a]=v,et(c,a)&&(c[a]=v)):s&&(a.value=v,e.k&&(d[e.k]=v))};v?(h.id=-1,Cn(h,n)):h()}}}const Cn=kS;function ZS(e){return JS(e)}function JS(e,t){const n=LC();n.__VUE__=!0;const{insert:r,remove:i,patchProp:l,createElement:v,createText:o,createComment:a,setText:u,setElementText:d,parentNode:c,nextSibling:f,setScopeId:s=ct,insertStaticContent:h}=e,g=(H,W,k,X=null,Y=null,$=null,B=!1,K=null,ce=!!W.dynamicChildren)=>{if(H===W)return;H&&!oa(H,W)&&(X=G(H),P(H,Y,$,!0),H=null),W.patchFlag===-2&&(ce=!1,W.dynamicChildren=null);const{type:ie,ref:Z,shapeFlag:me}=W;switch(ie){case Cl:m(H,W,k,X);break;case Bn:y(H,W,k,X);break;case Tu:H==null&&b(W,k,X,B);break;case je:L(H,W,k,X,Y,$,B,K,ce);break;default:me&1?S(H,W,k,X,Y,$,B,K,ce):me&6?F(H,W,k,X,Y,$,B,K,ce):(me&64||me&128)&&ie.process(H,W,k,X,Y,$,B,K,ce,fe)}Z!=null&&Y&&gd(Z,H&&H.ref,$,W||H,!W)},m=(H,W,k,X)=>{if(H==null)r(W.el=o(W.children),k,X);else{const Y=W.el=H.el;W.children!==H.children&&u(Y,W.children)}},y=(H,W,k,X)=>{H==null?r(W.el=a(W.children||""),k,X):W.el=H.el},b=(H,W,k,X)=>{[H.el,H.anchor]=h(H.children,W,k,X,H.el,H.anchor)},_=({el:H,anchor:W},k,X)=>{let Y;for(;H&&H!==W;)Y=f(H),r(H,k,X),H=Y;r(W,k,X)},w=({el:H,anchor:W})=>{let k;for(;H&&H!==W;)k=f(H),i(H),H=k;i(W)},S=(H,W,k,X,Y,$,B,K,ce)=>{B=B||W.type==="svg",H==null?x(W,k,X,Y,$,B,K,ce):I(H,W,Y,$,B,K,ce)},x=(H,W,k,X,Y,$,B,K)=>{let ce,ie;const{type:Z,props:me,shapeFlag:ae,transition:ge,dirs:Ce}=H;if(ce=H.el=v(H.type,$,me&&me.is,me),ae&8?d(ce,H.children):ae&16&&E(H.children,ce,null,X,Y,$&&Z!=="foreignObject",B,K),Ce&&Ji(H,null,X,"created"),me){for(const Oe in me)Oe!=="value"&&!Cu(Oe)&&l(ce,Oe,null,me[Oe],$,H.children,X,Y,q);"value"in me&&l(ce,"value",null,me.value),(ie=me.onVnodeBeforeMount)&&mr(ie,X,H)}T(ce,H,H.scopeId,B,X),Ce&&Ji(H,null,X,"beforeMount");const ke=(!Y||Y&&!Y.pendingBranch)&&ge&&!ge.persisted;ke&&ge.beforeEnter(ce),r(ce,W,k),((ie=me&&me.onVnodeMounted)||ke||Ce)&&Cn(()=>{ie&&mr(ie,X,H),ke&&ge.enter(ce),Ce&&Ji(H,null,X,"mounted")},Y)},T=(H,W,k,X,Y)=>{if(k&&s(H,k),X)for(let $=0;$<X.length;$++)s(H,X[$]);if(Y){let $=Y.subTree;if(W===$){const B=Y.vnode;T(H,B,B.scopeId,B.slotScopeIds,Y.parent)}}},E=(H,W,k,X,Y,$,B,K,ce=0)=>{for(let ie=ce;ie<H.length;ie++){const Z=H[ie]=K?xi(H[ie]):yr(H[ie]);g(null,Z,W,k,X,Y,$,B,K)}},I=(H,W,k,X,Y,$,B)=>{const K=W.el=H.el;let{patchFlag:ce,dynamicChildren:ie,dirs:Z}=W;ce|=H.patchFlag&16;const me=H.props||Pt,ae=W.props||Pt;let ge;k&&Qi(k,!1),(ge=ae.onVnodeBeforeUpdate)&&mr(ge,k,W,H),Z&&Ji(W,H,k,"beforeUpdate"),k&&Qi(k,!0);const Ce=Y&&W.type!=="foreignObject";if(ie?D(H.dynamicChildren,ie,K,k,X,Ce,$):B||le(H,W,K,null,k,X,Ce,$,!1),ce>0){if(ce&16)N(K,W,me,ae,k,X,Y);else if(ce&2&&me.class!==ae.class&&l(K,"class",null,ae.class,Y),ce&4&&l(K,"style",me.style,ae.style,Y),ce&8){const ke=W.dynamicProps;for(let Oe=0;Oe<ke.length;Oe++){const ze=ke[Oe],_e=me[ze],Se=ae[ze];(Se!==_e||ze==="value")&&l(K,ze,_e,Se,Y,H.children,k,X,q)}}ce&1&&H.children!==W.children&&d(K,W.children)}else!B&&ie==null&&N(K,W,me,ae,k,X,Y);((ge=ae.onVnodeUpdated)||Z)&&Cn(()=>{ge&&mr(ge,k,W,H),Z&&Ji(W,H,k,"updated")},X)},D=(H,W,k,X,Y,$,B)=>{for(let K=0;K<W.length;K++){const ce=H[K],ie=W[K],Z=ce.el&&(ce.type===je||!oa(ce,ie)||ce.shapeFlag&70)?c(ce.el):k;g(ce,ie,Z,null,X,Y,$,B,!0)}},N=(H,W,k,X,Y,$,B)=>{if(k!==X){if(k!==Pt)for(const K in k)!Cu(K)&&!(K in X)&&l(H,K,k[K],null,B,W.children,Y,$,q);for(const K in X){if(Cu(K))continue;const ce=X[K],ie=k[K];ce!==ie&&K!=="value"&&l(H,K,ie,ce,B,W.children,Y,$,q)}"value"in X&&l(H,"value",k.value,X.value)}},L=(H,W,k,X,Y,$,B,K,ce)=>{const ie=W.el=H?H.el:o(""),Z=W.anchor=H?H.anchor:o("");let{patchFlag:me,dynamicChildren:ae,slotScopeIds:ge}=W;ge&&(K=K?K.concat(ge):ge),H==null?(r(ie,k,X),r(Z,k,X),E(W.children,k,Z,Y,$,B,K,ce)):me>0&&me&64&&ae&&H.dynamicChildren?(D(H.dynamicChildren,ae,k,Y,$,B,K),(W.key!=null||Y&&W===Y.subTree)&&Qh(H,W,!0)):le(H,W,k,Z,Y,$,B,K,ce)},F=(H,W,k,X,Y,$,B,K,ce)=>{W.slotScopeIds=K,H==null?W.shapeFlag&512?Y.ctx.activate(W,k,X,B,ce):O(W,k,X,Y,$,B,ce):V(H,W,ce)},O=(H,W,k,X,Y,$,B)=>{const K=H.component=lx(H,X,Y);if(Ic(H)&&(K.ctx.renderer=fe),ux(K),K.asyncDep){if(Y&&Y.registerDep(K,ne),!H.el){const ce=K.subTree=ue(Bn);y(null,ce,W,k)}return}ne(K,H,W,k,Y,$,B)},V=(H,W,k)=>{const X=W.component=H.component;if(SS(H,W,k))if(X.asyncDep&&!X.asyncResolved){J(X,W,k);return}else X.next=W,vS(X.update),X.update();else W.el=H.el,X.vnode=W},ne=(H,W,k,X,Y,$,B)=>{const K=()=>{if(H.isMounted){let{next:Z,bu:me,u:ae,parent:ge,vnode:Ce}=H,ke=Z,Oe;Qi(H,!1),Z?(Z.el=Ce.el,J(H,Z,B)):Z=Ce,me&&xu(me),(Oe=Z.props&&Z.props.onVnodeBeforeUpdate)&&mr(Oe,ge,Z,Ce),Qi(H,!0);const ze=lf(H),_e=H.subTree;H.subTree=ze,g(_e,ze,c(_e.el),G(_e),H,Y,$),Z.el=ze.el,ke===null&&xS(H,ze.el),ae&&Cn(ae,Y),(Oe=Z.props&&Z.props.onVnodeUpdated)&&Cn(()=>mr(Oe,ge,Z,Ce),Y)}else{let Z;const{el:me,props:ae}=W,{bm:ge,m:Ce,parent:ke}=H,Oe=gs(W);if(Qi(H,!1),ge&&xu(ge),!Oe&&(Z=ae&&ae.onVnodeBeforeMount)&&mr(Z,ke,W),Qi(H,!0),me&&ve){const ze=()=>{H.subTree=lf(H),ve(me,H.subTree,H,Y,null)};Oe?W.type.__asyncLoader().then(()=>!H.isUnmounted&&ze()):ze()}else{const ze=H.subTree=lf(H);g(null,ze,k,X,H,Y,$),W.el=ze.el}if(Ce&&Cn(Ce,Y),!Oe&&(Z=ae&&ae.onVnodeMounted)){const ze=W;Cn(()=>mr(Z,ke,ze),Y)}(W.shapeFlag&256||ke&&gs(ke.vnode)&&ke.vnode.shapeFlag&256)&&H.a&&Cn(H.a,Y),H.isMounted=!0,W=k=X=null}},ce=H.effect=new zh(K,()=>Xh(ie),H.scope),ie=H.update=()=>ce.run();ie.id=H.uid,Qi(H,!0),ie()},J=(H,W,k)=>{W.component=H;const X=H.vnode.props;H.vnode=W,H.next=null,WS(H,W.props,X,k),KS(H,W.children,k),Fa(),$m(),za()},le=(H,W,k,X,Y,$,B,K,ce=!1)=>{const ie=H&&H.children,Z=H?H.shapeFlag:0,me=W.children,{patchFlag:ae,shapeFlag:ge}=W;if(ae>0){if(ae&128){U(ie,me,k,X,Y,$,B,K,ce);return}else if(ae&256){M(ie,me,k,X,Y,$,B,K,ce);return}}ge&8?(Z&16&&q(ie,Y,$),me!==ie&&d(k,me)):Z&16?ge&16?U(ie,me,k,X,Y,$,B,K,ce):q(ie,Y,$,!0):(Z&8&&d(k,""),ge&16&&E(me,k,X,Y,$,B,K,ce))},M=(H,W,k,X,Y,$,B,K,ce)=>{H=H||po,W=W||po;const ie=H.length,Z=W.length,me=Math.min(ie,Z);let ae;for(ae=0;ae<me;ae++){const ge=W[ae]=ce?xi(W[ae]):yr(W[ae]);g(H[ae],ge,k,null,Y,$,B,K,ce)}ie>Z?q(H,Y,$,!0,!1,me):E(W,k,X,Y,$,B,K,ce,me)},U=(H,W,k,X,Y,$,B,K,ce)=>{let ie=0;const Z=W.length;let me=H.length-1,ae=Z-1;for(;ie<=me&&ie<=ae;){const ge=H[ie],Ce=W[ie]=ce?xi(W[ie]):yr(W[ie]);if(oa(ge,Ce))g(ge,Ce,k,null,Y,$,B,K,ce);else break;ie++}for(;ie<=me&&ie<=ae;){const ge=H[me],Ce=W[ae]=ce?xi(W[ae]):yr(W[ae]);if(oa(ge,Ce))g(ge,Ce,k,null,Y,$,B,K,ce);else break;me--,ae--}if(ie>me){if(ie<=ae){const ge=ae+1,Ce=ge<Z?W[ge].el:X;for(;ie<=ae;)g(null,W[ie]=ce?xi(W[ie]):yr(W[ie]),k,Ce,Y,$,B,K,ce),ie++}}else if(ie>ae)for(;ie<=me;)P(H[ie],Y,$,!0),ie++;else{const ge=ie,Ce=ie,ke=new Map;for(ie=Ce;ie<=ae;ie++){const bt=W[ie]=ce?xi(W[ie]):yr(W[ie]);bt.key!=null&&ke.set(bt.key,ie)}let Oe,ze=0;const _e=ae-Ce+1;let Se=!1,De=0;const Me=new Array(_e);for(ie=0;ie<_e;ie++)Me[ie]=0;for(ie=ge;ie<=me;ie++){const bt=H[ie];if(ze>=_e){P(bt,Y,$,!0);continue}let we;if(bt.key!=null)we=ke.get(bt.key);else for(Oe=Ce;Oe<=ae;Oe++)if(Me[Oe-Ce]===0&&oa(bt,W[Oe])){we=Oe;break}we===void 0?P(bt,Y,$,!0):(Me[we-Ce]=ie+1,we>=De?De=we:Se=!0,g(bt,W[we],k,null,Y,$,B,K,ce),ze++)}const yt=Se?QS(Me):po;for(Oe=yt.length-1,ie=_e-1;ie>=0;ie--){const bt=Ce+ie,we=W[bt],$e=bt+1<Z?W[bt+1].el:X;Me[ie]===0?g(null,we,k,$e,Y,$,B,K,ce):Se&&(Oe<0||ie!==yt[Oe]?R(we,k,$e,2):Oe--)}}},R=(H,W,k,X,Y=null)=>{const{el:$,type:B,transition:K,children:ce,shapeFlag:ie}=H;if(ie&6){R(H.component.subTree,W,k,X);return}if(ie&128){H.suspense.move(W,k,X);return}if(ie&64){B.move(H,W,k,fe);return}if(B===je){r($,W,k);for(let me=0;me<ce.length;me++)R(ce[me],W,k,X);r(H.anchor,W,k);return}if(B===Tu){_(H,W,k);return}if(X!==2&&ie&1&&K)if(X===0)K.beforeEnter($),r($,W,k),Cn(()=>K.enter($),Y);else{const{leave:me,delayLeave:ae,afterLeave:ge}=K,Ce=()=>r($,W,k),ke=()=>{me($,()=>{Ce(),ge&&ge()})};ae?ae($,Ce,ke):ke()}else r($,W,k)},P=(H,W,k,X=!1,Y=!1)=>{const{type:$,props:B,ref:K,children:ce,dynamicChildren:ie,shapeFlag:Z,patchFlag:me,dirs:ae}=H;if(K!=null&&gd(K,null,k,H,!0),Z&256){W.ctx.deactivate(H);return}const ge=Z&1&&ae,Ce=!gs(H);let ke;if(Ce&&(ke=B&&B.onVnodeBeforeUnmount)&&mr(ke,W,H),Z&6)A(H.component,k,X);else{if(Z&128){H.suspense.unmount(k,X);return}ge&&Ji(H,null,W,"beforeUnmount"),Z&64?H.type.remove(H,W,k,Y,fe,X):ie&&($!==je||me>0&&me&64)?q(ie,W,k,!1,!0):($===je&&me&384||!Y&&Z&16)&&q(ce,W,k),X&&Q(H)}(Ce&&(ke=B&&B.onVnodeUnmounted)||ge)&&Cn(()=>{ke&&mr(ke,W,H),ge&&Ji(H,null,W,"unmounted")},k)},Q=H=>{const{type:W,el:k,anchor:X,transition:Y}=H;if(W===je){j(k,X);return}if(W===Tu){w(H);return}const $=()=>{i(k),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(H.shapeFlag&1&&Y&&!Y.persisted){const{leave:B,delayLeave:K}=Y,ce=()=>B(k,$);K?K(H.el,$,ce):ce()}else $()},j=(H,W)=>{let k;for(;H!==W;)k=f(H),i(H),H=k;i(W)},A=(H,W,k)=>{const{bum:X,scope:Y,update:$,subTree:B,um:K}=H;X&&xu(X),Y.stop(),$&&($.active=!1,P(B,H,W,k)),K&&Cn(K,W),Cn(()=>{H.isUnmounted=!0},W),W&&W.pendingBranch&&!W.isUnmounted&&H.asyncDep&&!H.asyncResolved&&H.suspenseId===W.pendingId&&(W.deps--,W.deps===0&&W.resolve())},q=(H,W,k,X=!1,Y=!1,$=0)=>{for(let B=$;B<H.length;B++)P(H[B],W,k,X,Y)},G=H=>H.shapeFlag&6?G(H.component.subTree):H.shapeFlag&128?H.suspense.next():f(H.anchor||H.el),te=(H,W,k)=>{H==null?W._vnode&&P(W._vnode,null,null,!0):g(W._vnode||null,H,W,null,null,null,k),$m(),lb(),W._vnode=H},fe={p:g,um:P,m:R,r:Q,mt:O,mc:E,pc:le,pbc:D,n:G,o:e};let pe,ve;return t&&([pe,ve]=t(fe)),{render:te,hydrate:pe,createApp:qS(te,pe)}}function Qi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Qh(e,t,n=!1){const r=e.children,i=t.children;if(He(r)&&He(i))for(let l=0;l<r.length;l++){const v=r[l];let o=i[l];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=i[l]=xi(i[l]),o.el=v.el),n||Qh(v,o))}}function QS(e){const t=e.slice(),n=[0];let r,i,l,v,o;const a=e.length;for(r=0;r<a;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,v=n.length-1;l<v;)o=l+v>>1,e[n[o]]<u?l=o+1:v=o;u<e[n[l]]&&(l>0&&(t[r]=n[l-1]),n[l]=r)}}for(l=n.length,v=n[l-1];l-- >0;)n[l]=v,v=t[v];return n}const ex=e=>e.__isTeleport,vs=e=>e&&(e.disabled||e.disabled===""),Xm=e=>typeof SVGElement<"u"&&e instanceof SVGElement,vd=(e,t)=>{const n=e&&e.to;return Ge(n)?t?t(n):null:n},tx={__isTeleport:!0,process(e,t,n,r,i,l,v,o,a,u){const{mc:d,pc:c,pbc:f,o:{insert:s,querySelector:h,createText:g,createComment:m}}=u,y=vs(t.props);let{shapeFlag:b,children:_,dynamicChildren:w}=t;if(e==null){const S=t.el=g(""),x=t.anchor=g("");s(S,n,r),s(x,n,r);const T=t.target=vd(t.props,h),E=t.targetAnchor=g("");T&&(s(E,T),v=v||Xm(T));const I=(D,N)=>{b&16&&d(_,D,N,i,l,v,o,a)};y?I(n,x):T&&I(T,E)}else{t.el=e.el;const S=t.anchor=e.anchor,x=t.target=e.target,T=t.targetAnchor=e.targetAnchor,E=vs(e.props),I=E?n:x,D=E?S:T;if(v=v||Xm(x),w?(f(e.dynamicChildren,w,I,i,l,v,o),Qh(e,t,!0)):a||c(e,t,I,D,i,l,v,o,!1),y)E||Gl(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=vd(t.props,h);N&&Gl(t,N,null,u,0)}else E&&Gl(t,x,T,u,1)}},remove(e,t,n,r,{um:i,o:{remove:l}},v){const{shapeFlag:o,children:a,anchor:u,targetAnchor:d,target:c,props:f}=e;if(c&&l(d),(v||!vs(f))&&(l(u),o&16))for(let s=0;s<a.length;s++){const h=a[s];i(h,t,n,!0,!!h.dynamicChildren)}},move:Gl,hydrate:nx};function Gl(e,t,n,{o:{insert:r},m:i},l=2){l===0&&r(e.targetAnchor,t,n);const{el:v,anchor:o,shapeFlag:a,children:u,props:d}=e,c=l===2;if(c&&r(v,t,n),(!c||vs(d))&&a&16)for(let f=0;f<u.length;f++)i(u[f],t,n,2);c&&r(o,t,n)}function nx(e,t,n,r,i,l,{o:{nextSibling:v,parentNode:o,querySelector:a}},u){const d=t.target=vd(t.props,a);if(d){const c=d._lpa||d.firstChild;if(t.shapeFlag&16)if(vs(t.props))t.anchor=u(v(e),t,o(e),n,r,i,l),t.targetAnchor=c;else{t.anchor=v(e);let f=c;for(;f;)if(f=v(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,d._lpa=t.targetAnchor&&v(t.targetAnchor);break}u(c,t,d,n,r,i,l)}}return t.anchor&&v(t.anchor)}const ep=tx,je=Symbol(void 0),Cl=Symbol(void 0),Bn=Symbol(void 0),Tu=Symbol(void 0),ys=[];let rr=null;function z(e=!1){ys.push(rr=e?null:[])}function rx(){ys.pop(),rr=ys[ys.length-1]||null}let Us=1;function Km(e){Us+=e}function Ab(e){return e.dynamicChildren=Us>0?rr||po:null,rx(),Us>0&&rr&&rr.push(e),e}function se(e,t,n,r,i,l){return Ab(re(e,t,n,r,i,l,!0))}function be(e,t,n,r,i){return Ab(ue(e,t,n,r,i,!0))}function zi(e){return e?e.__v_isVNode===!0:!1}function oa(e,t){return e.type===t.type&&e.key===t.key}const Lc="__vInternal",Pb=({key:e})=>e!=null?e:null,ku=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ge(e)||At(e)||Ye(e)?{i:un,r:e,k:t,f:!!n}:e:null;function re(e,t=null,n=null,r=0,i=null,l=e===je?0:1,v=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pb(t),ref:t&&ku(t),scopeId:Ac,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 o?(tp(a,n),l&128&&e.normalize(a)):n&&(a.shapeFlag|=Ge(n)?8:16),Us>0&&!v&&rr&&(a.patchFlag>0||l&6)&&a.patchFlag!==32&&rr.push(a),a}const ue=ix;function ix(e,t=null,n=null,r=0,i=null,l=!1){if((!e||e===bb)&&(e=Bn),zi(e)){const o=Qr(e,t,!0);return n&&tp(o,n),Us>0&&!l&&rr&&(o.shapeFlag&6?rr[rr.indexOf(e)]=o:rr.push(o)),o.patchFlag|=-2,o}if(px(e)&&(e=e.__vccOpts),t){t=ax(t);let{class:o,style:a}=t;o&&!Ge(o)&&(t.class=de(o)),ot(a)&&(Qy(a)&&!He(a)&&(a=en({},a)),t.style=Ne(a))}const v=Ge(e)?1:TS(e)?128:ex(e)?64:ot(e)?4:Ye(e)?2:0;return re(e,t,n,r,i,v,l,!0)}function ax(e){return e?Qy(e)||Lc in e?en({},e):e:null}function Qr(e,t,n=!1){const{props:r,ref:i,patchFlag:l,children:v}=e,o=t?Tn(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Pb(o),ref:t&&t.ref?n&&i?He(i)?i.concat(ku(t)):[i,ku(t)]:ku(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:v,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==je?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&&Qr(e.ssContent),ssFallback:e.ssFallback&&Qr(e.ssFallback),el:e.el,anchor:e.anchor}}function Ue(e=" ",t=0){return ue(Cl,null,e,t)}function ye(e="",t=!1){return t?(z(),be(Bn,null,e)):ue(Bn,null,e)}function yr(e){return e==null||typeof e=="boolean"?ue(Bn):He(e)?ue(je,null,e.slice()):typeof e=="object"?xi(e):ue(Cl,null,String(e))}function xi(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qr(e)}function tp(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),tp(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Lc in t)?t._ctx=un:i===3&&un&&(un.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ye(t)?(t={default:t,_ctx:un},n=32):(t=String(t),r&64?(n=16,t=[Ue(t)]):n=8);e.children=t,e.shapeFlag|=n}function Tn(...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=de([t.class,r.class]));else if(i==="style")t.style=Ne([t.style,r.style]);else if(Sc(i)){const l=t[i],v=r[i];v&&l!==v&&!(He(l)&&l.includes(v))&&(t[i]=l?[].concat(l,v):v)}else i!==""&&(t[i]=r[i])}return t}function mr(e,t,n,r=null){Wn(e,t,7,[n,r])}const ox=Ob();let sx=0;function lx(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||ox,l={uid:sx++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ny(!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:xb(r,i),emitsOptions:cb(r,i),emit:null,emitted:null,propsDefaults:Pt,inheritAttrs:r.inheritAttrs,ctx:Pt,data:Pt,props:Pt,attrs:Pt,slots:Pt,refs:Pt,setupState:Pt,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=_S.bind(null,l),e.ce&&e.ce(l),l}let Qt=null;const St=()=>Qt||un,Co=e=>{Qt=e,e.scope.on()},Ca=()=>{Qt&&Qt.scope.off(),Qt=null};function Ib(e){return e.vnode.shapeFlag&4}let Hs=!1;function ux(e,t=!1){Hs=t;const{props:n,children:r}=e.vnode,i=Ib(e);HS(e,n,i,t),XS(e,r);const l=i?cx(e,t):void 0;return Hs=!1,l}function cx(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fi(new Proxy(e.ctx,FS));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Lb(e):null;Co(e),Fa();const l=Gr(r,e,0,[e.props,i]);if(za(),Ca(),Wu(l)){if(l.then(Ca,Ca),t)return l.then(v=>{Gm(e,v,t)}).catch(v=>{Ec(v,e,0)});e.asyncDep=l}else Gm(e,l,t)}else Mb(e,t)}function Gm(e,t,n){Ye(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ot(t)&&(e.setupState=nb(t)),Mb(e,n)}let qm;function Mb(e,t,n){const r=e.type;if(!e.render){if(!t&&qm&&!r.render){const i=r.template||Zh(e).template;if(i){const{isCustomElement:l,compilerOptions:v}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,u=en(en({isCustomElement:l,delimiters:o},v),a);r.render=qm(i,u)}}e.render=r.render||ct}Co(e),Fa(),zS(e),za(),Ca()}function fx(e){return new Proxy(e.attrs,{get(t,n){return zn(e,"get","$attrs"),t[n]}})}function Lb(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=fx(e))},slots:e.slots,emit:e.emit,expose:t}}function Rc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(nb(Fi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Zu)return Zu[n](e)}}))}const dx=/(?:^|[-_])(\w)/g,hx=e=>e.replace(dx,t=>t.toUpperCase()).replace(/[-_]/g,"");function Rb(e,t=!0){return Ye(e)?e.displayName||e.name:e.name||t&&e.__name}function Db(e,t,n=!1){let r=Rb(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 v in l)if(l[v]===t)return v};r=i(e.components||e.parent.type.components)||i(e.appContext.components)}return r?hx(r):n?"App":"Anonymous"}function px(e){return Ye(e)&&"__vccOpts"in e}const ee=(e,t)=>ib(e,t,Hs);function $o(){return Bb().slots}function $b(){return Bb().attrs}function Bb(){const e=St();return e.setupContext||(e.setupContext=Lb(e))}function _t(e,t,n){const r=arguments.length;return r===2?ot(t)&&!He(t)?zi(t)?ue(e,null,[t]):ue(e,t):ue(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&zi(n)&&(n=[n]),ue(e,t,n))}const mx="3.2.40",gx="http://www.w3.org/2000/svg",sa=typeof document<"u"?document:null,Zm=sa&&sa.createElement("template"),vx={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?sa.createElementNS(gx,e):sa.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>sa.createTextNode(e),createComment:e=>sa.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>sa.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,l){const v=n?n.previousSibling:t.lastChild;if(i&&(i===l||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===l||!(i=i.nextSibling)););else{Zm.innerHTML=r?`<svg>${e}</svg>`:e;const o=Zm.content;if(r){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[v?v.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function yx(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 bx(e,t,n){const r=e.style,i=Ge(n);if(n&&!i){for(const l in n)yd(r,l,n[l]);if(t&&!Ge(t))for(const l in t)n[l]==null&&yd(r,l,"")}else{const l=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=l)}}const Jm=/\s*!important$/;function yd(e,t,n){if(He(n))n.forEach(r=>yd(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=_x(e,t);Jm.test(n)?e.setProperty(Ba(r),n.replace(Jm,""),"important"):e[r]=n}}const Qm=["Webkit","Moz","ms"],cf={};function _x(e,t){const n=cf[t];if(n)return n;let r=lr(t);if(r!=="filter"&&r in e)return cf[t]=r;r=wl(r);for(let i=0;i<Qm.length;i++){const l=Qm[i]+r;if(l in e)return cf[t]=l}return t}const eg="http://www.w3.org/1999/xlink";function wx(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(eg,t.slice(6,t.length)):e.setAttributeNS(eg,t,n);else{const l=SC(t);n==null||l&&!Dy(n)?e.removeAttribute(t):e.setAttribute(t,l?"":n)}}function Cx(e,t,n,r,i,l,v){if(t==="innerHTML"||t==="textContent"){r&&v(r,i,l),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const a=n==null?"":n;(e.value!==a||e.tagName==="OPTION")&&(e.value=a),n==null&&e.removeAttribute(t);return}let o=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=Dy(n):n==null&&a==="string"?(n="",o=!0):a==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(t)}const[Fb,Sx]=(()=>{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 bd=0;const xx=Promise.resolve(),Tx=()=>{bd=0},kx=()=>bd||(xx.then(Tx),bd=Fb());function la(e,t,n,r){e.addEventListener(t,n,r)}function Ex(e,t,n,r){e.removeEventListener(t,n,r)}function Ox(e,t,n,r,i=null){const l=e._vei||(e._vei={}),v=l[t];if(r&&v)v.value=r;else{const[o,a]=Ax(t);if(r){const u=l[t]=Px(r,i);la(e,o,u,a)}else v&&(Ex(e,o,v,a),l[t]=void 0)}}const tg=/(?:Once|Passive|Capture)$/;function Ax(e){let t;if(tg.test(e)){t={};let r;for(;r=e.match(tg);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ba(e.slice(2)),t]}function Px(e,t){const n=r=>{const i=r.timeStamp||Fb();(Sx||i>=n.attached-1)&&Wn(Ix(r,n.value),t,5,[r])};return n.value=e,n.attached=kx(),n}function Ix(e,t){if(He(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 ng=/^on[a-z]/,Mx=(e,t,n,r,i=!1,l,v,o,a)=>{t==="class"?yx(e,r,i):t==="style"?bx(e,n,r):Sc(t)?Lh(t)||Ox(e,t,n,r,v):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Lx(e,t,r,i))?Cx(e,t,r,l,v,o,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),wx(e,t,r,i))};function Lx(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&ng.test(t)&&Ye(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||ng.test(t)&&Ge(n)?!1:t in e}function Rx(e){const t=St();if(!t)return;const n=()=>_d(t.subTree,e(t.proxy));fb(n),nt(()=>{const r=new MutationObserver(n);r.observe(t.subTree.el.parentNode,{childList:!0}),li(()=>r.disconnect())})}function _d(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{_d(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)rg(e.el,t);else if(e.type===je)e.children.forEach(n=>_d(n,t));else if(e.type===Tu){let{el:n,anchor:r}=e;for(;n&&(rg(n,t),n!==r);)n=n.nextSibling}}function rg(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const gi="transition",es="animation",dn=(e,{slots:t})=>_t(pb,Nb(e),t);dn.displayName="Transition";const zb={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},Dx=dn.props=en({},pb.props,zb),ea=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},ig=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function Nb(e){const t={};for(const L in e)L in zb||(t[L]=e[L]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:l=`${n}-enter-from`,enterActiveClass:v=`${n}-enter-active`,enterToClass:o=`${n}-enter-to`,appearFromClass:a=l,appearActiveClass:u=v,appearToClass:d=o,leaveFromClass:c=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:s=`${n}-leave-to`}=e,h=$x(i),g=h&&h[0],m=h&&h[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:_,onLeave:w,onLeaveCancelled:S,onBeforeAppear:x=y,onAppear:T=b,onAppearCancelled:E=_}=t,I=(L,F,O)=>{bi(L,F?d:o),bi(L,F?u:v),O&&O()},D=(L,F)=>{L._isLeaving=!1,bi(L,c),bi(L,s),bi(L,f),F&&F()},N=L=>(F,O)=>{const V=L?T:b,ne=()=>I(F,L,O);ea(V,[F,ne]),ag(()=>{bi(F,L?a:l),Nr(F,L?d:o),ig(V)||og(F,r,g,ne)})};return en(t,{onBeforeEnter(L){ea(y,[L]),Nr(L,l),Nr(L,v)},onBeforeAppear(L){ea(x,[L]),Nr(L,a),Nr(L,u)},onEnter:N(!1),onAppear:N(!0),onLeave(L,F){L._isLeaving=!0;const O=()=>D(L,F);Nr(L,c),Vb(),Nr(L,f),ag(()=>{!L._isLeaving||(bi(L,c),Nr(L,s),ig(w)||og(L,r,m,O))}),ea(w,[L,O])},onEnterCancelled(L){I(L,!1),ea(_,[L])},onAppearCancelled(L){I(L,!0),ea(E,[L])},onLeaveCancelled(L){D(L),ea(S,[L])}})}function $x(e){if(e==null)return null;if(ot(e))return[ff(e.enter),ff(e.leave)];{const t=ff(e);return[t,t]}}function ff(e){return Xu(e)}function Nr(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function bi(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 ag(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Bx=0;function og(e,t,n,r){const i=e._endId=++Bx,l=()=>{i===e._endId&&r()};if(n)return setTimeout(l,n);const{type:v,timeout:o,propCount:a}=jb(e,t);if(!v)return r();const u=v+"end";let d=0;const c=()=>{e.removeEventListener(u,f),l()},f=s=>{s.target===e&&++d>=a&&c()};setTimeout(()=>{d<a&&c()},o+1),e.addEventListener(u,f)}function jb(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),i=r(gi+"Delay"),l=r(gi+"Duration"),v=sg(i,l),o=r(es+"Delay"),a=r(es+"Duration"),u=sg(o,a);let d=null,c=0,f=0;t===gi?v>0&&(d=gi,c=v,f=l.length):t===es?u>0&&(d=es,c=u,f=a.length):(c=Math.max(v,u),d=c>0?v>u?gi:es:null,f=d?d===gi?l.length:a.length:0);const s=d===gi&&/\b(transform|all)(,|$)/.test(n[gi+"Property"]);return{type:d,timeout:c,propCount:f,hasTransform:s}}function sg(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>lg(n)+lg(e[r])))}function lg(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function Vb(){return document.body.offsetHeight}const Ub=new WeakMap,Hb=new WeakMap,Fx={name:"TransitionGroup",props:en({},Dx,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=St(),r=hb();let i,l;return ja(()=>{if(!i.length)return;const v=e.moveClass||`${e.name||"v"}-move`;if(!Ux(i[0].el,n.vnode.el,v))return;i.forEach(Nx),i.forEach(jx);const o=i.filter(Vx);Vb(),o.forEach(a=>{const u=a.el,d=u.style;Nr(u,v),d.transform=d.webkitTransform=d.transitionDuration="";const c=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",c),u._moveCb=null,bi(u,v))};u.addEventListener("transitionend",c)})}),()=>{const v=it(e),o=Nb(v);let a=v.tag||je;i=l,l=t.default?Kh(t.default()):[];for(let u=0;u<l.length;u++){const d=l[u];d.key!=null&&Vs(d,js(d,o,r,n))}if(i)for(let u=0;u<i.length;u++){const d=i[u];Vs(d,js(d,o,r,n)),Ub.set(d,d.el.getBoundingClientRect())}return ue(a,null,l)}}},zx=Fx;function Nx(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function jx(e){Hb.set(e,e.el.getBoundingClientRect())}function Vx(e){const t=Ub.get(e),n=Hb.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 Ux(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(v=>{v.split(/\s+/).forEach(o=>o&&r.classList.remove(o))}),n.split(/\s+/).forEach(v=>v&&r.classList.add(v)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:l}=jb(r);return i.removeChild(r),l}const Qu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>xu(t,n):t};function Hx(e){e.target.composing=!0}function ug(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Wx={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=Qu(i);const l=r||i.props&&i.props.type==="number";la(e,t?"change":"input",v=>{if(v.target.composing)return;let o=e.value;n&&(o=o.trim()),l&&(o=Xu(o)),e._assign(o)}),n&&la(e,"change",()=>{e.value=e.value.trim()}),t||(la(e,"compositionstart",Hx),la(e,"compositionend",ug),la(e,"change",ug))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},l){if(e._assign=Qu(l),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&Xu(e.value)===t))return;const v=t==null?"":t;e.value!==v&&(e.value=v)}},Wb={created(e,{value:t},n){e.checked=Hu(t,n.props.value),e._assign=Qu(n),la(e,"change",()=>{e._assign(Yx(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=Qu(r),t!==n&&(e.checked=Hu(t,r.props.value))}};function Yx(e){return"_value"in e?e._value:e.value}const Xx=["ctrl","shift","alt","meta"],Kx={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)=>Xx.some(n=>e[`${n}Key`]&&!t.includes(n))},tt=(e,t)=>(n,...r)=>{for(let i=0;i<t.length;i++){const l=Kx[t[i]];if(l&&l(n,t))return}return e(n,...r)},Gx={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Dt=(e,t)=>n=>{if(!("key"in n))return;const r=Ba(n.key);if(t.some(i=>i===r||Gx[i]===r))return e(n)},Ht={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):ts(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),ts(e,!0),r.enter(e)):r.leave(e,()=>{ts(e,!1)}):ts(e,t))},beforeUnmount(e,{value:t}){ts(e,t)}};function ts(e,t){e.style.display=t?e._vod:"none"}const qx=en({patchProp:Mx},vx);let cg;function Yb(){return cg||(cg=ZS(qx))}const ec=(...e)=>{Yb().render(...e)},Zx=(...e)=>{const t=Yb().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Jx(r);if(!i)return;const l=t._component;!Ye(l)&&!l.render&&!l.template&&(l.template=i.innerHTML),i.innerHTML="";const v=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),v},t};function Jx(e){return Ge(e)?document.querySelector(e):e}var Qx=!1;/*!
* pinia v2.0.22
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/let Xb;const Dc=e=>Xb=e,Kb=Symbol();function wd(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var bs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bs||(bs={}));function eT(){const e=$h(!0),t=e.run(()=>oe({}));let n=[],r=[];const i=Fi({install(l){Dc(i),i._a=l,l.provide(Kb,i),l.config.globalProperties.$pinia=i,r.forEach(v=>n.push(v)),r=[]},use(l){return!this._a&&!Qx?r.push(l):n.push(l),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const Gb=()=>{};function fg(e,t,n,r=Gb){e.push(t);const i=()=>{const l=e.indexOf(t);l>-1&&(e.splice(l,1),r())};return!n&&St()&&li(i),i}function qa(e,...t){e.slice().forEach(n=>{n(...t)})}function Cd(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];wd(i)&&wd(r)&&e.hasOwnProperty(n)&&!At(r)&&!Mi(r)?e[n]=Cd(i,r):e[n]=r}return e}const tT=Symbol();function nT(e){return!wd(e)||!e.hasOwnProperty(tT)}const{assign:Vr}=Object;function rT(e){return!!(At(e)&&e.effect)}function iT(e,t,n,r){const{state:i,actions:l,getters:v}=t,o=n.state.value[e];let a;function u(){o||(n.state.value[e]=i?i():{});const d=Xn(n.state.value[e]);return Vr(d,l,Object.keys(v||{}).reduce((c,f)=>(c[f]=Fi(ee(()=>{Dc(n);const s=n._s.get(e);return v[f].call(s,s)})),c),{}))}return a=qb(e,u,t,n,r,!0),a.$reset=function(){const c=i?i():{};this.$patch(f=>{Vr(f,c)})},a}function qb(e,t,n={},r,i,l){let v;const o=Vr({actions:{}},n),a={deep:!0};let u,d,c=Fi([]),f=Fi([]),s;const h=r.state.value[e];!l&&!h&&(r.state.value[e]={}),oe({});let g;function m(T){let E;u=d=!1,typeof T=="function"?(T(r.state.value[e]),E={type:bs.patchFunction,storeId:e,events:s}):(Cd(r.state.value[e],T),E={type:bs.patchObject,payload:T,storeId:e,events:s});const I=g=Symbol();Xe().then(()=>{g===I&&(u=!0)}),d=!0,qa(c,E,r.state.value[e])}const y=Gb;function b(){v.stop(),c=[],f=[],r._s.delete(e)}function _(T,E){return function(){Dc(r);const I=Array.from(arguments),D=[],N=[];function L(V){D.push(V)}function F(V){N.push(V)}qa(f,{args:I,name:T,store:S,after:L,onError:F});let O;try{O=E.apply(this&&this.$id===e?this:S,I)}catch(V){throw qa(N,V),V}return O instanceof Promise?O.then(V=>(qa(D,V),V)).catch(V=>(qa(N,V),Promise.reject(V))):(qa(D,O),O)}}const w={_p:r,$id:e,$onAction:fg.bind(null,f),$patch:m,$reset:y,$subscribe(T,E={}){const I=fg(c,T,E.detached,()=>D()),D=v.run(()=>xe(()=>r.state.value[e],N=>{(E.flush==="sync"?d:u)&&T({storeId:e,type:bs.direct,events:s},N)},Vr({},a,E)));return I},$dispose:b},S=vt(Vr({},w));r._s.set(e,S);const x=r._e.run(()=>(v=$h(),v.run(()=>t())));for(const T in x){const E=x[T];if(At(E)&&!rT(E)||Mi(E))l||(h&&nT(E)&&(At(E)?E.value=h[T]:Cd(E,h[T])),r.state.value[e][T]=E);else if(typeof E=="function"){const I=_(T,E);x[T]=I,o.actions[T]=E}}return Vr(S,x),Vr(it(S),x),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:T=>{m(E=>{Vr(E,T)})}}),r._p.forEach(T=>{Vr(S,v.run(()=>T({store:S,app:r._a,pinia:r,options:o})))}),h&&l&&n.hydrate&&n.hydrate(S.$state,h),u=!0,d=!0,S}function Bo(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 v(o,a){const u=St();return o=o||u&&qe(Kb),o&&Dc(o),o=Xb,o._s.has(r)||(l?qb(r,t,i,o):iT(r,i,o)),o._s.get(r)}return v.$id=r,v}/*!
* vue-router v4.1.5
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const oo=typeof window<"u";function aT(e){return e.__esModule||e[Symbol.toStringTag]==="Module"}const xt=Object.assign;function df(e,t){const n={};for(const r in t){const i=t[r];n[r]=ur(i)?i.map(e):e(i)}return n}const _s=()=>{},ur=Array.isArray,oT=/\/$/,sT=e=>e.replace(oT,"");function hf(e,t,n="/"){let r,i={},l="",v="";const o=t.indexOf("#");let a=t.indexOf("?");return o<a&&o>=0&&(a=-1),a>-1&&(r=t.slice(0,a),l=t.slice(a+1,o>-1?o:t.length),i=e(l)),o>-1&&(r=r||t.slice(0,o),v=t.slice(o,t.length)),r=fT(r!=null?r:t,n),{fullPath:r+(l&&"?")+l+v,path:r,query:i,hash:v}}function lT(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function dg(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function uT(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&So(t.matched[r],n.matched[i])&&Zb(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function So(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Zb(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!cT(e[n],t[n]))return!1;return!0}function cT(e,t){return ur(e)?hg(e,t):ur(t)?hg(t,e):e===t}function hg(e,t){return ur(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function fT(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let i=n.length-1,l,v;for(l=0;l<r.length;l++)if(v=r[l],v!==".")if(v==="..")i>1&&i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(l-(l===r.length?1:0)).join("/")}var Ws;(function(e){e.pop="pop",e.push="push"})(Ws||(Ws={}));var ws;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ws||(ws={}));function dT(e){if(!e)if(oo){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),sT(e)}const hT=/^[^#]+#/;function pT(e,t){return e.replace(hT,"#")+t}function mT(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 $c=()=>({left:window.pageXOffset,top:window.pageYOffset});function gT(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=mT(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 pg(e,t){return(history.state?history.state.position-t:-1)+e}const Sd=new Map;function vT(e,t){Sd.set(e,t)}function yT(e){const t=Sd.get(e);return Sd.delete(e),t}let bT=()=>location.protocol+"//"+location.host;function Jb(e,t){const{pathname:n,search:r,hash:i}=t,l=e.indexOf("#");if(l>-1){let o=i.includes(e.slice(l))?e.slice(l).length:1,a=i.slice(o);return a[0]!=="/"&&(a="/"+a),dg(a,"")}return dg(n,e)+r+i}function _T(e,t,n,r){let i=[],l=[],v=null;const o=({state:f})=>{const s=Jb(e,location),h=n.value,g=t.value;let m=0;if(f){if(n.value=s,t.value=f,v&&v===h){v=null;return}m=g?f.position-g.position:0}else r(s);i.forEach(y=>{y(n.value,h,{delta:m,type:Ws.pop,direction:m?m>0?ws.forward:ws.back:ws.unknown})})};function a(){v=n.value}function u(f){i.push(f);const s=()=>{const h=i.indexOf(f);h>-1&&i.splice(h,1)};return l.push(s),s}function d(){const{history:f}=window;!f.state||f.replaceState(xt({},f.state,{scroll:$c()}),"")}function c(){for(const f of l)f();l=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",d),{pauseListeners:a,listen:u,destroy:c}}function mg(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?$c():null}}function wT(e){const{history:t,location:n}=window,r={value:Jb(e,n)},i={value:t.state};i.value||l(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function l(a,u,d){const c=e.indexOf("#"),f=c>-1?(n.host&&document.querySelector("base")?e:e.slice(c))+a:bT()+e+a;try{t[d?"replaceState":"pushState"](u,"",f),i.value=u}catch(s){console.error(s),n[d?"replace":"assign"](f)}}function v(a,u){const d=xt({},t.state,mg(i.value.back,a,i.value.forward,!0),u,{position:i.value.position});l(a,d,!0),r.value=a}function o(a,u){const d=xt({},i.value,t.state,{forward:a,scroll:$c()});l(d.current,d,!0);const c=xt({},mg(r.value,a,null),{position:d.position+1},u);l(a,c,!1),r.value=a}return{location:r,state:i,push:o,replace:v}}function CT(e){e=dT(e);const t=wT(e),n=_T(e,t.state,t.location,t.replace);function r(l,v=!0){v||n.pauseListeners(),history.go(l)}const i=xt({location:"",base:e,go:r,createHref:pT.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 ST(e){return typeof e=="string"||e&&typeof e=="object"}function Qb(e){return typeof e=="string"||typeof e=="symbol"}const vi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},e_=Symbol("");var gg;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(gg||(gg={}));function xo(e,t){return xt(new Error,{type:e,[e_]:!0},t)}function $r(e,t){return e instanceof Error&&e_ in e&&(t==null||!!(e.type&t))}const vg="[^/]+?",xT={sensitive:!1,strict:!1,start:!0,end:!0},TT=/[.+*?^${}()[\]/\\]/g;function kT(e,t){const n=xt({},xT,t),r=[];let i=n.start?"^":"";const l=[];for(const u of e){const d=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(TT,"\\$&"),s+=40;else if(f.type===1){const{value:h,repeatable:g,optional:m,regexp:y}=f;l.push({name:h,repeatable:g,optional:m});const b=y||vg;if(b!==vg){s+=10;try{new RegExp(`(${b})`)}catch(w){throw new Error(`Invalid custom RegExp for param "${h}" (${b}): `+w.message)}}let _=g?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;c||(_=m&&u.length<2?`(?:/${_})`:"/"+_),m&&(_+="?"),i+=_,s+=20,m&&(s+=-8),g&&(s+=-20),b===".*"&&(s+=-50)}d.push(s)}r.push(d)}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 v=new RegExp(i,n.sensitive?"":"i");function o(u){const d=u.match(v),c={};if(!d)return null;for(let f=1;f<d.length;f++){const s=d[f]||"",h=l[f-1];c[h.name]=s&&h.repeatable?s.split("/"):s}return c}function a(u){let d="",c=!1;for(const f of e){(!c||!d.endsWith("/"))&&(d+="/"),c=!1;for(const s of f)if(s.type===0)d+=s.value;else if(s.type===1){const{value:h,repeatable:g,optional:m}=s,y=h in u?u[h]:"";if(ur(y)&&!g)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const b=ur(y)?y.join("/"):y;if(!b)if(m)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):c=!0);else throw new Error(`Missing required param "${h}"`);d+=b}}return d||"/"}return{re:v,score:r,keys:l,parse:o,stringify:a}}function ET(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 OT(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const l=ET(r[n],i[n]);if(l)return l;n++}if(Math.abs(i.length-r.length)===1){if(yg(r))return 1;if(yg(i))return-1}return i.length-r.length}function yg(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const AT={type:0,value:""},PT=/[a-zA-Z0-9_]/;function IT(e){if(!e)return[[]];if(e==="/")return[[AT]];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 v(){l&&i.push(l),l=[]}let o=0,a,u="",d="";function c(){!u||(n===0?l.push({type:0,value:u}):n===1||n===2||n===3?(l.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),l.push({type:1,value:u,regexp:d,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=a}for(;o<e.length;){if(a=e[o++],a==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:a==="/"?(u&&c(),v()):a===":"?(c(),n=1):f();break;case 4:f(),n=r;break;case 1:a==="("?n=2:PT.test(a)?f():(c(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--);break;case 2:a===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+a:n=3:d+=a;break;case 3:c(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),c(),v(),i}function MT(e,t,n){const r=kT(IT(e.path),n),i=xt(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function LT(e,t){const n=[],r=new Map;t=wg({strict:!1,end:!0,sensitive:!1},t);function i(d){return r.get(d)}function l(d,c,f){const s=!f,h=RT(d);h.aliasOf=f&&f.record;const g=wg(t,d),m=[h];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const w of _)m.push(xt({},h,{components:f?f.record.components:h.components,path:w,aliasOf:f?f.record:h}))}let y,b;for(const _ of m){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=MT(_,c,g),f?f.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),s&&d.name&&!_g(y)&&v(d.name)),h.children){const S=h.children;for(let x=0;x<S.length;x++)l(S[x],y,f&&f.children[x])}f=f||y,a(y)}return b?()=>{v(b)}:_s}function v(d){if(Qb(d)){const c=r.get(d);c&&(r.delete(d),n.splice(n.indexOf(c),1),c.children.forEach(v),c.alias.forEach(v))}else{const c=n.indexOf(d);c>-1&&(n.splice(c,1),d.record.name&&r.delete(d.record.name),d.children.forEach(v),d.alias.forEach(v))}}function o(){return n}function a(d){let c=0;for(;c<n.length&&OT(d,n[c])>=0&&(d.record.path!==n[c].record.path||!t_(d,n[c]));)c++;n.splice(c,0,d),d.record.name&&!_g(d)&&r.set(d.record.name,d)}function u(d,c){let f,s={},h,g;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw xo(1,{location:d});g=f.record.name,s=xt(bg(c.params,f.keys.filter(b=>!b.optional).map(b=>b.name)),d.params&&bg(d.params,f.keys.map(b=>b.name))),h=f.stringify(s)}else if("path"in d)h=d.path,f=n.find(b=>b.re.test(h)),f&&(s=f.parse(h),g=f.record.name);else{if(f=c.name?r.get(c.name):n.find(b=>b.re.test(c.path)),!f)throw xo(1,{location:d,currentLocation:c});g=f.record.name,s=xt({},c.params,d.params),h=f.stringify(s)}const m=[];let y=f;for(;y;)m.unshift(y.record),y=y.parent;return{name:g,path:h,params:s,matched:m,meta:$T(m)}}return e.forEach(d=>l(d)),{addRoute:l,resolve:u,removeRoute:v,getRoutes:o,getRecordMatcher:i}}function bg(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function RT(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:DT(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 DT(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 _g(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $T(e){return e.reduce((t,n)=>xt(t,n.meta),{})}function wg(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function t_(e,t){return t.children.some(n=>n===e||t_(e,n))}const n_=/#/g,BT=/&/g,FT=/\//g,zT=/=/g,NT=/\?/g,r_=/\+/g,jT=/%5B/g,VT=/%5D/g,i_=/%5E/g,UT=/%60/g,a_=/%7B/g,HT=/%7C/g,o_=/%7D/g,WT=/%20/g;function np(e){return encodeURI(""+e).replace(HT,"|").replace(jT,"[").replace(VT,"]")}function YT(e){return np(e).replace(a_,"{").replace(o_,"}").replace(i_,"^")}function xd(e){return np(e).replace(r_,"%2B").replace(WT,"+").replace(n_,"%23").replace(BT,"%26").replace(UT,"`").replace(a_,"{").replace(o_,"}").replace(i_,"^")}function XT(e){return xd(e).replace(zT,"%3D")}function KT(e){return np(e).replace(n_,"%23").replace(NT,"%3F")}function GT(e){return e==null?"":KT(e).replace(FT,"%2F")}function tc(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function qT(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(r_," "),v=l.indexOf("="),o=tc(v<0?l:l.slice(0,v)),a=v<0?null:tc(l.slice(v+1));if(o in t){let u=t[o];ur(u)||(u=t[o]=[u]),u.push(a)}else t[o]=a}return t}function Cg(e){let t="";for(let n in e){const r=e[n];if(n=XT(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(ur(r)?r.map(l=>l&&xd(l)):[r&&xd(r)]).forEach(l=>{l!==void 0&&(t+=(t.length?"&":"")+n,l!=null&&(t+="="+l))})}return t}function ZT(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=ur(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}const JT=Symbol(""),Sg=Symbol(""),rp=Symbol(""),ip=Symbol(""),Td=Symbol("");function ns(){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 Ti(e,t,n,r,i){const l=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((v,o)=>{const a=c=>{c===!1?o(xo(4,{from:n,to:t})):c instanceof Error?o(c):ST(c)?o(xo(2,{from:t,to:c})):(l&&r.enterCallbacks[i]===l&&typeof c=="function"&&l.push(c),v())},u=e.call(r&&r.instances[i],t,n,a);let d=Promise.resolve(u);e.length<3&&(d=d.then(a)),d.catch(c=>o(c))})}function pf(e,t,n,r){const i=[];for(const l of e)for(const v in l.components){let o=l.components[v];if(!(t!=="beforeRouteEnter"&&!l.instances[v]))if(QT(o)){const u=(o.__vccOpts||o)[t];u&&i.push(Ti(u,n,r,l,v))}else{let a=o();i.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${v}" at "${l.path}"`));const d=aT(u)?u.default:u;l.components[v]=d;const f=(d.__vccOpts||d)[t];return f&&Ti(f,n,r,l,v)()}))}}return i}function QT(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function xg(e){const t=qe(rp),n=qe(ip),r=ee(()=>t.resolve(C(e.to))),i=ee(()=>{const{matched:a}=r.value,{length:u}=a,d=a[u-1],c=n.matched;if(!d||!c.length)return-1;const f=c.findIndex(So.bind(null,d));if(f>-1)return f;const s=Tg(a[u-2]);return u>1&&Tg(d)===s&&c[c.length-1].path!==s?c.findIndex(So.bind(null,a[u-2])):f}),l=ee(()=>i.value>-1&&rk(n.params,r.value.params)),v=ee(()=>i.value>-1&&i.value===n.matched.length-1&&Zb(n.params,r.value.params));function o(a={}){return nk(a)?t[C(e.replace)?"replace":"push"](C(e.to)).catch(_s):Promise.resolve()}return{route:r,href:ee(()=>r.value.href),isActive:l,isExactActive:v,navigate:o}}const ek=Ee({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:xg,setup(e,{slots:t}){const n=vt(xg(e)),{options:r}=qe(rp),i=ee(()=>({[kg(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[kg(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const l=t.default&&t.default(n);return e.custom?l:_t("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},l)}}}),tk=ek;function nk(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 rk(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(!ur(i)||i.length!==r.length||r.some((l,v)=>l!==i[v]))return!1}return!0}function Tg(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const kg=(e,t,n)=>e!=null?e:t!=null?t:n,ik=Ee({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=qe(Td),i=ee(()=>e.route||r.value),l=qe(Sg,0),v=ee(()=>{let u=C(l);const{matched:d}=i.value;let c;for(;(c=d[u])&&!c.components;)u++;return u}),o=ee(()=>i.value.matched[v.value]);gt(Sg,ee(()=>v.value+1)),gt(JT,o),gt(Td,i);const a=oe();return xe(()=>[a.value,o.value,e.name],([u,d,c],[f,s,h])=>{d&&(d.instances[c]=u,s&&s!==d&&u&&u===f&&(d.leaveGuards.size||(d.leaveGuards=s.leaveGuards),d.updateGuards.size||(d.updateGuards=s.updateGuards))),u&&d&&(!s||!So(d,s)||!f)&&(d.enterCallbacks[c]||[]).forEach(g=>g(u))},{flush:"post"}),()=>{const u=i.value,d=e.name,c=o.value,f=c&&c.components[d];if(!f)return Eg(n.default,{Component:f,route:u});const s=c.props[d],h=s?s===!0?u.params:typeof s=="function"?s(u):s:null,m=_t(f,xt({},h,t,{onVnodeUnmounted:y=>{y.component.isUnmounted&&(c.instances[d]=null)},ref:a}));return Eg(n.default,{Component:m,route:u})||m}}});function Eg(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const s_=ik;function ak(e){const t=LT(e.routes,e),n=e.parseQuery||qT,r=e.stringifyQuery||Cg,i=e.history,l=ns(),v=ns(),o=ns(),a=fn(vi);let u=vi;oo&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=df.bind(null,A=>""+A),c=df.bind(null,GT),f=df.bind(null,tc);function s(A,q){let G,te;return Qb(A)?(G=t.getRecordMatcher(A),te=q):te=A,t.addRoute(te,G)}function h(A){const q=t.getRecordMatcher(A);q&&t.removeRoute(q)}function g(){return t.getRoutes().map(A=>A.record)}function m(A){return!!t.getRecordMatcher(A)}function y(A,q){if(q=xt({},q||a.value),typeof A=="string"){const H=hf(n,A,q.path),W=t.resolve({path:H.path},q),k=i.createHref(H.fullPath);return xt(H,W,{params:f(W.params),hash:tc(H.hash),redirectedFrom:void 0,href:k})}let G;if("path"in A)G=xt({},A,{path:hf(n,A.path,q.path).path});else{const H=xt({},A.params);for(const W in H)H[W]==null&&delete H[W];G=xt({},A,{params:c(A.params)}),q.params=c(q.params)}const te=t.resolve(G,q),fe=A.hash||"";te.params=d(f(te.params));const pe=lT(r,xt({},A,{hash:YT(fe),path:te.path})),ve=i.createHref(pe);return xt({fullPath:pe,hash:fe,query:r===Cg?ZT(A.query):A.query||{}},te,{redirectedFrom:void 0,href:ve})}function b(A){return typeof A=="string"?hf(n,A,a.value.path):xt({},A)}function _(A,q){if(u!==A)return xo(8,{from:q,to:A})}function w(A){return T(A)}function S(A){return w(xt(b(A),{replace:!0}))}function x(A){const q=A.matched[A.matched.length-1];if(q&&q.redirect){const{redirect:G}=q;let te=typeof G=="function"?G(A):G;return typeof te=="string"&&(te=te.includes("?")||te.includes("#")?te=b(te):{path:te},te.params={}),xt({query:A.query,hash:A.hash,params:"path"in te?{}:A.params},te)}}function T(A,q){const G=u=y(A),te=a.value,fe=A.state,pe=A.force,ve=A.replace===!0,H=x(G);if(H)return T(xt(b(H),{state:typeof H=="object"?xt({},fe,H.state):fe,force:pe,replace:ve}),q||G);const W=G;W.redirectedFrom=q;let k;return!pe&&uT(r,te,G)&&(k=xo(16,{to:W,from:te}),U(te,te,!0,!1)),(k?Promise.resolve(k):I(W,te)).catch(X=>$r(X)?$r(X,2)?X:M(X):J(X,W,te)).then(X=>{if(X){if($r(X,2))return T(xt({replace:ve},b(X.to),{state:typeof X.to=="object"?xt({},fe,X.to.state):fe,force:pe}),q||W)}else X=N(W,te,!0,ve,fe);return D(W,te,X),X})}function E(A,q){const G=_(A,q);return G?Promise.reject(G):Promise.resolve()}function I(A,q){let G;const[te,fe,pe]=ok(A,q);G=pf(te.reverse(),"beforeRouteLeave",A,q);for(const H of te)H.leaveGuards.forEach(W=>{G.push(Ti(W,A,q))});const ve=E.bind(null,A,q);return G.push(ve),Za(G).then(()=>{G=[];for(const H of l.list())G.push(Ti(H,A,q));return G.push(ve),Za(G)}).then(()=>{G=pf(fe,"beforeRouteUpdate",A,q);for(const H of fe)H.updateGuards.forEach(W=>{G.push(Ti(W,A,q))});return G.push(ve),Za(G)}).then(()=>{G=[];for(const H of A.matched)if(H.beforeEnter&&!q.matched.includes(H))if(ur(H.beforeEnter))for(const W of H.beforeEnter)G.push(Ti(W,A,q));else G.push(Ti(H.beforeEnter,A,q));return G.push(ve),Za(G)}).then(()=>(A.matched.forEach(H=>H.enterCallbacks={}),G=pf(pe,"beforeRouteEnter",A,q),G.push(ve),Za(G))).then(()=>{G=[];for(const H of v.list())G.push(Ti(H,A,q));return G.push(ve),Za(G)}).catch(H=>$r(H,8)?H:Promise.reject(H))}function D(A,q,G){for(const te of o.list())te(A,q,G)}function N(A,q,G,te,fe){const pe=_(A,q);if(pe)return pe;const ve=q===vi,H=oo?history.state:{};G&&(te||ve?i.replace(A.fullPath,xt({scroll:ve&&H&&H.scroll},fe)):i.push(A.fullPath,fe)),a.value=A,U(A,q,G,ve),M()}let L;function F(){L||(L=i.listen((A,q,G)=>{if(!j.listening)return;const te=y(A),fe=x(te);if(fe){T(xt(fe,{replace:!0}),te).catch(_s);return}u=te;const pe=a.value;oo&&vT(pg(pe.fullPath,G.delta),$c()),I(te,pe).catch(ve=>$r(ve,12)?ve:$r(ve,2)?(T(ve.to,te).then(H=>{$r(H,20)&&!G.delta&&G.type===Ws.pop&&i.go(-1,!1)}).catch(_s),Promise.reject()):(G.delta&&i.go(-G.delta,!1),J(ve,te,pe))).then(ve=>{ve=ve||N(te,pe,!1),ve&&(G.delta&&!$r(ve,8)?i.go(-G.delta,!1):G.type===Ws.pop&&$r(ve,20)&&i.go(-1,!1)),D(te,pe,ve)}).catch(_s)}))}let O=ns(),V=ns(),ne;function J(A,q,G){M(A);const te=V.list();return te.length?te.forEach(fe=>fe(A,q,G)):console.error(A),Promise.reject(A)}function le(){return ne&&a.value!==vi?Promise.resolve():new Promise((A,q)=>{O.add([A,q])})}function M(A){return ne||(ne=!A,F(),O.list().forEach(([q,G])=>A?G(A):q()),O.reset()),A}function U(A,q,G,te){const{scrollBehavior:fe}=e;if(!oo||!fe)return Promise.resolve();const pe=!G&&yT(pg(A.fullPath,0))||(te||!G)&&history.state&&history.state.scroll||null;return Xe().then(()=>fe(A,q,pe)).then(ve=>ve&&gT(ve)).catch(ve=>J(ve,A,q))}const R=A=>i.go(A);let P;const Q=new Set,j={currentRoute:a,listening:!0,addRoute:s,removeRoute:h,hasRoute:m,getRoutes:g,resolve:y,options:e,push:w,replace:S,go:R,back:()=>R(-1),forward:()=>R(1),beforeEach:l.add,beforeResolve:v.add,afterEach:o.add,onError:V.add,isReady:le,install(A){const q=this;A.component("RouterLink",tk),A.component("RouterView",s_),A.config.globalProperties.$router=q,Object.defineProperty(A.config.globalProperties,"$route",{enumerable:!0,get:()=>C(a)}),oo&&!P&&a.value===vi&&(P=!0,w(i.location).catch(fe=>{}));const G={};for(const fe in vi)G[fe]=ee(()=>a.value[fe]);A.provide(rp,q),A.provide(ip,vt(G)),A.provide(Td,a);const te=A.unmount;Q.add(A),A.unmount=function(){Q.delete(A),Q.size<1&&(u=vi,L&&L(),L=null,a.value=vi,P=!1,ne=!1),te()}}};return j}function Za(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function ok(e,t){const n=[],r=[],i=[],l=Math.max(t.matched.length,e.matched.length);for(let v=0;v<l;v++){const o=t.matched[v];o&&(e.matched.find(u=>So(u,o))?r.push(o):n.push(o));const a=e.matched[v];a&&(t.matched.find(u=>So(u,a))||i.push(a))}return[n,r,i]}function sk(){return qe(ip)}/*! Element Plus Icons Vue v2.0.9 */var Je=(e,t)=>{let n=e.__vccOpts||e;for(let[r,i]of t)n[r]=i;return n},lk={name:"ArrowDown"},uk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ck=re("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),fk=[ck];function dk(e,t,n,r,i,l){return z(),se("svg",uk,fk)}var Bc=Je(lk,[["render",dk],["__file","arrow-down.vue"]]),hk={name:"ArrowLeft"},pk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mk=re("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),gk=[mk];function vk(e,t,n,r,i,l){return z(),se("svg",pk,gk)}var Fc=Je(hk,[["render",vk],["__file","arrow-left.vue"]]),yk={name:"ArrowRight"},bk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},_k=re("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),wk=[_k];function Ck(e,t,n,r,i,l){return z(),se("svg",bk,wk)}var Sl=Je(yk,[["render",Ck],["__file","arrow-right.vue"]]),Sk={name:"ArrowUp"},xk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Tk=re("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),kk=[Tk];function Ek(e,t,n,r,i,l){return z(),se("svg",xk,kk)}var Ok=Je(Sk,[["render",Ek],["__file","arrow-up.vue"]]),Ak={name:"Back"},Pk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Ik=re("path",{fill:"currentColor",d:"M224 480h640a32 32 0 1 1 0 64H224a32 32 0 0 1 0-64z"},null,-1),Mk=re("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),Lk=[Ik,Mk];function Rk(e,t,n,r,i,l){return z(),se("svg",Pk,Lk)}var l_=Je(Ak,[["render",Rk],["__file","back.vue"]]),Dk={name:"Check"},$k={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Bk=re("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),Fk=[Bk];function zk(e,t,n,r,i,l){return z(),se("svg",$k,Fk)}var u_=Je(Dk,[["render",zk],["__file","check.vue"]]),Nk={name:"CircleCheckFilled"},jk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Vk=re("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),Uk=[Vk];function Hk(e,t,n,r,i,l){return z(),se("svg",jk,Uk)}var c_=Je(Nk,[["render",Hk],["__file","circle-check-filled.vue"]]),Wk={name:"CircleCheck"},Yk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Xk=re("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),Kk=re("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),Gk=[Xk,Kk];function qk(e,t,n,r,i,l){return z(),se("svg",Yk,Gk)}var xl=Je(Wk,[["render",qk],["__file","circle-check.vue"]]),Zk={name:"CircleCloseFilled"},Jk={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Qk=re("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),eE=[Qk];function tE(e,t,n,r,i,l){return z(),se("svg",Jk,eE)}var f_=Je(Zk,[["render",tE],["__file","circle-close-filled.vue"]]),nE={name:"CircleClose"},rE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},iE=re("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),aE=re("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),oE=[iE,aE];function sE(e,t,n,r,i,l){return z(),se("svg",rE,oE)}var zc=Je(nE,[["render",sE],["__file","circle-close.vue"]]),lE={name:"CloseBold"},uE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},cE=re("path",{fill:"currentColor",d:"M195.2 195.2a64 64 0 0 1 90.496 0L512 421.504 738.304 195.2a64 64 0 0 1 90.496 90.496L602.496 512 828.8 738.304a64 64 0 0 1-90.496 90.496L512 602.496 285.696 828.8a64 64 0 0 1-90.496-90.496L421.504 512 195.2 285.696a64 64 0 0 1 0-90.496z"},null,-1),fE=[cE];function dE(e,t,n,r,i,l){return z(),se("svg",uE,fE)}var hE=Je(lE,[["render",dE],["__file","close-bold.vue"]]),pE={name:"Close"},mE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},gE=re("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),vE=[gE];function yE(e,t,n,r,i,l){return z(),se("svg",mE,vE)}var Er=Je(pE,[["render",yE],["__file","close.vue"]]),bE={name:"Comment"},_E={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wE=re("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),CE=[wE];function SE(e,t,n,r,i,l){return z(),se("svg",_E,CE)}var xE=Je(bE,[["render",SE],["__file","comment.vue"]]),TE={name:"DArrowLeft"},kE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},EE=re("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),OE=[EE];function AE(e,t,n,r,i,l){return z(),se("svg",kE,OE)}var PE=Je(TE,[["render",AE],["__file","d-arrow-left.vue"]]),IE={name:"DArrowRight"},ME={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},LE=re("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),RE=[LE];function DE(e,t,n,r,i,l){return z(),se("svg",ME,RE)}var $E=Je(IE,[["render",DE],["__file","d-arrow-right.vue"]]),BE={name:"Delete"},FE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},zE=re("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),NE=[zE];function jE(e,t,n,r,i,l){return z(),se("svg",FE,NE)}var Nc=Je(BE,[["render",jE],["__file","delete.vue"]]),VE={name:"Document"},UE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},HE=re("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),WE=[HE];function YE(e,t,n,r,i,l){return z(),se("svg",UE,WE)}var d_=Je(VE,[["render",YE],["__file","document.vue"]]),XE={name:"Download"},KE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},GE=re("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),qE=[GE];function ZE(e,t,n,r,i,l){return z(),se("svg",KE,qE)}var Ys=Je(XE,[["render",ZE],["__file","download.vue"]]),JE={name:"EditPen"},QE={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},e3=re("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),t3=[e3];function n3(e,t,n,r,i,l){return z(),se("svg",QE,t3)}var r3=Je(JE,[["render",n3],["__file","edit-pen.vue"]]),i3={name:"Filter"},a3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},o3=re("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),s3=[o3];function l3(e,t,n,r,i,l){return z(),se("svg",a3,s3)}var u3=Je(i3,[["render",l3],["__file","filter.vue"]]),c3={name:"FullScreen"},f3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},d3=re("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),h3=[d3];function p3(e,t,n,r,i,l){return z(),se("svg",f3,h3)}var m3=Je(c3,[["render",p3],["__file","full-screen.vue"]]),g3={name:"Hide"},v3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},y3=re("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),b3=re("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),_3=[y3,b3];function w3(e,t,n,r,i,l){return z(),se("svg",v3,_3)}var C3=Je(g3,[["render",w3],["__file","hide.vue"]]),S3={name:"InfoFilled"},x3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},T3=re("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),k3=[T3];function E3(e,t,n,r,i,l){return z(),se("svg",x3,k3)}var ap=Je(S3,[["render",E3],["__file","info-filled.vue"]]),O3={name:"Link"},A3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},P3=re("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),I3=[P3];function M3(e,t,n,r,i,l){return z(),se("svg",A3,I3)}var L3=Je(O3,[["render",M3],["__file","link.vue"]]),R3={name:"Loading"},D3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$3=re("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),B3=[$3];function F3(e,t,n,r,i,l){return z(),se("svg",D3,B3)}var op=Je(R3,[["render",F3],["__file","loading.vue"]]),z3={name:"MagicStick"},N3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},j3=re("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),V3=[j3];function U3(e,t,n,r,i,l){return z(),se("svg",N3,V3)}var H3=Je(z3,[["render",U3],["__file","magic-stick.vue"]]),W3={name:"Menu"},Y3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},X3=re("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),K3=[X3];function G3(e,t,n,r,i,l){return z(),se("svg",Y3,K3)}var q3=Je(W3,[["render",G3],["__file","menu.vue"]]),Z3={name:"Minus"},J3={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q3=re("path",{fill:"currentColor",d:"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"},null,-1),eO=[Q3];function tO(e,t,n,r,i,l){return z(),se("svg",J3,eO)}var h_=Je(Z3,[["render",tO],["__file","minus.vue"]]),nO={name:"MoreFilled"},rO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},iO=re("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),aO=[iO];function oO(e,t,n,r,i,l){return z(),se("svg",rO,aO)}var Og=Je(nO,[["render",oO],["__file","more-filled.vue"]]),sO={name:"More"},lO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},uO=re("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),cO=[uO];function fO(e,t,n,r,i,l){return z(),se("svg",lO,cO)}var dO=Je(sO,[["render",fO],["__file","more.vue"]]),hO={name:"Operation"},pO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},mO=re("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),gO=[mO];function vO(e,t,n,r,i,l){return z(),se("svg",pO,gO)}var yO=Je(hO,[["render",vO],["__file","operation.vue"]]),bO={name:"PictureFilled"},_O={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},wO=re("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),CO=[wO];function SO(e,t,n,r,i,l){return z(),se("svg",_O,CO)}var ql=Je(bO,[["render",SO],["__file","picture-filled.vue"]]),xO={name:"Plus"},TO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},kO=re("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),EO=[kO];function OO(e,t,n,r,i,l){return z(),se("svg",TO,EO)}var sp=Je(xO,[["render",OO],["__file","plus.vue"]]),AO={name:"RefreshLeft"},PO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},IO=re("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),MO=[IO];function LO(e,t,n,r,i,l){return z(),se("svg",PO,MO)}var p_=Je(AO,[["render",LO],["__file","refresh-left.vue"]]),RO={name:"RefreshRight"},DO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},$O=re("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),BO=[$O];function FO(e,t,n,r,i,l){return z(),se("svg",DO,BO)}var m_=Je(RO,[["render",FO],["__file","refresh-right.vue"]]),zO={name:"Refresh"},NO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},jO=re("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),VO=[jO];function UO(e,t,n,r,i,l){return z(),se("svg",NO,VO)}var Ag=Je(zO,[["render",UO],["__file","refresh.vue"]]),HO={name:"Right"},WO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},YO=re("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),XO=[YO];function KO(e,t,n,r,i,l){return z(),se("svg",WO,XO)}var GO=Je(HO,[["render",KO],["__file","right.vue"]]),qO={name:"ScaleToOriginal"},ZO={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},JO=re("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),QO=[JO];function e4(e,t,n,r,i,l){return z(),se("svg",ZO,QO)}var t4=Je(qO,[["render",e4],["__file","scale-to-original.vue"]]),n4={name:"Sort"},r4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},i4=re("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),a4=[i4];function o4(e,t,n,r,i,l){return z(),se("svg",r4,a4)}var s4=Je(n4,[["render",o4],["__file","sort.vue"]]),l4={name:"StarFilled"},u4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},c4=re("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),f4=[c4];function d4(e,t,n,r,i,l){return z(),se("svg",u4,f4)}var g_=Je(l4,[["render",d4],["__file","star-filled.vue"]]),h4={name:"Star"},p4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},m4=re("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),g4=[m4];function v4(e,t,n,r,i,l){return z(),se("svg",p4,g4)}var y4=Je(h4,[["render",v4],["__file","star.vue"]]),b4={name:"SuccessFilled"},_4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},w4=re("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),C4=[w4];function S4(e,t,n,r,i,l){return z(),se("svg",_4,C4)}var v_=Je(b4,[["render",S4],["__file","success-filled.vue"]]),x4={name:"Tools"},T4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},k4=re("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),E4=[k4];function O4(e,t,n,r,i,l){return z(),se("svg",T4,E4)}var A4=Je(x4,[["render",O4],["__file","tools.vue"]]),P4={name:"UploadFilled"},I4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},M4=re("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),L4=[M4];function R4(e,t,n,r,i,l){return z(),se("svg",I4,L4)}var lp=Je(P4,[["render",R4],["__file","upload-filled.vue"]]),D4={name:"View"},$4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},B4=re("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),F4=[B4];function z4(e,t,n,r,i,l){return z(),se("svg",$4,F4)}var N4=Je(D4,[["render",z4],["__file","view.vue"]]),j4={name:"WarningFilled"},V4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},U4=re("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),H4=[U4];function W4(e,t,n,r,i,l){return z(),se("svg",V4,H4)}var up=Je(j4,[["render",W4],["__file","warning-filled.vue"]]),Y4={name:"ZoomIn"},X4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},K4=re("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),G4=[K4];function q4(e,t,n,r,i,l){return z(),se("svg",X4,G4)}var y_=Je(Y4,[["render",q4],["__file","zoom-in.vue"]]),Z4={name:"ZoomOut"},J4={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},Q4=re("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),eA=[Q4];function tA(e,t,n,r,i,l){return z(),se("svg",J4,eA)}var nA=Je(Z4,[["render",tA],["__file","zoom-out.vue"]]),rA=typeof global=="object"&&global&&global.Object===Object&&global;const b_=rA;var iA=typeof self=="object"&&self&&self.Object===Object&&self,aA=b_||iA||Function("return this")();const fr=aA;var oA=fr.Symbol;const Or=oA;var __=Object.prototype,sA=__.hasOwnProperty,lA=__.toString,rs=Or?Or.toStringTag:void 0;function uA(e){var t=sA.call(e,rs),n=e[rs];try{e[rs]=void 0;var r=!0}catch{}var i=lA.call(e);return r&&(t?e[rs]=n:delete e[rs]),i}var cA=Object.prototype,fA=cA.toString;function dA(e){return fA.call(e)}var hA="[object Null]",pA="[object Undefined]",Pg=Or?Or.toStringTag:void 0;function Fo(e){return e==null?e===void 0?pA:hA:Pg&&Pg in Object(e)?uA(e):dA(e)}function Ni(e){return e!=null&&typeof e=="object"}var mA="[object Symbol]";function jc(e){return typeof e=="symbol"||Ni(e)&&Fo(e)==mA}function gA(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 vA=Array.isArray;const ei=vA;var yA=1/0,Ig=Or?Or.prototype:void 0,Mg=Ig?Ig.toString:void 0;function w_(e){if(typeof e=="string")return e;if(ei(e))return gA(e,w_)+"";if(jc(e))return Mg?Mg.call(e):"";var t=e+"";return t=="0"&&1/e==-yA?"-0":t}var bA=/\s/;function _A(e){for(var t=e.length;t--&&bA.test(e.charAt(t)););return t}var wA=/^\s+/;function CA(e){return e&&e.slice(0,_A(e)+1).replace(wA,"")}function cr(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lg=0/0,SA=/^[-+]0x[0-9a-f]+$/i,xA=/^0b[01]+$/i,TA=/^0o[0-7]+$/i,kA=parseInt;function Rg(e){if(typeof e=="number")return e;if(jc(e))return Lg;if(cr(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cr(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=CA(e);var n=xA.test(e);return n||TA.test(e)?kA(e.slice(2),n?2:8):SA.test(e)?Lg:+e}var EA="[object AsyncFunction]",OA="[object Function]",AA="[object GeneratorFunction]",PA="[object Proxy]";function C_(e){if(!cr(e))return!1;var t=Fo(e);return t==OA||t==AA||t==EA||t==PA}var IA=fr["__core-js_shared__"];const mf=IA;var Dg=function(){var e=/[^.]+$/.exec(mf&&mf.keys&&mf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function MA(e){return!!Dg&&Dg in e}var LA=Function.prototype,RA=LA.toString;function Va(e){if(e!=null){try{return RA.call(e)}catch{}try{return e+""}catch{}}return""}var DA=/[\\^$.*+?()[\]{}|]/g,$A=/^\[object .+?Constructor\]$/,BA=Function.prototype,FA=Object.prototype,zA=BA.toString,NA=FA.hasOwnProperty,jA=RegExp("^"+zA.call(NA).replace(DA,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function VA(e){if(!cr(e)||MA(e))return!1;var t=C_(e)?jA:$A;return t.test(Va(e))}function UA(e,t){return e==null?void 0:e[t]}function Ua(e,t){var n=UA(e,t);return VA(n)?n:void 0}var HA=Ua(fr,"WeakMap");const kd=HA;var $g=Object.create,WA=function(){function e(){}return function(t){if(!cr(t))return{};if($g)return $g(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const YA=WA;function XA(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var KA=function(){try{var e=Ua(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Bg=KA;function GA(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var qA=9007199254740991,ZA=/^(?:0|[1-9]\d*)$/;function S_(e,t){var n=typeof e;return t=t==null?qA:t,!!t&&(n=="number"||n!="symbol"&&ZA.test(e))&&e>-1&&e%1==0&&e<t}function x_(e,t,n){t=="__proto__"&&Bg?Bg(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function cp(e,t){return e===t||e!==e&&t!==t}var JA=Object.prototype,QA=JA.hasOwnProperty;function fp(e,t,n){var r=e[t];(!(QA.call(e,t)&&cp(r,n))||n===void 0&&!(t in e))&&x_(e,t,n)}function Vc(e,t,n,r){var i=!n;n||(n={});for(var l=-1,v=t.length;++l<v;){var o=t[l],a=r?r(n[o],e[o],o,n,e):void 0;a===void 0&&(a=e[o]),i?x_(n,o,a):fp(n,o,a)}return n}var eP=9007199254740991;function T_(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=eP}function k_(e){return e!=null&&T_(e.length)&&!C_(e)}var tP=Object.prototype;function dp(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||tP;return e===n}function nP(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var rP="[object Arguments]";function Fg(e){return Ni(e)&&Fo(e)==rP}var E_=Object.prototype,iP=E_.hasOwnProperty,aP=E_.propertyIsEnumerable,oP=Fg(function(){return arguments}())?Fg:function(e){return Ni(e)&&iP.call(e,"callee")&&!aP.call(e,"callee")};const sP=oP;function lP(){return!1}var O_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zg=O_&&typeof module=="object"&&module&&!module.nodeType&&module,uP=zg&&zg.exports===O_,Ng=uP?fr.Buffer:void 0,cP=Ng?Ng.isBuffer:void 0,fP=cP||lP;const nc=fP;var dP="[object Arguments]",hP="[object Array]",pP="[object Boolean]",mP="[object Date]",gP="[object Error]",vP="[object Function]",yP="[object Map]",bP="[object Number]",_P="[object Object]",wP="[object RegExp]",CP="[object Set]",SP="[object String]",xP="[object WeakMap]",TP="[object ArrayBuffer]",kP="[object DataView]",EP="[object Float32Array]",OP="[object Float64Array]",AP="[object Int8Array]",PP="[object Int16Array]",IP="[object Int32Array]",MP="[object Uint8Array]",LP="[object Uint8ClampedArray]",RP="[object Uint16Array]",DP="[object Uint32Array]",Rt={};Rt[EP]=Rt[OP]=Rt[AP]=Rt[PP]=Rt[IP]=Rt[MP]=Rt[LP]=Rt[RP]=Rt[DP]=!0;Rt[dP]=Rt[hP]=Rt[TP]=Rt[pP]=Rt[kP]=Rt[mP]=Rt[gP]=Rt[vP]=Rt[yP]=Rt[bP]=Rt[_P]=Rt[wP]=Rt[CP]=Rt[SP]=Rt[xP]=!1;function $P(e){return Ni(e)&&T_(e.length)&&!!Rt[Fo(e)]}function hp(e){return function(t){return e(t)}}var A_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Cs=A_&&typeof module=="object"&&module&&!module.nodeType&&module,BP=Cs&&Cs.exports===A_,gf=BP&&b_.process,FP=function(){try{var e=Cs&&Cs.require&&Cs.require("util").types;return e||gf&&gf.binding&&gf.binding("util")}catch{}}();const To=FP;var jg=To&&To.isTypedArray,zP=jg?hp(jg):$P;const P_=zP;var NP=Object.prototype,jP=NP.hasOwnProperty;function I_(e,t){var n=ei(e),r=!n&&sP(e),i=!n&&!r&&nc(e),l=!n&&!r&&!i&&P_(e),v=n||r||i||l,o=v?nP(e.length,String):[],a=o.length;for(var u in e)(t||jP.call(e,u))&&!(v&&(u=="length"||i&&(u=="offset"||u=="parent")||l&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||S_(u,a)))&&o.push(u);return o}function M_(e,t){return function(n){return e(t(n))}}var VP=M_(Object.keys,Object);const UP=VP;var HP=Object.prototype,WP=HP.hasOwnProperty;function YP(e){if(!dp(e))return UP(e);var t=[];for(var n in Object(e))WP.call(e,n)&&n!="constructor"&&t.push(n);return t}function pp(e){return k_(e)?I_(e):YP(e)}function XP(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var KP=Object.prototype,GP=KP.hasOwnProperty;function qP(e){if(!cr(e))return XP(e);var t=dp(e),n=[];for(var r in e)r=="constructor"&&(t||!GP.call(e,r))||n.push(r);return n}function mp(e){return k_(e)?I_(e,!0):qP(e)}var ZP=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,JP=/^\w*$/;function QP(e,t){if(ei(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||jc(e)?!0:JP.test(e)||!ZP.test(e)||t!=null&&e in Object(t)}var e5=Ua(Object,"create");const Xs=e5;function t5(){this.__data__=Xs?Xs(null):{},this.size=0}function n5(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var r5="__lodash_hash_undefined__",i5=Object.prototype,a5=i5.hasOwnProperty;function o5(e){var t=this.__data__;if(Xs){var n=t[e];return n===r5?void 0:n}return a5.call(t,e)?t[e]:void 0}var s5=Object.prototype,l5=s5.hasOwnProperty;function u5(e){var t=this.__data__;return Xs?t[e]!==void 0:l5.call(t,e)}var c5="__lodash_hash_undefined__";function f5(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Xs&&t===void 0?c5:t,this}function Ea(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])}}Ea.prototype.clear=t5;Ea.prototype.delete=n5;Ea.prototype.get=o5;Ea.prototype.has=u5;Ea.prototype.set=f5;function d5(){this.__data__=[],this.size=0}function Uc(e,t){for(var n=e.length;n--;)if(cp(e[n][0],t))return n;return-1}var h5=Array.prototype,p5=h5.splice;function m5(e){var t=this.__data__,n=Uc(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():p5.call(t,n,1),--this.size,!0}function g5(e){var t=this.__data__,n=Uc(t,e);return n<0?void 0:t[n][1]}function v5(e){return Uc(this.__data__,e)>-1}function y5(e,t){var n=this.__data__,r=Uc(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function ui(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])}}ui.prototype.clear=d5;ui.prototype.delete=m5;ui.prototype.get=g5;ui.prototype.has=v5;ui.prototype.set=y5;var b5=Ua(fr,"Map");const Ks=b5;function _5(){this.size=0,this.__data__={hash:new Ea,map:new(Ks||ui),string:new Ea}}function w5(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Hc(e,t){var n=e.__data__;return w5(t)?n[typeof t=="string"?"string":"hash"]:n.map}function C5(e){var t=Hc(this,e).delete(e);return this.size-=t?1:0,t}function S5(e){return Hc(this,e).get(e)}function x5(e){return Hc(this,e).has(e)}function T5(e,t){var n=Hc(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function ci(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])}}ci.prototype.clear=_5;ci.prototype.delete=C5;ci.prototype.get=S5;ci.prototype.has=x5;ci.prototype.set=T5;var k5="Expected a function";function gp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(k5);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 v=e.apply(this,r);return n.cache=l.set(i,v)||l,v};return n.cache=new(gp.Cache||ci),n}gp.Cache=ci;var E5=500;function O5(e){var t=gp(e,function(r){return n.size===E5&&n.clear(),r}),n=t.cache;return t}var A5=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,P5=/\\(\\)?/g,I5=O5(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(A5,function(n,r,i,l){t.push(i?l.replace(P5,"$1"):r||n)}),t});const M5=I5;function L5(e){return e==null?"":w_(e)}function L_(e,t){return ei(e)?e:QP(e,t)?[e]:M5(L5(e))}var R5=1/0;function R_(e){if(typeof e=="string"||jc(e))return e;var t=e+"";return t=="0"&&1/e==-R5?"-0":t}function D5(e,t){t=L_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[R_(t[n++])];return n&&n==r?e:void 0}function Rn(e,t,n){var r=e==null?void 0:D5(e,t);return r===void 0?n:r}function D_(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var $5=M_(Object.getPrototypeOf,Object);const $_=$5;function Ed(){if(!arguments.length)return[];var e=arguments[0];return ei(e)?e:[e]}function B5(){this.__data__=new ui,this.size=0}function F5(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function z5(e){return this.__data__.get(e)}function N5(e){return this.__data__.has(e)}var j5=200;function V5(e,t){var n=this.__data__;if(n instanceof ui){var r=n.__data__;if(!Ks||r.length<j5-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ci(r)}return n.set(e,t),this.size=n.size,this}function qr(e){var t=this.__data__=new ui(e);this.size=t.size}qr.prototype.clear=B5;qr.prototype.delete=F5;qr.prototype.get=z5;qr.prototype.has=N5;qr.prototype.set=V5;function U5(e,t){return e&&Vc(t,pp(t),e)}function H5(e,t){return e&&Vc(t,mp(t),e)}var B_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Vg=B_&&typeof module=="object"&&module&&!module.nodeType&&module,W5=Vg&&Vg.exports===B_,Ug=W5?fr.Buffer:void 0,Hg=Ug?Ug.allocUnsafe:void 0;function Y5(e,t){if(t)return e.slice();var n=e.length,r=Hg?Hg(n):new e.constructor(n);return e.copy(r),r}function X5(e,t){for(var n=-1,r=e==null?0:e.length,i=0,l=[];++n<r;){var v=e[n];t(v,n,e)&&(l[i++]=v)}return l}function F_(){return[]}var K5=Object.prototype,G5=K5.propertyIsEnumerable,Wg=Object.getOwnPropertySymbols,q5=Wg?function(e){return e==null?[]:(e=Object(e),X5(Wg(e),function(t){return G5.call(e,t)}))}:F_;const vp=q5;function Z5(e,t){return Vc(e,vp(e),t)}var J5=Object.getOwnPropertySymbols,Q5=J5?function(e){for(var t=[];e;)D_(t,vp(e)),e=$_(e);return t}:F_;const z_=Q5;function e6(e,t){return Vc(e,z_(e),t)}function N_(e,t,n){var r=t(e);return ei(e)?r:D_(r,n(e))}function Od(e){return N_(e,pp,vp)}function t6(e){return N_(e,mp,z_)}var n6=Ua(fr,"DataView");const Ad=n6;var r6=Ua(fr,"Promise");const Pd=r6;var i6=Ua(fr,"Set");const Id=i6;var Yg="[object Map]",a6="[object Object]",Xg="[object Promise]",Kg="[object Set]",Gg="[object WeakMap]",qg="[object DataView]",o6=Va(Ad),s6=Va(Ks),l6=Va(Pd),u6=Va(Id),c6=Va(kd),ia=Fo;(Ad&&ia(new Ad(new ArrayBuffer(1)))!=qg||Ks&&ia(new Ks)!=Yg||Pd&&ia(Pd.resolve())!=Xg||Id&&ia(new Id)!=Kg||kd&&ia(new kd)!=Gg)&&(ia=function(e){var t=Fo(e),n=t==a6?e.constructor:void 0,r=n?Va(n):"";if(r)switch(r){case o6:return qg;case s6:return Yg;case l6:return Xg;case u6:return Kg;case c6:return Gg}return t});const Gs=ia;var f6=Object.prototype,d6=f6.hasOwnProperty;function h6(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&d6.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var p6=fr.Uint8Array;const rc=p6;function yp(e){var t=new e.constructor(e.byteLength);return new rc(t).set(new rc(e)),t}function m6(e,t){var n=t?yp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var g6=/\w*$/;function v6(e){var t=new e.constructor(e.source,g6.exec(e));return t.lastIndex=e.lastIndex,t}var Zg=Or?Or.prototype:void 0,Jg=Zg?Zg.valueOf:void 0;function y6(e){return Jg?Object(Jg.call(e)):{}}function b6(e,t){var n=t?yp(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var _6="[object Boolean]",w6="[object Date]",C6="[object Map]",S6="[object Number]",x6="[object RegExp]",T6="[object Set]",k6="[object String]",E6="[object Symbol]",O6="[object ArrayBuffer]",A6="[object DataView]",P6="[object Float32Array]",I6="[object Float64Array]",M6="[object Int8Array]",L6="[object Int16Array]",R6="[object Int32Array]",D6="[object Uint8Array]",$6="[object Uint8ClampedArray]",B6="[object Uint16Array]",F6="[object Uint32Array]";function z6(e,t,n){var r=e.constructor;switch(t){case O6:return yp(e);case _6:case w6:return new r(+e);case A6:return m6(e,n);case P6:case I6:case M6:case L6:case R6:case D6:case $6:case B6:case F6:return b6(e,n);case C6:return new r;case S6:case k6:return new r(e);case x6:return v6(e);case T6:return new r;case E6:return y6(e)}}function N6(e){return typeof e.constructor=="function"&&!dp(e)?YA($_(e)):{}}var j6="[object Map]";function V6(e){return Ni(e)&&Gs(e)==j6}var Qg=To&&To.isMap,U6=Qg?hp(Qg):V6;const H6=U6;var W6="[object Set]";function Y6(e){return Ni(e)&&Gs(e)==W6}var ev=To&&To.isSet,X6=ev?hp(ev):Y6;const K6=X6;var G6=1,q6=2,Z6=4,j_="[object Arguments]",J6="[object Array]",Q6="[object Boolean]",e8="[object Date]",t8="[object Error]",V_="[object Function]",n8="[object GeneratorFunction]",r8="[object Map]",i8="[object Number]",U_="[object Object]",a8="[object RegExp]",o8="[object Set]",s8="[object String]",l8="[object Symbol]",u8="[object WeakMap]",c8="[object ArrayBuffer]",f8="[object DataView]",d8="[object Float32Array]",h8="[object Float64Array]",p8="[object Int8Array]",m8="[object Int16Array]",g8="[object Int32Array]",v8="[object Uint8Array]",y8="[object Uint8ClampedArray]",b8="[object Uint16Array]",_8="[object Uint32Array]",Mt={};Mt[j_]=Mt[J6]=Mt[c8]=Mt[f8]=Mt[Q6]=Mt[e8]=Mt[d8]=Mt[h8]=Mt[p8]=Mt[m8]=Mt[g8]=Mt[r8]=Mt[i8]=Mt[U_]=Mt[a8]=Mt[o8]=Mt[s8]=Mt[l8]=Mt[v8]=Mt[y8]=Mt[b8]=Mt[_8]=!0;Mt[t8]=Mt[V_]=Mt[u8]=!1;function Eu(e,t,n,r,i,l){var v,o=t&G6,a=t&q6,u=t&Z6;if(n&&(v=i?n(e,r,i,l):n(e)),v!==void 0)return v;if(!cr(e))return e;var d=ei(e);if(d){if(v=h6(e),!o)return XA(e,v)}else{var c=Gs(e),f=c==V_||c==n8;if(nc(e))return Y5(e,o);if(c==U_||c==j_||f&&!i){if(v=a||f?{}:N6(e),!o)return a?e6(e,H5(v,e)):Z5(e,U5(v,e))}else{if(!Mt[c])return i?e:{};v=z6(e,c,o)}}l||(l=new qr);var s=l.get(e);if(s)return s;l.set(e,v),K6(e)?e.forEach(function(m){v.add(Eu(m,t,n,m,e,l))}):H6(e)&&e.forEach(function(m,y){v.set(y,Eu(m,t,n,y,e,l))});var h=u?a?t6:Od:a?mp:pp,g=d?void 0:h(e);return GA(g||e,function(m,y){g&&(y=m,m=e[y]),fp(v,y,Eu(m,t,n,y,e,l))}),v}var w8=4;function tv(e){return Eu(e,w8)}var C8="__lodash_hash_undefined__";function S8(e){return this.__data__.set(e,C8),this}function x8(e){return this.__data__.has(e)}function ic(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new ci;++t<n;)this.add(e[t])}ic.prototype.add=ic.prototype.push=S8;ic.prototype.has=x8;function T8(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 k8(e,t){return e.has(t)}var E8=1,O8=2;function H_(e,t,n,r,i,l){var v=n&E8,o=e.length,a=t.length;if(o!=a&&!(v&&a>o))return!1;var u=l.get(e),d=l.get(t);if(u&&d)return u==t&&d==e;var c=-1,f=!0,s=n&O8?new ic:void 0;for(l.set(e,t),l.set(t,e);++c<o;){var h=e[c],g=t[c];if(r)var m=v?r(g,h,c,t,e,l):r(h,g,c,e,t,l);if(m!==void 0){if(m)continue;f=!1;break}if(s){if(!T8(t,function(y,b){if(!k8(s,b)&&(h===y||i(h,y,n,r,l)))return s.push(b)})){f=!1;break}}else if(!(h===g||i(h,g,n,r,l))){f=!1;break}}return l.delete(e),l.delete(t),f}function A8(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function P8(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var I8=1,M8=2,L8="[object Boolean]",R8="[object Date]",D8="[object Error]",$8="[object Map]",B8="[object Number]",F8="[object RegExp]",z8="[object Set]",N8="[object String]",j8="[object Symbol]",V8="[object ArrayBuffer]",U8="[object DataView]",nv=Or?Or.prototype:void 0,vf=nv?nv.valueOf:void 0;function H8(e,t,n,r,i,l,v){switch(n){case U8:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case V8:return!(e.byteLength!=t.byteLength||!l(new rc(e),new rc(t)));case L8:case R8:case B8:return cp(+e,+t);case D8:return e.name==t.name&&e.message==t.message;case F8:case N8:return e==t+"";case $8:var o=A8;case z8:var a=r&I8;if(o||(o=P8),e.size!=t.size&&!a)return!1;var u=v.get(e);if(u)return u==t;r|=M8,v.set(e,t);var d=H_(o(e),o(t),r,i,l,v);return v.delete(e),d;case j8:if(vf)return vf.call(e)==vf.call(t)}return!1}var W8=1,Y8=Object.prototype,X8=Y8.hasOwnProperty;function K8(e,t,n,r,i,l){var v=n&W8,o=Od(e),a=o.length,u=Od(t),d=u.length;if(a!=d&&!v)return!1;for(var c=a;c--;){var f=o[c];if(!(v?f in t:X8.call(t,f)))return!1}var s=l.get(e),h=l.get(t);if(s&&h)return s==t&&h==e;var g=!0;l.set(e,t),l.set(t,e);for(var m=v;++c<a;){f=o[c];var y=e[f],b=t[f];if(r)var _=v?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):_)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){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)&&(g=!1)}return l.delete(e),l.delete(t),g}var G8=1,rv="[object Arguments]",iv="[object Array]",Zl="[object Object]",q8=Object.prototype,av=q8.hasOwnProperty;function Z8(e,t,n,r,i,l){var v=ei(e),o=ei(t),a=v?iv:Gs(e),u=o?iv:Gs(t);a=a==rv?Zl:a,u=u==rv?Zl:u;var d=a==Zl,c=u==Zl,f=a==u;if(f&&nc(e)){if(!nc(t))return!1;v=!0,d=!1}if(f&&!d)return l||(l=new qr),v||P_(e)?H_(e,t,n,r,i,l):H8(e,t,a,n,r,i,l);if(!(n&G8)){var s=d&&av.call(e,"__wrapped__"),h=c&&av.call(t,"__wrapped__");if(s||h){var g=s?e.value():e,m=h?t.value():t;return l||(l=new qr),i(g,m,n,r,l)}}return f?(l||(l=new qr),K8(e,t,n,r,i,l)):!1}function W_(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ni(e)&&!Ni(t)?e!==e&&t!==t:Z8(e,t,n,r,W_,i)}var J8=function(){return fr.Date.now()};const yf=J8;var Q8="Expected a function",eI=Math.max,tI=Math.min;function ko(e,t,n){var r,i,l,v,o,a,u=0,d=!1,c=!1,f=!0;if(typeof e!="function")throw new TypeError(Q8);t=Rg(t)||0,cr(n)&&(d=!!n.leading,c="maxWait"in n,l=c?eI(Rg(n.maxWait)||0,t):l,f="trailing"in n?!!n.trailing:f);function s(x){var T=r,E=i;return r=i=void 0,u=x,v=e.apply(E,T),v}function h(x){return u=x,o=setTimeout(y,t),d?s(x):v}function g(x){var T=x-a,E=x-u,I=t-T;return c?tI(I,l-E):I}function m(x){var T=x-a,E=x-u;return a===void 0||T>=t||T<0||c&&E>=l}function y(){var x=yf();if(m(x))return b(x);o=setTimeout(y,g(x))}function b(x){return o=void 0,f&&r?s(x):(r=i=void 0,v)}function _(){o!==void 0&&clearTimeout(o),u=0,r=a=i=o=void 0}function w(){return o===void 0?v:b(yf())}function S(){var x=yf(),T=m(x);if(r=arguments,i=this,a=x,T){if(o===void 0)return h(a);if(c)return clearTimeout(o),o=setTimeout(y,t),s(a)}return o===void 0&&(o=setTimeout(y,t)),v}return S.cancel=_,S.flush=w,S}function Y_(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 Md(e,t){return W_(e,t)}function Sr(e){return e==null}function nI(e,t,n,r){if(!cr(e))return e;t=L_(t,e);for(var i=-1,l=t.length,v=l-1,o=e;o!=null&&++i<l;){var a=R_(t[i]),u=n;if(a==="__proto__"||a==="constructor"||a==="prototype")return e;if(i!=v){var d=o[a];u=r?r(d,a,o):void 0,u===void 0&&(u=cr(d)?d:S_(t[i+1])?[]:{})}fp(o,a,u),o=o[a]}return e}function rI(e,t,n){return e==null?e:nI(e,t,n)}var iI="Expected a function";function Ss(e,t,n){var r=!0,i=!0;if(typeof e!="function")throw new TypeError(iI);return cr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ko(e,t,{leading:r,maxWait:t,trailing:i})}const aI='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',oI=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,ov=e=>Array.from(e.querySelectorAll(aI)).filter(t=>sI(t)&&oI(t)),sI=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}},Ou=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},Ur=(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 lI=Object.defineProperty,uI=Object.defineProperties,cI=Object.getOwnPropertyDescriptors,sv=Object.getOwnPropertySymbols,fI=Object.prototype.hasOwnProperty,dI=Object.prototype.propertyIsEnumerable,lv=(e,t,n)=>t in e?lI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hI=(e,t)=>{for(var n in t||(t={}))fI.call(t,n)&&lv(e,n,t[n]);if(sv)for(var n of sv(t))dI.call(t,n)&&lv(e,n,t[n]);return e},pI=(e,t)=>uI(e,cI(t));function uv(e,t){var n;const r=fn();return Na(()=>{r.value=e()},pI(hI({},t),{flush:(n=t==null?void 0:t.flush)!=null?n:"sync"})),kc(r)}var cv;const dt=typeof window<"u",mI=e=>typeof e<"u",Fn=e=>typeof e=="boolean",X_=e=>typeof e=="function",ft=e=>typeof e=="number",gI=e=>typeof e=="string",or=()=>{};dt&&((cv=window==null?void 0:window.navigator)==null?void 0:cv.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function wr(e){return typeof e=="function"?e():C(e)}function bp(e,t){function n(...r){e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})}return n}const K_=e=>e();function vI(e,t={}){let n,r;return l=>{const v=wr(e),o=wr(t.maxWait);if(n&&clearTimeout(n),v<=0||o!==void 0&&o<=0)return r&&(clearTimeout(r),r=null),l();o&&!r&&(r=setTimeout(()=>{n&&clearTimeout(n),r=null,l()},o)),n=setTimeout(()=>{r&&clearTimeout(r),r=null,l()},v)}}function yI(e,t=!0,n=!0){let r=0,i,l=!0;const v=()=>{i&&(clearTimeout(i),i=void 0)};return a=>{const u=wr(e),d=Date.now()-r;if(v(),u<=0)return r=Date.now(),a();d>u&&(n||!l)?(r=Date.now(),a()):t&&(i=setTimeout(()=>{r=Date.now(),l=!0,v(),a()},u)),!n&&!i&&(i=setTimeout(()=>l=!0,u)),l=!1}}function bI(e=K_){const t=oe(!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 _I(e){return e}function wI(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 zo(e){return jy()?(Bh(e),!0):!1}function G_(e,t=200,n={}){return bp(vI(t,n),e)}function CI(e,t=200,n={}){if(t<=0)return e;const r=oe(e.value),i=G_(()=>{r.value=e.value},t,n);return xe(e,()=>i()),r}function q_(e,t=200,n=!1,r=!0){return bp(yI(t,n,r),e)}function SI(e){return typeof e=="function"?ee(e):oe(e)}function _p(e,t=!0){St()?nt(e):t?e():Xe(e)}function qs(e,t,n={}){const{immediate:r=!0}=n,i=oe(!1);let l=null;function v(){l&&(clearTimeout(l),l=null)}function o(){i.value=!1,v()}function a(...u){v(),i.value=!0,l=setTimeout(()=>{i.value=!1,l=null,e(...u)},wr(t))}return r&&(i.value=!0,dt&&a()),zo(o),{isPending:i,start:a,stop:o}}var fv=Object.getOwnPropertySymbols,xI=Object.prototype.hasOwnProperty,TI=Object.prototype.propertyIsEnumerable,kI=(e,t)=>{var n={};for(var r in e)xI.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&fv)for(var r of fv(e))t.indexOf(r)<0&&TI.call(e,r)&&(n[r]=e[r]);return n};function EI(e,t,n={}){const r=n,{eventFilter:i=K_}=r,l=kI(r,["eventFilter"]);return xe(e,bp(i,t),l)}var OI=Object.defineProperty,AI=Object.defineProperties,PI=Object.getOwnPropertyDescriptors,ac=Object.getOwnPropertySymbols,Z_=Object.prototype.hasOwnProperty,J_=Object.prototype.propertyIsEnumerable,dv=(e,t,n)=>t in e?OI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,II=(e,t)=>{for(var n in t||(t={}))Z_.call(t,n)&&dv(e,n,t[n]);if(ac)for(var n of ac(t))J_.call(t,n)&&dv(e,n,t[n]);return e},MI=(e,t)=>AI(e,PI(t)),LI=(e,t)=>{var n={};for(var r in e)Z_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&ac)for(var r of ac(e))t.indexOf(r)<0&&J_.call(e,r)&&(n[r]=e[r]);return n};function RI(e,t,n={}){const r=n,{eventFilter:i}=r,l=LI(r,["eventFilter"]),{eventFilter:v,pause:o,resume:a,isActive:u}=bI(i);return{stop:EI(e,t,MI(II({},l),{eventFilter:v})),pause:o,resume:a,isActive:u}}function hv(e,t,n){let r;At(n)?r={evaluating:n}:r=n||{};const{lazy:i=!1,evaluating:l=void 0,onError:v=or}=r,o=oe(!i),a=oe(t);let u=0;return Na(async d=>{if(!o.value)return;u++;const c=u;let f=!1;l&&Promise.resolve().then(()=>{l.value=!0});try{const s=await e(h=>{d(()=>{l&&(l.value=!1),f||h()})});c===u&&(a.value=s)}catch(s){v(s)}finally{l&&c===u&&(l.value=!1),f=!0}}),i?ee(()=>(o.value=!0,a.value)):a}function ir(e){var t;const n=wr(e);return(t=n==null?void 0:n.$el)!=null?t:n}const An=dt?window:void 0,DI=dt?window.document:void 0;dt&&window.navigator;dt&&window.location;function Ct(...e){let t,n,r,i;if(gI(e[0])?([n,r,i]=e,t=An):[t,n,r,i]=e,!t)return or;let l=or;const v=xe(()=>ir(t),a=>{l(),a&&(a.addEventListener(n,r,i),l=()=>{a.removeEventListener(n,r,i),l=or})},{immediate:!0,flush:"post"}),o=()=>{v(),l()};return zo(o),o}function $I(e,t,n={}){const{window:r=An,ignore:i,capture:l=!0,detectIframe:v=!1}=n;if(!r)return;const o=oe(!0);let a;const u=s=>{r.clearTimeout(a);const h=ir(e);!h||h===s.target||s.composedPath().includes(h)||!o.value||t(s)},d=s=>i&&i.some(h=>{const g=ir(h);return g&&(s.target===g||s.composedPath().includes(g))}),c=[Ct(r,"click",u,{passive:!0,capture:l}),Ct(r,"pointerdown",s=>{const h=ir(e);o.value=!!h&&!s.composedPath().includes(h)&&!d(s)},{passive:!0}),Ct(r,"pointerup",s=>{if(s.button===0){const h=s.composedPath();s.composedPath=()=>h,a=r.setTimeout(()=>u(s),50)}},{passive:!0}),v&&Ct(r,"blur",s=>{var h;const g=ir(e);((h=document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(g!=null&&g.contains(document.activeElement))&&t(s)})].filter(Boolean);return()=>c.forEach(s=>s())}const BI=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function pv(...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=An,eventName:l="keydown",passive:v=!1}=r,o=BI(t);return Ct(i,l,u=>{o(u)&&n(u)},v)}const FI=500;function zI(e,t,n){var r,i;const l=ee(()=>ir(e));let v;function o(){v&&(clearTimeout(v),v=void 0)}function a(d){var c,f,s,h;((c=n==null?void 0:n.modifiers)==null?void 0:c.self)&&d.target!==l.value||(o(),(f=n==null?void 0:n.modifiers)!=null&&f.prevent&&d.preventDefault(),(s=n==null?void 0:n.modifiers)!=null&&s.stop&&d.stopPropagation(),v=setTimeout(()=>t(d),(h=n==null?void 0:n.delay)!=null?h:FI))}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};Ct(l,"pointerdown",a,u),Ct(l,"pointerup",o,u),Ct(l,"pointerleave",o,u)}function wp(e,t=!1){const n=oe(),r=()=>n.value=Boolean(e());return r(),_p(r,t),n}function so(e,t={}){const{window:n=An}=t,r=wp(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function");let i;const l=oe(!1),v=()=>{!i||("removeEventListener"in i?i.removeEventListener("change",o):i.removeListener(o))},o=()=>{!r.value||(v(),i=n.matchMedia(SI(e).value),l.value=i.matches,"addEventListener"in i?i.addEventListener("change",o):i.addListener(o))};return Na(o),zo(()=>v()),l}const Cp={sm:640,md:768,lg:1024,xl:1280,"2xl":1536};var NI=Object.defineProperty,mv=Object.getOwnPropertySymbols,jI=Object.prototype.hasOwnProperty,VI=Object.prototype.propertyIsEnumerable,gv=(e,t,n)=>t in e?NI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,UI=(e,t)=>{for(var n in t||(t={}))jI.call(t,n)&&gv(e,n,t[n]);if(mv)for(var n of mv(t))VI.call(t,n)&&gv(e,n,t[n]);return e};function Sp(e,t={}){function n(o,a){let u=e[o];return a!=null&&(u=wI(u,a)),typeof u=="number"&&(u=`${u}px`),u}const{window:r=An}=t;function i(o){return r?r.matchMedia(o).matches:!1}const l=o=>so(`(min-width: ${n(o)})`,t),v=Object.keys(e).reduce((o,a)=>(Object.defineProperty(o,a,{get:()=>l(a),enumerable:!0,configurable:!0}),o),{});return UI({greater(o){return so(`(min-width: ${n(o,.1)})`,t)},greaterOrEqual:l,smaller(o){return so(`(max-width: ${n(o,-.1)})`,t)},smallerOrEqual(o){return so(`(max-width: ${n(o)})`,t)},between(o,a){return so(`(min-width: ${n(o)}) and (max-width: ${n(a,-.1)})`,t)},isGreater(o){return i(`(min-width: ${n(o,.1)})`)},isGreaterOrEqual(o){return i(`(min-width: ${n(o)})`)},isSmaller(o){return i(`(max-width: ${n(o,-.1)})`)},isSmallerOrEqual(o){return i(`(max-width: ${n(o)})`)},isInBetween(o,a){return i(`(min-width: ${n(o)}) and (max-width: ${n(a,-.1)})`)}},v)}function HI(e){return JSON.parse(JSON.stringify(e))}const Ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Rd="__vueuse_ssr_handlers__";Ld[Rd]=Ld[Rd]||{};const WI=Ld[Rd];function Q_(e,t){return WI[e]||t}function YI(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 XI=Object.defineProperty,vv=Object.getOwnPropertySymbols,KI=Object.prototype.hasOwnProperty,GI=Object.prototype.propertyIsEnumerable,yv=(e,t,n)=>t in e?XI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bv=(e,t)=>{for(var n in t||(t={}))KI.call(t,n)&&yv(e,n,t[n]);if(vv)for(var n of vv(t))GI.call(t,n)&&yv(e,n,t[n]);return e};const qI={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 e1(e,t,n,r={}){var i;const{flush:l="pre",deep:v=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:u=!1,shallow:d,window:c=An,eventFilter:f,onError:s=T=>{console.error(T)}}=r,h=(d?fn:oe)(t);if(!n)try{n=Q_("getDefaultStorage",()=>{var T;return(T=An)==null?void 0:T.localStorage})()}catch(T){s(T)}if(!n)return h;const g=wr(t),m=YI(g),y=(i=r.serializer)!=null?i:qI[m],{pause:b,resume:_}=RI(h,()=>w(h.value),{flush:l,deep:v,eventFilter:f});return c&&o&&Ct(c,"storage",x),x(),h;function w(T){try{T==null?n.removeItem(e):n.setItem(e,y.write(T))}catch(E){s(E)}}function S(T){if(!(T&&T.key!==e)){b();try{const E=T?T.newValue:n.getItem(e);if(E==null)return a&&g!==null&&n.setItem(e,y.write(g)),g;if(!T&&u){const I=y.read(E);return X_(u)?u(I,g):m==="object"&&!Array.isArray(I)?bv(bv({},g),I):I}else return typeof E!="string"?E:y.read(E)}catch(E){s(E)}finally{_()}}}function x(T){T&&T.key!==e||(h.value=S(T))}}function ZI(e){return so("(prefers-color-scheme: dark)",e)}var JI=Object.defineProperty,_v=Object.getOwnPropertySymbols,QI=Object.prototype.hasOwnProperty,eM=Object.prototype.propertyIsEnumerable,wv=(e,t,n)=>t in e?JI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tM=(e,t)=>{for(var n in t||(t={}))QI.call(t,n)&&wv(e,n,t[n]);if(_v)for(var n of _v(t))eM.call(t,n)&&wv(e,n,t[n]);return e};function Cv(e={}){const{selector:t="html",attribute:n="class",initialValue:r="auto",window:i=An,storage:l,storageKey:v="vueuse-color-scheme",listenToStorageChanges:o=!0,storageRef:a,emitAuto:u}=e,d=tM({auto:"",light:"light",dark:"dark"},e.modes||{}),c=ZI({window:i}),f=ee(()=>c.value?"dark":"light"),s=a||(v==null?oe(r):e1(v,r,l,{window:i,listenToStorageChanges:o})),h=ee({get(){return s.value==="auto"&&!u?f.value:s.value},set(b){s.value=b}}),g=Q_("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(d).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 m(b){var _;const w=b==="auto"?f.value:b;g(t,n,(_=d[w])!=null?_:w)}function y(b){e.onChanged?e.onChanged(b,m):m(b)}return xe(h,y,{flush:"post",immediate:!0}),u&&xe(f,()=>y(h.value),{flush:"post"}),_p(()=>y(h.value)),h}function nM({document:e=DI}={}){if(!e)return oe("visible");const t=oe(e.visibilityState);return Ct(e,"visibilitychange",()=>{t.value=e.visibilityState}),t}var Sv=Object.getOwnPropertySymbols,rM=Object.prototype.hasOwnProperty,iM=Object.prototype.propertyIsEnumerable,aM=(e,t)=>{var n={};for(var r in e)rM.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Sv)for(var r of Sv(e))t.indexOf(r)<0&&iM.call(e,r)&&(n[r]=e[r]);return n};function Ir(e,t,n={}){const r=n,{window:i=An}=r,l=aM(r,["window"]);let v;const o=wp(()=>i&&"ResizeObserver"in i),a=()=>{v&&(v.disconnect(),v=void 0)},u=xe(()=>ir(e),c=>{a(),o.value&&i&&c&&(v=new ResizeObserver(t),v.observe(c,l))},{immediate:!0,flush:"post"}),d=()=>{a(),u()};return zo(d),{isSupported:o,stop:d}}const xv=1;function oM(e,t={}){const{throttle:n=0,idle:r=200,onStop:i=or,onScroll:l=or,offset:v={left:0,right:0,top:0,bottom:0},eventListenerOptions:o={capture:!1,passive:!0},behavior:a="auto"}=t,u=oe(0),d=oe(0),c=ee({get(){return u.value},set(_){s(_,void 0)}}),f=ee({get(){return d.value},set(_){s(void 0,_)}});function s(_,w){var S,x,T;const E=wr(e);!E||(T=E instanceof Document?document.body:E)==null||T.scrollTo({top:(S=wr(w))!=null?S:f.value,left:(x=wr(_))!=null?x:c.value,behavior:wr(a)})}const h=oe(!1),g=vt({left:!0,right:!1,top:!0,bottom:!1}),m=vt({left:!1,right:!1,top:!1,bottom:!1}),y=G_(_=>{h.value=!1,m.left=!1,m.right=!1,m.top=!1,m.bottom=!1,i(_)},n+r),b=_=>{const w=_.target===document?_.target.documentElement:_.target,S=w.scrollLeft;m.left=S<u.value,m.right=S>d.value,g.left=S<=0+(v.left||0),g.right=S+w.clientWidth>=w.scrollWidth-(v.right||0)-xv,u.value=S;let x=w.scrollTop;_.target===document&&!x&&(x=document.body.scrollTop),m.top=x<d.value,m.bottom=x>d.value,g.top=x<=0+(v.top||0),g.bottom=x+w.clientHeight>=w.scrollHeight-(v.bottom||0)-xv,d.value=x,h.value=!0,y(_),l(_)};return Ct(e,"scroll",n?q_(b,n):b,o),{x:c,y:f,isScrolling:h,arrivedState:g,directions:m}}function sM(e,t,n={}){const{root:r,rootMargin:i="0px",threshold:l=.1,window:v=An}=n,o=wp(()=>v&&"IntersectionObserver"in v);let a=or;const u=o.value?xe(()=>({el:ir(e),root:ir(r)}),({el:c,root:f})=>{if(a(),!c)return;const s=new IntersectionObserver(t,{root:f,rootMargin:i,threshold:l});s.observe(c),a=()=>{s.disconnect(),a=or}},{immediate:!0,flush:"post"}):or,d=()=>{a(),u()};return zo(d),{isSupported:o,stop:d}}function Sn(e,t,n={}){const{window:r=An}=n;return e1(e,t,r==null?void 0:r.localStorage,n)}var ua;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(ua||(ua={}));function lM(e,t={}){const{threshold:n=50,onSwipe:r,onSwipeEnd:i,onSwipeStart:l,passive:v=!0,window:o=An}=t,a=vt({x:0,y:0}),u=vt({x:0,y:0}),d=ee(()=>a.x-u.x),c=ee(()=>a.y-u.y),{max:f,abs:s}=Math,h=ee(()=>f(s(d.value),s(c.value))>=n),g=oe(!1),m=ee(()=>h.value?s(d.value)>s(c.value)?d.value>0?ua.LEFT:ua.RIGHT:c.value>0?ua.UP:ua.DOWN:ua.NONE),y=I=>[I.touches[0].clientX,I.touches[0].clientY],b=(I,D)=>{a.x=I,a.y=D},_=(I,D)=>{u.x=I,u.y=D};let w;const S=uM(o==null?void 0:o.document);v?w=S?{passive:!0}:{capture:!1}:w=S?{passive:!1,capture:!0}:{capture:!0};const x=I=>{g.value&&(i==null||i(I,m.value)),g.value=!1},T=[Ct(e,"touchstart",I=>{w.capture&&!w.passive&&I.preventDefault();const[D,N]=y(I);b(D,N),_(D,N),l==null||l(I)},w),Ct(e,"touchmove",I=>{const[D,N]=y(I);_(D,N),!g.value&&h.value&&(g.value=!0),g.value&&(r==null||r(I))},w),Ct(e,"touchend",x,w),Ct(e,"touchcancel",x,w)];return{isPassiveEventSupported:S,isSwiping:g,direction:m,coordsStart:a,coordsEnd:u,lengthX:d,lengthY:c,stop:()=>T.forEach(I=>I())}}function uM(e){if(!e)return!1;let t=!1;const n={get passive(){return t=!0,!1}};return e.addEventListener("x",or,n),e.removeEventListener("x",or),t}var cM=Object.defineProperty,Tv=Object.getOwnPropertySymbols,fM=Object.prototype.hasOwnProperty,dM=Object.prototype.propertyIsEnumerable,kv=(e,t,n)=>t in e?cM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hM=(e,t)=>{for(var n in t||(t={}))fM.call(t,n)&&kv(e,n,t[n]);if(Tv)for(var n of Tv(t))dM.call(t,n)&&kv(e,n,t[n]);return e};const pM={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]};hM({linear:_I},pM);function mM(e,t,n,r={}){var i,l,v;const{clone:o=!1,passive:a=!1,eventName:u,deep:d=!1,defaultValue:c}=r,f=St(),s=n||(f==null?void 0:f.emit)||((i=f==null?void 0:f.$emit)==null?void 0:i.bind(f))||((v=(l=f==null?void 0:f.proxy)==null?void 0:l.$emit)==null?void 0:v.bind(f==null?void 0:f.proxy));let h=u;t||(t="modelValue"),h=u||h||`update:${t.toString()}`;const g=y=>o?X_(o)?o(y):HI(y):y,m=()=>mI(e[t])?g(e[t]):c;if(a){const y=m(),b=oe(y);return xe(()=>e[t],_=>b.value=g(_)),xe(b,_=>{(_!==e[t]||d)&&s(h,_)},{deep:d}),b}else return ee({get(){return m()},set(y){s(h,y)}})}function gM({window:e=An}={}){if(!e)return oe(!1);const t=oe(e.document.hasFocus());return Ct(e,"blur",()=>{t.value=!1}),Ct(e,"focus",()=>{t.value=!0}),t}function t1(e={}){const{window:t=An,initialWidth:n=1/0,initialHeight:r=1/0,listenOrientation:i=!0,includeScrollbar:l=!0}=e,v=oe(n),o=oe(r),a=()=>{t&&(l?(v.value=t.innerWidth,o.value=t.innerHeight):(v.value=t.document.documentElement.clientWidth,o.value=t.document.documentElement.clientHeight))};return a(),_p(a),Ct("resize",a,{passive:!0}),i&&Ct("orientationchange",a,{passive:!0}),{width:v,height:o}}const vM=(e,t)=>{if(!dt||!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},xp=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}},ar=e=>e===void 0,Oa=e=>typeof Element>"u"?!1:e instanceof Element,yM=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),ca=e=>wl(e),Dd=e=>Object.keys(e),bM=e=>Object.entries(e),bf=(e,t,n)=>({get value(){return Rn(e,t,n)},set value(r){rI(e,t,r)}});class _M extends Error{constructor(t){super(t),this.name="ElementPlusError"}}function bn(e,t){throw new _M(`[${e}] ${t}`)}const n1=(e="")=>e.split(" ").filter(t=>!!t.trim()),$d=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},us=(e,t)=>{!e||!t.trim()||e.classList.add(...n1(t))},Au=(e,t)=>{!e||!t.trim()||e.classList.remove(...n1(t))},r1=(e,t)=>{var n;if(!dt||!e||!t)return"";let r=lr(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 Ar(e,t="px"){if(!e)return"";if(Ge(e))return e;if(ft(e))return`${e}${t}`}const wM=(e,t)=>{if(!dt)return!1;const n={undefined:"overflow",true:"overflow-y",false:"overflow-x"}[String(t)],r=r1(e,n);return["scroll","auto","overlay"].some(i=>r.includes(i))},CM=(e,t)=>{if(!dt)return;let n=e;for(;n;){if([window,document,document.documentElement].includes(n))return window;if(wM(n,t))return n;n=n.parentNode}return n};let Jl;const SM=e=>{var t;if(!dt)return 0;if(Jl!==void 0)return Jl;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),Jl=r-l,Jl};function xM(e,t){if(!dt)return;if(!t){e.scrollTop=0;return}const n=[];let r=t.offsetParent;for(;r!==null&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;const i=t.offsetTop+n.reduce((a,u)=>a+u.offsetTop,0),l=i+t.offsetHeight,v=e.scrollTop,o=v+e.clientHeight;i<v?e.scrollTop=i:l>o&&(e.scrollTop=l-e.clientHeight)}const i1="__epPropKey",Pe=e=>e,TM=e=>ot(e)&&!!e[i1],Wc=(e,t)=>{if(!ot(e)||TM(e))return e;const{values:n,required:r,default:i,type:l,validator:v}=e,a={type:l,required:!!r,validator:n||v?u=>{let d=!1,c=[];if(n&&(c=Array.from(n),et(e,"default")&&c.push(i),d||(d=c.includes(u))),v&&(d||(d=v(u))),!d&&c.length>0){const f=[...new Set(c)].map(s=>JSON.stringify(s)).join(", ");cS(`Invalid prop: validation failed${t?` for prop "${t}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return d}:void 0,[i1]:!0};return et(e,"default")&&(a.default=i),a},Fe=e=>Y_(Object.entries(e).map(([t,n])=>[t,Wc(n,t)])),Xt=Pe([String,Object,Function]),kM={Close:Er},a1={Close:Er,SuccessFilled:v_,InfoFilled:ap,WarningFilled:up,CircleCloseFilled:f_},oc={success:v_,warning:up,error:f_,info:ap},EM={validating:op,success:xl,error:zc},Et=(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},OM=(e,t)=>(e.install=n=>{e._context=n._context,n.config.globalProperties[t]=e},e),AM=(e,t)=>(e.install=n=>{n.directive(t,e)},e),dr=e=>(e.install=ct,e),PM=(...e)=>t=>{e.forEach(n=>{Ye(n)?n(t):n.value=t})},Ot={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"},wt="update:modelValue",ti="change",Aa="input",Tl=["","default","small","large"],IM={large:40,default:32,small:24},MM=e=>IM[e||"default"],Yc=e=>["",...Tl].includes(e);var Pu=(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))(Pu||{});const o1=e=>{const t=He(e)?e:[e],n=[];return t.forEach(r=>{He(r.children)?n.push(...o1(r.children)):n.push(r)}),n},LM=()=>dt&&/firefox/i.test(window.navigator.userAgent),s1=e=>/([(\uAC00-\uD7AF)|(\u3130-\u318F)])+/gi.test(e),RM=()=>Math.floor(Math.random()*1e4),rn=e=>e,DM=["class","style"],$M=/^on[A-Z]/,l1=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n}=e,r=ee(()=>((n==null?void 0:n.value)||[]).concat(DM)),i=St();return ee(i?()=>{var l;return Y_(Object.entries((l=i.proxy)==null?void 0:l.$attrs).filter(([v])=>!r.value.includes(v)&&!(t&&$M.test(v))))}:()=>({}))},u1=Symbol("buttonGroupContextKey"),c1=Symbol("carouselContextKey"),f1=Symbol(),d1=Symbol("dialogInjectionKey"),No=Symbol("formContextKey"),Pa=Symbol("formItemContextKey"),h1=Symbol("elPaginationKey"),p1=Symbol("radioGroupKey"),m1=Symbol("rowContextKey"),g1=Symbol("scrollbarContextKey"),v1=Symbol("sliderContextKey"),Xc=Symbol("tabsRootContextKey"),y1=Symbol("uploadContextKey"),Tp=Symbol("popper"),b1=Symbol("popperContent"),_1=e=>{const t=St();return ee(()=>{var n,r;return(r=((n=t.proxy)==null?void 0:n.$props)[e])!=null?r:void 0})},sc=oe();function fi(e,t=void 0){const n=St()?qe(f1,sc):sc;return e?ee(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[e])!=null?i:t}):n}const BM=(e,t,n=!1)=>{var r;const i=!!St(),l=i?fi():void 0,v=(r=t==null?void 0:t.provide)!=null?r:i?gt:void 0;if(!v)return;const o=ee(()=>{const a=C(e);return l!=null&&l.value?FM(l.value,a):a});return v(f1,o),(n||!sc.value)&&(sc.value=o.value),o},FM=(e,t)=>{var n;const r=[...new Set([...Dd(e),...Dd(t)])],i={};for(const l of r)i[l]=(n=t[l])!=null?n:e[l];return i},ji=Wc({type:String,values:Tl,required:!1}),Zn=(e,t={})=>{const n=oe(void 0),r=t.prop?n:_1("size"),i=t.global?n:fi("size"),l=t.form?{size:void 0}:qe(No,void 0),v=t.formItem?{size:void 0}:qe(Pa,void 0);return ee(()=>r.value||C(e)||(v==null?void 0:v.size)||(l==null?void 0:l.size)||i.value||"")},Ha=e=>{const t=_1("disabled"),n=qe(No,void 0);return ee(()=>t.value||C(e)||(n==null?void 0:n.disabled)||!1)},Zs=({from:e,replacement:t,scope:n,version:r,ref:i,type:l="API"},v)=>{xe(()=>C(v),o=>{},{immediate:!0})},w1=(e,t,n)=>{let r={offsetX:0,offsetY:0};const i=o=>{const a=o.clientX,u=o.clientY,{offsetX:d,offsetY:c}=r,f=e.value.getBoundingClientRect(),s=f.left,h=f.top,g=f.width,m=f.height,y=document.documentElement.clientWidth,b=document.documentElement.clientHeight,_=-s+d,w=-h+c,S=y-s-g+d,x=b-h-m+c,T=I=>{const D=Math.min(Math.max(d+I.clientX-a,_),S),N=Math.min(Math.max(c+I.clientY-u,w),x);r={offsetX:D,offsetY:N},e.value.style.transform=`translate(${Ar(D)}, ${Ar(N)})`},E=()=>{document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",T),document.addEventListener("mouseup",E)},l=()=>{t.value&&e.value&&t.value.addEventListener("mousedown",i)},v=()=>{t.value&&e.value&&t.value.removeEventListener("mousedown",i)};nt(()=>{Na(()=>{n.value?l():v()})}),Yt(()=>{v()})},zM=e=>({focus:()=>{var t,n;(n=(t=e.value)==null?void 0:t.focus)==null||n.call(t)}}),Kc="el",NM="is-",ta=(e,t,n,r,i)=>{let l=`${e}-${t}`;return n&&(l+=`-${n}`),r&&(l+=`__${r}`),i&&(l+=`--${i}`),l},Ie=e=>{const t=fi("namespace",Kc);return{namespace:t,b:(h="")=>ta(t.value,e,h,"",""),e:h=>h?ta(t.value,e,"",h,""):"",m:h=>h?ta(t.value,e,"","",h):"",be:(h,g)=>h&&g?ta(t.value,e,h,g,""):"",em:(h,g)=>h&&g?ta(t.value,e,"",h,g):"",bm:(h,g)=>h&&g?ta(t.value,e,h,"",g):"",bem:(h,g,m)=>h&&g&&m?ta(t.value,e,h,g,m):"",is:(h,...g)=>{const m=g.length>=1?g[0]:!0;return h&&m?`${NM}${h}`:""},cssVar:h=>{const g={};for(const m in h)h[m]&&(g[`--${t.value}-${m}`]=h[m]);return g},cssVarName:h=>`--${t.value}-${h}`,cssVarBlock:h=>{const g={};for(const m in h)h[m]&&(g[`--${t.value}-${e}-${m}`]=h[m]);return g},cssVarBlockName:h=>`--${t.value}-${e}-${h}`}},jM={prefix:Math.floor(Math.random()*1e4),current:0},VM=Symbol("elIdInjection"),Vi=e=>{const t=qe(VM,jM),n=fi("namespace",Kc);return ee(()=>C(e)||`${n.value}-id-${t.prefix}-${t.current++}`)},Xi=()=>{const e=qe(No,void 0),t=qe(Pa,void 0);return{form:e,formItem:t}},kl=(e,{formItemContext:t,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=oe(!1)),r||(r=oe(!1));const i=oe();let l;const v=ee(()=>{var o;return!!(!e.label&&t&&t.inputIds&&((o=t.inputIds)==null?void 0:o.length)<=1)});return nt(()=>{l=xe([On(e,"id"),n],([o,a])=>{const u=o!=null?o:a?void 0:Vi().value;u!==i.value&&(t!=null&&t.removeInputId&&(i.value&&t.removeInputId(i.value),!(r!=null&&r.value)&&!a&&u&&t.addInputId(u)),i.value=u)},{immediate:!0})}),li(()=>{l&&l(),t!=null&&t.removeInputId&&i.value&&t.removeInputId(i.value)}),{isLabeledByFormItem:v,inputId:i}};var UM={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 HM=e=>(t,n)=>WM(t,n,C(e)),WM=(e,t,n)=>Rn(n,e,e).replace(/\{(\w+)\}/g,(r,i)=>{var l;return`${(l=t==null?void 0:t[i])!=null?l:`{${i}}`}`}),YM=e=>{const t=ee(()=>C(e).name),n=At(e)?e:oe(e);return{lang:t,locale:n,t:HM(e)}},hn=()=>{const e=fi("locale");return YM(ee(()=>e.value||UM))},C1=e=>{At(e)||bn("[useLockscreen]","You need to pass a ref param to this function");const t=Ie("popup"),n=ib(()=>t.bm("parent","hidden"));if(!dt||$d(document.body,n.value))return;let r=0,i=!1,l="0";const v=()=>{setTimeout(()=>{Au(document.body,n.value),i&&(document.body.style.width=l)},200)};xe(e,o=>{if(!o){v();return}i=!$d(document.body,n.value),i&&(l=document.body.style.width),r=SM(t.namespace.value);const a=document.documentElement.clientHeight<document.body.scrollHeight,u=r1(document.body,"overflowY");r>0&&(a||u==="scroll")&&i&&(document.body.style.width=`calc(100% - ${r}px)`),us(document.body,n.value)}),Bh(()=>v())},XM=Wc({type:Pe(Boolean),default:null}),KM=Wc({type:Pe(Function)}),GM=e=>{const t=`update:${e}`,n=`onUpdate:${e}`,r=[t],i={[e]:XM,[n]:KM};return{useModelToggle:({indicator:v,toggleReason:o,shouldHideWhenRouteChanges:a,shouldProceed:u,onShow:d,onHide:c})=>{const f=St(),{emit:s}=f,h=f.props,g=ee(()=>Ye(h[n])),m=ee(()=>h[e]===null),y=T=>{v.value!==!0&&(v.value=!0,o&&(o.value=T),Ye(d)&&d(T))},b=T=>{v.value!==!1&&(v.value=!1,o&&(o.value=T),Ye(c)&&c(T))},_=T=>{if(h.disabled===!0||Ye(u)&&!u())return;const E=g.value&&dt;E&&s(t,!0),(m.value||!E)&&y(T)},w=T=>{if(h.disabled===!0||!dt)return;const E=g.value&&dt;E&&s(t,!1),(m.value||!E)&&b(T)},S=T=>{!Fn(T)||(h.disabled&&T?g.value&&s(t,!1):v.value!==T&&(T?y():b()))},x=()=>{v.value?w():_()};return xe(()=>h[e],S),a&&f.appContext.config.globalProperties.$route!==void 0&&xe(()=>({...f.proxy.$route}),()=>{a.value&&v.value&&w()}),nt(()=>{S(h[e])}),{hide:w,show:_,toggle:x,hasUpdateHandler:g}},useModelToggleProps:i,useModelToggleEmits:r}},qM=(e,t)=>{let n;xe(()=>e.value,r=>{var i,l;r?(n=document.activeElement,At(t)&&((l=(i=t.value).focus)==null||l.call(i))):n.focus()})},kp=e=>{if(!e)return{onClick:ct,onMousedown:ct,onMouseup:ct};let t=!1,n=!1;return{onClick:v=>{t&&n&&e(v),t=n=!1},onMousedown:v=>{t=v.target===v.currentTarget},onMouseup:v=>{n=v.target===v.currentTarget}}};function ZM(){let e;const t=(r,i)=>{n(),e=window.setTimeout(r,i)},n=()=>window.clearTimeout(e);return zo(()=>n()),{registerTimeout:t,cancelTimeout:n}}let lo=[];const Ev=e=>{const t=e;t.key===Ot.esc&&lo.forEach(n=>n(t))},JM=e=>{nt(()=>{lo.length===0&&document.addEventListener("keydown",Ev),dt&&lo.push(e)}),Yt(()=>{lo=lo.filter(t=>t!==e),lo.length===0&&dt&&document.removeEventListener("keydown",Ev)})};let Ov;const QM=fi("namespace",Kc),S1=`${QM.value}-popper-container-${RM()}`,x1=`#${S1}`,eL=()=>{const e=document.createElement("div");return e.id=S1,document.body.appendChild(e),e},tL=()=>{yb(()=>{!dt||(!Ov||!document.body.querySelector(x1))&&(Ov=eL())})},nL=Fe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200}}),rL=({showAfter:e,hideAfter:t,open:n,close:r})=>{const{registerTimeout:i}=ZM();return{onOpen:o=>{i(()=>{n(o)},C(e))},onClose:o=>{i(()=>{r(o)},C(t))}}},T1=Symbol("elForwardRef"),iL=e=>{gt(T1,{setForwardRef:n=>{e.value=n}})},aL=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Av=oe(0),El=()=>{const e=fi("zIndex",2e3),t=ee(()=>e.value+Av.value);return{initialZIndex:e,currentZIndex:t,nextZIndex:()=>(Av.value++,t.value)}};function oL(e){const t=oe();function n(){if(e.value==null)return;const{selectionStart:i,selectionEnd:l,value:v}=e.value;if(i==null||l==null)return;const o=v.slice(0,Math.max(0,i)),a=v.slice(Math.max(0,l));t.value={selectionStart:i,selectionEnd:l,value:v,beforeTxt:o,afterTxt:a}}function r(){if(e.value==null||t.value==null)return;const{value:i}=e.value,{beforeTxt:l,afterTxt:v,selectionStart:o}=t.value;if(l==null||v==null||o==null)return;let a=i.length;if(i.endsWith(v))a=i.length-v.length;else if(i.startsWith(l))a=l.length;else{const u=l[o-1],d=i.indexOf(u,o-1);d!==-1&&(a=d+1)}e.value.setSelectionRange(a,a)}return[n,r]}var Re=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n};const sL=Fe({size:{type:Pe([Number,String])},color:{type:String}}),lL={name:"ElIcon",inheritAttrs:!1},uL=Ee({...lL,props:sL,setup(e){const t=e,n=Ie("icon"),r=ee(()=>{const{size:i,color:l}=t;return!i&&!l?{}:{fontSize:ar(i)?void 0:Ar(i),"--color":l}});return(i,l)=>(z(),se("i",Tn({class:C(n).b(),style:C(r)},i.$attrs),[Te(i.$slots,"default")],16))}});var cL=Re(uL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);const Le=Et(cL);let er;const fL=`
height:0 !important;
visibility:hidden !important;
overflow:hidden !important;
position:absolute !important;
z-index:-1000 !important;
top:0 !important;
right:0 !important;
`,dL=["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 hL(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:dL.map(v=>`${v}:${t.getPropertyValue(v)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function Pv(e,t=1,n){var r;er||(er=document.createElement("textarea"),document.body.appendChild(er));const{paddingSize:i,borderSize:l,boxSizing:v,contextStyle:o}=hL(e);er.setAttribute("style",`${o};${fL}`),er.value=e.value||e.placeholder||"";let a=er.scrollHeight;const u={};v==="border-box"?a=a+l:v==="content-box"&&(a=a-i),er.value="";const d=er.scrollHeight-i;if(ft(t)){let c=d*t;v==="border-box"&&(c=c+i+l),a=Math.max(c,a),u.minHeight=`${c}px`}if(ft(n)){let c=d*n;v==="border-box"&&(c=c+i+l),a=Math.min(c,a)}return u.height=`${a}px`,(r=er.parentNode)==null||r.removeChild(er),er=void 0,u}const pL=Fe({id:{type:String,default:void 0},size:ji,disabled:Boolean,modelValue:{type:Pe([String,Number,Object]),default:""},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Pe([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:Xt},prefixIcon:{type:Xt},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:Pe([Object,Array,String]),default:()=>rn({})}}),mL={[wt]:e=>Ge(e),input:e=>Ge(e),change:e=>Ge(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},gL=["role"],vL=["id","type","disabled","formatter","parser","readonly","autocomplete","tabindex","aria-label","placeholder"],yL=["id","tabindex","disabled","readonly","autocomplete","aria-label","placeholder"],bL={name:"ElInput",inheritAttrs:!1},_L=Ee({...bL,props:pL,emits:mL,setup(e,{expose:t,emit:n}){const r=e,i={suffix:"append",prefix:"prepend"},l=St(),v=$b(),o=$o(),a=ee(()=>{const ae={};return r.containerRole==="combobox"&&(ae["aria-haspopup"]=v["aria-haspopup"],ae["aria-owns"]=v["aria-owns"],ae["aria-expanded"]=v["aria-expanded"]),ae}),u=l1({excludeKeys:ee(()=>Object.keys(a.value))}),{form:d,formItem:c}=Xi(),{inputId:f}=kl(r,{formItemContext:c}),s=Zn(),h=Ha(),g=Ie("input"),m=Ie("textarea"),y=fn(),b=fn(),_=oe(!1),w=oe(!1),S=oe(!1),x=oe(!1),T=oe(),E=fn(r.inputStyle),I=ee(()=>y.value||b.value),D=ee(()=>{var ae;return(ae=d==null?void 0:d.statusIcon)!=null?ae:!1}),N=ee(()=>(c==null?void 0:c.validateState)||""),L=ee(()=>N.value&&EM[N.value]),F=ee(()=>x.value?N4:C3),O=ee(()=>[v.style,r.inputStyle]),V=ee(()=>[r.inputStyle,E.value,{resize:r.resize}]),ne=ee(()=>Sr(r.modelValue)?"":String(r.modelValue)),J=ee(()=>r.clearable&&!h.value&&!r.readonly&&!!ne.value&&(_.value||w.value)),le=ee(()=>r.showPassword&&!h.value&&!r.readonly&&!!ne.value&&(!!ne.value||_.value)),M=ee(()=>r.showWordLimit&&!!u.value.maxlength&&(r.type==="text"||r.type==="textarea")&&!h.value&&!r.readonly&&!r.showPassword),U=ee(()=>Array.from(ne.value).length),R=ee(()=>!!M.value&&U.value>Number(u.value.maxlength)),P=ee(()=>!!o.suffix||!!r.suffixIcon||J.value||r.showPassword||M.value||!!N.value&&D.value),[Q,j]=oL(y);Ir(b,ae=>{if(!M.value||r.resize!=="both")return;const ge=ae[0],{width:Ce}=ge.contentRect;T.value={right:`calc(100% - ${Ce+15+6}px)`}});const A=()=>{const{type:ae,autosize:ge}=r;if(!(!dt||ae!=="textarea"))if(ge){const Ce=ot(ge)?ge.minRows:void 0,ke=ot(ge)?ge.maxRows:void 0;E.value={...Pv(b.value,Ce,ke)}}else E.value={minHeight:Pv(b.value).minHeight}},q=()=>{const ae=I.value;!ae||ae.value===ne.value||(ae.value=ne.value)},G=ae=>{const{el:ge}=l.vnode;if(!ge)return;const ke=Array.from(ge.querySelectorAll(`.${g.e(ae)}`)).find(ze=>ze.parentNode===ge);if(!ke)return;const Oe=i[ae];o[Oe]?ke.style.transform=`translateX(${ae==="suffix"?"-":""}${ge.querySelector(`.${g.be("group",Oe)}`).offsetWidth}px)`:ke.removeAttribute("style")},te=()=>{G("prefix"),G("suffix")},fe=async ae=>{Q();let{value:ge}=ae.target;if(r.formatter&&(ge=r.parser?r.parser(ge):ge,ge=r.formatter(ge)),!S.value){if(ge===ne.value){q();return}n(wt,ge),n("input",ge),await Xe(),q(),j()}},pe=ae=>{n("change",ae.target.value)},ve=ae=>{n("compositionstart",ae),S.value=!0},H=ae=>{var ge;n("compositionupdate",ae);const Ce=(ge=ae.target)==null?void 0:ge.value,ke=Ce[Ce.length-1]||"";S.value=!s1(ke)},W=ae=>{n("compositionend",ae),S.value&&(S.value=!1,fe(ae))},k=()=>{x.value=!x.value,X()},X=async()=>{var ae;await Xe(),(ae=I.value)==null||ae.focus()},Y=()=>{var ae;return(ae=I.value)==null?void 0:ae.blur()},$=ae=>{_.value=!0,n("focus",ae)},B=ae=>{var ge;_.value=!1,n("blur",ae),r.validateEvent&&((ge=c==null?void 0:c.validate)==null||ge.call(c,"blur").catch(Ce=>void 0))},K=ae=>{w.value=!1,n("mouseleave",ae)},ce=ae=>{w.value=!0,n("mouseenter",ae)},ie=ae=>{n("keydown",ae)},Z=()=>{var ae;(ae=I.value)==null||ae.select()},me=()=>{n(wt,""),n("change",""),n("clear"),n("input","")};return xe(()=>r.modelValue,()=>{var ae;Xe(()=>A()),r.validateEvent&&((ae=c==null?void 0:c.validate)==null||ae.call(c,"change").catch(ge=>void 0))}),xe(ne,()=>q()),xe(()=>r.type,async()=>{await Xe(),q(),A(),te()}),nt(async()=>{!r.formatter&&r.parser,q(),te(),await Xe(),A()}),ja(async()=>{await Xe(),te()}),t({input:y,textarea:b,ref:I,textareaStyle:V,autosize:On(r,"autosize"),focus:X,blur:Y,select:Z,clear:me,resizeTextarea:A}),(ae,ge)=>kt((z(),se("div",Tn(C(a),{class:[ae.type==="textarea"?C(m).b():C(g).b(),C(g).m(C(s)),C(g).is("disabled",C(h)),C(g).is("exceed",C(R)),{[C(g).b("group")]:ae.$slots.prepend||ae.$slots.append,[C(g).bm("group","append")]:ae.$slots.append,[C(g).bm("group","prepend")]:ae.$slots.prepend,[C(g).m("prefix")]:ae.$slots.prefix||ae.prefixIcon,[C(g).m("suffix")]:ae.$slots.suffix||ae.suffixIcon||ae.clearable||ae.showPassword,[C(g).bm("suffix","password-clear")]:C(J)&&C(le)},ae.$attrs.class],style:C(O),role:ae.containerRole,onMouseenter:ce,onMouseleave:K}),[ye(" input "),ae.type!=="textarea"?(z(),se(je,{key:0},[ye(" prepend slot "),ae.$slots.prepend?(z(),se("div",{key:0,class:de(C(g).be("group","prepend"))},[Te(ae.$slots,"prepend")],2)):ye("v-if",!0),re("div",{class:de([C(g).e("wrapper"),C(g).is("focus",_.value)])},[ye(" prefix slot "),ae.$slots.prefix||ae.prefixIcon?(z(),se("span",{key:0,class:de(C(g).e("prefix"))},[re("span",{class:de(C(g).e("prefix-inner"))},[Te(ae.$slots,"prefix"),ae.prefixIcon?(z(),be(C(Le),{key:0,class:de(C(g).e("icon"))},{default:he(()=>[(z(),be(Tt(ae.prefixIcon)))]),_:1},8,["class"])):ye("v-if",!0)],2)],2)):ye("v-if",!0),re("input",Tn({id:C(f),ref_key:"input",ref:y,class:C(g).e("inner")},C(u),{type:ae.showPassword?x.value?"text":"password":ae.type,disabled:C(h),formatter:ae.formatter,parser:ae.parser,readonly:ae.readonly,autocomplete:ae.autocomplete,tabindex:ae.tabindex,"aria-label":ae.label,placeholder:ae.placeholder,style:ae.inputStyle,onCompositionstart:ve,onCompositionupdate:H,onCompositionend:W,onInput:fe,onFocus:$,onBlur:B,onChange:pe,onKeydown:ie}),null,16,vL),ye(" suffix slot "),C(P)?(z(),se("span",{key:1,class:de(C(g).e("suffix"))},[re("span",{class:de(C(g).e("suffix-inner"))},[!C(J)||!C(le)||!C(M)?(z(),se(je,{key:0},[Te(ae.$slots,"suffix"),ae.suffixIcon?(z(),be(C(Le),{key:0,class:de(C(g).e("icon"))},{default:he(()=>[(z(),be(Tt(ae.suffixIcon)))]),_:1},8,["class"])):ye("v-if",!0)],64)):ye("v-if",!0),C(J)?(z(),be(C(Le),{key:1,class:de([C(g).e("icon"),C(g).e("clear")]),onMousedown:tt(C(ct),["prevent"]),onClick:me},{default:he(()=>[ue(C(zc))]),_:1},8,["class","onMousedown"])):ye("v-if",!0),C(le)?(z(),be(C(Le),{key:2,class:de([C(g).e("icon"),C(g).e("password")]),onClick:k},{default:he(()=>[(z(),be(Tt(C(F))))]),_:1},8,["class"])):ye("v-if",!0),C(M)?(z(),se("span",{key:3,class:de(C(g).e("count"))},[re("span",{class:de(C(g).e("count-inner"))},Ae(C(U))+" / "+Ae(C(u).maxlength),3)],2)):ye("v-if",!0),C(N)&&C(L)&&C(D)?(z(),be(C(Le),{key:4,class:de([C(g).e("icon"),C(g).e("validateIcon"),C(g).is("loading",C(N)==="validating")])},{default:he(()=>[(z(),be(Tt(C(L))))]),_:1},8,["class"])):ye("v-if",!0)],2)],2)):ye("v-if",!0)],2),ye(" append slot "),ae.$slots.append?(z(),se("div",{key:1,class:de(C(g).be("group","append"))},[Te(ae.$slots,"append")],2)):ye("v-if",!0)],64)):(z(),se(je,{key:1},[ye(" textarea "),re("textarea",Tn({id:C(f),ref_key:"textarea",ref:b,class:C(m).e("inner")},C(u),{tabindex:ae.tabindex,disabled:C(h),readonly:ae.readonly,autocomplete:ae.autocomplete,style:C(V),"aria-label":ae.label,placeholder:ae.placeholder,onCompositionstart:ve,onCompositionupdate:H,onCompositionend:W,onInput:fe,onFocus:$,onBlur:B,onChange:pe,onKeydown:ie}),null,16,yL),C(M)?(z(),se("span",{key:0,style:Ne(T.value),class:de(C(g).e("count"))},Ae(C(U))+" / "+Ae(C(u).maxlength),7)):ye("v-if",!0)],64))],16,gL)),[[Ht,ae.type!=="hidden"]])}});var wL=Re(_L,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input/src/input.vue"]]);const Wa=Et(wL),co=4,CL={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"}},SL=({move:e,size:t,bar:n})=>({[n.size]:t,transform:`translate${n.axis}(${e}%)`}),xL=Fe({vertical:Boolean,size:String,move:Number,ratio:{type:Number,required:!0},always:Boolean}),TL=Ee({__name:"thumb",props:xL,setup(e){const t=e,n="Thumb",r=qe(g1),i=Ie("scrollbar");r||bn(n,"can not inject scrollbar context");const l=oe(),v=oe(),o=oe({}),a=oe(!1);let u=!1,d=!1,c=dt?document.onselectstart:null;const f=ee(()=>CL[t.vertical?"vertical":"horizontal"]),s=ee(()=>SL({size:t.size,move:t.move,bar:f.value})),h=ee(()=>l.value[f.value.offset]**2/r.wrapElement[f.value.scrollSize]/t.ratio/v.value[f.value.offset]),g=T=>{var E;if(T.stopPropagation(),T.ctrlKey||[1,2].includes(T.button))return;(E=window.getSelection())==null||E.removeAllRanges(),y(T);const I=T.currentTarget;!I||(o.value[f.value.axis]=I[f.value.offset]-(T[f.value.client]-I.getBoundingClientRect()[f.value.direction]))},m=T=>{if(!v.value||!l.value||!r.wrapElement)return;const E=Math.abs(T.target.getBoundingClientRect()[f.value.direction]-T[f.value.client]),I=v.value[f.value.offset]/2,D=(E-I)*100*h.value/l.value[f.value.offset];r.wrapElement[f.value.scroll]=D*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||!v.value||u===!1)return;const E=o.value[f.value.axis];if(!E)return;const I=(l.value.getBoundingClientRect()[f.value.direction]-T[f.value.client])*-1,D=v.value[f.value.offset]-E,N=(I-D)*100*h.value/l.value[f.value.offset];r.wrapElement[f.value.scroll]=N*r.wrapElement[f.value.scrollSize]/100},_=()=>{u=!1,o.value[f.value.axis]=0,document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",_),x(),d&&(a.value=!1)},w=()=>{d=!1,a.value=!!t.size},S=()=>{d=!0,a.value=u};Yt(()=>{x(),document.removeEventListener("mouseup",_)});const x=()=>{document.onselectstart!==c&&(document.onselectstart=c)};return Ct(On(r,"scrollbarElement"),"mousemove",w),Ct(On(r,"scrollbarElement"),"mouseleave",S),(T,E)=>(z(),be(dn,{name:C(i).b("fade"),persisted:""},{default:he(()=>[kt(re("div",{ref_key:"instance",ref:l,class:de([C(i).e("bar"),C(i).is(C(f).key)]),onMousedown:m},[re("div",{ref_key:"thumb",ref:v,class:de(C(i).e("thumb")),style:Ne(C(s)),onMousedown:g},null,38)],34),[[Ht,T.always||a.value]])]),_:1},8,["name"]))}});var Iv=Re(TL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/thumb.vue"]]);const kL=Fe({always:{type:Boolean,default:!0},width:String,height:String,ratioX:{type:Number,default:1},ratioY:{type:Number,default:1}}),EL=Ee({__name:"bar",props:kL,setup(e,{expose:t}){const n=e,r=oe(0),i=oe(0);return t({handleScroll:v=>{if(v){const o=v.offsetHeight-co,a=v.offsetWidth-co;i.value=v.scrollTop*100/o*n.ratioY,r.value=v.scrollLeft*100/a*n.ratioX}}}),(v,o)=>(z(),se(je,null,[ue(Iv,{move:r.value,ratio:v.ratioX,size:v.width,always:v.always},null,8,["move","ratio","size","always"]),ue(Iv,{move:i.value,ratio:v.ratioY,size:v.height,vertical:"",always:v.always},null,8,["move","ratio","size","always"])],64))}});var OL=Re(EL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/bar.vue"]]);const AL=Fe({height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:Boolean,wrapStyle:{type:Pe([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}}),PL={scroll:({scrollTop:e,scrollLeft:t})=>[e,t].every(ft)},IL={name:"ElScrollbar"},ML=Ee({...IL,props:AL,emits:PL,setup(e,{expose:t,emit:n}){const r=e,i=Ie("scrollbar");let l,v;const o=oe(),a=oe(),u=oe(),d=oe("0"),c=oe("0"),f=oe(),s=oe(1),h=oe(1),g=ee(()=>{const S={};return r.height&&(S.height=Ar(r.height)),r.maxHeight&&(S.maxHeight=Ar(r.maxHeight)),[r.wrapStyle,S]}),m=()=>{var S;a.value&&((S=f.value)==null||S.handleScroll(a.value),n("scroll",{scrollTop:a.value.scrollTop,scrollLeft:a.value.scrollLeft}))};function y(S,x){ot(S)?a.value.scrollTo(S):ft(S)&&ft(x)&&a.value.scrollTo(S,x)}const b=S=>{!ft(S)||(a.value.scrollTop=S)},_=S=>{!ft(S)||(a.value.scrollLeft=S)},w=()=>{if(!a.value)return;const S=a.value.offsetHeight-co,x=a.value.offsetWidth-co,T=S**2/a.value.scrollHeight,E=x**2/a.value.scrollWidth,I=Math.max(T,r.minSize),D=Math.max(E,r.minSize);s.value=T/(S-T)/(I/(S-I)),h.value=E/(x-E)/(D/(x-D)),c.value=I+co<S?`${I}px`:"",d.value=D+co<x?`${D}px`:""};return xe(()=>r.noresize,S=>{S?(l==null||l(),v==null||v()):({stop:l}=Ir(u,w),v=Ct("resize",w))},{immediate:!0}),xe(()=>[r.maxHeight,r.height],()=>{r.native||Xe(()=>{var S;w(),a.value&&((S=f.value)==null||S.handleScroll(a.value))})}),gt(g1,vt({scrollbarElement:o,wrapElement:a})),nt(()=>{r.native||Xe(()=>{w()})}),ja(()=>w()),t({wrap$:a,update:w,scrollTo:y,setScrollTop:b,setScrollLeft:_,handleScroll:m}),(S,x)=>(z(),se("div",{ref_key:"scrollbar$",ref:o,class:de(C(i).b())},[re("div",{ref_key:"wrap$",ref:a,class:de([S.wrapClass,C(i).e("wrap"),{[C(i).em("wrap","hidden-default")]:!S.native}]),style:Ne(C(g)),onScroll:m},[(z(),be(Tt(S.tag),{ref_key:"resize$",ref:u,class:de([C(i).e("view"),S.viewClass]),style:Ne(S.viewStyle)},{default:he(()=>[Te(S.$slots,"default")]),_:3},8,["class","style"]))],38),S.native?ye("v-if",!0):(z(),be(OL,{key:0,ref_key:"barRef",ref:f,height:c.value,width:d.value,always:S.always,"ratio-x":h.value,"ratio-y":s.value},null,8,["height","width","always","ratio-x","ratio-y"]))],2))}});var LL=Re(ML,[["__file","/home/runner/work/element-plus/element-plus/packages/components/scrollbar/src/scrollbar.vue"]]);const k1=Et(LL),RL={LIGHT:"light",DARK:"dark"},DL=["dialog","grid","listbox","menu","tooltip","tree"],E1=Fe({role:{type:String,values:DL,default:"tooltip"}}),$L={name:"ElPopperRoot",inheritAttrs:!1},BL=Ee({...$L,props:E1,setup(e,{expose:t}){const n=e,r=oe(),i=oe(),l=oe(),v=oe(),o=ee(()=>n.role),a={triggerRef:r,popperInstanceRef:i,contentRef:l,referenceRef:v,role:o};return t(a),gt(Tp,a),(u,d)=>Te(u.$slots,"default")}});var FL=Re(BL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/popper.vue"]]);const O1=Fe({arrowOffset:{type:Number,default:5}}),zL={name:"ElPopperArrow",inheritAttrs:!1},NL=Ee({...zL,props:O1,setup(e,{expose:t}){const n=e,r=Ie("popper"),{arrowOffset:i,arrowRef:l}=qe(b1,void 0);return xe(()=>n.arrowOffset,v=>{i.value=v}),Yt(()=>{l.value=void 0}),t({arrowRef:l}),(v,o)=>(z(),se("span",{ref_key:"arrowRef",ref:l,class:de(C(r).e("arrow")),"data-popper-arrow":""},null,2))}});var jL=Re(NL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/arrow.vue"]]);const VL="ElOnlyChild",UL=Ee({name:VL,setup(e,{slots:t,attrs:n}){var r;const i=qe(T1),l=aL((r=i==null?void 0:i.setForwardRef)!=null?r:ct);return()=>{var v;const o=(v=t.default)==null?void 0:v.call(t,n);if(!o||o.length>1)return null;const a=A1(o);return a?kt(Qr(a,n),[[l]]):null}}});function A1(e){if(!e)return null;const t=e;for(const n of t){if(ot(n))switch(n.type){case Bn:continue;case Cl:case"svg":return Mv(n);case je:return A1(n.children);default:return n}return Mv(n)}return null}function Mv(e){const t=Ie("only-child");return ue("span",{class:t.e("content")},[e])}const P1=Fe({virtualRef:{type:Pe(Object)},virtualTriggering:Boolean,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,onBlur:Function,onContextmenu:Function,id:String,open:Boolean}),HL={name:"ElPopperTrigger",inheritAttrs:!1},WL=Ee({...HL,props:P1,setup(e,{expose:t}){const n=e,{role:r,triggerRef:i}=qe(Tp,void 0);iL(i);const l=ee(()=>o.value?n.id:void 0),v=ee(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),o=ee(()=>{if(r&&r.value!=="tooltip")return r.value}),a=ee(()=>o.value?`${n.open}`:void 0);let u;return nt(()=>{xe(()=>n.virtualRef,d=>{d&&(i.value=ir(d))},{immediate:!0}),xe(()=>i.value,(d,c)=>{u==null||u(),u=void 0,Oa(d)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(f=>{var s;const h=n[f];h&&(d.addEventListener(f.slice(2).toLowerCase(),h),(s=c==null?void 0:c.removeEventListener)==null||s.call(c,f.slice(2).toLowerCase(),h))}),u=xe([l,v,o,a],f=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((s,h)=>{Sr(f[h])?d.removeAttribute(s):d.setAttribute(s,f[h])})},{immediate:!0})),Oa(c)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(f=>c.removeAttribute(f))},{immediate:!0})}),Yt(()=>{u==null||u(),u=void 0}),t({triggerRef:i}),(d,c)=>d.virtualTriggering?ye("v-if",!0):(z(),be(C(UL),Tn({key:0},d.$attrs,{"aria-controls":C(l),"aria-describedby":C(v),"aria-expanded":C(a),"aria-haspopup":C(o)}),{default:he(()=>[Te(d.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var YL=Re(WL,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/trigger.vue"]]),kn="top",Kn="bottom",Gn="right",En="left",Ep="auto",Ol=[kn,Kn,Gn,En],Eo="start",Js="end",XL="clippingParents",I1="viewport",is="popper",KL="reference",Lv=Ol.reduce(function(e,t){return e.concat([t+"-"+Eo,t+"-"+Js])},[]),jo=[].concat(Ol,[Ep]).reduce(function(e,t){return e.concat([t,t+"-"+Eo,t+"-"+Js])},[]),GL="beforeRead",qL="read",ZL="afterRead",JL="beforeMain",QL="main",eR="afterMain",tR="beforeWrite",nR="write",rR="afterWrite",iR=[GL,qL,ZL,JL,QL,eR,tR,nR,rR];function Pr(e){return e?(e.nodeName||"").toLowerCase():null}function hr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Oo(e){var t=hr(e).Element;return e instanceof t||e instanceof Element}function Yn(e){var t=hr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Op(e){if(typeof ShadowRoot>"u")return!1;var t=hr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function aR(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];!Yn(l)||!Pr(l)||(Object.assign(l.style,r),Object.keys(i).forEach(function(v){var o=i[v];o===!1?l.removeAttribute(v):l.setAttribute(v,o===!0?"":o)}))})}function oR(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]||{},v=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=v.reduce(function(a,u){return a[u]="",a},{});!Yn(i)||!Pr(i)||(Object.assign(i.style,o),Object.keys(l).forEach(function(a){i.removeAttribute(a)}))})}}var M1={name:"applyStyles",enabled:!0,phase:"write",fn:aR,effect:oR,requires:["computeStyles"]};function xr(e){return e.split("-")[0]}var Sa=Math.max,lc=Math.min,Ao=Math.round;function Po(e,t){t===void 0&&(t=!1);var n=e.getBoundingClientRect(),r=1,i=1;if(Yn(e)&&t){var l=e.offsetHeight,v=e.offsetWidth;v>0&&(r=Ao(n.width)/v||1),l>0&&(i=Ao(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 Ap(e){var t=Po(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 L1(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Op(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ni(e){return hr(e).getComputedStyle(e)}function sR(e){return["table","td","th"].indexOf(Pr(e))>=0}function Ki(e){return((Oo(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gc(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(Op(e)?e.host:null)||Ki(e)}function Rv(e){return!Yn(e)||ni(e).position==="fixed"?null:e.offsetParent}function lR(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Yn(e)){var r=ni(e);if(r.position==="fixed")return null}var i=Gc(e);for(Op(i)&&(i=i.host);Yn(i)&&["html","body"].indexOf(Pr(i))<0;){var l=ni(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 Al(e){for(var t=hr(e),n=Rv(e);n&&sR(n)&&ni(n).position==="static";)n=Rv(n);return n&&(Pr(n)==="html"||Pr(n)==="body"&&ni(n).position==="static")?t:n||lR(e)||t}function Pp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xs(e,t,n){return Sa(e,lc(t,n))}function uR(e,t,n){var r=xs(e,t,n);return r>n?n:r}function R1(){return{top:0,right:0,bottom:0,left:0}}function D1(e){return Object.assign({},R1(),e)}function $1(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var cR=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,D1(typeof e!="number"?e:$1(e,Ol))};function fR(e){var t,n=e.state,r=e.name,i=e.options,l=n.elements.arrow,v=n.modifiersData.popperOffsets,o=xr(n.placement),a=Pp(o),u=[En,Gn].indexOf(o)>=0,d=u?"height":"width";if(!(!l||!v)){var c=cR(i.padding,n),f=Ap(l),s=a==="y"?kn:En,h=a==="y"?Kn:Gn,g=n.rects.reference[d]+n.rects.reference[a]-v[a]-n.rects.popper[d],m=v[a]-n.rects.reference[a],y=Al(l),b=y?a==="y"?y.clientHeight||0:y.clientWidth||0:0,_=g/2-m/2,w=c[s],S=b-f[d]-c[h],x=b/2-f[d]/2+_,T=xs(w,x,S),E=a;n.modifiersData[r]=(t={},t[E]=T,t.centerOffset=T-x,t)}}function dR(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)||!L1(t.elements.popper,i)||(t.elements.arrow=i))}var hR={name:"arrow",enabled:!0,phase:"main",fn:fR,effect:dR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Io(e){return e.split("-")[1]}var pR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mR(e){var t=e.x,n=e.y,r=window,i=r.devicePixelRatio||1;return{x:Ao(t*i)/i||0,y:Ao(n*i)/i||0}}function Dv(e){var t,n=e.popper,r=e.popperRect,i=e.placement,l=e.variation,v=e.offsets,o=e.position,a=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,c=e.isFixed,f=v.x,s=f===void 0?0:f,h=v.y,g=h===void 0?0:h,m=typeof d=="function"?d({x:s,y:g}):{x:s,y:g};s=m.x,g=m.y;var y=v.hasOwnProperty("x"),b=v.hasOwnProperty("y"),_=En,w=kn,S=window;if(u){var x=Al(n),T="clientHeight",E="clientWidth";if(x===hr(n)&&(x=Ki(n),ni(x).position!=="static"&&o==="absolute"&&(T="scrollHeight",E="scrollWidth")),x=x,i===kn||(i===En||i===Gn)&&l===Js){w=Kn;var I=c&&x===S&&S.visualViewport?S.visualViewport.height:x[T];g-=I-r.height,g*=a?1:-1}if(i===En||(i===kn||i===Kn)&&l===Js){_=Gn;var D=c&&x===S&&S.visualViewport?S.visualViewport.width:x[E];s-=D-r.width,s*=a?1:-1}}var N=Object.assign({position:o},u&&pR),L=d===!0?mR({x:s,y:g}):{x:s,y:g};if(s=L.x,g=L.y,a){var F;return Object.assign({},N,(F={},F[w]=b?"0":"",F[_]=y?"0":"",F.transform=(S.devicePixelRatio||1)<=1?"translate("+s+"px, "+g+"px)":"translate3d("+s+"px, "+g+"px, 0)",F))}return Object.assign({},N,(t={},t[w]=b?g+"px":"",t[_]=y?s+"px":"",t.transform="",t))}function gR(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,l=n.adaptive,v=l===void 0?!0:l,o=n.roundOffsets,a=o===void 0?!0:o,u={placement:xr(t.placement),variation:Io(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,Dv(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:v,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Dv(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var B1={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gR,data:{}},Ql={passive:!0};function vR(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,l=i===void 0?!0:i,v=r.resize,o=v===void 0?!0:v,a=hr(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&u.forEach(function(d){d.addEventListener("scroll",n.update,Ql)}),o&&a.addEventListener("resize",n.update,Ql),function(){l&&u.forEach(function(d){d.removeEventListener("scroll",n.update,Ql)}),o&&a.removeEventListener("resize",n.update,Ql)}}var F1={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vR,data:{}},yR={left:"right",right:"left",bottom:"top",top:"bottom"};function Iu(e){return e.replace(/left|right|bottom|top/g,function(t){return yR[t]})}var bR={start:"end",end:"start"};function $v(e){return e.replace(/start|end/g,function(t){return bR[t]})}function Ip(e){var t=hr(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Mp(e){return Po(Ki(e)).left+Ip(e).scrollLeft}function _R(e){var t=hr(e),n=Ki(e),r=t.visualViewport,i=n.clientWidth,l=n.clientHeight,v=0,o=0;return r&&(i=r.width,l=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(v=r.offsetLeft,o=r.offsetTop)),{width:i,height:l,x:v+Mp(e),y:o}}function wR(e){var t,n=Ki(e),r=Ip(e),i=(t=e.ownerDocument)==null?void 0:t.body,l=Sa(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),v=Sa(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+Mp(e),a=-r.scrollTop;return ni(i||n).direction==="rtl"&&(o+=Sa(n.clientWidth,i?i.clientWidth:0)-l),{width:l,height:v,x:o,y:a}}function Lp(e){var t=ni(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function z1(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:Yn(e)&&Lp(e)?e:z1(Gc(e))}function Ts(e,t){var n;t===void 0&&(t=[]);var r=z1(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),l=hr(r),v=i?[l].concat(l.visualViewport||[],Lp(r)?r:[]):r,o=t.concat(v);return i?o:o.concat(Ts(Gc(v)))}function Bd(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function CR(e){var t=Po(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 Bv(e,t){return t===I1?Bd(_R(e)):Oo(t)?CR(t):Bd(wR(Ki(e)))}function SR(e){var t=Ts(Gc(e)),n=["absolute","fixed"].indexOf(ni(e).position)>=0,r=n&&Yn(e)?Al(e):e;return Oo(r)?t.filter(function(i){return Oo(i)&&L1(i,r)&&Pr(i)!=="body"}):[]}function xR(e,t,n){var r=t==="clippingParents"?SR(e):[].concat(t),i=[].concat(r,[n]),l=i[0],v=i.reduce(function(o,a){var u=Bv(e,a);return o.top=Sa(u.top,o.top),o.right=lc(u.right,o.right),o.bottom=lc(u.bottom,o.bottom),o.left=Sa(u.left,o.left),o},Bv(e,l));return v.width=v.right-v.left,v.height=v.bottom-v.top,v.x=v.left,v.y=v.top,v}function N1(e){var t=e.reference,n=e.element,r=e.placement,i=r?xr(r):null,l=r?Io(r):null,v=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,a;switch(i){case kn:a={x:v,y:t.y-n.height};break;case Kn:a={x:v,y:t.y+t.height};break;case Gn:a={x:t.x+t.width,y:o};break;case En:a={x:t.x-n.width,y:o};break;default:a={x:t.x,y:t.y}}var u=i?Pp(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(l){case Eo:a[u]=a[u]-(t[d]/2-n[d]/2);break;case Js:a[u]=a[u]+(t[d]/2-n[d]/2);break}}return a}function Qs(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,l=n.boundary,v=l===void 0?XL:l,o=n.rootBoundary,a=o===void 0?I1:o,u=n.elementContext,d=u===void 0?is:u,c=n.altBoundary,f=c===void 0?!1:c,s=n.padding,h=s===void 0?0:s,g=D1(typeof h!="number"?h:$1(h,Ol)),m=d===is?KL:is,y=e.rects.popper,b=e.elements[f?m:d],_=xR(Oo(b)?b:b.contextElement||Ki(e.elements.popper),v,a),w=Po(e.elements.reference),S=N1({reference:w,element:y,strategy:"absolute",placement:i}),x=Bd(Object.assign({},y,S)),T=d===is?x:w,E={top:_.top-T.top+g.top,bottom:T.bottom-_.bottom+g.bottom,left:_.left-T.left+g.left,right:T.right-_.right+g.right},I=e.modifiersData.offset;if(d===is&&I){var D=I[i];Object.keys(E).forEach(function(N){var L=[Gn,Kn].indexOf(N)>=0?1:-1,F=[kn,Kn].indexOf(N)>=0?"y":"x";E[N]+=D[F]*L})}return E}function TR(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,l=n.rootBoundary,v=n.padding,o=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?jo:a,d=Io(r),c=d?o?Lv:Lv.filter(function(h){return Io(h)===d}):Ol,f=c.filter(function(h){return u.indexOf(h)>=0});f.length===0&&(f=c);var s=f.reduce(function(h,g){return h[g]=Qs(e,{placement:g,boundary:i,rootBoundary:l,padding:v})[xr(g)],h},{});return Object.keys(s).sort(function(h,g){return s[h]-s[g]})}function kR(e){if(xr(e)===Ep)return[];var t=Iu(e);return[$v(e),t,$v(t)]}function ER(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,v=n.altAxis,o=v===void 0?!0:v,a=n.fallbackPlacements,u=n.padding,d=n.boundary,c=n.rootBoundary,f=n.altBoundary,s=n.flipVariations,h=s===void 0?!0:s,g=n.allowedAutoPlacements,m=t.options.placement,y=xr(m),b=y===m,_=a||(b||!h?[Iu(m)]:kR(m)),w=[m].concat(_).reduce(function(j,A){return j.concat(xr(A)===Ep?TR(t,{placement:A,boundary:d,rootBoundary:c,padding:u,flipVariations:h,allowedAutoPlacements:g}):A)},[]),S=t.rects.reference,x=t.rects.popper,T=new Map,E=!0,I=w[0],D=0;D<w.length;D++){var N=w[D],L=xr(N),F=Io(N)===Eo,O=[kn,Kn].indexOf(L)>=0,V=O?"width":"height",ne=Qs(t,{placement:N,boundary:d,rootBoundary:c,altBoundary:f,padding:u}),J=O?F?Gn:En:F?Kn:kn;S[V]>x[V]&&(J=Iu(J));var le=Iu(J),M=[];if(l&&M.push(ne[L]<=0),o&&M.push(ne[J]<=0,ne[le]<=0),M.every(function(j){return j})){I=N,E=!1;break}T.set(N,M)}if(E)for(var U=h?3:1,R=function(j){var A=w.find(function(q){var G=T.get(q);if(G)return G.slice(0,j).every(function(te){return te})});if(A)return I=A,"break"},P=U;P>0;P--){var Q=R(P);if(Q==="break")break}t.placement!==I&&(t.modifiersData[r]._skip=!0,t.placement=I,t.reset=!0)}}var OR={name:"flip",enabled:!0,phase:"main",fn:ER,requiresIfExists:["offset"],data:{_skip:!1}};function Fv(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 zv(e){return[kn,Gn,Kn,En].some(function(t){return e[t]>=0})}function AR(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,l=t.modifiersData.preventOverflow,v=Qs(t,{elementContext:"reference"}),o=Qs(t,{altBoundary:!0}),a=Fv(v,r),u=Fv(o,i,l),d=zv(a),c=zv(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":c})}var PR={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:AR};function IR(e,t,n){var r=xr(e),i=[En,kn].indexOf(r)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,v=l[0],o=l[1];return v=v||0,o=(o||0)*i,[En,Gn].indexOf(r)>=0?{x:o,y:v}:{x:v,y:o}}function MR(e){var t=e.state,n=e.options,r=e.name,i=n.offset,l=i===void 0?[0,0]:i,v=jo.reduce(function(d,c){return d[c]=IR(c,t.rects,l),d},{}),o=v[t.placement],a=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=v}var LR={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:MR};function RR(e){var t=e.state,n=e.name;t.modifiersData[n]=N1({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var j1={name:"popperOffsets",enabled:!0,phase:"read",fn:RR,data:{}};function DR(e){return e==="x"?"y":"x"}function $R(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,l=i===void 0?!0:i,v=n.altAxis,o=v===void 0?!1:v,a=n.boundary,u=n.rootBoundary,d=n.altBoundary,c=n.padding,f=n.tether,s=f===void 0?!0:f,h=n.tetherOffset,g=h===void 0?0:h,m=Qs(t,{boundary:a,rootBoundary:u,padding:c,altBoundary:d}),y=xr(t.placement),b=Io(t.placement),_=!b,w=Pp(y),S=DR(w),x=t.modifiersData.popperOffsets,T=t.rects.reference,E=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,D=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(x){if(l){var F,O=w==="y"?kn:En,V=w==="y"?Kn:Gn,ne=w==="y"?"height":"width",J=x[w],le=J+m[O],M=J-m[V],U=s?-E[ne]/2:0,R=b===Eo?T[ne]:E[ne],P=b===Eo?-E[ne]:-T[ne],Q=t.elements.arrow,j=s&&Q?Ap(Q):{width:0,height:0},A=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:R1(),q=A[O],G=A[V],te=xs(0,T[ne],j[ne]),fe=_?T[ne]/2-U-te-q-D.mainAxis:R-te-q-D.mainAxis,pe=_?-T[ne]/2+U+te+G+D.mainAxis:P+te+G+D.mainAxis,ve=t.elements.arrow&&Al(t.elements.arrow),H=ve?w==="y"?ve.clientTop||0:ve.clientLeft||0:0,W=(F=N==null?void 0:N[w])!=null?F:0,k=J+fe-W-H,X=J+pe-W,Y=xs(s?lc(le,k):le,J,s?Sa(M,X):M);x[w]=Y,L[w]=Y-J}if(o){var $,B=w==="x"?kn:En,K=w==="x"?Kn:Gn,ce=x[S],ie=S==="y"?"height":"width",Z=ce+m[B],me=ce-m[K],ae=[kn,En].indexOf(y)!==-1,ge=($=N==null?void 0:N[S])!=null?$:0,Ce=ae?Z:ce-T[ie]-E[ie]-ge+D.altAxis,ke=ae?ce+T[ie]+E[ie]-ge-D.altAxis:me,Oe=s&&ae?uR(Ce,ce,ke):xs(s?Ce:Z,ce,s?ke:me);x[S]=Oe,L[S]=Oe-ce}t.modifiersData[r]=L}}var BR={name:"preventOverflow",enabled:!0,phase:"main",fn:$R,requiresIfExists:["offset"]};function FR(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zR(e){return e===hr(e)||!Yn(e)?Ip(e):FR(e)}function NR(e){var t=e.getBoundingClientRect(),n=Ao(t.width)/e.offsetWidth||1,r=Ao(t.height)/e.offsetHeight||1;return n!==1||r!==1}function jR(e,t,n){n===void 0&&(n=!1);var r=Yn(t),i=Yn(t)&&NR(t),l=Ki(t),v=Po(e,i),o={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(r||!r&&!n)&&((Pr(t)!=="body"||Lp(l))&&(o=zR(t)),Yn(t)?(a=Po(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):l&&(a.x=Mp(l))),{x:v.left+o.scrollLeft-a.x,y:v.top+o.scrollTop-a.y,width:v.width,height:v.height}}function VR(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 v=[].concat(l.requires||[],l.requiresIfExists||[]);v.forEach(function(o){if(!n.has(o)){var a=t.get(o);a&&i(a)}}),r.push(l)}return e.forEach(function(l){n.has(l.name)||i(l)}),r}function UR(e){var t=VR(e);return iR.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function HR(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function WR(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 Nv={placement:"bottom",modifiers:[],strategy:"absolute"};function jv(){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 Rp(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,l=i===void 0?Nv:i;return function(v,o,a){a===void 0&&(a=l);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Nv,l),modifiersData:{},elements:{reference:v,popper:o},attributes:{},styles:{}},d=[],c=!1,f={state:u,setOptions:function(g){var m=typeof g=="function"?g(u.options):g;h(),u.options=Object.assign({},l,u.options,m),u.scrollParents={reference:Oo(v)?Ts(v):v.contextElement?Ts(v.contextElement):[],popper:Ts(o)};var y=UR(WR([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),s(),f.update()},forceUpdate:function(){if(!c){var g=u.elements,m=g.reference,y=g.popper;if(jv(m,y)){u.rects={reference:jR(m,Al(y),u.options.strategy==="fixed"),popper:Ap(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.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:HR(function(){return new Promise(function(g){f.forceUpdate(),g(u)})}),destroy:function(){h(),c=!0}};if(!jv(v,o))return f;f.setOptions(a).then(function(g){!c&&a.onFirstUpdate&&a.onFirstUpdate(g)});function s(){u.orderedModifiers.forEach(function(g){var m=g.name,y=g.options,b=y===void 0?{}:y,_=g.effect;if(typeof _=="function"){var w=_({state:u,name:m,instance:f,options:b}),S=function(){};d.push(w||S)}})}function h(){d.forEach(function(g){return g()}),d=[]}return f}}Rp();var YR=[F1,j1,B1,M1];Rp({defaultModifiers:YR});var XR=[F1,j1,B1,M1,LR,OR,BR,hR,PR],KR=Rp({defaultModifiers:XR});const V1=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},Vv=(e,t)=>{for(const n of e)if(!GR(n,t))return n},GR=(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},qR=e=>{const t=V1(e),n=Vv(t,e),r=Vv(t.reverse(),e);return[n,r]},ZR=e=>e instanceof HTMLInputElement&&"select"in e,_i=(e,t)=>{if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&ZR(e)&&t&&e.select()}};function Uv(e,t){const n=[...e],r=e.indexOf(t);return r!==-1&&n.splice(r,1),n}const JR=()=>{let e=[];return{push:r=>{const i=e[0];i&&r!==i&&i.pause(),e=Uv(e,r),e.unshift(r)},remove:r=>{var i,l;e=Uv(e,r),(l=(i=e[0])==null?void 0:i.resume)==null||l.call(i)}}},QR=(e,t=!1)=>{const n=document.activeElement;for(const r of e)if(_i(r,t),document.activeElement!==n)return},Hv=JR(),_f="focus-trap.focus-after-trapped",wf="focus-trap.focus-after-released",Wv={cancelable:!0,bubbles:!1},Yv="focusAfterTrapped",Xv="focusAfterReleased",U1=Symbol("elFocusTrap"),eD=Ee({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Yv,Xv,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const n=oe();let r,i;JM(s=>{e.trapped&&!l.paused&&t("release-requested",s)});const l={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},v=s=>{if(!e.loop&&!e.trapped||l.paused)return;const{key:h,altKey:g,ctrlKey:m,metaKey:y,currentTarget:b,shiftKey:_}=s,{loop:w}=e,S=h===Ot.tab&&!g&&!m&&!y,x=document.activeElement;if(S&&x){const T=b,[E,I]=qR(T);E&&I?!_&&x===I?(s.preventDefault(),w&&_i(E,!0),t("focusout-prevented")):_&&[E,T].includes(x)&&(s.preventDefault(),w&&_i(I,!0),t("focusout-prevented")):x===T&&(s.preventDefault(),t("focusout-prevented"))}};gt(U1,{focusTrapRef:n,onKeydown:v}),xe(()=>e.focusTrapEl,s=>{s&&(n.value=s)},{immediate:!0}),xe([n],([s],[h])=>{s&&(s.addEventListener("keydown",v),s.addEventListener("focusin",u),s.addEventListener("focusout",d)),h&&(h.removeEventListener("keydown",v),h.removeEventListener("focusin",u),h.removeEventListener("focusout",d))});const o=s=>{t(Yv,s)},a=s=>t(Xv,s),u=s=>{const h=C(n);if(!h)return;const g=s.target,m=g&&h.contains(g);m&&t("focusin",s),!l.paused&&e.trapped&&(m?i=g:_i(i,!0))},d=s=>{const h=C(n);if(!(l.paused||!h))if(e.trapped){const g=s.relatedTarget;!Sr(g)&&!h.contains(g)&&setTimeout(()=>{!l.paused&&e.trapped&&_i(i,!0)},0)}else{const g=s.target;g&&h.contains(g)||t("focusout",s)}};async function c(){await Xe();const s=C(n);if(s){Hv.push(l);const h=document.activeElement;if(r=h,!s.contains(h)){const m=new Event(_f,Wv);s.addEventListener(_f,o),s.dispatchEvent(m),m.defaultPrevented||Xe(()=>{let y=e.focusStartEl;Ge(y)||(_i(y),document.activeElement!==y&&(y="first")),y==="first"&&QR(V1(s),!0),(document.activeElement===h||y==="container")&&_i(s)})}}}function f(){const s=C(n);if(s){s.removeEventListener(_f,o);const h=new Event(wf,Wv);s.addEventListener(wf,a),s.dispatchEvent(h),h.defaultPrevented||_i(r!=null?r:document.body,!0),s.removeEventListener(wf,o),Hv.remove(l)}}return nt(()=>{e.trapped&&c(),xe(()=>e.trapped,s=>{s?c():f()})}),Yt(()=>{e.trapped&&f()}),{onKeydown:v}}});function tD(e,t,n,r,i,l){return Te(e.$slots,"default",{handleKeydown:e.onKeydown})}var Dp=Re(eD,[["render",tD],["__file","/home/runner/work/element-plus/element-plus/packages/components/focus-trap/src/focus-trap.vue"]]);const nD=["fixed","absolute"],rD=Fe({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Pe(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:jo,default:"bottom"},popperOptions:{type:Pe(Object),default:()=>({})},strategy:{type:String,values:nD,default:"absolute"}}),H1=Fe({...rD,id:String,style:{type:Pe([String,Array,Object])},className:{type:Pe([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:Pe([String,Array,Object])},popperStyle:{type:Pe([String,Array,Object])},referenceEl:{type:Pe(Object)},triggerTargetEl:{type:Pe(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},ariaLabel:{type:String,default:void 0},virtualTriggering:Boolean,zIndex:Number}),iD=["mouseenter","mouseleave","focus","blur","close"],Kv=(e,t)=>{const{placement:n,strategy:r,popperOptions:i}=e,l={placement:n,strategy:r,...i,modifiers:oD(e)};return sD(l,t),lD(l,i==null?void 0:i.modifiers),l},aD=e=>{if(!!dt)return ir(e)};function oD(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 sD(e,{arrowEl:t,arrowOffset:n}){e.modifiers.push({name:"arrow",options:{element:t,padding:n!=null?n:5}})}function lD(e,t){t&&(e.modifiers=[...e.modifiers,...t!=null?t:[]])}const uD={name:"ElPopperContent"},cD=Ee({...uD,props:H1,emits:iD,setup(e,{expose:t,emit:n}){const r=e,{popperInstanceRef:i,contentRef:l,triggerRef:v,role:o}=qe(Tp,void 0),a=qe(Pa,void 0),{nextZIndex:u}=El(),d=Ie("popper"),c=oe(),f=oe("first"),s=oe(),h=oe();gt(b1,{arrowRef:s,arrowOffset:h}),a&&(a.addInputId||a.removeInputId)&&gt(Pa,{...a,addInputId:ct,removeInputId:ct});const g=oe(r.zIndex||u()),m=oe(!1);let y;const b=ee(()=>aD(r.referenceEl)||C(v)),_=ee(()=>[{zIndex:C(g)},r.popperStyle]),w=ee(()=>[d.b(),d.is("pure",r.pure),d.is(r.effect),r.popperClass]),S=ee(()=>o&&o.value==="dialog"?"false":void 0),x=({referenceEl:O,popperContentEl:V,arrowEl:ne})=>{const J=Kv(r,{arrowEl:ne,arrowOffset:C(h)});return KR(O,V,J)},T=(O=!0)=>{var V;(V=C(i))==null||V.update(),O&&(g.value=r.zIndex||u())},E=()=>{var O,V;const ne={name:"eventListeners",enabled:r.visible};(V=(O=C(i))==null?void 0:O.setOptions)==null||V.call(O,J=>({...J,modifiers:[...J.modifiers||[],ne]})),T(!1),r.visible&&r.focusOnShow?m.value=!0:r.visible===!1&&(m.value=!1)},I=()=>{n("focus")},D=()=>{f.value="first",n("blur")},N=O=>{var V;r.visible&&!m.value&&(O.target&&(f.value=O.target),m.value=!0,O.relatedTarget&&((V=O.relatedTarget)==null||V.focus()))},L=()=>{r.trapping||(m.value=!1)},F=()=>{m.value=!1,n("close")};return nt(()=>{let O;xe(b,V=>{var ne;O==null||O();const J=C(i);if((ne=J==null?void 0:J.destroy)==null||ne.call(J),V){const le=C(c);l.value=le,i.value=x({referenceEl:V,popperContentEl:le,arrowEl:C(s)}),O=xe(()=>V.getBoundingClientRect(),()=>T(),{immediate:!0})}else i.value=void 0},{immediate:!0}),xe(()=>r.triggerTargetEl,(V,ne)=>{y==null||y(),y=void 0;const J=C(V||c.value),le=C(ne||c.value);if(Oa(J)){const{ariaLabel:M,id:U}=Xn(r);y=xe([o,M,S,U],R=>{["role","aria-label","aria-modal","id"].forEach((P,Q)=>{Sr(R[Q])?J.removeAttribute(P):J.setAttribute(P,R[Q])})},{immediate:!0})}le!==J&&Oa(le)&&["role","aria-label","aria-modal","id"].forEach(M=>{le.removeAttribute(M)})},{immediate:!0}),xe(()=>r.visible,E,{immediate:!0}),xe(()=>Kv(r,{arrowEl:C(s),arrowOffset:C(h)}),V=>{var ne;return(ne=i.value)==null?void 0:ne.setOptions(V)})}),Yt(()=>{y==null||y(),y=void 0}),t({popperContentRef:c,popperInstanceRef:i,updatePopper:T,contentStyle:_}),(O,V)=>(z(),se("div",{ref_key:"popperContentRef",ref:c,style:Ne(C(_)),class:de(C(w)),tabindex:"-1",onMouseenter:V[0]||(V[0]=ne=>O.$emit("mouseenter",ne)),onMouseleave:V[1]||(V[1]=ne=>O.$emit("mouseleave",ne))},[ue(C(Dp),{trapped:m.value,"trap-on-focus-in":!0,"focus-trap-el":c.value,"focus-start-el":f.value,onFocusAfterTrapped:I,onFocusAfterReleased:D,onFocusin:N,onFocusoutPrevented:L,onReleaseRequested:F},{default:he(()=>[Te(O.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el"])],38))}});var fD=Re(cD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popper/src/content.vue"]]);const dD=Et(FL),hD=Ie("tooltip"),Vn=Fe({...nL,...H1,appendTo:{type:Pe([String,Object]),default:x1},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,ariaLabel:String,visible:{type:Pe(Boolean),default:null},transition:{type:String,default:`${hD.namespace.value}-fade-in-linear`},teleported:{type:Boolean,default:!0},disabled:{type:Boolean}}),el=Fe({...P1,disabled:Boolean,trigger:{type:Pe([String,Array]),default:"hover"},triggerKeys:{type:Pe(Array),default:()=>[Ot.enter,Ot.space]}}),pD=Fe({openDelay:{type:Number},visibleArrow:{type:Boolean,default:void 0},hideAfter:{type:Number,default:200},showArrow:{type:Boolean,default:!0}}),$p=Symbol("elTooltip"),mD=Ee({name:"ElTooltipContent",components:{ElPopperContent:fD},inheritAttrs:!1,props:Vn,setup(e){const t=oe(null),n=oe(!1),r=oe(!1),i=oe(!1),l=oe(!1),{controlled:v,id:o,open:a,trigger:u,onClose:d,onOpen:c,onShow:f,onHide:s,onBeforeShow:h,onBeforeHide:g}=qe($p,void 0),m=ee(()=>e.persistent);Yt(()=>{l.value=!0});const y=ee(()=>C(m)?!0:C(a)),b=ee(()=>e.disabled?!1:C(a)),_=ee(()=>{var O;return(O=e.style)!=null?O:{}}),w=ee(()=>!C(a)),S=()=>{s()},x=()=>{if(C(v))return!0},T=Ur(x,()=>{e.enterable&&C(u)==="hover"&&c()}),E=Ur(x,()=>{C(u)==="hover"&&d()}),I=()=>{var O,V;(V=(O=t.value)==null?void 0:O.updatePopper)==null||V.call(O),h==null||h()},D=()=>{g==null||g()},N=()=>{f(),F=$I(ee(()=>{var O;return(O=t.value)==null?void 0:O.popperContentRef}),()=>{if(C(v))return;C(u)!=="hover"&&d()})},L=()=>{e.virtualTriggering||d()};let F;return xe(()=>C(a),O=>{O||F==null||F()},{flush:"post"}),{ariaHidden:w,entering:r,leaving:i,id:o,intermediateOpen:n,contentStyle:_,contentRef:t,destroyed:l,shouldRender:y,shouldShow:b,onClose:d,open:a,onAfterShow:N,onBeforeEnter:I,onBeforeLeave:D,onContentEnter:T,onContentLeave:E,onTransitionLeave:S,onBlur:L}}});function gD(e,t,n,r,i,l){const v=mt("el-popper-content");return z(),be(ep,{disabled:!e.teleported,to:e.appendTo},[ue(dn,{name:e.transition,onAfterLeave:e.onTransitionLeave,onBeforeEnter:e.onBeforeEnter,onAfterEnter:e.onAfterShow,onBeforeLeave:e.onBeforeLeave},{default:he(()=>[e.shouldRender?kt((z(),be(v,Tn({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(()=>[ye(" Workaround bug #6378 "),e.destroyed?ye("v-if",!0):Te(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"])),[[Ht,e.shouldShow]]):ye("v-if",!0)]),_:3},8,["name","onAfterLeave","onBeforeEnter","onAfterEnter","onBeforeLeave"])],8,["disabled","to"])}var vD=Re(mD,[["render",gD],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/content.vue"]]);const yD=(e,t)=>He(e)?e.includes(t):e===t,Ja=(e,t,n)=>r=>{yD(C(e),t)&&n(r)},bD=Ee({name:"ElTooltipTrigger",components:{ElPopperTrigger:YL},props:el,setup(e){const t=Ie("tooltip"),{controlled:n,id:r,open:i,onOpen:l,onClose:v,onToggle:o}=qe($p,void 0),a=oe(null),u=()=>{if(C(n)||e.disabled)return!0},d=On(e,"trigger"),c=Ur(u,Ja(d,"hover",l)),f=Ur(u,Ja(d,"hover",v)),s=Ur(u,Ja(d,"click",b=>{b.button===0&&o(b)})),h=Ur(u,Ja(d,"focus",l)),g=Ur(u,Ja(d,"focus",v)),m=Ur(u,Ja(d,"contextmenu",b=>{b.preventDefault(),o(b)})),y=Ur(u,b=>{const{code:_}=b;e.triggerKeys.includes(_)&&(b.preventDefault(),o(b))});return{onBlur:g,onContextMenu:m,onFocus:h,onMouseenter:c,onMouseleave:f,onClick:s,onKeydown:y,open:i,id:r,triggerRef:a,ns:t}}});function _D(e,t,n,r,i,l){const v=mt("el-popper-trigger");return z(),be(v,{id:e.id,"virtual-ref":e.virtualRef,open:e.open,"virtual-triggering":e.virtualTriggering,class:de(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(()=>[Te(e.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"])}var wD=Re(bD,[["render",_D],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/trigger.vue"]]);const{useModelToggleProps:CD,useModelToggle:SD,useModelToggleEmits:xD}=GM("visible"),TD=Ee({name:"ElTooltip",components:{ElPopper:dD,ElPopperArrow:jL,ElTooltipContent:vD,ElTooltipTrigger:wD},props:{...E1,...CD,...Vn,...el,...O1,...pD},emits:[...xD,"before-show","before-hide","show","hide","open","close"],setup(e,{emit:t}){tL();const n=ee(()=>(ar(e.openDelay),e.openDelay||e.showAfter)),r=ee(()=>(ar(e.visibleArrow),Fn(e.visibleArrow)?e.visibleArrow:e.showArrow)),i=Vi(),l=oe(null),v=oe(null),o=()=>{var y;const b=C(l);b&&((y=b.popperInstanceRef)==null||y.update())},a=oe(!1),u=oe(void 0),{show:d,hide:c,hasUpdateHandler:f}=SD({indicator:a,toggleReason:u}),{onOpen:s,onClose:h}=rL({showAfter:n,hideAfter:On(e,"hideAfter"),open:d,close:c}),g=ee(()=>Fn(e.visible)&&!f.value);gt($p,{controlled:g,id:i,open:kc(a),trigger:On(e,"trigger"),onOpen:y=>{s(y)},onClose:y=>{h(y)},onToggle:y=>{C(a)?h(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:o}),xe(()=>e.disabled,y=>{y&&a.value&&(a.value=!1)});const m=()=>{var y,b;const _=(b=(y=v.value)==null?void 0:y.contentRef)==null?void 0:b.popperContentRef;return _&&_.contains(document.activeElement)};return gb(()=>a.value&&c()),{compatShowAfter:n,compatShowArrow:r,popperRef:l,contentRef:v,open:a,hide:c,isFocusInsideContent:m,updatePopper:o,onOpen:s,onClose:h}}}),kD=["innerHTML"],ED={key:1};function OD(e,t,n,r,i,l){const v=mt("el-tooltip-trigger"),o=mt("el-popper-arrow"),a=mt("el-tooltip-content"),u=mt("el-popper");return z(),be(u,{ref:"popperRef",role:e.role},{default:he(()=>[ue(v,{disabled:e.disabled,trigger:e.trigger,"trigger-keys":e.triggerKeys,"virtual-ref":e.virtualRef,"virtual-triggering":e.virtualTriggering},{default:he(()=>[e.$slots.default?Te(e.$slots,"default",{key:0}):ye("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),ue(a,{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(()=>[Te(e.$slots,"content",{},()=>[e.rawContent?(z(),se("span",{key:0,innerHTML:e.content},null,8,kD)):(z(),se("span",ED,Ae(e.content),1))]),e.compatShowArrow?(z(),be(o,{key:0,"arrow-offset":e.arrowOffset},null,8,["arrow-offset"])):ye("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"])}var AD=Re(TD,[["render",OD],["__file","/home/runner/work/element-plus/element-plus/packages/components/tooltip/src/tooltip.vue"]]);const Mr=Et(AD),PD=Fe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"}}),ID=["textContent"],MD={name:"ElBadge"},LD=Ee({...MD,props:PD,setup(e,{expose:t}){const n=e,r=Ie("badge"),i=ee(()=>n.isDot?"":ft(n.value)&&ft(n.max)?n.max<n.value?`${n.max}+`:`${n.value}`:`${n.value}`);return t({content:i}),(l,v)=>(z(),se("div",{class:de(C(r).b())},[Te(l.$slots,"default"),ue(dn,{name:`${C(r).namespace.value}-zoom-in-center`,persisted:""},{default:he(()=>[kt(re("sup",{class:de([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,ID),[[Ht,!l.hidden&&(C(i)||l.isDot)]])]),_:1},8,["name"])],2))}});var RD=Re(LD,[["__file","/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);const DD=Et(RD),$D=["default","primary","success","warning","info","danger","text",""],BD=["button","submit","reset"],Fd=Fe({size:ji,disabled:Boolean,type:{type:String,values:$D,default:""},icon:{type:Xt},nativeType:{type:String,values:BD,default:"button"},loading:Boolean,loadingIcon:{type:Xt,default:()=>op},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0}}),FD={click:e=>e instanceof MouseEvent};function an(e,t){zD(e)&&(e="100%");var n=ND(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 eu(e){return Math.min(1,Math.max(0,e))}function zD(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function ND(e){return typeof e=="string"&&e.indexOf("%")!==-1}function W1(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function tu(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ha(e){return e.length===1?"0"+e:String(e)}function jD(e,t,n){return{r:an(e,255)*255,g:an(t,255)*255,b:an(n,255)*255}}function Gv(e,t,n){e=an(e,255),t=an(t,255),n=an(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,v=0,o=(r+i)/2;if(r===i)v=0,l=0;else{var a=r-i;switch(v=o>.5?a/(2-r-i):a/(r+i),r){case e:l=(t-n)/a+(t<n?6:0);break;case t:l=(n-e)/a+2;break;case n:l=(e-t)/a+4;break}l/=6}return{h:l,s:v,l:o}}function Cf(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 VD(e,t,n){var r,i,l;if(e=an(e,360),t=an(t,100),n=an(n,100),t===0)i=n,l=n,r=n;else{var v=n<.5?n*(1+t):n+t-n*t,o=2*n-v;r=Cf(o,v,e+1/3),i=Cf(o,v,e),l=Cf(o,v,e-1/3)}return{r:r*255,g:i*255,b:l*255}}function qv(e,t,n){e=an(e,255),t=an(t,255),n=an(n,255);var r=Math.max(e,t,n),i=Math.min(e,t,n),l=0,v=r,o=r-i,a=r===0?0:o/r;if(r===i)l=0;else{switch(r){case e:l=(t-n)/o+(t<n?6:0);break;case t:l=(n-e)/o+2;break;case n:l=(e-t)/o+4;break}l/=6}return{h:l,s:a,v}}function UD(e,t,n){e=an(e,360)*6,t=an(t,100),n=an(n,100);var r=Math.floor(e),i=e-r,l=n*(1-t),v=n*(1-i*t),o=n*(1-(1-i)*t),a=r%6,u=[n,v,l,l,o,n][a],d=[o,n,n,v,l,l][a],c=[l,l,o,n,n,v][a];return{r:u*255,g:d*255,b:c*255}}function Zv(e,t,n,r){var i=[ha(Math.round(e).toString(16)),ha(Math.round(t).toString(16)),ha(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 HD(e,t,n,r,i){var l=[ha(Math.round(e).toString(16)),ha(Math.round(t).toString(16)),ha(Math.round(n).toString(16)),ha(WD(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 WD(e){return Math.round(parseFloat(e)*255).toString(16)}function Jv(e){return Pn(e)/255}function Pn(e){return parseInt(e,16)}function YD(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var zd={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 XD(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,l=null,v=!1,o=!1;return typeof e=="string"&&(e=qD(e)),typeof e=="object"&&(Br(e.r)&&Br(e.g)&&Br(e.b)?(t=jD(e.r,e.g,e.b),v=!0,o=String(e.r).substr(-1)==="%"?"prgb":"rgb"):Br(e.h)&&Br(e.s)&&Br(e.v)?(r=tu(e.s),i=tu(e.v),t=UD(e.h,r,i),v=!0,o="hsv"):Br(e.h)&&Br(e.s)&&Br(e.l)&&(r=tu(e.s),l=tu(e.l),t=VD(e.h,r,l),v=!0,o="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(n=e.a)),n=W1(n),{ok:v,format:e.format||o,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}var KD="[-\\+]?\\d+%?",GD="[-\\+]?\\d*\\.\\d+%?",Oi="(?:".concat(GD,")|(?:").concat(KD,")"),Sf="[\\s|\\(]+(".concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")\\s*\\)?"),xf="[\\s|\\(]+(".concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")[,|\\s]+(").concat(Oi,")\\s*\\)?"),tr={CSS_UNIT:new RegExp(Oi),rgb:new RegExp("rgb"+Sf),rgba:new RegExp("rgba"+xf),hsl:new RegExp("hsl"+Sf),hsla:new RegExp("hsla"+xf),hsv:new RegExp("hsv"+Sf),hsva:new RegExp("hsva"+xf),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 qD(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(zd[e])e=zd[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=tr.rgb.exec(e);return n?{r:n[1],g:n[2],b:n[3]}:(n=tr.rgba.exec(e),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=tr.hsl.exec(e),n?{h:n[1],s:n[2],l:n[3]}:(n=tr.hsla.exec(e),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=tr.hsv.exec(e),n?{h:n[1],s:n[2],v:n[3]}:(n=tr.hsva.exec(e),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=tr.hex8.exec(e),n?{r:Pn(n[1]),g:Pn(n[2]),b:Pn(n[3]),a:Jv(n[4]),format:t?"name":"hex8"}:(n=tr.hex6.exec(e),n?{r:Pn(n[1]),g:Pn(n[2]),b:Pn(n[3]),format:t?"name":"hex"}:(n=tr.hex4.exec(e),n?{r:Pn(n[1]+n[1]),g:Pn(n[2]+n[2]),b:Pn(n[3]+n[3]),a:Jv(n[4]+n[4]),format:t?"name":"hex8"}:(n=tr.hex3.exec(e),n?{r:Pn(n[1]+n[1]),g:Pn(n[2]+n[2]),b:Pn(n[3]+n[3]),format:t?"name":"hex"}:!1)))))))))}function Br(e){return Boolean(tr.CSS_UNIT.exec(String(e)))}var Y1=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=YD(t)),this.originalInput=t;var i=XD(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,v=t.g/255,o=t.b/255;return l<=.03928?n=l/12.92:n=Math.pow((l+.055)/1.055,2.4),v<=.03928?r=v/12.92:r=Math.pow((v+.055)/1.055,2.4),o<=.03928?i=o/12.92:i=Math.pow((o+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=W1(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var t=qv(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=qv(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=Gv(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=Gv(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),Zv(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),HD(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(an(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(an(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="#"+Zv(this.r,this.g,this.b,!1),n=0,r=Object.entries(zd);n<r.length;n++){var i=r[n],l=i[0],v=i[1];if(t===v)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=eu(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=eu(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=eu(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=eu(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,v={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(v)},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,v=[],o=1/t;t--;)v.push(new e({h:r,s:i,v:l})),l=(l+o)%1;return v},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,v=1;v<t;v++)i.push(new e({h:(r+v*l)%360,s:n.s,l:n.l}));return i},e.prototype.equals=function(t){return this.toRgbString()===new e(t).toRgbString()},e}();function yi(e,t=20){return e.mix("#141414",t).toString()}function ZD(e){const t=Ha(),n=Ie("button");return ee(()=>{let r={};const i=e.color;if(i){const l=new Y1(i),v=e.dark?l.tint(20).toString():yi(l,20);if(e.plain)r=n.cssVarBlock({"bg-color":e.dark?yi(l,90):l.tint(90).toString(),"text-color":i,"border-color":e.dark?yi(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":v,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":v}),t.value&&(r[n.cssVarBlockName("disabled-bg-color")]=e.dark?yi(l,90):l.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=e.dark?yi(l,50):l.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=e.dark?yi(l,80):l.tint(80).toString());else{const o=e.dark?yi(l,30):l.tint(30).toString(),a=l.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":a,"border-color":i,"hover-bg-color":o,"hover-text-color":a,"hover-border-color":o,"active-bg-color":v,"active-border-color":v}),t.value){const u=e.dark?yi(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 JD=["aria-disabled","disabled","autofocus","type"],QD={name:"ElButton"},e$=Ee({...QD,props:Fd,emits:FD,setup(e,{expose:t,emit:n}){const r=e,i=$o();Zs({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=qe(u1,void 0),v=fi("button"),o=Ie("button"),{form:a}=Xi(),u=Zn(ee(()=>l==null?void 0:l.size)),d=Ha(),c=oe(),f=ee(()=>r.type||(l==null?void 0:l.type)||""),s=ee(()=>{var y,b,_;return(_=(b=r.autoInsertSpace)!=null?b:(y=v.value)==null?void 0:y.autoInsertSpace)!=null?_:!1}),h=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)===Cl){const w=_.children;return/^\p{Unified_Ideograph}{2}$/u.test(w.trim())}}return!1}),g=ZD(r),m=y=>{r.nativeType==="reset"&&(a==null||a.resetFields()),n("click",y)};return t({ref:c,size:u,type:f,disabled:d,shouldAddSpace:h}),(y,b)=>(z(),se("button",{ref_key:"_ref",ref:c,class:de([C(o).b(),C(o).m(C(f)),C(o).m(C(u)),C(o).is("disabled",C(d)),C(o).is("loading",y.loading),C(o).is("plain",y.plain),C(o).is("round",y.round),C(o).is("circle",y.circle),C(o).is("text",y.text),C(o).is("link",y.link),C(o).is("has-bg",y.bg)]),"aria-disabled":C(d)||y.loading,disabled:C(d)||y.loading,autofocus:y.autofocus,type:y.nativeType,style:Ne(C(g)),onClick:m},[y.loading?(z(),se(je,{key:0},[y.$slots.loading?Te(y.$slots,"loading",{key:0}):(z(),be(C(Le),{key:1,class:de(C(o).is("loading"))},{default:he(()=>[(z(),be(Tt(y.loadingIcon)))]),_:1},8,["class"]))],64)):y.icon||y.$slots.icon?(z(),be(C(Le),{key:1},{default:he(()=>[y.icon?(z(),be(Tt(y.icon),{key:0})):Te(y.$slots,"icon",{key:1})]),_:3})):ye("v-if",!0),y.$slots.default?(z(),se("span",{key:2,class:de({[C(o).em("text","expand")]:C(h)})},[Te(y.$slots,"default")],2)):ye("v-if",!0)],14,JD))}});var t$=Re(e$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button.vue"]]);const n$={size:Fd.size,type:Fd.type},r$={name:"ElButtonGroup"},i$=Ee({...r$,props:n$,setup(e){const t=e;gt(u1,vt({size:On(t,"size"),type:On(t,"type")}));const n=Ie("button");return(r,i)=>(z(),se("div",{class:de(`${C(n).b("group")}`)},[Te(r.$slots,"default")],2))}});var X1=Re(i$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/button/src/button-group.vue"]]);const ht=Et(t$,{ButtonGroup:X1});dr(X1);var nu=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function a$(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 wi=new Map;let Qv;dt&&(document.addEventListener("mousedown",e=>Qv=e),document.addEventListener("mouseup",e=>{for(const t of wi.values())for(const{documentHandler:n}of t)n(e,Qv)}));function e0(e,t){let n=[];return Array.isArray(t.arg)?n=t.arg:Oa(t.arg)&&n.push(t.arg),function(r,i){const l=t.instance.popperRef,v=r.target,o=i==null?void 0:i.target,a=!t||!t.instance,u=!v||!o,d=e.contains(v)||e.contains(o),c=e===v,f=n.length&&n.some(h=>h==null?void 0:h.contains(v))||n.length&&n.includes(o),s=l&&(l.contains(v)||l.contains(o));a||u||d||c||f||s||t.value(r,i)}}const K1={beforeMount(e,t){wi.has(e)||wi.set(e,[]),wi.get(e).push({documentHandler:e0(e,t),bindingFn:t.value})},updated(e,t){wi.has(e)||wi.set(e,[]);const n=wi.get(e),r=n.findIndex(l=>l.bindingFn===t.oldValue),i={documentHandler:e0(e,t),bindingFn:t.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(e){wi.delete(e)}},o$=100,s$=600,t0={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",v=>{v.button===0&&(i(),document.addEventListener("mouseup",l,{once:!0}),l(),r=setTimeout(()=>{n=setInterval(()=>{i()},o$)},s$))})}},Nd="_trap-focus-children",pa=[],n0=e=>{if(pa.length===0)return;const t=pa[pa.length-1][Nd];if(t.length>0&&e.code===Ot.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())}},l$={beforeMount(e){e[Nd]=ov(e),pa.push(e),pa.length<=1&&document.addEventListener("keydown",n0)},updated(e){Xe(()=>{e[Nd]=ov(e)})},unmounted(){pa.shift(),pa.length===0&&document.removeEventListener("keydown",n0)}},u$=Fe({header:{type:String,default:""},bodyStyle:{type:Pe([String,Object,Array]),default:""},shadow:{type:String,values:["always","hover","never"],default:"always"}}),c$={name:"ElCard"},f$=Ee({...c$,props:u$,setup(e){const t=Ie("card");return(n,r)=>(z(),se("div",{class:de([C(t).b(),C(t).is(`${n.shadow}-shadow`)])},[n.$slots.header||n.header?(z(),se("div",{key:0,class:de(C(t).e("header"))},[Te(n.$slots,"header",{},()=>[Ue(Ae(n.header),1)])],2)):ye("v-if",!0),re("div",{class:de(C(t).e("body")),style:Ne(n.bodyStyle)},[Te(n.$slots,"default")],6)],2))}});var d$=Re(f$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/card/src/card.vue"]]);const h$=Et(d$),p$=Fe({initialIndex:{type:Number,default:0},height:{type:String,default:""},trigger:{type:String,values:["hover","click"],default:"hover"},autoplay:{type:Boolean,default:!0},interval:{type:Number,default:3e3},indicatorPosition:{type:String,values:["","none","outside"],default:""},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}}),m$={change:(e,t)=>[e,t].every(ft)},g$=["onMouseenter","onMouseleave"],v$=["onMouseenter","onClick"],y$={key:0},b$={name:"ElCarousel"},_$=Ee({...b$,props:p$,emits:m$,setup(e,{expose:t,emit:n}){const r=e,i=Ie("carousel"),l=300,v=oe(-1),o=oe(null),a=oe(!1),u=oe(),d=oe([]),c=ee(()=>r.arrow!=="never"&&!C(m)),f=ee(()=>d.value.some(R=>R.props.label.toString().length>0)),s=ee(()=>{const R=[i.b(),i.m(r.direction)];return C(g)&&R.push(i.m("card")),R}),h=ee(()=>{const R=[i.e("indicators"),i.em("indicators",r.direction)];return f.value&&R.push(i.em("indicators","labels")),(r.indicatorPosition==="outside"||C(g))&&R.push(i.em("indicators","outside")),R}),g=ee(()=>r.type==="card"),m=ee(()=>r.direction==="vertical"),y=Ss(R=>{x(R)},l,{trailing:!0}),b=Ss(R=>{ne(R)},l);function _(){o.value&&(clearInterval(o.value),o.value=null)}function w(){r.interval<=0||!r.autoplay||o.value||(o.value=setInterval(()=>S(),r.interval))}const S=()=>{v.value<d.value.length-1?v.value=v.value+1:r.loop&&(v.value=0)};function x(R){if(Ge(R)){const j=d.value.filter(A=>A.props.name===R);j.length>0&&(R=d.value.indexOf(j[0]))}if(R=Number(R),Number.isNaN(R)||R!==Math.floor(R))return;const P=d.value.length,Q=v.value;R<0?v.value=r.loop?P-1:0:R>=P?v.value=r.loop?0:P-1:v.value=R,Q===v.value&&T(Q),M()}function T(R){d.value.forEach((P,Q)=>{P.translateItem(Q,v.value,R)})}function E(R){d.value.push(R)}function I(R){const P=d.value.findIndex(Q=>Q.uid===R);P!==-1&&(d.value.splice(P,1),v.value===P&&le())}function D(R,P){var Q,j,A,q;const G=C(d),te=G.length;if(te===0||!R.states.inStage)return!1;const fe=P+1,pe=P-1,ve=te-1,H=G[ve].states.active,W=G[0].states.active,k=(j=(Q=G[fe])==null?void 0:Q.states)==null?void 0:j.active,X=(q=(A=G[pe])==null?void 0:A.states)==null?void 0:q.active;return P===ve&&W||k?"left":P===0&&H||X?"right":!1}function N(){a.value=!0,r.pauseOnHover&&_()}function L(){a.value=!1,w()}function F(R){C(m)||d.value.forEach((P,Q)=>{R===D(P,Q)&&(P.states.hover=!0)})}function O(){C(m)||d.value.forEach(R=>{R.states.hover=!1})}function V(R){v.value=R}function ne(R){r.trigger==="hover"&&R!==v.value&&(v.value=R)}function J(){x(v.value-1)}function le(){x(v.value+1)}function M(){_(),w()}xe(()=>v.value,(R,P)=>{T(P),P>-1&&n("change",R,P)}),xe(()=>r.autoplay,R=>{R?w():_()}),xe(()=>r.loop,()=>{x(v.value)}),xe(()=>r.interval,()=>{M()});const U=fn();return nt(async()=>{await Xe(),U.value=Ir(u.value,()=>{T()}),r.initialIndex<d.value.length&&r.initialIndex>=0&&(v.value=r.initialIndex),w()}),Yt(()=>{_(),u.value&&U.value&&U.value.stop()}),gt(c1,{root:u,isCardType:g,isVertical:m,items:d,loop:r.loop,addItem:E,removeItem:I,setActiveItem:x}),t({setActiveItem:x,prev:J,next:le}),(R,P)=>(z(),se("div",{ref_key:"root",ref:u,class:de(C(s)),onMouseenter:tt(N,["stop"]),onMouseleave:tt(L,["stop"])},[re("div",{class:de(C(i).e("container")),style:Ne({height:R.height})},[C(c)?(z(),be(dn,{key:0,name:"carousel-arrow-left",persisted:""},{default:he(()=>[kt(re("button",{type:"button",class:de([C(i).e("arrow"),C(i).em("arrow","left")]),onMouseenter:P[0]||(P[0]=Q=>F("left")),onMouseleave:O,onClick:P[1]||(P[1]=tt(Q=>C(y)(v.value-1),["stop"]))},[ue(C(Le),null,{default:he(()=>[ue(C(Fc))]),_:1})],34),[[Ht,(R.arrow==="always"||a.value)&&(r.loop||v.value>0)]])]),_:1})):ye("v-if",!0),C(c)?(z(),be(dn,{key:1,name:"carousel-arrow-right",persisted:""},{default:he(()=>[kt(re("button",{type:"button",class:de([C(i).e("arrow"),C(i).em("arrow","right")]),onMouseenter:P[2]||(P[2]=Q=>F("right")),onMouseleave:O,onClick:P[3]||(P[3]=tt(Q=>C(y)(v.value+1),["stop"]))},[ue(C(Le),null,{default:he(()=>[ue(C(Sl))]),_:1})],34),[[Ht,(R.arrow==="always"||a.value)&&(r.loop||v.value<d.value.length-1)]])]),_:1})):ye("v-if",!0),Te(R.$slots,"default")],6),R.indicatorPosition!=="none"?(z(),se("ul",{key:0,class:de(C(h))},[(z(!0),se(je,null,jt(d.value,(Q,j)=>(z(),se("li",{key:j,class:de([C(i).e("indicator"),C(i).em("indicator",R.direction),C(i).is("active",j===v.value)]),onMouseenter:A=>C(b)(j),onClick:tt(A=>V(j),["stop"])},[re("button",{class:de(C(i).e("button"))},[C(f)?(z(),se("span",y$,Ae(Q.props.label),1)):ye("v-if",!0)],2)],42,v$))),128))],2)):ye("v-if",!0)],42,g$))}});var w$=Re(_$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel.vue"]]);const C$=Fe({name:{type:String,default:""},label:{type:[String,Number],default:""}}),S$={name:"ElCarouselItem"},x$=Ee({...S$,props:C$,setup(e){const t=e,n=Ie("carousel"),r=qe(c1),i=St(),l=.83,v=oe(!1),o=oe(0),a=oe(1),u=oe(!1),d=oe(!1),c=oe(!1),f=oe(!1),{isCardType:s,isVertical:h}=r,g=ee(()=>{const x=`${`translate${C(h)?"Y":"X"}`}(${C(o)}px)`,T=`scale(${C(a)})`;return{transform:[x,T].join(" ")}});function m(S,x,T){const E=T-1,I=x-1,D=x+1,N=T/2;return x===0&&S===E?-1:x===E&&S===0?T:S<I&&x-S>=N?T+1:S>D&&S-x>=N?-2:S}function y(S,x){var T;const E=((T=r.root.value)==null?void 0:T.offsetWidth)||0;return c.value?E*((2-l)*(S-x)+1)/4:S<x?-(1+l)*E/4:(3+l)*E/4}function b(S,x,T){const E=r.root.value;return E?((T?E.offsetHeight:E.offsetWidth)||0)*(S-x):0}const _=(S,x,T)=>{var E;const I=C(s),D=(E=r.items.value.length)!=null?E:Number.NaN,N=S===x;!I&&!ar(T)&&(f.value=N||S===T),!N&&D>2&&r.loop&&(S=m(S,x,D));const L=C(h);u.value=N,I?(c.value=Math.round(Math.abs(S-x))<=1,o.value=y(S,x),a.value=C(u)?1:l):o.value=b(S,x,L),d.value=!0};function w(){if(r&&C(s)){const S=r.items.value.findIndex(({uid:x})=>x===i.uid);r.setActiveItem(S)}}return nt(()=>{r.addItem({props:t,states:vt({hover:v,translate:o,scale:a,active:u,ready:d,inStage:c,animating:f}),uid:i.uid,translateItem:_})}),li(()=>{r.removeItem(i.uid)}),(S,x)=>kt((z(),se("div",{class:de([C(n).e("item"),C(n).is("active",u.value),C(n).is("in-stage",c.value),C(n).is("hover",v.value),C(n).is("animating",f.value),{[C(n).em("item","card")]:C(s)}]),style:Ne(C(g)),onClick:w},[C(s)?kt((z(),se("div",{key:0,class:de(C(n).e("mask"))},null,2)),[[Ht,!u.value]]):ye("v-if",!0),Te(S.$slots,"default")],6)),[[Ht,d.value]])}});var G1=Re(x$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/carousel/src/carousel-item.vue"]]);const T$=Et(w$,{CarouselItem:G1}),k$=dr(G1),q1=Fe({size:ji,disabled:Boolean,label:{type:[String,Number,Boolean],default:""}}),E$=Fe({...q1,modelValue:{type:[String,Number,Boolean],default:""},name:{type:String,default:""},border:Boolean}),Z1={[wt]:e=>Ge(e)||ft(e)||Fn(e),[ti]:e=>Ge(e)||ft(e)||Fn(e)},J1=(e,t)=>{const n=oe(),r=qe(p1,void 0),i=ee(()=>!!r),l=ee({get(){return i.value?r.modelValue:e.modelValue},set(d){i.value?r.changeEvent(d):t&&t(wt,d),n.value.checked=e.modelValue===e.label}}),v=Zn(ee(()=>r==null?void 0:r.size)),o=Ha(ee(()=>r==null?void 0:r.disabled)),a=oe(!1),u=ee(()=>o.value||i.value&&l.value!==e.label?-1:0);return{radioRef:n,isGroup:i,radioGroup:r,focus:a,size:v,disabled:o,tabIndex:u,modelValue:l}},O$=["value","name","disabled"],A$={name:"ElRadio"},P$=Ee({...A$,props:E$,emits:Z1,setup(e,{emit:t}){const n=e,r=Ie("radio"),{radioRef:i,radioGroup:l,focus:v,size:o,disabled:a,modelValue:u}=J1(n,t);function d(){Xe(()=>t("change",u.value))}return(c,f)=>{var s;return z(),se("label",{class:de([C(r).b(),C(r).is("disabled",C(a)),C(r).is("focus",C(v)),C(r).is("bordered",c.border),C(r).is("checked",C(u)===c.label),C(r).m(C(o))])},[re("span",{class:de([C(r).e("input"),C(r).is("disabled",C(a)),C(r).is("checked",C(u)===c.label)])},[kt(re("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":f[0]||(f[0]=h=>At(u)?u.value=h:null),class:de(C(r).e("original")),value:c.label,name:c.name||((s=C(l))==null?void 0:s.name),disabled:C(a),type:"radio",onFocus:f[1]||(f[1]=h=>v.value=!0),onBlur:f[2]||(f[2]=h=>v.value=!1),onChange:d},null,42,O$),[[Wb,C(u)]]),re("span",{class:de(C(r).e("inner"))},null,2)],2),re("span",{class:de(C(r).e("label")),onKeydown:f[3]||(f[3]=tt(()=>{},["stop"]))},[Te(c.$slots,"default",{},()=>[Ue(Ae(c.label),1)])],34)],2)}}});var I$=Re(P$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio.vue"]]);const M$=Fe({...q1,name:{type:String,default:""}}),L$=["value","name","disabled"],R$={name:"ElRadioButton"},D$=Ee({...R$,props:M$,setup(e){const t=e,n=Ie("radio"),{radioRef:r,focus:i,size:l,disabled:v,modelValue:o,radioGroup:a}=J1(t),u=ee(()=>({backgroundColor:(a==null?void 0:a.fill)||"",borderColor:(a==null?void 0:a.fill)||"",boxShadow:a!=null&&a.fill?`-1px 0 0 0 ${a.fill}`:"",color:(a==null?void 0:a.textColor)||""}));return(d,c)=>{var f;return z(),se("label",{class:de([C(n).b("button"),C(n).is("active",C(o)===d.label),C(n).is("disabled",C(v)),C(n).is("focus",C(i)),C(n).bm("button",C(l))])},[kt(re("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":c[0]||(c[0]=s=>At(o)?o.value=s:null),class:de(C(n).be("button","original-radio")),value:d.label,type:"radio",name:d.name||((f=C(a))==null?void 0:f.name),disabled:C(v),onFocus:c[1]||(c[1]=s=>i.value=!0),onBlur:c[2]||(c[2]=s=>i.value=!1)},null,42,L$),[[Wb,C(o)]]),re("span",{class:de(C(n).be("button","inner")),style:Ne(C(o)===d.label?C(u):{}),onKeydown:c[3]||(c[3]=tt(()=>{},["stop"]))},[Te(d.$slots,"default",{},()=>[Ue(Ae(d.label),1)])],38)],2)}}});var Q1=Re(D$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-button.vue"]]);const $$=Fe({id:{type:String,default:void 0},size:ji,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}}),B$=Z1,F$=["id","aria-label","aria-labelledby"],z$={name:"ElRadioGroup"},N$=Ee({...z$,props:$$,emits:B$,setup(e,{emit:t}){const n=e,r=Ie("radio"),i=Vi(),l=oe(),{formItem:v}=Xi(),{inputId:o,isLabeledByFormItem:a}=kl(n,{formItemContext:v}),u=c=>{t(wt,c),Xe(()=>t("change",c))};nt(()=>{const c=l.value.querySelectorAll("[type=radio]"),f=c[0];!Array.from(c).some(s=>s.checked)&&f&&(f.tabIndex=0)});const d=ee(()=>n.name||i.value);return gt(p1,vt({...Xn(n),changeEvent:u,name:d})),xe(()=>n.modelValue,()=>{n.validateEvent&&(v==null||v.validate("change").catch(c=>void 0))}),(c,f)=>(z(),se("div",{id:C(o),ref_key:"radioGroupRef",ref:l,class:de(C(r).b("group")),role:"radiogroup","aria-label":C(a)?void 0:c.label||"radio-group","aria-labelledby":C(a)?C(v).labelId:void 0},[Te(c.$slots,"default")],10,F$))}});var ew=Re(N$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/radio/src/radio-group.vue"]]);Et(I$,{RadioButton:Q1,RadioGroup:ew});const j$=dr(ew),V$=dr(Q1),tw=Fe({closable:Boolean,type:{type:String,values:["success","info","warning","danger",""],default:""},hit:Boolean,disableTransitions:Boolean,color:{type:String,default:""},size:{type:String,values:Tl,default:""},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),U$={close:e=>e instanceof MouseEvent,click:e=>e instanceof MouseEvent},H$={name:"ElTag"},W$=Ee({...H$,props:tw,emits:U$,setup(e,{emit:t}){const n=e,r=Zn(),i=Ie("tag"),l=ee(()=>{const{type:a,hit:u,effect:d,closable:c,round:f}=n;return[i.b(),i.is("closable",c),i.m(a),i.m(r.value),i.m(d),i.is("hit",u),i.is("round",f)]}),v=a=>{t("close",a)},o=a=>{t("click",a)};return(a,u)=>a.disableTransitions?(z(),se("span",{key:0,class:de(C(l)),style:Ne({backgroundColor:a.color}),onClick:o},[re("span",{class:de(C(i).e("content"))},[Te(a.$slots,"default")],2),a.closable?(z(),be(C(Le),{key:0,class:de(C(i).e("close")),onClick:tt(v,["stop"])},{default:he(()=>[ue(C(Er))]),_:1},8,["class","onClick"])):ye("v-if",!0)],6)):(z(),be(dn,{key:1,name:`${C(i).namespace.value}-zoom-in-center`,appear:""},{default:he(()=>[re("span",{class:de(C(l)),style:Ne({backgroundColor:a.color}),onClick:o},[re("span",{class:de(C(i).e("content"))},[Te(a.$slots,"default")],2),a.closable?(z(),be(C(Le),{key:0,class:de(C(i).e("close")),onClick:tt(v,["stop"])},{default:he(()=>[ue(C(Er))]),_:1},8,["class","onClick"])):ye("v-if",!0)],6)]),_:3},8,["name"]))}});var Y$=Re(W$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tag/src/tag.vue"]]);const X$=Et(Y$),K$=Fe({tag:{type:String,default:"div"},span:{type:Number,default:24},offset:{type:Number,default:0},pull:{type:Number,default:0},push:{type:Number,default:0},xs:{type:Pe([Number,Object]),default:()=>rn({})},sm:{type:Pe([Number,Object]),default:()=>rn({})},md:{type:Pe([Number,Object]),default:()=>rn({})},lg:{type:Pe([Number,Object]),default:()=>rn({})},xl:{type:Pe([Number,Object]),default:()=>rn({})}}),G$={name:"ElCol"},q$=Ee({...G$,props:K$,setup(e){const t=e,{gutter:n}=qe(m1,{gutter:ee(()=>0)}),r=Ie("col"),i=ee(()=>{const v={};return n.value&&(v.paddingLeft=v.paddingRight=`${n.value/2}px`),v}),l=ee(()=>{const v=[];return["span","offset","pull","push"].forEach(u=>{const d=t[u];ft(d)&&(u==="span"?v.push(r.b(`${t[u]}`)):d>0&&v.push(r.b(`${u}-${t[u]}`)))}),["xs","sm","md","lg","xl"].forEach(u=>{ft(t[u])?v.push(r.b(`${u}-${t[u]}`)):ot(t[u])&&Object.entries(t[u]).forEach(([d,c])=>{v.push(d!=="span"?r.b(`${u}-${d}-${c}`):r.b(`${u}-${c}`))})}),n.value&&v.push(r.is("guttered")),v});return(v,o)=>(z(),be(Tt(v.tag),{class:de([C(r).b(),C(l)]),style:Ne(C(i))},{default:he(()=>[Te(v.$slots,"default")]),_:3},8,["class","style"]))}});var Z$=Re(q$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);const Qa=Et(Z$),J$={name:"ElCollapseTransition"},Q$=Ee({...J$,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)=>(z(),be(dn,Tn({name:C(t).b()},BS(n)),{default:he(()=>[Te(r.$slots,"default")]),_:3},16,["name"]))}});var Mu=Re(Q$,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);Mu.install=e=>{e.component(Mu.name,Mu)};const eB=Mu;let Tf=!1;function tl(e,t){if(!dt)return;const n=function(l){var v;(v=t.drag)==null||v.call(t,l)},r=function(l){var v;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,Tf=!1,(v=t.end)==null||v.call(t,l)},i=function(l){var v;Tf||(l.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),Tf=!0,(v=t.start)==null||v.call(t,l))};e.addEventListener("mousedown",i),e.addEventListener("touchstart",i)}const tB=Ee({name:"ElColorAlphaSlider",props:{color:{type:Object,required:!0},vertical:{type:Boolean,default:!1}},setup(e){const t=Ie("color-alpha-slider"),n=St(),r=fn(null),i=fn(null),l=oe(0),v=oe(0),o=oe(null);xe(()=>e.color.get("alpha"),()=>{s()}),xe(()=>e.color.value,()=>{s()});function a(){if(e.vertical)return 0;const h=n.vnode.el,g=e.color.get("alpha");return h?Math.round(g*(h.offsetWidth-r.value.offsetWidth/2)/100):0}function u(){const h=n.vnode.el;if(!e.vertical)return 0;const g=e.color.get("alpha");return h?Math.round(g*(h.offsetHeight-r.value.offsetHeight/2)/100):0}function d(){if(e.color&&e.color.value){const{r:h,g,b:m}=e.color.toRgb();return`linear-gradient(to right, rgba(${h}, ${g}, ${m}, 0) 0%, rgba(${h}, ${g}, ${m}, 1) 100%)`}return null}function c(h){h.target!==r.value&&f(h)}function f(h){const m=n.vnode.el.getBoundingClientRect(),{clientX:y,clientY:b}=xp(h);if(e.vertical){let _=b-m.top;_=Math.max(r.value.offsetHeight/2,_),_=Math.min(_,m.height-r.value.offsetHeight/2),e.color.set("alpha",Math.round((_-r.value.offsetHeight/2)/(m.height-r.value.offsetHeight)*100))}else{let _=y-m.left;_=Math.max(r.value.offsetWidth/2,_),_=Math.min(_,m.width-r.value.offsetWidth/2),e.color.set("alpha",Math.round((_-r.value.offsetWidth/2)/(m.width-r.value.offsetWidth)*100))}}function s(){l.value=a(),v.value=u(),o.value=d()}return nt(()=>{const h={drag:g=>{f(g)},end:g=>{f(g)}};tl(i.value,h),tl(r.value,h),s()}),{thumb:r,bar:i,thumbLeft:l,thumbTop:v,background:o,handleClick:c,update:s,ns:t}}});function nB(e,t,n,r,i,l){return z(),se("div",{class:de([e.ns.b(),e.ns.is("vertical",e.vertical)])},[re("div",{ref:"bar",class:de(e.ns.e("bar")),style:Ne({background:e.background}),onClick:t[0]||(t[0]=(...v)=>e.handleClick&&e.handleClick(...v))},null,6),re("div",{ref:"thumb",class:de(e.ns.e("thumb")),style:Ne({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var rB=Re(tB,[["render",nB],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/alpha-slider.vue"]]);const iB=Ee({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(e){const t=Ie("color-hue-slider"),n=St(),r=oe(null),i=oe(null),l=oe(0),v=oe(0),o=ee(()=>e.color.get("hue"));xe(()=>o.value,()=>{f()});function a(s){s.target!==r.value&&u(s)}function u(s){const g=n.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=xp(s);let b;if(e.vertical){let _=y-g.top;_=Math.min(_,g.height-r.value.offsetHeight/2),_=Math.max(r.value.offsetHeight/2,_),b=Math.round((_-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*360)}else{let _=m-g.left;_=Math.min(_,g.width-r.value.offsetWidth/2),_=Math.max(r.value.offsetWidth/2,_),b=Math.round((_-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*360)}e.color.set("hue",b)}function d(){const s=n.vnode.el;if(e.vertical)return 0;const h=e.color.get("hue");return s?Math.round(h*(s.offsetWidth-r.value.offsetWidth/2)/360):0}function c(){const s=n.vnode.el;if(!e.vertical)return 0;const h=e.color.get("hue");return s?Math.round(h*(s.offsetHeight-r.value.offsetHeight/2)/360):0}function f(){l.value=d(),v.value=c()}return nt(()=>{const s={drag:h=>{u(h)},end:h=>{u(h)}};tl(i.value,s),tl(r.value,s),f()}),{bar:i,thumb:r,thumbLeft:l,thumbTop:v,hueValue:o,handleClick:a,update:f,ns:t}}});function aB(e,t,n,r,i,l){return z(),se("div",{class:de([e.ns.b(),e.ns.is("vertical",e.vertical)])},[re("div",{ref:"bar",class:de(e.ns.e("bar")),onClick:t[0]||(t[0]=(...v)=>e.handleClick&&e.handleClick(...v))},null,2),re("div",{ref:"thumb",class:de(e.ns.e("thumb")),style:Ne({left:e.thumbLeft+"px",top:e.thumbTop+"px"})},null,6)],2)}var oB=Re(iB,[["render",aB],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/hue-slider.vue"]]);const nw=Symbol(),sB=()=>qe(nw),r0=function(e,t,n){return[e,t*n/((e=(2-t)*n)<1?e:2-e)||0,e/2]},lB=function(e){return typeof e=="string"&&e.includes(".")&&Number.parseFloat(e)===1},uB=function(e){return typeof e=="string"&&e.includes("%")},vo=function(e,t){lB(e)&&(e="100%");const n=uB(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)},i0={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Lu=function(e){e=Math.min(Math.round(e),255);const t=Math.floor(e/16),n=e%16;return`${i0[t]||t}${i0[n]||n}`},a0=function({r:e,g:t,b:n}){return Number.isNaN(+e)||Number.isNaN(+t)||Number.isNaN(+n)?"":`#${Lu(e)}${Lu(t)}${Lu(n)}`},kf={A:10,B:11,C:12,D:13,E:14,F:15},na=function(e){return e.length===2?(kf[e[0].toUpperCase()]||+e[0])*16+(kf[e[1].toUpperCase()]||+e[1]):kf[e[1].toUpperCase()]||+e[1]},cB=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,v=n===0?2*r/(i+r):2*t/(n+t);return{h:e,s:v*100,v:l*100}},o0=function(e,t,n){e=vo(e,255),t=vo(t,255),n=vo(n,255);const r=Math.max(e,t,n),i=Math.min(e,t,n);let l;const v=r,o=r-i,a=r===0?0:o/r;if(r===i)l=0;else{switch(r){case e:{l=(t-n)/o+(t<n?6:0);break}case t:{l=(n-e)/o+2;break}case n:{l=(e-t)/o+4;break}}l/=6}return{h:l*360,s:a*100,v:v*100}},as=function(e,t,n){e=vo(e,360)*6,t=vo(t,100),n=vo(n,100);const r=Math.floor(e),i=e-r,l=n*(1-t),v=n*(1-i*t),o=n*(1-(1-i)*t),a=r%6,u=[n,v,l,l,o,n][a],d=[o,n,n,v,l,l][a],c=[l,l,o,n,n,v][a];return{r:Math.round(u*255),g:Math.round(d*255),b:Math.round(c*255)}};class ks{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)et(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)et(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 as(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}=cB(r[0],r[1],r[2]);n(i,l,v)}}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}=o0(r[0],r[1],r[2]);n(i,l,v)}}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,v;r.length===3?(i=na(r[0]+r[0]),l=na(r[1]+r[1]),v=na(r[2]+r[2])):(r.length===6||r.length===8)&&(i=na(r.slice(0,2)),l=na(r.slice(2,4)),v=na(r.slice(4,6))),r.length===8?this._alpha=na(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:o,s:a,v:u}=o0(i,l,v);n(o,a,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 v=r0(t,n/100,r/100);this.value=`hsla(${t}, ${Math.round(v[1]*100)}%, ${Math.round(v[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=`${a0(as(t,n,r))}${Lu(i*255/100)}`;break}default:{const{r:v,g:o,b:a}=as(t,n,r);this.value=`rgba(${v}, ${o}, ${a}, ${this.get("alpha")/100})`}}else switch(l){case"hsl":{const v=r0(t,n/100,r/100);this.value=`hsl(${t}, ${Math.round(v[1]*100)}%, ${Math.round(v[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${t}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:v,g:o,b:a}=as(t,n,r);this.value=`rgb(${v}, ${o}, ${a})`;break}default:this.value=a0(as(t,n,r))}}}const fB=Ee({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0}},setup(e){const t=Ie("color-predefine"),{currentColor:n}=sB(),r=oe(l(e.colors,e.color));xe(()=>n.value,v=>{const o=new ks;o.fromString(v),r.value.forEach(a=>{a.selected=o.compare(a)})}),Na(()=>{r.value=l(e.colors,e.color)});function i(v){e.color.fromString(e.colors[v])}function l(v,o){return v.map(a=>{const u=new ks;return u.enableAlpha=!0,u.format="rgba",u.fromString(a),u.selected=u.value===o.value,u})}return{rgbaColors:r,handleSelect:i,ns:t}}}),dB=["onClick"];function hB(e,t,n,r,i,l){return z(),se("div",{class:de(e.ns.b())},[re("div",{class:de(e.ns.e("colors"))},[(z(!0),se(je,null,jt(e.rgbaColors,(v,o)=>(z(),se("div",{key:e.colors[o],class:de([e.ns.e("color-selector"),e.ns.is("alpha",v._alpha<100),{selected:v.selected}]),onClick:a=>e.handleSelect(o)},[re("div",{style:Ne({backgroundColor:v.value})},null,4)],10,dB))),128))],2)],2)}var pB=Re(fB,[["render",hB],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/predefine.vue"]]);const mB=Ee({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(e){const t=Ie("color-svpanel"),n=St(),r=oe(0),i=oe(0),l=oe("hsl(0, 100%, 50%)"),v=ee(()=>{const u=e.color.get("hue"),d=e.color.get("value");return{hue:u,value:d}});function o(){const u=e.color.get("saturation"),d=e.color.get("value"),c=n.vnode.el,{clientWidth:f,clientHeight:s}=c;i.value=u*f/100,r.value=(100-d)*s/100,l.value=`hsl(${e.color.get("hue")}, 100%, 50%)`}function a(u){const c=n.vnode.el.getBoundingClientRect(),{clientX:f,clientY:s}=xp(u);let h=f-c.left,g=s-c.top;h=Math.max(0,h),h=Math.min(h,c.width),g=Math.max(0,g),g=Math.min(g,c.height),i.value=h,r.value=g,e.color.set({saturation:h/c.width*100,value:100-g/c.height*100})}return xe(()=>v.value,()=>{o()}),nt(()=>{tl(n.vnode.el,{drag:u=>{a(u)},end:u=>{a(u)}}),o()}),{cursorTop:r,cursorLeft:i,background:l,colorValue:v,handleDrag:a,update:o,ns:t}}}),gB=re("div",null,null,-1),vB=[gB];function yB(e,t,n,r,i,l){return z(),se("div",{class:de(e.ns.b()),style:Ne({backgroundColor:e.background})},[re("div",{class:de(e.ns.e("white"))},null,2),re("div",{class:de(e.ns.e("black"))},null,2),re("div",{class:de(e.ns.e("cursor")),style:Ne({top:e.cursorTop+"px",left:e.cursorLeft+"px"})},vB,6)],6)}var bB=Re(mB,[["render",yB],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/components/sv-panel.vue"]]);const _B=Ee({name:"ElColorPicker",components:{ElButton:ht,ElTooltip:Mr,ElInput:Wa,ElIcon:Le,Close:Er,ArrowDown:Bc,SvPanel:bB,HueSlider:oB,AlphaSlider:rB,Predefine:pB},directives:{ClickOutside:K1},props:{modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:{type:String,validator:Yc},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",wt],setup(e,{emit:t}){const{t:n}=hn(),r=Ie("color"),{form:i,formItem:l}=Xi(),{inputId:v,isLabeledByFormItem:o}=kl(e,{formItemContext:l}),a=oe(),u=oe(),d=oe(),c=oe(null);let f=!0;const s=vt(new ks({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue})),h=oe(!1),g=oe(!1),m=oe(""),y=ee(()=>!e.modelValue&&!g.value?"transparent":T(s,e.showAlpha)),b=Zn(),_=ee(()=>!!(e.disabled||(i==null?void 0:i.disabled))),w=ee(()=>!e.modelValue&&!g.value?"":s.value),S=ee(()=>o.value?void 0:e.label||n("el.colorpicker.defaultLabel")),x=ee(()=>o.value?l==null?void 0:l.labelId:void 0);xe(()=>e.modelValue,ne=>{ne?ne&&ne!==s.value&&(f=!1,s.fromString(ne)):g.value=!1}),xe(()=>w.value,ne=>{m.value=ne,f&&t("active-change",ne),f=!0}),xe(()=>s.value,()=>{!e.modelValue&&!g.value&&(g.value=!0)});function T(ne,J){if(!(ne instanceof ks))throw new TypeError("color should be instance of _color Class");const{r:le,g:M,b:U}=ne.toRgb();return J?`rgba(${le}, ${M}, ${U}, ${ne.get("alpha")/100})`:`rgb(${le}, ${M}, ${U})`}function E(ne){h.value=ne}const I=ko(E,100);function D(){I(!1),N()}function N(){Xe(()=>{e.modelValue?s.fromString(e.modelValue):(s.value="",Xe(()=>{g.value=!1}))})}function L(){_.value||I(!h.value)}function F(){s.fromString(m.value)}function O(){const ne=s.value;t(wt,ne),t("change",ne),e.validateEvent&&(l==null||l.validate("change").catch(J=>void 0)),I(!1),Xe(()=>{const J=new ks({enableAlpha:e.showAlpha,format:e.colorFormat||"",value:e.modelValue});s.compare(J)||N()})}function V(){I(!1),t(wt,null),t("change",null),e.modelValue!==null&&e.validateEvent&&(l==null||l.validate("change").catch(ne=>void 0)),N()}return nt(()=>{e.modelValue&&(m.value=w.value)}),xe(()=>h.value,()=>{Xe(()=>{var ne,J,le;(ne=a.value)==null||ne.update(),(J=u.value)==null||J.update(),(le=d.value)==null||le.update()})}),gt(nw,{currentColor:w}),{color:s,colorDisabled:_,colorSize:b,displayedColor:y,showPanelColor:g,showPicker:h,customInput:m,buttonId:v,buttonAriaLabel:S,buttonAriaLabelledby:x,handleConfirm:F,hide:D,handleTrigger:L,clear:V,confirmValue:O,t:n,ns:r,hue:a,svPanel:u,alpha:d,popper:c}}}),wB=["id","aria-label","aria-labelledby","aria-description","tabindex"];function CB(e,t,n,r,i,l){const v=mt("hue-slider"),o=mt("sv-panel"),a=mt("alpha-slider"),u=mt("predefine"),d=mt("el-input"),c=mt("el-button"),f=mt("arrow-down"),s=mt("el-icon"),h=mt("close"),g=mt("el-tooltip"),m=_b("click-outside");return z(),be(g,{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(()=>[kt((z(),se("div",null,[re("div",{class:de(e.ns.be("dropdown","main-wrapper"))},[ue(v,{ref:"hue",class:"hue-slider",color:e.color,vertical:""},null,8,["color"]),ue(o,{ref:"svPanel",color:e.color},null,8,["color"])],2),e.showAlpha?(z(),be(a,{key:0,ref:"alpha",color:e.color},null,8,["color"])):ye("v-if",!0),e.predefine?(z(),be(u,{key:1,ref:"predefine",color:e.color,colors:e.predefine},null,8,["color","colors"])):ye("v-if",!0),re("div",{class:de(e.ns.be("dropdown","btns"))},[re("span",{class:de(e.ns.be("dropdown","value"))},[ue(d,{modelValue:e.customInput,"onUpdate:modelValue":t[0]||(t[0]=y=>e.customInput=y),"validate-event":!1,size:"small",onKeyup:Dt(e.handleConfirm,["enter"]),onBlur:e.handleConfirm},null,8,["modelValue","onKeyup","onBlur"])],2),ue(c,{class:de(e.ns.be("dropdown","link-btn")),text:"",size:"small",onClick:e.clear},{default:he(()=>[Ue(Ae(e.t("el.colorpicker.clear")),1)]),_:1},8,["class","onClick"]),ue(c,{plain:"",size:"small",class:de(e.ns.be("dropdown","btn")),onClick:e.confirmValue},{default:he(()=>[Ue(Ae(e.t("el.colorpicker.confirm")),1)]),_:1},8,["class","onClick"])],2)])),[[m,e.hide]])]),default:he(()=>[re("div",{id:e.buttonId,class:de([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]=Dt((...y)=>e.handleTrigger&&e.handleTrigger(...y),["enter"]))},[e.colorDisabled?(z(),se("div",{key:0,class:de(e.ns.be("picker","mask"))},null,2)):ye("v-if",!0),re("div",{class:de(e.ns.be("picker","trigger")),onClick:t[1]||(t[1]=(...y)=>e.handleTrigger&&e.handleTrigger(...y))},[re("span",{class:de([e.ns.be("picker","color"),e.ns.is("alpha",e.showAlpha)])},[re("span",{class:de(e.ns.be("picker","color-inner")),style:Ne({backgroundColor:e.displayedColor})},[kt(ue(s,{class:de([e.ns.be("picker","icon"),e.ns.is("icon-arrow-down")])},{default:he(()=>[ue(f)]),_:1},8,["class"]),[[Ht,e.modelValue||e.showPanelColor]]),!e.modelValue&&!e.showPanelColor?(z(),be(s,{key:0,class:de([e.ns.be("picker","empty"),e.ns.is("icon-close")])},{default:he(()=>[ue(h)]),_:1},8,["class"])):ye("v-if",!0)],6)],2)],2)],42,wB)]),_:1},8,["visible","popper-class","transition"])}var Ru=Re(_B,[["render",CB],["__file","/home/runner/work/element-plus/element-plus/packages/components/color-picker/src/index.vue"]]);Ru.install=e=>{e.component(Ru.name,Ru)};const SB=Ru,xB=SB,jd={},TB=Fe({a11y:{type:Boolean,default:!0},locale:{type:Pe(Object)},size:ji,button:{type:Pe(Object)},experimentalFeatures:{type:Pe(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:Pe(Object)},zIndex:Number,namespace:{type:String,default:"el"}});Ee({name:"ElConfigProvider",props:TB,setup(e,{slots:t}){xe(()=>e.message,r=>{Object.assign(jd,r!=null?r:{})},{immediate:!0,deep:!0});const n=BM(e);return()=>Te(t,"default",{config:n==null?void 0:n.value})}});const kB=Fe({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Pe([String,Array,Object])},zIndex:{type:Pe([String,Number])}}),EB={click:e=>e instanceof MouseEvent};var OB=Ee({name:"ElOverlay",props:kB,emits:EB,setup(e,{slots:t,emit:n}){const r=Ie("overlay"),i=a=>{n("click",a)},{onClick:l,onMousedown:v,onMouseup:o}=kp(e.customMaskEvent?void 0:i);return()=>e.mask?ue("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:l,onMousedown:v,onMouseup:o},[Te(t,"default")],Pu.STYLE|Pu.CLASS|Pu.PROPS,["onClick","onMouseup","onMousedown"]):_t("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[Te(t,"default")])}});const rw=OB,iw=Fe({center:{type:Boolean,default:!1},alignCenter:{type:Boolean,default:!1},closeIcon:{type:Xt},customClass:{type:String,default:""},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},showClose:{type:Boolean,default:!0},title:{type:String,default:""}}),AB={close:()=>!0},PB=["aria-label"],IB=["id"],MB={name:"ElDialogContent"},LB=Ee({...MB,props:iw,emits:AB,setup(e){const t=e,{t:n}=hn(),{Close:r}=kM,{dialogRef:i,headerRef:l,bodyId:v,ns:o,style:a}=qe(d1),{focusTrapRef:u}=qe(U1),d=PM(u,i),c=ee(()=>t.draggable);return w1(i,l,c),(f,s)=>(z(),se("div",{ref:C(d),class:de([C(o).b(),C(o).is("fullscreen",f.fullscreen),C(o).is("draggable",C(c)),C(o).is("align-center",f.alignCenter),{[C(o).m("center")]:f.center},f.customClass]),style:Ne(C(a)),tabindex:"-1",onClick:s[1]||(s[1]=tt(()=>{},["stop"]))},[re("header",{ref_key:"headerRef",ref:l,class:de(C(o).e("header"))},[Te(f.$slots,"header",{},()=>[re("span",{role:"heading",class:de(C(o).e("title"))},Ae(f.title),3)]),f.showClose?(z(),se("button",{key:0,"aria-label":C(n)("el.dialog.close"),class:de(C(o).e("headerbtn")),type:"button",onClick:s[0]||(s[0]=h=>f.$emit("close"))},[ue(C(Le),{class:de(C(o).e("close"))},{default:he(()=>[(z(),be(Tt(f.closeIcon||C(r))))]),_:1},8,["class"])],10,PB)):ye("v-if",!0)],2),re("div",{id:C(v),class:de(C(o).e("body"))},[Te(f.$slots,"default")],10,IB),f.$slots.footer?(z(),se("footer",{key:0,class:de(C(o).e("footer"))},[Te(f.$slots,"footer")],2)):ye("v-if",!0)],6))}});var RB=Re(LB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog-content.vue"]]);const DB=Fe({...iw,appendToBody:{type:Boolean,default:!1},beforeClose:{type:Pe(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}}),$B={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[wt]:e=>Fn(e),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},BB=(e,t)=>{const r=St().emit,{nextZIndex:i}=El();let l="";const v=Vi(),o=Vi(),a=oe(!1),u=oe(!1),d=oe(!1),c=oe(e.zIndex||i());let f,s;const h=fi("namespace",Kc),g=ee(()=>{const F={},O=`--${h.value}-dialog`;return e.fullscreen||(e.top&&(F[`${O}-margin-top`]=e.top),e.width&&(F[`${O}-width`]=Ar(e.width))),F}),m=ee(()=>e.alignCenter?{display:"flex"}:{});function y(){r("opened")}function b(){r("closed"),r(wt,!1),e.destroyOnClose&&(d.value=!1)}function _(){r("close")}function w(){s==null||s(),f==null||f(),e.openDelay&&e.openDelay>0?{stop:f}=qs(()=>E(),e.openDelay):E()}function S(){f==null||f(),s==null||s(),e.closeDelay&&e.closeDelay>0?{stop:s}=qs(()=>I(),e.closeDelay):I()}function x(){function F(O){O||(u.value=!0,a.value=!1)}e.beforeClose?e.beforeClose(F):S()}function T(){e.closeOnClickModal&&x()}function E(){!dt||(a.value=!0)}function I(){a.value=!1}function D(){r("openAutoFocus")}function N(){r("closeAutoFocus")}e.lockScroll&&C1(a);function L(){e.closeOnPressEscape&&x()}return xe(()=>e.modelValue,F=>{F?(u.value=!1,w(),d.value=!0,c.value=e.zIndex?c.value++:i(),Xe(()=>{r("open"),t.value&&(t.value.scrollTop=0)})):a.value&&S()}),xe(()=>e.fullscreen,F=>{!t.value||(F?(l=t.value.style.transform,t.value.style.transform=""):t.value.style.transform=l)}),nt(()=>{e.modelValue&&(a.value=!0,d.value=!0,w())}),{afterEnter:y,afterLeave:b,beforeLeave:_,handleClose:x,onModalClick:T,close:S,doClose:I,onOpenAutoFocus:D,onCloseAutoFocus:N,onCloseRequested:L,titleId:v,bodyId:o,closed:u,style:g,overlayDialogStyle:m,rendered:d,visible:a,zIndex:c}},FB=["aria-label","aria-labelledby","aria-describedby"],zB={name:"ElDialog",inheritAttrs:!1},NB=Ee({...zB,props:DB,emits:$B,setup(e,{expose:t}){const n=e,r=$o();Zs({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)),Zs({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=oe(),v=oe(),o=oe(),{visible:a,titleId:u,bodyId:d,style:c,overlayDialogStyle:f,rendered:s,zIndex:h,afterEnter:g,afterLeave:m,beforeLeave:y,handleClose:b,onModalClick:_,onOpenAutoFocus:w,onCloseAutoFocus:S,onCloseRequested:x}=BB(n,l);gt(d1,{dialogRef:l,headerRef:v,bodyId:d,ns:i,rendered:s,style:c});const T=kp(_),E=ee(()=>n.draggable&&!n.fullscreen);return t({visible:a,dialogContentRef:o}),(I,D)=>(z(),be(ep,{to:"body",disabled:!I.appendToBody},[ue(dn,{name:"dialog-fade",onAfterEnter:C(g),onAfterLeave:C(m),onBeforeLeave:C(y),persisted:""},{default:he(()=>[kt(ue(C(rw),{"custom-mask-event":"",mask:I.modal,"overlay-class":I.modalClass,"z-index":C(h)},{default:he(()=>[re("div",{role:"dialog","aria-modal":"true","aria-label":I.title||void 0,"aria-labelledby":I.title?void 0:C(u),"aria-describedby":C(d),class:de(`${C(i).namespace.value}-overlay-dialog`),style:Ne(C(f)),onClick:D[0]||(D[0]=(...N)=>C(T).onClick&&C(T).onClick(...N)),onMousedown:D[1]||(D[1]=(...N)=>C(T).onMousedown&&C(T).onMousedown(...N)),onMouseup:D[2]||(D[2]=(...N)=>C(T).onMouseup&&C(T).onMouseup(...N))},[ue(C(Dp),{loop:"",trapped:C(a),"focus-start-el":"container",onFocusAfterTrapped:C(w),onFocusAfterReleased:C(S),onReleaseRequested:C(x)},{default:he(()=>[C(s)?(z(),be(RB,Tn({key:0,ref_key:"dialogContentRef",ref:o},I.$attrs,{"custom-class":I.customClass,center:I.center,"align-center":I.alignCenter,"close-icon":I.closeIcon,draggable:C(E),fullscreen:I.fullscreen,"show-close":I.showClose,title:I.title,onClose:C(b)}),qu({header:he(()=>[I.$slots.title?Te(I.$slots,"title",{key:1}):Te(I.$slots,"header",{key:0,close:C(b),titleId:C(u),titleClass:C(i).e("title")})]),default:he(()=>[Te(I.$slots,"default")]),_:2},[I.$slots.footer?{name:"footer",fn:he(()=>[Te(I.$slots,"footer")])}:void 0]),1040,["custom-class","center","align-center","close-icon","draggable","fullscreen","show-close","title","onClose"])):ye("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onReleaseRequested"])],46,FB)]),_:3},8,["mask","overlay-class","z-index"]),[[Ht,C(a)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["disabled"]))}});var jB=Re(NB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/dialog/src/dialog.vue"]]);const VB=Et(jB),UB=Fe({direction:{type:String,values:["horizontal","vertical"],default:"horizontal"},contentPosition:{type:String,values:["left","center","right"],default:"center"},borderStyle:{type:Pe(String),default:"solid"}}),HB={name:"ElDivider"},WB=Ee({...HB,props:UB,setup(e){const t=e,n=Ie("divider"),r=ee(()=>n.cssVar({"border-style":t.borderStyle}));return(i,l)=>(z(),se("div",{class:de([C(n).b(),C(n).m(i.direction)]),style:Ne(C(r)),role:"separator"},[i.$slots.default&&i.direction!=="vertical"?(z(),se("div",{key:0,class:de([C(n).e("text"),C(n).is(i.contentPosition)])},[Te(i.$slots,"default")],2)):ye("v-if",!0)],6))}});var YB=Re(WB,[["__file","/home/runner/work/element-plus/element-plus/packages/components/divider/src/divider.vue"]]);const XB=Et(YB),KB={inheritAttrs:!1};function GB(e,t,n,r,i,l){return Te(e.$slots,"default")}var qB=Re(KB,[["render",GB],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection.vue"]]);const ZB={name:"ElCollectionItem",inheritAttrs:!1};function JB(e,t,n,r,i,l){return Te(e.$slots,"default")}var QB=Re(ZB,[["render",JB],["__file","/home/runner/work/element-plus/element-plus/packages/components/collection/src/collection-item.vue"]]);const eF="data-el-collection-item",tF=e=>{const t=`El${e}Collection`,n=`${t}Item`,r=Symbol(t),i=Symbol(n),l={...qB,name:t,setup(){const o=oe(null),a=new Map;gt(r,{itemMap:a,getItems:()=>{const d=C(o);if(!d)return[];const c=Array.from(d.querySelectorAll(`[${eF}]`));return[...a.values()].sort((s,h)=>c.indexOf(s.ref)-c.indexOf(h.ref))},collectionRef:o})}},v={...QB,name:n,setup(o,{attrs:a}){const u=oe(null),d=qe(r,void 0);gt(i,{collectionItemRef:u}),nt(()=>{const c=C(u);c&&d.itemMap.set(c,{ref:c,...a})}),Yt(()=>{const c=C(u);d.itemMap.delete(c)})}};return{COLLECTION_INJECTION_KEY:r,COLLECTION_ITEM_INJECTION_KEY:i,ElCollection:l,ElCollectionItem:v}},Ef=Fe({trigger:el.trigger,effect:{...Vn.effect,default:"light"},type:{type:Pe(String)},placement:{type:Pe(String),default:"bottom"},popperOptions:{type:Pe(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:Pe([Number,String]),default:0},maxHeight:{type:Pe([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:Pe(Object)}});Fe({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:Xt}});Fe({onKeydown:{type:Pe(Function)}});tF("Dropdown");let nF=0;const rF=Ee({name:"ImgEmpty",setup(){return{ns:Ie("empty"),id:++nF}}}),iF={viewBox:"0 0 79 86",version:"1.1",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},aF=["id"],oF=["stop-color"],sF=["stop-color"],lF=["id"],uF=["stop-color"],cF=["stop-color"],fF=["id"],dF={id:"Illustrations",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},hF={id:"B-type",transform:"translate(-1268.000000, -535.000000)"},pF={id:"Group-2",transform:"translate(1268.000000, 535.000000)"},mF=["fill"],gF=["fill"],vF={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)"},yF=["fill"],bF=["fill"],_F=["fill"],wF=["fill"],CF=["fill"],SF={id:"Rectangle-Copy-17",transform:"translate(53.000000, 45.000000)"},xF=["fill","xlink:href"],TF=["fill","mask"],kF=["fill"];function EF(e,t,n,r,i,l){return z(),se("svg",iF,[re("defs",null,[re("linearGradient",{id:`linearGradient-1-${e.id}`,x1:"38.8503086%",y1:"0%",x2:"61.1496914%",y2:"100%"},[re("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,oF),re("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-4")})`,offset:"100%"},null,8,sF)],8,aF),re("linearGradient",{id:`linearGradient-2-${e.id}`,x1:"0%",y1:"9.5%",x2:"100%",y2:"90.5%"},[re("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-1")})`,offset:"0%"},null,8,uF),re("stop",{"stop-color":`var(${e.ns.cssVarBlockName("fill-color-6")})`,offset:"100%"},null,8,cF)],8,lF),re("rect",{id:`path-3-${e.id}`,x:"0",y:"0",width:"17",height:"36"},null,8,fF)]),re("g",dF,[re("g",hF,[re("g",pF,[re("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,mF),re("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,gF),re("g",vF,[re("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,yF),re("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,bF),re("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,_F),re("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,wF)]),re("rect",{id:"Rectangle-Copy-15",fill:`url(#linearGradient-2-${e.id})`,x:"13",y:"45",width:"40",height:"36"},null,8,CF),re("g",SF,[re("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,xF),re("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,TF)]),re("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,kF)])])])])}var OF=Re(rF,[["render",EF],["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/img-empty.vue"]]);const AF={image:{type:String,default:""},imageSize:Number,description:{type:String,default:""}},PF=["src"],IF={key:1},MF={name:"ElEmpty"},LF=Ee({...MF,props:AF,setup(e){const t=e,{t:n}=hn(),r=Ie("empty"),i=ee(()=>t.description||n("el.table.emptyText")),l=ee(()=>({width:t.imageSize?`${t.imageSize}px`:""}));return(v,o)=>(z(),se("div",{class:de(C(r).b())},[re("div",{class:de(C(r).e("image")),style:Ne(C(l))},[v.image?(z(),se("img",{key:0,src:v.image,ondragstart:"return false"},null,8,PF)):Te(v.$slots,"image",{key:1},()=>[ue(OF)])],6),re("div",{class:de(C(r).e("description"))},[v.$slots.description?Te(v.$slots,"description",{key:0}):(z(),se("p",IF,Ae(C(i)),1))],2),v.$slots.default?(z(),se("div",{key:0,class:de(C(r).e("bottom"))},[Te(v.$slots,"default")],2)):ye("v-if",!0)],2))}});var RF=Re(LF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/empty/src/empty.vue"]]);const DF=Et(RF),$F=Fe({model:Object,rules:{type:Pe(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:Tl},disabled:Boolean,validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},scrollToError:Boolean}),BF={validate:(e,t,n)=>(He(e)||Ge(e))&&Fn(t)&&Ge(n)};function FF(){const e=oe([]),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,v){if(l&&v){const o=n(v);e.value.splice(o,1,l)}else l&&e.value.push(l)}function i(l){const v=n(l);v>-1&&e.value.splice(v,1)}return{autoLabelWidth:t,registerLabelWidth:r,deregisterLabelWidth:i}}const ru=(e,t)=>{const n=Ed(t);return n.length>0?e.filter(r=>r.prop&&n.includes(r.prop)):e},zF={name:"ElForm"},NF=Ee({...zF,props:$F,emits:BF,setup(e,{expose:t,emit:n}){const r=e,i=[],l=Zn(),v=Ie("form"),o=ee(()=>{const{labelPosition:b,inline:_}=r;return[v.b(),v.m(l.value||"default"),{[v.m(`label-${b}`)]:b,[v.m("inline")]:_}]}),a=b=>{i.push(b)},u=b=>{b.prop&&i.splice(i.indexOf(b),1)},d=(b=[])=>{!r.model||ru(i,b).forEach(_=>_.resetField())},c=(b=[])=>{ru(i,b).forEach(_=>_.clearValidate())},f=ee(()=>!!r.model),s=b=>{if(i.length===0)return[];const _=ru(i,b);return _.length?_:[]},h=async b=>m(void 0,b),g=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)},m=async(b=[],_)=>{const w=!Ye(_);try{const S=await g(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=ru(i,b)[0];w&&((_=w.$el)==null||_.scrollIntoView())};return xe(()=>r.rules,()=>{r.validateOnRuleChange&&h().catch(b=>void 0)},{deep:!0}),gt(No,vt({...Xn(r),emit:n,resetFields:d,clearValidate:c,validateField:m,addField:a,removeField:u,...FF()})),t({validate:h,validateField:m,resetFields:d,clearValidate:c,scrollToField:y}),(b,_)=>(z(),se("form",{class:de(C(o))},[Te(b.$slots,"default")],2))}});var jF=Re(NF,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form.vue"]]);function ma(){return ma=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ma.apply(this,arguments)}function VF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,nl(e,t)}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vd(e)}function nl(e,t){return nl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nl(e,t)}function UF(){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 Du(e,t,n){return UF()?Du=Reflect.construct.bind():Du=function(i,l,v){var o=[null];o.push.apply(o,l);var a=Function.bind.apply(i,o),u=new a;return v&&nl(u,v.prototype),u},Du.apply(null,arguments)}function HF(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Ud(e){var t=typeof Map=="function"?new Map:void 0;return Ud=function(r){if(r===null||!HF(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 Du(r,arguments,Vd(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),nl(i,r)},Ud(e)}var WF=/%[sdj%]/g,YF=function(){};typeof process<"u"&&process.env;function Hd(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 Dn(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 v=e.replace(WF,function(o){if(o==="%%")return"%";if(i>=l)return o;switch(o){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return o}});return v}return e}function XF(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Gt(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||XF(t)&&typeof e=="string"&&!e)}function KF(e,t,n){var r=[],i=0,l=e.length;function v(o){r.push.apply(r,o||[]),i++,i===l&&n(r)}e.forEach(function(o){t(o,v)})}function s0(e,t,n){var r=0,i=e.length;function l(v){if(v&&v.length){n(v);return}var o=r;r=r+1,o<i?t(e[o],l):n([])}l([])}function GF(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,e[n]||[])}),t}var l0=function(e){VF(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}(Ud(Error));function qF(e,t,n,r,i){if(t.first){var l=new Promise(function(f,s){var h=function(y){return r(y),y.length?s(new l0(y,Hd(y))):f(i)},g=GF(e);s0(g,n,h)});return l.catch(function(f){return f}),l}var v=t.firstFields===!0?Object.keys(e):t.firstFields||[],o=Object.keys(e),a=o.length,u=0,d=[],c=new Promise(function(f,s){var h=function(m){if(d.push.apply(d,m),u++,u===a)return r(d),d.length?s(new l0(d,Hd(d))):f(i)};o.length||(r(d),f(i)),o.forEach(function(g){var m=e[g];v.indexOf(g)!==-1?s0(m,n,h):KF(m,n,h)})});return c.catch(function(f){return f}),c}function ZF(e){return!!(e&&e.message!==void 0)}function JF(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function u0(e,t){return function(n){var r;return e.fullFields?r=JF(t,e.fullFields):r=t[n.field||e.fullField],ZF(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 c0(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];typeof r=="object"&&typeof e[n]=="object"?e[n]=ma({},e[n],r):e[n]=r}}return e}var aw=function(t,n,r,i,l,v){t.required&&(!r.hasOwnProperty(t.field)||Gt(n,v||t.type))&&i.push(Dn(l.messages.required,t.fullField))},QF=function(t,n,r,i,l){(/^\s+$/.test(n)||n==="")&&i.push(Dn(l.messages.whitespace,t.fullField))},iu,ez=function(){if(iu)return iu;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+"$)"),v=new RegExp("^"+n+"$"),o=new RegExp("^"+i+"$"),a=function(w){return w&&w.exact?l:new RegExp("(?:"+t(w)+n+t(w)+")|(?:"+t(w)+i+t(w)+")","g")};a.v4=function(_){return _&&_.exact?v:new RegExp(""+t(_)+n+t(_),"g")},a.v6=function(_){return _&&_.exact?o:new RegExp(""+t(_)+i+t(_),"g")};var u="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",c=a.v4().source,f=a.v6().source,s="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",h="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+d+"(?:localhost|"+c+"|"+f+"|"+s+h+g+")"+m+y;return iu=new RegExp("(?:^"+b+"$)","i"),iu},f0={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},cs={integer:function(t){return cs.number(t)&&parseInt(t,10)===t},float:function(t){return cs.number(t)&&!cs.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"&&!cs.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(f0.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(ez())},hex:function(t){return typeof t=="string"&&!!t.match(f0.hex)}},tz=function(t,n,r,i,l){if(t.required&&n===void 0){aw(t,n,r,i,l);return}var v=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=t.type;v.indexOf(o)>-1?cs[o](n)||i.push(Dn(l.messages.types[o],t.fullField,t.type)):o&&typeof n!==t.type&&i.push(Dn(l.messages.types[o],t.fullField,t.type))},nz=function(t,n,r,i,l){var v=typeof t.len=="number",o=typeof t.min=="number",a=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,c=null,f=typeof n=="number",s=typeof n=="string",h=Array.isArray(n);if(f?c="number":s?c="string":h&&(c="array"),!c)return!1;h&&(d=n.length),s&&(d=n.replace(u,"_").length),v?d!==t.len&&i.push(Dn(l.messages[c].len,t.fullField,t.len)):o&&!a&&d<t.min?i.push(Dn(l.messages[c].min,t.fullField,t.min)):a&&!o&&d>t.max?i.push(Dn(l.messages[c].max,t.fullField,t.max)):o&&a&&(d<t.min||d>t.max)&&i.push(Dn(l.messages[c].range,t.fullField,t.min,t.max))},eo="enum",rz=function(t,n,r,i,l){t[eo]=Array.isArray(t[eo])?t[eo]:[],t[eo].indexOf(n)===-1&&i.push(Dn(l.messages[eo],t.fullField,t[eo].join(", ")))},iz=function(t,n,r,i,l){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||i.push(Dn(l.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var v=new RegExp(t.pattern);v.test(n)||i.push(Dn(l.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},st={required:aw,whitespace:QF,type:tz,range:nz,enum:rz,pattern:iz},az=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n,"string")&&!t.required)return r();st.required(t,n,i,v,l,"string"),Gt(n,"string")||(st.type(t,n,i,v,l),st.range(t,n,i,v,l),st.pattern(t,n,i,v,l),t.whitespace===!0&&st.whitespace(t,n,i,v,l))}r(v)},oz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n)&&!t.required)return r();st.required(t,n,i,v,l),n!==void 0&&st.type(t,n,i,v,l)}r(v)},sz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n===""&&(n=void 0),Gt(n)&&!t.required)return r();st.required(t,n,i,v,l),n!==void 0&&(st.type(t,n,i,v,l),st.range(t,n,i,v,l))}r(v)},lz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n)&&!t.required)return r();st.required(t,n,i,v,l),n!==void 0&&st.type(t,n,i,v,l)}r(v)},uz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n)&&!t.required)return r();st.required(t,n,i,v,l),Gt(n)||st.type(t,n,i,v,l)}r(v)},cz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n)&&!t.required)return r();st.required(t,n,i,v,l),n!==void 0&&(st.type(t,n,i,v,l),st.range(t,n,i,v,l))}r(v)},fz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n)&&!t.required)return r();st.required(t,n,i,v,l),n!==void 0&&(st.type(t,n,i,v,l),st.range(t,n,i,v,l))}r(v)},dz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(n==null&&!t.required)return r();st.required(t,n,i,v,l,"array"),n!=null&&(st.type(t,n,i,v,l),st.range(t,n,i,v,l))}r(v)},hz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n)&&!t.required)return r();st.required(t,n,i,v,l),n!==void 0&&st.type(t,n,i,v,l)}r(v)},pz="enum",mz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n)&&!t.required)return r();st.required(t,n,i,v,l),n!==void 0&&st[pz](t,n,i,v,l)}r(v)},gz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n,"string")&&!t.required)return r();st.required(t,n,i,v,l),Gt(n,"string")||st.pattern(t,n,i,v,l)}r(v)},vz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n,"date")&&!t.required)return r();if(st.required(t,n,i,v,l),!Gt(n,"date")){var a;n instanceof Date?a=n:a=new Date(n),st.type(t,a,i,v,l),a&&st.range(t,a.getTime(),i,v,l)}}r(v)},yz=function(t,n,r,i,l){var v=[],o=Array.isArray(n)?"array":typeof n;st.required(t,n,i,v,l,o),r(v)},Of=function(t,n,r,i,l){var v=t.type,o=[],a=t.required||!t.required&&i.hasOwnProperty(t.field);if(a){if(Gt(n,v)&&!t.required)return r();st.required(t,n,i,o,l,v),Gt(n,v)||st.type(t,n,i,o,l)}r(o)},bz=function(t,n,r,i,l){var v=[],o=t.required||!t.required&&i.hasOwnProperty(t.field);if(o){if(Gt(n)&&!t.required)return r();st.required(t,n,i,v,l)}r(v)},Es={string:az,method:oz,number:sz,boolean:lz,regexp:uz,integer:cz,float:fz,array:dz,object:hz,enum:mz,pattern:gz,date:vz,url:Of,hex:Of,email:Of,required:yz,any:bz};function Wd(){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 Yd=Wd(),Pl=function(){function e(n){this.rules=null,this._messages=Yd,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 v=r[l];i.rules[l]=Array.isArray(v)?v:[v]})},t.messages=function(r){return r&&(this._messages=c0(Wd(),r)),this._messages},t.validate=function(r,i,l){var v=this;i===void 0&&(i={}),l===void 0&&(l=function(){});var o=r,a=i,u=l;if(typeof a=="function"&&(u=a,a={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,o),Promise.resolve(o);function d(g){var m=[],y={};function b(w){if(Array.isArray(w)){var S;m=(S=m).concat.apply(S,w)}else m.push(w)}for(var _=0;_<g.length;_++)b(g[_]);m.length?(y=Hd(m),u(m,y)):u(null,o)}if(a.messages){var c=this.messages();c===Yd&&(c=Wd()),c0(c,a.messages),a.messages=c}else a.messages=this.messages();var f={},s=a.keys||Object.keys(this.rules);s.forEach(function(g){var m=v.rules[g],y=o[g];m.forEach(function(b){var _=b;typeof _.transform=="function"&&(o===r&&(o=ma({},o)),y=o[g]=_.transform(y)),typeof _=="function"?_={validator:_}:_=ma({},_),_.validator=v.getValidationMethod(_),_.validator&&(_.field=g,_.fullField=_.fullField||g,_.type=v.getType(_),f[g]=f[g]||[],f[g].push({rule:_,value:y,source:o,field:g}))})});var h={};return qF(f,a,function(g,m){var y=g.rule,b=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");b=b&&(y.required||!y.required&&g.value),y.field=g.field;function _(x,T){return ma({},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];!a.suppressWarning&&T.length&&e.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var E=T.map(u0(y,o));if(a.first&&E.length)return h[y.field]=1,m(E);if(!b)m(E);else{if(y.required&&!g.value)return y.message!==void 0?E=[].concat(y.message).map(u0(y,o)):a.error&&(E=[a.error(y,Dn(a.messages.required,y.field))]),m(E);var I={};y.defaultField&&Object.keys(g.value).map(function(L){I[L]=y.defaultField}),I=ma({},I,g.rule.fields);var D={};Object.keys(I).forEach(function(L){var F=I[L],O=Array.isArray(F)?F:[F];D[L]=O.map(_.bind(null,L))});var N=new e(D);N.messages(a.messages),g.rule.options&&(g.rule.options.messages=a.messages,g.rule.options.error=a.error),N.validate(g.value,g.rule.options||a,function(L){var F=[];E&&E.length&&F.push.apply(F,E),L&&L.length&&F.push.apply(F,L),m(F.length?F:null)})}}var S;if(y.asyncValidator)S=y.asyncValidator(y,g.value,w,g.source,a);else if(y.validator){try{S=y.validator(y,g.value,w,g.source,a)}catch(x){console.error==null||console.error(x),a.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(g){d(g)},o)},t.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Es.hasOwnProperty(r.type))throw new Error(Dn("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"?Es.required:Es[this.getType(r)]||void 0},e}();Pl.register=function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Es[t]=n};Pl.warning=YF;Pl.messages=Yd;Pl.validators=Es;const _z=["","error","validating","success"],wz=Fe({label:String,labelWidth:{type:[String,Number],default:""},prop:{type:Pe([String,Array])},required:{type:Boolean,default:void 0},rules:{type:Pe([Object,Array])},error:String,validateStatus:{type:String,values:_z},for:String,inlineMessage:{type:[String,Boolean],default:""},showMessage:{type:Boolean,default:!0},size:{type:String,values:Tl}}),d0="ElLabelWrap";var Cz=Ee({name:d0,props:{isAutoWidth:Boolean,updateAll:Boolean},setup(e,{slots:t}){const n=qe(No,void 0);qe(Pa)||bn(d0,"usage: <el-form-item><label-wrap /></el-form-item>");const i=Ie("form"),l=oe(),v=oe(0),o=()=>{var d;if((d=l.value)!=null&&d.firstElementChild){const c=window.getComputedStyle(l.value.firstElementChild).width;return Math.ceil(Number.parseFloat(c))}else return 0},a=(d="update")=>{Xe(()=>{t.default&&e.isAutoWidth&&(d==="update"?v.value=o():d==="remove"&&(n==null||n.deregisterLabelWidth(v.value)))})},u=()=>a("update");return nt(()=>{u()}),Yt(()=>{a("remove")}),ja(()=>u()),xe(v,(d,c)=>{e.updateAll&&(n==null||n.registerLabelWidth(d,c))}),Ir(ee(()=>{var d,c;return(c=(d=l.value)==null?void 0:d.firstElementChild)!=null?c:null}),u),()=>{var d,c;if(!t)return null;const{isAutoWidth:f}=e;if(f){const s=n==null?void 0:n.autoLabelWidth,h={};if(s&&s!=="auto"){const g=Math.max(0,Number.parseInt(s,10)-v.value),m=n.labelPosition==="left"?"marginRight":"marginLeft";g&&(h[m]=`${g}px`)}return ue("div",{ref:l,class:[i.be("item","label-wrap")],style:h},[(d=t.default)==null?void 0:d.call(t)])}else return ue(je,{ref:l},[(c=t.default)==null?void 0:c.call(t)])}}});const Sz=["role","aria-labelledby"],xz={name:"ElFormItem"},Tz=Ee({...xz,props:wz,setup(e,{expose:t}){const n=e,r=$o(),i=qe(No,void 0),l=qe(Pa,void 0),v=Zn(void 0,{formItem:!1}),o=Ie("form-item"),a=Vi().value,u=oe([]),d=oe(""),c=CI(d,100),f=oe(""),s=oe();let h,g=!1;const m=ee(()=>{if((i==null?void 0:i.labelPosition)==="top")return{};const G=Ar(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return G?{width:G}:{}}),y=ee(()=>{if((i==null?void 0:i.labelPosition)==="top"||(i==null?void 0:i.inline))return{};if(!n.label&&!n.labelWidth&&I)return{};const G=Ar(n.labelWidth||(i==null?void 0:i.labelWidth)||"");return!n.label&&!r.label?{marginLeft:G}:{}}),b=ee(()=>[o.b(),o.m(v.value),o.is("error",d.value==="error"),o.is("validating",d.value==="validating"),o.is("success",d.value==="success"),o.is("required",O.value||n.required),o.is("no-asterisk",i==null?void 0:i.hideRequiredAsterisk),(i==null?void 0:i.requireAsteriskPosition)==="right"?"asterisk-right":"asterisk-left",{[o.m("feedback")]:i==null?void 0:i.statusIcon}]),_=ee(()=>Fn(n.inlineMessage)?n.inlineMessage:(i==null?void 0:i.inlineMessage)||!1),w=ee(()=>[o.e("error"),{[o.em("error","inline")]:_.value}]),S=ee(()=>n.prop?Ge(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),E=ee(()=>!T.value&&x.value),I=!!l,D=ee(()=>{const G=i==null?void 0:i.model;if(!(!G||!n.prop))return bf(G,n.prop).value}),N=ee(()=>{const{required:G}=n,te=[];n.rules&&te.push(...Ed(n.rules));const fe=i==null?void 0:i.rules;if(fe&&n.prop){const pe=bf(fe,n.prop).value;pe&&te.push(...Ed(pe))}if(G!==void 0){const pe=te.map((ve,H)=>[ve,H]).filter(([ve])=>Object.keys(ve).includes("required"));if(pe.length>0)for(const[ve,H]of pe)ve.required!==G&&(te[H]={...ve,required:G});else te.push({required:G})}return te}),L=ee(()=>N.value.length>0),F=G=>N.value.filter(fe=>!fe.trigger||!G?!0:Array.isArray(fe.trigger)?fe.trigger.includes(G):fe.trigger===G).map(({trigger:fe,...pe})=>pe),O=ee(()=>N.value.some(G=>G.required)),V=ee(()=>{var G;return c.value==="error"&&n.showMessage&&((G=i==null?void 0:i.showMessage)!=null?G:!0)}),ne=ee(()=>`${n.label||""}${(i==null?void 0:i.labelSuffix)||""}`),J=G=>{d.value=G},le=G=>{var te,fe;const{errors:pe,fields:ve}=G;(!pe||!ve)&&console.error(G),J("error"),f.value=pe?(fe=(te=pe==null?void 0:pe[0])==null?void 0:te.message)!=null?fe:`${n.prop} is required`:"",i==null||i.emit("validate",n.prop,!1,f.value)},M=()=>{J("success"),i==null||i.emit("validate",n.prop,!0,"")},U=async G=>{const te=S.value;return new Pl({[te]:G}).validate({[te]:D.value},{firstFields:!0}).then(()=>(M(),!0)).catch(pe=>(le(pe),Promise.reject(pe)))},R=async(G,te)=>{if(g)return!1;const fe=Ye(te);if(!L.value)return te==null||te(!1),!1;const pe=F(G);return pe.length===0?(te==null||te(!0),!0):(J("validating"),U(pe).then(()=>(te==null||te(!0),!0)).catch(ve=>{const{fields:H}=ve;return te==null||te(!1,H),fe?!1:Promise.reject(H)}))},P=()=>{J(""),f.value="",g=!1},Q=async()=>{const G=i==null?void 0:i.model;if(!G||!n.prop)return;const te=bf(G,n.prop);g=!0,te.value=tv(h),await Xe(),P(),g=!1},j=G=>{u.value.includes(G)||u.value.push(G)},A=G=>{u.value=u.value.filter(te=>te!==G)};xe(()=>n.error,G=>{f.value=G||"",J(G?"error":"")},{immediate:!0}),xe(()=>n.validateStatus,G=>J(G||""));const q=vt({...Xn(n),$el:s,size:v,validateState:d,labelId:a,inputIds:u,isGroup:E,addInputId:j,removeInputId:A,resetField:Q,clearValidate:P,validate:R});return gt(Pa,q),nt(()=>{n.prop&&(i==null||i.addField(q),h=tv(D.value))}),Yt(()=>{i==null||i.removeField(q)}),t({size:v,validateMessage:f,validateState:d,validate:R,clearValidate:P,resetField:Q}),(G,te)=>{var fe;return z(),se("div",{ref_key:"formItemRef",ref:s,class:de(C(b)),role:C(E)?"group":void 0,"aria-labelledby":C(E)?C(a):void 0},[ue(C(Cz),{"is-auto-width":C(m).width==="auto","update-all":((fe=C(i))==null?void 0:fe.labelWidth)==="auto"},{default:he(()=>[C(x)?(z(),be(Tt(C(T)?"label":"div"),{key:0,id:C(a),for:C(T),class:de(C(o).e("label")),style:Ne(C(m))},{default:he(()=>[Te(G.$slots,"label",{label:C(ne)},()=>[Ue(Ae(C(ne)),1)])]),_:3},8,["id","for","class","style"])):ye("v-if",!0)]),_:3},8,["is-auto-width","update-all"]),re("div",{class:de(C(o).e("content")),style:Ne(C(y))},[Te(G.$slots,"default"),ue(dn,{name:`${C(o).namespace.value}-zoom-in-top`},{default:he(()=>[C(V)?Te(G.$slots,"error",{key:0,error:f.value},()=>[re("div",{class:de(C(w))},Ae(f.value),3)]):ye("v-if",!0)]),_:3},8,["name"])],6)],10,Sz)}}});var ow=Re(Tz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);const Bp=Et(jF,{FormItem:ow}),Li=dr(ow),kz=Fe({urlList:{type:Pe(Array),default:()=>rn([])},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}}),Ez={close:()=>!0,switch:e=>ft(e)},Oz=["src"],Az={name:"ElImageViewer"},Pz=Ee({...Az,props:kz,emits:Ez,setup(e,{expose:t,emit:n}){const r=e,i={CONTAIN:{name:"contain",icon:Fi(m3)},ORIGINAL:{name:"original",icon:Fi(t4)}},l=LM()?"DOMMouseScroll":"mousewheel",{t:v}=hn(),o=Ie("image-viewer"),{nextZIndex:a}=El(),u=oe(),d=oe([]),c=$h(),f=oe(!0),s=oe(r.initialIndex),h=fn(i.CONTAIN),g=oe({scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}),m=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:M,offsetX:U,offsetY:R,enableTransition:P}=g.value;let Q=U/le,j=R/le;switch(M%360){case 90:case-270:[Q,j]=[j,-Q];break;case 180:case-180:[Q,j]=[-Q,-j];break;case 270:case-90:[Q,j]=[-j,Q];break}const A={transform:`scale(${le}) rotate(${M}deg) translate(${Q}px, ${j}px)`,transition:P?"transform .3s":""};return h.value.name===i.CONTAIN.name&&(A.maxWidth=A.maxHeight="100%"),A}),S=ee(()=>ft(r.zIndex)?r.zIndex:a());function x(){E(),n("close")}function T(){const le=Ss(U=>{switch(U.code){case Ot.esc:r.closeOnPressEscape&&x();break;case Ot.space:F();break;case Ot.left:V();break;case Ot.up:J("zoomIn");break;case Ot.right:ne();break;case Ot.down:J("zoomOut");break}}),M=Ss(U=>{(U.wheelDelta?U.wheelDelta:-U.detail)>0?J("zoomIn",{zoomRate:1.2,enableTransition:!1}):J("zoomOut",{zoomRate:1.2,enableTransition:!1})});c.run(()=>{Ct(document,"keydown",le),Ct(document,l,M)})}function E(){c.stop()}function I(){f.value=!1}function D(le){f.value=!1,le.target.alt=v("el.image.error")}function N(le){if(f.value||le.button!==0||!u.value)return;g.value.enableTransition=!1;const{offsetX:M,offsetY:U}=g.value,R=le.pageX,P=le.pageY,Q=Ss(A=>{g.value={...g.value,offsetX:M+A.pageX-R,offsetY:U+A.pageY-P}}),j=Ct(document,"mousemove",Q);Ct(document,"mouseup",()=>{j()}),le.preventDefault()}function L(){g.value={scale:1,deg:0,offsetX:0,offsetY:0,enableTransition:!1}}function F(){if(f.value)return;const le=Dd(i),M=Object.values(i),U=h.value.name,P=(M.findIndex(Q=>Q.name===U)+1)%le.length;h.value=i[le[P]],L()}function O(le){const M=r.urlList.length;s.value=(le+M)%M}function V(){y.value&&!r.infinite||O(s.value-1)}function ne(){b.value&&!r.infinite||O(s.value+1)}function J(le,M={}){if(f.value)return;const{zoomRate:U,rotateDeg:R,enableTransition:P}={zoomRate:1.4,rotateDeg:90,enableTransition:!0,...M};switch(le){case"zoomOut":g.value.scale>.2&&(g.value.scale=Number.parseFloat((g.value.scale/U).toFixed(3)));break;case"zoomIn":g.value.scale<7&&(g.value.scale=Number.parseFloat((g.value.scale*U).toFixed(3)));break;case"clockwise":g.value.deg+=R;break;case"anticlockwise":g.value.deg-=R;break}g.value.enableTransition=P}return xe(_,()=>{Xe(()=>{const le=d.value[0];le!=null&&le.complete||(f.value=!0)})}),xe(s,le=>{L(),n("switch",le)}),nt(()=>{var le,M;T(),(M=(le=u.value)==null?void 0:le.focus)==null||M.call(le)}),t({setActiveItem:O}),(le,M)=>(z(),be(ep,{to:"body",disabled:!le.teleported},[ue(dn,{name:"viewer-fade",appear:""},{default:he(()=>[re("div",{ref_key:"wrapper",ref:u,tabindex:-1,class:de(C(o).e("wrapper")),style:Ne({zIndex:C(S)})},[re("div",{class:de(C(o).e("mask")),onClick:M[0]||(M[0]=tt(U=>le.hideOnClickModal&&x(),["self"]))},null,2),ye(" CLOSE "),re("span",{class:de([C(o).e("btn"),C(o).e("close")]),onClick:x},[ue(C(Le),null,{default:he(()=>[ue(C(Er))]),_:1})],2),ye(" ARROW "),C(m)?ye("v-if",!0):(z(),se(je,{key:0},[re("span",{class:de([C(o).e("btn"),C(o).e("prev"),C(o).is("disabled",!le.infinite&&C(y))]),onClick:V},[ue(C(Le),null,{default:he(()=>[ue(C(Fc))]),_:1})],2),re("span",{class:de([C(o).e("btn"),C(o).e("next"),C(o).is("disabled",!le.infinite&&C(b))]),onClick:ne},[ue(C(Le),null,{default:he(()=>[ue(C(Sl))]),_:1})],2)],64)),ye(" ACTIONS "),re("div",{class:de([C(o).e("btn"),C(o).e("actions")])},[re("div",{class:de(C(o).e("actions__inner"))},[ue(C(Le),{onClick:M[1]||(M[1]=U=>J("zoomOut"))},{default:he(()=>[ue(C(nA))]),_:1}),ue(C(Le),{onClick:M[2]||(M[2]=U=>J("zoomIn"))},{default:he(()=>[ue(C(y_))]),_:1}),re("i",{class:de(C(o).e("actions__divider"))},null,2),ue(C(Le),{onClick:F},{default:he(()=>[(z(),be(Tt(C(h).icon)))]),_:1}),re("i",{class:de(C(o).e("actions__divider"))},null,2),ue(C(Le),{onClick:M[3]||(M[3]=U=>J("anticlockwise"))},{default:he(()=>[ue(C(p_))]),_:1}),ue(C(Le),{onClick:M[4]||(M[4]=U=>J("clockwise"))},{default:he(()=>[ue(C(m_))]),_:1})],2)],2),ye(" CANVAS "),re("div",{class:de(C(o).e("canvas"))},[(z(!0),se(je,null,jt(le.urlList,(U,R)=>kt((z(),se("img",{ref_for:!0,ref:P=>d.value[R]=P,key:U,src:U,style:Ne(C(w)),class:de(C(o).e("img")),onLoad:I,onError:D,onMousedown:N},null,46,Oz)),[[Ht,R===s.value]])),128))],2),Te(le.$slots,"default")],6)]),_:3})],8,["disabled"]))}});var Iz=Re(Pz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image-viewer/src/image-viewer.vue"]]);const Mz=Et(Iz),Lz=Fe({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:Pe([String,Object])},previewSrcList:{type:Pe(Array),default:()=>rn([])},previewTeleported:{type:Boolean,default:!1},zIndex:{type:Number},initialIndex:{type:Number,default:0},infinite:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0}}),Rz={load:e=>e instanceof Event,error:e=>e instanceof Event,switch:e=>ft(e),close:()=>!0,show:()=>!0},Dz=["src","loading"],$z={key:0},Bz={name:"ElImage",inheritAttrs:!1},Fz=Ee({...Bz,props:Lz,emits:Rz,setup(e,{emit:t}){const n=e;let r="";const{t:i}=hn(),l=Ie("image"),v=$b(),o=l1(),a=oe(),u=oe(!1),d=oe(!0),c=oe(!1),f=oe(),s=oe(),h=dt&&"loading"in HTMLImageElement.prototype;let g,m;const y=ee(()=>v.style),b=ee(()=>{const{fit:J}=n;return dt&&J?{objectFit:J}:{}}),_=ee(()=>{const{previewSrcList:J}=n;return Array.isArray(J)&&J.length>0}),w=ee(()=>{const{previewSrcList:J,initialIndex:le}=n;let M=le;return le>J.length-1&&(M=0),M}),S=ee(()=>n.loading==="eager"?!1:!h&&n.loading==="lazy"||n.lazy),x=()=>{!dt||(d.value=!0,u.value=!1,a.value=n.src)};function T(J){d.value=!1,u.value=!1,t("load",J)}function E(J){d.value=!1,u.value=!0,t("error",J)}function I(){vM(f.value,s.value)&&(x(),L())}const D=q_(I,200);async function N(){var J;if(!dt)return;await Xe();const{scrollContainer:le}=n;Oa(le)?s.value=le:Ge(le)&&le!==""?s.value=(J=document.querySelector(le))!=null?J:void 0:f.value&&(s.value=CM(f.value)),s.value&&(g=Ct(s,"scroll",D),setTimeout(()=>I(),100))}function L(){!dt||!s.value||!D||(g==null||g(),s.value=void 0)}function F(J){if(!!J.ctrlKey){if(J.deltaY<0)return J.preventDefault(),!1;if(J.deltaY>0)return J.preventDefault(),!1}}function O(){!_.value||(m=Ct("wheel",F,{passive:!1}),r=document.body.style.overflow,document.body.style.overflow="hidden",c.value=!0,t("show"))}function V(){m==null||m(),document.body.style.overflow=r,c.value=!1,t("close")}function ne(J){t("switch",J)}return xe(()=>n.src,()=>{S.value?(d.value=!0,u.value=!1,L(),N()):x()}),nt(()=>{S.value?N():x()}),(J,le)=>(z(),se("div",{ref_key:"container",ref:f,class:de([C(l).b(),J.$attrs.class]),style:Ne(C(y))},[a.value!==void 0&&!u.value?(z(),se("img",Tn({key:0},C(o),{src:a.value,loading:J.loading,style:C(b),class:[C(l).e("inner"),C(_)&&C(l).e("preview"),d.value&&C(l).is("loading")],onClick:O,onLoad:T,onError:E}),null,16,Dz)):ye("v-if",!0),d.value||u.value?(z(),se("div",{key:1,class:de(C(l).e("wrapper"))},[d.value?Te(J.$slots,"placeholder",{key:0},()=>[re("div",{class:de(C(l).e("placeholder"))},null,2)]):u.value?Te(J.$slots,"error",{key:1},()=>[re("div",{class:de(C(l).e("error"))},Ae(C(i)("el.image.error")),3)]):ye("v-if",!0)],2)):ye("v-if",!0),C(_)?(z(),se(je,{key:2},[c.value?(z(),be(C(Mz),{key:0,"z-index":J.zIndex,"initial-index":C(w),infinite:J.infinite,"url-list":J.previewSrcList,"hide-on-click-modal":J.hideOnClickModal,teleported:J.previewTeleported,"close-on-press-escape":J.closeOnPressEscape,onClose:V,onSwitch:ne},{default:he(()=>[J.$slots.viewer?(z(),se("div",$z,[Te(J.$slots,"viewer")])):ye("v-if",!0)]),_:3},8,["z-index","initial-index","infinite","url-list","hide-on-click-modal","teleported","close-on-press-escape"])):ye("v-if",!0)],64)):ye("v-if",!0)],6))}});var zz=Re(Fz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/image/src/image.vue"]]);const Fp=Et(zz),Nz=Fe({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:ji,controls:{type:Boolean,default:!0},controlsPosition:{type:String,default:"",values:["","right"]},valueOnClear:{type:[String,Number,null],validator:e=>e===null||ft(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}}),jz={[ti]:(e,t)=>e!==t,blur:e=>e instanceof FocusEvent,focus:e=>e instanceof FocusEvent,[Aa]:e=>ft(e)||Sr(e),[wt]:e=>ft(e)||Sr(e)},Vz=["aria-label","onKeydown"],Uz=["aria-label","onKeydown"],Hz={name:"ElInputNumber"},Wz=Ee({...Hz,props:Nz,emits:jz,setup(e,{expose:t,emit:n}){const r=e,{t:i}=hn(),l=Ie("input-number"),v=oe(),o=vt({currentValue:r.modelValue,userInput:null}),{formItem:a}=Xi(),u=ee(()=>ft(r.modelValue)&&b(r.modelValue,-1)<r.min),d=ee(()=>ft(r.modelValue)&&b(r.modelValue)>r.max),c=ee(()=>{const F=y(r.step);return ar(r.precision)?Math.max(y(r.modelValue),F):(F>r.precision,r.precision)}),f=ee(()=>r.controls&&r.controlsPosition==="right"),s=Zn(),h=Ha(),g=ee(()=>{if(o.userInput!==null)return o.userInput;let F=o.currentValue;if(Sr(F))return"";if(ft(F)){if(Number.isNaN(F))return"";ar(r.precision)||(F=F.toFixed(r.precision))}return F}),m=(F,O)=>{if(ar(O)&&(O=c.value),O===0)return Math.round(F);let V=String(F);const ne=V.indexOf(".");if(ne===-1||!V.replace(".","").split("")[ne+O])return F;const M=V.length;return V.charAt(M-1)==="5"&&(V=`${V.slice(0,Math.max(0,M-1))}6`),Number.parseFloat(Number(V).toFixed(O))},y=F=>{if(Sr(F))return 0;const O=F.toString(),V=O.indexOf(".");let ne=0;return V!==-1&&(ne=O.length-V-1),ne},b=(F,O=1)=>ft(F)?m(F+r.step*O):o.currentValue,_=()=>{if(r.readonly||h.value||d.value)return;const F=r.modelValue||0,O=b(F);x(O)},w=()=>{if(r.readonly||h.value||u.value)return;const F=r.modelValue||0,O=b(F,-1);x(O)},S=(F,O)=>{const{max:V,min:ne,step:J,precision:le,stepStrictly:M,valueOnClear:U}=r;let R=Number(F);if(Sr(F)||Number.isNaN(R))return null;if(F===""){if(U===null)return null;R=Ge(U)?{min:ne,max:V}[U]:U}return M&&(R=m(Math.round(R/J)*J,le)),ar(le)||(R=m(R,le)),(R>V||R<ne)&&(R=R>V?V:ne,O&&n("update:modelValue",R)),R},x=F=>{var O;const V=o.currentValue,ne=S(F);V!==ne&&(o.userInput=null,n("update:modelValue",ne),n("input",ne),n("change",ne,V),r.validateEvent&&((O=a==null?void 0:a.validate)==null||O.call(a,"change").catch(J=>void 0)),o.currentValue=ne)},T=F=>o.userInput=F,E=F=>{const O=F!==""?Number(F):"";(ft(O)&&!Number.isNaN(O)||F==="")&&x(O),o.userInput=null},I=()=>{var F,O;(O=(F=v.value)==null?void 0:F.focus)==null||O.call(F)},D=()=>{var F,O;(O=(F=v.value)==null?void 0:F.blur)==null||O.call(F)},N=F=>{n("focus",F)},L=F=>{var O;n("blur",F),r.validateEvent&&((O=a==null?void 0:a.validate)==null||O.call(a,"blur").catch(V=>void 0))};return xe(()=>r.modelValue,F=>{o.currentValue=S(F,!0),o.userInput=null},{immediate:!0}),nt(()=>{var F;const{min:O,max:V,modelValue:ne}=r,J=(F=v.value)==null?void 0:F.input;if(J.setAttribute("role","spinbutton"),Number.isFinite(V)?J.setAttribute("aria-valuemax",String(V)):J.removeAttribute("aria-valuemax"),Number.isFinite(O)?J.setAttribute("aria-valuemin",String(O)):J.removeAttribute("aria-valuemin"),J.setAttribute("aria-valuenow",String(o.currentValue)),J.setAttribute("aria-disabled",String(h.value)),!ft(ne)&&ne!=null){let le=Number(ne);Number.isNaN(le)&&(le=null),n("update:modelValue",le)}}),ja(()=>{var F;const O=(F=v.value)==null?void 0:F.input;O==null||O.setAttribute("aria-valuenow",`${o.currentValue}`)}),t({focus:I,blur:D}),(F,O)=>(z(),se("div",{class:de([C(l).b(),C(l).m(C(s)),C(l).is("disabled",C(h)),C(l).is("without-controls",!F.controls),C(l).is("controls-right",C(f))]),onDragstart:O[0]||(O[0]=tt(()=>{},["prevent"]))},[F.controls?kt((z(),se("span",{key:0,role:"button","aria-label":C(i)("el.inputNumber.decrease"),class:de([C(l).e("decrease"),C(l).is("disabled",C(u))]),onKeydown:Dt(w,["enter"])},[ue(C(Le),null,{default:he(()=>[C(f)?(z(),be(C(Bc),{key:0})):(z(),be(C(h_),{key:1}))]),_:1})],42,Vz)),[[C(t0),w]]):ye("v-if",!0),F.controls?kt((z(),se("span",{key:1,role:"button","aria-label":C(i)("el.inputNumber.increase"),class:de([C(l).e("increase"),C(l).is("disabled",C(d))]),onKeydown:Dt(_,["enter"])},[ue(C(Le),null,{default:he(()=>[C(f)?(z(),be(C(Ok),{key:0})):(z(),be(C(sp),{key:1}))]),_:1})],42,Uz)),[[C(t0),_]]):ye("v-if",!0),ue(C(Wa),{id:F.id,ref_key:"input",ref:v,type:"number",step:F.step,"model-value":C(g),placeholder:F.placeholder,readonly:F.readonly,disabled:C(h),size:C(s),max:F.max,min:F.min,name:F.name,label:F.label,"validate-event":!1,onKeydown:[Dt(tt(_,["prevent"]),["up"]),Dt(tt(w,["prevent"]),["down"])],onBlur:L,onFocus:N,onInput:T,onChange:E},null,8,["id","step","model-value","placeholder","readonly","disabled","size","max","min","name","label","onKeydown"])],34))}});var Yz=Re(Wz,[["__file","/home/runner/work/element-plus/element-plus/packages/components/input-number/src/input-number.vue"]]);const Xd=Et(Yz);class Xz{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 Ot.down:{this.gotoSubIndex(this.subIndex+1),i=!0;break}case Ot.up:{this.gotoSubIndex(this.subIndex-1),i=!0;break}case Ot.tab:{Ou(t,"mouseleave");break}case Ot.enter:case Ot.space:{i=!0,r.currentTarget.click();break}}return i&&(r.preventDefault(),r.stopPropagation()),!1})})}}class Kz{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 Xz(this,n)),this.addListeners()}addListeners(){this.domNode.addEventListener("keydown",t=>{let n=!1;switch(t.code){case Ot.down:{Ou(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(0),n=!0;break}case Ot.up:{Ou(t.currentTarget,"mouseenter"),this.submenu&&this.submenu.gotoSubIndex(this.submenu.subMenuItems.length-1),n=!0;break}case Ot.tab:{Ou(t.currentTarget,"mouseleave");break}case Ot.enter:case Ot.space:{n=!0,t.currentTarget.click();break}}n&&t.preventDefault()})}}class Gz{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 Kz(r,t)})}}const qz=Ee({name:"ElMenuCollapseTransition",setup(){const e=Ie("menu");return{listeners:{onBeforeEnter:n=>n.style.opacity="0.2",onEnter(n,r){us(n,`${e.namespace.value}-opacity-transition`),n.style.opacity="1",r()},onAfterEnter(n){Au(n,`${e.namespace.value}-opacity-transition`),n.style.opacity=""},onBeforeLeave(n){n.dataset||(n.dataset={}),$d(n,e.m("collapse"))?(Au(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),us(n,e.m("collapse"))):(us(n,e.m("collapse")),n.dataset.oldOverflow=n.style.overflow,n.dataset.scrollWidth=n.clientWidth.toString(),Au(n,e.m("collapse"))),n.style.width=`${n.scrollWidth}px`,n.style.overflow="hidden"},onLeave(n){us(n,"horizontal-collapse-transition"),n.style.width=`${n.dataset.scrollWidth}px`}}}}});function Zz(e,t,n,r,i,l){return z(),be(dn,Tn({mode:"out-in"},e.listeners),{default:he(()=>[Te(e.$slots,"default")]),_:3},16)}var Jz=Re(qz,[["render",Zz],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-collapse-transition.vue"]]);function sw(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 Qz(e){return ee(()=>{const n=e.backgroundColor;return n?new Y1(n).shade(20).toString():""})}const lw=(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":Qz(e).value||"","active-color":e.activeTextColor||"",level:`${t}`}))},eN=Fe({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:Xt},expandOpenIcon:{type:Xt},collapseCloseIcon:{type:Xt},collapseOpenIcon:{type:Xt}}),Af="ElSubMenu";var zp=Ee({name:Af,props:eN,setup(e,{slots:t,expose:n}){const r=St(),{indexPath:i,parentMenu:l}=sw(r,ee(()=>e.index)),v=Ie("menu"),o=Ie("sub-menu"),a=qe("rootMenu");a||bn(Af,"can not inject root menu");const u=qe(`subMenu:${l.value.uid}`);u||bn(Af,"can not inject sub menu");const d=oe({}),c=oe({});let f;const s=oe(!1),h=oe(),g=oe(null),m=ee(()=>N.value==="horizontal"&&b.value?"bottom-start":"right-start"),y=ee(()=>N.value==="horizontal"&&b.value||N.value==="vertical"&&!a.props.collapse?e.expandCloseIcon&&e.expandOpenIcon?x.value?e.expandOpenIcon:e.expandCloseIcon:Bc:e.collapseCloseIcon&&e.collapseOpenIcon?x.value?e.collapseOpenIcon:e.collapseCloseIcon:Sl),b=ee(()=>u.level===0),_=ee(()=>e.popperAppendToBody===void 0?b.value:Boolean(e.popperAppendToBody)),w=ee(()=>a.props.collapse?`${v.namespace.value}-zoom-in-left`:`${v.namespace.value}-zoom-in-top`),S=ee(()=>N.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(()=>a.openedMenus.includes(e.index)),T=ee(()=>{let M=!1;return Object.values(d.value).forEach(U=>{U.active&&(M=!0)}),Object.values(c.value).forEach(U=>{U.active&&(M=!0)}),M}),E=ee(()=>a.props.backgroundColor||""),I=ee(()=>a.props.activeTextColor||""),D=ee(()=>a.props.textColor||""),N=ee(()=>a.props.mode),L=vt({index:e.index,indexPath:i,active:T}),F=ee(()=>N.value!=="horizontal"?{color:D.value}:{borderBottomColor:T.value?a.props.activeTextColor?I.value:"":"transparent",color:T.value?I.value:D.value}),O=()=>{var M,U,R;return(R=(U=(M=g.value)==null?void 0:M.popperRef)==null?void 0:U.popperInstanceRef)==null?void 0:R.destroy()},V=M=>{M||O()},ne=()=>{a.props.menuTrigger==="hover"&&a.props.mode==="horizontal"||a.props.collapse&&a.props.mode==="vertical"||e.disabled||a.handleSubMenuClick({index:e.index,indexPath:i.value,active:T.value})},J=(M,U=e.showTimeout)=>{var R;M.type!=="focus"&&(a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||e.disabled||(u.mouseInChild.value=!0,f==null||f(),{stop:f}=qs(()=>{a.openMenu(e.index,i.value)},U),_.value&&((R=l.value.vnode.el)==null||R.dispatchEvent(new MouseEvent("mouseenter")))))},le=(M=!1)=>{var U,R;a.props.menuTrigger==="click"&&a.props.mode==="horizontal"||!a.props.collapse&&a.props.mode==="vertical"||(f==null||f(),u.mouseInChild.value=!1,{stop:f}=qs(()=>!s.value&&a.closeMenu(e.index,i.value),e.hideTimeout),_.value&&M&&((U=r.parent)==null?void 0:U.type.name)==="ElSubMenu"&&((R=u.handleMouseleave)==null||R.call(u,!0)))};xe(()=>a.props.collapse,M=>V(Boolean(M)));{const M=R=>{c.value[R.index]=R},U=R=>{delete c.value[R.index]};gt(`subMenu:${r.uid}`,{addSubMenu:M,removeSubMenu:U,handleMouseleave:le,mouseInChild:s,level:u.level+1})}return n({opened:x}),nt(()=>{a.addSubMenu(L),u.addSubMenu(L)}),Yt(()=>{u.removeSubMenu(L),a.removeSubMenu(L)}),()=>{var M;const U=[(M=t.title)==null?void 0:M.call(t),_t(Le,{class:o.e("icon-arrow"),style:{transform:x.value?e.expandCloseIcon&&e.expandOpenIcon||e.collapseCloseIcon&&e.collapseOpenIcon&&a.props.collapse?"none":"rotateZ(180deg)":"none"}},{default:()=>Ge(y.value)?_t(r.appContext.components[y.value]):_t(y.value)})],R=lw(a.props,u.level+1),P=a.isMenuPopup?_t(Mr,{ref:g,visible:x.value,effect:"light",pure:!0,offset:e.popperOffset,showArrow:!1,persistent:!0,popperClass:e.popperClass,placement:m.value,teleported:_.value,fallbackPlacements:S.value,transition:w.value,gpuAcceleration:!1},{content:()=>{var Q;return _t("div",{class:[v.m(N.value),v.m("popup-container"),e.popperClass],onMouseenter:j=>J(j,100),onMouseleave:()=>le(!0),onFocus:j=>J(j,100)},[_t("ul",{class:[v.b(),v.m("popup"),v.m(`popup-${m.value}`)],style:R.value},[(Q=t.default)==null?void 0:Q.call(t)])])},default:()=>_t("div",{class:o.e("title"),style:[F.value,{backgroundColor:E.value}],onClick:ne},U)}):_t(je,{},[_t("div",{class:o.e("title"),style:[F.value,{backgroundColor:E.value}],ref:h,onClick:ne},U),_t(eB,{},{default:()=>{var Q;return kt(_t("ul",{role:"menu",class:[v.b(),v.m("inline")],style:R.value},[(Q=t.default)==null?void 0:Q.call(t)]),[[Ht,x.value]])}})]);return _t("li",{class:[o.b(),o.is("active",T.value),o.is("opened",x.value),o.is("disabled",e.disabled)],role:"menuitem",ariaHaspopup:!0,ariaExpanded:x.value,onMouseenter:J,onMouseleave:()=>le(!0),onFocus:J},[P])}}});const tN=Fe({mode:{type:String,values:["horizontal","vertical"],default:"vertical"},defaultActive:{type:String,default:""},defaultOpeneds:{type:Pe(Array),default:()=>rn([])},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}}),Pf=e=>Array.isArray(e)&&e.every(t=>Ge(t)),nN={close:(e,t)=>Ge(e)&&Pf(t),open:(e,t)=>Ge(e)&&Pf(t),select:(e,t,n,r)=>Ge(e)&&Pf(t)&&ot(n)&&(r===void 0||r instanceof Promise)};var rN=Ee({name:"ElMenu",props:tN,emits:nN,setup(e,{emit:t,slots:n,expose:r}){const i=St(),l=i.appContext.config.globalProperties.$router,v=oe(),o=Ie("menu"),a=Ie("sub-menu"),u=oe(-1),d=oe(e.defaultOpeneds&&!e.collapse?e.defaultOpeneds.slice(0):[]),c=oe(e.defaultActive),f=oe({}),s=oe({}),h=ee(()=>e.mode==="horizontal"||e.mode==="vertical"&&e.collapse),g=()=>{const D=c.value&&f.value[c.value];if(!D||e.mode==="horizontal"||e.collapse)return;D.indexPath.forEach(L=>{const F=s.value[L];F&&m(L,F.indexPath)})},m=(D,N)=>{d.value.includes(D)||(e.uniqueOpened&&(d.value=d.value.filter(L=>N.includes(L))),d.value.push(D),t("open",D,N))},y=(D,N)=>{const L=d.value.indexOf(D);L!==-1&&d.value.splice(L,1),t("close",D,N)},b=({index:D,indexPath:N})=>{d.value.includes(D)?y(D,N):m(D,N)},_=D=>{(e.mode==="horizontal"||e.collapse)&&(d.value=[]);const{index:N,indexPath:L}=D;if(!(N===void 0||L===void 0))if(e.router&&l){const F=D.route||N,O=l.push(F).then(V=>(V||(c.value=N),V));t("select",N,L,{index:N,indexPath:L,route:F},O)}else c.value=N,t("select",N,L,{index:N,indexPath:L})},w=D=>{const N=f.value,L=N[D]||c.value&&N[c.value]||N[e.defaultActive];L?c.value=L.index:c.value=D},S=()=>{var D,N;if(!v.value)return-1;const L=Array.from((N=(D=v.value)==null?void 0:D.childNodes)!=null?N:[]).filter(M=>M.nodeName!=="#text"||M.nodeValue),F=64,O=Number.parseInt(getComputedStyle(v.value).paddingLeft,10),V=Number.parseInt(getComputedStyle(v.value).paddingRight,10),ne=v.value.clientWidth-O-V;let J=0,le=0;return L.forEach((M,U)=>{J+=M.offsetWidth||0,J<=ne-F&&(le=U+1)}),le===L.length?-1:le},x=(D,N=33.34)=>{let L;return()=>{L&&clearTimeout(L),L=setTimeout(()=>{D()},N)}};let T=!0;const E=()=>{const D=()=>{u.value=-1,Xe(()=>{u.value=S()})};T?D():x(D)(),T=!1};xe(()=>e.defaultActive,D=>{f.value[D]||(c.value=""),w(D)}),xe(()=>e.collapse,D=>{D&&(d.value=[])}),xe(f.value,g);let I;Na(()=>{e.mode==="horizontal"&&e.ellipsis?I=Ir(v,E).stop:I==null||I()});{const D=O=>{s.value[O.index]=O},N=O=>{delete s.value[O.index]};gt("rootMenu",vt({props:e,openedMenus:d,items:f,subMenus:s,activeIndex:c,isMenuPopup:h,addMenuItem:O=>{f.value[O.index]=O},removeMenuItem:O=>{delete f.value[O.index]},addSubMenu:D,removeSubMenu:N,openMenu:m,closeMenu:y,handleMenuItemClick:_,handleSubMenuClick:b})),gt(`subMenu:${i.uid}`,{addSubMenu:D,removeSubMenu:N,mouseInChild:oe(!1),level:0})}return nt(()=>{e.mode==="horizontal"&&new Gz(i.vnode.el,o.namespace.value)}),r({open:N=>{const{indexPath:L}=s.value[N];L.forEach(F=>m(F,L))},close:y,handleResize:E}),()=>{var D,N;let L=(N=(D=n.default)==null?void 0:D.call(n))!=null?N:[];const F=[];if(e.mode==="horizontal"&&v.value){const ne=o1(L),J=u.value===-1?ne:ne.slice(0,u.value),le=u.value===-1?[]:ne.slice(u.value);(le==null?void 0:le.length)&&e.ellipsis&&(L=J,F.push(_t(zp,{index:"sub-menu-more",class:a.e("hide-arrow")},{title:()=>_t(Le,{class:a.e("icon-more")},{default:()=>_t(dO)}),default:()=>le})))}const O=lw(e,0),V=_t("ul",{key:String(e.collapse),role:"menubar",ref:v,style:O.value,class:{[o.b()]:!0,[o.m(e.mode)]:!0,[o.m("collapse")]:e.collapse}},[...L,...F]);return e.collapseTransition&&e.mode==="vertical"?_t(Jz,()=>V):V}}});const iN=Fe({index:{type:Pe([String,null]),default:null},route:{type:Pe([String,Object])},disabled:Boolean}),aN={click:e=>Ge(e.index)&&Array.isArray(e.indexPath)},If="ElMenuItem",oN=Ee({name:If,components:{ElTooltip:Mr},props:iN,emits:aN,setup(e,{emit:t}){const n=St(),r=qe("rootMenu"),i=Ie("menu"),l=Ie("menu-item");r||bn(If,"can not inject root menu");const{parentMenu:v,indexPath:o}=sw(n,On(e,"index")),a=qe(`subMenu:${v.value.uid}`);a||bn(If,"can not inject sub menu");const u=ee(()=>e.index===r.activeIndex),d=vt({index:e.index,indexPath:o,active:u}),c=()=>{e.disabled||(r.handleMenuItemClick({index:e.index,indexPath:o.value,route:e.route}),t("click",d))};return nt(()=>{a.addSubMenu(d),r.addMenuItem(d)}),Yt(()=>{a.removeSubMenu(d),r.removeMenuItem(d)}),{Effect:RL,parentMenu:v,rootMenu:r,active:u,nsMenu:i,nsMenuItem:l,handleClick:c}}});function sN(e,t,n,r,i,l){const v=mt("el-tooltip");return z(),se("li",{class:de([e.nsMenuItem.b(),e.nsMenuItem.is("active",e.active),e.nsMenuItem.is("disabled",e.disabled)]),role:"menuitem",tabindex:"-1",onClick:t[0]||(t[0]=(...o)=>e.handleClick&&e.handleClick(...o))},[e.parentMenu.type.name==="ElMenu"&&e.rootMenu.props.collapse&&e.$slots.title?(z(),be(v,{key:0,effect:e.Effect.DARK,placement:"right","fallback-placements":["left"],persistent:""},{content:he(()=>[Te(e.$slots,"title")]),default:he(()=>[re("div",{class:de(e.nsMenu.be("tooltip","trigger"))},[Te(e.$slots,"default")],2)]),_:3},8,["effect"])):(z(),se(je,{key:1},[Te(e.$slots,"default"),Te(e.$slots,"title")],64))],2)}var uw=Re(oN,[["render",sN],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item.vue"]]);const lN={title:String},uN="ElMenuItemGroup",cN=Ee({name:uN,props:lN,setup(){return{ns:Ie("menu-item-group")}}});function fN(e,t,n,r,i,l){return z(),se("li",{class:de(e.ns.b())},[re("div",{class:de(e.ns.e("title"))},[e.$slots.title?Te(e.$slots,"title",{key:1}):(z(),se(je,{key:0},[Ue(Ae(e.title),1)],64))],2),re("ul",null,[Te(e.$slots,"default")])],2)}var cw=Re(cN,[["render",fN],["__file","/home/runner/work/element-plus/element-plus/packages/components/menu/src/menu-item-group.vue"]]);const fw=Et(rN,{MenuItem:uw,MenuItemGroup:cw,SubMenu:zp}),Np=dr(uw);dr(cw);dr(zp);const dN=Fe({disabled:Boolean,currentPage:{type:Number,default:1},prevText:{type:String},prevIcon:{type:Xt}}),hN={click:e=>e instanceof MouseEvent},pN=["disabled","aria-disabled"],mN={key:0},gN={name:"ElPaginationPrev"},vN=Ee({...gN,props:dN,emits:hN,setup(e){const t=e,n=ee(()=>t.disabled||t.currentPage<=1);return(r,i)=>(z(),se("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?(z(),se("span",mN,Ae(r.prevText),1)):(z(),be(C(Le),{key:1},{default:he(()=>[(z(),be(Tt(r.prevIcon)))]),_:1}))],8,pN))}});var yN=Re(vN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/prev.vue"]]);const bN=Fe({disabled:Boolean,currentPage:{type:Number,default:1},pageCount:{type:Number,default:50},nextText:{type:String},nextIcon:{type:Xt}}),_N=["disabled","aria-disabled"],wN={key:0},CN={name:"ElPaginationNext"},SN=Ee({...CN,props:bN,emits:["click"],setup(e){const t=e,n=ee(()=>t.disabled||t.currentPage===t.pageCount||t.pageCount===0);return(r,i)=>(z(),se("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?(z(),se("span",wN,Ae(r.nextText),1)):(z(),be(C(Le),{key:1},{default:he(()=>[(z(),be(Tt(r.nextIcon)))]),_:1}))],8,_N))}});var xN=Re(SN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/next.vue"]]);const dw="ElSelectGroup",qc="ElSelect";function TN(e,t){const n=qe(qc),r=qe(dw,{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)),v=ee(()=>{if(n.props.multiple){const g=n.props.modelValue||[];return!l.value&&g.length>=n.props.multipleLimit&&n.props.multipleLimit>0}else return!1}),o=ee(()=>e.label||(i.value?"":e.value)),a=ee(()=>e.value||e.label||""),u=ee(()=>e.disabled||t.groupDisabled||v.value),d=St(),c=(g=[],m)=>{if(i.value){const y=n.props.valueKey;return g&&g.some(b=>it(Rn(b,y))===Rn(m,y))}else return g&&g.includes(m)},f=(g,m)=>{if(i.value){const{valueKey:y}=n.props;return Rn(g,y)===Rn(m,y)}else return g===m},s=()=>{!e.disabled&&!r.disabled&&(n.hoverIndex=n.optionsArray.indexOf(d.proxy))};xe(()=>o.value,()=>{!e.created&&!n.props.remote&&n.setSelected()}),xe(()=>e.value,(g,m)=>{const{remote:y,valueKey:b}=n.props;if(Object.is(g,m)||(n.onOptionDestroy(m,d.proxy),n.onOptionCreate(d.proxy)),!e.created&&!y){if(b&&typeof g=="object"&&typeof m=="object"&&g[b]===m[b])return;n.setSelected()}}),xe(()=>r.disabled,()=>{t.groupDisabled=r.disabled},{immediate:!0});const{queryChange:h}=it(n);return xe(h,g=>{const{query:m}=C(g),y=new RegExp(yM(m),"i");t.visible=y.test(o.value)||e.created,t.visible||n.filteredOptionsCount--}),{select:n,currentLabel:o,currentValue:a,itemSelected:l,isDisabled:u,hoverItem:s}}const kN=Ee({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=vt({index:-1,groupDisabled:!1,visible:!0,hitState:!1,hover:!1}),{currentLabel:r,itemSelected:i,isDisabled:l,select:v,hoverItem:o}=TN(e,n),{visible:a,hover:u}=Xn(n),d=St().proxy;v.onOptionCreate(d),Yt(()=>{const f=d.value,{selected:s}=v,g=(v.props.multiple?s:[s]).some(m=>m.value===d.value);Xe(()=>{v.cachedOptions.get(f)===d&&!g&&v.cachedOptions.delete(f)}),v.onOptionDestroy(f,d)});function c(){e.disabled!==!0&&n.groupDisabled!==!0&&v.handleOptionSelect(d,!0)}return{ns:t,currentLabel:r,itemSelected:i,isDisabled:l,select:v,hoverItem:o,visible:a,hover:u,selectOptionClick:c,states:n}}});function EN(e,t,n,r,i,l){return kt((z(),se("li",{class:de([e.ns.be("dropdown","item"),e.ns.is("disabled",e.isDisabled),{selected:e.itemSelected,hover:e.hover}]),onMouseenter:t[0]||(t[0]=(...v)=>e.hoverItem&&e.hoverItem(...v)),onClick:t[1]||(t[1]=tt((...v)=>e.selectOptionClick&&e.selectOptionClick(...v),["stop"]))},[Te(e.$slots,"default",{},()=>[re("span",null,Ae(e.currentLabel),1)])],34)),[[Ht,e.visible]])}var jp=Re(kN,[["render",EN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option.vue"]]);const ON=Ee({name:"ElSelectDropdown",componentName:"ElSelectDropdown",setup(){const e=qe(qc),t=Ie("select"),n=ee(()=>e.props.popperClass),r=ee(()=>e.props.multiple),i=ee(()=>e.props.fitInputWidth),l=oe("");function v(){var o;l.value=`${(o=e.selectWrapper)==null?void 0:o.offsetWidth}px`}return nt(()=>{v(),Ir(e.selectWrapper,v)}),{ns:t,minWidth:l,popperClass:n,isMultiple:r,isFitInputWidth:i}}});function AN(e,t,n,r,i,l){return z(),se("div",{class:de([e.ns.b("dropdown"),e.ns.is("multiple",e.isMultiple),e.popperClass]),style:Ne({[e.isFitInputWidth?"width":"minWidth"]:e.minWidth})},[Te(e.$slots,"default")],6)}var PN=Re(ON,[["render",AN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select-dropdown.vue"]]);function IN(e){const{t}=hn();return vt({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 MN=(e,t,n)=>{const{t:r}=hn(),i=Ie("select"),l=oe(null),v=oe(null),o=oe(null),a=oe(null),u=oe(null),d=oe(null),c=oe(-1),f=fn({query:""}),s=fn(""),{form:h,formItem:g}=Xi(),m=ee(()=>!e.filterable||e.multiple||!t.visible),y=ee(()=>e.disabled||(h==null?void 0:h.disabled)),b=ee(()=>{const _e=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&&_e}),_=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())),E=ee(()=>Array.from(t.cachedOptions.values())),I=ee(()=>{const _e=T.value.filter(Se=>!Se.created).some(Se=>Se.currentLabel===t.query);return e.filterable&&e.allowCreate&&t.query!==""&&!_e}),D=Zn(),N=ee(()=>["small"].includes(D.value)?"small":"default"),L=ee({get(){return t.visible&&x.value!==!1},set(_e){t.visible=_e}});xe([()=>y.value,()=>D.value,()=>h==null?void 0:h.size],()=>{Xe(()=>{F()})}),xe(()=>e.placeholder,_e=>{t.cachedPlaceHolder=t.currentPlaceholder=_e}),xe(()=>e.modelValue,(_e,Se)=>{e.multiple&&(F(),_e&&_e.length>0||v.value&&t.query!==""?t.currentPlaceholder="":t.currentPlaceholder=t.cachedPlaceHolder,e.filterable&&!e.reserveKeyword&&(t.query="",O(t.query))),J(),e.filterable&&!e.multiple&&(t.inputLength=20),!Md(_e,Se)&&e.validateEvent&&(g==null||g.validate("change").catch(De=>void 0))},{flush:"post",deep:!0}),xe(()=>t.visible,_e=>{var Se,De,Me;_e?((De=(Se=o.value)==null?void 0:Se.updatePopper)==null||De.call(Se),e.filterable&&(t.filteredOptionsCount=t.optionsCount,t.query=e.remote?"":t.selectedLabel,e.multiple?(Me=v.value)==null||Me.focus():t.selectedLabel&&(t.currentPlaceholder=`${t.selectedLabel}`,t.selectedLabel=""),O(t.query),!e.multiple&&!e.remote&&(f.value.query="",Qo(f),Qo(s)))):(v.value&&v.value.blur(),t.query="",t.previousQuery=null,t.selectedLabel="",t.inputLength=20,t.menuVisibleOnFocus=!1,M(),Xe(()=>{v.value&&v.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",_e)}),xe(()=>t.options.entries(),()=>{var _e,Se,De;if(!dt)return;(Se=(_e=o.value)==null?void 0:_e.updatePopper)==null||Se.call(_e),e.multiple&&F();const Me=((De=u.value)==null?void 0:De.querySelectorAll("input"))||[];Array.from(Me).includes(document.activeElement)||J(),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&ne()},{flush:"post"}),xe(()=>t.hoverIndex,_e=>{typeof _e=="number"&&_e>-1?c.value=T.value[_e]||{}:c.value={},T.value.forEach(Se=>{Se.hover=c.value===Se})});const F=()=>{e.collapseTags&&!e.filterable||Xe(()=>{var _e,Se;if(!l.value)return;const De=l.value.$el.querySelector("input"),Me=a.value,yt=MM(D.value||(h==null?void 0:h.size));De.style.height=`${(t.selected.length===0?yt:Math.max(Me?Me.clientHeight+(Me.clientHeight>yt?6:0):0,yt))-2}px`,t.tagInMultiLine=Number.parseFloat(De.style.height)>=yt,t.visible&&x.value!==!1&&((Se=(_e=o.value)==null?void 0:_e.updatePopper)==null||Se.call(_e))})},O=async _e=>{if(!(t.previousQuery===_e||t.isOnComposition)){if(t.previousQuery===null&&(typeof e.filterMethod=="function"||typeof e.remoteMethod=="function")){t.previousQuery=_e;return}t.previousQuery=_e,Xe(()=>{var Se,De;t.visible&&((De=(Se=o.value)==null?void 0:Se.updatePopper)==null||De.call(Se))}),t.hoverIndex=-1,e.multiple&&e.filterable&&Xe(()=>{const Se=v.value.value.length*15+20;t.inputLength=e.collapseTags?Math.min(50,Se):Se,V(),F()}),e.remote&&typeof e.remoteMethod=="function"?(t.hoverIndex=-1,e.remoteMethod(_e)):typeof e.filterMethod=="function"?(e.filterMethod(_e),Qo(s)):(t.filteredOptionsCount=t.optionsCount,f.value.query=_e,Qo(f),Qo(s)),e.defaultFirstOption&&(e.filterable||e.remote)&&t.filteredOptionsCount&&(await Xe(),ne())}},V=()=>{t.currentPlaceholder!==""&&(t.currentPlaceholder=v.value.value?"":t.cachedPlaceHolder)},ne=()=>{const _e=T.value.filter(Me=>Me.visible&&!Me.disabled&&!Me.states.groupDisabled),Se=_e.find(Me=>Me.created),De=_e[0];t.hoverIndex=pe(T.value,Se||De)},J=()=>{var _e;if(e.multiple)t.selectedLabel="";else{const De=le(e.modelValue);(_e=De.props)!=null&&_e.created?(t.createdLabel=De.props.value,t.createdSelected=!0):t.createdSelected=!1,t.selectedLabel=De.currentLabel,t.selected=De,e.filterable&&(t.query=t.selectedLabel);return}const Se=[];Array.isArray(e.modelValue)&&e.modelValue.forEach(De=>{Se.push(le(De))}),t.selected=Se,Xe(()=>{F()})},le=_e=>{let Se;const De=wu(_e).toLowerCase()==="object",Me=wu(_e).toLowerCase()==="null",yt=wu(_e).toLowerCase()==="undefined";for(let $e=t.cachedOptions.size-1;$e>=0;$e--){const Ve=E.value[$e];if(De?Rn(Ve.value,e.valueKey)===Rn(_e,e.valueKey):Ve.value===_e){Se={value:_e,currentLabel:Ve.currentLabel,isDisabled:Ve.isDisabled};break}}if(Se)return Se;const bt=De?_e.label:!Me&&!yt?_e:"",we={value:_e,currentLabel:bt};return e.multiple&&(we.hitState=!1),we},M=()=>{setTimeout(()=>{const _e=e.valueKey;e.multiple?t.selected.length>0?t.hoverIndex=Math.min.apply(null,t.selected.map(Se=>T.value.findIndex(De=>Rn(De,_e)===Rn(Se,_e)))):t.hoverIndex=-1:t.hoverIndex=T.value.findIndex(Se=>ke(Se)===ke(t.selected))},300)},U=()=>{var _e,Se;R(),(Se=(_e=o.value)==null?void 0:_e.updatePopper)==null||Se.call(_e),e.multiple&&!e.filterable&&F()},R=()=>{var _e;t.inputWidth=(_e=l.value)==null?void 0:_e.$el.getBoundingClientRect().width},P=()=>{e.filterable&&t.query!==t.selectedLabel&&(t.query=t.selectedLabel,O(t.query))},Q=ko(()=>{P()},S.value),j=ko(_e=>{O(_e.target.value)},S.value),A=_e=>{Md(e.modelValue,_e)||n.emit(ti,_e)},q=_e=>{if(_e.target.value.length<=0&&!Y()){const Se=e.modelValue.slice();Se.pop(),n.emit(wt,Se),A(Se)}_e.target.value.length===1&&e.modelValue.length===0&&(t.currentPlaceholder=t.cachedPlaceHolder)},G=(_e,Se)=>{const De=t.selected.indexOf(Se);if(De>-1&&!y.value){const Me=e.modelValue.slice();Me.splice(De,1),n.emit(wt,Me),A(Me),n.emit("remove-tag",Se.value)}_e.stopPropagation()},te=_e=>{_e.stopPropagation();const Se=e.multiple?[]:"";if(typeof Se!="string")for(const De of t.selected)De.isDisabled&&Se.push(De.value);n.emit(wt,Se),A(Se),t.hoverIndex=-1,t.visible=!1,n.emit("clear")},fe=(_e,Se)=>{var De;if(e.multiple){const Me=(e.modelValue||[]).slice(),yt=pe(Me,_e.value);yt>-1?Me.splice(yt,1):(e.multipleLimit<=0||Me.length<e.multipleLimit)&&Me.push(_e.value),n.emit(wt,Me),A(Me),_e.created&&(t.query="",O(""),t.inputLength=20),e.filterable&&((De=v.value)==null||De.focus())}else n.emit(wt,_e.value),A(_e.value),t.visible=!1;t.isSilentBlur=Se,ve(),!t.visible&&Xe(()=>{H(_e)})},pe=(_e=[],Se)=>{if(!ot(Se))return _e.indexOf(Se);const De=e.valueKey;let Me=-1;return _e.some((yt,bt)=>it(Rn(yt,De))===Rn(Se,De)?(Me=bt,!0):!1),Me},ve=()=>{t.softFocus=!0;const _e=v.value||l.value;_e&&(_e==null||_e.focus())},H=_e=>{var Se,De,Me,yt,bt;const we=Array.isArray(_e)?_e[0]:_e;let $e=null;if(we!=null&&we.value){const Ve=T.value.filter(Qe=>Qe.value===we.value);Ve.length>0&&($e=Ve[0].$el)}if(o.value&&$e){const Ve=(yt=(Me=(De=(Se=o.value)==null?void 0:Se.popperRef)==null?void 0:De.contentRef)==null?void 0:Me.querySelector)==null?void 0:yt.call(Me,`.${i.be("dropdown","wrap")}`);Ve&&xM(Ve,$e)}(bt=d.value)==null||bt.handleScroll()},W=_e=>{t.optionsCount++,t.filteredOptionsCount++,t.options.set(_e.value,_e),t.cachedOptions.set(_e.value,_e)},k=(_e,Se)=>{t.options.get(_e)===Se&&(t.optionsCount--,t.filteredOptionsCount--,t.options.delete(_e))},X=_e=>{_e.code!==Ot.backspace&&Y(!1),t.inputLength=v.value.value.length*15+20,F()},Y=_e=>{if(!Array.isArray(t.selected))return;const Se=t.selected[t.selected.length-1];if(!!Se)return _e===!0||_e===!1?(Se.hitState=_e,_e):(Se.hitState=!Se.hitState,Se.hitState)},$=_e=>{const Se=_e.target.value;if(_e.type==="compositionend")t.isOnComposition=!1,Xe(()=>O(Se));else{const De=Se[Se.length-1]||"";t.isOnComposition=!s1(De)}},B=()=>{Xe(()=>H(t.selected))},K=_e=>{t.softFocus?t.softFocus=!1:((e.automaticDropdown||e.filterable)&&(e.filterable&&!t.visible&&(t.menuVisibleOnFocus=!0),t.visible=!0),n.emit("focus",_e))},ce=()=>{var _e;t.visible=!1,(_e=l.value)==null||_e.blur()},ie=_e=>{Xe(()=>{t.isSilentBlur?t.isSilentBlur=!1:n.emit("blur",_e)}),t.softFocus=!1},Z=_e=>{te(_e)},me=()=>{t.visible=!1},ae=_e=>{t.visible&&(_e.preventDefault(),_e.stopPropagation(),t.visible=!1)},ge=()=>{var _e;y.value||(t.menuVisibleOnFocus?t.menuVisibleOnFocus=!1:t.visible=!t.visible,t.visible&&((_e=v.value||l.value)==null||_e.focus()))},Ce=()=>{t.visible?T.value[t.hoverIndex]&&fe(T.value[t.hoverIndex],void 0):ge()},ke=_e=>ot(_e.value)?Rn(_e.value,e.valueKey):_e.value,Oe=ee(()=>T.value.filter(_e=>_e.visible).every(_e=>_e.disabled)),ze=_e=>{if(!t.visible){t.visible=!0;return}if(!(t.options.size===0||t.filteredOptionsCount===0)&&!t.isOnComposition&&!Oe.value){_e==="next"?(t.hoverIndex++,t.hoverIndex===t.options.size&&(t.hoverIndex=0)):_e==="prev"&&(t.hoverIndex--,t.hoverIndex<0&&(t.hoverIndex=t.options.size-1));const Se=T.value[t.hoverIndex];(Se.disabled===!0||Se.states.groupDisabled===!0||!Se.visible)&&ze(_e),Xe(()=>H(c.value))}};return{optionsArray:T,selectSize:D,handleResize:U,debouncedOnInputChange:Q,debouncedQueryChange:j,deletePrevTag:q,deleteTag:G,deleteSelected:te,handleOptionSelect:fe,scrollToOption:H,readonly:m,resetInputHeight:F,showClose:b,iconComponent:_,iconReverse:w,showNewOption:I,collapseTagSize:N,setSelected:J,managePlaceholder:V,selectDisabled:y,emptyText:x,toggleLastOptionHitState:Y,resetInputState:X,handleComposition:$,onOptionCreate:W,onOptionDestroy:k,handleMenuEnter:B,handleFocus:K,blur:ce,handleBlur:ie,handleClearClick:Z,handleClose:me,handleKeydownEscape:ae,toggleMenu:ge,selectOption:Ce,getValueKey:ke,navigateOptions:ze,dropMenuVisible:L,queryChange:f,groupQueryChange:s,reference:l,input:v,tooltipRef:o,tags:a,selectWrapper:u,scrollbar:d}},h0="ElSelect",LN=Ee({name:h0,componentName:h0,components:{ElInput:Wa,ElSelectMenu:PN,ElOption:jp,ElTag:X$,ElScrollbar:k1,ElTooltip:Mr,ElIcon:Le},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:Yc},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:Vn.teleported,persistent:{type:Boolean,default:!0},clearIcon:{type:Xt,default:zc},fitInputWidth:{type:Boolean,default:!1},suffixIcon:{type:Xt,default:Bc},tagType:{...tw.type,default:"info"},validateEvent:{type:Boolean,default:!0},remoteShowSuffix:{type:Boolean,default:!1},suffixTransition:{type:Boolean,default:!0},placement:{type:String,values:jo,default:"bottom-start"}},emits:[wt,ti,"remove-tag","clear","visible-change","focus","blur"],setup(e,t){const n=Ie("select"),r=Ie("input"),{t:i}=hn(),l=IN(e),{optionsArray:v,selectSize:o,readonly:a,handleResize:u,collapseTagSize:d,debouncedOnInputChange:c,debouncedQueryChange:f,deletePrevTag:s,deleteTag:h,deleteSelected:g,handleOptionSelect:m,scrollToOption:y,setSelected:b,resetInputHeight:_,managePlaceholder:w,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:E,showNewOption:I,emptyText:D,toggleLastOptionHitState:N,resetInputState:L,handleComposition:F,onOptionCreate:O,onOptionDestroy:V,handleMenuEnter:ne,handleFocus:J,blur:le,handleBlur:M,handleClearClick:U,handleClose:R,handleKeydownEscape:P,toggleMenu:Q,selectOption:j,getValueKey:A,navigateOptions:q,dropMenuVisible:G,reference:te,input:fe,tooltipRef:pe,tags:ve,selectWrapper:H,scrollbar:W,queryChange:k,groupQueryChange:X}=MN(e,l,t),{focus:Y}=zM(te),{inputWidth:$,selected:B,inputLength:K,filteredOptionsCount:ce,visible:ie,softFocus:Z,selectedLabel:me,hoverIndex:ae,query:ge,inputHovering:Ce,currentPlaceholder:ke,menuVisibleOnFocus:Oe,isOnComposition:ze,isSilentBlur:_e,options:Se,cachedOptions:De,optionsCount:Me,prefixWidth:yt,tagInMultiLine:bt}=Xn(l),we=ee(()=>{const at=[n.b()],We=C(o);return We&&at.push(n.m(We)),e.disabled&&at.push(n.m("disabled")),at}),$e=ee(()=>({maxWidth:`${C($)-32}px`,width:"100%"})),Ve=ee(()=>({maxWidth:`${C($)>123?C($)-123:C($)-75}px`}));gt(qc,vt({props:e,options:Se,optionsArray:v,cachedOptions:De,optionsCount:Me,filteredOptionsCount:ce,hoverIndex:ae,handleOptionSelect:m,onOptionCreate:O,onOptionDestroy:V,selectWrapper:H,selected:B,setSelected:b,queryChange:k,groupQueryChange:X})),nt(()=>{l.cachedPlaceHolder=ke.value=e.placeholder||i("el.select.placeholder"),e.multiple&&Array.isArray(e.modelValue)&&e.modelValue.length>0&&(ke.value=""),Ir(H,u),e.remote&&e.multiple&&_(),Xe(()=>{const at=te.value&&te.value.$el;if(!!at&&($.value=at.getBoundingClientRect().width,t.slots.prefix)){const We=at.querySelector(`.${r.e("prefix")}`);yt.value=Math.max(We.getBoundingClientRect().width+5,30)}}),b()}),e.multiple&&!Array.isArray(e.modelValue)&&t.emit(wt,[]),!e.multiple&&Array.isArray(e.modelValue)&&t.emit(wt,"");const Qe=ee(()=>{var at,We;return(We=(at=pe.value)==null?void 0:at.popperRef)==null?void 0:We.contentRef});return{tagInMultiLine:bt,prefixWidth:yt,selectSize:o,readonly:a,handleResize:u,collapseTagSize:d,debouncedOnInputChange:c,debouncedQueryChange:f,deletePrevTag:s,deleteTag:h,deleteSelected:g,handleOptionSelect:m,scrollToOption:y,inputWidth:$,selected:B,inputLength:K,filteredOptionsCount:ce,visible:ie,softFocus:Z,selectedLabel:me,hoverIndex:ae,query:ge,inputHovering:Ce,currentPlaceholder:ke,menuVisibleOnFocus:Oe,isOnComposition:ze,isSilentBlur:_e,options:Se,resetInputHeight:_,managePlaceholder:w,showClose:S,selectDisabled:x,iconComponent:T,iconReverse:E,showNewOption:I,emptyText:D,toggleLastOptionHitState:N,resetInputState:L,handleComposition:F,handleMenuEnter:ne,handleFocus:J,blur:le,handleBlur:M,handleClearClick:U,handleClose:R,handleKeydownEscape:P,toggleMenu:Q,selectOption:j,getValueKey:A,navigateOptions:q,dropMenuVisible:G,focus:Y,reference:te,input:fe,tooltipRef:pe,popperPaneRef:Qe,tags:ve,selectWrapper:H,scrollbar:W,wrapperKls:we,selectTagsStyle:$e,nsSelect:n,tagTextStyle:Ve}}}),RN=["disabled","autocomplete"],DN={style:{height:"100%",display:"flex","justify-content":"center","align-items":"center"}};function $N(e,t,n,r,i,l){const v=mt("el-tag"),o=mt("el-tooltip"),a=mt("el-icon"),u=mt("el-input"),d=mt("el-option"),c=mt("el-scrollbar"),f=mt("el-select-menu"),s=_b("click-outside");return kt((z(),se("div",{ref:"selectWrapper",class:de(e.wrapperKls),onClick:t[22]||(t[22]=tt((...h)=>e.toggleMenu&&e.toggleMenu(...h),["stop"]))},[ue(o,{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(()=>[re("div",{class:"select-trigger",onMouseenter:t[20]||(t[20]=h=>e.inputHovering=!0),onMouseleave:t[21]||(t[21]=h=>e.inputHovering=!1)},[e.multiple?(z(),se("div",{key:0,ref:"tags",class:de(e.nsSelect.e("tags")),style:Ne(e.selectTagsStyle)},[e.collapseTags&&e.selected.length?(z(),se("span",{key:0,class:de([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[ue(v,{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]=h=>e.deleteTag(h,e.selected[0]))},{default:he(()=>[re("span",{class:de(e.nsSelect.e("tags-text")),style:Ne(e.tagTextStyle)},Ae(e.selected[0].currentLabel),7)]),_:1},8,["closable","size","hit","type"]),e.selected.length>1?(z(),be(v,{key:0,closable:!1,size:e.collapseTagSize,type:e.tagType,"disable-transitions":""},{default:he(()=>[e.collapseTagsTooltip?(z(),be(o,{key:0,disabled:e.dropMenuVisible,"fallback-placements":["bottom","top","right","left"],effect:e.effect,placement:"bottom",teleported:e.teleported},{default:he(()=>[re("span",{class:de(e.nsSelect.e("tags-text"))},"+ "+Ae(e.selected.length-1),3)]),content:he(()=>[re("div",{class:de(e.nsSelect.e("collapse-tags"))},[(z(!0),se(je,null,jt(e.selected.slice(1),(h,g)=>(z(),se("div",{key:g,class:de(e.nsSelect.e("collapse-tag"))},[(z(),be(v,{key:e.getValueKey(h),class:"in-tooltip",closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",style:{margin:"2px"},onClose:m=>e.deleteTag(m,h)},{default:he(()=>[re("span",{class:de(e.nsSelect.e("tags-text")),style:Ne({maxWidth:e.inputWidth-75+"px"})},Ae(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))],2))),128))],2)]),_:1},8,["disabled","effect","teleported"])):(z(),se("span",{key:1,class:de(e.nsSelect.e("tags-text"))},"+ "+Ae(e.selected.length-1),3))]),_:1},8,["size","type"])):ye("v-if",!0)],2)):ye("v-if",!0),ye(" <div> "),e.collapseTags?ye("v-if",!0):(z(),be(dn,{key:1,onAfterLeave:e.resetInputHeight},{default:he(()=>[re("span",{class:de([e.nsSelect.b("tags-wrapper"),{"has-prefix":e.prefixWidth&&e.selected.length}])},[(z(!0),se(je,null,jt(e.selected,h=>(z(),be(v,{key:e.getValueKey(h),closable:!e.selectDisabled&&!h.isDisabled,size:e.collapseTagSize,hit:h.hitState,type:e.tagType,"disable-transitions":"",onClose:g=>e.deleteTag(g,h)},{default:he(()=>[re("span",{class:de(e.nsSelect.e("tags-text")),style:Ne({maxWidth:e.inputWidth-75+"px"})},Ae(h.currentLabel),7)]),_:2},1032,["closable","size","hit","type","onClose"]))),128))],2)]),_:1},8,["onAfterLeave"])),ye(" </div> "),e.filterable?kt((z(),se("input",{key:2,ref:"input","onUpdate:modelValue":t[1]||(t[1]=h=>e.query=h),type:"text",class:de([e.nsSelect.e("input"),e.nsSelect.is(e.selectSize)]),disabled:e.selectDisabled,autocomplete:e.autocomplete,style:Ne({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]=(...h)=>e.handleFocus&&e.handleFocus(...h)),onBlur:t[3]||(t[3]=(...h)=>e.handleBlur&&e.handleBlur(...h)),onKeyup:t[4]||(t[4]=(...h)=>e.managePlaceholder&&e.managePlaceholder(...h)),onKeydown:[t[5]||(t[5]=(...h)=>e.resetInputState&&e.resetInputState(...h)),t[6]||(t[6]=Dt(tt(h=>e.navigateOptions("next"),["prevent"]),["down"])),t[7]||(t[7]=Dt(tt(h=>e.navigateOptions("prev"),["prevent"]),["up"])),t[8]||(t[8]=Dt((...h)=>e.handleKeydownEscape&&e.handleKeydownEscape(...h),["esc"])),t[9]||(t[9]=Dt(tt((...h)=>e.selectOption&&e.selectOption(...h),["stop","prevent"]),["enter"])),t[10]||(t[10]=Dt((...h)=>e.deletePrevTag&&e.deletePrevTag(...h),["delete"])),t[11]||(t[11]=Dt(h=>e.visible=!1,["tab"]))],onCompositionstart:t[12]||(t[12]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionupdate:t[13]||(t[13]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onCompositionend:t[14]||(t[14]=(...h)=>e.handleComposition&&e.handleComposition(...h)),onInput:t[15]||(t[15]=(...h)=>e.debouncedQueryChange&&e.debouncedQueryChange(...h))},null,46,RN)),[[Wx,e.query]]):ye("v-if",!0)],6)):ye("v-if",!0),ue(u,{id:e.id,ref:"reference",modelValue:e.selectedLabel,"onUpdate:modelValue":t[16]||(t[16]=h=>e.selectedLabel=h),type:"text",placeholder:e.currentPlaceholder,name:e.name,autocomplete:e.autocomplete,size:e.selectSize,disabled:e.selectDisabled,readonly:e.readonly,"validate-event":!1,class:de([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]=Dt(tt(h=>e.navigateOptions("next"),["stop","prevent"]),["down"])),t[18]||(t[18]=Dt(tt(h=>e.navigateOptions("prev"),["stop","prevent"]),["up"])),Dt(tt(e.selectOption,["stop","prevent"]),["enter"]),Dt(e.handleKeydownEscape,["esc"]),t[19]||(t[19]=Dt(h=>e.visible=!1,["tab"]))]},qu({suffix:he(()=>[e.iconComponent&&!e.showClose?(z(),be(a,{key:0,class:de([e.nsSelect.e("caret"),e.nsSelect.e("icon"),e.iconReverse])},{default:he(()=>[(z(),be(Tt(e.iconComponent)))]),_:1},8,["class"])):ye("v-if",!0),e.showClose&&e.clearIcon?(z(),be(a,{key:1,class:de([e.nsSelect.e("caret"),e.nsSelect.e("icon")]),onClick:e.handleClearClick},{default:he(()=>[(z(),be(Tt(e.clearIcon)))]),_:1},8,["class","onClick"])):ye("v-if",!0)]),_:2},[e.$slots.prefix?{name:"prefix",fn:he(()=>[re("div",DN,[Te(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(()=>[kt(ue(c,{ref:"scrollbar",tag:"ul","wrap-class":e.nsSelect.be("dropdown","wrap"),"view-class":e.nsSelect.be("dropdown","list"),class:de([e.nsSelect.is("empty",!e.allowCreate&&Boolean(e.query)&&e.filteredOptionsCount===0)])},{default:he(()=>[e.showNewOption?(z(),be(d,{key:0,value:e.query,created:!0},null,8,["value"])):ye("v-if",!0),Te(e.$slots,"default")]),_:3},8,["wrap-class","view-class","class"]),[[Ht,e.options.size>0&&!e.loading]]),e.emptyText&&(!e.allowCreate||e.loading||e.allowCreate&&e.options.size===0)?(z(),se(je,{key:0},[e.$slots.empty?Te(e.$slots,"empty",{key:0}):(z(),se("p",{key:1,class:de(e.nsSelect.be("dropdown","empty"))},Ae(e.emptyText),3))],64)):ye("v-if",!0)]),_:3})]),_:3},8,["visible","placement","teleported","popper-class","effect","transition","persistent","onShow"])],2)),[[s,e.handleClose,e.popperPaneRef]])}var BN=Re(LN,[["render",$N],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/select.vue"]]);const FN=Ee({name:"ElOptionGroup",componentName:"ElOptionGroup",props:{label:String,disabled:{type:Boolean,default:!1}},setup(e){const t=Ie("select"),n=oe(!0),r=St(),i=oe([]);gt(dw,vt({...Xn(e)}));const l=qe(qc);nt(()=>{i.value=v(r.subTree)});const v=a=>{const u=[];return Array.isArray(a.children)&&a.children.forEach(d=>{var c;d.type&&d.type.name==="ElOption"&&d.component&&d.component.proxy?u.push(d.component.proxy):(c=d.children)!=null&&c.length&&u.push(...v(d))}),u},{groupQueryChange:o}=it(l);return xe(o,()=>{n.value=i.value.some(a=>a.visible===!0)},{flush:"post"}),{visible:n,ns:t}}});function zN(e,t,n,r,i,l){return kt((z(),se("ul",{class:de(e.ns.be("group","wrap"))},[re("li",{class:de(e.ns.be("group","title"))},Ae(e.label),3),re("li",null,[re("ul",{class:de(e.ns.b("group"))},[Te(e.$slots,"default")],2)])],2)),[[Ht,e.visible]])}var hw=Re(FN,[["render",zN],["__file","/home/runner/work/element-plus/element-plus/packages/components/select/src/option-group.vue"]]);const pw=Et(BN,{Option:jp,OptionGroup:hw}),mw=dr(jp);dr(hw);const Vp=()=>qe(h1,{}),NN=Fe({pageSize:{type:Number,required:!0},pageSizes:{type:Pe(Array),default:()=>rn([10,20,30,40,50,100])},popperClass:{type:String},disabled:Boolean,size:{type:String,default:"default"}}),jN={name:"ElPaginationSizes"},VN=Ee({...jN,props:NN,emits:["page-size-change"],setup(e,{emit:t}){const n=e,{t:r}=hn(),i=Ie("pagination"),l=Vp(),v=oe(n.pageSize);xe(()=>n.pageSizes,(u,d)=>{if(!Md(u,d)&&Array.isArray(u)){const c=u.includes(n.pageSize)?n.pageSize:n.pageSizes[0];t("page-size-change",c)}}),xe(()=>n.pageSize,u=>{v.value=u});const o=ee(()=>n.pageSizes);function a(u){var d;u!==v.value&&(v.value=u,(d=l.handleSizeChange)==null||d.call(l,Number(u)))}return(u,d)=>(z(),se("span",{class:de(C(i).e("sizes"))},[ue(C(pw),{"model-value":v.value,disabled:u.disabled,"popper-class":u.popperClass,size:u.size,"validate-event":!1,onChange:a},{default:he(()=>[(z(!0),se(je,null,jt(C(o),c=>(z(),be(C(mw),{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 UN=Re(VN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/sizes.vue"]]);const HN=["disabled"],WN={name:"ElPaginationJumper"},YN=Ee({...WN,setup(e){const{t}=hn(),n=Ie("pagination"),{pageCount:r,disabled:i,currentPage:l,changeEvent:v}=Vp(),o=oe(),a=ee(()=>{var c;return(c=o.value)!=null?c:l==null?void 0:l.value});function u(c){o.value=+c}function d(c){c=Math.trunc(+c),v==null||v(+c),o.value=void 0}return(c,f)=>(z(),se("span",{class:de(C(n).e("jump")),disabled:C(i)},[Ue(Ae(C(t)("el.pagination.goto"))+" ",1),ue(C(Wa),{size:"small",class:de([C(n).e("editor"),C(n).is("in-pagination")]),min:1,max:C(r),disabled:C(i),"model-value":C(a),"validate-event":!1,type:"number","onUpdate:modelValue":u,onChange:d},null,8,["class","max","disabled","model-value"]),Ue(" "+Ae(C(t)("el.pagination.pageClassifier")),1)],10,HN))}});var XN=Re(YN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/jumper.vue"]]);const KN=Fe({total:{type:Number,default:1e3}}),GN=["disabled"],qN={name:"ElPaginationTotal"},ZN=Ee({...qN,props:KN,setup(e){const{t}=hn(),n=Ie("pagination"),{disabled:r}=Vp();return(i,l)=>(z(),se("span",{class:de(C(n).e("total")),disabled:C(r)},Ae(C(t)("el.pagination.total",{total:i.total})),11,GN))}});var JN=Re(ZN,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/total.vue"]]);const QN=Fe({currentPage:{type:Number,default:1},pageCount:{type:Number,required:!0},pagerCount:{type:Number,default:7},disabled:Boolean}),e9=["onKeyup"],t9=["aria-current","tabindex"],n9=["tabindex"],r9=["aria-current","tabindex"],i9=["tabindex"],a9=["aria-current","tabindex"],o9={name:"ElPaginationPager"},s9=Ee({...o9,props:QN,emits:["change"],setup(e,{emit:t}){const n=e,r=Ie("pager"),i=Ie("icon"),l=oe(!1),v=oe(!1),o=oe(!1),a=oe(!1),u=oe(!1),d=oe(!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 E=w-(y-2);for(let I=E;I<w;I++)T.push(I)}else if(!S&&x)for(let E=2;E<y;E++)T.push(E);else if(S&&x){const E=Math.floor(y/2)-1;for(let I=_-E;I<=_+E;I++)T.push(I)}else for(let E=2;E<w;E++)T.push(E);return T}),f=ee(()=>n.disabled?-1:0);Na(()=>{const y=(n.pagerCount-1)/2;l.value=!1,v.value=!1,n.pageCount>n.pagerCount&&(n.currentPage>n.pagerCount-y&&(l.value=!0),n.currentPage<n.pageCount-y&&(v.value=!0))});function s(y=!1){n.disabled||(y?o.value=!0:a.value=!0)}function h(y=!1){y?u.value=!0:d.value=!0}function g(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")&&m(y)}function m(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)=>(z(),se("ul",{class:de(C(r).b()),onClick:m,onKeyup:Dt(g,["enter"])},[y.pageCount>0?(z(),se("li",{key:0,class:de([[C(r).is("active",y.currentPage===1),C(r).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===1,tabindex:C(f)}," 1 ",10,t9)):ye("v-if",!0),l.value?(z(),se("li",{key:1,class:de(["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]=_=>o.value=!1),onFocus:b[2]||(b[2]=_=>h(!0)),onBlur:b[3]||(b[3]=_=>u.value=!1)},[o.value||u.value?(z(),be(C(PE),{key:0})):(z(),be(C(Og),{key:1}))],42,n9)):ye("v-if",!0),(z(!0),se(je,null,jt(C(c),_=>(z(),se("li",{key:_,class:de([[C(r).is("active",y.currentPage===_),C(r).is("disabled",y.disabled)],"number"]),"aria-current":y.currentPage===_,tabindex:C(f)},Ae(_),11,r9))),128)),v.value?(z(),se("li",{key:2,class:de(["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]=_=>a.value=!1),onFocus:b[6]||(b[6]=_=>h()),onBlur:b[7]||(b[7]=_=>d.value=!1)},[a.value||d.value?(z(),be(C($E),{key:0})):(z(),be(C(Og),{key:1}))],42,i9)):ye("v-if",!0),y.pageCount>1?(z(),se("li",{key:3,class:de([[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,a9)):ye("v-if",!0)],42,e9))}});var l9=Re(s9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/pagination/src/components/pager.vue"]]);const pn=e=>typeof e!="number",u9=Fe({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:Pe(Array),default:()=>rn([10,20,30,40,50,100])},popperClass:{type:String,default:""},prevText:{type:String,default:""},prevIcon:{type:Xt,default:()=>Fc},nextText:{type:String,default:""},nextIcon:{type:Xt,default:()=>Sl},small:Boolean,background:Boolean,disabled:Boolean,hideOnSinglePage:Boolean}),c9={"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"},p0="ElPagination";var f9=Ee({name:p0,props:u9,emits:c9,setup(e,{emit:t,slots:n}){const{t:r}=hn(),i=Ie("pagination"),l=St().vnode.props||{},v="onUpdate:currentPage"in l||"onUpdate:current-page"in l||"onCurrentChange"in l,o="onUpdate:pageSize"in l||"onUpdate:page-size"in l||"onSizeChange"in l,a=ee(()=>{if(pn(e.total)&&pn(e.pageCount)||!pn(e.currentPage)&&!v)return!1;if(e.layout.includes("sizes")){if(pn(e.pageCount)){if(!pn(e.total)&&!pn(e.pageSize)&&!o)return!1}else if(!o)return!1}return!0}),u=oe(pn(e.defaultPageSize)?10:e.defaultPageSize),d=oe(pn(e.defaultCurrentPage)?1:e.defaultCurrentPage),c=ee({get(){return pn(e.pageSize)?u.value:e.pageSize},set(_){pn(e.pageSize)&&(u.value=_),o&&(t("update:page-size",_),t("size-change",_))}}),f=ee(()=>{let _=0;return pn(e.pageCount)?pn(e.total)||(_=Math.max(1,Math.ceil(e.total/c.value))):_=e.pageCount,_}),s=ee({get(){return pn(e.currentPage)?d.value:e.currentPage},set(_){let w=_;_<1?w=1:_>f.value&&(w=f.value),pn(e.currentPage)&&(d.value=w),v&&(t("update:current-page",w),t("current-change",w))}});xe(f,_=>{s.value>_&&(s.value=_)});function h(_){s.value=_}function g(_){c.value=_;const w=f.value;s.value>w&&(s.value=w)}function m(){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 gt(h1,{pageCount:f,disabled:ee(()=>e.disabled),currentPage:s,changeEvent:h,handleSizeChange:g}),()=>{var _,w;if(!a.value)return r("el.pagination.deprecationWarning"),null;if(!e.layout||e.hideOnSinglePage&&f.value<=1)return null;const S=[],x=[],T=_t("div",{class:i.e("rightwrapper")},x),E={prev:_t(yN,{disabled:e.disabled,currentPage:s.value,prevText:e.prevText,prevIcon:e.prevIcon,onClick:m}),jumper:_t(XN),pager:_t(l9,{currentPage:s.value,pageCount:f.value,pagerCount:e.pagerCount,onChange:h,disabled:e.disabled}),next:_t(xN,{disabled:e.disabled,currentPage:s.value,pageCount:f.value,nextText:e.nextText,nextIcon:e.nextIcon,onClick:y}),sizes:_t(UN,{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:_t(JN,{total:pn(e.total)?0:e.total})},I=e.layout.split(",").map(N=>N.trim());let D=!1;return I.forEach(N=>{if(N==="->"){D=!0;return}D?x.push(E[N]):S.push(E[N])}),b(S[0],i.is("first")),b(S[S.length-1],i.is("last")),D&&x.length>0&&(b(x[0],i.is("first")),b(x[x.length-1],i.is("last")),S.push(T)),_t("div",{role:"pagination","aria-label":"pagination",class:[i.b(),i.is("background",e.background),{[i.m("small")]:e.small}]},S)}}});const d9=Et(f9),h9=Fe({trigger:el.trigger,placement:Ef.placement,disabled:el.disabled,visible:Vn.visible,transition:Vn.transition,popperOptions:Ef.popperOptions,tabindex:Ef.tabindex,content:Vn.content,popperStyle:Vn.popperStyle,popperClass:Vn.popperClass,enterable:{...Vn.enterable,default:!0},effect:{...Vn.effect,default:"light"},teleported:Vn.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}}),p9={"update:visible":e=>Fn(e),"before-enter":()=>!0,"before-leave":()=>!0,"after-enter":()=>!0,"after-leave":()=>!0},m9={name:"ElPopover"},g9=Ee({...m9,props:h9,emits:p9,setup(e,{expose:t,emit:n}){const r=e,i="onUpdate:visible",l=ee(()=>r[i]),v=Ie("popover"),o=oe(),a=ee(()=>{var y;return(y=C(o))==null?void 0:y.popperRef}),u=ee(()=>[{width:Ar(r.width)},r.popperStyle]),d=ee(()=>[v.b(),r.popperClass,{[v.m("plain")]:!!r.content}]),c=ee(()=>r.transition===`${v.namespace.value}-fade-in-linear`),f=()=>{var y;(y=o.value)==null||y.hide()},s=()=>{n("before-enter")},h=()=>{n("before-leave")},g=()=>{n("after-enter")},m=()=>{n("update:visible",!1),n("after-leave")};return t({popperRef:a,hide:f}),(y,b)=>(z(),be(C(Mr),Tn({ref_key:"tooltipRef",ref:o},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(d),"popper-style":C(u),teleported:y.teleported,persistent:y.persistent,"gpu-acceleration":C(c),"onUpdate:visible":C(l),onBeforeShow:s,onBeforeHide:h,onShow:g,onHide:m}),{content:he(()=>[y.title?(z(),se("div",{key:0,class:de(C(v).e("title")),role:"title"},Ae(y.title),3)):ye("v-if",!0),Te(y.$slots,"default",{},()=>[Ue(Ae(y.content),1)])]),default:he(()=>[y.$slots.reference?Te(y.$slots,"reference",{key:0}):ye("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 v9=Re(g9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/popover/src/popover.vue"]]);const m0=(e,t)=>{const n=t.arg||t.value,r=n==null?void 0:n.popperRef;r&&(r.triggerRef=e)};var y9={mounted(e,t){m0(e,t)},updated(e,t){m0(e,t)}};const b9="popover",_9=AM(y9,b9),au=Et(v9,{directive:_9}),w9=Fe({type:{type:String,default:"line",values:["line","circle","dashboard"]},percentage:{type:Number,default:0,validator:e=>e>=0&&e<=100},status:{type:String,default:"",values:["","success","exception","warning"]},indeterminate:{type:Boolean,default:!1},duration:{type:Number,default:3},strokeWidth:{type:Number,default:6},strokeLinecap:{type:Pe(String),default:"round"},textInside:{type:Boolean,default:!1},width:{type:Number,default:126},showText:{type:Boolean,default:!0},color:{type:Pe([String,Array,Function]),default:""},format:{type:Pe(Function),default:e=>`${e}%`}}),C9=["aria-valuenow"],S9={viewBox:"0 0 100 100"},x9=["d","stroke","stroke-width"],T9=["d","stroke","opacity","stroke-linecap","stroke-width"],k9={key:0},E9={name:"ElProgress"},O9=Ee({...E9,props:w9,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)),v=ee(()=>["circle","dashboard"].includes(t.type)?Number.parseInt(`${50-Number.parseFloat(l.value)/2}`,10):0),o=ee(()=>{const _=v.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}
`}),a=ee(()=>2*Math.PI*v.value),u=ee(()=>t.type==="dashboard"?.75:1),d=ee(()=>`${-1*a.value*(1-u.value)/2}px`),c=ee(()=>({strokeDasharray:`${a.value*u.value}px, ${a.value}px`,strokeDashoffset:d.value})),f=ee(()=>({strokeDasharray:`${a.value*u.value*(t.percentage/100)}px, ${a.value}px`,strokeDashoffset:d.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,_}),h=ee(()=>t.status==="warning"?up:t.type==="line"?t.status==="success"?xl:zc:t.status==="success"?u_:Er),g=ee(()=>t.type==="line"?12+t.strokeWidth*.4:t.width*.111111+2),m=ee(()=>t.format(t.percentage));function y(_){const w=100/_.length;return _.map((x,T)=>Ge(x)?{color:x,percentage:(T+1)*w}:x).sort((x,T)=>x.percentage-T.percentage)}const b=_=>{var w;const{color:S}=t;if(Ye(S))return S(_);if(Ge(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)=>(z(),se("div",{class:de([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"?(z(),se("div",{key:0,class:de(C(r).b("bar"))},[re("div",{class:de(C(r).be("bar","outer")),style:Ne({height:`${_.strokeWidth}px`})},[re("div",{class:de([C(r).be("bar","inner"),{[C(r).bem("bar","inner","indeterminate")]:_.indeterminate}]),style:Ne(C(i))},[(_.showText||_.$slots.default)&&_.textInside?(z(),se("div",{key:0,class:de(C(r).be("bar","innerText"))},[Te(_.$slots,"default",{percentage:_.percentage},()=>[re("span",null,Ae(C(m)),1)])],2)):ye("v-if",!0)],6)],6)],2)):(z(),se("div",{key:1,class:de(C(r).b("circle")),style:Ne({height:`${_.width}px`,width:`${_.width}px`})},[(z(),se("svg",S9,[re("path",{class:de(C(r).be("circle","track")),d:C(o),stroke:`var(${C(r).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-width":C(l),fill:"none",style:Ne(C(c))},null,14,x9),re("path",{class:de(C(r).be("circle","path")),d:C(o),stroke:C(s),fill:"none",opacity:_.percentage?1:0,"stroke-linecap":_.strokeLinecap,"stroke-width":C(l),style:Ne(C(f))},null,14,T9)]))],6)),(_.showText||_.$slots.default)&&!_.textInside?(z(),se("div",{key:2,class:de(C(r).e("text")),style:Ne({fontSize:`${C(g)}px`})},[Te(_.$slots,"default",{percentage:_.percentage},()=>[_.status?(z(),be(C(Le),{key:1},{default:he(()=>[(z(),be(Tt(C(h))))]),_:1})):(z(),se("span",k9,Ae(C(m)),1))])],6)):ye("v-if",!0)],10,C9))}});var A9=Re(O9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/progress/src/progress.vue"]]);const gw=Et(A9),P9=["start","center","end","space-around","space-between","space-evenly"],I9=["top","middle","bottom"],M9=Fe({tag:{type:String,default:"div"},gutter:{type:Number,default:0},justify:{type:String,values:P9,default:"start"},align:{type:String,values:I9,default:"top"}}),L9={name:"ElRow"},R9=Ee({...L9,props:M9,setup(e){const t=e,n=Ie("row"),r=ee(()=>t.gutter);gt(m1,{gutter:r});const i=ee(()=>{const l={};return t.gutter&&(l.marginRight=l.marginLeft=`-${t.gutter/2}px`),l});return(l,v)=>(z(),be(Tt(l.tag),{class:de([C(n).b(),C(n).is(`justify-${t.justify}`,l.justify!=="start"),C(n).is(`align-${t.align}`,l.align!=="top")]),style:Ne(C(i))},{default:he(()=>[Te(l.$slots,"default")]),_:3},8,["class","style"]))}});var D9=Re(R9,[["__file","/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);const g0=Et(D9),$9=Fe({modelValue:{type:Pe([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:ji,inputSize:ji,showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Pe(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:Pe(Function),default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,values:jo,default:"top"},marks:{type:Pe(Object)},validateEvent:{type:Boolean,default:!0}}),Mf=e=>ft(e)||He(e)&&e.every(ft),B9={[wt]:Mf,[Aa]:Mf,[ti]:Mf},F9=(e,t,n)=>{const r=oe();return nt(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),Ct(window,"resize",n),await Xe(),n()}),{sliderWrapper:r}},z9=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]})):[]),N9=(e,t,n)=>{const{form:r,formItem:i}=Xi(),l=fn(),v=oe(),o=oe(),a={firstButton:v,secondButton:o},u=ee(()=>e.disabled||(r==null?void 0:r.disabled)||!1),d=ee(()=>Math.min(t.firstValue,t.secondValue)),c=ee(()=>Math.max(t.firstValue,t.secondValue)),f=ee(()=>e.range?`${100*(c.value-d.value)/(e.max-e.min)}%`:`${100*(t.firstValue-e.min)/(e.max-e.min)}%`),s=ee(()=>e.range?`${100*(d.value-e.min)/(e.max-e.min)}%`:"0%"),h=ee(()=>e.vertical?{height:e.height}:{}),g=ee(()=>e.vertical?{height:f.value,bottom:s.value}:{width:f.value,left:s.value}),m=()=>{l.value&&(t.sliderSize=l.value[`client${e.vertical?"Height":"Width"}`])},y=N=>{const L=e.min+N*(e.max-e.min)/100;if(!e.range)return v;let F;return Math.abs(d.value-L)<Math.abs(c.value-L)?F=t.firstValue<t.secondValue?"firstButton":"secondButton":F=t.firstValue>t.secondValue?"firstButton":"secondButton",a[F]},b=N=>{const L=y(N);return L.value.setPosition(N),L},_=N=>{t.firstValue=N,S(e.range?[d.value,c.value]:N)},w=N=>{t.secondValue=N,e.range&&S([d.value,c.value])},S=N=>{n(wt,N),n(Aa,N)},x=async()=>{await Xe(),n(ti,e.range?[d.value,c.value]:e.modelValue)},T=N=>{var L,F,O,V,ne,J;if(u.value||t.dragging)return;m();let le=0;if(e.vertical){const M=(O=(F=(L=N.touches)==null?void 0:L.item(0))==null?void 0:F.clientY)!=null?O:N.clientY;le=(l.value.getBoundingClientRect().bottom-M)/t.sliderSize*100}else{const M=(J=(ne=(V=N.touches)==null?void 0:V.item(0))==null?void 0:ne.clientX)!=null?J:N.clientX,U=l.value.getBoundingClientRect().left;le=(M-U)/t.sliderSize*100}if(!(le<0||le>100))return b(le)};return{elFormItem:i,slider:l,firstButton:v,secondButton:o,sliderDisabled:u,minValue:d,maxValue:c,runwayStyle:h,barStyle:g,resetSize:m,setPosition:b,emitChange:x,onSliderWrapperPrevent:N=>{var L,F;(((L=a.firstButton.value)==null?void 0:L.dragging)||((F=a.secondButton.value)==null?void 0:F.dragging))&&N.preventDefault()},onSliderClick:N=>{T(N)&&x()},onSliderDown:async N=>{const L=T(N);L&&(await Xe(),L.value.onButtonDown(N))},setFirstValue:_,setSecondValue:w}},{left:j9,down:V9,right:U9,up:H9,home:W9,end:Y9,pageUp:X9,pageDown:K9}=Ot,G9=(e,t,n)=>{const r=oe(),i=oe(!1),l=ee(()=>t.value instanceof Function),v=ee(()=>l.value&&t.value(e.modelValue)||e.modelValue),o=ko(()=>{n.value&&(i.value=!0)},50),a=ko(()=>{n.value&&(i.value=!1)},50);return{tooltip:r,tooltipVisible:i,formatValue:v,displayTooltip:o,hideTooltip:a}},q9=(e,t,n)=>{const{disabled:r,min:i,max:l,step:v,showTooltip:o,precision:a,sliderSize:u,formatTooltip:d,emitChange:c,resetSize:f,updateDragging:s}=qe(v1),{tooltip:h,tooltipVisible:g,formatValue:m,displayTooltip:y,hideTooltip:b}=G9(e,d,o),_=oe(),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()},E=P=>{r.value||(P.preventDefault(),le(P),window.addEventListener("mousemove",M),window.addEventListener("touchmove",M),window.addEventListener("mouseup",U),window.addEventListener("touchend",U),window.addEventListener("contextmenu",U),_.value.focus())},I=P=>{r.value||(t.newPosition=Number.parseFloat(w.value)+P/(l.value-i.value)*100,R(t.newPosition),c())},D=()=>{I(-v.value)},N=()=>{I(v.value)},L=()=>{I(-v.value*4)},F=()=>{I(v.value*4)},O=()=>{r.value||(R(0),c())},V=()=>{r.value||(R(100),c())},ne=P=>{let Q=!0;[j9,V9].includes(P.key)?D():[U9,H9].includes(P.key)?N():P.key===W9?O():P.key===Y9?V():P.key===K9?L():P.key===X9?F():Q=!1,Q&&P.preventDefault()},J=P=>{let Q,j;return P.type.startsWith("touch")?(j=P.touches[0].clientY,Q=P.touches[0].clientX):(j=P.clientY,Q=P.clientX),{clientX:Q,clientY:j}},le=P=>{t.dragging=!0,t.isClick=!0;const{clientX:Q,clientY:j}=J(P);e.vertical?t.startY=j:t.startX=Q,t.startPosition=Number.parseFloat(w.value),t.newPosition=t.startPosition},M=P=>{if(t.dragging){t.isClick=!1,y(),f();let Q;const{clientX:j,clientY:A}=J(P);e.vertical?(t.currentY=A,Q=(t.startY-t.currentY)/u.value*100):(t.currentX=j,Q=(t.currentX-t.startX)/u.value*100),t.newPosition=t.startPosition+Q,R(t.newPosition)}},U=()=>{t.dragging&&(setTimeout(()=>{t.dragging=!1,t.hovering||b(),t.isClick||R(t.newPosition),c()},0),window.removeEventListener("mousemove",M),window.removeEventListener("touchmove",M),window.removeEventListener("mouseup",U),window.removeEventListener("touchend",U),window.removeEventListener("contextmenu",U))},R=async P=>{if(P===null||Number.isNaN(+P))return;P<0?P=0:P>100&&(P=100);const Q=100/((l.value-i.value)/v.value);let A=Math.round(P/Q)*Q*(l.value-i.value)*.01+i.value;A=Number.parseFloat(A.toFixed(a.value)),A!==e.modelValue&&n(wt,A),!t.dragging&&e.modelValue!==t.oldValue&&(t.oldValue=e.modelValue),await Xe(),t.dragging&&y(),h.value.updatePopper()};return xe(()=>t.dragging,P=>{s(P)}),{disabled:r,button:_,tooltip:h,tooltipVisible:g,showTooltip:o,wrapperStyle:S,formatValue:m,handleMouseEnter:x,handleMouseLeave:T,onButtonDown:E,onKeyDown:ne,setPosition:R}},Z9=(e,t,n,r)=>({stops:ee(()=>{if(!e.showStops||e.min>e.max)return[];if(e.step===0)return[];const v=(e.max-e.min)/e.step,o=100*e.step/(e.max-e.min),a=Array.from({length:v-1}).map((u,d)=>(d+1)*o);return e.range?a.filter(u=>u<100*(n.value-e.min)/(e.max-e.min)||u>100*(r.value-e.min)/(e.max-e.min)):a.filter(u=>u>100*(t.firstValue-e.min)/(e.max-e.min))}),getStopStyle:v=>e.vertical?{bottom:`${v}%`}:{left:`${v}%`}}),J9=(e,t,n,r,i,l)=>{const v=u=>{i(wt,u),i(Aa,u)},o=()=>e.range?![n.value,r.value].every((u,d)=>u===t.oldValue[d]):e.modelValue!==t.oldValue,a=()=>{var u,d;if(e.min>e.max){bn("Slider","min should not be greater than max.");return}const c=e.modelValue;e.range&&Array.isArray(c)?c[1]<e.min?v([e.min,e.min]):c[0]>e.max?v([e.max,e.max]):c[0]<e.min?v([e.min,c[1]]):c[1]>e.max?v([c[0],e.max]):(t.firstValue=c[0],t.secondValue=c[1],o()&&(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?v(e.min):c>e.max?v(e.max):(t.firstValue=c,o()&&(e.validateEvent&&((d=l==null?void 0:l.validate)==null||d.call(l,"change").catch(f=>void 0)),t.oldValue=c)))};a(),xe(()=>t.dragging,u=>{u||a()}),xe(()=>e.modelValue,(u,d)=>{t.dragging||Array.isArray(u)&&Array.isArray(d)&&u.every((c,f)=>c===d[f])&&t.firstValue===u[0]&&t.secondValue===u[1]||a()},{deep:!0}),xe(()=>[e.min,e.max],()=>{a()})},Q9=Fe({modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:jo,default:"top"}}),ej={[wt]:e=>ft(e)},tj=["tabindex"],nj={name:"ElSliderButton"},rj=Ee({...nj,props:Q9,emits:ej,setup(e,{expose:t,emit:n}){const r=e,i=Ie("slider"),l=vt({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:r.modelValue}),{disabled:v,button:o,tooltip:a,showTooltip:u,tooltipVisible:d,wrapperStyle:c,formatValue:f,handleMouseEnter:s,handleMouseLeave:h,onButtonDown:g,onKeyDown:m,setPosition:y}=q9(r,l,n),{hovering:b,dragging:_}=Xn(l);return t({onButtonDown:g,onKeyDown:m,setPosition:y,hovering:b,dragging:_}),(w,S)=>(z(),se("div",{ref_key:"button",ref:o,class:de([C(i).e("button-wrapper"),{hover:C(b),dragging:C(_)}]),style:Ne(C(c)),tabindex:C(v)?-1:0,onMouseenter:S[0]||(S[0]=(...x)=>C(s)&&C(s)(...x)),onMouseleave:S[1]||(S[1]=(...x)=>C(h)&&C(h)(...x)),onMousedown:S[2]||(S[2]=(...x)=>C(g)&&C(g)(...x)),onTouchstart:S[3]||(S[3]=(...x)=>C(g)&&C(g)(...x)),onFocus:S[4]||(S[4]=(...x)=>C(s)&&C(s)(...x)),onBlur:S[5]||(S[5]=(...x)=>C(h)&&C(h)(...x)),onKeydown:S[6]||(S[6]=(...x)=>C(m)&&C(m)(...x))},[ue(C(Mr),{ref_key:"tooltip",ref:a,visible:C(d),placement:w.placement,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":w.tooltipClass,disabled:!C(u),persistent:""},{content:he(()=>[re("span",null,Ae(C(f)),1)]),default:he(()=>[re("div",{class:de([C(i).e("button"),{hover:C(b),dragging:C(_)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled"])],46,tj))}});var v0=Re(rj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/button.vue"]]);const ij=Fe({mark:{type:Pe([String,Object]),default:void 0}});var aj=Ee({name:"ElSliderMarker",props:ij,setup(e){const t=Ie("slider"),n=ee(()=>Ge(e.mark)?e.mark:e.mark.label),r=ee(()=>Ge(e.mark)?void 0:e.mark.style);return()=>_t("div",{class:t.e("marks-text"),style:r.value},n.value)}});const oj=["id","role","aria-label","aria-labelledby"],sj={key:1},lj={name:"ElSlider"},uj=Ee({...lj,props:$9,emits:B9,setup(e,{expose:t,emit:n}){const r=e,i=Ie("slider"),{t:l}=hn(),v=vt({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),{elFormItem:o,slider:a,firstButton:u,secondButton:d,sliderDisabled:c,minValue:f,maxValue:s,runwayStyle:h,barStyle:g,resetSize:m,emitChange:y,onSliderWrapperPrevent:b,onSliderClick:_,onSliderDown:w,setFirstValue:S,setSecondValue:x}=N9(r,v,n),{stops:T,getStopStyle:E}=Z9(r,v,f,s),{inputId:I,isLabeledByFormItem:D}=kl(r,{formItemContext:o}),N=Zn(),L=ee(()=>r.inputSize||N.value),F=ee(()=>r.label||l("el.slider.defaultLabel",{min:r.min,max:r.max})),O=ee(()=>r.range?r.rangeStartLabel||l("el.slider.defaultRangeStartLabel"):F.value),V=ee(()=>r.formatValueText?r.formatValueText(P.value):`${P.value}`),ne=ee(()=>r.rangeEndLabel||l("el.slider.defaultRangeEndLabel")),J=ee(()=>r.formatValueText?r.formatValueText(Q.value):`${Q.value}`),le=ee(()=>[i.b(),i.m(N.value),i.is("vertical",r.vertical),{[i.m("with-input")]:r.showInput}]),M=z9(r);J9(r,v,f,s,n,o);const U=ee(()=>{const q=[r.min,r.max,r.step].map(G=>{const te=`${G}`.split(".")[1];return te?te.length:0});return Math.max.apply(null,q)}),{sliderWrapper:R}=F9(r,v,m),{firstValue:P,secondValue:Q,sliderSize:j}=Xn(v),A=q=>{v.dragging=q};return gt(v1,{...Xn(r),sliderSize:j,disabled:c,precision:U,emitChange:y,resetSize:m,updateDragging:A}),t({onSliderClick:_}),(q,G)=>{var te,fe;return z(),se("div",{id:q.range?C(I):void 0,ref_key:"sliderWrapper",ref:R,class:de(C(le)),role:q.range?"group":void 0,"aria-label":q.range&&!C(D)?C(F):void 0,"aria-labelledby":q.range&&C(D)?(te=C(o))==null?void 0:te.labelId:void 0,onTouchstart:G[2]||(G[2]=(...pe)=>C(b)&&C(b)(...pe)),onTouchmove:G[3]||(G[3]=(...pe)=>C(b)&&C(b)(...pe))},[re("div",{ref_key:"slider",ref:a,class:de([C(i).e("runway"),{"show-input":q.showInput&&!q.range},C(i).is("disabled",C(c))]),style:Ne(C(h)),onMousedown:G[0]||(G[0]=(...pe)=>C(w)&&C(w)(...pe)),onTouchstart:G[1]||(G[1]=(...pe)=>C(w)&&C(w)(...pe))},[re("div",{class:de(C(i).e("bar")),style:Ne(C(g))},null,6),ue(v0,{id:q.range?void 0:C(I),ref_key:"firstButton",ref:u,"model-value":C(P),vertical:q.vertical,"tooltip-class":q.tooltipClass,placement:q.placement,role:"slider","aria-label":q.range||!C(D)?C(O):void 0,"aria-labelledby":!q.range&&C(D)?(fe=C(o))==null?void 0:fe.labelId:void 0,"aria-valuemin":q.min,"aria-valuemax":q.range?C(Q):q.max,"aria-valuenow":C(P),"aria-valuetext":C(V),"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?(z(),be(v0,{key:0,ref_key:"secondButton",ref:d,"model-value":C(Q),vertical:q.vertical,"tooltip-class":q.tooltipClass,placement:q.placement,role:"slider","aria-label":C(ne),"aria-valuemin":C(P),"aria-valuemax":q.max,"aria-valuenow":C(Q),"aria-valuetext":C(J),"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"])):ye("v-if",!0),q.showStops?(z(),se("div",sj,[(z(!0),se(je,null,jt(C(T),(pe,ve)=>(z(),se("div",{key:ve,class:de(C(i).e("stop")),style:Ne(C(E)(pe))},null,6))),128))])):ye("v-if",!0),C(M).length>0?(z(),se(je,{key:2},[re("div",null,[(z(!0),se(je,null,jt(C(M),(pe,ve)=>(z(),se("div",{key:ve,style:Ne(C(E)(pe.position)),class:de([C(i).e("stop"),C(i).e("marks-stop")])},null,6))),128))]),re("div",{class:de(C(i).e("marks"))},[(z(!0),se(je,null,jt(C(M),(pe,ve)=>(z(),be(C(aj),{key:ve,mark:pe.mark,style:Ne(C(E)(pe.position))},null,8,["mark","style"]))),128))],2)],64)):ye("v-if",!0)],38),q.showInput&&!q.range?(z(),be(C(Xd),{key:0,ref:"input","model-value":C(P),class:de(C(i).e("input")),step:q.step,disabled:C(c),controls:q.showInputControls,min:q.min,max:q.max,debounce:q.debounce,size:C(L),"onUpdate:modelValue":C(S),onChange:C(y)},null,8,["model-value","class","step","disabled","controls","min","max","debounce","size","onUpdate:modelValue","onChange"])):ye("v-if",!0)],42,oj)}}});var cj=Re(uj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/slider/src/slider.vue"]]);const y0=Et(cj),fj=Fe({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:Xt},inactiveIcon:{type:Xt},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:Pe(Function)},size:{type:String,validator:Yc},tabindex:{type:[String,Number]}}),dj={[wt]:e=>Fn(e)||Ge(e)||ft(e),[ti]:e=>Fn(e)||Ge(e)||ft(e),[Aa]:e=>Fn(e)||Ge(e)||ft(e)},hj=["onClick"],pj=["id","aria-checked","aria-disabled","name","true-value","false-value","disabled","tabindex","onKeydown"],mj=["aria-hidden"],gj=["aria-hidden"],vj=["aria-hidden"],yj=["aria-hidden"],bj={name:"ElSwitch"},_j=Ee({...bj,props:fj,emits:dj,setup(e,{expose:t,emit:n}){const r=e,i="ElSwitch",l=St(),{formItem:v}=Xi(),o=Zn(),a=Ie("switch");Zs({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}=kl(r,{formItemContext:v}),d=Ha(ee(()=>r.loading)),c=oe(r.modelValue!==!1),f=oe(),s=oe(),h=ee(()=>[a.b(),a.m(o.value),a.is("disabled",d.value),a.is("checked",y.value)]),g=ee(()=>({width:Ar(r.width)}));xe(()=>r.modelValue,()=>{c.value=!0}),xe(()=>r.value,()=>{c.value=!1});const m=ee(()=>c.value?r.modelValue:r.value),y=ee(()=>m.value===r.activeValue);[r.activeValue,r.inactiveValue].includes(m.value)||(n(wt,r.inactiveValue),n(ti,r.inactiveValue),n(Aa,r.inactiveValue)),xe(y,x=>{var T;f.value.checked=x,r.validateEvent&&((T=v==null?void 0:v.validate)==null||T.call(v,"change").catch(E=>void 0))});const b=()=>{const x=y.value?r.inactiveValue:r.activeValue;n(wt,x),n(ti,x),n(Aa,x),Xe(()=>{f.value.checked=y.value})},_=()=>{if(d.value)return;const{beforeChange:x}=r;if(!x){b();return}const T=x();[Wu(T),Fn(T)].includes(!0)||bn(i,"beforeChange must return type `Promise<boolean>` or `boolean`"),Wu(T)?T.then(I=>{I&&b()}).catch(I=>{}):T&&b()},w=ee(()=>a.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 nt(()=>{f.value.checked=y.value}),t({focus:S,checked:y}),(x,T)=>(z(),se("div",{class:de(C(h)),style:Ne(C(w)),onClick:tt(_,["prevent"])},[re("input",{id:C(u),ref_key:"input",ref:f,class:de(C(a).e("input")),type:"checkbox",role:"switch","aria-checked":C(y),"aria-disabled":C(d),name:x.name,"true-value":x.activeValue,"false-value":x.inactiveValue,disabled:C(d),tabindex:x.tabindex,onChange:b,onKeydown:Dt(_,["enter"])},null,42,pj),!x.inlinePrompt&&(x.inactiveIcon||x.inactiveText)?(z(),se("span",{key:0,class:de([C(a).e("label"),C(a).em("label","left"),C(a).is("active",!C(y))])},[x.inactiveIcon?(z(),be(C(Le),{key:0},{default:he(()=>[(z(),be(Tt(x.inactiveIcon)))]),_:1})):ye("v-if",!0),!x.inactiveIcon&&x.inactiveText?(z(),se("span",{key:1,"aria-hidden":C(y)},Ae(x.inactiveText),9,mj)):ye("v-if",!0)],2)):ye("v-if",!0),re("span",{ref_key:"core",ref:s,class:de(C(a).e("core")),style:Ne(C(g))},[x.inlinePrompt?(z(),se("div",{key:0,class:de(C(a).e("inner"))},[x.activeIcon||x.inactiveIcon?(z(),se(je,{key:0},[x.activeIcon?(z(),be(C(Le),{key:0,class:de([C(a).is("icon"),C(y)?C(a).is("show"):C(a).is("hide")])},{default:he(()=>[(z(),be(Tt(x.activeIcon)))]),_:1},8,["class"])):ye("v-if",!0),x.inactiveIcon?(z(),be(C(Le),{key:1,class:de([C(a).is("icon"),C(y)?C(a).is("hide"):C(a).is("show")])},{default:he(()=>[(z(),be(Tt(x.inactiveIcon)))]),_:1},8,["class"])):ye("v-if",!0)],64)):x.activeText||x.inactiveIcon?(z(),se(je,{key:1},[x.activeText?(z(),se("span",{key:0,class:de([C(a).is("text"),C(y)?C(a).is("show"):C(a).is("hide")]),"aria-hidden":!C(y)},Ae(x.activeText.substring(0,3)),11,gj)):ye("v-if",!0),x.inactiveText?(z(),se("span",{key:1,class:de([C(a).is("text"),C(y)?C(a).is("hide"):C(a).is("show")]),"aria-hidden":C(y)},Ae(x.inactiveText.substring(0,3)),11,vj)):ye("v-if",!0)],64)):ye("v-if",!0)],2)):ye("v-if",!0),re("div",{class:de(C(a).e("action"))},[x.loading?(z(),be(C(Le),{key:0,class:de(C(a).is("loading"))},{default:he(()=>[ue(C(op))]),_:1},8,["class"])):ye("v-if",!0)],2)],6),!x.inlinePrompt&&(x.activeIcon||x.activeText)?(z(),se("span",{key:1,class:de([C(a).e("label"),C(a).em("label","right"),C(a).is("active",C(y))])},[x.activeIcon?(z(),be(C(Le),{key:0},{default:he(()=>[(z(),be(Tt(x.activeIcon)))]),_:1})):ye("v-if",!0),!x.activeIcon&&x.activeText?(z(),se("span",{key:1,"aria-hidden":!C(y)},Ae(x.activeText),9,yj)):ye("v-if",!0)],2)):ye("v-if",!0)],14,hj))}});var wj=Re(_j,[["__file","/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);const b0=Et(wj),Cj=Fe({tabs:{type:Pe(Array),default:()=>rn([])}}),Sj={name:"ElTabBar"},xj=Ee({...Sj,props:Cj,setup(e,{expose:t}){const n=e,r="ElTabBar",i=St(),l=qe(Xc);l||bn(r,"<el-tabs><el-tab-bar /></el-tabs>");const v=Ie("tabs"),o=oe(),a=oe(),u=()=>{let c=0,f=0;const s=["top","bottom"].includes(l.props.tabPosition)?"width":"height",h=s==="width"?"x":"y";return n.tabs.every(g=>{var m,y,b,_;const w=(y=(m=i.parent)==null?void 0:m.refs)==null?void 0:y[`tab-${g.uid}`];if(!w)return!1;if(!g.active)return!0;f=w[`client${ca(s)}`];const S=h==="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${ca(h)}(${c}px)`}},d=()=>a.value=u();return xe(()=>n.tabs,async()=>{await Xe(),d()},{immediate:!0}),Ir(o,()=>d()),t({ref:o,update:d}),(c,f)=>(z(),se("div",{ref_key:"barRef",ref:o,class:de([C(v).e("active-bar"),C(v).is(C(l).props.tabPosition)]),style:Ne(a.value)},null,6))}});var Tj=Re(xj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-bar.vue"]]);const kj=Fe({panes:{type:Pe(Array),default:()=>rn([])},currentName:{type:[String,Number],default:""},editable:Boolean,type:{type:String,values:["card","border-card",""],default:""},stretch:Boolean}),Ej={tabClick:(e,t,n)=>n instanceof Event,tabRemove:(e,t)=>t instanceof Event},_0="ElTabNav",Oj=Ee({name:_0,props:kj,emits:Ej,setup(e,{expose:t,emit:n}){const r=St(),i=qe(Xc);i||bn(_0,"<el-tabs><tab-nav /></el-tabs>");const l=Ie("tabs"),v=nM(),o=gM(),a=oe(),u=oe(),d=oe(),c=oe(!1),f=oe(0),s=oe(!1),h=oe(!0),g=ee(()=>["top","bottom"].includes(i.props.tabPosition)?"width":"height"),m=ee(()=>({transform:`translate${g.value==="width"?"X":"Y"}(-${f.value}px)`})),y=()=>{if(!a.value)return;const E=a.value[`offset${ca(g.value)}`],I=f.value;if(!I)return;const D=I>E?I-E:0;f.value=D},b=()=>{if(!a.value||!u.value)return;const E=u.value[`offset${ca(g.value)}`],I=a.value[`offset${ca(g.value)}`],D=f.value;if(E-D<=I)return;const N=E-D>I*2?D+I:E-I;f.value=N},_=async()=>{const E=u.value;if(!c.value||!d.value||!a.value||!E)return;await Xe();const I=d.value.querySelector(".is-active");if(!I)return;const D=a.value,N=["top","bottom"].includes(i.props.tabPosition),L=I.getBoundingClientRect(),F=D.getBoundingClientRect(),O=N?E.offsetWidth-F.width:E.offsetHeight-F.height,V=f.value;let ne=V;N?(L.left<F.left&&(ne=V-(F.left-L.left)),L.right>F.right&&(ne=V+L.right-F.right)):(L.top<F.top&&(ne=V-(F.top-L.top)),L.bottom>F.bottom&&(ne=V+(L.bottom-F.bottom))),ne=Math.max(ne,0),f.value=Math.min(ne,O)},w=()=>{if(!u.value||!a.value)return;const E=u.value[`offset${ca(g.value)}`],I=a.value[`offset${ca(g.value)}`],D=f.value;if(I<E){const N=f.value;c.value=c.value||{},c.value.prev=N,c.value.next=N+I<E,E-N<I&&(f.value=E-I)}else c.value=!1,D>0&&(f.value=0)},S=E=>{const I=E.code,{up:D,down:N,left:L,right:F}=Ot;if(![D,N,L,F].includes(I))return;const O=Array.from(E.currentTarget.querySelectorAll("[role=tab]:not(.is-disabled)")),V=O.indexOf(E.target);let ne;I===L||I===D?V===0?ne=O.length-1:ne=V-1:V<O.length-1?ne=V+1:ne=0,O[ne].focus(),O[ne].click(),x()},x=()=>{h.value&&(s.value=!0)},T=()=>s.value=!1;return xe(v,E=>{E==="hidden"?h.value=!1:E==="visible"&&setTimeout(()=>h.value=!0,50)}),xe(o,E=>{E?setTimeout(()=>h.value=!0,50):h.value=!1}),Ir(d,w),nt(()=>setTimeout(()=>_(),0)),ja(()=>w()),t({scrollToActiveTab:_,removeFocus:T}),xe(()=>e.panes,()=>r.update(),{flush:"post"}),()=>{const E=c.value?[ue("span",{class:[l.e("nav-prev"),l.is("disabled",!c.value.prev)],onClick:y},[ue(Le,null,{default:()=>[ue(Fc,null,null)]})]),ue("span",{class:[l.e("nav-next"),l.is("disabled",!c.value.next)],onClick:b},[ue(Le,null,{default:()=>[ue(Sl,null,null)]})])]:null,I=e.panes.map((D,N)=>{var L,F,O,V;const ne=D.uid,J=D.props.disabled,le=(F=(L=D.props.name)!=null?L:D.index)!=null?F:`${N}`,M=!J&&(D.isClosable||e.editable);D.index=`${N}`;const U=M?ue(Le,{class:"is-icon-close",onClick:Q=>n("tabRemove",D,Q)},{default:()=>[ue(Er,null,null)]}):null,R=((V=(O=D.slots).label)==null?void 0:V.call(O))||D.props.label,P=!J&&D.active?0:-1;return ue("div",{ref:`tab-${ne}`,class:[l.e("item"),l.is(i.props.tabPosition),l.is("active",D.active),l.is("disabled",J),l.is("closable",M),l.is("focus",s.value)],id:`tab-${le}`,key:`tab-${ne}`,"aria-controls":`pane-${le}`,role:"tab","aria-selected":D.active,tabindex:P,onFocus:()=>x(),onBlur:()=>T(),onClick:Q=>{T(),n("tabClick",D,le,Q)},onKeydown:Q=>{M&&(Q.code===Ot.delete||Q.code===Ot.backspace)&&n("tabRemove",D,Q)}},[R,U])});return ue("div",{ref:d,class:[l.e("nav-wrap"),l.is("scrollable",!!c.value),l.is(i.props.tabPosition)]},[E,ue("div",{class:l.e("nav-scroll"),ref:a},[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:m.value,role:"tablist",onKeydown:S},[e.type?null:ue(Tj,{tabs:[...e.panes]},null),I])])])}}}),Aj=Fe({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:Pe(Function),default:()=>!0},stretch:Boolean}),Lf=e=>Ge(e)||ft(e),Pj={[wt]:e=>Lf(e),tabClick:(e,t)=>t instanceof Event,tabChange:e=>Lf(e),edit:(e,t)=>["remove","add"].includes(t),tabRemove:e=>Lf(e),tabAdd:()=>!0};var Ij=Ee({name:"ElTabs",props:Aj,emits:Pj,setup(e,{emit:t,slots:n,expose:r}){var i,l;const v=Ie("tabs"),o=oe(),a=vt({}),u=oe((l=(i=e.modelValue)!=null?i:e.activeName)!=null?l:"0"),d=g=>{u.value=g,t(wt,g),t("tabChange",g)},c=async g=>{var m,y,b;if(!(u.value===g||ar(g)))try{await((m=e.beforeLeave)==null?void 0:m.call(e,g,u.value))!==!1&&(d(g),(b=(y=o.value)==null?void 0:y.removeFocus)==null||b.call(y))}catch{}},f=(g,m,y)=>{g.props.disabled||(c(m),t("tabClick",g,y))},s=(g,m)=>{g.props.disabled||ar(g.props.name)||(m.stopPropagation(),t("edit",g.props.name,"remove"),t("tabRemove",g.props.name))},h=()=>{t("edit",void 0,"add"),t("tabAdd")};return Zs({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,g=>c(g)),xe(()=>e.modelValue,g=>c(g)),xe(u,async()=>{var g;await Xe(),(g=o.value)==null||g.scrollToActiveTab()}),gt(Xc,{props:e,currentName:u,registerPane:y=>a[y.uid]=y,unregisterPane:y=>delete a[y]}),r({currentName:u}),()=>{const g=e.editable||e.addable?ue("span",{class:v.e("new-tab"),tabindex:"0",onClick:h,onKeydown:b=>{b.code===Ot.enter&&h()}},[ue(Le,{class:v.is("icon-plus")},{default:()=>[ue(sp,null,null)]})]):null,m=ue("div",{class:[v.e("header"),v.is(e.tabPosition)]},[g,ue(Oj,{ref:o,currentName:u.value,editable:e.editable,type:e.type,panes:Object.values(a),stretch:e.stretch,onTabClick:f,onTabRemove:s},null)]),y=ue("div",{class:v.e("content")},[Te(n,"default")]);return ue("div",{class:[v.b(),v.m(e.tabPosition),{[v.m("card")]:e.type==="card",[v.m("border-card")]:e.type==="border-card"}]},[...e.tabPosition!=="bottom"?[m,y]:[y,m]])}}});const Mj=Fe({label:{type:String,default:""},name:{type:[String,Number]},closable:Boolean,disabled:Boolean,lazy:Boolean}),Lj=["id","aria-hidden","aria-labelledby"],Rj={name:"ElTabPane"},Dj=Ee({...Rj,props:Mj,setup(e){const t=e,n="ElTabPane",r=St(),i=$o(),l=qe(Xc);l||bn(n,"usage: <el-tabs><el-tab-pane /></el-tabs/>");const v=Ie("tab-pane"),o=oe(),a=ee(()=>t.closable||l.props.closable),u=uv(()=>{var h;return l.currentName.value===((h=t.name)!=null?h:o.value)}),d=oe(u.value),c=ee(()=>{var h;return(h=t.name)!=null?h:o.value}),f=uv(()=>!t.lazy||d.value||u.value);xe(u,h=>{h&&(d.value=!0)});const s=vt({uid:r.uid,slots:i,props:t,paneName:c,active:u,index:o,isClosable:a});return nt(()=>{l.registerPane(s)}),li(()=>{l.unregisterPane(s.uid)}),(h,g)=>C(f)?kt((z(),se("div",{key:0,id:`pane-${C(c)}`,class:de(C(v).b()),role:"tabpanel","aria-hidden":!C(u),"aria-labelledby":`tab-${C(c)}`},[Te(h.$slots,"default")],10,Lj)),[[Ht,C(u)]]):ye("v-if",!0)}});var vw=Re(Dj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/tabs/src/tab-pane.vue"]]);const $j=Et(Ij,{TabPane:vw}),Rf=dr(vw),Bj="ElUpload";class Fj extends Error{constructor(t,n,r,i){super(t),this.name="UploadAjaxError",this.status=n,this.method=r,this.url=i}}function w0(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 Fj(r,n.status,t.method,e)}function zj(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}const Nj=e=>{typeof XMLHttpRequest>"u"&&bn(Bj,"XMLHttpRequest is undefined");const t=new XMLHttpRequest,n=e.action;t.upload&&t.upload.addEventListener("progress",l=>{const v=l;v.percent=l.total>0?l.loaded/l.total*100:0,e.onProgress(v)});const r=new FormData;if(e.data)for(const[l,v]of Object.entries(e.data))Array.isArray(v)?r.append(l,...v):r.append(l,v);r.append(e.filename,e.file,e.file.name),t.addEventListener("error",()=>{e.onError(w0(n,e,t))}),t.addEventListener("load",()=>{if(t.status<200||t.status>=300)return e.onError(w0(n,e,t));e.onSuccess(zj(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,v)=>t.setRequestHeader(v,l));else for(const[l,v]of Object.entries(i))Sr(v)||t.setRequestHeader(l,String(v));return t.send(r),t},yw=["text","picture","picture-card"];let jj=1;const bw=()=>Date.now()+jj++,_w=Fe({action:{type:String,default:"#"},headers:{type:Pe(Object)},method:{type:String,default:"post"},data:{type:Object,default:()=>rn({})},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:Pe(Array),default:()=>rn([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:yw,default:"text"},httpRequest:{type:Pe(Function),default:Nj},disabled:Boolean,limit:Number}),Vj=Fe({..._w,beforeUpload:{type:Pe(Function),default:ct},beforeRemove:{type:Pe(Function)},onRemove:{type:Pe(Function),default:ct},onChange:{type:Pe(Function),default:ct},onPreview:{type:Pe(Function),default:ct},onSuccess:{type:Pe(Function),default:ct},onProgress:{type:Pe(Function),default:ct},onError:{type:Pe(Function),default:ct},onExceed:{type:Pe(Function),default:ct}}),Uj=Fe({files:{type:Pe(Array),default:()=>rn([])},disabled:{type:Boolean,default:!1},handlePreview:{type:Pe(Function),default:ct},listType:{type:String,values:yw,default:"text"}}),Hj={remove:e=>!!e},Wj=["onKeydown"],Yj=["src"],Xj=["onClick"],Kj=["onClick"],Gj=["onClick"],qj={name:"ElUploadList"},Zj=Ee({...qj,props:Uj,emits:Hj,setup(e,{emit:t}){const{t:n}=hn(),r=Ie("upload"),i=Ie("icon"),l=Ie("list"),v=oe(!1),o=a=>{t("remove",a)};return(a,u)=>(z(),be(zx,{tag:"ul",class:de([C(r).b("list"),C(r).bm("list",a.listType),C(r).is("disabled",a.disabled)]),name:C(l).b()},{default:he(()=>[(z(!0),se(je,null,jt(a.files,d=>(z(),se("li",{key:d.uid||d.name,class:de([C(r).be("list","item"),C(r).is(d.status),{focusing:v.value}]),tabindex:"0",onKeydown:Dt(c=>!a.disabled&&o(d),["delete"]),onFocus:u[0]||(u[0]=c=>v.value=!0),onBlur:u[1]||(u[1]=c=>v.value=!1),onClick:u[2]||(u[2]=c=>v.value=!1)},[Te(a.$slots,"default",{file:d},()=>[a.listType==="picture"||d.status!=="uploading"&&a.listType==="picture-card"?(z(),se("img",{key:0,class:de(C(r).be("list","item-thumbnail")),src:d.url,alt:""},null,10,Yj)):ye("v-if",!0),d.status==="uploading"||a.listType!=="picture-card"?(z(),se("div",{key:1,class:de(C(r).be("list","item-info"))},[re("a",{class:de(C(r).be("list","item-name")),onClick:tt(c=>a.handlePreview(d),["prevent"])},[ue(C(Le),{class:de(C(i).m("document"))},{default:he(()=>[ue(C(d_))]),_:1},8,["class"]),re("span",{class:de(C(r).be("list","item-file-name"))},Ae(d.name),3)],10,Xj),d.status==="uploading"?(z(),be(C(gw),{key:0,type:a.listType==="picture-card"?"circle":"line","stroke-width":a.listType==="picture-card"?6:2,percentage:Number(d.percentage),style:Ne(a.listType==="picture-card"?"":"margin-top: 0.5rem")},null,8,["type","stroke-width","percentage","style"])):ye("v-if",!0)],2)):ye("v-if",!0),re("label",{class:de(C(r).be("list","item-status-label"))},[a.listType==="text"?(z(),be(C(Le),{key:0,class:de([C(i).m("upload-success"),C(i).m("circle-check")])},{default:he(()=>[ue(C(xl))]),_:1},8,["class"])):["picture-card","picture"].includes(a.listType)?(z(),be(C(Le),{key:1,class:de([C(i).m("upload-success"),C(i).m("check")])},{default:he(()=>[ue(C(u_))]),_:1},8,["class"])):ye("v-if",!0)],2),a.disabled?ye("v-if",!0):(z(),be(C(Le),{key:2,class:de(C(i).m("close")),onClick:c=>o(d)},{default:he(()=>[ue(C(Er))]),_:2},1032,["class","onClick"])),ye(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),ye(" This is a bug which needs to be fixed "),ye(" TODO: Fix the incorrect navigation interaction "),a.disabled?ye("v-if",!0):(z(),se("i",{key:3,class:de(C(i).m("close-tip"))},Ae(C(n)("el.upload.deleteTip")),3)),a.listType==="picture-card"?(z(),se("span",{key:4,class:de(C(r).be("list","item-actions"))},[re("span",{class:de(C(r).be("list","item-preview")),onClick:c=>a.handlePreview(d)},[ue(C(Le),{class:de(C(i).m("zoom-in"))},{default:he(()=>[ue(C(y_))]),_:1},8,["class"])],10,Kj),a.disabled?ye("v-if",!0):(z(),se("span",{key:0,class:de(C(r).be("list","item-delete")),onClick:c=>o(d)},[ue(C(Le),{class:de(C(i).m("delete"))},{default:he(()=>[ue(C(Nc))]),_:1},8,["class"])],10,Gj))],2)):ye("v-if",!0)])],42,Wj))),128)),Te(a.$slots,"append")]),_:3},8,["class","name"]))}});var C0=Re(Zj,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-list.vue"]]);const Jj=Fe({disabled:{type:Boolean,default:!1}}),Qj={file:e=>He(e)},eV=["onDrop","onDragover"],tV={name:"ElUploadDrag"},nV=Ee({...tV,props:Jj,emits:Qj,setup(e,{emit:t}){const n=e,r="ElUploadDrag",i=qe(y1);i||bn(r,"usage: <el-upload><el-upload-dragger /></el-upload>");const l=Ie("upload"),v=oe(!1),o=u=>{if(n.disabled)return;v.value=!1;const d=Array.from(u.dataTransfer.files),c=i.accept.value;if(!c){t("file",d);return}const f=d.filter(s=>{const{type:h,name:g}=s,m=g.includes(".")?`.${g.split(".").pop()}`:"",y=h.replace(/\/.*$/,"");return c.split(",").map(b=>b.trim()).filter(b=>b).some(b=>b.startsWith(".")?m===b:/\/\*$/.test(b)?y===b.replace(/\/\*$/,""):/^[^/]+\/[^/]+$/.test(b)?h===b:!1)});t("file",f)},a=()=>{n.disabled||(v.value=!0)};return(u,d)=>(z(),se("div",{class:de([C(l).b("dragger"),C(l).is("dragover",v.value)]),onDrop:tt(o,["prevent"]),onDragover:tt(a,["prevent"]),onDragleave:d[0]||(d[0]=tt(c=>v.value=!1,["prevent"]))},[Te(u.$slots,"default")],42,eV))}});var rV=Re(nV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-dragger.vue"]]);const iV=Fe({..._w,beforeUpload:{type:Pe(Function),default:ct},onRemove:{type:Pe(Function),default:ct},onStart:{type:Pe(Function),default:ct},onSuccess:{type:Pe(Function),default:ct},onProgress:{type:Pe(Function),default:ct},onError:{type:Pe(Function),default:ct},onExceed:{type:Pe(Function),default:ct}}),aV=["onKeydown"],oV=["name","multiple","accept"],sV={name:"ElUploadContent",inheritAttrs:!1},lV=Ee({...sV,props:iV,setup(e,{expose:t}){const n=e,r=Ie("upload"),i=fn({}),l=fn(),v=s=>{if(s.length===0)return;const{autoUpload:h,limit:g,fileList:m,multiple:y,onStart:b,onExceed:_}=n;if(g&&m.length+s.length>g){_(s,m);return}y||(s=s.slice(0,1));for(const w of s){const S=w;S.uid=bw(),b(S),h&&o(S)}},o=async s=>{if(l.value.value="",!n.beforeUpload)return a(s);let h;try{h=await n.beforeUpload(s)}catch{h=!1}if(h===!1){n.onRemove(s);return}let g=s;h instanceof Blob&&(h instanceof File?g=h:g=new File([h],s.name,{type:s.type})),a(Object.assign(g,{uid:s.uid}))},a=s=>{const{headers:h,data:g,method:m,withCredentials:y,name:b,action:_,onProgress:w,onSuccess:S,onError:x,httpRequest:T}=n,{uid:E}=s,I={headers:h||{},withCredentials:y,file:s,data:g,method:m,filename:b,action:_,onProgress:N=>{w(N,s)},onSuccess:N=>{S(N,s),delete i.value[E]},onError:N=>{x(N,s),delete i.value[E]}},D=T(I);i.value[E]=D,D instanceof Promise&&D.then(I.onSuccess,I.onError)},u=s=>{const h=s.target.files;!h||v(Array.from(h))},d=()=>{n.disabled||(l.value.value="",l.value.click())},c=()=>{d()};return t({abort:s=>{bM(i.value).filter(s?([g])=>String(s.uid)===g:()=>!0).forEach(([g,m])=>{m instanceof XMLHttpRequest&&m.abort(),delete i.value[g]})},upload:o}),(s,h)=>(z(),se("div",{class:de([C(r).b(),C(r).m(s.listType),C(r).is("drag",s.drag)]),tabindex:"0",onClick:d,onKeydown:Dt(tt(c,["self"]),["enter","space"])},[s.drag?(z(),be(rV,{key:0,disabled:s.disabled,onFile:v},{default:he(()=>[Te(s.$slots,"default")]),_:3},8,["disabled"])):Te(s.$slots,"default",{key:1}),re("input",{ref_key:"inputRef",ref:l,class:de(C(r).e("input")),name:s.name,multiple:s.multiple,accept:s.accept,type:"file",onChange:u,onClick:h[0]||(h[0]=tt(()=>{},["stop"]))},null,42,oV)],42,aV))}});var S0=Re(lV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload-content.vue"]]);const x0="ElUpload",uV=e=>{var t;(t=e.url)!=null&&t.startsWith("blob:")&&URL.revokeObjectURL(e.url)},cV=(e,t)=>{const n=mM(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 v=(f,s)=>{const h=r(s);!h||(console.error(f),h.status="fail",n.value.splice(n.value.indexOf(h),1),e.onError(f,h,n.value),e.onChange(h,n.value))},o=(f,s)=>{const h=r(s);!h||(e.onProgress(f,h,n.value),h.status="uploading",h.percentage=Math.round(f.percent))},a=(f,s)=>{const h=r(s);!h||(h.status="success",h.response=f,e.onSuccess(f,h,n.value),e.onChange(h,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(h){h.message,e.onError(h,s,n.value)}n.value=[...n.value,s],e.onChange(s,n.value)},d=async f=>{const s=f instanceof File?r(f):f;s||bn(x0,"file to be removed not found");const h=g=>{i(g);const m=n.value;m.splice(m.indexOf(g),1),e.onRemove(g,m),uV(g)};e.beforeRemove?await e.beforeRemove(s,n.value)!==!1&&h(s):h(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:h,url:g}=s;if(!g&&h)try{s.url=URL.createObjectURL(h)}catch(m){e.onError(m,s,n.value)}return s}))}),xe(n,f=>{for(const s of f)s.uid||(s.uid=bw()),s.status||(s.status="success")},{immediate:!0,deep:!0}),{uploadFiles:n,abort:i,clearFiles:l,handleError:v,handleProgress:o,handleStart:u,handleSuccess:a,handleRemove:d,submit:c}},fV={name:"ElUpload"},dV=Ee({...fV,props:Vj,setup(e,{expose:t}){const n=e,r=$o(),i=Ha(),l=fn(),{abort:v,submit:o,clearFiles:a,uploadFiles:u,handleStart:d,handleError:c,handleRemove:f,handleSuccess:s,handleProgress:h}=cV(n,l),g=ee(()=>n.listType==="picture-card"),m=ee(()=>({...n,fileList:u.value,onStart:d,onProgress:h,onSuccess:s,onError:c,onRemove:f}));return Yt(()=>{u.value.forEach(({url:y})=>{y!=null&&y.startsWith("blob:")&&URL.revokeObjectURL(y)})}),gt(y1,{accept:On(n,"accept")}),t({abort:v,submit:o,clearFiles:a,handleStart:d,handleRemove:f}),(y,b)=>(z(),se("div",null,[C(g)&&y.showFileList?(z(),be(C0,{key:0,disabled:C(i),"list-type":y.listType,files:C(u),"handle-preview":y.onPreview,onRemove:C(f)},qu({append:he(()=>[ue(S0,Tn({ref_key:"uploadRef",ref:l},C(m)),{default:he(()=>[C(r).trigger?Te(y.$slots,"trigger",{key:0}):ye("v-if",!0),!C(r).trigger&&C(r).default?Te(y.$slots,"default",{key:1}):ye("v-if",!0)]),_:3},16)]),_:2},[y.$slots.file?{name:"default",fn:he(({file:_})=>[Te(y.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ye("v-if",!0),!C(g)||C(g)&&!y.showFileList?(z(),be(S0,Tn({key:1,ref_key:"uploadRef",ref:l},C(m)),{default:he(()=>[C(r).trigger?Te(y.$slots,"trigger",{key:0}):ye("v-if",!0),!C(r).trigger&&C(r).default?Te(y.$slots,"default",{key:1}):ye("v-if",!0)]),_:3},16)):ye("v-if",!0),y.$slots.trigger?Te(y.$slots,"default",{key:2}):ye("v-if",!0),Te(y.$slots,"tip"),!C(g)&&y.showFileList?(z(),be(C0,{key:3,disabled:C(i),"list-type":y.listType,files:C(u),"handle-preview":y.onPreview,onRemove:C(f)},qu({_:2},[y.$slots.file?{name:"default",fn:he(({file:_})=>[Te(y.$slots,"file",{file:_})])}:void 0]),1032,["disabled","list-type","files","handle-preview","onRemove"])):ye("v-if",!0)]))}});var hV=Re(dV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/upload/src/upload.vue"]]);const Up=Et(hV),ww=["success","info","warning","error"],wn=rn({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:dt?document.body:void 0}),pV=Fe({customClass:{type:String,default:wn.customClass},center:{type:Boolean,default:wn.center},dangerouslyUseHTMLString:{type:Boolean,default:wn.dangerouslyUseHTMLString},duration:{type:Number,default:wn.duration},icon:{type:Xt,default:wn.icon},id:{type:String,default:wn.id},message:{type:Pe([String,Object,Function]),default:wn.message},onClose:{type:Pe(Function),required:!1},showClose:{type:Boolean,default:wn.showClose},type:{type:String,values:ww,default:wn.type},offset:{type:Number,default:wn.offset},zIndex:{type:Number,default:wn.zIndex},grouping:{type:Boolean,default:wn.grouping},repeatNum:{type:Number,default:wn.repeatNum}}),mV={destroy:()=>!0},Cr=Jy([]),gV=e=>{const t=Cr.findIndex(i=>i.id===e),n=Cr[t];let r;return t>0&&(r=Cr[t-1]),{current:n,prev:r}},vV=e=>{const{prev:t}=gV(e);return t?t.vm.exposed.bottom.value:0},yV=["id"],bV=["innerHTML"],_V={name:"ElMessage"},wV=Ee({..._V,props:pV,emits:mV,setup(e,{expose:t}){const n=e,{Close:r}=a1,i=Ie("message"),l=oe(),v=oe(!1),o=oe(0);let a;const u=ee(()=>n.type?n.type==="error"?"danger":n.type:"info"),d=ee(()=>{const w=n.type;return{[i.bm("icon",w)]:w&&oc[w]}}),c=ee(()=>n.icon||oc[n.type]||""),f=ee(()=>vV(n.id)),s=ee(()=>n.offset+f.value),h=ee(()=>o.value+s.value),g=ee(()=>({top:`${s.value}px`,zIndex:n.zIndex}));function m(){n.duration!==0&&({stop:a}=qs(()=>{b()},n.duration))}function y(){a==null||a()}function b(){v.value=!1}function _({code:w}){w===Ot.esc&&b()}return nt(()=>{m(),v.value=!0}),xe(()=>n.repeatNum,()=>{y(),m()}),Ct(document,"keydown",_),Ir(l,()=>{o.value=l.value.getBoundingClientRect().height}),t({visible:v,bottom:h,close:b}),(w,S)=>(z(),be(dn,{name:C(i).b("fade"),onBeforeLeave:w.onClose,onAfterLeave:S[0]||(S[0]=x=>w.$emit("destroy")),persisted:""},{default:he(()=>[kt(re("div",{id:w.id,ref_key:"messageRef",ref:l,class:de([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:Ne(C(g)),role:"alert",onMouseenter:y,onMouseleave:m},[w.repeatNum>1?(z(),be(C(DD),{key:0,value:w.repeatNum,type:C(u),class:de(C(i).e("badge"))},null,8,["value","type","class"])):ye("v-if",!0),C(c)?(z(),be(C(Le),{key:1,class:de([C(i).e("icon"),C(d)])},{default:he(()=>[(z(),be(Tt(C(c))))]),_:1},8,["class"])):ye("v-if",!0),Te(w.$slots,"default",{},()=>[w.dangerouslyUseHTMLString?(z(),se(je,{key:1},[ye(" Caution here, message could've been compromised, never use user's input as message "),re("p",{class:de(C(i).e("content")),innerHTML:w.message},null,10,bV)],2112)):(z(),se("p",{key:0,class:de(C(i).e("content"))},Ae(w.message),3))]),w.showClose?(z(),be(C(Le),{key:2,class:de(C(i).e("closeBtn")),onClick:tt(b,["stop"])},{default:he(()=>[ue(C(r))]),_:1},8,["class","onClick"])):ye("v-if",!0)],46,yV),[[Ht,v.value]])]),_:3},8,["name","onBeforeLeave"]))}});var CV=Re(wV,[["__file","/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);let SV=1;const Cw=e=>{const t=!e||Ge(e)||zi(e)||Ye(e)?{message:e}:e,n={...wn,...t};if(!n.appendTo)n.appendTo=document.body;else if(Ge(n.appendTo)){let r=document.querySelector(n.appendTo);Oa(r)||(r=document.body),n.appendTo=r}return n},xV=e=>{const t=Cr.indexOf(e);if(t===-1)return;Cr.splice(t,1);const{handler:n}=e;n.close()},TV=({appendTo:e,...t},n)=>{const{nextZIndex:r}=El(),i=`message_${SV++}`,l=t.onClose,v=document.createElement("div"),o={...t,zIndex:r()+t.zIndex,id:i,onClose:()=>{l==null||l(),xV(c)},onDestroy:()=>{ec(null,v)}},a=ue(CV,o,Ye(o.message)||zi(o.message)?{default:Ye(o.message)?o.message:()=>o.message}:null);a.appContext=n||Mo._context,ec(a,v),e.appendChild(v.firstElementChild);const u=a.component,c={id:i,vnode:a,vm:u,handler:{close:()=>{u.exposed.visible.value=!1}},props:a.component.props};return c},Mo=(e={},t)=>{if(!dt)return{close:()=>{}};if(ft(jd.max)&&Cr.length>=jd.max)return{close:()=>{}};const n=Cw(e);if(n.grouping&&Cr.length){const i=Cr.find(({vnode:l})=>{var v;return((v=l.props)==null?void 0:v.message)===n.message});if(i)return i.props.repeatNum+=1,i.props.type=n.type,i.handler}const r=TV(n,t);return Cr.push(r),r.handler};ww.forEach(e=>{Mo[e]=(t={},n)=>{const r=Cw(t);return Mo({...r,type:e},n)}});function kV(e){for(const t of Cr)(!e||e===t.props.type)&&t.handler.close()}Mo.closeAll=kV;Mo._context=null;const Ui=OM(Mo,"$message"),EV=Ee({name:"ElMessageBox",directives:{TrapFocus:l$},components:{ElButton:ht,ElFocusTrap:Dp,ElInput:Wa,ElOverlay:rw,ElIcon:Le,...a1},inheritAttrs:!1,props:{buttonSize:{type:String,validator:Yc},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}=hn(),r=Ie("message-box"),i=oe(!1),{nextZIndex:l}=El(),v=vt({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()}),o=ee(()=>{const F=v.type;return{[r.bm("icon",F)]:F&&oc[F]}}),a=Vi(),u=Vi(),d=Zn(ee(()=>e.buttonSize),{prop:!0,form:!0,formItem:!0}),c=ee(()=>v.icon||oc[v.type]||""),f=ee(()=>!!v.message),s=oe(),h=oe(),g=oe(),m=oe(),y=oe(),b=ee(()=>v.confirmButtonClass);xe(()=>v.inputValue,async F=>{await Xe(),e.boxType==="prompt"&&F!==null&&I()},{immediate:!0}),xe(()=>i.value,F=>{var O,V;F&&(e.boxType!=="prompt"&&(v.autofocus?g.value=(V=(O=y.value)==null?void 0:O.$el)!=null?V:s.value:g.value=s.value),v.zIndex=l()),e.boxType==="prompt"&&(F?Xe().then(()=>{var ne;m.value&&m.value.$el&&(v.autofocus?g.value=(ne=D())!=null?ne:s.value:g.value=s.value)}):(v.editorErrorMessage="",v.validateError=!1))});const _=ee(()=>e.draggable);w1(s,h,_),nt(async()=>{await Xe(),e.closeOnHashChange&&window.addEventListener("hashchange",w)}),Yt(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",w)});function w(){!i.value||(i.value=!1,Xe(()=>{v.action&&t("action",v.action)}))}const S=()=>{e.closeOnClickModal&&E(v.distinguishCancelAndClose?"close":"cancel")},x=kp(S),T=F=>{if(v.inputType!=="textarea")return F.preventDefault(),E("confirm")},E=F=>{var O;e.boxType==="prompt"&&F==="confirm"&&!I()||(v.action=F,v.beforeClose?(O=v.beforeClose)==null||O.call(v,F,v,w):w())},I=()=>{if(e.boxType==="prompt"){const F=v.inputPattern;if(F&&!F.test(v.inputValue||""))return v.editorErrorMessage=v.inputErrorMessage||n("el.messagebox.error"),v.validateError=!0,!1;const O=v.inputValidator;if(typeof O=="function"){const V=O(v.inputValue);if(V===!1)return v.editorErrorMessage=v.inputErrorMessage||n("el.messagebox.error"),v.validateError=!0,!1;if(typeof V=="string")return v.editorErrorMessage=V,v.validateError=!0,!1}}return v.editorErrorMessage="",v.validateError=!1,!0},D=()=>{const F=m.value.$refs;return F.input||F.textarea},N=()=>{E("close")},L=()=>{e.closeOnPressEscape&&N()};return e.lockScroll&&C1(i),qM(i),{...Xn(v),ns:r,overlayEvent:x,visible:i,hasMessage:f,typeClass:o,contentId:a,inputId:u,btnSize:d,iconComponent:c,confirmButtonClasses:b,rootRef:s,focusStartRef:g,headerRef:h,inputRef:m,confirmRef:y,doClose:w,handleClose:N,onCloseRequested:L,handleWrapperClick:S,handleInputEnter:T,handleAction:E,t:n}}}),OV=["aria-label","aria-describedby"],AV=["aria-label"],PV=["id"];function IV(e,t,n,r,i,l){const v=mt("el-icon"),o=mt("close"),a=mt("el-input"),u=mt("el-button"),d=mt("el-focus-trap"),c=mt("el-overlay");return z(),be(dn,{name:"fade-in-linear",onAfterLeave:t[11]||(t[11]=f=>e.$emit("vanish")),persisted:""},{default:he(()=>[kt(ue(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:he(()=>[re("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:de(`${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(d,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:he(()=>[re("div",{ref:"rootRef",class:de([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:Ne(e.customStyle),tabindex:"-1",onClick:t[7]||(t[7]=tt(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(z(),se("div",{key:0,ref:"headerRef",class:de(e.ns.e("header"))},[re("div",{class:de(e.ns.e("title"))},[e.iconComponent&&e.center?(z(),be(v,{key:0,class:de([e.ns.e("status"),e.typeClass])},{default:he(()=>[(z(),be(Tt(e.iconComponent)))]),_:1},8,["class"])):ye("v-if",!0),re("span",null,Ae(e.title),1)],2),e.showClose?(z(),se("button",{key:0,type:"button",class:de(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]=Dt(tt(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[ue(v,{class:de(e.ns.e("close"))},{default:he(()=>[ue(o)]),_:1},8,["class"])],42,AV)):ye("v-if",!0)],2)):ye("v-if",!0),re("div",{id:e.contentId,class:de(e.ns.e("content"))},[re("div",{class:de(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(z(),be(v,{key:0,class:de([e.ns.e("status"),e.typeClass])},{default:he(()=>[(z(),be(Tt(e.iconComponent)))]),_:1},8,["class"])):ye("v-if",!0),e.hasMessage?(z(),se("div",{key:1,class:de(e.ns.e("message"))},[Te(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(z(),be(Tt(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(z(),be(Tt(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:he(()=>[Ue(Ae(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):ye("v-if",!0)],2),kt(re("div",{class:de(e.ns.e("input"))},[ue(a,{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:de({invalid:e.validateError}),onKeydown:Dt(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),re("div",{class:de(e.ns.e("errormsg")),style:Ne({visibility:e.editorErrorMessage?"visible":"hidden"})},Ae(e.editorErrorMessage),7)],2),[[Ht,e.showInput]])],10,PV),re("div",{class:de(e.ns.e("btns"))},[e.showCancelButton?(z(),be(u,{key:0,loading:e.cancelButtonLoading,class:de([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:t[3]||(t[3]=f=>e.handleAction("cancel")),onKeydown:t[4]||(t[4]=Dt(tt(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:he(()=>[Ue(Ae(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","class","round","size"])):ye("v-if",!0),kt(ue(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,class:de([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]=Dt(tt(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:he(()=>[Ue(Ae(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","class","round","disabled","size"]),[[Ht,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,OV)]),_:3},8,["z-index","overlay-class","mask"]),[[Ht,e.visible]])]),_:3})}var MV=Re(EV,[["render",IV],["__file","/home/runner/work/element-plus/element-plus/packages/components/message-box/src/index.vue"]]);const rl=new Map,LV=(e,t,n=null)=>{const r=ue(MV,e,Ye(e.message)||zi(e.message)?{default:Ye(e.message)?e.message:()=>e.message}:null);return r.appContext=n,ec(r,t),document.body.appendChild(t.firstElementChild),r.component},RV=()=>document.createElement("div"),DV=(e,t)=>{const n=RV();e.onVanish=()=>{ec(null,n),rl.delete(i)},e.onAction=l=>{const v=rl.get(i);let o;e.showInput?o={value:i.inputValue,action:l}:o=l,e.callback?e.callback(o,r.proxy):l==="cancel"||l==="close"?e.distinguishCancelAndClose&&l!=="cancel"?v.reject("close"):v.reject("cancel"):v.resolve(o)};const r=LV(e,n,t),i=r.proxy;for(const l in e)et(e,l)&&!et(i.$props,l)&&(i[l]=e[l]);return i.visible=!0,i};function Vo(e,t=null){if(!dt)return Promise.reject();let n;return Ge(e)||zi(e)?e={message:e}:n=e.callback,new Promise((r,i)=>{const l=DV(e,t!=null?t:Vo._context);rl.set(l,{options:e,callback:n,resolve:r,reject:i})})}const $V=["alert","confirm","prompt"],BV={alert:{closeOnPressEscape:!1,closeOnClickModal:!1},confirm:{showCancelButton:!0},prompt:{showCancelButton:!0,showInput:!0}};$V.forEach(e=>{Vo[e]=FV(e)});function FV(e){return(t,n,r,i)=>{let l="";return ot(n)?(r=n,l=""):ar(n)?l="":l=n,Vo(Object.assign({title:l,message:t,type:"",...BV[e]},r,{boxType:e}),i)}}Vo.close=()=>{rl.forEach((e,t)=>{t.doClose()}),rl.clear()};Vo._context=null;const Ci=Vo;Ci.install=e=>{Ci._context=e._context,e.config.globalProperties.$msgbox=Ci,e.config.globalProperties.$messageBox=Ci,e.config.globalProperties.$alert=Ci.alert,e.config.globalProperties.$confirm=Ci.confirm,e.config.globalProperties.$prompt=Ci.prompt};const Sw=Ci;const zt=Bo("options",()=>{const e=Sn("options",oe({colorMode:Cv({emitAuto:!0})})),t=Sn("pageSize",25),n=Sn("pageless","Disabled"),r=Sn("allowLargerParams","Disabled"),i=Sn("alsoRequestAvi","Disabled"),l=Sn("autoCarousel","Enabled"),v=Sn("useBeta","Disabled"),o=Sn("imageDownloadType","PNG"),a=Sn("imageResizeMode","NoScale"),u=Sn("baseURL","");return e.value.colorMode=Cv({emitAuto:!0,initialValue:e.value.colorMode}),{options:e,pageSize:t,pageless:n,allowLargerParams:r,alsoRequestAvi:i,autoCarousel:l,useBeta:v,imageDownloadType:o,imageResizeMode:a,baseURL:u}});/*! *****************************************************************************
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 ut=function(){return ut=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},ut.apply(this,arguments)};function Kd(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 $t=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Wt=Object.keys,cn=Array.isArray;typeof Promise<"u"&&!$t.Promise&&($t.Promise=Promise);function _n(e,t){return typeof t!="object"||Wt(t).forEach(function(n){e[n]=t[n]}),e}var il=Object.getPrototypeOf,zV={}.hasOwnProperty;function Nn(e,t){return zV.call(e,t)}function Lo(e,t){typeof t=="function"&&(t=t(il(e))),(typeof Reflect>"u"?Wt:Reflect.ownKeys)(t).forEach(function(n){ri(e,n,t[n])})}var xw=Object.defineProperty;function ri(e,t,n,r){xw(e,t,_n(n&&Nn(n,"get")&&typeof n.get=="function"?{get:n.get,set:n.set,configurable:!0}:{value:n,configurable:!0,writable:!0},r))}function Uo(e){return{from:function(t){return e.prototype=Object.create(t.prototype),ri(e.prototype,"constructor",e),{extend:Lo.bind(null,e.prototype)}}}}var NV=Object.getOwnPropertyDescriptor;function Hp(e,t){var n=NV(e,t),r;return n||(r=il(e))&&Hp(r,t)}var jV=[].slice;function Zc(e,t,n){return jV.call(e,t,n)}function Tw(e,t){return t(e)}function fs(e){if(!e)throw new Error("Assertion Failed")}function kw(e){$t.setImmediate?setImmediate(e):setTimeout(e,0)}function Ew(e,t){return e.reduce(function(n,r,i){var l=t(r,i);return l&&(n[l[0]]=l[1]),n},{})}function VV(e,t,n){try{e.apply(null,n)}catch(r){t&&t(r)}}function Zr(e,t){if(Nn(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=Zr(e,t[r]);n.push(l)}return n}var v=t.indexOf(".");if(v!==-1){var o=e[t.substr(0,v)];return o===void 0?void 0:Zr(o,t.substr(v+1))}}function sr(e,t,n){if(!(!e||t===void 0)&&!("isFrozen"in Object&&Object.isFrozen(e)))if(typeof t!="string"&&"length"in t){fs(typeof n!="string"&&"length"in n);for(var r=0,i=t.length;r<i;++r)sr(e,t[r],n[r])}else{var l=t.indexOf(".");if(l!==-1){var v=t.substr(0,l),o=t.substr(l+1);if(o==="")n===void 0?cn(e)&&!isNaN(parseInt(v))?e.splice(v,1):delete e[v]:e[v]=n;else{var a=e[v];(!a||!Nn(e,v))&&(a=e[v]={}),sr(a,o,n)}}else n===void 0?cn(e)&&!isNaN(parseInt(t))?e.splice(t,1):delete e[t]:e[t]=n}}function UV(e,t){typeof t=="string"?sr(e,t,void 0):"length"in t&&[].map.call(t,function(n){sr(e,n,void 0)})}function Ow(e){var t={};for(var n in e)Nn(e,n)&&(t[n]=e[n]);return t}var HV=[].concat;function Aw(e){return HV.apply([],e)}var Pw="Boolean,String,Date,RegExp,Blob,File,FileList,FileSystemFileHandle,ArrayBuffer,DataView,Uint8ClampedArray,ImageBitmap,ImageData,Map,Set,CryptoKey".split(",").concat(Aw([8,16,32,64].map(function(e){return["Int","Uint","Float"].map(function(t){return t+e+"Array"})}))).filter(function(e){return $t[e]}),WV=Pw.map(function(e){return $t[e]});Ew(Pw,function(e){return[e,!0]});var ki=null;function Il(e){ki=typeof WeakMap<"u"&&new WeakMap;var t=Gd(e);return ki=null,t}function Gd(e){if(!e||typeof e!="object")return e;var t=ki&&ki.get(e);if(t)return t;if(cn(e)){t=[],ki&&ki.set(e,t);for(var n=0,r=e.length;n<r;++n)t.push(Gd(e[n]))}else if(WV.indexOf(e.constructor)>=0)t=e;else{var i=il(e);t=i===Object.prototype?{}:Object.create(i),ki&&ki.set(e,t);for(var l in e)Nn(e,l)&&(t[l]=Gd(e[l]))}return t}var YV={}.toString;function qd(e){return YV.call(e).slice(8,-1)}var Zd=typeof Symbol<"u"?Symbol.iterator:"@@iterator",XV=typeof Zd=="symbol"?function(e){var t;return e!=null&&(t=e[Zd])&&t.apply(e)}:function(){return null},uo={};function Xr(e){var t,n,r,i;if(arguments.length===1){if(cn(e))return e.slice();if(this===uo&&typeof e=="string")return[e];if(i=XV(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 Wp=typeof Symbol<"u"?function(e){return e[Symbol.toStringTag]==="AsyncFunction"}:function(){return!1},Lr=typeof location<"u"&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function Iw(e,t){Lr=e,Mw=t}var Mw=function(){return!0},KV=!new Error("").stack;function Ya(){if(KV)try{throw Ya.arguments,new Error}catch(e){return e}return new Error}function Jd(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(Mw).map(function(r){return`
`+r}).join("")):""}var GV=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],Lw=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],Yp=GV.concat(Lw),qV={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 Ho(e,t){this._e=Ya(),this.name=e,this.message=t}Uo(Ho).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+Jd(this._e,2))}},toString:function(){return this.name+": "+this.message}});function Rw(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 uc(e,t,n,r){this._e=Ya(),this.failures=t,this.failedKeys=r,this.successCount=n,this.message=Rw(e,t)}Uo(uc).from(Ho);function Os(e,t){this._e=Ya(),this.name="BulkError",this.failures=Object.keys(t).map(function(n){return t[n]}),this.failuresByPos=t,this.message=Rw(e,t)}Uo(Os).from(Ho);var Xp=Yp.reduce(function(e,t){return e[t]=t+"Error",e},{}),ZV=Ho,Ze=Yp.reduce(function(e,t){var n=t+"Error";function r(i,l){this._e=Ya(),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=qV[t]||n,this.inner=null)}return Uo(r).from(ZV),e[t]=r,e},{});Ze.Syntax=SyntaxError;Ze.Type=TypeError;Ze.Range=RangeError;var T0=Lw.reduce(function(e,t){return e[t+"Error"]=Ze[t],e},{});function JV(e,t){if(!e||e instanceof Ho||e instanceof TypeError||e instanceof SyntaxError||!e.name||!T0[e.name])return e;var n=new T0[e.name](t||e.message,e);return"stack"in e&&ri(n,"stack",{get:function(){return this.inner.stack}}),n}var Jc=Yp.reduce(function(e,t){return["Syntax","Type","Range"].indexOf(t)===-1&&(e[t+"Error"]=Ze[t]),e},{});Jc.ModifyError=uc;Jc.DexieError=Ho;Jc.BulkError=Os;function It(){}function Ml(e){return e}function QV(e,t){return e==null||e===Ml?t:function(n){return t(e(n))}}function Ia(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function e7(e,t){return e===It?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?Ia(r,this.onsuccess):r),i&&(this.onerror=this.onerror?Ia(i,this.onerror):i),l!==void 0?l:n}}function t7(e,t){return e===It?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?Ia(n,this.onsuccess):n),r&&(this.onerror=this.onerror?Ia(r,this.onerror):r)}}function n7(e,t){return e===It?t:function(n){var r=e.apply(this,arguments);_n(n,r);var i=this.onsuccess,l=this.onerror;this.onsuccess=null,this.onerror=null;var v=t.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?Ia(i,this.onsuccess):i),l&&(this.onerror=this.onerror?Ia(l,this.onerror):l),r===void 0?v===void 0?void 0:v:_n(r,v)}}function r7(e,t){return e===It?t:function(){return t.apply(this,arguments)===!1?!1:e.apply(this,arguments)}}function Kp(e,t){return e===It?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 al={},i7=100,a7=20,Dw=100,Gp=typeof Promise>"u"?[]:function(){var e=Promise.resolve();if(typeof crypto>"u"||!crypto.subtle)return[e,il(e),e];var t=crypto.subtle.digest("SHA-512",new Uint8Array([0]));return[t,il(t),e]}(),Qd=Gp[0],cc=Gp[1],eh=Gp[2],$w=cc&&cc.then,$u=Qd&&Qd.constructor,qp=!!eh,th=!1,o7=eh?function(){eh.then(ou)}:$t.setImmediate?setImmediate.bind(null,ou):$t.MutationObserver?function(){var e=document.createElement("div");new MutationObserver(function(){ou(),e=null}).observe(e,{attributes:!0}),e.setAttribute("i","1")}:function(){setTimeout(ou,0)},ol=function(e,t){ds.push([e,t]),fc&&(o7(),fc=!1)},nh=!0,fc=!0,xa=[],Bu=[],rh=null,ih=Ml,yo={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:O0,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach(function(e){try{O0(e[0],e[1])}catch{}})}},Ke=yo,ds=[],Ta=0,Fu=[];function Be(e){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=It,this._lib=!1;var t=this._PSD=Ke;if(Lr&&(this._stackHolder=Ya(),this._prev=null,this._numPrev=0),typeof e!="function"){if(e!==al)throw new TypeError("Not a function");this._state=arguments[1],this._value=arguments[2],this._state===!1&&oh(this,this._value);return}this._state=null,this._value=null,++t.ref,Fw(this,e)}var ah={get:function(){var e=Ke,t=dc;function n(r,i){var l=this,v=!e.global&&(e!==Ke||t!==dc),o=v&&!ii(),a=new Be(function(u,d){Zp(l,new Bw(pc(r,e,v,o),pc(i,e,v,o),u,d,e))});return Lr&&jw(a,this),a}return n.prototype=al,n},set:function(e){ri(this,"then",e&&e.prototype===al?ah:{get:function(){return e},set:ah.set})}};Lo(Be.prototype,{then:ah,_then:function(e,t){Zp(this,new Bw(null,null,e,t,Ke))},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):zu(r)}):this.then(null,function(r){return r&&r.name===t?n(r):zu(r)})},finally:function(e){return this.then(function(t){return e(),t},function(t){return e(),zu(t)})},stack:{get:function(){if(this._stack)return this._stack;try{th=!0;var e=Nw(this,[],a7),t=e.join(`
From previous: `);return this._state!==null&&(this._stack=t),t}finally{th=!1}}},timeout:function(e,t){var n=this;return e<1/0?new Be(function(r,i){var l=setTimeout(function(){return i(new Ze.Timeout(t))},e);n.then(r,i).finally(clearTimeout.bind(null,l))}):this}});typeof Symbol<"u"&&Symbol.toStringTag&&ri(Be.prototype,Symbol.toStringTag,"Dexie.Promise");yo.env=Vw();function Bw(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}Lo(Be,{all:function(){var e=Xr.apply(null,arguments).map(hc);return new Be(function(t,n){e.length===0&&t([]);var r=e.length;e.forEach(function(i,l){return Be.resolve(i).then(function(v){e[l]=v,--r||t(e)},n)})})},resolve:function(e){if(e instanceof Be)return e;if(e&&typeof e.then=="function")return new Be(function(n,r){e.then(n,r)});var t=new Be(al,!0,e);return jw(t,rh),t},reject:zu,race:function(){var e=Xr.apply(null,arguments).map(hc);return new Be(function(t,n){e.map(function(r){return Be.resolve(r).then(t,n)})})},PSD:{get:function(){return Ke},set:function(e){return Ke=e}},totalEchoes:{get:function(){return dc}},newPSD:Hi,usePSD:Yo,scheduler:{get:function(){return ol},set:function(e){ol=e}},rejectionMapper:{get:function(){return ih},set:function(e){ih=e}},follow:function(e,t){return new Be(function(n,r){return Hi(function(i,l){var v=Ke;v.unhandleds=[],v.onunhandled=l,v.finalize=Ia(function(){var o=this;l7(function(){o.unhandleds.length===0?i():l(o.unhandleds[0])})},v.finalize),e()},t,n,r)})}});$u&&($u.allSettled&&ri(Be,"allSettled",function(){var e=Xr.apply(null,arguments).map(hc);return new Be(function(t){e.length===0&&t([]);var n=e.length,r=new Array(n);e.forEach(function(i,l){return Be.resolve(i).then(function(v){return r[l]={status:"fulfilled",value:v}},function(v){return r[l]={status:"rejected",reason:v}}).then(function(){return--n||t(r)})})})}),$u.any&&typeof AggregateError<"u"&&ri(Be,"any",function(){var e=Xr.apply(null,arguments).map(hc);return new Be(function(t,n){e.length===0&&n(new AggregateError([]));var r=e.length,i=new Array(r);e.forEach(function(l,v){return Be.resolve(l).then(function(o){return t(o)},function(o){i[v]=o,--r||n(new AggregateError(i))})})})}));function Fw(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&&Ll();n&&typeof n.then=="function"?Fw(e,function(i,l){n instanceof Be?n._then(i,l):n.then(i,l)}):(e._state=!0,e._value=n,zw(e)),r&&Rl()}},oh.bind(null,e))}catch(n){oh(e,n)}}function oh(e,t){if(Bu.push(t),e._state===null){var n=e._lib&&Ll();t=ih(t),e._state=!1,e._value=t,Lr&&t!==null&&typeof t=="object"&&!t._promise&&VV(function(){var r=Hp(t,"stack");t._promise=e,ri(t,"stack",{get:function(){return th?r&&(r.get?r.get.apply(t):r.value):e.stack}})}),u7(e),zw(e),n&&Rl()}}function zw(e){var t=e._listeners;e._listeners=[];for(var n=0,r=t.length;n<r;++n)Zp(e,t[n]);var i=e._PSD;--i.ref||i.finalize(),Ta===0&&(++Ta,ol(function(){--Ta===0&&Jp()},[]))}function Zp(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,++Ta,ol(s7,[n,e,t])}function s7(e,t,n){try{rh=t;var r,i=t._value;t._state?r=e(i):(Bu.length&&(Bu=[]),r=e(i),Bu.indexOf(i)===-1&&c7(t)),n.resolve(r)}catch(l){n.reject(l)}finally{rh=null,--Ta===0&&Jp(),--n.psd.ref||n.psd.finalize()}}function Nw(e,t,n){if(t.length===n)return t;var r="";if(e._state===!1){var i=e._value,l,v;i!=null?(l=i.name||"Error",v=i.message||i,r=Jd(i,0)):(l=i,v=""),t.push(l+(v?": "+v:"")+r)}return Lr&&(r=Jd(e._stackHolder,2),r&&t.indexOf(r)===-1&&t.push(r),e._prev&&Nw(e._prev,t,n)),t}function jw(e,t){var n=t?t._numPrev+1:0;n<i7&&(e._prev=t,e._numPrev=n)}function ou(){Ll()&&Rl()}function Ll(){var e=nh;return nh=!1,fc=!1,e}function Rl(){var e,t,n;do for(;ds.length>0;)for(e=ds,ds=[],n=e.length,t=0;t<n;++t){var r=e[t];r[0].apply(null,r[1])}while(ds.length>0);nh=!0,fc=!0}function Jp(){var e=xa;xa=[],e.forEach(function(r){r._PSD.onunhandled.call(null,r._value,r)});for(var t=Fu.slice(0),n=t.length;n;)t[--n]()}function l7(e){function t(){e(),Fu.splice(Fu.indexOf(t),1)}Fu.push(t),++Ta,ol(function(){--Ta===0&&Jp()},[])}function u7(e){xa.some(function(t){return t._value===e._value})||xa.push(e)}function c7(e){for(var t=xa.length;t;)if(xa[--t]._value===e._value){xa.splice(t,1);return}}function zu(e){return new Be(al,!1,e)}function Ft(e,t){var n=Ke;return function(){var r=Ll(),i=Ke;try{return Wi(n,!0),e.apply(this,arguments)}catch(l){t&&t(l)}finally{Wi(i,!1),r&&Rl()}}}var ln={awaits:0,echoes:0,id:0},f7=0,Nu=[],Df=0,dc=0,d7=0;function Hi(e,t,n,r){var i=Ke,l=Object.create(i);l.parent=i,l.ref=0,l.global=!1,l.id=++d7;var v=yo.env;l.env=qp?{Promise:Be,PromiseProp:{value:Be,configurable:!0,writable:!0},all:Be.all,race:Be.race,allSettled:Be.allSettled,any:Be.any,resolve:Be.resolve,reject:Be.reject,nthen:k0(v.nthen,l),gthen:k0(v.gthen,l)}:{},t&&_n(l,t),++i.ref,l.finalize=function(){--this.parent.ref||this.parent.finalize()};var o=Yo(l,e,n,r);return l.ref===0&&l.finalize(),o}function Wo(){return ln.id||(ln.id=++f7),++ln.awaits,ln.echoes+=Dw,ln.id}function ii(){return ln.awaits?(--ln.awaits===0&&(ln.id=0),ln.echoes=ln.awaits*Dw,!0):!1}(""+$w).indexOf("[native code]")===-1&&(Wo=ii=It);function hc(e){return ln.echoes&&e&&e.constructor===$u?(Wo(),e.then(function(t){return ii(),t},function(t){return ii(),Kt(t)})):e}function h7(e){++dc,(!ln.echoes||--ln.echoes===0)&&(ln.echoes=ln.id=0),Nu.push(Ke),Wi(e,!0)}function p7(){var e=Nu[Nu.length-1];Nu.pop(),Wi(e,!1)}function Wi(e,t){var n=Ke;if((t?ln.echoes&&(!Df++||e!==Ke):Df&&(!--Df||e!==Ke))&&Uw(t?h7.bind(null,e):p7),e!==Ke&&(Ke=e,n===yo&&(yo.env=Vw()),qp)){var r=yo.env.Promise,i=e.env;cc.then=i.nthen,r.prototype.then=i.gthen,(n.global||e.global)&&(Object.defineProperty($t,"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 Vw(){var e=$t.Promise;return qp?{Promise:e,PromiseProp:Object.getOwnPropertyDescriptor($t,"Promise"),all:e.all,race:e.race,allSettled:e.allSettled,any:e.any,resolve:e.resolve,reject:e.reject,nthen:cc.then,gthen:e.prototype.then}:{}}function Yo(e,t,n,r,i){var l=Ke;try{return Wi(e,!0),t(n,r,i)}finally{Wi(l,!1)}}function Uw(e){$w.call(Qd,e)}function pc(e,t,n,r){return typeof e!="function"?e:function(){var i=Ke;n&&Wo(),Wi(t,!0);try{return e.apply(this,arguments)}finally{Wi(i,!1),r&&Uw(ii)}}}function k0(e,t){return function(n,r){return e.call(this,pc(n,t),pc(r,t))}}var E0="unhandledrejection";function O0(e,t){var n;try{n=t.onuncatched(e)}catch{}if(n!==!1)try{var r,i={promise:t,reason:e};if($t.document&&document.createEvent?(r=document.createEvent("Event"),r.initEvent(E0,!0,!0),_n(r,i)):$t.CustomEvent&&(r=new CustomEvent(E0,{detail:i}),_n(r,i)),r&&$t.dispatchEvent&&(dispatchEvent(r),!$t.PromiseRejectionEvent&&$t.onunhandledrejection))try{$t.onunhandledrejection(r)}catch{}Lr&&r&&!r.defaultPrevented&&console.warn("Unhandled rejection: "+(e.stack||e))}catch{}}var Kt=Be.reject;function sh(e,t,n,r){if(!e.idbdb||!e._state.openComplete&&!Ke.letThrough&&!e._vip){if(e._state.openComplete)return Kt(new Ze.DatabaseClosed(e._state.dbOpenError));if(!e._state.isBeingOpened){if(!e._options.autoOpen)return Kt(new Ze.DatabaseClosed);e.open().catch(It)}return e._state.dbReadyPromise.then(function(){return sh(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===Xp.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return sh(e,t,n,r)})):Kt(l)}return i._promise(t,function(l,v){return Hi(function(){return Ke.trans=i,r(l,v,i)})}).then(function(l){return i._completion.then(function(){return l})})}}var A0="3.2.2",ga=String.fromCharCode(65535),lh=-1/0,Fr="Invalid key provided. Keys must be of type string, number, Date or Array<string | number | Date>.",Hw="String expected.",As=[],Qc=typeof navigator<"u"&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),m7=Qc,g7=Qc,Ww=function(e){return!/(dexie\.js|dexie\.min\.js)/.test(e)},ef="__dbnames",$f="readonly",Bf="readwrite";function Ma(e,t){return e?t?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:e:t}var Yw={type:3,lower:-1/0,lowerOpen:!1,upper:[[]],upperOpen:!1};function su(e){return typeof e=="string"&&!/\./.test(e)?function(t){return t[e]===void 0&&e in t&&(t=Il(t),delete t[e]),t}:function(t){return t}}var v7=function(){function e(){}return e.prototype._trans=function(t,n,r){var i=this._tx||Ke.trans,l=this.name;function v(a,u,d){if(!d.schema[l])throw new Ze.NotFound("Table "+l+" not part of transaction");return n(d.idbtrans,d)}var o=Ll();try{return i&&i.db===this.db?i===Ke.trans?i._promise(t,v,r):Hi(function(){return i._promise(t,v,r)},{trans:i,transless:Ke.transless||Ke}):sh(this.db,t,[this.name],v)}finally{o&&Rl()}},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(cn(t))return new this.db.WhereClause(this,"["+t.join("+")+"]");var n=Wt(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(d){return d.compound&&n.every(function(c){return d.keyPath.indexOf(c)>=0})&&d.keyPath.every(function(c){return n.indexOf(c)>=0})})[0];if(r&&this.db._maxKey!==ga)return this.where(r.name).equals(r.keyPath.map(function(d){return t[d]}));!r&&Lr&&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 v(d,c){try{return l.cmp(d,c)===0}catch{return!1}}var o=n.reduce(function(d,c){var f=d[0],s=d[1],h=i[c],g=t[c];return[f||h,f||!h?Ma(s,h&&h.multi?function(m){var y=Zr(m,c);return cn(y)&&y.some(function(b){return v(g,b)})}:function(m){return v(g,Zr(m,c))}):s]},[null,null]),a=o[0],u=o[1];return a?this.where(a.name).equals(t[a.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,cn(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(Nn(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){_n(this,n)}return this.mapToClass(t)},e.prototype.add=function(t,n){var r=this,i=this.schema.primKey,l=i.auto,v=i.keyPath,o=t;return v&&l&&(o=su(v)(t)),this._trans("readwrite",function(a){return r.core.mutate({trans:a,type:"add",keys:n!=null?[n]:null,values:[o]})}).then(function(a){return a.numFailures?Be.reject(a.failures[0]):a.lastResult}).then(function(a){if(v)try{sr(t,v,a)}catch{}return a})},e.prototype.update=function(t,n){if(typeof t=="object"&&!cn(t)){var r=Zr(t,this.schema.primKey.keyPath);if(r===void 0)return Kt(new Ze.InvalidArgument("Given object does not contain its primary key"));try{typeof n!="function"?Wt(n).forEach(function(i){sr(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,v=i.keyPath,o=t;return v&&l&&(o=su(v)(t)),this._trans("readwrite",function(a){return r.core.mutate({trans:a,type:"put",values:[o],keys:n!=null?[n]:null})}).then(function(a){return a.numFailures?Be.reject(a.failures[0]):a.lastResult}).then(function(a){if(v)try{sr(t,v,a)}catch{}return a})},e.prototype.delete=function(t){var n=this;return this._trans("readwrite",function(r){return n.core.mutate({trans:r,type:"delete",keys:[t]})}).then(function(r){return r.numFailures?Be.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:Yw})}).then(function(n){return n.numFailures?Be.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 v=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,u=a.auto,d=a.keyPath;if(d&&l)throw new Ze.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(l&&l.length!==t.length)throw new Ze.InvalidArgument("Arguments objects and keys must have the same length");var c=t.length,f=d&&u?t.map(su(d)):t;return i.core.mutate({trans:o,type:"add",keys:l,values:f,wantResults:v}).then(function(s){var h=s.numFailures,g=s.results,m=s.lastResult,y=s.failures,b=v?g:m;if(h===0)return b;throw new Os(i.name+".bulkAdd(): "+h+" 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 v=r?r.allKeys:void 0;return this._trans("readwrite",function(o){var a=i.schema.primKey,u=a.auto,d=a.keyPath;if(d&&l)throw new Ze.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(l&&l.length!==t.length)throw new Ze.InvalidArgument("Arguments objects and keys must have the same length");var c=t.length,f=d&&u?t.map(su(d)):t;return i.core.mutate({trans:o,type:"put",keys:l,values:f,wantResults:v}).then(function(s){var h=s.numFailures,g=s.results,m=s.lastResult,y=s.failures,b=v?g:m;if(h===0)return b;throw new Os(i.name+".bulkPut(): "+h+" 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,v=i.lastResult,o=i.failures;if(l===0)return v;throw new Os(n.name+".bulkDelete(): "+l+" of "+r+" operations failed",o)})},e}();function Dl(e){var t={},n=function(o,a){if(a){for(var u=arguments.length,d=new Array(u-1);--u;)d[u-1]=arguments[u];return t[o].subscribe.apply(null,d),e}else if(typeof o=="string")return t[o]};n.addEventType=l;for(var r=1,i=arguments.length;r<i;++r)l(arguments[r]);return n;function l(o,a,u){if(typeof o=="object")return v(o);a||(a=r7),u||(u=It);var d={subscribers:[],fire:u,subscribe:function(c){d.subscribers.indexOf(c)===-1&&(d.subscribers.push(c),d.fire=a(d.fire,c))},unsubscribe:function(c){d.subscribers=d.subscribers.filter(function(f){return f!==c}),d.fire=d.subscribers.reduce(a,u)}};return t[o]=n[o]=d,d}function v(o){Wt(o).forEach(function(a){var u=o[a];if(cn(u))l(a,o[a][0],o[a][1]);else if(u==="asap")var d=l(a,Ml,function(){for(var f=arguments.length,s=new Array(f);f--;)s[f]=arguments[f];d.subscribers.forEach(function(h){kw(function(){h.apply(null,s)})})});else throw new Ze.InvalidArgument("Invalid event config")})}}function $l(e,t){return Uo(t).from({prototype:e}),t}function y7(e){return $l(v7.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:Dl(null,{creating:[e7,It],reading:[QV,Ml],updating:[n7,It],deleting:[t7,It]})})}function to(e,t){return!(e.filter||e.algorithm||e.or)&&(t?e.justLimit:!e.replayFilter)}function Ff(e,t){e.filter=Ma(e.filter,t)}function zf(e,t,n){var r=e.replayFilter;e.replayFilter=r?function(){return Ma(r(),t())}:t,e.justLimit=n&&!r}function b7(e,t){e.isMatch=Ma(e.isMatch,t)}function ju(e,t){if(e.isPrimKey)return t.primaryKey;var n=t.getIndexByKeyPath(e.index);if(!n)throw new Ze.Schema("KeyPath "+e.index+" on object store "+t.name+" is not indexed");return n}function P0(e,t,n){var r=ju(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 lu(e,t,n,r){var i=e.replayFilter?Ma(e.filter,e.replayFilter()):e.filter;if(e.or){var l={},v=function(o,a,u){if(!i||i(a,u,function(f){return a.stop(f)},function(f){return a.fail(f)})){var d=a.primaryKey,c=""+d;c==="[object ArrayBuffer]"&&(c=""+new Uint8Array(d)),Nn(l,c)||(l[c]=!0,t(o,a,u))}};return Promise.all([e.or._iterate(v,n),I0(P0(e,r,n),e.algorithm,v,!e.keysOnly&&e.valueMapper)])}else return I0(P0(e,r,n),Ma(e.algorithm,i),t,!e.keysOnly&&e.valueMapper)}function I0(e,t,n,r){var i=r?function(v,o,a){return n(r(v),o,a)}:n,l=Ft(i);return e.then(function(v){if(v)return v.start(function(){var o=function(){return v.continue()};(!t||t(v,function(a){return o=a},function(a){v.stop(a),o=It},function(a){v.fail(a),o=It}))&&l(v.value,v,function(a){return o=a}),o()})})}function vn(e,t){try{var n=M0(e),r=M0(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 w7(L0(e),L0(t));case"Array":return _7(e,t)}}catch{}return NaN}function _7(e,t){for(var n=e.length,r=t.length,i=n<r?n:r,l=0;l<i;++l){var v=vn(e[l],t[l]);if(v!==0)return v}return n===r?0:n<r?-1:1}function w7(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 M0(e){var t=typeof e;if(t!=="object")return t;if(ArrayBuffer.isView(e))return"binary";var n=qd(e);return n==="ArrayBuffer"?"binary":n}function L0(e){return e instanceof Uint8Array?e:ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e)}var C7=function(){function e(){}return e.prototype._read=function(t,n){var r=this._ctx;return r.error?r.table._trans(null,Kt.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,Kt.bind(null,n.error)):n.table._trans("readwrite",t,"locked")},e.prototype._addAlgorithm=function(t){var n=this._ctx;n.algorithm=Ma(n.algorithm,t)},e.prototype._iterate=function(t,n){return lu(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&&_n(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 lu(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(to(i,!0))return l.count({trans:r,query:{index:ju(i,l.schema),range:i.range}}).then(function(o){return Math.min(o,i.limit)});var v=0;return lu(i,function(){return++v,!1},r,l).then(function(){return v})}).then(t)},e.prototype.sortBy=function(t,n){var r=t.split(".").reverse(),i=r[0],l=r.length-1;function v(u,d){return d?v(u[r[d]],d-1):u[i]}var o=this._ctx.dir==="next"?1:-1;function a(u,d){var c=v(u,l),f=v(d,l);return c<f?-o:c>f?o:0}return this.toArray(function(u){return u.sort(a)}).then(n)},e.prototype.toArray=function(t){var n=this;return this._read(function(r){var i=n._ctx;if(i.dir==="next"&&to(i,!0)&&i.limit>0){var l=i.valueMapper,v=ju(i,i.table.core.schema);return i.table.core.query({trans:r,limit:i.limit,values:!0,query:{index:v,range:i.range}}).then(function(a){var u=a.result;return l?u.map(l):u})}else{var o=[];return lu(i,function(a){return o.push(a)},r,i.table.core).then(function(){return o})}},t)},e.prototype.offset=function(t){var n=this._ctx;return t<=0?this:(n.offset+=t,to(n)?zf(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)}}):zf(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),zf(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 Ff(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 Ff(this._ctx,function(n){return t(n.value)}),b7(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"&&to(n,!0)&&n.limit>0)return this._read(function(i){var l=ju(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 Ff(this._ctx,function(i){var l=i.primaryKey.toString(),v=Nn(r,l);return r[l]=!0,!v}),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 v=Wt(t),o=v.length;l=function(y){for(var b=!1,_=0;_<o;++_){var w=v[_],S=t[w];Zr(y,w)!==S&&(sr(y,w,S),b=!0)}return b}}var a=r.table.core,u=a.schema.primaryKey,d=u.outbound,c=u.extractKey,f=n.db._options.modifyChunkSize||200,s=[],h=0,g=[],m=function(y,b){var _=b.failures,w=b.numFailures;h+=y-w;for(var S=0,x=Wt(_);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 a.getMany({trans:i,keys:y.slice(_,_+w),cache:"immutable"}).then(function(S){for(var x=[],T=[],E=d?[]:null,I=[],D=0;D<w;++D){var N=S[D],L={value:Il(N),primKey:y[_+D]};l.call(L,L.value,L)!==!1&&(L.value==null?I.push(y[_+D]):!d&&vn(c(N),c(L.value))!==0?(I.push(y[_+D]),x.push(L.value)):(T.push(L.value),d&&E.push(y[_+D])))}var F=to(r)&&r.limit===1/0&&(typeof t!="function"||t===Nf)&&{index:r.index,range:r.range};return Promise.resolve(x.length>0&&a.mutate({trans:i,type:"add",values:x}).then(function(O){for(var V in O.failures)I.splice(parseInt(V),1);m(x.length,O)})).then(function(){return(T.length>0||F&&typeof t=="object")&&a.mutate({trans:i,type:"put",keys:E,values:T,criteria:F,changeSpec:typeof t!="function"&&t}).then(function(O){return m(T.length,O)})}).then(function(){return(I.length>0||F&&t===Nf)&&a.mutate({trans:i,type:"delete",keys:I,criteria:F}).then(function(O){return m(I.length,O)})}).then(function(){return y.length>_+w&&b(_+f)})})};return b(0).then(function(){if(s.length>0)throw new uc("Error modifying one or more objects",s,h,g);return y.length})})})},e.prototype.delete=function(){var t=this._ctx,n=t.range;return to(t)&&(t.isPrimKey&&!g7||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(v){return t.table.core.mutate({trans:r,type:"deleteRange",range:l}).then(function(o){var a=o.failures;o.lastResult,o.results;var u=o.numFailures;if(u)throw new uc("Could not delete some values",Object.keys(a).map(function(d){return a[d]}),v-u);return v-u})})}):this.modify(Nf)},e}(),Nf=function(e,t){return t.value=null};function S7(e){return $l(C7.prototype,function(n,r){this.db=e;var i=Yw,l=null;if(r)try{i=r()}catch(u){l=u}var v=n._ctx,o=v.table,a=o.hook.reading.fire;this._ctx={table:o,index:v.index,isPrimKey:!v.index||o.schema.primKey.keyPath&&v.index===o.schema.primKey.name,range:i,keysOnly:!1,dir:"next",unique:"",algorithm:null,filter:null,replayFilter:null,justLimit:!0,isMatch:null,offset:0,limit:1/0,error:l,or:v.or,valueMapper:a!==Ml?a:null}})}function x7(e,t){return e<t?-1:e===t?0:1}function T7(e,t){return e>t?-1:e===t?0:1}function In(e,t,n){var r=e instanceof Kw?new e.Collection(e):e;return r._ctx.error=n?new n(t):new TypeError(t),r}function no(e){return new e.Collection(e,function(){return Xw("")}).limit(0)}function k7(e){return e==="next"?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function E7(e){return e==="next"?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function O7(e,t,n,r,i,l){for(var v=Math.min(e.length,r.length),o=-1,a=0;a<v;++a){var u=t[a];if(u!==r[a])return i(e[a],n[a])<0?e.substr(0,a)+n[a]+n.substr(a+1):i(e[a],r[a])<0?e.substr(0,a)+r[a]+n.substr(a+1):o>=0?e.substr(0,o)+t[o]+n.substr(o+1):null;i(e[a],u)<0&&(o=a)}return v<r.length&&l==="next"?e+n.substr(e.length):v<e.length&&l==="prev"?e.substr(0,n.length):o<0?null:e.substr(0,o)+r[o]+n.substr(o+1)}function uu(e,t,n,r){var i,l,v,o,a,u,d,c=n.length;if(!n.every(function(g){return typeof g=="string"}))return In(e,Hw);function f(g){i=k7(g),l=E7(g),v=g==="next"?x7:T7;var m=n.map(function(y){return{lower:l(y),upper:i(y)}}).sort(function(y,b){return v(y.lower,b.lower)});o=m.map(function(y){return y.upper}),a=m.map(function(y){return y.lower}),u=g,d=g==="next"?"":r}f("next");var s=new e.Collection(e,function(){return Si(o[0],a[c-1]+r)});s._ondirectionchange=function(g){f(g)};var h=0;return s._addAlgorithm(function(g,m,y){var b=g.key;if(typeof b!="string")return!1;var _=l(b);if(t(_,a,h))return!0;for(var w=null,S=h;S<c;++S){var x=O7(b,_,o[S],a[S],v,u);x===null&&w===null?h=S+1:(w===null||v(w,x)>0)&&(w=x)}return m(w!==null?function(){g.continue(w+d)}:y),!1}),s}function Si(e,t,n,r){return{type:2,lower:e,upper:t,lowerOpen:n,upperOpen:r}}function Xw(e){return{type:1,lower:e,upper:e}}var Kw=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)?no(this):new this.Collection(this,function(){return Si(t,n,!r,!i)})}catch{return In(this,Fr)}},e.prototype.equals=function(t){return t==null?In(this,Fr):new this.Collection(this,function(){return Xw(t)})},e.prototype.above=function(t){return t==null?In(this,Fr):new this.Collection(this,function(){return Si(t,void 0,!0)})},e.prototype.aboveOrEqual=function(t){return t==null?In(this,Fr):new this.Collection(this,function(){return Si(t,void 0,!1)})},e.prototype.below=function(t){return t==null?In(this,Fr):new this.Collection(this,function(){return Si(void 0,t,!1,!0)})},e.prototype.belowOrEqual=function(t){return t==null?In(this,Fr):new this.Collection(this,function(){return Si(void 0,t)})},e.prototype.startsWith=function(t){return typeof t!="string"?In(this,Hw):this.between(t,t+ga,!0,!0)},e.prototype.startsWithIgnoreCase=function(t){return t===""?this.startsWith(t):uu(this,function(n,r){return n.indexOf(r[0])===0},[t],ga)},e.prototype.equalsIgnoreCase=function(t){return uu(this,function(n,r){return n===r[0]},[t],"")},e.prototype.anyOfIgnoreCase=function(){var t=Xr.apply(uo,arguments);return t.length===0?no(this):uu(this,function(n,r){return r.indexOf(n)!==-1},t,"")},e.prototype.startsWithAnyOfIgnoreCase=function(){var t=Xr.apply(uo,arguments);return t.length===0?no(this):uu(this,function(n,r){return r.some(function(i){return n.indexOf(i)===0})},t,ga)},e.prototype.anyOf=function(){var t=this,n=Xr.apply(uo,arguments),r=this._cmp;try{n.sort(r)}catch{return In(this,Fr)}if(n.length===0)return no(this);var i=new this.Collection(this,function(){return Si(n[0],n[n.length-1])});i._ondirectionchange=function(v){r=v==="next"?t._ascending:t._descending,n.sort(r)};var l=0;return i._addAlgorithm(function(v,o,a){for(var u=v.key;r(u,n[l])>0;)if(++l,l===n.length)return o(a),!1;return r(u,n[l])===0?!0:(o(function(){v.continue(n[l])}),!1)}),i},e.prototype.notEqual=function(t){return this.inAnyRange([[lh,t],[t,this.db._maxKey]],{includeLowers:!1,includeUppers:!1})},e.prototype.noneOf=function(){var t=Xr.apply(uo,arguments);if(t.length===0)return new this.Collection(this);try{t.sort(this._ascending)}catch{return In(this,Fr)}var n=t.reduce(function(r,i){return r?r.concat([[r[r.length-1][1],i]]):[[lh,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,v=this._descending,o=this._min,a=this._max;if(t.length===0)return no(this);if(!t.every(function(S){return S[0]!==void 0&&S[1]!==void 0&&l(S[0],S[1])<=0}))return In(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",Ze.InvalidArgument);var u=!n||n.includeLowers!==!1,d=n&&n.includeUppers===!0;function c(S,x){for(var T=0,E=S.length;T<E;++T){var I=S[T];if(i(x[0],I[1])<0&&i(x[1],I[0])>0){I[0]=o(I[0],x[0]),I[1]=a(I[1],x[1]);break}}return T===E&&S.push(x),S}var f=l;function s(S,x){return f(S[0],x[0])}var h;try{h=t.reduce(c,[]),h.sort(s)}catch{return In(this,Fr)}var g=0,m=d?function(S){return l(S,h[g][1])>0}:function(S){return l(S,h[g][1])>=0},y=u?function(S){return v(S,h[g][0])>0}:function(S){return v(S,h[g][0])>=0};function b(S){return!m(S)&&!y(S)}var _=m,w=new this.Collection(this,function(){return Si(h[0][0],h[h.length-1][1],!u,!d)});return w._ondirectionchange=function(S){S==="next"?(_=m,f=l):(_=y,f=v),h.sort(s)},w._addAlgorithm(function(S,x,T){for(var E=S.key;_(E);)if(++g,g===h.length)return x(T),!1;return b(E)?!0:(r._cmp(E,h[g][1])===0||r._cmp(E,h[g][0])===0||x(function(){f===l?S.continue(h[g][0]):S.continue(h[g][1])}),!1)}),w},e.prototype.startsWithAnyOf=function(){var t=Xr.apply(uo,arguments);return t.every(function(n){return typeof n=="string"})?t.length===0?no(this):this.inAnyRange(t.map(function(n){return[n,n+ga]})):In(this,"startsWithAnyOf() only works with strings")},e}();function A7(e){return $l(Kw.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 Ze.MissingAPI;this._cmp=this._ascending=l.cmp.bind(l),this._descending=function(v,o){return l.cmp(o,v)},this._max=function(v,o){return l.cmp(v,o)>0?v:o},this._min=function(v,o){return l.cmp(v,o)<0?v:o},this._IDBKeyRange=e._deps.IDBKeyRange})}function vr(e){return Ft(function(t){return sl(t),e(t.target.error),!1})}function sl(e){e.stopPropagation&&e.stopPropagation(),e.preventDefault&&e.preventDefault()}var ll="storagemutated",Ai="x-storagemutated-1",Yi=Dl(null,ll),P7=function(){function e(){}return e.prototype._lock=function(){return fs(!Ke.global),++this._reculock,this._reculock===1&&!Ke.global&&(Ke.lockOwnerFor=this),this},e.prototype._unlock=function(){if(fs(!Ke.global),--this._reculock===0)for(Ke.global||(Ke.lockOwnerFor=null);this._blockedFuncs.length>0&&!this._locked();){var t=this._blockedFuncs.shift();try{Yo(t[1],t[0])}catch{}}return this},e.prototype._locked=function(){return this._reculock&&Ke.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(fs(!this.idbtrans),!t&&!r)switch(i&&i.name){case"DatabaseClosedError":throw new Ze.DatabaseClosed(i);case"MissingAPIError":throw new Ze.MissingAPI(i.message,i);default:throw new Ze.OpenFailed(i)}if(!this.active)throw new Ze.TransactionInactive;return fs(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=Ft(function(l){sl(l),n._reject(t.error)}),t.onabort=Ft(function(l){sl(l),n.active&&n._reject(new Ze.Abort(t.error)),n.active=!1,n.on("abort").fire(l)}),t.oncomplete=Ft(function(){n.active=!1,n._resolve(),"mutatedParts"in t&&Yi.storagemutated.fire(t.mutatedParts)}),this},e.prototype._promise=function(t,n,r){var i=this;if(t==="readwrite"&&this.mode!=="readwrite")return Kt(new Ze.ReadOnly("Transaction is readonly"));if(!this.active)return Kt(new Ze.TransactionInactive);if(this._locked())return new Be(function(v,o){i._blockedFuncs.push([function(){i._promise(t,n,r).then(v,o)},Ke])});if(r)return Hi(function(){var v=new Be(function(o,a){i._lock();var u=n(o,a,i);u&&u.then&&u.then(o,a)});return v.finally(function(){return i._unlock()}),v._lib=!0,v});var l=new Be(function(v,o){var a=n(v,o,i);a&&a.then&&a.then(v,o)});return l._lib=!0,l},e.prototype._root=function(){return this.parent?this.parent._root():this},e.prototype.waitFor=function(t){var n=this._root(),r=Be.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 v(){for(++n._spinCount;n._waitingQueue.length;)n._waitingQueue.shift()();n._waitingFor&&(i.get(-1/0).onsuccess=v)})()}var l=n._waitingFor;return new Be(function(v,o){r.then(function(a){return n._waitingQueue.push(Ft(v.bind(null,a)))},function(a){return n._waitingQueue.push(Ft(o.bind(null,a)))}).finally(function(){n._waitingFor===l&&(n._waitingFor=null)})})},e.prototype.abort=function(){this.active&&(this.active=!1,this.idbtrans&&this.idbtrans.abort(),this._reject(new Ze.Abort))},e.prototype.table=function(t){var n=this._memoizedTables||(this._memoizedTables={});if(Nn(n,t))return n[t];var r=this.schema[t];if(!r)throw new Ze.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 I7(e){return $l(P7.prototype,function(n,r,i,l,v){var o=this;this.db=e,this.mode=n,this.storeNames=r,this.schema=i,this.chromeTransactionDurability=l,this.idbtrans=null,this.on=Dl(this,"complete","error","abort"),this.parent=v||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 Be(function(a,u){o._resolve=a,o._reject=u}),this._completion.then(function(){o.active=!1,o.on.complete.fire()},function(a){var u=o.active;return o.active=!1,o.on.error.fire(a),o.parent?o.parent._reject(a):u&&o.idbtrans&&o.idbtrans.abort(),Kt(a)})})}function uh(e,t,n,r,i,l,v){return{name:e,keyPath:t,unique:n,multi:r,auto:i,compound:l,src:(n&&!v?"&":"")+(r?"*":"")+(i?"++":"")+Gw(t)}}function Gw(e){return typeof e=="string"?e:e?"["+[].join.call(e,"+")+"]":""}function qw(e,t,n){return{name:e,primKey:t,indexes:n,mappedClass:null,idxByName:Ew(n,function(r){return[r.name,r]})}}function M7(e){return e.length===1?e[0]:e}var ul=function(e){try{return e.only([[]]),ul=function(){return[[]]},[[]]}catch{return ul=function(){return ga},ga}};function ch(e){return e==null?function(){}:typeof e=="string"?L7(e):function(t){return Zr(t,e)}}function L7(e){var t=e.split(".");return t.length===1?function(n){return n[e]}:function(n){return Zr(n,e)}}function R0(e){return[].slice.call(e)}var R7=0;function Ps(e){return e==null?":id":typeof e=="string"?e:"["+e.join("+")+"]"}function D7(e,t,n){function r(c,f){var s=R0(c.objectStoreNames);return{schema:{name:c.name,tables:s.map(function(h){return f.objectStore(h)}).map(function(h){var g=h.keyPath,m=h.autoIncrement,y=cn(g),b=g==null,_={},w={name:h.name,primaryKey:{name:null,isPrimaryKey:!0,outbound:b,compound:y,keyPath:g,autoIncrement:m,unique:!0,extractKey:ch(g)},indexes:R0(h.indexNames).map(function(S){return h.index(S)}).map(function(S){var x=S.name,T=S.unique,E=S.multiEntry,I=S.keyPath,D=cn(I),N={name:x,compound:D,keyPath:I,unique:T,multiEntry:E,extractKey:ch(I)};return _[Ps(I)]=N,N}),getIndexByKeyPath:function(S){return _[Ps(S)]}};return _[":id"]=w.primaryKey,g!=null&&(_[Ps(g)]=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,h=c.lowerOpen,g=c.upperOpen,m=f===void 0?s===void 0?null:t.upperBound(s,!!g):s===void 0?t.lowerBound(f,!!h):t.bound(f,s,!!h,!!g);return m}function l(c){var f=c.name;function s(m){var y=m.trans,b=m.type,_=m.keys,w=m.values,S=m.range;return new Promise(function(x,T){x=Ft(x);var E=y.objectStore(f),I=E.keyPath==null,D=b==="put"||b==="add";if(!D&&b!=="delete"&&b!=="deleteRange")throw new Error("Invalid operation type: "+b);var N=(_||w||{length:1}).length;if(_&&w&&_.length!==w.length)throw new Error("Given keys array must have same length as given values array.");if(N===0)return x({numFailures:0,failures:{},results:[],lastResult:void 0});var L,F=[],O=[],V=0,ne=function(P){++V,sl(P)};if(b==="deleteRange"){if(S.type===4)return x({numFailures:V,failures:O,results:[],lastResult:void 0});S.type===3?F.push(L=E.clear()):F.push(L=E.delete(i(S)))}else{var J=D?I?[w,_]:[w,null]:[_,null],le=J[0],M=J[1];if(D)for(var U=0;U<N;++U)F.push(L=M&&M[U]!==void 0?E[b](le[U],M[U]):E[b](le[U])),L.onerror=ne;else for(var U=0;U<N;++U)F.push(L=E[b](le[U])),L.onerror=ne}var R=function(P){var Q=P.target.result;F.forEach(function(j,A){return j.error!=null&&(O[A]=j.error)}),x({numFailures:V,failures:O,results:b==="delete"?_:F.map(function(j){return j.result}),lastResult:Q})};L.onerror=function(P){ne(P),R(P)},L.onsuccess=R})}function h(m){var y=m.trans,b=m.values,_=m.query,w=m.reverse,S=m.unique;return new Promise(function(x,T){x=Ft(x);var E=_.index,I=_.range,D=y.objectStore(f),N=E.isPrimaryKey?D:D.index(E.name),L=w?S?"prevunique":"prev":S?"nextunique":"next",F=b||!("openKeyCursor"in N)?N.openCursor(i(I),L):N.openKeyCursor(i(I),L);F.onerror=vr(T),F.onsuccess=Ft(function(O){var V=F.result;if(!V){x(null);return}V.___id=++R7,V.done=!1;var ne=V.continue.bind(V),J=V.continuePrimaryKey;J&&(J=J.bind(V));var le=V.advance.bind(V),M=function(){throw new Error("Cursor not started")},U=function(){throw new Error("Cursor not stopped")};V.trans=y,V.stop=V.continue=V.continuePrimaryKey=V.advance=M,V.fail=Ft(T),V.next=function(){var R=this,P=1;return this.start(function(){return P--?R.continue():R.stop()}).then(function(){return R})},V.start=function(R){var P=new Promise(function(j,A){j=Ft(j),F.onerror=vr(A),V.fail=A,V.stop=function(q){V.stop=V.continue=V.continuePrimaryKey=V.advance=U,j(q)}}),Q=function(){if(F.result)try{R()}catch(j){V.fail(j)}else V.done=!0,V.start=function(){throw new Error("Cursor behind last entry")},V.stop()};return F.onsuccess=Ft(function(j){F.onsuccess=Q,Q()}),V.continue=ne,V.continuePrimaryKey=J,V.advance=le,Q(),P},x(V)},T)})}function g(m){return function(y){return new Promise(function(b,_){b=Ft(b);var w=y.trans,S=y.values,x=y.limit,T=y.query,E=x===1/0?void 0:x,I=T.index,D=T.range,N=w.objectStore(f),L=I.isPrimaryKey?N:N.index(I.name),F=i(D);if(x===0)return b({result:[]});if(m){var O=S?L.getAll(F,E):L.getAllKeys(F,E);O.onsuccess=function(le){return b({result:le.target.result})},O.onerror=vr(_)}else{var V=0,ne=S||!("openKeyCursor"in L)?L.openCursor(F):L.openKeyCursor(F),J=[];ne.onsuccess=function(le){var M=ne.result;if(!M)return b({result:J});if(J.push(S?M.value:M.primaryKey),++V===x)return b({result:J});M.continue()},ne.onerror=vr(_)}})}}return{name:f,schema:c,mutate:s,getMany:function(m){var y=m.trans,b=m.keys;return new Promise(function(_,w){_=Ft(_);for(var S=y.objectStore(f),x=b.length,T=new Array(x),E=0,I=0,D,N=function(V){var ne=V.target;(T[ne._pos]=ne.result)!=null,++I===E&&_(T)},L=vr(w),F=0;F<x;++F){var O=b[F];O!=null&&(D=S.get(b[F]),D._pos=F,D.onsuccess=N,D.onerror=L,++E)}E===0&&_(T)})},get:function(m){var y=m.trans,b=m.key;return new Promise(function(_,w){_=Ft(_);var S=y.objectStore(f),x=S.get(b);x.onsuccess=function(T){return _(T.target.result)},x.onerror=vr(w)})},query:g(a),openCursor:h,count:function(m){var y=m.query,b=m.trans,_=y.index,w=y.range;return new Promise(function(S,x){var T=b.objectStore(f),E=_.isPrimaryKey?T:T.index(_.name),I=i(w),D=I?E.count(I):E.count();D.onsuccess=Ft(function(N){return S(N.target.result)}),D.onerror=vr(x)})}}}var v=r(e,n),o=v.schema,a=v.hasGetAll,u=o.tables.map(function(c){return l(c)}),d={};return u.forEach(function(c){return d[c.name]=c}),{stack:"dbcore",transaction:e.transaction.bind(e),table:function(c){var f=d[c];if(!f)throw new Error("Table '"+c+"' not found");return d[c]},MIN_KEY:-1/0,MAX_KEY:ul(t),schema:o}}function $7(e,t){return t.reduce(function(n,r){var i=r.create;return ut(ut({},n),i(n))},e)}function B7(e,t,n,r){var i=n.IDBKeyRange;n.indexedDB;var l=$7(D7(t,i,r),e.dbcore);return{dbcore:l}}function Qp(e,t){var n=e._novip,r=t.db,i=B7(n._middlewares,r,n._deps,t);n.core=i.dbcore,n.tables.forEach(function(l){var v=l.name;n.core.schema.tables.some(function(o){return o.name===v})&&(l.core=n.core.table(v),n[v]instanceof n.Table&&(n[v].core=l.core))})}function mc(e,t,n,r){var i=e._novip;n.forEach(function(l){var v=r[l];t.forEach(function(o){var a=Hp(o,l);(!a||"value"in a&&a.value===void 0)&&(o===i.Transaction.prototype||o instanceof i.Transaction?ri(o,l,{get:function(){return this.table(l)},set:function(u){xw(this,l,{value:u,writable:!0,configurable:!0,enumerable:!0})}}):o[l]=new i.Table(l,v))})})}function fh(e,t){var n=e._novip;t.forEach(function(r){for(var i in r)r[i]instanceof n.Table&&delete r[i]})}function F7(e,t){return e._cfg.version-t._cfg.version}function z7(e,t,n,r){var i=e._dbSchema,l=e._createTransaction("readwrite",e._storeNames,i);l.create(n),l._completion.catch(r);var v=l._reject.bind(l),o=Ke.transless||Ke;Hi(function(){Ke.trans=l,Ke.transless=o,t===0?(Wt(i).forEach(function(a){em(n,a,i[a].primKey,i[a].indexes)}),Qp(e,n),Be.follow(function(){return e.on.populate.fire(l)}).catch(v)):N7(e,t,l,n).catch(v)})}function N7(e,t,n,r){var i=e._novip,l=[],v=i._versions,o=i._dbSchema=tm(i,i.idbdb,r),a=!1,u=v.filter(function(c){return c._cfg.version>=t});u.forEach(function(c){l.push(function(){var f=o,s=c._cfg.dbschema;hh(i,f,r),hh(i,s,r),o=i._dbSchema=s;var h=Zw(f,s);h.add.forEach(function(w){em(r,w[0],w[1].primKey,w[1].indexes)}),h.change.forEach(function(w){if(w.recreate)throw new Ze.Upgrade("Not yet support for changing primary key");var S=r.objectStore(w.name);w.add.forEach(function(x){return dh(S,x)}),w.change.forEach(function(x){S.deleteIndex(x.name),dh(S,x)}),w.del.forEach(function(x){return S.deleteIndex(x)})});var g=c._cfg.contentUpgrade;if(g&&c._cfg.version>t){Qp(i,r),n._memoizedTables={},a=!0;var m=Ow(s);h.del.forEach(function(w){m[w]=f[w]}),fh(i,[i.Transaction.prototype]),mc(i,[i.Transaction.prototype],Wt(m),m),n.schema=m;var y=Wp(g);y&&Wo();var b,_=Be.follow(function(){if(b=g(n),b&&y){var w=ii.bind(null,null);b.then(w,w)}});return b&&typeof b.then=="function"?Be.resolve(b):_.then(function(){return b})}}),l.push(function(f){if(!a||!m7){var s=c._cfg.dbschema;V7(s,f)}fh(i,[i.Transaction.prototype]),mc(i,[i.Transaction.prototype],i._storeNames,i._dbSchema),n.schema=i._dbSchema})});function d(){return l.length?Be.resolve(l.shift()(n.idbtrans)).then(d):Be.resolve()}return d().then(function(){j7(o,r)})}function Zw(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 v={name:r,def:l,recreate:!1,del:[],add:[],change:[]};if(""+(i.primKey.keyPath||"")!=""+(l.primKey.keyPath||"")||i.primKey.auto!==l.primKey.auto&&!Qc)v.recreate=!0,n.change.push(v);else{var o=i.idxByName,a=l.idxByName,u=void 0;for(u in o)a[u]||v.del.push(u);for(u in a){var d=o[u],c=a[u];d?d.src!==c.src&&v.change.push(c):v.add.push(c)}(v.del.length>0||v.add.length>0||v.change.length>0)&&n.change.push(v)}}}return n}function em(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 dh(i,l)}),i}function j7(e,t){Wt(e).forEach(function(n){t.db.objectStoreNames.contains(n)||em(t,n,e[n].primKey,e[n].indexes)})}function V7(e,t){[].slice.call(t.db.objectStoreNames).forEach(function(n){return e[n]==null&&t.db.deleteObjectStore(n)})}function dh(e,t){e.createIndex(t.name,t.keyPath,{unique:t.unique,multiEntry:t.multi})}function tm(e,t,n){var r={},i=Zc(t.objectStoreNames,0);return i.forEach(function(l){for(var v=n.objectStore(l),o=v.keyPath,a=uh(Gw(o),o||"",!1,!1,!!v.autoIncrement,o&&typeof o!="string",!0),u=[],d=0;d<v.indexNames.length;++d){var c=v.index(v.indexNames[d]);o=c.keyPath;var f=uh(c.name,o,!!c.unique,!!c.multiEntry,!1,o&&typeof o!="string",!1);u.push(f)}r[l]=qw(l,a,u)}),r}function U7(e,t,n){var r=e._novip;r.verno=t.version/10;var i=r._dbSchema=tm(r,t,n);r._storeNames=Zc(t.objectStoreNames,0),mc(r,[r._allTables],Wt(i),i)}function H7(e,t){var n=tm(e,e.idbdb,t),r=Zw(n,e._dbSchema);return!(r.add.length||r.change.some(function(i){return i.add.length||i.change.length}))}function hh(e,t,n){for(var r=e._novip,i=n.db.objectStoreNames,l=0;l<i.length;++l){var v=i[l],o=n.objectStore(v);r._hasGetAll="getAll"in o;for(var a=0;a<o.indexNames.length;++a){var u=o.indexNames[a],d=o.index(u).keyPath,c=typeof d=="string"?d:"["+Zc(d).join("+")+"]";if(t[v]){var f=t[v].idxByName[c];f&&(f.name=u,delete t[v].idxByName[c],t[v].idxByName[u]=f)}}}typeof navigator<"u"&&/Safari/.test(navigator.userAgent)&&!/(Chrome\/|Edge\/)/.test(navigator.userAgent)&&$t.WorkerGlobalScope&&$t instanceof $t.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 uh(r,i||null,/\&/.test(t),/\*/.test(t),/\+\+/.test(t),cn(i),n===0)})}var Y7=function(){function e(){}return e.prototype._parseStoresSpec=function(t,n){Wt(t).forEach(function(r){if(t[r]!==null){var i=W7(t[r]),l=i.shift();if(l.multi)throw new Ze.Schema("Primary key cannot be multi-valued");i.forEach(function(v){if(v.auto)throw new Ze.Schema("Only primary key can be marked as autoIncrement (++)");if(!v.keyPath)throw new Ze.Schema("Index must have a name and cannot be an empty string")}),n[r]=qw(r,l,i)}})},e.prototype.stores=function(t){var n=this.db;this._cfg.storesSource=this._cfg.storesSource?_n(this._cfg.storesSource,t):t;var r=n._versions,i={},l={};return r.forEach(function(v){_n(i,v._cfg.storesSource),l=v._cfg.dbschema={},v._parseStoresSpec(i,l)}),n._dbSchema=l,fh(n,[n._allTables,n,n.Transaction.prototype]),mc(n,[n._allTables,n,n.Transaction.prototype,this._cfg.tables],Wt(l),l),n._storeNames=Wt(l),this},e.prototype.upgrade=function(t){return this._cfg.contentUpgrade=Kp(this._cfg.contentUpgrade||It,t),this},e}();function X7(e){return $l(Y7.prototype,function(n){this.db=e,this._cfg={version:n,storesSource:null,dbschema:{},tables:{},contentUpgrade:null}})}function nm(e,t){var n=e._dbNamesDB;return n||(n=e._dbNamesDB=new om(ef,{addons:[],indexedDB:e,IDBKeyRange:t}),n.version(1).stores({dbnames:"name"})),n.table("dbnames")}function rm(e){return e&&typeof e.databases=="function"}function K7(e){var t=e.indexedDB,n=e.IDBKeyRange;return rm(t)?Promise.resolve(t.databases()).then(function(r){return r.map(function(i){return i.name}).filter(function(i){return i!==ef})}):nm(t,n).toCollection().primaryKeys()}function G7(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!rm(n)&&t!==ef&&nm(n,r).put({name:t}).catch(It)}function q7(e,t){var n=e.indexedDB,r=e.IDBKeyRange;!rm(n)&&t!==ef&&nm(n,r).delete(t).catch(It)}function ph(e){return Hi(function(){return Ke.letThrough=!0,e()})}function Z7(){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 J7(e){var t=e._state,n=e._deps.indexedDB;if(t.isBeingOpened||e.idbdb)return t.dbReadyPromise.then(function(){return t.dbOpenError?Kt(t.dbOpenError):e});Lr&&(t.openCanceller._stackHolder=Ya()),t.isBeingOpened=!0,t.dbOpenError=null,t.openComplete=!1;var r=t.openCanceller;function i(){if(t.openCanceller!==r)throw new Ze.DatabaseClosed("db.open() was cancelled")}var l=t.dbReadyResolve,v=null,o=!1;return Be.race([r,(typeof navigator>"u"?Be.resolve():Z7()).then(function(){return new Be(function(a,u){if(i(),!n)throw new Ze.MissingAPI;var d=e.name,c=t.autoSchema?n.open(d):n.open(d,Math.round(e.verno*10));if(!c)throw new Ze.MissingAPI;c.onerror=vr(u),c.onblocked=Ft(e._fireOnBlocked),c.onupgradeneeded=Ft(function(f){if(v=c.transaction,t.autoSchema&&!e._options.allowEmptyDB){c.onerror=sl,v.abort(),c.result.close();var s=n.deleteDatabase(d);s.onsuccess=s.onerror=Ft(function(){u(new Ze.NoSuchDatabase("Database "+d+" doesnt exist"))})}else{v.onerror=vr(u);var h=f.oldVersion>Math.pow(2,62)?0:f.oldVersion;o=h<1,e._novip.idbdb=c.result,z7(e,h/10,v,u)}},u),c.onsuccess=Ft(function(){v=null;var f=e._novip.idbdb=c.result,s=Zc(f.objectStoreNames);if(s.length>0)try{var h=f.transaction(M7(s),"readonly");t.autoSchema?U7(e,f,h):(hh(e,e._dbSchema,h),H7(e,h)||console.warn("Dexie SchemaDiff: Schema was extended without increasing the number passed to db.version(). Some queries may fail.")),Qp(e,h)}catch{}As.push(e),f.onversionchange=Ft(function(g){t.vcFired=!0,e.on("versionchange").fire(g)}),f.onclose=Ft(function(g){e.on("close").fire(g)}),o&&G7(e._deps,d),a()},u)})})]).then(function(){return i(),t.onReadyBeingFired=[],Be.resolve(ph(function(){return e.on.ready.fire(e.vip)})).then(function a(){if(t.onReadyBeingFired.length>0){var u=t.onReadyBeingFired.reduce(Kp,It);return t.onReadyBeingFired=[],Be.resolve(ph(function(){return u(e.vip)})).then(a)}})}).finally(function(){t.onReadyBeingFired=null,t.isBeingOpened=!1}).then(function(){return e}).catch(function(a){t.dbOpenError=a;try{v&&v.abort()}catch{}return r===t.openCanceller&&e._close(),Kt(a)}).finally(function(){t.openComplete=!0,l()})}function mh(e){var t=function(v){return e.next(v)},n=function(v){return e.throw(v)},r=l(t),i=l(n);function l(v){return function(o){var a=v(o),u=a.value;return a.done?u:!u||typeof u.then!="function"?cn(u)?Promise.all(u).then(r,i):r(u):u.then(r,i)}}return l(t)()}function Q7(e,t,n){var r=arguments.length;if(r<2)throw new Ze.InvalidArgument("Too few arguments");for(var i=new Array(r-1);--r;)i[r-1]=arguments[r];n=i.pop();var l=Aw(i);return[e,l,n]}function Jw(e,t,n,r,i){return Be.resolve().then(function(){var l=Ke.transless||Ke,v=e._createTransaction(t,n,e._dbSchema,r),o={trans:v,transless:l};if(r)v.idbtrans=r.idbtrans;else try{v.create(),e._state.PR1398_maxLoop=3}catch(c){return c.name===Xp.InvalidState&&e.isOpen()&&--e._state.PR1398_maxLoop>0?(console.warn("Dexie: Need to reopen db"),e._close(),e.open().then(function(){return Jw(e,t,n,null,i)})):Kt(c)}var a=Wp(i);a&&Wo();var u,d=Be.follow(function(){if(u=i.call(v,v),u)if(a){var c=ii.bind(null,null);u.then(c,c)}else typeof u.next=="function"&&typeof u.throw=="function"&&(u=mh(u))},o);return(u&&typeof u.then=="function"?Be.resolve(u).then(function(c){return v.active?c:Kt(new Ze.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))}):d.then(function(){return u})).then(function(c){return r&&v._resolve(),v._completion.then(function(){return c})}).catch(function(c){return v._reject(c),Kt(c)})})}function cu(e,t,n){for(var r=cn(e)?e.slice():[e],i=0;i<n;++i)r.push(t);return r}function eU(e){return ut(ut({},e),{table:function(t){var n=e.table(t),r=n.schema,i={},l=[];function v(g,m,y){var b=Ps(g),_=i[b]=i[b]||[],w=g==null?0:typeof g=="string"?1:g.length,S=m>0,x=ut(ut({},y),{isVirtual:S,keyTail:m,keyLength:w,extractKey:ch(g),unique:!S&&y.unique});if(_.push(x),x.isPrimaryKey||l.push(x),w>1){var T=w===2?g[0]:g.slice(0,w-1);v(T,m+1,y)}return _.sort(function(E,I){return E.keyTail-I.keyTail}),x}var o=v(r.primaryKey.keyPath,0,r.primaryKey);i[":id"]=[o];for(var a=0,u=r.indexes;a<u.length;a++){var d=u[a];v(d.keyPath,0,d)}function c(g){var m=i[Ps(g)];return m&&m[0]}function f(g,m){return{type:g.type===1?2:g.type,lower:cu(g.lower,g.lowerOpen?e.MAX_KEY:e.MIN_KEY,m),lowerOpen:!0,upper:cu(g.upper,g.upperOpen?e.MIN_KEY:e.MAX_KEY,m),upperOpen:!0}}function s(g){var m=g.query.index;return m.isVirtual?ut(ut({},g),{query:{index:m,range:f(g.query.range,m.keyTail)}}):g}var h=ut(ut({},n),{schema:ut(ut({},r),{primaryKey:o,indexes:l,getIndexByKeyPath:c}),count:function(g){return n.count(s(g))},query:function(g){return n.query(s(g))},openCursor:function(g){var m=g.query.index,y=m.keyTail,b=m.isVirtual,_=m.keyLength;if(!b)return n.openCursor(g);function w(S){function x(E){E!=null?S.continue(cu(E,g.reverse?e.MAX_KEY:e.MIN_KEY,y)):g.unique?S.continue(S.key.slice(0,_).concat(g.reverse?e.MIN_KEY:e.MAX_KEY,y)):S.continue()}var T=Object.create(S,{continue:{value:x},continuePrimaryKey:{value:function(E,I){S.continuePrimaryKey(cu(E,e.MAX_KEY,y),I)}},primaryKey:{get:function(){return S.primaryKey}},key:{get:function(){var E=S.key;return _===1?E[0]:E.slice(0,_)}},value:{get:function(){return S.value}}});return T}return n.openCursor(s(g)).then(function(S){return S&&w(S)})}});return h}})}var tU={stack:"dbcore",name:"VirtualIndexMiddleware",level:1,create:eU};function im(e,t,n,r){return n=n||{},r=r||"",Wt(e).forEach(function(i){if(!Nn(t,i))n[r+i]=void 0;else{var l=e[i],v=t[i];if(typeof l=="object"&&typeof v=="object"&&l&&v){var o=qd(l),a=qd(v);o!==a?n[r+i]=t[i]:o==="Object"?im(l,v,n,r+i+"."):l!==v&&(n[r+i]=t[i])}else l!==v&&(n[r+i]=t[i])}}),Wt(t).forEach(function(i){Nn(e,i)||(n[r+i]=t[i])}),n}function nU(e,t){return t.type==="delete"?t.keys:t.keys||t.values.map(e.extractKey)}var rU={stack:"dbcore",name:"HooksMiddleware",level:2,create:function(e){return ut(ut({},e),{table:function(t){var n=e.table(t),r=n.schema.primaryKey,i=ut(ut({},n),{mutate:function(l){var v=Ke.trans,o=v.table(t).hook,a=o.deleting,u=o.creating,d=o.updating;switch(l.type){case"add":if(u.fire===It)break;return v._promise("readwrite",function(){return c(l)},!0);case"put":if(u.fire===It&&d.fire===It)break;return v._promise("readwrite",function(){return c(l)},!0);case"delete":if(a.fire===It)break;return v._promise("readwrite",function(){return c(l)},!0);case"deleteRange":if(a.fire===It)break;return v._promise("readwrite",function(){return f(l)},!0)}return n.mutate(l);function c(h){var g=Ke.trans,m=h.keys||nU(r,h);if(!m)throw new Error("Keys missing");return h=h.type==="add"||h.type==="put"?ut(ut({},h),{keys:m}):ut({},h),h.type!=="delete"&&(h.values=Kd([],h.values,!0)),h.keys&&(h.keys=Kd([],h.keys,!0)),iU(n,h,m).then(function(y){var b=m.map(function(_,w){var S=y[w],x={onerror:null,onsuccess:null};if(h.type==="delete")a.fire.call(x,_,S,g);else if(h.type==="add"||S===void 0){var T=u.fire.call(x,_,h.values[w],g);_==null&&T!=null&&(_=T,h.keys[w]=_,r.outbound||sr(h.values[w],r.keyPath,_))}else{var E=im(S,h.values[w]),I=d.fire.call(x,E,_,S,g);if(I){var D=h.values[w];Object.keys(I).forEach(function(N){Nn(D,N)?D[N]=I[N]:sr(D,N,I[N])})}}return x});return n.mutate(h).then(function(_){for(var w=_.failures,S=_.results,x=_.numFailures,T=_.lastResult,E=0;E<m.length;++E){var I=S?S[E]:m[E],D=b[E];I==null?D.onerror&&D.onerror(w[E]):D.onsuccess&&D.onsuccess(h.type==="put"&&y[E]?h.values[E]:I)}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(h){return s(h.trans,h.range,1e4)}function s(h,g,m){return n.query({trans:h,values:!1,query:{index:r,range:g},limit:m}).then(function(y){var b=y.result;return c({type:"delete",keys:b,trans:h}).then(function(_){return _.numFailures>0?Promise.reject(_.failures[0]):b.length<m?{failures:[],numFailures:0,lastResult:void 0}:s(h,ut(ut({},g),{lower:b[b.length-1],lowerOpen:!0}),m)})})}}});return i}})}};function iU(e,t,n){return t.type==="add"?Promise.resolve([]):e.getMany({trans:t.trans,keys:n,cache:"immutable"})}function Qw(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)vn(t.keys[i],e[l])===0&&(r.push(n?Il(t.values[i]):t.values[i]),++l);return r.length===e.length?r:null}catch{return null}}var aU={stack:"dbcore",level:-1,create:function(e){return{table:function(t){var n=e.table(t);return ut(ut({},n),{getMany:function(r){if(!r.cache)return n.getMany(r);var i=Qw(r.keys,r.trans._cache,r.cache==="clone");return i?Be.resolve(i):n.getMany(r).then(function(l){return r.trans._cache={keys:r.keys,values:r.cache==="clone"?Il(l):l},l})},mutate:function(r){return r.type!=="add"&&(r.trans._cache=null),n.mutate(r)}})}}}},jf;function am(e){return!("from"in e)}var Hr=function(e,t){if(this)_n(this,arguments.length?{d:1,from:e,to:arguments.length>1?t:e}:{d:0});else{var n=new Hr;return e&&"d"in e&&_n(n,e),n}};Lo(Hr.prototype,(jf={add:function(e){return gc(this,e),this},addKey:function(e){return cl(this,e,e),this},addKeys:function(e){var t=this;return e.forEach(function(n){return cl(t,n,n)}),this}},jf[Zd]=function(){return gh(this)},jf));function cl(e,t,n){var r=vn(t,n);if(!isNaN(r)){if(r>0)throw RangeError();if(am(e))return _n(e,{from:t,to:n,d:1});var i=e.l,l=e.r;if(vn(n,e.from)<0)return i?cl(i,t,n):e.l={from:t,to:n,d:1,l:null,r:null},D0(e);if(vn(t,e.to)>0)return l?cl(l,t,n):e.r={from:t,to:n,d:1,l:null,r:null},D0(e);vn(t,e.from)<0&&(e.from=t,e.l=null,e.d=l?l.d+1:1),vn(n,e.to)>0&&(e.to=n,e.r=null,e.d=e.l?e.l.d+1:1);var v=!e.r;i&&!e.l&&gc(e,i),l&&v&&gc(e,l)}}function gc(e,t){function n(r,i){var l=i.from,v=i.to,o=i.l,a=i.r;cl(r,l,v),o&&n(r,o),a&&n(r,a)}am(t)||n(e,t)}function oU(e,t){var n=gh(t),r=n.next();if(r.done)return!1;for(var i=r.value,l=gh(e),v=l.next(i.from),o=v.value;!r.done&&!v.done;){if(vn(o.from,i.to)<=0&&vn(o.to,i.from)>=0)return!0;vn(i.from,o.from)<0?i=(r=n.next(o.from)).value:o=(v=l.next(i.from)).value}return!1}function gh(e){var t=am(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&&vn(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||vn(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 D0(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",v=ut({},e),o=e[i];e.from=o.from,e.to=o.to,e[i]=o[i],v[i]=o[l],e[l]=v,v.d=$0(v)}e.d=$0(e)}function $0(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 sU={stack:"dbcore",level:0,create:function(e){var t=e.schema.name,n=new Hr(e.MIN_KEY,e.MAX_KEY);return ut(ut({},e),{table:function(r){var i=e.table(r),l=i.schema,v=l.primaryKey,o=v.extractKey,a=v.outbound,u=ut(ut({},i),{mutate:function(f){var s=f.trans,h=s.mutatedParts||(s.mutatedParts={}),g=function(T){var E="idb://"+t+"/"+r+"/"+T;return h[E]||(h[E]=new Hr)},m=g(""),y=g(":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(cn(w)){b!=="delete"&&(w=T.results),m.addKeys(w);var E=Qw(w,x);!E&&b!=="add"&&y.addKeys(w),(E||S)&&lU(g,l,E,S)}else if(w){var I={from:w.lower,to:w.upper};y.add(I),m.add(I)}else m.add(n),y.add(n),l.indexes.forEach(function(D){return g(D.name).add(n)});return T})}}),d=function(f){var s,h,g=f.query,m=g.index,y=g.range;return[m,new Hr((s=y.lower)!==null&&s!==void 0?s:e.MIN_KEY,(h=y.upper)!==null&&h!==void 0?h:e.MAX_KEY)]},c={get:function(f){return[v,new Hr(f.key)]},getMany:function(f){return[v,new Hr().addKeys(f.keys)]},count:d,query:d,openCursor:d};return Wt(c).forEach(function(f){u[f]=function(s){var h=Ke.subscr;if(h){var g=function(x){var T="idb://"+t+"/"+r+"/"+x;return h[T]||(h[T]=new Hr)},m=g(""),y=g(":dels"),b=c[f](s),_=b[0],w=b[1];if(g(_.name||"").add(w),!_.isPrimaryKey)if(f==="count")y.add(n);else{var S=f==="query"&&a&&s.values&&i.query(ut(ut({},s),{values:!1}));return i[f].apply(this,arguments).then(function(x){if(f==="query"){if(a&&s.values)return S.then(function(D){var N=D.result;return m.addKeys(N),x});var T=s.values?x.result.map(o):x.result;s.values?m.addKeys(T):y.addKeys(T)}else if(f==="openCursor"){var E=x,I=s.values;return E&&Object.create(E,{key:{get:function(){return y.addKey(E.primaryKey),E.key}},primaryKey:{get:function(){var D=E.primaryKey;return y.addKey(D),D}},value:{get:function(){return I&&m.addKey(E.primaryKey),E.value}}})}return x})}}return i[f].apply(this,arguments)}}),u}})}};function lU(e,t,n,r){function i(l){var v=e(l.name||"");function o(u){return u!=null?l.extractKey(u):null}var a=function(u){return l.multiEntry&&cn(u)?u.forEach(function(d){return v.addKey(d)}):v.addKey(u)};(n||r).forEach(function(u,d){var c=n&&o(n[d]),f=r&&o(r[d]);vn(c,f)!==0&&(c!=null&&a(c),f!=null&&a(f))})}t.indexes.forEach(i)}var om=function(){function e(t,n){var r=this;this._middlewares={},this.verno=0;var i=e.dependencies;this._options=n=ut({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 v={dbOpenError:null,isBeingOpened:!1,onReadyBeingFired:null,openComplete:!1,dbReadyResolve:It,dbReadyPromise:null,cancelOpen:It,openCanceller:null,autoSchema:!0,PR1398_maxLoop:3};v.dbReadyPromise=new Be(function(o){v.dbReadyResolve=o}),v.openCanceller=new Be(function(o,a){v.cancelOpen=a}),this._state=v,this.name=t,this.on=Dl(this,"populate","blocked","versionchange","close",{ready:[Kp,It]}),this.on.ready.subscribe=Tw(this.on.ready.subscribe,function(o){return function(a,u){e.vip(function(){var d=r._state;if(d.openComplete)d.dbOpenError||Be.resolve().then(a),u&&o(a);else if(d.onReadyBeingFired)d.onReadyBeingFired.push(a),u&&o(a);else{o(a);var c=r;u||o(function f(){c.on.ready.unsubscribe(a),c.on.ready.unsubscribe(f)})}})}}),this.Collection=S7(this),this.Table=y7(this),this.Transaction=I7(this),this.Version=X7(this),this.WhereClause=A7(this),this.on("versionchange",function(o){o.newVersion>0?console.warn("Another connection wants to upgrade database '"+r.name+"'. Closing db now to resume the upgrade."):console.warn("Another connection wants to delete database '"+r.name+"'. Closing db now to resume the delete request."),r.close()}),this.on("blocked",function(o){!o.newVersion||o.newVersion<o.oldVersion?console.warn("Dexie.delete('"+r.name+"') was blocked"):console.warn("Upgrade '"+r.name+"' blocked by other connection holding version "+o.oldVersion/10)}),this._maxKey=ul(n.IDBKeyRange),this._createTransaction=function(o,a,u,d){return new r.Transaction(o,a,u,r._options.chromeTransactionDurability,d)},this._fireOnBlocked=function(o){r.on("blocked").fire(o),As.filter(function(a){return a.name===r.name&&a!==r&&!a._state.vcFired}).map(function(a){return a.on("versionchange").fire(o)})},this.use(tU),this.use(rU),this.use(sU),this.use(aU),this.vip=Object.create(this,{_vip:{value:!0}}),l.forEach(function(o){return o(r)})}return e.prototype.version=function(t){if(isNaN(t)||t<.1)throw new Ze.Type("Given version is not a positive number");if(t=Math.round(t*10)/10,this.idbdb||this._state.isBeingOpened)throw new Ze.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(F7),r.stores({}),this._state.autoSchema=!1,r)},e.prototype._whenReady=function(t){var n=this;return this.idbdb&&(this._state.openComplete||Ke.letThrough||this._vip)?t():new Be(function(r,i){if(n._state.openComplete)return i(new Ze.DatabaseClosed(n._state.dbOpenError));if(!n._state.isBeingOpened){if(!n._options.autoOpen){i(new Ze.DatabaseClosed);return}n.open().catch(It)}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 v=this._middlewares[n]||(this._middlewares[n]=[]);return v.push({stack:n,create:r,level:i==null?10:i,name:l}),v.sort(function(o,a){return o.level-a.level}),this},e.prototype.unuse=function(t){var n=t.stack,r=t.name,i=t.create;return n&&this._middlewares[n]&&(this._middlewares[n]=this._middlewares[n].filter(function(l){return i?l.create!==i:r?l.name!==r:!1})),this},e.prototype.open=function(){return J7(this)},e.prototype._close=function(){var t=this._state,n=As.indexOf(this);if(n>=0&&As.splice(n,1),this.idbdb){try{this.idbdb.close()}catch{}this._novip.idbdb=null}t.dbReadyPromise=new Be(function(r){t.dbReadyResolve=r}),t.openCanceller=new Be(function(r,i){t.cancelOpen=i})},e.prototype.close=function(){this._close();var t=this._state;this._options.autoOpen=!1,t.dbOpenError=new Ze.DatabaseClosed,t.isBeingOpened&&t.cancelOpen(t.dbOpenError)},e.prototype.delete=function(){var t=this,n=arguments.length>0,r=this._state;return new Be(function(i,l){var v=function(){t.close();var o=t._deps.indexedDB.deleteDatabase(t.name);o.onsuccess=Ft(function(){q7(t._deps,t.name),i()}),o.onerror=vr(l),o.onblocked=t._fireOnBlocked};if(n)throw new Ze.InvalidArgument("Arguments not allowed in db.delete()");r.isBeingOpened?r.dbReadyPromise.then(v):v()})},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 Wt(this._allTables).map(function(n){return t._allTables[n]})},enumerable:!1,configurable:!0}),e.prototype.transaction=function(){var t=Q7.apply(this,arguments);return this._transaction.apply(this,t)},e.prototype._transaction=function(t,n,r){var i=this,l=Ke.trans;(!l||l.db!==this||t.indexOf("!")!==-1)&&(l=null);var v=t.indexOf("?")!==-1;t=t.replace("!","").replace("?","");var o,a;try{if(a=n.map(function(d){var c=d instanceof i.Table?d.name:d;if(typeof c!="string")throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return c}),t=="r"||t===$f)o=$f;else if(t=="rw"||t==Bf)o=Bf;else throw new Ze.InvalidArgument("Invalid transaction mode: "+t);if(l){if(l.mode===$f&&o===Bf)if(v)l=null;else throw new Ze.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");l&&a.forEach(function(d){if(l&&l.storeNames.indexOf(d)===-1)if(v)l=null;else throw new Ze.SubTransaction("Table "+d+" not included in parent transaction.")}),v&&l&&!l.active&&(l=null)}}catch(d){return l?l._promise(null,function(c,f){f(d)}):Kt(d)}var u=Jw.bind(null,this,o,a,l,r);return l?l._promise(o,u,"lock"):Ke.trans?Yo(Ke.transless,function(){return i._whenReady(u)}):this._whenReady(u)},e.prototype.table=function(t){if(!Nn(this._allTables,t))throw new Ze.InvalidTable("Table "+t+" does not exist");return this._allTables[t]},e}(),uU=typeof Symbol<"u"&&"observable"in Symbol?Symbol.observable:"@@observable",cU=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[uU]=function(){return this},e}();function e2(e,t){return Wt(t).forEach(function(n){var r=e[n]||(e[n]=new Hr);gc(r,t[n])}),e}function sm(e){return new cU(function(t){var n=Wp(e);function r(s){n&&Wo();var h=function(){return Hi(e,{subscr:s,trans:null})},g=Ke.trans?Yo(Ke.transless,h):h();return n&&g.then(ii,ii),g}var i=!1,l={},v={},o={get closed(){return i},unsubscribe:function(){i=!0,Yi.storagemutated.unsubscribe(c)}};t.start&&t.start(o);var a=!1,u=!1;function d(){return Wt(v).some(function(s){return l[s]&&oU(l[s],v[s])})}var c=function(s){e2(l,s),d()&&f()},f=function(){if(!(a||i)){l={};var s={},h=r(s);u||(Yi(ll,c),u=!0),a=!0,Promise.resolve(h).then(function(g){a=!1,!i&&(d()?f():(l={},v=s,t.next&&t.next(g)))},function(g){a=!1,t.error&&t.error(g),o.unsubscribe()})}};return f(),o})}var vh;try{vh={indexedDB:$t.indexedDB||$t.mozIndexedDB||$t.webkitIndexedDB||$t.msIndexedDB,IDBKeyRange:$t.IDBKeyRange||$t.webkitIDBKeyRange}}catch{vh={indexedDB:null,IDBKeyRange:null}}var fa=om;Lo(fa,ut(ut({},Jc),{delete:function(e){var t=new fa(e,{addons:[]});return t.delete()},exists:function(e){return new fa(e,{addons:[]}).open().then(function(t){return t.close(),!0}).catch("NoSuchDatabaseError",function(){return!1})},getDatabaseNames:function(e){try{return K7(fa.dependencies).then(e)}catch{return Kt(new Ze.MissingAPI)}},defineClass:function(){function e(t){_n(this,t)}return e},ignoreTransaction:function(e){return Ke.trans?Yo(Ke.transless,e):e()},vip:ph,async:function(e){return function(){try{var t=mh(e.apply(this,arguments));return!t||typeof t.then!="function"?Be.resolve(t):t}catch(n){return Kt(n)}}},spawn:function(e,t,n){try{var r=mh(e.apply(n,t||[]));return!r||typeof r.then!="function"?Be.resolve(r):r}catch(i){return Kt(i)}},currentTransaction:{get:function(){return Ke.trans||null}},waitFor:function(e,t){var n=Be.resolve(typeof e=="function"?fa.ignoreTransaction(e):e).timeout(t||6e4);return Ke.trans?Ke.trans.waitFor(n):n},Promise:Be,debug:{get:function(){return Lr},set:function(e){Iw(e,e==="dexie"?function(){return!0}:Ww)}},derive:Uo,extend:_n,props:Lo,override:Tw,Events:Dl,on:Yi,liveQuery:sm,extendObservabilitySet:e2,getByKeyPath:Zr,setByKeyPath:sr,delByKeyPath:UV,shallowClone:Ow,deepClone:Il,getObjectDiff:im,cmp:vn,asap:kw,minKey:lh,addons:[],connections:As,errnames:Xp,dependencies:vh,semVer:A0,version:A0.split(".").map(function(e){return parseInt(e)}).reduce(function(e,t,n){return e+t/Math.pow(10,n*2)})}));fa.maxKey=ul(fa.dependencies.IDBKeyRange);typeof dispatchEvent<"u"&&typeof addEventListener<"u"&&(Yi(ll,function(e){if(!Kr){var t;Qc?(t=document.createEvent("CustomEvent"),t.initCustomEvent(Ai,!0,!0,e)):t=new CustomEvent(Ai,{detail:e}),Kr=!0,dispatchEvent(t),Kr=!1}}),addEventListener(Ai,function(e){var t=e.detail;Kr||vc(t)}));function vc(e){var t=Kr;try{Kr=!0,Yi.storagemutated.fire(e)}finally{Kr=t}}var Kr=!1;if(typeof BroadcastChannel<"u"){var B0=new BroadcastChannel(Ai);Yi(ll,function(e){Kr||B0.postMessage(e)}),B0.onmessage=function(e){e.data&&vc(e.data)}}else if(typeof self<"u"&&typeof navigator<"u"){Yi(ll,function(e){try{Kr||(typeof localStorage<"u"&&localStorage.setItem(Ai,JSON.stringify({trig:Math.random(),changedParts:e})),typeof self.clients=="object"&&Kd([],self.clients.matchAll({includeUncontrolled:!0}),!0).forEach(function(t){return t.postMessage({type:Ai,changedParts:e})}))}catch{}}),typeof addEventListener<"u"&&addEventListener("storage",function(e){if(e.key===Ai){var t=JSON.parse(e.newValue);t&&vc(t.changedParts)}});var F0=self.document&&navigator.serviceWorker;F0&&F0.addEventListener("message",fU)}function fU(e){var t=e.data;t&&t.type===Ai&&vc(t.changedParts)}Be.rejectionMapper=JV;Iw(Lr,Ww);class dU extends om{constructor(){super("stableui");km(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 Nt=new dU;Nt.open().catch(()=>{Ut().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 fu(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 t2={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 v(u,d){if(!i[u]){if(!r[u]){var c=typeof fu=="function"&&fu;if(!d&&c)return c(u,!0);if(o)return o(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(h){var g=r[u][1][h];return v(g||h)},s,s.exports,n,r,i,l)}return i[u].exports}for(var o=typeof fu=="function"&&fu,a=0;a<l.length;a++)v(l[a]);return v}({1:[function(n,r,i){var l=n("./utils"),v=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.encode=function(a){for(var u,d,c,f,s,h,g,m=[],y=0,b=a.length,_=b,w=l.getTypeOf(a)!=="string";y<a.length;)_=b-y,c=w?(u=a[y++],d=y<b?a[y++]:0,y<b?a[y++]:0):(u=a.charCodeAt(y++),d=y<b?a.charCodeAt(y++):0,y<b?a.charCodeAt(y++):0),f=u>>2,s=(3&u)<<4|d>>4,h=1<_?(15&d)<<2|c>>6:64,g=2<_?63&c:64,m.push(o.charAt(f)+o.charAt(s)+o.charAt(h)+o.charAt(g));return m.join("")},i.decode=function(a){var u,d,c,f,s,h,g=0,m=0,y="data:";if(a.substr(0,y.length)===y)throw new Error("Invalid base64 input, it looks like a data url.");var b,_=3*(a=a.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(a.charAt(a.length-1)===o.charAt(64)&&_--,a.charAt(a.length-2)===o.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=v.uint8array?new Uint8Array(0|_):new Array(0|_);g<a.length;)u=o.indexOf(a.charAt(g++))<<2|(f=o.indexOf(a.charAt(g++)))>>4,d=(15&f)<<4|(s=o.indexOf(a.charAt(g++)))>>2,c=(3&s)<<6|(h=o.indexOf(a.charAt(g++))),b[m++]=u,s!==64&&(b[m++]=d),h!==64&&(b[m++]=c);return b}},{"./support":30,"./utils":32}],2:[function(n,r,i){var l=n("./external"),v=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),a=n("./stream/DataLengthProbe");function u(d,c,f,s,h){this.compressedSize=d,this.uncompressedSize=c,this.crc32=f,this.compression=s,this.compressedContent=h}u.prototype={getContentWorker:function(){var d=new v(l.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new a("data_length")),c=this;return d.on("end",function(){if(this.streamInfo.data_length!==c.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new v(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},u.createWorkerFrom=function(d,c,f){return d.pipe(new o).pipe(new a("uncompressedSize")).pipe(c.compressWorker(f)).pipe(new a("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"),v=function(){for(var o,a=[],u=0;u<256;u++){o=u;for(var d=0;d<8;d++)o=1&o?3988292384^o>>>1:o>>>1;a[u]=o}return a}();r.exports=function(o,a){return o!==void 0&&o.length?l.getTypeOf(o)!=="string"?function(u,d,c,f){var s=v,h=f+c;u^=-1;for(var g=f;g<h;g++)u=u>>>8^s[255&(u^d[g])];return-1^u}(0|a,o,o.length,0):function(u,d,c,f){var s=v,h=f+c;u^=-1;for(var g=f;g<h;g++)u=u>>>8^s[255&(u^d.charCodeAt(g))];return-1^u}(0|a,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,i){i.base64=!1,i.binary=!1,i.dir=!1,i.createFolders=!0,i.date=null,i.compression=null,i.compressionOptions=null,i.comment=null,i.unixPermissions=null,i.dosPermissions=null},{}],6:[function(n,r,i){var l=null;l=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:l}},{lie:37}],7:[function(n,r,i){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",v=n("pako"),o=n("./utils"),a=n("./stream/GenericWorker"),u=l?"uint8array":"array";function d(c,f){a.call(this,"FlateWorker/"+c),this._pako=null,this._pakoAction=c,this._pakoOptions=f,this.meta={}}i.magic="\b\0",o.inherits(d,a),d.prototype.processChunk=function(c){this.meta=c.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(u,c.data),!1)},d.prototype.flush=function(){a.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new v[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 d("Deflate",c)},i.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,i){function l(s,h){var g,m="";for(g=0;g<h;g++)m+=String.fromCharCode(255&s),s>>>=8;return m}function v(s,h,g,m,y,b){var _,w,S=s.file,x=s.compression,T=b!==u.utf8encode,E=o.transformTo("string",b(S.name)),I=o.transformTo("string",u.utf8encode(S.name)),D=S.comment,N=o.transformTo("string",b(D)),L=o.transformTo("string",u.utf8encode(D)),F=I.length!==S.name.length,O=L.length!==D.length,V="",ne="",J="",le=S.dir,M=S.date,U={crc32:0,compressedSize:0,uncompressedSize:0};h&&!g||(U.crc32=s.crc32,U.compressedSize=s.compressedSize,U.uncompressedSize=s.uncompressedSize);var R=0;h&&(R|=8),T||!F&&!O||(R|=2048);var P=0,Q=0;le&&(P|=16),y==="UNIX"?(Q=798,P|=function(A,q){var G=A;return A||(G=q?16893:33204),(65535&G)<<16}(S.unixPermissions,le)):(Q=20,P|=function(A){return 63&(A||0)}(S.dosPermissions)),_=M.getUTCHours(),_<<=6,_|=M.getUTCMinutes(),_<<=5,_|=M.getUTCSeconds()/2,w=M.getUTCFullYear()-1980,w<<=4,w|=M.getUTCMonth()+1,w<<=5,w|=M.getUTCDate(),F&&(ne=l(1,1)+l(d(E),4)+I,V+="up"+l(ne.length,2)+ne),O&&(J=l(1,1)+l(d(N),4)+L,V+="uc"+l(J.length,2)+J);var j="";return j+=`
\0`,j+=l(R,2),j+=x.magic,j+=l(_,2),j+=l(w,2),j+=l(U.crc32,4),j+=l(U.compressedSize,4),j+=l(U.uncompressedSize,4),j+=l(E.length,2),j+=l(V.length,2),{fileRecord:c.LOCAL_FILE_HEADER+j+E+V,dirRecord:c.CENTRAL_FILE_HEADER+l(Q,2)+j+l(N.length,2)+"\0\0\0\0"+l(P,4)+l(m,4)+E+V+N}}var o=n("../utils"),a=n("../stream/GenericWorker"),u=n("../utf8"),d=n("../crc32"),c=n("../signature");function f(s,h,g,m){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=h,this.zipPlatform=g,this.encodeFileName=m,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(f,a),f.prototype.push=function(s){var h=s.meta.percent||0,g=this.entriesCount,m=this._sources.length;this.accumulate?this.contentBuffer.push(s):(this.bytesWritten+=s.data.length,a.prototype.push.call(this,{data:s.data,meta:{currentFile:this.currentFile,percent:g?(h+100*(g-m-1))/g:100}}))},f.prototype.openedSource=function(s){this.currentSourceOffset=this.bytesWritten,this.currentFile=s.file.name;var h=this.streamFiles&&!s.file.dir;if(h){var g=v(s,h,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},f.prototype.closedSource=function(s){this.accumulate=!1;var h=this.streamFiles&&!s.file.dir,g=v(s,h,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),h)this.push({data:function(m){return c.DATA_DESCRIPTOR+l(m.crc32,4)+l(m.compressedSize,4)+l(m.uncompressedSize,4)}(s),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},f.prototype.flush=function(){for(var s=this.bytesWritten,h=0;h<this.dirRecords.length;h++)this.push({data:this.dirRecords[h],meta:{percent:100}});var g=this.bytesWritten-s,m=function(y,b,_,w,S){var x=o.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,g,s,this.zipComment,this.encodeFileName);this.push({data:m,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 h=this;return s.on("data",function(g){h.processChunk(g)}),s.on("end",function(){h.closedSource(h.previous.streamInfo),h._sources.length?h.prepareNextSource():h.end()}),s.on("error",function(g){h.error(g)}),this},f.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},f.prototype.error=function(s){var h=this._sources;if(!a.prototype.error.call(this,s))return!1;for(var g=0;g<h.length;g++)try{h[g].error(s)}catch{}return!0},f.prototype.lock=function(){a.prototype.lock.call(this);for(var s=this._sources,h=0;h<s.length;h++)s[h].lock()},r.exports=f},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,i){var l=n("../compressions"),v=n("./ZipFileWorker");i.generateWorker=function(o,a,u){var d=new v(a.streamFiles,u,a.platform,a.encodeFileName),c=0;try{o.forEach(function(f,s){c++;var h=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,a.compression),g=s.options.compressionOptions||a.compressionOptions||{},m=s.dir,y=s.date;s._compressWorker(h,g).withStreamInfo("file",{name:f,dir:m,date:y,comment:s.comment||"",unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions}).pipe(d)}),d.entriesCount=c}catch(f){d.error(f)}return d}},{"../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 v=new l;for(var o in this)typeof this[o]!="function"&&(v[o]=this[o]);return v}}(l.prototype=n("./object")).loadAsync=n("./load"),l.support=n("./support"),l.defaults=n("./defaults"),l.version="3.10.1",l.loadAsync=function(v,o){return new l().loadAsync(v,o)},l.external=n("./external"),r.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,i){var l=n("./utils"),v=n("./external"),o=n("./utf8"),a=n("./zipEntries"),u=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function c(f){return new v.Promise(function(s,h){var g=f.decompressed.getContentWorker().pipe(new u);g.on("error",function(m){h(m)}).on("end",function(){g.streamInfo.crc32!==f.decompressed.crc32?h(new Error("Corrupted zip : CRC32 mismatch")):s()}).resume()})}r.exports=function(f,s){var h=this;return s=l.extend(s||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),d.isNode&&d.isStream(f)?v.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(g){var m=new a(s);return m.load(g),m}).then(function(g){var m=[v.Promise.resolve(g)],y=g.files;if(s.checkCRC32)for(var b=0;b<y.length;b++)m.push(c(y[b]));return v.Promise.all(m)}).then(function(g){for(var m=g.shift(),y=m.files,b=0;b<y.length;b++){var _=y[b],w=_.fileNameStr,S=l.resolve(_.fileNameStr);h.file(S,_.decompressed,{binary:!0,optimizedBinaryString:!0,date:_.date,dir:_.dir,comment:_.fileCommentStr.length?_.fileCommentStr:null,unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions,createFolders:s.createFolders}),_.dir||(h.file(S).unsafeOriginalName=w)}return m.zipComment.length&&(h.comment=m.zipComment),h})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,i){var l=n("../utils"),v=n("../stream/GenericWorker");function o(a,u){v.call(this,"Nodejs stream input adapter for "+a),this._upstreamEnded=!1,this._bindStream(u)}l.inherits(o,v),o.prototype._bindStream=function(a){var u=this;(this._stream=a).pause(),a.on("data",function(d){u.push({data:d,meta:{percent:0}})}).on("error",function(d){u.isPaused?this.generatedError=d:u.error(d)}).on("end",function(){u.isPaused?u._upstreamEnded=!0:u.end()})},o.prototype.pause=function(){return!!v.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,i){var l=n("readable-stream").Readable;function v(o,a,u){l.call(this,a),this._helper=o;var d=this;o.on("data",function(c,f){d.push(c)||d._helper.pause(),u&&u(f)}).on("error",function(c){d.emit("error",c)}).on("end",function(){d.push(null)})}n("../utils").inherits(v,l),v.prototype._read=function(){this._helper.resume()},r.exports=v},{"../utils":32,"readable-stream":16}],14:[function(n,r,i){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(l,v){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(l,v);if(typeof l=="number")throw new Error('The "data" argument must not be a number');return new Buffer(l,v)},allocBuffer:function(l){if(Buffer.alloc)return Buffer.alloc(l);var v=new Buffer(l);return v.fill(0),v},isBuffer:function(l){return Buffer.isBuffer(l)},isStream:function(l){return l&&typeof l.on=="function"&&typeof l.pause=="function"&&typeof l.resume=="function"}}},{}],15:[function(n,r,i){function l(S,x,T){var E,I=o.getTypeOf(x),D=o.extend(T||{},d);D.date=D.date||new Date,D.compression!==null&&(D.compression=D.compression.toUpperCase()),typeof D.unixPermissions=="string"&&(D.unixPermissions=parseInt(D.unixPermissions,8)),D.unixPermissions&&16384&D.unixPermissions&&(D.dir=!0),D.dosPermissions&&16&D.dosPermissions&&(D.dir=!0),D.dir&&(S=y(S)),D.createFolders&&(E=m(S))&&b.call(this,E,!0);var N=I==="string"&&D.binary===!1&&D.base64===!1;T&&T.binary!==void 0||(D.binary=!N),(x instanceof c&&x.uncompressedSize===0||D.dir||!x||x.length===0)&&(D.base64=!1,D.binary=!0,x="",D.compression="STORE",I="string");var L=null;L=x instanceof c||x instanceof a?x:h.isNode&&h.isStream(x)?new g(S,x):o.prepareContent(S,x,D.binary,D.optimizedBinaryString,D.base64);var F=new f(S,L,D);this.files[S]=F}var v=n("./utf8"),o=n("./utils"),a=n("./stream/GenericWorker"),u=n("./stream/StreamHelper"),d=n("./defaults"),c=n("./compressedObject"),f=n("./zipObject"),s=n("./generate"),h=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),m=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:d.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,E;for(x in this.files)E=this.files[x],(T=x.slice(this.root.length,x.length))&&x.slice(0,this.root.length)===this.root&&S(T,E)},filter:function(S){var x=[];return this.forEach(function(T,E){S(T,E)&&x.push(E)}),x},file:function(S,x,T){if(arguments.length!==1)return S=this.root+S,l.call(this,S,x,T),this;if(_(S)){var E=S;return this.filter(function(D,N){return!N.dir&&E.test(D)})}var I=this.files[this.root+S];return I&&!I.dir?I:null},folder:function(S){if(!S)return this;if(_(S))return this.filter(function(I,D){return D.dir&&S.test(I)});var x=this.root+S,T=b.call(this,x),E=this.clone();return E.root=T.name,E},remove:function(S){S=this.root+S;var x=this.files[S];if(x||(S.slice(-1)!=="/"&&(S+="/"),x=this.files[S]),x&&!x.dir)delete this.files[S];else for(var T=this.filter(function(I,D){return D.name.slice(0,S.length)===S}),E=0;E<T.length;E++)delete this.files[T[E].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var x,T={};try{if((T=o.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:v.utf8encode})).type=T.type.toLowerCase(),T.compression=T.compression.toUpperCase(),T.type==="binarystring"&&(T.type="string"),!T.type)throw new Error("No output type specified.");o.checkSupport(T.type),T.platform!=="darwin"&&T.platform!=="freebsd"&&T.platform!=="linux"&&T.platform!=="sunos"||(T.platform="UNIX"),T.platform==="win32"&&(T.platform="DOS");var E=T.comment||this.comment||"";x=s.generateWorker(this,T,E)}catch(I){(x=new a("error")).error(I)}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 v(o){l.call(this,o);for(var a=0;a<this.data.length;a++)o[a]=255&o[a]}n("../utils").inherits(v,l),v.prototype.byteAt=function(o){return this.data[this.zero+o]},v.prototype.lastIndexOfSignature=function(o){for(var a=o.charCodeAt(0),u=o.charCodeAt(1),d=o.charCodeAt(2),c=o.charCodeAt(3),f=this.length-4;0<=f;--f)if(this.data[f]===a&&this.data[f+1]===u&&this.data[f+2]===d&&this.data[f+3]===c)return f-this.zero;return-1},v.prototype.readAndCheckSignature=function(o){var a=o.charCodeAt(0),u=o.charCodeAt(1),d=o.charCodeAt(2),c=o.charCodeAt(3),f=this.readData(4);return a===f[0]&&u===f[1]&&d===f[2]&&c===f[3]},v.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=v},{"../utils":32,"./DataReader":18}],18:[function(n,r,i){var l=n("../utils");function v(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}v.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var a,u=0;for(this.checkOffset(o),a=this.index+o-1;a>=this.index;a--)u=(u<<8)+this.byteAt(a);return this.index+=o,u},readString:function(o){return l.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},r.exports=v},{"../utils":32}],19:[function(n,r,i){var l=n("./Uint8ArrayReader");function v(o){l.call(this,o)}n("../utils").inherits(v,l),v.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=v},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,i){var l=n("./DataReader");function v(o){l.call(this,o)}n("../utils").inherits(v,l),v.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},v.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},v.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},v.prototype.readData=function(o){this.checkOffset(o);var a=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=v},{"../utils":32,"./DataReader":18}],21:[function(n,r,i){var l=n("./ArrayReader");function v(o){l.call(this,o)}n("../utils").inherits(v,l),v.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var a=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,a},r.exports=v},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,i){var l=n("../utils"),v=n("../support"),o=n("./ArrayReader"),a=n("./StringReader"),u=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(c){var f=l.getTypeOf(c);return l.checkSupport(f),f!=="string"||v.uint8array?f==="nodebuffer"?new u(c):v.uint8array?new d(l.transformTo("uint8array",c)):new o(l.transformTo("array",c)):new a(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"),v=n("../utils");function o(a){l.call(this,"ConvertWorker to "+a),this.destType=a}v.inherits(o,l),o.prototype.processChunk=function(a){this.push({data:v.transformTo(this.destType,a.data),meta:a.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,i){var l=n("./GenericWorker"),v=n("../crc32");function o(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,l),o.prototype.processChunk=function(a){this.streamInfo.crc32=v(a.data,this.streamInfo.crc32||0),this.push(a)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,i){var l=n("../utils"),v=n("./GenericWorker");function o(a){v.call(this,"DataLengthProbe for "+a),this.propName=a,this.withStreamInfo(a,0)}l.inherits(o,v),o.prototype.processChunk=function(a){if(a){var u=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=u+a.data.length}v.prototype.processChunk.call(this,a)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,i){var l=n("../utils"),v=n("./GenericWorker");function o(a){v.call(this,"DataWorker");var u=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,a.then(function(d){u.dataIsReady=!0,u.data=d,u.max=d&&d.length||0,u.type=l.getTypeOf(d),u.isPaused||u._tickAndRepeat()},function(d){u.error(d)})}l.inherits(o,v),o.prototype.cleanUp=function(){v.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!v.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var a=null,u=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":a=this.data.substring(this.index,u);break;case"uint8array":a=this.data.subarray(this.index,u);break;case"array":case"nodebuffer":a=this.data.slice(this.index,u)}return this.index=u,this.push({data:a,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,i){function l(v){this.name=v||"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(v){this.emit("data",v)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(v){this.emit("error",v)}return!0},error:function(v){return!this.isFinished&&(this.isPaused?this.generatedError=v:(this.isFinished=!0,this.emit("error",v),this.previous&&this.previous.error(v),this.cleanUp()),!0)},on:function(v,o){return this._listeners[v].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(v,o){if(this._listeners[v])for(var a=0;a<this._listeners[v].length;a++)this._listeners[v][a].call(this,o)},pipe:function(v){return v.registerPrevious(this)},registerPrevious:function(v){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=v.streamInfo,this.mergeStreamInfo(),this.previous=v;var o=this;return v.on("data",function(a){o.processChunk(a)}),v.on("end",function(){o.end()}),v.on("error",function(a){o.error(a)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var v=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),v=!0),this.previous&&this.previous.resume(),!v},flush:function(){},processChunk:function(v){this.push(v)},withStreamInfo:function(v,o){return this.extraStreamInfo[v]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var v in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,v)&&(this.streamInfo[v]=this.extraStreamInfo[v])},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 v="Worker "+this.name;return this.previous?this.previous+" -> "+v:v}},r.exports=l},{}],29:[function(n,r,i){var l=n("../utils"),v=n("./ConvertWorker"),o=n("./GenericWorker"),a=n("../base64"),u=n("../support"),d=n("../external"),c=null;if(u.nodestream)try{c=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function f(h,g){return new d.Promise(function(m,y){var b=[],_=h._internalType,w=h._outputType,S=h._mimeType;h.on("data",function(x,T){b.push(x),g&&g(T)}).on("error",function(x){b=[],y(x)}).on("end",function(){try{var x=function(T,E,I){switch(T){case"blob":return l.newBlob(l.transformTo("arraybuffer",E),I);case"base64":return a.encode(E);default:return l.transformTo(T,E)}}(w,function(T,E){var I,D=0,N=null,L=0;for(I=0;I<E.length;I++)L+=E[I].length;switch(T){case"string":return E.join("");case"array":return Array.prototype.concat.apply([],E);case"uint8array":for(N=new Uint8Array(L),I=0;I<E.length;I++)N.set(E[I],D),D+=E[I].length;return N;case"nodebuffer":return Buffer.concat(E);default:throw new Error("concat : unsupported type '"+T+"'")}}(_,b),S);m(x)}catch(T){y(T)}b=[]}).resume()})}function s(h,g,m){var y=g;switch(g){case"blob":case"arraybuffer":y="uint8array";break;case"base64":y="string"}try{this._internalType=y,this._outputType=g,this._mimeType=m,l.checkSupport(y),this._worker=h.pipe(new v(y)),h.lock()}catch(b){this._worker=new o("error"),this._worker.error(b)}}s.prototype={accumulate:function(h){return f(this,h)},on:function(h,g){var m=this;return h==="data"?this._worker.on(h,function(y){g.call(m,y.data,y.meta)}):this._worker.on(h,function(){l.delay(g,arguments,m)}),this},resume:function(){return l.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(h){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"},h)}},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 v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);v.append(l),i.blob=v.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"),v=n("./support"),o=n("./nodejsUtils"),a=n("./stream/GenericWorker"),u=new Array(256),d=0;d<256;d++)u[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;u[254]=u[254]=1;function c(){a.call(this,"utf-8 decode"),this.leftOver=null}function f(){a.call(this,"utf-8 encode")}i.utf8encode=function(s){return v.nodebuffer?o.newBufferFrom(s,"utf-8"):function(h){var g,m,y,b,_,w=h.length,S=0;for(b=0;b<w;b++)(64512&(m=h.charCodeAt(b)))==55296&&b+1<w&&(64512&(y=h.charCodeAt(b+1)))==56320&&(m=65536+(m-55296<<10)+(y-56320),b++),S+=m<128?1:m<2048?2:m<65536?3:4;for(g=v.uint8array?new Uint8Array(S):new Array(S),b=_=0;_<S;b++)(64512&(m=h.charCodeAt(b)))==55296&&b+1<w&&(64512&(y=h.charCodeAt(b+1)))==56320&&(m=65536+(m-55296<<10)+(y-56320),b++),m<128?g[_++]=m:(m<2048?g[_++]=192|m>>>6:(m<65536?g[_++]=224|m>>>12:(g[_++]=240|m>>>18,g[_++]=128|m>>>12&63),g[_++]=128|m>>>6&63),g[_++]=128|63&m);return g}(s)},i.utf8decode=function(s){return v.nodebuffer?l.transformTo("nodebuffer",s).toString("utf-8"):function(h){var g,m,y,b,_=h.length,w=new Array(2*_);for(g=m=0;g<_;)if((y=h[g++])<128)w[m++]=y;else if(4<(b=u[y]))w[m++]=65533,g+=b-1;else{for(y&=b===2?31:b===3?15:7;1<b&&g<_;)y=y<<6|63&h[g++],b--;1<b?w[m++]=65533:y<65536?w[m++]=y:(y-=65536,w[m++]=55296|y>>10&1023,w[m++]=56320|1023&y)}return w.length!==m&&(w.subarray?w=w.subarray(0,m):w.length=m),l.applyFromCharCode(w)}(s=l.transformTo(v.uint8array?"uint8array":"array",s))},l.inherits(c,a),c.prototype.processChunk=function(s){var h=l.transformTo(v.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(v.uint8array){var g=h;(h=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),h.set(g,this.leftOver.length)}else h=this.leftOver.concat(h);this.leftOver=null}var m=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:_}(h),y=h;m!==h.length&&(v.uint8array?(y=h.subarray(0,m),this.leftOver=h.subarray(m,h.length)):(y=h.slice(0,m),this.leftOver=h.slice(m,h.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,a),f.prototype.processChunk=function(s){this.push({data:i.utf8encode(s.data),meta:s.meta})},i.Utf8EncodeWorker=f},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,i){var l=n("./support"),v=n("./base64"),o=n("./nodejsUtils"),a=n("./external");function u(g){return g}function d(g,m){for(var y=0;y<g.length;++y)m[y]=255&g.charCodeAt(y);return m}n("setimmediate"),i.newBlob=function(g,m){i.checkSupport("blob");try{return new Blob([g],{type:m})}catch{try{var y=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return y.append(g),y.getBlob(m)}catch{throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(g,m,y){var b=[],_=0,w=g.length;if(w<=y)return String.fromCharCode.apply(null,g);for(;_<w;)m==="array"||m==="nodebuffer"?b.push(String.fromCharCode.apply(null,g.slice(_,Math.min(_+y,w)))):b.push(String.fromCharCode.apply(null,g.subarray(_,Math.min(_+y,w)))),_+=y;return b.join("")},stringifyByChar:function(g){for(var m="",y=0;y<g.length;y++)m+=String.fromCharCode(g[y]);return m},applyCanBeUsed:{uint8array:function(){try{return l.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return l.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}}()}};function f(g){var m=65536,y=i.getTypeOf(g),b=!0;if(y==="uint8array"?b=c.applyCanBeUsed.uint8array:y==="nodebuffer"&&(b=c.applyCanBeUsed.nodebuffer),b)for(;1<m;)try{return c.stringifyByChunk(g,y,m)}catch{m=Math.floor(m/2)}return c.stringifyByChar(g)}function s(g,m){for(var y=0;y<g.length;y++)m[y]=g[y];return m}i.applyFromCharCode=f;var h={};h.string={string:u,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return h.string.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:function(g){return d(g,o.allocBuffer(g.length))}},h.array={string:f,array:u,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(g)}},h.arraybuffer={string:function(g){return f(new Uint8Array(g))},array:function(g){return s(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:u,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(new Uint8Array(g))}},h.uint8array={string:f,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:u,nodebuffer:function(g){return o.newBufferFrom(g)}},h.nodebuffer={string:f,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return h.nodebuffer.uint8array(g).buffer},uint8array:function(g){return s(g,new Uint8Array(g.length))},nodebuffer:u},i.transformTo=function(g,m){if(m=m||"",!g)return m;i.checkSupport(g);var y=i.getTypeOf(m);return h[y][g](m)},i.resolve=function(g){for(var m=g.split("/"),y=[],b=0;b<m.length;b++){var _=m[b];_==="."||_===""&&b!==0&&b!==m.length-1||(_===".."?y.pop():y.push(_))}return y.join("/")},i.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":l.nodebuffer&&o.isBuffer(g)?"nodebuffer":l.uint8array&&g instanceof Uint8Array?"uint8array":l.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},i.checkSupport=function(g){if(!l[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},i.MAX_VALUE_16BITS=65535,i.MAX_VALUE_32BITS=-1,i.pretty=function(g){var m,y,b="";for(y=0;y<(g||"").length;y++)b+="\\x"+((m=g.charCodeAt(y))<16?"0":"")+m.toString(16).toUpperCase();return b},i.delay=function(g,m,y){setImmediate(function(){g.apply(y||null,m||[])})},i.inherits=function(g,m){function y(){}y.prototype=m.prototype,g.prototype=new y},i.extend=function(){var g,m,y={};for(g=0;g<arguments.length;g++)for(m in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],m)&&y[m]===void 0&&(y[m]=arguments[g][m]);return y},i.prepareContent=function(g,m,y,b,_){return a.Promise.resolve(m).then(function(w){return l.blob&&(w instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(w))!==-1)&&typeof FileReader<"u"?new a.Promise(function(S,x){var T=new FileReader;T.onload=function(E){S(E.target.result)},T.onerror=function(E){x(E.target.error)},T.readAsArrayBuffer(w)}):w}).then(function(w){var S=i.getTypeOf(w);return S?(S==="arraybuffer"?w=i.transformTo("uint8array",w):S==="string"&&(_?w=v.decode(w):y&&b!==!0&&(w=function(x){return d(x,l.uint8array?new Uint8Array(x.length):new Array(x.length))}(w))),w):a.Promise.reject(new Error("Can't read the data of '"+g+"'. 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"),v=n("./utils"),o=n("./signature"),a=n("./zipEntry"),u=n("./support");function d(c){this.files=[],this.loadOptions=c}d.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 ("+v.pretty(f)+", expected "+v.pretty(c)+")")}},isSignature:function(c,f){var s=this.reader.index;this.reader.setIndex(c);var h=this.reader.readString(4)===f;return this.reader.setIndex(s),h},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=v.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,h=this.zip64EndOfCentralSize-44;0<h;)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(o.LOCAL_FILE_HEADER),f.readLocalPart(this.reader),f.handleUTF8(),f.processAttributes()},readCentralDir:function(){var c;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(c=new a({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(o.CENTRAL_DIRECTORY_END);if(c<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(c);var f=c;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===v.MAX_VALUE_16BITS||this.diskWithCentralDirStart===v.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===v.MAX_VALUE_16BITS||this.centralDirRecords===v.MAX_VALUE_16BITS||this.centralDirSize===v.MAX_VALUE_32BITS||this.centralDirOffset===v.MAX_VALUE_32BITS){if(this.zip64=!0,(c=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(c),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var s=this.centralDirOffset+this.centralDirSize;this.zip64&&(s+=20,s+=12+this.zip64EndOfCentralSize);var h=f-s;if(0<h)this.isSignature(f,o.CENTRAL_FILE_HEADER)||(this.reader.zero=h);else if(h<0)throw new Error("Corrupted zip: missing "+Math.abs(h)+" bytes.")},prepareReader:function(c){this.reader=l(c)},load:function(c){this.prepareReader(c),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,i){var l=n("./reader/readerFor"),v=n("./utils"),o=n("./compressedObject"),a=n("./crc32"),u=n("./utf8"),d=n("./compressions"),c=n("./support");function f(s,h){this.options=s,this.loadOptions=h}f.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(s){var h,g;if(s.skip(22),this.fileNameLength=s.readInt(2),g=s.readInt(2),this.fileName=s.readData(this.fileNameLength),s.skip(g),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((h=function(m){for(var y in d)if(Object.prototype.hasOwnProperty.call(d,y)&&d[y].magic===m)return d[y];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+v.pretty(this.compressionMethod)+" unknown (inner file : "+v.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,h,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 h=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(h),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===v.MAX_VALUE_32BITS&&(this.uncompressedSize=s.readInt(8)),this.compressedSize===v.MAX_VALUE_32BITS&&(this.compressedSize=s.readInt(8)),this.localHeaderOffset===v.MAX_VALUE_32BITS&&(this.localHeaderOffset=s.readInt(8)),this.diskNumberStart===v.MAX_VALUE_32BITS&&(this.diskNumberStart=s.readInt(4))}},readExtraFields:function(s){var h,g,m,y=s.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});s.index+4<y;)h=s.readInt(2),g=s.readInt(2),m=s.readData(g),this.extraFields[h]={id:h,length:g,value:m};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 h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var g=v.transformTo(s,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var m=this.findExtraFieldUnicodeComment();if(m!==null)this.fileCommentStr=m;else{var y=v.transformTo(s,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(y)}}},findExtraFieldUnicodePath:function(){var s=this.extraFields[28789];if(s){var h=l(s.value);return h.readInt(1)!==1||a(this.fileName)!==h.readInt(4)?null:u.utf8decode(h.readData(s.length-5))}return null},findExtraFieldUnicodeComment:function(){var s=this.extraFields[25461];if(s){var h=l(s.value);return h.readInt(1)!==1||a(this.fileComment)!==h.readInt(4)?null:u.utf8decode(h.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(h,g,m){this.name=h,this.dir=m.dir,this.date=m.date,this.comment=m.comment,this.unixPermissions=m.unixPermissions,this.dosPermissions=m.dosPermissions,this._data=g,this._dataBinary=m.binary,this.options={compression:m.compression,compressionOptions:m.compressionOptions}}var v=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),a=n("./utf8"),u=n("./compressedObject"),d=n("./stream/GenericWorker");l.prototype={internalStream:function(h){var g=null,m="string";try{if(!h)throw new Error("No output type specified.");var y=(m=h.toLowerCase())==="string"||m==="text";m!=="binarystring"&&m!=="text"||(m="string"),g=this._decompressWorker();var b=!this._dataBinary;b&&!y&&(g=g.pipe(new a.Utf8EncodeWorker)),!b&&y&&(g=g.pipe(new a.Utf8DecodeWorker))}catch(_){(g=new d("error")).error(_)}return new v(g,m,"")},async:function(h,g){return this.internalStream(h).accumulate(g)},nodeStream:function(h,g){return this.internalStream(h||"nodebuffer").toNodejsStream(g)},_compressWorker:function(h,g){if(this._data instanceof u&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var m=this._decompressWorker();return this._dataBinary||(m=m.pipe(new a.Utf8EncodeWorker)),u.createWorkerFrom(m,h,g)},_decompressWorker:function(){return this._data instanceof u?this._data.getContentWorker():this._data instanceof d?this._data:new o(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 v,o,a=l.MutationObserver||l.WebKitMutationObserver;if(a){var u=0,d=new a(h),c=l.document.createTextNode("");d.observe(c,{characterData:!0}),v=function(){c.data=u=++u%2}}else if(l.setImmediate||l.MessageChannel===void 0)v="document"in l&&"onreadystatechange"in l.document.createElement("script")?function(){var g=l.document.createElement("script");g.onreadystatechange=function(){h(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},l.document.documentElement.appendChild(g)}:function(){setTimeout(h,0)};else{var f=new l.MessageChannel;f.port1.onmessage=h,v=function(){f.port2.postMessage(0)}}var s=[];function h(){var g,m;o=!0;for(var y=s.length;y;){for(m=s,s=[],g=-1;++g<y;)m[g]();y=s.length}o=!1}r.exports=function(g){s.push(g)!==1||o||v()}}).call(this,typeof nu<"u"?nu:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,i){var l=n("immediate");function v(){}var o={},a=["REJECTED"],u=["FULFILLED"],d=["PENDING"];function c(y){if(typeof y!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,y!==v&&g(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 o.reject(y,S)}w===y?o.reject(y,new TypeError("Cannot resolve promise with itself")):o.resolve(y,w)})}function h(y){var b=y&&y.then;if(y&&(typeof y=="object"||typeof y=="function")&&typeof b=="function")return function(){b.apply(y,arguments)}}function g(y,b){var _=!1;function w(T){_||(_=!0,o.reject(y,T))}function S(T){_||(_=!0,o.resolve(y,T))}var x=m(function(){b(S,w)});x.status==="error"&&w(x.value)}function m(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===a)return this;var _=new this.constructor(v);return this.state!==d?s(_,this.state===u?y:b,this.outcome):this.queue.push(new f(_,y,b)),_},f.prototype.callFulfilled=function(y){o.resolve(this.promise,y)},f.prototype.otherCallFulfilled=function(y){s(this.promise,this.onFulfilled,y)},f.prototype.callRejected=function(y){o.reject(this.promise,y)},f.prototype.otherCallRejected=function(y){s(this.promise,this.onRejected,y)},o.resolve=function(y,b){var _=m(h,b);if(_.status==="error")return o.reject(y,_.value);var w=_.value;if(w)g(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},o.reject=function(y,b){y.state=a,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:o.resolve(new this(v),y)},c.reject=function(y){var b=new this(v);return o.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,E=new this(v);++T<_;)I(y[T],T);return E;function I(D,N){b.resolve(D).then(function(L){S[N]=L,++x!==_||w||(w=!0,o.resolve(E,S))},function(L){w||(w=!0,o.reject(E,L))})}},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(v);++S<_;)T=y[S],b.resolve(T).then(function(E){w||(w=!0,o.resolve(x,E))},function(E){w||(w=!0,o.reject(x,E))});var T;return x}},{immediate:36}],38:[function(n,r,i){var l={};(0,n("./lib/utils/common").assign)(l,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,i){var l=n("./zlib/deflate"),v=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/messages"),u=n("./zlib/zstream"),d=Object.prototype.toString,c=0,f=-1,s=0,h=8;function g(y){if(!(this instanceof g))return new g(y);this.options=v.assign({level:f,method:h,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(a[_]);if(b.header&&l.deflateSetHeader(this.strm,b.header),b.dictionary){var w;if(w=typeof b.dictionary=="string"?o.string2buf(b.dictionary):d.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(_=l.deflateSetDictionary(this.strm,w))!==c)throw new Error(a[_]);this._dict_set=!0}}function m(y,b){var _=new g(b);if(_.push(y,!0),_.err)throw _.msg||a[_.err];return _.result}g.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=o.string2buf(y):d.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 v.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(o.buf2binstring(v.shrinkBuf(S.output,S.next_out))):this.onData(v.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))},g.prototype.onData=function(y){this.chunks.push(y)},g.prototype.onEnd=function(y){y===c&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=y,this.msg=this.strm.msg},i.Deflate=g,i.deflate=m,i.deflateRaw=function(y,b){return(b=b||{}).raw=!0,m(y,b)},i.gzip=function(y,b){return(b=b||{}).gzip=!0,m(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"),v=n("./utils/common"),o=n("./utils/strings"),a=n("./zlib/constants"),u=n("./zlib/messages"),d=n("./zlib/zstream"),c=n("./zlib/gzheader"),f=Object.prototype.toString;function s(g){if(!(this instanceof s))return new s(g);this.options=v.assign({chunkSize:16384,windowBits:0,to:""},g||{});var m=this.options;m.raw&&0<=m.windowBits&&m.windowBits<16&&(m.windowBits=-m.windowBits,m.windowBits===0&&(m.windowBits=-15)),!(0<=m.windowBits&&m.windowBits<16)||g&&g.windowBits||(m.windowBits+=32),15<m.windowBits&&m.windowBits<48&&(15&m.windowBits)==0&&(m.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var y=l.inflateInit2(this.strm,m.windowBits);if(y!==a.Z_OK)throw new Error(u[y]);this.header=new c,l.inflateGetHeader(this.strm,this.header)}function h(g,m){var y=new s(m);if(y.push(g,!0),y.err)throw y.msg||u[y.err];return y.result}s.prototype.push=function(g,m){var y,b,_,w,S,x,T=this.strm,E=this.options.chunkSize,I=this.options.dictionary,D=!1;if(this.ended)return!1;b=m===~~m?m:m===!0?a.Z_FINISH:a.Z_NO_FLUSH,typeof g=="string"?T.input=o.binstring2buf(g):f.call(g)==="[object ArrayBuffer]"?T.input=new Uint8Array(g):T.input=g,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new v.Buf8(E),T.next_out=0,T.avail_out=E),(y=l.inflate(T,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&I&&(x=typeof I=="string"?o.string2buf(I):f.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,y=l.inflateSetDictionary(this.strm,x)),y===a.Z_BUF_ERROR&&D===!0&&(y=a.Z_OK,D=!1),y!==a.Z_STREAM_END&&y!==a.Z_OK)return this.onEnd(y),!(this.ended=!0);T.next_out&&(T.avail_out!==0&&y!==a.Z_STREAM_END&&(T.avail_in!==0||b!==a.Z_FINISH&&b!==a.Z_SYNC_FLUSH)||(this.options.to==="string"?(_=o.utf8border(T.output,T.next_out),w=T.next_out-_,S=o.buf2string(T.output,_),T.next_out=w,T.avail_out=E-w,w&&v.arraySet(T.output,T.output,_,w,0),this.onData(S)):this.onData(v.shrinkBuf(T.output,T.next_out)))),T.avail_in===0&&T.avail_out===0&&(D=!0)}while((0<T.avail_in||T.avail_out===0)&&y!==a.Z_STREAM_END);return y===a.Z_STREAM_END&&(b=a.Z_FINISH),b===a.Z_FINISH?(y=l.inflateEnd(this.strm),this.onEnd(y),this.ended=!0,y===a.Z_OK):b!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(T.avail_out=0))},s.prototype.onData=function(g){this.chunks.push(g)},s.prototype.onEnd=function(g){g===a.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=v.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},i.Inflate=s,i.inflate=h,i.inflateRaw=function(g,m){return(m=m||{}).raw=!0,h(g,m)},i.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,i){var l=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";i.assign=function(a){for(var u=Array.prototype.slice.call(arguments,1);u.length;){var d=u.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var c in d)d.hasOwnProperty(c)&&(a[c]=d[c])}}return a},i.shrinkBuf=function(a,u){return a.length===u?a:a.subarray?a.subarray(0,u):(a.length=u,a)};var v={arraySet:function(a,u,d,c,f){if(u.subarray&&a.subarray)a.set(u.subarray(d,d+c),f);else for(var s=0;s<c;s++)a[f+s]=u[d+s]},flattenChunks:function(a){var u,d,c,f,s,h;for(u=c=0,d=a.length;u<d;u++)c+=a[u].length;for(h=new Uint8Array(c),u=f=0,d=a.length;u<d;u++)s=a[u],h.set(s,f),f+=s.length;return h}},o={arraySet:function(a,u,d,c,f){for(var s=0;s<c;s++)a[f+s]=u[d+s]},flattenChunks:function(a){return[].concat.apply([],a)}};i.setTyped=function(a){a?(i.Buf8=Uint8Array,i.Buf16=Uint16Array,i.Buf32=Int32Array,i.assign(i,v)):(i.Buf8=Array,i.Buf16=Array,i.Buf32=Array,i.assign(i,o))},i.setTyped(l)},{}],42:[function(n,r,i){var l=n("./common"),v=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{v=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var a=new l.Buf8(256),u=0;u<256;u++)a[u]=252<=u?6:248<=u?5:240<=u?4:224<=u?3:192<=u?2:1;function d(c,f){if(f<65537&&(c.subarray&&o||!c.subarray&&v))return String.fromCharCode.apply(null,l.shrinkBuf(c,f));for(var s="",h=0;h<f;h++)s+=String.fromCharCode(c[h]);return s}a[254]=a[254]=1,i.string2buf=function(c){var f,s,h,g,m,y=c.length,b=0;for(g=0;g<y;g++)(64512&(s=c.charCodeAt(g)))==55296&&g+1<y&&(64512&(h=c.charCodeAt(g+1)))==56320&&(s=65536+(s-55296<<10)+(h-56320),g++),b+=s<128?1:s<2048?2:s<65536?3:4;for(f=new l.Buf8(b),g=m=0;m<b;g++)(64512&(s=c.charCodeAt(g)))==55296&&g+1<y&&(64512&(h=c.charCodeAt(g+1)))==56320&&(s=65536+(s-55296<<10)+(h-56320),g++),s<128?f[m++]=s:(s<2048?f[m++]=192|s>>>6:(s<65536?f[m++]=224|s>>>12:(f[m++]=240|s>>>18,f[m++]=128|s>>>12&63),f[m++]=128|s>>>6&63),f[m++]=128|63&s);return f},i.buf2binstring=function(c){return d(c,c.length)},i.binstring2buf=function(c){for(var f=new l.Buf8(c.length),s=0,h=f.length;s<h;s++)f[s]=c.charCodeAt(s);return f},i.buf2string=function(c,f){var s,h,g,m,y=f||c.length,b=new Array(2*y);for(s=h=0;s<y;)if((g=c[s++])<128)b[h++]=g;else if(4<(m=a[g]))b[h++]=65533,s+=m-1;else{for(g&=m===2?31:m===3?15:7;1<m&&s<y;)g=g<<6|63&c[s++],m--;1<m?b[h++]=65533:g<65536?b[h++]=g:(g-=65536,b[h++]=55296|g>>10&1023,b[h++]=56320|1023&g)}return d(b,h)},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+a[c[s]]>f?s:f}},{"./common":41}],43:[function(n,r,i){r.exports=function(l,v,o,a){for(var u=65535&l|0,d=l>>>16&65535|0,c=0;o!==0;){for(o-=c=2e3<o?2e3:o;d=d+(u=u+v[a++]|0)|0,--c;);u%=65521,d%=65521}return u|d<<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 v,o=[],a=0;a<256;a++){v=a;for(var u=0;u<8;u++)v=1&v?3988292384^v>>>1:v>>>1;o[a]=v}return o}();r.exports=function(v,o,a,u){var d=l,c=u+a;v^=-1;for(var f=u;f<c;f++)v=v>>>8^d[255&(v^o[f])];return-1^v}},{}],46:[function(n,r,i){var l,v=n("../utils/common"),o=n("./trees"),a=n("./adler32"),u=n("./crc32"),d=n("./messages"),c=0,f=4,s=0,h=-2,g=-1,m=4,y=2,b=8,_=9,w=286,S=30,x=19,T=2*w+1,E=15,I=3,D=258,N=D+I+1,L=42,F=113,O=1,V=2,ne=3,J=4;function le(k,X){return k.msg=d[X],X}function M(k){return(k<<1)-(4<k?9:0)}function U(k){for(var X=k.length;0<=--X;)k[X]=0}function R(k){var X=k.state,Y=X.pending;Y>k.avail_out&&(Y=k.avail_out),Y!==0&&(v.arraySet(k.output,X.pending_buf,X.pending_out,Y,k.next_out),k.next_out+=Y,X.pending_out+=Y,k.total_out+=Y,k.avail_out-=Y,X.pending-=Y,X.pending===0&&(X.pending_out=0))}function P(k,X){o._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,X),k.block_start=k.strstart,R(k.strm)}function Q(k,X){k.pending_buf[k.pending++]=X}function j(k,X){k.pending_buf[k.pending++]=X>>>8&255,k.pending_buf[k.pending++]=255&X}function A(k,X){var Y,$,B=k.max_chain_length,K=k.strstart,ce=k.prev_length,ie=k.nice_match,Z=k.strstart>k.w_size-N?k.strstart-(k.w_size-N):0,me=k.window,ae=k.w_mask,ge=k.prev,Ce=k.strstart+D,ke=me[K+ce-1],Oe=me[K+ce];k.prev_length>=k.good_match&&(B>>=2),ie>k.lookahead&&(ie=k.lookahead);do if(me[(Y=X)+ce]===Oe&&me[Y+ce-1]===ke&&me[Y]===me[K]&&me[++Y]===me[K+1]){K+=2,Y++;do;while(me[++K]===me[++Y]&&me[++K]===me[++Y]&&me[++K]===me[++Y]&&me[++K]===me[++Y]&&me[++K]===me[++Y]&&me[++K]===me[++Y]&&me[++K]===me[++Y]&&me[++K]===me[++Y]&&K<Ce);if($=D-(Ce-K),K=Ce-D,ce<$){if(k.match_start=X,ie<=(ce=$))break;ke=me[K+ce-1],Oe=me[K+ce]}}while((X=ge[X&ae])>Z&&--B!=0);return ce<=k.lookahead?ce:k.lookahead}function q(k){var X,Y,$,B,K,ce,ie,Z,me,ae,ge=k.w_size;do{if(B=k.window_size-k.lookahead-k.strstart,k.strstart>=ge+(ge-N)){for(v.arraySet(k.window,k.window,ge,ge,0),k.match_start-=ge,k.strstart-=ge,k.block_start-=ge,X=Y=k.hash_size;$=k.head[--X],k.head[X]=ge<=$?$-ge:0,--Y;);for(X=Y=ge;$=k.prev[--X],k.prev[X]=ge<=$?$-ge:0,--Y;);B+=ge}if(k.strm.avail_in===0)break;if(ce=k.strm,ie=k.window,Z=k.strstart+k.lookahead,me=B,ae=void 0,ae=ce.avail_in,me<ae&&(ae=me),Y=ae===0?0:(ce.avail_in-=ae,v.arraySet(ie,ce.input,ce.next_in,ae,Z),ce.state.wrap===1?ce.adler=a(ce.adler,ie,ae,Z):ce.state.wrap===2&&(ce.adler=u(ce.adler,ie,ae,Z)),ce.next_in+=ae,ce.total_in+=ae,ae),k.lookahead+=Y,k.lookahead+k.insert>=I)for(K=k.strstart-k.insert,k.ins_h=k.window[K],k.ins_h=(k.ins_h<<k.hash_shift^k.window[K+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[K+I-1])&k.hash_mask,k.prev[K&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=K,K++,k.insert--,!(k.lookahead+k.insert<I)););}while(k.lookahead<N&&k.strm.avail_in!==0)}function G(k,X){for(var Y,$;;){if(k.lookahead<N){if(q(k),k.lookahead<N&&X===c)return O;if(k.lookahead===0)break}if(Y=0,k.lookahead>=I&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+I-1])&k.hash_mask,Y=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),Y!==0&&k.strstart-Y<=k.w_size-N&&(k.match_length=A(k,Y)),k.match_length>=I)if($=o._tr_tally(k,k.strstart-k.match_start,k.match_length-I),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=I){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+I-1])&k.hash_mask,Y=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 $=o._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if($&&(P(k,!1),k.strm.avail_out===0))return O}return k.insert=k.strstart<I-1?k.strstart:I-1,X===f?(P(k,!0),k.strm.avail_out===0?ne:J):k.last_lit&&(P(k,!1),k.strm.avail_out===0)?O:V}function te(k,X){for(var Y,$,B;;){if(k.lookahead<N){if(q(k),k.lookahead<N&&X===c)return O;if(k.lookahead===0)break}if(Y=0,k.lookahead>=I&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+I-1])&k.hash_mask,Y=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=I-1,Y!==0&&k.prev_length<k.max_lazy_match&&k.strstart-Y<=k.w_size-N&&(k.match_length=A(k,Y),k.match_length<=5&&(k.strategy===1||k.match_length===I&&4096<k.strstart-k.match_start)&&(k.match_length=I-1)),k.prev_length>=I&&k.match_length<=k.prev_length){for(B=k.strstart+k.lookahead-I,$=o._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-I),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+I-1])&k.hash_mask,Y=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=I-1,k.strstart++,$&&(P(k,!1),k.strm.avail_out===0))return O}else if(k.match_available){if(($=o._tr_tally(k,0,k.window[k.strstart-1]))&&P(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return O}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&($=o._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<I-1?k.strstart:I-1,X===f?(P(k,!0),k.strm.avail_out===0?ne:J):k.last_lit&&(P(k,!1),k.strm.avail_out===0)?O:V}function fe(k,X,Y,$,B){this.good_length=k,this.max_lazy=X,this.nice_length=Y,this.max_chain=$,this.func=B}function pe(){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 v.Buf16(2*T),this.dyn_dtree=new v.Buf16(2*(2*S+1)),this.bl_tree=new v.Buf16(2*(2*x+1)),U(this.dyn_ltree),U(this.dyn_dtree),U(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new v.Buf16(E+1),this.heap=new v.Buf16(2*w+1),U(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new v.Buf16(2*w+1),U(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 ve(k){var X;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=y,(X=k.state).pending=0,X.pending_out=0,X.wrap<0&&(X.wrap=-X.wrap),X.status=X.wrap?L:F,k.adler=X.wrap===2?0:1,X.last_flush=c,o._tr_init(X),s):le(k,h)}function H(k){var X=ve(k);return X===s&&function(Y){Y.window_size=2*Y.w_size,U(Y.head),Y.max_lazy_match=l[Y.level].max_lazy,Y.good_match=l[Y.level].good_length,Y.nice_match=l[Y.level].nice_length,Y.max_chain_length=l[Y.level].max_chain,Y.strstart=0,Y.block_start=0,Y.lookahead=0,Y.insert=0,Y.match_length=Y.prev_length=I-1,Y.match_available=0,Y.ins_h=0}(k.state),X}function W(k,X,Y,$,B,K){if(!k)return h;var ce=1;if(X===g&&(X=6),$<0?(ce=0,$=-$):15<$&&(ce=2,$-=16),B<1||_<B||Y!==b||$<8||15<$||X<0||9<X||K<0||m<K)return le(k,h);$===8&&($=9);var ie=new pe;return(k.state=ie).strm=k,ie.wrap=ce,ie.gzhead=null,ie.w_bits=$,ie.w_size=1<<ie.w_bits,ie.w_mask=ie.w_size-1,ie.hash_bits=B+7,ie.hash_size=1<<ie.hash_bits,ie.hash_mask=ie.hash_size-1,ie.hash_shift=~~((ie.hash_bits+I-1)/I),ie.window=new v.Buf8(2*ie.w_size),ie.head=new v.Buf16(ie.hash_size),ie.prev=new v.Buf16(ie.w_size),ie.lit_bufsize=1<<B+6,ie.pending_buf_size=4*ie.lit_bufsize,ie.pending_buf=new v.Buf8(ie.pending_buf_size),ie.d_buf=1*ie.lit_bufsize,ie.l_buf=3*ie.lit_bufsize,ie.level=X,ie.strategy=K,ie.method=Y,H(k)}l=[new fe(0,0,0,0,function(k,X){var Y=65535;for(Y>k.pending_buf_size-5&&(Y=k.pending_buf_size-5);;){if(k.lookahead<=1){if(q(k),k.lookahead===0&&X===c)return O;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var $=k.block_start+Y;if((k.strstart===0||k.strstart>=$)&&(k.lookahead=k.strstart-$,k.strstart=$,P(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-N&&(P(k,!1),k.strm.avail_out===0))return O}return k.insert=0,X===f?(P(k,!0),k.strm.avail_out===0?ne:J):(k.strstart>k.block_start&&(P(k,!1),k.strm.avail_out),O)}),new fe(4,4,8,4,G),new fe(4,5,16,8,G),new fe(4,6,32,32,G),new fe(4,4,16,16,te),new fe(8,16,32,32,te),new fe(8,16,128,128,te),new fe(8,32,128,256,te),new fe(32,128,258,1024,te),new fe(32,258,258,4096,te)],i.deflateInit=function(k,X){return W(k,X,b,15,8,0)},i.deflateInit2=W,i.deflateReset=H,i.deflateResetKeep=ve,i.deflateSetHeader=function(k,X){return k&&k.state?k.state.wrap!==2?h:(k.state.gzhead=X,s):h},i.deflate=function(k,X){var Y,$,B,K;if(!k||!k.state||5<X||X<0)return k?le(k,h):h;if($=k.state,!k.output||!k.input&&k.avail_in!==0||$.status===666&&X!==f)return le(k,k.avail_out===0?-5:h);if($.strm=k,Y=$.last_flush,$.last_flush=X,$.status===L)if($.wrap===2)k.adler=0,Q($,31),Q($,139),Q($,8),$.gzhead?(Q($,($.gzhead.text?1:0)+($.gzhead.hcrc?2:0)+($.gzhead.extra?4:0)+($.gzhead.name?8:0)+($.gzhead.comment?16:0)),Q($,255&$.gzhead.time),Q($,$.gzhead.time>>8&255),Q($,$.gzhead.time>>16&255),Q($,$.gzhead.time>>24&255),Q($,$.level===9?2:2<=$.strategy||$.level<2?4:0),Q($,255&$.gzhead.os),$.gzhead.extra&&$.gzhead.extra.length&&(Q($,255&$.gzhead.extra.length),Q($,$.gzhead.extra.length>>8&255)),$.gzhead.hcrc&&(k.adler=u(k.adler,$.pending_buf,$.pending,0)),$.gzindex=0,$.status=69):(Q($,0),Q($,0),Q($,0),Q($,0),Q($,0),Q($,$.level===9?2:2<=$.strategy||$.level<2?4:0),Q($,3),$.status=F);else{var ce=b+($.w_bits-8<<4)<<8;ce|=(2<=$.strategy||$.level<2?0:$.level<6?1:$.level===6?2:3)<<6,$.strstart!==0&&(ce|=32),ce+=31-ce%31,$.status=F,j($,ce),$.strstart!==0&&(j($,k.adler>>>16),j($,65535&k.adler)),k.adler=1}if($.status===69)if($.gzhead.extra){for(B=$.pending;$.gzindex<(65535&$.gzhead.extra.length)&&($.pending!==$.pending_buf_size||($.gzhead.hcrc&&$.pending>B&&(k.adler=u(k.adler,$.pending_buf,$.pending-B,B)),R(k),B=$.pending,$.pending!==$.pending_buf_size));)Q($,255&$.gzhead.extra[$.gzindex]),$.gzindex++;$.gzhead.hcrc&&$.pending>B&&(k.adler=u(k.adler,$.pending_buf,$.pending-B,B)),$.gzindex===$.gzhead.extra.length&&($.gzindex=0,$.status=73)}else $.status=73;if($.status===73)if($.gzhead.name){B=$.pending;do{if($.pending===$.pending_buf_size&&($.gzhead.hcrc&&$.pending>B&&(k.adler=u(k.adler,$.pending_buf,$.pending-B,B)),R(k),B=$.pending,$.pending===$.pending_buf_size)){K=1;break}K=$.gzindex<$.gzhead.name.length?255&$.gzhead.name.charCodeAt($.gzindex++):0,Q($,K)}while(K!==0);$.gzhead.hcrc&&$.pending>B&&(k.adler=u(k.adler,$.pending_buf,$.pending-B,B)),K===0&&($.gzindex=0,$.status=91)}else $.status=91;if($.status===91)if($.gzhead.comment){B=$.pending;do{if($.pending===$.pending_buf_size&&($.gzhead.hcrc&&$.pending>B&&(k.adler=u(k.adler,$.pending_buf,$.pending-B,B)),R(k),B=$.pending,$.pending===$.pending_buf_size)){K=1;break}K=$.gzindex<$.gzhead.comment.length?255&$.gzhead.comment.charCodeAt($.gzindex++):0,Q($,K)}while(K!==0);$.gzhead.hcrc&&$.pending>B&&(k.adler=u(k.adler,$.pending_buf,$.pending-B,B)),K===0&&($.status=103)}else $.status=103;if($.status===103&&($.gzhead.hcrc?($.pending+2>$.pending_buf_size&&R(k),$.pending+2<=$.pending_buf_size&&(Q($,255&k.adler),Q($,k.adler>>8&255),k.adler=0,$.status=F)):$.status=F),$.pending!==0){if(R(k),k.avail_out===0)return $.last_flush=-1,s}else if(k.avail_in===0&&M(X)<=M(Y)&&X!==f)return le(k,-5);if($.status===666&&k.avail_in!==0)return le(k,-5);if(k.avail_in!==0||$.lookahead!==0||X!==c&&$.status!==666){var ie=$.strategy===2?function(Z,me){for(var ae;;){if(Z.lookahead===0&&(q(Z),Z.lookahead===0)){if(me===c)return O;break}if(Z.match_length=0,ae=o._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++,ae&&(P(Z,!1),Z.strm.avail_out===0))return O}return Z.insert=0,me===f?(P(Z,!0),Z.strm.avail_out===0?ne:J):Z.last_lit&&(P(Z,!1),Z.strm.avail_out===0)?O:V}($,X):$.strategy===3?function(Z,me){for(var ae,ge,Ce,ke,Oe=Z.window;;){if(Z.lookahead<=D){if(q(Z),Z.lookahead<=D&&me===c)return O;if(Z.lookahead===0)break}if(Z.match_length=0,Z.lookahead>=I&&0<Z.strstart&&(ge=Oe[Ce=Z.strstart-1])===Oe[++Ce]&&ge===Oe[++Ce]&&ge===Oe[++Ce]){ke=Z.strstart+D;do;while(ge===Oe[++Ce]&&ge===Oe[++Ce]&&ge===Oe[++Ce]&&ge===Oe[++Ce]&&ge===Oe[++Ce]&&ge===Oe[++Ce]&&ge===Oe[++Ce]&&ge===Oe[++Ce]&&Ce<ke);Z.match_length=D-(ke-Ce),Z.match_length>Z.lookahead&&(Z.match_length=Z.lookahead)}if(Z.match_length>=I?(ae=o._tr_tally(Z,1,Z.match_length-I),Z.lookahead-=Z.match_length,Z.strstart+=Z.match_length,Z.match_length=0):(ae=o._tr_tally(Z,0,Z.window[Z.strstart]),Z.lookahead--,Z.strstart++),ae&&(P(Z,!1),Z.strm.avail_out===0))return O}return Z.insert=0,me===f?(P(Z,!0),Z.strm.avail_out===0?ne:J):Z.last_lit&&(P(Z,!1),Z.strm.avail_out===0)?O:V}($,X):l[$.level].func($,X);if(ie!==ne&&ie!==J||($.status=666),ie===O||ie===ne)return k.avail_out===0&&($.last_flush=-1),s;if(ie===V&&(X===1?o._tr_align($):X!==5&&(o._tr_stored_block($,0,0,!1),X===3&&(U($.head),$.lookahead===0&&($.strstart=0,$.block_start=0,$.insert=0))),R(k),k.avail_out===0))return $.last_flush=-1,s}return X!==f?s:$.wrap<=0?1:($.wrap===2?(Q($,255&k.adler),Q($,k.adler>>8&255),Q($,k.adler>>16&255),Q($,k.adler>>24&255),Q($,255&k.total_in),Q($,k.total_in>>8&255),Q($,k.total_in>>16&255),Q($,k.total_in>>24&255)):(j($,k.adler>>>16),j($,65535&k.adler)),R(k),0<$.wrap&&($.wrap=-$.wrap),$.pending!==0?s:1)},i.deflateEnd=function(k){var X;return k&&k.state?(X=k.state.status)!==L&&X!==69&&X!==73&&X!==91&&X!==103&&X!==F&&X!==666?le(k,h):(k.state=null,X===F?le(k,-3):s):h},i.deflateSetDictionary=function(k,X){var Y,$,B,K,ce,ie,Z,me,ae=X.length;if(!k||!k.state||(K=(Y=k.state).wrap)===2||K===1&&Y.status!==L||Y.lookahead)return h;for(K===1&&(k.adler=a(k.adler,X,ae,0)),Y.wrap=0,ae>=Y.w_size&&(K===0&&(U(Y.head),Y.strstart=0,Y.block_start=0,Y.insert=0),me=new v.Buf8(Y.w_size),v.arraySet(me,X,ae-Y.w_size,Y.w_size,0),X=me,ae=Y.w_size),ce=k.avail_in,ie=k.next_in,Z=k.input,k.avail_in=ae,k.next_in=0,k.input=X,q(Y);Y.lookahead>=I;){for($=Y.strstart,B=Y.lookahead-(I-1);Y.ins_h=(Y.ins_h<<Y.hash_shift^Y.window[$+I-1])&Y.hash_mask,Y.prev[$&Y.w_mask]=Y.head[Y.ins_h],Y.head[Y.ins_h]=$,$++,--B;);Y.strstart=$,Y.lookahead=I-1,q(Y)}return Y.strstart+=Y.lookahead,Y.block_start=Y.strstart,Y.insert=Y.lookahead,Y.lookahead=0,Y.match_length=Y.prev_length=I-1,Y.match_available=0,k.next_in=ie,k.input=Z,k.avail_in=ce,Y.wrap=K,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,v){var o,a,u,d,c,f,s,h,g,m,y,b,_,w,S,x,T,E,I,D,N,L,F,O,V;o=l.state,a=l.next_in,O=l.input,u=a+(l.avail_in-5),d=l.next_out,V=l.output,c=d-(v-l.avail_out),f=d+(l.avail_out-257),s=o.dmax,h=o.wsize,g=o.whave,m=o.wnext,y=o.window,b=o.hold,_=o.bits,w=o.lencode,S=o.distcode,x=(1<<o.lenbits)-1,T=(1<<o.distbits)-1;e:do{_<15&&(b+=O[a++]<<_,_+=8,b+=O[a++]<<_,_+=8),E=w[b&x];t:for(;;){if(b>>>=I=E>>>24,_-=I,(I=E>>>16&255)===0)V[d++]=65535&E;else{if(!(16&I)){if((64&I)==0){E=w[(65535&E)+(b&(1<<I)-1)];continue t}if(32&I){o.mode=12;break e}l.msg="invalid literal/length code",o.mode=30;break e}D=65535&E,(I&=15)&&(_<I&&(b+=O[a++]<<_,_+=8),D+=b&(1<<I)-1,b>>>=I,_-=I),_<15&&(b+=O[a++]<<_,_+=8,b+=O[a++]<<_,_+=8),E=S[b&T];n:for(;;){if(b>>>=I=E>>>24,_-=I,!(16&(I=E>>>16&255))){if((64&I)==0){E=S[(65535&E)+(b&(1<<I)-1)];continue n}l.msg="invalid distance code",o.mode=30;break e}if(N=65535&E,_<(I&=15)&&(b+=O[a++]<<_,(_+=8)<I&&(b+=O[a++]<<_,_+=8)),s<(N+=b&(1<<I)-1)){l.msg="invalid distance too far back",o.mode=30;break e}if(b>>>=I,_-=I,(I=d-c)<N){if(g<(I=N-I)&&o.sane){l.msg="invalid distance too far back",o.mode=30;break e}if(F=y,(L=0)===m){if(L+=h-I,I<D){for(D-=I;V[d++]=y[L++],--I;);L=d-N,F=V}}else if(m<I){if(L+=h+m-I,(I-=m)<D){for(D-=I;V[d++]=y[L++],--I;);if(L=0,m<D){for(D-=I=m;V[d++]=y[L++],--I;);L=d-N,F=V}}}else if(L+=m-I,I<D){for(D-=I;V[d++]=y[L++],--I;);L=d-N,F=V}for(;2<D;)V[d++]=F[L++],V[d++]=F[L++],V[d++]=F[L++],D-=3;D&&(V[d++]=F[L++],1<D&&(V[d++]=F[L++]))}else{for(L=d-N;V[d++]=V[L++],V[d++]=V[L++],V[d++]=V[L++],2<(D-=3););D&&(V[d++]=V[L++],1<D&&(V[d++]=V[L++]))}break}}break}}while(a<u&&d<f);a-=D=_>>3,b&=(1<<(_-=D<<3))-1,l.next_in=a,l.next_out=d,l.avail_in=a<u?u-a+5:5-(a-u),l.avail_out=d<f?f-d+257:257-(d-f),o.hold=b,o.bits=_}},{}],49:[function(n,r,i){var l=n("../utils/common"),v=n("./adler32"),o=n("./crc32"),a=n("./inffast"),u=n("./inftrees"),d=1,c=2,f=0,s=-2,h=1,g=852,m=592;function y(L){return(L>>>24&255)+(L>>>8&65280)+((65280&L)<<8)+((255&L)<<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 _(L){var F;return L&&L.state?(F=L.state,L.total_in=L.total_out=F.total=0,L.msg="",F.wrap&&(L.adler=1&F.wrap),F.mode=h,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(g),F.distcode=F.distdyn=new l.Buf32(m),F.sane=1,F.back=-1,f):s}function w(L){var F;return L&&L.state?((F=L.state).wsize=0,F.whave=0,F.wnext=0,_(L)):s}function S(L,F){var O,V;return L&&L.state?(V=L.state,F<0?(O=0,F=-F):(O=1+(F>>4),F<48&&(F&=15)),F&&(F<8||15<F)?s:(V.window!==null&&V.wbits!==F&&(V.window=null),V.wrap=O,V.wbits=F,w(L))):s}function x(L,F){var O,V;return L?(V=new b,(L.state=V).window=null,(O=S(L,F))!==f&&(L.state=null),O):s}var T,E,I=!0;function D(L){if(I){var F;for(T=new l.Buf32(512),E=new l.Buf32(32),F=0;F<144;)L.lens[F++]=8;for(;F<256;)L.lens[F++]=9;for(;F<280;)L.lens[F++]=7;for(;F<288;)L.lens[F++]=8;for(u(d,L.lens,0,288,T,0,L.work,{bits:9}),F=0;F<32;)L.lens[F++]=5;u(c,L.lens,0,32,E,0,L.work,{bits:5}),I=!1}L.lencode=T,L.lenbits=9,L.distcode=E,L.distbits=5}function N(L,F,O,V){var ne,J=L.state;return J.window===null&&(J.wsize=1<<J.wbits,J.wnext=0,J.whave=0,J.window=new l.Buf8(J.wsize)),V>=J.wsize?(l.arraySet(J.window,F,O-J.wsize,J.wsize,0),J.wnext=0,J.whave=J.wsize):(V<(ne=J.wsize-J.wnext)&&(ne=V),l.arraySet(J.window,F,O-V,ne,J.wnext),(V-=ne)?(l.arraySet(J.window,F,O-V,V,0),J.wnext=V,J.whave=J.wsize):(J.wnext+=ne,J.wnext===J.wsize&&(J.wnext=0),J.whave<J.wsize&&(J.whave+=ne))),0}i.inflateReset=w,i.inflateReset2=S,i.inflateResetKeep=_,i.inflateInit=function(L){return x(L,15)},i.inflateInit2=x,i.inflate=function(L,F){var O,V,ne,J,le,M,U,R,P,Q,j,A,q,G,te,fe,pe,ve,H,W,k,X,Y,$,B=0,K=new l.Buf8(4),ce=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!L||!L.state||!L.output||!L.input&&L.avail_in!==0)return s;(O=L.state).mode===12&&(O.mode=13),le=L.next_out,ne=L.output,U=L.avail_out,J=L.next_in,V=L.input,M=L.avail_in,R=O.hold,P=O.bits,Q=M,j=U,X=f;e:for(;;)switch(O.mode){case h:if(O.wrap===0){O.mode=13;break}for(;P<16;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if(2&O.wrap&&R===35615){K[O.check=0]=255&R,K[1]=R>>>8&255,O.check=o(O.check,K,2,0),P=R=0,O.mode=2;break}if(O.flags=0,O.head&&(O.head.done=!1),!(1&O.wrap)||(((255&R)<<8)+(R>>8))%31){L.msg="incorrect header check",O.mode=30;break}if((15&R)!=8){L.msg="unknown compression method",O.mode=30;break}if(P-=4,k=8+(15&(R>>>=4)),O.wbits===0)O.wbits=k;else if(k>O.wbits){L.msg="invalid window size",O.mode=30;break}O.dmax=1<<k,L.adler=O.check=1,O.mode=512&R?10:12,P=R=0;break;case 2:for(;P<16;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if(O.flags=R,(255&O.flags)!=8){L.msg="unknown compression method",O.mode=30;break}if(57344&O.flags){L.msg="unknown header flags set",O.mode=30;break}O.head&&(O.head.text=R>>8&1),512&O.flags&&(K[0]=255&R,K[1]=R>>>8&255,O.check=o(O.check,K,2,0)),P=R=0,O.mode=3;case 3:for(;P<32;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}O.head&&(O.head.time=R),512&O.flags&&(K[0]=255&R,K[1]=R>>>8&255,K[2]=R>>>16&255,K[3]=R>>>24&255,O.check=o(O.check,K,4,0)),P=R=0,O.mode=4;case 4:for(;P<16;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}O.head&&(O.head.xflags=255&R,O.head.os=R>>8),512&O.flags&&(K[0]=255&R,K[1]=R>>>8&255,O.check=o(O.check,K,2,0)),P=R=0,O.mode=5;case 5:if(1024&O.flags){for(;P<16;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}O.length=R,O.head&&(O.head.extra_len=R),512&O.flags&&(K[0]=255&R,K[1]=R>>>8&255,O.check=o(O.check,K,2,0)),P=R=0}else O.head&&(O.head.extra=null);O.mode=6;case 6:if(1024&O.flags&&(M<(A=O.length)&&(A=M),A&&(O.head&&(k=O.head.extra_len-O.length,O.head.extra||(O.head.extra=new Array(O.head.extra_len)),l.arraySet(O.head.extra,V,J,A,k)),512&O.flags&&(O.check=o(O.check,V,A,J)),M-=A,J+=A,O.length-=A),O.length))break e;O.length=0,O.mode=7;case 7:if(2048&O.flags){if(M===0)break e;for(A=0;k=V[J+A++],O.head&&k&&O.length<65536&&(O.head.name+=String.fromCharCode(k)),k&&A<M;);if(512&O.flags&&(O.check=o(O.check,V,A,J)),M-=A,J+=A,k)break e}else O.head&&(O.head.name=null);O.length=0,O.mode=8;case 8:if(4096&O.flags){if(M===0)break e;for(A=0;k=V[J+A++],O.head&&k&&O.length<65536&&(O.head.comment+=String.fromCharCode(k)),k&&A<M;);if(512&O.flags&&(O.check=o(O.check,V,A,J)),M-=A,J+=A,k)break e}else O.head&&(O.head.comment=null);O.mode=9;case 9:if(512&O.flags){for(;P<16;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if(R!==(65535&O.check)){L.msg="header crc mismatch",O.mode=30;break}P=R=0}O.head&&(O.head.hcrc=O.flags>>9&1,O.head.done=!0),L.adler=O.check=0,O.mode=12;break;case 10:for(;P<32;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}L.adler=O.check=y(R),P=R=0,O.mode=11;case 11:if(O.havedict===0)return L.next_out=le,L.avail_out=U,L.next_in=J,L.avail_in=M,O.hold=R,O.bits=P,2;L.adler=O.check=1,O.mode=12;case 12:if(F===5||F===6)break e;case 13:if(O.last){R>>>=7&P,P-=7&P,O.mode=27;break}for(;P<3;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}switch(O.last=1&R,P-=1,3&(R>>>=1)){case 0:O.mode=14;break;case 1:if(D(O),O.mode=20,F!==6)break;R>>>=2,P-=2;break e;case 2:O.mode=17;break;case 3:L.msg="invalid block type",O.mode=30}R>>>=2,P-=2;break;case 14:for(R>>>=7&P,P-=7&P;P<32;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if((65535&R)!=(R>>>16^65535)){L.msg="invalid stored block lengths",O.mode=30;break}if(O.length=65535&R,P=R=0,O.mode=15,F===6)break e;case 15:O.mode=16;case 16:if(A=O.length){if(M<A&&(A=M),U<A&&(A=U),A===0)break e;l.arraySet(ne,V,J,A,le),M-=A,J+=A,U-=A,le+=A,O.length-=A;break}O.mode=12;break;case 17:for(;P<14;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if(O.nlen=257+(31&R),R>>>=5,P-=5,O.ndist=1+(31&R),R>>>=5,P-=5,O.ncode=4+(15&R),R>>>=4,P-=4,286<O.nlen||30<O.ndist){L.msg="too many length or distance symbols",O.mode=30;break}O.have=0,O.mode=18;case 18:for(;O.have<O.ncode;){for(;P<3;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}O.lens[ce[O.have++]]=7&R,R>>>=3,P-=3}for(;O.have<19;)O.lens[ce[O.have++]]=0;if(O.lencode=O.lendyn,O.lenbits=7,Y={bits:O.lenbits},X=u(0,O.lens,0,19,O.lencode,0,O.work,Y),O.lenbits=Y.bits,X){L.msg="invalid code lengths set",O.mode=30;break}O.have=0,O.mode=19;case 19:for(;O.have<O.nlen+O.ndist;){for(;fe=(B=O.lencode[R&(1<<O.lenbits)-1])>>>16&255,pe=65535&B,!((te=B>>>24)<=P);){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if(pe<16)R>>>=te,P-=te,O.lens[O.have++]=pe;else{if(pe===16){for($=te+2;P<$;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if(R>>>=te,P-=te,O.have===0){L.msg="invalid bit length repeat",O.mode=30;break}k=O.lens[O.have-1],A=3+(3&R),R>>>=2,P-=2}else if(pe===17){for($=te+3;P<$;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}P-=te,k=0,A=3+(7&(R>>>=te)),R>>>=3,P-=3}else{for($=te+7;P<$;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}P-=te,k=0,A=11+(127&(R>>>=te)),R>>>=7,P-=7}if(O.have+A>O.nlen+O.ndist){L.msg="invalid bit length repeat",O.mode=30;break}for(;A--;)O.lens[O.have++]=k}}if(O.mode===30)break;if(O.lens[256]===0){L.msg="invalid code -- missing end-of-block",O.mode=30;break}if(O.lenbits=9,Y={bits:O.lenbits},X=u(d,O.lens,0,O.nlen,O.lencode,0,O.work,Y),O.lenbits=Y.bits,X){L.msg="invalid literal/lengths set",O.mode=30;break}if(O.distbits=6,O.distcode=O.distdyn,Y={bits:O.distbits},X=u(c,O.lens,O.nlen,O.ndist,O.distcode,0,O.work,Y),O.distbits=Y.bits,X){L.msg="invalid distances set",O.mode=30;break}if(O.mode=20,F===6)break e;case 20:O.mode=21;case 21:if(6<=M&&258<=U){L.next_out=le,L.avail_out=U,L.next_in=J,L.avail_in=M,O.hold=R,O.bits=P,a(L,j),le=L.next_out,ne=L.output,U=L.avail_out,J=L.next_in,V=L.input,M=L.avail_in,R=O.hold,P=O.bits,O.mode===12&&(O.back=-1);break}for(O.back=0;fe=(B=O.lencode[R&(1<<O.lenbits)-1])>>>16&255,pe=65535&B,!((te=B>>>24)<=P);){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if(fe&&(240&fe)==0){for(ve=te,H=fe,W=pe;fe=(B=O.lencode[W+((R&(1<<ve+H)-1)>>ve)])>>>16&255,pe=65535&B,!(ve+(te=B>>>24)<=P);){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}R>>>=ve,P-=ve,O.back+=ve}if(R>>>=te,P-=te,O.back+=te,O.length=pe,fe===0){O.mode=26;break}if(32&fe){O.back=-1,O.mode=12;break}if(64&fe){L.msg="invalid literal/length code",O.mode=30;break}O.extra=15&fe,O.mode=22;case 22:if(O.extra){for($=O.extra;P<$;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}O.length+=R&(1<<O.extra)-1,R>>>=O.extra,P-=O.extra,O.back+=O.extra}O.was=O.length,O.mode=23;case 23:for(;fe=(B=O.distcode[R&(1<<O.distbits)-1])>>>16&255,pe=65535&B,!((te=B>>>24)<=P);){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if((240&fe)==0){for(ve=te,H=fe,W=pe;fe=(B=O.distcode[W+((R&(1<<ve+H)-1)>>ve)])>>>16&255,pe=65535&B,!(ve+(te=B>>>24)<=P);){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}R>>>=ve,P-=ve,O.back+=ve}if(R>>>=te,P-=te,O.back+=te,64&fe){L.msg="invalid distance code",O.mode=30;break}O.offset=pe,O.extra=15&fe,O.mode=24;case 24:if(O.extra){for($=O.extra;P<$;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}O.offset+=R&(1<<O.extra)-1,R>>>=O.extra,P-=O.extra,O.back+=O.extra}if(O.offset>O.dmax){L.msg="invalid distance too far back",O.mode=30;break}O.mode=25;case 25:if(U===0)break e;if(A=j-U,O.offset>A){if((A=O.offset-A)>O.whave&&O.sane){L.msg="invalid distance too far back",O.mode=30;break}q=A>O.wnext?(A-=O.wnext,O.wsize-A):O.wnext-A,A>O.length&&(A=O.length),G=O.window}else G=ne,q=le-O.offset,A=O.length;for(U<A&&(A=U),U-=A,O.length-=A;ne[le++]=G[q++],--A;);O.length===0&&(O.mode=21);break;case 26:if(U===0)break e;ne[le++]=O.length,U--,O.mode=21;break;case 27:if(O.wrap){for(;P<32;){if(M===0)break e;M--,R|=V[J++]<<P,P+=8}if(j-=U,L.total_out+=j,O.total+=j,j&&(L.adler=O.check=O.flags?o(O.check,ne,j,le-j):v(O.check,ne,j,le-j)),j=U,(O.flags?R:y(R))!==O.check){L.msg="incorrect data check",O.mode=30;break}P=R=0}O.mode=28;case 28:if(O.wrap&&O.flags){for(;P<32;){if(M===0)break e;M--,R+=V[J++]<<P,P+=8}if(R!==(4294967295&O.total)){L.msg="incorrect length check",O.mode=30;break}P=R=0}O.mode=29;case 29:X=1;break e;case 30:X=-3;break e;case 31:return-4;case 32:default:return s}return L.next_out=le,L.avail_out=U,L.next_in=J,L.avail_in=M,O.hold=R,O.bits=P,(O.wsize||j!==L.avail_out&&O.mode<30&&(O.mode<27||F!==4))&&N(L,L.output,L.next_out,j-L.avail_out)?(O.mode=31,-4):(Q-=L.avail_in,j-=L.avail_out,L.total_in+=Q,L.total_out+=j,O.total+=j,O.wrap&&j&&(L.adler=O.check=O.flags?o(O.check,ne,j,L.next_out-j):v(O.check,ne,j,L.next_out-j)),L.data_type=O.bits+(O.last?64:0)+(O.mode===12?128:0)+(O.mode===20||O.mode===15?256:0),(Q==0&&j===0||F===4)&&X===f&&(X=-5),X)},i.inflateEnd=function(L){if(!L||!L.state)return s;var F=L.state;return F.window&&(F.window=null),L.state=null,f},i.inflateGetHeader=function(L,F){var O;return L&&L.state?(2&(O=L.state).wrap)==0?s:((O.head=F).done=!1,f):s},i.inflateSetDictionary=function(L,F){var O,V=F.length;return L&&L.state?(O=L.state).wrap!==0&&O.mode!==11?s:O.mode===11&&v(1,F,V,0)!==O.check?-3:N(L,F,V,V)?(O.mode=31,-4):(O.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"),v=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],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(d,c,f,s,h,g,m,y){var b,_,w,S,x,T,E,I,D,N=y.bits,L=0,F=0,O=0,V=0,ne=0,J=0,le=0,M=0,U=0,R=0,P=null,Q=0,j=new l.Buf16(16),A=new l.Buf16(16),q=null,G=0;for(L=0;L<=15;L++)j[L]=0;for(F=0;F<s;F++)j[c[f+F]]++;for(ne=N,V=15;1<=V&&j[V]===0;V--);if(V<ne&&(ne=V),V===0)return h[g++]=20971520,h[g++]=20971520,y.bits=1,0;for(O=1;O<V&&j[O]===0;O++);for(ne<O&&(ne=O),L=M=1;L<=15;L++)if(M<<=1,(M-=j[L])<0)return-1;if(0<M&&(d===0||V!==1))return-1;for(A[1]=0,L=1;L<15;L++)A[L+1]=A[L]+j[L];for(F=0;F<s;F++)c[f+F]!==0&&(m[A[c[f+F]]++]=F);if(T=d===0?(P=q=m,19):d===1?(P=v,Q-=257,q=o,G-=257,256):(P=a,q=u,-1),L=O,x=g,le=F=R=0,w=-1,S=(U=1<<(J=ne))-1,d===1&&852<U||d===2&&592<U)return 1;for(;;){for(E=L-le,D=m[F]<T?(I=0,m[F]):m[F]>T?(I=q[G+m[F]],P[Q+m[F]]):(I=96,0),b=1<<L-le,O=_=1<<J;h[x+(R>>le)+(_-=b)]=E<<24|I<<16|D|0,_!==0;);for(b=1<<L-1;R&b;)b>>=1;if(b!==0?(R&=b-1,R+=b):R=0,F++,--j[L]==0){if(L===V)break;L=c[f+m[F]]}if(ne<L&&(R&S)!==w){for(le===0&&(le=ne),x+=O,M=1<<(J=L-le);J+le<V&&!((M-=j[J+le])<=0);)J++,M<<=1;if(U+=1<<J,d===1&&852<U||d===2&&592<U)return 1;h[w=R&S]=ne<<24|J<<16|x-g|0}}return R!==0&&(h[x+R]=L-le<<24|64<<16|0),y.bits=ne,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"),v=0,o=1;function a(B){for(var K=B.length;0<=--K;)B[K]=0}var u=0,d=29,c=256,f=c+1+d,s=30,h=19,g=2*f+1,m=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],E=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=new Array(2*(f+2));a(N);var L=new Array(2*s);a(L);var F=new Array(512);a(F);var O=new Array(256);a(O);var V=new Array(d);a(V);var ne,J,le,M=new Array(s);function U(B,K,ce,ie,Z){this.static_tree=B,this.extra_bits=K,this.extra_base=ce,this.elems=ie,this.max_length=Z,this.has_stree=B&&B.length}function R(B,K){this.dyn_tree=B,this.max_code=0,this.stat_desc=K}function P(B){return B<256?F[B]:F[256+(B>>>7)]}function Q(B,K){B.pending_buf[B.pending++]=255&K,B.pending_buf[B.pending++]=K>>>8&255}function j(B,K,ce){B.bi_valid>y-ce?(B.bi_buf|=K<<B.bi_valid&65535,Q(B,B.bi_buf),B.bi_buf=K>>y-B.bi_valid,B.bi_valid+=ce-y):(B.bi_buf|=K<<B.bi_valid&65535,B.bi_valid+=ce)}function A(B,K,ce){j(B,ce[2*K],ce[2*K+1])}function q(B,K){for(var ce=0;ce|=1&B,B>>>=1,ce<<=1,0<--K;);return ce>>>1}function G(B,K,ce){var ie,Z,me=new Array(m+1),ae=0;for(ie=1;ie<=m;ie++)me[ie]=ae=ae+ce[ie-1]<<1;for(Z=0;Z<=K;Z++){var ge=B[2*Z+1];ge!==0&&(B[2*Z]=q(me[ge]++,ge))}}function te(B){var K;for(K=0;K<f;K++)B.dyn_ltree[2*K]=0;for(K=0;K<s;K++)B.dyn_dtree[2*K]=0;for(K=0;K<h;K++)B.bl_tree[2*K]=0;B.dyn_ltree[2*_]=1,B.opt_len=B.static_len=0,B.last_lit=B.matches=0}function fe(B){8<B.bi_valid?Q(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 pe(B,K,ce,ie){var Z=2*K,me=2*ce;return B[Z]<B[me]||B[Z]===B[me]&&ie[K]<=ie[ce]}function ve(B,K,ce){for(var ie=B.heap[ce],Z=ce<<1;Z<=B.heap_len&&(Z<B.heap_len&&pe(K,B.heap[Z+1],B.heap[Z],B.depth)&&Z++,!pe(K,ie,B.heap[Z],B.depth));)B.heap[ce]=B.heap[Z],ce=Z,Z<<=1;B.heap[ce]=ie}function H(B,K,ce){var ie,Z,me,ae,ge=0;if(B.last_lit!==0)for(;ie=B.pending_buf[B.d_buf+2*ge]<<8|B.pending_buf[B.d_buf+2*ge+1],Z=B.pending_buf[B.l_buf+ge],ge++,ie===0?A(B,Z,K):(A(B,(me=O[Z])+c+1,K),(ae=T[me])!==0&&j(B,Z-=V[me],ae),A(B,me=P(--ie),ce),(ae=E[me])!==0&&j(B,ie-=M[me],ae)),ge<B.last_lit;);A(B,_,K)}function W(B,K){var ce,ie,Z,me=K.dyn_tree,ae=K.stat_desc.static_tree,ge=K.stat_desc.has_stree,Ce=K.stat_desc.elems,ke=-1;for(B.heap_len=0,B.heap_max=g,ce=0;ce<Ce;ce++)me[2*ce]!==0?(B.heap[++B.heap_len]=ke=ce,B.depth[ce]=0):me[2*ce+1]=0;for(;B.heap_len<2;)me[2*(Z=B.heap[++B.heap_len]=ke<2?++ke:0)]=1,B.depth[Z]=0,B.opt_len--,ge&&(B.static_len-=ae[2*Z+1]);for(K.max_code=ke,ce=B.heap_len>>1;1<=ce;ce--)ve(B,me,ce);for(Z=Ce;ce=B.heap[1],B.heap[1]=B.heap[B.heap_len--],ve(B,me,1),ie=B.heap[1],B.heap[--B.heap_max]=ce,B.heap[--B.heap_max]=ie,me[2*Z]=me[2*ce]+me[2*ie],B.depth[Z]=(B.depth[ce]>=B.depth[ie]?B.depth[ce]:B.depth[ie])+1,me[2*ce+1]=me[2*ie+1]=Z,B.heap[1]=Z++,ve(B,me,1),2<=B.heap_len;);B.heap[--B.heap_max]=B.heap[1],function(Oe,ze){var _e,Se,De,Me,yt,bt,we=ze.dyn_tree,$e=ze.max_code,Ve=ze.stat_desc.static_tree,Qe=ze.stat_desc.has_stree,at=ze.stat_desc.extra_bits,We=ze.stat_desc.extra_base,Lt=ze.stat_desc.max_length,Jn=0;for(Me=0;Me<=m;Me++)Oe.bl_count[Me]=0;for(we[2*Oe.heap[Oe.heap_max]+1]=0,_e=Oe.heap_max+1;_e<g;_e++)Lt<(Me=we[2*we[2*(Se=Oe.heap[_e])+1]+1]+1)&&(Me=Lt,Jn++),we[2*Se+1]=Me,$e<Se||(Oe.bl_count[Me]++,yt=0,We<=Se&&(yt=at[Se-We]),bt=we[2*Se],Oe.opt_len+=bt*(Me+yt),Qe&&(Oe.static_len+=bt*(Ve[2*Se+1]+yt)));if(Jn!==0){do{for(Me=Lt-1;Oe.bl_count[Me]===0;)Me--;Oe.bl_count[Me]--,Oe.bl_count[Me+1]+=2,Oe.bl_count[Lt]--,Jn-=2}while(0<Jn);for(Me=Lt;Me!==0;Me--)for(Se=Oe.bl_count[Me];Se!==0;)$e<(De=Oe.heap[--_e])||(we[2*De+1]!==Me&&(Oe.opt_len+=(Me-we[2*De+1])*we[2*De],we[2*De+1]=Me),Se--)}}(B,K),G(me,ke,B.bl_count)}function k(B,K,ce){var ie,Z,me=-1,ae=K[1],ge=0,Ce=7,ke=4;for(ae===0&&(Ce=138,ke=3),K[2*(ce+1)+1]=65535,ie=0;ie<=ce;ie++)Z=ae,ae=K[2*(ie+1)+1],++ge<Ce&&Z===ae||(ge<ke?B.bl_tree[2*Z]+=ge:Z!==0?(Z!==me&&B.bl_tree[2*Z]++,B.bl_tree[2*w]++):ge<=10?B.bl_tree[2*S]++:B.bl_tree[2*x]++,me=Z,ke=(ge=0)===ae?(Ce=138,3):Z===ae?(Ce=6,3):(Ce=7,4))}function X(B,K,ce){var ie,Z,me=-1,ae=K[1],ge=0,Ce=7,ke=4;for(ae===0&&(Ce=138,ke=3),ie=0;ie<=ce;ie++)if(Z=ae,ae=K[2*(ie+1)+1],!(++ge<Ce&&Z===ae)){if(ge<ke)for(;A(B,Z,B.bl_tree),--ge!=0;);else Z!==0?(Z!==me&&(A(B,Z,B.bl_tree),ge--),A(B,w,B.bl_tree),j(B,ge-3,2)):ge<=10?(A(B,S,B.bl_tree),j(B,ge-3,3)):(A(B,x,B.bl_tree),j(B,ge-11,7));me=Z,ke=(ge=0)===ae?(Ce=138,3):Z===ae?(Ce=6,3):(Ce=7,4)}}a(M);var Y=!1;function $(B,K,ce,ie){j(B,(u<<1)+(ie?1:0),3),function(Z,me,ae,ge){fe(Z),ge&&(Q(Z,ae),Q(Z,~ae)),l.arraySet(Z.pending_buf,Z.window,me,ae,Z.pending),Z.pending+=ae}(B,K,ce,!0)}i._tr_init=function(B){Y||(function(){var K,ce,ie,Z,me,ae=new Array(m+1);for(Z=ie=0;Z<d-1;Z++)for(V[Z]=ie,K=0;K<1<<T[Z];K++)O[ie++]=Z;for(O[ie-1]=Z,Z=me=0;Z<16;Z++)for(M[Z]=me,K=0;K<1<<E[Z];K++)F[me++]=Z;for(me>>=7;Z<s;Z++)for(M[Z]=me<<7,K=0;K<1<<E[Z]-7;K++)F[256+me++]=Z;for(ce=0;ce<=m;ce++)ae[ce]=0;for(K=0;K<=143;)N[2*K+1]=8,K++,ae[8]++;for(;K<=255;)N[2*K+1]=9,K++,ae[9]++;for(;K<=279;)N[2*K+1]=7,K++,ae[7]++;for(;K<=287;)N[2*K+1]=8,K++,ae[8]++;for(G(N,f+1,ae),K=0;K<s;K++)L[2*K+1]=5,L[2*K]=q(K,5);ne=new U(N,T,c+1,f,m),J=new U(L,E,0,s,m),le=new U(new Array(0),I,0,h,b)}(),Y=!0),B.l_desc=new R(B.dyn_ltree,ne),B.d_desc=new R(B.dyn_dtree,J),B.bl_desc=new R(B.bl_tree,le),B.bi_buf=0,B.bi_valid=0,te(B)},i._tr_stored_block=$,i._tr_flush_block=function(B,K,ce,ie){var Z,me,ae=0;0<B.level?(B.strm.data_type===2&&(B.strm.data_type=function(ge){var Ce,ke=4093624447;for(Ce=0;Ce<=31;Ce++,ke>>>=1)if(1&ke&&ge.dyn_ltree[2*Ce]!==0)return v;if(ge.dyn_ltree[18]!==0||ge.dyn_ltree[20]!==0||ge.dyn_ltree[26]!==0)return o;for(Ce=32;Ce<c;Ce++)if(ge.dyn_ltree[2*Ce]!==0)return o;return v}(B)),W(B,B.l_desc),W(B,B.d_desc),ae=function(ge){var Ce;for(k(ge,ge.dyn_ltree,ge.l_desc.max_code),k(ge,ge.dyn_dtree,ge.d_desc.max_code),W(ge,ge.bl_desc),Ce=h-1;3<=Ce&&ge.bl_tree[2*D[Ce]+1]===0;Ce--);return ge.opt_len+=3*(Ce+1)+5+5+4,Ce}(B),Z=B.opt_len+3+7>>>3,(me=B.static_len+3+7>>>3)<=Z&&(Z=me)):Z=me=ce+5,ce+4<=Z&&K!==-1?$(B,K,ce,ie):B.strategy===4||me===Z?(j(B,2+(ie?1:0),3),H(B,N,L)):(j(B,4+(ie?1:0),3),function(ge,Ce,ke,Oe){var ze;for(j(ge,Ce-257,5),j(ge,ke-1,5),j(ge,Oe-4,4),ze=0;ze<Oe;ze++)j(ge,ge.bl_tree[2*D[ze]+1],3);X(ge,ge.dyn_ltree,Ce-1),X(ge,ge.dyn_dtree,ke-1)}(B,B.l_desc.max_code+1,B.d_desc.max_code+1,ae+1),H(B,B.dyn_ltree,B.dyn_dtree)),te(B),ie&&fe(B)},i._tr_tally=function(B,K,ce){return B.pending_buf[B.d_buf+2*B.last_lit]=K>>>8&255,B.pending_buf[B.d_buf+2*B.last_lit+1]=255&K,B.pending_buf[B.l_buf+B.last_lit]=255&ce,B.last_lit++,K===0?B.dyn_ltree[2*ce]++:(B.matches++,K--,B.dyn_ltree[2*(O[ce]+c+1)]++,B.dyn_dtree[2*P(K)]++),B.last_lit===B.lit_bufsize-1},i._tr_align=function(B){j(B,2,3),A(B,_,N),function(K){K.bi_valid===16?(Q(K,K.bi_buf),K.bi_buf=0,K.bi_valid=0):8<=K.bi_valid&&(K.pending_buf[K.pending++]=255&K.bi_buf,K.bi_buf>>=8,K.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(v,o){if(!v.setImmediate){var a,u,d,c,f=1,s={},h=!1,g=v.document,m=Object.getPrototypeOf&&Object.getPrototypeOf(v);m=m&&m.setTimeout?m:v,a={}.toString.call(v.process)==="[object process]"?function(w){process.nextTick(function(){b(w)})}:function(){if(v.postMessage&&!v.importScripts){var w=!0,S=v.onmessage;return v.onmessage=function(){w=!1},v.postMessage("","*"),v.onmessage=S,w}}()?(c="setImmediate$"+Math.random()+"$",v.addEventListener?v.addEventListener("message",_,!1):v.attachEvent("onmessage",_),function(w){v.postMessage(c+w,"*")}):v.MessageChannel?((d=new MessageChannel).port1.onmessage=function(w){b(w.data)},function(w){d.port2.postMessage(w)}):g&&"onreadystatechange"in g.createElement("script")?(u=g.documentElement,function(w){var S=g.createElement("script");S.onreadystatechange=function(){b(w),S.onreadystatechange=null,u.removeChild(S),S=null},u.appendChild(S)}):function(w){setTimeout(b,0,w)},m.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,a(f),f++},m.clearImmediate=y}function y(w){delete s[w]}function b(w){if(h)setTimeout(b,0,w);else{var S=s[w];if(S){h=!0;try{(function(x){var T=x.callback,E=x.args;switch(E.length){case 0:T();break;case 1:T(E[0]);break;case 2:T(E[0],E[1]);break;case 3:T(E[0],E[1],E[2]);break;default:T.apply(o,E)}})(S)}finally{y(w),h=!1}}}}function _(w){w.source===v&&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 nu<"u"?nu:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(t2);var yh=function(e,t){return yh=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])},yh(e,t)};function lm(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");yh(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function hU(e,t,n,r){function i(l){return l instanceof n?l:new n(function(v){v(l)})}return new(n||(n=Promise))(function(l,v){function o(d){try{u(r.next(d))}catch(c){v(c)}}function a(d){try{u(r.throw(d))}catch(c){v(c)}}function u(d){d.done?l(d.value):i(d.value).then(o,a)}u((r=r.apply(e,t||[])).next())})}function n2(e,t){var n={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},r,i,l,v;return v={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(v[Symbol.iterator]=function(){return this}),v;function o(u){return function(d){return a([u,d])}}function a(u){if(r)throw new TypeError("Generator is already executing.");for(;v&&(v=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(d){u=[6,d],i=0}finally{r=l=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function fl(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 yc(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,l=[],v;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)l.push(i.value)}catch(o){v={error:o}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(v)throw v.error}}return l}function bc(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 bo(e){return this instanceof bo?(this.v=e,this):new bo(e)}function pU(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,l=[];return i={},v("next"),v("throw"),v("return"),i[Symbol.asyncIterator]=function(){return this},i;function v(f){r[f]&&(i[f]=function(s){return new Promise(function(h,g){l.push([f,s,h,g])>1||o(f,s)})})}function o(f,s){try{a(r[f](s))}catch(h){c(l[0][3],h)}}function a(f){f.value instanceof bo?Promise.resolve(f.value.v).then(u,d):c(l[0][2],f)}function u(f){o("next",f)}function d(f){o("throw",f)}function c(f,s){f(s),l.shift(),l.length&&o(l[0][0],l[0][1])}}function mU(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 fl=="function"?fl(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(v){return new Promise(function(o,a){v=e[l](v),i(o,a,v.done,v.value)})}}function i(l,v,o,a){Promise.resolve(a).then(function(u){l({value:u,done:o})},v)}}function on(e){return typeof e=="function"}function gU(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 Vf=gU(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 z0(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var um=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 v=this._parentage;if(v)if(this._parentage=null,Array.isArray(v))try{for(var o=fl(v),a=o.next();!a.done;a=o.next()){var u=a.value;u.remove(this)}}catch(g){t={error:g}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}else v.remove(this);var d=this.initialTeardown;if(on(d))try{d()}catch(g){l=g instanceof Vf?g.errors:[g]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var f=fl(c),s=f.next();!s.done;s=f.next()){var h=s.value;try{N0(h)}catch(g){l=l!=null?l:[],g instanceof Vf?l=bc(bc([],yc(l)),yc(g.errors)):l.push(g)}}}catch(g){r={error:g}}finally{try{s&&!s.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(l)throw new Vf(l)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)N0(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)&&z0(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&z0(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}();um.EMPTY;function r2(e){return e instanceof um||e&&"closed"in e&&on(e.remove)&&on(e.add)&&on(e.unsubscribe)}function N0(e){on(e)?e():e.unsubscribe()}var tf={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},bh={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=bh.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,bc([e,t],yc(n))):setTimeout.apply(void 0,bc([e,t],yc(n)))},clearTimeout:function(e){var t=bh.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function i2(e){bh.setTimeout(function(){var t=tf.onUnhandledError;if(t)t(e);else throw e})}function j0(){}var du=null;function vU(e){if(tf.useDeprecatedSynchronousErrorHandling){var t=!du;if(t&&(du={errorThrown:!1,error:null}),e(),t){var n=du,r=n.errorThrown,i=n.error;if(du=null,r)throw i}}else e()}var cm=function(e){lm(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,r2(n)&&n.add(r)):r.destination=wU,r}return t.create=function(n,r,i){return new _h(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}(um),yU=Function.prototype.bind;function Uf(e,t){return yU.call(e,t)}var bU=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){hu(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){hu(r)}else hu(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){hu(n)}},e}(),_h=function(e){lm(t,e);function t(n,r,i){var l=e.call(this)||this,v;if(on(n)||!n)v={next:n!=null?n:void 0,error:r!=null?r:void 0,complete:i!=null?i:void 0};else{var o;l&&tf.useDeprecatedNextContext?(o=Object.create(n),o.unsubscribe=function(){return l.unsubscribe()},v={next:n.next&&Uf(n.next,o),error:n.error&&Uf(n.error,o),complete:n.complete&&Uf(n.complete,o)}):v=n}return l.destination=new bU(v),l}return t}(cm);function hu(e){i2(e)}function _U(e){throw e}var wU={closed:!0,next:j0,error:_U,complete:j0},fm=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function CU(e){return e}function SU(e){return e.length===0?CU:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var di=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=TU(t)?t:new _h(t,n,r);return vU(function(){var v=i,o=v.operator,a=v.source;l.add(o?o.call(l,a):a?i._subscribe(l):i._trySubscribe(l))}),l},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=V0(n),new n(function(i,l){var v=new _h({next:function(o){try{t(o)}catch(a){l(a),v.unsubscribe()}},error:l,complete:i});r.subscribe(v)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[fm]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return SU(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=V0(t),new t(function(r,i){var l;n.subscribe(function(v){return l=v},function(v){return i(v)},function(){return r(l)})})},e.create=function(t){return new e(t)},e}();function V0(e){var t;return(t=e!=null?e:tf.Promise)!==null&&t!==void 0?t:Promise}function xU(e){return e&&on(e.next)&&on(e.error)&&on(e.complete)}function TU(e){return e&&e instanceof cm||xU(e)&&r2(e)}function kU(e){return on(e==null?void 0:e.lift)}function a2(e){return function(t){if(kU(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 EU(e,t,n,r,i){return new OU(e,t,n,r,i)}var OU=function(e){lm(t,e);function t(n,r,i,l,v,o){var a=e.call(this,n)||this;return a.onFinalize=v,a.shouldUnsubscribe=o,a._next=r?function(u){try{r(u)}catch(d){n.error(d)}}:e.prototype._next,a._error=l?function(u){try{l(u)}catch(d){n.error(d)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,a}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(cm),o2=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function s2(e){return on(e==null?void 0:e.then)}function l2(e){return on(e[fm])}function u2(e){return Symbol.asyncIterator&&on(e==null?void 0:e[Symbol.asyncIterator])}function c2(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 AU(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var f2=AU();function d2(e){return on(e==null?void 0:e[f2])}function h2(e){return pU(this,arguments,function(){var n,r,i,l;return n2(this,function(v){switch(v.label){case 0:n=e.getReader(),v.label=1;case 1:v.trys.push([1,,9,10]),v.label=2;case 2:return[4,bo(n.read())];case 3:return r=v.sent(),i=r.value,l=r.done,l?[4,bo(void 0)]:[3,5];case 4:return[2,v.sent()];case 5:return[4,bo(i)];case 6:return[4,v.sent()];case 7:return v.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function p2(e){return on(e==null?void 0:e.getReader)}function dm(e){if(e instanceof di)return e;if(e!=null){if(l2(e))return PU(e);if(o2(e))return IU(e);if(s2(e))return MU(e);if(u2(e))return m2(e);if(d2(e))return LU(e);if(p2(e))return RU(e)}throw c2(e)}function PU(e){return new di(function(t){var n=e[fm]();if(on(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function IU(e){return new di(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function MU(e){return new di(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,i2)})}function LU(e){return new di(function(t){var n,r;try{for(var i=fl(e),l=i.next();!l.done;l=i.next()){var v=l.value;if(t.next(v),t.closed)return}}catch(o){n={error:o}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function m2(e){return new di(function(t){DU(e,t).catch(function(n){return t.error(n)})})}function RU(e){return m2(h2(e))}function DU(e,t){var n,r,i,l;return hU(this,void 0,void 0,function(){var v,o;return n2(this,function(a){switch(a.label){case 0:a.trys.push([0,5,6,11]),n=mU(e),a.label=1;case 1:return[4,n.next()];case 2:if(r=a.sent(),!!r.done)return[3,4];if(v=r.value,t.next(v),t.closed)return[2];a.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return o=a.sent(),i={error:o},[3,11];case 6:return a.trys.push([6,,9,10]),r&&!r.done&&(l=n.return)?[4,l.call(n)]:[3,8];case 7:a.sent(),a.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function ka(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 g2(e,t){return t===void 0&&(t=0),a2(function(n,r){n.subscribe(EU(r,function(i){return ka(r,e,function(){return r.next(i)},t)},function(){return ka(r,e,function(){return r.complete()},t)},function(i){return ka(r,e,function(){return r.error(i)},t)}))})}function v2(e,t){return t===void 0&&(t=0),a2(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function $U(e,t){return dm(e).pipe(v2(t),g2(t))}function BU(e,t){return dm(e).pipe(v2(t),g2(t))}function FU(e,t){return new di(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function zU(e,t){return new di(function(n){var r;return ka(n,t,function(){r=e[f2](),ka(n,t,function(){var i,l,v;try{i=r.next(),l=i.value,v=i.done}catch(o){n.error(o);return}v?n.complete():n.next(l)},0,!0)}),function(){return on(r==null?void 0:r.return)&&r.return()}})}function y2(e,t){if(!e)throw new Error("Iterable cannot be null");return new di(function(n){ka(n,t,function(){var r=e[Symbol.asyncIterator]();ka(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function NU(e,t){return y2(h2(e),t)}function jU(e,t){if(e!=null){if(l2(e))return $U(e,t);if(o2(e))return FU(e,t);if(s2(e))return BU(e,t);if(u2(e))return y2(e,t);if(d2(e))return zU(e,t);if(p2(e))return NU(e,t)}throw c2(e)}function VU(e,t){return t?jU(e,t):dm(e)}var U0;const UU=typeof window<"u";UU&&((U0=window==null?void 0:window.navigator)==null?void 0:U0.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function HU(e){return jy()?(Bh(e),!0):!1}function WU(e,t){const n=oe(t==null?void 0:t.initialValue),r=e.subscribe({next:i=>n.value=i,error:t==null?void 0:t.onError});return HU(()=>{r.unsubscribe()}),n}function YU(e,t,n){const r=oe(n==null?void 0:n.initialValue),i=sm(e);let l=i.subscribe({next:v=>r.value=v,error:n==null?void 0:n.onError});return xe(t,()=>{l.unsubscribe(),l=i.subscribe({next:v=>r.value=v,error:n==null?void 0:n.onError})}),li(()=>{l.unsubscribe()}),r}const La=Bo("outputs",()=>{const e=WU(VU(sm(()=>Nt.outputs.count())),{initialValue:0}),t=oe(1),n=Sn("sortOutputsBy","Oldest"),r=Sn("currentImagesLayout","dynamic"),i=oe("all"),l=YU(()=>{const s=zt();let h;return i.value==="all"?h=Nt.outputs:i.value==="favourited"?h=Nt.outputs.where("starred").equals(1):i.value==="unfavourited"?h=Nt.outputs.where("starred").equals(0):h=Nt.outputs.where("rated").equals(0),n.value==="Newest"&&(h=h.reverse()),s.pageless==="Enabled"?h.toArray():h.offset((t.value-1)*s.pageSize).limit(s.pageSize).toArray()},[On(zt(),"pageless"),On(zt(),"pageSize"),t,n,i],{initialValue:[]});async function v(){if(navigator.storage&&navigator.storage.persist){const s=await navigator.storage.persist();console.log(`Persisted storage granted: ${s}`)}}async function o(){const s=localStorage.getItem("outputs");!s||(a(JSON.parse(s)),localStorage.removeItem("outputs"))}v(),o();async function a(s){const h=s.map(y=>{const{id:b,..._}=y;return _}),g=50,m=[];for(let y=0;y<h.length;y+=g){const b=h.slice(y,y+g),_=JSON.parse(JSON.stringify(b));console.log(`Inserting outputs into database. Chunk ${y} - ${y+g}:`,_);const w=await Nt.outputs.bulkAdd(_,void 0,{allKeys:!0});m.push(...w)}return Nt.outputs.bulkGet(m)}async function u(s){const h=Ut();if(!s.raw)return;if(!s.raw.type.includes("zip")){h.raiseError("Uploaded file needs to be a ZIP!",!1);return}const{files:g}=await t2.exports.loadAsync(s.raw);let m=0,y=0;Ui({message:"Loading images...",type:"info"});const b=[];for(const[w,S]of Object.entries(g)){const x=w.split("."),T=x.slice(-1).join("."),E=x.slice(0,-1).join(".");(T==="webp"||T==="png"||T==="gif"||T==="jpg"||T==="jpeg")&&b.push(new Promise(I=>{S.async("base64").then(async D=>{if(!g[E+".json"])return y++,I(null);const N=JSON.parse(await g[E+".json"].async("text"));m++,I({id:-1,image:`data:image/webp;base64,${D}`,...N,rated:N.rated?1:0,starred:N.starred?1:0})}).catch(D=>(h.raiseError(`Error while importing image: ${D}`,!1),y++,I(null)))}))}const _=await Promise.all(b);a(_.filter(w=>w!==null)),Ui({message:`Successfully imported ${m}/${m+y} images!`,type:"success"})}async function d(s){const h=await Nt.outputs.get(s);return Nt.outputs.update(s,{starred:h!=null&&h.starred?0:1})}function c(s){return Nt.outputs.delete(s)}async function f(s){const h=Ut();return h.selected=[],h.multiSelect=!1,s===await Nt.outputs.toCollection().primaryKeys()?Nt.outputs.clear():Nt.outputs.bulkDelete(s)}return{outputsLength:e,sortBy:n,filterBy:i,currentPage:t,currentOutputs:l,currentLayout:r,deleteOutput:c,deleteMultipleOutputs:f,toggleStarred:d,pushOutputs:a,importFromZip:u}}),Ut=Bo("ui",()=>{const e=oe(!1),t=oe([]),n=oe(["1"]),r=oe(-1),i=oe(!1),l=oe(!1);function v(f,s){console.error(f),Ui({type:"error",message:f,duration:s?0:void 0,showClose:s})}function o(f,s){console.warn(f),Ui({type:"warning",message:f,duration:s?0:void 0,showClose:s})}function a(){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 d(){const f=La(),s=zt(),h=f.currentOutputs.findIndex(m=>m.id===r.value),g=f.currentOutputs[h+1];if(g){r.value=g.id;return}if(f.currentPage<=Math.floor(f.outputsLength/s.pageSize)){const m=f.sortBy==="Newest"?await Nt.outputs.where(":id").below(r.value).last():await Nt.outputs.where(":id").above(r.value).first();f.currentPage++,r.value=(m==null?void 0:m.id)||r.value;return}}async function c(){const f=La(),s=f.currentOutputs.findIndex(g=>g.id===r.value),h=f.currentOutputs[s-1];if(f.currentPage>1&&!h){const g=f.sortBy==="Oldest"?await Nt.outputs.where(":id").below(r.value).last():await Nt.outputs.where(":id").above(r.value).first();f.currentPage--,r.value=(g==null?void 0:g.id)||r.value;return}if(h){r.value=h.id;return}}return{multiSelect:e,selected:t,activeCollapse:n,activeModal:r,showGeneratorBadge:i,showGeneratedImages:l,raiseError:v,raiseWarning:o,toggleMultiSelect:a,toggleSelection:u,openModalToRight:d,openModalToLeft:c}}),qt=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},XU={},KU={viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},GU=re("circle",{cy:"12",cx:"12",r:"12",stroke:"currentColor"},null,-1),qU=[GU];function ZU(e,t){return z(),se("svg",KU,qU)}const JU=qt(XU,[["render",ZU]]),os=Ee({__name:"MainMenuItem",props:{index:null,isMobile:{type:Boolean}},setup(e){return(t,n)=>(z(),be(C(Np),{index:e.index},{default:he(()=>[Te(t.$slots,"icon"),e.isMobile?ye("",!0):Te(t.$slots,"title",{key:0})]),_:3},8,["index"]))}});const QU="modulepreload",eH=function(e,t){return new URL(e,t).href},H0={},Hf=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=eH(l,r),l in H0)return;H0[l]=!0;const v=l.endsWith(".css"),o=v?'[rel="stylesheet"]':"";if(!!r)for(let d=i.length-1;d>=0;d--){const c=i[d];if(c.href===l&&(!v||c.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${o}`))return;const u=document.createElement("link");if(u.rel=v?"stylesheet":QU,v||(u.as="script",u.crossOrigin=""),u.href=l,document.head.appendChild(u),v)return new Promise((d,c)=>{u.addEventListener("load",d),u.addEventListener("error",()=>c(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>t())};const tH={},nH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 24 24"},rH=re("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),iH=[rH];function aH(e,t){return z(),se("svg",nH,iH)}const b2=qt(tH,[["render",aH]]),oH={},sH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},lH=re("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),uH=re("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),cH=re("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),fH=[lH,uH,cH];function dH(e,t){return z(),se("svg",sH,fH)}const hH=qt(oH,[["render",dH]]);function _2(){const e=oe("..."),t=setInterval(()=>{e.value=e.value.length>=3?"":".".repeat(e.value.length+1)},1e3);return li(()=>{clearInterval(t)}),{ellipsis:e}}const w2=e=>(ai("data-v-dc223229"),e=e(),oi(),e),pH={style:{"text-align":"center"}},mH=w2(()=>re("br",null,null,-1)),gH={class:"gen-text"},vH={key:0},yH={key:1},bH=w2(()=>re("br",null,null,-1)),_H=Ee({__name:"ImageProgress",props:{generated:null,total:null,elapsed:null},emits:["showGenerated"],setup(e){const{ellipsis:t}=_2();return(n,r)=>{var i,l;return z(),se("div",pH,[ue(C(gw),{type:"circle",percentage:100*((i=e.generated)!=null?i:0)/((l=e.total)!=null?l:1),width:200},{default:he(()=>[re("span",null,Ae(e.generated)+" / "+Ae(e.total),1),mH]),_:1},8,["percentage"]),re("div",gH,[e.generated===e.total?(z(),se("span",vH,"All done!")):(z(),se("span",yH,[Ue("Generating"+Ae(C(t))+Ae("\xA0".repeat(3-C(t).length)),1),bH,re("sup",null,Ae(e.elapsed),1)]))]),e.generated?(z(),se("div",{key:0,onClick:r[0]||(r[0]=v=>n.$emit("showGenerated")),class:"view-images"},[re("span",null,"View image"+Ae(e.total===1?"":"s"),1),ue(C(Le),null,{default:he(()=>[ue(C(GO))]),_:1})])):ye("",!0)])}}});const wH=qt(_H,[["__scopeId","data-v-dc223229"]]);const CH={style:{width:"200px"}},SH=Ee({__name:"InfoTooltip",props:{info:null,size:null,trigger:null},setup(e){return(t,n)=>(z(),be(C(Mr),{trigger:e.trigger},{content:he(()=>[re("div",CH,[Te(t.$slots,"default",{},()=>[Ue(Ae(e.info),1)])])]),default:he(()=>[ue(C(Le),{size:e.size},{default:he(()=>[ue(C(ap))]),_:1},8,["size"])]),_:3},8,["trigger"]))}}),xH={key:0,class:"align-vertical",style:{"margin-left":"5px"}},TH=Ee({__name:"FormLabel",props:{label:null,info:null,labelStyle:null},setup(e){return(t,n)=>(z(),se("span",{class:"align-vertical",style:Ne(e.labelStyle||"height: 100%;")},[Te(t.$slots,"default",{},()=>[Ue(Ae(e.label),1)],!0),e.info?(z(),se("div",xH,[ue(SH,{info:e.info,size:15},null,8,["info"])])):ye("",!0)],4))}});const Bl=qt(TH,[["__scopeId","data-v-ec7e7ec1"]]),kH={key:0,style:{width:"100%"}},EH={key:1,style:{display:"flex","flex-direction":"column",gap:"8px",width:"100%"}},gn=Ee({__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(Cp).smallerOrEqual("md");function l(d,c){var s;if(n.multiple&&Array.isArray(n.modelValue)){c=c||0;const h=(s=Array.isArray(d)?d[0]:d)!=null?s:n.min;let g=n.modelValue;g[c]=h,t("update:modelValue",g),t("change",g);return}const f=d!=null?d:n.min;t("update:modelValue",f),t("change",f)}function v(){if(!n.multiple||!Array.isArray(n.modelValue))return;const d=n.min;t("update:modelValue",[...n.modelValue,d]),t("onAdd",d)}function o(){if(!n.multiple||!Array.isArray(n.modelValue))return;const d=n.modelValue,c=d.pop();t("update:modelValue",d),t("onRemove",c)}const a=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(d,c)=>(z(),be(C(Li),{prop:e.prop},{label:he(()=>[ue(Bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Te(d.$slots,"label",{},()=>[Ue(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[!e.multiple||!Array.isArray(e.modelValue)?(z(),se("div",kH,[C(i)?ye("",!0):(z(),be(C(y0),{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)?(z(),be(C(Xd),{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"])):ye("",!0)])):(z(),se("div",EH,[(z(!0),se(je,null,jt(C(a),f=>(z(),se("div",{key:f},[C(i)?ye("",!0):(z(),be(C(y0),{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)?(z(),be(C(Xd),{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"])):ye("",!0)]))),128)),re("div",null,[ue(C(ht),{icon:C(sp),onClick:c[0]||(c[0]=()=>v())},null,8,["icon"]),ue(C(ht),{icon:C(h_),onClick:c[1]||(c[1]=()=>o()),disabled:C(a).length<=1},null,8,["icon","disabled"])])])),Te(d.$slots,"inline")]),_:3},8,["prop"]))}});const fo=Ee({__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)=>(z(),be(C(Li),{prop:e.prop},{label:he(()=>[ue(Bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Te(r.$slots,"label",{},()=>[Ue(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ue(C(pw),{"model-value":e.modelValue,filterable:e.filterable,multiple:e.multiple,placement:e.placement,onChange:n,placeholder:"Select"},{default:he(()=>[(z(!0),se(je,null,jt(e.options,l=>(z(),be(C(mw),{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"]),Te(r.$slots,"inline")]),_:3},8,["prop"]))}}),wh=Ee({__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,clearable:{type:Boolean},clearIcon: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)=>(z(),be(C(Li),{prop:e.prop},{label:he(()=>[ue(Bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Te(i.$slots,"label",{},()=>[Ue(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ue(C(Wa),{"model-value":e.modelValue,autosize:e.autosize,resize:e.resize,onInput:r,type:e.type,placeholder:e.placeholder,clearable:e.clearable,"clear-icon":e.clearIcon,onFocus:l[0]||(l[0]=v=>i.$emit("focus")),onBlur:l[1]||(l[1]=v=>i.$emit("blur"))},{append:he(()=>[Te(i.$slots,"append")]),_:3},8,["model-value","autosize","resize","type","placeholder","clearable","clear-icon"]),Te(i.$slots,"inline")]),_:3},8,["prop"]))}});const Wf=Ee({__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 fb(()=>{n.disabled&&n.defaultValue!==void 0&&t("update:modelValue",n.defaultValue)}),(i,l)=>(z(),be(C(Li),{prop:e.prop},{label:he(()=>[ue(Bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Te(i.$slots,"label",{},()=>[Ue(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[e.disabledText&&e.disabled?(z(),be(C(Mr),{key:0,content:e.disabledText,placement:"top",enterable:!1,"hide-after":100},{default:he(()=>[ue(C(b0),{disabled:e.disabled,"model-value":e.modelValue,onChange:r},null,8,["disabled","model-value"])]),_:1},8,["content"])):(z(),be(C(b0),{key:1,disabled:e.disabled,"model-value":e.modelValue,onChange:r},null,8,["disabled","model-value"])),Te(i.$slots,"inline")]),_:3},8,["prop"]))}}),OH=e=>(ai("data-v-cf07eac2"),e=e(),oi(),e),AH=OH(()=>re("div",null,"Prompt",-1)),PH=Ee({__name:"FormPromptInput",setup(e){const t=Jt();return(n,r)=>(z(),be(wh,{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(()=>[AH]),_:1},8,["modelValue"]))}});const IH=qt(PH,[["__scopeId","data-v-cf07eac2"]]);const MH=e=>(ai("data-v-a260b725"),e=e(),oi(),e),LH={style:{position:"relative",height:"100%",width:"100%"}},RH=MH(()=>re("span",null,"Back to generation status",-1)),DH={class:"carousel-container"},$H=["src"],BH={class:"carousel-footer"},FH={style:{display:"flex","justify-content":"center"}},zH={style:{"white-space":"nowrap"}},NH=Ee({__name:"GeneratedCarousel",setup(e){const t=Jt(),n=Ut(),r=zt(),i=oe(0);function l(o){i.value=o,console.log(t.outputs[i.value])}function v(o){t.outputs.splice(t.outputs.findIndex(a=>a.output.id===o),1)}return(o,a)=>(z(),se("div",LH,[C(t).generating?(z(),se("div",{key:0,class:"back-to-generation",onClick:a[0]||(a[0]=u=>C(n).showGeneratedImages=!1)},[ue(C(Le),null,{default:he(()=>[ue(C(l_))]),_:1}),RH])):ye("",!0),re("div",DH,[ue(C(T$),{class:"carousel",autoplay:C(r).autoCarousel==="Enabled",trigger:"click","indicator-position":"outside",onChange:l},{default:he(()=>[(z(!0),se(je,null,jt(C(t).outputs,(u,d)=>(z(),be(C(k$),{key:d,style:{display:"flex","justify-content":"center"}},{default:he(()=>[u.type==="video"?(z(),se("video",{key:0,src:u.output.image,controls:"",style:{"max-width":"100%",height:"100%"}},null,8,$H)):ye("",!0),u.type==="image"?(z(),be(C(Fp),{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"])):ye("",!0)]),_:2},1024))),128))]),_:1},8,["autoplay"])]),re("div",BH,[ue(C(XB)),re("div",FH,[ue(C(k1),null,{default:he(()=>[re("div",zH,[ue(uC,{imageData:C(t).outputs[i.value].output,"on-delete":v,"show-dismiss":!0},null,8,["imageData"])])]),_:1})])])]))}});const jH=qt(NH,[["__scopeId","data-v-a260b725"]]);var Un={};const VH={},UH=Object.freeze(Object.defineProperty({__proto__:null,default:VH},Symbol.toStringTag,{value:"Module"})),Yf=a$(UH);(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=Yf,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=Yf.implForWrapper,t.nodeCanvas=Yf.Canvas,t.window=r,DOMParser=t.window.DOMParser}t.isTouchSupported="ontouchstart"in t.window||"ontouchstart"in t.document||t.window&&t.window.navigator&&t.window.navigator.maxTouchPoints>0,t.isLikelyNode=typeof Buffer<"u"&&typeof window>"u",t.SHARED_ATTRIBUTES=["display","transform","fill","fill-opacity","fill-rule","opacity","stroke","stroke-dasharray","stroke-linecap","stroke-dashoffset","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","id","paint-order","vector-effect","instantiated_by_use","clip-path"],t.DPI=96,t.reNum="(?:[-+]?(?:\\d+|\\d*\\.\\d+)(?:[eE][-+]?\\d+)?)",t.commaWsp="(?:\\s+,?\\s*|,\\s*)",t.rePathCommand=/([-+]?((\d+\.\d+)|((\d+)|(\.\d+)))(?:[eE][-+]?\d+)?)/ig,t.reNonWord=/[ \n\.,;!\?\-]/,t.fontPaths={},t.iMatrix=[1,0,0,1,0,0],t.svgNS="http://www.w3.org/2000/svg",t.perfLimitSizeTotal=2097152,t.maxCacheSideLimit=4096,t.minCacheSideLimit=256,t.charWidthsCache={},t.textureSize=2048,t.disableStyleCopyPaste=!1,t.enableGLFiltering=!0,t.devicePixelRatio=t.window.devicePixelRatio||t.window.webkitDevicePixelRatio||t.window.mozDevicePixelRatio||1,t.browserShadowBlurConstant=1,t.arcToSegmentsCache={},t.boundsOfCurveCache={},t.cachesBoundsOfCurve=!0,t.forceGLPutImageData=!1,t.initFilterBackend=function(){if(t.enableGLFiltering&&t.isWebglSupported&&t.isWebglSupported(t.textureSize))return console.log("max texture size: "+t.maxTextureSize),new t.WebglFilterBackend({tileSize:t.textureSize});if(t.Canvas2dFilterBackend)return new t.Canvas2dFilterBackend},typeof document<"u"&&typeof window<"u"&&(window.fabric=t),function(){function o(s,h){if(!!this.__eventListeners[s]){var g=this.__eventListeners[s];h?g[g.indexOf(h)]=!1:t.util.array.fill(g,!1)}}function a(s,h){if(this.__eventListeners||(this.__eventListeners={}),arguments.length===1)for(var g in s)this.on(g,s[g]);else this.__eventListeners[s]||(this.__eventListeners[s]=[]),this.__eventListeners[s].push(h);return this}function u(s,h){var g=function(){h.apply(this,arguments),this.off(s,g)}.bind(this);this.on(s,g)}function d(s,h){if(arguments.length===1)for(var g in s)u.call(this,g,s[g]);else u.call(this,s,h);return this}function c(s,h){if(!this.__eventListeners)return this;if(arguments.length===0)for(s in this.__eventListeners)o.call(this,s);else if(arguments.length===1&&typeof arguments[0]=="object")for(var g in s)o.call(this,g,s[g]);else o.call(this,s,h);return this}function f(s,h){if(!this.__eventListeners)return this;var g=this.__eventListeners[s];if(!g)return this;for(var m=0,y=g.length;m<y;m++)g[m]&&g[m].call(this,h||{});return this.__eventListeners[s]=g.filter(function(b){return b!==!1}),this}t.Observable={fire:f,on:a,once:d,off:c}}(),t.Collection={_objects:[],add:function(){if(this._objects.push.apply(this._objects,arguments),this._onObjectAdded)for(var o=0,a=arguments.length;o<a;o++)this._onObjectAdded(arguments[o]);return this.renderOnAddRemove&&this.requestRenderAll(),this},insertAt:function(o,a,u){var d=this._objects;return u?d[a]=o:d.splice(a,0,o),this._onObjectAdded&&this._onObjectAdded(o),this.renderOnAddRemove&&this.requestRenderAll(),this},remove:function(){for(var o=this._objects,a,u=!1,d=0,c=arguments.length;d<c;d++)a=o.indexOf(arguments[d]),a!==-1&&(u=!0,o.splice(a,1),this._onObjectRemoved&&this._onObjectRemoved(arguments[d]));return this.renderOnAddRemove&&u&&this.requestRenderAll(),this},forEachObject:function(o,a){for(var u=this.getObjects(),d=0,c=u.length;d<c;d++)o.call(a,u[d],d,u);return this},getObjects:function(o){return typeof o>"u"?this._objects.concat():this._objects.filter(function(a){return a.type===o})},item:function(o){return this._objects[o]},isEmpty:function(){return this._objects.length===0},size:function(){return this._objects.length},contains:function(o,a){return this._objects.indexOf(o)>-1?!0:a?this._objects.some(function(u){return typeof u.contains=="function"&&u.contains(o,!0)}):!1},complexity:function(){return this._objects.reduce(function(o,a){return o+=a.complexity?a.complexity():0,o},0)}},t.CommonMethods={_setOptions:function(o){for(var a in o)this.set(a,o[a])},_initGradient:function(o,a){o&&o.colorStops&&!(o instanceof t.Gradient)&&this.set(a,new t.Gradient(o))},_initPattern:function(o,a,u){o&&o.source&&!(o instanceof t.Pattern)?this.set(a,new t.Pattern(o,u)):u&&u()},_setObject:function(o){for(var a in o)this._set(a,o[a])},set:function(o,a){return typeof o=="object"?this._setObject(o):this._set(o,a),this},_set:function(o,a){this[o]=a},toggle:function(o){var a=this.get(o);return typeof a=="boolean"&&this.set(o,!a),this},get:function(o){return this[o]}},function(o){var a=Math.sqrt,u=Math.atan2,d=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 h=s/f;switch(h){case 1:case 3:return 0;case 2:return-1}return Math.cos(s)},sin:function(s){if(s===0)return 0;var h=s/f,g=1;switch(s<0&&(g=-1),h){case 1:return g;case 2:return 0;case 3:return-g}return Math.sin(s)},removeFromArray:function(s,h){var g=s.indexOf(h);return g!==-1&&s.splice(g,1),s},getRandomInt:function(s,h){return Math.floor(Math.random()*(h-s+1))+s},degreesToRadians:function(s){return s*c},radiansToDegrees:function(s){return s/c},rotatePoint:function(s,h,g){var m=new t.Point(s.x-h.x,s.y-h.y),y=t.util.rotateVector(m,g);return new t.Point(y.x,y.y).addEquals(h)},rotateVector:function(s,h){var g=t.util.sin(h),m=t.util.cos(h),y=s.x*m-s.y*g,b=s.x*g+s.y*m;return{x:y,y:b}},createVector:function(s,h){return new t.Point(h.x-s.x,h.y-s.y)},calcAngleBetweenVectors:function(s,h){return Math.acos((s.x*h.x+s.y*h.y)/(Math.hypot(s.x,s.y)*Math.hypot(h.x,h.y)))},getHatVector:function(s){return new t.Point(s.x,s.y).multiply(1/Math.hypot(s.x,s.y))},getBisector:function(s,h,g){var m=t.util.createVector(s,h),y=t.util.createVector(s,g),b=t.util.calcAngleBetweenVectors(m,y),_=t.util.calcAngleBetweenVectors(t.util.rotateVector(m,b),y),w=b*(_===0?1:-1)/2;return{vector:t.util.getHatVector(t.util.rotateVector(m,w)),angle:b}},projectStrokeOnPoints:function(s,h,g){var m=[],y=h.strokeWidth/2,b=h.strokeUniform?new t.Point(1/h.scaleX,1/h.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,E;S===0?(E=s[S+1],T=g?_(t.util.createVector(E,x)).addEquals(x):s[s.length-1]):S===s.length-1?(T=s[S-1],E=g?_(t.util.createVector(T,x)).addEquals(x):s[0]):(T=s[S-1],E=s[S+1]);var I=t.util.getBisector(x,T,E),D=I.vector,N=I.angle,L,F;if(h.strokeLineJoin==="miter"&&(L=-y/Math.sin(N/2),F=new t.Point(D.x*L*b.x,D.y*L*b.y),Math.hypot(F.x,F.y)/y<=h.strokeMiterLimit)){m.push(x.add(F)),m.push(x.subtract(F));return}L=-y*Math.SQRT2,F=new t.Point(D.x*L*b.x,D.y*L*b.y),m.push(x.add(F)),m.push(x.subtract(F))}),m},transformPoint:function(s,h,g){return g?new t.Point(h[0]*s.x+h[2]*s.y,h[1]*s.x+h[3]*s.y):new t.Point(h[0]*s.x+h[2]*s.y+h[4],h[1]*s.x+h[3]*s.y+h[5])},makeBoundingBoxFromPoints:function(s,h){if(h)for(var g=0;g<s.length;g++)s[g]=t.util.transformPoint(s[g],h);var m=[s[0].x,s[1].x,s[2].x,s[3].x],y=t.util.array.min(m),b=t.util.array.max(m),_=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 h=1/(s[0]*s[3]-s[1]*s[2]),g=[h*s[3],-h*s[1],-h*s[2],h*s[0]],m=t.util.transformPoint({x:s[4],y:s[5]},g,!0);return g[4]=-m.x,g[5]=-m.y,g},toFixed:function(s,h){return parseFloat(Number(s).toFixed(h))},parseUnit:function(s,h){var g=/\D{0,2}$/.exec(s),m=parseFloat(s);switch(h||(h=t.Text.DEFAULT_SVG_FONT_SIZE),g[0]){case"mm":return m*t.DPI/25.4;case"cm":return m*t.DPI/2.54;case"in":return m*t.DPI;case"pt":return m*t.DPI/72;case"pc":return m*t.DPI/72*12;case"em":return m*h;default:return m}},falseFunction:function(){return!1},getKlass:function(s,h){return s=t.util.string.camelize(s.charAt(0).toUpperCase()+s.slice(1)),t.util.resolveNamespace(h)[s]},getSvgAttributes:function(s){var h=["instantiated_by_use","style","id","class"];switch(s){case"linearGradient":h=h.concat(["x1","y1","x2","y2","gradientUnits","gradientTransform"]);break;case"radialGradient":h=h.concat(["gradientUnits","gradientTransform","cx","cy","r","fx","fy","fr"]);break;case"stop":h=h.concat(["offset","stop-color","stop-opacity"]);break}return h},resolveNamespace:function(s){if(!s)return t;var h=s.split("."),g=h.length,m,y=o||t.window;for(m=0;m<g;++m)y=y[h[m]];return y},loadImage:function(s,h,g,m){if(!s){h&&h.call(g,s);return}var y=t.util.createImage(),b=function(){h&&h.call(g,y,!1),y=y.onload=y.onerror=null};y.onload=b,y.onerror=function(){t.log("Error loading "+y.src),h&&h.call(g,null,!0),y=y.onload=y.onerror=null},s.indexOf("data")!==0&&m!==void 0&&m!==null&&(y.crossOrigin=m),s.substring(0,14)==="data:image/svg"&&(y.onload=null,t.util.loadImageInDom(y,b)),y.src=s},loadImageInDom:function(s,h){var g=t.document.createElement("div");g.style.width=g.style.height="1px",g.style.left=g.style.top="-100%",g.style.position="absolute",g.appendChild(s),t.document.querySelector("body").appendChild(g),s.onload=function(){h(),g.parentNode.removeChild(g),g=null}},enlivenObjects:function(s,h,g,m){s=s||[];var y=[],b=0,_=s.length;function w(){++b===_&&h&&h(y.filter(function(S){return S}))}if(!_){h&&h(y);return}s.forEach(function(S,x){if(!S||!S.type){w();return}var T=t.util.getKlass(S.type,g);T.fromObject(S,function(E,I){I||(y[x]=E),m&&m(S,E,I),w()})})},enlivenObjectEnlivables:function(s,h,g){var m=t.Object.ENLIVEN_PROPS.filter(function(y){return!!s[y]});t.util.enlivenObjects(m.map(function(y){return s[y]}),function(y){var b={};m.forEach(function(_,w){b[_]=y[w],h&&(h[_]=y[w])}),g&&g(b)})},enlivenPatterns:function(s,h){s=s||[];function g(){++y===b&&h&&h(m)}var m=[],y=0,b=s.length;if(!b){h&&h(m);return}s.forEach(function(_,w){_&&_.source?new t.Pattern(_,function(S){m[w]=S,g()}):(m[w]=_,g())})},groupSVGElements:function(s,h,g){var m;return s&&s.length===1?(typeof g<"u"&&(s[0].sourcePath=g),s[0]):(h&&(h.width&&h.height?h.centerPoint={x:h.width/2,y:h.height/2}:(delete h.width,delete h.height)),m=new t.Group(s,h),typeof g<"u"&&(m.sourcePath=g),m)},populateWithProperties:function(s,h,g){if(g&&Array.isArray(g))for(var m=0,y=g.length;m<y;m++)g[m]in s&&(h[g[m]]=s[g[m]])},createCanvasElement:function(){return t.document.createElement("canvas")},copyCanvasElement:function(s){var h=t.util.createCanvasElement();return h.width=s.width,h.height=s.height,h.getContext("2d").drawImage(s,0,0),h},toDataURL:function(s,h,g){return s.toDataURL("image/"+h,g)},createImage:function(){return t.document.createElement("img")},multiplyTransformMatrices:function(s,h,g){return[s[0]*h[0]+s[2]*h[1],s[1]*h[0]+s[3]*h[1],s[0]*h[2]+s[2]*h[3],s[1]*h[2]+s[3]*h[3],g?0:s[0]*h[4]+s[2]*h[5]+s[4],g?0:s[1]*h[4]+s[3]*h[5]+s[5]]},qrDecompose:function(s){var h=u(s[1],s[0]),g=d(s[0],2)+d(s[1],2),m=a(g),y=(s[0]*s[3]-s[2]*s[1])/m,b=u(s[0]*s[2]+s[1]*s[3],g);return{angle:h/c,scaleX:m,scaleY:y,skewX:b/c,skewY:0,translateX:s[4],translateY:s[5]}},calcRotateMatrix:function(s){if(!s.angle)return t.iMatrix.concat();var h=t.util.degreesToRadians(s.angle),g=t.util.cos(h),m=t.util.sin(h);return[g,m,-m,g,0,0]},calcDimensionsMatrix:function(s){var h=typeof s.scaleX>"u"?1:s.scaleX,g=typeof s.scaleY>"u"?1:s.scaleY,m=[s.flipX?-h:h,0,0,s.flipY?-g:g,0,0],y=t.util.multiplyTransformMatrices,b=t.util.degreesToRadians;return s.skewX&&(m=y(m,[1,0,Math.tan(b(s.skewX)),1],!0)),s.skewY&&(m=y(m,[1,Math.tan(b(s.skewY)),0,1],!0)),m},composeMatrix:function(s){var h=[1,0,0,1,s.translateX||0,s.translateY||0],g=t.util.multiplyTransformMatrices;return s.angle&&(h=g(h,t.util.calcRotateMatrix(s))),(s.scaleX!==1||s.scaleY!==1||s.skewX||s.skewY||s.flipX||s.flipY)&&(h=g(h,t.util.calcDimensionsMatrix(s))),h},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,h,g,m){m>0&&(h>m?h-=m:h=0,g>m?g-=m:g=0);var y=!0,b,_,w=s.getImageData(h,g,m*2||1,m*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 h="meet",g="Mid",m="Mid",y=s.split(" "),b;return y&&y.length&&(h=y.pop(),h!=="meet"&&h!=="slice"?(b=h,h="meet"):y.length&&(b=y.pop())),g=b!=="none"?b.slice(1,4):"none",m=b!=="none"?b.slice(5,8):"none",{meetOrSlice:h,alignX:g,alignY:m}},clearFabricFontCache:function(s){s=(s||"").toLowerCase(),s?t.charWidthsCache[s]&&delete t.charWidthsCache[s]:t.charWidthsCache={}},limitDimsByArea:function(s,h){var g=Math.sqrt(h*s),m=Math.floor(h/g);return{x:Math.floor(g),y:m}},capValue:function(s,h,g){return Math.max(s,Math.min(h,g))},findScaleToFit:function(s,h){return Math.min(h.width/s.width,h.height/s.height)},findScaleToCover:function(s,h){return Math.max(h.width/s.width,h.height/s.height)},matrixToSVG:function(s){return"matrix("+s.map(function(h){return t.util.toFixed(h,t.Object.NUM_FRACTION_DIGITS)}).join(" ")+")"},removeTransformFromObject:function(s,h){var g=t.util.invertTransform(h),m=t.util.multiplyTransformMatrices(g,s.calcOwnMatrix());t.util.applyTransformToObject(s,m)},addTransformToObject:function(s,h){t.util.applyTransformToObject(s,t.util.multiplyTransformMatrices(h,s.calcOwnMatrix()))},applyTransformToObject:function(s,h){var g=t.util.qrDecompose(h),m=new t.Point(g.translateX,g.translateY);s.flipX=!1,s.flipY=!1,s.set("scaleX",g.scaleX),s.set("scaleY",g.scaleY),s.skewX=g.skewX,s.skewY=g.skewY,s.angle=g.angle,s.setPositionByOrigin(m,"center","center")},sizeAfterTransform:function(s,h,g){var m=s/2,y=h/2,b=[{x:-m,y:-y},{x:m,y:-y},{x:-m,y},{x:m,y}],_=t.util.calcDimensionsMatrix(g),w=t.util.makeBoundingBoxFromPoints(b,_);return{x:w.width,y:w.height}},mergeClipPaths:function(s,h){var g=s,m=h;g.inverted&&!m.inverted&&(g=h,m=s),t.util.applyTransformToObject(m,t.util.multiplyTransformMatrices(t.util.invertTransform(g.calcTransformMatrix()),m.calcTransformMatrix()));var y=g.inverted&&m.inverted;return y&&(g.inverted=m.inverted=!1),new t.Group([g],{clipPath:m,inverted:y})},hasStyleChanged:function(s,h,g){return g=g||!1,s.fill!==h.fill||s.stroke!==h.stroke||s.strokeWidth!==h.strokeWidth||s.fontSize!==h.fontSize||s.fontFamily!==h.fontFamily||s.fontWeight!==h.fontWeight||s.fontStyle!==h.fontStyle||s.deltaY!==h.deltaY||g&&(s.overline!==h.overline||s.underline!==h.underline||s.linethrough!==h.linethrough)},stylesToArray:function(g,h){for(var g=t.util.object.clone(g,!0),m=h.split(`
`),y=-1,b={},_=[],w=0;w<m.length;w++){if(!g[w]){y+=m[w].length;continue}for(var S=0;S<m[w].length;S++){y++;var x=g[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,h){if(!Array.isArray(s))return s;for(var g=h.split(`
`),m=-1,y=0,b={},_=0;_<g.length;_++)for(var w=0;w<g[_].length;w++)m++,s[y]&&s[y].start<=m&&m<s[y].end&&(b[_]=b[_]||{},b[_][w]=Object.assign({},s[y].style),m===s[y].end-1&&y++);return b}}}(e),function(){var o=Array.prototype.join,a={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7},u={m:"l",M:"L"};function d(M,U,R,P,Q,j,A,q,G,te,fe){var pe=t.util.cos(M),ve=t.util.sin(M),H=t.util.cos(U),W=t.util.sin(U),k=R*Q*H-P*j*W+A,X=P*Q*H+R*j*W+q,Y=te+G*(-R*Q*ve-P*j*pe),$=fe+G*(-P*Q*ve+R*j*pe),B=k+G*(R*Q*W+P*j*H),K=X+G*(P*Q*W-R*j*H);return["C",Y,$,B,K,k,X]}function c(M,U,R,P,Q,j,A){var q=Math.PI,G=A*q/180,te=t.util.sin(G),fe=t.util.cos(G),pe=0,ve=0;R=Math.abs(R),P=Math.abs(P);var H=-fe*M*.5-te*U*.5,W=-fe*U*.5+te*M*.5,k=R*R,X=P*P,Y=W*W,$=H*H,B=k*X-k*Y-X*$,K=0;if(B<0){var ce=Math.sqrt(1-B/(k*X));R*=ce,P*=ce}else K=(Q===j?-1:1)*Math.sqrt(B/(k*Y+X*$));var ie=K*R*W/P,Z=-K*P*H/R,me=fe*ie-te*Z+M*.5,ae=te*ie+fe*Z+U*.5,ge=f(1,0,(H-ie)/R,(W-Z)/P),Ce=f((H-ie)/R,(W-Z)/P,(-H-ie)/R,(-W-Z)/P);j===0&&Ce>0?Ce-=2*q:j===1&&Ce<0&&(Ce+=2*q);for(var ke=Math.ceil(Math.abs(Ce/q*2)),Oe=[],ze=Ce/ke,_e=8/3*Math.sin(ze/4)*Math.sin(ze/4)/Math.sin(ze/2),Se=ge+ze,De=0;De<ke;De++)Oe[De]=d(ge,Se,fe,te,R,P,me,ae,_e,pe,ve),pe=Oe[De][5],ve=Oe[De][6],ge=Se,Se+=ze;return Oe}function f(M,U,R,P){var Q=Math.atan2(U,M),j=Math.atan2(P,R);return j>=Q?j-Q:2*Math.PI-(Q-j)}function s(M,U,R,P,Q,j,A,q){var G;if(t.cachesBoundsOfCurve&&(G=o.call(arguments),t.boundsOfCurveCache[G]))return t.boundsOfCurveCache[G];var te=Math.sqrt,fe=Math.min,pe=Math.max,ve=Math.abs,H=[],W=[[],[]],k,X,Y,$,B,K,ce,ie;X=6*M-12*R+6*Q,k=-3*M+9*R-9*Q+3*A,Y=3*R-3*M;for(var Z=0;Z<2;++Z){if(Z>0&&(X=6*U-12*P+6*j,k=-3*U+9*P-9*j+3*q,Y=3*P-3*U),ve(k)<1e-12){if(ve(X)<1e-12)continue;$=-Y/X,0<$&&$<1&&H.push($);continue}ce=X*X-4*Y*k,!(ce<0)&&(ie=te(ce),B=(-X+ie)/(2*k),0<B&&B<1&&H.push(B),K=(-X-ie)/(2*k),0<K&&K<1&&H.push(K))}for(var me,ae,ge=H.length,Ce=ge,ke;ge--;)$=H[ge],ke=1-$,me=ke*ke*ke*M+3*ke*ke*$*R+3*ke*$*$*Q+$*$*$*A,W[0][ge]=me,ae=ke*ke*ke*U+3*ke*ke*$*P+3*ke*$*$*j+$*$*$*q,W[1][ge]=ae;W[0][Ce]=M,W[1][Ce]=U,W[0][Ce+1]=A,W[1][Ce+1]=q;var Oe=[{x:fe.apply(null,W[0]),y:fe.apply(null,W[1])},{x:pe.apply(null,W[0]),y:pe.apply(null,W[1])}];return t.cachesBoundsOfCurve&&(t.boundsOfCurveCache[G]=Oe),Oe}function h(M,U,R){for(var P=R[1],Q=R[2],j=R[3],A=R[4],q=R[5],G=R[6],te=R[7],fe=c(G-M,te-U,P,Q,A,q,j),pe=0,ve=fe.length;pe<ve;pe++)fe[pe][1]+=M,fe[pe][2]+=U,fe[pe][3]+=M,fe[pe][4]+=U,fe[pe][5]+=M,fe[pe][6]+=U;return fe}function g(M){var U=0,R=0,P=M.length,Q=0,j=0,A,q,G,te=[],fe,pe,ve;for(q=0;q<P;++q){switch(G=!1,A=M[q].slice(0),A[0]){case"l":A[0]="L",A[1]+=U,A[2]+=R;case"L":U=A[1],R=A[2];break;case"h":A[1]+=U;case"H":A[0]="L",A[2]=R,U=A[1];break;case"v":A[1]+=R;case"V":A[0]="L",R=A[1],A[1]=U,A[2]=R;break;case"m":A[0]="M",A[1]+=U,A[2]+=R;case"M":U=A[1],R=A[2],Q=A[1],j=A[2];break;case"c":A[0]="C",A[1]+=U,A[2]+=R,A[3]+=U,A[4]+=R,A[5]+=U,A[6]+=R;case"C":pe=A[3],ve=A[4],U=A[5],R=A[6];break;case"s":A[0]="S",A[1]+=U,A[2]+=R,A[3]+=U,A[4]+=R;case"S":fe==="C"?(pe=2*U-pe,ve=2*R-ve):(pe=U,ve=R),U=A[3],R=A[4],A[0]="C",A[5]=A[3],A[6]=A[4],A[3]=A[1],A[4]=A[2],A[1]=pe,A[2]=ve,pe=A[3],ve=A[4];break;case"q":A[0]="Q",A[1]+=U,A[2]+=R,A[3]+=U,A[4]+=R;case"Q":pe=A[1],ve=A[2],U=A[3],R=A[4];break;case"t":A[0]="T",A[1]+=U,A[2]+=R;case"T":fe==="Q"?(pe=2*U-pe,ve=2*R-ve):(pe=U,ve=R),A[0]="Q",U=A[1],R=A[2],A[1]=pe,A[2]=ve,A[3]=U,A[4]=R;break;case"a":A[0]="A",A[6]+=U,A[7]+=R;case"A":G=!0,te=te.concat(h(U,R,A)),U=A[6],R=A[7];break;case"z":case"Z":U=Q,R=j;break}G||te.push(A),fe=A[0]}return te}function m(M,U,R,P){return Math.sqrt((R-M)*(R-M)+(P-U)*(P-U))}function y(M){return M*M*M}function b(M){return 3*M*M*(1-M)}function _(M){return 3*M*(1-M)*(1-M)}function w(M){return(1-M)*(1-M)*(1-M)}function S(M,U,R,P,Q,j,A,q){return function(G){var te=y(G),fe=b(G),pe=_(G),ve=w(G);return{x:A*te+Q*fe+R*pe+M*ve,y:q*te+j*fe+P*pe+U*ve}}}function x(M,U,R,P,Q,j,A,q){return function(G){var te=1-G,fe=3*te*te*(R-M)+6*te*G*(Q-R)+3*G*G*(A-Q),pe=3*te*te*(P-U)+6*te*G*(j-P)+3*G*G*(q-j);return Math.atan2(pe,fe)}}function T(M){return M*M}function E(M){return 2*M*(1-M)}function I(M){return(1-M)*(1-M)}function D(M,U,R,P,Q,j){return function(A){var q=T(A),G=E(A),te=I(A);return{x:Q*q+R*G+M*te,y:j*q+P*G+U*te}}}function N(M,U,R,P,Q,j){return function(A){var q=1-A,G=2*q*(R-M)+2*A*(Q-R),te=2*q*(P-U)+2*A*(j-P);return Math.atan2(te,G)}}function L(M,U,R){var P={x:U,y:R},Q,j=0,A;for(A=1;A<=100;A+=1)Q=M(A/100),j+=m(P.x,P.y,Q.x,Q.y),P=Q;return j}function F(M,U){for(var R=0,P=0,Q=M.iterator,j={x:M.x,y:M.y},A,q,G=.01,te=M.angleFinder,fe;P<U&&G>1e-4;)A=Q(R),fe=R,q=m(j.x,j.y,A.x,A.y),q+P>U?(R-=G,G/=2):(j=A,R+=G,P+=q);return A.angle=te(fe),A}function O(M){for(var U=0,R=M.length,P,Q=0,j=0,A=0,q=0,G=[],te,fe,pe,ve=0;ve<R;ve++){switch(P=M[ve],fe={x:Q,y:j,command:P[0]},P[0]){case"M":fe.length=0,A=Q=P[1],q=j=P[2];break;case"L":fe.length=m(Q,j,P[1],P[2]),Q=P[1],j=P[2];break;case"C":te=S(Q,j,P[1],P[2],P[3],P[4],P[5],P[6]),pe=x(Q,j,P[1],P[2],P[3],P[4],P[5],P[6]),fe.iterator=te,fe.angleFinder=pe,fe.length=L(te,Q,j),Q=P[5],j=P[6];break;case"Q":te=D(Q,j,P[1],P[2],P[3],P[4]),pe=N(Q,j,P[1],P[2],P[3],P[4]),fe.iterator=te,fe.angleFinder=pe,fe.length=L(te,Q,j),Q=P[3],j=P[4];break;case"Z":case"z":fe.destX=A,fe.destY=q,fe.length=m(Q,j,A,q),Q=A,j=q;break}U+=fe.length,G.push(fe)}return G.push({length:U,x:Q,y:j}),G}function V(M,U,R){R||(R=O(M));for(var P=0;U-R[P].length>0&&P<R.length-2;)U-=R[P].length,P++;var Q=R[P],j=U/Q.length,A=Q.command,q=M[P],G;switch(A){case"M":return{x:Q.x,y:Q.y,angle:0};case"Z":case"z":return G=new t.Point(Q.x,Q.y).lerp(new t.Point(Q.destX,Q.destY),j),G.angle=Math.atan2(Q.destY-Q.y,Q.destX-Q.x),G;case"L":return G=new t.Point(Q.x,Q.y).lerp(new t.Point(q[1],q[2]),j),G.angle=Math.atan2(q[2]-Q.y,q[1]-Q.x),G;case"C":return F(Q,U);case"Q":return F(Q,U)}}function ne(M){var U=[],R=[],P,Q,j=t.rePathCommand,A="[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?\\s*",q="("+A+")"+t.commaWsp,G="([01])"+t.commaWsp+"?",te=q+"?"+q+"?"+q+G+G+q+"?("+A+")",fe=new RegExp(te,"g"),pe,ve,H;if(!M||!M.match)return U;H=M.match(/[mzlhvcsqta][^mzlhvcsqta]*/gi);for(var W=0,k,X=H.length;W<X;W++){P=H[W],ve=P.slice(1).trim(),R.length=0;var Y=P.charAt(0);if(k=[Y],Y.toLowerCase()==="a")for(var $;$=fe.exec(ve);)for(var B=1;B<$.length;B++)R.push($[B]);else for(;pe=j.exec(ve);)R.push(pe[0]);for(var B=0,K=R.length;B<K;B++)Q=parseFloat(R[B]),isNaN(Q)||k.push(Q);var ce=a[Y.toLowerCase()],ie=u[Y]||Y;if(k.length-1>ce)for(var Z=1,me=k.length;Z<me;Z+=ce)U.push([Y].concat(k.slice(Z,Z+ce))),Y=ie;else U.push(k)}return U}function J(M,U){var R=[],P,Q=new t.Point(M[0].x,M[0].y),j=new t.Point(M[1].x,M[1].y),A=M.length,q=1,G=0,te=A>2;for(U=U||0,te&&(q=M[2].x<j.x?-1:M[2].x===j.x?0:1,G=M[2].y<j.y?-1:M[2].y===j.y?0:1),R.push(["M",Q.x-q*U,Q.y-G*U]),P=1;P<A;P++){if(!Q.eq(j)){var fe=Q.midPointFrom(j);R.push(["Q",Q.x,Q.y,fe.x,fe.y])}Q=M[P],P+1<M.length&&(j=M[P+1])}return te&&(q=Q.x>M[P-2].x?1:Q.x===M[P-2].x?0:-1,G=Q.y>M[P-2].y?1:Q.y===M[P-2].y?0:-1),R.push(["L",Q.x+q*U,Q.y+G*U]),R}function le(M,U,R){return R&&(U=t.util.multiplyTransformMatrices(U,[1,0,0,1,-R.x,-R.y])),M.map(function(P){for(var Q=P.slice(0),j={},A=1;A<P.length-1;A+=2)j.x=P[A],j.y=P[A+1],j=t.util.transformPoint(j,U),Q[A]=j.x,Q[A+1]=j.y;return Q})}t.util.joinPath=function(M){return M.map(function(U){return U.join(" ")}).join(" ")},t.util.parsePath=ne,t.util.makePathSimpler=g,t.util.getSmoothPathFromPoints=J,t.util.getPathSegmentsInfo=O,t.util.getBoundsOfCurve=s,t.util.getPointOnPath=V,t.util.transformPath=le}(),function(){var o=Array.prototype.slice;function a(s,h){for(var g=o.call(arguments,2),m=[],y=0,b=s.length;y<b;y++)m[y]=g.length?s[y][h].apply(s[y],g):s[y][h].call(s[y]);return m}function u(s,h){return f(s,h,function(g,m){return g>=m})}function d(s,h){return f(s,h,function(g,m){return g<m})}function c(s,h){for(var g=s.length;g--;)s[g]=h;return s}function f(s,h,g){if(!(!s||s.length===0)){var m=s.length-1,y=h?s[m][h]:s[m];if(h)for(;m--;)g(s[m][h],y)&&(y=s[m][h]);else for(;m--;)g(s[m],y)&&(y=s[m]);return y}}t.util.array={fill:c,invoke:a,min:d,max:u}}(),function(){function o(u,d,c){if(c)if(!t.isLikelyNode&&d instanceof Element)u=d;else if(d instanceof Array){u=[];for(var f=0,s=d.length;f<s;f++)u[f]=o({},d[f],c)}else if(d&&typeof d=="object")for(var h in d)h==="canvas"||h==="group"?u[h]=null:d.hasOwnProperty(h)&&(u[h]=o({},d[h],c));else u=d;else for(var h in d)u[h]=d[h];return u}function a(u,d){return o({},u,d)}t.util.object={extend:o,clone:a},t.util.object.extend(t.util,t.Observable)}(),function(){function o(f){return f.replace(/-+(.)?/g,function(s,h){return h?h.toUpperCase():""})}function a(f,s){return f.charAt(0).toUpperCase()+(s?f.slice(1):f.slice(1).toLowerCase())}function u(f){return f.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function d(f){var s=0,h,g=[];for(s=0,h;s<f.length;s++)(h=c(f,s))!==!1&&g.push(h);return g}function c(f,s){var h=f.charCodeAt(s);if(isNaN(h))return"";if(h<55296||h>57343)return f.charAt(s);if(55296<=h&&h<=56319){if(f.length<=s+1)throw"High surrogate without following low surrogate";var g=f.charCodeAt(s+1);if(56320>g||g>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 m=f.charCodeAt(s-1);if(55296>m||m>56319)throw"Low surrogate without preceding high surrogate";return!1}t.util.string={camelize:o,capitalize:a,escapeXml:u,graphemeSplit:d}}(),function(){var o=Array.prototype.slice,a=function(){},u=function(){for(var h in{toString:1})if(h==="toString")return!1;return!0}(),d=function(h,g,m){for(var y in g)y in h.prototype&&typeof h.prototype[y]=="function"&&(g[y]+"").indexOf("callSuper")>-1?h.prototype[y]=function(b){return function(){var _=this.constructor.superclass;this.constructor.superclass=m;var w=g[b].apply(this,arguments);if(this.constructor.superclass=_,b!=="initialize")return w}}(y):h.prototype[y]=g[y],u&&(g.toString!==Object.prototype.toString&&(h.prototype.toString=g.toString),g.valueOf!==Object.prototype.valueOf&&(h.prototype.valueOf=g.valueOf))};function c(){}function f(h){for(var g=null,m=this;m.constructor.superclass;){var y=m.constructor.superclass.prototype[h];if(m[h]!==y){g=y;break}m=m.constructor.superclass.prototype}return g?arguments.length>1?g.apply(this,o.call(arguments,1)):g.call(this):console.log("tried to callSuper "+h+", method not found in prototype chain",this)}function s(){var h=null,g=o.call(arguments,0);typeof g[0]=="function"&&(h=g.shift());function m(){this.initialize.apply(this,arguments)}m.superclass=h,m.subclasses=[],h&&(c.prototype=h.prototype,m.prototype=new c,h.subclasses.push(m));for(var y=0,b=g.length;y<b;y++)d(m,g[y],h);return m.prototype.initialize||(m.prototype.initialize=a),m.prototype.constructor=m,m.prototype.callSuper=f,m}t.util.createClass=s}(),function(){var o=!!t.document.createElement("div").attachEvent,a=["touchstart","touchmove","touchend"];t.util.addListener=function(d,c,f,s){d&&d.addEventListener(c,f,o?!1:s)},t.util.removeListener=function(d,c,f,s){d&&d.removeEventListener(c,f,o?!1:s)};function u(d){var c=d.changedTouches;return c&&c[0]?c[0]:d}t.util.getPointer=function(d){var c=d.target,f=t.util.getScrollLeftTop(c),s=u(d);return{x:s.clientX+f.left,y:s.clientY+f.top}},t.util.isTouchEvent=function(d){return a.indexOf(d.type)>-1||d.pointerType==="touch"}}(),function(){function o(s,h){var g=s.style;if(!g)return s;if(typeof h=="string")return s.style.cssText+=";"+h,h.indexOf("opacity")>-1?f(s,h.match(/opacity:\s*(\d?\.?\d*)/)[1]):s;for(var m in h)if(m==="opacity")f(s,h[m]);else{var y=m==="float"||m==="cssFloat"?typeof g.styleFloat>"u"?"cssFloat":"styleFloat":m;g.setProperty(y,h[m])}return s}var a=t.document.createElement("div"),u=typeof a.style.opacity=="string",d=typeof a.style.filter=="string",c=/alpha\s*\(\s*opacity\s*=\s*([^\)]+)\)/,f=function(s){return s};u?f=function(s,h){return s.style.opacity=h,s}:d&&(f=function(s,h){var g=s.style;return s.currentStyle&&!s.currentStyle.hasLayout&&(g.zoom=1),c.test(g.filter)?(h=h>=.9999?"":"alpha(opacity="+h*100+")",g.filter=g.filter.replace(c,h)):g.filter+=" alpha(opacity="+h*100+")",s}),t.util.setStyle=o}(),function(){var o=Array.prototype.slice;function a(w){return typeof w=="string"?t.document.getElementById(w):w}var u,d=function(w){return o.call(w,0)};try{u=d(t.document.childNodes)instanceof Array}catch{}u||(d=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 h(w){for(var S=0,x=0,T=t.document.documentElement,E=t.document.body||{scrollLeft:0,scrollTop:0};w&&(w.parentNode||w.host)&&(w=w.parentNode||w.host,w===t.document?(S=E.scrollLeft||T.scrollLeft||0,x=E.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 g(w){var S,x=w&&w.ownerDocument,T={left:0,top:0},E={left:0,top:0},I,D={borderLeftWidth:"left",borderTopWidth:"top",paddingLeft:"left",paddingTop:"top"};if(!x)return E;for(var N in D)E[D[N]]+=parseInt(m(w,N),10)||0;return S=x.documentElement,typeof w.getBoundingClientRect<"u"&&(T=w.getBoundingClientRect()),I=h(w),{left:T.left+I.left-(S.clientLeft||0)+E.left,top:T.top+I.top-(S.clientTop||0)+E.top}}var m;t.document.defaultView&&t.document.defaultView.getComputedStyle?m=function(w,S){var x=t.document.defaultView.getComputedStyle(w,null);return x?x[S]:void 0}:m=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(E){return typeof E.onselectstart<"u"&&(E.onselectstart=t.util.falseFunction),S?E.style[S]="none":typeof E.unselectable=="string"&&(E.unselectable="on"),E}function T(E){return typeof E.onselectstart<"u"&&(E.onselectstart=null),S?E.style[S]="":typeof E.unselectable=="string"&&(E.unselectable=""),E}t.util.makeElementUnselectable=x,t.util.makeElementSelectable=T}();function 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=a,t.util.toArray=d,t.util.addClass=f,t.util.makeElement=c,t.util.wrapElement=s,t.util.getScrollLeftTop=h,t.util.getElementOffset=g,t.util.getNodeCanvas=y,t.util.cleanUpJsdomNode=b}(),function(){function o(d,c){return d+(/\?/.test(d)?"&":"?")+c}function a(){}function u(d,c){c||(c={});var f=c.method?c.method.toUpperCase():"GET",s=c.onComplete||function(){},h=new t.window.XMLHttpRequest,g=c.body||c.parameters;return h.onreadystatechange=function(){h.readyState===4&&(s(h),h.onreadystatechange=a)},f==="GET"&&(g=null,typeof c.parameters=="string"&&(d=o(d,c.parameters))),h.open(f,d,!0),(f==="POST"||f==="PUT")&&h.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),h.send(g),h}t.util.request=u}(),t.log=console.log,t.warn=console.warn,function(){var o=t.util.object.extend,a=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 d(){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 _=o(a(y),{cancel:function(){return b=!0,w()},currentValue:"startValue"in y?y.startValue:0,completionRate:0,durationRate:0}),t.runningAnimations.push(_),g(function(S){var x=S||+new Date,T=y.duration||500,E=x+T,I,D=y.onChange||d,N=y.abort||d,L=y.onComplete||d,F=y.easing||c,O="startValue"in y?y.startValue.length>0:!1,V="startValue"in y?y.startValue:0,ne="endValue"in y?y.endValue:100,J=y.byValue||(O?V.map(function(le,M){return ne[M]-V[M]}):ne-V);y.onStart&&y.onStart(),function le(M){I=M||+new Date;var U=I>E?T:I-x,R=U/T,P=O?V.map(function(j,A){return F(U,V[A],J[A],T)}):F(U,V,J,T),Q=Math.abs(O?(P[0]-V[0])/J[0]:(P-V)/J);if(_.currentValue=O?P.slice():P,_.completionRate=Q,_.durationRate=R,!b){if(N(P,Q,R)){w();return}if(I>E){_.currentValue=O?ne.slice():ne,_.completionRate=1,_.durationRate=1,D(O?ne.slice():ne,1,1),L(ne,1,1),w();return}else D(P,Q,R),g(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)},h=t.window.cancelAnimationFrame||t.window.clearTimeout;function g(){return s.apply(t.window,arguments)}function m(){return h.apply(t.window,arguments)}t.util.animate=f,t.util.requestAnimFrame=g,t.util.cancelAnimFrame=m,t.runningAnimations=u}(),function(){function o(u,d,c){var f="rgba("+parseInt(u[0]+c*(d[0]-u[0]),10)+","+parseInt(u[1]+c*(d[1]-u[1]),10)+","+parseInt(u[2]+c*(d[2]-u[2]),10);return f+=","+(u&&d?parseFloat(u[3]+c*(d[3]-u[3])):1),f+=")",f}function a(u,d,c,f){var s=new t.Color(u).getSource(),h=new t.Color(d).getSource(),g=f.onComplete,m=f.onChange;return f=f||{},t.util.animate(t.util.object.extend(f,{duration:c||500,startValue:s,endValue:h,byValue:h,easing:function(y,b,_,w){var S=f.colorEasing?f.colorEasing(y,w):1-Math.cos(y/w*(Math.PI/2));return o(b,_,S)},onComplete:function(y,b,_){if(g)return g(o(h,h,0),b,_)},onChange:function(y,b,_){if(m){if(Array.isArray(y))return m(o(y,y,0),b,_);m(y,b,_)}}}))}t.util.animateColor=a}(),function(){function o(M,U,R,P){return M<Math.abs(U)?(M=U,P=R/4):U===0&&M===0?P=R/(2*Math.PI)*Math.asin(1):P=R/(2*Math.PI)*Math.asin(U/M),{a:M,c:U,p:R,s:P}}function a(M,U,R){return M.a*Math.pow(2,10*(U-=1))*Math.sin((U*R-M.s)*(2*Math.PI)/M.p)}function u(M,U,R,P){return R*((M=M/P-1)*M*M+1)+U}function d(M,U,R,P){return M/=P/2,M<1?R/2*M*M*M+U:R/2*((M-=2)*M*M+2)+U}function c(M,U,R,P){return R*(M/=P)*M*M*M+U}function f(M,U,R,P){return-R*((M=M/P-1)*M*M*M-1)+U}function s(M,U,R,P){return M/=P/2,M<1?R/2*M*M*M*M+U:-R/2*((M-=2)*M*M*M-2)+U}function h(M,U,R,P){return R*(M/=P)*M*M*M*M+U}function g(M,U,R,P){return R*((M=M/P-1)*M*M*M*M+1)+U}function m(M,U,R,P){return M/=P/2,M<1?R/2*M*M*M*M*M+U:R/2*((M-=2)*M*M*M*M+2)+U}function y(M,U,R,P){return-R*Math.cos(M/P*(Math.PI/2))+R+U}function b(M,U,R,P){return R*Math.sin(M/P*(Math.PI/2))+U}function _(M,U,R,P){return-R/2*(Math.cos(Math.PI*M/P)-1)+U}function w(M,U,R,P){return M===0?U:R*Math.pow(2,10*(M/P-1))+U}function S(M,U,R,P){return M===P?U+R:R*(-Math.pow(2,-10*M/P)+1)+U}function x(M,U,R,P){return M===0?U:M===P?U+R:(M/=P/2,M<1?R/2*Math.pow(2,10*(M-1))+U:R/2*(-Math.pow(2,-10*--M)+2)+U)}function T(M,U,R,P){return-R*(Math.sqrt(1-(M/=P)*M)-1)+U}function E(M,U,R,P){return R*Math.sqrt(1-(M=M/P-1)*M)+U}function I(M,U,R,P){return M/=P/2,M<1?-R/2*(Math.sqrt(1-M*M)-1)+U:R/2*(Math.sqrt(1-(M-=2)*M)+1)+U}function D(M,U,R,P){var Q=1.70158,j=0,A=R;if(M===0)return U;if(M/=P,M===1)return U+R;j||(j=P*.3);var q=o(A,R,j,Q);return-a(q,M,P)+U}function N(M,U,R,P){var Q=1.70158,j=0,A=R;if(M===0)return U;if(M/=P,M===1)return U+R;j||(j=P*.3);var q=o(A,R,j,Q);return q.a*Math.pow(2,-10*M)*Math.sin((M*P-q.s)*(2*Math.PI)/q.p)+q.c+U}function L(M,U,R,P){var Q=1.70158,j=0,A=R;if(M===0)return U;if(M/=P/2,M===2)return U+R;j||(j=P*(.3*1.5));var q=o(A,R,j,Q);return M<1?-.5*a(q,M,P)+U:q.a*Math.pow(2,-10*(M-=1))*Math.sin((M*P-q.s)*(2*Math.PI)/q.p)*.5+q.c+U}function F(M,U,R,P,Q){return Q===void 0&&(Q=1.70158),R*(M/=P)*M*((Q+1)*M-Q)+U}function O(M,U,R,P,Q){return Q===void 0&&(Q=1.70158),R*((M=M/P-1)*M*((Q+1)*M+Q)+1)+U}function V(M,U,R,P,Q){return Q===void 0&&(Q=1.70158),M/=P/2,M<1?R/2*(M*M*(((Q*=1.525)+1)*M-Q))+U:R/2*((M-=2)*M*(((Q*=1.525)+1)*M+Q)+2)+U}function ne(M,U,R,P){return R-J(P-M,0,R,P)+U}function J(M,U,R,P){return(M/=P)<1/2.75?R*(7.5625*M*M)+U:M<2/2.75?R*(7.5625*(M-=1.5/2.75)*M+.75)+U:M<2.5/2.75?R*(7.5625*(M-=2.25/2.75)*M+.9375)+U:R*(7.5625*(M-=2.625/2.75)*M+.984375)+U}function le(M,U,R,P){return M<P/2?ne(M*2,0,R,P)*.5+U:J(M*2-P,0,R,P)*.5+R*.5+U}t.util.ease={easeInQuad:function(M,U,R,P){return R*(M/=P)*M+U},easeOutQuad:function(M,U,R,P){return-R*(M/=P)*(M-2)+U},easeInOutQuad:function(M,U,R,P){return M/=P/2,M<1?R/2*M*M+U:-R/2*(--M*(M-2)-1)+U},easeInCubic:function(M,U,R,P){return R*(M/=P)*M*M+U},easeOutCubic:u,easeInOutCubic:d,easeInQuart:c,easeOutQuart:f,easeInOutQuart:s,easeInQuint:h,easeOutQuint:g,easeInOutQuint:m,easeInSine:y,easeOutSine:b,easeInOutSine:_,easeInExpo:w,easeOutExpo:S,easeInOutExpo:x,easeInCirc:T,easeOutCirc:E,easeInOutCirc:I,easeInElastic:D,easeOutElastic:N,easeInOutElastic:L,easeInBack:F,easeOutBack:O,easeInOutBack:V,easeInBounce:ne,easeOutBounce:J,easeInOutBounce:le}}(),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.extend,d=a.util.object.clone,c=a.util.toFixed,f=a.util.parseUnit,s=a.util.multiplyTransformMatrices,h=["path","circle","polygon","polyline","ellipse","rect","line","image","text"],g=["symbol","image","marker","pattern","view","svg"],m=["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";a.svgValidTagNamesRegEx=E(h),a.svgViewBoxElementsRegEx=E(g),a.svgInvalidAncestorsRegEx=E(m),a.svgValidParentsRegEx=E(y),a.cssRules={},a.gradientDefs={},a.clipPaths={};function x(j){return j in b?b[j]:j}function T(j,A,q,G){var te=Array.isArray(A),fe;if((j==="fill"||j==="stroke")&&A==="none")A="";else{if(j==="strokeUniform")return A==="non-scaling-stroke";if(j==="strokeDashArray")A==="none"?A=null:A=A.replace(/,/g," ").split(/\s+/).map(parseFloat);else if(j==="transformMatrix")q&&q.transformMatrix?A=s(q.transformMatrix,a.parseTransformAttribute(A)):A=a.parseTransformAttribute(A);else if(j==="visible")A=A!=="none"&&A!=="hidden",q&&q.visible===!1&&(A=!1);else if(j==="opacity")A=parseFloat(A),q&&typeof q.opacity<"u"&&(A*=q.opacity);else if(j==="textAnchor")A=A==="start"?"left":A==="end"?"right":"center";else if(j==="charSpacing")fe=f(A,G)/G*1e3;else if(j==="paintFirst"){var pe=A.indexOf("fill"),ve=A.indexOf("stroke"),A="fill";(pe>-1&&ve>-1&&ve<pe||pe===-1&&ve>-1)&&(A="stroke")}else{if(j==="href"||j==="xlink:href"||j==="font")return A;if(j==="imageSmoothing")return A==="optimizeQuality";fe=te?A.map(f):f(A,G)}}return!te&&isNaN(fe)?A:fe}function E(j){return new RegExp("^("+j.join("|")+")\\b","i")}function I(j){for(var A in _)if(!(typeof j[_[A]]>"u"||j[A]==="")){if(typeof j[A]>"u"){if(!a.Object.prototype[A])continue;j[A]=a.Object.prototype[A]}if(j[A].indexOf("url(")!==0){var q=new a.Color(j[A]);j[A]=q.setAlpha(c(q.getAlpha()*j[_[A]],2)).toRgba()}}return j}function D(j,A){var q,G=[],te,fe,pe;for(fe=0,pe=A.length;fe<pe;fe++)q=A[fe],te=j.getElementsByTagName(q),G=G.concat(Array.prototype.slice.call(te));return G}a.parseTransformAttribute=function(){function j(Z,me){var ae=a.util.cos(me[0]),ge=a.util.sin(me[0]),Ce=0,ke=0;me.length===3&&(Ce=me[1],ke=me[2]),Z[0]=ae,Z[1]=ge,Z[2]=-ge,Z[3]=ae,Z[4]=Ce-(ae*Ce-ge*ke),Z[5]=ke-(ge*Ce+ae*ke)}function A(Z,me){var ae=me[0],ge=me.length===2?me[1]:me[0];Z[0]=ae,Z[3]=ge}function q(Z,me,ae){Z[ae]=Math.tan(a.util.degreesToRadians(me[0]))}function G(Z,me){Z[4]=me[0],me.length===2&&(Z[5]=me[1])}var te=a.iMatrix,fe=a.reNum,pe=a.commaWsp,ve="(?:(skewX)\\s*\\(\\s*("+fe+")\\s*\\))",H="(?:(skewY)\\s*\\(\\s*("+fe+")\\s*\\))",W="(?:(rotate)\\s*\\(\\s*("+fe+")(?:"+pe+"("+fe+")"+pe+"("+fe+"))?\\s*\\))",k="(?:(scale)\\s*\\(\\s*("+fe+")(?:"+pe+"("+fe+"))?\\s*\\))",X="(?:(translate)\\s*\\(\\s*("+fe+")(?:"+pe+"("+fe+"))?\\s*\\))",Y="(?:(matrix)\\s*\\(\\s*("+fe+")"+pe+"("+fe+")"+pe+"("+fe+")"+pe+"("+fe+")"+pe+"("+fe+")"+pe+"("+fe+")\\s*\\))",$="(?:"+Y+"|"+X+"|"+k+"|"+W+"|"+ve+"|"+H+")",B="(?:"+$+"(?:"+pe+"*"+$+")*)",K="^\\s*(?:"+B+"?)\\s*$",ce=new RegExp(K),ie=new RegExp($,"g");return function(Z){var me=te.concat(),ae=[];if(!Z||Z&&!ce.test(Z))return me;Z.replace(ie,function(Ce){var ke=new RegExp($).exec(Ce).filter(function(_e){return!!_e}),Oe=ke[1],ze=ke.slice(2).map(parseFloat);switch(Oe){case"translate":G(me,ze);break;case"rotate":ze[0]=a.util.degreesToRadians(ze[0]),j(me,ze);break;case"scale":A(me,ze);break;case"skewX":q(me,ze,2);break;case"skewY":q(me,ze,1);break;case"matrix":me=ze;break}ae.push(me.concat()),me=te.concat()});for(var ge=ae[0];ae.length>1;)ae.shift(),ge=a.util.multiplyTransformMatrices(ge,ae[0]);return ge}}();function N(j,A){var q,G;j.replace(/;\s*$/,"").split(";").forEach(function(te){var fe=te.split(":");q=fe[0].trim().toLowerCase(),G=fe[1].trim(),A[q]=G})}function L(j,A){var q,G;for(var te in j)typeof j[te]>"u"||(q=te.toLowerCase(),G=j[te],A[q]=G)}function F(j,A){var q={};for(var G in a.cssRules[A])if(O(j,G.split(" ")))for(var te in a.cssRules[A][G])q[te]=a.cssRules[A][G][te];return q}function O(j,A){var q,G=!0;return q=ne(j,A.pop()),q&&A.length&&(G=V(j,A)),q&&G&&A.length===0}function V(j,A){for(var q,G=!0;j.parentNode&&j.parentNode.nodeType===1&&A.length;)G&&(q=A.pop()),j=j.parentNode,G=ne(j,q);return A.length===0}function ne(j,A){var q=j.nodeName,G=j.getAttribute("class"),te=j.getAttribute("id"),fe,pe;if(fe=new RegExp("^"+q,"i"),A=A.replace(fe,""),te&&A.length&&(fe=new RegExp("#"+te+"(?![a-zA-Z\\-]+)","i"),A=A.replace(fe,"")),G&&A.length)for(G=G.split(" "),pe=G.length;pe--;)fe=new RegExp("\\."+G[pe]+"(?![a-zA-Z\\-]+)","i"),A=A.replace(fe,"");return A.length===0}function J(j,A){var q;if(j.getElementById&&(q=j.getElementById(A)),q)return q;var G,te,fe,pe=j.getElementsByTagName("*");for(te=0,fe=pe.length;te<fe;te++)if(G=pe[te],A===G.getAttribute("id"))return G}function le(j){for(var A=D(j,["use","svg:use"]),q=0;A.length&&q<A.length;){var G=A[q],te=G.getAttribute("xlink:href")||G.getAttribute("href");if(te===null)return;var fe=te.slice(1),pe=G.getAttribute("x")||0,ve=G.getAttribute("y")||0,H=J(j,fe).cloneNode(!0),W=(H.getAttribute("transform")||"")+" translate("+pe+", "+ve+")",k,X=A.length,Y,$,B,K,ce=a.svgNS;if(U(H),/^svg$/i.test(H.nodeName)){var ie=H.ownerDocument.createElementNS(ce,"g");for($=0,B=H.attributes,K=B.length;$<K;$++)Y=B.item($),ie.setAttributeNS(ce,Y.nodeName,Y.nodeValue);for(;H.firstChild;)ie.appendChild(H.firstChild);H=ie}for($=0,B=G.attributes,K=B.length;$<K;$++)Y=B.item($),!(Y.nodeName==="x"||Y.nodeName==="y"||Y.nodeName==="xlink:href"||Y.nodeName==="href")&&(Y.nodeName==="transform"?W=Y.nodeValue+" "+W:H.setAttribute(Y.nodeName,Y.nodeValue));H.setAttribute("transform",W),H.setAttribute("instantiated_by_use","1"),H.removeAttribute("id"),k=G.parentNode,k.replaceChild(H,G),A.length===X&&q++}}var M=new RegExp("^\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*,?\\s*("+a.reNum+"+)\\s*$");function U(j){if(!a.svgViewBoxElementsRegEx.test(j.nodeName))return{};var A=j.getAttribute("viewBox"),q=1,G=1,te=0,fe=0,pe,ve,H,W,k=j.getAttribute("width"),X=j.getAttribute("height"),Y=j.getAttribute("x")||0,$=j.getAttribute("y")||0,B=j.getAttribute("preserveAspectRatio")||"",K=!A||!(A=A.match(M)),ce=!k||!X||k==="100%"||X==="100%",ie=K&&ce,Z={},me="",ae=0,ge=0;if(Z.width=0,Z.height=0,Z.toBeParsed=ie,K&&(Y||$)&&j.parentNode&&j.parentNode.nodeName!=="#document"&&(me=" translate("+f(Y)+" "+f($)+") ",H=(j.getAttribute("transform")||"")+me,j.setAttribute("transform",H),j.removeAttribute("x"),j.removeAttribute("y")),ie)return Z;if(K)return Z.width=f(k),Z.height=f(X),Z;if(te=-parseFloat(A[1]),fe=-parseFloat(A[2]),pe=parseFloat(A[3]),ve=parseFloat(A[4]),Z.minX=te,Z.minY=fe,Z.viewBoxWidth=pe,Z.viewBoxHeight=ve,ce?(Z.width=pe,Z.height=ve):(Z.width=f(k),Z.height=f(X),q=Z.width/pe,G=Z.height/ve),B=a.util.parsePreserveAspectRatioAttribute(B),B.alignX!=="none"&&(B.meetOrSlice==="meet"&&(G=q=q>G?G:q),B.meetOrSlice==="slice"&&(G=q=q>G?q:G),ae=Z.width-pe*q,ge=Z.height-ve*q,B.alignX==="Mid"&&(ae/=2),B.alignY==="Mid"&&(ge/=2),B.alignX==="Min"&&(ae=0),B.alignY==="Min"&&(ge=0)),q===1&&G===1&&te===0&&fe===0&&Y===0&&$===0)return Z;if((Y||$)&&j.parentNode.nodeName!=="#document"&&(me=" translate("+f(Y)+" "+f($)+") "),H=me+" matrix("+q+" 0 0 "+G+" "+(te*q+ae)+" "+(fe*G+ge)+") ",j.nodeName==="svg"){for(W=j.ownerDocument.createElementNS(a.svgNS,"g");j.firstChild;)W.appendChild(j.firstChild);j.appendChild(W)}else W=j,W.removeAttribute("x"),W.removeAttribute("y"),H=W.getAttribute("transform")+H;return W.setAttribute("transform",H),Z}function R(j,A){for(;j&&(j=j.parentNode);)if(j.nodeName&&A.test(j.nodeName.replace("svg:",""))&&!j.getAttribute("instantiated_by_use"))return!0;return!1}a.parseSVGDocument=function(j,A,q,G){if(!!j){le(j);var te=a.Object.__uid++,fe,pe,ve=U(j),H=a.util.toArray(j.getElementsByTagName("*"));if(ve.crossOrigin=G&&G.crossOrigin,ve.svgUid=te,H.length===0&&a.isLikelyNode){H=j.selectNodes('//*[name(.)!="svg"]');var W=[];for(fe=0,pe=H.length;fe<pe;fe++)W[fe]=H[fe];H=W}var k=H.filter(function(Y){return U(Y),a.svgValidTagNamesRegEx.test(Y.nodeName.replace("svg:",""))&&!R(Y,a.svgInvalidAncestorsRegEx)});if(!k||k&&!k.length){A&&A([],{});return}var X={};H.filter(function(Y){return Y.nodeName.replace("svg:","")==="clipPath"}).forEach(function(Y){var $=Y.getAttribute("id");X[$]=a.util.toArray(Y.getElementsByTagName("*")).filter(function(B){return a.svgValidTagNamesRegEx.test(B.nodeName.replace("svg:",""))})}),a.gradientDefs[te]=a.getGradientDefs(j),a.cssRules[te]=a.getCSSRules(j),a.clipPaths[te]=X,a.parseElements(k,function(Y,$){A&&(A(Y,ve,$,H),delete a.gradientDefs[te],delete a.cssRules[te],delete a.clipPaths[te])},d(ve),q,G)}};function P(j,A){var q=["gradientTransform","x1","x2","y1","y2","gradientUnits","cx","cy","r","fx","fy"],G="xlink:href",te=A.getAttribute(G).slice(1),fe=J(j,te);if(fe&&fe.getAttribute(G)&&P(j,fe),q.forEach(function(ve){fe&&!A.hasAttribute(ve)&&fe.hasAttribute(ve)&&A.setAttribute(ve,fe.getAttribute(ve))}),!A.children.length)for(var pe=fe.cloneNode(!0);pe.firstChild;)A.appendChild(pe.firstChild);A.removeAttribute(G)}var Q=new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*("+a.reNum+"(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|"+a.reNum+"))?\\s+(.*)");u(a,{parseFontDeclaration:function(j,A){var q=j.match(Q);if(!!q){var G=q[1],te=q[3],fe=q[4],pe=q[5],ve=q[6];G&&(A.fontStyle=G),te&&(A.fontWeight=isNaN(parseFloat(te))?te:parseFloat(te)),fe&&(A.fontSize=f(fe)),ve&&(A.fontFamily=ve),pe&&(A.lineHeight=pe==="normal"?1:pe)}},getGradientDefs:function(j){var A=["linearGradient","radialGradient","svg:linearGradient","svg:radialGradient"],q=D(j,A),G,te=0,fe={};for(te=q.length;te--;)G=q[te],G.getAttribute("xlink:href")&&P(j,G),fe[G.getAttribute("id")]=G;return fe},parseAttributes:function(j,A,q){if(!!j){var G,te={},fe,pe;typeof q>"u"&&(q=j.getAttribute("svgUid")),j.parentNode&&a.svgValidParentsRegEx.test(j.parentNode.nodeName)&&(te=a.parseAttributes(j.parentNode,A,q));var ve=A.reduce(function(B,K){return G=j.getAttribute(K),G&&(B[K]=G),B},{}),H=u(F(j,q),a.parseStyleAttribute(j));ve=u(ve,H),H[S]&&j.setAttribute(S,H[S]),fe=pe=te.fontSize||a.Text.DEFAULT_SVG_FONT_SIZE,ve[w]&&(ve[w]=fe=f(ve[w],pe));var W,k,X={};for(var Y in ve)W=x(Y),k=T(W,ve[Y],te,fe),X[W]=k;X&&X.font&&a.parseFontDeclaration(X.font,X);var $=u(te,X);return a.svgValidParentsRegEx.test(j.nodeName)?$:I($)}},parseElements:function(j,A,q,G,te){new a.ElementsParser(j,A,q,G,te).parse()},parseStyleAttribute:function(j){var A={},q=j.getAttribute("style");return q&&(typeof q=="string"?N(q,A):L(q,A)),A},parsePointsAttribute:function(j){if(!j)return null;j=j.replace(/,/g," ").trim(),j=j.split(/\s+/);var A=[],q,G;for(q=0,G=j.length;q<G;q+=2)A.push({x:parseFloat(j[q]),y:parseFloat(j[q+1])});return A},getCSSRules:function(j){var A=j.getElementsByTagName("style"),q,G,te={},fe;for(q=0,G=A.length;q<G;q++){var pe=A[q].textContent;pe=pe.replace(/\/\*[\s\S]*?\*\//g,""),pe.trim()!==""&&(fe=pe.split("}"),fe=fe.filter(function(ve){return ve.trim()}),fe.forEach(function(ve){var H=ve.split("{"),W={},k=H[1].trim(),X=k.split(";").filter(function(K){return K.trim()});for(q=0,G=X.length;q<G;q++){var Y=X[q].split(":"),$=Y[0].trim(),B=Y[1].trim();W[$]=B}ve=H[0].trim(),ve.split(",").forEach(function(K){K=K.replace(/^svg/i,"").trim(),K!==""&&(te[K]?a.util.object.extend(te[K],W):te[K]=a.util.object.clone(W))})}))}return te},loadSVGFromURL:function(j,A,q,G){j=j.replace(/^\n\s*/,"").trim(),new a.util.request(j,{method:"get",onComplete:te});function te(fe){var pe=fe.responseXML;if(!pe||!pe.documentElement)return A&&A(null),!1;a.parseSVGDocument(pe.documentElement,function(ve,H,W,k){A&&A(ve,H,W,k)},q,G)}},loadSVGFromString:function(j,A,q,G){var te=new a.window.DOMParser,fe=te.parseFromString(j.trim(),"text/xml");a.parseSVGDocument(fe.documentElement,function(pe,ve,H,W){A(pe,ve,H,W)},q,G)}})}(e),t.ElementsParser=function(o,a,u,d,c,f){this.elements=o,this.callback=a,this.options=u,this.reviver=d,this.svgUid=u&&u.svgUid||0,this.parsingOptions=c,this.regexUrl=/^url\(['"]?#([^'"]+)['"]?\)/g,this.doc=f},function(o){o.parse=function(){this.instances=new Array(this.elements.length),this.numElements=this.elements.length,this.createObjects()},o.createObjects=function(){var a=this;this.elements.forEach(function(u,d){u.setAttribute("svgUid",a.svgUid),a.createObject(u,d)})},o.findTag=function(a){return t[t.util.string.capitalize(a.tagName.replace("svg:",""))]},o.createObject=function(a,u){var d=this.findTag(a);if(d&&d.fromElement)try{d.fromElement(a,this.createCallback(u,a),this.options)}catch(c){t.log(c)}else this.checkIfDone()},o.createCallback=function(a,u){var d=this;return function(c){var f;d.resolveGradient(c,u,"fill"),d.resolveGradient(c,u,"stroke"),c instanceof t.Image&&c._originalElement&&(f=c.parsePreserveAspectRatioAttribute(u)),c._removeTransformMatrix(f),d.resolveClipPath(c,u),d.reviver&&d.reviver(u,c),d.instances[a]=c,d.checkIfDone()}},o.extractPropertyDefinition=function(a,u,d){var c=a[u],f=this.regexUrl;if(!!f.test(c)){f.lastIndex=0;var s=f.exec(c)[1];return f.lastIndex=0,t[d][this.svgUid][s]}},o.resolveGradient=function(a,u,d){var c=this.extractPropertyDefinition(a,d,"gradientDefs");if(c){var f=u.getAttribute(d+"-opacity"),s=t.Gradient.fromElement(c,a,f,this.options);a.set(d,s)}},o.createClipPathCallback=function(a,u){return function(d){d._removeTransformMatrix(),d.fillRule=d.clipRule,u.push(d)}},o.resolveClipPath=function(a,u){var d=this.extractPropertyDefinition(a,"clipPath","clipPaths"),c,f,s,h,g,m;if(d){h=[],s=t.util.invertTransform(a.calcTransformMatrix());for(var y=d[0].parentNode,b=u;b.parentNode&&b.getAttribute("clip-path")!==a.clipPath;)b=b.parentNode;b.parentNode.appendChild(y);for(var _=0;_<d.length;_++)c=d[_],f=this.findTag(c),f.fromElement(c,this.createClipPathCallback(a,h),this.options);h.length===1?d=h[0]:d=new t.Group(h),g=t.util.multiplyTransformMatrices(s,d.calcTransformMatrix()),d.clipPath&&this.resolveClipPath(d,b);var m=t.util.qrDecompose(g);d.flipX=!1,d.flipY=!1,d.set("scaleX",m.scaleX),d.set("scaleY",m.scaleY),d.angle=m.angle,d.skewX=m.skewX,d.skewY=0,d.setPositionByOrigin({x:m.translateX,y:m.translateY},"center","center"),a.clipPath=d}else delete a.clipPath},o.checkIfDone=function(){--this.numElements===0&&(this.instances=this.instances.filter(function(a){return a!=null}),this.callback(this.instances,this.elements))}}(t.ElementsParser.prototype),function(o){var a=o.fabric||(o.fabric={});if(a.Point){a.warn("fabric.Point is already defined");return}a.Point=u;function u(d,c){this.x=d,this.y=c}u.prototype={type:"point",constructor:u,add:function(d){return new u(this.x+d.x,this.y+d.y)},addEquals:function(d){return this.x+=d.x,this.y+=d.y,this},scalarAdd:function(d){return new u(this.x+d,this.y+d)},scalarAddEquals:function(d){return this.x+=d,this.y+=d,this},subtract:function(d){return new u(this.x-d.x,this.y-d.y)},subtractEquals:function(d){return this.x-=d.x,this.y-=d.y,this},scalarSubtract:function(d){return new u(this.x-d,this.y-d)},scalarSubtractEquals:function(d){return this.x-=d,this.y-=d,this},multiply:function(d){return new u(this.x*d,this.y*d)},multiplyEquals:function(d){return this.x*=d,this.y*=d,this},divide:function(d){return new u(this.x/d,this.y/d)},divideEquals:function(d){return this.x/=d,this.y/=d,this},eq:function(d){return this.x===d.x&&this.y===d.y},lt:function(d){return this.x<d.x&&this.y<d.y},lte:function(d){return this.x<=d.x&&this.y<=d.y},gt:function(d){return this.x>d.x&&this.y>d.y},gte:function(d){return this.x>=d.x&&this.y>=d.y},lerp:function(d,c){return typeof c>"u"&&(c=.5),c=Math.max(Math.min(1,c),0),new u(this.x+(d.x-this.x)*c,this.y+(d.y-this.y)*c)},distanceFrom:function(d){var c=this.x-d.x,f=this.y-d.y;return Math.sqrt(c*c+f*f)},midPointFrom:function(d){return this.lerp(d)},min:function(d){return new u(Math.min(this.x,d.x),Math.min(this.y,d.y))},max:function(d){return new u(Math.max(this.x,d.x),Math.max(this.y,d.y))},toString:function(){return this.x+","+this.y},setXY:function(d,c){return this.x=d,this.y=c,this},setX:function(d){return this.x=d,this},setY:function(d){return this.y=d,this},setFromPoint:function(d){return this.x=d.x,this.y=d.y,this},swap:function(d){var c=this.x,f=this.y;this.x=d.x,this.y=d.y,d.x=c,d.y=f},clone:function(){return new u(this.x,this.y)}}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Intersection){a.warn("fabric.Intersection is already defined");return}function u(d){this.status=d,this.points=[]}a.Intersection=u,a.Intersection.prototype={constructor:u,appendPoint:function(d){return this.points.push(d),this},appendPoints:function(d){return this.points=this.points.concat(d),this}},a.Intersection.intersectLineLine=function(d,c,f,s){var h,g=(s.x-f.x)*(d.y-f.y)-(s.y-f.y)*(d.x-f.x),m=(c.x-d.x)*(d.y-f.y)-(c.y-d.y)*(d.x-f.x),y=(s.y-f.y)*(c.x-d.x)-(s.x-f.x)*(c.y-d.y);if(y!==0){var b=g/y,_=m/y;0<=b&&b<=1&&0<=_&&_<=1?(h=new u("Intersection"),h.appendPoint(new a.Point(d.x+b*(c.x-d.x),d.y+b*(c.y-d.y)))):h=new u}else g===0||m===0?h=new u("Coincident"):h=new u("Parallel");return h},a.Intersection.intersectLinePolygon=function(d,c,f){var s=new u,h=f.length,g,m,y,b;for(b=0;b<h;b++)g=f[b],m=f[(b+1)%h],y=u.intersectLineLine(d,c,g,m),s.appendPoints(y.points);return s.points.length>0&&(s.status="Intersection"),s},a.Intersection.intersectPolygonPolygon=function(d,c){var f=new u,s=d.length,h;for(h=0;h<s;h++){var g=d[h],m=d[(h+1)%s],y=u.intersectLinePolygon(g,m,c);f.appendPoints(y.points)}return f.points.length>0&&(f.status="Intersection"),f},a.Intersection.intersectPolygonRectangle=function(d,c,f){var s=c.min(f),h=c.max(f),g=new a.Point(h.x,s.y),m=new a.Point(s.x,h.y),y=u.intersectLinePolygon(s,g,d),b=u.intersectLinePolygon(g,h,d),_=u.intersectLinePolygon(h,m,d),w=u.intersectLinePolygon(m,s,d),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(o){var a=o.fabric||(o.fabric={});if(a.Color){a.warn("fabric.Color is already defined.");return}function u(c){c?this._tryParsingColor(c):this.setSource([0,0,0,1])}a.Color=u,a.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 h,g,m,y=a.util.array.max([c,f,s]),b=a.util.array.min([c,f,s]);if(m=(y+b)/2,y===b)h=g=0;else{var _=y-b;switch(g=m>.5?_/(2-y-b):_/(y+b),y){case c:h=(f-s)/_+(f<s?6:0);break;case f:h=(s-c)/_+2;break;case s:h=(c-f)/_+4;break}h/=6}return[Math.round(h*360),Math.round(g*100),Math.round(m*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,h;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,h=c[2].toString(16),h=h.length===1?"0"+h:h,f.toUpperCase()+s.toUpperCase()+h.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),h=f[3];return c=c||127,s=Number(s)<Number(c)?0:255,this.setSource([s,s,s,h]),this},overlayWith:function(c){c instanceof u||(c=new u(c));var f=[],s=this.getAlpha(),h=.5,g=this.getSource(),m=c.getSource(),y;for(y=0;y<3;y++)f.push(Math.round(g[y]*(1-h)+m[y]*h));return f[3]=s,this.setSource(f),this}},a.Color.reRGBa=/^rgba?\(\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*,\s*(\d{1,3}(?:\.\d+)?\%?)\s*(?:\s*,\s*((?:\d*\.?\d+)?)\s*)?\)$/i,a.Color.reHSLa=/^hsla?\(\s*(\d{1,3})\s*,\s*(\d{1,3}\%)\s*,\s*(\d{1,3}\%)\s*(?:\s*,\s*(\d+(?:\.\d+)?)\s*)?\)$/i,a.Color.reHex=/^#?([0-9a-f]{8}|[0-9a-f]{6}|[0-9a-f]{4}|[0-9a-f]{3})$/i,a.Color.colorNameMap={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#00FFFF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blue:"#0000FF",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",fuchsia:"#FF00FF",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#00FF00",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",maroon:"#800000",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",navy:"#000080",oldlace:"#FDF5E6",olive:"#808000",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",purple:"#800080",rebeccapurple:"#663399",red:"#FF0000",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",silver:"#C0C0C0",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",teal:"#008080",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",white:"#FFFFFF",whitesmoke:"#F5F5F5",yellow:"#FFFF00",yellowgreen:"#9ACD32"};function d(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}a.Color.fromRgb=function(c){return u.fromSource(u.sourceFromRgb(c))},a.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),h=parseInt(f[2],10)/(/%$/.test(f[2])?100:1)*(/%$/.test(f[2])?255:1),g=parseInt(f[3],10)/(/%$/.test(f[3])?100:1)*(/%$/.test(f[3])?255:1);return[parseInt(s,10),parseInt(h,10),parseInt(g,10),f[4]?parseFloat(f[4]):1]}},a.Color.fromRgba=u.fromRgb,a.Color.fromHsl=function(c){return u.fromSource(u.sourceFromHsl(c))},a.Color.sourceFromHsl=function(c){var f=c.match(u.reHSLa);if(!!f){var s=(parseFloat(f[1])%360+360)%360/360,h=parseFloat(f[2])/(/%$/.test(f[2])?100:1),g=parseFloat(f[3])/(/%$/.test(f[3])?100:1),m,y,b;if(h===0)m=y=b=g;else{var _=g<=.5?g*(h+1):g+h-g*h,w=g*2-_;m=d(w,_,s+1/3),y=d(w,_,s),b=d(w,_,s-1/3)}return[Math.round(m*255),Math.round(y*255),Math.round(b*255),f[4]?parseFloat(f[4]):1]}},a.Color.fromHsla=u.fromHsl,a.Color.fromHex=function(c){return u.fromSource(u.sourceFromHex(c))},a.Color.sourceFromHex=function(c){if(c.match(u.reHex)){var f=c.slice(c.indexOf("#")+1),s=f.length===3||f.length===4,h=f.length===8||f.length===4,g=s?f.charAt(0)+f.charAt(0):f.substring(0,2),m=s?f.charAt(1)+f.charAt(1):f.substring(2,4),y=s?f.charAt(2)+f.charAt(2):f.substring(4,6),b=h?s?f.charAt(3)+f.charAt(3):f.substring(6,8):"FF";return[parseInt(g,16),parseInt(m,16),parseInt(y,16),parseFloat((parseInt(b,16)/255).toFixed(2))]}},a.Color.fromSource=function(c){var f=new u;return f.setSource(c),f}}(e),function(o){var a=o.fabric||(o.fabric={}),u=["e","se","s","sw","w","nw","n","ne","e"],d=["ns","nesw","ew","nwse"],c={},f="left",s="top",h="right",g="bottom",m="center",y={top:g,bottom:s,left:h,right:f,center:m},b=a.util.radiansToDegrees,_=Math.sign||function(W){return(W>0)-(W<0)||+W};function w(W,k){var X=W.angle+b(Math.atan2(k.y,k.x))+360;return Math.round(X%360/45)}function S(W,k){var X=k.transform.target,Y=X.canvas,$=a.util.object.clone(k);$.target=X,Y&&Y.fire("object:"+W,$),X.fire(W,k)}function x(W,k){var X=k.canvas,Y=X.uniScaleKey,$=W[Y];return X.uniformScaling&&!$||!X.uniformScaling&&$}function T(W){return W.originX===m&&W.originY===m}function E(W,k,X){var Y=W.lockScalingX,$=W.lockScalingY;return!!(Y&&$||!k&&(Y||$)&&X||Y&&k==="x"||$&&k==="y")}function I(W,k,X){var Y="not-allowed",$=x(W,X),B="";if(k.x!==0&&k.y===0?B="x":k.x===0&&k.y!==0&&(B="y"),E(X,B,$))return Y;var K=w(X,k);return u[K]+"-resize"}function D(W,k,X){var Y="not-allowed";if(k.x!==0&&X.lockSkewingY||k.y!==0&&X.lockSkewingX)return Y;var $=w(X,k)%4;return d[$]+"-resize"}function N(W,k,X){return W[X.canvas.altActionKey]?c.skewCursorStyleHandler(W,k,X):c.scaleCursorStyleHandler(W,k,X)}function L(W,k,X){var Y=W[X.canvas.altActionKey];if(k.x===0)return Y?"skewX":"scaleY";if(k.y===0)return Y?"skewY":"scaleX"}function F(W,k,X){return X.lockRotation?"not-allowed":k.cursorStyle}function O(W,k,X,Y){return{e:W,transform:k,pointer:{x:X,y:Y}}}function V(W){return function(k,X,Y,$){var B=X.target,K=B.getCenterPoint(),ce=B.translateToOriginPoint(K,X.originX,X.originY),ie=W(k,X,Y,$);return B.setPositionByOrigin(ce,X.originX,X.originY),ie}}function ne(W,k){return function(X,Y,$,B){var K=k(X,Y,$,B);return K&&S(W,O(X,Y,$,B)),K}}function J(W,k,X,Y,$){var B=W.target,K=B.controls[W.corner],ce=B.canvas.getZoom(),ie=B.padding/ce,Z=B.toLocalPoint(new a.Point(Y,$),k,X);return Z.x>=ie&&(Z.x-=ie),Z.x<=-ie&&(Z.x+=ie),Z.y>=ie&&(Z.y-=ie),Z.y<=ie&&(Z.y+=ie),Z.x-=K.offsetX,Z.y-=K.offsetY,Z}function le(W){return W.flipX!==W.flipY}function M(W,k,X,Y,$){if(W[k]!==0){var B=W._getTransformedDimensions()[Y],K=$/B*W[X];W.set(X,K)}}function U(W,k,X,Y){var $=k.target,B=$._getTransformedDimensions(0,$.skewY),K=J(k,k.originX,k.originY,X,Y),ce=Math.abs(K.x*2)-B.x,ie=$.skewX,Z;ce<2?Z=0:(Z=b(Math.atan2(ce/$.scaleX,B.y/$.scaleY)),k.originX===f&&k.originY===g&&(Z=-Z),k.originX===h&&k.originY===s&&(Z=-Z),le($)&&(Z=-Z));var me=ie!==Z;if(me){var ae=$._getTransformedDimensions().y;$.set("skewX",Z),M($,"skewY","scaleY","y",ae)}return me}function R(W,k,X,Y){var $=k.target,B=$._getTransformedDimensions($.skewX,0),K=J(k,k.originX,k.originY,X,Y),ce=Math.abs(K.y*2)-B.y,ie=$.skewY,Z;ce<2?Z=0:(Z=b(Math.atan2(ce/$.scaleY,B.x/$.scaleX)),k.originX===f&&k.originY===g&&(Z=-Z),k.originX===h&&k.originY===s&&(Z=-Z),le($)&&(Z=-Z));var me=ie!==Z;if(me){var ae=$._getTransformedDimensions().x;$.set("skewY",Z),M($,"skewX","scaleX","x",ae)}return me}function P(W,k,X,Y){var $=k.target,B=$.skewX,K,ce=k.originY;if($.lockSkewingX)return!1;if(B===0){var ie=J(k,m,m,X,Y);ie.x>0?K=f:K=h}else B>0&&(K=ce===s?f:h),B<0&&(K=ce===s?h:f),le($)&&(K=K===f?h:f);k.originX=K;var Z=ne("skewing",V(U));return Z(W,k,X,Y)}function Q(W,k,X,Y){var $=k.target,B=$.skewY,K,ce=k.originX;if($.lockSkewingY)return!1;if(B===0){var ie=J(k,m,m,X,Y);ie.y>0?K=s:K=g}else B>0&&(K=ce===f?s:g),B<0&&(K=ce===f?g:s),le($)&&(K=K===s?g:s);k.originY=K;var Z=ne("skewing",V(R));return Z(W,k,X,Y)}function j(W,k,X,Y){var $=k,B=$.target,K=B.translateToOriginPoint(B.getCenterPoint(),$.originX,$.originY);if(B.lockRotation)return!1;var ce=Math.atan2($.ey-K.y,$.ex-K.x),ie=Math.atan2(Y-K.y,X-K.x),Z=b(ie-ce+$.theta),me=!0;if(B.snapAngle>0){var ae=B.snapAngle,ge=B.snapThreshold||ae,Ce=Math.ceil(Z/ae)*ae,ke=Math.floor(Z/ae)*ae;Math.abs(Z-ke)<ge?Z=ke:Math.abs(Z-Ce)<ge&&(Z=Ce)}return Z<0&&(Z=360+Z),Z%=360,me=B.angle!==Z,B.angle=Z,me}function A(W,k,X,Y,$){$=$||{};var B=k.target,K=B.lockScalingX,ce=B.lockScalingY,ie=$.by,Z,me,ae,ge,Ce=x(W,B),ke=E(B,ie,Ce),Oe,ze,_e=k.gestureScale;if(ke)return!1;if(_e)me=k.scaleX*_e,ae=k.scaleY*_e;else{if(Z=J(k,k.originX,k.originY,X,Y),Oe=ie!=="y"?_(Z.x):1,ze=ie!=="x"?_(Z.y):1,k.signX||(k.signX=Oe),k.signY||(k.signY=ze),B.lockScalingFlip&&(k.signX!==Oe||k.signY!==ze))return!1;if(ge=B._getTransformedDimensions(),Ce&&!ie){var Se=Math.abs(Z.x)+Math.abs(Z.y),De=k.original,Me=Math.abs(ge.x*De.scaleX/B.scaleX)+Math.abs(ge.y*De.scaleY/B.scaleY),yt=Se/Me;me=De.scaleX*yt,ae=De.scaleY*yt}else me=Math.abs(Z.x*B.scaleX/ge.x),ae=Math.abs(Z.y*B.scaleY/ge.y);T(k)&&(me*=2,ae*=2),k.signX!==Oe&&ie!=="y"&&(k.originX=y[k.originX],me*=-1,k.signX=Oe),k.signY!==ze&&ie!=="x"&&(k.originY=y[k.originY],ae*=-1,k.signY=ze)}var bt=B.scaleX,we=B.scaleY;return ie?(ie==="x"&&B.set("scaleX",me),ie==="y"&&B.set("scaleY",ae)):(!K&&B.set("scaleX",me),!ce&&B.set("scaleY",ae)),bt!==B.scaleX||we!==B.scaleY}function q(W,k,X,Y){return A(W,k,X,Y)}function G(W,k,X,Y){return A(W,k,X,Y,{by:"x"})}function te(W,k,X,Y){return A(W,k,X,Y,{by:"y"})}function fe(W,k,X,Y){return W[k.target.canvas.altActionKey]?c.skewHandlerX(W,k,X,Y):c.scalingY(W,k,X,Y)}function pe(W,k,X,Y){return W[k.target.canvas.altActionKey]?c.skewHandlerY(W,k,X,Y):c.scalingX(W,k,X,Y)}function ve(W,k,X,Y){var $=k.target,B=J(k,k.originX,k.originY,X,Y),K=$.strokeWidth/($.strokeUniform?$.scaleX:1),ce=T(k)?2:1,ie=$.width,Z=Math.abs(B.x*ce/$.scaleX)-K;return $.set("width",Math.max(Z,0)),ie!==Z}function H(W,k,X,Y){var $=k.target,B=X-k.offsetX,K=Y-k.offsetY,ce=!$.get("lockMovementX")&&$.left!==B,ie=!$.get("lockMovementY")&&$.top!==K;return ce&&$.set("left",B),ie&&$.set("top",K),(ce||ie)&&S("moving",O(W,k,X,Y)),ce||ie}c.scaleCursorStyleHandler=I,c.skewCursorStyleHandler=D,c.scaleSkewCursorStyleHandler=N,c.rotationWithSnapping=ne("rotating",V(j)),c.scalingEqually=ne("scaling",V(q)),c.scalingX=ne("scaling",V(G)),c.scalingY=ne("scaling",V(te)),c.scalingYOrSkewingX=fe,c.scalingXOrSkewingY=pe,c.changeWidth=ne("resizing",V(ve)),c.skewHandlerX=P,c.skewHandlerY=Q,c.dragHandler=H,c.scaleOrSkewActionName=L,c.rotationStyleHandler=F,c.fireEvent=S,c.wrapWithFixedAnchor=V,c.wrapWithFireEvent=ne,c.getLocalPoint=J,a.controlsUtils=c}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.degreesToRadians,d=a.controlsUtils;function c(s,h,g,m,y){m=m||{};var b=this.sizeX||m.cornerSize||y.cornerSize,_=this.sizeY||m.cornerSize||y.cornerSize,w=typeof m.transparentCorners<"u"?m.transparentCorners:y.transparentCorners,S=w?"stroke":"fill",x=!w&&(m.cornerStrokeColor||y.cornerStrokeColor),T=h,E=g,I;s.save(),s.fillStyle=m.cornerColor||y.cornerColor,s.strokeStyle=m.cornerStrokeColor||y.cornerStrokeColor,b>_?(I=b,s.scale(1,_/b),E=g*b/_):_>b?(I=_,s.scale(b/_,1),T=h*_/b):I=b,s.lineWidth=1,s.beginPath(),s.arc(T,E,I/2,0,2*Math.PI,!1),s[S](),x&&s.stroke(),s.restore()}function f(s,h,g,m,y){m=m||{};var b=this.sizeX||m.cornerSize||y.cornerSize,_=this.sizeY||m.cornerSize||y.cornerSize,w=typeof m.transparentCorners<"u"?m.transparentCorners:y.transparentCorners,S=w?"stroke":"fill",x=!w&&(m.cornerStrokeColor||y.cornerStrokeColor),T=b/2,E=_/2;s.save(),s.fillStyle=m.cornerColor||y.cornerColor,s.strokeStyle=m.cornerStrokeColor||y.cornerStrokeColor,s.lineWidth=1,s.translate(h,g),s.rotate(u(y.angle)),s[S+"Rect"](-T,-E,b,_),x&&s.strokeRect(-T,-E,b,_),s.restore()}d.renderCircleControl=c,d.renderSquareControl=f}(e),function(o){var a=o.fabric||(o.fabric={});function u(d){for(var c in d)this[c]=d[c]}a.Control=u,a.Control.prototype={visible:!0,actionName:"scale",angle:0,x:0,y:0,offsetX:0,offsetY:0,sizeX:null,sizeY:null,touchSizeX:null,touchSizeY:null,cursorStyle:"crosshair",withConnection:!1,actionHandler:function(){},mouseDownHandler:function(){},mouseUpHandler:function(){},getActionHandler:function(){return this.actionHandler},getMouseDownHandler:function(){return this.mouseDownHandler},getMouseUpHandler:function(){return this.mouseUpHandler},cursorStyleHandler:function(d,c){return c.cursorStyle},getActionName:function(d,c){return c.actionName},getVisibility:function(d,c){var f=d._controlsVisibility;return f&&typeof f[c]<"u"?f[c]:this.visible},setVisibility:function(d){this.visible=d},positionHandler:function(d,c){var f=a.util.transformPoint({x:this.x*d.x+this.offsetX,y:this.y*d.y+this.offsetY},c);return f},calcCornerCoords:function(d,c,f,s,h){var g,m,y,b,_=h?this.touchSizeX:this.sizeX,w=h?this.touchSizeY:this.sizeY;if(_&&w&&_!==w){var S=Math.atan2(w,_),x=Math.sqrt(_*_+w*w)/2,T=S-a.util.degreesToRadians(d),E=Math.PI/2-S-a.util.degreesToRadians(d);g=x*a.util.cos(T),m=x*a.util.sin(T),y=x*a.util.cos(E),b=x*a.util.sin(E)}else{var I=_&&w?_:c;x=I*.7071067812;var T=a.util.degreesToRadians(45-d);g=y=x*a.util.cos(T),m=b=x*a.util.sin(T)}return{tl:{x:f-b,y:s-y},tr:{x:f+g,y:s-m},bl:{x:f-g,y:s+m},br:{x:f+b,y:s+y}}},render:function(d,c,f,s,h){switch(s=s||{},s.cornerStyle||h.cornerStyle){case"circle":a.controlsUtils.renderCircleControl.call(this,d,c,f,s,h);break;default:a.controlsUtils.renderSquareControl.call(this,d,c,f,s,h)}}}}(e),function(){function o(f,s){var h=f.getAttribute("style"),g=f.getAttribute("offset")||0,m,y,b,_;if(g=parseFloat(g)/(/%$/.test(g)?100:1),g=g<0?0:g>1?1:g,h){var w=h.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"?m=T:x==="stop-opacity"&&(b=T)}}return m||(m=f.getAttribute("stop-color")||"rgb(0,0,0)"),b||(b=f.getAttribute("stop-opacity")),m=new t.Color(m),y=m.getAlpha(),b=isNaN(parseFloat(b))?1:parseFloat(b),b*=y*s,{offset:g,color:m.toRgb(),opacity:b}}function a(f){return{x1:f.getAttribute("x1")||0,y1:f.getAttribute("y1")||0,x2:f.getAttribute("x2")||"100%",y2:f.getAttribute("y2")||0}}function 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 d=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,h=this;Object.keys(f).forEach(function(g){h[g]=f[g]}),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 h=new t.Color(f[s]);this.colorStops.push({offset:parseFloat(s),color:h.toRgb(),opacity:h.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 h=d(this.coords,!0),g,m,y=y||{},b,_,w=d(this.colorStops,!0),S=h.r1>h.r2,x=this.gradientTransform?this.gradientTransform.concat():t.iMatrix.concat(),T=-this.offsetX,E=-this.offsetY,I=!!y.additionalTransform,D=this.gradientUnits==="pixels"?"userSpaceOnUse":"objectBoundingBox";if(w.sort(function(V,ne){return V.offset-ne.offset}),D==="objectBoundingBox"?(T/=f.width,E/=f.height):(T+=f.width/2,E+=f.height/2),f.type==="path"&&this.gradientUnits!=="percentage"&&(T-=f.pathOffset.x,E-=f.pathOffset.y),x[4]-=T,x[5]-=E,_='id="SVGID_'+this.id+'" gradientUnits="'+D+'"',_+=' gradientTransform="'+(I?y.additionalTransform+" ":"")+t.util.matrixToSVG(x)+'" ',this.type==="linear"?b=["<linearGradient ",_,' x1="',h.x1,'" y1="',h.y1,'" x2="',h.x2,'" y2="',h.y2,`">
`]:this.type==="radial"&&(b=["<radialGradient ",_,' cx="',S?h.x1:h.x2,'" cy="',S?h.y1:h.y2,'" r="',S?h.r1:h.r2,'" fx="',S?h.x2:h.x1,'" fy="',S?h.y2:h.y1,`">
`]),this.type==="radial"){if(S)for(w=w.concat(),w.reverse(),g=0,m=w.length;g<m;g++)w[g].offset=1-w[g].offset;var N=Math.min(h.r1,h.r2);if(N>0){var L=Math.max(h.r1,h.r2),F=N/L;for(g=0,m=w.length;g<m;g++)w[g].offset+=F*(1-w[g].offset)}}for(g=0,m=w.length;g<m;g++){var O=w[g];b.push("<stop ",'offset="',O.offset*100+"%",'" style="stop-color:',O.color,typeof O.opacity<"u"?";stop-opacity: "+O.opacity:";",`"/>
`)}return b.push(this.type==="linear"?`</linearGradient>
`:`</radialGradient>
`),b.join("")},toLive:function(f){var s,h=t.util.object.clone(this.coords),g,m;if(!!this.type){for(this.type==="linear"?s=f.createLinearGradient(h.x1,h.y1,h.x2,h.y2):this.type==="radial"&&(s=f.createRadialGradient(h.x1,h.y1,h.r1,h.x2,h.y2,h.r2)),g=0,m=this.colorStops.length;g<m;g++){var y=this.colorStops[g].color,b=this.colorStops[g].opacity,_=this.colorStops[g].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,h,g){var m=parseFloat(h)/(/%$/.test(h)?100:1);m=m<0?0:m>1?1:m,isNaN(m)&&(m=1);var y=f.getElementsByTagName("stop"),b,_=f.getAttribute("gradientUnits")==="userSpaceOnUse"?"pixels":"percentage",w=f.getAttribute("gradientTransform")||"",S=[],x,T,E=0,I=0,D;for(f.nodeName==="linearGradient"||f.nodeName==="LINEARGRADIENT"?(b="linear",x=a(f)):(b="radial",x=u(f)),T=y.length;T--;)S.push(o(y[T],m));D=t.parseTransformAttribute(w),c(s,x,g,_),_==="pixels"&&(E=-s.left,I=-s.top);var N=new t.Gradient({id:f.getAttribute("id"),type:b,coords:x,colorStops:S,gradientUnits:_,gradientTransform:D,offsetX:E,offsetY:I});return N}});function c(f,s,h,g){var m,y;Object.keys(s).forEach(function(b){m=s[b],m==="Infinity"?y=1:m==="-Infinity"?y=0:(y=parseFloat(s[b],10),typeof m=="string"&&/^(\d+\.\d+)%|(\d+)%$/.test(m)&&(y*=.01,g==="pixels"&&((b==="x1"||b==="x2"||b==="r2")&&(y*=h.viewBoxWidth||h.width),(b==="y1"||b==="y2")&&(y*=h.viewBoxHeight||h.height)))),s[b]=y})}}(),function(){var o=t.util.toFixed;t.Pattern=t.util.createClass({repeat:"repeat",offsetX:0,offsetY:0,crossOrigin:"",patternTransform:null,initialize:function(a,u){if(a||(a={}),this.id=t.Object.__uid++,this.setOptions(a),!a.source||a.source&&typeof a.source!="string"){u&&u(this);return}else{var d=this;this.source=t.util.createImage(),t.util.loadImage(a.source,function(c,f){d.source=c,u&&u(d,f)},null,this.crossOrigin)}},toObject:function(a){var u=t.Object.NUM_FRACTION_DIGITS,d,c;return typeof this.source.src=="string"?d=this.source.src:typeof this.source=="object"&&this.source.toDataURL&&(d=this.source.toDataURL()),c={type:"pattern",source:d,repeat:this.repeat,crossOrigin:this.crossOrigin,offsetX:o(this.offsetX,u),offsetY:o(this.offsetY,u),patternTransform:this.patternTransform?this.patternTransform.concat():null},t.util.populateWithProperties(this,c,a),c},toSVG:function(a){var u=typeof this.source=="function"?this.source():this.source,d=u.width/a.width,c=u.height/a.height,f=this.offsetX/a.width,s=this.offsetY/a.height,h="";return(this.repeat==="repeat-x"||this.repeat==="no-repeat")&&(c=1,s&&(c+=Math.abs(s))),(this.repeat==="repeat-y"||this.repeat==="no-repeat")&&(d=1,f&&(d+=Math.abs(f))),u.src?h=u.src:u.toDataURL&&(h=u.toDataURL()),'<pattern id="SVGID_'+this.id+'" x="'+f+'" y="'+s+'" width="'+d+'" height="'+c+`">
<image x="0" y="0" width="`+u.width+'" height="'+u.height+'" xlink:href="'+h+`"></image>
</pattern>
`},setOptions:function(a){for(var u in a)this[u]=a[u]},toLive:function(a){var u=this.source;return!u||typeof u.src<"u"&&(!u.complete||u.naturalWidth===0||u.naturalHeight===0)?"":a.createPattern(u,this.repeat)}})}(),function(o){var a=o.fabric||(o.fabric={}),u=a.util.toFixed;if(a.Shadow){a.warn("fabric.Shadow is already defined.");return}a.Shadow=a.util.createClass({color:"rgb(0,0,0)",blur:0,offsetX:0,offsetY:0,affectStroke:!1,includeDefaultValues:!0,nonScaling:!1,initialize:function(d){typeof d=="string"&&(d=this._parseShadow(d));for(var c in d)this[c]=d[c];this.id=a.Object.__uid++},_parseShadow:function(d){var c=d.trim(),f=a.Shadow.reOffsetsAndBlur.exec(c)||[],s=c.replace(a.Shadow.reOffsetsAndBlur,"")||"rgb(0,0,0)";return{color:s.trim(),offsetX:parseFloat(f[1],10)||0,offsetY:parseFloat(f[2],10)||0,blur:parseFloat(f[3],10)||0}},toString:function(){return[this.offsetX,this.offsetY,this.blur,this.color].join("px ")},toSVG:function(d){var c=40,f=40,s=a.Object.NUM_FRACTION_DIGITS,h=a.util.rotateVector({x:this.offsetX,y:this.offsetY},a.util.degreesToRadians(-d.angle)),g=20,m=new a.Color(this.color);return d.width&&d.height&&(c=u((Math.abs(h.x)+this.blur)/d.width,s)*100+g,f=u((Math.abs(h.y)+this.blur)/d.height,s)*100+g),d.flipX&&(h.x*=-1),d.flipY&&(h.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(h.x,s)+'" dy="'+u(h.y,s)+`" result="oBlur" ></feOffset>
<feFlood flood-color="`+m.toRgb()+'" flood-opacity="'+m.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 d={},c=a.Shadow.prototype;return["color","blur","offsetX","offsetY","affectStroke","nonScaling"].forEach(function(f){this[f]!==c[f]&&(d[f]=this[f])},this),d}}),a.Shadow.reOffsetsAndBlur=/(?:\s|^)(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(-?\d+(?:\.\d*)?(?:px)?(?:\s?|$))?(\d+(?:\.\d*)?(?:px)?)?(?:\s?|$)(?:$|\s)/}(e),function(){if(t.StaticCanvas){t.warn("fabric.StaticCanvas is already defined.");return}var o=t.util.object.extend,a=t.util.getElementOffset,u=t.util.removeFromArray,d=t.util.toFixed,c=t.util.transformPoint,f=t.util.invertTransform,s=t.util.getNodeCanvas,h=t.util.createCanvasElement,g=new Error("Could not initialize `canvas` element");t.StaticCanvas=t.util.createClass(t.CommonMethods,{initialize:function(m,y){y||(y={}),this.renderAndResetBound=this.renderAndReset.bind(this),this.requestRenderAllBound=this.requestRenderAll.bind(this),this._initStatic(m,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(m,y){var b=this.requestRenderAllBound;this._objects=[],this._createLowerCanvas(m),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 m=t.devicePixelRatio;this.__initRetinaScaling(m,this.lowerCanvasEl,this.contextContainer),this.upperCanvasEl&&this.__initRetinaScaling(m,this.upperCanvasEl,this.contextTop)}},__initRetinaScaling:function(m,y,b){y.setAttribute("width",this.width*m),y.setAttribute("height",this.height*m),b.scale(m,m)},calcOffset:function(){return this._offset=a(this.lowerCanvasEl),this},setOverlayImage:function(m,y,b){return this.__setBgOverlayImage("overlayImage",m,y,b)},setBackgroundImage:function(m,y,b){return this.__setBgOverlayImage("backgroundImage",m,y,b)},setOverlayColor:function(m,y){return this.__setBgOverlayColor("overlayColor",m,y)},setBackgroundColor:function(m,y){return this.__setBgOverlayColor("backgroundColor",m,y)},__setBgOverlayImage:function(m,y,b,_){return typeof y=="string"?t.util.loadImage(y,function(w,S){if(w){var x=new t.Image(w,_);this[m]=x,x.canvas=this}b&&b(w,S)},this,_&&_.crossOrigin):(_&&y.setOptions(_),this[m]=y,y&&(y.canvas=this),b&&b(y,!1)),this},__setBgOverlayColor:function(m,y,b){return this[m]=y,this._initGradient(y,m),this._initPattern(y,m,b),this},_createCanvasElement:function(){var m=h();if(!m||(m.style||(m.style={}),typeof m.getContext>"u"))throw g;return m},_initOptions:function(m){var y=this.lowerCanvasEl;this._setOptions(m),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(m){m&&m.getContext?this.lowerCanvasEl=m:this.lowerCanvasEl=t.util.getById(m)||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(m,y){return this.setDimensions({width:m},y)},setHeight:function(m,y){return this.setDimensions({height:m},y)},setDimensions:function(m,y){var b;y=y||{};for(var _ in m)b=m[_],y.cssOnly||(this._setBackstoreDimension(_,m[_]),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(m,y){return this.lowerCanvasEl[m]=y,this.upperCanvasEl&&(this.upperCanvasEl[m]=y),this.cacheCanvasEl&&(this.cacheCanvasEl[m]=y),this[m]=y,this},_setCssDimension:function(m,y){return this.lowerCanvasEl.style[m]=y,this.upperCanvasEl&&(this.upperCanvasEl.style[m]=y),this.wrapperEl&&(this.wrapperEl.style[m]=y),this},getZoom:function(){return this.viewportTransform[0]},setViewportTransform:function(m){var y=this._activeObject,b=this.backgroundImage,_=this.overlayImage,w,S,x;for(this.viewportTransform=m,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(m,y){var b=m,_=this.viewportTransform.slice(0);m=c(m,f(this.viewportTransform)),_[0]=y,_[3]=y;var w=c(m,_);return _[4]+=b.x-w.x,_[5]+=b.y-w.y,this.setViewportTransform(_)},setZoom:function(m){return this.zoomToPoint(new t.Point(0,0),m),this},absolutePan:function(m){var y=this.viewportTransform.slice(0);return y[4]=-m.x,y[5]=-m.y,this.setViewportTransform(y)},relativePan:function(m){return this.absolutePan(new t.Point(-m.x-this.viewportTransform[4],-m.y-this.viewportTransform[5]))},getElement:function(){return this.lowerCanvasEl},_onObjectAdded:function(m){this.stateful&&m.setupState(),m._set("canvas",this),m.setCoords(),this.fire("object:added",{target:m}),m.fire("added")},_onObjectRemoved:function(m){this.fire("object:removed",{target:m}),m.fire("removed"),delete m.canvas},clearContext:function(m){return m.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 m=this.contextContainer;return this.renderCanvas(m,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 m={},y=this.width,b=this.height,_=f(this.viewportTransform);return m.tl=c({x:0,y:0},_),m.br=c({x:y,y:b},_),m.tr=new t.Point(m.br.x,m.tl.y),m.bl=new t.Point(m.tl.x,m.br.y),this.vptCoords=m,m},cancelRequestedRender:function(){this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0)},renderCanvas:function(m,y){var b=this.viewportTransform,_=this.clipPath;this.cancelRequestedRender(),this.calcViewportBoundaries(),this.clearContext(m),t.util.setImageSmoothing(m,this.imageSmoothingEnabled),this.fire("before:render",{ctx:m}),this._renderBackground(m),m.save(),m.transform(b[0],b[1],b[2],b[3],b[4],b[5]),this._renderObjects(m,y),m.restore(),!this.controlsAboveOverlay&&this.interactive&&this.drawControls(m),_&&(_.canvas=this,_.shouldCache(),_._transformDone=!0,_.renderCache({forClipping:!0}),this.drawClipPathOnCanvas(m)),this._renderOverlay(m),this.controlsAboveOverlay&&this.interactive&&this.drawControls(m),this.fire("after:render",{ctx:m})},drawClipPathOnCanvas:function(m){var y=this.viewportTransform,b=this.clipPath;m.save(),m.transform(y[0],y[1],y[2],y[3],y[4],y[5]),m.globalCompositeOperation="destination-in",b.transform(m),m.scale(1/b.zoomX,1/b.zoomY),m.drawImage(b._cacheCanvas,-b.cacheTranslationX,-b.cacheTranslationY),m.restore()},_renderObjects:function(m,y){var b,_;for(b=0,_=y.length;b<_;++b)y[b]&&y[b].render(m)},_renderBackgroundOrOverlay:function(m,y){var b=this[y+"Color"],_=this[y+"Image"],w=this.viewportTransform,S=this[y+"Vpt"];if(!(!b&&!_)){if(b){m.save(),m.beginPath(),m.moveTo(0,0),m.lineTo(this.width,0),m.lineTo(this.width,this.height),m.lineTo(0,this.height),m.closePath(),m.fillStyle=b.toLive?b.toLive(m,this):b,S&&m.transform(w[0],w[1],w[2],w[3],w[4],w[5]),m.transform(1,0,0,1,b.offsetX||0,b.offsetY||0);var x=b.gradientTransform||b.patternTransform;x&&m.transform(x[0],x[1],x[2],x[3],x[4],x[5]),m.fill(),m.restore()}_&&(m.save(),S&&m.transform(w[0],w[1],w[2],w[3],w[4],w[5]),_.render(m),m.restore())}},_renderBackground:function(m){this._renderBackgroundOrOverlay(m,"background")},_renderOverlay:function(m){this._renderBackgroundOrOverlay(m,"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(m){return this._centerObject(m,new t.Point(this.getCenterPoint().x,m.getCenterPoint().y))},centerObjectV:function(m){return this._centerObject(m,new t.Point(m.getCenterPoint().x,this.getCenterPoint().y))},centerObject:function(m){var y=this.getCenterPoint();return this._centerObject(m,y)},viewportCenterObject:function(m){var y=this.getVpCenter();return this._centerObject(m,y)},viewportCenterObjectH:function(m){var y=this.getVpCenter();return this._centerObject(m,new t.Point(y.x,m.getCenterPoint().y)),this},viewportCenterObjectV:function(m){var y=this.getVpCenter();return this._centerObject(m,new t.Point(m.getCenterPoint().x,y.y))},getVpCenter:function(){var m=this.getCenterPoint(),y=f(this.viewportTransform);return c(m,y)},_centerObject:function(m,y){return m.setPositionByOrigin(y,"center","center"),m.setCoords(),this.renderOnAddRemove&&this.requestRenderAll(),this},toDatalessJSON:function(m){return this.toDatalessObject(m)},toObject:function(m){return this._toObjectMethod("toObject",m)},toDatalessObject:function(m){return this._toObjectMethod("toDatalessObject",m)},_toObjectMethod:function(m,y){var b=this.clipPath,_={version:t.version,objects:this._toObjects(m,y)};return b&&!b.excludeFromExport&&(_.clipPath=this._toObject(this.clipPath,m,y)),o(_,this.__serializeBgOverlay(m,y)),t.util.populateWithProperties(this,_,y),_},_toObjects:function(m,y){return this._objects.filter(function(b){return!b.excludeFromExport}).map(function(b){return this._toObject(b,m,y)},this)},_toObject:function(m,y,b){var _;this.includeDefaultValues||(_=m.includeDefaultValues,m.includeDefaultValues=!1);var w=m[y](b);return this.includeDefaultValues||(m.includeDefaultValues=_),w},__serializeBgOverlay:function(m,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(_,m,y)),w&&!w.excludeFromExport&&(b.overlayImage=this._toObject(w,m,y)),b},svgViewportTransformation:!0,toSVG:function(m,y){m||(m={}),m.reviver=y;var b=[];return this._setSVGPreamble(b,m),this._setSVGHeader(b,m),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(m,y){y.suppressPreamble||m.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(m,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="'+d(-w[4]/w[0],x)+" "+d(-w[5]/w[3],x)+" "+d(this.width/w[0],x)+" "+d(this.height/w[3],x)+'" '),m.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(m){var y=this.clipPath;return y?(y.clipPathId="CLIPPATH_"+t.Object.__uid++,'<clipPath id="'+y.clipPathId+`" >
`+this.clipPath.toClipPathSVG(m.reviver)+`</clipPath>
`):""},createSVGRefElementsMarkup:function(){var m=this,y=["background","overlay"].map(function(b){var _=m[b+"Color"];if(_&&_.toLive){var w=m[b+"Vpt"],S=m.viewportTransform,x={width:m.width/(w?S[0]:1),height:m.height/(w?S[3]:1)};return _.toSVG(x,{additionalTransform:w?t.util.matrixToSVG(S):""})}});return y.join("")},createSVGFontFacesMarkup:function(){var m="",y={},b,_,w,S,x,T,E,I,D,N=t.fontPaths,L=[];for(this._objects.forEach(function O(V){L.push(V),V._objects&&V._objects.forEach(O)}),I=0,D=L.length;I<D;I++)if(b=L[I],_=b.fontFamily,!(b.type.indexOf("text")===-1||y[_]||!N[_])&&(y[_]=!0,!!b.styles)){w=b.styles;for(x in w){S=w[x];for(E in S)T=S[E],_=T.fontFamily,!y[_]&&N[_]&&(y[_]=!0)}}for(var F in y)m+=[` @font-face {
`," font-family: '",F,`';
`," src: url('",N[F],`');
`,` }
`].join("");return m&&(m=[' <style type="text/css">',`<![CDATA[
`,m,"]]>",`</style>
`].join("")),m},_setSVGObjects:function(m,y){var b,_,w,S=this._objects;for(_=0,w=S.length;_<w;_++)b=S[_],!b.excludeFromExport&&this._setSVGObject(m,b,y)},_setSVGObject:function(m,y,b){m.push(y.toSVG(b))},_setSVGBgOverlayImage:function(m,y,b){this[y]&&!this[y].excludeFromExport&&this[y].toSVG&&m.push(this[y].toSVG(b))},_setSVGBgOverlayColor:function(m,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(_),E=this[y+"Vpt"],I=E?t.util.matrixToSVG(T):"";m.push('<rect transform="'+I+" 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 m.push('<rect x="0" y="0" width="100%" height="100%" ','fill="',b,'"',`></rect>
`)},sendToBack:function(m){if(!m)return this;var y=this._activeObject,b,_,w;if(m===y&&m.type==="activeSelection")for(w=y._objects,b=w.length;b--;)_=w[b],u(this._objects,_),this._objects.unshift(_);else u(this._objects,m),this._objects.unshift(m);return this.renderOnAddRemove&&this.requestRenderAll(),this},bringToFront:function(m){if(!m)return this;var y=this._activeObject,b,_,w;if(m===y&&m.type==="activeSelection")for(w=y._objects,b=0;b<w.length;b++)_=w[b],u(this._objects,_),this._objects.push(_);else u(this._objects,m),this._objects.push(m);return this.renderOnAddRemove&&this.requestRenderAll(),this},sendBackwards:function(m,y){if(!m)return this;var b=this._activeObject,_,w,S,x,T,E=0;if(m===b&&m.type==="activeSelection")for(T=b._objects,_=0;_<T.length;_++)w=T[_],S=this._objects.indexOf(w),S>0+E&&(x=S-1,u(this._objects,w),this._objects.splice(x,0,w)),E++;else S=this._objects.indexOf(m),S!==0&&(x=this._findNewLowerIndex(m,S,y),u(this._objects,m),this._objects.splice(x,0,m));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewLowerIndex:function(m,y,b){var _,w;if(b)for(_=y,w=y-1;w>=0;--w){var S=m.intersectsWithObject(this._objects[w])||m.isContainedWithinObject(this._objects[w])||this._objects[w].isContainedWithinObject(m);if(S){_=w;break}}else _=y-1;return _},bringForward:function(m,y){if(!m)return this;var b=this._activeObject,_,w,S,x,T,E=0;if(m===b&&m.type==="activeSelection")for(T=b._objects,_=T.length;_--;)w=T[_],S=this._objects.indexOf(w),S<this._objects.length-1-E&&(x=S+1,u(this._objects,w),this._objects.splice(x,0,w)),E++;else S=this._objects.indexOf(m),S!==this._objects.length-1&&(x=this._findNewUpperIndex(m,S,y),u(this._objects,m),this._objects.splice(x,0,m));return this.renderOnAddRemove&&this.requestRenderAll(),this},_findNewUpperIndex:function(m,y,b){var _,w,S;if(b)for(_=y,w=y+1,S=this._objects.length;w<S;++w){var x=m.intersectsWithObject(this._objects[w])||m.isContainedWithinObject(this._objects[w])||this._objects[w].isContainedWithinObject(m);if(x){_=w;break}}else _=y+1;return _},moveTo:function(m,y){return u(this._objects,m),this._objects.splice(y,0,m),this.renderOnAddRemove&&this.requestRenderAll()},dispose:function(){return this.isRendering&&(t.util.cancelAnimFrame(this.isRendering),this.isRendering=0),this.forEachObject(function(m){m.dispose&&m.dispose()}),this._objects=[],this.backgroundImage&&this.backgroundImage.dispose&&this.backgroundImage.dispose(),this.backgroundImage=null,this.overlayImage&&this.overlayImage.dispose&&this.overlayImage.dispose(),this.overlayImage=null,this._iTextInstances=null,this.contextContainer=null,this.lowerCanvasEl.classList.remove("lower-canvas"),t.util.setStyle(this.lowerCanvasEl,this._originalCanvasStyle),delete this._originalCanvasStyle,this.lowerCanvasEl.setAttribute("width",this.width),this.lowerCanvasEl.setAttribute("height",this.height),t.util.cleanUpJsdomNode(this.lowerCanvasEl),this.lowerCanvasEl=void 0,this},toString:function(){return"#<fabric.Canvas ("+this.complexity()+"): { objects: "+this._objects.length+" }>"}}),o(t.StaticCanvas.prototype,t.Observable),o(t.StaticCanvas.prototype,t.Collection),o(t.StaticCanvas.prototype,t.DataURLExporter),o(t.StaticCanvas,{EMPTY_JSON:'{"objects": [], "background": "white"}',supports:function(m){var y=h();if(!y||!y.getContext)return null;var b=y.getContext("2d");if(!b)return null;switch(m){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 m=s(this.lowerCanvasEl);return m&&m.createPNGStream()},t.StaticCanvas.prototype.createJPEGStream=function(m){var y=s(this.lowerCanvasEl);return y&&y.createJPEGStream(m)})}(),t.BaseBrush=t.util.createClass({color:"rgb(0, 0, 0)",width:1,shadow:null,strokeLineCap:"round",strokeLineJoin:"round",strokeMiterLimit:10,strokeDashArray:null,limitedToCanvasSize:!1,_setBrushStyles:function(o){o.strokeStyle=this.color,o.lineWidth=this.width,o.lineCap=this.strokeLineCap,o.miterLimit=this.strokeMiterLimit,o.lineJoin=this.strokeLineJoin,o.setLineDash(this.strokeDashArray||[])},_saveAndTransform:function(o){var a=this.canvas.viewportTransform;o.save(),o.transform(a[0],a[1],a[2],a[3],a[4],a[5])},_setShadow:function(){if(!!this.shadow){var o=this.canvas,a=this.shadow,u=o.contextTop,d=o.getZoom();o&&o._isRetinaScaling()&&(d*=t.devicePixelRatio),u.shadowColor=a.color,u.shadowBlur=a.blur*d,u.shadowOffsetX=a.offsetX*d,u.shadowOffsetY=a.offsetY*d}},needsFullRender:function(){var o=new t.Color(this.color);return o.getAlpha()<1||!!this.shadow},_resetShadow:function(){var o=this.canvas.contextTop;o.shadowColor="",o.shadowBlur=o.shadowOffsetX=o.shadowOffsetY=0},_isOutSideCanvas:function(o){return o.x<0||o.x>this.canvas.getWidth()||o.y<0||o.y>this.canvas.getHeight()}}),function(){t.PencilBrush=t.util.createClass(t.BaseBrush,{decimate:.4,drawStraightLine:!1,straightLineKey:"shiftKey",initialize:function(o){this.canvas=o,this._points=[]},needsFullRender:function(){return this.callSuper("needsFullRender")||this._hasStraightLine},_drawSegment:function(o,a,u){var d=a.midPointFrom(u);return o.quadraticCurveTo(a.x,a.y,d.x,d.y),d},onMouseDown:function(o,a){!this.canvas._isMainEvent(a.e)||(this.drawStraightLine=a.e[this.straightLineKey],this._prepareForDrawing(o),this._captureDrawingPath(o),this._render())},onMouseMove:function(o,a){if(!!this.canvas._isMainEvent(a.e)&&(this.drawStraightLine=a.e[this.straightLineKey],!(this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o))&&this._captureDrawingPath(o)&&this._points.length>1))if(this.needsFullRender())this.canvas.clearContext(this.canvas.contextTop),this._render();else{var u=this._points,d=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[d-2],u[d-1],!0),c.stroke(),c.restore()}},onMouseUp:function(o){return this.canvas._isMainEvent(o.e)?(this.drawStraightLine=!1,this.oldEnd=void 0,this._finalizeAndAddPath(),!1):!0},_prepareForDrawing:function(o){var a=new t.Point(o.x,o.y);this._reset(),this._addPoint(a),this.canvas.contextTop.moveTo(a.x,a.y)},_addPoint:function(o){return this._points.length>1&&o.eq(this._points[this._points.length-1])?!1:(this.drawStraightLine&&this._points.length>1&&(this._hasStraightLine=!0,this._points.pop()),this._points.push(o),!0)},_reset:function(){this._points=[],this._setBrushStyles(this.canvas.contextTop),this._setShadow(),this._hasStraightLine=!1},_captureDrawingPath:function(o){var a=new t.Point(o.x,o.y);return this._addPoint(a)},_render:function(o){var a,u,d=this._points[0],c=this._points[1];if(o=o||this.canvas.contextTop,this._saveAndTransform(o),o.beginPath(),this._points.length===2&&d.x===c.x&&d.y===c.y){var f=this.width/1e3;d=new t.Point(d.x,d.y),c=new t.Point(c.x,c.y),d.x-=f,c.x+=f}for(o.moveTo(d.x,d.y),a=1,u=this._points.length;a<u;a++)this._drawSegment(o,d,c),d=this._points[a],c=this._points[a+1];o.lineTo(d.x,d.y),o.stroke(),o.restore()},convertPointsToSVGPath:function(o){var a=this.width/1e3;return t.util.getSmoothPathFromPoints(o,a)},_isEmptySVGPath:function(o){var a=t.util.joinPath(o);return a==="M 0 0 Q 0 0 0 0 L 0 0"},createPath:function(o){var a=new t.Path(o,{fill:null,stroke:this.color,strokeWidth:this.width,strokeLineCap:this.strokeLineCap,strokeMiterLimit:this.strokeMiterLimit,strokeLineJoin:this.strokeLineJoin,strokeDashArray:this.strokeDashArray});return this.shadow&&(this.shadow.affectStroke=!0,a.shadow=new t.Shadow(this.shadow)),a},decimatePoints:function(o,a){if(o.length<=2)return o;var u=this.canvas.getZoom(),d=Math.pow(a/u,2),c,f=o.length-1,s=o[0],h=[s],g;for(c=1;c<f-1;c++)g=Math.pow(s.x-o[c].x,2)+Math.pow(s.y-o[c].y,2),g>=d&&(s=o[c],h.push(s));return h.push(o[f]),h},_finalizeAndAddPath:function(){var o=this.canvas.contextTop;o.closePath(),this.decimate&&(this._points=this.decimatePoints(this._points,this.decimate));var a=this.convertPointsToSVGPath(this._points);if(this._isEmptySVGPath(a)){this.canvas.requestRenderAll();return}var u=this.createPath(a);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(o){this.canvas=o,this.points=[]},drawDot:function(o){var a=this.addPoint(o),u=this.canvas.contextTop;this._saveAndTransform(u),this.dot(u,a),u.restore()},dot:function(o,a){o.fillStyle=a.fill,o.beginPath(),o.arc(a.x,a.y,a.radius,0,Math.PI*2,!1),o.closePath(),o.fill()},onMouseDown:function(o){this.points.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.drawDot(o)},_render:function(){var o=this.canvas.contextTop,a,u,d=this.points;for(this._saveAndTransform(o),a=0,u=d.length;a<u;a++)this.dot(o,d[a]);o.restore()},onMouseMove:function(o){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o)||(this.needsFullRender()?(this.canvas.clearContext(this.canvas.contextTop),this.addPoint(o),this._render()):this.drawDot(o))},onMouseUp:function(){var o=this.canvas.renderOnAddRemove,a,u;this.canvas.renderOnAddRemove=!1;var d=[];for(a=0,u=this.points.length;a<u;a++){var c=this.points[a],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)),d.push(f)}var s=new t.Group(d);s.canvas=this.canvas,this.canvas.fire("before:path:created",{path:s}),this.canvas.add(s),this.canvas.fire("path:created",{path:s}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=o,this.canvas.requestRenderAll()},addPoint:function(o){var a=new t.Point(o.x,o.y),u=t.util.getRandomInt(Math.max(0,this.width-20),this.width+20)/2,d=new t.Color(this.color).setAlpha(t.util.getRandomInt(0,100)/100).toRgba();return a.radius=u,a.fill=d,this.points.push(a),a}}),t.SprayBrush=t.util.createClass(t.BaseBrush,{width:10,density:20,dotWidth:1,dotWidthVariance:1,randomOpacity:!1,optimizeOverlapping:!0,initialize:function(o){this.canvas=o,this.sprayChunks=[]},onMouseDown:function(o){this.sprayChunks.length=0,this.canvas.clearContext(this.canvas.contextTop),this._setShadow(),this.addSprayChunk(o),this.render(this.sprayChunkPoints)},onMouseMove:function(o){this.limitedToCanvasSize===!0&&this._isOutSideCanvas(o)||(this.addSprayChunk(o),this.render(this.sprayChunkPoints))},onMouseUp:function(){var o=this.canvas.renderOnAddRemove;this.canvas.renderOnAddRemove=!1;for(var a=[],u=0,d=this.sprayChunks.length;u<d;u++)for(var c=this.sprayChunks[u],f=0,s=c.length;f<s;f++){var h=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});a.push(h)}this.optimizeOverlapping&&(a=this._getOptimizedRects(a));var g=new t.Group(a);this.shadow&&g.set("shadow",new t.Shadow(this.shadow)),this.canvas.fire("before:path:created",{path:g}),this.canvas.add(g),this.canvas.fire("path:created",{path:g}),this.canvas.clearContext(this.canvas.contextTop),this._resetShadow(),this.canvas.renderOnAddRemove=o,this.canvas.requestRenderAll()},_getOptimizedRects:function(o){var a={},u,d,c;for(d=0,c=o.length;d<c;d++)u=o[d].left+""+o[d].top,a[u]||(a[u]=o[d]);var f=[];for(u in a)f.push(a[u]);return f},render:function(o){var a=this.canvas.contextTop,u,d;for(a.fillStyle=this.color,this._saveAndTransform(a),u=0,d=o.length;u<d;u++){var c=o[u];typeof c.opacity<"u"&&(a.globalAlpha=c.opacity),a.fillRect(c.x,c.y,c.width,c.width)}a.restore()},_render:function(){var o=this.canvas.contextTop,a,u;for(o.fillStyle=this.color,this._saveAndTransform(o),a=0,u=this.sprayChunks.length;a<u;a++)this.render(this.sprayChunks[a]);o.restore()},addSprayChunk:function(o){this.sprayChunkPoints=[];var a,u,d,c=this.width/2,f;for(f=0;f<this.density;f++){a=t.util.getRandomInt(o.x-c,o.x+c),u=t.util.getRandomInt(o.y-c,o.y+c),this.dotWidthVariance?d=t.util.getRandomInt(Math.max(1,this.dotWidth-this.dotWidthVariance),this.dotWidth+this.dotWidthVariance):d=this.dotWidth;var s=new t.Point(a,u);s.width=d,this.randomOpacity&&(s.opacity=t.util.getRandomInt(0,100)/100),this.sprayChunkPoints.push(s)}this.sprayChunks.push(this.sprayChunkPoints)}}),t.PatternBrush=t.util.createClass(t.PencilBrush,{getPatternSrc:function(){var o=20,a=5,u=t.util.createCanvasElement(),d=u.getContext("2d");return u.width=u.height=o+a,d.fillStyle=this.color,d.beginPath(),d.arc(o/2,o/2,o/2,0,Math.PI*2,!1),d.closePath(),d.fill(),u},getPatternSrcFunction:function(){return String(this.getPatternSrc).replace("this.color",'"'+this.color+'"')},getPattern:function(o){return o.createPattern(this.source||this.getPatternSrc(),"repeat")},_setBrushStyles:function(o){this.callSuper("_setBrushStyles",o),o.strokeStyle=this.getPattern(o)},createPath:function(o){var a=this.callSuper("createPath",o),u=a._getLeftTopCoords().scalarAdd(a.strokeWidth/2);return a.stroke=new t.Pattern({source:this.source||this.getPatternSrcFunction(),offsetX:-u.x,offsetY:-u.y}),a}}),function(){var o=t.util.getPointer,a=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,h;if(c.length>0&&!this.preserveObjectStacking){s=[],h=[];for(var g=0,m=this._objects.length;g<m;g++)f=this._objects[g],c.indexOf(f)===-1?s.push(f):h.push(f);c.length>1&&(this._activeObject._objects=h),s.push.apply(s,h)}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(),h=t.util.invertTransform(s),g=this.restorePointerVpt(f);return t.util.transformPoint(g,h)},isTargetTransparent:function(c,f,s){if(c.shouldCache()&&c._cacheCanvas&&c!==this._activeObject){var h=this._normalizePointer(c,{x:f,y:s}),g=Math.max(c.cacheTranslationX+h.x*c.zoomX,0),m=Math.max(c.cacheTranslationY+h.y*c.zoomY,0),w=t.util.isTransparent(c._cacheContext,Math.round(g),Math.round(m),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(),h=this._activeObject;return!f||f&&h&&s.length>1&&s.indexOf(f)===-1&&h!==f&&!this._isSelectionKeyPressed(c)||f&&!f.evented||f&&!f.selectable&&h&&h!==f},_shouldCenterTransform:function(c,f,s){if(!!c){var h;return f==="scale"||f==="scaleX"||f==="scaleY"||f==="resizing"?h=this.centeredScaling||c.centeredScaling:f==="rotate"&&(h=this.centeredRotation||c.centeredRotation),h?!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,h){if(!f||!c)return"drag";var g=h.controls[f];return g.getActionName(s,g,h)},_setupCurrentTransform:function(c,f,s){if(!!f){var h=this.getPointer(c),g=f.__corner,m=f.controls[g],y=s&&g?m.getActionHandler(c,f,m):t.controlsUtils.dragHandler,b=this._getActionFromCorner(s,g,c,f),_=this._getOriginFromCorner(f,g),w=c[this.centeredKey],S={target:f,action:b,actionHandler:y,corner:g,scaleX:f.scaleX,scaleY:f.scaleY,skewX:f.skewX,skewY:f.skewY,offsetX:h.x-f.left,offsetY:h.y-f.top,originX:_.x,originY:_.y,ex:h.x,ey:h.y,lastX:h.x,lastY:h.y,theta:a(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),h=t.util.transformPoint(s,this.viewportTransform),g=new t.Point(f.ex+f.left,f.ey+f.top),m=t.util.transformPoint(g,this.viewportTransform),y=Math.min(h.x,m.x),b=Math.min(h.y,m.y),_=Math.max(h.x,m.x),w=Math.max(h.y,m.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,h=this.getPointer(c,s),g=this._activeObject,m=this.getActiveObjects(),y,b,_=u(c),w=m.length>1&&!f||m.length===1;if(this.targets=[],w&&g._findTargetCorner(h,_)||m.length>1&&!f&&g===this._searchPossibleTargets([g],h))return g;if(m.length===1&&g===this._searchPossibleTargets([g],h))if(this.preserveObjectStacking)y=g,b=this.targets,this.targets=[];else return g;var S=this._searchPossibleTargets(this._objects,h);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 h=this.isTargetTransparent(f,s.x,s.y);if(!h)return!0}else return!0},_searchPossibleTargets:function(c,f){for(var s,h=c.length,g;h--;){var m=c[h],y=m.group?this._normalizePointer(m.group,f):f;if(this._checkTarget(y,m,f)){s=c[h],s.subTargetCheck&&s instanceof t.Group&&(g=this._searchPossibleTargets(s._objects,f),g&&this.targets.push(g));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=o(c),h=this.upperCanvasEl,g=h.getBoundingClientRect(),m=g.width||0,y=g.height||0,b;(!m||!y)&&("top"in g&&"bottom"in g&&(y=Math.abs(g.top-g.bottom)),"right"in g&&"left"in g&&(m=Math.abs(g.right-g.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/=_),m===0||y===0?b={width:1,height:1}:b={width:h.width/m,height:h.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,h=this.getActiveObjects(),g=[],m=[];c.forEach(function(y){h.indexOf(y)===-1&&(s=!0,y.fire("deselected",{e:f,target:y}),m.push(y))}),h.forEach(function(y){c.indexOf(y)===-1&&(s=!0,y.fire("selected",{e:f,target:y}),g.push(y))}),c.length>0&&h.length>0?s&&this.fire("selection:updated",{e:f,selected:g,deselected:m}):h.length>0?this.fire("selection:created",{e:f,selected:g}):c.length>0&&this.fire("selection:cleared",{e:f,deselected:m})},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 h=this._realizeGroupTransformOnObject(c),g=this.callSuper("_toObject",c,f,s);return this._unwindGroupTransformOnObject(c,h),g},_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(h){s[h]=c[h]}),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 h=this._realizeGroupTransformOnObject(f);this.callSuper("_setSVGObject",c,f,s),this._unwindGroupTransformOnObject(f,h)},setViewportTransform:function(c){this.renderOnAddRemove&&this._activeObject&&this._activeObject.isEditing&&this._activeObject.clearContextTop(),t.StaticCanvas.prototype.setViewportTransform.call(this,c)}});for(var d in t.StaticCanvas)d!=="prototype"&&(t.Canvas[d]=t.StaticCanvas[d])}(),function(){var o=t.util.addListener,a=t.util.removeListener,u=3,d=2,c=1,f={passive:!1};function s(h,g){return h.button&&h.button===g-1}t.util.object.extend(t.Canvas.prototype,{mainTouchId:null,_initEventListeners:function(){this.removeListeners(),this._bindEvents(),this.addOrRemove(o,"add")},_getEventPrefix:function(){return this.enablePointerEvents?"pointer":"mouse"},addOrRemove:function(h,g){var m=this.upperCanvasEl,y=this._getEventPrefix();h(t.window,"resize",this._onResize),h(m,y+"down",this._onMouseDown),h(m,y+"move",this._onMouseMove,f),h(m,y+"out",this._onMouseOut),h(m,y+"enter",this._onMouseEnter),h(m,"wheel",this._onMouseWheel),h(m,"contextmenu",this._onContextMenu),h(m,"dblclick",this._onDoubleClick),h(m,"dragover",this._onDragOver),h(m,"dragenter",this._onDragEnter),h(m,"dragleave",this._onDragLeave),h(m,"drop",this._onDrop),this.enablePointerEvents||h(m,"touchstart",this._onTouchStart,f),typeof eventjs<"u"&&g in eventjs&&(eventjs[g](m,"gesture",this._onGesture),eventjs[g](m,"drag",this._onDrag),eventjs[g](m,"orientation",this._onOrientationChange),eventjs[g](m,"shake",this._onShake),eventjs[g](m,"longpress",this._onLongPress))},removeListeners:function(){this.addOrRemove(a,"remove");var h=this._getEventPrefix();a(t.document,h+"up",this._onMouseUp),a(t.document,"touchend",this._onTouchEnd,f),a(t.document,h+"move",this._onMouseMove,f),a(t.document,"touchmove",this._onMouseMove,f)},_bindEvents:function(){this.eventsBound||(this._onMouseDown=this._onMouseDown.bind(this),this._onTouchStart=this._onTouchStart.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._onTouchEnd=this._onTouchEnd.bind(this),this._onResize=this._onResize.bind(this),this._onGesture=this._onGesture.bind(this),this._onDrag=this._onDrag.bind(this),this._onShake=this._onShake.bind(this),this._onLongPress=this._onLongPress.bind(this),this._onOrientationChange=this._onOrientationChange.bind(this),this._onMouseWheel=this._onMouseWheel.bind(this),this._onMouseOut=this._onMouseOut.bind(this),this._onMouseEnter=this._onMouseEnter.bind(this),this._onContextMenu=this._onContextMenu.bind(this),this._onDoubleClick=this._onDoubleClick.bind(this),this._onDragOver=this._onDragOver.bind(this),this._onDragEnter=this._simpleEventHandler.bind(this,"dragenter"),this._onDragLeave=this._simpleEventHandler.bind(this,"dragleave"),this._onDrop=this._onDrop.bind(this),this.eventsBound=!0)},_onGesture:function(h,g){this.__onTransformGesture&&this.__onTransformGesture(h,g)},_onDrag:function(h,g){this.__onDrag&&this.__onDrag(h,g)},_onMouseWheel:function(h){this.__onMouseWheel(h)},_onMouseOut:function(h){var g=this._hoveredTarget;this.fire("mouse:out",{target:g,e:h}),this._hoveredTarget=null,g&&g.fire("mouseout",{e:h});var m=this;this._hoveredTargets.forEach(function(y){m.fire("mouse:out",{target:g,e:h}),y&&g.fire("mouseout",{e:h})}),this._hoveredTargets=[]},_onMouseEnter:function(h){!this._currentTransform&&!this.findTarget(h)&&(this.fire("mouse:over",{target:null,e:h}),this._hoveredTarget=null,this._hoveredTargets=[])},_onOrientationChange:function(h,g){this.__onOrientationChange&&this.__onOrientationChange(h,g)},_onShake:function(h,g){this.__onShake&&this.__onShake(h,g)},_onLongPress:function(h,g){this.__onLongPress&&this.__onLongPress(h,g)},_onDragOver:function(h){h.preventDefault();var g=this._simpleEventHandler("dragover",h);this._fireEnterLeaveEvents(g,h)},_onDrop:function(h){return this._simpleEventHandler("drop:before",h),this._simpleEventHandler("drop",h)},_onContextMenu:function(h){return this.stopContextMenu&&(h.stopPropagation(),h.preventDefault()),!1},_onDoubleClick:function(h){this._cacheTransformEventData(h),this._handleEvent(h,"dblclick"),this._resetTransformEventData(h)},getPointerId:function(h){var g=h.changedTouches;return g?g[0]&&g[0].identifier:this.enablePointerEvents?h.pointerId:-1},_isMainEvent:function(h){return h.isPrimary===!0?!0:h.isPrimary===!1?!1:h.type==="touchend"&&h.touches.length===0?!0:h.changedTouches?h.changedTouches[0].identifier===this.mainTouchId:!0},_onTouchStart:function(h){h.preventDefault(),this.mainTouchId===null&&(this.mainTouchId=this.getPointerId(h)),this.__onMouseDown(h),this._resetTransformEventData();var g=this.upperCanvasEl,m=this._getEventPrefix();o(t.document,"touchend",this._onTouchEnd,f),o(t.document,"touchmove",this._onMouseMove,f),a(g,m+"down",this._onMouseDown)},_onMouseDown:function(h){this.__onMouseDown(h),this._resetTransformEventData();var g=this.upperCanvasEl,m=this._getEventPrefix();a(g,m+"move",this._onMouseMove,f),o(t.document,m+"up",this._onMouseUp),o(t.document,m+"move",this._onMouseMove,f)},_onTouchEnd:function(h){if(!(h.touches.length>0)){this.__onMouseUp(h),this._resetTransformEventData(),this.mainTouchId=null;var g=this._getEventPrefix();a(t.document,"touchend",this._onTouchEnd,f),a(t.document,"touchmove",this._onMouseMove,f);var m=this;this._willAddMouseDown&&clearTimeout(this._willAddMouseDown),this._willAddMouseDown=setTimeout(function(){o(m.upperCanvasEl,g+"down",m._onMouseDown),m._willAddMouseDown=0},400)}},_onMouseUp:function(h){this.__onMouseUp(h),this._resetTransformEventData();var g=this.upperCanvasEl,m=this._getEventPrefix();this._isMainEvent(h)&&(a(t.document,m+"up",this._onMouseUp),a(t.document,m+"move",this._onMouseMove,f),o(g,m+"move",this._onMouseMove,f))},_onMouseMove:function(h){!this.allowTouchScrolling&&h.preventDefault&&h.preventDefault(),this.__onMouseMove(h)},_onResize:function(){this.calcOffset()},_shouldRender:function(h){var g=this._activeObject;return!!g!=!!h||g&&h&&g!==h?!0:(g&&g.isEditing,!1)},__onMouseUp:function(h){var g,m=this._currentTransform,y=this._groupSelector,b=!1,_=!y||y.left===0&&y.top===0;if(this._cacheTransformEventData(h),g=this._target,this._handleEvent(h,"up:before"),s(h,u)){this.fireRightClick&&this._handleEvent(h,"up",u,_);return}if(s(h,d)){this.fireMiddleClick&&this._handleEvent(h,"up",d,_),this._resetTransformEventData();return}if(this.isDrawingMode&&this._isCurrentlyDrawing){this._onMouseUpInDrawingMode(h);return}if(!!this._isMainEvent(h)){if(m&&(this._finalizeCurrentTransform(h),b=m.actionPerformed),!_){var w=g===this._activeObject;this._maybeGroupObjects(h),b||(b=this._shouldRender(g)||!w&&g===this._activeObject)}var S,x;if(g){if(S=g._findTargetCorner(this.getPointer(h,!0),t.util.isTouchEvent(h)),g.selectable&&g!==this._activeObject&&g.activeOn==="up")this.setActiveObject(g,h),b=!0;else{var T=g.controls[S],E=T&&T.getMouseUpHandler(h,g,T);E&&(x=this.getPointer(h),E(h,m,x.x,x.y))}g.isMoving=!1}if(m&&(m.target!==g||m.corner!==S)){var I=m.target&&m.target.controls[m.corner],D=I&&I.getMouseUpHandler(h,g,T);x=x||this.getPointer(h),D&&D(h,m,x.x,x.y)}this._setCursorFromEvent(h,g),this._handleEvent(h,"up",c,_),this._groupSelector=null,this._currentTransform=null,g&&(g.__corner=0),b?this.requestRenderAll():_||this.renderTop()}},_simpleEventHandler:function(h,g){var m=this.findTarget(g),y=this.targets,b={e:g,target:m,subTargets:y};if(this.fire(h,b),m&&m.fire(h,b),!y)return m;for(var _=0;_<y.length;_++)y[_].fire(h,b);return m},_handleEvent:function(h,g,m,y){var b=this._target,_=this.targets||[],w={e:h,target:b,subTargets:_,button:m||c,isClick:y||!1,pointer:this._pointer,absolutePointer:this._absolutePointer,transform:this._currentTransform};g==="up"&&(w.currentTarget=this.findTarget(h),w.currentSubTargets=this.targets),this.fire("mouse:"+g,w),b&&b.fire("mouse"+g,w);for(var S=0;S<_.length;S++)_[S].fire("mouse"+g,w)},_finalizeCurrentTransform:function(h){var g=this._currentTransform,m=g.target,y={e:h,target:m,transform:g,action:g.action};m._scaling&&(m._scaling=!1),m.setCoords(),(g.actionPerformed||this.stateful&&m.hasStateChanged())&&this._fire("modified",y)},_onMouseDownInDrawingMode:function(h){this._isCurrentlyDrawing=!0,this.getActiveObject()&&this.discardActiveObject(h).requestRenderAll();var g=this.getPointer(h);this.freeDrawingBrush.onMouseDown(g,{e:h,pointer:g}),this._handleEvent(h,"down")},_onMouseMoveInDrawingMode:function(h){if(this._isCurrentlyDrawing){var g=this.getPointer(h);this.freeDrawingBrush.onMouseMove(g,{e:h,pointer:g})}this.setCursor(this.freeDrawingCursor),this._handleEvent(h,"move")},_onMouseUpInDrawingMode:function(h){var g=this.getPointer(h);this._isCurrentlyDrawing=this.freeDrawingBrush.onMouseUp({e:h,pointer:g}),this._handleEvent(h,"up")},__onMouseDown:function(h){this._cacheTransformEventData(h),this._handleEvent(h,"down:before");var g=this._target;if(s(h,u)){this.fireRightClick&&this._handleEvent(h,"down",u);return}if(s(h,d)){this.fireMiddleClick&&this._handleEvent(h,"down",d);return}if(this.isDrawingMode){this._onMouseDownInDrawingMode(h);return}if(!!this._isMainEvent(h)&&!this._currentTransform){var m=this._pointer;this._previousPointer=m;var y=this._shouldRender(g),b=this._shouldGroup(h,g);if(this._shouldClearSelection(h,g)?this.discardActiveObject(h):b&&(this._handleGrouping(h,g),g=this._activeObject),this.selection&&(!g||!g.selectable&&!g.isEditing&&g!==this._activeObject)&&(this._groupSelector={ex:this._absolutePointer.x,ey:this._absolutePointer.y,top:0,left:0}),g){var _=g===this._activeObject;g.selectable&&g.activeOn==="down"&&this.setActiveObject(g,h);var w=g._findTargetCorner(this.getPointer(h,!0),t.util.isTouchEvent(h));if(g.__corner=w,g===this._activeObject&&(w||!b)){this._setupCurrentTransform(h,g,_);var S=g.controls[w],m=this.getPointer(h),x=S&&S.getMouseDownHandler(h,g,S);x&&x(h,this._currentTransform,m.x,m.y)}}this._handleEvent(h,"down"),(y||b)&&this.requestRenderAll()}},_resetTransformEventData:function(){this._target=null,this._pointer=null,this._absolutePointer=null},_cacheTransformEventData:function(h){this._resetTransformEventData(),this._pointer=this.getPointer(h,!0),this._absolutePointer=this.restorePointerVpt(this._pointer),this._target=this._currentTransform?this._currentTransform.target:this.findTarget(h)||null},_beforeTransform:function(h){var g=this._currentTransform;this.stateful&&g.target.saveState(),this.fire("before:transform",{e:h,transform:g})},__onMouseMove:function(h){this._handleEvent(h,"move:before"),this._cacheTransformEventData(h);var g,m;if(this.isDrawingMode){this._onMouseMoveInDrawingMode(h);return}if(!!this._isMainEvent(h)){var y=this._groupSelector;y?(m=this._absolutePointer,y.left=m.x-y.ex,y.top=m.y-y.ey,this.renderTop()):this._currentTransform?this._transformObject(h):(g=this.findTarget(h)||null,this._setCursorFromEvent(h,g),this._fireOverOutEvents(g,h)),this._handleEvent(h,"move"),this._resetTransformEventData()}},_fireOverOutEvents:function(h,g){var m=this._hoveredTarget,y=this._hoveredTargets,b=this.targets,_=Math.max(y.length,b.length);this.fireSyntheticInOutEvents(h,g,{oldTarget:m,evtOut:"mouseout",canvasEvtOut:"mouse:out",evtIn:"mouseover",canvasEvtIn:"mouse:over"});for(var w=0;w<_;w++)this.fireSyntheticInOutEvents(b[w],g,{oldTarget:y[w],evtOut:"mouseout",evtIn:"mouseover"});this._hoveredTarget=h,this._hoveredTargets=this.targets.concat()},_fireEnterLeaveEvents:function(h,g){var m=this._draggedoverTarget,y=this._hoveredTargets,b=this.targets,_=Math.max(y.length,b.length);this.fireSyntheticInOutEvents(h,g,{oldTarget:m,evtOut:"dragleave",evtIn:"dragenter"});for(var w=0;w<_;w++)this.fireSyntheticInOutEvents(b[w],g,{oldTarget:y[w],evtOut:"dragleave",evtIn:"dragenter"});this._draggedoverTarget=h},fireSyntheticInOutEvents:function(h,g,m){var y,b,_=m.oldTarget,w,S,x=_!==h,T=m.canvasEvtIn,E=m.canvasEvtOut;x&&(y={e:g,target:h,previousTarget:_},b={e:g,target:_,nextTarget:h}),S=h&&x,w=_&&x,w&&(E&&this.fire(E,b),_.fire(m.evtOut,b)),S&&(T&&this.fire(T,y),h.fire(m.evtIn,y))},__onMouseWheel:function(h){this._cacheTransformEventData(h),this._handleEvent(h,"wheel"),this._resetTransformEventData()},_transformObject:function(h){var g=this.getPointer(h),m=this._currentTransform;m.reset=!1,m.shiftKey=h.shiftKey,m.altKey=h[this.centeredKey],this._performTransformAction(h,m,g),m.actionPerformed&&this.requestRenderAll()},_performTransformAction:function(h,g,m){var y=m.x,b=m.y,_=g.action,w=!1,S=g.actionHandler;S&&(w=S(h,g,y,b)),_==="drag"&&w&&(g.target.isMoving=!0,this.setCursor(g.target.moveCursor||this.moveCursor)),g.actionPerformed=g.actionPerformed||w},_fire:t.controlsUtils.fireEvent,_setCursorFromEvent:function(h,g){if(!g)return this.setCursor(this.defaultCursor),!1;var m=g.hoverCursor||this.hoverCursor,y=this._activeObject&&this._activeObject.type==="activeSelection"?this._activeObject:null,b=(!y||!y.contains(g))&&g._findTargetCorner(this.getPointer(h,!0));b?this.setCursor(this.getCornerCursor(b,g,h)):(g.subTargetCheck&&this.targets.concat().reverse().map(function(_){m=_.hoverCursor||m}),this.setCursor(m))},getCornerCursor:function(h,g,m){var y=g.controls[h];return y.cursorStyleHandler(m,y,g)}})}(),function(){var o=Math.min,a=Math.max;t.util.object.extend(t.Canvas.prototype,{_shouldGroup:function(u,d){var c=this._activeObject;return c&&this._isSelectionKeyPressed(u)&&d&&d.selectable&&this.selection&&(c!==d||c.type==="activeSelection")&&!d.onSelect({e:u})},_handleGrouping:function(u,d){var c=this._activeObject;c.__corner||d===c&&(d=this.findTarget(u,!0),!d||!d.selectable)||(c&&c.type==="activeSelection"?this._updateActiveSelection(d,u):this._createActiveSelection(d,u))},_updateActiveSelection:function(u,d){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),d)):(c.addWithUpdate(u),this._hoveredTarget=c,this._hoveredTargets=this.targets.concat()),this._fireSelectionEvents(f,d)},_createActiveSelection:function(u,d){var c=this.getActiveObjects(),f=this._createGroup(u);this._hoveredTarget=f,this._setActiveObject(f,d),this._fireSelectionEvents(c,d)},_createGroup:function(u){var d=this._objects,c=d.indexOf(this._activeObject)<d.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 d=this._collectObjects(u),c;d.length===1?this.setActiveObject(d[0],u):d.length>1&&(c=new t.ActiveSelection(d.reverse(),{canvas:this}),this.setActiveObject(c,u))},_collectObjects:function(u){for(var d=[],c,f=this._groupSelector.ex,s=this._groupSelector.ey,h=f+this._groupSelector.left,g=s+this._groupSelector.top,m=new t.Point(o(f,h),o(s,g)),y=new t.Point(a(f,h),a(s,g)),b=!this.selectionFullyContained,_=f===h&&s===g,w=this._objects.length;w--&&(c=this._objects[w],!(!(!c||!c.selectable||!c.visible)&&(b&&c.intersectsWithRect(m,y,!0)||c.isContainedWithinRect(m,y,!0)||b&&c.containsPoint(m,null,!0)||b&&c.containsPoint(y,null,!0))&&(d.push(c),_))););return d.length>1&&(d=d.filter(function(S){return!S.onSelect({e:u})})),d},_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(o){o||(o={});var a=o.format||"png",u=o.quality||1,d=(o.multiplier||1)*(o.enableRetinaScaling?this.getRetinaScaling():1),c=this.toCanvasElement(d,o);return t.util.toDataURL(c,a,u)},toCanvasElement:function(o,a){o=o||1,a=a||{};var u=(a.width||this.width)*o,d=(a.height||this.height)*o,c=this.getZoom(),f=this.width,s=this.height,h=c*o,g=this.viewportTransform,m=(g[4]-(a.left||0))*o,y=(g[5]-(a.top||0))*o,b=this.interactive,_=[h,0,0,h,m,y],w=this.enableRetinaScaling,S=t.util.createCanvasElement(),x=this.contextTop;return S.width=u,S.height=d,this.contextTop=null,this.enableRetinaScaling=!1,this.interactive=!1,this.viewportTransform=_,this.width=u,this.height=d,this.calcViewportBoundaries(),this.renderCanvas(S.getContext("2d"),this._objects),this.viewportTransform=g,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(o,a,u){if(!!o){var d=typeof o=="string"?JSON.parse(o):t.util.object.clone(o),c=this,f=d.clipPath,s=this.renderOnAddRemove;return this.renderOnAddRemove=!1,delete d.clipPath,this._enlivenObjects(d.objects,function(h){c.clear(),c._setBgOverlay(d,function(){f?c._enlivenObjects([f],function(g){c.clipPath=g[0],c.__setupCanvas.call(c,d,h,s,a)}):c.__setupCanvas.call(c,d,h,s,a)})},u),this}},__setupCanvas:function(o,a,u,d){var c=this;a.forEach(function(f,s){c.insertAt(f,s)}),this.renderOnAddRemove=u,delete o.objects,delete o.backgroundImage,delete o.overlayImage,delete o.background,delete o.overlay,this._setOptions(o),this.renderAll(),d&&d()},_setBgOverlay:function(o,a){var u={backgroundColor:!1,overlayColor:!1,backgroundImage:!1,overlayImage:!1};if(!o.backgroundImage&&!o.overlayImage&&!o.background&&!o.overlay){a&&a();return}var d=function(){u.backgroundImage&&u.overlayImage&&u.backgroundColor&&u.overlayColor&&a&&a()};this.__setBgOverlay("backgroundImage",o.backgroundImage,u,d),this.__setBgOverlay("overlayImage",o.overlayImage,u,d),this.__setBgOverlay("backgroundColor",o.background,u,d),this.__setBgOverlay("overlayColor",o.overlay,u,d)},__setBgOverlay:function(o,a,u,d){var c=this;if(!a){u[o]=!0,d&&d();return}o==="backgroundImage"||o==="overlayImage"?t.util.enlivenObjects([a],function(f){c[o]=f[0],u[o]=!0,d&&d()}):this["set"+t.util.string.capitalize(o,!0)](a,function(){u[o]=!0,d&&d()})},_enlivenObjects:function(o,a,u){if(!o||o.length===0){a&&a([]);return}t.util.enlivenObjects(o,function(d){a&&a(d)},null,u)},_toDataURL:function(o,a){this.clone(function(u){a(u.toDataURL(o))})},_toDataURLWithMultiplier:function(o,a,u){this.clone(function(d){u(d.toDataURLWithMultiplier(o,a))})},clone:function(o,a){var u=JSON.stringify(this.toJSON(a));this.cloneWithoutData(function(d){d.loadFromJSON(u,function(){o&&o(d)})})},cloneWithoutData:function(o){var a=t.util.createCanvasElement();a.width=this.width,a.height=this.height;var u=new t.Canvas(a);this.backgroundImage?(u.setBackgroundImage(this.backgroundImage.src,function(){u.renderAll(),o&&o(u)}),u.backgroundImageOpacity=this.backgroundImageOpacity,u.backgroundImageStretch=this.backgroundImageStretch):o&&o(u)}}),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.extend,d=a.util.object.clone,c=a.util.toFixed,f=a.util.string.capitalize,s=a.util.degreesToRadians,h=!a.isLikelyNode,g=2;a.Object||(a.Object=a.util.createClass(a.CommonMethods,{type:"object",originX:"left",originY:"top",top:0,left:0,width:0,height:0,scaleX:1,scaleY:1,flipX:!1,flipY:!1,opacity:1,angle:0,skewX:0,skewY:0,cornerSize:13,touchCornerSize:24,transparentCorners:!0,hoverCursor:null,moveCursor:null,padding:0,borderColor:"rgb(178,204,255)",borderDashArray:null,cornerColor:"rgb(178,204,255)",cornerStrokeColor:null,cornerStyle:"rect",cornerDashArray:null,centeredScaling:!1,centeredRotation:!0,fill:"rgb(0,0,0)",fillRule:"nonzero",globalCompositeOperation:"source-over",backgroundColor:"",selectionBackgroundColor:"",stroke:null,strokeWidth:1,strokeDashArray:null,strokeDashOffset:0,strokeLineCap:"butt",strokeLineJoin:"miter",strokeMiterLimit:4,shadow:null,borderOpacityWhenMoving:.4,borderScaleFactor:1,minScaleLimit:0,selectable:!0,evented:!0,visible:!0,hasControls:!0,hasBorders:!0,perPixelTargetFind:!1,includeDefaultValues:!0,lockMovementX:!1,lockMovementY:!1,lockRotation:!1,lockScalingX:!1,lockScalingY:!1,lockSkewingX:!1,lockSkewingY:!1,lockScalingFlip:!1,excludeFromExport:!1,objectCaching:h,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(m){m&&this.setOptions(m)},_createCacheCanvas:function(){this._cacheProperties={},this._cacheCanvas=a.util.createCanvasElement(),this._cacheContext=this._cacheCanvas.getContext("2d"),this._updateCacheCanvas(),this.dirty=!0},_limitCacheSize:function(m){var y=a.perfLimitSizeTotal,b=m.width,_=m.height,w=a.maxCacheSideLimit,S=a.minCacheSideLimit;if(b<=w&&_<=w&&b*_<=y)return b<S&&(m.width=S),_<S&&(m.height=S),m;var x=b/_,T=a.util.limitDimsByArea(x,y),E=a.util.capValue,I=E(S,T.x,w),D=E(S,T.y,w);return b>I&&(m.zoomX/=b/I,m.width=I,m.capped=!0),_>D&&(m.zoomY/=_/D,m.height=D,m.capped=!0),m},_getCacheCanvasDimensions:function(){var m=this.getTotalObjectScaling(),y=this._getTransformedDimensions(0,0),b=y.x*m.scaleX/this.scaleX,_=y.y*m.scaleY/this.scaleY;return{width:b+g,height:_+g,zoomX:m.scaleX,zoomY:m.scaleY,x:b,y:_}},_updateCacheCanvas:function(){var m=this.canvas;if(this.noScaleCache&&m&&m._currentTransform){var y=m._currentTransform.target,b=m._currentTransform.action;if(this===y&&b.slice&&b.slice(0,5)==="scale")return!1}var _=this._cacheCanvas,w=this._limitCacheSize(this._getCacheCanvasDimensions()),S=a.minCacheSideLimit,x=w.width,T=w.height,E,I,D=w.zoomX,N=w.zoomY,L=x!==this.cacheWidth||T!==this.cacheHeight,F=this.zoomX!==D||this.zoomY!==N,O=L||F,V=0,ne=0,J=!1;if(L){var le=this._cacheCanvas.width,M=this._cacheCanvas.height,U=x>le||T>M,R=(x<le*.9||T<M*.9)&&le>S&&M>S;J=U||R,U&&!w.capped&&(x>S||T>S)&&(V=x*.1,ne=T*.1)}return this instanceof a.Text&&this.path&&(O=!0,J=!0,V+=this.getHeightOfLine(0)*this.zoomX,ne+=this.getHeightOfLine(0)*this.zoomY),O?(J?(_.width=Math.ceil(x+V),_.height=Math.ceil(T+ne)):(this._cacheContext.setTransform(1,0,0,1,0,0),this._cacheContext.clearRect(0,0,_.width,_.height)),E=w.x/2,I=w.y/2,this.cacheTranslationX=Math.round(_.width/2-E)+E,this.cacheTranslationY=Math.round(_.height/2-I)+I,this.cacheWidth=x,this.cacheHeight=T,this._cacheContext.translate(this.cacheTranslationX,this.cacheTranslationY),this._cacheContext.scale(D,N),this.zoomX=D,this.zoomY=N,!0):!1},setOptions:function(m){this._setOptions(m),this._initGradient(m.fill,"fill"),this._initGradient(m.stroke,"stroke"),this._initPattern(m.fill,"fill"),this._initPattern(m.stroke,"stroke")},transform:function(m){var y=this.group&&!this.group._transformDone||this.group&&this.canvas&&m===this.canvas.contextTop,b=this.calcTransformMatrix(!y);m.transform(b[0],b[1],b[2],b[3],b[4],b[5])},toObject:function(m){var y=a.Object.NUM_FRACTION_DIGITS,b={type:this.type,version:a.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(m),b.clipPath.inverted=this.clipPath.inverted,b.clipPath.absolutePositioned=this.clipPath.absolutePositioned),a.util.populateWithProperties(this,b,m),this.includeDefaultValues||(b=this._removeDefaultValues(b)),b},toDatalessObject:function(m){return this.toObject(m)},_removeDefaultValues:function(m){var y=a.util.getKlass(m.type).prototype,b=y.stateProperties;return b.forEach(function(_){_==="left"||_==="top"||(m[_]===y[_]&&delete m[_],Array.isArray(m[_])&&Array.isArray(y[_])&&m[_].length===0&&y[_].length===0&&delete m[_])}),m},toString:function(){return"#<fabric."+f(this.type)+">"},getObjectScaling:function(){if(!this.group)return{scaleX:this.scaleX,scaleY:this.scaleY};var m=a.util.qrDecompose(this.calcTransformMatrix());return{scaleX:Math.abs(m.scaleX),scaleY:Math.abs(m.scaleY)}},getTotalObjectScaling:function(){var m=this.getObjectScaling(),y=m.scaleX,b=m.scaleY;if(this.canvas){var _=this.canvas.getZoom(),w=this.canvas.getRetinaScaling();y*=_*w,b*=_*w}return{scaleX:y,scaleY:b}},getObjectOpacity:function(){var m=this.opacity;return this.group&&(m*=this.group.getObjectOpacity()),m},_set:function(m,y){var b=m==="scaleX"||m==="scaleY",_=this[m]!==y,w=!1;return b&&(y=this._constrainScale(y)),m==="scaleX"&&y<0?(this.flipX=!this.flipX,y*=-1):m==="scaleY"&&y<0?(this.flipY=!this.flipY,y*=-1):m==="shadow"&&y&&!(y instanceof a.Shadow)?y=new a.Shadow(y):m==="dirty"&&this.group&&this.group.set("dirty",y),this[m]=y,_&&(w=this.group&&this.group.isOnACache(),this.cacheProperties.indexOf(m)>-1?(this.dirty=!0,w&&this.group.set("dirty",!0)):w&&this.stateProperties.indexOf(m)>-1&&this.group.set("dirty",!0)),this},setOnGroup:function(){},getViewportTransform:function(){return this.canvas&&this.canvas.viewportTransform?this.canvas.viewportTransform:a.iMatrix.concat()},isNotVisible:function(){return this.opacity===0||!this.width&&!this.height&&this.strokeWidth===0||!this.visible},render:function(m){this.isNotVisible()||this.canvas&&this.canvas.skipOffscreen&&!this.group&&!this.isOnScreen()||(m.save(),this._setupCompositeOperation(m),this.drawSelectionBackground(m),this.transform(m),this._setOpacity(m),this._setShadow(m,this),this.shouldCache()?(this.renderCache(),this.drawCacheOnCanvas(m)):(this._removeCacheCanvas(),this.dirty=!1,this.drawObject(m),this.objectCaching&&this.statefullCache&&this.saveState({propertySet:"cacheProperties"})),m.restore())},renderCache:function(m){m=m||{},(!this._cacheCanvas||!this._cacheContext)&&this._createCacheCanvas(),this.isCacheDirty()&&(this.statefullCache&&this.saveState({propertySet:"cacheProperties"}),this.drawObject(this._cacheContext,m.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(m,y){if(m.save(),y.inverted?m.globalCompositeOperation="destination-out":m.globalCompositeOperation="destination-in",y.absolutePositioned){var b=a.util.invertTransform(this.calcTransformMatrix());m.transform(b[0],b[1],b[2],b[3],b[4],b[5])}y.transform(m),m.scale(1/y.zoomX,1/y.zoomY),m.drawImage(y._cacheCanvas,-y.cacheTranslationX,-y.cacheTranslationY),m.restore()},drawObject:function(m,y){var b=this.fill,_=this.stroke;y?(this.fill="black",this.stroke="",this._setClippingProperties(m)):this._renderBackground(m),this._render(m),this._drawClipPath(m,this.clipPath),this.fill=b,this.stroke=_},_drawClipPath:function(m,y){!y||(y.canvas=this.canvas,y.shouldCache(),y._transformDone=!0,y.renderCache({forClipping:!0}),this.drawClipPathOnCache(m,y))},drawCacheOnCanvas:function(m){m.scale(1/this.zoomX,1/this.zoomY),m.drawImage(this._cacheCanvas,-this.cacheTranslationX,-this.cacheTranslationY)},isCacheDirty:function(m){if(this.isNotVisible())return!1;if(this._cacheCanvas&&this._cacheContext&&!m&&this._updateCacheCanvas())return!0;if(this.dirty||this.clipPath&&this.clipPath.absolutePositioned||this.statefullCache&&this.hasStateChanged("cacheProperties")){if(this._cacheCanvas&&this._cacheContext&&!m){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(m){if(!!this.backgroundColor){var y=this._getNonTransformedDimensions();m.fillStyle=this.backgroundColor,m.fillRect(-y.x/2,-y.y/2,y.x,y.y),this._removeShadow(m)}},_setOpacity:function(m){this.group&&!this.group._transformDone?m.globalAlpha=this.getObjectOpacity():m.globalAlpha*=this.opacity},_setStrokeStyles:function(m,y){var b=y.stroke;b&&(m.lineWidth=y.strokeWidth,m.lineCap=y.strokeLineCap,m.lineDashOffset=y.strokeDashOffset,m.lineJoin=y.strokeLineJoin,m.miterLimit=y.strokeMiterLimit,b.toLive?b.gradientUnits==="percentage"||b.gradientTransform||b.patternTransform?this._applyPatternForTransformedGradient(m,b):(m.strokeStyle=b.toLive(m,this),this._applyPatternGradientTransform(m,b)):m.strokeStyle=y.stroke)},_setFillStyles:function(m,y){var b=y.fill;b&&(b.toLive?(m.fillStyle=b.toLive(m,this),this._applyPatternGradientTransform(m,y.fill)):m.fillStyle=b)},_setClippingProperties:function(m){m.globalAlpha=1,m.strokeStyle="transparent",m.fillStyle="#000000"},_setLineDash:function(m,y){!y||y.length===0||(1&y.length&&y.push.apply(y,y),m.setLineDash(y))},_renderControls:function(m,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,_=a.util.multiplyTransformMatrices(b,_),w=a.util.qrDecompose(_),m.save(),m.translate(w.translateX,w.translateY),m.lineWidth=1*this.borderScaleFactor,this.group||(m.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1),this.flipX&&(w.angle-=180),m.rotate(s(this.group?w.angle:this.angle)),y.forActiveSelection||this.group?S&&this.drawBordersInGroup(m,w,y):S&&this.drawBorders(m,y),x&&this.drawControls(m,y),m.restore()},_setShadow:function(m){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*=a.devicePixelRatio,S*=a.devicePixelRatio),m.shadowColor=y.color,m.shadowBlur=y.blur*a.browserShadowBlurConstant*(w+S)*(_.scaleX+_.scaleY)/4,m.shadowOffsetX=y.offsetX*w*_.scaleX,m.shadowOffsetY=y.offsetY*S*_.scaleY}},_removeShadow:function(m){!this.shadow||(m.shadowColor="",m.shadowBlur=m.shadowOffsetX=m.shadowOffsetY=0)},_applyPatternGradientTransform:function(m,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"?m.transform(this.width,0,0,this.height,_,w):m.transform(1,0,0,1,_,w),b&&m.transform(b[0],b[1],b[2],b[3],b[4],b[5]),{offsetX:_,offsetY:w}},_renderPaintInOrder:function(m){this.paintFirst==="stroke"?(this._renderStroke(m),this._renderFill(m)):(this._renderFill(m),this._renderStroke(m))},_render:function(){},_renderFill:function(m){!this.fill||(m.save(),this._setFillStyles(m,this),this.fillRule==="evenodd"?m.fill("evenodd"):m.fill(),m.restore())},_renderStroke:function(m){if(!(!this.stroke||this.strokeWidth===0)){if(this.shadow&&!this.shadow.affectStroke&&this._removeShadow(m),m.save(),this.strokeUniform&&this.group){var y=this.getObjectScaling();m.scale(1/y.scaleX,1/y.scaleY)}else this.strokeUniform&&m.scale(1/this.scaleX,1/this.scaleY);this._setLineDash(m,this.strokeDashArray),this._setStrokeStyles(m,this),m.stroke(),m.restore()}},_applyPatternForTransformedGradient:function(m,y){var b=this._limitCacheSize(this._getCacheCanvasDimensions()),_=a.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(m),w.fill(),m.translate(-this.width/2-this.strokeWidth/2,-this.height/2-this.strokeWidth/2),m.scale(S*this.scaleX/b.zoomX,S*this.scaleY/b.zoomY),m.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 m=a.util.qrDecompose(this.transformMatrix);this.flipX=!1,this.flipY=!1,this.set("scaleX",m.scaleX),this.set("scaleY",m.scaleY),this.angle=m.angle,this.skewX=m.skewX,this.skewY=0}},_removeTransformMatrix:function(m){var y=this._findCenterFromElement();this.transformMatrix&&(this._assignTransformMatrixProps(),y=a.util.transformPoint(y,this.transformMatrix)),this.transformMatrix=null,m&&(this.scaleX*=m.scaleX,this.scaleY*=m.scaleY,this.cropX=m.cropX,this.cropY=m.cropY,y.x+=m.offsetLeft,y.y+=m.offsetTop,this.width=m.width,this.height=m.height),this.setPositionByOrigin(y,"center","center")},clone:function(m,y){var b=this.toObject(y);this.constructor.fromObject?this.constructor.fromObject(b,m):a.Object._fromObject("Object",b,m)},cloneAsImage:function(m,y){var b=this.toCanvasElement(y);return m&&m(new a.Image(b)),this},toCanvasElement:function(m){m||(m={});var y=a.util,b=y.saveObjectTransform(this),_=this.group,w=this.shadow,S=Math.abs,x=(m.multiplier||1)*(m.enableRetinaScaling?a.devicePixelRatio:1);delete this.group,m.withoutTransform&&y.resetObjectTransform(this),m.withoutShadow&&(this.shadow=null);var T=a.util.createCanvasElement(),E=this.getBoundingRect(!0,!0),I=this.shadow,D,N={x:0,y:0},L,F,O;I&&(L=I.blur,I.nonScaling?D={scaleX:1,scaleY:1}:D=this.getObjectScaling(),N.x=2*Math.round(S(I.offsetX)+L)*S(D.scaleX),N.y=2*Math.round(S(I.offsetY)+L)*S(D.scaleY)),F=E.width+N.x,O=E.height+N.y,T.width=Math.ceil(F),T.height=Math.ceil(O);var V=new a.StaticCanvas(T,{enableRetinaScaling:!1,renderOnAddRemove:!1,skipOffscreen:!1});m.format==="jpeg"&&(V.backgroundColor="#fff"),this.setPositionByOrigin(new a.Point(V.width/2,V.height/2),"center","center");var ne=this.canvas;V.add(this);var J=V.toCanvasElement(x||1,m);return this.shadow=w,this.set("canvas",ne),_&&(this.group=_),this.set(b).setCoords(),V._objects=[],V.dispose(),V=null,J},toDataURL:function(m){return m||(m={}),a.util.toDataURL(this.toCanvasElement(m),m.format||"png",m.quality||1)},isType:function(m){return arguments.length>1?Array.from(arguments).includes(this.type):this.type===m},complexity:function(){return 1},toJSON:function(m){return this.toObject(m)},rotate:function(m){var y=(this.originX!=="center"||this.originY!=="center")&&this.centeredRotation;return y&&this._setOriginToCenter(),this.set("angle",m),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(m,y){y=y||this.canvas.getPointer(m);var b=new a.Point(y.x,y.y),_=this._getLeftTopCoords();return this.angle&&(b=a.util.rotatePoint(b,_,s(-this.angle))),{x:b.x-_.x,y:b.y-_.y}},_setupCompositeOperation:function(m){this.globalCompositeOperation&&(m.globalCompositeOperation=this.globalCompositeOperation)},dispose:function(){a.runningAnimations&&a.runningAnimations.cancelByTarget(this)}}),a.util.createAccessors&&a.util.createAccessors(a.Object),u(a.Object.prototype,a.Observable),a.Object.NUM_FRACTION_DIGITS=2,a.Object.ENLIVEN_PROPS=["clipPath"],a.Object._fromObject=function(m,y,b,_){var w=a[m];y=d(y,!0),a.util.enlivenPatterns([y.fill,y.stroke],function(S){typeof S[0]<"u"&&(y.fill=S[0]),typeof S[1]<"u"&&(y.stroke=S[1]),a.util.enlivenObjectEnlivables(y,y,function(){var x=_?new w(y[_],y):new w(y);b&&b(x)})})},a.Object.__uid=0)}(e),function(){var o=t.util.degreesToRadians,a={left:-.5,center:0,right:.5},u={top:-.5,center:0,bottom:.5};t.util.object.extend(t.Object.prototype,{translateToGivenOrigin:function(d,c,f,s,h){var g=d.x,m=d.y,y,b,_;return typeof c=="string"?c=a[c]:c-=.5,typeof s=="string"?s=a[s]:s-=.5,y=s-c,typeof f=="string"?f=u[f]:f-=.5,typeof h=="string"?h=u[h]:h-=.5,b=h-f,(y||b)&&(_=this._getTransformedDimensions(),g=d.x+y*_.x,m=d.y+b*_.y),new t.Point(g,m)},translateToCenterPoint:function(d,c,f){var s=this.translateToGivenOrigin(d,c,f,"center","center");return this.angle?t.util.rotatePoint(s,d,o(this.angle)):s},translateToOriginPoint:function(d,c,f){var s=this.translateToGivenOrigin(d,"center","center",c,f);return this.angle?t.util.rotatePoint(s,d,o(this.angle)):s},getCenterPoint:function(){var d=new t.Point(this.left,this.top);return this.translateToCenterPoint(d,this.originX,this.originY)},getPointByOrigin:function(d,c){var f=this.getCenterPoint();return this.translateToOriginPoint(f,d,c)},toLocalPoint:function(d,c,f){var s=this.getCenterPoint(),h,g;return typeof c<"u"&&typeof f<"u"?h=this.translateToGivenOrigin(s,"center","center",c,f):h=new t.Point(this.left,this.top),g=new t.Point(d.x,d.y),this.angle&&(g=t.util.rotatePoint(g,s,-o(this.angle))),g.subtractEquals(h)},setPositionByOrigin:function(d,c,f){var s=this.translateToCenterPoint(d,c,f),h=this.translateToOriginPoint(s,this.originX,this.originY);this.set("left",h.x),this.set("top",h.y)},adjustPosition:function(d){var c=o(this.angle),f=this.getScaledWidth(),s=t.util.cos(c)*f,h=t.util.sin(c)*f,g,m;typeof this.originX=="string"?g=a[this.originX]:g=this.originX-.5,typeof d=="string"?m=a[d]:m=d-.5,this.left+=s*(m-g),this.top+=h*(m-g),this.setCoords(),this.originX=d},_setOriginToCenter:function(){this._originalOriginX=this.originX,this._originalOriginY=this.originY;var d=this.getCenterPoint();this.originX="center",this.originY="center",this.left=d.x,this.top=d.y},_resetOrigin:function(){var d=this.translateToOriginPoint(this.getCenterPoint(),this._originalOriginX,this._originalOriginY);this.originX=this._originalOriginX,this.originY=this._originalOriginY,this.left=d.x,this.top=d.y,this._originalOriginX=null,this._originalOriginY=null},_getLeftTopCoords:function(){return this.translateToOriginPoint(this.getCenterPoint(),"left","top")}})}(),function(){function o(f){return[new t.Point(f.tl.x,f.tl.y),new t.Point(f.tr.x,f.tr.y),new t.Point(f.br.x,f.br.y),new t.Point(f.bl.x,f.bl.y)]}var a=t.util,u=a.degreesToRadians,d=a.multiplyTransformMatrices,c=a.transformPoint;a.object.extend(t.Object.prototype,{oCoords:null,aCoords:null,lineCoords:null,ownMatrixCache:null,matrixCache:null,controls:{},_getCoords:function(f,s){return s?f?this.calcACoords():this.calcLineCoords():((!this.aCoords||!this.lineCoords)&&this.setCoords(!0),f?this.aCoords:this.lineCoords)},getCoords:function(f,s){return o(this._getCoords(f,s))},intersectsWithRect:function(f,s,h,g){var m=this.getCoords(h,g),y=t.Intersection.intersectPolygonRectangle(m,f,s);return y.status==="Intersection"},intersectsWithObject:function(f,s,h){var g=t.Intersection.intersectPolygonPolygon(this.getCoords(s,h),f.getCoords(s,h));return g.status==="Intersection"||f.isContainedWithinObject(this,s,h)||this.isContainedWithinObject(f,s,h)},isContainedWithinObject:function(f,s,h){for(var g=this.getCoords(s,h),m=s?f.aCoords:f.lineCoords,y=0,b=f._getImageLines(m);y<4;y++)if(!f.containsPoint(g[y],b))return!1;return!0},isContainedWithinRect:function(f,s,h,g){var m=this.getBoundingRect(h,g);return m.left>=f.x&&m.left+m.width<=s.x&&m.top>=f.y&&m.top+m.height<=s.y},containsPoint:function(f,y,h,g){var m=this._getCoords(h,g),y=y||this._getImageLines(m),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,h=this.canvas.vptCoords.br,g=this.getCoords(!0,f);return g.some(function(m){return m.x<=h.x&&m.x>=s.x&&m.y<=h.y&&m.y>=s.y})||this.intersectsWithRect(s,h,!0,f)?!0:this._containsCenterOfCanvas(s,h,f)},_containsCenterOfCanvas:function(f,s,h){var g={x:(f.x+s.x)/2,y:(f.y+s.y)/2};return!!this.containsPoint(g,null,!0,h)},isPartiallyOnScreen:function(f){if(!this.canvas)return!1;var s=this.canvas.vptCoords.tl,h=this.canvas.vptCoords.br;if(this.intersectsWithRect(s,h,!0,f))return!0;var g=this.getCoords(!0,f).every(function(m){return(m.x>=h.x||m.x<=s.x)&&(m.y>=h.y||m.y<=s.y)});return g&&this._containsCenterOfCanvas(s,h,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 h,g,m,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:(h=0,g=(w.d.y-w.o.y)/(w.d.x-w.o.x),m=f.y-h*f.x,y=w.o.y-g*w.o.x,b=-(m-y)/(h-g)),b>=f.x&&(_+=1),_===2))break;return _},getBoundingRect:function(f,s){var h=this.getCoords(f,s);return a.makeBoundingBoxFromPoints(h)},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 h=this.getBoundingRect(s).width/this.getScaledWidth();return this.scale(f/this.width/h)},scaleToHeight:function(f,s){var h=this.getBoundingRect(s).height/this.getScaledHeight();return this.scale(f/this.height/h)},calcLineCoords:function(){var f=this.getViewportTransform(),s=this.padding,h=u(this.angle),g=a.cos(h),m=a.sin(h),y=g*s,b=m*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(),h=this.getViewportTransform(),g=d(h,s),m=d(g,f),m=d(m,[1/h[0],0,0,1/h[3],0,0]),y=this._calculateCurrentDimensions(),b={};return this.forEachControl(function(_,w,S){b[w]=_.positionHandler(y,m,S)}),b},calcACoords:function(){var f=this._calcRotateMatrix(),s=this._calcTranslateMatrix(),h=d(s,f),g=this._getTransformedDimensions(),m=g.x/2,y=g.y/2;return{tl:c({x:-m,y:-y},h),tr:c({x:m,y:-y},h),bl:c({x:-m,y},h),br:c({x:m,y},h)}},setCoords:function(f){return this.aCoords=this.calcACoords(),this.lineCoords=this.group?this.aCoords:this.calcLineCoords(),f?this:(this.oCoords=this.calcOCoords(),this._setCornerCoords&&this._setCornerCoords(),this)},_calcRotateMatrix:function(){return a.calcRotateMatrix(this)},_calcTranslateMatrix:function(){var f=this.getCenterPoint();return[1,0,0,1,f.x,f.y]},transformMatrixKey:function(f){var s="_",h="";return!f&&this.group&&(h=this.group.transformMatrixKey(f)+s),h+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 h=this.transformMatrixKey(f),g=this.matrixCache||(this.matrixCache={});return g.key===h?g.value:(this.group&&(s=d(this.group.calcTransformMatrix(!1),s)),g.key=h,g.value=s,s)},calcOwnMatrix:function(){var f=this.transformMatrixKey(!0),s=this.ownMatrixCache||(this.ownMatrixCache={});if(s.key===f)return s.value;var h=this._calcTranslateMatrix(),g={angle:this.angle,translateX:h[4],translateY:h[5],scaleX:this.scaleX,scaleY:this.scaleY,skewX:this.skewX,skewY:this.skewY,flipX:this.flipX,flipY:this.flipY};return s.key=f,s.value=a.composeMatrix(g),s.value},_getNonTransformedDimensions:function(){var f=this.strokeWidth,s=this.width+f,h=this.height+f;return{x:s,y:h}},_getTransformedDimensions:function(f,s){typeof f>"u"&&(f=this.skewX),typeof s>"u"&&(s=this.skewY);var h,g,m,y=f===0&&s===0;if(this.strokeUniform?(g=this.width,m=this.height):(h=this._getNonTransformedDimensions(),g=h.x,m=h.y),y)return this._finalizeDimensions(g*this.scaleX,m*this.scaleY);var b=a.sizeAfterTransform(g,m,{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(),h=c(s,f,!0);return h.scalarAdd(2*this.padding)}})}(),t.util.object.extend(t.Object.prototype,{sendToBack:function(){return this.group?t.StaticCanvas.prototype.sendToBack.call(this.group,this):this.canvas&&this.canvas.sendToBack(this),this},bringToFront:function(){return this.group?t.StaticCanvas.prototype.bringToFront.call(this.group,this):this.canvas&&this.canvas.bringToFront(this),this},sendBackwards:function(o){return this.group?t.StaticCanvas.prototype.sendBackwards.call(this.group,this,o):this.canvas&&this.canvas.sendBackwards(this,o),this},bringForward:function(o){return this.group?t.StaticCanvas.prototype.bringForward.call(this.group,this,o):this.canvas&&this.canvas.bringForward(this,o),this},moveTo:function(o){return this.group&&this.group.type!=="activeSelection"?t.StaticCanvas.prototype.moveTo.call(this.group,this,o):this.canvas&&this.canvas.moveTo(this,o),this}}),function(){function o(u,d){if(d){if(d.toLive)return u+": url(#SVGID_"+d.id+"); ";var c=new t.Color(d),f=u+": "+c.toRgb()+"; ",s=c.getAlpha();return s!==1&&(f+=u+"-opacity: "+s.toString()+"; "),f}else return u+": none; "}var a=t.util.toFixed;t.util.object.extend(t.Object.prototype,{getSvgStyles:function(u){var d=this.fillRule?this.fillRule:"nonzero",c=this.strokeWidth?this.strokeWidth:"0",f=this.strokeDashArray?this.strokeDashArray.join(" "):"none",s=this.strokeDashOffset?this.strokeDashOffset:"0",h=this.strokeLineCap?this.strokeLineCap:"butt",g=this.strokeLineJoin?this.strokeLineJoin:"miter",m=this.strokeMiterLimit?this.strokeMiterLimit:"4",y=typeof this.opacity<"u"?this.opacity:"1",b=this.visible?"":" visibility: hidden;",_=u?"":this.getSvgFilter(),w=o("fill",this.fill),S=o("stroke",this.stroke);return[S,"stroke-width: ",c,"; ","stroke-dasharray: ",f,"; ","stroke-linecap: ",h,"; ","stroke-dashoffset: ",s,"; ","stroke-linejoin: ",g,"; ","stroke-miterlimit: ",m,"; ",w,"fill-rule: ",d,"; ","opacity: ",y,";",_,b].join("")},getSvgSpanStyles:function(u,d){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,h=u.fontSize?"font-size: "+u.fontSize+"px"+c:"",g=u.fontStyle?"font-style: "+u.fontStyle+c:"",m=u.fontWeight?"font-weight: "+u.fontWeight+c:"",y=u.fill?o("fill",u.fill):"",b=u.stroke?o("stroke",u.stroke):"",_=this.getSvgTextDecoration(u),w=u.deltaY?"baseline-shift: "+-u.deltaY+"; ":"";return _&&(_="text-decoration: "+_+c),[b,f,s,h,g,m,_,y,w,d?"white-space: pre; ":""].join("")},getSvgTextDecoration:function(u){return["overline","underline","line-through"].filter(function(d){return u[d.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,d){var c=u?this.calcTransformMatrix():this.calcOwnMatrix(),f='transform="'+t.util.matrixToSVG(c);return f+(d||"")+'" '},_setSVGBg:function(u){if(this.backgroundColor){var d=t.Object.NUM_FRACTION_DIGITS;u.push(" <rect ",this._getFillAttributes(this.backgroundColor),' x="',a(-this.width/2,d),'" y="',a(-this.height/2,d),'" width="',a(this.width,d),'" height="',a(this.height,d),`"></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,d){d=d||{};var c=d.reviver,f=d.additionalTransform||"",s=[this.getSvgTransform(!0,f),this.getSvgCommons()].join(""),h=u.indexOf("COMMON_PARTS");return u[h]=s,c?c(u.join("")):u.join("")},_createBaseSVGMarkup:function(u,d){d=d||{};var c=d.noStyle,f=d.reviver,s=c?"":'style="'+this.getSvgStyles()+'" ',h=d.withShadow?'style="'+this.getSvgFilter()+'" ':"",g=this.clipPath,m=this.strokeUniform?'vector-effect="non-scaling-stroke" ':"",y=g&&g.absolutePositioned,b=this.stroke,_=this.fill,w=this.shadow,S,x=[],T,E=u.indexOf("COMMON_PARTS"),I=d.additionalTransform;return g&&(g.clipPathId="CLIPPATH_"+t.Object.__uid++,T='<clipPath id="'+g.clipPathId+`" >
`+g.toClipPathSVG(f)+`</clipPath>
`),y&&x.push("<g ",h,this.getSvgCommons(),` >
`),x.push("<g ",this.getSvgTransform(!1),y?"":h+this.getSvgCommons(),` >
`),S=[s,m,c?"":this.addPaintOrder()," ",I?'transform="'+I+'" ':""].join(""),u[E]=S,_&&_.toLive&&x.push(_.toSVG(this)),b&&b.toLive&&x.push(b.toSVG(this)),w&&x.push(w.toSVG(this)),g&&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 o=t.util.object.extend,a="stateProperties";function u(c,f,s){var h={},g=!0;s.forEach(function(m){h[m]=c[m]}),o(c[f],h,g)}function d(c,f,s){if(c===f)return!0;if(Array.isArray(c)){if(!Array.isArray(f)||c.length!==f.length)return!1;for(var h=0,g=c.length;h<g;h++)if(!d(c[h],f[h]))return!1;return!0}else if(c&&typeof c=="object"){var m=Object.keys(c),y;if(!f||typeof f!="object"||!s&&m.length!==Object.keys(f).length)return!1;for(var h=0,g=m.length;h<g;h++)if(y=m[h],!(y==="canvas"||y==="group")&&!d(c[y],f[y]))return!1;return!0}}t.util.object.extend(t.Object.prototype,{hasStateChanged:function(c){c=c||a;var f="_"+c;return Object.keys(this[f]).length<this[c].length?!0:!d(this[f],this,!0)},saveState:function(c){var f=c&&c.propertySet||a,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||a;return c.propertySet=f,this["_"+f]={},this.saveState(c),this}})}(),function(){var o=t.util.degreesToRadians;t.util.object.extend(t.Object.prototype,{_findTargetCorner:function(a,u){if(!this.hasControls||this.group||!this.canvas||this.canvas._activeObject!==this)return!1;var d=a.x,c=a.y,f,s,h=Object.keys(this.oCoords),g=h.length-1,m;for(this.__corner=0;g>=0;g--)if(m=h[g],!!this.isControlVisible(m)&&(s=this._getImageLines(u?this.oCoords[m].touchCorner:this.oCoords[m].corner),f=this._findCrossPoints({x:d,y:c},s),f!==0&&f%2===1))return this.__corner=m,m;return!1},forEachControl:function(a){for(var u in this.controls)a(this.controls[u],u,this)},_setCornerCoords:function(){var a=this.oCoords;for(var u in a){var d=this.controls[u];a[u].corner=d.calcCornerCoords(this.angle,this.cornerSize,a[u].x,a[u].y,!1),a[u].touchCorner=d.calcCornerCoords(this.angle,this.touchCornerSize,a[u].x,a[u].y,!0)}},drawSelectionBackground:function(a){if(!this.selectionBackgroundColor||this.canvas&&!this.canvas.interactive||this.canvas&&this.canvas._activeObject!==this)return this;a.save();var u=this.getCenterPoint(),d=this._calculateCurrentDimensions(),c=this.canvas.viewportTransform;return a.translate(u.x,u.y),a.scale(1/c[0],1/c[3]),a.rotate(o(this.angle)),a.fillStyle=this.selectionBackgroundColor,a.fillRect(-d.x/2,-d.y/2,d.x,d.y),a.restore(),this},drawBorders:function(a,u){u=u||{};var d=this._calculateCurrentDimensions(),c=this.borderScaleFactor,f=d.x+c,s=d.y+c,h=typeof u.hasControls<"u"?u.hasControls:this.hasControls,g=!1;return a.save(),a.strokeStyle=u.borderColor||this.borderColor,this._setLineDash(a,u.borderDashArray||this.borderDashArray),a.strokeRect(-f/2,-s/2,f,s),h&&(a.beginPath(),this.forEachControl(function(m,y,b){m.withConnection&&m.getVisibility(b,y)&&(g=!0,a.moveTo(m.x*f,m.y*s),a.lineTo(m.x*f+m.offsetX,m.y*s+m.offsetY))}),g&&a.stroke()),a.restore(),this},drawBordersInGroup:function(a,u,d){d=d||{};var c=t.util.sizeAfterTransform(this.width,this.height,u),f=this.strokeWidth,s=this.strokeUniform,h=this.borderScaleFactor,g=c.x+f*(s?this.canvas.getZoom():u.scaleX)+h,m=c.y+f*(s?this.canvas.getZoom():u.scaleY)+h;return a.save(),this._setLineDash(a,d.borderDashArray||this.borderDashArray),a.strokeStyle=d.borderColor||this.borderColor,a.strokeRect(-g/2,-m/2,g,m),a.restore(),this},drawControls:function(a,u){u=u||{},a.save();var d=this.canvas.getRetinaScaling(),c,f;return a.setTransform(d,0,0,d,0,0),a.strokeStyle=a.fillStyle=u.cornerColor||this.cornerColor,this.transparentCorners||(a.strokeStyle=u.cornerStrokeColor||this.cornerStrokeColor),this._setLineDash(a,u.cornerDashArray||this.cornerDashArray),this.setCoords(),this.group&&(c=this.group.calcTransformMatrix()),this.forEachControl(function(s,h,g){f=g.oCoords[h],s.getVisibility(g,h)&&(c&&(f=t.util.transformPoint(f,c)),s.render(a,f.x,f.y,u,g))}),a.restore(),this},isControlVisible:function(a){return this.controls[a]&&this.controls[a].getVisibility(this,a)},setControlVisible:function(a,u){return this._controlsVisibility||(this._controlsVisibility={}),this._controlsVisibility[a]=u,this},setControlsVisibility:function(a){a||(a={});for(var u in a)this.setControlVisible(u,a[u]);return this},onDeselect:function(){},onSelect:function(){}})}(),t.util.object.extend(t.StaticCanvas.prototype,{FX_DURATION:500,fxCenterObjectH:function(o,a){a=a||{};var u=function(){},d=a.onComplete||u,c=a.onChange||u,f=this;return t.util.animate({target:this,startValue:o.left,endValue:this.getCenterPoint().x,duration:this.FX_DURATION,onChange:function(s){o.set("left",s),f.requestRenderAll(),c()},onComplete:function(){o.setCoords(),d()}})},fxCenterObjectV:function(o,a){a=a||{};var u=function(){},d=a.onComplete||u,c=a.onChange||u,f=this;return t.util.animate({target:this,startValue:o.top,endValue:this.getCenterPoint().y,duration:this.FX_DURATION,onChange:function(s){o.set("top",s),f.requestRenderAll(),c()},onComplete:function(){o.setCoords(),d()}})},fxRemove:function(o,a){a=a||{};var u=function(){},d=a.onComplete||u,c=a.onChange||u,f=this;return t.util.animate({target:this,startValue:o.opacity,endValue:0,duration:this.FX_DURATION,onChange:function(s){o.set("opacity",s),f.requestRenderAll(),c()},onComplete:function(){f.remove(o),d()}})}}),t.util.object.extend(t.Object.prototype,{animate:function(){if(arguments[0]&&typeof arguments[0]=="object"){var o=[],a,u,d=[];for(a in arguments[0])o.push(a);for(var c=0,f=o.length;c<f;c++)a=o[c],u=c!==f-1,d.push(this._animate(a,arguments[0][a],arguments[1],u));return d}else return this._animate.apply(this,arguments)},_animate:function(o,a,u,d){var c=this,f;a=a.toString(),u?u=t.util.object.clone(u):u={},~o.indexOf(".")&&(f=o.split("."));var s=c.colorProperties.indexOf(o)>-1||f&&c.colorProperties.indexOf(f[1])>-1,h=f?this.get(f[0])[f[1]]:this.get(o);"from"in u||(u.from=h),s||(~a.indexOf("=")?a=h+parseFloat(a.replace("=","")):a=parseFloat(a));var g={target:this,startValue:u.from,endValue:a,byValue:u.by,easing:u.easing,duration:u.duration,abort:u.abort&&function(m,y,b){return u.abort.call(c,m,y,b)},onChange:function(m,y,b){f?c[f[0]][f[1]]=m:c.set(o,m),!d&&u.onChange&&u.onChange(m,y,b)},onComplete:function(m,y,b){d||(c.setCoords(),u.onComplete&&u.onComplete(m,y,b))}};return s?t.util.animateColor(g.startValue,g.endValue,g.duration,g):t.util.animate(g)}}),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.extend,d=a.util.object.clone,c={x1:1,x2:1,y1:1,y2:1};if(a.Line){a.warn("fabric.Line is already defined");return}a.Line=a.util.createClass(a.Object,{type:"line",x1:0,y1:0,x2:0,y2:0,cacheProperties:a.Object.prototype.cacheProperties.concat("x1","x2","y1","y2"),initialize:function(s,h){s||(s=[0,0,0,0]),this.callSuper("initialize",h),this.set("x1",s[0]),this.set("y1",s[1]),this.set("x2",s[2]),this.set("y2",s[3]),this._setWidthHeight(h)},_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,h){return this.callSuper("_set",s,h),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 h=this.calcLinePoints();s.moveTo(h.x1,h.y1),s.lineTo(h.x2,h.y2),s.lineWidth=this.strokeWidth;var g=s.strokeStyle;s.strokeStyle=this.stroke||s.fillStyle,this.stroke&&this._renderStroke(s),s.strokeStyle=g},_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,h=this.y1<=this.y2?-1:1,g=s*this.width*.5,m=h*this.height*.5,y=s*this.width*-.5,b=h*this.height*-.5;return{x1:g,x2:y,y1:m,y2:b}},_toSVG:function(){var s=this.calcLinePoints();return["<line ","COMMON_PARTS",'x1="',s.x1,'" y1="',s.y1,'" x2="',s.x2,'" y2="',s.y2,`" />
`]}}),a.Line.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x1 y1 x2 y2".split(" ")),a.Line.fromElement=function(s,h,g){g=g||{};var m=a.parseAttributes(s,a.Line.ATTRIBUTE_NAMES),y=[m.x1||0,m.y1||0,m.x2||0,m.y2||0];h(new a.Line(y,u(m,g)))},a.Line.fromObject=function(s,h){function g(y){delete y.points,h&&h(y)}var m=d(s,!0);m.points=[s.x1,s.y1,s.x2,s.y2],a.Object._fromObject("Line",m,g,"points")};function f(s,h){var g=s.origin,m=s.axis1,y=s.axis2,b=s.dimension,_=h.nearest,w=h.center,S=h.farthest;return function(){switch(this.get(g)){case _:return Math.min(this.get(m),this.get(y));case w:return Math.min(this.get(m),this.get(y))+.5*this.get(b);case S:return Math.max(this.get(m),this.get(y))}}}}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.degreesToRadians;if(a.Circle){a.warn("fabric.Circle is already defined.");return}a.Circle=a.util.createClass(a.Object,{type:"circle",radius:0,startAngle:0,endAngle:360,cacheProperties:a.Object.prototype.cacheProperties.concat("radius","startAngle","endAngle"),_set:function(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,h=(this.endAngle-this.startAngle)%360;if(h===0)c=["<circle ","COMMON_PARTS",'cx="'+f+'" cy="'+s+'" ','r="',this.radius,`" />
`];else{var g=u(this.startAngle),m=u(this.endAngle),y=this.radius,b=a.util.cos(g)*y,_=a.util.sin(g)*y,w=a.util.cos(m)*y,S=a.util.sin(m)*y,x=h>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)}}),a.Circle.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy r".split(" ")),a.Circle.fromElement=function(c,f){var s=a.parseAttributes(c,a.Circle.ATTRIBUTE_NAMES);if(!d(s))throw new Error("value of `r` attribute is required and can not be negative");s.left=(s.left||0)-s.radius,s.top=(s.top||0)-s.radius,f(new a.Circle(s))};function d(c){return"radius"in c&&c.radius>=0}a.Circle.fromObject=function(c,f){a.Object._fromObject("Circle",c,f)}}(e),function(o){var a=o.fabric||(o.fabric={});if(a.Triangle){a.warn("fabric.Triangle is already defined");return}a.Triangle=a.util.createClass(a.Object,{type:"triangle",width:100,height:100,_render:function(u){var d=this.width/2,c=this.height/2;u.beginPath(),u.moveTo(-d,c),u.lineTo(0,-c),u.lineTo(d,c),u.closePath(),this._renderPaintInOrder(u)},_toSVG:function(){var u=this.width/2,d=this.height/2,c=[-u+" "+d,"0 "+-d,u+" "+d].join(",");return["<polygon ","COMMON_PARTS",'points="',c,'" />']}}),a.Triangle.fromObject=function(u,d){return a.Object._fromObject("Triangle",u,d)}}(e),function(o){var a=o.fabric||(o.fabric={}),u=Math.PI*2;if(a.Ellipse){a.warn("fabric.Ellipse is already defined.");return}a.Ellipse=a.util.createClass(a.Object,{type:"ellipse",rx:0,ry:0,cacheProperties:a.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(d){this.callSuper("initialize",d),this.set("rx",d&&d.rx||0),this.set("ry",d&&d.ry||0)},_set:function(d,c){switch(this.callSuper("_set",d,c),d){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(d){return this.callSuper("toObject",["rx","ry"].concat(d))},_toSVG:function(){return["<ellipse ","COMMON_PARTS",'cx="0" cy="0" ','rx="',this.rx,'" ry="',this.ry,`" />
`]},_render:function(d){d.beginPath(),d.save(),d.transform(1,0,0,this.ry/this.rx,0,0),d.arc(0,0,this.rx,0,u,!1),d.restore(),this._renderPaintInOrder(d)}}),a.Ellipse.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("cx cy rx ry".split(" ")),a.Ellipse.fromElement=function(d,c){var f=a.parseAttributes(d,a.Ellipse.ATTRIBUTE_NAMES);f.left=(f.left||0)-f.rx,f.top=(f.top||0)-f.ry,c(new a.Ellipse(f))},a.Ellipse.fromObject=function(d,c){a.Object._fromObject("Ellipse",d,c)}}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.extend;if(a.Rect){a.warn("fabric.Rect is already defined");return}a.Rect=a.util.createClass(a.Object,{stateProperties:a.Object.prototype.stateProperties.concat("rx","ry"),type:"rect",rx:0,ry:0,cacheProperties:a.Object.prototype.cacheProperties.concat("rx","ry"),initialize:function(d){this.callSuper("initialize",d),this._initRxRy()},_initRxRy:function(){this.rx&&!this.ry?this.ry=this.rx:this.ry&&!this.rx&&(this.rx=this.ry)},_render:function(d){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,h=this.height,g=-this.width/2,m=-this.height/2,y=c!==0||f!==0,b=1-.5522847498;d.beginPath(),d.moveTo(g+c,m),d.lineTo(g+s-c,m),y&&d.bezierCurveTo(g+s-b*c,m,g+s,m+b*f,g+s,m+f),d.lineTo(g+s,m+h-f),y&&d.bezierCurveTo(g+s,m+h-b*f,g+s-b*c,m+h,g+s-c,m+h),d.lineTo(g+c,m+h),y&&d.bezierCurveTo(g+b*c,m+h,g,m+h-b*f,g,m+h-f),d.lineTo(g,m+f),y&&d.bezierCurveTo(g,m+b*f,g+b*c,m,g+c,m),d.closePath(),this._renderPaintInOrder(d)},toObject:function(d){return this.callSuper("toObject",["rx","ry"].concat(d))},_toSVG:function(){var d=-this.width/2,c=-this.height/2;return["<rect ","COMMON_PARTS",'x="',d,'" y="',c,'" rx="',this.rx,'" ry="',this.ry,'" width="',this.width,'" height="',this.height,`" />
`]}}),a.Rect.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x y rx ry width height".split(" ")),a.Rect.fromElement=function(d,c,f){if(!d)return c(null);f=f||{};var s=a.parseAttributes(d,a.Rect.ATTRIBUTE_NAMES);s.left=s.left||0,s.top=s.top||0,s.height=s.height||0,s.width=s.width||0;var h=new a.Rect(u(f?a.util.object.clone(f):{},s));h.visible=h.visible&&h.width>0&&h.height>0,c(h)},a.Rect.fromObject=function(d,c){return a.Object._fromObject("Rect",d,c)}}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.extend,d=a.util.array.min,c=a.util.array.max,f=a.util.toFixed,s=a.util.projectStrokeOnPoints;if(a.Polyline){a.warn("fabric.Polyline is already defined");return}a.Polyline=a.util.createClass(a.Object,{type:"polyline",points:null,exactBoundingBox:!1,cacheProperties:a.Object.prototype.cacheProperties.concat("points"),initialize:function(h,g){g=g||{},this.points=h||[],this.callSuper("initialize",g),this._setPositionDimensions(g)},_projectStrokeOnPoints:function(){return s(this.points,this,!0)},_setPositionDimensions:function(h){var g=this._calcDimensions(h),m,y=this.exactBoundingBox?this.strokeWidth:0;this.width=g.width-y,this.height=g.height-y,h.fromSVG||(m=this.translateToGivenOrigin({x:g.left-this.strokeWidth/2+y/2,y:g.top-this.strokeWidth/2+y/2},"left","top",this.originX,this.originY)),typeof h.left>"u"&&(this.left=h.fromSVG?g.left:m.x),typeof h.top>"u"&&(this.top=h.fromSVG?g.top:m.y),this.pathOffset={x:g.left+this.width/2+y/2,y:g.top+this.height/2+y/2}},_calcDimensions:function(){var h=this.exactBoundingBox?this._projectStrokeOnPoints():this.points,g=d(h,"x")||0,m=d(h,"y")||0,y=c(h,"x")||0,b=c(h,"y")||0,_=y-g,w=b-m;return{left:g,top:m,width:_,height:w}},toObject:function(h){return u(this.callSuper("toObject",h),{points:this.points.concat()})},_toSVG:function(){for(var h=[],g=this.pathOffset.x,m=this.pathOffset.y,y=a.Object.NUM_FRACTION_DIGITS,b=0,_=this.points.length;b<_;b++)h.push(f(this.points[b].x-g,y),",",f(this.points[b].y-m,y)," ");return["<"+this.type+" ","COMMON_PARTS",'points="',h.join(""),`" />
`]},commonRender:function(h){var g,m=this.points.length,y=this.pathOffset.x,b=this.pathOffset.y;if(!m||isNaN(this.points[m-1].y))return!1;h.beginPath(),h.moveTo(this.points[0].x-y,this.points[0].y-b);for(var _=0;_<m;_++)g=this.points[_],h.lineTo(g.x-y,g.y-b);return!0},_render:function(h){!this.commonRender(h)||this._renderPaintInOrder(h)},complexity:function(){return this.get("points").length}}),a.Polyline.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polyline.fromElementGenerator=function(h){return function(g,m,y){if(!g)return m(null);y||(y={});var b=a.parsePointsAttribute(g.getAttribute("points")),_=a.parseAttributes(g,a[h].ATTRIBUTE_NAMES);_.fromSVG=!0,m(new a[h](b,u(_,y)))}},a.Polyline.fromElement=a.Polyline.fromElementGenerator("Polyline"),a.Polyline.fromObject=function(h,g){return a.Object._fromObject("Polyline",h,g,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.projectStrokeOnPoints;if(a.Polygon){a.warn("fabric.Polygon is already defined");return}a.Polygon=a.util.createClass(a.Polyline,{type:"polygon",_projectStrokeOnPoints:function(){return u(this.points,this)},_render:function(d){!this.commonRender(d)||(d.closePath(),this._renderPaintInOrder(d))}}),a.Polygon.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(),a.Polygon.fromElement=a.Polyline.fromElementGenerator("Polygon"),a.Polygon.fromObject=function(d,c){a.Object._fromObject("Polygon",d,c,"points")}}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.array.min,d=a.util.array.max,c=a.util.object.extend,f=a.util.object.clone,s=a.util.toFixed;if(a.Path){a.warn("fabric.Path is already defined");return}a.Path=a.util.createClass(a.Object,{type:"path",path:null,cacheProperties:a.Object.prototype.cacheProperties.concat("path","fillRule"),stateProperties:a.Object.prototype.stateProperties.concat("path"),initialize:function(h,g){g=f(g||{}),delete g.path,this.callSuper("initialize",g),this._setPath(h||[],g)},_setPath:function(h,g){this.path=a.util.makePathSimpler(Array.isArray(h)?h:a.util.parsePath(h)),a.Polyline.prototype._setPositionDimensions.call(this,g||{})},_renderPathCommands:function(h){var g,m=0,y=0,b=0,_=0,w=0,S=0,x=-this.pathOffset.x,T=-this.pathOffset.y;h.beginPath();for(var E=0,I=this.path.length;E<I;++E)switch(g=this.path[E],g[0]){case"L":b=g[1],_=g[2],h.lineTo(b+x,_+T);break;case"M":b=g[1],_=g[2],m=b,y=_,h.moveTo(b+x,_+T);break;case"C":b=g[5],_=g[6],w=g[3],S=g[4],h.bezierCurveTo(g[1]+x,g[2]+T,w+x,S+T,b+x,_+T);break;case"Q":h.quadraticCurveTo(g[1]+x,g[2]+T,g[3]+x,g[4]+T),b=g[3],_=g[4],w=g[1],S=g[2];break;case"z":case"Z":b=m,_=y,h.closePath();break}},_render:function(h){this._renderPathCommands(h),this._renderPaintInOrder(h)},toString:function(){return"#<fabric.Path ("+this.complexity()+'): { "top": '+this.top+', "left": '+this.left+" }>"},toObject:function(h){return c(this.callSuper("toObject",h),{path:this.path.map(function(g){return g.slice()})})},toDatalessObject:function(h){var g=this.toObject(["sourcePath"].concat(h));return g.sourcePath&&delete g.path,g},_toSVG:function(){var h=a.util.joinPath(this.path);return["<path ","COMMON_PARTS",'d="',h,'" stroke-linecap="round" ',`/>
`]},_getOffsetTransform:function(){var h=a.Object.NUM_FRACTION_DIGITS;return" translate("+s(-this.pathOffset.x,h)+", "+s(-this.pathOffset.y,h)+")"},toClipPathSVG:function(h){var g=this._getOffsetTransform();return" "+this._createBaseClipPathSVGMarkup(this._toSVG(),{reviver:h,additionalTransform:g})},toSVG:function(h){var g=this._getOffsetTransform();return this._createBaseSVGMarkup(this._toSVG(),{reviver:h,additionalTransform:g})},complexity:function(){return this.path.length},_calcDimensions:function(){for(var h=[],g=[],m,y=0,b=0,_=0,w=0,S,x=0,T=this.path.length;x<T;++x){switch(m=this.path[x],m[0]){case"L":_=m[1],w=m[2],S=[];break;case"M":_=m[1],w=m[2],y=_,b=w,S=[];break;case"C":S=a.util.getBoundsOfCurve(_,w,m[1],m[2],m[3],m[4],m[5],m[6]),_=m[5],w=m[6];break;case"Q":S=a.util.getBoundsOfCurve(_,w,m[1],m[2],m[1],m[2],m[3],m[4]),_=m[3],w=m[4];break;case"z":case"Z":_=y,w=b;break}S.forEach(function(O){h.push(O.x),g.push(O.y)}),h.push(_),g.push(w)}var E=u(h)||0,I=u(g)||0,D=d(h)||0,N=d(g)||0,L=D-E,F=N-I;return{left:E,top:I,width:L,height:F}}}),a.Path.fromObject=function(h,g){if(typeof h.sourcePath=="string"){var m=h.sourcePath;a.loadSVGFromURL(m,function(y){var b=y[0];b.setOptions(h),h.clipPath?a.util.enlivenObjects([h.clipPath],function(_){b.clipPath=_[0],g&&g(b)}):g&&g(b)})}else a.Object._fromObject("Path",h,g,"path")},a.Path.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat(["d"]),a.Path.fromElement=function(h,g,m){var y=a.parseAttributes(h,a.Path.ATTRIBUTE_NAMES);y.fromSVG=!0,g(new a.Path(y.d,c(y,m)))}}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.array.min,d=a.util.array.max;a.Group||(a.Group=a.util.createClass(a.Object,a.Collection,{type:"group",strokeWidth:0,subTargetCheck:!1,cacheProperties:[],useSetOnGroup:!1,initialize:function(c,f,s){f=f||{},this._objects=[],s&&this.callSuper("initialize",f),this._objects=c||[];for(var h=this._objects.length;h--;)this._objects[h].group=this;if(s)this._updateObjectsACoords();else{var g=f&&f.centerPoint;f.originX!==void 0&&(this.originX=f.originX),f.originY!==void 0&&(this.originY=f.originY),g||this._calcBounds(),this._updateObjectsCoords(g),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,h=c.top,g=!0;c.set({left:s-f.x,top:h-f.y}),c.group=this,c.setCoords(g)},toString:function(){return"#<fabric.Group: ("+this.complexity()+")>"},addWithUpdate:function(c){var f=!!this.group;return this._restoreObjectsState(),a.util.resetObjectTransform(this),c&&(f&&a.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(),a.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);a.Object.prototype._set.call(this,c,f)},toObject:function(c){var f=this.includeDefaultValues,s=this._objects.filter(function(g){return!g.excludeFromExport}).map(function(g){var m=g.includeDefaultValues;g.includeDefaultValues=f;var y=g.toObject(c);return g.includeDefaultValues=m,y}),h=a.Object.prototype.toObject.call(this,c);return h.objects=s,h},toDatalessObject:function(c){var f,s=this.sourcePath;if(s)f=s;else{var h=this.includeDefaultValues;f=this._objects.map(function(m){var y=m.includeDefaultValues;m.includeDefaultValues=h;var b=m.toDatalessObject(c);return m.includeDefaultValues=y,b})}var g=a.Object.prototype.toDatalessObject.call(this,c);return g.objects=f,g},render:function(c){this._transformDone=!0,this.callSuper("render",c),this._transformDone=!1},shouldCache:function(){var c=a.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(a.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 h=this.cacheWidth/this.zoomX,g=this.cacheHeight/this.zoomY;this._cacheContext.clearRect(-h/2,-g/2,h,g)}return!0}return!1},_restoreObjectsState:function(){var c=this.calcOwnMatrix();return this._objects.forEach(function(f){a.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 h=new a.ActiveSelection([]);return h.set(s),h.type="activeSelection",f.remove(this),c.forEach(function(g){g.group=h,g.dirty=!0,f.add(g)}),h.canvas=f,h._objects=c,f._activeObject=h,h.setCoords(),h}},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=[],h,g,m,y=["tr","br","bl","tl"],b=0,_=this._objects.length,w,S=y.length;b<_;++b){for(h=this._objects[b],m=h.calcACoords(),w=0;w<S;w++)g=y[w],f.push(m[g].x),s.push(m[g].y);h.aCoords=m}this._getBounds(f,s,c)},_getBounds:function(c,f,s){var h=new a.Point(u(c),u(f)),g=new a.Point(d(c),d(f)),m=h.y||0,y=h.x||0,b=g.x-h.x||0,_=g.y-h.y||0;this.width=b,this.height=_,s||this.setPositionByOrigin({x:y,y:m},"left","top")},_toSVG:function(c){for(var f=["<g ","COMMON_PARTS",` >
`],s=0,h=this._objects.length;s<h;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,h=this._objects.length;s<h;s++)f.push(" ",this._objects[s].toClipPathSVG(c));return this._createBaseClipPathSVGMarkup(f,{reviver:c})}}),a.Group.fromObject=function(c,f){var s=c.objects,h=a.util.object.clone(c,!0);if(delete h.objects,typeof s=="string"){a.loadSVGFromURL(s,function(g){var m=a.util.groupSVGElements(g,c,s),y=h.clipPath;delete h.clipPath,m.set(h),y?a.util.enlivenObjects([y],function(b){m.clipPath=b[0],f&&f(m)}):f&&f(m)});return}a.util.enlivenObjects(s,function(g){a.util.enlivenObjectEnlivables(c,h,function(){f&&f(new a.Group(g,h,!0))})})})}(e),function(o){var a=o.fabric||(o.fabric={});a.ActiveSelection||(a.ActiveSelection=a.util.createClass(a.Group,{type:"activeSelection",initialize:function(u,d){d=d||{},this._objects=u||[];for(var c=this._objects.length;c--;)this._objects[c].group=this;d.originX&&(this.originX=d.originX),d.originY&&(this.originY=d.originY),this._calcBounds(),this._updateObjectsCoords(),a.Object.prototype.initialize.call(this,d),this.setCoords()},toGroup:function(){var u=this._objects.concat();this._objects=[];var d=a.Object.prototype.toObject.call(this),c=new a.Group([]);if(delete d.type,c.set(d),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,d,c){u.save(),u.globalAlpha=this.isMoving?this.borderOpacityWhenMoving:1,this.callSuper("_renderControls",u,d),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()}}),a.ActiveSelection.fromObject=function(u,d){a.util.enlivenObjects(u.objects,function(c){delete u.objects,d&&d(new a.ActiveSelection(c,u,!0))})})}(e),function(o){var a=t.util.object.extend;if(o.fabric||(o.fabric={}),o.fabric.Image){t.warn("fabric.Image is already defined.");return}t.Image=t.util.createClass(t.Object,{type:"image",strokeWidth:0,srcFromAttribute:!1,_lastScaleX:1,_lastScaleY:1,_filterScalingX:1,_filterScalingY:1,minimumScaleTrigger:.5,stateProperties:t.Object.prototype.stateProperties.concat("cropX","cropY"),cacheProperties:t.Object.prototype.cacheProperties.concat("cropX","cropY"),cacheKey:"",cropX:0,cropY:0,imageSmoothing:!0,initialize:function(u,d){d||(d={}),this.filters=[],this.cacheKey="texture"+t.Object.__uid++,this.callSuper("initialize",d),this._initElement(u,d)},getElement:function(){return this._element||{}},setElement:function(u,d){return this.removeTexture(this.cacheKey),this.removeTexture(this.cacheKey+"_filtered"),this._element=u,this._originalElement=u,this._initConfig(d),this.filters.length!==0&&this.applyFilters(),this.resizeFilter&&this.applyResizeFilters(),this},removeTexture:function(u){var d=t.filterBackend;d&&d.evictCachesForKey&&d.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 d=this.width/2,c=this.height/2;u.beginPath(),u.moveTo(-d,-c),u.lineTo(d,-c),u.lineTo(d,c),u.lineTo(-d,c),u.lineTo(-d,-c),u.closePath()}},toObject:function(u){var d=[];this.filters.forEach(function(f){f&&d.push(f.toObject())});var c=a(this.callSuper("toObject",["cropX","cropY"].concat(u)),{src:this.getSrc(),crossOrigin:this.getCrossOrigin(),filters:d});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=[],d=[],c,f=this._element,s=-this.width/2,h=-this.height/2,g="",m="";if(!f)return[];if(this.hasCrop()){var y=t.Object.__uid++;u.push('<clipPath id="imageCrop_'+y+`">
`,' <rect x="'+s+'" y="'+h+'" width="'+this.width+'" height="'+this.height+`" />
`,`</clipPath>
`),g=' clip-path="url(#imageCrop_'+y+')" '}if(this.imageSmoothing||(m='" image-rendering="optimizeSpeed'),d.push(" <image ","COMMON_PARTS",'xlink:href="',this.getSvgSrc(!0),'" x="',s-this.cropX,'" y="',h-this.cropY,'" width="',f.width||f.naturalWidth,'" height="',f.height||f.height,m,'"',g,`></image>
`),this.stroke||this.strokeDashArray){var b=this.fill;this.fill=null,c=[" <rect ",'x="',s,'" y="',h,'" width="',this.width,'" height="',this.height,'" style="',this.getSvgStyles(),`"/>
`],this.fill=b}return this.paintFirst!=="fill"?u=u.concat(c,d):u=u.concat(d,c),u},getSrc:function(u){var d=u?this._element:this._originalElement;return d?d.toDataURL?d.toDataURL():this.srcFromAttribute?d.getAttribute("src"):d.src:this.src||""},setSrc:function(u,d,c){return t.util.loadImage(u,function(f,s){this.setElement(f,c),this._setWidthHeight(),d&&d(this,s)},this,c&&c.crossOrigin),this},toString:function(){return'#<fabric.Image: { src: "'+this.getSrc()+'" }>'},applyResizeFilters:function(){var u=this.resizeFilter,d=this.minimumScaleTrigger,c=this.getTotalObjectScaling(),f=c.scaleX,s=c.scaleY,h=this._filteredEl||this._originalElement;if(this.group&&this.set("dirty",!0),!u||f>d&&s>d){this._element=h,this._filterScalingX=1,this._filterScalingY=1,this._lastScaleX=f,this._lastScaleY=s;return}t.filterBackend||(t.filterBackend=t.initFilterBackend());var g=t.util.createCanvasElement(),m=this._filteredEl?this.cacheKey+"_filtered":this.cacheKey,y=h.width,b=h.height;g.width=y,g.height=b,this._element=g,this._lastScaleX=u.scaleX=f,this._lastScaleY=u.scaleY=s,t.filterBackend.applyFilters([u],h,y,b,this._element,m),this._filterScalingX=g.width/this._originalElement.width,this._filterScalingY=g.height/this._originalElement.height},applyFilters:function(u){if(u=u||this.filters||[],u=u.filter(function(h){return h&&!h.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 d=this._originalElement,c=d.naturalWidth||d.width,f=d.naturalHeight||d.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 d=this._element;if(!!d){var c=this._filterScalingX,f=this._filterScalingY,s=this.width,h=this.height,g=Math.min,m=Math.max,y=m(this.cropX,0),b=m(this.cropY,0),_=d.naturalWidth||d.width,w=d.naturalHeight||d.height,S=y*c,x=b*f,T=g(s*c,_-S),E=g(h*f,w-x),I=-s/2,D=-h/2,N=g(s,_/c-y),L=g(h,w/f-b);d&&u.drawImage(d,S,x,T,E,I,D,N,L)}},_needsResize:function(){var u=this.getTotalObjectScaling();return u.scaleX!==this._lastScaleX||u.scaleY!==this._lastScaleY},_resetWidthHeight:function(){this.set(this.getOriginalSize())},_initElement:function(u,d){this.setElement(t.util.getById(u),d),t.util.addClass(this.getElement(),t.Image.CSS_CANVAS)},_initConfig:function(u){u||(u={}),this.setOptions(u),this._setWidthHeight(u)},_initFilters:function(u,d){u&&u.length?t.util.enlivenObjects(u,function(c){d&&d(c)},"fabric.Image.filters"):d&&d()},_setWidthHeight:function(u){u||(u={});var d=this.getElement();this.width=u.width||d.naturalWidth||d.width||0,this.height=u.height||d.naturalHeight||d.height||0},parsePreserveAspectRatioAttribute:function(){var u=t.util.parsePreserveAspectRatioAttribute(this.preserveAspectRatio||""),d=this._element.width,c=this._element.height,f=1,s=1,h=0,g=0,m=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=(_-d*f)/2,u.alignX==="Min"&&(h=-b),u.alignX==="Max"&&(h=b),b=(w-c*s)/2,u.alignY==="Min"&&(g=-b),u.alignY==="Max"&&(g=b)),u.meetOrSlice==="slice"&&(f=s=t.util.findScaleToCover(this._element,S),b=d-_/f,u.alignX==="Mid"&&(m=b/2),u.alignX==="Max"&&(m=b),b=c-w/s,u.alignY==="Mid"&&(y=b/2),u.alignY==="Max"&&(y=b),d=_/f,c=w/s)):(f=_/d,s=w/c),{width:d,height:c,scaleX:f,scaleY:s,offsetLeft:h,offsetTop:g,cropX:m,cropY:y}}}),t.Image.CSS_CANVAS="canvas-img",t.Image.prototype.getSvgSrc=t.Image.prototype.getSrc,t.Image.fromObject=function(u,d){var c=t.util.object.clone(u);t.util.loadImage(c.src,function(f,s){if(s){d&&d(null,!0);return}t.Image.prototype._initFilters.call(c,c.filters,function(h){c.filters=h||[],t.Image.prototype._initFilters.call(c,[c.resizeFilter],function(g){c.resizeFilter=g[0],t.util.enlivenObjectEnlivables(c,c,function(){var m=new t.Image(f,c);d(m,!1)})})})},null,c.crossOrigin)},t.Image.fromURL=function(u,d,c){t.util.loadImage(u,function(f,s){d&&d(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,d,c){var f=t.parseAttributes(u,t.Image.ATTRIBUTE_NAMES);t.Image.fromURL(f["xlink:href"],d,a(c?t.util.object.clone(c):{},f))}}(e),t.util.object.extend(t.Object.prototype,{_getAngleValueForStraighten:function(){var o=this.angle%360;return o>0?Math.round((o-1)/90)*90:Math.round(o/90)*90},straighten:function(){return this.rotate(this._getAngleValueForStraighten())},fxStraighten:function(o){o=o||{};var a=function(){},u=o.onComplete||a,d=o.onChange||a,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),d()},onComplete:function(){c.setCoords(),u()}})}}),t.util.object.extend(t.StaticCanvas.prototype,{straightenObject:function(o){return o.straighten(),this.requestRenderAll(),this},fxStraightenObject:function(o){return o.fxStraighten({onChange:this.requestRenderAllBound})}}),function(){function o(u,d){var c="precision "+d+` 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 d=document.createElement("canvas"),c=d.getContext("webgl")||d.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"],h=0;h<3;h++)if(o(c,s[h])){t.webGlPrecision=s[h];break}}return this.isSupported=f,f},t.WebglFilterBackend=a;function a(u){u&&u.tileSize&&(this.tileSize=u.tileSize),this.setupGLContext(this.tileSize,this.tileSize),this.captureGPUInfo()}a.prototype={tileSize:2048,resources:{},setupGLContext:function(u,d){this.dispose(),this.createWebGLCanvas(u,d),this.aPosition=new Float32Array([0,0,0,1,1,0,1,1]),this.chooseFastestCopyGLTo2DMethod(u,d)},chooseFastestCopyGLTo2DMethod:function(u,d){var c=typeof window.performance<"u",f;try{new ImageData(1,1),f=!0}catch{f=!1}var s=typeof ArrayBuffer<"u",h=typeof Uint8ClampedArray<"u";if(!!(c&&f&&s&&h)){var g=t.util.createCanvasElement(),m=new ArrayBuffer(u*d*4);if(t.forceGLPutImageData){this.imageBuffer=m,this.copyGLTo2D=v;return}var y={imageBuffer:m,destinationWidth:u,destinationHeight:d,targetCanvas:g},b,_,w;g.width=u,g.height=d,b=window.performance.now(),l.call(y,this.gl,y),_=window.performance.now()-b,b=window.performance.now(),v.call(y,this.gl,y),w=window.performance.now()-b,_>w?(this.imageBuffer=m,this.copyGLTo2D=v):this.copyGLTo2D=l}},createWebGLCanvas:function(u,d){var c=t.util.createCanvasElement();c.width=u,c.height=d;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,d,c,f,s,h){var g=this.gl,m;h&&(m=this.getCachedTexture(h,d));var y={originalWidth:d.width||d.originalWidth,originalHeight:d.height||d.originalHeight,sourceWidth:c,sourceHeight:f,destinationWidth:c,destinationHeight:f,context:g,sourceTexture:this.createTexture(g,c,f,!m&&d),targetTexture:this.createTexture(g,c,f),originalTexture:m||this.createTexture(g,c,f,!m&&d),passes:u.length,webgl:!0,aPosition:this.aPosition,programCache:this.programCache,pass:0,filterBackend:this,targetCanvas:s},b=g.createFramebuffer();return g.bindFramebuffer(g.FRAMEBUFFER,b),u.forEach(function(_){_&&_.applyTo(y)}),i(y),this.copyGLTo2D(g,y),g.bindTexture(g.TEXTURE_2D,null),g.deleteTexture(y.sourceTexture),g.deleteTexture(y.targetTexture),g.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,d,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,d,c,0,u.RGBA,u.UNSIGNED_BYTE,null),s},getCachedTexture:function(u,d){if(this.textureCache[u])return this.textureCache[u];var c=this.createTexture(this.gl,d.width,d.height,d);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,d={renderer:"",vendor:""};if(!u)return d;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&&(d.renderer=f.toLowerCase()),s&&(d.vendor=s.toLowerCase())}return this.gpuInfo=d,d}}}();function i(o){var a=o.targetCanvas,u=a.width,d=a.height,c=o.destinationWidth,f=o.destinationHeight;(u!==c||d!==f)&&(a.width=c,a.height=f)}function l(o,a){var u=o.canvas,d=a.targetCanvas,c=d.getContext("2d");c.translate(0,d.height),c.scale(1,-1);var f=u.height-d.height;c.drawImage(u,0,f,d.width,d.height,0,0,d.width,d.height)}function v(o,a){var u=a.targetCanvas,d=u.getContext("2d"),c=a.destinationWidth,f=a.destinationHeight,s=c*f*4,h=new Uint8Array(this.imageBuffer,0,s),g=new Uint8ClampedArray(this.imageBuffer,0,s);o.readPixels(0,0,c,f,o.RGBA,o.UNSIGNED_BYTE,h);var m=new ImageData(g,c,f);d.putImageData(m,0,0)}(function(){var o=function(){};t.Canvas2dFilterBackend=a;function a(){}a.prototype={evictCachesForKey:o,dispose:o,clearWebGLCaches:o,resources:{},applyFilters:function(u,d,c,f,s){var h=s.getContext("2d");h.drawImage(d,0,0,c,f);var g=h.getImageData(0,0,c,f),m=h.getImageData(0,0,c,f),y={sourceWidth:c,sourceHeight:f,imageData:g,originalEl:d,originalImageData:m,canvasEl:s,ctx:h,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),h.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(o){o&&this.setOptions(o)},setOptions:function(o){for(var a in o)this[a]=o[a]},createProgram:function(o,a,u){a=a||this.fragmentSource,u=u||this.vertexSource,t.webGlPrecision!=="highp"&&(a=a.replace(/precision highp float/g,"precision "+t.webGlPrecision+" float"));var d=o.createShader(o.VERTEX_SHADER);if(o.shaderSource(d,u),o.compileShader(d),!o.getShaderParameter(d,o.COMPILE_STATUS))throw new Error("Vertex shader compile error for "+this.type+": "+o.getShaderInfoLog(d));var c=o.createShader(o.FRAGMENT_SHADER);if(o.shaderSource(c,a),o.compileShader(c),!o.getShaderParameter(c,o.COMPILE_STATUS))throw new Error("Fragment shader compile error for "+this.type+": "+o.getShaderInfoLog(c));var f=o.createProgram();if(o.attachShader(f,d),o.attachShader(f,c),o.linkProgram(f),!o.getProgramParameter(f,o.LINK_STATUS))throw new Error('Shader link error for "${this.type}" '+o.getProgramInfoLog(f));var s=this.getAttributeLocations(o,f),h=this.getUniformLocations(o,f)||{};return h.uStepW=o.getUniformLocation(f,"uStepW"),h.uStepH=o.getUniformLocation(f,"uStepH"),{program:f,attributeLocations:s,uniformLocations:h}},getAttributeLocations:function(o,a){return{aPosition:o.getAttribLocation(a,"aPosition")}},getUniformLocations:function(){return{}},sendAttributeData:function(o,a,u){var d=a.aPosition,c=o.createBuffer();o.bindBuffer(o.ARRAY_BUFFER,c),o.enableVertexAttribArray(d),o.vertexAttribPointer(d,2,o.FLOAT,!1,0,0),o.bufferData(o.ARRAY_BUFFER,u,o.STATIC_DRAW)},_setupFrameBuffer:function(o){var a=o.context,u,d;o.passes>1?(u=o.destinationWidth,d=o.destinationHeight,(o.sourceWidth!==u||o.sourceHeight!==d)&&(a.deleteTexture(o.targetTexture),o.targetTexture=o.filterBackend.createTexture(a,u,d)),a.framebufferTexture2D(a.FRAMEBUFFER,a.COLOR_ATTACHMENT0,a.TEXTURE_2D,o.targetTexture,0)):(a.bindFramebuffer(a.FRAMEBUFFER,null),a.finish())},_swapTextures:function(o){o.passes--,o.pass++;var a=o.targetTexture;o.targetTexture=o.sourceTexture,o.sourceTexture=a},isNeutralState:function(){var o=this.mainParameter,a=t.Image.filters[this.type].prototype;if(o)if(Array.isArray(a[o])){for(var u=a[o].length;u--;)if(this[o][u]!==a[o][u])return!1;return!0}else return a[o]===this[o];else return!1},applyTo:function(o){o.webgl?(this._setupFrameBuffer(o),this.applyToWebGL(o),this._swapTextures(o)):this.applyTo2d(o)},retrieveShader:function(o){return o.programCache.hasOwnProperty(this.type)||(o.programCache[this.type]=this.createProgram(o.context)),o.programCache[this.type]},applyToWebGL:function(o){var a=o.context,u=this.retrieveShader(o);o.pass===0&&o.originalTexture?a.bindTexture(a.TEXTURE_2D,o.originalTexture):a.bindTexture(a.TEXTURE_2D,o.sourceTexture),a.useProgram(u.program),this.sendAttributeData(a,u.attributeLocations,o.aPosition),a.uniform1f(u.uniformLocations.uStepW,1/o.sourceWidth),a.uniform1f(u.uniformLocations.uStepH,1/o.sourceHeight),this.sendUniformData(a,u.uniformLocations),a.viewport(0,0,o.destinationWidth,o.destinationHeight),a.drawArrays(a.TRIANGLE_STRIP,0,4)},bindAdditionalTexture:function(o,a,u){o.activeTexture(u),o.bindTexture(o.TEXTURE_2D,a),o.activeTexture(o.TEXTURE0)},unbindAdditionalTexture:function(o,a){o.activeTexture(a),o.bindTexture(o.TEXTURE_2D,null),o.activeTexture(o.TEXTURE0)},getMainParameter:function(){return this[this.mainParameter]},setMainParameter:function(o){this[this.mainParameter]=o},sendUniformData:function(){},createHelpLayer:function(o){if(!o.helpLayer){var a=document.createElement("canvas");a.width=o.sourceWidth,a.height=o.sourceHeight,o.helpLayer=a}},toObject:function(){var o={type:this.type},a=this.mainParameter;return a&&(o[a]=this[a]),o},toJSON:function(){return this.toObject()}}),t.Image.filters.BaseFilter.fromObject=function(o,a){var u=new t.Image.filters[o.type](o);return a&&a(u),u},function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.ColorMatrix=d(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,h=s.length,g=this.matrix,m,y,b,_,w,S=this.colorsOnly;for(w=0;w<h;w+=4)m=s[w],y=s[w+1],b=s[w+2],S?(s[w]=m*g[0]+y*g[1]+b*g[2]+g[4]*255,s[w+1]=m*g[5]+y*g[6]+b*g[7]+g[9]*255,s[w+2]=m*g[10]+y*g[11]+b*g[12]+g[14]*255):(_=s[w+3],s[w]=m*g[0]+y*g[1]+b*g[2]+_*g[3]+g[4]*255,s[w+1]=m*g[5]+y*g[6]+b*g[7]+_*g[8]+g[9]*255,s[w+2]=m*g[10]+y*g[11]+b*g[12]+_*g[13]+g[14]*255,s[w+3]=m*g[15]+y*g[16]+b*g[17]+_*g[18]+g[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,h=[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]],g=[s[4],s[9],s[14],s[19]];c.uniformMatrix4fv(f.uColorMatrix,!1,h),c.uniform4fv(f.uConstants,g)}}),a.Image.filters.ColorMatrix.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Brightness=d(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,h,g=s.length,m=Math.round(this.brightness*255);for(h=0;h<g;h+=4)s[h]=s[h]+m,s[h+1]=s[h+1]+m,s[h+2]=s[h+2]+m}},getUniformLocations:function(c,f){return{uBrightness:c.getUniformLocation(f,"uBrightness")}},sendUniformData:function(c,f){c.uniform1f(f.uBrightness,this.brightness)}}),a.Image.filters.Brightness.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.extend,d=a.Image.filters,c=a.util.createClass;d.Convolute=c(d.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),h=this.type+"_"+s+"_"+(this.opaque?1:0),g=this.fragmentSource[h];return f.programCache.hasOwnProperty(h)||(f.programCache[h]=this.createProgram(f.context,g)),f.programCache[h]},applyTo2d:function(f){var s=f.imageData,h=s.data,g=this.matrix,m=Math.round(Math.sqrt(g.length)),y=Math.floor(m/2),b=s.width,_=s.height,w=f.ctx.createImageData(b,_),S=w.data,x=this.opaque?1:0,T,E,I,D,N,L,F,O,V,ne,J,le,M;for(J=0;J<_;J++)for(ne=0;ne<b;ne++){for(N=(J*b+ne)*4,T=0,E=0,I=0,D=0,M=0;M<m;M++)for(le=0;le<m;le++)F=J+M-y,L=ne+le-y,!(F<0||F>=_||L<0||L>=b)&&(O=(F*b+L)*4,V=g[M*m+le],T+=h[O]*V,E+=h[O+1]*V,I+=h[O+2]*V,x||(D+=h[O+3]*V));S[N]=T,S[N+1]=E,S[N+2]=I,x?S[N+3]=h[N+3]:S[N+3]=D}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})}}),a.Image.filters.Convolute.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Grayscale=d(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,h,g=s.length,m,y=this.mode;for(h=0;h<g;h+=4)y==="average"?m=(s[h]+s[h+1]+s[h+2])/3:y==="lightness"?m=(Math.min(s[h],s[h+1],s[h+2])+Math.max(s[h],s[h+1],s[h+2]))/2:y==="luminosity"&&(m=.21*s[h]+.72*s[h+1]+.07*s[h+2]),s[h]=m,s[h+1]=m,s[h+2]=m},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}}),a.Image.filters.Grayscale.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Invert=d(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,h,g=s.length;for(h=0;h<g;h+=4)s[h]=255-s[h],s[h+1]=255-s[h+1],s[h+2]=255-s[h+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)}}),a.Image.filters.Invert.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.extend,d=a.Image.filters,c=a.util.createClass;d.Noise=c(d.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,h=s.data,g,m=h.length,y=this.noise,b;for(g=0,m=h.length;g<m;g+=4)b=(.5-Math.random())*y,h[g]+=b,h[g+1]+=b,h[g+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})}}),a.Image.filters.Noise.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Pixelate=d(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,h=f.height,g=f.width,m,y,b,_,w,S,x,T,E,I,D;for(y=0;y<h;y+=this.blocksize)for(b=0;b<g;b+=this.blocksize)for(m=y*4*g+b*4,_=s[m],w=s[m+1],S=s[m+2],x=s[m+3],I=Math.min(y+this.blocksize,h),D=Math.min(b+this.blocksize,g),T=y;T<I;T++)for(E=b;E<D;E++)m=T*4*g+E*4,s[m]=_,s[m+1]=w,s[m+2]=S,s[m+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)}}),a.Image.filters.Pixelate.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.extend,d=a.Image.filters,c=a.util.createClass;d.RemoveColor=c(d.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,h=s.data,g,m=this.distance*255,y,b,_,w=new a.Color(this.color).getSource(),S=[w[0]-m,w[1]-m,w[2]-m],x=[w[0]+m,w[1]+m,w[2]+m];for(g=0;g<h.length;g+=4)y=h[g],b=h[g+1],_=h[g+2],y>S[0]&&b>S[1]&&_>S[2]&&y<x[0]&&b<x[1]&&_<x[2]&&(h[g+3]=0)},getUniformLocations:function(f,s){return{uLow:f.getUniformLocation(s,"uLow"),uHigh:f.getUniformLocation(s,"uHigh")}},sendUniformData:function(f,s){var h=new a.Color(this.color).getSource(),g=parseFloat(this.distance),m=[0+h[0]/255-g,0+h[1]/255-g,0+h[2]/255-g,1],y=[h[0]/255+g,h[1]/255+g,h[2]/255+g,1];f.uniform4fv(s.uLow,m),f.uniform4fv(s.uHigh,y)},toObject:function(){return u(this.callSuper("toObject"),{color:this.color,distance:this.distance})}}),a.Image.filters.RemoveColor.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.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]=d(u.ColorMatrix,{type:f,matrix:c[f],mainParameter:!1,colorsOnly:!0}),a.Image.filters[f].fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric,u=a.Image.filters,d=a.util.createClass;u.BlendColor=d(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,h=s.length,g,m,y,b,_,w,S,x=1-this.alpha;S=new a.Color(this.color).getSource(),g=S[0]*this.alpha,m=S[1]*this.alpha,y=S[2]*this.alpha;for(var T=0;T<h;T+=4)switch(b=s[T],_=s[T+1],w=s[T+2],this.mode){case"multiply":s[T]=b*g/255,s[T+1]=_*m/255,s[T+2]=w*y/255;break;case"screen":s[T]=255-(255-b)*(255-g)/255,s[T+1]=255-(255-_)*(255-m)/255,s[T+2]=255-(255-w)*(255-y)/255;break;case"add":s[T]=b+g,s[T+1]=_+m,s[T+2]=w+y;break;case"diff":case"difference":s[T]=Math.abs(b-g),s[T+1]=Math.abs(_-m),s[T+2]=Math.abs(w-y);break;case"subtract":s[T]=b-g,s[T+1]=_-m,s[T+2]=w-y;break;case"darken":s[T]=Math.min(b,g),s[T+1]=Math.min(_,m),s[T+2]=Math.min(w,y);break;case"lighten":s[T]=Math.max(b,g),s[T+1]=Math.max(_,m),s[T+2]=Math.max(w,y);break;case"overlay":s[T]=g<128?2*b*g/255:255-2*(255-b)*(255-g)/255,s[T+1]=m<128?2*_*m/255:255-2*(255-_)*(255-m)/255,s[T+2]=y<128?2*w*y/255:255-2*(255-w)*(255-y)/255;break;case"exclusion":s[T]=g+b-2*g*b/255,s[T+1]=m+_-2*m*_/255,s[T+2]=y+w-2*y*w/255;break;case"tint":s[T]=g+b*x,s[T+1]=m+_*x,s[T+2]=y+w*x}},getUniformLocations:function(c,f){return{uColor:c.getUniformLocation(f,"uColor")}},sendUniformData:function(c,f){var s=new a.Color(this.color).getSource();s[0]=this.alpha*s[0]/255,s[1]=this.alpha*s[1]/255,s[2]=this.alpha*s[2]/255,s[3]=this.alpha,c.uniform4fv(f.uColor,s)},toObject:function(){return{type:this.type,color:this.color,mode:this.mode,alpha:this.alpha}}}),a.Image.filters.BlendColor.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric,u=a.Image.filters,d=a.util.createClass;u.BlendImage=d(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,h=f.data,g=h.length,m=f.width,y=f.height,b,_,w,S,x,T,E,I,D,N,L=this.image,F;s.blendImage||(s.blendImage=a.util.createCanvasElement()),D=s.blendImage,N=D.getContext("2d"),D.width!==m||D.height!==y?(D.width=m,D.height=y):N.clearRect(0,0,m,y),N.setTransform(L.scaleX,0,0,L.scaleY,L.left,L.top),N.drawImage(L._element,0,0,m,y),F=N.getImageData(0,0,m,y).data;for(var O=0;O<g;O+=4)switch(x=h[O],T=h[O+1],E=h[O+2],I=h[O+3],b=F[O],_=F[O+1],w=F[O+2],S=F[O+3],this.mode){case"multiply":h[O]=x*b/255,h[O+1]=T*_/255,h[O+2]=E*w/255,h[O+3]=I*S/255;break;case"mask":h[O+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}}}),a.Image.filters.BlendImage.fromObject=function(c,f){a.Image.fromObject(c.image,function(s){var h=a.util.object.clone(c);h.image=s,f(new a.Image.filters.BlendImage(h))})}}(e),function(o){var a=o.fabric||(o.fabric={}),u=Math.pow,d=Math.floor,c=Math.sqrt,f=Math.abs,s=Math.round,h=Math.sin,g=Math.ceil,m=a.Image.filters,y=a.util.createClass;m.Resize=y(m.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,E){w+=" color += texture2D(uTexture, vTexCoord + "+T+") * uTaps["+E+`];
`,w+=" color += texture2D(uTexture, vTexCoord - "+T+") * uTaps["+E+`];
`,w+=" sum += 2.0 * uTaps["+E+`];
`}),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 h(_)/_*h(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,E=s(x*w),I=s(T*S),D;this.resizeType==="sliceHack"?D=this.sliceByTwo(b,x,T,E,I):this.resizeType==="hermite"?D=this.hermiteFastResize(b,x,T,E,I):this.resizeType==="bilinear"?D=this.bilinearFiltering(b,x,T,E,I):this.resizeType==="lanczos"&&(D=this.lanczosResize(b,x,T,E,I)),b.imageData=D},sliceByTwo:function(b,_,w,S,x){var T=b.imageData,E=.5,I=!1,D=!1,N=_*E,L=w*E,F=a.filterBackend.resources,O,V,ne=0,J=0,le=_,M=0;for(F.sliceByTwo||(F.sliceByTwo=document.createElement("canvas")),O=F.sliceByTwo,(O.width<_*1.5||O.height<w)&&(O.width=_*1.5,O.height=w),V=O.getContext("2d"),V.clearRect(0,0,_*1.5,w),V.putImageData(T,0,0),S=d(S),x=d(x);!I||!D;)_=N,w=L,S<d(N*E)?N=d(N*E):(N=S,I=!0),x<d(L*E)?L=d(L*E):(L=x,D=!0),V.drawImage(O,ne,J,_,w,le,M,N,L),ne=le,J=M,M+=L;return V.getImageData(ne,J,S,x)},lanczosResize:function(b,_,w,S,x){function T(R){var P,Q,j,A,q,G,te,fe,pe,ve,H;for(M.x=(R+.5)*L,U.x=d(M.x),P=0;P<x;P++){for(M.y=(P+.5)*F,U.y=d(M.y),q=0,G=0,te=0,fe=0,pe=0,Q=U.x-ne;Q<=U.x+ne;Q++)if(!(Q<0||Q>=_)){ve=d(1e3*f(Q-M.x)),le[ve]||(le[ve]={});for(var W=U.y-J;W<=U.y+J;W++)W<0||W>=w||(H=d(1e3*f(W-M.y)),le[ve][H]||(le[ve][H]=N(c(u(ve*O,2)+u(H*V,2))/1e3)),j=le[ve][H],j>0&&(A=(W*_+Q)*4,q+=j,G+=j*E[A],te+=j*E[A+1],fe+=j*E[A+2],pe+=j*E[A+3]))}A=(P*S+R)*4,D[A]=G/q,D[A+1]=te/q,D[A+2]=fe/q,D[A+3]=pe/q}return++R<S?T(R):I}var E=b.imageData.data,I=b.ctx.createImageData(S,x),D=I.data,N=this.lanczosCreate(this.lanczosLobes),L=this.rcpScaleX,F=this.rcpScaleY,O=2/this.rcpScaleX,V=2/this.rcpScaleY,ne=g(L*this.lanczosLobes/2),J=g(F*this.lanczosLobes/2),le={},M={},U={};return T(0)},bilinearFiltering:function(b,_,w,S,x){var T,E,I,D,N,L,F,O,V,ne,J,le,M=0,U,R=this.rcpScaleX,P=this.rcpScaleY,Q=4*(_-1),j=b.imageData,A=j.data,q=b.ctx.createImageData(S,x),G=q.data;for(F=0;F<x;F++)for(O=0;O<S;O++)for(N=d(R*O),L=d(P*F),V=R*O-N,ne=P*F-L,U=4*(L*_+N),J=0;J<4;J++)T=A[U+J],E=A[U+4+J],I=A[U+Q+J],D=A[U+Q+4+J],le=T*(1-V)*(1-ne)+E*V*(1-ne)+I*ne*(1-V)+D*V*ne,G[M++]=le;return q},hermiteFastResize:function(b,_,w,S,x){for(var T=this.rcpScaleX,E=this.rcpScaleY,I=g(T/2),D=g(E/2),N=b.imageData,L=N.data,F=b.ctx.createImageData(S,x),O=F.data,V=0;V<x;V++)for(var ne=0;ne<S;ne++){for(var J=(ne+V*S)*4,le=0,M=0,U=0,R=0,P=0,Q=0,j=0,A=(V+.5)*E,q=d(V*E);q<(V+1)*E;q++)for(var G=f(A-(q+.5))/D,te=(ne+.5)*T,fe=G*G,pe=d(ne*T);pe<(ne+1)*T;pe++){var ve=f(te-(pe+.5))/I,H=c(fe+ve*ve);H>1&&H<-1||(le=2*H*H*H-3*H*H+1,le>0&&(ve=4*(pe+q*_),j+=le*L[ve+3],U+=le,L[ve+3]<255&&(le=le*L[ve+3]/250),R+=le*L[ve],P+=le*L[ve+1],Q+=le*L[ve+2],M+=le))}O[J]=R/M,O[J+1]=P/M,O[J+2]=Q/M,O[J+3]=j/U}return F},toObject:function(){return{type:this.type,scaleX:this.scaleX,scaleY:this.scaleY,resizeType:this.resizeType,lanczosLobes:this.lanczosLobes}}}),a.Image.filters.Resize.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Contrast=d(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,g,h=f.data,g=h.length,m=Math.floor(this.contrast*255),y=259*(m+255)/(255*(259-m));for(s=0;s<g;s+=4)h[s]=y*(h[s]-128)+128,h[s+1]=y*(h[s+1]-128)+128,h[s+2]=y*(h[s+2]-128)+128}},getUniformLocations:function(c,f){return{uContrast:c.getUniformLocation(f,"uContrast")}},sendUniformData:function(c,f){c.uniform1f(f.uContrast,this.contrast)}}),a.Image.filters.Contrast.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Saturation=d(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,h=s.length,g=-this.saturation,m,y;for(m=0;m<h;m+=4)y=Math.max(s[m],s[m+1],s[m+2]),s[m]+=y!==s[m]?(y-s[m])*g:0,s[m+1]+=y!==s[m+1]?(y-s[m+1])*g:0,s[m+2]+=y!==s[m+2]?(y-s[m+2])*g:0}},getUniformLocations:function(c,f){return{uSaturation:c.getUniformLocation(f,"uSaturation")}},sendUniformData:function(c,f){c.uniform1f(f.uSaturation,-this.saturation)}}),a.Image.filters.Saturation.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Vibrance=d(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,h=s.length,g=-this.vibrance,m,y,b,_;for(m=0;m<h;m+=4)y=Math.max(s[m],s[m+1],s[m+2]),b=(s[m]+s[m+1]+s[m+2])/3,_=Math.abs(y-b)*2/255*g,s[m]+=y!==s[m]?(y-s[m])*_:0,s[m+1]+=y!==s[m+1]?(y-s[m+1])*_:0,s[m+2]+=y!==s[m+2]?(y-s[m+2])*_:0}},getUniformLocations:function(c,f){return{uVibrance:c.getUniformLocation(f,"uVibrance")}},sendUniformData:function(c,f){c.uniform1f(f.uVibrance,-this.vibrance)}}),a.Image.filters.Vibrance.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Blur=d(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,h,g=c.imageData.width,m=c.imageData.height;f.blurLayer1||(f.blurLayer1=a.util.createCanvasElement(),f.blurLayer2=a.util.createCanvasElement()),s=f.blurLayer1,h=f.blurLayer2,(s.width!==g||s.height!==m)&&(h.width=s.width=g,h.height=s.height=m);var y=s.getContext("2d"),b=h.getContext("2d"),_=15,w,S,x,T,E=this.blur*.06*.5;for(y.putImageData(c.imageData,0,0),b.clearRect(0,0,g,m),T=-_;T<=_;T++)w=(Math.random()-.5)/4,S=T/_,x=E*S*g+w,b.globalAlpha=1-Math.abs(S),b.drawImage(s,x,w),y.drawImage(h,0,0),b.globalAlpha=1,b.clearRect(0,0,h.width,h.height);for(T=-_;T<=_;T++)w=(Math.random()-.5)/4,S=T/_,x=E*S*m+w,b.globalAlpha=1-Math.abs(S),b.drawImage(s,w,x),y.drawImage(h,0,0),b.globalAlpha=1,b.clearRect(0,0,h.width,h.height);c.ctx.drawImage(s,0,0);var I=c.ctx.getImageData(0,0,s.width,s.height);return y.globalAlpha=1,y.clearRect(0,0,s.width,s.height),I},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=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Gamma=d(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,h=this.gamma,g=s.length,m=1/h[0],y=1/h[1],b=1/h[2],_;for(this.rVals||(this.rVals=new Uint8Array(256),this.gVals=new Uint8Array(256),this.bVals=new Uint8Array(256)),_=0,g=256;_<g;_++)this.rVals[_]=Math.pow(_/255,m)*255,this.gVals[_]=Math.pow(_/255,y)*255,this.bVals[_]=Math.pow(_/255,b)*255;for(_=0,g=s.length;_<g;_+=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)}}),a.Image.filters.Gamma.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.Composed=d(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 a.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()})}}),a.Image.filters.Composed.fromObject=function(c,f){var s=c.subFilters||[],h=s.map(function(m){return new a.Image.filters[m.type](m)}),g=new a.Image.filters.Composed({subFilters:h});return f&&f(g),g}}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.Image.filters,d=a.util.createClass;u.HueRotation=d(u.ColorMatrix,{type:"HueRotation",rotation:0,mainParameter:"rotation",calculateMatrix:function(){var c=this.rotation*Math.PI,f=a.util.cos(c),s=a.util.sin(c),h=1/3,g=Math.sqrt(h)*s,m=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+m/3,this.matrix[1]=h*m-g,this.matrix[2]=h*m+g,this.matrix[5]=h*m+g,this.matrix[6]=f+h*m,this.matrix[7]=h*m-g,this.matrix[10]=h*m-g,this.matrix[11]=h*m+g,this.matrix[12]=f+h*m},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)}}),a.Image.filters.HueRotation.fromObject=a.Image.filters.BaseFilter.fromObject}(e),function(o){var a=o.fabric||(o.fabric={}),u=a.util.object.clone;if(a.Text){a.warn("fabric.Text is already defined");return}var d="fontFamily fontWeight fontSize text underline overline linethrough textAlign fontStyle lineHeight textBackgroundColor charSpacing styles direction path pathStartOffset pathSide pathAlign".split(" ");a.Text=a.util.createClass(a.Object,{_dimensionAffectingProps:["fontSize","fontWeight","fontFamily","fontStyle","lineHeight","text","charSpacing","textAlign","styles","path","pathStartOffset","pathSide","pathAlign"],_reNewline:/\r?\n/,_reSpacesAndTabs:/[ \t\r]/g,_reSpaceAndTab:/[ \t\r]/,_reWords:/\S+/g,type:"text",fontSize:40,fontWeight:"normal",fontFamily:"Times New Roman",underline:!1,overline:!1,linethrough:!1,textAlign:"left",fontStyle:"normal",lineHeight:1.16,superscript:{size:.6,baseline:-.35},subscript:{size:.6,baseline:.11},textBackgroundColor:"",stateProperties:a.Object.prototype.stateProperties.concat(d),cacheProperties:a.Object.prototype.cacheProperties.concat(d),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=a.util.getPathSegmentsInfo(c.path))},getMeasuringContext:function(){return a._measuringContext||(a._measuringContext=this.canvas&&this.canvas.contextCache||a.util.createCanvasElement().getContext("2d")),a._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,h,g,m,y,b=0,_=this._textLines.length;b<_;b++)if(!(this.textAlign!=="justify"&&(b===_-1||this.isEndOfWrapping(b)))&&(h=0,g=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=g.length;w<=S;w++)m=this.__charBounds[b][w],this._reSpaceAndTab.test(g[w])?(m.width+=c,m.kernedWidth+=c,m.left+=h,h+=c):m.left+=h}},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 h=this.getLineWidth(f);h>c&&(c=h)}return c},_renderTextLine:function(c,f,s,h,g,m){this._renderChars(c,f,s,h,g,m)},_renderTextLinesBackground:function(c){if(!(!this.textBackgroundColor&&!this.styleHas("textBackgroundColor"))){for(var f,s,h=c.fillStyle,g,m,y=this._getLeftOffset(),b=this._getTopOffset(),_=0,w=0,S,x,T=this.path,E,I=0,D=this._textLines.length;I<D;I++){if(f=this.getHeightOfLine(I),!this.textBackgroundColor&&!this.styleHas("textBackgroundColor",I)){b+=f;continue}g=this._textLines[I],s=this._getLineLeftOffset(I),w=0,_=0,m=this.getValueOfPropertyAt(I,0,"textBackgroundColor");for(var N=0,L=g.length;N<L;N++)S=this.__charBounds[I][N],x=this.getValueOfPropertyAt(I,N,"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!==m?(E=y+s+_,this.direction==="rtl"&&(E=this.width-E-w),c.fillStyle=m,m&&c.fillRect(E,b,w,f/this.lineHeight),_=S.left,w=S.width,m=x):w+=S.kernedWidth;x&&!T&&(E=y+s+_,this.direction==="rtl"&&(E=this.width-E-w),c.fillStyle=x,c.fillRect(E,b,w,f/this.lineHeight)),b+=f}c.fillStyle=h,this._removeShadow(c)}},getFontCache:function(c){var f=c.fontFamily.toLowerCase();a.charWidthsCache[f]||(a.charWidthsCache[f]={});var s=a.charWidthsCache[f],h=c.fontStyle.toLowerCase()+"_"+(c.fontWeight+"").toLowerCase();return s[h]||(s[h]={}),s[h]},_measureChar:function(c,f,s,h){var g=this.getFontCache(f),m=this._getFontDeclaration(f),y=this._getFontDeclaration(h),b=s+c,_=m===y,w,S,x,T=f.fontSize/this.CACHE_FONT_SIZE,E;if(s&&g[s]!==void 0&&(x=g[s]),g[c]!==void 0&&(E=w=g[c]),_&&g[b]!==void 0&&(S=g[b],E=S-x),w===void 0||x===void 0||S===void 0){var I=this.getMeasuringContext();this._setTextStyles(I,f,!0)}return w===void 0&&(E=w=I.measureText(c).width,g[c]=w),x===void 0&&_&&s&&(x=I.measureText(s).width,g[s]=x),_&&S===void 0&&(S=I.measureText(b).width,g[b]=S,E=S-x),{width:w*T,kernedWidth:E*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,h,g=this._textLines[c],m,y,b=0,_=new Array(g.length),w=0,S,x,T=this.path,E=this.pathSide==="right";for(this.__charBounds[c]=_,s=0;s<g.length;s++)h=g[s],y=this._getGraphemeBox(h,c,s,m),_[s]=y,f+=y.kernedWidth,m=h;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=a.util.getPointOnPath(T.path,0,T.segmentsInfo),S.x+=T.pathOffset.x,S.y+=T.pathOffset.y,this.textAlign){case"left":w=E?x-f:0;break;case"center":w=(x-f)/2;break;case"right":w=E?0:x-f;break}for(w+=this.pathStartOffset*(E?-1:1),s=E?g.length-1:0;E?s>=0:s<g.length;E?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 h=c+f.kernedWidth/2,g=this.path,m=a.util.getPointOnPath(g.path,h,g.segmentsInfo);f.renderLeft=m.x-s.x,f.renderTop=m.y-s.y,f.angle=m.angle+(this.pathSide==="right"?Math.PI:0)},_getGraphemeBox:function(c,f,s,h,g){var m=this.getCompleteStyleDeclaration(f,s),y=h?this.getCompleteStyleDeclaration(f,s-1):{},b=this._measureChar(c,m,h,y),_=b.kernedWidth,w=b.width,S;this.charSpacing!==0&&(S=this._getWidthOfCharSpacing(),w+=S,_+=S);var x={width:w,left:0,height:m.fontSize,kernedWidth:_,deltaY:m.deltaY};if(s>0&&!g){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),h=1,g=f.length;h<g;h++)s=Math.max(this.getHeightOfChar(c,h),s);return this.__lineHeights[c]=s*this.lineHeight*this._fontSizeMult},calcTextHeight:function(){for(var c,f=0,s=0,h=this._textLines.length;s<h;s++)c=this.getHeightOfLine(s),f+=s===h-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,h=this._getLeftOffset(),g=this._getTopOffset(),m=0,y=this._textLines.length;m<y;m++){var b=this.getHeightOfLine(m),_=b/this.lineHeight,w=this._getLineLeftOffset(m);this._renderTextLine(f,c,this._textLines[m],h+w,g+s+_,m),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,h,g,m){var y=this.getHeightOfLine(m),b=this.textAlign.indexOf("justify")!==-1,_,w,S="",x,T=0,E,I=this.path,D=!b&&this.charSpacing===0&&this.isEmptyStyles(m)&&!I,N=this.direction==="ltr",L=this.direction==="ltr"?1:-1,F,O=f.canvas.getAttribute("dir");if(f.save(),O!==this.direction&&(f.canvas.setAttribute("dir",N?"ltr":"rtl"),f.direction=N?"ltr":"rtl",f.textAlign=N?"left":"right"),g-=y*this._fontSizeFraction/this.lineHeight,D){this._renderChar(c,f,m,0,s.join(""),h,g,y),f.restore();return}for(var V=0,ne=s.length-1;V<=ne;V++)E=V===ne||this.charSpacing||I,S+=s[V],x=this.__charBounds[m][V],T===0?(h+=L*(x.kernedWidth-x.width),T+=x.width):T+=x.kernedWidth,b&&!E&&this._reSpaceAndTab.test(s[V])&&(E=!0),E||(_=_||this.getCompleteStyleDeclaration(m,V),w=this.getCompleteStyleDeclaration(m,V+1),E=a.util.hasStyleChanged(_,w,!1)),E&&(I?(f.save(),f.translate(x.renderLeft,x.renderTop),f.rotate(x.angle),this._renderChar(c,f,m,V,S,-T/2,0,y),f.restore()):(F=h,this._renderChar(c,f,m,V,S,F,g,y)),S="",_=w,h+=L*T,T=0);f.restore()},_applyPatternGradientTransformText:function(c){var f=a.util.createCanvasElement(),s,h=this.width+this.strokeWidth,g=this.height+this.strokeWidth;return f.width=h,f.height=g,s=f.getContext("2d"),s.beginPath(),s.moveTo(0,0),s.lineTo(h,0),s.lineTo(h,g),s.lineTo(0,g),s.closePath(),s.translate(h/2,g/2),s.fillStyle=c.toLive(s),this._applyPatternGradientTransform(s,c),s.fill(),s.createPattern(f,"no-repeat")},handleFiller:function(c,f,s){var h,g;return s.toLive?s.gradientUnits==="percentage"||s.gradientTransform||s.patternTransform?(h=-this.width/2,g=-this.height/2,c.translate(h,g),c[f]=this._applyPatternGradientTransformText(s),{offsetX:h,offsetY:g}):(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,h,g,m,y){var b=this._getStyleDeclaration(s,h),_=this.getCompleteStyleDeclaration(s,h),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(g,m-x.offsetX,y-x.offsetY),S&&f.strokeText(g,m-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 h=this.get2DCursorLocation(c,!0),g=this.getValueOfPropertyAt(h.lineIndex,h.charIndex,"fontSize"),m=this.getValueOfPropertyAt(h.lineIndex,h.charIndex,"deltaY"),y={fontSize:g*s.size,deltaY:m+g*s.baseline};return this.setSelectionStyles(y,c,f),this},_getLineLeftOffset:function(c){var f=this.getLineWidth(c),s=this.width-f,h=this.textAlign,g=this.direction,y,m=0,y=this.isEndOfWrapping(c);return h==="justify"||h==="justify-center"&&!y||h==="justify-right"&&!y||h==="justify-left"&&!y?0:(h==="center"&&(m=s/2),h==="right"&&(m=s),h==="justify-center"&&(m=s/2),h==="justify-right"&&(m=s),g==="rtl"&&(m-=s),m)},_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 h=this._getStyleDeclaration(c,f);return h&&typeof h[s]<"u"?h[s]:this[s]},_renderTextDecoration:function(c,f){if(!(!this[f]&&!this.styleHas(f))){for(var s,h,g,m,y,b,_,w,S=this._getLeftOffset(),x=this._getTopOffset(),T,E,I,D,N,L,F,O,V=this.path,ne=this._getWidthOfCharSpacing(),J=this.offsets[f],le=0,M=this._textLines.length;le<M;le++){if(s=this.getHeightOfLine(le),!this[f]&&!this.styleHas(f,le)){x+=s;continue}_=this._textLines[le],L=s/this.lineHeight,m=this._getLineLeftOffset(le),E=0,I=0,w=this.getValueOfPropertyAt(le,0,f),O=this.getValueOfPropertyAt(le,0,"fill"),T=x+L*(1-this._fontSizeFraction),h=this.getHeightOfChar(le,0),y=this.getValueOfPropertyAt(le,0,"deltaY");for(var U=0,R=_.length;U<R;U++)if(D=this.__charBounds[le][U],N=this.getValueOfPropertyAt(le,U,f),F=this.getValueOfPropertyAt(le,U,"fill"),g=this.getHeightOfChar(le,U),b=this.getValueOfPropertyAt(le,U,"deltaY"),V&&N&&F)c.save(),c.fillStyle=O,c.translate(D.renderLeft,D.renderTop),c.rotate(D.angle),c.fillRect(-D.kernedWidth/2,J*g+b,D.kernedWidth,this.fontSize/15),c.restore();else if((N!==w||F!==O||g!==h||b!==y)&&I>0){var P=S+m+E;this.direction==="rtl"&&(P=this.width-P-I),w&&O&&(c.fillStyle=O,c.fillRect(P,T+J*h+y,I,this.fontSize/15)),E=D.left,I=D.width,w=N,O=F,h=g,y=b}else I+=D.kernedWidth;var P=S+m+E;this.direction==="rtl"&&(P=this.width-P-I),c.fillStyle=F,N&&F&&c.fillRect(P,T+J*h+y,I-ne,this.fontSize/15),x+=s}this._removeShadow(c)}},_getFontDeclaration:function(c,f){var s=c||this,h=this.fontFamily,g=a.Text.genericFonts.indexOf(h.toLowerCase())>-1,m=h===void 0||h.indexOf("'")>-1||h.indexOf(",")>-1||h.indexOf('"')>-1||g?s.fontFamily:'"'+s.fontFamily+'"';return[a.isLikelyNode?s.fontWeight:s.fontStyle,a.isLikelyNode?s.fontStyle:s.fontWeight,f?this.CACHE_FONT_SIZE+"px":s.fontSize+"px",m].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),h=[`
`],g=[],m=0;m<f.length;m++)s[m]=a.util.string.graphemeSplit(f[m]),g=g.concat(s[m],h);return g.pop(),{_unwrappedLines:s,lines:f,graphemeText:g,graphemeLines:s}},toObject:function(c){var f=d.concat(c),s=this.callSuper("toObject",f);return s.styles=a.util.stylesToArray(this.styles,this.text),s.path&&(s.path=this.path.toObject()),s},set:function(c,f){this.callSuper("set",c,f);var s=!1,h=!1;if(typeof c=="object")for(var g in c)g==="path"&&this.setPathInfo(),s=s||this._dimensionAffectingProps.indexOf(g)!==-1,h=h||g==="path";else s=this._dimensionAffectingProps.indexOf(c)!==-1,h=c==="path";return h&&this.setPathInfo(),s&&(this.initDimensions(),this.setCoords()),this},complexity:function(){return 1}}),a.Text.ATTRIBUTE_NAMES=a.SHARED_ATTRIBUTES.concat("x y dx dy font-family font-style font-weight font-size letter-spacing text-decoration text-anchor".split(" ")),a.Text.DEFAULT_SVG_FONT_SIZE=16,a.Text.fromElement=function(c,f,s){if(!c)return f(null);var h=a.parseAttributes(c,a.Text.ATTRIBUTE_NAMES),g=h.textAnchor||"left";if(s=a.util.object.extend(s?u(s):{},h),s.top=s.top||0,s.left=s.left||0,h.textDecoration){var m=h.textDecoration;m.indexOf("underline")!==-1&&(s.underline=!0),m.indexOf("overline")!==-1&&(s.overline=!0),m.indexOf("line-through")!==-1&&(s.linethrough=!0),delete s.textDecoration}"dx"in h&&(s.left+=h.dx),"dy"in h&&(s.top+=h.dy),"fontSize"in s||(s.fontSize=a.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 a.Text(y,s),w=_.getScaledHeight()/_.height,S=(_.height+_.strokeWidth)*_.lineHeight-_.height,x=S*w,T=_.getScaledHeight()+x,E=0;g==="center"&&(E=_.getScaledWidth()/2),g==="right"&&(E=_.getScaledWidth()),_.set({left:_.left-E,top:_.top-(T-_.fontSize*(.07+_._fontSizeFraction))/_.lineHeight,strokeWidth:typeof b<"u"?b:1}),f(_)},a.Text.fromObject=function(c,f){var s=u(c),h=c.path;return delete s.path,a.Object._fromObject("Text",s,function(g){g.styles=a.util.stylesFromArray(c.styles,c.text),h?a.Object._fromObject("Path",h,function(m){g.set("path",m),f(g)},"path"):f(g)},"text")},a.Text.genericFonts=["sans-serif","serif","cursive","fantasy","monospace"],a.util.createAccessors&&a.util.createAccessors(a.Text)}(e),function(){t.util.object.extend(t.Text.prototype,{isEmptyStyles:function(o){if(!this.styles||typeof o<"u"&&!this.styles[o])return!0;var a=typeof o>"u"?this.styles:{line:this.styles[o]};for(var u in a)for(var d in a[u])for(var c in a[u][d])return!1;return!0},styleHas:function(o,a){if(!this.styles||!o||o===""||typeof a<"u"&&!this.styles[a])return!1;var u=typeof a>"u"?this.styles:{0:this.styles[a]};for(var d in u)for(var c in u[d])if(typeof u[d][c][o]<"u")return!0;return!1},cleanStyle:function(o){if(!this.styles||!o||o==="")return!1;var a=this.styles,u=0,d,c,f=!0,s=0,h;for(var g in a){d=0;for(var m in a[g]){var h=a[g][m],y=h.hasOwnProperty(o);u++,y?(c?h[o]!==c&&(f=!1):c=h[o],h[o]===this[o]&&delete h[o]):f=!1,Object.keys(h).length!==0?d++:delete a[g][m]}d===0&&delete a[g]}for(var b=0;b<this._textLines.length;b++)s+=this._textLines[b].length;f&&u===s&&(this[o]=c,this.removeStyle(o))},removeStyle:function(o){if(!(!this.styles||!o||o==="")){var a=this.styles,u,d,c;for(d in a){u=a[d];for(c in u)delete u[c][o],Object.keys(u[c]).length===0&&delete u[c];Object.keys(u).length===0&&delete a[d]}}},_extendStyles:function(o,a){var u=this.get2DCursorLocation(o);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),a)},get2DCursorLocation:function(o,a){typeof o>"u"&&(o=this.selectionStart);for(var u=a?this._unwrappedTextLines:this._textLines,d=u.length,c=0;c<d;c++){if(o<=u[c].length)return{lineIndex:c,charIndex:o};o-=u[c].length+this.missingNewlineOffset(c)}return{lineIndex:c-1,charIndex:u[c-1].length<o?u[c-1].length:o}},getSelectionStyles:function(o,a,u){typeof o>"u"&&(o=this.selectionStart||0),typeof a>"u"&&(a=this.selectionEnd||o);for(var d=[],c=o;c<a;c++)d.push(this.getStyleAtPosition(c,u));return d},getStyleAtPosition:function(o,a){var u=this.get2DCursorLocation(o),d=a?this.getCompleteStyleDeclaration(u.lineIndex,u.charIndex):this._getStyleDeclaration(u.lineIndex,u.charIndex);return d||{}},setSelectionStyles:function(o,a,u){typeof a>"u"&&(a=this.selectionStart||0),typeof u>"u"&&(u=this.selectionEnd||a);for(var d=a;d<u;d++)this._extendStyles(d,o);return this._forceClearCache=!0,this},_getStyleDeclaration:function(o,a){var u=this.styles&&this.styles[o];return u?u[a]:null},getCompleteStyleDeclaration:function(o,a){for(var u=this._getStyleDeclaration(o,a)||{},d={},c,f=0;f<this._styleProperties.length;f++)c=this._styleProperties[f],d[c]=typeof u[c]>"u"?this[c]:u[c];return d},_setStyleDeclaration:function(o,a,u){this.styles[o][a]=u},_deleteStyleDeclaration:function(o,a){delete this.styles[o][a]},_getLineStyle:function(o){return!!this.styles[o]},_setLineStyle:function(o){this.styles[o]={}},_deleteLineStyle:function(o){delete this.styles[o]}})}(),function(){function o(a){a.textDecoration&&(a.textDecoration.indexOf("underline")>-1&&(a.underline=!0),a.textDecoration.indexOf("line-through")>-1&&(a.linethrough=!0),a.textDecoration.indexOf("overline")>-1&&(a.overline=!0),delete a.textDecoration)}t.IText=t.util.createClass(t.Text,t.Observable,{type:"i-text",selectionStart:0,selectionEnd:0,selectionColor:"rgba(17,119,255,0.3)",isEditing:!1,editable:!0,editingBorderColor:"rgba(102,153,255,0.25)",cursorWidth:2,cursorColor:"",cursorDelay:1e3,cursorDuration:600,caching:!0,hiddenTextareaContainer:null,_reSpace:/\s|\n/,_currentCursorOpacity:0,_selectionDirection:null,_abortCursorAnimation:!1,__widthOfSpace:[],inCompositionMode:!1,initialize:function(a,u){this.callSuper("initialize",a,u),this.initBehavior()},setSelectionStart:function(a){a=Math.max(a,0),this._updateAndFire("selectionStart",a)},setSelectionEnd:function(a){a=Math.min(a,this.text.length),this._updateAndFire("selectionEnd",a)},_updateAndFire:function(a,u){this[a]!==u&&(this._fireSelectionChanged(),this[a]=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(a){this.clearContextTop(),this.callSuper("render",a),this.cursorOffsetCache={},this.renderCursorOrSelection()},_render:function(a){this.callSuper("_render",a)},clearContextTop:function(a){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var u=this.canvas.contextTop,d=this.canvas.viewportTransform;u.save(),u.transform(d[0],d[1],d[2],d[3],d[4],d[5]),this.transform(u),this._clearTextArea(u),a||u.restore()}},renderCursorOrSelection:function(){if(!(!this.isEditing||!this.canvas||!this.canvas.contextTop)){var a=this._getCursorBoundaries(),u=this.canvas.contextTop;this.clearContextTop(!0),this.selectionStart===this.selectionEnd?this.renderCursor(a,u):this.renderSelection(a,u),u.restore()}},_clearTextArea:function(a){var u=this.width+4,d=this.height+4;a.clearRect(-u/2,-d/2,u,d)},_getCursorBoundaries:function(a){typeof a>"u"&&(a=this.selectionStart);var u=this._getLeftOffset(),d=this._getTopOffset(),c=this._getCursorBoundariesOffsets(a);return{left:u,top:d,leftOffset:c.left,topOffset:c.top}},_getCursorBoundariesOffsets:function(a){if(this.cursorOffsetCache&&"top"in this.cursorOffsetCache)return this.cursorOffsetCache;var u,d,c,f=0,s=0,h,g=this.get2DCursorLocation(a);c=g.charIndex,d=g.lineIndex;for(var m=0;m<d;m++)f+=this.getHeightOfLine(m);u=this._getLineLeftOffset(d);var y=this.__charBounds[d][c];return y&&(s=y.left),this.charSpacing!==0&&c===this._textLines[d].length&&(s-=this._getWidthOfCharSpacing()),h={top:f,left:u+(s>0?s:0)},this.direction==="rtl"&&(h.left*=-1),this.cursorOffsetCache=h,this.cursorOffsetCache},renderCursor:function(a,u){var d=this.get2DCursorLocation(),c=d.lineIndex,f=d.charIndex>0?d.charIndex-1:0,s=this.getValueOfPropertyAt(c,f,"fontSize"),h=this.scaleX*this.canvas.getZoom(),g=this.cursorWidth/h,m=a.topOffset,y=this.getValueOfPropertyAt(c,f,"deltaY");m+=(1-this._fontSizeFraction)*this.getHeightOfLine(c)/this.lineHeight-s*(1-this._fontSizeFraction),this.inCompositionMode&&this.renderSelection(a,u),u.fillStyle=this.cursorColor||this.getValueOfPropertyAt(c,f,"fill"),u.globalAlpha=this.__isMousedown?1:this._currentCursorOpacity,u.fillRect(a.left+a.leftOffset-g/2,m+a.top+y,g,s)},renderSelection:function(a,u){for(var d=this.inCompositionMode?this.hiddenTextarea.selectionStart:this.selectionStart,c=this.inCompositionMode?this.hiddenTextarea.selectionEnd:this.selectionEnd,f=this.textAlign.indexOf("justify")!==-1,s=this.get2DCursorLocation(d),h=this.get2DCursorLocation(c),g=s.lineIndex,m=h.lineIndex,y=s.charIndex<0?0:s.charIndex,b=h.charIndex<0?0:h.charIndex,_=g;_<=m;_++){var w=this._getLineLeftOffset(_)||0,S=this.getHeightOfLine(_),x=0,T=0,E=0;if(_===g&&(T=this.__charBounds[g][y].left),_>=g&&_<m)E=f&&!this.isEndOfWrapping(_)?this.width:this.getLineWidth(_)||5;else if(_===m)if(b===0)E=this.__charBounds[m][b].left;else{var I=this._getWidthOfCharSpacing();E=this.__charBounds[m][b-1].left+this.__charBounds[m][b-1].width-I}x=S,(this.lineHeight<1||_===m&&this.lineHeight>1)&&(S/=this.lineHeight);var D=a.left+w+T,N=E-T,L=S,F=0;this.inCompositionMode?(u.fillStyle=this.compositionColor||"black",L=1,F=S):u.fillStyle=this.selectionColor,this.direction==="rtl"&&(D=this.width-D-N),u.fillRect(D,a.top+a.topOffset+F,N,L),a.topOffset+=x}},getCurrentCharFontSize:function(){var a=this._getCurrentCharIndex();return this.getValueOfPropertyAt(a.l,a.c,"fontSize")},getCurrentCharColor:function(){var a=this._getCurrentCharIndex();return this.getValueOfPropertyAt(a.l,a.c,"fill")},_getCurrentCharIndex:function(){var a=this.get2DCursorLocation(this.selectionStart,!0),u=a.charIndex>0?a.charIndex-1:0;return{l:a.lineIndex,c:u}}}),t.IText.fromObject=function(a,u){var d=t.util.stylesFromArray(a.styles,a.text),c=Object.assign({},a,{styles:d});if(o(c),c.styles)for(var f in c.styles)for(var s in c.styles[f])o(c.styles[f][s]);t.Object._fromObject("IText",c,u,"text")}}(),function(){var o=t.util.object.clone;t.util.object.extend(t.IText.prototype,{initBehavior:function(){this.initAddedHandler(),this.initRemovedHandler(),this.initCursorSelectionHandlers(),this.initDoubleClickSimulation(),this.mouseMoveHandler=this.mouseMoveHandler.bind(this)},onDeselect:function(){this.isEditing&&this.exitEditing(),this.selected=!1},initAddedHandler:function(){var a=this;this.on("added",function(){var u=a.canvas;u&&(u._hasITextHandlers||(u._hasITextHandlers=!0,a._initCanvasHandlers(u)),u._iTextInstances=u._iTextInstances||[],u._iTextInstances.push(a))})},initRemovedHandler:function(){var a=this;this.on("removed",function(){var u=a.canvas;u&&(u._iTextInstances=u._iTextInstances||[],t.util.removeFromArray(u._iTextInstances,a),u._iTextInstances.length===0&&(u._hasITextHandlers=!1,a._removeCanvasHandlers(u)))})},_initCanvasHandlers:function(a){a._mouseUpITextHandler=function(){a._iTextInstances&&a._iTextInstances.forEach(function(u){u.__isMousedown=!1})},a.on("mouse:up",a._mouseUpITextHandler)},_removeCanvasHandlers:function(a){a.off("mouse:up",a._mouseUpITextHandler)},_tick:function(){this._currentTickState=this._animateCursor(this,1,this.cursorDuration,"_onTickComplete")},_animateCursor:function(a,u,d,c){var f;return f={isAborted:!1,abort:function(){this.isAborted=!0}},a.animate("_currentCursorOpacity",u,{duration:d,onComplete:function(){f.isAborted||a[c]()},onChange:function(){a.canvas&&a.selectionStart===a.selectionEnd&&a.renderCursorOrSelection()},abort:function(){return f.isAborted}}),f},_onTickComplete:function(){var a=this;this._cursorTimeout1&&clearTimeout(this._cursorTimeout1),this._cursorTimeout1=setTimeout(function(){a._currentTickCompleteState=a._animateCursor(a,0,this.cursorDuration/2,"_tick")},100)},initDelayedCursor:function(a){var u=this,d=a?0:this.cursorDelay;this.abortCursorAnimation(),this._currentCursorOpacity=1,this._cursorTimeout2=setTimeout(function(){u._tick()},d)},abortCursorAnimation:function(){var a=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,a&&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(a){var u=0,d=a-1;if(this._reSpace.test(this._text[d]))for(;this._reSpace.test(this._text[d]);)u++,d--;for(;/\S/.test(this._text[d])&&d>-1;)u++,d--;return a-u},findWordBoundaryRight:function(a){var u=0,d=a;if(this._reSpace.test(this._text[d]))for(;this._reSpace.test(this._text[d]);)u++,d++;for(;/\S/.test(this._text[d])&&d<this._text.length;)u++,d++;return a+u},findLineBoundaryLeft:function(a){for(var u=0,d=a-1;!/\n/.test(this._text[d])&&d>-1;)u++,d--;return a-u},findLineBoundaryRight:function(a){for(var u=0,d=a;!/\n/.test(this._text[d])&&d<this._text.length;)u++,d++;return a+u},searchWordBoundary:function(a,u){for(var d=this._text,c=this._reSpace.test(d[a])?a-1:a,f=d[c],s=t.reNonWord;!s.test(f)&&c>0&&c<d.length;)c+=u,f=d[c];return s.test(f)&&(c+=u===1?0:1),c},selectWord:function(a){a=a||this.selectionStart;var u=this.searchWordBoundary(a,-1),d=this.searchWordBoundary(a,1);this.selectionStart=u,this.selectionEnd=d,this._fireSelectionChanged(),this._updateTextarea(),this.renderCursorOrSelection()},selectLine:function(a){a=a||this.selectionStart;var u=this.findLineBoundaryLeft(a),d=this.findLineBoundaryRight(a);return this.selectionStart=u,this.selectionEnd=d,this._fireSelectionChanged(),this._updateTextarea(),this},enterEditing:function(a){if(!(this.isEditing||!this.editable))return this.canvas&&(this.canvas.calcOffset(),this.exitEditingOnOthers(this.canvas)),this.isEditing=!0,this.initHiddenTextarea(a),this.hiddenTextarea.focus(),this.hiddenTextarea.value=this.text,this._updateTextarea(),this._saveEditingProps(),this._setEditingProps(),this._textBeforeEdit=this.text,this._tick(),this.fire("editing:entered"),this._fireSelectionChanged(),this.canvas?(this.canvas.fire("text:editing:entered",{target:this}),this.initMouseMoveHandler(),this.canvas.requestRenderAll(),this):this},exitEditingOnOthers:function(a){a._iTextInstances&&a._iTextInstances.forEach(function(u){u.selected=!1,u.isEditing&&u.exitEditing()})},initMouseMoveHandler:function(){this.canvas.on("mouse:move",this.mouseMoveHandler)},mouseMoveHandler:function(a){if(!(!this.__isMousedown||!this.isEditing)){document.activeElement!==this.hiddenTextarea&&this.hiddenTextarea.focus();var u=this.getSelectionStartFromPointer(a.e),d=this.selectionStart,c=this.selectionEnd;(u!==this.__selectionStartOnMouseDown||d===c)&&(d===u||c===u)||(u>this.__selectionStartOnMouseDown?(this.selectionStart=this.__selectionStartOnMouseDown,this.selectionEnd=u):(this.selectionStart=u,this.selectionEnd=this.__selectionStartOnMouseDown),(this.selectionStart!==d||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(a,u,d){var c=d.slice(0,a),f=t.util.string.graphemeSplit(c).length;if(a===u)return{selectionStart:f,selectionEnd:f};var s=d.slice(a,u),h=t.util.string.graphemeSplit(s).length;return{selectionStart:f,selectionEnd:f+h}},fromGraphemeToStringSelection:function(a,u,d){var c=d.slice(0,a),f=c.join("").length;if(a===u)return{selectionStart:f,selectionEnd:f};var s=d.slice(a,u),h=s.join("").length;return{selectionStart:f,selectionEnd:f+h}},_updateTextarea:function(){if(this.cursorOffsetCache={},!!this.hiddenTextarea){if(!this.inCompositionMode){var a=this.fromGraphemeToStringSelection(this.selectionStart,this.selectionEnd,this._text);this.hiddenTextarea.selectionStart=a.selectionStart,this.hiddenTextarea.selectionEnd=a.selectionEnd}this.updateTextareaPosition()}},updateFromTextArea:function(){if(!!this.hiddenTextarea){this.cursorOffsetCache={},this.text=this.hiddenTextarea.value,this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords());var a=this.fromStringToGraphemeSelection(this.hiddenTextarea.selectionStart,this.hiddenTextarea.selectionEnd,this.hiddenTextarea.value);this.selectionEnd=this.selectionStart=a.selectionEnd,this.inCompositionMode||(this.selectionStart=a.selectionStart),this.updateTextareaPosition()}},updateTextareaPosition:function(){if(this.selectionStart===this.selectionEnd){var a=this._calcTextareaPosition();this.hiddenTextarea.style.left=a.left,this.hiddenTextarea.style.top=a.top}},_calcTextareaPosition:function(){if(!this.canvas)return{x:1,y:1};var a=this.inCompositionMode?this.compositionStart:this.selectionStart,u=this._getCursorBoundaries(a),d=this.get2DCursorLocation(a),c=d.lineIndex,f=d.charIndex,s=this.getValueOfPropertyAt(c,f,"fontSize")*this.lineHeight,h=u.leftOffset,g=this.calcTransformMatrix(),m={x:u.left+h,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/_,E=b.clientHeight/w;return m=t.util.transformPoint(m,g),m=t.util.transformPoint(m,this.canvas.viewportTransform),m.x*=T,m.y*=E,m.x<0&&(m.x=0),m.x>S&&(m.x=S),m.y<0&&(m.y=0),m.y>x&&(m.y=x),m.x+=this.canvas._offset.left,m.y+=this.canvas._offset.top,{left:m.x+"px",top:m.y+"px",fontSize:s+"px",charHeight:s}},_saveEditingProps:function(){this._savedProps={hasControls:this.hasControls,borderColor:this.borderColor,lockMovementX:this.lockMovementX,lockMovementY:this.lockMovementY,hoverCursor:this.hoverCursor,selectable:this.selectable,defaultCursor:this.canvas&&this.canvas.defaultCursor,moveCursor:this.canvas&&this.canvas.moveCursor}},_restoreEditingProps:function(){!this._savedProps||(this.hoverCursor=this._savedProps.hoverCursor,this.hasControls=this._savedProps.hasControls,this.borderColor=this._savedProps.borderColor,this.selectable=this._savedProps.selectable,this.lockMovementX=this._savedProps.lockMovementX,this.lockMovementY=this._savedProps.lockMovementY,this.canvas&&(this.canvas.defaultCursor=this._savedProps.defaultCursor,this.canvas.moveCursor=this._savedProps.moveCursor))},exitEditing:function(){var a=this._textBeforeEdit!==this.text,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"),a&&this.fire("modified"),this.canvas&&(this.canvas.off("mouse:move",this.mouseMoveHandler),this.canvas.fire("text:editing:exited",{target:this}),a&&this.canvas.fire("object:modified",{target:this})),this},_removeExtraneousStyles:function(){for(var a in this.styles)this._textLines[a]||delete this.styles[a]},removeStyleFromTo:function(a,u){var d=this.get2DCursorLocation(a,!0),c=this.get2DCursorLocation(u,!0),f=d.lineIndex,s=d.charIndex,h=c.lineIndex,g=c.charIndex,m,y;if(f!==h){if(this.styles[f])for(m=s;m<this._unwrappedTextLines[f].length;m++)delete this.styles[f][m];if(this.styles[h])for(m=g;m<this._unwrappedTextLines[h].length;m++)y=this.styles[h][m],y&&(this.styles[f]||(this.styles[f]={}),this.styles[f][s+m-g]=y);for(m=f+1;m<=h;m++)delete this.styles[m];this.shiftLineStyles(h,f-h)}else if(this.styles[f]){y=this.styles[f];var b=g-s,_,w;for(m=s;m<g;m++)delete y[m];for(w in this.styles[f])_=parseInt(w,10),_>=g&&(y[_-b]=y[w],delete y[w])}},shiftLineStyles:function(a,u){var d=o(this.styles);for(var c in this.styles){var f=parseInt(c,10);f>a&&(this.styles[f+u]=d[f],d[f-u]||delete this.styles[f])}},restartCursorIfNeeded:function(){(!this._currentTickState||this._currentTickState.isAborted||!this._currentTickCompleteState||this._currentTickCompleteState.isAborted)&&this.initDelayedCursor()},insertNewlineStyleObject:function(a,u,d,c){var f,s={},h=!1,g=this._unwrappedTextLines[a].length===u;d||(d=1),this.shiftLineStyles(a,d),this.styles[a]&&(f=this.styles[a][u===0?u:u-1]);for(var m in this.styles[a]){var y=parseInt(m,10);y>=u&&(h=!0,s[y-u]=this.styles[a][m],g&&u===0||delete this.styles[a][m])}var b=!1;for(h&&!g&&(this.styles[a+d]=s,b=!0),b&&d--;d>0;)c&&c[d-1]?this.styles[a+d]={0:o(c[d-1])}:f?this.styles[a+d]={0:o(f)}:delete this.styles[a+d],d--;this._forceClearCache=!0},insertCharStyleObject:function(a,u,d,c){this.styles||(this.styles={});var f=this.styles[a],s=f?o(f):{};d||(d=1);for(var h in s){var g=parseInt(h,10);g>=u&&(f[g+d]=s[g],s[g-d]||delete f[g])}if(this._forceClearCache=!0,c){for(;d--;)!Object.keys(c[d]).length||(this.styles[a]||(this.styles[a]={}),this.styles[a][u+d]=o(c[d]));return}if(!!f)for(var m=f[u?u-1:1];m&&d--;)this.styles[a][u+d]=o(m)},insertNewStyleBlock:function(a,u,d){for(var c=this.get2DCursorLocation(u,!0),f=[0],s=0,h=0;h<a.length;h++)a[h]===`
`?(s++,f[s]=0):f[s]++;f[0]>0&&(this.insertCharStyleObject(c.lineIndex,c.charIndex,f[0],d),d=d&&d.slice(f[0]+1)),s&&this.insertNewlineStyleObject(c.lineIndex,c.charIndex+f[0],s);for(var h=1;h<s;h++)f[h]>0?this.insertCharStyleObject(c.lineIndex+h,0,f[h],d):d&&this.styles[c.lineIndex+h]&&d[0]&&(this.styles[c.lineIndex+h][0]=d[0]),d=d&&d.slice(f[h]+1);f[h]>0&&this.insertCharStyleObject(c.lineIndex+h,0,f[h],d)},setSelectionStartEndWithShift:function(a,u,d){d<=a?(u===a?this._selectionDirection="left":this._selectionDirection==="right"&&(this._selectionDirection="left",this.selectionEnd=a),this.selectionStart=d):d>a&&d<u?this._selectionDirection==="right"?this.selectionEnd=d:this.selectionStart=d:(u===a?this._selectionDirection="right":this._selectionDirection==="left"&&(this._selectionDirection="right",this.selectionStart=u),this.selectionEnd=d)},setSelectionInBoundaries:function(){var a=this.text.length;this.selectionStart>a?this.selectionStart=a:this.selectionStart<0&&(this.selectionStart=0),this.selectionEnd>a?this.selectionEnd=a:this.selectionEnd<0&&(this.selectionEnd=0)}})}(),t.util.object.extend(t.IText.prototype,{initDoubleClickSimulation:function(){this.__lastClickTime=+new Date,this.__lastLastClickTime=+new Date,this.__lastPointer={},this.on("mousedown",this.onMouseDown)},onMouseDown:function(o){if(!!this.canvas){this.__newClickTime=+new Date;var a=o.pointer;this.isTripleClick(a)&&(this.fire("tripleclick",o),this._stopEvent(o.e)),this.__lastLastClickTime=this.__lastClickTime,this.__lastClickTime=this.__newClickTime,this.__lastPointer=a,this.__lastIsEditing=this.isEditing,this.__lastSelected=this.selected}},isTripleClick:function(o){return this.__newClickTime-this.__lastClickTime<500&&this.__lastClickTime-this.__lastLastClickTime<500&&this.__lastPointer.x===o.x&&this.__lastPointer.y===o.y},_stopEvent:function(o){o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation()},initCursorSelectionHandlers:function(){this.initMousedownHandler(),this.initMouseupHandler(),this.initClicks()},doubleClickHandler:function(o){!this.isEditing||this.selectWord(this.getSelectionStartFromPointer(o.e))},tripleClickHandler:function(o){!this.isEditing||this.selectLine(this.getSelectionStartFromPointer(o.e))},initClicks:function(){this.on("mousedblclick",this.doubleClickHandler),this.on("tripleclick",this.tripleClickHandler)},_mouseDownHandler:function(o){!this.canvas||!this.editable||o.e.button&&o.e.button!==1||(this.__isMousedown=!0,this.selected&&(this.inCompositionMode=!1,this.setCursorByClick(o.e)),this.isEditing&&(this.__selectionStartOnMouseDown=this.selectionStart,this.selectionStart===this.selectionEnd&&this.abortCursorAnimation(),this.renderCursorOrSelection()))},_mouseDownHandlerBefore:function(o){!this.canvas||!this.editable||o.e.button&&o.e.button!==1||(this.selected=this===this.canvas._activeObject)},initMousedownHandler:function(){this.on("mousedown",this._mouseDownHandler),this.on("mousedown:before",this._mouseDownHandlerBefore)},initMouseupHandler:function(){this.on("mouseup",this.mouseUpHandler)},mouseUpHandler:function(o){if(this.__isMousedown=!1,!(!this.editable||this.group||o.transform&&o.transform.actionPerformed||o.e.button&&o.e.button!==1)){if(this.canvas){var a=this.canvas._activeObject;if(a&&a!==this)return}this.__lastSelected&&!this.__corner?(this.selected=!1,this.__lastSelected=!1,this.enterEditing(o.e),this.selectionStart===this.selectionEnd?this.initDelayedCursor(!0):this.renderCursorOrSelection()):this.selected=!0}},setCursorByClick:function(o){var a=this.getSelectionStartFromPointer(o),u=this.selectionStart,d=this.selectionEnd;o.shiftKey?this.setSelectionStartEndWithShift(u,d,a):(this.selectionStart=a,this.selectionEnd=a),this.isEditing&&(this._fireSelectionChanged(),this._updateTextarea())},getSelectionStartFromPointer:function(o){for(var a=this.getLocalPointer(o),u=0,d=0,c=0,f=0,s=0,h,g,m=0,y=this._textLines.length;m<y&&c<=a.y;m++)c+=this.getHeightOfLine(m)*this.scaleY,s=m,m>0&&(f+=this._textLines[m-1].length+this.missingNewlineOffset(m-1));h=this._getLineLeftOffset(s),d=h*this.scaleX,g=this._textLines[s],this.direction==="rtl"&&(a.x=this.width*this.scaleX-a.x+d);for(var b=0,_=g.length;b<_&&(u=d,d+=this.__charBounds[s][b].kernedWidth*this.scaleX,d<=a.x);b++)f++;return this._getNewSelectionStartFromOffset(a,u,d,f,_)},_getNewSelectionStartFromOffset:function(o,a,u,d,c){var f=o.x-a,s=u-o.x,h=s>f||s<0?0:1,g=d+h;return this.flipX&&(g=c-g),g>this._text.length&&(g=this._text.length),g}}),t.util.object.extend(t.IText.prototype,{initHiddenTextarea:function(){this.hiddenTextarea=t.document.createElement("textarea"),this.hiddenTextarea.setAttribute("autocapitalize","off"),this.hiddenTextarea.setAttribute("autocorrect","off"),this.hiddenTextarea.setAttribute("autocomplete","off"),this.hiddenTextarea.setAttribute("spellcheck","false"),this.hiddenTextarea.setAttribute("data-fabric-hiddentextarea",""),this.hiddenTextarea.setAttribute("wrap","off");var o=this._calcTextareaPosition();this.hiddenTextarea.style.cssText="position: absolute; top: "+o.top+"; left: "+o.left+"; z-index: -999; opacity: 0; width: 1px; height: 1px; font-size: 1px; padding\uFF70top: "+o.fontSize+";",this.hiddenTextareaContainer?this.hiddenTextareaContainer.appendChild(this.hiddenTextarea):t.document.body.appendChild(this.hiddenTextarea),t.util.addListener(this.hiddenTextarea,"keydown",this.onKeyDown.bind(this)),t.util.addListener(this.hiddenTextarea,"keyup",this.onKeyUp.bind(this)),t.util.addListener(this.hiddenTextarea,"input",this.onInput.bind(this)),t.util.addListener(this.hiddenTextarea,"copy",this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,"cut",this.copy.bind(this)),t.util.addListener(this.hiddenTextarea,"paste",this.paste.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionstart",this.onCompositionStart.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionupdate",this.onCompositionUpdate.bind(this)),t.util.addListener(this.hiddenTextarea,"compositionend",this.onCompositionEnd.bind(this)),!this._clickHandlerInitialized&&this.canvas&&(t.util.addListener(this.canvas.upperCanvasEl,"click",this.onClick.bind(this)),this._clickHandlerInitialized=!0)},keysMap:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorRight",36:"moveCursorLeft",37:"moveCursorLeft",38:"moveCursorUp",39:"moveCursorRight",40:"moveCursorDown"},keysMapRtl:{9:"exitEditing",27:"exitEditing",33:"moveCursorUp",34:"moveCursorDown",35:"moveCursorLeft",36:"moveCursorRight",37:"moveCursorRight",38:"moveCursorUp",39:"moveCursorLeft",40:"moveCursorDown"},ctrlKeysMapUp:{67:"copy",88:"cut"},ctrlKeysMapDown:{65:"selectAll"},onClick:function(){this.hiddenTextarea&&this.hiddenTextarea.focus()},onKeyDown:function(o){if(!!this.isEditing){var a=this.direction==="rtl"?this.keysMapRtl:this.keysMap;if(o.keyCode in a)this[a[o.keyCode]](o);else if(o.keyCode in this.ctrlKeysMapDown&&(o.ctrlKey||o.metaKey))this[this.ctrlKeysMapDown[o.keyCode]](o);else return;o.stopImmediatePropagation(),o.preventDefault(),o.keyCode>=33&&o.keyCode<=40?(this.inCompositionMode=!1,this.clearContextTop(),this.renderCursorOrSelection()):this.canvas&&this.canvas.requestRenderAll()}},onKeyUp:function(o){if(!this.isEditing||this._copyDone||this.inCompositionMode){this._copyDone=!1;return}if(o.keyCode in this.ctrlKeysMapUp&&(o.ctrlKey||o.metaKey))this[this.ctrlKeysMapUp[o.keyCode]](o);else return;o.stopImmediatePropagation(),o.preventDefault(),this.canvas&&this.canvas.requestRenderAll()},onInput:function(o){var a=this.fromPaste;if(this.fromPaste=!1,o&&o.stopPropagation(),!!this.isEditing){var u=this._splitTextIntoLines(this.hiddenTextarea.value).graphemeText,d=this._text.length,c=u.length,f,s,h=c-d,g=this.selectionStart,m=this.selectionEnd,y=g!==m,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=g>S.selectionStart;y?(f=this._text.slice(g,m),h+=m-g):c<d&&(x?f=this._text.slice(m+h,m):f=this._text.slice(g,g-h)),s=u.slice(S.selectionEnd-h,S.selectionEnd),f&&f.length&&(s.length&&(b=this.getSelectionStyles(g,g+1,!1),b=s.map(function(){return b[0]})),y?(_=g,w=m):x?(_=m-f.length,w=m):(_=m,w=m+f.length),this.removeStyleFromTo(_,w)),s.length&&(a&&s.join("")===t.copiedText&&!t.disableStyleCopyPaste&&(b=t.copiedTextStyle),this.insertNewStyleBlock(s,g,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(o){this.compositionStart=o.target.selectionStart,this.compositionEnd=o.target.selectionEnd,this.updateTextareaPosition()},copy:function(){this.selectionStart!==this.selectionEnd&&(t.copiedText=this.getSelectedText(),t.disableStyleCopyPaste?t.copiedTextStyle=null:t.copiedTextStyle=this.getSelectionStyles(this.selectionStart,this.selectionEnd,!0),this._copyDone=!0)},paste:function(){this.fromPaste=!0},_getClipboardData:function(o){return o&&o.clipboardData||t.window.clipboardData},_getWidthBeforeCursor:function(o,a){var u=this._getLineLeftOffset(o),d;return a>0&&(d=this.__charBounds[o][a-1],u+=d.left+d.width),u},getDownCursorOffset:function(o,a){var u=this._getSelectionForOffset(o,a),d=this.get2DCursorLocation(u),c=d.lineIndex;if(c===this._textLines.length-1||o.metaKey||o.keyCode===34)return this._text.length-u;var f=d.charIndex,s=this._getWidthBeforeCursor(c,f),h=this._getIndexOnLine(c+1,s),g=this._textLines[c].slice(f);return g.length+h+1+this.missingNewlineOffset(c)},_getSelectionForOffset:function(o,a){return o.shiftKey&&this.selectionStart!==this.selectionEnd&&a?this.selectionEnd:this.selectionStart},getUpCursorOffset:function(o,a){var u=this._getSelectionForOffset(o,a),d=this.get2DCursorLocation(u),c=d.lineIndex;if(c===0||o.metaKey||o.keyCode===33)return-u;var f=d.charIndex,s=this._getWidthBeforeCursor(c,f),h=this._getIndexOnLine(c-1,s),g=this._textLines[c].slice(0,f),m=this.missingNewlineOffset(c-1);return-this._textLines[c-1].length+h-g.length+(1-m)},_getIndexOnLine:function(o,a){for(var u=this._textLines[o],d=this._getLineLeftOffset(o),c=d,f=0,s,h,g=0,m=u.length;g<m;g++)if(s=this.__charBounds[o][g].width,c+=s,c>a){h=!0;var y=c-s,b=c,_=Math.abs(y-a),w=Math.abs(b-a);f=w<_?g:g-1;break}return h||(f=u.length-1),f},moveCursorDown:function(o){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorUpOrDown("Down",o)},moveCursorUp:function(o){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorUpOrDown("Up",o)},_moveCursorUpOrDown:function(o,a){var u="get"+o+"CursorOffset",d=this[u](a,this._selectionDirection==="right");a.shiftKey?this.moveCursorWithShift(d):this.moveCursorWithoutShift(d),d!==0&&(this.setSelectionInBoundaries(),this.abortCursorAnimation(),this._currentCursorOpacity=1,this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorWithShift:function(o){var a=this._selectionDirection==="left"?this.selectionStart+o:this.selectionEnd+o;return this.setSelectionStartEndWithShift(this.selectionStart,this.selectionEnd,a),o!==0},moveCursorWithoutShift:function(o){return o<0?(this.selectionStart+=o,this.selectionEnd=this.selectionStart):(this.selectionEnd+=o,this.selectionStart=this.selectionEnd),o!==0},moveCursorLeft:function(o){this.selectionStart===0&&this.selectionEnd===0||this._moveCursorLeftOrRight("Left",o)},_move:function(o,a,u){var d;if(o.altKey)d=this["findWordBoundary"+u](this[a]);else if(o.metaKey||o.keyCode===35||o.keyCode===36)d=this["findLineBoundary"+u](this[a]);else return this[a]+=u==="Left"?-1:1,!0;if(typeof d<"u"&&this[a]!==d)return this[a]=d,!0},_moveLeft:function(o,a){return this._move(o,a,"Left")},_moveRight:function(o,a){return this._move(o,a,"Right")},moveCursorLeftWithoutShift:function(o){var a=!0;return this._selectionDirection="left",this.selectionEnd===this.selectionStart&&this.selectionStart!==0&&(a=this._moveLeft(o,"selectionStart")),this.selectionEnd=this.selectionStart,a},moveCursorLeftWithShift:function(o){if(this._selectionDirection==="right"&&this.selectionStart!==this.selectionEnd)return this._moveLeft(o,"selectionEnd");if(this.selectionStart!==0)return this._selectionDirection="left",this._moveLeft(o,"selectionStart")},moveCursorRight:function(o){this.selectionStart>=this._text.length&&this.selectionEnd>=this._text.length||this._moveCursorLeftOrRight("Right",o)},_moveCursorLeftOrRight:function(o,a){var u="moveCursor"+o+"With";this._currentCursorOpacity=1,a.shiftKey?u+="Shift":u+="outShift",this[u](a)&&(this.abortCursorAnimation(),this.initDelayedCursor(),this._fireSelectionChanged(),this._updateTextarea())},moveCursorRightWithShift:function(o){if(this._selectionDirection==="left"&&this.selectionStart!==this.selectionEnd)return this._moveRight(o,"selectionStart");if(this.selectionEnd!==this._text.length)return this._selectionDirection="right",this._moveRight(o,"selectionEnd")},moveCursorRightWithoutShift:function(o){var a=!0;return this._selectionDirection="right",this.selectionStart===this.selectionEnd?(a=this._moveRight(o,"selectionStart"),this.selectionEnd=this.selectionStart):this.selectionStart=this.selectionEnd,a},removeChars:function(o,a){typeof a>"u"&&(a=o+1),this.removeStyleFromTo(o,a),this._text.splice(o,a-o),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()},insertChars:function(o,a,u,d){typeof d>"u"&&(d=u),d>u&&this.removeStyleFromTo(u,d);var c=t.util.string.graphemeSplit(o);this.insertNewStyleBlock(c,u,a),this._text=[].concat(this._text.slice(0,u),c,this._text.slice(d)),this.text=this._text.join(""),this.set("dirty",!0),this._shouldClearDimensionCache()&&(this.initDimensions(),this.setCoords()),this._removeExtraneousStyles()}}),function(){var o=t.util.toFixed,a=/ +/g;t.util.object.extend(t.Text.prototype,{_toSVG:function(){var u=this._getSVGLeftTopOffsets(),d=this._getSVGTextAndBg(u.textTop,u.textLeft);return this._wrapSVGTextAndBg(d)},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 d=!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(d),'"',this.addPaintOrder()," >",u.textSpans.join(""),`</text>
`]},_getSVGTextAndBg:function(u,d){var c=[],f=[],s=u,h;this._setSVGBg(f);for(var g=0,m=this._textLines.length;g<m;g++)h=this._getLineLeftOffset(g),(this.textBackgroundColor||this.styleHas("textBackgroundColor",g))&&this._setSVGTextLineBg(f,g,d+h,s),this._setSVGTextLineText(c,g,d+h,s),s+=this.getHeightOfLine(g);return{textSpans:c,textBgRects:f}},_createTextCharSpan:function(u,d,c,f){var s=u!==u.trim()||u.match(a),h=this.getSvgSpanStyles(d,s),g=h?'style="'+h+'"':"",m=d.deltaY,y="",b=t.Object.NUM_FRACTION_DIGITS;return m&&(y=' dy="'+o(m,b)+'" '),['<tspan x="',o(c,b),'" y="',o(f,b),'" ',y,g,">",t.util.string.escapeXml(u),"</tspan>"].join("")},_setSVGTextLineText:function(u,d,c,f){var s=this.getHeightOfLine(d),h=this.textAlign.indexOf("justify")!==-1,g,m,y="",b,_,w=0,S=this._textLines[d],x;f+=s*(1-this._fontSizeFraction)/this.lineHeight;for(var T=0,E=S.length-1;T<=E;T++)x=T===E||this.charSpacing,y+=S[T],b=this.__charBounds[d][T],w===0?(c+=b.kernedWidth-b.width,w+=b.width):w+=b.kernedWidth,h&&!x&&this._reSpaceAndTab.test(S[T])&&(x=!0),x||(g=g||this.getCompleteStyleDeclaration(d,T),m=this.getCompleteStyleDeclaration(d,T+1),x=t.util.hasStyleChanged(g,m,!0)),x&&(_=this._getStyleDeclaration(d,T)||{},u.push(this._createTextCharSpan(y,_,c,f)),y="",g=m,c+=w,w=0)},_pushTextBgRect:function(u,d,c,f,s,h){var g=t.Object.NUM_FRACTION_DIGITS;u.push(" <rect ",this._getFillAttributes(d),' x="',o(c,g),'" y="',o(f,g),'" width="',o(s,g),'" height="',o(h,g),`"></rect>
`)},_setSVGTextLineBg:function(u,d,c,f){for(var s=this._textLines[d],h=this.getHeightOfLine(d)/this.lineHeight,g=0,m=0,y,b,_=this.getValueOfPropertyAt(d,0,"textBackgroundColor"),w=0,S=s.length;w<S;w++)y=this.__charBounds[d][w],b=this.getValueOfPropertyAt(d,w,"textBackgroundColor"),b!==_?(_&&this._pushTextBgRect(u,_,c+m,f,g,h),m=y.left,g=y.width,_=b):g+=y.kernedWidth;b&&this._pushTextBgRect(u,b,c+m,f,g,h)},_getFillAttributes:function(u){var d=u&&typeof u=="string"?new t.Color(u):"";return!d||!d.getSource()||d.getAlpha()===1?'fill="'+u+'"':'opacity="'+d.getAlpha()+'" fill="'+d.setAlpha(1).toRgb()+'"'},_getSVGLineTopOffset:function(u){for(var d=0,c=0,f=0;f<u;f++)d+=this.getHeightOfLine(f);return c=this.getHeightOfLine(f),{lineTop:d,offset:(this._fontSizeMult-this._fontSizeFraction)*c/(this.lineHeight*this._fontSizeMult)}},getSvgStyles:function(u){var d=t.Object.prototype.getSvgStyles.call(this,u);return d+" white-space: pre;"}})}(),function(o){var a=o.fabric||(o.fabric={});a.Textbox=a.util.createClass(a.IText,a.Observable,{type:"textbox",minWidth:20,dynamicMinWidth:2,__cachedLines:null,lockScalingFlip:!0,noScaleCache:!1,_dimensionAffectingProps:a.Text.prototype._dimensionAffectingProps.concat("width"),_wordJoiners:/[ \t\r]/,splitByGrapheme:!1,initDimensions:function(){this.__skipDimension||(this.isEditing&&this.initDelayedCursor(),this.clearContextTop(),this._clearCache(),this.dynamicMinWidth=0,this._styleMap=this._generateStyleMap(this._splitText()),this.dynamicMinWidth>this.width&&this._set("width",this.dynamicMinWidth),this.textAlign.indexOf("justify")!==-1&&this.enlargeSpaces(),this.height=this.calcTextHeight(),this.saveState({propertySet:"_dimensionAffectingProps"}))},_generateStyleMap:function(u){for(var d=0,c=0,f=0,s={},h=0;h<u.graphemeLines.length;h++)u.graphemeText[f]===`
`&&h>0?(c=0,f++,d++):!this.splitByGrapheme&&this._reSpaceAndTab.test(u.graphemeText[f])&&h>0&&(c++,f++),s[h]={line:d,offset:c},f+=u.graphemeLines[h].length,c+=u.graphemeLines[h].length;return s},styleHas:function(u,d){if(this._styleMap&&!this.isWrapping){var c=this._styleMap[d];c&&(d=c.line)}return a.Text.prototype.styleHas.call(this,u,d)},isEmptyStyles:function(u){if(!this.styles)return!0;var d=0,c=u+1,f,s,h=!1,g=this._styleMap[u],m=this._styleMap[u+1];g&&(u=g.line,d=g.offset),m&&(c=m.line,h=c===u,f=m.offset),s=typeof u>"u"?this.styles:{line:this.styles[u]};for(var y in s)for(var b in s[y])if(b>=d&&(!h||b<f))for(var _ in s[y][b])return!1;return!0},_getStyleDeclaration:function(u,d){if(this._styleMap&&!this.isWrapping){var c=this._styleMap[u];if(!c)return null;u=c.line,d=c.offset+d}return this.callSuper("_getStyleDeclaration",u,d)},_setStyleDeclaration:function(u,d,c){var f=this._styleMap[u];u=f.line,d=f.offset+d,this.styles[u][d]=c},_deleteStyleDeclaration:function(u,d){var c=this._styleMap[u];u=c.line,d=c.offset+d,delete this.styles[u][d]},_getLineStyle:function(u){var d=this._styleMap[u];return!!this.styles[d.line]},_setLineStyle:function(u){var d=this._styleMap[u];this.styles[d.line]={}},_wrapText:function(u,d){var c=[],f;for(this.isWrapping=!0,f=0;f<u.length;f++)c=c.concat(this._wrapLine(u[f],f,d));return this.isWrapping=!1,c},_measureWord:function(u,d,c){var f=0,s,h=!0;c=c||0;for(var g=0,m=u.length;g<m;g++){var y=this._getGraphemeBox(u[g],d,g+c,s,h);f+=y.kernedWidth,s=u[g]}return f},_wrapLine:function(u,d,c,D){var s=0,h=this.splitByGrapheme,g=[],m=[],y=h?a.util.string.graphemeSplit(u):u.split(this._wordJoiners),b="",_=0,w=h?"":" ",S=0,x=0,T=0,E=!0,I=this._getWidthOfCharSpacing(),D=D||0;y.length===0&&y.push([]),c-=D;for(var N=0;N<y.length;N++)b=h?y[N]:a.util.string.graphemeSplit(y[N]),S=this._measureWord(b,d,_),_+=b.length,s+=x+S-I,s>c&&!E?(g.push(m),m=[],s=S,E=!0):s+=I,!E&&!h&&m.push(w),m=m.concat(b),x=h?0:this._measureWord([w],d,_),_++,E=!1,S>T&&(T=S);return N&&g.push(m),T+D>this.dynamicMinWidth&&(this.dynamicMinWidth=T-I+D),g},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 d=a.Text.prototype._splitTextIntoLines.call(this,u),c=this._wrapText(d.lines,this.width),f=new Array(c.length),s=0;s<c.length;s++)f[s]=c[s].join("");return d.lines=f,d.graphemeLines=c,d},getMinWidth:function(){return Math.max(this.minWidth,this.dynamicMinWidth)},_removeExtraneousStyles:function(){var u={};for(var d in this._styleMap)this._textLines[d]&&(u[this._styleMap[d].line]=1);for(var d in this.styles)u[d]||delete this.styles[d]},toObject:function(u){return this.callSuper("toObject",["minWidth","splitByGrapheme"].concat(u))}}),a.Textbox.fromObject=function(u,d){var c=a.util.stylesFromArray(u.styles,u.text),f=Object.assign({},u,{styles:c});return a.Object._fromObject("Textbox",f,d,"text")}}(e),function(){var o=t.controlsUtils,a=o.scaleSkewCursorStyleHandler,u=o.scaleCursorStyleHandler,d=o.scalingEqually,c=o.scalingYOrSkewingX,f=o.scalingXOrSkewingY,s=o.scaleOrSkewActionName,h=t.Object.prototype.controls;if(h.ml=new t.Control({x:-.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),h.mr=new t.Control({x:.5,y:0,cursorStyleHandler:a,actionHandler:f,getActionName:s}),h.mb=new t.Control({x:0,y:.5,cursorStyleHandler:a,actionHandler:c,getActionName:s}),h.mt=new t.Control({x:0,y:-.5,cursorStyleHandler:a,actionHandler:c,getActionName:s}),h.tl=new t.Control({x:-.5,y:-.5,cursorStyleHandler:u,actionHandler:d}),h.tr=new t.Control({x:.5,y:-.5,cursorStyleHandler:u,actionHandler:d}),h.bl=new t.Control({x:-.5,y:.5,cursorStyleHandler:u,actionHandler:d}),h.br=new t.Control({x:.5,y:.5,cursorStyleHandler:u,actionHandler:d}),h.mtr=new t.Control({x:0,y:-.5,actionHandler:o.rotationWithSnapping,cursorStyleHandler:o.rotationStyleHandler,offsetY:-40,withConnection:!0,actionName:"rotate"}),t.Textbox){var g=t.Textbox.prototype.controls={};g.mtr=h.mtr,g.tr=h.tr,g.br=h.br,g.tl=h.tl,g.bl=h.bl,g.mt=h.mt,g.mb=h.mb,g.mr=new t.Control({x:.5,y:0,actionHandler:o.changeWidth,cursorStyleHandler:a,actionName:"resizing"}),g.ml=new t.Control({x:-.5,y:0,actionHandler:o.changeWidth,cursorStyleHandler:a,actionName:"resizing"})}}()})(Un);const Is=Bo("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=oe({...e(),maskPathColor:"white",maskBackgroundColor:"black"}),n=oe({...e(),maskPathColor:"black",maskBackgroundColor:"white"}),r=ee(()=>Jt().generatorType==="Inpainting"),i=ee(()=>r.value?t.value:n.value),l=ee(()=>Jt().currentImageProps),v=ee({get:()=>i.value.drawing&&!r.value,set:P=>i.value.drawing=P}),o=oe(512),a=oe(512),u=oe(!1),d=oe(30),c=oe(!1),f=new Un.fabric.Circle({radius:d.value,left:0,originX:"center",originY:"center",angle:0,fill:"",stroke:"red",strokeWidth:3,opacity:0}),s=oe("Erase"),h=oe("rgb(0, 0, 0, 1)");function g(){!i.value.canvas||i.value.canvas.renderAll()}function m(){u.value=!u.value,s.value=u.value?"Draw":"Erase"}function y(P=null){!i.value.canvas||(i.value.brush=i.value.canvas.freeDrawingBrush,i.value.brush.color=P||i.value.brush.color,i.value.brush.width=d.value)}async function b({history:P,erase:Q=!1,draw:j=!1}={}){if(!P||!i.value.drawLayer||!i.value.visibleDrawLayer||!i.value.imageLayer||!i.value.visibleImageLayer||!i.value.canvas)return;P.path.selectable=!1,P.path.opacity=1,P.drawPath=await M(P.path),P.visibleDrawPath=await M(P.path),Q?(P.visibleDrawPath.globalCompositeOperation="destination-out",P.drawPath.stroke=i.value.maskBackgroundColor):(P.visibleDrawPath.globalCompositeOperation="source-over",P.drawPath.stroke=j?h.value:i.value.maskPathColor);let A=await M(P.drawPath);A=A.scale(i.value.imageScale),A.left=A.left+P.drawPath.left*(i.value.imageScale-1),A.top=A.top+P.drawPath.top*(i.value.imageScale-1),j?(i.value.imageLayer.add(A),i.value.visibleImageLayer.addWithUpdate(P.visibleDrawPath)):(i.value.drawLayer.add(A),i.value.visibleDrawLayer.addWithUpdate(P.visibleDrawPath)),i.value.canvas.remove(P.path),g()}function _(){if(i.value.undoHistory.length===0)return;const P=i.value.undoHistory.pop();b({history:P,erase:!1,draw:v.value}),i.value.redoHistory.push(P)}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 P=i.value.redoHistory.pop();i.value.undoHistory.push(P),v.value?(i.value.imageLayer.remove(P.drawPath),i.value.visibleImageLayer.remove(P.visibleDrawPath)):(i.value.drawLayer.remove(P.drawPath),i.value.visibleDrawLayer.remove(P.visibleDrawPath)),delete P.drawPath,delete P.visibleDrawPath,g()}function S(P){i.value.canvas=new Un.fabric.Canvas(P,{isDrawingMode:!1,width:o.value,height:a.value,backgroundColor:"white"}),i.value.canvas.selection=!1,i.value.canvas.freeDrawingCursor="crosshair",y(i.value.maskPathColor),i.value.canvas.on("mouse:move",R),i.value.canvas.on("path:created",U),g()}function x(P,Q,j,A){let q=A,G=A;return Q>j?(P.scaleToWidth(A),q=A*(a.value/o.value)):(P.scaleToHeight(A),G=A*(o.value/a.value)),{newHeight:q,newWidth:G}}function T(P){const Q=Jt();if(ne(),P.selectable=!1,o.value=P.width,a.value=P.height,o.value>Q.maxDimensions||a.value>Q.maxDimensions){const{newHeight:G,newWidth:te}=x(P,o.value,a.value,Q.maxDimensions);o.value=te,a.value=G}if(o.value<Q.minDimensions||a.value<Q.minDimensions){const{newHeight:G,newWidth:te}=x(P,o.value,a.value,Q.minDimensions);o.value=te,a.value=G}const j=512,A=o.value,q=a.value;i.value.imageScale=Math.max(A,q)/j,P.cloneAsImage(G=>{i.value.imageLayer=F({image:G,layerHeight:q,layerWidth:A})}),P.cloneAsImage(G=>{if(!i.value.canvas)return;if(o.value!==j||a.value!==j){const{newHeight:pe,newWidth:ve}=x(G,o.value,a.value,j);o.value=ve,a.value=pe}i.value.canvas.setWidth(o.value),i.value.canvas.setHeight(a.value),i.value.canvas.isDrawingMode=!0,i.value.visibleDrawLayer=V(),i.value.visibleImageLayer=V({image:G}),i.value.drawLayer=F({layerHeight:q,layerWidth:A});const te=o.value*i.value.imageScale,fe=a.value*i.value.imageScale;Q.params.width=te-te%64,Q.params.height=fe-fe%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,N(),I()})}function E(P,Q,j,A,q,G){const te=G?G.width:P.width,fe=G?G.height:P.height;if(q==="Original")return P;const pe=document.createElement("canvas");pe.width=Q,pe.height=j;const ve=pe.getContext("2d");ve.fillStyle=A,ve.fillRect(0,0,pe.width,pe.height);let H=0,W=0,k=P.width,X=P.height,Y=0,$=0,B=pe.width,K=pe.height;switch(q){case"Stretch":break;case"ScaleAndCrop":{const ce=pe.width/te,ie=pe.height/fe;ce>ie?(X=pe.height/ce,W=(P.height-X)/2):(k=pe.width/ie,H=(P.width-k)/2);break}case"ScaleAndPad":{const ce=pe.width/te,ie=pe.height/fe;ce<ie?(K=fe*ce,$=(pe.height-K)/2):(B=te*ie,Y=(pe.width-B)/2);break}case"NoScale":default:{const ce=te/2,ie=fe/2;te>Q?(k=Q,H=ce-Q/2):(B=te,Y=Q/2-ce),fe>j?(X=j,W=ie-j/2):(K=fe,$=j/2-ie);break}}return ve.drawImage(P,H,W,k,X,Y,$,B,K),pe}function I(){const P=Jt(),Q=zt();if(!i.value.imageLayer||!i.value.drawLayer)return;const j=P.params.width,A=P.params.height,q=i.value.imageLayer.backgroundColor||"#FFFFFF",G=Q.imageResizeMode,te=i.value.imageLayer.toCanvasElement(),fe=E(te,j,A,q,G,te);if(l.value.sourceImage=fe.toDataURL("image/jpeg",1),l.value.maskImage=void 0,i.value.redoHistory.length>0&&!v.value){const ve=i.value.drawLayer.toCanvasElement(),H=E(ve,j,A,q,G,te);l.value.maskImage=H.toDataURL("image/jpeg",1).split(",")[1]}}let D;function N(){if(!i.value.canvas)return;const P=Jt();i.value.cropPreviewLayer&&(i.value.canvas.remove(i.value.cropPreviewLayer),i.value.cropPreviewLayer=void 0),c.value&&(i.value.cropPreviewLayer=V({layerWidth:P.params.width/i.value.imageScale,layerHeight:P.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),D&&clearTimeout(D),D=setTimeout(()=>{c.value=!1,N(),D=void 0},5e3))}function L(P,Q){const j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAA1JREFUGFdj+P///38ACfsD/QVDRcoAAAAASUVORK5CYII=";Un.fabric.Image.fromURL(j,A=>{A.set({height:P,width:Q});const q=A.toDataURL({format:"png"});l.value.sourceImage=q,v.value=!0,T(A)})}function F({image:P,layerWidth:Q,layerHeight:j}={}){const A=new Un.fabric.Canvas(null);return A.selection=!1,A.backgroundColor=i.value.maskBackgroundColor,A.setHeight(j||a.value),A.setWidth(Q||o.value),P&&A.add(P),A}function O(){return i.value.imageLayer?{layerHeight:i.value.imageLayer.getHeight(),layerWidth:i.value.imageLayer.getWidth()}:{}}function V({image:P,layerWidth:Q,layerHeight:j,fill:A,abosolute:q}={}){const G=P||new Un.fabric.Rect({width:Q||o.value,height:j||a.value,left:0,top:0,fill:A||"transparent",absolutePositioned:q||!0,selectable:!1});return new Un.fabric.Group([G],{selectable:!1,absolutePositioned:q||!0})}function ne(){!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 J(){if(!!i.value.canvas){if(i.value.visibleDrawLayer&&(i.value.canvas.remove(i.value.visibleDrawLayer),i.value.visibleDrawLayer=void 0),v.value){const P=Jt();L(P.params.height||512,P.params.width||512)}i.value.drawLayer=void 0,i.value.redoHistory=[],i.value.undoHistory=[],i.value.visibleDrawLayer=V(),i.value.drawLayer=F(O()),i.value.visibleDrawLayer.set("opacity",.8),i.value.canvas.add(i.value.visibleDrawLayer)}}function le(){var Q;I();const P=document.createElement("a");if(v.value){P.href="data:image/png;base64,"+((Q=l.value.sourceImage)==null?void 0:Q.split(",")[1]),P.download="image_drawing.png",P.click();return}P.href="data:image/png;base64,"+l.value.maskImage,P.download="image_mask.png",P.click()}async function M(P){return new Promise((Q,j)=>{try{P.clone(Q)}catch(A){j(A)}})}async function U(P){const Q={path:P.path};b({history:Q,erase:u.value,draw:v.value}),i.value.redoHistory.push(Q)}function R(P){if(!i.value.canvas)return;const Q=i.value.canvas.getPointer(P.e);f.left=Q.x,f.top=Q.y,f.opacity=.8,u.value?(f.set("strokeWidth",3),f.set("fill",""),y("red")):(f.set("strokeWidth",0),v.value?(f.set("fill",h.value),y(h.value)):(f.set("fill","white"),y("white"))),f.set("radius",d.value/2),g()}return{showCropPreview:c,erasing:u,switchToolText:s,brushSize:d,drawColor:h,drawing:v,imageProps:i,updateCropPreview:N,createNewCanvas:S,downloadMask:le,resetCanvas:ne,resetDrawing:J,flipErase:m,undoAction:w,redoAction:_,newImage:T,newBlankImage:L,setBrush:y,saveImages:I}});const HH={},WH={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 20 20"},YH=re("g",{fill:"none"},[re("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),XH=[YH];function KH(e,t){return z(),se("svg",WH,XH)}const GH=qt(HH,[["render",KH]]);async function qH(e,t){const n=document.createElement("canvas"),r=n.getContext("2d"),i=new Image;return i.src=e,await new Promise(v=>i.onload=v),n.width=i.width,n.height=i.height,r==null||r.drawImage(i,0,0),n.toDataURL(t)}async function ZH(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 qH(e,r)).split(",")[1]),l=new Uint8Array(i.length);for(let v=0;v<i.length;++v)l[v]=i.charCodeAt(v);return l}async function va(e,t){const n=t!=null?t:e.split(";base64,")[0].split(":")[1],r=await ZH(e,t);return new Blob([r],{type:n})}function Ch(e){return new Promise((t,n)=>{const r=new FileReader;r.onload=()=>t(r.result),r.onerror=i=>n(i),r.readAsDataURL(e)})}const hm=e=>(ai("data-v-7dc3b5bb"),e=e(),oi(),e),JH=hm(()=>re("div",null,[Ue("Drop file here, paste an image OR "),re("em",null,"click to upload")],-1)),QH={key:0},eW=hm(()=>re("div",{class:"center-horizontal",style:{"margin-top":"5px"}},"OR",-1)),tW={class:"canvas-container"},nW=hm(()=>re("canvas",{id:"canvas"},null,-1)),rW={class:"action-buttons",style:{left:"10px",right:"unset"}},iW={class:"action-buttons"},aW=Ee({__name:"CustomCanvas",setup(e){const t=Jt(),n=Ut(),r=Is(),i=oe();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 u=await Ch(a.raw);t.currentImageProps.sourceImage=u,r.drawing=!1,Un.fabric.Image.fromURL(u,r.newImage)}function v(){t.currentImageProps.sourceImage="",r.resetCanvas()}nt(()=>{r.createNewCanvas("canvas"),t.currentImageProps.sourceImage&&Un.fabric.Image.fromURL(t.currentImageProps.sourceImage,r.newImage),window.addEventListener("paste",o)}),Yt(()=>{window.removeEventListener("paste",o)});async function o(a){var d;const u=(d=a.clipboardData)==null?void 0:d.items;if(!!u)for(let c=0;c<u.length;c++){const f=u[c];if(f.type.startsWith("image/")){a.preventDefault();const s=f.getAsFile();if(!s)return;try{const h=await Ch(s);typeof h=="string"&&(t.currentImageProps.sourceImage=h,r.drawing=!1,Un.fabric.Image.fromURL(h,r.newImage))}catch(h){console.error("Failed to process pasted image:",h)}return}}}return(a,u)=>(z(),se(je,null,[C(t).currentImageProps.sourceImage?ye("",!0):(z(),be(C(Up),{key:0,drag:"",ref_key:"upload",ref:i,"auto-upload":!1,onChange:l,limit:1,multiple:""},{tip:he(()=>[C(t).generatorType==="Img2Img"?(z(),se("div",QH,[eW,re("div",{class:"center-both",style:{cursor:"pointer","text-decoration":"underline","font-size":"1rem"},onClick:u[0]||(u[0]=d=>C(r).newBlankImage(C(t).params.height||512,C(t).params.width||512))},[ue(C(Le),{size:20,style:{"margin-right":"2px"}},{default:he(()=>[ue(b2)]),_:1}),Ue("draw something")])])):ye("",!0)]),default:he(()=>[ue(C(Le),{size:100},{default:he(()=>[ue(C(lp))]),_:1}),JH]),_:1},512)),kt(re("div",null,[re("div",tW,[nW,re("div",rW,[ue(C(ht),{onClick:u[1]||(u[1]=d=>C(r).undoAction()),icon:C(p_),plain:"",disabled:C(r).imageProps.redoHistory.length===0},null,8,["icon","disabled"]),ue(C(ht),{onClick:u[2]||(u[2]=d=>C(r).redoAction()),icon:C(m_),plain:"",disabled:C(r).imageProps.undoHistory.length===0},null,8,["icon","disabled"])]),re("div",iW,[ue(C(ht),{onClick:u[3]||(u[3]=d=>C(r).resetDrawing()),icon:C(Er),plain:""},null,8,["icon"]),ue(C(ht),{onClick:v,icon:C(Nc),plain:""},null,8,["icon"]),ue(C(ht),{onClick:u[4]||(u[4]=d=>C(r).downloadMask()),icon:C(Ys),plain:""},null,8,["icon"]),ue(C(ht),{onClick:u[5]||(u[5]=d=>C(r).flipErase()),icon:C(r).erasing?C(r3):GH,plain:""},null,8,["icon"]),C(r).drawing?(z(),be(C(xB),{key:0,modelValue:C(r).drawColor,"onUpdate:modelValue":u[6]||(u[6]=d=>C(r).drawColor=d),"show-alpha":""},null,8,["modelValue"])):ye("",!0)]),ue(C(Bp),{"label-width":"110px",style:{"margin-top":"10px"}},{default:he(()=>[ue(gn,{style:{"margin-bottom":"5px"},label:"Brush Size",prop:"brushSize",modelValue:C(r).brushSize,"onUpdate:modelValue":u[7]||(u[7]=d=>C(r).brushSize=d),min:10,max:100,step:10,change:C(r).setBrush},null,8,["modelValue","change"])]),_:1})])],512),[[Ht,C(t).currentImageProps.sourceImage]])],64))}});const W0=qt(aW,[["__scopeId","data-v-7dc3b5bb"]]),oW={class:"centerIcons"},sW={class:"stackedIcons"},lW=Ee({__name:"StackedIcon",props:{iconOne:null,iconTwo:null,size:null},setup(e){const t=e;return Rx(n=>({"2ad037ca":e.size+"px"})),(n,r)=>(z(),se("div",oW,[re("div",sW,[ue(C(Le),{class:"firstIcon",size:e.size},{default:he(()=>[(z(),be(Tt(t.iconOne)))]),_:1},8,["size"]),ue(C(Le),{class:"secondIcon",size:e.size},{default:he(()=>[(z(),be(Tt(t.iconTwo)))]),_:1},8,["size"])])]))}});const uW=qt(lW,[["__scopeId","data-v-74586a39"]]),cW={key:1,style:{width:"40px"}},pu=Ee({__name:"GeneratorMenuItem",props:{index:null,iconOne:null,iconTwo:null,isMobile:{type:Boolean}},setup(e){const t=e;return(n,r)=>(z(),be(C(Mr),{content:e.index,placement:e.isMobile?"bottom":"right",enterable:!1,"hide-after":100},{default:he(()=>[ue(C(Np),{index:e.index,style:{height:"60px",display:"flex","justify-content":"center"}},{default:he(()=>[e.iconTwo?(z(),be(uW,{key:0,iconOne:e.iconOne,iconTwo:e.iconTwo,size:40},null,8,["iconOne","iconTwo"])):(z(),se("div",cW,[ue(C(Le),{style:{width:"35px"},size:40},{default:he(()=>[(z(),be(Tt(t.iconOne)))]),_:1})]))]),_:1},8,["index"])]),_:1},8,["content","placement"]))}});/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */const fW=4,Y0=0,X0=1,dW=2;function Xo(e){let t=e.length;for(;--t>=0;)e[t]=0}const hW=0,C2=1,pW=2,mW=3,gW=258,pm=29,Fl=256,dl=Fl+1+pm,_o=30,mm=19,S2=2*dl+1,ya=15,Xf=16,vW=7,gm=256,x2=16,T2=17,k2=18,Sh=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]),Vu=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]),yW=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),E2=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),bW=512,Wr=new Array((dl+2)*2);Xo(Wr);const Ms=new Array(_o*2);Xo(Ms);const hl=new Array(bW);Xo(hl);const pl=new Array(gW-mW+1);Xo(pl);const vm=new Array(pm);Xo(vm);const _c=new Array(_o);Xo(_c);function Kf(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 O2,A2,P2;function Gf(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}const I2=e=>e<256?hl[e]:hl[256+(e>>>7)],ml=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},xn=(e,t,n)=>{e.bi_valid>Xf-n?(e.bi_buf|=t<<e.bi_valid&65535,ml(e,e.bi_buf),e.bi_buf=t>>Xf-e.bi_valid,e.bi_valid+=n-Xf):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)},_r=(e,t,n)=>{xn(e,n[t*2],n[t*2+1])},M2=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},_W=e=>{e.bi_valid===16?(ml(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)},wW=(e,t)=>{const n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,l=t.stat_desc.has_stree,v=t.stat_desc.extra_bits,o=t.stat_desc.extra_base,a=t.stat_desc.max_length;let u,d,c,f,s,h,g=0;for(f=0;f<=ya;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;u<S2;u++)d=e.heap[u],f=n[n[d*2+1]*2+1]+1,f>a&&(f=a,g++),n[d*2+1]=f,!(d>r)&&(e.bl_count[f]++,s=0,d>=o&&(s=v[d-o]),h=n[d*2],e.opt_len+=h*(f+s),l&&(e.static_len+=h*(i[d*2+1]+s)));if(g!==0){do{for(f=a-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[a]--,g-=2}while(g>0);for(f=a;f!==0;f--)for(d=e.bl_count[f];d!==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),d--)}},L2=(e,t,n)=>{const r=new Array(ya+1);let i=0,l,v;for(l=1;l<=ya;l++)i=i+n[l-1]<<1,r[l]=i;for(v=0;v<=t;v++){let o=e[v*2+1];o!==0&&(e[v*2]=M2(r[o]++,o))}},CW=()=>{let e,t,n,r,i;const l=new Array(ya+1);for(n=0,r=0;r<pm-1;r++)for(vm[r]=n,e=0;e<1<<Sh[r];e++)pl[n++]=r;for(pl[n-1]=r,i=0,r=0;r<16;r++)for(_c[r]=i,e=0;e<1<<Vu[r];e++)hl[i++]=r;for(i>>=7;r<_o;r++)for(_c[r]=i<<7,e=0;e<1<<Vu[r]-7;e++)hl[256+i++]=r;for(t=0;t<=ya;t++)l[t]=0;for(e=0;e<=143;)Wr[e*2+1]=8,e++,l[8]++;for(;e<=255;)Wr[e*2+1]=9,e++,l[9]++;for(;e<=279;)Wr[e*2+1]=7,e++,l[7]++;for(;e<=287;)Wr[e*2+1]=8,e++,l[8]++;for(L2(Wr,dl+1,l),e=0;e<_o;e++)Ms[e*2+1]=5,Ms[e*2]=M2(e,5);O2=new Kf(Wr,Sh,Fl+1,dl,ya),A2=new Kf(Ms,Vu,0,_o,ya),P2=new Kf(new Array(0),yW,0,mm,vW)},R2=e=>{let t;for(t=0;t<dl;t++)e.dyn_ltree[t*2]=0;for(t=0;t<_o;t++)e.dyn_dtree[t*2]=0;for(t=0;t<mm;t++)e.bl_tree[t*2]=0;e.dyn_ltree[gm*2]=1,e.opt_len=e.static_len=0,e.sym_next=e.matches=0},D2=e=>{e.bi_valid>8?ml(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},K0=(e,t,n,r)=>{const i=t*2,l=n*2;return e[i]<e[l]||e[i]===e[l]&&r[t]<=r[n]},qf=(e,t,n)=>{const r=e.heap[n];let i=n<<1;for(;i<=e.heap_len&&(i<e.heap_len&&K0(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!K0(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r},G0=(e,t,n)=>{let r,i,l=0,v,o;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+l++]&255,r+=(e.pending_buf[e.sym_buf+l++]&255)<<8,i=e.pending_buf[e.sym_buf+l++],r===0?_r(e,i,t):(v=pl[i],_r(e,v+Fl+1,t),o=Sh[v],o!==0&&(i-=vm[v],xn(e,i,o)),r--,v=I2(r),_r(e,v,n),o=Vu[v],o!==0&&(r-=_c[v],xn(e,r,o)));while(l<e.sym_next);_r(e,gm,t)},xh=(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 v,o,a=-1,u;for(e.heap_len=0,e.heap_max=S2,v=0;v<l;v++)n[v*2]!==0?(e.heap[++e.heap_len]=a=v,e.depth[v]=0):n[v*2+1]=0;for(;e.heap_len<2;)u=e.heap[++e.heap_len]=a<2?++a:0,n[u*2]=1,e.depth[u]=0,e.opt_len--,i&&(e.static_len-=r[u*2+1]);for(t.max_code=a,v=e.heap_len>>1;v>=1;v--)qf(e,n,v);u=l;do v=e.heap[1],e.heap[1]=e.heap[e.heap_len--],qf(e,n,1),o=e.heap[1],e.heap[--e.heap_max]=v,e.heap[--e.heap_max]=o,n[u*2]=n[v*2]+n[o*2],e.depth[u]=(e.depth[v]>=e.depth[o]?e.depth[v]:e.depth[o])+1,n[v*2+1]=n[o*2+1]=u,e.heap[1]=u++,qf(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],wW(e,t),L2(n,a,e.bl_count)},q0=(e,t,n)=>{let r,i=-1,l,v=t[0*2+1],o=0,a=7,u=4;for(v===0&&(a=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)l=v,v=t[(r+1)*2+1],!(++o<a&&l===v)&&(o<u?e.bl_tree[l*2]+=o:l!==0?(l!==i&&e.bl_tree[l*2]++,e.bl_tree[x2*2]++):o<=10?e.bl_tree[T2*2]++:e.bl_tree[k2*2]++,o=0,i=l,v===0?(a=138,u=3):l===v?(a=6,u=3):(a=7,u=4))},Z0=(e,t,n)=>{let r,i=-1,l,v=t[0*2+1],o=0,a=7,u=4;for(v===0&&(a=138,u=3),r=0;r<=n;r++)if(l=v,v=t[(r+1)*2+1],!(++o<a&&l===v)){if(o<u)do _r(e,l,e.bl_tree);while(--o!==0);else l!==0?(l!==i&&(_r(e,l,e.bl_tree),o--),_r(e,x2,e.bl_tree),xn(e,o-3,2)):o<=10?(_r(e,T2,e.bl_tree),xn(e,o-3,3)):(_r(e,k2,e.bl_tree),xn(e,o-11,7));o=0,i=l,v===0?(a=138,u=3):l===v?(a=6,u=3):(a=7,u=4)}},SW=e=>{let t;for(q0(e,e.dyn_ltree,e.l_desc.max_code),q0(e,e.dyn_dtree,e.d_desc.max_code),xh(e,e.bl_desc),t=mm-1;t>=3&&e.bl_tree[E2[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},xW=(e,t,n,r)=>{let i;for(xn(e,t-257,5),xn(e,n-1,5),xn(e,r-4,4),i=0;i<r;i++)xn(e,e.bl_tree[E2[i]*2+1],3);Z0(e,e.dyn_ltree,t-1),Z0(e,e.dyn_dtree,n-1)},TW=e=>{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return Y0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return X0;for(n=32;n<Fl;n++)if(e.dyn_ltree[n*2]!==0)return X0;return Y0};let J0=!1;const kW=e=>{J0||(CW(),J0=!0),e.l_desc=new Gf(e.dyn_ltree,O2),e.d_desc=new Gf(e.dyn_dtree,A2),e.bl_desc=new Gf(e.bl_tree,P2),e.bi_buf=0,e.bi_valid=0,R2(e)},$2=(e,t,n,r)=>{xn(e,(hW<<1)+(r?1:0),3),D2(e),ml(e,n),ml(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},EW=e=>{xn(e,C2<<1,3),_r(e,gm,Wr),_W(e)},OW=(e,t,n,r)=>{let i,l,v=0;e.level>0?(e.strm.data_type===dW&&(e.strm.data_type=TW(e)),xh(e,e.l_desc),xh(e,e.d_desc),v=SW(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?$2(e,t,n,r):e.strategy===fW||l===i?(xn(e,(C2<<1)+(r?1:0),3),G0(e,Wr,Ms)):(xn(e,(pW<<1)+(r?1:0),3),xW(e,e.l_desc.max_code+1,e.d_desc.max_code+1,v+1),G0(e,e.dyn_ltree,e.dyn_dtree)),R2(e),r&&D2(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[(pl[n]+Fl+1)*2]++,e.dyn_dtree[I2(t)*2]++),e.sym_next===e.sym_end);var PW=kW,IW=$2,MW=OW,LW=AW,RW=EW,DW={_tr_init:PW,_tr_stored_block:IW,_tr_flush_block:MW,_tr_tally:LW,_tr_align:RW};const $W=(e,t,n,r)=>{let i=e&65535|0,l=e>>>16&65535|0,v=0;for(;n!==0;){v=n>2e3?2e3:n,n-=v;do i=i+t[r++]|0,l=l+i|0;while(--v);i%=65521,l%=65521}return i|l<<16|0};var gl=$W;const BW=()=>{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},FW=new Uint32Array(BW()),zW=(e,t,n,r)=>{const i=FW,l=r+n;e^=-1;for(let v=r;v<l;v++)e=e>>>8^i[(e^t[v])&255];return e^-1};var Zt=zW,Ra={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"},Ko={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:NW,_tr_stored_block:Th,_tr_flush_block:jW,_tr_tally:Ri,_tr_align:VW}=DW,{Z_NO_FLUSH:Di,Z_PARTIAL_FLUSH:UW,Z_FULL_FLUSH:HW,Z_FINISH:Hn,Z_BLOCK:Q0,Z_OK:nn,Z_STREAM_END:ey,Z_STREAM_ERROR:Tr,Z_DATA_ERROR:WW,Z_BUF_ERROR:Zf,Z_DEFAULT_COMPRESSION:YW,Z_FILTERED:XW,Z_HUFFMAN_ONLY:mu,Z_RLE:KW,Z_FIXED:GW,Z_DEFAULT_STRATEGY:qW,Z_UNKNOWN:ZW,Z_DEFLATED:nf}=Ko,JW=9,QW=15,eY=8,tY=29,nY=256,kh=nY+1+tY,rY=30,iY=19,aY=2*kh+1,oY=15,lt=3,Pi=258,kr=Pi+lt+1,sY=32,Ro=42,ym=57,Eh=69,Oh=73,Ah=91,Ph=103,ba=113,hs=666,yn=1,Go=2,Da=3,qo=4,lY=3,_a=(e,t)=>(e.msg=Ra[t],t),ty=e=>e*2-(e>4?9:0),Ei=e=>{let t=e.length;for(;--t>=0;)e[t]=0},uY=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 cY=(e,t,n)=>(t<<e.hash_shift^n)&e.hash_mask,$i=cY;const Mn=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))},$n=(e,t)=>{jW(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Mn(e.strm)},pt=(e,t)=>{e.pending_buf[e.pending++]=t},ss=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Ih=(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=gl(e.adler,t,i,n):e.state.wrap===2&&(e.adler=Zt(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},B2=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,l,v=e.prev_length,o=e.nice_match;const a=e.strstart>e.w_size-kr?e.strstart-(e.w_size-kr):0,u=e.window,d=e.w_mask,c=e.prev,f=e.strstart+Pi;let s=u[r+v-1],h=u[r+v];e.prev_length>=e.good_match&&(n>>=2),o>e.lookahead&&(o=e.lookahead);do if(i=t,!(u[i+v]!==h||u[i+v-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=Pi-(f-r),r=f-Pi,l>v){if(e.match_start=t,v=l,l>=o)break;s=u[r+v-1],h=u[r+v]}}while((t=c[t&d])>a&&--n!==0);return v<=e.lookahead?v:e.lookahead},Do=e=>{const t=e.w_size;let n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-kr)&&(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),uY(e),r+=t),e.strm.avail_in===0)break;if(n=Ih(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=lt)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=$i(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=$i(e,e.ins_h,e.window[i+lt-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<lt)););}while(e.lookahead<kr&&e.strm.avail_in!==0)},F2=(e,t)=>{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,l,v=0,o=e.strm.avail_in;do{if(r=65535,l=e.bi_valid+42>>3,e.strm.avail_out<l||(l=e.strm.avail_out-l,i=e.strstart-e.block_start,r>i+e.strm.avail_in&&(r=i+e.strm.avail_in),r>l&&(r=l),r<n&&(r===0&&t!==Hn||t===Di||r!==i+e.strm.avail_in)))break;v=t===Hn&&r===i+e.strm.avail_in?1:0,Th(e,0,0,v),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,Mn(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&&(Ih(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(v===0);return o-=e.strm.avail_in,o&&(o>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=o&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-o,e.strm.next_in),e.strstart),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.block_start=e.strstart),e.high_water<e.strstart&&(e.high_water=e.strstart),v?qo:t!==Di&&t!==Hn&&e.strm.avail_in===0&&e.strstart===e.block_start?Go:(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&&(Ih(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===Hn)&&t!==Di&&e.strm.avail_in===0&&i<=l)&&(r=i>l?l:i,v=t===Hn&&e.strm.avail_in===0&&r===i?1:0,Th(e,e.block_start,r,v),e.block_start+=r,Mn(e.strm)),v?Da:yn)},Jf=(e,t)=>{let n,r;for(;;){if(e.lookahead<kr){if(Do(e),e.lookahead<kr&&t===Di)return yn;if(e.lookahead===0)break}if(n=0,e.lookahead>=lt&&(e.ins_h=$i(e,e.ins_h,e.window[e.strstart+lt-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-kr&&(e.match_length=B2(e,n)),e.match_length>=lt)if(r=Ri(e,e.strstart-e.match_start,e.match_length-lt),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=lt){e.match_length--;do e.strstart++,e.ins_h=$i(e,e.ins_h,e.window[e.strstart+lt-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=$i(e,e.ins_h,e.window[e.strstart+1]);else r=Ri(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&($n(e,!1),e.strm.avail_out===0))return yn}return e.insert=e.strstart<lt-1?e.strstart:lt-1,t===Hn?($n(e,!0),e.strm.avail_out===0?Da:qo):e.sym_next&&($n(e,!1),e.strm.avail_out===0)?yn:Go},ro=(e,t)=>{let n,r,i;for(;;){if(e.lookahead<kr){if(Do(e),e.lookahead<kr&&t===Di)return yn;if(e.lookahead===0)break}if(n=0,e.lookahead>=lt&&(e.ins_h=$i(e,e.ins_h,e.window[e.strstart+lt-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=lt-1,n!==0&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-kr&&(e.match_length=B2(e,n),e.match_length<=5&&(e.strategy===XW||e.match_length===lt&&e.strstart-e.match_start>4096)&&(e.match_length=lt-1)),e.prev_length>=lt&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-lt,r=Ri(e,e.strstart-1-e.prev_match,e.prev_length-lt),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=$i(e,e.ins_h,e.window[e.strstart+lt-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=lt-1,e.strstart++,r&&($n(e,!1),e.strm.avail_out===0))return yn}else if(e.match_available){if(r=Ri(e,0,e.window[e.strstart-1]),r&&$n(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return yn}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Ri(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<lt-1?e.strstart:lt-1,t===Hn?($n(e,!0),e.strm.avail_out===0?Da:qo):e.sym_next&&($n(e,!1),e.strm.avail_out===0)?yn:Go},fY=(e,t)=>{let n,r,i,l;const v=e.window;for(;;){if(e.lookahead<=Pi){if(Do(e),e.lookahead<=Pi&&t===Di)return yn;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=lt&&e.strstart>0&&(i=e.strstart-1,r=v[i],r===v[++i]&&r===v[++i]&&r===v[++i])){l=e.strstart+Pi;do;while(r===v[++i]&&r===v[++i]&&r===v[++i]&&r===v[++i]&&r===v[++i]&&r===v[++i]&&r===v[++i]&&r===v[++i]&&i<l);e.match_length=Pi-(l-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=lt?(n=Ri(e,1,e.match_length-lt),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Ri(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&($n(e,!1),e.strm.avail_out===0))return yn}return e.insert=0,t===Hn?($n(e,!0),e.strm.avail_out===0?Da:qo):e.sym_next&&($n(e,!1),e.strm.avail_out===0)?yn:Go},dY=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(Do(e),e.lookahead===0)){if(t===Di)return yn;break}if(e.match_length=0,n=Ri(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&($n(e,!1),e.strm.avail_out===0))return yn}return e.insert=0,t===Hn?($n(e,!0),e.strm.avail_out===0?Da:qo):e.sym_next&&($n(e,!1),e.strm.avail_out===0)?yn:Go};function gr(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}const ps=[new gr(0,0,0,0,F2),new gr(4,4,8,4,Jf),new gr(4,5,16,8,Jf),new gr(4,6,32,32,Jf),new gr(4,4,16,16,ro),new gr(8,16,32,32,ro),new gr(8,16,128,128,ro),new gr(8,32,128,256,ro),new gr(32,128,258,1024,ro),new gr(32,258,258,4096,ro)],hY=e=>{e.window_size=2*e.w_size,Ei(e.head),e.max_lazy_match=ps[e.level].max_lazy,e.good_match=ps[e.level].good_length,e.nice_match=ps[e.level].nice_length,e.max_chain_length=ps[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=lt-1,e.match_available=0,e.ins_h=0};function pY(){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=nf,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(aY*2),this.dyn_dtree=new Uint16Array((2*rY+1)*2),this.bl_tree=new Uint16Array((2*iY+1)*2),Ei(this.dyn_ltree),Ei(this.dyn_dtree),Ei(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(oY+1),this.heap=new Uint16Array(2*kh+1),Ei(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*kh+1),Ei(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 zl=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.status!==Ro&&t.status!==ym&&t.status!==Eh&&t.status!==Oh&&t.status!==Ah&&t.status!==Ph&&t.status!==ba&&t.status!==hs?1:0},z2=e=>{if(zl(e))return _a(e,Tr);e.total_in=e.total_out=0,e.data_type=ZW;const t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?ym:t.wrap?Ro:ba,e.adler=t.wrap===2?0:1,t.last_flush=-2,NW(t),nn},N2=e=>{const t=z2(e);return t===nn&&hY(e.state),t},mY=(e,t)=>zl(e)||e.state.wrap!==2?Tr:(e.state.gzhead=t,nn),j2=(e,t,n,r,i,l)=>{if(!e)return Tr;let v=1;if(t===YW&&(t=6),r<0?(v=0,r=-r):r>15&&(v=2,r-=16),i<1||i>JW||n!==nf||r<8||r>15||t<0||t>9||l<0||l>GW||r===8&&v!==1)return _a(e,Tr);r===8&&(r=9);const o=new pY;return e.state=o,o.strm=e,o.status=Ro,o.wrap=v,o.gzhead=null,o.w_bits=r,o.w_size=1<<o.w_bits,o.w_mask=o.w_size-1,o.hash_bits=i+7,o.hash_size=1<<o.hash_bits,o.hash_mask=o.hash_size-1,o.hash_shift=~~((o.hash_bits+lt-1)/lt),o.window=new Uint8Array(o.w_size*2),o.head=new Uint16Array(o.hash_size),o.prev=new Uint16Array(o.w_size),o.lit_bufsize=1<<i+6,o.pending_buf_size=o.lit_bufsize*4,o.pending_buf=new Uint8Array(o.pending_buf_size),o.sym_buf=o.lit_bufsize,o.sym_end=(o.lit_bufsize-1)*3,o.level=t,o.strategy=l,o.method=n,N2(e)},gY=(e,t)=>j2(e,t,nf,QW,eY,qW),vY=(e,t)=>{if(zl(e)||t>Q0||t<0)return e?_a(e,Tr):Tr;const n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===hs&&t!==Hn)return _a(e,e.avail_out===0?Zf:Tr);const r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Mn(e),e.avail_out===0)return n.last_flush=-1,nn}else if(e.avail_in===0&&ty(t)<=ty(r)&&t!==Hn)return _a(e,Zf);if(n.status===hs&&e.avail_in!==0)return _a(e,Zf);if(n.status===Ro&&n.wrap===0&&(n.status=ba),n.status===Ro){let i=nf+(n.w_bits-8<<4)<<8,l=-1;if(n.strategy>=mu||n.level<2?l=0:n.level<6?l=1:n.level===6?l=2:l=3,i|=l<<6,n.strstart!==0&&(i|=sY),i+=31-i%31,ss(n,i),n.strstart!==0&&(ss(n,e.adler>>>16),ss(n,e.adler&65535)),e.adler=1,n.status=ba,Mn(e),n.pending!==0)return n.last_flush=-1,nn}if(n.status===ym){if(e.adler=0,pt(n,31),pt(n,139),pt(n,8),n.gzhead)pt(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)),pt(n,n.gzhead.time&255),pt(n,n.gzhead.time>>8&255),pt(n,n.gzhead.time>>16&255),pt(n,n.gzhead.time>>24&255),pt(n,n.level===9?2:n.strategy>=mu||n.level<2?4:0),pt(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&(pt(n,n.gzhead.extra.length&255),pt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=Zt(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=Eh;else if(pt(n,0),pt(n,0),pt(n,0),pt(n,0),pt(n,0),pt(n,n.level===9?2:n.strategy>=mu||n.level<2?4:0),pt(n,lY),n.status=ba,Mn(e),n.pending!==0)return n.last_flush=-1,nn}if(n.status===Eh){if(n.gzhead.extra){let i=n.pending,l=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+l>n.pending_buf_size;){let o=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=Zt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=o,Mn(e),n.pending!==0)return n.last_flush=-1,nn;i=0,l-=o}let v=new Uint8Array(n.gzhead.extra);n.pending_buf.set(v.subarray(n.gzindex,n.gzindex+l),n.pending),n.pending+=l,n.gzhead.hcrc&&n.pending>i&&(e.adler=Zt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Oh}if(n.status===Oh){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=Zt(e.adler,n.pending_buf,n.pending-i,i)),Mn(e),n.pending!==0)return n.last_flush=-1,nn;i=0}n.gzindex<n.gzhead.name.length?l=n.gzhead.name.charCodeAt(n.gzindex++)&255:l=0,pt(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Zt(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Ah}if(n.status===Ah){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=Zt(e.adler,n.pending_buf,n.pending-i,i)),Mn(e),n.pending!==0)return n.last_flush=-1,nn;i=0}n.gzindex<n.gzhead.comment.length?l=n.gzhead.comment.charCodeAt(n.gzindex++)&255:l=0,pt(n,l)}while(l!==0);n.gzhead.hcrc&&n.pending>i&&(e.adler=Zt(e.adler,n.pending_buf,n.pending-i,i))}n.status=Ph}if(n.status===Ph){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Mn(e),n.pending!==0))return n.last_flush=-1,nn;pt(n,e.adler&255),pt(n,e.adler>>8&255),e.adler=0}if(n.status=ba,Mn(e),n.pending!==0)return n.last_flush=-1,nn}if(e.avail_in!==0||n.lookahead!==0||t!==Di&&n.status!==hs){let i=n.level===0?F2(n,t):n.strategy===mu?dY(n,t):n.strategy===KW?fY(n,t):ps[n.level].func(n,t);if((i===Da||i===qo)&&(n.status=hs),i===yn||i===Da)return e.avail_out===0&&(n.last_flush=-1),nn;if(i===Go&&(t===UW?VW(n):t!==Q0&&(Th(n,0,0,!1),t===HW&&(Ei(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Mn(e),e.avail_out===0))return n.last_flush=-1,nn}return t!==Hn?nn:n.wrap<=0?ey:(n.wrap===2?(pt(n,e.adler&255),pt(n,e.adler>>8&255),pt(n,e.adler>>16&255),pt(n,e.adler>>24&255),pt(n,e.total_in&255),pt(n,e.total_in>>8&255),pt(n,e.total_in>>16&255),pt(n,e.total_in>>24&255)):(ss(n,e.adler>>>16),ss(n,e.adler&65535)),Mn(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?nn:ey)},yY=e=>{if(zl(e))return Tr;const t=e.state.status;return e.state=null,t===ba?_a(e,WW):nn},bY=(e,t)=>{let n=t.length;if(zl(e))return Tr;const r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==Ro||r.lookahead)return Tr;if(i===1&&(e.adler=gl(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Ei(r.head),r.strstart=0,r.block_start=0,r.insert=0);let a=new Uint8Array(r.w_size);a.set(t.subarray(n-r.w_size,n),0),t=a,n=r.w_size}const l=e.avail_in,v=e.next_in,o=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,Do(r);r.lookahead>=lt;){let a=r.strstart,u=r.lookahead-(lt-1);do r.ins_h=$i(r,r.ins_h,r.window[a+lt-1]),r.prev[a&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=a,a++;while(--u);r.strstart=a,r.lookahead=lt-1,Do(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=lt-1,r.match_available=0,e.next_in=v,e.input=o,e.avail_in=l,r.wrap=i,nn};var _Y=gY,wY=j2,CY=N2,SY=z2,xY=mY,TY=vY,kY=yY,EY=bY,OY="pako deflate (from Nodeca project)",Ls={deflateInit:_Y,deflateInit2:wY,deflateReset:CY,deflateResetKeep:SY,deflateSetHeader:xY,deflate:TY,deflateEnd:kY,deflateSetDictionary:EY,deflateInfo:OY};const AY=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var PY=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},IY=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 v=e[r];n.set(v,i),i+=v.length}return n},rf={assign:PY,flattenChunks:IY};let V2=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{V2=!1}const vl=new Uint8Array(256);for(let e=0;e<256;e++)vl[e]=e>=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;vl[254]=vl[254]=1;var MY=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,l,v=e.length,o=0;for(i=0;i<v;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<v&&(r=e.charCodeAt(i+1),(r&64512)===56320&&(n=65536+(n-55296<<10)+(r-56320),i++)),o+=n<128?1:n<2048?2:n<65536?3:4;for(t=new Uint8Array(o),l=0,i=0;l<o;i++)n=e.charCodeAt(i),(n&64512)===55296&&i+1<v&&(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 LY=(e,t)=>{if(t<65534&&e.subarray&&V2)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 RY=(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 v=e[r++];if(v<128){l[i++]=v;continue}let o=vl[v];if(o>4){l[i++]=65533,r+=o-1;continue}for(v&=o===2?31:o===3?15:7;o>1&&r<n;)v=v<<6|e[r++]&63,o--;if(o>1){l[i++]=65533;continue}v<65536?l[i++]=v:(v-=65536,l[i++]=55296|v>>10&1023,l[i++]=56320|v&1023)}return LY(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+vl[e[n]]>t?n:t},yl={string2buf:MY,buf2string:RY,utf8border:DY};function $Y(){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 U2=$Y;const H2=Object.prototype.toString,{Z_NO_FLUSH:BY,Z_SYNC_FLUSH:FY,Z_FULL_FLUSH:zY,Z_FINISH:NY,Z_OK:wc,Z_STREAM_END:jY,Z_DEFAULT_COMPRESSION:VY,Z_DEFAULT_STRATEGY:UY,Z_DEFLATED:HY}=Ko;function Nl(e){this.options=rf.assign({level:VY,method:HY,chunkSize:16384,windowBits:15,memLevel:8,strategy:UY},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 U2,this.strm.avail_out=0;let n=Ls.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==wc)throw new Error(Ra[n]);if(t.header&&Ls.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=yl.string2buf(t.dictionary):H2.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Ls.deflateSetDictionary(this.strm,r),n!==wc)throw new Error(Ra[n]);this._dict_set=!0}}Nl.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?NY:BY,typeof e=="string"?n.input=yl.string2buf(e):H2.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===FY||l===zY)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Ls.deflate(n,l),i===jY)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Ls.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===wc;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};Nl.prototype.onData=function(e){this.chunks.push(e)};Nl.prototype.onEnd=function(e){e===wc&&(this.result=rf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function bm(e,t){const n=new Nl(t);if(n.push(e,!0),n.err)throw n.msg||Ra[n.err];return n.result}function WY(e,t){return t=t||{},t.raw=!0,bm(e,t)}function YY(e,t){return t=t||{},t.gzip=!0,bm(e,t)}var XY=Nl,KY=bm,GY=WY,qY=YY,ZY=Ko,JY={Deflate:XY,deflate:KY,deflateRaw:GY,gzip:qY,constants:ZY};const gu=16209,QY=16191;var eX=function(t,n){let r,i,l,v,o,a,u,d,c,f,s,h,g,m,y,b,_,w,S,x,T,E,I,D;const N=t.state;r=t.next_in,I=t.input,i=r+(t.avail_in-5),l=t.next_out,D=t.output,v=l-(n-t.avail_out),o=l+(t.avail_out-257),a=N.dmax,u=N.wsize,d=N.whave,c=N.wnext,f=N.window,s=N.hold,h=N.bits,g=N.lencode,m=N.distcode,y=(1<<N.lenbits)-1,b=(1<<N.distbits)-1;e:do{h<15&&(s+=I[r++]<<h,h+=8,s+=I[r++]<<h,h+=8),_=g[s&y];t:for(;;){if(w=_>>>24,s>>>=w,h-=w,w=_>>>16&255,w===0)D[l++]=_&65535;else if(w&16){S=_&65535,w&=15,w&&(h<w&&(s+=I[r++]<<h,h+=8),S+=s&(1<<w)-1,s>>>=w,h-=w),h<15&&(s+=I[r++]<<h,h+=8,s+=I[r++]<<h,h+=8),_=m[s&b];n:for(;;){if(w=_>>>24,s>>>=w,h-=w,w=_>>>16&255,w&16){if(x=_&65535,w&=15,h<w&&(s+=I[r++]<<h,h+=8,h<w&&(s+=I[r++]<<h,h+=8)),x+=s&(1<<w)-1,x>a){t.msg="invalid distance too far back",N.mode=gu;break e}if(s>>>=w,h-=w,w=l-v,x>w){if(w=x-w,w>d&&N.sane){t.msg="invalid distance too far back",N.mode=gu;break e}if(T=0,E=f,c===0){if(T+=u-w,w<S){S-=w;do D[l++]=f[T++];while(--w);T=l-x,E=D}}else if(c<w){if(T+=u+c-w,w-=c,w<S){S-=w;do D[l++]=f[T++];while(--w);if(T=0,c<S){w=c,S-=w;do D[l++]=f[T++];while(--w);T=l-x,E=D}}}else if(T+=c-w,w<S){S-=w;do D[l++]=f[T++];while(--w);T=l-x,E=D}for(;S>2;)D[l++]=E[T++],D[l++]=E[T++],D[l++]=E[T++],S-=3;S&&(D[l++]=E[T++],S>1&&(D[l++]=E[T++]))}else{T=l-x;do D[l++]=D[T++],D[l++]=D[T++],D[l++]=D[T++],S-=3;while(S>2);S&&(D[l++]=D[T++],S>1&&(D[l++]=D[T++]))}}else if((w&64)===0){_=m[(_&65535)+(s&(1<<w)-1)];continue n}else{t.msg="invalid distance code",N.mode=gu;break e}break}}else if((w&64)===0){_=g[(_&65535)+(s&(1<<w)-1)];continue t}else if(w&32){N.mode=QY;break e}else{t.msg="invalid literal/length code",N.mode=gu;break e}break}}while(r<i&&l<o);S=h>>3,r-=S,h-=S<<3,s&=(1<<h)-1,t.next_in=r,t.next_out=l,t.avail_in=r<i?5+(i-r):5-(r-i),t.avail_out=l<o?257+(o-l):257-(l-o),N.hold=s,N.bits=h};const io=15,ny=852,ry=592,iy=0,Qf=1,ay=2,tX=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]),nX=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]),rX=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]),iX=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]),aX=(e,t,n,r,i,l,v,o)=>{const a=o.bits;let u=0,d=0,c=0,f=0,s=0,h=0,g=0,m=0,y=0,b=0,_,w,S,x,T,E=null,I;const D=new Uint16Array(io+1),N=new Uint16Array(io+1);let L=null,F,O,V;for(u=0;u<=io;u++)D[u]=0;for(d=0;d<r;d++)D[t[n+d]]++;for(s=a,f=io;f>=1&&D[f]===0;f--);if(s>f&&(s=f),f===0)return i[l++]=1<<24|64<<16|0,i[l++]=1<<24|64<<16|0,o.bits=1,0;for(c=1;c<f&&D[c]===0;c++);for(s<c&&(s=c),m=1,u=1;u<=io;u++)if(m<<=1,m-=D[u],m<0)return-1;if(m>0&&(e===iy||f!==1))return-1;for(N[1]=0,u=1;u<io;u++)N[u+1]=N[u]+D[u];for(d=0;d<r;d++)t[n+d]!==0&&(v[N[t[n+d]]++]=d);if(e===iy?(E=L=v,I=20):e===Qf?(E=tX,L=nX,I=257):(E=rX,L=iX,I=0),b=0,d=0,u=c,T=l,h=s,g=0,S=-1,y=1<<s,x=y-1,e===Qf&&y>ny||e===ay&&y>ry)return 1;for(;;){F=u-g,v[d]+1<I?(O=0,V=v[d]):v[d]>=I?(O=L[v[d]-I],V=E[v[d]-I]):(O=32+64,V=0),_=1<<u-g,w=1<<h,c=w;do w-=_,i[T+(b>>g)+w]=F<<24|O<<16|V|0;while(w!==0);for(_=1<<u-1;b&_;)_>>=1;if(_!==0?(b&=_-1,b+=_):b=0,d++,--D[u]===0){if(u===f)break;u=t[n+v[d]]}if(u>s&&(b&x)!==S){for(g===0&&(g=s),T+=c,h=u-g,m=1<<h;h+g<f&&(m-=D[h+g],!(m<=0));)h++,m<<=1;if(y+=1<<h,e===Qf&&y>ny||e===ay&&y>ry)return 1;S=b&x,i[S]=s<<24|h<<16|T-l|0}}return b!==0&&(i[T+b]=u-g<<24|64<<16|0),o.bits=s,0};var Rs=aX;const oX=0,W2=1,Y2=2,{Z_FINISH:oy,Z_BLOCK:sX,Z_TREES:vu,Z_OK:$a,Z_STREAM_END:lX,Z_NEED_DICT:uX,Z_STREAM_ERROR:qn,Z_DATA_ERROR:X2,Z_MEM_ERROR:K2,Z_BUF_ERROR:cX,Z_DEFLATED:sy}=Ko,af=16180,ly=16181,uy=16182,cy=16183,fy=16184,dy=16185,hy=16186,py=16187,my=16188,gy=16189,Cc=16190,zr=16191,ed=16192,vy=16193,td=16194,yy=16195,by=16196,_y=16197,wy=16198,yu=16199,bu=16200,Cy=16201,Sy=16202,xy=16203,Ty=16204,ky=16205,nd=16206,Ey=16207,Oy=16208,Bt=16209,G2=16210,q2=16211,fX=852,dX=592,hX=15,pX=hX,Ay=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function mX(){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 Xa=e=>{if(!e)return 1;const t=e.state;return!t||t.strm!==e||t.mode<af||t.mode>q2?1:0},Z2=e=>{if(Xa(e))return qn;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=af,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(fX),t.distcode=t.distdyn=new Int32Array(dX),t.sane=1,t.back=-1,$a},J2=e=>{if(Xa(e))return qn;const t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,Z2(e)},Q2=(e,t)=>{let n;if(Xa(e))return qn;const r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?qn:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,J2(e))},eC=(e,t)=>{if(!e)return qn;const n=new mX;e.state=n,n.strm=e,n.window=null,n.mode=af;const r=Q2(e,t);return r!==$a&&(e.state=null),r},gX=e=>eC(e,pX);let Py=!0,rd,id;const vX=e=>{if(Py){rd=new Int32Array(512),id=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(Rs(W2,e.lens,0,288,rd,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Rs(Y2,e.lens,0,32,id,0,e.work,{bits:5}),Py=!1}e.lencode=rd,e.lenbits=9,e.distcode=id,e.distbits=5},tC=(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},yX=(e,t)=>{let n,r,i,l,v,o,a,u,d,c,f,s,h,g,m=0,y,b,_,w,S,x,T,E;const I=new Uint8Array(4);let D,N;const L=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Xa(e)||!e.output||!e.input&&e.avail_in!==0)return qn;n=e.state,n.mode===zr&&(n.mode=ed),v=e.next_out,i=e.output,a=e.avail_out,l=e.next_in,r=e.input,o=e.avail_in,u=n.hold,d=n.bits,c=o,f=a,E=$a;e:for(;;)switch(n.mode){case af:if(n.wrap===0){n.mode=ed;break}for(;d<16;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if(n.wrap&2&&u===35615){n.wbits===0&&(n.wbits=15),n.check=0,I[0]=u&255,I[1]=u>>>8&255,n.check=Zt(n.check,I,2,0),u=0,d=0,n.mode=ly;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=Bt;break}if((u&15)!==sy){e.msg="unknown compression method",n.mode=Bt;break}if(u>>>=4,d-=4,T=(u&15)+8,n.wbits===0&&(n.wbits=T),T>15||T>n.wbits){e.msg="invalid window size",n.mode=Bt;break}n.dmax=1<<n.wbits,n.flags=0,e.adler=n.check=1,n.mode=u&512?gy:zr,u=0,d=0;break;case ly:for(;d<16;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if(n.flags=u,(n.flags&255)!==sy){e.msg="unknown compression method",n.mode=Bt;break}if(n.flags&57344){e.msg="unknown header flags set",n.mode=Bt;break}n.head&&(n.head.text=u>>8&1),n.flags&512&&n.wrap&4&&(I[0]=u&255,I[1]=u>>>8&255,n.check=Zt(n.check,I,2,0)),u=0,d=0,n.mode=uy;case uy:for(;d<32;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}n.head&&(n.head.time=u),n.flags&512&&n.wrap&4&&(I[0]=u&255,I[1]=u>>>8&255,I[2]=u>>>16&255,I[3]=u>>>24&255,n.check=Zt(n.check,I,4,0)),u=0,d=0,n.mode=cy;case cy:for(;d<16;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}n.head&&(n.head.xflags=u&255,n.head.os=u>>8),n.flags&512&&n.wrap&4&&(I[0]=u&255,I[1]=u>>>8&255,n.check=Zt(n.check,I,2,0)),u=0,d=0,n.mode=fy;case fy:if(n.flags&1024){for(;d<16;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}n.length=u,n.head&&(n.head.extra_len=u),n.flags&512&&n.wrap&4&&(I[0]=u&255,I[1]=u>>>8&255,n.check=Zt(n.check,I,2,0)),u=0,d=0}else n.head&&(n.head.extra=null);n.mode=dy;case dy:if(n.flags&1024&&(s=n.length,s>o&&(s=o),s&&(n.head&&(T=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(l,l+s),T)),n.flags&512&&n.wrap&4&&(n.check=Zt(n.check,r,s,l)),o-=s,l+=s,n.length-=s),n.length))break e;n.length=0,n.mode=hy;case hy:if(n.flags&2048){if(o===0)break e;s=0;do T=r[l+s++],n.head&&T&&n.length<65536&&(n.head.name+=String.fromCharCode(T));while(T&&s<o);if(n.flags&512&&n.wrap&4&&(n.check=Zt(n.check,r,s,l)),o-=s,l+=s,T)break e}else n.head&&(n.head.name=null);n.length=0,n.mode=py;case py:if(n.flags&4096){if(o===0)break e;s=0;do T=r[l+s++],n.head&&T&&n.length<65536&&(n.head.comment+=String.fromCharCode(T));while(T&&s<o);if(n.flags&512&&n.wrap&4&&(n.check=Zt(n.check,r,s,l)),o-=s,l+=s,T)break e}else n.head&&(n.head.comment=null);n.mode=my;case my:if(n.flags&512){for(;d<16;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if(n.wrap&4&&u!==(n.check&65535)){e.msg="header crc mismatch",n.mode=Bt;break}u=0,d=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=zr;break;case gy:for(;d<32;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}e.adler=n.check=Ay(u),u=0,d=0,n.mode=Cc;case Cc:if(n.havedict===0)return e.next_out=v,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=u,n.bits=d,uX;e.adler=n.check=1,n.mode=zr;case zr:if(t===sX||t===vu)break e;case ed:if(n.last){u>>>=d&7,d-=d&7,n.mode=nd;break}for(;d<3;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}switch(n.last=u&1,u>>>=1,d-=1,u&3){case 0:n.mode=vy;break;case 1:if(vX(n),n.mode=yu,t===vu){u>>>=2,d-=2;break e}break;case 2:n.mode=by;break;case 3:e.msg="invalid block type",n.mode=Bt}u>>>=2,d-=2;break;case vy:for(u>>>=d&7,d-=d&7;d<32;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if((u&65535)!==(u>>>16^65535)){e.msg="invalid stored block lengths",n.mode=Bt;break}if(n.length=u&65535,u=0,d=0,n.mode=td,t===vu)break e;case td:n.mode=yy;case yy:if(s=n.length,s){if(s>o&&(s=o),s>a&&(s=a),s===0)break e;i.set(r.subarray(l,l+s),v),o-=s,l+=s,a-=s,v+=s,n.length-=s;break}n.mode=zr;break;case by:for(;d<14;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if(n.nlen=(u&31)+257,u>>>=5,d-=5,n.ndist=(u&31)+1,u>>>=5,d-=5,n.ncode=(u&15)+4,u>>>=4,d-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=Bt;break}n.have=0,n.mode=_y;case _y:for(;n.have<n.ncode;){for(;d<3;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}n.lens[L[n.have++]]=u&7,u>>>=3,d-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,D={bits:n.lenbits},E=Rs(oX,n.lens,0,19,n.lencode,0,n.work,D),n.lenbits=D.bits,E){e.msg="invalid code lengths set",n.mode=Bt;break}n.have=0,n.mode=wy;case wy:for(;n.have<n.nlen+n.ndist;){for(;m=n.lencode[u&(1<<n.lenbits)-1],y=m>>>24,b=m>>>16&255,_=m&65535,!(y<=d);){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if(_<16)u>>>=y,d-=y,n.lens[n.have++]=_;else{if(_===16){for(N=y+2;d<N;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if(u>>>=y,d-=y,n.have===0){e.msg="invalid bit length repeat",n.mode=Bt;break}T=n.lens[n.have-1],s=3+(u&3),u>>>=2,d-=2}else if(_===17){for(N=y+3;d<N;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}u>>>=y,d-=y,T=0,s=3+(u&7),u>>>=3,d-=3}else{for(N=y+7;d<N;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}u>>>=y,d-=y,T=0,s=11+(u&127),u>>>=7,d-=7}if(n.have+s>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=Bt;break}for(;s--;)n.lens[n.have++]=T}}if(n.mode===Bt)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=Bt;break}if(n.lenbits=9,D={bits:n.lenbits},E=Rs(W2,n.lens,0,n.nlen,n.lencode,0,n.work,D),n.lenbits=D.bits,E){e.msg="invalid literal/lengths set",n.mode=Bt;break}if(n.distbits=6,n.distcode=n.distdyn,D={bits:n.distbits},E=Rs(Y2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,D),n.distbits=D.bits,E){e.msg="invalid distances set",n.mode=Bt;break}if(n.mode=yu,t===vu)break e;case yu:n.mode=bu;case bu:if(o>=6&&a>=258){e.next_out=v,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=u,n.bits=d,eX(e,f),v=e.next_out,i=e.output,a=e.avail_out,l=e.next_in,r=e.input,o=e.avail_in,u=n.hold,d=n.bits,n.mode===zr&&(n.back=-1);break}for(n.back=0;m=n.lencode[u&(1<<n.lenbits)-1],y=m>>>24,b=m>>>16&255,_=m&65535,!(y<=d);){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if(b&&(b&240)===0){for(w=y,S=b,x=_;m=n.lencode[x+((u&(1<<w+S)-1)>>w)],y=m>>>24,b=m>>>16&255,_=m&65535,!(w+y<=d);){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}u>>>=w,d-=w,n.back+=w}if(u>>>=y,d-=y,n.back+=y,n.length=_,b===0){n.mode=ky;break}if(b&32){n.back=-1,n.mode=zr;break}if(b&64){e.msg="invalid literal/length code",n.mode=Bt;break}n.extra=b&15,n.mode=Cy;case Cy:if(n.extra){for(N=n.extra;d<N;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}n.length+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=Sy;case Sy:for(;m=n.distcode[u&(1<<n.distbits)-1],y=m>>>24,b=m>>>16&255,_=m&65535,!(y<=d);){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if((b&240)===0){for(w=y,S=b,x=_;m=n.distcode[x+((u&(1<<w+S)-1)>>w)],y=m>>>24,b=m>>>16&255,_=m&65535,!(w+y<=d);){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}u>>>=w,d-=w,n.back+=w}if(u>>>=y,d-=y,n.back+=y,b&64){e.msg="invalid distance code",n.mode=Bt;break}n.offset=_,n.extra=b&15,n.mode=xy;case xy:if(n.extra){for(N=n.extra;d<N;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}n.offset+=u&(1<<n.extra)-1,u>>>=n.extra,d-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=Bt;break}n.mode=Ty;case Ty:if(a===0)break e;if(s=f-a,n.offset>s){if(s=n.offset-s,s>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=Bt;break}s>n.wnext?(s-=n.wnext,h=n.wsize-s):h=n.wnext-s,s>n.length&&(s=n.length),g=n.window}else g=i,h=v-n.offset,s=n.length;s>a&&(s=a),a-=s,n.length-=s;do i[v++]=g[h++];while(--s);n.length===0&&(n.mode=bu);break;case ky:if(a===0)break e;i[v++]=n.length,a--,n.mode=bu;break;case nd:if(n.wrap){for(;d<32;){if(o===0)break e;o--,u|=r[l++]<<d,d+=8}if(f-=a,e.total_out+=f,n.total+=f,n.wrap&4&&f&&(e.adler=n.check=n.flags?Zt(n.check,i,f,v-f):gl(n.check,i,f,v-f)),f=a,n.wrap&4&&(n.flags?u:Ay(u))!==n.check){e.msg="incorrect data check",n.mode=Bt;break}u=0,d=0}n.mode=Ey;case Ey:if(n.wrap&&n.flags){for(;d<32;){if(o===0)break e;o--,u+=r[l++]<<d,d+=8}if(n.wrap&4&&u!==(n.total&4294967295)){e.msg="incorrect length check",n.mode=Bt;break}u=0,d=0}n.mode=Oy;case Oy:E=lX;break e;case Bt:E=X2;break e;case G2:return K2;case q2:default:return qn}return e.next_out=v,e.avail_out=a,e.next_in=l,e.avail_in=o,n.hold=u,n.bits=d,(n.wsize||f!==e.avail_out&&n.mode<Bt&&(n.mode<nd||t!==oy))&&tC(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?Zt(n.check,i,f,e.next_out-f):gl(n.check,i,f,e.next_out-f)),e.data_type=n.bits+(n.last?64:0)+(n.mode===zr?128:0)+(n.mode===yu||n.mode===td?256:0),(c===0&&f===0||t===oy)&&E===$a&&(E=cX),E},bX=e=>{if(Xa(e))return qn;let t=e.state;return t.window&&(t.window=null),e.state=null,$a},_X=(e,t)=>{if(Xa(e))return qn;const n=e.state;return(n.wrap&2)===0?qn:(n.head=t,t.done=!1,$a)},wX=(e,t)=>{const n=t.length;let r,i,l;return Xa(e)||(r=e.state,r.wrap!==0&&r.mode!==Cc)?qn:r.mode===Cc&&(i=1,i=gl(i,t,n,0),i!==r.check)?X2:(l=tC(e,t,n,n),l?(r.mode=G2,K2):(r.havedict=1,$a))};var CX=J2,SX=Q2,xX=Z2,TX=gX,kX=eC,EX=yX,OX=bX,AX=_X,PX=wX,IX="pako inflate (from Nodeca project)",Yr={inflateReset:CX,inflateReset2:SX,inflateResetKeep:xX,inflateInit:TX,inflateInit2:kX,inflate:EX,inflateEnd:OX,inflateGetHeader:AX,inflateSetDictionary:PX,inflateInfo:IX};function MX(){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 LX=MX;const nC=Object.prototype.toString,{Z_NO_FLUSH:RX,Z_FINISH:DX,Z_OK:bl,Z_STREAM_END:ad,Z_NEED_DICT:od,Z_STREAM_ERROR:$X,Z_DATA_ERROR:Iy,Z_MEM_ERROR:BX}=Ko;function jl(e){this.options=rf.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 U2,this.strm.avail_out=0;let n=Yr.inflateInit2(this.strm,t.windowBits);if(n!==bl)throw new Error(Ra[n]);if(this.header=new LX,Yr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=yl.string2buf(t.dictionary):nC.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=Yr.inflateSetDictionary(this.strm,t.dictionary),n!==bl)))throw new Error(Ra[n])}jl.prototype.push=function(e,t){const n=this.strm,r=this.options.chunkSize,i=this.options.dictionary;let l,v,o;if(this.ended)return!1;for(t===~~t?v=t:v=t===!0?DX:RX,nC.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=Yr.inflate(n,v),l===od&&i&&(l=Yr.inflateSetDictionary(n,i),l===bl?l=Yr.inflate(n,v):l===Iy&&(l=od));n.avail_in>0&&l===ad&&n.state.wrap>0&&e[n.next_in]!==0;)Yr.inflateReset(n),l=Yr.inflate(n,v);switch(l){case $X:case Iy:case od:case BX:return this.onEnd(l),this.ended=!0,!1}if(o=n.avail_out,n.next_out&&(n.avail_out===0||l===ad))if(this.options.to==="string"){let a=yl.utf8border(n.output,n.next_out),u=n.next_out-a,d=yl.buf2string(n.output,a);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(a,a+u),0),this.onData(d)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(l===bl&&o===0)){if(l===ad)return l=Yr.inflateEnd(this.strm),this.onEnd(l),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};jl.prototype.onData=function(e){this.chunks.push(e)};jl.prototype.onEnd=function(e){e===bl&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=rf.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function _m(e,t){const n=new jl(t);if(n.push(e),n.err)throw n.msg||Ra[n.err];return n.result}function FX(e,t){return t=t||{},t.raw=!0,_m(e,t)}var zX=jl,NX=_m,jX=FX,VX=_m,UX=Ko,HX={Inflate:zX,inflate:NX,inflateRaw:jX,ungzip:VX,constants:UX};const{Deflate:qG,deflate:ZG,deflateRaw:WX,gzip:JG}=JY,{Inflate:QG,inflate:eq,inflateRaw:YX,ungzip:tq}=HX;var XX=WX,KX=YX;function My(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 GX=function(){if(!window.location.search.includes("?"))return;const t=window.location.search.replace("?","").split("&");let n=My(t);if(console.log("URL params:",n),n.get("share")){const l=KX(new Uint8Array(atob(n.get("share")).split("").map(v=>v.charCodeAt(0))),{to:"string"});if(!l){Ut().raiseError("Error when trying to decode share parameter!",!1);return}n=My(l.split("&")),console.log("Share URL params:",n)}const r={id:-1,image:"",prompt:n.get("prompt")||"",sampler_name:n.get("sampler_name")||"k_euler",seed:Number(n.get("seed"))||-1,steps:Number(n.get("steps")||20),cfg_scale:Number(n.get("cfg_scale")||5),height:Number(n.get("height")||512),width:Number(n.get("width")||512),clip_skip:Number(n.get("clip_skip")||0),frames:Number(n.get("frames")||1),fps:Number(n.get("fps")||16),scheduler:n.get("scheduler")||"default"};Jt().generateText2Img(r,!1)},qX=10;function Uu(e,t,n,r,i=l=>Ut().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(v=>`${v[0]} - ${v[1]}`).join(" | ");return i(`${r}: ${t.message} (${l})`)}const ZX=Bo("interrogate",()=>{const e=oe({}),t=oe(!1);async function n(v){Ut().raiseError(v,!1),t.value=!1,e.value={}}async function r(){const v=zt(),{source_image:o}=e.value;if(!o)return n("Failed to get interrogation ID: No image supplied.");t.value=!0;const a=await fetch(`${v.baseURL.length===0?".":v.baseURL}/sdapi/v1/interrogate`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({image:o.split(",")[1],model:"clip"})}),u=await a.json();!Uu(a,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}}),wm=e=>(ai("data-v-db184ac6"),e=e(),oi(),e),JX={key:0,style:{"margin-top":"16px"}},QX=wm(()=>re("div",null,[Ue("Drop file here OR "),re("em",null,"click to upload")],-1)),eK={key:1,style:{"margin-top":"16px"}},tK={key:2},nK={style:{"margin-top":"8px"}},rK=wm(()=>re("h2",{style:{margin:"16px 0 8px 0"}},"Interrogation Results",-1)),iK={key:0},aK=wm(()=>re("h3",null,"Caption",-1)),oK={key:0},sK={key:1},lK=Ee({__name:"InterrogationView",setup(e){const t=ZX(),n=Jt(),r=Ut(),i=oe();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 d=await Ch(u.raw);t.currentInterrogation.source_image=d,t.interrogateImage()}function v(){n.generateText2Img({prompt:o.value})}const o=ee(()=>t.getFormStatus()),{ellipsis:a}=_2();return(u,d)=>C(t).currentInterrogation.source_image?C(t).currentInterrogation.status?(z(),se("div",tK,[re("div",nK,[ue(C(ht),{icon:C(Ag),onClick:C(t).resetInterrogation},{default:he(()=>[Ue("New Interrogation")]),_:1},8,["icon","onClick"]),C(o)?(z(),be(C(ht),{key:0,icon:C(Ag),onClick:v,disabled:!C(o)},{default:he(()=>[Ue("Text2Img (Caption)")]),_:1},8,["icon","disabled"])):ye("",!0)]),rK,ue(C(Fp),{src:C(t).currentInterrogation.source_image,alt:"Uploaded Image"},null,8,["src"]),C(o)?(z(),se("div",iK,[aK,C(o)?(z(),se("div",sK,[re("strong",null,Ae(C(o)),1)])):(z(),se("div",oK,"Processing"+Ae(C(a)),1))])):ye("",!0)])):(z(),se("div",eK,[re("strong",null,"Uploading image"+Ae(C(a)),1)])):(z(),se("div",JX,[re("div",null,[ue(C(Up),{onChange:l,"auto-upload":!1,limit:1,class:"interrogation-upload",ref_key:"upload",ref:i,multiple:"",drag:""},{default:he(()=>[ue(C(Le),{size:100},{default:he(()=>[ue(C(lp))]),_:1}),QX]),_:1},512)])]))}});const uK=qt(lK,[["__scopeId","data-v-db184ac6"]]);function cK(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),v=Math.floor(e%86400%3600%60),o=r>0?r+(t?"d":"days"):"",a=i>0?i+(t?"h":"hours"):"",u=l>0?l+(t?"m":"minutes"):"",d=v>0?v+(t?"s":"seconds"):"",c=[];return n!=null&&n.days&&c.push(o),n!=null&&n.hours&&c.push(a),n!=null&&n.minutes&&c.push(u),n!=null&&n.seconds&&c.push(d),c.join(" ")}const fK={class:"form"},dK={key:0,style:{"padding-bottom":"50px"}},hK=re("h1",{style:{margin:"0"}},"Interrogation",-1),pK=re("div",null,"Interrogate images to get their predicted descriptions.",-1),mK={class:"sidebar"},gK=re("span",{style:{height:"100%","font-size":"14px"}},[Ue("Reference Image: "),re("br"),Ue("(Photomaker/Kontext) ")],-1),vK={class:"main"},yK={class:"image center-horizontal"},bK={key:0},_K=Ee({__name:"GenerateView",setup(e){const n=Sp(Cp).smallerOrEqual("md"),r=Jt(),i=Ut(),l=Is();zt();const v=hv(async()=>{const g=r.cacheVersion,y=(await r.getAvailableSamplers()).map(b=>b.name);return y.length===0?[]:u(y)},[]),o=hv(async()=>{const g=r.cacheVersion,y=(await r.getAvailableSchedulers()).map(b=>b.name);return y.length===0?[]:d(y)},[]),a=vt({prompt:[{required:!0,message:"Please input prompt",trigger:"change"}]});function u(g){return!r.params||!r.params.sampler_name||g.indexOf(r.params.sampler_name)===-1&&(r.params.sampler_name=g[0]),g}function d(g){return!r.params||!r.params.scheduler||g.indexOf(r.params.scheduler)===-1&&(r.params.scheduler=g[0]),g}function c(g){return"Elapsed: "+cK(g,!0,{days:!0,hours:!0,minutes:!0,seconds:!0})}function f(){r.validGeneratorTypes.includes(r.generatorType)||(i.showGeneratorBadge=!1)}function s(g){r.generatorType=g,f(),console.log(g)}function h(){l.showCropPreview=!0,l.updateCropPreview()}return f(),GX(),(g,m)=>(z(),se(je,null,[ue(C(fw),{"default-active":C(r).generatorType,collapse:!0,onSelect:s,mode:C(n)?"horizontal":"vertical",class:de(C(n)?"mobile-generator-types":"generator-types"),style:Ne(C(n)?"overflow-x: auto":"")},{default:he(()=>[ue(pu,{index:"Text2Img","icon-one":C(xE),"icon-two":C(ql),isMobile:C(n)},null,8,["icon-one","icon-two","isMobile"]),ue(pu,{index:"Img2Img","icon-one":C(ql),"icon-two":C(ql),isMobile:C(n)},null,8,["icon-one","icon-two","isMobile"]),ue(pu,{index:"Inpainting","icon-one":b2,"icon-two":C(ql),isMobile:C(n)},null,8,["icon-two","isMobile"]),ue(pu,{index:"Interrogation","icon-one":hH,isMobile:C(n)},null,8,["isMobile"])]),_:1},8,["default-active","mode","class","style"]),re("div",fK,[C(r).generatorType==="Interrogation"?(z(),se("div",dK,[hK,pK,ue(uK)])):(z(),be(C(Bp),{key:1,"label-position":"left","label-width":"140px",model:C(r),class:"container",rules:a,onSubmit:m[29]||(m[29]=tt(()=>{},["prevent"]))},{default:he(()=>[re("div",mK,[ue(IH),ue(wh,{label:"Negative Prompt",prop:"negativePrompt",modelValue:C(r).negativePrompt,"onUpdate:modelValue":m[0]||(m[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(wh,{label:"Seed",prop:"seed",modelValue:C(r).params.seed,"onUpdate:modelValue":m[2]||(m[2]=y=>C(r).params.seed=y),placeholder:"Enter seed here",clearable:"","clear-icon":C(hE)},{append:he(()=>[ue(C(Mr),{content:"Randomize!",placement:"top"},{default:he(()=>[ue(C(ht),{icon:C(H3),onClick:m[1]||(m[1]=()=>C(r).params.seed=C(rC)())},null,8,["icon"])]),_:1})]),_:1},8,["modelValue","clear-icon"]),(z(),be(C(g0),{key:0,gutter:10},{default:he(()=>[C(r).multiSelect.sampler.state==="Multiple"?(z(),be(C(Qa),{key:0,span:C(n)?24:12},{default:he(()=>[ue(fo,{label:"Sampler(s)",prop:"samplers",modelValue:C(r).multiSelect.sampler.selected,"onUpdate:modelValue":m[3]||(m[3]=y=>C(r).multiSelect.sampler.selected=y),options:C(v),info:"Multi-select enabled. Heun and DPM2 double generation time per step, but converge twice as fast.",multiple:""},null,8,["modelValue","options"])]),_:1},8,["span"])):ye("",!0),C(r).multiSelect.sampler.state==="Enabled"?(z(),be(C(Qa),{key:1,span:C(n)?24:12},{default:he(()=>[ue(fo,{label:"Sampler",prop:"sampler",modelValue:C(r).params.sampler_name,"onUpdate:modelValue":m[4]||(m[4]=y=>C(r).params.sampler_name=y),options:C(v),info:"Heun and DPM2 double generation time per step, but converge twice as fast."},null,8,["modelValue","options"])]),_:1},8,["span"])):ye("",!0),C(r).multiSelect.scheduler.state==="Multiple"?(z(),be(C(Qa),{key:2,span:C(n)?24:12},{default:he(()=>[ue(fo,{label:"Scheduler(s)",prop:"schedulers",modelValue:C(r).multiSelect.scheduler.selected,"onUpdate:modelValue":m[5]||(m[5]=y=>C(r).multiSelect.scheduler.selected=y),options:C(o),info:"Multi-select enabled. Experimental! KoboldCpp only, allows you to use a different scheduler. Leave as default otherwise.",multiple:""},null,8,["modelValue","options"])]),_:1},8,["span"])):ye("",!0),C(r).multiSelect.scheduler.state==="Enabled"?(z(),be(C(Qa),{key:3,span:C(n)?24:12},{default:he(()=>[ue(fo,{label:"Scheduler",prop:"scheduler",modelValue:C(r).params.scheduler,"onUpdate:modelValue":m[6]||(m[6]=y=>C(r).params.scheduler=y),options:C(o),info:"Experimental! KoboldCpp only, allows you to use a different scheduler. Leave as default otherwise."},null,8,["modelValue","options"])]),_:1},8,["span"])):ye("",!0)]),_:1})),ue(gn,{label:"Batch Size",prop:"batchSize",modelValue:C(r).params.n,"onUpdate:modelValue":m[7]||(m[7]=y=>C(r).params.n=y),min:C(r).minImages,max:C(r).maxImages},null,8,["modelValue","min","max"]),C(r).multiSelect.steps.state==="Multiple"?(z(),be(gn,{key:1,label:"Steps(s)",prop:"multiSteps",modelValue:C(r).multiSelect.steps.selected,"onUpdate:modelValue":m[8]||(m[8]=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"])):C(r).multiSelect.steps.state==="Enabled"?(z(),be(gn,{key:2,label:"Steps",prop:"steps",modelValue:C(r).params.steps,"onUpdate:modelValue":m[9]||(m[9]=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"])):ye("",!0),ue(gn,{label:"Width",prop:"width",modelValue:C(r).params.width,"onUpdate:modelValue":m[10]||(m[10]=y=>C(r).params.width=y),min:C(r).minDimensions,max:C(r).maxDimensions,step:64,change:h},null,8,["modelValue","min","max"]),ue(gn,{label:"Height",prop:"height",modelValue:C(r).params.height,"onUpdate:modelValue":m[11]||(m[11]=y=>C(r).params.height=y),min:C(r).minDimensions,max:C(r).maxDimensions,step:64,change:h},null,8,["modelValue","min","max"]),C(r).multiSelect.guidance.state==="Multiple"?(z(),be(gn,{key:3,label:"Guidance(s)",prop:"cfgScales",modelValue:C(r).multiSelect.guidance.selected,"onUpdate:modelValue":m[12]||(m[12]=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"])):C(r).multiSelect.guidance.state==="Enabled"?(z(),be(gn,{key:4,label:"Guidance",prop:"cfgScale",modelValue:C(r).params.cfg_scale,"onUpdate:modelValue":m[13]||(m[13]=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"])):ye("",!0),C(r).multiSelect.eta.state==="Enabled"?(z(),be(gn,{key:5,label:"Eta",prop:"eta",modelValue:C(r).params.eta,"onUpdate:modelValue":m[14]||(m[14]=y=>C(r).params.eta=y),min:C(r).minEta,max:C(r).maxEta,step:.1,info:"Noise multiplier for ancestral samplers. 0 disables noise injection."},null,8,["modelValue","min","max","step"])):ye("",!0),C(r).multiSelect.clipSkip.state==="Multiple"?(z(),be(gn,{key:6,label:"CLIP Skip(s)",prop:"clipSkips",modelValue:C(r).multiSelect.clipSkip.selected,"onUpdate:modelValue":m[15]||(m[15]=y=>C(r).multiSelect.clipSkip.selected=y),min:C(r).minClipSkip,max:C(r).maxClipSkip,info:"Multi-select enabled. Last layers of CLIP to ignore. For most situations this can be left alone.",multiple:""},null,8,["modelValue","min","max"])):C(r).multiSelect.clipSkip.state==="Enabled"?(z(),be(gn,{key:7,label:"CLIP Skip",prop:"clipSkip",modelValue:C(r).params.clip_skip,"onUpdate:modelValue":m[16]||(m[16]=y=>C(r).params.clip_skip=y),min:C(r).minClipSkip,max:C(r).maxClipSkip,info:"Last layers of CLIP to ignore. For most situations this can be left alone."},null,8,["modelValue","min","max"])):ye("",!0),C(r).sourceGeneratorTypes.includes(C(r).generatorType)?(z(),be(gn,{key:8,label:"Init Strength",prop:"denoise",modelValue:C(r).params.denoising_strength,"onUpdate:modelValue":m[17]||(m[17]=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. 0=unchanged, 1=fullychanged"},null,8,["modelValue","min","max","step"])):ye("",!0),ue(gn,{label:"Video Frames",prop:"frames",modelValue:C(r).params.frames,"onUpdate:modelValue":m[18]||(m[18]=y=>C(r).params.frames=y),min:C(r).minFrames,max:C(r).maxFrames,info:"Number of consecutive video frames to generate (Video models only). More frames increases memory usage."},null,8,["modelValue","min","max"]),C(r).params.frames>1?(z(),be(gn,{key:9,label:"FPS",prop:"fps",modelValue:C(r).params.fps,"onUpdate:modelValue":m[19]||(m[19]=y=>C(r).params.fps=y),min:C(r).minFps,max:C(r).maxFps,disabled:C(r).params.frames<=1,info:"Frames per second for video generation."},null,8,["modelValue","min","max","disabled"])):ye("",!0),re("div",null,[gK,re("input",{class:"el-button",type:"file",id:"extra_image_input",onChange:m[20]||(m[20]=y=>C(r).setExtraImage(y)),accept:"image/*",multiple:""},null,32),re("button",{onClick:m[21]||(m[21]=y=>C(r).clearExtraImage()),class:"el-button"},"Clear Image"),ue(C(g0),null,{default:he(()=>[ue(C(Qa),{span:C(n)?24:12},{default:he(()=>[ue(Wf,{label:"ESRGAN Upscale",prop:"enable_hr",modelValue:C(r).params.enable_hr,"onUpdate:modelValue":m[22]||(m[22]=y=>C(r).params.enable_hr=y),info:"Enable upscale with ESRGAN."},null,8,["modelValue"])]),_:1},8,["span"]),ue(C(Qa),{span:C(n)?24:12},{default:he(()=>[C(r).generatorType==="Img2Img"?(z(),be(Wf,{key:0,label:"Send as RefImg",prop:"send_as_refimg",modelValue:C(r).params.send_as_refimg,"onUpdate:modelValue":m[23]||(m[23]=y=>C(r).params.send_as_refimg=y),info:"Instead of regular Img2Img, send the image as a reference image for edit models."},null,8,["modelValue"])):ye("",!0),C(r).generatorType==="Img2Img"&&C(r).params.send_as_refimg&&C(r).params.frames>1?(z(),be(Wf,{key:1,label:"Reverse RefImg",prop:"reverse_refimg",modelValue:C(r).params.reverse_refimg,"onUpdate:modelValue":m[24]||(m[24]=y=>C(r).params.reverse_refimg=y),info:"Use the reference image as the final frame instead of the first frame."},null,8,["modelValue"])):ye("",!0)]),_:1},8,["span"])]),_:1})])]),re("div",vK,[ue(C(ht),{onClick:m[25]||(m[25]=()=>{C(r).cancelled=!0,C(r).generating=!1,C(r).resetStore()}),class:"reset-btn"},{default:he(()=>[Ue("Reset")]),_:1}),ue(C(ht),{type:"primary",class:"generate-cancel-btn",style:Ne(C(r).generating?"width: 55%;":""),onClick:m[26]||(m[26]=()=>C(r).generateImage(C(r).generatorType))},{default:he(()=>[re("span",null," Generate "+Ae(C(r).totalImageCount)+" image"+Ae(C(r).totalImageCount===1?"":"s"),1)]),_:1},8,["style"]),C(r).generating?(z(),be(C(ht),{key:0,type:"danger",class:"generate-cancel-btn",style:{width:"25%"},disabled:C(r).cancelled,onClick:m[27]||(m[27]=()=>{C(r).cancelled=!0,C(r).generating=!1,C(r).clearQueue()})},{default:he(()=>[Ue("Cancel all")]),_:1},8,["disabled"])):ye("",!0)]),re("div",yK,[ue(C(h$),{class:"center-both generated-image"},{default:he(()=>[!C(r).generating&&C(r).outputs.length==0?(z(),se("div",bK,[/Inpainting/.test(C(r).generatorType)?(z(),be(W0,{key:0})):ye("",!0),/Img2Img/.test(C(r).generatorType)?(z(),be(W0,{key:1})):ye("",!0)])):ye("",!0),!C(i).showGeneratedImages&&C(r).generating?(z(),be(wH,{key:1,generated:C(r).outputs.length,total:C(r).queue.length,elapsed:c(C(r).timer.seconds),onShowGenerated:m[28]||(m[28]=y=>C(i).showGeneratedImages=!0)},null,8,["generated","total","elapsed"])):ye("",!0),C(i).showGeneratedImages&&C(r).outputs.length!==0?(z(),be(jH,{key:2})):ye("",!0)]),_:1})])]),_:1},8,["model","rules"]))])],64))}});const Ds=ak({history:CT("./"),routes:[{path:"/",name:"generate",component:_K},{path:"/images",name:"images",component:()=>Hf(()=>Promise.resolve().then(()=>xG),void 0,import.meta.url)},{path:"/about",name:"about",component:()=>Hf(()=>Promise.resolve().then(()=>BG),void 0,import.meta.url)},{path:"/options",name:"options",component:()=>Hf(()=>Promise.resolve().then(()=>YG),void 0,import.meta.url)},{path:"/return",name:"return",redirect:e=>(window.location.href=window.location.pathname.endsWith("/")?"..":".","/")}]});function wK(e){const t=[],n=/<lora:([^:>]+):([^>]+)>/g;return[e.replace(n,(i,l,v)=>{if(v.trim()==="")return"";const o=Number(v);if(isNaN(o))return"";let a=l,u=!1;const d="|high_noise|";return a.startsWith(d)&&(a=a.substring(d.length),u=!0),t.push({name:a,multiplier:o,...u?{is_high_noise:!0}:{}}),""}),t]}function _u(){return{steps:20,n:1,sampler_name:"Euler",width:512,height:512,cfg_scale:5,eta:1,clip_skip:0,seed:-1,denoising_strength:.6,frames:1,fps:16,enable_hr:!1,send_as_refimg:!0,reverse_refimg:!1,scheduler:"default"}}function rC(){return Math.floor(Math.random()*9999999)+1}const Jt=Bo("generator",()=>{const e=["Text2Img","Img2Img","Inpainting"],t=["Img2Img","Inpainting"],n=oe("Text2Img"),r=oe(""),i=Sn("promptHistory",[]),l=oe(""),v=Sn("negativeLibrary",[]),o=oe(_u()),a=oe({interval:0,seconds:0}),u=oe({sampler:{name:"Sampler",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.sampler_name],mapToParam:we=>we.sampler_name},scheduler:{name:"Scheduler",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.scheduler],mapToParam:we=>we.scheduler},steps:{name:"Steps",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.steps],mapToParam:we=>we.steps},guidance:{name:"CFG Scale",state:"Enabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.cfg_scale],mapToParam:we=>we.cfg_scale},clipSkip:{name:"Clip Skip",state:"Disabled",allowedStates:["Disabled","Enabled","Multiple"],selected:[o.value.clip_skip],mapToParam:we=>we.clip_skip},eta:{name:"Eta",state:"Disabled",allowedStates:["Disabled","Enabled"],selected:[o.value.eta],mapToParam:we=>we.eta}}),d=()=>({sourceProcessing:void 0,sourceImage:void 0,maskImage:void 0}),c=oe({...d(),sourceProcessing:"inpainting"}),f=oe({...d(),sourceProcessing:"img2img"}),s=we=>we==="Inpainting"?c.value:we==="Img2Img"?f.value:d(),h=ee(()=>s(n.value)),g=oe(""),m=oe(!1),y=oe(!1),b=oe([]),_=oe([]),w=oe(64),S=ee(()=>zt().allowLargerParams==="Enabled"?3072:1024),x=oe(1),T=oe(20),E=oe(1),I=ee(()=>zt().allowLargerParams==="Enabled"?150:50),D=oe(1),N=oe(24),L=oe(0),F=oe(1),O=oe(0),V=oe(1),ne=oe(0),J=oe(10),le=oe(1),M=ee(()=>zt().allowLargerParams==="Enabled"?400:200),U=oe(16),R=ee(()=>zt().allowLargerParams==="Enabled"?32:24),P=(we,$e,Ve)=>Array.from({length:($e-we+1)/Ve},(Qe,at)=>(at+we)*Ve),Q=oe(P(ne.value,J.value,1)),j=oe(P(D.value,N.value,.5)),A=ee(()=>{const we=(hi,pi,Jo=1)=>hi*(pi.state==="Multiple"&&pi.selected.length>0?pi.selected.length:Jo),Ve=o.value.n*B().length,Qe=we(Ve,u.value.sampler),at=we(Qe,u.value.scheduler),We=we(at,u.value.steps),Lt=we(We,u.value.guidance);return we(Lt,u.value.clipSkip)});function q(){return o.value=_u(),c.value=d(),f.value=d(),b.value=[],Ut().showGeneratedImages=!1,G(),!0}function G(){_.value=[]}function te(){b.value=[]}async function fe(){const we=zt(),$e=we.baseURL.length===0?".":we.baseURL,Ve=await fetch(`${$e}/sdapi/v1/loras`),Qe=await Ve.json();return Uu(Ve,Qe,200,"Failed to get available LoRAs")?Qe:[]}async function pe(we){if(!e.includes(we))return[];if(r.value==="")return H("Failed to generate: No prompt submitted.");const $e=Is(),Ve=Ut();$e.saveImages();const{sourceImage:Qe,maskImage:at,sourceProcessing:We}=s(we);_e(r.value);const Lt=[],hi=B().map(rt=>{const Vt=rt.split(" ### ");return{full_prompt:rt,prompt:Vt[0],negative_prompt:Vt[1]||""}}).map(rt=>{const[Vt,Dr]=wK(rt.prompt);return{...rt,prompt:Vt,extractedLoras:Dr}}),pi=hi.some(rt=>rt.extractedLoras.length>0)?await fe():[],Jo=hi.map(({extractedLoras:rt,...Vt})=>{const Dr=rt.length>0&&pi.length>0?rt.map(Qn=>{const qi=pi.find(Zi=>Zi.name===Qn.name||Zi.path===Qn.name);return{path:qi?qi.path:Qn.name,multiplier:Qn.multiplier,...Qn.is_high_noise?{is_high_noise:!0}:{}}}):[];return{...Vt,...Dr.length>0?{lora:Dr}:{}}}),{seed:Gi,cfg_scale:pr,eta:Sm,steps:Rr,clip_skip:cC,sampler_name:fC,scheduler:dC,n:hC,...Ul}=o.value,sf=parseInt(Gi.toString()),pC=isNaN(sf)||sf<0?rC():sf,mC=Array.from({length:hC},(rt,Vt)=>pC+Vt),Ga=(rt,Vt)=>rt.state==="Disabled"?[]:rt.state==="Enabled"?[Vt]:rt.state==="Multiple"&&rt.selected.length===0?[]:rt.selected,gC={promptVariant:Jo,seed:mC,cfg_scale:Ga(u.value.guidance,pr),eta:Ga(u.value.eta,Sm),steps:Ga(u.value.steps,Rr),clip_skip:Ga(u.value.clipSkip,cC),sampler_name:Ga(u.value.sampler,fC),scheduler:Ga(u.value.scheduler,dC)},vC=(rt=>Object.entries(rt).filter(([Dr,Qn])=>Qn.length>0).reduce((Dr,[Qn,qi])=>{const Zi=[];for(const tn of Dr)for(const bC of qi)Zi.push({...tn,[Qn]:bC});return Zi},[{}]))(gC),yC=[await ie()];for(const rt of vC){const{promptVariant:{full_prompt:Vt,...Dr},...Qn}=rt,qi=we==="Img2Img"?Ul.send_as_refimg:!1,Zi=qi&&Ul.frames>1?Ul.reverse_refimg:!1;let tn={prompt:Vt,params:{...Ul,send_as_refimg:qi,reverse_refimg:Zi,...Qn,...Dr,init_images:Qe?[Qe.split(",")[1]]:[],mask:at,inpainting_mask_invert:at?0:null,inpainting_fill:at?1:null},source_image:Qe==null?void 0:Qe.split(",")[1],source_mask:at,source_processing:We,models:yC};tn.params.sampler_name=="default"&&delete tn.params.sampler_name,tn.params.scheduler=="default"&&delete tn.params.scheduler,!tn.params.frames||tn.params.frames<=1?(delete tn.params.frames,delete tn.params.fps):tn.params.fps=Math.min(R.value,Math.max(U.value,Math.round(Number(tn.params.fps)||_u().fps))),Me&&Me.length>0&&(tn.params.extra_images=Me),zt().alsoRequestAvi==="Enabled"&&tn.params.frames&&tn.params.frames>1&&(tn.params.video_output_type=2),Lt.push(tn)}let xm=!1;m.value||(xm=!0,b.value=[]),m.value=!0,Ve.showGeneratedImages=!1;let Tm=_.value.filter(rt=>!rt.gathered&&!rt.failed).length;for(let rt=0;rt<Lt.length;rt++)Tm<qX&&(_.value.push({...Lt[rt],jobId:"",index:rt,gathered:!1,failed:!1}),++Tm);if(!!xm)for(y.value=!1,a.value.interval&&(clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0),a.value.interval=setInterval(()=>{a.value.seconds++},1e3);!_.value.every(rt=>rt.gathered||rt.failed)&&!y.value;){const rt=_.value.find(Vt=>!Vt.gathered&&!Vt.failed);if(!rt)break;rt.gathered=!0;try{const Vt=await K(rt.params);if(!Vt){rt.failed=!0;continue}ve([{...Vt,...rt}])}catch(Vt){rt.failed=!0,console.error("Error fetching image:",Vt)}}}async function ve(we){const $e=La();console.log(we);const Ve=await Promise.all(we.map(async We=>{const Lt=We.images[0],hi=!!We.animated?"gif":"png",pi=We.extra_data?`data:video/avi;base64,${We.extra_data}`:"",Jo=We.final_frame?`data:image/jpeg;base64,${We.final_frame}`:"";let Gi={id:-1,image:`data:image/${hi};base64,${Lt}`,prompt:We.prompt,modelName:We.models[0],frames:We.params.frames,fps:We.params.fps,extra_avi:pi,final_frame:Jo,enable_hr:We.params.enable_hr,send_as_refimg:We.params.send_as_refimg,reverse_refimg:We.params.reverse_refimg};if(We.info&&typeof We.info=="string"&&We.info.trim()!=="")try{const pr=JSON.parse(We.info);["seed","steps","sampler_name","cfg_scale","eta","width","height","clip_skip","fps"].forEach(Rr=>{pr[Rr]!=null&&pr[Rr]!=null?Gi[Rr]=pr[Rr]:We.params[Rr]!=null&&(Gi[Rr]=We.params[Rr])}),pr.extra_generation_params&&pr.extra_generation_params["Schedule type"]?Gi.scheduler=pr.extra_generation_params["Schedule type"]:Gi.scheduler=We.params.scheduler}catch(pr){console.warn("Failed to parse info JSON:",pr)}return Gi})),Qe=await $e.pushOutputs(Ve),at=0;return b.value=[...Qe.map(We=>({type:"image",index:at,output:We})),...b.value].sort((We,Lt)=>We.index-Lt.index),b.value.length===_.value.length&&(_.value=[],m.value=!1,Ut().showGeneratedImages=!0,clearInterval(a.value.interval),a.value.interval=0,a.value.seconds=0),Ve}async function H(we){const $e=Ut();return we&&$e.raiseError(we,!1),[]}function W(we,$e,Ve,Qe){return $e<=Ve?$e:(Ut().raiseWarning(`This image was generated using the 'Larger Values' option. Setting '${we}' to its default value instead of ${$e}.`,!0),Qe)}async function k(we,$e=!0){const Ve=_u();if(n.value="Text2Img",u.value.guidance.state="Enabled",u.value.sampler.state="Enabled",u.value.steps.state="Enabled",u.value.clipSkip.state="Disabled",u.value.scheduler.state="Enabled",Ds.push("/"),$e&&(we.width=we.width||Ve.width,we.height=we.height||Ve.height),we.prompt){const Qe=we.prompt.split(" ### ");r.value=Qe[0],l.value=Qe[1]||""}if(we.sampler_name){o.value.sampler_name=we.sampler_name;const at=(await Ce()).find(We=>We.aliases&&We.aliases.includes(we.sampler_name));at&&(o.value.sampler_name=at.name)}we.steps&&(o.value.steps=W("steps",we.steps,I.value,Ve.steps)),we.cfg_scale&&(o.value.cfg_scale=we.cfg_scale),(we.eta||we.eta===0)&&(o.value.eta=we.eta),we.width&&(o.value.width=W("width",we.width,S.value,Ve.width)),we.height&&(o.value.height=W("height",we.height,S.value,Ve.height)),we.seed&&(o.value.seed=we.seed),we.clip_skip&&(o.value.clip_skip=W("clip_skip",we.clip_skip,J.value,Ve.clip_skip)),we.scheduler&&(o.value.scheduler=we.scheduler),we.frames&&(o.value.frames=W("frames",we.frames,M.value,Ve.frames)),we.fps&&(o.value.fps=Math.min(R.value,Math.max(U.value,Math.round(W("fps",we.fps,R.value,Ve.fps)))))}function X(we){const $e=Is();n.value="Img2Img",f.value.sourceImage=we,$e.drawing=!1,b.value=[],Ds.push("/"),Un.fabric.Image.fromURL(we,$e.newImage)}function Y(we){const $e=Is();b.value=[],c.value.sourceImage=we,n.value="Inpainting",Ds.push("/"),Un.fabric.Image.fromURL(we,$e.newImage)}function $(){return l.value===""?r.value:`${r.value} ### ${l.value}`}function B(){const we=$(),$e=we.match(/\{(.*?)\}/g)||[];if($e.length===0)return[we];let Ve=[];return $e.forEach(Qe=>{const at=[],We=Qe.replace("{","").replace("}","").split("|");Ve.length===0?We.forEach(Lt=>{const Jn=we.replace(Qe,Lt);at.push(Jn)}):Ve.forEach(Lt=>{We.forEach(Jn=>{const hi=Lt.replace(Qe,Jn);at.push(hi)})}),Ve=[...at]}),Ve}async function K(we){const $e=zt();try{const Ve=await fetch(`${$e.baseURL.length===0?".":$e.baseURL}/sdapi/v1/${we.init_images.length>0?"img":"txt"}2img`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(we)}),Qe=await Ve.json();return Uu(Ve,Qe,200,"Failed to fetch",ce)?Qe:!1}catch{return!1}}function ce(we){return Ut().raiseError(we,!1),y.value=!1,b.value=[],!1}async function ie(){const we=zt(),$e=await fetch(`${we.baseURL.length===0?".":we.baseURL}/sdapi/v1/sd-models`),Ve=await $e.json();if(!!Uu($e,Ve,200,"Failed to get available models"))return Ve.length===0?"(No model loaded)":Ve[0].model_name}const Z=oe(0),me=new Map;function ae(){me.clear(),Z.value++}xe(()=>zt().baseURL,()=>{ae()});async function ge(we){const $e=zt(),Qe=(($e.baseURL.length===0?".":$e.baseURL).replace(/\/+$/,"")||".")+"/"+we.replace(/^\/+/,"");if(me.has(Qe))return me.get(Qe);const at=(async()=>{try{const We=await fetch(Qe);if(We.ok)return await We.json();console.error(`API Error: ${We.status} ${We.statusText} at ${Qe}`)}catch(We){console.error(`Fetch error for ${Qe}:`,We)}return me.delete(Qe),null})();return me.set(Qe,at),at}async function Ce(){const we=await ge("/sdapi/v1/samplers");return Array.isArray(we)?we:[]}async function ke(){const we=await ge("/sdapi/v1/schedulers");return Array.isArray(we)?we:[]}function Oe(we){v.value.indexOf(we)===-1&&(v.value=[...v.value,we])}function ze(we){v.value=v.value.filter($e=>$e!=we)}function _e(we){if(i.value.findIndex($e=>$e.prompt===we)===-1){if(i.value.length>=10+i.value.filter($e=>$e.starred).length){const $e=i.value.filter(Qe=>!Qe.starred),Ve=i.value.findIndex(Qe=>Qe===$e[$e.length-1]);i.value.splice(Ve,1)}i.value=[...i.value,{starred:!1,timestamp:Date.now(),prompt:we}]}}function Se(we){i.value=i.value.filter($e=>$e.prompt!=we&&$e!=we)}function De(){return!1}var Me=[];function yt(we){let $e=we.target;if(Me=[],$e.files.length>0)for(let Ve=0;Ve<$e.files.length;++Ve){let Qe=$e.files[Ve];const at=new FileReader;at.onload=function(We){let Lt=We.target?We.target.result:"";Lt.includes("data:image")&&(Lt=Lt.split(",")[1]),console.log(Lt),Me.push(Lt)},at.onerror=function(){console.log("Error reading file.")},at.readAsDataURL(Qe)}else console.log("No file to load")}function bt(){Me=[];const we=document.getElementById("extra_image_input");we&&(we.value="")}return{generatorType:n,prompt:r,params:o,outputs:b,inpainting:c,img2img:f,uploadDimensions:g,cancelled:y,multiSelect:u,negativePrompt:l,generating:m,negativePromptLibrary:v,minDimensions:w,maxDimensions:S,minImages:x,maxImages:T,minSteps:E,maxSteps:I,minCfgScale:D,maxCfgScale:N,minDenoise:O,maxDenoise:V,minClipSkip:ne,maxClipSkip:J,minFrames:le,maxFrames:M,minFps:U,maxFps:R,minEta:L,maxEta:F,clipSkipList:Q,cfgList:j,queue:_,promptHistory:i,timer:a,validGeneratorTypes:e,sourceGeneratorTypes:t,currentImageProps:h,totalImageCount:A,generateImage:pe,generateText2Img:k,generateImg2Img:X,generateInpainting:Y,getPrompt:De,resetStore:q,clearQueue:G,clearOutputs:te,pushToNegativeLibrary:Oe,removeFromNegativeLibrary:ze,pushToPromptHistory:_e,removeFromPromptHistory:Se,setExtraImage:yt,clearExtraImage:bt,getAvailableSamplers:Ce,getAvailableSchedulers:ke,cacheVersion:Z,invalidateApiCaches:ae,getCachedEndpoint:ge}});"stream"in Blob.prototype||Object.defineProperty(Blob.prototype,"stream",{value(){return new Response(this).body}});var of=e=>new DataView(new ArrayBuffer(e)),Ka=e=>new Uint8Array(e.buffer||e),ho=e=>new TextEncoder().encode(String(e));function CK(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:ho(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:Ka(e)};if(Symbol.asyncIterator in e)return{t,o:iC(e)};throw new TypeError("Unsupported input format.")}function iC(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=SK(i.value);n.enqueue(l),r+=l.byteLength}}}})}function SK(e){return typeof e=="string"?ho(e):e instanceof Uint8Array?e:Ka(e)}function xK(e,t,n){if(t===void 0||t instanceof Uint8Array||(t=ho(t)),e instanceof File)return{i:t||ho(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(),v=l&&decodeURIComponent(l),o=n||+e.headers.get("content-length");return{i:t||ho(v),A:o}}if(!t||t.length===0)throw new Error("The file must have a name.");return typeof e=="string"?{i:t,A:ho(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:kK,m:EK}=TK.exports,OK=Ka(EK).subarray(65536);function Ly(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))OK.set(n),t=kK(n.length,t);return t}function aC(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 AK(e){const t=of(30);return t.setUint32(0,1347093252),t.setUint32(4,335546368),aC(e.t,t,10),t.setUint16(26,e.i.length,1),Ka(t)}async function*PK(e){let{o:t}=e;if("then"in t&&(t=await t),t instanceof Uint8Array)yield t,e.u=Ly(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=Ly(r,e.u),e.A+=r.length,yield r}}}function IK(e){const t=of(16);return t.setUint32(0,1347094280),t.setUint32(4,e.u,1),t.setUint32(8,e.A,1),t.setUint32(12,e.A,1),Ka(t)}function MK(e,t){const n=of(46);return n.setUint32(0,1347092738),n.setUint32(4,352523264),n.setUint16(8,2048),aC(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),Ka(n)}function LK(e){return e instanceof File||e instanceof Response?[[e],[e]]:[[e.input,e.name,e.size],[e.input,e.lastModified]]}function RK(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(iC(async function*(r){const i=[];let l=0,v=0;for await(const u of r)yield AK(u),yield u.i,yield*PK(u),yield IK(u),i.push(MK(u,l)),i.push(u.i),v++,l+=46+u.i.length+u.A;let o=0;for(const u of i)yield u,o+=u.length;const a=of(22);a.setUint32(0,1347093766),a.setUint16(8,v,1),a.setUint16(10,v,1),a.setUint32(12,o,1),a.setUint32(16,l,1),yield Ka(a)}(async function*(r){for await(const i of r){const[l,v]=LK(i);yield Object.assign(CK(...v),xK(...l))}}(e))),{headers:n})}async function oC(e,t=!0,n){const r=zt();t&&Ui({message:`Downloading ${e.length} image(s)...`,type:"info"});const i=[];for(let o=0;o<e.length;o++){const a=await Nt.outputs.get(e[o]);if(!a)continue;const{image:u,id:d,...c}=a,f=`${o}-${a.seed}-${a.prompt}`.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd();let s=r.imageDownloadType;u.startsWith("data:image/gif")&&(s="GIF"),s==="PNG"?i.push({name:f+".png",input:await va(u,"image/png")}):s==="JPG"?i.push({name:f+".jpg",input:await va(u,"image/jpeg")}):s==="GIF"?i.push({name:f+".gif",input:await va(u,"image/gif")}):i.push({name:f+".webp",input:await va(u,"image/webp")}),i.push({name:f+".json",input:JSON.stringify(c,void 0,4)}),n&&n()}const l=await RK(i).blob(),v=document.createElement("a");v.href=URL.createObjectURL(l),v.download="sdui_images.zip",v.click()}async function sC(e,t){const n=zt(),r=document.createElement("a");let i,l=n.imageDownloadType;e.startsWith("data:image/gif")&&(l="GIF"),l==="PNG"?(i=await va(e,"image/png"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".png"):l==="JPG"?(i=await va(e,"image/jpeg"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".jpg"):l==="GIF"?(i=await va(e,"image/gif"),r.href=URL.createObjectURL(i),r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".gif"):(r.href=e,r.download=t.replace(/[/\\:*?"<>]/g,"").substring(0,128).trimEnd()+".webp"),r.click(),i&&URL.revokeObjectURL(r.href)}function lC(e,t){const n=e;if(!n)return;const r=atob(n),i=r.length,l=new Uint8Array(i);for(let u=0;u<i;u++)l[u]=r.charCodeAt(u);const v=new Blob([l],{type:"video/avi"}),o=URL.createObjectURL(v),a=document.createElement("a");a.href=o,a.download=t,document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o)}const DK=Ee({__name:"ImageActions",props:{imageData:null,onDelete:null,showDismiss:{type:Boolean}},setup(e){const t=e,n=Jt(),r=La(),i=()=>{Sw.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),Ui({type:"success",message:"Deleted Image"})})},l=a=>{if(a.extra_avi){const u=a.extra_avi.split(",")[1];if(!u)return;const d=`${a.seed}-${a.prompt}.avi`;lC(u,d);return}else sC(a.image,`${a.seed}-${a.prompt}`)},v=()=>{Jt().clearOutputs(),Ut().showGeneratedImages=!1,Jt().clearQueue()};async function o(a){const u=window.location.origin,d={prompt:a.prompt,width:a.width?a.width:void 0,height:a.height?a.height:void 0,steps:a.steps,cfg_scale:a.cfg_scale,sampler_name:a.sampler_name,model_name:a.modelName,seed:a.seed,clip_skip:a.clip_skip,frames:a.frames,fps:a.fps,scheduler:a.scheduler,extra_avi:a.extra_avi,final_frame:a.final_frame,enable_hr:a.enable_hr,send_as_refimg:a.send_as_refimg,reverse_refimg:a.reverse_refimg},c=window.location.pathname.replace("images","");let f=`${u}${c}?share=`,s="",h="";for(const[m,y]of Object.entries(d)){if(!y)continue;let b=y;typeof y=="string"?b=encodeURIComponent(y):Array.isArray(y)&&(b=JSON.stringify(y)),s+=`${h}${m}=${b}`,h="&"}f+=btoa(String.fromCharCode.apply(null,Array.from(XX(s)))),await navigator.clipboard.writeText(f),Ui({type:"success",message:"Copied shareable link to clipboard"})}return(a,u)=>(z(),se(je,null,[ue(C(ht),{class:"compact-button",onClick:i,type:"danger",size:"small",icon:C(Nc),plain:""},{default:he(()=>[Ue("Delete")]),_:1},8,["icon"]),ue(C(ht),{class:"compact-button",onClick:u[0]||(u[0]=d=>l(e.imageData)),type:"success",size:"small",icon:C(Ys),plain:""},{default:he(()=>[Ue("Download")]),_:1},8,["icon"]),e.imageData.starred?ye("",!0):(z(),be(C(ht),{key:0,class:"compact-button",onClick:u[1]||(u[1]=d=>C(r).toggleStarred(e.imageData.id)),type:"warning",size:"small",icon:C(y4),plain:""},{default:he(()=>[Ue("Star")]),_:1},8,["icon"])),e.imageData.starred?(z(),be(C(ht),{key:1,class:"compact-button",onClick:u[2]||(u[2]=d=>C(r).toggleStarred(e.imageData.id)),type:"warning",size:"small",icon:C(g_),plain:""},{default:he(()=>[Ue("Unstar")]),_:1},8,["icon"])):ye("",!0),ue(C(ht),{class:"compact-button",onClick:u[3]||(u[3]=d=>C(n).generateText2Img(e.imageData)),type:"success",size:"small",plain:""},{default:he(()=>[Ue("Txt2img")]),_:1}),ue(C(ht),{class:"compact-button",onClick:u[4]||(u[4]=d=>C(n).generateImg2Img(e.imageData.image)),type:"success",size:"small",plain:""},{default:he(()=>[Ue("Img2img")]),_:1}),ue(C(ht),{class:"compact-button",onClick:u[5]||(u[5]=d=>C(n).generateInpainting(e.imageData.image)),type:"success",size:"small",plain:""},{default:he(()=>[Ue("Inpaint")]),_:1}),e.showDismiss?(z(),be(C(ht),{key:2,class:"compact-button",onClick:u[6]||(u[6]=d=>v()),type:"success",size:"small",plain:""},{default:he(()=>[Ue("Dismiss")]),_:1})):ye("",!0),ue(C(ht),{class:"compact-button",onClick:u[7]||(u[7]=d=>o(e.imageData)),type:"success",icon:C(L3),size:"small",plain:""},{default:he(()=>[Ue("Share")]),_:1},8,["icon"])],64))}});const uC=qt(DK,[["__scopeId","data-v-4d472d34"]]),$K={class:"main-output",style:{position:"relative",display:"flex","align-items":"center","justify-content":"center"}},BK=["src"],FK={style:{"font-size":"16px","font-weight":"500"}},zK={style:{"font-family":"'Segoe UI', Tahoma, Geneva, Verdana, sans-serif","letter-spacing":"0.025em"}},NK={key:0},jK=re("br",null,null,-1),VK={key:0},UK=["onClick"],HK={key:1},WK=["onClick"],YK={key:2},XK=["onClick"],KK=Ee({__name:"ImageDialog",setup(e){const t=La(),n=Ut(),r=oe();lM(r,{onSwipeEnd(d,c){c==="RIGHT"&&n.openModalToLeft(),c==="LEFT"&&n.openModalToRight()}});const i=ee({get(){return n.activeModal!==-1},set(){n.activeModal=-1}}),l=oe(t.currentOutputs[0]);xe(()=>n.activeModal,async()=>{const d=t.currentOutputs.find(c=>c.id===n.activeModal);if(d)return l.value=d;l.value=await Nt.outputs.get(n.activeModal)||t.currentOutputs[0]});function v(){i.value=!1}function o(){var f;if(!((f=l.value)!=null&&f.final_frame))return;const d=l.value.final_frame;Jt().generateImg2Img(d)}function a(){var d;!((d=l.value)!=null&&d.image)||sC(l.value.image,`${l.value.seed}-${l.value.prompt}`)}function u(){var f,s;if(!((f=l.value)!=null&&f.extra_avi))return;const d=l.value.extra_avi.split(",")[1];if(!d)return;const c=`output-${(s=l.value.id)!=null?s:"video"}.avi`;lC(d,c)}return(d,c)=>{var f;return z(),be(C(VB),{"model-value":C(i),width:(f=l.value)==null?void 0:f.width,class:"image-viewer",onClosed:v,"align-center":""},{footer:he(()=>[ue(uC,{"image-data":l.value,"on-delete":v},null,8,["image-data"])]),default:he(()=>{var s,h,g,m;return[re("div",{class:"main-output-container",ref_key:"target",ref:r},[re("div",$K,[(s=l.value)!=null&&s.image?(z(),se("img",{key:0,src:l.value.image,alt:"Output image",style:{"max-width":"100%","max-height":"100%","object-fit":"contain"}},null,8,BK)):ye("",!0)])],512),re("div",FK,Ae(((h=l.value.prompt)==null?void 0:h.split("###")[0])||"Unknown Creation"),1),re("div",zK,[re("div",null,"Negative Prompt: "+Ae(((g=l.value.prompt)==null?void 0:g.split("###")[1])||"None"),1),re("span",null,"Model: "+Ae(l.value.modelName||"Unknown")+" - ",1),re("span",null,"Sampler: "+Ae(l.value.sampler_name||"Unknown")+" - ",1),re("span",null,"Scheduler: "+Ae(l.value.scheduler||"Unknown")+" - ",1),re("span",null,"Seed: "+Ae(l.value.seed||"Unknown")+" - ",1),re("span",null,"Steps: "+Ae(l.value.steps||"Unknown")+" - ",1),re("span",null,"CFG Scale: "+Ae(l.value.cfg_scale||"Unknown")+" - ",1),re("span",null,"Clip Skip: "+Ae((m=l.value.clip_skip)!=null?m:"Unknown")+" - ",1),re("span",null,"Dimensions: "+Ae(l.value.width||"???")+"x"+Ae(l.value.height||"???")+" - ",1),re("span",null,"Frames: "+Ae(l.value.frames||"1"),1),l.value.frames&&l.value.frames>1?(z(),se("span",NK," - FPS: "+Ae(l.value.fps||"Unknown"),1)):ye("",!0),jK,re("b",null,[l.value.frames&&l.value.frames>1?(z(),se("span",VK,[re("a",{href:"#",onClick:tt(a,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Download GIF]",8,UK)])):ye("",!0),l.value.extra_avi?(z(),se("span",HK,[Ue(" - "),re("a",{href:"#",onClick:tt(u,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Download AVI]",8,WK)])):ye("",!0),l.value.final_frame?(z(),se("span",YK,[Ue(" - "),re("a",{href:"#",onClick:tt(o,["prevent"]),style:{cursor:"pointer",color:"var(--el-color-primary)"}},"[Extend Video]",8,XK)])):ye("",!0)])])]}),_:1},8,["model-value","width"])}}});const GK=e=>(ai("data-v-8f4d2380"),e=e(),oi(),e),qK=GK(()=>re("div",{style:{"font-size":"20px"}},"Stable UI",-1)),ZK={class:"generator-icons"},JK=Ee({__name:"App",setup(e){const n=Sp(Cp).smallerOrEqual("md"),r=Ut();zt();const i=sk(),l=oe();return xe(()=>i.path,v=>{l.value&&l.value.open(v)}),(v,o)=>(z(),se(je,null,[re("div",{class:de({"menu-container":!C(n)})},[ue(C(fw),{"default-active":C(i).path,mode:"horizontal",router:!0,ellipsis:!C(n),class:de(C(n)?"mobile-menu":"menu"),ref_key:"menuRef",ref:l},{default:he(()=>[C(n)?ye("",!0):(z(),be(C(Np),{key:0,class:"remove-item-styling center-vertical"},{title:he(()=>[qK]),_:1})),ue(os,{isMobile:C(n),index:"/"},{icon:he(()=>[re("div",ZK,[ue(C(Le),null,{default:he(()=>[ue(C(yO))]),_:1}),C(r).showGeneratorBadge?(z(),be(C(Le),{key:0,class:"generator-badge",size:10},{default:he(()=>[ue(JU)]),_:1})):ye("",!0)])]),title:he(()=>[Ue("Generate")]),_:1},8,["isMobile"]),ue(os,{isMobile:C(n),index:"/images"},{icon:he(()=>[ue(C(Le),null,{default:he(()=>[ue(C(q3))]),_:1})]),title:he(()=>[Ue("Images")]),_:1},8,["isMobile"]),ue(os,{isMobile:C(n),index:"/about"},{icon:he(()=>[ue(C(Le),null,{default:he(()=>[ue(C(d_))]),_:1})]),title:he(()=>[Ue("About")]),_:1},8,["isMobile"]),ue(os,{isMobile:C(n),index:"/options"},{icon:he(()=>[ue(C(Le),null,{default:he(()=>[ue(C(A4))]),_:1})]),title:he(()=>[Ue("Options")]),_:1},8,["isMobile"]),ue(os,{isMobile:C(n),index:"/return"},{icon:he(()=>[ue(C(Le),null,{default:he(()=>[ue(C(l_))]),_:1})]),title:he(()=>[Ue("Return to Lite")]),_:1},8,["isMobile"])]),_:1},8,["default-active","ellipsis","class"])],2),re("div",{class:de({view:!C(n)})},[ue(C(s_))],2),ue(KK)],64))}});const QK=qt(JK,[["__scopeId","data-v-8f4d2380"]]);const Cm=Zx(QK);Cm.use(eT());Cm.use(Ds);Cm.mount("#app");Ds.replace("/");window.addEventListener("beforeunload",e=>{Jt().generating&&(e.preventDefault(),e.returnValue="")});const eG={key:1,class:"image-action"},tG=Ee({__name:"CustomImage",props:{imageData:null},setup(e){const t=e,n=Ut(),r=oe(null);zI(r,n.toggleMultiSelect,{modifiers:{prevent:!0}});const i=oe(!1);sM(r,([{isIntersecting:v}])=>{v&&(i.value=v)},{rootMargin:"500px"});const l=ee(()=>n.selected.includes(t.imageData.id));return(v,o)=>(z(),se("div",{class:"relative",ref_key:"containerRef",ref:r},[i.value?(z(),be(C(Fp),{key:0,class:"thumbnail",src:e.imageData.image,onClick:o[0]||(o[0]=a=>C(n).activeModal=e.imageData.id),fit:"cover",loading:"lazy",style:Ne(`${C(l)&&"opacity: 0.5"}`)},null,8,["src","style"])):ye("",!0),i.value?(z(),se("div",eG,[e.imageData.starred?(z(),be(C(Le),{key:0,class:"starred-icon",size:35,color:"var(--el-color-warning)"},{default:he(()=>[ue(C(g_))]),_:1})):ye("",!0),C(n).multiSelect?(z(),se("div",{key:1,class:"select-container",onClick:o[1]||(o[1]=a=>C(n).toggleSelection(e.imageData.id))},[ue(C(Le),{class:"select-icon",size:35,color:`rgba(255, 255, 255, ${C(l)?"1":"0.5"})`},{default:he(()=>[C(l)?ye("",!0):(z(),be(C(xl),{key:0})),C(l)?(z(),be(C(c_),{key:1})):ye("",!0)]),_:1},8,["color"])])):ye("",!0)])):ye("",!0)],512))}});const Ry=qt(tG,[["__scopeId","data-v-b9569bbd"]]);function nG({mobileWidth:e=768,hideAfterDistanceFromTop:t=100,hideAfterScroll:n=100}={}){const{width:r}=t1(),i=ee(()=>r.value<=e),l=oe(!0),{y:v}=oM(window);let o=v.value,a=0;return xe(v,u=>{if(!i.value)return;const d=u-o;if(o=u,d>0&&u>t){a+=d,a>=n&&(l.value=!1,a=0);return}d<0&&(a=0,l.value=!0)}),{isVisible:l,isMobile:i}}const rG={},iG={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 1024 1024"},aG=re("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),oG=[aG];function sG(e,t){return z(),se("svg",iG,oG)}const lG=qt(rG,[["render",sG]]),uG=e=>(ai("data-v-b39b47c5"),e=e(),oi(),e),cG={class:"options"},fG=["onClick"],dG=["onClick"],hG=["onClick"],pG={key:1,class:"center-both",style:{gap:"12px"}},mG={key:2},gG=uG(()=>re("em",{style:{"font-size":"14px"}},"(long press to select multiple images)",-1)),vG=[gG],yG={key:0},bG={key:0,style:{display:"flex",gap:"8px"}},_G={key:1,class:"images"},wG={key:1},CG=Ee({__name:"ImagesView",setup(e){const{width:t}=t1(),{isVisible:n,isMobile:r}=nG(),i=La(),l=zt(),v=Ut();function o(){v.selected=v.selected.filter(h=>!i.currentOutputs.map(g=>g.id).includes(h)),v.selected=[...v.selected,...i.currentOutputs.map(h=>h.id)],v.multiSelect=!0}async function a(){const h=await Nt.outputs.toCollection().primaryKeys();v.selected=h,v.multiSelect=!0}function u(){v.selected=v.selected.filter(h=>!i.currentOutputs.map(g=>g.id).includes(h)),v.selected.length===0&&(v.multiSelect=!1)}function d(){v.selected=[],v.multiSelect=!1}const c=()=>{Sw.confirm(`This action will permanently delete ${v.selected.length} images. Continue?`,"Warning",{confirmButtonText:"OK",cancelButtonText:"Cancel",type:"warning"}).then(()=>{i.deleteMultipleOutputs(v.selected)})};pv(["a","A","ArrowLeft"],v.openModalToLeft),pv(["d","D","ArrowRight"],v.openModalToRight);async function f(){oC(v.selected)}const s=ee(()=>{let h=2;t.value>1440?h=6:t.value>1280?h=5:t.value>768?h=4:t.value>480&&(h=3);const g=[];for(let m=0;m<h;m++){const y=[];for(let b=m;b<i.currentOutputs.length;b+=h)y.push(i.currentOutputs[b]);g.push(y)}return g});return(h,g)=>(z(),se(je,null,[re("div",{class:de(["images-top-bar",{"mobile-hidden":C(r)&&!C(n)}])},[re("div",cG,[ue(C(au),{placement:"bottom",title:"Sort By",trigger:"click",width:200,transition:"none","hide-after":0},{reference:he(()=>[ue(C(ht),{class:"btn-select"},{default:he(()=>[ue(C(Le),{size:16},{default:he(()=>[ue(C(s4))]),_:1})]),_:1})]),default:he(()=>[(z(),se(je,null,jt(["Newest","Oldest"],m=>re("div",{key:m,onClick:()=>C(i).sortBy=m,class:de(`el-select-dropdown__item ${C(i).sortBy===m?"selected":""}`)},Ae(m),11,fG)),64))]),_:1}),ue(C(au),{placement:"bottom",title:"Filter By",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ue(C(ht),{class:"btn-select"},{default:he(()=>[ue(C(Le),{size:16},{default:he(()=>[ue(C(u3))]),_:1})]),_:1})]),default:he(()=>[(z(),se(je,null,jt(["all","favourited","unfavourited","unrated"],m=>re("div",{key:m,onClick:()=>C(i).filterBy=m,class:de(`el-select-dropdown__item ${C(i).filterBy===m?"selected":""}`)},Ae(C(i).filterBy===m?"Showing":"Show")+" "+Ae(m),11,dG)),64))]),_:1}),ue(C(au),{placement:"bottom",title:"Image Layout",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ue(C(ht),{class:"btn-select"},{default:he(()=>[ue(C(Le),{size:16},{default:he(()=>[ue(lG)]),_:1})]),_:1})]),default:he(()=>[(z(),se(je,null,jt([{label:"Square Grid",value:"grid"},{label:"Dynamic Layout",value:"dynamic"}],m=>re("div",{key:m.value,onClick:()=>C(i).currentLayout=m.value,class:de(`el-select-dropdown__item ${C(i).currentLayout===m.value?"selected":""}`)},Ae(m.label),11,hG)),64))]),_:1}),ue(C(au),{placement:"bottom",title:"Selection",trigger:"click",width:240,transition:"none","hide-after":0},{reference:he(()=>[ue(C(ht),{class:"btn-select"},{default:he(()=>[ue(C(Le),{size:16},{default:he(()=>[C(v).multiSelect?(z(),be(C(c_),{key:0})):(z(),be(C(xl),{key:1}))]),_:1})]),_:1})]),default:he(()=>[C(v).multiSelect?(z(),se("div",{key:0,class:"el-select-dropdown__item selected",onClick:g[0]||(g[0]=(...m)=>C(v).toggleMultiSelect&&C(v).toggleMultiSelect(...m))},"Disable multi-select")):(z(),se("div",{key:1,class:"el-select-dropdown__item",onClick:g[1]||(g[1]=(...m)=>C(v).toggleMultiSelect&&C(v).toggleMultiSelect(...m))},"Enable multi-select")),C(v).selected.length>0?(z(),se("div",{key:2,class:"el-select-dropdown__item selected",onClick:d},"Deselect All")):(z(),se("div",{key:3,class:"el-select-dropdown__item",onClick:a},"Select All")),C(v).selected.every(m=>!C(i).currentOutputs.map(y=>y.id).includes(m))?(z(),se("div",{key:5,class:"el-select-dropdown__item",onClick:o},"Select Page")):(z(),se("div",{key:4,class:"el-select-dropdown__item selected",onClick:u},"Deselect Page"))]),_:1})]),C(l).pageless==="Disabled"?(z(),be(C(d9),{key:0,layout:"prev, pager, next",total:C(i).outputsLength,"page-size":C(l).pageSize,"current-page":C(i).currentPage,"onUpdate:currentPage":g[2]||(g[2]=m=>C(i).currentPage=m),"hide-on-single-page":""},null,8,["total","page-size","current-page"])):ye("",!0),C(v).multiSelect?(z(),se("div",pG,[re("div",null,Ae(C(v).selected.length)+" selected",1),ue(C(ht),{type:"danger",onClick:c,icon:C(Nc),plain:""},{default:he(()=>[Ue("Delete")]),_:1},8,["icon"]),ue(C(ht),{type:"success",onClick:f,icon:C(Ys),plain:"",style:{margin:"0"}},{default:he(()=>[Ue("Download")]),_:1},8,["icon"])])):(z(),se("div",mG,vG))],2),C(i).outputsLength!=0?(z(),se("div",yG,[C(i).currentLayout==="dynamic"?(z(),se("div",bG,[(z(!0),se(je,null,jt(C(s),(m,y)=>(z(),se("div",{key:y,style:{flex:"1 1 0%"}},[(z(!0),se(je,null,jt(m,b=>(z(),be(Ry,{key:b.id,"image-data":b,style:{"margin-bottom":"8px"}},null,8,["image-data"]))),128))]))),128))])):ye("",!0),C(i).currentLayout==="grid"?(z(),se("div",_G,[(z(!0),se(je,null,jt(C(i).currentOutputs,m=>(z(),be(Ry,{key:m.id,"image-data":m,style:{width:"200px",height:"200px"}},null,8,["image-data"]))),128))])):ye("",!0)])):ye("",!0),C(i).outputsLength==0?(z(),se("div",wG,[ue(C(DF),{description:"No Images Found"})])):ye("",!0)],64))}});const SG=qt(CG,[["__scopeId","data-v-b39b47c5"]]),xG=Object.freeze(Object.defineProperty({__proto__:null,default:SG},Symbol.toStringTag,{value:"Module"})),TG=["href"],kG=Ee({__name:"BaseLink",props:{href:null,router:{type:Boolean}},setup(e){return(t,n)=>{const r=mt("router-link");return z(),se(je,null,[e.router?ye("",!0):(z(),se("a",{key:0,target:"_blank",rel:"noreferrer noopener",href:e.href},[Te(t.$slots,"default",{},void 0,!0)],8,TG)),e.router?(z(),be(r,{key:1,to:e.href},{default:he(()=>[Te(t.$slots,"default",{},void 0,!0)]),_:3},8,["to"])):ye("",!0)],64)}}});const EG=qt(kG,[["__scopeId","data-v-17b53b7d"]]),Vl=e=>(ai("data-v-ecc278c5"),e=e(),oi(),e),OG={class:"about"},AG={class:"about-content"},PG=Vl(()=>re("h1",{style:{"margin-top":"0"}},"Stable UI",-1)),IG=Vl(()=>re("div",null,[Ue("This tool was originally a front-end for the AI Horde and has since been converted for local generations with the A1111 API, such as in "),re("a",{href:"https://github.com/LostRuins/koboldcpp"},"KoboldCpp"),Ue(".")],-1)),MG=Vl(()=>re("br",null,null,-1)),LG=Vl(()=>re("div",null,"If you want to help improve this tool, you can find the currently maintained source code from this modified version on https://github.com/LostRuins/stable-ui and https://github.com/henk717/stable-ui, which is based off https://github.com/ayunami2000/stable-ui, which derives from the original AI Horde version on https://github.com/aqualxx/stable-ui (Original author aqualxx#5004). Feel free to contribute!",-1)),RG=Vl(()=>re("br",null,null,-1)),DG=Ee({__name:"AboutView",setup(e){return(t,n)=>(z(),se("div",OG,[re("div",AG,[PG,IG,MG,LG,RG,re("div",null,[Ue("You can find the KoboldAI community and authors of this fork on the "),ue(EG,{href:"https://koboldai.org/discord"},{default:he(()=>[Ue("KoboldAI Discord")]),_:1})])])]))}});const $G=qt(DG,[["__scopeId","data-v-ecc278c5"]]),BG=Object.freeze(Object.defineProperty({__proto__:null,default:$G},Symbol.toStringTag,{value:"Module"}));const ao=Ee({__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,v)=>(z(),be(C(Li),{prop:e.prop},{label:he(()=>[ue(Bl,{info:e.info,"label-style":e.labelStyle},{default:he(()=>[Te(l.$slots,"label",{},()=>[Ue(Ae(e.label),1)])]),_:3},8,["info","label-style"])]),default:he(()=>[ue(C(j$),{disabled:e.disabled,"model-value":C(i),onChange:r},{default:he(()=>[(z(!0),se(je,null,jt(e.options,o=>(z(),be(C(V$),{key:o,label:o},null,8,["label"]))),128))]),_:1},8,["disabled","model-value"]),Te(l.$slots,"inline")]),_:3},8,["prop"]))}}),Zo=e=>(ai("data-v-0345ee1f"),e=e(),oi(),e),FG=Zo(()=>re("h1",null,"Options",-1)),zG=Zo(()=>re("h2",null,"Generation Options",-1)),NG=Zo(()=>re("h3",null,"Parameter Controls",-1)),jG=Zo(()=>re("h2",null,"Image Options",-1)),VG=Zo(()=>re("div",null,[Ue("Drop file here OR "),re("em",null,"click to upload")],-1)),UG=Zo(()=>re("h2",null,"General Options",-1)),HG=Ee({__name:"OptionsView",setup(e){const t=zt(),n=La(),r=Jt(),i=[{value:"dark",label:"Dark"},{value:"light",label:"Light"},{value:"auto",label:"Auto"}],l=oe([]),v=oe(),o=oe(!1),a=oe(0);async function u(c){n.importFromZip(c),v.value.clearFiles()}async function d(){Ui({message:`Downloading ${n.outputsLength} image(s)... (this may take a while)`,type:"info"}),o.value=!0,a.value=0;const c=await Nt.outputs.toCollection().primaryKeys();await oC(c,!1,()=>{a.value++}),o.value=!1,a.value=0}return(c,f)=>(z(),se(je,null,[FG,ue(C(Bp),{"label-position":"top",model:C(t).options,onSubmit:f[10]||(f[10]=tt(()=>{},["prevent"]))},{default:he(()=>[ue(C($j),{type:"border-card",style:{"min-height":"50vh"}},{default:he(()=>[ue(C(Rf),{label:"\u{1F5A8}\uFE0F Generation"},{default:he(()=>[zG,ue(C(Li),{label:"Base URL"},{default:he(()=>[ue(C(Wa),{class:"apikey",prop:"baseURL",modelValue:C(t).baseURL,"onUpdate:modelValue":f[0]||(f[0]=s=>C(t).baseURL=s)},null,8,["modelValue"])]),_:1}),NG,(z(!0),se(je,null,jt(C(r).multiSelect,(s,h)=>{var g;return z(),se("div",{key:h},[ue(ao,{label:s.name,prop:"pageless",modelValue:s.state,"onUpdate:modelValue":m=>s.state=m,options:(g=s.allowedStates)!=null?g:[]},null,8,["label","modelValue","onUpdate:modelValue","options"])])}),128)),ue(ao,{label:"Allow Larger Params",prop:"pageless",modelValue:C(t).allowLargerParams,"onUpdate:modelValue":f[1]||(f[1]=s=>C(t).allowLargerParams=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),ue(fo,{label:"Image Resize Mode",prop:"imageResizeMode",modelValue:C(t).imageResizeMode,"onUpdate:modelValue":f[2]||(f[2]=s=>C(t).imageResizeMode=s),options:[{label:"No Scale",value:"NoScale"},{label:"Scale and Crop",value:"ScaleAndCrop"},{label:"Scale and Pad",value:"ScaleAndPad"},{label:"Stretch",value:"Stretch"},{label:"Original",value:"Original"}],info:"How to adapt input image dimensions to the requested image size. No Scale: do not scale, just crop or pad each dimension to fit (default behavior). Scale and Crop: scale to match the smaller dimension, preserving aspect ratio, then crop to fit. Scale and Pad: scale to match the larger dimension, preserving aspect ratio, then pad to fit. Stretch: stretch both dimensions to fit, possibly not preserving aspect ratio. Original: send the input image as-is to the server, with no scaling, cropping or padding."},null,8,["modelValue"]),ue(ao,{label:"Video Gen: Request AVI download",prop:"pageless",modelValue:C(t).alsoRequestAvi,"onUpdate:modelValue":f[3]||(f[3]=s=>C(t).alsoRequestAvi=s),options:["Enabled","Disabled"]},null,8,["modelValue"])]),_:1}),ue(C(Rf),{label:"\u{1F4F7} Images"},{default:he(()=>[jG,ue(gn,{label:"Images Per Page",prop:"pageSize",modelValue:C(t).pageSize,"onUpdate:modelValue":f[4]||(f[4]=s=>C(t).pageSize=s),min:10,max:50,step:5,disabled:C(t).pageless==="Enabled"},null,8,["modelValue","disabled"]),ue(ao,{label:"Pageless Format",prop:"pageless",modelValue:C(t).pageless,"onUpdate:modelValue":f[5]||(f[5]=s=>C(t).pageless=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),ue(ao,{label:"Carousel Auto Cycle",prop:"autoCarousel",modelValue:C(t).autoCarousel,"onUpdate:modelValue":f[6]||(f[6]=s=>C(t).autoCarousel=s),options:["Enabled","Disabled"]},null,8,["modelValue"]),ue(ao,{label:"Image Download Format",prop:"downloadType",modelValue:C(t).imageDownloadType,"onUpdate:modelValue":f[7]||(f[7]=s=>C(t).imageDownloadType=s),options:["PNG","JPG","WEBP","GIF"]},null,8,["modelValue"]),ue(C(Li),{label:"Export Images (ZIP File)"},{default:he(()=>[o.value?(z(),be(C(ht),{key:1,icon:C(Ys),disabled:""},{default:he(()=>[Ue("Downloading... ("+Ae(a.value)+" / "+Ae(C(n).outputsLength)+" image(s))",1)]),_:1},8,["icon"])):(z(),be(C(ht),{key:0,icon:C(Ys),onClick:f[8]||(f[8]=s=>d())},{default:he(()=>[Ue("Download "+Ae(C(n).outputsLength)+" image(s)",1)]),_:1},8,["icon"]))]),_:1}),ue(C(Li),{label:"Import Images (ZIP File)"},{default:he(()=>[ue(C(Up),{drag:"",ref_key:"upload",ref:v,"auto-upload":!1,onChange:u,"file-list":l.value,limit:1,multiple:""},{default:he(()=>[ue(C(Le),{size:100},{default:he(()=>[ue(C(lp))]),_:1}),VG]),_:1},8,["file-list"])]),_:1})]),_:1}),ue(C(Rf),{label:"\u2699\uFE0F General"},{default:he(()=>[UG,ue(fo,{label:"Color Scheme",prop:"colorScheme",modelValue:C(t).options.colorMode,"onUpdate:modelValue":f[9]||(f[9]=s=>C(t).options.colorMode=s),options:i},null,8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["model"])],64))}});const WG=qt(HG,[["__scopeId","data-v-0345ee1f"]]),YG=Object.freeze(Object.defineProperty({__proto__:null,default:WG},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-a260b725]{position:absolute;bottom:24px;width:100%}.carousel[data-v-a260b725]{--el-carousel-indicator-padding-vertical: 4px;width:100%;margin:auto}.carousel-container[data-v-a260b725]{display:flex;width:100%;height:100%;overflow-y:auto}.back-to-generation[data-v-a260b725]{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-a260b725]:hover{cursor:pointer;text-decoration:underline}@media only screen and (max-width: 1280px){.carousel-footer[data-v-a260b725]{bottom:5px}.carousel-footer>.el-divider[data-v-a260b725]{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-7dc3b5bb]{display:flex;flex-direction:column;position:absolute;gap:8px;top:10px;right:10px}.action-buttons>*[data-v-7dc3b5bb]{width:30px;height:30px;margin:0}.canvas-container[data-v-7dc3b5bb]{position:relative}@media only screen and (max-width: 1280px){.canvas-container[data-v-7dc3b5bb]{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;padding-top:20px;padding-bottom:20px}.generated-image>.el-card__body{width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-collapse,.sidebar-container{width:100%}.form{padding-left:20px;margin-left:var(--sidebar-width)}.main{grid-area:main;display:flex;justify-content:center}.generate-cancel-btn{width:80%}.sidebar{grid-area:sidebar;max-width:90%}.image{grid-area:image}.container{display:grid;height:75vh;grid-template-columns:50% 50%;grid-template-rows:40px 95%;grid-template-areas:"sidebar main" "sidebar image"}@media only screen and (max-width: 1280px){.generated-image>.el-card__body{height:100%;display:flex;justify-content:center;align-items:center}.generated-image{width:90%;height:100%;padding-top:0;padding-bottom:0}.container{display:grid;height:110vh;grid-template-rows:minmax(400px,45vh) 65px 60%;grid-template-columns:100%;gap:8px;grid-template-areas:"image" "main" "sidebar"}.sidebar{max-width:100%}.main{flex-wrap:wrap;gap:5px}.main>*{width:100%!important;margin:0!important}.reset-btn{order:1}.generate-cancel-btn{order:0}}@media only screen and (max-width: 768px){.generated-image{width:100%;height:100%;padding-top:0;padding-bottom:0}.container{grid-template-rows:minmax(400px,50vh) 65px 60%}.form{padding-top:20px;padding-left:0;margin-left:0}}:root{--el-popup-modal-bg-color:var(--el-color-black);--el-popup-modal-opacity:.5}.v-modal-enter{-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}}.compact-button[data-v-4d472d34]{padding-left:6px;padding-right:6px;margin-left:6px}.main-output-container{display:flex;justify-content:center;background-color:var(--el-fill-color-light)}.main-output{max-height:54vh}.image-viewer{width:100%;max-width:1024px;height:82vh;display:flex;flex-direction:column}.image-viewer>.el-dialog__header{padding:12px 26px}.image-viewer>.el-dialog__body{display:flex;flex-direction:column;justify-content:space-between;gap:8px;text-align:center;word-break:keep-all;overflow-y:scroll;padding-top:0;height:100%}.image-viewer>.el-dialog__footer{border-top:1px solid var(--el-border-color);display:flex;flex-wrap:wrap;justify-content:center;row-gap:8px}@media only screen and (max-width: 1280px){.image-viewer{width:720px}}@media only screen and (max-width: 768px){.image-viewer{width:100%;height:82vh}}.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}#extra_image_input::file-selector-button{visibility:hidden}.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-b39b47c5]{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;width:100%}.selected[data-v-b39b47c5]{color:var(--el-color-primary);text-decoration:underline;background-color:#262626}.btn-select[data-v-b39b47c5]{width:48px;height:32px}.options[data-v-b39b47c5]{display:flex;align-items:center;gap:8px}.options>*[data-v-b39b47c5]{margin:0}.images-top-bar[data-v-b39b47c5]{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:8px;position:sticky;top:60px;z-index:99;padding:8px;background-color:color-mix(in srgb,var(--el-bg-color-overlay) 60%,transparent);border-bottom:1px solid var(--el-border-color);transition:transform .3s ease-in-out}.images-top-bar.mobile-hidden[data-v-b39b47c5]{transform:translateY(-100%)}.images-top-bar>*[data-v-b39b47c5]{width:100%;display:flex;justify-content:center;text-align:center;white-space:nowrap;flex-grow:0}.bottom-pagination[data-v-b39b47c5]{display:none}@media only screen and (max-width: 768px){.images-top-bar[data-v-b39b47c5]{top:0;flex-wrap:wrap}.bottom-pagination[data-v-b39b47c5]{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-ecc278c5],h1[data-v-ecc278c5]{margin-bottom:0}.about[data-v-ecc278c5]{width:100%;font-size:1.1rem;display:flex;justify-content:center}.about-content[data-v-ecc278c5]{width:60%}.faq[data-v-ecc278c5]{font-size:1.05rem}@media only screen and (max-width: 1000px){.about-content[data-v-ecc278c5]{width:80%}}@media only screen and (max-width: 700px){.about-content[data-v-ecc278c5]{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-0345ee1f]{width:80px}.el-tab-pane[data-v-0345ee1f]{max-width:600px}h2[data-v-0345ee1f]{margin-top:0}.apikey[data-v-0345ee1f]{width:calc(100% - 80px)}@media only screen and (max-width: 1000px){.anon[data-v-0345ee1f]{width:80px}.apikey[data-v-0345ee1f]{width:100%}}
</style>
</head>
<body>
<div id="app"></div>
<script>window.history.pushState=window.history.replaceState=function(){};</script>
</body>
</html>